1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.DsAQEkI1.js","./index.bsVAaBS1.js","./index.BQCsuA0I.js","./index.XO1XYf_A.js","./index.BmuTnu6z.js","./index.DXhUW__N.js","./StreamlitSyntaxHighlighter.CmYHPzGN.js","./index.QoWGbfHY.js","./pandasStylerUtils.G7GPfspw.js","./moment.C7qA8nIE.js","./numbro.B9_PXfzp.js","./_baseIndexOf.BTknn6Gb.js","./index.CPOVXAqE.js","./withFullScreenWrapper.cN232UBk.js","./index.Bp77YmrU.js","./FormClearHelper.DFo50Lfo.js","./index.8HslT92O.js","./main.RoKzF5Lw.js","./throttle.C8Wqvyhj.js","./toConsumableArray.Q_9Ve-eG.js","./formatNumber.BdmueDpm.js","./sprintfjs.DSsuEWyc.js","./formatMoment.C6Hwn6X5.js","./checkbox.DjX9W7TF.js","./createDownloadLinkElement.hhAt_ffB.js","./FileDownload.esm.DmrqPFKC.js","./_arrayIncludes.B19Iyn2B.js","../css/index.DgR7E2CV.css","./embed.BiANn3cj.js","./threshold.CEb3xhGW.js","./value.X_5h6zV4.js","./timer.DrnPlWJ3.js","./TableChart.esm.CyN3__nb.js","./index.CcjR1fei.js","./Particles.8wl1YlV-.js","./index.DB3cirPN.js","./useBasicWidgetState.CI9LlGGe.js","../css/index.BuwrT-ty.css","./index.Bm9WNoRG.js","./index.D-pXX8oD.js","./IFrameUtil.DefezniK.js","./index.B2CSVIMq.js","./index.QuFQzJQa.js","./index.Bs7O7xlZ.js","./iconPosition.BnTrQB0J.js","./index.DsuyX5yy.js","./WidgetLabelHelpIconInline.p-GgbwF5.js","./styled-components.CXqQ-NdV.js","./index.CUHTygOq.js","./index.CFT5eRxg.js","./index.nYKO25KK.js","./ProgressBar.CMnb-7c9.js","./index.kXCto5Ak.js","./index.1IrZS67d.js","./useWaveformController.FYkx8PaL.js","./WidgetLabel.CgwydhVR.js","./WidgetLabelHelpIcon.BKLcvqEy.js","./urls.BwSlolu9.js","./index.T5irKb0S.js","./index.ChYfdYui.js","./index.CgfiYehZ.js","./withCalculatedWidth.C2I3eFeZ.js","./index.BNE2eeVb.js","./UploadFileInfo.Dr-zDST7.js","./index.C8WIeHtn.js","./FileHelper.BBQQGoDt.js","./InputInstructions.BuiQHvdK.js","./useTextInputAutoExpand.BeIjAsIS.js","./base-input.DmvIDeb9.js","./constants.BZvTtNRL.js","./inputUtils.CptNuJwn.js","./ErrorOutline.esm.DR1BbBot.js","./index.BWFOPccf.js","./index.BUxTm3ny.js","./_baseMap.BQYfXAcQ.js","./index.iF-Qef9B.js","./useIntlLocale.CzCxC4VC.js","./select.C3diGM4n.js","./timepicker.CC8Doctl.js","./input.edoqeH9S.js","./index.FD1w16DF.js","./styled-components.COQN5YTT.js","./styled-components.BjCveN31.js","./index.BI059Dt9.js","./index.dbP_zL9N.js","./index.ByklcDol.js","./index.CwmCIkxv.js","./index.DhO30g6h.js","./useSelectCommon.CZJ9OUIq.js","./index.XUdY5jN6.js","./uniqueId.HT2UodMD.js","./index.EtzA3yZB.js","./index.C1Y0t3IF.js","./index.CeipAcnQ.js","./index.DZtWAdL_.js","./useUpdateUiValue.CyB9OGUj.js","./index.DLPgdyUk.js","./index.Didtakpp.js"])))=>i.map(i=>d[i]); 2function _mergeNamespaces(n,i){for(var t=0;t<i.length;t++){const e=i[t];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(e,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))e(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&e(p)}).observe(document,{childList:!0,subtree:!0});function t(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function e(o){if(o.ep)return;o.ep=!0;const d=t(o);fetch(o.href,d)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var i=n.default;if(typeof i=="function"){var t=function e(){var o=!1;try{o=this instanceof e}catch{}return o?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};t.prototype=i.prototype}else t={};
vendor: 5,127 bytes, line 2
2return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(e){var o=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,o.get?o:{enumerable:!0,get:function(){return n[e]}})}),t}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),M=Symbol.iterator;function X(Ge){return Ge===null||typeof Ge!="object"?null:(Ge=M&&Ge[M]||Ge["@@iterator"],typeof Ge=="function"?Ge:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ye=Object.assign,be={};function we(Ge,it,Ue){this.props=Ge,this.context=it,this.refs=be,this.updater=Ue||Z}we.prototype.isReactComponent={},we.prototype.setState=function(Ge,it){if(typeof Ge!="object"&&typeof Ge!="function"&&Ge!=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,Ge,it,"setState")},we.prototype.forceUpdate=function(Ge){this.updater.enqueueForceUpdate(this,Ge,"forceUpdate")};function xe(){}xe.prototype=we.prototype;function $e(Ge,it,Ue){this.props=Ge,this.context=it,this.refs=be,this.updater=Ue||Z}var Ne=$e.prototype=new xe;Ne.constructor=$e,ye(Ne,we.prototype),Ne.isPureReactComponent=!0;var Fe=Array.isArray,De=Object.prototype.hasOwnProperty,Le={current:null},He={key:!0,ref:!0,__self:!0,__source:!0};function Ke(Ge,it,Ue){var Ot,Rt={},dt=null,Tt=null;if(it!=null)for(Ot in it.ref!==void 0&&(Tt=it.ref),it.key!==void 0&&(dt=""+it.key),it)De.call(it,Ot)&&!He.hasOwnProperty(Ot)&&(Rt[Ot]=it[Ot]);var ht=arguments.length-2;if(ht===1)Rt.children=Ue;else if(1<ht){for(var Ft=Array(ht),zt=0;zt<ht;zt++)Ft[zt]=arguments[zt+2];Rt.children=Ft}if(Ge&&Ge.defaultProps)for(Ot in ht=Ge.defaultProps,ht)Rt[Ot]===void 0&&(Rt[Ot]=ht[Ot]);return{$$typeof:n,type:Ge,key:dt,ref:Tt,props:Rt,_owner:Le.current}}function je(Ge,it){return{$$typeof:n,type:Ge.type,key:it,ref:Ge.ref,props:Ge.props,_owner:Ge._owner}}function Ve(Ge){return typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===n}function qe(Ge){var it={"=":"=0",":":"=2"};return"$"+Ge.replace(/[=:]/g,function(Ue){return it[Ue]})}var Ye=/\/+/g;function et(Ge,it){return typeof Ge=="object"&&Ge!==null&&Ge.key!=null?qe(""+Ge.key):it.toString(36)}function Qe(Ge,it,Ue,Ot,Rt){var dt=typeof Ge;(dt==="undefined"||dt==="boolean")&&(Ge=null);var Tt=!1;if(Ge===null)Tt=!0;else switch(dt){case"string":case"number":Tt=!0;break;case"object":switch(Ge.$$typeof){case n:case i:Tt=!0}}if(Tt)return Tt=Ge,Rt=Rt(Tt),Ge=Ot===""?"."+et(Tt,0):Ot,Fe(Rt)?(Ue="",Ge!=null&&(Ue=Ge.replace(Ye,"$&/")+"/"),Qe(Rt,it,Ue,"",function(zt){return zt})):Rt!=null&&(Ve(Rt)&&(Rt=je(Rt,Ue+(!Rt.key||Tt&&Tt.key===Rt.key?"":(""+Rt.key).replace(Ye,"$&/")+"/")+Ge)),it.push(Rt)),1;if(Tt=0,Ot=Ot===""?".":Ot+":",Fe(Ge))for(var ht=0;ht<Ge.length;ht++){dt=Ge[ht];var Ft=Ot+et(dt,ht);Tt+=Qe(dt,it,Ue,Ft,Rt)}else if(Ft=X(Ge),typeof Ft=="function")for(Ge=Ft.call(Ge),ht=0;!(dt=Ge.next()).done;)dt=dt.value,Ft=Ot+et(dt,ht++),Tt+=Qe(dt,it,Ue,Ft,Rt);else if(dt==="object")throw it=String(Ge),Error("Objects are not valid as a React child (found: "+(it==="[object Object]"?"object with keys {"+Object.keys(Ge).join(", ")+"}":it)+"). If you meant to render a collection of children, use an array instead.");return Tt}function ze(Ge,it,Ue){if(Ge==null)return Ge;var Ot=[],Rt=0;return Qe(Ge,Ot,"","",function(dt){return it.call(Ue,dt,Rt++)}),Ot}function st(Ge){if(Ge._status===-1){var it=Ge._result;it=it(),it.then(function(Ue){(Ge._status===0||Ge._status===-1)&&(Ge._status=1,Ge._result=Ue)},function(Ue){(Ge._status===0||Ge._status===-1)&&(Ge._status=2,Ge._result=Ue)}),Ge._status===-1&&(Ge._status=0,Ge._result=it)}if(Ge._status===1)return Ge._result.default;throw Ge._result}var at={current:null},tt={transition:null},pt={ReactCurrentDispatcher:at,ReactCurrentBatchConfig:tt,ReactCurrentOwner:Le};function Be(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:ze,forEach:function(Ge,it,Ue){ze(Ge,function(){it.apply(this,arguments)},Ue)},count:function(Ge){var it=0;return ze(Ge,function(){it++}),it},toArray:function(Ge){return ze(Ge,function(it){return it})||[]},only:function(Ge){if(!Ve(Ge))throw Error("React.Children.only expected to receive a single React element child.");return Ge}},react_production_min.Component=we,react_production_min.Fragment=t,react_production_min.Profiler=o,react_production_min.PureComponent=$e,react_production_min.StrictMode=e,react_production_min.Suspense=y,react_production_min.__SECRET_INT
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pt,react_production_min.act=Be,react_production_min.cloneElement=function(Ge,it,Ue){if(Ge==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ge+".");var Ot=ye({},Ge.props),Rt=Ge.key,dt=Ge.ref,Tt=Ge._owner;if(it!=null){if(it.ref!==void 0&&(dt=it.ref,Tt=Le.current),it.key!==void 0&&(Rt=""+it.key),Ge.type&&Ge.type.defaultProps)var ht=Ge.type.defaultProps;for(Ft in it)De.call(it,Ft)&&!He.hasOwnProperty(Ft)&&(Ot[Ft]=it[Ft]===void 0&&ht!==void 0?ht[Ft]:it[Ft])}var Ft=arguments.length-2;if(Ft===1)Ot.children=Ue;else if(1<Ft){ht=Array(Ft);for(var zt=0;zt<Ft;zt++)ht[zt]=arguments[zt+2];Ot.children=ht}return{$$typeof:n,type:Ge.type,key:Rt,ref:dt,props:Ot,_owner:Tt}},react_production_min.createContext=function(Ge){return Ge={$$typeof:p,_currentValue:Ge,_currentValue2:Ge,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Ge.Provider={$$typeof:d,_context:Ge},Ge.Consumer=Ge},react_production_min.createElement=Ke,react_production_min.createFactory=function(Ge){var it=Ke.bind(null,Ge);return it.type=Ge,it},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(Ge){return{$$typeof:h,render:Ge}},react_production_min.isValidElement=Ve,react_production_min.lazy=function(Ge){return{$$typeof:$,_payload:{_status:-1,_result:Ge},_init:st}},react_production_min.memo=function(Ge,it){return{$$typeof:E,type:Ge,compare:it===void 0?null:it}},react_production_min.startTransition=function(Ge){var it=tt.transition;tt.transition={};try{Ge()}finally{tt.transition=it}},react_production_min.unstable_act=Be,react_production_min.useCallback=function(Ge,it){return at.current.useCallback(Ge,it)},react_production_min.useContext=function(Ge){return at.current.useContext(Ge)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(Ge){return at.current.useDeferredValue(Ge)},react_production_min.useEffect=function(Ge,it){return at.current.useEffect(Ge,it)},react_production_min.useId=function(){return at.current.useId()},react_production_min.useImperativeHandle=function(Ge,it,Ue){return at.current.useImperativeHandle(Ge,it,Ue)},react_production_min.useInsertionEffect=function(Ge,it){return at.current.useInsertionEffect(Ge,it)},react_production_min.useLayoutEffect=function(Ge,it){return at.current.useLayoutEffect(Ge,it)},react_production_min.useMemo=function(Ge,it){return at.current.useMemo(Ge,it)},react_production_min.useReducer=function(Ge,it,Ue){return at.current.useReducer(Ge,it,Ue)},react_production_min.useRef=function(Ge){return at.current.useRef(Ge)},react_production_min.useState=function(Ge){return at.current.useState(Ge)},react_production_min.useSyncExternalStore=function(Ge,it,Ue){return at.current.useSyncExternalStore(Ge,it,Ue)},react_production_min.useTransition=function(){return at.current.useTransition()},react_production_min.version="18.3.1",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var n=requireReact(),i=Symbol.for("react.element"),t=Symbol.for("react.fragment"),e=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(h,y,E){var $,M={},X=null,Z=null;E!==void 0&&(X=""+E),y.key!==void 0&&(X=""+y.key),y.ref!==void 0&&(Z=y.ref);for($ in y)e.call(y,$)&&!d.hasOwnProperty($)&&(M[$]=y[$]);if(h&&h.defaultProps)for($ in y=h.defaultProps,y)M[$]===void 0&&(M[$]=y[$]);return{$$typeof:i,type:h,key:X,ref:Z,props:M,_owner:o.current}}return reactJsxRuntime_production_min.Fragment=t,reactJsxRuntime_production_min.jsx=p,reactJsxRuntime_production_min.jsxs=p,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);function sheetForTag(n){if(n.sheet)return n.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===n)return document.styleSheets[i]}function createStyleElement(n){var i=document.createElement("style");return i.setAttribute("data-emotion",n.key),n.nonce!==void 0&&i.setAttribute("nonce",n.nonce),i.appendChild(document.createTextNode("")),i.setAttribute("data-s",""),i}var StyleSheet=(function(){function n(t){var e=this;this._insertTag=function(o){var d;e.tags.length===0?e.insertionPoint?d=e.insertionPoint.nextSibling:e.prepend?d=e.container.firstChild:d=e.before:d=e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(o,d),e.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var i=n.prototype;return i.hydrate=function(e){e.forEach(this._insertTag)},i.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var d=sheetForTag(o);try{d.insertRule(e,d.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,294 bytes, line 2
2,i.flush=function(){this.tags.forEach(function(e){var o;return(o=e.parentNode)==null?void 0:o.removeChild(e)}),this.tags=[],this.ctr=0},n})(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign$1=Object.assign;function hash$1(n,i){return charat(n,0)^45?(((i<<2^charat(n,0))<<2^charat(n,1))<<2^charat(n,2))<<2^charat(n,3):0}function trim(n){return n.trim()}function match(n,i){return(n=i.exec(n))?n[0]:n}function replace$1(n,i,t){return n.replace(i,t)}function indexof(n,i){return n.indexOf(i)}function charat(n,i){return n.charCodeAt(i)|0}function substr(n,i,t){return n.slice(i,t)}function strlen(n){return n.length}function sizeof(n){return n.length}function append(n,i){return i.push(n),n}function combine(n,i){return n.map(i).join("")}var line=1,column=1,length=0,position$3=0,character=0,characters="";function node$1(n,i,t,e,o,d,p){return{value:n,root:i,parent:t,type:e,props:o,children:d,line,column,length:p,return:""}}function copy(n,i){return assign$1(node$1("",null,null,"",null,null,0),n,{length:-n.length},i)}function char(){return character}function prev(){return character=position$3>0?charat(characters,--position$3):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$3<length?charat(characters,position$3++):0,column++,character===10&&(column=1,line++),character}function peek$1(){return charat(characters,position$3)}function caret(){return position$3}function slice(n,i){return substr(characters,n,i)}function token$1(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(n){return line=column=1,length=strlen(characters=n),position$3=0,[]}function dealloc(n){return characters="",n}function delimit(n){return trim(slice(position$3-1,delimiter(n===91?n+2:n===40?n+1:n)))}function whitespace$1(n){for(;(character=peek$1())&&character<33;)next();return token$1(n)>2||token$1(character)>3?"":" "}function escaping(n,i){for(;--i&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(n,caret()+(i<6&&peek$1()==32&&next()==32))}function delimiter(n){for(;next();)switch(character){case n:return position$3;case 34:case 39:n!==34&&n!==39&&delimiter(character);break;case 40:n===41&&delimiter(n);break;case 92:next();break}return position$3}function commenter(n,i){for(;next()&&n+character!==57;)if(n+character===84&&peek$1()===47)break;return"/*"+slice(i,position$3-1)+"*"+from(n===47?n:next())}function identifier(n){for(;!token$1(peek$1());)next();return slice(n,position$3)}function compile(n){return dealloc(parse$4("",null,null,null,[""],n=alloc(n),0,[0],n))}function parse$4(n,i,t,e,o,d,p,h,y){for(var E=0,$=0,M=p,X=0,Z=0,ye=0,be=1,we=1,xe=1,$e=0,Ne="",Fe=o,De=d,Le=e,He=Ne;we;)switch(ye=$e,$e=next()){case 40:if(ye!=108&&charat(He,M-1)==58){indexof(He+=replace$1(delimit($e),"&","&\f"),"&\f")!=-1&&(xe=-1);break}case 34:case 39:case 91:He+=delimit($e);break;case 9:case 10:case 13:case 32:He+=whitespace$1(ye);break;case 92:He+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),i,t),y);break;default:He+="/"}break;case 123*be:h[E++]=strlen(He)*xe;case 125*be:case 59:case 0:switch($e){case 0:case 125:we=0;case 59+$:xe==-1&&(He=replace$1(He,/\f/g,"")),Z>0&&strlen(He)-M&&append(Z>32?declaration(He+";",e,t,M-1):declaration(replace$1(He," ","")+";",e,t,M-2),y);break;case 59:He+=";";default:if(append(Le=ruleset(He,i,t,E,$,o,h,Ne,Fe=[],De=[],M),d),$e===123)if($===0)parse$4(He,i,Le,Le,Fe,d,M,h,De);else switch(X===99&&charat(He,3)===110?100:X){case 100:case 108:case 109:case 115:parse$4(n,Le,Le,e&&append(ruleset(n,Le,Le,0,0,o,h,Ne,o,Fe=[],M),De),o,De,M,h,e?Fe:De);break;default:parse$4(He,Le,Le,Le,[""],De,0,h,De)}}E=$=Z=0,be=xe=1,Ne=He="",M=p;break;case 58:M=1+strlen(He),Z=ye;default:if(be<1){if($e==123)--be;else if($e==125&&be++==0&&prev()==125)continue}switch(He+=from($e),$e*be){case 38:xe=$>0?1:(He+="\f",-1);break;case 44:h[E++]=(strlen(He)-1)*xe,xe=1;break;
vendor: 10,223 bytes, line 2
2case 64:peek$1()===45&&(He+=delimit(next())),X=peek$1(),$=M=strlen(Ne=He+=identifier(caret())),$e++;break;case 45:ye===45&&strlen(He)==2&&(be=0)}}return d}function ruleset(n,i,t,e,o,d,p,h,y,E,$){for(var M=o-1,X=o===0?d:[""],Z=sizeof(X),ye=0,be=0,we=0;ye<e;++ye)for(var xe=0,$e=substr(n,M+1,M=abs(be=p[ye])),Ne=n;xe<Z;++xe)(Ne=trim(be>0?X[xe]+" "+$e:replace$1($e,/&\f/g,X[xe])))&&(y[we++]=Ne);return node$1(n,i,t,o===0?RULESET:h,y,E,$)}function comment(n,i,t){return node$1(n,i,t,COMMENT,from(char()),substr(n,2,-2),0)}function declaration(n,i,t,e){return node$1(n,i,t,DECLARATION,substr(n,0,e),substr(n,e+1,-1),e)}function serialize$2(n,i){for(var t="",e=sizeof(n),o=0;o<e;o++)t+=i(n[o],o,n,i)||"";return t}function stringify$3(n,i,t,e){switch(n.type){case LAYER:if(n.children.length)break;case IMPORT:case DECLARATION:return n.return=n.return||n.value;case COMMENT:return"";case KEYFRAMES:return n.return=n.value+"{"+serialize$2(n.children,e)+"}";case RULESET:n.value=n.props.join(",")}return strlen(t=serialize$2(n.children,e))?n.return=n.value+"{"+t+"}":""}function middleware(n){var i=sizeof(n);return function(t,e,o,d){for(var p="",h=0;h<i;h++)p+=n[h](t,e,o,d)||"";return p}}function rulesheet(n){return function(i){i.root||(i=i.return)&&n(i)}}var weakMemoize=function(i){var t=new WeakMap;return function(e){if(t.has(e))return t.get(e);var o=i(e);return t.set(e,o),o}};function memoize$1(n){var i=Object.create(null);return function(t){return i[t]===void 0&&(i[t]=n(t)),i[t]}}var identifierWithPointTracking=function(i,t,e){for(var o=0,d=0;o=d,d=peek$1(),o===38&&d===12&&(t[e]=1),!token$1(d);)next();return slice(i,position$3)},toRules=function(i,t){var e=-1,o=44;do switch(token$1(o)){case 0:o===38&&peek$1()===12&&(t[e]=1),i[e]+=identifierWithPointTracking(position$3-1,t,e);break;case 2:i[e]+=delimit(o);break;case 4:if(o===44){i[++e]=peek$1()===58?"&\f":"",t[e]=i[e].length;break}default:i[e]+=from(o)}while(o=next());return i},getRules=function(i,t){return dealloc(toRules(alloc(i),t))},fixedElements=new WeakMap,compat=function(i){if(!(i.type!=="rule"||!i.parent||i.length<1)){for(var t=i.value,e=i.parent,o=i.column===e.column&&i.line===e.line;e.type!=="rule";)if(e=e.parent,!e)return;if(!(i.props.length===1&&t.charCodeAt(0)!==58&&!fixedElements.get(e))&&!o){fixedElements.set(i,!0);for(var d=[],p=getRules(t,d),h=e.props,y=0,E=0;y<p.length;y++)for(var $=0;$<h.length;$++,E++)i.props[E]=d[y]?p[y].replace(/&\f/g,h[$]):h[$]+" "+p[y]}}},removeLabel=function(i){if(i.type==="decl"){var t=i.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(i.return="",i.value="")}};function prefix$1(n,i){switch(hash$1(n,i)){case 5103:return WEBKIT+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+n+MOZ+n+MS+n+n;case 6828:case 4268:return WEBKIT+n+MS+n+n;case 6165:return WEBKIT+n+MS+"flex-"+n+n;case 5187:return WEBKIT+n+replace$1(n,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+n;case 5443:return WEBKIT+n+MS+"flex-item-"+replace$1(n,/flex-|-self/,"")+n;case 4675:return WEBKIT+n+MS+"flex-line-pack"+replace$1(n,/align-content|flex-|-self/,"")+n;case 5548:return WEBKIT+n+MS+replace$1(n,"shrink","negative")+n;case 5292:return WEBKIT+n+MS+replace$1(n,"basis","preferred-size")+n;case 6060:return WEBKIT+"box-"+replace$1(n,"-grow","")+WEBKIT+n+MS+replace$1(n,"grow","positive")+n;case 4554:return WEBKIT+replace$1(n,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+n;case 6187:return replace$1(replace$1(replace$1(n,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),n,"")+n;case 5495:case 3959:return replace$1(n,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(n,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+n+n;case 4095:case 3583:case 4068:case 2532:return replace$1(n,/(.+)-inline(.+)/,WEBKIT+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(n)-1-i>6)switch(charat(n,i+1)){case 109:if(charat(n,i+4)!==45)break;case 102:return replace$1(n,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(n,i+3)==108?"$3":"$2-$3"))+n;case 115:return~indexof(n,"stretch")?prefix$1(replace$1(n,"stretch","fill-available"),i)+n:n}break;case 4949:if(charat(n,i+1)!==115)break;case 6444:switch(charat(n,strlen(n)-3-(~indexof(n,"!important")&&10))){case 107:return replace$1(n,":",":"+WEBKIT)+n;case 101:return replace$1(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(n,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+n}break;case 5936:switch(charat(n,i+11)){case 114:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return WEBKIT+n+MS+n+n}return n}var prefixer=function(i,t,e,o){if(i.length>-1&&!i.return)switch(i.type){case DECLARATION:i.return=prefix$1(i.value,i.length);break;case KEYFRAMES:return serialize$2([copy(i,{value:replace$1(i.value,"@","@"+WEBKIT)})],o);case RULESET:if(i.length)return combine(i.props,function(d){switch(match(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy(i,{props:[replace$1(d,/:(read-\w+)/,":"+MOZ+"$1")]})],o);case"::placeholder":return serialize$2([copy(i,{props:[replace$1(d,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(i,{props:[replace$1(d,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(i,{props:[replace$1(d,/:(plac\w+)/,MS+"input-$1")]})],o)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(i){var t=i.key;if(t==="css"){var e=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(e,function(be){var we=be.getAttribute("data-emotion");we.indexOf(" ")!==-1&&(document.head.appendChild(be),be.setAttribute("data-s",""))})}var o=i.stylisPlugins||defaultStylisPlugins,d={},p,h=[];p=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(be){for(var we=be.getAttribute("data-emotion").split(" "),xe=1;xe<we.length;xe++)d[we[xe]]=!0;h.push(be)});var y,E=[compat,removeLabel];{var $,M=[stringify$3,rulesheet(function(be){$.insert(be)})],X=middleware(E.concat(o,M)),Z=function(we){return serialize$2(compile(we),X)};y=function(we,xe,$e,Ne){$=$e,Z(we?we+"{"+xe.styles+"}":xe.styles),Ne&&(ye.inserted[xe.name]=!0)}}var ye={key:t,sheet:new StyleSheet({key:t,container:p,nonce:i.nonce,speedy:i.speedy,prepend:i.prepend,insertionPoint:i.insertionPoint}),nonce:i.nonce,inserted:d,registered:{},insert:y};return ye.sheet.hydrate(h),ye};function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)({}).hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$k.apply(null,arguments)}var reactIs$1={exports:{}},reactIs_production_min$1={};var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,e=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,p=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,E=n?Symbol.for("react.concurrent_mode"):60111,$=n?Symbol.for("react.forward_ref"):60112,M=n?Symbol.for("react.suspense"):60113,X=n?Symbol.for("react.suspense_list"):60120,Z=n?Symbol.for("react.memo"):60115,ye=n?Symbol.for("react.lazy"):60116,be=n?Symbol.for("react.block"):60121,we=n?Symbol.for("react.fundamental"):60117,xe=n?Symbol.for("react.responder"):60118,$e=n?Symbol.for("react.scope"):60119;function Ne(De){if(typeof De=="object"&&De!==null){var Le=De.$$typeof;switch(Le){case i:switch(De=De.type,De){case y:case E:case e:case d:case o:case M:return De;default:switch(De=De&&De.$$typeof,De){case h:case $:case ye:case Z:case p:return De;default:return Le}}case t:return Le}}}function Fe(De){return Ne(De)===E}return reactIs_production_min$1.AsyncMode=y,reactIs_production_min$1.ConcurrentMode=E,reactIs_production_min$1.ContextConsumer=h,reactIs_production_min$1.ContextProvider=p,reactIs_production_min$1.Element=i,reactIs_production_min$1.ForwardRef=$,reactIs_production_min$1.Fragment=e,reactIs_production_min$1.Lazy=ye,reactIs_production_min$1.Memo=Z,reactIs_production_min$1.Portal=t,reactIs_production_min$1.Profiler=d,reactIs_production_min$1.StrictMode=o,reactIs_production_min$1.Suspense=M,reactIs_production_min$1.isAsyncMode=function(De){return Fe(De)||Ne(De)===y},reactIs_production_min$1.isConcurrentMode=Fe,reactIs_production_min$1.isContextConsumer=function(De){return Ne(De)===h},reactIs_production_min$1.isContextProvider=function(De){return Ne(De)===p},reactIs_production_min$1.isElement=function(De){return typeof De=="object"&&De!==null&&De.$$typeof===i},reactIs_production_min$1.isForwardRef=function(De){return Ne(De)===$},reactIs_production_min$1.isFragment=function(De){return Ne(De)===e},reactIs_production_min$1.isLazy=function(De){return Ne(De)===ye},reactIs_production_min$1.isMemo=function(De){return Ne(De)===Z},reactIs_production_min$1.isPortal=function(De){return Ne(De)===t},reactIs_production_min$1.isProfiler=function(De){return Ne(De)===d},reactIs_production_min$1.isStrictMode=function(De){return Ne(De)===o},reactIs_production_min$1.isSuspense=function(De){return Ne(De)===M},reactIs_production_min$1.isValidElementType=function(De){return typeof De=="string"||typeof De=="function"||De===e||De===E||De===d||De===o||De===M||De===X||typeof De=="object"&&De!==null&&(De.$$typeof===ye||De.$$typeof===Z||De.$$typeof===p||De.$$typeof===h||De.$$typeof===$||De.$$typeof===we||De.$$typeof===xe||De.$$typeof===$e||De.$$typeof===be)},reactIs_production_min$1.typeOf=Ne,reactIs_production_min$1}var hasRequiredReactIs$1;
vendor: 7,300 bytes, line 2
2function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_production_min$1()),reactIs$1.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var n=requireReactIs$1(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};d[n.ForwardRef]=e,d[n.Memo]=o;function p(ye){return n.isMemo(ye)?o:d[ye.$$typeof]||i}var h=Object.defineProperty,y=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,X=Object.prototype;function Z(ye,be,we){if(typeof be!="string"){if(X){var xe=M(be);xe&&xe!==X&&Z(ye,xe,we)}var $e=y(be);E&&($e=$e.concat(E(be)));for(var Ne=p(ye),Fe=p(be),De=0;De<$e.length;++De){var Le=$e[De];if(!t[Le]&&!(we&&we[Le])&&!(Fe&&Fe[Le])&&!(Ne&&Ne[Le])){var He=$(be,Le);try{h(ye,Le,He)}catch{}}}}return ye}return hoistNonReactStatics_cjs=Z,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var isBrowser$2=!0;function getRegisteredStyles(n,i,t){var e="";return t.split(" ").forEach(function(o){n[o]!==void 0?i.push(n[o]+";"):o&&(e+=o+" ")}),e}var registerStyles=function(i,t,e){var o=i.key+"-"+t.name;(e===!1||isBrowser$2===!1)&&i.registered[o]===void 0&&(i.registered[o]=t.styles)},insertStyles=function(i,t,e){registerStyles(i,t,e);var o=i.key+"-"+t.name;if(i.inserted[t.name]===void 0){var d=t;do i.insert(t===d?"."+o:"",d,i.sheet,!0),d=d.next;while(d!==void 0)}};function murmur2(n){for(var i=0,t,e=0,o=n.length;o>=4;++e,o-=4)t=n.charCodeAt(e)&255|(n.charCodeAt(++e)&255)<<8|(n.charCodeAt(++e)&255)<<16|(n.charCodeAt(++e)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,i=(t&65535)*1540483477+((t>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(o){case 3:i^=(n.charCodeAt(e+2)&255)<<16;case 2:i^=(n.charCodeAt(e+1)&255)<<8;case 1:i^=n.charCodeAt(e)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(i){return i.charCodeAt(1)===45},isProcessableValue=function(i){return i!=null&&typeof i!="boolean"},processStyleName=memoize$1(function(n){return isCustomProperty(n)?n:n.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(i,t){switch(i){case"animation":case"animationName":if(typeof t=="string")return t.replace(animationRegex,function(e,o,d){return cursor$1={name:o,styles:d,next:cursor$1},o})}return unitlessKeys[i]!==1&&!isCustomProperty(i)&&typeof t=="number"&&t!==0?t+"px":t};function handleInterpolation(n,i,t){if(t==null)return"";var e=t;if(e.__emotion_styles!==void 0)return e;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return cursor$1={name:o.name,styles:o.styles,next:cursor$1},o.name;var d=t;if(d.styles!==void 0){var p=d.next;if(p!==void 0)for(;p!==void 0;)cursor$1={name:p.name,styles:p.styles,next:cursor$1},p=p.next;var h=d.styles+";";return h}return createStringFromObject(n,i,t)}case"function":{if(n!==void 0){var y=cursor$1,E=t(n);return cursor$1=y,handleInterpolation(n,i,E)}break}}var $=t;if(i==null)return $;var M=i[$];return M!==void 0?M:$}function createStringFromObject(n,i,t){var e="";if(Array.isArray(t))for(var o=0;o<t.length;o++)e+=handleInterpolation(n,i,t[o])+";";else for(var d in t){var p=t[d];if(typeof p!="object"){var h=p;i!=null&&i[h]!==void 0?e+=d+"{"+i[h]+"}":isProcessableValue(h)&&(e+=processStyleName(d)+":"+processStyleValue(d,h)+";")}else if(Array.isArray(p)&&typeof p[0]=="string"&&(i==null||i[p[0]]===void 0))for(var y=0;y<p.length;y++)isProcessableValue(p[y])&&(e+=processStyleName(d)+":"+processStyleValue(d,p[y])+";");else{var E=handleInterpolation(n,i,p);switch(d){case"animation":case"animationName":{e+=processStyleName(d)+":"+E+";";break}default:e+=d+"{"+E+"}"}}}return e}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor$1;function serializeStyles(n,i,t){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var e=!0,o="";cursor$1=void 0;var d=n[0];if(d==null||d.raw===void 0)e=!1,o+=handleInterpolation(t,i,d);else{var p=d;o+=p[0]}for(var h=1;h<n.length;h++)if(o+=handleInterpolation(t,i,n[h]),e){var y=d;o+=y[h]}labelPattern.lastIndex=0;for(var E="",$;($=labelPattern.exec(o))!==null;)E+="-"+$[1];var M=murmur2(o)+E;return{name:M,styles:o,next:cursor$1}}var syncFallback=function(i){return i()},useInsertionEffect=React$1.useInsertionEffect?React$1.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect||reactExports.useLayoutEffect,EmotionCacheContext=reactExports.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null),CacheProvider=EmotionCacheContext.Provider,withEmotionCache=function(i){return reactExports.forwardRef(function(t,e){var o=reactExports.useContext(EmotionCacheContext);return i(t,o,e)})},ThemeContext$2=reactExports.createContext({}),useTheme=function(){return reactExports.useContext(ThemeContext$2)},getTheme=function(i,t){if(typeof t=="function"){var e=t(i);return e}return _extends$k({},i,t)},createCacheWithTheme=weakMemoize(function(n){return weakMemoize(function(i){return getTheme(n,i)})}),ThemeProvider$2=function(i){var t=reactExports.useContext(ThemeContext$2);return i.theme!==t&&(t=createCacheWithTheme(t)(i.theme)),reactExports.createElement(ThemeContext$2.Provider,{value:t},i.children)},hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(i,t){var e={};for(var o in t)hasOwn.call(t,o)&&(e[o]=t[o]);return e[typePropName]=i,e},Insertion$1=function(i){var t=i.cache,e=i.serialized,o=i.isStringTag;return registerStyles(t,e,o),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(t,e,o)}),null},Emotion=withEmotionCache(function(n,i,t){var e=n.css;typeof e=="string"&&i.registered[e]!==void 0&&(e=i.registered[e]);var o=n[typePropName],d=[e],p="";
2typeof n.className=="string"?p=getRegisteredStyles(i.registered,d,n.className):n.className!=null&&(p=n.className+" ");var h=serializeStyles(d,void 0,reactExports.useContext(ThemeContext$2));p+=i.key+"-"+h.name;var y={};for(var E in n)hasOwn.call(n,E)&&E!=="css"&&E!==typePropName&&(y[E]=n[E]);return y.className=p,t&&(y.ref=t),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion$1,{cache:i,serialized:h,isStringTag:typeof o=="string"}),reactExports.createElement(o,y))}),Emotion$1=Emotion,Fragment=jsxRuntimeExports.Fragment,jsx$1=function(i,t,e){return hasOwn.call(t,"css")?jsxRuntimeExports.jsx(Emotion$1,createEmotionProps(i,t),e):jsxRuntimeExports.jsx(i,t,e)},jsxs=function(i,t,e){return hasOwn.call(t,"css")?jsxRuntimeExports.jsxs(Emotion$1,createEmotionProps(i,t),e):jsxRuntimeExports.jsxs(i,t,e)},loglevel$1={exports:{}},loglevel=loglevel$1.exports,hasRequiredLoglevel;function requireLoglevel(){return hasRequiredLoglevel||(hasRequiredLoglevel=1,(function(n){(function(i,t){n.exports?n.exports=t():i.log=t()})(loglevel,function(){var i=function(){},t="undefined",e=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],d={},p=null;function h(be,we){var xe=be[we];if(typeof xe.bind=="function")return xe.bind(be);try{return Function.prototype.bind.call(xe,be)}catch{return function(){return Function.prototype.apply.apply(xe,[be,arguments])}}}function y(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function E(be){return be==="debug"&&(be="log"),typeof console===t?!1:be==="trace"&&e?y:console[be]!==void 0?h(console,be):console.log!==void 0?h(console,"log"):i}function $(){for(var be=this.getLevel(),we=0;we<o.length;we++){var xe=o[we];this[xe]=we<be?i:this.methodFactory(xe,be,this.name)}if(this.log=this.debug,typeof console===t&&be<this.levels.SILENT)return"No console available for logging"}function M(be){return function(){typeof console!==t&&($.call(this),this[be].apply(this,arguments))}}function X(be,we,xe){return E(be)||M.apply(this,arguments)}function Z(be,we){var xe=this,$e,Ne,Fe,De="loglevel";typeof be=="string"?De+=":"+be:typeof be=="symbol"&&(De=void 0);function Le(qe){var Ye=(o[qe]||"silent").toUpperCase();if(!(typeof window===t||!De)){try{window.localStorage[De]=Ye;return}catch{}try{window.document.cookie=encodeURIComponent(De)+"="+Ye+";"}catch{}}}function He(){var qe;if(!(typeof window===t||!De)){try{qe=window.localStorage[De]}catch{}if(typeof qe===t)try{var Ye=window.document.cookie,et=encodeURIComponent(De),Qe=Ye.indexOf(et+"=");Qe!==-1&&(qe=/^([^;]+)/.exec(Ye.slice(Qe+et.length+1))[1])}catch{}return xe.levels[qe]===void 0&&(qe=void 0),qe}}function Ke(){if(!(typeof window===t||!De)){try{window.localStorage.removeItem(De)}catch{}try{window.document.cookie=encodeURIComponent(De)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function je(qe){var Ye=qe;if(typeof Ye=="string"&&xe.levels[Ye.toUpperCase()]!==void 0&&(Ye=xe.levels[Ye.toUpperCase()]),typeof Ye=="number"&&Ye>=0&&Ye<=xe.levels.SILENT)return Ye;throw new TypeError("log.setLevel() called with invalid level: "+qe)}xe.name=be,xe.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},xe.methodFactory=we||X,xe.getLevel=function(){return Fe??Ne??$e},xe.setLevel=function(qe,Ye){return Fe=je(qe),Ye!==!1&&Le(Fe),$.call(xe)},xe.setDefaultLevel=function(qe){Ne=je(qe),He()||xe.setLevel(qe,!1)},xe.resetLevel=function(){Fe=null,Ke(),$.call(xe)},xe.enableAll=function(qe){xe.setLevel(xe.levels.TRACE,qe)},xe.disableAll=function(qe){xe.setLevel(xe.levels.SILENT,qe)},xe.rebuild=function(){if(p!==xe&&($e=je(p.getLevel())),$.call(xe),p===xe)for(var qe in d)d[qe].rebuild()},$e=je(p?p.getLevel():"WARN");var Ve=He();Ve!=null&&(Fe=je(Ve)),$.call(xe)}p=new Z,p.getLogger=function(we){if(typeof we!="symbol"&&typeof we!="string"||we==="")throw new TypeError("You must supply a name when creating a logger.");
vendor: 4,846 bytes, line 2
2var xe=d[we];return xe||(xe=d[we]=new Z(we,p.methodFactory)),xe};var ye=typeof window!==t?window.log:void 0;return p.noConflict=function(){return typeof window!==t&&window.log===p&&(window.log=ye),p},p.getLoggers=function(){return d},p.default=p,p})})(loglevel$1)),loglevel$1.exports}var loglevelExports=requireLoglevel(),client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,(function(n){function i(tt,pt){var Be=tt.length;tt.push(pt);e:for(;0<Be;){var Ge=Be-1>>>1,it=tt[Ge];if(0<o(it,pt))tt[Ge]=pt,tt[Be]=it,Be=Ge;else break e}}function t(tt){return tt.length===0?null:tt[0]}function e(tt){if(tt.length===0)return null;var pt=tt[0],Be=tt.pop();if(Be!==pt){tt[0]=Be;e:for(var Ge=0,it=tt.length,Ue=it>>>1;Ge<Ue;){var Ot=2*(Ge+1)-1,Rt=tt[Ot],dt=Ot+1,Tt=tt[dt];if(0>o(Rt,Be))dt<it&&0>o(Tt,Rt)?(tt[Ge]=Tt,tt[dt]=Be,Ge=dt):(tt[Ge]=Rt,tt[Ot]=Be,Ge=Ot);else if(dt<it&&0>o(Tt,Be))tt[Ge]=Tt,tt[dt]=Be,Ge=dt;else break e}}return pt}function o(tt,pt){var Be=tt.sortIndex-pt.sortIndex;return Be!==0?Be:tt.id-pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var y=[],E=[],$=1,M=null,X=3,Z=!1,ye=!1,be=!1,we=typeof setTimeout=="function"?setTimeout:null,xe=typeof clearTimeout=="function"?clearTimeout:null,$e=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ne(tt){for(var pt=t(E);pt!==null;){if(pt.callback===null)e(E);else if(pt.startTime<=tt)e(E),pt.sortIndex=pt.expirationTime,i(y,pt);else break;pt=t(E)}}function Fe(tt){if(be=!1,Ne(tt),!ye)if(t(y)!==null)ye=!0,st(De);else{var pt=t(E);pt!==null&&at(Fe,pt.startTime-tt)}}function De(tt,pt){ye=!1,be&&(be=!1,xe(Ke),Ke=-1),Z=!0;var Be=X;try{for(Ne(pt),M=t(y);M!==null&&(!(M.expirationTime>pt)||tt&&!qe());){var Ge=M.callback;if(typeof Ge=="function"){M.callback=null,X=M.priorityLevel;var it=Ge(M.expirationTime<=pt);pt=n.unstable_now(),typeof it=="function"?M.callback=it:M===t(y)&&e(y),Ne(pt)}else e(y);M=t(y)}if(M!==null)var Ue=!0;else{var Ot=t(E);Ot!==null&&at(Fe,Ot.startTime-pt),Ue=!1}return Ue}finally{M=null,X=Be,Z=!1}}var Le=!1,He=null,Ke=-1,je=5,Ve=-1;function qe(){return!(n.unstable_now()-Ve<je)}function Ye(){if(He!==null){var tt=n.unstable_now();Ve=tt;var pt=!0;try{pt=He(!0,tt)}finally{pt?et():(Le=!1,He=null)}}else Le=!1}var et;if(typeof $e=="function")et=function(){$e(Ye)};else if(typeof MessageChannel<"u"){var Qe=new MessageChannel,ze=Qe.port2;Qe.port1.onmessage=Ye,et=function(){ze.postMessage(null)}}else et=function(){we(Ye,0)};function st(tt){He=tt,Le||(Le=!0,et())}function at(tt,pt){Ke=we(function(){tt(n.unstable_now())},pt)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(tt){tt.callback=null},n.unstable_continueExecution=function(){ye||Z||(ye=!0,st(De))},n.unstable_forceFrameRate=function(tt){0>tt||125<tt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):je=0<tt?Math.floor(1e3/tt):5},n.unstable_getCurrentPriorityLevel=function(){return X},n.unstable_getFirstCallbackNode=function(){return t(y)},n.unstable_next=function(tt){switch(X){case 1:case 2:case 3:var pt=3;break;default:pt=X}var Be=X;X=pt;try{return tt()}finally{X=Be}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(tt,pt){switch(tt){case 1:case 2:case 3:case 4:case 5:break;default:tt=3}var Be=X;X=tt;try{return pt()}finally{X=Be}},n.unstable_scheduleCallback=function(tt,pt,Be){var Ge=n.unstable_now();switch(typeof Be=="object"&&Be!==null?(Be=Be.delay,Be=typeof Be=="number"&&0<Be?Ge+Be:Ge):Be=Ge,tt){case 1:var it=-1;break;case 2:it=250;break;case 5:it=1073741823;break;case 4:it=1e4;break;default:it=5e3}return it=Be+it,tt={id:$++,callback:pt,priorityLevel:tt,startTime:Be,expirationTime:it,sortIndex:-1},Be>Ge?(tt.sortIndex=Be,i(E,tt),t(y)===null&&tt===t(E)&&(be?(xe(Ke),Ke=-1):be=!0,at(Fe,Be-Ge))):(tt.sortIndex=it,i(y,tt),ye||Z||(ye=!0,st(De))),tt},n.unstable_shouldYield=qe,n.unstable_wrapCallback=function(tt){var pt=X;return function(){var Be=X;X=pt;try{return tt.apply(this,arguments)}finally{X=Be}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler
vendor: 4,248 bytes, line 2
2=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var n=requireReact(),i=requireScheduler();function t(g){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+g,H=1;H<arguments.length;H++)k+="&args[]="+encodeURIComponent(arguments[H]);return"Minified React error #"+g+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e=new Set,o={};function d(g,k){p(g,k),p(g+"Capture",k)}function p(g,k){for(o[g]=k,g=0;g<k.length;g++)e.add(k[g])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,E=/^[: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]*$/,$={},M={};function X(g){return y.call(M,g)?!0:y.call($,g)?!1:E.test(g)?M[g]=!0:($[g]=!0,!1)}function Z(g,k,H,ve){if(H!==null&&H.type===0)return!1;switch(typeof k){case"function":case"symbol":return!0;case"boolean":return ve?!1:H!==null?!H.acceptsBooleans:(g=g.toLowerCase().slice(0,5),g!=="data-"&&g!=="aria-");default:return!1}}function ye(g,k,H,ve){if(k===null||typeof k>"u"||Z(g,k,H,ve))return!0;if(ve)return!1;if(H!==null)switch(H.type){case 3:return!k;case 4:return k===!1;case 5:return isNaN(k);case 6:return isNaN(k)||1>k}return!1}function be(g,k,H,ve,Ce,Ie,Me){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=ve,this.attributeNamespace=Ce,this.mustUseProperty=H,this.propertyName=g,this.type=k,this.sanitizeURL=Ie,this.removeEmptyString=Me}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){we[g]=new be(g,0,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var k=g[0];we[k]=new be(k,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){we[g]=new be(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){we[g]=new be(g,2,!1,g,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(g){we[g]=new be(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){we[g]=new be(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){we[g]=new be(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){we[g]=new be(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){we[g]=new be(g,5,!1,g.toLowerCase(),null,!1,!1)});var xe=/[\-:]([a-z])/g;function $e(g){return g[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
2-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(g){var k=g.replace(xe,$e);we[k]=new be(k,1,!1,g,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(g){var k=g.replace(xe,$e);we[k]=new be(k,1,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var k=g.replace(xe,$e);we[k]=new be(k,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){we[g]=new be(g,1,!1,g.toLowerCase(),null,!1,!1)}),we.xlinkHref=new be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){we[g]=new be(g,1,!1,g.toLowerCase(),null,!0,!0)});function Ne(g,k,H,ve){var Ce=we.hasOwnProperty(k)?we[k]:null;(Ce!==null?Ce.type!==0:ve||!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N")&&(ye(k,H,Ce,ve)&&(H=null),ve||Ce===null?X(k)&&(H===null?g.removeAttribute(k):g.setAttribute(k,""+H)):Ce.mustUseProperty?g[Ce.propertyName]=H===null?Ce.type===3?!1:"":H:(k=Ce.attributeName,ve=Ce.attributeNamespace,H===null?g.removeAttribute(k):(Ce=Ce.type,H=Ce===3||Ce===4&&H===!0?"":""+H,ve?g.setAttributeNS(ve,k,H):g.setAttribute(k,H))))}var Fe=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,De=Symbol.for("react.element"),Le=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),je=Symbol.for("react.profiler"),Ve=Symbol.for("react.provider"),qe=Symbol.for("react.context"),Ye=Symbol.for("react.forward_ref"),et=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),ze=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),at=Symbol.for("react.offscreen"),tt=Symbol.iterator;function pt(g){return g===null||typeof g!="object"?null:(g=tt&&g[tt]||g["@@iterator"],typeof g=="function"?g:null)}var Be=Object.assign,Ge;function it(g){if(Ge===void 0)try{throw Error()}catch(H){var k=H.stack.trim().match(/\n( *(at )?)/);Ge=k&&k[1]||""}return` 3`+Ge+g}var Ue=!1;function Ot(g,k){if(!g||Ue)return"";Ue=!0;var H=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(k)if(k=function(){throw Error()},Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(ot){var ve=ot}Reflect.construct(g,[],k)}else{try{k.call()}catch(ot){ve=ot}g.call(k.prototype)}else{try{throw Error()}catch(ot){ve=ot}g()}}catch(ot){if(ot&&ve&&typeof ot.stack=="string"){for(var Ce=ot.stack.split(` 4`),Ie=ve.stack.split(` 5`),Me=Ce.length-1,We=Ie.length-1;1<=Me&&0<=We&&Ce[Me]!==Ie[We];)We--;for(;1<=Me&&0<=We;Me--,We--)if(Ce[Me]!==Ie[We]){if(Me!==1||We!==1)do if(Me--,We--,0>We||Ce[Me]!==Ie[We]){var Je=` 6`+Ce[Me].replace(" at new "," at ");return g.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",g.displayName)),Je}while(1<=Me&&0<=We);break}}}finally{Ue=!1,Error.prepareStackTrace=H}return(g=g?g.displayName||g.name:"")?it(g):""}function Rt(g){switch(g.tag){case 5:return it(g.type);case 16:return it("Lazy");case 13:return it("Suspense");case 19:return it("SuspenseList");case 0:case 2:case 15:return g=Ot(g.type,!1),g;case 11:return g=Ot(g.type.render,!1),g;case 1:return g=Ot(g.type,!0),g;default:return""}}function dt(g){if(g==null)return null;if(typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case He:return"Fragment";case Le:return"Portal";case je:return"Profiler";case Ke:return"StrictMode";case et:return"Suspense";case Qe:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case qe:return(g.displayName||"Context")+".Consumer";case Ve:return(g._context.displayName||"Context")+".Provider";case Ye:var k=g.render;return g=g.displayName,g||(g=k.displayName||k.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ze:return k=g.displayName||null,k!==null?k:dt(g.type)||"Memo";case st:k=g._payload,g=g._init;try{return dt(g(k))}catch{}}return null}function Tt(g){var k=g.type;switch(g.tag){case 24:return"Cache";case 9:return(k.displayName||"Context")+".Consumer";case 10:return(k._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return g=k.render,g=g.displayName||g.name||"",k.displayName||(g!==""?"ForwardRef("+g+")":"ForwardRef");case 7:return"Fragment";case 5:return k;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dt(k);case 8:return k===Ke?"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 k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k}return null}function ht(g){switch(typeof g){case"boolean":case"number":case"string":case"undefined":return g;case"object":return g;default:return""}}function Ft(g){var k=g.type;return(g=g.nodeName)&&g.toLowerCase()==="input"&&(k==="checkbox"||k==="radio")}function zt(g){var k=Ft(g)?"checked":"value",H=Object.getOwnPropertyDescriptor(g.constructor.prototype,k),ve=""+g[k];if(!g.hasOwnProperty(k)&&typeof H<"u"&&typeof H.get=="function"&&typeof H.set=="function"){var Ce=H.get,Ie=H.set;return Object.defineProperty(g,k,{configurable:!0,get:function(){return Ce.call(this)},set:function(Me){ve=""+Me,Ie.call(this,Me)}}),Object.defineProperty(g,k,{enumerable:H.enumerable}),{getValue:function(){return ve},setValue:function(Me){ve=""+Me},stopTracking:function(){g._valueTracker=null,delete g[k]}}}}function $t(g){g._valueTracker||(g._valueTracker=zt(g))}function Yt(g){if(!g)return!1;var k=g._valueTracker;if(!k)return!0;var H=k.getValue(),ve="";return g&&(ve=Ft(g)?g.checked?"true":"false":g.value),g=ve,g!==H?(k.setValue(g),!0):!1}function ln(g){if(g=g||(typeof document<"u"?document:void 0),typeof g>"u")return null;try{return g.activeElement||g.body}catch{return g.body}}function Qt(g,k){var H=k.checked;return Be({},k,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:H??g._wrapperState.initialChecked})}function kn(g,k){var H=k.defaultValue==null?"":k.defaultValue,ve=k.checked!=null?k.checked:k.defaultChecked;
vendor: 11,895 bytes, line 6
6H=ht(k.value!=null?k.value:H),g._wrapperState={initialChecked:ve,initialValue:H,controlled:k.type==="checkbox"||k.type==="radio"?k.checked!=null:k.value!=null}}function en(g,k){k=k.checked,k!=null&&Ne(g,"checked",k,!1)}function Gt(g,k){en(g,k);var H=ht(k.value),ve=k.type;if(H!=null)ve==="number"?(H===0&&g.value===""||g.value!=H)&&(g.value=""+H):g.value!==""+H&&(g.value=""+H);else if(ve==="submit"||ve==="reset"){g.removeAttribute("value");return}k.hasOwnProperty("value")?Wt(g,k.type,H):k.hasOwnProperty("defaultValue")&&Wt(g,k.type,ht(k.defaultValue)),k.checked==null&&k.defaultChecked!=null&&(g.defaultChecked=!!k.defaultChecked)}function on(g,k,H){if(k.hasOwnProperty("value")||k.hasOwnProperty("defaultValue")){var ve=k.type;if(!(ve!=="submit"&&ve!=="reset"||k.value!==void 0&&k.value!==null))return;k=""+g._wrapperState.initialValue,H||k===g.value||(g.value=k),g.defaultValue=k}H=g.name,H!==""&&(g.name=""),g.defaultChecked=!!g._wrapperState.initialChecked,H!==""&&(g.name=H)}function Wt(g,k,H){(k!=="number"||ln(g.ownerDocument)!==g)&&(H==null?g.defaultValue=""+g._wrapperState.initialValue:g.defaultValue!==""+H&&(g.defaultValue=""+H))}var tn=Array.isArray;function vn(g,k,H,ve){if(g=g.options,k){k={};for(var Ce=0;Ce<H.length;Ce++)k["$"+H[Ce]]=!0;for(H=0;H<g.length;H++)Ce=k.hasOwnProperty("$"+g[H].value),g[H].selected!==Ce&&(g[H].selected=Ce),Ce&&ve&&(g[H].defaultSelected=!0)}else{for(H=""+ht(H),k=null,Ce=0;Ce<g.length;Ce++){if(g[Ce].value===H){g[Ce].selected=!0,ve&&(g[Ce].defaultSelected=!0);return}k!==null||g[Ce].disabled||(k=g[Ce])}k!==null&&(k.selected=!0)}}function Rn(g,k){if(k.dangerouslySetInnerHTML!=null)throw Error(t(91));return Be({},k,{value:void 0,defaultValue:void 0,children:""+g._wrapperState.initialValue})}function dn(g,k){var H=k.value;if(H==null){if(H=k.children,k=k.defaultValue,H!=null){if(k!=null)throw Error(t(92));if(tn(H)){if(1<H.length)throw Error(t(93));H=H[0]}k=H}k==null&&(k=""),H=k}g._wrapperState={initialValue:ht(H)}}function _n(g,k){var H=ht(k.value),ve=ht(k.defaultValue);H!=null&&(H=""+H,H!==g.value&&(g.value=H),k.defaultValue==null&&g.defaultValue!==H&&(g.defaultValue=H)),ve!=null&&(g.defaultValue=""+ve)}function Kt(g){var k=g.textContent;k===g._wrapperState.initialValue&&k!==""&&k!==null&&(g.value=k)}function ut(g){switch(g){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 vt(g,k){return g==null||g==="http://www.w3.org/1999/xhtml"?ut(k):g==="http://www.w3.org/2000/svg"&&k==="foreignObject"?"http://www.w3.org/1999/xhtml":g}var xt,Lt=(function(g){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(k,H,ve,Ce){MSApp.execUnsafeLocalFunction(function(){return g(k,H,ve,Ce)})}:g})(function(g,k){if(g.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in g)g.innerHTML=k;else{for(xt=xt||document.createElement("div"),xt.innerHTML="<svg>"+k.valueOf().toString()+"</svg>",k=xt.firstChild;g.firstChild;)g.removeChild(g.firstChild);for(;k.firstChild;)g.appendChild(k.firstChild)}});function jt(g,k){if(k){var H=g.firstChild;if(H&&H===g.lastChild&&H.nodeType===3){H.nodeValue=k;return}}g.textContent=k}var Et={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},Vt=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(g){Vt.forEach(function(k){k=k+g.charAt(0).toUpperCase()+g.substring(1),Et[k]=Et[g]})});function wt(g,k,H){return k==null||typeof k=="boolean"||k===""?"":H||typeof k!="number"||k===0||Et.hasOwnProperty(g)&&Et[g]?(""+k).trim():k+"px"}function rt(g,k){g=g.style;for(var H in k)if(k.hasOwnProperty(H)){var ve=H.indexOf("--")===0,Ce=wt(H,k[H],ve);H==="float"&&(H="cssFloat"),ve?g.setProperty(H,Ce):g[H]=Ce}}var lt=Be({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 ct(g,k){if(k){if(lt[g]&&(k.children!=null||k.dangerouslySetInnerHTML!=null))throw Error(t(137,g));if(k.dangerouslySetInnerHTML!=null){if(k.children!=null)throw Error(t(60));if(typeof k.dangerouslySetInnerHTML!="object"||!("__html"in k.dangerouslySetInnerHTML))throw Error(t(61))}if(k.style!=null&&typeof k.style!="object")throw Error(t(62))}}function yt(g,k){if(g.indexOf("-")===-1)return typeof k.is=="string";switch(g){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 ft=null;function At(g){return g=g.target||g.srcElement||window,g.correspondingUseElement&&(g=g.correspondingUseElement),g.nodeType===3?g.parentNode:g}var qt=null,rn=null,Zt=null;function fr(g){if(g=ao(g)){if(typeof qt!="function")throw Error(t(280));var k=g.stateNode;k&&(k=Yo(k),qt(g.stateNode,g.type,k))}}function Kr(g){rn?Zt?Zt.push(g):Zt=[g]:rn=g}function pr(){if(rn){var g=rn,k=Zt;if(Zt=rn=null,fr(g),k)for(g=0;g<k.length;g++)fr(k[g])}}function Di(g,k){return g(k)}function hr(){}var Bi=!1;function Vi(g,k,H){if(Bi)return g(k,H);Bi=!0;try{return Di(g,k,H)}finally{Bi=!1,(rn!==null||Zt!==null)&&(hr(),pr())}}function yr(g,k){var H=g.stateNode;if(H===null)return null;var ve=Yo(H);if(ve===null)return null;H=ve[k];e:switch(k){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ve=!ve.disabled)||(g=g.type,ve=!(g==="button"||g==="input"||g==="select"||g==="textarea")),g=!ve;break e;default:g=!1}if(g)return null;if(H&&typeof H!="function")throw Error(t(231,k,typeof H));return H}var ji=!1;if(h)try{var Er={};Object.defineProperty(Er,"passive",{get:function(){ji=!0}}),window.addEventListener("test",Er,Er),window.removeEventListener("test",Er,Er)}catch{ji=!1}function Ut(g,k,H,ve,Ce,Ie,Me,We,Je){var ot=Array.prototype.slice.call(arguments,3);try{k.apply(H,ot)}catch(mt){this.onError(mt)}}var Ht=!1,fn=null,Nn=!1,gr=null,ld={onError:function(g){Ht=!0,fn=g}};function sd(g,k,H,ve,Ce,Ie,Me,We,Je){Ht=!1,fn=null,Ut.apply(ld,arguments)}function ud(g,k,H,ve,Ce,Ie,Me,We,Je){if(sd.apply(this,arguments),Ht){if(Ht){var ot=fn;Ht=!1,fn=null}else throw Error(t(198));Nn||(Nn=!0,gr=ot)}}function Jr(g){var k=g,H=g;if(g.alternate)for(;k.return;)k=k.return;else{g=k;do k=g,(k.flags&4098)!==0&&(H=k.return),g=k.return;while(g)}return k.tag===3?H:null}function Ts(g){if(g.tag===13){var k=g.memoizedState;if(k===null&&(g=g.alternate,g!==null&&(k=g.memoizedState)),k!==null)return k.dehydrated}return null}function Cs(g){if(Jr(g)!==g)throw Error(t(188))}function cd(g){var k=g.alternate;if(!k){if(k=Jr(g),k===null)throw Error(t(188));return k!==g?null:g}for(var H=g,ve=k;;){var Ce=H.return;if(Ce===null)break;var Ie=Ce.alternate;if(Ie===null){if(ve=Ce.return,ve!==null){H=ve;continue}break}if(Ce.child===Ie.child){for(Ie=Ce.child;Ie;){if(Ie===H)return Cs(Ce),g;if(Ie===ve)return Cs(Ce),k;Ie=Ie.sibling}throw Error(t(188))}if(H.return!==ve.return)H=Ce,ve=Ie;else{for(var Me=!1,We=Ce.child;We;){if(We===H){Me=!0,H=Ce,ve=Ie;break}if(We===ve){Me=!0,ve=Ce,H=Ie;break}We=We.sibling}if(!Me){for(We=Ie.child;We;){if(We===H){Me=!0,H=Ie,ve=Ce;break}if(We===ve){Me=!0,ve=Ie,H=Ce;break}We=We.sibling}if(!Me)throw Error(t(189))}}if(H.alternate!==ve)throw Error(t(190))}if(H.tag!==3)throw Error(t(188));return H.stateNode.current===H?g:k}function xs(g){return g=cd(g),g!==null?Es(g):null}function Es(g){if(g.tag===5||g.tag===6)return g;for(g=g.child;g!==null;){var k=Es(g);if(k!==null)return k;g=g.sibling}return null}var ks=i.unstable_scheduleCallback,$s=i.unstable_cancelCallback,dd=i.unstable_shouldYield,fd=i.unstable_requestPaint,gn=i.unstable_now,pd=i.unstable_getCurrentPriorityLevel,Ma=i.unstable_ImmediatePriority,Is=i.unstable_UserBlockingPriority,Io=i.unstable_NormalPriority,hd=i.unstable_LowPriority,Ps=i.unstable_IdlePriority,Po=null,ar=null;function yd(g){if(ar&&typeof ar.onCommitFiberRoot=="function")try{ar.onCommitFiberRoot(Po,g,void 0,(g.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:bd,gd=Math.log,md=Math.LN2;function bd(g){return g>>>=0,g===0?32:31-(gd(g)/md|0)|0}var Ao=64,Ro=4194304;function zi(g){switch(g&-g){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 g&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return g&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return g}}function No(g,k){var H=g.pendingLanes;if(H===0)return 0;var ve=0,Ce=g.suspendedLanes,Ie=g.pingedLanes,Me=H&268435455;if(Me!==0){var We=Me&~Ce;We!==0?ve=zi(We):(Ie&=Me,Ie!==0&&(ve=zi(Ie)))}else Me=H&~Ce,Me!==0?ve=zi(Me):Ie!==0&&(ve=zi(Ie));if(ve===0)return 0;if(k!==0&&k!==ve&&(k&Ce)===0&&(Ce=ve&-ve,Ie=k&-k,Ce>=Ie||Ce===16&&(Ie&4194240)!==0))return k;if((ve&4)!==0&&(ve|=H&16),k=g.entangledLanes,k!==0)for(g=g.entanglements,k&=ve;0<k;)H=31-Zn(k),Ce=1<<H,ve|=g[H],k&=~Ce;return ve}function vd(g,k){switch(g){case 1:case 2:case 4:return k+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 k+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 Sd(g,k){for(var H=g.suspendedLanes,ve=g.pingedLanes,Ce=g.expirationTimes,Ie=g.pendingLanes;0<Ie;){var Me=31-Zn(Ie),We=1<<Me,Je=Ce[Me];Je===-1?((We&H)===0||(We&ve)!==0)&&(Ce[Me]=vd(We,k)):Je<=k&&(g.expiredLanes|=We),Ie&=~We}}function Da(g){return g=g.pendingLanes&-1073741825,g!==0?g:g&1073741824?1073741824:0}function As(){var g=Ao;return Ao<<=1,(Ao&4194240)===0&&(Ao=64),g}function Ba(g){for(var k=[],H=0;31>H;H++)k.push(g);return k}function Ui(g,k,H){g.pendingLanes|=k,k!==536870912&&(g.suspendedLanes=0,g.pingedLanes=0),g=g.eventTimes,k=31-Zn(k),g[k]=H}function wd(g,k){var H=g.pendingLanes&~k;g.pendingLanes=k,g.suspendedLanes=0,g.pingedLanes=0,g.expiredLanes&=k,g.mutableReadLanes&=k,g.entangledLanes&=k,k=g.entanglements;var ve=g.eventTimes;for(g=g.expirationTimes;0<H;){var Ce=31-Zn(H),Ie=1<<Ce;k[Ce]=0,ve[Ce]=-1,g[Ce]=-1,H&=~Ie}}function Va(g,k){var H=g.entangledLanes|=k;for(g=g.entanglements;H;){var ve=31-Zn(H),Ce=1<<ve;Ce&k|g[ve]&k&&(g[ve]|=k),H&=~Ce}}var nn=0;function Rs(g){return g&=-g,1<g?4<g?(g&268435455)!==0?16:536870912:4:1}var Ns,ja,Fs,Ls,Ms,za=!1,Fo=[],kr=null,$r=null,Ir=null,Hi=new Map,Wi=new Map,Pr=[],Od="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 Ds(g,k){switch(g){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Ir=null;break;case"pointerover":case"pointerout":Hi.delete(k.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wi.delete(k.pointerId)}}
vendor: 4,632 bytes, line 6
6function qi(g,k,H,ve,Ce,Ie){return g===null||g.nativeEvent!==Ie?(g={blockedOn:k,domEventName:H,eventSystemFlags:ve,nativeEvent:Ie,targetContainers:[Ce]},k!==null&&(k=ao(k),k!==null&&ja(k)),g):(g.eventSystemFlags|=ve,k=g.targetContainers,Ce!==null&&k.indexOf(Ce)===-1&&k.push(Ce),g)}function Td(g,k,H,ve,Ce){switch(k){case"focusin":return kr=qi(kr,g,k,H,ve,Ce),!0;case"dragenter":return $r=qi($r,g,k,H,ve,Ce),!0;case"mouseover":return Ir=qi(Ir,g,k,H,ve,Ce),!0;case"pointerover":var Ie=Ce.pointerId;return Hi.set(Ie,qi(Hi.get(Ie)||null,g,k,H,ve,Ce)),!0;case"gotpointercapture":return Ie=Ce.pointerId,Wi.set(Ie,qi(Wi.get(Ie)||null,g,k,H,ve,Ce)),!0}return!1}function Bs(g){var k=Yr(g.target);if(k!==null){var H=Jr(k);if(H!==null){if(k=H.tag,k===13){if(k=Ts(H),k!==null){g.blockedOn=k,Ms(g.priority,function(){Fs(H)});return}}else if(k===3&&H.stateNode.current.memoizedState.isDehydrated){g.blockedOn=H.tag===3?H.stateNode.containerInfo:null;return}}}g.blockedOn=null}function Lo(g){if(g.blockedOn!==null)return!1;for(var k=g.targetContainers;0<k.length;){var H=Ha(g.domEventName,g.eventSystemFlags,k[0],g.nativeEvent);if(H===null){H=g.nativeEvent;var ve=new H.constructor(H.type,H);ft=ve,H.target.dispatchEvent(ve),ft=null}else return k=ao(H),k!==null&&ja(k),g.blockedOn=H,!1;k.shift()}return!0}function Vs(g,k,H){Lo(g)&&H.delete(k)}function Cd(){za=!1,kr!==null&&Lo(kr)&&(kr=null),$r!==null&&Lo($r)&&($r=null),Ir!==null&&Lo(Ir)&&(Ir=null),Hi.forEach(Vs),Wi.forEach(Vs)}function Gi(g,k){g.blockedOn===k&&(g.blockedOn=null,za||(za=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Cd)))}function Ki(g){function k(Ce){return Gi(Ce,g)}if(0<Fo.length){Gi(Fo[0],g);for(var H=1;H<Fo.length;H++){var ve=Fo[H];ve.blockedOn===g&&(ve.blockedOn=null)}}for(kr!==null&&Gi(kr,g),$r!==null&&Gi($r,g),Ir!==null&&Gi(Ir,g),Hi.forEach(k),Wi.forEach(k),H=0;H<Pr.length;H++)ve=Pr[H],ve.blockedOn===g&&(ve.blockedOn=null);for(;0<Pr.length&&(H=Pr[0],H.blockedOn===null);)Bs(H),H.blockedOn===null&&Pr.shift()}var di=Fe.ReactCurrentBatchConfig,Mo=!0;function xd(g,k,H,ve){var Ce=nn,Ie=di.transition;di.transition=null;try{nn=1,Ua(g,k,H,ve)}finally{nn=Ce,di.transition=Ie}}function Ed(g,k,H,ve){var Ce=nn,Ie=di.transition;di.transition=null;try{nn=4,Ua(g,k,H,ve)}finally{nn=Ce,di.transition=Ie}}function Ua(g,k,H,ve){if(Mo){var Ce=Ha(g,k,H,ve);if(Ce===null)ll(g,k,ve,Do,H),Ds(g,ve);else if(Td(Ce,g,k,H,ve))ve.stopPropagation();else if(Ds(g,ve),k&4&&-1<Od.indexOf(g)){for(;Ce!==null;){var Ie=ao(Ce);if(Ie!==null&&Ns(Ie),Ie=Ha(g,k,H,ve),Ie===null&&ll(g,k,ve,Do,H),Ie===Ce)break;Ce=Ie}Ce!==null&&ve.stopPropagation()}else ll(g,k,ve,null,H)}}var Do=null;function Ha(g,k,H,ve){if(Do=null,g=At(ve),g=Yr(g),g!==null)if(k=Jr(g),k===null)g=null;else if(H=k.tag,H===13){if(g=Ts(k),g!==null)return g;g=null}else if(H===3){if(k.stateNode.current.memoizedState.isDehydrated)return k.tag===3?k.stateNode.containerInfo:null;g=null}else k!==g&&(g=null);return Do=g,null}function js(g){switch(g){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(pd()){case Ma:return 1;case Is:return 4;case Io:case hd:return 16;case Ps:return 536870912;default:return 16}default:return 16}}var Ar=null,Wa=null,Bo=null;function zs(){if(Bo)return Bo;var g,k=Wa,H=k.length,ve,Ce="value"in Ar?Ar.value:Ar.textContent,Ie=Ce.length;for(g=0;g<H&&k[g]===Ce[g];g++);var Me=H-g;for(ve=1;ve<=Me&&k[H-ve]===Ce[Ie-ve];ve++);return Bo=Ce.slice(g,1<ve?1-ve:void 0)}function Vo(g){var k=g.keyCode;return"charCode"in g?(g=g.charCode,g===0&&k===13&&(g=13)):g=k,g===10&&(g=13),32<=g||g===13?g:0}function jo(){return!0}function Us(){return!1}
vendor: 22,852 bytes, lines 6-7
6function Un(g){function k(H,ve,Ce,Ie,Me){this._reactName=H,this._targetInst=Ce,this.type=ve,this.nativeEvent=Ie,this.target=Me,this.currentTarget=null;for(var We in g)g.hasOwnProperty(We)&&(H=g[We],this[We]=H?H(Ie):Ie[We]);return this.isDefaultPrevented=(Ie.defaultPrevented!=null?Ie.defaultPrevented:Ie.returnValue===!1)?jo:Us,this.isPropagationStopped=Us,this}return Be(k.prototype,{preventDefault:function(){this.defaultPrevented=!0;var H=this.nativeEvent;H&&(H.preventDefault?H.preventDefault():typeof H.returnValue!="unknown"&&(H.returnValue=!1),this.isDefaultPrevented=jo)},stopPropagation:function(){var H=this.nativeEvent;H&&(H.stopPropagation?H.stopPropagation():typeof H.cancelBubble!="unknown"&&(H.cancelBubble=!0),this.isPropagationStopped=jo)},persist:function(){},isPersistent:jo}),k}var fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(g){return g.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qa=Un(fi),Ji=Be({},fi,{view:0,detail:0}),kd=Un(Ji),Ga,Ka,Yi,zo=Be({},Ji,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ya,button:0,buttons:0,relatedTarget:function(g){return g.relatedTarget===void 0?g.fromElement===g.srcElement?g.toElement:g.fromElement:g.relatedTarget},movementX:function(g){return"movementX"in g?g.movementX:(g!==Yi&&(Yi&&g.type==="mousemove"?(Ga=g.screenX-Yi.screenX,Ka=g.screenY-Yi.screenY):Ka=Ga=0,Yi=g),Ga)},movementY:function(g){return"movementY"in g?g.movementY:Ka}}),Hs=Un(zo),$d=Be({},zo,{dataTransfer:0}),Id=Un($d),Pd=Be({},Ji,{relatedTarget:0}),Ja=Un(Pd),Ad=Be({},fi,{animationName:0,elapsedTime:0,pseudoElement:0}),Rd=Un(Ad),Nd=Be({},fi,{clipboardData:function(g){return"clipboardData"in g?g.clipboardData:window.clipboardData}}),Fd=Un(Nd),Ld=Be({},fi,{data:0}),Ws=Un(Ld),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dd={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"},Bd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vd(g){var k=this.nativeEvent;return k.getModifierState?k.getModifierState(g):(g=Bd[g])?!!k[g]:!1}function Ya(){return Vd}var jd=Be({},Ji,{key:function(g){if(g.key){var k=Md[g.key]||g.key;if(k!=="Unidentified")return k}return g.type==="keypress"?(g=Vo(g),g===13?"Enter":String.fromCharCode(g)):g.type==="keydown"||g.type==="keyup"?Dd[g.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ya,charCode:function(g){return g.type==="keypress"?Vo(g):0},keyCode:function(g){return g.type==="keydown"||g.type==="keyup"?g.keyCode:0},which:function(g){return g.type==="keypress"?Vo(g):g.type==="keydown"||g.type==="keyup"?g.keyCode:0}}),zd=Un(jd),Ud=Be({},zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qs=Un(Ud),Hd=Be({},Ji,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ya}),Wd=Un(Hd),qd=Be({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gd=Un(qd),Kd=Be({},zo,{deltaX:function(g){return"deltaX"in g?g.deltaX:"wheelDeltaX"in g?-g.wheelDeltaX:0},deltaY:function(g){return"deltaY"in g?g.deltaY:"wheelDeltaY"in g?-g.wheelDeltaY:"wheelDelta"in g?-g.wheelDelta:0},deltaZ:0,deltaMode:0}),Jd=Un(Kd),Yd=[9,13,27,32],Xa=h&&"CompositionEvent"in window,Xi=null;h&&"documentMode"in document&&(Xi=document.documentMode);var Xd=h&&"TextEvent"in window&&!Xi,Gs=h&&(!Xa||Xi&&8<Xi&&11>=Xi),Ks=" ",Js=!1;function Ys(g,k){switch(g){case"keyup":return Yd.indexOf(k.keyCode)!==-1;case"keydown":return k.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xs(g){return g=g.detail,typeof g=="object"&&"data"in g?g.data:null}var pi=!1;function Qd(g,k){switch(g){case"compositionend":return Xs(k);case"keypress":return k.which!==32?null:(Js=!0,Ks);case"textInput":return g=k.data,g===Ks&&Js?null:g;default:return null}}function Zd(g,k){if(pi)return g==="compositionend"||!Xa&&Ys(g,k)?(g=zs(),Bo=Wa=Ar=null,pi=!1,g):null;switch(g){case"paste":return null;case"keypress":if(!(k.ctrlKey||k.altKey||k.metaKey)||k.ctrlKey&&k.altKey){if(k.char&&1<k.char.length)return k.char;if(k.which)return String.fromCharCode(k.which)}return null;case"compositionend":return Gs&&k.locale!=="ko"?null:k.data;default:return null}}var ef={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 Qs(g){var k=g&&g.nodeName&&g.nodeName.toLowerCase();return k==="input"?!!ef[g.type]:k==="textarea"}function Zs(g,k,H,ve){Kr(ve),k=Go(k,"onChange"),0<k.length&&(H=new qa("onChange","change",null,H,ve),g.push({event:H,listeners:k}))}var Qi=null,Zi=null;function tf(g){mu(g,0)}function Uo(g){var k=bi(g);if(Yt(k))return g}function nf(g,k){if(g==="change")return k}var eu=!1;if(h){var Qa;if(h){var Za="oninput"in document;if(!Za){var tu=document.createElement("div");tu.setAttribute("oninput","return;"),Za=typeof tu.oninput=="function"}Qa=Za}else Qa=!1;eu=Qa&&(!document.documentMode||9<document.documentMode)}function nu(){Qi&&(Qi.detachEvent("onpropertychange",ru),Zi=Qi=null)}function ru(g){if(g.propertyName==="value"&&Uo(Zi)){var k=[];Zs(k,Zi,g,At(g)),Vi(tf,k)}}function rf(g,k,H){g==="focusin"?(nu(),Qi=k,Zi=H,Qi.attachEvent("onpropertychange",ru)):g==="focusout"&&nu()}function of(g){if(g==="selectionchange"||g==="keyup"||g==="keydown")return Uo(Zi)}function af(g,k){if(g==="click")return Uo(k)}function lf(g,k){if(g==="input"||g==="change")return Uo(k)}function sf(g,k){return g===k&&(g!==0||1/g===1/k)||g!==g&&k!==k}var er=typeof Object.is=="function"?Object.is:sf;function eo(g,k){if(er(g,k))return!0;if(typeof g!="object"||g===null||typeof k!="object"||k===null)return!1;var H=Object.keys(g),ve=Object.keys(k);if(H.length!==ve.length)return!1;for(ve=0;ve<H.length;ve++){var Ce=H[ve];if(!y.call(k,Ce)||!er(g[Ce],k[Ce]))return!1}return!0}function iu(g){for(;g&&g.firstChild;)g=g.firstChild;return g}function ou(g,k){var H=iu(g);g=0;for(var ve;H;){if(H.nodeType===3){if(ve=g+H.textContent.length,g<=k&&ve>=k)return{node:H,offset:k-g};g=ve}e:{for(;H;){if(H.nextSibling){H=H.nextSibling;break e}H=H.parentNode}H=void 0}H=iu(H)}}function au(g,k){return g&&k?g===k?!0:g&&g.nodeType===3?!1:k&&k.nodeType===3?au(g,k.parentNode):"contains"in g?g.contains(k):g.compareDocumentPosition?!!(g.compareDocumentPosition(k)&16):!1:!1}function lu(){for(var g=window,k=ln();k instanceof g.HTMLIFrameElement;){try{var H=typeof k.contentWindow.location.href=="string"}catch{H=!1}if(H)g=k.contentWindow;else break;k=ln(g.document)}return k}function el(g){var k=g&&g.nodeName&&g.nodeName.toLowerCase();return k&&(k==="input"&&(g.type==="text"||g.type==="search"||g.type==="tel"||g.type==="url"||g.type==="password")||k==="textarea"||g.contentEditable==="true")}function uf(g){var k=lu(),H=g.focusedElem,ve=g.selectionRange;if(k!==H&&H&&H.ownerDocument&&au(H.ownerDocument.documentElement,H)){if(ve!==null&&el(H)){if(k=ve.start,g=ve.end,g===void 0&&(g=k),"selectionStart"in H)H.selectionStart=k,H.selectionEnd=Math.min(g,H.value.length);else if(g=(k=H.ownerDocument||document)&&k.defaultView||window,g.getSelection){g=g.getSelection();var Ce=H.textContent.length,Ie=Math.min(ve.start,Ce);ve=ve.end===void 0?Ie:Math.min(ve.end,Ce),!g.extend&&Ie>ve&&(Ce=ve,ve=Ie,Ie=Ce),Ce=ou(H,Ie);var Me=ou(H,ve);Ce&&Me&&(g.rangeCount!==1||g.anchorNode!==Ce.node||g.anchorOffset!==Ce.offset||g.focusNode!==Me.node||g.focusOffset!==Me.offset)&&(k=k.createRange(),k.setStart(Ce.node,Ce.offset),g.removeAllRanges(),Ie>ve?(g.addRange(k),g.extend(Me.node,Me.offset)):(k.setEnd(Me.node,Me.offset),g.addRange(k)))}}for(k=[],g=H;g=g.parentNode;)g.nodeType===1&&k.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<k.length;H++)g=k[H],g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}var cf=h&&"documentMode"in document&&11>=document.documentMode,hi=null,tl=null,to=null,nl=!1;function su(g,k,H){var ve=H.window===H?H.document:H.nodeType===9?H:H.ownerDocument;nl||hi==null||hi!==ln(ve)||(ve=hi,"selectionStart"in ve&&el(ve)?ve={start:ve.selectionStart,end:ve.selectionEnd}:(ve=(ve.ownerDocument&&ve.ownerDocument.defaultView||window).getSelection(),ve={anchorNode:ve.anchorNode,anchorOffset:ve.anchorOffset,focusNode:ve.focusNode,focusOffset:ve.focusOffset}),to&&eo(to,ve)||(to=ve,ve=Go(tl,"onSelect"),0<ve.length&&(k=new qa("onSelect","select",null,k,H),g.push({event:k,listeners:ve}),k.target=hi)))}function Ho(g,k){var H={};return H[g.toLowerCase()]=k.toLowerCase(),H["Webkit"+g]="webkit"+k,H["Moz"+g]="moz"+k,H}var yi={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionend:Ho("Transition","TransitionEnd")},rl={},uu={};h&&(uu=document.createElement("div").style,"AnimationEvent"in window||(delete yi.animationend.animation,delete yi.animationiteration.animation,delete yi.animationstart.animation),"TransitionEvent"in window||delete yi.transitionend.transition);function Wo(g){if(rl[g])return rl[g];if(!yi[g])return g;var k=yi[g],H;for(H in k)if(k.hasOwnProperty(H)&&H in uu)return rl[g]=k[H];return g}var cu=Wo("animationend"),du=Wo("animationiteration"),fu=Wo("animationstart"),pu=Wo("transitionend"),hu=new Map,yu="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 Rr(g,k){hu.set(g,k),d(k,[g])}for(var il=0;il<yu.length;il++){var ol=yu[il],df=ol.toLowerCase(),ff=ol[0].toUpperCase()+ol.slice(1);Rr(df,"on"+ff)}Rr(cu,"onAnimationEnd"),Rr(du,"onAnimationIteration"),Rr(fu,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(pu,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var no="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(" "),pf=new Set("cancel close invalid load scroll toggle".split(" ").concat(no));function gu(g,k,H){var ve=g.type||"unknown-event";g.currentTarget=H,ud(ve,k,void 0,g),g.currentTarget=null}function mu(g,k){k=(k&4)!==0;for(var H=0;H<g.length;H++){var ve=g[H],Ce=ve.event;ve=ve.listeners;e:{var Ie=void 0;if(k)for(var Me=ve.length-1;0<=Me;Me--){var We=ve[Me],Je=We.instance,ot=We.currentTarget;if(We=We.listener,Je!==Ie&&Ce.isPropagationStopped())break e;gu(Ce,We,ot),Ie=Je}else for(Me=0;Me<ve.length;Me++){if(We=ve[Me],Je=We.instance,ot=We.currentTarget,We=We.listener,Je!==Ie&&Ce.isPropagationStopped())break e;gu(Ce,We,ot),Ie=Je}}}if(Nn)throw g=gr,Nn=!1,gr=null,g}function sn(g,k){var H=k[pl];H===void 0&&(H=k[pl]=new Set);var ve=g+"__bubble";H.has(ve)||(bu(k,g,2,!1),H.add(ve))}function al(g,k,H){var ve=0;k&&(ve|=4),bu(H,g,ve,k)}var qo="_reactListening"+Math.random().toString(36).slice(2);function ro(g){if(!g[qo]){g[qo]=!0,e.forEach(function(H){H!=="selectionchange"&&(pf.has(H)||al(H,!1,g),al(H,!0,g))});var k=g.nodeType===9?g:g.ownerDocument;k===null||k[qo]||(k[qo]=!0,al("selectionchange",!1,k))}}function bu(g,k,H,ve){switch(js(k)){case 1:var Ce=xd;break;case 4:Ce=Ed;break;default:Ce=Ua}H=Ce.bind(null,k,H,g),Ce=void 0,!ji||k!=="touchstart"&&k!=="touchmove"&&k!=="wheel"||(Ce=!0),ve?Ce!==void 0?g.addEventListener(k,H,{capture:!0,passive:Ce}):g.addEventListener(k,H,!0):Ce!==void 0?g.addEventListener(k,H,{passive:Ce}):g.addEventListener(k,H,!1)}function ll(g,k,H,ve,Ce){var Ie=ve;if((k&1)===0&&(k&2)===0&&ve!==null)e:for(;;){if(ve===null)return;var Me=ve.tag;if(Me===3||Me===4){var We=ve.stateNode.containerInfo;if(We===Ce||We.nodeType===8&&We.parentNode===Ce)break;if(Me===4)for(Me=ve.return;Me!==null;){var Je=Me.tag;if((Je===3||Je===4)&&(Je=Me.stateNode.containerInfo,Je===Ce||Je.nodeType===8&&Je.parentNode===Ce))return;Me=Me.return}for(;We!==null;){if(Me=Yr(We),Me===null)return;if(Je=Me.tag,Je===5||Je===6){ve=Ie=Me;continue e}We=We.parentNode}}ve=ve.return}Vi(function(){var ot=Ie,mt=At(H),bt=[];e:{var gt=hu.get(g);if(gt!==void 0){var Ct=qa,It=g;switch(g){case"keypress":if(Vo(H)===0)break e;case"keydown":case"keyup":Ct=zd;break;case"focusin":It="focus",Ct=Ja;break;case"focusout":It="blur",Ct=Ja;break;case"beforeblur":case"afterblur":Ct=Ja;break;case"click":if(H.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ct=Hs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ct=Id;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ct=Wd;break;case cu:case du:case fu:Ct=Rd;break;case pu:Ct=Gd;break;case"scroll":Ct=kd;break;case"wheel":Ct=Jd;break;case"copy":case"cut":case"paste":Ct=Fd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ct=qs}var Pt=(k&4)!==0,mn=!Pt&&g==="scroll",Ze=Pt?gt!==null?gt+"Capture":null:gt;Pt=[];for(var Xe=ot,nt;Xe!==null;){nt=Xe;var St=nt.stateNode;if(nt.tag===5&&St!==null&&(nt=St,Ze!==null&&(St=yr(Xe,Ze),St!=null&&Pt.push(io(Xe,St,nt)))),mn)break;Xe=Xe.return}0<Pt.length&&(gt=new Ct(gt,It,null,H,mt),bt.push({event:gt,listeners:Pt}))}}if((k&7)===0){e:{if(gt=g==="mouseover"||g==="pointerover",Ct=g==="mouseout"||g==="pointerout",gt&&H!==ft&&(It=H.relatedTarget||H.fromElement)&&(Yr(It)||It[mr]))break e;if((Ct||gt)&&(gt=mt.window===mt?mt:(gt=mt.ownerDocument)?gt.defaultView||gt.parentWindow:window,Ct?(It=H.relatedTarget||H.toElement,Ct=ot,It=It?Yr(It):null,It!==null&&(mn=Jr(It),It!==mn||It.tag!==5&&It.tag!==6)&&(It=null)):(Ct=null,It=ot),Ct!==It)){if(Pt=Hs,St="onMouseLeave",Ze="onMouseEnter",Xe="mouse",(g==="pointerout"||g==="pointerover")&&(Pt=qs,St="onPointerLeave",Ze="onPointerEnter",Xe="pointer"),mn=Ct==null?gt:bi(Ct),nt=It==null?gt:bi(It),gt=new Pt(St,Xe+"leave",Ct,H,mt),gt.target=mn,gt.relatedTarget=nt,St=null,Yr(mt)===ot&&(Pt=new Pt(Ze,Xe+"enter",It,H,mt),Pt.target=nt,Pt.relatedTarget=mn,St=Pt),mn=St,Ct&&It)t:{for(Pt=Ct,Ze=It,Xe=0,nt=Pt;nt;nt=gi(nt))Xe++;for(nt=0,St=Ze;St;St=gi(St))nt++;for(;0<Xe-nt;)Pt=gi(Pt),Xe--;for(;0<nt-Xe;)Ze=gi(Ze),nt--;for(;Xe--;){if(Pt===Ze||Ze!==null&&Pt===Ze.alternate)break t;Pt=gi(Pt),Ze=gi(Ze)}Pt=null}else Pt=null;Ct!==null&&vu(bt,gt,Ct,Pt,!1),It!==null&&mn!==null&&vu(bt,mn,It,Pt,!0)}}e:{if(gt=ot?bi(ot):window,Ct=gt.nodeName&>.nodeName.toLowerCase(),Ct==="select"||Ct==="input"&>.type==="file")var Nt=nf;else if(Qs(gt))if(eu)Nt=lf;else{Nt=of;var Mt=rf}else(Ct=gt.nodeName)&&Ct.toLowerCase()==="input"&&(gt.type==="checkbox"||gt.type==="radio")&&(Nt=af);if(Nt&&(Nt=Nt(g,ot))){Zs(bt,Nt,H,mt);break e}Mt&&Mt(g,gt,ot),g==="focusout"&&(Mt=gt._wrapperState)&&Mt.controlled&>.type==="number"&&Wt(gt,"number",gt.value)}switch(Mt=ot?bi(ot):window,g){case"focusin":(Qs(Mt)||Mt.contentEditable==="true")&&(hi=Mt,tl=ot,to=null);break;case"focusout":to=tl=hi=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,su(bt,H,mt);break;case"selectionchange":if(cf)break;case"keydown":case"keyup":su(bt,H,mt)}var Dt;if(Xa)e:{switch(g){case"compositionstart":var Bt="onCompositionStart";break e;case"compositionend":Bt="onCompositionEnd";break e;case"compositionupdate":Bt="onCompositionUpdate";break e}Bt=void 0}else pi?Ys(g,H)&&(Bt="onCompositionEnd"):g==="keydown"&&H.keyCode===229&&(Bt="onCompositionStart");Bt&&(Gs&&H.locale!=="ko"&&(pi||Bt!=="onCompositionStart"?Bt==="onCompositionEnd"&&pi&&(Dt=zs()):(Ar=mt,Wa="value"in Ar?Ar.value:Ar.textContent,pi=!0)),Mt=Go(ot,Bt),0<Mt.length&&(Bt=new Ws(Bt,g,null,H,mt),bt.push({event:Bt,listeners:Mt}),Dt?Bt.data=Dt:(Dt=Xs(H),Dt!==null&&(Bt.data=Dt)))),(Dt=Xd?Qd(g,H):Zd(g,H))&&(ot=Go(ot,"onBeforeInput"),0<ot.length&&(mt=new Ws("onBeforeInput","beforeinput",null,H,mt),bt.push({event:mt,listeners:ot}),mt.data=Dt))}mu(bt,k)})}function io(g,k,H){return{instance:g,listener:k,currentTarget:H}}function Go(g,k){for(var H=k+"Capture",ve=[];g!==null;){var Ce=g,Ie=Ce.stateNode;Ce.tag===5&&Ie!==null&&(Ce=Ie,Ie=yr(g,H),Ie!=null&&ve.unshift(io(g,Ie,Ce)),Ie=yr(g,k),Ie!=null&&ve.push(io(g,Ie,Ce))),g=g.return}return ve}function gi(g){if(g===null)return null;do g=g.return;while(g&&g.tag!==5);return g||null}function vu(g,k,H,ve,Ce){for(var Ie=k._reactName,Me=[];H!==null&&H!==ve;){var We=H,Je=We.alternate,ot=We.stateNode;if(Je!==null&&Je===ve)break;We.tag===5&&ot!==null&&(We=ot,Ce?(Je=yr(H,Ie),Je!=null&&Me.unshift(io(H,Je,We))):Ce||(Je=yr(H,Ie),Je!=null&&Me.push(io(H,Je,We)))),H=H.return}Me.length!==0&&g.push({event:k,listeners:Me})}var hf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function Su(g){return(typeof g=="string"?g:""+g).replace(hf,` 7`).replace(yf,"")}function Ko(g,k,H){if(k=Su(k),Su(g)!==k&&H)throw Error(t(425))}function Jo(){}var sl=null,ul=null;function cl(g,k){return g==="textarea"||g==="noscript"||typeof k.children=="string"||typeof k.children=="number"||typeof k.dangerouslySetInnerHTML=="object"&&k.dangerouslySetInnerHTML!==null&&k.dangerouslySetInnerHTML.__html!=null}var dl=typeof setTimeout=="function"?setTimeout:void 0,gf=typeof clearTimeout=="function"?clearTimeout:void 0,wu=typeof Promise=="function"?Promise:void 0,mf=typeof queueMicrotask=="function"?queueMicrotask:typeof wu<"u"?function(g){return wu.resolve(null).then(g).catch(bf)}:dl;function bf(g){setTimeout(function(){throw g})}function fl(g,k){var H=k,ve=0;do{var Ce=H.nextSibling;if(g.removeChild(H),Ce&&Ce.nodeType===8)if(H=Ce.data,H==="/$"){if(ve===0){g.removeChild(Ce),Ki(k);return}ve--}else H!=="$"&&H!=="$?"&&H!=="$!"||ve++;H=Ce}while(H);Ki(k)}function Nr(g){for(;g!=null;g=g.nextSibling){var k=g.nodeType;if(k===1||k===3)break;if(k===8){if(k=g.data,k==="$"||k==="$!"||k==="$?")break;if(k==="/$")return null}}return g}function Ou(g){g=g.previousSibling;for(var k=0;g;){if(g.nodeType===8){var H=g.data;if(H==="$"||H==="$!"||H==="$?"){if(k===0)return g;k--}else H==="/$"&&k++}g=g.previousSibling}return null}var mi=Math.random().toString(36).slice(2),lr="__reactFiber$"+mi,oo="__reactProps$"+mi,mr="__reactContainer$"+mi,pl="__reactEvents$"+mi,vf="__reactListeners$"+mi,Sf="__reactHandles$"+mi;function Yr(g){var k=g[lr];if(k)return k;for(var H=g.parentNode;H;){if(k=H[mr]||H[lr]){if(H=k.alternate,k.child!==null||H!==null&&H.child!==null)for(g=Ou(g);g!==null;){if(H=g[lr])return H;g=Ou(g)}return k}g=H,H=g.parentNode}return null}function ao(g){return g=g[lr]||g[mr],!g||g.tag!==5&&g.tag!==6&&g.tag!==13&&g.tag!==3?null:g}function bi(g){if(g.tag===5||g.tag===6)return g.stateNode;throw Error(t(33))}function Yo(g){return g[oo]||null}var hl=[],vi=-1;function Fr(g){return{current:g}}function un(g){0>vi||(g.current=hl[vi],hl[vi]=null,vi--)}function an(g,k){vi++,hl[vi]=g.current,g.current=k}var Lr={},$n=Fr(Lr),Dn=Fr(!1),Xr=Lr;function Si(g,k){var H=g.type.contextTypes;if(!H)return Lr;var ve=g.stateNode;if(ve&&ve.__reactInternalMemoizedUnmaskedChildContext===k)return ve.__reactInternalMemoizedMaskedChildContext;var Ce={},Ie;for(Ie in H)Ce[Ie]=k[Ie];return ve&&(g=g.stateNode,g.__reactInternalMemoizedUnmaskedChildContext=k,g.__reactInternalMemoizedMaskedChildContext=Ce),Ce}function Bn(g){return g=g.childContextTypes,g!=null}function Xo(){un(Dn),un($n)}function Tu(g,k,H){if($n.current!==Lr)throw Error(t(168));an($n,k),an(Dn,H)}function Cu(g,k,H){var ve=g.stateNode;if(k=k.childContextTypes,typeof ve.getChildContext!="function")return H;ve=ve.getChildContext();for(var Ce in ve)if(!(Ce in k))throw Error(t(108,Tt(g)||"Unknown",Ce));return Be({},H,ve)}function Qo(g){return g=(g=g.stateNode)&&g.__reactInternalMemoizedMergedChildContext||Lr,Xr=$n.current,an($n,g),an(Dn,Dn.current),!0}function xu(g,k,H){var ve=g.stateNode;if(!ve)throw Error(t(169));H?(g=Cu(g,k,Xr),ve.__reactInternalMemoizedMergedChildContext=g,un(Dn),un($n),an($n,g)):un(Dn),an(Dn,H)}var br=null,Zo=!1,yl=!1;function Eu(g){br===null?br=[g]:br.push(g)}function wf(g){Zo=!0,Eu(g)}function Mr(){if(!yl&&br!==null){yl=!0;var g=0,k=nn;try{var H=br;for(nn=1;g<H.length;g++){var ve=H[g];do ve=ve(!0);while(ve!==null)}br=null,Zo=!1}catch(Ce){throw br!==null&&(br=br.slice(g+1)),ks(Ma,Mr),Ce}finally{nn=k,yl=!1}}return null}var wi=[],Oi=0,ea=null,ta=0,Gn=[],Kn=0,Qr=null,vr=1,Sr="";function Zr(g,k){wi[Oi++]=ta,wi[Oi++]=ea,ea=g,ta=k}function ku(g,k,H){Gn[Kn++]=vr,Gn[Kn++]=Sr,Gn[Kn++]=Qr,Qr=g;var ve=vr;g=Sr;var Ce=32-Zn(ve)-1;ve&=~(1<<Ce),H+=1;var Ie=32-Zn(k)+Ce;if(30<Ie){var Me=Ce-Ce%5;Ie=(ve&(1<<Me)-1).toString(32),ve>>=Me,Ce-=Me,vr=1<<32-Zn(k)+Ce|H<<Ce|ve,Sr=Ie+g}else vr=1<<Ie|H<<Ce|ve,Sr=g}function gl(g){g.return!==null&&(Zr(g,1),ku(g,1,0))}function ml(g){for(;g===ea;)ea=wi[--Oi],wi[Oi]=null,ta=wi[--Oi],wi[Oi]=null;for(;g===Qr;)Qr=Gn[--Kn],Gn[Kn]=null,Sr=Gn[--Kn],Gn[Kn]=null,vr=Gn[--Kn],Gn[Kn]=null}var Hn=null,Wn=null,cn=!1,tr=null;function $u(g,k){var H=Qn(5,null,null,0);H.elementType="DELETED",H.stateNode=k,H.return=g,k=g.deletions,k===null?(g.deletions=[H],g.flags|=16):k.push(H)}function Iu(g,k){switch(g.tag){case 5:var H=g.type;return k=k.nodeType!==1||H.toLowerCase()!==k.nodeName.toLowerCase()?null:k,k!==null?(g.stateNode=k,Hn=g,Wn=Nr(k.firstChild),!0):!1;
vendor: 6,680 bytes, line 7
7case 6:return k=g.pendingProps===""||k.nodeType!==3?null:k,k!==null?(g.stateNode=k,Hn=g,Wn=null,!0):!1;case 13:return k=k.nodeType!==8?null:k,k!==null?(H=Qr!==null?{id:vr,overflow:Sr}:null,g.memoizedState={dehydrated:k,treeContext:H,retryLane:1073741824},H=Qn(18,null,null,0),H.stateNode=k,H.return=g,g.child=H,Hn=g,Wn=null,!0):!1;default:return!1}}function bl(g){return(g.mode&1)!==0&&(g.flags&128)===0}function vl(g){if(cn){var k=Wn;if(k){var H=k;if(!Iu(g,k)){if(bl(g))throw Error(t(418));k=Nr(H.nextSibling);var ve=Hn;k&&Iu(g,k)?$u(ve,H):(g.flags=g.flags&-4097|2,cn=!1,Hn=g)}}else{if(bl(g))throw Error(t(418));g.flags=g.flags&-4097|2,cn=!1,Hn=g}}}function Pu(g){for(g=g.return;g!==null&&g.tag!==5&&g.tag!==3&&g.tag!==13;)g=g.return;Hn=g}function na(g){if(g!==Hn)return!1;if(!cn)return Pu(g),cn=!0,!1;var k;if((k=g.tag!==3)&&!(k=g.tag!==5)&&(k=g.type,k=k!=="head"&&k!=="body"&&!cl(g.type,g.memoizedProps)),k&&(k=Wn)){if(bl(g))throw Au(),Error(t(418));for(;k;)$u(g,k),k=Nr(k.nextSibling)}if(Pu(g),g.tag===13){if(g=g.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(t(317));e:{for(g=g.nextSibling,k=0;g;){if(g.nodeType===8){var H=g.data;if(H==="/$"){if(k===0){Wn=Nr(g.nextSibling);break e}k--}else H!=="$"&&H!=="$!"&&H!=="$?"||k++}g=g.nextSibling}Wn=null}}else Wn=Hn?Nr(g.stateNode.nextSibling):null;return!0}function Au(){for(var g=Wn;g;)g=Nr(g.nextSibling)}function Ti(){Wn=Hn=null,cn=!1}function Sl(g){tr===null?tr=[g]:tr.push(g)}var Of=Fe.ReactCurrentBatchConfig;function lo(g,k,H){if(g=H.ref,g!==null&&typeof g!="function"&&typeof g!="object"){if(H._owner){if(H=H._owner,H){if(H.tag!==1)throw Error(t(309));var ve=H.stateNode}if(!ve)throw Error(t(147,g));var Ce=ve,Ie=""+g;return k!==null&&k.ref!==null&&typeof k.ref=="function"&&k.ref._stringRef===Ie?k.ref:(k=function(Me){var We=Ce.refs;Me===null?delete We[Ie]:We[Ie]=Me},k._stringRef=Ie,k)}if(typeof g!="string")throw Error(t(284));if(!H._owner)throw Error(t(290,g))}return g}function ra(g,k){throw g=Object.prototype.toString.call(k),Error(t(31,g==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":g))}function Ru(g){var k=g._init;return k(g._payload)}function Nu(g){function k(Ze,Xe){if(g){var nt=Ze.deletions;nt===null?(Ze.deletions=[Xe],Ze.flags|=16):nt.push(Xe)}}function H(Ze,Xe){if(!g)return null;for(;Xe!==null;)k(Ze,Xe),Xe=Xe.sibling;return null}function ve(Ze,Xe){for(Ze=new Map;Xe!==null;)Xe.key!==null?Ze.set(Xe.key,Xe):Ze.set(Xe.index,Xe),Xe=Xe.sibling;return Ze}function Ce(Ze,Xe){return Ze=Wr(Ze,Xe),Ze.index=0,Ze.sibling=null,Ze}function Ie(Ze,Xe,nt){return Ze.index=nt,g?(nt=Ze.alternate,nt!==null?(nt=nt.index,nt<Xe?(Ze.flags|=2,Xe):nt):(Ze.flags|=2,Xe)):(Ze.flags|=1048576,Xe)}function Me(Ze){return g&&Ze.alternate===null&&(Ze.flags|=2),Ze}function We(Ze,Xe,nt,St){return Xe===null||Xe.tag!==6?(Xe=ps(nt,Ze.mode,St),Xe.return=Ze,Xe):(Xe=Ce(Xe,nt),Xe.return=Ze,Xe)}function Je(Ze,Xe,nt,St){var Nt=nt.type;return Nt===He?mt(Ze,Xe,nt.props.children,St,nt.key):Xe!==null&&(Xe.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===st&&Ru(Nt)===Xe.type)?(St=Ce(Xe,nt.props),St.ref=lo(Ze,Xe,nt),St.return=Ze,St):(St=ka(nt.type,nt.key,nt.props,null,Ze.mode,St),St.ref=lo(Ze,Xe,nt),St.return=Ze,St)}function ot(Ze,Xe,nt,St){return Xe===null||Xe.tag!==4||Xe.stateNode.containerInfo!==nt.containerInfo||Xe.stateNode.implementation!==nt.implementation?(Xe=hs(nt,Ze.mode,St),Xe.return=Ze,Xe):(Xe=Ce(Xe,nt.children||[]),Xe.return=Ze,Xe)}function mt(Ze,Xe,nt,St,Nt){return Xe===null||Xe.tag!==7?(Xe=li(nt,Ze.mode,St,Nt),Xe.return=Ze,Xe):(Xe=Ce(Xe,nt),Xe.return=Ze,Xe)}function bt(Ze,Xe,nt){if(typeof Xe=="string"&&Xe!==""||typeof Xe=="number")return Xe=ps(""+Xe,Ze.mode,nt),Xe.return=Ze,Xe;if(typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case De:return nt=ka(Xe.type,Xe.key,Xe.props,null,Ze.mode,nt),nt.ref=lo(Ze,null,Xe),nt.return=Ze,nt;case Le:return Xe=hs(Xe,Ze.mode,nt),Xe.return=Ze,Xe;case st:var St=Xe._init;return bt(Ze,St(Xe._payload),nt)}if(tn(Xe)||pt(Xe))return Xe=li(Xe,Ze.mode,nt,null),Xe.return=Ze,Xe;ra(Ze,Xe)}return null}function gt(Ze,Xe,nt,St){var Nt=Xe!==null?Xe.key:null;if(typeof nt=="string"&&nt!==""||typeof nt=="number")return Nt!==null?null:We(Ze,Xe,""+nt,St);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case De:return nt.key===Nt?Je(Ze,Xe,nt,St):null;case Le:return nt.key===Nt?ot(Ze,Xe,nt,St):null;case st:return Nt=nt._init,gt(Ze,Xe,Nt(nt._payload),St)}if(tn(nt)||pt(nt))return Nt!==null?null:mt(Ze,Xe,nt,St,null);ra(Ze,nt)}return null}function Ct(Ze,Xe,nt,St,Nt){if(typeof St=="string"&&St!==""||typeof St=="number")return Ze=Ze.get(nt)||null,We(Xe,Ze,""+St,Nt);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case De:return Ze=Ze.get(St.key===null?nt:St.key)||null,Je(Xe,Ze,St,Nt);case Le:return Ze=Ze.get(St.key===null?nt:St.key)||null,ot(Xe,Ze,St,Nt);case st:var Mt=St._init;return Ct(Ze,Xe,nt,Mt(St._payload),Nt)}if(tn(St)||pt(St))return Ze=Ze.get(nt)||null,mt(Xe,Ze,St,Nt,null);ra(Xe,St)}return null}function It(Ze,Xe,nt,St){for(var Nt=null,Mt=null,Dt=Xe,Bt=Xe=0,Cn=null;Dt!==null&&Bt<nt.length;Bt++){Dt.index>Bt?(Cn=Dt,Dt=null):Cn=Dt.sibling;var Xt=gt(Ze,Dt,nt[Bt],St);if(Xt===null){Dt===null&&(Dt=Cn);break}g&&Dt&&Xt.alternate===null&&k(Ze,Dt),Xe=Ie(Xt,Xe,Bt),Mt===null?Nt=Xt:Mt.sibling=Xt,Mt=Xt,Dt=Cn}if(Bt===nt.length)return H(Ze,Dt),cn&&Zr(Ze,Bt),Nt;if(Dt===null){for(;Bt<nt.length;Bt++)Dt=bt(Ze,nt[Bt],St),Dt!==null&&(Xe=Ie(Dt,Xe,Bt),Mt===null?Nt=Dt:Mt.sibling=Dt,Mt=Dt);return cn&&Zr(Ze,Bt),Nt}for(Dt=ve(Ze,Dt);Bt<nt.length;Bt++)Cn=Ct(Dt,Ze,Bt,nt[Bt],St),Cn!==null&&(g&&Cn.alternate!==null&&Dt.delete(Cn.key===null?Bt:Cn.key),Xe=Ie(Cn,Xe,Bt),Mt===null?Nt=Cn:Mt.sibling=Cn,Mt=Cn);return g&&Dt.forEach(function(qr){return k(Ze,qr)}),cn&&Zr(Ze,Bt),Nt}function Pt(Ze,Xe,nt,St){var Nt=pt(nt);if(typeof Nt!="function")throw Error(t(150));if(nt=Nt.call(nt),nt==null)throw Error(t(151));for(var Mt=Nt=null,Dt=Xe,Bt=Xe=0,Cn=null,Xt=nt.next();Dt!==null&&!Xt.done;Bt++,Xt=nt.next()){Dt.index>Bt?(Cn=Dt,Dt=null):Cn=Dt.sibling;var qr=gt(Ze,Dt,Xt.value,St);if(qr===null){Dt===null&&(Dt=Cn);break}g&&Dt&&qr.alternate===null&&k(Ze,Dt),Xe=Ie(qr,Xe,Bt),Mt===null?Nt=qr:Mt.sibling=qr,Mt=qr,Dt=Cn}if(Xt.done)return H(Ze,Dt),cn&&Zr(Ze,Bt),Nt;if(Dt===null){for(;!Xt.done;Bt++,Xt=nt.next())Xt=bt(Ze,Xt.value,St),Xt!==null&&(Xe=Ie(Xt,Xe,Bt),Mt===null?Nt=Xt:Mt.sibling=Xt,Mt=Xt);return cn&&Zr(Ze,Bt),Nt}for(Dt=ve(Ze,Dt);!Xt.done;Bt++,Xt=nt.next())Xt=Ct(Dt,Ze,Bt,Xt.value,St),Xt!==null&&(g&&Xt.alternate!==null&&Dt.delete(Xt.key===null?Bt:Xt.key),Xe=Ie(Xt,Xe,Bt),Mt===null?Nt=Xt:Mt.sibling=Xt,Mt=Xt);return g&&Dt.forEach(function(np){return k(Ze,np)}),cn&&Zr(Ze,Bt),Nt}function mn(Ze,Xe,nt,St){if(typeof nt=="object"&&nt!==null&&nt.type===
vendor: 6,318 bytes, line 7
7He&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case De:e:{for(var Nt=nt.key,Mt=Xe;Mt!==null;){if(Mt.key===Nt){if(Nt=nt.type,Nt===He){if(Mt.tag===7){H(Ze,Mt.sibling),Xe=Ce(Mt,nt.props.children),Xe.return=Ze,Ze=Xe;break e}}else if(Mt.elementType===Nt||typeof Nt=="object"&&Nt!==null&&Nt.$$typeof===st&&Ru(Nt)===Mt.type){H(Ze,Mt.sibling),Xe=Ce(Mt,nt.props),Xe.ref=lo(Ze,Mt,nt),Xe.return=Ze,Ze=Xe;break e}H(Ze,Mt);break}else k(Ze,Mt);Mt=Mt.sibling}nt.type===He?(Xe=li(nt.props.children,Ze.mode,St,nt.key),Xe.return=Ze,Ze=Xe):(St=ka(nt.type,nt.key,nt.props,null,Ze.mode,St),St.ref=lo(Ze,Xe,nt),St.return=Ze,Ze=St)}return Me(Ze);case Le:e:{for(Mt=nt.key;Xe!==null;){if(Xe.key===Mt)if(Xe.tag===4&&Xe.stateNode.containerInfo===nt.containerInfo&&Xe.stateNode.implementation===nt.implementation){H(Ze,Xe.sibling),Xe=Ce(Xe,nt.children||[]),Xe.return=Ze,Ze=Xe;break e}else{H(Ze,Xe);break}else k(Ze,Xe);Xe=Xe.sibling}Xe=hs(nt,Ze.mode,St),Xe.return=Ze,Ze=Xe}return Me(Ze);case st:return Mt=nt._init,mn(Ze,Xe,Mt(nt._payload),St)}if(tn(nt))return It(Ze,Xe,nt,St);if(pt(nt))return Pt(Ze,Xe,nt,St);ra(Ze,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"?(nt=""+nt,Xe!==null&&Xe.tag===6?(H(Ze,Xe.sibling),Xe=Ce(Xe,nt),Xe.return=Ze,Ze=Xe):(H(Ze,Xe),Xe=ps(nt,Ze.mode,St),Xe.return=Ze,Ze=Xe),Me(Ze)):H(Ze,Xe)}return mn}var Ci=Nu(!0),Fu=Nu(!1),ia=Fr(null),oa=null,xi=null,wl=null;function Ol(){wl=xi=oa=null}function Tl(g){var k=ia.current;un(ia),g._currentValue=k}function Cl(g,k,H){for(;g!==null;){var ve=g.alternate;if((g.childLanes&k)!==k?(g.childLanes|=k,ve!==null&&(ve.childLanes|=k)):ve!==null&&(ve.childLanes&k)!==k&&(ve.childLanes|=k),g===H)break;g=g.return}}function Ei(g,k){oa=g,wl=xi=null,g=g.dependencies,g!==null&&g.firstContext!==null&&((g.lanes&k)!==0&&(Vn=!0),g.firstContext=null)}function Jn(g){var k=g._currentValue;if(wl!==g)if(g={context:g,memoizedValue:k,next:null},xi===null){if(oa===null)throw Error(t(308));xi=g,oa.dependencies={lanes:0,firstContext:g}}else xi=xi.next=g;return k}var ei=null;function xl(g){ei===null?ei=[g]:ei.push(g)}function Lu(g,k,H,ve){var Ce=k.interleaved;return Ce===null?(H.next=H,xl(k)):(H.next=Ce.next,Ce.next=H),k.interleaved=H,wr(g,ve)}function wr(g,k){g.lanes|=k;var H=g.alternate;for(H!==null&&(H.lanes|=k),H=g,g=g.return;g!==null;)g.childLanes|=k,H=g.alternate,H!==null&&(H.childLanes|=k),H=g,g=g.return;return H.tag===3?H.stateNode:null}var Dr=!1;function El(g){g.updateQueue={baseState:g.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mu(g,k){g=g.updateQueue,k.updateQueue===g&&(k.updateQueue={baseState:g.baseState,firstBaseUpdate:g.firstBaseUpdate,lastBaseUpdate:g.lastBaseUpdate,shared:g.shared,effects:g.effects})}function Or(g,k){return{eventTime:g,lane:k,tag:0,payload:null,callback:null,next:null}}function Br(g,k,H){var ve=g.updateQueue;if(ve===null)return null;if(ve=ve.shared,(Jt&2)!==0){var Ce=ve.pending;return Ce===null?k.next=k:(k.next=Ce.next,Ce.next=k),ve.pending=k,wr(g,H)}return Ce=ve.interleaved,Ce===null?(k.next=k,xl(ve)):(k.next=Ce.next,Ce.next=k),ve.interleaved=k,wr(g,H)}function aa(g,k,H){if(k=k.updateQueue,k!==null&&(k=k.shared,(H&4194240)!==0)){var ve=k.lanes;ve&=g.pendingLanes,H|=ve,k.lanes=H,Va(g,H)}}function Du(g,k){var H=g.updateQueue,ve=g.alternate;if(ve!==null&&(ve=ve.updateQueue,H===ve)){var Ce=null,Ie=null;if(H=H.firstBaseUpdate,H!==null){do{var Me={eventTime:H.eventTime,lane:H.lane,tag:H.tag,payload:H.payload,callback:H.callback,next:null};Ie===null?Ce=Ie=Me:Ie=Ie.next=Me,H=H.next}while(H!==null);Ie===null?Ce=Ie=k:Ie=Ie.next=k}else Ce=Ie=k;H={baseState:ve.baseState,firstBaseUpdate:Ce,lastBaseUpdate:Ie,shared:ve.shared,effects:ve.effects},g.updateQueue=H;return}g=H.lastBaseUpdate,g===null?H.firstBaseUpdate=k:g.next=k,H.lastBaseUpdate=k}function la(g,k,H,ve){var Ce=g.updateQueue;Dr=!1;var Ie=Ce.firstBaseUpdate,Me=Ce.lastBaseUpdate,We=Ce.shared.pending;if(We!==null){Ce.shared.pending=null;var Je=We,ot=Je.next;Je.next=null,Me===null?Ie=ot:Me.next=ot,Me=Je;var mt=g.alternate;mt!==null&&(mt=mt.updateQueue,We=mt.lastBaseUpdate,We!==Me&&(We===null?mt.firstBaseUpdate=ot:We.next=ot,mt.lastBaseUpdate=Je))}if(Ie!==null){var bt=Ce.baseState;Me=0,mt=ot=Je=null,We=Ie;do{var gt=We.lane,Ct=We.eventTime;if((ve>)===gt){mt!==null&&(mt=mt.next={eventTime:Ct,lane:0,tag:We.tag,payload:We.payload,callback:We.callback,next:null});e:{var It=g,Pt=We;switch(gt=k,Ct=H,Pt.tag){case 1:if(It=Pt.payload,typeof It=="function"){bt=It.call(Ct,bt,gt);break e}bt=It;break e;case 3:It.flags=It.flags&-65537|128;case 0:if(It=Pt.payload,gt=typeof It=="function"?It.call(Ct,bt,gt):It,gt==null)break e;bt=Be({},bt,gt);break e;case 2:Dr=!0}}We.callback!==null&&We.lane!==0&&(g.flags|=64,gt=Ce.effects,gt===null?Ce.effects=[We]:gt.push(We))}else Ct={eventTime:Ct,lane:gt,tag:We.tag,payload:We.payload,callback:We.callback,next:null},mt===null?(ot=mt=Ct,Je=bt):mt=mt.next=Ct,Me|=gt;if(We=We.next,We===null){if(We=Ce.shared.pending,We===null)break;gt=We,We=gt.next,gt.next=null,Ce.lastBaseUpdate=gt,Ce.shared.pending=null}}while(!0);if(mt===null&&(Je=bt),Ce.baseState=Je,Ce.firstBaseUpdate=ot,Ce.lastBaseUpdate=mt,k=Ce.shared.interleaved,k!==null){Ce=k;do Me|=Ce.lane,Ce=Ce.next;while(Ce!==k)}else Ie===null&&(Ce.shared.lanes=0);ri|=Me,g.lanes=Me,g.memoizedState=bt}}function Bu(g,k,H){if(g=k.effects,k.effects=null,g!==null)for(k=0;k<g.length;k++){var ve=g[k],Ce=ve.callback;if(Ce!==null){if(ve.callback=null,ve=H,typeof Ce!="function")throw Error(t(191,Ce));Ce.call(ve)}}}var so={},sr=Fr(so),uo=Fr(so),co=Fr(so);function ti(g){if(g===so)throw Error(t(174));return g}function kl(g,k){switch(an(co,k),an(uo,g),an(sr,so),g=k.nodeType,g){case 9:case 11:k=(k=k.documentElement)?k.namespaceURI:vt(null,"");break;default:g=g===8?k.parentNode:k,k=g.namespaceURI||null,g=g.tagName,k=vt(k,g)}un(sr),an(sr,k)}function ki(){un(sr),un(uo),un(co)}function Vu(g){ti(co.current);var k=ti(sr.current),H=vt(k,g.type);k!==H&&(an(uo,g),an(sr,H))}function $l(g){uo.current===g&&(un(sr),un(uo))}var pn=Fr(0);function sa(g){for(var k=g;k!==null;){if(k.tag===13){var H=k.memoizedState;if(H!==null&&(H=H.dehydrated,H===null||H.data==="$?"||H.data==="$!"))return k}else if(k.tag===19&&k.memoizedProps.revealOrder!==void 0){if((k.flags&128)!==0)return k}
vendor: 4,756 bytes, line 7
7else if(k.child!==null){k.child.return=k,k=k.child;continue}if(k===g)break;for(;k.sibling===null;){if(k.return===null||k.return===g)return null;k=k.return}k.sibling.return=k.return,k=k.sibling}return null}var Il=[];function Pl(){for(var g=0;g<Il.length;g++)Il[g]._workInProgressVersionPrimary=null;Il.length=0}var ua=Fe.ReactCurrentDispatcher,Al=Fe.ReactCurrentBatchConfig,ni=0,hn=null,Sn=null,On=null,ca=!1,fo=!1,po=0,Tf=0;function In(){throw Error(t(321))}function Rl(g,k){if(k===null)return!1;for(var H=0;H<k.length&&H<g.length;H++)if(!er(g[H],k[H]))return!1;return!0}function Nl(g,k,H,ve,Ce,Ie){if(ni=Ie,hn=k,k.memoizedState=null,k.updateQueue=null,k.lanes=0,ua.current=g===null||g.memoizedState===null?kf:$f,g=H(ve,Ce),fo){Ie=0;do{if(fo=!1,po=0,25<=Ie)throw Error(t(301));Ie+=1,On=Sn=null,k.updateQueue=null,ua.current=If,g=H(ve,Ce)}while(fo)}if(ua.current=pa,k=Sn!==null&&Sn.next!==null,ni=0,On=Sn=hn=null,ca=!1,k)throw Error(t(300));return g}function Fl(){var g=po!==0;return po=0,g}function ur(){var g={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?hn.memoizedState=On=g:On=On.next=g,On}function Yn(){if(Sn===null){var g=hn.alternate;g=g!==null?g.memoizedState:null}else g=Sn.next;var k=On===null?hn.memoizedState:On.next;if(k!==null)On=k,Sn=g;else{if(g===null)throw Error(t(310));Sn=g,g={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},On===null?hn.memoizedState=On=g:On=On.next=g}return On}function ho(g,k){return typeof k=="function"?k(g):k}function Ll(g){var k=Yn(),H=k.queue;if(H===null)throw Error(t(311));H.lastRenderedReducer=g;var ve=Sn,Ce=ve.baseQueue,Ie=H.pending;if(Ie!==null){if(Ce!==null){var Me=Ce.next;Ce.next=Ie.next,Ie.next=Me}ve.baseQueue=Ce=Ie,H.pending=null}if(Ce!==null){Ie=Ce.next,ve=ve.baseState;var We=Me=null,Je=null,ot=Ie;do{var mt=ot.lane;if((ni&mt)===mt)Je!==null&&(Je=Je.next={lane:0,action:ot.action,hasEagerState:ot.hasEagerState,eagerState:ot.eagerState,next:null}),ve=ot.hasEagerState?ot.eagerState:g(ve,ot.action);else{var bt={lane:mt,action:ot.action,hasEagerState:ot.hasEagerState,eagerState:ot.eagerState,next:null};Je===null?(We=Je=bt,Me=ve):Je=Je.next=bt,hn.lanes|=mt,ri|=mt}ot=ot.next}while(ot!==null&&ot!==Ie);Je===null?Me=ve:Je.next=We,er(ve,k.memoizedState)||(Vn=!0),k.memoizedState=ve,k.baseState=Me,k.baseQueue=Je,H.lastRenderedState=ve}if(g=H.interleaved,g!==null){Ce=g;do Ie=Ce.lane,hn.lanes|=Ie,ri|=Ie,Ce=Ce.next;while(Ce!==g)}else Ce===null&&(H.lanes=0);return[k.memoizedState,H.dispatch]}function Ml(g){var k=Yn(),H=k.queue;if(H===null)throw Error(t(311));H.lastRenderedReducer=g;var ve=H.dispatch,Ce=H.pending,Ie=k.memoizedState;if(Ce!==null){H.pending=null;var Me=Ce=Ce.next;do Ie=g(Ie,Me.action),Me=Me.next;while(Me!==Ce);er(Ie,k.memoizedState)||(Vn=!0),k.memoizedState=Ie,k.baseQueue===null&&(k.baseState=Ie),H.lastRenderedState=Ie}return[Ie,ve]}function ju(){}function zu(g,k){var H=hn,ve=Yn(),Ce=k(),Ie=!er(ve.memoizedState,Ce);if(Ie&&(ve.memoizedState=Ce,Vn=!0),ve=ve.queue,Dl(Wu.bind(null,H,ve,g),[g]),ve.getSnapshot!==k||Ie||On!==null&&On.memoizedState.tag&1){if(H.flags|=2048,yo(9,Hu.bind(null,H,ve,Ce,k),void 0,null),Tn===null)throw Error(t(349));(ni&30)!==0||Uu(H,k,Ce)}return Ce}function Uu(g,k,H){g.flags|=16384,g={getSnapshot:k,value:H},k=hn.updateQueue,k===null?(k={lastEffect:null,stores:null},hn.updateQueue=k,k.stores=[g]):(H=k.stores,H===null?k.stores=[g]:H.push(g))}function Hu(g,k,H,ve){k.value=H,k.getSnapshot=ve,qu(k)&&Gu(g)}function Wu(g,k,H){return H(function(){qu(k)&&Gu(g)})}function qu(g){var k=g.getSnapshot;g=g.value;try{var H=k();return!er(g,H)}catch{return!0}}function Gu(g){var k=wr(g,1);k!==null&&or(k,g,1,-1)}function Ku(g){var k=ur();return typeof g=="function"&&(g=g()),k.memoizedState=k.baseState=g,g={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:g},k.queue=g,g=g.dispatch=Ef.bind(null,hn,g),[k.memoizedState,g]}function yo(g,k,H,ve){return g={tag:g,create:k,destroy:H,deps:ve,next:null},k=hn.updateQueue,k===null?(k={lastEffect:null,stores:null},hn.updateQueue=k,k.lastEffect=g.next=g):(H=k.lastEffect,H===null?k.lastEffect=g.next=g:(ve=H.next,H.next=g,g.next=ve,k.lastEffect=g)),g}function Ju(){return Yn().memoizedState}function da(g,k,H,ve){var Ce=ur();hn.flags|=g,Ce.memoizedState=yo(1|k,H,void 0,ve===void 0?null:ve)}function fa(g,k,H,ve){var Ce=Yn();ve=ve===void 0?null:ve;var Ie=void 0;if(Sn!==null){var Me=Sn.memoizedState;if(Ie=Me.destroy,ve!==null&&Rl(ve,Me.deps)){Ce.memoizedState=yo(k,H,Ie,ve);return}}hn.flags|=g,Ce.memoizedState=yo(1|k,H,Ie,ve)}function Yu(g,k){return da(8390656,8,g,k)}function Dl(g,k){return fa(2048,8,g,k)}function Xu(g,k){return fa(4,2,g,k)}function Qu(g,k){return fa(4,4,g,k)}
vendor: 4,582 bytes, line 7
7function Zu(g,k){if(typeof k=="function")return g=g(),k(g),function(){k(null)};if(k!=null)return g=g(),k.current=g,function(){k.current=null}}function ec(g,k,H){return H=H!=null?H.concat([g]):null,fa(4,4,Zu.bind(null,k,g),H)}function Bl(){}function tc(g,k){var H=Yn();k=k===void 0?null:k;var ve=H.memoizedState;return ve!==null&&k!==null&&Rl(k,ve[1])?ve[0]:(H.memoizedState=[g,k],g)}function nc(g,k){var H=Yn();k=k===void 0?null:k;var ve=H.memoizedState;return ve!==null&&k!==null&&Rl(k,ve[1])?ve[0]:(g=g(),H.memoizedState=[g,k],g)}function rc(g,k,H){return(ni&21)===0?(g.baseState&&(g.baseState=!1,Vn=!0),g.memoizedState=H):(er(H,k)||(H=As(),hn.lanes|=H,ri|=H,g.baseState=!0),k)}function Cf(g,k){var H=nn;nn=H!==0&&4>H?H:4,g(!0);var ve=Al.transition;Al.transition={};try{g(!1),k()}finally{nn=H,Al.transition=ve}}function ic(){return Yn().memoizedState}function xf(g,k,H){var ve=Ur(g);if(H={lane:ve,action:H,hasEagerState:!1,eagerState:null,next:null},oc(g))ac(k,H);else if(H=Lu(g,k,H,ve),H!==null){var Ce=Ln();or(H,g,ve,Ce),lc(H,k,ve)}}function Ef(g,k,H){var ve=Ur(g),Ce={lane:ve,action:H,hasEagerState:!1,eagerState:null,next:null};if(oc(g))ac(k,Ce);else{var Ie=g.alternate;if(g.lanes===0&&(Ie===null||Ie.lanes===0)&&(Ie=k.lastRenderedReducer,Ie!==null))try{var Me=k.lastRenderedState,We=Ie(Me,H);if(Ce.hasEagerState=!0,Ce.eagerState=We,er(We,Me)){var Je=k.interleaved;Je===null?(Ce.next=Ce,xl(k)):(Ce.next=Je.next,Je.next=Ce),k.interleaved=Ce;return}}catch{}H=Lu(g,k,Ce,ve),H!==null&&(Ce=Ln(),or(H,g,ve,Ce),lc(H,k,ve))}}function oc(g){var k=g.alternate;return g===hn||k!==null&&k===hn}function ac(g,k){fo=ca=!0;var H=g.pending;H===null?k.next=k:(k.next=H.next,H.next=k),g.pending=k}function lc(g,k,H){if((H&4194240)!==0){var ve=k.lanes;ve&=g.pendingLanes,H|=ve,k.lanes=H,Va(g,H)}}var pa={readContext:Jn,useCallback:In,useContext:In,useEffect:In,useImperativeHandle:In,useInsertionEffect:In,useLayoutEffect:In,useMemo:In,useReducer:In,useRef:In,useState:In,useDebugValue:In,useDeferredValue:In,useTransition:In,useMutableSource:In,useSyncExternalStore:In,useId:In,unstable_isNewReconciler:!1},kf={readContext:Jn,useCallback:function(g,k){return ur().memoizedState=[g,k===void 0?null:k],g},useContext:Jn,useEffect:Yu,useImperativeHandle:function(g,k,H){return H=H!=null?H.concat([g]):null,da(4194308,4,Zu.bind(null,k,g),H)},useLayoutEffect:function(g,k){return da(4194308,4,g,k)},useInsertionEffect:function(g,k){return da(4,2,g,k)},useMemo:function(g,k){var H=ur();return k=k===void 0?null:k,g=g(),H.memoizedState=[g,k],g},useReducer:function(g,k,H){var ve=ur();return k=H!==void 0?H(k):k,ve.memoizedState=ve.baseState=k,g={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:g,lastRenderedState:k},ve.queue=g,g=g.dispatch=xf.bind(null,hn,g),[ve.memoizedState,g]},useRef:function(g){var k=ur();return g={current:g},k.memoizedState=g},useState:Ku,useDebugValue:Bl,useDeferredValue:function(g){return ur().memoizedState=g},useTransition:function(){var g=Ku(!1),k=g[0];return g=Cf.bind(null,g[1]),ur().memoizedState=g,[k,g]},useMutableSource:function(){},useSyncExternalStore:function(g,k,H){var ve=hn,Ce=ur();if(cn){if(H===void 0)throw Error(t(407));H=H()}else{if(H=k(),Tn===null)throw Error(t(349));(ni&30)!==0||Uu(ve,k,H)}Ce.memoizedState=H;var Ie={value:H,getSnapshot:k};return Ce.queue=Ie,Yu(Wu.bind(null,ve,Ie,g),[g]),ve.flags|=2048,yo(9,Hu.bind(null,ve,Ie,H,k),void 0,null),H},useId:function(){var g=ur(),k=Tn.identifierPrefix;if(cn){var H=Sr,ve=vr;H=(ve&~(1<<32-Zn(ve)-1)).toString(32)+H,k=":"+k+"R"+H,H=po++,0<H&&(k+="H"+H.toString(32)),k+=":"}else H=Tf++,k=":"+k+"r"+H.toString(32)+":";return g.memoizedState=k},unstable_isNewReconciler:!1},$f={readContext:Jn,useCallback:tc,useContext:Jn,useEffect:Dl,useImperativeHandle:ec,useInsertionEffect:Xu,useLayoutEffect:Qu,useMemo:nc,useReducer:Ll,useRef:Ju,useState:function(){return Ll(ho)},useDebugValue:Bl,useDeferredValue:function(g){var k=Yn();return rc(k,Sn.memoizedState,g)},useTransition:function(){var g=Ll(ho)[0],k=Yn().memoizedState;return[g,k]},useMutableSource:ju,useSyncExternalStore:zu,useId:ic,unstable_isNewReconciler:!1},If={readContext:Jn,useCallback:tc,useContext:Jn,useEffect:Dl,useImperativeHandle:ec,useInsertionEffect:Xu,useLayoutEffect:Qu,useMemo:nc,useReducer:Ml,useRef:Ju,useState:function(){return Ml(ho)},useDebugValue:Bl,useDeferredValue:function(g){var k=Yn();return Sn===null?k.memoizedState=g:rc(k,Sn.memoizedState,g)},useTransition:function(){var g=Ml(ho)[0],k=Yn().memoizedState;return[g,k]},useMutableSource:ju,useSyncExternalStore:zu,useId:ic,unstable_isNewReconciler:!1};
vendor: 1,836 bytes, line 7
7function nr(g,k){if(g&&g.defaultProps){k=Be({},k),g=g.defaultProps;for(var H in g)k[H]===void 0&&(k[H]=g[H]);return k}return k}function Vl(g,k,H,ve){k=g.memoizedState,H=H(ve,k),H=H==null?k:Be({},k,H),g.memoizedState=H,g.lanes===0&&(g.updateQueue.baseState=H)}var ha={isMounted:function(g){return(g=g._reactInternals)?Jr(g)===g:!1},enqueueSetState:function(g,k,H){g=g._reactInternals;var ve=Ln(),Ce=Ur(g),Ie=Or(ve,Ce);Ie.payload=k,H!=null&&(Ie.callback=H),k=Br(g,Ie,Ce),k!==null&&(or(k,g,Ce,ve),aa(k,g,Ce))},enqueueReplaceState:function(g,k,H){g=g._reactInternals;var ve=Ln(),Ce=Ur(g),Ie=Or(ve,Ce);Ie.tag=1,Ie.payload=k,H!=null&&(Ie.callback=H),k=Br(g,Ie,Ce),k!==null&&(or(k,g,Ce,ve),aa(k,g,Ce))},enqueueForceUpdate:function(g,k){g=g._reactInternals;var H=Ln(),ve=Ur(g),Ce=Or(H,ve);Ce.tag=2,k!=null&&(Ce.callback=k),k=Br(g,Ce,ve),k!==null&&(or(k,g,ve,H),aa(k,g,ve))}};function sc(g,k,H,ve,Ce,Ie,Me){return g=g.stateNode,typeof g.shouldComponentUpdate=="function"?g.shouldComponentUpdate(ve,Ie,Me):k.prototype&&k.prototype.isPureReactComponent?!eo(H,ve)||!eo(Ce,Ie):!0}function uc(g,k,H){var ve=!1,Ce=Lr,Ie=k.contextType;return typeof Ie=="object"&&Ie!==null?Ie=Jn(Ie):(Ce=Bn(k)?Xr:$n.current,ve=k.contextTypes,Ie=(ve=ve!=null)?Si(g,Ce):Lr),k=new k(H,Ie),g.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=ha,g.stateNode=k,k._reactInternals=g,ve&&(g=g.stateNode,g.__reactInternalMemoizedUnmaskedChildContext=Ce,g.__reactInternalMemoizedMaskedChildContext=Ie),k}function cc(g,k,H,ve){g=k.state,typeof k.componentWillReceiveProps=="function"&&k.componentWillReceiveProps(H,ve),typeof k.UNSAFE_componentWillReceiveProps=="function"&&k.UNSAFE_componentWillReceiveProps(H,ve),k.state!==g&&ha.enqueueReplaceState(k,k.state,null)}function jl(g,k,H,ve){var Ce=g.stateNode;Ce.props=H,Ce.state=g.memoizedState,Ce.refs={},El(g);
vendor: 8,821 bytes, lines 7-9
7var Ie=k.contextType;typeof Ie=="object"&&Ie!==null?Ce.context=Jn(Ie):(Ie=Bn(k)?Xr:$n.current,Ce.context=Si(g,Ie)),Ce.state=g.memoizedState,Ie=k.getDerivedStateFromProps,typeof Ie=="function"&&(Vl(g,k,Ie,H),Ce.state=g.memoizedState),typeof k.getDerivedStateFromProps=="function"||typeof Ce.getSnapshotBeforeUpdate=="function"||typeof Ce.UNSAFE_componentWillMount!="function"&&typeof Ce.componentWillMount!="function"||(k=Ce.state,typeof Ce.componentWillMount=="function"&&Ce.componentWillMount(),typeof Ce.UNSAFE_componentWillMount=="function"&&Ce.UNSAFE_componentWillMount(),k!==Ce.state&&ha.enqueueReplaceState(Ce,Ce.state,null),la(g,H,Ce,ve),Ce.state=g.memoizedState),typeof Ce.componentDidMount=="function"&&(g.flags|=4194308)}function _i(g,k){try{var H="",ve=k;do H+=Rt(ve),ve=ve.return;while(ve);var Ce=H}catch(Ie){Ce=` 8Error generating stack: `+Ie.message+` 9`+Ie.stack}return{value:g,source:k,stack:Ce,digest:null}}function zl(g,k,H){return{value:g,source:null,stack:H??null,digest:k??null}}function Ul(g,k){try{console.error(k.value)}catch(H){setTimeout(function(){throw H})}}var Pf=typeof WeakMap=="function"?WeakMap:Map;function dc(g,k,H){H=Or(-1,H),H.tag=3,H.payload={element:null};var ve=k.value;return H.callback=function(){wa||(wa=!0,os=ve),Ul(g,k)},H}function fc(g,k,H){H=Or(-1,H),H.tag=3;var ve=g.type.getDerivedStateFromError;if(typeof ve=="function"){var Ce=k.value;H.payload=function(){return ve(Ce)},H.callback=function(){Ul(g,k)}}var Ie=g.stateNode;return Ie!==null&&typeof Ie.componentDidCatch=="function"&&(H.callback=function(){Ul(g,k),typeof ve!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var Me=k.stack;this.componentDidCatch(k.value,{componentStack:Me!==null?Me:""})}),H}function pc(g,k,H){var ve=g.pingCache;if(ve===null){ve=g.pingCache=new Pf;var Ce=new Set;ve.set(k,Ce)}else Ce=ve.get(k),Ce===void 0&&(Ce=new Set,ve.set(k,Ce));Ce.has(H)||(Ce.add(H),g=Wf.bind(null,g,k,H),k.then(g,g))}function hc(g){do{var k;if((k=g.tag===13)&&(k=g.memoizedState,k=k!==null?k.dehydrated!==null:!0),k)return g;g=g.return}while(g!==null);return null}function yc(g,k,H,ve,Ce){return(g.mode&1)===0?(g===k?g.flags|=65536:(g.flags|=128,H.flags|=131072,H.flags&=-52805,H.tag===1&&(H.alternate===null?H.tag=17:(k=Or(-1,1),k.tag=2,Br(H,k,1))),H.lanes|=1),g):(g.flags|=65536,g.lanes=Ce,g)}var Af=Fe.ReactCurrentOwner,Vn=!1;function Fn(g,k,H,ve){k.child=g===null?Fu(k,null,H,ve):Ci(k,g.child,H,ve)}function gc(g,k,H,ve,Ce){H=H.render;var Ie=k.ref;return Ei(k,Ce),ve=Nl(g,k,H,ve,Ie,Ce),H=Fl(),g!==null&&!Vn?(k.updateQueue=g.updateQueue,k.flags&=-2053,g.lanes&=~Ce,Tr(g,k,Ce)):(cn&&H&&gl(k),k.flags|=1,Fn(g,k,ve,Ce),k.child)}function mc(g,k,H,ve,Ce){if(g===null){var Ie=H.type;return typeof Ie=="function"&&!fs(Ie)&&Ie.defaultProps===void 0&&H.compare===null&&H.defaultProps===void 0?(k.tag=15,k.type=Ie,bc(g,k,Ie,ve,Ce)):(g=ka(H.type,null,ve,k,k.mode,Ce),g.ref=k.ref,g.return=k,k.child=g)}if(Ie=g.child,(g.lanes&Ce)===0){var Me=Ie.memoizedProps;if(H=H.compare,H=H!==null?H:eo,H(Me,ve)&&g.ref===k.ref)return Tr(g,k,Ce)}return k.flags|=1,g=Wr(Ie,ve),g.ref=k.ref,g.return=k,k.child=g}function bc(g,k,H,ve,Ce){if(g!==null){var Ie=g.memoizedProps;if(eo(Ie,ve)&&g.ref===k.ref)if(Vn=!1,k.pendingProps=ve=Ie,(g.lanes&Ce)!==0)(g.flags&131072)!==0&&(Vn=!0);else return k.lanes=g.lanes,Tr(g,k,Ce)}return Hl(g,k,H,ve,Ce)}function vc(g,k,H){var ve=k.pendingProps,Ce=ve.children,Ie=g!==null?g.memoizedState:null;if(ve.mode==="hidden")if((k.mode&1)===0)k.memoizedState={baseLanes:0,cachePool:null,transitions:null},an(Ii,qn),qn|=H;else{if((H&1073741824)===0)return g=Ie!==null?Ie.baseLanes|H:H,k.lanes=k.childLanes=1073741824,k.memoizedState={baseLanes:g,cachePool:null,transitions:null},k.updateQueue=null,an(Ii,qn),qn|=g,null;k.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve=Ie!==null?Ie.baseLanes:H,an(Ii,qn),qn|=ve}else Ie!==null?(ve=Ie.baseLanes|H,k.memoizedState=null):ve=H,an(Ii,qn),qn|=ve;return Fn(g,k,Ce,H),k.child}function Sc(g,k){var H=k.ref;(g===null&&H!==null||g!==null&&g.ref!==H)&&(k.flags|=512,k.flags|=2097152)}function Hl(g,k,H,ve,Ce){var Ie=Bn(H)?Xr:$n.current;return Ie=Si(k,Ie),Ei(k,Ce),H=Nl(g,k,H,ve,Ie,Ce),ve=Fl(),g!==null&&!Vn?(k.updateQueue=g.updateQueue,k.flags&=-2053,g.lanes&=~Ce,Tr(g,k,Ce)):(cn&&ve&&gl(k),k.flags|=1,Fn(g,k,H,Ce),k.child)}function wc(g,k,H,ve,Ce){if(Bn(H)){var Ie=!0;Qo(k)}else Ie=!1;if(Ei(k,Ce),k.stateNode===null)ga(g,k),uc(k,H,ve),jl(k,H,ve,Ce),ve=!0;else if(g===null){var Me=k.stateNode,We=k.memoizedProps;Me.props=We;var Je=Me.context,ot=H.contextType;typeof ot=="object"&&ot!==null?ot=Jn(ot):(ot=Bn(H)?Xr:$n.current,ot=Si(k,ot));var mt=H.getDerivedStateFromProps,bt=typeof mt=="function"||typeof Me.getSnapshotBeforeUpdate=="function";bt||typeof Me.UNSAFE_componentWillReceiveProps!="function"&&typeof Me.componentWillReceiveProps!="function"||(We!==ve||Je!==ot)&&cc(k,Me,ve,ot),Dr=!1;var gt=k.memoizedState;Me.state=gt,la(k,ve,Me,Ce),Je=k.memoizedState,We!==ve||gt!==Je||Dn.current||Dr?(typeof mt=="function"&&(Vl(k,H,mt,ve),Je=k.memoizedState),(We=Dr||sc(k,H,We,ve,gt,Je,ot))?(bt||typeof Me.UNSAFE_componentWillMount!="function"&&typeof Me.componentWillMount!="function"||(typeof Me.componentWillMount=="function"&&Me.componentWillMount(),typeof Me.UNSAFE_componentWillMount=="function"&&Me.UNSAFE_componentWillMount()),typeof Me.componentDidMount=="function"&&(k.flags|=4194308)):(typeof Me.componentDidMount=="function"&&(k.flags|=4194308),k.memoizedProps=ve,k.memoizedState=Je),Me.props=ve,Me.state=Je,Me.context=ot,ve=We):(typeof Me.componentDidMount=="function"&&(k.flags|=4194308),ve=!1)}else{Me=k.stateNode,Mu(g,k),We=k.memoizedProps,ot=k.type===k.elementType?We:nr(k.type,We),Me.props=ot,bt=k.pendingProps,gt=Me.context,Je=H.contextType,typeof Je=="object"&&Je!==null?Je=Jn(Je):(Je=Bn(H)?Xr:$n.current,Je=Si(k,Je));var Ct=H.getDerivedStateFromProps;(mt=typeof Ct=="function"||typeof Me.getSnapshotBeforeUpdate=="function")||typeof Me.UNSAFE_componentWillReceiveProps!="function"&&typeof Me.componentWillReceiveProps!="function"||(We!==bt||gt!==Je)&&cc(k,Me,ve,Je),Dr=!1,gt=k.memoizedState,Me.state=gt,la(k,ve,Me,Ce);var It=k.memoizedState;We!==bt||gt!==It||Dn.current||Dr?(typeof Ct=="function"&&(Vl(k,H,Ct,ve),It=k.memoizedState),(ot=Dr||sc(k,H,ot,ve,gt,It,Je)||!1)?(mt||typeof Me.UNSAFE_componentWillUpdate!="function"&&typeof Me.componentWillUpdate!="function"||(typeof Me.componentWillUpdate=="function"&&Me.componentWillUpdate(ve,It,Je),typeof Me.UNSAFE_componentWillUpdate=="function"&&Me.UNSAFE_componentWillUpdate(ve,It,Je)),typeof Me.componentDidUpdate=="function"&&(k.flags|=4),typeof Me.getSnapshotBeforeUpdate=="function"&&(k.flags|=1024)):(typeof Me.componentDidUpdate!="function"||We===g.memoizedProps&>===g.memoizedState||(k.flags|=4),typeof Me.getSnapshotBeforeUpdate!="function"||We===g.memoizedProps&>===g.memoizedState||(k.flags|=1024),k.memoizedProps=ve,k.memoizedState=It),Me.props=ve,Me.state=It,Me.context=Je,ve=ot):(typeof Me.componentDidUpdate!="function"||We===g.memoizedProps&>===g.memoizedState||(k.flags|=4),typeof Me.getSnapshotBeforeUpdate!="function"||We===g.memoizedProps&>===g.memoizedState||(k.flags|=1024),ve=!1)}return Wl(g,k,H,ve,Ie,Ce)}function Wl(g,k,H,ve,Ce,Ie){Sc(g,k);var Me=(k.flags&128)!==0;if(!ve&&!Me)return Ce&&xu(k,H,!1),Tr(g,k,Ie);ve=k.stateNode,Af.current=k;var We=Me&&typeof H.getDerivedStateFromError!="function"?null:ve.render();return k.flags|=1,g!==null&&Me?(k.child=Ci(k,g.child,null,Ie),k.child=Ci(k,null,We,Ie)):Fn(g,k,We,Ie),k.memoizedState=ve.state,Ce&&xu(k,H,!0),k.child}function Oc(g){var k=g.stateNode;k.pendingContext?Tu(g,k.pendingContext,k.pendingContext!==k.context):k.context&&Tu(g,k.context,!1),kl(g,k.containerInfo)}function Tc(g,k,H,ve,Ce){return Ti(),Sl(Ce),k.flags|=256,Fn(g,k,H,ve),k.child}var ql={dehydrated:null,treeContext:null,retryLane:0};function Gl(g){return{baseLanes:g,cachePool:null,transitions:null}}function Cc(g,k,H){var ve=k.pendingProps,Ce=pn.current,Ie=!1,Me=(k.flags&128)!==0,We;if((We=Me)||(We=g!==null&&g.memoizedState===null?!1:(Ce&2)!==0),We?(Ie=!0,k.flags&=-129):(g===null||g.memoizedState!==null)&&(Ce|=1),an(pn,Ce&1),g===null)return vl(k),g=k.memoizedState,g!==null&&(g=g.dehydrated,g!==null)?((k.mode&1)===0?k.lanes=1:g.data==="$!"?k.lanes=8:k.lanes=1073741824,null):(Me=ve.children,g=ve.fallback,Ie?(ve=k.mode,Ie=k.child,Me={mode:"hidden",children:Me},(ve&1)===0&&Ie!==null?(Ie.childLanes=0,Ie.pendingProps=Me):Ie=$a(Me,ve,0,null),g=li(g,ve,H,null),Ie.return=k,g.return=k,Ie.sibling=g,k.child=Ie,k.child.memoizedState=Gl(H),k.memoizedState=ql,g):Kl(k,Me));if(Ce=g.memoizedState,Ce!==null&&(We=Ce.dehydrated,We!==null))return Rf(g,k,Me,ve,We,Ce,H);if(Ie){Ie=ve.fallback,Me=k.mode,Ce=g.child,We=Ce.sibling;var Je={mode:"hidden",children:ve.children};return(Me&1)===0&&k.child!==Ce?(ve=k.child,ve.childLanes=0,ve.pendingProps=Je,k.deleti
vendor: 5,254 bytes, line 9
9ons=null):(ve=Wr(Ce,Je),ve.subtreeFlags=Ce.subtreeFlags&14680064),We!==null?Ie=Wr(We,Ie):(Ie=li(Ie,Me,H,null),Ie.flags|=2),Ie.return=k,ve.return=k,ve.sibling=Ie,k.child=ve,ve=Ie,Ie=k.child,Me=g.child.memoizedState,Me=Me===null?Gl(H):{baseLanes:Me.baseLanes|H,cachePool:null,transitions:Me.transitions},Ie.memoizedState=Me,Ie.childLanes=g.childLanes&~H,k.memoizedState=ql,ve}return Ie=g.child,g=Ie.sibling,ve=Wr(Ie,{mode:"visible",children:ve.children}),(k.mode&1)===0&&(ve.lanes=H),ve.return=k,ve.sibling=null,g!==null&&(H=k.deletions,H===null?(k.deletions=[g],k.flags|=16):H.push(g)),k.child=ve,k.memoizedState=null,ve}function Kl(g,k){return k=$a({mode:"visible",children:k},g.mode,0,null),k.return=g,g.child=k}function ya(g,k,H,ve){return ve!==null&&Sl(ve),Ci(k,g.child,null,H),g=Kl(k,k.pendingProps.children),g.flags|=2,k.memoizedState=null,g}function Rf(g,k,H,ve,Ce,Ie,Me){if(H)return k.flags&256?(k.flags&=-257,ve=zl(Error(t(422))),ya(g,k,Me,ve)):k.memoizedState!==null?(k.child=g.child,k.flags|=128,null):(Ie=ve.fallback,Ce=k.mode,ve=$a({mode:"visible",children:ve.children},Ce,0,null),Ie=li(Ie,Ce,Me,null),Ie.flags|=2,ve.return=k,Ie.return=k,ve.sibling=Ie,k.child=ve,(k.mode&1)!==0&&Ci(k,g.child,null,Me),k.child.memoizedState=Gl(Me),k.memoizedState=ql,Ie);if((k.mode&1)===0)return ya(g,k,Me,null);if(Ce.data==="$!"){if(ve=Ce.nextSibling&&Ce.nextSibling.dataset,ve)var We=ve.dgst;return ve=We,Ie=Error(t(419)),ve=zl(Ie,ve,void 0),ya(g,k,Me,ve)}if(We=(Me&g.childLanes)!==0,Vn||We){if(ve=Tn,ve!==null){switch(Me&-Me){case 4:Ce=2;break;case 16:Ce=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:Ce=32;break;case 536870912:Ce=268435456;break;default:Ce=0}Ce=(Ce&(ve.suspendedLanes|Me))!==0?0:Ce,Ce!==0&&Ce!==Ie.retryLane&&(Ie.retryLane=Ce,wr(g,Ce),or(ve,g,Ce,-1))}return ds(),ve=zl(Error(t(421))),ya(g,k,Me,ve)}return Ce.data==="$?"?(k.flags|=128,k.child=g.child,k=qf.bind(null,g),Ce._reactRetry=k,null):(g=Ie.treeContext,Wn=Nr(Ce.nextSibling),Hn=k,cn=!0,tr=null,g!==null&&(Gn[Kn++]=vr,Gn[Kn++]=Sr,Gn[Kn++]=Qr,vr=g.id,Sr=g.overflow,Qr=k),k=Kl(k,ve.children),k.flags|=4096,k)}function xc(g,k,H){g.lanes|=k;var ve=g.alternate;ve!==null&&(ve.lanes|=k),Cl(g.return,k,H)}function Jl(g,k,H,ve,Ce){var Ie=g.memoizedState;Ie===null?g.memoizedState={isBackwards:k,rendering:null,renderingStartTime:0,last:ve,tail:H,tailMode:Ce}:(Ie.isBackwards=k,Ie.rendering=null,Ie.renderingStartTime=0,Ie.last=ve,Ie.tail=H,Ie.tailMode=Ce)}function Ec(g,k,H){var ve=k.pendingProps,Ce=ve.revealOrder,Ie=ve.tail;if(Fn(g,k,ve.children,H),ve=pn.current,(ve&2)!==0)ve=ve&1|2,k.flags|=128;else{if(g!==null&&(g.flags&128)!==0)e:for(g=k.child;g!==null;){if(g.tag===13)g.memoizedState!==null&&xc(g,H,k);else if(g.tag===19)xc(g,H,k);else if(g.child!==null){g.child.return=g,g=g.child;continue}if(g===k)break e;for(;g.sibling===null;){if(g.return===null||g.return===k)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}ve&=1}if(an(pn,ve),(k.mode&1)===0)k.memoizedState=null;else switch(Ce){case"forwards":for(H=k.child,Ce=null;H!==null;)g=H.alternate,g!==null&&sa(g)===null&&(Ce=H),H=H.sibling;H=Ce,H===null?(Ce=k.child,k.child=null):(Ce=H.sibling,H.sibling=null),Jl(k,!1,Ce,H,Ie);break;case"backwards":for(H=null,Ce=k.child,k.child=null;Ce!==null;){if(g=Ce.alternate,g!==null&&sa(g)===null){k.child=Ce;break}g=Ce.sibling,Ce.sibling=H,H=Ce,Ce=g}Jl(k,!0,H,null,Ie);break;case"together":Jl(k,!1,null,null,void 0);break;default:k.memoizedState=null}return k.child}function ga(g,k){(k.mode&1)===0&&g!==null&&(g.alternate=null,k.alternate=null,k.flags|=2)}function Tr(g,k,H){if(g!==null&&(k.dependencies=g.dependencies),ri|=k.lanes,(H&k.childLanes)===0)return null;if(g!==null&&k.child!==g.child)throw Error(t(153));if(k.child!==null){for(g=k.child,H=Wr(g,g.pendingProps),k.child=H,H.return=k;g.sibling!==null;)g=g.sibling,H=H.sibling=Wr(g,g.pendingProps),H.return=k;H.sibling=null}return k.child}function Nf(g,k,H){switch(k.tag){case 3:Oc(k),Ti();break;case 5:Vu(k);break;case 1:Bn(k.type)&&Qo(k);break;case 4:kl(k,k.stateNode.containerInfo);break;case 10:var ve=k.type._context,Ce=k.memoizedProps.value;an(ia,ve._currentValue),ve._currentValue=Ce;break;case 13:if(ve=k.memoizedState,ve!==null)return ve.dehydrated!==null?(an(pn,pn.current&1),k.flags|=128,null):(H&k.child.childLanes)!==0?Cc(g,k,H):(an(pn,pn.current&1),g=Tr(g,k,H),g!==null?g.sibling:null);an(pn,pn.current&1);break;case 19:if(ve=(H&k.childLanes)!==0,(g.flags&128)!==0){if(ve)return Ec(g,k,H);k.flags|=128}if(Ce=k.memoizedState,Ce!==null&&(Ce.rendering=null,Ce.tail=null,Ce.lastEffect=null),an(pn,pn.current),ve)break;return null;case 22:case 23:return k.lanes=0,vc(g,k,H)}return Tr(g,k,H)}var kc,Yl,$c,Ic;kc=function(g,k){for(var H=k.child;H!==null;){if(H.tag===5||H.tag===6)g.appendChild(H.stateNode);else if(H.tag!==4&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===k)break;for(;H.sibling===null;){if(H.return===null||H.return===k)return;H=H.return}H.sibling.return=H.return,H=H.sibling}},Yl=function(){},$c=function(g,k,H,ve){var Ce=g.memoizedProps;if(Ce!==ve){g=k.stateNode,ti(sr.current);var Ie=null;
vendor: 4,143 bytes, line 9
9switch(H){case"input":Ce=Qt(g,Ce),ve=Qt(g,ve),Ie=[];break;case"select":Ce=Be({},Ce,{value:void 0}),ve=Be({},ve,{value:void 0}),Ie=[];break;case"textarea":Ce=Rn(g,Ce),ve=Rn(g,ve),Ie=[];break;default:typeof Ce.onClick!="function"&&typeof ve.onClick=="function"&&(g.onclick=Jo)}ct(H,ve);var Me;H=null;for(ot in Ce)if(!ve.hasOwnProperty(ot)&&Ce.hasOwnProperty(ot)&&Ce[ot]!=null)if(ot==="style"){var We=Ce[ot];for(Me in We)We.hasOwnProperty(Me)&&(H||(H={}),H[Me]="")}else ot!=="dangerouslySetInnerHTML"&&ot!=="children"&&ot!=="suppressContentEditableWarning"&&ot!=="suppressHydrationWarning"&&ot!=="autoFocus"&&(o.hasOwnProperty(ot)?Ie||(Ie=[]):(Ie=Ie||[]).push(ot,null));for(ot in ve){var Je=ve[ot];if(We=Ce?.[ot],ve.hasOwnProperty(ot)&&Je!==We&&(Je!=null||We!=null))if(ot==="style")if(We){for(Me in We)!We.hasOwnProperty(Me)||Je&&Je.hasOwnProperty(Me)||(H||(H={}),H[Me]="");for(Me in Je)Je.hasOwnProperty(Me)&&We[Me]!==Je[Me]&&(H||(H={}),H[Me]=Je[Me])}else H||(Ie||(Ie=[]),Ie.push(ot,H)),H=Je;else ot==="dangerouslySetInnerHTML"?(Je=Je?Je.__html:void 0,We=We?We.__html:void 0,Je!=null&&We!==Je&&(Ie=Ie||[]).push(ot,Je)):ot==="children"?typeof Je!="string"&&typeof Je!="number"||(Ie=Ie||[]).push(ot,""+Je):ot!=="suppressContentEditableWarning"&&ot!=="suppressHydrationWarning"&&(o.hasOwnProperty(ot)?(Je!=null&&ot==="onScroll"&&sn("scroll",g),Ie||We===Je||(Ie=[])):(Ie=Ie||[]).push(ot,Je))}H&&(Ie=Ie||[]).push("style",H);var ot=Ie;(k.updateQueue=ot)&&(k.flags|=4)}},Ic=function(g,k,H,ve){H!==ve&&(k.flags|=4)};function go(g,k){if(!cn)switch(g.tailMode){case"hidden":k=g.tail;for(var H=null;k!==null;)k.alternate!==null&&(H=k),k=k.sibling;H===null?g.tail=null:H.sibling=null;break;case"collapsed":H=g.tail;for(var ve=null;H!==null;)H.alternate!==null&&(ve=H),H=H.sibling;ve===null?k||g.tail===null?g.tail=null:g.tail.sibling=null:ve.sibling=null}}function Pn(g){var k=g.alternate!==null&&g.alternate.child===g.child,H=0,ve=0;if(k)for(var Ce=g.child;Ce!==null;)H|=Ce.lanes|Ce.childLanes,ve|=Ce.subtreeFlags&14680064,ve|=Ce.flags&14680064,Ce.return=g,Ce=Ce.sibling;else for(Ce=g.child;Ce!==null;)H|=Ce.lanes|Ce.childLanes,ve|=Ce.subtreeFlags,ve|=Ce.flags,Ce.return=g,Ce=Ce.sibling;return g.subtreeFlags|=ve,g.childLanes=H,k}function Ff(g,k,H){var ve=k.pendingProps;switch(ml(k),k.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(k),null;case 1:return Bn(k.type)&&Xo(),Pn(k),null;case 3:return ve=k.stateNode,ki(),un(Dn),un($n),Pl(),ve.pendingContext&&(ve.context=ve.pendingContext,ve.pendingContext=null),(g===null||g.child===null)&&(na(k)?k.flags|=4:g===null||g.memoizedState.isDehydrated&&(k.flags&256)===0||(k.flags|=1024,tr!==null&&(ss(tr),tr=null))),Yl(g,k),Pn(k),null;case 5:$l(k);var Ce=ti(co.current);if(H=k.type,g!==null&&k.stateNode!=null)$c(g,k,H,ve,Ce),g.ref!==k.ref&&(k.flags|=512,k.flags|=2097152);else{if(!ve){if(k.stateNode===null)throw Error(t(166));return Pn(k),null}if(g=ti(sr.current),na(k)){ve=k.stateNode,H=k.type;var Ie=k.memoizedProps;switch(ve[lr]=k,ve[oo]=Ie,g=(k.mode&1)!==0,H){case"dialog":sn("cancel",ve),sn("close",ve);break;case"iframe":case"object":case"embed":sn("load",ve);break;case"video":case"audio":for(Ce=0;Ce<no.length;Ce++)sn(no[Ce],ve);break;case"source":sn("error",ve);break;case"img":case"image":case"link":sn("error",ve),sn("load",ve);break;case"details":sn("toggle",ve);break;case"input":kn(ve,Ie),sn("invalid",ve);break;case"select":ve._wrapperState={wasMultiple:!!Ie.multiple},sn("invalid",ve);break;case"textarea":dn(ve,Ie),sn("invalid",ve)}ct(H,Ie),Ce=null;for(var Me in Ie)if(Ie.hasOwnProperty(Me)){var We=Ie[Me];Me==="children"?typeof We=="string"?ve.textContent!==We&&(Ie.suppressHydrationWarning!==!0&&Ko(ve.textContent,We,g),Ce=["children",We]):typeof We=="number"&&ve.textContent!==""+We&&(Ie.suppressHydrationWarning!==!0&&Ko(ve.textContent,We,g),Ce=["children",""+We]):o.hasOwnProperty(Me)&&We!=null&&Me==="onScroll"&&sn("scroll",ve)}switch(H){case"input":$t(ve),on(ve,Ie,!0);break;case"textarea":$t(ve),Kt(ve);break;case"select":case"option":break;default:typeof Ie.onClick=="function"&&(ve.onclick=Jo)}ve=Ce,k.updateQueue=ve,ve!==null&&(k.flags|=4)}
vendor: 24,088 bytes, line 9
9else{Me=Ce.nodeType===9?Ce:Ce.ownerDocument,g==="http://www.w3.org/1999/xhtml"&&(g=ut(H)),g==="http://www.w3.org/1999/xhtml"?H==="script"?(g=Me.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild)):typeof ve.is=="string"?g=Me.createElement(H,{is:ve.is}):(g=Me.createElement(H),H==="select"&&(Me=g,ve.multiple?Me.multiple=!0:ve.size&&(Me.size=ve.size))):g=Me.createElementNS(g,H),g[lr]=k,g[oo]=ve,kc(g,k,!1,!1),k.stateNode=g;e:{switch(Me=yt(H,ve),H){case"dialog":sn("cancel",g),sn("close",g),Ce=ve;break;case"iframe":case"object":case"embed":sn("load",g),Ce=ve;break;case"video":case"audio":for(Ce=0;Ce<no.length;Ce++)sn(no[Ce],g);Ce=ve;break;case"source":sn("error",g),Ce=ve;break;case"img":case"image":case"link":sn("error",g),sn("load",g),Ce=ve;break;case"details":sn("toggle",g),Ce=ve;break;case"input":kn(g,ve),Ce=Qt(g,ve),sn("invalid",g);break;case"option":Ce=ve;break;case"select":g._wrapperState={wasMultiple:!!ve.multiple},Ce=Be({},ve,{value:void 0}),sn("invalid",g);break;case"textarea":dn(g,ve),Ce=Rn(g,ve),sn("invalid",g);break;default:Ce=ve}ct(H,Ce),We=Ce;for(Ie in We)if(We.hasOwnProperty(Ie)){var Je=We[Ie];Ie==="style"?rt(g,Je):Ie==="dangerouslySetInnerHTML"?(Je=Je?Je.__html:void 0,Je!=null&&Lt(g,Je)):Ie==="children"?typeof Je=="string"?(H!=="textarea"||Je!=="")&&jt(g,Je):typeof Je=="number"&&jt(g,""+Je):Ie!=="suppressContentEditableWarning"&&Ie!=="suppressHydrationWarning"&&Ie!=="autoFocus"&&(o.hasOwnProperty(Ie)?Je!=null&&Ie==="onScroll"&&sn("scroll",g):Je!=null&&Ne(g,Ie,Je,Me))}switch(H){case"input":$t(g),on(g,ve,!1);break;case"textarea":$t(g),Kt(g);break;case"option":ve.value!=null&&g.setAttribute("value",""+ht(ve.value));break;case"select":g.multiple=!!ve.multiple,Ie=ve.value,Ie!=null?vn(g,!!ve.multiple,Ie,!1):ve.defaultValue!=null&&vn(g,!!ve.multiple,ve.defaultValue,!0);break;default:typeof Ce.onClick=="function"&&(g.onclick=Jo)}switch(H){case"button":case"input":case"select":case"textarea":ve=!!ve.autoFocus;break e;case"img":ve=!0;break e;default:ve=!1}}ve&&(k.flags|=4)}k.ref!==null&&(k.flags|=512,k.flags|=2097152)}return Pn(k),null;case 6:if(g&&k.stateNode!=null)Ic(g,k,g.memoizedProps,ve);else{if(typeof ve!="string"&&k.stateNode===null)throw Error(t(166));if(H=ti(co.current),ti(sr.current),na(k)){if(ve=k.stateNode,H=k.memoizedProps,ve[lr]=k,(Ie=ve.nodeValue!==H)&&(g=Hn,g!==null))switch(g.tag){case 3:Ko(ve.nodeValue,H,(g.mode&1)!==0);break;case 5:g.memoizedProps.suppressHydrationWarning!==!0&&Ko(ve.nodeValue,H,(g.mode&1)!==0)}Ie&&(k.flags|=4)}else ve=(H.nodeType===9?H:H.ownerDocument).createTextNode(ve),ve[lr]=k,k.stateNode=ve}return Pn(k),null;case 13:if(un(pn),ve=k.memoizedState,g===null||g.memoizedState!==null&&g.memoizedState.dehydrated!==null){if(cn&&Wn!==null&&(k.mode&1)!==0&&(k.flags&128)===0)Au(),Ti(),k.flags|=98560,Ie=!1;else if(Ie=na(k),ve!==null&&ve.dehydrated!==null){if(g===null){if(!Ie)throw Error(t(318));if(Ie=k.memoizedState,Ie=Ie!==null?Ie.dehydrated:null,!Ie)throw Error(t(317));Ie[lr]=k}else Ti(),(k.flags&128)===0&&(k.memoizedState=null),k.flags|=4;Pn(k),Ie=!1}else tr!==null&&(ss(tr),tr=null),Ie=!0;if(!Ie)return k.flags&65536?k:null}return(k.flags&128)!==0?(k.lanes=H,k):(ve=ve!==null,ve!==(g!==null&&g.memoizedState!==null)&&ve&&(k.child.flags|=8192,(k.mode&1)!==0&&(g===null||(pn.current&1)!==0?wn===0&&(wn=3):ds())),k.updateQueue!==null&&(k.flags|=4),Pn(k),null);case 4:return ki(),Yl(g,k),g===null&&ro(k.stateNode.containerInfo),Pn(k),null;case 10:return Tl(k.type._context),Pn(k),null;case 17:return Bn(k.type)&&Xo(),Pn(k),null;case 19:if(un(pn),Ie=k.memoizedState,Ie===null)return Pn(k),null;if(ve=(k.flags&128)!==0,Me=Ie.rendering,Me===null)if(ve)go(Ie,!1);else{if(wn!==0||g!==null&&(g.flags&128)!==0)for(g=k.child;g!==null;){if(Me=sa(g),Me!==null){for(k.flags|=128,go(Ie,!1),ve=Me.updateQueue,ve!==null&&(k.updateQueue=ve,k.flags|=4),k.subtreeFlags=0,ve=H,H=k.child;H!==null;)Ie=H,g=ve,Ie.flags&=14680066,Me=Ie.alternate,Me===null?(Ie.childLanes=0,Ie.lanes=g,Ie.child=null,Ie.subtreeFlags=0,Ie.memoizedProps=null,Ie.memoizedState=null,Ie.updateQueue=null,Ie.dependencies=null,Ie.stateNode=null):(Ie.childLanes=Me.childLanes,Ie.lanes=Me.lanes,Ie.child=Me.child,Ie.subtreeFlags=0,Ie.deletions=null,Ie.memoizedProps=Me.memoizedProps,Ie.memoizedState=Me.memoizedState,Ie.updateQueue=Me.updateQueue,Ie.type=Me.type,g=Me.dependencies,Ie.dependencies=g===null?null:{lanes:g.lanes,firstContext:g.firstContext}),H=H.sibling;return an(pn,pn.current&1|2),k.child}g=g.sibling}Ie.tail!==null&&gn()>Pi&&(k.flags|=128,ve=!0,go(Ie,!1),k.lanes=4194304)}else{if(!ve)if(g=sa(Me),g!==null){if(k.flags|=128,ve=!0,H=g.updateQueue,H!==null&&(k.updateQueue=H,k.flags|=4),go(Ie,!0),Ie.tail===null&&Ie.tailMode==="hidden"&&!Me.alternate&&!cn)return Pn(k),null}else 2*gn()-Ie.renderingStartTime>Pi&&H!==1073741824&&(k.flags|=128,ve=!0,go(Ie,!1),k.lanes=4194304);Ie.isBackwards?(Me.sibling=k.child,k.child=Me):(H=Ie.last,H!==null?H.sibling=Me:k.child=Me,Ie.last=Me)}return Ie.tail!==null?(k=Ie.tail,Ie.rendering=k,Ie.tail=k.sibling,Ie.renderingStartTime=gn(),k.sibling=null,H=pn.current,an(pn,ve?H&1|2:H&1),k):(Pn(k),null);case 22:case 23:return cs(),ve=k.memoizedState!==null,g!==null&&g.memoizedState!==null!==ve&&(k.flags|=8192),ve&&(k.mode&1)!==0?(qn&1073741824)!==0&&(Pn(k),k.subtreeFlags&6&&(k.flags|=8192)):Pn(k),null;case 24:return null;case 25:return null}throw Error(t(156,k.tag))}function Lf(g,k){switch(ml(k),k.tag){case 1:return Bn(k.type)&&Xo(),g=k.flags,g&65536?(k.flags=g&-65537|128,k):null;case 3:return ki(),un(Dn),un($n),Pl(),g=k.flags,(g&65536)!==0&&(g&128)===0?(k.flags=g&-65537|128,k):null;case 5:return $l(k),null;case 13:if(un(pn),g=k.memoizedState,g!==null&&g.dehydrated!==null){if(k.alternate===null)throw Error(t(340));Ti()}return g=k.flags,g&65536?(k.flags=g&-65537|128,k):null;case 19:return un(pn),null;case 4:return ki(),null;case 10:return Tl(k.type._context),null;case 22:case 23:return cs(),null;case 24:return null;default:return null}}var ma=!1,An=!1,Mf=typeof WeakSet=="function"?WeakSet:Set,kt=null;function $i(g,k){var H=g.ref;if(H!==null)if(typeof H=="function")try{H(null)}catch(ve){yn(g,k,ve)}else H.current=null}function Xl(g,k,H){try{H()}catch(ve){yn(g,k,ve)}}var Pc=!1;function Df(g,k){if(sl=Mo,g=lu(),el(g)){if("selectionStart"in g)var H={start:g.selectionStart,end:g.selectionEnd};else e:{H=(H=g.ownerDocument)&&H.defaultView||window;var ve=H.getSelection&&H.getSelection();if(ve&&ve.rangeCount!==0){H=ve.anchorNode;var Ce=ve.anchorOffset,Ie=ve.focusNode;ve=ve.focusOffset;try{H.nodeType,Ie.nodeType}catch{H=null;break e}var Me=0,We=-1,Je=-1,ot=0,mt=0,bt=g,gt=null;t:for(;;){for(var Ct;bt!==H||Ce!==0&&bt.nodeType!==3||(We=Me+Ce),bt!==Ie||ve!==0&&bt.nodeType!==3||(Je=Me+ve),bt.nodeType===3&&(Me+=bt.nodeValue.length),(Ct=bt.firstChild)!==null;)gt=bt,bt=Ct;for(;;){if(bt===g)break t;if(gt===H&&++ot===Ce&&(We=Me),gt===Ie&&++mt===ve&&(Je=Me),(Ct=bt.nextSibling)!==null)break;bt=gt,gt=bt.parentNode}bt=Ct}H=We===-1||Je===-1?null:{start:We,end:Je}}else H=null}H=H||{start:0,end:0}}else H=null;for(ul={focusedElem:g,selectionRange:H},Mo=!1,kt=k;kt!==null;)if(k=kt,g=k.child,(k.subtreeFlags&1028)!==0&&g!==null)g.return=k,kt=g;else for(;kt!==null;){k=kt;try{var It=k.alternate;if((k.flags&1024)!==0)switch(k.tag){case 0:case 11:case 15:break;case 1:if(It!==null){var Pt=It.memoizedProps,mn=It.memoizedState,Ze=k.stateNode,Xe=Ze.getSnapshotBeforeUpdate(k.elementType===k.type?Pt:nr(k.type,Pt),mn);Ze.__reactInternalSnapshotBeforeUpdate=Xe}break;case 3:var nt=k.stateNode.containerInfo;nt.nodeType===1?nt.textContent="":nt.nodeType===9&&nt.documentElement&&nt.removeChild(nt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(St){yn(k,k.return,St)}if(g=k.sibling,g!==null){g.return=k.return,kt=g;break}kt=k.return}return It=Pc,Pc=!1,It}function mo(g,k,H){var ve=k.updateQueue;if(ve=ve!==null?ve.lastEffect:null,ve!==null){var Ce=ve=ve.next;do{if((Ce.tag&g)===g){var Ie=Ce.destroy;Ce.destroy=void 0,Ie!==void 0&&Xl(k,H,Ie)}Ce=Ce.next}while(Ce!==ve)}}function ba(g,k){if(k=k.updateQueue,k=k!==null?k.lastEffect:null,k!==null){var H=k=k.next;do{if((H.tag&g)===g){var ve=H.create;H.destroy=ve()}H=H.next}while(H!==k)}}function Ql(g){var k=g.ref;if(k!==null){var H=g.stateNode;switch(g.tag){case 5:g=H;break;default:g=H}typeof k=="function"?k(g):k.current=g}}function Ac(g){var k=g.alternate;k!==null&&(g.alternate=null,Ac(k)),g.child=null,g.deletions=null,g.sibling=null,g.tag===5&&(k=g.stateNode,k!==null&&(delete k[lr],delete k[oo],delete k[pl],delete k[vf],delete k[Sf])),g.stateNode=null,g.return=null,g.dependencies=null,g.memoizedProps=null,g.memoizedState=null,g.pendingProps=null,g.stateNode=null,g.updateQueue=null}function Rc(g){return g.tag===5||g.tag===3||g.tag===4}function Nc(g){e:for(;;){for(;g.sibling===null;){if(g.return===null||Rc(g.return))return null;g=g.return}for(g.sibling.return=g.return,g=g.sibling;g.tag!==5&&g.tag!==6&&g.tag!==18;){if(g.flags&2||g.child===null||g.tag===4)continue e;g.child.return=g,g=g.child}if(!(g.flags&2))return g.stateNode}}function Zl(g,k,H){var ve=g.tag;if(ve===5||ve===6)g=g.stateNode,k?H.nodeType===8?H.parentNode.insertBefore(g,k):H.insertBefore(g,k):(H.nodeType===8?(k=H.parentNode,k.insertBefore(g,H)):(k=H,k.appendChild(g)),H=H._reactRootContainer,H!=null||k.onclick!==null||(k.onclick=Jo));else if(ve!==4&&(g=g.child,g!==null))for(Zl(g,k,H),g=g.sibling;g!==null;)Zl(g,k,H),g=g.sibling}function es(g,k,H){var ve=g.tag;if(ve===5||ve===6)g=g.stateNode,k?H.insertBefore(g,k):H.appendChild(g);else if(ve!==4&&(g=g.child,g!==null))for(es(g,k,H),g=g.sibling;g!==null;)es(g,k,H),g=g.sibling}var xn=null,rr=!1;function Vr(g,k,H){for(H=H.child;H!==null;)Fc(g,k,H),H=H.sibling}function Fc(g,k,H){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(Po,H)}catch{}switch(H.tag){case 5:An||$i(H,k);case 6:var ve=xn,Ce=rr;xn=null,Vr(g,k,H),xn=ve,rr=Ce,xn!==null&&(rr?(g=xn,H=H.stateNode,g.nodeType===8?g.parentNode.removeChild(H):g.removeChild(H)):xn.removeChild(H.stateNode));break;case 18:xn!==null&&(rr?(g=xn,H=H.stateNode,g.nodeType===8?fl(g.parentNode,H):g.nodeType===1&&fl(g,H),Ki(g)):fl(xn,H.stateNode));break;case 4:ve=xn,Ce=rr,xn=H.stateNode.containerInfo,rr=!0,Vr(g,k,H),xn=ve,rr=Ce;break;case 0:case 11:case 14:case 15:if(!An&&(ve=H.updateQueue,ve!==null&&(ve=ve.lastEffect,ve!==null))){Ce=ve=ve.next;do{var Ie=Ce,Me=Ie.destroy;Ie=Ie.tag,Me!==void 0&&((Ie&2)!==0||(Ie&4)!==0)&&Xl(H,k,Me),Ce=Ce.next}while(Ce!==ve)}Vr(g,k,H);break;case 1:if(!An&&($i(H,k),ve=H.stateNode,typeof ve.componentWillUnmount=="function"))try{ve.props=H.memoizedProps,ve.state=H.memoizedState,ve.componentWillUnmount()}catch(We){yn(H,k,We)}Vr(g,k,H);break;case 21:Vr(g,k,H);break;case 22:H.mode&1?(An=(ve=An)||H.memoizedState!==null,Vr(g,k,H),An=ve):Vr(g,k,H);break;default:Vr(g,k,H)}}function Lc(g){var k=g.updateQueue;if(k!==null){g.updateQueue=null;var H=g.stateNode;H===null&&(H=g.stateNode=new Mf),k.forEach(function(ve){var Ce=Gf.bind(null,g,ve);H.has(ve)||(H.add(ve),ve.then(Ce,Ce))})}}function ir(g,k){var H=k.deletions;if(H!==null)for(var ve=0;ve<H.length;ve++){var Ce=H[ve];try{var Ie=g,Me=k,We=Me;e:for(;We!==null;){switch(We.tag){case 5:xn=We.stateNode,rr=!1;break e;case 3:xn=We.stateNode.containerInfo,rr=!0;break e;case 4:xn=We.stateNode.containerInfo,rr=!0;break e}We=We.return}if(xn===null)throw Error(t(160));Fc(Ie,Me,Ce),xn=null,rr=!1;var Je=Ce.alternate;Je!==null&&(Je.return=null),Ce.return=null}catch(ot){yn(Ce,k,ot)}}if(k.subtreeFlags&12854)for(k=k.child;k!==null;)Mc(k,g),k=k.sibling}function Mc(g,k){var H=g.alternate,ve=g.flags;switch(g.tag){case 0:case 11:case 14:case 15:if(ir(k,g),cr(g),ve&4){try{mo(3,g,g.return),ba(3,g)}catch(Pt){yn(g,g.return,Pt)}try{mo(5,g,g.return)}catch(Pt){yn(g,g.return,Pt)}}break;case 1:ir(k,g),cr(g),ve&512&&H!==null&&$i(H,H.return);break;case 5:if(ir(k,g),cr(g),ve&512&&H!==null&&$i(H,H.return),g.flags&32){var Ce=g.stateNode;try{jt(Ce,"")}catch(Pt){yn(g,g.return,Pt)}}if(ve&4&&(Ce=g.stateNode,Ce!=null)){var Ie=g.memoizedProps,Me=H!==null?H.memoizedProps:Ie,We=g.type,Je=g.updateQueue;if(g.updateQueue=null,Je!==null)try{We==="input"&&Ie.type==="radio"&&Ie.name!=null&&en(Ce,Ie),yt(We,Me);var ot=yt(We,Ie);for(Me=0;Me<Je.length;Me+=2){var mt=Je[Me],bt=Je[Me+1];mt==="style"?rt(Ce,bt):mt==="dangerouslySetInnerHTML"?Lt(Ce,bt):mt==="children"?jt(Ce,bt):Ne(Ce,mt,bt,ot)}switch(We){case"input":Gt(Ce,Ie);break;case"textarea":_n(Ce,Ie);break;case"select":var gt=Ce._wrapperState.wasMultiple;Ce._wrapperState.wasMultiple=!!Ie.multiple;var Ct=Ie.value;Ct!=null?vn(Ce,!!Ie.multiple,Ct,!1):gt!==!!Ie.multiple&&(Ie.defaultValue!=null?vn(Ce,!!Ie.multiple,Ie.defaultValue,!0):vn(Ce,!!Ie.multiple,Ie.multiple?[]:"",!1))}Ce[oo]=Ie}catch(Pt){yn(g,g.return,Pt)}}break;case 6:if(ir(k,g),cr(g),ve&4){if(g.stateNode===null)throw Error(t(162));Ce=g.stateNode,Ie=g.memoizedProps;try{Ce.nodeValue=Ie}catch(Pt){yn(g,g.return,Pt)}}break;case 3:if(ir(k,g),cr(g),ve&4&&H!==null&&H.memoizedState.isDehydrated)try{Ki(k.containerInfo)}catch(Pt){yn(g,g.return,Pt)}break;case 4:ir(k,g),cr(g);break;case 13:ir(k,g),cr(g),Ce=g.child,Ce.flags&8192&&(Ie=Ce.memoizedState!==null,Ce.stateNode.isHidden=Ie,!Ie||Ce.alternate!==null&&Ce.alternate.memoizedState!==null||(rs=gn())),ve&4&&Lc(g);break;case 22:if(mt=H!==null&&H.memoizedState!==null,g.mode&1?(An=(ot=An)||mt,ir(k,g),An=ot):ir(k,g),cr(g),ve&8192){if(ot=g.memoizedState!==null,(g.stateNode.isHidden=ot)&&!mt&&(g.mode&1)!==0)for(kt=g,mt=g.child;mt!==null;){for(bt=kt=mt;kt!==null;){switch(gt=kt,Ct=gt.child,gt.tag){case 0:case 11:case 14:case 15:mo(4,gt,gt.return);break;case 1:$i(gt,gt.return);var It=gt.stateNode;if(typeof It.componentWillUnmount=="function"){ve=gt,H=gt.return;try{k=ve,It.props=k.memoizedProps,It.state=k.memoizedState,It.componentWillUnmount()}catch(Pt){yn(ve,H,Pt)}}break;case 5:$i(gt,gt.return);break;case 22:if(gt.memoizedState!==null){Vc(bt);continue}}Ct!==null?(Ct.return=gt,kt=Ct):Vc(bt)}mt=mt.sibling}e:for(mt=null,bt=g;;){if(bt.tag===5){if(mt===null){mt=bt;try{Ce=bt.stateNode,ot?(Ie=Ce.style,typeof Ie.setProperty=="function"?Ie.setProperty("display","none","important"):Ie.display="none"):(We=bt.stateNode,Je=bt.memoizedProps.style,Me=Je!=null&&Je.hasOwnProperty("display")?Je.display:null,We.style.display=wt("display",Me))}catch(Pt){yn(g,g.return,Pt)}}}else if(bt.tag===6){if(mt===null)try{bt.stateNode.nodeValue=ot?"":bt.memoizedProps}catch(Pt){yn(g,g.return,Pt)}}else if((bt.tag!==22&&bt.tag!==23||bt.memoizedState===null||bt===g)&&bt.child!==null){bt.child.return=bt,bt=bt.child;continue}if(bt===g)break e;for(;bt.sibling===null;){if(bt.return===null||bt.return===g)break e;mt===bt&&(mt=null),bt=bt.return}mt===bt&&(mt=null),bt.sibling.return=bt.return,bt=bt.sibling}}break;case 19:ir(k,g),cr(g),ve&4&&Lc(g);break;case 21:break;default:ir(k,g),cr(g)}}function cr(g){var k=g.flags;if(k&2){try{e:{for(var H=g.return;H!==null;){if(Rc(H)){var ve=H;break e}H=H.return}throw Error(t(160))}switch(ve.tag){case 5:var Ce=ve.stateNode;ve.flags&32&&(jt(Ce,""),ve.flags&=-33);var Ie=Nc(g);es(g,Ie,Ce);break;case 3:case 4:var Me=ve.stateNode.containerInfo,We=Nc(g);Zl(g,We,Me);break;default:throw Error(t(161))}}catch(Je){yn(g,g.return,Je)}g.flags&=-3}k&4096&&(g.flags&=-4097)}function Bf(g,k,H){kt=g,Dc(g)}function Dc(g,k,H){for(var ve=(g.mode&1)!==0;kt!==null;){var Ce=kt,Ie=Ce.child;if(Ce.tag===22&&ve){var Me=Ce.memoizedState!==null||ma;if(!Me){var We=Ce.alternate,Je=We!==null&&We.memoizedState!==null||An;We=ma;var ot=An;if(ma=Me,(An=Je)&&!ot)for(kt=Ce;kt!==null;)Me=kt,Je=Me.child,Me.tag===22&&Me.memoizedState!==null?jc(Ce):Je!==null?(Je.return=Me,kt=Je):jc(Ce);for(;Ie!==null;)kt=Ie,Dc(Ie),Ie=Ie.sibling;kt=Ce,ma=We,An=ot}Bc(g)}else(Ce.subtreeFlags&8772)!==0&&Ie!==null?(Ie.return=Ce,kt=Ie):Bc(g)}}function Bc(g){for(;kt!==null;){var k=kt;if((k.flags&8772)!==0){var H=k.alternate;try{if((k.flags&8772)!==0)switch(k.tag){case 0:case 11:case 15:An||ba(5,k);break;case 1:var ve=k.stateNode;if(k.flags&4&&!An)if(H===null)ve.componentDidMount();else{var Ce=k.elementType===k.type?H.memoizedProps:nr(k.type,H.memoizedProps);ve.componentDidUpdate(Ce,H.memoizedState,ve.__reactInternalSnapshotBeforeUpdate)}var Ie=k.updateQueue;Ie!==null&&Bu(k,Ie,ve);break;case 3:var Me=k.updateQueue;if(Me!==null){if(H=null,k.child!==null)switch(k.child.tag){case 5:H=k.child.stateNode;break;case 1:H=k.child.stateNode}Bu(k,Me,H)}break;case 5:var We=k.stateNode;if(H===null&&k.flags&4){H=We;var Je=k.memoizedProps;switch(k.type){case"button":case"input":case"select":case"textarea":Je.autoFocus&&H.focus();break;case"img":Je.src&&(H.src=Je.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(k.memoizedState===null){var ot=k.alternate;if(ot!==null){var mt=ot.memoizedState;if(mt!==null){var bt=mt.dehydrated;bt!==null&&Ki(bt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}An||k.flags&512&&Ql(k)}catch(gt){yn(k,k.return,gt)}}if(k===g){kt=null;break}if(H=k.sibling,H!==null){H.return=k.return,kt=H;break}kt=k.return}}function Vc(g){for(;kt!==null;){var k=kt;if(k===g){kt=null;break}var H=k.sibling;if(H!==null){H.return=k.return,kt=H;break}kt=k.return}}function jc(g){for(;kt!==null;){var k=kt;try{switch(k.tag){case 0:case 11:case 15:var H=k.return;try{ba(4,k)}catch(Je){yn(k,H,Je)}break;case 1:var ve=k.stateNode;if(typeof ve.componentDidMount=="function"){var Ce=k.return;try{ve.componentDidMount()}catch(Je){yn(k,Ce,Je)}}var Ie=k.return;try{Ql(k)}catch(Je){yn(k,Ie,Je)}break;case 5:var Me=k.return;try{Ql(k)}catch(Je){yn(k,Me,Je)}}}catch(Je){yn(k,k.return,Je)}if(k===g){kt=null;break}var We=k.sibling;if(We!==null){We.return=k.return,kt=We;break}kt=k.return}}var Vf=Math.ceil,va=Fe.ReactCurrentDispatcher,ts=Fe.ReactCurrentOwner,Xn=Fe.ReactCurrentBatchConfig,Jt=0,Tn=null,bn=null,En=0,qn=0,Ii=Fr(0),wn=0,bo=null,ri=0,Sa=0,ns=0,vo=null,jn=null,rs=0,Pi=1/0,Cr=null,wa=!1,os=null,jr=null,Oa=!1,zr=null,Ta=0,So=0,as=null,Ca=-1,xa=0;function Ln(){return(Jt&6)!==0?gn():Ca!==-1?Ca:Ca=gn()}function Ur(g){return(g.mode&1)===0?1:(Jt&2)!==0&&En!==0?En&-En:Of.transition!==null?(xa===0&&(xa=As()),xa):(g=nn,g!==0||(g=window.event,g=g===void 0?16:js(g.type)),g)}function or(g,k,H,ve){if(50<So)throw So=0,as=null,Error(t(185));Ui(g,H,ve),((Jt&2)===0||g!==Tn)&&(g===Tn&&((Jt&2)===0&&(Sa|=H),wn===4&&Hr(g,En)),zn(g,ve),H===1&&Jt===0&&(k.mode&1)===0&&(Pi=gn()+500,Zo&&Mr()))}function zn(g,k){var H=g.callbackNode;Sd(g,k);var ve=No(g,g===Tn?En:0);if(ve===0)H!==null&&$s(H),g.callbackNode=null,g.callbackPriority=0;else if(k=ve&-ve,g.callbackPriority!==k){if(H!=null&&$s(H),k===1)g.tag===0?wf(Uc.bind(null,g)):Eu(Uc.bind(null,g)),mf(function(){(Jt&6)===0&&Mr()}),H=null;else{switch(Rs(ve)){case 1:H=Ma;break;case 4:H=Is;break;case 16:H=Io;break;case 536870912:H=Ps;break;default:H=Io}H=Xc(H,zc.bind(null,g))}g.callbackPriority=k,g.callbackNode=H}}function zc(g,k){if(Ca=-1,xa=0,(Jt&6)!==0)throw Error(t(327));var H=g.callbackNode;if(Ai()&&g.callbackNode!==H)return null;var ve=No(g,g===Tn?En:0);if(ve===0)return null;if((ve&30)!==0||(ve&g.expiredLanes)!==0||k)k=Ea(g,ve);else{k=ve;var Ce=Jt;Jt|=2;var Ie=Wc();(Tn!==g||En!==k)&&(Cr=null,Pi=gn()+500,oi(g,k));do try{Uf();break}catch(We){Hc(g,We)}while(!0);Ol(),va.current=Ie,Jt=Ce,bn!==null?k=0:(Tn=null,En=0,k=wn)}if(k!==0){if(k===2&&(Ce=Da(g),Ce!==0&&(ve=Ce,k=ls(g,Ce))),k===1)throw H=bo,oi(g,0),Hr(g,ve),zn(g,gn()),H;if(k===6)Hr(g,ve);else{if(Ce=g.current.alternate,(ve&30)===0&&!jf(Ce)&&(k=Ea(g,ve),k===2&&(Ie=Da(g),Ie!==0&&(ve=Ie,k=ls(g,Ie))),k===1))throw H=bo,oi(g,0),Hr(g,ve),zn(g,gn()),H;switch(g.finishedWork=Ce,g.finishedLanes=ve,k){case 0:case 1:throw Error(t(345));case 2:ai(g,jn,Cr);break;case 3:if(Hr(g,ve),(ve&130023424)===ve&&(k=rs+500-gn(),10<k)){if(No(g,0)!==0)break;if(Ce=g.suspendedLanes,(Ce&ve)!==ve){Ln(),g.pingedLanes|=g.suspendedLanes&Ce;break}g.timeoutHandle=dl(ai.bind(null,g,jn,Cr),k);break}ai(g,jn,Cr);break;case 4:if(Hr(g,ve),(ve&4194240)===ve)break;for(k=g.eventTimes,Ce=-1;0<ve;){var Me=31-Zn(ve);Ie=1<<Me,Me=k[Me],Me>Ce&&(Ce=Me),ve&=~Ie}if(ve=Ce,ve=gn()-ve,ve=(120>ve?120:480>ve?480:1080>ve?1080:1920>ve?1920:3e3>ve?3e3:4320>ve?4320:1960*Vf(ve/1960))-ve,10<ve){g.timeoutHandle=dl(ai.bind(null,g,jn,Cr),ve);break}ai(g,jn,Cr);break;case 5:ai(g,jn,Cr);break;default:throw Error(t(329))}}}return zn(g,gn()),g.callbackNode===H?zc.bind(null,g):null}function ls(g,k){var H=vo;return g.current.memoizedState.isDehydrated&&(oi(g,k).flags|=256),g=Ea(g,k),g!==2&&(k=jn,jn=H,k!==null&&ss(k)),g}function ss(g){jn===null?jn=g:jn.push.apply(jn,g)}function jf(g){for(var k=g;;){if(k.flags&16384){var H=k.updateQueue;if(H!==null&&(H=H.stores,H!==null))for(var ve=0;ve<H.length;ve++){var Ce=H[ve],Ie=Ce.getSnapshot;Ce=Ce.value;try{if(!er(Ie(),Ce))return!1}catch{return!1}}}if(H=k.child,k.subtreeFlags&16384&&H!==null)H.return=k,k=H;else{if(k===g)break;for(;k.sibling===null;){if(k.return===null||k.return===g)return!0;k=k.return}k.sibling.return=k.return,k=k.sibling}}return!0}function Hr(g,k){for(k&=~ns,k&=~Sa,g.suspendedLanes|=k,g.pingedLanes&=~k,g=g.expirationTimes;0<k;){var H=31-Zn(k),ve=1<<H;g[H]=-1,k&=~ve}}function Uc(g){if((Jt&6)!==0)throw Error(t(327));Ai();var k=No(g,0);if((k&1)===0)return zn(g,gn()),null;var H=Ea(g,k);if(g.tag!==0&&H===2){var ve=Da(g);ve!==0&&(k=ve,H=ls(g,ve))}if(H===1)throw H=bo,oi(g,0),Hr(g,k),zn(g,gn()),H;if(H===6)throw Error(t(345));return g.finishedWork=g.current.alternate,g.finishedLanes=k,ai(g,jn,Cr),zn(g,gn()),null}function us(g,k){var H=Jt;Jt|=1;try{return g(k)}finally{Jt=H,Jt===0&&(Pi=gn()+500,Zo&&Mr())}}function ii(g){zr!==null&&zr.tag===0&&(Jt&6)===0&&Ai();var k=Jt;Jt|=1;var H=Xn.transition,ve=nn;try{if(Xn.transition=null,nn=1,g)return g()}finally{nn=ve,Xn.transition=H,Jt=k,(Jt&6)===0&&Mr()}}function cs(){qn=Ii.current,un(Ii)}function oi(g,k){g.finishedWork=null,g.finishedLanes=0;var H=g.timeoutHandle;if(H!==-1&&(g.timeoutHandle=-1,gf(H)),bn!==null)for(H=bn.return;H!==null;){var ve=H;switch(ml(ve),ve.tag){case 1:ve=ve.type.childContextTypes,ve!=null&&Xo();break;case 3:ki(),un(Dn),un($n),Pl();break;case 5:$l(ve);break;case 4:ki();break;case 13:un(pn);break;case 19:un(pn);break;case 10:Tl(ve.type._context);break;case 22:case 23:cs()}H=H.return}if(Tn=g,bn=g=Wr(g.current,null),En=qn=k,wn=0,bo=null,ns=Sa=ri=0,jn=vo=null,ei!==null){for(k=0;k<ei.length;k++)if(H=ei[k],ve=H.interleaved,ve!==null){H.interleaved=null;var Ce=ve.next,Ie=H.pending;if(Ie!==null){var Me=Ie.next;Ie.next=Ce,ve.next=Me}H.pending=ve}ei=null}return g}function Hc(g,k){do{var H=bn;try{if(Ol(),ua.current=pa,ca){for(var ve=hn.memoizedState;ve!==null;){var Ce=ve.queue;Ce!==null&&(Ce.pending=null),ve=ve.next}ca=!1}if(ni=0,On=Sn=hn=null,fo=!1,po=0,ts.current=null,H===null||H.return===null){wn=1,bo=k,bn=null;break}e:{var Ie=g,Me=H.return,We=H,Je=k;if(k=En,We.flags|=32768,Je!==null&&typeof Je=="object"&&typeof Je.then=="function"){var ot=Je,mt=We,bt=mt.tag;if((mt.mode&1)===0&&(bt===0||bt===11||bt===15)){var gt=mt.alternate;gt?(mt.updateQueue=gt.updateQueue,mt.memoizedState=gt.memoizedState,mt.lanes=gt.lanes):(mt.updateQueue=null,mt.memoizedState=null)}var Ct=hc(Me);if(Ct!==null){Ct.flags&=-257,yc(Ct,Me,We,Ie,k),Ct.mode&1&&pc(Ie,ot,k),k=Ct,Je=ot;var It=k.updateQueue;if(It===null){var Pt=new Set;Pt.add(Je),k.updateQueue=Pt}else It.add(Je);break e}else{if((k&1)===0){pc(Ie,ot,k),ds();break e}Je=Error(t(426))}}else if(cn&&We.mode&1){var mn=hc(Me);if(mn!==null){(mn.flags&65536)===0&&(mn.flags|=256),yc(mn,Me,We,Ie,k),Sl(_i(Je,We));break e}}Ie=Je=_i(Je,We),wn!==4&&(wn=2),vo===null?vo=[Ie]:vo.push(Ie),Ie=Me;do{switch(Ie.tag){case 3:Ie.flags|=65536,k&=-k,Ie.lanes|=k;var Ze=dc(Ie,Je,k);Du(Ie,Ze);break e;case 1:We=Je;var Xe=Ie.type,nt=Ie.stateNode;if((Ie.flags&128)===0&&(typeof Xe.getDerivedStateFromError=="function"||nt!==null&&typeof nt.componentDidCatch=="function"&&(jr===null||!jr.has(nt)))){Ie.flags|=65536,k&=-k,Ie.lanes|=k;var St=fc(Ie,We,k);Du(Ie,St);break e}}Ie=Ie.return}while(Ie!==null)}Gc(H)}catch(Nt){k=Nt,bn===H&&H!==null&&(bn=H=H.return);continue}break}while(!0)}function Wc(){var g=va.current;return va.current=pa,g===null?pa:g}function ds(){(wn===0||wn===3||wn===2)&&(wn=4),Tn===null||(ri&268435455)===0&&(Sa&268435455)===0||Hr
vendor: 7,350 bytes, line 9
9(Tn,En)}function Ea(g,k){var H=Jt;Jt|=2;var ve=Wc();(Tn!==g||En!==k)&&(Cr=null,oi(g,k));do try{zf();break}catch(Ce){Hc(g,Ce)}while(!0);if(Ol(),Jt=H,va.current=ve,bn!==null)throw Error(t(261));return Tn=null,En=0,wn}function zf(){for(;bn!==null;)qc(bn)}function Uf(){for(;bn!==null&&!dd();)qc(bn)}function qc(g){var k=Yc(g.alternate,g,qn);g.memoizedProps=g.pendingProps,k===null?Gc(g):bn=k,ts.current=null}function Gc(g){var k=g;do{var H=k.alternate;if(g=k.return,(k.flags&32768)===0){if(H=Ff(H,k,qn),H!==null){bn=H;return}}else{if(H=Lf(H,k),H!==null){H.flags&=32767,bn=H;return}if(g!==null)g.flags|=32768,g.subtreeFlags=0,g.deletions=null;else{wn=6,bn=null;return}}if(k=k.sibling,k!==null){bn=k;return}bn=k=g}while(k!==null);wn===0&&(wn=5)}function ai(g,k,H){var ve=nn,Ce=Xn.transition;try{Xn.transition=null,nn=1,Hf(g,k,H,ve)}finally{Xn.transition=Ce,nn=ve}return null}function Hf(g,k,H,ve){do Ai();while(zr!==null);if((Jt&6)!==0)throw Error(t(327));H=g.finishedWork;var Ce=g.finishedLanes;if(H===null)return null;if(g.finishedWork=null,g.finishedLanes=0,H===g.current)throw Error(t(177));g.callbackNode=null,g.callbackPriority=0;var Ie=H.lanes|H.childLanes;if(wd(g,Ie),g===Tn&&(bn=Tn=null,En=0),(H.subtreeFlags&2064)===0&&(H.flags&2064)===0||Oa||(Oa=!0,Xc(Io,function(){return Ai(),null})),Ie=(H.flags&15990)!==0,(H.subtreeFlags&15990)!==0||Ie){Ie=Xn.transition,Xn.transition=null;var Me=nn;nn=1;var We=Jt;Jt|=4,ts.current=null,Df(g,H),Mc(H,g),uf(ul),Mo=!!sl,ul=sl=null,g.current=H,Bf(H),fd(),Jt=We,nn=Me,Xn.transition=Ie}else g.current=H;if(Oa&&(Oa=!1,zr=g,Ta=Ce),Ie=g.pendingLanes,Ie===0&&(jr=null),yd(H.stateNode),zn(g,gn()),k!==null)for(ve=g.onRecoverableError,H=0;H<k.length;H++)Ce=k[H],ve(Ce.value,{componentStack:Ce.stack,digest:Ce.digest});if(wa)throw wa=!1,g=os,os=null,g;return(Ta&1)!==0&&g.tag!==0&&Ai(),Ie=g.pendingLanes,(Ie&1)!==0?g===as?So++:(So=0,as=g):So=0,Mr(),null}function Ai(){if(zr!==null){var g=Rs(Ta),k=Xn.transition,H=nn;try{if(Xn.transition=null,nn=16>g?16:g,zr===null)var ve=!1;else{if(g=zr,zr=null,Ta=0,(Jt&6)!==0)throw Error(t(331));var Ce=Jt;for(Jt|=4,kt=g.current;kt!==null;){var Ie=kt,Me=Ie.child;if((kt.flags&16)!==0){var We=Ie.deletions;if(We!==null){for(var Je=0;Je<We.length;Je++){var ot=We[Je];for(kt=ot;kt!==null;){var mt=kt;switch(mt.tag){case 0:case 11:case 15:mo(8,mt,Ie)}var bt=mt.child;if(bt!==null)bt.return=mt,kt=bt;else for(;kt!==null;){mt=kt;var gt=mt.sibling,Ct=mt.return;if(Ac(mt),mt===ot){kt=null;break}if(gt!==null){gt.return=Ct,kt=gt;break}kt=Ct}}}var It=Ie.alternate;if(It!==null){var Pt=It.child;if(Pt!==null){It.child=null;do{var mn=Pt.sibling;Pt.sibling=null,Pt=mn}while(Pt!==null)}}kt=Ie}}if((Ie.subtreeFlags&2064)!==0&&Me!==null)Me.return=Ie,kt=Me;else e:for(;kt!==null;){if(Ie=kt,(Ie.flags&2048)!==0)switch(Ie.tag){case 0:case 11:case 15:mo(9,Ie,Ie.return)}var Ze=Ie.sibling;if(Ze!==null){Ze.return=Ie.return,kt=Ze;break e}kt=Ie.return}}var Xe=g.current;for(kt=Xe;kt!==null;){Me=kt;var nt=Me.child;if((Me.subtreeFlags&2064)!==0&&nt!==null)nt.return=Me,kt=nt;else e:for(Me=Xe;kt!==null;){if(We=kt,(We.flags&2048)!==0)try{switch(We.tag){case 0:case 11:case 15:ba(9,We)}}catch(Nt){yn(We,We.return,Nt)}if(We===Me){kt=null;break e}var St=We.sibling;if(St!==null){St.return=We.return,kt=St;break e}kt=We.return}}if(Jt=Ce,Mr(),ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(Po,g)}catch{}ve=!0}return ve}finally{nn=H,Xn.transition=k}}return!1}function Kc(g,k,H){k=_i(H,k),k=dc(g,k,1),g=Br(g,k,1),k=Ln(),g!==null&&(Ui(g,1,k),zn(g,k))}function yn(g,k,H){if(g.tag===3)Kc(g,g,H);else for(;k!==null;){if(k.tag===3){Kc(k,g,H);break}else if(k.tag===1){var ve=k.stateNode;if(typeof k.type.getDerivedStateFromError=="function"||typeof ve.componentDidCatch=="function"&&(jr===null||!jr.has(ve))){g=_i(H,g),g=fc(k,g,1),k=Br(k,g,1),g=Ln(),k!==null&&(Ui(k,1,g),zn(k,g));break}}k=k.return}}function Wf(g,k,H){var ve=g.pingCache;ve!==null&&ve.delete(k),k=Ln(),g.pingedLanes|=g.suspendedLanes&H,Tn===g&&(En&H)===H&&(wn===4||wn===3&&(En&130023424)===En&&500>gn()-rs?oi(g,0):ns|=H),zn(g,k)}function Jc(g,k){k===0&&((g.mode&1)===0?k=1:(k=Ro,Ro<<=1,(Ro&130023424)===0&&(Ro=4194304)));var H=Ln();g=wr(g,k),g!==null&&(Ui(g,k,H),zn(g,H))}function qf(g){var k=g.memoizedState,H=0;k!==null&&(H=k.retryLane),Jc(g,H)}function Gf(g,k){var H=0;switch(g.tag){case 13:var ve=g.stateNode,Ce=g.memoizedState;Ce!==null&&(H=Ce.retryLane);break;case 19:ve=g.stateNode;break;default:throw Error(t(314))}ve!==null&&ve.delete(k),Jc(g,H)}var Yc;Yc=function(g,k,H){if(g!==null)if(g.memoizedProps!==k.pendingProps||Dn.current)Vn=!0;else{if((g.lanes&H)===0&&(k.flags&128)===0)return Vn=!1,Nf(g,k,H);Vn=(g.flags&131072)!==0}else Vn=!1,cn&&(k.flags&1048576)!==0&&ku(k,ta,k.index);switch(k.lanes=0,k.tag){case 2:var ve=k.type;ga(g,k),g=k.pendingProps;var Ce=Si(k,$n.current);Ei(k,H),Ce=Nl(null,k,ve,g,Ce,H);var Ie=Fl();return k.flags|=1,typeof Ce=="object"&&Ce!==null&&typeof Ce.render=="function"&&Ce.$$typeof===void 0?(k.tag=1,k.memoizedState=null,k.updateQueue=null,Bn(ve)?(Ie=!0,Qo(k)):Ie=!1,k.memoizedState=Ce.state!==null&&Ce.state!==void 0?Ce.state:null,El(k),Ce.updater=ha,k.stateNode=Ce,Ce._reactInternals=k,jl(k,ve,g,H),k=Wl(null,k,ve,!0,Ie,H)):(k.tag=0,cn&&Ie&&gl(k),Fn(null,k,Ce,H),k=k.child),k;case 16:ve=k.elementType;e:{switch(ga(g,k),g=k.pendingProps,Ce=ve._init,ve=Ce(ve._payload),k.type=ve,Ce=k.tag=Jf(ve),g=nr(ve,g),Ce){case 0:k=Hl(null,k,ve,g,H);break e;case 1:k=wc(null,k,ve,g,H);break e;case 11:k=gc(null,k,ve,g,H);break e;case 14:k=mc(null,k,ve,nr(ve.type,g),H);break e}throw Error(t(306,ve,""))}return k;case 0:return ve=k.type,Ce=k.pendingProps,Ce=k.elementType===ve?Ce:nr(ve,Ce),Hl(g,k,ve,Ce,H);case 1:return ve=k.type,Ce=k.pendingProps,Ce=k.elementType===ve?Ce:nr(ve,Ce),wc(g,k,ve,Ce,H);case 3:e:{if(Oc(k),g===null)throw Error(t(387));ve=k.pendingProps,Ie=k.memoizedState,Ce=Ie.element,Mu(g,k),la(k,ve,null,H);var Me=k.memoizedState;if(ve=Me.element,Ie.isDehydrated)if(Ie={element:ve,isDehydrated:!1,cache:Me.cache,pendingSuspenseBoundaries:Me.pendingSuspenseBoundaries,transitions:Me.transitions},k.updateQueue.baseState=Ie,k.memoizedState=Ie,k.flags&256){Ce=_i(Error(t(423)),k),k=Tc(g,k,ve,H,Ce);break e}else if(ve!==Ce){Ce=_i(Error(t(424)),k),k=Tc(g,k,ve,H,Ce);break e}else for(Wn=Nr(k.stateNode.containerInfo.firstChild),Hn=k,cn=!0,tr=null,H=Fu(k,null,ve,H),k.child=H;H;)H.flags=H.flags&-3|4096,H=H.sibling;else{if(Ti(),ve===Ce){k=Tr(g,k,H);break e}Fn(g,k,ve,H)}k=k.child}return k;case 5:return Vu(k),g===null&&vl(k),ve=k.type,Ce=k.pendingProps,Ie=g!==null?g.memoizedProps:null,Me=Ce.children,cl(ve,Ce)?Me=null:Ie!==null&&cl(ve,Ie)&&(k.flags|=32),Sc(g,k),Fn(g,k,Me,H),k.child;case 6:return g===null&&vl(k),null;case 13:return Cc(g,k,H);case 4:return kl(k,k.stateNode.containerInfo),ve=k.pendingProps,g===null?k.child=Ci(k,null,ve,H):Fn(g,k,ve,H),k.child;case 11:return ve=k.type,Ce=k.pendingProps,Ce=k.elementType===ve?Ce:nr(ve,Ce),gc(g,k,ve,Ce,H);case 7:return Fn(g,k,k.pendingProps,H),k.child;case 8:return Fn(g,k,k.pendingProps.children,H),k.child;case 12:return Fn(g,k,k.pendingProps.children,H),k.child;case 10:e:{if(ve=k.type._context,Ce=k.pendingProps,Ie=k.memoizedProps,Me=Ce.value,an(ia,ve._currentValue),ve._currentValue=Me,Ie!==null)if(er(Ie.value,Me)){if(Ie.children===Ce.children&&!Dn.current){k=Tr(g,k,H);break e}}else for(Ie=k.child,Ie!==null&&(Ie.return=k);Ie!==null;
vendor: 10,448 bytes, line 9
9){var We=Ie.dependencies;if(We!==null){Me=Ie.child;for(var Je=We.firstContext;Je!==null;){if(Je.context===ve){if(Ie.tag===1){Je=Or(-1,H&-H),Je.tag=2;var ot=Ie.updateQueue;if(ot!==null){ot=ot.shared;var mt=ot.pending;mt===null?Je.next=Je:(Je.next=mt.next,mt.next=Je),ot.pending=Je}}Ie.lanes|=H,Je=Ie.alternate,Je!==null&&(Je.lanes|=H),Cl(Ie.return,H,k),We.lanes|=H;break}Je=Je.next}}else if(Ie.tag===10)Me=Ie.type===k.type?null:Ie.child;else if(Ie.tag===18){if(Me=Ie.return,Me===null)throw Error(t(341));Me.lanes|=H,We=Me.alternate,We!==null&&(We.lanes|=H),Cl(Me,H,k),Me=Ie.sibling}else Me=Ie.child;if(Me!==null)Me.return=Ie;else for(Me=Ie;Me!==null;){if(Me===k){Me=null;break}if(Ie=Me.sibling,Ie!==null){Ie.return=Me.return,Me=Ie;break}Me=Me.return}Ie=Me}Fn(g,k,Ce.children,H),k=k.child}return k;case 9:return Ce=k.type,ve=k.pendingProps.children,Ei(k,H),Ce=Jn(Ce),ve=ve(Ce),k.flags|=1,Fn(g,k,ve,H),k.child;case 14:return ve=k.type,Ce=nr(ve,k.pendingProps),Ce=nr(ve.type,Ce),mc(g,k,ve,Ce,H);case 15:return bc(g,k,k.type,k.pendingProps,H);case 17:return ve=k.type,Ce=k.pendingProps,Ce=k.elementType===ve?Ce:nr(ve,Ce),ga(g,k),k.tag=1,Bn(ve)?(g=!0,Qo(k)):g=!1,Ei(k,H),uc(k,ve,Ce),jl(k,ve,Ce,H),Wl(null,k,ve,!0,g,H);case 19:return Ec(g,k,H);case 22:return vc(g,k,H)}throw Error(t(156,k.tag))};function Xc(g,k){return ks(g,k)}function Kf(g,k,H,ve){this.tag=g,this.key=H,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=k,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ve,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(g,k,H,ve){return new Kf(g,k,H,ve)}function fs(g){return g=g.prototype,!(!g||!g.isReactComponent)}function Jf(g){if(typeof g=="function")return fs(g)?1:0;if(g!=null){if(g=g.$$typeof,g===Ye)return 11;if(g===ze)return 14}return 2}function Wr(g,k){var H=g.alternate;return H===null?(H=Qn(g.tag,k,g.key,g.mode),H.elementType=g.elementType,H.type=g.type,H.stateNode=g.stateNode,H.alternate=g,g.alternate=H):(H.pendingProps=k,H.type=g.type,H.flags=0,H.subtreeFlags=0,H.deletions=null),H.flags=g.flags&14680064,H.childLanes=g.childLanes,H.lanes=g.lanes,H.child=g.child,H.memoizedProps=g.memoizedProps,H.memoizedState=g.memoizedState,H.updateQueue=g.updateQueue,k=g.dependencies,H.dependencies=k===null?null:{lanes:k.lanes,firstContext:k.firstContext},H.sibling=g.sibling,H.index=g.index,H.ref=g.ref,H}function ka(g,k,H,ve,Ce,Ie){var Me=2;if(ve=g,typeof g=="function")fs(g)&&(Me=1);else if(typeof g=="string")Me=5;else e:switch(g){case He:return li(H.children,Ce,Ie,k);case Ke:Me=8,Ce|=8;break;case je:return g=Qn(12,H,k,Ce|2),g.elementType=je,g.lanes=Ie,g;case et:return g=Qn(13,H,k,Ce),g.elementType=et,g.lanes=Ie,g;case Qe:return g=Qn(19,H,k,Ce),g.elementType=Qe,g.lanes=Ie,g;case at:return $a(H,Ce,Ie,k);default:if(typeof g=="object"&&g!==null)switch(g.$$typeof){case Ve:Me=10;break e;case qe:Me=9;break e;case Ye:Me=11;break e;case ze:Me=14;break e;case st:Me=16,ve=null;break e}throw Error(t(130,g==null?g:typeof g,""))}return k=Qn(Me,H,k,Ce),k.elementType=g,k.type=ve,k.lanes=Ie,k}function li(g,k,H,ve){return g=Qn(7,g,ve,k),g.lanes=H,g}function $a(g,k,H,ve){return g=Qn(22,g,ve,k),g.elementType=at,g.lanes=H,g.stateNode={isHidden:!1},g}function ps(g,k,H){return g=Qn(6,g,null,k),g.lanes=H,g}function hs(g,k,H){return k=Qn(4,g.children!==null?g.children:[],g.key,k),k.lanes=H,k.stateNode={containerInfo:g.containerInfo,pendingChildren:null,implementation:g.implementation},k}function Yf(g,k,H,ve,Ce){this.tag=k,this.containerInfo=g,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=ve,this.onRecoverableError=Ce,this.mutableSourceEagerHydrationData=null}function ys(g,k,H,ve,Ce,Ie,Me,We,Je){return g=new Yf(g,k,H,We,Je),k===1?(k=1,Ie===!0&&(k|=8)):k=0,Ie=Qn(3,null,null,k),g.current=Ie,Ie.stateNode=g,Ie.memoizedState={element:ve,isDehydrated:H,cache:null,transitions:null,pendingSuspenseBoundaries:null},El(Ie),g}function Xf(g,k,H){var ve=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Le,key:ve==null?null:""+ve,children:g,containerInfo:k,implementation:H}}function Qc(g){if(!g)return Lr;g=g._reactInternals;e:{if(Jr(g)!==g||g.tag!==1)throw Error(t(170));var k=g;do{switch(k.tag){case 3:k=k.stateNode.context;break e;case 1:if(Bn(k.type)){k=k.stateNode.__reactInternalMemoizedMergedChildContext;break e}}k=k.return}while(k!==null);throw Error(t(171))}if(g.tag===1){var H=g.type;if(Bn(H))return Cu(g,H,k)}return k}function Zc(g,k,H,ve,Ce,Ie,Me,We,Je){return g=ys(H,ve,!0,g,Ce,Ie,Me,We,Je),g.context=Qc(null),H=g.current,ve=Ln(),Ce=Ur(H),Ie=Or(ve,Ce),Ie.callback=k??null,Br(H,Ie,Ce),g.current.lanes=Ce,Ui(g,Ce,ve),zn(g,ve),g}function Ia(g,k,H,ve){var Ce=k.current,Ie=Ln(),Me=Ur(Ce);return H=Qc(H),k.context===null?k.context=H:k.pendingContext=H,k=Or(Ie,Me),k.payload={element:g},ve=ve===void 0?null:ve,ve!==null&&(k.callback=ve),g=Br(Ce,k,Me),g!==null&&(or(g,Ce,Me,Ie),aa(g,Ce,Me)),Me}function Pa(g){if(g=g.current,!g.child)return null;switch(g.child.tag){case 5:return g.child.stateNode;default:return g.child.stateNode}}function ed(g,k){if(g=g.memoizedState,g!==null&&g.dehydrated!==null){var H=g.retryLane;g.retryLane=H!==0&&H<k?H:k}}function gs(g,k){ed(g,k),(g=g.alternate)&&ed(g,k)}function Qf(){return null}var td=typeof reportError=="function"?reportError:function(g){console.error(g)};function bs(g){this._internalRoot=g}Aa.prototype.render=bs.prototype.render=function(g){var k=this._internalRoot;if(k===null)throw Error(t(409));Ia(g,k,null,null)},Aa.prototype.unmount=bs.prototype.unmount=function(){var g=this._internalRoot;if(g!==null){this._internalRoot=null;var k=g.containerInfo;ii(function(){Ia(null,g,null,null)}),k[mr]=null}};function Aa(g){this._internalRoot=g}Aa.prototype.unstable_scheduleHydration=function(g){if(g){var k=Ls();g={blockedOn:null,target:g,priority:k};for(var H=0;H<Pr.length&&k!==0&&k<Pr[H].priority;H++);Pr.splice(H,0,g),H===0&&Bs(g)}};function vs(g){return!(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)}function Ra(g){return!(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11&&(g.nodeType!==8||g.nodeValue!==" react-mount-point-unstable "))}function nd(){}function Zf(g,k,H,ve,Ce){if(Ce){if(typeof ve=="function"){var Ie=ve;ve=function(){var ot=Pa(Me);Ie.call(ot)}}var Me=Zc(k,ve,g,0,null,!1,!1,"",nd);return g._reactRootContainer=Me,g[mr]=Me.current,ro(g.nodeType===8?g.parentNode:g),ii(),Me}for(;Ce=g.lastChild;)g.removeChild(Ce);if(typeof ve=="function"){var We=ve;ve=function(){var ot=Pa(Je);We.call(ot)}}var Je=ys(g,0,!1,null,null,!1,!1,"",nd);return g._reactRootContainer=Je,g[mr]=Je.current,ro(g.nodeType===8?g.parentNode:g),ii(function(){Ia(k,Je,H,ve)}),Je}function Na(g,k,H,ve,Ce){var Ie=H._reactRootContainer;if(Ie){var Me=Ie;if(typeof Ce=="function"){var We=Ce;Ce=function(){var Je=Pa(Me);We.call(Je)}}Ia(k,Me,g,Ce)}else Me=Zf(H,k,g,Ce,ve);return Pa(Me)}Ns=function(g){switch(g.tag){case 3:var k=g.stateNode;if(k.current.memoizedState.isDehydrated){var H=zi(k.pendingLanes);H!==0&&(Va(k,H|1),zn(k,gn()),(Jt&6)===0&&(Pi=gn()+500,Mr()))}break;case 13:ii(function(){var ve=wr(g,1);if(ve!==null){var Ce=Ln();or(ve,g,1,Ce)}}),gs(g,1)}},ja=function(g){if(g.tag===13){var k=wr(g,134217728);if(k!==null){var H=Ln();or(k,g,134217728,H)}gs(g,134217728)}},Fs=function(g){if(g.tag===13){var k=Ur(g),H=wr(g,k);if(H!==null){var ve=Ln();or(H,g,k,ve)}gs(g,k)}},Ls=function(){return nn},Ms=function(g,k){var H=nn;try{return nn=g,k()}finally{nn=H}},qt=function(g,k,H){switch(k){case"input":if(Gt(g,H),k=H.name,H.type==="radio"&&k!=null){for(H=g;H.parentNode;)H=H.parentNode;for(H=H.querySelectorAll("input[name="+JSON.stringify(""+k)+'][type="radio"]'),k=0;k<H.length;k++){var ve=H[k];if(ve!==g&&ve.form===g.form){var Ce=Yo(ve);if(!Ce)throw Error(t(90));Yt(ve),Gt(ve,Ce)}}}break;case"textarea":_n(g,H);break;case"select":k=H.value,k!=null&&vn(g,!!H.multiple,k,!1)}},Di=us,hr=ii;var ep={usingClientEntryPoint:!1,Events:[ao,bi,Yo,Kr,pr,us]},wo={findFiberByHostInstance:Yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tp={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fe.ReactCurrentDispatcher,findHostInstanceByFiber:function(g){return g=xs(g),g===null?null:g.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||Qf,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fa.isDisabled&&Fa.supportsFiber)try{Po=Fa.inject(tp),ar=Fa}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ep,reactDom_production_min.createPortal=function(g,k){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vs(k))throw Error(t(200));return Xf(g,k,null,H)},reactDom_production_min.createRoot=function(g,k){if(!vs(g))throw Error(t(299));var H=!1,ve="",Ce=td;return k!=null&&(k.unstable_strictMode===!0&&(H=!0),k.identifierPrefix!==void 0&&(ve=k.identifierPrefix),k.onRecoverableError!==void 0&&(Ce=k.onRecoverableError)),k=ys(g,1,!1,null,null,H,!1,ve,Ce),g[mr]=k.current,ro(g.nodeType===8?g.parentNode:g),new bs(k)},reactDom_production_min.findDOMNode=function(g){if(g==null)return null;if(g.nodeType===1)return g;var k=g._reactInternals;if(k===void 0)throw typeof g.render=="function"?Error(t(188)):(g=Object.keys(g).join(","),Error(t(268,g)));return g=xs(k),g=g===null?null:g.stateNode,g},reactDom_production_min.flushSync=function(g){return ii(g)},reactDom_production_min.hydrate=function(g,k,H){if(!Ra(k))throw Error(t(200));return Na(null,g,k,!0,H)},reactDom_production_min.hydrateRoot=function(g,k,H){if(!vs(g))throw Error(t(405)
9);var ve=H!=null&&H.hydratedSources||null,Ce=!1,Ie="",Me=td;if(H!=null&&(H.unstable_strictMode===!0&&(Ce=!0),H.identifierPrefix!==void 0&&(Ie=H.identifierPrefix),H.onRecoverableError!==void 0&&(Me=H.onRecoverableError)),k=Zc(k,null,g,1,H??null,Ce,!1,Ie,Me),g[mr]=k.current,ro(g),ve)for(g=0;g<ve.length;g++)H=ve[g],Ce=H._getVersion,Ce=Ce(H._source),k.mutableSourceEagerHydrationData==null?k.mutableSourceEagerHydrationData=[H,Ce]:k.mutableSourceEagerHydrationData.push(H,Ce);return new Aa(k)},reactDom_production_min.render=function(g,k,H){if(!Ra(k))throw Error(t(200));return Na(null,g,k,!1,H)},reactDom_production_min.unmountComponentAtNode=function(g){if(!Ra(g))throw Error(t(40));return g._reactRootContainer?(ii(function(){Na(null,null,g,!1,function(){g._reactRootContainer=null,g[mr]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=us,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(g,k,H,ve){if(!Ra(H))throw Error(t(200));if(g==null||g._reactInternals===void 0)throw Error(t(38));return Na(g,k,H,!1,ve)},reactDom_production_min.version="18.3.1-next-f1338f8080-20240426",reactDom_production_min}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),reactDom.exports=requireReactDom_production_min(),reactDom.exports}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var n=requireReactDom();return client.createRoot=n.createRoot,client.hydrateRoot=n.hydrateRoot,client}var clientExports=requireClient(),reactFastCompare,hasRequiredReactFastCompare;function requireReactFastCompare(){if(hasRequiredReactFastCompare)return reactFastCompare;hasRequiredReactFastCompare=1;var n=typeof Element<"u",i=typeof Map=="function",t=typeof Set=="function",e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(d,p){if(d===p)return!0;if(d&&p&&typeof d=="object"&&typeof p=="object"){if(d.constructor!==p.constructor)return!1;var h,y,E;if(Array.isArray(d)){if(h=d.length,h!=p.length)return!1;for(y=h;y--!==0;)if(!o(d[y],p[y]))return!1;return!0}var $;if(i&&d instanceof Map&&p instanceof Map){if(d.size!==p.size)return!1;for($=d.entries();!(y=$.next()).done;)if(!p.has(y.value[0]))return!1;for($=d.entries();!(y=$.next()).done;)if(!o(y.value[1],p.get(y.value[0])))return!1;return!0}if(t&&d instanceof Set&&p instanceof Set){if(d.size!==p.size)return!1;for($=d.entries();!(y=$.next()).done;)if(!p.has(y.value[0]))return!1;return!0}if(e&&ArrayBuffer.isView(d)&&ArrayBuffer.isView(p)){if(h=d.length,h!=p.length)return!1;for(y=h;y--!==0;)if(d[y]!==p[y])return!1;return!0}if(d.constructor===RegExp)return d.source===p.source&&d.flags===p.flags;if(d.valueOf!==Object.prototype.valueOf&&typeof d.valueOf=="function"&&typeof p.valueOf=="function")return d.valueOf()===p.valueOf();if(d.toString!==Object.prototype.toString&&typeof d.toString=="function"&&typeof p.toString=="function")return d.toString()===p.toString();if(E=Object.keys(d),h=E.length,h!==Object.keys(p).length)return!1;for(y=h;y--!==0;)if(!Object.prototype.hasOwnProperty.call(p,E[y]))return!1;if(n&&d instanceof Element)return!1;for(y=h;y--!==0;)if(!((E[y]==="_owner"||E[y]==="__v"||E[y]==="__o")&&d.$$typeof)&&!o(d[E[y]],p[E[y]]))return!1;return!0}return d!==d&&p!==p}return reactFastCompare=function(p,h){try{return o(p,h)}catch(y){if((y.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw y}},reactFastCompare}var reactFastCompareExports=requireReactFastCompare();const fastCompare=getDefaultExportFromCjs(reactFastCompareExports);var browser,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var n=function(i,t,e,o,d,p,h,y){if(!i){var E;if(t===void 0)E=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var $=[e,o,d,p,h,y],M=0;E=new Error(t.replace(/%s/g,function(){return $[M++]})),E.name="Invariant Violation"}throw E.framesToPop=1,E}};return browser=n,browser}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(i,t,e,o){var d=e?e.call(o,i,t):void 0;if(d!==void 0)return!!d;if(i===t)return!0;
9if(typeof i!="object"||!i||typeof t!="object"||!t)return!1;var p=Object.keys(i),h=Object.keys(t);if(p.length!==h.length)return!1;for(var y=Object.prototype.hasOwnProperty.bind(t),E=0;E<p.length;E++){var $=p[E];if(!y($))return!1;var M=i[$],X=t[$];if(d=e?e.call(o,M,X,$):void 0,d===!1||d===void 0&&M!==X)return!1}return!0}),shallowequal}var shallowequalExports=requireShallowequal();const shallowEqual=getDefaultExportFromCjs(shallowequalExports);var TAG_NAMES=(n=>(n.BASE="base",n.BODY="body",n.HEAD="head",n.HTML="html",n.LINK="link",n.META="meta",n.NOSCRIPT="noscript",n.SCRIPT="script",n.STYLE="style",n.TITLE="title",n.FRAGMENT="Symbol(react.fragment)",n))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((n,[i,t])=>(n[t]=i,n),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(n,i)=>{for(let t=n.length-1;t>=0;t-=1){const e=n[t];if(Object.prototype.hasOwnProperty.call(e,i))return e[i]}return null},getTitleFromPropsList=n=>{let i=getInnermostProperty(n,"title");const t=getInnermostProperty(n,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(i)&&(i=i.join("")),t&&i)return t.replace(/%s/g,()=>i);const e=getInnermostProperty(n,HELMET_PROPS.DEFAULT_TITLE);return i||e||void 0},getOnChangeClientState=n=>getInnermostProperty(n,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(n,i)=>i.filter(t=>typeof t[n]<"u").map(t=>t[n]).reduce((t,e)=>({...t,...e}),{}),getBaseTagFromPropsList=(n,i)=>i.filter(t=>typeof t.base<"u").map(t=>t.base).reverse().reduce((t,e)=>{if(!t.length){const o=Object.keys(e);for(let d=0;d<o.length;d+=1){const h=o[d].toLowerCase();if(n.indexOf(h)!==-1&&e[h])return t.concat(e)}}return t},[]),warn=n=>console&&typeof console.warn=="function"&&console.warn(n),getTagsFromPropsList=(n,i,t)=>{const e={};return t.filter(o=>Array.isArray(o[n])?!0:(typeof o[n]<"u"&&warn(`Helmet: ${n} should be of type "Array". Instead found type "${typeof o[n]}"`),!1)).map(o=>o[n]).reverse().reduce((o,d)=>{const p={};d.filter(y=>{let E;const $=Object.keys(y);for(let X=0;X<$.length;X+=1){const Z=$[X],ye=Z.toLowerCase();i.indexOf(ye)!==-1&&!(E==="rel"&&y[E].toLowerCase()==="canonical")&&!(ye==="rel"&&y[ye].toLowerCase()==="stylesheet")&&(E=ye),i.indexOf(Z)!==-1&&(Z==="innerHTML"||Z==="cssText"||Z==="itemprop")&&(E=Z)}if(!E||!y[E])return!1;const M=y[E].toLowerCase();return e[E]||(e[E]={}),p[E]||(p[E]={}),e[E][M]?!1:(p[E][M]=!0,!0)}).reverse().forEach(y=>o.push(y));const h=Object.keys(p);for(let y=0;y<h.length;y+=1){const E=h[y],$={...e[E],...p[E]};e[E]=$}return o},[]).reverse()},getAnyTrueFromPropsList=(n,i)=>{if(Array.isArray(n)&&n.length){for(let t=0;t<n.length;t+=1)if(n[t][i])return!0}return!1},reducePropsToState$1=n=>({baseTag:getBaseTagFromPropsList(["href"],n),bodyAttributes:getAttributesFromPropsList("bodyAttributes",n),defer:getInnermostProperty(n,HELMET_PROPS.DEFER),encode:getInnermostProperty(n,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",n),linkTags:getTagsFromPropsList("link",["rel","href"],n),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],n),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],n),onChangeClientState:getOnChangeClientState(n),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],n),styleTags:getTagsFromPropsList("style",["cssText"],n),title:getTitleFromPropsList(n),titleAttributes:getAttributesFromPropsList("titleAttributes",n),prioritizeSeoTags:getAnyTrueFromPropsList(n,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=n=>Array.isArray(n)?n.join(""):n,checkIfPropsMatch=(n,i)=>{const t=Object.keys(n);for(let e=0;e<t.length;e+=1)if(i[t[e]]&&i[t[e]].includes(n[t[e]]))return!0;return!1},prioritizer=(n,i)=>Array.isArray(n)?n.reduce((t,e)=>(checkIfPropsMatch(e,i)?t.priority.push(e):t.default.push(e),t),{priority:[],default:[]}):{default:n,priority:[]},without=(n,i)=>({...n,[i]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(n,i=!0)=>i===!1?String(n):String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),generateElementAttributesAsString=n=>Object.keys(n).reduce((i,t)=>{const e=typeof n[t]<"u"?`${t}="${n[t]}"`:`${t}`;return i?`${i} ${e}`:e},""),generateTitleAsString=(n,i,t,e)=>{const o=generateElementAttributesAsString(t),d=flattenArray(i);return o?`<${n} ${HELMET_ATTRIBUTE}="true" ${o}>${encodeSpecialCharacters(d,e)}</${n}>`:`<${n} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(d,e)}</${n}>`},generateTagsAsString=(n,i,t=!0)=>i.reduce((e,o)=>{const d=o,p=Object.keys(d).filter(E=>!(E==="innerHTML"||E==="cssText")).reduce((E,$)=>{const M=typeof d[$]>"u"?$:`${$}="${encodeSpecialCharacters(d[$],t)}"`;return E?`${E} ${M}
9`:M},""),h=d.innerHTML||d.cssText||"",y=SELF_CLOSING_TAGS.indexOf(n)===-1;return`${e}<${n} ${HELMET_ATTRIBUTE}="true" ${p}${y?"/>":`>${h}</${n}>`}`},""),convertElementAttributesToReactProps=(n,i={})=>Object.keys(n).reduce((t,e)=>{const o=REACT_TAG_MAP[e];return t[o||e]=n[e],t},i),generateTitleAsReactComponent=(n,i,t)=>{const e={key:i,[HELMET_ATTRIBUTE]:!0},o=convertElementAttributesToReactProps(t,e);return[React.createElement("title",o,i)]},generateTagsAsReactComponent=(n,i)=>i.map((t,e)=>{const o={key:e,[HELMET_ATTRIBUTE]:!0};return Object.keys(t).forEach(d=>{const h=REACT_TAG_MAP[d]||d;if(h==="innerHTML"||h==="cssText"){const y=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:y}}else o[h]=t[d]}),React.createElement(n,o)}),getMethodsForTag=(n,i,t=!0)=>{switch(n){case"title":return{toComponent:()=>generateTitleAsReactComponent(n,i.title,i.titleAttributes),toString:()=>generateTitleAsString(n,i.title,i.titleAttributes,t)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(i),toString:()=>generateElementAttributesAsString(i)};default:return{toComponent:()=>generateTagsAsReactComponent(n,i),toString:()=>generateTagsAsString(n,i,t)}}},getPriorityMethods=({metaTags:n,linkTags:i,scriptTags:t,encode:e})=>{const o=prioritizer(n,SEO_PRIORITY_TAGS.meta),d=prioritizer(i,SEO_PRIORITY_TAGS.link),p=prioritizer(t,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",o.priority),...generateTagsAsReactComponent("link",d.priority),...generateTagsAsReactComponent("script",p.priority)],toString:()=>`${getMethodsForTag("meta",o.priority,e)} ${getMethodsForTag("link",d.priority,e)} ${getMethodsForTag("script",p.priority,e)}`},metaTags:o.default,linkTags:d.default,scriptTags:p.default}},mapStateOnServer=n=>{const{baseTag:i,bodyAttributes:t,encode:e=!0,htmlAttributes:o,noscriptTags:d,styleTags:p,title:h="",titleAttributes:y,prioritizeSeoTags:E}=n;let{linkTags:$,metaTags:M,scriptTags:X}=n,Z={toComponent:()=>{},toString:()=>""};return E&&({priorityMethods:Z,linkTags:$,metaTags:M,scriptTags:X}=getPriorityMethods(n)),{priority:Z,base:getMethodsForTag("base",i,e),bodyAttributes:getMethodsForTag("bodyAttributes",t,e),htmlAttributes:getMethodsForTag("htmlAttributes",o,e),link:getMethodsForTag("link",$,e),meta:getMethodsForTag("meta",M,e),noscript:getMethodsForTag("noscript",d,e),script:getMethodsForTag("script",X,e),style:getMethodsForTag("style",p,e),title:getMethodsForTag("title",{title:h,titleAttributes:y},e)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{instances=[];canUseDOM=isDocument;context;value={setHelmet:n=>{this.context.helmet=n},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:n=>{(this.canUseDOM?instances:this.instances).push(n)},remove:n=>{const i=(this.canUseDOM?instances:this.instances).indexOf(n);(this.canUseDOM?instances:this.instances).splice(i,1)}}};constructor(n,i){this.context=n,this.canUseDOM=i||!1,i||(n.helmet=server_default({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},defaultValue={},Context=React.createContext(defaultValue),HelmetProvider=class rd extends reactExports.Component{static canUseDOM=isDocument;helmetData;constructor(i){super(i),this.helmetData=new HelmetData(this.props.context||{},rd.canUseDOM)}render(){return React.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},updateTags=(n,i)=>{const t=document.head||document.querySelector("head"),e=t.querySelectorAll(`${n}[${HELMET_ATTRIBUTE}]`),o=[].slice.call(e),d=[];let p;return i&&i.length&&i.forEach(h=>{const y=document.createElement(n);for(const E in h)if(Object.prototype.hasOwnProperty.call(h,E))if(E==="innerHTML")y.innerHTML=h.innerHTML;else if(E==="cssText")y.styleSheet?y.styleSheet.cssText=h.cssText:y.appendChild(document.createTextNode(h.cssText));else{const $=E,M=typeof h[$]>"u"?"":h[$];y.setAttribute(E,M)}y.setAttribute(HELMET_ATTRIBUTE,"true"),o.some((E,$)=>(p=$,y.isEqualNode(E)))?o.splice(p,1):d.push(y)}),o.forEach(h=>h.parentNode?.removeChild(h)),d.forEach(h=>t.appendChild(h)),{oldTags:o,newTags:d}},updateAttributes=(n,i)=>{const t=document.getElementsByTagName(n)[0];if(!t)return;const e=t.getAttribute(HELMET_ATTRIBUTE),o=e?e.split(","):[],d=[...o],p=Object.keys(i);for(const h of p){const y=i[h]||"";t.getAttribute(h)!==y&&t.setAttribute(h,y),o.indexOf(h)===-1&&o.push(h);const E=d.indexOf(h);E!==-1&&d.splice(E,1)}for(let h=d.length-1;h>=0;
9h-=1)t.removeAttribute(d[h]);o.length===d.length?t.removeAttribute(HELMET_ATTRIBUTE):t.getAttribute(HELMET_ATTRIBUTE)!==p.join(",")&&t.setAttribute(HELMET_ATTRIBUTE,p.join(","))},updateTitle=(n,i)=>{typeof n<"u"&&document.title!==n&&(document.title=flattenArray(n)),updateAttributes("title",i)},commitTagChanges=(n,i)=>{const{baseTag:t,bodyAttributes:e,htmlAttributes:o,linkTags:d,metaTags:p,noscriptTags:h,onChangeClientState:y,scriptTags:E,styleTags:$,title:M,titleAttributes:X}=n;updateAttributes("body",e),updateAttributes("html",o),updateTitle(M,X);const Z={baseTag:updateTags("base",t),linkTags:updateTags("link",d),metaTags:updateTags("meta",p),noscriptTags:updateTags("noscript",h),scriptTags:updateTags("script",E),styleTags:updateTags("style",$)},ye={},be={};Object.keys(Z).forEach(we=>{const{newTags:xe,oldTags:$e}=Z[we];xe.length&&(ye[we]=xe),$e.length&&(be[we]=Z[we].oldTags)}),i&&i(),y(n,ye,be)},_helmetCallback=null,handleStateChangeOnClient$1=n=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),n.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(n,()=>{_helmetCallback=null})}):(commitTagChanges(n),_helmetCallback=null)},client_default=handleStateChangeOnClient$1,HelmetDispatcher=class extends reactExports.Component{rendered=!1;shouldComponentUpdate(n){return!shallowEqual(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:i}=this.props.context;let t=null;const e=reducePropsToState$1(n.get().map(o=>{const d={...o.props};return delete d.context,d}));HelmetProvider.canUseDOM?client_default(e):server_default&&(t=server_default(e)),i(t)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},Helmet=class extends reactExports.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(n){return!fastCompare(without(this.props,"helmetData"),without(n,"helmetData"))}mapNestedChildrenToProps(n,i){if(!i)return null;switch(n.type){case"script":case"noscript":return{innerHTML:i};case"style":return{cssText:i};default:throw new Error(`<${n.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(n,i,t,e){return{...i,[n.type]:[...i[n.type]||[],{...t,...this.mapNestedChildrenToProps(n,e)}]}}mapObjectTypeChildren(n,i,t,e){switch(n.type){case"title":return{...i,[n.type]:e,titleAttributes:{...t}};case"body":return{...i,bodyAttributes:{...t}};case"html":return{...i,htmlAttributes:{...t}};default:return{...i,[n.type]:{...t}}}}mapArrayTypeChildrenToProps(n,i){let t={...i};return Object.keys(n).forEach(e=>{t={...t,[e]:n[e]}}),t}warnOnInvalidChildren(n,i){return invariant(VALID_TAG_NAMES.some(t=>n.type===t),typeof n.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${n.type}> elements. Refer to our API for more information.`),invariant(!i||typeof i=="string"||Array.isArray(i)&&!i.some(t=>typeof t!="string"),`Helmet expects a string as a child of <${n.type}>. Did you forget to wrap your children in braces? ( <${n.type}>{\`\`}</${n.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,i){let t={};return React.Children.forEach(n,e=>{if(!e||!e.props)return;const{children:o,...d}=e.props,p=Object.keys(d).reduce((y,E)=>(y[HTML_TAG_MAP[E]||E]=d[E],y),{});let{type:h}=e;
9switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(e,o),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(o,i);break;case"link":case"meta":case"noscript":case"script":case"style":t=this.flattenArrayTypeChildren(e,t,p,o);break;default:i=this.mapObjectTypeChildren(e,i,p,o);break}}),this.mapArrayTypeChildrenToProps(t,i)}render(){const{children:n,...i}=this.props;let t={...i},{helmetData:e}=i;if(n&&(t=this.mapChildrenToProps(n,t)),e&&!(e instanceof HelmetData)){const o=e;e=new HelmetData(o.context,!0),delete t.helmetData}return e?React.createElement(HelmetDispatcher,{...t,context:e.value}):React.createElement(Context.Consumer,null,o=>React.createElement(HelmetDispatcher,{...t,context:o}))}};class SequentialIDGenerator{constructor(i=""){this.prefix=i,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const i=this.increment().toString(36);return this.prefix?`${this.prefix}${i}`:i}increment(){const i=this.count+this.offset;return i===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,i}}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(n){const i=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(n);if(i===null)return maxValue;let t=i[1];switch(i[2]){case"ch":t=parseFloat(t)*8.8984375;break;case"em":case"rem":t=parseFloat(t)*16;break;case"ex":t=parseFloat(t)*8.296875;break;case"px":t=parseFloat(t);break}return+t}function _testQuery(n,i,t){return function(e){return n.test(e)?!0:i.test(e)?!1:t.test(e)}}function _testIsPrint(n,i){const t=isPrint.test(n),e=isPrintOnly.test(n),o=isPrint.test(i),d=isPrintOnly.test(i);return t&&o?!e&&d?1:e&&!d?-1:n.localeCompare(i):t?1:o?-1:null}function sortCSSmq(n,i){if(n==="")return-1;if(i==="")return 1;const t=_testIsPrint(n,i);if(t!==null)return t;const e=isMinWidth(n)||isMinHeight(n),o=isMaxWidth(n)||isMaxHeight(n),d=isMinWidth(i)||isMinHeight(i),p=isMaxWidth(i)||isMaxHeight(i);if(e&&p)return-1;if(o&&d)return 1;const h=_getQueryLength(n),y=_getQueryLength(i);return h===maxValue&&y===maxValue?n.localeCompare(i):h===maxValue?1:y===maxValue?-1:h>y?o?-1:1:h<y?o?1:-1:n.localeCompare(i)}class MultiCache{constructor(i,t,e){this.idGenerator=i,this.onNewCache=t,this.onNewValue=e,this.sortedCacheKeys=[],this.caches={}}getCache(i){if(!this.caches[i]){const t=new Cache(this.idGenerator,this.onNewValue);t.key=i,this.sortedCacheKeys.push(i),this.sortedCacheKeys.sort(sortCSSmq);const e=this.sortedCacheKeys.indexOf(i),o=e<this.sortedCacheKeys.length-1?this.sortedCacheKeys[e+1]:void 0;this.caches[i]=t,this.onNewCache(i,t,o)}return this.caches[i]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(i,t){this.cache={},this.idGenerator=i,this.onNewValue=t}addValue(i,t){const e=this.cache[i];if(e)return e;const o=this.idGenerator.next();return this.cache[i]=o,this.onNewValue(this,o,t),o}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$2={};function hyphenateStyleName$2(n){return n in cache$2?cache$2[n]:cache$2[n]=n.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(n){return n.charAt(0).toUpperCase()+n.slice(1)}function prefixProperty(n,i,t){if(n.hasOwnProperty(i)){for(var e={},o=n[i],d=capitalizeString(i),p=Object.keys(t),h=0;h<p.length;h++){var y=p[h];if(y===i)for(var E=0;E<o.length;E++)e[o[E]+d]=t[i];e[y]=t[y]}return e}return t}function prefixValue$1(n,i,t,e,o){for(var d=0,p=n.length;d<p;++d){var h=n[d](i,t,e,o);if(h)return h}}function addIfNew(n,i){n.indexOf(i)===-1&&n.push(i)}
9function addNewValuesOnly(n,i){if(Array.isArray(i))for(var t=0,e=i.length;t<e;++t)addIfNew(n,i[t]);else addIfNew(n,i)}function isObject$3(n){return n instanceof Object&&!Array.isArray(n)}function createPrefixer(n){var i=n.prefixMap,t=n.plugins;return function e(o){for(var d in o){var p=o[d];if(isObject$3(p))o[d]=e(p);else if(Array.isArray(p)){for(var h=[],y=0,E=p.length;y<E;++y){var $=prefixValue$1(t,d,p[y],o,i);addNewValuesOnly(h,$||p[y])}h.length>0&&(o[d]=h)}else{var M=prefixValue$1(t,d,p,o,i);M&&(o[d]=M),o=prefixProperty(i,d,o)}}return o}}var w$1=["Webkit"],m=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={prefixMap:{appearance:wm,textEmphasisPosition:w$1,textEmphasis:w$1,textEmphasisStyle:w$1,textEmphasisColor:w$1,boxDecorationBreak:w$1,maskImage:w$1,maskMode:w$1,maskRepeat:w$1,maskPosition:w$1,maskClip:w$1,maskOrigin:w$1,maskSize:w$1,maskComposite:w$1,mask:w$1,maskBorderSource:w$1,maskBorderMode:w$1,maskBorderSlice:w$1,maskBorderWidth:w$1,maskBorderOutset:w$1,maskBorderRepeat:w$1,maskBorder:w$1,maskType:w$1,textDecorationStyle:w$1,textDecorationSkip:w$1,textDecorationLine:w$1,textDecorationColor:w$1,userSelect:wmms,backdropFilter:w$1,fontKerning:w$1,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w$1,shapeImageThreshold:w$1,shapeImageMargin:w$1,shapeImageOutside:w$1,filter:w$1,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w$1,tabSize:m,fontFeatureSettings:w$1,columnCount:w$1,columnFill:w$1,columnGap:w$1,columnRule:w$1,columnRuleColor:w$1,columnRuleStyle:w$1,columnRuleWidth:w$1,columns:w$1,columnSpan:w$1,columnWidth:w$1,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(n,i){if(typeof i=="string"&&i==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(n,i){if(n==="cursor"&&values$3.hasOwnProperty(i))return prefixes$5.map(function(t){return t+i})}var isPrefixedValue$1={exports:{}},hasRequiredIsPrefixedValue;function requireIsPrefixedValue(){return hasRequiredIsPrefixedValue||(hasRequiredIsPrefixedValue=1,(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=e;var t=/-webkit-|-moz-|-ms-/;function e(o){return typeof o=="string"&&t.test(o)}n.exports=i.default})(isPrefixedValue$1,isPrefixedValue$1.exports)),isPrefixedValue$1.exports}var isPrefixedValueExports=requireIsPrefixedValue();const isPrefixedValue=getDefaultExportFromCjs(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(n,i){if(typeof i=="string"&&!isPrefixedValue(i)&&i.indexOf("cross-fade(")>-1)return prefixes$4.map(function(t){return i.replace(/cross-fade\(/g,t+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter$1(n,i){if(typeof i=="string"&&!isPrefixedValue(i)&&i.indexOf("filter(")>-1)return prefixes$3.map(function(t){return i.replace(/filter\(/g,t+"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(n,i){if(n==="display"&&values$2.hasOwnProperty(i))return values$2[i]}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(n,i,t){n==="flexDirection"&&typeof i=="string"&&(i.indexOf("column")>-1?t.WebkitBoxOrient="vertical":t.WebkitBoxOrient="horizontal",i.indexOf("reverse")>-1?t.WebkitBoxDirection="reverse":t.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(n)&&(t[alternativeProps$1[n]]=alternativeValues[i]||i)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function gradient(n,i){if(typeof i=="string"&&!isPrefixedValue(i)&&values$1.test(i))return prefixes$2.map(function(t){return i.replace(values$1,function(e){return t+e})})}var _slicedToArray$a=(function(){function n(i,t){var e=[],o=!0,d=!1,p=void 0;try{for(var h=i[Symbol.iterator](),y;!(o=(y=h.next()).done)&&(e.push(y.value),!(t&&e.length===t));o=!0);}catch(E){d=!0,p=E}finally{try{!o&&h.return&&h.return()}finally{if(d)throw p}}return e}return function(i,t){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return n(i,t);
9throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();function isSimplePositionValue(n){return typeof n=="number"&&!isNaN(n)}function isComplexSpanValue(n){return typeof n=="string"&&n.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function(i,t){alignmentValues.indexOf(i)>-1&&(t.msGridRowAlign=i)},gridColumn:function(i,t){if(isSimplePositionValue(i))t.msGridColumn=i;else if(isComplexSpanValue(i)){var e=i.split("/"),o=_slicedToArray$a(e,2),d=o[0],p=o[1];propertyConverters.gridColumnStart(+d,t);var h=p.split(/ ?span /),y=_slicedToArray$a(h,2),E=y[0],$=y[1];E===""?propertyConverters.gridColumnEnd(+d+ +$,t):propertyConverters.gridColumnEnd(+p,t)}else propertyConverters.gridColumnStart(i,t)},gridColumnEnd:function(i,t){var e=t.msGridColumn;isSimplePositionValue(i)&&isSimplePositionValue(e)&&(t.msGridColumnSpan=i-e)},gridColumnStart:function(i,t){isSimplePositionValue(i)&&(t.msGridColumn=i)},gridRow:function(i,t){if(isSimplePositionValue(i))t.msGridRow=i;else if(isComplexSpanValue(i)){var e=i.split("/"),o=_slicedToArray$a(e,2),d=o[0],p=o[1];propertyConverters.gridRowStart(+d,t);var h=p.split(/ ?span /),y=_slicedToArray$a(h,2),E=y[0],$=y[1];E===""?propertyConverters.gridRowEnd(+d+ +$,t):propertyConverters.gridRowEnd(+p,t)}else propertyConverters.gridRowStart(i,t)},gridRowEnd:function(i,t){var e=t.msGridRow;isSimplePositionValue(i)&&isSimplePositionValue(e)&&(t.msGridRowSpan=i-e)},gridRowStart:function(i,t){isSimplePositionValue(i)&&(t.msGridRow=i)},gridTemplateColumns:function(i,t){t.msGridColumns=i},gridTemplateRows:function(i,t){t.msGridRows=i},justifySelf:function(i,t){alignmentValues.indexOf(i)>-1&&(t.msGridColumnAlign=i)}};function grid$1(n,i,t){if(n==="display"&&i in displayValues)return displayValues[i];if(n in propertyConverters){var e=propertyConverters[n];e(i,t)}}var prefixes$1=["-webkit-",""];function imageSet(n,i){if(typeof i=="string"&&!isPrefixedValue(i)&&i.indexOf("image-set(")>-1)return prefixes$1.map(function(t){return i.replace(/image-set\(/g,t+"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(n,i,t){if(Object.prototype.hasOwnProperty.call(alternativeProps,n))for(var e=alternativeProps[n],o=0,d=e.length;o<d;++o)t[e[o]]=i}function position$2(n,i){if(n==="position"&&i==="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$1(n,i){if(properties$1.hasOwnProperty(n)&&values.hasOwnProperty(i))return prefixes.map(function(t){return t+i})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache$1={};function toHyphenLower(n){return"-"+n.toLowerCase()}function hyphenateStyleName(n){if(cache$1.hasOwnProperty(n))return cache$1[n];var i=n.replace(uppercasePattern,toHyphenLower);return cache$1[n]=msPattern.test(i)?"-"+i:i}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);var hasRequiredHyphenateProperty;function requireHyphenateProperty(){return hasRequiredHyphenateProperty||(hasRequiredHyphenateProperty=1,(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=d;var t=require$$0,e=o(t);function o(p){return p&&p.__esModule?p:{default:p}}function d(p){return(0,e.default)(p)}n.exports=i.default}
9)(hyphenateProperty$1,hyphenateProperty$1.exports)),hyphenateProperty$1.exports}var hyphenatePropertyExports=requireHyphenateProperty();const hyphenateProperty=getDefaultExportFromCjs(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(n,i){if(isPrefixedValue(n))return n;for(var t=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g),e=0,o=t.length;e<o;++e){var d=t[e],p=[d];for(var h in i){var y=hyphenateProperty(h);if(d.indexOf(y)>-1&&y!=="order")for(var E=i[h],$=0,M=E.length;$<M;++$)p.unshift(d.replace(y,prefixMapping[E[$]]+y))}t[e]=p.join(",")}return t.join(",")}function transition(n,i,t,e){if(typeof i=="string"&&properties.hasOwnProperty(n)){var o=prefixValue(i,e),d=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-moz-|-ms-/.test(h)}).join(",");if(n.indexOf("Webkit")>-1)return d;var p=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h){return!/-webkit-|-ms-/.test(h)}).join(",");return n.indexOf("Moz")>-1?p:(t["Webkit"+capitalizeString(n)]=d,t["Moz"+capitalizeString(n)]=p,o)}}var plugins$1=[backgroundClip,crossFade,cursor,filter$1,flexboxOld,gradient,grid$1,imageSet,logical,position$2,sizing$1,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins:plugins$1});function injectStylePrefixed(n,i,t,e){const o=n.getCache(t);let d="";for(const p in i){const h=i[p];if(h!=null)if(typeof h!="object"){const y=`${hyphenateStyleName$2(p)}:${h}`,E=`${e}${y}
9`,$=o.cache[E];if($!==void 0){d+=" "+$;continue}else{let M="";const X=prefix({[p]:h});for(const ye in X){const be=X[ye],we=typeof be;if(we==="string"||we==="number"){const xe=`${hyphenateStyleName$2(ye)}:${be}`;xe!==y&&(M+=`${xe};`)}else if(Array.isArray(be)){const xe=hyphenateStyleName$2(ye);for(let $e=0;$e<be.length;$e++){const Ne=`${xe}:${be[$e]}`;Ne!==y&&(M+=`${Ne};`)}}}M+=y;const Z=o.addValue(E,{pseudo:e,block:M});d+=" "+Z}}else p[0]===":"?d+=" "+injectStylePrefixed(n,h,t,e+p):p.substring(0,6)==="@media"&&(d+=" "+injectStylePrefixed(n,h,p.substr(7),e))}return d.slice(1)}function atomicSelector(n,i){let t=`.${n}`;return i&&(t+=i),t}function keyframesToBlock(n){let i="";for(const t in n)i+=`${t}{${declarationsToBlock(n[t])}}`;return i}function declarationsToBlock(n){let i="";for(const t in n){const e=n[t];(typeof e=="string"||typeof e=="number")&&(i+=`${hyphenateStyleName$2(t)}:${e};`)}return i.slice(0,-1)}function keyframesBlockToRule(n,i){return`@keyframes ${n}{${i}}`}function fontFaceBlockToRule(n,i){return`@font-face{font-family:${n};${i}}`}function styleBlockToRule(n,i){return`${n}{${i}}`}const insertRuleIntoDevtools=(n,i)=>{const t=n.substring(1,n.indexOf(":")!==-1?n.indexOf(":"):n.length),e={};for(const o of i.split(";"))o.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[t]&&(e[o.substring(0,o.indexOf(":"))]=o.substring(o.indexOf(":")+1,o.length));window.__STYLETRON_DEVTOOLS__.atomicMap[t]=e},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(n,i,t){let e;for(;e=i.exec(t);){const[,o,d,p]=e,h=d?`${d}${p}`:p;n.cache[h]=o,n.idGenerator.increment()}}function hydrate(n,i,t){let e;for(;e=i.exec(t);){const[,o,d]=e;n.cache[d]=o,n.idGenerator.increment()}}class StyletronClient{constructor(i={}){this.styleElements={};const t=new SequentialIDGenerator(i.prefix),e=(o,d,p)=>{const{pseudo:h,block:y}=p,E=this.styleElements[o.key].sheet,$=atomicSelector(d,h),M=styleBlockToRule($,y);try{E.insertRule(M,E.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(t,(o,d,p)=>{const h=document.createElement("style");if(h.media=o,p===void 0)this.container.appendChild(h);else{const y=findSheetIndexWithMedia(this.container.children,p);this.container.insertBefore(h,this.container.children[y])}this.styleElements[o]=h},e),this.keyframesCache=new Cache(new SequentialIDGenerator(i.prefix),(o,d,p)=>{this.styleCache.getCache("");const h=this.styleElements[""].sheet,y=keyframesBlockToRule(d,keyframesToBlock(p));try{h.insertRule(y,h.cssRules.length)}catch{}}),this.fontFaceCache=new Cache(new SequentialIDGenerator(i.prefix),(o,d,p)=>{this.styleCache.getCache("");const h=this.styleElements[""].sheet,y=fontFaceBlockToRule(d,declarationsToBlock(p));try{h.insertRule(y,h.cssRules.length)}catch{}}),i.container&&(this.container=i.container),i.hydrate&&i.hydrate.length>0){if(!this.container){const o=i.hydrate[0].parentElement;o!=null&&(this.container=o)}for(let o=0;o<i.hydrate.length;o++){const d=i.hydrate[o],p=d.getAttribute("data-hydrate");if(p==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,d.textContent);continue}if(p==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,d.textContent);continue}const h=d.media?d.media:"";this.styleElements[h]=d;const y=new Cache(t,e);y.key=h,hydrateStyles(y,STYLES_HYDRATOR,d.textContent),this.styleCache.sortedCacheKeys.push(h),this.styleCache.caches[h]=y}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(i){return injectStylePrefixed(this.styleCache,i,"","")}renderFontFace(i){const t=declarationsToBlock(i);return this.fontFaceCache.addValue(t,i)}renderKeyframes(i){const t=keyframesToBlock(i);return this.keyframesCache.addValue(t,i)}}function findSheetIndexWithMedia(n,i){let t=0;for(;t<n.length;t++){const e=n[t];if(e.tagName==="STYLE"&&e.media===i)return t}return-1}function driver(n,i){const t=renderDeclarativeRules(n,i);return i.renderStyle(t)}function getInitialStyle(){return{}}function renderDeclarativeRules(n,i){for(const t in n){const e=n[t];if(t==="animationName"&&typeof e!="string"){n.animationName=i.renderKeyframes(e);continue}if(t==="fontFamily"&&typeof e!="string")if(Array.isArray(e)){let o="";for(const d of e)typeof d=="object"?o+=`${i.renderFontFace(d)}
9,`:typeof d=="string"&&(o+=`${d},`);n.fontFamily=o.slice(0,-1);continue}else{if(e===void 0)continue;n.fontFamily=i.renderFontFace(e);continue}typeof e=="object"&&e!==null&&renderDeclarativeRules(e,i)}return n}function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$j.apply(this,arguments)}const noopEngine={renderStyle:()=>"",renderKeyframes:()=>"",renderFontFace:()=>""},StyletronContext=reactExports.createContext(noopEngine),HydrationContext=reactExports.createContext(!1),DebugEngineContext=reactExports.createContext(void 0),Provider$1=StyletronContext.Provider;function checkNoopEngine(n){n===noopEngine&&console.warn("Styletron Provider is not set up. Defaulting to no-op.")}function useStyletron$1(){const n=reactExports.useContext(StyletronContext);return reactExports.useContext(DebugEngineContext),reactExports.useContext(HydrationContext),checkNoopEngine(n),reactExports.useRef(""),reactExports.useRef([]),[function(t){return driver(t,n)}]}function createStyled$1({getInitialStyle:n,driver:i,wrapper:t}){function e(o,d){return createStyledElementComponent(autoComposeShallow({reducers:[],base:o,driver:i,getInitialStyle:n,wrapper:t},d))}return e}const withStyleDeep=(n,i)=>{const t=n.__STYLETRON__;return createStyledElementComponent(autoComposeDeep(t,i))},withStyle$1=withStyleDeep,withWrapper$1=(n,i)=>{const t=n.__STYLETRON__,e={getInitialStyle:t.getInitialStyle,base:t.base,driver:t.driver,wrapper:i,reducers:t.reducers};return createStyledElementComponent(e)};function autoComposeShallow(n,i){return typeof i=="function"?dynamicComposeShallow(n,i):staticComposeShallow(n,i)}function autoComposeDeep(n,i){return typeof i=="function"?dynamicComposeDeep(n,i):staticComposeDeep(n,i)}function staticComposeShallow(n,i){return composeStatic(n,createShallowMergeReducer(i))}function staticComposeDeep(n,i){return composeStatic(n,createDeepMergeReducer(i))}function dynamicComposeShallow(n,i){return composeDynamic(n,(t,e)=>shallowMerge(t,i(e)))}function dynamicComposeDeep(n,i){return composeDynamic(n,(t,e)=>deepMerge$1(t,i(e)))}function createShallowMergeReducer(n){return{reducer:i=>shallowMerge(i,n),assignmentCommutative:!0,factory:createShallowMergeReducer,style:n}}function createDeepMergeReducer(n){return{reducer:i=>deepMerge$1(i,n),assignmentCommutative:!0,factory:createDeepMergeReducer,style:n}}function composeStatic(n,i){if(n.reducers.length===0){const t=i.reducer(n.getInitialStyle());return{reducers:n.reducers,base:n.base,driver:n.driver,wrapper:n.wrapper,getInitialStyle:()=>t}}else{const t=n.reducers[0];if(t.assignmentCommutative===!0&&i.assignmentCommutative===!0){const e=i.reducer(t.
9style);return{getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:n.wrapper,reducers:[t.factory(e)].concat(n.reducers.slice(1))}}return composeDynamic(n,i.reducer)}}function composeDynamic(n,i){return{getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:n.wrapper,reducers:[{assignmentCommutative:!1,reducer:i}].concat(n.reducers)}}function createStyledElementComponent(n){const{reducers:i,base:t,driver:e,wrapper:o,getInitialStyle:d,ext:p}=n,y=o(reactExports.forwardRef((E,$)=>{const M=reactExports.useContext(StyletronContext);reactExports.useContext(DebugEngineContext),reactExports.useContext(HydrationContext),checkNoopEngine(M);const X=omitPrefixedKeys(E);let Z=resolveStyle(d,i,E);E.$style&&(typeof E.$style=="function"?Z=deepMerge$1(Z,E.$style(E)):Z=deepMerge$1(Z,E.$style));const ye=e(Z,M),be=E.$as?E.$as:t;return X.className=E.className?`${E.className} ${ye}`:ye,E.$ref&&console.warn("The prop `$ref` has been deprecated. Use `ref` instead. Refs are now forwarded with React.forwardRef."),reactExports.createElement(be,_extends$j({},X,{ref:$||E.$ref}))}));return y.__STYLETRON__={base:t,reducers:i,driver:e,wrapper:o,getInitialStyle:d},y}function resolveStyle(n,i,t){let e=n(),o=i.length;for(;o--;){const d=i[o].reducer;e=d(e,t)}return e}function isObject$2(n){return typeof n=="object"&&n!==null}function omitPrefixedKeys(n){const i={};for(const t in n)t[0]!=="$"&&(i[t]=n[t]);return i}function deepMerge$1(n,i){const t=assign({},n);for(const e in i){const o=i[e];isObject$2(o)&&isObject$2(n[e])?t[e]=deepMerge$1(n[e],o):t[e]=o}return t}function shallowMerge(n,i){return assign(assign({},n),i)}function assign(n,i){for(const t in i)n[t]=i[t];return n}var jsx=function(i,t){var e=arguments;if(t==null||!hasOwn.call(t,"css"))return reactExports.createElement.apply(void 0,e);var o=e.length,d=new Array(o);d[0]=Emotion$1,d[1]=createEmotionProps(i,t);for(var p=2;p<o;p++)d[p]=e[p];return reactExports.createElement.apply(null,d)};(function(n){var i;i||(i=n.JSX||(n.JSX={}))})(jsx||(jsx={}));var Global=withEmotionCache(function(n,i){var t=n.styles,e=serializeStyles([t],void 0,reactExports.useContext(ThemeContext$2)),o=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var d=i.key+"-global",p=new i.sheet.constructor({key:d,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+d+" "+e.name+'"]');return i.sheet.tags.length&&(p.before=i.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",d),p.hydrate([y])),o.current=[p,h],function(){p.flush()}},[i]),useInsertionEffectWithLayoutFallback(function(){var d=o.current,p=d[0],h=d[1];if(h){d[1]=!1;return}if(e.next!==void 0&&insertStyles(i,e.next,!0),p.tags.length){var y=p.tags[p.tags.length-1].nextElementSibling;p.before=y,p.flush()}i.insert("",e,p,!1)},[i,e.name]),null});function css(){for(var n=arguments.length,i=new Array(n),t=0;t<n;t++)i[t]=arguments[t];return serializeStyles(i)}function keyframes(){var n=css.apply(void 0,arguments),i="animation-"+n.name;return{name:i,styles:"@keyframes "+i+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const FontFaceDeclaration=({fontFaces:n})=>{const i=n.map(t=>{const{family:e,weight:o,weightRange:d,url:p,style:h,unicodeRange:y}=t,E=d||o;return` 10 @font-face { 11 font-family: ${e}; 12 src: url(${p}) format("woff2"); 13 font-display: swap; 14 ${h?`font-style: ${h};`:""} 15 ${E?`font-weight: ${E};`:""} 16 ${y?`unicode-range: ${y};`:""} 17 } 18 `});return jsx$1(Global,{styles:[css(i)]})},FontSources=({fontSources:n})=>jsx$1(Helmet,{children:Object.entries(n).map(([i,t])=>jsx$1("link",{id:i,rel:"stylesheet",href:t},i))});typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,i;const t=new Promise((e,o)=>{n=e,i=o});return{resolve:n,reject:i,promise:t}});function getCookie(n){const i=document.cookie.match(`\\b${n}=([^;]*)\\b`);return i?i[1]:void 0}function localStorageAvailable(){const n="testData";try{const{localStorage:i}=window;i.setItem(n,n),i.getItem(n),i.removeItem(n)}catch{return!1}return!0}function isValidAllowedOrigins(n){return Array.isArray(n)&&n.length>0&&n.every(i=>typeof i=="string"&&i.trim().length>0)}function deepClone(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}function deepFreeze(n){return Object.freeze(n),Array.isArray(n)?n.forEac
vendor: 22,175 bytes, line 18
18h(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}):Object.values(n).forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}),n}const capturedConfig=(()=>{const n=window.__streamlit;if(!n)return;const i=deepClone(n);return deepFreeze(i)})(),StreamlitConfig={get BACKEND_BASE_URL(){return capturedConfig?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return capturedConfig?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return capturedConfig?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return capturedConfig?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return capturedConfig?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return capturedConfig?.LIGHT_THEME},get DARK_THEME(){return capturedConfig?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return capturedConfig?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return capturedConfig?.HOST_CONFIG}};function notNullOrUndefined(n){return n!=null}function isNullOrUndefined$1(n){return n==null}const isLocalhost=()=>window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",NO_SCRIPT_RUN_ID="NO_SCRIPT_RUN_ID";var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=n;function n(i,t){for(var e=new Array(arguments.length-1),o=0,d=2,p=!0;d<arguments.length;)e[o++]=arguments[d++];return new Promise(function(y,E){e[o]=function(M){if(p)if(p=!1,M)E(M);else{for(var X=new Array(arguments.length-1),Z=0;Z<X.length;)X[Z++]=arguments[Z];y.apply(null,X)}};try{i.apply(t||null,e)}catch($){p&&(p=!1,E($))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(n){var i=n;i.length=function(h){var y=h.length;if(!y)return 0;for(var E=0;--y%4>1&&h.charAt(y)==="=";)++E;return Math.ceil(h.length*3)/4-E};for(var t=new Array(64),e=new Array(123),o=0;o<64;)e[t[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(h,y,E){for(var $=null,M=[],X=0,Z=0,ye;y<E;){var be=h[y++];switch(Z){case 0:M[X++]=t[be>>2],ye=(be&3)<<4,Z=1;break;case 1:M[X++]=t[ye|be>>4],ye=(be&15)<<2,Z=2;break;case 2:M[X++]=t[ye|be>>6],M[X++]=t[be&63],Z=0;break}X>8191&&(($||($=[])).push(String.fromCharCode.apply(String,M)),X=0)}return Z&&(M[X++]=t[ye],M[X++]=61,Z===1&&(M[X++]=61)),$?(X&&$.push(String.fromCharCode.apply(String,M.slice(0,X))),$.join("")):String.fromCharCode.apply(String,M.slice(0,X))};var d="invalid encoding";i.decode=function(h,y,E){for(var $=E,M=0,X,Z=0;Z<h.length;){var ye=h.charCodeAt(Z++);if(ye===61&&M>1)break;if((ye=e[ye])===void 0)throw Error(d);switch(M){case 0:X=ye,M=1;break;case 1:y[E++]=X<<2|(ye&48)>>4,X=ye,M=2;break;case 2:y[E++]=(X&15)<<4|(ye&60)>>2,X=ye,M=3;break;case 3:y[E++]=(X&3)<<6|ye,M=0;break}}if(M===1)throw Error(d);return E-$},i.test=function(h){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(h)}})(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=n;function n(){this._listeners={}}return n.prototype.on=function(t,e,o){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:o||this}),this},n.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var o=this._listeners[t],d=0;d<o.length;)o[d].fn===e?o.splice(d,1):++d;return this},n.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var o=[],d=1;d<arguments.length;)o.push(arguments[d++]);for(d=0;d<e.length;)e[d].fn.apply(e[d++].ctx,o)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=n(n);function n(d){return typeof Float32Array<"u"?(function(){var p=new Float32Array([-0]),h=new Uint8Array(p.buffer),y=h[3]===128;function E(Z,ye,be){p[0]=Z,ye[be]=h[0],ye[be+1]=h[1],ye[be+2]=h[2],ye[be+3]=h[3]}function $(Z,ye,be){p[0]=Z,ye[be]=h[3],ye[be+1]=h[2],ye[be+2]=h[1],ye[be+3]=h[0]}d.writeFloatLE=y?E:$,d.writeFloatBE=y?$:E;function M(Z,ye){return h[0]=Z[ye],h[1]=Z[ye+1],h[2]=Z[ye+2],h[3]=Z[ye+3],p[0]}function X(Z,ye){return h[3]=Z[ye],h[2]=Z[ye+1],h[1]=Z[ye+2],h[0]=Z[ye+3],p[0]}d.readFloatLE=y?M:X,d.readFloatBE=y?X:M})():(function(){function p(y,E,$,M){var X=E<0?1:0;if(X&&(E=-E),E===0)y(1/E>0?0:2147483648,$,M);else if(isNaN(E))y(2143289344,$,M);else if(E>34028234663852886e22)y((X<<31|2139095040)>>>0,$,M);else if(E<11754943508222875e-54)y((X<<31|Math.round(E/1401298464324817e-60))>>>0,$,M);else{var Z=Math.floor(Math.log(E)/Math.LN2),ye=Math.round(E*Math.pow(2,-Z)*8388608)&8388607;y((X<<31|Z+127<<23|ye)>>>0,$,M)}}d.writeFloatLE=p.bind(null,i),d.writeFloatBE=p.bind(null,t);function h(y,E,$){var M=y(E,$),X=(M>>31)*2+1,Z=M>>>23&255,ye=M&8388607;return Z===255?ye?NaN:X*(1/0):Z===0?X*1401298464324817e-60*ye:X*Math.pow(2,Z-150)*(ye+8388608)}d.readFloatLE=h.bind(null,e),d.readFloatBE=h.bind(null,o)})(),typeof Float64Array<"u"?(function(){var p=new Float64Array([-0]),h=new Uint8Array(p.buffer),y=h[7]===128;function E(Z,ye,be){p[0]=Z,ye[be]=h[0],ye[be+1]=h[1],ye[be+2]=h[2],ye[be+3]=h[3],ye[be+4]=h[4],ye[be+5]=h[5],ye[be+6]=h[6],ye[be+7]=h[7]}function $(Z,ye,be){p[0]=Z,ye[be]=h[7],ye[be+1]=h[6],ye[be+2]=h[5],ye[be+3]=h[4],ye[be+4]=h[3],ye[be+5]=h[2],ye[be+6]=h[1],ye[be+7]=h[0]}d.writeDoubleLE=y?E:$,d.writeDoubleBE=y?$:E;function M(Z,ye){return h[0]=Z[ye],h[1]=Z[ye+1],h[2]=Z[ye+2],h[3]=Z[ye+3],h[4]=Z[ye+4],h[5]=Z[ye+5],h[6]=Z[ye+6],h[7]=Z[ye+7],p[0]}function X(Z,ye){return h[7]=Z[ye],h[6]=Z[ye+1],h[5]=Z[ye+2],h[4]=Z[ye+3],h[3]=Z[ye+4],h[2]=Z[ye+5],h[1]=Z[ye+6],h[0]=Z[ye+7],p[0]}d.readDoubleLE=y?M:X,d.readDoubleBE=y?X:M})():(function(){function p(y,E,$,M,X,Z){var ye=M<0?1:0;if(ye&&(M=-M),M===0)y(0,X,Z+E),y(1/M>0?0:2147483648,X,Z+$);else if(isNaN(M))y(0,X,Z+E),y(2146959360,X,Z+$);else if(M>17976931348623157e292)y(0,X,Z+E),y((ye<<31|2146435072)>>>0,X,Z+$);else{var be;if(M<22250738585072014e-324)be=M/5e-324,y(be>>>0,X,Z+E),y((ye<<31|be/4294967296)>>>0,X,Z+$);else{var we=Math.floor(Math.log(M)/Math.LN2);we===1024&&(we=1023),be=M*Math.pow(2,-we),y(be*4503599627370496>>>0,X,Z+E),y((ye<<31|we+1023<<20|be*1048576&1048575)>>>0,X,Z+$)}}}d.writeDoubleLE=p.bind(null,i,0,4),d.writeDoubleBE=p.bind(null,t,4,0);function h(y,E,$,M,X){var Z=y(M,X+E),ye=y(M,X+$),be=(ye>>31)*2+1,we=ye>>>20&2047,xe=4294967296*(ye&1048575)+Z;return we===2047?xe?NaN:be*(1/0):we===0?be*5e-324*xe:be*Math.pow(2,we-1075)*(xe+4503599627370496)}d.readDoubleLE=h.bind(null,e,0,4),d.readDoubleBE=h.bind(null,o,4,0)})(),d}function i(d,p,h){p[h]=d&255,p[h+1]=d>>>8&255,p[h+2]=d>>>16&255,p[h+3]=d>>>24}function t(d,p,h){p[h]=d>>>24,p[h+1]=d>>>16&255,p[h+2]=d>>>8&255,p[h+3]=d&255}function e(d,p){return(d[p]|d[p+1]<<8|d[p+2]<<16|d[p+3]<<24)>>>0}function o(d,p){return(d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(moduleName){if(typeof process>"u"&&typeof document<"u")return null;try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(n){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(n){var i=n;i.length=function(e){for(var o=0,d=0,p=0;p<e.length;++p)d=e.charCodeAt(p),d<128?o+=1:d<2048?o+=2:(d&64512)===55296&&(e.charCodeAt(p+1)&64512)===56320?(++p,o+=4):o+=3;return o},i.read=function(e,o,d){var p=d-o;if(p<1)return"";for(var h=null,y=[],E=0,$;o<d;)$=e[o++],$<128?y[E++]=$:$>191&&$<224?y[E++]=($&31)<<6|e[o++]&63:$>239&&$<365?($=(($&7)<<18|(e[o++]&63)<<12|(e[o++]&63)<<6|e[o++]&63)-65536,y[E++]=55296+($>>10),y[E++]=56320+($&1023)):y[E++]=($&15)<<12|(e[o++]&63)<<6|e[o++]&63,E>8191&&((h||(h=[])).push(String.fromCharCode.apply(String,y)),E=0);return h?(E&&h.push(String.fromCharCode.apply(String,y.slice(0,E))),h.join("")):String.fromCharCode.apply(String,y.slice(0,E))},i.write=function(e,o,d){for(var p=d,h,y,E=0;E<e.length;++E)h=e.charCodeAt(E),h<128?o[d++]=h:h<2048?(o[d++]=h>>6|192,o[d++]=h&63|128):(h&64512)===55296&&((y=e.charCodeAt(E+1))&64512)===56320?(h=65536+((h&1023)<<10)+(y&1023),++E,o[d++]=h>>18|240,o[d++]=h>>12&63|128,o[d++]=h>>6&63|128,o[d++]=h&63|128):(o[d++]=h>>12|224,o[d++]=h>>6&63|128,o[d++]=h&63|128);return d-p}})(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=n;function n(i,t,e){var o=e||8192,d=o>>>1,p=null,h=o;return function(E){if(E<1||E>d)return i(E);h+E>o&&(p=i(o),h=0);var $=t.call(p,h,h+=E);return h&7&&(h=(h|7)+1),$}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var n=requireMinimal$1();function i(d,p){this.lo=d>>>0,this.hi=p>>>0}var t=i.zero=new i(0,0);t.toNumber=function(){return 0},t.zzEncode=t.zzDecode=function(){return this},t.length=function(){return 1};var e=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(p){if(p===0)return t;var h=p<0;h&&(p=-p);var y=p>>>0,E=(p-y)/4294967296>>>0;return h&&(E=~E>>>0,y=~y>>>0,++y>4294967295&&(y=0,++E>4294967295&&(E=0))),new i(y,E)},i.from=function(p){if(typeof p=="number")return i.fromNumber(p);if(n.isString(p))if(n.Long)p=n.Long.fromString(p);else return i.fromNumber(parseInt(p,10));return p.low||p.high?new i(p.low>>>0,p.high>>>0):t},i.prototype.toNumber=function(p){if(!p&&this.hi>>>31){var h=~this.lo+1>>>0,y=~this.hi>>>0;return h||(y=y+1>>>0),-(h+y*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(p){return n.Long?new n.Long(this.lo|0,this.hi|0,!!p):{low:this.lo|0,high:this.hi|0,unsigned:!!p}};var o=String.prototype.charCodeAt;return i.fromHash=function(p){return p===e?t:new i((o.call(p,0)|o.call(p,1)<<8|o.call(p,2)<<16|o.call(p,3)<<24)>>>0,(o.call(p,4)|o.call(p,5)<<8|o.call(p,6)<<16|o.call(p,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var p=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^p)>>>0,this.lo=(this.lo<<1^p)>>>0,this},i.prototype.zzDecode=function(){var p=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^p)>>>0,this.hi=(this.hi>>>1^p)>>>0,this},i.prototype.length=function(){var p=this.lo,h=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return y===0?h===0?p<16384?p<128?1:2:p<2097152?3:4:h<16384?h<128?5:6:h<2097152?7:8:y<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,(function(n){var i=n;i.asPromise=requireAspromise(),i.base64=requireBase64(),i.EventEmitter=requireEventemitter(),i.float=requireFloat(),i.inquire=requireInquire(),i.utf8=requireUtf8(),i.pool=requirePool(),i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(d){return typeof d=="number"&&isFinite(d)&&Math.floor(d)===d},i.isString=function(d){return typeof d=="string"||d instanceof String},i.isObject=function(d){return d&&typeof d=="object"},i.isset=i.isSet=function(d,p){var h=d[p];return h!=null&&d.hasOwnProperty(p)?typeof h!="object"||(Array.isArray(h)?h.length:Object.keys(h).length)>0:!1},i.Buffer=(function(){try{var o=i.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}})(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(d){return typeof d=="number"?i.Buffer?i._Buffer_allocUnsafe(d):new i.Array(d):i.Buffer?i._Buffer_from(d):typeof Uint8Array>"u"?d:new Uint8Array(d)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(d){return d?i.LongBits.from(d).toHash():i.LongBits.zeroHash},i.longFromHash=function(d,p){var h=i.LongBits.fromHash(d);return i.Long?i.Long.fromBits(h.lo,h.hi,p):h.toNumber(!!p)};function t(o,d,p){for(var h=Object.keys(d),y=0;y<h.length;++y)(o[h[y]]===void 0||!p)&&(o[h[y]]=d[h[y]]);return o}i.merge=t,i.lcFirst=function(d){return d.charAt(0).toLowerCase()+d.substring(1)};function e(o){function d(p,h){if(!(this instanceof d))return new d(p,h);Object.defineProperty(this,"message",{get:function(){return p}}),Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:new Error().stack||""}),h&&t(this,h)}return d.prototype=Object.create(Error.prototype,{constructor:{value:d,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),d}i.newError=e,i.ProtocolError=e("ProtocolError"),i.oneOfGetter=function(d){for(var p={},h=0;h<d.length;++h)p[d[h]]=1;return function(){for(var y=Object.keys(this),E=y.length-1;E>-1;--E)if(p[y[E]]===1&&this[y[E]]!==void 0&&this[y[E]]!==null)return y[E]}},i.oneOfSetter=function(d){return function(p){for(var h=0;h<d.length;++h)d[h]!==p&&delete this[d[h]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var o=i.Buffer;if(!o){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=o.from!==Uint8Array.from&&o.from||function(p,h){return new o(p,h)},i._Buffer_allocUnsafe=o.allocUnsafe||function(p){return new o(p)}}})(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=y;var n=requireMinimal$1(),i,t=n.LongBits,e=n.base64,o=n.utf8;function d(we,xe,$e){this.fn=we,this.len=xe,this.next=void 0,this.val=$e}function p(){}function h(we){this.head=we.head,this.tail=we.tail,this.len=we.len,this.next=we.states}function y(){this.len=0,this.head=new d(p,0,0),this.tail=this.head,this.states=null}var E=function(){return n.Buffer?function(){return(y.create=function(){return new i})()}:function(){return new y}};y.create=E(),y.alloc=function(xe){return new n.Array(xe)},n.Array!==Array&&(y.alloc=n.pool(y.alloc,n.Array.prototype.subarray)),y.prototype._push=function(xe,$e,Ne){return this.tail=this.tail.next=new d(xe,$e,Ne),this.len+=$e,this};function $(we,xe,$e){xe[$e]=we&255}function M(we,xe,$e){for(;we>127;)xe[$e++]=we&127|128,we>>>=7;xe[$e]=we}function X(we,xe){this.len=we,this.next=void 0,this.val=xe}X.prototype=Object.create(d.prototype),X.prototype.fn=M,y.prototype.uint32=function(xe){return this.len+=(this.tail=this.tail.next=new X((xe=xe>>>0)<128?1:xe<16384?2:xe<2097152?3:xe<268435456?4:5,xe)).len,this},y.prototype.int32=function(xe){return xe<0?this._push(Z,10,t.fromNumber(xe)):this.uint32(xe)},y.prototype.sint32=function(xe){return this.uint32((xe<<1^xe>>31)>>>0)};function Z(we,xe,$e){for(;we.hi;)xe[$e++]=we.lo&127|128,we.lo=(we.lo>>>7|we.hi<<25)>>>0,we.hi>>>=7;for(;we.lo>127;)xe[$e++]=we.lo&127|128,we.lo=we.lo>>>7;xe[$e++]=we.lo}y.prototype.uint64=function(xe){var $e=t.from(xe);return this._push(Z,$e.length(),$e)},y.prototype.int64=y.prototype.uint64,y.prototype.sint64=function(xe){var $e=t.from(xe).zzEncode();return this._push(Z,$e.length(),$e)},y.prototype.bool=function(xe){return this._push($,1,xe?1:0)};function ye(we,xe,$e){xe[$e]=we&255,xe[$e+1]=we>>>8&255,xe[$e+2]=we>>>16&255,xe[$e+3]=we>>>24}y.prototype.fixed32=function(xe){return this._push(ye,4,xe>>>0)},y.prototype.sfixed32=y.prototype.fixed32,y.prototype.fixed64=function(xe){var $e=t.from(xe);return this._push(ye,4,$e.lo)._push(ye,4,$e.hi)},y.prototype.sfixed64=y.prototype.fixed64,y.prototype.float=function(xe){return this._push(n.float.writeFloatLE,4,xe)},y.prototype.double=function(xe){return this._push(n.float.writeDoubleLE,8,xe)};var be=n.Array.prototype.set?function(xe,$e,Ne){$e.set(xe,Ne)}:function(xe,$e,Ne){for(var Fe=0;Fe<xe.length;++Fe)$e[Ne+Fe]=xe[Fe]};return y.prototype.bytes=function(xe){var $e=xe.length>>>0;if(!$e)return this._push($,1,0);if(n.isString(xe)){var Ne=y.alloc($e=e.length(xe));e.decode(xe,Ne,0),xe=Ne}return this.uint32($e)._push(be,$e,xe)},y.prototype.string=function(xe){var $e=o.length(xe);return $e?this.uint32($e)._push(o.write,$e,xe):this._push($,1,0)},y.prototype.fork=function(){return this.states=new h(this),this.head=this.tail=new d(p,0,0),this.len=0,this},y.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new d(p,0,0),this.len=0),this},y.prototype.ldelim=function(){var xe=this.head,$e=this.tail,Ne=this.len;return this.reset().uint32(Ne),Ne&&(this.tail.next=xe.next,this.tail=$e,this.len+=Ne),this},y.prototype.finish=function(){for(var xe=this.head.next,$e=this.constructor.alloc(this.len),Ne=0;xe;)xe.fn(xe.val,$e,Ne),Ne+=xe.len,xe=xe.next;return $e},y._configure=function(we){i=we,y.create=E(),i._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=t;var n=requireWriter();(t.prototype=Object.create(n.prototype)).constructor=t;var i=requireMinimal$1();function t(){n.call(this)}t._configure=function(){t.alloc=i._Buffer_allocUnsafe,t.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&i.Buffer.prototype.set.name==="set"?function(d,p,h){p.set(d,h)}:function(d,p,h){if(d.copy)d.copy(p,h,0,d.length);else for(var y=0;y<d.length;)p[h++]=d[y++]}},t.prototype.bytes=function(d){i.isString(d)&&(d=i._Buffer_from(d,"base64"));var p=d.length>>>0;return this.uint32(p),p&&this._push(t.writeBytesBuffer,p,d),this};function e(o,d,p){o.length<40?i.utf8.write(o,d,p):d.utf8Write?d.utf8Write(o,p):d.write(o,p)}return t.prototype.string=function(d){var p=i.Buffer.byteLength(d);return this.uint32(p),p&&this._push(e,p,d),this},t._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=d;var n=requireMinimal$1(),i,t=n.LongBits,e=n.utf8;function o(M,X){return RangeError("index out of range: "+M.pos+" + "+(X||1)+" > "+M.len)}function d(M){this.buf=M,this.pos=0,this.len=M.length}var p=typeof Uint8Array<"u"?function(X){if(X instanceof Uint8Array||Array.isArray(X))return new d(X);throw Error("illegal buffer")}:function(X){if(Array.isArray(X))return new d(X);throw Error("illegal buffer")},h=function(){return n.Buffer?function(Z){return(d.create=function(be){return n.Buffer.isBuffer(be)?new i(be):p(be)})(Z)}:p};d.create=h(),d.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,d.prototype.uint32=(function(){var X=4294967295;return function(){if(X=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(X=(X|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(X=(X|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(X=(X|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(X=(X|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return X;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return X}})(),d.prototype.int32=function(){return this.uint32()|0},d.prototype.sint32=function(){var X=this.uint32();return X>>>1^-(X&1)|0};function y(){var M=new t(0,0),X=0;if(this.len-this.pos>4){for(;X<4;++X)if(M.lo=(M.lo|(this.buf[this.pos]&127)<<X*7)>>>0,this.buf[this.pos++]<128)return M;if(M.lo=(M.lo|(this.buf[this.pos]&127)<<28)>>>0,M.hi=(M.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return M;X=0}else{for(;X<3;++X){if(this.pos>=this.len)throw o(this);if(M.lo=(M.lo|(this.buf[this.pos]&127)<<X*7)>>>0,this.buf[this.pos++]<128)return M}return M.lo=(M.lo|(this.buf[this.pos++]&127)<<X*7)>>>0,M}if(this.len-this.pos>4){for(;X<5;++X)if(M.hi=(M.hi|(this.buf[this.pos]&127)<<X*7+3)>>>0,this.buf[this.pos++]<128)return M}else for(;X<5;++X){if(this.pos>=this.len)throw o(this);if(M.hi=(M.hi|(this.buf[this.pos]&127)<<X*7+3)>>>0,this.buf[this.pos++]<128)return M}throw Error("invalid varint encoding")}d.prototype.bool=function(){return this.uint32()!==0};function E(M,X){return(M[X-4]|M[X-3]<<8|M[X-2]<<16|M[X-1]<<24)>>>0}d.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return E(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return E(this.buf,this.pos+=4)|0};function $(){if(this.pos+8>this.len)throw o(this,8);return new t(E(this.buf,this.pos+=4),E(this.buf,this.pos+=4))}return d.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var X=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,X},d.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var X=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,X},d.prototype.bytes=function(){var X=this.uint32(),Z=this.pos,ye=this.pos+X;if(ye>this.len)throw o(this,X);if(this.pos+=X,Array.isArray(this.buf))return this.buf.slice(Z,ye);if(Z===ye){var be=n.Buffer;return be?be.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,Z,ye)},d.prototype.string=function(){var X=this.bytes();return e.read(X,0,X.length)},d.prototype.skip=function(X){if(typeof X=="number"){if(this.pos+X>this.len)throw o(this,X);this.pos+=X}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},d.prototype.skipType=function(M){switch(M){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(M=this.uint32()&7)!==4;)this.skipType(M);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+M+" at offset "+this.pos)}return this},d._configure=function(M){i=M,d.create=h(),i._configure();var X=n.Long?"toLong":"toNumber";
18n.merge(d.prototype,{int64:function(){return y.call(this)[X](!1)},uint64:function(){return y.call(this)[X](!0)},sint64:function(){return y.call(this).zzDecode()[X](!1)},fixed64:function(){return $.call(this)[X](!0)},sfixed64:function(){return $.call(this)[X](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=t;var n=requireReader();(t.prototype=Object.create(n.prototype)).constructor=t;var i=requireMinimal$1();function t(e){n.call(this,e)}return t._configure=function(){i.Buffer&&(t.prototype._slice=i.Buffer.prototype.slice)},t.prototype.string=function(){var o=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+o,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+o,this.len))},t._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=i;var n=requireMinimal$1();(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i;function i(t,e,o){if(typeof t!="function")throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!o}return i.prototype.rpcCall=function t(e,o,d,p,h){if(!p)throw TypeError("request must be specified");var y=this;if(!h)return n.asPromise(t,y,e,o,d,p);if(!y.rpcImpl){setTimeout(function(){h(Error("already ended"))},0);return}try{return y.rpcImpl(e,o[y.requestDelimited?"encodeDelimited":"encode"](p).finish(),function($,M){if($)return y.emit("error",$,e),h($);if(M===null){y.end(!0);return}if(!(M instanceof d))try{M=d[y.responseDelimited?"decodeDelimited":"decode"](M)}catch(X){return y.emit("error",X,e),h(X)}return y.emit("data",M,e),h(null,M)})}catch(E){y.emit("error",E,e),setTimeout(function(){h(E)},0);return}},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(n){var i=n;i.Service=requireService$1()})(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(n){var i=n;i.build="minimal",i.Writer=requireWriter(),i.BufferWriter=requireWriter_buffer(),i.Reader=requireReader(),i.BufferReader=requireReader_buffer(),i.util=requireMinimal$1(),i.rpc=requireRpc(),i.roots=requireRoots(),i.configure=t;function t(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}t()})(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),Alert=$root.Alert=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.body="",n.prototype.format=0,n.prototype.icon="",n.prototype.widthConfig=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(10).string(t.body),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&e.uint32(16).int32(t.format),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&e.uint32(26).string(t.icon),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,e.uint32(34).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Alert;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=t.string();break}case 2:{p.format=t.int32();break}case 3:{p.icon=t.string();break}case 4:{p.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Alert)return t;let e=new $root.Alert;switch(t.body!=null&&(e.body=String(t.body)),t.format){default:if(typeof t.format=="number"){e.format=t.format;break}break;case"UNUSED":case 0:e.format=0;break;case"ERROR":case 1:e.format=1;break;case"WARNING":case 2:e.format=2;break;case"INFO":case 3:e.format=3;break;case"SUCCESS":case 4:e.format=4;break}if(t.icon!=null&&(e.icon=String(t.icon)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Alert.widthConfig: object expected");e.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.body="",o.format=e.enums===String?"UNUSED":0,o.icon="",o.widthConfig=null),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.format!=null&&t.hasOwnProperty("format")&&(o.format=e.enums===String?$root.Alert.Format[t.format]===void 0?t.format:$root.Alert.Format[t.format]:t.format),t.icon!=null&&t.hasOwnProperty("icon")&&(o.icon=t.icon),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Alert"},n.Format=(function(){const i={},t=Object.create(i);return t[i[0]="UNUSED"]=0,t[i[1]="ERROR"]=1,t[i[2]="WARNING"]=2,t[i[3]="INFO"]=3,t[i[4]="SUCCESS"]=4,t})(),n})(),streamlit=$root.streamlit=(()=>{const n={};return n.WidthConfig=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelWidth=null,i.prototype.remWidth=null;let t;return Object.defineProperty(i.prototype,"widthSpec",{get:$util.oneOfGetter(t=["useStretch","useContent","pixelWidth","remWidth"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelWidth!=null&&Object.hasOwnProperty.call(o,"pixelWidth")&&d.uint32(24).uint32(o.pixelWidth),o.remWidth!=null&&Object.hasOwnProperty.call(o,"remWidth")&&d.uint32(37).float(o.remWidth),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.WidthConfig;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelWidth=o.uint32();break}case 4:{y.remWidth=o.float();break}default:o.skipType(E&7);break}}return y}
18,i.fromObject=function(o){if(o instanceof $root.streamlit.WidthConfig)return o;let d=new $root.streamlit.WidthConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelWidth!=null&&(d.pixelWidth=o.pixelWidth>>>0),o.remWidth!=null&&(d.remWidth=Number(o.remWidth)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.widthSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.widthSpec="useContent")),o.pixelWidth!=null&&o.hasOwnProperty("pixelWidth")&&(p.pixelWidth=o.pixelWidth,d.oneofs&&(p.widthSpec="pixelWidth")),o.remWidth!=null&&o.hasOwnProperty("remWidth")&&(p.remWidth=d.json&&!isFinite(o.remWidth)?String(o.remWidth):o.remWidth,d.oneofs&&(p.widthSpec="remWidth")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.WidthConfig"},i})(),n.GapSize=(function(){const i={},t=Object.create(i);return t[i[0]="GAP_UNDEFINED"]=0,t[i[1]="SMALL"]=1,t[i[2]="MEDIUM"]=2,t[i[3]="LARGE"]=3,t[i[4]="NONE"]=4,t[i[5]="XXSMALL"]=5,t[i[6]="XSMALL"]=6,t[i[7]="XLARGE"]=7,t[i[8]="XXLARGE"]=8,t})(),n.GapConfig=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.gapSize=null;let t;return Object.defineProperty(i.prototype,"gapSpec",{get:$util.oneOfGetter(t=["gapSize"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.gapSize!=null&&Object.hasOwnProperty.call(o,"gapSize")&&d.uint32(8).int32(o.gapSize),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.GapConfig;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.gapSize=o.int32();break}default:o.skipType(E&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.GapConfig)return o;let d=new $root.streamlit.GapConfig;switch(o.gapSize){default:if(typeof o.gapSize=="number"){d.gapSize=o.gapSize;break}break;case"GAP_UNDEFINED":case 0:d.gapSize=0;break;case"SMALL":case 1:d.gapSize=1;break;case"MEDIUM":case 2:d.gapSize=2;break;case"LARGE":case 3:d.gapSize=3;break;case"NONE":case 4:d.gapSize=4;break;case"XXSMALL":case 5:d.gapSize=5;break;case"XSMALL":case 6:d.gapSize=6;break;case"XLARGE":case 7:d.gapSize=7;break;case"XXLARGE":case 8:d.gapSize=8;break}return d},i.toObject=function(o,d){d||(d={});let p={};return o.gapSize!=null&&o.hasOwnProperty("gapSize")&&(p.gapSize=d.enums===String?$root.streamlit.GapSize[o.gapSize]===void 0?o.gapSize:$root.streamlit.GapSize[o.gapSize]:o.gapSize,d.oneofs&&(p.gapSpec="gapSize")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.GapConfig"},i})(),n.HeightConfig=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelHeight=null,i.prototype.remHeight=null;let t;return Object.defineProperty(i.prototype,"heightSpec",{get:$util.oneOfGetter(t=["useStretch","useContent","pixelHeight","remHeight"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelHeight!=null&&Object.hasOwnProperty.call(o,"pixelHeight")&&d.uint32(24).uint32(o.pixelHeight),o.remHeight!=null&&Object.hasOwnProperty.call(o,"remHeight")&&d.uint32(37).float(o.remHeight),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.HeightConfig;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelHeight=o.uint32();break}case 4:{y.remHeight=o.float();break}default:o.skipType(E&7);break}}return y}
18,i.fromObject=function(o){if(o instanceof $root.streamlit.HeightConfig)return o;let d=new $root.streamlit.HeightConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelHeight!=null&&(d.pixelHeight=o.pixelHeight>>>0),o.remHeight!=null&&(d.remHeight=Number(o.remHeight)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.heightSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.heightSpec="useContent")),o.pixelHeight!=null&&o.hasOwnProperty("pixelHeight")&&(p.pixelHeight=o.pixelHeight,d.oneofs&&(p.heightSpec="pixelHeight")),o.remHeight!=null&&o.hasOwnProperty("remHeight")&&(p.remHeight=d.json&&!isFinite(o.remHeight)?String(o.remHeight):o.remHeight,d.oneofs&&(p.heightSpec="remHeight")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.HeightConfig"},i})(),n.ButtonLikeIconPosition=(function(){const i={},t=Object.create(i);return t[i[0]="LEFT"]=0,t[i[1]="RIGHT"]=1,t})(),n.TextAlignmentConfig=(function(){function i(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.alignment=0,i.create=function(e){return new i(e)},i.encode=function(e,o){return o||(o=$Writer.create()),e.alignment!=null&&Object.hasOwnProperty.call(e,"alignment")&&o.uint32(8).int32(e.alignment),o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.streamlit.TextAlignmentConfig;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.alignment=e.int32();break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.streamlit.TextAlignmentConfig)return e;let o=new $root.streamlit.TextAlignmentConfig;switch(e.alignment){default:if(typeof e.alignment=="number"){o.alignment=e.alignment;break}break;case"UNSPECIFIED":case 0:o.alignment=0;break;case"LEFT":case 1:o.alignment=1;break;case"CENTER":case 2:o.alignment=2;break;case"RIGHT":case 3:o.alignment=3;break;case"JUSTIFY":case 4:o.alignment=4;break}return o},i.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.alignment=o.enums===String?"UNSPECIFIED":0),e.alignment!=null&&e.hasOwnProperty("alignment")&&(d.alignment=o.enums===String?$root.streamlit.TextAlignmentConfig.Alignment[e.alignment]===void 0?e.alignment:$root.streamlit.TextAlignmentConfig.Alignment[e.alignment]:e.alignment),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/streamlit.TextAlignmentConfig"},i.Alignment=(function(){const t={},e=Object.create(t);return e[t[0]="UNSPECIFIED"]=0,e[t[1]="LEFT"]=1,e[t[2]="CENTER"]=2,e[t[3]="RIGHT"]=3,e[t[4]="JUSTIFY"]=4,e})(),i})(),n})();$root.AppPage=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.icon="",n.prototype.isDefault=!1,n.prototype.sectionHeader="",n.prototype.urlPathname="",n.prototype.isHidden=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&e.uint32(10).string(t.pageScriptHash),t.pageName!=null&&Object.hasOwnProperty.call(t,"pageName")&&e.uint32(18).string(t.pageName),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&e.uint32(26).string(t.icon),t.isDefault!=null&&Object.hasOwnProperty.call(t,"isDefault")&&e.uint32(32).bool(t.isDefault),t.sectionHeader!=null&&Object.hasOwnProperty.call(t,"sectionHeader")&&e.uint32(42).string(t.sectionHeader),t.urlPathname!=null&&Object.hasOwnProperty.call(t,"urlPathname")&&e.uint32(50).string(t.urlPathname),t.isHidden!=null&&Object.hasOwnProperty.call(t,"isHidden")&&e.uint32(56).bool(t.isHidden),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.AppPage;
18for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageScriptHash=t.string();break}case 2:{p.pageName=t.string();break}case 3:{p.icon=t.string();break}case 4:{p.isDefault=t.bool();break}case 5:{p.sectionHeader=t.string();break}case 6:{p.urlPathname=t.string();break}case 7:{p.isHidden=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.AppPage)return t;let e=new $root.AppPage;return t.pageScriptHash!=null&&(e.pageScriptHash=String(t.pageScriptHash)),t.pageName!=null&&(e.pageName=String(t.pageName)),t.icon!=null&&(e.icon=String(t.icon)),t.isDefault!=null&&(e.isDefault=!!t.isDefault),t.sectionHeader!=null&&(e.sectionHeader=String(t.sectionHeader)),t.urlPathname!=null&&(e.urlPathname=String(t.urlPathname)),t.isHidden!=null&&(e.isHidden=!!t.isHidden),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.pageScriptHash="",o.pageName="",o.icon="",o.isDefault=!1,o.sectionHeader="",o.urlPathname="",o.isHidden=!1),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=t.pageScriptHash),t.pageName!=null&&t.hasOwnProperty("pageName")&&(o.pageName=t.pageName),t.icon!=null&&t.hasOwnProperty("icon")&&(o.icon=t.icon),t.isDefault!=null&&t.hasOwnProperty("isDefault")&&(o.isDefault=t.isDefault),t.sectionHeader!=null&&t.hasOwnProperty("sectionHeader")&&(o.sectionHeader=t.sectionHeader),t.urlPathname!=null&&t.hasOwnProperty("urlPathname")&&(o.urlPathname=t.urlPathname),t.isHidden!=null&&t.hasOwnProperty("isHidden")&&(o.isHidden=t.isHidden),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AppPage"},n})();$root.ArrowData=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.newBuffer([]),n.prototype.styler=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).bytes(t.data),t.styler!=null&&Object.hasOwnProperty.call(t,"styler")&&$root.ArrowData.PandasStyler.encode(t.styler,e.uint32(18).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ArrowData;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=t.bytes();break}case 2:{p.styler=$root.ArrowData.PandasStyler.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ArrowData)return t;let e=new $root.ArrowData;if(t.data!=null&&(typeof t.data=="string"?$util.base64.decode(t.data,e.data=$util.newBuffer($util.base64.length(t.data)),0):t.data.length>=0&&(e.data=t.data)),t.styler!=null){if(typeof t.styler!="object")throw TypeError(".ArrowData.styler: object expected");e.styler=$root.ArrowData.PandasStyler.fromObject(t.styler)}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(e.bytes===String?o.data="":(o.data=[],e.bytes!==Array&&(o.data=$util.newBuffer(o.data))),o.styler=null),t.data!=null&&t.hasOwnProperty("data")&&(o.data=e.bytes===String?$util.base64.encode(t.data,0,t.data.length):e.bytes===Array?Array.prototype.slice.call(t.data):t.data),t.styler!=null&&t.hasOwnProperty("styler")&&(o.styler=$root.ArrowData.PandasStyler.toObject(t.styler,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowData"},n.PandasStyler=(function(){function i(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.uuid="",i.prototype.caption="",i.prototype.styles="",i.prototype.displayValues=$util.newBuffer([]),i.create=function(e){return new i(e)},i.encode=function(e,o){return o||(o=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&o.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&o.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&o.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&o.uint32(34).bytes(e.displayValues),o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ArrowData.PandasStyler;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.uuid=e.string();break}case 2:{h.caption=e.string();break}case 3:{h.styles=e.string();break}case 4:{h.displayValues=e.bytes();break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.ArrowData.PandasStyler)return e;let o=new $root.ArrowData.PandasStyler;return e.uuid!=null&&(o.uuid=String(e.uuid)),e.caption!=null&&(o.caption=String(e.caption)),e.styles!=null&&(o.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,o.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(o.displayValues=e.displayValues)),o},i.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.uuid="",d.caption="",d.styles="",o.bytes===String?d.displayValues="":(d.displayValues=[],o.bytes!==Array&&(d.displayValues=$util.newBuffer(d.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(d.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(d.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(d.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(d.displayValues=o.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):o.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowData.PandasStyler"},i})(),n})();$root.ArrowNamedDataSet=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&$root.ArrowData.encode(t.data,e.uint32(18).fork()).ldelim(),t.hasName!=null&&Object.hasOwnProperty.call(t,"hasName")&&e.uint32(24).bool(t.hasName),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ArrowNamedDataSet;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=t.string();break}case 3:{p.hasName=t.bool();break}case 2:{p.data=$root.ArrowData.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ArrowNamedDataSet)return t;let e=new $root.ArrowNamedDataSet;if(t.name!=null&&(e.name=String(t.name)),t.hasName!=null&&(e.hasName=!!t.hasName),t.data!=null){if(typeof t.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");e.data=$root.ArrowData.fromObject(t.data)}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.name="",o.data=null,o.hasName=!1),t.name!=null&&t.hasOwnProperty("name")&&(o.name=t.name),t.data!=null&&t.hasOwnProperty("data")&&(o.data=$root.ArrowData.toObject(t.data,e)),t.hasName!=null&&t.hasOwnProperty("hasName")&&(o.hasName=t.hasName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowNamedDataSet"},n})();$root.Audio=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.startTime!=null&&Object.hasOwnProperty.call(e,"startTime")&&o.uint32(24).int32(e.startTime),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&o.uint32(42).string(e.url),e.endTime!=null&&Object.hasOwnProperty.call(e,"endTime")&&o.uint32(48).int32(e.endTime),e.loop!=null&&Object.hasOwnProperty.call(e,"loop")&&o.uint32(56).bool(e.loop),e.autoplay!=null&&Object.hasOwnProperty.call(e,"autoplay")&&o.uint32(64).bool(e.autoplay),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(74).string(e.id),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,o.uint32(82).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Audio;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 5:{h.url=e.string();break}case 3:{h.startTime=e.int32();break}case 6:{h.endTime=e.int32();break}case 7:{h.loop=e.bool();break}case 8:{h.autoplay=e.bool();break}case 9:{h.id=e.string();break}case 10:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Audio)return e;let o=new $root.Audio;if(e.url!=null&&(o.url=String(e.url)),e.startTime!=null&&(o.startTime=e.startTime|0),e.endTime!=null&&(o.endTime=e.endTime|0),e.loop!=null&&(o.loop=!!e.loop),e.autoplay!=null&&(o.autoplay=!!e.autoplay),e.id!=null&&(o.id=String(e.id)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Audio.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.startTime=0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.id=""),e.startTime!=null&&e.hasOwnProperty("startTime")&&(d.startTime=e.startTime),e.url!=null&&e.hasOwnProperty("url")&&(d.url=e.url),e.endTime!=null&&e.hasOwnProperty("endTime")&&(d.endTime=e.endTime),e.loop!=null&&e.hasOwnProperty("loop")&&(d.loop=e.loop),e.autoplay!=null&&e.hasOwnProperty("autoplay")&&(
18d.autoplay=e.autoplay),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Audio"},n})();$root.AudioInput=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.sampleRate=null;let i;return Object.defineProperty(n.prototype,"_sampleRate",{get:$util.oneOfGetter(i=["sampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(50).fork()).ldelim(),e.sampleRate!=null&&Object.hasOwnProperty.call(e,"sampleRate")&&o.uint32(56).int32(e.sampleRate),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.AudioInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.help=e.string();break}case 4:{h.formId=e.string();break}case 5:{h.disabled=e.bool();break}case 6:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 7:{h.sampleRate=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.AudioInput)return e;let o=new $root.AudioInput;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.sampleRate!=null&&(o.sampleRate=e.sampleRate|0),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.disabled=!1,d.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.sampleRate!=null&&e.hasOwnProperty("sampleRate")&&(d.sampleRate=e.sampleRate,o.oneofs&&(d._sampleRate="sampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AudioInput"},n})();const LabelVisibility=$root.LabelVisibility=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.value=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&e.uint32(8).int32(t.value),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.LabelVisibility;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.LabelVisibility)return t;let e=new $root.LabelVisibility;switch(t.value){default:if(typeof t.value=="number"){e.value=t.value;break}break;case"VISIBLE":case 0:e.value=0;break;case"HIDDEN":case 1:e.value=1;break;case"COLLAPSED":case 2:e.value=2;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.value=e.enums===String?"VISIBLE":0),t.value!=null&&t.hasOwnProperty("value")&&(o.value=e.enums===String?$root.LabelVisibility.LabelVisibilityOptions[t.value]===void 0?t.value:$root.LabelVisibility.LabelVisibilityOptions[t.value]:t.value),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/LabelVisibility"},n.LabelVisibilityOptions=(function(){const i={},t=Object.create(i);return t[i[0]="VISIBLE"]=0,t[i[1]="HIDDEN"]=1,t[i[2]="COLLAPSED"]=2,t})(),n})();$root.AuthRedirect=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.url="",n.create=function(t){return new n(t)}
18,n.encode=function(t,e){return e||(e=$Writer.create()),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(10).string(t.url),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.AuthRedirect;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.AuthRedirect)return t;let e=new $root.AuthRedirect;return t.url!=null&&(e.url=String(t.url)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.url=""),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AuthRedirect"},n})();$root.AutoRerun=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.interval=0,n.prototype.fragmentId="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.interval!=null&&Object.hasOwnProperty.call(t,"interval")&&e.uint32(13).float(t.interval),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&e.uint32(18).string(t.fragmentId),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.AutoRerun;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.interval=t.float();break}case 2:{p.fragmentId=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.AutoRerun)return t;let e=new $root.AutoRerun;return t.interval!=null&&(e.interval=Number(t.interval)),t.fragmentId!=null&&(e.fragmentId=String(t.fragmentId)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.interval=0,o.fragmentId=""),t.interval!=null&&t.hasOwnProperty("interval")&&(o.interval=e.json&&!isFinite(t.interval)?String(t.interval):t.interval),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(o.fragmentId=t.fragmentId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AutoRerun"},n})();const BackMsg=$root.BackMsg=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.clearCache=null,n.prototype.setRunOnSave=null,n.prototype.stopScript=null,n.prototype.rerunScript=null,n.prototype.loadGitInfo=null,n.prototype.debugDisconnectWebsocket=null,n.prototype.debugShutdownRuntime=null,n.prototype.fileUrlsRequest=null,n.prototype.appHeartbeat=null,n.prototype.deferredFileRequest=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime","fileUrlsRequest","appHeartbeat","deferredFileRequest"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.clearCache!=null&&Object.hasOwnProperty.call(e,"clearCache")&&o.uint32(40).bool(e.clearCache),e.setRunOnSave!=null&&Object.hasOwnProperty.call(e,"setRunOnSave")&&o.uint32(48).bool(e.setRunOnSave),e.stopScript!=null&&Object.hasOwnProperty.call(e,"stopScript")&&o.uint32(56).bool(e.stopScript),e.rerunScript!=null&&Object.hasOwnProperty.call(e,"rerunScript")&&$root.ClientState.encode(e.rerunScript,o.uint32(90).fork()).ldelim(),e.loadGitInfo!=null&&Object.hasOwnProperty.call(e,"loadGitInfo")&&o.uint32(96).bool(e.loadGitInfo),e.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&o.uint32(106).string(e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(e,"debugDisconnectWebsocket")&&o.uint32(112).bool(e.debugDisconnectWebsocket),e.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(e,"debugShutdownRuntime")&&o.uint32(120).bool(e.debugShutdownRuntime),e.fileUrlsRequest!=null&&Object.hasOwnProperty.call(e,"fileUrlsRequest")&&$root.FileURLsRequest.encode(e.fileUrlsRequest,o.uint32(130).fork()).ldelim(),e.appHeartbeat!=null&&Object.hasOwnProperty.call(e,"appHeartbeat")&&o.uint32(136).bool(e.appHeartbeat),e.deferredFileRequest!=null&&Object.hasOwnProperty.call(e,"deferredFileRequest")&&$root.DeferredFileRequest.encode(e.deferredFileRequest,o.uint32(146).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.BackMsg;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 5:{h.clearCache=e.bool();break}case 6:{h.setRunOnSave=e.bool();break}case 7:{h.stopScript=e.bool();break}case 11:{h.rerunScript=$root.ClientState.decode(e,e.uint32());break}case 12:{h.loadGitInfo=e.bool();break}case 14:{h.debugDisconnectWebsocket=e.bool();break}case 15:{h.debugShutdownRuntime=e.bool();break}case 16:{h.fileUrlsRequest=$root.FileURLsRequest.decode(e,e.uint32());break}case 17:{h.appHeartbeat=e.bool();break}case 18:{h.deferredFileRequest=$root.DeferredFileRequest.decode(e,e.uint32());break}case 13:{h.debugLastBackmsgId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.BackMsg)return e;let o=new $root.BackMsg;if(e.clearCache!=null&&(o.clearCache=!!e.clearCache),e.setRunOnSave!=null&&(o.setRunOnSave=!!e.setRunOnSave),e.stopScript!=null&&(o.stopScript=!!e.stopScript),e.rerunScript!=null){if(typeof e.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");o.rerunScript=$root.ClientState.fromObject(e.rerunScript)}if(e.loadGitInfo!=null&&(o.loadGitInfo=!!e.loadGitInfo),e.debugDisconnectWebsocket!=null&&(o.debugDisconnectWebsocket=!!e.debugDisconnectWebsocket),e.debugShutdownRuntime!=null&&(o.debugShutdownRuntime=!!e.debugShutdownRuntime),e.fileUrlsRequest!=null){if(typeof e.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");o.fileUrlsRequest=$root.FileURLsRequest.fromObject(e.fileUrlsRequest)}if(e.appHeartbeat!=null&&(o.appHeartbeat=!!e.appHeartbeat),e.deferredFileRequest!=null){if(typeof e.deferredFileRequest!="object")throw TypeError(".BackMsg.deferredFileRequest: object expected");o.deferredFileRequest=$root.DeferredFileRequest.fromObject(e.deferredFileRequest)}
18return e.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(e.debugLastBackmsgId)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.debugLastBackmsgId=""),e.clearCache!=null&&e.hasOwnProperty("clearCache")&&(d.clearCache=e.clearCache,o.oneofs&&(d.type="clearCache")),e.setRunOnSave!=null&&e.hasOwnProperty("setRunOnSave")&&(d.setRunOnSave=e.setRunOnSave,o.oneofs&&(d.type="setRunOnSave")),e.stopScript!=null&&e.hasOwnProperty("stopScript")&&(d.stopScript=e.stopScript,o.oneofs&&(d.type="stopScript")),e.rerunScript!=null&&e.hasOwnProperty("rerunScript")&&(d.rerunScript=$root.ClientState.toObject(e.rerunScript,o),o.oneofs&&(d.type="rerunScript")),e.loadGitInfo!=null&&e.hasOwnProperty("loadGitInfo")&&(d.loadGitInfo=e.loadGitInfo,o.oneofs&&(d.type="loadGitInfo")),e.debugLastBackmsgId!=null&&e.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=e.debugLastBackmsgId),e.debugDisconnectWebsocket!=null&&e.hasOwnProperty("debugDisconnectWebsocket")&&(d.debugDisconnectWebsocket=e.debugDisconnectWebsocket,o.oneofs&&(d.type="debugDisconnectWebsocket")),e.debugShutdownRuntime!=null&&e.hasOwnProperty("debugShutdownRuntime")&&(d.debugShutdownRuntime=e.debugShutdownRuntime,o.oneofs&&(d.type="debugShutdownRuntime")),e.fileUrlsRequest!=null&&e.hasOwnProperty("fileUrlsRequest")&&(d.fileUrlsRequest=$root.FileURLsRequest.toObject(e.fileUrlsRequest,o),o.oneofs&&(d.type="fileUrlsRequest")),e.appHeartbeat!=null&&e.hasOwnProperty("appHeartbeat")&&(d.appHeartbeat=e.appHeartbeat,o.oneofs&&(d.type="appHeartbeat")),e.deferredFileRequest!=null&&e.hasOwnProperty("deferredFileRequest")&&(d.deferredFileRequest=$root.DeferredFileRequest.toObject(e.deferredFileRequest,o),o.oneofs&&(d.type="deferredFileRequest")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BackMsg"},n})();$root.DeferredFileRequest=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.fileId="",n.prototype.sessionId="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.fileId!=null&&Object.hasOwnProperty.call(t,"fileId")&&e.uint32(10).string(t.fileId),t.sessionId!=null&&Object.hasOwnProperty.call(t,"sessionId")&&e.uint32(18).string(t.sessionId),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.DeferredFileRequest;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=t.string();break}case 2:{p.sessionId=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.DeferredFileRequest)return t;let e=new $root.DeferredFileRequest;return t.fileId!=null&&(e.fileId=String(t.fileId)),t.sessionId!=null&&(e.sessionId=String(t.sessionId)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.fileId="",o.sessionId=""),t.fileId!=null&&t.hasOwnProperty("fileId")&&(o.fileId=t.fileId),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(o.sessionId=t.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DeferredFileRequest"},n})();$root.ContextInfo=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.timezone=null,n.prototype.timezoneOffset=null,n.prototype.locale=null,n.prototype.url=null,n.prototype.isEmbedded=null,n.prototype.colorScheme=null;let i;return Object.defineProperty(n.prototype,"_timezone",{get:$util.oneOfGetter(i=["timezone"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_timezoneOffset",{get:$util.oneOfGetter(i=["timezoneOffset"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_locale",{get:$util.oneOfGetter(i=["locale"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_url",{get:$util.oneOfGetter(i=["url"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_isEmbedded",{get:$util.oneOfGetter(i=["isEmbedded"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_colorScheme",{get:$util.oneOfGetter(i=["colorScheme"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&o.uint32(10).string(e.timezone),e.timezoneOffset!=null&&Object.hasOwnProperty.call(e,"timezoneOffset")&&o.uint32(16).int32(e.timezoneOffset),e.locale!=null&&Object.hasOwnProperty.call(e,"locale")&&o.uint32(26).string(e.locale),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&o.uint32(34).string(e.url),e.isEmbedded!=null&&Object.hasOwnProperty.call(e,"isEmbedded")&&o.uint32(40).bool(e.isEmbedded),e.colorScheme!=null&&Object.hasOwnProperty.call(e,"colorScheme")&&o.uint32(50).string(e.colorScheme),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ContextInfo;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.timezone=e.string();break}case 2:{h.timezoneOffset=e.int32();break}case 3:{h.locale=e.string();break}case 4:{h.url=e.string();break}case 5:{h.isEmbedded=e.bool();break}case 6:{h.colorScheme=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ContextInfo)return e;let o=new $root.ContextInfo;
18return e.timezone!=null&&(o.timezone=String(e.timezone)),e.timezoneOffset!=null&&(o.timezoneOffset=e.timezoneOffset|0),e.locale!=null&&(o.locale=String(e.locale)),e.url!=null&&(o.url=String(e.url)),e.isEmbedded!=null&&(o.isEmbedded=!!e.isEmbedded),e.colorScheme!=null&&(o.colorScheme=String(e.colorScheme)),o},n.toObject=function(e,o){o||(o={});let d={};return e.timezone!=null&&e.hasOwnProperty("timezone")&&(d.timezone=e.timezone,o.oneofs&&(d._timezone="timezone")),e.timezoneOffset!=null&&e.hasOwnProperty("timezoneOffset")&&(d.timezoneOffset=e.timezoneOffset,o.oneofs&&(d._timezoneOffset="timezoneOffset")),e.locale!=null&&e.hasOwnProperty("locale")&&(d.locale=e.locale,o.oneofs&&(d._locale="locale")),e.url!=null&&e.hasOwnProperty("url")&&(d.url=e.url,o.oneofs&&(d._url="url")),e.isEmbedded!=null&&e.hasOwnProperty("isEmbedded")&&(d.isEmbedded=e.isEmbedded,o.oneofs&&(d._isEmbedded="isEmbedded")),e.colorScheme!=null&&e.hasOwnProperty("colorScheme")&&(d.colorScheme=e.colorScheme,o.oneofs&&(d._colorScheme="colorScheme")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ContextInfo"},n})();$root.ClientState=(()=>{function n(i){if(this.cachedMessageHashes=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.queryString="",n.prototype.widgetStates=null,n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.fragmentId="",n.prototype.isAutoRerun=!1,n.prototype.cachedMessageHashes=$util.emptyArray,n.prototype.contextInfo=null,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&e.uint32(10).string(t.queryString),t.widgetStates!=null&&Object.hasOwnProperty.call(t,"widgetStates")&&$root.WidgetStates.encode(t.widgetStates,e.uint32(18).fork()).ldelim(),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&e.uint32(26).string(t.pageScriptHash),t.pageName!=null&&Object.hasOwnProperty.call(t,"pageName")&&e.uint32(34).string(t.pageName),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&e.uint32(42).string(t.fragmentId),t.isAutoRerun!=null&&Object.hasOwnProperty.call(t,"isAutoRerun")&&e.uint32(48).bool(t.isAutoRerun),t.cachedMessageHashes!=null&&t.cachedMessageHashes.length)for(let o=0;o<t.cachedMessageHashes.length;++o)e.uint32(58).string(t.cachedMessageHashes[o]);return t.contextInfo!=null&&Object.hasOwnProperty.call(t,"contextInfo")&&$root.ContextInfo.encode(t.contextInfo,e.uint32(66).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ClientState;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=t.string();break}case 2:{p.widgetStates=$root.WidgetStates.decode(t,t.uint32());break}case 3:{p.pageScriptHash=t.string();break}case 4:{p.pageName=t.string();break}case 5:{p.fragmentId=t.string();break}case 6:{p.isAutoRerun=t.bool();break}case 7:{p.cachedMessageHashes&&p.cachedMessageHashes.length||(p.cachedMessageHashes=[]),p.cachedMessageHashes.push(t.string());break}case 8:{p.contextInfo=$root.ContextInfo.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ClientState)return t;let e=new $root.ClientState;if(t.queryString!=null&&(e.queryString=String(t.queryString)),t.widgetStates!=null){if(typeof t.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");e.widgetStates=$root.WidgetStates.fromObject(t.widgetStates)}if(t.pageScriptHash!=null&&(e.pageScriptHash=String(t.pageScriptHash)),t.pageName!=null&&(e.pageName=String(t.pageName)),t.fragmentId!=null&&(e.fragmentId=String(t.fragmentId)),t.isAutoRerun!=null&&(e.isAutoRerun=!!t.isAutoRerun),t.cachedMessageHashes){if(!Array.isArray(t.cachedMessageHashes))throw TypeError(".ClientState.cachedMessageHashes: array expected");e.cachedMessageHashes=[];for(let o=0;o<t.cachedMessageHashes.length;++o)e.cachedMessageHashes[o]=String(t.cachedMessageHashes[o])}if(t.contextInfo!=null){if(typeof t.contextInfo!="object")throw TypeError(".ClientState.contextInfo: object expected");e.contextInfo=$root.ContextInfo.fromObject(t.contextInfo)}return e},n.toObject=function(t,e){e||(e={});let o={};
18if((e.arrays||e.defaults)&&(o.cachedMessageHashes=[]),e.defaults&&(o.queryString="",o.widgetStates=null,o.pageScriptHash="",o.pageName="",o.fragmentId="",o.isAutoRerun=!1,o.contextInfo=null),t.queryString!=null&&t.hasOwnProperty("queryString")&&(o.queryString=t.queryString),t.widgetStates!=null&&t.hasOwnProperty("widgetStates")&&(o.widgetStates=$root.WidgetStates.toObject(t.widgetStates,e)),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=t.pageScriptHash),t.pageName!=null&&t.hasOwnProperty("pageName")&&(o.pageName=t.pageName),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(o.fragmentId=t.fragmentId),t.isAutoRerun!=null&&t.hasOwnProperty("isAutoRerun")&&(o.isAutoRerun=t.isAutoRerun),t.cachedMessageHashes&&t.cachedMessageHashes.length){o.cachedMessageHashes=[];for(let d=0;d<t.cachedMessageHashes.length;++d)o.cachedMessageHashes[d]=t.cachedMessageHashes[d]}return t.contextInfo!=null&&t.hasOwnProperty("contextInfo")&&(o.contextInfo=$root.ContextInfo.toObject(t.contextInfo,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ClientState"},n})();const WidgetStates=$root.WidgetStates=(()=>{function n(i){if(this.widgets=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.widgets=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.widgets!=null&&t.widgets.length)for(let o=0;o<t.widgets.length;++o)$root.WidgetState.encode(t.widgets[o],e.uint32(10).fork()).ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.WidgetStates;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.widgets&&p.widgets.length||(p.widgets=[]),p.widgets.push($root.WidgetState.decode(t,t.uint32()));break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.WidgetStates)return t;let e=new $root.WidgetStates;if(t.widgets){if(!Array.isArray(t.widgets))throw TypeError(".WidgetStates.widgets: array expected");e.widgets=[];for(let o=0;o<t.widgets.length;++o){if(typeof t.widgets[o]!="object")throw TypeError(".WidgetStates.widgets: object expected");e.widgets[o]=$root.WidgetState.fromObject(t.widgets[o])}}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.widgets=[]),t.widgets&&t.widgets.length){o.widgets=[];for(let d=0;d<t.widgets.length;++d)o.widgets[d]=$root.WidgetState.toObject(t.widgets[d],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/WidgetStates"},n})(),WidgetState=$root.WidgetState=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.triggerValue=null,n.prototype.boolValue=null,n.prototype.doubleValue=null,n.prototype.intValue=null,n.prototype.stringValue=null,n.prototype.doubleArrayValue=null,n.prototype.intArrayValue=null,n.prototype.stringArrayValue=null,n.prototype.jsonValue=null,n.prototype.arrowValue=null,n.prototype.bytesValue=null,n.prototype.fileUploaderStateValue=null,n.prototype.stringTriggerValue=null,n.prototype.chatInputValue=null,n.prototype.jsonTriggerValue=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue","stringTriggerValue","chatInputValue","jsonTriggerValue"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.triggerValue!=null&&Object.hasOwnProperty.call(e,"triggerValue")&&o.uint32(16).bool(e.triggerValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,"boolValue")&&o.uint32(24).bool(e.boolValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,"doubleValue")&&o.uint32(33).double(e.doubleValue),e.intValue!=null&&Object.hasOwnProperty.call(e,"intValue")&&o.uint32(40).sint64(e.intValue),e.stringValue!=null&&Object.hasOwnProperty.call(e,"stringValue")&&o.uint32(50).string(e.stringValue),e.doubleArrayValue!=null&&Object.hasOwnProperty.call(e,"doubleArrayValue")&&$root.DoubleArray.encode(e.doubleArrayValue,o.uint32(58).fork()).ldelim(),e.intArrayValue!=null&&Object.hasOwnProperty.call(e,"intArrayValue")&&$root.SInt64Array.encode(e.intArrayValue,o.uint32(66).fork()).ldelim(),e.stringArrayValue!=null&&Object.hasOwnProperty.call(e,"stringArrayValue")&&$root.StringArray.encode(e.stringArrayValue,o.uint32(74).fork()).ldelim(),e.jsonValue!=null&&Object.hasOwnProperty.call(e,"jsonValue")&&o.uint32(82).string(e.jsonValue),e.arrowValue!=null&&Object.hasOwnProperty.call(e,"arrowValue")&&$root.ArrowTable.encode(e.arrowValue,o.uint32(90).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,"bytesValue")&&o.uint32(98).bytes(e.bytesValue),e.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(e,"fileUploaderStateValue")&&$root.FileUploaderState.encode(e.fileUploaderStateValue,o.uint32(106).fork()).ldelim(),e.stringTriggerValue!=null&&Object.hasOwnProperty.call(e,"stringTriggerValue")&&$root.StringTriggerValue.encode(e.stringTriggerValue,o.uint32(114).fork()).ldelim(),e.chatInputValue!=null&&Object.hasOwnProperty.call(e,"chatInputValue")&&$root.ChatInputValue.encode(e.chatInputValue,o.uint32(122).fork()).ldelim(),e.jsonTriggerValue!=null&&Object.hasOwnProperty.call(e,"jsonTriggerValue")&&o.uint32(130).string(e.jsonTriggerValue),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.WidgetState;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.triggerValue=e.bool();break}case 3:{h.boolValue=e.bool();break}case 4:{h.doubleValue=e.double();break}case 5:{h.intValue=e.sint64();break}case 6:{h.stringValue=e.string();break}case 7:{h.doubleArrayValue=$root.DoubleArray.decode(e,e.uint32());break}case 8:{h.intArrayValue=$root.SInt64Array.decode(e,e.uint32());break}case 9:{h.stringArrayValue=$root.StringArray.decode(e,e.uint32());break}case 10:{h.jsonValue=e.string();break}case 11:{h.arrowValue=$root.ArrowTable.decode(e,e.uint32());break}case 12:{h.bytesValue=e.bytes();break}case 13:{h.fileUploaderStateValue=$root.FileUploaderState.decode(e,e.uint32());break}case 14:{h.stringTriggerValue=$root.StringTriggerValue.decode(e,e.uint32());break}case 15:{h.chatInputValue=$root.ChatInputValue.decode(e,e.uint32());break}case 16:{h.jsonTriggerValue=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.WidgetState)return e;let o=new $root.WidgetState;if(e.id!=null&&(o.id=String(e.id)),e.triggerValue!=null&&(o.triggerValue=!!e.triggerValue),e.boolValue!=null&&(o.boolValue=!!e.boolValue),e.doubleValue!=null&&(o.doubleValue=Number(e.doubleValue)),e.intValue!=null&&($util.Long?(o.intValue=$util.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue=="string"?o.intValue=parseInt(e.intValue,10):typeof e.intValue=="number"?o.intValue=e.intValue:typeof e.intValue=="object"&&(o.intValue=new $util.LongBits(e.intValue.low>>>0,e.intValue.high>>>
180).toNumber())),e.stringValue!=null&&(o.stringValue=String(e.stringValue)),e.doubleArrayValue!=null){if(typeof e.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");o.doubleArrayValue=$root.DoubleArray.fromObject(e.doubleArrayValue)}if(e.intArrayValue!=null){if(typeof e.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");o.intArrayValue=$root.SInt64Array.fromObject(e.intArrayValue)}if(e.stringArrayValue!=null){if(typeof e.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");o.stringArrayValue=$root.StringArray.fromObject(e.stringArrayValue)}if(e.jsonValue!=null&&(o.jsonValue=String(e.jsonValue)),e.arrowValue!=null){if(typeof e.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");o.arrowValue=$root.ArrowTable.fromObject(e.arrowValue)}if(e.bytesValue!=null&&(typeof e.bytesValue=="string"?$util.base64.decode(e.bytesValue,o.bytesValue=$util.newBuffer($util.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(o.bytesValue=e.bytesValue)),e.fileUploaderStateValue!=null){if(typeof e.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");o.fileUploaderStateValue=$root.FileUploaderState.fromObject(e.fileUploaderStateValue)}if(e.stringTriggerValue!=null){if(typeof e.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");o.stringTriggerValue=$root.StringTriggerValue.fromObject(e.stringTriggerValue)}if(e.chatInputValue!=null){if(typeof e.chatInputValue!="object")throw TypeError(".WidgetState.chatInputValue: object expected");o.chatInputValue=$root.ChatInputValue.fromObject(e.chatInputValue)}return e.jsonTriggerValue!=null&&(o.jsonTriggerValue=String(e.jsonTriggerValue)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.triggerValue!=null&&e.hasOwnProperty("triggerValue")&&(d.triggerValue=e.triggerValue,o.oneofs&&(d.value="triggerValue")),e.boolValue!=null&&e.hasOwnProperty("boolValue")&&(d.boolValue=e.boolValue,o.oneofs&&(d.value="boolValue")),e.doubleValue!=null&&e.hasOwnProperty("doubleValue")&&(d.doubleValue=o.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,o.oneofs&&(d.value="doubleValue")),e.intValue!=null&&e.hasOwnProperty("intValue")&&(typeof e.intValue=="number"?d.intValue=o.longs===String?String(e.intValue):e.intValue:d.intValue=o.longs===String?$util.Long.prototype.toString.call(e.intValue):o.longs===Number?new $util.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,o.oneofs&&(d.value="intValue")),e.stringValue!=null&&e.hasOwnProperty("stringValue")&&(d.stringValue=e.stringValue,o.oneofs&&(d.value="stringValue")),e.doubleArrayValue!=null&&e.hasOwnProperty("doubleArrayValue")&&(d.doubleArrayValue=$root.DoubleArray.toObject(e.doubleArrayValue,o),o.oneofs&&(d.value="doubleArrayValue")),e.intArrayValue!=null&&e.hasOwnProperty("intArrayValue")&&(d.intArrayValue=$root.SInt64Array.toObject(e.intArrayValue,o),o.oneofs&&(d.value="intArrayValue")),e.stringArrayValue!=null&&e.hasOwnProperty("stringArrayValue")&&(d.stringArrayValue=$root.StringArray.toObject(e.stringArrayValue,o),o.oneofs&&(d.value="stringArrayValue")),e.jsonValue!=null&&e.hasOwnProperty("jsonValue")&&(d.jsonValue=e.jsonValue,o.oneofs&&(d.value="jsonValue")),e.arrowValue!=null&&e.hasOwnProperty("arrowValue")&&(d.arrowValue=$root.ArrowTable.toObject(e.arrowValue,o),o.oneofs&&(d.value="arrowValue")),e.bytesValue!=null&&e.hasOwnProperty("bytesValue")&&(d.bytesValue=o.bytes===String?$util.base64.encode(e.bytesValue,0,e.bytesValue.length):o.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,o.oneofs&&(d.value="bytesValue")),e.fileUploaderStateValue!=null&&e.hasOwnProperty("fileUploaderStateValue")&&(d.fileUploaderStateValue=$root.FileUploaderState.toObject(e.fileUploaderStateValue,o),o.oneofs&&(d.value="fileUploaderStateValue")),e.stringTriggerValue!=null&&e.hasOwnProperty("stringTriggerValue")&&(d.stringTriggerValue=$root.StringTriggerValue.toObject(e.stringTriggerValue,o),o.oneofs&&(d.value="stringTriggerValue")),e.chatInputValue!=null&&e.hasOwnProperty("chatInputValue")&&(d.chatInputValue=$root.ChatInputValue.toObject(e.chatInputValue,o),o.oneofs&&(d.value="chatInputValue")),e.jsonTriggerValue!=null&&e.hasOwnProperty("jsonTriggerValue")&&(d.jsonTriggerValue=e.jsonTriggerValue,o.oneofs&&(d.value="jsonTriggerValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/WidgetState"},n})(),StringArray=$root.StringArray=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length)for(let o=0;o<t.data.length;++o)e.uint32(10).string(t.data[o]);return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.StringArray;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data&&p.data.length||(p.data=[]),p.data.push(t.string());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.StringArray)return t;let e=new $root.StringArray;
18if(t.data){if(!Array.isArray(t.data))throw TypeError(".StringArray.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)e.data[o]=String(t.data[o])}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)o.data[d]=t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/StringArray"},n})(),DoubleArray=$root.DoubleArray=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length){e.uint32(10).fork();for(let o=0;o<t.data.length;++o)e.double(t.data[o]);e.ldelim()}return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.DoubleArray;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.data.push(t.double())}else p.data.push(t.double());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.DoubleArray)return t;let e=new $root.DoubleArray;
18if(t.data){if(!Array.isArray(t.data))throw TypeError(".DoubleArray.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)e.data[o]=Number(t.data[o])}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)o.data[d]=e.json&&!isFinite(t.data[d])?String(t.data[d]):t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DoubleArray"},n})();$root.Int32Array=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length){e.uint32(10).fork();for(let o=0;o<t.data.length;++o)e.int32(t.data[o]);e.ldelim()}return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Int32Array;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.data.push(t.int32())}else p.data.push(t.int32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Int32Array)return t;let e=new $root.Int32Array;if(t.data){if(!Array.isArray(t.data))throw TypeError(".Int32Array.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)e.data[o]=t.data[o]|0}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)o.data[d]=t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Int32Array"},n})();$root.Int64Array=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length){e.uint32(10).fork();for(let o=0;o<t.data.length;++o)e.int64(t.data[o]);e.ldelim()}return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Int64Array;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.data.push(t.int64())}else p.data.push(t.int64());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Int64Array)return t;let e=new $root.Int64Array;if(t.data){if(!Array.isArray(t.data))throw TypeError(".Int64Array.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)$util.Long?(e.data[o]=$util.Long.fromValue(t.data[o])).unsigned=!1:typeof t.data[o]=="string"?e.data[o]=parseInt(t.data[o],10):typeof t.data[o]=="number"?e.data[o]=t.data[o]:typeof t.data[o]=="object"&&(e.data[o]=new $util.LongBits(t.data[o].low>>>0,t.data[o].high>>>0).toNumber())}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)typeof t.data[d]=="number"?o.data[d]=e.longs===String?String(t.data[d]):t.data[d]:o.data[d]=e.longs===String?$util.Long.prototype.toString.call(t.data[d]):e.longs===Number?new $util.LongBits(t.data[d].low>>>0,t.data[d].high>>>0).toNumber():t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Int64Array"},n})();const SInt64Array=$root.SInt64Array=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length){e.uint32(10).fork();for(let o=0;o<t.data.length;++o)e.sint64(t.data[o]);e.ldelim()}return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.SInt64Array;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.data.push(t.sint64())}else p.data.push(t.sint64());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.SInt64Array)return t;let e=new $root.SInt64Array;
18if(t.data){if(!Array.isArray(t.data))throw TypeError(".SInt64Array.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)$util.Long?(e.data[o]=$util.Long.fromValue(t.data[o])).unsigned=!1:typeof t.data[o]=="string"?e.data[o]=parseInt(t.data[o],10):typeof t.data[o]=="number"?e.data[o]=t.data[o]:typeof t.data[o]=="object"&&(e.data[o]=new $util.LongBits(t.data[o].low>>>0,t.data[o].high>>>0).toNumber())}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)typeof t.data[d]=="number"?o.data[d]=e.longs===String?String(t.data[d]):t.data[d]:o.data[d]=e.longs===String?$util.Long.prototype.toString.call(t.data[d]):e.longs===Number?new $util.LongBits(t.data[d].low>>>0,t.data[d].high>>>0).toNumber():t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SInt64Array"},n})();$root.UInt32Array=(()=>{function n(i){if(this.data=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.data!=null&&t.data.length){e.uint32(10).fork();for(let o=0;o<t.data.length;++o)e.uint32(t.data[o]);e.ldelim()}return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.UInt32Array;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.data.push(t.uint32())}else p.data.push(t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.UInt32Array)return t;let e=new $root.UInt32Array;if(t.data){if(!Array.isArray(t.data))throw TypeError(".UInt32Array.data: array expected");e.data=[];for(let o=0;o<t.data.length;++o)e.data[o]=t.data[o]>>>0}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.data=[]),t.data&&t.data.length){o.data=[];for(let d=0;d<t.data.length;++d)o.data[d]=t.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/UInt32Array"},n})();$root.StringTriggerValue=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.data=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&o.uint32(10).string(e.data),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.StringTriggerValue;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.StringTriggerValue)return e;let o=new $root.StringTriggerValue;return e.data!=null&&(o.data=String(e.data)),o},n.toObject=function(e,o){o||(o={});let d={};return e.data!=null&&e.hasOwnProperty("data")&&(d.data=e.data,o.oneofs&&(d._data="data")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/StringTriggerValue"},n})();$root.FileURLsRequest=(()=>{function n(i){if(this.fileNames=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.requestId="",n.prototype.fileNames=$util.emptyArray,n.prototype.sessionId="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.requestId!=null&&Object.hasOwnProperty.call(t,"requestId")&&e.uint32(10).string(t.requestId),t.fileNames!=null&&t.fileNames.length)for(let o=0;o<t.fileNames.length;++o)e.uint32(18).string(t.fileNames[o]);return t.sessionId!=null&&Object.hasOwnProperty.call(t,"sessionId")&&e.uint32(26).string(t.sessionId),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FileURLsRequest;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.requestId=t.string();break}case 2:{p.fileNames&&p.fileNames.length||(p.fileNames=[]),p.fileNames.push(t.string());break}case 3:{p.sessionId=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FileURLsRequest)return t;let e=new $root.FileURLsRequest;if(t.requestId!=null&&(e.requestId=String(t.requestId)),t.fileNames){if
18(!Array.isArray(t.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");e.fileNames=[];for(let o=0;o<t.fileNames.length;++o)e.fileNames[o]=String(t.fileNames[o])}return t.sessionId!=null&&(e.sessionId=String(t.sessionId)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.fileNames=[]),e.defaults&&(o.requestId="",o.sessionId=""),t.requestId!=null&&t.hasOwnProperty("requestId")&&(o.requestId=t.requestId),t.fileNames&&t.fileNames.length){o.fileNames=[];for(let d=0;d<t.fileNames.length;++d)o.fileNames[d]=t.fileNames[d]}return t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(o.sessionId=t.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FileURLsRequest"},n})();$root.FileURLs=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.fileId="",n.prototype.uploadUrl="",n.prototype.deleteUrl="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.fileId!=null&&Object.hasOwnProperty.call(t,"fileId")&&e.uint32(10).string(t.fileId),t.uploadUrl!=null&&Object.hasOwnProperty.call(t,"uploadUrl")&&e.uint32(18).string(t.uploadUrl),t.deleteUrl!=null&&Object.hasOwnProperty.call(t,"deleteUrl")&&e.uint32(26).string(t.deleteUrl),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FileURLs;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=t.string();break}case 2:{p.uploadUrl=t.string();break}case 3:{p.deleteUrl=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FileURLs)return t;let e=new $root.FileURLs;return t.fileId!=null&&(e.fileId=String(t.fileId)),t.uploadUrl!=null&&(e.uploadUrl=String(t.uploadUrl)),t.deleteUrl!=null&&(e.deleteUrl=String(t.deleteUrl)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.fileId="",o.uploadUrl="",o.deleteUrl=""),t.fileId!=null&&t.hasOwnProperty("fileId")&&(o.fileId=t.fileId),t.uploadUrl!=null&&t.hasOwnProperty("uploadUrl")&&(o.uploadUrl=t.uploadUrl),t.deleteUrl!=null&&t.hasOwnProperty("deleteUrl")&&(o.deleteUrl=t.deleteUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FileURLs"},n})();$root.FileURLsResponse=(()=>{function n(i){if(this.fileUrls=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.responseId="",n.prototype.fileUrls=$util.emptyArray,n.prototype.errorMsg="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.responseId!=null&&Object.hasOwnProperty.call(t,"responseId")&&e.uint32(10).string(t.responseId),t.fileUrls!=null&&t.fileUrls.length)for(let o=0;o<t.fileUrls.length;++o)$root.FileURLs.encode(t.fileUrls[o],e.uint32(18).fork()).ldelim();return t.errorMsg!=null&&Object.hasOwnProperty.call(t,"errorMsg")&&e.uint32(26).string(t.errorMsg),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FileURLsResponse;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.responseId=t.string();break}case 2:{p.fileUrls&&p.fileUrls.length||(p.fileUrls=[]),p.fileUrls.push($root.FileURLs.decode(t,t.uint32()));break}case 3:{p.errorMsg=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FileURLsResponse)return t;let e=new $root.FileURLsResponse;if(t.responseId!=null&&(e.responseId=String(t.responseId)),t.fileUrls){if(!Array.isArray(t.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");e.fileUrls=[];for(let o=0;o<t.fileUrls.length;++o){if(typeof t.fileUrls[o]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");e.fileUrls[o]=$root.FileURLs.fromObject(t.fileUrls[o])}}return t.errorMsg!=null&&(e.errorMsg=String(t.errorMsg)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.fileUrls=[]),e.defaults&&(o.responseId="",o.errorMsg=""),t.responseId!=null&&t.hasOwnProperty("responseId")&&(o.responseId=t.responseId),t.fileUrls&&t.fileUrls.length){o.fileUrls=[];for(let d=0;d<t.fileUrls.length;++d)o.fileUrls[d]=$root.FileURLs.toObject(t.fileUrls[d],e)}return t.errorMsg!=null&&t.hasOwnProperty("errorMsg")&&(o.errorMsg=t.errorMsg),o}
18,n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FileURLsResponse"},n})();const UploadedFileInfo=$root.UploadedFileInfo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.name="",n.prototype.size=$util.Long?$util.Long.fromBits(0,0,!0):0,n.prototype.fileId="",n.prototype.fileUrls=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(18).string(t.name),t.size!=null&&Object.hasOwnProperty.call(t,"size")&&e.uint32(24).uint64(t.size),t.fileId!=null&&Object.hasOwnProperty.call(t,"fileId")&&e.uint32(34).string(t.fileId),t.fileUrls!=null&&Object.hasOwnProperty.call(t,"fileUrls")&&$root.FileURLs.encode(t.fileUrls,e.uint32(42).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.UploadedFileInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 2:{p.name=t.string();break}case 3:{p.size=t.uint64();break}case 4:{p.fileId=t.string();break}case 5:{p.fileUrls=$root.FileURLs.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.UploadedFileInfo)return t;let e=new $root.UploadedFileInfo;if(t.name!=null&&(e.name=String(t.name)),t.size!=null&&($util.Long?(e.size=$util.Long.fromValue(t.size)).unsigned=!0:typeof t.size=="string"?e.size=parseInt(t.size,10):typeof t.size=="number"?e.size=t.size:typeof t.size=="object"&&(e.size=new $util.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0))),t.fileId!=null&&(e.fileId=String(t.fileId)),t.fileUrls!=null){if(typeof t.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");e.fileUrls=$root.FileURLs.fromObject(t.fileUrls)}return e},n.toObject=function(t,e){e||(e={});let o={};if(e.defaults){if(o.name="",$util.Long){let d=new $util.Long(0,0,!0);o.size=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.size=e.longs===String?"0":0;o.fileId="",o.fileUrls=null}return t.name!=null&&t.hasOwnProperty("name")&&(o.name=t.name),t.size!=null&&t.hasOwnProperty("size")&&(typeof t.size=="number"?o.size=e.longs===String?String(t.size):t.size:o.size=e.longs===String?$util.Long.prototype.toString.call(t.size):e.longs===Number?new $util.LongBits(t.size.low>>>0,t.size.high>>>0).toNumber(!0):t.size),t.fileId!=null&&t.hasOwnProperty("fileId")&&(o.fileId=t.fileId),t.fileUrls!=null&&t.hasOwnProperty("fileUrls")&&(o.fileUrls=$root.FileURLs.toObject(t.fileUrls,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/UploadedFileInfo"},n})(),FileUploaderState=$root.FileUploaderState=(()=>{function n(i){if(this.uploadedFileInfo=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.uploadedFileInfo=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.uploadedFileInfo!=null&&t.uploadedFileInfo.length)for(let o=0;o<t.uploadedFileInfo.length;++o)$root.UploadedFileInfo.encode(t.uploadedFileInfo[o],e.uint32(18).fork()).ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FileUploaderState;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 2:{p.uploadedFileInfo&&p.uploadedFileInfo.length||(p.uploadedFileInfo=[]),p.uploadedFileInfo.push($root.UploadedFileInfo.decode(t,t.uint32()));break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FileUploaderState)return t;let e=new $root.FileUploaderState;if(t.uploadedFileInfo){if(!Array.isArray(t.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");e.uploadedFileInfo=[];for(let o=0;o<t.uploadedFileInfo.length;++o){if(typeof t.uploadedFileInfo[o]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");e.uploadedFileInfo[o]=$root.UploadedFileInfo.fromObject(t.uploadedFileInfo[o]
18)}}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.uploadedFileInfo=[]),t.uploadedFileInfo&&t.uploadedFileInfo.length){o.uploadedFileInfo=[];for(let d=0;d<t.uploadedFileInfo.length;++d)o.uploadedFileInfo[d]=$root.UploadedFileInfo.toObject(t.uploadedFileInfo[d],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FileUploaderState"},n})(),ChatInputValue=$root.ChatInputValue=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.data=null,n.prototype.fileUploaderState=null,n.prototype.audioFileInfo=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_fileUploaderState",{get:$util.oneOfGetter(i=["fileUploaderState"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_audioFileInfo",{get:$util.oneOfGetter(i=["audioFileInfo"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&o.uint32(10).string(e.data),e.fileUploaderState!=null&&Object.hasOwnProperty.call(e,"fileUploaderState")&&$root.FileUploaderState.encode(e.fileUploaderState,o.uint32(18).fork()).ldelim(),e.audioFileInfo!=null&&Object.hasOwnProperty.call(e,"audioFileInfo")&&$root.UploadedFileInfo.encode(e.audioFileInfo,o.uint32(26).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ChatInputValue;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=e.string();break}case 2:{h.fileUploaderState=$root.FileUploaderState.decode(e,e.uint32());break}case 3:{h.audioFileInfo=$root.UploadedFileInfo.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ChatInputValue)return e;let o=new $root.ChatInputValue;if(e.data!=null&&(o.data=String(e.data)),e.fileUploaderState!=null){if(typeof e.fileUploaderState!="object")throw TypeError(".ChatInputValue.fileUploaderState: object expected");o.fileUploaderState=$root.FileUploaderState.fromObject(e.fileUploaderState)}if(e.audioFileInfo!=null){if(typeof e.audioFileInfo!="object")throw TypeError(".ChatInputValue.audioFileInfo: object expected");o.audioFileInfo=$root.UploadedFileInfo.fromObject(e.audioFileInfo)}return o},n.toObject=function(e,o){o||(o={});let d={};return e.data!=null&&e.hasOwnProperty("data")&&(d.data=e.data,o.oneofs&&(d._data="data")),e.fileUploaderState!=null&&e.hasOwnProperty("fileUploaderState")&&(d.fileUploaderState=$root.FileUploaderState.toObject(e.fileUploaderState,o),o.oneofs&&(d._fileUploaderState="fileUploaderState")),e.audioFileInfo!=null&&e.hasOwnProperty("audioFileInfo")&&(d.audioFileInfo=$root.UploadedFileInfo.toObject(e.audioFileInfo,o),o.oneofs&&(d._audioFileInfo="audioFileInfo")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ChatInputValue"},n})();$root.ComponentInstance=(()=>{function n(t){if(this.specialArgs=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.jsonArgs="",n.prototype.specialArgs=$util.emptyArray,n.prototype.componentName="",n.prototype.url="",n.prototype.formId="",n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.jsonArgs!=null&&Object.hasOwnProperty.call(e,"jsonArgs")&&o.uint32(18).string(e.jsonArgs),e.specialArgs!=null&&e.specialArgs.length)for(let d=0;d<e.specialArgs.length;++d)$root.SpecialArg.encode(e.specialArgs[d],o.uint32(26).fork()).ldelim();return e.componentName!=null&&Object.hasOwnProperty.call(e,"componentName")&&o.uint32(34).string(e.componentName),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&o.uint32(42).string(e.url),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.tabIndex!=null&&Object.hasOwnProperty.call(e,"tabIndex")&&o.uint32(56).int32(e.tabIndex),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ComponentInstance;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.jsonArgs=e.string();break}case 3:{h.specialArgs&&h.specialArgs.length||(h.specialArgs=[]),h.specialArgs.push($root.SpecialArg.decode(e,e.uint32()));break}case 4:{h.componentName=e.string();break}case 5:{h.url=e.string();break}case 6:{h.formId=e.string();break}case 7:{h.tabIndex=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ComponentInstance)return e;let o=new $root.ComponentInstance;if(e.id!=null&&(o.id=String(e.id)),e.jsonArgs!=null&&(o.jsonArgs=String(e.jsonArgs)),e.specialArgs){if(!Array.isArray(e.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");o.specialArgs=[];for(let d=0;d<e.specialArgs.length;++d){if(typeof e.specialArgs[d]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");o.specialArgs[d]=$root.SpecialArg.fromObject(e.specialArgs[d])}}return e.componentName!=null&&(o.componentName=String(e.componentName)),e.url!=null&&(o.url=String(e.url)),e.formId!=null&&(o.formId=String(e.formId)),e.tabIndex!=null&&(o.tabIndex=e.tabIndex|0),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.specialArgs=[]),o.defaults&&(d.id="",d.jsonArgs="",d.componentName="",d.url="",d.formId=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.jsonArgs!=null&&e.hasOwnProperty("jsonArgs")&&(d.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){d.specialArgs=[];for(let p=0;p<e.specialArgs.length;++p)d.specialArgs[p]=$root.SpecialArg.toObject(e.specialArgs[p],o)}return e.componentName!=null&&e.hasOwnProperty("componentName")&&(d.componentName=e.componentName),e.url!=null&&e.hasOwnProperty("url")&&(d.url=e.url),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.tabIndex!=null&&e.hasOwnProperty("tabIndex")&&(d.tabIndex=e.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ComponentInstance"},n})();$root.SpecialArg=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.key="",n.prototype.arrowDataframe=null,n.prototype.bytes=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["arrowDataframe","bytes"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.key!=null&&Object.hasOwnProperty.call(e,"key")&&o.uint32(10).string(e.key),e.arrowDataframe!=null&&Object.hasOwnProperty.call(e,"arrowDataframe")&&$root.ArrowDataframe.encode(e.arrowDataframe,o.uint32(18).fork()).ldelim(),e.bytes!=null&&Object.hasOwnProperty.call(e,"bytes")&&o.uint32(26).bytes(e.bytes),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.SpecialArg;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.key=e.string();break}case 2:{h.arrowDataframe=$root.ArrowDataframe.decode(e,e.uint32());break}case 3:{h.bytes=e.bytes();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.SpecialArg)return e;let o=new $root.SpecialArg;if(e.key!=null&&(o.key=String(e.key)),e.arrowDataframe!=null){if(typeof e.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");o.arrowDataframe=$root.ArrowDataframe.fromObject(e.arrowDataframe)}return e.bytes!=null&&(typeof e.bytes=="string"?$util.base64.decode(e.bytes,o.bytes=$util.newBuffer($util.base64.length(e.bytes)),0):e.bytes.length>=0&&(o.bytes=e.bytes)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.key=""),e.key!=null&&e.hasOwnProperty("key")&&(d.key=e.key),e.arrowDataframe!=null&&e.hasOwnProperty("arrowDataframe")&&(d.arrowDataframe=$root.ArrowDataframe.toObject(e.arrowDataframe,o),o.oneofs&&(d.value="arrowDataframe")),e.bytes!=null&&e.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(e.bytes,0,e.bytes.length):o.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,o.oneofs&&(d.value="bytes")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SpecialArg"},n})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=null,n.prototype.height=0,n.prototype.width=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&$root.ArrowTable.encode(t.data,e.uint32(10).fork()).ldelim(),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&e.uint32(16).uint32(t.height),t.width!=null&&Object.hasOwnProperty.call(t,"width")&&e.uint32(24).uint32(t.width),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ArrowDataframe;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.ArrowTable.decode(t,t.uint32());break}case 2:{p.height=t.uint32();break}case 3:{p.width=t.uint32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ArrowDataframe)return t;let e=new $root.ArrowDataframe;if(t.data!=null){if(typeof t.data!="object")throw TypeError(".ArrowDataframe.data: object expected");e.data=$root.ArrowTable.fromObject(t.data)}return t.height!=null&&(e.height=t.height>>>0),t.width!=null&&(e.width=t.width>>>0),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.data=null,o.height=0,o.width=0),t.data!=null&&t.hasOwnProperty("data")&&(o.data=$root.ArrowTable.toObject(t.data,e)),t.height!=null&&t.hasOwnProperty("height")&&(o.height=t.height),t.width!=null&&t.hasOwnProperty("width")&&(o.width=t.width),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowDataframe"},n})();$root.ArrowTable=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.data=$util.newBuffer([]),n.prototype.index=$util.newBuffer([]),n.prototype.columns=$util.newBuffer([]),n.prototype.styler=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&e.uint32(10).bytes(t.data),t.index!=null&&Object.hasOwnProperty.call(t,"index")&&e.uint32(18).bytes(t.index),t.columns!=null&&Object.hasOwnProperty.call(t,"columns")&&e.uint32(26).bytes(t.columns),t.styler!=null&&Object.hasOwnProperty.call(t,"styler")&&$root.ArrowTableStyler.encode(t.styler,e.uint32(42).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ArrowTable;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=t.bytes();break}case 2:{p.index=t.bytes();break}case 3:{p.columns=t.bytes();break}case 5:{p.styler=$root.ArrowTableStyler.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ArrowTable)return t;let e=new $root.ArrowTable;
18if(t.data!=null&&(typeof t.data=="string"?$util.base64.decode(t.data,e.data=$util.newBuffer($util.base64.length(t.data)),0):t.data.length>=0&&(e.data=t.data)),t.index!=null&&(typeof t.index=="string"?$util.base64.decode(t.index,e.index=$util.newBuffer($util.base64.length(t.index)),0):t.index.length>=0&&(e.index=t.index)),t.columns!=null&&(typeof t.columns=="string"?$util.base64.decode(t.columns,e.columns=$util.newBuffer($util.base64.length(t.columns)),0):t.columns.length>=0&&(e.columns=t.columns)),t.styler!=null){if(typeof t.styler!="object")throw TypeError(".ArrowTable.styler: object expected");e.styler=$root.ArrowTableStyler.fromObject(t.styler)}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(e.bytes===String?o.data="":(o.data=[],e.bytes!==Array&&(o.data=$util.newBuffer(o.data))),e.bytes===String?o.index="":(o.index=[],e.bytes!==Array&&(o.index=$util.newBuffer(o.index))),e.bytes===String?o.columns="":(o.columns=[],e.bytes!==Array&&(o.columns=$util.newBuffer(o.columns))),o.styler=null),t.data!=null&&t.hasOwnProperty("data")&&(o.data=e.bytes===String?$util.base64.encode(t.data,0,t.data.length):e.bytes===Array?Array.prototype.slice.call(t.data):t.data),t.index!=null&&t.hasOwnProperty("index")&&(o.index=e.bytes===String?$util.base64.encode(t.index,0,t.index.length):e.bytes===Array?Array.prototype.slice.call(t.index):t.index),t.columns!=null&&t.hasOwnProperty("columns")&&(o.columns=e.bytes===String?$util.base64.encode(t.columns,0,t.columns.length):e.bytes===Array?Array.prototype.slice.call(t.columns):t.columns),t.styler!=null&&t.hasOwnProperty("styler")&&(o.styler=$root.ArrowTableStyler.toObject(t.styler,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowTable"},n})();$root.ArrowTableStyler=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.uuid!=null&&Object.hasOwnProperty.call(t,"uuid")&&e.uint32(10).string(t.uuid),t.caption!=null&&Object.hasOwnProperty.call(t,"caption")&&e.uint32(18).string(t.caption),t.styles!=null&&Object.hasOwnProperty.call(t,"styles")&&e.uint32(26).string(t.styles),t.displayValues!=null&&Object.hasOwnProperty.call(t,"displayValues")&&e.uint32(34).bytes(t.displayValues),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ArrowTableStyler;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=t.string();break}case 2:{p.caption=t.string();break}case 3:{p.styles=t.string();break}case 4:{p.displayValues=t.bytes();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ArrowTableStyler)return t;let e=new $root.ArrowTableStyler;return t.uuid!=null&&(e.uuid=String(t.uuid)),t.caption!=null&&(e.caption=String(t.caption)),t.styles!=null&&(e.styles=String(t.styles)),t.displayValues!=null&&(typeof t.displayValues=="string"?$util.base64.decode(t.displayValues,e.displayValues=$util.newBuffer($util.base64.length(t.displayValues)),0):t.displayValues.length>=0&&(e.displayValues=t.displayValues)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.uuid="",o.caption="",o.styles="",e.bytes===String?o.displayValues="":(o.displayValues=[],e.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),t.uuid!=null&&t.hasOwnProperty("uuid")&&(o.uuid=t.uuid),t.caption!=null&&t.hasOwnProperty("caption")&&(o.caption=t.caption),t.styles!=null&&t.hasOwnProperty("styles")&&(o.styles=t.styles),t.displayValues!=null&&t.hasOwnProperty("displayValues")&&(o.displayValues=e.bytes===String?$util.base64.encode(t.displayValues,0,t.displayValues.length):e.bytes===Array?Array.prototype.slice.call(t.displayValues):t.displayValues),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowTableStyler"},n})();$root.Balloons=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.show=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.show!=null&&Object.hasOwnProperty.call(t,"show")&&e.uint32(24).bool(t.show),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Balloons;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 3:{p.show=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Balloons)return t;let e=new $root.Balloons;return t.show!=null&&(e.show=!!t.show),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.show=!1),t.show!=null&&t.hasOwnProperty("show")&&(o.show=t.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Balloons"},n})();$root.MixedData=(()=>{function n(i){if(this.arrowBlobs={},i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.json="",n.prototype.arrowBlobs=$util.emptyObject,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&e.uint32(10).string(t.json),t.arrowBlobs!=null&&Object.hasOwnProperty.call(t,"arrowBlobs"))for(let o=Object.keys(t.arrowBlobs),d=0;d<o.length;++d)e.uint32(18).fork().uint32(10).string(o[d]),$root.ArrowData.encode(t.arrowBlobs[o[d]],e.uint32(18).fork()).ldelim().ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.MixedData,h,y;for(;t.pos<d;){let E=t.uint32();if(E===o)break;switch(E>>>3){case 1:{p.json=t.string();break}case 2:{p.arrowBlobs===$util.emptyObject&&(p.arrowBlobs={});let $=t.uint32()+t.pos;for(h="",y=null;t.pos<$;){let M=t.uint32();switch(M>>>3){case 1:h=t.string();break;case 2:y=$root.ArrowData.decode(t,t.uint32());break;default:t.skipType(M&7);break}}p.arrowBlobs[h]=y;break}default:t.skipType(E&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.MixedData)return t;let e=new $root.MixedData;if(t.json!=null&&(e.json=String(t.json)),t.arrowBlobs){if(typeof t.arrowBlobs!="object")throw TypeError(".MixedData.arrowBlobs: object expected");e.arrowBlobs={};for(let o=Object.keys(t.arrowBlobs),d=0;d<o.length;++d){if(typeof t.arrowBlobs[o[d]]!="object")throw TypeError(".MixedData.arrowBlobs: object expected");e.arrowBlobs[o[d]]=$root.ArrowData.fromObject(t.arrowBlobs[o[d]])}}return e},n.toObject=function(t,e){e||(e={});let o={};(e.objects||e.defaults)&&(o.arrowBlobs={}),e.defaults&&(o.json=""),t.json!=null&&t.hasOwnProperty("json")&&(o.json=t.json);let d;
18if(t.arrowBlobs&&(d=Object.keys(t.arrowBlobs)).length){o.arrowBlobs={};for(let p=0;p<d.length;++p)o.arrowBlobs[d[p]]=$root.ArrowData.toObject(t.arrowBlobs[d[p]],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/MixedData"},n})();$root.BidiComponent=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.componentName="",n.prototype.jsContent=null,n.prototype.jsSourcePath=null,n.prototype.formId="",n.prototype.htmlContent=null,n.prototype.cssContent=null,n.prototype.cssSourcePath=null,n.prototype.isolateStyles=!1,n.prototype.json=null,n.prototype.arrowData=null,n.prototype.bytes=null,n.prototype.mixed=null;let i;return Object.defineProperty(n.prototype,"_jsContent",{get:$util.oneOfGetter(i=["jsContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_jsSourcePath",{get:$util.oneOfGetter(i=["jsSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_htmlContent",{get:$util.oneOfGetter(i=["htmlContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssContent",{get:$util.oneOfGetter(i=["cssContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssSourcePath",{get:$util.oneOfGetter(i=["cssSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"data",{get:$util.oneOfGetter(i=["json","arrowData","bytes","mixed"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.componentName!=null&&Object.hasOwnProperty.call(e,"componentName")&&o.uint32(18).string(e.componentName),e.jsContent!=null&&Object.hasOwnProperty.call(e,"jsContent")&&o.uint32(26).string(e.jsContent),e.jsSourcePath!=null&&Object.hasOwnProperty.call(e,"jsSourcePath")&&o.uint32(34).string(e.jsSourcePath),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.htmlContent!=null&&Object.hasOwnProperty.call(e,"htmlContent")&&o.uint32(50).string(e.htmlContent),e.cssContent!=null&&Object.hasOwnProperty.call(e,"cssContent")&&o.uint32(58).string(e.cssContent),e.cssSourcePath!=null&&Object.hasOwnProperty.call(e,"cssSourcePath")&&o.uint32(66).string(e.cssSourcePath),e.isolateStyles!=null&&Object.hasOwnProperty.call(e,"isolateStyles")&&o.uint32(72).bool(e.isolateStyles),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&o.uint32(82).string(e.json),e.arrowData!=null&&Object.hasOwnProperty.call(e,"arrowData")&&$root.ArrowData.encode(e.arrowData,o.uint32(90).fork()).ldelim(),e.bytes!=null&&Object.hasOwnProperty.call(e,"bytes")&&o.uint32(98).bytes(e.bytes),e.mixed!=null&&Object.hasOwnProperty.call(e,"mixed")&&$root.MixedData.encode(e.mixed,o.uint32(106).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.BidiComponent;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.componentName=e.string();break}case 3:{h.jsContent=e.string();break}case 4:{h.jsSourcePath=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.htmlContent=e.string();break}case 7:{h.cssContent=e.string();break}case 8:{h.cssSourcePath=e.string();break}case 9:{h.isolateStyles=e.bool();break}case 10:{h.json=e.string();break}case 11:{h.arrowData=$root.ArrowData.decode(e,e.uint32());break}case 12:{h.bytes=e.bytes();break}case 13:{h.mixed=$root.MixedData.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.BidiComponent)return e;let o=new $root.BidiComponent;if(e.id!=null&&(o.id=String(e.id)),e.componentName!=null&&(o.componentName=String(e.componentName)),e.jsContent!=null&&(o.jsContent=String(e.jsContent)),e.jsSourcePath!=null&&(o.jsSourcePath=String(e.jsSourcePath)),e.formId!=null&&(o.formId=String(e.formId)),e.htmlContent!=null&&(o.htmlContent=String(e.htmlContent)),e.cssContent!=null&&(o.cssContent=String(e.cssContent)),e.cssSourcePath!=null&&(o.cssSourcePath=String(e.cssSourcePath)),e.isolateStyles!=null&&(o.isolateStyles=!!e.isolateStyles),e.json!=null&&(o.json=String(e.json)),e.arrowData!=null){if(typeof e.arrowData!="object")throw TypeError(".BidiComponent.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(e.arrowData)}if(e.bytes!=null&&(typeof e.bytes=="string"?$util.base64.decode(e.bytes,o.bytes=$util.newBuffer($util.base64.length(e.bytes)),0):e.bytes.length>=0&&(o.bytes=e.bytes)),e.mixed!=null){if(typeof e.mixed!="object")throw TypeError(".BidiComponent.mixed: object expected");o.mixed=$root.MixedData.fromObject(e.mixed)}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.componentName="",d.formId="",d.isolateStyles=!1),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.componentName!=null&&e.hasOwnProperty("componentName")&&(d.componentName=e.componentName),e.jsContent!=null&&e.hasOwnProperty("jsContent")&&(d.jsContent=e.jsContent,o.oneofs&&(d._jsContent="jsContent")),e.jsSourcePath!=null&&e.hasOwnProperty("jsSourcePath")&&(d.jsSourcePath=e.jsSourcePath,o.oneofs&&(d._jsSourcePath="jsSourcePath")),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.htmlContent!=null&&e.hasOwnProperty("htmlContent")&&(d.htmlContent=e.htmlContent,o.oneofs&&(d._htmlContent="htmlContent")),e.cssContent!=null&&e.hasOwnProperty("cssContent")&&(d.cssContent=e.cssContent,o.oneofs&&(d._cssContent="cssContent")),e.cssSourcePath!=null&&e.hasOwnProperty("cssSourcePath")&&(d.cssSourcePath=e.cssSourcePath,o.oneofs&&(d._cssSourcePath="cssSourcePath")),e.isolateStyles!=null&&e.hasOwnProperty("isolateStyles")&&(d.isolateStyles=e.isolateStyles),e.json!=null&&e.hasOwnProperty("json")&&(d.json=e.json,o.oneofs&&(d.data="json")),e.arrowData!=null&&e.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(e.arrowData,o),o.oneofs&&(d.data="arrowData")),e.bytes!=null&&e.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(e.bytes,0,e.bytes.length):o.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,o.oneofs&&(d.data="bytes")),e.mixed!=null&&e.hasOwnProperty("mixed")&&(
18d.mixed=$root.MixedData.toObject(e.mixed,o),o.oneofs&&(d.data="mixed")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BidiComponent"},n})();const Block$1=$root.Block=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.vertical=null,n.prototype.horizontal=null,n.prototype.column=null,n.prototype.expandable=null,n.prototype.form=null,n.prototype.tabContainer=null,n.prototype.tab=null,n.prototype.chatMessage=null,n.prototype.popover=null,n.prototype.dialog=null,n.prototype.flexContainer=null,n.prototype.allowEmpty=!1,n.prototype.id=null,n.prototype.heightConfig=null,n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["vertical","horizontal","column","expandable","form","tabContainer","tab","chatMessage","popover","dialog","flexContainer"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_id",{get:$util.oneOfGetter(i=["id"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.vertical!=null&&Object.hasOwnProperty.call(e,"vertical")&&$root.Block.Vertical.encode(e.vertical,o.uint32(10).fork()).ldelim(),e.horizontal!=null&&Object.hasOwnProperty.call(e,"horizontal")&&$root.Block.Horizontal.encode(e.horizontal,o.uint32(18).fork()).ldelim(),e.column!=null&&Object.hasOwnProperty.call(e,"column")&&$root.Block.Column.encode(e.column,o.uint32(26).fork()).ldelim(),e.expandable!=null&&Object.hasOwnProperty.call(e,"expandable")&&$root.Block.Expandable.encode(e.expandable,o.uint32(34).fork()).ldelim(),e.form!=null&&Object.hasOwnProperty.call(e,"form")&&$root.Block.Form.encode(e.form,o.uint32(42).fork()).ldelim(),e.tabContainer!=null&&Object.hasOwnProperty.call(e,"tabContainer")&&$root.Block.TabContainer.encode(e.tabContainer,o.uint32(50).fork()).ldelim(),e.tab!=null&&Object.hasOwnProperty.call(e,"tab")&&$root.Block.Tab.encode(e.tab,o.uint32(58).fork()).ldelim(),e.allowEmpty!=null&&Object.hasOwnProperty.call(e,"allowEmpty")&&o.uint32(64).bool(e.allowEmpty),e.chatMessage!=null&&Object.hasOwnProperty.call(e,"chatMessage")&&$root.Block.ChatMessage.encode(e.chatMessage,o.uint32(74).fork()).ldelim(),e.popover!=null&&Object.hasOwnProperty.call(e,"popover")&&$root.Block.Popover.encode(e.popover,o.uint32(82).fork()).ldelim(),e.dialog!=null&&Object.hasOwnProperty.call(e,"dialog")&&$root.Block.Dialog.encode(e.dialog,o.uint32(90).fork()).ldelim(),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(98).string(e.id),e.flexContainer!=null&&Object.hasOwnProperty.call(e,"flexContainer")&&$root.Block.FlexContainer.encode(e.flexContainer,o.uint32(106).fork()).ldelim(),e.heightConfig!=null&&Object.hasOwnProperty.call(e,"heightConfig")&&$root.streamlit.HeightConfig.encode(e.heightConfig,o.uint32(114).fork()).ldelim(),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,o.uint32(122).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Block;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.vertical=$root.Block.Vertical.decode(e,e.uint32());break}case 2:{h.horizontal=$root.Block.Horizontal.decode(e,e.uint32());break}case 3:{h.column=$root.Block.Column.decode(e,e.uint32());break}case 4:{h.expandable=$root.Block.Expandable.decode(e,e.uint32());break}case 5:{h.form=$root.Block.Form.decode(e,e.uint32());break}case 6:{h.tabContainer=$root.Block.TabContainer.decode(e,e.uint32());break}case 7:{h.tab=$root.Block.Tab.decode(e,e.uint32());break}case 9:{h.chatMessage=$root.Block.ChatMessage.decode(e,e.uint32());break}case 10:{h.popover=$root.Block.Popover.decode(e,e.uint32());break}case 11:{h.dialog=$root.Block.Dialog.decode(e,e.uint32());break}case 13:{h.flexContainer=$root.Block.FlexContainer.decode(e,e.uint32());break}case 8:{h.allowEmpty=e.bool();break}case 12:{h.id=e.string();break}case 14:{h.heightConfig=$root.streamlit.HeightConfig.decode(e,e.uint32());break}case 15:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Block)return e;let o=new $root.Block;if(e.vertical!=null){if(typeof e.vertical!="object")throw TypeError(".Block.vertical: object expected");o.vertical=$root.Block.Vertical.fromObject(e.vertical)}if(e.horizontal!=null){if(typeof e.horizontal!="object")throw TypeError(".Block.horizontal: object expected");o.horizontal=$root.Block.Horizontal.fromObject(e.horizontal)}if(e.column!=null){if(typeof e.column!="object")throw TypeError(".Block.column: object expected");o.column=$root.Block.Column.fromObject(e.column)}if(e.expandable!=null){if(typeof e.expandable!="object")throw TypeError(".Block.expandable: object expected");o.expandable=$root.Block.Expandable.fromObject(e.expandable)}if(e.form!=null){if(typeof e.form!="object")throw TypeError(".Block.form: object expected");o.form=$root.Block.Form.fromObject(e.form)}if(e.tabContainer!=null){if(typeof e.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");o.tabContainer=$root.Block.TabContainer.fromObject(e.tabContainer)}if(e.tab!=null){if(typeof e.tab!="object")throw TypeError(".Block.tab: object expected");o.tab=$root.Block.Tab.fromObject(e.tab)}if(e.chatMessage!=null){if(typeof e.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");o.chatMessage=$root.Block.ChatMessage.fromObject(e.chatMessage)}if(e.popover!=null){if(typeof e.popover!="object")throw TypeError(".Block.popover: object expected");o.popover=$root.Block.Popover.fromObject(e.popover)}if(e.dialog!=null){if(typeof e.dialog!="object")throw TypeError(".Block.dialog: object expected");o.dialog=$root.Block.Dialog.fromObject(e.dialog)}if(e.flexContainer!=null){if(typeof e.flexContainer!="object")throw TypeError(".Block.flexContainer: object expected");o.flexContainer=$root.Block.FlexContainer.fromObject(e.flexContainer)}if(e.allowEmpty!=null&&(o.allowEmpty=!!e.allowEmpty),e.id!=null&&(o.id=String(e.id)),e.heightConfig!=null){if(typeof e.heightConfig!="object")throw TypeError(".Block.heightConfig: object expected");
18o.heightConfig=$root.streamlit.HeightConfig.fromObject(e.heightConfig)}if(e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Block.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.allowEmpty=!1),e.vertical!=null&&e.hasOwnProperty("vertical")&&(d.vertical=$root.Block.Vertical.toObject(e.vertical,o),o.oneofs&&(d.type="vertical")),e.horizontal!=null&&e.hasOwnProperty("horizontal")&&(d.horizontal=$root.Block.Horizontal.toObject(e.horizontal,o),o.oneofs&&(d.type="horizontal")),e.column!=null&&e.hasOwnProperty("column")&&(d.column=$root.Block.Column.toObject(e.column,o),o.oneofs&&(d.type="column")),e.expandable!=null&&e.hasOwnProperty("expandable")&&(d.expandable=$root.Block.Expandable.toObject(e.expandable,o),o.oneofs&&(d.type="expandable")),e.form!=null&&e.hasOwnProperty("form")&&(d.form=$root.Block.Form.toObject(e.form,o),o.oneofs&&(d.type="form")),e.tabContainer!=null&&e.hasOwnProperty("tabContainer")&&(d.tabContainer=$root.Block.TabContainer.toObject(e.tabContainer,o),o.oneofs&&(d.type="tabContainer")),e.tab!=null&&e.hasOwnProperty("tab")&&(d.tab=$root.Block.Tab.toObject(e.tab,o),o.oneofs&&(d.type="tab")),e.allowEmpty!=null&&e.hasOwnProperty("allowEmpty")&&(d.allowEmpty=e.allowEmpty),e.chatMessage!=null&&e.hasOwnProperty("chatMessage")&&(d.chatMessage=$root.Block.ChatMessage.toObject(e.chatMessage,o),o.oneofs&&(d.type="chatMessage")),e.popover!=null&&e.hasOwnProperty("popover")&&(d.popover=$root.Block.Popover.toObject(e.popover,o),o.oneofs&&(d.type="popover")),e.dialog!=null&&e.hasOwnProperty("dialog")&&(d.dialog=$root.Block.Dialog.toObject(e.dialog,o),o.oneofs&&(d.type="dialog")),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id,o.oneofs&&(d._id="id")),e.flexContainer!=null&&e.hasOwnProperty("flexContainer")&&(d.flexContainer=$root.Block.FlexContainer.toObject(e.flexContainer,o),o.oneofs&&(d.type="flexContainer")),e.heightConfig!=null&&e.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(e.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Block"},n.Vertical=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.border=!1,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Vertical;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.border=o.bool();break}default:o.skipType(E&7);break}}return y},t.fromObject=function(o){if(o instanceof $root.Block.Vertical)return o;let d=new $root.Block.Vertical;return o.border!=null&&(d.border=!!o.border),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Vertical"},t})(),n.Horizontal=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.gap="",t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.gap!=null&&Object.hasOwnProperty.call(o,"gap")&&d.uint32(10).string(o.gap),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Horizontal;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.gap=o.string();break}default:o.skipType(E&7);break}}return y}
18,t.fromObject=function(o){if(o instanceof $root.Block.Horizontal)return o;let d=new $root.Block.Horizontal;return o.gap!=null&&(d.gap=String(o.gap)),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.gap=""),o.gap!=null&&o.hasOwnProperty("gap")&&(p.gap=o.gap),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Horizontal"},t})(),n.FlexContainer=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.border=!1,t.prototype.gapConfig=null,t.prototype.scale=0,t.prototype.direction=0,t.prototype.wrap=!1,t.prototype.justify=0,t.prototype.align=0,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),o.gapConfig!=null&&Object.hasOwnProperty.call(o,"gapConfig")&&$root.streamlit.GapConfig.encode(o.gapConfig,d.uint32(18).fork()).ldelim(),o.scale!=null&&Object.hasOwnProperty.call(o,"scale")&&d.uint32(29).float(o.scale),o.direction!=null&&Object.hasOwnProperty.call(o,"direction")&&d.uint32(32).int32(o.direction),o.wrap!=null&&Object.hasOwnProperty.call(o,"wrap")&&d.uint32(40).bool(o.wrap),o.justify!=null&&Object.hasOwnProperty.call(o,"justify")&&d.uint32(56).int32(o.justify),o.align!=null&&Object.hasOwnProperty.call(o,"align")&&d.uint32(64).int32(o.align),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.FlexContainer;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.border=o.bool();break}case 2:{y.gapConfig=$root.streamlit.GapConfig.decode(o,o.uint32());break}case 3:{y.scale=o.float();break}case 4:{y.direction=o.int32();break}case 5:{y.wrap=o.bool();break}case 7:{y.justify=o.int32();break}case 8:{y.align=o.int32();break}default:o.skipType(E&7);break}}return y},t.fromObject=function(o){if(o instanceof $root.Block.FlexContainer)return o;let d=new $root.Block.FlexContainer;if(o.border!=null&&(d.border=!!o.border),o.gapConfig!=null){if(typeof o.gapConfig!="object")throw TypeError(".Block.FlexContainer.gapConfig: object expected");d.gapConfig=$root.streamlit.GapConfig.fromObject(o.gapConfig)}switch(o.scale!=null&&(d.scale=Number(o.scale)),o.direction){default:if(typeof o.direction=="number"){d.direction=o.direction;break}break;case"DIRECTION_UNDEFINED":case 0:d.direction=0;break;case"VERTICAL":case 1:d.direction=1;break;case"HORIZONTAL":case 2:d.direction=2;break}switch(o.wrap!=null&&(d.wrap=!!o.wrap),o.justify){default:if(typeof o.justify=="number"){d.justify=o.justify;break}break;case"JUSTIFY_UNDEFINED":case 0:d.justify=0;break;case"JUSTIFY_START":case 1:d.justify=1;break;case"JUSTIFY_END":case 2:d.justify=2;break;case"JUSTIFY_CENTER":case 3:d.justify=3;break;case"SPACE_BETWEEN":case 4:d.justify=4;break}switch(o.align){default:if(typeof o.align=="number"){d.align=o.align;break}break;case"ALIGN_UNDEFINED":case 0:d.align=0;break;case"ALIGN_START":case 1:d.align=1;break;case"ALIGN_END":case 2:d.align=2;break;
18case"ALIGN_CENTER":case 3:d.align=3;break;case"STRETCH":case 4:d.align=4;break}return d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1,p.gapConfig=null,p.scale=0,p.direction=d.enums===String?"DIRECTION_UNDEFINED":0,p.wrap=!1,p.justify=d.enums===String?"JUSTIFY_UNDEFINED":0,p.align=d.enums===String?"ALIGN_UNDEFINED":0),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.gapConfig!=null&&o.hasOwnProperty("gapConfig")&&(p.gapConfig=$root.streamlit.GapConfig.toObject(o.gapConfig,d)),o.scale!=null&&o.hasOwnProperty("scale")&&(p.scale=d.json&&!isFinite(o.scale)?String(o.scale):o.scale),o.direction!=null&&o.hasOwnProperty("direction")&&(p.direction=d.enums===String?$root.Block.FlexContainer.Direction[o.direction]===void 0?o.direction:$root.Block.FlexContainer.Direction[o.direction]:o.direction),o.wrap!=null&&o.hasOwnProperty("wrap")&&(p.wrap=o.wrap),o.justify!=null&&o.hasOwnProperty("justify")&&(p.justify=d.enums===String?$root.Block.FlexContainer.Justify[o.justify]===void 0?o.justify:$root.Block.FlexContainer.Justify[o.justify]:o.justify),o.align!=null&&o.hasOwnProperty("align")&&(p.align=d.enums===String?$root.Block.FlexContainer.Align[o.align]===void 0?o.align:$root.Block.FlexContainer.Align[o.align]:o.align),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.FlexContainer"},t.Direction=(function(){const e={},o=Object.create(e);return o[e[0]="DIRECTION_UNDEFINED"]=0,o[e[1]="VERTICAL"]=1,o[e[2]="HORIZONTAL"]=2,o})(),t.Justify=(function(){const e={},o=Object.create(e);return o[e[0]="JUSTIFY_UNDEFINED"]=0,o[e[1]="JUSTIFY_START"]=1,o[e[2]="JUSTIFY_END"]=2,o[e[3]="JUSTIFY_CENTER"]=3,o[e[4]="SPACE_BETWEEN"]=4,o})(),t.Align=(function(){const e={},o=Object.create(e);return o[e[0]="ALIGN_UNDEFINED"]=0,o[e[1]="ALIGN_START"]=1,o[e[2]="ALIGN_END"]=2,o[e[3]="ALIGN_CENTER"]=3,o[e[4]="STRETCH"]=4,o})(),t})(),n.Column=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.weight=0,t.prototype.verticalAlignment=0,t.prototype.showBorder=!1,t.prototype.gapConfig=null;let e;return Object.defineProperty(t.prototype,"_gapConfig",{get:$util.oneOfGetter(e=["gapConfig"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.weight!=null&&Object.hasOwnProperty.call(d,"weight")&&p.uint32(9).double(d.weight),d.verticalAlignment!=null&&Object.hasOwnProperty.call(d,"verticalAlignment")&&p.uint32(24).int32(d.verticalAlignment),d.showBorder!=null&&Object.hasOwnProperty.call(d,"showBorder")&&p.uint32(32).bool(d.showBorder),d.gapConfig!=null&&Object.hasOwnProperty.call(d,"gapConfig")&&$root.streamlit.GapConfig.encode(d.gapConfig,p.uint32(42).fork()).ldelim(),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.Block.Column;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.weight=d.double();break}case 3:{E.verticalAlignment=d.int32();break}case 4:{E.showBorder=d.bool();break}case 5:{E.gapConfig=$root.streamlit.GapConfig.decode(d,d.uint32());break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.Block.Column)return d;let p=new $root.Block.Column;switch(d.weight!=null&&(p.weight=Number(d.weight)),d.verticalAlignment){default:if(typeof d.verticalAlignment=="number"){p.verticalAlignment=d.verticalAlignment;break}break;case"TOP":case 0:p.verticalAlignment=0;break;case"CENTER":case 1:p.verticalAlignment=1;break;case"BOTTOM":case 2:p.verticalAlignment=2;break}if(d.showBorder!=null&&(p.showBorder=!!d.showBorder),d.gapConfig!=null){if(typeof d.gapConfig!="object")throw TypeError(".Block.Column.gapConfig: object expected");p.gapConfig=$root.streamlit.GapConfig.fromObject(d.gapConfig)}return p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.weight=0,h.verticalAlignment=p.enums===String?"TOP":0,h.showBorder=!1),d.weight!=null&&d.hasOwnProperty("weight")&&(h.weight=p.json&&!isFinite(d.weight)?String(d.weight):d.weight),d.verticalAlignment!=null&&d.hasOwnProperty("verticalAlignment")&&(h.verticalAlignment=p.enums===String?$root.Block.Column.VerticalAlignment[d.verticalAlignment]===void 0?d.verticalAlignment:$root.Block.Column.VerticalAlignment[d.verticalAlignment]:d.verticalAlignment),d.showBorder!=null&&d.hasOwnProperty("showBorder")&&(h.showBorder=d.showBorder),d.gapConfig!=null&&d.hasOwnProperty("gapConfig")&&(h.gapConfig=$root.streamlit.Ga
18pConfig.toObject(d.gapConfig,p),p.oneofs&&(h._gapConfig="gapConfig")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Column"},t.VerticalAlignment=(function(){const o={},d=Object.create(o);return d[o[0]="TOP"]=0,d[o[1]="CENTER"]=1,d[o[2]="BOTTOM"]=2,d})(),t})(),n.Expandable=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.label="",t.prototype.expanded=null,t.prototype.icon="",t.prototype.id=null;let e;return Object.defineProperty(t.prototype,"_expanded",{get:$util.oneOfGetter(e=["expanded"]),set:$util.oneOfSetter(e)}),Object.defineProperty(t.prototype,"_id",{get:$util.oneOfGetter(e=["id"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.label!=null&&Object.hasOwnProperty.call(d,"label")&&p.uint32(10).string(d.label),d.expanded!=null&&Object.hasOwnProperty.call(d,"expanded")&&p.uint32(16).bool(d.expanded),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(26).string(d.icon),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(34).string(d.id),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.Block.Expandable;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.label=d.string();break}case 2:{E.expanded=d.bool();break}case 3:{E.icon=d.string();break}case 4:{E.id=d.string();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.Block.Expandable)return d;let p=new $root.Block.Expandable;return d.label!=null&&(p.label=String(d.label)),d.expanded!=null&&(p.expanded=!!d.expanded),d.icon!=null&&(p.icon=String(d.icon)),d.id!=null&&(p.id=String(d.id)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.label="",h.icon=""),d.label!=null&&d.hasOwnProperty("label")&&(h.label=d.label),d.expanded!=null&&d.hasOwnProperty("expanded")&&(h.expanded=d.expanded,p.oneofs&&(h._expanded="expanded")),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id,p.oneofs&&(h._id="id")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Expandable"},t})(),n.Dialog=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.title="",t.prototype.dismissible=!1,t.prototype.width=0,t.prototype.isOpen=null,t.prototype.id="",t.prototype.icon="";let e;return Object.defineProperty(t.prototype,"_isOpen",{get:$util.oneOfGetter(e=["isOpen"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.title!=null&&Object.hasOwnProperty.call(d,"title")&&p.uint32(10).string(d.title),d.dismissible!=null&&Object.hasOwnProperty.call(d,"dismissible")&&p.uint32(16).bool(d.dismissible),d.width!=null&&Object.hasOwnProperty.call(d,"width")&&p.uint32(24).int32(d.width),d.isOpen!=null&&Object.hasOwnProperty.call(d,"isOpen")&&p.uint32(32).bool(d.isOpen),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(42).string(d.id),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(50).string(d.icon),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.Block.Dialog;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.title=d.string();break}case 2:{E.dismissible=d.bool();break}case 3:{E.width=d.int32();break}case 4:{E.isOpen=d.bool();break}case 5:{E.id=d.string();break}case 6:{E.icon=d.string();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.Block.Dialog)return d;let p=new $root.Block.Dialog;switch(d.title!=null&&(p.title=String(d.title)),d.dismissible!=null&&(p.dismissible=!!d.dismissible),d.width){default:if(typeof d.width=="number"){p.width=d.width;break}break;case"SMALL":case 0:p.width=0;break;case"LARGE":case 1:p.width=1;break;case"MEDIUM":case 2:p.width=2;break}return d.isOpen!=null&&(p.isOpen=!!d.isOpen),d.id!=null&&(p.id=String(d.id)),d.icon!=null&&(p.icon=String(d.icon)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.title="",h.dismissible=!1,h.width=p.enums===String?"SMALL":0,h.id="",h.icon=""),d.title!=null&&d.hasOwnProperty("title")&&(h.title=d.title),d.dismissible!=null&&d.hasOwnProperty("dism
18issible")&&(h.dismissible=d.dismissible),d.width!=null&&d.hasOwnProperty("width")&&(h.width=p.enums===String?$root.Block.Dialog.DialogWidth[d.width]===void 0?d.width:$root.Block.Dialog.DialogWidth[d.width]:d.width),d.isOpen!=null&&d.hasOwnProperty("isOpen")&&(h.isOpen=d.isOpen,p.oneofs&&(h._isOpen="isOpen")),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Dialog"},t.DialogWidth=(function(){const o={},d=Object.create(o);return d[o[0]="SMALL"]=0,d[o[1]="LARGE"]=1,d[o[2]="MEDIUM"]=2,d})(),t})(),n.Form=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.formId="",t.prototype.clearOnSubmit=!1,t.prototype.border=!1,t.prototype.enterToSubmit=!1,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.formId!=null&&Object.hasOwnProperty.call(o,"formId")&&d.uint32(10).string(o.formId),o.clearOnSubmit!=null&&Object.hasOwnProperty.call(o,"clearOnSubmit")&&d.uint32(16).bool(o.clearOnSubmit),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(24).bool(o.border),o.enterToSubmit!=null&&Object.hasOwnProperty.call(o,"enterToSubmit")&&d.uint32(32).bool(o.enterToSubmit),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Form;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.formId=o.string();break}case 2:{y.clearOnSubmit=o.bool();break}case 3:{y.border=o.bool();break}case 4:{y.enterToSubmit=o.bool();break}default:o.skipType(E&7);break}}return y},t.fromObject=function(o){if(o instanceof $root.Block.Form)return o;let d=new $root.Block.Form;return o.formId!=null&&(d.formId=String(o.formId)),o.clearOnSubmit!=null&&(d.clearOnSubmit=!!o.clearOnSubmit),o.border!=null&&(d.border=!!o.border),o.enterToSubmit!=null&&(d.enterToSubmit=!!o.enterToSubmit),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.formId="",p.clearOnSubmit=!1,p.border=!1,p.enterToSubmit=!1),o.formId!=null&&o.hasOwnProperty("formId")&&(p.formId=o.formId),o.clearOnSubmit!=null&&o.hasOwnProperty("clearOnSubmit")&&(p.clearOnSubmit=o.clearOnSubmit),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.enterToSubmit!=null&&o.hasOwnProperty("enterToSubmit")&&(p.enterToSubmit=o.enterToSubmit),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Form"},t})(),n.TabContainer=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.defaultTabIndex=0,t.prototype.id=null;let e;return Object.defineProperty(t.prototype,"_id",{get:$util.oneOfGetter(e=["id"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.defaultTabIndex!=null&&Object.hasOwnProperty.call(d,"defaultTabIndex")&&p.uint32(8).int32(d.defaultTabIndex),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(18).string(d.id),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.Block.TabContainer;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.defaultTabIndex=d.int32();break}case 2:{E.id=d.string();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.Block.TabContainer)return d;let p=new $root.Block.TabContainer;return d.defaultTabIndex!=null&&(p.defaultTabIndex=d.defaultTabIndex|0),d.id!=null&&(p.id=String(d.id)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.defaultTabIndex=0),d.defaultTabIndex!=null&&d.hasOwnProperty("defaultTabIndex")&&(h.defaultTabIndex=d.defaultTabIndex),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id,p.oneofs&&(h._id="id")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.TabContainer"},t})(),n.Tab=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.label="",t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Tab;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.label=o.string();break}default:o.skipType(E&7);break}}return y}
18,t.fromObject=function(o){if(o instanceof $root.Block.Tab)return o;let d=new $root.Block.Tab;return o.label!=null&&(d.label=String(o.label)),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Tab"},t})(),n.Popover=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.label="",t.prototype.help="",t.prototype.disabled=!1,t.prototype.icon="",t.prototype.type="",t.prototype.open=null,t.prototype.id=null;let e;return Object.defineProperty(t.prototype,"_open",{get:$util.oneOfGetter(e=["open"]),set:$util.oneOfSetter(e)}),Object.defineProperty(t.prototype,"_id",{get:$util.oneOfGetter(e=["id"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.label!=null&&Object.hasOwnProperty.call(d,"label")&&p.uint32(10).string(d.label),d.help!=null&&Object.hasOwnProperty.call(d,"help")&&p.uint32(26).string(d.help),d.disabled!=null&&Object.hasOwnProperty.call(d,"disabled")&&p.uint32(32).bool(d.disabled),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(42).string(d.icon),d.type!=null&&Object.hasOwnProperty.call(d,"type")&&p.uint32(50).string(d.type),d.open!=null&&Object.hasOwnProperty.call(d,"open")&&p.uint32(56).bool(d.open),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(66).string(d.id),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.Block.Popover;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.label=d.string();break}case 3:{E.help=d.string();break}case 4:{E.disabled=d.bool();break}case 5:{E.icon=d.string();break}case 6:{E.type=d.string();break}case 7:{E.open=d.bool();break}case 8:{E.id=d.string();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.Block.Popover)return d;let p=new $root.Block.Popover;return d.label!=null&&(p.label=String(d.label)),d.help!=null&&(p.help=String(d.help)),d.disabled!=null&&(p.disabled=!!d.disabled),d.icon!=null&&(p.icon=String(d.icon)),d.type!=null&&(p.type=String(d.type)),d.open!=null&&(p.open=!!d.open),d.id!=null&&(p.id=String(d.id)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.label="",h.help="",h.disabled=!1,h.icon="",h.type=""),d.label!=null&&d.hasOwnProperty("label")&&(h.label=d.label),d.help!=null&&d.hasOwnProperty("help")&&(h.help=d.help),d.disabled!=null&&d.hasOwnProperty("disabled")&&(h.disabled=d.disabled),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),d.type!=null&&d.hasOwnProperty("type")&&(h.type=d.type),d.open!=null&&d.hasOwnProperty("open")&&(h.open=d.open,p.oneofs&&(h._open="open")),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id,p.oneofs&&(h._id="id")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Popover"},t})(),n.ChatMessage=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.name="",t.prototype.avatar="",t.prototype.avatarType=0,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(10).string(o.name),o.avatar!=null&&Object.hasOwnProperty.call(o,"avatar")&&d.uint32(18).string(o.avatar),o.avatarType!=null&&Object.hasOwnProperty.call(o,"avatarType")&&d.uint32(24).int32(o.avatarType),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.ChatMessage;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.name=o.string();break}case 2:{y.avatar=o.string();break}case 3:{y.avatarType=o.int32();break}default:o.skipType(E&7);break}}return y}
18,t.fromObject=function(o){if(o instanceof $root.Block.ChatMessage)return o;let d=new $root.Block.ChatMessage;switch(o.name!=null&&(d.name=String(o.name)),o.avatar!=null&&(d.avatar=String(o.avatar)),o.avatarType){default:if(typeof o.avatarType=="number"){d.avatarType=o.avatarType;break}break;case"IMAGE":case 0:d.avatarType=0;break;case"EMOJI":case 1:d.avatarType=1;break;case"ICON":case 2:d.avatarType=2;break}return d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.name="",p.avatar="",p.avatarType=d.enums===String?"IMAGE":0),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),o.avatar!=null&&o.hasOwnProperty("avatar")&&(p.avatar=o.avatar),o.avatarType!=null&&o.hasOwnProperty("avatarType")&&(p.avatarType=d.enums===String?$root.Block.ChatMessage.AvatarType[o.avatarType]===void 0?o.avatarType:$root.Block.ChatMessage.AvatarType[o.avatarType]:o.avatarType),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.ChatMessage"},t.AvatarType=(function(){const e={},o=Object.create(e);return o[e[0]="IMAGE"]=0,o[e[1]="EMOJI"]=1,o[e[2]="ICON"]=2,o})(),t})(),n})();$root.Button=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.isFormSubmitter=!1,n.prototype.type="",n.prototype.disabled=!1,n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&e.uint32(24).bool(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(42).string(t.formId),t.isFormSubmitter!=null&&Object.hasOwnProperty.call(t,"isFormSubmitter")&&e.uint32(48).bool(t.isFormSubmitter),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&e.uint32(58).string(t.type),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&e.uint32(64).bool(t.disabled),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&e.uint32(82).string(t.icon),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&e.uint32(90).string(t.shortcut),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&e.uint32(96).int32(t.iconPosition),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Button;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=t.string();break}case 2:{p.label=t.string();break}case 3:{p.default=t.bool();break}case 4:{p.help=t.string();break}case 5:{p.formId=t.string();break}case 6:{p.isFormSubmitter=t.bool();break}case 7:{p.type=t.string();break}case 8:{p.disabled=t.bool();break}case 10:{p.icon=t.string();break}case 11:{p.shortcut=t.string();break}case 12:{p.iconPosition=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Button)return t;let e=new $root.Button;switch(t.id!=null&&(e.id=String(t.id)),t.label!=null&&(e.label=String(t.label)),t.default!=null&&(e.default=!!t.default),t.help!=null&&(e.help=String(t.help)),t.formId!=null&&(e.formId=String(t.formId)),t.isFormSubmitter!=null&&(e.isFormSubmitter=!!t.isFormSubmitter),t.type!=null&&(e.type=String(t.type)),t.disabled!=null&&(e.disabled=!!t.disabled),t.icon!=null&&(e.icon=String(t.icon)),t.shortcut!=null&&(e.shortcut=String(t.shortcut)),t.iconPosition){default:if(typeof t.iconPosition=="number"){e.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:e.iconPosition=0;break;case"RIGHT":case 1:e.iconPosition=1;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.isFormSubmitter=!1,o.type="",o.disabled=!1,o.icon="",o.shortcut="",o.iconPosition=e.enums===String?"LEFT":0),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(o.default=t.default),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),t.isFormSubmitter!=null&&t.hasOwnProperty("isFormSubmitter")&&(o.isFormSubmitter=t.isFormSubmitter),t.type!=null&&t.hasOwnProperty("type")&&(o.type=t.type),t.disabled!=null&&t.hasOwnProperty("disabled")&&(o.disabled=t.disabled),t.icon!=null&&t.hasOwnProperty("icon")&&(o.icon=t.icon),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(o.shortcut=t.shortcut),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(o.iconPosition=e.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Button"},n})();const ButtonGroup$1=$root.ButtonGroup=(()=>{function n(t){if(this.options=[],this.default=[],this.rawValues=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.options=$util.emptyArray,n.prototype.default=$util.emptyArray,n.prototype.disabled=!1,n.prototype.clickMode=0,n.prototype.formId="",n.prototype.setValue=!1,n.prototype.style=0,n.prototype.label="",n.prototype.labelVisibility=null,n.prototype.help=null,n.prototype.rawValues=$util.emptyArray,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_help",{get:$util.oneOfGetter(i=["help"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.options!=null&&e.options.length)for(let d=0;d<e.options.length;++d)$root.ButtonGroup.Option.encode(e.options[d],o.uint32(18).fork()).ldelim();if(e.default!=null&&e.default.length){o.uint32(26).fork();for(let d=0;d<e.default.length;++d)o.uint32(e.default[d]);o.ldelim()}if(e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(32).bool(e.disabled),e.clickMode!=null&&Object.hasOwnProperty.call(e,"clickMode")&&o.uint32(40).int32(e.clickMode),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(64).bool(e.setValue),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&o.uint32(80).int32(e.style),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(90).string(e.label),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(98).fork()).ldelim(),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(106).string(e.help),e.rawValues!=null&&e.rawValues.length)for(let d=0;d<e.rawValues.length;++d)o.uint32(114).string(e.rawValues[d]);return e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(122).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ButtonGroup;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.options&&h.options.length||(h.options=[]),h.options.push($root.ButtonGroup.Option.decode(e,e.uint32()));break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.default.push(e.uint32())}else h.default.push(e.uint32());break}case 4:{h.disabled=e.bool();break}case 5:{h.clickMode=e.int32();break}case 6:{h.formId=e.string();break}case 8:{h.setValue=e.bool();break}case 10:{h.style=e.int32();break}case 11:{h.label=e.string();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 13:{h.help=e.string();break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(e.string());break}case 15:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ButtonGroup)return e;let o=new $root.ButtonGroup;if(e.id!=null&&(o.id=String(e.id)),e.options){if(!Array.isArray(e.options))throw TypeError(".ButtonGroup.options: array expected");o.options=[];for(let d=0;d<e.options.length;
18++d){if(typeof e.options[d]!="object")throw TypeError(".ButtonGroup.options: object expected");o.options[d]=$root.ButtonGroup.Option.fromObject(e.options[d])}}if(e.default){if(!Array.isArray(e.default))throw TypeError(".ButtonGroup.default: array expected");o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]>>>0}switch(e.disabled!=null&&(o.disabled=!!e.disabled),e.clickMode){default:if(typeof e.clickMode=="number"){o.clickMode=e.clickMode;break}break;case"SINGLE_SELECT":case 0:o.clickMode=0;break;case"MULTI_SELECT":case 1:o.clickMode=1;break}switch(e.formId!=null&&(o.formId=String(e.formId)),e.setValue!=null&&(o.setValue=!!e.setValue),e.style){default:if(typeof e.style=="number"){o.style=e.style;break}break;case"SEGMENTED_CONTROL":case 0:o.style=0;break;case"PILLS":case 1:o.style=1;break}if(e.label!=null&&(o.label=String(e.label)),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}if(e.help!=null&&(o.help=String(e.help)),e.rawValues){if(!Array.isArray(e.rawValues))throw TypeError(".ButtonGroup.rawValues: array expected");o.rawValues=[];for(let d=0;d<e.rawValues.length;++d)o.rawValues[d]=String(e.rawValues[d])}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.default=[],d.rawValues=[]),o.defaults&&(d.id="",d.disabled=!1,d.clickMode=o.enums===String?"SINGLE_SELECT":0,d.formId="",d.setValue=!1,d.style=o.enums===String?"SEGMENTED_CONTROL":0,d.label="",d.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.options&&e.options.length){d.options=[];for(let p=0;p<e.options.length;++p)d.options[p]=$root.ButtonGroup.Option.toObject(e.options[p],o)}if(e.default&&e.default.length){d.default=[];for(let p=0;p<e.default.length;++p)d.default[p]=e.default[p]}if(e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.clickMode!=null&&e.hasOwnProperty("clickMode")&&(d.clickMode=o.enums===String?$root.ButtonGroup.ClickMode[e.clickMode]===void 0?e.clickMode:$root.ButtonGroup.ClickMode[e.clickMode]:e.clickMode),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.style!=null&&e.hasOwnProperty("style")&&(d.style=o.enums===String?$root.ButtonGroup.Style[e.style]===void 0?e.style:$root.ButtonGroup.Style[e.style]:e.style),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help,o.oneofs&&(d._help="help")),e.rawValues&&e.rawValues.length){d.rawValues=[];for(let p=0;p<e.rawValues.length;++p)d.rawValues[p]=e.rawValues[p]}return e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ButtonGroup"},n.ClickMode=(function(){const t={},e=Object.create(t);return e[t[0]="SINGLE_SELECT"]=0,e[t[1]="MULTI_SELECT"]=1,e})(),n.Option=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.content="",t.prototype.contentIcon=null;let e;return Object.defineProperty(t.prototype,"_contentIcon",{get:$util.oneOfGetter(e=["contentIcon"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.content!=null&&Object.hasOwnProperty.call(d,"content")&&p.uint32(10).string(d.content),d.contentIcon!=null&&Object.hasOwnProperty.call(d,"contentIcon")&&p.uint32(26).string(d.contentIcon),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.ButtonGroup.Option;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.content=d.string();break}case 3:{E.contentIcon=d.string();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.ButtonGroup.Option)return d;let p=new $root.ButtonGroup.Option;
18return d.content!=null&&(p.content=String(d.content)),d.contentIcon!=null&&(p.contentIcon=String(d.contentIcon)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.content=""),d.content!=null&&d.hasOwnProperty("content")&&(h.content=d.content),d.contentIcon!=null&&d.hasOwnProperty("contentIcon")&&(h.contentIcon=d.contentIcon,p.oneofs&&(h._contentIcon="contentIcon")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/ButtonGroup.Option"},t})(),n.Style=(function(){const t={},e=Object.create(t);return e[t[0]="SEGMENTED_CONTROL"]=0,e[t[1]="PILLS"]=1,e})(),n})();$root.CameraInput=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(26).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(34).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&e.uint32(40).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,e.uint32(50).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.CameraInput;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=t.string();break}case 2:{p.label=t.string();break}case 3:{p.help=t.string();break}case 4:{p.formId=t.string();break}case 5:{p.disabled=t.bool();break}case 6:{p.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.CameraInput)return t;let e=new $root.CameraInput;if(t.id!=null&&(e.id=String(t.id)),t.label!=null&&(e.label=String(t.label)),t.help!=null&&(e.help=String(t.help)),t.formId!=null&&(e.formId=String(t.formId)),t.disabled!=null&&(e.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");e.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.id="",o.label="",o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(o.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/CameraInput"},n})();const ChatInput$1=$root.ChatInput=(()=>{function n(t){if(this.fileType=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.placeholder="",n.prototype.maxChars=0,n.prototype.disabled=!1,n.prototype.value="",n.prototype.setValue=!1,n.prototype.default="",n.prototype.acceptFile=0,n.prototype.fileType=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.acceptAudio=!1,n.prototype.audioSampleRate=null;let i;return Object.defineProperty(n.prototype,"_audioSampleRate",{get:$util.oneOfGetter(i=["audioSampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(18).string(e.placeholder),e.maxChars!=null&&Object.hasOwnProperty.call(e,"maxChars")&&o.uint32(24).uint32(e.maxChars),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(32).bool(e.disabled),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(42).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(48).bool(e.setValue),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(58).string(e.default),e.acceptFile!=null&&Object.hasOwnProperty.call(e,"acceptFile")&&o.uint32(72).int32(e.acceptFile),e.fileType!=null&&e.fileType.length)for(let d=0;d<e.fileType.length;++d)o.uint32(82).string(e.fileType[d]);return e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&o.uint32(88).int32(e.maxUploadSizeMb),e.acceptAudio!=null&&Object.hasOwnProperty.call(e,"acceptAudio")&&o.uint32(96).bool(e.acceptAudio),e.audioSampleRate!=null&&Object.hasOwnProperty.call(e,"audioSampleRate")&&o.uint32(104).int32(e.audioSampleRate),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ChatInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.placeholder=e.string();break}case 3:{h.maxChars=e.uint32();break}case 4:{h.disabled=e.bool();break}case 5:{h.value=e.string();break}case 6:{h.setValue=e.bool();break}case 7:{h.default=e.string();break}case 9:{h.acceptFile=e.int32();break}case 10:{h.fileType&&h.fileType.length||(h.fileType=[]),h.fileType.push(e.string());break}case 11:{h.maxUploadSizeMb=e.int32();break}case 12:{h.acceptAudio=e.bool();break}case 13:{h.audioSampleRate=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ChatInput)return e;let o=new $root.ChatInput;switch(e.id!=null&&(o.id=String(e.id)),e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.maxChars!=null&&(o.maxChars=e.maxChars>>>0),e.disabled!=null&&(o.disabled=!!e.disabled),e.value!=null&&(o.value=String(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.default!=null&&(o.default=String(e.default)),e.acceptFile){default:if(typeof e.acceptFile=="number"){o.acceptFile=e.acceptFile;break}break;case"NONE":case 0:o.acceptFile=0;break;case"SINGLE":case 1:o.acceptFile=1;break;case"MULTIPLE":case 2:o.acceptFile=2;break;case"DIRECTORY":case 3:o.acceptFile=3;break}if(e.fileType){if(!Array.isArray(e.fileType))throw TypeError(".ChatInput.fileType: array expected");o.fileType=[];for(let d=0;d<e.fileType.length;++d)o.fileType[d]=String(e.fileType[d])}return e.maxUploadSizeMb!=null&&(o.maxUploadSizeMb=e.maxUploadSizeMb|0),e.acceptAudio!=null&&(o.acceptAudio=!!e.acceptAudio),e.audioSampleRate!=null&&(o.audioSampleRate=e.audioSampleRate|0),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fileType=[]),o.defaults&&(d.id="",d.placeholder="",d.maxChars=0,d.disabled=!1,d.value="",d.setValue=!1,d.default="",d.acceptFile=o.enums===String?"NONE":0,d.maxUploadSizeMb=0,d.acceptAudio=!1),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.maxChars!=null&&e.hasOwnProperty("maxChars")&&(d.maxChars=e.maxChars),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default),e.acceptFile!=null&&e.hasOwnProperty("acceptFile")&&(d.acceptFile=o.enums===String?$root.ChatInput.AcceptFile[e.acceptFile]===void 0?e.acceptFile:$root.ChatInput.AcceptFile[e.acceptFile]:e.acceptFile),e.fileType&&e.fileType.length){d.fileType=[];for(let p=0;
18p<e.fileType.length;++p)d.fileType[p]=e.fileType[p]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty("maxUploadSizeMb")&&(d.maxUploadSizeMb=e.maxUploadSizeMb),e.acceptAudio!=null&&e.hasOwnProperty("acceptAudio")&&(d.acceptAudio=e.acceptAudio),e.audioSampleRate!=null&&e.hasOwnProperty("audioSampleRate")&&(d.audioSampleRate=e.audioSampleRate,o.oneofs&&(d._audioSampleRate="audioSampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ChatInput"},n.AcceptFile=(function(){const t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="SINGLE"]=1,e[t[2]="MULTIPLE"]=2,e[t[3]="DIRECTORY"]=3,e})(),n})(),Checkbox$1=$root.Checkbox=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=!1,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(80).int32(e.type),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(90).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Checkbox;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.bool();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.bool();break}case 7:{h.setValue=e.bool();break}case 8:{h.disabled=e.bool();break}case 9:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 10:{h.type=e.int32();break}case 11:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Checkbox)return e;let o=new $root.Checkbox;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=!!e.default),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=!!e.value),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"DEFAULT":case 0:o.type=0;break;case"TOGGLE":case 1:o.type=1;break}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.default=!1,d.help="",d.formId="",d.value=!1,d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.type=o.enums===String?"DEFAULT":0),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Checkbox.StyleType[e.type]===void 0?e.type:$root.Checkbox.StyleType[e.type]:e.type),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Checkbox"},n.StyleType=(function(){const t={},e=Object.create(t);return e[t[0]="DEFAULT"]=0,e[t[1]="TOGGLE"]=1,e})(),n})();$root.Code=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.codeText="",n.prototype.language="",n.prototype.showLineNumbers=!1,n.prototype.wrapLines=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.codeText!=null&&Object.hasOwnProperty.call(t,"codeText")&&e.uint32(10).string(t.codeText),t.language!=null&&Object.hasOwnProperty.call(t,"language")&&e.uint32(18).string(t.language),t.showLineNumbers!=null&&Object.hasOwnProperty.call(t,"showLineNumbers")&&e.uint32(24).bool(t.showLineNumbers),t.wrapLines!=null&&Object.hasOwnProperty.call(t,"wrapLines")&&e.uint32(32).bool(t.wrapLines),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Code;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.codeText=t.string();break}case 2:{p.language=t.string();break}case 3:{p.showLineNumbers=t.bool();break}case 4:{p.wrapLines=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Code)return t;let e=new $root.Code;return t.codeText!=null&&(e.codeText=String(t.codeText)),t.language!=null&&(e.language=String(t.language)),t.showLineNumbers!=null&&(e.showLineNumbers=!!t.showLineNumbers),t.wrapLines!=null&&(e.wrapLines=!!t.wrapLines),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.codeText="",o.language="",o.showLineNumbers=!1,o.wrapLines=!1),t.codeText!=null&&t.hasOwnProperty("codeText")&&(o.codeText=t.codeText),t.language!=null&&t.hasOwnProperty("language")&&(o.language=t.language),t.showLineNumbers!=null&&t.hasOwnProperty("showLineNumbers")&&(o.showLineNumbers=t.showLineNumbers),t.wrapLines!=null&&t.hasOwnProperty("wrapLines")&&(o.wrapLines=t.wrapLines),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Code"},n})();$root.ColorPicker=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default="",n.prototype.help="",n.prototype.formId="",n.prototype.value="",n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(74).fork()).ldelim(),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(82).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ColorPicker;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.string();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.string();break}case 7:{h.setValue=e.bool();break}case 8:{h.disabled=e.bool();break}case 9:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 10:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ColorPicker)return e;let o=new $root.ColorPicker;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=String(e.default)),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=String(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.default="",d.help="",d.formId="",d.value="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ColorPicker"},n})();const Dataframe=$root.Dataframe=(()=>{function n(t){if(this.columnOrder=[],this.selectionMode=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.arrowData=null,n.prototype.id="",n.prototype.columns="",n.prototype.editingMode=0,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.columnOrder=$util.emptyArray,n.prototype.selectionMode=$util.emptyArray,n.prototype.rowHeight=null,n.prototype.placeholder=null;let i;return Object.defineProperty(n.prototype,"_rowHeight",{get:$util.oneOfGetter(i=["rowHeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_placeholder",{get:$util.oneOfGetter(i=["placeholder"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.arrowData!=null&&Object.hasOwnProperty.call(e,"arrowData")&&$root.ArrowData.encode(e.arrowData,o.uint32(10).fork()).ldelim(),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(18).string(e.id),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&o.uint32(26).string(e.columns),e.editingMode!=null&&Object.hasOwnProperty.call(e,"editingMode")&&o.uint32(32).int32(e.editingMode),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(40).bool(e.disabled),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.columnOrder!=null&&e.columnOrder.length)for(let d=0;d<e.columnOrder.length;++d)o.uint32(58).string(e.columnOrder[d]);if(e.selectionMode!=null&&e.selectionMode.length){o.uint32(66).fork();for(let d=0;d<e.selectionMode.length;++d)o.int32(e.selectionMode[d]);o.ldelim()}return e.rowHeight!=null&&Object.hasOwnProperty.call(e,"rowHeight")&&o.uint32(72).uint32(e.rowHeight),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(82).string(e.placeholder),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Dataframe;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.arrowData=$root.ArrowData.decode(e,e.uint32());break}case 2:{h.id=e.string();break}case 3:{h.columns=e.string();break}case 4:{h.editingMode=e.int32();break}case 5:{h.disabled=e.bool();break}case 6:{h.formId=e.string();break}case 7:{h.columnOrder&&h.columnOrder.length||(h.columnOrder=[]),h.columnOrder.push(e.string());break}case 8:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.selectionMode.push(e.int32())}else h.selectionMode.push(e.int32());break}case 9:{h.rowHeight=e.uint32();break}case 10:{h.placeholder=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Dataframe)return e;let o=new $root.Dataframe;if(e.arrowData!=null){if(typeof e.arrowData!="object")throw TypeError(".Dataframe.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(e.arrowData)}switch(e.id!=null&&(o.id=String(e.id)),e.columns!=null&&(o.columns=String(e.columns)),e.editingMode){default:if(typeof e.editingMode=="number"){o.editingMode=e.editingMode;break}break;case"READ_ONLY":case 0:o.editingMode=0;break;case"FIXED":case 1:o.editingMode=1;break;case"DYNAMIC":case 2:o.editingMode=2;break;case"ADD_ONLY":case 3:o.editingMode=3;break;case"DELETE_ONLY":case 4:o.editingMode=4;break}if(e.disabled!=null&&(o.disabled=!!e.disabled),e.formId!=null&&(o.formId=String(e.formId)),e.columnOrder){if(!Array.isArray(e.columnOrder))throw TypeError(".Dataframe.columnOrder: array expected");o.columnOrder=[];for(let d=0;d<e.columnOrder.length;++d)o.columnOrder[d]=String(e.columnOrder[d])}if(e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".Dataframe.selectionMode: array expected");o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)switch(e.selectionMode[d]){default:if(typeof e.selectionMode[d]=="number"){o.selectionMode[d]=e.selectionMode[d];break}case"SINGLE_ROW":case 0:o.selectionMode[d]=0;break;case"MULTI_ROW":case 1:o.selectionMode[d]=1;break;case"SINGLE_COLUMN":case 2:o.selectionMode[d]=2;break;case"MULTI_COLUMN":case 3:o.selectionMode[d]=3;break;case"SINGLE_CELL":case 4:o.selectionMode[d]=4;break;case"MULTI_CELL":case 5:o.selectionMode[d]=5;break}}return e.rowHeight!=null&&(o.rowHeight=e.rowHeight>>>0),e.placeholder!=null&&(o.placeholder=String(e.placeholder)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.columnOrder=[],d.selectionMode=[]),o.defaults&&(d.arrowData=null,d.id="",d.columns="",d.editingMode=o.enums===String?"READ_ONLY":0,d.disabled=!1,d.formId=""),e.arrowData!=null&&e.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(e.arrowData,o)),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.columns!=null&&e.hasOwnProperty("columns")&&(d.columns=e.columns),e.editingMode!=null&&e.hasOwnProperty("editingMode")&&(d.editingMode=o.enums===String?$root.Dataframe.EditingMode[e.editingMode]===void 0?e.editingMode:$root.Dataframe.EditingMode[e.editingMode]:e.editingMode),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.columnOrder&&e.columnOrder.length){d.columnOrder=[];for(let p=0;p<e.columnOrder.length;++p)d.columnOrder[p]=e.columnOrder[p]}if(e.selectionMode&&e.selectionMode.length){d.selectionMode=[];for(let p=0;p<e.selectionMode.length;++p)d.selectionMode[p]=o.enums===String?$root.Dataframe.SelectionMode[e.selectionMode[p]]===void 0?e.selectionMode[p]:$root.Dataframe.SelectionMode[e.selectionMode[p]]:e.selectionMode[p]}return e.rowHeight!=null&&e.hasOwnProperty("rowHeight")&&(d.rowHeight=e.rowHeight,o.oneofs&&(d._rowHeight="rowHeight")),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder,o.oneofs&&(d._placeholder="placeholder")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Dataframe"},n.EditingMode=(function(){const t={},e=Object.create(t);return e[t[0]="READ_ONLY"]=0,e[t[1]="FIXED"]=1,e[t[2]="DYNAMIC"]=2,e[t[3]="ADD_ONLY"]=3,e[t[4]="DELETE_ONLY"]=4,e})(),n.SelectionMode=(function(){const t={},e=Object.create(t);return e[t[0]="SINGLE_ROW"]=0,e[t[1]="MULTI_ROW"]=1,e[t[2]="SINGLE_COLUMN"]=2,e[t[3]="MULTI_COLUMN"]=3,e[t[4]="SINGLE_CELL"]=4,e[t[5]="MULTI_CELL"]=5,e})(),n})();$root.DateInput=(()=>{function n(t){if(this.default=[],this.value=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.isRange=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let d=0;d<e.default.length;++d)o.uint32(26).string(e.default[d]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&o.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&o.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&o.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let d=0;d<e.value.length;++d)o.uint32(74).string(e.value[d]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&o.uint32(106).string(e.format),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(114).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.DateInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default&&h.default.length||(h.default=[]),h.default.push(e.string());break}case 4:{h.min=e.string();break}case 5:{h.max=e.string();break}case 6:{h.isRange=e.bool();break}case 7:{h.help=e.string();break}case 8:{h.formId=e.string();break}case 9:{h.value&&h.value.length||(h.value=[]),h.value.push(e.string());break}case 10:{h.setValue=e.bool();break}case 11:{h.disabled=e.bool();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 13:{h.format=e.string();break}case 14:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DateInput)return e;let o=new $root.DateInput;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=String(e.default[d])}if(e.min!=null&&(o.min=String(e.min)),e.max!=null&&(o.max=String(e.max)),e.isRange!=null&&(o.isRange=!!e.isRange),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=String(e.value[d])}if(e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(o.format=String(e.format)),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.value=[]),o.defaults&&(d.id="",d.label="",d.min="",d.max="",d.isRange=!1,d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.format=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default&&e.default.length){d.default=[];for(let p=0;p<e.default.length;++p)d.default[p]=e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(d.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(d.max=e.max),e.isRange!=null&&e.hasOwnProperty("isRange")&&(d.isRange=e.isRange),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value&&e.value.length){d.value=[];for(let p=0;p<e.value.length;++p)d.value[p]=e.value[p]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.format!=null&&e.hasOwnProperty("format")&&(d.format=e.format),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateInput"},n})();$root.DateTimeInput=(()=>{function n(t){if(this.default=[],this.value=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.isRange=!1,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let d=0;d<e.default.length;++d)o.uint32(26).string(e.default[d]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&o.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&o.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let d=0;d<e.value.length;++d)o.uint32(66).string(e.value[d]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&o.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&o.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&o.uint32(112).bool(e.isRange),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(122).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.DateTimeInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default&&h.default.length||(h.default=[]),h.default.push(e.string());break}case 4:{h.min=e.string();break}case 5:{h.max=e.string();break}case 6:{h.help=e.string();break}case 7:{h.formId=e.string();break}case 8:{h.value&&h.value.length||(h.value=[]),h.value.push(e.string());break}case 9:{h.setValue=e.bool();break}case 10:{h.disabled=e.bool();break}case 11:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 12:{h.format=e.string();break}case 13:{h.step=e.int64();break}case 14:{h.isRange=e.bool();break}case 15:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DateTimeInput)return e;let o=new $root.DateTimeInput;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateTimeInput.default: array expected");o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=String(e.default[d])}if(e.min!=null&&(o.min=String(e.min)),e.max!=null&&(o.max=String(e.max)),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateTimeInput.value: array expected");o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=String(e.value[d])}if(e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateTimeInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(o.format=String(e.format)),e.step!=null&&($util.Long?(o.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?o.step=parseInt(e.step,10):typeof e.step=="number"?o.step=e.step:typeof e.step=="object"&&(o.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&(o.isRange=!!e.isRange),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.value=[]),o.defaults){if(d.id="",d.label="",d.min="",d.max="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.format="",$util.Long){let p=new $util.Long(0,0,!1);d.step=o.longs===String?p.toString():o.longs===Number?p.toNumber():p}else d.step=o.longs===String?"0":0;d.isRange=!1}if(e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default&&e.default.length){d.default=[];for(let p=0;p<e.default.length;++p)d.default[p]=e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(d.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(d.max=e.max),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value&&e.value.length){d.value=[];for(let p=0;p<e.value.length;++p)d.value[p]=e.value[p]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.format!=null&&e.hasOwnProperty("format")&&(d.format=e.format),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?d.step=o.longs===String?String(e.step):e.step:d.step=o.longs===String?$util.Long.prototype.toString.call(e.step):o.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty("isRange")&&(d.isRange=e.isRange),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateTimeInput"},n})();const DeckGlJsonChart$1=$root.DeckGlJsonChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.json="",n.prototype.tooltip="",n.prototype.id="",n.prototype.mapboxToken="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&e.uint32(10).string(t.json),t.tooltip!=null&&Object.hasOwnProperty.call(t,"tooltip")&&e.uint32(18).string(t.tooltip),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(42).string(t.id),t.mapboxToken!=null&&Object.hasOwnProperty.call(t,"mapboxToken")&&e.uint32(50).string(t.mapboxToken),t.selectionMode!=null&&t.selectionMode.length){e.uint32(74).fork();for(let o=0;o<t.selectionMode.length;++o)e.int32(t.selectionMode[o]);e.ldelim()}return t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(82).string(t.formId),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.DeckGlJsonChart;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.json=t.string();break}case 2:{p.tooltip=t.string();break}case 5:{p.id=t.string();break}case 6:{p.mapboxToken=t.string();break}case 9:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.selectionMode.push(t.int32())}else p.selectionMode.push(t.int32());break}case 10:{p.formId=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.DeckGlJsonChart)return t;let e=new $root.DeckGlJsonChart;if(t.json!=null&&(e.json=String(t.json)),t.tooltip!=null&&(e.tooltip=String(t.tooltip)),t.id!=null&&(e.id=String(t.id)),t.mapboxToken!=null&&(e.mapboxToken=String(t.mapboxToken)),t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");e.selectionMode=[];for(let o=0;o<t.selectionMode.length;++o)switch(t.selectionMode[o]){default:if(typeof t.selectionMode[o]=="number"){e.selectionMode[o]=t.selectionMode[o];break}case"SINGLE_OBJECT":case 0:e.selectionMode[o]=0;break;case"MULTI_OBJECT":case 1:e.selectionMode[o]=1;break}}return t.formId!=null&&(e.formId=String(t.formId)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.selectionMode=[]),e.defaults&&(o.json="",o.tooltip="",o.id="",o.mapboxToken="",o.formId=""),t.json!=null&&t.hasOwnProperty("json")&&(o.json=t.json),t.tooltip!=null&&t.hasOwnProperty("tooltip")&&(o.tooltip=t.tooltip),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.mapboxToken!=null&&t.hasOwnProperty("mapboxToken")&&(o.mapboxToken=t.mapboxToken),t.selectionMode&&t.selectionMode.length){o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)o.selectionMode[d]=e.enums===String?$root.DeckGlJsonChart.SelectionMode[t.selectionMode[d]]===void 0?t.selectionMode[d]:$root.DeckGlJsonChart.SelectionMode[t.selectionMode[d]]:t.selectionMode[d]}return t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DeckGlJsonChart"},n.SelectionMode=(function(){const i={},t=Object.create(i);return t[i[0]="SINGLE_OBJECT"]=0,t[i[1]="MULTI_OBJECT"]=1,t})(),n})();$root.Delta=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.newElement=null,n.prototype.addBlock=null,n.prototype.newTransient=null,n.prototype.arrowAddRows=null,n.prototype.fragmentId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newElement","addBlock","newTransient","arrowAddRows"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.newElement!=null&&Object.hasOwnProperty.call(e,"newElement")&&$root.Element.encode(e.newElement,o.uint32(26).fork()).ldelim(),e.addBlock!=null&&Object.hasOwnProperty.call(e,"addBlock")&&$root.Block.encode(e.addBlock,o.uint32(50).fork()).ldelim(),e.arrowAddRows!=null&&Object.hasOwnProperty.call(e,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(e.arrowAddRows,o.uint32(58).fork()).ldelim(),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&o.uint32(66).string(e.fragmentId),e.newTransient!=null&&Object.hasOwnProperty.call(e,"newTransient")&&$root.Transient.encode(e.newTransient,o.uint32(74).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Delta;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 3:{h.newElement=$root.Element.decode(e,e.uint32());break}case 6:{h.addBlock=$root.Block.decode(e,e.uint32());break}case 9:{h.newTransient=$root.Transient.decode(e,e.uint32());break}case 7:{h.arrowAddRows=$root.ArrowNamedDataSet.decode(e,e.uint32());break}case 8:{h.fragmentId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Delta)return e;let o=new $root.Delta;if(e.newElement!=null){if(typeof e.newElement!="object")throw TypeError(".Delta.newElement: object expected");o.newElement=$root.Element.fromObject(e.newElement)}if(e.addBlock!=null){if(typeof e.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");o.addBlock=$root.Block.fromObject(e.addBlock)}if(e.newTransient!=null){if(typeof e.newTransient!="object")throw TypeError(".Delta.newTransient: object expected");o.newTransient=$root.Transient.fromObject(e.newTransient)}if(e.arrowAddRows!=null){if(typeof e.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");o.arrowAddRows=$root.ArrowNamedDataSet.fromObject(e.arrowAddRows)}return e.fragmentId!=null&&(o.fragmentId=String(e.fragmentId)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.fragmentId=""),e.newElement!=null&&e.hasOwnProperty("newElement")&&(d.newElement=$root.Element.toObject(e.newElement,o),o.oneofs&&(d.type="newElement")),e.addBlock!=null&&e.hasOwnProperty("addBlock")&&(d.addBlock=$root.Block.toObject(e.addBlock,o),o.oneofs&&(d.type="addBlock")),e.arrowAddRows!=null&&e.hasOwnProperty("arrowAddRows")&&(
18d.arrowAddRows=$root.ArrowNamedDataSet.toObject(e.arrowAddRows,o),o.oneofs&&(d.type="arrowAddRows")),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(d.fragmentId=e.fragmentId),e.newTransient!=null&&e.hasOwnProperty("newTransient")&&(d.newTransient=$root.Transient.toObject(e.newTransient,o),o.oneofs&&(d.type="newTransient")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Delta"},n})();const Element$1=$root.Element=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.heightConfig=null,n.prototype.widthConfig=null,n.prototype.textAlignmentConfig=null,n.prototype.alert=null,n.prototype.dataframe=null,n.prototype.table=null,n.prototype.vegaLiteChart=null,n.prototype.audio=null,n.prototype.audioInput=null,n.prototype.balloons=null,n.prototype.bidiComponent=null,n.prototype.button=null,n.prototype.buttonGroup=null,n.prototype.downloadButton=null,n.prototype.cameraInput=null,n.prototype.chatInput=null,n.prototype.checkbox=null,n.prototype.colorPicker=null,n.prototype.componentInstance=null,n.prototype.dateInput=null,n.prototype.deckGlJsonChart=null,n.prototype.helpInfo=null,n.prototype.empty=null,n.prototype.exception=null,n.prototype.favicon=null,n.prototype.feedback=null,n.prototype.fileUploader=null,n.prototype.graphvizChart=null,n.prototype.html=null,n.prototype.iframe=null,n.prototype.imgs=null,n.prototype.json=null,n.prototype.linkButton=null,n.prototype.markdown=null,n.prototype.metric=null,n.prototype.multiselect=null,n.prototype.numberInput=null,n.prototype.pageLink=null,n.prototype.plotlyChart=null,n.prototype.progress=null,n.prototype.radio=null,n.prototype.selectbox=null,n.prototype.skeleton=null,n.prototype.slider=null,n.prototype.snow=null,n.prototype.space=null,n.prototype.spinner=null,n.prototype.text=null,n.prototype.textArea=null,n.prototype.textInput=null,n.prototype.timeInput=null,n.prototype.dateTimeInput=null,n.prototype.toast=null,n.prototype.video=null,n.prototype.heading=null,n.prototype.code=null;let i;return Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_textAlignmentConfig",{get:$util.oneOfGetter(i=["textAlignmentConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["alert","dataframe","table","vegaLiteChart","audio","audioInput","balloons","bidiComponent","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dateInput","deckGlJsonChart","helpInfo","empty","exception","favicon","feedback","fileUploader","graphvizChart","html","iframe","imgs","json","linkButton","markdown","metric","multiselect","numberInput","pageLink","plotlyChart","progress","radio","selectbox","skeleton","slider","snow","space","spinner","text","textArea","textInput","timeInput","dateTimeInput","toast","video","heading","code"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&$root.Text.encode(e.text,o.uint32(10).fork()).ldelim(),e.empty!=null&&Object.hasOwnProperty.call(e,"empty")&&$root.Empty.encode(e.empty,o.uint32(18).fork()).ldelim(),e.progress!=null&&Object.hasOwnProperty.call(e,"progress")&&$root.Progress.encode(e.progress,o.uint32(42).fork()).ldelim(),e.imgs!=null&&Object.hasOwnProperty.call(e,"imgs")&&$root.ImageList.encode(e.imgs,o.uint32(50).fork()).ldelim(),e.helpInfo!=null&&Object.hasOwnProperty.call(e,"helpInfo")&&$root.Help.encode(e.helpInfo,o.uint32(58).fork()).ldelim(),e.exception!=null&&Object.hasOwnProperty.call(e,"exception")&&$root.Exception.encode(e.exception,o.uint32(66).fork()).ldelim(),e.balloons!=null&&Object.hasOwnProperty.call(e,"balloons")&&$root.Balloons.encode(e.balloons,o.uint32(98).fork()).ldelim(),e.audio!=null&&Object.hasOwnProperty.call(e,"audio")&&$root.Audio.encode(e.audio,o.uint32(106).fork()).ldelim(),e.video!=null&&Object.hasOwnProperty.call(e,"video")&&$root.Video.encode(e.video,o.uint32(114).fork()).ldelim(),e.plotlyChart!=null&&Object.hasOwnProperty.call(e,"plotlyChart")&&$root.PlotlyC
18hart.encode(e.plotlyChart,o.uint32(130).fork()).ldelim(),e.graphvizChart!=null&&Object.hasOwnProperty.call(e,"graphvizChart")&&$root.GraphVizChart.encode(e.graphvizChart,o.uint32(146).fork()).ldelim(),e.button!=null&&Object.hasOwnProperty.call(e,"button")&&$root.Button.encode(e.button,o.uint32(154).fork()).ldelim(),e.checkbox!=null&&Object.hasOwnProperty.call(e,"checkbox")&&$root.Checkbox.encode(e.checkbox,o.uint32(162).fork()).ldelim(),e.slider!=null&&Object.hasOwnProperty.call(e,"slider")&&$root.Slider.encode(e.slider,o.uint32(170).fork()).ldelim(),e.textArea!=null&&Object.hasOwnProperty.call(e,"textArea")&&$root.TextArea.encode(e.textArea,o.uint32(178).fork()).ldelim(),e.radio!=null&&Object.hasOwnProperty.call(e,"radio")&&$root.Radio.encode(e.radio,o.uint32(186).fork()).ldelim(),e.textInput!=null&&Object.hasOwnProperty.call(e,"textInput")&&$root.TextInput.encode(e.textInput,o.uint32(194).fork()).ldelim(),e.selectbox!=null&&Object.hasOwnProperty.call(e,"selectbox")&&$root.Selectbox.encode(e.selectbox,o.uint32(202).fork()).ldelim(),e.timeInput!=null&&Object.hasOwnProperty.call(e,"timeInput")&&$root.TimeInput.encode(e.timeInput,o.uint32(210).fork()).ldelim(),e.dateInput!=null&&Object.hasOwnProperty.call(e,"dateInput")&&$root.DateInput.encode(e.dateInput,o.uint32(218).fork()).ldelim(),e.multiselect!=null&&Object.hasOwnProperty.call(e,"multiselect")&&$root.MultiSelect.encode(e.multiselect,o.uint32(226).fork()).ldelim(),e.markdown!=null&&Object.hasOwnProperty.call(e,"markdown")&&$root.Markdown.encode(e.markdown,o.uint32(234).fork()).ldelim(),e.alert!=null&&Object.hasOwnProperty.call(e,"alert")&&$root.Alert.encode(e.alert,o.uint32(242).fork()).ldelim(),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&$root.Json.encode(e.json,o.uint32(250).fork()).ldelim(),e.numberInput!=null&&Object.hasOwnProperty.call(e,"numberInput")&&$root.NumberInput.encode(e.numberInput,o.uint32(258).fork()).ldelim(),e.fileUploader!=null&&Object.hasOwnProperty.call(e,"fileUploader")&&$root.FileUploader.encode(e.fileUploader,o.uint32(266).fork()).ldelim(),e.deckGlJsonChart!=null&&Object.hasOwnProperty.call(e,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(e.deckGlJsonChart,o.uint32(274).fork()).ldelim(),e.colorPicker!=null&&Object.hasOwnProperty.call(e,"colorPicker")&&$root.ColorPicker.encode(e.colorPicker,o.uint32(282).fork()).ldelim(),e.favicon!=null&&Object.hasOwnProperty.call(e,"favicon")&&$root.Favicon.encode(e.favicon,o.uint32(290).fork()).ldelim(),e.componentInstance!=null&&Object.hasOwnProperty.call(e,"componentInstance")&&$root.ComponentInstance.encode(e.componentInstance,o.uint32(298).fork()).ldelim(),e.iframe!=null&&Object.hasOwnProperty.call(e,"iframe")&&$root.IFrame.encode(e.iframe,o.uint32(306).fork()).ldelim(),e.table!=null&&Object.hasOwnProperty.call(e,"table")&&$root.Table.encode(e.table,o.uint32(314).fork()).ldelim(),e.dataframe!=null&&Object.hasOwnProperty.call(e,"dataframe")&&$root.Dataframe.encode(e.dataframe,o.uint32(322).fork()).ldelim(),e.vegaLiteChart!=null&&Object.hasOwnProperty.call(e,"vegaLiteChart")&&$root.VegaLiteChart.encode(e.vegaLiteChart,o.uint32(330).fork()).ldelim(),e.metric!=null&&Object.hasOwnProperty.call(e,"metric")&&$root.Metric.encode(e.metric,o.uint32(338).fork()).ldelim(),e.downloadButton!=null&&Object.hasOwnProperty.call(e,"downloadButton")&&$root.DownloadButton.encode(e.downloadButton,o.uint32(346).fork()).ldelim(),e.spinner!=null&&Object.hasOwnProperty.call(e,"spinner")&&$root.Spinner.encode(e.spinner,o.uint32(354).fork()).ldelim(),e.cameraInput!=null&&Object.hasOwnProperty.call(e,"cameraInput")&&$root.CameraInput.encode(e.cameraInput,o.uint32(362).fork()).ldelim(),e.snow!=null&&Object.hasOwnProperty.call(e,"snow")&&$root.Snow.encode(e.snow,o.uint32(370).fork()).ldelim(),e.heading!=null&&Object.hasOwnProperty.call(e,"heading")&&$root.Heading.encode(e.heading,o.uint32(378).fork()).ldelim(),e.code!=null&&Object.hasOwnProperty.call(e,"code")&&$root.Code.encode(e.code,o.uint32(386).fork()).ldelim(),e.chatInput!=null&&Object.hasOwnProperty.call(e,"chatInput")&&$root.ChatInput.encode(e.chatInput,o.uint32(394).fork()).ldelim(),e.toast!=null&&Object.hasOwnProperty.call(e,"toast")&&$root.Toast.encode(e.toast,o.uint32(402).fork()).ldelim(),e.linkButton!=null&&Object.hasOwnProperty.call(e,"linkButton")&&$root.LinkButton.encode(e.linkButton,o.uint32(410).fork()).ldelim(),e.skeleton!=null&&Object.hasOwnProperty.call(e,"skeleton")&&$root.Skeleton.encode(e.skeleton,o.uint32(418).fork()).ldelim(),e.pageLink!=null&&Object.hasOwnProperty.call(e,"pageLink")&&$root.PageLink.encode(e.pageLink,o.uint32(426).fork()).ldelim(),e.html!=null&&Object.hasOwnProperty.call(e,"html")&&$root.Html.encode(e.html,o.uint32(434).fork()).ldelim(),e.buttonGroup!=null&&Object.hasOwnProperty.call(e,"buttonGroup")&&$root.ButtonGroup.encode(e.buttonGroup,o.uint32(442).fork()).ldelim(),e.audioInput!=null&&Object.hasOwnProperty.call(e,"audioInput")&&$root.AudioInput.encode(e.audio
18Input,o.uint32(450).fork()).ldelim(),e.heightConfig!=null&&Object.hasOwnProperty.call(e,"heightConfig")&&$root.streamlit.HeightConfig.encode(e.heightConfig,o.uint32(458).fork()).ldelim(),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,o.uint32(466).fork()).ldelim(),e.bidiComponent!=null&&Object.hasOwnProperty.call(e,"bidiComponent")&&$root.BidiComponent.encode(e.bidiComponent,o.uint32(474).fork()).ldelim(),e.space!=null&&Object.hasOwnProperty.call(e,"space")&&$root.Space.encode(e.space,o.uint32(482).fork()).ldelim(),e.textAlignmentConfig!=null&&Object.hasOwnProperty.call(e,"textAlignmentConfig")&&$root.streamlit.TextAlignmentConfig.encode(e.textAlignmentConfig,o.uint32(490).fork()).ldelim(),e.dateTimeInput!=null&&Object.hasOwnProperty.call(e,"dateTimeInput")&&$root.DateTimeInput.encode(e.dateTimeInput,o.uint32(498).fork()).ldelim(),e.feedback!=null&&Object.hasOwnProperty.call(e,"feedback")&&$root.Feedback.encode(e.feedback,o.uint32(506).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Element;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 57:{h.heightConfig=$root.streamlit.HeightConfig.decode(e,e.uint32());break}case 58:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}case 61:{h.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.decode(e,e.uint32());break}case 30:{h.alert=$root.Alert.decode(e,e.uint32());break}case 40:{h.dataframe=$root.Dataframe.decode(e,e.uint32());break}case 39:{h.table=$root.Table.decode(e,e.uint32());break}case 41:{h.vegaLiteChart=$root.VegaLiteChart.decode(e,e.uint32());break}case 13:{h.audio=$root.Audio.decode(e,e.uint32());break}case 56:{h.audioInput=$root.AudioInput.decode(e,e.uint32());break}case 12:{h.balloons=$root.Balloons.decode(e,e.uint32());break}case 59:{h.bidiComponent=$root.BidiComponent.decode(e,e.uint32());break}case 19:{h.button=$root.Button.decode(e,e.uint32());break}case 55:{h.buttonGroup=$root.ButtonGroup.decode(e,e.uint32());break}case 43:{h.downloadButton=$root.DownloadButton.decode(e,e.uint32());break}case 45:{h.cameraInput=$root.CameraInput.decode(e,e.uint32());break}case 49:{h.chatInput=$root.ChatInput.decode(e,e.uint32());break}case 20:{h.checkbox=$root.Checkbox.decode(e,e.uint32());break}case 35:{h.colorPicker=$root.ColorPicker.decode(e,e.uint32());break}case 37:{h.componentInstance=$root.ComponentInstance.decode(e,e.uint32());break}case 27:{h.dateInput=$root.DateInput.decode(e,e.uint32());break}case 34:{h.deckGlJsonChart=$root.DeckGlJsonChart.decode(e,e.uint32());break}case 7:{h.helpInfo=$root.Help.decode(e,e.uint32());break}case 2:{h.empty=$root.Empty.decode(e,e.uint32());break}case 8:{h.exception=$root.Exception.decode(e,e.uint32());break}case 36:{h.favicon=$root.Favicon.decode(e,e.uint32());break}case 63:{h.feedback=$root.Feedback.decode(e,e.uint32());break}case 33:{h.fileUploader=$root.FileUploader.decode(e,e.uint32());break}case 18:{h.graphvizChart=$root.GraphVizChart.decode(e,e.uint32());break}case 54:{h.html=$root.Html.decode(e,e.uint32());break}case 38:{h.iframe=$root.IFrame.decode(e,e.uint32());break}case 6:{h.imgs=$root.ImageList.decode(e,e.uint32());break}case 31:{h.json=$root.Json.decode(e,e.uint32());break}case 51:{h.linkButton=$root.LinkButton.decode(e,e.uint32());break}case 29:{h.markdown=$root.Markdown.decode(e,e.uint32());break}case 42:{h.metric=$root.Metric.decode(e,e.uint32());break}case 28:{h.multiselect=$root.MultiSelect.decode(e,e.uint32());break}case 32:{h.numberInput=$root.NumberInput.decode(e,e.uint32());break}case 53:{h.pageLink=$root.PageLink.decode(e,e.uint32());break}case 16:{h.plotlyChart=$root.PlotlyChart.decode(e,e.uint32());break}case 5:{h.progress=$root.Progress.decode(e,e.uint32());break}case 23:{h.radio=$root.Radio.decode(e,e.uint32());break}case 25:{h.selectbox=$root.Selectbox.decode(e,e.uint32());break}case 52:{h.skeleton=$root.Skeleton.decode(e,e.uint32());break}case 21:{h.slider=$root.Slider.decode(e,e.uint32());break}case 46:{h.snow=$root.Snow.decode(e,e.uint32());break}case 60:{h.space=$root.Space.decode(e,e.uint32());break}case 44:{h.spinner=$root.Spinner.decode(e,e.uint32());break}case 1:{h.text=$root.Text.decode(e,e.uint32());break}case 22:{h.textArea=$root.TextArea.decode(e,e.uint32());break}case 24:{h.textInput=$root.TextInput.decode(e,e.uint32());break}case 26:{h.timeInput=$root.TimeInput.decode(e,e.uint32());break}case 62:{h.dateTimeInput=$root.DateTimeInput.decode(e,e.uint32());break}case 50:{h.toast=$root.Toast.decode(e,e.uint32());break}case 14:{h.video=$root.Video.decode(e,e.uint32());break}case 47:{h.heading=$root.Heading.decode(e,e.uint32());break}case 48:{h.code=$root.Code.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Element)return e;let o=new $root.Element;
18if(e.heightConfig!=null){if(typeof e.heightConfig!="object")throw TypeError(".Element.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(e.heightConfig)}if(e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Element.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}if(e.textAlignmentConfig!=null){if(typeof e.textAlignmentConfig!="object")throw TypeError(".Element.textAlignmentConfig: object expected");o.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.fromObject(e.textAlignmentConfig)}if(e.alert!=null){if(typeof e.alert!="object")throw TypeError(".Element.alert: object expected");o.alert=$root.Alert.fromObject(e.alert)}if(e.dataframe!=null){if(typeof e.dataframe!="object")throw TypeError(".Element.dataframe: object expected");o.dataframe=$root.Dataframe.fromObject(e.dataframe)}if(e.table!=null){if(typeof e.table!="object")throw TypeError(".Element.table: object expected");o.table=$root.Table.fromObject(e.table)}if(e.vegaLiteChart!=null){if(typeof e.vegaLiteChart!="object")throw TypeError(".Element.vegaLiteChart: object expected");o.vegaLiteChart=$root.VegaLiteChart.fromObject(e.vegaLiteChart)}if(e.audio!=null){if(typeof e.audio!="object")throw TypeError(".Element.audio: object expected");o.audio=$root.Audio.fromObject(e.audio)}if(e.audioInput!=null){if(typeof e.audioInput!="object")throw TypeError(".Element.audioInput: object expected");o.audioInput=$root.AudioInput.fromObject(e.audioInput)}if(e.balloons!=null){if(typeof e.balloons!="object")throw TypeError(".Element.balloons: object expected");o.balloons=$root.Balloons.fromObject(e.balloons)}if(e.bidiComponent!=null){if(typeof e.bidiComponent!="object")throw TypeError(".Element.bidiComponent: object expected");o.bidiComponent=$root.BidiComponent.fromObject(e.bidiComponent)}if(e.button!=null){if(typeof e.button!="object")throw TypeError(".Element.button: object expected");o.button=$root.Button.fromObject(e.button)}if(e.buttonGroup!=null){if(typeof e.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");o.buttonGroup=$root.ButtonGroup.fromObject(e.buttonGroup)}if(e.downloadButton!=null){if(typeof e.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");o.downloadButton=$root.DownloadButton.fromObject(e.downloadButton)}if(e.cameraInput!=null){if(typeof e.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");o.cameraInput=$root.CameraInput.fromObject(e.cameraInput)}if(e.chatInput!=null){if(typeof e.chatInput!="object")throw TypeError(".Element.chatInput: object expected");o.chatInput=$root.ChatInput.fromObject(e.chatInput)}if(e.checkbox!=null){if(typeof e.checkbox!="object")throw TypeError(".Element.checkbox: object expected");o.checkbox=$root.Checkbox.fromObject(e.checkbox)}if(e.colorPicker!=null){if(typeof e.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");o.colorPicker=$root.ColorPicker.fromObject(e.colorPicker)}if(e.componentInstance!=null){if(typeof e.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");o.componentInstance=$root.ComponentInstance.fromObject(e.componentInstance)}if(e.dateInput!=null){if(typeof e.dateInput!="object")throw TypeError(".Element.dateInput: object expected");o.dateInput=$root.DateInput.fromObject(e.dateInput)}if(e.deckGlJsonChart!=null){if(typeof e.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");o.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(e.deckGlJsonChart)}if(e.helpInfo!=null){if(typeof e.helpInfo!="object")throw TypeError(".Element.helpInfo: object expected");o.helpInfo=$root.Help.fromObject(e.helpInfo)}if(e.empty!=null){if(typeof e.empty!="object")throw TypeError(".Element.empty: object expected");o.empty=$root.Empty.fromObject(e.empty)}if(e.exception!=null){if(typeof e.exception!="object")throw TypeError(".Element.exception: object expected");o.exception=$root.Exception.fromObject(e.exception)}if(e.favicon!=null){if(typeof e.favicon!="object")throw TypeError(".Element.favicon: object expected");o.favicon=$root.Favicon.fromObject(e.favicon)}if(e.feedback!=null){if(typeof e.feedback!="object")throw TypeError(".Element.feedback: object expected");o.feedback=$root.Feedback.fromObject(e.feedback)}if(e.fileUploader!=null){if(typeof e.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");o.fileUploader=$root.FileUploader.fromObject(e.fileUploader)}if(e.graphvizChart!=null){if(typeof e.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");o.graphvizChart=$root.GraphVizChart.fromObject(e.graphvizChart)}if(e.html!=null){if(typeof e.html!="object")throw TypeError(".Element.html: object expected");o.html=$root.Html.fromObject(e.html)}if(e.iframe!=null){if(typeof e.iframe!="object")throw TypeError(".Element.iframe: object expected");o.iframe=$root.IFrame.fromObject(e.iframe)}if(e.imgs!=null){if(typeof e.imgs!="object")throw TypeError(".Element.imgs: object expected");o.imgs=$root.ImageList.fromObject(e.imgs)}if(e.json!=null){if(typeof e.json!="object")throw TypeError(".Element.json: object expected");o.json=$root.Json.fromObject(e.json)}if(e.linkButton!=null){if(typeof e.linkButton!="object")throw TypeError(".Element.linkButton: object expected");o.linkButton=$root.LinkButton.fromObject(e.linkButton)}if(e.markdown!=null){if(typeof e.markdown!="object")throw TypeError(".Element.markdown: object expected");o.markdown=$root.Markdown.fromObject(e.markdown)}if(e.metric!=null){if(typeof e.metric!="object")throw TypeError(".Element.metric: object expected");o.metric=$root.Metric.fromObject(e.metric)}if(e.multiselect!=null){if(typeof e.multiselect!="object")throw TypeError(".Element.multiselect: object expected");o.multiselect=$root.MultiSelect.fromObject(e.multiselect)}if(e.numberInput!=null){if(typeof e.numberInput!="object")throw TypeError(".Element.numberInput: object expected");o.numberInput=$root.NumberInput.fromObject(e.numberInput)}if(e.pageLink!=null){if(typeof e.pageLink!="object")throw TypeError(".Element.pageLink: object expected");o.pageLink=$root.PageLink.fromObject(e.pageLink)}if(e.plotlyChart!=null){if(typeof e.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");
18o.plotlyChart=$root.PlotlyChart.fromObject(e.plotlyChart)}if(e.progress!=null){if(typeof e.progress!="object")throw TypeError(".Element.progress: object expected");o.progress=$root.Progress.fromObject(e.progress)}if(e.radio!=null){if(typeof e.radio!="object")throw TypeError(".Element.radio: object expected");o.radio=$root.Radio.fromObject(e.radio)}if(e.selectbox!=null){if(typeof e.selectbox!="object")throw TypeError(".Element.selectbox: object expected");o.selectbox=$root.Selectbox.fromObject(e.selectbox)}if(e.skeleton!=null){if(typeof e.skeleton!="object")throw TypeError(".Element.skeleton: object expected");o.skeleton=$root.Skeleton.fromObject(e.skeleton)}if(e.slider!=null){if(typeof e.slider!="object")throw TypeError(".Element.slider: object expected");o.slider=$root.Slider.fromObject(e.slider)}if(e.snow!=null){if(typeof e.snow!="object")throw TypeError(".Element.snow: object expected");o.snow=$root.Snow.fromObject(e.snow)}if(e.space!=null){if(typeof e.space!="object")throw TypeError(".Element.space: object expected");o.space=$root.Space.fromObject(e.space)}if(e.spinner!=null){if(typeof e.spinner!="object")throw TypeError(".Element.spinner: object expected");o.spinner=$root.Spinner.fromObject(e.spinner)}if(e.text!=null){if(typeof e.text!="object")throw TypeError(".Element.text: object expected");o.text=$root.Text.fromObject(e.text)}if(e.textArea!=null){if(typeof e.textArea!="object")throw TypeError(".Element.textArea: object expected");o.textArea=$root.TextArea.fromObject(e.textArea)}if(e.textInput!=null){if(typeof e.textInput!="object")throw TypeError(".Element.textInput: object expected");o.textInput=$root.TextInput.fromObject(e.textInput)}if(e.timeInput!=null){if(typeof e.timeInput!="object")throw TypeError(".Element.timeInput: object expected");o.timeInput=$root.TimeInput.fromObject(e.timeInput)}if(e.dateTimeInput!=null){if(typeof e.dateTimeInput!="object")throw TypeError(".Element.dateTimeInput: object expected");o.dateTimeInput=$root.DateTimeInput.fromObject(e.dateTimeInput)}if(e.toast!=null){if(typeof e.toast!="object")throw TypeError(".Element.toast: object expected");o.toast=$root.Toast.fromObject(e.toast)}if(e.video!=null){if(typeof e.video!="object")throw TypeError(".Element.video: object expected");o.video=$root.Video.fromObject(e.video)}if(e.heading!=null){if(typeof e.heading!="object")throw TypeError(".Element.heading: object expected");o.heading=$root.Heading.fromObject(e.heading)}if(e.code!=null){if(typeof e.code!="object")throw TypeError(".Element.code: object expected");o.code=$root.Code.fromObject(e.code)}return o},n.toObject=function(e,o){o||(o={});let d={};return e.text!=null&&e.hasOwnProperty("text")&&(d.text=$root.Text.toObject(e.text,o),o.oneofs&&(d.type="text")),e.empty!=null&&e.hasOwnProperty("empty")&&(d.empty=$root.Empty.toObject(e.empty,o),o.oneofs&&(d.type="empty")),e.progress!=null&&e.hasOwnProperty("progress")&&(d.progress=$root.Progress.toObject(e.progress,o),o.oneofs&&(d.type="progress")),e.imgs!=null&&e.hasOwnProperty("imgs")&&(d.imgs=$root.ImageList.toObject(e.imgs,o),o.oneofs&&(d.type="imgs")),e.helpInfo!=null&&e.hasOwnProperty("helpInfo")&&(d.helpInfo=$root.Help.toObject(e.helpInfo,o),o.oneofs&&(d.type="helpInfo")),e.exception!=null&&e.hasOwnProperty("exception")&&(d.exception=$root.Exception.toObject(e.exception,o),o.oneofs&&(d.type="exception")),e.balloons!=null&&e.hasOwnProperty("balloons")&&(d.balloons=$root.Balloons.toObject(e.balloons,o),o.oneofs&&(d.type="balloons")),e.audio!=null&&e.hasOwnProperty("audio")&&(d.audio=$root.Audio.toObject(e.audio,o),o.oneofs&&(d.type="audio")),e.video!=null&&e.hasOwnProperty("video")&&(d.video=$root.Video.toObject(e.video,o),o.oneofs&&(d.type="video")),e.plotlyChart!=null&&e.hasOwnProperty("plotlyChart")&&(d.plotlyChart=$root.PlotlyChart.toObject(e.plotlyChart,o),o.oneofs&&(d.type="plotlyChart")),e.graphvizChart!=null&&e.hasOwnProperty("graphvizChart")&&(d.graphvizChart=$root.GraphVizChart.toObject(e.graphvizChart,o),o.oneofs&&(d.type="graphvizChart")),e.button!=null&&e.hasOwnProperty("button")&&(d.button=$root.Button.toObject(e.button,o),o.oneofs&&(d.type="button")),e.checkbox!=null&&e.hasOwnProperty("checkbox")&&(d.checkbox=$root.Checkbox.toObject(e.checkbox,o),o.oneofs&&(d.type="checkbox")),e.slider!=null&&e.hasOwnProperty("slider")&&(d.slider=$root.Slider.toObject(e.slider,o),o.oneofs&&(d.type="slider")),e.textArea!=null&&e.hasOwnProperty("textArea")&&(d.textArea=$root.TextArea.toObject(e.textArea,o),o.oneofs&&(d.type="textArea")),e.radio!=null&&e.hasOwnProperty("radio")&&(d.radio=$root.Radio.toObject(e.radio,o),o.oneofs&&(d.type="radio")),e.textInput!=null&&e.hasOwnProperty("textInput")&&(d.textInput=$root.TextInput.toObject(e.textInput,o),o.oneofs&&(d.type="textInput")),e.selectbox!=null&&e.hasOwnProperty("selectbox")&&(d.selectbox=$root.Selectbox.toObject(e.selectbox,o),o.oneofs&&(d.type="selectbox")),e.timeInput!=null&&e.hasOwnProperty("timeInput")&&(d.timeInput=$root.TimeInput.toObject(e.timeInput,o),o.oneofs&&(d.type="timeInput")),e.dateInput!=null&&e.hasOwnProperty("dateInput")&&(d.dateInput=$root.DateInput.toObject(e.dateInput,o),o.oneofs&&(d.type="dateInput")),e.multiselect!=null&&e.hasOwnProperty("multiselect")&&(d.multiselect=$root.MultiSelect.toObject(e.multiselect,o),o.oneofs&&(d.type="multiselect")),e.markdown!=null&&e.hasOwnProperty("markdown")&&(
18d.markdown=$root.Markdown.toObject(e.markdown,o),o.oneofs&&(d.type="markdown")),e.alert!=null&&e.hasOwnProperty("alert")&&(d.alert=$root.Alert.toObject(e.alert,o),o.oneofs&&(d.type="alert")),e.json!=null&&e.hasOwnProperty("json")&&(d.json=$root.Json.toObject(e.json,o),o.oneofs&&(d.type="json")),e.numberInput!=null&&e.hasOwnProperty("numberInput")&&(d.numberInput=$root.NumberInput.toObject(e.numberInput,o),o.oneofs&&(d.type="numberInput")),e.fileUploader!=null&&e.hasOwnProperty("fileUploader")&&(d.fileUploader=$root.FileUploader.toObject(e.fileUploader,o),o.oneofs&&(d.type="fileUploader")),e.deckGlJsonChart!=null&&e.hasOwnProperty("deckGlJsonChart")&&(d.deckGlJsonChart=$root.DeckGlJsonChart.toObject(e.deckGlJsonChart,o),o.oneofs&&(d.type="deckGlJsonChart")),e.colorPicker!=null&&e.hasOwnProperty("colorPicker")&&(d.colorPicker=$root.ColorPicker.toObject(e.colorPicker,o),o.oneofs&&(d.type="colorPicker")),e.favicon!=null&&e.hasOwnProperty("favicon")&&(d.favicon=$root.Favicon.toObject(e.favicon,o),o.oneofs&&(d.type="favicon")),e.componentInstance!=null&&e.hasOwnProperty("componentInstance")&&(d.componentInstance=$root.ComponentInstance.toObject(e.componentInstance,o),o.oneofs&&(d.type="componentInstance")),e.iframe!=null&&e.hasOwnProperty("iframe")&&(d.iframe=$root.IFrame.toObject(e.iframe,o),o.oneofs&&(d.type="iframe")),e.table!=null&&e.hasOwnProperty("table")&&(d.table=$root.Table.toObject(e.table,o),o.oneofs&&(d.type="table")),e.dataframe!=null&&e.hasOwnProperty("dataframe")&&(d.dataframe=$root.Dataframe.toObject(e.dataframe,o),o.oneofs&&(d.type="dataframe")),e.vegaLiteChart!=null&&e.hasOwnProperty("vegaLiteChart")&&(d.vegaLiteChart=$root.VegaLiteChart.toObject(e.vegaLiteChart,o),o.oneofs&&(d.type="vegaLiteChart")),e.metric!=null&&e.hasOwnProperty("metric")&&(d.metric=$root.Metric.toObject(e.metric,o),o.oneofs&&(d.type="metric")),e.downloadButton!=null&&e.hasOwnProperty("downloadButton")&&(d.downloadButton=$root.DownloadButton.toObject(e.downloadButton,o),o.oneofs&&(d.type="downloadButton")),e.spinner!=null&&e.hasOwnProperty("spinner")&&(d.spinner=$root.Spinner.toObject(e.spinner,o),o.oneofs&&(d.type="spinner")),e.cameraInput!=null&&e.hasOwnProperty("cameraInput")&&(d.cameraInput=$root.CameraInput.toObject(e.cameraInput,o),o.oneofs&&(d.type="cameraInput")),e.snow!=null&&e.hasOwnProperty("snow")&&(d.snow=$root.Snow.toObject(e.snow,o),o.oneofs&&(d.type="snow")),e.heading!=null&&e.hasOwnProperty("heading")&&(d.heading=$root.Heading.toObject(e.heading,o),o.oneofs&&(d.type="heading")),e.code!=null&&e.hasOwnProperty("code")&&(d.code=$root.Code.toObject(e.code,o),o.oneofs&&(d.type="code")),e.chatInput!=null&&e.hasOwnProperty("chatInput")&&(d.chatInput=$root.ChatInput.toObject(e.chatInput,o),o.oneofs&&(d.type="chatInput")),e.toast!=null&&e.hasOwnProperty("toast")&&(d.toast=$root.Toast.toObject(e.toast,o),o.oneofs&&(d.type="toast")),e.linkButton!=null&&e.hasOwnProperty("linkButton")&&(d.linkButton=$root.LinkButton.toObject(e.linkButton,o),o.oneofs&&(d.type="linkButton")),e.skeleton!=null&&e.hasOwnProperty("skeleton")&&(d.skeleton=$root.Skeleton.toObject(e.skeleton,o),o.oneofs&&(d.type="skeleton")),e.pageLink!=null&&e.hasOwnProperty("pageLink")&&(d.pageLink=$root.PageLink.toObject(e.pageLink,o),o.oneofs&&(d.type="pageLink")),e.html!=null&&e.hasOwnProperty("html")&&(d.html=$root.Html.toObject(e.html,o),o.oneofs&&(d.type="html")),e.buttonGroup!=null&&e.hasOwnProperty("buttonGroup")&&(d.buttonGroup=$root.ButtonGroup.toObject(e.buttonGroup,o),o.oneofs&&(d.type="buttonGroup")),e.audioInput!=null&&e.hasOwnProperty("audioInput")&&(d.audioInput=$root.AudioInput.toObject(e.audioInput,o),o.oneofs&&(d.type="audioInput")),e.heightConfig!=null&&e.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(e.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),e.bidiComponent!=null&&e.hasOwnProperty("bidiComponent")&&(d.bidiComponent=$root.BidiComponent.toObject(e.bidiComponent,o),o.oneofs&&(d.type="bidiComponent")),e.space!=null&&e.hasOwnProperty("space")&&(d.space=$root.Space.toObject(e.space,o),o.oneofs&&(d.type="space")),e.textAlignmentConfig!=null&&e.hasOwnProperty("textAlignmentConfig")&&(d.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.toObject(e.textAlignmentConfig,o),o.oneofs&&(d._textAlignmentConfig="textAlignmentConfig")),e.dateTimeInput!=null&&e.hasOwnProperty("dateTimeInput")&&(d.dateTimeInput=$root.DateTimeInput.toObject(e.dateTimeInput,o),o.oneofs&&(d.type="dateTimeInput")),e.feedback!=null&&e.hasOwnProperty("feedback")&&(d.feedback=$root.Feedback.toObject(e.feedback,o),o.oneofs&&(d.type="feedback")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Element"},n})();$root.DownloadButton=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.ignoreRerun=!1,n.prototype.deferredFileId=null,n.prototype.shortcut="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_deferredFileId",{get:$util.oneOfGetter(i=["deferredFileId"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&o.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&o.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&o.uint32(82).string(e.icon),e.ignoreRerun!=null&&Object.hasOwnProperty.call(e,"ignoreRerun")&&o.uint32(88).bool(e.ignoreRerun),e.deferredFileId!=null&&Object.hasOwnProperty.call(e,"deferredFileId")&&o.uint32(98).string(e.deferredFileId),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&o.uint32(106).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&o.uint32(112).int32(e.iconPosition),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.DownloadButton;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.bool();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.url=e.string();break}case 7:{h.disabled=e.bool();break}case 8:{h.useContainerWidth=e.bool();break}case 9:{h.type=e.string();break}case 10:{h.icon=e.string();break}case 11:{h.ignoreRerun=e.bool();break}case 12:{h.deferredFileId=e.string();break}case 13:{h.shortcut=e.string();break}case 14:{h.iconPosition=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.DownloadButton)return e;let o=new $root.DownloadButton;switch(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=!!e.default),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.url!=null&&(o.url=String(e.url)),e.disabled!=null&&(o.disabled=!!e.disabled),e.useContainerWidth!=null&&(o.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(o.type=String(e.type)),e.icon!=null&&(o.icon=String(e.icon)),e.ignoreRerun!=null&&(o.ignoreRerun=!!e.ignoreRerun),e.deferredFileId!=null&&(o.deferredFileId=String(e.deferredFileId)),e.shortcut!=null&&(o.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){o.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.default=!1,d.help="",d.formId="",d.url="",d.disabled=!1,d.useContainerWidth=!1,d.type="",d.icon="",d.ignoreRerun=!1,d.shortcut="",d.iconPosition=o.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.url!=null&&e.hasOwnProperty("url")&&(d.url=e.url),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty("type")&&(d.type=e.type),e.icon!=null&&e.hasOwnProperty("icon")&&(d.icon=e.icon),e.ignoreRerun!=null&&e.hasOwnProperty("ignoreRerun")&&(d.ignoreRerun=e.ignoreRerun),e.deferredFileId!=null&&e.hasOwnProperty("deferredFileId")&&(d.deferredFileId=e.deferredFileId,o.oneofs&&(d._deferredFileId="deferredFileId")),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(d.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DownloadButton"},n})();$root.Empty=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Empty;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){default:t.skipType(h&7);break}}return p},n.fromObject=function(t){return t instanceof $root.Empty?t:new $root.Empty},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Empty"},n})();$root.Exception=(()=>{function n(i){if(this.stackTrace=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.type="",n.prototype.message="",n.prototype.messageIsMarkdown=!1,n.prototype.stackTrace=$util.emptyArray,n.prototype.isWarning=!1,n.prototype.widthConfig=null,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&e.uint32(10).string(t.type),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(18).string(t.message),t.stackTrace!=null&&t.stackTrace.length)for(let o=0;o<t.stackTrace.length;++o)e.uint32(26).string(t.stackTrace[o]);return t.messageIsMarkdown!=null&&Object.hasOwnProperty.call(t,"messageIsMarkdown")&&e.uint32(32).bool(t.messageIsMarkdown),t.isWarning!=null&&Object.hasOwnProperty.call(t,"isWarning")&&e.uint32(40).bool(t.isWarning),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,e.uint32(50).fork()).ldelim(),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Exception;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.type=t.string();break}case 2:{p.message=t.string();break}case 4:{p.messageIsMarkdown=t.bool();break}case 3:{p.stackTrace&&p.stackTrace.length||(p.stackTrace=[]),p.stackTrace.push(t.string());break}case 5:{p.isWarning=t.bool();break}case 6:{p.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Exception)return t;let e=new $root.Exception;if(t.type!=null&&(e.type=String(t.type)),t.message!=null&&(e.message=String(t.message)),t.messageIsMarkdown!=null&&(e.messageIsMarkdown=!!t.messageIsMarkdown),t.stackTrace){if(!Array.isArray(t.stackTrace))throw TypeError(".Exception.stackTrace: array expected");e.stackTrace=[];for(let o=0;o<t.stackTrace.length;++o)e.stackTrace[o]=String(t.stackTrace[o])}if(t.isWarning!=null&&(e.isWarning=!!t.isWarning),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Exception.widthConfig: object expected");e.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.stackTrace=[]),e.defaults&&(o.type="",o.message="",o.messageIsMarkdown=!1,o.isWarning=!1,o.widthConfig=null),t.type!=null&&t.hasOwnProperty("type")&&(o.type=t.type),t.message!=null&&t.hasOwnProperty("message")&&(o.message=t.message),t.stackTrace&&t.stackTrace.length){o.stackTrace=[];for(let d=0;d<t.stackTrace.length;++d)o.stackTrace[d]=t.stackTrace[d]}return t.messageIsMarkdown!=null&&t.hasOwnProperty("messageIsMarkdown")&&(o.messageIsMarkdown=t.messageIsMarkdown),t.isWarning!=null&&t.hasOwnProperty("isWarning")&&(o.isWarning=t.isWarning),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,e)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Exception"},n})();$root.Favicon=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.url="",n.create=function(t){return new n(t)}
18,n.encode=function(t,e){return e||(e=$Writer.create()),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(10).string(t.url),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Favicon;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Favicon)return t;let e=new $root.Favicon;return t.url!=null&&(e.url=String(t.url)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.url=""),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Favicon"},n})();const Feedback$1=$root.Feedback=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.type=0,n.prototype.default=null,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(16).int32(e.type),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(24).uint32(e.default),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(32).bool(e.disabled),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(48).uint32(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(56).bool(e.setValue),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Feedback;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.type=e.int32();break}case 3:{h.default=e.uint32();break}case 4:{h.disabled=e.bool();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.uint32();break}case 7:{h.setValue=e.bool();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Feedback)return e;let o=new $root.Feedback;switch(e.id!=null&&(o.id=String(e.id)),e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"THUMBS":case 0:o.type=0;break;case"FACES":case 1:o.type=1;break;case"STARS":case 2:o.type=2;break}return e.default!=null&&(o.default=e.default>>>0),e.disabled!=null&&(o.disabled=!!e.disabled),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=e.value>>>0),e.setValue!=null&&(o.setValue=!!e.setValue),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.type=o.enums===String?"THUMBS":0,d.disabled=!1,d.formId="",d.setValue=!1),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Feedback.FeedbackType[e.type]===void 0?e.type:$root.Feedback.FeedbackType[e.type]:e.type),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value,o.oneofs&&(d._value="value")),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Feedback"},n.FeedbackType=(function(){const t={},e=Object.create(t);return e[t[0]="THUMBS"]=0,e[t[1]="FACES"]=1,e[t[2]="STARS"]=2,e})(),n})();$root.FileUploader=(()=>
18{function n(i){if(this.type=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.id="",n.prototype.label="",n.prototype.type=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.multipleFiles=!1,n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.acceptDirectory=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(18).string(t.label),t.type!=null&&t.type.length)for(let o=0;o<t.type.length;++o)e.uint32(26).string(t.type[o]);return t.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(t,"maxUploadSizeMb")&&e.uint32(32).int32(t.maxUploadSizeMb),t.multipleFiles!=null&&Object.hasOwnProperty.call(t,"multipleFiles")&&e.uint32(48).bool(t.multipleFiles),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(58).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(66).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&e.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,e.uint32(82).fork()).ldelim(),t.acceptDirectory!=null&&Object.hasOwnProperty.call(t,"acceptDirectory")&&e.uint32(88).bool(t.acceptDirectory),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FileUploader;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=t.string();break}case 2:{p.label=t.string();break}case 3:{p.type&&p.type.length||(p.type=[]),p.type.push(t.string());break}case 4:{p.maxUploadSizeMb=t.int32();break}case 6:{p.multipleFiles=t.bool();break}case 7:{p.help=t.string();break}case 8:{p.formId=t.string();break}case 9:{p.disabled=t.bool();break}case 10:{p.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 11:{p.acceptDirectory=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FileUploader)return t;let e=new $root.FileUploader;if(t.id!=null&&(e.id=String(t.id)),t.label!=null&&(e.label=String(t.label)),t.type){if(!Array.isArray(t.type))throw TypeError(".FileUploader.type: array expected");e.type=[];for(let o=0;o<t.type.length;++o)e.type[o]=String(t.type[o])}if(t.maxUploadSizeMb!=null&&(e.maxUploadSizeMb=t.maxUploadSizeMb|0),t.multipleFiles!=null&&(e.multipleFiles=!!t.multipleFiles),t.help!=null&&(e.help=String(t.help)),t.formId!=null&&(e.formId=String(t.formId)),t.disabled!=null&&(e.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");e.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.acceptDirectory!=null&&(e.acceptDirectory=!!t.acceptDirectory),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.type=[]),e.defaults&&(o.id="",o.label="",o.maxUploadSizeMb=0,o.multipleFiles=!1,o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null,o.acceptDirectory=!1),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.type&&t.type.length){o.type=[];for(let d=0;d<t.type.length;++d)o.type[d]=t.type[d]}return t.maxUploadSizeMb!=null&&t.hasOwnProperty("maxUploadSizeMb")&&(o.maxUploadSizeMb=t.maxUploadSizeMb),t.multipleFiles!=null&&t.hasOwnProperty("multipleFiles")&&(o.multipleFiles=t.multipleFiles),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(o.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,e)),t.acceptDirectory!=null&&t.hasOwnProperty("acceptDirectory")&&(o.acceptDirectory=t.acceptDirectory),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FileUploader"},n})();$root.GraphVizChart=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.spec="",n.prototype.elementId="",n.prototype.engine="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.spec!=null&&Object.hasOwnProperty.call(t,"spec")&&e.uint32(10).string(t.spec),t.elementId!=null&&Object.hasOwnProperty.call(t,"elementId")&&e.uint32(42).string(t.elementId),t.engine!=null&&Object.hasOwnProperty.call(t,"engine")&&e.uint32(50).string(t.engine),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.GraphVizChart;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=t.string();break}case 5:{p.elementId=t.string();break}case 6:{p.engine=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.GraphVizChart)return t;let e=new $root.GraphVizChart;return t.spec!=null&&(e.spec=String(t.spec)),t.elementId!=null&&(e.elementId=String(t.elementId)),t.engine!=null&&(e.engine=String(t.engine)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.spec="",o.elementId="",o.engine=""),t.spec!=null&&t.hasOwnProperty("spec")&&(o.spec=t.spec),t.elementId!=null&&t.hasOwnProperty("elementId")&&(o.elementId=t.elementId),t.engine!=null&&t.hasOwnProperty("engine")&&(o.engine=t.engine),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/GraphVizChart"},n})();$root.Heading=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.tag="",n.prototype.anchor="",n.prototype.body="",n.prototype.help="",n.prototype.hideAnchor=!1,n.prototype.divider="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.tag!=null&&Object.hasOwnProperty.call(t,"tag")&&e.uint32(10).string(t.tag),t.anchor!=null&&Object.hasOwnProperty.call(t,"anchor")&&e.uint32(18).string(t.anchor),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(26).string(t.body),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(34).string(t.help),t.hideAnchor!=null&&Object.hasOwnProperty.call(t,"hideAnchor")&&e.uint32(40).bool(t.hideAnchor),t.divider!=null&&Object.hasOwnProperty.call(t,"divider")&&e.uint32(50).string(t.divider),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Heading;
18for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tag=t.string();break}case 2:{p.anchor=t.string();break}case 3:{p.body=t.string();break}case 4:{p.help=t.string();break}case 5:{p.hideAnchor=t.bool();break}case 6:{p.divider=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Heading)return t;let e=new $root.Heading;return t.tag!=null&&(e.tag=String(t.tag)),t.anchor!=null&&(e.anchor=String(t.anchor)),t.body!=null&&(e.body=String(t.body)),t.help!=null&&(e.help=String(t.help)),t.hideAnchor!=null&&(e.hideAnchor=!!t.hideAnchor),t.divider!=null&&(e.divider=String(t.divider)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.tag="",o.anchor="",o.body="",o.help="",o.hideAnchor=!1,o.divider=""),t.tag!=null&&t.hasOwnProperty("tag")&&(o.tag=t.tag),t.anchor!=null&&t.hasOwnProperty("anchor")&&(o.anchor=t.anchor),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.hideAnchor!=null&&t.hasOwnProperty("hideAnchor")&&(o.hideAnchor=t.hideAnchor),t.divider!=null&&t.hasOwnProperty("divider")&&(o.divider=t.divider),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Heading"},n})();$root.Help=(()=>{function n(i){if(this.members=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.docString="",n.prototype.type="",n.prototype.name="",n.prototype.value="",n.prototype.members=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&e.uint32(26).string(t.docString),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&e.uint32(34).string(t.type),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(50).string(t.name),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&e.uint32(58).string(t.value),t.members!=null&&t.members.length)for(let o=0;o<t.members.length;++o)$root.Member.encode(t.members[o],e.uint32(66).fork()).ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Help;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 3:{p.docString=t.string();break}case 4:{p.type=t.string();break}case 6:{p.name=t.string();break}case 7:{p.value=t.string();break}case 8:{p.members&&p.members.length||(p.members=[]),p.members.push($root.Member.decode(t,t.uint32()));break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Help)return t;let e=new $root.Help;if(t.docString!=null&&(e.docString=String(t.docString)),t.type!=null&&(e.type=String(t.type)),t.name!=null&&(e.name=String(t.name)),t.value!=null&&(e.value=String(t.value)),t.members){if(!Array.isArray(t.members))throw TypeError(".Help.members: array expected");e.members=[];for(let o=0;o<t.members.length;++o){if(typeof t.members[o]!="object")throw TypeError(".Help.members: object expected");e.members[o]=$root.Member.fromObject(t.members[o])}}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.members=[]),e.defaults&&(o.docString="",o.type="",o.name="",o.value=""),t.docString!=null&&t.hasOwnProperty("docString")&&(o.docString=t.docString),t.type!=null&&t.hasOwnProperty("type")&&(o.type=t.type),t.name!=null&&t.hasOwnProperty("name")&&(o.name=t.name),t.value!=null&&t.hasOwnProperty("value")&&(o.value=t.value),t.members&&t.members.length){o.members=[];for(let d=0;d<t.members.length;++d)o.members[d]=$root.Member.toObject(t.members[d],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Help"},n})();$root.Member=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.name="",n.prototype.type="",n.prototype.value=null,n.prototype.docString=null;let i;return Object.defineProperty(n.prototype,"contents",{get:$util.oneOfGetter(i=["value","docString"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&o.uint32(10).string(e.name),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(18).string(e.type),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(26).string(e.value),e.docString!=null&&Object.hasOwnProperty.call(e,"docString")&&o.uint32(34).string(e.docString),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Member;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=e.string();break}case 2:{h.type=e.string();break}case 3:{h.value=e.string();break}case 4:{h.docString=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Member)return e;let o=new $root.Member;return e.name!=null&&(o.name=String(e.name)),e.type!=null&&(o.type=String(e.type)),e.value!=null&&(o.value=String(e.value)),e.docString!=null&&(o.docString=String(e.docString)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.name="",d.type=""),e.name!=null&&e.hasOwnProperty("name")&&(d.name=e.name),e.type!=null&&e.hasOwnProperty("type")&&(d.type=e.type),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value,o.oneofs&&(d.contents="value")),e.docString!=null&&e.hasOwnProperty("docString")&&(d.docString=e.docString,o.oneofs&&(d.contents="docString")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Member"},n})();$root.Html=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.body="",n.prototype.unsafeAllowJavascript=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(10).string(t.body),t.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(t,"unsafeAllowJavascript")&&e.uint32(16).bool(t.unsafeAllowJavascript),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Html;
18for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=t.string();break}case 2:{p.unsafeAllowJavascript=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Html)return t;let e=new $root.Html;return t.body!=null&&(e.body=String(t.body)),t.unsafeAllowJavascript!=null&&(e.unsafeAllowJavascript=!!t.unsafeAllowJavascript),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.body="",o.unsafeAllowJavascript=!1),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.unsafeAllowJavascript!=null&&t.hasOwnProperty("unsafeAllowJavascript")&&(o.unsafeAllowJavascript=t.unsafeAllowJavascript),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Html"},n})();$root.IFrame=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.src=null,n.prototype.srcdoc=null,n.prototype.scrolling=!1,n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["src","srcdoc"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.src!=null&&Object.hasOwnProperty.call(e,"src")&&o.uint32(10).string(e.src),e.srcdoc!=null&&Object.hasOwnProperty.call(e,"srcdoc")&&o.uint32(18).string(e.srcdoc),e.scrolling!=null&&Object.hasOwnProperty.call(e,"scrolling")&&o.uint32(56).bool(e.scrolling),e.tabIndex!=null&&Object.hasOwnProperty.call(e,"tabIndex")&&o.uint32(64).int32(e.tabIndex),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.IFrame;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.src=e.string();break}case 2:{h.srcdoc=e.string();break}case 7:{h.scrolling=e.bool();break}case 8:{h.tabIndex=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.IFrame)return e;let o=new $root.IFrame;return e.src!=null&&(o.src=String(e.src)),e.srcdoc!=null&&(o.srcdoc=String(e.srcdoc)),e.scrolling!=null&&(o.scrolling=!!e.scrolling),e.tabIndex!=null&&(o.tabIndex=e.tabIndex|0),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.scrolling=!1),e.src!=null&&e.hasOwnProperty("src")&&(d.src=e.src,o.oneofs&&(d.type="src")),e.srcdoc!=null&&e.hasOwnProperty("srcdoc")&&(d.srcdoc=e.srcdoc,o.oneofs&&(d.type="srcdoc")),e.scrolling!=null&&e.hasOwnProperty("scrolling")&&(d.scrolling=e.scrolling),e.tabIndex!=null&&e.hasOwnProperty("tabIndex")&&(d.tabIndex=e.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/IFrame"},n})();$root.Image=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.url="",n.prototype.caption="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.caption!=null&&Object.hasOwnProperty.call(t,"caption")&&e.uint32(18).string(t.caption),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(26).string(t.url),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Image;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 3:{p.url=t.string();break}case 2:{p.caption=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Image)return t;let e=new $root.Image;return t.url!=null&&(e.url=String(t.url)),t.caption!=null&&(e.caption=String(t.caption)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.caption="",o.url=""),t.caption!=null&&t.hasOwnProperty("caption")&&(o.caption=t.caption),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Image"},n})();$root.ImageList=(()=>{function n(i){if(this.imgs=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.imgs=$util.emptyArray,n.prototype.link="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.imgs!=null&&t.imgs.length)for(let o=0;o<t.imgs.length;++o)$root.Image.encode(t.imgs[o],e.uint32(10).fork()).ldelim();return t.link!=null&&Object.hasOwnProperty.call(t,"link")&&e.uint32(26).string(t.link),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ImageList;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.imgs&&p.imgs.length||(p.imgs=[]),p.imgs.push($root.Image.decode(t,t.uint32()));break}case 3:{p.link=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ImageList)return t;let e=new $root.ImageList;if(t.imgs){if(!Array.isArray(t.imgs))throw TypeError(".ImageList.imgs: array expected");e.imgs=[];for(let o=0;o<t.imgs.length;++o){if(typeof t.imgs[o]!="object")throw TypeError(".ImageList.imgs: object expected");e.imgs[o]=$root.Image.fromObject(t.imgs[o])}}return t.link!=null&&(e.link=String(t.link)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.imgs=[]),e.defaults&&(o.link=""),t.imgs&&t.imgs.length){o.imgs=[];for(let d=0;d<t.imgs.length;++d)o.imgs[d]=$root.Image.toObject(t.imgs[d],e)}return t.link!=null&&t.hasOwnProperty("link")&&(o.link=t.link),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ImageList"},n})();$root.Json=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.body="",n.prototype.expanded=!1,n.prototype.maxExpandDepth=null;let i;return Object.defineProperty(n.prototype,"_maxExpandDepth",{get:$util.oneOfGetter(i=["maxExpandDepth"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&o.uint32(10).string(e.body),e.expanded!=null&&Object.hasOwnProperty.call(e,"expanded")&&o.uint32(16).bool(e.expanded),e.maxExpandDepth!=null&&Object.hasOwnProperty.call(e,"maxExpandDepth")&&o.uint32(24).int32(e.maxExpandDepth),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Json;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.expanded=e.bool();break}case 3:{h.maxExpandDepth=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Json)return e;let o=new $root.Json;return e.body!=null&&(o.body=String(e.body)),e.expanded!=null&&(o.expanded=!!e.expanded),e.maxExpandDepth!=null&&(o.maxExpandDepth=e.maxExpandDepth|0),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.body="",d.expanded=!1),e.body!=null&&e.hasOwnProperty("body")&&(d.body=e.body),e.expanded!=null&&e.hasOwnProperty("expanded")&&(
18d.expanded=e.expanded),e.maxExpandDepth!=null&&e.hasOwnProperty("maxExpandDepth")&&(d.maxExpandDepth=e.maxExpandDepth,o.oneofs&&(d._maxExpandDepth="maxExpandDepth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Json"},n})();$root.LinkButton=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(34).string(t.help),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(50).string(t.url),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&e.uint32(56).bool(t.disabled),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&e.uint32(64).bool(t.useContainerWidth),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&e.uint32(74).string(t.type),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&e.uint32(82).string(t.icon),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&e.uint32(90).string(t.shortcut),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&e.uint32(96).int32(t.iconPosition),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.LinkButton;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=t.string();break}case 2:{p.label=t.string();break}case 4:{p.help=t.string();break}case 6:{p.url=t.string();break}case 7:{p.disabled=t.bool();break}case 8:{p.useContainerWidth=t.bool();break}case 9:{p.type=t.string();break}case 10:{p.icon=t.string();break}case 11:{p.shortcut=t.string();break}case 12:{p.iconPosition=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.LinkButton)return t;let e=new $root.LinkButton;switch(t.id!=null&&(e.id=String(t.id)),t.label!=null&&(e.label=String(t.label)),t.help!=null&&(e.help=String(t.help)),t.url!=null&&(e.url=String(t.url)),t.disabled!=null&&(e.disabled=!!t.disabled),t.useContainerWidth!=null&&(e.useContainerWidth=!!t.useContainerWidth),t.type!=null&&(e.type=String(t.type)),t.icon!=null&&(e.icon=String(t.icon)),t.shortcut!=null&&(e.shortcut=String(t.shortcut)),t.iconPosition){default:if(typeof t.iconPosition=="number"){e.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:e.iconPosition=0;break;case"RIGHT":case 1:e.iconPosition=1;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.id="",o.label="",o.help="",o.url="",o.disabled=!1,o.useContainerWidth=!1,o.type="",o.icon="",o.shortcut="",o.iconPosition=e.enums===String?"LEFT":0),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),t.disabled!=null&&t.hasOwnProperty("disabled")&&(o.disabled=t.disabled),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=t.useContainerWidth),t.type!=null&&t.hasOwnProperty("type")&&(o.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(o.icon=t.icon),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(o.shortcut=t.shortcut),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(o.iconPosition=e.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/LinkButton"},n})();const Markdown$3=$root.Markdown=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.body="",n.prototype.allowHtml=!1,n.prototype.elementType=0,n.prototype.help="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(10).string(t.body),t.allowHtml!=null&&Object.hasOwnProperty.call(t,"allowHtml")&&e.uint32(16).bool(t.allowHtml),t.elementType!=null&&Object.hasOwnProperty.call(t,"elementType")&&e.uint32(32).int32(t.elementType),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(42).string(t.help),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Markdown;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=t.string();break}case 2:{p.allowHtml=t.bool();break}case 4:{p.elementType=t.int32();break}case 5:{p.help=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Markdown)return t;let e=new $root.Markdown;switch(t.body!=null&&(e.body=String(t.body)),t.allowHtml!=null&&(e.allowHtml=!!t.allowHtml),t.elementType){default:if(typeof t.elementType=="number"){e.elementType=t.elementType;break}break;case"UNSPECIFIED":case 0:e.elementType=0;break;case"NATIVE":case 1:e.elementType=1;break;case"CAPTION":case 2:e.elementType=2;break;case"CODE":case 3:e.elementType=3;break;case"LATEX":case 4:e.elementType=4;break;case"DIVIDER":case 5:e.elementType=5;break}return t.help!=null&&(e.help=String(t.help)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.body="",o.allowHtml=!1,o.elementType=e.enums===String?"UNSPECIFIED":0,o.help=""),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.allowHtml!=null&&t.hasOwnProperty("allowHtml")&&(o.allowHtml=t.allowHtml),t.elementType!=null&&t.hasOwnProperty("elementType")&&(o.elementType=e.enums===String?$root.Markdown.Type[t.elementType]===void 0?t.elementType:$root.Markdown.Type[t.elementType]:t.elementType),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Markdown"},n.Type=(function(){const i={},t=Object.create(i);return t[i[0]="UNSPECIFIED"]=0,t[i[1]="NATIVE"]=1,t[i[2]="CAPTION"]=2,t[i[3]="CODE"]=3,t[i[4]="LATEX"]=4,t[i[5]="DIVIDER"]=5,t})(),n})(),Metric$1=$root.Metric=(()=>{function n(i){if(this.chartData=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.label="",n.prototype.body="",n.prototype.delta="",n.prototype.direction=0,n.prototype.color=0,n.prototype.help="",n.prototype.labelVisibility=null,n.prototype.showBorder=!1,n.prototype.chartData=$util.emptyArray,n.prototype.chartType=0,n.prototype.format="",n.prototype.deltaDescription="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(10).string(t.label),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(18).string(t.body),t.delta!=null&&Object.hasOwnProperty.call(t,"delta")&&e.uint32(26).string(t.delta),t.direction!=null&&Object.hasOwnProperty.call(t,"direction")&&e.uint32(32).int32(t.direction),t.color!=null&&Object.hasOwnProperty.call(t,"color")&&e.uint32(40).int32(t.color),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(50).string(t.help),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,e.uint32(58).fork()).ldelim(),t.showBorder!=null&&Object.hasOwnProperty.call(t,"showBorder")&&e.uint32(64).bool(t.showBorder),t.chartData!=null&&t.chartData.length){e.uint32(74).fork();for(let o=0;o<t.chartData.length;++o)e.double(t.chartData[o]);e.ldelim()}return t.chartType!=null&&Object.hasOwnProperty.call(t,"chartType")&&e.uint32(80).int32(t.chartType),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&e.uint32(90).string(t.format),t.deltaDescription!=null&&Object.hasOwnProperty.call(t,"deltaDescription")&&e.uint32(98).string(t.deltaDescription),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Metric;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=t.string();break}case 2:{p.body=t.string();break}case 3:{p.delta=t.string();break}case 4:{p.direction=t.int32();break}case 5:{p.color=t.int32();break}case 6:{p.help=t.string();break}case 7:{p.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 8:{p.showBorder=t.bool();break}case 9:{if(p.chartData&&p.chartData.length||(p.chartData=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.chartData.push(t.double())}else p.chartData.push(t.double());break}case 10:{p.chartType=t.int32();break}case 11:{p.format=t.string();break}case 12:{p.deltaDescription=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Metric)return t;let e=new $root.Metric;switch(t.label!=null&&(e.label=String(t.label)),t.body!=null&&(e.body=String(t.body)),t.delta!=null&&(e.delta=String(t.delta)),t.direction){default:if(typeof t.direction=="number"){e.direction=t.direction;break}break;case"DOWN":case 0:e.direction=0;break;case"UP":case 1:e.direction=1;break;case"NONE":case 2:e.direction=2;break}switch(t.color){default:if(typeof t.color=="number"){e.color=t.color;break}break;case"RED":case 0:e.color=0;break;case"GREEN":case 1:e.color=1;break;case"GRAY":case 2:e.color=2;break;case"ORANGE":case 3:e.color=3;break;case"YELLOW":case 4:e.color=4;break;case"BLUE":case 5:e.color=5;break;case"VIOLET":case 6:e.color=6;break;case"PRIMARY":case 7:e.color=7;break}if(t.help!=null&&(e.help=String(t.help)),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");e.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}if(t.showBorder!=null&&(e.showBorder=!!t.showBorder),t.chartData){if(!Array.isArray(t.chartData))throw TypeError(".Metric.chartData: array expected");e.chartData=[];for(let o=0;o<t.chartData.length;++o)e.chartData[o]=Number(t.chartData[o])}switch(t.chartType){default:if(typeof t.chartType=="number"){e.chartType=t.chartType;break}break;case"LINE":case 0:e.chartType=0;break;case"BAR":case 1:e.chartType=1;break;case"AREA":case 2:e.chartType=2;break}return t.format!=null&&(e.format=String(t.format)),t.deltaDescription!=null&&(e.deltaDescription=String(t.deltaDescription)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.chartData=[]),e.defaults&&(o.label="",o.body="",o.delta="",o.direction=e.enums===String?"DOWN":0,o.color=e.enums===String?"RED":0,o.help="",o.labelVisibility=null,o.showBorder=!1,o.chartType=e.enums===String?"LINE":0,o.format="",o.deltaDescription=""),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.delta!=null&&t.hasOwnProperty("delta")&&(o.delta=t.delta),t.direction!=null&&t.hasOwnProperty("direction")&&(o.direction=e.enums===String?$root.Metric.MetricDirection[t.direction]===void 0?t.direction:$root.Metric.MetricDirection[t.direction]:t.direction),t.color!=null&&t.hasOwnProperty("color")&&(o.color=e.enums===String?$root.Metric.MetricColor[t.color]===void 0?t.color:$root.Metric.MetricColor[t.color]:t.color),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,e)),t.showBorder!=null&&t.hasOwnProperty("showBorder")&&(o.showBorder=t.showBorder),t.chartData&&t.chartData.length){o.chartData=[];for(let d=0;d<t.chartData.length;++d)o.chartData[d]=e.json&&!isFinite(t.chartData[d])?String(t.chartData[d]):t.chartData[d]}return t.chartType!=null&&t.hasOwnProperty("chartType")&&(o.chartType=e.enums===String?$root.Metric.ChartType[t.chartType]===void 0?t.chartType:$root.Metric.ChartType[t.chartType]:t.chartType),t.format!=null&&t.hasOwnProperty("format")&&(o.format=t.format),t.deltaDescription!=null&&t.hasOwnProperty("deltaDescription")&&(o.deltaDescription=t.deltaDescription),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Metric"},n.MetricDirection=(function(){const i={},t=Object.create(i);return t[i[0]="DOWN"]=0,t[i[1]="UP"]=1,t[i[2]="NONE"]=2,t})(),n.MetricColor=(function(){const i={},t=Object.create(i);return t[i[0]="RED"]=0,t[i[1]="GREEN"]=1,t[i[2]="GRAY"]=2,t[i[3]="ORANGE"]=3,t[i[4]="YELLOW"]=4,t[i[5]="BLUE"]=5,t[i[6]="VIOLET"]=6,t[i[7
18]="PRIMARY"]=7,t})(),n.ChartType=(function(){const i={},t=Object.create(i);return t[i[0]="LINE"]=0,t[i[1]="BAR"]=1,t[i[2]="AREA"]=2,t})(),n})();$root.MultiSelect=(()=>{function n(t){if(this.default=[],this.options=[],this.rawValues=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValues=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.maxSelections=0,n.prototype.placeholder="",n.prototype.acceptNewOptions=null,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&e.default.length){o.uint32(26).fork();for(let d=0;d<e.default.length;++d)o.int32(e.default[d]);o.ldelim()}if(e.options!=null&&e.options.length)for(let d=0;d<e.options.length;++d)o.uint32(34).string(e.options[d]);if(e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(82).fork()).ldelim(),e.maxSelections!=null&&Object.hasOwnProperty.call(e,"maxSelections")&&o.uint32(88).int32(e.maxSelections),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(98).string(e.placeholder),e.acceptNewOptions!=null&&Object.hasOwnProperty.call(e,"acceptNewOptions")&&o.uint32(104).bool(e.acceptNewOptions),e.rawValues!=null&&e.rawValues.length)for(let d=0;d<e.rawValues.length;++d)o.uint32(114).string(e.rawValues[d]);return e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(122).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.MultiSelect;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.default.push(e.int32())}else h.default.push(e.int32());break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(e.string());break}case 5:{h.help=e.string();break}case 6:{h.formId=e.string();break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(e.string());break}case 8:{h.setValue=e.bool();break}case 9:{h.disabled=e.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 11:{h.maxSelections=e.int32();break}case 12:{h.placeholder=e.string();break}case 13:{h.acceptNewOptions=e.bool();break}case 15:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.MultiSelect)return e;let o=new $root.MultiSelect;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".MultiSelect.default: array expected");o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]|0}if(e.options){if(!Array.isArray(e.options))throw TypeError(".MultiSelect.options: array expected");o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=String(e.options[d])}if(e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.rawValues){if(!Array.isArray(e.rawValues))throw TypeError(".MultiSelect.rawValues: array expected");o.rawValues=[];for(let d=0;d<e.rawValues.length;++d)o.rawValues[d]=String(e.rawValues[d])}if(e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.maxSelections!=null&&(o.maxSelections=e.maxSelections|0),e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.acceptNewOptions!=null&&(o.acceptNewOptions=!!e.acceptNewOptions),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.options=[],d.rawValues=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.maxSelections=0,d.placeholder=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default&&e.default.length){d.default=[];for(let p=0;p<e.default.length;++p)d.default[p]=e.default[p]}if(e.options&&e.options.length){d.options=[];for(let p=0;p<e.options.length;++p)d.options[p]=e.options[p]}
18if(e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.maxSelections!=null&&e.hasOwnProperty("maxSelections")&&(d.maxSelections=e.maxSelections),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.acceptNewOptions!=null&&e.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=e.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),e.rawValues&&e.rawValues.length){d.rawValues=[];for(let p=0;p<e.rawValues.length;++p)d.rawValues[p]=e.rawValues[p]}return e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MultiSelect"},n})();const NumberInput$1=$root.NumberInput=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.formId="",n.prototype.format="",n.prototype.hasMin=!1,n.prototype.hasMax=!1,n.prototype.dataType=0,n.prototype.default=null,n.prototype.step=0,n.prototype.min=0,n.prototype.max=0,n.prototype.help="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.icon="",n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(26).string(e.formId),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&o.uint32(66).string(e.format),e.hasMin!=null&&Object.hasOwnProperty.call(e,"hasMin")&&o.uint32(88).bool(e.hasMin),e.hasMax!=null&&Object.hasOwnProperty.call(e,"hasMax")&&o.uint32(96).bool(e.hasMax),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&o.uint32(104).int32(e.dataType),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(113).double(e.default),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&o.uint32(121).double(e.step),e.min!=null&&Object.hasOwnProperty.call(e,"min")&&o.uint32(129).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&o.uint32(137).double(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(146).string(e.help),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(153).double(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(160).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(168).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(178).fork()).ldelim(),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(186).string(e.placeholder),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&o.uint32(194).string(e.icon),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(202).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.NumberInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.formId=e.string();break}case 8:{h.format=e.string();break}case 11:{h.hasMin=e.bool();break}case 12:{h.hasMax=e.bool();break}case 13:{h.dataType=e.int32();break}case 14:{h.default=e.double();break}case 15:{h.step=e.double();break}case 16:{h.min=e.double();break}case 17:{h.max=e.double();break}case 18:{h.help=e.string();break}case 19:{h.value=e.double();break}case 20:{h.setValue=e.bool();break}case 21:{h.disabled=e.bool();break}case 22:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 23:{h.placeholder=e.string();break}case 24:{h.icon=e.string();break}case 25:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.NumberInput)return e;let o=new $root.NumberInput;switch(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.formId!=null&&(o.formId=String(e.formId)),e.format!=null&&(o.format=String(e.format)),e.hasMin!=null&&(o.hasMin=!!e.hasMin),e.hasMax!=null&&(o.hasMax=!!e.hasMax),e.dataType){default:if(typeof e.dataType=="number"){o.dataType=e.dataType;break}break;case"INT":case 0:o.dataType=0;break;case"FLOAT":case 1:o.dataType=1;break}if(e.default!=null&&(o.default=Number(e.default)),e.step!=null&&(o.step=Number(e.step)),e.min!=null&&(o.min=Number(e.min)),e.max!=null&&(o.max=Number(e.max)),e.help!=null&&(o.help=String(e.help)),e.value!=null&&(o.value=Number(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.icon!=null&&(o.icon=String(e.icon)),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.formId="",d.format="",d.hasMin=!1,d.hasMax=!1,d.dataType=o.enums===String?"INT":0,d.step=0,d.min=0,d.max=0,d.help="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder="",d.icon=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.format!=null&&e.hasOwnProperty("format")&&(d.format=e.format),e.hasMin!=null&&e.hasOwnProperty("hasMin")&&(
18d.hasMin=e.hasMin),e.hasMax!=null&&e.hasOwnProperty("hasMax")&&(d.hasMax=e.hasMax),e.dataType!=null&&e.hasOwnProperty("dataType")&&(d.dataType=o.enums===String?$root.NumberInput.DataType[e.dataType]===void 0?e.dataType:$root.NumberInput.DataType[e.dataType]:e.dataType),e.default!=null&&e.hasOwnProperty("default")&&(d.default=o.json&&!isFinite(e.default)?String(e.default):e.default,o.oneofs&&(d._default="default")),e.step!=null&&e.hasOwnProperty("step")&&(d.step=o.json&&!isFinite(e.step)?String(e.step):e.step),e.min!=null&&e.hasOwnProperty("min")&&(d.min=o.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(d.max=o.json&&!isFinite(e.max)?String(e.max):e.max),e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.value!=null&&e.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(e.value)?String(e.value):e.value,o.oneofs&&(d._value="value")),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.icon!=null&&e.hasOwnProperty("icon")&&(d.icon=e.icon),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/NumberInput"},n.DataType=(function(){const t={},e=Object.create(t);return e[t[0]="INT"]=0,e[t[1]="FLOAT"]=1,e})(),n})();$root.PageLink=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.page="",n.prototype.label="",n.prototype.icon="",n.prototype.pageScriptHash="",n.prototype.help="",n.prototype.useContainerWidth=null,n.prototype.disabled=!1,n.prototype.external=!1,n.prototype.queryString="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_useContainerWidth",{get:$util.oneOfGetter(i=["useContainerWidth"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.page!=null&&Object.hasOwnProperty.call(e,"page")&&o.uint32(10).string(e.page),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&o.uint32(26).string(e.icon),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&o.uint32(34).string(e.pageScriptHash),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(42).string(e.help),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&o.uint32(48).bool(e.useContainerWidth),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(56).bool(e.disabled),e.external!=null&&Object.hasOwnProperty.call(e,"external")&&o.uint32(64).bool(e.external),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&o.uint32(74).string(e.queryString),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&o.uint32(80).int32(e.iconPosition),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.PageLink;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.page=e.string();break}case 2:{h.label=e.string();break}case 3:{h.icon=e.string();break}case 4:{h.pageScriptHash=e.string();break}case 5:{h.help=e.string();break}case 6:{h.useContainerWidth=e.bool();break}case 7:{h.disabled=e.bool();break}case 8:{h.external=e.bool();break}case 9:{h.queryString=e.string();break}case 10:{h.iconPosition=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageLink)return e;let o=new $root.PageLink;switch(e.page!=null&&(o.page=String(e.page)),e.label!=null&&(o.label=String(e.label)),e.icon!=null&&(o.icon=String(e.icon)),e.pageScriptHash!=null&&(o.pageScriptHash=String(e.pageScriptHash)),e.help!=null&&(o.help=String(e.help)),e.useContainerWidth!=null&&(o.useContainerWidth=!!e.useContainerWidth),e.disabled!=null&&(o.disabled=!!e.disabled),e.external!=null&&(o.external=!!e.external),e.queryString!=null&&(o.queryString=String(e.queryString)),e.iconPosition){default:if(typeof e.iconPosition=="number"){o.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.page="",d.label="",d.icon="",d.pageScriptHash="",d.help="",d.disabled=!1,d.external=!1,d.queryString="",d.iconPosition=o.enums===String?"LEFT":0),e.page!=null&&e.hasOwnProperty("page")&&(d.page=e.page),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.icon!=null&&e.hasOwnProperty("icon")&&(d.icon=e.icon),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(d.pageScriptHash=e.pageScriptHash),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=e.useContainerWidth,o.oneofs&&(d._useContainerWidth="useContainerWidth")),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.external!=null&&e.hasOwnProperty("external")&&(d.external=e.external),e.queryString!=null&&e.hasOwnProperty("queryString")&&(d.queryString=e.queryString),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageLink"},n})();const PlotlyChart$1=$root.PlotlyChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.prototype.spec="",n.prototype.config="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.theme!=null&&Object.hasOwnProperty.call(t,"theme")&&e.uint32(50).string(t.theme),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(58).string(t.id),t.selectionMode!=null&&t.selectionMode.length){e.uint32(66).fork();for(let o=0;o<t.selectionMode.length;++o)e.int32(t.selectionMode[o]);e.ldelim()}return t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(74).string(t.formId),t.spec!=null&&Object.hasOwnProperty.call(t,"spec")&&e.uint32(82).string(t.spec),t.config!=null&&Object.hasOwnProperty.call(t,"config")&&e.uint32(90).string(t.config),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.PlotlyChart;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 6:{p.theme=t.string();break}case 7:{p.id=t.string();break}case 8:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.selectionMode.push(t.int32())}else p.selectionMode.push(t.int32());break}case 9:{p.formId=t.string();break}case 10:{p.spec=t.string();break}case 11:{p.config=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.PlotlyChart)return t;let e=new $root.PlotlyChart;if(t.theme!=null&&(e.theme=String(t.theme)),t.id!=null&&(e.id=String(t.id)),t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");e.selectionMode=[];for(let o=0;o<t.selectionMode.length;++o)switch(t.selectionMode[o]){default:if(typeof t.selectionMode[o]=="number"){e.selectionMode[o]=t.selectionMode[o];break}case"POINTS":case 0:e.selectionMode[o]=0;break;case"BOX":case 1:e.selectionMode[o]=1;break;case"LASSO":case 2:e.selectionMode[o]=2;break}}return t.formId!=null&&(e.formId=String(t.formId)),t.spec!=null&&(e.spec=String(t.spec)),t.config!=null&&(e.config=String(t.config)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.selectionMode=[]),e.defaults&&(o.theme="",o.id="",o.formId="",o.spec="",o.config=""),t.theme!=null&&t.hasOwnProperty("theme")&&(o.theme=t.theme),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.selectionMode&&t.selectionMode.length){o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)o.selectionMode[d]=e.enums===String?$root.PlotlyChart.SelectionMode[t.selectionMode[d]]===void 0?t.selectionMode[d]:$root.PlotlyChart.SelectionMode[t.selectionMode[d]]:t.selectionMode[d]}return t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),t.spec!=null&&t.hasOwnProperty("spec")&&(o.spec=t.spec),t.config!=null&&t.hasOwnProperty("config")&&(o.config=t.config),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PlotlyChart"},n.SelectionMode=(function(){const i={},t=Object.create(i);return t[i[0]="POINTS"]=0,t[i[1]="BOX"]=1,t[i[2]="LASSO"]=2,t})(),n})();$root.Progress=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.value=0,n.prototype.text="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&e.uint32(8).uint32(t.value),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&e.uint32(18).string(t.text),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Progress;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=t.uint32();break}case 2:{p.text=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Progress)return t;let e=new $root.Progress;return t.value!=null&&(e.value=t.value>>>0),t.text!=null&&(e.text=String(t.text)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.value=0,o.text=""),t.value!=null&&t.hasOwnProperty("value")&&(o.value=t.value),t.text!=null&&t.hasOwnProperty("text")&&(o.text=t.text),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Progress"},n})();$root.Radio=(()=>{function n(t){if(this.options=[],this.captions=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.horizontal=!1,n.prototype.labelVisibility=null,n.prototype.captions=$util.emptyArray,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let d=0;d<e.options.length;++d)o.uint32(34).string(e.options[d]);if(e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(72).bool(e.disabled),e.horizontal!=null&&Object.hasOwnProperty.call(e,"horizontal")&&o.uint32(80).bool(e.horizontal),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(90).fork()).ldelim(),e.captions!=null&&e.captions.length)for(let d=0;d<e.captions.length;++d)o.uint32(98).string(e.captions[d]);return e.rawValue!=null&&Object.hasOwnProperty.call(e,"rawValue")&&o.uint32(106).string(e.rawValue),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(114).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Radio;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(e.string());break}case 5:{h.help=e.string();break}case 6:{h.formId=e.string();break}case 13:{h.rawValue=e.string();break}case 8:{h.setValue=e.bool();break}case 9:{h.disabled=e.bool();break}case 10:{h.horizontal=e.bool();break}case 11:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 12:{h.captions&&h.captions.length||(h.captions=[]),h.captions.push(e.string());break}case 14:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Radio)return e;let o=new $root.Radio;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=e.default|0),e.options){if(!Array.isArray(e.options))throw TypeError(".Radio.options: array expected");o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=String(e.options[d])}if(e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.rawValue!=null&&(o.rawValue=String(e.rawValue)),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.horizontal!=null&&(o.horizontal=!!e.horizontal),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}if(e.captions){if(!Array.isArray(e.captions))throw TypeError(".Radio.captions: array expected");o.captions=[];for(let d=0;d<e.captions.length;++d)o.captions[d]=String(e.captions[d])}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.captions=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.horizontal=!1,d.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.options&&e.options.length){d.options=[];for(let p=0;p<e.options.length;++p)d.options[p]=e.options[p]}
18if(e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.horizontal!=null&&e.hasOwnProperty("horizontal")&&(d.horizontal=e.horizontal),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.captions&&e.captions.length){d.captions=[];for(let p=0;p<e.captions.length;++p)d.captions[p]=e.captions[p]}return e.rawValue!=null&&e.hasOwnProperty("rawValue")&&(d.rawValue=e.rawValue,o.oneofs&&(d._rawValue="rawValue")),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Radio"},n})();$root.Selectbox=(()=>{function n(t){if(this.options=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.acceptNewOptions=null,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(24).int32(e.default),e.options!=null&&e.options.length)for(let d=0;d<e.options.length;++d)o.uint32(34).string(e.options[d]);return e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(42).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(50).string(e.formId),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(64).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(82).fork()).ldelim(),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(90).string(e.placeholder),e.acceptNewOptions!=null&&Object.hasOwnProperty.call(e,"acceptNewOptions")&&o.uint32(96).bool(e.acceptNewOptions),e.rawValue!=null&&Object.hasOwnProperty.call(e,"rawValue")&&o.uint32(106).string(e.rawValue),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(114).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Selectbox;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(e.string());break}case 5:{h.help=e.string();break}case 6:{h.formId=e.string();break}case 13:{h.rawValue=e.string();break}case 8:{h.setValue=e.bool();break}case 9:{h.disabled=e.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 11:{h.placeholder=e.string();break}case 12:{h.acceptNewOptions=e.bool();break}case 14:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Selectbox)return e;let o=new $root.Selectbox;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=e.default|0),e.options){if(!Array.isArray(e.options))throw TypeError(".Selectbox.options: array expected");o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=String(e.options[d])}if(e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.rawValue!=null&&(o.rawValue=String(e.rawValue)),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.acceptNewOptions!=null&&(o.acceptNewOptions=!!e.acceptNewOptions),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.options&&e.options.length){d.options=[];for(let p=0;p<e.options.length;++p)d.options[p]=e.options[p]}
18return e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.acceptNewOptions!=null&&e.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=e.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),e.rawValue!=null&&e.hasOwnProperty("rawValue")&&(d.rawValue=e.rawValue,o.oneofs&&(d._rawValue="rawValue")),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Selectbox"},n})();const Skeleton$1=$root.Skeleton=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.style=0,n.prototype.height=null;let i;return Object.defineProperty(n.prototype,"_height",{get:$util.oneOfGetter(i=["height"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&o.uint32(8).int32(e.style),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&o.uint32(16).int32(e.height),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Skeleton;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.style=e.int32();break}case 2:{h.height=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Skeleton)return e;let o=new $root.Skeleton;switch(e.style){default:if(typeof e.style=="number"){o.style=e.style;break}break;case"ELEMENT":case 0:o.style=0;break;case"APP":case 1:o.style=1;break}return e.height!=null&&(o.height=e.height|0),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.style=o.enums===String?"ELEMENT":0),e.style!=null&&e.hasOwnProperty("style")&&(d.style=o.enums===String?$root.Skeleton.SkeletonStyle[e.style]===void 0?e.style:$root.Skeleton.SkeletonStyle[e.style]:e.style),e.height!=null&&e.hasOwnProperty("height")&&(d.height=e.height,o.oneofs&&(d._height="height")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Skeleton"},n.SkeletonStyle=(function(){const t={},e=Object.create(t);return e[t[0]="ELEMENT"]=0,e[t[1]="APP"]=1,e})(),n})(),Slider$1=$root.Slider=(()=>{function n(t){if(this.default=[],this.value=[],this.options=[],this.rawValue=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.formId="",n.prototype.label="",n.prototype.format="",n.prototype.dataType=0,n.prototype.default=$util.emptyArray,n.prototype.min=0,n.prototype.max=0,n.prototype.step=0,n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.prototype.rawValue=$util.emptyArray,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&o.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&o.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){o.uint32(50).fork();for(let d=0;d<e.default.length;++d)o.double(e.default[d]);o.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&o.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&o.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&o.uint32(73).double(e.step),e.value!=null&&e.value.length){o.uint32(82).fork();for(let d=0;d<e.value.length;++d)o.double(e.value[d]);o.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let d=0;d<e.options.length;++d)o.uint32(106).string(e.options[d]);if(e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(136).int32(e.type),e.rawValue!=null&&e.rawValue.length)for(let d=0;d<e.rawValue.length;++d)o.uint32(146).string(e.rawValue[d]);return e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(154).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Slider;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.formId=e.string();break}case 3:{h.label=e.string();break}case 4:{h.format=e.string();break}case 5:{h.dataType=e.int32();break}case 6:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.default.push(e.double())}else h.default.push(e.double());break}case 7:{h.min=e.double();break}case 8:{h.max=e.double();break}case 9:{h.step=e.double();break}case 10:{if(h.value&&h.value.length||(h.value=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.value.push(e.double())}else h.value.push(e.double());break}case 11:{h.setValue=e.bool();break}case 13:{h.options&&h.options.length||(h.options=[]),h.options.push(e.string());break}case 14:{h.help=e.string();break}case 15:{h.disabled=e.bool();break}case 16:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 17:{h.type=e.int32();break}case 18:{h.rawValue&&h.rawValue.length||(h.rawValue=[]),h.rawValue.push(e.string());break}case 19:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Slider)return e;let o=new $root.Slider;switch(e.id!=null&&(o.id=String(e.id)),e.formId!=null&&(o.formId=String(e.formId)),e.label!=null&&(o.label=String(e.label)),e.format!=null&&(o.format=String(e.format)),e.dataType){default:if(typeof e.dataType=="number"){o.dataType=e.dataType;break}break;case"INT":case 0:o.dataType=0;break;case"FLOAT":case 1:o.dataType=1;break;case"DATETIME":case 2:o.dataType=2;break;case"DATE":case 3:o.dataType=3;break;case"TIME":case 4:o.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=Number(e.default[d])}if(e.min!=null&&(o.min=Number(e.min)),e.max!=null&&(o.max=Number(e.max)),e.step!=null&&(o.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=Number(e.value[d])}if(e.setValue!=null&&(o.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=String(e.options[d])}if(e.help!=null&&(o.help=String(e.help)),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"UNSPECIFIED":case 0:o.type=0;break;case"SLIDER":case 1:o.type=1;break;case"SELECT_SLIDER":case 2:o.type=2;break}if(e.rawValue){if(!Array.isArray(e.rawValue))throw TypeError(".Slider.rawValue: array expected");o.rawValue=[];for(let d=0;d<e.rawValue.length;++d)o.rawValue[d]=String(e.rawValue[d])}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.value=[],d.options=[],d.rawValue=[]),o.defaults&&(d.id="",d.formId="",d.label="",d.format="",d.dataType=o.enums===String?"INT":0,d.min=0,d.max=0,d.step=0,d.setValue=!1,d.help="",d.disabled=!1,d.labelVisibility=null,d.type=o.enums===String?"UNSPECIFIED":0),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.format!=null&&e.hasOwnProperty("format")&&(d.format=e.format),e.dataType!=null&&e.hasOwnProperty("dataType")&&(d.dataType=o.enums===String?$root.Slider.DataType[e.dataType]===void 0?e.dataType:$root.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){d.default=[];for(let p=0;p<e.default.length;++p)d.default[p]=o.json&&!isFinite(e.default[p])?String(e.default[p]):e.default[p]}if(e.min!=null&&e.hasOwnProperty("min")&&(d.min=o.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(d.max=o.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty("step")&&(d.step=o.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){d.value=[];for(let p=0;p<e.value.length;++p)d.value[p]=o.json&&!isFinite(e.value[p])?String(e.value[p]):e.value[p]}if(e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.options&&e.options.length){d.options=[];for(let p=0;p<e.options.length;++p)d.options[p]=e.options[p]}
18if(e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Slider.Type[e.type]===void 0?e.type:$root.Slider.Type[e.type]:e.type),e.rawValue&&e.rawValue.length){d.rawValue=[];for(let p=0;p<e.rawValue.length;++p)d.rawValue[p]=e.rawValue[p]}return e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Slider"},n.DataType=(function(){const t={},e=Object.create(t);return e[t[0]="INT"]=0,e[t[1]="FLOAT"]=1,e[t[2]="DATETIME"]=2,e[t[3]="DATE"]=3,e[t[4]="TIME"]=4,e})(),n.Type=(function(){const t={},e=Object.create(t);return e[t[0]="UNSPECIFIED"]=0,e[t[1]="SLIDER"]=1,e[t[2]="SELECT_SLIDER"]=2,e})(),n})();$root.Snow=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.show=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.show!=null&&Object.hasOwnProperty.call(t,"show")&&e.uint32(8).bool(t.show),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Snow;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.show=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Snow)return t;let e=new $root.Snow;return t.show!=null&&(e.show=!!t.show),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.show=!1),t.show!=null&&t.hasOwnProperty("show")&&(o.show=t.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Snow"},n})();$root.Space=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Space;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){default:t.skipType(h&7);break}}return p},n.fromObject=function(t){return t instanceof $root.Space?t:new $root.Space},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Space"},n})();$root.Spinner=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.text="",n.prototype.cache=!1,n.prototype.showTime=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&e.uint32(10).string(t.text),t.cache!=null&&Object.hasOwnProperty.call(t,"cache")&&e.uint32(16).bool(t.cache),t.showTime!=null&&Object.hasOwnProperty.call(t,"showTime")&&e.uint32(24).bool(t.showTime),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Spinner;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.text=t.string();break}case 2:{p.cache=t.bool();break}case 3:{p.showTime=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Spinner)return t;let e=new $root.Spinner;
18return t.text!=null&&(e.text=String(t.text)),t.cache!=null&&(e.cache=!!t.cache),t.showTime!=null&&(e.showTime=!!t.showTime),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.text="",o.cache=!1,o.showTime=!1),t.text!=null&&t.hasOwnProperty("text")&&(o.text=t.text),t.cache!=null&&t.hasOwnProperty("cache")&&(o.cache=t.cache),t.showTime!=null&&t.hasOwnProperty("showTime")&&(o.showTime=t.showTime),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Spinner"},n})();const Table$2=$root.Table=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.arrowData=null,n.prototype.borderMode=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,e.uint32(10).fork()).ldelim(),t.borderMode!=null&&Object.hasOwnProperty.call(t,"borderMode")&&e.uint32(16).int32(t.borderMode),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Table;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 2:{p.borderMode=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Table)return t;let e=new $root.Table;if(t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".Table.arrowData: object expected");e.arrowData=$root.ArrowData.fromObject(t.arrowData)}switch(t.borderMode){default:if(typeof t.borderMode=="number"){e.borderMode=t.borderMode;break}break;case"ALL":case 0:e.borderMode=0;break;case"NONE":case 1:e.borderMode=1;break;case"HORIZONTAL":case 2:e.borderMode=2;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.arrowData=null,o.borderMode=e.enums===String?"ALL":0),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(o.arrowData=$root.ArrowData.toObject(t.arrowData,e)),t.borderMode!=null&&t.hasOwnProperty("borderMode")&&(o.borderMode=e.enums===String?$root.Table.BorderMode[t.borderMode]===void 0?t.borderMode:$root.Table.BorderMode[t.borderMode]:t.borderMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Table"},n.BorderMode=(function(){const i={},t=Object.create(i);return t[i[0]="ALL"]=0,t[i[1]="NONE"]=1,t[i[2]="HORIZONTAL"]=2,t})(),n})();$root.Text=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.body="",n.prototype.help="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&e.uint32(10).string(t.body),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&e.uint32(18).string(t.help),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Text;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=t.string();break}case 2:{p.help=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Text)return t;let e=new $root.Text;return t.body!=null&&(e.body=String(t.body)),t.help!=null&&(e.help=String(t.help)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.body="",o.help=""),t.body!=null&&t.hasOwnProperty("body")&&(o.body=t.body),t.help!=null&&t.hasOwnProperty("help")&&(o.help=t.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Text"},n})();$root.TextArea=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(26).string(e.default),e.maxChars!=null&&Object.hasOwnProperty.call(e,"maxChars")&&o.uint32(40).uint32(e.maxChars),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(58).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(66).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(72).bool(e.setValue),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(82).string(e.placeholder),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(98).fork()).ldelim(),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(106).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.TextArea;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.string();break}case 5:{h.maxChars=e.uint32();break}case 6:{h.help=e.string();break}case 7:{h.formId=e.string();break}case 8:{h.value=e.string();break}case 9:{h.setValue=e.bool();break}case 10:{h.placeholder=e.string();break}case 11:{h.disabled=e.bool();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 13:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.TextArea)return e;let o=new $root.TextArea;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=String(e.default)),e.maxChars!=null&&(o.maxChars=e.maxChars>>>0),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=String(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.placeholder="",d.disabled=!1,d.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.maxChars!=null&&e.hasOwnProperty("maxChars")&&(d.maxChars=e.maxChars),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value,o.oneofs&&(d._value="value")),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/TextArea"},n})();const TextInput$1=$root.TextInput=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.type=0,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.autocomplete="",n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.icon="",n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(26).string(e.default),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(32).int32(e.type),e.maxChars!=null&&Object.hasOwnProperty.call(e,"maxChars")&&o.uint32(40).uint32(e.maxChars),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(58).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(66).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(72).bool(e.setValue),e.autocomplete!=null&&Object.hasOwnProperty.call(e,"autocomplete")&&o.uint32(82).string(e.autocomplete),e.placeholder!=null&&Object.hasOwnProperty.call(e,"placeholder")&&o.uint32(90).string(e.placeholder),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(96).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(106).fork()).ldelim(),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&o.uint32(114).string(e.icon),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(122).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.TextInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.string();break}case 4:{h.type=e.int32();break}case 5:{h.maxChars=e.uint32();break}case 6:{h.help=e.string();break}case 7:{h.formId=e.string();break}case 8:{h.value=e.string();break}case 9:{h.setValue=e.bool();break}case 10:{h.autocomplete=e.string();break}case 11:{h.placeholder=e.string();break}case 12:{h.disabled=e.bool();break}case 13:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 14:{h.icon=e.string();break}case 15:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.TextInput)return e;let o=new $root.TextInput;switch(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=String(e.default)),e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"DEFAULT":case 0:o.type=0;break;case"PASSWORD":case 1:o.type=1;break}if(e.maxChars!=null&&(o.maxChars=e.maxChars>>>0),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=String(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.autocomplete!=null&&(o.autocomplete=String(e.autocomplete)),e.placeholder!=null&&(o.placeholder=String(e.placeholder)),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.icon!=null&&(o.icon=String(e.icon)),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.type=o.enums===String?"DEFAULT":0,d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.autocomplete="",d.placeholder="",d.disabled=!1,d.labelVisibility=null,d.icon=""),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.TextInput.Type[e.type]===void 0?e.type:$root.TextInput.Type[e.type]:e.type),e.maxChars!=null&&e.hasOwnProperty("maxChars")&&(d.maxChars=e.maxChars),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value,o.oneofs&&(d._value="value")),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.autocomplete!=null&&e.hasOwnProperty("autocomplete")&&(d.autocomplete=e.autocomplete),e.placeholder!=null&&e.hasOwnProperty("placeholder")&&(d.placeholder=e.placeholder),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.icon!=null&&e.hasOwnProperty("icon")&&(d.icon=e.icon),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/TextInput"},n.Type=(function(){const t={},e=Object.create(t);return e[t[0]="DEFAULT"]=0,e[t[1]="PASSWORD"]=1,e})(),n})();$root.TimeInput=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.queryParamKey=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_queryParamKey",{get:$util.oneOfGetter(i=["queryParamKey"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&o.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&o.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&o.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&o.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&o.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,o.uint32(74).fork()).ldelim(),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&o.uint32(80).int64(e.step),e.queryParamKey!=null&&Object.hasOwnProperty.call(e,"queryParamKey")&&o.uint32(90).string(e.queryParamKey),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.TimeInput;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=e.string();break}case 2:{h.label=e.string();break}case 3:{h.default=e.string();break}case 4:{h.help=e.string();break}case 5:{h.formId=e.string();break}case 6:{h.value=e.string();break}case 7:{h.setValue=e.bool();break}case 8:{h.disabled=e.bool();break}case 9:{h.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 10:{h.step=e.int64();break}case 11:{h.queryParamKey=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.TimeInput)return e;let o=new $root.TimeInput;if(e.id!=null&&(o.id=String(e.id)),e.label!=null&&(o.label=String(e.label)),e.default!=null&&(o.default=String(e.default)),e.help!=null&&(o.help=String(e.help)),e.formId!=null&&(o.formId=String(e.formId)),e.value!=null&&(o.value=String(e.value)),e.setValue!=null&&(o.setValue=!!e.setValue),e.disabled!=null&&(o.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.step!=null&&($util.Long?(o.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?o.step=parseInt(e.step,10):typeof e.step=="number"?o.step=e.step:typeof e.step=="object"&&(o.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.queryParamKey!=null&&(o.queryParamKey=String(e.queryParamKey)),o},n.toObject=function(e,o){o||(o={});let d={};if(o.defaults)if(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,$util.Long){let p=new $util.Long(0,0,!1);d.step=o.longs===String?p.toString():o.longs===Number?p.toNumber():p}else d.step=o.longs===String?"0":0;return e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(d.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(d.default=e.default,o.oneofs&&(d._default="default")),e.help!=null&&e.hasOwnProperty("help")&&(
18d.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(d.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value,o.oneofs&&(d._value="value")),e.setValue!=null&&e.hasOwnProperty("setValue")&&(d.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(d.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,o)),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?d.step=o.longs===String?String(e.step):e.step:d.step=o.longs===String?$util.Long.prototype.toString.call(e.step):o.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.queryParamKey!=null&&e.hasOwnProperty("queryParamKey")&&(d.queryParamKey=e.queryParamKey,o.oneofs&&(d._queryParamKey="queryParamKey")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/TimeInput"},n})();$root.Toast=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.body="",n.prototype.icon="",n.prototype.duration=null;let i;return Object.defineProperty(n.prototype,"_duration",{get:$util.oneOfGetter(i=["duration"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&o.uint32(10).string(e.body),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&o.uint32(18).string(e.icon),e.duration!=null&&Object.hasOwnProperty.call(e,"duration")&&o.uint32(24).int32(e.duration),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Toast;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=e.string();break}case 2:{h.icon=e.string();break}case 3:{h.duration=e.int32();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Toast)return e;let o=new $root.Toast;return e.body!=null&&(o.body=String(e.body)),e.icon!=null&&(o.icon=String(e.icon)),e.duration!=null&&(o.duration=e.duration|0),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.body="",d.icon=""),e.body!=null&&e.hasOwnProperty("body")&&(d.body=e.body),e.icon!=null&&e.hasOwnProperty("icon")&&(d.icon=e.icon),e.duration!=null&&e.hasOwnProperty("duration")&&(d.duration=e.duration,o.oneofs&&(d._duration="duration")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Toast"},n})();$root.VegaLiteChart=(()=>{function n(i){if(this.datasets=[],this.selectionMode=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.spec!=null&&Object.hasOwnProperty.call(t,"spec")&&e.uint32(10).string(t.spec),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&$root.ArrowData.encode(t.data,e.uint32(18).fork()).ldelim(),t.datasets!=null&&t.datasets.length)for(let o=0;o<t.datasets.length;++o)$root.ArrowNamedDataSet.encode(t.datasets[o],e.uint32(34).fork()).ldelim();if(t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&e.uint32(40).bool(t.useContainerWidth),t.theme!=null&&Object.hasOwnProperty.call(t,"theme")&&e.uint32(50).string(t.theme),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&e.uint32(58).string(t.id),t.selectionMode!=null&&t.selectionMode.length)for(let o=0;o<t.selectionMode.length;++o)e.uint32(66).string(t.selectionMode[o]);return t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&e.uint32(74).string(t.formId),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.VegaLiteChart;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=t.string();break}case 2:{p.data=$root.ArrowData.decode(t,t.uint32());break}case 4:{p.datasets&&p.datasets.length||(p.datasets=[]),p.datasets.push($root.ArrowNamedDataSet.decode(t,t.uint32()));break}case 5:{p.useContainerWidth=t.bool();break}case 6:{p.theme=t.string();break}case 7:{p.id=t.string();break}case 8:{p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),p.selectionMode.push(t.string());break}case 9:{p.formId=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.VegaLiteChart)return t;let e=new $root.VegaLiteChart;if(t.spec!=null&&(e.spec=String(t.spec)),t.data!=null){if(typeof t.data!="object")throw TypeError(".VegaLiteChart.data: object expected");e.data=$root.ArrowData.fromObject(t.data)}if(t.datasets){if(!Array.isArray(t.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");e.datasets=[];for(let o=0;o<t.datasets.length;++o){if(typeof t.datasets[o]!="object")throw TypeError(".VegaLiteChart.datasets: object expected");e.datasets[o]=$root.ArrowNamedDataSet.fromObject(t.datasets[o])}}if(t.useContainerWidth!=null&&(e.useContainerWidth=!!t.useContainerWidth),t.theme!=null&&(e.theme=String(t.theme)),t.id!=null&&(e.id=String(t.id)),t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".VegaLiteChart.selectionMode: array expected");
18e.selectionMode=[];for(let o=0;o<t.selectionMode.length;++o)e.selectionMode[o]=String(t.selectionMode[o])}return t.formId!=null&&(e.formId=String(t.formId)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.datasets=[],o.selectionMode=[]),e.defaults&&(o.spec="",o.data=null,o.useContainerWidth=!1,o.theme="",o.id="",o.formId=""),t.spec!=null&&t.hasOwnProperty("spec")&&(o.spec=t.spec),t.data!=null&&t.hasOwnProperty("data")&&(o.data=$root.ArrowData.toObject(t.data,e)),t.datasets&&t.datasets.length){o.datasets=[];for(let d=0;d<t.datasets.length;++d)o.datasets[d]=$root.ArrowNamedDataSet.toObject(t.datasets[d],e)}if(t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=t.useContainerWidth),t.theme!=null&&t.hasOwnProperty("theme")&&(o.theme=t.theme),t.id!=null&&t.hasOwnProperty("id")&&(o.id=t.id),t.selectionMode&&t.selectionMode.length){o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)o.selectionMode[d]=t.selectionMode[d]}return t.formId!=null&&t.hasOwnProperty("formId")&&(o.formId=t.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/VegaLiteChart"},n})();$root.SubtitleTrack=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.label="",n.prototype.url="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(10).string(t.label),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(18).string(t.url),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.SubtitleTrack;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=t.string();break}case 2:{p.url=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.SubtitleTrack)return t;let e=new $root.SubtitleTrack;return t.label!=null&&(e.label=String(t.label)),t.url!=null&&(e.url=String(t.url)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.label="",o.url=""),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SubtitleTrack"},n})();const Video$1=$root.Video=(()=>{function n(t){if(this.subtitles=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.type=0,n.prototype.subtitles=$util.emptyArray,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.muted=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.startTime!=null&&Object.hasOwnProperty.call(e,"startTime")&&o.uint32(24).int32(e.startTime),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(40).int32(e.type),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&o.uint32(50).string(e.url),e.subtitles!=null&&e.subtitles.length)for(let d=0;d<e.subtitles.length;++d)$root.SubtitleTrack.encode(e.subtitles[d],o.uint32(58).fork()).ldelim();return e.endTime!=null&&Object.hasOwnProperty.call(e,"endTime")&&o.uint32(64).int32(e.endTime),e.loop!=null&&Object.hasOwnProperty.call(e,"loop")&&o.uint32(72).bool(e.loop),e.autoplay!=null&&Object.hasOwnProperty.call(e,"autoplay")&&o.uint32(80).bool(e.autoplay),e.muted!=null&&Object.hasOwnProperty.call(e,"muted")&&o.uint32(88).bool(e.muted),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&o.uint32(98).string(e.id),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,o.uint32(106).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.Video;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 6:{h.url=e.string();break}case 3:{h.startTime=e.int32();break}case 5:{h.type=e.int32();break}case 7:{h.subtitles&&h.subtitles.length||(h.subtitles=[]),h.subtitles.push($root.SubtitleTrack.decode(e,e.uint32()));break}case 8:{h.endTime=e.int32();break}case 9:{h.loop=e.bool();break}case 10:{h.autoplay=e.bool();break}case 11:{h.muted=e.bool();break}case 12:{h.id=e.string();break}case 13:{h.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.Video)return e;let o=new $root.Video;switch(e.url!=null&&(o.url=String(e.url)),e.startTime!=null&&(o.startTime=e.startTime|0),e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"UNUSED":case 0:o.type=0;break;case"NATIVE":case 1:o.type=1;break;case"YOUTUBE_IFRAME":case 2:o.type=2;break}
18if(e.subtitles){if(!Array.isArray(e.subtitles))throw TypeError(".Video.subtitles: array expected");o.subtitles=[];for(let d=0;d<e.subtitles.length;++d){if(typeof e.subtitles[d]!="object")throw TypeError(".Video.subtitles: object expected");o.subtitles[d]=$root.SubtitleTrack.fromObject(e.subtitles[d])}}if(e.endTime!=null&&(o.endTime=e.endTime|0),e.loop!=null&&(o.loop=!!e.loop),e.autoplay!=null&&(o.autoplay=!!e.autoplay),e.muted!=null&&(o.muted=!!e.muted),e.id!=null&&(o.id=String(e.id)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Video.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.subtitles=[]),o.defaults&&(d.startTime=0,d.type=o.enums===String?"UNUSED":0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.muted=!1,d.id=""),e.startTime!=null&&e.hasOwnProperty("startTime")&&(d.startTime=e.startTime),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Video.Type[e.type]===void 0?e.type:$root.Video.Type[e.type]:e.type),e.url!=null&&e.hasOwnProperty("url")&&(d.url=e.url),e.subtitles&&e.subtitles.length){d.subtitles=[];for(let p=0;p<e.subtitles.length;++p)d.subtitles[p]=$root.SubtitleTrack.toObject(e.subtitles[p],o)}return e.endTime!=null&&e.hasOwnProperty("endTime")&&(d.endTime=e.endTime),e.loop!=null&&e.hasOwnProperty("loop")&&(d.loop=e.loop),e.autoplay!=null&&e.hasOwnProperty("autoplay")&&(d.autoplay=e.autoplay),e.muted!=null&&e.hasOwnProperty("muted")&&(d.muted=e.muted),e.id!=null&&e.hasOwnProperty("id")&&(d.id=e.id),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Video"},n.Type=(function(){const t={},e=Object.create(t);return e[t[0]="UNUSED"]=0,e[t[1]="NATIVE"]=1,e[t[2]="YOUTUBE_IFRAME"]=2,e})(),n})();$root.Transient=(()=>{function n(i){if(this.elements=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.elements=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.elements!=null&&t.elements.length)for(let o=0;o<t.elements.length;++o)$root.Element.encode(t.elements[o],e.uint32(10).fork()).ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Transient;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.elements&&p.elements.length||(p.elements=[]),p.elements.push($root.Element.decode(t,t.uint32()));break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Transient)return t;let e=new $root.Transient;if(t.elements){if(!Array.isArray(t.elements))throw TypeError(".Transient.elements: array expected");e.elements=[];for(let o=0;o<t.elements.length;++o){if(typeof t.elements[o]!="object")throw TypeError(".Transient.elements: object expected");e.elements[o]=$root.Element.fromObject(t.elements[o])}}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.elements=[]),t.elements&&t.elements.length){o.elements=[];for(let d=0;d<t.elements.length;++d)o.elements[d]=$root.Element.toObject(t.elements[d],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Transient"},n})();const ForwardMsg=$root.ForwardMsg=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.hash="",n.prototype.metadata=null,n.prototype.newSession=null,n.prototype.delta=null,n.prototype.pageInfoChanged=null,n.prototype.pageConfigChanged=null,n.prototype.scriptFinished=null,n.prototype.gitInfoChanged=null,n.prototype.pageProfile=null,n.prototype.sessionStatusChanged=null,n.prototype.sessionEvent=null,n.prototype.navigation=null,n.prototype.pageNotFound=null,n.prototype.fileUrlsResponse=null,n.prototype.autoRerun=null,n.prototype.logo=null,n.prototype.authRedirect=null,n.prototype.parentMessage=null,n.prototype.refHash=null,n.prototype.deferredFileResponse=null,n.prototype.heartbeatAck=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","fileUrlsResponse","autoRerun","logo","authRedirect","parentMessage","refHash","deferredFileResponse","heartbeatAck"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.hash!=null&&Object.hasOwnProperty.call(e,"hash")&&o.uint32(10).string(e.hash),e.metadata!=null&&Object.hasOwnProperty.call(e,"metadata")&&$root.ForwardMsgMetadata.encode(e.metadata,o.uint32(18).fork()).ldelim(),e.newSession!=null&&Object.hasOwnProperty.call(e,"newSession")&&$root.NewSession.encode(e.newSession,o.uint32(34).fork()).ldelim(),e.delta!=null&&Object.hasOwnProperty.call(e,"delta")&&$root.Delta.encode(e.delta,o.uint32(42).fork()).ldelim(),e.scriptFinished!=null&&Object.hasOwnProperty.call(e,"scriptFinished")&&o.uint32(48).int32(e.scriptFinished),e.sessionStatusChanged!=null&&Object.hasOwnProperty.call(e,"sessionStatusChanged")&&$root.SessionStatus.encode(e.sessionStatusChanged,o.uint32(74).fork()).ldelim(),e.sessionEvent!=null&&Object.hasOwnProperty.call(e,"sessionEvent")&&$root.SessionEvent.encode(e.sessionEvent,o.uint32(82).fork()).ldelim(),e.refHash!=null&&Object.hasOwnProperty.call(e,"refHash")&&o.uint32(90).string(e.refHash),e.pageInfoChanged!=null&&Object.hasOwnProperty.call(e,"pageInfoChanged")&&$root.PageInfo.encode(e.pageInfoChanged,o.uint32(98).fork()).ldelim(),e.pageConfigChanged!=null&&Object.hasOwnProperty.call(e,"pageConfigChanged")&&$root.PageConfig.encode(e.page
18ConfigChanged,o.uint32(106).fork()).ldelim(),e.gitInfoChanged!=null&&Object.hasOwnProperty.call(e,"gitInfoChanged")&&$root.GitInfo.encode(e.gitInfoChanged,o.uint32(114).fork()).ldelim(),e.pageNotFound!=null&&Object.hasOwnProperty.call(e,"pageNotFound")&&$root.PageNotFound.encode(e.pageNotFound,o.uint32(122).fork()).ldelim(),e.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&o.uint32(138).string(e.debugLastBackmsgId),e.pageProfile!=null&&Object.hasOwnProperty.call(e,"pageProfile")&&$root.PageProfile.encode(e.pageProfile,o.uint32(146).fork()).ldelim(),e.fileUrlsResponse!=null&&Object.hasOwnProperty.call(e,"fileUrlsResponse")&&$root.FileURLsResponse.encode(e.fileUrlsResponse,o.uint32(154).fork()).ldelim(),e.parentMessage!=null&&Object.hasOwnProperty.call(e,"parentMessage")&&$root.ParentMessage.encode(e.parentMessage,o.uint32(162).fork()).ldelim(),e.autoRerun!=null&&Object.hasOwnProperty.call(e,"autoRerun")&&$root.AutoRerun.encode(e.autoRerun,o.uint32(170).fork()).ldelim(),e.logo!=null&&Object.hasOwnProperty.call(e,"logo")&&$root.Logo.encode(e.logo,o.uint32(178).fork()).ldelim(),e.navigation!=null&&Object.hasOwnProperty.call(e,"navigation")&&$root.Navigation.encode(e.navigation,o.uint32(186).fork()).ldelim(),e.authRedirect!=null&&Object.hasOwnProperty.call(e,"authRedirect")&&$root.AuthRedirect.encode(e.authRedirect,o.uint32(194).fork()).ldelim(),e.deferredFileResponse!=null&&Object.hasOwnProperty.call(e,"deferredFileResponse")&&$root.DeferredFileResponse.encode(e.deferredFileResponse,o.uint32(202).fork()).ldelim(),e.heartbeatAck!=null&&Object.hasOwnProperty.call(e,"heartbeatAck")&&o.uint32(208).bool(e.heartbeatAck),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.ForwardMsg;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.hash=e.string();break}case 2:{h.metadata=$root.ForwardMsgMetadata.decode(e,e.uint32());break}case 4:{h.newSession=$root.NewSession.decode(e,e.uint32());break}case 5:{h.delta=$root.Delta.decode(e,e.uint32());break}case 12:{h.pageInfoChanged=$root.PageInfo.decode(e,e.uint32());break}case 13:{h.pageConfigChanged=$root.PageConfig.decode(e,e.uint32());break}case 6:{h.scriptFinished=e.int32();break}case 14:{h.gitInfoChanged=$root.GitInfo.decode(e,e.uint32());break}case 18:{h.pageProfile=$root.PageProfile.decode(e,e.uint32());break}case 9:{h.sessionStatusChanged=$root.SessionStatus.decode(e,e.uint32());break}case 10:{h.sessionEvent=$root.SessionEvent.decode(e,e.uint32());break}case 23:{h.navigation=$root.Navigation.decode(e,e.uint32());break}case 15:{h.pageNotFound=$root.PageNotFound.decode(e,e.uint32());break}case 19:{h.fileUrlsResponse=$root.FileURLsResponse.decode(e,e.uint32());break}case 21:{h.autoRerun=$root.AutoRerun.decode(e,e.uint32());break}case 22:{h.logo=$root.Logo.decode(e,e.uint32());break}case 24:{h.authRedirect=$root.AuthRedirect.decode(e,e.uint32());break}case 20:{h.parentMessage=$root.ParentMessage.decode(e,e.uint32());break}case 11:{h.refHash=e.string();break}case 25:{h.deferredFileResponse=$root.DeferredFileResponse.decode(e,e.uint32());break}case 26:{h.heartbeatAck=e.bool();break}case 17:{h.debugLastBackmsgId=e.string();break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.ForwardMsg)return e;let o=new $root.ForwardMsg;if(e.hash!=null&&(o.hash=String(e.hash)),e.metadata!=null){if(typeof e.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");o.metadata=$root.ForwardMsgMetadata.fromObject(e.metadata)}if(e.newSession!=null){if(typeof e.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");o.newSession=$root.NewSession.fromObject(e.newSession)}if(e.delta!=null){if(typeof e.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");o.delta=$root.Delta.fromObject(e.delta)}if(e.pageInfoChanged!=null){if(typeof e.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");o.pageInfoChanged=$root.PageInfo.fromObject(e.pageInfoChanged)}if(e.pageConfigChanged!=null){if(typeof e.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");o.pageConfigChanged=$root.PageConfig.fromObject(e.pageConfigChanged)}switch(e.scriptFinished){default:if(typeof e.scriptFinished=="number"){o.scriptFinished=e.scriptFinished;break}break;case"FINISHED_SUCCESSFULLY":case 0:o.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:o.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:o.scriptFinished=2;break;case"FINISHED_FRAGMENT_RUN_SUCCESSFULLY":case 3:o.scriptFinished=3;break}if(e.gitInfoChanged!=null){if(typeof e.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");o.gitInfoChanged=$root.GitInfo.fromObject(e.gitInfoChanged)}if(e.pageProfile!=null){if(typeof e.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");o.pageProfile=$root.PageProfile.fromObject(e.pageProfile)}if(e.sessionStatusChanged!=null){if(typeof e.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");o.sessionStatusChanged=$root.SessionStatus.fromObject(e.sessionStatusChanged)}if(e.sessionEvent!=null){if(typeof e.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");o.sessionEvent=$root.SessionEvent.fromObject(e.sessionEvent)}if(e.navigation!=null){if(typeof e.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");o.navigation=$root.Navigation.fromObject(e.navigation)}if(e.pageNotFound!=null){if(typeof e.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");o.pageNotFound=$root.PageNotFound.fromObject(e.pageNotFound)}if(e.fileUrlsResponse!=null){if(typeof e.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");o.fileUrlsResponse=$root.FileURLsResponse.fromObject(e.fileUrlsResponse)}if(e.autoRerun!=null){if(typeof e.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");o.autoRerun=$root.AutoRerun.fromObject(e.autoRerun)}if(e.logo!=null){if(typeof e.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");o.logo=$root.Logo.fromObject(e.logo)}if(e.authRedirect!=null){if(typeof e.authRedirect!="object")throw TypeError(".ForwardMsg.authRedirect: object expected");o.authRedirect=$root.AuthRedirect.fromObject(e.authRedirect)}if(e.parentMessage!=null){if(typeof e.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");o.parentMessage=$root.ParentMessage.fromObject(e.parentMessage)}if(e.refHash!=null&&(o.refHash=String(e.refHash)),e.deferredFileResponse!=null){if(typeof e.deferredFileResponse!="object")throw TypeError(".ForwardMsg.deferredFileResponse: object expected");o.deferredFileResponse=$root.DeferredFileResponse.fromObject(e.deferredFileResponse)}return e.heartbeatAck!=null&&(o.heartbeatAck=!!e.heartbeatAck),e.debugL
18astBackmsgId!=null&&(o.debugLastBackmsgId=String(e.debugLastBackmsgId)),o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.hash="",d.metadata=null,d.debugLastBackmsgId=""),e.hash!=null&&e.hasOwnProperty("hash")&&(d.hash=e.hash),e.metadata!=null&&e.hasOwnProperty("metadata")&&(d.metadata=$root.ForwardMsgMetadata.toObject(e.metadata,o)),e.newSession!=null&&e.hasOwnProperty("newSession")&&(d.newSession=$root.NewSession.toObject(e.newSession,o),o.oneofs&&(d.type="newSession")),e.delta!=null&&e.hasOwnProperty("delta")&&(d.delta=$root.Delta.toObject(e.delta,o),o.oneofs&&(d.type="delta")),e.scriptFinished!=null&&e.hasOwnProperty("scriptFinished")&&(d.scriptFinished=o.enums===String?$root.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]===void 0?e.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,o.oneofs&&(d.type="scriptFinished")),e.sessionStatusChanged!=null&&e.hasOwnProperty("sessionStatusChanged")&&(d.sessionStatusChanged=$root.SessionStatus.toObject(e.sessionStatusChanged,o),o.oneofs&&(d.type="sessionStatusChanged")),e.sessionEvent!=null&&e.hasOwnProperty("sessionEvent")&&(d.sessionEvent=$root.SessionEvent.toObject(e.sessionEvent,o),o.oneofs&&(d.type="sessionEvent")),e.refHash!=null&&e.hasOwnProperty("refHash")&&(d.refHash=e.refHash,o.oneofs&&(d.type="refHash")),e.pageInfoChanged!=null&&e.hasOwnProperty("pageInfoChanged")&&(d.pageInfoChanged=$root.PageInfo.toObject(e.pageInfoChanged,o),o.oneofs&&(d.type="pageInfoChanged")),e.pageConfigChanged!=null&&e.hasOwnProperty("pageConfigChanged")&&(d.pageConfigChanged=$root.PageConfig.toObject(e.pageConfigChanged,o),o.oneofs&&(d.type="pageConfigChanged")),e.gitInfoChanged!=null&&e.hasOwnProperty("gitInfoChanged")&&(d.gitInfoChanged=$root.GitInfo.toObject(e.gitInfoChanged,o),o.oneofs&&(d.type="gitInfoChanged")),e.pageNotFound!=null&&e.hasOwnProperty("pageNotFound")&&(d.pageNotFound=$root.PageNotFound.toObject(e.pageNotFound,o),o.oneofs&&(d.type="pageNotFound")),e.debugLastBackmsgId!=null&&e.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=e.debugLastBackmsgId),e.pageProfile!=null&&e.hasOwnProperty("pageProfile")&&(d.pageProfile=$root.PageProfile.toObject(e.pageProfile,o),o.oneofs&&(d.type="pageProfile")),e.fileUrlsResponse!=null&&e.hasOwnProperty("fileUrlsResponse")&&(d.fileUrlsResponse=$root.FileURLsResponse.toObject(e.fileUrlsResponse,o),o.oneofs&&(d.type="fileUrlsResponse")),e.parentMessage!=null&&e.hasOwnProperty("parentMessage")&&(d.parentMessage=$root.ParentMessage.toObject(e.parentMessage,o),o.oneofs&&(d.type="parentMessage")),e.autoRerun!=null&&e.hasOwnProperty("autoRerun")&&(d.autoRerun=$root.AutoRerun.toObject(e.autoRerun,o),o.oneofs&&(d.type="autoRerun")),e.logo!=null&&e.hasOwnProperty("logo")&&(d.logo=$root.Logo.toObject(e.logo,o),o.oneofs&&(d.type="logo")),e.navigation!=null&&e.hasOwnProperty("navigation")&&(d.navigation=$root.Navigation.toObject(e.navigation,o),o.oneofs&&(d.type="navigation")),e.authRedirect!=null&&e.hasOwnProperty("authRedirect")&&(d.authRedirect=$root.AuthRedirect.toObject(e.authRedirect,o),o.oneofs&&(d.type="authRedirect")),e.deferredFileResponse!=null&&e.hasOwnProperty("deferredFileResponse")&&(d.deferredFileResponse=$root.DeferredFileResponse.toObject(e.deferredFileResponse,o),o.oneofs&&(d.type="deferredFileResponse")),e.heartbeatAck!=null&&e.hasOwnProperty("heartbeatAck")&&(d.heartbeatAck=e.heartbeatAck,o.oneofs&&(d.type="heartbeatAck")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsg"},n.ScriptFinishedStatus=(function(){const t={},e=Object.create(t);return e[t[0]="FINISHED_SUCCESSFULLY"]=0,e[t[1]="FINISHED_WITH_COMPILE_ERROR"]=1,e[t[2]="FINISHED_EARLY_FOR_RERUN"]=2,e[t[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,e})(),n})();$root.DeferredFileResponse=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.fileId="",n.prototype.url="",n.prototype.errorMsg="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.fileId!=null&&Object.hasOwnProperty.call(t,"fileId")&&e.uint32(10).string(t.fileId),t.url
18!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(18).string(t.url),t.errorMsg!=null&&Object.hasOwnProperty.call(t,"errorMsg")&&e.uint32(26).string(t.errorMsg),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.DeferredFileResponse;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=t.string();break}case 2:{p.url=t.string();break}case 3:{p.errorMsg=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.DeferredFileResponse)return t;let e=new $root.DeferredFileResponse;return t.fileId!=null&&(e.fileId=String(t.fileId)),t.url!=null&&(e.url=String(t.url)),t.errorMsg!=null&&(e.errorMsg=String(t.errorMsg)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.fileId="",o.url="",o.errorMsg=""),t.fileId!=null&&t.hasOwnProperty("fileId")&&(o.fileId=t.fileId),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),t.errorMsg!=null&&t.hasOwnProperty("errorMsg")&&(o.errorMsg=t.errorMsg),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DeferredFileResponse"},n})();const ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function n(i){if(this.deltaPath=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.cacheable=!1,n.prototype.deltaPath=$util.emptyArray,n.prototype.activeScriptHash="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.cacheable!=null&&Object.hasOwnProperty.call(t,"cacheable")&&e.uint32(8).bool(t.cacheable),t.deltaPath!=null&&t.deltaPath.length){e.uint32(18).fork();for(let o=0;o<t.deltaPath.length;++o)e.uint32(t.deltaPath[o]);e.ldelim()}return t.activeScriptHash!=null&&Object.hasOwnProperty.call(t,"activeScriptHash")&&e.uint32(34).string(t.activeScriptHash),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ForwardMsgMetadata;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cacheable=t.bool();break}case 2:{if(p.deltaPath&&p.deltaPath.length||(p.deltaPath=[]),(h&7)===2){let y=t.uint32()+t.pos;for(;t.pos<y;)p.deltaPath.push(t.uint32())}else p.deltaPath.push(t.uint32());break}case 4:{p.activeScriptHash=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ForwardMsgMetadata)return t;let e=new $root.ForwardMsgMetadata;if(t.cacheable!=null&&(e.cacheable=!!t.cacheable),t.deltaPath){if(!Array.isArray(t.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");e.deltaPath=[];for(let o=0;o<t.deltaPath.length;++o)e.deltaPath[o]=t.deltaPath[o]>>>0}return t.activeScriptHash!=null&&(e.activeScriptHash=String(t.activeScriptHash)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.deltaPath=[]),e.defaults&&(o.cacheable=!1,o.activeScriptHash=""),t.cacheable!=null&&t.hasOwnProperty("cacheable")&&(o.cacheable=t.cacheable),t.deltaPath&&t.deltaPath.length){o.deltaPath=[];for(let d=0;d<t.deltaPath.length;++d)o.deltaPath[d]=t.deltaPath[d]}return t.activeScriptHash!=null&&t.hasOwnProperty("activeScriptHash")&&(o.activeScriptHash=t.activeScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ForwardMsgMetadata"},n})(),ForwardMsgList=$root.ForwardMsgList=(()=>{function n(i){if(this.messages=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.messages=$util.emptyArray,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.messages!=null&&t.messages.length)for(let o=0;o<t.messages.length;++o)$root.ForwardMsg.encode(t.messages[o],e.uint32(10).fork()).ldelim();return e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ForwardMsgList;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.messages&&p.messages.length||(p.messages=[]),p.messages.push($root.ForwardMsg.decode(t,t.uint32()));break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ForwardMsgList)return t;let e=new $root.ForwardMsgList;if(t.messages){if(!Array.isArray(t.messages))throw TypeError(".ForwardMsgList.messages: array expected");e.messages=[];for(let o=0;o<t.messages.length;++o){if(typeof t.messages[o]!="object")throw TypeError(".ForwardMsgList.messages: object expected");e.messages[o]=$root.ForwardMsg.fromObject(t.messages[o])}}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.messages=[]),t.messages&&t.messages.length){o.messages=[];for(let d=0;d<t.messages.length;++d)o.messages[d]=$root.ForwardMsg.toObject(t.messages[d],e)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ForwardMsgList"},n})(),GitInfo=$root.GitInfo=(()=>{function n(i){if(this.untrackedFiles=[],this.uncommittedFiles=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.repository="",n.prototype.branch="",n.prototype.module="",n.prototype.untrackedFiles=$util.emptyArray,n.prototype.uncommittedFiles=$util.emptyArray,n.prototype.state=0,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.repository!=null&&Object.hasOwnProperty.call(t,"repository")&&e.uint32(10).string(t.repository),t.branch!=null&&Object.hasOwnProperty.call(t,"branch")&&e.uint32(18).string(t.branch),t.module!=null&&Object.hasOwnProperty.call(t,"module")&&e.uint32(26).string(t.module),t.untrackedFiles!=null&&t.untrackedFiles.length)for(let o=0;o<t.untrackedFiles.length;++o)e.uint32(34).string(t.untrackedFiles[o]);if(t.uncommittedFiles!=null&&t.uncommittedFiles.length)for(let o=0;o<t.uncommittedFiles.length;++o)e.uint32(42).string(t.uncommittedFiles[o]);return t.state!=null&&Object.hasOwnProperty.call(t,"state")&&e.uint32(48).int32(t.state),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.GitInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.repository=t.string();break}case 2:{p.branch=t.string();break}case 3:{p.module=t.string();break}case 4:{p.untrackedFiles&&p.untrackedFiles.length||(p.untrackedFiles=[]),p.untrackedFiles.push(t.string());break}case 5:{p.uncommittedFiles&&p.uncommittedFiles.length||(p.uncommittedFiles=[]),p.uncommittedFiles.push(t.string());break}case 6:{p.state=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.GitInfo)return t;let e=new $root.GitInfo;
18if(t.repository!=null&&(e.repository=String(t.repository)),t.branch!=null&&(e.branch=String(t.branch)),t.module!=null&&(e.module=String(t.module)),t.untrackedFiles){if(!Array.isArray(t.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");e.untrackedFiles=[];for(let o=0;o<t.untrackedFiles.length;++o)e.untrackedFiles[o]=String(t.untrackedFiles[o])}if(t.uncommittedFiles){if(!Array.isArray(t.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");e.uncommittedFiles=[];for(let o=0;o<t.uncommittedFiles.length;++o)e.uncommittedFiles[o]=String(t.uncommittedFiles[o])}switch(t.state){default:if(typeof t.state=="number"){e.state=t.state;break}break;case"DEFAULT":case 0:e.state=0;break;case"HEAD_DETACHED":case 1:e.state=1;break;case"AHEAD_OF_REMOTE":case 2:e.state=2;break}return e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.untrackedFiles=[],o.uncommittedFiles=[]),e.defaults&&(o.repository="",o.branch="",o.module="",o.state=e.enums===String?"DEFAULT":0),t.repository!=null&&t.hasOwnProperty("repository")&&(o.repository=t.repository),t.branch!=null&&t.hasOwnProperty("branch")&&(o.branch=t.branch),t.module!=null&&t.hasOwnProperty("module")&&(o.module=t.module),t.untrackedFiles&&t.untrackedFiles.length){o.untrackedFiles=[];for(let d=0;d<t.untrackedFiles.length;++d)o.untrackedFiles[d]=t.untrackedFiles[d]}if(t.uncommittedFiles&&t.uncommittedFiles.length){o.uncommittedFiles=[];for(let d=0;d<t.uncommittedFiles.length;++d)o.uncommittedFiles[d]=t.uncommittedFiles[d]}return t.state!=null&&t.hasOwnProperty("state")&&(o.state=e.enums===String?$root.GitInfo.GitStates[t.state]===void 0?t.state:$root.GitInfo.GitStates[t.state]:t.state),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/GitInfo"},n.GitStates=(function(){const i={},t=Object.create(i);return t[i[0]="DEFAULT"]=0,t[i[1]="HEAD_DETACHED"]=1,t[i[2]="AHEAD_OF_REMOTE"]=2,t})(),n})(),Logo=$root.Logo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.image="",n.prototype.link="",n.prototype.iconImage="",n.prototype.size="",n.prototype.imageType=0,n.prototype.iconImageType=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.image!=null&&Object.hasOwnProperty.call(t,"image")&&e.uint32(10).string(t.image),t.link!=null&&Object.hasOwnProperty.call(t,"link")&&e.uint32(18).string(t.link),t.iconImage!=null&&Object.hasOwnProperty.call(t,"iconImage")&&e.uint32(26).string(t.iconImage),t.size!=null&&Object.hasOwnProperty.call(t,"size")&&e.uint32(34).string(t.size),t.imageType!=null&&Object.hasOwnProperty.call(t,"imageType")&&e.uint32(40).int32(t.imageType),t.iconImageType!=null&&Object.hasOwnProperty.call(t,"iconImageType")&&e.uint32(48).int32(t.iconImageType),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Logo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.image=t.string();break}case 2:{p.link=t.string();break}case 3:{p.iconImage=t.string();break}case 4:{p.size=t.string();break}case 5:{p.imageType=t.int32();break}case 6:{p.iconImageType=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Logo)return t;let e=new $root.Logo;switch(t.image!=null&&(e.image=String(t.image)),t.link!=null&&(e.link=String(t.link)),t.iconImage!=null&&(e.iconImage=String(t.iconImage)),t.size!=null&&(e.size=String(t.size)),t.imageType){default:if(typeof t.imageType=="number"){e.imageType=t.imageType;break}break;case"IMAGE":case 0:e.imageType=0;break;case"EMOJI":case 1:e.imageType=1;break;case"ICON":case 2:e.imageType=2;break}switch(t.iconImageType){default:if(typeof t.iconImageType=="number"){e.iconImageType=t.iconImageType;break}break;case"IMAGE":case 0:e.iconImageType=0;break;case"EMOJI":case 1:e.iconImageType=1;break;case"ICON":case 2:e.iconImageType=2;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.image="",o.link="",o.iconImage="",o.size="",o.imageType=e.enums===String?"IMAGE":0,o.iconImageType=e.enums===String?"IMAGE":0),t.image!=null&&t.hasOwnProperty("image")&&(o.image=t.image),t.link!=null&&t.hasOwnProperty("link")&&(o.link=t.link),t.iconImage!=null&&t.hasOwnProperty("iconImage")&&(o.iconImage=t.iconImage),t.size!=null&&t.hasOwnProperty("size")&&(o.size=t.size),t.imageType!=null&&t.hasOwnProperty("imageType")&&(o.imageType=e.enums===String?$root.Logo.ImageType[t.imageType]===void 0?t.imageType:$root.Logo.ImageType[t.imageType]:t.imageType),t.iconImageType!=null&&t.hasOwnProperty("iconImageType")&&(o.iconImageType=e.enums===String?$root.Logo.ImageType[t.iconImageType]===void 0?t.iconImageType:$root.Logo.ImageType[t.iconImageType]:t.iconImageType),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Logo"},n.ImageType=(function(){const i={},t=Object.create(i);return t[i[0]="IMAGE"]=0,t[i[1]="EMOJI"]=1,t[i[2]="ICON"]=2,t})(),n})(),Navigation=$root.Navigation=(()=>{function n(i){if(this.sections=[],this.appPages=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.sections=$util.emptyArray,n.prototype.appPages=$util.emptyArray,n.prototype.position=0,n.prototype.pageScriptHash="",n.prototype.expanded=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.sections!=null&&t.sections.length)for(let o=0;o<t.sections.length;++o)e.uint32(10).string(t.sections[o]);if(t.appPages!=null&&t.appPages.length)for(let o=0;o<t.appPages.length;++o)$root.AppPage.encode(t.appPages[o],e.uint32(18).fork()).ldelim();return t.position!=null&&Object.hasOwnProperty.call(t,"position")&&e.uint32(24).int32(t.position),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&e.uint32(34).string(t.pageScriptHash),t.expanded!=null&&Object.hasOwnProperty.call(t,"expanded")&&e.uint32(40).bool(t.expanded),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Navigation;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.sections&&p.sections.length||(p.sections=[]),p.sections.push(t.string());break}case 2:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(t,t.uint32()));break}case 3:{p.position=t.int32();break}case 4:{p.pageScriptHash=t.string();break}case 5:{p.expanded=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Navigation)return t;let e=new $root.Navigation;if(t.sections){if(!Array.isArray(t.sections))throw TypeError(".Navigation.sections: array expected");
18e.sections=[];for(let o=0;o<t.sections.length;++o)e.sections[o]=String(t.sections[o])}if(t.appPages){if(!Array.isArray(t.appPages))throw TypeError(".Navigation.appPages: array expected");e.appPages=[];for(let o=0;o<t.appPages.length;++o){if(typeof t.appPages[o]!="object")throw TypeError(".Navigation.appPages: object expected");e.appPages[o]=$root.AppPage.fromObject(t.appPages[o])}}switch(t.position){default:if(typeof t.position=="number"){e.position=t.position;break}break;case"HIDDEN":case 0:e.position=0;break;case"SIDEBAR":case 1:e.position=1;break;case"TOP":case 2:e.position=2;break}return t.pageScriptHash!=null&&(e.pageScriptHash=String(t.pageScriptHash)),t.expanded!=null&&(e.expanded=!!t.expanded),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.sections=[],o.appPages=[]),e.defaults&&(o.position=e.enums===String?"HIDDEN":0,o.pageScriptHash="",o.expanded=!1),t.sections&&t.sections.length){o.sections=[];for(let d=0;d<t.sections.length;++d)o.sections[d]=t.sections[d]}if(t.appPages&&t.appPages.length){o.appPages=[];for(let d=0;d<t.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(t.appPages[d],e)}return t.position!=null&&t.hasOwnProperty("position")&&(o.position=e.enums===String?$root.Navigation.Position[t.position]===void 0?t.position:$root.Navigation.Position[t.position]:t.position),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=t.pageScriptHash),t.expanded!=null&&t.hasOwnProperty("expanded")&&(o.expanded=t.expanded),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Navigation"},n.Position=(function(){const i={},t=Object.create(i);return t[i[0]="HIDDEN"]=0,t[i[1]="SIDEBAR"]=1,t[i[2]="TOP"]=2,t})(),n})();$root.NewSession=(()=>{function n(i){if(this.appPages=[],this.fragmentIdsThisRun=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.initialize=null,n.prototype.scriptRunId="",n.prototype.name="",n.prototype.mainScriptPath="",n.prototype.config=null,n.prototype.customTheme=null,n.prototype.appPages=$util.emptyArray,n.prototype.pageScriptHash="",n.prototype.fragmentIdsThisRun=$util.emptyArray,n.prototype.mainScriptHash="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.initialize!=null&&Object.hasOwnProperty.call(t,"initialize")&&$root.Initialize.encode(t.initialize,e.uint32(10).fork()).ldelim(),t.scriptRunId!=null&&Object.hasOwnProperty.call(t,"scriptRunId")&&e.uint32(18).string(t.scriptRunId),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(26).string(t.name),t.mainScriptPath!=null&&Object.hasOwnProperty.call(t,"mainScriptPath")&&e.uint32(34).string(t.mainScriptPath),t.config!=null&&Object.hasOwnProperty.call(t,"config")&&$root.Config.encode(t.config,e.uint32(50).fork()).ldelim(),t.customTheme!=null&&Object.hasOwnProperty.call(t,"customTheme")&&$root.CustomThemeConfig.encode(t.customTheme,e.uint32(58).fork()).ldelim(),t.appPages!=null&&t.appPages.length)for(let o=0;o<t.appPages.length;++o)$root.AppPage.encode(t.appPages[o],e.uint32(66).fork()).ldelim();if(t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&e.uint32(74).string(t.pageScriptHash),t.fragmentIdsThisRun!=null&&t.fragmentIdsThisRun.length)for(let o=0;o<t.fragmentIdsThisRun.length;++o)e.uint32(82).string(t.fragmentIdsThisRun[o]);return t.mainScriptHash!=null&&Object.hasOwnProperty.call(t,"mainScriptHash")&&e.uint32(90).string(t.mainScriptHash),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.NewSession;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.initialize=$root.Initialize.decode(t,t.uint32());break}case 2:{p.scriptRunId=t.string();break}case 3:{p.name=t.string();break}case 4:{p.mainScriptPath=t.string();break}case 6:{p.config=$root.Config.decode(t,t.uint32());break}case 7:{p.customTheme=$root.CustomThemeConfig.decode(t,t.uint32());break}case 8:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(t,t.uint32()));break}case 9:{p.pageScriptHash=t.string();break}case 10:{p.fragmentIdsThisRun&&p.fragmentIdsThisRun.length||(p.fragmentIdsThisRun=[]),p.fragmentIdsThisRun.push(t.string());break}case 11:{p.mainScriptHash=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.NewSession)return t;let e=new $root.NewSession;if(t.initialize!=null){if(typeof t.initialize!="object")throw TypeError(".NewSession.initialize: object expected");e.initialize=$root.Initialize.fromObject(t.initialize)}if(t.scriptRunId!=null&&(e.scriptRunId=String(t.scriptRunId)),t.name!=null&&(e.name=String(t.name)),t.mainScriptPath!=null&&(e.mainScriptPath=String(t.mainScriptPath)),t.config!=null){if(typeof t.config!="object")throw TypeError(".NewSession.config: object expected");e.config=$root.Config.fromObject(t.config)}if(t.customTheme!=null){if(typeof t.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");e.customTheme=$root.CustomThemeConfig.fromObject(t.customTheme)}if(t.appPages){if(!Array.isArray(t.appPages))throw TypeError(".NewSession.appPages: array expected");e.appPages=[];for(let o=0;o<t.appPages.length;++o){if(typeof t.appPages[o]!="object")throw TypeError(".NewSession.appPages: object expected");e.appPages[o]=$root.AppPage.fromObject(t.appPages[o])}}if(t.pageScriptHash!=null&&(e.pageScriptHash=String(t.pageScriptHash)),t.fragmentIdsThisRun){if(!Array.isArray(t.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");e.fragmentIdsThisRun=[];for(let o=0;o<t.fragmentIdsThisRun.length;++o)e.fragmentIdsThisRun[o]=String(t.fragmentIdsThisRun[o])}return t.mainScriptHash!=null&&(e.mainScriptHash=String(t.mainScriptHash)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.appPages=[],o.fragmentIdsThisRun=[]),e.defaults&&(o.initialize=null,o.scriptRunId="",o.name="",o.mainScriptPath="",o.config=null,o.customTheme=null,o.pageScriptHash="",o.mainScriptHash=""),t.initialize!=null&&t.hasOwnProperty("initialize")&&(o.initialize=$root.Initialize.toObject(t.initialize,e)),t.scriptRunId!=null&&t.hasOwnProperty("scriptRunId")&&(o.scriptRunId=t.scriptRunId),t.name!=null&&t.hasOwnProperty("name")&&(o.name=t.name),t.mainScriptPath!=null&&t.hasOwnProperty("mainScriptPath")&&(o.mainScriptPath=t.mainScriptPath),t.config!=null&&t.hasOwnProperty("config")&&(o.config=$root.Config.toObject(t.config,e)),t.customTheme!=null&&t.hasOwnProperty("customTheme")&&(o.customTheme=$root.CustomThemeConfig.toObject(t.customTheme,e)),t.appPages&&t.appPages.length){o.appPages=[];for(let d=0;d<t.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(t.appPages[d],e)}if(t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=t.pageScriptHash),t.fragmentIdsThisRun&&t.fragmentIdsThisRun.length){o.fragmentIdsThisRun=[];for(let d=0;d<t.fragmentIdsThisRun.length;++d)o.fragmentIdsThisRun[d]=t.fragmentIdsThisRun[d]}return t.mainScriptHash!=null&&t.hasOwnProperty("mainScriptHash")&&(o.mainScriptHash=t.mainScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/NewSession"},n})();$root.Initialize=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.userInfo=null,n.prototype.environmentInfo=null,n.prototype.sessionStatus=null,n.prototype.sessionId="",n.prototype.isHello=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.userInfo!=null&&Object.hasOwnProperty.call(t,"userInfo")&&$root.UserInfo.encode(t.userInfo,e.uint32(10).fork()).ldelim(),t.environmentInfo!=null&&Object.hasOwnProperty.call(t,"environmentInfo")&&$root.EnvironmentInfo.encode(t.environmentInfo,e.uint32(26).fork()).ldelim(),t.sessionStatus!=null&&Object.hasOwnProperty.call(t,"sessionStatus")&&$root.SessionStatus.encode(t.sessionStatus,e.uint32(34).fork()).ldelim(),t.sessionId!=null&&Object.hasOwnProperty.call(t,"sessionId")&&e.uint32(50).string(t.sessionId),t.isHello!=null&&Object.hasOwnProperty.call(t,"isHello")&&e.uint32(56).bool(t.isHello),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Initialize;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.userInfo=$root.UserInfo.decode(t,t.uint32());break}case 3:{p.environmentInfo=$root.EnvironmentInfo.decode(t,t.uint32());break}case 4:{p.sessionStatus=$root.SessionStatus.decode(t,t.uint32());break}case 6:{p.sessionId=t.string();break}case 7:{p.isHello=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Initialize)return t;let e=new $root.Initialize;if(t.userInfo!=null){if(typeof t.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");e.userInfo=$root.UserInfo.fromObject(t.userInfo)}if(t.environmentInfo!=null){if(typeof t.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");e.environmentInfo=$root.EnvironmentInfo.fromObject(t.environmentInfo)}if(t.sessionStatus!=null){if(typeof t.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");
18e.sessionStatus=$root.SessionStatus.fromObject(t.sessionStatus)}return t.sessionId!=null&&(e.sessionId=String(t.sessionId)),t.isHello!=null&&(e.isHello=!!t.isHello),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.userInfo=null,o.environmentInfo=null,o.sessionStatus=null,o.sessionId="",o.isHello=!1),t.userInfo!=null&&t.hasOwnProperty("userInfo")&&(o.userInfo=$root.UserInfo.toObject(t.userInfo,e)),t.environmentInfo!=null&&t.hasOwnProperty("environmentInfo")&&(o.environmentInfo=$root.EnvironmentInfo.toObject(t.environmentInfo,e)),t.sessionStatus!=null&&t.hasOwnProperty("sessionStatus")&&(o.sessionStatus=$root.SessionStatus.toObject(t.sessionStatus,e)),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(o.sessionId=t.sessionId),t.isHello!=null&&t.hasOwnProperty("isHello")&&(o.isHello=t.isHello),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Initialize"},n})();const Config=$root.Config=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.gatherUsageStats=!1,n.prototype.maxCachedMessageAge=0,n.prototype.allowRunOnSave=!1,n.prototype.hideTopBar=!1,n.prototype.hideSidebarNav=!1,n.prototype.toolbarMode=0,n.prototype.showErrorLinks=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.gatherUsageStats!=null&&Object.hasOwnProperty.call(t,"gatherUsageStats")&&e.uint32(16).bool(t.gatherUsageStats),t.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(t,"maxCachedMessageAge")&&e.uint32(24).int32(t.maxCachedMessageAge),t.allowRunOnSave!=null&&Object.hasOwnProperty.call(t,"allowRunOnSave")&&e.uint32(40).bool(t.allowRunOnSave),t.hideTopBar!=null&&Object.hasOwnProperty.call(t,"hideTopBar")&&e.uint32(48).bool(t.hideTopBar),t.hideSidebarNav!=null&&Object.hasOwnProperty.call(t,"hideSidebarNav")&&e.uint32(56).bool(t.hideSidebarNav),t.toolbarMode!=null&&Object.hasOwnProperty.call(t,"toolbarMode")&&e.uint32(64).int32(t.toolbarMode),t.showErrorLinks!=null&&Object.hasOwnProperty.call(t,"showErrorLinks")&&e.uint32(72).int32(t.showErrorLinks),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Config;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 2:{p.gatherUsageStats=t.bool();break}case 3:{p.maxCachedMessageAge=t.int32();break}case 5:{p.allowRunOnSave=t.bool();break}case 6:{p.hideTopBar=t.bool();break}case 7:{p.hideSidebarNav=t.bool();break}case 8:{p.toolbarMode=t.int32();break}case 9:{p.showErrorLinks=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Config)return t;let e=new $root.Config;switch(t.gatherUsageStats!=null&&(e.gatherUsageStats=!!t.gatherUsageStats),t.maxCachedMessageAge!=null&&(e.maxCachedMessageAge=t.maxCachedMessageAge|0),t.allowRunOnSave!=null&&(e.allowRunOnSave=!!t.allowRunOnSave),t.hideTopBar!=null&&(e.hideTopBar=!!t.hideTopBar),t.hideSidebarNav!=null&&(e.hideSidebarNav=!!t.hideSidebarNav),t.toolbarMode){default:if(typeof t.toolbarMode=="number"){e.toolbarMode=t.toolbarMode;break}break;case"AUTO":case 0:e.toolbarMode=0;break;case"DEVELOPER":case 1:e.toolbarMode=1;break;case"VIEWER":case 2:e.toolbarMode=2;break;case"MINIMAL":case 3:e.toolbarMode=3;break}switch(t.showErrorLinks){default:if(typeof t.showErrorLinks=="number"){e.showErrorLinks=t.showErrorLinks;break}break;case"SHOW_ERROR_LINKS_UNSPECIFIED":case 0:e.showErrorLinks=0;break;case"SHOW_ERROR_LINKS_AUTO":case 1:e.showErrorLinks=1;break;case"SHOW_ERROR_LINKS_TRUE":case 2:e.showErrorLinks=2;break;case"SHOW_ERROR_LINKS_FALSE":case 3:e.showErrorLinks=3;break}return e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.gatherUsageStats=!1,o.maxCachedMessageAge=0,o.allowRunOnSave=!1,o.hideTopBar=!1,o.hideSidebarNav=!1,o.toolbarMode=e.enums===String?"AUTO":0,o.showErrorLinks=e.enums===String?"SHOW_ERROR_LINKS_UNSPECIFIED":0),t.gatherUsageStats!=null&&t.hasOwnProperty("gatherUsageStats")&&(o.gatherUsageStats=t.gatherUsageStats),t.maxCachedMessageAge!=null&&t.hasOwnProperty("maxCachedMessageAge")&&(o.maxCachedMessageAge=t.maxCachedMessageAge),t.allowRunOnSave!=null&&t.hasOwnProperty("allowRunOnSave")&&(o.allowRunOnSave=t.allowRunOnSave),t.hideTopBar!=null&&t.hasOwnProperty("hideTopBar")&&(o.hideTopBar=t.hideTopBar),t.hideSidebarNav!=null&&t.hasOwnProperty("hideSidebarNav")&&(o.hideSidebarNav=t.hideSidebarNav),t.toolbarMode!=null&&t.hasOwnProperty("toolbarMode")&&(o.toolbarMode=e.enums===String?$root.Config.ToolbarMode[t.toolbarMode]===void 0?t.toolbarMode:$root.Config.ToolbarMode[t.toolbarMode]:t.toolbarMode),t.showErrorLinks!=null&&t.hasOwnProperty("showErrorLinks")&&(o.showErrorLinks=e.enums===String?$root.Config.ShowErrorLinks[t.showErrorLinks]===void 0?t.showErrorLinks:$root.Config.ShowErrorLinks[t.showErrorLinks]:t.showErrorLinks),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Config"},n.ToolbarMode=(function(){const i={},t=Object.create(i);return t[i[0]="AUTO"]=0,t[i[1]="DEVELOPER"]=1,t[i[2]="VIEWER"]=2,t[i[3]="MINIMAL"]=3,t})(),n.ShowErrorLinks=(function(){const i={},t=Object.create(i);return t[i[0]="SHOW_ERROR_LINKS_UNSPECIFIED"]=0,t[i[1]="SHOW_ERROR_LINKS_AUTO"]=1,t[i[2]="SHOW_ERROR_LINKS_TRUE"]=2,t[i[3]="SHOW_ERROR_LINKS_FALSE"]=3,t})(),n})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function n(t){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],this.chartDivergingColors=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}
18n.prototype.primaryColor="",n.prototype.secondaryBackgroundColor="",n.prototype.backgroundColor="",n.prototype.textColor="",n.prototype.base=0,n.prototype.headingFont="",n.prototype.bodyFont="",n.prototype.codeFont="",n.prototype.fontFaces=$util.emptyArray,n.prototype.fontSources=$util.emptyArray,n.prototype.baseRadius=null,n.prototype.buttonRadius=null,n.prototype.borderColor=null,n.prototype.dataframeBorderColor=null,n.prototype.showWidgetBorder=null,n.prototype.linkColor=null,n.prototype.linkUnderline=null,n.prototype.baseFontSize=null,n.prototype.baseFontWeight=null,n.prototype.codeFontWeight=null,n.prototype.codeFontSize=null,n.prototype.headingFontSizes=$util.emptyArray,n.prototype.headingFontWeights=$util.emptyArray,n.prototype.showSidebarBorder=null,n.prototype.codeTextColor=null,n.prototype.codeBackgroundColor=null,n.prototype.dataframeHeaderBackgroundColor=null,n.prototype.chartCategoricalColors=$util.emptyArray,n.prototype.chartSequentialColors=$util.emptyArray,n.prototype.chartDivergingColors=$util.emptyArray,n.prototype.redColor=null,n.prototype.orangeColor=null,n.prototype.yellowColor=null,n.prototype.blueColor=null,n.prototype.greenColor=null,n.prototype.violetColor=null,n.prototype.grayColor=null,n.prototype.redBackgroundColor=null,n.prototype.orangeBackgroundColor=null,n.prototype.yellowBackgroundColor=null,n.prototype.blueBackgroundColor=null,n.prototype.greenBackgroundColor=null,n.prototype.violetBackgroundColor=null,n.prototype.grayBackgroundColor=null,n.prototype.redTextColor=null,n.prototype.orangeTextColor=null,n.prototype.yellowTextColor=null,n.prototype.blueTextColor=null,n.prototype.greenTextColor=null,n.prototype.violetTextColor=null,n.prototype.grayTextColor=null,n.prototype.metricValueFontSize=null,n.prototype.metricValueFontWeight=null,n.prototype.sidebar=null,n.prototype.light=null,n.prototype.dark=null;let i;return Object.defineProperty(n.prototype,"_baseRadius",{get:$util.oneOfGetter(i=["baseRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_buttonRadius",{get:$util.oneOfGetter(i=["buttonRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_borderColor",{get:$util.oneOfGetter(i=["borderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeBorderColor",{get:$util.oneOfGetter(i=["dataframeBorderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showWidgetBorder",{get:$util.oneOfGetter(i=["showWidgetBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkColor",{get:$util.oneOfGetter(i=["linkColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkUnderline",{get:$util.oneOfGetter(i=["linkUnderline"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontSize",{get:$util.oneOfGetter(i=["baseFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontWeight",{get:$util.oneOfGetter(i=["baseFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontWeight",{get:$util.oneOfGetter(i=["codeFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontSize",{get:$util.oneOfGetter(i=["codeFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showSidebarBorder",{get:$util.oneOfGetter(i=["showSidebarBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeTextColor",{get:$util.oneOfGetter(i=["codeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeBackgroundColor",{get:$util.oneOfGetter(i=["codeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeHeaderBackgroundColor",{get:$util.oneOfGetter(i=["dataframeHeaderBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redColor",{get:$util.oneOfGetter(i=["redColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeColor",{get:$util.oneOfGetter(i=["orangeColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowColor",{get:$util.oneOfGetter(i=["yellowColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueColor",{get:$util.oneOfGetter(i=["blueColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenColor",{get:$util.oneOfGetter(i=["greenColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetColor",{get:$util.oneOfGetter(i=["violetColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayColor",{get:$util.oneOfGetter(i=["grayColor"]),set:$util.oneOfSetter(i)}
vendor: 4,241 bytes, line 18
18),Object.defineProperty(n.prototype,"_redBackgroundColor",{get:$util.oneOfGetter(i=["redBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeBackgroundColor",{get:$util.oneOfGetter(i=["orangeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowBackgroundColor",{get:$util.oneOfGetter(i=["yellowBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueBackgroundColor",{get:$util.oneOfGetter(i=["blueBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenBackgroundColor",{get:$util.oneOfGetter(i=["greenBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetBackgroundColor",{get:$util.oneOfGetter(i=["violetBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayBackgroundColor",{get:$util.oneOfGetter(i=["grayBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redTextColor",{get:$util.oneOfGetter(i=["redTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeTextColor",{get:$util.oneOfGetter(i=["orangeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowTextColor",{get:$util.oneOfGetter(i=["yellowTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueTextColor",{get:$util.oneOfGetter(i=["blueTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenTextColor",{get:$util.oneOfGetter(i=["greenTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetTextColor",{get:$util.oneOfGetter(i=["violetTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayTextColor",{get:$util.oneOfGetter(i=["grayTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_metricValueFontSize",{get:$util.oneOfGetter(i=["metricValueFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_metricValueFontWeight",{get:$util.oneOfGetter(i=["metricValueFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_sidebar",{get:$util.oneOfGetter(i=["sidebar"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_light",{get:$util.oneOfGetter(i=["light"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dark",{get:$util.oneOfGetter(i=["dark"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){if(o||(o=$Writer.create()),e.primaryColor!=null&&Object.hasOwnProperty.call(e,"primaryColor")&&o.uint32(10).string(e.primaryColor),e.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(e,"secondaryBackgroundColor")&&o.uint32(18).string(e.secondaryBackgroundColor),e.backgroundColor!=null&&Object.hasOwnProperty.call(e,"backgroundColor")&&o.uint32(26).string(e.backgroundColor),e.textColor!=null&&Object.hasOwnProperty.call(e,"textColor")&&o.uint32(34).string(e.textColor),e.base!=null&&Object.hasOwnProperty.call(e,"base")&&o.uint32(48).int32(e.base),e.headingFont!=null&&Object.hasOwnProperty.call(e,"headingFont")&&o.uint32(98).string(e.headingFont),e.bodyFont!=null&&Object.hasOwnProperty.call(e,"bodyFont")&&o.uint32(106).string(e.bodyFont),e.codeFont!=null&&Object.hasOwnProperty.call(e,"codeFont")&&o.uint32(114).string(e.codeFont),e.fontFaces!=null&&e.fontFaces.length)for(let d=0;d<e.fontFaces.length;++d)$root.FontFace.encode(e.fontFaces[d],o.uint32(122).fork()).ldelim();if(e.baseRadius!=null&&Object.hasOwnProperty.call(e,"baseRadius")&&o.uint32(146).string(e.baseRadius),e.borderColor!=null&&Object.hasOwnProperty.call(e,"borderColor")&&o.uint32(154).string(e.borderColor),e.showWidgetBorder!=null&&Object.hasOwnProperty.call(e,"showWidgetBorder")&&o.uint32(160).bool(e.showWidgetBorder),e.linkColor!=null&&Object.hasOwnProperty.call(e,"linkColor")&&o.uint32(170).string(e.linkColor),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,"baseFontSize")&&o.uint32(176).int32(e.baseFontSize),e.showSidebarBorder!=null&&Object.hasOwnProperty.call(e,"showSidebarBorder")&&o.uint32(184).bool(e.showSidebarBorder),e.sidebar!=null&&Object.hasOwnProperty.call(e,"sidebar")&&$root.CustomThemeConfig.encode(e.sidebar,o.uint32(194).fork()).ldelim(),e.codeBackgroun
18dColor!=null&&Object.hasOwnProperty.call(e,"codeBackgroundColor")&&o.uint32(202).string(e.codeBackgroundColor),e.buttonRadius!=null&&Object.hasOwnProperty.call(e,"buttonRadius")&&o.uint32(210).string(e.buttonRadius),e.dataframeBorderColor!=null&&Object.hasOwnProperty.call(e,"dataframeBorderColor")&&o.uint32(218).string(e.dataframeBorderColor),e.codeFontSize!=null&&Object.hasOwnProperty.call(e,"codeFontSize")&&o.uint32(226).string(e.codeFontSize),e.linkUnderline!=null&&Object.hasOwnProperty.call(e,"linkUnderline")&&o.uint32(232).bool(e.linkUnderline),e.baseFontWeight!=null&&Object.hasOwnProperty.call(e,"baseFontWeight")&&o.uint32(240).int32(e.baseFontWeight),e.dataframeHeaderBackgroundColor!=null&&Object.hasOwnProperty.call(e,"dataframeHeaderBackgroundColor")&&o.uint32(250).string(e.dataframeHeaderBackgroundColor),e.codeFontWeight!=null&&Object.hasOwnProperty.call(e,"codeFontWeight")&&o.uint32(256).int32(e.codeFontWeight),e.chartCategoricalColors!=null&&e.chartCategoricalColors.length)for(let d=0;d<e.chartCategoricalColors.length;++d)o.uint32(266).string(e.chartCategoricalColors[d]);if(e.headingFontWeights!=null&&e.headingFontWeights.length){o.uint32(274).fork();for(let d=0;d<e.headingFontWeights.length;++d)o.int32(e.headingFontWeights[d]);o.ldelim()}if(e.headingFontSizes!=null&&e.headingFontSizes.length)for(let d=0;d<e.headingFontSizes.length;++d)o.uint32(282).string(e.headingFontSizes[d]);if(e.chartSequentialColors!=null&&e.chartSequentialColors.length)for(let d=0;d<e.chartSequentialColors.length;++d)o.uint32(290).string(e.chartSequentialColors[d]);if(e.fontSources!=null&&e.fontSources.length)for(let d=0;d<e.fontSources.length;++d)$root.FontSource.encode(e.fontSources[d],o.uint32(298).fork()).ldelim();if(e.redColor!=null&&Object.hasOwnProperty.call(e,"redColor")&&o.uint32(306).string(e.redColor),e.orangeColor!=null&&Object.hasOwnProperty.call(e,"orangeColor")&&o.uint32(314).string(e.orangeColor),e.yellowColor!=null&&Object.hasOwnProperty.call(e,"yellowColor")&&o.uint32(322).string(e.yellowColor),e.blueColor!=null&&Object.hasOwnProperty.call(e,"blueColor")&&o.uint32(330).string(e.blueColor),e.greenColor!=null&&Object.hasOwnProperty.call(e,"greenColor")&&o.uint32(338).string(e.greenColor),e.violetColor!=null&&Object.hasOwnProperty.call(e,"violetColor")&&o.uint32(346).string(e.violetColor),e.grayColor!=null&&Object.hasOwnProperty.call(e,"grayColor")&&o.uint32(354).string(e.grayColor),e.redBackgroundColor!=null&&Object.hasOwnProperty.call(e,"redBackgroundColor")&&o.uint32(362).string(e.redBackgroundColor),e.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(e,"orangeBackgroundColor")&&o.uint32(370).string(e.orangeBackgroundColor),e.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(e,"yellowBackgroundColor")&&o.uint32(378).string(e.yellowBackgroundColor),e.blueBackgroundColor!=null&&Object.hasOwnProperty.call(e,"blueBackgroundColor")&&o.uint32(386).string(e.blueBackgroundColor),e.greenBackgroundColor!=null&&Object.hasOwnProperty.call(e,"greenBackgroundColor")&&o.uint32(394).string(e.green
18BackgroundColor),e.violetBackgroundColor!=null&&Object.hasOwnProperty.call(e,"violetBackgroundColor")&&o.uint32(402).string(e.violetBackgroundColor),e.grayBackgroundColor!=null&&Object.hasOwnProperty.call(e,"grayBackgroundColor")&&o.uint32(410).string(e.grayBackgroundColor),e.redTextColor!=null&&Object.hasOwnProperty.call(e,"redTextColor")&&o.uint32(418).string(e.redTextColor),e.orangeTextColor!=null&&Object.hasOwnProperty.call(e,"orangeTextColor")&&o.uint32(426).string(e.orangeTextColor),e.yellowTextColor!=null&&Object.hasOwnProperty.call(e,"yellowTextColor")&&o.uint32(434).string(e.yellowTextColor),e.blueTextColor!=null&&Object.hasOwnProperty.call(e,"blueTextColor")&&o.uint32(442).string(e.blueTextColor),e.greenTextColor!=null&&Object.hasOwnProperty.call(e,"greenTextColor")&&o.uint32(450).string(e.greenTextColor),e.violetTextColor!=null&&Object.hasOwnProperty.call(e,"violetTextColor")&&o.uint32(458).string(e.violetTextColor),e.grayTextColor!=null&&Object.hasOwnProperty.call(e,"grayTextColor")&&o.uint32(466).str
18ing(e.grayTextColor),e.codeTextColor!=null&&Object.hasOwnProperty.call(e,"codeTextColor")&&o.uint32(474).string(e.codeTextColor),e.light!=null&&Object.hasOwnProperty.call(e,"light")&&$root.CustomThemeConfig.encode(e.light,o.uint32(482).fork()).ldelim(),e.dark!=null&&Object.hasOwnProperty.call(e,"dark")&&$root.CustomThemeConfig.encode(e.dark,o.uint32(490).fork()).ldelim(),e.chartDivergingColors!=null&&e.chartDivergingColors.length)for(let d=0;d<e.chartDivergingColors.length;++d)o.uint32(498).string(e.chartDivergingColors[d]);return e.metricValueFontSize!=null&&Object.hasOwnProperty.call(e,"metricValueFontSize")&&o.uint32(514).string(e.metricValueFontSize),e.metricValueFontWeight!=null&&Object.hasOwnProperty.call(e,"metricValueFontWeight")&&o.uint32(520).int32(e.metricValueFontWeight),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.CustomThemeConfig;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.primaryColor=e.string();break}case 2:{h.secondaryBackgroundColor=e.string();break}case 3:{h.backgroundColor=e.string();break}case 4:{h.textColor=e.string();break}case 6:{h.base=e.int32();break}case 12:{h.headingFont=e.string();break}case 13:{h.bodyFont=e.string();break}case 14:{h.codeFont=e.string();break}case 15:{h.fontFaces&&h.fontFaces.length||(h.fontFaces=[]),h.fontFaces.push($root.FontFace.decode(e,e.uint32()));break}case 37:{h.fontSources&&h.fontSources.length||(h.fontSources=[]),h.fontSources.push($root.FontSource.decode(e,e.uint32()));break}case 18:{h.baseRadius=e.string();break}case 26:{h.buttonRadius=e.string();break}case 19:{h.borderColor=e.string();break}case 27:{h.dataframeBorderColor=e.string();break}case 20:{h.showWidgetBorder=e.bool();break}case 21:{h.linkColor=e.string();break}case 29:{h.linkUnderline=e.bool();break}case 22:{h.baseFontSize=e.int32();break}case 30:{h.baseFontWeight=e.int32();break}case 32:{h.codeFontWeight=e.int32();break}case 28:{h.codeFontSize=e.string();break}case 35:{h.headingFontSizes&&h.headingFontSizes.length||(h.headingFontSizes=[]),h.headingFontSizes.push(e.string());break}case 34:{if(h.headingFontWeights&&h.headingFontWeights.length||(h.headingFontWeights=[]),(y&7)===2){let E=e.uint32()+e.pos;for(;e.pos<E;)h.headingFontWeights.push(e.int32())}else h.headingFontWeights.push(e.int32());break}case 23:{h.showSidebarBorder=e.bool();break}case 59:{h.codeTextColor=e.string();break}case 25:{h.codeBackgroundColor=e.string();break}case 31:{h.dataframeHeaderBackgroundColor=e.string();break}case 33:{h.chartCategoricalColors&&h.chartCategoricalColors.length||(h.chartCategoricalColors=[]),h.chartCategoricalColors.push(e.string());break}case 36:{h.chartSequentialColors&&h.chartSequentialColors.length||(h.chartSequentialColors=[]),h.chartSequentialColors.push(e.string());break}case 62:{h.chartDivergingColors&&h.chartDivergingColors.length||(h.chartDivergingColors=[]),h.chartDivergingColors.push(e.string());break}case 38:{h.redColor=e.string();break}case 39:{h.orangeColor=e.string();break}case 40:{h.yellowColor=e.string();break}case 41:{h.blueColor=e.string();break}case 42:{h.greenColor=e.string();break}case 43:{h.violetColor=e.string();break}case 44:{h.grayColor=e.string();break}case 45:{h.redBackgroundColor=e.string();break}case 46:{h.orangeBackgroundColor=e.string();break}case 47:{h.yellowBackgroundColor=e.string();break}case 48:{h.blueBackgroundColor=e.string();break}case 49:{h.greenBackgroundColor=e.string();break}case 50:{h.violetBackgroundColor=e.string();break}case 51:{h.grayBackgroundColor=e.string();break}case 52:{h.redTextColor=e.string();break}case 53:{h.orangeTextColor=e.string();break}case 54:{h.yellowTextColor=e.string();break}case 55:{h.blueTextColor=e.string();break}case 56:{h.greenTextColor=e.string();break}case 57:{h.violetTextColor=e.string();break}case 58:{h.grayTextColor=e.string();break}case 64:{h.metricValueFontSize=e.string();break}case 65:{h.metricValueFontWeight=e.int32();break}case 24:{h.sidebar=$root.CustomThemeConfig.decode(e,e.uint32());break}case 60:{h.light=$root.CustomThemeConfig.decode(e,e.uint32());break}case 61:{h.dark=$root.CustomThemeConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.CustomThemeConfig)return e;let o=new $root.CustomThemeConfig;switch(e.primaryColor!=null&&(o.primaryColor=String(e.primaryColor)),e.secondaryBackgroun
18dColor!=null&&(o.secondaryBackgroundColor=String(e.secondaryBackgroundColor)),e.backgroundColor!=null&&(o.backgroundColor=String(e.backgroundColor)),e.textColor!=null&&(o.textColor=String(e.textColor)),e.base){default:if(typeof e.base=="number"){o.base=e.base;break}break;case"LIGHT":case 0:o.base=0;break;case"DARK":case 1:o.base=1;break}if(e.headingFont!=null&&(o.headingFont=String(e.headingFont)),e.bodyFont!=null&&(o.bodyFont=String(e.bodyFont)),e.codeFont!=null&&(o.codeFont=String(e.codeFont)),e.fontFaces){if(!Array.isArray(e.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");o.fontFaces=[];for(let d=0;d<e.fontFaces.length;++d){if(typeof e.fontFaces[d]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");o.fontFaces[d]=$root.FontFace.fromObject(e.fontFaces[d])}}if(e.fontSources){if(!Array.isArray(e.fontSources))throw TypeError(".CustomThemeConfig.fontSources: array expected");o.fontSources=[];for(let d=0;d<e.fontSources.length;++d){if(typeof e.fontSources[d]!="object")throw TypeError(".CustomThemeConfig.fontSources: object expected");o.fontSources[d]=$root.FontSource.fromObject(e.fontSources[d])}}if(e.baseRadius!=null&&(o.baseRadius=String(e.baseRadius)),e.buttonRadius!=null&&(o.buttonRadius=String(e.buttonRadius)),e.borderColor!=null&&(o.borderColor=String(e.borderColor)),e.dataframeBorderColor!=null&&(o.dataframeBorderColor=String(e.dataframeBorderColor)),e.showWidgetBorder!=null&&(o.showWidgetBorder=!!e.showWidgetBorder),e.linkColor!=null&&(o.linkColor=String(e.linkColor)),e.linkUnderline!=null&&(o.linkUnderline=!!e.linkUnderline),e.baseFontSize!=null&&(o.baseFontSize=e.baseFontSize|0),e.baseFontWeight!=null&&(o.baseFontWeight=e.baseFontWeight|0),e.codeFontWeight!=null&&(o.codeFontWeight=e.codeFontWeight|0),e.codeFontSize!=null&&(o.codeFontSize=String(e.codeFontSize)),e.headingFontSizes){if(!Array.isArray(e.headingFontSizes))throw TypeError(".CustomThemeConfig.headingFontSizes: array expected");o.headingFontSizes=[];for(let d=0;d<e.headingFontSizes.length;++d)o.headingFontSizes[d]=String(e.headingFontSizes[d])}if(e.headingFontWeights){if(!Array.isArray(e.headingFontWeights))throw TypeError(".CustomThemeConfig.headingFontWeights: array expected");o.headingFontWeights=[];for(let d=0;d<e.headingFontWeights.length;++d)o.headingFontWeights[d]=e.headingFontWeights[d]|0}if(e.showSidebarBorder!=null&&(o.showSidebarBorder=!!e.showSidebarBorder),e.codeTextColor!=null&&(o.codeTextColor=String(e.codeTextColor)),e.codeBackgroundColor!=null&&(o.codeBackgroundColor=String(e.codeBackgroundColor)),e.dataframeHeaderBackgroundColor!=null&&(o.dataframeHeaderBackgroundColor=String(e.dataframeHeaderBackgroundColor)),e.chartCategoricalColors){if(!Array.isArray(e.chartCategoricalColors))throw TypeError(".CustomThemeConfig.chartCategoricalColors: array expected");o.chartCategoricalColors=[];for(let d=0;d<e.chartCategoricalColors.length;++d)o.chartCategoricalColors[d]=String(e.chartCategoricalColors[d])}if(e.chartSequentialColors){if(!Array.isArray(e.chartSequentialColors))throw TypeError(".CustomThemeConfig.chartSequentialColors: array expected");o.chartSequentialColors=[];for(let d=0;d<e.chartSequentialColors.length;++d)o.chartSequentialColors[d]=String(e.chartSequentialColors[d])}if(e.chartDivergingColors){if(!Array.isArray(e.chartDivergingColors))throw TypeError(".CustomThemeConfig.chartDivergingColors: array expected");o.chartDivergingColors=[];for(let d=0;d<e.chartDivergingColors.length;++d)o.chartDivergingColors[d]=String(e.chartDivergingColors[d])}if(e.redColor!=null&&(o.redColor=String(e.redColor)),e.orangeColor!=null&&(o.orangeColor=String(e.orangeColor)),e.yellowColor!=null&&(o.yellowColor=String(e.yellowColor)),e.blueColor!=null&&(o.blueColor=String(e.blueColor)),e.greenColor!=null&&(o.greenColor=String(e.greenColor)),e.violetColor!=null&&(o.violetColor=String(e.violetColor)),e.grayColor!=null&&(o.grayColor=String(e.grayColor)),e.redBackgroundColor!=null&&(o.redBackgroundColor=String(e.redBackgroundColor)),e.orangeBackgroundColor!=null&&(o.orangeBackgroundColor=String(e.orangeBackgroun
18dColor)),e.yellowBackgroundColor!=null&&(o.yellowBackgroundColor=String(e.yellowBackgroundColor)),e.blueBackgroundColor!=null&&(o.blueBackgroundColor=String(e.blueBackgroundColor)),e.greenBackgroundColor!=null&&(o.greenBackgroundColor=String(e.greenBackgroundColor)),e.violetBackgroundColor!=null&&(o.violetBackgroundColor=String(e.violetBackgroundColor)),e.grayBackgroundColor!=null&&(o.grayBackgroundColor=String(e.grayBackgroundColor)),e.redTextColor!=null&&(o.redTextColor=String(e.redTextColor)),e.orangeTextColor!=null&&(o.orangeTextColor=String(e.orangeTextColor)),e.yellowTextColor!=null&&(o.yellowTextColor=String(e.yellowTextColor)),e.blueTextColor!=null&&(o.blueTextColor=String(e.blueTextColor)),e.greenTextColor!=null&&(o.greenTextColor=String(e.greenTextColor)),e.violetTextColor!=null&&(o.violetTextColor=String(e.violetTextColor)),e.grayTextColor!=null&&(o.grayTextColor=String(e.grayTextColor)),e.metricValueFontSize!=null&&(o.metricValueFontSize=String(e.metricValueFontSize)),e.metricValueFontWeight!=null&&(o.metricValueFontWeight=e.metricValueFontWeight|0),e.sidebar!=null){if(typeof e.sidebar!="object")throw TypeError(".CustomThemeConfig.sidebar: object expected");o.sidebar=$root.CustomThemeConfig.fromObject(e.sidebar)}if(e.light!=null){if(typeof e.light!="object")throw TypeError(".CustomThemeConfig.light: object expected");o.light=$root.CustomThemeConfig.fromObject(e.light)}if(e.dark!=null){if(typeof e.dark!="object")throw TypeError(".CustomThemeConfig.dark: object expected");o.dark=$root.CustomThemeConfig.fromObject(e.dark)}return o},n.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fontFaces=[],d.chartCategoricalColors=[],d.headingFontWeights=[],d.headingFontSizes=[],d.chartSequentialColors=[],d.fontSources=[],d.chartDivergingColors=[]),o.defaults&&(d.primaryColor="",d.secondaryBackgroundColor="",d.backgroundColor="",d.textColor="",d.base=o.enums===String?"LIGHT":0,d.headingFont="",d.bodyFont="",d.codeFont=""),e.primaryColor!=null&&e.hasOwnProperty("primaryColor")&&(d.primaryColor=e.primaryColor),e.secondaryBackgroundColor!=null&&e.hasOwnProperty("secondaryBackgroundColor")&&(d.secondaryBackgroundColor=e.secondaryBackgroundColor),e.backgroundColor!=null&&e.hasOwnProperty("backgroundColor")&&(d.backgroundColor=e.backgroundColor),e.textColor!=null&&e.hasOwnProperty("textColor")&&(d.textColor=e.textColor),e.base!=null&&e.hasOwnProperty("base")&&(d.base=o.enums===String?$root.CustomThemeConfig.BaseTheme[e.base]===void 0?e.base:$root.CustomThemeConfig.BaseTheme[e.base]:e.base),e.headingFont!=null&&e.hasOwnProperty("headingFont")&&(d.headingFont=e.headingFont),e.bodyFont!=null&&e.hasOwnProperty("bodyFont")&&(d.bodyFont=e.bodyFont),e.codeFont!=null&&e.hasOwnProperty("codeFont")&&(d.codeFont=e.codeFont),e.fontFaces&&e.fontFaces.length){d.fontFaces=[];for(let p=0;p<e.fontFaces.length;++p)d.fontFaces[p]=$root.FontFace.toObject(e.fontFaces[p],o)}if(e.baseRadius!=null&&e.hasOwnProperty("baseRadius")&&(d.baseRadius=e.baseRadius,o.oneofs&&(d._baseRadius="baseRadius")),e.borderColor!=null&&e.hasOwnProperty("borderColor")&&(d.borderColor=e.borderColor,o.oneofs&&(d._borderColor="borderColor")),e.showWidgetBorder!=null&&e.hasOwnProperty("showWidgetBorder")&&(d.showWidgetBorder=e.showWidgetBorder,o.oneofs&&(d._showWidgetBorder="showWidgetBorder")),e.linkColor!=null&&e.hasOwnProperty("linkColor")&&(d.linkColor=e.linkColor,o.oneofs&&(d._linkColor="linkColor")),e.baseFontSize!=null&&e.hasOwnProperty("baseFontSize")&&(d.baseFontSize=e.baseFontSize,o.oneofs&&(d._baseFontSize="baseFontSize")),e.showSidebarBorder!=null&&e.hasOwnProperty("showSidebarBorder")&&(d.showSidebarBorder=e.showSidebarBorder,o.oneofs&&(d._showSidebarBorder="showSidebarBorder")),e.sidebar!=null&&e.hasOwnProperty("sidebar")&&(d.sidebar=$root.CustomThemeConfig.toObject(e.sidebar,o),o.oneofs&&(d._sidebar="sidebar")),e.codeBackgroundColor!=null&&e.hasOwnProperty("codeBackgroundColor")&&(d.codeBackgroundColor=e.codeBackgroundColor,o.oneofs&&(d._codeBackgroundColor="codeBackgroundColor")),e.buttonRadius!=null&&e.hasOwnProperty("buttonRadius")&&(d.buttonRadius=e.buttonRadius,o.oneofs&&(d._buttonRadius="buttonRadius")),e.dataframeBorderColor!=null&&e.hasOwnProperty("dataframeBorderColor")&&(d.dataframeBorderColor=e.dataframeBorderColor,o.oneofs&&(d._dataframeBorderColor="dataframeBorderColor")),e.codeFontSize!=null&&e.hasOwnProperty("codeFontSize")&&(d.codeFontSize=e.codeFontSize,o.oneofs&&(d._codeFontSize="codeFontSize")),e.linkUnderline!=null&&e.hasOwnProperty("linkUnderline")&&(d.linkUnderline=e.linkUnderline,o.oneofs&&(d._linkUnderline="linkUnderline")),e.baseFontWeight!=null&&e.hasOwnProperty("baseFontWeight")&&(d.baseFontWeight=e.baseFontWeight,o.oneofs&&(d._baseFontWeight="baseFontWeight")),e.dataframeHeaderBackgroun
18dColor!=null&&e.hasOwnProperty("dataframeHeaderBackgroundColor")&&(d.dataframeHeaderBackgroundColor=e.dataframeHeaderBackgroundColor,o.oneofs&&(d._dataframeHeaderBackgroundColor="dataframeHeaderBackgroundColor")),e.codeFontWeight!=null&&e.hasOwnProperty("codeFontWeight")&&(d.codeFontWeight=e.codeFontWeight,o.oneofs&&(d._codeFontWeight="codeFontWeight")),e.chartCategoricalColors&&e.chartCategoricalColors.length){d.chartCategoricalColors=[];for(let p=0;p<e.chartCategoricalColors.length;++p)d.chartCategoricalColors[p]=e.chartCategoricalColors[p]}if(e.headingFontWeights&&e.headingFontWeights.length){d.headingFontWeights=[];for(let p=0;p<e.headingFontWeights.length;++p)d.headingFontWeights[p]=e.headingFontWeights[p]}if(e.headingFontSizes&&e.headingFontSizes.length){d.headingFontSizes=[];for(let p=0;p<e.headingFontSizes.length;++p)d.headingFontSizes[p]=e.headingFontSizes[p]}if(e.chartSequentialColors&&e.chartSequentialColors.length){d.chartSequentialColors=[];for(let p=0;p<e.chartSequentialColors.length;++p)d.chartSequentialColors[p]=e.chartSequentialColors[p]}if(e.fontSources&&e.fontSources.length){d.fontSources=[];for(let p=0;p<e.fontSources.length;++p)d.fontSources[p]=$root.FontSource.toObject(e.fontSources[p],o)}if(e.redColor!=null&&e.hasOwnProperty("redColor")&&(d.redColor=e.redColor,o.oneofs&&(d._redColor="redColor")),e.orangeColor!=null&&e.hasOwnProperty("orangeColor")&&(d.orangeColor=e.orangeColor,o.oneofs&&(d._orangeColor="orangeColor")),e.yellowColor!=null&&e.hasOwnProperty("yellowColor")&&(d.yellowColor=e.yellowColor,o.oneofs&&(d._yellowColor="yellowColor")),e.blueColor!=null&&e.hasOwnProperty("blueColor")&&(d.blueColor=e.blueColor,o.oneofs&&(d._blueColor="blueColor")),e.greenColor!=null&&e.hasOwnProperty("greenColor")&&(d.greenColor=e.greenColor,o.oneofs&&(d._greenColor="greenColor")),e.violetColor!=null&&e.hasOwnProperty("violetColor")&&(d.violetColor=e.violetColor,o.oneofs&&(d._violetColor="violetColor")),e.grayColor!=null&&e.hasOwnProperty("grayColor")&&(d.grayColor=e.grayColor,o.oneofs&&(d._grayColor="grayColor")),e.redBackgroundColor!=null&&e.hasOwnProperty("redBackgroundColor")&&(d.redBackgroundColor=e.redBackgroundColor,o.oneofs&&(d._redBackgroundColor="redBackgroundColor")),e.orangeBackgroundColor!=null&&e.hasOwnProperty("orangeBackgroundColor")&&(d.orangeBackgroundColor=e.orangeBackgroundColor,o.oneofs&&(d._orangeBackgroundColor="orangeBackgroundColor")),e.yellowBackgroundColor!=null&&e.hasOwnProperty("yellowBackgroundColor")&&(d.yellowBackgroundColor=e.yellowBackgroundColor,o.oneofs&&(d._yellowBackgroundColor="yellowBackgroundColor")),e.blueBackgroundColor!=null&&e.hasOwnProperty("blueBackgroundColor")&&(d.blueBackgroundColor=e.blueBackgroundColor,o.oneofs&&(d._blueBackgroundColor="blueBackgroundColor")),e.greenBackgroundColor!=null&&e.hasOwnProperty("greenBackgroundColor")&&(d.greenBackgroundColor=e.greenBackgroundColor,o.oneofs&&(d._greenBackgroundColor="greenBackgroundColor")),e.violetBackgroundColor!=null&&e.hasOwnProperty("violetBackgroundColor")&&(d.violetBackgroundColor=e.violetBackgroundColor,o.oneofs&&(d._violetBackgroundColor="violetBackgroundColor")),e.grayBackgroundColor!=null&&e.hasOwnProperty("grayBackgroundColor")&&(d.grayBackgroundColor=e.grayBackgroundColor,o.oneofs&&(d._grayBackgroundColor="grayBackgroundColor")),e.redTextColor!=null&&e.hasOwnProperty("redTextColor")&&(d.redTextColor=e.redTextColor,o.oneofs&&(d._redTextColor="redTextColor")),e.orangeTextColor!=null&&e.hasOwnProperty("orangeTextColor")&&(d.orangeTextColor=e.orangeTextColor,o.oneofs&&(d._orangeTextColor="orangeTextColor")),e.yellowTextColor!=null&&e.hasOwnProperty("yellowTextColor")&&(d.yellowTextColor=e.yellowTextColor,o.oneofs&&(d._yellowTextColor="yellowTextColor")),e.blueTextColor!=null&&e.hasOwnProperty("blueTextColor")&&(d.blueTextColor=e.blueTextColor,o.oneofs&&(d._blueTextColor="blueTextColor")),e.greenTextColor!=null&&e.hasOwnProperty("greenTextColor")&&(d.greenTextColor=e.greenTextColor,o.oneofs&&(d._greenTextColor="greenTextColor")),e.violetTextColor!=null&&e.hasOwnProperty("violetTextColor")&&(d.violetTextColor=e.violetTextColor,o.oneofs&&(d._violetTextColor="violetTextColor")),e.grayTextColor!=null&&e.hasOwnProperty("grayTextColor")&&(d.grayTextColor=e.grayTextColor,o.oneofs&&(d._grayTextColor="grayTextColor")),e.codeTextColor!=null&&e.hasOwnProperty("codeTextColor")&&(d.codeTextColor=e.codeTextColor,o.oneofs&&(d._codeTextColor="codeTextColor")),e.light!=null&&e.hasOwnProperty("light")&&(d.light=$root.CustomThemeConfig.toObject(e.light,o),o.oneofs&&(d._light="light")),e.dark!=null&&e.hasOwnProperty("dark")&&(d.dark=$root.CustomThemeConfig.toObject(e.dark,o),o.oneofs&&(d._dark="dark")),e.chartDivergingColors&&e.chartDivergingColors.length){d.chartDivergingColors=[];for(let p=0;p<e.chartDivergingColors.length;++p)d.chartDivergingColors[p]=e.chartDivergingColors[p]}return e.metricValueFontSize!=null&&e.hasOwnProperty("metricValueFontSize")&&(d.metricValueFontSize=e.metricValueFontSize,o.oneofs&&(d._metricValueFontSize="metricValueFontSize")),e.metricValueFontWeight!=null&&e.hasOwnProperty("metricValueFontWeight")&&(d.metricValueFontWeight=e.metricValueFontWeight,o.oneofs&&(d._metricValueFontWeight="metricValueFontWeight")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CustomThemeConfig"},n.BaseTheme=(function(){const t={},e=Object.create(t);return e[t[0]="LIGHT"]=0,e[t[1]="DARK"]=1,e})(),n})();$root.FontFace=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.url="",n.prototype.family="",n.prototype.weightRange="",n.prototype.style="",n.prototype.unicodeRange="",n.create=function(t){return new n(t)}
18,n.encode=function(t,e){return e||(e=$Writer.create()),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&e.uint32(10).string(t.url),t.family!=null&&Object.hasOwnProperty.call(t,"family")&&e.uint32(18).string(t.family),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&e.uint32(34).string(t.style),t.weightRange!=null&&Object.hasOwnProperty.call(t,"weightRange")&&e.uint32(42).string(t.weightRange),t.unicodeRange!=null&&Object.hasOwnProperty.call(t,"unicodeRange")&&e.uint32(50).string(t.unicodeRange),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FontFace;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=t.string();break}case 2:{p.family=t.string();break}case 5:{p.weightRange=t.string();break}case 4:{p.style=t.string();break}case 6:{p.unicodeRange=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FontFace)return t;let e=new $root.FontFace;return t.url!=null&&(e.url=String(t.url)),t.family!=null&&(e.family=String(t.family)),t.weightRange!=null&&(e.weightRange=String(t.weightRange)),t.style!=null&&(e.style=String(t.style)),t.unicodeRange!=null&&(e.unicodeRange=String(t.unicodeRange)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.url="",o.family="",o.style="",o.weightRange="",o.unicodeRange=""),t.url!=null&&t.hasOwnProperty("url")&&(o.url=t.url),t.family!=null&&t.hasOwnProperty("family")&&(o.family=t.family),t.style!=null&&t.hasOwnProperty("style")&&(o.style=t.style),t.weightRange!=null&&t.hasOwnProperty("weightRange")&&(o.weightRange=t.weightRange),t.unicodeRange!=null&&t.hasOwnProperty("unicodeRange")&&(o.unicodeRange=t.unicodeRange),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FontFace"},n})();$root.FontSource=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.configName="",n.prototype.sourceUrl="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.configName!=null&&Object.hasOwnProperty.call(t,"configName")&&e.uint32(10).string(t.configName),t.sourceUrl!=null&&Object.hasOwnProperty.call(t,"sourceUrl")&&e.uint32(18).string(t.sourceUrl),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.FontSource;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.configName=t.string();break}case 2:{p.sourceUrl=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.FontSource)return t;let e=new $root.FontSource;return t.configName!=null&&(e.configName=String(t.configName)),t.sourceUrl!=null&&(e.sourceUrl=String(t.sourceUrl)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.configName="",o.sourceUrl=""),t.configName!=null&&t.hasOwnProperty("configName")&&(o.configName=t.configName),t.sourceUrl!=null&&t.hasOwnProperty("sourceUrl")&&(o.sourceUrl=t.sourceUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/FontSource"},n})();$root.UserInfo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.installationId="",n.prototype.installationIdV3="",n.prototype.installationIdV4="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.installationId!=null&&Object.hasOwnProperty.call(t,"installationId")&&e.uint32(10).string(t.installationId),t.installationIdV3!=null&&Object.hasOwnProperty.call(t,"installationIdV3")&&e.uint32(42).string(t.installationIdV3),t.installationIdV4!=null&&Object.hasOwnProperty.call(t,"installationIdV4")&&e.uint32(50).string(t.installationIdV4),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.UserInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.installationId=t.string();break}case 5:{p.installationIdV3=t.string();break}case 6:{p.installationIdV4=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.UserInfo)return t;let e=new $root.UserInfo;return t.installationId!=null&&(e.installationId=String(t.installationId)),t.installationIdV3!=null&&(e.installationIdV3=String(t.installationIdV3)),t.installationIdV4!=null&&(e.installationIdV4=String(t.installationIdV4)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.installationId="",o.installationIdV3="",o.installationIdV4=""),t.installationId!=null&&t.hasOwnProperty("installationId")&&(o.installationId=t.installationId),t.installationIdV3!=null&&t.hasOwnProperty("installationIdV3")&&(o.installationIdV3=t.installationIdV3),t.installationIdV4!=null&&t.hasOwnProperty("installationIdV4")&&(o.installationIdV4=t.installationIdV4),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/UserInfo"},n})();$root.EnvironmentInfo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.streamlitVersion="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.streamlitVersion!=null&&Object.hasOwnProperty.call(t,"streamlitVersion")&&e.uint32(10).string(t.streamlitVersion),t.pythonVersion!=null&&Object.hasOwnProperty.call(t,"pythonVersion")&&e.uint32(18).string(t.pythonVersion),t.serverOs!=null&&Object.hasOwnProperty.call(t,"serverOs")&&e.uint32(26).string(t.serverOs),t.hasDisplay!=null&&Object.hasOwnProperty.call(t,"hasDisplay")&&e.uint32(32).bool(t.hasDisplay),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.EnvironmentInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.streamlitVersion=t.string();break}case 2:{p.pythonVersion=t.string();break}case 3:{p.serverOs=t.string();break}case 4:{p.hasDisplay=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.EnvironmentInfo)return t;let e=new $root.EnvironmentInfo;return t.streamlitVersion!=null&&(e.streamlitVersion=String(t.streamlitVersion)),t.pythonVersion!=null&&(e.pythonVersion=String(t.pythonVersion)),t.serverOs!=null&&(e.serverOs=String(t.serverOs)),t.hasDisplay!=null&&(e.hasDisplay=!!t.hasDisplay),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.streamlitVersion="",o.pythonVersion="",o.serverOs="",o.hasDisplay=!1),t.streamlitVersion!=null&&t.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=t.streamlitVersion),t.pythonVersion!=null&&t.hasOwnProperty("pythonVersion")&&(o.pythonVersion=t.pythonVersion),t.serverOs!=null&&t.hasOwnProperty("serverOs")&&(o.serverOs=t.serverOs),t.hasDisplay!=null&&t.hasOwnProperty("hasDisplay")&&(o.hasDisplay=t.hasDisplay),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/EnvironmentInfo"},n})();$root.SessionStatus=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.runOnSave=!1,n.prototype.scriptIsRunning=!1,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.runOnSave!=null&&Object.hasOwnProperty.call(t,"runOnSave")&&e.uint32(8).bool(t.runOnSave),t.scriptIsRunning!=null&&Object.hasOwnProperty.call(t,"scriptIsRunning")&&e.uint32(16).bool(t.scriptIsRunning),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.SessionStatus;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.runOnSave=t.bool();break}case 2:{p.scriptIsRunning=t.bool();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.SessionStatus)return t;let e=new $root.SessionStatus;return t.runOnSave!=null&&(e.runOnSave=!!t.runOnSave),t.scriptIsRunning!=null&&(e.scriptIsRunning=!!t.scriptIsRunning),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.runOnSave=!1,o.scriptIsRunning=!1),t.runOnSave!=null&&t.hasOwnProperty("runOnSave")&&(o.runOnSave=t.runOnSave),t.scriptIsRunning!=null&&t.hasOwnProperty("scriptIsRunning")&&(o.scriptIsRunning=t.scriptIsRunning),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SessionStatus"},n})();const PageConfig=$root.PageConfig=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.title="",n.prototype.favicon="",n.prototype.layout=0,n.prototype.initialSidebarState=0,n.prototype.menuItems=null,n.prototype.initialSidebarWidth=null;let i;return Object.defineProperty(n.prototype,"_initialSidebarWidth",{get:$util.oneOfGetter(i=["initialSidebarWidth"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.title!=null&&Object.hasOwnProperty.call(e,"title")&&o.uint32(10).string(e.title),e.favicon!=null&&Object.hasOwnProperty.call(e,"favicon")&&o.uint32(18).string(e.favicon),e.layout!=null&&Object.hasOwnProperty.call(e,"layout")&&o.uint32(24).int32(e.layout),e.initialSidebarState!=null&&Object.hasOwnProperty.call(e,"initialSidebarState")&&o.uint32(32).int32(e.initialSidebarState),e.menuItems!=null&&Object.hasOwnProperty.call(e,"menuItems")&&$root.PageConfig.MenuItems.encode(e.menuItems,o.uint32(42).fork()).ldelim(),e.initialSidebarWidth!=null&&Object.hasOwnProperty.call(e,"initialSidebarWidth")&&$root.PageConfig.SidebarWidthConfig.encode(e.initialSidebarWidth,o.uint32(50).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.PageConfig;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.title=e.string();break}case 2:{h.favicon=e.string();break}case 3:{h.layout=e.int32();break}case 4:{h.initialSidebarState=e.int32();break}case 5:{h.menuItems=$root.PageConfig.MenuItems.decode(e,e.uint32());break}case 6:{h.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.PageConfig)return e;let o=new $root.PageConfig;switch(e.title!=null&&(o.title=String(e.title)),e.favicon!=null&&(o.favicon=String(e.favicon)),e.layout){default:if(typeof e.layout=="number"){o.layout=e.layout;break}break;case"CENTERED":case 0:o.layout=0;break;case"WIDE":case 1:o.layout=1;break;case"LAYOUT_UNSET":case 2:o.layout=2;break}switch(e.initialSidebarState){default:if(typeof e.initialSidebarState=="number"){o.initialSidebarState=e.initialSidebarState;break}break;case"AUTO":case 0:o.initialSidebarState=0;break;case"EXPANDED":case 1:o.initialSidebarState=1;break;case"COLLAPSED":case 2:o.initialSidebarState=2;break;case"SIDEBAR_UNSET":case 3:o.initialSidebarState=3;break}if(e.menuItems!=null){if(typeof e.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");o.menuItems=$root.PageConfig.MenuItems.fromObject(e.menuItems)}if(e.initialSidebarWidth!=null){if(typeof e.initialSidebarWidth!="object")throw TypeError(".PageConfig.initialSidebarWidth: object expected");o.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.fromObject(e.initialSidebarWidth)}return o},n.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.title="",d.favicon="",d.layout=o.enums===String?"CENTERED":0,d.initialSidebarState=o.enums===String?"AUTO":0,d.menuItems=null),e.title!=null&&e.hasOwnProperty("title")&&(d.title=e.title),e.favicon!=null&&e.hasOwnProperty("favicon")&&(d.favicon=e.favicon),e.layout!=null&&e.hasOwnProperty("layout")&&(d.layout=o.enums===String?$root.PageConfig.Layout[e.layout]===void 0?e.layout:$root.PageConfig.Layout[e.layout]:e.layout),e.initialSidebarState!=null&&e.hasOwnProperty("initialSidebarState")&&(d.initialSidebarState=o.enums===String?$root.PageConfig.SidebarState[e.initialSidebarState]===void 0?e.initialSidebarState:$root.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),e.menuItems!=null&&e.hasOwnProperty("menuItems")&&(d.menuItems=$root.PageConfig.MenuItems.toObject(e.menuItems,o)),e.initialSidebarWidth!=null&&e.hasOwnProperty("initialSidebarWidth")&&(
18d.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.toObject(e.initialSidebarWidth,o),o.oneofs&&(d._initialSidebarWidth="initialSidebarWidth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageConfig"},n.MenuItems=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.getHelpUrl="",t.prototype.hideGetHelp=!1,t.prototype.reportABugUrl="",t.prototype.hideReportABug=!1,t.prototype.aboutSectionMd="",t.prototype.clearAboutMd=!1,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.getHelpUrl!=null&&Object.hasOwnProperty.call(o,"getHelpUrl")&&d.uint32(10).string(o.getHelpUrl),o.hideGetHelp!=null&&Object.hasOwnProperty.call(o,"hideGetHelp")&&d.uint32(16).bool(o.hideGetHelp),o.reportABugUrl!=null&&Object.hasOwnProperty.call(o,"reportABugUrl")&&d.uint32(26).string(o.reportABugUrl),o.hideReportABug!=null&&Object.hasOwnProperty.call(o,"hideReportABug")&&d.uint32(32).bool(o.hideReportABug),o.aboutSectionMd!=null&&Object.hasOwnProperty.call(o,"aboutSectionMd")&&d.uint32(42).string(o.aboutSectionMd),o.clearAboutMd!=null&&Object.hasOwnProperty.call(o,"clearAboutMd")&&d.uint32(48).bool(o.clearAboutMd),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.PageConfig.MenuItems;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.getHelpUrl=o.string();break}case 2:{y.hideGetHelp=o.bool();break}case 3:{y.reportABugUrl=o.string();break}case 4:{y.hideReportABug=o.bool();break}case 5:{y.aboutSectionMd=o.string();break}case 6:{y.clearAboutMd=o.bool();break}default:o.skipType(E&7);break}}return y},t.fromObject=function(o){if(o instanceof $root.PageConfig.MenuItems)return o;let d=new $root.PageConfig.MenuItems;return o.getHelpUrl!=null&&(d.getHelpUrl=String(o.getHelpUrl)),o.hideGetHelp!=null&&(d.hideGetHelp=!!o.hideGetHelp),o.reportABugUrl!=null&&(d.reportABugUrl=String(o.reportABugUrl)),o.hideReportABug!=null&&(d.hideReportABug=!!o.hideReportABug),o.aboutSectionMd!=null&&(d.aboutSectionMd=String(o.aboutSectionMd)),o.clearAboutMd!=null&&(d.clearAboutMd=!!o.clearAboutMd),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.getHelpUrl="",p.hideGetHelp=!1,p.reportABugUrl="",p.hideReportABug=!1,p.aboutSectionMd="",p.clearAboutMd=!1),o.getHelpUrl!=null&&o.hasOwnProperty("getHelpUrl")&&(p.getHelpUrl=o.getHelpUrl),o.hideGetHelp!=null&&o.hasOwnProperty("hideGetHelp")&&(p.hideGetHelp=o.hideGetHelp),o.reportABugUrl!=null&&o.hasOwnProperty("reportABugUrl")&&(p.reportABugUrl=o.reportABugUrl),o.hideReportABug!=null&&o.hasOwnProperty("hideReportABug")&&(p.hideReportABug=o.hideReportABug),o.aboutSectionMd!=null&&o.hasOwnProperty("aboutSectionMd")&&(p.aboutSectionMd=o.aboutSectionMd),o.clearAboutMd!=null&&o.hasOwnProperty("clearAboutMd")&&(p.clearAboutMd=o.clearAboutMd),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/PageConfig.MenuItems"},t})(),n.Layout=(function(){const t={},e=Object.create(t);return e[t[0]="CENTERED"]=0,e[t[1]="WIDE"]=1,e[t[2]="LAYOUT_UNSET"]=2,e})(),n.SidebarState=(function(){const t={},e=Object.create(t);return e[t[0]="AUTO"]=0,e[t[1]="EXPANDED"]=1,e[t[2]="COLLAPSED"]=2,e[t[3]="SIDEBAR_UNSET"]=3,e})(),n.SidebarWidthConfig=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}t.prototype.pixelWidth=null;let e;return Object.defineProperty(t.prototype,"widthSpec",{get:$util.oneOfGetter(e=["pixelWidth"]),set:$util.oneOfSetter(e)}),t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.pixelWidth!=null&&Object.hasOwnProperty.call(d,"pixelWidth")&&p.uint32(8).uint32(d.pixelWidth),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.PageConfig.SidebarWidthConfig;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.pixelWidth=d.uint32();break}default:d.skipType($&7);break}}return E},t.fromObject=function(d){if(d instanceof $root.PageConfig.SidebarWidthConfig)return d;let p=new $root.PageConfig.SidebarWidthConfig;return d.pixelWidth!=null&&(p.pixelWidth=d.pixelWidth>>>0),p},t.toObject=function(d,p){p||(p={});let h={};return d.pixelWidth!=null&&d.hasOwnProperty("pixelWidth")&&(h.pixelWidth=d.pixelWidth,p.oneofs&&(h.widthSpec="pixelWidth")),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/PageConfig.SidebarWidthConfig"},t})(),n})();$root.PageInfo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.queryString="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&e.uint32(10).string(t.queryString),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.PageInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.PageInfo)return t;let e=new $root.PageInfo;return t.queryString!=null&&(e.queryString=String(t.queryString)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.queryString=""),t.queryString!=null&&t.hasOwnProperty("queryString")&&(o.queryString=t.queryString),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageInfo"},n})();$root.PageNotFound=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.pageName="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.pageName!=null&&Object.hasOwnProperty.call(t,"pageName")&&e.uint32(10).string(t.pageName),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.PageNotFound;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageName=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.PageNotFound)return t;let e=new $root.PageNotFound;return t.pageName!=null&&(e.pageName=String(t.pageName)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.pageName=""),t.pageName!=null&&t.hasOwnProperty("pageName")&&(o.pageName=t.pageName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageNotFound"},n})();const PageProfile=$root.PageProfile=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.serverMode="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.commands!=null&&t.commands.length)for(let o=0;o<t.commands.length;++o)$root.Command.encode(t.commands[o],e.uint32(10).fork()).ldelim();if(t.execTime!=null&&Object.hasOwnProperty.call(t,"execTime")&&e.uint32(16).int64(t.execTime),t.prepTime!=null&&Object.hasOwnProperty.call(t,"prepTime")&&e.uint32(24).int64(t.prepTime),t.config!=null&&t.config.length)for(let o=0;o<t.config.length;++o)e.uint32(42).string(t.config[o]);if(t.uncaughtException!=null&&Object.hasOwnProperty.call(t,"uncaughtException")&&e.uint32(50).string(t.uncaughtException),t.attributions!=null&&t.attributions.length)for(let o=0;o<t.attributions.length;++o)e.uint32(58).string(t.attributions[o]);return t.os!=null&&Object.hasOwnProperty.call(t,"os")&&e.uint32(66).string(t.os),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&e.uint32(74).string(t.timezone),t.headless!=null&&Object.hasOwnProperty.call(t,"headless")&&e.uint32(80).bool(t.headless),t.isFragmentRun!=null&&Object.hasOwnProperty.call(t,"isFragmentRun")&&e.uint32(88).bool(t.isFragmentRun),t.serverMode!=null&&Object.hasOwnProperty.call(t,"serverMode")&&e.uint32(98).string(t.serverMode),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.PageProfile;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(t,t.uint32()));break}case 2:{p.execTime=t.int64();break}case 3:{p.prepTime=t.int64();break}case 5:{p.config&&p.config.length||(p.config=[]),p.config.push(t.string());break}case 6:{p.uncaughtException=t.string();break}case 7:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(t.string());break}case 8:{p.os=t.string();break}case 9:{p.timezone=t.string();break}case 10:{p.headless=t.bool();break}case 11:{p.isFragmentRun=t.bool();break}case 12:{p.serverMode=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.PageProfile)return t;let e=new $root.PageProfile;if(t.commands){if(!Array.isArray(t.commands))throw TypeError(".PageProfile.commands: array expected");e.commands=[];for(let o=0;o<t.commands.length;++o){if(typeof t.commands[o]!="object")throw TypeError(".PageProfile.commands: object expected");e.commands[o]=$root.Command.fromObject(t.commands[o])}}if(t.execTime!=null&&($util.Long?(e.execTime=$util.Long.fromValue(t.execTime)).unsigned=!1:typeof t.execTime=="string"?e.execTime=parseInt(t.execTime,10):typeof t.execTime=="number"?e.execTime=t.execTime:typeof t.execTime=="object"&&(e.execTime=new $util.LongBits(t.execTime.low>>>0,t.execTime.high>
18>>0).toNumber())),t.prepTime!=null&&($util.Long?(e.prepTime=$util.Long.fromValue(t.prepTime)).unsigned=!1:typeof t.prepTime=="string"?e.prepTime=parseInt(t.prepTime,10):typeof t.prepTime=="number"?e.prepTime=t.prepTime:typeof t.prepTime=="object"&&(e.prepTime=new $util.LongBits(t.prepTime.low>>>0,t.prepTime.high>>>0).toNumber())),t.config){if(!Array.isArray(t.config))throw TypeError(".PageProfile.config: array expected");e.config=[];for(let o=0;o<t.config.length;++o)e.config[o]=String(t.config[o])}if(t.uncaughtException!=null&&(e.uncaughtException=String(t.uncaughtException)),t.attributions){if(!Array.isArray(t.attributions))throw TypeError(".PageProfile.attributions: array expected");e.attributions=[];for(let o=0;o<t.attributions.length;++o)e.attributions[o]=String(t.attributions[o])}return t.os!=null&&(e.os=String(t.os)),t.timezone!=null&&(e.timezone=String(t.timezone)),t.headless!=null&&(e.headless=!!t.headless),t.isFragmentRun!=null&&(e.isFragmentRun=!!t.isFragmentRun),t.serverMode!=null&&(e.serverMode=String(t.serverMode)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),e.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.execTime=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.execTime=e.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.prepTime=e.longs===String?"0":0;o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.serverMode=""}if(t.commands&&t.commands.length){o.commands=[];for(let d=0;d<t.commands.length;++d)o.commands[d]=$root.Command.toObject(t.commands[d],e)}if(t.execTime!=null&&t.hasOwnProperty("execTime")&&(typeof t.execTime=="number"?o.execTime=e.longs===String?String(t.execTime):t.execTime:o.execTime=e.longs===String?$util.Long.prototype.toString.call(t.execTime):e.longs===Number?new $util.LongBits(t.execTime.low>>>0,t.execTime.high>>>0).toNumber():t.execTime),t.prepTime!=null&&t.hasOwnProperty("prepTime")&&(typeof t.prepTime=="number"?o.prepTime=e.longs===String?String(t.prepTime):t.prepTime:o.prepTime=e.longs===String?$util.Long.prototype.toString.call(t.prepTime):e.longs===Number?new $util.LongBits(t.prepTime.low>>>0,t.prepTime.high>>>0).toNumber():t.prepTime),t.config&&t.config.length){o.config=[];for(let d=0;d<t.config.length;++d)o.config[d]=t.config[d]}if(t.uncaughtException!=null&&t.hasOwnProperty("uncaughtException")&&(o.uncaughtException=t.uncaughtException),t.attributions&&t.attributions.length){o.attributions=[];for(let d=0;d<t.attributions.length;++d)o.attributions[d]=t.attributions[d]}return t.os!=null&&t.hasOwnProperty("os")&&(o.os=t.os),t.timezone!=null&&t.hasOwnProperty("timezone")&&(o.timezone=t.timezone),t.headless!=null&&t.hasOwnProperty("headless")&&(o.headless=t.headless),t.isFragmentRun!=null&&t.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=t.isFragmentRun),t.serverMode!=null&&t.hasOwnProperty("serverMode")&&(o.serverMode=t.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageProfile"},n})();$root.Argument=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.k="",n.prototype.t="",n.prototype.m="",n.prototype.p=0,n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.k!=null&&Object.hasOwnProperty.call(t,"k")&&e.uint32(10).string(t.k),t.t!=null&&Object.hasOwnProperty.call(t,"t")&&e.uint32(18).string(t.t),t.m!=null&&Object.hasOwnProperty.call(t,"m")&&e.uint32(26).string(t.m),t.p!=null&&Object.hasOwnProperty.call(t,"p")&&e.uint32(40).int32(t.p),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Argument;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.k=t.string();break}case 2:{p.t=t.string();break}case 3:{p.m=t.string();break}case 5:{p.p=t.int32();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Argument)return t;let e=new $root.Argument;return t.k!=null&&(e.k=String(t.k)),t.t!=null&&(e.t=String(t.t)),t.m!=null&&(e.m=String(t.m)),t.p!=null&&(e.p=t.p|0),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.k="",o.t="",o.m="",o.p=0),t.k!=null&&t.hasOwnProperty("k")&&(o.k=t.k),t.t!=null&&t.hasOwnProperty("t")&&(o.t=t.t),t.m!=null&&t.hasOwnProperty("m")&&(o.m=t.m),t.p!=null&&t.hasOwnProperty("p")&&(o.p=t.p),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Argument"},n})();$root.Command=(()=>{function n(i){if(this.args=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.name="",n.prototype.args=$util.emptyArray,n.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&e.uint32(10).string(t.name),t.args!=null&&t.args.length)for(let o=0;o<t.args.length;++o)$root.Argument.encode(t.args[o],e.uint32(18).fork()).ldelim();return t.time!=null&&Object.hasOwnProperty.call(t,"time")&&e.uint32(32).int64(t.time),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.Command;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=t.string();break}case 2:{p.args&&p.args.length||(p.args=[]),p.args.push($root.Argument.decode(t,t.uint32()));break}case 4:{p.time=t.int64();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.Command)return t;let e=new $root.Command;if(t.name!=null&&(e.name=String(t.name)),t.args){if(!Array.isArray(t.args))throw TypeError(".Command.args: array expected");e.args=[];for(let o=0;o<t.args.length;++o){if(typeof t.args[o]!="object")throw TypeError(".Command.args: object expected");e.args[o]=$root.Argument.fromObject(t.args[o])}}return t.time!=null&&($util.Long?(e.time=$util.Long.fromValue(t.time)).unsigned=!1:typeof t.time=="string"?e.time=parseInt(t.time,10):typeof t.time=="number"?e.time=t.time:typeof t.time=="object"&&(e.time=new $util.LongBits(t.time.low>>>0,t.time.high>
18>>0).toNumber())),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.args=[]),e.defaults)if(o.name="",$util.Long){let d=new $util.Long(0,0,!1);o.time=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.time=e.longs===String?"0":0;if(t.name!=null&&t.hasOwnProperty("name")&&(o.name=t.name),t.args&&t.args.length){o.args=[];for(let d=0;d<t.args.length;++d)o.args[d]=$root.Argument.toObject(t.args[d],e)}return t.time!=null&&t.hasOwnProperty("time")&&(typeof t.time=="number"?o.time=e.longs===String?String(t.time):t.time:o.time=e.longs===String?$util.Long.prototype.toString.call(t.time):e.longs===Number?new $util.LongBits(t.time.low>>>0,t.time.high>>>0).toNumber():t.time),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Command"},n})();$root.ParentMessage=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.message="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.message!=null&&Object.hasOwnProperty.call(t,"message")&&e.uint32(10).string(t.message),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.ParentMessage;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.message=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.ParentMessage)return t;let e=new $root.ParentMessage;return t.message!=null&&(e.message=String(t.message)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.message=""),t.message!=null&&t.hasOwnProperty("message")&&(o.message=t.message),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ParentMessage"},n})();$root.SessionEvent=(()=>{function n(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}n.prototype.scriptChangedOnDisk=null,n.prototype.scriptWasManuallyStopped=null,n.prototype.scriptCompilationException=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:$util.oneOfSetter(i)}),n.create=function(e){return new n(e)},n.encode=function(e,o){return o||(o=$Writer.create()),e.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(e,"scriptChangedOnDisk")&&o.uint32(8).bool(e.scriptChangedOnDisk),e.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(e,"scriptWasManuallyStopped")&&o.uint32(16).bool(e.scriptWasManuallyStopped),e.scriptCompilationException!=null&&Object.hasOwnProperty.call(e,"scriptCompilationException")&&$root.Exception.encode(e.scriptCompilationException,o.uint32(26).fork()).ldelim(),o},n.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.SessionEvent;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.scriptChangedOnDisk=e.bool();break}case 2:{h.scriptWasManuallyStopped=e.bool();break}case 3:{h.scriptCompilationException=$root.Exception.decode(e,e.uint32());break}default:e.skipType(y&7);break}}return h},n.fromObject=function(e){if(e instanceof $root.SessionEvent)return e;let o=new $root.SessionEvent;if(e.scriptChangedOnDisk!=null&&(o.scriptChangedOnDisk=!!e.scriptChangedOnDisk),e.scriptWasManuallyStopped!=null&&(o.scriptWasManuallyStopped=!!e.scriptWasManuallyStopped),e.scriptCompilationException!=null){if(typeof e.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");o.scriptCompilationException=$root.Exception.fromObject(e.scriptCompilationException)}return o},n.toObject=function(e,o){o||(o={});let d={};return e.scriptChangedOnDisk!=null&&e.hasOwnProperty("scriptChangedOnDisk")&&(d.scriptChangedOnDisk=e.scriptChangedOnDisk,o.oneofs&&(d.type="scriptChangedOnDisk")),e.scriptWasManuallyStopped!=null&&e.hasOwnProperty("scriptWasManuallyStopped")&&(
18d.scriptWasManuallyStopped=e.scriptWasManuallyStopped,o.oneofs&&(d.type="scriptWasManuallyStopped")),e.scriptCompilationException!=null&&e.hasOwnProperty("scriptCompilationException")&&(d.scriptCompilationException=$root.Exception.toObject(e.scriptCompilationException,o),o.oneofs&&(d.type="scriptCompilationException")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SessionEvent"},n})();const MetricsEvent=$root.MetricsEvent=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.event="",n.prototype.anonymousId="",n.prototype.machineIdV3="",n.prototype.machineIdV4="",n.prototype.reportHash="",n.prototype.dev=!1,n.prototype.source="",n.prototype.streamlitVersion="",n.prototype.isHello=!1,n.prototype.appId="",n.prototype.sessionId="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.prototype.isWebdriver=!1,n.prototype.hostedAt="",n.prototype.owner="",n.prototype.repo="",n.prototype.branch="",n.prototype.mainModule="",n.prototype.creatorId="",n.prototype.contextPageUrl="",n.prototype.contextPageTitle="",n.prototype.contextPagePath="",n.prototype.contextPageReferrer="",n.prototype.contextPageSearch="",n.prototype.contextLocale="",n.prototype.contextUserAgent="",n.prototype.label="",n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.numPages=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.pageScriptHash="",n.prototype.activeTheme="",n.prototype.totalLoadTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.browserInfo=null,n.prototype.serverMode="",n.create=function(t){return new n(t)},n.encode=function(t,e){if(e||(e=$Writer.create()),t.event!=null&&Object.hasOwnProperty.call(t,"event")&&e.uint32(10).string(t.event),t.anonymousId!=null&&Object.hasOwnProperty.call(t,"anonymousId")&&e.uint32(18).string(t.anonymousId),t.machineIdV3!=null&&Object.hasOwnProperty.call(t,"machineIdV3")&&e.uint32(26).string(t.machineIdV3),t.reportHash!=null&&Object.hasOwnProperty.call(t,"reportHash")&&e.uint32(34).string(t.reportHash),t.dev!=null&&Object.hasOwnProperty.call(t,"dev")&&e.uint32(40).bool(t.dev),t.source!=null&&Object.hasOwnProperty.call(t,"source")&&e.uint32(50).string(t.source),t.streamlitVersion!=null&&Object.hasOwnProperty.call(t,"streamlitVersion")&&e.uint32(58).string(t.streamlitVersion),t.isHello!=null&&Object.hasOwnProperty.call(t,"isHello")&&e.uint32(64).bool(t.isHello),t.hostedAt!=null&&Object.hasOwnProperty.call(t,"hostedAt")&&e.uint32(74).string(t.hostedAt),t.owner!=null&&Object.hasOwnProperty.call(t,"owner")&&e.uint32(82).string(t.owner),t.repo!=null&&Object.hasOwnProperty.call(t,"repo")&&e.uint32(90).string(t.repo),t.branch!=null&&Object.hasOwnProperty.call(t,"branch")&&e.uint32(98).string(t.branch),t.mainModule!=null&&Object.hasOwnProperty.call(t,"mainModule")&&e.uint32(106).string(t.mainModule),t.creatorId!=null&&Object.hasOwnProperty.call(t,"creatorId")&&e.uint32(114).string(t.creatorId),t.contextPageUrl!=null&&Object.hasOwnProperty.call(t,"contextPageUrl")&&e.uint32(122).string(t.contextPageUrl),t.contextPageTitle!=null&&Object.hasOwnProperty.call(t,"contextPageTitle")&&e.uint32(130).string(t.contextPageTitle),t.contextPagePath!=null&&Object.hasOwnProperty.call(t,"contextPagePath")&&e.uint32(138).string(t.contextPagePath),t.contextPageReferrer!=null&&Object.hasOwnProperty.call(t,"contextPageReferrer")&&e.uint32(146).string(t.contextPageReferrer),t.contextPageSearch!=null&&Object.hasOwnProperty.call(t,"contextPageSearch")&&e.uint32(154).string(t.contextPageSearch),t.contextLocale!=null&&Object.hasOwnProperty.call(t,"contextLocale")&&e.uint32(162).string(t.contextLocale),t.contextUserAgent!=null&&Object.hasOwnProperty.call(t,"contextUserAgent")&&e.uint32(170).string(t.contextUserAgent),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&e.uint32(178).string(t.label),t.commands!=null&&t.commands.length)for(let o=0;o<t.commands.length;++o)$root.Command.encode(t.commands[o],e.uint32(186).fork()).ldelim();if(t.execTime!=null&&Object.hasOwnProperty.call(t,"execTime")&&e.uint32(192).int64(t.execTime),t.prepTime!=null&&Object.hasOwnProperty.call(t,"prepTime")&&e.uint32(200).int64(t.prepTime),t.config!=null&&t.config.length)for(let o=0;o<t.config.length;++o)e.uint32(210).string(t.config[o]);if(t.uncaughtException!=null&&Object.hasOwnProperty.call(t,"uncaughtException")&&e.uint32(218).string(t.uncaughtException),t.attributions!=null&&t.attributions.length)for(let o=0;o<t.attributions.length;++o)e.uint32(226).string(t.attributions[o]);return t.os!=null&&Object.hasOwnProperty.call(t,"os")&&e.uint32(234).string(t.os),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&e.uint32(242).string(t.timezone),t.headless!=null&&Object.hasOwnProperty.call(t,"headless")&&e.uint32(248).bool(t.headless),t.isFragmentRun!=null&&Object.hasOwnProperty.call(t,"isFragmentRun")&&e.uint32(256).bool(t.isFragmentRun),t.appId!=null&&Object.hasOwnProperty.call(t,"appId")&&e.uint32(266).string(t.appId),t.numPages!=null&&Object.hasOwnProperty.call(t,"numPages")&&e.uint32(272).int64(t.numPages),t.sessionId!=null&&Object.hasOwnProperty.call(t,"sessionId")&&e.uint32(282).string(t.sessionId),t.pythonVersion!=null&&Object.hasOwnProperty.call(t,"pythonVersion")&&e.uint32(290).string(t.pythonVersion),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&e.uint32(298).string(t.pageScriptHash),t.activeTheme!=null&&Object.hasOwnProperty.call(t,"activeTheme")&&e.uint32(306).string(t.activeTheme),t.totalLoadTime!=null&&Object.hasOwnProperty.call(t,"totalLoadTime")&&e.uint32(312).int64(t.totalLoadTime),t.browserInfo!=null&&Object.hasOwnProperty.call(t,"browserInfo")&&$root.BrowserInfo.encode(t.browserInfo,e.uint32(322).fork()).ldelim(),t.machineIdV4!=null&&Object.hasOwnProperty.call(t,"machineIdV4")&&e.uint32(330).string(t.machineIdV4),t.serverOs!=null&&Object.hasOwnProperty.call(t,"serverOs")&&e.uint32(338).string(t.serverOs),t.hasDisplay!=null&&Object.hasOwnProperty.call(t,"hasDisplay")&&e.uint32(344).bool(t.hasDisplay),t.isWebdriver!=null&&Object.hasOwnProperty.call(t,"isWebdriver")&&e.uint32(352).bool(t.isWebdriver),t.serverMode!=null&&Object.hasOwnProperty.call(t,"serverMode")&&e.uint32(362).string(t.serverMode),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.MetricsEvent;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.event=t.string();break}case 2:{p.anonymousId=t.string();break}case 3:{p.machineIdV3=t.string();break}case 41:{p.machineIdV4=t.string();break}case 4:{p.reportHash=t.string();break}case 5:{p.dev=t.bool();break}case 6:{p.source=t.string();break}case 7:{p.streamlitVersion=t.string();break}case 8:{p.isHello=t.bool();break}
vendor: 4,281 bytes, line 18
18case 33:{p.appId=t.string();break}case 35:{p.sessionId=t.string();break}case 36:{p.pythonVersion=t.string();break}case 42:{p.serverOs=t.string();break}case 43:{p.hasDisplay=t.bool();break}case 44:{p.isWebdriver=t.bool();break}case 9:{p.hostedAt=t.string();break}case 10:{p.owner=t.string();break}case 11:{p.repo=t.string();break}case 12:{p.branch=t.string();break}case 13:{p.mainModule=t.string();break}case 14:{p.creatorId=t.string();break}case 15:{p.contextPageUrl=t.string();break}case 16:{p.contextPageTitle=t.string();break}case 17:{p.contextPagePath=t.string();break}case 18:{p.contextPageReferrer=t.string();break}case 19:{p.contextPageSearch=t.string();break}case 20:{p.contextLocale=t.string();break}case 21:{p.contextUserAgent=t.string();break}case 22:{p.label=t.string();break}case 23:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(t,t.uint32()));break}case 24:{p.execTime=t.int64();break}case 25:{p.prepTime=t.int64();break}case 26:{p.config&&p.config.length||(p.config=[]),p.config.push(t.string());break}case 27:{p.uncaughtException=t.string();break}case 28:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(t.string());break}case 29:{p.os=t.string();break}case 30:{p.timezone=t.string();break}case 31:{p.headless=t.bool();break}case 32:{p.isFragmentRun=t.bool();break}case 34:{p.numPages=t.int64();break}case 37:{p.pageScriptHash=t.string();break}case 38:{p.activeTheme=t.string();break}case 39:{p.totalLoadTime=t.int64();break}case 40:{p.browserInfo=$root.BrowserInfo.decode(t,t.uint32());break}case 45:{p.serverMode=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.MetricsEvent)return t;let e=new $root.MetricsEvent;if(t.event!=null&&(e.event=String(t.event)),t.anonymousId!=null&&(e.anonymousId=String(t.anonymousId)),t.machineIdV3!=null&&(e.machineIdV3=String(t.machineIdV3)),t.machineIdV4!=null&&(e.machineIdV4=String(t.machineIdV4)),t.reportHash!=null&&(e.reportHash=String(t.reportHash)),t.dev!=null&&(e.dev=!!t.dev),t.source!=null&&(e.source=String(t.source)),t.streamlitVersion!=null&&(e.streamlitVersion=String(t.streamlitVersion)),t.isHello!=null&&(e.isHello=!!t.isHello),t.appId!=null&&(e.appId=String(t.appId)),t.sessionId!=null&&(e.sessionId=String(t.sessionId)),t.pythonVersion!=null&&(e.pythonVersion=String(t.pythonVersion)),t.serverOs!=null&&(e.serverOs=String(t.serverOs)),t.hasDisplay!=null&&(e.hasDisplay=!!t.hasDisplay),t.isWebdriver!=null&&(e.isWebdriver=!!t.isWebdriver),t.hostedAt!=null&&(e.hostedAt=String(t.hostedAt)),t.owner!=null&&(e.owner=String(t.owner)),t.repo!=null&&(e.repo=String(t.repo)),t.branch!=null&&(e.branch=String(t.branch)),t.mainModule!=null&&(e.mainModule=String(t.mainModule)),t.creatorId!=null&&(e.creatorId=String(t.creatorId)),t.contextPageUrl!=null&&(e.contextPageUrl=String(t.contextPageUrl)),t.contextPageTitle!=null&&(e.contextPageTitle=String(t.contextPageTitle)),t.contextPagePath!=null&&(e.contextPagePath=String(t.contextPagePath)),t.contextPageReferrer!=null&&(e.contextPageReferrer=String(t.contextPageReferrer)),t.contextPageSearch!=null&&(e.contextPageSearch=String(t.contextPageSearch)),t.contextLocale!=null&&(e.contextLocale=String(t.contextLocale)),t.contextUserAgent!=null&&(e.contextUserAgent=String(t.contextUserAgent)),t.label!=null&&(e.label=String(t.label)),t.commands){if(!Array.isArray(t.commands))throw TypeError(".MetricsEvent.commands: array expected");e.commands=[];for(let o=0;o<t.commands.length;++o){if(typeof t.commands[o]!="object")throw TypeError(".MetricsEvent.commands: object expected");e.commands[o]=$root.Command.fromObject(t.commands[o])}}if(t.execTime!=null&&($util.Long?(e.execTime=$util.Long.fromValue(t.execTime)).unsigned=!1:typeof t.execTime=="string"?e.execTime=parseInt(t.execTime,10):typeof t.execTime=="number"?e.execTime=t.execTime:typeof t.execTime=="object"&&(e.execTime=new $util.LongBits(t.execTime.low>>>0,t.execTime.high>>>0).toNumber())),t.prepTime!=null&&($util.Long?(e.prepTime=$util.Long.fromValue(t.prepTime)).unsigned=!1:typeof t.prepTime=="string"?e.prepTime=parseInt(t.prepTime,10):typeof t.prepTime=="number"?e.prepTime=t.prepTime:typeof t.prepTime=="object"&&(e.prepTime=new $util.LongBits(t.prepTime.low>>>0,t.prepTime.high>
18>>0).toNumber())),t.config){if(!Array.isArray(t.config))throw TypeError(".MetricsEvent.config: array expected");e.config=[];for(let o=0;o<t.config.length;++o)e.config[o]=String(t.config[o])}if(t.uncaughtException!=null&&(e.uncaughtException=String(t.uncaughtException)),t.attributions){if(!Array.isArray(t.attributions))throw TypeError(".MetricsEvent.attributions: array expected");e.attributions=[];for(let o=0;o<t.attributions.length;++o)e.attributions[o]=String(t.attributions[o])}if(t.os!=null&&(e.os=String(t.os)),t.timezone!=null&&(e.timezone=String(t.timezone)),t.headless!=null&&(e.headless=!!t.headless),t.isFragmentRun!=null&&(e.isFragmentRun=!!t.isFragmentRun),t.numPages!=null&&($util.Long?(e.numPages=$util.Long.fromValue(t.numPages)).unsigned=!1:typeof t.numPages=="string"?e.numPages=parseInt(t.numPages,10):typeof t.numPages=="number"?e.numPages=t.numPages:typeof t.numPages=="object"&&(e.numPages=new $util.LongBits(t.numPages.low>>>0,t.numPages.high>>>0).toNumber())),t.pageScriptHash!=null&&(e.pageScriptHash=String(t.pageScriptHash)),t.activeTheme!=null&&(e.activeTheme=String(t.activeTheme)),t.totalLoadTime!=null&&($util.Long?(e.totalLoadTime=$util.Long.fromValue(t.totalLoadTime)).unsigned=!1:typeof t.totalLoadTime=="string"?e.totalLoadTime=parseInt(t.totalLoadTime,10):typeof t.totalLoadTime=="number"?e.totalLoadTime=t.totalLoadTime:typeof t.totalLoadTime=="object"&&(e.totalLoadTime=new $util.LongBits(t.totalLoadTime.low>>>0,t.totalLoadTime.high>>>0).toNumber())),t.browserInfo!=null){if(typeof t.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");e.browserInfo=$root.BrowserInfo.fromObject(t.browserInfo)}return t.serverMode!=null&&(e.serverMode=String(t.serverMode)),e},n.toObject=function(t,e){e||(e={});let o={};if((e.arrays||e.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),e.defaults){if(o.event="",o.anonymousId="",o.machineIdV3="",o.reportHash="",o.dev=!1,o.source="",o.streamlitVersion="",o.isHello=!1,o.hostedAt="",o.owner="",o.repo="",o.branch="",o.mainModule="",o.creatorId="",o.contextPageUrl="",o.contextPageTitle="",o.contextPagePath="",o.contextPageReferrer="",o.contextPageSearch="",o.contextLocale="",o.contextUserAgent="",o.label="",$util.Long){let d=new $util.Long(0,0,!1);o.execTime=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.execTime=e.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.prepTime=e.longs===String?"0":0;if(o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.appId="",$util.Long){let d=new $util.Long(0,0,!1);o.numPages=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.numPages=e.longs===String?"0":0;if(o.sessionId="",o.pythonVersion="",o.pageScriptHash="",o.activeTheme="",$util.Long){let d=new $util.Long(0,0,!1);o.totalLoadTime=e.longs===String?d.toString():e.longs===Number?d.toNumber():d}else o.totalLoadTime=e.longs===String?"0":0;o.browserInfo=null,o.machineIdV4="",o.serverOs="",o.hasDisplay=!1,o.isWebdriver=!1,o.serverMode=""}if(t.event!=null&&t.hasOwnProperty("event")&&(o.event=t.event),t.anonymousId!=null&&t.hasOwnProperty("anonymousId")&&(o.anonymousId=t.anonymousId),t.machineIdV3!=null&&t.hasOwnProperty("machineIdV3")&&(o.machineIdV3=t.machineIdV3),t.reportHash!=null&&t.hasOwnProperty("reportHash")&&(o.reportHash=t.reportHash),t.dev!=null&&t.hasOwnProperty("dev")&&(o.dev=t.dev),t.source!=null&&t.hasOwnProperty("source")&&(o.source=t.source),t.streamlitVersion!=null&&t.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=t.streamlitVersion),t.isHello!=null&&t.hasOwnProperty("isHello")&&(o.isHello=t.isHello),t.hostedAt!=null&&t.hasOwnProperty("hostedAt")&&(o.hostedAt=t.hostedAt),t.owner!=null&&t.hasOwnProperty("owner")&&(o.owner=t.owner),t.repo!=null&&t.hasOwnProperty("repo")&&(o.repo=t.repo),t.branch!=null&&t.hasOwnProperty("branch")&&(o.branch=t.branch),t.mainModule!=null&&t.hasOwnProperty("mainModule")&&(o.mainModule=t.mainModule),t.creatorId!=null&&t.hasOwnProperty("creatorId")&&(o.creatorId=t.creatorId),t.contextPageUrl!=null&&t.hasOwnProperty("contextPageUrl")&&(o.contextPageUrl=t.contextPageUrl),t.contextPageTitle!=null&&t.hasOwnProperty("contextPageTitle")&&(o.contextPageTitle=t.contextPageTitle),t.contextPagePath!=null&&t.hasOwnProperty("contextPagePath")&&(o.contextPagePath=t.contextPagePath),t.contextPageReferrer!=null&&t.hasOwnProperty("contextPageReferrer")&&(o.contextPageReferrer=t.contextPageReferrer),t.contextPageSearch!=null&&t.hasOwnProperty("contextPageSearch")&&(o.contextPageSearch=t.contextPageSearch),t.contextLocale!=null&&t.hasOwnProperty("contextLocale")&&(o.contextLocale=t.contextLocale),t.contextUserAgent!=null&&t.hasOwnProperty("contextUserAgent")&&(o.contextUserAgent=t.contextUserAgent),t.label!=null&&t.hasOwnProperty("label")&&(o.label=t.label),t.commands&&t.commands.length){o.commands=[];for(let d=0;d<t.commands.length;++d)o.commands[d]=$root.Command.toObject(t.commands[d],e)}if(t.execTime!=null&&t.hasOwnProperty("execTime")&&(typeof t.execTime=="number"?o.execTime=e.longs===String?String(t.execTime):t.execTime:o.execTime=e.longs===String?$util.Long.prototype.toString.call(t.execTime):e.longs===Number?new $util.LongBits(t.execTime.low>>>0,t.execTime.high>
18>>0).toNumber():t.execTime),t.prepTime!=null&&t.hasOwnProperty("prepTime")&&(typeof t.prepTime=="number"?o.prepTime=e.longs===String?String(t.prepTime):t.prepTime:o.prepTime=e.longs===String?$util.Long.prototype.toString.call(t.prepTime):e.longs===Number?new $util.LongBits(t.prepTime.low>>>0,t.prepTime.high>>>0).toNumber():t.prepTime),t.config&&t.config.length){o.config=[];for(let d=0;d<t.config.length;++d)o.config[d]=t.config[d]}if(t.uncaughtException!=null&&t.hasOwnProperty("uncaughtException")&&(o.uncaughtException=t.uncaughtException),t.attributions&&t.attributions.length){o.attributions=[];for(let d=0;d<t.attributions.length;++d)o.attributions[d]=t.attributions[d]}return t.os!=null&&t.hasOwnProperty("os")&&(o.os=t.os),t.timezone!=null&&t.hasOwnProperty("timezone")&&(o.timezone=t.timezone),t.headless!=null&&t.hasOwnProperty("headless")&&(o.headless=t.headless),t.isFragmentRun!=null&&t.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=t.isFragmentRun),t.appId!=null&&t.hasOwnProperty("appId")&&(o.appId=t.appId),t.numPages!=null&&t.hasOwnProperty("numPages")&&(typeof t.numPages=="number"?o.numPages=e.longs===String?String(t.numPages):t.numPages:o.numPages=e.longs===String?$util.Long.prototype.toString.call(t.numPages):e.longs===Number?new $util.LongBits(t.numPages.low>>>0,t.numPages.high>>>0).toNumber():t.numPages),t.sessionId!=null&&t.hasOwnProperty("sessionId")&&(o.sessionId=t.sessionId),t.pythonVersion!=null&&t.hasOwnProperty("pythonVersion")&&(o.pythonVersion=t.pythonVersion),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=t.pageScriptHash),t.activeTheme!=null&&t.hasOwnProperty("activeTheme")&&(o.activeTheme=t.activeTheme),t.totalLoadTime!=null&&t.hasOwnProperty("totalLoadTime")&&(typeof t.totalLoadTime=="number"?o.totalLoadTime=e.longs===String?String(t.totalLoadTime):t.totalLoadTime:o.totalLoadTime=e.longs===String?$util.Long.prototype.toString.call(t.totalLoadTime):e.longs===Number?new $util.LongBits(t.totalLoadTime.low>>>0,t.totalLoadTime.high>>>0).toNumber():t.totalLoadTime),t.browserInfo!=null&&t.hasOwnProperty("browserInfo")&&(o.browserInfo=$root.BrowserInfo.toObject(t.browserInfo,e)),t.machineIdV4!=null&&t.hasOwnProperty("machineIdV4")&&(o.machineIdV4=t.machineIdV4),t.serverOs!=null&&t.hasOwnProperty("serverOs")&&(o.serverOs=t.serverOs),t.hasDisplay!=null&&t.hasOwnProperty("hasDisplay")&&(o.hasDisplay=t.hasDisplay),t.isWebdriver!=null&&t.hasOwnProperty("isWebdriver")&&(o.isWebdriver=t.isWebdriver),t.serverMode!=null&&t.hasOwnProperty("serverMode")&&(o.serverMode=t.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/MetricsEvent"},n})();$root.BrowserInfo=(()=>{function n(i){if(i)for(let t=Object.keys(i),e=0;e<t.length;++e)i[t[e]]!=null&&(this[t[e]]=i[t[e]])}return n.prototype.browserName="",n.prototype.browserVersion="",n.prototype.deviceType="",n.prototype.os="",n.create=function(t){return new n(t)},n.encode=function(t,e){return e||(e=$Writer.create()),t.browserName!=null&&Object.hasOwnProperty.call(t,"browserName")&&e.uint32(10).string(t.browserName),t.browserVersion!=null&&Object.hasOwnProperty.call(t,"browserVersion")&&e.uint32(18).string(t.browserVersion),t.deviceType!=null&&Object.hasOwnProperty.call(t,"deviceType")&&e.uint32(26).string(t.deviceType),t.os!=null&&Object.hasOwnProperty.call(t,"os")&&e.uint32(34).string(t.os),e},n.decode=function(t,e,o){t instanceof $Reader||(t=$Reader.create(t));let d=e===void 0?t.len:t.pos+e,p=new $root.BrowserInfo;for(;t.pos<d;){let h=t.uint32();if(h===o)break;switch(h>>>3){case 1:{p.browserName=t.string();break}case 2:{p.browserVersion=t.string();break}case 3:{p.deviceType=t.string();break}case 4:{p.os=t.string();break}default:t.skipType(h&7);break}}return p},n.fromObject=function(t){if(t instanceof $root.BrowserInfo)return t;let e=new $root.BrowserInfo;return t.browserName!=null&&(e.browserName=String(t.browserName)),t.browserVersion!=null&&(e.browserVersion=String(t.browserVersion)),t.deviceType!=null&&(e.deviceType=String(t.deviceType)),t.os!=null&&(e.os=String(t.os)),e},n.toObject=function(t,e){e||(e={});let o={};return e.defaults&&(o.browserName="",o.browserVersion="",o.deviceType="",o.os=""),t.browserName!=null&&t.hasOwnProperty("browserName")&&(o.browserName=t.browserName),t.browserVersion!=null&&t.hasOwnProperty("browserVersion")&&(o.browserVersion=t.browserVersion),t.deviceType!=null&&t.hasOwnProperty("deviceType")&&(o.deviceType=t.deviceType),t.os!=null&&t.hasOwnProperty("os")&&(o.os=t.os),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BrowserInfo"},n})();$root.openmetrics=(()=>{const n={};return n.MetricSet=(function(){function i(t){if(this.metricFamilies=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.metricFamilies=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.metricFamilies!=null&&e.metricFamilies.length)for(let d=0;d<e.metricFamilies.length;++d)$root.openmetrics.MetricFamily.encode(e.metricFamilies[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.MetricSet;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.metricFamilies&&h.metricFamilies.length||(h.metricFamilies=[]),h.metricFamilies.push($root.openmetrics.MetricFamily.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.MetricSet)return e;let o=new $root.openmetrics.MetricSet;
18if(e.metricFamilies){if(!Array.isArray(e.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");o.metricFamilies=[];for(let d=0;d<e.metricFamilies.length;++d){if(typeof e.metricFamilies[d]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");o.metricFamilies[d]=$root.openmetrics.MetricFamily.fromObject(e.metricFamilies[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){d.metricFamilies=[];for(let p=0;p<e.metricFamilies.length;++p)d.metricFamilies[p]=$root.openmetrics.MetricFamily.toObject(e.metricFamilies[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.MetricSet"},i})(),n.MetricFamily=(function(){function i(t){if(this.metrics=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.name="",i.prototype.type=0,i.prototype.unit="",i.prototype.help="",i.prototype.metrics=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&o.uint32(10).string(e.name),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&o.uint32(16).int32(e.type),e.unit!=null&&Object.hasOwnProperty.call(e,"unit")&&o.uint32(26).string(e.unit),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&o.uint32(34).string(e.help),e.metrics!=null&&e.metrics.length)for(let d=0;d<e.metrics.length;++d)$root.Metric.encode(e.metrics[d],o.uint32(42).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.MetricFamily;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=e.string();break}case 2:{h.type=e.int32();break}case 3:{h.unit=e.string();break}case 4:{h.help=e.string();break}case 5:{h.metrics&&h.metrics.length||(h.metrics=[]),h.metrics.push($root.Metric.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.MetricFamily)return e;let o=new $root.openmetrics.MetricFamily;switch(e.name!=null&&(o.name=String(e.name)),e.type){default:if(typeof e.type=="number"){o.type=e.type;break}break;case"UNKNOWN":case 0:o.type=0;break;case"GAUGE":case 1:o.type=1;break;case"COUNTER":case 2:o.type=2;break;case"STATE_SET":case 3:o.type=3;break;case"INFO":case 4:o.type=4;break;case"HISTOGRAM":case 5:o.type=5;break;case"GAUGE_HISTOGRAM":case 6:o.type=6;break;case"SUMMARY":case 7:o.type=7;break}if(e.unit!=null&&(o.unit=String(e.unit)),e.help!=null&&(o.help=String(e.help)),e.metrics){if(!Array.isArray(e.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");o.metrics=[];for(let d=0;d<e.metrics.length;++d){if(typeof e.metrics[d]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");o.metrics[d]=$root.Metric.fromObject(e.metrics[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metrics=[]),o.defaults&&(d.name="",d.type=o.enums===String?"UNKNOWN":0,d.unit="",d.help=""),e.name!=null&&e.hasOwnProperty("name")&&(d.name=e.name),e.type!=null&&e.hasOwnProperty("type")&&(d.type=o.enums===String?$root.openmetrics.MetricType[e.type]===void 0?e.type:$root.openmetrics.MetricType[e.type]:e.type),e.unit!=null&&e.hasOwnProperty("unit")&&(d.unit=e.unit),e.help!=null&&e.hasOwnProperty("help")&&(d.help=e.help),e.metrics&&e.metrics.length){d.metrics=[];for(let p=0;p<e.metrics.length;++p)d.metrics[p]=$root.Metric.toObject(e.metrics[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.MetricFamily"},i})(),n.MetricType=(function(){const i={},t=Object.create(i);return t[i[0]="UNKNOWN"]=0,t[i[1]="GAUGE"]=1,t[i[2]="COUNTER"]=2,t[i[3]="STATE_SET"]=3,t[i[4]="INFO"]=4,t[i[5]="HISTOGRAM"]=5,t[i[6]="GAUGE_HISTOGRAM"]=6,t[i[7
18]="SUMMARY"]=7,t})(),n.Metric=(function(){function i(t){if(this.labels=[],this.metricPoints=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.labels=$util.emptyArray,i.prototype.metricPoints=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.labels!=null&&e.labels.length)for(let d=0;d<e.labels.length;++d)$root.openmetrics.Label.encode(e.labels[d],o.uint32(10).fork()).ldelim();if(e.metricPoints!=null&&e.metricPoints.length)for(let d=0;d<e.metricPoints.length;++d)$root.openmetrics.MetricPoint.encode(e.metricPoints[d],o.uint32(18).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.Metric;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.labels&&h.labels.length||(h.labels=[]),h.labels.push($root.openmetrics.Label.decode(e,e.uint32()));break}case 2:{h.metricPoints&&h.metricPoints.length||(h.metricPoints=[]),h.metricPoints.push($root.openmetrics.MetricPoint.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.Metric)return e;let o=new $root.openmetrics.Metric;if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".openmetrics.Metric.labels: array expected");o.labels=[];for(let d=0;d<e.labels.length;++d){if(typeof e.labels[d]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");o.labels[d]=$root.openmetrics.Label.fromObject(e.labels[d])}}if(e.metricPoints){if(!Array.isArray(e.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");o.metricPoints=[];for(let d=0;d<e.metricPoints.length;++d){if(typeof e.metricPoints[d]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");o.metricPoints[d]=$root.openmetrics.MetricPoint.fromObject(e.metricPoints[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.labels=[],d.metricPoints=[]),e.labels&&e.labels.length){d.labels=[];for(let p=0;p<e.labels.length;++p)d.labels[p]=$root.openmetrics.Label.toObject(e.labels[p],o)}if(e.metricPoints&&e.metricPoints.length){d.metricPoints=[];for(let p=0;p<e.metricPoints.length;++p)d.metricPoints[p]=$root.openmetrics.MetricPoint.toObject(e.metricPoints[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.Metric"},i})(),n.Label=(function(){function i(t){if(t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.name="",i.prototype.value="",i.create=function(e){return new i(e)},i.encode=function(e,o){return o||(o=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&o.uint32(10).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(18).string(e.value),o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.Label;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=e.string();break}case 2:{h.value=e.string();break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.Label)return e;let o=new $root.openmetrics.Label;return e.name!=null&&(o.name=String(e.name)),e.value!=null&&(o.value=String(e.value)),o},i.toObject=function(e,o){o||(o={});let d={};return o.defaults&&(d.name="",d.value=""),e.name!=null&&e.hasOwnProperty("name")&&(d.name=e.name),e.value!=null&&e.hasOwnProperty("value")&&(d.value=e.value),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.Label"},i})(),n.MetricPoint=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.unknownValue=null,i.prototype.gaugeValue=null,i.prototype.counterValue=null,i.prototype.histogramValue=null,i.prototype.stateSetValue=null,i.prototype.infoValue=null,i.prototype.summaryValue=null,i.prototype.timestamp=null;let t;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(t=["unknownValue","gauge
18Value","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.unknownValue!=null&&Object.hasOwnProperty.call(o,"unknownValue")&&$root.openmetrics.UnknownValue.encode(o.unknownValue,d.uint32(10).fork()).ldelim(),o.gaugeValue!=null&&Object.hasOwnProperty.call(o,"gaugeValue")&&$root.openmetrics.GaugeValue.encode(o.gaugeValue,d.uint32(18).fork()).ldelim(),o.counterValue!=null&&Object.hasOwnProperty.call(o,"counterValue")&&$root.openmetrics.CounterValue.encode(o.counterValue,d.uint32(26).fork()).ldelim(),o.histogramValue!=null&&Object.hasOwnProperty.call(o,"histogramValue")&&$root.openmetrics.HistogramValue.encode(o.histogramValue,d.uint32(34).fork()).ldelim(),o.stateSetValue!=null&&Object.hasOwnProperty.call(o,"stateSetValue")&&$root.openmetrics.StateSetValue.encode(o.stateSetValue,d.uint32(42).fork()).ldelim(),o.infoValue!=null&&Object.hasOwnProperty.call(o,"infoValue")&&$root.openmetrics.InfoValue.encode(o.infoValue,d.uint32(50).fork()).ldelim(),o.summaryValue!=null&&Object.hasOwnProperty.call(o,"summaryValue")&&$root.openmetrics.SummaryValue.encode(o.summaryValue,d.uint32(58).fork()).ldelim(),o.timestamp!=null&&Object.hasOwnProperty.call(o,"timestamp")&&$root.google.protobuf.Timestamp.encode(o.timestamp,d.uint32(66).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.MetricPoint;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.unknownValue=$root.openmetrics.UnknownValue.decode(o,o.uint32());break}case 2:{y.gaugeValue=$root.openmetrics.GaugeValue.decode(o,o.uint32());break}case 3:{y.counterValue=$root.openmetrics.CounterValue.decode(o,o.uint32());break}case 4:{y.histogramValue=$root.openmetrics.HistogramValue.decode(o,o.uint32());break}case 5:{y.stateSetValue=$root.openmetrics.StateSetValue.decode(o,o.uint32());break}case 6:{y.infoValue=$root.openmetrics.InfoValue.decode(o,o.uint32());break}case 7:{y.summaryValue=$root.openmetrics.SummaryValue.decode(o,o.uint32());break}case 8:{y.timestamp=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}default:o.skipType(E&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.MetricPoint)return o;let d=new $root.openmetrics.MetricPoint;if(o.unknownValue!=null){if(typeof o.unknownValue!="object")throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");d.unknownValue=$root.openmetrics.UnknownValue.fromObject(o.unknownValue)}if(o.gaugeValue!=null){if(typeof o.gaugeValue!="object")throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");d.gaugeValue=$root.openmetrics.GaugeValue.fromObject(o.gaugeValue)}if(o.counterValue!=null){if(typeof o.counterValue!="object")throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");d.counterValue=$root.openmetrics.CounterValue.fromObject(o.counterValue)}if(o.histogramValue!=null){if(typeof o.histogramValue!="object")throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");d.histogramValue=$root.openmetrics.HistogramValue.fromObject(o.histogramValue)}if(o.stateSetValue!=null){if(typeof o.stateSetValue!="object")throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");d.stateSetValue=$root.openmetrics.StateSetValue.fromObject(o.stateSetValue)}if(o.infoValue!=null){if(typeof o.infoValue!="object")throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");d.infoValue=$root.openmetrics.InfoValue.fromObject(o.infoValue)}if(o.summaryValue!=null){if(typeof o.summaryValue!="object")throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");d.summaryValue=$root.openmetrics.SummaryValue.fromObject(o.summaryValue)}if(o.timestamp!=null){if(typeof o.timestamp!="object")throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");d.timestamp=$root.google.protobuf.Timestamp.fromObject(o.timestamp)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.timestamp=null),o.unknownValue!=null&&o.hasOwnProperty("unknownValue")&&(p.unknownValue=$root.openmetrics.UnknownValue.toObject(o.unknownValue,d),d.oneofs&&(p.value="unknownValue")),o.gaugeValue!=null&&o.hasOwnProperty("gaugeValue")&&(p.gaugeValue=$root.openmetrics.GaugeValue.toObject(o.gaugeValue,d),d.oneofs&&(p.value="gaugeValue")),o.counterValue!=null&&o.hasOwnProperty("counterValue")&&(p.counterValue=$root.openmetrics.CounterValue.toObject(o.counterValue,d),d.oneofs&&(p.value="counterValue")),o.histogramValue!=null&&o.hasOwnProperty("histogramValue")&&(p.histogramValue=$root.openmetrics.HistogramValue.toObject(o.histogramValue,d),d.oneofs&&(p.value="histogramValue")),o.stateSetValue!=null&&o.hasOwnProperty("stateSetValue")&&(p.stateSetValue=$root.openmetrics.StateSetValue.toObject(o.stateSetValue,d),d.oneofs&&(p.value="stateSetValue")),o.infoValue!=null&&o.hasOwnProperty("infoValue")&&(p.infoValue=$root.openmetrics.InfoValue.toObject(o.infoValue,d),d.oneofs&&(p.value="infoValue")),o.summaryValue!=null&&o.hasOwnProperty("summaryValue")&&(p.summaryValue=$root.openmetrics.SummaryValue.toObject(o.summaryValue,d),d.oneofs&&(p.value="summaryValue")),o.timestamp!=null&&o.hasOwnProperty("timestamp")&&(p.timestamp=$root.google.protobuf.Timestamp.toObject(o.timestamp,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.MetricPoint"},i})(),n.UnknownValue=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let t;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(t=["doubleValue","intValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.UnknownValue;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType(E&7);break}}return y}
18,i.fromObject=function(o){if(o instanceof $root.openmetrics.UnknownValue)return o;let d=new $root.openmetrics.UnknownValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.UnknownValue"},i})(),n.GaugeValue=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let t;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(t=["doubleValue","intValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.GaugeValue;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType(E&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.GaugeValue)return o;let d=new $root.openmetrics.GaugeValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.GaugeValue"},i})(),n.CounterValue=(function(){function i(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.created=null,i.prototype.exemplar=null;let t;return Object.defineProperty(i.prototype,"total",{get:$util.oneOfGetter(t=["doubleValue","intValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).uint64(o.intValue),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(26).fork()).ldelim(),o.exemplar!=null&&Object.hasOwnProperty.call(o,"exemplar")&&$root.openmetrics.Exemplar.encode(o.exemplar,d.uint32(34).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.CounterValue;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.uint64();break}case 3:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 4:{y.exemplar=$root.openmetrics.Exemplar.decode(o,o.uint32());break}default:o.skipType(E&7);break}}return y}
18,i.fromObject=function(o){if(o instanceof $root.openmetrics.CounterValue)return o;let d=new $root.openmetrics.CounterValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!0:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.CounterValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.exemplar!=null){if(typeof o.exemplar!="object")throw TypeError(".openmetrics.CounterValue.exemplar: object expected");d.exemplar=$root.openmetrics.Exemplar.fromObject(o.exemplar)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.created=null,p.exemplar=null),o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.total="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0):o.intValue,d.oneofs&&(p.total="intValue")),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.exemplar!=null&&o.hasOwnProperty("exemplar")&&(p.exemplar=$root.openmetrics.Exemplar.toObject(o.exemplar,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.CounterValue"},i})(),n.HistogramValue=(function(){function i(e){if(this.buckets=[],e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.buckets=$util.emptyArray;let t;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(t=["doubleValue","intValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.buckets!=null&&o.buckets.length)for(let p=0;p<o.buckets.length;++p)$root.openmetrics.HistogramValue.Bucket.encode(o.buckets[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.HistogramValue;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.buckets&&y.buckets.length||(y.buckets=[]),y.buckets.push($root.openmetrics.HistogramValue.Bucket.decode(o,o.uint32()));break}default:o.skipType(E&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.HistogramValue)return o;let d=new $root.openmetrics.HistogramValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>
18>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.HistogramValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.buckets){if(!Array.isArray(o.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");d.buckets=[];for(let p=0;p<o.buckets.length;++p){if(typeof o.buckets[p]!="object")throw TypeError(".openmetrics.HistogramValue.buckets: object expected");d.buckets[p]=$root.openmetrics.HistogramValue.Bucket.fromObject(o.buckets[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.buckets=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.buckets&&o.buckets.length){p.buckets=[];for(let h=0;h<o.buckets.length;++h)p.buckets[h]=$root.openmetrics.HistogramValue.Bucket.toObject(o.buckets[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.HistogramValue"},i.Bucket=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return e.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.count!=null&&Object.hasOwnProperty.call(d,"count")&&p.uint32(8).uint64(d.count),d.upperBound!=null&&Object.hasOwnProperty.call(d,"upperBound")&&p.uint32(17).double(d.upperBound),d.exemplar!=null&&Object.hasOwnProperty.call(d,"exemplar")&&$root.openmetrics.Exemplar.encode(d.exemplar,p.uint32(26).fork()).ldelim(),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.openmetrics.HistogramValue.Bucket;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.count=d.uint64();break}case 2:{E.upperBound=d.double();break}case 3:{E.exemplar=$root.openmetrics.Exemplar.decode(d,d.uint32());break}default:d.skipType($&7);break}}return E},e.fromObject=function(d){if(d instanceof $root.openmetrics.HistogramValue.Bucket)return d;let p=new $root.openmetrics.HistogramValue.Bucket;if(d.count!=null&&($util.Long?(p.count=$util.Long.fromValue(d.count)).unsigned=!0:typeof d.count=="string"?p.count=parseInt(d.count,10):typeof d.count=="number"?p.count=d.count:typeof d.count=="object"&&(p.count=new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0))),d.upperBound!=null&&(p.upperBound=Number(d.upperBound)),d.exemplar!=null){if(typeof d.exemplar!="object")throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");p.exemplar=$root.openmetrics.Exemplar.fromObject(d.exemplar)}return p},e.toObject=function(d,p){p||(p={});let h={};if(p.defaults){if($util.Long){let y=new $util.Long(0,0,!0);h.count=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.count=p.longs===String?"0":0;h.upperBound=0,h.exemplar=null}return d.count!=null&&d.hasOwnProperty("count")&&(typeof d.count=="number"?h.
18count=p.longs===String?String(d.count):d.count:h.count=p.longs===String?$util.Long.prototype.toString.call(d.count):p.longs===Number?new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0):d.count),d.upperBound!=null&&d.hasOwnProperty("upperBound")&&(h.upperBound=p.json&&!isFinite(d.upperBound)?String(d.upperBound):d.upperBound),d.exemplar!=null&&d.hasOwnProperty("exemplar")&&(h.exemplar=$root.openmetrics.Exemplar.toObject(d.exemplar,p)),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.HistogramValue.Bucket"},e})(),i})(),n.Exemplar=(function(){function i(t){if(this.label=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.value=0,i.prototype.timestamp=null,i.prototype.label=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&o.uint32(9).double(e.value),e.timestamp!=null&&Object.hasOwnProperty.call(e,"timestamp")&&$root.google.protobuf.Timestamp.encode(e.timestamp,o.uint32(18).fork()).ldelim(),e.label!=null&&e.label.length)for(let d=0;d<e.label.length;++d)$root.openmetrics.Label.encode(e.label[d],o.uint32(26).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.Exemplar;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.value=e.double();break}case 2:{h.timestamp=$root.google.protobuf.Timestamp.decode(e,e.uint32());break}case 3:{h.label&&h.label.length||(h.label=[]),h.label.push($root.openmetrics.Label.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.Exemplar)return e;let o=new $root.openmetrics.Exemplar;if(e.value!=null&&(o.value=Number(e.value)),e.timestamp!=null){if(typeof e.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");o.timestamp=$root.google.protobuf.Timestamp.fromObject(e.timestamp)}if(e.label){if(!Array.isArray(e.label))throw TypeError(".openmetrics.Exemplar.label: array expected");o.label=[];for(let d=0;d<e.label.length;++d){if(typeof e.label[d]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");o.label[d]=$root.openmetrics.Label.fromObject(e.label[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.label=[]),o.defaults&&(d.value=0,d.timestamp=null),e.value!=null&&e.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(e.value)?String(e.value):e.value),e.timestamp!=null&&e.hasOwnProperty("timestamp")&&(d.timestamp=$root.google.protobuf.Timestamp.toObject(e.timestamp,o)),e.label&&e.label.length){d.label=[];for(let p=0;p<e.label.length;++p)d.label[p]=$root.openmetrics.Label.toObject(e.label[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.Exemplar"},i})(),n.StateSetValue=(function(){function i(t){if(this.states=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.states=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.states!=null&&e.states.length)for(let d=0;d<e.states.length;++d)$root.openmetrics.StateSetValue.State.encode(e.states[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.StateSetValue;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.states&&h.states.length||(h.states=[]),h.states.push($root.openmetrics.StateSetValue.State.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.StateSetValue)return e;let o=new $root.openmetrics.StateSetValue;if(e.states){if(!Array.isArray(e.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");o.states=[];for(let d=0;d<e.states.length;++d){if(typeof e.states[d]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");o.states[d]=$root.openmetrics.StateSetValue.State.fromObject(e.states[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.states=[]),e.states&&e.states.length){d.states=[];for(let p=0;p<e.states.length;++p)d.states[p]=$root.openmetrics.StateSetValue.State.toObject(e.states[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.StateSetValue"},i.State=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.enabled=!1,t.prototype.name="",t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.enabled!=null&&Object.hasOwnProperty.call(o,"enabled")&&d.uint32(8).bool(o.enabled),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(18).string(o.name),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.StateSetValue.State;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.enabled=o.bool();break}case 2:{y.name=o.string();break}default:o.skipType(E&7);break}}return y}
18,t.fromObject=function(o){if(o instanceof $root.openmetrics.StateSetValue.State)return o;let d=new $root.openmetrics.StateSetValue.State;return o.enabled!=null&&(d.enabled=!!o.enabled),o.name!=null&&(d.name=String(o.name)),d},t.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.enabled=!1,p.name=""),o.enabled!=null&&o.hasOwnProperty("enabled")&&(p.enabled=o.enabled),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.StateSetValue.State"},t})(),i})(),n.InfoValue=(function(){function i(t){if(this.info=[],t)for(let e=Object.keys(t),o=0;o<e.length;++o)t[e[o]]!=null&&(this[e[o]]=t[e[o]])}return i.prototype.info=$util.emptyArray,i.create=function(e){return new i(e)},i.encode=function(e,o){if(o||(o=$Writer.create()),e.info!=null&&e.info.length)for(let d=0;d<e.info.length;++d)$root.openmetrics.Label.encode(e.info[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(e,o,d){e instanceof $Reader||(e=$Reader.create(e));let p=o===void 0?e.len:e.pos+o,h=new $root.openmetrics.InfoValue;for(;e.pos<p;){let y=e.uint32();if(y===d)break;switch(y>>>3){case 1:{h.info&&h.info.length||(h.info=[]),h.info.push($root.openmetrics.Label.decode(e,e.uint32()));break}default:e.skipType(y&7);break}}return h},i.fromObject=function(e){if(e instanceof $root.openmetrics.InfoValue)return e;let o=new $root.openmetrics.InfoValue;if(e.info){if(!Array.isArray(e.info))throw TypeError(".openmetrics.InfoValue.info: array expected");o.info=[];for(let d=0;d<e.info.length;++d){if(typeof e.info[d]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");o.info[d]=$root.openmetrics.Label.fromObject(e.info[d])}}return o},i.toObject=function(e,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.info=[]),e.info&&e.info.length){d.info=[];for(let p=0;p<e.info.length;++p)d.info[p]=$root.openmetrics.Label.toObject(e.info[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/openmetrics.InfoValue"},i})(),n.SummaryValue=(function(){function i(e){if(this.quantile=[],e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.quantile=$util.emptyArray;let t;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(t=["doubleValue","intValue"]),set:$util.oneOfSetter(t)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.quantile!=null&&o.quantile.length)for(let p=0;p<o.quantile.length;++p)$root.openmetrics.SummaryValue.Quantile.encode(o.quantile[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.SummaryValue;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.quantile&&y.quantile.length||(y.quantile=[]),y.quantile.push($root.openmetrics.SummaryValue.Quantile.decode(o,o.uint32()));break}default:o.skipType(E&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.SummaryValue)return o;let d=new $root.openmetrics.SummaryValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>
18>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.SummaryValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.quantile){if(!Array.isArray(o.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");d.quantile=[];for(let p=0;p<o.quantile.length;++p){if(typeof o.quantile[p]!="object")throw TypeError(".openmetrics.SummaryValue.quantile: object expected");d.quantile[p]=$root.openmetrics.SummaryValue.Quantile.fromObject(o.quantile[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.quantile=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.quantile&&o.quantile.length){p.quantile=[];for(let h=0;h<o.quantile.length;++h)p.quantile[h]=$root.openmetrics.SummaryValue.Quantile.toObject(o.quantile[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.SummaryValue"},i.Quantile=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return e.prototype.quantile=0,e.prototype.value=0,e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.quantile!=null&&Object.hasOwnProperty.call(d,"quantile")&&p.uint32(9).double(d.quantile),d.value!=null&&Object.hasOwnProperty.call(d,"value")&&p.uint32(17).double(d.value),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,E=new $root.openmetrics.SummaryValue.Quantile;for(;d.pos<y;){let $=d.uint32();if($===h)break;switch($>>>3){case 1:{E.quantile=d.double();break}case 2:{E.value=d.double();break}default:d.skipType($&7);break}}return E},e.fromObject=function(d){if(d instanceof $root.openmetrics.SummaryValue.Quantile)return d;let p=new $root.openmetrics.SummaryValue.Quantile;return d.quantile!=null&&(p.quantile=Number(d.quantile)),d.value!=null&&(p.value=Number(d.value)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.quantile=0,h.value=0),d.quantile!=null&&d.hasOwnProperty("quantile")&&(h.quantile=p.json&&!isFinite(d.quantile)?String(d.quantile):d.quantile),d.value!=null&&d.hasOwnProperty("value")&&(h.value=p.json&&!isFinite(d.value)?String(d.value):d.value),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.SummaryValue.Quantile"},e})(),i})(),n})();$root.google=(()=>{const n={};return n.protobuf=(function(){const i={};return i.Timestamp=(function(){function t(e){if(e)for(let o=Object.keys(e),d=0;d<o.length;++d)e[o[d]]!=null&&(this[o[d]]=e[o[d]])}return t.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,t.prototype.nanos=0,t.create=function(o){return new t(o)},t.encode=function(o,d){return d||(d=$Writer.create()),o.seconds!=null&&Object.hasOwnProperty.call(o,"seconds")&&d.uint32(8).int64(
18o.seconds),o.nanos!=null&&Object.hasOwnProperty.call(o,"nanos")&&d.uint32(16).int32(o.nanos),d},t.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.google.protobuf.Timestamp;for(;o.pos<h;){let E=o.uint32();if(E===p)break;switch(E>>>3){case 1:{y.seconds=o.int64();break}case 2:{y.nanos=o.int32();break}default:o.skipType(E&7);break}}return y},t.fromObject=function(o){if(o instanceof $root.google.protobuf.Timestamp)return o;let d=new $root.google.protobuf.Timestamp;return o.seconds!=null&&($util.Long?(d.seconds=$util.Long.fromValue(o.seconds)).unsigned=!1:typeof o.seconds=="string"?d.seconds=parseInt(o.seconds,10):typeof o.seconds=="number"?d.seconds=o.seconds:typeof o.seconds=="object"&&(d.seconds=new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber())),o.nanos!=null&&(d.nanos=o.nanos|0),d},t.toObject=function(o,d){d||(d={});let p={};if(d.defaults){if($util.Long){let h=new $util.Long(0,0,!1);p.seconds=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.seconds=d.longs===String?"0":0;p.nanos=0}return o.seconds!=null&&o.hasOwnProperty("seconds")&&(typeof o.seconds=="number"?p.seconds=d.longs===String?String(o.seconds):o.seconds:p.seconds=d.longs===String?$util.Long.prototype.toString.call(o.seconds):d.longs===Number?new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber():o.seconds),o.nanos!=null&&o.hasOwnProperty("nanos")&&(p.nanos=o.nanos),p},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/google.protobuf.Timestamp"},t})(),i})(),n})();$root.RootContainer=(()=>{const n={},i=Object.create(n);return i[n[0]="MAIN"]=0,i[n[1]="SIDEBAR"]=1,i[n[2]="EVENT"]=2,i[n[3]="BOTTOM"]=3,i})();function ensureError(n){return n instanceof Error?n:new Error(`${n}`)}const handlePreserveConsecutiveUppercase=(n,i)=>(n=n.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),t=>t.toLowerCase()),n.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(t,e,o)=>e+i+o.toLowerCase()));function decamelize$1(n,{separator:i="_",preserveConsecutiveUppercase:t=!1}={}){if(!(typeof n=="string"&&typeof i=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(n.length<2)return t?n:n.toLowerCase();const e=`$1${i}$2`,o=n.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),e);return t?handlePreserveConsecutiveUppercase(o,i):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),e).toLowerCase()}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$4=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$4.Symbol,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(n){var i=hasOwnProperty$f.call(n,symToStringTag$1),t=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var e=!0}catch{}var o=nativeObjectToString$1.call(n);return e&&(i?n[symToStringTag$1]=t:delete n[symToStringTag$1]),o}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,i){for(var t=-1,e=n==null?0:n.length,o=Array(e);++t<e;)o[t]=i(n[t],t,n);return o}var isArray$1=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(n){if(typeof n=="string")return n;if(isArray$1(n))return arrayMap(n,baseToString)+"";if(isSymbol(n))return symbolToString?symbolToString.call(n):"";var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}var reWhitespace=/\s/;function trimmedEndIndex(n){for(var i=n.length;i--&&reWhitespace.test(n.charAt(i)););return i}var reTrimStart=/^\s+/;function baseTrim(n){return n&&n.slice(0,trimmedEndIndex(n)+1).replace(reTrimStart,"")}function isObject$1(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(n){if(typeof n=="number")return n;if(isSymbol(n))return NAN;if(isObject$1(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=isObject$1(i)?i+"":i}
vendor: 6,313 bytes, line 18
18if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var t=reIsBinary.test(n);return t||reIsOctal.test(n)?freeParseInt(n.slice(2),t?2:8):reIsBadHex.test(n)?NAN:+n}var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(n){if(!n)return n===0?n:0;if(n=toNumber(n),n===INFINITY||n===-INFINITY){var i=n<0?-1:1;return i*MAX_INTEGER}return n===n?n:0}function toInteger(n){var i=toFinite(n),t=i%1;return i===i?t?i-t:i:0}function identity(n){return n}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(n){if(!isObject$1(n))return!1;var i=baseGetTag(n);return i==funcTag$2||i==genTag$1||i==asyncTag||i==proxyTag}var coreJsData=root$4["__core-js_shared__"],maskSrcKey=(function(){var n=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(n){if(n!=null){try{return funcToString$2.call(n)}catch{}try{return n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$e=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(n){if(!isObject$1(n)||isMasked(n))return!1;var i=isFunction$3(n)?reIsNative:reIsHostCtor;return i.test(toSource(n))}function getValue$1(n,i){return n?.[i]}function getNative(n,i){var t=getValue$1(n,i);return baseIsNative(t)?t:void 0}var WeakMap$1=getNative(root$4,"WeakMap"),objectCreate=Object.create,baseCreate=(function(){function n(){}return function(i){if(!isObject$1(i))return{};if(objectCreate)return objectCreate(i);n.prototype=i;var t=new n;return n.prototype=void 0,t}})();function apply(n,i,t){switch(t.length){case 0:return n.call(i);case 1:return n.call(i,t[0]);case 2:return n.call(i,t[0],t[1]);case 3:return n.call(i,t[0],t[1],t[2])}return n.apply(i,t)}function copyArray(n,i){var t=-1,e=n.length;for(i||(i=Array(e));++t<e;)i[t]=n[t];return i}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var i=0,t=0;return function(){var e=nativeNow(),o=HOT_SPAN-(e-t);if(t=e,o>0){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty$1=(function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}})(),baseSetToString=defineProperty$1?function(n,i){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(i),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(n,i){for(var t=-1,e=n==null?0:n.length;++t<e&&i(n[t],t,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,i){var t=typeof n;return i=i??MAX_SAFE_INTEGER$1,!!i&&(t=="number"||t!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<i}function baseAssignValue(n,i,t){i=="__proto__"&&defineProperty$1?defineProperty$1(n,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[i]=t}function eq(n,i){return n===i||n!==n&&i!==i}var objectProto$e=Object.prototype,hasOwnProperty$d=objectProto$e.hasOwnProperty;function assignValue(n,i,t){var e=n[i];(!(hasOwnProperty$d.call(n,i)&&eq(e,t))||t===void 0&&!(i in n))&&baseAssignValue(n,i,t)}function copyObject(n,i,t,e){var o=!t;t||(t={});for(var d=-1,p=i.length;++d<p;){var h=i[d],y=void 0;y===void 0&&(y=n[h]),o?baseAssignValue(t,h,y):assignValue(t,h,y)}return t}var nativeMax$2=Math.max;function overRest(n,i,t){return i=nativeMax$2(i===void 0?n.length-1:i,0),function(){for(var e=arguments,o=-1,d=nativeMax$2(e.length-i,0),p=Array(d);++o<d;)p[o]=e[i+o];o=-1;for(var h=Array(i+1);++o<i;)h[o]=e[o];return h[i]=t(p),apply(n,this,h)}}function baseRest(n,i){return setToString(overRest(n,i,identity),n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike(n){return n!=null&&isLength(n.length)&&!isFunction$3(n)}function isIterateeCall(n,i,t){if(!isObject$1(t))return!1;var e=typeof i;return(e=="number"?isArrayLike(t)&&isIndex(i,t.length):e=="string"&&i in t)?eq(t[i],n):!1}function createAssigner(n){return baseRest(function(i,t){var e=-1,o=t.length,d=o>1?t[o-1]:void 0,p=o>2?t[2]:void 0;for(d=n.length>3&&typeof d=="function"?(o--,d):void 0,p&&isIterateeCall(t[0],t[1],p)&&(d=o<3?void 0:d,o=1),i=Object(i);++e<o;){var h=t[e];h&&n(i,h,e,d)}return i})}var objectProto$d=Object.prototype;function isPrototype(n){var i=n&&n.constructor,t=typeof i=="function"&&i.prototype||objectProto$d;return n===t}function baseTimes(n,i){for(var t=-1,e=Array(n);++t<n;)e[t]=i(t);return e}var argsTag$3="[object Arguments]";function baseIsArguments(n){return isObjectLike(n)&&baseGetTag(n)==argsTag$3}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments=baseIsArguments((function(){return arguments})())?baseIsArguments:function(n){return isObjectLike(n)&&hasOwnProperty$c.call(n,"callee")&&!propertyIsEnumerable$1.call(n,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$3=moduleExports$2?root$4.Buffer:void 0,nativeIsBuffer=Buffer$3?Buffer$3.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array
18]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(n){return isObjectLike(n)&&isLength(n.length)&&!!typedArrayTags[baseGetTag(n)]}function baseUnary(n){return function(i){return n(i)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=(function(){try{var n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}})(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$b=Object.prototype,hasOwnProperty$b=objectProto$b.hasOwnProperty;function arrayLikeKeys(n,i){var t=isArray$1(n),e=!t&&isArguments(n),o=!t&&!e&&isBuffer(n),d=!t&&!e&&!o&&isTypedArray(n),p=t||e||o||d,h=p?baseTimes(n.length,String):[],y=h.length;for(var E in n)(i||hasOwnProperty$b.call(n,E))&&!(p&&(E=="length"||o&&(E=="offset"||E=="parent")||d&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||isIndex(E,y)))&&h.push(E);return h}function overArg(n,i){return function(t){return n(i(t))}}var nativeKeys=overArg(Object.keys,Object),objectProto$a=Object.prototype,hasOwnProperty$a=objectProto$a.hasOwnProperty;function baseKeys(n){if(!isPrototype(n))return nativeKeys(n);var i=[];for(var t in Object(n))hasOwnProperty$a.call(n,t)&&t!="constructor"&&i.push(t);return i}function keys$1(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var i=[];if(n!=null)for(var t in Object(n))i.push(t);return i}var objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function baseKeysIn(n){if(!isObject$1(n))return nativeKeysIn(n);var i=isPrototype(n),t=[];for(var e in n)e=="constructor"&&(i||!hasOwnProperty$9.call(n,e))||t.push(e);return t}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;
vendor: 5,292 bytes, line 18
18function isKey(n,i){if(isArray$1(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||isSymbol(n)?!0:reIsPlainProp.test(n)||!reIsDeepProp.test(n)||i!=null&&n in Object(i)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashGet(n){var i=this.__data__;if(nativeCreate){var t=i[n];return t===HASH_UNDEFINED$2?void 0:t}return hasOwnProperty$8.call(i,n)?i[n]:void 0}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function hashHas(n){var i=this.__data__;return nativeCreate?i[n]!==void 0:hasOwnProperty$7.call(i,n)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(n,i){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=nativeCreate&&i===void 0?HASH_UNDEFINED$1:i,this}function Hash(n){var i=-1,t=n==null?0:n.length;for(this.clear();++i<t;){var e=n[i];this.set(e[0],e[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(n,i){for(var t=n.length;t--;)if(eq(n[t][0],i))return t;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(n){var i=this.__data__,t=assocIndexOf(i,n);if(t<0)return!1;var e=i.length-1;return t==e?i.pop():splice$1.call(i,t,1),--this.size,!0}function listCacheGet(n){var i=this.__data__,t=assocIndexOf(i,n);return t<0?void 0:i[t][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,i){var t=this.__data__,e=assocIndexOf(t,n);return e<0?(++this.size,t.push([n,i])):t[e][1]=i,this}function ListCache(n){var i=-1,t=n==null?0:n.length;for(this.clear();++i<t;){var e=n[i];this.set(e[0],e[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$2=getNative(root$4,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function getMapData(n,i){var t=n.__data__;return isKeyable(i)?t[typeof i=="string"?"string":"hash"]:t.map}function mapCacheDelete(n){var i=getMapData(this,n).delete(n);return this.size-=i?1:0,i}function mapCacheGet(n){return getMapData(this,n).get(n)}function mapCacheHas(n){return getMapData(this,n).has(n)}function mapCacheSet(n,i){var t=getMapData(this,n),e=t.size;return t.set(n,i),this.size+=t.size==e?0:1,this}function MapCache(n){var i=-1,t=n==null?0:n.length;for(this.clear();++i<t;){var e=n[i];this.set(e[0],e[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var t=function(){var e=arguments,o=i?i.apply(this,e):e[0],d=t.cache;if(d.has(o))return d.get(o);var p=n.apply(this,e);return t.cache=d.set(o,p)||d,p};return t.cache=new(memoize.Cache||MapCache),t}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var i=memoize(n,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=i.cache;return i}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(rePropName,function(t,e,o,d){i.push(o?d.replace(reEscapeChar,"$1"):e||t)}),i});function toString$2(n){return n==null?"":baseToString(n)}function castPath(n,i){return isArray$1(n)?n:isKey(n,i)?[n]:stringToPath(toString$2(n))}function toKey(n){if(typeof n=="string"||isSymbol(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function baseGet(n,i){i=castPath(i,n);for(var t=0,e=i.length;n!=null&&t<e;)n=n[toKey(i[t++])];return t&&t==e?n:void 0}function get$1(n,i,t){var e=n==null?void 0:baseGet(n,i);return e===void 0?t:e}function arrayPush(n,i){for(var t=-1,e=i.length,o=n.length;++t<e;)n[o+t]=i[t];return n}var spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable(n){return isArray$1(n)||isArguments(n)||!!(spreadableSymbol&&n&&n[spreadableSymbol])}function baseFlatten(n,i,t,e,o){var d=-1,p=n.length;for(t||(t=isFlattenable),o||(o=[]);++d<p;){var h=n[d];t(h)?arrayPush(o,h):o[o.length]=h}return o}function flatten(n){var i=n==null?0:n.length;return i?baseFlatten(n):[]}function flatRest(n){return setToString(overRest(n,void 0,flatten),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$6.hasOwnProperty,objectCtorStr
18ing$1=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var i=getPrototype(n);if(i===null)return!0;var t=hasOwnProperty$6.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&funcToString.call(t)==objectCtorString$1}const isPlainObject$3=Object.freeze(Object.defineProperty({__proto__:null,default:isPlainObject$2},Symbol.toStringTag,{value:"Module"}));var FUNC_ERROR_TEXT="Expected a function";function before(n,i){var t;if(typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(t=i.apply(this,arguments)),n<=1&&(i=void 0),t}}function baseSlice(n,i,t){var e=-1,o=n.length;i<0&&(i=-i>o?0:o+i),t=t>o?o:t,t<0&&(t+=o),o=i>t?0:t-i>>>0,i>>>=0;for(var d=Array(o);++e<o;)d[e]=n[e+i];return d}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var i=this.__data__,t=i.delete(n);return this.size=i.size,t}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE=200;function stackSet(n,i){var t=this.__data__;if(t instanceof ListCache){var e=t.__data__;if(!Map$2||e.length<LARGE_ARRAY_SIZE-1)return e.push([n,i]),this.size=++t.size,this;t=this.__data__=new MapCache(e)}return t.set(n,i),this.size=t.size,this}function Stack(n){var i=this.__data__=new ListCache(n);this.size=i.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(n,i){return n&©Object(i,keys$1(i),n)}function baseAssignIn(n,i){return n&©Object(i,keysIn(i),n)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$2=moduleExports?root$4.Buffer:void 0,allocUnsafe=Buffer$2?Buffer$2.allocUnsafe:void 0;function cloneBuffer(n,i){if(i)return n.slice();var t=n.length,e=allocUnsafe?allocUnsafe(t):new n.constructor(t);return n.copy(e),e}function arrayFilter(n,i){for(var t=-1,e=n==null?0:n.length,o=0,d=[];++t<e;){var p=n[t];i(p,t,n)&&(d[o++]=p)}return d}function stubArray(){return[]}var objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(n){return n==null?[]:(n=Object(n),arrayFilter(nativeGetSymbols$1(n),function(i){return propertyIsEnumerable.call(n,i)}))}:stubArray;function copySymbols(n,i){return copyObject(n,getSymbols(n),i)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(n){for(var i=[];n;)arrayPush(i,getSymbols(n)),n=getPrototype(n);return i}:stubArray;function copySymbolsIn(n,i){return copyObject(n,getSymbolsIn(n),i)}function baseGetAllKeys(n,i,t){var e=i(n);return isArray$1(n)?e:arrayPush(e,t(n))}function getAllKeys(n){return baseGetAllKeys(n,keys$1,getSymbols)}function getAllKeysIn(n){return baseGetAllKeys(n,keysIn,getSymbolsIn)}var DataView$1=getNative(root$4,"DataView"),Promise$1=getNative(root$4,"Promise"),Set$1=getNative(root$4,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(n){var i=baseGetTag(n),t=i==objectTag$2?n.constructor:void 0,e=t?toSource(t):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return i});var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function initCloneArray(n){var i=n.length,t=new n.constructor(i);return i&&typeof n[0]=="string"&&hasOwnProperty$5.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Uint8Array$1=root$4.Uint8Array;function cloneArrayBuffer(n){var i=new n.constructor(n.byteLength);return new Uint8Array$1(i).set(new Uint8Array$1(n)),i}function cloneDataView(n,i){var t=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var reFlags=/\w*$/;function cloneRegExp(n){var i=new n.constructor(n.source,reFlags.exec(n));return i.lastIndex=n.lastIndex,i}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf
vendor: 5,664 bytes, line 18
18:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,i){var t=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",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$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(n,i,t){var e=n.constructor;switch(i){case arrayBufferTag$2:return cloneArrayBuffer(n);case boolTag$2:case dateTag$2:return new e(+n);case dataViewTag$2:return cloneDataView(n,t);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(n,t);case mapTag$3:return new e;case numberTag$2:case stringTag$2:return new e(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new e;case symbolTag$2:return cloneSymbol(n)}}function initCloneObject(n){return typeof n.constructor=="function"&&!isPrototype(n)?baseCreate(getPrototype(n)):{}}var mapTag$2="[object Map]";function baseIsMap(n){return isObjectLike(n)&&getTag(n)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(n){return isObjectLike(n)&&getTag(n)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(n,i,t,e,o,d){var p,h=i&CLONE_DEEP_FLAG$2,y=i&CLONE_FLAT_FLAG$1,E=i&CLONE_SYMBOLS_FLAG$2;if(t&&(p=o?t(n,e,o,d):t(n)),p!==void 0)return p;if(!isObject$1(n))return n;var $=isArray$1(n);if($){if(p=initCloneArray(n),!h)return copyArray(n,p)}else{var M=getTag(n),X=M==funcTag||M==genTag;if(isBuffer(n))return cloneBuffer(n,h);if(M==objectTag$1||M==argsTag$1||X&&!o){if(p=y||X?{}:initCloneObject(n),!h)return y?copySymbolsIn(n,baseAssignIn(p,n)):copySymbols(n,baseAssign(p,n))}else{if(!cloneableTags[M])return o?n:{};p=initCloneByTag(n,M,h)}}d||(d=new Stack);var Z=d.get(n);if(Z)return Z;d.set(n,p),isSet$1(n)?n.forEach(function(we){p.add(baseClone(we,i,t,we,n,d))}):isMap$1(n)&&n.forEach(function(we,xe){p.set(xe,baseClone(we,i,t,xe,n,d))});var ye=E?y?getAllKeysIn:getAllKeys:y?keysIn:keys$1,be=$?void 0:ye(n);return arrayEach(be||n,function(we,xe){be&&(xe=we,we=n[xe]),assignValue(p,xe,baseClone(we,i,t,xe,n,d))}),p}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(n){return baseClone(n,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}const cloneDeep$1=Object.freeze(Object.defineProperty({__proto__:null,default:cloneDeep},Symbol.toStringTag,{value:"Module"}));var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(n){return this.__data__.set(n,HASH_UNDEFINED),this}function setCacheHas(n){return this.__data__.has(n)}function SetCache(n){var i=-1,t=n==null?0:n.length;for(this.__data__=new MapCache;++i<t;)this.add(n[i])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(n,i){for(var t=-1,e=n==null?0:n.length;++t<e;)if(i(n[t],t,n))return!0;return!1}function cacheHas(n,i){return n.has(i)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(n,i,t,e,o,d){var p=t&COMPARE_PARTIAL_FLAG$5,h=n.length,y=i.length;if(h!=y&&!(p&&y>h))return!1;var E=d.get(n),$=d.get(i);if(E&&$)return E==i&&$==n;var M=-1,X=!0,Z=t&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(d.set(n,i),d.set(i,n);++M<h;){var ye=n[M],be=i[M];if(e)var we=p?e(be,ye,M,i,n,d):e(ye,be,M,n,i,d);if(we!==void 0){if(we)continue;X=!1;break}if(Z){if(!arraySome(i,function(xe,$e){if(!cacheHas(Z,$e)&&(ye===xe||o(ye,xe,t,e,d)))return Z.push($e)})){X=!1;break}}
vendor: 2,979 bytes, line 18
18else if(!(ye===be||o(ye,be,t,e,d))){X=!1;break}}return d.delete(n),d.delete(i),X}function mapToArray(n){var i=-1,t=Array(n.size);return n.forEach(function(e,o){t[++i]=[o,e]}),t}function setToArray(n){var i=-1,t=Array(n.size);return n.forEach(function(e){t[++i]=e}),t}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(n,i,t,e,o,d,p){switch(t){case dataViewTag:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case arrayBufferTag:return!(n.byteLength!=i.byteLength||!d(new Uint8Array$1(n),new Uint8Array$1(i)));case boolTag:case dateTag:case numberTag:return eq(+n,+i);case errorTag:return n.name==i.name&&n.message==i.message;case regexpTag:case stringTag:return n==i+"";case mapTag:var h=mapToArray;case setTag:var y=e&COMPARE_PARTIAL_FLAG$4;if(h||(h=setToArray),n.size!=i.size&&!y)return!1;var E=p.get(n);if(E)return E==i;e|=COMPARE_UNORDERED_FLAG$2,p.set(n,i);var $=equalArrays(h(n),h(i),e,o,d,p);return p.delete(n),$;case symbolTag:if(symbolValueOf)return symbolValueOf.call(n)==symbolValueOf.call(i)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function equalObjects(n,i,t,e,o,d){var p=t&COMPARE_PARTIAL_FLAG$3,h=getAllKeys(n),y=h.length,E=getAllKeys(i),$=E.length;if(y!=$&&!p)return!1;for(var M=y;M--;){var X=h[M];if(!(p?X in i:hasOwnProperty$4.call(i,X)))return!1}var Z=d.get(n),ye=d.get(i);if(Z&&ye)return Z==i&&ye==n;var be=!0;d.set(n,i),d.set(i,n);for(var we=p;++M<y;){X=h[M];var xe=n[X],$e=i[X];if(e)var Ne=p?e($e,xe,X,i,n,d):e(xe,$e,X,n,i,d);if(!(Ne===void 0?xe===$e||o(xe,$e,t,e,d):Ne)){be=!1;break}we||(we=X=="constructor")}if(be&&!we){var Fe=n.constructor,De=i.constructor;Fe!=De&&"constructor"in n&&"constructor"in i&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof De=="function"&&De instanceof De)&&(be=!1)}return d.delete(n),d.delete(i),be}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseIsEqualDeep(n,i,t,e,o,d){var p=isArray$1(n),h=isArray$1(i),y=p?arrayTag:getTag(n),E=h?arrayTag:getTag(i);y=y==argsTag?objectTag:y,E=E==argsTag?objectTag:E;var $=y==objectTag,M=E==objectTag,X=y==E;if(X&&isBuffer(n)){if(!isBuffer(i))return!1;p=!0,$=!1}if(X&&!$)return d||(d=new Stack),p||isTypedArray(n)?equalArrays(n,i,t,e,o,d):equalByTag(n,i,y,t,e,o,d);if(!(t&COMPARE_PARTIAL_FLAG$2)){var Z=$&&hasOwnProperty$3.call(n,"__wrapped__"),ye=M&&hasOwnProperty$3.call(i,"__wrapped__");
18if(Z||ye){var be=Z?n.value():n,we=ye?i.value():i;return d||(d=new Stack),o(be,we,t,e,d)}}return X?(d||(d=new Stack),equalObjects(n,i,t,e,o,d)):!1}function baseIsEqual(n,i,t,e,o){return n===i?!0:n==null||i==null||!isObjectLike(n)&&!isObjectLike(i)?n!==n&&i!==i:baseIsEqualDeep(n,i,t,e,baseIsEqual,o)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(n,i,t,e){var o=t.length,d=o;if(n==null)return!d;for(n=Object(n);o--;){var p=t[o];if(p[2]?p[1]!==n[p[0]]:!(p[0]in n))return!1}for(;++o<d;){p=t[o];var h=p[0],y=n[h],E=p[1];if(p[2]){if(y===void 0&&!(h in n))return!1}else{var $=new Stack,M;if(!(M===void 0?baseIsEqual(E,y,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,e,$):M))return!1}}return!0}function isStrictComparable(n){return n===n&&!isObject$1(n)}function getMatchData(n){for(var i=keys$1(n),t=i.length;t--;){var e=i[t],o=n[e];i[t]=[e,o,isStrictComparable(o)]}return i}function matchesStrictComparable(n,i){return function(t){return t==null?!1:t[n]===i&&(i!==void 0||n in Object(t))}}function baseMatches(n){var i=getMatchData(n);return i.length==1&&i[0][2]?matchesStrictComparable(i[0][0],i[0][1]):function(t){return t===n||baseIsMatch(t,n,i)}}function baseHasIn(n,i){return n!=null&&i in Object(n)}function hasPath(n,i,t){i=castPath(i,n);for(var e=-1,o=i.length,d=!1;++e<o;){var p=toKey(i[e]);if(!(d=n!=null&&t(n,p)))break;n=n[p]}return d||++e!=o?d:(o=n==null?0:n.length,!!o&&isLength(o)&&isIndex(p,o)&&(isArray$1(n)||isArguments(n)))}function hasIn(n,i){return n!=null&&hasPath(n,i,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(n,i){return isKey(n)&&isStrictComparable(i)?matchesStrictComparable(toKey(n),i):function(t){var e=get$1(t,n);return e===void 0&&e===i?hasIn(t,n):baseIsEqual(i,e,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(n){return function(i){return i?.[n]}}function basePropertyDeep(n){return function(i){return baseGet(i,n)}}function property(n){return isKey(n)?baseProperty(toKey(n)):basePropertyDeep(n)}function baseIteratee(n){return typeof n=="function"?n:n==null?identity:typeof n=="object"?isArray$1(n)?baseMatchesProperty(n[0],n[1]):baseMatches(n):property(n)}function arrayAggregator(n,i,t,e){for(var o=-1,d=n==null?0:n.length;++o<d;){var p=n[o];i(e,p,t(p),n)}return e}function createBaseFor(n){return function(i,t,e){for(var o=-1,d=Object(i),p=e(i),h=p.length;h--;){var y=p[++o];if(t(d[y],y,d)===!1)break}return i}}var baseFor=createBaseFor();function baseForOwn(n,i){return n&&baseFor(n,i,keys$1)}function createBaseEach(n,i){return function(t,e){if(t==null)return t;if(!isArrayLike(t))return n(t,e);for(var o=t.length,d=-1,p=Object(t);++d<o&&e(p[d],d,p)!==!1;);return t}}var baseEach=createBaseEach(baseForOwn);function baseAggregator(n,i,t,e){return baseEach(n,function(o,d,p){i(e,o,t(o),p)}),e}function createAggregator(n,i){return function(t,e){var o=isArray$1(t)?arrayAggregator:baseAggregator,d=i?i():{};return o(t,n,baseIteratee(e),d)}}function assignMergeValue(n,i,t){(t!==void 0&&!eq(n[i],t)||t===void 0&&!(i in n))&&baseAssignValue(n,i,t)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike(n)}function safeGet(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,i,t,e,o,d,p){var h=safeGet(n,t),y=safeGet(i,t),E=p.get(y);if(E){assignMergeValue(n,t,E);return}var $=d?d(h,y,t+"",n,i,p):void 0,M=$===void 0;if(M){var X=isArray$1(y),Z=!X&&isBuffer(y),ye=!X&&!Z&&isTypedArray(y);$=y,X||Z||ye?isArray$1(h)?$=h:isArrayLikeObject(h)?$=copyArray(h):Z?(M=!1,$=cloneBuffer(y,!0)):ye?(M=!1,$=cloneTypedArray(y,!0)):$=[]:isPlainObject$2(y)||isArguments(y)?($=h,isArguments(h)?$=toPlainObject(h):(!isObject$1(h)||isFunction$3(h))&&($=initCloneObject(y))):M=!1}M&&(p.set(y,$),o($,y,e,d,p),p.delete(y)),assignMergeValue(n,t,$)}function baseMerge(n,i,t,e,o){n!==i&&baseFor(i,function(d,p){if(o||(o=new Stack),isObject$1(d))baseMergeDeep(n,i,p,t,baseMerge,e,o);else{var h=e?e(safeGet(n,p),d,p+"",n,i,o):void 0;h===void 0&&(h=d),assignMergeValue(n,p,h)}},keysIn)}var mergeWith=createAssigner(function(n,i,t,e){baseMerge(n,i,t,e)});function last(n){var i=n==null?0:n.length;return i?n[i-1]:void 0}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty,groupBy=createAggregator(function(n,i,t){hasOwnProperty$2.call(n,t)?n[t].push(i):baseAssignValue(n,t,[i])});function parent(n,i){return i.length<2?n:baseGet(n,baseSlice(i,0,-1))}function isEqual(n,i){return baseIsEqual(n,i)}var merge$1=createAssigner(function(n,i,t){baseMerge(n,i,t)}),objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseUnset(n,i){i=castPath(i,n);var t=-1,e=i.length;if(!e)return!0;for(var o=n==null||typeof n!="object"&&typeof n!="function";++t<e;){var d=i[t];
18if(typeof d=="string"){if(d==="__proto__"&&!hasOwnProperty$1.call(n,"__proto__"))return!1;if(d==="constructor"&&t+1<e&&typeof i[t+1]=="string"&&i[t+1]==="prototype"){if(o&&t===0)continue;return!1}}}var p=parent(n,i);return p==null||delete p[toKey(last(i))]}function customOmitClone(n){return isPlainObject$2(n)?void 0:n}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(n,i){var t={};if(n==null)return t;var e=!1;i=arrayMap(i,function(d){return d=castPath(d,n),e||(e=d.length>1),d}),copyObject(n,getAllKeysIn(n),t),e&&(t=baseClone(t,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var o=i.length;o--;)baseUnset(t,i[o]);return t});function baseSet(n,i,t,e){if(!isObject$1(n))return n;i=castPath(i,n);for(var o=-1,d=i.length,p=d-1,h=n;h!=null&&++o<d;){var y=toKey(i[o]),E=t;if(y==="__proto__"||y==="constructor"||y==="prototype")return n;if(o!=p){var $=h[y];E=void 0,E===void 0&&(E=isObject$1($)?$:isIndex(i[o+1])?[]:{})}assignValue(h,y,E),h=h[y]}return n}function basePickBy(n,i,t){for(var e=-1,o=i.length,d={};++e<o;){var p=i[e],h=baseGet(n,p);t(h,p)&&baseSet(d,castPath(p,n),h)}return d}function once(n){return before(2,n)}function basePick(n,i){return basePickBy(n,i,function(t,e){return hasIn(n,e)})}var pick$1=flatRest(function(n,i){return n==null?{}:basePick(n,i)}),nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(n,i,t,e){for(var o=-1,d=nativeMax$1(nativeCeil((i-n)/(t||1)),0),p=Array(d);d--;)p[++o]=n,n+=t;return p}function createRange(n){return function(i,t,e){return e&&typeof e!="number"&&isIterateeCall(i,t,e)&&(t=e=void 0),i=toFinite(i),t===void 0?(t=i,i=0):t=toFinite(t),e=e===void 0?i<t?1:-1:toFinite(e),baseRange(i,t,e)}}var range=createRange(),nativeMax=Math.max;function unzip(n){if(!(n&&n.length))return[];var i=0;return n=arrayFilter(n,function(t){if(isArrayLikeObject(t))return i=nativeMax(t.length,i),!0}),baseTimes(i,function(t){return arrayMap(n,baseProperty(t))})}var zip=baseRest(unzip),cuint={},uint32$1={exports:{}},uint32=uint32$1.exports,hasRequiredUint32;function requireUint32(){return hasRequiredUint32||(hasRequiredUint32=1,(function(n){(function(i){t(Math.pow(36,5)),t(Math.pow(16,7)),t(Math.pow(10,9)),t(Math.pow(2,30)),t(36),t(16),t(10),t(2);function t(p,h){if(!(this instanceof t))return new t(p,h);if(this._low=0,this._high=0,this.remainder=null,typeof h>"u")return o.call(this,p);if(typeof p=="string")return d.call(this,p,h);e.call(this,p,h)}function e(p,h){return this._low=p|0,this._high=h|0,this}t.prototype.fromBits=e;function o(p){return this._low=p&65535,this._high=p>>>16,this}t.prototype.fromNumber=o;function d(p,h){var y=parseInt(p,h||10);return this._low=y&65535,this._high=y>>>16,this}t.prototype.fromString=d,t.prototype.toNumber=function(){return this._high*65536+this._low},t.prototype.toString=function(p){return this.toNumber().toString(p||10)},t.prototype.add=function(p){var h=this._low+p._low,y=h>>>16;return y+=this._high+p._high,this._low=h&65535,this._high=y&65535,this},t.prototype.subtract=function(p){return this.add(p.clone().negate())},t.prototype.multiply=function(p){var h=this._high,y=this._low,E=p._high,$=p._low,M,X;return X=y*$,M=X>>>16,M+=h*$,M&=65535,M+=y*E,this._low=X&65535,this._high=M&65535,this},t.prototype.div=function(p){if(p._low==0&&p._high==0)throw Error("division by zero");if(p._high==0&&p._low==1)return this.remainder=new t(0),this;if(p.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(p))return this.remainder=new t(0),this._low=1,this._high=0,this;for(var h=p.clone(),y=-1;!this.lt(h);)h.shiftLeft(1,!0),y++;for(this.remainder=this.clone(),this._low=0,this._high=0;y>=0;y--)h.shiftRight(1),this.remainder.lt(h)||(this.remainder.subtract(h),y>=16?this._high|=1<<y-16:this._low|=1<<y);return this},t.prototype.negate=function(){var p=(~this._low&65535)+1;return this._low=p&65535,this._high=~this._high+(p>>>16)&65535,this},t.prototype.equals=t.prototype.eq=function(p){return this._low==p._low&&this._high==p._high},t.prototype.greaterThan=t.prototype.gt=function(p){return this._high>p._high?!0:this._high<p._high?!1:this._low>p._low},t.prototype.lessThan=t.prototype.lt=function(p){return this._high<p._high?!0:this._high>p._high?!1:this._low<p._low},t.prototype.or=function(p){return this._low|=p._low,this._high|=p._high,this},t.prototype.and=function(p){return this._low&=p._low,this._high&=p._high,this},t.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},t.prototype.xor=function(p){return this._low^=p._low,this._high^=p._high,this},t.prototype.shiftRight=t.prototype.shiftr=function(p){return p>16?(this._low=this._high>>p-16,this._high=0):p==16?(this._low=this._high,this._high=0):(this._low=this._low>>p|this._high<<16-p&65535,this._high>>=p),this},t.prototype.shiftLeft=t.prototype.shiftl=function(p,h){return p>16?(this._high=this._low<<p-16,this._low=0,h||(this._high&=65535)):p==16?(this._high=this._low,this._low=0):(this._high=this._high<<p|this._low>>16-p,this._low=this._low<<p&65535,h||(this._high&=65535)),this},t.prototype.rotateLeft=t.prototype.rotl=function(p){var h=this._high<<16|this._low;return h=h<<p|h>>>32-p,this._low=h&65535,this._high=h>>>16,this},t.prototype.rotateRight=t.prototype.rotr=function(p){var h=this._high<<16|this._low;return h=h>>>p|h<<32-p,this._low=h&65535,this._high=h>>>16,this},t.prototype.clone=function(){return new t(this._low,this._high)},n.exports?n.exports=t:i.UINT32=t})(uint32)})(uint32$1)),uint32$1.exports}var uint64$1={exports:{}},uint64=uint64$1.exports,hasRequiredUint64;function requireUint64(){return hasRequiredUint64||(hasRequiredUint64=1,
18(function(n){(function(i){var t={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},e={16:o(16),10:o(10),2:o(2)};function o(y,E,$,M){if(!(this instanceof o))return new o(y,E,$,M);if(this.remainder=null,typeof y=="string")return h.call(this,y,E);if(typeof E>"u")return p.call(this,y);d.apply(this,arguments)}function d(y,E,$,M){return typeof $>"u"?(this._a00=y&65535,this._a16=y>>>16,this._a32=E&65535,this._a48=E>>>16,this):(this._a00=y|0,this._a16=E|0,this._a32=$|0,this._a48=M|0,this)}o.prototype.fromBits=d;function p(y){return this._a00=y&65535,this._a16=y>>>16,this._a32=0,this._a48=0,this}o.prototype.fromNumber=p;function h(y,E){E=E||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var $=t[E]||new o(Math.pow(E,5)),M=0,X=y.length;M<X;M+=5){var Z=Math.min(5,X-M),ye=parseInt(y.slice(M,M+Z),E);this.multiply(Z<5?new o(Math.pow(E,Z)):$).add(new o(ye))}return this}o.prototype.fromString=h,o.prototype.toNumber=function(){return this._a16*65536+this._a00},o.prototype.toString=function(y){y=y||10;var E=e[y]||new o(y);if(!this.gt(E))return this.toNumber().toString(y);for(var $=this.clone(),M=new Array(64),X=63;X>=0&&($.div(E),M[X]=$.remainder.toNumber().toString(y),!!$.gt(E));X--);return M[X-1]=$.toNumber().toString(y),M.join("")},o.prototype.add=function(y){var E=this._a00+y._a00,$=E>>>16;$+=this._a16+y._a16;var M=$>>>16;M+=this._a32+y._a32;var X=M>>>16;return X+=this._a48+y._a48,this._a00=E&65535,this._a16=$&65535,this._a32=M&65535,this._a48=X&65535,this},o.prototype.subtract=function(y){return this.add(y.clone().negate())},o.prototype.multiply=function(y){var E=this._a00,$=this._a16,M=this._a32,X=this._a48,Z=y._a00,ye=y._a16,be=y._a32,we=y._a48,xe=E*Z,$e=xe>>>16;$e+=E*ye;var Ne=$e>>>16;$e&=65535,$e+=$*Z,Ne+=$e>>>16,Ne+=E*be;var Fe=Ne>>>16;return Ne&=65535,Ne+=$*ye,Fe+=Ne>>>16,Ne&=65535,Ne+=M*Z,Fe+=Ne>>>16,Fe+=E*we,Fe&=65535,Fe+=$*be,Fe&=65535,Fe+=M*ye,Fe&=65535,Fe+=X*Z,this._a00=xe&65535,this._a16=$e&65535,this._a32=Ne&65535,this._a48=Fe&65535,this},o.prototype.div=function(y){if(y._a16==0&&y._a32==0&&y._a48==0){if(y._a00==0)throw Error("division by zero");if(y._a00==1)return this.remainder=new o(0),this}if(y.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(y))return this.remainder=new o(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var E=y.clone(),$=-1;!this.lt(E);)E.shiftLeft(1,!0),$++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;$>=0;$--)E.shiftRight(1),this.remainder.lt(E)||(this.remainder.subtract(E),$>=48?this._a48|=1<<$-48:$>=32?this._a32|=1<<$-32:$>=16?this._a16|=1<<$-16:this._a00|=1<<$);return this},o.prototype.negate=function(){var y=(~this._a00&65535)+1;return this._a00=y&65535,y=(~this._a16&65535)+(y>>>16),this._a16=y&65535,y=(~this._a32&65535)+(y>>>16),this._a32=y&65535,this._a48=~this._a48+(y>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(y){return this._a48==y._a48&&this._a00==y._a00&&this._a32==y._a32&&this._a16==y._a16},o.prototype.greaterThan=o.prototype.gt=function(y){return this._a48>y._a48?!0:this._a48<y._a48?!1:this._a32>y._a32?!0:this._a32<y._a32?!1:this._a16>y._a16?!0:this._a16<y._a16?!1:this._a00>y._a00},o.prototype.lessThan=o.prototype.lt=function(y){return this._a48<y._a48?!0:this._a48>y._a48?!1:this._a32<y._a32?!0:this._a32>y._a32?!1:this._a16<y._a16?!0:this._a16>y._a16?!1:this._a00<y._a00},o.prototype.or=function(y){return this._a00|=y._a00,this._a16|=y._a16,this._a32|=y._a32,this._a48|=y._a48,this},o.prototype.and=function(y){return this._a00&=y._a00,this._a16&=y._a16,this._a32&=y._a32,this._a48&=y._a48,this},o.prototype.xor=function(y){return this._a00^=y._a00,this._a16^=y._a16,this._a32^=y._a32,this._a48^=y._a48,this},o.prototype.not=function(){return this._a00=~this._a00&65535,this._a16=~this._a16&65535,this._a32=~this._a32&65535,this._a48=~this._a48&65535,this},o.prototype.shiftRight=o.prototype.shiftr=function(y){return y%=64,y>=48?(this._a00=this._a48>>y-48,this._a16=0,this._a32=0,this._a48=0):y>=32?(y-=32,this._a00=(this._a32>>y|this._a48<<16-y)&65535,this._a16=this._a48>>y&65535,this._a32=0,this._a48=0):y>=16?(y-=16,this._a00=(this._a16>>y|this._a32<<16-y)&65535,this._a16=(this._a32>>y|this._a48<<16-y)&65535,this._a32=this._a48>>y&65535,this._a48=0):(this._a00=(this._a00>>y|this._a16<<16-y)&65535,this._a16=(this._a16>>y|this._a32<<16-y)&65535,this._a32=(this._a32>>y|this._a48<<16-y)&65535,this._a48=this._a48>>y&65535),this},o.prototype.shiftLeft=o.prototype.shiftl=function(y,E){return y%=64,y>=48?(this._a48=this._a00<<y-48,this._a32=0,this._a16=0,this._a00=0):y>=32?(y-=32,this._a48=this._a16<<y|this._a00>>16-y,this._a32=this._a00<<y&65535,this._a16=0,this._a00=0):y>=16?(y-=16,this._a48=this._a32<<y|this._a16>>16-y,this._a32=(this._a16<<y|this._a00>>16-y)&65535,this._a16=this._a00<<y&65535,this._a00=0):(this._a48=this._a48<<y|this._a32>>16-y,this._a32=(this._a32<<y|this._a16>>16-y)&65535,this._a16=(this._a16<<y|this._a00>>16-y)&65535,this._a00=this._a00<<y&65535),E||(this._a48&=65535),this},o.prototype.rotateLeft=o.prototype.rotl=function(y){if(y%=64,y==0)return this;if(y>=32){var E=this._a00;if(this._a00=this._a32,this._a32=E,E=this._a48,this._a48=this._a16,this._a16=E,y==32)return this;y-=32}
18var $=this._a48<<16|this._a32,M=this._a16<<16|this._a00,X=$<<y|M>>>32-y,Z=M<<y|$>>>32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=X&65535,this._a48=X>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(y){if(y%=64,y==0)return this;if(y>=32){var E=this._a00;if(this._a00=this._a32,this._a32=E,E=this._a48,this._a48=this._a16,this._a16=E,y==32)return this;y-=32}var $=this._a48<<16|this._a32,M=this._a16<<16|this._a00,X=$>>>y|M<<32-y,Z=M>>>y|$<<32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=X&65535,this._a48=X>>>16,this},o.prototype.clone=function(){return new o(this._a00,this._a16,this._a32,this._a48)},n.exports?n.exports=o:i.UINT64=o})(uint64)})(uint64$1)),uint64$1.exports}var hasRequiredCuint;function requireCuint(){return hasRequiredCuint||(hasRequiredCuint=1,cuint.UINT32=requireUint32(),cuint.UINT64=requireUint64()),cuint}var xxhash$1,hasRequiredXxhash;function requireXxhash(){if(hasRequiredXxhash)return xxhash$1;hasRequiredXxhash=1;var n=requireCuint().UINT32;n.prototype.xxh_update=function(E,$){var M=t._low,X=t._high,Z,ye;ye=E*M,Z=ye>>>16,Z+=$*M,Z&=65535,Z+=E*X;var be=this._low+(ye&65535),we=be>>>16;we+=this._high+(Z&65535);var xe=we<<16|be&65535;xe=xe<<13|xe>>>19,be=xe&65535,we=xe>>>16,M=i._low,X=i._high,ye=be*M,Z=ye>>>16,Z+=we*M,Z&=65535,Z+=be*X,this._low=ye&65535,this._high=Z&65535};var i=n("2654435761"),t=n("2246822519"),e=n("3266489917"),o=n("668265263"),d=n("374761393");function p(E){for(var $=[],M=0,X=E.length;M<X;M++){var Z=E.charCodeAt(M);Z<128?$.push(Z):Z<2048?$.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?$.push(224|Z>>12,128|Z>>
186&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|E.charCodeAt(M)&1023),$.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array($)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y(E){return this.seed=E instanceof n?E.clone():n(E),this.v1=this.seed.clone().add(i).add(t),this.v2=this.seed.clone().add(t),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function(E){var $=typeof E=="string",M;$&&(E=p(E),$=!1,M=!0),typeof ArrayBuffer<"u"&&E instanceof ArrayBuffer&&(M=!0,E=new Uint8Array(E));var X=0,Z=E.length,ye=X+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&($?this.memory="":M?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+Z<16)return $?this.memory+=E:M?this.memory.set(E.subarray(0,Z),this.memsize):E.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){$?this.memory+=E.slice(0,16-this.memsize):M?this.memory.set(E.subarray(0,16-this.memsize),this.memsize):E.copy(this.memory,this.memsize,0,16-this.memsize);var be=0;$?(this.v1.xxh_update(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2)),be+=4,this.v2.xxh_update(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2)),be+=4,this.v3.xxh_update(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2)),be+=4,this.v4.xxh_update(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2))):(this.v1.xxh_update(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2]),be+=4,this.v2.xxh_update(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2]),be+=4,this.v3.xxh_update(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2]),be+=4,this.v4.xxh_update(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2])),X+=16-this.memsize,this.memsize=0,$&&(this.memory="")}if(X<=ye-16){var we=ye-16;do $?(this.v1.xxh_update(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2)),X+=4,this.v2.xxh_update(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2)),X+=4,this.v3.xxh_update(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2)),X+=4,this.v4.xxh_update(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2))):(this.v1.xxh_update(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2]),X+=4,this.v2.xxh_update(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2]),X+=4,this.v3.xxh_update(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2]),X+=4,this.v4.xxh_update(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2])),X+=4;while(X<=we)}return X<ye&&($?this.memory+=E.slice(X):M?this.memory.set(E.subarray(X,ye),this.memsize):E.copy(this.memory,this.memsize,X,ye),this.memsize=ye-X),this},h.prototype.digest=function(){var E=this.memory,$=typeof E=="string",M=0,X=this.memsize,Z,ye,be=new n;for(this.total_len>=16?Z=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):Z=this.seed.clone().add(d),Z.add(be.fromNumber(this.total_len));M<=X-4;)$?be.fromBits(E.charCodeAt(M+1)<<8|E.charCodeAt(M),E.charCodeAt(M+3)<<8|E.charCodeAt(M+2)):be.fromBits(E[M+1]<<8|E[M],E[M+3]<<8|E[M+2]),Z.add(be.multiply(e)).rotl(17).multiply(o),M+=4;for(;M<X;)be.fromBits($?E.charCodeAt(M++):E[M++],0),Z.add(be.multiply(d)).rotl(11).multiply(i);return ye=Z.clone().shiftRight(15),Z.xor(ye).multiply(t),ye=Z.clone().shiftRight(13),Z.xor(ye).multiply(e),ye=Z.clone().shiftRight(16),Z.xor(ye),this.init(this.seed),Z},xxhash$1=h,xxhash$1}var xxhash64,hasRequiredXxhash64;function requireXxhash64(){if(hasRequiredXxhash64)return xxhash64;hasRequiredXxhash64=1;var n=requireCuint().UINT64,i=n("11400714785074694791"),t=n("14029467366897019727"),e=n("1609587929392839161"),o=n("9650029242287828579"),d=n("2870177450012600261");function p(E){for(var $=[],M=0,X=E.length;M<X;M++){var Z=E.charCodeAt(M);Z<128?$.push(Z):Z<2048?$.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?$.push(224|Z>>12,128|Z>>
186&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|E.charCodeAt(M)&1023),$.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array($)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y(E){return this.seed=E instanceof n?E.clone():n(E),this.v1=this.seed.clone().add(i).add(t),this.v2=this.seed.clone().add(t),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function(E){var $=typeof E=="string",M;$&&(E=p(E),$=!1,M=!0),typeof ArrayBuffer<"u"&&E instanceof ArrayBuffer&&(M=!0,E=new Uint8Array(E));var X=0,Z=E.length,ye=X+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&($?this.memory="":M?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+Z<32)return $?this.memory+=E:M?this.memory.set(E.subarray(0,Z),this.memsize):E.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){$?this.memory+=E.slice(0,32-this.memsize):M?this.memory.set(E.subarray(0,32-this.memsize),this.memsize):E.copy(this.memory,this.memsize,0,32-this.memsize);var be=0;
18if($){var we;we=n(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2),this.memory.charCodeAt(be+5)<<8|this.memory.charCodeAt(be+4),this.memory.charCodeAt(be+7)<<8|this.memory.charCodeAt(be+6)),this.v1.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2),this.memory.charCodeAt(be+5)<<8|this.memory.charCodeAt(be+4),this.memory.charCodeAt(be+7)<<8|this.memory.charCodeAt(be+6)),this.v2.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2),this.memory.charCodeAt(be+5)<<8|this.memory.charCodeAt(be+4),this.memory.charCodeAt(be+7)<<8|this.memory.charCodeAt(be+6)),this.v3.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory.charCodeAt(be+1)<<8|this.memory.charCodeAt(be),this.memory.charCodeAt(be+3)<<8|this.memory.charCodeAt(be+2),this.memory.charCodeAt(be+5)<<8|this.memory.charCodeAt(be+4),this.memory.charCodeAt(be+7)<<8|this.memory.charCodeAt(be+6)),this.v4.add(we.multiply(t)).rotl(31).multiply(i)}else{var we;we=n(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2],this.memory[be+5]<<8|this.memory[be+4],this.memory[be+7]<<8|this.memory[be+6]),this.v1.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2],this.memory[be+5]<<8|this.memory[be+4],this.memory[be+7]<<8|this.memory[be+6]),this.v2.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2],this.memory[be+5]<<8|this.memory[be+4],this.memory[be+7]<<8|this.memory[be+6]),this.v3.add(we.multiply(t)).rotl(31).multiply(i),be+=8,we=n(this.memory[be+1]<<8|this.memory[be],this.memory[be+3]<<8|this.memory[be+2],this.memory[be+5]<<8|this.memory[be+4],this.memory[be+7]<<8|this.memory[be+6]),this.v4.add(we.multiply(t)).rotl(31).multiply(i)}X+=32-this.memsize,this.memsize=0,$&&(this.memory="")}if(X<=ye-32){var xe=ye-32;do{if($){var we;we=n(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2),E.charCodeAt(X+5)<<8|E.charCodeAt(X+4),E.charCodeAt(X+7)<<8|E.charCodeAt(X+6)),this.v1.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2),E.charCodeAt(X+5)<<8|E.charCodeAt(X+4),E.charCodeAt(X+7)<<8|E.charCodeAt(X+6)),this.v2.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2),E.charCodeAt(X+5)<<8|E.charCodeAt(X+4),E.charCodeAt(X+7)<<8|E.charCodeAt(X+6)),this.v3.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E.charCodeAt(X+1)<<8|E.charCodeAt(X),E.charCodeAt(X+3)<<8|E.charCodeAt(X+2),E.charCodeAt(X+5)<<8|E.charCodeAt(X+4),E.charCodeAt(X+7)<<8|E.charCodeAt(X+6)),this.v4.add(we.multiply(t)).rotl(31).multiply(i)}else{var we;we=n(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2],E[X+5]<<8|E[X+4],E[X+7]<<8|E[X+6]),this.v1.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2],E[X+5]<<8|E[X+4],E[X+7]<<8|E[X+6]),this.v2.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2],E[X+5]<<8|E[X+4],E[X+7]<<8|E[X+6]),this.v3.add(we.multiply(t)).rotl(31).multiply(i),X+=8,we=n(E[X+1]<<8|E[X],E[X+3]<<8|E[X+2],E[X+5]<<8|E[X+4],E[X+7]<<8|E[X+6]),this.v4.add(we.multiply(t)).rotl(31).multiply(i)}X+=8}while(X<=xe)}return X<ye&&($?this.memory+=E.slice(X):M?this.memory.set(E.subarray(X,ye),this.memsize):E.copy(this.memory,this.memsize,X,ye),this.memsize=ye-X),this},h.prototype.digest=function(){var E=this.memory,$=typeof E=="string",M=0,X=this.memsize,Z,ye,be=new n;for(this.total_len>=32?(Z=this.v1.clone().rotl(1),Z.add(this.v2.clone().rotl(7)),Z.add(this.v3.clone().rotl(12)),Z.add(this.v4.clone().rotl(18)),Z.xor(this.v1.multiply(t).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v2.multiply(t).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v3.multiply(t).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v4.multiply(t).rotl(31).multiply(i)),Z.multiply(i).add(o)):Z=this.seed.clone().add(d),Z.add(be.fromNumber(this.total_len));M<=X-8;
18)$?be.fromBits(E.charCodeAt(M+1)<<8|E.charCodeAt(M),E.charCodeAt(M+3)<<8|E.charCodeAt(M+2),E.charCodeAt(M+5)<<8|E.charCodeAt(M+4),E.charCodeAt(M+7)<<8|E.charCodeAt(M+6)):be.fromBits(E[M+1]<<8|E[M],E[M+3]<<8|E[M+2],E[M+5]<<8|E[M+4],E[M+7]<<8|E[M+6]),be.multiply(t).rotl(31).multiply(i),Z.xor(be).rotl(27).multiply(i).add(o),M+=8;for(M+4<=X&&($?be.fromBits(E.charCodeAt(M+1)<<8|E.charCodeAt(M),E.charCodeAt(M+3)<<8|E.charCodeAt(M+2),0,0):be.fromBits(E[M+1]<<8|E[M],E[M+3]<<8|E[M+2],0,0),Z.xor(be.multiply(i)).rotl(23).multiply(t).add(e),M+=4);M<X;)be.fromBits($?E.charCodeAt(M++):E[M++],0,0,0),Z.xor(be.multiply(d)).rotl(11).multiply(i);return ye=Z.clone().shiftRight(33),Z.xor(ye).multiply(t),ye=Z.clone().shiftRight(29),Z.xor(ye).multiply(e),ye=Z.clone().shiftRight(32),Z.xor(ye),this.init(this.seed),Z},xxhash64=h,xxhash64}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={h32:requireXxhash(),h64:requireXxhash64()}),lib}var libExports=requireLib();const xxhash=getDefaultExportFromCjs(libExports),assertNever=n=>{throw new Error(`Reached a branch with non-exhaustive item: ${n}`)},GENERATED_ELEMENT_ID_PREFIX="$$ID";function debounce$1(n,i){let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout(()=>{i(...e),t=null},n)}}const EMBED_QUERY_PARAM_KEY="embed",EMBED_OPTIONS_QUERY_PARAM_KEY="embed_options",EMBED_SHOW_TOOLBAR="show_toolbar",EMBED_SHOW_PADDING="show_padding",EMBED_DISABLE_SCROLLING="disable_scrolling",EMBED_LIGHT_THEME="light_theme",EMBED_DARK_THEME="dark_theme",EMBED_TRUE="true",EMBED_HIDE_LOADING_SCREEN="hide_loading_screen",EMBED_SHOW_LOADING_SCREEN_V1="show_loading_screen_v1",EMBED_SHOW_LOADING_SCREEN_V2="show_loading_screen_v2",EMBED_QUERY_PARAM_VALUES=[EMBED_SHOW_TOOLBAR,EMBED_SHOW_PADDING,EMBED_DISABLE_SCROLLING,EMBED_LIGHT_THEME,EMBED_DARK_THEME,EMBED_HIDE_LOADING_SCREEN,EMBED_SHOW_LOADING_SCREEN_V1,EMBED_SHOW_LOADING_SCREEN_V2,EMBED_TRUE];var LoadingScreenType=(function(n){return n[n.NONE=0]="NONE",n[n.V1=1]="V1",n[n.V2=2]="V2",n})({});function getEmbedUrlParams(n){const i=new Set;return new URLSearchParams(window.location.search).forEach((e,o)=>{o=o.toString().toLowerCase(),e=e.toString().toLowerCase(),o===n&&EMBED_QUERY_PARAM_VALUES.includes(e)&&i.add(e)}),i}function preserveEmbedQueryParams(){if(!isEmbed())return"";const n=new URLSearchParams(window.location.search).getAll(EMBED_OPTIONS_QUERY_PARAM_KEY),i=[];return i.push([EMBED_QUERY_PARAM_KEY,EMBED_TRUE]),n.forEach(t=>{i.push([EMBED_OPTIONS_QUERY_PARAM_KEY,t])}),new URLSearchParams(i).toString()}function getQueryString(n,i){return n!==void 0?i?n?`${i}&${n}`:i:n:i}function isEmbed(){return getEmbedUrlParams(EMBED_QUERY_PARAM_KEY).has(EMBED_TRUE)}function isToolbarDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_TOOLBAR)}function isScrollingHidden(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DISABLE_SCROLLING)}function isPaddingDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_PADDING)}function isLightThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_LIGHT_THEME)}function isDarkThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DARK_THEME)}function isInChildFrame(){return window.parent!==window}function getUrl(){let n;try{isInChildFrame()&&window.top?n=window.top.location.href:n=document.location.href}catch{n=document.location.href}const i=new URL(n);return i.search="",i.hash="",i.toString()}function getScreencastTimestamp(){const n=new Date,i=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),e=String(n.getDate()).padStart(2,"0"),o=String(n.getHours()).padStart(2,"0"),d=String(n.getMinutes()).padStart(2,"0"),p=String(n.getSeconds()).padStart(2,"0");return`${i}-${t}-${e}-${o}-${d}-${p}`}function getTimezone$1(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function getTimezoneOffset(){return new Date().getTimezoneOffset()}function getLocaleLanguage(){return navigator.language}function getLoadingScreenType(){const n=getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY);return n.has(EMBED_HIDE_LOADING_SCREEN)?0:n.has(EMBED_SHOW_LOADING_SCREEN_V1)?1:2}function makeElementWithInfoText(n){return new Element$1({alert:{body:n,format:Alert.Format.INFO}})}function makeElementWithErrorText(n){return new Element$1({alert:{body:n,format:Alert.Format.ERROR}})}function makeAppSkeletonElement(){return new Element$1({skeleton:{style:Skeleton$1.SkeletonStyle.APP}})}function hashString(n){return xxhash.h32(n,3735928559).toString(16)}function requireNonNull(n){if(isNullOrUndefined$1(n))throw new Error("value is null");return n}function notUndefined(n){return n!==void 0}function isFromMac(){return/Mac/i.test(navigator.platform)}function isFromWindows(){return/^Win/i.test(navigator.platform)}function setCookie(n,i,t){const e=i?t:new Date,o=e?`expires=${e.toUTCString()};`:"";document.cookie=`${n}=${i};${o}path=/`}function isValidElementId(n){return n?n.startsWith(GENERATED_ELEMENT_ID_PREFIX)&&n.split("-").length>=3:!1}function getElementId(n){const i=get$1(n,[requireNonNull(n.type),"id"]);if(i&&isValidElementId(i))return i}function isValidFormId(n){return notNullOrUndefined(n)&&n.length>0}function isInForm(n){return isValidFormId(n.formId)}function getSelectPlaceholder(n,i,t,e=!1){let o=!1;return n!==""?{placeholder:n,shouldDisable:o}:(i.length===0?t?n=e?"Add options":"Add an option":(n="No options to select",o=!0):t?n=e?"Choose or add options":"Cho
18ose or add an option":n=e?"Choose options":"Choose an option",{placeholder:n,shouldDisable:o})}var LabelVisibilityOptions=(function(n){return n[n.Visible=0]="Visible",n[n.Hidden=1]="Hidden",n[n.Collapsed=2]="Collapsed",n})({});function labelVisibilityProtoValueToEnum(n){switch(n){case LabelVisibility.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibility.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibility.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}}var AcceptFileValue=(function(n){return n[n.None=0]="None",n[n.Single=1]="Single",n[n.Multiple=2]="Multiple",n[n.Directory=3]="Directory",n})({});function chatInputAcceptFileProtoValueToEnum(n){switch(n){case ChatInput$1.AcceptFile.NONE:return 0;case ChatInput$1.AcceptFile.SINGLE:return 1;case ChatInput$1.AcceptFile.MULTIPLE:return 2;case ChatInput$1.AcceptFile.DIRECTORY:return 3;default:return assertNever(n),0}}function findAnIFrameWithClassName(n,i){for(let t=0;t<n.length;t++){const e=n[t].contentDocument;if(e&&e.getElementsByClassName(i).length>0)return n[t]}return null}function canAccessIFrame(n){try{if(n.contentWindow===null)return!1;const t=(n.contentDocument||n.contentWindow.document).body.innerHTML;return t!==null&&t!==""}catch{return!1}}function getIFrameEnclosingApp(n){if(!isInChildFrame())return null;const i=getEmbeddingIdClassName(n),t='iframe[title="streamlitApp"]';let e=window.document.querySelectorAll(t),o=findAnIFrameWithClassName(e,i);if(o&&!canAccessIFrame(o))return null;if(o)return o;if(window.parent&&(e=window.parent.document.querySelectorAll(t)),o=findAnIFrameWithClassName(e,i),o&&!canAccessIFrame(o))return null;if(o)return o;let d=window.document.getElementsByTagName("iframe");return o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o||(window.parent&&(d=window.parent.document.getElementsByTagName("iframe")),o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o)}function generateUID$2(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function getEmbeddingIdClassName(n){return`stAppEmbeddingId-${n}`}function extractPageNameFromPathName(n,i){return decodeURIComponent(n.replace(i,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),""))}function keysToSnakeCase(n){return Object.keys(n).reduce((i,t)=>{const e=decamelize$1(t,{preserveConsecutiveUppercase:!0}).replace(".","_");let o=n[t];return o&&typeof o=="object"&&!Array.isArray(o)&&(o=keysToSnakeCase(o)),Array.isArray(o)&&(o=o.map(d=>d!==null&&typeof d=="object"?keysToSnakeCase(d):d)),i[e]=o,i},{})}const MAX_HASH_LENGTH=6;class DebugVisitor{constructor(i="",t=!0){this.prefix=i,this.isLast=t}visitBlockNode(i){const t=this.isLast?"âââ ":"âââ ",e=this.prefix+(this.isLast?" ":"â ");let o=`${this.prefix}${t}BlockNode [${i.children.length} children]`;return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(o+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o+=` 19`,i.children.forEach((d,p)=>{const h=p===i.children.length-1,y=new DebugVisitor(e,h);o+=d.accept(y)}),o}visitElementNode(i){const t=this.isLast?"âââ ":"âââ ";let e=`${this.prefix}${t}ElementNode [${i.element.type}]`;if(i.element.type==="text"&&i.element.text?.body){const o=i.element.text.body.length>30?`${i.element.text.body.slice(0,30)}...`:i.element.text.body;e+=` "${o}"`}return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(e+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),i.fragmentId&&(e+=` (fragment: ${i.fragmentId.substring(0,MAX_HASH_LENGTH)})`),e+=` (activeScriptHash: ${i.activeScriptHash.substring(0,MAX_HASH_LENGTH)})`,e+=` 20`,e}visitTransientNode(i){const t=this.isLast?"âââ ":"âââ ",e=this.prefix+(this.isLast?" ":"â ");let o=`${this.prefix}${t}TransientNode [${i.transientNodes.length} transient]`;if(i.scriptRunId!==NO_SCRIPT_RUN_ID&&(o+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o+=` 21`,i.anchor){o+=`${e}âââ anchor: 22`;const d=new DebugVisitor(e+"â ",!0);o+=i.anchor.accept(d)}return i.transientNodes.length>0&&(o+=`${e}âââ transient nodes: 23`,i.transientNodes.forEach((d,p)=>{const h=p===i.transientNodes.length-1,y=h?"âââ ":"âââ ",E=e+" "+(h?" ":"â ");o+=`${e} ${y}: 24`;const $=new DebugVisitor(E,!0);o+=d.accept($)}
24)),o}static generateDebugString(i,t="",e=!0){const o=new DebugVisitor(t,e);return i.accept(o)}}class TransientNode{constructor(i,t,e,o){this.scriptRunId=i,this.anchor=t,this.transientNodes=e??[],this.deltaMsgReceivedAt=o??Date.now(),this.fragmentId=void 0,this.activeScriptHash=void 0}updateTransientNodes(i){const t=[];return this.transientNodes.forEach(e=>{const o=i(e);o&&t.push(o)}),t}accept(i){return i.visitTransientNode(this)}debug(){return this.accept(new DebugVisitor)}replaceTransientNodeWithSelf(i){return!this.deltaMsgReceivedAt||!i.deltaMsgReceivedAt||this.deltaMsgReceivedAt>=i.deltaMsgReceivedAt?new TransientNode(this.scriptRunId,this.anchor??i.anchor,this.transientNodes,this.deltaMsgReceivedAt):i}}class ClearStaleNodeVisitor{constructor(i,t,e){this.currentScriptRunId=i,this.fragmentIdsThisRun=t??[],this.fragmentIdOfBlock=e}get isFragmentRun(){return this.fragmentIdsThisRun.length>0}visitBlockNode(i){let t=null;if(this.isFragmentRun){if(this.fragmentIdOfBlock&&i.scriptRunId!==this.currentScriptRunId)return;i.fragmentId&&this.fragmentIdsThisRun.includes(i.fragmentId)&&i.scriptRunId===this.currentScriptRunId&&(t=new ClearStaleNodeVisitor(this.currentScriptRunId,this.fragmentIdsThisRun,i.fragmentId))}else if(i.scriptRunId!==this.currentScriptRunId)return;const e=[];let o=!1;return i.children.forEach(d=>{const p=d.accept(t??this);p!==d&&(o=!0),p!==void 0&&e.push(p)}),o?new BlockNode(i.activeScriptHash,e,i.deltaBlock,this.currentScriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitElementNode(i){return this.isFragmentRun&&(!i.fragmentId||!this.fragmentIdOfBlock||i.scriptRunId===this.currentScriptRunId)||i.scriptRunId===this.currentScriptRunId?i:void 0}visitTransientNode(i){if(i.scriptRunId===this.currentScriptRunId&&i.transientNodes.length===0&&i.anchor)return i.anchor;const t=i.anchor?.accept(this),e=i.updateTransientNodes(o=>o.accept(this));if(!(!t&&e.length===0))return e.length===0?t:new TransientNode(i.scriptRunId,t,e,i.deltaMsgReceivedAt)}}class BlockNode{constructor(i,t,e,o,d,p){this.activeScriptHash=i,this.children=t??[],this.deltaBlock=e??new Block$1({}),this.scriptRunId=o??NO_SCRIPT_RUN_ID,this.fragmentId=d,this.deltaMsgReceivedAt=p}get isEmpty(){return this.children.length===0}replaceTransientNodeWithSelf(i){if(i.scriptRunId!==this.scriptRunId)return this;if(i.transientNodes.length===0)return this;const t=i.updateTransientNodes(e=>e.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return t.length===0?this:new TransientNode(this.scriptRunId,this,t,i.deltaMsgReceivedAt)}accept(i){return i.visitBlockNode(this)}debug(){return this.accept(new DebugVisitor)}}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(n,...i){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var O$1=Object,getPrototypeOf=O$1.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=n=>!!n&&!!n[DRAFT_STATE];function isDraftable(n){return n?isPlainObject$1(n)||isArray(n)||!!n[DRAFTABLE]||!!n[CONSTRUCTOR]?.[DRAFTABLE]||isMap(n)||isSet(n):!1}var objectCtorString=O$1[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject$1(n){if(!n||!isObjectish(n))return!1;const i=getPrototypeOf(n);if(i===null||i===O$1[PROTOTYPE])return!0;const t=O$1.hasOwnProperty.call(i,CONSTRUCTOR)&&i[CONSTRUCTOR];if(t===Object)return!0;if(!isFunction$2(t))return!1;let e=cachedCtorStrings.get(t);return e===void 0&&(e=Function.toString.call(t),cachedCtorStrings.set(t,e)),e===objectCtorString}function each(n,i,t=!0){getArchtype(n)===0?(t?Reflect.ownKeys(n):O$1.keys(n)).forEach(o=>{i(o,n[o],n)}):n.forEach((e,o)=>i(o,e,n))}function getArchtype(n){const i=n[DRAFT_STATE];return i?i.type_:isArray(n)?1:isMap(n)?2:isSet(n)?3:0}var has=(n,i,t=getArchtype(n))=>t===2?n.has(i):O$1[PROTOTYPE].hasOwnProperty.call(n,i),get=(n,i,t=getArchtype(n))=>t===2?n.get(i):n[i],set=(n,i,t,e=getArchtype(n))=>{e===2?n.set(i,t):e===3?n.add(t):n[i]=t};function is(n,i){return n===i?n!==0||1/n===1/i:n!==n&&i!==i}var isArray=Array.isArray,isMap=n=>n instanceof Map,isSet=n=>n instanceof Set,isObjectish=n=>typeof n=="object",isFunction$2=n=>typeof n=="function",isBoolean$1=n=>typeof n=="boolean";function isArrayIndex(n){const i=+n;return Number.isInteger(i)&&String(i)===n}var getProxyDraft=n=>isObjectish(n)?n?.[DRAFT_STATE]:null,latest=n=>n.copy_||n.base_,getValue=n=>{const i=getProxyDraft(n);return i?i.copy_??i.base_:n},getFinalValue=n=>n.modified_?n.copy_:n.base_;
24function shallowCopy(n,i){if(isMap(n))return new Map(n);if(isSet(n))return new Set(n);if(isArray(n))return Array[PROTOTYPE].slice.call(n);const t=isPlainObject$1(n);if(i===!0||i==="class_only"&&!t){const e=O$1.getOwnPropertyDescriptors(n);delete e[DRAFT_STATE];let o=Reflect.ownKeys(e);for(let d=0;d<o.length;d++){const p=o[d],h=e[p];h[WRITABLE]===!1&&(h[WRITABLE]=!0,h[CONFIGURABLE]=!0),(h.get||h.set)&&(e[p]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:h[ENUMERABLE],[VALUE]:n[p]})}return O$1.create(getPrototypeOf(n),e)}else{const e=getPrototypeOf(n);if(e!==null&&t)return{...n};const o=O$1.create(e);return O$1.assign(o,n)}}function freeze(n,i=!1){return isFrozen(n)||isDraft(n)||!isDraftable(n)||(getArchtype(n)>1&&O$1.defineProperties(n,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O$1.freeze(n),i&&each(n,(t,e)=>{freeze(e,!0)},!1)),n}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen(n){return n===null||!isObjectish(n)?!0:O$1.isFrozen(n)}var PluginMapSet="MapSet",PluginPatches="Patches",PluginArrayMethods="ArrayMethods",plugins={};function getPlugin(n){const i=plugins[n];return i||die(0,n),i}var isPluginLoaded=n=>!!plugins[n];function loadPlugin(n,i){plugins[n]||(plugins[n]=i)}var currentScope,getCurrentScope=()=>currentScope,createScope=(n,i)=>({drafts_:[],parent_:n,immer_:i,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0,arrayMethodsPlugin_:isPluginLoaded(PluginArrayMethods)?getPlugin(PluginArrayMethods):void 0});function usePatchesInScope(n,i){i&&(n.patchPlugin_=getPlugin(PluginPatches),n.patches_=[],n.inversePatches_=[],n.patchListener_=i)}function revokeScope(n){leaveScope(n),n.drafts_.forEach(revokeDraft),n.drafts_=null}function leaveScope(n){n===currentScope&&(currentScope=n.parent_)}var enterScope=n=>currentScope=createScope(currentScope,n);function revokeDraft(n){const i=n[DRAFT_STATE];i.type_===0||i.type_===1?i.revoke_():i.revoked_=!0}function processResult(n,i){i.unfinalizedDrafts_=i.drafts_.length;const t=i.drafts_[0];if(n!==void 0&&n!==t){t[DRAFT_STATE].modified_&&(revokeScope(i),die(4)),isDraftable(n)&&(n=finalize(i,n));const{patchPlugin_:o}=i;o&&o.generateReplacementPatches_(t[DRAFT_STATE].base_,n,i)}else n=finalize(i,t);return maybeFreeze(i,n,!0),revokeScope(i),i.patches_&&i.patchListener_(i.patches_,i.inversePatches_),n!==NOTHING?n:void 0}function finalize(n,i){if(isFrozen(i))return i;const t=i[DRAFT_STATE];if(!t)return handleValue(i,n.handledSet_,n);if(!isSameScope(t,n))return i;if(!t.modified_)return t.base_;if(!t.finalized_){const{callbacks_:e}=t;if(e)for(;e.length>0;)e.pop()(n);generatePatchesAndFinalize(t,n)}return t.copy_}function maybeFreeze(n,i,t=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&freeze(i,t)}function markStateFinalized(n){n.finalized_=!0,n.scope_.unfinalizedDrafts_--}var isSameScope=(n,i)=>n.scope_===i,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(n,i,t,e){const o=latest(n),d=n.type_;if(e!==void 0&&get(o,e,d)===i){set(o,e,t,d);return}if(!n.draftLocations_){const h=n.draftLocations_=new Map;each(o,(y,E)=>{if(isDraft(E)){const $=h.get(E)||[];$.push(y),h.set(E,$)}})}const p=n.draftLocations_.get(i)??EMPTY_LOCATIONS_RESULT;for(const h of p)set(o,h,t,d)}function registerChildFinalizationCallback(n,i,t){n.callbacks_.push(function(o){const d=i;if(!d||!isSameScope(d,o))return;o.mapSetPlugin_?.fixSetContents(d);const p=getFinalValue(d);updateDraftInParent(n,d.draft_??d,p,t),generatePatchesAndFinalize(d,o)})}function generatePatchesAndFinalize(n,i){if(n.modified_&&!n.finalized_&&(n.type_===3||n.type_===1&&n.allIndicesReassigned_||(n.assigned_?.size??0)>0)){const{patchPlugin_:e}=i;if(e){const o=e.getPath(n);o&&e.generatePatches_(n,o,i)}markStateFinalized(n)}}function handleCrossReference(n,i,t){const{scope_:e}=n;if(isDraft(t)){const o=t[DRAFT_STATE];isSameScope(o,e)&&o.callbacks_.push(function(){prepareCopy(n);const p=getFinalValue(o);updateDraftInParent(n,t,p,i)})}else isDraftable(t)&&n.callbacks_.push(function(){const d=latest
24(n);n.type_===3?d.has(t)&&handleValue(t,e.handledSet_,e):get(d,i,n.type_)===t&&e.drafts_.length>1&&(n.assigned_.get(i)??!1)===!0&&n.copy_&&handleValue(get(n.copy_,i,n.type_),e.handledSet_,e)})}function handleValue(n,i,t){return!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1||isDraft(n)||i.has(n)||!isDraftable(n)||isFrozen(n)||(i.add(n),each(n,(e,o)=>{if(isDraft(o)){const d=o[DRAFT_STATE];if(isSameScope(d,t)){const p=getFinalValue(d);set(n,e,p,n.type_),markStateFinalized(d)}}else isDraftable(o)&&handleValue(o,i,t)})),n}function createProxyProxy(n,i){const t=isArray(n),e={type_:t?1:0,scope_:i?i.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:i,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=e,d=objectTraps;t&&(o=[e],d=arrayTraps);const{revoke:p,proxy:h}=Proxy.revocable(o,d);return e.draft_=h,e.revoke_=p,[h,e]}var objectTraps={get(n,i){if(i===DRAFT_STATE)return n;let t=n.scope_.arrayMethodsPlugin_;const e=n.type_===1&&typeof i=="string";if(e&&t?.isArrayOperationMethod(i))return t.createMethodInterceptor(n,i);const o=latest(n);if(!has(o,i,n.type_))return readPropFromProto(n,o,i);const d=o[i];if(n.finalized_||!isDraftable(d)||e&&n.operationMethod&&t?.isMutatingArrayMethod(n.operationMethod)&&isArrayIndex(i))return d;if(d===peek(n.base_,i)){prepareCopy(n);const p=n.type_===1?+i:i,h=createProxy(n.scope_,d,n,p);return n.copy_[p]=h}return d},has(n,i){return i in latest(n)},ownKeys(n){return Reflect.ownKeys(latest(n))},set(n,i,t){const e=getDescriptorFromProto(latest(n),i);if(e?.set)return e.set.call(n.draft_,t),!0;if(!n.modified_){const o=peek(latest(n),i),d=o?.[DRAFT_STATE];if(d&&d.base_===t)return n.copy_[i]=t,n.assigned_.set(i,!1),!0;if(is(t,o)&&(t!==void 0||has(n.base_,i,n.type_)))return!0;prepareCopy(n),markChanged(n)}return n.copy_[i]===t&&(t!==void 0||i in n.copy_)||Number.isNaN(t)&&Number.isNaN(n.copy_[i])||(n.copy_[i]=t,n.assigned_.set(i,!0),handleCrossReference(n,i,t)),!0},deleteProperty(n,i){return prepareCopy(n),peek(n.base_,i)!==void 0||i in n.base_?(n.assigned_.set(i,!1),markChanged(n)):n.assigned_.delete(i),n.copy_&&delete n.copy_[i],!0},getOwnPropertyDescriptor(n,i){const t=latest(n),e=Reflect.getOwnPropertyDescriptor(t,i);return e&&{[WRITABLE]:!0,[CONFIGURABLE]:n.type_!==1||i!=="length",[ENUMERABLE]:e[ENUMERABLE],[VALUE]:t[i]}},defineProperty(){die(11)},getPrototypeOf(n){return getPrototypeOf(n.base_)},setPrototypeOf(){die(12)}},arrayTraps={};for(let n in objectTraps){let i=objectTraps[n];arrayTraps[n]=function(){const t=arguments;return t[0]=t[0][0],i.apply(this,t)}}arrayTraps.deleteProperty=function(n,i){return arrayTraps.set.call(this,n,i,void 0)};arrayTraps.set=function(n,i,t){return objectTraps.set.call(this,n[0],i,t,n[0])};function peek(n,i){const t=n[DRAFT_STATE];return(t?latest(t):n)[i]}function readPropFromProto(n,i,t){const e=getDescriptorFromProto(i,t);return e?VALUE in e?e[VALUE]:e.get?.call(n.draft_):void 0}function getDescriptorFromProto(n,i){if(!(i in n))return;let t=getPrototypeOf(n);for(;t;){const e=Object.getOwnPropertyDescriptor(t,i);if(e)return e;t=getPrototypeOf(t)}}function markChanged(n){n.modified_||(n.modified_=!0,n.parent_&&markChanged(n.parent_))}function prepareCopy(n){n.copy_||(n.assigned_=new Map,n.copy_=shallowCopy(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,t,e)=>{if(isFunction$2(i)&&!isFunction$2(t)){const d=t;t=i;const p=this;return function(y=d,...E){return p.produce(y,$=>t.call(this,$,...E))}}isFunction$2(t)||die(6),e!==void 0&&!isFunction$2(e)&&die(7);let o;if(isDraftable(i)){const d=enterScope(this),p=createProxy(d,i,void 0);let h=!0;try{o=t(p),h=!1}finally{h?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,e),processResult(o,d)}else if(!i||!isObjectish(i)){if(o=t(i),o===void 0&&(o=i),o===NOTHING&&(o=void 0),this.autoFreeze_&&freeze(o,!0),e){const d=[],p=[];getPlugin(PluginPatches).generateReplacementPatches_(i,o,{patches_:d,inversePatches_:p}),e(d,p)}return o}else die(1,i)},this.produceWithPatches=(i,t)=>{if(isFunction$2(i))return(p,...h)=>this.produceWithPatches(p,y=>i(y,...h));let e,o;return[this.produce(i,t,(p,h)=>{e=p,o=h}),e,o]},isBoolean$1(n?.autoFreeze)&&this.setAutoFreeze(n.autoFreeze),isBoolean$1(n?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(n.useStrictShallowCopy),isBoolean$1(n?.useStrictIteration)&&this.setUseStrictIteration(n.useStrictIteration)}createDraft(n){isDraftable(n)||die(8),isDraft(n)&&(n=current(n));const i=enterScope(this),t=createProxy(i,n,void 0);return t[DRAFT_STATE].isManual_=!0,leaveScope(i),t}finishDraft(n,i){const t=n&&n[DRAFT_STATE];(!t||!t.isManual_)&&die(9);const{scope_:e}=t;return usePatchesInScope(e,i),processResult(void 0,e)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}setUseStrictIteration(n){this.useStrictIteration_=n}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(n,i){let t;for(t=i.length-1;t>=0;t--){const o=i[t];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}t>-1&&(i=i.slice(t+1));const e=getPlugin(PluginPatches).applyPatches_;return isDraft(n)?e(n,i):this.produce(n,o=>
24e(o,i))}};function createProxy(n,i,t,e){const[o,d]=isMap(i)?getPlugin(PluginMapSet).proxyMap_(i,t):isSet(i)?getPlugin(PluginMapSet).proxySet_(i,t):createProxyProxy(i,t);return(t?.scope_??getCurrentScope()).drafts_.push(o),d.callbacks_=t?.callbacks_??[],d.key_=e,t&&e!==void 0?registerChildFinalizationCallback(t,d,e):d.callbacks_.push(function(y){y.mapSetPlugin_?.fixSetContents(d);const{patchPlugin_:E}=y;d.modified_&&E&&E.generatePatches_(d,[],y)}),o}function current(n){return isDraft(n)||die(10,n),currentImpl(n)}function currentImpl(n){if(!isDraftable(n)||isFrozen(n))return n;const i=n[DRAFT_STATE];let t,e=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,t=shallowCopy(n,i.scope_.immer_.useStrictShallowCopy_),e=i.scope_.immer_.shouldUseStrictIteration()}else t=shallowCopy(n,!0);return each(t,(o,d)=>{set(t,o,currentImpl(d))},e),i&&(i.finalized_=!1),t}function enablePatches(){function i(ye,be=[]){if(ye.key_!==void 0){const we=ye.parent_.copy_??ye.parent_.base_,xe=getProxyDraft(get(we,ye.key_)),$e=get(we,ye.key_);if($e===void 0||$e!==ye.draft_&&$e!==ye.base_&&$e!==ye.copy_||xe!=null&&xe.base_!==ye.base_)return null;const Ne=ye.parent_.type_===3;let Fe;if(Ne){const De=ye.parent_;Fe=Array.from(De.drafts_.keys()).indexOf(ye.key_)}else Fe=ye.key_;if(!(Ne&&we.size>Fe||has(we,Fe)))return null;be.push(Fe)}if(ye.parent_)return i(ye.parent_,be);be.reverse();try{t(ye.copy_,be)}catch{return null}return be}function t(ye,be){let we=ye;for(let xe=0;xe<be.length-1;xe++){const $e=be[xe];if(we=get(we,$e),!isObjectish(we)||we===null)throw new Error(`Cannot resolve path at '${be.join("/")}'`)}return we}const e="replace",o="add",d="remove";function p(ye,be,we){if(ye.scope_.processedForPatches_.has(ye))return;ye.scope_.processedForPatches_.add(ye);const{patches_:xe,inversePatches_:$e}=we;switch(ye.type_){case 0:case 2:return y(ye,be,xe,$e);case 1:return h(ye,be,xe,$e);case 3:return E(ye,be,xe,$e)}}function h(ye,be,we,xe){let{base_:$e,assigned_:Ne}=ye,Fe=ye.copy_;Fe.length<$e.length&&([$e,Fe]=[Fe,$e],[we,xe]=[xe,we]);const De=ye.allIndicesReassigned_===!0;for(let Le=0;Le<$e.length;Le++){const He=Fe[Le],Ke=$e[Le];if((De||Ne?.get(Le.toString()))&&He!==Ke){const Ve=He?.[DRAFT_STATE];if(Ve&&Ve.modified_)continue;const qe=be.concat([Le]);we.push({op:e,path:qe,value:Z(He)}),xe.push({op:e,path:qe,value:Z(Ke)})}}for(let Le=$e.length;Le<Fe.length;Le++){const He=be.concat([Le]);we.push({op:o,path:He,value:Z(Fe[Le])})}for(let Le=Fe.length-1;$e.length<=Le;--Le){const He=be.concat([Le]);xe.push({op:d,path:He})}}function y(ye,be,we,xe){const{base_:$e,copy_:Ne,type_:Fe}=ye;each(ye.assigned_,(De,Le)=>{const He=get($e,De,Fe),Ke=get(Ne,De,Fe),je=Le?has($e,De)?e:o:d;if(He===Ke&&je===e)return;const Ve=be.concat(De);we.push(je===d?{op:je,path:Ve}:{op:je,path:Ve,value:Z(Ke)}),xe.push(je===o?{op:d,path:Ve}:je===d?{op:o,path:Ve,value:Z(He)}:{op:e,path:Ve,value:Z(He)})})}function E(ye,be,we,xe){let{base_:$e,copy_:Ne}=ye,Fe=0;$e.forEach(De=>{if(!Ne.has(De)){const Le=be.concat([Fe]);we.push({op:d,path:Le,value:De}),xe.unshift({op:o,path:Le,value:De})}Fe++}),Fe=0,Ne.forEach(De=>{if(!$e.has(De)){const Le=be.concat([Fe]);we.push({op:o,path:Le,value:De}),xe.unshift({op:d,path:Le,value:De})}Fe++})}
24function $(ye,be,we){const{patches_:xe,inversePatches_:$e}=we;xe.push({op:e,path:[],value:be===NOTHING?void 0:be}),$e.push({op:e,path:[],value:ye})}function M(ye,be){return be.forEach(we=>{const{path:xe,op:$e}=we;let Ne=ye;for(let He=0;He<xe.length-1;He++){const Ke=getArchtype(Ne);let je=xe[He];typeof je!="string"&&typeof je!="number"&&(je=""+je),(Ke===0||Ke===1)&&(je==="__proto__"||je===CONSTRUCTOR)&&die(19),isFunction$2(Ne)&&je===PROTOTYPE&&die(19),Ne=get(Ne,je),isObjectish(Ne)||die(18,xe.join("/"))}const Fe=getArchtype(Ne),De=X(we.value),Le=xe[xe.length-1];switch($e){case e:switch(Fe){case 2:return Ne.set(Le,De);case 3:die(16);default:return Ne[Le]=De}case o:switch(Fe){case 1:return Le==="-"?Ne.push(De):Ne.splice(Le,0,De);case 2:return Ne.set(Le,De);case 3:return Ne.add(De);default:return Ne[Le]=De}case d:switch(Fe){case 1:return Ne.splice(Le,1);case 2:return Ne.delete(Le);case 3:return Ne.delete(we.value);default:return delete Ne[Le]}default:die(17,$e)}}),ye}function X(ye){if(!isDraftable(ye))return ye;if(isArray(ye))return ye.map(X);if(isMap(ye))return new Map(Array.from(ye.entries()).map(([we,xe])=>[we,X(xe)]));if(isSet(ye))return new Set(Array.from(ye).map(X));const be=Object.create(getPrototypeOf(ye));for(const we in ye)be[we]=X(ye[we]);return has(ye,DRAFTABLE)&&(be[DRAFTABLE]=ye[DRAFTABLE]),be}function Z(ye){return isDraft(ye)?X(ye):ye}loadPlugin(PluginPatches,{applyPatches_:M,generatePatches_:p,generateReplacementPatches_:$,getPath:i})}function enableMapSet(){class n extends Map{constructor(E,$){super(),this[DRAFT_STATE]={type_:2,parent_:$,scope_:$?$.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:E,draft_:this,isManual_:!1,revoked_:!1,callbacks_:[]}}get size(){return latest(this[DRAFT_STATE]).size}has(E){return latest(this[DRAFT_STATE]).has(E)}set(E,$){const M=this[DRAFT_STATE];return p(M),(!latest(M).has(E)||latest(M).get(E)!==$)&&(t(M),markChanged(M),M.assigned_.set(E,!0),M.copy_.set(E,$),M.assigned_.set(E,!0),handleCrossReference(M,E,$)),this}delete(E){if(!this.has(E))return!1;const $=this[DRAFT_STATE];return p($),t($),markChanged($),$.base_.has(E)?$.assigned_.set(E,!1):$.assigned_.delete(E),$.copy_.delete(E),!0}clear(){const E=this[DRAFT_STATE];p(E),latest(E).size&&(t(E),markChanged(E),E.assigned_=new Map,each(E.base_,$=>{E.assigned_.set($,!1)}),E.copy_.clear())}forEach(E,$){const M=this[DRAFT_STATE];latest(M).forEach((X,Z,ye)=>{E.call($,this.get(Z),Z,this)})}get(E){const $=this[DRAFT_STATE];p($);const M=latest($).get(E);if($.finalized_||!isDraftable(M)||M!==$.base_.get(E))return M;const X=createProxy($.scope_,M,$,E);return t($),$.copy_.set(E,X),X}keys(){return latest(this[DRAFT_STATE]).keys()}values(){const E=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const $=E.next();return $.done?$:{done:!1,value:this.get($.value)}}}}entries(){const E=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const $=E.next();if($.done)return $;const M=this.get($.value);return{done:!1,value:[$.value,M]}}}}[Symbol.iterator](){return this.entries()}}function i(y,E){const $=new n(y,E);return[$,$[DRAFT_STATE]]}function t(y){y.copy_||(y.assigned_=new Map,y.copy_=new Map(y.base_))}class e extends Set{constructor(E,$){super(),this[DRAFT_STATE]={type_:3,parent_:$,scope_:$?$.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,base_:E,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1,assigned_:void 0,callbacks_:[]}}get size(){return latest(this[DRAFT_STATE]).size}has(E){const $=this[DRAFT_STATE];return p($),$.copy_?!!($.copy_.has(E)||$.drafts_.has(E)&&$.copy_.has($.drafts_.get(E))):$.base_.has(E)}add(E){const $=this[DRAFT_STATE];return p($),this.has(E)||(d($),markChanged($),$.copy_.add(E),handleCrossReference($,E,E)),this}delete(E){if(!this.has(E))return!1;const $=this[DRAFT_STATE];return p($),d($),markChanged($),$.copy_.delete(E)||($.drafts_.has(E)?$.copy_.delete($.drafts_.get(E)):!1)}clear(){const E=this[DRAFT_STATE];p(E),latest(E).size&&(d(E),markChanged(E),E.copy_.clear())}values(){const E=this[DRAFT_STATE];return p(E),d(E),E.copy_.values()}entries(){const E=this[DRAFT_STATE];return p(E),d(E),E.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(E,$){const M=this.values();let X=M.next();for(;!X.done;)E.call($,X.value,X.value,this),X=M.next()}}function o(y,E){const $=new e(y,E);return[$,$[DRAFT_STATE]]}function d(y){y.copy_||(y.copy_=new Set,y.base_.forEach(E=>{if(isDraftable(E)){const $=createProxy(y.scope_,E,y,E);y.drafts_.set(E,$),y.copy_.add($)}else y.copy_.add(E)}))}
24function p(y){y.revoked_&&die(3,JSON.stringify(latest(y)))}function h(y){if(y.type_===3&&y.copy_){const E=new Set(y.copy_);y.copy_.clear(),E.forEach($=>{y.copy_.add(getValue($))})}}loadPlugin(PluginMapSet,{proxyMap_:i,proxySet_:o,fixSetContents:h})}var immer=new Immer2,produce=immer.produce,__assign$2=function(){return __assign$2=Object.assign||function(i){for(var t,e=1,o=arguments.length;e<o;e++){t=arguments[e];for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(i[d]=t[d])}return i},__assign$2.apply(this,arguments)};function __awaiter(n,i,t,e){function o(d){return d instanceof t?d:new t(function(p){p(d)})}return new(t||(t=Promise))(function(d,p){function h($){try{E(e.next($))}catch(M){p(M)}}function y($){try{E(e.throw($))}catch(M){p(M)}}function E($){$.done?d($.value):o($.value).then(h,y)}E((e=e.apply(n,i||[])).next())})}function __values(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],e=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function __await(n){return this instanceof __await?(this.v=n,this):new __await(n)}function __asyncGenerator(n,i,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t.apply(n,i||[]),o,d=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",p),o[Symbol.asyncIterator]=function(){return this},o;function p(Z){return function(ye){return Promise.resolve(ye).then(Z,M)}}function h(Z,ye){e[Z]&&(o[Z]=function(be){return new Promise(function(we,xe){d.push([Z,be,we,xe])>1||y(Z,be)})},ye&&(o[Z]=ye(o[Z])))}function y(Z,ye){try{E(e[Z](ye))}catch(be){X(d[0][3],be)}}function E(Z){Z.value instanceof __await?Promise.resolve(Z.value.v).then($,M):X(d[0][2],Z)}function $(Z){y("next",Z)}function M(Z){y("throw",Z)}function X(Z,ye){Z(ye),d.shift(),d.length&&y(d[0][0],d[0][1])}}function __asyncDelegator(n){var i,t;return i={},e("next"),e("throw",function(o){throw o}),e("return"),i[Symbol.iterator]=function(){return this},i;function e(o,d){i[o]=n[o]?function(p){return(t=!t)?{value:__await(n[o](p)),done:!1}:d?d(p):p}:d}}function __asyncValues(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],t;return i?i.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(d){t[d]=n[d]&&function(p){return new Promise(function(h,y){p=n[d](p),o(h,y,p.done,p.value)})}}function o(d,p,h,y){Promise.resolve(y).then(function(E){d({value:E,done:h})},p)}}typeof SuppressedError=="function"&&SuppressedError;const decoder=new TextDecoder("utf-8"),decodeUtf8=decoder.decode.bind(decoder),encoder=new TextEncoder,encodeUtf8=n=>encoder.encode(n),isNumber=n=>typeof n=="number",isBoolean=n=>typeof n=="boolean",isFunction$1=n=>typeof n=="function",isObject=n=>n!=null&&Object(n)===n,isPromise=n=>isObject(n)&&isFunction$1(n.then),isIterable=n=>isObject(n)&&isFunction$1(n[Symbol.iterator]),isAsyncIterable=n=>isObject(n)&&isFunction$1(n[Symbol.asyncIterator]),isArrowJSON=n=>isObject(n)&&isObject(n.schema),isIteratorResult=n=>isObject(n)&&"done"in n&&"value"in n,isFileHandle=n=>isObject(n)&&isFunction$1(n.stat)&&isNumber(n.fd),isFetchResponse=n=>isObject(n)&&isReadableDOMStream(n.body),isReadableInterop=n=>"_getDOMStream"in n&&"_getNodeStream"in n,isReadableDOMStream=n=>isObject(n)&&isFunction$1(n.cancel)&&isFunction$1(n.getReader)&&!isReadableInterop(n),isReadableNodeStream=n=>isObject(n)&&isFunction$1(n.read)&&isFunction$1(n.pipe)&&isBoolean(n.readable)&&!isReadableInterop(n),isFlatbuffersByteBuffer=n=>isObject(n)&&isFunction$1(n.clear)&&isFunction$1(n.bytes)&&isFunction$1(n.position)&&isFunction$1(n.setPosition)&&isFunction$1(n.capacity)&&isFunction$1(n.getBufferIdentifier)&&isFunction$1(n.createLong),SharedArrayBuf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function collapseContiguousByteRanges(n){const i=n[0]?[n[0]]:[];let t,e,o,d;for(let p,h,y=0,E=0,$=n.length;++y<$;){if(p=i[E],h=n[y],!p||!h||p.buffer!==h.buffer||h.byteOffset<p.byteOffset){h&&(i[++E]=h);continue}if({byteOffset:t,byteLength:o}=p,{byteOffset:e,byteLength:d}=h,t+o<e||e+d<t){h&&(i[++E]=h);continue}i[E]=new Uint8Array(p.buffer,t,e-t+d)}return i}function memcpy(n,i,t=0,e=i.byteLength){const o=n.byteLength,d=new Uint8Array(n.buffer,n.byteOffset,o),p=new Uint8Array(i.buffer,i.byteOffset,Math.min(e,o));return d.set(p,t),n}function joinUint8Arrays(n,i){const t=collapseContiguousByteRanges(n),e=t.reduce(($,M)=>$+M.byteLength,0);let o,d,p,h=0,y=-1;const E=Math.min(i||Number.POSITIVE_INFINITY,e);for(const $=t.length;++y<$;){if(o=t[y],d=o.subarray(0,Math.min(o.length,E-h)),E<=h+d.length){d.length<o.length?t[y]=o.subarray(d.length):d.length===o.length&&y++,p?memcpy(p,d,h):p=d;break}memcpy(p||(p=new Uint8Array(E)),d,h),h+=d.length}return[p||new Uint8Array(0),t.slice(y),e-(p?p.byteLength:0)]}function toArrayBufferView(n,i){let t=isIteratorResult(i)?i.value:i;return t instanceof n?n===Uint8Array?new n(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=encodeUtf8(t)),t instanceof ArrayBuffer?new n(t):t instanceof SharedArrayBuf?new n(t):isFlatbuffersByteBuffer(t)?toArrayBufferView(n,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new n(0):new n(t.buffer,t.byteOffset,t.byteLength/n.BYTES_PER_ELEMENT):n.from(t)):new n(0)}const toInt8Array=n=>toArrayBufferView(Int8Array,n),toInt16Array=n=>toArrayBufferView(Int16Array,n),toInt32Array=n=>toArrayBufferView(Int32Array,n),toBigInt64Array=n=>toArrayBufferView(BigInt64Array,n),toUint8Array=n=>toArrayBufferView(Uint8Array,n),toUint16Array=n=>toArrayBufferView(Uint16Array,n),toUint32Array=n=>toArrayBufferView(Uint32Array,n),toBigUint64Array=n=>toArrayBufferView(BigUint64Array,n),toFloat32Array=n=>toArrayBufferView(Float32Array,n),toFloat64Array=n=>toArrayBufferView(Float64Array,n),toUint8ClampedArray=n=>toArrayBufferView(Uint8ClampedArray,n),pump$1=n=>(n.next(),n);function*toArrayBufferViewIterator(n,i){const t=function*(o){yield o},e=typeof i=="string"||ArrayBuffer.isView(i)||i instanceof ArrayBuffer||i instanceof SharedArrayBuf?t(i):isIterable(i)?i:t(i);return yield*pump$1((function*(o){let d=null;do d=o.next(yield toArrayBufferView(n,d));while(!d.done)})(e[Symbol.iterator]())),new n}const toInt8ArrayIterator=n=>toArrayBufferViewIterator(Int8Array,n),toInt16ArrayIterator=n=>toArrayBufferViewIterator(Int16Array,n),toInt32ArrayIterator=n=>toArrayBufferViewIterator(Int32Array,n),toUint8ArrayIterator=n=>toArrayBufferViewIterator(Uint8Array,n),toUint16ArrayIterator=n=>toArrayBufferViewIterator(Uint16Array,n),toUint32ArrayIterator=n=>toArrayBufferViewIterator(Uint32Array,n),toFloat32ArrayIterator=n=>toArrayBufferViewIterator(Float32Array,n),toFloat64ArrayIterator=n=>toArrayBufferViewIterator(Float64Array,n),toUint8ClampedArrayIterator=n=>toArrayBufferViewIterator(Uint8ClampedArray,n);function toArrayBufferViewAsyncIterator(n,i){return __asyncGenerator(this,arguments,function*(){if(isProm
24ise(i))return yield __await(yield __await(yield*__asyncDelegator(__asyncValues(toArrayBufferViewAsyncIterator(n,yield __await(i))))));const e=function(p){return __asyncGenerator(this,arguments,function*(){yield yield __await(yield __await(p))})},o=function(p){return __asyncGenerator(this,arguments,function*(){yield __await(yield*__asyncDelegator(__asyncValues(pump$1((function*(h){let y=null;do y=h.next(yield y?.value);while(!y.done)})(p[Symbol.iterator]())))))})},d=typeof i=="string"||ArrayBuffer.isView(i)||i instanceof ArrayBuffer||i instanceof SharedArrayBuf?e(i):isIterable(i)?o(i):isAsyncIterable(i)?i:e(i);return yield __await(yield*__asyncDelegator(__asyncValues(pump$1((function(p){return __asyncGenerator(this,arguments,function*(){let h=null;do h=yield __await(p.next(yield yield __await(toArrayBufferView(n,h))));while(!h.done)})})(d[Symbol.asyncIterator]()))))),yield __await(new n)})}const toInt8ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int8Array,n),toInt16ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int16Array,n),toInt32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Int32Array,n),toUint8ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint8Array,n),toUint16ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint16Array,n),toUint32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint32Array,n),toFloat32ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Float32Array,n),toFloat64ArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Float64Array,n),toUint8ClampedArrayAsyncIterator=n=>toArrayBufferViewAsyncIterator(Uint8ClampedArray,n);function rebaseValueOffsets(n,i,t){if(n!==0){t=t.slice(0,i);for(let e=-1,o=t.length;++e<o;)t[e]+=n}return t.subarray(0,i)}function compareArrayLike(n,i){let t=0;const e=n.length;if(e!==i.length)return!1;if(e>0)do if(n[t]!==i[t])return!1;while(++t<e);return!0}const util_buffer_=Object.freeze(Object.defineProperty({__proto__:null,compareArrayLike,joinUint8Arrays,memcpy,rebaseValueOffsets,toArrayBufferView,toArrayBufferViewAsyncIterator,toArrayBufferViewIterator,toBigInt64Array,toBigUint64Array,toFloat32Array,toFloat32ArrayAsyncIterator,toFloat32ArrayIterator,toFloat64Array,toFloat64ArrayAsyncIterator,toFloat64ArrayIterator,toInt16Array,toInt16ArrayAsyncIterator,toInt16ArrayIterator,toInt32Array,toInt32ArrayAsyncIterator,toInt32ArrayIterator,toInt8Array,toInt8ArrayAsyncIterator,toInt8ArrayIterator,toUint16Array,toUint16ArrayAsyncIterator,toUint16ArrayIterator,toUint32Array,toUint32ArrayAsyncIterator,toUint32ArrayIterator,toUint8Array,toUint8ArrayAsyncIterator,toUint8ArrayIterator,toUint8ClampedArray,toUint8ClampedArrayAsyncIterator,toUint8ClampedArrayIterator},Symbol.toStringTag,{value:"Module"})),streamAdapters={fromIterable(n){return pump(fromIterable(n))},fromAsyncIterable(n){return pump(fromAsyncIterable(n))},fromDOMStream(n){return pump(fromDOMStream(n))},fromNodeStream(n){return pump(fromNodeStream(n))},toDOMStream(n,i){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(n,i){throw new Error('"toNodeStream" not available in this environment')}},pump=n=>(n.next(),n);function*fromIterable(n){let i,t=!1,e=[],o,d,p,h=0;function y(){return d==="peek"?joinUint8Arrays(e,p)[0]:([o,e,h]=joinUint8Arrays(e,p),o)}({cmd:d,size:p}=(yield null)||{cmd:"read",size:0});const E=toUint8ArrayIterator(n)[Symbol.iterator]();try{do if({done:i,value:o}=Number.isNaN(p-h)?E.next():E.next(p-h),!i&&o.byteLength>0&&(e.push(o),h+=o.byteLength),i||p<=h)do({cmd:d,size:p}=yield y());while(p<h);while(!i)}catch($){t=!0,typeof E.throw=="function"&&E.throw($)}finally{t===!1&&typeof E.return=="function"&&E.return(null)}return null}function fromAsyncIterable(n){return __asyncGenerator(this,arguments,function*(){let t,e=!1,o=[],d,p,h,y=0;function E(){return p==="peek"?joinUint8Arrays(o,h)[0]:([d,o,y]=joinUint8Arrays(o,h),d)}({cmd:p,size:h}=(yield yield __await(null))||{cmd:"read",size:0});const $=toUint8ArrayAsyncIterator(n)[Symbol.asyncIterator]();try{do if({done:t,value:d}=Number.isNaN(h-y)?yield __await($.next()):yield __await($.next(h-y)),!t&&d.byteLength>0&&(o.push(d),y+=d.byteLength),t||h<=y)do({cmd:p,size:h}=yield yield __await(E()));while(h<y);while(!t)}catch(M){e=!0,typeof $.throw=="function"&&(yield __await($.throw(M)))}finally{e===!1&&typeof $.return=="function"&&(yield __await($.return(new Uint8Array(0))))}return yield __await(null)})}function fromDOMStream(n){return __asyncGenerator(this,arguments,function*(){let t=!1,e=!1,o=[],d,p,h,y=0;function E(){return p==="peek"?joinUint8Arrays(o,h)[0]:([d,o,y]=joinUint8Arrays(o,h),d)}({cmd:p,size:h}=(yield yield __await(null))||{cmd:"read",size:0});const $=new AdaptiveByteReader(n);try{do if({done:t,value:d}=Number.isNaN(h-y)?yield __await($.read()):yield __await($.read(h-y)),!t&&d.byteLength>0&&(o.push(toUint8Array(d)),y+=d.byteLength),t||h<=y)do({cmd:p,size:h}=yield yield __await(E()));while(h<y);while(!t)}catch(M){e=!0,yield __await($.cancel(M))}finally{e===!1?yield __await($.cancel()):n.locked&&$.releaseLock()}return yield __await(null)})}class AdaptiveByteReader{constructor(i){this.source=i,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(i){return __awaiter(this,void 0,void 0,function*(){const{reader:t,source:e}=this;t&&(yield t.cancel(i).catch(()=>{})),e&&e.locked&&this.releaseLock()})}read(i){return __awaiter(this,void 0,void 0,function*(){if(i===0)return{done:this.reader==null,value:new Uint8Array(0)};const t=yield this.reader.read();return!t.done&&(t.value=toUint8Array(t)),t})}}const onEvent=(n,i)=>{const t=o=>e([i,o]);let e;return[i,t,new Promise(o=>(e=o)&&n.once(i,t))]};function fromNodeStream(n){return __asyncGenerator(this,arguments,function*(){const t=[];let e="error",o=!1,d=null,p,h,y=0,E=[],$;function M(){return p==="peek"?joinUint8Arrays(E,h)[0]:([$,E,y]=joinUint8Arrays(E,h),$)}if({cmd:p,size:h}=(yield yield __await(null))||{cmd:"read",size:0},n.isTTY)return yield yield __await(new Uint8Array(0)),yield __await(null);try{t[0]=onEvent(n,"end"),t[1]=onEvent(n,"error");do{if(t[2]=onEvent(n,"readable"),[e,d]=yield __await(Promise.race(t.map(Z=>Z[2]))),e==="error")break;if((o=e==="end")||(Number.isFinite(h-y)?($=toUint8Array(n.read(h-y)),$.byteLength<h-y&&($=toUint8Array(n.read()))):$=toUint8Array(n.read()),$.byteLength>0&&(E.push($),y+=$.byteLength)),o||h<=y)do({cmd:p,size:h}=yield yield __await(M()));while(h<y)}while(!o)}finally{yield __await(X(t,e==="error"?d:null))}return yield __await(null);function X(Z,ye){return $=E=null,new Promise((be,we)=>{for(const[xe,$e]of Z)n.off(xe,$e);try{const xe=n.destroy;xe&&xe.call(n,ye),ye=void 0}catch(xe){ye=xe||ye}finally{ye!=null?we(ye):be()}})}})}var MetadataVersion;(function(n){n[n.V1=0]="V1",n[n.V2=1]="V2",n[n.V3=2]="V3",n[n.V4=3]="V4",n[n.V5=4]="V5"})(MetadataVersion||(MetadataVersion={}));var UnionMode;(function(n){n[n.Sparse=0]="Sparse",n[n.Dense=1]="Dense"})(UnionMode||(UnionMode={}));var Precision;(function(n){n[n.HALF=0]="HALF",n[n.SINGLE=1]="SINGLE",n[n.DOUBLE=2]="DOUBLE"})(Precision||(Precision={}));var DateUnit;(function(n){n[n.DAY=0]="DAY",n[n.MILLISECOND=1]="MILLISECOND"}
24)(DateUnit||(DateUnit={}));var TimeUnit;(function(n){n[n.SECOND=0]="SECOND",n[n.MILLISECOND=1]="MILLISECOND",n[n.MICROSECOND=2]="MICROSECOND",n[n.NANOSECOND=3]="NANOSECOND"})(TimeUnit||(TimeUnit={}));var IntervalUnit;(function(n){n[n.YEAR_MONTH=0]="YEAR_MONTH",n[n.DAY_TIME=1]="DAY_TIME",n[n.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(IntervalUnit||(IntervalUnit={}));const SIZEOF_SHORT=2,SIZEOF_INT=4,FILE_IDENTIFIER_LENGTH=4,SIZE_PREFIX_LENGTH=4,int32=new Int32Array(2),float32=new Float32Array(int32.buffer),float64=new Float64Array(int32.buffer),isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Encoding;(function(n){n[n.UTF8_BYTES=1]="UTF8_BYTES",n[n.UTF16_STRING=2]="UTF16_STRING"})(Encoding||(Encoding={}));let ByteBuffer$2=class id{constructor(i){this.bytes_=i,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(i){return new id(new Uint8Array(i))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(i){this.position_=i}capacity(){return this.bytes_.length}readInt8(i){return this.readUint8(i)<<24>>24}readUint8(i){return this.bytes_[i]}readInt16(i){return this.readUint16(i)<<16>>16}readUint16(i){return this.bytes_[i]|this.bytes_[i+1]<<8}readInt32(i){return this.bytes_[i]|this.bytes_[i+1]<<8|this.bytes_[i+2]<<16|this.bytes_[i+3]<<24}readUint32(i){return this.readInt32(i)>>>0}readInt64(i){return BigInt.asIntN(64,BigInt(this.readUint32(i))+(BigInt(this.readUint32(i+4))<<BigInt(32)))}readUint64(i){return BigInt.asUintN(64,BigInt(this.readUint32(i))+(BigInt(this.readUint32(i+4))<<BigInt(32)))}readFloat32(i){return int32[0]=this.readInt32(i),float32[0]}readFloat64(i){return int32[isLittleEndian?0:1]=this.readInt32(i),int32[isLittleEndian?1:0]=this.readInt32(i+4),float64[0]}writeInt8(i,t){this.bytes_[i]=t}writeUint8(i,t){this.bytes_[i]=t}writeInt16(i,t){this.bytes_[i]=t,this.bytes_[i+1]=t>>8}writeUint16(i,t){this.bytes_[i]=t,this.bytes_[i+1]=t>>8}writeInt32(i,t){this.bytes_[i]=t,this.bytes_[i+1]=t>>8,this.bytes_[i+2]=t>>16,this.bytes_[i+3]=t>>24}writeUint32(i,t){this.bytes_[i]=t,this.bytes_[i+1]=t>>8,this.bytes_[i+2]=t>>16,this.bytes_[i+3]=t>>24}writeInt64(i,t){this.writeInt32(i,Number(BigInt.asIntN(32,t))),this.writeInt32(i+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(i,t){this.writeUint32(i,Number(BigInt.asUintN(32,t))),this.writeUint32(i+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(i,t){float32[0]=t,this.writeInt32(i,int32[0])}writeFloat64(i,t){float64[0]=t,this.writeInt32(i,int32[isLittleEndian?0:1]),this.writeInt32(i+4,int32[isLittleEndian?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+SIZEOF_INT+FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let i="";for(let t=0;t<FILE_IDENTIFIER_LENGTH;t++)i+=String.fromCharCode(this.readInt8(this.position_+SIZEOF_INT+t));return i}__offset(i,t){const e=i-this.readInt32(i);return t<this.readInt16(e)?this.readInt16(e+t):0}__union(i,t){return i.bb_pos=t+this.readInt32(t),i.bb=this,i}__string(i,t){i+=this.readInt32(i);const e=this.readInt32(i);i+=SIZEOF_INT;const o=this.bytes_.subarray(i,i+e);return t===Encoding.UTF8_BYTES?o:this.text_decoder_.decode(o)}__union_with_string(i,t){return typeof i=="string"?this.__string(t):this.__union(i,t)}__indirect(i){return i+this.readInt32(i)}__vector(i){return i+this.readInt32(i)+SIZEOF_INT}__vector_len(i){return this.readInt32(i+this.readInt32(i))}__has_identifier(i){if(i.length!=FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let t=0;t<FILE_IDENTIFIER_LENGTH;t++)if(i.charCodeAt(t)!=this.readInt8(this.position()+SIZEOF_INT+t))return!1;return!0}createScalarList(i,t){const e=[];for(let o=0;o<t;++o){const d=i(o);d!==null&&e.push(d)}return e}createObjList(i,t){const e=[];for(let o=0;o<t;++o){const d=i(o);d!==null&&e.push(d.unpack())}return e}},Builder$2=class od{constructor(i){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;i?t=i:t=1024,this.bb=ByteBuffer$2.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(i){this.force_defaults=i}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(i,t){i>this.minalign&&(this.minalign=i);const e=~(this.bb.capacity()-this.space+t)+1&i-1;for(;this.space<e+i+t;){const o=this.bb.capacity();this.bb=od.growByteBuffer(this.bb),this.space+=this.bb.capacity()-o}this.pad(e)}pad(i){for(let t=0;t<i;t++)this.bb.writeInt8(--this.space,0)}writeInt8(i){this.bb.writeInt8(this.space-=1,i)}writeInt16(i){this.bb.writeInt16(this.space-=2,i)}writeInt32(i){this.bb.writeInt32(this.space-=4,i)}writeInt64(i){this.bb.writeInt64(this.space-=8,i)}writeFloat32(i){this.bb.writeFloat32(this.space-=4,i)}writeFloat64(i){this.bb.writeFloat64(this.space-=8,i)}addInt8(i){this.prep(1,0),this.writeInt8(i)}addInt16(i){this.prep(2,0),this.writeInt16(i)}addInt32(i){this.prep(4,0),this.writeInt32(i)}addInt64(i){this.prep(8,0),this.writeInt64(i)}addFloat32(i){this.prep(4,0),this.writeFloat32(i)}addFloat64(i){this.prep(8,0),this.writeFloat64(i)}addFieldInt8(i,t,e){(this.force_defaults||t!=e)&&(this.addInt8(t),this.slot(i))}addFieldInt16(i,t,e){(this.force_defaults||t!=e)&&(this.addInt16(t),this.slot(i))}addFieldInt32(i,t,e){(this.force_defaults||t!=e)&&(this.addInt32(t),this.slot(i))}addFieldInt64(i,t,e){(this.force_defaults||t!==e)&&(this.addInt64(t),this.slot(i))}addFieldFloat32(i,t,e){(this.force_defaults||t!=e)&&(this.addFloat32(t),this.slot(i))}addFieldFloat64(i,t,e){(this.force_defaults||t!=e)&&(this.addFloat64(t),this.slot(i))}addFieldOffset(i,t,e){(this.force_defaults||t!=e)&&(this.addOffset(t),this.slot(i))}addFieldStruct(i,t,e){t!=e&&(this.nested(t),this.slot(i))}nested(i){if(i!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(i){this.vtable!==null&&(this.vtable[i]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(i){const t=i.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const e=t<<1,o=ByteBuffer$2.allocate(e);return o.setPosition(e-t),o.bytes().set(i.bytes(),e-t),o}addOffset(i){this.prep(SIZEOF_INT,0),this.writeInt32(this.offset()-i+SIZEOF_INT)}startObject(i){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=i;for(let t=0;t<i;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const i=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const e=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?i-this.vtable[t]:0);const o=2;this.addInt16(i-this.object_start);const d=(e+o)*SIZEOF_SHORT;this.addInt16(d);let p=0;const h=this.space;e:for(t=0;t<this.vtables.length;t++){const y=this.bb.capacity()-this.vtables[t];if(d==this.bb.readInt16(y)){for(let E=SIZEOF_SHORT;E<d;E+=SIZEOF_SHORT)if(this.bb.readInt16(h+E)!=this.bb.readInt16(y+E))continue e;p=this.vtables[t];break}}return p?(this.space=this.bb.capacity()-i,this.bb.writeInt32(this.space,p-i)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-i,this.offset()-i)),this.isNested=!1,i}finish(i,t,e){const o=e?SIZE_PREFIX_LENGTH:0;
24if(t){const d=t;if(this.prep(this.minalign,SIZEOF_INT+FILE_IDENTIFIER_LENGTH+o),d.length!=FILE_IDENTIFIER_LENGTH)throw new TypeError("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let p=FILE_IDENTIFIER_LENGTH-1;p>=0;p--)this.writeInt8(d.charCodeAt(p))}this.prep(this.minalign,SIZEOF_INT+o),this.addOffset(i),o&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(i,t){this.finish(i,t,!0)}requiredField(i,t){const e=this.bb.capacity()-i,o=e-this.bb.readInt32(e);if(!(t<this.bb.readInt16(o)&&this.bb.readInt16(o+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(i,t,e){this.notNested(),this.vector_num_elems=t,this.prep(SIZEOF_INT,i*t),this.prep(e,i*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(i){if(!i)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(i))return this.string_maps.get(i);const t=this.createString(i);return this.string_maps.set(i,t),t}createString(i){if(i==null)return 0;let t;return i instanceof Uint8Array?t=i:t=this.text_encoder.encode(i),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector()}createByteVector(i){return i==null?0:(this.startVector(1,i.length,1),this.bb.setPosition(this.space-=i.length),this.bb.bytes().set(i,this.space),this.endVector())}createObjectOffset(i){return i===null?0:typeof i=="string"?this.createString(i):i.pack(this)}createObjectOffsetList(i){const t=[];for(let e=0;e<i.length;++e){const o=i[e];if(o!==null)t.push(this.createObjectOffset(o));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(i,t){return t(this,i.length),this.createObjectOffsetList(i.slice().reverse()),this.endVector()}};var BodyCompressionMethod;(function(n){n[n.BUFFER=0]="BUFFER"})(BodyCompressionMethod||(BodyCompressionMethod={}));var CompressionType;(function(n){n[n.LZ4_FRAME=0]="LZ4_FRAME",n[n.ZSTD=1]="ZSTD"})(CompressionType||(CompressionType={}));let BodyCompression$1=class si{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsBodyCompression(i,t){return(t||new si).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBodyCompression(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new si).__init(i.readInt32(i.position())+i.position(),i)}codec(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt8(this.bb_pos+i):CompressionType.LZ4_FRAME}method(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.readInt8(this.bb_pos+i):BodyCompressionMethod.BUFFER}static startBodyCompression(i){i.startObject(2)}static addCodec(i,t){i.addFieldInt8(0,t,CompressionType.LZ4_FRAME)}static addMethod(i,t){i.addFieldInt8(1,t,BodyCompressionMethod.BUFFER)}static endBodyCompression(i){return i.endObject()}static createBodyCompression(i,t,e){return si.startBodyCompression(i),si.addCodec(i,t),si.addMethod(i,e),si.endBodyCompression(i)}},Buffer$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(i,t,e){return i.prep(8,16),i.writeInt64(BigInt(e??0)),i.writeInt64(BigInt(t??0)),i.offset()}},FieldNode$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(i,t,e){return i.prep(8,16),i.writeInt64(BigInt(e??0)),i.writeInt64(BigInt(t??0)),i.offset()}},RecordBatch$2=class Ss{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsRecordBatch(i,t){return(t||new Ss).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsRecordBatch(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Ss).__init(i.readInt32(i.position())+i.position(),i)}length(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt64(this.bb_pos+i):BigInt("0")}nodes(i,t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new FieldNode$1).__init(this.bb.__vector(this.bb_pos+e)+i*16,this.bb):null}nodesLength(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.__vector_len(this.bb_pos+i):0}buffers(i,t){const e=this.bb.__offset(this.bb_pos,8);return e?(t||new Buffer$1).__init(this.bb.__vector(this.bb_pos+e)+i*16,this.bb):null}buffersLength(){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.__vector_len(this.bb_pos+i):0}compression(i){const t=this.bb.__offset(this.bb_pos,10);
24return t?(i||new BodyCompression$1).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(i){i.startObject(4)}static addLength(i,t){i.addFieldInt64(0,t,BigInt("0"))}static addNodes(i,t){i.addFieldOffset(1,t,0)}static startNodesVector(i,t){i.startVector(16,t,8)}static addBuffers(i,t){i.addFieldOffset(2,t,0)}static startBuffersVector(i,t){i.startVector(16,t,8)}static addCompression(i,t){i.addFieldOffset(3,t,0)}static endRecordBatch(i){return i.endObject()}},DictionaryBatch$1=class ws{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsDictionaryBatch(i,t){return(t||new ws).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDictionaryBatch(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new ws).__init(i.readInt32(i.position())+i.position(),i)}id(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt64(this.bb_pos+i):BigInt("0")}data(i){const t=this.bb.__offset(this.bb_pos,6);return t?(i||new RecordBatch$2).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const i=this.bb.__offset(this.bb_pos,8);return i?!!this.bb.readInt8(this.bb_pos+i):!1}static startDictionaryBatch(i){i.startObject(3)}static addId(i,t){i.addFieldInt64(0,t,BigInt("0"))}static addData(i,t){i.addFieldOffset(1,t,0)}static addIsDelta(i,t){i.addFieldInt8(2,+t,0)}static endDictionaryBatch(i){return i.endObject()}};var Endianness;(function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"})(Endianness||(Endianness={}));var DictionaryKind;(function(n){n[n.DenseArray=0]="DenseArray"})(DictionaryKind||(DictionaryKind={}));class Int{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsInt(i,t){return(t||new Int).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsInt(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Int).__init(i.readInt32(i.position())+i.position(),i)}bitWidth(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt32(this.bb_pos+i):0}isSigned(){const i=this.bb.__offset(this.bb_pos,6);return i?!!this.bb.readInt8(this.bb_pos+i):!1}static startInt(i){i.startObject(2)}static addBitWidth(i,t){i.addFieldInt32(0,t,0)}static addIsSigned(i,t){i.addFieldInt8(1,+t,0)}static endInt(i){return i.endObject()}static createInt(i,t,e){return Int.startInt(i),Int.addBitWidth(i,t),Int.addIsSigned(i,e),Int.endInt(i)}}class DictionaryEncoding{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsDictionaryEncoding(i,t){return(t||new DictionaryEncoding).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDictionaryEncoding(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new DictionaryEncoding).__init(i.readInt32(i.position())+i.position(),i)}id(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt64(this.bb_pos+i):BigInt("0")}indexType(i){const t=this.bb.__offset(this.bb_pos,6);return t?(i||new Int).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const i=this.bb.__offset(this.bb_pos,8);return i?!!this.bb.readInt8(this.bb_pos+i):!1}dictionaryKind(){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.readInt16(this.bb_pos+i):DictionaryKind.DenseArray}static startDictionaryEncoding(i){i.startObject(4)}static addId(i,t){i.addFieldInt64(0,t,BigInt("0"))}static addIndexType(i,t){i.addFieldOffset(1,t,0)}static addIsOrdered(i,t){i.addFieldInt8(2,+t,0)}static addDictionaryKind(i,t){i.addFieldInt16(3,t,DictionaryKind.DenseArray)}static endDictionaryEncoding(i){return i.endObject()}}class KeyValue{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsKeyValue(i,t){return(t||new KeyValue).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsKeyValue(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new KeyValue).__init(i.readInt32(i.position())+i.position(),i)}key(i){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,i):null}value(i){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,i):null}static startKeyValue(i){i.startObject(2)}static addKey(i,t){i.addFieldOffset(0,t,0)}static addValue(i,t){i.addFieldOffset(1,t,0)}static endKeyValue(i){return i.endObject()}static createKeyValue(i,t,e){return KeyValue.startKeyValue(i),KeyValue.addKey(i,t),KeyValue.addValue(i,e),KeyValue.endKeyValue(i)}}let Binary$1=class Oo{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsBinary(i,t){return(t||new Oo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBinary(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Oo).__init(i.readInt32(i.position())+i.position(),i)}static startBinary(i){i.startObject(0)}static endBinary(i){return i.endObject()}static createBinary(i){return Oo.startBinary(i),Oo.endBinary(i)}},Bool$1=class To{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsBool(i,t){return(t||new To).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBool(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new To).__init(i.readInt32(i.position())+i.position(),i)}static startBool(i){i.startObject(0)}static endBool(i){return i.endObject()}static createBool(i){return To.startBool(i),To.endBool(i)}},Date$1=class Ri{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsDate(i,t){return(t||new Ri).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDate(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Ri).__init(i.readInt32(i.position())+i.position(),i)}unit(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):DateUnit.MILLISECOND}static startDate(i){i.startObject(1)}static addUnit(i,t){i.addFieldInt16(0,t,DateUnit.MILLISECOND)}static endDate(i){return i.endObject()}static createDate(i,t){return Ri.startDate(i),Ri.addUnit(i,t),Ri.endDate(i)}},Decimal$1=class Gr{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsDecimal(i,t){return(t||new Gr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDecimal(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Gr).__init(i.readInt32(i.position())+i.position(),i)}precision(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt32(this.bb_pos+i):0}scale(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.readInt32(this.bb_pos+i):0}bitWidth(){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.readInt32(this.bb_pos+i):128}static startDecimal(i){i.startObject(3)}static addPrecision(i,t){i.addFieldInt32(0,t,0)}static addScale(i,t){i.addFieldInt32(1,t,0)}static addBitWidth(i,t){i.addFieldInt32(2,t,128)}static endDecimal(i){return i.endObject()}static createDecimal(i,t,e,o){return Gr.startDecimal(i),Gr.addPrecision(i,t),Gr.addScale(i,e),Gr.addBitWidth(i,o),Gr.endDecimal(i)}},Duration$1=class Ni{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsDuration(i,t){return(t||new Ni).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDuration(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Ni).__init(i.readInt32(i.position())+i.position(),i)}unit(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):TimeUnit.MILLISECOND}static startDuration(i){i.startObject(1)}static addUnit(i,t){i.addFieldInt16(0,t,TimeUnit.MILLISECOND)}static endDuration(i){return i.endObject()}static createDuration(i,t){return Ni.startDuration(i),Ni.addUnit(i,t),Ni.endDuration(i)}},FixedSizeBinary$1=class Fi{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsFixedSizeBinary(i,t){return(t||new Fi).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFixedSizeBinary(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Fi).__init(i.readInt32(i.position())+i.position(),i)}byteWidth(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt32(this.bb_pos+i):0}static startFixedSizeBinary(i){i.startObject(1)}static addByteWidth(i,t){i.addFieldInt32(0,t,0)}static endFixedSizeBinary(i){return i.endObject()}static createFixedSizeBinary(i,t){return Fi.startFixedSizeBinary(i),Fi.addByteWidth(i,t),Fi.endFixedSizeBinary(i)}},FixedSizeList$1=class Li{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsFixedSizeList(i,t){return(t||new Li).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFixedSizeList(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Li).__init(i.readInt32(i.position())+i.position(),i)}listSize(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt32(this.bb_pos+i):0}static startFixedSizeList(i){i.startObject(1)}static addListSize(i,t){i.addFieldInt32(0,t,0)}static endFixedSizeList(i){return i.endObject()}static createFixedSizeList(i,t){return Li.startFixedSizeList(i),Li.addListSize(i,t),Li.endFixedSizeList(i)}};class FloatingPoint{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsFloatingPoint(i,t){return(t||new FloatingPoint).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFloatingPoint(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new FloatingPoint).__init(i.readInt32(i.position())+i.position(),i)}precision(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):Precision.HALF}static startFloatingPoint(i){i.startObject(1)}static addPrecision(i,t){i.addFieldInt16(0,t,Precision.HALF)}static endFloatingPoint(i){return i.endObject()}static createFloatingPoint(i,t){return FloatingPoint.startFloatingPoint(i),FloatingPoint.addPrecision(i,t),FloatingPoint.endFloatingPoint(i)}}class Interval{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsInterval(i,t){return(t||new Interval).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsInterval(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Interval).__init(i.readInt32(i.position())+i.position(),i)}unit(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):IntervalUnit.YEAR_MONTH}static startInterval(i){i.startObject(1)}static addUnit(i,t){i.addFieldInt16(0,t,IntervalUnit.YEAR_MONTH)}static endInterval(i){return i.endObject()}static createInterval(i,t){return Interval.startInterval(i),Interval.addUnit(i,t),Interval.endInterval(i)}}let LargeBinary$1=class Co{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsLargeBinary(i,t){return(t||new Co).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsLargeBinary(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Co).__init(i.readInt32(i.position())+i.position(),i)}static startLargeBinary(i){i.startObject(0)}static endLargeBinary(i){return i.endObject()}static createLargeBinary(i){return Co.startLargeBinary(i),Co.endLargeBinary(i)}},LargeUtf8$1=class xo{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsLargeUtf8(i,t){return(t||new xo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsLargeUtf8(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new xo).__init(i.readInt32(i.position())+i.position(),i)}static startLargeUtf8(i){i.startObject(0)}static endLargeUtf8(i){return i.endObject()}static createLargeUtf8(i){return xo.startLargeUtf8(i),xo.endLargeUtf8(i)}},List$1=class Eo{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsList(i,t){return(t||new Eo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsList(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Eo).__init(i.readInt32(i.position())+i.position(),i)}static startList(i){i.startObject(0)}static endList(i){return i.endObject()}static createList(i){return Eo.startList(i),Eo.endList(i)}},Map$1=class Mi{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsMap(i,t){return(t||new Mi).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsMap(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Mi).__init(i.readInt32(i.position())+i.position(),i)}keysSorted(){const i=this.bb.__offset(this.bb_pos,4);return i?!!this.bb.readInt8(this.bb_pos+i):!1}
24static startMap(i){i.startObject(1)}static addKeysSorted(i,t){i.addFieldInt8(0,+t,0)}static endMap(i){return i.endObject()}static createMap(i,t){return Mi.startMap(i),Mi.addKeysSorted(i,t),Mi.endMap(i)}},Null$1=class ko{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsNull(i,t){return(t||new ko).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsNull(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new ko).__init(i.readInt32(i.position())+i.position(),i)}static startNull(i){i.startObject(0)}static endNull(i){return i.endObject()}static createNull(i){return ko.startNull(i),ko.endNull(i)}};class Struct_{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsStruct_(i,t){return(t||new Struct_).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsStruct_(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Struct_).__init(i.readInt32(i.position())+i.position(),i)}static startStruct_(i){i.startObject(0)}static endStruct_(i){return i.endObject()}static createStruct_(i){return Struct_.startStruct_(i),Struct_.endStruct_(i)}}class Time{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsTime(i,t){return(t||new Time).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsTime(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Time).__init(i.readInt32(i.position())+i.position(),i)}unit(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):TimeUnit.MILLISECOND}bitWidth(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.readInt32(this.bb_pos+i):32}static startTime(i){i.startObject(2)}static addUnit(i,t){i.addFieldInt16(0,t,TimeUnit.MILLISECOND)}static addBitWidth(i,t){i.addFieldInt32(1,t,32)}static endTime(i){return i.endObject()}static createTime(i,t,e){return Time.startTime(i),Time.addUnit(i,t),Time.addBitWidth(i,e),Time.endTime(i)}}class Timestamp{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsTimestamp(i,t){return(t||new Timestamp).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsTimestamp(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Timestamp).__init(i.readInt32(i.position())+i.position(),i)}unit(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):TimeUnit.SECOND}timezone(i){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,i):null}static startTimestamp(i){i.startObject(2)}static addUnit(i,t){i.addFieldInt16(0,t,TimeUnit.SECOND)}static addTimezone(i,t){i.addFieldOffset(1,t,0)}static endTimestamp(i){return i.endObject()}static createTimestamp(i,t,e){return Timestamp.startTimestamp(i),Timestamp.addUnit(i,t),Timestamp.addTimezone(i,e),Timestamp.endTimestamp(i)}}class Union{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsUnion(i,t){return(t||new Union).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsUnion(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Union).__init(i.readInt32(i.position())+i.position(),i)}mode(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):UnionMode.Sparse}typeIds(i){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+i*4):0}typeIdsLength(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.__vector_len(this.bb_pos+i):0}typeIdsArray(){const i=this.bb.__offset(this.bb_pos,6);return i?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+i),this.bb.__vector_len(this.bb_pos+i)):null}static startUnion(i){i.startObject(2)}static addMode(i,t){i.addFieldInt16(0,t,UnionMode.Sparse)}static addTypeIds(i,t){i.addFieldOffset(1,t,0)}static createTypeIdsVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addInt32(t[e]);return i.endVector()}static startTypeIdsVector(i,t){i.startVector(4,t,4)}static endUnion(i){return i.endObject()}static createUnion(i,t,e){return Union.startUnion(i),Union.addMode(i,t),Union.addTypeIds(i,e),Union.endUnion(i)}}let Utf8$1=class $o{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsUtf8(i,t){return(t||new $o).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsUtf8(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new $o).__init(i.readInt32(i.position())+i.position(),i)}static startUtf8(i){i.startObject(0)}static endUtf8(i){return i.endObject()}static createUtf8(i){return $o.startUtf8(i),$o.endUtf8(i)}};var Type$1;
24(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.FloatingPoint=3]="FloatingPoint",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct_=13]="Struct_",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.LargeList=21]="LargeList",n[n.RunEndEncoded=22]="RunEndEncoded"})(Type$1||(Type$1={}));let Field$1=class La{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsField(i,t){return(t||new La).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsField(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new La).__init(i.readInt32(i.position())+i.position(),i)}name(i){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,i):null}nullable(){const i=this.bb.__offset(this.bb_pos,6);return i?!!this.bb.readInt8(this.bb_pos+i):!1}typeType(){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.readUint8(this.bb_pos+i):Type$1.NONE}type(i){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(i,this.bb_pos+t):null}dictionary(i){const t=this.bb.__offset(this.bb_pos,12);return t?(i||new DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(i,t){const e=this.bb.__offset(this.bb_pos,14);return e?(t||new La).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}childrenLength(){const i=this.bb.__offset(this.bb_pos,14);return i?this.bb.__vector_len(this.bb_pos+i):0}customMetadata(i,t){const e=this.bb.__offset(this.bb_pos,16);return e?(t||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}customMetadataLength(){const i=this.bb.__offset(this.bb_pos,16);return i?this.bb.__vector_len(this.bb_pos+i):0}static startField(i){i.startObject(7)}static addName(i,t){i.addFieldOffset(0,t,0)}static addNullable(i,t){i.addFieldInt8(1,+t,0)}static addTypeType(i,t){i.addFieldInt8(2,t,Type$1.NONE)}static addType(i,t){i.addFieldOffset(3,t,0)}static addDictionary(i,t){i.addFieldOffset(4,t,0)}static addChildren(i,t){i.addFieldOffset(5,t,0)}static createChildrenVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startChildrenVector(i,t){i.startVector(4,t,4)}static addCustomMetadata(i,t){i.addFieldOffset(6,t,0)}static createCustomMetadataVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startCustomMetadataVector(i,t){i.startVector(4,t,4)}static endField(i){return i.endObject()}},Schema$2=class xr{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsSchema(i,t){return(t||new xr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsSchema(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new xr).__init(i.readInt32(i.position())+i.position(),i)}endianness(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):Endianness.Little}fields(i,t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new Field$1).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}fieldsLength(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.__vector_len(this.bb_pos+i):0}customMetadata(i,t){const e=this.bb.__offset(this.bb_pos,8);return e?(t||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}customMetadataLength(){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.__vector_len(this.bb_pos+i):0}features(i){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+i*8):BigInt(0)}featuresLength(){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.__vector_len(this.bb_pos+i):0}static startSchema(i){i.startObject(4)}static addEndianness(i,t){i.addFieldInt16(0,t,Endianness.Little)}static addFields(i,t){i.addFieldOffset(1,t,0)}static createFieldsVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startFieldsVector(i,t){i.startVector(4,t,4)}static addCustomMetadata(i,t){i.addFieldOffset(2,t,0)}static createCustomMetadataVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startCustomMetadataVector(i,t){i.startVector(4,t,4)}static addFeatures(i,t){i.addFieldOffset(3,t,0)}static createFeaturesVector(i,t){i.startVector(8,t.length,8);for(let e=t.length-1;e>=0;e--)i.addInt64(t[e]);return i.endVector()}static startFeaturesVector(i,t){i.startVector(8,t,8)}static endSchema(i){return i.endObject()}static finishSchemaBuffer(i,t){i.finish(t)}static finishSizePrefixedSchemaBuffer(i,t){i.finish(t,void 0,!0)}static createSchema(i,t,e,o,d){return xr.startSchema(i),xr.addEndianness(i,t),xr.addFields(i,e),xr.addCustomMetadata(i,o),xr.addFeatures(i,d),xr.endSchema(i)}};var MessageHeader;
24(function(n){n[n.NONE=0]="NONE",n[n.Schema=1]="Schema",n[n.DictionaryBatch=2]="DictionaryBatch",n[n.RecordBatch=3]="RecordBatch",n[n.Tensor=4]="Tensor",n[n.SparseTensor=5]="SparseTensor"})(MessageHeader||(MessageHeader={}));var Type;(function(n){n[n.NONE=0]="NONE",n[n.Null=1]="Null",n[n.Int=2]="Int",n[n.Float=3]="Float",n[n.Binary=4]="Binary",n[n.Utf8=5]="Utf8",n[n.Bool=6]="Bool",n[n.Decimal=7]="Decimal",n[n.Date=8]="Date",n[n.Time=9]="Time",n[n.Timestamp=10]="Timestamp",n[n.Interval=11]="Interval",n[n.List=12]="List",n[n.Struct=13]="Struct",n[n.Union=14]="Union",n[n.FixedSizeBinary=15]="FixedSizeBinary",n[n.FixedSizeList=16]="FixedSizeList",n[n.Map=17]="Map",n[n.Duration=18]="Duration",n[n.LargeBinary=19]="LargeBinary",n[n.LargeUtf8=20]="LargeUtf8",n[n.Dictionary=-1]="Dictionary",n[n.Int8=-2]="Int8",n[n.Int16=-3]="Int16",n[n.Int32=-4]="Int32",n[n.Int64=-5]="Int64",n[n.Uint8=-6]="Uint8",n[n.Uint16=-7]="Uint16",n[n.Uint32=-8]="Uint32",n[n.Uint64=-9]="Uint64",n[n.Float16=-10]="Float16",n[n.Float32=-11]="Float32",n[n.Float64=-12]="Float64",n[n.DateDay=-13]="DateDay",n[n.DateMillisecond=-14]="DateMillisecond",n[n.TimestampSecond=-15]="TimestampSecond",n[n.TimestampMillisecond=-16]="TimestampMillisecond",n[n.TimestampMicrosecond=-17]="TimestampMicrosecond",n[n.TimestampNanosecond=-18]="TimestampNanosecond",n[n.TimeSecond=-19]="TimeSecond",n[n.TimeMillisecond=-20]="TimeMillisecond",n[n.TimeMicrosecond=-21]="TimeMicrosecond",n[n.TimeNanosecond=-22]="TimeNanosecond",n[n.DenseUnion=-23]="DenseUnion",n[n.SparseUnion=-24]="SparseUnion",n[n.IntervalDayTime=-25]="IntervalDayTime",n[n.IntervalYearMonth=-26]="IntervalYearMonth",n[n.DurationSecond=-27]="DurationSecond",n[n.DurationMillisecond=-28]="DurationMillisecond",n[n.DurationMicrosecond=-29]="DurationMicrosecond",n[n.DurationNanosecond=-30]="DurationNanosecond",n[n.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(Type||(Type={}));var BufferType;(function(n){n[n.OFFSET=0]="OFFSET",n[n.DATA=1]="DATA",n[n.VALIDITY=2]="VALIDITY",n[n.TYPE=3]="TYPE"})(BufferType||(BufferType={}));const undf=void 0;function valueToString(n){if(n===null)return"null";if(n===undf)return"undefined";switch(typeof n){case"number":return`${n}`;case"bigint":return`${n}`;case"string":return`"${n}"`}return typeof n[Symbol.toPrimitive]=="function"?n[Symbol.toPrimitive]("string"):ArrayBuffer.isView(n)?n instanceof BigInt64Array||n instanceof BigUint64Array?`[${[...n].map(i=>valueToString(i))}]`:`[${n}]`:ArrayBuffer.isView(n)?`[${n}]`:JSON.stringify(n,(i,t)=>typeof t=="bigint"?`${t}`:t)}const util_pretty_=Object.freeze(Object.defineProperty({__proto__:null,valueToString},Symbol.toStringTag,{value:"Module"}));function bigIntToNumber(n){if(typeof n=="bigint"&&(n<Number.MIN_SAFE_INTEGER||n>Number.MAX_SAFE_INTEGER))throw new TypeError(`${n} is not safe to convert to a number.`);return Number(n)}function divideBigInts(n,i){return bigIntToNumber(n/i)+bigIntToNumber(n%i)/bigIntToNumber(i)}const isArrowBigNumSymbol=Symbol.for("isArrowBigNum");function BigNum(n,...i){return i.length===0?Object.setPrototypeOf(toArrayBufferView(this.TypedArray,n),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(n,...i),this.constructor.prototype)}BigNum.prototype[isArrowBigNumSymbol]=!0;BigNum.prototype.toJSON=function(){return`"${bigNumToString(this)}"`};BigNum.prototype.valueOf=function(n){return bigNumToNumber(this,n)};BigNum.prototype.toString=function(){return bigNumToString(this)};BigNum.prototype[Symbol.toPrimitive]=function(n="default"){switch(n){case"number":return bigNumToNumber(this);case"string":return bigNumToString(this);case"default":return bigNumToBigInt(this)}return bigNumToString(this)};function SignedBigNum(...n){return BigNum.apply(this,n)}function UnsignedBigNum(...n){return BigNum.apply(this,n)}function DecimalBigNum(...n){return BigNum.apply(this,n)}Object.setPrototypeOf(SignedBigNum.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(UnsignedBigNum.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(DecimalBigNum.prototype,Object.create(Uint32Array.prototype));Object.assign(SignedBigNum.prototype,BigNum.prototype,{constructor:SignedBigNum,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(UnsignedBigNum.prototype,BigNum.prototype,{constructor:UnsignedBigNum,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(DecimalBigNum.prototype,BigNum.prototype,{constructor:DecimalBigNum,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const TWO_TO_THE_64=BigInt(4294967296)*BigInt(4294967296),TWO_TO_THE_64_MINUS_1=TWO_TO_THE_64-BigInt(1);function bigNumToNumber(n,i){const{buffer:t,byteOffset:e,byteLength:o,signed:d}=n,p=new BigUint64Array(t,e,o/8),h=d&&p.at(-1)&BigInt(1)<<BigInt(63);let y=BigInt(0),E=0;if(h){for(const $ of p)y|=($^TWO_TO_THE_64_MINUS_1)*(BigInt(1)<<BigInt(64*E++));y*=BigInt(-1),y-=BigInt(1)}else for(const $ of p)y|=$*(BigInt(1)<<BigInt(64*E++));if(typeof i=="number"&&i>0){const $=BigInt("1".padEnd(i+1,"0")),M=y/$,X=h?-(y%$):y%$,Z=bigIntToNumber(M),ye=`${X}`.padStart(i,"0");return+`${h&&Z===0?"-":""}${Z}.${ye}`}return bigIntToNumber(y)}function bigNumToString(n){if(n.byteLength===8)return`${new n.BigIntArray(n.buffer,n.byteOffset,1)[0]}`;if(!n.signed)return unsignedBigNumToString(n);let i=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);if(new Int16Array([i.at(-1)])[0]>=0)return unsignedBigNumToString(n);i=i.slice();let e=1;for(let d=0;d<i.length;d++){const p=i[d],h=~p+e;i[d]=h,e&=p===0?1:0}return`-${unsignedBigNumToString(i)}`}function bigNumToBigInt(n){return n.byteLength===8?new n.BigIntArray(n.buffer,n.byteOffset,1)[0]:bigNumToString(n)}function unsignedBigNumToString(n){let i="";const t=new Uint32Array(2);let e=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);const o=new Uint32Array((e=new Uint16Array(e).reverse()).buffer);let d=-1;const p=e.length-1;do{for(t[0]=e[d=0];d<p;)e[d++]=t[1]=t[0]/10,t[0]=(t[0]-t[1]*10<<16)+e[d];e[d]=t[1]=t[0]/10,t[0]=t[0]-t[1]*10,i=`${t[0]}${i}`}while(o[0]||o[1]||o[2]||o[3]);return i??"0"}class BN{static new(i,t){switch(t){case!0:return new SignedBigNum(i);case!1:return new UnsignedBigNum(i)}switch(i.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new SignedBigNum(i)}return i.byteLength===16?new DecimalBigNum(i):new UnsignedBigNum(i)}static signed(i){return new SignedBigNum(i)}static unsigned(i){return new UnsignedBigNum(i)}static decimal(i){return new DecimalBigNum(i)}constructor(i,t){return BN.new(i,t)}}const util_bn_=Object.freeze(Object.defineProperty({__proto__:null,BN,bigNumToBigInt,bigNumToNumber,bigNumToString,isArrowBigNumSymbol},Symbol.toStringTag,{value:"Module"}));var _a$4,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o,_p,_q,_r,_s,_t,_u,_v,_w,_x;class DataType{static isNull(i){return i?.typeId===Type.Null}static isInt(i){return i?.typeId===Type.Int}static isFloat(i){return i?.typeId===Type.Float}static isBinary(i){return i?.typeId===Type.Binary}static isLargeBinary(i){return i?.typeId===Type.LargeBinary}static isUtf8(i){return i?.typeId===Type.Utf8}static isLargeUtf8(i){return i?.typeId===Type.LargeUtf8}static isBool(i){return i?.typeId===Type.Bool}static isDecimal(i){return i?.typeId===Type.Decimal}static isDate(i){return i?.typeId===Type.Date}static isTime(i){return i?.typeId===Type.Time}static isTimestamp(i){return i?.typeId===Type.Timestamp}static isInterval(i){return i?.typeId===Type.Interval}static isDuration(i){return i?.typeId===Type.Duration}static isList(i){return i?.typeId===Type.List}static isStruct(i){return i?.typeId===Type.Struct}static isUnion(i){return i?.typeId===Type.Union}static isFixedSizeBinary(i){return i?.typeId===Type.FixedSizeBinary}static isFixedSizeList(i){return i?.typeId===Type.FixedSizeList}static isMap(i){return i?.typeId===Type.Map}static isDictionary(i){return i?.typeId===Type.Dictionary}static isDenseUnion(i){return DataType.isUnion(i)&&i.mode===UnionMode.Dense}static isSparseUnion(i){return DataType.isUnion(i)&&i.mode===UnionMode.Sparse}constructor(i){this.typeId=i}}_a$4=Symbol.toStringTag;DataType[_a$4]=(n=>(n.children=null,n.ArrayType=Array,n.OffsetArrayType=Int32Array,n[Symbol.toStringTag]="DataType"))(DataType.prototype);class Null extends DataType{constructor(){super(Type.Null)}toString(){return"Null"}}_b=Symbol.toStringTag;Null[_b]=(n=>n[Symbol.toStringTag]="Null")(Null.prototype);class Int_ extends DataType{constructor(i,t){super(Type.Int),this.isSigned=i,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}_c=Symbol.toStringTag;Int_[_c]=(n=>(n.isSigned=null,n.bitWidth=null,n[Symbol.toStringTag]="Int"))(Int_.prototype);class Int32 extends Int_{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Int32.prototype,"ArrayType",{value:Int32Array});class Float extends DataType{constructor(i){super(Type.Float),this.precision=i}get ArrayType(){switch(this.precision){case Precision.HALF:return Uint16Array;
24case Precision.SINGLE:return Float32Array;case Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}_d=Symbol.toStringTag;Float[_d]=(n=>(n.precision=null,n[Symbol.toStringTag]="Float"))(Float.prototype);class Binary extends DataType{constructor(){super(Type.Binary)}toString(){return"Binary"}}_e=Symbol.toStringTag;Binary[_e]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Binary"))(Binary.prototype);class LargeBinary extends DataType{constructor(){super(Type.LargeBinary)}toString(){return"LargeBinary"}}_f=Symbol.toStringTag;LargeBinary[_f]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeBinary"))(LargeBinary.prototype);class Utf8 extends DataType{constructor(){super(Type.Utf8)}toString(){return"Utf8"}}_g=Symbol.toStringTag;Utf8[_g]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Utf8"))(Utf8.prototype);class LargeUtf8 extends DataType{constructor(){super(Type.LargeUtf8)}toString(){return"LargeUtf8"}}_h=Symbol.toStringTag;LargeUtf8[_h]=(n=>(n.ArrayType=Uint8Array,n.OffsetArrayType=BigInt64Array,n[Symbol.toStringTag]="LargeUtf8"))(LargeUtf8.prototype);class Bool extends DataType{constructor(){super(Type.Bool)}toString(){return"Bool"}}_j=Symbol.toStringTag;Bool[_j]=(n=>(n.ArrayType=Uint8Array,n[Symbol.toStringTag]="Bool"))(Bool.prototype);class Decimal extends DataType{constructor(i,t,e=128){super(Type.Decimal),this.scale=i,this.precision=t,this.bitWidth=e}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}_k=Symbol.toStringTag;Decimal[_k]=(n=>(n.scale=null,n.precision=null,n.ArrayType=Uint32Array,n[Symbol.toStringTag]="Decimal"))(Decimal.prototype);class Date_ extends DataType{constructor(i){super(Type.Date),this.unit=i}toString(){return`Date${(this.unit+1)*32}<${DateUnit[this.unit]}>`}get ArrayType(){return this.unit===DateUnit.DAY?Int32Array:BigInt64Array}}_l=Symbol.toStringTag;Date_[_l]=(n=>(n.unit=null,n[Symbol.toStringTag]="Date"))(Date_.prototype);class Time_ extends DataType{constructor(i,t){super(Type.Time),this.unit=i,this.bitWidth=t}toString(){return`Time${this.bitWidth}<${TimeUnit[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}_m=Symbol.toStringTag;Time_[_m]=(n=>(n.unit=null,n.bitWidth=null,n[Symbol.toStringTag]="Time"))(Time_.prototype);class Timestamp_ extends DataType{constructor(i,t){super(Type.Timestamp),this.unit=i,this.timezone=t}toString(){return`Timestamp<${TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}_o=Symbol.toStringTag;Timestamp_[_o]=(n=>(n.unit=null,n.timezone=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Timestamp"))(Timestamp_.prototype);class Interval_ extends DataType{constructor(i){super(Type.Interval),this.unit=i}toString(){return`Interval<${IntervalUnit[this.unit]}>`}}_p=Symbol.toStringTag;Interval_[_p]=(n=>(n.unit=null,n.ArrayType=Int32Array,n[Symbol.toStringTag]="Interval"))(Interval_.prototype);class Duration extends DataType{constructor(i){super(Type.Duration),this.unit=i}toString(){return`Duration<${TimeUnit[this.unit]}>`}}_q=Symbol.toStringTag;Duration[_q]=(n=>(n.unit=null,n.ArrayType=BigInt64Array,n[Symbol.toStringTag]="Duration"))(Duration.prototype);class List extends DataType{constructor(i){super(Type.List),this.children=[i]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}_r=Symbol.toStringTag;List[_r]=(n=>(n.children=null,n[Symbol.toStringTag]="List"))(List.prototype);class Struct extends DataType{constructor(i){super(Type.Struct),this.children=i}toString(){return`Struct<{${this.children.map(i=>`${i.name}:${i.type}`).join(", ")}}>`}}_s=Symbol.toStringTag;Struct[_s]=(n=>(n.children=null,n[Symbol.toStringTag]="Struct"))(Struct.prototype);class Union_ extends DataType{constructor(i,t,e){super(Type.Union),this.mode=i,this.children=e,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((o,d,p)=>(o[d]=p)&&o||o,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(i=>`${i.type}`).join(" | ")}>`}}_t=Symbol.toStringTag;Union_[_t]=(n=>(n.mode=null,n.typeIds=null,n.children=null,n.typeIdToChildIndex=null,n.ArrayType=Int8Array,n[Symbol.toStringTag]="Union"))(Union_.prototype);class FixedSizeBinary extends DataType{constructor(i){super(Type.FixedSizeBinary),this.byteWidth=i}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}_u=Symbol.toStringTag;FixedSizeBinary[_u]=(n=>(n.byteWidth=null,n.ArrayType=Uint8Array,n[Symbol.toStringTag]="FixedSizeBinary"))(FixedSizeBinary.prototype);class FixedSizeList extends DataType{constructor(i,t){super(Type.FixedSizeList),this.listSize=i,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}_v=Symbol.toStringTag;FixedSizeList[_v]=(n=>(n.children=null,n.listSize=null,n[Symbol.toStringTag]="FixedSizeList"))(FixedSizeList.prototype);class Map_ extends DataType{constructor(i,t=!1){var e,o,d;if(super(Type.Map),this.children=[i],this.keysSorted=t,i&&(i.name="entries",!((e=i?.type)===null||e===void 0)&&e.children)){const p=(o=i?.type)===null||o===void 0?void 0:o.children[0];p&&(p.name="key");const h=(d=i?.type)===null||d===void 0?void 0:d.children[1];h&&(h.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(i=>`${i.name}:${i.type}`).join(", ")}}>`}}_w=Symbol.toStringTag;Map_[_w]=(n=>(n.children=null,n.keysSorted=null,n[Symbol.toStringTag]="Map_"))(Map_.prototype);const getId$1=(n=>()=>++n)(-1);class Dictionary extends DataType{constructor(i,t,e,o){super(Type.Dictionary),this.indices=t,this.dictionary=i,this.isOrdered=o||
24!1,this.id=e==null?getId$1():bigIntToNumber(e)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}_x=Symbol.toStringTag;Dictionary[_x]=(n=>(n.id=null,n.indices=null,n.isOrdered=null,n.dictionary=null,n[Symbol.toStringTag]="Dictionary"))(Dictionary.prototype);function strideForType(n){const i=n;switch(n.typeId){case Type.Decimal:return n.bitWidth/32;case Type.Interval:return i.unit===IntervalUnit.MONTH_DAY_NANO?4:1+i.unit;case Type.FixedSizeList:return i.listSize;case Type.FixedSizeBinary:return i.byteWidth;default:return 1}}class Visitor{visitMany(i,...t){return i.map((e,o)=>this.visit(e,...t.map(d=>d[o])))}visit(...i){return this.getVisitFn(i[0],!1).apply(this,i)}getVisitFn(i,t=!0){return getVisitFn(this,i,t)}getVisitFnByTypeId(i,t=!0){return getVisitFnByTypeId(this,i,t)}visitNull(i,...t){return null}visitBool(i,...t){return null}visitInt(i,...t){return null}visitFloat(i,...t){return null}visitUtf8(i,...t){return null}visitLargeUtf8(i,...t){return null}visitBinary(i,...t){return null}visitLargeBinary(i,...t){return null}visitFixedSizeBinary(i,...t){return null}visitDate(i,...t){return null}visitTimestamp(i,...t){return null}visitTime(i,...t){return null}visitDecimal(i,...t){return null}visitList(i,...t){return null}visitStruct(i,...t){return null}visitUnion(i,...t){return null}visitDictionary(i,...t){return null}visitInterval(i,...t){return null}visitDuration(i,...t){return null}visitFixedSizeList(i,...t){return null}visitMap(i,...t){return null}}function getVisitFn(n,i,t=!0){return typeof i=="number"?getVisitFnByTypeId(n,i,t):typeof i=="string"&&i in Type?getVisitFnByTypeId(n,Type[i],t):i&&i instanceof DataType?getVisitFnByTypeId(n,inferDType(i),t):i?.type&&i.type instanceof DataType?getVisitFnByTypeId(n,inferDType(i.type),t):getVisitFnByTypeId(n,Type.NONE,t)}function getVisitFnByTypeId(n,i,t=!0){let e=null;switch(i){case Type.Null:e=n.visitNull;break;case Type.Bool:e=n.visitBool;break;case Type.Int:e=n.visitInt;break;case Type.Int8:e=n.visitInt8||n.visitInt;break;case Type.Int16:e=n.visitInt16||n.visitInt;break;case Type.Int32:e=n.visitInt32||n.visitInt;break;case Type.Int64:e=n.visitInt64||n.visitInt;break;case Type.Uint8:e=n.visitUint8||n.visitInt;break;case Type.Uint16:e=n.visitUint16||n.visitInt;break;case Type.Uint32:e=n.visitUint32||n.visitInt;break;case Type.Uint64:e=n.visitUint64||n.visitInt;break;case Type.Float:e=n.visitFloat;break;case Type.Float16:e=n.visitFloat16||n.visitFloat;break;case Type.Float32:e=n.visitFloat32||n.visitFloat;break;case Type.Float64:e=n.visitFloat64||n.visitFloat;break;case Type.Utf8:e=n.visitUtf8;break;case Type.LargeUtf8:e=n.visitLargeUtf8;break;case Type.Binary:e=n.visitBinary;break;case Type.LargeBinary:e=n.visitLargeBinary;break;case Type.FixedSizeBinary:e=n.visitFixedSizeBinary;break;case Type.Date:e=n.visitDate;break;case Type.DateDay:e=n.visitDateDay||n.visitDate;break;case Type.DateMillisecond:e=n.visitDateMillisecond||n.visitDate;break;case Type.Timestamp:e=n.visitTimestamp;break;case Type.TimestampSecond:e=n.visitTimestampSecond||n.visitTimestamp;break;case Type.TimestampMillisecond:e=n.visitTimestampMillisecond||n.visitTimestamp;break;case Type.TimestampMicrosecond:e=n.visitTimestampMicrosecond||n.visitTimestamp;break;case Type.TimestampNanosecond:e=n.visitTimestampNanosecond||n.visitTimestamp;break;case Type.Time:e=n.visitTime;break;case Type.TimeSecond:e=n.visitTimeSecond||n.visitTime;break;case Type.TimeMillisecond:e=n.visitTimeMillisecond||n.visitTime;break;case Type.TimeMicrosecond:e=n.visitTimeMicrosecond||n.visitTime;break;case Type.TimeNanosecond:e=n.visitTimeNanosecond||n.visitTime;break;case Type.Decimal:e=n.visitDecimal;break;case Type.List:e=n.visitList;break;case Type.Struct:e=n.visitStruct;break;case Type.Union:e=n.visitUnion;break;case Type.DenseUnion:e=n.visitDenseUnion||n.visitUnion;break;case Type.SparseUnion:e=n.visitSparseUnion||n.visitUnion;break;case Type.Dictionary:e=n.visitDictionary;break;case Type.Interval:e=n.visitInterval;break;case Type.IntervalDayTime:e=n.visitIntervalDayTime||n.visitInterval;break;
24case Type.IntervalYearMonth:e=n.visitIntervalYearMonth||n.visitInterval;break;case Type.IntervalMonthDayNano:e=n.visitIntervalMonthDayNano||n.visitInterval;break;case Type.Duration:e=n.visitDuration;break;case Type.DurationSecond:e=n.visitDurationSecond||n.visitDuration;break;case Type.DurationMillisecond:e=n.visitDurationMillisecond||n.visitDuration;break;case Type.DurationMicrosecond:e=n.visitDurationMicrosecond||n.visitDuration;break;case Type.DurationNanosecond:e=n.visitDurationNanosecond||n.visitDuration;break;case Type.FixedSizeList:e=n.visitFixedSizeList;break;case Type.Map:e=n.visitMap;break}if(typeof e=="function")return e;if(!t)return()=>null;throw new Error(`Unrecognized type '${Type[i]}'`)}function inferDType(n){switch(n.typeId){case Type.Null:return Type.Null;case Type.Int:{const{bitWidth:i,isSigned:t}=n;switch(i){case 8:return t?Type.Int8:Type.Uint8;case 16:return t?Type.Int16:Type.Uint16;case 32:return t?Type.Int32:Type.Uint32;case 64:return t?Type.Int64:Type.Uint64}return Type.Int}case Type.Float:switch(n.precision){case Precision.HALF:return Type.Float16;case Precision.SINGLE:return Type.Float32;case Precision.DOUBLE:return Type.Float64}return Type.Float;case Type.Binary:return Type.Binary;case Type.LargeBinary:return Type.LargeBinary;case Type.Utf8:return Type.Utf8;case Type.LargeUtf8:return Type.LargeUtf8;case Type.Bool:return Type.Bool;case Type.Decimal:return Type.Decimal;case Type.Time:switch(n.unit){case TimeUnit.SECOND:return Type.TimeSecond;case TimeUnit.MILLISECOND:return Type.TimeMillisecond;case TimeUnit.MICROSECOND:return Type.TimeMicrosecond;case TimeUnit.NANOSECOND:return Type.TimeNanosecond}return Type.Time;case Type.Timestamp:switch(n.unit){case TimeUnit.SECOND:return Type.TimestampSecond;case TimeUnit.MILLISECOND:return Type.TimestampMillisecond;case TimeUnit.MICROSECOND:return Type.TimestampMicrosecond;case TimeUnit.NANOSECOND:return Type.TimestampNanosecond}return Type.Timestamp;case Type.Date:switch(n.unit){case DateUnit.DAY:return Type.DateDay;case DateUnit.MILLISECOND:return Type.DateMillisecond}return Type.Date;case Type.Interval:switch(n.unit){case IntervalUnit.DAY_TIME:return Type.IntervalDayTime;case IntervalUnit.YEAR_MONTH:return Type.IntervalYearMonth;case IntervalUnit.MONTH_DAY_NANO:return Type.IntervalMonthDayNano}return Type.Interval;case Type.Duration:switch(n.unit){case TimeUnit.SECOND:return Type.DurationSecond;case TimeUnit.MILLISECOND:return Type.DurationMillisecond;case TimeUnit.MICROSECOND:return Type.DurationMicrosecond;case TimeUnit.NANOSECOND:return Type.DurationNanosecond}return Type.Duration;case Type.Map:return Type.Map;case Type.List:return Type.List;case Type.Struct:return Type.Struct;case Type.Union:switch(n.mode){case UnionMode.Dense:return Type.DenseUnion;case UnionMode.Sparse:return Type.SparseUnion}return Type.Union;case Type.FixedSizeBinary:return Type.FixedSizeBinary;case Type.FixedSizeList:return Type.FixedSizeList;case Type.Dictionary:return Type.Dictionary}throw new Error(`Unrecognized type '${Type[n.typeId]}'`)}Visitor.prototype.visitInt8=null;Visitor.prototype.visitInt16=null;Visitor.prototype.visitInt32=null;Visitor.prototype.visitInt64=null;Visitor.prototype.visitUint8=null;Visitor.prototype.visitUint16=null;Visitor.prototype.visitUint32=null;Visitor.prototype.visitUint64=null;Visitor.prototype.visitFloat16=null;Visitor.prototype.visitFloat32=null;Visitor.prototype.visitFloat64=null;Visitor.prototype.visitDateDay=null;Visitor.prototype.visitDateMillisecond=null;Visitor.prototype.visitTimestampSecond=null;Visitor.prototype.visitTimestampMillisecond=null;Visitor.prototype.visitTimestampMicrosecond=null;Visitor.prototype.visitTimestampNanosecond=null;Visitor.prototype.visitTimeSecond=null;Visitor.prototype.visitTimeMillisecond=null;Visitor.prototype.visitTimeMicrosecond=null;Visitor.prototype.visitTimeNanosecond=null;Visitor.prototype.visitDenseUnion=null;Visitor.prototype.visitSparseUnion=null;Visitor.prototype.visitIntervalDayTime=null;Visitor.prototype.visitIntervalYearMonth=null;Visitor.prototype.visitIntervalMonthDayNano=null;Visitor.prototype.visitDuration=null;Visitor.prototype.visitDurationSecond=null;Visitor.prototype.visitDurationMillisecond=null;Visitor.prototype.visitDurationMicrosecond=null;Visitor.prototype.visitDurationNanosecond=null;const f64=new Float64Array(1),u32=new Uint32Array(f64.buffer);function uint16ToFloat64(n){const i=(n&31744)>>10,t=(n&1023)/1024,e=Math.pow(-1,(n&32768)>>15);switch(i){case 31:return e*(t?Number.NaN:1/0);case 0:return e*(t?6103515625e-14*t:0)}return e*Math.pow(2,i-15)*(1+t)}function float64ToUint16(n){if(n!==n)return 32256;f64[0]=n;const i=(u32[1]&2147483648)>>16&65535;let t=u32[1]&2146435072,e=0;return t>=1089470464?u32[0]>0?t=31744:(t=(t&2080374784)>>16,e=(u32[1]&1048575)>>10):t<=1056964608?(e=1048576+(u32[1]&1048575),e=1048576+(e<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,e=(u32[1]&1048575)+512>>10),i|t|e&65535}const util_math_=Object.freeze(Object.defineProperty({__proto__:null,float64ToUint16,uint16ToFloat64},Symbol.toStringTag,{value:"Module"}));class SetVisitor extends Visitor{}function wrapSet(n){return(i,t,e)=>{if(i.setValid(t,e!=null))return n(i,t,e)}}const setEpochMsToDays=(n,i,t)=>{n[i]=Math.floor(t/864e5)},setVariableWidthBytes=(n,i,t,e)=>{if(t+1<i.length){const o=bigIntToNumber(i[t]),d=bigIntToNumber(i[t+1]);n.set(e.subarray(0,d-o),o)}},setBool$1=({offset:n,values:i},t,e)=>{const o=n+t;e?i[o>>3]|=1<<o%8:i[o>>
243]&=~(1<<o%8)},setInt=({values:n},i,t)=>{n[i]=t},setFloat=({values:n},i,t)=>{n[i]=t},setFloat16=({values:n},i,t)=>{n[i]=float64ToUint16(t)},setAnyFloat=(n,i,t)=>{switch(n.type.precision){case Precision.HALF:return setFloat16(n,i,t);case Precision.SINGLE:case Precision.DOUBLE:return setFloat(n,i,t)}},setDateDay=({values:n},i,t)=>{setEpochMsToDays(n,i,t.valueOf())},setDateMillisecond=({values:n},i,t)=>{n[i]=BigInt(t)},setFixedSizeBinary=({stride:n,values:i},t,e)=>{i.set(e.subarray(0,n),n*t)},setBinary=({values:n,valueOffsets:i},t,e)=>setVariableWidthBytes(n,i,t,e),setUtf8=({values:n,valueOffsets:i},t,e)=>setVariableWidthBytes(n,i,t,encodeUtf8(e)),setDate=(n,i,t)=>{n.type.unit===DateUnit.DAY?setDateDay(n,i,t):setDateMillisecond(n,i,t)},setTimestampSecond=({values:n},i,t)=>{n[i]=BigInt(t/1e3)},setTimestampMillisecond=({values:n},i,t)=>{n[i]=BigInt(t)},setTimestampMicrosecond=({values:n},i,t)=>{n[i]=BigInt(t*1e3)},setTimestampNanosecond=({values:n},i,t)=>{n[i]=BigInt(t*1e6)},setTimestamp=(n,i,t)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimestampSecond(n,i,t);case TimeUnit.MILLISECOND:return setTimestampMillisecond(n,i,t);case TimeUnit.MICROSECOND:return setTimestampMicrosecond(n,i,t);case TimeUnit.NANOSECOND:return setTimestampNanosecond(n,i,t)}},setTimeSecond=({values:n},i,t)=>{n[i]=t},setTimeMillisecond=({values:n},i,t)=>{n[i]=t},setTimeMicrosecond=({values:n},i,t)=>{n[i]=t},setTimeNanosecond=({values:n},i,t)=>{n[i]=t},setTime=(n,i,t)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimeSecond(n,i,t);case TimeUnit.MILLISECOND:return setTimeMillisecond(n,i,t);case TimeUnit.MICROSECOND:return setTimeMicrosecond(n,i,t);case TimeUnit.NANOSECOND:return setTimeNanosecond(n,i,t)}},setDecimal=({values:n,stride:i},t,e)=>{n.set(e.subarray(0,i),i*t)},setList=(n,i,t)=>{const e=n.children[0],o=n.valueOffsets,d=instance$5.getVisitFn(e);if(Array.isArray(t))for(let p=-1,h=o[i],y=o[i+1];h<y;)d(e,h++,t[++p]);else for(let p=-1,h=o[i],y=o[i+1];h<y;)d(e,h++,t.get(++p))},setMap=(n,i,t)=>{const e=n.children[0],{valueOffsets:o}=n,d=instance$5.getVisitFn(e);let{[i]:p,[i+1]:h}=o;const y=t instanceof Map?t.entries():Object.entries(t);for(const E of y)if(d(e,p,E),++p>=h)break},_setStructArrayValue=(n,i)=>(t,e,o,d)=>e&&t(e,n,i[d]),_setStructVectorValue=(n,i)=>(t,e,o,d)=>e&&t(e,n,i.get(d)),_setStructMapValue=(n,i)=>(t,e,o,d)=>e&&t(e,n,i.get(o.name)),_setStructObjectValue=(n,i)=>(t,e,o,d)=>e&&t(e,n,i[o.name]),setStruct=(n,i,t)=>{const e=n.type.children.map(d=>instance$5.getVisitFn(d.type)),o=t instanceof Map?_setStructMapValue(i,t):t instanceof Vector?_setStructVectorValue(i,t):Array.isArray(t)?_setStructArrayValue(i,t):_setStructObjectValue(i,t);n.type.children.forEach((d,p)=>o(e[p],n.children[p],d,p))},setUnion=(n,i,t)=>{n.type.mode===UnionMode.Dense?setDenseUnion(n,i,t):setSparseUnion(n,i,t)},setDenseUnion=(n,i,t)=>{const e=n.type.typeIdToChildIndex[n.typeIds[i]],o=n.children[e];instance$5.visit(o,n.valueOffsets[i],t)},setSparseUnion=(n,i,t)=>{const e=n.type.typeIdToChildIndex[n.typeIds[i]],o=n.children[e];instance$5.visit(o,i,t)},setDictionary=(n,i,t)=>{var e;(e=n.dictionary)===null||e===void 0||e.set(n.values[i],t)},setIntervalValue=(n,i,t)=>{switch(n.type.unit){case IntervalUnit.YEAR_MONTH:return setIntervalYearMonth(n,i,t);case IntervalUnit.DAY_TIME:return setIntervalDayTime(n,i,t);case IntervalUnit.MONTH_DAY_NANO:return setIntervalMonthDayNano(n,i,t)}},setIntervalDayTime=({values:n},i,t)=>{n.set(t.subarray(0,2),2*i)},setIntervalYearMonth=({values:n},i,t)=>{n[i]=t[0]*12+t[1]%12},setIntervalMonthDayNano=({values:n,stride:i},t,e)=>{n.set(e.subarray(0,i),i*t)},setDurationSecond=({values:n},i,t)=>{n[i]=t},setDurationMillisecond=({values:n},i,t)=>{n[i]=t},setDurationMicrosecond=({values:n},i,t)=>{n[i]=t},setDurationNanosecond=({values:n},i,t)=>{n[i]=t},setDuration=(n,i,t)=>{switch(n.type.unit){case TimeUnit.SECOND:return setDurationSecond(n,i,t);case TimeUnit.MILLISECOND:return setDurationMillisecond(n,i,t);case TimeUnit.MICROSECOND:return setDurationMicrosecond(n,i,t);case TimeUnit.NANOSECOND:return setDurationNanosecond(n,i,t)}},setFixedSizeList=(n,i,t)=>{const{stride:e}=n,o=n.children[0],d=instance$5.getVisitFn(o);if(Array.isArray(t))for(let p=-1,h=i*e;++p<e;)d(o,h+p,t[p]);else for(let p=-1,h=i*e;++p<e;)d(o,h+p,t.get(p))};SetVisitor.prototype.visitBool=wrapSet(setBool$1);SetVisitor.prototype.visitInt=wrapSet(setInt);SetVisitor.prototype.visitInt8=wrapSet(setInt);SetVisitor.prototype.visitInt16=wrapSet(setInt);SetVisitor.prototype.visitInt32=wrapSet(setInt);SetVisitor.prototype.visitInt64=wrapSet(setInt);SetVisitor.prototype.visitUint8=wrapSet(setInt);SetVisitor.prototype.visitUint16=wrapSet(setInt);SetVisitor.prototype.visitUint32=wrapSet(setInt);SetVisitor.prototype.visitUint64=wrapSet(setInt);SetVisitor.prototype.visitFloat=wrapSet(setAnyFloat);SetVisitor.prototype.visitFloat16=wrapSet(setFloat16);SetVisitor.prototype.visitFloat32=wrapSet(setFloat);SetVisitor.prototype.visitFloat64=wrapSet(setFloat);SetVisitor.prototype.visitUtf8=wrapSet(setUtf8);SetVisitor.prototype.visitLargeUtf8=wrapSet(setUtf8);SetVisitor.prototype.visitBinary=wrapSet(setBinary);SetVisitor.prototype.visitLargeBinary=wrapSet(setBinary);SetVisitor.prototype.visitFixedSizeBinary=wrapSet(setFixedSizeBinary);SetVisitor.prototype.visitDate=wrapSet(setDate);SetVisitor.prototype.visitDateDay=wrapSet(setDateDay);SetVisitor.prototype.visitDateMillisecond=wrapSet(setDateMillisecond);SetVisitor.prototype.visitTimestamp=wrapSet(setTimestamp);SetVisitor.prototype.visitTimestampSecond=wrapSet(setTimestampSecond);SetVisitor.prototype.visitTimestampMillisecond=wrapSet(setTimestampMillisecond);SetVisitor.prototype.visitTimestampMicrosecond=wrapSet(setTimestampMicrosecond);SetVisitor.prototype.visitTimestampNanosecond=wrapSet(setTimestampNanosecond);SetVisitor.prototype.visitTime=wrapSet(setTime);SetVisitor.prototype.visitTimeSecond=wrapSet(setTimeSecond);SetVisitor.prototype.visitTimeMillisecond=wrapSet(setTimeMillisecond);SetVisitor.prototype.visitTimeMicrosecond=wrapSet(setTimeMicrosecond);SetVisitor.prototype.visitTimeNanosecond=wrapSet(setTimeNanosecond);SetVisitor.prototype.visitDecimal=wrapSet(setDecimal);SetVisitor.prototype.visitList=wrapSet(setList);SetVisitor.prototype.visitStruct=wrapSet(setStruct);SetVisitor.prototype.visitUnion=wrapSet(setUnion);SetVisitor.prototype.visitDenseUnion=wrapSet(setDenseUnion);SetVisitor.prototype.visitSparseUnion=wrapSet(setSparseUnion);SetVisitor.prototype.visitDictionary=wrapSet(setDictionary);SetVisitor.prototype.visitInterval=wrapSet(setIntervalValue);SetVisitor.prototype.visitIntervalDayTime=wrapSet(setIntervalDayTime);SetVisitor.prototype.visitIntervalYearMonth=wrapSet(setIntervalYearMonth);SetVisitor.prototype.visitIntervalMonthDayNano=wrapSet(setIntervalMonthDayNano);SetVisitor.prototype.visitDuration=wrapSet(setDuration);SetVisitor.prototype.visitDurationSecond=wrapSet(setDurationSecond);SetVisitor.prototype.visitDurationMillisecond=wrapSet(setDurationMillisecond);SetVisitor.prototype.visitDurationMicrosecond=wrapSet(setDurationMicrosecond);SetVisitor.prototype.visitDurationNanosecond=wrapSet(setDurationNanosecond);SetVisitor.prototype.visitFixedSizeList=wrapSet(setFixedSizeList);SetVisitor.prototype.visitMap=wrapSet(setMap);const instance$5=new SetVisitor,kParent=Symbol.for("parent"),kRowIndex=Symbol.for("rowIndex");class StructRow{constructor(i,t){return this[kParent]=i,this[kRowIndex]=t,new Proxy(this,structRowProxyHandler)}toArray(){return Object.values(this.toJSON())}toJSON(){const i=this[kRowIndex],t=this[kParent],e=t.type.children,o={};for(let d=-1,p=e.length;++d<p;)o[e[d].name]=instance$4.visit(t.children[d],i);return o}toString(){return`{${[...this].map(([i,t])=>`${valueToString(i)}: ${valueToString(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new StructRowIterator(this[kParent],this[kRowIndex])}}class StructRowIterator{constructor(i,t){this.childIndex=0,this.children=i.children,this.rowIndex=t,this.childFields=i.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const i=this.childIndex;return i<this.numChildren?(this.childIndex=i+1,{done:!1,value:[this.childFields[i].name,instance$4.visit(this.children[i],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(StructRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,
24configurable:!1,value:"Row"},[kParent]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kRowIndex]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class StructRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(i){return i[kParent].type.children.map(t=>t.name)}has(i,t){return i[kParent].type.children.some(e=>e.name===t)}getOwnPropertyDescriptor(i,t){if(i[kParent].type.children.some(e=>e.name===t))return{writable:!0,enumerable:!0,configurable:!0}}get(i,t){if(Reflect.has(i,t))return i[t];const e=i[kParent].type.children.findIndex(o=>o.name===t);if(e!==-1){const o=instance$4.visit(i[kParent].children[e],i[kRowIndex]);return Reflect.set(i,t,o),o}}set(i,t,e){const o=i[kParent].type.children.findIndex(d=>d.name===t);return o!==-1?(instance$5.visit(i[kParent].children[o],i[kRowIndex],e),Reflect.set(i,t,e)):Reflect.has(i,t)||typeof t=="symbol"?Reflect.set(i,t,e):!1}}const structRowProxyHandler=new StructRowProxyHandler;class GetVisitor extends Visitor{}function wrapGet(n){return(i,t)=>i.getValid(t)?n(i,t):null}const epochDaysToMs=(n,i)=>864e5*n[i],getNull=(n,i)=>null,getVariableWidthBytes=(n,i,t)=>{if(t+1>=i.length)return null;const e=bigIntToNumber(i[t]),o=bigIntToNumber(i[t+1]);return n.subarray(e,o)},getBool$1=({offset:n,values:i},t)=>{const e=n+t;return(i[e>>3]&1<<e%8)!==0},getDateDay=({values:n},i)=>epochDaysToMs(n,i),getDateMillisecond=({values:n},i)=>bigIntToNumber(n[i]),getNumeric=({stride:n,values:i},t)=>i[n*t],getFloat16=({stride:n,values:i},t)=>uint16ToFloat64(i[n*t]),getBigInts=({values:n},i)=>n[i],getFixedSizeBinary=({stride:n,values:i},t)=>i.subarray(n*t,n*(t+1)),getBinary=({values:n,valueOffsets:i},t)=>getVariableWidthBytes(n,i,t),getUtf8=({values:n,valueOffsets:i},t)=>{const e=getVariableWidthBytes(n,i,t);return e!==null?decodeUtf8(e):null},getInt=({values:n},i)=>n[i],getFloat=({type:n,values:i},t)=>n.precision!==Precision.HALF?i[t]:uint16ToFloat64(i[t]),getDate=(n,i)=>n.type.unit===DateUnit.DAY?getDateDay(n,i):getDateMillisecond(n,i),getTimestampSecond=({values:n},i)=>1e3*bigIntToNumber(n[i]),getTimestampMillisecond=({values:n},i)=>bigIntToNumber(n[i]),getTimestampMicrosecond=({values:n},i)=>divideBigInts(n[i],BigInt(1e3)),getTimestampNanosecond=({values:n},i)=>divideBigInts(n[i],BigInt(1e6)),getTimestamp=(n,i)=>{switch(n.type.unit){case TimeUnit.SECOND:return getTimestampSecond(n,i);case TimeUnit.MILLISECOND:return getTimestampMillisecond(n,i);case TimeUnit.MICROSECOND:return getTimestampMicrosecond(n,i);case TimeUnit.NANOSECOND:return getTimestampNanosecond(n,i)}},getTimeSecond=({values:n},i)=>n[i],getTimeMillisecond=({values:n},i)=>n[i],getTimeMicrosecond=({values:n},i)=>n[i],getTimeNanosecond=({values:n},i)=>n[i],getTime=(n,i)=>{switch(n.type.unit){case TimeUnit.SECOND:return getTimeSecond(n,i);case TimeUnit.MILLISECOND:return getTimeMillisecond(n,i);case TimeUnit.MICROSECOND:return getTimeMicrosecond(n,i);case TimeUnit.NANOSECOND:return getTimeNanosecond(n,i)}},getDecimal=({values:n,stride:i},t)=>BN.decimal(n.subarray(i*t,i*(t+1))),getList=(n,i)=>{const{valueOffsets:t,stride:e,children:o}=n,{[i*e]:d,[i*e+1]:p}=t,y=o[0].slice(d,p-d);return new Vector([y])},getMap=(n,i)=>{const{valueOffsets:t,children:e}=n,{[i]:o,[i+1]:d}=t,p=e[0];return new MapRow(p.slice(o,d-o))},getStruct=(n,i)=>new StructRow(n,i),getUnion=(n,i)=>n.type.mode===UnionMode.Dense?getDenseUnion(n,i):getSparseUnion(n,i),getDenseUnion=(n,i)=>{const t=n.type.typeIdToChildIndex[n.typeIds[i]],e=n.children[t];return instance$4.visit(e,n.valueOffsets[i])},getSparseUnion=(n,i)=>{const t=n.type.typeIdToChildIndex[n.typeIds[i]],e=n.children[t];return instance$4.visit(e,i)},getDictionary=(n,i)=>{var t;return(t=n.dictionary)===null||t===void 0?void 0:t.get(n.values[i])},getInterval=(n,i)=>n.type.unit===IntervalUnit.MONTH_DAY_NANO?getIntervalMonthDayNano(n,i):n.type.unit===IntervalUnit.DAY_TIME?getIntervalDayTime(n,i):getIntervalYearMonth(n,i),getIntervalDayTime=({values:n},i)=>n.subarray(2*i,2*(i+1)),getIntervalYearMonth=({values:n},i)=>{const t=n[i],e=new Int32Array(2);return e[0]=Math.trunc(t/12),e[1]=Math.trunc(t%12),e},getIntervalMonthDayNano=({values:n},i)=>n.subarray(4*i,4*(i+1)),getDurationSecond=({values:n},i)=>n[i],getDurationMillisecond=({values:n},i)=>n[i],getDurationMicrosecond=({values:n},i)=>n[i],getDurationNanosecond=({values:n},i)=>n[i],getDuration=(n,i)=>{switch(n.type.unit){case TimeUnit.SECOND:return getDurationSecond(n,i);case TimeUnit.MILLISECOND:return getDurationMillisecond(n,i);case TimeUnit.MICROSECOND:return getDurationMicrosecond(n,i);case TimeUnit.NANOSECOND:return getDurationNanosecond(n,i)}},getFixedSizeList=(n,i)=>{const{stride:t,children:e}=n,d=e[0].slice(i*t,t);return new Vector([d])};GetVisitor.prototype.visitNull=wrapGet(getNull);GetVisitor.prototype.visitBool=wrapGet(getBool$1);GetVisitor.prototype.visitInt=wrapGet(getInt);GetVisitor.prototype.visitInt8=wrapGet(getNumeric);GetVisitor.prototype.visitInt16=wrapGet(getNumeric);GetVisitor.prototype.visitInt32=wrapGet(getNumeric);GetVisitor.prototype.visitInt64=wrapGet(getBigInts);GetVisitor.prototype.visitUint8=wrapGet(getNumeric);GetVisitor.prototype.visitUint16=wrapGet(getNumeric);GetVisitor.prototype.visitUint32=wrapGet(getNumeric);GetVisitor.prototype.visitUint64=wrapGet(getBigInts);GetVisitor.prototype.visitFloat=wrapGet(getFloat);GetVisitor.prototype.visitFloat16=wrapGet(getFloat16);GetVisitor.prototype.visitFloat32=wrapGet(getNumeric);GetVisitor.prototype.visitFloat64=wrapGet(getNumeric);GetVisitor.prototype.visitUtf8=wrapGet(getUtf8);GetVisitor.prototype.visitLargeUtf8=wrapGet(getUtf8);GetVisitor.prototype.visitBinary=wrapGet(getBinary);GetVisitor.prototype.visitLargeBinary=wrapGet(getBinary);GetVisitor.prototype.visitFixedSizeBinary=wrapGet(getFixedSizeBinary);GetVisitor.prototype.visitDate=wrapGet(getDate);GetVisitor.prototype.visitDateDay=wrapGet(getDateDay);GetVisitor.prototype.visitDateMillisecond=wrapGet(getDateMillisecond);GetVisitor.prototype.visitTimestamp=wrapGet(getTimestamp);GetVisitor.prototype.visitTimestampSecond=wrapGet(getTimestampSecond);GetVisitor.prototype.visitTimestampMillisecond=wrapGet(getTimestampMillisecond);GetVisitor.prototype.visitTimestampMicrosecond=wrapGet(getTimestampMicrosecond);GetVisitor.prototype.visitTimestampNanosecond=wrapGet(getTimestampNanosecond);GetVisitor.prototype.visitTime=wrapGet(getTime);GetVisitor.prototype.visitTimeSecond=wrapGet(getTimeSecond);GetVisitor.prototype.visitTimeMillisecond=wrapGet(getTimeMillisecond);GetVisitor.prototype.visitTimeMicrosecond=wrapGet(getTimeMicrosecond);GetVisitor.prototype.visitTimeNanosecond=wrapGet(getTimeNanosecond);GetVisitor.prototype.visitDecimal=wrapGet(getDecimal);GetVisitor.prototype.visitList=wrapGet(getList);GetVisitor.prototype.visitStruct=wrapGet(getStruct);GetVisitor.prototype.visitUnion=wrapGet(getUnion);GetVisitor.prototype.visitDenseUnion=wrapGet(getDenseUnion);GetVisitor.prototype.visitSparseUnion=wrapGet(getSparseUnion);GetVisitor.prototype.visitDictionary=wrapGet(getDictionary);GetVisitor.prototype.visitInterval=wrapGet(getInterval);GetVisitor.prototype.visitIntervalDayTime=wrapGet(getIntervalDayTime);GetVisitor.prototype.visitIntervalYearMonth=wrapGet(getIntervalYearMonth);GetVisitor.prototype.visitIntervalMonthDayNano=wrapGet(getIntervalMonthDayNano);GetVisitor.prototype.visitDuration=wrapGet(getDuration);GetVisitor.prototype.visitDurationSecond=wrapGet(getDurationSecond);GetVisitor.prototype.visitDurationMillisecond=wrapGet(getDurationMillisecond);GetVisitor.prototype.visitDurationMicrosecond=wrapGet(getDurationMicrosecond);GetVisitor.prototype.visitDurationNanosecond=wrapGet(getDurationNanosecond);GetVisitor.prototype.visitFixedSizeList=wrapGet(getFixedSizeList);GetVisitor.prototype.visitMap=wrapGet(getMap);const instance$4=new GetVisitor,kKeys=Symbol.for("keys"),kVals=Symbol.for("vals"),kKeysAsStrings=Symbol.for("kKeysAsStrings"),_kKeysAsStrings=Symbol.for("_kKeysAsStrings");class MapRow{constructor(i){return this[kKeys]=new Vector([i.children[0]]).memoize(),this[kVals]=i.children[1],new Proxy(this,new MapRowProxyHandler)}get[kKeysAsStrings](){return this[_kKeysAsStrings]||(this[_kKeysAsStrings]=Array.from(this[kKeys].toArray(),String))}[Symbol.iterator](){return new MapRowIterator(this[kKeys],this[kVals])}get size(){return this[kKeys].length}toArray(){return Object.values(this.toJSON())}toJSON(){const i=this[kKeys],t=this[kVals],e={};for(let o=-1,d=i.length;++o<d;)e[i.get(o)]=instance$4.visit(t,o);return e}toString(){return`{${[...this].map(([i,t])=>`${valueToString(i)}: ${valueToString(t)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class MapRowIterator{constructor(i,t){this.keys=i,this.vals=t,this.keyIndex=0,this.numKe
24ys=i.length}[Symbol.iterator](){return this}next(){const i=this.keyIndex;return i===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(i),instance$4.visit(this.vals,i)]})}}class MapRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(i){return i[kKeysAsStrings]}has(i,t){return i[kKeysAsStrings].includes(t)}getOwnPropertyDescriptor(i,t){if(i[kKeysAsStrings].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(i,t){if(Reflect.has(i,t))return i[t];const e=i[kKeysAsStrings].indexOf(t);if(e!==-1){const o=instance$4.visit(Reflect.get(i,kVals),e);return Reflect.set(i,t,o),o}}set(i,t,e){const o=i[kKeysAsStrings].indexOf(t);return o!==-1?(instance$5.visit(Reflect.get(i,kVals),o,e),Reflect.set(i,t,e)):Reflect.has(i,t)?Reflect.set(i,t,e):!1}}Object.defineProperties(MapRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kKeys]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kVals]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_kKeysAsStrings]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let tmp;function clampRange(n,i,t,e){const{length:o=0}=n;let d=typeof i!="number"?0:i,p=typeof t!="number"?o:t;return d<0&&(d=(d%o+o)%o),p<0&&(p=(p%o+o)%o),p<d&&(tmp=d,d=p,p=tmp),p>o&&(p=o),e?e(n,d,p):[d,p]}const wrapIndex=(n,i)=>n<0?i+n:n,isNaNFast=n=>n!==n;function createElementComparator(n){if(typeof n!=="object"||n===null)return isNaNFast(n)?isNaNFast:t=>t===n;if(n instanceof Date){const t=n.valueOf();return e=>e instanceof Date?e.valueOf()===t:!1}return ArrayBuffer.isView(n)?t=>t?compareArrayLike(n,t):!1:n instanceof Map?createMapComparator(n):Array.isArray(n)?createArrayLikeComparator(n):n instanceof Vector?createVectorComparator(n):createObjectComparator(n,!0)}function createArrayLikeComparator(n){const i=[];for(let t=-1,e=n.length;++t<e;)i[t]=createElementComparator(n[t]);return createSubElementsComparator(i)}function createMapComparator(n){let i=-1;const t=[];for(const e of n.values())t[++i]=createElementComparator(e);return createSubElementsComparator(t)}function createVectorComparator(n){const i=[];for(let t=-1,e=n.length;++t<e;)i[t]=createElementComparator(n.get(t));return createSubElementsComparator(i)}function createObjectComparator(n,i=!1){const t=Object.keys(n);if(!i&&t.length===0)return()=>!1;const e=[];for(let o=-1,d=t.length;++o<d;)e[o]=createElementComparator(n[t[o]]);return createSubElementsComparator(e,t)}function createSubElementsComparator(n,i){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return compareArray$1(n,t);case Map:return compareObject(n,t,t.keys());case MapRow:case StructRow:case Object:case void 0:return compareObject(n,t,i||Object.keys(t))}return t instanceof Vector?compareVector(n,t):!1}}function compareArray$1(n,i){const t=n.length;if(i.length!==t)return!1;for(let e=-1;++e<t;)if(!n[e](i[e]))return!1;return!0}function compareVector(n,i){const t=n.length;if(i.length!==t)return!1;for(let e=-1;++e<t;)if(!n[e](i.get(e)))return!1;return!0}function compareObject(n,i,t){const e=t[Symbol.iterator](),o=i instanceof Map?i.keys():Object.keys(i)[Symbol.iterator](),d=i instanceof Map?i.values():Object.values(i)[Symbol.iterator]();let p=0;const h=n.length;let y=d.next(),E=e.next(),$=o.next();for(;p<h&&!E.done&&!$.done&&!y.done&&!(E.value!==$.value||!n[p](y.value));++p,E=e.next(),$=o.next(),y=d.next());return p===h&&E.done&&$.done&&y.done?!0:(e.return&&e.return(),o.return&&o.return(),d.return&&d.return(),!1)}const util_vector_=Object.freeze(Object.defineProperty({__proto__:null,clampRange,createElementComparator,wrapIndex},Symbol.toStringTag,{value:"Module"}));function getBool(n,i,t,e){return(t&1<<e)!==0}function getBit(n,i,t,e){return(t&1<<e)>>e}function setBool(n,i,t){return t?!!(n[i>>3]|=1<<i%8)||!0:!(n[i>>3]&=~(1<<i%8))&&!1}function truncateBitmap(n,i,t){const e=t.byteLength+7&-8;if(n>0||t.byteLength<e){const o=new Uint8Array(e);return o.set(n%8===0?t.subarray(n>>3):packBools(new BitIterator(t,n,i,null,getBool)).subarray(0,e)),o}return t}function packBools(n){const i=[];let t=0,e=0,o=0;for(const p of n)p&&(o|=1<<e),++e===8&&(i[t++]=o,o=e=0);(t===0||e>0)&&(i[t++]=o);const d=new Uint8Array(i.length+7&-8);return d.set(i),d}class BitIterator{constructor(i,t,e,o,d){this.bytes=i,this.length=e,this.context=o,this.get=d,this.bit=t%8,this.byteIndex=t>>3,this.byte=i[this.byteIndex++],this.index=0}
24next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function popcnt_bit_range(n,i,t){if(t-i<=0)return 0;if(t-i<8){let d=0;for(const p of new BitIterator(n,i,t-i,n,getBit))d+=p;return d}const e=t>>3<<3,o=i+(i%8===0?0:8-i%8);return popcnt_bit_range(n,i,o)+popcnt_bit_range(n,e,t)+popcnt_array(n,o>>3,e-o>>3)}function popcnt_array(n,i,t){let e=0,o=Math.trunc(i);const d=new DataView(n.buffer,n.byteOffset,n.byteLength),p=t===void 0?n.byteLength:o+t;for(;p-o>=4;)e+=popcnt_uint32(d.getUint32(o)),o+=4;for(;p-o>=2;)e+=popcnt_uint32(d.getUint16(o)),o+=2;for(;p-o>=1;)e+=popcnt_uint32(d.getUint8(o)),o+=1;return e}function popcnt_uint32(n){let i=Math.trunc(n);return i=i-(i>>>1&1431655765),i=(i&858993459)+(i>>>2&858993459),(i+(i>>>4)&252645135)*16843009>>>24}const util_bit_=Object.freeze(Object.defineProperty({__proto__:null,BitIterator,getBit,getBool,packBools,popcnt_array,popcnt_bit_range,popcnt_uint32,setBool,truncateBitmap},Symbol.toStringTag,{value:"Module"})),kUnknownNullCount=-1;class Data{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){const{type:i}=this;return DataType.isSparseUnion(i)?this.children.some(t=>t.nullable):DataType.isDenseUnion(i)?this.children.some(t=>t.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let i=0;const{valueOffsets:t,values:e,nullBitmap:o,typeIds:d}=this;return t&&(i+=t.byteLength),e&&(i+=e.byteLength),o&&(i+=o.byteLength),d&&(i+=d.byteLength),this.children.reduce((p,h)=>p+h.byteLength,i)}get nullCount(){if(DataType.isUnion(this.type))return this.children.reduce((e,o)=>e+o.nullCount,0);let i=this._nullCount,t;return i<=kUnknownNullCount&&(t=this.nullBitmap)&&(this._nullCount=i=t.length===0?0:this.length-popcnt_bit_range(t,this.offset,this.offset+this.length)),i}constructor(i,t,e,o,d,p=[],h){this.type=i,this.children=p,this.dictionary=h,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(e||0,0)),this._nullCount=Math.floor(Math.max(o||0,-1));let y;d instanceof Data?(this.stride=d.stride,this.values=d.values,this.typeIds=d.typeIds,this.nullBitmap=d.nullBitmap,this.valueOffsets=d.valueOffsets):(this.stride=strideForType(i),d&&((y=d[0])&&(this.valueOffsets=y),(y=d[1])&&(this.values=y),(y=d[2])&&(this.nullBitmap=y),(y=d[3])&&(this.typeIds=y)))}getValid(i){const{type:t}=this;if(DataType.isUnion(t)){const e=t,o=this.children[e.typeIdToChildIndex[this.typeIds[i]]],d=e.mode===UnionMode.Dense?this.valueOffsets[i]:i;return o.getValid(d)}if(this.nullable&&this.nullCount>0){const e=this.offset+i;return(this.nullBitmap[e>>3]&1<<e%8)!==0}return!0}setValid(i,t){let e;const{type:o}=this;if(DataType.isUnion(o)){const d=o,p=this.children[d.typeIdToChildIndex[this.typeIds[i]]],h=d.mode===UnionMode.Dense?this.valueOffsets[i]:i;e=p.getValid(h),p.setValid(h,t)}else{let{nullBitmap:d}=this;const{offset:p,length:h}=this,y=p+i,E=1<<y%8,$=y>>3;(!d||d.byteLength<=$)&&(d=new Uint8Array((p+h+63&-64)>>3).fill(255),this.nullCount>0?(d.set(truncateBitmap(p,h,this.nullBitmap),0),Object.assign(this,{nullBitmap:d})):Object.assign(this,{nullBitmap:d,_nullCount:0}));const M=d[$];e=(M&E)!==0,d[$]=t?M|E:M&~E}return e!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(i=this.type,t=this.offset,e=this.length,o=this._nullCount,d=this,p=this.children){return new Data(i,t,e,o,d,p,this.dictionary)}slice(i,t){const{stride:e,typeId:o,children:d}=this,p=+(this._nullCount===0)-1,h=o===16?e:1,y=this._sliceBuffers(i,t,e,o);return this.clone(this.type,this.offset+i,t,p,y,d.length===0||this.valueOffsets?d:this._sliceChildren(d,h*i,h*t))}_changeLengthAndBackfillNullBitmap(i){if(this.typeId===Type.Null)return this.clone(this.type,0,i,0);const{length:t,nullCount:e}=this,o=new Uint8Array((i+63&-64)>>3).fill(255,0,t>>3);o[t>>3]=(1<<t-(t&-8))-1,e>0&&o.set(truncateBitmap(this.offset,t,this.nullBitmap),0);const d=this.buffers;return d[BufferType.VALIDITY]=o,this.clone(this.type,0,i,e+(i-t),d)}_sliceBuffers(i,t,e,o){let d;const{buffers:p}=this;return(d=p[BufferType.TYPE])&&(p[BufferType.TYPE]=d.subarray(i,i+t)),(d=p[BufferType.OFFSET])&&(p[BufferType.OFFSET]=d.subarray(i,i+t+1))||(d=p[BufferType.DATA])&&(p[BufferType.DATA]=o===6?d:d.subarray(e*i,e*(i+t))),p}_sliceChildren(i,t,e){return i.map(o=>o.slice(t,e))}}Data.prototype.children=Object.freeze([]);class MakeDataVisitor extends Visitor{visit(i){return this.getVisitFn(i.type).call(this,i)}visitNull(i){const{["type"]:t,["offset"]:e=0,["length"]:o=0}=i;return new Data(t,e,o,o)}visitBool(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length>>3,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitInt(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitFloat(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitUtf8(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.data),d=toUint8Array(i.nullBitmap),p=toInt32Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,o,d])}visitLargeUtf8(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.data),d=toUint8Array(i.nullBitmap),p=toBigInt64Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,o,d])}visitBinary(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.data),d=toUint8Array(i.nullBitmap),p=toInt32Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,o,d])}visitLargeBinary(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.data),d=toUint8Array(i.nullBitmap),p=toBigInt64Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,o,d])}visitFixedSizeBinary(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitDate(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitTimestamp(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitTime(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitDecimal(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitList(i){const{["type"]:t,["offset"]:e=0,["child"]:o}=i,d=toUint8Array(i.nullBitmap),p=toInt32Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,void 0,d],[o])}visitStruct(i){const{["type"]:t,["offset"]:e=0,["children"]:o=[]}=i,d=toUint8Array(i.nullBitmap),{length:p=o.reduce((y,{length:E})=>Math.max(y,E),0),nullCount:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,void 0,d],o)}visitUnion(i){const{["type"]:t,["offset"]:e=0,["children"]:o=[]}=i,d=toArrayBufferView(t.ArrayType,i.typeIds),{["length"]:p=d.length,["nullCount"]:h=-1}=i;if(DataType.isSparseUnion(t))return new Data(t,e,p,h,[void 0,void 0,void 0,d],o);const y=toInt32Array(i.valueOffsets);return new Data(t,e,p,h,[y,void 0,void 0,d],o)}visitDictionary(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.indices.ArrayType,i.data),{["dictionary"]:p=new Vector([new MakeDataVisitor().visit({type:t.dictionary})])}=i,{["length"]:h=d.length,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[void 0,d,o],[],p)}visitInterval(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitDuration(i){const{["type"]:t,["offset"]:e=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(t.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,d,o])}visitFixedSizeList(i){const{["type"]:t,["offset"]:e=0,["child"]:o=new MakeDataVisitor().visit({type:t.valueType})}=i,d=toUint8Array(i.nullBitmap),{["length"]:p=o.length/strideForType(t),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(t,e,p,h,[void 0,void 0,d],[o])}visitMap(i){const{["type"]:t,["offset"]:e=0,["child"]:o=new MakeDataVisitor().visit({type:t.childType})}=i,d=toUint8Array(i.nullBitmap),p=toInt32Array(i.valueOffsets),{["length"]:h=p.length-1,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(t,e,h,y,[p,void 0,d],[o])}}const makeDataVisitor=new MakeDataVisitor;function makeData(n){return makeDataVisitor.visit(n)}class ChunkedIterator{constructor(i=0,t){this.numChunks=i,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const i=this.chunkIterator.next();if(!i.done)return i;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function computeChunkNullable(n){return n.some(i=>i.nullable)}function computeChunkNullCounts(n){return n.reduce((i,t)=>i+t.nullCount,0)}function computeChunkOffsets(n){return n.reduce((i,t,e)=>(i[e+1]=i[e]+t.length,i),new Uint32Array(n.length+1))}function sliceChunks$1(n,i,t,e){const o=[];for(let d=-1,p=n.length;++d<p;){const h=n[d],y=i[d],{length:E}=h;if(y>=e)break;if(t>=y+E)continue;if(y>=t&&y+E<=e){o.push(h);continue}const $=Math.max(0,t-y),M=Math.min(e-y,E);o.push(h.slice($,M-$))}return o.length===0&&o.push(n[0].slice(0,0)),o}function binarySearch(n,i,t,e){let o=0,d=0,p=i.length-1;
24do{if(o>=p-1)return t<i[p]?e(n,o,t-i[o]):null;d=o+Math.trunc((p-o)*.5),t<i[d]?p=d:o=d}while(o<p)}function isChunkedValid(n,i){return n.getValid(i)}function wrapChunkedCall1(n){function i(t,e,o){return n(t[e],o)}return function(t){const e=this.data;return binarySearch(e,this._offsets,t,i)}}function wrapChunkedCall2(n){let i;function t(e,o,d){return n(e[o],d,i)}return function(e,o){const d=this.data;i=o;const p=binarySearch(d,this._offsets,e,t);return i=void 0,p}}function wrapChunkedIndexOf(n){let i;function t(e,o,d){let p=d,h=0,y=0;for(let E=o-1,$=e.length;++E<$;){const M=e[E];if(~(h=n(M,i,p)))return y+h;p=0,y+=M.length}return-1}return function(e,o){i=e;const d=this.data,p=typeof o!="number"?t(d,0,0):binarySearch(d,this._offsets,o,t);return i=void 0,p}}class IndexOfVisitor extends Visitor{}function nullIndexOf(n,i){return i===null&&n.length>0?0:-1}function indexOfNull(n,i){const{nullBitmap:t}=n;if(!t||n.nullCount<=0)return-1;let e=0;for(const o of new BitIterator(t,n.offset+(i||0),n.length,t,getBool)){if(!o)return e;++e}return-1}function indexOfValue(n,i,t){if(i===void 0)return-1;if(i===null)switch(n.typeId){case Type.Union:break;case Type.Dictionary:break;default:return indexOfNull(n,t)}const e=instance$4.getVisitFn(n),o=createElementComparator(i);for(let d=(t||0)-1,p=n.length;++d<p;)if(o(e(n,d)))return d;return-1}function indexOfUnion(n,i,t){const e=instance$4.getVisitFn(n),o=createElementComparator(i);for(let d=(t||0)-1,p=n.length;++d<p;)if(o(e(n,d)))return d;return-1}IndexOfVisitor.prototype.visitNull=nullIndexOf;IndexOfVisitor.prototype.visitBool=indexOfValue;IndexOfVisitor.prototype.visitInt=indexOfValue;IndexOfVisitor.prototype.visitInt8=indexOfValue;IndexOfVisitor.prototype.visitInt16=indexOfValue;IndexOfVisitor.prototype.visitInt32=indexOfValue;IndexOfVisitor.prototype.visitInt64=indexOfValue;IndexOfVisitor.prototype.visitUint8=indexOfValue;IndexOfVisitor.prototype.visitUint16=indexOfValue;IndexOfVisitor.prototype.visitUint32=indexOfValue;IndexOfVisitor.prototype.visitUint64=indexOfValue;IndexOfVisitor.prototype.visitFloat=indexOfValue;IndexOfVisitor.prototype.visitFloat16=indexOfValue;IndexOfVisitor.prototype.visitFloat32=indexOfValue;IndexOfVisitor.prototype.visitFloat64=indexOfValue;IndexOfVisitor.prototype.visitUtf8=indexOfValue;IndexOfVisitor.prototype.visitLargeUtf8=indexOfValue;IndexOfVisitor.prototype.visitBinary=indexOfValue;IndexOfVisitor.prototype.visitLargeBinary=indexOfValue;IndexOfVisitor.prototype.visitFixedSizeBinary=indexOfValue;IndexOfVisitor.prototype.visitDate=indexOfValue;IndexOfVisitor.prototype.visitDateDay=indexOfValue;IndexOfVisitor.prototype.visitDateMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimestamp=indexOfValue;IndexOfVisitor.prototype.visitTimestampSecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitTimestampNanosecond=indexOfValue;IndexOfVisitor.prototype.visitTime=indexOfValue;IndexOfVisitor.prototype.visitTimeSecond=indexOfValue;IndexOfVisitor.prototype.visitTimeMillisecond=indexOfValue;IndexOfVisitor.prototype.visitTimeMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitTimeNanosecond=indexOfValue;IndexOfVisitor.prototype.visitDecimal=indexOfValue;IndexOfVisitor.prototype.visitList=indexOfValue;IndexOfVisitor.prototype.visitStruct=indexOfValue;IndexOfVisitor.prototype.visitUnion=indexOfValue;IndexOfVisitor.prototype.visitDenseUnion=indexOfUnion;IndexOfVisitor.prototype.visitSparseUnion=indexOfUnion;IndexOfVisitor.prototype.visitDictionary=indexOfValue;IndexOfVisitor.prototype.visitInterval=indexOfValue;IndexOfVisitor.prototype.visitIntervalDayTime=indexOfValue;IndexOfVisitor.prototype.visitIntervalYearMonth=indexOfValue;IndexOfVisitor.prototype.visitIntervalMonthDayNano=indexOfValue;IndexOfVisitor.prototype.visitDuration=indexOfValue;IndexOfVisitor.prototype.visitDurationSecond=indexOfValue;IndexOfVisitor.prototype.visitDurationMillisecond=indexOfValue;IndexOfVisitor.prototype.visitDurationMicrosecond=indexOfValue;IndexOfVisitor.prototype.visitDurationNanosecond=indexOfValue;IndexOfVisitor.prototype.visitFixedSizeList=indexOfValue;IndexOfVisitor.prototype.visitMap=indexOfValue;
24const instance$3=new IndexOfVisitor;class IteratorVisitor extends Visitor{}function vectorIterator(n){const{type:i}=n;if(n.nullCount===0&&n.stride===1&&(DataType.isInt(i)&&i.bitWidth!==64||DataType.isTime(i)&&i.bitWidth!==64||DataType.isFloat(i)&&i.precision!==Precision.HALF))return new ChunkedIterator(n.data.length,e=>{const o=n.data[e];return o.values.subarray(0,o.length)[Symbol.iterator]()});let t=0;return new ChunkedIterator(n.data.length,e=>{const d=n.data[e].length,p=n.slice(t,t+d);return t+=d,new VectorIterator(p)})}class VectorIterator{constructor(i){this.vector=i,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}IteratorVisitor.prototype.visitNull=vectorIterator;IteratorVisitor.prototype.visitBool=vectorIterator;IteratorVisitor.prototype.visitInt=vectorIterator;IteratorVisitor.prototype.visitInt8=vectorIterator;IteratorVisitor.prototype.visitInt16=vectorIterator;IteratorVisitor.prototype.visitInt32=vectorIterator;IteratorVisitor.prototype.visitInt64=vectorIterator;IteratorVisitor.prototype.visitUint8=vectorIterator;IteratorVisitor.prototype.visitUint16=vectorIterator;IteratorVisitor.prototype.visitUint32=vectorIterator;IteratorVisitor.prototype.visitUint64=vectorIterator;IteratorVisitor.prototype.visitFloat=vectorIterator;IteratorVisitor.prototype.visitFloat16=vectorIterator;IteratorVisitor.prototype.visitFloat32=vectorIterator;IteratorVisitor.prototype.visitFloat64=vectorIterator;IteratorVisitor.prototype.visitUtf8=vectorIterator;IteratorVisitor.prototype.visitLargeUtf8=vectorIterator;IteratorVisitor.prototype.visitBinary=vectorIterator;IteratorVisitor.prototype.visitLargeBinary=vectorIterator;IteratorVisitor.prototype.visitFixedSizeBinary=vectorIterator;IteratorVisitor.prototype.visitDate=vectorIterator;IteratorVisitor.prototype.visitDateDay=vectorIterator;IteratorVisitor.prototype.visitDateMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimestamp=vectorIterator;IteratorVisitor.prototype.visitTimestampSecond=vectorIterator;IteratorVisitor.prototype.visitTimestampMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimestampMicrosecond=vectorIterator;IteratorVisitor.prototype.visitTimestampNanosecond=vectorIterator;IteratorVisitor.prototype.visitTime=vectorIterator;IteratorVisitor.prototype.visitTimeSecond=vectorIterator;IteratorVisitor.prototype.visitTimeMillisecond=vectorIterator;IteratorVisitor.prototype.visitTimeMicrosecond=vectorIterator;IteratorVisitor.prototype.visitTimeNanosecond=vectorIterator;IteratorVisitor.prototype.visitDecimal=vectorIterator;IteratorVisitor.prototype.visitList=vectorIterator;IteratorVisitor.prototype.visitStruct=vectorIterator;IteratorVisitor.prototype.visitUnion=vectorIterator;IteratorVisitor.prototype.visitDenseUnion=vectorIterator;IteratorVisitor.prototype.visitSparseUnion=vectorIterator;IteratorVisitor.prototype.visitDictionary=vectorIterator;IteratorVisitor.prototype.visitInterval=vectorIterator;IteratorVisitor.prototype.visitIntervalDayTime=vectorIterator;IteratorVisitor.prototype.visitIntervalYearMonth=vectorIterator;IteratorVisitor.prototype.visitIntervalMonthDayNano=vectorIterator;IteratorVisitor.prototype.visitDuration=vectorIterator;IteratorVisitor.prototype.visitDurationSecond=vectorIterator;IteratorVisitor.prototype.visitDurationMillisecond=vectorIterator;IteratorVisitor.prototype.visitDurationMicrosecond=vectorIterator;IteratorVisitor.prototype.visitDurationNanosecond=vectorIterator;IteratorVisitor.prototype.visitFixedSizeList=vectorIterator;IteratorVisitor.prototype.visitMap=vectorIterator;const instance$2=new IteratorVisitor;var _a$3;const visitorsByTypeId={},vectorPrototypesByTypeId={};class Vector{constructor(i){var t,e,o;const d=i[0]instanceof Vector?i.flatMap(h=>h.data):i;if(d.length===0||d.some(h=>!(h instanceof Data)))throw new TypeError("Vector constructor expects an Array of Data instances.");const p=(t=d[0])===null||t===void 0?void 0:t.type;switch(d.length){case 0:this._offsets=[0];break;case 1:{const{get:h,set:y,indexOf:E}=visitorsByTypeId[p.typeId],$=d[0];this.isValid=M=>isChunkedValid($,M),this.get=M=>h($,M),this.set=(M,X)=>y($,M,X),this.indexOf=M=>E($,M),this._offsets=[0,$.length];break}default:Object.setPrototypeOf(this,vectorPrototypesByTypeId[p.typeId]),this._offsets=computeChunkOffsets(d);break}this.data=d,this.type=p,this.stride=strideForType(p),this.numChildren=(o=(e=p.children)===null||e===void 0?void 0:e.length)!==null&&o!==void 0?o:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((i,t)=>i+t.byteLength,0)}get nullable(){return computeChunkNullable(this.data)}get nullCount(){return computeChunkNullCounts(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${Type[this.type.typeId]}Vector`}isValid(i){return!1}get(i){return null}at(i){return this.get(wrapIndex(i,this.length))}set(i,t){}indexOf(i,t){return-1}includes(i,t){return this.indexOf(i,t)>-1}[Symbol.iterator](){return instance$2.visit(this)}concat(...i){return new Vector(this.data.concat(i.flatMap(t=>t.data).flat(Number.POSITIVE_INFINITY)))}slice(i,t){return new Vector(clampRange(this,i,t,({data:e,_offsets:o},d,p)=>sliceChunks$1(e,o,d,p)))}toJSON(){return[...this]}toArray(){const{type:i,data:t,length:e,stride:o,ArrayType:d}=this;switch(i.typeId){case Type.Int:case Type.Float:case Type.Decimal:case Type.Time:case Type.Timestamp:switch(t.length){case 0:return new d;case 1:return t[0].values.subarray(0,e*o);default:return t.reduce((p,{values:h,length:y})=>(p.array.set(h.subarray(0,y*o),p.offset),p.offset+=y*o,p),{array:new d(e*o),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(i){var t;return this.getChildAt((t=this.type.children)===null||t===void 0?void 0:t.findIndex(e=>e.name===i))}getChildAt(i){return i>-1&&i<this.numChildren?new Vector(this.data.map(({children:t})=>t[i])):null}get isMemoized(){return DataType.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(DataType.isDictionary(this.type)){const i=new MemoizedVector(this.data[0].dictionary),t=this.data.map(e=>{const o=e.clone();return o.dictionary=i,o});return new Vector(t)}return new MemoizedVector(this)}unmemoize(){if(DataType.isDictionary(this.type)&&this.isMemoized){const i=this.data[0].dictionary.unmemoize(),t=this.data.map(e=>{const o=e.clone();return o.dictionary=i,o});return new Vector(t)}return this}}_a$3=Symbol.toStringTag;Vector[_a$3]=(n=>{n.type=DataType.prototype,n.data=[],n.length=0,n.stride=1,n.numChildren=0,n._offsets=new Uint32Array([0]),n[Symbol.isConcatSpreadable]=!0;const i=Object.keys(Type).map(t=>Type[t]).filter(t=>typeof t=="number"&&t!==Type.NONE);for(const t of i){const e=instance$4.getVisitFnByTypeId(t),o=instance$5.getVisitFnByTypeId(t),d=instance$3.getVisitFnByTypeId(t);visitorsByTypeId[t]={get:e,set:o,indexOf:d},vectorPrototypesByTypeId[t]=Object.create(n,{isValid:{value:wrapChunkedCall1(isChunkedValid)},get:{value:wrapChunkedCall1(instance$4.getVisitFnByTypeId(t))},set:{value:wrapChunkedCall2(instance$5.getVisitFnByTypeId(t))},indexOf:{value:wrapChunkedIndexOf(instance$3.getVisitFnByTypeId(t))}})}return"Vector"})(Vector.prototype);class MemoizedVector extends Vector{constructor(i){super(i.data);const t=this.get,e=this.set,o=this.slice,d=new Array(this.length);Object.defineProperty(this,"get",{value(p){const h=d[p];if(h!==void 0)return h;const y=t.call(this,p);return d[p]=y,y}}),Object.defineProperty(this,"set",{value(p,h){e.call(this,p,h),d[p]=h}}),Object.defineProperty(this,"slice",{value:(p,h)=>new MemoizedVector(o.call(this,p,h))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Vector(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Block{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(i,t,e,o){return i.prep(8,24),i.writeInt64(BigInt(o??0)),i.pad(4),i.writeInt32(e),i.writeInt64(BigInt(t??0)),i.offset()}}class Footer{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsFooter(i,t){return(t||new Footer).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFooter(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new Footer).__init(i.readInt32(i.position())+i.position(),i)}version(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):MetadataVersion.V1}schema(i){const t=this.bb.__offset(this.bb_pos,6);return t?(i||new Schema$2).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(i,t){const e=this.bb.__offset(this.bb_pos,8);return e?(t||new Block).__init(this.bb.__vector(this.bb_pos+e)+i*24,this.bb):null}dictionariesLength(){const i=this.bb.__offset(this.bb_pos,8);return i?this.bb.__vector_len(this.bb_pos+i):0}recordBatches(i,t){const e=this.bb.__offset(this.bb_pos,10);return e?(t||new Block).__init(this.bb.__vector(this.bb_pos+e)+i*24,this.bb):null}recordBatchesLength(){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.__vector_len(this.bb_pos+i):0}customMetadata(i,t){const e=this.bb.__offset(this.bb_pos,12);return e?(t||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}customMetadataLength(){const i=this.bb.__offset(this.bb_pos,12);return i?this.bb.__vector_len(this.bb_pos+i):0}static startFooter(i){i.startObject(5)}static addVersion(i,t){i.addFieldInt16(0,t,MetadataVersion.V1)}static addSchema(i,t){i.addFieldOffset(1,t,0)}static addDictionaries(i,t){i.addFieldOffset(2,t,0)}static startDictionariesVector(i,t){i.startVector(24,t,8)}static addRecordBatches(i,t){i.addFieldOffset(3,t,0)}static startRecordBatchesVector(i,t){i.startVector(24,t,8)}static addCustomMetadata(i,t){i.addFieldOffset(4,t,0)}static createCustomMetadataVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startCustomMetadataVector(i,t){i.startVector(4,t,4)}static endFooter(i){return i.endObject()}static finishFooterBuffer(i,t){i.finish(t)}static finishSizePrefixedFooterBuffer(i,t){i.finish(t,void 0,!0)}}let Schema$1=class ui{constructor(i=[],t,e,o=MetadataVersion.V5){this.fields=i||[],this.metadata=t||new Map,e||(e=generateDictionaryMap(this.fields)),this.dictionaries=e,this.metadataVersion=o}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(i=>i.name)}toString(){return`Schema<{ ${this.fields.map((i,t)=>`${t}: ${i}`).join(", ")} }>`}select(i){const t=new Set(i),e=this.fields.filter(o=>t.has(o.name));return new ui(e,this.metadata)}selectAt(i){const t=i.map(e=>
24this.fields[e]).filter(Boolean);return new ui(t,this.metadata)}assign(...i){const t=i[0]instanceof ui?i[0]:Array.isArray(i[0])?new ui(i[0]):new ui(i),e=[...this.fields],o=mergeMaps(mergeMaps(new Map,this.metadata),t.metadata),d=t.fields.filter(h=>{const y=e.findIndex(E=>E.name===h.name);return~y?(e[y]=h.clone({metadata:mergeMaps(mergeMaps(new Map,e[y].metadata),h.metadata)}))&&!1:!0}),p=generateDictionaryMap(d,new Map);return new ui([...e,...d],o,new Map([...this.dictionaries,...p]))}};Schema$1.prototype.fields=null;Schema$1.prototype.metadata=null;Schema$1.prototype.dictionaries=null;class Field{static new(...i){let[t,e,o,d]=i;return i[0]&&typeof i[0]=="object"&&({name:t}=i[0],e===void 0&&(e=i[0].type),o===void 0&&(o=i[0].nullable),d===void 0&&(d=i[0].metadata)),new Field(`${t}`,e,o,d)}constructor(i,t,e=!1,o){this.name=i,this.type=t,this.nullable=e,this.metadata=o||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...i){let[t,e,o,d]=i;return!i[0]||typeof i[0]!="object"?[t=this.name,e=this.type,o=this.nullable,d=this.metadata]=i:{name:t=this.name,type:e=this.type,nullable:o=this.nullable,metadata:d=this.metadata}=i[0],Field.new(t,e,o,d)}}Field.prototype.type=null;Field.prototype.name=null;Field.prototype.nullable=null;Field.prototype.metadata=null;function mergeMaps(n,i){return new Map([...n||new Map,...i||new Map])}function generateDictionaryMap(n,i=new Map){for(let t=-1,e=n.length;++t<e;){const d=n[t].type;if(DataType.isDictionary(d)){if(!i.has(d.id))i.set(d.id,d.dictionary);else if(i.get(d.id)!==d.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}d.children&&d.children.length>0&&generateDictionaryMap(d.children,i)}return i}var Builder$1=Builder$2,ByteBuffer$1=ByteBuffer$2;class Footer_{static decode(i){i=new ByteBuffer$1(toUint8Array(i));const t=Footer.getRootAsFooter(i),e=Schema$1.decode(t.schema(),new Map,t.version());return new OffHeapFooter(e,t)}static encode(i){const t=new Builder$1,e=Schema$1.encode(t,i.schema);Footer.startRecordBatchesVector(t,i.numRecordBatches);for(const p of[...i.recordBatches()].slice().reverse())FileBlock.encode(t,p);const o=t.endVector();Footer.startDictionariesVector(t,i.numDictionaries);for(const p of[...i.dictionaryBatches()].slice().reverse())FileBlock.encode(t,p);const d=t.endVector();return Footer.startFooter(t),Footer.addSchema(t,e),Footer.addVersion(t,MetadataVersion.V5),Footer.addRecordBatches(t,o),Footer.addDictionaries(t,d),Footer.finishFooterBuffer(t,Footer.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(i,t=MetadataVersion.V5,e,o){this.schema=i,this.version=t,e&&(this._recordBatches=e),o&&(this._dictionaryBatches=o)}*recordBatches(){for(let i,t=-1,e=this.numRecordBatches;++t<e;)(i=this.getRecordBatch(t))&&(yield i)}*dictionaryBatches(){for(let i,t=-1,e=this.numDictionaries;++t<e;)(i=this.getDictionaryBatch(t))&&(yield i)}getRecordBatch(i){return i>=0&&i<this.numRecordBatches&&this._recordBatches[i]||null}getDictionaryBatch(i){return i>=0&&i<this.numDictionaries&&this._dictionaryBatches[i]||null}}class OffHeapFooter extends Footer_{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(i,t){super(i,t.version()),this._footer=t}getRecordBatch(i){if(i>=0&&i<this.numRecordBatches){const t=this._footer.recordBatches(i);if(t)return FileBlock.decode(t)}return null}getDictionaryBatch(i){if(i>=0&&i<this.numDictionaries){const t=this._footer.dictionaries(i);if(t)return FileBlock.decode(t)}return null}}class FileBlock{static decode(i){return new FileBlock(i.metaDataLength(),i.bodyLength(),i.offset())}static encode(i,t){const{metaDataLength:e}=t,o=BigInt(t.offset),d=BigInt(t.bodyLength);return Block.createBlock(i,o,e,d)}constructor(i,t,e){this.metaDataLength=i,this.offset=bigIntToNumber(e),this.bodyLength=bigIntToNumber(t)}}let Message$1=class dr{constructor(){this.bb=null,this.bb_pos=0}__init(i,t){return this.bb_pos=i,this.bb=t,this}static getRootAsMessage(i,t){return(t||new dr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsMessage(i,t){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(t||new dr).__init(i.readInt32(i.position())+i.position(),i)}version(){const i=this.bb.__offset(this.bb_pos,4);return i?this.bb.readInt16(this.bb_pos+i):MetadataVersion.V1}headerType(){const i=this.bb.__offset(this.bb_pos,6);return i?this.bb.readUint8(this.bb_pos+i):MessageHeader.NONE}header(i){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(i,this.bb_pos+t):null}bodyLength(){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.readInt64(this.bb_pos+i):BigInt("0")}customMetadata(i,t){const e=this.bb.__offset(this.bb_pos,12);return e?(t||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+e)+i*4),this.bb):null}customMetadataLength(){const i=this.bb.__offset(this.bb_pos,12);return i?this.bb.__vector_len(this.bb_pos+i):0}static startMessage(i){i.startObject(5)}static addVersion(i,t){i.addFieldInt16(0,t,MetadataVersion.V1)}
24static addHeaderType(i,t){i.addFieldInt8(1,t,MessageHeader.NONE)}static addHeader(i,t){i.addFieldOffset(2,t,0)}static addBodyLength(i,t){i.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(i,t){i.addFieldOffset(4,t,0)}static createCustomMetadataVector(i,t){i.startVector(4,t.length,4);for(let e=t.length-1;e>=0;e--)i.addOffset(t[e]);return i.endVector()}static startCustomMetadataVector(i,t){i.startVector(4,t,4)}static endMessage(i){return i.endObject()}static finishMessageBuffer(i,t){i.finish(t)}static finishSizePrefixedMessageBuffer(i,t){i.finish(t,void 0,!0)}static createMessage(i,t,e,o,d,p){return dr.startMessage(i),dr.addVersion(i,t),dr.addHeaderType(i,e),dr.addHeader(i,o),dr.addBodyLength(i,d),dr.addCustomMetadata(i,p),dr.endMessage(i)}};class TypeAssembler extends Visitor{visit(i,t){return i==null||t==null?void 0:super.visit(i,t)}visitNull(i,t){return Null$1.startNull(t),Null$1.endNull(t)}visitInt(i,t){return Int.startInt(t),Int.addBitWidth(t,i.bitWidth),Int.addIsSigned(t,i.isSigned),Int.endInt(t)}visitFloat(i,t){return FloatingPoint.startFloatingPoint(t),FloatingPoint.addPrecision(t,i.precision),FloatingPoint.endFloatingPoint(t)}visitBinary(i,t){return Binary$1.startBinary(t),Binary$1.endBinary(t)}visitLargeBinary(i,t){return LargeBinary$1.startLargeBinary(t),LargeBinary$1.endLargeBinary(t)}visitBool(i,t){return Bool$1.startBool(t),Bool$1.endBool(t)}visitUtf8(i,t){return Utf8$1.startUtf8(t),Utf8$1.endUtf8(t)}visitLargeUtf8(i,t){return LargeUtf8$1.startLargeUtf8(t),LargeUtf8$1.endLargeUtf8(t)}visitDecimal(i,t){return Decimal$1.startDecimal(t),Decimal$1.addScale(t,i.scale),Decimal$1.addPrecision(t,i.precision),Decimal$1.addBitWidth(t,i.bitWidth),Decimal$1.endDecimal(t)}visitDate(i,t){return Date$1.startDate(t),Date$1.addUnit(t,i.unit),Date$1.endDate(t)}visitTime(i,t){return Time.startTime(t),Time.addUnit(t,i.unit),Time.addBitWidth(t,i.bitWidth),Time.endTime(t)}visitTimestamp(i,t){const e=i.timezone&&t.createString(i.timezone)||void 0;return Timestamp.startTimestamp(t),Timestamp.addUnit(t,i.unit),e!==void 0&&Timestamp.addTimezone(t,e),Timestamp.endTimestamp(t)}visitInterval(i,t){return Interval.startInterval(t),Interval.addUnit(t,i.unit),Interval.endInterval(t)}visitDuration(i,t){return Duration$1.startDuration(t),Duration$1.addUnit(t,i.unit),Duration$1.endDuration(t)}visitList(i,t){return List$1.startList(t),List$1.endList(t)}visitStruct(i,t){return Struct_.startStruct_(t),Struct_.endStruct_(t)}visitUnion(i,t){Union.startTypeIdsVector(t,i.typeIds.length);const e=Union.createTypeIdsVector(t,i.typeIds);return Union.startUnion(t),Union.addMode(t,i.mode),Union.addTypeIds(t,e),Union.endUnion(t)}visitDictionary(i,t){const e=this.visit(i.indices,t);return DictionaryEncoding.startDictionaryEncoding(t),DictionaryEncoding.addId(t,BigInt(i.id)),DictionaryEncoding.addIsOrdered(t,i.isOrdered),e!==void 0&&DictionaryEncoding.addIndexType(t,e),DictionaryEncoding.endDictionaryEncoding(t)}visitFixedSizeBinary(i,t){return FixedSizeBinary$1.startFixedSizeBinary(t),FixedSizeBinary$1.addByteWidth(t,i.byteWidth),FixedSizeBinary$1.endFixedSizeBinary(t)}visitFixedSizeList(i,t){return FixedSizeList$1.startFixedSizeList(t),FixedSizeList$1.addListSize(t,i.listSize),FixedSizeList$1.endFixedSizeList(t)}visitMap(i,t){return Map$1.startMap(t),Map$1.addKeysSorted(t,i.keysSorted),Map$1.endMap(t)}}const instance$1=new TypeAssembler;function schemaFromJSON(n,i=new Map){return new Schema$1(schemaFieldsFromJSON(n,i),customMetadataFromJSON(n.metadata),i)}function recordBatchFromJSON(n){return new RecordBatch$1(n.count,fieldNodesFromJSON(n.columns),buffersFromJSON(n.columns),null)}function dictionaryBatchFromJSON(n){return new DictionaryBatch(recordBatchFromJSON(n.data),n.id,n.isDelta)}function schemaFieldsFromJSON(n,i){return(n.fields||[]).filter(Boolean).map(t=>Field.fromJSON(t,i))}function fieldChildrenFromJSON(n,i){return(n.children||[]).filter(Boolean).map(t=>Field.fromJSON(t,i))}function fieldNodesFromJSON(n){return(n||[]).reduce((i,t)=>[...i,new FieldNode(t.count,nullCountFromJSON(t.VALIDITY)),...fieldNodesFromJSON(t.children)],[])}function buffersFromJSON(n,i=[]){for(let t=-1,e=(n||[]).length;++t<e;){const o=n[t];o.VALIDITY&&i.push(new BufferRegion(i.length,o.VALIDITY.length)),o.TYPE_ID&&i.push(new BufferRegion(i.length,o.TYPE_ID.length)),o.OFFSET&&i.push(new BufferRegion(i.length,o.OFFSET.length)),o.DATA&&i.push(new BufferRegion(i.length,o.DATA.length)),i=buffersFromJSON(o.children,i)}return i}
24function nullCountFromJSON(n){return(n||[]).reduce((i,t)=>i+ +(t===0),0)}function fieldFromJSON(n,i){let t,e,o,d,p,h;return!i||!(d=n.dictionary)?(p=typeFromJSON(n,fieldChildrenFromJSON(n,i)),o=new Field(n.name,p,n.nullable,customMetadataFromJSON(n.metadata))):i.has(t=d.id)?(e=(e=d.indexType)?indexTypeFromJSON(e):new Int32,h=new Dictionary(i.get(t),e,t,d.isOrdered),o=new Field(n.name,h,n.nullable,customMetadataFromJSON(n.metadata))):(e=(e=d.indexType)?indexTypeFromJSON(e):new Int32,i.set(t,p=typeFromJSON(n,fieldChildrenFromJSON(n,i))),h=new Dictionary(p,e,t,d.isOrdered),o=new Field(n.name,h,n.nullable,customMetadataFromJSON(n.metadata))),o||null}function customMetadataFromJSON(n=[]){return new Map(n.map(({key:i,value:t})=>[i,t]))}function indexTypeFromJSON(n){return new Int_(n.isSigned,n.bitWidth)}function typeFromJSON(n,i){const t=n.type.name;switch(t){case"NONE":return new Null;case"null":return new Null;case"binary":return new Binary;case"largebinary":return new LargeBinary;case"utf8":return new Utf8;case"largeutf8":return new LargeUtf8;case"bool":return new Bool;case"list":return new List((i||[])[0]);case"struct":return new Struct(i||[]);case"struct_":return new Struct(i||[])}switch(t){case"int":{const e=n.type;return new Int_(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=n.type;return new Float(Precision[e.precision])}case"decimal":{const e=n.type;return new Decimal(e.scale,e.precision,e.bitWidth)}case"date":{const e=n.type;return new Date_(DateUnit[e.unit])}case"time":{const e=n.type;return new Time_(TimeUnit[e.unit],e.bitWidth)}case"timestamp":{const e=n.type;return new Timestamp_(TimeUnit[e.unit],e.timezone)}case"interval":{const e=n.type;return new Interval_(IntervalUnit[e.unit])}case"duration":{const e=n.type;return new Duration(TimeUnit[e.unit])}case"union":{const e=n.type,[o,...d]=(e.mode+"").toLowerCase(),p=o.toUpperCase()+d.join("");return new Union_(UnionMode[p],e.typeIds||[],i||[])}case"fixedsizebinary":{const e=n.type;return new FixedSizeBinary(e.byteWidth)}case"fixedsizelist":{const e=n.type;return new FixedSizeList(e.listSize,(i||[])[0])}case"map":{const e=n.type;return new Map_((i||[])[0],e.keysSorted)}}throw new Error(`Unrecognized type: "${t}"`)}var Builder=Builder$2,ByteBuffer=ByteBuffer$2;class Message{static fromJSON(i,t){const e=new Message(0,MetadataVersion.V5,t);return e._createHeader=messageHeaderFromJSON(i,t),e}static decode(i){i=new ByteBuffer(toUint8Array(i));const t=Message$1.getRootAsMessage(i),e=t.bodyLength(),o=t.version(),d=t.headerType(),p=new Message(e,o,d);return p._createHeader=decodeMessageHeader(t,d),p}static encode(i){const t=new Builder;let e=-1;return i.isSchema()?e=Schema$1.encode(t,i.header()):i.isRecordBatch()?e=RecordBatch$1.encode(t,i.header()):i.isDictionaryBatch()&&(e=DictionaryBatch.encode(t,i.header())),Message$1.startMessage(t),Message$1.addVersion(t,MetadataVersion.V5),Message$1.addHeader(t,e),Message$1.addHeaderType(t,i.headerType),Message$1.addBodyLength(t,BigInt(i.bodyLength)),Message$1.finishMessageBuffer(t,Message$1.endMessage(t)),t.asUint8Array()}static from(i,t=0){if(i instanceof Schema$1)return new Message(0,MetadataVersion.V5,MessageHeader.Schema,i);if(i instanceof RecordBatch$1)return new Message(t,MetadataVersion.V5,MessageHeader.RecordBatch,i);if(i instanceof DictionaryBatch)return new Message(t,MetadataVersion.V5,MessageHeader.DictionaryBatch,i);throw new Error(`Unrecognized Message header: ${i}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===MessageHeader.Schema}isRecordBatch(){return this.headerType===MessageHeader.RecordBatch}isDictionaryBatch(){return this.headerType===MessageHeader.DictionaryBatch}constructor(i,t,e,o){this._version=t,this._headerType=e,this.body=new Uint8Array(0),this._compression=o?.compression,o&&(this._createHeader=()=>o),this._bodyLength=bigIntToNumber(i)}}let RecordBatch$1=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}constructor(i,t,e,o){this._nodes=t,this._buffers=e,this._length=bigIntToNumber(i),this._compression=o}};class DictionaryBatch{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(i,t,e=!1){this._data=i,this._isDelta=e,this._id=bigIntToNumber(t)}}class BufferRegion{constructor(i,t){this.offset=bigIntToNumber(i),this.length=bigIntToNumber(t)}}
24class FieldNode{constructor(i,t){this.length=bigIntToNumber(i),this.nullCount=bigIntToNumber(t)}}class BodyCompression{constructor(i,t=BodyCompressionMethod.BUFFER){this.type=i,this.method=t}}function messageHeaderFromJSON(n,i){return(()=>{switch(i){case MessageHeader.Schema:return Schema$1.fromJSON(n);case MessageHeader.RecordBatch:return RecordBatch$1.fromJSON(n);case MessageHeader.DictionaryBatch:return DictionaryBatch.fromJSON(n)}throw new Error(`Unrecognized Message type: { name: ${MessageHeader[i]}, type: ${i} }`)})}function decodeMessageHeader(n,i){return(()=>{switch(i){case MessageHeader.Schema:return Schema$1.decode(n.header(new Schema$2),new Map,n.version());case MessageHeader.RecordBatch:return RecordBatch$1.decode(n.header(new RecordBatch$2),n.version());case MessageHeader.DictionaryBatch:return DictionaryBatch.decode(n.header(new DictionaryBatch$1),n.version())}throw new Error(`Unrecognized Message type: { name: ${MessageHeader[i]}, type: ${i} }`)})}Field.encode=encodeField;Field.decode=decodeField;Field.fromJSON=fieldFromJSON;Schema$1.encode=encodeSchema;Schema$1.decode=decodeSchema;Schema$1.fromJSON=schemaFromJSON;RecordBatch$1.encode=encodeRecordBatch;RecordBatch$1.decode=decodeRecordBatch;RecordBatch$1.fromJSON=recordBatchFromJSON;DictionaryBatch.encode=encodeDictionaryBatch;DictionaryBatch.decode=decodeDictionaryBatch;DictionaryBatch.fromJSON=dictionaryBatchFromJSON;FieldNode.encode=encodeFieldNode;FieldNode.decode=decodeFieldNode;BufferRegion.encode=encodeBufferRegion;BufferRegion.decode=decodeBufferRegion;BodyCompression.encode=encodeBodyCompression;BodyCompression.decode=decodeBodyCompression;function decodeSchema(n,i=new Map,t=MetadataVersion.V5){const e=decodeSchemaFields(n,i);return new Schema$1(e,decodeCustomMetadata(n),i,t)}function decodeRecordBatch(n,i=MetadataVersion.V5){return new RecordBatch$1(n.length(),decodeFieldNodes(n),decodeBuffers(n,i),decodeBodyCompression(n.compression()))}function decodeDictionaryBatch(n,i=MetadataVersion.V5){return new DictionaryBatch(RecordBatch$1.decode(n.data(),i),n.id(),n.isDelta())}function decodeBufferRegion(n){return new BufferRegion(n.offset(),n.length())}function decodeFieldNode(n){return new FieldNode(n.length(),n.nullCount())}function decodeFieldNodes(n){const i=[];for(let t,e=-1,o=-1,d=n.nodesLength();++e<d;)(t=n.nodes(e))&&(i[++o]=FieldNode.decode(t));return i}function decodeBuffers(n,i){const t=[];for(let e,o=-1,d=-1,p=n.buffersLength();++o<p;)(e=n.buffers(o))&&(i<MetadataVersion.V4&&(e.bb_pos+=8*(o+1)),t[++d]=BufferRegion.decode(e));return t}function decodeSchemaFields(n,i){const t=[];for(let e,o=-1,d=-1,p=n.fieldsLength();++o<p;)(e=n.fields(o))&&(t[++d]=Field.decode(e,i));return t}function decodeFieldChildren(n,i){const t=[];for(let e,o=-1,d=-1,p=n.childrenLength();++o<p;)(e=n.children(o))&&(t[++d]=Field.decode(e,i));return t}function decodeField(n,i){let t,e,o,d,p,h;return!i||!(h=n.dictionary())?(o=decodeFieldType(n,decodeFieldChildren(n,i)),e=new Field(n.name(),o,n.nullable(),decodeCustomMetadata(n))):i.has(t=bigIntToNumber(h.id()))?(d=(d=h.indexType())?decodeIndexType(d):new Int32,p=new Dictionary(i.get(t),d,t,h.isOrdered()),e=new Field(n.name(),p,n.nullable(),decodeCustomMetadata(n))):(d=(d=h.indexType())?decodeIndexType(d):new Int32,i.set(t,o=decodeFieldType(n,decodeFieldChildren(n,i))),p=new Dictionary(o,d,t,h.isOrdered()),e=new Field(n.name(),p,n.nullable(),decodeCustomMetadata(n))),e||null}function decodeCustomMetadata(n){const i=new Map;if(n)for(let t,e,o=-1,d=Math.trunc(n.customMetadataLength());++o<d;)(t=n.customMetadata(o))&&(e=t.key())!=null&&i.set(e,t.value());return i}function decodeIndexType(n){return new Int_(n.isSigned(),n.bitWidth())}function decodeFieldType(n,i){const t=n.typeType();switch(t){case Type$1.NONE:return new Null;case Type$1.Null:return new Null;case Type$1.Binary:return new Binary;case Type$1.LargeBinary:return new LargeBinary;case Type$1.Utf8:return new Utf8;case Type$1.LargeUtf8:return new LargeUtf8;case Type$1.Bool:return new Bool;case Type$1.List:return new List((i||[])[0]);case Type$1.Struct_:return new Struct(i||[])}switch(t){case Type$1.Int:{const e=n.type(new Int);return new Int_(e.isSigned(),e.bitWidth())}case Type$1.FloatingPoint:{const e=n.type(new FloatingPoint);return new Float(e.precision())}
24case Type$1.Decimal:{const e=n.type(new Decimal$1);return new Decimal(e.scale(),e.precision(),e.bitWidth())}case Type$1.Date:{const e=n.type(new Date$1);return new Date_(e.unit())}case Type$1.Time:{const e=n.type(new Time);return new Time_(e.unit(),e.bitWidth())}case Type$1.Timestamp:{const e=n.type(new Timestamp);return new Timestamp_(e.unit(),e.timezone())}case Type$1.Interval:{const e=n.type(new Interval);return new Interval_(e.unit())}case Type$1.Duration:{const e=n.type(new Duration$1);return new Duration(e.unit())}case Type$1.Union:{const e=n.type(new Union);return new Union_(e.mode(),e.typeIdsArray()||[],i||[])}case Type$1.FixedSizeBinary:{const e=n.type(new FixedSizeBinary$1);return new FixedSizeBinary(e.byteWidth())}case Type$1.FixedSizeList:{const e=n.type(new FixedSizeList$1);return new FixedSizeList(e.listSize(),(i||[])[0])}case Type$1.Map:{const e=n.type(new Map$1);return new Map_((i||[])[0],e.keysSorted())}}throw new Error(`Unrecognized type: "${Type$1[t]}" (${t})`)}function decodeBodyCompression(n){return n?new BodyCompression(n.codec(),n.method()):null}function encodeSchema(n,i){const t=i.fields.map(d=>Field.encode(n,d));Schema$2.startFieldsVector(n,t.length);const e=Schema$2.createFieldsVector(n,t),o=i.metadata&&i.metadata.size>0?Schema$2.createCustomMetadataVector(n,[...i.metadata].map(([d,p])=>{const h=n.createString(`${d}`),y=n.createString(`${p}`);return KeyValue.startKeyValue(n),KeyValue.addKey(n,h),KeyValue.addValue(n,y),KeyValue.endKeyValue(n)})):-1;return Schema$2.startSchema(n),Schema$2.addFields(n,e),Schema$2.addEndianness(n,platformIsLittleEndian?Endianness.Little:Endianness.Big),o!==-1&&Schema$2.addCustomMetadata(n,o),Schema$2.endSchema(n)}function encodeField(n,i){let t=-1,e=-1,o=-1;const d=i.type;let p=i.typeId;DataType.isDictionary(d)?(p=d.dictionary.typeId,o=instance$1.visit(d,n),e=instance$1.visit(d.dictionary,n)):e=instance$1.visit(d,n);const h=(d.children||[]).map($=>Field.encode(n,$)),y=Field$1.createChildrenVector(n,h),E=i.metadata&&i.metadata.size>0?Field$1.createCustomMetadataVector(n,[...i.metadata].map(([$,M])=>{const X=n.createString(`${$}`),Z=n.createString(`${M}`);return KeyValue.startKeyValue(n),KeyValue.addKey(n,X),KeyValue.addValue(n,Z),KeyValue.endKeyValue(n)})):-1;return i.name&&(t=n.createString(i.name)),Field$1.startField(n),Field$1.addType(n,e),Field$1.addTypeType(n,p),Field$1.addChildren(n,y),Field$1.addNullable(n,!!i.nullable),t!==-1&&Field$1.addName(n,t),o!==-1&&Field$1.addDictionary(n,o),E!==-1&&Field$1.addCustomMetadata(n,E),Field$1.endField(n)}function encodeRecordBatch(n,i){const t=i.nodes||[],e=i.buffers||[];RecordBatch$2.startNodesVector(n,t.length);for(const h of t.slice().reverse())FieldNode.encode(n,h);const o=n.endVector();RecordBatch$2.startBuffersVector(n,e.length);for(const h of e.slice().reverse())BufferRegion.encode(n,h);const d=n.endVector();let p=null;return i.compression!==null&&(p=encodeBodyCompression(n,i.compression)),RecordBatch$2.startRecordBatch(n),RecordBatch$2.addLength(n,BigInt(i.length)),RecordBatch$2.addNodes(n,o),RecordBatch$2.addBuffers(n,d),i.compression!==null&&p&&RecordBatch$2.addCompression(n,p),RecordBatch$2.endRecordBatch(n)}function encodeBodyCompression(n,i){return BodyCompression$1.startBodyCompression(n),BodyCompression$1.addCodec(n,i.type),BodyCompression$1.addMethod(n,i.method),BodyCompression$1.endBodyCompression(n)}function encodeDictionaryBatch(n,i){const t=RecordBatch$1.encode(n,i.data);return DictionaryBatch$1.startDictionaryBatch(n),DictionaryBatch$1.addId(n,BigInt(i.id)),DictionaryBatch$1.addIsDelta(n,i.isDelta),DictionaryBatch$1.addData(n,t),DictionaryBatch$1.endDictionaryBatch(n)}function encodeFieldNode(n,i){return FieldNode$1.createFieldNode(n,BigInt(i.length),BigInt(i.nullCount))}function encodeBufferRegion(n,i){return Buffer$1.createBuffer(n,BigInt(i.offset),BigInt(i.length))}const platformIsLittleEndian=(()=>{const n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256})(),ITERATOR_DONE=Object.freeze({done:!0,value:void 0});class ArrowJSON{constructor(i){this._json=i}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class ReadableInterop{tee(){return this._getDOMStream().tee()}pipe(i,t){return this._getNodeStream().pipe(i,t)}pipeTo(i,t){return this._getDOMStream().pipeTo(i,t)}pipeThrough(i,t){return this._getDOMStream().pipeThrough(i,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class AsyncQueue extends ReadableInterop{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(i=>this._closedPromiseResolve=i)}get closed(){return this._closedPromise}cancel(i){return __awaiter(this,void 0,void 0,function*(){yield this.return(i)})}write(i){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(i):this.resolvers.shift().resolve({done:!1,value:i}))}abort(i){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:i}:this.resolvers.shift().reject({done:!0,value:i}))}close(){if(this._closedPromiseResolve){const{resolvers:i}=this;for(;i.length>0;)i.shift().resolve(ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(i){return streamAdapters.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,i)}toNodeStream(i){return streamAdapters.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,i)}throw(i){return __awaiter(this,void 0,void 0,function*(){return yield this.abort(i),ITERATOR_DONE})}return(i){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),ITERATOR_DONE})}read(i){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(i,"read")).value})}peek(i){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(i,"peek")).value})}next(...i){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,e)=>{this.resolvers.push({resolve:t,reject:e})}):Promise.resolve(ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class AsyncByteQueue extends AsyncQueue{write(i){if((i=toUint8Array(i)).byteLength>0)return super.write(i)}toString(i=!1){return i?decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(decodeUtf8)}toUint8Array(i=!1){return i?joinUint8Arrays(this._values)[0]:__awaiter(this,void 0,void 0,function*(){var t,e,o,d;const p=[];let h=0;try{for(var y=!0,E=__asyncValues(this),$;$=yield E.next(),t=$.done,!t;y=!0){d=$.value,y=!1;const M=d;p.push(M),h+=M.byteLength}}catch(M){e={error:M}}finally{try{!y&&!t&&(o=E.return)&&(yield o.call(E))}finally{if(e)throw e.error}}return joinUint8Arrays(p,h)[0]})}}class ByteStream{constructor(i){i&&(this.source=new ByteStreamSource(streamAdapters.fromIterable(i)))}[Symbol.iterator](){return this}next(i){return this.source.next(i)}throw(i){return this.source.throw(i)}return(i){return this.source.return(i)}peek(i){return this.source.peek(i)}read(i){return this.source.read(i)}}class AsyncByteStream{constructor(i){i instanceof AsyncByteStream?this.source=i.source:i instanceof AsyncByteQueue?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(i)):isReadableNodeStream(i)?this.source=new AsyncByteStreamSource(streamAdapters.fromNodeStream(i)):isReadableDOMStream(i)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(i)):isFetchResponse(i)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(i.body)):isIterable(i)?this.source=new AsyncByteStreamSource(streamAdapters.fromIterable(i)):isPromise(i)?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(i)):isAsyncIterable(i)&&(this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(i)))}[Symbol.asyncIterator](){return this}next(i){return this.source.next(i)}throw(i){return this.source.throw(i)}return(i){return this.source.return(i)}get closed(){return this.source.closed}cancel(i){return this.source.cancel(i)}peek(i){return this.source.peek(i)}read(i){return this.source.read(i)}}class ByteStreamSource{constructor(i){this.source=i}cancel(i){this.return(i)}peek(i){return this.next(i,"peek").value}read(i){return this.next(i,"read").value}next(i,t="read"){return this.source.next({cmd:t,size:i})}throw(i){return Object.create(this.source.throw&&this.source.throw(i)||ITERATOR_DONE)}return(i){return Object.create(this.source.return&&this.source.return(i)||ITERATOR_DONE)}}class AsyncByteStreamSource{constructor(i){this.source=i,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(i){return __awaiter(this,void 0,void 0,function*(){yield this.return(i)})}get closed(){return this._closedPromise}read(i){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(i,"read")).value})}peek(i){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(i,"peek")).value})}next(i){return __awaiter(this,arguments,void 0,function*(t,e="read"){return yield this.source.next({cmd:e,size:t})})}throw(i){return __awaiter(this,void 0,void 0,function*(){const t=this.source.throw&&(yield this.source.throw(i))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(i){return __awaiter(this,void 0,void 0,function*(){const t=this.source.return&&
24(yield this.source.return(i))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}class RandomAccessFile extends ByteStream{constructor(i,t){super(),this.position=0,this.buffer=toUint8Array(i),this.size=t===void 0?this.buffer.byteLength:t}readInt32(i){const{buffer:t,byteOffset:e}=this.readAt(i,4);return new DataView(t,e).getInt32(0,!0)}seek(i){return this.position=Math.min(i,this.size),i<this.size}read(i){const{buffer:t,size:e,position:o}=this;return t&&o<e?(typeof i!="number"&&(i=Number.POSITIVE_INFINITY),this.position=Math.min(e,o+Math.min(e-o,i)),t.subarray(o,this.position)):null}readAt(i,t){const e=this.buffer,o=Math.min(this.size,i+t);return e?e.subarray(i,o):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(i){return this.close(),{done:!0,value:i}}return(i){return this.close(),{done:!0,value:i}}}class AsyncRandomAccessFile extends AsyncByteStream{constructor(i,t){super(),this.position=0,this._handle=i,typeof t=="number"?this.size=t:this._pending=__awaiter(this,void 0,void 0,function*(){this.size=(yield i.stat()).size,delete this._pending})}readInt32(i){return __awaiter(this,void 0,void 0,function*(){const{buffer:t,byteOffset:e}=yield this.readAt(i,4);return new DataView(t,e).getInt32(0,!0)})}seek(i){return __awaiter(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(i,this.size),i<this.size})}read(i){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:e,position:o}=this;if(t&&o<e){typeof i!="number"&&(i=Number.POSITIVE_INFINITY);let d=o,p=0,h=0;const y=Math.min(e,d+Math.min(e-d,i)),E=new Uint8Array(Math.max(0,(this.position=y)-d));for(;(d+=h)<y&&(p+=h)<E.byteLength;)({bytesRead:h}=yield t.read(E,p,E.byteLength-p,d));return E}return null})}readAt(i,t){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:e,size:o}=this;if(e&&i+t<o){const d=Math.min(o,i+t),p=new Uint8Array(d-i);return(yield e.read(p,0,t,i)).buffer}return new Uint8Array(t)})}close(){return __awaiter(this,void 0,void 0,function*(){const i=this._handle;this._handle=null,i&&(yield i.close())})}throw(i){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:i}})}return(i){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:i}})}}const carryBit16=65536;function intAsHex(n){return n<0&&(n=4294967295+n+1),`0x${n.toString(16)}`}const kInt32DecimalDigits=8,kPowersOfTen=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class BaseInt64{constructor(i){this.buffer=i}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(i){const t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),e=new Uint32Array([i.buffer[1]>>>16,i.buffer[1]&65535,i.buffer[0]>>>16,i.buffer[0]&65535]);let o=t[3]*e[3];this.buffer[0]=o&65535;let d=o>>>16;return o=t[2]*e[3],d+=o,o=t[3]*e[2]>>>0,d+=o,this.buffer[0]+=d<<16,this.buffer[1]=d>>>0<o?carryBit16:0,this.buffer[1]+=d>>>16,this.buffer[1]+=t[1]*e[3]+t[2]*e[2]+t[3]*e[1],this.buffer[1]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0]<<16,this}_plus(i){const t=this.buffer[0]+i.buffer[0]>>>0;this.buffer[1]+=i.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(i){return this.buffer[1]<i.buffer[1]||this.buffer[1]===i.buffer[1]&&this.buffer[0]<i.buffer[0]}equals(i){return this.buffer[1]===i.buffer[1]&&this.buffer[0]==i.buffer[0]}greaterThan(i){return i.lessThan(this)}hex(){return`${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}}class Uint64 extends BaseInt64{times(i){return this._times(i),this}plus(i){return this._plus(i),this}static from(i,t=new Uint32Array(2)){return Uint64.fromString(typeof i=="string"?i:i.toString(),t)}static fromNumber(i,t=new Uint32Array(2)){return Uint64.fromString(i.toString(),t)}static fromString(i,t=new Uint32Array(2)){const e=i.length,o=new Uint64(t);for(let d=0;d<e;){const p=kInt32DecimalDigits<e-d?kInt32DecimalDigits:e-d,h=new Uint64(new Uint32Array([Number.parseInt(i.slice(d,d+p),10),0])),y=new Uint64(new Uint32Array([kPowersOfTen[p],0]));o.times(y),o.plus(h),d+=p}return o}static convertArray(i){const t=new Uint32Array(i.length*2);for(let e=-1,o=i.length;++e<o;)Uint64.from(i[e],new Uint32Array(t.buffer,t.byteOffset+2*e*4,2));return t}static multiply(i,t){return new Uint64(new Uint32Array(i.buffer)).times(t)}static add(i,t){return new Uint64(new Uint32Array(i.buffer)).plus(t)}}class Int64 extends BaseInt64{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(i){return this._times(i),this}plus(i){return this._plus(i),this}lessThan(i){const t=this.buffer[1]<<0,e=i.buffer[1]<<0;return t<e||t===e&&this.buffer[0]<i.buffer[0]}static from(i,t=new Uint32Array(2)){return Int64.fromString(typeof i=="string"?i:i.toString(),t)}static fromNumber(i,t=new Uint32Array(2)){return Int64.fromString(i.toString(),t)}static fromString(i,t=new Uint32Array(2)){const e=i.startsWith("-"),o=i.length,d=new Int64(t);for(let p=e?1:0;p<o;){const h=kInt32DecimalDigits<o-p?kInt32DecimalDigits:o-p,y=new Int64(new Uint32Array([Number.parseInt(i.slice(p,p+h),10),0])),E=new Int64(new Uint32Array([kPowersOfTen[h],0]));d.times(E),d.plus(y),p+=h}return e?d.negate():d}static convertArray(i){const t=new Uint32Array(i.length*2);for(let e=-1,o=i.length;++e<o;)Int64.from(i[e],new Uint32Array(t.buffer,t.byteOffset+2*e*4,2));return t}static multiply(i,t){return new Int64(new Uint32Array(i.buffer)).times(t)}static add(i,t){return new Int64(new Uint32Array(i.buffer)).plus(t)}}class Int128{constructor(i){this.buffer=i}high(){return new Int64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Int64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(i){const t=new Uint64(new Uint32Array([this.buffer[3],0])),e=new Uint64(new Uint32Array([this.buffer[2],0])),o=new Uint64(new Uint32Array([this.buffer[1],0])),d=new Uint64(new Uint32Array([this.buffer[0],0])),p=new Uint64(new Uint32Array([i.buffer[3],0])),h=new Uint64(new Uint32Array([i.buffer[2],0])),y=new Uint64(new Uint32Array([i.buffer[1],0])),E=new Uint64(new Uint32Array([i.buffer[0],0]));let $=Uint64.multiply(d,E);this.buffer[0]=$.low();const M=new Uint64(new Uint32Array([$.high(),0]));return $=Uint64.multiply(o,E),M.plus($),$=Uint64.multiply(d,y),M.plus($),this.buffer[1]=M.low(),this.buffer[3]=M.lessThan($)?1:0,this.buffer[2]=M.high(),new Uint64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Uint64.multiply(e,E)).plus(Uint64.multiply(o,y)).plus(Uint64.multiply(d,h)),this.buffer[3]+=Uint64.multiply(t,E).plus(Uint64.multiply(e,y)).plus(Uint64.multiply(o,h)).plus(Uint64.multiply(d,p)).low(),this}plus(i){const t=new Uint32Array(4);return t[3]=this.buffer[3]+i.buffer[3]>>>0,t[2]=this.buffer[2]+i.buffer[2]>>>0,t[1]=this.buffer[1]+i.buffer[1]>>>0,t[0]=this.buffer[0]+i.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${intAsHex(this.buffer[3])} ${intAsHex(this.buffer[2])} ${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}static multiply(i,t){return new Int128(new Uint32Array(i.buffer)).times(t)}static add(i,t){return new Int128(new Uint32Array(i.buffer)).plus(t)}static from(i,t=new Uint32Array(4)){return Int128.fromString(typeof i=="string"?i:i.toString(),t)}static fromNumber(i,t=new Uint32Array(4)){return Int128.fromString(i.toString(),t)}static fromString(i,t=new Uint32Array(4)){const e=i.startsWith("-"),o=i.length,d=new Int128(t);for(let p=e?1:0;p<o;){const h=kInt32DecimalDigits<o-p?kInt32DecimalDigits:o-p,y=new Int128(new Uint32Array([Number.parseInt(i.slice(p,p+h),10),0,0,0])),E=new Int128(new Uint32Array([kPowersOfTen[h],0,0,0]));d.times(E),d.plus(y),p+=h}return e?d.negate():d}static convertArray(i){const t=new Uint32Array(i.length*4);for(let e=-1,o=i.length;++e<o;)Int128.from(i[e],new Uint32Array(t.buffer,t.byteOffset+16*e,4));return t}}const util_int_=Object.freeze(Object.defineProperty({__proto__:null,BaseInt64,Int128,Int64,Uint64},Symbol.toStringTag,{value:"Module"}));function toIntervalDayTimeInt32Array(n){var i,t;const e=n.length,o=new Int32Array(e*2);for(let d=0,p=0;d<e;d++){const h=n[d];o[p++]=(i=h.days)!==null&&i!==void 0?i:0,o[p++]=(t=h.milliseconds)!==null&&t!==void 0?t:0}return o}function toIntervalMonthDayNanoInt32Array(n){var i,t;const e=n.length,o=new Int32Array(e*4);for(let d=0,p=0;d<e;d++){const h=n[d];o[p++]=(i=h.months)!==null&&i!==void 0?i:0,o[p++]=(t=h.days)!==null&&t!==void 0?t:0;const y=h.nanoseconds;y?(o[p++]=Number(BigInt(y)&BigInt(4294967295)),o[p++]=Number(BigInt(y)>>BigInt(32))):p+=2}return o}function toIntervalDayTimeObjects(n){const i=n.length,t=new Array(i/2);for(let e=0,o=0;e<i;e+=2)t[o++]={days:n[e],milliseconds:n[e+1]};return t}function toIntervalMonthDayNanoObjects(n,i){const t=n.length,e=new Array(t/4);for(let o=0,d=0;o<t;o+=4){const p=BigInt(n[o+3])<<BigInt(32)|BigInt(n[o+2]>>>0);e[d++]={months:n[o],days:n[o+1],nanoseconds:i?`${p}`:p}}return e}const util_interval_=Object.freeze(Object.defineProperty({__proto__:null,toIntervalDayTimeInt32Array,toIntervalDayTimeObjects,toIntervalMonthDayNanoInt32Array,toIntervalMonthDayNanoObjects},Symbol.toStringTag,{value:"Module"}));class VectorLoader extends Visitor{constructor(i,t,e,o,d=MetadataVersion.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=i,this.nodes=t,this.buffers=e,this.dictionaries=o,this.metadataVersion=d}visit(i){return super.visit(i instanceof Field?i.type:i)}visitNull(i,{length:t}=this.nextFieldNode()){return makeData({type:i,length:t})}visitBool(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitInt(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitFloat(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitUtf8(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitLargeUtf8(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitBinary(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitLargeBinary(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitFixedSizeBinary(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitDate(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitTimestamp(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitTime(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitDecimal(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitList(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),child:this.visit(i.children[0])})}visitStruct(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),children:this.visitMany(i.
24children)})}visitUnion(i,{length:t,nullCount:e}=this.nextFieldNode()){return this.metadataVersion<MetadataVersion.V5&&this.readNullBitmap(i,e),i.mode===UnionMode.Sparse?this.visitSparseUnion(i,{length:t,nullCount:e}):this.visitDenseUnion(i,{length:t,nullCount:e})}visitDenseUnion(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,typeIds:this.readTypeIds(i),valueOffsets:this.readOffsets(i),children:this.visitMany(i.children)})}visitSparseUnion(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,typeIds:this.readTypeIds(i),children:this.visitMany(i.children)})}visitDictionary(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i.indices),dictionary:this.readDictionary(i)})}visitInterval(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitDuration(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),data:this.readData(i)})}visitFixedSizeList(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),child:this.visit(i.children[0])})}visitMap(i,{length:t,nullCount:e}=this.nextFieldNode()){return makeData({type:i,length:t,nullCount:e,nullBitmap:this.readNullBitmap(i,e),valueOffsets:this.readOffsets(i),child:this.visit(i.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(i,t,e=this.nextBufferRange()){return t>0&&this.readData(i,e)||new Uint8Array(0)}readOffsets(i,t){return this.readData(i,t)}readTypeIds(i,t){return this.readData(i,t)}readData(i,{length:t,offset:e}=this.nextBufferRange()){return this.bytes.subarray(e,e+t)}readDictionary(i){return this.dictionaries.get(i.id)}}class JSONVectorLoader extends VectorLoader{constructor(i,t,e,o,d){super(new Uint8Array(0),t,e,o,d),this.sources=i}readNullBitmap(i,t,{offset:e}=this.nextBufferRange()){return t<=0?new Uint8Array(0):packBools(this.sources[e])}readOffsets(i,{offset:t}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(i.OffsetArrayType,this.sources[t]))}readTypeIds(i,{offset:t}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(i.ArrayType,this.sources[t]))}readData(i,{offset:t}=this.nextBufferRange()){const{sources:e}=this;if(DataType.isTimestamp(i))return toArrayBufferView(Uint8Array,Int64.convertArray(e[t]));if((DataType.isInt(i)||DataType.isTime(i))&&i.bitWidth===64||DataType.isDuration(i))return toArrayBufferView(Uint8Array,Int64.convertArray(e[t]));if(DataType.isDate(i)&&i.unit===DateUnit.MILLISECOND)return toArrayBufferView(Uint8Array,Int64.convertArray(e[t]));if(DataType.isDecimal(i))return toArrayBufferView(Uint8Array,Int128.convertArray(e[t]));if(DataType.isBinary(i)||DataType.isLargeBinary(i)||DataType.isFixedSizeBinary(i))return binaryDataFromJSON(e[t]);if(DataType.isBool(i))return packBools(e[t]);if(DataType.isUtf8(i)||DataType.isLargeUtf8(i))return encodeUtf8(e[t].join(""));if(DataType.isInterval(i))switch(i.unit){case IntervalUnit.DAY_TIME:return toIntervalDayTimeInt32Array(e[t]);case IntervalUnit.MONTH_DAY_NANO:return toIntervalMonthDayNanoInt32Array(e[t])}return toArrayBufferView(Uint8Array,toArrayBufferView(i.ArrayType,e[t].map(o=>+o)))}}function binaryDataFromJSON(n){const i=n.join(""),t=new Uint8Array(i.length/2);for(let e=0;e<i.length;e+=2)t[e>>1]=Number.parseInt(i.slice(e,e+2),16);return t}class CompressedVectorLoader extends VectorLoader{constructor(i,t,e,o,d){super(new Uint8Array(0),t,e,o,d),this.bodyChunks=i}readData(i,t=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}class TypeComparator extends Visitor{compareSchemas(i,t){return i===t||t instanceof i.constructor&&this.compareManyFields(i.fields,t.fields)}compareManyFields(i,t){return i===t||Array.isArray(i)&&Array.isArray(t)&&i.length===t.length&&i.every((e,o)=>this.compareFields(e,t[o]))}compareFields(i,t){return i===t||t instanceof i.constructor&&i.name===t.name&&i.nullable===t.nullable&&this.visit(i.type,t.type)}}function compareConstructor(n,i){return i instanceof n.constructor}function compareAny(n,i){return n===i||compareConstructor(n,i)}function compareInt(n,i){return n===i||compareConstructor(n,i)&&n.bitWidth===i.bitWidth&&n.isSigned===i.isSigned}function compareFloat(n,i){return n===i||compareConstructor(n,i)&&n.precision===i.precision}function compareFixedSizeBinary(n,i){return n===i||compareConstructor(n,i)&&n.byteWidth===i.byteWidth}function compareDate(n,i){return n===i||compareConstructor(n,i)&&n.unit===i.unit}function compareTimestamp(n,i){return n===i||compareConstructor(n,i)&&n.unit===i.unit&&n.timezone===i.timezone}function compareTime(n,i){return n===i||compareConstructor(n,i)&&n.unit===i.unit&&n.bitWidth===i.bitWidth}function compareList(n,i){return n===i||compareConstructor(n,i)&&n.children.length===i.children.length&&instance.compareManyFields(n.children,i.children)}function compareStruct(n,i){return n===i||compareConstructor(n,i)&&n.children.length===i.children.length&&instance.compareManyFields(n.children,i.children)}function compareUnion(n,i){return n===i||compareConstructor(n,i)&&n.mode===i.mode&&n.typeIds.every((t,e)=>t===i.typeIds[e])&&instance.compareManyFields(n.children,i.children)}function compareDictionary(n,i){return n===i||compareConstructor(n,i)&&n.id===i.id&&n.isOrdered===i.isOrdered&&instance.visit(n.indices,i.indices)&&instance.visit(n.dictionary,i.dictionary)}function compareInterval(n,i){return n===i||compareConstructor(n,i)&&n.unit===i.unit}function compareDuration(n,i){return n===i||compareConstructor(n,i)&&n.unit===i.unit}function compareFixedSizeList(n,i){return n===i||compareConstructor(n,i)&&n.listSize===i.listSize&&n.children.length===i.children.length&&instance.compareManyFields(n.children,i.children)}function compareMap(n,i){return n===i||compareConstructor(n,i)&&n.keysSorted===i.keysSorted&&n.children.length===i.children.length&&instance.compareManyFields(n.children,i.children)}TypeComparator.prototype.visitNull=compareAny;TypeComparator.prototype.visitBool=compareAny;TypeComparator.prototype.visitInt=compareInt;TypeComparator.prototype.visitInt8=compareInt;TypeComparator.prototype.visitInt16=compareInt;TypeComparator.prototype.visitInt32=compareInt;TypeComparator.prototype.visitInt64=compareInt;TypeComparator.prototype.visitUint8=compareInt;TypeComparator.prototype.visitUint16=compareInt;TypeComparator.prototype.visitUint32=compareInt;TypeComparator.prototype.visitUint64=compareInt;TypeComparator.prototype.visitFloat=compareFloat;TypeComparator.prototype.visitFloat16=compareFloat;TypeComparator.prototype.visitFloat32=compareFloat;TypeComparator.prototype.visitFloat64=compareFloat;TypeComparator.prototype.visitUtf8=compareAny;TypeComparator.prototype.visitLargeUtf8=compareAny;TypeComparator.prototype.visitBinary=compareAny;TypeComparator.prototype.visitLargeBinary=compareAny;TypeComparator.prototype.visitFixedSizeBinary=compareFixedSizeBinary;TypeComparator.prototype.visitDate=compareDate;TypeComparator.prototype.visitDateDay=compareDate;TypeComparator.prototype.visitDateMillisecond=compareDate;TypeComparator.prototype.visitTimestamp=compareTimestamp;TypeComparator.prototype.visitTimestampSecond=compareTimestamp;TypeComparator.prototype.visitTimestampMillisecond=compareTimestamp;TypeComparator.prototype.visitTimestampMicrosecond=compareTimestamp;TypeComparator.prototype.visitTimestampNanosecond=compareTimestamp;TypeComparator.prototype.visitTime=compareTime;TypeComparator.prototype.visitTimeSecond=compareTime;TypeComparator.prototype.visitTimeMillisecond=compareTime;TypeComparator.prototype.visitTimeMicrosecond=compareTime;TypeComparator.prototype.visitTimeNanosecond=compareTime;TypeComparator.prototype.visitDecimal=compareAny;TypeComparator.prototype.visitList=compareList;TypeComparator.prototype.visitStruct=compareStruct;TypeComparator.prototype.visitUnion=compareUnion;TypeComparator.prototype.visitDenseUnion=compareUnion;TypeComparator.prototype.visitSparseUnion=compareUnion;TypeComparator.prototype.visitDictionary=compareDictionary;TypeComparator.prototype.visitInterval=compareInterval;TypeComparator.prototype.visitIntervalDayTime=compareInterval;TypeComparator.prototype.visitIntervalYearMonth=compareInterval;TypeComparator.prototype.visitIntervalMonthDayNano=compareInterval;TypeComparator.prototype.visitDuration=compareDuration;TypeComparator.prototype.visitDurationSecond=compareDuration;TypeComparator.prototype.visitDurationMillisecond=compareDuration;TypeComparator.prototype.visitDurationMicrosecond=compareDuration;TypeComparator.prototype.visitDurationNanosecond=compareDuration;TypeComparator.prototype.visitFixedSizeList=compareFixedSizeList;TypeComparator.prototype.visitMap=compareMap;const instance=new TypeComparator;function compareSchemas(n,i){return instance.compareSchemas(n,i)}function compareFields(n,i){return instance.compareFields(n,i)}function compareTypes(n,i){return instance.visit(n,i)}function distributeVectorsIntoRecordBatches(n,i){return uniformlyDistributeChunksAcrossRecordBatches(n,i.map(t=>t.data.concat()))}function uniformlyDistributeChunksAcrossRecordBatches(n,i){const t=[...n.fields],e=[],o={numBatches:i.reduce((M,X)=>Math.max(M,X.length),0)};let d=0,p=0,h=-1;const y=i.length;let E,$=[];for(;o.numBatches-- >0;){for(p=Number.POSITIVE_INFINITY,h=-1;++h<y;)$[h]=E=i[h].shift(),p=Math.min(p,E?E.length:p);Number.isFinite(p)&&($=distributeChildren(t,p,$,i,o),p>0&&(e[d++]=makeData({type:new Struct(t),length:p,nullCount:0,children:$.slice()})))}return[n=n.assign(t),e.map(M=>new RecordBatch(n,M))]}function distributeChildren(n,i,t,e,o){var d;const p=(i+63&-64)>>3;for(let h=-1,y=e.length;++h<y;){const E=t[h],$=E?.length;if($>=i)$===i?t[h]=E:(t[h]=E.slice(0,i),o.numBatches=Math.max(o.numBatches,e[h].unshift(E.slice(i,$-i))));else{const M=n[h];n[h]=M.clone({nullable:!0}
24),t[h]=(d=E?._changeLengthAndBackfillNullBitmap(i))!==null&&d!==void 0?d:makeData({type:M.type,length:i,nullCount:i,nullBitmap:new Uint8Array(p)})}}return t}var _a$2;let Table$1=class ci{constructor(...i){var t,e;if(i.length===0)return this.batches=[],this.schema=new Schema$1([]),this._offsets=[0],this;let o,d;i[0]instanceof Schema$1&&(o=i.shift()),i.at(-1)instanceof Uint32Array&&(d=i.pop());const p=y=>{if(y){if(y instanceof RecordBatch)return[y];if(y instanceof ci)return y.batches;if(y instanceof Data){if(y.type instanceof Struct)return[new RecordBatch(new Schema$1(y.type.children),y)]}else{if(Array.isArray(y))return y.flatMap(E=>p(E));if(typeof y[Symbol.iterator]=="function")return[...y].flatMap(E=>p(E));if(typeof y=="object"){const E=Object.keys(y),$=E.map(Z=>new Vector([y[Z]])),M=o??new Schema$1(E.map((Z,ye)=>new Field(String(Z),$[ye].type,$[ye].nullable))),[,X]=distributeVectorsIntoRecordBatches(M,$);return X.length===0?[new RecordBatch(y)]:X}}}return[]},h=i.flatMap(y=>p(y));if(o=(e=o??((t=h[0])===null||t===void 0?void 0:t.schema))!==null&&e!==void 0?e:new Schema$1([]),!(o instanceof Schema$1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const y of h){if(!(y instanceof RecordBatch))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!compareSchemas(o,y.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=o,this.batches=h,this._offsets=d??computeChunkOffsets(this.data)}get data(){return this.batches.map(({data:i})=>i)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((i,t)=>i+t.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=computeChunkNullCounts(this.data)),this._nullCount}isValid(i){return!1}get(i){return null}at(i){return this.get(wrapIndex(i,this.numRows))}set(i,t){}indexOf(i,t){return-1}[Symbol.iterator](){return this.batches.length>0?instance$2.visit(new Vector(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[ 25 ${this.toArray().join(`, 26 `)} 27]`}concat(...i){const t=this.schema,e=this.data.concat(i.flatMap(({data:o})=>o));return new ci(t,e.map(o=>new RecordBatch(t,o)))}slice(i,t){const e=this.schema;[i,t]=clampRange({length:this.numRows},i,t);const o=sliceChunks$1(this.data,this._offsets,i,t);return new ci(e,o.map(d=>new RecordBatch(e,d)))}getChild(i){return this.getChildAt(this.schema.fields.findIndex(t=>t.name===i))}getChildAt(i){if(i>-1&&i<this.schema.fields.length){const t=this.data.map(e=>e.children[i]);if(t.length===0){const{type:e}=this.schema.fields[i],o=makeData({type:e,length:0,nullCount:0});t.push(o._changeLengthAndBackfillNullBitmap(this.numRows))}return new Vector(t)}return null}setChild(i,t){var e;return this.setChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(o=>o.name===i),t)}setChildAt(i,t){let e=this.schema,o=[...this.batches];if(i>-1&&i<this.numCols){t||(t=new Vector([makeData({type:new Null,length:this.numRows})]));const d=e.fields.slice(),p=d[i].clone({type:t.type}),h=this.schema.fields.map((y,E)=>this.getChildAt(E));[d[i],h[i]]=[p,t],[e,o]=distributeVectorsIntoRecordBatches(e,h)}return new ci(e,o)}select(i){const t=this.schema.fields.reduce((e,o,d)=>e.set(o.name,d),new Map);return this.selectAt(i.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(i){const t=this.schema.selectAt(i),e=this.batches.map(o=>o.selectAt(i));return new ci(t,e)}assign(i){const t=this.schema.fields,[e,o]=i.schema.fields.reduce((h,y,E)=>{const[$,M]=h,X=t.findIndex(Z=>Z.name===y.name);return~X?M[X]=E:$.push(E),h},[[],[]]),d=this.schema.assign(i.schema),p=[...t.map((h,y)=>[y,o[y]]).map(([h,y])=>y===void 0?this.getChildAt(h):i.getChildAt(y)),...e.map(h=>i.getChildAt(h))].filter(Boolean);return new ci(...distributeVectorsIntoRecordBatches(d,p))}};_a$2=Symbol.toStringTag;Table$1[_a$2]=(n=>(n.schema=null,n.batches=[],n._offsets=new Uint32Array([0]),n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,n.isValid=wrapChunkedCall1(isChunkedValid),n.get=wrapChunkedCall1(instance$4.getVisitFn(Type.Struct)),n.set=wrapChunkedCall2(instance$5.getVisitFn(Type.Struct)),n.indexOf=wrapChunkedIndexOf(instance$3.getVisitFn(Type.Struct)),"Table"))(Table$1.prototype);var _a$1;class RecordBatch{constructor(...i){switch(i.length){case 2:{if([this.schema]=i,!(this.schema instanceof Schema$1))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=makeData({nullCount:0,type:new Struct(this.schema.fields),children:this.schema.fields.map(t=>makeData({type:t.type,nullCount:0}))})]=i,!(this.data instanceof Data))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=ensureSameLengthData(this.schema,this.data.children);break}case 1:{const[t]=i,{fields:e,children:o,length:d}=Object.keys(t).reduce((y,E,$)=>
27(y.children[$]=t[E],y.length=Math.max(y.length,t[E].length),y.fields[$]=Field.new({name:E,type:t[E].type,nullable:!0}),y),{length:0,fields:new Array,children:new Array}),p=new Schema$1(e),h=makeData({type:new Struct(e),length:d,children:o,nullCount:0});[this.schema,this.data]=ensureSameLengthData(p,h.children,d);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=collectDictionaries(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(i){return this.data.getValid(i)}get(i){return instance$4.visit(this.data,i)}at(i){return this.get(wrapIndex(i,this.numRows))}set(i,t){return instance$5.visit(this.data,i,t)}indexOf(i,t){return instance$3.visit(this.data,i,t)}[Symbol.iterator](){return instance$2.visit(new Vector([this.data]))}toArray(){return[...this]}concat(...i){return new Table$1(this.schema,[this,...i])}slice(i,t){const[e]=new Vector([this.data]).slice(i,t).data;return new RecordBatch(this.schema,e)}getChild(i){var t;return this.getChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(e=>e.name===i))}getChildAt(i){return i>-1&&i<this.schema.fields.length?new Vector([this.data.children[i]]):null}setChild(i,t){var e;return this.setChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(o=>o.name===i),t)}setChildAt(i,t){let e=this.schema,o=this.data;if(i>-1&&i<this.numCols){t||(t=new Vector([makeData({type:new Null,length:this.numRows})]));const d=e.fields.slice(),p=o.children.slice(),h=d[i].clone({type:t.type});[d[i],p[i]]=[h,t.data[0]],e=new Schema$1(d,new Map(this.schema.metadata)),o=makeData({type:new Struct(d),children:p})}return new RecordBatch(e,o)}select(i){const t=this.schema.select(i),e=new Struct(t.fields),o=[];for(const d of i){const p=this.schema.fields.findIndex(h=>h.name===d);~p&&(o[p]=this.data.children[p])}return new RecordBatch(t,makeData({type:e,length:this.numRows,children:o}))}selectAt(i){const t=this.schema.selectAt(i),e=i.map(d=>this.data.children[d]).filter(Boolean),o=makeData({type:new Struct(t.fields),length:this.numRows,children:e});return new RecordBatch(t,o)}}_a$1=Symbol.toStringTag;RecordBatch[_a$1]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(RecordBatch.prototype);function ensureSameLengthData(n,i,t=i.reduce((e,o)=>Math.max(e,o.length),0)){var e;const o=[...n.fields],d=[...i],p=(t+63&-64)>>3;for(const[h,y]of n.fields.entries()){const E=i[h];(!E||E.length!==t)&&(o[h]=y.clone({nullable:!0}),d[h]=(e=E?._changeLengthAndBackfillNullBitmap(t))!==null&&e!==void 0?e:makeData({type:y.type,length:t,nullCount:t,nullBitmap:new Uint8Array(p)}))}return[n.assign(o),makeData({type:new Struct(o),length:t,children:d})]}function collectDictionaries(n,i,t=new Map){var e,o;if(((e=n?.length)!==null&&e!==void 0?e:0)>0&&n?.length===i?.length)for(let d=-1,p=n.length;++d<p;){const{type:h}=n[d],y=i[d];for(const E of[y,...((o=y?.dictionary)===null||o===void 0?void 0:o.data)||[]])collectDictionaries(h.children,E?.children,t);if(DataType.isDictionary(h)){const{id:E}=h;if(!t.has(E))y?.dictionary&&t.set(E,y.dictionary);else if(t.get(E)!==y.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return t}class _InternalEmptyPlaceholderRecordBatch extends RecordBatch{constructor(i){const t=i.fields.map(o=>makeData({type:o.type})),e=makeData({type:new Struct(i.fields),nullCount:0,children:t});super(i,e)}}const invalidMessageType=n=>`Expected ${MessageHeader[n]} Message in stream, but was null or length 0.`,nullMessage=n=>`Header pointer of flatbuffer-encoded ${MessageHeader[n]} Message is null or length 0.`,invalidMessageMetadata=(n,i)=>`Expected to read ${n} metadata bytes, but only read ${i}.`,invalidMessageBodyLength=(n,i)=>`Expected to read ${n} bytes for message body, but only read ${i}.`;class MessageReader{constructor(i){this.source=i instanceof ByteStream?i:new ByteStream(i)}[Symbol.iterator](){return this}next(){let i;return(i=this.readMetadataLength()).done||i.value===-1&&(i=this.readMetadataLength()).done||(i=this.readMetadata(i.value)).done?ITERATOR_DONE:i}throw(i){return this.source.throw(i)}return(i){return this.source.return(i)}readMessage(i){let t;if((t=this.next()).done)return null;if(i!=null&&t.value.headerType!==i)throw new Error(invalidMessageType(i));return t.value}readMessageBody(i){if(i<=0)return new Uint8Array(0);const t=toUint8Array(this.source.read(i));if(t.byteLength<i)throw new Error(invalidMessageBodyLength(i,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(i=!1){const t=MessageHeader.Schema,e=this.readMessage(t),o=e?.header();if(i&&!o)throw new Error(nullMessage(t));return o}readMetadataLength(){const i=this.source.read(PADDING),t=i&&new ByteBuffer$2(i),e=t?.readInt32(0)||0;return{done:e===0,value:e}}readMetadata(i){const t=this.source.read(i);
27if(!t)return ITERATOR_DONE;if(t.byteLength<i)throw new Error(invalidMessageMetadata(i,t.byteLength));return{done:!1,value:Message.decode(t)}}}class AsyncMessageReader{constructor(i,t){this.source=i instanceof AsyncByteStream?i:isFileHandle(i)?new AsyncRandomAccessFile(i,t):new AsyncByteStream(i)}[Symbol.asyncIterator](){return this}next(){return __awaiter(this,void 0,void 0,function*(){let i;return(i=yield this.readMetadataLength()).done||i.value===-1&&(i=yield this.readMetadataLength()).done||(i=yield this.readMetadata(i.value)).done?ITERATOR_DONE:i})}throw(i){return __awaiter(this,void 0,void 0,function*(){return yield this.source.throw(i)})}return(i){return __awaiter(this,void 0,void 0,function*(){return yield this.source.return(i)})}readMessage(i){return __awaiter(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(i!=null&&t.value.headerType!==i)throw new Error(invalidMessageType(i));return t.value})}readMessageBody(i){return __awaiter(this,void 0,void 0,function*(){if(i<=0)return new Uint8Array(0);const t=toUint8Array(yield this.source.read(i));if(t.byteLength<i)throw new Error(invalidMessageBodyLength(i,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(){return __awaiter(this,arguments,void 0,function*(i=!1){const t=MessageHeader.Schema,e=yield this.readMessage(t),o=e?.header();if(i&&!o)throw new Error(nullMessage(t));return o}
27)}readMetadataLength(){return __awaiter(this,void 0,void 0,function*(){const i=yield this.source.read(PADDING),t=i&&new ByteBuffer$2(i),e=t?.readInt32(0)||0;return{done:e===0,value:e}})}readMetadata(i){return __awaiter(this,void 0,void 0,function*(){const t=yield this.source.read(i);if(!t)return ITERATOR_DONE;if(t.byteLength<i)throw new Error(invalidMessageMetadata(i,t.byteLength));return{done:!1,value:Message.decode(t)}})}}class JSONMessageReader extends MessageReader{constructor(i){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=i instanceof ArrowJSON?i:new ArrowJSON(i)}next(){const{_json:i}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Message.fromJSON(i.schema,MessageHeader.Schema)};if(this._dictionaryIndex<i.dictionaries.length){const t=i.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:Message.fromJSON(t,MessageHeader.DictionaryBatch)}}if(this._batchIndex<i.batches.length){const t=i.batches[this._batchIndex++];return this._body=t.columns,{done:!1,value:Message.fromJSON(t,MessageHeader.RecordBatch)}}return this._body=[],ITERATOR_DONE}readMessageBody(i){return t(this._body);function t(e){return(e||[]).reduce((o,d)=>[...o,...d.VALIDITY&&[d.VALIDITY]||[],...d.TYPE_ID&&[d.TYPE_ID]||[],...d.OFFSET&&[d.OFFSET]||[],...d.DATA&&[d.DATA]||[],...t(d.children)],[])}}readMessage(i){let t;if((t=this.next()).done)return null;if(i!=null&&t.value.headerType!==i)throw new Error(invalidMessageType(i));return t.value}readSchema(){const i=MessageHeader.Schema,t=this.readMessage(i),e=t?.header();if(!t||!e)throw new Error(nullMessage(i));return e}}const PADDING=4,MAGIC_STR="ARROW1",MAGIC=new Uint8Array(MAGIC_STR.length);for(let n=0;n<MAGIC_STR.length;n+=1)MAGIC[n]=MAGIC_STR.codePointAt(n);function checkForMagicArrowString(n,i=0){for(let t=-1,e=MAGIC.length;++t<e;)if(MAGIC[t]!==n[i+t])return!1;return!0}const magicLength=MAGIC.length,magicAndPadding=magicLength+PADDING,magicX2AndPadding=magicLength*2+PADDING;class Lz4FrameValidator{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(i){const t=new Uint8Array([1,2,3,4,5,6,7,8]),e=i.encode(t);return this._isValidCompressed(e)}_isValidCompressed(i){return this._hasMinimumLength(i)&&this._hasValidMagicNumber(i)&&this._hasValidVersion(i)}_hasMinimumLength(i){return i.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(i){return this.LZ4_FRAME_MAGIC.every((t,e)=>i[e]===t)}_hasValidVersion(i){return(i[4]&192)>>6===1}}class ZstdValidator{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(i){const t=new Uint8Array([1,2,3,4,5,6,7,8]),e=i.encode(t);return this._isValidCompressed(e)}_isValidCompressed(i){return this._hasMinimumLength(i)&&this._hasValidMagicNumber(i)}_hasMinimumLength(i){return i.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(i){return this.ZSTD_MAGIC.every((t,e)=>i[e]===t)}}const compressionValidators={[CompressionType.LZ4_FRAME]:new Lz4FrameValidator,[CompressionType.ZSTD]:new ZstdValidator};class _CompressionRegistry{constructor(){this.registry={}}set(i,t){if(t?.encode&&typeof t.encode=="function"&&!compressionValidators[i].isValidCodecEncode(t))throw new Error(`Encoder for ${CompressionType[i]} is not valid.`);this.registry[i]=t}get(i){var t;return((t=this.registry)===null||t===void 0?void 0:t[i])||null}}const compressionRegistry=new _CompressionRegistry,LENGTH_NO_COMPRESSED_DATA=-1,COMPRESS_LENGTH_PREFIX=8;class RecordBatchReader extends ReadableInterop{constructor(i){super(),this._impl=i}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(i){return this._impl.throw(i)}return(i){return this._impl.return(i)}cancel(){return this._impl.cancel()}reset(i){return this._impl.reset(i),this._DOMStream=void 0,this._nodeStream=void 0,this}open(i){const t=this._impl.open(i);return isPromise(t)?t.then(()=>this):this}readRecordBatch(i){return this._impl.isFile()?this._impl.readRecordBatch(i):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return streamAdapters.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return streamAdapters.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(i){throw new Error('"throughNode" not available in this environment')}static throughDOM(i,t){throw new Error('"throughDOM" not available in this environment')}static from(i){return i instanceof RecordBatchReader?i:isArrowJSON(i)?fromArrowJSON(i):isFileHandle(i)?fromFileHandle(i):isPromise(i)?__awaiter(this,void 0,void 0,function*(){return yield RecordBatchReader.from(yield i)}):isFetchResponse(i)||isReadableDOMStream(i)||isReadableNodeStream(i)||isAsyncIterable(i)?fromAsyncByteStream(new AsyncByteStream(i)):fromByteStream(new ByteStream(i))}static readAll(i){return i instanceof RecordBatchReader?i.isSync()?readAllSync(i):readAllAsync(i):isArrowJSON(i)||ArrayBuffer.isView(i)||isIterable(i)||isIteratorResult(i)?readAllSync(i):readAllAsync(i)}}class RecordBatchStreamReader extends RecordBatchReader{constructor(i){super(i),this._impl=i}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return __asyncGenerator(this,arguments,function*(){yield __await(yield*__asyncDelegator(__asyncValues(this[Symbol.iterator]())))})}}class AsyncRecordBatchStreamReader extends RecordBatchReader{constructor(i){super(i),this._impl=i}readAll(){return __awaiter(this,void 0,void 0,function*(){var i,t,e,o;const d=new Array;try{for(var p=!0,h=__asyncValues(this),y;y=yield h.next(),i=y.done,!i;p=!0){o=y.value,p=!1;const E=o;d.push(E)}}catch(E){t={error:E}}finally{try{!p&&!i&&(e=h.return)&&(yield e.call(h))}finally{if(t)throw t.error}}return d})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class RecordBatchFileReader extends RecordBatchStreamReader{constructor(i){super(i),this._impl=i}}class AsyncRecordBatchFileReader extends AsyncRecordBatchStreamReader{constructor(i){super(i),this._impl=i}}class RecordBatchReaderImpl{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(i=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=i}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(i){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=i,this.dictionaries=new Map,this}_loadRecordBatch(i,t){let e;if(i.compression!=null){const d=compressionRegistry.get(i.compression.type);if(d?.decode&&typeof d.decode=="function"){const{decommpressedBody:p,buffers:h}=this._decompressBuffers(i,t,d);e=this._loadCompressedVectors(i,p,this.schema.fields),i=new RecordBatch$1(i.length,i.nodes,h,null)}else throw new Error("Record batch is compressed but codec not found")}else e=this._loadVectors(i,t,this.schema.fields);const o=makeData({type:new Struct(this.schema.fields),length:i.length,children:e});return new RecordBatch(this.schema,o)}_loadDictionaryBatch(i,t){const{id:e,isDelta:o}=i,{dictionaries:d,schema:p}=this,h=d.get(e),y=p.dictionaries.get(e);let E;if(i.data.compression!=null){const $=compressionRegistry.get(i.data.compression.type);if($?.decode&&typeof $.decode=="function"){const{decommpressedBody:M,buffers:X}=this._decompressBuffers(i.data,t,$);E=this._loadCompressedVectors(i.data,M,[y]),i=new DictionaryBatch(new RecordBatch$1(i.data.length,i.data.nodes,X,null),e,o)}else throw new Error("Dictionary batch is compressed but codec not found")}else E=this._loadVectors(i.data,t,[y]);
27return(h&&o?h.concat(new Vector(E)):new Vector(E)).memoize()}_loadVectors(i,t,e){return new VectorLoader(t,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(e)}_loadCompressedVectors(i,t,e){return new CompressedVectorLoader(t,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(e)}_decompressBuffers(i,t,e){const o=[],d=[];let p=0;for(const{offset:h,length:y}of i.buffers){if(y===0){o.push(new Uint8Array(0)),d.push(new BufferRegion(p,0));continue}const E=new ByteBuffer$2(t.subarray(h,h+y)),$=bigIntToNumber(E.readInt64(0)),M=E.bytes().subarray(COMPRESS_LENGTH_PREFIX),X=$===LENGTH_NO_COMPRESSED_DATA?M:e.decode(M);o.push(X);const Z=(p+7&-8)-p;p+=Z,d.push(new BufferRegion(p,X.length)),p+=X.length}return{decommpressedBody:o,buffers:d}}}class RecordBatchStreamReaderImpl extends RecordBatchReaderImpl{constructor(i,t){super(t),this._reader=isArrowJSON(i)?new JSONMessageReader(this._handle=i):new MessageReader(this._handle=i)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(i){return this.closed||(this.autoDestroy=shouldAutoDestroy(this,i),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(i){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(i):ITERATOR_DONE}return(i){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(i):ITERATOR_DONE}next(){if(this.closed)return ITERATOR_DONE;let i;const{_reader:t}=this;for(;i=this._readNextMessageAndValidate();)if(i.isSchema())this.reset(i.header());else if(i.isRecordBatch()){this._recordBatchIndex++;const e=i.header(),o=t.readMessageBody(i.bodyLength);return{done:!1,value:this._loadRecordBatch(e,o)}}else if(i.isDictionaryBatch()){this._dictionaryIndex++;const e=i.header(),o=t.readMessageBody(i.bodyLength),d=this._loadDictionaryBatch(e,o);this.dictionaries.set(e.id,d)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(i){return this._reader.readMessage(i)}}class AsyncRecordBatchStreamReaderImpl extends RecordBatchReaderImpl{constructor(i,t){super(t),this._reader=new AsyncMessageReader(this._handle=i)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return __awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(i){return __awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=shouldAutoDestroy(this,i),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(i){return __awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(i):ITERATOR_DONE})}return(i){return __awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(i):ITERATOR_DONE})}next(){return __awaiter(this,void 0,void 0,function*(){if(this.closed)return ITERATOR_DONE;let i;const{_reader:t}=this;for(;i=yield this._readNextMessageAndValidate();)if(i.isSchema())yield this.reset(i.header());else if(i.isRecordBatch()){this._recordBatchIndex++;const e=i.header(),o=yield t.readMessageBody(i.bodyLength);return{done:!1,value:this._loadRecordBatch(e,o)}}else if(i.isDictionaryBatch()){this._dictionaryIndex++;const e=i.header(),o=yield t.readMessageBody(i.bodyLength),d=this._loadDictionaryBatch(e,o);this.dictionaries.set(e.id,d)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new _InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(i){return __awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(i)})}}class RecordBatchFileReaderImpl extends RecordBatchStreamReaderImpl{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(i,t){super(i instanceof RandomAccessFile?i:new RandomAccessFile(i),t)}isSync(){return!0}isFile(){return!0}open(i){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(i)}readRecordBatch(i){var t;if(this.closed)return null;this._footer||this.open();const e=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(i);if(e&&this._handle.seek(e.offset)){const o=this._reader.readMessage(MessageHeader.RecordBatch);if(o?.isRecordBatch()){const d=o.header(),p=this._reader.readMessageBody(o.bodyLength);return this._loadRecordBatch(d,p)}}return null}_readDictionaryBatch(i){var t;const e=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(i);if(e&&this._handle.seek(e.offset)){const o=this._reader.readMessage(MessageHeader.DictionaryBatch);if(o?.isDictionaryBatch()){const d=o.header(),p=this._reader.readMessageBody(o.bodyLength),h=this._loadDictionaryBatch(d,p);this.dictionaries.set(d.id,h)}}}_readFooter(){const{_handle:i}=this,t=i.size-magicAndPadding,e=i.readInt32(t),o=i.readAt(t-e,e);return Footer_.decode(o)}_readNextMessageAndValidate(i){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const e=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(this._recordBatchIndex);if(e&&this._handle.seek(e.offset))return this._reader.readMessage(i)}return null}}class AsyncRecordBatchFileReaderImpl extends AsyncRecordBatchStreamReaderImpl{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(i,...t){const e=typeof t[0]!="number"?t.shift():void 0,o=t[0]instanceof Map?t.shift():void 0;super(i instanceof AsyncRandomAccessFile?i:new AsyncRandomAccessFile(i,e),o)}isFile(){return!0}isAsync(){return!0}open(i){const t=Object.create(null,{open:{get:()=>super.open}});return __awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,i)})}readRecordBatch(i){return __awaiter(this,void 0,void 0,function*(){var t;if(this.closed)return null;this._footer||(yield this.open());const e=(t=this._footer)===null||t===void 0?void 0:t.getRecordBatch(i);if(e&&(yield this._handle.seek(e.offset))){const o=yield this._reader.readMessage(MessageHeader.RecordBatch);if(o?.isRecordBatch()){const d=o.header(),p=yield this._reader.readMessageBody(o.bodyLength);return this._loadRecordBatch(d,p)}}return null})}_readDictionaryBatch(i){return __awaiter(this,void 0,void 0,function*(){var t;const e=(t=this._footer)===null||t===void 0?void 0:t.getDictionaryBatch(i);if(e&&(yield this._handle.seek(e.offset))){const o=yield this._reader.readMessage(MessageHeader.DictionaryBatch);if(o?.isDictionaryBatch()){const d=o.header(),p=yield this._reader.readMessageBody(o.bodyLength),h=this._loadDictionaryBatch(d,p);this.dictionaries.set(d.id,h)}}})}_readFooter(){return __awaiter(this,void 0,void 0,function*(){const{_handle:i}=this;i._pending&&(yield i._pending);const t=i.size-magicAndPadding,e=yield i.readInt32(t),o=yield i.readAt(t-e,e);return Footer_.decode(o)})}_readNextMessageAndValidate(i){return __awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(i)}return null})}}class RecordBatchJSONReaderImpl extends RecordBatchStreamReaderImpl{constructor(i,t){super(i,t)}_loadVectors(i,t,e){return new JSONVectorLoader(t,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(e)}}function shouldAutoDestroy(n,i){return i&&typeof i.autoDestroy=="boolean"?i.autoDestroy:n.autoDestroy}function*readAllSync(n){const i=RecordBatchReader.from(n);try{if(!i.open({autoDestroy:!1}
27).closed)do yield i;while(!i.reset().open().closed)}finally{i.cancel()}}function readAllAsync(n){return __asyncGenerator(this,arguments,function*(){const t=yield __await(RecordBatchReader.from(n));try{if(!(yield __await(t.open({autoDestroy:!1}))).closed)do yield yield __await(t);while(!(yield __await(t.reset().open())).closed)}finally{yield __await(t.cancel())}})}function fromArrowJSON(n){return new RecordBatchStreamReader(new RecordBatchJSONReaderImpl(n))}function fromByteStream(n){const i=n.peek(magicLength+7&-8);return i&&i.byteLength>=4?checkForMagicArrowString(i)?new RecordBatchFileReader(new RecordBatchFileReaderImpl(n.read())):new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(n)):new RecordBatchStreamReader(new RecordBatchStreamReaderImpl((function*(){})()))}function fromAsyncByteStream(n){return __awaiter(this,void 0,void 0,function*(){const i=yield n.peek(magicLength+7&-8);return i&&i.byteLength>=4?checkForMagicArrowString(i)?new RecordBatchFileReader(new RecordBatchFileReaderImpl(yield n.read())):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(n)):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl((function(){return __asyncGenerator(this,arguments,function*(){})})()))})}function fromFileHandle(n){return __awaiter(this,void 0,void 0,function*(){const{size:i}=yield n.stat(),t=new AsyncRandomAccessFile(n,i);return i>=magicX2AndPadding&&checkForMagicArrowString(yield t.readAt(0,magicLength+7&-8))?new AsyncRecordBatchFileReader(new AsyncRecordBatchFileReaderImpl(t)):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(t))})}function tableFromIPC(n){const i=RecordBatchReader.from(n);return isPromise(i)?i.then(t=>tableFromIPC(t)):i.isAsync()?i.readAll().then(t=>new Table$1(t)):new Table$1(i.readAll())}const PandasRangeIndexType="range";var DataFrameCellType=(function(n){return n.INDEX="index",n.DATA="data",n})({});function convertVectorToList(n){const i=[];for(let t=0;t<n.length;t++)i.push(n.get(t));return i}function getPandasTypeName(n){if(!isNullOrUndefined$1(n.pandasType))return n.pandasType.pandas_type==="object"?n.pandasType.numpy_type:n.pandasType.pandas_type}function getTimezone(n){return n.arrowField?.type?.timezone??n.pandasType?.metadata?.timezone}function isIntegerType(n){if(isNullOrUndefined$1(n))return!1;const i=getPandasTypeName(n)??"";return DataType.isInt(n.arrowField.type)&&!isPeriodType(n)||i.startsWith("int")&&!isIntervalType(n)||isRangeIndexType(n)||isUnsignedIntegerType(n)}function isUnsignedIntegerType(n){return isNullOrUndefined$1(n)?!1:DataType.isInt(n.arrowField.type)&&n.arrowField.type.isSigned===!1||(getPandasTypeName(n)?.startsWith("uint")??!1)}function isFloatType(n){return isNullOrUndefined$1(n)?!1:(DataType.isFloat(n.arrowField.type)||getPandasTypeName(n)?.startsWith("float"))??!1}function isDecimalType(n){return isNullOrUndefined$1(n)?!1:DataType.isDecimal(n.arrowField.type)||getPandasTypeName(n)==="decimal"}function isNumericType(n){return isNullOrUndefined$1(n)?!1:isIntegerType(n)||isFloatType(n)||isDecimalType(n)}function isBooleanType(n){return isNullOrUndefined$1(n)?!1:DataType.isBool(n.arrowField.type)||getPandasTypeName(n)==="bool"}function isDurationType(n){return isNullOrUndefined$1(n)?!1:DataType.isDuration(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("timedelta")??!1)}function isPeriodType(n){return isNullOrUndefined$1(n)?!1:DataType.isInt(n.arrowField.type)&&n.arrowField.metadata.get("ARROW:extension:name")==="period"||(getPandasTypeName(n)?.startsWith("period")??!1)}function isDatetimeType(n){return isNullOrUndefined$1(n)?!1:DataType.isTimestamp(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("datetime")??!1)}function isDateType(n){return isNullOrUndefined$1(n)?!1:DataType.isDate(n.arrowField.type)||getPandasTypeName(n)==="date"}function isTimeType(n){return isNullOrUndefined$1(n)?!1:DataType.isTime(n.arrowField.type)||getPandasTypeName(n)==="time"}function isCategoricalType(n){return isNullOrUndefined$1(n)?!1:DataType.isDictionary(n.arrowField.type)||getPandasTypeName(n)==="categorical"}function isListType(n){return isNullOrUndefined$1(n)?!1:DataType.isList(n.arrowField.type)||DataType.isFixedSizeList(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("list")??!1)}function isObjectType(n){return isNullOrUndefined$1(n)?!1:DataType.isStruct(n.arrowField.type)||DataType.isMap(n.arrowField.type)||getPandasTypeName(n)==="object"}function isBytesType(n){return isNullOrUndefined$1(n)?!1:DataType.isBinary(n.arrowField.type)||DataType.isLargeBinary(n.arrowField.type)||getPandasTypeName(n)==="bytes"}function isStringType(n){return isNullOrUndefined$1(n)?!1:DataType.isUtf8(n.arrowField.type)||DataType.isLargeUtf8(n.arrowField.type)||["unicode","large_string[pyarrow]"].includes(getPandasTypeName(n)??"")}function isEmptyType(n){return isNullOrUndefined$1(n)?!1:DataType.isNull(n.arrowField.type)||getPandasTypeName(n)==="empty"}function isIntervalType(n){return isNullOrUndefined$1(n)?!1:DataType.isStruct(n.arrowField.type)&&n.arrowField.metadata.get("ARROW:extension:name")==="interval"||(getPandasTypeName(n)?.startsWith("interval")??!1)}function isRangeIndexType(n){return isNullOrUndefined$1(n)?!1:getPandasTypeName(n)===PandasRangeIndexType}function sameDataTypes(n,i){return n.every((t,e)=>t.pandasType?.pandas_type===i[e]?.pandasType?.pandas_type)}function sameIndexTypes(n,i){return n.length!==i.length?!1:n.every((t,e)=>e<i.length&&getPandasTypeName(t)===getPandasTypeName(i[e]))}function concatIndexes(n,i,t,e){if(t.length===0)return n;if(n.length===0)return t;if(!sameIndexTypes(i,e)){const d=e.map(h=>getPandasTypeName(h)),p=i.map(h=>getPandasTypeName(h));throw new Error(` 28Unsupported operation. The data passed into \`add_rows()\` must have the same 29index signature as the original data. 30 31In this case, \`add_rows()\` received \`${JSON.stringify(d)}\` 32but was expecting \`${JSON.stringify(p)}\`. 33`)}if(i.length===0)throw new Error("There was an error while parsing index types.");if(isRangeIndexType(i[0])){const{step:d,stop:p}=i[0].pandasType?.metadata;t=[range(p,p+t[0].length*d,d)]}return zip(n,t).map(d=>d[0].concat(d[1]))}function concatData(n,i,t,e){if(t.numCols===0)return n;if(n.numCols===0)return t;if(!sameDataTypes(i,e)){const d=e.map(h=>h.pandasType?.pandas_type),p=i.map(h=>h.pandasType?.pandas_type);throw new Error(` 34Unsupported operation. The data passed into \`add_rows()\` must have the same 35data signature as the original data. 36 37In this case, \`add_rows()\` received \`${JSON.stringify(d)}\` 38but was expecting \`${JSON.stringify(p)}\`. 39`)}const o=t.selectAt(range(0,n.numCols));return n.concat(o)}function concatTypes(n,i,t,e){const o=concatIndexTypes(n,t),d=concatDataTypes(i,e);return{indexTypes:o,dataTypes:d}}
39function concatIndexTypes(n,i){if(i.length===0)return n;if(n.length===0)return i;if(!sameIndexTypes(n,i)){const t=i.map(o=>getPandasTypeName(o)),e=n.map(o=>getPandasTypeName(o));throw new Error(` 40Unsupported operation. The data passed into \`add_rows()\` must have the same 41index signature as the original data. 42 43In this case, \`add_rows()\` received \`${JSON.stringify(t)}\` 44but was expecting \`${JSON.stringify(e)}\`. 45`)}return n.map(t=>{if(isRangeIndexType(t)&&t.pandasType){const{stop:e,step:o}=t.pandasType.metadata,{start:d,stop:p,step:h}=i[0].pandasType?.metadata,y=(p-d)/h,E=e+y*o;return{...t,pandasType:{...t.pandasType,metadata:{...t.pandasType.metadata,stop:E}}}}return t})}function concatDataTypes(n,i){return n.length===0?i:n}function concat(n,i,t,e,o,d,p,h){const y=concatIndexes(t,i,p,d),E=concatData(e,n,h,o),{indexTypes:$,dataTypes:M}=concatTypes(i,n,d,o);return{index:y,data:E,indexTypes:$,dataTypes:M}}function isPandasRangeIndex(n){return typeof n=="object"&&n.kind==="range"}function parsePandasSchema(n){const i=n.schema.metadata.get("pandas");if(!isNullOrUndefined$1(i))return JSON.parse(i)}function parsePandasIndexData(n,i){return i?i.index_columns.map(t=>{if(isPandasRangeIndex(t)){const{start:o,stop:d,step:p}=t;return range(o,d,p)}const e=n.getChild(t);return e instanceof Vector&&e.type instanceof Null?null:e}).filter(t=>t!==null):[]}function parseHeaderName(n,i){if(i===1)return[n];try{return JSON.parse(n.trim().replace(/^\(/,"[").replace(/\)$/,"]").replace(/'/g,'"'))}catch{return[...Array(i-1).fill(""),n]}}function parseColumnNames(n,i,t){const e=i.concat(n);return unzip(e.map(o=>o.arrowField.name.startsWith("__index_level_")?"":o.arrowField.name).map(o=>parseHeaderName(o,t?.column_indexes.length??1)))}function parseData(n,i){const t=n.numRows,e=i.length;if(t===0||e===0)return n.select([]);const o=i.map(d=>d.arrowField.name);return n.select(o)}function parsePandasIndexColumnTypes(n,i,t){return i?i.index_columns.map(o=>{if(isPandasRangeIndex(o)){const p=o.name||"";return{type:DataFrameCellType.INDEX,arrowField:new Field(p,new Int_(!0,64),!0),pandasType:{field_name:p,name:p,pandas_type:PandasRangeIndexType,numpy_type:PandasRangeIndexType,metadata:o}}}const d=n.fields.find(p=>p.name===o);if(!d)throw new Error(`Index field ${o} not found in arrow schema`);return{type:DataFrameCellType.INDEX,arrowField:d,pandasType:i.columns.find(p=>p.field_name===o),categoricalOptions:t[d.name]}}):[]}function parseDataColumnTypes(n,i,t){return n.fields.filter(d=>i?!i.index_columns.includes(d.name):!0).map(d=>({type:DataFrameCellType.DATA,arrowField:d,pandasType:i?.columns.find(p=>p.field_name===d.name),categoricalOptions:t[d.name]}))}function parseCategoricalOptionsForColumns(n){const i={};return n.schema.fields.forEach((t,e)=>{if(t.type instanceof Dictionary){const o=n.getChildAt(e)?.data[0]?.dictionary;notNullOrUndefined(o)&&(i[t.name]=convertVectorToList(o))}}),i}function parseArrowIpcBytes(n){const i=tableFromIPC(n),t=i.schema,e=parsePandasSchema(i),o=parseCategoricalOptionsForColumns(i),d=parsePandasIndexColumnTypes(t,e,o),p=parseDataColumnTypes(t,e,o),h=parseData(i,p),y=parsePandasIndexData(i,e),E=parseColumnNames(p,d,e);return{pandasIndexData:y,data:h,columnNames:E,pandasIndexColumnTypes:d,dataColumnTypes:p}}var _a;_a=DRAFTABLE;class Quiver{constructor(i){this[_a]=!0;const{pandasIndexData:t,columnNames:e,data:o,dataColumnTypes:d,pandasIndexColumnTypes:p}=parseArrowIpcBytes(i.data),h=i.styler?parseStyler(i.styler):void 0;this._pandasIndexData=t,this._columnNames=e,this._data=o,this._dataColumnTypes=d,this._pandasIndexColumnTypes=p,this._styler=h,this._num_bytes=i.data?.length??0,this._columnTypes=this._pandasIndexColumnTypes.concat(this._dataColumnTypes)}get columnNames(){return this._columnNames}get columnTypes(){return this._columnTypes}get styler(){return this._styler}get dimensions(){const i=this._pandasIndexColumnTypes.length||0,t=this._columnNames.length||1,e=this._data.numRows||0,o=this._dataColumnTypes.length||0,d=t+e,p=i+o;return{numHeaderRows:t,numIndexColumns:i,numDataRows:e,numDataColumns:o,numRows:d,numColumns:p}}get hash(){const i=[this.dimensions.numColumns,this.dimensions.numDataColumns,this.dimensions.numDataRows,this.dimensions.numIndexColumns,this.dimensions.numHeaderRows,this.dimensions.numRows,this._num_bytes,this._columnNames];return hashString(i.join("-"))}getCell(i,t){const{numIndexColumns:e,numDataRows:o,numColumns:d}=this.dimensions;
45if(i<0||i>=o)throw new Error(`Row index is out of range: ${i}`);if(t<0||t>=d)throw new Error(`Column index is out of range: ${t}`);if(t<e){const $=this._pandasIndexColumnTypes[t],M=this.getIndexValue(i,t);return{type:DataFrameCellType.INDEX,content:M,contentType:$,field:$.arrowField}}const h=t-e,y=this._dataColumnTypes[h],E=this.getDataValue(i,h);return{type:DataFrameCellType.DATA,content:E,contentType:y,field:y.arrowField}}getIndexValue(i,t){const e=this._pandasIndexData[t];return e instanceof Vector?e.get(i):e[i]}getDataValue(i,t){return this._data.getChildAt(t)?.get(i)}addRows(i){if(this.styler||i.styler)throw new Error("\nUnsupported operation. `add_rows()` does not support Pandas Styler objects.\n\nIf you do not need the Styler's styles, try passing the `.data` attribute of\nthe Styler object instead to concatenate just the underlying dataframe.\n\nFor example:\n```\nst.add_rows(my_styler.data)\n```\n");if(i.dimensions.numDataRows===0)return produce(this,p=>p);if(this.dimensions.numDataRows===0)return produce(i,p=>p);const{index:t,data:e,indexTypes:o,dataTypes:d}=concat(this._dataColumnTypes,this._pandasIndexColumnTypes,this._pandasIndexData,this._data,i._dataColumnTypes,i._pandasIndexColumnTypes,i._pandasIndexData,i._data);return produce(this,p=>{p._pandasIndexData=t,p._data=e,p._pandasIndexColumnTypes=o,p._dataColumnTypes=d,p._columnTypes=o.concat(d)})}}function parseStyler(n){return{uuid:n.uuid,caption:n.caption,cssStyles:n.styles,cssId:n.uuid?`T_${n.uuid}`:void 0,displayValues:new Quiver({data:n.displayValues})}}class ElementNode{constructor(i,t,e,o,d){this.element=i,this.metadata=t,this.scriptRunId=e,this.activeScriptHash=o,this.fragmentId=d}get quiverElement(){if(this.lazyQuiverElement!==void 0)return this.lazyQuiverElement;if(this.element.type!=="table"&&this.element.type!=="dataframe")throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const i=this.element.type==="table"?this.element.table?.arrowData:this.element.dataframe?.arrowData,t=new Quiver(i);return this.lazyQuiverElement=t,t}get vegaLiteChartElement(){if(this.lazyVegaLiteChartElement!==void 0)return this.lazyVegaLiteChartElement;if(this.element.type!=="vegaLiteChart")throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const i=this.element.vegaLiteChart,t=i.data?new Quiver(i.data):null,e=i.datasets.length>0?wrapDatasets(i.datasets):[],o={data:t,spec:i.spec,datasets:e,useContainerWidth:i.useContainerWidth,vegaLiteTheme:i.theme,id:i.id,selectionMode:i.selectionMode,formId:i.formId};return this.lazyVegaLiteChartElement=o,o}arrowAddRows(i,t){const e=this.element.type,o=new ElementNode(this.element,this.metadata,t,this.activeScriptHash,this.fragmentId);switch(e){case"table":case"dataframe":{o.lazyQuiverElement=ElementNode.quiverAddRowsHelper(this.quiverElement,i);break}case"vegaLiteChart":{o.lazyVegaLiteChartElement=ElementNode.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,i);break}default:throw new Error(`elementType '${this.element.type}' is not a valid arrowAddRows target!`)}return o}static quiverAddRowsHelper(i,t){if(t.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const e=new Quiver(t.data);return i.addRows(e)}static vegaLiteChartAddRowsHelper(i,t){const e=t.hasName?t.name:null,o=new Quiver(t.data);return produce(i,d=>{const p=getNamedDataSet(d.datasets,e);p?p.data=p.data.addRows(o):d.data=d.data?d.data.addRows(o):o})}accept(i){return i.visitElementNode(this)}debug(){return this.accept(new DebugVisitor)}replaceTransientNodeWithSelf(i){if(i.scriptRunId!==this.scriptRunId)return this;if(i.transientNodes.length===0)return this;const t=i.updateTransientNodes(e=>e.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return t.length===0?this:new TransientNode(this.scriptRunId,this,t,i.deltaMsgReceivedAt)}}function getNamedDataSet(n,i){return n.length===1?n[0]:n.find(t=>t.hasName&&t.name===i)}function wrapDatasets(n){return n.map(i=>({hasName:i.hasName,name:i.name,data:new Quiver(i.data)}))}class ClearTransientNodesVisitor{constructor(i){this.fragmentIdsThisRun=i??[]}visitBlockNode(i){if(this.fragmentIdsThisRun.length>0&&i.fragmentId&&!this.fragmentIdsThisRun.includes(i.fragmentId))return i;const t=[];let e=!1;
45return i.children.forEach(o=>{const d=o.accept(this);d!==o&&(e=!0),d!==void 0&&t.push(d)}),e?new BlockNode(i.activeScriptHash,t,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitElementNode(i){return i}visitTransientNode(i){return i.anchor}}class ElementsSetVisitor{constructor(){this.elements=new Set}visitElementNode(i){return this.elements.add(i.element),this.elements}visitBlockNode(i){for(const t of i.children)t.accept(this);return this.elements}visitTransientNode(i){return i.transientNodes.forEach(t=>{t.accept(this)}),i.anchor?.accept(this),this.elements}static collectElements(i){const t=new ElementsSetVisitor;return i.accept(t),t.elements}}class FilterMainScriptElementsVisitor{constructor(i){this.mainScriptHash=i}visitElementNode(i){if(i.activeScriptHash===this.mainScriptHash)return i}visitBlockNode(i){if(i.activeScriptHash!==this.mainScriptHash)return;let t=!1;const e=[];for(const o of i.children){const d=o.accept(this);d!==o&&(t=!0),d!==void 0&&e.push(d)}return t?new BlockNode(i.activeScriptHash,e,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitTransientNode(i){const t=i.anchor?.accept(this),e=i.updateTransientNodes(o=>o.accept(this));if(!(!t&&e.length===0))return e.length===0?t:new TransientNode(i.scriptRunId,t,e,i.deltaMsgReceivedAt)}static filterNode(i,t){const e=new FilterMainScriptElementsVisitor(t);return i.accept(e)}}class GetNodeByDeltaPathVisitor{constructor(i){this.deltaPath=i}visitElementNode(i){}visitBlockNode(i){if(this.deltaPath.length===0)return;const[t,...e]=this.deltaPath;if(t<0||t>=i.children.length)return;if(e.length===0)return i.children[t];const o=new GetNodeByDeltaPathVisitor(e);return i.children[t].accept(o)}visitTransientNode(i){return this.deltaPath.length===0?i.anchor:i.anchor?.accept(this)}static getNodeAtPath(i,t){const e=new GetNodeByDeltaPathVisitor(t);return i.accept(e)}}class SetNodeByDeltaPathVisitor{constructor(i,t,e){this.deltaPath=i,this.nodeToSet=t,this.scriptRunId=e}visitElementNode(i){if(this.deltaPath.length>0)throw new Error("'setIn' cannot be called on an ElementNode");return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet}visitTransientNode(i){if(this.deltaPath.length===0)return this.nodeToSet.replaceTransientNodeWithSelf(i);if(i.anchor){const t=i.anchor.accept(this);return new TransientNode(i.scriptRunId,t,i.transientNodes,i.deltaMsgReceivedAt)}throw new Error("TransientNode has no anchor to set node at")}visitBlockNode(i){if(this.deltaPath.length===0)return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet;const[t,...e]=this.deltaPath;if(t<0||t>
45i.children.length)throw new Error(`Bad delta path index ${t} (should be between [0, ${i.children.length}])`);let o=[];const d=new SetNodeByDeltaPathVisitor(e,this.nodeToSet,this.scriptRunId);if(i.children[t]){let p=0;for(;p<i.children.length;){const h=i.children[p];if(p!==t){o.push(h),p++;continue}const y=h.accept(d);!(h instanceof TransientNode)&&y instanceof TransientNode&&y.anchor!==h?(o.push(y),o.push(h)):o.push(y),p++}}else{if(e.length>0)throw new Error("Cannot set a node at a delta path");o=i.children.slice(),o[t]=this.nodeToSet}return new BlockNode(i.activeScriptHash,o,i.deltaBlock,this.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt)}static setNodeAtPath(i,t,e,o){const d=new SetNodeByDeltaPathVisitor(t,e,o);return i.accept(d)}}class AppRoot{static empty(i="",t=!0,e,o){const d=[];let p;switch(getLoadingScreenType()){case LoadingScreenType.NONE:break;case LoadingScreenType.V1:t&&(p=makeElementWithInfoText("Please wait..."));break;default:p=makeAppSkeletonElement();break}p&&d.push(new ElementNode(p,ForwardMsgMetadata.create({}),NO_SCRIPT_RUN_ID,i));const h=new BlockNode(i,d,new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),y=e||new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),E=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),$=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),M=o?{logo:o,activeScriptHash:i,scriptRunId:NO_SCRIPT_RUN_ID}:null;return new AppRoot(i,new BlockNode(i,[h,y,E,$]),M)}constructor(i,t,e=null){if(this.mainScriptHash=i,this.root=t,this.appLogo=e,this.root.children.length!==4||isNullOrUndefined$1(this.main)||isNullOrUndefined$1(this.sidebar)||isNullOrUndefined$1(this.event)||isNullOrUndefined$1(this.bottom))throw new Error(`Invalid root node children! ${t}`)}get main(){const[i]=this.root.children;return i}get sidebar(){const[,i]=this.root.children;return i}get event(){const[,,i]=this.root.children;return i}get bottom(){const[,,,i]=this.root.children;return i}get logo(){return this.appLogo?.logo??null}appRootWithLogo(i,t){return new AppRoot(this.mainScriptHash,this.root,{logo:i,...t})}applyDelta(i,t,e){const{deltaPath:o,activeScriptHash:d}=e;switch(t.type){case"newElement":{const p=t.newElement;return this.addElement(o,i,p,e,d,t.fragmentId)}case"addBlock":{const p=Date.now();return this.addBlock(o,t.addBlock,i,d,t.fragmentId,p)}case"newTransient":{const p=t.newTransient;return this.addTransient(o,i,p,e,d,t.fragmentId)}case"arrowAddRows":try{return this.arrowAddRows(o,t.arrowAddRows,i)}catch(p){const h=makeElementWithErrorText(ensureError(p).message);return this.addElement(o,i,h,e,d)}default:throw new Error(`Unrecognized deltaType: '${t.type}'`)}}ensureBlockNode(i,t=this.mainScriptHash){return i??new BlockNode(t)}filterMainScriptElements(i){const t=this.main.scriptRunId,e=new FilterMainScriptElementsVisitor(i),o=this.root.children.map(p=>this.ensureBlockNode(p.accept(e),i)),d=this.appLogo?.activeScriptHash===i?this.appLogo:null;return new AppRoot(i,new BlockNode(i,o,new Block$1({allowEmpty:!0}),t),d)}clearStaleNodes(i,t){const e=new ClearStaleNodeVisitor(i,t),o=this.root.children.map(h=>this.ensureBlockNode(h.accept(e))),p=t&&t.length>0||this.appLogo?.scriptRunId===i?this.appLogo:null;return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,o,new Block$1({allowEmpty:!0}),i),p)}clearTransientNodes(i){const t=new ClearTransientNodesVisitor(i),e=this.root.children.map(o=>this.ensureBlockNode(o.accept(t)));return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,e,new Block$1({allowEmpty:!0}),this.main.scriptRunId),this.appLogo)}getElements(){const i=new ElementsSetVisitor;return this.main.accept(i),this.sidebar.accept(i),this.event.accept(i),this.bottom.accept(i),i.elements}addElement(i,t,e,o,d,p){const h=new ElementNode(e,o,t,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,h,t),this.appLogo)}addBlock(i,t,e,o,d,p){const h=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i),y=h instanceof TransientNode?h.anchor??h:h;let E=[];y instanceof BlockNode&&y.deltaBlock.type===t.type&&(t.dialog&&y.deltaBlock.dialog&&t.id!==y.deltaBlock.id||(E=y.children));const $=new BlockNode(o,E,t,e,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,$,e),this.appLogo)}addTransient(i,t,e,o,d,p,h){const y=new TransientNode(t,void 0,e.elements.map(E=>new ElementNode(E,o,t,d,p)),h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,y,t),this.appLogo)}
45arrowAddRows(i,t,e){const o=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);if(isNullOrUndefined$1(o)||!(o instanceof ElementNode))throw new Error(`Can't arrowAddRows: invalid deltaPath: ${i}`);const d=o.arrowAddRows(t,e);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,d,e),this.appLogo)}getChildName(i){switch(i){case this.main:return"main";case this.sidebar:return"sidebar";case this.event:return"event";case this.bottom:return"bottom";default:return"unknown"}}debug(){let i=`AppRoot 46`;return this.root.children.forEach((t,e)=>{const o=e===this.root.children.length-1,d=this.getChildName(t),p=o?"âââ ":"âââ ",h=o?" ":"â ";i+=`${p}${d}: 47`;const y=new DebugVisitor(h,!0);i+=t.accept(y)}),i}}var classnames={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(n){(function(){var i={}.hasOwnProperty;function t(){for(var d="",p=0;p<arguments.length;p++){var h=arguments[p];h&&(d=o(d,e(h)))}return d}function e(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return t.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var p="";for(var h in d)i.call(d,h)&&d[h]&&(p=o(p,h));return p}function o(d,p){return p?d?d+" "+p:d+p:d}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(classnames)),classnames.exports}var classnamesExports=requireClassnames();const classNames=getDefaultExportFromCjs(classnamesExports);var Direction=(function(n){return n.HORIZONTAL="row",n.VERTICAL="column",n})({});function getDirectionOfBlock(n){return n.flexContainer?n.flexContainer.direction==Block$1.FlexContainer.Direction.HORIZONTAL?"row":"column":n.vertical?"column":n.horizontal?"row":"column"}function shouldWidthStretch(n){return!!(n?.useStretch||n?.pixelWidth)}function shouldHeightStretch(n){return!!(n?.useStretch||n?.pixelHeight)}const alignmentMap={[streamlit.TextAlignmentConfig.Alignment.LEFT]:"left",[streamlit.TextAlignmentConfig.Alignment.CENTER]:"center",[streamlit.TextAlignmentConfig.Alignment.RIGHT]:"right",[streamlit.TextAlignmentConfig.Alignment.JUSTIFY]:"justify",[streamlit.TextAlignmentConfig.Alignment.UNSPECIFIED]:"left"};function getTextAlignmentStyle(n){if(n?.alignment)return alignmentMap[n.alignment]||"left"}const FlexContext=reactExports.createContext(null);FlexContext.displayName="FlexContext";const FlexContextProvider=({children:n,direction:i,isRoot:t,parentWidth:e,hasContentWidth:o=!1,hasFixedWidth:d=!1,parentContext:p=null})=>{const h=reactExports.useMemo(()=>{const y=i===Direction.HORIZONTAL;let E;return o?E=!0:d?E=!1:E=p?.isInContentWidthContainer??!1,{direction:i,isInHorizontalLayout:y,isInRoot:t??!1,parentWidth:e,isInContentWidthContainer:E}},[i,t,e,o,d,p]);return jsx$1(FlexContext.Provider,{value:h,children:n})};function guard(n,i,t){return Math.min(Math.max(n,t),i)}class ColorError extends Error{constructor(i){super(`Failed to parse color: "${i}"`)}}var ColorError$1=ColorError;function parseToRgba(n){if(typeof n!="string")throw new ColorError$1(n);if(n.trim().toLowerCase()==="transparent")return[0,0,0,0];let i=n.trim();i=namedColorRegex.test(n)?nameToHex(n):n;const t=reducedHexRegex.exec(i);if(t){const p=Array.from(t).slice(1);return[...p.slice(0,3).map(h=>parseInt(r$1(h,2),16)),parseInt(r$1(p[3]||"f",2),16)/255]}const e=hexRegex.exec(i);if(e){const p=Array.from(e).slice(1);return[...p.slice(0,3).map(h=>parseInt(h,16)),parseInt(p[3]||"ff",16)/255]}const o=rgbaRegex.exec(i);if(o){const p=Array.from(o).slice(1);return[...p.slice(0,3).map(h=>parseInt(h,10)),parseFloat(p[3]||"1")]}const d=hslaRegex.exec(i);if(d){const[p,h,y,E]=Array.from(d).slice(1).map(parseFloat);if(guard(0,100,h)!==h)throw new ColorError$1(n);if(guard(0,100,y)!==y)throw new ColorError$1(n);return[...hslToRgb(p,h,y),Number.isNaN(E)?1:E]}throw new ColorError$1(n)}function hash(n){let i=5381,t=n.length;for(;t;)i=i*33^n.charCodeAt(--t);return(i>>>0)%2341}const colorToInt=n=>parseInt(n.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((n,i)=>{const t=colorToInt(i.substring(0,3)),e=colorToInt(i.substring(3)).toString(16);let o="";for(let d=0;d<6-e.length;d++)o+="0";return n[t]=`${o}${e}`,n},{});function nameToHex(n){const i=n.toLowerCase().trim(),t=compressedColorMap[hash(i)];if(!t)throw new ColorError$1(n);return`#${t}`}const r$1=(n,i)=>Array.from(Array(i)).map(()=>n).join(""),reducedHexRegex=new RegExp(`^#${r$1("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r$1("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$1(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=n=>Math.round(n*255),hslToRgb=(n,i,t)=>{let e=t/100;if(i===0)return[e,e,e].map(roundColor);const o=(n%360+360)%360/60,d=(1-Math.abs(2*e-1))*(i/100),p=d*(1-Math.abs(o%2-1));let h=0,y=0,E=0;o>=0&&o<1?(h=d,y=p):o>=1&&o<2?(h=p,y=d):o>=2&&o<3?(y=d,E=p):o>=3&&o<4?(y=p,E=d):o>=4&&o<5?(h=p,E=d):o>=5&&o<6&&(h=d,E=p);const $=e-d/2,M=h+$,X=y+$,Z=E+$;return[M,X,Z].map(roundColor)};function parseToHsla(n){const[i,t,e,o]=parseToRgba(n).map((M,X)=>X===3?M:M/255),d=Math.max(i,t,e),p=Math.min(i,t,e),h=(d+p)/2;if(d===p)return[0,0,h,o];const y=d-p,E=h>.5?y/(2-d-p):y/(d+p);return[60*(i===d?(t-e)/y+(t<e?6:0):t===d?(e-i)/y+2:(i-t)/y+4),E,h,o]}function hsla(n,i,t,e){return`hsla(${(n%360).toFixed()}, ${guard(0,100,i*100).toFixed()}%, ${guard(0,100,t*100).toFixed()}%, ${parseFloat(guard(0,1,e).toFixed(3))})`}function darken(n,i){const[t,e,o,d]=parseToHsla(n);return hsla(t,e,o-i,d)}function getLuminance(n){if(n==="transparent")return 0;function i(d){const p=d/255;return p<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}const[t,e,o]=parseToRgba(n);return .2126*i(t)+.7152*i(e)+.0722*i(o)}function rgba(n,i,t,e){return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,i).toFixed()}, ${guard(0,255,t).toFixed()}, ${parseFloat(guard(0,1,e).toFixed(3))})`}function mix(n,i,t){const e=(De,Le)=>Le===3?De:De/255,[o,d,p,h]=parseToRgba(n).map(e),[y,E,$,M]=parseToRgba(i).map(e),X=M-h,Z=t*2-1,be=((Z*X===-1?Z:Z+X/(1+Z*X))+1)/2,we=1-be,xe=(o*we+y*be)*255,$e=(d*we+E*be)*255,Ne=(p*we+$*be)*255,Fe=M*t+h*(1-t);return rgba(xe,$e,Ne,Fe)}function lighten(n,i){return darken(n,-i)}function transparentize(n,i){const[t,e,o,d]=parseToRgba(n);return rgba(t,e,o,d-i)}function toHex(n){const[i,t,e,o]=parseToRgba(n);let d=p=>{const h=guard(0,255,p).toString(16);return h.length===1?`0${h}`:h};return`#${d(i)}${d(t)}${d(e)}${o<1?d(Math.round(o*255)):""}`}var colors$3={white:"#FFFFFF",gray50:"#F6F6F6",gray100:"#EEEEEE",gray200:"#E2E2E2",gray300:"#CBCBCB",gray400:"#AFAFAF",gray500:"#6B6B6B",gray600:"#545454",gray700:"#333333",gray800:"#1F1F1F",gray900:"#141414",black:"#000000",platinum400:"#8EA3AD",red50:"#FFEFED",red100:"#FED7D2",red200:"#F1998E",red300:"#E85C4A",red400:"#E11900",red500:"#AB1300",red600:"#870F00",red700:"#5A0A00",orange200:"#FABDA5",orange300:"#FA9269",orange400:"#FF6937",orange500:"#C14F29",orange600:"#9A3F21",orange700:"#672A16",yellow50:"#FFFAF0",yellow100:"#FFF2D9",yellow200:"#FFE3AC",yellow300:"#FFCF70",yellow400:"#FFC043",yellow500:"#BC8B2C",yellow600:"#996F00",yellow700:"#674D1B",green50:"#E6F2ED",green100:"#ADDEC9",green200:"#66D19E",green300:"#06C167",green400:"#048848",green500:"#03703C",green600:"#03582F",green700:"#10462D",blue50:"#EFF3FE",blue100:"#D4E2FC",blue200:"#A0BFF8",blue300:"#5B91F5",blue400:"#276EF1",blue500:"#1E54B7",blue600:"#174291",blue700:"#102C60",cobalt400:"#0E1FC1",purple200:"#C1B4E2",purple300:"#957FCE",purple400:"#7356BF",purple500:"#574191",purple600:"#453473",purple700:"#2E224C",brown200:"#D2BBB0",brown300:"#B18977",brown400:"#99644C",brown500:"#744C3A",brown600:"#5C3C2E",brown700:"#3D281E"},lightColorTokens={primaryA:colors$3.black,primaryB:colors$3.white,primary:colors$3.black,primary50:colors$3.gray50,primary100:colors$3.gray100,primary200:colors$3.gray200,primary300:colors$3.gray300,primary400:colors$3.gray400,primary500:colors$3.gray500,primary600:colors$3.gray600,primary700:colors$3.gray700,accent:colors$3.blue400,accent50:colors$3.blue50,accent100:colors$3.blue100,accent200:colors$3.blue200,accent300:colors$3.blue300,accent400:colors$3.blue400,accent500:colors$3.blue500,accent600:colors$3.blue600,accent700:colors$3.blue700,negative:colors$3.red400,negative50:colors$3.red50,negative100:colors$3.red100,negative200:colors$3.red200,negative300:colors$3.red300,negative400:colors$3.red400,negative500:colors$3.red500,negative600:colors$3.red600,negative700:colors$3.red700,warning:colors$3.yellow400,warning50:colors$3.yellow50,warning100:colors$3.yellow100,warning200:colors$3.yellow200,warning300:colors$3.yellow300,warning400:colors$3.yellow400,warning500:colors$3.yellow500,warning600:colors$3.yellow600,warning700:colors$3.yellow700,positive:colors$3.green500,positive50:colors$3.green50,positive100:colors$3.green100,positive200:colors$3.green200,positive300:colors$3.green300,positive400:colors$3.green400,positive500:colors$3.green500,positive600:colors$3.green600,positive700:colors$3.green700,white:colors$3.white,black:colors$3.black,mono100:colors$3.white,mono200:colors$3.gray50,mono300:colors$3.gray100,mono400:colors$3.gray200,mono500:colors$3.gray300,mono600:colors$3.gray400,mono700:colors$3.gray500,mono800:colors$3.gray600,mono900:colors$3.gray700,mono1000:colors$3.black,ratingInactiveFill:colors$3.gray100,ratingStroke:colors$3.gray300};function hexToRgb(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"1",t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(t,function(o,d,p,h){return d+d+p+p+h+h});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return e?"rgba(".concat(parseInt(e[1],16),", ").concat(parseInt(e[2],16),", ").concat(parseInt(e[3],16),", ").concat(i,")"):null}var ellipsisText={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};function expandBorderStyles(n){return{borderTopWidth:n.borderWidth,borderTopStyle:n.borderStyle,borderTopColor:n.borderColor,borderBottomWidth:n.borderWidth,borderBottomStyle:n.borderStyle,borderBottomColor:n.borderColor,borderLeftWidth:n.borderWidth,borderLeftStyle:n.borderStyle,borderLeftColor:n.borderColor,borderRightWidth:n.borderWidth,borderRightStyle:n.borderStyle,borderRightColor:n.borderColor}}function ownKeys$o(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$n(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
47i%2?ownKeys$o(Object(t),!0).forEach(function(e){_defineProperty$s(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$o(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$s(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}const getSemanticColorTokens=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens,i={backgroundPrimary:n.primaryB,backgroundSecondary:colors$3.gray50,backgroundTertiary:colors$3.gray100,backgroundInversePrimary:n.primaryA,backgroundInverseSecondary:colors$3.gray800,contentPrimary:n.primaryA,contentSecondary:colors$3.gray600,contentTertiary:colors$3.gray500,contentInversePrimary:n.primaryB,contentInverseSecondary:colors$3.gray300,contentInverseTertiary:colors$3.gray400,borderOpaque:colors$3.gray200,borderTransparent:hexToRgb(n.primaryA,"0.08"),borderSelected:n.primaryA,borderInverseOpaque:colors$3.gray700,borderInverseTransparent:hexToRgb(n.primaryB,"0.2"),borderInverseSelected:n.primaryB},t={backgroundStateDisabled:colors$3.gray50,backgroundOverlayDark:hexToRgb(colors$3.black,"0.3"),backgroundOverlayLight:hexToRgb(colors$3.black,"0.08"),backgroundOverlayArt:hexToRgb(colors$3.black,"0.00"),backgroundAccent:n.accent,backgroundNegative:n.negative,backgroundWarning:n.warning,backgroundPositive:colors$3.green400,backgroundLightAccent:colors$3.blue50,backgroundLightNegative:colors$3.red50,backgroundLightWarning:colors$3.yellow50,backgroundLightPositive:colors$3.green50,backgroundAlwaysDark:colors$3.black,backgroundAlwaysLight:colors$3.white,contentStateDisabled:colors$3.gray400,contentAccent:n.accent,contentOnColor:colors$3.white,contentOnColorInverse:colors$3.black,contentNegative:n.negative,contentWarning:colors$3.yellow600,contentPositive:colors$3.green400,borderStateDisabled:colors$3.gray50,borderAccent:colors$3.blue400,borderAccentLight:colors$3.blue200,borderNegative:colors$3.red200,borderWarning:colors$3.yellow200,borderPositive:colors$3.green200,safety:colors$3.blue400,eatsGreen400:colors$3.green400,freightBlue400:colors$3.cobalt400,jumpRed400:colors$3.red400,rewardsTier1:colors$3.blue400,rewardsTier2:colors$3.yellow400,rewardsTier3:colors$3.platinum400,rewardsTier4:colors$3.black,membership:colors$3.yellow600};return _objectSpread$n(_objectSpread$n({},i),t)});var tagHoverBackground="rgba(0, 0, 0, 0.08)";const getComponentColorTokens=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens;return{bannerActionLowInfo:n.accent100,bannerActionLowNegative:n.negative100,bannerActionLowPositive:n.positive100,bannerActionLowWarning:n.warning200,bannerActionHighInfo:n.accent500,bannerActionHighNegative:n.negative500,bannerActionHighPositive:n.positive500,bannerActionHighWarning:n.warning200,buttonPrimaryFill:n.primary,buttonPrimaryText:n.white,buttonPrimaryHover:n.primary700,buttonPrimaryActive:n.primary600,buttonPrimarySelectedFill:n.primary600,buttonPrimarySelectedText:n.white,buttonPrimarySpinnerForeground:n.accent,buttonPrimarySpinnerBackground:n.primaryB,buttonSecondaryFill:n.primary100,buttonSecondaryText:n.primary,buttonSecondaryHover:n.primary200,buttonSecondaryActive:n.primary300,buttonSecondarySelectedFill:n.primary300,buttonSecondarySelectedText:n.primary,buttonSecondarySpinnerForeground:n.accent,buttonSecondarySpinnerBackground:n.primaryB,buttonTertiaryFill:"transparent",buttonTertiaryText:n.primary,buttonTertiaryHover:n.primary50,buttonTertiaryActive:n.primary100,buttonTertiarySelectedFill:n.primary100,buttonTertiarySelectedText:n.primary,buttonTertiaryDisabledActiveFill:n.primary50,buttonTertiaryDisabledActiveText:n.mono600,buttonTertiarySpinnerForeground:n.accent,buttonTertiarySpinnerBackground:n.primary100,buttonDisabledFill:n.mono200,buttonDisabledText:n.mono600,buttonDisabledActiveFill:n.mono700,buttonDisabledActiveText:n.mono100,buttonDisabledSpinnerForeground:n.mono600,buttonDisabledSpinnerBackground:n.mono400,breadcrumbsText:n.black,breadcrumbsSeparatorFill:n.mono700,calendarBackgroun
47d:n.mono100,calendarForeground:n.mono1000,calendarForegroundDisabled:n.mono500,calendarHeaderBackground:n.white,calendarHeaderForeground:n.primary,calendarHeaderBackgroundActive:n.primary700,calendarHeaderForegroundDisabled:n.primary500,calendarDayForegroundPseudoSelected:n.mono1000,calendarDayBackgroundPseudoSelectedHighlighted:n.primary200,calendarDayForegroundPseudoSelectedHighlighted:n.mono1000,calendarDayBackgroundSelected:n.primary,calendarDayForegroundSelected:n.white,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelectedHighlighted:n.white,comboboxListItemFocus:n.mono200,comboboxListItemHover:n.mono300,fileUploaderBackgroundColor:n.mono200,fileUploaderBackgroundColorActive:n.primary50,fileUploaderBorderColorActive:n.primary,fileUploaderBorderColorDefault:n.mono500,fileUploaderMessageColor:n.mono800,linkText:n.primary,linkVisited:n.primary700,linkHover:n.primary600,linkActive:n.primary500,listHeaderFill:n.white,listBodyFill:n.white,progressStepsCompletedText:n.white,progressStepsCompletedFill:n.primary,progressStepsActiveText:n.white,progressStepsActiveFill:n.primary,toggleFill:n.white,toggleFillChecked:n.primary,toggleFillDisabled:n.mono600,toggleTrackFill:n.mono400,toggleTrackFillDisabled:n.mono300,tickFill:n.mono100,tickFillHover:n.mono200,tickFillActive:n.mono300,tickFillSelected:n.primary,tickFillSelectedHover:n.primary700,tickFillSelectedHoverActive:n.primary600,tickFillError:n.negative50,tickFillErrorHover:n.negative100,tickFillErrorHoverActive:n.negative200,tickFillErrorSelected:n.negative400,tickFillErrorSelectedHover:n.negative500,tickFillErrorSelectedHoverActive:n.negative600,tickFillDisabled:n.mono600,tickBorder:n.mono700,tickBorderError:n.negative400,tickMarkFill:n.white,tickMarkFillError:n.white,tickMarkFillDisabled:n.mono100,sliderTrackFill:"transparent",sliderHandleFill:n.primaryA,sliderHandleFillDisabled:n.primary400,sliderHandleInnerFill:n.primaryA,sliderTrackFillHover:n.mono500,sliderTrackFillActive:n.mono600,sliderTrackFillDisabled:n.mono300,sliderHandleInnerFillDisabled:n.mono400,sliderHandleInnerFillSelectedHover:n.primary,sliderHandleInnerFillSelectedActive:n.primary500,inputBorder:n.mono300,inputFill:n.mono300,inputFillError:n.negative50,inputFillDisabled:n.mono200,inputFillActive:n.mono200,inputFillPositive:n.positive50,inputTextDisabled:n.mono600,inputBorderError:n.negative200,inputBorderPositive:n.positive200,inputEnhancerFill:n.mono300,inputEnhancerFillDisabled:n.mono300,inputEnhancerTextDisabled:n.mono600,inputPlaceholder:n.mono700,inputPlaceholderDisabled:n.mono600,menuFill:n.mono100,menuFillHover:n.mono200,menuFontDefault:n.mono800,menuFontDisabled:n.mono500,menuFontHighlighted:n.mono1000,menuFontSelected:n.mono1000,modalCloseColor:n.mono1000,modalCloseColorHover:n.mono800,modalCloseColorFocus:n.mono800,tabBarFill:n.mono200,tabColor:n.mono800,notificationInfoBackground:n.accent50,notificationInfoText:n.primaryA,notificationPositiveBackground:n.positive50,notificationPositiveText:n.primaryA,notificationWarningBackground:n.warning50,notificationWarningText:n.primaryA,notificationNegativeBackground:n.negative50,notificationNegativeText:n.primaryA,tagFontDisabledRampUnit:"100",tagSolidFontRampUnit:"0",tagSolidRampUnit:"400",tagOutlinedFontRampUnit:"400",tagOutlinedRampUnit:"200",tagSolidHoverRampUnit:"50",tagSolidActiveRampUnit:"100",tagSolidDisabledRampUnit:"50",tagSolidFontHoverRampUnit:"500",tagLightRampUnit:"50",tagLightHoverRampUnit:"100",tagLightActiveRampUnit:"100",tagLightFontRampUnit:"500",tagLightFontHoverRampUnit:"500",tagOutlinedHoverRampUnit:"50",tagOutlinedActiveRampUnit:"0",tagOutlinedFontHoverRampUnit:"400",tagNeutralFontDisabled:n.mono600,tagNeutralOutlinedDisabled:n.mono400,tagNeutralSolidFont:n.white,tagNeutralSolidBackground:n.black,tagNeutralOutlinedBackground:n.mono600,tagNeutralOutlinedFont:n.black,tagNeutralSolidHover:n.mono300,tagNeutralSolidActive:n.mono400,tagNeutralSolidDisabled:n.mono200,tagNeutralSolidFontHover:n.mono900,tagNeutralLightBackgroun
47d:n.mono300,tagNeutralLightHover:n.mono300,tagNeutralLightActive:n.mono400,tagNeutralLightDisabled:n.mono200,tagNeutralLightFont:n.mono900,tagNeutralLightFontHover:n.mono900,tagNeutralOutlinedActive:n.mono900,tagNeutralOutlinedFontHover:n.mono800,tagNeutralOutlinedHover:tagHoverBackground,tagPrimaryFontDisabled:n.primary400,tagPrimaryOutlinedDisabled:n.primary200,tagPrimarySolidFont:n.white,tagPrimarySolidBackground:n.primary,tagPrimaryOutlinedFontHover:n.primary,tagPrimaryOutlinedFont:n.primary,tagPrimarySolidHover:n.primary100,tagPrimarySolidActive:n.primary200,tagPrimarySolidDisabled:n.primary50,tagPrimarySolidFontHover:n.primary700,tagPrimaryLightBackground:n.primary50,tagPrimaryLightHover:n.primary100,tagPrimaryLightActive:n.primary100,tagPrimaryLightDisabled:n.primary50,tagPrimaryLightFont:n.primary500,tagPrimaryLightFontHover:n.primary500,tagPrimaryOutlinedActive:n.primary600,tagPrimaryOutlinedHover:tagHoverBackground,tagPrimaryOutlinedBackground:n.primary400,tagAccentFontDisabled:n.accent200,tagAccentOutlinedDisabled:n.accent200,tagAccentSolidFont:n.white,tagAccentSolidBackground:n.accent400,tagAccentOutlinedBackground:n.accent200,tagAccentOutlinedFont:n.accent400,tagAccentSolidHover:n.accent50,tagAccentSolidActive:n.accent100,tagAccentSolidDisabled:n.accent50,tagAccentSolidFontHover:n.accent500,tagAccentLightBackgroun
47d:n.accent50,tagAccentLightHover:n.accent100,tagAccentLightActive:n.accent100,tagAccentLightDisabled:n.accent50,tagAccentLightFont:n.accent500,tagAccentLightFontHover:n.accent500,tagAccentOutlinedActive:n.accent600,tagAccentOutlinedFontHover:n.accent400,tagAccentOutlinedHover:tagHoverBackground,tagPositiveFontDisabled:n.positive200,tagPositiveOutlinedDisabled:n.positive200,tagPositiveSolidFont:n.white,tagPositiveSolidBackground:n.positive400,tagPositiveOutlinedBackground:n.positive200,tagPositiveOutlinedFont:n.positive400,tagPositiveSolidHover:n.positive50,tagPositiveSolidActive:n.positive100,tagPositiveSolidDisabled:n.positive50,tagPositiveSolidFontHover:n.positive500,tagPositiveLightBackground:n.positive50,tagPositiveLightHover:n.positive100,tagPositiveLightActive:n.positive100,tagPositiveLightDisabled:n.positive50,tagPositiveLightFont:n.positive500,tagPositiveLightFontHover:n.positive500,tagPositiveOutlinedActive:n.positive600,tagPositiveOutlinedFontHover:n.positive400,tagPositiveOutlinedHover:tagHoverBackground,tagWarningFontDisabled:n.warning300,tagWarningOutlinedDisabled:n.warning300,tagWarningSolidFont:n.warning700,tagWarningSolidBackground:n.warning400,tagWarningOutlinedBackground:n.warning300,tagWarningOutlinedFont:n.warning600,tagWarningSolidHover:n.warning50,tagWarningSolidActive:n.warning100,tagWarningSolidDisabled:n.warning50,tagWarningSolidFontHover:n.warning500,tagWarningLightBackgroun
47d:n.warning50,tagWarningLightHover:n.warning100,tagWarningLightActive:n.warning100,tagWarningLightDisabled:n.warning50,tagWarningLightFont:n.warning500,tagWarningLightFontHover:n.warning500,tagWarningOutlinedActive:n.warning600,tagWarningOutlinedFontHover:n.warning600,tagWarningOutlinedHover:tagHoverBackground,tagNegativeFontDisabled:n.negative200,tagNegativeOutlinedDisabled:n.negative200,tagNegativeSolidFont:n.white,tagNegativeSolidBackground:n.negative400,tagNegativeOutlinedBackground:n.negative200,tagNegativeOutlinedFont:n.negative400,tagNegativeSolidHover:n.negative50,tagNegativeSolidActive:n.negative100,tagNegativeSolidDisabled:n.negative50,tagNegativeSolidFontHover:n.negative500,tagNegativeLightBackground:n.negative50,tagNegativeLightHover:n.negative100,tagNegativeLightActive:n.negative100,tagNegativeLightDisabled:n.negative50,tagNegativeLightFont:n.negative500,tagNegativeLightFontHover:n.negative500,tagNegativeOutlinedActive:n.negative600,tagNegativeOutlinedFontHover:n.negative400,tagNegativeOutlinedHover:tagHoverBackground,tableHeadBackgroundColor:n.mono100,tableBackground:n.mono100,tableStripedBackground:n.mono200,tableFilter:n.mono600,tableFilterHeading:n.mono700,tableFilterBackground:n.mono100,tableFilterFooterBackground:n.mono200,toastText:n.white,toastPrimaryText:n.white,toastInfoBackground:n.accent400,toastInfoText:n.white,toastPositiveBackground:n.positive400,toastPositiveText:n.white,toastWarningBackground:n.warning400,toastWarningText:n.black,toastNegativeBackground:n.negative400,toastNegativeText:n.white,spinnerTrackFill:n.mono900,progressbarTrackFill:n.mono900,tooltipBackground:n.mono900,tooltipText:n.mono100}});var borders={border100:{borderColor:"hsla(0, 0%, 0%, 0.04)",borderStyle:"solid",borderWidth:"1px"},border200:{borderColor:"hsla(0, 0%, 0%, 0.08)",borderStyle:"solid",borderWidth:"1px"},border300:{borderColor:"hsla(0, 0%, 0%, 0.12)",borderStyle:"solid",borderWidth:"1px"},border400:{borderColor:"hsla(0, 0%, 0%, 0.16)",borderStyle:"solid",borderWidth:"1px"},border500:{borderColor:"hsla(0, 0%, 0%, 0.2)",borderStyle:"solid",borderWidth:"1px"},border600:{borderColor:"hsla(0, 0%, 0%, 0.24)",borderStyle:"solid",borderWidth:"1px"},radius100:"2px",radius200:"4px",radius300:"8px",radius400:"12px",radius500:"16px",useRoundedCorners:!0,buttonBorderRadiusMini:"4px",buttonBorderRadius:"8px",checkboxBorderRadius:"0px",inputBorderRadiusMini:"4px",inputBorderRadius:"8px",popoverBorderRadius:"8px",surfaceBorderRadius:"0px",tagBorderRadius:"24px"},lighting={shadow400:"0 1px 4px hsla(0, 0%, 0%, 0.16)",shadow500:"0 2px 8px hsla(0, 0%, 0%, 0.16)",shadow600:"0 4px 16px hsla(0, 0%, 0%, 0.16)",shadow700:"0 8px 24px hsla(0, 0%, 0%, 0.16)",overlay0:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0)",overlay100:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.04)",overlay200:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.08)",overlay300:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)",overlay400:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)",overlay500:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)",overlay600:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)",shallowAbove:"0px -4px 16px rgba(0, 0, 0, 0.12)",shallowBelow:"0px 4px 16px rgba(0, 0, 0, 0.12)",deepAbove:"0px -16px 48px rgba(0, 0, 0, 0.22)",deepBelow:"0px 16px 48px rgba(0, 0, 0, 0.22)"};function ownKeys$n(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$m(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$n(Object(t),!0).forEach(function(e){_defineProperty$r(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$n(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$r(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var defaultFontTokens={primaryFontFamily:'system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif'},monoFontFamily='"Lucida Console", Monaco, monospace';const getTypography=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultFontTokens,i={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:"normal",lineHeight:"20px"},t={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:500,lineHeight:"16px"},e={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},o={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:500,lineHeight:"16px"},d={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:"normal",lineHeight:"24px"},p={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:500,lineHeight:"20px"},h={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:"normal",lineHeight:"28px"},y={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:500,lineHeight:"24px"},E={fontFamily:n.primaryFontFamily,fontSize:"20px",fontWeight:700,lineHeight:"28px"},$={fontFamily:n.primaryFontFamily,fontSize:"24px",fontWeight:700,lineHeight:"32px"},M={fontFamily:n.primaryFontFamily,fontSize:"28px",fontWeight:700,lineHeight:"36px"},X={fontFamily:n.primaryFontFamily,fontSize:"32px",fontWeight:700,lineHeight:"40px"},Z={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},ye={fontFamily:n.primaryFontFamily,fontSize:"40px",fontWeight:700,lineHeight:"52px"},be={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},we={fontFamily:n.primaryFontFamily,fontSize:"44px",fontWeight:700,lineHeight:"52px"},xe={fontFamily:n.primaryFontFamily,fontSize:"52px",fontWeight:700,lineHeight:"64px"},$e={fontFamily:n.primaryFontFamily,fontSize:"96px",fontWeight:700,lineHeight:"112px"};return{font100:i,font150:t,font200:e,font250:o,font300:d,font350:p,font400:h,font450:y,font550:E,font650:$,font750:M,font850:X,font950:Z,font1050:ye,font1150:be,font1250:we,font1350:xe,font1450:$e,ParagraphXSmall:i,ParagraphSmall:e,ParagraphMedium:d,ParagraphLarge:h,LabelXSmall:t,LabelSmall:o,LabelMedium:p,LabelLarge:y,HeadingXSmall:E,HeadingSmall:$,HeadingMedium:M,HeadingLarge:X,HeadingXLarge:Z,HeadingXXLarge:ye,DisplayXSmall:be,DisplaySmall:we,DisplayMedium:xe,DisplayLarge:$e,MonoParagraphXSmall:_objectSpread$m(_objectSpread$m({},i),{},{fontFamily:monoFontFamily}),MonoParagraphSmall:_objectSpread$m(_objectSpread$m({},e),{},{fontFamily:monoFontFamily}),MonoParagraphMedium:_objectSpread$m(_objectSpread$m({},d),{},{fontFamily:monoFontFamily}),MonoParagraphLarge:_objectSpread$m(_objectSpread$m({},h),{},{fontFamily:monoFontFamily}),MonoLabelXSmall:_objectSpread$m(_objectSpread$m({},t),{},{fontFamily:monoFontFamily}),MonoLabelSmall:_objectSpread$m(_objectSpread$m({},o),{},{fontFamily:monoFontFamily}),MonoLabelMedium:_objectSpread$m(_objectSpread$m({},p),{},{fontFamily:monoFontFamily}),MonoLabelLarge:_objectSpread$m(_objectSpread$m({},y),{},{fontFamily:monoFontFamily}),MonoHeadingXSmall:_objectSpread$m(_objectSpread$m({},E),{},{fontFamily:monoFontFamily}),MonoHeadingSmall:_objectSpread$m(_objectSpread$m({},$),{},{fontFamily:monoFontFamily}),MonoHeadingMedium:_objectSpread$m(_objectSpread$m({},M),{},{fontFamily:monoFontFamily}),MonoHeadingLarge:_objectSpread$m(_objectSpread$m({},X),{},{fontFamily:monoFontFamily}),MonoHeadingXLarge:_objectSpread$m(_objectSpread$m({},Z),{},{fontFamily:monoFontFamily}),MonoHeadingXXLarge:_objectSpread$m(_objectSpread$m({},ye),{},{fontFamily:monoFontFamily}),MonoDisplayXSmall:_objectSpread$m(_objectSpread$m({},be),{},{fontFamily:monoFontFamily}),MonoDisplaySmall:_objectSpread$m(_objectSpread$m({},we),{},{fontFamily:monoFontFamily}),MonoDisplayMedium:_objectSpread$m(_objectSpread$m({},xe),{},{fontFamily:monoFontFamily}),MonoDisplayLarge:_objectSpread$m(_objectSpread$m({},$e),{},{fontFamily:monoFontFamily})}});var animation={timing100:"100ms",timing200:"200ms",timing300:"300ms",timing400:"400ms",timing500:"500ms",timing600:"600ms",timing700:"700ms",timing800:"800ms",timing900:"900ms",timing1000:"1000ms",easeInCurve:"cubic-bezier(.8, .2, .6, 1
47)",easeOutCurve:"cubic-bezier(.2, .8, .4, 1)",easeInOutCurve:"cubic-bezier(0.4, 0, 0.2, 1)",easeInQuinticCurve:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuinticCurve:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuinticCurve:"cubic-bezier(0.86, 0, 0.07, 1)",linearCurve:"cubic-bezier(0, 0, 1, 1)"},breakpoints$1={small:320,medium:600,large:1136},grid={columns:[4,8,12],gutters:[16,36,36],margins:[16,36,64],gaps:0,unit:"px",maxWidth:1280},getMediaQuery=function n(i){return"@media screen and (min-width: ".concat(i,"px)")},mediaQuery={small:getMediaQuery(breakpoints$1.small),medium:getMediaQuery(breakpoints$1.medium),large:getMediaQuery(breakpoints$1.large)},sizing={scale0:"2px",scale100:"4px",scale200:"6px",scale300:"8px",scale400:"10px",scale500:"12px",scale550:"14px",scale600:"16px",scale650:"18px",scale700:"20px",scale750:"22px",scale800:"24px",scale850:"28px",scale900:"32px",scale950:"36px",scale1000:"40px",scale1200:"48px",scale1400:"56px",scale1600:"64px",scale2400:"96px",scale3200:"128px",scale4800:"192px"};function ownKeys$m(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$l(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$m(Object(t),!0).forEach(function(e){_defineProperty$q(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$m(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$q(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var LightTheme={name:"light-theme",colors:_objectSpread$l(_objectSpread$l(_objectSpread$l({},lightColorTokens),getComponentColorTokens()),getSemanticColorTokens()),animation,breakpoints:breakpoints$1,borders,direction:"auto",grid,lighting,mediaQuery,sizing,typography:getTypography(),zIndex:{modal:2e3}};function _typeof$d(n){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$d(n)}function deepMerge(n){n=n||{};for(var i=arguments.length<=1?0:arguments.length-1,t,e,o=0;o<i;o++){t=(o+1<1||arguments.length<=o+1?void 0:arguments[o+1])||{};for(var d in t)_typeof$d(t[d])!==void 0&&(e=t[d],isCloneable(e)?n[d]=deepMerge(n[d]||Array.isArray(e)&&[]||{},e):n[d]=e)}return n}function isCloneable(n){return Array.isArray(n)||{}.toString.call(n)=="[object Object]"}var darkColorTokens={primaryA:colors$3.gray200,primaryB:colors$3.gray900,primary:colors$3.white,primary50:colors$3.gray50,primary100:colors$3.gray100,primary200:colors$3.gray200,primary300:colors$3.gray300,primary400:colors$3.gray400,primary500:colors$3.gray500,primary600:colors$3.gray600,primary700:colors$3.gray700,accent:colors$3.blue400,accent50:colors$3.blue50,accent100:colors$3.blue100,accent200:colors$3.blue200,accent300:colors$3.blue300,accent400:colors$3.blue400,accent500:colors$3.blue500,accent600:colors$3.blue600,accent700:colors$3.blue700,negative:colors$3.red500,negative50:colors$3.red50,negative100:colors$3.red100,negative200:colors$3.red200,negative300:colors$3.red300,negative400:colors$3.red400,negative500:colors$3.red500,negative600:colors$3.red600,negative700:colors$3.red700,warning:colors$3.yellow500,warning50:colors$3.yellow50,warning100:colors$3.yellow100,warning200:colors$3.yellow200,warning300:colors$3.yellow300,warning400:colors$3.yellow400,warning500:colors$3.yellow500,warning600:colors$3.yellow600,warning700:colors$3.yellow700,positive:colors$3.green400,positive50:colors$3.green50,positive100:colors$3.green100,positive200:colors$3.green200,positive300:colors$3.green300,positive400:colors$3.green400,positive500:colors$3.green500,positive600:colors$3.green600,positive700:colors$3.green700,white:colors$3.white,black:colors$3.black,mono100:colors$3.gray300,mono200:colors$3.gray400,mono300:colors$3.gray500,mono400:colors$3.gray600,mono500:colors$3.gray700,mono600:"#292929",mono700:"#1F1F1F",mono800:"#141414",mono900:"#111111",mono1000:colors$3.black,ratingInactiveFill:colors$3.gray500,ratingStroke:colors$3.gray700},_excluded$c=["primaryFontFamily"];function ownKeys$l(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$k(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
47i%2?ownKeys$l(Object(t),!0).forEach(function(e){_defineProperty$p(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$l(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$p(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _objectWithoutProperties$d(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$d(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$d(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function createLightTheme(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,t=n.primaryFontFamily,e=_objectWithoutProperties$d(n,_excluded$c),o=_objectSpread$k(_objectSpread$k({},lightColorTokens),e),d={animation,borders,breakpoints:breakpoints$1,colors:_objectSpread$k(_objectSpread$k(_objectSpread$k({},o),getComponentColorTokens(o)),getSemanticColorTokens(o)),direction:"auto",grid,lighting,mediaQuery,sizing,typography:t?getTypography({primaryFontFamily:t}):getTypography(),zIndex:{modal:2e3}};return deepMerge(d,i)}function ownKeys$k(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$j(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$k(Object(t),!0).forEach(function(e){_defineProperty$o(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$k(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$o(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var primitives$1=_objectSpread$j(_objectSpread$j({},darkColorTokens),defaultFontTokens);function ownKeys$j(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$i(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$j(Object(t),!0).forEach(function(e){_defineProperty$n(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$j(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$n(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var primitives=_objectSpread$i(_objectSpread$i({},lightColorTokens),defaultFontTokens),ThemeContext$1=reactExports.createContext(LightTheme),ThemeProvider$1=function n(i){var t=i.theme,e=i.children;return reactExports.createElement(ThemeContext$1.Provider,{value:t},e)};function ownKeys$i(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$h(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$i(Object(t),!0).forEach(function(e){_defineProperty$m(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$i(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$m(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _slicedToArray$9(n,i){return _arrayWithHoles$9(n)||_iterableToArrayLimit$9(n,i)||_unsupportedIterableToArray$9(n,i)||_nonIterableRest$9()}function _nonIterableRest$9(){throw new TypeError(`Invalid attempt to de
47structure non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$9(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$9(n,i)}}function _arrayLikeToArray$9(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$9(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$9(n){if(Array.isArray(n))return n}function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$i.apply(this,arguments)}var wrapper=function n(i){return reactExports.forwardRef(function(t,e){return reactExports.createElement(ThemeContext$1.Consumer,null,function(o){return reactExports.createElement(i,_extends$i({ref:e},t,{$theme:o}))})})};function createThemedStyled(){return createStyled$1({wrapper,getInitialStyle,driver})}var styled$1=createThemedStyled();function createThemedWithStyle(){return withStyle$1}var withStyle=createThemedWithStyle();function createThemedUseStyletron(){return function(){var n=reactExports.useContext(ThemeContext$1),i=useStyletron$1(),t=_slicedToArray$9(i,1),e=t[0];return[e,n]}}var useStyletron=createThemedUseStyletron();function withWrapper(n,i){return withWrapper$1(n,function(t){return reactExports.forwardRef(function(e,o){return reactExports.createElement(ThemeContext$1.Consumer,null,function(d){return i(t)(_objectSpread$h(_objectSpread$h({ref:o},e),{},{$theme:d}))})})})}var locale$b={collapse:"Collapse",expand:"Expand"},locale$a={ariaLabel:"Breadcrumbs navigation"},locale$9={ariaLabel:"Select a date.",ariaLabelRange:"Select a date range.",ariaLabelCalendar:"Calendar.",ariaRoleDescriptionCalendarMonth:"Calendar month",previousMonth:"Previous month.",nextMonth:"Next month.",pastWeek:"Past Week",pastMonth:"Past Month",pastThreeMonths:"Past 3 Months",pastSixMonths:"Past 6 Months",pastYear:"Past Year",pastTwoYears:"Past 2 Years",screenReaderMessageInput:"Press the down arrow key to interact with the calendar and select a date. Press the escape button to close the calendar.",selectedDate:"Selected date is ${date}.",selectedDateRange:"Selected date range is from ${startDate} to ${endDate}.",selectSecondDatePrompt:"Select the second date.",quickSelectLabel:"Choose a date range",quickSelectAriaLabel:"Choose a date range",quickSelectPlaceholder:"None",timeSelectEndLabel:"End time",timeSelectStartLabel:"Start time",timePickerAriaLabel12Hour:"Select a time, 12-hour format.",timePickerAriaLabel24Hour:"Select a time, 24-hour format.",timezonePickerAriaLabel:"Select a timezone.",selectedStartDateLabel:"Selected start date.",selectedEndDateLabel:"Selected end date.",dateNotAvailableLabel:"Not available.",dateAvailableLabel:"It's available.",selectedLabel:"Selected.",chooseLabel:"Choose"},locale$8={emptyState:"No rows match the filter criteria defined. Please remove one or more filters to view more data.",loadingState:"Loading rows.",searchAriaLabel:"Search by text",filterAdd:"Add Filter",filterExclude:"Exclude",filterApply:"Apply",filterExcludeRange:"Exclude range",filterExcludeValue:"Exclude value",filterAppliedTo:"filter applied to",optionsLabel:"Select column to filter by",optionsSearch:"Search for a column to filter by...",optionsEmpty:"No columns available.",categoricalFilterSelectAll:"Select All",categoricalFilterSelectClear:"Clear",categoricalFilterEmpty:"No categories found",datetimeFilterRange:"Range",datetimeFilterRangeDatetime:"Date, Time",datetimeFilterRangeDate:"Date",datetimeFilterRangeTime:"Time",datetimeFilterCategorical:"Categorical",datetimeFilterCategoricalWeekday:"Weekday",datetimeFilterCategoricalMonth:"Month",datetimeFilterCategoricalQuarter:"Quarter",datetimeFilterCategoricalHalf:"Half",datetimeFilterCategoricalFirstHalf:"H1",datetimeFilterCategorical
48SecondHalf:"H2",datetimeFilterCategoricalYear:"Year",numericalFilterRange:"Range",numericalFilterSingleValue:"Single Value",booleanFilterTrue:"true",booleanFilterFalse:"false",booleanColumnTrueShort:"T",booleanColumnFalseShort:"F",selectRow:"Select row",selectAllRows:"Select all rows"},locale$7={ariaLabel:"button group"},locale$6={dropFilesToUpload:"Drop files here to upload...",or:"",browseFiles:"Browse files",retry:"Retry Upload",cancel:"Cancel"},locale$5={noResultsMsg:"No results",parentMenuItemAriaLabel:"You are currently at an item that opens a nested listbox. Press right arrow to enter that element and left arrow to return."},locale$4={close:"Close"},locale$3={close:"Close"},locale$2={prev:"Prev",next:"Next",preposition:"of"},locale$1={noResultsMsg:"No results found",placeholder:"Select...",create:"Create"},locale={close:"Close"},en_US={accordion:locale$b,breadcrumbs:locale$a,datepicker:locale$9,datatable:locale$8,buttongroup:locale$7,fileuploader:locale$6,menu:locale$5,modal:locale$4,drawer:locale$3,pagination:locale$2,select:locale$1,toast:locale},LocaleContext=reactExports.createContext(en_US),generateUID$1=function(){var n=1,i=new WeakMap,t=function(e,o){return typeof e=="number"||typeof e=="string"?o?"idx-".concat(o):"val-".concat(e):i.has(e)?"uid"+i.get(e):(i.set(e,n++),t(e))};return t},createSource=function(n){return n===void 0&&(n=""),{value:1,prefix:n,uid:generateUID$1()}},counter=createSource(),source=reactExports.createContext(createSource()),getId=function(n){return n.value++},getPrefix=function(n){return n?n.prefix:""}
48,__extends$1=(function(){var n=function(i,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(e[d]=o[d])},n(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),prefixId=function(n,i,t){var e=i+n;return String(t?t(e):e)},UID=(function(n){__extends$1(i,n);function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={quartz:t.props.idSource||counter,prefix:getPrefix(t.props.idSource),id:getId(t.props.idSource||counter)},t.uid=function(e){return prefixId(t.state.id+"-"+t.state.quartz.uid(e),t.state.prefix,t.props.name)},t}return i.prototype.render=function(){var t=this.props,e=t.children,o=t.name,d=this.state,p=d.id,h=d.prefix;return e(prefixId(p,h,o),this.uid)},i})(reactExports.Component),generateUID=function(n){var i=n||counter,t=getPrefix(i),e=getId(i),o=t+e,d=function(p){return o+i.uid(p)};return{uid:o,gen:d}},useUIDState=function(){var n=reactExports.useContext(source),i=reactExports.useState(function(){return generateUID(n)})[0];return i},useUID=function(){var n=useUIDState().uid;return n},useUIDSeed=function(){var n=useUIDState().gen;return n},UIDReset=function(n){var i=n.children,t=n.prefix,e=t===void 0?"":t,o=reactExports.useState(function(){return createSource(e)})[0];return reactExports.createElement(source.Provider,{value:o},i)},UIDConsumer=function(n){var i=n.name,t=n.children;return reactExports.createElement(source.Consumer,null,function(e){return reactExports.createElement(UID,{name:i,idSource:e,children:t})})},reactIsExports$1=requireReactIs$1();function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$h.apply(this,arguments)}function ownKeys$h(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$g(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$h(Object(t),!0).forEach(function(e){_defineProperty$l(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$h(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$l(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _typeof$c(n){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$c(n)}function getOverride(n){return reactIsExports$1.isValidElementType(n)?n:n&&_typeof$c(n)==="object"?n.component:n}function getOverrideProps(n){return n&&_typeof$c(n)==="object"?_typeof$c(n.props)==="object"?_objectSpread$g(_objectSpread$g({},n.props),{},{$style:n.style}):{$style:n.style}:{}}function toObjectOverride(n){return reactIsExports$1.isValidElementType(n)?{component:n}:n||{}}function getOverrides(n,i){var t=getOverride(n)||i;if(n&&_typeof$c(n)==="object"&&typeof n.props=="function"){var e=reactExports.forwardRef(function(d,p){var h=n.props(d),y=getOverrideProps(_objectSpread$g(_objectSpread$g({},n),{},{props:h}));return reactExports.createElement(t,_extends$h({ref:p},y))});return e.displayName=t.displayName,[e,{}]}var o=getOverrideProps(n);return[t,o]}function mergeOverrides(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Object.assign({},n,i),e=Object.keys(t);return e.reduce(function(o,d){return o[d]=mergeOverride(toObjectOverride(n[d]),toObjectOverride(i[d])),o},{})}function mergeOverride(n,i){var t=_objectSpread$g(_objectSpread$g({},n),i);return n.props&&i.props&&(t.props=mergeConfigurationOverrides(n.props,i.props)),n.style&&i.style&&(t.style=mergeConfigurationOverrides(n.style,i.style)),t}function mergeConfigurationOverrides(n,i){return _typeof$c(n)==="object"&&_typeof$c(i)==="object"?deepMerge({},n,i):function(){return deepMerge({},typeof n=="function"?n.apply(void 0,arguments):n,typeof i=="function"?i.apply(void 0,arguments):i)}}var initialized=!1,hadKeyboardEvent=!0,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(n){var i=n.type,t=n.tagName;return!!(t==="INPUT"&&inputTypesWhitelist[i]&&!n.readOnly||t==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function handleKeyDown(n){n.metaKey||n.altKey||n.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState}function prepare(n){n.addEventListener("keydown",handleKeyDown,!0),n.addEventListener("mousedown",handlePointerDown,!0),n.addEventListener("pointerdown",handlePointerDown,!0),n.addEventListener("touchstart",handlePointerDown,!0),n.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(n){try{return n.target.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(n.target)}function initFocusVisible(n){!initialized&&n!=null&&(initialized=!0,prepare(n.ownerDocument))}var forkFocus=function n(i,t){return function(e){typeof i.onFocus=="function"&&i.onFocus(e),t(e)}},forkBlur=function n(i,t){return function(e){typeof i.onBlur=="function"&&i.onBlur(e),t(e)}};function _typeof$b(n){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$b(n)}function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$g.apply(this,arguments)}function _slicedToArray$8(n,i){return _arrayWithHoles$8(n)||_iterableToArrayLimit$8(n,i)||_unsupportedIterableToArray$8(n,i)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError(`Invalid attempt to de
48structure non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$8(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$8(n){if(Array.isArray(n))return n}function _toConsumableArray$2(n){return _arrayWithoutHoles$2(n)||_iterableToArray$2(n)||_unsupportedIterableToArray$8(n)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$8(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$8(n,i)}}function _iterableToArray$2(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$2(n){if(Array.isArray(n))return _arrayLikeToArray$8(n)}function _arrayLikeToArray$8(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _classCallCheck$b(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$b(n,i,t){return i&&_defineProperties$b(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$b(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$b(n,i)}function _setPrototypeOf$b(n,i){return _setPrototypeOf$b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$b(n,i)}function _createSuper$b(n){var i=_isNativeReflectConstruct$b();return function(){var e=_getPrototypeOf$b(n),o;if(i){var d=_getPrototypeOf$b(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$b(this,o)}}function _possibleConstructorReturn$b(n,i){if(i&&(_typeof$b(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$b(n)}function _assertThisInitialized$b(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$b(n){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$b(n)}function _defineProperty$k(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var StyledAppContainer=styled$1("div",{});StyledAppContainer.displayName="StyledAppContainer";var StyledLayersContainer=styled$1("div",{});StyledLayersContainer.displayName="StyledLayersContainer";function defaultEventHandlerFn(){}var LayersContext=reactExports.createContext({addEscapeHandler:defaultEventHandlerFn,removeEscapeHandler:defaultEventHandlerFn,addKeyDownHandler:defaultEventHandlerFn,removeKeyDownHandler:defaultEventHandlerFn,addKeyUpHandler:defaultEventHandlerFn,removeKeyUpHandler:defaultEventHandlerFn,addKeyPressHandler:defaultEventHandlerFn,removeKeyPressHandler:defaultEventHandlerFn,addDocClickHandler:defaultEventHandlerFn,removeDocClickHandler:defaultEventHandlerFn,host:void 0,zIndex:void 0}),Provider=LayersContext.Provider,Consumer=LayersContext.Consumer,LayersManager=(function(n){_inherits$b(t,n);var i=_createSuper$b(t);function t(e){var o;return _classCallCheck$b(this,t),o=i.call(this,e),_defineProperty$k(_assertThisInitialized$b(o),"host",reactExports.createRef()),_defineProperty$k(_assertThisInitialized$b(o),"containerRef",reactExports.createRef()),_defineProperty$k(_assertThisInitialized$b(o),"onDocumentClick",function(d){var p=o.state.docClickHandlers[o.state.docClickHandlers.length-1];p&&p(d)}),_defineProperty$k(_assertThisInitialized$b(o),"onKeyDown",function(d){var p=o.state.keyDownHandlers[o.state.keyDownHandlers.length-1];p&&p(d)}),_defineProperty$k(_assertThisInitialized$b(o),"onKeyUp",function(d){if(d.key==="Escape"){var p=o.state.escapeKeyHandlers[o.state.escapeKeyHandlers.length-1];p&&p()}var h=o.state.keyUpHandlers[o.state.keyUpHandlers.length-1];h&&h(d)}),_defineProperty$k(_assertThisInitialized$b(o),"onKeyPress",function(d){var p=o.state.keyPressHandlers[o.state.keyPressHandlers.length-1];p&&p(d)}),_defineProperty$k(_assertThisInitialized$b(o),"onAddEscapeHandler",function(d){o.setState(function(p){return{escapeKeyHandlers:[].concat(_toConsumableArray$2(p.escapeKeyHandlers),[d])}})}),_defineProperty$k(_assertThisInitialized$b(o),"onRemoveEscapeHandler",function(d){o.setState(function(p){return{escapeKeyHandlers:p.escapeKeyHandlers.filter(function(h){return h!==d})}})}),_defineProperty$k(_assertThisInitialized$b(o),"onAddKeyDownHandler",function(d){o.setState(function(p){return{keyDownHandlers:[].concat(_toConsumableArray$2(p.keyDownHandlers),[d])}})}),_defineProperty$k(_assertThisInitialized$b(o),"onRemoveKeyDownHandler",function(d){o.setState(function(p){return{keyDownHandlers:p.keyDownHandlers.filter(function(h){return h!==d})}})}),_defineProperty$k(_assertThisInitialized$b(o),"onAddKeyUpHandler",function(d){o.setState(function(p){return{keyUpHandlers:[].concat(_toConsumableArray$2(p.keyUpHandlers),[d])}})}),_defineProperty$k(_assertThisInitialized$b(o),"onRemoveKeyUpHandler",function(d){o.setState(function(p){return{keyUpHandlers:p.keyUpHandlers.filter(function(h){return h!==d})}})}),_defineProperty$k(_assertThisInitialized$b(o),"onAddKeyPressHandler",function(d){o.setState(function(p){return{keyPressHandlers:[].concat(_toConsumableArray$2(p.keyPressHandlers),[d])}})}),_defineProperty$k(_assertThisInitialized$b(o),"onRemoveKeyPressHandler",function(d){o.setState(function(p){return{keyPressHandlers:p.keyPressHandlers.filter(function(h){return h!==d})}})}),_defineProperty$k(_assertThisInitialized$b(o),"onAddDocClickHandler",function(d){o.setState(function(p){return{docClickHandlers:[].concat(_toConsumableArray$2(p.docClickHandlers),[d])}})}),_defineProperty$k(_assertThisInitialized$b(o),"onRemoveDocClickHandler",function(d){o.setState(function(p){return{docClickHandlers:p.docClickHandlers.filter(function(h){return h!==d})}})}),o.state={escapeKeyHandlers:[],keyDownHandlers:[],keyUpHandlers:[],keyPressHandlers:[],docClickHandlers:[]},o}
50return _createClass$b(t,[{key:"componentDidMount",value:function(){this.forceUpdate(),initFocusVisible(this.containerRef.current),typeof document<"u"&&(document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("keypress",this.onKeyPress),document.addEventListener("mousedown",this.onDocumentClick))}},{key:"componentWillUnmount",value:function(){typeof document<"u"&&(document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("keypress",this.onKeyPress),document.removeEventListener("mousedown",this.onDocumentClick))}},{key:"render",value:function(){var o=this,d=this.props.overrides,p=d===void 0?{}:d,h=getOverrides(p.AppContainer,StyledAppContainer),y=_slicedToArray$8(h,2),E=y[0],$=y[1],M=getOverrides(p.LayersContainer,StyledLayersContainer),X=_slicedToArray$8(M,2),Z=X[0],ye=X[1];return reactExports.createElement(Consumer,null,function(be){var we=be.host;return reactExports.createElement(Provider,{value:{host:we||o.host.current,zIndex:o.props.zIndex,addEscapeHandler:o.onAddEscapeHandler,removeEscapeHandler:o.onRemoveEscapeHandler,addKeyDownHandler:o.onAddKeyDownHandler,removeKeyDownHandler:o.onRemoveKeyDownHandler,addKeyUpHandler:o.onAddKeyUpHandler,removeKeyUpHandler:o.onRemoveKeyUpHandler,addKeyPressHandler:o.onAddKeyPressHandler,removeKeyPressHandler:o.onRemoveKeyPressHandler,addDocClickHandler:o.onAddDocClickHandler,removeDocClickHandler:o.onRemoveDocClickHandler}},reactExports.createElement(E,_extends$g({},$,{ref:o.containerRef}),o.props.children),reactExports.createElement(Z,_extends$g({},ye,{ref:o.host})))})}}]),t})(reactExports.Component),reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports);function _typeof$a(n){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$a(n)}function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$f.apply(this,arguments)}function _classCallCheck$a(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$a(n,i,t){return i&&_defineProperties$a(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$a(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$a(n,i)}function _setPrototypeOf$a(n,i){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$a(n,i)}function _createSuper$a(n){var i=_isNativeReflectConstruct$a();return function(){var e=_getPrototypeOf$a(n),o;if(i){var d=_getPrototypeOf$a(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$a(this,o)}}function _possibleConstructorReturn$a(n,i){if(i&&(_typeof$a(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$a(n)}function _assertThisInitialized$a(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
50function _getPrototypeOf$a(n){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$a(n)}function _defineProperty$j(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Container=styled$1("div",function(n){var i=n.$zIndex;return{position:"absolute",top:0,left:0,right:0,zIndex:i||null}});Container.displayName="Container";var LayerComponent=(function(n){_inherits$a(t,n);var i=_createSuper$a(t);function t(){var e;_classCallCheck$a(this,t);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return e=i.call.apply(i,[this].concat(d)),_defineProperty$j(_assertThisInitialized$a(e),"state",{container:null}),_defineProperty$j(_assertThisInitialized$a(e),"onEscape",function(){e.props.onEscape&&e.props.onEscape()}),_defineProperty$j(_assertThisInitialized$a(e),"onKeyDown",function(h){e.props.onKeyDown&&e.props.onKeyDown(h)}),_defineProperty$j(_assertThisInitialized$a(e),"onKeyUp",function(h){e.props.onKeyUp&&e.props.onKeyUp(h)}),_defineProperty$j(_assertThisInitialized$a(e),"onKeyPress",function(h){e.props.onKeyPress&&e.props.onKeyPress(h)}),_defineProperty$j(_assertThisInitialized$a(e),"onDocumentClick",function(h){e.props.onDocumentClick&&e.props.onDocumentClick(h)}),e}
50return _createClass$a(t,[{key:"componentDidMount",value:function(){this.context.addEscapeHandler(this.onEscape),this.context.addKeyDownHandler(this.onKeyDown),this.context.addKeyUpHandler(this.onKeyUp),this.context.addKeyPressHandler(this.onKeyPress),this.props.isHoverLayer||this.context.addDocClickHandler(this.onDocumentClick);var o=this.props,d=o.onMount,p=o.mountNode,h=o.host;if(p){d&&d();return}var y=h!==void 0,E=y?h:document.body;E&&this.addContainer(E)}},{key:"componentDidUpdate",value:function(o){var d=this.props,p=d.host,h=d.mountNode;h||(p&&p!==o.host&&o.host===null&&this.addContainer(p),o.isHoverLayer!=this.props.isHoverLayer&&(this.props.isHoverLayer?this.context.removeDocClickHandler(this.onDocumentClick):this.context.addDocClickHandler(this.onDocumentClick)))}},{key:"componentWillUnmount",value:function(){this.context.removeEscapeHandler(this.onEscape),this.context.removeKeyDownHandler(this.onKeyDown),this.context.removeKeyUpHandler(this.onKeyUp),this.context.removeKeyPressHandler(this.onKeyPress),this.context.removeDocClickHandler(this.onDocumentClick),this.props.onUnmount&&this.props.onUnmount();var o=this.props.host,d=this.state.container;o&&d&&o.contains(d)&&o.removeChild(d)}},{key:"addContainer",value:function(o){var d=this.props,p=d.index,h=d.mountNode,y=d.onMount;if(!h&&o){var E=o.ownerDocument.createElement("div"),$=typeof p=="number"?o.children[p]:null;$?o.insertBefore(E,$):o.appendChild(E),this.setState({container:E},function(){y&&y()})}}},{key:"render",value:function(){var o=this.state.container,d=this.props,p=d.children,h=d.mountNode,y=d.zIndex,E=y?reactExports.createElement(Container,{$zIndex:y},p):p;return typeof document<"u"?h?ReactDOM.createPortal(E,h):o?ReactDOM.createPortal(E,o):null:null}}]),t})(reactExports.Component);_defineProperty$j(LayerComponent,"contextType",LayersContext);function Layer(n){return reactExports.createElement(Consumer,null,function(i){var t=i.host,e=i.zIndex;return reactExports.createElement(LayerComponent,_extends$f({},n,{host:t,zIndex:e}))})}var isBrowser$1=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",timeoutDuration=(function(){for(var n=["Edge","Trident","Firefox"],i=0;i<n.length;i+=1)if(isBrowser$1&&navigator.userAgent.indexOf(n[i])>=0)return 1;return 0})();function microtaskDebounce(n){var i=!1;return function(){i||(i=!0,window.Promise.resolve().then(function(){i=!1,n()}))}}function taskDebounce(n){var i=!1;return function(){i||(i=!0,setTimeout(function(){i=!1,n()},timeoutDuration))}}var supportsMicroTasks=isBrowser$1&&window.Promise,debounce=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction(n){var i={};return n&&i.toString.call(n)==="[object Function]"}
vendor: 24,606 bytes, line 50
50function getStyleComputedProperty(n,i){if(n.nodeType!==1)return[];var t=n.ownerDocument.defaultView,e=t.getComputedStyle(n,null);return i?e[i]:e}function getParentNode$1(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function getScrollParent(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var i=getStyleComputedProperty(n),t=i.overflow,e=i.overflowX,o=i.overflowY;return/(auto|scroll|overlay)/.test(t+o+e)?n:getScrollParent(getParentNode$1(n))}function getReferenceNode(n){return n&&n.referenceNode?n.referenceNode:n}var isIE11=isBrowser$1&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser$1&&/MSIE 10/.test(navigator.userAgent);function isIE(n){return n===11?isIE11:n===10?isIE10:isIE11||isIE10}function getOffsetParent(n){if(!n)return document.documentElement;for(var i=isIE(10)?document.body:null,t=n.offsetParent||null;t===i&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var e=t&&t.nodeName;return!e||e==="BODY"||e==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&getStyleComputedProperty(t,"position")==="static"?getOffsetParent(t):t}function isOffsetContainer(n){var i=n.nodeName;return i==="BODY"?!1:i==="HTML"||getOffsetParent(n.firstElementChild)===n}function getRoot(n){return n.parentNode!==null?getRoot(n.parentNode):n}function findCommonOffsetParent(n,i){if(!n||!n.nodeType||!i||!i.nodeType)return document.documentElement;var t=n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING,e=t?n:i,o=t?i:n,d=document.createRange();d.setStart(e,0),d.setEnd(o,0);var p=d.commonAncestorContainer;if(n!==p&&i!==p||e.contains(o))return isOffsetContainer(p)?p:getOffsetParent(p);var h=getRoot(n);return h.host?findCommonOffsetParent(h.host,i):findCommonOffsetParent(n,getRoot(i).host)}function getScroll(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",t=i==="top"?"scrollTop":"scrollLeft",e=n.nodeName;if(e==="BODY"||e==="HTML"){var o=n.ownerDocument.documentElement,d=n.ownerDocument.scrollingElement||o;return d[t]}return n[t]}function includeScroll(n,i){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,e=getScroll(i,"top"),o=getScroll(i,"left"),d=t?-1:1;return n.top+=e*d,n.bottom+=e*d,n.left+=o*d,n.right+=o*d,n}function getBordersSize$1(n,i){var t=i==="x"?"Left":"Top",e=t==="Left"?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+e+"Width"])}function getSize(n,i,t,e){return Math.max(i["offset"+n],i["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],isIE(10)?parseInt(t["offset"+n])+parseInt(e["margin"+(n==="Height"?"Top":"Left")])+parseInt(e["margin"+(n==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(n){var i=n.body,t=n.documentElement,e=isIE(10)&&getComputedStyle(t);return{height:getSize("Height",i,t,e),width:getSize("Width",i,t,e)}}var classCallCheck=function(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function n(i,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,t,e){return t&&n(i.prototype,t),e&&n(i,e),i}})(),defineProperty=function(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n},_extends$e=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n};function getClientRect(n){return _extends$e({},n,{right:n.left+n.width,bottom:n.top+n.height})}function getBoundingClientRect(n){var i={};try{if(isIE(10)){i=n.getBoundingClientRect();var t=getScroll(n,"top"),e=getScroll(n,"left");i.top+=t,i.left+=e,i.bottom+=t,i.right+=e}else i=n.getBoundingClientRect()}catch{}var o={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},d=n.nodeName==="HTML"?getWindowSizes(n.ownerDocument):{},p=d.width||n.clientWidth||o.width,h=d.height||n.clientHeight||o.height,y=n.offsetWidth-p,E=n.offsetHeight-h;if(y||E){var $=getStyleComputedProperty(n);y-=getBordersSize$1($,"x"),E-=getBordersSize$1($,"y"),o.width-=y,o.height-=E}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(n,i){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,e=isIE(10),o=i.nodeName==="HTML",d=getBoundingClientRect(n),p=getBoundingClientRect(i),h=getScrollParent(n),y=getStyleComputedProperty(i),E=parseFloat(y.borderTopWidth),$=parseFloat(y.borderLeftWidth);t&&o&&(p.top=Math.max(p.top,0),p.left=Math.max(p.left,0));var M=getClientRect({top:d.top-p.top-E,left:d.left-p.left-$,width:d.width,height:d.height});if(M.marginTop=0,M.marginLeft=0,!e&&o){var X=parseFloat(y.marginTop),Z=parseFloat(y.marginLeft);M.top-=E-X,M.bottom-=E-X,M.left-=$-Z,M.right-=$-Z,M.marginTop=X,M.marginLeft=Z}return(e&&!t?i.contains(h):i===h&&h.nodeName!=="BODY")&&(M=includeScroll(M,i)),M}function getViewportOffsetRectRelativeToArtbitraryNode(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=n.ownerDocument.documentElement,e=getOffsetRectRelativeToArbitraryNode(n,t),o=Math.max(t.clientWidth,window.innerWidth||0),d=Math.max(t.clientHeight,window.innerHeight||0),p=i?0:getScroll(t),h=i?0:getScroll(t,"left"),y={top:p-e.top+e.marginTop,left:h-e.left+e.marginLeft,width:o,height:d};return getClientRect(y)}function isFixed$1(n){var i=n.nodeName;if(i==="BODY"||i==="HTML")return!1;if(getStyleComputedProperty(n,"position")==="fixed")return!0;var t=getParentNode$1(n);return t?isFixed$1(t):!1}function getFixedPositionOffsetParent(n){if(!n||!n.parentElement||isIE())return document.documentElement;for(var i=n.parentElement;i&&getStyleComputedProperty(i,"transform")==="none";)i=i.parentElement;return i||document.documentElement}function getBoundaries(n,i,t,e){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,d={top:0,left:0},p=o?getFixedPositionOffsetParent(n):findCommonOffsetParent(n,getReferenceNode(i));if(e==="viewport")d=getViewportOffsetRectRelativeToArtbitraryNode(p,o);else{var h=void 0;e==="scrollParent"?(h=getScrollParent(getParentNode$1(i)),h.nodeName==="BODY"&&(h=n.ownerDocument.documentElement)):e==="window"?h=n.ownerDocument.documentElement:h=e;var y=getOffsetRectRelativeToArbitraryNode(h,p,o);if(h.nodeName==="HTML"&&!isFixed$1(p)){var E=getWindowSizes(n.ownerDocument),$=E.height,M=E.width;d.top+=y.top-y.marginTop,d.bottom=$+y.top,d.left+=y.left-y.marginLeft,d.right=M+y.left}else d=y}t=t||0;var X=typeof t=="number";return d.left+=X?t:t.left||0,d.top+=X?t:t.top||0,d.right-=X?t:t.right||0,d.bottom-=X?t:t.bottom||0,d}function getArea(n){var i=n.width,t=n.height;return i*t}function computeAutoPlacement(n,i,t,e,o){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var p=getBoundaries(t,e,d,o),h={top:{width:p.width,height:i.top-p.top},right:{width:p.right-i.right,height:p.height},bottom:{width:p.width,height:p.bottom-i.bottom},left:{width:i.left-p.left,height:p.height}},y=Object.keys(h).map(function(X){return _extends$e({key:X},h[X],{area:getArea(h[X])})}).sort(function(X,Z){return Z.area-X.area}),E=y.filter(function(X){var Z=X.width,ye=X.height;return Z>=t.clientWidth&&ye>=t.clientHeight}),$=E.length>0?E[0].key:y[0].key,M=n.split("-")[1];return $+(M?"-"+M:"")}function getReferenceOffsets(n,i,t){var e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=e?getFixedPositionOffsetParent(i):findCommonOffsetParent(i,getReferenceNode(t));return getOffsetRectRelativeToArbitraryNode(t,o,e)}function getOuterSizes(n){var i=n.ownerDocument.defaultView,t=i.getComputedStyle(n),e=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0),d={width:n.offsetWidth+o,height:n.offsetHeight+e};return d}function getOppositePlacement(n){var i={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return i[t]})}function getPopperOffsets(n,i,t){t=t.split("-")[0];var e=getOuterSizes(n),o={width:e.width,height:e.height},d=["right","left"].indexOf(t)!==-1,p=d?"top":"left",h=d?"left":"top",y=d?"height":"width",E=d?"width":"height";return o[p]=i[p]+i[y]/2-e[y]/2,t===h?o[h]=i[h]-e[E]:o[h]=i[getOppositePlacement(h)],o}function find$1(n,i){return Array.prototype.find?n.find(i):n.filter(i)[0]}function findIndex(n,i,t){if(Array.prototype.findIndex)return n.findIndex(function(o){return o[i]===t});var e=find$1(n,function(o){return o[i]===t});return n.indexOf(e)}function runModifiers(n,i,t){var e=t===void 0?n:n.slice(0,findIndex(n,"name",t));return e.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var d=o.function||o.fn;o.enabled&&isFunction(d)&&(i.offsets.popper=getClientRect(i.offsets.popper),i.offsets.reference=getClientRect(i.offsets.reference),i=d(i,o))}),i}function update(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=computeAutoPlacement(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=getPopperOffsets(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=runModifiers(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function isModifierEnabled(n,i){return n.some(function(t){var e=t.name,o=t.enabled;return o&&e===i})}function getSupportedPropertyName(n){for(var i=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),e=0;e<i.length;e++){var o=i[e],d=o?""+o+t:n;if(typeof document.body.style[d]<"u")return d}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(n){var i=n.ownerDocument;return i?i.defaultView:window}function attachToScrollParents(n,i,t,e){var o=n.nodeName==="BODY",d=o?n.ownerDocument.defaultView:n;d.addEventListener(i,t,{passive:!0}),o||attachToScrollParents(getScrollParent(d.parentNode),i,t,e),e.push(d)}function setupEventListeners(n,i,t,e){t.updateBound=e,getWindow(n).addEventListener("resize",t.updateBound,{passive:!0});var o=getScrollParent(n);return attachToScrollParents(o,"scroll",t.updateBound,t.scrollParents),t.scrollElement=o,t.eventsEnabled=!0,t}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(n,i){return getWindow(n).removeEventListener("resize",i.updateBound),i.scrollParents.forEach(function(t){t.removeEventListener("scroll",i.updateBound)}),i.updateBound=null,i.scrollParents=[],i.scrollElement=null,i.eventsEnabled=!1,i}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function setStyles(n,i){Object.keys(i).forEach(function(t){var e="";["width","height","top","right","bottom","left"].indexOf(t)!==-1&&isNumeric(i[t])&&(e="px"),n.style[t]=i[t]+e})}function setAttributes(n,i){Object.keys(i).forEach(function(t){var e=i[t];e!==!1?n.setAttribute(t,i[t]):n.removeAttribute(t)})}function applyStyle(n){return setStyles(n.instance.popper,n.styles),setAttributes(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&setStyles(n.arrowElement,n.arrowStyles),n}function applyStyleOnLoad(n,i,t,e,o){var d=getReferenceOffsets(o,i,n,t.positionFixed),p=computeAutoPlacement(t.placement,d,i,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return i.setAttribute("x-placement",p),setStyles(i,{position:t.positionFixed?"fixed":"absolute"}),t}function getRoundedOffsets(n,i){var t=n.offsets,e=t.popper,o=t.reference,d=Math.round,p=Math.floor,h=function(xe){return xe},y=d(o.width),E=d(e.width),$=["left","right"].indexOf(n.placement)!==-1,M=n.placement.indexOf("-")!==-1,X=y%2===E%2,Z=y%2===1&&E%2===1,ye=i?$||M||X?d:p:h,be=i?d:h;return{left:ye(Z&&!M&&i?e.left-1:e.left),top:be(e.top),bottom:be(e.bottom),right:ye(e.right)}}var isFirefox=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(n,i){var t=i.x,e=i.y,o=n.offsets.popper,d=find$1(n.instance.modifiers,function(Ne){return Ne.name==="applyStyle"}).gpuAcceleration;d!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var p=d!==void 0?d:i.gpuAcceleration,h=getOffsetParent(n.instance.popper),y=getBoundingClientRect(h),E={position:o.position},$=getRoundedOffsets(n,window.devicePixelRatio<2||!isFirefox),M=t==="bottom"?"top":"bottom",X=e==="right"?"left":"right",Z=getSupportedPropertyName("transform"),ye=void 0,be=void 0;if(M==="bottom"?h.nodeName==="HTML"?be=-h.clientHeight+$.bottom:be=-y.height+$.bottom:be=$.top,X==="right"?h.nodeName==="HTML"?ye=-h.clientWidth+$.right:ye=-y.width+$.right:ye=$.left,p&&Z)E[Z]="translate3d("+ye+"px, "+be+"px, 0)",E[M]=0,E[X]=0,E.willChange="transform";else{var we=M==="bottom"?-1:1,xe=X==="right"?-1:1;E[M]=be*we,E[X]=ye*xe,E.willChange=M+", "+X}var $e={"x-placement":n.placement};return n.attributes=_extends$e({},$e,n.attributes),n.styles=_extends$e({},E,n.styles),n.arrowStyles=_extends$e({},n.offsets.arrow,n.arrowStyles),n}function isModifierRequired(n,i,t){var e=find$1(n,function(h){var y=h.name;return y===i}),o=!!e&&n.some(function(h){return h.name===t&&h.enabled&&h.order<e.order});if(!o){var d="`"+i+"`",p="`"+t+"`";console.warn(p+" modifier is required by "+d+" modifier in order to work, be sure to include it before "+d+"!")}return o}function arrow(n,i){var t;if(!isModifierRequired(n.instance.modifiers,"arrow","keepTogether"))return n;var e=i.element;if(typeof e=="string"){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var o=n.placement.split("-")[0],d=n.offsets,p=d.popper,h=d.reference,y=["left","right"].indexOf(o)!==-1,E=y?"height":"width",$=y?"Top":"Left",M=$.toLowerCase(),X=y?"left":"top",Z=y?"bottom":"right",ye=getOuterSizes(e)[E];h[Z]-ye<p[M]&&(n.offsets.popper[M]-=p[M]-(h[Z]-ye)),h[M]+ye>p[Z]&&(n.offsets.popper[M]+=h[M]+ye-p[Z]),n.offsets.popper=getClientRect(n.offsets.popper);var be=h[M]+h[E]/2-ye/2,we=getStyleComputedProperty(n.instance.popper),xe=parseFloat(we["margin"+$]),$e=parseFloat(we["border"+$+"Width"]),Ne=be-n.offsets.popper[M]-xe-$e;return Ne=Math.max(Math.min(p[E]-ye,Ne),0),n.arrowElement=e,n.offsets.arrow=(t={},defineProperty(t,M,Math.round(Ne)),defineProperty(t,X,""),t),n}function getOppositeVariation(n){return n==="end"?"start":n==="start"?"end":n}var placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3);function clockwise(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=validPlacements.indexOf(n),e=validPlacements.slice(t+1).concat(validPlacements.slice(0,t));return i?e.reverse():e}var BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function flip(n,i){if(isModifierEnabled(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=getBoundaries(n.instance.popper,n.instance.reference,i.padding,i.boundariesElement,n.positionFixed),e=n.placement.split("-")[0],o=getOppositePlacement(e),d=n.placement.split("-")[1]||"",p=[];switch(i.behavior){case BEHAVIORS.FLIP:p=[e,o];break;case BEHAVIORS.CLOCKWISE:p=clockwise(e);break;case BEHAVIORS.COUNTERCLOCKWISE:p=clockwise(e,!0);break;default:p=i.behavior}return p.forEach(function(h,y){if(e!==h||p.length===y+1)return n;e=n.placement.split("-")[0],o=getOppositePlacement(e);var E=n.offsets.popper,$=n.offsets.reference,M=Math.floor,X=e==="left"&&M(E.right)>M($.left)||e==="right"&&M(E.left)<M($.right)||e==="top"&&M(E.bottom)>M($.top)||e==="bottom"&&M(E.top)<M($.bottom),Z=M(E.left)<M(t.left),ye=M(E.right)>M(t.right),be=M(E.top)<M(t.top),we=M(E.bottom)>M(t.bottom),xe=e==="left"&&Z||e==="right"&&ye||e==="top"&&be||e==="bottom"&&we,$e=["top","bottom"].indexOf(e)!==-1,Ne=!!i.flipVariations&&($e&&d==="start"&&Z||$e&&d==="end"&&ye||!$e&&d==="start"&&be||!$e&&d==="end"&&we),Fe=!!i.flipVariationsByContent&&($e&&d==="start"&&ye||$e&&d==="end"&&Z||!$e&&d==="start"&&we||!$e&&d==="end"&&be),De=Ne||Fe;(X||xe||De)&&(n.flipped=!0,(X||xe)&&(e=p[y+1]),De&&(d=getOppositeVariation(d)),n.placement=e+(d?"-"+d:""),n.offsets.popper=_extends$e({},n.offsets.popper,getPopperOffsets(n.instance.popper,n.offsets.reference,n.placement)),n=runModifiers(n.instance.modifiers,n,"flip"))}),n}function keepTogether(n){var i=n.offsets,t=i.popper,e=i.reference,o=n.placement.split("-")[0],d=Math.floor,p=["top","bottom"].indexOf(o)!==-1,h=p?"right":"bottom",y=p?"left":"top",E=p?"width":"height";return t[h]<d(e[y])&&(n.offsets.popper[y]=d(e[y])-t[E]),t[y]>d(e[h])&&(n.offsets.popper[y]=d(e[h])),n}function toValue(n,i,t,e){var o=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),d=+o[1],p=o[2];if(!d)return n;if(p.indexOf("%")===0){var h=void 0;switch(p){case"%p":h=t;break;case"%":case"%r":default:h=e}var y=getClientRect(h);return y[i]/100*d}else if(p==="vh"||p==="vw"){var E=void 0;return p==="vh"?E=Math.max(document.documentElement.clientHeight,window.innerHeight||0):E=Math.max(document.documentElement.clientWidth,window.innerWidth||0),E/100*d}else return d}function parseOffset(n,i,t,e){var o=[0,0],d=["right","left"].indexOf(e)!==-1,p=n.split(/(\+|\-)/).map(function($){return $.trim()}),h=p.indexOf(find$1(p,function($){return $.search(/,|\s/)!==-1}));p[h]&&p[h].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var y=/\s*,\s*|\s+/,E=h!==-1?[p.slice(0,h).concat([p[h].split(y)[0]]),[p[h].split(y)[1]].concat(p.slice(h+1))]:[p];return E=E.map(function($,M){var X=(M===1?!d:d)?"height":"width",Z=!1;return $.reduce(function(ye,be){return ye[ye.length-1]===""&&["+","-"].indexOf(be)!==-1?(ye[ye.length-1]=be,Z=!0,ye):Z?(ye[ye.length-1]+=be,Z=!1,ye):ye.concat(be)},[]).map(function(ye){return toValue(ye,X,i,t)})}),E.forEach(function($,M){$.forEach(function(X,Z){isNumeric(X)&&(o[M]+=X*($[Z-1]==="-"?-1:1))})}),o}function offset(n,i){var t=i.offset,e=n.placement,o=n.offsets,d=o.popper,p=o.reference,h=e.split("-")[0],y=void 0;return isNumeric(+t)?y=[+t,0]:y=parseOffset(t,d,p,h),h==="left"?(d.top+=y[0],d.left-=y[1]):h==="right"?(d.top+=y[0],d.left+=y[1]):h==="top"?(d.left+=y[0],d.top-=y[1]):h==="bottom"&&(d.left+=y[0],d.top+=y[1]),n.popper=d,n}function preventOverflow(n,i){var t=i.boundariesElement||getOffsetParent(n.instance.popper);n.instance.reference===t&&(t=getOffsetParent(t));var e=getSupportedPropertyName("transform"),o=n.instance.popper.style,d=o.top,p=o.left,h=o[e];o.top="",o.left="",o[e]="";var y=getBoundaries(n.instance.popper,n.instance.reference,i.padding,t,n.positionFixed);o.top=d,o.left=p,o[e]=h,i.boundaries=y;var E=i.priority,$=n.offsets.popper,M={primary:function(Z){var ye=$[Z];return $[Z]<y[Z]&&!i.escapeWithReference&&(ye=Math.max($[Z],y[Z])),defineProperty({},Z,ye)},secondary:function(Z){var ye=Z==="right"?"left":"top",be=$[ye];return $[Z]>y[Z]&&!i.escapeWithReference&&(be=Math.min($[ye],y[Z]-(Z==="right"?$.width:$.height))),defineProperty({},ye,be)}};return E.forEach(function(X){var Z=["left","top"].indexOf(X)!==-1?"primary":"secondary";$=_extends$e({},$,M[Z](X))}),n.offsets.popper=$,n}function shift(n){var i=n.placement,t=i.split("-")[0],e=i.split("-")[1];if(e){var o=n.offsets,d=o.reference,p=o.popper,h=["bottom","top"].indexOf(t)!==-1,y=h?"left":"top",E=h?"width":"height",$={start:defineProperty({},y,d[y]),end:defineProperty({},y,d[y]+d[E]-p[E])};n.offsets.popper=_extends$e({},p,$[e])}return n}function hide(n){if(!isModifierRequired(n.instance.modifiers,"hide","preventOverflow"))return n;var i=n.offsets.reference,t=find$1(n.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(i.bottom<t.top||i.left>t.right||i.top>t.bottom||i.right<t.left){if(n.hide===!0)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}function inner(n){var i=n.placement,t=i.split("-")[0],e=n.offsets,o=e.popper,d=e.reference,p=["left","right"].indexOf(t)!==-1,h=["top","left"].indexOf(t)===-1;return o[p?"left":"top"]=d[t]-(h?o[p?"width":"height"]:0),n.placement=getOppositePlacement(i),n.offsets.popper=getClientRect(o),n}var modifiers={shift:{order:100,enabled:!0,fn:shift},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:preventOverflow,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:keepTogether},arrow:{order:500,enabled:!0,fn:arrow,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:flip,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:inner},hide:{order:800,enabled:!0,fn:hide},computeStyle:{order:850,enabled:!0,fn:computeStyle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:applyStyle,onLoad:applyStyleOnLoad,gpuAcceleration:void 0}},Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function n(){},onUpdate:function n(){},modifiers},Popper=(function(){function n(i,t){var e=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(e.update)},this.update=debounce(this.update.bind(this)),this.options=_extends$e({},n.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i&&i.jquery?i[0]:i,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(_extends$e({},n.Defaults.modifiers,o.modifiers)).forEach(function(p){e.options.modifiers[p]=_extends$e({},n.Defaults.modifiers[p]||{},o.modifiers?o.modifiers[p]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(p){return _extends$e({name:p},e.options.modifiers[p])}).sort(function(p,h){return p.order-h.order}),this.modifiers.forEach(function(p){p.enabled&&isFunction(p.onLoad)&&p.onLoad(e.reference,e.popper,e.options,p,e.state)}),this.update();var d=this.options.eventsEnabled;d&&this.enableEventListeners(),this.state.eventsEnabled=d}return createClass(n,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),n})();Popper.Utils=(typeof window<"u"?window:global).PopperUtils;Popper.placements=placements;Popper.Defaults=Defaults;function toPopperPlacement(n){return n.replace(/(Top|Left)$/,"-start").replace(/(Right|Bottom)$/,"-end")}function parsePopperOffset(n){return{top:Math.floor(n.top||0),left:Math.floor(n.left||0)}}var TETHER_PLACEMENT={auto:"auto"};function _typeof$9(n){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$9(n)}var _excluded$b=["modifiers"];function ownKeys$g(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$f(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
50i%2?ownKeys$g(Object(t),!0).forEach(function(e){_defineProperty$i(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$g(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _objectWithoutProperties$c(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$c(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$c(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function _classCallCheck$9(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$9(n,i,t){return i&&_defineProperties$9(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$9(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$9(n,i)}function _setPrototypeOf$9(n,i){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$9(n,i)}function _createSuper$9(n){var i=_isNativeReflectConstruct$9();return function(){var e=_getPrototypeOf$9(n),o;if(i){var d=_getPrototypeOf$9(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$9(this,o)}}function _possibleConstructorReturn$9(n,i){if(i&&(_typeof$9(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$9(n)}function _assertThisInitialized$9(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$9(n){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$9(n)}function _defineProperty$i(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Tether=(function(n){_inherits$9(t,n);var i=_createSuper$9(t);function t(){var e;_classCallCheck$9(this,t);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return e=i.call.apply(i,[this].concat(d)),_defineProperty$i(_assertThisInitialized$9(e),"popper",void 0),_defineProperty$i(_assertThisInitialized$9(e),"popperHeight",0),_defineProperty$i(_assertThisInitialized$9(e),"popperWidth",0),_defineProperty$i(_assertThisInitialized$9(e),"anchorHeight",0),_defineProperty$i(_assertThisInitialized$9(e),"anchorWidth",0),_defineProperty$i(_assertThisInitialized$9(e),"state",{isMounted:!1}),_defineProperty$i(_assertThisInitialized$9(e),"onPopperUpdate",function(h){var y={popper:parsePopperOffset(h.offsets.popper),arrow:h.offsets.arrow?parsePopperOffset(h.offsets.arrow):{top:0,left:0}};e.props.onPopperUpdate(y,h)}),e}return _createClass$9(t,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(o,d){if(this.props.anchorRef){var p=this.props.anchorRef.getBoundingClientRect(),h=p.height,y=p.width;(this.anchorHeight!==h||this.anchorWidth!==y)&&(this.anchorHeight=h,this.anchorWidth=y,this.popper&&this.popper.scheduleUpdate())}if(this.props.popperRef){var E=this.props.popperRef.getBoundingClientRect(),$=E.height,M=E.width;(this.popperHeight!==$||this.popperWidth!==M)&&(this.popperHeight=$,this.popperWidth=M,this.popper&&this.popper.scheduleUpdate()),this.state.isMounted!==d.isMounted&&this.props.anchorRef&&this.initializePopper()}}},{key:"componentWillUnmount",value:function(){this.destroyPopover()}},{key:"initializePopper",value:function(){var o=this.props,d=o.placement,p=o.popperOptions,h=p.modifiers,y=_objectWithoutProperties$c(p,_excluded$b);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Popper(this.props.anchorRef,this.props.popperRef,_objectSpread$f({placement:toPopperPlacement(d),modifiers:_objectSpread$f({arrow:{element:this.props.arrowRef,enabled:!!this.props.arrowRef},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.onPopperUpdate,order:900},preventOverflow:{enabled:!0}},h)},y)))}},{key:"destroyPopover",value:function(){this.popper&&(this.popper.destroy(),delete this.popper)}},{key:"render",value:function(){return this.props.children||null}}]),t})(reactExports.Component);_defineProperty$i(Tether,"defaultProps",{anchorRef:null,onPopperUpdate:function n(){return null},placement:TETHER_PLACEMENT.auto,popperRef:null,popperOptions:{}});var BaseProvider=function n(i){var t=i.children,e=i.overrides,o=i.theme,d=i.zIndex;return reactExports.createElement(LayersManager,{zIndex:d,overrides:e},reactExports.createElement(UIDReset,{prefix:"bui"},reactExports.createElement(ThemeProvider$1,{theme:o},t)))};const createBaseUiThemePrimitives=(n,i)=>{const{colors:t,genericFonts:e}=i;return{...n,primaryFontFamily:e.bodyFont,primary100:t.primary,primary200:t.primary,primary300:t.primary,primary400:t.primary,primary500:t.primary,primary600:t.primary,primary700:t.primary,mono100:t.bgColor,mono200:t.secondaryBg,mono300:t.gray30,mono400:t.gray30,mono500:t.gray60,mono600:t.fadedText40,mono700:t.gray60,mono800:t.bodyText,mono900:t.bodyText,mono1000:t.black}},createBaseUiThemeOverrides=n=>{const{inSidebar:i,colors:t,genericFonts:e,fontSizes:o,lineHeights:d,radii:p}=n,h={fontFamily:e.bodyFont,fontSize:o.md,fontSizeSm:o.sm,fontWeight:"normal",lineHeight:d.base,lineHeightTight:d.tight},y=t.secondaryBg,E=i?t.secondaryBg:t.bgColor,$=i?t.bgColor:t.secondaryBg;
50return{borders:{radius100:p.default,radius200:p.default,radius300:p.default,radius400:p.default,radius500:p.default,useRoundedCorners:!0,buttonBorderRadiusMini:p.sm,buttonBorderRadius:p.default,checkboxBorderRadius:`min(${p.sm}, ${p.maxCheckbox})`,inputBorderRadiusMini:p.sm,inputBorderRadius:p.default,popoverBorderRadius:p.default,surfaceBorderRadius:p.default,tagBorderRadius:p.sm},typography:{font100:{},font150:{...h},font200:{},font250:{},font300:{...h},font350:{...h},font400:{...h},font450:{...h},font460:{...h},font470:{...h},font500:{...h},font600:{},LabelXSmall:{...h},LabelSmall:{...h},LabelMedium:{...h},LabelLarge:{...h},ParagraphSmall:{...h}},colors:{white:t.white,black:t.black,primary:t.primary,primaryA:t.primary,backgroundPrimary:t.bgColor,backgroundSecondary:y,backgroundTertiary:t.bgColor,borderOpaque:t.darkenedBgMix25,accent:transparentize(t.primary,.5),tagPrimarySolidBackground:t.primary,tagPrimaryFontDisabled:t.fadedText40,tagPrimaryOutlinedDisabled:t.transparent,borderSelected:t.primary,contentPrimary:t.bodyText,inputPlaceholder:t.fadedText60,tickFillDisabled:t.fadedText40,tickMarkFill:t.gray20,tickFillSelected:t.primary,datepickerBackground:E,calendarBackgroun
50d:E,calendarForeground:t.bodyText,calendarDayForegroundPseudoSelected:t.bodyText,calendarHeaderBackground:$,calendarHeaderBackgroundActive:$,calendarHeaderForeground:t.bodyText,calendarHeaderForegroundDisabled:t.gray40,calendarDayBackgroundSelected:t.primary,calendarDayBackgroundSelectedHighlighted:t.primary,calendarDayForegroundSelected:t.white,calendarDayForegroundSelectedHighlighted:t.white,calendarDayForegroundPseudoSelectedHighlighted:t.bodyText,menuFontHighlighted:t.bodyText,menuFontSelected:t.bodyText,modalCloseColor:t.bodyText,notificationInfoBackground:t.blueBackgroundColor,notificationInfoText:t.blueTextColor,notificationPositiveBackground:t.greenBackgroundColor,notificationPositiveText:t.greenTextColor,notificationWarningBackground:t.yellowBackgroundColor,notificationWarningText:t.yellowTextColor,notificationNegativeBackground:t.redBackgroundColor,notificationNegativeText:t.redTextColor,progressbarTrackFill:y,tickFill:t.lightenedBg05,tickMarkFillDisabled:t.lightenedBg05,menuFill:E,buttonDisabledFill:t.lightenedBg05,tickFillHover:y,inputFillDisabled:y,inputFillActive:y,toggleTrackFillDisabled:y,tickFillActive:y,sliderTrackFillDisabled:y,inputBorder:t.widgetBorderColor||y,inputFill:y,inputEnhanceFill:y,inputEnhancerFillDisabled:y,buttonDisabledSpinnerBackground:t.gray40,toggleTrackFill:t.gray40,sliderTrackFill:t.gray40,sliderHandleInnerFill:t.gray40,sliderHandleInnerFillDisabled:t.gray40}}},createBaseUiTheme=(n,i=primitives)=>createLightTheme(createBaseUiThemePrimitives(i,n),createBaseUiThemeOverrides(n)),NAMED_COLOR_CONFIG={red:{colorKey:"redColor",bgColorKey:"redBackgroundColor"},orange:{colorKey:"orangeColor",bgColorKey:"orangeBackgroundColor"},yellow:{colorKey:"yellowColor",bgColorKey:"yellowBackgroundColor"},green:{colorKey:"greenColor",bgColorKey:"greenBackgroundColor"},blue:{colorKey:"blueColor",bgColorKey:"blueBackgroundColor"},violet:{colorKey:"violetColor",bgColorKey:"violetBackgroundColor"},gray:{colorKey:"grayColor",bgColorKey:"grayBackgroundColor"},grey:{colorKey:"grayColor",bgColorKey:"grayBackgroundColor"},primary:{colorKey:"primary",bgColorKey:null}},BACKGROUND_ONLY_COLORS={purple:{bgColorKey:"purplebg"}},NAMED_COLORS=new Set(Object.keys(NAMED_COLOR_CONFIG));function isNamedColor(n){return typeof n=="string"&&NAMED_COLORS.has(n.toLowerCase())}const computeDerivedColors=n=>{const{bodyText:i,secondaryBg:t,bgColor:e}=n,o=getLuminance(e)>.5,d=transparentize(i,.9),p=transparentize(i,.8),h=transparentize(i,.7),y=transparentize(i,.6),E=transparentize(i,.4),$=mix(e,t,.5),M=o?darken($,.3):lighten($,.6),X=transparentize(M,.75),Z=transparentize(M,.85),ye=lighten(e,.025);
50return{fadedText05:d,fadedText10:p,fadedText20:h,fadedText40:y,fadedText60:E,bgMix:$,darkenedBgMix100:M,darkenedBgMix25:X,darkenedBgMix15:Z,lightenedBg05:ye}};function _isLightBackground(n){return getLuminance(n)>.5}function hasLightBackgroundColor(n){return _isLightBackground(n.colors.bgColor)}const createEmotionColors=n=>{const i=computeDerivedColors(n),t=defaultCategoricalColorsArray(n),e=defaultSequentialColorsArray(n),o=defaultDivergingColorsArray(n);return{...n,...i,link:n.blueTextColor,codeTextColor:n.greenTextColor,codeBackgroundColor:i.bgMix,borderColor:i.fadedText10,borderColorLight:i.fadedText05,dataframeBorderColor:i.fadedText05,dataframeHeaderBackgroundColor:i.bgMix,headingColor:n.bodyText,chartCategoricalColors:t,chartSequentialColors:e,chartDivergingColors:o}};function getDividerColors(n){const{redColor:i,orangeColor:t,yellowColor:e,blueColor:o,greenColor:d,violetColor:p,grayColor:h}=n.colors;return{red:i,orange:t,yellow:e,blue:o,green:d,violet:p,gray:h,grey:h,rainbow:`linear-gradient(to right, ${i}, ${t}, ${e}, ${d}, ${o}, ${p})`}}
50function getThemeBackgroundColors(n){const i=hasLightBackgroundColor(n),t=n.colors;return{redbg:t.redBackgroundColor,orangebg:t.orangeBackgroundColor,yellowbg:t.yellowBackgroundColor,bluebg:t.blueBackgroundColor,greenbg:t.greenBackgroundColor,violetbg:t.violetBackgroundColor,purplebg:transparentize(t[i?"purple90":"purple80"],i?.9:.7),graybg:t.grayBackgroundColor,primarybg:transparentize(t.primary,i?.9:.7)}}function getMarkdownTextColors(n){const i=hasLightBackgroundColor(n),t=n.colors,e=t.primary,o=t.redTextColor,d=t.orangeTextColor,p=t.yellowTextColor,h=t.blueTextColor,y=t.greenTextColor,E=t.violetTextColor,$=i?t.purple100:t.purple80,M=t.grayTextColor;return{red:o,orange:d,yellow:p,green:y,blue:h,violet:E,purple:$,gray:M,primary:e}}function getGray70(n){return hasLightBackgroundColor(n)?n.colors.gray70:n.colors.gray30}function getGray30(n){return hasLightBackgroundColor(n)?n.colors.gray30:n.colors.gray85}function getGray90(n){return hasLightBackgroundColor(n)?n.colors.gray90:n.colors.gray10}function getBlue80(n){return hasLightBackgroun
50dColor(n)?n.colors.blue80:n.colors.blue40}function getBlueArrayAsc(n){return[n.blue10,n.blue20,n.blue30,n.blue40,n.blue50,n.blue60,n.blue70,n.blue80,n.blue90,n.blue100]}function getBlueArrayDesc(n){return[n.blue100,n.blue90,n.blue80,n.blue70,n.blue60,n.blue50,n.blue40,n.blue30,n.blue20,n.blue10]}function defaultDivergingColorsArray(n){return[n.red100,n.red90,n.red70,n.red50,n.red30,n.blue30,n.blue50,n.blue70,n.blue90,n.blue100]}function defaultSequentialColorsArray(n){return _isLightBackground(n.bgColor)?getBlueArrayAsc(n):getBlueArrayDesc(n)}function defaultCategoricalColorsArray(n){return _isLightBackground(n.bgColor)?[n.blue80,n.blue40,n.red80,n.red40,n.blueGreen80,n.green40,n.orange80,n.orange50,n.purple80,n.gray40]:[n.blue40,n.blue80,n.red40,n.red80,n.green40,n.blueGreen80,n.orange50,n.orange80,n.purple80,n.gray40]}function getDecreasingRed(n){return hasLightBackgroundColor(n)?n.colors.red80:n.colors.red40}function getIncreasingGreen(n){return hasLightBackgroundColor(n)?n.colors.blueGreen80:n.colors.green40}const namedColorCache=new WeakMap,namedBgColorCache=new WeakMap;function getNamedColorMap(n){let i=namedColorCache.get(n);if(!i){i=new Map;for(const[t,e]of Object.entries(NAMED_COLOR_CONFIG)){const o=n.colors[e.colorKey];typeof o=="string"&&i.set(t,o)}namedColorCache.set(n,i)}return i}function getNamedBgColorMap(n){let i=namedBgColorCache.get(n);
50if(!i){const t=getThemeBackgroundColors(n);i=new Map;for(const[e,o]of Object.entries(NAMED_COLOR_CONFIG))if(o.bgColorKey){const d=n.colors[o.bgColorKey];typeof d=="string"&&i.set(e,d)}i.set("primary",t.primarybg);for(const[e,o]of Object.entries(BACKGROUND_ONLY_COLORS)){const d=t[o.bgColorKey];typeof d=="string"&&i.set(e,d)}namedBgColorCache.set(n,i)}return i}function resolveNamedColor(n,i){return getNamedColorMap(i).get(n.toLowerCase())??n}function resolveNamedBackgroundColor(n,i){return getNamedBgColorMap(i).get(n.toLowerCase())??n}const elevationShadows$1={tooltip:"0px 1px 4px rgba(0, 0, 0, 0.16)",popover:"0px 4px 16px rgba(0, 0, 0, 0.16)",toolbar:"1px 2px 8px rgba(0, 0, 0, 0.08)",sidebar:"-2rem 0 2rem 2rem rgba(0, 0, 0, 0.16)",none:"none"},elevationShadows={tooltip:"0px 1px 4px rgba(0, 0, 0, 0.4)",popover:"0px 4px 16px rgba(0, 0, 0, 0.7)",toolbar:"1px 2px 8px rgba(0, 0, 0, 0.2)",sidebar:"-2rem 0 2rem 2rem rgba(0, 0, 0, 0.4)",none:"none"},spacing={px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem",fiveXL:"6rem",sixXL:"8rem"},minElementHeight="2.5rem",borderWidth="1px",sizes={full:"100%",headerHeight:"3.75rem",fullScreenHeaderHeight:"2.875rem",sidebarTopSpace:"6rem",toastWidth:"21rem",contentMaxWidth:"736px",maxChartTooltipWidth:"30rem",checkbox:"1rem",borderWidth,smallElementHeight:"1.5rem",minElementHeight,elementHighlightHeight:`calc(${minElementHeight} - 2 * ${spacing.xs})`,tagMarginInsideBorder:`calc(${spacing.xs} - ${borderWidth})`,largestElementHeight:"4.25rem",smallLogoHeight:"1.25rem",defaultLogoHeight:"1.5rem",largeLogoHeight:"2rem",sliderThumb:"0.75rem",wideSidePadding:"5rem",headerDecorationHeight:"0.125rem",appMainMenu:"12rem",appRunningMen:"1.6rem",appStatusMaxWidth:"20rem",tableColumnMaxWidth:"25rem",spinnerSize:"1.375rem",spinnerThickness:"0.125rem",tabHeight:"2.5rem",minPopupWidth:"20rem",maxTooltipHeight:"18.75rem",chatAvatarSize:"2rem",clearIconSize:"1.5em",numberInputControlsWidth:"2rem",emptyDropdownHeight:"5.625rem",dropdownItemHeight:"2.5rem",maxDropdownHeight:"18.75rem",appDefaultBottomPadding:"3.5rem",defaultMapHeight:"31.25rem",defaultChartHeight:"21.875rem",defaultChartWidth:"25rem",minMenuWidth:"8rem",minChatInputFileListHeight:"3rem",chatInputFileIconSize:"2.25rem",headerItemHeight:"1.75rem",headerRightContentMaxWidth:"12.5rem",chatInputTextareaMinHeight:"1.5rem",chatInputPrimaryButtonSize:"2rem",chatInputButtonVerticalOffset:"0.1875rem",dialogLargeWidth:"80rem",defaultStrokeWidth:2.25,metricStrokeWidth:2,focusRingWidth:"0.2rem"},createShadows=n=>{const i=getLuminance(n.bgColor)>.5,t=i?elevationShadows$1:elevationShadows,e=sizes.focusRingWidth,o=i?n.gray90:n.gray10;return{...t,focusRing:`0 0 0 ${e} ${transparentize(n.primary,.5)}`,focusRingSubtle:`0 0 0 ${e} ${transparentize(n.darkenedBgMix25,.5)}`,focusRingOutline:`0 0 0 1px ${n.primary}`,focusRingMuted:`0 0 0 ${e} ${transparentize(o,.8)}`}},breakpoints={hideWidgetDetails:"11.25rem",hideNumberInputControls:"7.5rem",sm:"576px",columns:"640px",md:"768px"},colors$2={transparent:"transparent",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange95:"#e2660c",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow65:"#ffff12",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",yellow115:"#926c05",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue65:"#1c83ff",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#8
5003df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"},iconSizes={xs:"0.5rem",sm:"0.75rem",md:"0.9rem",base:"1rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},radii={sm:"0.25rem",md2:"0.375rem",default:"0.5rem",xl:"0.75rem",xxl:"1rem",button:"0.5rem",chatInput:"1.25rem",full:"9999px",maxCheckbox:"0.35rem"},fonts={sansSerif:'"Source Sans", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif", serif',materialIcons:"Material Symbols Rounded"},genericFonts={bodyFont:fonts.sansSerif,codeFont:fonts.monospace,headingFont:fonts.sansSerif,iconFont:fonts.materialIcons},fontSizes={baseFontSize:16,twoSm:"0.75rem",sm:"0.875rem",md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",codeFontSize:"0.875rem",inlineCodeFontSize:"0.75em",h1FontSize:"2.75rem",h2FontSize:"2.25rem",h3FontSize:"1.75rem",h4FontSize:"1.5rem",h5FontSize:"1.25rem",h6FontSize:"1rem"},fontWeights={normal:400,semiBold:500,bold:600,extrabold:700,code:400,codeBold:600,codeExtraBold:700,h1FontWeight:700,h2FontWeight:600,h3FontWeight:600,h4FontWeight:600,h5FontWeight:600,h6FontWeight:600},lineHeights={none:1,headings:1.2,tight:1.25,inputWidget:1.4,small:1.5,base:1.6,menuItem:2},sidebar=100,menuButton=sidebar+10,balloons=1e6,header=balloons-10,bottom=sidebar-1,sidebarMobile=balloons-5,fullscreenWrapper=balloons+50,headerDecoration=balloons-1,popup=fullscreenWrapper+10,tablePortal=fullscreenWrapper+60,cacheSpinner=sidebar+1,toast=popup+1,zIndices={hide:-1,auto:"auto",base:0,priority:1,sidebar,menuButton,balloons,header,sidebarMobile,popup,fullscreenWrapper,tablePortal,bottom,cacheSpinner,toast,headerDecoration},requiredThemeColors={bgColor:colors$2.white,secondaryBg:colors$2.gray20,bodyText:colors$2.gray85,primary:colors$2.red70,secondary:colors$2.blue70,redColor:colors$2.red70,orangeColor:colors$2.orange70,yellowColor:colors$2.yellow80,blueColor:colors$2.blue70,greenColor:colors$2.green70,violetColor:colors$2.purple70,grayColor:colors$2.gray60,redBackgroundColor:transparentize(colors$2.red80,.9),orangeBackgroundColor:transparentize(colors$2.orange70,.9),yellowBackgroundColor:transparentize(colors$2.yellow65,.9),blueBackgroundColor:transparentize(colors$2.blue65,.9),greenBackgroundColor:transparentize(colors$2.green70,.9),violetBackgroundColor:transparentize(colors$2.purple60,.9),grayBackgroundColor:transparentize(colors$2.gray85,.9),redTextColor:colors$2.red90,orangeTextColor:colors$2.orange95,yellowTextColor:colors$2.yellow115,blueTextColor:colors$2.blue90,greenTextColor:colors$2.green90,violetTextColor:colors$2.purple90,grayTextColor:transparentize(colors$2.gray85,.4)},optionalThemeColors={},themeColors={...colors$2,...requiredThemeColors,...optionalThemeColors},colors$1=createEmotionColors(themeColors),shadows$1=createShadows(colors$1),emotionBaseTheme={inSidebar:!1,showSidebarBorder:!1,linkUnderline:!0,breakpoints,colors:colors$1,fonts,fontSizes,fontWeights,genericFonts,iconSizes,lineHeights,radii,shadows:shadows$1,sizes,spacing,zIndices},genericColors={...colors$2,bgColor:colors$2.gray100,bodyText:colors$2.gray10,primary:colors$2.red70,secondaryBg:colors$2.gray90,redColor:colors$2.red80,orangeColor:colors$2.orange80,yellowColor:colors$2.yellow70,blueColor:colors$2.blue80,greenColor:colors$2.green80,violetColor:colors$2.purple70,grayColor:colors$2.gray80,redBackgroundColor:transparentize(colors$2.red60,.8),orangeBackgroundColor:transparentize(colors$2.orange80,.8),yellowBackgroundColor:transparentize(colors$2.yellow65,.8),blueBackgroundColor:transparentize(colors$2.blue60,.8),greenBackgroundColor:transparentize(colors$2.green60,.8),violetBackgroundColor:transparentize(colors$2.purple60,.8),grayBackgroundColor:transparentize(colors$2.gray70,.8),redTextColor:colors$2.red60,orangeTextColor:colors$2.orange60,yellowTextColor:colors$2.yellow20,blueTextColor:colors$2.blue60,greenTextColor:colors$2.green50,violetTextColor:colors$2.purple50,grayTextColor:transparentize(colors$2.gray10,.4)},colors=createEmotionColors({...emotionBaseTheme.colors,...genericColors}),shadows=createShadows(colors),emotionDarkTheme={...emotionBaseTheme,inSidebar:!1,colors,shadows},emotionLightTheme={...emotionBaseTheme,inSidebar:!1},baseuiLightTheme=createBaseUiTheme(emotionLightTheme,primitives),baseuiDarkTheme=createBaseUiTheme(emotionDarkTheme,primitives$1),STALE_TRANSITION_PARAMS="1s ease-in 0.5s",STALE_STYLES={opacity:.33,transition:`opacity ${STALE_TRANSITION_PARAMS}`},globalStyles=n=>css("html{font-size:",n.fontSizes.baseFontSize,"px;}@media print{html{height:100%;print-color-adjust:exact;-webkit-print-color-adjust:exact;}}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",n.genericFonts.bodyFont,";font-weight:",n.fontWeights.normal,";line-height:",n.lineHeights.base,";color:",n.colors.bodyText,";background-color:",n.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",transparentize(n.colors.black,1),';-webkit-font-smoothing:auto;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:',n.fontWeights.normal,';}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}img,svg{vertical-align:middle;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;font-size:inherit;}button,input{overflow:visible;}button,[role="button"]{&:not(:disabled){cursor:pointer;}}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}[hidden]{display:none !important;}@supports (scrollbar-color:transparent transparent){*{scrollbar-width:thin;scrollbar-color:transparent transparent;}*:hover{scrollbar-color:',n.colors.fadedText40," transparent;}}@supports not (scrollbar-color:transparent transparent){::-webkit-scrollbar{background:transparent;border-radius:",n.radii.full,";height:6px;width:6px;}::-webkit-scrollbar:active{background:",n.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",n.colors.fadedText40,";border-radius:",n.radii.full,";}}"),baseTheme={name:"base",emotion:emotionBaseTheme,basewebTheme:baseuiLightTheme,primitives},darkTheme={name:"Dark",emotion:emotionDarkTheme,basewebTheme:baseuiDarkTheme,primitives:primitives$1},lightTheme={name:"Light",emotion:emotionLightTheme,basewebTheme:baseuiLightTheme,primitives},CACHED_THEME_VERSION=2,CACHED_THEME_BASE_KEY=`stActiveTheme-${window.location.pathname}`,LocalStore={CACHED_THEME_VERSION,CACHED_THEME_BASE_KEY,ACTIVE_THEME:`${CACHED_THEME_BASE_KEY}-v${CACHED_THEME_VERSION}`},AUTO_THEME_NAME="Use system setting",CUSTOM_THEME_NAME="Custom Theme",CUSTOM_THEME_LIGHT_NAME="Custom Theme Light",CUSTOM_THEME_DARK_NAME="Custom Theme Dark",CUSTOM_THEME_AUTO_NAME="Custom Theme Auto",LOG$i=loglevelExports.getLogger("theme:utils");function sortThemeInputKeys(n){if(n==null)return n;if(Array.isArray(n))return n.map(i=>sortThemeInputKeys(i));if(typeof n=="object"){const i={};
50return Object.keys(n).sort().forEach(t=>{i[t]=sortThemeInputKeys(n[t])}),i}return n}function mergeTheme(n,i){if(i&&isObject$1(i)){const t=new CustomThemeConfig(i);return createTheme(n.name,t,n)}return n}const getMergedLightTheme=once(()=>mergeTheme(lightTheme,StreamlitConfig.LIGHT_THEME)),getMergedDarkTheme=once(()=>mergeTheme(darkTheme,StreamlitConfig.DARK_THEME)),getSystemThemePreference=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",getSystemTheme=()=>getSystemThemePreference()==="dark"?getMergedDarkTheme():getMergedLightTheme(),createAutoTheme=()=>({...getSystemTheme(),name:AUTO_THEME_NAME}),createPresetThemes=()=>[createAutoTheme(),getMergedLightTheme(),getMergedDarkTheme()],isPresetTheme=n=>createPresetThemes().map(t=>t.name).includes(n.name),bgColorToBaseString=n=>n===void 0||getLuminance(n)>.5?"light":"dark",isColor=n=>{const i=new Option().style;return i.color=n,i.color!==""},roundFontSizeToNearestEighth=n=>Math.round(n*8)/8,parseFont=(n,i=fonts.sansSerif)=>{const t=n.trim();if(!t)return i;const e={"sans-serif":fonts.sansSerif,serif:fonts.serif,monospace:fonts.monospace},o=t.toLowerCase().replaceAll(" ","-");return o in e?e[o]:`${t}, ${i}`},parseColor=(n,i,t=!1)=>{if(isColor(n))return n;if(isColor(`#${n}`))return`#${n}`;if(i.toLowerCase().includes("color")){const o=t?"theme.sidebar":"theme";LOG$i.warn(`Invalid color passed for ${i} in ${o}: "${n}"`)}},resolveBgColor=(n,i,t,e)=>n||(i?transparentize(i,e?.9:.8):t),resolveTextColor=(n,i,t,e)=>n||(i?e?darken(i,.15):lighten(i,.15):t),setBackgroundColors=(n,i)=>{const t={...n},e={redBackgroundColor:{main:i.redColor,background:i.redBackgroundColor},orangeBackgroundColor:{main:i.orangeColor,background:i.orangeBackgroundColor},yellowBackgroundColor:{main:i.yellowColor,background:i.yellowBackgroundColor},blueBackgroundColor:{main:i.blueColor,background:i.blueBackgroundColor},greenBackgroundColor:{main:i.greenColor,background:i.greenBackgroundColor},violetBackgroundColor:{main:i.violetColor,background:i.violetBackgroundColor},grayBackgroundColor:{main:i.grayColor,background:i.grayBackgroundColor}},o=getLuminance(t.bgColor)>.5;return Object.entries(e).forEach(([d,{main:p,background:h}])=>{const y=d;t[y]=resolveBgColor(h,p,n[y],o)}),t},setTextColors=(n,i)=>{const t={...n},e={redTextColor:{main:i.redColor,text:i.redTextColor},orangeTextColor:{main:i.orangeColor,text:i.orangeTextColor},yellowTextColor:{main:i.yellowColor,text:i.yellowTextColor},blueTextColor:{main:i.blueColor,text:i.blueTextColor},greenTextColor:{main:i.greenColor,text:i.greenTextColor},violetTextColor:{main:i.violetColor,text:i.violetTextColor},grayTextColor:{main:i.grayColor,text:i.grayTextColor}},o=getLuminance(t.bgColor)>.5;return Object.entries(e).forEach(([d,{main:p,text:h}])=>{const y=d;t[y]=resolveTextColor(h,p,n[y],o)}),t},parseRadius=n=>{let i="rem",t;const e=n.trim().toLowerCase();return e==="none"?t=0:e==="small"?t=.35:e==="medium"?t=.5:e==="large"?t=1:e==="full"?t=1.4:e.endsWith("rem")?t=parseFloat(e):e.endsWith("px")?(t=parseFloat(e),i="px"):isNaN(parseFloat(e))||(t=parseFloat(e),i="px"),[t,i]},parseFontSize=(n,i,t)=>{const e=t?"theme.sidebar":"theme";if(typeof i=="string"){const o=i.trim().toLowerCase(),d=parseFloat(o);if(d&&(o.endsWith("rem")||o.endsWith("px")))return o;if(d.toString()===o)return`${o}px`}LOG$i.warn(`Invalid size passed for ${n} in ${e}: ${i}. Falling back to default ${n}.`)},isValidFontWeight=(n,i,t,e,o)=>{const d=o?"theme.sidebar":"theme";if(notNullOrUndefined(i)){const p=Number.isInteger(i),h=i%100===0,y=i>=t&&i<=e;return!p||!h||!y?(LOG$i.warn(`Invalid ${n}: ${i} in ${d}. The ${n} must be an integer ${t}-${e}, and an increment of 100. Falling back to default font weight.`),!1):!0}return!1},convertHeadingFontSizeToRem=(n,i,t,e)=>{const o=parseFontSize(n,i,e);if(o?.endsWith("rem"))return o;if(o?.endsWith("px"))return`${parseFloat(o)/t}rem`},setHeadingFontSizes=(n,i,t,e)=>{const o={...n};return e&&e.forEach((d,p)=>{const h=`h${p+1}FontSize`,y=convertHeadingFontSizeToRem(`${h} in headingFontSizes`,d,t,i);y&&(o[h]=y)}),o},setFontWeights=(n,i,t,e,o)=>{const d={...n,h1FontWeight:i?600:n.h1FontWeight};return t&&isValidFontWeight("baseFontWeight",t,100,600)&&(d.normal=t,d.semiBold=t+100,d.bold=t+200,d.extrabold=t+300,d.code=t,d.co
50deBold=t+200,d.codeExtraBold=t+300),e&&isValidFontWeight("codeFontWeight",e,100,600)&&(d.code=e,d.codeBold=e+200,d.codeExtraBold=e+300),o&&o.forEach((p,h)=>{const y=`h${h+1}FontWeight`;isValidFontWeight(`${y} in headingFontWeights`,p,100,900,i)&&(d[y]=p)}),d},validateChartColors=(n,i)=>i.map(t=>parseColor(t,n)).filter(t=>t!==void 0),createEmotionTheme=(n,i=baseTheme)=>{const{colors:t,genericFonts:e,inSidebar:o}=i.emotion,{baseFontSize:d,baseFontWeight:p,baseRadius:h,buttonRadius:y,codeFontSize:E,codeFontWeight:$,showWidgetBorder:M,headingFont:X,headingFontSizes:Z,headingFontWeights:ye,bodyFont:be,codeFont:we,showSidebarBorder:xe,linkUnderline:$e,chartCategoricalColors:Ne,chartSequentialColors:Fe,chartDivergingColors:De,metricValueFontSize:Le,metricValueFontWeight:He,...Ke}=n,je=Object.entries(Ke).reduce(($t,[Yt,ln])=>{const Qt=parseColor(ln,Yt,o);return Qt&&($t[Yt]=Qt),$t},{}),{secondaryBackgroundColor:Ve,backgroundColor:qe,primaryColor:Ye,textColor:et,dataframeBorderColor:Qe,dataframeHeaderBackgroundColor:ze,borderColor:st,linkColor:at,codeTextColor:tt,codeBackgroundColor:pt,redColor:Be,orangeColor:Ge,yellowColor:it,blueColor:Ue,greenColor:Ot,violetColor:Rt,grayColor:dt}=je,Tt={...t,primary:Ye??t.primary,bodyText:et??t.bodyText,secondaryBg:Ve??t.secondaryBg,bgColor:qe??t.bgColor,redColor:Be??t.redColor,orangeColor:Ge??t.orangeColor,yellowColor:it??t.yellowColor,blueColor:Ue??t.blueColor,greenColor:Ot??t.greenColor,violetColor:Rt??t.violetColor,grayColor:dt??t.grayColor,secondary:Ye??t.primary},ht={colors:{...createEmotionColors(Tt)},showSidebarBorder:xe??i.emotion.showSidebarBorder,linkUnderline:$e??i.emotion.linkUnderline,radii:{...i.emotion.radii},fontSizes:{...i.emotion.fontSizes},fontWeights:{...i.emotion.fontWeights}};if(ht.colors.codeBackgroundColor=pt??t.codeBackgroundColor,ht.colors.dataframeHeaderBackgroundColor=ze??t.dataframeHeaderBackgroundColor,notNullOrUndefined(st)){ht.colors.borderColor=st;const $t=transparentize(st,.55);ht.colors.borderColorLight=$t,ht.colors.dataframeBorderColor=$t}if(notNullOrUndefined(Qe)&&(ht.colors.dataframeBorderColor=Qe),M&&(ht.colors.widgetBorderColor=ht.colors.borderColor),ht.colors=setBackgroundColors(ht.colors,je),ht.colors=setTextColors(ht.colors,je),ht.colors.link=at??ht.colors.blueTextColor,ht.colors.codeTextColor=tt??ht.colors.greenTextColor,notNullOrUndefined(Ne)&&Ne.length>0){const $t=validateChartColors("chartCategoricalColors",Ne);$t.length>0&&(ht.colors.chartCategoricalColors=$t)}if(notNullOrUndefined(Fe)&&Fe.length>0){const $t=validateChartColors("chartSequentialColors",Fe);$t.length===10?ht.colors.chartSequentialColors=$t:LOG$i.warn(`Invalid chartSequentialColors: ${Fe.toString()}. Falling back to default chartSequentialColors.`)}if(notNullOrUndefined(De)&&De.length>0){const $t=validateChartColors("chartDivergingColors",De);$t.length===10?ht.colors.chartDivergingColors=$t:LOG$i.warn(`Invalid chartDivergingColors: ${De.toString()}. Falling back to default chartDivergingColors.`)}if(notNullOrUndefined(h)){const[$t,Yt]=parseRadius(h);if(notNullOrUndefined($t)&&!isNaN($t)){const ln=addCssUnit($t,Yt);ht.radii.default=ln,ht.radii.button=ln,ht.radii.sm=addCssUnit(roundToTwoDecimals($t*.5),Yt),ht.radii.md2=addCssUnit(roundToTwoDecimals($t*.75),Yt),ht.radii.xl=addCssUnit(roundToTwoDecimals($t*1.5),Yt),ht.radii.xxl=addCssUnit(roundToTwoDecimals($t*2),Yt)}else LOG$i.warn(`Invalid base radius: ${h}. Falling back to default base radius.`)}if(notNullOrUndefined(y)){const[$t,Yt]=parseRadius(y);notNullOrUndefined($t)&&!isNaN($t)?ht.radii.button=addCssUnit($t,Yt):LOG$i.warn(`Invalid button radius: ${y}. Falling back to default button radius.`)}if(d&&d>0&&(ht.fontSizes.baseFontSize=d),E){const $t=parseFontSize("codeFontSize",E,o);$t&&(ht.fontSizes.codeFontSize=$t)}ht.fontSizes=setHeadingFontSizes(ht.fontSizes,o,ht.fontSizes.baseFontSize,Z),ht.fontWeights=setFontWeights(i.emotion.fontWeights,o,p,$,ye);const Ft={...e,bodyFont:be?parseFont(be,fonts.sansSerif):e.bodyFont,codeFont:we?parseFont(we,fonts.monospace):e.codeFont,headingFont:X?parseFont(X,fonts.sansSerif):e.headingFont};be&&!X&&(Ft.headingFont=parseFont(be,fonts.sansSerif));
50const zt=createShadows(ht.colors);return{...i.emotion,genericFonts:Ft,...ht,shadows:zt,...(()=>{if(!Le)return{};const $t=parseFontSize("metricValueFontSize",Le,o);return $t?parseFloat($t)<=0?(LOG$i.warn(`Invalid metricValueFontSize: ${Le} in theme. The metricValueFontSize must be greater than 0. Falling back to default metricValueFontSize.`),{}):{metricValueFontSize:$t}:{}})(),...He?He>=100&&He<=900?{metricValueFontWeight:He}:(LOG$i.warn(`Invalid metricValueFontWeight: ${He}. Must be between 100 and 900.`),{}):{}}},toThemeInput=n=>{const{colors:i}=n;return{primaryColor:i.primary,backgroundColor:i.bgColor,secondaryBackgroundColor:i.secondaryBg,textColor:i.bodyText,bodyFont:n.genericFonts.bodyFont}},toExportedTheme=n=>{const{colors:i}=n,t=toThemeInput(n);return{primaryColor:t.primaryColor,backgroundColor:t.backgroundColor,secondaryBackgroundColor:t.secondaryBackgroundColor,textColor:t.textColor,bodyFont:t.bodyFont,base:bgColorToBaseString(t.backgroundColor),...computeDerivedColors(i)}},completeThemeInput=(n,i)=>new CustomThemeConfig({...toThemeInput(i.emotion),...n}),createTheme=(n,i,t,e=!1)=>{let o;t?o=completeThemeInput(i,t):i.base===CustomThemeConfig.BaseTheme.DARK?o=completeThemeInput(i,darkTheme):o=completeThemeInput(i,lightTheme);const d=o.backgroundColor,p=merge$1(cloneDeep(t||(getLuminance(d)>.5?lightTheme:darkTheme)),{emotion:{inSidebar:e}}),h=createEmotionTheme(o,p),y=cloneDeep(createBaseUiTheme(h,p.primitives));return{...p,name:n,emotion:h,basewebTheme:y,themeInput:i}},deleteOldCachedThemes=()=>{const{CACHED_THEME_VERSION:n,CACHED_THEME_BASE_KEY:i}=LocalStore,{localStorage:t}=window;t.removeItem("stActiveTheme"),t.removeItem(i);for(let e=1;e<n;e++)t.removeItem(`${i}-v${e}`)},getThemeSelectionFromThemeConfig=n=>n.name===AUTO_THEME_NAME||n.name===CUSTOM_THEME_AUTO_NAME?"System":n.name===lightTheme.name||n.name===CUSTOM_THEME_LIGHT_NAME?"Light":n.name===darkTheme.name||n.name===CUSTOM_THEME_DARK_NAME?"Dark":(n.name===CUSTOM_THEME_NAME,"System"),isThemeSelection=n=>n==="System"||n==="Light"||n==="Dark",getCachedThemeSelection=()=>{if(!localStorageAvailable())return null;deleteOldCachedThemes();const n=window.localStorage.getItem(LocalStore.ACTIVE_THEME);if(!n)return null;const i=JSON.parse(n);return isThemeSelection(i)?i:null},setCachedThemeSelection=n=>{if(!localStorageAvailable()||(deleteOldCachedThemes(),isLightThemeInQueryParams()||isDarkThemeInQueryParams()))return;const i=getThemeSelectionFromThemeConfig(n);window.localStorage.setItem(LocalStore.ACTIVE_THEME,JSON.stringify(i))},getHostSpecifiedThemeOnly=()=>isLightThemeInQueryParams()?getMergedLightTheme():isDarkThemeInQueryParams()?getMergedDarkTheme():null,getHostSpecifiedTheme=()=>getHostSpecifiedThemeOnly()??createAutoTheme(),getDefaultTheme=()=>{const n=getHostSpecifiedThemeOnly();if(n)return n;const i=getCachedThemeSelection();return i==="Light"?getMergedLightTheme():i==="Dark"?getMergedDarkTheme():createAutoTheme()},whiteSpace=/\s+/;function computeSpacingStyle(n,i){return n===""?"":n.split(whiteSpace).map(t=>t==="0"?i.spacing.none:t in i.spacing?i.spacing[t]:(LOG$i.error(`Invalid spacing value: ${t}`),i.spacing.none)).join(" ")}function addCssUnit(n,i){return`${n}${i}`}function roundToTwoDecimals(n){return parseFloat(n.toFixed(2))}function blend(n,i){if(i===void 0)return n;const[t,e,o,d]=parseToRgba(n);if(d===1)return n;const[p,h,y,E]=parseToRgba(i),$=d+E*(1-d),M=Math.round((d*t+E*p*(1-d))/$),X=Math.round((d*e+E*h*(1-d))/$),Z=Math.round((d*o+E*y*(1-d))/$);return toHex(`rgba(${M}, ${X}, ${Z}, ${$})`)}const convertRemToPx=n=>parseFloat(n.replace(/rem$/,""))*(parseFloat(getComputedStyle(document.documentElement).fontSize)||16),skipProtobufDefaults=(n,i)=>{if(i===""||i===null||Array.isArray(i)&&i.length===0)return n},handleSectionInheritance=(n,i)=>{const t=i==="light",e=t?CustomThemeConfig.BaseTheme.LIGHT:CustomThemeConfig.BaseTheme.DARK,{light:o,dark:d,sidebar:p,...h}=n,y=t?o:d,{sidebar:E,...$}=y||{},M=mergeWith({},h,$,{base:e},skipProtobufDefaults);return(p||E)&&(M.sidebar=mergeWith({},p,E,skipProtobufDefaults)),M},hasThemeSectionConfigs=n=>{if(!n)return!1;const i=t=>t==null?!1:Array.isArray(t)?t.length>0:typeof t=="object"?Object.values(t).some(i):!0;return Object.values(n).some(i)},createCustomThemes=n=>{const i=hasThemeSectionConfigs(n.light),t=hasThemeSectionConfigs(n.dark),e=[];
50if(i||t){const o=handleSectionInheritance(n,"light"),d={...createTheme(CUSTOM_THEME_LIGHT_NAME,o),displayName:"Light"},p=handleSectionInheritance(n,"dark"),h={...createTheme(CUSTOM_THEME_DARK_NAME,p),displayName:"Dark"},E={...getSystemThemePreference()==="dark"?h:d,displayName:AUTO_THEME_NAME,name:CUSTOM_THEME_AUTO_NAME};e.push(d,h,E)}else{const o=createTheme(CUSTOM_THEME_NAME,n);e.push(o)}return e},setSidebarHeadingFontSizes=n=>merge$1([],["1.5rem","1.25rem","1.125rem","1rem","0.875rem","0.75rem"],n||[]),createSidebarTheme=n=>{const i=n.themeInput?.sidebar,{bgColor:t,secondaryBg:e}=n.emotion.colors,o=i?.backgroundColor||e,d=i?.secondaryBackgroundColor||t,p=setSidebarHeadingFontSizes(i?.headingFontSizes);let h=getLuminance(o)>.5?CustomThemeConfig.BaseTheme.LIGHT:CustomThemeConfig.BaseTheme.DARK;n.name===CUSTOM_THEME_LIGHT_NAME?h=CustomThemeConfig.BaseTheme.LIGHT:n.name===CUSTOM_THEME_DARK_NAME&&(h=CustomThemeConfig.BaseTheme.DARK);const y=mergeWith({},n.themeInput,i,{base:h,backgroundColor:o,secondaryBackgroundColor:d,headingFontSizes:p},skipProtobufDefaults);return createTheme("Sidebar",y,void 0,!0)},mapCachedThemeSelectionToAvailableTheme=(n,i)=>{if(!n)return null;const t={System:[CUSTOM_THEME_AUTO_NAME,AUTO_THEME_NAME,CUSTOM_THEME_NAME],Light:[CUSTOM_THEME_LIGHT_NAME,lightTheme.name],Dark:[CUSTOM_THEME_DARK_NAME,darkTheme.name]};for(const e of t[n]){const o=i.find(d=>d.name===e);if(o)return o}return null},getPreferredTheme=n=>{const i=getHostSpecifiedThemeOnly(),e=(i?getThemeSelectionFromThemeConfig(i):null)??getCachedThemeSelection();return mapCachedThemeSelectionToAvailableTheme(e,n)},isPositiveNumber=n=>typeof n=="number"&&n>=0&&!isNaN(n),isNonZeroPositiveNumber=n=>typeof n=="number"&&n>0&&!isNaN(n),getWidth=(n,i)=>{if(i?.useContainerWidth)return{type:"stretch"};const t=n.widthConfig?.useStretch||i?.widthConfig?.useStretch,e=n?.widthConfig?.useContent||i?.widthConfig?.useContent,o=n?.widthConfig?.pixelWidth||i?.widthConfig?.pixelWidth||n.widthConfig?.pixelWidth===0,d=n.widthConfig?.remWidth;return t?{type:"stretch"}:e?{type:"content"}:d&&isPositiveNumber(n.widthConfig?.remWidth)?{type:"rem",rem:n.widthConfig.remWidth}:o&&isPositiveNumber(n.widthConfig?.pixelWidth)?{type:"pixel",pixels:n.widthConfig.pixelWidth}:o&&isPositiveNumber(i?.widthConfig?.pixelWidth)?{type:"pixel",pixels:i.widthConfig.pixelWidth}:isNonZeroPositiveNumber(i?.width)&&!n.widthConfig?{type:"pixel",pixels:i.width}:{type:"auto"}},getHeight=(n,i)=>{const t=!!n.heightConfig?.useStretch,e=!!n.heightConfig?.useContent,o=!!n.heightConfig?.pixelHeight||n.heightConfig?.pixelHeight===0,d=n.heightConfig?.remHeight;return t?{type:"stretch"}:e?{type:"content"}:d&&isPositiveNumber(n.heightConfig?.remHeight)?{type:"rem",rem:n.heightConfig.remHeight}:o&&isPositiveNumber(n.heightConfig?.pixelHeight)?{type:"pixel",pixels:n.heightConfig.pixelHeight}:isNonZeroPositiveNumber(i?.height)&&!n.heightConfig?{type:"pixel",pixels:i.height}:{type:"auto"}},getFlex=(n,i,t,e)=>{if(t===Direction.HORIZONTAL)switch(n.type){case"pixel":return`0 0 ${n.pixels}px`;case"rem":return`0 0 ${n.rem}rem`;case"content":return"0 0 fit-content";case"stretch":return`1 1 ${e??"fit-content"}`;case"auto":return;default:assertNever(n)}else if(t===Direction.VERTICAL)switch(i.type){case"pixel":return`0 0 ${i.pixels}px`;case"rem":return`0 0 ${i.rem}rem`;case"content":case"stretch":case"auto":return;default:assertNever(i)}},getDirection=n=>n?.direction,calculateMinWidthWithParentConstraint=(n,i,t=32)=>{if(i===void 0||n===void 0||n==="fit-content")return n;const e=convertRemToPx(n);return i<e&&i>t?`${i-t}px`:n},useLayoutStyles=({element:n,subElement:i,styleOverrides:t,minStretchBehavior:e})=>{const o=reactExports.useContext(FlexContext);return reactExports.useMemo(()=>{if(!n)return{width:"auto",height:"auto",overflow:"visible"};const p=getWidth(n,i);let h,y;switch(p.type){case"stretch":h="100%";break;case"rem":h=`${p.rem}rem`;break;case"pixel":h=`${p.pixels}px`;break;case"content":h="fit-content";break;case"auto":h="auto";break;default:assertNever(p)}const E=getDirection(o);o?.isInContentWidthContainer&&p.type==="stretch"&&e!==void 0&&(y=calculateMinWidthWithParentConstraint(e,o?.parentWidth));
50const $=getHeight(n,i);let M,X="visible";switch($.type){case"stretch":M="100%";break;case"content":M="auto";break;case"rem":M=`${$.rem}rem`;break;case"pixel":M=`${$.pixels}px`,X="auto";break;case"auto":M="auto";break;default:assertNever($)}const Z=getFlex(p,$,E,e),ye=getTextAlignmentStyle("textAlignmentConfig"in n?n.textAlignmentConfig:void 0);return{...{width:h,height:M,overflow:X,flex:Z,minWidth:y,textAlign:ye},...t}},[n,i,t,o,e])};var ScriptRunState=(function(n){return n.NOT_RUNNING="notRunning",n.RUNNING="running",n.RERUN_REQUESTED="rerunRequested",n.STOP_REQUESTED="stopRequested",n.COMPILATION_ERROR="compilationError",n})({});const ScriptRunContext=reactExports.createContext({scriptRunState:ScriptRunState.NOT_RUNNING,scriptRunId:"<null>",fragmentIdsThisRun:[]});ScriptRunContext.displayName="ScriptRunContext";var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(n){return reactPropsRegex.test(n)||n.charCo
50deAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function n(i){return i!=="theme"},getDefaultShouldForwardProp=function n(i){return typeof i=="string"&&i.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function n(i,t,e){var o;if(t){var d=t.shouldForwardProp;o=i.__emotion_forwardProp&&d?function(p){return i.__emotion_forwardProp(p)&&d(p)}:d}return typeof o!="function"&&e&&(o=i.__emotion_forwardProp),o},Insertion=function n(i){var t=i.cache,e=i.serialized,o=i.isStringTag;return registerStyles(t,e,o),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(t,e,o)}),null},createStyled=function n(i,t){var e=i.__emotion_real===i,o=e&&i.__emotion_base||i,d,p;t!==void 0&&(d=t.label,p=t.target);var h=composeShouldForwardProps(i,t,e),y=h||getDefaultShouldForwardProp(o),E=!y("as");return function(){var $=arguments,M=e&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(d!==void 0&&M.push("label:"+d+";"),$[0]==null||$[0].raw===void 0)M.push.apply(M,$);else{var X=$[0];M.push(X[0]);for(var Z=$.length,ye=1;ye<Z;ye++)M.push($[ye],X[ye])}var be=withEmotionCache(function(we,xe,$e){var Ne=E&&we.as||o,Fe="",De=[],Le=we;if(we.theme==null){Le={};for(var He in we)Le[He]=we[He];Le.theme=reactExports.useContext(ThemeContext$2)}typeof we.className=="string"?Fe=getRegisteredStyles(xe.registered,De,we.className):we.className!=null&&(Fe=we.className+" ");var Ke=serializeStyles(M.concat(De),xe.registered,Le);Fe+=xe.key+"-"+Ke.name,p!==void 0&&(Fe+=" "+p);var je=E&&h===void 0?getDefaultShouldForwardProp(Ne):y,Ve={};for(var qe in we)E&&qe==="as"||je(qe)&&(Ve[qe]=we[qe]);return Ve.className=Fe,$e&&(Ve.ref=$e),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:xe,serialized:Ke,isStringTag:typeof Ne=="string"}),reactExports.createElement(Ne,Ve))});return be.displayName=d!==void 0?d:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",be.defaultProps=i.defaultProps,be.__emotion_real=be,be.__emotion_base=o,be.__emotion_styles=M,be.__emotion_forwardProp=h,Object.defineProperty(be,"toString",{value:function(){return"."+p}}),be.withComponent=function(we,xe){var $e=n(we,_extends$k({},t,xe,{shouldForwardProp:composeShouldForwardProps(be,xe,!0)}));return $e.apply(void 0,M)},be}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],styled=createStyled.bind(null);tags.forEach(function(n){styled[n]=styled(n)});var SIZE$1={medium:"medium"},spin={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},StyledSpinner=styled$1("i",function(n){var i=n.$theme,t=n.$color,e=t===void 0?i.colors.contentAccent:t,o=n.$borderWidth,d=n.$size,p=d===void 0?SIZE$1.medium:d,h={large:i.sizing.scale300,medium:i.sizing.scale100,small:i.sizing.scale0}[o||p],y={large:i.sizing.scale1000,medium:i.sizing.scale900,small:i.sizing.scale800}[p];return h||(h=i.sizing[o],h||(h="".concat(parseInt(o),"px"))),y||(y=i.sizing[p],y||(y="".concat(parseInt(p),"px"))),{display:"block",animationName:spin,animationDuration:i.animation.timing1000,animationIterationCount:"infinite",animationTimingFunction:"linear",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderRadius:"50%",borderTopColor:e,borderRightColor:i.colors.backgroundTertiary,borderBottomColor:i.colors.backgroundTertiary,borderLeftColor:i.colors.backgroundTertiary,borderLeftWidth:h,borderRightWidth:h,borderTopWidth:h,borderBottomWidth:h,width:y,height:y,cursor:"wait"}});
50StyledSpinner.displayName="StyledSpinner";StyledSpinner.displayName="StyledSpinner";const StyledSpinnerIcon=styled(StyledSpinner,{shouldForwardProp:n=>isPropValid(n)&&!["size"].includes(n),target:"emntfgb0"})(({size:n="lg",margin:i="",padding:t="",theme:e})=>{const o=`calc(${e.iconSizes[n]} * 0.80)`;return{width:o,height:o,fontSize:o,justifyContent:"center",margin:computeSpacingStyle(i,e),padding:computeSpacingStyle(t,e),borderColor:e.colors.fadedText10,borderTopColor:e.colors.bodyText,borderWidth:e.sizes.spinnerThickness,flexGrow:0,flexShrink:0}}),StyledIcon=styled("span",{shouldForwardProp:n=>isPropValid(n)&&!["size","as"].includes(n),target:"emntfgb1"})(({color:n,size:i,margin:t,padding:e,theme:o})=>({color:n||"inherit",fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:o.iconSizes[i],width:o.iconSizes[i],height:o.iconSizes[i],margin:computeSpacingStyle(t,o),padding:computeSpacingStyle(e,o),flexShrink:0})),StyledDynamicIcon=styled("span",{target:"emntfgb2"})(({size:n="lg",margin:i="",padding:t="",theme:e})=>({fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.iconSizes[n],width:e.iconSizes[n],height:e.iconSizes[n],margin:computeSpacingStyle(i,e),padding:computeSpacingStyle(t,e),flexShrink:0})),StyledImageIcon=styled("img",{target:"emntfgb3"})({width:"100%",height:"100%"}),StyledEmojiIcon=styled("span",{target:"emntfgb4"})(({size:n,margin:i,padding:t,theme:e,color:o})=>{const d=`calc(${e.iconSizes[n]} * 0.90)`;return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:d,width:d,height:d,margin:computeSpacingStyle(i,e),padding:computeSpacingStyle(t,e),color:o}}),getDefaultProps$1=({size:n,margin:i,padding:t,color:e})=>({size:n||"md",margin:i||"",padding:t||"",color:e||void 0}),Icon$2=({content:n,color:i,size:t,margin:e,padding:o,testid:d})=>jsx$1(StyledIcon,{as:n,"aria-hidden":"true","data-testid":d,...getDefaultProps$1({size:t,margin:e,padding:o,color:i})}),EmojiIcon=({size:n,margin:i,padding:t,children:e,color:o,testid:d})=>(typeof e=="string"&&(e=e.replace(/^emoji:/,"")),jsx$1(StyledEmojiIcon,{"data-testid":d||"stIconEmoji","aria-hidden":"true",...getDefaultProps$1({size:n,margin:i,padding:t,color:o}),children:e})),StyledMaterialIcon=styled("span",{target:"exvv1vr0"})(({size:n,margin:i,padding:t,theme:e,color:o})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",color:o,fontSize:e.iconSizes[n],width:e.iconSizes[n],height:e.iconSizes[n],margin:computeSpacingStyle(i,e),padding:computeSpacingStyle(t,e),userSelect:"none",fontFamily:e.genericFonts.iconFont,fontWeight:e.fontWeights.normal,fontStyle:"normal",lineHeight:e.lineHeights.none,letterSpacing:"normal",textTransform:"none",whiteSpace:"nowrap",wordWrap:"normal",direction:"ltr",fontFeatureSettings:"liga",MozFontFeatureSettings:"liga",WebkitFontFeatureSettings:"liga",WebkitFontSmoothing:"antialiased"})),getDefaultProps=({size:n,margin:i,padding:t,color:e})=>({size:n||"md",margin:i||"",padding:t||"",color:e||"inherit"}),MaterialFontIcon=({iconName:n,...i})=>jsx$1(StyledMaterialIcon,{...getDefaultProps(i),"data-testid":i.testid||"stIconMaterial",translate:"no",children:n});function parseIconPackEntry(n){const i=n.match(/^:(.+)\/(.+):$/);if(i===null)return{pack:"emoji",icon:n};const t=i[1],e=i[2];return{pack:t,icon:e}}function isMaterialIcon(n){if(!n)return!1;const i=parseIconPackEntry(n);return i.pack==="material"&&i.icon!==""}function getFilledStarIconSrc(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg2MF84NDMpIj48cGF0aCBkPSJNOS45OTk5NCAxNC4zOTE2TDEzLjQ1ODMgMTYuNDgzM0MxNC4wOTE2IDE2Ljg2NjYgMTQuODY2NiAxNi4zIDE0LjY5OTkgMTUuNTgzM0wxMy43ODMzIDExLjY1TDE2Ljg0MTYgOC45OTk5N0MxNy4zOTk5IDguNTE2NjMgMTcuMDk5OSA3LjU5OTk3IDE2LjM2NjYgNy41NDE2M0wxMi4zNDE2IDcuMTk5OTdMMTAuNzY2NiAzLjQ4MzNDMTAuNDgzMyAyLjgwODMgOS41MTY2MSAyLjgwODMgOS4yMzMyNyAzLjQ4MzNMNy42NTgyNyA3LjE5MTYzTDMuNjMzMjcgNy41MzMzQzIuODk5OTQgNy41OTE2MyAyLjU5OTk0IDguNTA4MyAzLjE1ODI3IDguOTkxNjNMNi4yMTY2MSAxMS42NDE2TDUuMjk5OTQgMTUuNTc1QzUuMTMzMjcgMTYuMjkxNiA1LjkwODI3IDE2Ljg1ODMgNi41NDE2MSAxNi40NzVMOS45OTk5NCAxNC4zOTE2WiIgZmlsbD0iI0ZBQ0EyQiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImNsaXAwXzE4NjBfODQzIj48cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9IndoaXRlIi8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+"}const DynamicIconDispatcher=({iconValue:n,...i})=>{if(n==="spinner")return jsx$1(StyledDynamicIcon,{...i,children:jsx$1(StyledSpinnerIcon,{"data-testid":i.testid||"stSpinnerIcon",...i})});const{pack:t,icon:e}=parseIconPackEntry(n);switch(t){case"material":switch(e){case"star_filled":return jsx$1(StyledDynamicIcon,{...i,children:jsx$1(StyledImageIcon,{src:getFilledStarIconSrc(),"data-testid":i.testid||"stImageIcon"})});default:return jsx$1(StyledDynamicIcon,{...i,children:jsx$1(MaterialFontIcon,{pack:t,iconName:e,...i})})}case"emoji":default:return jsx$1(StyledDynamicIcon,{...i,children:jsx$1(EmojiIcon,{...i,children:e})})}},DynamicIcon=n=>jsx$1(reactExports.Suspense,{fallback:jsx$1(StyledDynamicIcon,{...n,children:jsx$1(EmojiIcon,{...n,children:"Â "})}),children:jsx$1(DynamicIconDispatcher,{...n})},n.iconValue),LibConfigContext=reactExports.createContext({locale:window.navigator.language,mapboxToken:void 0,enforceDownloadInNewTab:void 0,resourceCrossOriginMode:void 0,showErrorLinks:Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO});LibConfigContext.displayName="LibConfigContext";var Pe=Object.defineProperty,a$1=(n,i)=>Pe(n,"name",{value:i,configurable:!0}),P=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(n,i,t,e,o,d){this.type=n,this.name=i,this.prefix=t,this.value=e,this.suffix=o,this.modifier=d}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};a$1(P,"Part");var Re=/[$_\p{ID_Start}]/u,Ee=/[$_\u200C\u200D\p{ID_Continue}]/u,v=".*";function Oe(n,i){return(i?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(n)}a$1(Oe,"isASCII");function D(n,i=!1){let t=[],e=0;for(;e<n.length;){let o=n[e],d=a$1(function(p){if(!i)throw new TypeError(p);
vendor: 16,287 bytes, line 50
50t.push({type:"INVALID_CHAR",index:e,value:n[e++]})},"ErrorOrInvalid");if(o==="*"){t.push({type:"ASTERISK",index:e,value:n[e++]});continue}if(o==="+"||o==="?"){t.push({type:"OTHER_MODIFIER",index:e,value:n[e++]});continue}if(o==="\\"){t.push({type:"ESCAPED_CHAR",index:e++,value:n[e++]});continue}if(o==="{"){t.push({type:"OPEN",index:e,value:n[e++]});continue}if(o==="}"){t.push({type:"CLOSE",index:e,value:n[e++]});continue}if(o===":"){let p="",h=e+1;for(;h<n.length;){let y=n.substr(h,1);if(h===e+1&&Re.test(y)||h!==e+1&&Ee.test(y)){p+=n[h++];continue}break}if(!p){d(`Missing parameter name at ${e}`);continue}t.push({type:"NAME",index:e,value:p}),e=h;continue}if(o==="("){let p=1,h="",y=e+1,E=!1;if(n[y]==="?"){d(`Pattern cannot start with "?" at ${y}`);continue}for(;y<n.length;){if(!Oe(n[y],!1)){d(`Invalid character '${n[y]}' at ${y}.`),E=!0;break}if(n[y]==="\\"){h+=n[y++]+n[y++];continue}if(n[y]===")"){if(p--,p===0){y++;break}}else if(n[y]==="("&&(p++,n[y+1]!=="?")){d(`Capturing groups are not allowed at ${y}`),E=!0;break}h+=n[y++]}if(E)continue;if(p){d(`Unbalanced pattern at ${e}`);continue}if(!h){d(`Missing pattern at ${e}`);continue}t.push({type:"REGEX",index:e,value:h}),e=y;continue}t.push({type:"CHAR",index:e,value:n[e++]})}return t.push({type:"END",index:e,value:""}),t}a$1(D,"lexer");function F(n,i={}){let t=D(n);i.delimiter??="/#?",i.prefixes??="./";let e=`[^${x(i.delimiter)}]+?`,o=[],d=0,p=0,h=new Set,y=a$1($e=>{if(p<t.length&&t[p].type===$e)return t[p++].value},"tryConsume"),E=a$1(()=>y("OTHER_MODIFIER")??y("ASTERISK"),"tryConsumeModifier"),$=a$1($e=>{let Ne=y($e);if(Ne!==void 0)return Ne;let{type:Fe,index:De}=t[p];throw new TypeError(`Unexpected ${Fe} at ${De}, expected ${$e}`)},"mustConsume"),M=a$1(()=>{let $e="",Ne;for(;Ne=y("CHAR")??y("ESCAPED_CHAR");)$e+=Ne;return $e},"consumeText"),X=a$1($e=>$e,"DefaultEncodePart"),Z=i.encodePart||X,ye="",be=a$1($e=>{ye+=$e},"appendToPendingFixedValue"),we=a$1(()=>{ye.length&&(o.push(new P(3,"","",Z(ye),"",3)),ye="")},"maybeAddPartFromPendingFixedValue"),xe=a$1(($e,Ne,Fe,De,Le)=>{let He=3;switch(Le){case"?":He=1;break;case"*":He=0;break;case"+":He=2;break}if(!Ne&&!Fe&&He===3){be($e);return}if(we(),!Ne&&!Fe){if(!$e)return;o.push(new P(3,"","",Z($e),"",He));return}let Ke;Fe?Fe==="*"?Ke=v:Ke=Fe:Ke=e;let je=2;Ke===e?(je=1,Ke=""):Ke===v&&(je=0,Ke="");let Ve;if(Ne?Ve=Ne:Fe&&(Ve=d++),h.has(Ve))throw new TypeError(`Duplicate name '${Ve}'.`);h.add(Ve),o.push(new P(je,Ve,Z($e),Ke,Z(De),He))},"addPart");for(;p<t.length;){let $e=y("CHAR"),Ne=y("NAME"),Fe=y("REGEX");if(!Ne&&!Fe&&(Fe=y("ASTERISK")),Ne||Fe){let Le=$e??"";i.prefixes.indexOf(Le)===-1&&(be(Le),Le=""),we();let He=E();xe(Le,Ne,Fe,"",He);continue}let De=$e??y("ESCAPED_CHAR");if(De){be(De);continue}if(y("OPEN")){let Le=M(),He=y("NAME"),Ke=y("REGEX");!He&&!Ke&&(Ke=y("ASTERISK"));let je=M();$("CLOSE");let Ve=E();xe(Le,He,Ke,je,Ve);continue}we(),$("END")}return o}a$1(F,"parse");function x(n){return n.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}a$1(x,"escapeString");function B(n){return n&&n.ignoreCase?"ui":"u"}a$1(B,"flags");function q(n,i,t){return W(F(n,t),i,t)}a$1(q,"stringToRegexp");function T(n){switch(n){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}a$1(T,"modifierToString");function W(n,i,t={}){t.delimiter??="/#?",t.prefixes??="./",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith="";let e=t.start?"^":"";for(let h of n){if(h.type===3){h.modifier===3?e+=x(h.value):e+=`(?:${x(h.value)})${T(h.modifier)}`;continue}i&&i.push(h.name);let y=`[^${x(t.delimiter)}]+?`,E=h.value;if(h.type===1?E=y:h.type===0&&(E=v),!h.prefix.length&&!h.suffix.length){h.modifier===3||h.modifier===1?e+=`(${E})${T(h.modifier)}`:e+=`((?:${E})${T(h.modifier)})`;continue}if(h.modifier===3||h.modifier===1){e+=`(?:${x(h.prefix)}(${E})${x(h.suffix)})`,e+=T(h.modifier);continue}e+=`(?:${x(h.prefix)}`,e+=`((?:${E})(?:`,e+=x(h.suffix),e+=x(h.prefix),e+=`(?:${E}))*)${x(h.suffix)})`,h.modifier===0&&(e+="?")}let o=`[${x(t.endsWith)}]|$`,d=`[${x(t.delimiter)}]`;if(t.end)return t.strict||(e+=`${d}?`),t.endsWith.length?e+=`(?=${o})`:e+="$",new RegExp(e,B(t));t.strict||(e+=`(?:${d}(?=${o}))?`);let p=!1;if(n.length){let h=n[n.length-1];h.type===3&&h.modifier===3&&(p=t.delimiter.indexOf(h)>-1)}return p||(e+=`(?=${d}|${o})`),new RegExp(e,B(t))}a$1(W,"partsToRegexp");var b={delimiter:"",prefixes:"",sensitive:!0,strict:!0},J={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Q={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function ee(n,i){return n.length?n[0]==="/"?!0:!i||n.length<2?!1:(n[0]=="\\"||n[0]=="{")&&n[1]=="/":!1}a$1(ee,"isAbsolutePathname");function te(n,i){return n.startsWith(i)?n.substring(i.length,n.length):n}a$1(te,"maybeStripPrefix");function ke(n,i){return n.endsWith(i)?n.substr(0,n.length-i.length):n}a$1(ke,"maybeStripSuffix");function _$1(n){return!n||n.length<2?!1:n[0]==="["||(n[0]==="\\"||n[0]==="{")&&n[1]==="["}a$1(_$1,"treatAsIPv6Hostname");var re$1=["ftp","file","http","https","ws","wss"];function U(n){if(!n)return!0;for(let i of re$1)if(n.test(i))return!0;return!1}a$1(U,"isSpecialScheme");function ne(n,i){if(n=te(n,"#"),i||n==="")return n;let t=new URL("https://example.com");return t.hash=n,t.hash?t.hash.substring(1,t.hash.length):""}a$1(ne,"canonicalizeHash");function se(n,i){if(n=te(n,"?"),i||n==="")return n;let t=new URL("https://example.com");return t.search=n,t.search?t.search.substring(1,t.search.length):""}a$1(se,"canonicalizeSearch");function ie(n,i){return i||n===""?n:_$1(n)?K(n):j(n)}a$1(ie,"canonicalizeHostname");function ae(n,i){if(i||n==="")return n;let t=new URL("https://example.com");return t.password=n,t.password}a$1(ae,"canonicalizePassword");function oe(n,i){if(i||n==="")return n;let t=new URL("https://example.com");return t.username=n,t.username}a$1(oe,"canonicalizeUsername");function ce(n,i,t){if(t||n==="")return n;if(i&&!re$1.includes(i))return new URL(`${i}:${n}`).pathname;let e=n[0]=="/";return n=new URL(e?n:"/-"+n,"https://example.com").pathname,e||(n=n.substring(2,n.length)),n}a$1(ce,"canonicalizePathname");function le(n,i,t){return z(i)===n&&(n=""),t||n===""?n:G(n)}a$1(le,"canonicalizePort");function fe(n,i){return n=ke(n,":"),i||n===""?n:w(n)}a$1(fe,"canonicalizeProtocol");function z(n){switch(n){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}a$1(z,"defaultPortForProtocol");function w(n){if(n==="")return n;if(/^[-+.A-Za-z0-9]*$/.test(n))return n.toLowerCase();throw new TypeError(`Invalid protocol '${n}'.`)}a$1(w,"protocolEncodeCallback");function he(n){if(n==="")return n;let i=new URL("https://example.com");return i.username=n,i.username}a$1(he,"usernameEncodeCallback");function ue(n){if(n==="")return n;let i=new URL("https://example.com");return i.password=n,i.password}a$1(ue,"passwordEncodeCallback");function j(n){if(n==="")return n;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(n))throw new TypeError(`Invalid hostname '${n}'`);let i=new URL("https://example.com");return i.hostname=n,i.hostname}a$1(j,"hostnameEncodeCallback");function K(n){if(n==="")return n;if(/[^0-9a-fA-F[\]:]/g.test(n))throw new TypeError(`Invalid IPv6 hostname '${n}'`);return n.toLowerCase()}a$1(K,"ipv6HostnameEncodeCallback");function G(n){if(n===""||/^[0-9]*$/.test(n)&&parseInt(n)<=65535)return n;throw new TypeError(`Invalid port '${n}'.`)}a$1(G,"portEncodeCallback");function de(n){if(n==="")return n;let i=new URL("https://example.com");return i.pathname=n[0]!=="/"?"/-"+n:n,n[0]!=="/"?i.pathname.substring(2,i.pathname.length):i.pathname}a$1(de,"standardURLPathnameEncodeCallback");function pe(n){return n===""?n:new URL(`data:${n}`).pathname}a$1(pe,"pathURLPathnameEncodeCallback");function ge(n){if(n==="")return n;let i=new URL("https://example.com");return i.search=n,i.search.substring(1,i.search.length)}a$1(ge,"searchEncodeCallback");function me(n){if(n==="")return n;let i=new URL("https://example.com");return i.hash=n,i.hash.substring(1,i.hash.length)}a$1(me,"hashEncodeCallback");var C=class{#o;#r=[];#t={};#e=0;#i=1;#u=0;#l=0;#p=0;#h=0;#y=!1;constructor(n){this.#o=n}get result(){return this.#t}parse(){for(this.#r=D(this.#o,!0);this.#e<this.#r.length;this.#e+=this.#i){if(this.#i=1,this.#r[this.#e].type==="END"){if(this.#l===0){this.#v(),this.#c()?this.#n(9,1):this.#d()?this.#n(8,1):this.#n(7,0);continue}else if(this.#l===2){this.#f(5);continue}this.#n(10,0);break}if(this.#p>0)if(this.#E())this.#p-=1;else continue;if(this.#x()){this.#p+=1;continue}switch(this.#l){case 0:this.#S()&&this.#f(1);break;case 1:if(this.#S()){this.#$();let n=7,i=1;this.#O()?(n=2,i=3):this.#y&&(n=2),this.#n(n,i)}break;case 2:this.#m()?this.#f(3):(this.#b()||this.#d()||this.#c())&&this.#f(5);break;case 3:this.#T()?this.#n(4,1):this.#m()&&this.#n(5,1);break;case 4:this.#m()&&this.#n(5,1);break;case 5:this.#k()?this.#h+=1:this.#_()&&(this.#h-=1),this.#C()&&!this.#h?this.#n(6,1):this.#b()?this.#n(7,0):this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 6:this.#b()?this.#n(7,0):this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 7:this.#d()?this.#n(8,1):this.#c()&&this.#n(9,1);break;case 8:this.#c()&&this.#n(9,1);break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#n(n,i){switch(this.#l){case 0:break;case 1:this.#t.protocol=this.#s();break;case 2:break;case 3:this.#t.username=this.#s();break;case 4:this.#t.password=this.#s();break;case 5:this.#t.hostname=this.#s();break;case 6:this.#t.port=this.#s();break;case 7:this.#t.pathname=this.#s();break;case 8:this.#t.search=this.#s();break;case 9:this.#t.hash=this.#s();break}this.#l!==0&&n!==10&&([1,2,3,4].includes(this.#l)&&[6,7,8,9].includes(n)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#l)&&[8,9].includes(n)&&(this.#t.pathname??=this.#y?"/":""),[1,2,3,4,5,6,7].includes(this.#l)&&n===9&&(this.#t.search??="")),this.#w(n,i)}#w(n,i){this.#l=n,this.#u=this.#e+i,this.#e+=i,this.#i=0}#v(){this.#e=this.#u,this.#i=0}#f(n){this.#v(),this.#l=n}#g(n){return n<0&&(n=this.#r.length-n),n<this.#r.length?this.#r[n]:this.#r[this.#r.length-1]}#a(n,i){let t=this.#g(n);return t.value===i&&(t.type==="CHAR"||t.type==="ESCAPED_CHAR"||t.type==="INVALID_CHAR")}#S(){return this.#a(this.#e,":")}#O(){return this.#a(this.#e+1,"/")&&this.#a(this.#e+2,"/")}#m(){return this.#a(this.#e,"@")}#T(){return this.#a(this.#e,":")}#C(){return this.#a(this.#e,":")}#b(){return this.#a(this.#e,"/")}#d(){if(this.#a(this.#e,"?"))return!0;if(this.#r[this.#e].value!=="?")return!1;let n=this.#g(this.#e-1);return n.type!=="NAME"&&n.type!=="REGEX"&&n.type!=="CLOSE"&&n.type!=="ASTERISK"}#c(){return this.#a(this.#e,"#")}#x(){return this.#r[this.#e].type=="OPEN"}#E(){return this.#r[this.#e].type=="CLOSE"}#k(){return this.#a(this.#e,"[")}#_(){return this.#a(this.#e,"]")}#s(){let n=this.#r[this.#e],i=this.#g(this.#u).index;return this.#o.substring(i,n.index)}#$(){let n={};Object.assign(n,b),n.encodePart=w;let i=q(this.#s(),void 0,n);this.#y=U(i)}};a$1(C,"Parser");var V=["protocol","username","password","hostname","port","pathname","search","hash"],O="*";function Se(n,i){if(typeof n!="string")throw new TypeError("parameter 1 is not of type 'string'.");let t=new URL(n,i);return{protocol:t.protocol.substring(0,t.protocol.length-1),username:t.username,password:t.password,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search!==""?t.search.substring(1,t.search.length):void 0,hash:t.hash!==""?t.hash.substring(1,t.hash.length):void 0}}a$1(Se,"extractValues");function R$1(n,i){return i?I(n):n}a$1(R$1,"processBaseURLString");function L$1(n,i,t){let e;if(typeof i.baseURL=="string")try{e=new URL(i.baseURL),i.protocol===void 0&&(n.protocol=R$1(e.protocol.substring(0,e.protocol.length-1),t)),!t&&i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.username===void 0&&(n.username=R$1(e.username,t)),!t&&i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.username===void 0&&i.password===void 0&&(n.password=R$1(e.password,t)),i.protocol===void 0&&i.hostname===void 0&&(n.hostname=R$1(e.hostname,t)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&(n.port=R$1(e.port,t)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.pathname===void 0&&(n.pathname=R$1(e.pathname,t)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.pathname===void 0&&i.search===void 0&&(n.search=R$1(e.search.substring(1,e.search.length),t)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.pathname===void 0&&i.search===void 0&&i.hash===void 0&&(n.hash=R$1(e.hash.substring(1,e.hash.length),t))}catch{throw new TypeError(`invalid baseURL '${i.baseURL}'.`)}if(typeof i.protocol=="string"&&(n.protocol=fe(i.protocol,t)),typeof i.username=="string"&&(n.username=oe(i.username,t)),typeof i.password=="string"&&(n.password=ae(i.password,t)),typeof i.hostname=="string"&&(n.hostname=ie(i.hostname,t)),typeof i.port=="string"&&(n.port=le(i.port,n.protocol,t)),typeof i.pathname=="string"){if(n.pathname=i.pathname,e&&!ee(n.pathname,t)){let o=e.pathname.lastIndexOf("/");o>=0&&(n.pathname=R$1(e.pathname.substring(0,o+1),t)+n.pathname)}n.pathname=ce(n.pathname,n.protocol,t)}return typeof i.search=="string"&&(n.search=se(i.search,t)),typeof i.hash=="string"&&(n.hash=ne(i.hash,t)),n}a$1(L$1,"applyInit");function I(n){return n.replace(/([+*?:{}()\\])/g,"\\$1")}a$1(I,"escapePatternString");function Te(n){return n.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}a$1(Te,"escapeRegexpString");function Ae(n,i){i.delimiter??="/#?",i.prefixes??="./",i.sensitive??=!1,i.strict??=!1,i.end??=!0,i.start??=!0,i.endsWith="";let t=".*",e=`[^${Te(i.delimiter)}]+?`,o=/[$_\u200C\u200D\p{ID_Continue}]/u,d="";for(let p=0;p<n.length;++p){let h=n[p];if(h.type===3){if(h.modifier===3){d+=I(h.value);continue}d+=`{${I(h.value)}}${T(h.modifier)}`;continue}let y=h.hasCustomName(),E=!!h.suffix.length||!!h.prefix.length&&(h.prefix.length!==1||!i.prefixes.includes(h.prefix)),$=p>0?n[p-1]:null,M=p<n.length-1?n[p+1]:null;if(!E&&y&&h.type===1&&h.modifier===3&&M&&!M.prefix.length&&!M.suffix.length)if(M.type===3){let X=M.value.length>0?M.value[0]:"";E=o.test(X)}else E=!M.hasCustomName();if(!E&&!h.prefix.length&&$&&$.type===3){let X=$.value[$.value.length-1];E=i.prefixes.includes(X)}E&&(d+="{"),d+=I(h.prefix),y&&(d+=`:${h.name}`),h.type===2?d+=`(${h.value})`:h.type===1?y||(d+=`(${e})`):h.type===0&&(!y&&(!$||$.type===3||$.modifier!==3||E||h.prefix!=="")?d+="*":d+=`(${t})`),h.type===1&&y&&h.suffix.length&&o.test(h.suffix[0])&&(d+="\\"),d+=I(h.suffix),E&&(d+="}"),h.modifier!==3&&(d+=T(h.modifier))}return d}a$1(Ae,"partsToPattern");var Y=class{#o;#r={};#t={};#e={};#i={};#u=!1;constructor(n={},i,t){try{let e;if(typeof i=="string"?e=i:t=i,typeof n=="string"){let h=new C(n);if(h.parse(),n=h.result,e===void 0&&typeof n.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");n.baseURL=e}else{if(!n||typeof n!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(e)throw new TypeError("parameter 1 is not of type 'string'.")}typeof t>"u"&&(t={ignoreCase:!1});let o={ignoreCase:t.ignoreCase===!0},d={pathname:O,protocol:O,username:O,password:O,hostname:O,port:O,search:O,hash:O};this.#o=L$1(d,n,!0),z(this.#o.protocol)===this.#o.port&&(this.#o.port="");let p;for(p of V){if(!(p in this.#o))continue;let h={},y=this.#o[p];switch(this.#t[p]=[],p){case"protocol":Object.assign(h,b),h.encodePart=w;break;case"username":Object.assign(h,b),h.encodePart=he;break;case"password":Object.assign(h,b),h.encodePart=ue;break;case"hostname":Object.assign(h,J),_$1(y)?h.encodePart=K:h.encodePart=j;break;case"port":Object.assign(h,b),h.encodePart=G;break;case"pathname":U(this.#r.protocol)?(Object.assign(h,Q,o),h.encodePart=de):(Object.assign(h,b,o),h.encodePart=pe);break;case"search":Object.assign(h,b,o),h.encodePart=ge;break;case"hash":Object.assign(h,b,o),h.encodePart=me;break}try{this.#i[p]=F(y,h),this.#r[p]=W(this.#i[p],this.#t[p],h),this.#e[p]=Ae(this.#i[p],h),this.#u=this.#u||this.#i[p].some(E=>E.type===2)}catch{throw new TypeError(`invalid ${p} pattern '${this.#o[p]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(n={},i){let t={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};
50if(typeof n!="string"&&i)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof n>"u")return!1;try{typeof n=="object"?t=L$1(t,n,!1):t=L$1(t,Se(n,i),!1)}catch{return!1}let e;for(e of V)if(!this.#r[e].exec(t[e]))return!1;return!0}exec(n={},i){let t={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof n!="string"&&i)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof n>"u")return;try{typeof n=="object"?t=L$1(t,n,!1):t=L$1(t,Se(n,i),!1)}catch{return null}let e={};i?e.inputs=[n,i]:e.inputs=[n];let o;for(o of V){let d=this.#r[o].exec(t[o]);if(!d)return null;let p={};for(let[h,y]of this.#t[o].entries())if(typeof y=="string"||typeof y=="number"){let E=d[h+1];p[y]=E}e[o]={input:t[o]??"",groups:p}}return e}static compareComponent(n,i,t){let e=a$1((h,y)=>{for(let E of["type","modifier","prefix","value","suffix"]){if(h[E]<y[E])return-1;if(h[E]!==y[E])return 1}return 0},"comparePart"),o=new P(3,"","","","",3),d=new P(0,"","","","",3),p=a$1((h,y)=>{let E=0;for(;E<Math.min(h.length,y.length);++E){let $=e(h[E],y[E]);if($)return $}return h.length===y.length?0:e(h[E]??o,y[E]??o)},"comparePartList");return!i.#e[n]&&!t.#e[n]?0:i.#e[n]&&!t.#e[n]?p(i.#i[n],[d]):!i.#e[n]&&t.#e[n]?p([d],t.#i[n]):p(i.#i[n],t.#i[n])}get protocol(){return this.#e.protocol}get username(){return this.#e.username}get password(){return this.#e.password}get hostname(){return this.#e.hostname}get port(){return this.#e.port}get pathname(){return this.#e.pathname}get search(){return this.#e.search}get hash(){return this.#e.hash}get hasRegExpGroups(){return this.#u}};a$1(Y,"URLPattern");globalThis.URLPattern||(globalThis.URLPattern=Y);function isValidOrigin(n,i){let t,e,o;try{t=new URLPattern(n),e=new URLPattern({protocol:t.protocol,hostname:t.hostname}),o=new URL(i)}catch{return!1}return o.hostname==="localhost"&&e.test(o)?!0:t.test(o)}function getCrossOriginAttribute(n,i){if(i)try{const t=new URL(i);return StreamlitConfig.BACKEND_BASE_URL&&t.origin===new URL(StreamlitConfig.BACKEND_BASE_URL).origin?n:void 0}catch{return StreamlitConfig.BACKEND_BASE_URL?n:void 0}}const useCrossOriginAttribute=n=>{const{resourceCrossOriginMode:i}=reactExports.useContext(LibConfigContext);if(n)return getCrossOriginAttribute(i,n)},useEmotionTheme=()=>useTheme(),StyledChatMessageContainer=styled("div",{target:"e9vv8y20"})(({theme:n,background:i})=>
50{const t=hasLightBackgroundColor(n);return{width:"100%",display:"flex",alignItems:"flex-start",gap:n.spacing.sm,padding:n.spacing.lg,paddingRight:i?n.spacing.lg:0,borderRadius:n.radii.default,...i?{backgroundColor:transparentize(t?n.colors.gray20:n.colors.gray90,.5)}:{}}}),StyledMessageContent=styled("div",{target:"e9vv8y21"})(({theme:n})=>({color:n.colors.bodyText,margin:"auto",flexGrow:1,minWidth:0})),StyledAvatarBackground=styled("div",{target:"e9vv8y22"})(({theme:n})=>{const i=hasLightBackgroundColor(n);return{display:"flex",border:`${n.sizes.borderWidth} solid ${i?n.colors.gray40:n.colors.gray85}`,backgroundColor:i?n.colors.white:n.colors.gray100,color:i?n.colors.gray90:n.colors.white,lineHeight:n.lineHeights.none,fontSize:n.fontSizes.md,flexShrink:0,width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,borderRadius:n.radii.default,alignItems:"center",justifyContent:"center"}}),StyledAvatarIcon=styled("div",{target:"e9vv8y23"})(({theme:n,background:i})=>{const t=hasLightBackgroundColor(n);return{display:"flex",width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,flexShrink:0,borderRadius:n.radii.default,alignItems:"center",justifyContent:"center",backgroundColor:i,
50color:t?n.colors.white:n.colors.gray100}}),StyledAvatarImage=styled("img",{target:"e9vv8y24"})(({theme:n})=>({width:n.sizes.chatAvatarSize,height:n.sizes.chatAvatarSize,flexShrink:0,borderRadius:n.radii.default,objectFit:"cover",display:"flex"}));function ChatMessageAvatar(n){const{avatar:i,avatarType:t,name:e,endpoints:o}=n,d=useEmotionTheme(),p=useCrossOriginAttribute(i);if(i)switch(t){case void 0:break;case Block$1.ChatMessage.AvatarType.IMAGE:return jsx$1(StyledAvatarImage,{src:o.buildMediaURL(i),alt:`${e} avatar`,crossOrigin:p});case Block$1.ChatMessage.AvatarType.EMOJI:return jsx$1(StyledAvatarBackground,{children:i});case Block$1.ChatMessage.AvatarType.ICON:if(i==="user")return jsx$1(StyledAvatarIcon,{"data-testid":"stChatMessageAvatarUser",background:d.colors.redColor,children:jsx$1(DynamicIcon,{size:"lg",iconValue:":material/face:"})});if(i==="assistant")return jsx$1(StyledAvatarIcon,{"data-testid":"stChatMessageAvatarAssistant",background:d.colors.orangeColor,children:jsx$1(DynamicIcon,{size:"lg",iconValue:":material/smart_toy:"})});if(i.startsWith(":material"))return jsx$1(StyledAvatarBackground,{"data-testid":"stChatMessageAvatarCustom",children:jsx$1(DynamicIcon,{size:"lg",iconValue:i,color:d.colors.bodyText})})}return jsx$1(StyledAvatarBackground,{children:e?e.charAt(0).toUpperCase():"ð§âð»"})}const ChatMessage=({endpoints:n,element:i,children:t})=>{const{avatar:e,avatarType:o,name:d}=i;return jsxs(StyledChatMessageContainer,{className:"stChatMessage","data-testid":"stChatMessage",background:["user","human"].includes(d.toLowerCase()),children:[jsx$1(ChatMessageAvatar,{name:d,avatar:e,avatarType:o,endpoints:n}),jsx$1(StyledMessageContent,{"data-testid":"stChatMessageContent","aria-label":`Chat message from ${d}`,children:t})]})},ChatMessage$1=reactExports.memo(ChatMessage),IsDialogContext=reactExports.createContext(!1);IsDialogContext.displayName="IsDialogContext";function _objectWithoutPropertiesLoose$b(n,i){if(n==null)return{};var t={};for(var e in n)if({}.hasOwnProperty.call(n,e)){if(i.indexOf(e)!==-1)continue;t[e]=n[e]}return t}var propTypes={exports:{}},ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=n,ReactPropTypesSecret_1}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var n=requireReactPropTypesSecret();function i(){}function t(){}return t.resetWarningCache=i,factoryWithThrowingShims=function(){function e(p,h,y,E,$,M){if(M!==n){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}}e.isRequired=e;function o(){return e}var d={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:o,element:e,elementType:e,instanceOf:o,node:e,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:i}
50;return d.PropTypes=d,d},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){return hasRequiredPropTypes||(hasRequiredPropTypes=1,propTypes.exports=requireFactoryWithThrowingShims()()),propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function useCallbackRef(n,i){var t=reactExports.useState(function(){return{value:n,callback:i,facade:{get current(){return t.value},set current(e){var o=t.value;o!==e&&(t.value=e,t.callback(e,o))}}}})[0];return t.callback=i,t.facade}var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(n,i){var t=useCallbackRef(null,function(e){return n.forEach(function(o){return assignRef(o,e)})});return useIsomorphicLayoutEffect(function(){var e=currentValues.get(t);if(e){var o=new Set(e),d=new Set(n),p=t.current;o.forEach(function(h){d.has(h)||assignRef(h,null)}),d.forEach(function(h){o.has(h)||assignRef(h,p)})}currentValues.set(t,n)},[n]),t}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function ItoI(n){return n}function innerCreateMedium(n,i){i===void 0&&(i=ItoI);var t=[],e=!1,o={read:function(){if(e)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(d){var p=i(d,e);return t.push(p),function(){t=t.filter(function(h){return h!==p})}},assignSyncMedium:function(d){for(e=!0;t.length;){var p=t;t=[],p.forEach(d)}t={push:function(h){return d(h)},filter:function(){return t}}},assignMedium:function(d){e=!0;var p=[];if(t.length){var h=t;t=[],h.forEach(d),p=t}var y=function(){var $=p;p=[],$.forEach(d)},E=function(){return Promise.resolve().then(y)};E(),t={push:function($){p.push($),E()},filter:function($){return p=p.filter($),t}}}};return o}function createMedium(n,i){return i===void 0&&(i=ItoI),innerCreateMedium(n,i)}function createSidecarMedium(n){n===void 0&&(n={});var i=innerCreateMedium(null);return i.options=__assign$2({async:!0,ssr:!1},n),i}var mediumFocus=createMedium({},function(n){var i=n.target,t=n.currentTarget;return{target:i,currentTarget:t}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0,ssr:typeof document<"u"}),focusScope=reactExports.createContext(void 0),emptyArray=[],FocusLock=reactExports.forwardRef(function n(i,t){var e,o=reactExports.useState(),d=o[0],p=o[1],h=reactExports.useRef(),y=reactExports.useRef(!1),E=reactExports.useRef(null),$=reactExports.useState({}),M=$[1],X=i.children,Z=i.disabled,ye=Z===void 0?!1:Z,be=i.noFocusGuards,we=be===void 0?!1:be,xe=i.persistentFocus,$e=xe===void 0?!1:xe,Ne=i.crossFrame,Fe=Ne===void 0?!0:Ne,De=i.autoFocus,Le=De===void 0?!0:De;i.allowTextSelection;var He=i.group,Ke=i.className,je=i.whiteList,Ve=i.hasPositiveIndices,qe=i.shards,Ye=qe===void 0?emptyArray:qe,et=i.as,Qe=et===void 0?"div":et,ze=i.lockProps,st=ze===void 0?{}:ze,at=i.sideCar,tt=i.returnFocus,pt=tt===void 0?!1:tt,Be=i.focusOptions,Ge=i.onActivation,it=i.onDeactivation,Ue=reactExports.useState({}),Ot=Ue[0],Rt=reactExports.useCallback(function(en){var Gt=en.captureFocusRestore;if(!E.current){var on,Wt=(on=document)==null?void 0:on.activeElement;E.current=Wt,Wt!==document.body&&(E.current=Gt(Wt))}h.current&&Ge&&Ge(h.current),y.current=!0,M()},[Ge]),dt=reactExports.useCallback(function(){y.current=!1,it&&it(h.current),M()},[it]),Tt=reactExports.useCallback(function(en){var Gt=E.current;if(Gt){var on=(typeof Gt=="function"?Gt():Gt)||document.body,Wt=typeof pt=="function"?pt(on):pt;if(Wt){var tn=typeof Wt=="object"?Wt:void 0;E.current=null,en?Promise.resolve().then(function(){return on.focus(tn)}):on.focus(tn)}}},[pt]),ht=reactExports.useCallback(function(en){y.current&&mediumFocus.useMedium(en)},[]),Ft=mediumBlur.useMedium,zt=reactExports.useCallback(function(en){h.current!==en&&(h.current=en,p(en))},[]),$t=_extends$k((e={},e[FOCUS_DISABLED]=ye&&"disabled",e[FOCUS_GROUP]=He,e),st),Yt=we!==!0,ln=Yt&&we!=="tail",Qt=useMergeRefs([t,zt]),kn=reactExports.useMemo(function(){return{observed:h,shards:Ye,enabled:!ye,active:y.current}},[ye,y.current,Ye,d]);return reactExports.createElement(reactExports.Fragment,null,Yt&&[reactExports.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:ye?-1:0,style:hiddenGuard}),Ve?reactExports.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:ye?-1:1,style:hiddenGuard}):null],!ye&&reactExports.createElement(at,{id:Ot,sideCar:mediumSidecar,observed:d,disabled:ye,persistentFocus:$e,crossFrame:Fe,autoFocus:Le,whiteList:je,shards:Ye,onActivation:Rt,onDeactivation:dt,returnFocus:Tt,focusOptions:Be,noFocusGuards:we}),reactExports.createElement(Qe,_extends$k({ref:Qt}
50,$t,{className:Ke,onBlur:Ft,onFocus:ht}),reactExports.createElement(focusScope.Provider,{value:kn},X)),ln&&reactExports.createElement("div",{"data-focus-guard":!0,tabIndex:ye?-1:0,style:hiddenGuard}))});FocusLock.propTypes={};function _setPrototypeOf$8(n,i){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf$8(n,i)}function _inheritsLoose(n,i){n.prototype=Object.create(i.prototype),n.prototype.constructor=n,_setPrototypeOf$8(n,i)}function _typeof$8(n){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$8(n)}function toPrimitive(n,i){if(_typeof$8(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var e=t.call(n,i);if(_typeof$8(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function toPropertyKey(n){var i=toPrimitive(n,"string");return _typeof$8(i)=="symbol"?i:i+""}function _defineProperty$h(n,i,t){return(i=toPropertyKey(i))in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function withSideEffect(n,i){function t(e){return e.displayName||e.name||"Component"}return function(o){var d=[],p;function h(){p=n(d.map(function(E){return E.props})),i(p)}var y=(function(E){_inheritsLoose($,E);function $(){return E.apply(this,arguments)||this}$.peek=function(){return p};var M=$.prototype;return M.componentDidMount=function(){d.push(this),h()},M.componentDidUpdate=function(){h()},M.componentWillUnmount=function(){var Z=d.indexOf(this);d.splice(Z,1),h()},M.render=function(){return React.createElement(o,this.props)},$})(reactExports.PureComponent);return _defineProperty$h(y,"displayName","SideEffect("+t(o)+")"),y}}var toArray$1=function(n){for(var i=Array(n.length),t=0;t<n.length;++t)i[t]=n[t];return i},asArray=function(n){return Array.isArray(n)?n:[n]},getFirst=function(n){return Array.isArray(n)?n[0]:n},isElementHidden=function(n){if(n.nodeType!==Node.ELEMENT_NODE)return!1;var i=window.getComputedStyle(n,null);return!i||!i.getPropertyValue?!1:i.getPropertyValue("display")==="none"||i.getPropertyValue("visibility")==="hidden"},getParentNode=function(n){return n.parentNode&&n.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.parentNode.host:n.parentNode},isTopNode=function(n){return n===document||n&&n.nodeType===Node.DOCUMENT_NODE},isInert=function(n){return n.hasAttribute("inert")},isVisibleUncached=function(n,i){return!n||isTopNode(n)||!isElementHidden(n)&&!isInert(n)&&i(getParentNode(n))},isVisibleCached=function(n,i){var t=n.get(i);if(t!==void 0)return t;var e=isVisibleUncached(i,isVisibleCached.bind(void 0,n));return n.set(i,e),e},isAutoFocusAllowedUncached=function(n,i){return n&&!isTopNode(n)?isAutoFocusAllowed(n)?i(getParentNode(n)):!1:!0},isAutoFocusAllowedCached=function(n,i){var t=n.get(i);if(t!==void 0)return t;var e=isAutoFocusAllowedUncached(i,isAutoFocusAllowedCached.bind(void 0,n));return n.set(i,e),e},getDataset=function(n){return n.dataset},isHTMLButtonElement=function(n){return n.tagName==="BUTTON"},isHTMLInputElement=function(n){return n.tagName==="INPUT"},isRadioElement=function(n){return isHTMLInputElement(n)&&n.type==="radio"},notHiddenInput=function(n){return!((isHTMLInputElement(n)||isHTMLButtonElement(n))&&(n.type==="hidden"||n.disabled))},isAutoFocusAllowed=function(n){var i=n.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(i)},isGuard=function(n){var i;return!!(n&&(!((i=getDataset(n))===null||i===void 0)&&i.focusGuard))},isNotAGuard=function(n){return!isGuard(n)},isDefined=function(n){return!!n},tabSort=function(n,i){var t=Math.max(0,n.tabIndex),e=Math.max(0,i.tabIndex),o=t-e,d=n.index-i.index;if(o){if(!t)return 1;if(!e)return-1}return o||d},getTabIndex=function(n){return n.tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex},orderByTabIndex=function(n,i,t){return toArray$1(n).map(function(e,o){var d=getTabIndex(e);return{node:e,index:o,tabIndex:t&&d===-1?(e.dataset||{}).focusGuard?0:-1:d}}).filter(function(e){return!i||e.tabIndex>=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(n,i){return toArray$1((n.shadowRoot||n).children).reduce(function(t,e){return t.concat(e.matches(i?queryGuardTabbables:queryTabbables)?[e]:[],getFocusablesWithShadowDom(e))},[])},getFocusablesWithIFrame=function(n,i){var t;return n instanceof HTMLIFrameElement&&(!((t=n.contentDocument)===null||t===void 0)&&t.body)?getFocusables([n.contentDocument.body],i):[n]},getFocusables=function(n,i){return n.reduce(function(t,e){var o,d=getFocusablesWithShadowDom(e,i),p=(o=[]).concat.apply(o,d.map(function(h){return getFocusablesWithIFrame(h,i)}));return t.concat(p,e.parentNode?toArray$1(e.parentNode.querySelectorAll(queryTabbables)).filter(function(h){return h===e}):[])},[])},getParentAutofocusables=function(n){var i=n.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$1(i).map(function(t){return getFocusables([t])}).reduce(function(t,e){return t.concat(e)},[])},filterFocusable=function(n,i){return toArray$1(n).filter(function(t){return isVisibleCached(i,t)}).filter(function(t){return notHiddenInput(t)})},filterAutoFocusable=function(n,i){return i===void 0&&(i=new Map),toArray$1(n).filter(function(t){return isAutoFocusAllowedCached(i,t)})},getTabbableNodes=function(n,i,t){return orderByTabIndex(filterFocusable(getFocusables(n,t),i),!0,t)},getFocusableNodes=function(n,i){return orderByTabIndex(filterFocusable(getFocusables(n),i),!1)},parentAutofocusables=function(n,i){return filterFocusable(getParentAutofocusables(n),i)},contains=function(n,i){return n.shadowRoot?contains(n.shadowRoot,i):Object.getPrototypeOf(n).contains!==void 0&&Object.getPrototypeOf(n).contains.call(n,i)?!0:toArray$1(n.children).some(function(t){var e;if(t instanceof HTMLIFrameElement){var o=(e=t.contentDocument)===null||e===void 0?void 0:e.body;return o?contains(o,i):!1}return contains(t,i)})},filterNested=function(n){for(var i=new Set,t=n.length,e=0;e<t;e+=1)for(var o=e+1;o<t;o+=1){var d=n[e].compareDocumentPosition(n[o]);(d&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&i.add(o),(d&Node.DOCUMENT_POSITION_CONTAINS)>0&&i.add(e)}return n.filter(function(p,h){return!i.has(h)})},getTopParent=function(n){return n.parentNode?getTopParent(n.parentNode):n},getAllAffectedNodes=function(n){var i=asArray(n);
50return i.filter(Boolean).reduce(function(t,e){var o=e.getAttribute(FOCUS_GROUP);return t.push.apply(t,o?filterNested(toArray$1(getTopParent(e).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(o,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[e]),t},[])},safeProbe=function(n){try{return n()}catch{return}},getActiveElement=function(n){if(n===void 0&&(n=document),!(!n||!n.activeElement)){var i=n.activeElement;return i.shadowRoot?getActiveElement(i.shadowRoot):i instanceof HTMLIFrameElement&&safeProbe(function(){return i.contentWindow.document})?getActiveElement(i.contentWindow.document):i}},focusInFrame=function(n,i){return n===i},focusInsideIframe=function(n,i){return!!toArray$1(n.querySelectorAll("iframe")).some(function(t){return focusInFrame(t,i)})},focusInside=function(n,i){return i===void 0&&(i=getActiveElement(getFirst(n).ownerDocument)),!i||i.dataset&&i.dataset.focusGuard?!1:getAllAffectedNodes(n).some(function(t){return contains(t,i)||focusInsideIframe(t,i)})},focusIsHidden=function(n){n===void 0&&(n=document);var i=getActiveElement(n);return i?toArray$1(n.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(t){return contains(t,i)}):!1},findSelectedRadio=function(n,i){return i.filter(isRadioElement).filter(function(t){return t.name===n.name}).filter(function(t){return t.checked})[0]||n},correctNode=function(n,i){return isRadioElement(n)&&n.name?findSelectedRadio(n,i):n},correctNodes=function(n){var i=new Set;return n.forEach(function(t){return i.add(correctNode(t,n))}),n.filter(function(t){return i.has(t)})},pickFirstFocus=function(n){return n[0]&&n.length>1?correctNode(n[0],n):n[0]},pickFocusable=function(n,i){return n.indexOf(correctNode(i,n))},NEW_FOCUS="NEW_FOCUS",newFocus=function(n,i,t,e,o){var d=n.length,p=n[0],h=n[d-1],y=isGuard(e);if(!(e&&n.indexOf(e)>=0)){var E=e!==void 0?t.indexOf(e):-1,$=o?t.indexOf(o):E,M=o?n.indexOf(o):-1;if(E===-1)return M!==-1?M:NEW_FOCUS;if(M===-1)return NEW_FOCUS;var X=E-$,Z=t.indexOf(p),ye=t.indexOf(h),be=correctNodes(t),we=e!==void 0?be.indexOf(e):-1,xe=we-(o?be.indexOf(o):E);if(!X&&M>=0||i.length===0)return M;var $e=pickFocusable(n,i[0]),Ne=pickFocusable(n,i[i.length-1]);if(E<=Z&&y&&Math.abs(X)>1)return Ne;if(E>=ye&&y&&Math.abs(X)>1)return $e;if(X&&Math.abs(xe)>1)return M;if(E<=Z)return Ne;if(E>ye)return $e;if(X)return Math.abs(X)>1?M:(d+M+X)%d}},findAutoFocused=function(n){return function(i){var t,e=(t=getDataset(i))===null||t===void 0?void 0:t.autofocus;return i.autofocus||e!==void 0&&e!=="false"||n.indexOf(i)>=0}},pickAutofocus=function(n,i,t){var e=n.map(function(d){var p=d.node;return p}),o=filterAutoFocusable(e.filter(findAutoFocused(t)));return o&&o.length?pickFirstFocus(o):pickFirstFocus(filterAutoFocusable(i))},getParents=function(n,i){return i===void 0&&(i=[]),i.push(n),n.parentNode&&getParents(n.parentNode.host||n.parentNode,i),i},getCommonParent=function(n,i){for(var t=getParents(n),e=getParents(i),o=0;o<t.length;o+=1){var d=t[o];if(e.indexOf(d)>=0)return d}return!1},getTopCommonParent=function(n,i,t){var e=asArray(n),o=asArray(i),d=e[0],p=!1;
50return o.filter(Boolean).forEach(function(h){p=getCommonParent(p||h,h)||p,t.filter(Boolean).forEach(function(y){var E=getCommonParent(d,y);E&&(!p||contains(E,p)?p=E:p=getCommonParent(E,p))})}),p},allParentAutofocusables=function(n,i){return n.reduce(function(t,e){return t.concat(parentAutofocusables(e,i))},[])},reorderNodes=function(n,i){var t=new Map;return i.forEach(function(e){return t.set(e.node,e)}),n.map(function(e){return t.get(e)}).filter(isDefined)},focusSolver=function(n,i){var t=getActiveElement(asArray(n).length>0?document:getFirst(n).ownerDocument),e=getAllAffectedNodes(n).filter(isNotAGuard),o=getTopCommonParent(t||n,n,e),d=new Map,p=getFocusableNodes(e,d),h=p.filter(function(ye){var be=ye.node;return isNotAGuard(be)});if(h[0]){var y=getFocusableNodes([o],d).map(function(ye){var be=ye.node;return be}),E=reorderNodes(y,h),$=E.map(function(ye){var be=ye.node;return be}),M=E.filter(function(ye){var be=ye.tabIndex;return be>=0}).map(function(ye){var be=ye.node;return be}),X=newFocus($,M,y,t,i);if(X===NEW_FOCUS){var Z=pickAutofocus(p,M,allParentAutofocusables(e,d))||pickAutofocus(p,$,allParentAutofocusables(e,d));if(Z)return{node:Z};console.warn("focus-lock: cannot find any node to move focus into");return}return X===void 0?X:E[X]}},expandFocusableNodes=function(n){var i=getAllAffectedNodes(n).filter(isNotAGuard),t=getTopCommonParent(n,n,i),e=orderByTabIndex(getFocusables([t],!0),!0,!0),o=getFocusables(i,!1);return e.map(function(d){var p=d.node,h=d.index;return{node:p,index:h,lockItem:o.indexOf(p)>=0,guard:isGuard(p)}})},focusOn=function(n,i){n&&("focus"in n&&n.focus(i),"contentWindow"in n&&n.contentWindow&&n.c
50ontentWindow.focus())},guardCount=0,lockDisabled=!1,moveFocusInside=function(n,i,t){t===void 0&&(t={});var e=focusSolver(n,i);if(!lockDisabled&&e){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(e.node,t.focusOptions),guardCount--}};function weakRef(n){if(!n)return null;if(typeof WeakRef>"u")return function(){return n||null};var i=n?new WeakRef(n):null;return function(){return i?.deref()||null}}var recordElementLocation=function(n){if(!n)return null;for(var i=[],t=n;t&&t!==document.body;)i.push({current:weakRef(t),parent:weakRef(t.parentElement),left:weakRef(t.previousElementSibling),right:weakRef(t.nextElementSibling)}),t=t.parentElement;return{element:weakRef(n),stack:i,ownerDocument:n.ownerDocument}},restoreFocusTo=function(n){var i,t,e,o,d;if(n)for(var p=n.stack,h=n.ownerDocument,y=new Map,E=0,$=p;E<$.length;E++){var M=$[E],X=(i=M.parent)===null||i===void 0?void 0:i.call(M);if(X&&h.contains(X)){for(var Z=(t=M.left)===null||t===void 0?void 0:t.call(M),ye=M.current(),be=X.contains(ye)?ye:void 0,we=(e=M.right)===null||e===void 0?void 0:e.call(M),xe=getTabbableNodes([X],y),$e=(d=(o=be??Z?.nextElementSibling)!==null&&o!==void 0?o:we)!==null&&d!==void 0?d:Z;$e;){for(var Ne=0,Fe=xe;Ne<Fe.length;Ne++){var De=Fe[Ne];if($e?.contains(De.node))return De.node}$e=$e.nextElementSibling}if(xe.length)return xe[0].node}}},captureFocusRestore=function(n){var i=recordElementLocation(n);return function(){return restoreFocusTo(i)}},getRelativeFocusable=function(n,i,t){if(!n||!i)return console.error("no element or scope given"),{};var e=asArray(i);if(e.every(function(p){return!contains(p,n)}))return console.error("Active element is not contained in the scope"),{};var o=t?getTabbableNodes(e,new Map):getFocusableNodes(e,new Map),d=o.findIndex(function(p){var h=p.node;return h===n});if(d!==-1)return{prev:o[d-1],next:o[d+1],first:o[0],last:o[o.length-1]}},getBoundary=function(n,i){var t=i?getTabbableNodes(asArray(n),new Map):getFocusableNodes(asArray(n),new Map);return{first:t[0],last:t[t.length-1]}},defaultOptions=function(n){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},n)},moveFocus=function(n,i,t){i===void 0&&(i={});var e=defaultOptions(i),o=getRelativeFocusable(n,e.scope,e.onlyTabbable);if(o){var d=t(o,e.cycle);d&&focusOn(d.node,e.focusOptions)}},focusNextElement=function(n,i){i===void 0&&(i={}),moveFocus(n,i,function(t,e){var o=t.next,d=t.first;return o||e&&d})},focusPrevElement=function(n,i){i===void 0&&(i={}),moveFocus(n,i,function(t,e){var o=t.prev,d=t.last;return o||e&&d})},pickBoundary=function(n,i,t){var e,o=getBoundary(n,(e=i.onlyTabbable)!==null&&e!==void 0?e:!0),d=o[t];d&&focusOn(d.node,i.focusOptions)},focusFirstElement=function(n,i){i===void 0&&(i={}),pickBoundary(n,i,"first")},focusLastElement=function(n,i){i===void 0&&(i={}),pickBoundary(n,i,"last")};function deferAction(n){setTimeout(n,1)}var inlineProp=function n(i,t){var e={};return e[i]=t,e},extractRef=function n(i){return i&&"current"in i?i.current:i},focusOnBody=function n(){return document&&document.activeElement===document.body},isFreeFocus=function n(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,tryRestoreFocus=function n(){return null},lastPortaledElement=null,focusWasOutsideWindow=!1,windowFocused=!1,defaultWhitelist=function n(){return!0},focusWhitelisted=function n(i){return(lastActiveTrap.whiteList||defaultWhitelist)(i)},recordPortal=function n(i,t){lastPortaledElement={observerNode:i,portaledElement:t}},focusIsPortaledPair=function n(i){return lastPortaledElement&&lastPortaledElement.portaledElement===i};function autoGuard(n,i,t,e){var o=null,d=n;do{var p=e[d];if(p.guard)p.node.dataset.focusAutoGuard&&(o=p);else if(p.lockItem){if(d!==n)return;o=null}else break}while((d+=t)!==i);o&&(o.node.tabIndex=0)}var focusWasOutside=function n(i){return i?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function n(i,t,e){return t&&(t.host===i&&(!t.activeElement||e.contains(t.activeElement))||t.parentNode&&n(i,t.parentNode,e))},withinHost=function n(i,t){return t.some(function(e){return checkInHost(i,e,e)})},getNodeFocusables=function n(i){return getFocusableNodes(i,new Map)},isNotFocusable=function n(i){return!getNodeFocusables([i.parentNode]).some(function(t){return t.node===i})},activateTrap=function n(){var i=!1;if(lastActiveTrap){var t=lastActiveTrap,e=t.observed,o=t.persistentFocus,d=t.autoF
50ocus,p=t.shards,h=t.crossFrame,y=t.focusOptions,E=t.noFocusGuards,$=e||lastPortaledElement&&lastPortaledElement.portaledElement;if(focusOnBody()&&lastActiveFocus&&(!document.body.contains(lastActiveFocus)||isNotFocusable(lastActiveFocus))){lastActiveFocus=null;var M=tryRestoreFocus();M&&M.focus()}var X=document&&document.activeElement;if($){var Z=[$].concat(p.map(extractRef).filter(Boolean)),ye=function(){if(!focusWasOutside(h)||!E||!lastActiveFocus||windowFocused)return!1;var Ne=getNodeFocusables(Z),Fe=Ne.findIndex(function(De){var Le=De.node;return Le===lastActiveFocus});return Fe===0||Fe===Ne.length-1};if((!X||focusWhitelisted(X))&&(o||ye()||!isFreeFocus()||!lastActiveFocus&&d)&&($&&!(focusInside(Z)||X&&withinHost(X,Z)||focusIsPortaledPair(X))&&(document&&!lastActiveFocus&&X&&!d?(X.blur&&X.blur(),document.body.focus()):(i=moveFocusInside(Z,lastActiveFocus,{focusOptions:y}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement,tryRestoreFocus=captureFocusRestore(lastActiveFocus)),document&&X!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var be=document&&document.activeElement,we=expandFocusableNodes(Z),xe=we.map(function($e){var Ne=$e.node;return Ne}).indexOf(be);xe>-1&&(we.filter(function($e){var Ne=$e.guard,Fe=$e.node;return Ne&&Fe.dataset.focusAutoGuard}).forEach(function($e){var Ne=$e.node;return Ne.removeAttribute("tabIndex")}),autoGuard(xe,we.length,1,we),autoGuard(xe,-1,-1,we))}}}return i},onTrap=function n(i){activateTrap()&&i&&(i.stopPropagation(),i.preventDefault())},onBlur=function n(){return deferAction(activateTrap)},onFocus=function n(i){var t=i.target,e=i.currentTarget;e.contains(t)||recordPortal(e,t)},FocusWatcher=function n(){return null},onWindowFocus=function n(){windowFocused=!0},onWindowBlur=function n(){windowFocused=!1,focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function n(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("focus",onWindowFocus),window.addEventListener("blur",onWindowBlur)},detachHandler=function n(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("focus",onWindowFocus),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(n){return n.filter(function(i){var t=i.disabled;return!t})}var focusLockAPI={moveFocusInside,focusInside,focusNextElement,focusPrevElement,focusFirstElement,focusLastElement,captureFocusRestore};function handleStateChangeOnClient(n){var i=n.slice(-1)[0];i&&!lastActiveTrap&&attachHandler();var t=lastActiveTrap,e=t&&i&&i.id===t.id;lastActiveTrap=i,t&&!e&&(t.onDeactivation(),n.filter(function(o){var d=o.id;return d===t.id}).length||t.returnFocus(!i)),i?(lastActiveFocus=null,(!e||t.observed!==i.observed)&&i.onActivation(focusLockAPI),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function(n){return n(focusLockAPI)});const FocusTrap=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function n(i,t){return reactExports.createElement(FocusLock,_extends$k({sideCar:FocusTrap,ref:t},i))}),_ref=FocusLock.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose$b(_ref,["sideCar"]);FocusLockCombination.propTypes={};var useFocusInside=function n(i){reactExports.useEffect(function(){var t=!0;return mediumEffect.useMedium(function(e){var o=i&&i.current;t&&o&&(e.focusInside(o)||e.moveFocusInside(o,null))}),function(){t=!1}},[i])};function MoveFocusInside(n){var i=n.disabled,t=i===void 0?!1:i,e=n.className,o=n.children,d=reactExports.useRef(null);return useFocusInside(t?void 0:d),reactExports.createElement("div",_extends$k({},inlineProp(FOCUS_AUTO,!t),{ref:d,className:e}),o)}MoveFocusInside.propTypes={};var SIZE={default:"default",full:"full",auto:"auto"},SIZE_WIDTHS={default:"500px",full:"100%",auto:"auto"},ROLE={dialog:"dialog"},CLOSE_SOURCE={closeButton:"closeButton",backdrop:"backdrop",escape:"escape"};function ownKeys$f(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$e(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
50i%2?ownKeys$f(Object(t),!0).forEach(function(e){_defineProperty$g(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$f(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$g(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function getSizeStyles(n){var i={maxWidth:"100%",width:null};return typeof n=="number"?i.width="".concat(n,"px"):SIZE[n]?i.width=SIZE_WIDTHS[n]:typeof n=="string"&&(i.width=n),n===SIZE.full&&(i.alignSelf="stretch"),i}var Root$2=styled$1("div",function(n){var i=n.$isOpen;return{position:"fixed",overflow:"auto",right:0,bottom:0,top:0,left:0,pointerEvents:i?"auto":"none"}});Root$2.displayName="Root";Root$2.displayName="Root";var DialogContainer=styled$1("div",function(n){var i=n.$animate,t=n.$isOpen,e=n.$isVisible,o=n.$theme,d={transitionProperty:"opacity",transitionDuration:o.animation.timing400,transitionTimingFunction:o.animation.easeOutCurve};return _objectSpread$e({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",minHeight:"100%",userSelect:"none",pointerEvents:"auto",backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",opacity:e&&t?1:0},i?d:null)});DialogContainer.displayName="DialogContainer";DialogContainer.displayName="DialogContainer";var Dialog$2=styled$1("div",function(n){var i=n.$animate,t=n.$isOpen,e=n.$isVisible,o=n.$size,d=n.$theme;return _objectSpread$e(_objectSpread$e(_objectSpread$e({position:"relative",backgroundColor:d.colors.backgroundPrimary,borderTopLeftRadius:d.borders.radius500,borderTopRightRadius:d.borders.radius500,borderBottomRightRadius:d.borders.radius500,borderBottomLeftRadius:d.borders.radius500,marginLeft:d.sizing.scale600,marginTop:d.sizing.scale600,marginRight:d.sizing.scale600,marginBottom:d.sizing.scale600},getSizeStyles(o)),{},{opacity:e&&t?1:0,transform:e?"translateY(0)":"translateY(20px)"},i?{transitionProperty:"opacity, transform",transitionDuration:d.animation.timing400,transitionTimingFunction:d.animation.easeOutCurve}:null),{},{userSelect:"text",pointerEvents:t?"all":"none",":focus":{outline:"none"}})});Dialog$2.displayName="Dialog";Dialog$2.displayName="Dialog";var Close=styled$1("button",function(n){var i,t=n.$theme,e=n.$isFocusVisible,o=t.direction==="rtl"?"left":"right";return i={background:"transparent",outline:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,color:t.colors.modalCloseColor,transitionProperty:"color, border-color",transitionDuration:t.animation.timing200,borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",borderBottomColor:"transparent",":hover":{color:t.colors.modalCloseColorHover},":focus":{outline:e?"3px solid ".concat(t.colors.accent):"none"},position:"absolute",top:t.sizing.scale500},_defineProperty$g(i,o,t.sizing.scale500),_defineProperty$g(i,"width",t.sizing.scale800),_defineProperty$g(i,"height",t.sizing.scale800),_defineProperty$g(i,"display","flex"),_defineProperty$g(i,"justifyContent","center"),_defineProperty$g(i,"alignItems","center"),_defineProperty$g(i,"cursor","pointer"),i});Close.displayName="Close";Close.displayName="Close";var ModalHeader$1=styled$1("div",function(n){var i,t=n.$theme,e=t.direction==="rtl"?"marginRight":"marginLeft",o=t.direction==="rtl"?"marginLeft":"marginRight";return _objectSpread$e(_objectSpread$e({},t.typography.font550),{},(i={color:t.colors.contentPrimary,marginTop:t.sizing.scale900,marginBottom:t.sizing.scale600},_defineProperty$g(i,e,t.sizing.scale800),_defineProperty$g(i,o,t.sizing.scale900),i))});ModalHeader$1.displayName="ModalHeader";ModalHeader$1.displayName="ModalHeader";var ModalBody$2=styled$1("div",function(n){var i=n.$theme;return _objectSpread$e(_objectSpread$e({},i.typography.font200),{},{color:i.colors.contentSecondary,marginTop:i.sizing.scale600,marginLeft:i.sizing.scale800,marginRight:i.sizing.scale800,marginBottom:i.sizing.scale700})});
50ModalBody$2.displayName="ModalBody";ModalBody$2.displayName="ModalBody";var ModalFooter$1=styled$1("div",function(n){var i=n.$theme;return _objectSpread$e(_objectSpread$e({},i.typography.font200),{},{marginTop:i.sizing.scale700,marginLeft:i.sizing.scale800,marginRight:i.sizing.scale800,paddingTop:i.sizing.scale500,paddingBottom:i.sizing.scale500,textAlign:i.direction==="rtl"?"left":"right"})});ModalFooter$1.displayName="ModalFooter";ModalFooter$1.displayName="ModalFooter";function CloseIcon(){return reactExports.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10",style:{stroke:"currentColor"},xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("path",{d:"M9 1L5 5M1 9L5 5M5 5L1 1M5 5L9 9",strokeWidth:"2",strokeLinecap:"round"}))}function _typeof$7(n){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$7(n)}function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$d.apply(this,arguments)}function _slicedToArray$7(n,i){return _arrayWithHoles$7(n)||_iterableToArrayLimit$7(n,i)||_unsupportedIterableToArray$7(n,i)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$7(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$7(n,i)}}function _arrayLikeToArray$7(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$7(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$7(n){if(Array.isArray(n))return n}function _classCallCheck$8(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$8(n,i,t){return i&&_defineProperties$8(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$8(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$7(n,i)}function _setPrototypeOf$7(n,i){return _setPrototypeOf$7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$7(n,i)}function _createSuper$8(n){var i=_isNativeReflectConstruct$8();return function(){var e=_getPrototypeOf$8(n),o;if(i){var d=_getPrototypeOf$8(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$8(this,o)}}function _possibleConstructorReturn$8(n,i){if(i&&(_typeof$7(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(n)}function _assertThisInitialized$8(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$8(n){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$8(n)}function _defineProperty$f(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Modal$1=(function(n){_inherits$8(t,n);var i=_createSuper$8(t);function t(){var e;_classCallCheck$8(this,t);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return e=i.call.apply(i,[this].concat(d)),_defineProperty$f(_assertThisInitialized$8(e),"animateOutTimer",void 0),_defineProperty$f(_assertThisInitialized$8(e),"animateStartTimer",void 0),_defineProperty$f(_assertThisInitialized$8(e),"dialogContainerRef",reactExports.createRef()),_defineProperty$f(_assertThisInitialized$8(e),"lastFocus",null),_defineProperty$f(_assertThisInitialized$8(e),"lastMountNodeOverflowStyle",null),_defineProperty$f(_assertThisInitialized$8(e),"rootRef",reactExports.createRef()),_defineProperty$f(_assertThisInitialized$8(e),"state",{isVisible:!1,mounted:!1,isFocusVisible:!1}),_defineProperty$f(_assertThisInitialized$8(e),"handleFocus",function(h){isFocusVisible(h)&&e.setState({isFocusVisible:!0})}),_defineProperty$f(_assertThisInitialized$8(e),"handleBlur",function(h){e.state.isFocusVisible!==!1&&e.setState({isFocusVisible:!1})}),_defineProperty$f(_assertThisInitialized$8(e),"onEscape",function(){e.props.closeable&&e.triggerClose(CLOSE_SOURCE.escape)}),_defineProperty$f(_assertThisInitialized$8(e),"onDocumentClick",function(h){h.target&&h.target instanceof HTMLElement&&h.target.contains(e.dialogContainerRef.current)&&e.onBackdropClick()}),_defineProperty$f(_assertThisInitialized$8(e),"onBackdropClick",function(){e.props.closeable&&e.triggerClose(CLOSE_SOURCE.backdrop)}),_defineProperty$f(_assertThisInitialized$8(e),"onCloseClick",function(){e.triggerClose(CLOSE_SOURCE.closeButton)}),_defineProperty$f(_assertThisInitialized$8(e),"animateOutComplete",function(){e.setState({isVisible:!1})}),e}
51return _createClass$8(t,[{key:"componentDidMount",value:function(){this.setState({mounted:!0})}},{key:"componentWillUnmount",value:function(){this.resetMountNodeScroll(),this.clearTimers()}},{key:"componentDidUpdate",value:function(o,d){var p=this.props.isOpen;(p!==o.isOpen||p&&this.state.mounted&&!d.mounted)&&(p?this.didOpen():this.didClose())}},{key:"disableMountNodeScroll",value:function(){var o=this.getMountNode();this.lastMountNodeOverflowStyle=o.style.overflow||"",o.style.overflow="hidden"}},{key:"resetMountNodeScroll",value:function(){var o=this.getMountNode(),d=this.lastMountNodeOverflowStyle;o&&d!==null&&(o.style.overflow==="hidden"&&(o.style.overflow=d||""),this.lastMountNodeOverflowStyle=null)}},{key:"clearTimers",value:function(){this.animateOutTimer&&clearTimeout(this.animateOutTimer),this.animateStartTimer&&cancelAnimationFrame(this.animateStartTimer)}},{key:"didOpen",value:function(){var o=this,d=this.rootRef.current;d&&(d.scrollTop=0),this.clearTimers(),this.disableMountNodeScroll(),this.animateStartTimer=requestAnimationFrame(function(){o.setState({isVisible:!0})})}},{key:"didClose",value:function(){this.resetMountNodeScroll(),this.animateOutTimer=setTimeout(this.animateOutComplete,500)}},{key:"triggerClose",value:function(o){this.props.onClose&&o&&this.props.onClose({closeSource:o})}},{key:"getSharedProps",value:function(){var o=this.props,d=o.animate,p=o.isOpen,h=o.size,y=o.role,E=o.closeable;return{$animate:d,$isVisible:this.state.isVisible,$isOpen:!!p,$size:h,$role:y,$closeable:!!E,$isFocusVisible:this.state.isFocusVisible}}},{key:"getMountNode",value:function(){var o=this.props.mountNode;return o||document.body}},{key:"getChildren",value:function(){var o=this.props.children;return typeof o=="function"?o():o}},{key:"renderModal",value:function(){var o=this,d=this.props,p=d.overrides,h=p===void 0?{}:p,y=d.closeable,E=d.role,$=d.autoFocus,M=d.focusLock,X=d.returnFocus,Z=h.Root,ye=h.Dialog,be=h.DialogContainer,we=h.Close,xe=getOverrides(Z,Root$2),$e=_slicedToArray$7(xe,2),Ne=$e[0],Fe=$e[1],De=getOverrides(be,DialogContainer),Le=_slicedToArray$7(De,2),He=Le[0],Ke=Le[1],je=getOverrides(ye,Dialog$2),Ve=_slicedToArray$7(je,2),qe=Ve[0],Ye=Ve[1],et=getOverrides(we,Close),Qe=_slicedToArray$7(et,2),ze=Qe[0],st=Qe[1],at=this.getSharedProps(),tt=this.getChildren();return reactExports.createElement(LocaleContext.Consumer,null,function(pt){return reactExports.createElement(FocusLockCombination,{disabled:!M,crossFrame:!1,returnFocus:X,autoFocus:$},reactExports.createElement(Ne,_extends$d({"data-baseweb":"modal",ref:o.rootRef},at,Fe),reactExports.createElement(He,_extends$d({ref:o.dialogContainerRef},at,Ke),reactExports.createElement(qe,_extends$d({tabIndex:-1,"aria-modal":!0,"aria-label":"dialog",role:E},at,Ye),tt,y?reactExports.createElement(ze,_extends$d({"aria-label":pt.modal.close,onClick:o.onCloseClick},at,st,{onFocus:forkFocus(st,o.handleFocus),onBlur:forkBlur(st,o.handleBlur)}),reactExports.createElement(CloseIcon,null)):null))))})}},{key:"render",value:function(){return!this.state.mounted||!this.props.isOpen&&!this.state.isVisible?null:reactExports.createElement(Layer,{onEscape:this.onEscape,onDocumentClick:this.onDocumentClick,mountNode:this.props.mountNode},this.renderModal())}}]),t})(reactExports.Component);_defineProperty$f(Modal$1,"defaultProps",{animate:!0,autoFocus:!0,focusLock:!0,returnFocus:!0,closeable:!0,name:"dialog",isOpen:!1,overrides:{},role:ROLE.dialog,size:SIZE.default});var BaseButtonKind=(function(n){return n.PRIMARY="primary",n.SECONDARY="secondary",n.TERTIARY="tertiary",n.GHOST="ghost",n.BORDERLESS_ICON="borderlessIcon",n.BORDERLESS_ICON_ACTIVE="borderlessIconActive",n.MINIMAL="minimal",n.PRIMARY_FORM_SUBMIT="primaryFormSubmit",n.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",n.TERTIARY_FORM_SUBMIT="tertiaryFormSubmit",n.HEADER_BUTTON="header",n.HEADER_NO_PADDING="headerNoPadding",n.ELEMENT_TOOLBAR="elementToolbar",n.PILLS="pills",n.PILLS_ACTIVE="pillsActive",n.SEGMENTED_CONTROL="segmented_control",n.SEGMENTED_CONTROL_ACTIVE="segmented_controlActive",n})({}),BaseButtonSize=(function(n){return n.XSMALL="xsmall",n.SMALL="small",n.MEDIUM="medium",n.LARGE="large",n})({});function getSizeStyle(n,i){switch(n){case"xsmall":return{padding:`${i.spacing.twoXS} ${i.spacing.sm}`,fontSize:i.fontSizes.sm};case"small":return{padding:`${i.spacing.twoXS} ${i.spacing.md}`};case"large":return{padding:`${i.spacing.md} ${i.spacing.md}`};default:return{padding:`${i.spacing.xs} ${i.spacing.md}`}}}const StyledBaseButton=styled("button",{target:"etjibo40"})(({containerWidth:n,size:i,theme:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:t.fontWeights.normal,padding:`${t.spacing.xs} ${t.spacing.md}`,borderRadius:t.radii.button,minHeight:t.sizes.minElementHeight,margin:t.spacing.none,lineHeight:t.lineHeights.base,textTransform:"none",fontSize:"inherit",fontFamily:"inherit",color:"inherit",width:n?"100%":"auto",cursor:"pointer",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:t.shadows.focusRing},...getSizeStyle(i,t)})),StyledPrimaryButton=styled(StyledBaseButton,{target:"etjibo41"})(({theme:n})=>({backgroundColor:n.colors.primary,color:n.colors.white,border:`${n.sizes.borderWidth} solid ${n.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:darken(n.colors.primary,.15),borderColor:darken(n.colors.primary,.15)},"&:active":{backgroundColor:n.colors.primary,borderColor:darken(n.colors.primary,.15)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledSecondaryButton=styled(StyledBaseButton,{target:"etjibo42"})(({theme:n})=>({backgroundColor:n.colors.lightenedBg05,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledTertiaryButton=styled(StyledBaseButton,{target:"etjibo43"})(({theme:n})=>({padding:n.spacing.none,backgroundColor:n.colors.transparent,border:"none","&:hover, &:focus-visible":{color:n.colors.primary},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:darken(n.colors.primary,.25)},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledGhostButton=styled(StyledBaseButton,{target:"etjibo44"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:`${n.sizes.borderWidth} solid ${n.colors.transparent}`,"&:hover, &:focus-visible":{borderColor:n.colors.transparent,color:n.colors.primary},"&:active":{color:n.colors.primary,borderColor:n.colors.transparent,backgroundColor:n.colors.transparent},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledMinimalButton=styled(StyledBaseButton,{target:"etjibo45"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",boxShadow:"none",padding:n.spacing.none,"&:hover, &:active, &:focus-visible":{color:n.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledPrimaryFormSubmitButton=styled(StyledPrimaryButton,{target:"etjibo46"})(),StyledSecondaryFormSubmitButton=styled(StyledSecondaryButton,{target:"etjibo47"})(),StyledTertiaryFormSubmitButton=styled(StyledTertiaryButton,{target:"etjibo48"})(),StyledButtonGroupBaseButton=styled(StyledBaseButton,{target:"etjibo49"})(({theme:n})=>({background:n.colors.bgColor,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.base,fontWeight:n.fontWeights.normal,height:n.sizes.largeLogoHeight,minHeight:n.sizes.largeLogoHeight,maxWidth:n.sizes.contentMaxWidth,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.transparent,color:n.colors.fadedText40,cursor:"not-allowed"},"& div":{textOverflow:"ellipsis",overflow:"hidden"},"& p":{textOverflow:"ellipsis",overflow:"hidden"}})),StyledPillsButton=styled(StyledButtonGroupBaseButton,{target:"etjibo410"}
51)(({theme:n,containerWidth:i})=>({borderRadius:n.radii.full,padding:`${n.spacing.twoXS} ${n.spacing.md}`,flex:i?"1 1 fit-content":""})),StyledPillsButtonActive=styled(StyledPillsButton,{target:"etjibo411"})(({theme:n})=>({backgroundColor:transparentize(n.colors.primary,.9),borderColor:n.colors.primary,color:n.colors.primary,"&:hover, &:focus-visible":{backgroundColor:transparentize(n.colors.primary,.8),borderColor:n.colors.primary,color:n.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.fadedText05,color:n.colors.fadedText40,cursor:"not-allowed"}})),SEGMENTED_CONTROL_ACTIVE_ENABLED="button[kind='segmented_controlActive']:not(:disabled)",SEGMENTED_CONTROL_INACTIVE_ENABLED="button[kind='segmented_control']:not(:disabled)",SEGMENTED_CONTROL_INTERACTIVE_ENABLED="button[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)",SEGMENTED_CONTROL_NEUTRAL_ENABLED="button[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible)",StyledSegmentedControlButton=styled(StyledButtonGroupBaseButton,{target:"etjibo412"})(({theme:n,containerWidth:i})=>({padding:`${n.spacing.twoXS} ${n.spacing.lg}`,borderRadius:"0",flex:i?"1 1 fit-content":"",maxWidth:"100%",marginRight:`-${n.sizes.borderWidth}`,"&:first-child":{borderTopLeftRadius:n.radii.button,borderBottomLeftRadius:n.radii.button},"&:last-child":{borderTopRightRadius:n.radii.button,borderBottomRightRadius:n.radii.button,marginRight:n.spacing.none},"&[kind='segmented_controlActive']:not(:disabled), &[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible)":{zIndex:n.zIndices.priority},[`&[kind='segmented_controlActive']:not(:disabled) + ${SEGMENTED_CONTROL_INACTIVE_ENABLED}`]:{borderLeftColor:n.colors.transparent},[`&[kind='segmented_control']:not(:disabled):has(+ ${SEGMENTED_CONTROL_ACTIVE_ENABLED})`]:{borderRightColor:n.colors.transparent},[`&[kind='segmented_control']:not(:disabled):is(:hover, :focus-visible) + ${SEGMENTED_CONTROL_NEUTRAL_ENABLED}`]:{borderLeftColor:n.colors.transparent},[`&[kind='segmented_control']:not(:disabled):not(:hover):not(:focus-visible):has(+ ${SEGMENTED_CONTROL_INTERACTIVE_ENABLED})`]:{borderRightColor:n.colors.transparent},"&:focus-visible":{zIndex:n.zIndices.priority}})),StyledSegmentedControlButtonActive=styled(StyledSegmentedControlButton,{target:"etjibo413"})(({theme:n})=>({backgroundColor:transparentize(n.colors.primary,.9),borderColor:n.colors.primary,color:n.colors.primary,zIndex:n.zIndices.priority,"&:hover, &:focus-visible":{backgroundColor:transparentize(n.colors.primary,.8)},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:n.colors.borderColor,backgroundColor:n.colors.fadedText05,color:n.colors.fadedText40,cursor:"not-allowed"}})),StyledHeaderButton=styled(StyledBaseButton,{target:"etjibo414"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",padding:`0 ${n.spacing.sm}`,fontSize:n.fontSizes.sm,marginLeft:n.spacing.threeXS,marginRight:n.spacing.threeXS,lineHeight:n.lineHeights.none,minWidth:n.sizes.headerItemHeight,minHeight:n.sizes.headerItemHeight,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRingMuted},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledHeaderNoPaddingButton=styled(StyledHeaderButton,{target:"etjibo415"})(()=>({padding:0})),StyledBorderlessIconButton=styled(StyledBaseButton,{target:"etjibo416"})(({size:n,theme:i})=>{const t={xsmall:i.spacing.threeXS,small:i.spacing.twoXS,medium:i.spacing.md,large:i.spacing.lg};return{backgroundColor:i.colors.transparent,color:i.colors.fadedText60,padding:t[n],marginLeft:i.spacing.none,marginRight:i.spacing.none,flex:"0 0 fit-content",border:"none",display:"flex",minHeight:"unset","&:focus":{boxShadow:"none",outline:"none"},"&:hover":{color:i.colors.bodyText},"&:disabled, &:disabled:hover, &:disabled:active":{color:i.colors.fadedText10,cursor:"not-allowed",img:{opacity:.4}}}}),StyledBorderlessIconButtonActive=styled(StyledBorderlessIconButton,{target:"etjibo417"})(({theme:n})=>({color:n.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText40}})),StyledTooltipNormal=styled("div",{target:"etjibo418"})(({theme:n})=>({display:"block",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"none"}})),StyledTooltipMobile=styled("div",{target:"etjibo419"})(({theme:n})=>({display:"none",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"block"}})),StyledElementToolbarButton=styled(StyledBaseButton,{target:"etjibo420"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",padding:n.spacing.twoXS,fontSize:n.fontSizes.tw
51oSm,marginLeft:n.spacing.none,marginRight:n.spacing.none,display:"flex",gap:n.spacing.xs,alignItems:"center",minHeight:"unset",lineHeight:n.iconSizes.md,width:"auto","&:focus":{outline:"none",border:"none",boxShadow:"none"},"&:focus-visible":{outline:"none",border:"none",boxShadow:"none",backgroundColor:n.colors.darkenedBgMix25},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:n.colors.gray30,borderColor:n.colors.transparent,color:n.colors.gray60}})),StyledButtonGroup=styled("div",{target:"etjibo421"})(({containerWidth:n})=>({width:n?"100%":"auto"})),StyledButtonLabel=styled("div",{target:"etjibo422"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),StyledButtonMainLabel=styled("span",{target:"etjibo423"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:n.spacing.sm,minWidth:0})),StyledButtonShortcut=styled("kbd",{target:"etjibo424"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:n.fontSizes.sm,opacity:.6,fontFamily:"inherit",lineHeight:n.lineHeights.tight,letterSpacing:"0.01em"})),BaseButton=reactExports.forwardRef(function n(i,t){const{kind:e,size:o,disabled:d,onClick:p,containerWidth:h,children:y,autoFocus:E}=i;let $=StyledPrimaryButton;return e===BaseButtonKind.SECONDARY?$=StyledSecondaryButton:e===BaseButtonKind.TERTIARY?$=StyledTertiaryButton:e===BaseButtonKind.GHOST?$=StyledGhostButton:e===BaseButtonKind.PILLS?$=StyledPillsButton:e===BaseButtonKind.PILLS_ACTIVE?$=StyledPillsButtonActive:e===BaseButtonKind.SEGMENTED_CONTROL?$=StyledSegmentedControlButton:e===BaseButtonKind.SEGMENTED_CONTROL_ACTIVE?$=StyledSegmentedControlButtonActive:e===BaseButtonKind.BORDERLESS_ICON?$=StyledBorderlessIconButton:e===BaseButtonKind.BORDERLESS_ICON_ACTIVE?$=StyledBorderlessIconButtonActive:e===BaseButtonKind.MINIMAL?$=StyledMinimalButton:e===BaseButtonKind.PRIMARY_FORM_SUBMIT?$=StyledPrimaryFormSubmitButton:e===BaseButtonKind.SECONDARY_FORM_SUBMIT?$=StyledSecondaryFormSubmitButton:e===BaseButtonKind.TERTIARY_FORM_SUBMIT?$=StyledTertiaryFormSubmitButton:e===BaseButtonKind.HEADER_BUTTON?$=StyledHeaderButton:e===BaseButtonKind.HEADER_NO_PADDING?$=StyledHeaderNoPaddingButton:e===BaseButtonKind.ELEMENT_TOOLBAR&&($=StyledElementToolbarButton),jsx$1($,{ref:t,kind:e,size:o??BaseButtonSize.MEDIUM,containerWidth:h||!1,disabled:d||!1,onClick:p||(()=>{}),autoFocus:E||!1,"data-testid":i["data-testid"]??`stBaseButton-${e}`,"aria-label":i["aria-label"]??"","aria-haspopup":i["aria-haspopup"],"aria-expanded":i["aria-expanded"],children:y})}),StyledWrapper=styled("div",{target:"e1bi6yfx0"})({display:"table",tableLayout:"fixed",width:"100%"}),StyledEllipsizedDiv=styled("div",{target:"e1bi6yfx1"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}),StyledTooltipContentWrapper=styled("div",{target:"e1bi6yfx2"})(({theme:n})=>({boxSizing:"border-box",fontSize:`${n.fontSizes.sm}`,maxWidth:`calc(${n.sizes.contentMaxWidth} - 2 * ${n.spacing.threeXL})`,maxHeight:n.sizes.maxTooltipHeight,overflow:"auto",padding:`${n.spacing.xs} ${n.spacing.md}`,[`@media (max-width: ${n.breakpoints.sm})`]:{maxWidth:`calc(100% - ${n.spacing.threeXL})`},img:{maxWidth:"100%"},"*":{fontSize:n.fontSizes.sm}}));var PLACEMENT$1={auto:"auto",topLeft:"topLeft",top:"top",topRight:"topRight",rightTop:"rightTop",right:"right",rightBottom:"rightBottom",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft",leftBottom:"leftBottom",left:"left",leftTop:"leftTop"},TRIGGER_TYPE={click:"click",hover:"hover"},STATE_CHANGE_TYPE={open:"open",close:"close"},ACCESSIBILITY_TYPE={none:"none",menu:"menu",tooltip:"tooltip"},POPOVER_MARGIN=8,ARROW_SIZE=6,ANIMATE_OUT_TIME=0,ANIMATE_IN_TIME=20,ARROW_WIDTH=Math.ceil(Math.sqrt(Math.pow(ARROW_SIZE*2,2)/2));function _typeof$6(n){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(n)}function ownKeys$e(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$d(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
51i%2?ownKeys$e(Object(t),!0).forEach(function(e){_defineProperty$e(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$e(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _classCallCheck$7(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$7(n,i,t){return i&&_defineProperties$7(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$7(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$6(n,i)}function _setPrototypeOf$6(n,i){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$6(n,i)}function _createSuper$7(n){var i=_isNativeReflectConstruct$7();return function(){var e=_getPrototypeOf$7(n),o;if(i){var d=_getPrototypeOf$7(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$7(this,o)}}function _possibleConstructorReturn$7(n,i){if(i&&(_typeof$6(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(n)}function _assertThisInitialized$7(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(n){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$7(n)}function _defineProperty$e(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var defaultStateReducer=function n(i,t){return t},StatefulContainer$1=(function(n){_inherits$7(t,n);var i=_createSuper$7(t);function t(){var e;_classCallCheck$7(this,t);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return e=i.call.apply(i,[this].concat(d)),_defineProperty$e(_assertThisInitialized$7(e),"state",_objectSpread$d({isOpen:!1},e.props.initialState)),_defineProperty$e(_assertThisInitialized$7(e),"onBlur",function(h){e.props.onBlur&&e.props.onBlur(h),!(e.props.focusLock||e.props.autoFocus)&&e.close()}),_defineProperty$e(_assertThisInitialized$7(e),"onClick",function(h){e.props.onClick&&e.props.onClick(h),e.state.isOpen?e.close():e.open()}),_defineProperty$e(_assertThisInitialized$7(e),"onClickOutside",function(){e.close()}),_defineProperty$e(_assertThisInitialized$7(e),"onEsc",function(){e.close()}),_defineProperty$e(_assertThisInitialized$7(e),"onFocus",function(h){e.props.onFocus&&e.props.onFocus(h),isFocusVisible(h)&&e.open()}),_defineProperty$e(_assertThisInitialized$7(e),"onMouseEnter",function(h){e.props.onMouseEnter&&e.props.onMouseEnter(h),e.open()}),_defineProperty$e(_assertThisInitialized$7(e),"onMouseLeave",function(h){e.props.onMouseLeave&&e.props.onMouseLeave(h),e.close()}),_defineProperty$e(_assertThisInitialized$7(e),"onContentClose",function(){e.close()}),_defineProperty$e(_assertThisInitialized$7(e),"renderContent",function(){var h=e.props.content;return typeof h=="function"?h({close:e.onContentClose}):h}),e}return _createClass$7(t,[{key:"open",value:function(){this.internalSetState(STATE_CHANGE_TYPE.open,{isOpen:!0}),this.props.onOpen&&this.props.onOpen()}},{key:"close",value:function(){this.internalSetState(STATE_CHANGE_TYPE.close,{isOpen:!1}),this.props.onClose&&this.props.onClose()}},{key:"internalSetState",value:function(o,d){var p=this.props.stateReducer;if(typeof p!="function"){this.setState(d);return}this.setState(function(h){return p(o,d,h)})}},{key:"render",value:function(){var o=this.props,d=o.accessibilityType,p=o.autoFocus,h=o.animateOutTime,y=o.dismissOnClickOutside,E=o.dismissOnEsc,$=o.focusLock,M=o.ignoreBoundary,X=o.mountNode,Z=o.onBlur,ye=o.onClick,be=o.onFocus,we=o.onMouseEnter,xe=o.onMouseLeave,$e=o.onMouseEnterDelay,Ne=o.onMouseLeaveDelay,Fe=o.overrides,De=o.placement,Le=o.popperOptions,He=o.renderAll,Ke=o.returnFocus,je=o.showArrow,Ve=o.triggerType,qe=o.popoverMargin,Ye=o.focusOptions,et={accessibilityType:d,animateOutTime:h,autoFocus:p,content:this.renderContent,focusLock:$,ignoreBoundary:M,isOpen:this.state.isOpen,mountNode:X,onBlur:Z,onClick:ye,onFocus:be,onMouseEnter:we,onMouseLeave:xe,onMouseEnterDelay:$e,onMouseLeaveDelay:Ne,overrides:Fe,placement:De,popperOptions:Le,renderAll:He,returnFocus:Ke,showArrow:je,triggerType:Ve,popoverMargin:qe,focusOptions:Ye};return y&&(et.onClickOutside=this.onClickOutside),E&&(et.onEsc=this.onEsc),Ve===TRIGGER_TYPE.hover?(et.onBlur=this.onBlur,et.onFocus=this.onFocus,et.onMouseEnter=this.onMouseEnter,et.onMouseLeave=this.onMouseLeave):et.onClick=this.onClick,this.props.children(et)}}]),t})(reactExports.Component);_defineProperty$e(StatefulContainer$1,"defaultProps",{accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT$1.auto,popperOptions:{},showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:defaultStateReducer,popoverMargin:POPOVER_MARGIN});function ownKeys$d(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$c(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
51i%2?ownKeys$d(Object(t),!0).forEach(function(e){_defineProperty$d(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$d(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$d(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _slicedToArray$6(n,i){return _arrayWithHoles$6(n)||_iterableToArrayLimit$6(n,i)||_unsupportedIterableToArray$6(n,i)||_nonIterableRest$6()}function _nonIterableRest$6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$6(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$6(n,i)}}function _arrayLikeToArray$6(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$6(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$6(n){if(Array.isArray(n))return n}var OPPOSITE_POSITIONS={top:"bottom",bottom:"top",right:"left",left:"right"};function getOppositePosition(n){return OPPOSITE_POSITIONS[n]}function isVerticalPosition(n){return n==="top"||n==="bottom"}function capitalize(n){return n.charAt(0).toUpperCase()+n.slice(1)}function fromPopperPlacement(n){var i=n.replace(/(top|bottom)-start$/,"$1Left").replace(/(top|bottom)-end$/,"$1Right").replace(/(left|right)-start$/,"$1Top").replace(/(left|right)-end$/,"$1Bottom");return PLACEMENT$1[i]||null}function splitPlacement(n){var i=n.match(/^([a-z]+)([A-Z][a-z]+)?/)||[];return i.slice(1,3).filter(Boolean).map(function(t){return t.toLowerCase()})}function getPopoverMarginStyles(n,i,t){var e=splitPlacement(i),o=_slicedToArray$6(e,1),d=o[0],p=getOppositePosition(d);if(!p)return null;var h="margin".concat(capitalize(p));return _defineProperty$d({},h,"".concat(n+t,"px"))}function getStartPosition(n,i,t,e){n=_objectSpread$c({},n);var o=splitPlacement(i),d=_slicedToArray$6(o,1),p=d[0],h=(t>0?t:e)*2;return isVerticalPosition(p)?n.top+=p==="top"?h:-h:n.left+=p==="left"?h:-h,"translate3d(".concat(n.left,"px, ").concat(n.top,"px, 0)")}function getEndPosition(n){return"translate3d(".concat(n.left,"px, ").concat(n.top,"px, 0)")}function getArrowPositionStyles(n,i){var t,e=splitPlacement(i),o=_slicedToArray$6(e,1),d=o[0],p=getOppositePosition(d);if(!p)return null;var h=isVerticalPosition(d)?"left":"top";return t={},_defineProperty$d(t,h,"".concat(n[h],"px")),_defineProperty$d(t,p,"-".concat(ARROW_SIZE-2,"px")),t}function ownKeys$c(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$b(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$c(Object(t),!0).forEach(function(e){_defineProperty$c(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$c(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$c(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function getBodyStyles(n){var i=n.$animationDuration,t=n.$isOpen,e=n.$isAnimating,o=n.$placement,d=n.$popoverOffset,p=n.$showArrow,h=n.$theme,y=n.$popoverMargin,E=n.$isHoverTrigger;return _objectSpread$b(_objectSpread$b({position:"absolute",top:0,left:0,backgroundColor:h.colors.backgroundTertiary,borderTopLeftRadius:h.borders.popoverBorderRadius,borderTopRightRadius:h.borders.popoverBorderRadius,borderBottomRightRadius:h.borders.popoverBorderRadius,borderBottomLeftRadius:h.borders.popoverBorderRadius,boxSh
52adow:h.lighting.shadow600,transitionProperty:"opacity,transform",transitionDuration:e?t?"0.1s":"".concat(i,"ms"):"0s",transitionTimingFunction:t?h.animation.easeOutCurve:h.animation.easeInCurve,opacity:e&&t?1:0,transform:e&&t?getEndPosition(d):getStartPosition(d,o,p?ARROW_SIZE:0,y)},getPopoverMarginStyles(p?ARROW_SIZE:0,o,y)),E?{animationDuration:".1s",animationName:{"0%":{pointerEvents:"none"},"99%":{pointerEvents:"none"},"100%":{pointerEvents:"auto"}}}:{})}var Body$3=styled$1("div",getBodyStyles);Body$3.displayName="Body";Body$3.displayName="Body";function getArrowStyles(n){var i=n.$arrowOffset,t=n.$placement,e=n.$theme;return _objectSpread$b({backgroundColor:e.colors.backgroundTertiary,boxShadow:e.lighting.shadow600,width:"".concat(ARROW_WIDTH,"px"),height:"".concat(ARROW_WIDTH,"px"),transform:"rotate(45deg)",position:"absolute"},getArrowPositionStyles(i,t))}var Arrow$1=styled$1("div",getArrowStyles);Arrow$1.displayName="Arrow";Arrow$1.displayName="Arrow";function getInnerStyles(n){var i=n.$theme;return{backgroundColor:i.colors.backgroundTertiary,borderTopLeftRadius:i.borders.popoverBorderRadius,borderTopRightRadius:i.borders.popoverBorderRadius,borderBottomRightRadius:i.borders.popoverBorderRadius,borderBottomLeftRadius:i.borders.popoverBorderRadius,color:i.colors.contentPrimary,position:"relative"}}var Inner$1=styled$1("div",getInnerStyles);Inner$1.displayName="Inner";Inner$1.displayName="Inner";var Padding=styled$1("div",{paddingLeft:"12px",paddingTop:"12px",paddingRight:"12px",paddingBottom:"12px"});Padding.displayName="Padding";Padding.displayName="Padding";var Hidden=styled$1("div",{display:"none"});Hidden.displayName="Hidden";Hidden.displayName="Hidden";var baseDefaultProps$1={accessibilityType:ACCESSIBILITY_TYPE.menu,focusLock:!1,autoFocus:!0,returnFocus:!0,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT$1.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,renderAll:!1};function ownKeys$b(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$a(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$b(Object(t),!0).forEach(function(e){_defineProperty$b(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$b(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$c.apply(this,arguments)}function _typeof$5(n){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(n)}
52function _classCallCheck$6(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$6(n,i,t){return i&&_defineProperties$6(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$6(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$5(n,i)}function _setPrototypeOf$5(n,i){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$5(n,i)}function _createSuper$6(n){var i=_isNativeReflectConstruct$6();return function(){var e=_getPrototypeOf$6(n),o;if(i){var d=_getPrototypeOf$6(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$6(this,o)}}function _possibleConstructorReturn$6(n,i){if(i&&(_typeof$5(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(n)}function _assertThisInitialized$6(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(n){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$6(n)}function _defineProperty$b(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var PopoverInner=(function(n){_inherits$6(t,n);var i=_createSuper$6(t);function t(){var e;_classCallCheck$6(this,t);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return e=i.call.apply(i,[this].concat(d)),_defineProperty$b(_assertThisInitialized$6(e),"animateInTimer",void 0),_defineProperty$b(_assertThisInitialized$6(e),"animateOutTimer",void 0),_defineProperty$b(_assertThisInitialized$6(e),"animateOutCompleteTimer",void 0),_defineProperty$b(_assertThisInitialized$6(e),"onMouseEnterTimer",void 0),_defineProperty$b(_assertThisInitialized$6(e),"onMouseLeaveTimer",void 0),_defineProperty$b(_assertThisInitialized$6(e),"anchorRef",reactExports.createRef()),_defineProperty$b(_assertThisInitialized$6(e),"popperRef",reactExports.createRef()),_defineProperty$b(_assertThisInitialized$6(e),"arrowRef",reactExports.createRef()),_defineProperty$b(_assertThisInitialized$6(e),"state",e.getDefaultState(e.props)),_defineProperty$b(_assertThisInitialized$6(e),"animateIn",function(){e.props.isOpen&&e.setState({isAnimating:!0})}),_defineProperty$b(_assertThisInitialized$6(e),"animateOut",function(){e.props.isOpen||(e.setState({isAnimating:!0}),e.animateOutCompleteTimer=setTimeout(function(){e.setState({isAnimating:!1,placement:e.props.placement})},e.props.animateOutTime||ANIMATE_OUT_TIME))}),_defineProperty$b(_assertThisInitialized$6(e),"onAnchorClick",function(h){e.props.onClick&&e.props.onClick(h)}),_defineProperty$b(_assertThisInitialized$6(e),"onAnchorMouseEnter",function(h){e.onMouseLeaveTimer&&clearTimeout(e.onMouseLeaveTimer),e.triggerOnMouseEnterWithDelay(h)}),_defineProperty$b(_assertThisInitialized$6(e),"onAnchorMouseLeave",function(h){e.onMouseEnterTimer&&clearTimeout(e.onMouseEnterTimer),e.triggerOnMouseLeaveWithDelay(h)}),_defineProperty$b(_assertThisInitialized$6(e),"onPopoverMouseEnter",function(){e.onMouseLeaveTimer&&clearTimeout(e.onMouseLeaveTimer)}),_defineProperty$b(_assertThisInitialized$6(e),"onPopoverMouseLeave",function(h){e.triggerOnM
52ouseLeaveWithDelay(h)}),_defineProperty$b(_assertThisInitialized$6(e),"onPopperUpdate",function(h,y){var E=fromPopperPlacement(y.placement)||PLACEMENT$1.top;return e.setState({arrowOffset:h.arrow,popoverOffset:h.popper,placement:E}),e.animateInTimer=setTimeout(e.animateIn,ANIMATE_IN_TIME),y}),_defineProperty$b(_assertThisInitialized$6(e),"triggerOnMouseLeave",function(h){e.props.onMouseLeave&&e.props.onMouseLeave(h)}),_defineProperty$b(_assertThisInitialized$6(e),"triggerOnMouseEnter",function(h){e.props.onMouseEnter&&e.props.onMouseEnter(h)}),_defineProperty$b(_assertThisInitialized$6(e),"onDocumentClick",function(h){var y=h.composedPath?h.composedPath()[0]:h.target,E=e.popperRef.current,$=e.anchorRef.current;!E||E===y||y instanceof Node&&E.contains(y)||!$||$===y||y instanceof Node&&$.contains(y)||e.props.onClickOutside&&e.props.onClickOutside(h)}),e}return _createClass$6(t,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"componentDidUpdate",value:function(o,d){this.init(o,d),this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip&&this.props.autoFocus&&!this.state.autoFocusAfterPositioning&&this.popperRef.current!==null&&this.popperRef.current.getBoundingClientRect().top>0&&this.setState({autoFocusAfterPositioning:!0})}},{key:"init",value:function(o,d){if(this.props.isOpen!==o.isOpen||this.state.isMounted!==d.isMounted||this.state.isLayerMounted!==d.isLayerMounted){if(this.props.isOpen&&this.state.isLayerMounted){this.clearTimers();return}if(!this.props.isOpen&&o.isOpen){this.animateOutTimer=setTimeout(this.animateOut,20);return}}}},{key:"componentWillUnmount",value:function(){this.clearTimers()}},{key:"getDefaultState",value:function(o){return{isAnimating:!1,arrowOffset:{left:0,top:0},popoverOffset:{left:0,top:0},placement:o.placement,isMounted:!1,isLayerMounted:!1,autoFocusAfterPositioning:!1}}},{key:"clearTimers",value:function(){[this.animateInTimer,this.animateOutTimer,this.animateOutCompleteTimer,this.onMouseEnterTimer,this.onMouseLeaveTimer].forEach(function(o){o&&clearTimeout(o)})}},{key:"triggerOnMouseLeaveWithDelay",value:function(o){var d=this,p=this.props.onMouseLeaveDelay;if(p){this.onMouseLeaveTimer=setTimeout(function(){return d.triggerOnMouseLeave(o)},p);return}this.triggerOnMouseLeave(o)}},{key:"triggerOnMouseEnterWithDelay",value:function(o){var d=this,p=this.props.onMouseEnterDelay;if(p){this.onMouseEnterTimer=setTimeout(function(){return d.triggerOnMouseEnter(o)},p);return}this.triggerOnMouseEnter(o)}},{key:"isClickTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.click}},{key:"isHoverTrigger",value:function(){return this.props.triggerType===TRIGGER_TYPE.hover}},{key:"isAccessibilityTypeMenu",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.menu}},{key:"isAccessibilityTypeTooltip",value:function(){return this.props.accessibilityType===ACCESSIBILITY_TYPE.tooltip}},{key:"getAnchorIdAttr",value:function(){var o=this.getPopoverIdAttr();return o?"".concat(o,"__anchor"):null}},{key:"getPopoverIdAttr",value:function(){return this.props.id||null}},{key:"getAnchorProps",value:function(){var o=this.props.isOpen,d={ref:this.anchorRef},p=this.getPopoverIdAttr();if(this.isAccessibilityTypeMenu()){var h=this.isClickTrigger()?"aria-controls":"aria-owns";d[h]=o?p:null,d["aria-haspopup"]=!0,d["aria-expanded"]=!!o}else this.isAccessibilityTypeTooltip()&&(d.id=this.getAnchorIdAttr(),d["aria-describedby"]=o?p:null);return this.isHoverTrigger()?(d.onMouseEnter=this.onAnchorMouseEnter,d.onMouseLeave=this.onAnchorMouseLeave,d.onBlur=this.props.onBlur,d.onFocus=this.props.onFocus):d.onClick=this.onAnchorClick,d}},{key:"getPopoverBodyProps",value:function(){var o={},d=this.getPopoverIdAttr();return this.isAccessibilityTypeMenu()?o.id=d:this.isAccessibilityTypeTooltip()&&(o.id=d,o.role="tooltip"),this.isHoverTrigger()&&(o.onMouseEnter=this.onPopoverMouseEnter,o.onMouseLeave=this.onPopoverMouseLeave),o}},{key:"getSharedProps",value:function(){var o=this.props,d=o.isOpen,p=o.showArrow,h=o.popoverMargin,y=h===void 0?POPOVER_MARGIN:h,E=this.state,$=E.isAnimating,M=E.arrowOffset,X=E.popoverOffset,Z=E.placement;return{$showArrow:!!p,$arrowOffset:M,$popoverOffset:X,$placement:Z,$isAnimating:$,$animationDuration:this.props.animateOutTime||ANIMATE_OUT_TIME,$isOpen:d,$popoverMargin:y,$isHoverTrigger:this.isHoverTrigger()}}},{key:"getAnchorFromChildren",value:function(){var o=this.props.children,d=reactExports.Children.toArray(o);
52return d.length!==1&&console.error("[baseui] Exactly 1 child must be passed to Popover/Tooltip, found ".concat(d.length," children")),d[0]}},{key:"renderAnchor",value:function(){var o=this.getAnchorFromChildren();if(!o)return null;var d=reactExports.isValidElement(o),p=this.getAnchorProps();return _typeof$5(o)==="object"&&d?reactExports.cloneElement(o,p):reactExports.createElement("span",_extends$c({key:"popover-anchor"},p),o)}},{key:"renderPopover",value:function(o){var d=this.props,p=d.showArrow,h=d.overrides,y=h===void 0?{}:h,E=y.Arrow,$=y.Body,M=y.Inner,X=getOverride(E)||Arrow$1,Z=getOverride($)||Body$3,ye=getOverride(M)||Inner$1,be=this.getSharedProps(),we=this.getPopoverBodyProps();return reactExports.createElement(Z,_extends$c({key:"popover-body",ref:this.popperRef,"data-baseweb":this.props["data-baseweb"]||"popover"},we,be,getOverrideProps($)),p?reactExports.createElement(X,_extends$c({key:"popover-arrow",ref:this.arrowRef},be,getOverrideProps(E))):null,reactExports.createElement(ye,_extends$c({},be,getOverrideProps(M)),o))}},{key:"renderContent",value:function(){var o=this.props.content;return typeof o=="function"?o():o}},{key:"render",value:function(){var o=this,d=this.state.isMounted&&(this.props.isOpen||this.state.isAnimating),p=[this.renderAnchor()],h=d||this.props.renderAll?this.renderContent():null,y={modifiers:{preventOverflow:{enabled:!this.props.ignoreBoundary,padding:0}}};return h&&(d?p.push(reactExports.createElement(Layer,{key:"new-layer",mountNode:this.props.mountNode,onEscape:this.props.onEsc,onDocumentClick:this.isHoverTrigger()?void 0:this.onDocumentClick,isHoverLayer:this.isHoverTrigger(),onMount:function(){return o.setState({isLayerMounted:!0})},onUnmount:function(){return o.setState({isLayerMounted:!1})}},reactExports.createElement(Tether,{anchorRef:this.anchorRef.current,arrowRef:this.arrowRef.current,popperRef:this.popperRef.current,popperOptions:_objectSpread$a(_objectSpread$a({},y),this.props.popperOptions),onPopperUpdate:this.onPopperUpdate,placement:this.state.placement},this.props.focusLock&&this.props.accessibilityType!==ACCESSIBILITY_TYPE.tooltip?reactExports.createElement(FocusLockCombination,{disabled:!this.props.focusLock,noFocusGuards:!1,returnFocus:!this.isHoverTrigger()&&this.props.returnFocus,autoFocus:this.state.autoFocusAfterPositioning,crossFrame:!1,focusOptions:this.props.focusOptions},this.renderPopover(h)):reactExports.createElement(MoveFocusInside,{disabled:!this.props.autoFocus||!this.state.autoFocusAfterPositioning},this.renderPopover(h))))):p.push(reactExports.createElement(Hidden,{key:"hidden-layer"}
52,h))),p}}]),t})(reactExports.Component);_defineProperty$b(PopoverInner,"defaultProps",baseDefaultProps$1);var Popover$2=function n(i){var t=i.innerRef,e=useUID();return reactExports.createElement(PopoverInner,_extends$c({id:i.id||e,ref:t},i))};Popover$2.defaultProps=baseDefaultProps$1;var _excluded$a=["children"];function _objectWithoutProperties$b(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$a(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$a(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function StatefulPopover(n){var i=n.children,t=_objectWithoutProperties$b(n,_excluded$a);return reactExports.createElement(StatefulContainer$1,t,function(e){return reactExports.createElement(Popover$2,e,i)})}StatefulPopover.defaultProps={accessibilityType:ACCESSIBILITY_TYPE.menu,ignoreBoundary:!1,overrides:{},onMouseEnterDelay:200,onMouseLeaveDelay:200,placement:PLACEMENT$1.auto,showArrow:!1,triggerType:TRIGGER_TYPE.click,dismissOnClickOutside:!0,dismissOnEsc:!0,stateReducer:function n(i,t){return t},popoverMargin:POPOVER_MARGIN};var baseDefaultProps={accessibilityType:ACCESSIBILITY_TYPE.tooltip,focusLock:!1,autoFocus:!1,returnFocus:!1,onMouseEnterDelay:200,onMouseLeaveDelay:200,overrides:{},placement:PLACEMENT$1.auto,popoverMargin:0,showArrow:!1,triggerType:TRIGGER_TYPE.hover,renderAll:!1};function _typeof$4(n){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(n)}function ownKeys$a(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$9(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$a(Object(t),!0).forEach(function(e){_defineProperty$a(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$a(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _classCallCheck$5(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$5(n,i,t){return i&&_defineProperties$5(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$5(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$4(n,i)}function _setPrototypeOf$4(n,i){return _setPrototypeOf$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$4(n,i)}function _createSuper$5(n){var i=_isNativeReflectConstruct$5();return function(){var e=_getPrototypeOf$5(n),o;if(i){var d=_getPrototypeOf$5(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$5(this,o)}}function _possibleConstructorReturn$5(n,i){if(i&&(_typeof$4(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(n)}function _assertThisInitialized$5(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
52function _getPrototypeOf$5(n){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$5(n)}function _defineProperty$a(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var StatefulContainer=(function(n){_inherits$5(t,n);var i=_createSuper$5(t);function t(){return _classCallCheck$5(this,t),i.apply(this,arguments)}return _createClass$5(t,[{key:"render",value:function(){return reactExports.createElement(StatefulContainer$1,this.props)}}]),t})(reactExports.Component);_defineProperty$a(StatefulContainer,"defaultProps",_objectSpread$9({},baseDefaultProps));function ownKeys$9(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$8(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$9(Object(t),!0).forEach(function(e){_defineProperty$9(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$9(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$9(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Body$2=styled$1("div",function(n){return _objectSpread$8(_objectSpread$8({},getBodyStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground,borderTopLeftRadius:n.$theme.borders.radius300,borderTopRightRadius:n.$theme.borders.radius300,borderBottomRightRadius:n.$theme.borders.radius300,borderBottomLeftRadius:n.$theme.borders.radius300,boxShadow:n.$theme.lighting.shadow400,color:n.$theme.colors.tooltipText,transitionProperty:"opacity",transform:getEndPosition(n.$popoverOffset)})});Body$2.displayName="Body";Body$2.displayName="Body";var Inner=styled$1("div",function(n){return _objectSpread$8(_objectSpread$8(_objectSpread$8({},getInnerStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground,borderTopLeftRadius:n.$theme.borders.radius300,borderTopRightRadius:n.$theme.borders.radius300,borderBottomRightRadius:n.$theme.borders.radius300,borderBottomLeftRadius:n.$theme.borders.radius300,paddingTop:n.$theme.sizing.scale300,paddingBottom:n.$theme.sizing.scale300,paddingLeft:n.$theme.sizing.scale600,paddingRight:n.$theme.sizing.scale600},n.$theme.typography.font150),{},{color:n.$theme.colors.tooltipText})});Inner.displayName="Inner";Inner.displayName="Inner";var Arrow=styled$1("div",function(n){return _objectSpread$8(_objectSpread$8({},getArrowStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground})});Arrow.displayName="Arrow";Arrow.displayName="Arrow";function _typeof$3(n){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(n)}function ownKeys$8(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$7(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$8(Object(t),!0).forEach(function(e){_defineProperty$8(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$8(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$b.apply(this,arguments)}function _classCallCheck$4(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$4(n,i,t){return i&&_defineProperties$4(n.prototype,i
52),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$4(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$3(n,i)}function _setPrototypeOf$3(n,i){return _setPrototypeOf$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$3(n,i)}function _createSuper$4(n){var i=_isNativeReflectConstruct$4();return function(){var e=_getPrototypeOf$4(n),o;if(i){var d=_getPrototypeOf$4(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$4(this,o)}}function _possibleConstructorReturn$4(n,i){if(i&&(_typeof$3(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$4(n)}function _assertThisInitialized$4(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$4(n){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$4(n)}function _defineProperty$8(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Tooltip$2=(function(n){_inherits$4(t,n);var i=_createSuper$4(t);function t(){return _classCallCheck$4(this,t),i.apply(this,arguments)}return _createClass$4(t,[{key:"render",value:function(){var o=mergeOverrides({Arrow,Body:Body$2,Inner},this.props.overrides);return reactExports.createElement(Popover$2,_extends$b({autoFocus:!1,"data-baseweb":"tooltip"},this.props,{overrides:o}))}}]),t})(reactExports.Component);_defineProperty$8(Tooltip$2,"defaultProps",_objectSpread$7({},baseDefaultProps));var _excluded$9=["children"];function _objectWithoutProperties$a(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$9(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$9(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function StatefulTooltip(n){var i=n.children,t=_objectWithoutProperties$a(n,_excluded$9);return reactExports.createElement(StatefulContainer,t,function(e){return reactExports.createElement(Tooltip$2,e,i)})}StatefulTooltip.defaultProps=StatefulContainer.defaultProps;function useTooltipMeasurementSideEffect(n,i){const{innerWidth:t}=useWindowDimensionsContext();reactExports.useEffect(()=>{const e=n?.parentElement;if(!e)return;(async()=>{const d=()=>{const X=e.getBoundingClientRect();return X.x!==0||X.y!==0?X:null};let p=null,h=0;const y=5;for(;!p&&h<y;)p=d(),p||(h++,await new Promise(X=>requestAnimationFrame(X)));p||(p=e.getBoundingClientRect());const E=p.x,$=E+p.width-t,M=e.parentElement;if($>0&&M){const X=new DOMMatrix(window.getComputedStyle(M)?.transform);M.style.transform=`translate3d(${X.e-$}px, ${X.f}px, 0px)`}E<0&&(e.style.left=`${-E}px`)})()},[n,i,t])}var Placement=(function(n){return n.AUTO="auto",n.TOP_LEFT="topLeft",n.TOP="top",n.TOP_RIGHT="topRight",n.RIGHT_TOP="rightTop",n.RIGHT="right",n.RIGHT_BOTTOM="rightBottom",n.BOTTOM_RIGHT="bottomRight",n.BOTTOM="bottom",n.BOTTOM_LEFT="bottomLeft",n.LEFT_BOTTOM="leftBottom",n.LEFT="left",n.LEFT_TOP="leftTop",n})({});const generateDefaultTooltipOverrides=(n,i)=>{const{colors:t,fontSizes:e,radii:o,fontWeights:d}=n;return{Body:{style:{borderTopLeftRadius:o.default,borderTopRightRadius:o.default,borderBottomLeftRadius:o.default,borderBottomRightRadius:o.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}}
52,Inner:{style:{backgroundColor:hasLightBackgroundColor(n)?t.bgColor:t.secondaryBg,color:t.bodyText,fontSize:e.sm,fontWeight:d.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"},...i}}};function Tooltip({content:n,placement:i,children:t,inline:e,style:o,onMouseEnterDelay:d,overrides:p,containerWidth:h,error:y}){const E=useEmotionTheme(),[$,M]=reactExports.useState(null),[X,Z]=reactExports.useState(!1),ye=reactExports.useRef(null),be=reactExports.useCallback(()=>{Z(!0)},[]),we=reactExports.useCallback(()=>{Z(!1),ye.current=null},[]);reactExports.useEffect(()=>()=>{ye.current=null},[]);const xe=reactExports.useCallback(De=>{if(De.key!=="Escape"||!X)return;const Le=De.currentTarget,He=Le.ownerDocument?.activeElement;He instanceof HTMLElement&&Le.contains(He)&&(ye.current?.(),De.preventDefault(),De.stopPropagation())},[X]);useTooltipMeasurementSideEffect($,X);const $e=generateDefaultTooltipOverrides(E,p),Ne=e?"span":"div",Fe=reactExports.useCallback(({close:De})=>(ye.current=De,jsx$1(StyledTooltipContentWrapper,{className:y?"stTooltipErrorContent":"stTooltipContent","data-testid":y?"stTooltipErrorContent":"stTooltipContent",ref:M,children:n})),[n,y,M]);return jsx$1(StatefulTooltip,{onOpen:be,onClose:we,content:n?Fe:null,placement:PLACEMENT$1[i],accessibilityType:ACCESSIBILITY_TYPE.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:d,overrides:$e,children:jsx$1(Ne,{style:{display:"flex",flexDirection:"row",justifyContent:e?"flex-end":"",width:h?"100%":"auto",...o},onKeyDownCapture:xe,"data-testid":y?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",className:y?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",children:t})})}const Tooltip$1=reactExports.memo(Tooltip),StyledTooltipTriggerButton=styled("button",{target:"eqmt79k0"})(({theme:n})=>({background:"none",border:"none",padding:0,margin:0,color:"inherit",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,cursor:"help","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing,borderRadius:n.radii.default}})),StyledTooltipIconWrapper=styled("span",{target:"eqmt79k1"})(({isLatex:n,theme:i})=>({display:"flex",alignItems:"center",marginTop:n?i.spacing.md:"0","& .stTooltipHoverTarget svg.icon":{stroke:i.colors.fadedText60,strokeWidth:i.sizes.defaultStrokeWidth}})),StyledLabelHelpWrapper=styled("div",{target:"eqmt79k2"})(({isLatex:n})=>({display:"flex",flexDirection:"row",alignItems:"center",visibility:"visible",width:n?"fit-content":"100%",...n?{maxWidth:"100%",marginInline:"auto"}:{}})),StyledLabelHelpInline=styled("label",{target:"eqmt79k3"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function _extends$a(){return _extends$a=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$a.apply(this,arguments)}function _objectWithoutProperties$9(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$8(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$8(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}var Check$1=reactExports.forwardRef(function(n,i){var t=n.color,e=t===void 0?"currentColor":t,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$9(n,["color","size"]);return React.createElement("svg",_extends$a({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),React.createElement("polyline",{points:"20 6 9 17 4 12"}))});Check$1.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Check$1.displayName="Check";function _extends$9(){return _extends$9=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$9.apply(this,arguments)}function _objectWithoutProperties$8(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$7(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}
52function _objectWithoutPropertiesLoose$7(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}var Copy=reactExports.forwardRef(function(n,i){var t=n.color,e=t===void 0?"currentColor":t,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$8(n,["color","size"]);return React.createElement("svg",_extends$9({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),React.createElement("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),React.createElement("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}))});Copy.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Copy.displayName="Copy";function _extends$8(){return _extends$8=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$8.apply(this,arguments)}function _objectWithoutProperties$7(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$6(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$6(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}var HelpCircle=reactExports.forwardRef(function(n,i){var t=n.color,e=t===void 0?"currentColor":t,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$7(n,["color","size"]);return React.createElement("svg",_extends$8({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),React.createElement("circle",{cx:"12",cy:"12",r:"10"}),React.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),React.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))});HelpCircle.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};HelpCircle.displayName="HelpCircle";function _extends$7(){return _extends$7=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$7.apply(this,arguments)}function _objectWithoutProperties$6(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$5(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$5(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}var Link2=reactExports.forwardRef(function(n,i){var t=n.color,e=t===void 0?"currentColor":t,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$6(n,["color","size"]);return React.createElement("svg",_extends$7({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),React.createElement("path",{d:"M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"}),React.createElement("line",{x1:"8",y1:"12",x2:"16",y2:"12"}))});Link2.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Link2.displayName="Link2";const scriptRel="modulepreload",assetsURL=function(n,i){return new URL(n,i).href},seen={},__vitePreload=function n(i,t,e){let o=Promise.resolve();if(t&&t.length>0){let E=function($){return Promise.all($.map(M=>Promise.resolve(M).then(X=>({status:"fulfilled",value:X}),X=>({status:"rejected",reason:X}))))};const p=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),y=h?.nonce||h?.getAttribute("nonce");o=E(t.map($=>{if($=assetsURL($,e),$ in seen)return;seen[$]=!0;const M=$.endsWith(".css"),X=M?'[rel="stylesheet"]':"";if(e)for(let ye=p.length-1;ye>=0;ye--){const be=p[ye];if(be.href===$&&(!M||be.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${$}"]${X}`))return;const Z=document.createElement("link");
vendor: 5,822 bytes, line 52
52if(Z.rel=M?"stylesheet":scriptRel,M||(Z.as="script"),Z.crossOrigin="",Z.href=$,y&&Z.setAttribute("nonce",y),document.head.appendChild(Z),M)return new Promise((ye,be)=>{Z.addEventListener("load",ye),Z.addEventListener("error",()=>be(new Error(`Unable to preload CSS for ${$}`)))})}))}function d(p){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=p,window.dispatchEvent(h),!h.defaultPrevented)throw p}return o.then(p=>{for(const h of p||[])h.status==="rejected"&&d(h.reason);return i().catch(d)})};function escapeStringRegexp$1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const replacements=[["Ã","ss"],["áº","Ss"],["ä","ae"],["Ã","Ae"],["ö","oe"],["Ã","Oe"],["ü","ue"],["Ã","Ue"],["Ã","A"],["Ã","A"],["Ã","A"],["Ã","A"],["Ã","Ae"],["Ã
","A"],["Ã","AE"],["Ã","C"],["Ã","E"],["Ã","E"],["Ã","E"],["Ã","E"],["Æ","A"],["Ã","I"],["Ã","I"],["Ã","I"],["Ã","I"],["Ã","D"],["Ã","N"],["Ã","O"],["Ã","O"],["Ã","O"],["Ã","O"],["Ã","Oe"],["Å","O"],["Å","O"],["Ã","O"],["Å","OE"],["Ã","U"],["Ã","U"],["Ã","U"],["Ã","Ue"],["Ű","U"],["Ã","Y"],["Ã","TH"],["Ã","ss"],["à ","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["Ã¥","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["É","a"],["ì","i"],["Ã","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["Å","o"],["Å","o"],["ø","o"],["Å","oe"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["à ","a"],["Ã","A"],["á","a"],["Ã","A"],["â","a"],["Ã","A"],["ã","a"],["Ã","A"],["è","e"],["Ã","E"],["é","e"],["Ã","E"],["ê","e"],["Ã","E"],["ì","i"],["Ã","I"],["Ã","i"],["Ã","I"],["ò","o"],["Ã","O"],["ó","o"],["Ã","O"],["ô","o"],["Ã","O"],["õ","o"],["Ã","O"],["ù","u"],["Ã","U"],["ú","u"],["Ã","U"],["ý","y"],["Ã","Y"],["Ä","a"],["Ä","A"],["Ä","D"],["Ä","d"],["Ä©","i"],["Ĩ","I"],["Å©","u"],["Ũ","U"],["Æ¡","o"],["Æ ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["áº","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["á»","e"],["á»","E"],["á»","e"],["á»","E"],["á»
","e"],["á»","E"],["á»","e"],["á»","E"],["á»","i"],["á»","I"],["á»","i"],["á»","I"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["á»","o"],["á»","O"],["ỡ","o"],["á» ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["á»§","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["á»","u"],["Ử","U"],["ữ","u"],["á»®","U"],["á»±","u"],["á»°","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["á»´","Y"],["á»·","y"],["á»¶","Y"],["ỹ","y"],["Ỹ","Y"],["Ø¡","e"],["Ø¢","a"],["Ø£","a"],["ؤ","w"],["Ø¥","a"],["ئ","y"],["ا","a"],["ب","b"],["Ø©","t"],["ت","t"],["Ø«","th"],["ج","j"],["Ø","h"],["Ø®","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["Ø´","sh"],["ص","s"],["ض","d"],["Ø·","t"],["ظ","z"],["ع","e"],["غ","gh"],["Ù","_"],["Ù","f"],["Ù","q"],["Ù","k"],["Ù","l"],["Ù
","m"],["Ù","n"],["Ù","h"],["Ù","w"],["Ù","a"],["Ù","y"],["Ùâ","a"],["Ù","u"],["Ùâ","i"],["Ù ","0"],["Ù¡","1"],["Ù¢","2"],["Ù£","3"],["Ù¤","4"],["Ù¥","5"],["Ù¦","6"],["Ù§","7"],["Ù¨","8"],["Ù©","9"],["Ú","ch"],["Ú©","k"],["Ú¯","g"],["Ù¾","p"],["Ú","zh"],["Û","y"],["Û°","0"],["Û±","1"],["Û²","2"],["Û³","3"],["Û´","4"],["Ûµ","5"],["Û¶","6"],["Û·","7"],["Û¸","8"],["Û¹","9"],["Ù¼","p"],["Ú","z"],["Ú
","c"],["Ú","d"],["ﺫ","d"],["ïº","r"],["Ú","r"],["ﺯ","z"],["Ú","g"],["Ú","x"],["Ú«","g"],["Ú¼","n"],["Û","e"],["Û","e"],["Û","ai"],["Ù¹","t"],["Ú","d"],["Ú","r"],["Úº","n"],["Û","h"],["Ú¾","h"],["Û","e"],["Ð","A"],["а","a"],["Ð","B"],["б","b"],["Ð","V"],["в","v"],["Ð","G"],["г","g"],["Ð","D"],["д","d"],["Ñе","ye"],["Ъе","Ye"],["ÑÐ","yE"],["ЪÐ","YE"],["Ð","E"],["е","e"],["Ð","Yo"],["Ñ","yo"],["Ð","Zh"],["ж","zh"],["Ð","Z"],["з","z"],["Ð","I"],["и","i"],["Ñй","iy"],["Ый","Iy"],["ЫÐ","IY"],["ÑÐ","iY"],["Ð","Y"],["й","y"],["Ð","K"],["к","k"],["Ð","L"],["л","l"],["Ð","M"],["м","m"],["Ð","N"],["н","n"],["Ð","O"],["о","o"],["Ð","P"],["п","p"],["Ð ","R"],["Ñ","r"],["С","S"],["Ñ","s"],["Т","T"],["Ñ","t"],["У","U"],["Ñ","u"],["Ф","F"],["Ñ","f"],["Ð¥","Kh"],["Ñ
","kh"],["Ц","Ts"],["Ñ","ts"],["Ч","Ch"],["Ñ","ch"],["Ш","Sh"],["Ñ","sh"],["Щ","Sch"],["Ñ","sch"],["Ъ",""],["Ñ",""],["Ы","Y"],["Ñ","y"],["Ь",""],["Ñ",""],["Ð","E"],["Ñ","e"],["Ю","Yu"],["Ñ","yu"],["Я","Ya"],["Ñ","ya"],["Ä","a"],["Ä","A"],["È","s"],["È","S"],["È","t"],["È","T"],["Å£","t"],["Å¢","T"],["Å","s"],["Å","S"],["ç","c"],["Ã","C"],["Ä","g"],["Ä","G"],["ı","i"],["İ","I"],["Õ¡","a"],["Ô±","A"],["Õ¢","b"],["Ô²","B"],["Õ£","g"],["Ô³","G"],["Õ¤","d"],["Ô´","D"],["Õ¥","ye"],["Ôµ","Ye"],["Õ¦","z"],["Ô¶","Z"],["Õ§","e"],["Ô·","E"],["Õ¨","y"],["Ô¸","Y"],["Õ©","t"],["Ô¹","T"],["Õª","zh"],["Ôº","Zh"],["Õ«","i"],["Ô»","I"],["Õ¬","l"],["Ô¼","L"],["Õ","kh"],["Ô½","Kh"],["Õ®","ts"],["Ô¾","Ts"],["Õ¯","k"],["Ô¿","K"],["Õ°","h"],["Õ","H"],["Õ±","dz"],["Õ","Dz"],["Õ²","gh"],["Õ","Gh"],["Õ³","tch"],["Õ","Tch"],["Õ´","m"],["Õ","M"],["Õµ","y"],["Õ
","Y"],["Õ¶","n"],["Õ","N"],["Õ·","sh"],["Õ","Sh"],["Õ¸Ö","u"],["ÕÕ","U"],["ÕÖ","U"],["Õ¸","vo"],["Õ","Vo"],["Õ¹","ch"],["Õ","Ch"],["Õº","p"],["Õ","P"],["Õ»","
52j"],["Õ","J"],["Õ¼","r"],["Õ","R"],["Õ½","s"],["Õ","S"],["Õ¾","v"],["Õ","V"],["Õ¿","t"],["Õ","T"],["Ö","r"],["Õ","R"],["Ö","c"],["Õ","C"],["Ö","p"],["Õ","P"],["Ö","q"],["Õ","Q"],["Ö
","o"],["Õ","O"],["Ö","f"],["Õ","F"],["Ö","yev"],["á","a"],["á","b"],["á","g"],["á","d"],["á","e"],["á","v"],["á","z"],["á","t"],["á","i"],["á","k"],["á","l"],["á","m"],["á","n"],["á","o"],["á","p"],["á","zh"],["á ","r"],["á¡","s"],["á¢","t"],["á£","u"],["á¤","ph"],["á¥","q"],["á¦","gh"],["á§","k"],["á¨","sh"],["á©","ch"],["áª","ts"],["á«","dz"],["á¬","ts"],["á","tch"],["á®","kh"],["á¯","j"],["á°","h"],["Ä","c"],["Ä","d"],["Ä","e"],["Å","n"],["Å","r"],["Å¡","s"],["Å¥","t"],["ů","u"],["ž","z"],["Ä","C"],["Ä","D"],["Ä","E"],["Å","N"],["Å","R"],["Å ","S"],["Ť","T"],["Å®","U"],["Ž","Z"],["Þ","h"],["Þ","sh"],["Þ","n"],["Þ","r"],["Þ","b"],["Þ
","lh"],["Þ","k"],["Þ","a"],["Þ","v"],["Þ","m"],["Þ","f"],["Þ","dh"],["Þ","th"],["Þ","l"],["Þ","g"],["Þ","gn"],["Þ","s"],["Þ","d"],["Þ","z"],["Þ","t"],["Þ","y"],["Þ","p"],["Þ","j"],["Þ","ch"],["Þ","tt"],["Þ","hh"],["Þ","kh"],["Þ","th"],["Þ","z"],["Þ","sh"],["Þ","s"],["Þ","d"],["Þ ","t"],["Þ¡","z"],["Þ¢","a"],["Þ£","gh"],["Þ¤","q"],["Þ¥","w"],["Þ¦","a"],["Þ§","aa"],["Þ¨","i"],["Þ©","ee"],["Þª","u"],["Þ«","oo"],["Þ¬","e"],["Þ","ey"],["Þ®","o"],["Þ¯","oa"],["Þ°",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["Ï","p"],["Ï","r"],["Ï","s"],["Ï","t"],["Ï
","y"],["Ï","f"],["Ï","x"],["Ï","ps"],["Ï","o"],["ά","a"],["Î","e"],["ί","
52i"],["Ï","o"],["Ï","y"],["ή","i"],["Ï","o"],["Ï","s"],["Ï","i"],["ΰ","y"],["Ï","y"],["Î","i"],["Î","A"],["Î","B"],["Î","G"],["Î","D"],["Î","E"],["Î","Z"],["Î","I"],["Î","TH"],["Î","I"],["Î","K"],["Î","L"],["Î","M"],["Î","N"],["Î","KS"],["Î","O"],["Î ","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Î¥","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Î","A"],["Î","E"],["Î","I"],["Î","O"],["Î","Y"],["Î","I"],["Î","O"],["Ϊ","I"],["Ϋ","Y"],["Ä","a"],["Ä","e"],["Ä£","g"],["Ä«","i"],["Ä·","k"],["ļ","l"],["Å","n"],["Å«","u"],["Ä","A"],["Ä","E"],["Ä¢","G"],["Ī","I"],["Ķ","K"],["Ä»","L"],["Å
","N"],["Ū","U"],["Ä","c"],["Å¡","s"],["ž","z"],["Ä","C"],["Å ","S"],["Ž","Z"],["Ä
","a"],["Ä","c"],["Ä","e"],["Ä","e"],["į","i"],["Å¡","s"],["ų","u"],["Å«","u"],["ž","z"],["Ä","A"],["Ä","C"],["Ä","E"],["Ä","E"],["Ä®","I"],["Å ","S"],["Ų","U"],["Ū","U"],["Ð","Kj"],["Ñ","kj"],["Ð","Lj"],["Ñ","lj"],["Ð","Nj"],["Ñ","nj"],["ТÑ","Ts"],["ÑÑ","ts"],["Ä
","a"],["Ä","c"],["Ä","e"],["Å","l"],["Å","n"],["Å","s"],["ź","z"],["ż","z"],["Ä","A"],["Ä","C"],["Ä","E"],["Å","L"],["Å","N"],["Å","S"],["Ź","Z"],["Å»","Z"],["Ð","Ye"],["Ð","I"],["Ð","Yi"],["Ò","G"],["Ñ","ye"],["Ñ","i"],["Ñ","yi"],["Ò","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["Â¥","Y"],["ß¿","b"],["à§³","t"],["૱","Bo"],["฿","B"],["â ","CE"],["â¡","C"],["â¢","Cr"],["â£","F"],["â¥","m"],["â¦","N"],["â§","Pt"],["â¨","Rs"],["â©","W"],["â«","s"],["â¬","E"],["â","K"],["â®","T"],["â¯","Dp"],["â°","S"],["â±","P"],["â²","G"],["â³","A"],["â´","S"],["âµ","C"],["â¶","tt"],["â·","S"],["â¸","T"],["â¹","R"],["âº","L"],["â½","P"],["â¿","B"],["﹩","$"],["ï¿ ","c"],["ï¿¥","Y"],["₩","W"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð
","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð ","g"],["ð¡","h"],["ð¢","i"],["ð£","j"],["ð¤","k"],["ð¥","l"],["ð¦","m"],["ð§","n"],["ð¨","o"],["ð©","p"],["ðª","q"],["ð«","r"],["ð¬","s"],["ð","t"],["ð®","u"],["ð¯","v"],["ð°","w"],["ð±","x"],["ð²","y"],["ð³","z"],["ð´","A"],["ðµ","B"],["ð¶","C"],["ð·","D"],["ð¸","E"],["ð¹","F"],["ðº","G"],["ð»","H"],["ð¼","I"],["ð½","J"],["ð¾","K"],["ð¿","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð
","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð ","s"],["ð¡","t"],["ð¢","u"],["ð£","v"],["ð¤","w"],["ð¥","x"],["ð¦","y"],["ð§","z"],["ð¨","A"],["ð©","B"],["ðª","C"],["ð«","D"],["ð¬","E"],["ð","F"],["ð®","G"],["ð¯","H"],["ð°","I"],["ð±","J"],["ð²","K"],["ð³","L"],["ð´","M"],["ðµ","N"],["ð¶","O"],["ð·","P"],["ð¸","Q"],["ð¹","R"],["ðº","S"],["ð»","T"],["ð¼","U"],["ð½","V"],["ð¾","W"],["ð¿","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð
","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","C"],["ð","D"],["ð¢","g"],["ð¥","J"],["ð¦","K"],["ð©","N"],["ðª","O"],["ð«","P"],["ð¬","Q"],["ð®","S"],["ð¯","T"],["ð°","U"],["ð±","V"],["ð²","W"],["ð³","X"],["ð´","Y"],["ðµ","Z"],["ð¶","a"],["ð·","b"],["ð¸","c"],["ð¹","d"],["ð»","f"],["ð½","h"],["ð¾","i"],["ð¿","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð
","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð ","Q"],["ð¡","R"],["ð¢","S"],["ð£","T"],["ð¤","U"],["ð¥","V"],["ð¦","W"],["ð§","X"],["ð¨","Y"],["ð©","Z"],["ðª","a"],["ð«","b"],["ð¬","c"],["ð","d"],["ð®","e"],["ð¯","f"],["ð°","g"],["ð±","h"],["ð²","i"],["ð³","j"],["ð´","k"],["ðµ","l"],["ð¶","m"],["ð·","n"],["ð¸","o"],["ð¹","p"],["ðº","q"],["ð»","r"],["ð¼","s"],["ð½","t"],["ð¾","u"],["ð¿","v"],["ð","
52w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð
","B"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","a"],["ð","b"],["ð ","c"],["ð¡","d"],["ð¢","e"],["ð£","f"],["ð¤","g"],["ð¥","h"],["ð¦","i"],["ð§","j"],["ð¨","k"],["ð©","l"],["ðª","m"],["ð«","n"],["ð¬","o"],["ð","p"],["ð®","q"],["ð¯","r"],["ð°","s"],["ð±","t"],["ð²","u"],["ð³","v"],["ð´","w"],["ðµ","x"],["ð¶","y"],["ð·","z"],["ð¸","A"],["ð¹","B"],["ð»","D"],["ð¼","E"],["ð½","F"],["ð¾","G"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","O"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð ","o"],["ð¡","p"],["ð¢","q"],["ð£","r"],["ð¤","s"],["ð¥","t"],["ð¦","u"],["ð§","v"],["ð¨","w"],["ð©","x"],["ðª","y"],["ð«","z"],["ð¬","A"],["ð","B"],["ð®","C"],["ð¯","D"],["ð°","E"],["ð±","F"],["ð²","G"],["ð³","H"],["ð´","I"],["ðµ","J"],["ð¶","K"],["ð·","L"],["ð¸","M"],["ð¹","N"],["ðº","O"],["ð»","P"],["ð¼","Q"],["ð½","R"],["ð¾","S"],["ð¿","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð
","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð ","A"],["ð¡","B"],["ð¢","C"],["ð£","D"],["ð¤","E"],["ð¥","F"],["ð¦","G"],["ð§","H"],["ð¨","I"],["ð©","J"],["ðª","K"],["ð«","L"],["ð¬","M"],["ð","N"],["ð®","O"],["ð¯","P"],["ð°","Q"],["ð±","R"],["ð²","S"],["ð³","T"],["ð´","U"],["ðµ","V"],["ð¶","W"],["ð·","X"],["ð¸","Y"],["ð¹","Z"],["ðº","a"],["ð»","b"],["ð¼","c"],["ð½","d"],["ð¾","e"],["ð¿","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð
","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð ","M"],["ð¡","N"],["ð¢","O"],["ð£","P"],["ð¤","Q"],["ð¥","R"],["ð¦","S"],["ð§","T"],["ð¨","U"],["ð©","V"],["ðª","W"],["ð«","X"],["ð¬","Y"],["ð","Z"],["ð®","a"],["ð¯","b"],["ð°","c"],["ð±","d"],["ð²","e"],["ð³","f"],["ð´","g"],["ðµ","h"],["ð¶","i"],["ð·","j"],["ð¸","k"],["ð¹","l"],["ðº","m"],["ð»","n"],["ð¼","o"],["ð½","p"],["ð¾","q"],["ð¿","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð","w"],["ð
","x"],["ð","y"],["ð","z"],["ð","A"],["ð","B"],["ð","C"],["ð","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð ","Y"],["ð¡","Z"],["ð¢","a"],["ð£","b"],["ð¤","c"],["ð¥","d"],["ð¦","e"],["ð§","f"],["ð¨","g"],["ð©","h"],["ðª","i"],["ð«","j"],["ð¬","k"],["ð","l"],["ð®","m"],["ð¯","n"],["ð°","o"],["ð±","p"],["ð²","q"],["ð³","r"],["ð´","s"],["ðµ","t"],["ð¶","u"],["ð·","v"],["ð¸","w"],["ð¹","x"],["ðº","y"],["ð»","z"],["ð¼","A"],["ð½","B"],["ð¾","C"],["ð¿","D"],["ð","E"],["ð","F"],["ð","G"],["ð","H"],["ð","I"],["ð
","J"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","O"],["ð","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð ","k"],["ð¡","l"],["ð¢","m"],["ð£","n"],["ð¤","o"],["ð¥","p"],["ð¦","q"],["ð§","r"],["ð¨","s"],["ð©","t"],["ðª","u"],["ð«","v"],["ð¬","w"],["ð","x"],["ð®","y"],["ð¯","z"],["ð°","A"],["ð±","B"],["ð²","C"],["ð³","D"],["ð´","E"],["ðµ","F"],["ð¶","G"],["ð·","H"],["ð¸","I"],["ð¹","J"],["ðº","K"],["ð»","L"],["ð¼","M"],["ð½","N"],["ð¾","O"],["ð¿","P"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð
","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["ð","a"],["ð","b"],["ð","c"],["ð","d"],["ð","e"],["ð","f"],["ð","g"],["ð","h"],["ð","i"],["ð","j"],["ð","k"],["ð","l"],["ð","m"],["ð","n"],["ð","o"],["ð","p"],["ð","q"],["ð","r"],["ð","s"],["ð","t"],["ð","u"],["ð","v"],["ð ","w"],["ð¡","x"],["ð¢","y"],["ð£","z"],["ð¤","l"],["ð¥","j"],["ð¢","A"],["ð£","B"],["ð¤","G"],["ð¥","D"],["ð¦","E"],["ð§","Z"],["ð¨","I"],["ð©","TH"],["ðª","I"],["ð«","K"],["ð¬","L"],["ð","M"],["ð®","N"],["ð¯","KS"],["ð°","O"],["ð±","P"],["ð²","R"],["ð³","TH"],["ð´","S"],["ðµ","T"],["ð¶","Y"],["ð·","F"],["ð¸","x"],["ð¹","PS"],["ðº","O"],["ð»","D"],["ð¼","a"],["ð½","b"],["ð¾","g"],["ð¿","d"],["ð","e"],["ð","z"],["ð","i"],["ð","th"],["ð","i"],["ð
","k"],["ð","l"],["ð","m"],["ð","n"],["ð","ks"],["ð","o"],["ð","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","d"],["ð","E"],["ð","TH"],["ð","K"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","V"],["ð","G"],["ð","D"],["ð ","E"],["ð¡","Z"],["ð¢","I"],["ð£","TH"],["ð¤","I"],["ð¥","K"],["ð¦","L"],["ð§","M"],["ð¨","N"],["ð©","KS"],["ðª","O"],["ð«","P"],["ð¬","S"],["ð","TH"],["ð®","S"],["ð¯","T"],["ð°","Y"],["ð±","F"],["ð²","X"],["ð³","PS"],["ð´","O"],["ðµ","D"],["ð¶","a"],["ð·","v"],["ð¸","g"],["ð¹","d"],["ðº","e"],["ð»","z"],["ð¼","i"],["ð½","th"],["ð¾","i"],["ð¿","k"],["ð","l"],["ð","m"],["ð","n"],["ð","ks"],["ð","o"],["ð
","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","B"],["ð","G"],["ð","D"],["ð","E"],["ð","Z"],["ð","I"],["ð","TH"],["ð","I"],["ð","K"],["ð ","L"],["ð¡","M"],["ð¢","N"],["ð£","KS"],["ð¤","O"],["ð¥","P"],["ð¦","R"],["ð§","TH"],["ð¨","S"],["ð©","T"],["ðª","Y"],["ð«","F"],["ð¬","X"],["ð","PS"],["ð®","O"],["ð¯","D"],["ð°","a"],["ð±","v"],["ð²","g"],["ð³","d"],["ð´","e"],["ðµ","z"],["ð¶","i"],["ð·","th"],["ð¸","i"],["ð¹","k"],["ðº","l"],["ð»","m"],["ð¼","n"],["ð½","ks"],["ð¾","o"],["ð¿","p"],["ð","r"],["ð","s"],["ð","s"],["ð","t"],["ð","y"],["ð
","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","A"],["ð","V"],["ð","G"],["ð","D"],["ð","E"],["ð","Z"],["ð","I"],["ð","TH"],["ð","I"],["ð","K"],["ð","L"],["ð","M"],["ð","N"],["ð","KS"],["ð","O"],["ð","P"],["ð ","S"],["ð¡","TH"],["ð¢","S"],["ð£","T"],["ð¤","Y"],["ð¥","F"],["ð¦","X"],["ð§","PS"],["ð¨","O"],["ð©","D"],["ðª","av"],["ð«","g"],["ð¬","d"],["ð","e"],["ð®","z"],["ð¯","i"],["ð°","i"],["ð±","th"],["ð²","i"],["ð³","k"],["ð´","l"],["ðµ","m"],["ð¶","n"],["ð·","ks"],["ð¸","o"],["ð¹","p"],["ðº","r"],["ð»","s"],["ð¼","s"],["ð½","t"],["ð¾","y"],["ð¿","f"],["ð","x"],["ð","ps"],["ð","o"],["ð","a"],["ð","e"],["ð
","i"],["ð","k"],["ð","f"],["ð","r"],["ð","p"],["ð","F"],["ð","f"],["â","(a)"],["â","(b)"],["â","(c)"],["â","(d)"],["â ","(e)"],["â¡","(f)"],["â¢","(g)"],["â£","(h)"],["â¤","(i)"],["â¥","(j)"],["â¦","(k)"],["â§","(l)"],["â¨","(m)"],["â©","(n)"],["âª","(o)"],["â«","(p)"],["â¬","(q)"],["â","(r)"],["â®","(s)"],["â¯","(t)"],["â°","(u)"],["â±","(v)"],["â²","(w)"],["â³","(x)"],["â´","(y)"],["âµ","(z)"],["â¶","(A)"],["â·","(B)"],["â¸","(C)"],["â¹","(D)"],["âº","(E)"],["â»","(F)"],["â¼","(G)"],["â½","(H)"],["â¾","(I)"],["â¿","(J)"],["â","(K)"],["â","(L)"],["â","(N)"],["â","(O)"],["â
","(P)"],["â","(Q)"],["â","(R)"],["â","(S)"],["â","(T)"],["â","(U)"],["â","(V)"],["â","(W)"],["â","(X)"],["â","(Y)"],["â","(Z)"],["â","(a)"],["â","(b)"],["â","(c)"],["â","(d)"],["â","(e)"],["â","(f)"],["â","(g)"],["â","(h)"],["â","(i)"],["â","(j)"],["â","(k)"],["â","(l)"],["â","(m)"],["â","(n)"],["â","(o)"],["â","(p)"],["â ","(q)"],["â¡","(r)"],["â¢","(s)"],["â£","(t)"],["â¤","(u)"],["â¥","(v)"],["â¦","(w)"],["â§","(x)"],["â¨","(y)"],["â©","(z)"],["Ä","C"],["Ä","c"],["Ä ","G"],["Ä¡","g"],["Ħ","H"],["ħ","h"],["Å»","Z"],["ż","z"],["ð","0"],["ð","1"],["ð","2"],["ð","3"],["ð","4"],["ð","5"],["ð","6"],["ð","7"],["ð","8"],["ð","9"],["ð","0"],["ð","1"],["ð","2"],["ð","3"],["ð","4"],["ð","5"],["ð","6"],["ð","7"],["ð ","8"],["ð¡","9"],["ð¢","0"],["ð£","1"],["ð¤","2"],["ð¥","3"],["ð¦","4"],["ð§","5"],["ð¨","6"],["ð©","7"],["ðª","8"],["ð«","9"],["ð¬","0"],["ð","1"],["ð®","2"],["ð¯","3"],["ð°","4"],["ð±","5"],["ð²","6"],["ð³","7"],["ð´","8"],["ðµ","9"],["ð¶","0"],["ð·","1"],["ð¸","2"],["ð¹","3"],["ðº","4"],["ð»","5"],["ð¼","6"],["ð½","7"],["ð¾","8"],["ð¿","9"],["â ","1"],["â¡","2"],["â¢","3"],["â£","4"],["â¤","5"],["â¥","6"],["â¦","7"],["â§","8"],["â¨","9"],["â©","10"],["âª","11"],["â«","12"],["â¬","13"],["â","14"],["â®","15"],["â¯","16"],["â°","17"],["â±","18"],["â²","19"],["â³","20"],["â´","1"],["âµ","2"],["â¶","3"],["â·","4"],["â¸","5"],["â¹","6"],["âº","7"],["â»","8"],["â¼","9"],["â½","10"],["â¾","11"],["â¿","12"],["â","13"],["â","14"],["â","15"],["â","16"],["â","17"],["â
","18"],["â","19"],["â","20"],["â","1."],["â","2."],["â","3."],["â","4."],["â","5."],["â","6."],["â","7."],["â","8."],["â","9."],["â","10."],["â","11."],["â","12."],["â","13."],["â","14."],["â","15."],["â","16."],["â","17."],["â","18."],["â","19."],["â","20."],["âª","0"],["â«","11"],["â¬","12"],["â","13"],["â®","14"],["â¯","15"],["â°","16"],["â±","17"],["â²","18"],["â³","19"],["â´","20"],["âµ","1"],["â¶","2"],["â·","3"],["â¸","4"],["â¹","5"],["âº","6"],["â
52»","7"],["â¼","8"],["â½","9"],["â¾","10"],["â¿","0"],["ð°","&"],["ð±","&"],["ð²","&"],["ð³","&"],["ð´","&"],["ðµ","&"],["ð¶",'"'],["ð·",'"'],["ð¸",'"'],["â½","?!"],["ð¹","?!"],["ðº","?!"],["ð»","?!"],["ð¼","/"],["ð½","\\"],["ð","AR"],["ð","V"],["ð","V"],["ð","VR"],["ð
","VF"],["ð©","2"],["ðª","5"],["ð¡","f"],["ð¢","W"],["ð£","U"],["ð§","V"],["ð¨","T"],["ðª","V"],["ð«","MB"],["ð¬","VB"],["ð²","3B"],["ð³","3B"],["ð¯","100"],["ð","BACK"],["ð","END"],["ð","ON!"],["ð","SOON"],["ð","TOP"],["ð","18"],["ð¤","abc"],["ð ","ABCD"],["ð¡","abcd"],["ð¢","1234"],["ð£","T&@%"],["#ï¸â£","#"],["*ï¸â£","*"],["0ï¸â£","0"],["1ï¸â£","1"],["2ï¸â£","2"],["3ï¸â£","3"],["4ï¸â£","4"],["5ï¸â£","5"],["6ï¸â£","6"],["7ï¸â£","7"],["8ï¸â£","8"],["9ï¸â£","9"],["ð","10"],["ð
°ï¸","A"],["ð
±ï¸","B"],["ð","AB"],["ð","CL"],["ð
¾ï¸","O"],["ð
¿","P"],["ð","SOS"],["ð
²","C"],["ð
³","D"],["ð
´","E"],["ð
µ","F"],["ð
¶","G"],["ð
·","H"],["ð
¸","I"],["ð
¹","J"],["ð
º","K"],["ð
»","L"],["ð
¼","M"],["ð
½","N"],["ð","Q"],["ð","R"],["ð","S"],["ð","T"],["ð","U"],["ð
","V"],["ð","W"],["ð","X"],["ð","Y"],["ð","Z"],["â","-"],["â","-"]],danishNorwegianReplacements=[["æ","ae"],["Ã","Ae"],["ø","oe"],["Ã","Oe"],["Ã¥","aa"],["Ã
","Aa"]],localeReplacements={sv:[["ä","a"],["Ã","A"],["ö","o"],["Ã","O"],["Ã¥","a"],["Ã
","A"]],da:danishNorwegianReplacements,nb:danishNorwegianReplacements,de:[["ä","ae"],["Ã","Ae"],["ö","oe"],["Ã","Oe"],["ü","ue"],["Ã","Ue"],["Ã","ss"],["áº","Ss"]],tr:[["â","a"],["Ã","A"],["ö","o"],["Ã","O"],["ü","u"],["Ã","U"]],hu:[["ű","u"],["Ű","U"],["ö","o"],["Ã","O"],["ü","u"],["Ã","U"],["á","a"],["Ã","A"],["é","e"],["Ã","E"],["Ã","i"],["Ã","I"],["ó","o"],["Ã","O"],["ú","u"],["Ã","U"]],sr:[["Ñ","dj"],["Ð","Dj"],["Ñ","dz"],["Ð","Dz"],["Ñ","lj"],["Ð","Lj"],["Ñ","nj"],["Ð","Nj"],["Ñ","c"],["Ð","C"],["Ñ","ch"],["Ч","Ch"],["Ñ","sh"],["Ш","Sh"],["ж","zh"],["Ð","Zh"]]},doCustomReplacements=(n,i)=>{for(const[t,e]of i)n=n.replaceAll(t,e);return n},getLocaleReplacements=n=>{if(!n)return[];const i=n.toLowerCase().replace(/^no(-|$)/,"nb$1");return localeReplacements[i]||localeReplacements[i.split("-")[0]]||[]};function transliterate(n,i){if(typeof n!="string")throw new TypeError(`Expected a string, got \`${typeof n}\``);i={customReplacements:[],...i};const t=getLocaleReplacements(i.locale),e=new Map([...replacements,...t,...i.customReplacements]);return n=n.normalize(),n=doCustomReplacements(n,e),n=n.normalize("NFD").replaceAll(new RegExp("\\p{Diacritic}","gu"),"").normalize(),n=n.replaceAll(new RegExp("\\p{Dash_Punctuation}","gu"),"-"),n}const overridableReplacements=[["&"," and "],["ð¦"," unicorn "],["â¥"," love "]],decamelize=n=>n.replaceAll(/([A-Z]{2,})(\d+)/g,"$1 $2").replaceAll(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replaceAll(/([a-z\d])([A-Z])/g,"$1 $2").replaceAll(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),removeMootSeparators=(n,i)=>{const t=escapeStringRegexp$1(i);return n.replaceAll(new RegExp(`(?:${t}){2,}`,"g"),i).replaceAll(new RegExp(`^(?:${t})|(?:${t})$`,"g"),"")},buildPatternSlug=n=>{let i=String.raw`a-z\d`;if(i+=n.lowercase?"":"A-Z",n.transliterate===!1&&(i+=String.raw`\p{L}\p{N}`),n.preserveCharacters.length>0)for(const e of n.preserveCharacters){if(e===n.separator)throw new Error(`The separator character \`${n.separator}\` cannot be included in preserved characters: ${n.preserveCharacters}`);i+=escapeStringRegexp$1(e)}const t=n.transliterate?"g":"gu";return new RegExp(`[^${i}]+`,t)};function slugify(n,i){if(typeof n!="string")throw new TypeError(`Expected a string, got \`${typeof n}\``);i={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],transliterate:!0,...i};const t=i.preserveLeadingUnderscore&&n.startsWith("_"),e=i.preserveTrailingDash&&n.endsWith("-");if(i.transliterate){const d=new Map([...overridableReplacements,...i.customReplacements]);n=transliterate(n,{customReplacements:d,locale:i.locale})}else if(i.customReplacements.length>0)for(const[d,p]of i.customReplacements)n=n.replaceAll(d,p);i.decamelize&&(n=decamelize(n));const o=buildPatternSlug(i);return i.lowercase&&(n=i.locale?n.toLocaleLowerCase(i.locale):n.toLowerCase()),n=n.replaceAll(/([a-zA-Z\d]+)['\u2019]([ts])(\s|$)/g,"$1$2$3"),n=n.replace(o,i.separator),n=n.replaceAll("\\",""),i.separator&&(n=removeMootSeparators(n,i.separator)),t&&(n=`_${n}`),e&&(n=`${n}-`),n}
vendor: 4,284 bytes, line 52
52function escapeStringRegexp(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const convert=(function(n){if(n==null)return ok$1;if(typeof n=="function")return castFactory(n);if(typeof n=="object")return Array.isArray(n)?anyFactory(n):propsFactory(n);if(typeof n=="string")return typeFactory(n);throw new Error("Expected function, string, or object as test")});function anyFactory(n){const i=[];let t=-1;for(;++t<n.length;)i[t]=convert(n[t]);return castFactory(e);function e(...o){let d=-1;for(;++d<i.length;)if(i[d].apply(this,o))return!0;return!1}}function propsFactory(n){const i=n;return castFactory(t);function t(e){const o=e;let d;for(d in n)if(o[d]!==i[d])return!1;return!0}}function typeFactory(n){return castFactory(i);function i(t){return t&&t.type===n}}function castFactory(n){return i;function i(t,e,o){return!!(looksLikeANode(t)&&n.call(this,t,typeof e=="number"?e:void 0,o||void 0))}}function ok$1(){return!0}function looksLikeANode(n){return n!==null&&typeof n=="object"&&"type"in n}function color(n){return n}const empty$1=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(n,i,t,e){let o;typeof i=="function"&&typeof t!="function"?(e=t,t=i):o=i;const d=convert(o),p=e?-1:1;h(n,void 0,[])();function h(y,E,$){const M=y&&typeof y=="object"?y:{};if(typeof M.type=="string"){const Z=typeof M.tagName=="string"?M.tagName:typeof M.name=="string"?M.name:void 0;Object.defineProperty(X,"name",{value:"node ("+(y.type+(Z?"<"+Z+">":""))+")"})}return X;function X(){let Z=empty$1,ye,be,we;if((!i||d(y,E,$[$.length-1]||void 0))&&(Z=toResult(t(y,$)),Z[0]===EXIT))return Z;if("children"in y&&y.children){const xe=y;if(xe.children&&Z[0]!==SKIP)for(be=(e?xe.children.length:-1)+p,we=$.concat(xe);be>-1&&be<xe.children.length;){const $e=xe.children[be];if(ye=h($e,be,we)(),ye[0]===EXIT)return ye;be=typeof ye[1]=="number"?ye[1]:be+p}}return Z}}}function toResult(n){return Array.isArray(n)?n:typeof n=="number"?[CONTINUE,n]:n==null?empty$1:[n]}function findAndReplace(n,i,t){const o=convert((t||{}).ignore||[]),d=toPairs(i);let p=-1;for(;++p<d.length;)visitParents(n,"text",h);function h(E,$){let M=-1,X;for(;++M<$.length;){const Z=$[M],ye=X?X.children:void 0;if(o(Z,ye?ye.indexOf(Z):void 0,X))return;X=Z}if(X)return y(E,$)}function y(E,$){const M=$[$.length-1],X=d[p][0],Z=d[p][1];let ye=0;const we=M.children.indexOf(E);let xe=!1,$e=[];X.lastIndex=0;let Ne=X.exec(E.value);for(;Ne;){const Fe=Ne.index,De={index:Ne.index,input:Ne.input,stack:[...$,E]};let Le=Z(...Ne,De);if(typeof Le=="string"&&(Le=Le.length>0?{type:"text",value:Le}:void 0),Le===!1?X.lastIndex=Fe+1:(ye!==Fe&&$e.push({type:"text",value:E.value.slice(ye,Fe)}),Array.isArray(Le)?$e.push(...Le):Le&&$e.push(Le),ye=Fe+Ne[0].length,xe=!0),!X.global)break;Ne=X.exec(E.value)}return xe?(ye<E.value.length&&$e.push({type:"text",value:E.value.slice(ye)}),M.children.splice(we,1,...$e)):$e=[E],we+$e.length}}function toPairs(n){const i=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!n[0]||Array.isArray(n[0])?n:[n];let e=-1;for(;++e<t.length;){const o=t[e];i.push([toExpression(o[0]),toFunction(o[1])])}return i}function toExpression(n){return typeof n=="string"?new RegExp(escapeStringRegexp(n),"g"):n}function toFunction(n){return typeof n=="function"?n:function(){return n}}function ok(){}function unreachable(){}function parse$3(n){const i=[],t=String(n||"");let e=t.indexOf(","),o=0,d=!1;for(;!d;){e===-1&&(e=t.length,d=!0);const p=t.slice(o,e).trim();(p||!d)&&i.push(p),o=e+1,e=t.indexOf(",",o)}return i}function stringify$2(n,i){const t={};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$5={};function name(n,i){return(emptyOptions$5.jsx?nameReJsx:nameRe).test(n)}const re=/[ \t\n\f\r]/g;function whitespace(n){return typeof n=="object"?n.type==="text"?empty(n.value):!1:empty(n)}function empty(n){return n.replace(re,"")===""}class Schema{constructor(i,t,e){this.normal=t,this.property=i,e&&(this.space=e)}}Schema.prototype.normal={};Schema.prototype.property={};
vendor: 4,716 bytes, line 52
52Schema.prototype.space=void 0;function merge(n,i){const t={},e={};for(const o of n)Object.assign(t,o.property),Object.assign(e,o.normal);return new Schema(t,e,i)}function normalize$1(n){return n.toLowerCase()}class Info{constructor(i,t){this.attribute=t,this.property=i}}Info.prototype.attribute="";Info.prototype.booleanish=!1;Info.prototype.boolean=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.commaSeparated=!1;Info.prototype.defined=!1;Info.prototype.mustUseProperty=!1;Info.prototype.number=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.property="";Info.prototype.spaceSeparated=!1;Info.prototype.space=void 0;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types$1=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types$1);class DefinedInfo extends Info{constructor(i,t,e,o){let d=-1;if(super(i,t),mark$1(this,"space",o),typeof e=="number")for(;++d<checks.length;){const p=checks[d];mark$1(this,checks[d],(e&types$1[p])===types$1[p])}}}DefinedInfo.prototype.defined=!0;function mark$1(n,i,t){t&&(n[i]=t)}function create(n){const i={},t={};for(const[e,o]of Object.entries(n.properties)){const d=new DefinedInfo(e,n.transform(n.attributes||{},e),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(e)&&(d.mustUseProperty=!0),i[e]=d,t[normalize$1(e)]=e,t[normalize$1(d.attribute)]=e}return new Schema(i,t,n.space)}const aria=create({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null},transform(n,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function caseSensitiveTransform(n,i){return i in n?n[i]:i}function caseInsensitiveTransform(n,i){return caseSensitiveTransform(n,i.toLowerCase())}const html$3=create({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:overloadedBoolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,onAbort:null,onAfterPrint:null,onAuxCl
52ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform}),svg$1=create({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
52-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackgroun
52d:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform}),xlink=create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 7,997 bytes, lines 52-53
52,space:"xlink",transform(n,i){return"xlink:"+i.slice(5).toLowerCase()}}),xmlns=create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform}),xml=create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,i){return"xml:"+i.slice(3).toLowerCase()}}),hastToReact={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},cap$1=/[A-Z]/g,dash=/-[a-z]/g,valid=/^data[-\w.:]+$/i;function find(n,i){const t=normalize$1(i);let e=i,o=Info;if(t in n.normal)return n.property[n.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&valid.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(dash,camelcase);e="data"+d.charAt(0).toUpperCase()+d.slice(1)}else{const d=i.slice(4);if(!dash.test(d)){let p=d.replace(cap$1,kebab);p.charAt(0)!=="-"&&(p="-"+p),i="data"+p}}o=DefinedInfo}return new o(e,i)}function kebab(n){return"-"+n.toLowerCase()}function camelcase(n){return n.charAt(1).toUpperCase()}const html$2=merge([aria,html$3,xlink,xmlns,xml],"html"),svg=merge([aria,svg$1,xlink,xmlns,xml],"svg");function parse$2(n){const i=String(n||"").trim();return i?i.split(/[ \t\n\r\f]+/g):[]}function stringify$1(n){return n.join(" ").trim()}var cjs$1={},inlineStyleParser,hasRequiredInlineStyleParser;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,t=/^\s*/,e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p=/^[;\s]*/,h=/^\s+|\s+$/g,y=` 53`,E="/",$="*",M="",X="comment",Z="declaration";inlineStyleParser=function(be,we){if(typeof be!="string")throw new TypeError("First argument must be a string");if(!be)return[];we=we||{};var xe=1,$e=1;function Ne(et){var Qe=et.match(i);Qe&&(xe+=Qe.length);var ze=et.lastIndexOf(y);$e=~ze?et.length-ze:$e+et.length}function Fe(){var et={line:xe,column:$e};return function(Qe){return Qe.position=new De(et),Ke(),Qe}}function De(et){this.start=et,this.end={line:xe,column:$e},this.source=we.source}De.prototype.content=be;function Le(et){var Qe=new Error(we.source+":"+xe+":"+$e+": "+et);if(Qe.reason=et,Qe.filename=we.source,Qe.line=xe,Qe.column=$e,Qe.source=be,!we.silent)throw Qe}function He(et){var Qe=et.exec(be);if(Qe){var ze=Qe[0];return Ne(ze),be=be.slice(ze.length),Qe}}function Ke(){He(t)}function je(et){var Qe;for(et=et||[];Qe=Ve();)Qe!==!1&&et.push(Qe);return et}function Ve(){var et=Fe();if(!(E!=be.charAt(0)||$!=be.charAt(1))){for(var Qe=2;M!=be.charAt(Qe)&&($!=be.charAt(Qe)||E!=be.charAt(Qe+1));)++Qe;if(Qe+=2,M===be.charAt(Qe-1))return Le("End of comment missing");var ze=be.slice(2,Qe-2);return $e+=2,Ne(ze),be=be.slice(Qe),$e+=2,et({type:X,comment:ze})}}function qe(){var et=Fe(),Qe=He(e);if(Qe){if(Ve(),!He(o))return Le("property missing ':'");var ze=He(d),st=et({type:Z,property:ye(Qe[0].replace(n,M)),value:ze?ye(ze[0].replace(n,M)):M});return He(p),st}}function Ye(){var et=[];je(et);for(var Qe;Qe=qe();)Qe!==!1&&(et.push(Qe),je(et));return et}return Ke(),Ye()};function ye(be){return be?be.replace(h,M):M}return inlineStyleParser}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$1;hasRequiredCjs$1=1;var n=cjs$1&&cjs$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cjs$1,"__esModule",{value:!0}),cjs$1.default=t;var i=n(requireInlineStyleParser());function t(e,o){var d=null;if(!e||typeof e!="string")return d;var p=(0,i.default)(e),h=typeof o=="function";return p.forEach(function(y){if(y.type==="declaration"){var E=y.property,$=y.value;h?o(E,$,y):$&&(d=d||{},d[E]=$)}}),d}return cjs$1}var utilities={},hasRequiredUtilities;function requireUtilities(){if(hasRequiredUtilities)return utilities;hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,t=/^[^-]+$/,e=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,d=function(E){return!E||t.test(E)||n.test(E)},p=function(E,$){return $.toUpperCase()},h=function(E,$){return"".concat($,"-")},y=function(E,$){return $===void 0&&($={}),d(E)?E:(E=E.toLowerCase(),$.reactCompat?E=E.replace(o,h):E=E.replace(e,h),E.replace(i,p))};return utilities.camelCase=y,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var n=cjs&&cjs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},i=n(requireCjs$1()),t=requireUtilities();function e(o,d){var p={};return!o||typeof o!="string"||(0,i.default)(o,function(h,y){h&&y&&(p[(0,t.camelCase)(h,d)]=y)}),p}return e.default=e,cjs=e,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(n){return i;function i(t){const e=t&&t.position&&t.position[n]||{};if(typeof e.line=="number"&&e.line>0&&typeof e.column=="number"&&e.column>0)return{line:e.line,column:e.column,offset:typeof e.offset=="number"&&e.offset>-1?e.offset:void 0}}}function position$1(n){const i=pointStart(n),t=pointEnd(n);if(i&&t)return{start:i,end:t}}function stringifyPosition(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?position(n.position):"start"in n||"end"in n?position(n):"line"in n||"column"in n?point$1(n):""}function point$1(n){return index$1(n&&n.line)+":"+index$1(n&&n.column)}function position(n){return point$1(n&&n.start)+"-"+point$1(n&&n.end)}function index$1(n){return n&&typeof n=="number"?n:1}class VFileMessage extends Error{constructor(i,t,e){super(),typeof t=="string"&&(e=t,t=void 0);let o="",d={},p=!1;if(t&&("line"in t&&"column"in t?d={place:t}:"start"in t&&"end"in t?d={place:t}:"type"in t?d={ancestors:[t],place:t.position}:d={...t}),typeof i=="string"?o=i:!d.cause&&i&&(p=!0,o=i.message,d.cause=i),!d.ruleId&&!d.source&&typeof e=="string"){const y=e.indexOf(":");y===-1?d.ruleId=e:(d.source=e.slice(0,y),d.ruleId=e.slice(y+1))}if(!d.place&&d.ancestors&&d.ancestors){const y=d.ancestors[d.ancestors.length-1];y&&(d.place=y.position)}const h=d.place&&"start"in d.place?d.place.start:d.place;this.ancestors=d.ancestors||void 0,this.cause=d.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=h?h.line:void 0,this.name=stringifyPosition(d.place)||"1:1",this.place=d.place||void 0,this.reason=this.message,this.ruleId=d.ruleId||void 0,this.source=d.source||void 0,this.stack=p&&d.cause&&typeof d.cause.stack=="string"?d.cause.stack:"",this.actual,this.expected,this.note,this.url}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$4={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(n,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=i.filePath||void 0;let e;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");e=developmentCreate(t,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 4,389 bytes, line 53
53if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");e=productionCreate(t,i.jsx,i.jsxs)}const o={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:e,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?svg:html$2,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},d=one$1(o,n,void 0);return d&&typeof d!="string"?d:o.create(n,o.Fragment,{children:d||void 0},void 0)}function one$1(n,i,t){if(i.type==="element")return element$1(n,i,t);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return mdxExpression(n,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return mdxJsxElement(n,i,t);if(i.type==="mdxjsEsm")return mdxEsm(n,i);if(i.type==="root")return root$3(n,i,t);if(i.type==="text")return text$5(n,i)}function element$1(n,i,t){const e=n.schema;let o=e;i.tagName.toLowerCase()==="svg"&&e.space==="html"&&(o=svg,n.schema=o),n.ancestors.push(i);const d=findComponentFromName(n,i.tagName,!1),p=createElementProps(n,i);let h=createChildren(n,i);return tableElements.has(i.tagName)&&(h=h.filter(function(y){return typeof y=="string"?!whitespace(y):!0})),addNode(n,p,d,i),addChildren(p,h),n.ancestors.pop(),n.schema=e,n.create(i,d,p,t)}function mdxExpression(n,i){if(i.data&&i.data.estree&&n.evaluater){const e=i.data.estree.body[0];return e.type,n.evaluater.evaluateExpression(e.expression)}crashEstree(n,i.position)}function mdxEsm(n,i){if(i.data&&i.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(i.data.estree);crashEstree(n,i.position)}function mdxJsxElement(n,i,t){const e=n.schema;let o=e;i.name==="svg"&&e.space==="html"&&(o=svg,n.schema=o),n.ancestors.push(i);const d=i.name===null?n.Fragment:findComponentFromName(n,i.name,!0),p=createJsxElementProps(n,i),h=createChildren(n,i);return addNode(n,p,d,i),addChildren(p,h),n.ancestors.pop(),n.schema=e,n.create(i,d,p,t)}function root$3(n,i,t){const e={};return addChildren(e,createChildren(n,i)),n.create(i,n.Fragment,e,t)}function text$5(n,i){return i.value}function addNode(n,i,t,e){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(i.node=e)}function addChildren(n,i){if(i.length>0){const t=i.length>1?i:i[0];t&&(n.children=t)}}function productionCreate(n,i,t){return e;function e(o,d,p,h){const E=Array.isArray(p.children)?t:i;return h?E(d,p,h):E(d,p)}}function developmentCreate(n,i){return t;function t(e,o,d,p){const h=Array.isArray(d.children),y=pointStart(e);return i(o,d,p,h,{columnNumber:y?y.column-1:void 0,fileName:n,lineNumber:y?y.line:void 0},void 0)}}function createElementProps(n,i){const t={};let e,o;for(o in i.properties)if(o!=="children"&&own$4.call(i.properties,o)){const d=createProperty(n,o,i.properties[o]);if(d){const[p,h]=d;n.tableCellAlignToStyle&&p==="align"&&typeof h=="string"&&tableCellElement.has(i.tagName)?e=h:t[p]=h}}if(e){const d=t.style||(t.style={});d[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=e}return t}function createJsxElementProps(n,i){const t={};for(const e of i.attributes)if(e.type==="mdxJsxExpressionAttribute")if(e.data&&e.data.estree&&n.evaluater){const d=e.data.estree.body[0];d.type;const p=d.expression;p.type;const h=p.properties[0];h.type,Object.assign(t,n.evaluater.evaluateExpression(h.argument))}else crashEstree(n,i.position);else{const o=e.name;let d;if(e.value&&typeof e.value=="object")if(e.value.data&&e.value.data.estree&&n.evaluater){const h=e.value.data.estree.body[0];h.type,d=n.evaluater.evaluateExpression(h.expression)}else crashEstree(n,i.position);else d=e.value===null?!0:e.value;t[o]=d}return t}function createChildren(n,i){const t=[];let e=-1;const o=n.passKeys?new Map:emptyMap;for(;++e<i.children.length;){const d=i.children[e];let p;if(n.passKeys){const y=d.type==="element"?d.tagName:d.type==="mdxJsxFlowElement"||d.type==="mdxJsxTextElement"?d.name:void 0;if(y){const E=o.get(y)||0;p=y+"-"+E,o.set(y,E+1)}}const h=one$1(n,d,p);h!==void 0&&t.push(h)}return t}function createProperty(n,i,t){const e=find(n.schema,i);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=e.commaSeparated?stringify$2(t):stringify$1(t)),e.property==="style"){let o=typeof t=="object"?t:parseStyle(n,Str
vendor: 7,132 bytes, line 53
53ing(t));return n.stylePropertyNameCase==="css"&&(o=transformStylesToCssCasing(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&e.space?hastToReact[e.property]||e.property:e.attribute,t]}}function parseStyle(n,i){try{return styleToJs(i,{reactCompat:!0})}catch(t){if(n.ignoreInvalidStyle)return{};const e=t,o=new VFileMessage("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:e,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=docs+"#cannot-parse-style-attribute",o}}function findComponentFromName(n,i,t){let e;if(!t)e={type:"Literal",value:i};else if(i.includes(".")){const o=i.split(".");let d=-1,p;for(;++d<o.length;){const h=name(o[d])?{type:"Identifier",name:o[d]}:{type:"Literal",value:o[d]};p=p?{type:"MemberExpression",object:p,property:h,computed:!!(d&&h.type==="Literal"),optional:!1}:h}e=p}else e=name(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(e.type==="Literal"){const o=e.value;return own$4.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(e);crashEstree(n)}function crashEstree(n,i){const t=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=n.filePath||void 0,t.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",t}function transformStylesToCssCasing(n){const i={};let t;for(t in n)own$4.call(n,t)&&(i[transformStyleToCssCasing(t)]=n[t]);return i}function transformStyleToCssCasing(n){let i=n.replace(cap,toDash);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function toDash(n){return"-"+n.toLowerCase()}const urlAttributes={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},emptyOptions$4={};function toString$1(n,i){const t=emptyOptions$4,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,o=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return one(n,e,o)}function one(n,i,t){if(node(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(i&&"alt"in n&&n.alt)return n.alt;if("children"in n)return all(n.children,i,t)}return Array.isArray(n)?all(n,i,t):""}function all(n,i,t){const e=[];let o=-1;for(;++o<n.length;)e[o]=one(n[o],i,t);return e.join("")}function node(n){return!!(n&&typeof n=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(n){const i="&"+n+";";element.innerHTML=i;const t=element.textContent;return t.charCodeAt(t.length-1)===59&&n!=="semi"||t===i?!1:t}function splice(n,i,t,e){const o=n.length;let d=0,p;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,t=t>0?t:0,e.length<1e4)p=Array.from(e),p.unshift(i,t),n.splice(...p);else for(t&&n.splice(i,t);d<e.length;)p=e.slice(d,d+1e4),p.unshift(i,0),n.splice(...p),d+=1e4,i+=1e4}function push(n,i){return n.length>0?(splice(n,n.length,0,i),n):i}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(n){const i={};let t=-1;for(;++t<n.length;)syntaxExtension(i,n[t]);return i}function syntaxExtension(n,i){let t;for(t in i){const o=(hasOwnProperty.call(n,t)?n[t]:void 0)||(n[t]={}),d=i[t];let p;if(d)for(p in d){hasOwnProperty.call(o,p)||(o[p]=[]);const h=d[p];constructs(o[p],Array.isArray(h)?h:h?[h]:[])}}}function constructs(n,i){let t=-1;const e=[];for(;++t<i.length;)(i[t].add==="after"?n:e).push(i[t]);splice(n,0,0,e)}function decodeNumericCharacterReference(n,i){const t=Number.parseInt(n,i);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function normalizeIdentifier(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(n){return n!==null&&(n<32||n===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(n){return n!==null&&n<-2}function markdownLineEndingOrSpace(n){return n!==null&&(n<0||n===32)}function markdownSpace(n){return n===-2||n===-1||n===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(n){return i;function i(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function normalizeUri(n){const i=[];let t=-1,e=0,o=0;for(;++t<n.length;){const d=n.charCodeAt(t);let p="";if(d===37&&asciiAlphanumeric(n.charCodeAt(t+1))&&asciiAlphanumeric(n.charCodeAt(t+2)))o=2;else if(d<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(d))||(p=String.fromCharCode(d));else if(d>55295&&d<57344){const h=n.charCodeAt(t+1);d<56320&&h>56319&&h<57344?(p=String.fromCharCode(d,h),o=1):p="�"}else p=String.fromCharCode(d);p&&(i.push(n.slice(e,t),encodeURIComponent(p)),e=t+o+1,p=""),o&&(t+=o,o=0)}return i.join("")+n.slice(e)}function factorySpace(n,i,t,e){const o=e?e-1:Number.POSITIVE_INFINITY;let d=0;return p;function p(y){return markdownSpace(y)?(n.enter(t),h(y)):i(y)}function h(y){return markdownSpace(y)&&d++<o?(n.consume(y),h):(n.exit(t),i(y))}}const content$1={tokenize:initializeContent};function initializeContent(n){const i=n.attempt(this.parser.constructs.contentInitial,e,o);let t;return i;function e(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),factorySpace(n,i,"linePrefix")}function o(h){return n.enter("paragraph"),d(h)}function d(h){const y=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=y),t=y,p(h)}function p(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return markdownLineEnding(h)?(n.consume(h),n.exit("chunkText"),d):(n.consume(h),p)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(n){const i=this,t=[];let e=0,o,d,p;return h;function h(Ne){if(e<t.length){const Fe=t[e];return i.containerState=Fe[1],n.attempt(Fe[0].continuation,y,E)(Ne)}return E(Ne)}function y(Ne){if(e++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&$e();const Fe=i.events.length;let De=Fe,Le;for(;De--;)if(i.events[De][0]==="exit"&&i.events[De][1].type==="chunkFlow"){Le=i.events[De][1].end;break}xe(e);let He=Fe;for(;He<i.events.length;)i.events[He][1].end={...Le},He++;return splice(i.events,De+1,0,i.events.slice(Fe)),i.events.length=He,E(Ne)}return h(Ne)}function E(Ne){if(e===t.length){if(!o)return X(Ne);if(o.currentConstruct&&o.currentConstruct.concrete)return ye(Ne);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},n.check(containerConstruct,$,M)(Ne)}function $(Ne){return o&&$e(),xe(e),X(Ne)}function M(Ne){return i.parser.lazy[i.now().line]=e!==t.length,p=i.now().offset,ye(Ne)}function X(Ne){return i.containerState={},n.attempt(containerConstruct,Z,ye)(Ne)}
vendor: 42,247 bytes, line 53
53function Z(Ne){return e++,t.push([i.currentConstruct,i.containerState]),X(Ne)}function ye(Ne){if(Ne===null){o&&$e(),xe(0),n.consume(Ne);return}return o=o||i.parser.flow(i.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:d}),be(Ne)}function be(Ne){if(Ne===null){we(n.exit("chunkFlow"),!0),xe(0),n.consume(Ne);return}return markdownLineEnding(Ne)?(n.consume(Ne),we(n.exit("chunkFlow")),e=0,i.interrupt=void 0,h):(n.consume(Ne),be)}function we(Ne,Fe){const De=i.sliceStream(Ne);if(Fe&&De.push(null),Ne.previous=d,d&&(d.next=Ne),d=Ne,o.defineSkip(Ne.start),o.write(De),i.parser.lazy[Ne.start.line]){let Le=o.events.length;for(;Le--;)if(o.events[Le][1].start.offset<p&&(!o.events[Le][1].end||o.events[Le][1].end.offset>p))return;const He=i.events.length;let Ke=He,je,Ve;for(;Ke--;)if(i.events[Ke][0]==="exit"&&i.events[Ke][1].type==="chunkFlow"){if(je){Ve=i.events[Ke][1].end;break}je=!0}for(xe(e),Le=He;Le<i.events.length;)i.events[Le][1].end={...Ve},Le++;splice(i.events,Ke+1,0,i.events.slice(He)),i.events.length=Le}}function xe(Ne){let Fe=t.length;for(;Fe-- >Ne;){const De=t[Fe];i.containerState=De[1],De[0].exit.call(i,n)}t.length=Ne}function $e(){o.write([null]),d=void 0,o=void 0,i.containerState._closeFlow=void 0}}function tokenizeContainer(n,i,t){return factorySpace(n,n.attempt(this.parser.constructs.document,i,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(n){if(n===null||markdownLineEndingOrSpace(n)||unicodeWhitespace(n))return 1;if(unicodePunctuation(n))return 2}function resolveAll(n,i,t){const e=[];let o=-1;for(;++o<n.length;){const d=n[o].resolveAll;d&&!e.includes(d)&&(i=d(i,t),e.push(d))}return i}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(n,i){let t=-1,e,o,d,p,h,y,E,$;for(;++t<n.length;)if(n[t][0]==="enter"&&n[t][1].type==="attentionSequence"&&n[t][1]._close){for(e=t;e--;)if(n[e][0]==="exit"&&n[e][1].type==="attentionSequence"&&n[e][1]._open&&i.sliceSerialize(n[e][1]).charCodeAt(0)===i.sliceSerialize(n[t][1]).charCodeAt(0)){if((n[e][1]._close||n[t][1]._open)&&(n[t][1].end.offset-n[t][1].start.offset)%3&&!((n[e][1].end.offset-n[e][1].start.offset+n[t][1].end.offset-n[t][1].start.offset)%3))continue;y=n[e][1].end.offset-n[e][1].start.offset>1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const M={...n[e][1].end},X={...n[t][1].start};movePoint(M,-y),movePoint(X,y),p={type:y>1?"strongSequence":"emphasisSequence",start:M,end:{...n[e][1].end}},h={type:y>1?"strongSequence":"emphasisSequence",start:{...n[t][1].start},end:X},d={type:y>1?"strongText":"emphasisText",start:{...n[e][1].end},end:{...n[t][1].start}},o={type:y>1?"strong":"emphasis",start:{...p.start},end:{...h.end}},n[e][1].end={...p.start},n[t][1].start={...h.end},E=[],n[e][1].end.offset-n[e][1].start.offset&&(E=push(E,[["enter",n[e][1],i],["exit",n[e][1],i]])),E=push(E,[["enter",o,i],["enter",p,i],["exit",p,i],["enter",d,i]]),E=push(E,resolveAll(i.parser.constructs.insideSpan.null,n.slice(e+1,t),i)),E=push(E,[["exit",d,i],["enter",h,i],["exit",h,i],["exit",o,i]]),n[t][1].end.offset-n[t][1].start.offset?($=2,E=push(E,[["enter",n[t][1],i],["exit",n[t][1],i]])):$=0,splice(n,e-1,t-e+3,E),t=e+E.length-$-2;break}}for(t=-1;++t<n.length;)n[t][1].type==="attentionSequence"&&(n[t][1].type="data");return n}function tokenizeAttention(n,i){const t=this.parser.constructs.attentionMarkers.null,e=this.previous,o=classifyCharacter(e);let d;return p;function p(y){return d=y,n.enter("attentionSequence"),h(y)}function h(y){if(y===d)return n.consume(y),h;const E=n.exit("attentionSequence"),$=classifyCharacter(y),M=!$||$===2&&o||t.includes(y),X=!o||o===2&&$||t.includes(e);return E._open=!!(d===42?M:M&&(o||!X)),E._close=!!(d===42?X:X&&($||!M)),i(y)}}function movePoint(n,i){n.column+=i,n.offset+=i,n._bufferIndex+=i}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(n,i,t){let e=0;return o;function o(Z){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(Z),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),d}function d(Z){return asciiAlpha(Z)?(n.consume(Z),p):Z===64?t(Z):E(Z)}function p(Z){return Z===43||Z===45||Z===46||asciiAlphanumeric(Z)?(e=1,h(Z)):E(Z)}function h(Z){return Z===58?(n.consume(Z),e=0,y):(Z===43||Z===45||Z===46||asciiAlphanumeric(Z))&&e++<32?(n.consume(Z),h):(e=0,E(Z))}function y(Z){return Z===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(Z),n.exit("autolinkMarker"),n.exit("autolink"),i):Z===null||Z===32||Z===60||asciiControl(Z)?t(Z):(n.consume(Z),y)}function E(Z){return Z===64?(n.consume(Z),$):asciiAtext(Z)?(n.consume(Z),E):t(Z)}function $(Z){return asciiAlphanumeric(Z)?M(Z):t(Z)}function M(Z){return Z===46?(n.consume(Z),e=0,$):Z===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(Z),n.exit("autolinkMarker"),n.exit("autolink"),i):X(Z)}function X(Z){if((Z===45||asciiAlphanumeric(Z))&&e++<63){const ye=Z===45?X:M;return n.consume(Z),ye}return t(Z)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(n,i,t){return e;function e(d){return markdownSpace(d)?factorySpace(n,o,"linePrefix")(d):o(d)}function o(d){return d===null||markdownLineEnding(d)?i(d):t(d)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$2,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(n,i,t){const e=this;return o;function o(p){if(p===62){const h=e.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(p),n.exit("blockQuoteMarker"),d}return t(p)}function d(p){return markdownSpace(p)?(n.enter("blockQuotePrefixWhitespace"),n.consume(p),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),i):(n.exit("blockQuotePrefix"),i(p))}}function tokenizeBlockQuoteContinuation(n,i,t){const e=this;return o;function o(p){return markdownSpace(p)?factorySpace(n,d,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):d(p)}function d(p){return n.attempt(blockQuote,i,t)(p)}}function exit$2(n){n.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(n,i,t){return e;function e(d){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(d),n.exit("escapeMarker"),o}function o(d){return asciiPunctuation(d)?(n.enter("characterEscapeValue"),n.consume(d),n.exit("characterEscapeValue"),n.exit("characterEscape"),i):t(d)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(n,i,t){const e=this;let o=0,d,p;return h;function h(M){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(M),n.exit("characterReferenceMarker"),y}function y(M){return M===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(M),n.exit("characterReferenceMarkerNumeric"),E):(n.enter("characterReferenceValue"),d=31,p=asciiAlphanumeric,$(M))}function E(M){return M===88||M===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(M),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),d=6,p=asciiHexDigit,$):(n.enter("characterReferenceValue"),d=7,p=asciiDigit,$(M))}function $(M){if(M===59&&o){const X=n.exit("characterReferenceValue");return p===asciiAlphanumeric&&!decodeNamedCharacterReference(e.sliceSerialize(X))?t(M):(n.enter("characterReferenceMarker"),n.consume(M),n.exit("characterReferenceMarker"),n.exit("characterReference"),i)}return p(M)&&o++<d?(n.consume(M),$):t(M)}}const nonLazyContinuation$1={partial:!0,tokenize:tokenizeNonLazyContinuation$1},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(n,i,t){const e=this,o={partial:!0,tokenize:De};let d=0,p=0,h;return y;function y(Le){return E(Le)}function E(Le){const He=e.events[e.events.length-1];return d=He&&He[1].type==="linePrefix"?He[2].sliceSerialize(He[1],!0).length:0,h=Le,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),$(Le)}function $(Le){return Le===h?(p++,n.consume(Le),$):p<3?t(Le):(n.exit("codeFencedFenceSequence"),markdownSpace(Le)?factorySpace(n,M,"whitespace")(Le):M(Le))}function M(Le){return Le===null||markdownLineEnding(Le)?(n.exit("codeFencedFence"),e.interrupt?i(Le):n.check(nonLazyContinuation$1,be,Fe)(Le)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),X(Le))}function X(Le){return Le===null||markdownLineEnding(Le)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),M(Le)):markdownSpace(Le)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),factorySpace(n,Z,"whitespace")(Le)):Le===96&&Le===h?t(Le):(n.consume(Le),X)}function Z(Le){return Le===null||markdownLineEnding(Le)?M(Le):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),ye(Le))}function ye(Le){return Le===null||markdownLineEnding(Le)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),M(Le)):Le===96&&Le===h?t(Le):(n.consume(Le),ye)}function be(Le){return n.attempt(o,Fe,we)(Le)}function we(Le){return n.enter("lineEnding"),n.consume(Le),n.exit("lineEnding"),xe}function xe(Le){return d>0&&markdownSpace(Le)?factorySpace(n,$e,"linePrefix",d+1)(Le):$e(Le)}function $e(Le){return Le===null||markdownLineEnding(Le)?n.check(nonLazyContinuation$1,be,Fe)(Le):(n.enter("codeFlowValue"),Ne(Le))}function Ne(Le){return Le===null||markdownLineEnding(Le)?(n.exit("codeFlowValue"),$e(Le)):(n.consume(Le),Ne)}function Fe(Le){return n.exit("codeFenced"),i(Le)}function De(Le,He,Ke){let je=0;return Ve;function Ve(ze){return Le.enter("lineEnding"),Le.consume(ze),Le.exit("lineEnding"),qe}function qe(ze){return Le.enter("codeFencedFence"),markdownSpace(ze)?factorySpace(Le,Ye,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ze):Ye(ze)}function Ye(ze){return ze===h?(Le.enter("codeFencedFenceSequence"),et(ze)):Ke(ze)}function et(ze){return ze===h?(je++,Le.consume(ze),et):je>=p?(Le.exit("codeFencedFenceSequence"),markdownSpace(ze)?factorySpace(Le,Qe,"whitespace")(ze):Qe(ze)):Ke(ze)}function Qe(ze){return ze===null||markdownLineEnding(ze)?(Le.exit("codeFencedFence"),He(ze)):Ke(ze)}}}function tokenizeNonLazyContinuation$1(n,i,t){const e=this;return o;function o(p){return p===null?t(p):(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d)}function d(p){return e.parser.lazy[e.now().line]?t(p):i(p)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(n,i,t){const e=this;return o;function o(E){return n.enter("codeIndented"),factorySpace(n,d,"linePrefix",5)(E)}function d(E){const $=e.events[e.events.length-1];return $&&$[1].type==="linePrefix"&&$[2].sliceSerialize($[1],!0).length>=4?p(E):t(E)}function p(E){return E===null?y(E):markdownLineEnding(E)?n.attempt(furtherStart,p,y)(E):(n.enter("codeFlowValue"),h(E))}function h(E){return E===null||markdownLineEnding(E)?(n.exit("codeFlowValue"),p(E)):(n.consume(E),h)}function y(E){return n.exit("codeIndented"),i(E)}}function tokenizeFurtherStart(n,i,t){const e=this;return o;function o(p){return e.parser.lazy[e.now().line]?t(p):markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),o):factorySpace(n,d,"linePrefix",5)(p)}function d(p){const h=e.events[e.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(p):markdownLineEnding(p)?o(p):t(p)}}const codeText={name:"codeText",previous:previous$3,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(n){let i=n.length-4,t=3,e,o;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(e=t;++e<i;)if(n[e][1].type==="codeTextData"){n[t][1].type="codeTextPadding",n[i][1].type="codeTextPadding",t+=2,i-=2;break}}for(e=t-1,i++;++e<=i;)o===void 0?e!==i&&n[e][1].type!=="lineEnding"&&(o=e):(e===i||n[e][1].type==="lineEnding")&&(n[o][1].type="codeTextData",e!==o+2&&(n[o][1].end=n[e-1][1].end,n.splice(o+2,e-o-2),i-=e-o-2,e=o+2),o=void 0);return n}function previous$3(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(n,i,t){let e=0,o,d;return p;function p(M){return n.enter("codeText"),n.enter("codeTextSequence"),h(M)}function h(M){return M===96?(n.consume(M),e++,h):(n.exit("codeTextSequence"),y(M))}function y(M){return M===null?t(M):M===32?(n.enter("space"),n.consume(M),n.exit("space"),y):M===96?(d=n.enter("codeTextSequence"),o=0,$(M)):markdownLineEnding(M)?(n.enter("lineEnding"),n.consume(M),n.exit("lineEnding"),y):(n.enter("codeTextData"),E(M))}function E(M){return M===null||M===32||M===96||markdownLineEnding(M)?(n.exit("codeTextData"),y(M)):(n.consume(M),E)}function $(M){return M===96?(n.consume(M),o++,$):o===e?(n.exit("codeTextSequence"),n.exit("codeText"),i(M)):(d.type="codeTextData",E(M))}}class SpliceBuffer{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,t){const e=t??Number.POSITIVE_INFINITY;return e<this.left.length?this.left.slice(i,e):i>this.left.length?this.right.slice(this.right.length-e+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-e+this.left.length).reverse())}splice(i,t,e){const o=t||0;this.setCursor(Math.trunc(i));const d=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return e&&chunkedPush(this.left,e),d.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),chunkedPush(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const t=this.left.splice(i,Number.POSITIVE_INFINITY);chunkedPush(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);chunkedPush(this.left,t.reverse())}}}function chunkedPush(n,i){let t=0;if(i.length<1e4)n.push(...i);else for(;t<i.length;)n.push(...i.slice(t,t+1e4)),t+=1e4}function subtokenize(n){const i={};let t=-1,e,o,d,p,h,y,E;const $=new SpliceBuffer(n);for(;++t<$.length;){for(;t in i;)t=i[t];if(e=$.get(t),t&&e[1].type==="chunkFlow"&&$.get(t-1)[1].type==="listItemPrefix"&&(y=e[1]._tokenizer.events,d=0,d<y.length&&y[d][1].type==="lineEndingBlank"&&(d+=2),d<y.length&&y[d][1].type==="content"))for(;++d<y.length&&y[d][1].type!=="content";)y[d][1].type==="chunkText"&&(y[d][1]._isInFirstContentOfListItem=!0,d++);if(e[0]==="enter")e[1].contentType&&(Object.assign(i,subcontent($,t)),t=i[t],E=!0);else if(e[1]._container){for(d=t,o=void 0;d--;)if(p=$.get(d),p[1].type==="lineEnding"||p[1].type==="lineEndingBlank")p[0]==="enter"&&(o&&($.get(o)[1].type="lineEndingBlank"),p[1].type="lineEnding",o=d);else if(p[1].type!=="linePrefix")break;o&&(e[1].end={...$.get(o)[1].start},h=$.slice(o,t),h.unshift(e),$.splice(o,t-o+1,h))}}return splice(n,0,Number.POSITIVE_INFINITY,$.slice(0)),!E}function subcontent(n,i){const t=n.get(i)[1],e=n.get(i)[2];let o=i-1;const d=[],p=t._tokenizer||e.parser[t.contentType](t.start),h=p.events,y=[],E={};let $,M,X=-1,Z=t,ye=0,be=0;const we=[be];for(;Z;){for(;n.get(++o)[1]!==Z;);d.push(o),Z._tokenizer||($=e.sliceStream(Z),Z.next||$.push(null),M&&p.defineSkip(Z.start),Z._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write($),Z._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),M=Z,Z=Z.next}for(Z=t;++X<h.length;)h[X][0]==="exit"&&h[X-1][0]==="enter"&&h[X][1].type===h[X-1][1].type&&h[X][1].start.line!==h[X][1].end.line&&(be=X+1,we.push(be),Z._tokenizer=void 0,Z.previous=void 0,Z=Z.next);for(p.events=[],Z?(Z._tokenizer=void 0,Z.previous=void 0):we.pop(),X=we.length;X--;){const xe=h.slice(we[X],we[X+1]),$e=d.pop();y.push([$e,$e+xe.length-1]),n.splice($e,2,xe)}for(y.reverse(),X=-1;++X<y.length;)E[ye+y[X][0]]=ye+y[X][1],ye+=y[X][1]-y[X][0]-1;return E}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(n){return subtokenize(n),n}function tokenizeContent(n,i){let t;return e;function e(h){return n.enter("content"),t=n.enter("chunkContent",{contentType:"content"}),o(h)}function o(h){return h===null?d(h):markdownLineEnding(h)?n.check(continuationConstruct,p,d)(h):(n.consume(h),o)}function d(h){return n.exit("chunkContent"),n.exit("content"),i(h)}function p(h){return n.consume(h),n.exit("chunkContent"),t.next=n.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,o}}function tokenizeContinuation(n,i,t){const e=this;return o;function o(p){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),factorySpace(n,d,"linePrefix")}function d(p){if(p===null||markdownLineEnding(p))return t(p);const h=e.events[e.events.length-1];return!e.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(p):n.interrupt(e.parser.constructs.flow,t,i)(p)}}function factoryDestination(n,i,t,e,o,d,p,h,y){const E=y||Number.POSITIVE_INFINITY;let $=0;return M;function M(xe){return xe===60?(n.enter(e),n.enter(o),n.enter(d),n.consume(xe),n.exit(d),X):xe===null||xe===32||xe===41||asciiControl(xe)?t(xe):(n.enter(e),n.enter(p),n.enter(h),n.enter("chunkString",{contentType:"string"}),be(xe))}function X(xe){return xe===62?(n.enter(d),n.consume(xe),n.exit(d),n.exit(o),n.exit(e),i):(n.enter(h),n.enter("chunkString",{contentType:"string"}),Z(xe))}function Z(xe){return xe===62?(n.exit("chunkString"),n.exit(h),X(xe)):xe===null||xe===60||markdownLineEnding(xe)?t(xe):(n.consume(xe),xe===92?ye:Z)}function ye(xe){return xe===60||xe===62||xe===92?(n.consume(xe),Z):Z(xe)}function be(xe){return!$&&(xe===null||xe===41||markdownLineEndingOrSpace(xe))?(n.exit("chunkString"),n.exit(h),n.exit(p),n.exit(e),i(xe)):$<E&&xe===40?(n.consume(xe),$++,be):xe===41?(n.consume(xe),$--,be):xe===null||xe===32||xe===40||asciiControl(xe)?t(xe):(n.consume(xe),xe===92?we:be)}function we(xe){return xe===40||xe===41||xe===92?(n.consume(xe),be):be(xe)}}function factoryLabel$1(n,i,t,e,o,d){const p=this;let h=0,y;return E;function E(Z){return n.enter(e),n.enter(o),n.consume(Z),n.exit(o),n.enter(d),$}function $(Z){return h>999||Z===null||Z===91||Z===93&&!y||Z===94&&!h&&"_hiddenFootnoteSupport"in p.parser.constructs?t(Z):Z===93?(n.exit(d),n.enter(o),n.consume(Z),n.exit(o),n.exit(e),i):markdownLineEnding(Z)?(n.enter("lineEnding"),n.consume(Z),n.exit("lineEnding"),$):(n.enter("chunkString",{contentType:"string"}),M(Z))}function M(Z){return Z===null||Z===91||Z===93||markdownLineEnding(Z)||h++>999?(n.exit("chunkString"),$(Z)):(n.consume(Z),y||(y=!markdownSpace(Z)),Z===92?X:M)}function X(Z){return Z===91||Z===92||Z===93?(n.consume(Z),h++,M):M(Z)}}function factoryTitle(n,i,t,e,o,d){let p;return h;function h(X){return X===34||X===39||X===40?(n.enter(e),n.enter(o),n.consume(X),n.exit(o),p=X===40?41:X,y):t(X)}function y(X){return X===p?(n.enter(o),n.consume(X),n.exit(o),n.exit(e),i):(n.enter(d),E(X))}function E(X){return X===p?(n.exit(d),y(p)):X===null?t(X):markdownLineEnding(X)?(n.enter("lineEnding"),n.consume(X),n.exit("lineEnding"),factorySpace(n,E,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),$(X))}function $(X){return X===p||X===null||markdownLineEnding(X)?(n.exit("chunkString"),E(X)):(n.consume(X),X===92?M:$)}function M(X){return X===p||X===92?(n.consume(X),$):$(X)}}function factoryWhitespace(n,i){let t;return e;function e(o){return markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),t=!0,e):markdownSpace(o)?factorySpace(n,e,t?"linePrefix":"lineSuffix")(o):i(o)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(n,i,t){const e=this;let o;return d;function d(Z){return n.enter("definition"),p(Z)}function p(Z){return factoryLabel$1.call(e,n,h,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(Z)}function h(Z){return o=normalizeIdentifier(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)),Z===58?(n.enter("definitionMarker"),n.consume(Z),n.exit("definitionMarker"),y):t(Z)}function y(Z){return markdownLineEndingOrSpace(Z)?factoryWhitespace(n,E)(Z):E(Z)}function E(Z){return factoryDestination(n,$,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Z)}function $(Z){return n.attempt(titleBefore,M,M)(Z)}function M(Z){return markdownSpace(Z)?factorySpace(n,X,"whitespace")(Z):X(Z)}function X(Z){return Z===null||markdownLineEnding(Z)?(n.exit("definition"),e.parser.defined.push(o),i(Z)):t(Z)}}function tokenizeTitleBefore(n,i,t){return e;function e(h){return markdownLineEndingOrSpace(h)?factoryWhitespace(n,o)(h):t(h)}function o(h){return factoryTitle(n,d,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function d(h){return markdownSpace(h)?factorySpace(n,p,"whitespace")(h):p(h)}function p(h){return h===null||markdownLineEnding(h)?i(h):t(h)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(n,i,t){return e;function e(d){return n.enter("hardBreakEscape"),n.consume(d),o}function o(d){return markdownLineEnding(d)?(n.exit("hardBreakEscape"),i(d)):t(d)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(n,i){let t=n.length-2,e=3,o,d;return n[e][1].type==="whitespace"&&(e+=2),t-2>e&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(e===t-1||t-4>e&&n[t-2][1].type==="whitespace")&&(t-=e+1===t?2:4),t>e&&(o={type:"atxHeadingText",start:n[e][1].start,end:n[t][1].end},d={type:"chunkText",start:n[e][1].start,end:n[t][1].end,contentType:"text"},splice(n,e,t-e+1,[["enter",o,i],["enter",d,i],["exit",d,i],["exit",o,i]])),n}function tokenizeHeadingAtx(n,i,t){let e=0;return o;function o($){return n.enter("atxHeading"),d($)}function d($){return n.enter("atxHeadingSequence"),p($)}function p($){return $===35&&e++<6?(n.consume($),p):$===null||markdownLineEndingOrSpace($)?(n.exit("atxHeadingSequence"),h($)):t($)}function h($){return $===35?(n.enter("atxHeadingSequence"),y($)):$===null||markdownLineEnding($)?(n.exit("atxHeading"),i($)):markdownSpace($)?factorySpace(n,h,"whitespace")($):(n.enter("atxHeadingText"),E($))}function y($){return $===35?(n.consume($),y):(n.exit("atxHeadingSequence"),h($))}function E($){return $===null||$===35||markdownLineEndingOrSpace($)?(n.exit("atxHeadingText"),h($)):(n.consume($),E)}}const htmlBlockNames=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(n){let i=n.length;for(;i--&&!(n[i][0]==="enter"&&n[i][1].type==="htmlFlow"););return i>1&&n[i-2][1].type==="linePrefix"&&(n[i][1].start=n[i-2][1].start,n[i+1][1].start=n[i-2][1].start,n.splice(i-2,2)),n}function tokenizeHtmlFlow(n,i,t){const e=this;let o,d,p,h,y;return E;function E(Ue){return $(Ue)}function $(Ue){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(Ue),M}function M(Ue){return Ue===33?(n.consume(Ue),X):Ue===47?(n.consume(Ue),d=!0,be):Ue===63?(n.consume(Ue),o=3,e.interrupt?i:Be):asciiAlpha(Ue)?(n.consume(Ue),p=String.fromCharCode(Ue),we):t(Ue)}function X(Ue){return Ue===45?(n.consume(Ue),o=2,Z):Ue===91?(n.consume(Ue),o=5,h=0,ye):asciiAlpha(Ue)?(n.consume(Ue),o=4,e.interrupt?i:Be):t(Ue)}function Z(Ue){return Ue===45?(n.consume(Ue),e.interrupt?i:Be):t(Ue)}function ye(Ue){const Ot="CDATA[";return Ue===Ot.charCodeAt(h++)?(n.consume(Ue),h===Ot.length?e.interrupt?i:Ye:ye):t(Ue)}function be(Ue){return asciiAlpha(Ue)?(n.consume(Ue),p=String.fromCharCode(Ue),we):t(Ue)}function we(Ue){if(Ue===null||Ue===47||Ue===62||markdownLineEndingOrSpace(Ue)){const Ot=Ue===47,Rt=p.toLowerCase();return!Ot&&!d&&htmlRawNames.includes(Rt)?(o=1,e.interrupt?i(Ue):Ye(Ue)):htmlBlockNames.includes(p.toLowerCase())?(o=6,Ot?(n.consume(Ue),xe):e.interrupt?i(Ue):Ye(Ue)):(o=7,e.interrupt&&!e.parser.lazy[e.now().line]?t(Ue):d?$e(Ue):Ne(Ue))}return Ue===45||asciiAlphanumeric(Ue)?(n.consume(Ue),p+=String.fromCharCode(Ue),we):t(Ue)}function xe(Ue){return Ue===62?(n.consume(Ue),e.interrupt?i:Ye):t(Ue)}function $e(Ue){return markdownSpace(Ue)?(n.consume(Ue),$e):Ve(Ue)}function Ne(Ue){return Ue===47?(n.consume(Ue),Ve):Ue===58||Ue===95||asciiAlpha(Ue)?(n.consume(Ue),Fe):markdownSpace(Ue)?(n.consume(Ue),Ne):Ve(Ue)}function Fe(Ue){return Ue===45||Ue===46||Ue===58||Ue===95||asciiAlphanumeric(Ue)?(n.consume(Ue),Fe):De(Ue)}function De(Ue){return Ue===61?(n.consume(Ue),Le):markdownSpace(Ue)?(n.consume(Ue),De):Ne(Ue)}function Le(Ue){return Ue===null||Ue===60||Ue===61||Ue===62||Ue===96?t(Ue):Ue===34||Ue===39?(n.consume(Ue),y=Ue,He):markdownSpace(Ue)?(n.consume(Ue),Le):Ke(Ue)}function He(Ue){return Ue===y?(n.consume(Ue),y=null,je):Ue===null||markdownLineEnding(Ue)?t(Ue):(n.consume(Ue),He)}function Ke(Ue){return Ue===null||Ue===34||Ue===39||Ue===47||Ue===60||Ue===61||Ue===62||Ue===96||markdownLineEndingOrSpace(Ue)?De(Ue):(n.consume(Ue),Ke)}function je(Ue){return Ue===47||Ue===62||markdownSpace(Ue)?Ne(Ue):t(Ue)}function Ve(Ue){return Ue===62?(n.consume(Ue),qe):t(Ue)}function qe(Ue){return Ue===null||markdownLineEnding(Ue)?Ye(Ue):markdownSpace(Ue)?(n.consume(Ue),qe):t(Ue)}function Ye(Ue){return Ue===45&&o===2?(n.consume(Ue),st):Ue===60&&o===1?(n.consume(Ue),at):Ue===62&&o===4?(n.consume(Ue),Ge):Ue===63&&o===3?(n.consume(Ue),Be):Ue===93&&o===5?(n.consume(Ue),pt):markdownLineEnding(Ue)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(blankLineBefore,it,et)(Ue)):Ue===null||markdownLineEnding(Ue)?(n.exit("htmlFlowData"),et(Ue)):(n.consume(Ue),Ye)}function et(Ue){return n.check(nonLazyContinuationStart,Qe,it)(Ue)}function Qe(Ue){return n.enter("lineEnding"),n.consume(Ue),n.exit("lineEnding"),ze}function ze(Ue){return Ue===null||markdownLineEnding(Ue)?et(Ue):(n.enter("htmlFlowData"),Ye(Ue))}function st(Ue){return Ue===45?(n.consume(Ue),Be):Ye(Ue)}function at(Ue){return Ue===47?(n.consume(Ue),p="",tt):Ye(Ue)}function tt(Ue){if(Ue===62){const Ot=p.toLowerCase();return htmlRawNames.includes(Ot)?(n.consume(Ue),Ge):Ye(Ue)}return asciiAlpha(Ue)&&p.length<8?(n.consume(Ue),p+=String.fromCharCode(Ue),tt):Ye(Ue)}function pt(Ue){return Ue===93?(n.consume(Ue),Be):Ye(Ue)}function Be(Ue){return Ue===62?(n.consume(Ue),Ge):Ue===45&&o===2?(n.consume(Ue),Be):Ye(Ue)}function Ge(Ue){return Ue===null||markdownLineEnding(Ue)?(n.exit("htmlFlowData"),it(Ue)):(n.consume(Ue),Ge)}function it(Ue){return n.exit("htmlFlow"),i(Ue)}}function tokenizeNonLazyContinuationStart(n,i,t){const e=this;return o;function o(p){return markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d):t(p)}function d(p){return e.parser.lazy[e.now().line]?t(p):i(p)}}function tokenizeBlankLineBefore(n,i,t){return e;function e(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(blankLine,i,t)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(n,i,t){const e=this;let o,d,p;return h;function h(Be){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(Be),y}function y(Be){return Be===33?(n.consume(Be),E):Be===47?(n.consume(Be),De):Be===63?(n.consume(Be),Ne):asciiAlpha(Be)?(n.consume(Be),Ke):t(Be)}function E(Be){return Be===45?(n.consume(Be),$):Be===91?(n.consume(Be),d=0,ye):asciiAlpha(Be)?(n.consume(Be),$e):t(Be)}function $(Be){return Be===45?(n.consume(Be),Z):t(Be)}function M(Be){return Be===null?t(Be):Be===45?(n.consume(Be),X):markdownLineEnding(Be)?(p=M,at(Be)):(n.consume(Be),M)}function X(Be){return Be===45?(n.consume(Be),Z):M(Be)}function Z(Be){return Be===62?st(Be):Be===45?X(Be):M(Be)}function ye(Be){const Ge="CDATA[";return Be===Ge.charCodeAt(d++)?(n.consume(Be),d===Ge.length?be:ye):t(Be)}function be(Be){return Be===null?t(Be):Be===93?(n.consume(Be),we):markdownLineEnding(Be)?(p=be,at(Be)):(n.consume(Be),be)}function we(Be){return Be===93?(n.consume(Be),xe):be(Be)}function xe(Be){return Be===62?st(Be):Be===93?(n.consume(Be),xe):be(Be)}function $e(Be){return Be===null||Be===62?st(Be):markdownLineEnding(Be)?(p=$e,at(Be)):(n.consume(Be),$e)}function Ne(Be){return Be===null?t(Be):Be===63?(n.consume(Be),Fe):markdownLineEnding(Be)?(p=Ne,at(Be)):(n.consume(Be),Ne)}function Fe(Be){return Be===62?st(Be):Ne(Be)}function De(Be){return asciiAlpha(Be)?(n.consume(Be),Le):t(Be)}function Le(Be){return Be===45||asciiAlphanumeric(Be)?(n.consume(Be),Le):He(Be)}function He(Be){return markdownLineEnding(Be)?(p=He,at(Be)):markdownSpace(Be)?(n.consume(Be),He):st(Be)}function Ke(Be){return Be===45||asciiAlphanumeric(Be)?(n.consume(Be),Ke):Be===47||Be===62||markdownLineEndingOrSpace(Be)?je(Be):t(Be)}function je(Be){return Be===47?(n.consume(Be),st):Be===58||Be===95||asciiAlpha(Be)?(n.consume(Be),Ve):markdownLineEnding(Be)?(p=je,at(Be)):markdownSpace(Be)?(n.consume(Be),je):st(Be)}function Ve(Be){return Be===45||Be===46||Be===58||Be===95||asciiAlphanumeric(Be)?(n.consume(Be),Ve):qe(Be)}function qe(Be){return Be===61?(n.consume(Be),Ye):markdownLineEnding(Be)?(p=qe,at(Be)):markdownSpace(Be)?(n.consume(Be),qe):je(Be)}function Ye(Be){return Be===null||Be===60||Be===61||Be===62||Be===96?t(Be):Be===34||Be===39?(n.consume(Be),o=Be,et):markdownLineEnding(Be)?(p=Ye,at(Be)):markdownSpace(Be)?(n.consume(Be),Ye):(n.consume(Be),Qe)}function et(Be){return Be===o?(n.consume(Be),o=void 0,ze):Be===null?t(Be):markdownLineEnding(Be)?(p=et,at(Be)):(n.consume(Be),et)}function Qe(Be){return Be===null||Be===34||Be===39||Be===60||Be===61||Be===96?t(Be):Be===47||Be===62||markdownLineEndingOrSpace(Be)?je(Be):(n.consume(Be),Qe)}function ze(Be){return Be===47||Be===62||markdownLineEndingOrSpace(Be)?je(Be):t(Be)}function st(Be){return Be===62?(n.consume(Be),n.exit("htmlTextData"),n.exit("htmlText"),i):t(Be)}function at(Be){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(Be),n.exit("lineEnding"),tt}function tt(Be){return markdownSpace(Be)?factorySpace(n,pt,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Be):pt(Be)}function pt(Be){return n.enter("htmlTextData"),p(Be)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(n){let i=-1;const t=[];for(;++i<n.length;){const e=n[i][1];if(t.push(n[i]),e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd"){const o=e.type==="labelImage"?4:2;e.type="data",i+=o}}return n.length!==t.length&&splice(n,0,n.length,t),n}function resolveToLabelEnd(n,i){let t=n.length,e=0,o,d,p,h;for(;t--;)if(o=n[t][1],d){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[t][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(p){if(n[t][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(d=t,o.type!=="labelLink")){e=2;break}}else o.type==="labelEnd"&&(p=t);const y={type:n[d][1].type==="labelLink"?"link":"image",start:{...n[d][1].start},end:{...n[n.length-1][1].end}},E={type:"label",start:{...n[d][1].start},end:{...n[p][1].end}},$={type:"labelText",start:{...n[d+e+2][1].end},end:{...n[p-2][1].start}};return h=[["enter",y,i],["enter",E,i]],h=push(h,n.slice(d+1,d+e+3)),h=push(h,[["enter",$,i]]),h=push(h,resolveAll(i.parser.constructs.insideSpan.null,n.slice(d+e+4,p-3),i)),h=push(h,[["exit",$,i],n[p-2],n[p-1],["exit",E,i]]),h=push(h,n.slice(p+1)),h=push(h,[["exit",y,i]]),splice(n,d,n.length,h),n}function tokenizeLabelEnd(n,i,t){const e=this;let o=e.events.length,d,p;for(;o--;)if((e.events[o][1].type==="labelImage"||e.events[o][1].type==="labelLink")&&!e.events[o][1]._balanced){d=e.events[o][1];break}return h;function h(X){return d?d._inactive?M(X):(p=e.parser.defined.includes(normalizeIdentifier(e.sliceSerialize({start:d.end,end:e.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(X),n.exit("labelMarker"),n.exit("labelEnd"),y):t(X)}function y(X){return X===40?n.attempt(resourceConstruct,$,p?$:M)(X):X===91?n.attempt(referenceFullConstruct,$,p?E:M)(X):p?$(X):M(X)}function E(X){return n.attempt(referenceCollapsedConstruct,$,M)(X)}function $(X){return i(X)}function M(X){return d._balanced=!0,t(X)}}function tokenizeResource(n,i,t){return e;function e(M){return n.enter("resource"),n.enter("resourceMarker"),n.consume(M),n.exit("resourceMarker"),o}function o(M){return markdownLineEndingOrSpace(M)?factoryWhitespace(n,d)(M):d(M)}function d(M){return M===41?$(M):factoryDestination(n,p,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(M)}function p(M){return markdownLineEndingOrSpace(M)?factoryWhitespace(n,y)(M):$(M)}function h(M){return t(M)}function y(M){return M===34||M===39||M===40?factoryTitle(n,E,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(M):$(M)}function E(M){return markdownLineEndingOrSpace(M)?factoryWhitespace(n,$)(M):$(M)}function $(M){return M===41?(n.enter("resourceMarker"),n.consume(M),n.exit("resourceMarker"),n.exit("resource"),i):t(M)}}function tokenizeReferenceFull(n,i,t){const e=this;return o;function o(h){return factoryLabel$1.call(e,n,d,p,"reference","referenceMarker","referenceString")(h)}function d(h){return e.parser.defined.includes(normalizeIdentifier(e.sliceSerialize(e.events[e.events.length-1][1]).slice(1,-1)))?i(h):t(h)}function p(h){return t(h)}}function tokenizeReferenceCollapsed(n,i,t){return e;function e(d){return n.enter("reference"),n.enter("referenceMarker"),n.consume(d),n.exit("referenceMarker"),o}function o(d){return d===93?(n.enter("referenceMarker"),n.consume(d),n.exit("referenceMarker"),n.exit("reference"),i):t(d)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(n,i,t){const e=this;return o;function o(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),d}function d(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),p):t(h)}function p(h){return h===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(h):i(h)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(n,i,t){const e=this;return o;function o(p){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelLink"),d}function d(p){return p===94&&"_hiddenFootnoteSupport"in e.parser.constructs?t(p):i(p)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(n,i){return t;function t(e){return n.enter("lineEnding"),n.consume(e),n.exit("lineEnding"),factorySpace(n,i,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(n,i,t){let e=0,o;return d;function d(E){return n.enter("thematicBreak"),p(E)}function p(E){return o=E,h(E)}function h(E){return E===o?(n.enter("thematicBreakSequence"),y(E)):e>=3&&(E===null||markdownLineEnding(E))?(n.exit("thematicBreak"),i(E)):t(E)}function y(E){return E===o?(n.consume(E),e++,y):(n.exit("thematicBreakSequence"),markdownSpace(E)?factorySpace(n,h,"whitespace")(E):h(E))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(n,i,t){const e=this,o=e.events[e.events.length-1];let d=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,p=0;return h;function h(Z){const ye=e.containerState.type||(Z===42||Z===43||Z===45?"listUnordered":"listOrdered");if(ye==="listUnordered"?!e.containerState.marker||Z===e.containerState.marker:asciiDigit(Z)){if(e.containerState.type||(e.containerState.type=ye,n.enter(ye,{_container:!0})),ye==="listUnordered")return n.enter("listItemPrefix"),Z===42||Z===45?n.check(thematicBreak$2,t,E)(Z):E(Z);if(!e.interrupt||Z===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),y(Z)}return t(Z)}function y(Z){return asciiDigit(Z)&&++p<10?(n.consume(Z),y):(!e.interrupt||p<2)&&(e.containerState.marker?Z===e.containerState.marker:Z===41||Z===46)?(n.exit("listItemValue"),E(Z)):t(Z)}function E(Z){return n.enter("listItemMarker"),n.consume(Z),n.exit("listItemMarker"),e.containerState.marker=e.containerState.marker||Z,n.check(blankLine,e.interrupt?t:$,n.attempt(listItemPrefixWhitespaceConstruct,X,M))}function $(Z){return e.containerState.initialBlankLine=!0,d++,X(Z)}function M(Z){return markdownSpace(Z)?(n.enter("listItemPrefixWhitespace"),n.consume(Z),n.exit("listItemPrefixWhitespace"),X):t(Z)}function X(Z){return e.containerState.size=d+e.sliceSerialize(n.exit("listItemPrefix"),!0).length,i(Z)}}function tokenizeListContinuation(n,i,t){const e=this;return e.containerState._closeFlow=void 0,n.check(blankLine,o,d);function o(h){return e.containerState.furtherBlankLines=e.containerState.furtherBlankLines||e.containerState.initialBlankLine,factorySpace(n,i,"listItemIndent",e.containerState.size+1)(h)}function d(h){return e.containerState.furtherBlankLines||!markdownSpace(h)?(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,p(h)):(e.containerState.furtherBlankLines=void 0,e.containerState.initialBlankLine=void 0,n.attempt(indentConstruct,i,p)(h))}function p(h){return e.containerState._closeFlow=!0,e.interrupt=void 0,factorySpace(n,n.attempt(list$2,i,t),"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function tokenizeIndent$1(n,i,t){const e=this;return factorySpace(n,o,"listItemIndent",e.containerState.size+1);function o(d){const p=e.events[e.events.length-1];return p&&p[1].type==="listItemIndent"&&p[2].sliceSerialize(p[1],!0).length===e.containerState.size?i(d):t(d)}}function tokenizeListEnd(n){n.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(n,i,t){const e=this;return factorySpace(n,o,"listItemPrefixWhitespace",e.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(d){const p=e.events[e.events.length-1];return!markdownSpace(d)&&p&&p[1].type==="listItemPrefixWhitespace"?i(d):t(d)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(n,i){let t=n.length,e,o,d;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){e=t;break}n[t][1].type==="paragraph"&&(o=t)}else n[t][1].type==="content"&&n.splice(t,1),!d&&n[t][1].type==="definition"&&(d=t);const p={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",d?(n.splice(o,0,["enter",p,i]),n.splice(d+1,0,["exit",n[e][1],i]),n[e][1].end={...n[d][1].end}):n[e][1]=p,n.push(["exit",p,i]),n}function tokenizeSetextUnderline(n,i,t){const e=this;let o;return d;function d(E){let $=e.events.length,M;for(;$--;)if(e.events[$][1].type!=="lineEnding"&&e.events[$][1].type!=="linePrefix"&&e.events[$][1].type!=="content"){M=e.events[$][1].type==="paragraph";break}return!e.parser.lazy[e.now().line]&&(e.interrupt||M)?(n.enter("setextHeadingLine"),o=E,p(E)):t(E)}function p(E){return n.enter("setextHeadingLineSequence"),h(E)}function h(E){return E===o?(n.consume(E),h):(n.exit("setextHeadingLineSequence"),markdownSpace(E)?factorySpace(n,y,"lineSuffix")(E):y(E))}function y(E){return E===null||markdownLineEnding(E)?(n.exit("setextHeadingLine"),i(E)):t(E)}}const flow$1={tokenize:initializeFlow};function initializeFlow(n){const i=this,t=n.attempt(blankLine,e,n.attempt(this.parser.constructs.flowInitial,o,factorySpace(n,n.attempt(this.parser.constructs.flow,o,n.attempt(content,o)),"linePrefix")));return t;function e(d){if(d===null){n.consume(d);return}return n.enter("lineEndingBlank"),n.consume(d),n.exit("lineEndingBlank"),i.currentConstruct=void 0,t}function o(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),i.currentConstruct=void 0,t}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(n){return{resolveAll:createResolver(n==="text"?resolveAllLineSuffixes:void 0),tokenize:i};function i(t){const e=this,o=this.parser.constructs[n],d=t.attempt(o,p,h);return p;function p($){return E($)?d($):h($)}function h($){if($===null){t.consume($);return}return t.enter("data"),t.consume($),y}function y($){return E($)?(t.exit("data"),d($)):(t.consume($),y)}function E($){if($===null)return!0;const M=o[$];let X=-1;
vendor: 4,318 bytes, line 53
53if(M)for(;++X<M.length;){const Z=M[X];if(!Z.previous||Z.previous.call(e,e.previous))return!0}return!1}}}function createResolver(n){return i;function i(t,e){let o=-1,d;for(;++o<=t.length;)d===void 0?t[o]&&t[o][1].type==="data"&&(d=o,o++):(!t[o]||t[o][1].type!=="data")&&(o!==d+2&&(t[d][1].end=t[o-1][1].end,t.splice(d+2,o-d-2),o=d+2),d=void 0);return n?n(t,e):t}}function resolveAllLineSuffixes(n,i){let t=0;for(;++t<=n.length;)if((t===n.length||n[t][1].type==="lineEnding")&&n[t-1][1].type==="data"){const e=n[t-1][1],o=i.sliceStream(e);let d=o.length,p=-1,h=0,y;for(;d--;){const E=o[d];if(typeof E=="string"){for(p=E.length;E.charCodeAt(p-1)===32;)h++,p--;if(p)break;p=-1}else if(E===-2)y=!0,h++;else if(E!==-1){d++;break}}if(h){const E={type:t===n.length||y||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:d?p:e.start._bufferIndex+p,_index:e.start._index+d,line:e.end.line,column:e.end.column-h,offset:e.end.offset-h},end:{...e.end}};e.end={...E.start},e.start.offset===e.end.offset?Object.assign(e,E):(n.splice(t,0,["enter",E,i],["exit",E,i]),t+=2)}t++}return n}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function createTokenizer(n,i,t){let e={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const o={},d=[];let p=[],h=[];const y={attempt:He(De),check:He(Le),consume:$e,enter:Ne,exit:Fe,interrupt:He(Le,{interrupt:!0})},E={code:null,containerState:{},defineSkip:be,events:[],now:ye,parser:n,previous:null,sliceSerialize:X,sliceStream:Z,write:M};let $=i.tokenize.call(E,y);return i.resolveAll&&d.push(i),E;function M(qe){return p=push(p,qe),we(),p[p.length-1]!==null?[]:(Ke(i,0),E.events=resolveAll(d,E.events,E),E.events)}function X(qe,Ye){return serializeChunks(Z(qe),Ye)}function Z(qe){return sliceChunks(p,qe)}function ye(){const{_bufferIndex:qe,_index:Ye,line:et,column:Qe,offset:ze}=e;return{_bufferIndex:qe,_index:Ye,line:et,column:Qe,offset:ze}}function be(qe){o[qe.line]=qe.column,Ve()}function we(){let qe;for(;e._index<p.length;){const Ye=p[e._index];if(typeof Ye=="string")for(qe=e._index,e._bufferIndex<0&&(e._bufferIndex=0);e._index===qe&&e._bufferIndex<Ye.length;)xe(Ye.charCodeAt(e._bufferIndex));else xe(Ye)}}function xe(qe){$=$(qe)}function $e(qe){markdownLineEnding(qe)?(e.line++,e.column=1,e.offset+=qe===-3?2:1,Ve()):qe!==-1&&(e.column++,e.offset++),e._bufferIndex<0?e._index++:(e._bufferIndex++,e._bufferIndex===p[e._index].length&&(e._bufferIndex=-1,e._index++)),E.previous=qe}function Ne(qe,Ye){const et=Ye||{};return et.type=qe,et.start=ye(),E.events.push(["enter",et,E]),h.push(et),et}function Fe(qe){const Ye=h.pop();return Ye.end=ye(),E.events.push(["exit",Ye,E]),Ye}function De(qe,Ye){Ke(qe,Ye.from)}function Le(qe,Ye){Ye.restore()}function He(qe,Ye){return et;function et(Qe,ze,st){let at,tt,pt,Be;return Array.isArray(Qe)?it(Qe):"tokenize"in Qe?it([Qe]):Ge(Qe);function Ge(dt){return Tt;function Tt(ht){const Ft=ht!==null&&dt[ht],zt=ht!==null&&dt.null,$t=[...Array.isArray(Ft)?Ft:Ft?[Ft]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return it($t)(ht)}}function it(dt){return at=dt,tt=0,dt.length===0?st:Ue(dt[tt])}function Ue(dt){return Tt;function Tt(ht){return Be=je(),pt=dt,dt.partial||(E.currentConstruct=dt),dt.name&&E.parser.constructs.disable.null.includes(dt.name)?Rt():dt.tokenize.call(Ye?Object.assign(Object.create(E),Ye):E,y,Ot,Rt)(ht)}}function Ot(dt){return qe(pt,Be),ze}
vendor: 13,516 bytes, lines 53-55
53function Rt(dt){return Be.restore(),++tt<at.length?Ue(at[tt]):st}}}function Ke(qe,Ye){qe.resolveAll&&!d.includes(qe)&&d.push(qe),qe.resolve&&splice(E.events,Ye,E.events.length-Ye,qe.resolve(E.events.slice(Ye),E)),qe.resolveTo&&(E.events=qe.resolveTo(E.events,E))}function je(){const qe=ye(),Ye=E.previous,et=E.currentConstruct,Qe=E.events.length,ze=Array.from(h);return{from:Qe,restore:st};function st(){e=qe,E.previous=Ye,E.currentConstruct=et,E.events.length=Qe,h=ze,Ve()}}function Ve(){e.line in o&&e.column<2&&(e.column=o[e.line],e.offset+=o[e.line]-1)}}function sliceChunks(n,i){const t=i.start._index,e=i.start._bufferIndex,o=i.end._index,d=i.end._bufferIndex;let p;if(t===o)p=[n[t].slice(e,d)];else{if(p=n.slice(t,o),e>-1){const h=p[0];typeof h=="string"?p[0]=h.slice(e):p.shift()}d>0&&p.push(n[o].slice(0,d))}return p}function serializeChunks(n,i){let t=-1;const e=[];let o;for(;++t<n.length;){const d=n[t];let p;if(typeof d=="string")p=d;else switch(d){case-5:{p="\r";break}case-4:{p=` 54`;break}case-3:{p=`\r 55`;break}case-2:{p=i?" ":" ";break}case-1:{if(!i&&o)continue;p=" ";break}default:p=String.fromCharCode(d)}o=d===-2,e.push(p)}return e.join("")}function parse$1(n){const e={constructs:combineExtensions([defaultConstructs,...(n||{}).extensions||[]]),content:o(content$1),defined:[],document:o(document$2),flow:o(flow$1),lazy:{},string:o(string$1),text:o(text$4)};return e;function o(d){return p;function p(h){return createTokenizer(e,d,h)}}}function postprocess(n){for(;!subtokenize(n););return n}const search=/[\0\t\n\r]/g;function preprocess(){let n=1,i="",t=!0,e;return o;function o(d,p,h){const y=[];let E,$,M,X,Z;for(d=i+(typeof d=="string"?d.toString():new TextDecoder(p||void 0).decode(d)),M=0,i="",t&&(d.charCodeAt(0)===65279&&M++,t=void 0);M<d.length;){if(search.lastIndex=M,E=search.exec(d),X=E&&E.index!==void 0?E.index:d.length,Z=d.charCodeAt(X),!E){i=d.slice(M);break}if(Z===10&&M===X&&e)y.push(-3),e=void 0;else switch(e&&(y.push(-5),e=void 0),M<X&&(y.push(d.slice(M,X)),n+=X-M),Z){case 0:{y.push(65533),n++;break}case 9:{for($=Math.ceil(n/4)*4,y.push(-2);n++<$;)y.push(-1);break}case 10:{y.push(-4),n=1;break}default:e=!0,n=1}M=X+1}return h&&(e&&y.push(-5),i&&y.push(i),y.push(null)),y}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(n){return n.replace(characterEscapeOrReference,decode$2)}function decode$2(n,i,t){if(i)return i;if(t.charCodeAt(0)===35){const o=t.charCodeAt(1),d=o===120||o===88;return decodeNumericCharacterReference(t.slice(d?2:1),d?16:10)}return decodeNamedCharacterReference(t)||n}const own$3={}.hasOwnProperty;function fromMarkdown(n,i,t){return typeof i!="string"&&(t=i,i=void 0),compiler(t)(postprocess(parse$1(t).document().write(preprocess()(n,i,!0))))}function compiler(n){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(Wt),autolinkProtocol:je,autolinkEmail:je,atxHeading:d(kn),blockQuote:d(zt),characterEscape:je,characterReference:je,codeFenced:d($t),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:d($t,p),codeText:d(Yt,p),codeTextData:je,data:je,codeFlowValue:je,definition:d(ln),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:d(Qt),hardBreakEscape:d(en),hardBreakTrailing:d(en),htmlFlow:d(Gt,p),htmlFlowData:je,htmlText:d(Gt,p),htmlTextData:je,image:d(on),label:p,link:d(Wt),listItem:d(vn),listItemValue:X,listOrdered:d(tn,M),listUnordered:d(tn),paragraph:d(Rn),reference:Ue,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:d(kn),strong:d(dn),thematicBreak:d(Kt)},exit:{atxHeading:y(),atxHeadingSequence:De,autolink:y(),autolinkEmail:Ft,autolinkProtocol:ht,blockQuote:y(),characterEscapeValue:Ve,characterReferenceMarkerHexadecimal:Rt,characterReferenceMarkerNumeric:Rt,characterReferenceValue:dt,characterReference:Tt,codeFenced:y(we),codeFencedFence:be,codeFencedFenceInfo:Z,codeFencedFenceMeta:ye,codeFlowValue:Ve,codeIndented:y(xe),codeText:y(ze),codeTextData:Ve,data:Ve,definition:y(),definitionDestinationString:Fe,definitionLabelString:$e,definitionTitleString:Ne,emphasis:y(),hardBreakEscape:y(Ye),hardBreakTrailing:y(Ye),htmlFlow:y(et),htmlFlowData:Ve,htmlText:y(Qe),htmlTextData:Ve,image:y(at),label:pt,labelText:tt,lineEnding:qe,link:y(st),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:Ot,resourceDestinationString:Be,resourceTitleString:Ge,resource:it,setextHeading:y(Ke),setextHeadingLineSequence:He,setextHeadingText:Le,strong:y(),thematicBreak:y()}};configure(i,(n||{}).mdastExtensions||[]);const t={};return e;function e(ut){let vt={type:"root",children:[]};const xt={stack:[vt],tokenStack:[],config:i,enter:h,exit:E,buffer:p,resume:$,data:t},Lt=[];let jt=-1;for(;++jt<ut.length;)if(ut[jt][1].type==="listOrdered"||ut[jt][1].type==="listUnordered")if(ut[jt][0]==="enter")Lt.push(jt);else{const Et=Lt.pop();jt=o(ut,Et,jt)}for(jt=-1;++jt<ut.length;){const Et=i[ut[jt][0]];own$3.call(Et,ut[jt][1].type)&&Et[ut[jt][1].type].call(Object.assign({sliceSerialize:ut[jt][2].sliceSerialize},xt),ut[jt][1])}if(xt.tokenStack.length>0){const Et=xt.tokenStack[xt.tokenStack.length-1];(Et[1]||defaultOnError).call(xt,void 0,Et[0])}for(vt.position={start:point(ut.length>0?ut[0][1].start:{line:1,column:1,offset:0}),end:point(ut.length>0?ut[ut.length-2][1].end:{line:1,column:1,offset:0})},jt=-1;++jt<i.transforms.length;)vt=i.transforms[jt](vt)||vt;return vt}function o(ut,vt,xt){let Lt=vt-1,jt=-1,Et=!1,Vt,wt,rt,lt;for(;++Lt<=xt;){const ct=ut[Lt];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?jt++:jt--,lt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(Vt&&!lt&&!jt&&!rt&&(rt=Lt),lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:lt=void 0}if(!jt&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||jt===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(Vt){let yt=Lt;for(wt=void 0;yt--;){const ft=ut[yt];if(ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank"){if(ft[0]==="exit")continue;wt&&(ut[wt][1].type="lineEndingBlank",Et=!0),ft[1].type="lineEnding",wt=yt}else if(!(ft[1].type==="linePrefix"||ft[1].type==="blockQuotePrefix"||ft[1].type==="blockQuotePrefixWhitespace"||ft[1].type==="blockQuoteMarker"||ft[1].type==="listItemIndent"))break}rt&&(!wt||rt<wt)&&(Vt._spread=!0),Vt.end=Object.assign({},wt?ut[wt][1].start:ct[1].end),ut.splice(wt||Lt,0,["exit",Vt,ct[2]]),Lt++,xt++}if(ct[1].type==="listItemPrefix"){const yt={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};Vt=yt,ut.splice(Lt,0,["enter",yt,ct[2]]),Lt++,xt++,rt=void 0,lt=!0}}}return ut[vt][1]._spread=Et,xt}function d(ut,vt){return xt;function xt(Lt){h.call(this,ut(Lt),Lt),vt&&vt.call(this,Lt)}}function p(){this.stack.push({type:"fragment",children:[]})}function h(ut,vt,xt){this.stack[this.stack.length-1].children.push(ut),this.stack.push(ut),this.tokenStack.push([vt,xt||void 0]),ut.position={start:point(vt.start),end:void 0}}function y(ut){return vt;function vt(xt){ut&&ut.call(this,xt),E.call(this,xt)}}function E(ut,vt){const xt=this.stack.pop(),Lt=this.tokenStack.pop();if(Lt)Lt[0].type!==ut.type&&(vt?vt.call(this,ut,Lt[0]):(Lt[1]||defaultOnError).call(this,ut,Lt[0]));else throw new Error("Cannot close `"+ut.type+"` ("+stringifyPosition({start:ut.start,end:ut.end})+"): itâs not open");xt.position.end=point(ut.end)}function $(){return toString$1(this.stack.pop())}function M(){this.data.expectingFirstListItemValue=!0}function X(ut){if(this.data.expectingFirstListItemValue){const vt=this.stack[this.stack.length-2];vt.start=Number.parseInt(this.sliceSerialize(ut),10),this.data.expectingFirstListItemValue=void 0}}function Z(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.lang=ut}function ye(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.meta=ut}function be(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function we(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.value=ut.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function xe(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.value=ut.replace(/(\r?\n|\r)$/g,"")}function $e(ut){const vt=this.resume(),xt=this.stack[this.stack.length-1];xt.label=vt,xt.identifier=normalizeIdentifier(this.sliceSerialize(ut)).toLowerCase()}function Ne(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.title=ut}function Fe(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.url=ut}function De(ut){const vt=this.stack[this.stack.length-1];if(!vt.depth){const xt=this.sliceSerialize(ut).length;vt.depth=xt}}function Le(){this.data.setextHeadingSlurpLineEnding=!0}function He(ut){const vt=this.stack[this.stack.length-1];vt.depth=this.sliceSerialize(ut).codePointAt(0)===61?1:2}function Ke(){this.data.setextHeadingSlurpLineEnding=void 0}function je(ut){const xt=this.stack[this.stack.length-1].children;let Lt=xt[xt.length-1];(!Lt||Lt.type!=="text")&&(Lt=_n(),Lt.position={start:point(ut.start),end:void 0},xt.push(Lt)),this.stack.push(Lt)}function Ve(ut){const vt=this.stack.pop();vt.value+=this.sliceSerialize(ut),vt.position.end=point(ut.end)}function qe(ut){const vt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xt=vt.children[vt.children.length-1];xt.position.end=point(ut.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(vt.type)&&(je.call(this,ut),Ve.call(this,ut))}function Ye(){this.data.atHardBreak=!0}function et(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.value=ut}function Qe(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.value=ut}function ze(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.value=ut}function st(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const vt=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=vt,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function at(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const vt=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=vt,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function tt(ut){const vt=this.sliceSerialize(ut),xt=this.stack[this.stack.length-2];xt.label=decodeString(vt),xt.identifier=normalizeIdentifier(vt).toLowerCase()}function pt(){const ut=this.stack[this.stack.length-1],vt=this.resume(),xt=this.stack[this.stack.length-1];if(this.data.inReference=!0,xt.type==="link"){const Lt=ut.children;xt.children=Lt}else xt.alt=vt}function Be(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.url=ut}function Ge(){const ut=this.resume(),vt=this.stack[this.stack.length-1];vt.title=ut}function it(){this.data.inReference=void 0}function Ue(){this.data.referenceType="collapsed"}function Ot(ut){const vt=this.resume(),xt=this.stack[this.stack.length-1];xt.label=vt,xt.identifier=normalizeIdentifier(this.sliceSerialize(ut)).toLowerCase(),this.data.referenceType="full"}function Rt(ut){this.data.characterReferenceType=ut.type}function dt(ut){const vt=this.sliceSerialize(ut),xt=this.data.characterReferenceType;let Lt;xt?(Lt=decodeNumericCharacterReference(vt,xt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Lt=decodeNamedCharacterReference(vt);const jt=this.stack[this.stack.length-1];jt.value+=Lt}function Tt(ut){const vt=this.stack.pop();vt.position.end=point(ut.end)}function ht(ut){Ve.call(this,ut);const vt=this.stack[this.stack.length-1];vt.url=this.sliceSerialize(ut)}function Ft(ut){Ve.call(this,ut);const vt=this.stack[this.stack.length-1];vt.url="mailto:"+this.sliceSerialize(ut)}function zt(){return{type:"blockquote",children:[]}}function $t(){return{type:"code",lang:null,meta:null,value:""}}function Yt(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qt(){return{type:"emphasis",children:[]}}function kn(){return{type:"heading",depth:0,children:[]}}function en(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function on(){return{type:"image",title:null,url:"",alt:null}}function Wt(){return{type:"link",title:null,url:"",children:[]}}function tn(ut){return{type:"list",ordered:ut.type==="listOrdered",start:null,spread:ut._spread,children:[]}}function vn(ut){return{type:"listItem",spread:ut._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function dn(){return{type:"strong",children:[]}}function _n(){return{type:"text",value:""}}function Kt(){return{type:"thematicBreak"}}}function point(n){return{line:n.line,column:n.column,offset:n.offset}}function configure(n,i){let t=-1;for(;++t<i.length;){const e=i[t];Array.isArray(e)?configure(n,e):extension(n,e)}}function extension(n,i){let t;for(t in i)if(own$3.call(i,t))switch(t){case"canContainEols":{const e=i[t];e&&n[t].push(...e);break}case"transforms":{const e=i[t];e&&n[t].push(...e);break}case"enter":case"exit":{const e=i[t];e&&Object.assign(n[t],e);break}}}function defaultOnError(n,i){throw n?new Error("Cannot close `"+n.type+"` ("+stringifyPosition({start:n.start,end:n.end})+"): a different token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end}
vendor: 12,311 bytes, lines 55-59
55)+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end})+") is still open")}function remarkParse(n){const i=this;i.parser=t;function t(e){return fromMarkdown(e,{...i.data("settings"),...n,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function blockquote$1(n,i){const t={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(i),!0)};return n.patch(i,t),n.applyData(i,t)}function hardBreak$1(n,i){const t={type:"element",tagName:"br",properties:{},children:[]};return n.patch(i,t),[n.applyData(i,t),{type:"text",value:` 56`}]}function code$3(n,i){const t=i.value?i.value+` 57`:"",e={},o=i.lang?i.lang.split(/\s+/):[];o.length>0&&(e.className=["language-"+o[0]]);let d={type:"element",tagName:"code",properties:e,children:[{type:"text",value:t}]};return i.meta&&(d.data={meta:i.meta}),n.patch(i,d),d=n.applyData(i,d),d={type:"element",tagName:"pre",properties:{},children:[d]},n.patch(i,d),d}function strikethrough(n,i){const t={type:"element",tagName:"del",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function emphasis$1(n,i){const t={type:"element",tagName:"em",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function footnoteReference$1(n,i){const t=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",e=String(i.identifier).toUpperCase(),o=normalizeUri(e.toLowerCase()),d=n.footnoteOrder.indexOf(e);let p,h=n.footnoteCounts.get(e);h===void 0?(h=0,n.footnoteOrder.push(e),p=n.footnoteOrder.length):p=d+1,h+=1,n.footnoteCounts.set(e,h);const y={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+o,id:t+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(p)}]};n.patch(i,y);const E={type:"element",tagName:"sup",properties:{},children:[y]};return n.patch(i,E),n.applyData(i,E)}function heading$1(n,i){const t={type:"element",tagName:"h"+i.depth,properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function html$1(n,i){if(n.options.allowDangerousHtml){const t={type:"raw",value:i.value};return n.patch(i,t),n.applyData(i,t)}}function revert(n,i){const t=i.referenceType;let e="]";if(t==="collapsed"?e+="[]":t==="full"&&(e+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+e}];const o=n.all(i),d=o[0];d&&d.type==="text"?d.value="["+d.value:o.unshift({type:"text",value:"["});const p=o[o.length-1];return p&&p.type==="text"?p.value+=e:o.push({type:"text",value:e}),o}function imageReference$1(n,i){const t=String(i.identifier).toUpperCase(),e=n.definitionById.get(t);if(!e)return revert(n,i);const o={src:normalizeUri(e.url||""),alt:i.alt};e.title!==null&&e.title!==void 0&&(o.title=e.title);const d={type:"element",tagName:"img",properties:o,children:[]};return n.patch(i,d),n.applyData(i,d)}function image$1(n,i){const t={src:normalizeUri(i.url)};i.alt!==null&&i.alt!==void 0&&(t.alt=i.alt),i.title!==null&&i.title!==void 0&&(t.title=i.title);const e={type:"element",tagName:"img",properties:t,children:[]};return n.patch(i,e),n.applyData(i,e)}function inlineCode$1(n,i){const t={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};n.patch(i,t);const e={type:"element",tagName:"code",properties:{},children:[t]};return n.patch(i,e),n.applyData(i,e)}function linkReference$1(n,i){const t=String(i.identifier).toUpperCase(),e=n.definitionById.get(t);if(!e)return revert(n,i);const o={href:normalizeUri(e.url||"")};e.title!==null&&e.title!==void 0&&(o.title=e.title);const d={type:"element",tagName:"a",properties:o,children:n.all(i)};return n.patch(i,d),n.applyData(i,d)}function link$1(n,i){const t={href:normalizeUri(i.url)};i.title!==null&&i.title!==void 0&&(t.title=i.title);const e={type:"element",tagName:"a",properties:t,children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function listItem$1(n,i,t){const e=n.all(i),o=t?listLoose(t):listItemLoose(i),d={},p=[];if(typeof i.checked=="boolean"){const $=e[0];let M;$&&$.type==="element"&&$.tagName==="p"?M=$:(M={type:"element",tagName:"p",properties:{},children:[]},e.unshift(M)),M.children.length>0&&M.children.unshift({type:"text",value:" "}),M.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),d.className=["task-list-item"]}let h=-1;for(;++h<e.length;){const $=e[h];(o||h!==0||$.type!=="element"||$.tagName!=="p")&&p.push({type:"text",value:` 58`}),$.type==="element"&&$.tagName==="p"&&!o?p.push(...$.children):p.push($)}const y=e[e.length-1];y&&(o||y.type!=="element"||y.tagName!=="p")&&p.push({type:"text",value:` 59`});const E={type:"element",tagName:"li",properties:d,children:p};return n.patch(i,E),n.applyData(i,E)}function listLoose(n){let i=!1;if(n.type==="list"){i=n.spread||!1;const t=n.children;let e=-1;for(;!i&&++e<t.length;)i=listItemLoose(t[e])}return i}function listItemLoose(n){const i=n.spread;return i??n.children.length>1}function list$1(n,i){const t={},e=n.all(i);let o=-1;for(typeof i.start=="number"&&i.start!==1&&(t.start=i.start);++o<e.length;){const p=e[o];if(p.type==="element"&&p.tagName==="li"&&p.properties&&Array.isArray(p.properties.className)&&p.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const d={type:"element",tagName:i.ordered?"ol":"ul",properties:t,children:n.wrap(e,!0)};return n.patch(i,d),n.applyData(i,d)}function paragraph$1(n,i){const t={type:"element",tagName:"p",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function root$2(n,i){const t={type:"root",children:n.wrap(n.all(i))};return n.patch(i,t),n.applyData(i,t)}function strong$1(n,i){const t={type:"element",tagName:"strong",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function table(n,i){const t=n.all(i),e=t.shift(),o=[];if(e){const p={type:"element",tagName:"thead",properties:{},children:n.wrap([e],!0)};n.patch(i.children[0],p),o.push(p)}if(t.length>0){const p={type:"element",tagName:"tbody",properties:{},children:n.wrap(t,!0)},h=pointStart(i.children[1]),y=pointEnd(i.children[i.children.length-1]);h&&y&&(p.position={start:h,end:y}),o.push(p)}const d={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(i,d),n.applyData(i,d)}function tableRow(n,i,t){const e=t?t.children:void 0,d=(e?e.indexOf(i):1)===0?"th":"td",p=t&&t.type==="table"?t.align:void 0,h=p?p.length:i.children.length;let y=-1;const E=[];for(;++y<h;){const M=i.children[y],X={},Z=p?p[y]:void 0;Z&&(X.align=Z);let ye={type:"element",tagName:d,properties:X,children:[]};M&&(ye.children=n.all(M),n.patch(M,ye),ye=n.applyData(M,ye)),E.push(ye)}const $={type:"element",tagName:"tr",properties:{},children:n.wrap(E,!0)};return n.patch(i,$),n.applyData(i,$)}function tableCell(n,i){const t={type:"element",tagName:"td",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}const tab=9,space=32;function trimLines(n){const i=String(n),t=/\r?\n|\r/g;let e=t.exec(i),o=0;const d=[];for(;e;)d.push(trimLine(i.slice(o,e.index),o>0,!0),e[0]),o=e.index+e[0].length,e=t.exec(i);return d.push(trimLine(i.slice(o),o>0,!1)),d.join("")}function trimLine(n,i,t){let e=0,o=n.length;if(i){let d=n.codePointAt(e);for(;d===tab||d===space;)e++,d=n.codePointAt(e)}if(t){let d=n.codePointAt(o-1);for(;d===tab||d===space;)o--,d=n.codePointAt(o-1)}return o>e?n.slice(e,o):""}function text$2(n,i){const t={type:"text",value:trimLines(String(i.value))};return n.patch(i,t),n.applyData(i,t)}function thematicBreak$1(n,i){const t={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(i,t),n.applyData(i,t)}const handlers={blockquote:blockquote$1,break:hardBreak$1,code:code$3,delete:strikethrough,emphasis:emphasis$1,footnoteReference:footnoteReference$1,heading:heading$1,html:html$1,imageReference:imageReference$1,image:image$1,inlineCode:inlineCode$1,linkReference:linkReference$1,link:link$1,listItem:listItem$1,list:list$1,paragraph:paragraph$1,root:root$2,strong:strong$1,table,tableCell,tableRow,text:text$2,thematicBreak:thematicBreak$1,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(n,i)=>{const t=(o,d)=>(n.set(d,o),o),e=o=>{if(n.has(o))return n.get(o);const[d,p]=i[o];switch(d){case PRIMITIVE:case VOID:return t(p,o);case ARRAY:{const h=t([],o);for(const y of p)h.push(e(y));return h}case OBJECT:{const h=t({},o);for(const[y,E]of p)h[e(y)]=e(E);return h}case DATE:return t(new Date(p),o);case REGEXP:{const{source:h,flags:y}=p;return t(new RegExp(h,y),o)}case MAP:{const h=t(new Map,o);for(const[y,E]of p)h.set(e(y),e(E));return h}case SET:{const h=t(new Set,o);for(const y of p)h.add(e(y));return h}case ERROR:{const{name:h,message:y}=p;return t(new env[h](y),o)}case BIGINT:return t(BigInt(p),o);case"BigInt":return t(Object(BigInt(p)),o);case"ArrayBuffer":return t(new Uint8Array(p).buffer,p);case"DataView":{const{buffer:h}=new Uint8Array(p);return t(new DataView(h),p)}}return t(new env[d](p),o)};return e},deserialize=n=>deserializer(new Map,n)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=n=>{const i=typeof n;if(i!=="object"||!n)return[PRIMITIVE,i];const t=toString.call(n).slice(8,-1);switch(t){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,t]}return t.includes("Array")?[ARRAY,t]:t.includes("Error")?[ERROR,t]:[OBJECT,t]},shouldSkip=([n,i])=>n===PRIMITIVE&&(i==="function"||i==="symbol"),serializer=(n,i,t,e)=>{const o=(p,h)=>{const y=e.push(p)-1;return t.set(h,y),y},d=p=>{if(t.has(p))return t.get(p);let[h,y]=typeOf(p);switch(h){case PRIMITIVE:{let $=p;switch(y){case"bigint":h=BIGINT,$=p.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+y);$=null;break;case"undefined":return o([VOID],p)}return o([h,$],p)}case ARRAY:{if(y){let X=p;return y==="DataView"?X=new Uint8Array(p.buffer):y==="ArrayBuffer"&&(X=new Uint8Array(p)),o([y,[...X]],p)}const $=[],M=o([h,$],p);for(const X of p)$.push(d(X));return M}case OBJECT:{if(y)switch(y){case"BigInt":return o([y,p.toString()],p);case"Boolean":case"Number":case"String":return o([y,p.valueOf()],p)}if(i&&"toJSON"in p)return d(p.toJSON());const $=[],M=o([h,$],p);for(const X of keys(p))(n||!shouldSkip(typeOf(p[X])))&&$.push([d(X),d(p[X])]);return M}case DATE:return o([h,p.toISOString()],p);case REGEXP:{const{source:$,flags:M}=p;return o([h,{source:$,flags:M}],p)}case MAP:{const $=[],M=o([h,$],p);for(const[X,Z]of p)(n||!(shouldSkip(typeOf(X))||shouldSkip(typeOf(Z))))&&$.push([d(X),d(Z)]);return M}case SET:{const $=[],M=o([h,$],p);for(const X of p)(n||!shouldSkip(typeOf(X)))&&$.push(d(X));return M}}const{message:E}=p;return o([h,{name:y,message:E}],p)};return d},serialize$1=(n,{json:i,lossy:t}={})=>{const e=[];return serializer(!(i||t),!!i,new Map,e)(n),e},structuredClone$1=typeof structuredClone=="function"?(n,i)=>i&&("json"in i||"lossy"in i)?deserialize(serialize$1(n,i)):structuredClone(n):(n,i)=>deserialize(serialize$1(n,i));function defaultFootnoteBackContent(n,i){const t=[{type:"text",value:"â©"}];return i>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),t}function defaultFootnoteBackLabel(n,i){return"Back to reference "+(n+1)+(i>1?"-"+i:"")}function footer(n){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",t=n.options.footnoteBackContent||defaultFootnoteBackContent,e=n.options.footnoteBackLabel||defaultFootnoteBackLabel,o=n.options.footnoteLabel||"Footnotes",d=n.options.footnoteLabelTagName||"h2",p=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let y=-1;for(;++y<n.footnoteOrder.length;){const E=n.footnoteById.get(n.footnoteOrder[y]);if(!E)continue;const $=n.all(E),M=String(E.identifier).toUpperCase(),X=normalizeUri(M.toLowerCase());let Z=0;const ye=[],be=n.footnoteCounts.get(M);for(;be!==void 0&&++Z<=be;){ye.length>0&&ye.push({type:"text",value:" "});let $e=typeof t=="string"?t:t(y,Z);typeof $e=="string"&&($e={type:"text",value:$e}
vendor: 3,539 bytes, lines 59-64
59),ye.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+X+(Z>1?"-"+Z:""),dataFootnoteBackref:"",ariaLabel:typeof e=="string"?e:e(y,Z),className:["data-footnote-backref"]},children:Array.isArray($e)?$e:[$e]})}const we=$[$.length-1];if(we&&we.type==="element"&&we.tagName==="p"){const $e=we.children[we.children.length-1];$e&&$e.type==="text"?$e.value+=" ":we.children.push({type:"text",value:" "}),we.children.push(...ye)}else $.push(...ye);const xe={type:"element",tagName:"li",properties:{id:i+"fn-"+X},children:n.wrap($,!0)};n.patch(E,xe),h.push(xe)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:d,properties:{...structuredClone$1(p),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:` 60`},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:` 61`}]}}function visit(n,i,t,e){let o,d,p;typeof i=="function"&&typeof t!="function"?(d=void 0,p=i,o=t):(d=i,p=t,o=e),visitParents(n,d,h,o);function h(y,E){const $=E[E.length-1],M=$?$.children.indexOf(y):void 0;return p(y,M,$)}}const own$2={}.hasOwnProperty,emptyOptions$3={};function createState(n,i){const t=i||emptyOptions$3,e=new Map,o=new Map,d=new Map,p={...handlers,...t.handlers},h={all:E,applyData,definitionById:e,footnoteById:o,footnoteCounts:d,footnoteOrder:[],handlers:p,one:y,options:t,patch,wrap:wrap$1};return visit(n,function($){if($.type==="definition"||$.type==="footnoteDefinition"){const M=$.type==="definition"?e:o,X=String($.identifier).toUpperCase();M.has(X)||M.set(X,$)}}),h;function y($,M){const X=$.type,Z=h.handlers[X];if(own$2.call(h.handlers,X)&&Z)return Z(h,$,M);if(h.options.passThrough&&h.options.passThrough.includes(X)){if("children"in $){const{children:be,...we}=$,xe=structuredClone$1(we);return xe.children=h.all($),xe}return structuredClone$1($)}return(h.options.unknownHandler||defaultUnknownHandler)(h,$,M)}function E($){const M=[];if("children"in $){const X=$.children;let Z=-1;for(;++Z<X.length;){const ye=h.one(X[Z],$);if(ye){if(Z&&X[Z-1].type==="break"&&(!Array.isArray(ye)&&ye.type==="text"&&(ye.value=trimMarkdownSpaceStart(ye.value)),!Array.isArray(ye)&&ye.type==="element")){const be=ye.children[0];be&&be.type==="text"&&(be.value=trimMarkdownSpaceStart(be.value))}Array.isArray(ye)?M.push(...ye):M.push(ye)}}}return M}}function patch(n,i){n.position&&(i.position=position$1(n))}function applyData(n,i){let t=i;if(n&&n.data){const e=n.data.hName,o=n.data.hChildren,d=n.data.hProperties;if(typeof e=="string")if(t.type==="element")t.tagName=e;else{const p="children"in t?t.children:[t];t={type:"element",tagName:e,properties:{},children:p}}t.type==="element"&&d&&Object.assign(t.properties,structuredClone$1(d)),"children"in t&&t.children&&o!==null&&o!==void 0&&(t.children=o)}return t}function defaultUnknownHandler(n,i){const t=i.data||{},e="value"in i&&!(own$2.call(t,"hProperties")||own$2.call(t,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function wrap$1(n,i){const t=[];let e=-1;for(i&&t.push({type:"text",value:` 62`});++e<n.length;)e&&t.push({type:"text",value:` 63`}),t.push(n[e]);return i&&n.length>0&&t.push({type:"text",value:` 64`}),t}function trimMarkdownSpaceStart(n){let i=0,t=n.charCodeAt(i);for(;t===9||t===32;)i++,t=n.charCodeAt(i);return n.slice(i)}function toHast(n,i){const t=createState(n,i),e=t.one(n,void 0),o=footer(t),d=Array.isArray(e)?{type:"root",children:e}
vendor: 4,598 bytes, lines 64-65
64:e||{type:"root",children:[]};return o&&d.children.push({type:"text",value:` 65`},o),d}function remarkRehype(n,i){return n&&"run"in n?async function(t,e){const o=toHast(t,{file:e,...i});await n.run(o,e)}:function(t,e){return toHast(t,{file:e,...n||i})}}function bail(n){if(n)throw n}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,o=function(E){return typeof Array.isArray=="function"?Array.isArray(E):i.call(E)==="[object Array]"},d=function(E){if(!E||i.call(E)!=="[object Object]")return!1;var $=n.call(E,"constructor"),M=E.constructor&&E.constructor.prototype&&n.call(E.constructor.prototype,"isPrototypeOf");if(E.constructor&&!$&&!M)return!1;var X;for(X in E);return typeof X>"u"||n.call(E,X)},p=function(E,$){t&&$.name==="__proto__"?t(E,$.name,{enumerable:!0,configurable:!0,value:$.newValue,writable:!0}):E[$.name]=$.newValue},h=function(E,$){if($==="__proto__")if(n.call(E,$)){if(e)return e(E,$).value}else return;return E[$]};return extend$1=function y(){var E,$,M,X,Z,ye,be=arguments[0],we=1,xe=arguments.length,$e=!1;for(typeof be=="boolean"&&($e=be,be=arguments[1]||{},we=2),(be==null||typeof be!="object"&&typeof be!="function")&&(be={});we<xe;++we)if(E=arguments[we],E!=null)for($ in E)M=h(be,$),X=h(E,$),be!==X&&($e&&X&&(d(X)||(Z=o(X)))?(Z?(Z=!1,ye=M&&o(M)?M:[]):ye=M&&d(M)?M:{},p(be,{name:$,newValue:y($e,ye,X)})):typeof X<"u"&&p(be,{name:$,newValue:X}));return be},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(n){if(typeof n!="object"||n===null)return!1;const i=Object.getPrototypeOf(n);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function trough(){const n=[],i={run:t,use:e};return i;function t(...o){let d=-1;const p=o.pop();if(typeof p!="function")throw new TypeError("Expected function as last argument, not "+p);h(null,...o);function h(y,...E){const $=n[++d];let M=-1;if(y){p(y);return}for(;++M<o.length;)(E[M]===null||E[M]===void 0)&&(E[M]=o[M]);o=E,$?wrap($,h)(...E):p(null,...E)}}function e(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),i}}function wrap(n,i){let t;return e;function e(...p){const h=n.length>p.length;let y;h&&p.push(o);try{y=n.apply(this,p)}catch(E){const $=E;if(h&&t)throw $;return o($)}h||(y&&y.then&&typeof y.then=="function"?y.then(d,o):y instanceof Error?o(y):d(y))}function o(p,...h){t||(t=!0,i(p,...h))}function d(p){o(null,p)}}const minpath={basename,dirname,extname,join,sep:"/"};function basename(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(n);let t=0,e=-1,o=n.length,d;if(i===void 0||i.length===0||i.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(d){t=o+1;break}}else e<0&&(d=!0,e=o+1);return e<0?"":n.slice(t,e)}if(i===n)return"";let p=-1,h=i.length-1;for(;o--;)if(n.codePointAt(o)===47){if(d){t=o+1;break}}else p<0&&(d=!0,p=o+1),h>-1&&(n.codePointAt(o)===i.codePointAt(h--)?h<0&&(e=o):(h=-1,e=p));return t===e?e=p:e<0&&(e=n.length),n.slice(t,e)}function dirname(n){if(assertPath$1(n),n.length===0)return".";let i=-1,t=n.length,e;for(;--t;)if(n.codePointAt(t)===47){if(e){i=t;break}}else e||(e=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function extname(n){assertPath$1(n);let i=n.length,t=-1,e=0,o=-1,d=0,p;for(;i--;){const h=n.codePointAt(i);if(h===47){if(p){e=i+1;break}continue}t<0&&(p=!0,t=i+1),h===46?o<0?o=i:d!==1&&(d=1):o>-1&&(d=-1)}return o<0||t<0||d===0||d===1&&o===t-1&&o===e+1?"":n.slice(o,t)}function join(...n){let i=-1,t;for(;++i<n.length;)assertPath$1(n[i]),n[i]&&(t=t===void 0?n[i]:t+"/"+n[i]);return t===void 0?".":normalize(t)}function normalize(n){assertPath$1(n);const i=n.codePointAt(0)===47;let t=normalizeString(n,!i);return t.length===0&&!i&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),i?"/"+t:t}function normalizeString(n,i){let t="",e=0,o=-1,d=0,p=-1,h,y;for(;++p<=n.length;){if(p<n.length)h=n.codePointAt(p);else{if(h===47)break;h=47}if(h===47){if(!(o===p-1||d===1))if(o!==p-1&&d===2){if(t.length<2||e!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(y=t.lastIndexOf("/"),y!==t.length-1){y<0?(t="",e=0):(t=t.slice(0,y),e=t.length-1-t.lastIndexOf("/")),o=p,d=0;continue}}else if(t.length>0){t="",e=0,o=p,d=0;continue}}i&&(t=t.length>
vendor: 1,906 bytes, line 65
650?t+"/..":"..",e=2)}else t.length>0?t+="/"+n.slice(o+1,p):t=n.slice(o+1,p),e=p-o-1;o=p,d=0}else h===46&&d>-1?d++:d=-1}return t}function assertPath$1(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const minproc={cwd};function cwd(){return"/"}function isUrl(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function urlToPath(n){if(typeof n=="string")n=new URL(n);else if(!isUrl(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return getPathFromURLPosix(n)}function getPathFromURLPosix(n){if(n.hostname!==""){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const i=n.pathname;let t=-1;for(;++t<i.length;)if(i.codePointAt(t)===37&&i.codePointAt(t+1)===50){const e=i.codePointAt(t+2);if(e===70||e===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(i)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(i){let t;i?isUrl(i)?t={path:i}:typeof i=="string"||isUint8Array$1(i)?t={value:i}:t=i:t={},this.cwd="cwd"in t?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let e=-1;for(;++e<order.length;){const d=order[e];d in t&&t[d]!==void 0&&t[d]!==null&&(this[d]=d==="history"?[...t[d]]:t[d])}let o;for(o in t)order.includes(o)||(this[o]=t[o])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}set basename(i){assertNonEmpty(i,"basename"),assertPart(i,"basename"),this.path=m
vendor: 5,178 bytes, line 65
65inpath.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?minpath.dirname(this.path):void 0}set dirname(i){assertPath(this.basename,"dirname"),this.path=minpath.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?minpath.extname(this.path):void 0}set extname(i){if(assertPart(i,"extname"),assertPath(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){isUrl(i)&&(i=urlToPath(i)),assertNonEmpty(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?minpath.basename(this.path,this.extname):void 0}set stem(i){assertNonEmpty(i,"stem"),assertPart(i,"stem"),this.path=minpath.join(this.dirname||"",i+(this.extname||""))}fail(i,t,e){const o=this.message(i,t,e);throw o.fatal=!0,o}info(i,t,e){const o=this.message(i,t,e);return o.fatal=void 0,o}message(i,t,e){const o=new VFileMessage(i,t,e);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function assertPart(n,i){if(n&&n.includes(minpath.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(n,i){if(!n)throw new Error("`"+i+"` cannot be empty")}function assertPath(n,i){if(!n)throw new Error("Setting `"+i+"` requires `path` to be set too")}function isUint8Array$1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const CallableInstance=(function(n){const e=this.constructor.prototype,o=e[n],d=function(){return o.apply(d,arguments)};return Object.setPrototypeOf(d,e),d}),own$1={}.hasOwnProperty;class Processor extends CallableInstance{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=trough()}copy(){const i=new Processor;let t=-1;for(;++t<this.attachers.length;){const e=this.attachers[t];i.use(...e)}return i.data(extend(!0,{},this.namespace)),i}data(i,t){return typeof i=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[i]=t,this):own$1.call(this.namespace,i)&&this.namespace[i]||void 0:i?(assertUnfrozen("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...e]=this.attachers[this.freezeIndex];if(e[0]===!1)continue;e[0]===!0&&(e[0]=void 0);const o=t.call(i,...e);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const t=vfile(i),e=this.parser||this.Parser;return assertParser("parse",e),e(String(t),t)}process(i,t){const e=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),t?o(void 0,t):new Promise(o);function o(d,p){const h=vfile(i),y=e.parse(h);e.run(y,h,function($,M,X){if($||!M||!X)return E($);const Z=M,ye=e.stringify(Z,X);looksLikeAValue(ye)?X.value=ye:X.result=ye,E($,X)});function E($,M){$||!M?p($):d?d(M):t(void 0,M)}}}processSync(i){let t=!1,e;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(i,o),assertDone("processSync","process",t),e;function o(d,p){t=!0,bail(d),e=p}}run(i,t,e){assertNode(i),this.freeze();const o=this.transformers;return!e&&typeof t=="function"&&(e=t,t=void 0),e?d(void 0,e):new Promise(d);function d(p,h){const y=vfile(t);o.run(i,y,E);function E($,M,X){const Z=M||i;$?h($):p?p(Z):e(void 0,Z,X)}}}runSync(i,t){let e=!1,o;return this.run(i,t,d),assertDone("runSync","run",e),o;function d(p,h){bail(p),o=h,e=!0}}stringify(i,t){this.freeze();const e=vfile(t),o=this.compiler||this.Compiler;return assertCompiler("stringify",o),assertNode(i),o(i,e)}use(i,...t){const e=this.attachers,o=this.namespace;if(assertUnfrozen("use",this.frozen),i!=null)if(typeof i=="function")y(i,t);else if(typeof i=="object")Array.isArray(i)?h(i):p(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function d(E){if(typeof E=="function")y(E,[]);else if(typeof E=="object")if(Array.isArray(E)){const[$,...M]=E;y($,M)}else p(E);else throw new TypeError("Expected usable value, not `"+E+"`")}function p(E){if(!("plugins"in E)&&!("settings"in E))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");h(E.plugins),E.settings&&(o.settings=extend(!0,o.settings,E.settings))}function h(E){let $=-1;if(E!=null)if(Array.isArray(E))for(;++$<E.length;){const M=E[$];d(M)}else throw new TypeError("Expected a list of plugins, not `"+E+"`")}function y(E,$){let M=-1,X=-1;for(;++M<e.length;)if(e[M][0]===E){X=M;break}
vendor: 4,287 bytes, line 65
65if(X===-1)e.push([E,...$]);else if($.length>0){let[Z,...ye]=$;const be=e[X][1];isPlainObject(be)&&isPlainObject(Z)&&(Z=extend(!0,be,Z)),e[X]=[E,Z,...ye]}}}}const unified=new Processor().freeze();function assertParser(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function assertCompiler(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function assertUnfrozen(n,i){if(i)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(n){if(!isPlainObject(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function assertDone(n,i,t){if(!t)throw new Error("`"+n+"` finished async. Use `"+i+"` instead")}function vfile(n){return looksLikeAVFile(n)?n:new VFile(n)}function looksLikeAVFile(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function looksLikeAValue(n){return typeof n=="string"||isUint8Array(n)}function isUint8Array(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown$2(n){const i=createProcessor(n),t=createFile(n);return post(i.runSync(i.parse(t),t),n)}function createProcessor(n){const i=n.rehypePlugins||emptyPlugins,t=n.remarkPlugins||emptyPlugins,e=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(t).use(remarkRehype,e).use(i)}function createFile(n){const i=n.children||"",t=new VFile;return typeof i=="string"&&(t.value=i),t}function post(n,i){const t=i.allowedElements,e=i.allowElement,o=i.components,d=i.disallowedElements,p=i.skipHtml,h=i.unwrapDisallowed,y=i.urlTransform||defaultUrlTransform;for(const $ of deprecations)Object.hasOwn(i,$.from)&&(""+$.from+($.to?"use `"+$.to+"` instead":"remove it")+changelog+$.id,void 0);return visit(n,E),toJsxRuntime(n,{Fragment:jsxRuntimeExports.Fragment,components:o,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function E($,M,X){if($.type==="raw"&&X&&typeof M=="number")return p?X.children.splice(M,1):X.children[M]={type:"text",value:$.value},M;if($.type==="element"){let Z;for(Z in urlAttributes)if(Object.hasOwn(urlAttributes,Z)&&Object.hasOwn($.properties,Z)){const ye=$.properties[Z],be=urlAttributes[Z];(be===null||be.includes($.tagName))&&($.properties[Z]=y(String(ye||""),Z,$))}}if($.type==="element"){let Z=t?!t.includes($.tagName):d?d.includes($.tagName):!1;if(!Z&&e&&typeof M=="number"&&(Z=!e($,M,X)),Z&&X&&typeof M=="number")return h&&$.children?X.children.splice(M,1,...$.children):X.children.splice(M,1),M}}}function defaultUrlTransform(n){const i=n.indexOf(":"),t=n.indexOf("?"),e=n.indexOf("#"),o=n.indexOf("/");return i===-1||o!==-1&&i>o||t!==-1&&i>t||e!==-1&&i>e||safeProtocol.test(n.slice(0,i))?n:""}function ccount(n,i){const t=String(n);
65if(typeof i!="string")throw new TypeError("Expected character");let e=0,o=t.indexOf(i);for(;o!==-1;)e++,o=t.indexOf(i,o+i.length);return e}const characterEntitiesLegacy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],characterReferenceInvalid={0:"�",128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"};function isDecimal(n){const i=typeof n=="string"?n.charCodeAt(0):n;return i>=48&&i<=57}function isHexadecimal(n){const i=typeof n=="string"?n.charCodeAt(0):n;return i>=97&&i<=102||i>=65&&i<=70||i>=48&&i<=57}function isAlphabetical(n){const i=typeof n=="string"?n.charCodeAt(0):n;return i>=97&&i<=122||i>=65&&i<=90}function isAlphanumerical(n){return isAlphabetical(n)||isDecimal(n)}const fromCharCode=String.fromCharCode,messages=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function parseEntities(n,i={}){const t=typeof i.additional=="string"?i.additional.charCodeAt(0):i.additional,e=[];let o=0,d=-1,p="",h,y;i.position&&("start"in i.position||"indent"in i.position?(y=i.position.indent,h=i.position.start):h=i.position);let E=(h?h.line:0)||1,$=(h?h.column:0)||1,M=Z(),X;for(o--;++o<=n.length;)if(X===10&&($=(y?y[d]:0)||1),X=n.charCodeAt(o),X===38){const we=n.charCodeAt(o+1);if(we===9||we===10||we===12||we===32||we===38||we===60||Number.isNaN(we)||t&&we===t){p+=fromCharCode(X),$++;continue}const xe=o+1;let $e=xe,Ne=xe,Fe;if(we===35){Ne=++$e;const Ye=n.charCodeAt(Ne);Ye===88||Ye===120?(Fe="hexadecimal",Ne=++$e):Fe="decimal"}else Fe="named";let De="",Le="",He="";const Ke=Fe==="named"?isAlphanumerical:Fe==="decimal"?isDecimal:isHexadecimal;for(Ne--;++Ne<=n.length;){const Ye=n.charCodeAt(Ne);if(!Ke(Ye))break;He+=fromCharCode(Ye),Fe==="named"&&characterEntitiesLegacy.includes(He)&&(De=He,Le=decodeNamedCharacterReference(He))}let je=n.charCodeAt(Ne)===59;if(je){Ne++;const Ye=Fe==="named"?decodeNamedCharacterReference(He):!1;Ye&&(De=He,Le=Ye)}let Ve=1+Ne-xe,qe="";if(!(!je&&i.nonTerminated===!1))if(!He)Fe!=="named"&&ye(4,Ve);else if(Fe==="named"){if(je&&!Le)ye(5,1);else if(De!==He&&(Ne=$e+De.length,Ve=1+Ne-$e,je=!1),!je){const Ye=De?1:3;if(i.attribute){const et=n.charCodeAt(Ne);et===61?(ye(Ye,Ve),Le=""):isAlphanumerical(et)?Le="":ye(Ye,Ve)}else ye(Ye,Ve)}qe=Le}else{je||ye(2,Ve);let Ye=Number.parseInt(He,Fe==="hexadecimal"?16:10);if(prohibited(Ye))ye(7,Ve),qe=fromCharCode(65533);else if(Ye in characterReferenceInvalid)ye(6,Ve),qe=characterReferenceInvalid[Ye];else{let et="";disallowed(Ye)&&ye(6,Ve),Ye>65535&&(Ye-=65536,et+=fromCharCode(Ye>>>10|55296),Ye=56320|Ye&1023),qe=et+fromCharCode(Ye)}}if(qe){be(),M=Z(),o=Ne-1,$+=Ne-xe+1,e.push(qe);const Ye=Z();Ye.offset++,i.reference&&i.reference.call(i.referenceContext,qe,{start:M,end:Ye},n.slice(xe-1,Ne)),M=Ye}else He=n.slice(xe-1,Ne),p+=He,$+=He.length,o=Ne-1}else X===10&&(E++,d++,$=0),Number.isNaN(X)?be():(p+=fromCharCode(X),$++);return e.join("");function Z(){return{line:E,column:$,offset:o+((h?h.offset:0)||0)}}function ye(we,xe){let $e;i.warning&&($e=Z(),$e.column+=xe,$e.offset+=xe,i.warning.call(i.warningContext,messages[we],$e,we))}function be(){p&&(e.push(p),i.text&&i.text.call(i.textContext,p,{start:M,end:Z()}),p="")}}function prohibited(n){return n>=55296&&n<=57343||n>1114111}function disallowed(n){return n>=1&&n<=8||n===11||n>=13&&n<=31||n>=127&&n<=159||n>=64976&&n<=65007||(n&65535)===65535||(n&65535)===65534}const defaultSubsetRegex=/["&'<>`]/g,surrogatePairsRegex=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,controlCharactersRegex=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,regexEscapeRegex=/[|\\{}()[\]^$+*?.]/g,subsetToRegexCache=new WeakMap;function core(n,i){if(n=n.replace(i.subset?charactersToExpressionCached(i.subset):defaultSubsetRegex,e),i.subset||i.escapeOnly)return n;return n.replace(surrogatePairsRegex,t).replace(controlCharactersRegex,e);
65function t(o,d,p){return i.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,p.charCodeAt(d+2),i)}function e(o,d,p){return i.format(o.charCodeAt(0),p.charCodeAt(d+1),i)}}function charactersToExpressionCached(n){let i=subsetToRegexCache.get(n);return i||(i=charactersToExpression(n),subsetToRegexCache.set(n,i)),i}function charactersToExpression(n){const i=[];let t=-1;for(;++t<n.length;)i.push(n[t].replace(regexEscapeRegex,"\\$&"));return new RegExp("(?:"+i.join("|")+")","g")}function formatBasic(n){return"&#x"+n.toString(16).toUpperCase()+";"}function stringifyEntitiesLight(n,i){return core(n,Object.assign({format:formatBasic},i))}const own={}.hasOwnProperty,emptyOptions$2={},shortcut=/^[^\t\n\r "#'.<=>`}]+$/,unquoted=/^[^\t\n\r "'<=>`}]+$/;function directiveFromMarkdown(){return{canContainEols:["textDirective"],enter:{directiveContainer:enterContainer,directiveContainerAttributes:enterAttributes,directiveContainerLabel:enterContainerLabel,directiveLeaf:enterLeaf,directiveLeafAttributes:enterAttributes,directiveText:enterText,directiveTextAttributes:enterAttributes},exit:{directiveContainer:exit$1,directiveContainerAttributeClassValue:exitAttributeClassValue,directiveContainerAttributeIdValue:exitAttributeIdValue,directiveContainerAttributeName:exitAttributeName,directiveContainerAttributeValue:exitAttributeValue,directiveContainerAttributes:exitAttributes,directiveContainerLabel:exitContainerLabel,directiveContainerName:exitName,directiveLeaf:exit$1,directiveLeafAttributeClassValue:exitAttributeClassValue,directiveLeafAttributeIdValue:exitAttributeIdValue,directiveLeafAttributeName:exitAttributeName,directiveLeafAttributeValue:exitAttributeValue,directiveLeafAttributes:exitAttributes,directiveLeafName:exitName,directiveText:exit$1,directiveTextAttributeClassValue:exitAttributeClassValue,directiveTextAttributeIdValue:exitAttributeIdValue,directiveTextAttributeName:exitAttributeName,directiveTextAttributeValue:exitAttributeValue,directiveTextAttributes:exitAttributes,directiveTextName:exitName}}}function directiveToMarkdown(n){const i=emptyOptions$2;if(i.quote!=='"'&&i.quote!=="'"&&i.quote!==null&&i.quote!==void 0)throw new Error("Invalid quote `"+i.quote+"`, expected `'` or `\"`");return t.peek=peekDirective,{handlers:{containerDirective:t,leafDirective:t,textDirective:t},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:` 66`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function t(d,p,h,y){const E=h.createTracker(y),$=fence(d),M=h.enter(d.type);let X=E.move($+(d.name||"")),Z;if(d.type==="containerDirective"){const ye=(d.children||[])[0];Z=inlineDirectiveLabel(ye)?ye:void 0}else Z=d;if(Z&&Z.children&&Z.children.length>0){const ye=h.enter("label"),be=`${d.type}Label`,we=h.enter(be);X+=E.move("["),X+=E.move(h.containerPhrasing(Z,{...E.current(),before:X,after:"]"})),X+=E.move("]"),we(),ye()}if(X+=E.move(e(d,h)),d.type==="containerDirective"){const ye=(d.children||[])[0];let be=d;inlineDirectiveLabel(ye)&&(be=Object.assign({},d,{children:d.children.slice(1)})),be&&be.children&&be.children.length>0&&(X+=E.move(` 67`),X+=E.move(h.containerFlow(be,E.current()))),X+=E.move(` 68`+$)}return M(),X}function e(d,p){const h=d.attributes||{},y=[];let E,$,M,X;for(X in h)if(own.call(h,X)&&h[X]!==void 0&&h[X]!==null){const Z=String(h[X]);if(X==="id")M=i.preferShortcut!==!1&&shortcut.test(Z)?"#"+Z:o("id",Z,d,p);else if(X==="class"){const ye=Z.split(/[\t\n\r ]+/g),be=[],we=[];let xe=-1;for(;++xe<ye.length;)(i.preferShortcut!==!1&&shortcut.test(ye[xe])?we:be).push(ye[xe]);E=be.length>0?o("class",be.join(" "),d,p):"",$=we.length>0?"."+we.join("."):""}else y.push(o(X,Z,d,p))}return E&&y.unshift(E),$&&y.unshift($),M&&y.unshift(M),y.length>0?"{"+y.join(" ")+"}":""}function o(d,p,h,y){if(i.collapseEmptyAttributes!==!1&&!p)return d;if(i.preferUnquoted&&unquoted.test(p))return d+"="+p;const E=i.quote||y.options.quote||'"',$=E==='"'?"'":'"',M=i.quoteSmart&&ccount(p,E)>ccount(p,$)?$:E,X=h.type==="textDirective"?[M]:[M,` 69`,"\r"];return d+"="+M+stringifyEntitiesLight(p,{subset:X})+M}}function enterContainer(n){enter.call(this,"containerDirective",n)}function enterLeaf(n){enter.call(this,"leafDirective",n)}function enterText(n){enter.call(this,"textDirective",n)}function enter(n,i){this.enter({type:n,name:"",attributes:{},children:[]},i)}function exitName(n){const i=this.stack[this.stack.length-1];i.type==="containerDirective"||i.type==="leafDirective"||i.type,i.name=this.sliceSerialize(n)}function enterContainerLabel(n){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},n)}function exitContainerLabel(n){this.exit(n)}function enterAttributes(){this.data.directiveAttributes=[],this.buffer()}function exitAttributeIdValue(n){this.data.directiveAttributes.push(["id",parseEntities(this.sliceSerialize(n),{attribute:!0})])}function exitAttributeClassValue(n){this.data.directiveAttributes.push(["class",parseEntities(this.sliceSerialize(n),{attribute:!0})])}function exitAttributeValue(n){const i=this.data.directiveAttributes;i[i.length-1][1]=parseEntities(this.sliceSerialize(n),{attribute:!0})}function exitAttributeName(n){this.data.directiveAttributes.push([this.sliceSerialize(n),""])}function exitAttributes(){const n=this.data.directiveAttributes,i={};let t=-1;for(;++t<n.length;){const o=n[t];o[0]==="class"&&i.class?i.class+=" "+o[1]:i[o[0]]=o[1]}this.data.directiveAttributes=void 0,this.resume();const e=this.stack[this.stack.length-1];e.type==="containerDirective"||e.type==="leafDirective"||e.type,e.attributes=i}function exit$1(n){this.exit(n)}function peekDirective(){return":"}function inlineDirectiveLabel(n){return!!(n&&n.type==="paragraph"&&n.data&&n.data.directiveLabel)}function fence(n){let i=0;return n.type==="containerDirective"?(visitParents(n,function(t,e){if(t.type==="containerDirective"){let o=e.length,d=0;for(;o--;)e[o].type==="containerDirective"&&d++;d>i&&(i=d)}}
69),i+=3):n.type==="leafDirective"?i=2:i=1,":".repeat(i)}function factoryAttributes(n,i,t,e,o,d,p,h,y,E,$,M,X,Z,ye){let be,we;return xe;function xe(ze){return n.enter(e),n.enter(o),n.consume(ze),n.exit(o),$e}function $e(ze){return ze===35?(be=p,Ne(ze)):ze===46?(be=h,Ne(ze)):ye&&markdownSpace(ze)?factorySpace(n,$e,"whitespace")(ze):!ye&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,$e)(ze):ze===null||markdownLineEnding(ze)||unicodeWhitespace(ze)||unicodePunctuation(ze)&&ze!==45&&ze!==95?Qe(ze):(n.enter(d),n.enter(y),n.consume(ze),Le)}function Ne(ze){const st=be+"Marker";return n.enter(d),n.enter(be),n.enter(st),n.consume(ze),n.exit(st),Fe}function Fe(ze){if(ze===null||ze===34||ze===35||ze===39||ze===46||ze===60||ze===61||ze===62||ze===96||ze===125||markdownLineEndingOrSpace(ze))return t(ze);const st=be+"Value";return n.enter(st),n.consume(ze),De}function De(ze){if(ze===null||ze===34||ze===39||ze===60||ze===61||ze===62||ze===96)return t(ze);if(ze===35||ze===46||ze===125||markdownLineEndingOrSpace(ze)){const st=be+"Value";return n.exit(st),n.exit(be),n.exit(d),$e(ze)}return n.consume(ze),De}function Le(ze){return ze===null||markdownLineEnding(ze)||unicodeWhitespace(ze)||unicodePunctuation(ze)&&ze!==45&&ze!==46&&ze!==58&&ze!==95?(n.exit(y),ye&&markdownSpace(ze)?factorySpace(n,He,"whitespace")(ze):!ye&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,He)(ze):He(ze)):(n.consume(ze),Le)}function He(ze){return ze===61?(n.enter(E),n.consume(ze),n.exit(E),Ke):(n.exit(d),$e(ze))}function Ke(ze){return ze===null||ze===60||ze===61||ze===62||ze===96||ze===125||ye&&markdownLineEnding(ze)?t(ze):ze===34||ze===39?(n.enter($),n.enter(X),n.consume(ze),n.exit(X),we=ze,Ve):ye&&markdownSpace(ze)?factorySpace(n,Ke,"whitespace")(ze):!ye&&markdownLineEndingOrSpace(ze)?factoryWhitespace(n,Ke)(ze):(n.enter(M),n.enter(Z),n.consume(ze),we=void 0,je)}function je(ze){return ze===null||ze===34||ze===39||ze===60||ze===61||ze===62||ze===96?t(ze):ze===125||markdownLineEndingOrSpace(ze)?(n.exit(Z),n.exit(M),n.exit(d),$e(ze)):(n.consume(ze),je)}function Ve(ze){return ze===we?(n.enter(X),n.consume(ze),n.exit(X),n.exit($),n.exit(d),et):(n.enter(M),qe(ze))}function qe(ze){return ze===we?(n.exit(M),Ve(ze)):ze===null?t(ze):markdownLineEnding(ze)?ye?t(ze):factoryWhitespace(n,qe)(ze):(n.enter(Z),n.consume(ze),Ye)}function Ye(ze){return ze===we||ze===null||markdownLineEnding(ze)?(n.exit(Z),qe(ze)):(n.consume(ze),Ye)}function et(ze){return ze===125||markdownLineEndingOrSpace(ze)?$e(ze):Qe(ze)}function Qe(ze){return ze===125?(n.enter(o),n.consume(ze),n.exit(o),n.exit(e),i):t(ze)}}function factoryLabel(n,i,t,e,o,d,p){let h=0,y=0,E;return $;function $(we){return n.enter(e),n.enter(o),n.consume(we),n.exit(o),M}function M(we){return we===93?(n.enter(o),n.consume(we),n.exit(o),n.exit(e),i):(n.enter(d),X(we))}function X(we){if(we===93&&!y)return be(we);const xe=n.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:E});return E&&(E.next=xe),E=xe,Z(we)}function Z(we){return we===null||h>999||we===91&&++y>32?t(we):we===93&&!y--?(n.exit("chunkText"),be(we)):markdownLineEnding(we)?p?t(we):(n.consume(we),n.exit("chunkText"),X):(n.consume(we),we===92?ye:Z)}function ye(we){return we===91||we===92||we===93?(n.consume(we),h++,Z):Z(we)}function be(we){return n.exit(d),n.enter(o),n.consume(we),n.exit(o),n.exit(e),i}}function factoryName(n,i,t,e){const o=this;return d;function d(h){return h===null||markdownLineEnding(h)||unicodePunctuation(h)||unicodeWhitespace(h)?t(h):(n.enter(e),n.consume(h),p)}function p(h){return h===null||markdownLineEnding(h)||unicodeWhitespace(h)||unicodePunctuation(h)&&h!==45&&h!==95?(n.exit(e),o.previous===45||o.previous===95?t(h):i(h)):(n.consume(h),p)}}const directiveContainer={tokenize:tokenizeDirectiveContainer,concrete:!0},label$2={tokenize:tokenizeLabel$2,partial:!0},attributes$2={tokenize:tokenizeAttributes$2,partial:!0},nonLazyLine={tokenize:tokenizeNonLazyLine,partial:!0};function tokenizeDirectiveContainer(n,i,t){const e=this,o=e.events[e.events.length-1],d=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let p=0,h;return y;function y(je){return n.enter("directiveContainer"),n.enter("directiveContainerFence"),n.enter("directiveContainerSequence"),E(je)}function E(je){return je===58?(n.consume(je),p++,E):p<3?t(je):(n.exit("directiveContainerSequence"),factoryName.call(e,n,$,t,"directiveContainerName")(je))}function $(je){return je===91?n.attempt(label$2,M,M)(je):M(je)}function M(je){return je===123?n.attempt(attributes$2,X,X)(je):X(je)}function X(je){return factorySpace(n,Z,"whitespace")(je)}function Z(je){return n.exit("directiveContainerFence"),je===null?He(je):markdownLineEnding(je)?e.interrupt?i(je):n.attempt(nonLazyLine,ye,He)(je):t(je)}function ye(je){return je===null?He(je):markdownLineEnding(je)?n.check(nonLazyLine,Ne,He)(je):(n.enter("directiveContainerContent"),be(je))}function be(je){return n.attempt({tokenize:Ke,partial:!0},Le,d?factorySpace(n,we,"linePrefix",d+1):we)(je)}function we(je){return je===null?Le(je):markdownLineEnding(je)?n.check(nonLazyLine,$e,Le)(je):$e(je)}function xe(je){if(je===null){const Ve=n.exit("chunkDocument");return e.parser.lazy[Ve.start.line]=!1,Le(je)}return markdownLineEnding(je)?n.check(nonLazyLine,Fe,De)(je):(n.consume(je),xe)}function $e(je){const Ve=n.enter("chunkDocument",{contentType:"document",previous:h});return h&&(h.next=Ve),h=Ve,xe(je)}function Ne(je){return n.enter("directiveContainerContent"),be(je)}function Fe(je){n.consume(je);const Ve=n.exit("chunkDocument");return e.parser.lazy[Ve.start.line]=!1,be}function De(je){const Ve=n.exit("chunkDocument");return e.parser.lazy[Ve.start.line]=!1,Le(je)}function Le(je){return n.exit("directiveContainerContent"),He(je)}function He(je){return n.exit("directiveContainer"),i(je)}function Ke(je,Ve,qe){let Ye=0;return factorySpace(je,et,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function et(st){return je.enter("directiveContainerFence"),je.enter("directiveContainerSequence"),Qe(st)}function Qe(st){return st===58?(je.consume(st),Ye++,Qe):Ye<p?qe(st):(je.exit("directiveContainerSequence"),factorySpace(je,ze,"whitespace")(st))}function ze(st){return st===null||markdownLineEnding(st)?(je.exit("directiveContainerFence"),Ve(st)):qe(st)}}}function tokenizeLabel$2(n,i,t){return factoryLabel(n,i,t,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function tokenizeAttributes$2(n,i,t){return factoryAttributes(n,i,t,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function tokenizeNonLazyLine(n,i,t){const e=this;return o;function o(p){return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d}function d(p){return e.parser.lazy[e.now().line]?t(p):i(p)}}const directiveLeaf={tokenize:tokenizeDirectiveLeaf},label$1={tokenize:tokenizeLabel$1,partial:!0},attributes$1={tokenize:tokenizeAttributes$1,partial:!0};function tokenizeDirectiveLeaf(n,i,t){const e=this;return o;function o($){return n.enter("directiveLeaf"),n.enter("directiveLeafSequence"),n.consume($),d}function d($){return $===58?(n.consume($),n.exit("directiveLeafSequence"),factoryName.call(e,n,p,t,"directiveLeafName")):t($)}function p($){return $===91?n.attempt(label$1,h,h)($):h($)}function h($){return $===123?n.attempt(attributes$1,y,y)($):y($)}function y($){return factorySpace(n,E,"whitespace")($)}function E($){return $===null||markdownLineEnding($)?(n.exit("directiveLeaf"),i($)):t($)}}function tokenizeLabel$1(n,i,t){return factoryLabel(n,i,t,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function tokenizeAttributes$1(n,i,t){return factoryAttributes(n,i,t,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const directiveText={tokenize:tokenizeDirectiveText,previous:previous$2},label={tokenize:tokenizeLabel,partial:!0},attributes={tokenize:tokenizeAttributes,partial:!0};function previous$2(n){return n!==58||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeDirectiveText(n,i,t){const e=this;return o;function o(y){return n.enter("directiveText"),n.enter("directiveTextMarker"),n.consume(y),n.exit("directiveTextMarker"),factoryName.call(e,n,d,t,"directiveTextName")}function d(y){return y===58?t(y):y===91?n.attempt(label,p,p)(y):p(y)}function p(y){return y===123?n.attempt(attributes,h,h)(y):h(y)}function h(y){return n.exit("directiveText"),i(y)}}function tokenizeLabel(n,i,t){return factoryLabel(n,i,t,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function tokenizeAttributes(n,i,t){return factoryAttributes(n,i,t,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function directive(){return{text:{58:directiveText},flow:{58:[directiveContainer,directiveLeaf]}}}function remarkDirective(){const i=this.data(),t=i.micromarkExtensions||(i.micromarkExtensions=[]),e=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);t.push(directive()),e.push(directiveFromMarkdown()),o.push(directiveToMarkdown())}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function enterLiteralAutolinkValue(n){this.config.enter.autolinkProtocol.call(this,n)}function exitLiteralAutolinkHttp(n){this.config.exit.autolinkProtocol.call(this,n)}function exitLiteralAutolinkWww(n){this.config.exit.data.call(this,n);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(n)}function exitLiteralAutolinkEmail(n){this.config.exit.autolinkEmail.call(this,n)}function exitLiteralAutolink(n){this.exit(n)}function transformGfmAutolinkLiterals(n){findAndReplace(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
69)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),findEmail]],{ignore:["link","linkReference"]})}function findUrl(n,i,t,e,o){let d="";if(!previous$1(o)||(/^w/i.test(i)&&(t=i+t,i="",d="http://"),!isCorrectDomain(t)))return!1;const p=splitUrl(t+e);if(!p[0])return!1;const h={type:"link",title:null,url:d+i+p[0],children:[{type:"text",value:i+p[0]}]};return p[1]?[h,{type:"text",value:p[1]}]:h}function findEmail(n,i,t,e){return!previous$1(e,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+t,children:[{type:"text",value:i+"@"+t}]}}function isCorrectDomain(n){const i=n.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function splitUrl(n){const i=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!i)return[n,void 0];n=n.slice(0,i.index);let t=i[0],e=t.indexOf(")");const o=ccount(n,"(");let d=ccount(n,")");for(;e!==-1&&o>d;)n+=t.slice(0,e+1),t=t.slice(e+1),e=t.indexOf(")"),d++;return[n,t]}function previous$1(n,i){const t=n.input.charCodeAt(n.index-1);return(n.index===0||unicodeWhitespace(t)||unicodePunctuation(t))&&(!i||t!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function exitFootnoteCallString(n){const i=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),t.label=i}function exitFootnoteCall(n){this.exit(n)}function exitFootnoteDefinitionLabelString(n){const i=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),t.label=i}function exitFootnoteDefinition(n){this.exit(n)}function footnoteReferencePeek(){return"["}function footnoteReference(n,i,t,e){const o=t.createTracker(e);let d=o.move("[^");const p=t.enter("footnoteReference"),h=t.enter("reference");return d+=o.move(t.safe(t.associationId(n),{after:"]",before:d})),h(),p(),d+=o.move("]"),d}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(n){let i=!1;return n&&n.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:t,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(e,o,d,p){const h=d.createTracker(p);let y=h.move("[^");const E=d.enter("footnoteDefinition"),$=d.enter("label");return y+=h.move(d.safe(d.associationId(e),{before:y,after:"]"})),$(),y+=h.move("]:"),e.children&&e.children.length>0&&(h.shift(4),y+=h.move((i?` 70`:" ")+d.indentLines(d.containerFlow(e,h.current()),i?mapAll:mapExceptFirst))),E(),y}}function mapExceptFirst(n,i,t){return i===0?n:mapAll(n,i,t)}function mapAll(n,i,t){return(t?"":" ")+n}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(n){this.enter({type:"delete",children:[]},n)}function exitStrikethrough(n){this.exit(n)}function handleDelete(n,i,t,e){const o=t.createTracker(e),d=t.enter("strikethrough");let p=o.move("~~");return p+=t.containerPhrasing(n,{...o.current(),before:p,after:"~"}),p+=o.move("~~"),d(),p}function peekDelete(){return"~"}function markdownTable(n,i={}){const t=(i.align||[]).concat(),e=i.stringLength||defaultStringLength,o=[],d=[],p=[],h=[];let y=0,E=-1;for(;++E<n.length;){const ye=[],be=[];let we=-1;for(n[E].length>y&&(y=n[E].length);++we<n[E].length;){const xe=serialize(n[E][we]);if(i.alignDelimiters!==!1){const $e=e(xe);be[we]=$e,(h[we]===void 0||$e>h[we])&&(h[we]=$e)}ye.push(xe)}d[E]=ye,p[E]=be}let $=-1;if(typeof t=="object"&&"length"in t)for(;++$<y;)o[$]=toAlignment(t[$]);else{const ye=toAlignment(t);for(;++$<y;)o[$]=ye}$=-1;const M=[],X=[];for(;++$<y;){const ye=o[$];let be="",we="";ye===99?(be=":",we=":"):ye===108?be=":":ye===114&&(we=":");let xe=i.alignDelimiters===!1?1:Math.max(1,h[$]-be.length-we.length);const $e=be+"-".repeat(xe)+we;i.alignDelimiters!==!1&&(xe=be.length+xe+we.length,xe>h[$]&&(h[$]=xe),X[$]=xe),M[$]=$e}d.splice(1,0,M),p.splice(1,0,X),E=-1;const Z=[];for(;++E<d.length;){const ye=d[E],be=p[E];$=-1;const we=[];for(;++$<y;){const xe=ye[$]||"";let $e="",Ne="";if(i.alignDelimiters!==!1){const Fe=h[$]-(be[$]||0),De=o[$];De===114?$e=" ".repeat(Fe):De===99?Fe%2?($e=" ".repeat(Fe/2+.5),Ne=" ".repeat(Fe/2-.5)):($e=" ".repeat(Fe/2),Ne=$e):Ne=" ".repeat(Fe)}i.delimiterStart!==!1&&!$&&we.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&xe==="")&&(i.delimiterStart!==!1||$)&&we.pu
vendor: 11,294 bytes, lines 70-82
70sh(" "),i.alignDelimiters!==!1&&we.push($e),we.push(xe),i.alignDelimiters!==!1&&we.push(Ne),i.padding!==!1&&we.push(" "),(i.delimiterEnd!==!1||$!==y-1)&&we.push("|")}Z.push(i.delimiterEnd===!1?we.join("").replace(/ +$/,""):we.join(""))}return Z.join(` 71`)}function serialize(n){return n==null?"":String(n)}function defaultStringLength(n){return n.length}function toAlignment(n){const i=typeof n=="string"?n.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function blockquote(n,i,t,e){const o=t.enter("blockquote"),d=t.createTracker(e);d.move("> "),d.shift(2);const p=t.indentLines(t.containerFlow(n,d.current()),map$1);return o(),p}function map$1(n,i,t){return">"+(t?"":" ")+n}function patternInScope(n,i){return listInScope(n,i.inConstruct,!0)&&!listInScope(n,i.notInConstruct,!1)}function listInScope(n,i,t){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return t;let e=-1;for(;++e<i.length;)if(n.includes(i[e]))return!0;return!1}function hardBreak(n,i,t,e){let o=-1;for(;++o<t.unsafe.length;)if(t.unsafe[o].character===` 72`&&patternInScope(t.stack,t.unsafe[o]))return/[ \t]/.test(e.before)?"":" ";return`\\ 73`}function longestStreak(n,i){const t=String(n);let e=t.indexOf(i),o=e,d=0,p=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;e!==-1;)e===o?++d>p&&(p=d):d=1,o=e+i.length,e=t.indexOf(i,o);return p}function formatCodeAsIndented(n,i){return!!(i.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function checkFence(n){const i=n.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function code$2(n,i,t,e){const o=checkFence(t),d=n.value||"",p=o==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(n,t)){const M=t.enter("codeIndented"),X=t.indentLines(d,map);return M(),X}const h=t.createTracker(e),y=o.repeat(Math.max(longestStreak(d,o)+1,3)),E=t.enter("codeFenced");let $=h.move(y);if(n.lang){const M=t.enter(`codeFencedLang${p}`);$+=h.move(t.safe(n.lang,{before:$,after:" ",encode:["`"],...h.current()})),M()}if(n.lang&&n.meta){const M=t.enter(`codeFencedMeta${p}`);$+=h.move(" "),$+=h.move(t.safe(n.meta,{before:$,after:` 74`,encode:["`"],...h.current()})),M()}return $+=h.move(` 75`),d&&($+=h.move(d+` 76`)),$+=h.move(y),E(),$}function map(n,i,t){return(t?"":" ")+n}function checkQuote(n){const i=n.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function definition(n,i,t,e){const o=checkQuote(t),d=o==='"'?"Quote":"Apostrophe",p=t.enter("definition");let h=t.enter("label");const y=t.createTracker(e);let E=y.move("[");return E+=y.move(t.safe(t.associationId(n),{before:E,after:"]",...y.current()})),E+=y.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=t.enter("destinationLiteral"),E+=y.move("<"),E+=y.move(t.safe(n.url,{before:E,after:">",...y.current()})),E+=y.move(">")):(h=t.enter("destinationRaw"),E+=y.move(t.safe(n.url,{before:E,after:n.title?" ":` 77`,...y.current()}))),h(),n.title&&(h=t.enter(`title${d}`),E+=y.move(" "+o),E+=y.move(t.safe(n.title,{before:E,after:o,...y.current()})),E+=y.move(o),h()),p(),E}function checkEmphasis(n){const i=n.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function encodeCharacterReference(n){return"&#x"+n.toString(16).toUpperCase()+";"}function encodeInfo(n,i,t){const e=classifyCharacter(n),o=classifyCharacter(i);return e===void 0?o===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:e===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}emphasis.peek=emphasisPeek;function emphasis(n,i,t,e){const o=checkEmphasis(t),d=t.enter("emphasis"),p=t.createTracker(e),h=p.move(o);let y=p.move(t.containerPhrasing(n,{after:o,before:h,...p.current()}));const E=y.charCodeAt(0),$=encodeInfo(e.before.charCodeAt(e.before.length-1),E,o);$.inside&&(y=encodeCharacterReference(E)+y.slice(1));const M=y.charCodeAt(y.length-1),X=encodeInfo(e.after.charCodeAt(0),M,o);X.inside&&(y=y.slice(0,-1)+encodeCharacterReference(M));const Z=p.move(o);return d(),t.attentionEncodeSurroundingInfo={after:X.outside,before:$.outside},h+y+Z}function emphasisPeek(n,i,t){return t.options.emphasis||"*"}function formatHeadingAsSetext(n,i){let t=!1;return visit(n,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||e.type==="break")return t=!0,EXIT}),!!((!n.depth||n.depth<3)&&toString$1(n)&&(i.options.setext||t))}function heading(n,i,t,e){const o=Math.max(Math.min(6,n.depth||1),1),d=t.createTracker(e);if(formatHeadingAsSetext(n,t)){const $=t.enter("headingSetext"),M=t.enter("phrasing"),X=t.containerPhrasing(n,{...d.current(),before:` 78`,after:` 79`});return M(),$(),X+` 80`+(o===1?"=":"-").repeat(X.length-(Math.max(X.lastIndexOf("\r"),X.lastIndexOf(` 81`))+1))}const p="#".repeat(o),h=t.enter("headingAtx"),y=t.enter("phrasing");d.move(p+" ");let E=t.containerPhrasing(n,{before:"# ",after:` 82`,...d.current()});return/^[\t ]/.test(E)&&(E=encodeCharacterReference(E.charCodeAt(0))+E.slice(1)),E=E?p+" "+E:p,t.options.closeAtx&&(E+=" "+p),y(),h(),E}html.peek=htmlPeek;function html(n){return n.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(n,i,t,e){const o=checkQuote(t),d=o==='"'?"Quote":"Apostrophe",p=t.enter("image");let h=t.enter("label");const y=t.createTracker(e);let E=y.move("![");return E+=y.move(t.safe(n.alt,{before:E,after:"]",...y.current()})),E+=y.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=t.enter("destinationLiteral"),E+=y.move("<"),E+=y.move(t.safe(n.url,{before:E,after:">",...y.current()})),E+=y.move(">")):(h=t.enter("destinationRaw"),E+=y.move(t.safe(n.url,{before:E,after:n.title?" ":")",...y.current()}))),h(),n.title&&(h=t.enter(`title${d}`),E+=y.move(" "+o),E+=y.move(t.safe(n.title,{before:E,after:o,...y.current()})),E+=y.move(o),h()),E+=y.move(")"),p(),E}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(n,i,t,e){const o=n.referenceType,d=t.enter("imageReference");let p=t.enter("label");const h=t.createTracker(e);let y=h.move("![");const E=t.safe(n.alt,{before:y,after:"]",...h.current()});y+=h.move(E+"]["),p();const $=t.stack;t.stack=[],p=t.enter("reference");const M=t.safe(t.associationId(n),{before:y,after:"]",...h.current()});return p(),t.stack=$,d(),o==="full"||!E||E!==M?y+=h.move(M+"]"):o==="shortcut"?y=y.slice(0,-1):y+=h.move("]"),y}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(n,i,t){let e=n.value||"",o="`",d=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(e);)o+="`";for(/[^ \r\n]/.test(e)&&(/^[ \r\n]/.test(e)&&/[ \r\n]$/.test(e)||/^`|`$/.test(e))&&(e=" "+e+" ");++d<t.unsafe.length;){const p=t.unsafe[d],h=t.compilePattern(p);let y;if(p.atBreak)for(;y=h.exec(e);){let E=y.index;e.charCodeAt(E)===10&&e.charCodeAt(E-1)===13&&E--,e=e.slice(0,E)+" "+e.slice(y.index+1)}}return o+e+o}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(n,i){const t=toString$1(n);return!!(!i.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(t===n.url||"mailto:"+t===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}link.peek=linkPeek;function link(n,i,t,e){const o=checkQuote(t),d=o==='"'?"Quote":"Apostrophe",p=t.createTracker(e);let h,y;if(formatLinkAsAutolink(n,t)){const $=t.stack;t.stack=[],h=t.enter("autolink");let M=p.move("<");return M+=p.move(t.containerPhrasing(n,{before:M,after:">",...p.current()})),M+=p.move(">"),h(),t.stack=$,M}h=t.enter("link"),y=t.enter("label");let E=p.move("[");return E+=p.move(t.containerPhrasing(n,{before:E,after:"](",...p.current()})),E+=p.move("]("),y(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(y=t.enter("destinationLiteral"),E+=p.move("<"),E+=p.move(t.safe(n.url,{before:E,after:">",...p.current()})),E+=p.move(">")):(y=t.enter("destinationRaw"),E+=p.move(t.safe(n.url,{before:E,after:n.title?" ":")",...p.current()}))),y(),n.title&&(y=t.enter(`title${d}`),E+=p.move(" "+o),E+=p.move(t.safe(n.title,{before:E,after:o,...p.current()})),E+=p.move(o),y()),E+=p.move(")"),h(),E}function linkPeek(n,i,t){return formatLinkAsAutolink(n,t)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(n,i,t,e){const o=n.referenceType,d=t.enter("linkReference");let p=t.enter("label");const h=t.createTracker(e);let y=h.move("[");const E=t.containerPhrasing(n,{before:y,after:"]",...h.current()});y+=h.move(E+"]["),p();const $=t.stack;t.stack=[],p=t.enter("reference");const M=t.safe(t.associationId(n),{before:y,after:"]",...h.current()});return p(),t.stack=$,d(),o==="full"||!E||E!==M?y+=h.move(M+"]"):o==="shortcut"?y=y.slice(0,-1):y+=h.move("]"),y}function linkReferencePeek(){return"["}function checkBullet(n){const i=n.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function checkBulletOther(n){const i=checkBullet(n),t=n.options.bulletOther;if(!t)return i==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+t+"`) to be different");return t}function checkBulletOrdered(n){const i=n.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function checkRule(n){const i=n.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function list(n,i,t,e){const o=t.enter("list"),d=t.bulletCurrent;let p=n.ordered?checkBulletOrdered(t):checkBullet(t);const h=n.ordered?p==="."?")":".":checkBulletOther(t);let y=i&&t.bulletLastUsed?p===t.bulletLastUsed:!1;if(!n.ordered){const $=n.children?n.children[0]:void 0;if((p==="*"||p==="-")&&$&&(!$.children||!$.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(y=!0),checkRule(t)===p&&$){let M=-1;for(;++M<n.children.length;){const X=n.children[M];if(X&&X.type==="listItem"&&X.children&&X.children[0]&&X.children[0].type==="thematicBreak"){y=!0;break}}}}y&&(p=h),t.bulletCurrent=p;const E=t.containerFlow(n,e);return t.bulletLastUsed=p,t.bulletCurrent=d,o(),E}function checkListItemIndent(n){const i=n.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function listItem(n,i,t,e){const o=checkListItemIndent(t);let d=t.bulletCurrent||checkBullet(t);i&&i.type==="list"&&i.ordered&&(d=(typeof i.start=="number"&&i.start>
vendor: 6,682 bytes, lines 82-84
82-1?i.start:1)+(t.options.incrementListMarker===!1?0:i.children.indexOf(n))+d);let p=d.length+1;(o==="tab"||o==="mixed"&&(i&&i.type==="list"&&i.spread||n.spread))&&(p=Math.ceil(p/4)*4);const h=t.createTracker(e);h.move(d+" ".repeat(p-d.length)),h.shift(p);const y=t.enter("listItem"),E=t.indentLines(t.containerFlow(n,h.current()),$);return y(),E;function $(M,X,Z){return X?(Z?"":" ".repeat(p))+M:(Z?d:d+" ".repeat(p-d.length))+M}}function paragraph(n,i,t,e){const o=t.enter("paragraph"),d=t.enter("phrasing"),p=t.containerPhrasing(n,e);return d(),o(),p}const phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function root$1(n,i,t,e){return(n.children.some(function(p){return phrasing(p)})?t.containerPhrasing:t.containerFlow).call(t,n,e)}function checkStrong(n){const i=n.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}strong.peek=strongPeek;function strong(n,i,t,e){const o=checkStrong(t),d=t.enter("strong"),p=t.createTracker(e),h=p.move(o+o);let y=p.move(t.containerPhrasing(n,{after:o,before:h,...p.current()}));const E=y.charCodeAt(0),$=encodeInfo(e.before.charCodeAt(e.before.length-1),E,o);$.inside&&(y=encodeCharacterReference(E)+y.slice(1));const M=y.charCodeAt(y.length-1),X=encodeInfo(e.after.charCodeAt(0),M,o);X.inside&&(y=y.slice(0,-1)+encodeCharacterReference(M));const Z=p.move(o+o);return d(),t.attentionEncodeSurroundingInfo={after:X.outside,before:$.outside},h+y+Z}function strongPeek(n,i,t){return t.options.strong||"*"}function text$1(n,i,t,e){return t.safe(n.value,e)}function checkRuleRepetition(n){const i=n.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function thematicBreak(n,i,t){const e=(checkRule(t)+(t.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(t));return t.options.ruleSpaces?e.slice(0,-1):e}const handle={blockquote,break:hardBreak,code:code$2,definition,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list,listItem,paragraph,root:root$1,strong,text:text$1,thematicBreak};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}}}function enterTable(n){const i=n._align;this.enter({type:"table",align:i.map(function(t){return t==="none"?null:t}),children:[]},n),this.data.inTable=!0}function exitTable(n){this.exit(n),this.data.inTable=void 0}function enterRow(n){this.enter({type:"tableRow",children:[]},n)}function exit(n){this.exit(n)}function enterCell(n){this.enter({type:"tableCell",children:[]},n)}function exitCodeText(n){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,replace));const t=this.stack[this.stack.length-1];t.type,t.value=i,this.exit(n)}function replace(n,i){return i==="|"?i:n}function gfmTableToMarkdown(n){const i=n||{},t=i.tableCellPadding,e=i.tablePipeAlign,o=i.stringLength,d=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 83`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:X,table:p,tableCell:y,tableRow:h}};function p(Z,ye,be,we){return E($(Z,be,we),Z.align)}function h(Z,ye,be,we){const xe=M(Z,be,we),$e=E([xe]);return $e.slice(0,$e.indexOf(` 84`))}function y(Z,ye,be,we){const xe=be.enter("tableCell"),$e=be.enter("phrasing"),Ne=be.containerPhrasing(Z,{...we,before:d,after:d});return $e(),xe(),Ne}function E(Z,ye){return markdownTable(Z,{align:ye,alignDelimiters:e,padding:t,stringLength:o})}function $(Z,ye,be){const we=Z.children;let xe=-1;const $e=[],Ne=ye.enter("table");for(;++xe<we.length;)$e[xe]=M(we[xe],ye,be);return Ne(),$e}function M(Z,ye,be){const we=Z.children;let xe=-1;const $e=[],Ne=ye.enter("tableRow");for(;++xe<we.length;)$e[xe]=y(we[xe],Z,ye,be);return Ne(),$e}function X(Z,ye,be){let we=handle.inlineCode(Z,ye,be);return be.stack.includes("tableCell")&&(we=we.replace(/\|/g,"\\$&")),we}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(n){const i=this.stack[this.stack.length-2];i.type,i.checked=n.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(n){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const e=t.children[0];if(e&&e.type==="text"){const o=i.children;let d=-1,p;for(;++d<o.length;){const h=o[d];if(h.type==="paragraph"){p=h;break}}p===t&&(e.value=e.value.slice(1),e.value.length===0?t.children.shift():t.position&&e.position&&typeof e.position.start.offset=="number"&&(e.position.start.column++,e.position.start.offset++,t.position.start=Object.assign({},e.position.start)))}}this.exit(n)}function listItemWithTaskListItem(n,i,t,e){const o=n.children[0],d=typeof n.checked=="boolean"&&o&&o.type==="paragraph",p="["+(n.checked?"x":" ")+"] ",h=t.createTracker(e);d&&h.move(p);let y=handle.listItem(n,i,t,{...e,...h.current()});return d&&(y=y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,E)),y;function E($){return $+p}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(n){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(n),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(n),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path$1={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text={};function gfmAutolinkLiteral(){return{text}}let code$1=48;for(;code$1<123;
vendor: 8,115 bytes, line 84
84)text[code$1]=emailAutolink,code$1++,code$1===58?code$1=65:code$1===91&&(code$1=97);text[43]=emailAutolink;text[45]=emailAutolink;text[46]=emailAutolink;text[95]=emailAutolink;text[72]=[emailAutolink,protocolAutolink];text[104]=[emailAutolink,protocolAutolink];text[87]=[emailAutolink,wwwAutolink];text[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(n,i,t){const e=this;let o,d;return p;function p(M){return!gfmAtext(M)||!previousEmail.call(e,e.previous)||previousUnbalanced(e.events)?t(M):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(M))}function h(M){return gfmAtext(M)?(n.consume(M),h):M===64?(n.consume(M),y):t(M)}function y(M){return M===46?n.check(emailDomainDotTrail,$,E)(M):M===45||M===95||asciiAlphanumeric(M)?(d=!0,n.consume(M),y):$(M)}function E(M){return n.consume(M),o=!0,y}function $(M){return d&&o&&asciiAlpha(e.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),i(M)):t(M)}}function tokenizeWwwAutolink(n,i,t){const e=this;return o;function o(p){return p!==87&&p!==119||!previousWww.call(e,e.previous)||previousUnbalanced(e.events)?t(p):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(wwwPrefix,n.attempt(domain,n.attempt(path$1,d),t),t)(p))}function d(p){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),i(p)}}function tokenizeProtocolAutolink(n,i,t){const e=this;let o="",d=!1;return p;function p(M){return(M===72||M===104)&&previousProtocol.call(e,e.previous)&&!previousUnbalanced(e.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(M),n.consume(M),h):t(M)}function h(M){if(asciiAlpha(M)&&o.length<5)return o+=String.fromCodePoint(M),n.consume(M),h;if(M===58){const X=o.toLowerCase();if(X==="http"||X==="https")return n.consume(M),y}return t(M)}function y(M){return M===47?(n.consume(M),d?E:(d=!0,y)):t(M)}function E(M){return M===null||asciiControl(M)||markdownLineEndingOrSpace(M)||unicodeWhitespace(M)||unicodePunctuation(M)?t(M):n.attempt(domain,n.attempt(path$1,$),t)(M)}function $(M){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(M)}}function tokenizeWwwPrefix(n,i,t){let e=0;return o;function o(p){return(p===87||p===119)&&e<3?(e++,n.consume(p),o):p===46&&e===3?(n.consume(p),d):t(p)}function d(p){return p===null?t(p):i(p)}}function tokenizeDomain(n,i,t){let e,o,d;return p;function p(E){return E===46||E===95?n.check(trail,y,h)(E):E===null||markdownLineEndingOrSpace(E)||unicodeWhitespace(E)||E!==45&&unicodePunctuation(E)?y(E):(d=!0,n.consume(E),p)}function h(E){return E===95?e=!0:(o=e,e=void 0),n.consume(E),p}function y(E){return o||e||!d?t(E):i(E)}}function tokenizePath(n,i){let t=0,e=0;return o;function o(p){return p===40?(t++,n.consume(p),o):p===41&&e<t?d(p):p===33||p===34||p===38||p===39||p===41||p===42||p===44||p===46||p===58||p===59||p===60||p===63||p===93||p===95||p===126?n.check(trail,i,d)(p):p===null||markdownLineEndingOrSpace(p)||unicodeWhitespace(p)?i(p):(n.consume(p),o)}function d(p){return p===41&&e++,n.consume(p),o}}function tokenizeTrail(n,i,t){return e;function e(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),e):h===38?(n.consume(h),d):h===93?(n.consume(h),o):h===60||h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):t(h)}function o(h){return h===null||h===40||h===91||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):e(h)}function d(h){return asciiAlpha(h)?p(h):t(h)}function p(h){return h===59?(n.consume(h),e):asciiAlpha(h)?(n.consume(h),p):t(h)}}function tokenizeEmailDomainDotTrail(n,i,t){return e;function e(d){return n.consume(d),o}function o(d){return asciiAlphanumeric(d)?t(d):i(d)}}function previousWww(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||markdownLineEndingOrSpace(n)}function previousProtocol(n){return!asciiAlpha(n)}function previousEmail(n){return!(n===47||gfmAtext(n))}function gfmAtext(n){return n===43||n===45||n===46||n===95||asciiAlphanumeric(n)}function previousUnbalanced(n){let i=n.length,t=!1;for(;i--;){const e=n[i][1];if((e.type==="labelLink"||e.type==="labelImage")&&!e._balanced){t=!0;break}if(e._gfmAutolinkLiteralWalkedInto){t=!1;break}}return n.length>0&&!t&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(n,i,t){const e=this;let o=e.events.length;const d=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);let p;for(;o--;){const y=e.events[o][1];if(y.type==="labelImage"){p=y;break}if(y.type==="gfmFootnoteCall"||y.type==="labelLink"||y.type==="label"||y.type==="image"||y.type==="link")break}return h;function h(y){if(!p||!p._balanced)return t(y);const E=normalizeIdentifier(e.sliceSerialize({start:p.end,end:e.now()}));return E.codePointAt(0)!==94||!d.includes(E.slice(1))?t(y):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),i(y))}}function resolveToPotentialGfmFootnoteCall(n,i){let t=n.length;for(;t--;)if(n[t][1].type==="labelImage"&&n[t][0]==="enter"){n[t][1];break}n[t+1][1].type="data",n[t+3][1].type="gfmFootnoteCallLabelMarker";const e={type:"gfmFootnoteCall",start:Object.assign({},n[t+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[t+3][1].end),end:Object.assign({},n[t+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const d={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},p={type:"chunkString",contentType:"string",start:Object.assign({},d.start),end:Object.assign({},d.end)},h=[n[t+1],n[t+2],["enter",e,i],n[t+3],n[t+4],["enter",o,i],["exit",o,i],["enter",d,i],["enter",p,i],["exit",p,i],["exit",d,i],n[n.length-2],n[n.length-1],["exit",e,i]];return n.splice(t,n.length-t+1,...h),n}function tokenizeGfmFootnoteCall(n,i,t){const e=this,o=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);let d=0,p;return h;function h(M){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(M),n.exit("gfmFootnoteCallLabelMarker"),y}function y(M){return M!==94?t(M):(n.enter("gfmFootnoteCallMarker"),n.consume(M),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",E)}function E(M){if(d>999||M===93&&!p||M===null||M===91||markdownLineEndingOrSpace(M))return t(M);if(M===93){n.exit("chunkString");const X=n.exit("gfmFootnoteCallString");return o.includes(normalizeIdentifier(e.sliceSerialize(X)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(M),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),i):t(M)}return markdownLineEndingOrSpace(M)||(p=!0),d++,n.consume(M),M===92?$:E}function $(M){return M===91||M===92||M===93?(n.consume(M),d++,E):E(M)}}function tokenizeDefinitionStart(n,i,t){const e=this,o=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);let d,p=0,h;return y;function y(ye){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(ye),n.exit("gfmFootnoteDefinitionLabelMarker"),E}function E(ye){return ye===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(ye),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",$):t(ye)}function $(ye){if(p>999||ye===93&&!h||ye===null||ye===91||markdownLineEndingOrSpace(ye))return t(ye);if(ye===93){n.exit("chunkString");const be=n.exit("gfmFootnoteDefinitionLabelString");return d=normalizeIdentifier(e.sliceSerialize(be)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(ye),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),X}
vendor: 4,976 bytes, line 84
84return markdownLineEndingOrSpace(ye)||(h=!0),p++,n.consume(ye),ye===92?M:$}function M(ye){return ye===91||ye===92||ye===93?(n.consume(ye),p++,$):$(ye)}function X(ye){return ye===58?(n.enter("definitionMarker"),n.consume(ye),n.exit("definitionMarker"),o.includes(d)||o.push(d),factorySpace(n,Z,"gfmFootnoteDefinitionWhitespace")):t(ye)}function Z(ye){return i(ye)}}function tokenizeDefinitionContinuation(n,i,t){return n.check(blankLine,i,n.attempt(indent,i,t))}function gfmFootnoteDefinitionEnd(n){n.exit("gfmFootnoteDefinition")}function tokenizeIndent(n,i,t){const e=this;return factorySpace(n,o,"gfmFootnoteDefinitionIndent",5);function o(d){const p=e.events[e.events.length-1];return p&&p[1].type==="gfmFootnoteDefinitionIndent"&&p[2].sliceSerialize(p[1],!0).length===4?i(d):t(d)}}function gfmStrikethrough(n){let t=(n||{}).singleTilde;const e={name:"strikethrough",tokenize:d,resolveAll:o};return t==null&&(t=!0),{text:{126:e},insideSpan:{null:[e]},attentionMarkers:{null:[126]}};function o(p,h){let y=-1;for(;++y<p.length;)if(p[y][0]==="enter"&&p[y][1].type==="strikethroughSequenceTemporary"&&p[y][1]._close){let E=y;for(;E--;)if(p[E][0]==="exit"&&p[E][1].type==="strikethroughSequenceTemporary"&&p[E][1]._open&&p[y][1].end.offset-p[y][1].start.offset===p[E][1].end.offset-p[E][1].start.offset){p[y][1].type="strikethroughSequence",p[E][1].type="strikethroughSequence";const $={type:"strikethrough",start:Object.assign({},p[E][1].start),end:Object.assign({},p[y][1].end)},M={type:"strikethroughText",start:Object.assign({},p[E][1].end),end:Object.assign({},p[y][1].start)},X=[["enter",$,h],["enter",p[E][1],h],["exit",p[E][1],h],["enter",M,h]],Z=h.parser.constructs.insideSpan.null;Z&&splice(X,X.length,0,resolveAll(Z,p.slice(E+1,y),h)),splice(X,X.length,0,[["exit",M,h],["enter",p[y][1],h],["exit",p[y][1],h],["exit",$,h]]),splice(p,E-1,y-E+3,X),y=E+X.length-2;break}}for(y=-1;++y<p.length;)p[y][1].type==="strikethroughSequenceTemporary"&&(p[y][1].type="data");return p}function d(p,h,y){const E=this.previous,$=this.events;let M=0;return X;function X(ye){return E===126&&$[$.length-1][1].type!=="characterEscape"?y(ye):(p.enter("strikethroughSequenceTemporary"),Z(ye))}function Z(ye){const be=classifyCharacter(E);if(ye===126)return M>1?y(ye):(p.consume(ye),M++,Z);if(M<2&&!t)return y(ye);const we=p.exit("strikethroughSequenceTemporary"),xe=classifyCharacter(ye);return we._open=!xe||xe===2&&!!be,we._close=!be||be===2&&!!xe,h(ye)}}}class EditMap{constructor(){this.map=[]}add(i,t,e){addImplementation(this,i,t,e)}consume(i){if(this.map.sort(function(d,p){return d[0]-p[0]}),this.map.length===0)return;let t=this.map.length;const e=[];for(;t>0;)t-=1,e.push(i.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),i.length=this.map[t][0];e.push(i.slice()),i.length=0;let o=e.pop();for(;o;){for(const d of o)i.push(d);o=e.pop()}this.map.length=0}}function addImplementation(n,i,t,e){let o=0;if(!(t===0&&e.length===0)){for(;o<n.map.length;){if(n.map[o][0]===i){n.map[o][1]+=t,n.map[o][2].push(...e);return}o+=1}n.map.push([i,t,e])}}function gfmTableAlign(n,i){let t=!1;const e=[];for(;i<n.length;){const o=n[i];if(t){if(o[0]==="enter")o[1].type==="tableContent"&&e.push(n[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[i-1][1].type==="tableDelimiterMarker"){const d=e.length-1;e[d]=e[d]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(t=!0);i+=1}return e}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(n,i,t){const e=this;let o=0,d=0,p;return h;function h(Ve){let qe=e.events.length-1;for(;qe>-1;){const Qe=e.events[qe][1].type;if(Qe==="lineEnding"||Qe==="linePrefix")qe--;else break}const Ye=qe>-1?e.events[qe][1].type:null,et=Ye==="tableHead"||Ye==="tableRow"?Le:y;return et===Le&&e.parser.lazy[e.now().line]?t(Ve):et(Ve)}function y(Ve){return n.enter("tableHead"),n.enter("tableRow"),E(Ve)}function E(Ve){return Ve===124||(p=!0,d+=1),$(Ve)}function $(Ve){return Ve===null?t(Ve):markdownLineEnding(Ve)?d>1?(d=0,e.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(Ve),n.exit("lineEnding"),Z):t(Ve):markdownSpace(Ve)?factorySpace(n,$,"whitespace")(Ve):(d+=1,p&&(p=!1,o+=1),Ve===124?(n.enter("tableCellDivider"),n.consume(Ve),n.exit("tableCellDivider"),p=!0,$):(n.enter("data"),M(Ve)))}function M(Ve){return Ve===null||Ve===124||markdownLineEndingOrSpace(Ve)?(n.exit("data"),$(Ve)):(n.consume(Ve),Ve===92?X:M)}function X(Ve){return Ve===92||Ve===124?(n.consume(Ve),M):M(Ve)}function Z(Ve){return e.interrupt=!1,e.parser.lazy[e.now().line]?t(Ve):(n.enter("tableDelimiterRow"),p=!1,markdownSpace(Ve)?factorySpace(n,ye,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ve):ye(Ve))}function ye(Ve){return Ve===45||Ve===58?we(Ve):Ve===124?(p=!0,n.enter("tableCellDivider"),n.consume(Ve),n.exit("tableCellDivider"),be):De(Ve)}
vendor: 4,237 bytes, line 84
84function be(Ve){return markdownSpace(Ve)?factorySpace(n,we,"whitespace")(Ve):we(Ve)}function we(Ve){return Ve===58?(d+=1,p=!0,n.enter("tableDelimiterMarker"),n.consume(Ve),n.exit("tableDelimiterMarker"),xe):Ve===45?(d+=1,xe(Ve)):Ve===null||markdownLineEnding(Ve)?Fe(Ve):De(Ve)}function xe(Ve){return Ve===45?(n.enter("tableDelimiterFiller"),$e(Ve)):De(Ve)}function $e(Ve){return Ve===45?(n.consume(Ve),$e):Ve===58?(p=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(Ve),n.exit("tableDelimiterMarker"),Ne):(n.exit("tableDelimiterFiller"),Ne(Ve))}function Ne(Ve){return markdownSpace(Ve)?factorySpace(n,Fe,"whitespace")(Ve):Fe(Ve)}function Fe(Ve){return Ve===124?ye(Ve):Ve===null||markdownLineEnding(Ve)?!p||o!==d?De(Ve):(n.exit("tableDelimiterRow"),n.exit("tableHead"),i(Ve)):De(Ve)}function De(Ve){return t(Ve)}function Le(Ve){return n.enter("tableRow"),He(Ve)}function He(Ve){return Ve===124?(n.enter("tableCellDivider"),n.consume(Ve),n.exit("tableCellDivider"),He):Ve===null||markdownLineEnding(Ve)?(n.exit("tableRow"),i(Ve)):markdownSpace(Ve)?factorySpace(n,He,"whitespace")(Ve):(n.enter("data"),Ke(Ve))}function Ke(Ve){return Ve===null||Ve===124||markdownLineEndingOrSpace(Ve)?(n.exit("data"),He(Ve)):(n.consume(Ve),Ve===92?je:Ke)}function je(Ve){return Ve===92||Ve===124?(n.consume(Ve),Ke):Ke(Ve)}}function resolveTable(n,i){let t=-1,e=!0,o=0,d=[0,0,0,0],p=[0,0,0,0],h=!1,y=0,E,$,M;const X=new EditMap;for(;++t<n.length;){const Z=n[t],ye=Z[1];Z[0]==="enter"?ye.type==="tableHead"?(h=!1,y!==0&&(flushTableEnd(X,i,y,E,$),$=void 0,y=0),E={type:"table",start:Object.assign({},ye.start),end:Object.assign({},ye.end)},X.add(t,0,[["enter",E,i]])):ye.type==="tableRow"||ye.type==="tableDelimiterRow"?(e=!0,M=void 0,d=[0,0,0,0],p=[0,t+1,0,0],h&&(h=!1,$={type:"tableBody",start:Object.assign({},ye.start),end:Object.assign({},ye.end)},X.add(t,0,[["enter",$,i]])),o=ye.type==="tableDelimiterRow"?2:$?3:1):o&&(ye.type==="data"||ye.type==="tableDelimiterMarker"||ye.type==="tableDelimiterFiller")?(e=!1,p[2]===0&&(d[1]!==0&&(p[0]=p[1],M=flushCell(X,i,d,o,void 0,M),d=[0,0,0,0]),p[2]=t)):ye.type==="tableCellDivider"&&(e?e=!1:(d[1]!==0&&(p[0]=p[1],M=flushCell(X,i,d,o,void 0,M)),d=p,p=[d[1],t,0,0])):ye.type==="tableHead"?(h=!0,y=t):ye.type==="tableRow"||ye.type==="tableDelimiterRow"?(y=t,d[1]!==0?(p[0]=p[1],M=flushCell(X,i,d,o,t,M)):p[1]!==0&&(M=flushCell(X,i,p,o,t,M)),o=0):o&&(ye.type==="data"||ye.type==="tableDelimiterMarker"||ye.type==="tableDelimiterFiller")&&(p[3]=t)}for(y!==0&&flushTableEnd(X,i,y,E,$),X.consume(i.events),t=-1;++t<i.events.length;){const Z=i.events[t];Z[0]==="enter"&&Z[1].type==="table"&&(Z[1]._align=gfmTableAlign(i.events,t))}return n}function flushCell(n,i,t,e,o,d){const p=e===1?"tableHeader":e===2?"tableDelimiter":"tableData",h="tableContent";t[0]!==0&&(d.end=Object.assign({},getPoint(i.events,t[0])),n.add(t[0],0,[["exit",d,i]]));const y=getPoint(i.events,t[1]);if(d={type:p,start:Object.assign({},y),end:Object.assign({},y)},n.add(t[1],0,[["enter",d,i]]),t[2]!==0){const E=getPoint(i.events,t[2]),$=getPoint(i.events,t[3]),M={type:h,start:Object.assign({},E),end:Object.assign({},$)};if(n.add(t[2],0,[["enter",M,i]]),e!==2){const X=i.events[t[2]],Z=i.events[t[3]];if(X[1].end=Object.assign({},Z[1].end),X[1].type="chunkText",X[1].contentType="text",t[3]>t[2]+1){const ye=t[2]+1,be=t[3]-t[2]-1;n.add(ye,be,[])}}n.add(t[3]+1,0,[["exit",M,i]])}return o!==void 0&&(d.end=Object.assign({},getPoint(i.events,o)),n.add(o,0,[["exit",d,i]]),d=void 0),d}function flushTableEnd(n,i,t,e,o){const d=[],p=getPoint(i.events,t);o&&(o.end=Object.assign({},p),d.push(["exit",o,i])),e.end=Object.assign({},p),d.push(["exit",e,i]),n.add(t+1,0,d)}function getPoint(n,i){const t=n[i],e=t[0]==="enter"?"start":"end";return t[1][e]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(n,i,t){const e=this;return o;function o(y){return e.previous!==null||!e._gfmTasklistFirstContentOfListItem?t(y):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),d)}function d(y){return markdownLineEndingOrSpace(y)?(n.enter("taskListCheckValueUnchecked"),n.c
vendor: 7,689 bytes, lines 84-88
84onsume(y),n.exit("taskListCheckValueUnchecked"),p):y===88||y===120?(n.enter("taskListCheckValueChecked"),n.consume(y),n.exit("taskListCheckValueChecked"),p):t(y)}function p(y){return y===93?(n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):t(y)}function h(y){return markdownLineEnding(y)?i(y):markdownSpace(y)?n.check({tokenize:spaceThenNonSpace},i,t)(y):t(y)}}function spaceThenNonSpace(n,i,t){return factorySpace(n,e,"whitespace");function e(o){return o===null?t(o):i(o)}}function gfm(n){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(n),gfmTable(),gfmTaskListItem()])}const emptyOptions$1={};function remarkGfm(n){const i=this,t=n||emptyOptions$1,e=i.data(),o=e.micromarkExtensions||(e.micromarkExtensions=[]),d=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),p=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]);o.push(gfm(t)),d.push(gfmFromMarkdown()),p.push(gfmToMarkdown(t))}function mathFromMarkdown(){return{enter:{mathFlow:n,mathFlowFenceMeta:i,mathText:d},exit:{mathFlow:o,mathFlowFence:e,mathFlowFenceMeta:t,mathFlowValue:h,mathText:p,mathTextData:h}};function n(y){const E={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[E]}},y)}function i(){this.buffer()}function t(){const y=this.resume(),E=this.stack[this.stack.length-1];E.type,E.meta=y}function e(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(y){const E=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),$=this.stack[this.stack.length-1];$.type,this.exit(y),$.value=E;const M=$.data.hChildren[0];M.type,M.tagName,M.children.push({type:"text",value:E}),this.data.mathFlowInside=void 0}function d(y){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},y),this.buffer()}function p(y){const E=this.resume(),$=this.stack[this.stack.length-1];$.type,this.exit(y),$.value=E,$.data.hChildren.push({type:"text",value:E})}function h(y){this.config.enter.data.call(this,y),this.config.exit.data.call(this,y)}}function mathToMarkdown(n){let i=(n||{}).singleDollarTextMath;return i==null&&(i=!0),e.peek=o,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 85`,inConstruct:"mathFlowMeta"},{character:"$",after:i?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:t,inlineMath:e}};function t(d,p,h,y){const E=d.value||"",$=h.createTracker(y),M="$".repeat(Math.max(longestStreak(E,"$")+1,2)),X=h.enter("mathFlow");let Z=$.move(M);if(d.meta){const ye=h.enter("mathFlowMeta");Z+=$.move(h.safe(d.meta,{after:` 86`,before:Z,encode:["$"],...$.current()})),ye()}return Z+=$.move(` 87`),E&&(Z+=$.move(E+` 88`)),Z+=$.move(M),X(),Z}function e(d,p,h){let y=d.value||"",E=1;for(i||E++;new RegExp("(^|[^$])"+"\\$".repeat(E)+"([^$]|$)").test(y);)E++;const $="$".repeat(E);/[^ \r\n]/.test(y)&&(/^[ \r\n]/.test(y)&&/[ \r\n]$/.test(y)||/^\$|\$$/.test(y))&&(y=" "+y+" ");let M=-1;for(;++M<h.unsafe.length;){const X=h.unsafe[M];if(!X.atBreak)continue;const Z=h.compilePattern(X);let ye;for(;ye=Z.exec(y);){let be=ye.index;y.codePointAt(be)===10&&y.codePointAt(be-1)===13&&be--,y=y.slice(0,be)+" "+y.slice(ye.index+1)}}return $+y+$}function o(){return"$"}}const mathFlow={tokenize:tokenizeMathFenced,concrete:!0,name:"mathFlow"},nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0};function tokenizeMathFenced(n,i,t){const e=this,o=e.events[e.events.length-1],d=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let p=0;return h;function h($e){return n.enter("mathFlow"),n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),y($e)}function y($e){return $e===36?(n.consume($e),p++,y):p<2?t($e):(n.exit("mathFlowFenceSequence"),factorySpace(n,E,"whitespace")($e))}function E($e){return $e===null||markdownLineEnding($e)?M($e):(n.enter("mathFlowFenceMeta"),n.enter("chunkString",{contentType:"string"}),$($e))}function $($e){return $e===null||markdownLineEnding($e)?(n.exit("chunkString"),n.exit("mathFlowFenceMeta"),M($e)):$e===36?t($e):(n.consume($e),$)}function M($e){return n.exit("mathFlowFence"),e.interrupt?i($e):n.attempt(nonLazyContinuation,X,we)($e)}function X($e){return n.attempt({tokenize:xe,partial:!0},we,Z)($e)}function Z($e){return(d?factorySpace(n,ye,"linePrefix",d+1):ye)($e)}function ye($e){return $e===null?we($e):markdownLineEnding($e)?n.attempt(nonLazyContinuation,X,we)($e):(n.enter("mathFlowValue"),be($e))}function be($e){return $e===null||markdownLineEnding($e)?(n.exit("mathFlowValue"),ye($e)):(n.consume($e),be)}function we($e){return n.exit("mathFlow"),i($e)}function xe($e,Ne,Fe){let De=0;return factorySpace($e,Le,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(je){return $e.enter("mathFlowFence"),$e.enter("mathFlowFenceSequence"),He(je)}function He(je){return je===36?(De++,$e.consume(je),He):De<p?Fe(je):($e.exit("mathFlowFenceSequence"),factorySpace($e,Ke,"whitespace")(je))}function Ke(je){return je===null||markdownLineEnding(je)?($e.exit("mathFlowFence"),Ne(je)):Fe(je)}}}function tokenizeNonLazyContinuation(n,i,t){const e=this;return o;function o(p){return p===null?i(p):(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d)}function d(p){return e.parser.lazy[e.now().line]?t(p):i(p)}}function mathText(n){let t=(n||{}).singleDollarTextMath;return t==null&&(t=!0),{tokenize:e,resolve:resolveMathText,previous,name:"mathText"};function e(o,d,p){let h=0,y,E;return $;function $(be){return o.enter("mathText"),o.enter("mathTextSequence"),M(be)}function M(be){return be===36?(o.consume(be),h++,M):h<2&&!t?p(be):(o.exit("mathTextSequence"),X(be))}function X(be){return be===null?p(be):be===36?(E=o.enter("mathTextSequence"),y=0,ye(be)):be===32?(o.enter("space"),o.consume(be),o.exit("space"),X):markdownLineEnding(be)?(o.enter("lineEnding"),o.consume(be),o.exit("lineEnding"),X):(o.enter("mathTextData"),Z(be))}function Z(be){return be===null||be===32||be===36||markdownLineEnding(be)?(o.exit("mathTextData"),X(be)):(o.consume(be),Z)}function ye(be){return be===36?(o.consume(be),y++,ye):y===h?(o.exit("mathTextSequence"),o.exit("mathText"),d(be)):(E.type="mathTextData",Z(be))}}}function resolveMathText(n){let i=n.length-4,t=3,e,o;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(e=t;++e<i;)if(n[e][1].type==="mathTextData"){n[i][1].type="mathTextPadding",n[t][1].type="mathTextPadding",t+=2,i-=2;break}}for(e=t-1,i++;++e<=i;)o===void 0?e!==i&&n[e][1].type!=="lineEnding"&&(o=e):(e===i||n[e][1].type==="lineEnding")&&(n[o][1].type="mathTextData",e!==o+2&&(n[o][1].end=n[e-1][1].end,n.splice(o+2,e-o-2),i-=e-o-2,e=o+2),o=void 0);return n}function previous(n){return n!==36||this.events[this.events.length-1][1].type==="characterEscape"}function math(n){return{flow:{36:mathFlow},text:{36:mathText(n)}}}const emptyOptions={};function remarkMath(n){const i=this,t=n||emptyOptions,e=i.data(),o=e.micromarkExtensions||(e.micromarkExtensions=[]),d=e.fromMarkdownExtensions||(e.fromMarkdownExtensions=[]),p=e.toMarkdownExtensions||(e.toMarkdownExtensions=[]);o.push(math(t)),d.push(mathFromMarkdown()),p.push(mathToMarkdown(t))}const streamlitLogo="data:image/svg+xml,%3csvg%20width='301'%20height='165'%20viewBox='0%200%20301%20165'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150.731%20101.547L98.1387%2073.7471L6.84674%2025.4969C6.7634%2025.4136%206.59674%2025.4136%206.51341%2025.4136C3.18007%2023.8303%20-0.236608%2027.
881636%201.0134%2030.497L47.5302%20149.139L47.5385%20149.164C47.5885%20149.281%2047.6302%20149.397%2047.6802%20149.514C49.5885%20153.939%2053.7552%20156.672%2058.2886%20157.747C58.6719%20157.831%2058.9461%20157.906%2059.4064%20157.998C59.8645%20158.1%2060.5052%20158.239%2061.0552%20158.281C61.1469%20158.289%2061.2302%20158.289%2061.3219%20158.297H61.3886C61.4552%20158.306%2061.5219%20158.306%2061.5886%20158.314H61.6802C61.7386%20158.322%2061.8052%20158.322%2061.8636%20158.322H61.9719C62.0386%20158.331%2062.1052%20158.331%2062.1719%20158.331V158.331C121.084%20164.754%20180.519%20164.754%20239.431%20158.331V158.331C240.139%20158.331%20240.831%20158.297%20241.497%20158.231C241.714%20158.206%20241.922%20158.181%20242.131%20158.156C242.156%20158.147%20242.189%20158.147%20242.214%20158.139C242.356%20158.122%20242.497%20158.097%20242.639%20158.072C242.847%20158.047%20243.056%20158.006%20243.264%20157.964C243.681%20157.872%20243.87%20157.806%20244.436%20157.611C245.001%20157.417%20245.94%20157.077%20246.527%20156.794C247.115%20156.511%20247.522%20156.239%20248.014%20155.931C248.622%20155.547%20249.201%20155.155%20249.788%20154.715C250.041%20154.521%20250.214%20154.397%20250.397%20154.222L250.297%20154.164L150.731%20101.547Z'%20fill='%23FF4B4B'/%3e%3cpath%20d='M294.766%2025.4981H294.683L203.357%2073.7483L254.124%20149.357L300.524%2030.4981V30.3315C301.691%2026.8314%20298.108%2023.6648%20294.766%2025.4981'%20fill='%237D353B'/%3e%3cpath%20d='M155.598%202.55572C153.264%20-0.852624%20148.181%20-0.852624%20145.931%202.55572L98.1389%2073.7477L150.731%20101.548L250.398%20154.222C251.024%20153.609%20251.526%20153.012%20252.056%20152.381C252.806%20151.456%20253.506%20150.465%20254.123%20149.356L203.356%2073.7477L155.598%202.55572Z'%20fill='%23BD4043'/%3e%3c/svg%3e",IsSidebarContext=reactExports.createContext(!1);IsSidebarContext.displayName="IsSidebarContext";const TOP_DISTANCE="-2.65rem",StyledToolbarWrapper=styled("div",{target:"e9y9btk0"})(({theme:n,locked:i,target:t})=>({padding:`${n.spacing.sm} 0 ${n.spacing.sm} ${n.spacing.sm}`,position:"absolute",top:i?TOP_DISTANCE:"-1rem",right:n.spacing.none,transition:"none",...!i&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:TOP_DISTANCE},...t&&{[`${t}:hover &, ${t}:active &, ${t}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:TOP_DISTANCE}}}})),StyledToolbar=styled("div",{target:"e9y9btk1"})(({theme:n})=>
88({color:hasLightBackgroundColor(n)?n.colors.fadedText60:n.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:n.shadows.toolbar,borderRadius:n.radii.default,backgroundColor:n.colors.lightenedBg05,width:"fit-content",zIndex:n.zIndices.sidebar+1,padding:n.spacing.twoXS})),StyledToolbarElementContainer=styled("div",{target:"e9y9btk2"})(({height:n,useContainerWidth:i,topCentered:t,useContainerHeight:e})=>({position:"relative",height:i&&n?n:e?n||"100%":"fit-content",maxWidth:"100%",width:i?"100%":"fit-content",...t?{display:"flex",justifyContent:"center"}:{}})),codeLink={"a > &":{color:"inherit"}},StyledInlineCode=styled("code",{target:"e19xqh4f0"})(({theme:n})=>({padding:"0.2em 0.4em",overflowWrap:"break-word",whiteSpace:"pre-wrap",margin:0,borderRadius:n.radii.sm,background:n.colors.codeBackgroundColor,color:n.colors.codeTextColor,fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.inlineCodeFontSize,fontWeight:n.fontWeights.code,...codeLink})),codeBlockStyle=(n,i)=>({background:"transparent",border:0,color:"inherit",display:"inline",fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.codeFontSize,fontWeight:n.fontWeights.code,lineHeight:"inherit",margin:0,overflowX:"auto",padding:0,whiteSpace:i?"pre-wrap":"pre",overflowWrap:i?"break-word":"normal",...codeLink}),StyledCode=styled("code",{target:"e19xqh4f1"})(({theme:n,wrapLines:i})=>({...codeBlockStyle(n,i)})),StyledPre=styled("pre",{target:"e19xqh4f2"})(({theme:n,wrapLines:i})=>({height:"100%",background:n.colors.codeBackgroundColor,borderRadius:n.radii.default,color:n.colors.bodyText,fontSize:n.fontSizes.twoSm,fontFamily:n.genericFonts.codeFont,display:"block",margin:0,msOverflowStyle:"scrollbar",overflow:"auto",padding:n.spacing.lg,code:{...codeBlockStyle(n,i)},".comment.linenumber":{color:n.colors.fadedText40,fontSize:n.fontSizes.twoSm,alignSelf:"center",minWidth:`${n.spacing.threeXL} !important`},".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:n.colors.gray70},".token.punctuation":{color:n.colors.gray70},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:n.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:n.colors.green70},".token.number, .token.regex":{color:n.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:n.colors.green80},".token.operator, .token.entity":{color:n.colors.orange90},".token.url":{color:n.colors.purple80},".token.decorator, .token.atrule":{color:n.colors.orange90},".token.keyword, .token.tag":{color:n.colors.blue70},".token.function, .token.class-name, .token.selector":{color:n.colors.blue70,fontWeight:n.fontWeights.codeExtraBold},".token.important":{color:n.colors.red70,fontWeight:n.fontWeights.codeExtraBold},".token.comment":{color:n.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"},".token.deleted.line, .token.deleted.prefix":{color:n.colors.red70},".token.inserted.line, .token.inserted.prefix":{color:n.colors.green70},".token.unchanged.line":{color:n.colors.gray70}})),CODE_TOOLBAR_OPACITY_TRANSITION="opacity 300ms 150ms",CODE_TOOLBAR_HIDE_TRANSITION=`${CODE_TOOLBAR_OPACITY_TRANSITION}, visibility 0ms linear 450ms`,CODE_TOOLBAR_SHOW_TRANSITION=`${CODE_TOOLBAR_OPACITY_TRANSITION}, visibility 0ms linear 150ms`,StyledCodeToolbarWrapper=styled("div",{target:"e19xqh4f3"})(({theme:n})=>({opacity:0,visibility:"hidden",padding:`${n.spacing.sm} ${n.spacing.sm} 0 0`,top:0,right:0,position:"absolute",zIndex:n.zIndices.sidebar+1,pointerEvents:"none",transition:CODE_TOOLBAR_HIDE_TRANSITION})),StyledCodeBlock=styled("div",{target:"e19xqh4f4"})(({theme:n})=>({height:"100%",position:"relative",borderRadius:n.radii.default,marginLeft:n.spacing.none,marginRight:n.spacing.none,marginTop:n.spacing.none,marginBottom:void 0,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing},"&:hover, &:focus-visible, &:focus-within:has(:focus-visible)":{[`${StyledCodeToolbarWrapper}`]:{opacity:1,visibility:"visible",pointerEvents:"auto",transition:CODE_TOOLBAR_SHOW_TRANSITION}}})),StyledCodeToolbar=styled(StyledToolbar,{target:"e19xqh4f5"})({pointerEvents:"auto"});function useTimeout(n,i,t={}){const e=reactExports.useRef(null),o=reactExports.useRef(n),d=reactExports.useRef(i),{autoStart:p=!0}=t;reactExports.useEffect(()=>{o.current=n},[n]),reactExports.useEffect(()=>{d.current=i},[i]);const h=reactExports.useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),y=reactExports.useCallback($=>{h();const M=$===void 0?d.current:$;M!==null&&(e.current=setTimeout(()=>{o.current()},M))},[h]);reactExports.useEffect(()=>{if(p)return y(),h},[p,i,y,h]),reactExports.useEffect(()=>h,[h]);const E=reactExports.useCallback($=>{y($)},[y]);return{clear:h,restart:E}}const pulseAnimation=keyframes("0%,100%{opacity:0.5;}50%{opacity:1;}
88"),ANIMATION_STYLES={animationDuration:"750ms",animationName:pulseAnimation,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:"infinite"},StyledSkeleton=styled("div",{target:"eik1rca0"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.lg})),TitleSkeleton=styled("div",{target:"eik1rca1"})(({theme:n})=>({height:n.fontSizes.fourXL,width:`calc(${n.sizes.contentMaxWidth} * 0.37)`,maxWidth:"75%",background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),ParagraphSkeleton=styled("div",{target:"eik1rca2"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.sm})),TextLineSkeleton=styled("div",{target:"eik1rca3"})(({theme:n,width:i})=>({height:n.fontSizes.md,width:i,background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),SquareSkeleton=styled("div",{target:"eik1rca4"})(({theme:n,height:i,width:t})=>({height:i??n.fontSizes.fourXL,width:t??"100%",background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),SHOW_DELAY_MS=500,RawAppSkeleton=()=>{const[n,i]=reactExports.useState(!1);return useTimeout(()=>{i(!0)},SHOW_DELAY_MS),n?jsxs(StyledSkeleton,{className:"stAppSkeleton","data-testid":"stAppSkeleton",children:[jsx$1(TitleSkeleton,{}),jsxs(ParagraphSkeleton,{children:[jsx$1(TextLineSkeleton,{width:"98%"}),jsx$1(TextLineSkeleton,{width:"100%"}),jsx$1(TextLineSkeleton,{width:"96%"}),jsx$1(TextLineSkeleton,{width:"65%"})]}),jsx$1(SquareSkeleton,{width:"75%",height:"9rem"})]}):jsx$1(Fragment,{})},AppSkeleton=reactExports.memo(RawAppSkeleton),RawSkeleton=({element:n})=>n.style==Skeleton$1.SkeletonStyle.APP?jsx$1(AppSkeleton,{}):jsx$1(SquareSkeleton,{className:"stSkeleton","data-testid":"stSkeleton",height:n?.height?n.height+"px":void 0}),Skeleton=reactExports.memo(RawSkeleton);var KIND=Object.freeze({info:"info",positive:"positive",warning:"warning",negative:"negative"}),TYPE=Object.freeze({inline:"inline",toast:"toast"}),PLACEMENT=Object.freeze({topLeft:"topLeft",top:"top",topRight:"topRight",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft"});function getSvgStyles(n){var i=n.$theme,t=n.$size,e=n.$color,o=i.sizing.scale600;t&&(i.sizing[t]?o=i.sizing[t]:typeof t=="number"?o="".concat(t,"px"):o=t);var d="currentColor";return e&&(i.colors[e]?d=i.colors[e]:d=e),{display:"inline-block",fill:d,color:d,height:o,width:o}}var Svg=styled$1("svg",getSvgStyles);Svg.displayName="Svg";Svg.displayName="Svg";function _objectDestructuringEmpty(n){if(n==null)throw new TypeError("Cannot destructure undefined")}function ownKeys$7(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$6(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$7(Object(t),!0).forEach(function(e){_defineProperty$7(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$7(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$7(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function getBackgroundColor(n,i,t){var e,o=i===TYPE.inline;return(e={},_defineProperty$7(e,KIND.info,o?t.colors.notificationInfoBackground:t.colors.toastInfoBackground),_defineProperty$7(e,KIND.positive,o?t.colors.notificationPositiveBackground:t.colors.toastPositiveBackground),_defineProperty$7(e,KIND.warning,o?t.colors.notificationWarningBackground:t.colors.toastWarningBackground),_defineProperty$7(e,KIND.negative,o?t.colors.notificationNegativeBackground:t.colors.toastNegativeBackground),e)[n]}function getFontColor(n,i,t){var e,o=i===TYPE.inline;if(o){var d;return(d={},_defineProperty$7(d,KIND.info,t.colors.notificationInfoText),_defineProperty$7(d,KIND.positive,t.colors.notificationPositiveText),_defineProperty$7(d,KIND.warning,t.colors.notificationWarningText),_defineProperty$7(d,KIND.negative,t.colors.notificationNegativeText),d)[n]}return(e={},_defineProperty$7(e,KIND.info,t.colors.toastInfoText),_defineProperty$7(e,KIND.positive,t.colors.toastPositiveText),_defineProperty$7(e,KIND.warning,t.colors.toastWarningText),_defineProperty$7(e,KIND.negative,t.colors.toastNegativeText),e)[n]}function getPlacement(n){switch(n){case PLACEMENT.topLeft:return{top:0,alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT.top:return{top:0,alignItems:"center",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT.topRight:return{top:0,alignItems:"flex-end",justifyContent:"flex-start",flexDirection:"column"};case PLACEMENT.bottomRight:return{bottom:0,alignItems:"flex-end",justifyContent:"flex-end",flexDirection:"column-reverse"};case PLACEMENT.bottom:return{bottom:0,alignItems:"center",justifyContent:"flex-end",flexDirection:"column-reverse"};case PLACEMENT.bottomLeft:return{bottom:0,alignItems:"flex-start",justifyContent:"flex-end",flexDirection:"column-reverse"}}}var Root$1=styled$1("div",function(n){var i=n.$placement,t=n.$theme;return _objectSpread$6({pointerEvents:"none",position:"fixed",right:0,left:0,display:"flex",marginTop:t.sizing.scale300,marginBottom:t.sizing.scale300,marginLeft:t.sizing.scale600,marginRight:t.sizing.scale600},getPlacement(i))});Root$1.displayName="Root";Root$1.displayName="Root";var InnerContainer=styled$1("div",function(n){return _objectDestructuringEmpty(n),{}});
88InnerContainer.displayName="InnerContainer";InnerContainer.displayName="InnerContainer";var Body$1=styled$1("div",function(n){var i=n.$isVisible,t=n.$kind,e=n.$type,o=n.$theme,d=e===TYPE.inline;return _objectSpread$6(_objectSpread$6({},o.typography.font300),{},{pointerEvents:"auto",color:getFontColor(t,e,o),height:"auto",width:"288px",paddingTop:o.sizing.scale600,paddingRight:o.sizing.scale600,paddingBottom:o.sizing.scale600,paddingLeft:o.sizing.scale600,marginTop:o.sizing.scale300,marginBottom:o.sizing.scale300,backgroundColor:getBackgroundColor(t,e,o)||o.colors.accent,borderTopLeftRadius:o.borders.radius400,borderTopRightRadius:o.borders.radius400,borderBottomRightRadius:o.borders.radius400,borderBottomLeftRadius:o.borders.radius400,boxShadow:d?"none":o.lighting.shadow600,opacity:i?1:0,transitionProperty:"all",transitionDuration:o.animation.timing200,transitionTimingFunction:o.animation.easeInOutCurve,display:"flex",justifyContent:"space-between"})});Body$1.displayName="Body";Body$1.displayName="Body";var CloseIconSvg=styled$1("svg",function(n){var i=n.$theme,t=n.$size,e=n.$color,o=n.$isFocusVisible;return _objectSpread$6(_objectSpread$6({},getSvgStyles({$theme:i,$size:t,$color:e})),{},{cursor:"pointer",width:t||"16px",flexShrink:0,outline:o?"3px solid ".concat(i.colors.accent):"none"})});CloseIconSvg.displayName="CloseIconSvg";CloseIconSvg.displayName="CloseIconSvg";function omitDollarPrefixedKeys(n){var i={};for(var t in n)t[0]!=="$"&&(i[t]=n[t]);return i}var _excluded$8=["children","title","size","color","overrides"];function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$6.apply(this,arguments)}function ownKeys$6(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$5(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$6(Object(t),!0).forEach(function(e){_defineProperty$6(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$6(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$6(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _slicedToArray$5(n,i){return _arrayWithHoles$5(n)||_iterableToArrayLimit$5(n,i)||_unsupportedIterableToArray$5(n,i)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$5(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$5(n,i)}}function _arrayLikeToArray$5(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$5(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$5(n){if(Array.isArray(n))return n}function _objectWithoutProperties$5(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$4(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$4(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}var Icon=function n(i,t){var e=i.children,o=i.title,d=i.size,p=i.color,h=i.overrides,y=h===void 0?{}:h,E=_objectWithoutProperties$5(i,_excluded$8),$=getOverrides(y.Svg,Svg),M=_slicedToArray$5($,2),X=M[0],Z=M[1],ye=X.__STYLETRON__?_objectSpread$5(_objectSpread$5({title:o,$color:p,$size:d},E),Z):_objectSpread$5(_objectSpread$5({title:o,color:p,size:d},omitDollarPrefixedKeys(E)),omitDollarPrefixedKeys(Z));return reactExports.createElement(X,_extends$6({"data-baseweb":"icon",ref:t},ye),o?reactExports.createElement("title",null,o):null,e)};
89const Icon$1=reactExports.forwardRef(Icon);var _excluded$7=["title","size","color","overrides"];function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$5.apply(this,arguments)}function _objectWithoutProperties$4(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$3(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$3(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function _slicedToArray$4(n,i){return _arrayWithHoles$4(n)||_iterableToArrayLimit$4(n,i)||_unsupportedIterableToArray$4(n,i)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$4(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$4(n,i)}}function _arrayLikeToArray$4(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$4(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$4(n){if(Array.isArray(n))return n}function Delete(n,i){var t=useStyletron(),e=_slicedToArray$4(t,2),o=e[1],d=n.title,p=d===void 0?"Delete":d,h=n.size,y=n.color,E=n.overrides,$=E===void 0?{}:E,M=_objectWithoutProperties$4(n,_excluded$7),X=mergeOverride({component:o.icons&&o.icons.Delete?o.icons.Delete:null},$&&$.Svg?toObjectOverride($.Svg):{});return reactExports.createElement(Icon$1,_extends$5({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:X}},M),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L12 10.5858L15.2929 7.29289C15.6834 6.90237 16.3166 6.90237 16.7071 7.29289C17.0976 7.68342 17.0976 8.31658 16.7071 8.70711L13.4142 12L16.7071 15.2929C17.0976 15.6834 17.0976 16.3166 16.7071 16.7071C16.3166 17.0976 15.6834 17.0976 15.2929 16.7071L12 13.4142L8.70711 16.7071C8.31658 17.0976 7.68342 17.0976 7.29289 16.7071C6.90237 16.3166 6.90237 15.6834 7.29289 15.2929L10.5858 12L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z"}))}const DeleteIcon=reactExports.forwardRef(Delete);function _typeof$2(n){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(n)}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$4.apply(this,arguments)}function _slicedToArray$3(n,i){return _arrayWithHoles$3(n)||_iterableToArrayLimit$3(n,i)||_unsupportedIterableToArray$3(n,i)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 91In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$3(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$3(n,i)}}function _arrayLikeToArray$3(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$3(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$3(n){if(Array.isArray(n))return n}function _classCallCheck$3(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$3(n,i,t){return i&&_defineProperties$3(n.prototype,i
91),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$3(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$2(n,i)}function _setPrototypeOf$2(n,i){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$2(n,i)}function _createSuper$3(n){var i=_isNativeReflectConstruct$3();return function(){var e=_getPrototypeOf$3(n),o;if(i){var d=_getPrototypeOf$3(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$3(this,o)}}function _possibleConstructorReturn$3(n,i){if(i&&(_typeof$2(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(n)}function _assertThisInitialized$3(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$3(n){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$3(n)}function _defineProperty$5(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Toast$1=(function(n){_inherits$3(t,n);var i=_createSuper$3(t);function t(e){var o;return _classCallCheck$3(this,t),o=i.call(this,e),_defineProperty$5(_assertThisInitialized$3(o),"autoHideTimeout",void 0),_defineProperty$5(_assertThisInitialized$3(o),"animateInTimer",void 0),_defineProperty$5(_assertThisInitialized$3(o),"animateOutCompleteTimer",void 0),_defineProperty$5(_assertThisInitialized$3(o),"closeRef",void 0),_defineProperty$5(_assertThisInitialized$3(o),"previouslyFocusedElement",void 0),_defineProperty$5(_assertThisInitialized$3(o),"state",{isVisible:!1,isRendered:!0,isFocusVisible:!1}),_defineProperty$5(_assertThisInitialized$3(o),"handleFocus",function(d){isFocusVisible(d)&&o.setState({isFocusVisible:!0})}),_defineProperty$5(_assertThisInitialized$3(o),"handleBlur",function(d){o.state.isFocusVisible!==!1&&o.setState({isFocusVisible:!1})}),_defineProperty$5(_assertThisInitialized$3(o),"animateIn",function(){o.animateInTimer=setTimeout(function(){o.setState({isVisible:!0})},0)}),_defineProperty$5(_assertThisInitialized$3(o),"animateOut",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};o.setState({isVisible:!1}),o.animateOutCompleteTimer=setTimeout(function(){o.setState({isRendered:!1}),d()},600)}),_defineProperty$5(_assertThisInitialized$3(o),"dismiss",function(){o.animateOut(o.props.onClose),o.props.autoFocus&&o.previouslyFocusedElement&&o.previouslyFocusedElement.focus()}),_defineProperty$5(_assertThisInitialized$3(o),"onFocus",function(d){o.state.isVisible&&(clearTimeout(o.autoHideTimeout),clearTimeout(o.animateOutCompleteTimer),typeof o.props.onFocus=="function"&&o.props.onFocus(d))}),_defineProperty$5(_assertThisInitialized$3(o),"onMouseEnter",function(d){o.state.isVisible&&(clearTimeout(o.autoHideTimeout),clearTimeout(o.animateOutCompleteTimer),typeof o.props.onMouseEnter=="function"&&o.props.onMouseEnter(d))}),_defineProperty$5(_assertThisInitialized$3(o),"onBlur",function(d){o.startTimeout(),typeof o.props.onBlur=="function"&&o.props.onBlur(d)}),_defineProperty$5(_assertThisInitialized$3(o),"onMouseLeave",function(d){o.startTimeout(),typeof o.props.onMouseLeave=="function"&&o.props.onMouseLeave(d)}),o.closeRef=reactExports.createRef(),o.previouslyFocusedElement=null,o}return _createClass$3(t,[{key:"componentDidMount",value:function(){this.animateIn(),this.startTimeout(),typeof document<"u"&&this.props.autoFocus&&this.closeRef&&this.closeRef.current&&this.closeRef.current.focus&&typeof this.closeRef.current.focus=="function"&&(this.previouslyFocusedElement=document.activeElement,this.closeRef.current.focus(),this.setState({isFocusVisible:!0}))}},{key:"componentDidUpdate",value:function(o){(this.props.autoHideDuration!==o.autoHideDuration||this.props.__updated!==o.__updated)&&this.startTimeout()}},{key:"componentWillUnmount",value:function(){this.clearTimeout()}},{key:"startTimeout",value:function(){this.props.autoHideDuration&&(this.autoHideTimeout&&clearTimeout(this.autoHideTimeout),this.autoHideTimeout=setTimeout(this.dismiss,this.props.autoHideDuration))}},{key:"clearTimeout",value:(function(e){function o(){return e.apply(this,arguments)}return o.toString=function(){return e.toString()},o})(function(){[this.autoHideTimeout,this.animateInTimer,this.animateOutCompleteTimer].forEach(function(e){e&&clearTimeout(e)})})},{key:"getSharedProps",value:function(){var o=this.props,d=o.kind,p=o.notificationType,h=o.closeable,y=this.state,E=y.isRendered,$=y.isVisible;return{$kind:d,$type:p,$closeable:h,$isRendered:E,$isVisible:$}}},{key:"render",value:function(){var o=this,d=this.props,p=d.children,h=d.closeable,y=this.state.isRendered,E=this.props.overrides,$=E.Body,M=E.CloseIcon,X=E.InnerContainer,Z=getOverrides($,Body$1),ye=_slicedToArray$3(Z,2),be=ye[0],we=ye[1],xe=getOverrides(X,InnerContainer),$e=_slicedToArray$3(xe,2),Ne=$e[0],Fe=$e[1],De=getOverrides(M,CloseIconSvg),Le=_slicedToArray$3(De,2),He=Le[0],Ke=Le[1],je=mergeOverrides({Svg:{component:He}},{Svg:M}),Ve=this.getSharedProps();return y?reactExports.createElement(LocaleContext.Consumer,null,function(qe){return reactExports.createElement(be,_extends$4({role:"alert","data-baseweb":o.props["data-baseweb"]||"toast"},Ve,we,{onBlur:o.onBlur,onFocus:o.onFocus,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave}),reactExports.createElement(Ne,_extends$4({},Ve,Fe),typeof p=="function"?p({dismiss:o.dismiss}):p),h?reactExports.createElement(DeleteIcon,_extends$4({ref:o.closeRef,role:"button",tabIndex:0,$isFocusVisible:o.state.isFocusVisible,onClick:o.dismiss,onKeyPress:function(et){et.key==="Enter"&&o.dismiss()},title:qe.toast.close},Ve,Ke,{onFocus:forkFocus(Ke,o.handleFocus),onBlur:forkBlur(Ke,o.handleBlur),overrides:je})):null)}):null}}]),t})(reactExports.Component);_defineProperty$5(Toast$1,"defaultProps",{autoFocus:!1,autoHideDuration:0,
91closeable:!0,kind:KIND.info,notificationType:TYPE.toast,onClose:function n(){},onBlur:function n(){},onFocus:function n(){},onMouseEnter:function n(){},onMouseLeave:function n(){},overrides:{}});function _typeof$1(n){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(n)}var _excluded$6=["onClose","children","key"];function _slicedToArray$2(n,i){return _arrayWithHoles$2(n)||_iterableToArrayLimit$2(n,i)||_unsupportedIterableToArray$2(n,i)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$2(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}function _arrayWithHoles$2(n){if(Array.isArray(n))return n}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$3.apply(this,arguments)}function _objectWithoutProperties$3(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$2(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$2(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function _toConsumableArray$1(n){return _arrayWithoutHoles$1(n)||_iterableToArray$1(n)||_unsupportedIterableToArray$2(n)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 93In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$2(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$2(n,i)}}function _iterableToArray$1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}
93function _arrayWithoutHoles$1(n){if(Array.isArray(n))return _arrayLikeToArray$2(n)}function _arrayLikeToArray$2(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function ownKeys$5(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$4(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$5(Object(t),!0).forEach(function(e){_defineProperty$4(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$5(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _classCallCheck$2(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$2(n,i,t){return i&&_defineProperties$2(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$2(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$1(n,i)}function _setPrototypeOf$1(n,i){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf$1(n,i)}function _createSuper$2(n){var i=_isNativeReflectConstruct$2();return function(){var e=_getPrototypeOf$2(n),o;if(i){var d=_getPrototypeOf$2(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$2(this,o)}}function _possibleConstructorReturn$2(n,i){if(i&&(_typeof$1(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(n)}function _assertThisInitialized$2(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$2(n){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$2(n)}function _defineProperty$4(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var toasterRef,ToasterContainer=(function(n){_inherits$2(t,n);var i=_createSuper$2(t);function t(e){var o;return _classCallCheck$2(this,t),o=i.call(this,e),_defineProperty$4(_assertThisInitialized$2(o),"state",{isMounted:!1,toasts:[]}),_defineProperty$4(_assertThisInitialized$2(o),"dismissHandlers",{}),_defineProperty$4(_assertThisInitialized$2(o),"toastId",0),_defineProperty$4(_assertThisInitialized$2(o),"getToastProps",function(d){var p=o.props,h=p.autoFocus,y=p.autoHideDuration,E=p.closeable,$=d.key||"toast-".concat(o.toastId++);return _objectSpread$4(_objectSpread$4({autoFocus:h,autoHideDuration:y,closeable:E},d),{},{key:$})}),_defineProperty$4(_assertThisInitialized$2(o),"show",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(o.state.toasts.map(function(h){return h.key}).includes(d.key))return o.update(d.key,d),d.key;var p=o.getToastProps(d);return o.setState(function(h){var y=h.toasts;return{toasts:[].concat(_toConsumableArray$1(y),[p])}}),p.key}),_defineProperty$4(_assertThisInitialized$2(o),"update",function(d,p){o.setState(function(h){var y=h.toasts,E=y.map(function($){if($.key===d){var M=_objectSpread$4(_objectSpread$4(_objectSpread$4({},$),o.getToastProps(_objectSpread$4({autoHideDuration:$.autoHideDuration},p))),{},{key:d},o.props.resetAutoHideTimerOnUpdate?{__updated:(+$.__updated||0)+1}:{});return M}return $});return{toasts:E}})}),_defineProperty$4(_assertThisInitialized$2(o),"dismiss",function(d){o.dismissHandlers[d]&&o.dismissHandlers[d]()}),_defineProperty$4(_assertThisInitialized$2(o),"clearAll",function(){Object.keys(o.dismissHandlers).forEac
93h(function(d){o.dismissHandlers[d]()})}),_defineProperty$4(_assertThisInitialized$2(o),"clear",function(d){d===void 0?o.clearAll():o.dismiss(d)}),_defineProperty$4(_assertThisInitialized$2(o),"internalOnClose",function(d){delete o.dismissHandlers[d],o.setState(function(p){var h=p.toasts;return{toasts:h.filter(function(y){return y.key!==d})}})}),_defineProperty$4(_assertThisInitialized$2(o),"getOnCloseHandler",function(d,p){return function(){o.internalOnClose(d),typeof p=="function"&&p()}}),_defineProperty$4(_assertThisInitialized$2(o),"renderToast",function(d){var p=d.onClose,h=d.children,y=d.key,E=_objectWithoutProperties$3(d,_excluded$6),$=o.props.overrides,M=$.ToastBody,X=$.ToastCloseIcon,Z=$.ToastInnerContainer,ye=mergeOverrides({Body:Body$1,CloseIcon:CloseIconSvg,InnerContainer},{Body:M||{},CloseIcon:X||{},InnerContainer:Z||{}}),be=mergeOverrides(ye,d.overrides);return reactExports.createElement(Toast$1,_extends$3({},E,{overrides:be,key:y,onClose:o.getOnCloseHandler(y,p)}),function(we){var xe=we.dismiss;return o.dismissHandlers[y]=xe,h})}),_defineProperty$4(_assertThisInitialized$2(o),"getSharedProps",function(){var d=o.props.placement;return{$placement:d}}),toasterRef=_assertThisInitialized$2(o),o}return _createClass$2(t,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"render",value:function(){for(var o=this.getSharedProps(),d=this.props.overrides.Root,p=getOverrides(d,Root$1),h=_slicedToArray$2(p,2),y=h[0],E=h[1],$=this.state.toasts.length,M=[],X=$-1;X>=0;X--)M.push(this.renderToast(this.state.toasts[X]));var Z=reactExports.createElement(y,_extends$3({"data-baseweb":"toaster"},o,E),M);return this.state.isMounted?reactExports.createElement(reactExports.Fragment,null,this.props.usePortal&&typeof document<"u"&&document.body?ReactDOM.createPortal(Z,document.body):Z,this.props.children):reactExports.createElement(reactExports.Fragment,null,this.props.children)}}]),t})(reactExports.Component);_defineProperty$4(ToasterContainer,"defaultProps",{autoFocus:!1,autoHideDuration:0,children:null,closeable:!0,overrides:{},placement:PLACEMENT.top,resetAutoHideTimerOnUpdate:!0,usePortal:!0});var toaster={getRef:function n(){return toasterRef},show:function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=this.getRef();if(e)return e.show(_objectSpread$4(_objectSpread$4({},t),{},{children:i}))},info:function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$4(_objectSpread$4({},t),{},{kind:KIND.info}))},positive:function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$4(_objectSpread$4({},t),{},{kind:KIND.positive}))},warning:function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$4(_objectSpread$4({},t),{},{kind:KIND.warning}))},negative:function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$4(_objectSpread$4({},t),{},{kind:KIND.negative}))},update:function n(i,t){var e=this.getRef();e&&e.update(i,t)},clear:function n(i){var t=this.getRef();t&&t.clear(i)}};function _typeof(n){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(n)}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$2.apply(this,arguments)}function _classCallCheck$1(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass$1(n,i,t){return i&&_defineProperties$1(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}
93function _inherits$1(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf(n,i)}function _setPrototypeOf(n,i){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},_setPrototypeOf(n,i)}function _createSuper$1(n){var i=_isNativeReflectConstruct$1();return function(){var e=_getPrototypeOf$1(n),o;if(i){var d=_getPrototypeOf$1(this).constructor;o=Reflect.construct(e,arguments,d)}else o=e.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _possibleConstructorReturn$1(n,i){if(i&&(_typeof(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(n)}function _assertThisInitialized$1(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$1(n){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf$1(n)}function _defineProperty$3(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Notification=(function(n){_inherits$1(t,n);var i=_createSuper$1(t);function t(){return _classCallCheck$1(this,t),i.apply(this,arguments)}return _createClass$1(t,[{key:"render",value:function(){var o=mergeOverrides({Body:{style:function(p){var h=p.$theme;return{marginTop:h.sizing.scale600,marginRight:h.sizing.scale600,marginBottom:h.sizing.scale600,marginLeft:h.sizing.scale600}}}},this.props.overrides);return reactExports.createElement(Toast$1,_extends$2({"data-baseweb":"notification"},this.props,{overrides:o}))}}]),t})(reactExports.Component);_defineProperty$3(Notification,"defaultProps",{notificationType:TYPE.inline,closeable:!1});const StyledAlertContent$1=styled("div",{target:"e5p6yly0"})(({theme:n})=>({pre:{backgroundColor:n.colors.transparent,paddingTop:n.spacing.lg,paddingBottom:n.spacing.lg,paddingRight:n.spacing.lg,paddingLeft:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"pre, code":{backgroundColor:n.colors.transparent,color:"inherit"}},code:{backgroundColor:n.colors.transparent,padding:n.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}));var Kind=(function(n){return n.ERROR="error",n.INFO="info",n.SUCCESS="success",n.WARNING="warning",n})({});function getNotificationKind(n){switch(n){case"error":return KIND.negative;case"info":return KIND.info;case"success":return KIND.positive;case"warning":return KIND.warning;default:throw new Error(`Unexpected alert type: ${n}`)}}function AlertContainer({kind:n,width:i,children:t}){const e=useEmotionTheme(),o=n.charAt(0).toUpperCase()+n.slice(1);return jsx$1(Notification,{kind:getNotificationKind(n),overrides:{Body:{style:{fontWeight:e.fontWeights.normal,marginTop:e.spacing.none,marginBottom:e.spacing.none,marginLeft:e.spacing.none,marginRight:e.spacing.none,width:i?i.toString():void 0,border:0,borderTopRightRadius:e.radii.default,borderBottomRightRadius:e.radii.default,borderTopLeftRadius:e.radii.default,borderBottomLeftRadius:e.radii.default,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg},props:{"data-testid":"stAlertContainer",className:"stAlertContainer"}},InnerContainer:{style:{width:"100%",lineHeight:e.lineHeights.small}}},children:jsx$1(StyledAlertContent$1,{"data-testid":`stAlertContent${o}`,children:t})})}const StyledStackTrace=styled("pre",{target:"e1p6lu300"})(({theme:n})=>({whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:n.fontSizes.codeFontSize,fontFamily:n.genericFonts.codeFont,fontWeight:n.fontWeights.code,backgroundColor:n.colors.transparent,overflowX:"auto",margin:0,borderRadius:n.radii.default,padding:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledErrorName=styled("strong",{target:"e1p6lu301"})(({theme:n})=>({fontWeight:n.fontWeights.codeBold}));function ErrorElement(n){const{name:i,message:t,stack:e,width:o}=n,d=e?e.split(` 94`):[];d.shift();const p=d.map(h=>h.trim()).join(` 95`);return jsxs(AlertContainer,{kind:Kind.ERROR,width:o,children:[jsxs(StyledErrorName,{children:[i,": "]}),t,e?jsx$1(StyledStackTrace,{"data-testid":"stErrorElementStack",children:jsx$1(StyledCode,{wrapLines:!1,children:p})}):null]})}const LOG$h=loglevelExports.getLogger("ErrorBoundary"),Os=class Os extends reactExports.PureComponent{constructor(){super(...arguments),this.state={error:null},this.componentDidCatch=i=>{LOG$h.error(`${i.name}: ${i.message} 96${i.stack}`)}}render(){const{error:i}=this.state;return i?i.name==="ChunkLoadError"?jsx$1(ErrorElement,{width:this.props.width,name:"Network issue",message:jsxs("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",jsx$1("br",{}),"To fix this, simply reload this app by pressing"," ",jsx$1(StyledInlineCode,{children:"F5"}),","," ",jsx$1(StyledInlineCode,{children:"Ctrl+R"}),", or"," ",jsx$1(StyledInlineCode,{children:"Cmd+R"}),".",jsx$1("br",{}
96),"If the error persists, try force-clearing your browser's cache as described"," ",jsx$1("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):jsx$1(ErrorElement,{width:this.props.width,name:i.name,message:i.message,stack:i.stack}):this.props.children}};Os.getDerivedStateFromError=i=>({error:i});let ErrorBoundary=Os;function convertRemToEm(n){return n.replace(/rem$/,"em")}function sharedMarkdownStyle(n){return{a:{color:n.colors.link,textDecoration:n.linkUnderline?"underline":"none","&:focus":{outline:"none",boxShadow:n.shadows.focusRing,borderRadius:n.radii.default},"&:focus:not(:focus-visible)":{boxShadow:n.shadows.none},"&:focus-visible":{boxShadow:n.shadows.focusRing,borderRadius:n.radii.default}}}}function convertFontSizes(n,i,t){if(i){const e=roundFontSizeToNearestEighth(parseFloat(n)*.65),o=`${Math.max(e,.75)}rem`;return t?convertRemToEm(o):o}return t?convertRemToEm(n):n}function getMarkdownHeadingDefinitions(n,i,t){return{"h1, h2, h3, h4, h5, h6":{fontFamily:n.genericFonts.headingFont,lineHeight:n.lineHeights.headings,margin:0,color:"inherit"},h1:{fontSize:convertFontSizes(n.fontSizes.h1FontSize,i,t),fontWeight:n.fontWeights.h1FontWeight,padding:`${n.spacing.xl} 0 ${n.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:n.fontWeights.h1FontWeight},"h2, h3":{letterSpacing:"-0.005em"},h2:{fontSize:convertFontSizes(n.fontSizes.h2FontSize,i,t),fontWeight:n.fontWeights.h2FontWeight,padding:`${n.spacing.lg} 0 ${n.spacing.lg} 0`},h3:{fontSize:convertFontSizes(n.fontSizes.h3FontSize,i,t),fontWeight:n.fontWeights.h3FontWeight,padding:`${n.spacing.md} 0 ${n.spacing.lg} 0`},h4:{fontSize:convertFontSizes(n.fontSizes.h4FontSize,i,t),fontWeight:n.fontWeights.h4FontWeight,padding:`${n.spacing.sm} 0 ${n.spacing.lg} 0`},h5:{fontSize:convertFontSizes(n.fontSizes.h5FontSize,i,t),fontWeight:n.fontWeights.h5FontWeight,padding:`${n.spacing.xs} 0 ${n.spacing.lg} 0`},h6:{fontSize:convertFontSizes(n.fontSizes.h6FontSize,i,t),fontWeight:n.fontWeights.h6FontWeight,padding:`${n.spacing.twoXS} 0 ${n.spacing.lg} 0`}}}const StyledStreamlitMarkdown=styled("div",{target:"ey36t7e0"})(({theme:n,isCaption:i,isInDialog:t,isLabel:e,inheritFont:o,boldLabel:d,largerLabel:p,isToast:h,truncate:y})=>{const E=e&&!p||h||i;return{fontFamily:o?"inherit":n.genericFonts.bodyFont,fontSize:o?"inherit":E?n.fontSizes.sm:n.fontSizes.md,fontWeight:o?"inherit":void 0,marginBottom:e?"":`-${n.spacing.lg}`,opacity:i?.6:void 0,color:"inherit",maxWidth:"100%",width:e?"":"100%",overflowWrap:"break-word",...sharedMarkdownStyle(n),...getMarkdownHeadingDefinitions(n,t,i),...y&&{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:o?"inherit":"normal","& p":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:o?"inherit":"normal"}},"&:has(.katex-display)":{overflowX:"hidden"},p:{wordBreak:"break-word",marginBottom:e?n.spacing.none:"",fontWeight:o?"inherit":d?n.fontWeights.bold:void 0,marginTop:n.spacing.none,marginLeft:n.spacing.none,marginRight:n.spacing.none},img:{maxWidth:"100%",maxHeight:e?"1em":void 0,verticalAlign:"middle",objectFit:"scale-down"},li:{margin:"0.2em 0 0.2em 1.15em",padding:"0 0 0 0.3em"},"li.task-list-item":{listStyleType:"none",padding:"0",marginLeft:"0","input[type='checkbox']":{verticalAlign:"middle",margin:"0 0.35em 0.1em 0"}},blockquote:{margin:"1em 0 1em 0",padding:"0 0 0 0.75em",borderLeft:`0.15em solid ${n.colors.borderColor}`,opacity:.6},"b, strong":{fontWeight:n.fontWeights.bold},"b code, strong code":{fontWeight:n.fontWeights.codeBold},hr:{margin:"2em 0",padding:0,color:"inherit",backgroundColor:"transparent",border:"none",borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:not([size])":{height:n.sizes.borderWidth}},table:{display:"table",borderCollapse:"collapse",marginBottom:n.spacing.lg},tr:{borderTop:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},th:{textAlign:"inherit"},"th, td":{padding:`${n.spacing.xs} ${n.spacing.md}`,border:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`}
96,"span.stMarkdownColoredBackground":{borderRadius:n.radii.sm,padding:`${n.spacing.threeXS} ${n.spacing.twoXS}`,margin:n.spacing.none,boxDecorationBreak:"clone"},"span.stMarkdownBadge":{borderRadius:n.radii.sm,padding:`0 ${n.spacing.twoXS}`,margin:`0 ${n.spacing.px}`,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",display:"inline-block",verticalAlign:"middle"},"p, ol, ul, dl, li":{fontSize:"inherit"},"& > ul, & > ol":{display:"block",width:"fit-content",textAlign:"left"},"li > ul, li > ol":{display:"block"},".katex-display":{overflowX:"auto",overflowY:"hidden"},".katex":{fontWeight:n.fontWeights.normal}}}),StyledLinkIcon=styled("a",{target:"ey36t7e1"})(({theme:n})=>({lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity 150ms ease-in-out",svg:{stroke:n.colors.fadedText60,strokeWidth:n.sizes.defaultStrokeWidth},"&:hover svg":{stroke:n.colors.bodyText},"&:focus-visible":{opacity:1,pointerEvents:"auto"}})),StyledHeadingWithActionElements=styled("div",{target:"ey36t7e2"})(({theme:n})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:n.sizes.headerHeight},...sharedMarkdownStyle(n),wordBreak:"break-word",textWrap:"pretty","&:hover, &:focus-within":{[StyledLinkIcon]:{opacity:1,pointerEvents:"auto"}}})),StyledHeadingActionElements=styled("span",{target:"ey36t7e3"})(({theme:n})=>({marginLeft:n.spacing.sm,display:"inline-flex",gap:n.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=styled("hr",{target:"ey36t7e4"})(({theme:n,rainbow:i,color:t})=>({height:`${n.spacing.threeXS} !important`,marginTop:n.spacing.sm,marginBottom:n.spacing.none,border:"none",borderRadius:n.radii.full,...i?{background:t}:{backgroundColor:t}})),StyledPreWrapper=styled("div",{target:"ey36t7e5"})(({theme:n})=>({marginBottom:n.spacing.lg})),StyledHelpIconWrapper=styled("span",{target:"ey36t7e6"})({display:"inline-block",verticalAlign:"middle",transform:"translateY(-0.1em)"}),LOAD_FAILED=Symbol("plugin_load_failed"),pluginCache={katex:null,raw:null,emoji:null},loadingPromises={katex:null,raw:null,emoji:null},loadKatexPlugin=()=>__vitePreload(()=>import("./index.DsAQEkI1.js"),__vite__mapDeps([0,1,2]),import.meta.url),loadKatexStyles=once(()=>{__vitePreload(()=>Promise.resolve().then(()=>katex_min),void 0,import.meta.url)}),loadRehypeRaw=()=>__vitePreload(()=>import("./index.XO1XYf_A.js"),__vite__mapDeps([3,1,2]),import.meta.url),loadRemarkEmoji=()=>__vitePreload(()=>import("./index.BmuTnu6z.js"),__vite__mapDeps([4,5]),import.meta.url);function isLoadedPlugin(n){return n!==null&&n!==LOAD_FAILED}function extractPlugin(n,i){const t=[];let e=n,o=0;for(;e&&typeof e=="object"&&"default"in e&&o<5;){const d=e.default;if(t.push(d),d===e)break;e=d,o+=1}t.push(n);for(const d of t)if(typeof d=="function")return d;return console.warn(`[StreamlitMarkdown] Failed to load ${i} plugin`),LOAD_FAILED}function wrapRehypePlugin(n,i){return t=>{const e=n(t);return(o,d)=>{if(!o)return o;try{return e(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function wrapRemarkPlugin(n,i){return t=>{const e=n(t);return(o,d)=>{if(!o)return o;try{return e(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function useLazyPlugin(n){const{key:i,needed:t,load:e,pluginName:o,onBeforeLoad:d}=n,p=t?pluginCache[i]:null,[h,y]=reactExports.useState(null);return reactExports.useEffect(()=>{if(!t||p||h)return;const E=loadingPromises[i];if(E){let X=!1;return E.then(Z=>{X||y(()=>Z)}),()=>{X=!0}}d?.();let $=!1;const M=e().then(X=>extractPlugin(X,o)).then(X=>(pluginCache[i]=X,$||y(()=>X),X)).catch(()=>{const X=LOAD_FAILED;return pluginCache[i]=X,$||y(()=>X),X}).finally(()=>{loadingPromises[i]=null});return loadingPromises[i]=M,()=>{$=!0}},[t,p,h,i,e,o,d]),t?p??h:null}const StreamlitSyntaxHighlighter$1=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.CmYHPzGN.js"),__vite__mapDeps([6,2]),import.meta.url));function containsEmojiShortcodes(n){return/:(?!material\/|streamlit:)[\w+-][\w_+-]*:/.test(n)}function containsMathSyntax(n){return new RegExp("\\$\\$[\\s\\S]+?\\$\\$|\\$(?!\\s)[^$\\n]+?(?<!\\s)\\$").test(n)}var Tags=(function(n){return n.H1="h1",n.H2="h2",n.H3="h3",n})({});function rehypeSetCodeInlineProperty(){return n=>{visit(n,"element",(i,t,e)=>{i.tagName==="code"&&(e?.type==="element"&&e.tagName==="pre"?i.properties={...i.properties,inline:!1}:i.properties={...i.properties,inline:!0})})}}function createAnchorFromText(n){if(!n)return"";const i=slugify(n);return i.length>0?i:xxhash.h32(n,43981).toString(16)}function transformLinkUri(n){return n}const scrollNodeIntoView=once(n=>{n.scrollIntoView(!0)}),HeaderActionElements=({elementId:n,help:i,hideAnchor:t})=>{const e=useEmotionTheme();return!i&&t?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[i&&jsx$1(InlineTooltipIcon,{content:i}),n&&!t&&jsx$1(StyledLinkIcon,{href:`#${n}`,"aria-label":"Link to heading",children:jsx$1(Link2,{size:convertRemToPx(e.iconSizes.base),"aria-hidden":"true"})})]})},HeadingWithActionElements=({tag:n,anchor:i,help:t,hideAnchor:e,children:o,tagProps:d})=>{const p=reactExports.useContext(IsSidebarContext),h=reactExports.useContext(IsDialogContext),[y,E]=reactExports.useState(i),$=reactExports.useCallback(Fe=>{if(Fe===null)return;const De=i||createAnchorFromText(Fe.textContent);E(De);const Le=window.location.hash.slice(1);Le&&Le===De&&scrollNodeIntoView(Fe)},[i]),M=p||h,X=jsx$1(HeaderActionElements,{elementId:y,help:t,hideAnchor:e||M}),Z=reactExports.useId(),ye=t||y&&!e&&!M?Z:void 0,be=y?{id:y}:{},we=ye?{"aria-labelledby":ye}:{},xe={...M?{}:{ref:$,...be},...we},Ne=jsxs(n,{...d,...xe,children:[ye?jsx$1("span",{id:ye,children:o}):o,X]});return M?Ne:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:Ne})},CustomHeading=({node:n,children:i,...t})=>{const e=t["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:n.tagName,anchor:e,tagProps:t,children:i})},CustomCodeTag=({inline:n,className:i,children:t,...e})=>{const o=/language-(\w+)/.exec(i||""),d=String(t??"").replace(/^\n/,"").replace(/\n$/,""),p=o?.[1]||"";return n?jsx$1(StyledInlineCode,{className:i,...omit(e,"node"),children:t}):jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(StreamlitSyntaxHighlighter$1,{language:p,showLineNumbers:!1,children:d})})})},CustomPreTag=({children:n})=>jsx$1(StyledPreWrapper,{"data-testid":"stMarkdownPre",children:n}),CustomMediaTag=({node:n,...i})=>{const t=useCrossOriginAttribute(i.src),e=n.tagName,o={...i,crossOrigin:t};return jsx$1(e,{...o})},HelpTextContext=reactExports.createContext(void 0);HelpTextContext.displayName="HelpTextContext";const CustomHelpIcon=({children:n})=>{const t=reactExports.useContext(HelpTextContext)||(typeof n=="string"?n:"");return jsx$1(StyledHelpIconWrapper,{children:jsx$1(InlineTooltipIcon,{content:t})})},BASE_RENDERERS={pre:CustomPreTag,code:CustomCodeTag,h1:CustomHeading,h2:CustomHeading,h3:CustomHeading,h4:CustomHeading,h5:CustomHeading,h6:CustomHeading,img:CustomMediaTag,video:CustomMediaTag,audio:CustomMediaTag,"streamlit-help-icon":CustomHelpIcon};function createColorMapping(n){const{red:i,orange:t,yellow:e,green:o,blue:d,violet:p,purple:h,gray:y,primary:E}
96=getMarkdownTextColors(n),{redbg:$,orangebg:M,yellowbg:X,greenbg:Z,bluebg:ye,violetbg:be,purplebg:we,graybg:xe,primarybg:$e}=getThemeBackgroundColors(n);return new Map(Object.entries({red:`color: ${i}`,orange:`color: ${t}`,yellow:`color: ${e}`,blue:`color: ${d}`,green:`color: ${o}`,violet:`color: ${p}`,gray:`color: ${y}`,grey:`color: ${y}`,primary:`color: ${E}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right, 97 ${i}, ${t}, ${e}, ${o}, ${d}, ${p}, ${h});`,"red-background":`background-color: ${$}`,"orange-background":`background-color: ${M}`,"yellow-background":`background-color: ${X}`,"blue-background":`background-color: ${ye}`,"green-background":`background-color: ${Z}`,"violet-background":`background-color: ${be}`,"gray-background":`background-color: ${xe}`,"grey-background":`background-color: ${xe}`,"primary-background":`background-color: ${$e}`,"rainbow-background":`background: linear-gradient(to right, 98 ${$}, ${M}, ${X}, ${Z}, ${ye}, ${be}, ${we});`}))}function createRemarkHelpIcon(){return()=>n=>(visit(n,"textDirective",(i,t,e)=>{if(String(i.name)==="help"){const d=i.data||(i.data={});d.hName="streamlit-help-icon",d.hProperties=d.hProperties||{};return}}),n)}function isValidCssColor(n){if(!n)return!1;try{return parseToRgba(n),!0}catch{return!1}}function createRemarkColoringAndSmall(n,i){return()=>t=>(visit(t,"textDirective",(e,o,d)=>{const p=String(e.name);if(p==="small"){const y=e.data||(e.data={});y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=`font-size: ${n.fontSizes.sm};`;return}if(p==="color"&&e.attributes){const{foreground:y,background:E}=e.attributes,$=y&&isValidCssColor(y),M=E&&isValidCssColor(E),X=e.data||(e.data={});if(X.hName="span",X.hProperties=X.hProperties||{},$||M){const Z=[];$&&Z.push(`color: ${y}`),M&&Z.push(`background-color: ${E}`);const ye=M?"stMarkdownColoredBackground":"stMarkdownColoredText";X.hProperties.style=Z.join("; "),X.hProperties.className=ye}return}const h=p.match(/^(.+)-badge$/);if(h&&i.has(h[1])){const y=h[1];if(y==="rainbow")return;const E=i.get(y),$=i.get(`${y}-background`);if(E&&$){const M=e.data||(e.data={});M.hName="span",M.hProperties=M.hProperties||{},M.hProperties.className="stMarkdownBadge",M.hProperties.style=`${$}; ${E}; font-size: ${n.fontSizes.sm};`;return}}if(i.has(p)){const y=e.data||(e.data={}),E=i.get(p);y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=E,y.hProperties.className="stMarkdownColoredText",E&&(/background-color:/.test(E)||/background:/.test(E))&&(y.hProperties.className="stMarkdownColoredBackground");return}}),t)}function createRemarkUnsupportedDirectivesCleanup(){return()=>n=>(visit(n,"textDirective",(i,t,e)=>{if(!i.data?.hName&&e&&t!==void 0){const o={type:"text",value:`:${i.name}`};e.children[t]=o}}),n)}function createRemarkMaterialIcons(n){return()=>i=>{function t(e,o){return{type:"text",value:e,data:{hName:"span",hProperties:{role:"img",ariaLabel:o+" icon",translate:"no",style:` 99 display: inline-block; 100 font-family: ${n.genericFonts.iconFont}; 101 font-weight: ${n.fontWeights.normal}; 102 user-select: none; 103 vertical-align: bottom; 104 white-space: nowrap; 105 word-wrap: normal; 106 `},hChildren:[{type:"text",value:o}]}}}return findAndReplace(i,[[/:material_(\w+):/g,t]]),i}}function createRemarkStreamlitLogo(){return()=>n=>{function i(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:"display: inline-block; user-select: none; height: 0.75em; vertical-align: baseline; margin-bottom: -0.05ex;"}}}}return findAndReplace(n,[[/:streamlit:/g,i]]),n}}function createRemarkTypographicalSymbols(){return()=>n=>(visit(n,(i,t,e)=>{if(!(e&&(e.type==="link"||e.type==="linkReference"))&&i.type==="text"&&i.value){const o=[[/(^|\s)<->(\s|$)/g,"$1â$2"],[/(^|\s)->(\s|$)/g,"$1â$2"],[/(^|\s)<-(\s|$)/g,"$1â$2"],[/(^|\s)--(\s|$)/g,"$1â$2"],[/(^|\s)>=(\s|$)/g,"$1â¥$2"],[/(^|\s)<=(\s|$)/g,"$1â¤$2"],[/(^|\s)~=(\s|$)/g,"$1â$2"]];let d=i.value;for(const[p,h]of o)d=d.replace(p,h);d!==i.value&&(i.value=d)}}),n)}const BASE_REMARK_PLUGINS=[remarkMath,remarkGfm,remarkDirective,createRemarkHelpIcon(),createRemarkStreamlitLogo(),createRemarkTypographicalSymbols()],LABEL_DISALLOWED_ELEMENTS=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote"],LINKS_DISALLOWED_ELEMENTS=[...LABEL_DISALLOWED_ELEMENTS,"a"];function LinkWithTargetBlank(n){const{href:i}=n;if(i?.startsWith("#")){const{children:h,...y}=n;return jsx$1("a",{...omit(y,"node"),children:h})}const{title:t,children:e,target:o,rel:d,...p}=n;return jsx$1("a",{href:i,title:t,target:o||"_blank",rel:d||"noopener noreferrer",...omit(p,"n
106ode"),children:e})}const RenderedMarkdown=reactExports.memo(function n({allowHTML:i,source:t,overrideComponents:e,isLabel:o,disableLinks:d,helpText:p}){const h=useEmotionTheme(),y=reactExports.useMemo(()=>containsMathSyntax(t),[t]),E=reactExports.useMemo(()=>containsEmojiShortcodes(t),[t]),$=useLazyPlugin({key:"katex",needed:y,load:loadKatexPlugin,pluginName:"rehype-katex",onBeforeLoad:loadKatexStyles}),M=useLazyPlugin({key:"raw",needed:i,load:loadRehypeRaw,pluginName:"rehype-raw"}),X=useLazyPlugin({key:"emoji",needed:E,load:loadRemarkEmoji,pluginName:"remark-emoji"}),Z=reactExports.useMemo(()=>createColorMapping(h),[h]),ye=reactExports.useMemo(()=>isLoadedPlugin($)?wrapRehypePlugin($,"rehype-katex"):null,[$]),be=reactExports.useMemo(()=>isLoadedPlugin(M)?wrapRehypePlugin(M,"rehype-raw"):null,[M]),we=reactExports.useMemo(()=>isLoadedPlugin(X)?wrapRemarkPlugin(X,"remark-emoji"):null,[X]),xe=reactExports.useMemo(()=>{const He=[...BASE_REMARK_PLUGINS,createRemarkColoringAndSmall(h,Z),createRemarkMaterialIcons(h)];return E&&we&&He.push(we),He.push(createRemarkUnsupportedDirectivesCleanup()),He},[h,Z,E,we]),$e=reactExports.useMemo(()=>{const He=[];return y&&ye&&He.push(ye),i&&be&&He.push(be),He.push(rehypeSetCodeInlineProperty),He},[i,y,ye,be]),Ne=reactExports.useMemo(()=>({...BASE_RENDERERS,a:LinkWithTargetBlank,...e||{}}),[e]),Fe=reactExports.useMemo(()=>{let He=t.replaceAll(":material/",":material_");return o&&(He=He.replace(/^(\s*)((?:[+\-*]|#+)(?=\s|$)|>)/gm,"$1\\$2"),He=He.replace(/^(\s*)(\d+)([.)])(?=\s|$)/gm,"$1$2\\$3")),He},[t,o]),De=reactExports.useMemo(()=>o?d?LINKS_DISALLOWED_ELEMENTS:LABEL_DISALLOWED_ELEMENTS:[],[o,d]);return y&&$===null||i&&M===null||E&&X===null?jsx$1(ErrorBoundary,{children:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})})}):jsx$1(HelpTextContext.Provider,{value:p,children:jsx$1(ErrorBoundary,{children:jsx$1(Markdown$2,{remarkPlugins:xe,rehypePlugins:$e,components:Ne,urlTransform:transformLinkUri,disallowedElements:De,unwrapDisallowed:!0,children:Fe})})})}),StreamlitMarkdown=({source:n,allowHTML:i,style:t,isCaption:e,isLabel:o,boldLabel:d,largerLabel:p,disableLinks:h,isToast:y,inheritFont:E,helpText:$,truncate:M})=>{const X=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!e,isInDialog:X,isLabel:o,inheritFont:E,boldLabel:d,largerLabel:p,isToast:y,truncate:M,style:t,"data-testid":e?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:n,allowHTML:i,isLabel:o,disableLinks:h,helpText:$})})},StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown);function TooltipIcon(n){const{placement:i=Placement.AUTO,isLatex:t=!1,content:e,markdownProps:o,onMouseEnterDelay:d,containerWidth:p=!1}=n,h=useEmotionTheme(),y=$=>jsx$1(StyledTooltipTriggerButton,{type:"button","aria-label":$,children:jsx$1(HelpCircle,{className:"icon","aria-hidden":"true",focusable:"false",size:convertRemToPx(h.iconSizes.base)})}),E=()=>
106{if("children"in n)return reactExports.isValidElement(n.children)?n.children:y("Help");const $=n.ariaLabel.trim();return $.length?y($):y("Help")};return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:t,children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:h.fontSizes.sm},source:e,allowHTML:!1,...o||{}}),placement:i,onMouseEnterDelay:d,inline:!0,containerWidth:p,children:E()})})}function getHelpTooltipAriaLabel(n){const i=n?.trim(),t=i?i.replace(/\s+/g," "):null;return t?`Help for ${t}`:"Help"}const InlineTooltipIcon=({placement:n=Placement.TOP_RIGHT,isLatex:i=!1,content:t,markdownProps:e,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p="Help"})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:n,isLatex:i,content:t,markdownProps:e,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p})});function BaseButtonTooltip({children:n,help:i,placement:t,containerWidth:e}){return i?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:i,placement:t||Placement.TOP,containerWidth:e,children:n})}),jsx$1(StyledTooltipMobile,{children:n})]}):n}const isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(n,i,t,e){n.addEventListener?n.addEventListener(i,t,e):n.attachEvent&&n.attachEvent("on".concat(i),t)}function removeEvent(n,i,t,e){n.removeEventListener?n.removeEventListener(i,t,e):n.detachEvent&&n.detachEvent("on".concat(i),t)}function getMods(n,i){const t=i.slice(0,i.length-1);for(let e=0;e<t.length;e++)t[e]=n[t[e].toLowerCase()];return t}function getKeys(n){typeof n!="string"&&(n=""),n=n.replace(/\s/g,"");const i=n.split(",");let t=i.lastIndexOf("");for(;t>=0;)i[t-1]+=",",i.splice(t,1),t=i.lastIndexOf("");return i}function compareArray(n,i){const t=n.length>=i.length?n:i,e=n.length>=i.length?i:n;let o=!0;for(let d=0;d<t.length;d++)e.indexOf(t[d])===-1&&(o=!1);return o}const _keyMap={backspace:8,"â«":8,tab:9,clear:12,enter:13,"â©":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"âª":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"â§":16,shift:16,"â¥":18,alt:18,option:18,"â":17,ctrl:17,control:17,"â":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let n=1;n<20;n++)_keyMap["f".concat(n)]=111+n;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=n=>_keyMap[n.toLowerCase()]||_modifier[n.toLowerCase()]||n.toUpperCase().charCodeAt(0),getKey=n=>Object.keys(_keyMap).find(i=>_keyMap[i]===n),getModifier=n=>Object.keys(_modifier).find(i=>_modifier[i]===n);function setScope(n){_scope=n||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(n=>getKey(n)||getModifier(n)||String.fromCharCode(n))}function getAllKeyCodes(){const n=[];return Object.keys(_handlers).forEach(i=>
106{_handlers[i].forEach(t=>{let{key:e,scope:o,mods:d,shortcut:p}=t;n.push({scope:o,shortcut:p,mods:d,keys:e.split("+").map(h=>code(h))})})}),n}function filter(n){const i=n.target||n.srcElement,{tagName:t}=i;let e=!0;const o=t==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(i.type);return(i.isContentEditable||(o||t==="TEXTAREA"||t==="SELECT")&&!i.readOnly)&&(e=!1),e}function isPressed(n){return typeof n=="string"&&(n=code(n)),_downKeys.indexOf(n)!==-1}function deleteScope(n,i){let t,e;n||(n=getScope());for(const o in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,o))for(t=_handlers[o],e=0;e<t.length;)t[e].scope===n?t.splice(e,1).forEach(p=>{let{element:h}=p;return removeKeyEvent(h)}):e++;getScope()===n&&setScope(i||"all")}function clearModifier(n){let i=n.keyCode||n.which||n.charCode;const t=_downKeys.indexOf(i);if(t>=0&&_downKeys.splice(t,1),n.key&&n.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(i===93||i===224)&&(i=91),i in _mods){_mods[i]=!1;for(const e in _modifier)_modifier[e]===i&&(hotkeys[e]=!1)}}function unbind(n){if(typeof n>"u")Object.keys(_handlers).forEach(o=>{Array.isArray(_handlers[o])&&_handlers[o].forEach(d=>eachUnbind(d)),delete _handlers[o]}),removeKeyEvent(null);else if(Array.isArray(n))n.forEach(o=>{o.key&&eachUnbind(o)});else if(typeof n=="object")n.key&&eachUnbind(n);else if(typeof n=="string"){for(var i=arguments.length,t=new Array(i>1?i-1:0),e=1;e<i;e++)t[e-1]=arguments[e];let[o,d]=t;typeof o=="function"&&(d=o,o=""),eachUnbind({key:n,scope:o,method:d,splitKey:"+"})}}const eachUnbind=n=>{let{key:i,scope:t,method:e,splitKey:o="+"}=n;
106getKeys(i).forEach(p=>{const h=p.split(o),y=h.length,E=h[y-1],$=E==="*"?"*":code(E);if(!_handlers[$])return;t||(t=getScope());const M=y>1?getMods(_modifier,h):[],X=[];_handlers[$]=_handlers[$].filter(Z=>{const be=(e?Z.method===e:!0)&&Z.scope===t&&compareArray(Z.mods,M);return be&&X.push(Z.element),!be}),X.forEach(Z=>removeKeyEvent(Z))})};function eventHandler(n,i,t,e){if(i.element!==e)return;let o;if(i.scope===t||i.scope==="all"){o=i.mods.length>0;for(const d in _mods)Object.prototype.hasOwnProperty.call(_mods,d)&&(!_mods[d]&&i.mods.indexOf(+d)>-1||_mods[d]&&i.mods.indexOf(+d)===-1)&&(o=!1);(i.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||o||i.shortcut==="*")&&(i.keys=[],i.keys=i.keys.concat(_downKeys),i.method(n,i)===!1&&(n.preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation&&n.stopPropagation(),n.cancelBubble&&(n.cancelBubble=!0)))}}function dispatch(n,i){const t=_handlers["*"];let e=n.keyCode||n.which||n.charCode;if(!hotkeys.filter.call(this,n))return;if((e===93||e===224)&&(e=91),_downKeys.indexOf(e)===-1&&e!==229&&_downKeys.push(e),["ctrlKey","altKey","shiftKey","metaKey"].forEach(h=>{const y=modifierMap[h];n[h]&&_downKeys.indexOf(y)===-1?_downKeys.push(y):!n[h]&&_downKeys.indexOf(y)>-1?_downKeys.splice(_downKeys.indexOf(y),1):h==="metaKey"&&n[h]&&_downKeys.length===3&&(n.ctrlKey||n.shiftKey||n.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(y))))}),e in _mods){_mods[e]=!0;for(const h in _modifier)_modifier[h]===e&&(hotkeys[h]=!0);if(!t)return}for(const h in _mods)Object.prototype.hasOwnProperty.call(_mods,h)&&(_mods[h]=n[modifierMap[h]]);n.getModifierState&&!(n.altKey&&!n.ctrlKey)&&n.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const o=getScope();if(t)for(let h=0;h<t.length;h++)t[h].scope===o&&(n.type==="keydown"&&t[h].keydown||n.type==="keyup"&&t[h].keyup)&&eventHandler(n,t[h],o,i);if(!(e in _handlers))return;const d=_handlers[e],p=d.length;for(let h=0;h<p;h++)if((n.type==="keydown"&&d[h].keydown||n.type==="keyup"&&d[h].keyup)&&d[h].key){const y=d[h],{splitKey:E}=y,$=y.key.split(E),M=[];for(let X=0;X<$.length;X++)M.push(code($[X]));M.sort().join("")===_downKeys.sort().join("")&&eventHandler(n,y,o,i)}}function hotkeys(n,i,t){_downKeys=[];const e=getKeys(n);let o=[],d="all",p=document,h=0,y=!1,E=!0,$="+",M=!1,X=!1;for(t===void 0&&typeof i=="function"&&(t=i),Object.prototype.toString.call(i)==="[object Object]"&&(i.scope&&(d=i.scope),i.element&&(p=i.element),i.keyup&&(y=i.keyup),i.keydown!==void 0&&(E=i.keydown),i.capture!==void 0&&(M=i.capture),typeof i.splitKey=="string"&&($=i.splitKey),i.single===!0&&(X=!0)),typeof i=="string"&&(d=i),X&&unbind(n,d);h<e.length;h++)n=e[h].split($),o=[],n.length>1&&(o=getMods(_modifier,n)),n=n[n.length-1],n=n==="*"?"*":code(n),n in _handlers||(_handlers[n]=[]),_handlers[n].push({keyup:y,keydown:E,scope:d,mods:o,shortcut:e[h],method:t,key:e[h],splitKey:$,element:p});if(typeof p<"u"&&window){if(!elementEventMap.has(p)){const Z=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(be,p)},ye=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(be,p),clearModifier(be)};elementEventMap.set(p,{keydownListener:Z,keyupListenr:ye,capture:M}),addEvent(p,"keydown",Z,M),addEvent(p,"keyup",ye,M)}if(!winListendFocus){const Z=()=>{_downKeys=[]};winListendFocus={listener:Z,capture:M},addEvent(window,"focus",Z,M)}}}function trigger(n){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(t=>{_handlers[t].filter(o=>o.scope===i&&o.shortcut===n).forEach(o=>{o&&o.method&&o.method()})})}function removeKeyEvent(n){const i=Object.values(_handlers).flat();if(i.findIndex(e=>{let{element:o}=e;return o===n})<0){const{keydownListener:e,keyupListenr:o,capture:d}=elementEventMap.get(n)||{};e&&o&&(removeEvent(n,"keyup",o,d),removeEvent(n,"keydown",e,d),elementEventMap.delete(n))}if((i.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEac
106h(o=>{const{keydownListener:d,keyupListenr:p,capture:h}=elementEventMap.get(o)||{};d&&p&&(removeEvent(o,"keyup",p,h),removeEvent(o,"keydown",d,h),elementEventMap.delete(o))}),elementEventMap.clear(),Object.keys(_handlers).forEach(o=>delete _handlers[o]),winListendFocus)){const{listener:o,capture:d}=winListendFocus;removeEvent(window,"focus",o,d),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const n in _api)Object.prototype.hasOwnProperty.call(_api,n)&&(hotkeys[n]=_api[n]);if(typeof window<"u"){const n=window.hotkeys;hotkeys.noConflict=i=>(i&&window.hotkeys===hotkeys&&(window.hotkeys=n),hotkeys),window.hotkeys=hotkeys}const EDITABLE_TAGS=new Set(["INPUT","TEXTAREA","SELECT"]),MODIFIER_TOKENS=new Set(["ctrl","cmd","alt","shift","mod"]),SYSTEM_MODIFIERS=new Set(["ctrl","cmd","alt","mod"]),MODIFIER_ORDER=["ctrl","cmd","alt","shift","mod"],MODIFIER_DISPLAY={ctrl:"Ctrl",cmd:"â",alt:"Alt",shift:"Shift",mod:"Mod"},KEY_DISPLAY={enter:"Enter",space:"Space",tab:"Tab",escape:"Esc",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",left:"â",right:"â",up:"â",down:"â"},NAVIGATION_KEYS=new Set(["left","right","up","down","home","end","pageup","pagedown","backspace","delete"]);let filterConfigured=!1;function getEditableEventTarget(n){const i=n.composedPath?.();if(i?.length){for(const e of i){const o=e;if(o?.tagName&&(EDITABLE_TAGS.has(o.tagName)||o.isContentEditable||o.getAttribute("contenteditable")==="true"))return o}return null}const t=n.target||n.srcElement;return t?.tagName&&(EDITABLE_TAGS.has(t.tagName)||t.isContentEditable||t.getAttribute("contenteditable")==="true")?t:null}function isKeyboardEventFromEditableTarget(n){return n?!!getEditableEventTarget(n):!1}function ensureHotkeysFilterConfigured(){filterConfigured||(hotkeys.filter=n=>{if(!getEditableEventTarget(n)||n.key==="Escape"||n.ctrlKey||n.metaKey||n.altKey)return!0;if(n.shiftKey){const t=n.key??"";if(t.length>1&&!/^[a-z0-9]$/i.test(t))return!0}return!1},filterConfigured=!0)}function parseShortcutString(n){if(!n)return;const i=n.split("+").map(o=>o.trim().toLowerCase()).filter(Boolean);if(i.length===0)return;let t;for(let o=i.length-1;o>=0;o-=1){const d=i[o];if(!MODIFIER_TOKENS.has(d)){t=d;break}}const e=i.some(o=>SYSTEM_MODIFIERS.has(o));return{tokens:i,baseKey:t,hasSystemModifier:e}}function shouldBlockShortcutInInput(n,i){if(!getEditableEventTarget(i)||n.hasSystemModifier)return!1;const e=n.baseKey;return!!(!e||e.length===1&&/^[a-z0-9]$/i.test(e)||e==="space"||e==="tab"||e==="enter"||NAVIGATION_KEYS.has(e))}function toHotkeysSequenceFromTokens(n){return n.map(i=>i==="cmd"?"command":i).join("+")}function buildSequences(n){if(!n)return[];const{tokens:i}=n,e=isFromMac()?"cmd":"ctrl",o=i.map(p=>p==="cmd"||p==="ctrl"||p==="mod"?e:p),d=Array.from(new Set(o));return[toHotkeysSequenceFromTokens(d)]}function getModifierLabel(n,i){return n==="cmd"||n==="ctrl"||n==="mod"?i?MODIFIER_DISPLAY.cmd:MODIFIER_DISPLAY.ctrl:n==="alt"&&i?"â¥":MODIFIER_DISPLAY[n]}function getKeyLabel(n){return KEY_DISPLAY[n]?KEY_DISPLAY[n]:(n.length===1||n.startsWith("f")&&/^\d+$/.test(n.slice(1)),n.toUpperCase())}function formatShortcutForDisplay(n,i){const t=parseShortcutString(n);if(!t)return;const e=i?.isMac??!1,o=[];if(MODIFIER_ORDER.forEach(d=>{if(t.tokens.includes(d)){const p=getModifierLabel(d,e);p&&o.push(p)}}),t.baseKey&&o.push(getKeyLabel(t.baseKey)),o.length!==0)return o.join(" + ")}function useRegisterShortcut({shortcut:n,disabled:i=!1,onActivate:t}){const e=reactExports.useMemo(()=>parseShortcutString(n),[n]),o=reactExports.useMemo(()=>buildSequences(e),[e]);reactExports.useEffect(()=>{if(!e||o.length===0||i)return;const d=(p,h)=>{i||shouldBlockShortcutInInput(e,p)||(p.preventDefault(),t())};return o.forEach(p=>{hotkeys(p,d)}),()=>{o.forEach(p=>{hotkeys.unbind(p,d)})}},[e,o,i,t])}const DynamicButtonLabel=({icon:n,label:i,iconSize:t,useSmallerFont:e=!1,iconPosition:o="left",shortcut:d})=>{const p=reactExports.useMemo(()=>formatShortcutForDisplay(d,{isMac:isFromMac()}),[d]);return jsx$1(StyledButtonLabel,{children:jsxs(StyledButtonMainLabel,{"data-has-shortcut":!!p,children:[n&&o==="left"&&jsx$1(DynamicIcon,{size:t??"lg",iconValue:n}),i&&jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,isLabel:!0,largerLabel:!e,disableLinks:!0}),n&&o==="right"&&jsx$1(DynamicIcon,{size:t??"lg",iconValue:n}),p&&jsx$1(StyledButtonShortcut,{"aria-label":`Shortcut ${p}`,children:p})]})})},StyledModalButton=styled("span",{target:"e1sav2h40"})(({theme:n})=>({marginRight:n.spacing.twoXS}));function ModalHeader({children:n,overrides:i}){const{genericFonts:t,fontSizes:e,spacing:o,fontWeights:d,lineHeights:p}=useEmotionTheme();return jsx$1(ModalHeader$1,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.twoXL,paddingRight:o.twoXL,paddingBottom:o.md,paddingLeft:o.twoXL,fontFamily:t.bodyFont,fontSize:e.xl,fontWeight:d.bold,margin:o.none,lineHeight:p.small,textTransform:"none",display:"flex",alignItems:"center",maxHeight:"80vh",flexDirection:"row",...i},children:n})}function ModalBody$1({children:n}){const{colors:i,fontSizes:t,spacing:e}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:e.none,marginLeft:e.none,marginRight:e.none,marginBottom:e.none,paddingTop:e.md,paddingRight:e.twoXL,paddingBottom:e.twoXL,paddingLeft:e.twoXL,color:i.bodyText,fontSize:t.md},children:n})}function ModalFooter({children:n}){const{spacing:i}=useEmotionTheme();return jsx$1(ModalFooter$1,{style:{marginTop:i.none,marginLeft:i.none,marginRight:i.none,marginBottom:i.none,paddingTop:i.md,paddingRight:i.md,paddingBottom:i.md,paddingLeft:i.md},children:jsx$1("div",{children:n})})}const ModalButton=n=>jsx$1(StyledModalButton,{children:jsx$1(BaseButton,{...n})});function calculateModalSize(n,i,t,e){return n==="large"&&e?e:n==="medium"&&i&&t?`calc(${i} + ${t})`:n==="auto"?SIZE.auto:SIZE.default}function Modal(n){const{spacing:i,radii:t,colors:e,sizes:o}=useEmotionTheme(),d={Root:{style:{background:e.darkenedBgMix25},props:{className:"stDialog","data-testid":"stDialog"}},DialogContainer:{style:{alignItems:"start",paddingTop:i.threeXL}},Dialog:{style:{borderBottomRightRadius:t.xxl,borderBottomLeftRadius:t.xxl,borderTopRightRadius:t.xxl,borderTopLeftRadius:t.xxl,minWidth:o.minPopupWidth}}
106,Close:{style:{top:`calc(${i.twoXL} + ${i.xs})`,right:i.twoXL}}},p=calculateModalSize(n.size,o.contentMaxWidth,i.lg,o.dialogLargeWidth),h=merge$1(d,n.overrides),y={...n,size:p};return jsx$1(Modal$1,{...y,overrides:h})}const StyledDialogTitle=styled("div",{target:"e1nw0ecc0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.sm,marginRight:n.spacing.threeXL})),StyledDialogIcon=styled("div",{target:"e1nw0ecc1"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function mapDialogWidthToModalSize(n){switch(n){case Block$1.Dialog.DialogWidth.MEDIUM:return"medium";case Block$1.Dialog.DialogWidth.LARGE:return"large";case Block$1.Dialog.DialogWidth.SMALL:return"default";default:return assertNever(n),"default"}}const Dialog=({element:n,deltaMsgReceivedAt:i,children:t,widgetMgr:e,fragmentId:o})=>{const{title:d,dismissible:p,width:h,isOpen:y,id:E,icon:$}=n,[M,X]=reactExports.useState(!1);reactExports.useEffect(()=>{notNullOrUndefined(y)&&X(y)},[y,i]);const Z=reactExports.useCallback(()=>{X(!1),E&&e&&e.setTriggerValue({id:E,formId:""},{fromUi:!0},o)},[E,e,o]),ye=reactExports.useCallback(be=>{if(M&&be.key.toLowerCase()==="r"&&!n.dismissible){const we=be.target;if(we&&(we.isContentEditable||we.tagName==="INPUT"||we.tagName==="TEXTAREA"||we.tagName==="SELECT"))return;be.preventDefault(),be.stopPropagation()}},[M,n.dismissible]);return reactExports.useEffect(()=>{if(M&&!n.dismissible)return document.addEventListener("keydown",ye,!0),()=>{document.removeEventListener("keydown",ye,!0)}},[M,n.dismissible,ye]),M?jsxs(Modal,{isOpen:!0,closeable:p,onClose:Z,size:mapDialogWidthToModalSize(h),children:[jsx$1(ModalHeader,{children:jsxs(StyledDialogTitle,{children:[$&&jsx$1(StyledDialogIcon,{"data-testid":"stDialogIcon",children:jsx$1(DynamicIcon,{iconValue:$,size:"lg"})}),jsx$1(StreamlitMarkdown$1,{source:d,allowHTML:!1,isLabel:!0,inheritFont:!0})]})}),jsx$1(ModalBody$1,{children:t})]}):jsx$1(Fragment,{})};function DialogWithProvider(n){return jsx$1(IsDialogContext.Provider,{value:!0,children:jsx$1(Dialog,{...n})})}const Dialog$1=reactExports.memo(DialogWithProvider);function getClassnamePrefix(n){return n===Direction.HORIZONTAL?"stHorizontalBlock":"stVerticalBlock"}function shouldComponentBeEnabled(n,i){return n!=="empty"||i!==ScriptRunState.RUNNING}function isElementStale(n,i,t,e){return i===ScriptRunState.RERUN_REQUESTED?!0:i===ScriptRunState.RUNNING?e?.length?!!(n.fragmentId&&e.includes(n.fragmentId)&&n.scriptRunId!==t):n.scriptRunId!==t:!1}function isComponentStale(n,i,t,e,o){return!n||isElementStale(i,t,e,o)}function assignDividerColor(n,i){const t=getDividerColors(i),e=Object.keys(t),{blue:o,green:d,orange:p,red:h,violet:y,yellow:E}=t,$={blue:o,green:d,orange:p,red:h,violet:y,yellow:E},M=Object.keys($);let X=0;for(const Z of ElementsSetVisitor.collectElements(n)){const ye=Z.heading?.divider;if(Z.type==="heading"&&ye)if(ye==="auto"){const be=M[X];Z.heading.divider=$[be],X+=1,X===M.length&&(X=0)}else e.includes(ye)&&(Z.heading.divider=t[ye])}}function convertKeyToClassName(n){return n?"st-key-"+n.trim().replace(/[^a-zA-Z0-9_-]/g,"-"):""}function getKeyFromId(n){if(!n||!isValidElementId(n))return;const t=n.split("-").slice(2).join("-");return t==="None"?void 0:t}function getColumnGapSize(n){return n.gapConfig?.gapSize?n.gapConfig.gapSize:streamlit.GapSize.SMALL}function checkFlexContainerBackwardsCompatibile(n){return!!(n.flexContainer||n.vertical||n.horizontal)}function shouldActivateScrollToBottom(n){return!!(n.deltaBlock.heightConfig?.pixelHeight&&n.children.some(t=>t instanceof BlockNode&&t.deltaBlock.type==="chatMessage"))}function getBorderBackwardsCompatible(n){return n.flexContainer?.border||n.vertical?.border||!1}const StyledExpandableContainer=styled("div",{target:"ewmru5c0"})({width:"100%"}),BORDER_SIZE=1,StyledDetails=styled("details",{target:"ewmru5c1"})(({isStale:n,theme:i})=>({marginBottom:0,marginTop:0,width:"100%",borderStyle:"solid",borderWidth:i.sizes.borderWidth,borderColor:i.colors.borderColor,borderRadius:i.radii.default,...n?{borderColor:i.colors.borderColorLight,transition:`border ${STALE_TRANSITION_PARAMS}`}:{}})),StyledSummaryHeading=styled("span",{target:"ewmru5c2"})(({theme:n})=>({display:"flex",alignItems:"center",flexGrow:1,minWidth:0,width:"100%",maxWidth:"100%",overflow:"hidden",gap:n.spacing.sm})),StyledSummaryLabelWrapper=styled("div",{target:"ewmru5c3"})({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),StyledSummary=styled("summary",{target:"ewmru5c4"})(({theme:n,isStale:i,expanded:t})=>({position:"relative",display:"flex",width:"100%",minWidth:0,overflow:"hidden","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing},fontSize:"inherit",paddingLeft:n.spacing.md,paddingRight:n.spacing.md,paddingTop:n.spacing.twoXS,paddingBottom:n.spacing.twoXS,minHeight:`calc(${n.sizes.minElementHeight} - 2 * ${n.sizes.borderWidth})`,alignItems:"center",cursor:"pointer",listStyleType:"none","&::-webkit-details-marker":{display:"none"},backgroundColor:t?n.colors.bgMix:"transparent",borderRadius:t?`${n.radii.default} ${n.radii.default} 0 0`:n.radii.default,transition:t?"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease":"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms, background-color 150ms ease","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},...i&&STALE_STYLES}
106)),StyledDetailsPanel=styled("div",{target:"ewmru5c5"})(({theme:n})=>({padding:n.spacing.lg,borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),DEFAULT_DURATION=500,DEFAULT_EASING="cubic-bezier(0.23, 1, 0.32, 1)";function animateHeight(n,i,t,e={}){const{duration:o=DEFAULT_DURATION,easing:d=DEFAULT_EASING,onFinish:p}=e,h=n.animate({height:[`${i}px`,`${t}px`]},{duration:o,easing:d}),y=new Promise(E=>{h.addEventListener("finish",()=>{n.style.height="",n.style.overflow="",p?.(),E()}),h.addEventListener("cancel",()=>{E()})});return{cancel:()=>h.cancel(),finished:y}}const RESIZE_DEBOUNCE_MS=10,RESIZE_THRESHOLD_PX=5;function useDetailsAnimation({backendExpanded:n,label:i,onToggle:t}){const[e,o]=reactExports.useState(n??!1),d=reactExports.useRef(null),p=reactExports.useRef(null),h=reactExports.useRef(null),y=reactExports.useRef(null),E=reactExports.useRef(e),$=reactExports.useRef(i),M=reactExports.useRef(!1),X=reactExports.useCallback(()=>{y.current?.cancel(),y.current=null},[]),Z=reactExports.useCallback($e=>{const Ne=d.current,Fe=p.current,De=h.current;if(!Ne||!Fe)return;const Le=Ne.getBoundingClientRect().height,He=Fe.getBoundingClientRect().height;if(X(),Ne.style.height=`${Le}px`,Ne.style.overflow="hidden",$e){Ne.open=!0;const Ke=De?.getBoundingClientRect().height??0;if(Ke>0){const je=He+Ke+2*BORDER_SIZE;y.current=animateHeight(Ne,Le,je)}}else{const Ke=He+2*BORDER_SIZE;y.current=animateHeight(Ne,Le,Ke,{onFinish:()=>{d.current&&(d.current.open=!1)}})}},[X]),ye=reactExports.useCallback(($e,Ne)=>{const Fe=d.current;Fe&&(X(),Fe.style.height=`${$e}px`,Fe.style.overflow="hidden",y.current=animateHeight(Fe,$e,Ne))},[X]),{clear:be,restart:we}=useTimeout(()=>{const $e=h.current,Ne=d.current,Fe=p.current;if(!$e||!Ne||!Fe||!Ne.open||!E.current)return;const De=$e.getBoundingClientRect().height,Le=Fe.getBoundingClientRect().height,He=Ne.getBoundingClientRect().height,Ke=Le+De+2*BORDER_SIZE;Math.abs(He-Ke)>RESIZE_THRESHOLD_PX&&ye(He,Ke)},RESIZE_DEBOUNCE_MS,{autoStart:!1});reactExports.useEffect(()=>{const $e=!M.current;M.current=!0;const Ne=i!==$.current;if($.current=i,Ne){X();const Fe=n??!1;E.current=Fe,o(Fe),d.current&&(d.current.style.height="",d.current.style.overflow="",d.current.open=Fe);return}if(!isNullOrUndefined$1(n)){if($e){d.current&&(d.current.open=n);return}n!==E.current&&(E.current=n,o(n),Z(n))}},[n,i,X,Z]),reactExports.useEffect(()=>{const $e=h.current,Ne=d.current;if(!$e||!Ne)return;const Fe=new ResizeObserver(()=>{Ne.open&&we()});return Fe.observe($e),()=>{Fe.disconnect(),be()}},[be,we]),reactExports.useEffect(()=>()=>{X(),be()},[X,be]);const xe=reactExports.useCallback($e=>{$e.preventDefault();const Ne=!E.current;E.current=Ne,o(Ne),Z(Ne),t?.(Ne)},[t,Z]);return{isOpen:e,detailsRef:d,summaryRef:p,contentRef:h,handleToggle:xe}}const ExpanderIcon=n=>{const{icon:i}=n;return i?jsx$1(DynamicIcon,{size:"lg",iconValue:i,testid:{":material/check:":"stExpanderIconCheck",":material/error:":"stExpanderIconError",spinner:"stExpanderIconSpinner"}[i]||"stExpanderIcon"}):jsx$1(Fragment,{})},Expander=({element:n,isStale:i,widgetMgr:t,blockId:e,fragmentId:o,children:d})=>{const{label:p,icon:h}=n,[y,E]=reactExports.useState(!1),$=n.id||void 0,M=!!(t&&$),X=reactExports.useCallback(He=>{t&&$&&t.setBoolValue({id:$},He,{fromUi:!0},o)},[t,$,o]),{isOpen:Z,detailsRef:ye,summaryRef:be,contentRef:we,handleToggle:xe}=useDetailsAnimation({backendExpanded:n.expanded,label:p,onToggle:M?X:void 0}),$e=!h||y,Ne=h&&!y,Fe=()=>{E(!0)},De=()=>{E(!1)},Le=getKeyFromId(e);return jsx$1(StyledExpandableContainer,{className:classNames("stExpander",convertKeyToClassName(Le)),"data-testid":"stExpander",children:jsxs(StyledDetails,{isStale:i,ref:ye,onMouseEnter:Fe,onMouseLeave:De,children:[jsx$1(StyledSummary,{onClick:xe,ref:be,isStale:i,expanded:Z,children:jsxs(StyledSummaryHeading,{children:[$e&&jsx$1(DynamicIcon,{iconValue:Z?":material/keyboard_arrow_down:":":material/keyboard_arrow_right:",size:"lg"}),Ne&&jsx$1(ExpanderIcon,{icon:h}),jsx$1(StyledSummaryLabelWrapper,{children:jsx$1(StreamlitMarkdown$1,{source:p,allowHTML:!1,isLabel:!0,largerLabel:!0})})]})}
106),jsx$1(StyledDetailsPanel,{"data-testid":"stExpanderDetails",ref:we,inert:Z?void 0:"",children:d})]})})},Expander$1=reactExports.memo(Expander),Box=styled("div",{target:"eol2nw90"})(({width:n="100%",height:i})=>({width:n,height:i})),getPopoverContainerStyle=n=>{const i=hasLightBackgroundColor(n);return{boxSizing:"border-box",borderTopLeftRadius:n.radii.default,borderTopRightRadius:n.radii.default,borderBottomRightRadius:n.radii.default,borderBottomLeftRadius:n.radii.default,borderWidth:n.sizes.borderWidth,borderStyle:"solid",borderColor:i?n.colors.bgColor:n.colors.borderColor,boxShadow:i?n.shadows.popover:n.shadows.none}},getBorderColor=(n,i)=>{let t=n.widgetBorderColor??n.secondaryBg;return i&&(t=n.primary),t},useResizeObserver=(n,i=[])=>{const t=reactExports.useRef(null),[e,o]=reactExports.useState([]),d=reactExports.useCallback(()=>{if(!t.current)return[];const p=t.current.getBoundingClientRect();return n.map(h=>p[h])},[n]);return reactExports.useEffect(()=>{if(!t.current)return;o(d());let p;const h=new ResizeObserver(()=>{p=window.requestAnimationFrame(()=>{o(d())})});return h.observe(t.current),()=>{h.disconnect(),p&&cancelAnimationFrame(p)}},[n,d,...i]),{values:e,elementRef:t}},useCalculatedDimensions=(n=[],i=-1)=>{const{values:[t,e],elementRef:o}=useResizeObserver(reactExports.useMemo(()=>["width","height"],[]),n);return{width:t||i,height:e||i,elementRef:o}},arrayComparator=(n,i)=>n.length!==i.length?!1:n.every((t,e)=>Object.is(t,i[e])),useExecuteWhenChanged=(n,i,t=arrayComparator)=>{const[e,o]=reactExports.useState(i);t(e,i)||(o(i),n())},StyledPopoverLabelContainer=styled("div",{target:"e1jdirsb0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.threeXS,marginRight:`calc(-${n.iconSizes.lg} * 0.25)`})),StyledPopoverExpansionIcon=styled("div",{target:"e1jdirsb1"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.threeXS})),Popover=({element:n,empty:i,children:t,stretchWidth:e,widgetMgr:o,fragmentId:d})=>{const p=reactExports.useContext(IsSidebarContext),h=useEmotionTheme(),y=n.id,[E,$]=reactExports.useState(n.open??!1);useExecuteWhenChanged(()=>{!y||!notNullOrUndefined(n.open)||$(n.open)},[y,n.open]);const{width:M,elementRef:X}=useCalculatedDimensions(),Z=reactExports.useCallback(()=>{const we=!E;$(we),y&&o?.setBoolValue({id:y},we,{fromUi:!0},d)},[E,o,y,d]),ye=reactExports.useCallback(()=>{$(!1),y&&o?.setBoolValue({id:y},!1,{fromUi:!0},d)},[o,y,d]);let be=BaseButtonKind.SECONDARY;return n.type==="primary"?be=BaseButtonKind.PRIMARY:n.type==="tertiary"&&(be=BaseButtonKind.TERTIARY),jsx$1(Box,{"data-testid":"stPopover",className:"stPopover",ref:X,children:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT$1.bottomLeft,content:()=>t,isOpen:E,onClickOutside:ye,onClick:()=>E?ye():void 0,onEsc:ye,ignoreBoundary:p,popoverMargin:convertRemToPx(h.spacing.twoXS),renderAll:!0,overrides:{Body:{props:{"data-testid":"stPopoverBody"},style:()=>({...getPopoverContainerStyle(h),borderTopLeftRadius:h.radii.xl,borderTopRightRadius:h.radii.xl,borderBottomRightRadius:h.radii.xl,borderBottomLeftRadius:h.radii.xl,marginRight:h.spacing.lg,marginBottom:h.spacing.lg,maxHeight:"70vh",overflow:"auto",maxWidth:`calc(${h.sizes.contentMaxWidth} - 2*${h.spacing.lg})`,minWidth:e?`${Math.max(M,160)}px`:h.sizes.minPopupWidth,[`@media (max-width: ${h.breakpoints.sm})`]:{maxWidth:`calc(100% - ${h.spacing.threeXL})`},paddingRight:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingLeft:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingBottom:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingTop:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`})}},children:jsx$1("div",{children:jsx$1(BaseButtonTooltip,{help:n.help,containerWidth:!0,children:jsx$1(BaseButton,{"data-testid":"stPopoverButton",kind:be,size:BaseButtonSize.SMALL,disabled:i&&!y||n.disabled,containerWidth:!0,onClick:Z,children:jsxs(StyledPopoverLabelContainer,{children:[jsx$1(DynamicButtonLabel,{icon:n.icon,label:n.label}),jsx$1(StyledPopoverExpansionIcon,{children:jsx$1(DynamicIcon,{iconValue:E?":material/expand_less:":":material/expand_more:",size:"lg"})})]})})})})})})},Popover$1=reactExports.memo(Popover);function _objectWithoutProperties$2(n,i){if(n==null)return{};var t,e,o=_objectWithoutPropertiesLoose$b(n,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(e=0;e<d.length;e++)t=d[e],i.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}var _excluded$5=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function ownKeys$4(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$3(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
106i%2?ownKeys$4(Object(t),!0).forEach(function(e){_defineProperty$h(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$4(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}var EmotionIconBaseBase=reactExports.forwardRef(function(n,i){var t=n.children,e=n.iconAttrs;n.iconVerticalAlign;var o=n.iconViewBox,d=n.size,p=n.title,h=_objectWithoutProperties$2(n,_excluded$5),y=_objectSpread$3(_objectSpread$3({viewBox:o,height:n.height!==void 0?n.height:d,width:n.width!==void 0?n.width:d,"aria-hidden":p==null?"true":void 0,focusable:"false",role:p!=null?"img":void 0},e),h);return reactExports.createElement("svg",_extends$k({},y,{ref:i}),p&&reactExports.createElement("title",{key:"icon-title"},p),t)}),EmotionIconBase=createStyled(EmotionIconBaseBase,{target:"ex0cdmw0"})("display:inline-block;vertical-align:",function(n){return n.iconVerticalAlign},";overflow:hidden;"),AccessibilityNew=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}))});AccessibilityNew.displayName="AccessibilityNew";var AccessibleForward=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("circle",{cx:18,cy:4.54,r:2}),reactExports.createElement("path",{d:"M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm3-3.5h-1.86l1.67-3.67C18.42 8.5 17.44 7 15.96 7h-5.2c-.81 0-1.54.47-1.87 1.2L8.22 10l1.92.53.65-1.53H13l-1.83 4.1c-.6 1.33.39 2.9 1.85 2.9H18v5h2v-5.5c0-1.1-.9-2-2-2z"}))});AccessibleForward.displayName="AccessibleForward";var Check=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"}))});Check.displayName="Check";var ChevronLeft=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}))});ChevronLeft.displayName="ChevronLeft";var ChevronRight=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}))});ChevronRight.displayName="ChevronRight";var ContentCopy=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}))});ContentCopy.displayName="ContentCopy";var DirectionsBike=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5zm5.8-10l2.4-2.4.8.8c1.3 1.3 3 2.1 5.1 2.1V9c-1.5 0-2.7-.6-3.6-1.5l-1.9-1.9c-.5-.4-1-.6-1.6-.
1066s-1.1.2-1.4.6L7.8 8.4c-.4.4-.6.9-.6 1.4 0 .6.2 1.1.6 1.4L11 14v5h2v-6.2l-2.2-2.3zM19 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"}))});DirectionsBike.displayName="DirectionsBike";var DirectionsRun=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"}))});DirectionsRun.displayName="DirectionsRun";var Fullscreen=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))});Fullscreen.displayName="Fullscreen";var FullscreenExit=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))});FullscreenExit.displayName="FullscreenExit";var KeyboardArrowDown=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}))});KeyboardArrowDown.displayName="KeyboardArrowDown";var KeyboardArrowUp=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"}))});KeyboardArrowUp.displayName="KeyboardArrowUp";var Pool=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M10 8l-3.25 3.25c.31.12.56.27.77.39.37.23.59.36 1.15.36s.78-.13 1.15-.36c.46-.27 1.08-.64 2.19-.64s1.73.37 2.18.64c.37.22.6.36 1.15.36.55 0 .78-.13 1.15-.36.12-.07.26-.15.41-.23L10.48 5C8.93 3.45 7.5 2.99 5 3v2.5c1.82-.01 2.89.39 4 1.5l1 1zm12 8.5h-.02.02zm-16.65-1c.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.06.63 2.16.64v-2c-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.6.36-1.15.36s-.78-.14-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.18.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.2-.64.37-.23.6-.36 1.15-.36zM18.67 18c-1.11 0-1.73.37-2.18.64-.37.23-.6.36-1.15.36-.55 0-.78-.14-1.15-.36-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36s-.78-.13-1.15-.36c-.45-.27-1.07-.64-2.18-.64s-1.73.37-2.19.64c-.37.23-.59.36-1.15.36v2c1.11 0 1.73-.37 2.19-.64.37-.23.6-.36 1.15-.36.55 0 .78.13 1.15.36.45.27 1.07.64 2.18.64s1.73-.37 2.19-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64s1.72-.37 2.18-.64c.37-.23.59-.36 1.15-.36.55 0 .78.14 1.15.36.45.27 1.07.64 2.18.64v-2c-.56 0-.78-.13-1.15-.36-.45-.27-1.07-.64-2.18-.64z"}),reactExports.createElement("circle",{cx:16.5,cy:5.5,r:2.5}))});Pool.displayName="Pool";var Rowing=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),reactExports.createElement("path",{d:"M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1.4-1.55c.19-.21.43-.38.69-.5.29-.14.62-.23.96-.23h.03C15.99 6.01 17 7.02 17 8.26v5.75c0 .84-.35 1.61-.92 2.16l-3.58-3.58v-2.27c-.63.52-1.43 1.02-2.29 1.39L16.5 18H18l3 3.01z"}))});Rowing.displayName="Rowing";var ORIENTATION={vertical:"vertical",horizontal:"horizontal"},FILL={fixed:"fixed",intrinsic:"intrinsic"},getTabId=function n(i,t){return"tabs-".concat(i,"-tab-").concat(t)},getTabPanelId=function n(i,t){return"tabs-".concat(i,"-tabpanel-").concat(t)},isHorizontal=function n(i){return i===ORIENTATION.horizontal},isVertical=function n(i){return i===ORIENTATION.vertical},isRTL=function n(i){return i==="rtl"},isIntrinsic=function n(i){return i===FILL.intrinsic},isFixed=function n(i){return i===FILL.fixed};function ownKeys$3(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$2(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
106i%2?ownKeys$3(Object(t),!0).forEach(function(e){_defineProperty$2(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$3(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$2(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var StyledRoot=styled$1("div",function(n){n.$theme;var i=n.$orientation,t=i===void 0?ORIENTATION.horizontal:i,e={transform:"scale(1)"};return isVertical(t)&&(e.display="flex"),e});StyledRoot.displayName="StyledRoot";StyledRoot.displayName="StyledRoot";var StyledTabBar=styled$1("div",function(n){var i=n.$hasEndEnhancer,t=n.$orientation;return i||!isHorizontal(t)?{display:"flex"}:{}});StyledTabBar.displayName="StyledTabBar";StyledTabBar.displayName="StyledTabBar";var StyledTabList=styled$1("div",function(n){var i=n.$theme,t=n.$fill,e=t===void 0?FILL.intrinsic:t,o=n.$orientation,d=o===void 0?ORIENTATION.horizontal:o,p={position:"relative",display:"flex",flexWrap:"nowrap",flexGrow:1};return isHorizontal(d)?(p.flexDirection="row",p.paddingBottom="5px",p.marginBottom="-5px"):(p.flexDirection="column",isRTL(i.direction)?(p.paddingLeft="5px",p.marginLeft="-5px"):(p.paddingRight="5px",p.marginRight="-5px")),isIntrinsic(e)&&(p["::-webkit-scrollbar"]={display:"none"},p["-ms-overflow-style"]="none",p.scrollbarWidth="none",isHorizontal(d)?p.overflowX="scroll":p.overflowY="scroll"),p});StyledTabList.displayName="StyledTabList";StyledTabList.displayName="StyledTabList";var StyledTab=styled$1("button",function(n){var i=n.$theme,t=n.$orientation,e=t===void 0?ORIENTATION.horizontal:t,o=n.$fill,d=o===void 0?FILL.intrinsic:o,p=n.$focusVisible,h=p===void 0?!1:p;n.$isActive;var y=_objectSpread$2({cursor:"pointer",WebkitAppearance:"none",marginLeft:"0",marginRight:"0",marginTop:"0",marginBottom:"0",boxSizing:"border-box",display:"inline-flex",alignItems:"center",paddingLeft:i.sizing.scale600,paddingTop:i.sizing.scale600,paddingRight:i.sizing.scale600,paddingBottom:i.sizing.scale600,borderLeftWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",color:i.colors.contentPrimary,background:i.colors.backgroundPrimary,transitionProperty:"background",transitionDuration:i.animation.timing200,transitionTimingFunction:i.animation.linearCurve,outline:"none",outlineOffset:"-3px",":disabled":{cursor:"not-allowed",color:i.colors.contentStateDisabled},":hover":{background:i.colors.backgroundSecondary},":disabled:hover":{background:"none"}},i.typography.LabelSmall);return h&&(y.outline="3px solid ".concat(i.colors.accent)),isFixed(d)&&(y.flexGrow=1,y.flexBasis=0),isHorizontal(e)?y.justifyContent="center":y.justifyContent="flex-end",y});StyledTab.displayName="StyledTab";StyledTab.displayName="StyledTab";var StyledEndEnhancerContainer=styled$1("div",function(n){var i=n.$theme,t=i.direction==="rtl"?"marginRight":"marginLeft";return _defineProperty$2({display:"flex",alignItems:"center",justifyContent:"flex-end"},t,i.sizing.scale600)});StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";var StyledArtworkContainer=styled$1("div",function(n){var i=n.$theme;n.$orientation;var t={display:"flex"};return isRTL(i.direction)?t.marginLeft=i.sizing.scale300:t.marginRight=i.sizing.scale300,t});StyledArtworkContainer.displayName="StyledArtworkContainer";StyledArtworkContainer.displayName="StyledArtworkContainer";var StyledTabBorder=styled$1("div",function(n){var i=n.$theme,t=n.$orientation,e=t===void 0?ORIENTATION.horizontal:t,o={backgroundColor:i.colors.borderOpaque,position:"relative"};return isHorizontal(e)?o.height="5px":o.width="5px",o});StyledTabBorder.displayName="StyledTabBorder";StyledTabBorder.displayName="StyledTabBorder";var StyledTabHighlight=styled$1("div",function(n){var i=n.$theme,t=n.$orientation,e=t===void 0?ORIENTATION.horizontal:t,o=n.$length,d=o===void 0?0:o,p=n.$distance,h=p===void 0?0:p,y=n.$animate,E=y===void 0?!1:y,$={backgroundColor:i.colors.borderSelected,position:"absolute",zIndex:1};
106return isHorizontal(e)?($.bottom="0px",$.left="0px",$.height="5px",$.width="".concat(d,"px"),$.transform="translateX(".concat(h,"px)")):($.transform="translateY(".concat(h,"px)"),$.width="5px",$.height="".concat(d,"px"),isRTL(i.direction)?$.left="0px":$.right="0px"),E&&($.transitionProperty="all",$.transitionDuration=i.animation.timing400,$.transitionTimingFunction=i.animation.easeInOutQuinticCurve),$});StyledTabHighlight.displayName="StyledTabHighlight";StyledTabHighlight.displayName="StyledTabHighlight";var StyledTabPanel=styled$1("div",function(n){var i=n.$theme,t=n.$pad,e=t===void 0?!0:t,o={flexGrow:1,outline:"none"};return e&&(o.paddingTop=i.sizing.scale600,o.paddingRight=i.sizing.scale600,o.paddingBottom=i.sizing.scale600,o.paddingLeft=i.sizing.scale600),o});StyledTabPanel.displayName="StyledTabPanel";StyledTabPanel.displayName="StyledTabPanel";var _excluded$4=["childKey","childIndex","activeKey","orientation","activeTabRef","updateHighlight","parseKeyDown","activateOnFocus","uid","disabled","sharedStylingProps","onChange"],_excluded2$2=["artwork","overrides","tabRef","onClick","title"],_excluded3$1=["childKey","childIndex","activeKey","uid","sharedStylingProps","renderAll"];function ownKeys$2(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$1(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$2(Object(t),!0).forEach(function(e){_defineProperty$1(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$2(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty$1(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray$1(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 107In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray$1(n)}function _objectWithoutProperties$1(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose$1(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose$1(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends$1.apply(this,arguments)}function _slicedToArray$1(n,i){return _arrayWithHoles$1(n)||_iterableToArrayLimit$1(n,i)||_unsupportedIterableToArray$1(n,i)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 108In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$1(n,i);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray$1(n,i)}}function _arrayLikeToArray$1(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=new Array(i);t<i;t++)e[t]=n[t];return e}function _iterableToArrayLimit$1(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],o=!0,d=!1,p,h;try{for(t=t.call(n);!(o=(p=t.next()).done)&&(e.push(p.value),!(i&&e.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&t.return!=null&&t.return()}finally{if(d)throw h}}return e}}
108function _arrayWithHoles$1(n){if(Array.isArray(n))return n}var KEYBOARD_ACTION={next:"next",previous:"previous"},getLayoutParams=function n(i,t){return i?isVertical(t)?{length:i.clientHeight,distance:i.offsetTop}:{length:i.clientWidth,distance:i.offsetLeft}:{length:0,distance:0}},scrollParentToCentreTarget=function n(i){var t=i.parentNode.getBoundingClientRect(),e=t.x,o=t.y,d=t.width,p=t.height,h=i.getBoundingClientRect(),y=h.x,E=h.y,$=h.width,M=h.height,X={x:y-e+$/2,y:E-o+M/2},Z=i.parentNode,ye=Z.scrollLeft,be=Z.scrollTop,we={x:ye+X.x-d/2,y:be+X.y-p/2};i.parentNode.scroll(we.x,we.y)};function RenderEnhancer(n){var i=n.Enhancer;return typeof i=="string"?i:reactIsExports$1.isValidElementType(i)?reactExports.createElement(i,null):i}function Tabs$2(n){var i=n.activeKey,t=i===void 0?"0":i,e=n.disabled,o=e===void 0?!1:e,d=n.children,p=n.fill,h=p===void 0?FILL.intrinsic:p,y=n.activateOnFocus,E=y===void 0?!0:y,$=n.onChange,M=n.orientation,X=M===void 0?ORIENTATION.horizontal:M,Z=n.overrides,ye=Z===void 0?{}:Z,be=n.renderAll,we=be===void 0?!1:be,xe=n.uid,$e=xe===void 0?null:xe,Ne=n.endEnhancer,Fe=useUID(),De=$e||Fe,Le=ye.Root,He=ye.TabList,Ke=ye.TabHighlight,je=ye.TabBorder,Ve=getOverrides(Le,StyledRoot),qe=_slicedToArray$1(Ve,2),Ye=qe[0],et=qe[1],Qe=getOverrides(He,StyledTabList),ze=_slicedToArray$1(Qe,2),st=ze[0],at=ze[1],tt=getOverrides(Ke,StyledTabHighlight),pt=_slicedToArray$1(tt,2),Be=pt[0],Ge=pt[1],it=getOverrides(je,StyledTabBorder),Ue=_slicedToArray$1(it,2),Ot=Ue[0],Rt=Ue[1],dt=getOverrides(ye.EndEnhancerContainer,StyledEndEnhancerContainer),Tt=_slicedToArray$1(dt,2),ht=Tt[0],Ft=Tt[1],zt=reactExports.useState(0),$t=_slicedToArray$1(zt,2),Yt=$t[0],ln=$t[1];reactExports.useEffect(function(){ln(Yt+1)},[t]);var Qt=reactExports.useRef(),kn=reactExports.useState({length:0,distance:0}),en=_slicedToArray$1(kn,2),Gt=en[0],on=en[1],Wt=reactExports.useCallback(function(){Qt.current&&on(getLayoutParams(Qt.current,X))},[Qt.current,X]);reactExports.useEffect(Wt,[Qt.current,X]),reactExports.useEffect(function(){Qt.current&&(isHorizontal(X)?Qt.current.parentNode.scrollWidth>Qt.current.parentNode.clientWidth:Qt.current.parentNode.scrollHeight>Qt.current.parentNode.clientHeight)&&(Yt>1?Qt.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}):scrollParentToCentreTarget(Qt.current))},[Qt.current]);var tn={$orientation:X,$fill:h},vn=useStyletron(),Rn=_slicedToArray$1(vn,2),dn=Rn[1],_n=reactExports.useCallback(function(Kt){if(isHorizontal(X))if(isRTL(dn.direction))switch(Kt.keyCode){case 39:return KEYBOARD_ACTION.previous;case 37:return KEYBOARD_ACTION.next;default:return null}else switch(Kt.keyCode){case 37:return KEYBOARD_ACTION.previous;case 39:return KEYBOARD_ACTION.next;default:return null}else switch(Kt.keyCode){case 38:return KEYBOARD_ACTION.previous;case 40:return KEYBOARD_ACTION.next;default:return null}},[X,dn.direction]);return reactExports.createElement(Ye,_extends$1({},tn,et),reactExports.createElement(StyledTabBar,{$hasEndEnhancer:!!Ne,$orientation:X},reactExports.createElement(st,_extends$1({"data-baseweb":"tab-list",role:"tablist","aria-orientation":X},tn,at),reactExports.Children.map(d,function(Kt,ut){if(Kt)return reactExports.createElement(InternalTab,_extends$1({childKey:Kt.key,childIndex:ut,activeKey:t,orientation:X,activeTabRef:Qt,updateHighlight:Wt,parseKeyDown:_n,activateOnFocus:E,uid:De,disabled:o,sharedStylingProps:tn,onChange:$},Kt.props))}),reactExports.createElement(Be,_extends$1({"data-baseweb":"tab-highlight",$length:Gt.length,$distance:Gt.distance,$animate:Yt>1,"aria-hidden":"true",role:"presentation"},tn,Ge))),X===ORIENTATION.horizontal&&Ne!==null&&Ne!==void 0&&reactExports.createElement(ht,_extends$1({},Ft,{$orientation:X}),reactExports.createElement(RenderEnhancer,{Enhancer:Ne}))),reactExports.createElement(Ot,_extends$1({"data-baseweb":"tab-border","aria-hidden":"true",role:"presentation"},tn,Rt)),reactExports.Children.map(d,function(Kt,ut){if(Kt)return reactExports.createElement(InternalTabPanel,_extends$1({childKey:Kt.key,childIndex:ut,activeKey:t,uid:De,sharedStylingProps:tn,renderAll:we},Kt.props))}))}function InternalTab(n){var i=n.childKey,t=n.childIndex,e=n.activeKey,o=n.orientation,d=n.activeTabRef,p=n.updateHighlight,h=n.parseKeyDown,y=n.activateOnFocus,E=n.uid,$=n.disabled,M=n.sharedStylingProps,X=n.onChange,Z=_objectWithoutProperties$1(n,_excluded$4),ye=i||String(t),be=ye==e,we=Z.artwork,xe=Z.overrides,$e=xe===void 0?{}:xe,Ne=Z.tabRef,Fe=Z.onClick,De=Z.title,Le=_objectWithoutProperties$1(Z,_excluded2$2),He=reactExports.useRef();reactExports.useImperativeHandle(Ne,function(){return be?d.current:He.current});var Ke=reactExports.useRef({length:0,distance:0});reactExports.useEffect(function(){Ke.current=getLayoutParams(be?d.current:He.current,o)}),reactExports.useEffect(function(){if(window.ResizeObserver){var dt=new window.ResizeObserver(function(Tt){if(Tt[0]&&Tt[0].target){var ht=getLayoutParams(Tt[0].target,o);(ht.length!==Ke.current.length||ht.distance!==Ke.current.distance)&&p()}});return dt.observe(be?d.current:He.current),function(){dt.disconnect()}}},[e,o]),reactExports.useEffect(p,[De]);var je=$e.Tab,Ve=$e.ArtworkContainer,qe=getOverrides(je,StyledTab),Ye=_slicedToArray$1(qe,2),et=Ye[0],Qe=Ye[1],ze=getOverrides(Ve,StyledArtworkContainer),st=_slicedToArray$1(ze,2),at=st[0],tt=st[1],pt=reactExports.useState(!1),Be=_slicedToArray$1(pt,2),Ge=Be[0],it=Be[1],Ue=reactExports.useCallback(function(dt){isFocusVisible(dt)&&it(!0)},[]),Ot=reactExports.useCallback(function(dt){Ge!==!1&&it(!1)},[Ge]),Rt=reactExports.useCallback(function(dt){var Tt=_toConsumableArray(dt.target.parentNode.childNodes).filter(function($t){return!$t.disabled&&$t.getAttribute("role")==="tab"});if(Tt.length!==1){var ht=Tt.indexOf(dt.target),Ft=h(dt);if(Ft){var zt;Ft===KEYBOARD_ACTION.previous?Tt[ht-1]?zt=Tt[ht-1]:zt=Tt[Tt.length-1]:Ft===KEYBOARD_ACTION.next&&(Tt[ht+1]?zt=Tt[ht+1]:zt=Tt[0]),zt&&(zt.focu
108s(),y&&zt.click()),isVertical(o)&&dt.preventDefault()}}});return reactExports.createElement(et,_extends$1({"data-baseweb":"tab",key:ye,id:getTabId(E,ye),role:"tab",onKeyDown:Rt,"aria-selected":be,"aria-controls":getTabPanelId(E,ye),tabIndex:be?"0":"-1",ref:be?d:He,disabled:!be&&$,type:"button",$focusVisible:Ge,$isActive:be},M,Le,Qe,{onClick:function(Tt){typeof X=="function"&&X({activeKey:ye}),typeof Fe=="function"&&Fe(Tt)},onFocus:forkFocus(_objectSpread$1(_objectSpread$1({},Le),Qe),Ue),onBlur:forkBlur(_objectSpread$1(_objectSpread$1({},Le),Qe),Ot)}),we?reactExports.createElement(at,_extends$1({"data-baseweb":"artwork-container"},M,tt),reactExports.createElement(we,{size:20,color:"contentPrimary"})):null,De||ye)}function InternalTabPanel(n){var i=n.childKey,t=n.childIndex,e=n.activeKey,o=n.uid,d=n.sharedStylingProps,p=n.renderAll,h=_objectWithoutProperties$1(n,_excluded3$1),y=i||String(t),E=y==e,$=h.overrides,M=$===void 0?{}:$,X=h.children,Z=M.TabPanel,ye=getOverrides(Z,StyledTabPanel),be=_slicedToArray$1(ye,2),we=be[0],xe=be[1];return reactExports.createElement(we,_extends$1({"data-baseweb":"tab-panel",key:y,role:"tabpanel",id:getTabPanelId(o,y),"aria-labelledby":getTabId(o,y),hidden:!E},d,xe),E||p?X:null)}function Tab(n){return null}const StyledTabContainer=styled("div",{target:"e16uisa00"})(({isOverflowing:n,width:i,flex:t})=>({position:n?"relative":void 0,width:i||void 0,flex:t||void 0})),StyledScrollArrow=styled("button",{target:"e16uisa01"})(({theme:n,position:i,tabHeight:t})=>({position:"absolute",top:0,[i]:0,zIndex:n.zIndices.priority,display:"flex",alignItems:"center",justifyContent:"center",height:t,width:n.spacing.xl,padding:0,border:"none",cursor:"pointer",color:n.colors.fadedText60,background:"transparent",backgroundImage:i==="right"?`linear-gradient(to right, ${transparentize(n.colors.bgColor,1)}, ${n.colors.bgColor} 40%)`:`linear-gradient(to left, ${transparentize(n.colors.bgColor,1)}, ${n.colors.bgColor} 40%)`,"&:hover":{color:n.colors.bodyText},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing}})),SCROLL_AMOUNT=200,SCROLL_TOLERANCE=1;function Tabs(n){const{widgetsDisabled:i,node:t,isStale:e,width:o,flex:d,widgetMgr:p,fragmentId:h}=n,{scriptRunState:y,scriptRunId:E,fragmentIdsThisRun:$}=reactExports.useContext(ScriptRunContext),M=t.deltaBlock?.tabContainer?.defaultTabIndex??0,X=t.deltaBlock?.tabContainer?.id,Z=!!X,ye=reactExports.useMemo(()=>t.children.map((at,tt)=>at?.deltaBlock?.tab?.label??tt.toString()),[t.children]),[be,we]=reactExports.useState(M),[xe,$e]=reactExports.useState(()=>t.children[M]?.deltaBlock?.tab?.label??"0"),Ne=reactExports.useRef(null),Fe=useEmotionTheme(),[De,Le]=reactExports.useState(!1),[He,Ke]=reactExports.useState(!1),je=De||He,Ve=reactExports.useCallback(()=>{if(Ne.current){const{scrollLeft:at,scrollWidth:tt,clientWidth:pt}=Ne.current;Le(at>SCROLL_TOLERANCE),Ke(at+pt<tt-SCROLL_TOLERANCE)}},[]),qe=reactExports.useCallback(at=>{Ne.current?.scrollBy({left:at==="left"?-SCROLL_AMOUNT:SCROLL_AMOUNT,behavior:"smooth"})},[]),Ye=reactExports.useCallback(()=>qe("left"),[qe]),et=reactExports.useCallback(()=>qe("right"),[qe]),Qe=reactExports.useRef(M);reactExports.useEffect(()=>{if(Z&&ye.length>0&&M!==Qe.current){const tt=ye[M];tt&&(we(M),$e(tt)),Qe.current=M}},[M,Z,ye]),reactExports.useEffect(()=>{ye.indexOf(xe)===-1&&(we(M),$e(ye[M]))},[ye]),reactExports.useEffect(()=>{const at=Ne.current;if(at){at.addEventListener("scroll",Ve,{passive:!0});const tt=new ResizeObserver(()=>{Ve()});return tt.observe(at),()=>{at.removeEventListener("scroll",Ve),tt.disconnect()}}},[Ve]),reactExports.useEffect(()=>{Ve();const at=ye.indexOf(xe);at!==-1?(we(at),$e(ye[at])):(we(M),$e(ye[M]))},[t.children.length,Ve]);const ze=Fe.sizes.tabHeight,st=Fe.spacing.threeXS;return jsxs(StyledTabContainer,{className:"stTabs","data-testid":"stTabs",isOverflowing:je,width:o,flex:d,children:[jsx$1(Tabs$2,{activateOnFocus:!0,activeKey:be,onChange:({activeKey:at})=>{we(at),$e(ye[at]),Z&&X&&p&&p.setStringValue({id:X,formId:""},ye[at],{fromUi:!0},h)},renderAll:!0,overrides:{TabHighlight:{style:()=>({backgroundColor:Fe.colors.primary,height:st})},TabBorder:{style:()=>({backgroundColor:Fe.colors.borderColorLight,height:st})},TabList:{props:{ref:Ne},style:()=>({gap:Fe.spacing.lg,marginBottom:`-${st}`,paddingBottom:st,overflowY:"hidden",...e&&STALE_STYLES})},Root:{style:()=>({transform:"none"})}},children:t.children.map((at,tt)=>{const pt=isElementStale(at,y,E,$),Be={...n,isStale:e||pt,widgetsDisabled:i,node:at},Ge=ye[tt]??tt.toString(),it=be.toString()===tt.toString();return jsx$1(Tab,{"data-testid":"stTab",title:jsx$1(StreamlitMarkdown$1,{source:Ge,allowHTML:!1,isLabel:!0}),disabled:!e&&pt,overrides:{TabPanel:{style:()=>({paddingLeft:Fe.spacing.none,paddingRight:Fe.spacing.none,paddingBottom:Fe.spacing.none,paddingTop:Fe.spacing.lg})},Tab:{style:()=>({height:ze,whiteSpace:"nowrap",paddingLeft:Fe.spacing.none,paddingRight:Fe.spacing.none,paddingTop:Fe.spacing.none,paddingBottom:Fe.spacing.none,fontSize:Fe.fontSizes.sm,background:"transparent",color:Fe.colors.bodyText,":focus":{outline:"none",color:Fe.colors.primary,background:"none"},":hover":{color:Fe.colors.primary,background:"none"},...it?{color:Fe.colors.primary}:{},...!e&&pt&&STALE_STYLES})}},children:n.renderTabContent(Be)},tt)})}),De&&jsx$1(StyledScrollArrow,{position:"left",tabHeight:ze,onClick:Ye,"aria-label":"Scroll tabs left","data-testid":"stTabsScrollLeft",children:jsx$1(Icon$2,{content:C
108hevronLeft,size:"lg"})}),He&&jsx$1(StyledScrollArrow,{position:"right",tabHeight:ze,onClick:et,"aria-label":"Scroll tabs right","data-testid":"stTabsScrollRight",children:jsx$1(Icon$2,{content:ChevronRight,size:"lg"})})]})}const Tabs$1=reactExports.memo(Tabs),FormsContext=reactExports.createContext(null);FormsContext.displayName="FormsContext";const useRequiredContext=n=>{const i=reactExports.useContext(n);if(i==null)throw new Error(`useRequiredContext: ${n.displayName??"context"} not found`);return i},StyledFormSubmitContent=styled("div",{target:"e189vper0"})({display:"flex"}),StyledForm=styled("div",{target:"e189vper1"})(({theme:n,border:i,overflow:t})=>({...i&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},width:"100%",height:"100%",overflow:t})),StyledErrorContainer=styled("div",{target:"e189vper2"})(({theme:n})=>({marginTop:n.spacing.lg})),StyledAlertContent=styled("div",{target:"e10i2jnt0"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,width:"100%",[`${StyledCodeBlock} code`]:{paddingRight:n.spacing.lg}})),StyledAlertIcon=styled("div",{target:"e10i2jnt1"})(({theme:n})=>({position:"relative",top:n.spacing.threeXS}));function AlertElement({icon:n,body:i,kind:t}){const e=useEmotionTheme(),o={width:n?`calc(100% - (${e.iconSizes.lg} + ${e.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{kind:t,children:jsxs(StyledAlertContent,{children:[n&&jsx$1(StyledAlertIcon,{children:jsx$1(DynamicIcon,{iconValue:n,size:"lg",testid:"stAlertDynamicIcon"})}),jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,style:o})]})})})}const AlertElement$1=reactExports.memo(AlertElement);function getAlertElementKind(n){switch(n){case Alert.Format.ERROR:return Kind.ERROR;case Alert.Format.INFO:return Kind.INFO;case Alert.Format.SUCCESS:return Kind.SUCCESS;case Alert.Format.WARNING:return Kind.WARNING;default:throw new Error(`Unexpected alert type: ${n}`)}}const MISSING_SUBMIT_BUTTON_WARNING=`**Missing Submit Button** 109 110This form has no submit button, which means that user interactions will never be sent to your Streamlit app. 111 112To create a submit button, use the \`st.form_submit_button()\` function. 113 114For more information, refer to the [documentation for forms](https://docs.streamlit.io/develop/api-reference/execution-flow/st.form).`;function Form(n){const{formId:i,widgetMgr:t,children:e,clearOnSubmit:o,enterToSubmit:d,border:p,overflow:h}=n,{formsData:y}=useRequiredContext(FormsContext),E=y.submitButtons.get(i),$=E!==void 0&&E.length>0,{scriptRunState:M}=reactExports.useContext(ScriptRunContext),X=M===ScriptRunState.NOT_RUNNING;reactExports.useEffect(()=>{t.setFormSubmitBehaviors(i,o,d)},[t,i,o,d]);const[Z,ye]=reactExports.useState(!1);$&&Z?ye(!1):!$&&!Z&&X&&ye(!0);let be;return Z&&(be=jsx$1(StyledErrorContainer,{children:jsx$1(AlertElement$1,{body:MISSING_SUBMIT_BUTTON_WARNING,kind:Kind.ERROR})})),jsxs(StyledForm,{className:"stForm","data-testid":"stForm",border:p,overflow:h,children:[e,be]})}const Form$1=reactExports.memo(Form);function squareStepper(n,i){const t=Math.sign(i-n),e=Math.sqrt(Math.abs(i-n)),o=n+e*t;return t>0?Math.min(i,o):Math.max(i,o)}function step(n,i,t,e){let o=n;for(let d=0;d<e;d++)o=t(o,i);return o}function useScrollAnimation(n,i,t,e){const o=reactExports.useRef(0),d=reactExports.useCallback((h,y,E=Date.now())=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{if(n){const $=n.scrollHeight-n.offsetHeight;let M=step(h,$,squareStepper,(Date.now()-E)/5);Math.abs($-M)<1.5&&(M=$),n.scrollTop=M,$===M?i():d(h,y+1,E)}})},[o,i,n]),p=reactExports.useCallback(()=>{cancelAnimationFrame(o.current),i()},[i]);reactExports.useLayoutEffect(()=>{if(!(!n||!t||!e))return d(n.scrollTop,1),n?(n.addEventListener("pointerdown",p,{passive:!0}),n.addEventListener("wheel",p,{passive:!0}),()=>{n.removeEventListener("pointerdown",p),n.removeEventListener("wheel",p),cancelAnimationFrame(o.current)}):()=>cancelAnimationFrame(o.current)},[d,o,p,n,t,e])}const DEFAULT_DEBOUNCE_MS=100;function useScrollSpy(n,i,t){const e=reactExports.useRef(i),o=reactExports.useRef(0),d=reactExports.useRef();reactExports.useEffect(()=>{e.current=i},[i]);const{clear:p,restart:h}=useTimeout(()=>{d.current&&(e.current(d.current),d.current=void 0,o.current=Date.now())},DEFAULT_DEBOUNCE_MS,{autoStart:!1}),y=reactExports.useCallback($=>{const M=Date.now(),X=M-o.current;if(X>DEFAULT_DEBOUNCE_MS){p(),d.current=void 0,e.current($),o.current=M;return}d.current=$,h(Math.max(0,DEFAULT_DEBOUNCE_MS-X))},[p,h]),E=reactExports.useCallback($=>{$.timeStampLow=Date.now(),y($)},[y]);reactExports.useLayoutEffect(()=>!n||!t?()=>{p(),d.current=void 0}:(n.addEventListener("scroll",E,{passive:!0}),E({target:n}),()=>{n.removeEventListener("scroll",E),p(),d.current=void 0}),[t,p,E,n])}function useStateRef(n){const[i,t]=reactExports.useState(n),e=reactExports.useRef(n);return e.current=i,[i,t,e]}const DEFAULT_BOTTOM_THRESHOLD=1,SCROLL_DECISION_DURATION=34,MIN_CHECK_INTERVAL=17;function setImmediateInterval(n,i){return n(),setInterval(n,i)}function isAtBottom({scrollHeight:n,offsetHeight:i,scrollTop:t}){return n-t-i<DEFAULT_BOTTOM_THRESHOLD}function useScrollToBottom(n){const i=reactExports.useRef(null),[t,e,o]=useStateRef(!1),[d,p,h]=useStateRef(!0);reactExports.useEffect(()=>{e(!0)},[e]);const y=reactExports.useRef(0),E=reactExports.useRef(0),$=reactExports.useRef(0),M=reactExports.useCallback(()=>{y.current=Date.now(),h.current||e(!1),p(!1)},[y,h,p,e]),X=reactExports.useCallback(({timeStampLow:Z})=>{const{current:ye}=i,be=h.current;if(Z<=y.current||!ye)return;const we=isAtBottom(ye),{offsetHeight:xe,scrollHeight:$e}=ye,{current:Ne}=E,{current:Fe}=$,De=xe!==Ne,Le=$e!==Fe;if(De&&(E.current=xe),Le&&($.current=$e),!De&&!Le){const He=be||we;o.current!==He&&e(He)}else o.current&&(p(!0),e(!0))},[y,E,$,h,o,p,e]);return reactExports.useEffect(()=>{if(i.current&&n){let Z=0;const ye=setImmediateInterval(()=>{const{current:be}=i,we=h.current;o.current&&be?isAtBottom(be)?Z=0:Z?Date.now()-Z>SCROLL_DECISION_DURATION&&(we||(p(!0),e(!0)),Z=0):Z=Date.now():be&&be.scrollHeight<=be.offsetHeight&&!o.current&&e(!0)},MIN_CHECK_INTERVAL);return()=>clearInterval(ye)}},[i,t,d,h,o,e,p,n]),reactExports.useEffect(()=>{const Z=i.current;if(Z&&n){const ye=()=>{$.current=Z.scrollHeight};return Z.addEventListener("focus",ye,{capture:!0,passive:!0}),()=>{Z.removeEventListener("focus",ye,{capture:!0})}}}
114,[i,n]),useScrollSpy(i.current,X,n),useScrollAnimation(i.current,M,d,n),i}const Maybe=reactExports.memo(function n({children:i}){return jsx$1(Fragment,{children:i})},(n,i)=>!(n.enable||i.enable)),LOG$g=loglevelExports.getLogger("useCopyToClipboard"),useCopyToClipboard=({timeout:n=2e3}={})=>{const[i,t]=reactExports.useState(!1),{restart:e}=useTimeout(reactExports.useCallback(()=>{t(!1)},[]),i?n:null),o=reactExports.useCallback(p=>{(async()=>{try{await navigator.clipboard.writeText(p),t(!0),e()}catch(y){LOG$g.error("Failed to copy text to clipboard:",y),t(!1)}})()},[e]);return{isCopied:i,copyToClipboard:o,label:i?"Copied":"Copy to clipboard"}},StyledStackTraceRow=styled("div",{target:"e1llqode0"})(({theme:n})=>({marginTop:n.spacing.sm,"&:first-of-type":{marginTop:0}})),StyledMessageType=styled("span",{target:"e1llqode1"})(({theme:n})=>({fontWeight:n.fontWeights.bold})),StyledStackTraceTitle=styled("div",{target:"e1llqode2"})(({theme:n})=>({marginBottom:n.spacing.sm})),StyledStackTraceContent=styled("div",{target:"e1llqode3"})({display:"inline-block",minWidth:"100%"}),StyledExceptionMessage=styled("div",{target:"e1llqode4"})({wordWrap:"break-word"}),StyledExceptionLinks=styled("div",{target:"e1llqode5"})(({theme:n})=>({fontSize:n.fontSizes.sm,display:"flex",gap:n.spacing.md,justifyContent:"flex-end",underline:!0})),StyledExceptionCopyButton=styled("button",{target:"e1llqode6"})({all:"unset",font:"inherit",textDecoration:"underline"}),StyledExceptionWrapper=styled("div",{target:"e1llqode7"})(({theme:n})=>({display:"flex",flexDirection:"column",gap:n.spacing.lg}));loglevelExports.getLogger("ExceptionElement");function isNonEmptyString(n){return notNullOrUndefined(n)&&n!==""}function ExceptionMessage({type:n,message:i,messageIsMarkdown:t}){if(t){let e=i??"";return n.length!==0&&(e=`**${n}**: ${e}`),jsx$1(StreamlitMarkdown$1,{source:e,allowHTML:!1})}return jsxs(Fragment,{children:[jsx$1(StyledMessageType,{children:n}),n.length!==0&&": ",isNonEmptyString(i)?i:null]})}function StackTrace({stackTrace:n}){return jsxs("div",{children:[jsx$1(StyledStackTraceTitle,{children:"Traceback:"}),jsx$1(StyledStackTrace,{children:jsx$1(StyledStackTraceContent,{children:jsx$1(StyledCode,{wrapLines:!1,children:n.map((i,t)=>jsx$1(StyledStackTraceRow,{"data-testid":"stExceptionTraceRow",children:i},t))})})})]})}function ExceptionElement({element:n}){const{showErrorLinks:i=Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO}=reactExports.useContext(LibConfigContext),t=i===Config.ShowErrorLinks.SHOW_ERROR_LINKS_TRUE||i===Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO&&isLocalhost(),e=`${n.type}: ${n.message}`,o=`${e} 115 116${n.stackTrace?.join(` 117`)}`,d=`https://www.google.com/search?q=${encodeURIComponent(e)}`,p=`https://chatgpt.com/?q=${encodeURIComponent(o)}`,{copyToClipboard:h}=useCopyToClipboard(),y=reactExports.useCallback(()=>{h(o)},[h,o]);return jsx$1("div",{className:"stException","data-testid":"stException",children:jsx$1(AlertContainer,{kind:n.isWarning?Kind.WARNING:Kind.ERROR,children:jsxs(StyledExceptionWrapper,{children:[jsx$1(StyledExceptionMessage,{"data-testid":"stExceptionMessage",children:jsx$1(ExceptionMessage,{type:n.type,message:n.message,messageIsMarkdown:n.messageIsMarkdown})}),n.stackTrace&&n.stackTrace.length>0?jsx$1(StackTrace,{stackTrace:n.stackTrace}):null,t&&jsxs(StyledExceptionLinks,{children:[jsx$1(StyledExceptionCopyButton,{onClick:y,children:"Copy"}),jsx$1("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:"Ask Google"}),jsx$1("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"Ask ChatGPT"})]})]})})})}const ExceptionElement$1=reactExports.memo(ExceptionElement),StyledDocSummary=styled("span",{target:"e1xlgy2u0"})(({theme:n})=>({"& > *":{marginRight:n.spacing.sm}})),StyledDocName=styled("span",{target:"e1xlgy2u1"})(({theme:n})=>({fontWeight:n.fontWeights.codeBold})),StyledDocType=styled("span",{target:"e1xlgy2u2"})(({theme:n})=>({color:n.colors.codeTextColor})),StyledDocValue=styled("span",{target:"e1xlgy2u3"})(),StyledDocContainer=styled("span",{target:"e1xlgy2u4"})(({theme:n})=>({display:"flex",flexDirection:"column",borderRadius:n.radii.default,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,fontFamily:n.genericFonts.codeFont,fontSize:n.fontSizes.codeFontSize,fontWeight:n.fontWeights.code})),StyledDocHeader=styled("div",{target:"e1xlgy2u5"})(({theme:n})=>({padding:`${n.spacing.sm} ${n.spacing.lg}`,backgroundColor:n.colors.bgMix,borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderTopLeftRadius:n.radii.default,borderTopRightRadius:n.radii.default,fontSize:n.fontSizes.codeFontSize,overflow:"auto"})),StyledDocString=styled("div",{target:"e1xlgy2u6"})(({theme:n})=>({whiteSpace:"pre",overflow:"auto",maxHeight:"30.5rem",padding:`${n.spacing.sm} ${n.spacing.lg}`,fontSize:n.fontSizes.codeFontSize,"&:not(:last-child)":{borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`}})),StyledMembersTable=styled("table",{target:"e1xlgy2u7"})(({theme:n})=>({width:"100%",fontSize:n.fontSizes.codeFontSize,backgroundColor:n.colors.bgMix,tableLayout:"fixed",borderCollapse:"collapse",borderBottomLeftRadius:n.radii.default,borderBottomRightRadius:n.radii.default})),StyledMembersRow=styled("tr",{target:"e1xlgy2u8"})(({theme:n})=>({"&:not(:last-child)":{borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`}})),StyledMembersSummaryCell=styled("td",{target:"e1xlgy2u9"})(({theme:n})=>({width:"30%",overflow:"auto",padding:`${n.spacing.sm} ${n.spacing.lg}`,"& > *":{marginRight:n.spacing.sm}})),StyledMembersDetailsCell=styled("td",{target:"e1xlgy2u10"})(({theme:n})=>({width:"70%",overflow:"auto",padding:`${n.spacing.sm} ${n.spacing.lg}`}));function Help({element:n}){const{name:i,type:t,value:e,docString:o,members:d}=n;return jsxs(StyledDocContainer,{className:"stHelp","data-testid":"stHelp",children:[jsx$1(StyledDocHeader,{children:jsxs(StyledDocSummary,{children:[i?jsx$1(StyledDocName,{"data-testid":"stHelpName",children:i}):null,t?jsx$1(StyledDocType,{"data-testid":"stHelpType",children:t}):null,e?jsx$1(StyledDocValue,{"data-testid":"stHelpValue",children:e}):null]})}),jsx$1(StyledDocString,{"data-testid":"stHelpDoc",children:o||"No docs available"}),d.length>0?jsx$1(StyledMembersTable,{"data-testid":"stHelpMembersTable",children:jsx$1("tbody",{children:d.map(p=>jsx$1(Member,{member:p},p.name))})}):null]})}function Member({member:n}){const{name:i,type:t,value:e,docString:o}=n;return jsxs(StyledMembersRow,{"data-testid":"stHelpMember",children:[jsxs(StyledMembersSummaryCell,{children:[i?jsx$1(StyledDocName,{"data-testid":"stHelpMemberDocName",children:i}):null,t?jsx$1(StyledDocType,{"data-testid":"stHelpMemberDocType",children:t}):null]}),jsx$1(StyledMembersDetailsCell,{children:e?jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocValue",children:e}):jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocString",children:o||"No docs available"})})]})}const Help$1=reactExports.memo(Help),SINGLE_BADGE_REGEX=/^:\w+-badge\[((?:\\.|[^\]\\])
117*)\]$/;function Markdown({element:n}){const{allowHtml:i,body:t,elementType:e,help:o}=n,d=e===Markdown$3.Type.CAPTION,p=e===Markdown$3.Type.LATEX,h=e===Markdown$3.Type.NATIVE&&SINGLE_BADGE_REGEX.test(t.trim());let y;if(o&&h)y=jsx$1(BaseButtonTooltip,{help:o,containerWidth:!1,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:t,allowHTML:i})});else if(o&&p)y=jsxs(StyledLabelHelpWrapper,{isLatex:p,children:[jsx$1(StreamlitMarkdown$1,{isCaption:d,source:t,allowHTML:i}),jsx$1(InlineTooltipIcon,{content:o,isLatex:p})]});else{const E=o?`${t} :help[]`:t;y=jsx$1(StyledLabelHelpWrapper,{isLatex:p,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:E,allowHTML:i,helpText:o})})}return jsx$1("div",{className:"stMarkdown","data-testid":"stMarkdown",children:y})}const Markdown$1=reactExports.memo(Markdown),StyledText=styled("span",{target:"e1fbzn630"})(({theme:n})=>({fontFamily:n.genericFonts.bodyFont,color:n.colors.bodyText,whiteSpace:"pre-line",whiteSpaceCollapse:"preserve",wordBreak:"break-word",display:"inline-block",verticalAlign:"middle",width:"100%"})),StyledInlineHelpIcon=styled("span",{target:"e1fbzn631"})(({theme:n})=>({display:"inline-block",verticalAlign:"middle",marginLeft:n.spacing.twoXS,transform:"translateY(-0.05em)"}));function TextElement({element:n}){return jsx$1(StyledLabelHelpWrapper,{className:"stText","data-testid":"stText",children:jsxs(StyledText,{children:[n.body,n.help&&jsx$1(StyledInlineHelpIcon,{children:jsx$1(InlineTooltipIcon,{content:n.help})})]})})}const TextElement$1=reactExports.memo(TextElement),katex_min=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function makeMarkdownHeading(n,i){switch(n.toLowerCase()){case Tags.H1:return`# ${i}`;case Tags.H2:return`## ${i}`;case Tags.H3:return`### ${i}`;default:throw new Error(`Unrecognized tag for header: ${n}`)}}const OVERRIDE_COMPONENTS={p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment};function Heading(n){const{element:i}=n,{tag:t,anchor:e,body:o,help:d,hideAnchor:p,divider:h}=i,y=reactExports.useContext(IsDialogContext),[E,...$]=o.split(` 118`);return jsxs("div",{className:"stHeading","data-testid":"stHeading",children:[jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInDialog:y,"data-testid":"stMarkdownContainer",children:[jsx$1(HeadingWithActionElements,{anchor:e,help:d,hideAnchor:p,tag:t,children:jsx$1(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(t,E),overrideComponents:OVERRIDE_COMPONENTS})}),$.length>0&&jsx$1(RenderedMarkdown,{source:$.join(` 119`),allowHTML:!1})]}),h&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:h.includes("linear"),color:h})]})}const ViewStateContext=reactExports.createContext({isFullScreen:!1,setFullScreen:()=>{}});ViewStateContext.displayName="ViewStateContext";const StyledCheckbox=styled("div",{target:"eczd22r0"})(({theme:n})=>({display:"flex",alignItems:"center",minHeight:n.sizes.smallElementHeight})),StyledContent=styled("div",{target:"eczd22r1"})(({visibility:n})=>({display:n===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:n===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(n,i){switch(n){case streamlit.GapSize.XXSMALL:return i.spacing.twoXS;case streamlit.GapSize.XSMALL:return i.spacing.sm;case streamlit.GapSize.SMALL:return i.spacing.lg;case streamlit.GapSize.MEDIUM:return i.spacing.threeXL;case streamlit.GapSize.LARGE:return i.spacing.fourXL;case streamlit.GapSize.XLARGE:return i.spacing.fiveXL;case streamlit.GapSize.XXLARGE:return i.spacing.sixXL;case streamlit.GapSize.NONE:return i.spacing.none;default:return i.spacing.lg}}const StyledSpace=styled("div",{target:"e12zf7d50"})({width:"100%",height:"100%"}),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=styled("div",{target:"e12zf7d51"})(({theme:n,isStale:i,width:t,height:e,elementType:o,overflow:d,flex:p,minWidth:h,textAlign:y})=>({width:t,height:e,textAlign:y,maxWidth:"100%",minWidth:t==="0px"?0:h??"1rem",position:"relative",overflow:d,flex:p,"@media print":{overflow:"visible"},":has(> .stCacheSpinner)":{height:n.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${n.spacing.lg}
119`,zIndex:n.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${n.spacing.xs}`,marginBottom:`-${n.spacing.xs}`},...i&&o!=="skeleton"&&STALE_STYLES,...o==="empty"?{display:"none"}:{},...o==="space"?{minWidth:0,minHeight:0}:{},...GLOBAL_ELEMENTS.includes(o)?{marginBottom:`-${n.spacing.lg}`}:{}})),StyledColumn=styled("div",{target:"e12zf7d52"})(({theme:n,weight:i,gap:t,showBorder:e,verticalAlignment:o})=>{const{VerticalAlignment:d}=Block$1.Column,p=i*100,h=translateGapWidth(t,n),y=h===n.spacing.none?`${p}%`:`calc(${p}% - ${h})`;return{width:y,flex:`1 1 ${y}`,[`@media (max-width: ${n.breakpoints.columns})`]:{minWidth:`calc(100% - ${n.spacing.twoXL})`},...o===d.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox}`]:{marginBottom:n.spacing.sm}},...o===d.TOP&&{[`& ${StyledElementContainer}:first-of-type > ${StyledCheckbox}`]:{marginTop:n.spacing.sm}},...o===d.CENTER&&{marginTop:"auto",marginBottom:"auto"},...e&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`}}}),getAlignItems=n=>{switch(n){case Block$1.FlexContainer.Align.ALIGN_START:return"start";case Block$1.FlexContainer.Align.ALIGN_CENTER:return"center";case Block$1.FlexContainer.Align.ALIGN_END:return"end";case Block$1.FlexContainer.Align.STRETCH:return"stretch";case Block$1.FlexContainer.Align.ALIGN_UNDEFINED:case void 0:case null:return"stretch";default:assertNever(n)}},getJustifyContent=n=>{switch(n){case Block$1.FlexContainer.Justify.JUSTIFY_START:return"start";case Block$1.FlexContainer.Justify.JUSTIFY_CENTER:return"center";case Block$1.FlexContainer.Justify.JUSTIFY_END:return"end";case Block$1.FlexContainer.Justify.SPACE_BETWEEN:return"space-between";case Block$1.FlexContainer.Justify.JUSTIFY_UNDEFINED:case void 0:case null:return"start";default:assertNever(n)}},StyledFlexContainerBlock=styled("div",{target:"e12zf7d53"})(({theme:n,direction:i,gap:t,flex:e,$wrap:o,height:d,border:p,align:h,justify:y,overflow:E})=>{let $;return t!==void 0&&($=translateGapWidth(t,n)),{display:"flex",gap:$,width:"100%",maxWidth:"100%",height:d??"auto",minWidth:"1rem",flexDirection:i,flex:e,alignItems:getAlignItems(h),justifyContent:getJustifyContent(y),flexWrap:o?"wrap":"nowrap",...p&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},overflow:E}}),StyledLayoutWrapper=styled("div",{target:"e12zf7d54"})(({width:n,height:i,flex:t})=>({display:"flex",flexDirection:"column",width:n,maxWidth:"100%",minWidth:"1rem",he
119ight:i,flex:t})),StyledElementContainerLayoutWrapper=({node:n,config:i,...t})=>{const{isInHorizontalLayout:e}=useRequiredContext(FlexContext),o=reactExports.useMemo(()=>i.computeStyleOverrides(),[i]),d=reactExports.useMemo(()=>i.getMinStretchBehavior(),[i]);let p=useLayoutStyles({element:n.element,subElement:n.element?.type&&n.element[n.element.type]||void 0,styleOverrides:o,minStretchBehavior:d});return n.element.type==="space"&&(e?p={...p,height:"auto"}:p={...p,width:"auto"}),jsx$1(StyledElementContainer,{...t,...p})},ElementContainer=({node:n,config:i,isStale:t,children:e})=>{const{isFullScreen:o}=reactExports.useContext(ViewStateContext),d=n.element.type||"",p=getElementId(n.element),h=getKeyFromId(p);return jsx$1(StyledElementContainerLayoutWrapper,{className:classNames("stElementContainer","element-container",convertKeyToClassName(h)),"data-testid":"stElementContainer","data-stale":t,isStale:t&&!o,elementType:d,node:n,config:i,children:jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:e})})})};var MinStretchWidth=(function(n){return n.LARGE="14rem",n.MEDIUM="8rem",n.FIT_CONTENT="fit-content",n.NONE="none",n})({});const Mn=class Mn{constructor(i={}){this.minStretchWidth=i.minStretchWidth??"none",this.styleOverrides=i.styleOverrides}with(i){return new Mn({minStretchWidth:i.minStretchWidth??this.minStretchWidth,styleOverrides:i.styleOverrides!==void 0?{...this.styleOverrides,...i.styleOverrides}:this.styleOverrides})}computeStyleOverrides(){return this.styleOverrides??{}}getMinStretchBehavior(){return this.minStretchWidth==="none"?void 0:this.minStretchWidth}};Mn.DEFAULT=new Mn({}),Mn.LARGE_ELEMENT=new Mn({minStretchWidth:"14rem"}),Mn.MEDIUM_ELEMENT=new Mn({minStretchWidth:"8rem"}),Mn.FIT_CONTENT_ELEMENT=new Mn({minStretchWidth:"fit-content"}),Mn.FULL_WIDTH=new Mn({styleOverrides:{width:"100%"}}),Mn.LARGE_OVERFLOW_VISIBLE=new Mn({minStretchWidth:"14rem",styleOverrides:{overflow:"visible"}});let ElementContainerConfig=Mn;const Table=reactExports.lazy(()=>__vitePreload(()=>import("./index.QoWGbfHY.js"),__vite__mapDeps([7,8,9,10,11]),import.meta.url)),ArrowVegaLiteChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.CPOVXAqE.js"),__vite__mapDeps([12,13,14,15,9,8,10,11,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]),import.meta.url)),Audio=reactExports.lazy(()=>__vitePreload(()=>import("./index.C1r_wFiL.js"),[],import.meta.url)),Balloons=reactExports.lazy(()=>__vitePreload(()=>import("./index.CcjR1fei.js"),__vite__mapDeps([33,34]),import.meta.url)),DeckGlJsonChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.DB3cirPN.js"),__vite__mapDeps([35,19,13,16,36,15,29,30,37]),import.meta.url)),GraphVizChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bm9WNoRG.js"),__vite__mapDeps([38,31,30,13]),import.meta.url)),Html=reactExports.lazy(()=>__vitePreload(()=>import("./index.BQ4RSzjA.js"),[],import.meta.url)),IFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.D-pXX8oD.js"),__vite__mapDeps([39,40]),import.meta.url)),ImageList=reactExports.lazy(()=>__vitePreload(()=>import("./index.B2CSVIMq.js"),__vite__mapDeps([41,13]),import.meta.url)),Json=reactExports.lazy(()=>__vitePreload(()=>import("./index.QuFQzJQa.js"),__vite__mapDeps([42,16,17]),import.meta.url)),LinkButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bs7O7xlZ.js"),__vite__mapDeps([43,44]),import.meta.url)),Metric=reactExports.lazy(()=>__vitePreload(()=>import("./index.DsuyX5yy.js"),__vite__mapDeps([45,28,29,30,31,46,47,20,10,21]),import.meta.url)),PageLink=reactExports.lazy(()=>__vitePreload(()=>import("./index.CUHTygOq.js"),__vite__mapDeps([48,44]),import.meta.url)),PlotlyChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.CFT5eRxg.js"),__vite__mapDeps([49,13,15]),import.meta.url)),Progress=reactExports.lazy(()=>__vitePreload(()=>import("./index.nYKO25KK.js"),__vite__mapDeps([50,51]),import.meta.url)),Snow=reactExports.lazy(()=>__vitePreload(()=>import("./index.kXCto5Ak.js"),__vite__mapDeps([52,34]),import.meta.url)),Spinner=reactExports.lazy(()=>__vitePreload(()=>import("./index.CcxyijN-.js"),[],import.meta.url)),StreamlitSyntaxHighlighter=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.CmYHPzGN.js"),__vite__mapDeps([6,2]),import.meta.url)),Toast=reactExports.lazy(()=>__vitePreload(()=>import("./index.CcE6gXBD.js"),[],import.meta.url)),Video=reactExports.lazy(()=>__vitePreload(()=>import("./index.CP_ssEFc.js"),[],import.meta.url)),AudioInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.1IrZS67d.js"),__vite__mapDeps([53,54,55,47,56,15,24,57,25]),import.meta.url)),ArrowDataFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bp77YmrU.js").then(n=>n.c),__vite__mapDeps([14,13,15,9,8,10,11,16,17,18,19,20,21,22,23,24,25,26,27]
119),import.meta.url)),Button=reactExports.lazy(()=>__vitePreload(()=>import("./index.T5irKb0S.js"),__vite__mapDeps([58,44]),import.meta.url)),ButtonGroup=reactExports.lazy(()=>__vitePreload(()=>import("./index.ChYfdYui.js"),__vite__mapDeps([59,55,47,46,36,15]),import.meta.url)),ComponentInstance=reactExports.lazy(()=>__vitePreload(()=>import("./index.CgfiYehZ.js"),__vite__mapDeps([60,61,57,40]),import.meta.url).then(n=>({default:n.ComponentInstance}))),CameraInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BNE2eeVb.js"),__vite__mapDeps([62,55,47,56,63,15,51,57]),import.meta.url)),ChatInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.C8WIeHtn.js"),__vite__mapDeps([64,65,63,54,66,47,67,68,69,70,32,71]),import.meta.url)),Checkbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.BWFOPccf.js"),__vite__mapDeps([72,46,47,36,15,23]),import.meta.url)),ColorPicker=reactExports.lazy(()=>__vitePreload(()=>import("./index.BUxTm3ny.js"),__vite__mapDeps([73,36,15,74,18,55,47,46]),import.meta.url)),DateInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.iF-Qef9B.js"),__vite__mapDeps([75,9,55,47,56,36,15,76,77,69,78,79,68,71]),import.meta.url)),DateTimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.FD1w16DF.js"),__vite__mapDeps([80,9,55,47,56,76,77,69,78,79,68,36,15,81,82,71]),import.meta.url)),DownloadButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.BI059Dt9.js"),__vite__mapDeps([83,44,24]),import.meta.url)),Feedback=reactExports.lazy(()=>__vitePreload(()=>import("./index.dbP_zL9N.js"),__vite__mapDeps([84,36,15]),import.meta.url)),FileUploader=reactExports.lazy(()=>__vitePreload(()=>import("./index.ByklcDol.js"),__vite__mapDeps([85,55,47,56,15,65,63,51]),import.meta.url)),FormSubmitContent=reactExports.lazy(()=>__vitePreload(()=>import("./index.CwmCIkxv.js"),__vite__mapDeps([86,44,15]),import.meta.url).then(n=>({default:n.FormSubmitContent}))),Multiselect=reactExports.lazy(()=>__vitePreload(()=>import("./index.DhO30g6h.js"),__vite__mapDeps([87,88,82,77,69,74,5
1195,47,56,36,15,26,11]),import.meta.url)),NumberInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.XUdY5jN6.js"),__vite__mapDeps([89,66,47,55,56,36,15,21,90,79,68,69]),import.meta.url)),Radio=reactExports.lazy(()=>__vitePreload(()=>import("./index.EtzA3yZB.js"),__vite__mapDeps([91,55,47,46,36,15]),import.meta.url)),Selectbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.C1Y0t3IF.js"),__vite__mapDeps([92,88,82,77,69,74,55,47,56,36,15]),import.meta.url)),Slider=reactExports.lazy(()=>__vitePreload(()=>import("./index.CeipAcnQ.js"),__vite__mapDeps([93,9,61,55,47,56,36,15,22,20,10,21]),import.meta.url)),TextArea=reactExports.lazy(()=>__vitePreload(()=>import("./index.DZtWAdL_.js"),__vite__mapDeps([94,66,47,55,56,36,15,95,70,67,68,69,90]),import.meta.url)),TextInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DLPgdyUk.js"),__vite__mapDeps([96,66,47,55,56,36,15,95,70,90,79,68,69]),import.meta.url)),TimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.Didtakpp.js"),__vite__mapDeps([97,81,82,77,69,55,47,56,36,15,78]),import.meta.url)),BidiComponent=reactExports.lazy(()=>__vitePreload(()=>import("./index.BOtk_OgO.js"),[],import.meta.url));function hideIfStale(n,i){return n?jsx$1(Fragment,{}):i}const RawElementNodeRenderer=n=>{const{node:i,isStale:t}=n,{isInRoot:e,isInHorizontalLayout:o}=useRequiredContext(FlexContext);if(!i)throw new Error("ElementNode not found.");const d={disableFullscreenMode:n.disableFullscreenMode,widthConfig:i.element.widthConfig,heightConfig:i.element.heightConfig},p={...d,widgetMgr:n.widgetMgr,disabled:n.widgetsDisabled,fragmentId:i.fragmentId,componentRegistry:n.componentRegistry};switch(i.element.type){case"alert":{const h=i.element.alert;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(AlertElement$1,{icon:h.icon,body:h.body,kind:getAlertElementKind(h.format),...d})})}case"table":{const h=i.element.table;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(Table,{element:h,data:i.quiverElement,...d})})}case"audio":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(Audio,{element:i.element.audio,endpoints:n.endpoints,...d,elementMgr:n.widgetMgr})});case"balloons":return hideIfStale(t,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Balloons,{scriptRunId:i.scriptRunId})}));case"code":{const h=i.element.code;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(StreamlitSyntaxHighlighter,{language:h.language,showLineNumbers:h.showLineNumbers,wrapLines:h.wrapLines,children:h.codeText})})}case"deckGlJsonChart":{const h=i.element.deckGlJsonChart;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_OVERFLOW_VISIBLE,isStale:t,children:jsx$1(DeckGlJsonChart,{element:h,...p},h.id||void 0)})}case"helpInfo":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(Help$1,{element:i.element.helpInfo,...d})});case"empty":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"})});case"exception":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(ExceptionElement$1,{element:i.element.exception,...d})});case"graphvizChart":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_OVERFLOW_VISIBLE,isStale:t,children:jsx$1(GraphVizChart,{element:i.element.graphvizChart,...d})});case"heading":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Heading,{element:i.element.heading,...d})});case"iframe":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_OVERFLOW_VISIBLE,isStale:t,children:jsx$1(IFrame,{element:i.element.iframe,...d})});case"imgs":{const y=!i.element.widthConfig||i.element.widthConfig.useStretch?ElementContainerConfig.FULL_WIDTH:new ElementContainerConfig({styleOverrides:{width:"auto"}});return jsx$1(ElementContainer,{node:i,config:y,isStale:t,children:jsx$1(ImageList,{element:i.element.imgs,endpoints:n.endpoints,...d})})}case"json":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(Json,{element:i.element.json,...d})});case"markdown":{const h=i.element.widthConfig?ElementContainerConfig.DEFAULT:o?new ElementContainerConfig({styleOverrides:{width:"fit-content"}}):ElementContainerConfig.FULL_WIDTH;return jsx$1(ElementContainer,{node:i,config:h,isStale:t,children:jsx$1(Markdown$1,{element:i.element.markdown,...d})})}case"metric":{const h=i.element.metric,y=h.chartData&&h.chartData.length>0;return jsx$1(ElementContainer,{node:i,config:y?ElementContainerConfig.LARGE_ELEMENT:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Metric,{element:h,...d})})}case"html":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Html,{element:i.element.html,...d})});case"pageLink":{const h=i.element.pageLink,y=p.disabled||h.disabled;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(PageLink,{element:h,disabled:y,...d})})}case"progress":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(Progress,{element:i.element.progress,...d})});case"skeleton":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.FULL_WIDTH,isStale:t,children:jsx$1(Skeleton,{element:i.element.skeleton})});case"snow":return hideIfStale(t,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Snow,{scriptRunId:i.scriptRunId})}));case"space":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(StyledSpace,{className:"stSpace","data-testid":"stSpace"})});case"spinner":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Spinner,{element:i.element.spinner,...d})});case"text":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(TextElement$1,{element:i.element.text,...d})});case"video":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(Video,{element:i.element.video,endpoints:n.endpoints,...d,elementMgr:n.widgetMgr})});case"toast":{const h=i.element.toast;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Toast,{element:h,...d},i.scriptRunId)})}case"dataframe":{const h=i.element.dataframe;p.disabled=p.disabled||h.disabled;const E=i.element.widthConfig?.useContent&&e?new ElementContainerConfig({minStretchWidth:MinStretchWidth.LARGE,styleOverrides:{overflow:"visible",width:"100%"}}):ElementContainerConfig.LARGE_OVERFLOW_VISIBLE;return jsx$1(ElementContainer,{node:i,config:E,isStale:t,children:jsx$1(ArrowDataFrame,{element:h,data:i.quiverElement,...p},h.id||void 0)})}case"vegaLiteChart":{const h=i.vegaLiteChartElement,y=i.element.widthConfig?.useContent&&e,E=o&&!i.element.widthConfig,$=y||E?new ElementContainerConfig({minStretchWidth:MinStretchWidth.LARGE,styleOverrides:{overflow:"visible",...y&&{width:"100%"},...E&&{flex:"1 1 14rem"}}}):ElementContainerConfig.LARGE_OVERFLOW_VISIBLE;return jsx$1(ElementContainer,{node:i,config:$,isStale:t,children:jsx$1(ArrowVegaLiteChart,{element:h,...p},h.id||void 0)})}case"audioInput":{const h=i.element.audioInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(AudioInput,{uploadClient:n.uploadClient,element:h,...p},h.id)})}case"button":{const h=i.element.button;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:h.isFormSubmitter?jsx$1(FormSubmitContent,{element:h,...p}):jsx$1(Button,{element:h,...p})})}case"buttonGroup":{const h=i.element.buttonGroup;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(ButtonGroup,{element:h,...p},h.id)})}case"downloadButton":{const h=i.element.downloadButton;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(DownloadButton,{endpoints:n.endpoints,element:h,...p},h.id)})}case"feedback":{const h=i.element.feedback;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.FIT_CONTENT_ELEMENT,isStale:t,children:jsx$1(Feedback,{element:h,...p},h.id)})}case"cameraInput":{const h=i.element.cameraInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(CameraInput,{element:h,uploadClient:n.uploadClient,...p},h.id)})}
119case"chatInput":{const h=i.element.chatInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(ChatInput,{element:h,uploadClient:n.uploadClient,...p},h.id)})}case"checkbox":{const h=i.element.checkbox;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(Checkbox,{element:h,...p},h.id)})}case"colorPicker":{const h=i.element.colorPicker;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(ColorPicker,{element:h,...p},h.id)})}case"componentInstance":return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.FULL_WIDTH,isStale:t,children:jsx$1(ComponentInstance,{element:i.element.componentInstance,...p})});case"dateInput":{const h=i.element.dateInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(DateInput,{element:h,...p},h.id)})}case"fileUploader":{const h=i.element.fileUploader;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(FileUploader,{element:h,uploadClient:n.uploadClient,...p},h.id)})}case"linkButton":{const h=i.element.linkButton;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(LinkButton,{element:h,...d})})}case"multiselect":{const h=i.element.multiselect;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(Multiselect,{element:h,...p},h.id)})}case"numberInput":{const h=i.element.numberInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(NumberInput,{element:h,...p},h.id)})}case"plotlyChart":{const h=i.element.plotlyChart;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.LARGE_ELEMENT,isStale:t,children:jsx$1(PlotlyChart,{element:h,...p},h.id)})}case"radio":{const h=i.element.radio;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(Radio,{element:h,...p},h.id)})}case"selectbox":{const h=i.element.selectbox;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(Selectbox,{element:h,...p},h.id)})}case"slider":{const h=i.element.slider;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(Slider,{element:h,...p},h.id)})}case"textArea":{const h=i.element.textArea;p.disabled=p.disabled||h.disabled;const y=i.element.heightConfig?.useStretch,E=new ElementContainerConfig({minStretchWidth:MinStretchWidth.MEDIUM,styleOverrides:y?{height:"100%",flex:"1 1 8rem"}:{height:"auto",...o?{}:{flex:""}}});return jsx$1(ElementContainer,{node:i,config:E,isStale:t,children:jsx$1(TextArea,{element:h,outerElement:i.element,...p},h.id)})}case"textInput":{const h=i.element.textInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(TextInput,{element:h,...p},h.id)})}case"dateTimeInput":{const h=i.element.dateTimeInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(DateTimeInput,{element:h,...p},h.id)})}case"timeInput":{const h=i.element.timeInput;return p.disabled=p.disabled||h.disabled,jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.MEDIUM_ELEMENT,isStale:t,children:jsx$1(TimeInput,{element:h,...p},h.id)})}case"bidiComponent":{const h=i.element.bidiComponent;return jsx$1(ElementContainer,{node:i,config:ElementContainerConfig.DEFAULT,isStale:t,children:jsx$1(BidiComponent,{element:h,...p},h.id)})}default:throw new Error(`Unrecognized Element type ${i.element.type}`)}},ElementNodeRenderer=n=>{const{scriptRunState:i,scriptRunId:t,fragmentIdsThisRun:e}=reactExports.useContext(ScriptRunContext),{node:o}=n,d=o.element.type||"",p=shouldComponentBeEnabled(d,i),h=isComponentStale(p,o,i,t,e);return jsx$1(Maybe,{enable:p,children:jsx$1(RawElementNodeRenderer,{...n,isStale:h})})};class RenderNodeVisitor{constructor(i,t){this.props=i,this.elementKe
119yOverride=t,this.elementKeySet=new Set,this.reactElements=[],this.index=0,this.transientElementCount=0}getCurrentKey(i){return this.elementKeyOverride||i||this.index.toString()}conformToArray(i){return i?Array.isArray(i)?i:[i]:[]}visitBlockNode(i){const t={...this.props,node:i},e=this.getCurrentKey();this.index+=1;const o=jsx$1(BlockNodeRenderer,{...t},e);return this.reactElements.push(o),o}visitTransientNode(i){const t=[];i.transientNodes.forEach(o=>{const d=this.getCurrentKey(`transient-${this.transientElementCount}`);this.transientElementCount+=1;const p=o.accept(new RenderNodeVisitor(this.props,d));t.push(...this.conformToArray(p))}),this.reactElements.push(...t);const e=i.anchor?.accept(this);return t.push(...this.conformToArray(e)),t}visitElementNode(i){const t={...this.props,node:i},e=this.getCurrentKey(getElementId(i.element));if(this.index+=1,this.elementKeySet.has(e))return null;this.elementKeySet.add(e);const o=jsx$1(ElementNodeRenderer,{...t},e);return this.reactElements.push(o),o}static collectReactElements(i){if(!i.node.children)return[];const t=new RenderNodeVisitor(i);return i.node.children.forEach(e=>e.accept(t)),t.reactElements}}const ChildRenderer=n=>(assignDividerColor(n.node,useEmotionTheme()),jsx$1(Fragment,{children:RenderNodeVisitor.collectReactElements(n)})),getLayoutSubElement=n=>{const i=n.type,t=i?n[i]:void 0;if(!t||typeof t!="object")return;const e=t,o={useContainerWidth:e.useContainerWidth,height:e.height,width:e.width,widthConfig:e.widthConfig};if(!(o.useContainerWidth===void 0&&o.height===void 0&&o.width===void 0&&o.widthConfig===void 0))return o},ContainerContentsWrapper=n=>{const i=reactExports.useContext(FlexContext),t={direction:Direction.VERTICAL,flex:1,gap:streamlit.GapSize.SMALL,height:n.height,border:!1},e=getKeyFromId(n.node.deltaBlock.id);return jsx$1(FlexContextProvider,{direction:Direction.VERTICAL,isRoot:n.isRoot,parentContext:i,children:jsx$1(StyledFlexContainerBlock,{...t,className:classNames(getClassnamePrefix(Direction.VERTICAL),convertKeyToClassName(e)),"data-testid":getClassnamePrefix(Direction.VERTICAL),children:jsx$1(ChildRenderer,{...n})})})},FlexBoxContainer=n=>{const i=getDirectionOfBlock(n.node.deltaBlock),t=reactExports.useContext(FlexContext),e=shouldActivateScrollToBottom(n.node),o=useScrollToBottom(e),d=useLayoutStyles({element:n.node.deltaBlock,subElement:getLayoutSubElement(n.node.deltaBlock)}),p={gap:n.node.deltaBlock.flexContainer?.gapConfig?.gapSize??streamlit.GapSize.SMALL,direction:i,$wrap:n.node.deltaBlock.flexContainer?.wrap??!1,overflow:d.overflow,border:getBorderBackwardsCompatible(n.node.deltaBlock),height:d.height,flex:"1",align:n.node.deltaBlock.flexContainer?.align,justify:n.node.deltaBlock.flexContainer?.justify},h=getKeyFromId(n.node.deltaBlock.id),y=n.node.deltaBlock.widthConfig?.pixelWidth??void 0,E=n.node.deltaBlock.widthConfig?.useContent??!1,$=(n.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(n.node.deltaBlock.widthConfig?.remWidth??0)>0;return jsx$1(FlexContextProvider,{direction:i,parentWidth:y,hasContentWidth:E,hasFixedWidth:$,parentContext:t,children:jsx$1(StyledFlexContainerBlock,{...p,className:classNames(getClassnamePrefix(i),convertKeyToClassName(h)),"data-testid":getClassnamePrefix(i),ref:o,"data-test-scroll-behavior":e?"scroll-to-bottom":"normal",children:jsx$1(ChildRenderer,{...n})})})},LARGE_STRETCH_BEHAVIOR=["tabContainer"],MEDIUM_STRETCH_BEHAVIOR=["chatInput"],BlockNodeRenderer=n=>{const{node:i}=n,{scriptRunState:t,scriptRunId:e,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext);let d;LARGE_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="14rem":MEDIUM_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="8rem":i.deltaBlock.type==="chatMessage"?i.isEmpty&&(d="8rem"):(i.deltaBlock.type==="flexContainer"||i.deltaBlock.column||i.deltaBlock.expandable)&&(i.isEmpty||(d="8rem"));const p=useLayoutStyles({element:i.deltaBlock,subElement:getLayoutSubElement(i.deltaBlock),minStretchBehavior:d});if(i.isEmpty&&!i.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const h=shouldComponentBeEnabled("",t),y=isComponentStale(h,i,t,e,o),E={...n,node:i},$=n.disableFullscreenMode||notNullOrUndefined(i.deltaBlock.dialog)||notNullOrUndefined(i.deltaBlock.popover);let M;const X=jsx$1(ContainerContentsWrapper,{...E,disableFullscreenMode:$,height:"100%"});if(checkFlexContainerBackwardsCompatibile(i.deltaBlock)&&(M=jsx$1(FlexBoxContainer,{...E})),i.deltaBlock.dialog)return jsx$1(Dialog$1,{element:i.deltaBlock.dialog,deltaMsgReceivedAt:i.deltaMsgReceivedAt,widgetMgr:n.widgetMgr,fragmentId:i.fragmentId,children:X});if(i.deltaBlock.expandable&&(M=jsx$1(Expander$1,{isStale:y,element:i.deltaBlock.expandable,widgetMgr:n.widgetMgr,blockId:i.deltaBlock.id||void 0,fragmentId:i.fragmentId,children:X})),i.deltaBlock.popover&&(M=jsx$1(Popover$1,{empty:i.isEmpty,element:i.deltaBlock.popover,stretchWidth:shouldWidthStretch(i.deltaBlock.widthConfig),widgetMgr:n.widgetMgr,fragmentId:i.fragmentId,children:X})),i.deltaBlock.type==="form"){const{formId:Z,clearOnSubmit:ye,enterToSubmit:be,border:we}=i.deltaBlock.form;M=jsx$1(Form$1,{formId:Z,clearOnSubmit:ye,enterToSubmit:be,widgetMgr:n.widgetMgr,border:we,overflow:p.overflow,children:X})}if(i.deltaBlock.chatMessage&&(M=jsx$1(ChatMessage$1,{element:i.deltaBlock.chatMessage,endpoints:n.endpoints,children:X})),i.deltaBlock.column)return jsx$1(StyledColumn,{weight:i.deltaBlock.column.weight??0,gap:getColumnGapSize(i.deltaBlock.column),verticalAlignment:i.deltaBlock.column.verticalAlignment??void 0,showBorder:i.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stC
119olumn",children:X});if(i.deltaBlock.tabContainer){const ye={...E,isStale:y,renderTabContent:be=>jsx$1(ContainerContentsWrapper,{...be,height:"auto"}),width:p.width,flex:p.flex,fragmentId:i.fragmentId};return jsx$1(Tabs$1,{...ye})}return M?jsx$1(StyledLayoutWrapper,{"data-testid":"stLayoutWrapper",...p,children:M}):X},DownloadContext=reactExports.createContext({requestDeferredFile:void 0});DownloadContext.displayName="DownloadContext";const NavigationContext=reactExports.createContext({pageLinkBaseUrl:"",currentPageScriptHash:"",onPageChange:()=>{},navSections:[],appPages:[]});NavigationContext.displayName="NavigationContext";const StyledDataFrameOverlay=styled("div",{target:"eaoz1g71"})(({theme:n})=>({position:"fixed",top:0,left:0,zIndex:n.zIndices.tablePortal,lineHeight:"100%",...!hasLightBackgroundColor(n)&&{"& input[type='date'], & input[type='time'], & input[type='datetime-local']":{"&::-webkit-calendar-picker-indicator":{filter:"brightness(0) invert(1)",opacity:1}}}})),StyledErrorMessage=styled("small",{target:"eaoz1g72"})(({theme:n})=>({color:n.colors.redTextColor,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,display:"block"})),PortalContext=reactExports.createContext(null);PortalContext.displayName="PortalContext";const PortalProvider=({children:n})=>{const i=reactExports.useRef(null),t=reactExports.useCallback(()=>i.current,[]);return jsxs(PortalContext.Provider,{value:t,children:[n,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:i})]})},SidebarConfigContext=reactExports.createContext({initialSidebarState:PageConfig.SidebarState.AUTO,appLogo:null,sidebarChevronDownshift:0,expandSidebarNav:!1,hideSidebarNav:!1});SidebarConfigContext.displayName="SidebarConfigContext";const ThemeContext=reactExports.createContext({activeTheme:getDefaultTheme(),setTheme:()=>{},availableThemes:[]});ThemeContext.displayName="ThemeContext";function ThemeProvider({theme:n,baseuiTheme:i,children:t}){return jsx$1(ThemeProvider$1,{theme:i||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:n,children:t})})}function ToolbarAction({label:n,show_label:i,icon:t,onClick:e}){const o=useEmotionTheme(),d=i?n:"";return jsx$1("div",{"data-testid":"stElementToolbarButton",children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,style:{fontSize:o.fontSizes.sm}}),placement:Placement.TOP,onMouseEnterDelay:1e3,inline:!0,children:jsxs(BaseButton,{onClick:p=>{e&&e(),p.stopPropagation()},kind:BaseButtonKind.ELEMENT_TOOLBAR,"aria-label":n,children:[t&&jsx$1(Icon$2,{content:t,size:"md",testid:"stElementToolbarButtonIcon"}),d&&jsx$1("span",{children:d})]})})})}const Toolbar=({onExpand:n,onCollapse:i,isFullScreen:t,locked:e,children:o,target:d,disableFullscreenMode:p})=>jsx$1(StyledToolbarWrapper,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:e||t,target:d,children:jsxs(StyledToolbar,{"data-testid":"stElementToolbarButtonContainer",children:[o,n&&!p&&!t&&jsx$1(ToolbarAction,{label:"Fullscreen",icon:Fullscreen,onClick:()=>n()}),i&&!p&&t&&jsx$1(ToolbarAction,{label:"Close fullscreen",icon:FullscreenExit,onClick:()=>i()})]})});function CodeBlockCopyToolbar({text:n}){const{isCopied:i,copyToClipboard:t,label:e}=useCopyToClipboard(),o=reactExports.useCallback(()=>{t(n)},[t,n]);return jsx$1(StyledCodeToolbarWrapper,{children:jsx$1(StyledCodeToolbar,{children:jsx$1(ToolbarAction,{label:e,icon:i?Check:ContentCopy,onClick:o})})})}const CodeBlockCopyToolbar$1=reactExports.memo(CodeBlockCopyToolbar);function StreamlitErrorCodeBlock({children:n}){const i=typeof n=="string"&&n.trim().length>0;return jsxs(StyledCodeBlock,{className:"stErrorCodeBlock","data-testid":"stErrorCodeBlock",tabIndex:i?0:void 0,children:[jsx$1(StyledPre,{wrapLines:!1,children:jsx$1(StyledCode,{wrapLines:!1,children:n})}),i&&jsx$1(CodeBlockCopyToolbar$1,{text:n})]})}const StreamlitErrorCodeBlock$1=reactExports.memo(StreamlitErrorCodeBlock);function iconToUrl(n){const i=/^:(.+)\/(.+):$/,t=n.match(i);return t===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${t[2]}/default/24px.svg`}function handleFavicon(n,i,t){const e=p=>{overwriteFavicon(p),i({type:"SET_PAGE_FAVICON",favicon:p})};if(n.startsWith(":material")){e(iconToUrl(n));return}const o="emoji:";if(n.startsWith(o)){const p=n.substring(o.length),h=createEmojiDataUrl(p);e(h);return}/^:[a-zA-Z0-9_+-]+:$/.test(n)?convertShortcodeToEmoji(n).then(p=>{e(p?createEmojiDataUrl(p):t.buildMediaURL(n))}).catch(()=>{e(t.buildMediaURL(n))}):e(t.buildMediaURL(n))}function createEmojiDataUrl(n){return`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>${n}</text></svg>`}function overwriteFavicon(n){const i=document.querySelector("link[rel='shortcut icon']");i&&(i.href=n)}async function convertShortcodeToEmoji(n){const i=await __vitePreload(()=>import("./index.DXhUW__N.js"),[],import.meta.url),t=n.replace(/-/g,"_"),e=i.get(t);return e&&e!==t&&i.has(e)?e:""}function _assertThisInitialized(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}const WindowDimensionsContext=reactExports.createContext(null);WindowDimensionsContext.displayName="WindowDimensionsContext";const useWindowDimensionsContext=()=>useRequiredContext(WindowDimensionsContext),measureScrollbarGutterSize=()=>{const n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.left="-9999px",n.style.visibility="hidden",n.style.overflow="scroll",n.style.width="50px",n.style.height="50px",document.body.appendChild(n);const i=document.createElement("div");
vendor: 5,507 bytes, line 119
119i.style.width="100%",i.style.height="100%",n.appendChild(i);const t=n.offsetWidth-i.offsetWidth;return n.remove(),t},useScrollbarGutterSize=()=>{const n=window.devicePixelRatio;return reactExports.useMemo(()=>measureScrollbarGutterSize(),[n])};var uaParser$1={exports:{}},uaParser=uaParser$1.exports,hasRequiredUaParser;function requireUaParser(){return hasRequiredUaParser||(hasRequiredUaParser=1,(function(n,i){(function(t,e){var o="1.0.41",d="",p="?",h="function",y="undefined",E="object",$="string",M="major",X="model",Z="name",ye="type",be="vendor",we="version",xe="architecture",$e="console",Ne="mobile",Fe="tablet",De="smarttv",Le="wearable",He="embedded",Ke=500,je="Amazon",Ve="Apple",qe="ASUS",Ye="BlackBerry",et="Browser",Qe="Chrome",ze="Edge",st="Firefox",at="Google",tt="Honor",pt="Huawei",Be="Lenovo",Ge="LG",it="Microsoft",Ue="Motorola",Ot="Nvidia",Rt="OnePlus",dt="Opera",Tt="OPPO",ht="Samsung",Ft="Sharp",zt="Sony",$t="Xiaomi",Yt="Zebra",ln="Facebook",Qt="Chromium OS",kn="Mac OS",en=" Browser",Gt=function(Et,Vt){var wt={};for(var rt in Et)Vt[rt]&&Vt[rt].length%2===0?wt[rt]=Vt[rt].concat(Et[rt]):wt[rt]=Et[rt];return wt},on=function(Et){for(var Vt={},wt=0;wt<Et.length;wt++)Vt[Et[wt].toUpperCase()]=Et[wt];return Vt},Wt=function(Et,Vt){return typeof Et===$?tn(Vt).indexOf(tn(Et))!==-1:!1},tn=function(Et){return Et.toLowerCase()},vn=function(Et){return typeof Et===$?Et.replace(/[^\d\.]/g,d).split(".")[0]:e},Rn=function(Et,Vt){if(typeof Et===$)return Et=Et.replace(/^\s\s*/,d),typeof Vt===y?Et:Et.substring(0,Ke)},dn=function(Et,Vt){for(var wt=0,rt,lt,ct,yt,ft,At;wt<Vt.length&&!ft;){var qt=Vt[wt],rn=Vt[wt+1];for(rt=lt=0;rt<qt.length&&!ft&&qt[rt];)if(ft=qt[rt++].exec(Et),ft)for(ct=0;ct<rn.length;ct++)At=ft[++lt],yt=rn[ct],typeof yt===E&&yt.length>0?yt.length===2?typeof yt[1]==h?this[yt[0]]=yt[1].call(this,At):this[yt[0]]=yt[1]:yt.length===3?typeof yt[1]===h&&!(yt[1].exec&&yt[1].test)?this[yt[0]]=At?yt[1].call(this,At,yt[2]):e:this[yt[0]]=At?At.replace(yt[1],yt[2]):e:yt.length===4&&(this[yt[0]]=At?yt[3].call(this,At.replace(yt[1],yt[2])):e):this[yt]=At||e;wt+=2}},_n=function(Et,Vt){for(var wt in Vt)if(typeof Vt[wt]===E&&Vt[wt].length>0){for(var rt=0;rt<Vt[wt].length;rt++)if(Wt(Vt[wt][rt],Et))return wt===p?e:wt}else if(Wt(Vt[wt],Et))return wt===p?e:wt;return Vt.hasOwnProperty("*")?Vt["*"]:Et},Kt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ut={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},vt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[we,[Z,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[we,[Z,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Z,we],[/opios[\/ ]+([\w\.]+)/i],[we,[Z,dt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[we,[Z,dt+" GX"]],[/\bopr\/([\w\.]+)/i],[we,[Z,dt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[we,[Z,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[we,[Z,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[Z,we],[/quark(?:pc)?\/([-\w\.]+)/i],[we,[Z,"Quark"]],[/\bddg\/([\w\.]+)/i],[we,[Z,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[we,[Z,"UC"+et]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[we,[Z,"WeChat"]],[/konqueror\/([\w\.]+)/i],[we,[Z,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[we,[Z,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[we,[Z,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[we,[Z,"Smart Lenovo "+et]],[/(avast|avg)\/([\w\.]+)/i],[[Z,/(.+)/,"$1 Secure "+et],we],[/\bfocus\/([\w\.]+)/i],[we,[Z,st+" Focus"]],[/\bopt\/([\w\.]+)/i],[we,[Z,dt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[we,[Z,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[we,[Z,"Dolphin"]],[/coast\/([\w\.]+)/i],[we,[Z,dt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[we,[Z,"MIUI"+en]],[/fxios\/([\w\.-]+)/i],[we,[Z,st]],[/\bqihoobrowser\/?([\w\.]*)/i],[we,[Z,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Z,/(.+)/,"$1Browser"],we],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Z,/(.+)/,"$1"+en],we],[/samsungbrowser\/([\w\.]+)/i],[we,[Z,ht+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[we,[Z,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Z,"Sogou Mobile"],we],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Z,we],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[Z],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[we,Z],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Z,ln],we],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[Z,we],[/\bgsa\/([\w\.]+) .*safari\//i],[we,[Z,"GSA"]],[/musical_ly(?:.
119+app_?version\/|_)([\w\.]+)/i],[we,[Z,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[we,[Z,Qe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Z,Qe+" WebView"],we],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[we,[Z,"Android "+et]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Z,we],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[we,[Z,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[we,Z],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Z,[we,_n,Kt]],[/(webkit|khtml)\/([\w\.]+)/i],[Z,we],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Z,"Netscape"],we],[/(wolvic|librewolf)\/([\w\.]+)/i],[Z,we],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[we,[Z,st+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Z,[we,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Z,[we,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[xe,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[xe,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[xe,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[xe,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[xe,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[xe,/ower/,d,tn]],[/ sun4\w[;\)]/i],[[xe,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[xe,tn]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[X,[be,ht],[ye,Fe]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[X,[be,ht],[ye,Ne]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[X,[be,Ve],[ye,Ne]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[X,[be,Ve],[ye,Fe]],[/(macintosh);/i],[X,[be,Ve]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[X,[be,Ft],[ye,Ne]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[X,[be,tt],[ye,Fe]],[/honor([-\w ]+)[;\)]/i],[X,[be,tt],[ye,Ne]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[X,[be,pt],[ye,Fe]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[X,[be,pt],[ye,Ne]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[X,/_/g," "],[be,$t],[ye,Fe]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[X,/_/g," "],[be,$t],[ye,Ne]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[X,[be,Tt],[ye,Ne]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[X,[be,_n,{OnePlus:["304","403","203"],"*":Tt}],[ye,Fe]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[X,[be,"Vivo"],[ye,Ne]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[X,[be,"Realme"],[ye,Ne]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[X,[be,Ue],[ye,Ne]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[X,[be,Ue],[ye,Fe]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[X,[be,Ge],[ye,Fe]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[X,[be,Ge],[ye,Ne]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
119(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[X,[be,Be],[ye,Fe]],[/(nokia) (t[12][01])/i],[be,X,[ye,Fe]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[X,/_/g," "],[ye,Ne],[be,"Nokia"]],[/(pixel (c|tablet))\b/i],[X,[be,at],[ye,Fe]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[X,[be,at],[ye,Ne]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[X,[be,zt],[ye,Ne]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[X,"Xperia Tablet"],[be,zt],[ye,Fe]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[X,[be,Rt],[ye,Ne]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[X,[be,je],[ye,Fe]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[X,/(.+)/g,"Fire Phone $1"],[be,je],[ye,Ne]],[/(playbook);[-\w\),; ]+(rim)/i],[X,be,[ye,Fe]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[X,[be,Ye],[ye,Ne]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[X,[be,qe],[ye,Fe]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[X,[be,qe],[ye,Ne]],[/(nexus 9)/i],[X,[be,"HTC"],[ye,Fe]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[be,[X,/_/g," "],[ye,Ne]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[X,[be,"TCL"],[ye,Fe]],[/(itel) ((\w+))/i],[[be,tn],X,[ye,_n,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[X,[be,"Acer"],[ye,Fe]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[X,[be,"Meizu"],[ye,Ne]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[X,[be,"Ulefone"],[ye,Ne]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[X,[be,"Energizer"],[ye,Ne]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[X,[be,"Cat"],[ye,Ne]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[X,[be,"Smartfren"],[ye,Ne]],[/droid.+; (a(?:015|06[35]|142p?))/i],[X,[be,"Nothing"],[ye,Ne]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[X,[be,"Archos"],[ye,Fe]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[X,[be,"Archos"],[ye,Ne]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[be,X,[ye,Fe]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[be,X,[ye,Ne]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[be,X,[ye,Fe]],[/(surface duo)/i],[X,[be,it],[ye,Fe]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[X,[be,"Fairphone"],[ye,Ne]],[/(u304aa)/i],[X,[be,"AT&T"],[ye,Ne]],[/\bsie-(\w*)/i],[X,[be,"Siemens"],[ye,Ne]],[/\b(rct\w+) b/i],[X,[be,"RCA"],[ye,Fe]],[/\b(venue[\d ]{2,7}) b/i],[X,[be,"Dell"],[ye,Fe]],[/\b(q(?:mv|ta)\w+) b/i],[X,[be,"Verizon"],[ye,Fe]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[X,[be,"Barnes & Noble"],[ye,Fe]],[/\b(tm\d{3}\w+) b/i],[X,[be,"NuVision"],[ye,Fe]],[/\b(k88) b/i],[X,[be,"ZTE"],[ye,Fe]],[/\b(nx\d{3}j) b/i],[X,[be,"ZTE"],[ye,Ne]],[/\b(gen\d{3}) b.+49h/i],[X,[be,"Swiss"],[ye,Ne]],[/\b(zur\d{3}) b/i],[X,[be,"Swiss"],[ye,Fe]],[/\b((zeki)?tb.*\b) b/i],[X,[be,"Zeki"],[ye,Fe]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[be,"Dragon Touch"],X,[ye,Fe]],[/\b(ns-?\w{0,9}) b/i],[X,[be,"Insignia"],[ye,Fe]],[/\b((nxa|next)-?\w{0,9}) b/i],[X,[be,"NextBook"],[ye,Fe]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[be,"Voice"],X,[ye,Ne]],[/\b(lvtel\-)?(v1[12]) b/i],[[be,"LvTel"],X,[ye,Ne]],[/\b(ph-1) /i],[X,[be,"Essential"],[ye,Ne]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[X,[be,"Envizen"],[ye,Fe]],[/\b(trio[-\w\. ]+) b/i],[X,[be,"MachSpeed"],[ye,Fe]],[/\btu_(1491) b/i],[X,[be,"Rotor"],[ye,Fe]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[X,[be,Ot],[ye,Fe]],[/(sprint) (\w+)/i],[be,X,[ye,Ne]],[/(kin\.[onetw]{3}
vendor: 6,709 bytes, line 119
119)/i],[[X,/\./g," "],[be,it],[ye,Ne]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[X,[be,Yt],[ye,Fe]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[X,[be,Yt],[ye,Ne]],[/smart-tv.+(samsung)/i],[be,[ye,De]],[/hbbtv.+maple;(\d+)/i],[[X,/^/,"SmartTV"],[be,ht],[ye,De]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[be,Ge],[ye,De]],[/(apple) ?tv/i],[be,[X,Ve+" TV"],[ye,De]],[/crkey/i],[[X,Qe+"cast"],[be,at],[ye,De]],[/droid.+aft(\w+)( bui|\))/i],[X,[be,je],[ye,De]],[/(shield \w+ tv)/i],[X,[be,Ot],[ye,De]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[X,[be,Ft],[ye,De]],[/(bravia[\w ]+)( bui|\))/i],[X,[be,zt],[ye,De]],[/(mi(tv|box)-?\w+) bui/i],[X,[be,$t],[ye,De]],[/Hbbtv.*(technisat) (.*);/i],[be,X,[ye,De]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[be,Rn],[X,Rn],[ye,De]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[X,[ye,De]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[ye,De]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[be,X,[ye,$e]],[/droid.+; (shield)( bui|\))/i],[X,[be,Ot],[ye,$e]],[/(playstation \w+)/i],[X,[be,zt],[ye,$e]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[X,[be,it],[ye,$e]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[X,[be,ht],[ye,Le]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[be,X,[ye,Le]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[X,[be,Tt],[ye,Le]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[X,[be,Ve],[ye,Le]],[/(opwwe\d{3})/i],[X,[be,Rt],[ye,Le]],[/(moto 360)/i],[X,[be,Ue],[ye,Le]],[/(smartwatch 3)/i],[X,[be,zt],[ye,Le]],[/(g watch r)/i],[X,[be,Ge],[ye,Le]],[/droid.+; (wt63?0{2,3})\)/i],[X,[be,Yt],[ye,Le]],[/droid.+; (glass) \d/i],[X,[be,at],[ye,Le]],[/(pico) (4|neo3(?: link|pro)?)/i],[be,X,[ye,Le]],[/; (quest( \d| pro)?)/i],[X,[be,ln],[ye,Le]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[be,[ye,He]],[/(aeobc)\b/i],[X,[be,je],[ye,He]],[/(homepod).+mac os/i],[X,[be,Ve],[ye,He]],[/windows iot/i],[[ye,He]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[X,[ye,Ne]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[X,[ye,Fe]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[ye,Fe]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[ye,Ne]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[X,[be,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[we,[Z,ze+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Z,we],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[we,[Z,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Z,we],[/ladybird\//i],[[Z,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[we,Z]],os:[[/microsoft (windows) (vista|xp)/i],[Z,we],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[Z,[we,_n,ut]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[we,_n,ut],[Z,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[we,/_/g,"."],[Z,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Z,kn],[we,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[we,Z],[/(ubuntu) ([\w\.]+) like android/i],[[Z,/(.+)/,"$1 Touch"],we],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[Z,we],[/\(bb(10);/i],[we,[Z,Ye]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[we,[Z,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[we,[Z,st+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[we,[Z,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[we,[Z,"watchOS"]],[/crkey\/([\d\.]+)/i],[we,[Z,Qe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Z,Qt],we],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[Z,we],[/(sunos) ?([\w\.\d]*)/i],[[Z,"Solaris"],we],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Z,we]]},xt=function(Et,Vt){if(typeof Et===E&&(Vt=Et,Et=e),!(this instanceof xt))return new xt(Et,Vt).getResult();var wt=typeof t!==y&&t.navigator?t.navigator:e,rt=Et||(wt&&wt.userAgent?wt.userAgent:d),lt=wt&&wt.userAgentData?wt.userAgentData:e,ct=Vt?Gt(vt,Vt):vt,yt=wt&&wt.userAgent==rt;return this.getBrowser=function(){var ft={};return ft[Z]=e,ft[we]=e,dn.call(ft,rt,ct.browser),ft[M]=vn(ft[we]),yt&&wt&&wt.brave&&typeof wt.brave.isBrave==h&&(ft[Z]="Brave"),ft},this.getCPU=function(){var ft={};return ft[xe]=e,dn.call(ft,rt,ct.cpu),ft},this.getDevice=function(){var ft={};return ft[be]=e,ft[X]=e,ft[ye]=e,dn.call(ft,rt,ct.device),yt&&!ft[ye]&<&<.mobile&&(ft[ye]=Ne),yt&&ft[X]=="Macintosh"&&wt&&typeof wt.standalone!==y&&wt.maxTouchPoints&&wt.maxTouchPoints>2&&(ft[X]="iPad",ft[ye]=Fe),ft},this.getEngine=function(){var ft={};return ft[Z]=e,ft[we]=e,dn.call(ft,rt,ct.engine),ft},this.getOS=function(){var ft={};return ft[Z]=e,ft[we]=e,dn.call(ft,rt,ct.os),yt&&!ft[Z]&<&<.platform&<.platform!="Unknown"&&(ft[Z]=lt.platform.replace(/chrome os/i,Qt).replace(/macos/i,kn)),ft},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return rt},this.setUA=function(ft){return rt=typeof ft===$&&ft.length>Ke?Rn(ft,Ke):ft,this},this.setUA(rt),this};xt.VERSION=o,xt.BROWSER=on([Z,we,M]),xt.CPU=on([xe]),xt.DEVICE=on([X,be,ye,$e,Ne,De,Fe,Le,He]),xt.ENGINE=xt.OS=on([Z,we]),n.exports&&(i=n.exports=xt),i.UAParser=xt;var Lt=typeof t!==y&&(t.jQuery||t.Zepto);if(Lt&&!Lt.ua){var jt=new xt;Lt.ua=jt.getResult(),Lt.ua.get=function(){return jt.getUA()},Lt.ua.set=function(Et){jt.setUA(Et);var Vt=jt.getResult();for(var wt in Vt)Lt.ua[wt]=Vt[wt]}}})(typeof window=="object"?window:uaParser)}
119)(uaParser$1,uaParser$1.exports)),uaParser$1.exports}var uaParserExports=requireUaParser();const UAParser=getDefaultExportFromCjs(uaParserExports),parser=new UAParser;function isMobile(){return parser.getResult().device.type==="mobile"}class CircularBuffer{constructor(i){this._buffer=new Array(i),this._size=i,this._index=0,this._wrappedCount=0}push(i){this._buffer[this._index]=i,this._index=(this._index+1)%this._size,this._index===0&&(this._wrappedCount=this._wrappedCount+1)}get buffer(){return this._buffer}get totalWrittenEntries(){return this._wrappedCount*this._size+this._index}}const handleRender=(n,i,t,e,o,d)=>{window.__streamlit_profiles__=window.__streamlit_profiles__||{},window.__streamlit_profiles__[n]=window.__streamlit_profiles__[n]||new CircularBuffer(1e3),window.__streamlit_profiles__[n].push({phase:i,actualDuration:t,baseDuration:e,startTime:o,commitTime:d})},Profiler=({id:n,children:i})=>jsx$1(reactExports.Profiler,{id:n,onRender:handleRender,children:i}),getCopyButtonBaseStyles=(n,{buttonSize:i,focusRing:t}={})=>({...i&&{height:i,width:i},padding:n.spacing.none,border:"none",backgroundColor:n.colors.transparent,color:n.colors.fadedText60,cursor:"pointer",borderRadius:n.radii.sm,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix15},"&:active":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix25},"&:focus-visible":{outline:"none",boxShadow:t??n.shadows.focusRing}}),StyledCopyButton=styled("button",{target:"eqvrzn30"})(({theme:n,buttonSize:i})=>({...getCopyButtonBaseStyles(n,{buttonSize:i})})),CopyButton=({text:n,iconSize:i,buttonSize:t,copyLabel:e,copiedLabel:o,className:d,"data-testid":p,"aria-label":h,title:y})=>{const E=useEmotionTheme(),{isCopied:$,copyToClipboard:M,label:X}=useCopyToClipboard(),Z=reactExports.useCallback(()=>{M(n)},[M,n]),ye=convertRemToPx(i??E.iconSizes.base),be=t??E.iconSizes.threeXL,we=$?o??X:e??X;return jsx$1(StyledCopyButton,{className:d,"data-testid":p,title:y??we,"aria-label":h??we,"data-copy-state":$?"copied":"idle",type:"button",buttonSize:be,onClick:Z,children:$?jsx$1(Check$1,{size:ye}):jsx$1(Copy,{size:ye})})},CopyButton$1=reactExports.memo(CopyButton),useWindowDimensions=()=>{const n=useEmotionTheme(),[i,t]=reactExports.useState({fullWidth:0,fullHeight:0,innerWidth:0,innerHeight:0}),e=reactExports.useCallback(()=>{const d=convertRemToPx(n.spacing.md),p=convertRemToPx(n.sizes.fullScreenHeaderHeight),{innerWidth:h,innerHeight:y}=window;return{fullWidth:h-d*2,fullHeight:y-(d+p),innerWidth:h,innerHeight:y}},[n.sizes.fullScreenHeaderHeight,n.spacing.md]),o=reactExports.useCallback(()=>{t(e())},[e]);return reactExports.useEffect(()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}),[o]),reactExports.useLayoutEffect(()=>{o()},[o]),i},WindowDimensionsProvider=({children:n})=>{const i=useWindowDimensions();if(reactExports.useContext(WindowDimensionsContext))throw new Error("WindowDimensionsProvider should only be used once per app. If you need to read window dimensions, utilize `useWindowDimensionsContext()` instead.");return jsx$1(WindowDimensionsContext.Provider,{value:i,children:n})},token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(n,i){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;i=i||1;const t=n.slice(0,i),e=n.slice(i);return Array.prototype.concat.call([],decodeComponents(t),decodeComponents(e))}function decode$1(n){try{return decodeURIComponent(n)}catch{let i=n.match(singleMatcher)||[];for(let t=1;t<i.length;t++)n=decodeComponents(i,t).join(""),i=n.match(singleMatcher)||[];return n}}function customDecodeURIComponent(n){const i={"%FE%FF":"��","%FF%FE":"��"};let t=multiMatcher.exec(n);for(;t;){try{i[t[0]]=decodeURIComponent(t[0])}catch{const o=decode$1(t[0]);o!==t[0]&&(i[t[0]]=o)}t=multiMatcher.exec(n)}i["%C2"]="�";const e=Object.keys(i);for(const o of e)n=n.replace(new RegExp(o,"g"),i[o]);return n}
119function decodeUriComponent(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return customDecodeURIComponent(n)}}function includeKeys(n,i){const t={};if(Array.isArray(i))for(const e of i){const o=Object.getOwnPropertyDescriptor(n,e);o?.enumerable&&Object.defineProperty(t,e,o)}else for(const e of Reflect.ownKeys(n)){const o=Object.getOwnPropertyDescriptor(n,e);if(o.enumerable){const d=n[e];i(e,d,n)&&Object.defineProperty(t,e,o)}}return t}function splitOnFirst(n,i){if(!(typeof n=="string"&&typeof i=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||i==="")return[];const t=n.indexOf(i);return t===-1?[]:[n.slice(0,t),n.slice(t+i.length)]}const isNullOrUndefined=n=>n==null,strictUriEncode=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,i=>`%${i.charCodeAt(0).toString(16).toUpperCase()}`),encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(n){switch(n.arrayFormat){case"index":return i=>(t,e)=>{const o=t.length;return e===void 0||n.skipNull&&e===null||n.skipEmptyString&&e===""?t:e===null?[...t,[encode(i,n),"[",o,"]"].join("")]:[...t,[encode(i,n),"[",encode(o,n),"]=",encode(e,n)].join("")]};case"bracket":return i=>(t,e)=>e===void 0||n.skipNull&&e===null||n.skipEmptyString&&e===""?t:e===null?[...t,[encode(i,n),"[]"].join("")]:[...t,[encode(i,n),"[]=",encode(e,n)].join("")];case"colon-list-separator":return i=>(t,e)=>e===void 0||n.skipNull&&e===null||n.skipEmptyString&&e===""?t:e===null?[...t,[encode(i,n),":list="].join("")]:[...t,[encode(i,n),":list=",encode(e,n)].join("")];case"comma":case"separator":case"bracket-separator":{const i=n.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(e,o)=>o===void 0||n.skipNull&&o===null||n.skipEmptyString&&o===""?e:(o=o===null?"":o,e.length===0?[[encode(t,n),i,encode(o,n)].join("")]:[[e,encode(o,n)].join(n.arrayFormatSeparator)])}default:return i=>(t,e)=>e===void 0||n.skipNull&&e===null||n.skipEmptyString&&e===""?t:e===null?[...t,encode(i,n)]:[...t,[encode(i,n),"=",encode(e,n)].join("")]}}function parserForArrayFormat(n){let i;switch(n.arrayFormat){case"index":return(t,e,o)=>{if(i=/\[(\d*)]$/.exec(t),t=t.replace(/\[\d*]$/,""),!i){o[t]=e;return}o[t]===void 0&&(o[t]={}),o[t][i[1]]=e};case"bracket":return(t,e,o)=>{if(i=/(\[])$/.exec(t),t=t.replace(/\[]$/,""),!i){o[t]=e;return}if(o[t]===void 0){o[t]=[e];return}o[t]=[...o[t],e]};case"colon-list-separator":return(t,e,o)=>{if(i=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!i){o[t]=e;return}if(o[t]===void 0){o[t]=[e];return}o[t]=[...o[t],e]};case"comma":case"separator":return(t,e,o)=>{const p=typeof e=="string"&&e.includes(n.arrayFormatSeparator)?e.split(n.arrayFormatSeparator).map(h=>decode(h,n)):e===null?e:decode(e,n);o[t]=p};case"bracket-separator":return(t,e,o)=>{const d=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!d){o[t]=e&&decode(e,n);return}const p=e===null?[]:decode(e,n).split(n.arrayFormatSeparator);if(o[t]===void 0){o[t]=p;return}o[t]=[...o[t],...p]};default:return(t,e,o)=>{if(o[t]===void 0){o[t]=e;return}o[t]=[...[o[t]].flat(),e]}}}function validateArrayFormatSeparator(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function encode(n,i){return i.encode?i.strict?strictUriEncode(n):encodeURIComponent(n):n}function decode(n,i){return i.decode?decodeUriComponent(n):n}function keysSorter(n){return Array.isArray(n)?n.sort():typeof n=="object"?keysSorter(Object.keys(n)).sort((i,t)=>Number(i)-Number(t)).map(i=>n[i]):n}function removeHash(n){const i=n.indexOf("#");return i!==-1&&(n=n.slice(0,i)),n}function getHash(n){let i="";const t=n.indexOf("#");return t!==-1&&(i=n.slice(t)),i}function parseValue(n,i,t){return t==="string"&&typeof n=="string"?n:typeof t=="function"&&typeof n=="string"?t(n):t==="boolean"&&n===null?!0:t==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":t==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":t==="string[]"&&i.arrayFormat!=="none"&&typeof n=="string"?[n]:t==="number[]"&&i.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:t==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):i.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function extract(n){n=removeHash(n);const i=n.indexOf("?");return i===-1?"":n.slice(i+1)}function parse(n,i){i={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...i},validateArrayFormatSeparator(i.arrayFormatSeparator);const t=parserForArrayFormat(i),e=Object.create(null);
119if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return e;for(const o of n.split("&")){if(o==="")continue;const d=i.decode?o.replaceAll("+"," "):o;let[p,h]=splitOnFirst(d,"=");p===void 0&&(p=d),h=h===void 0?null:["comma","separator","bracket-separator"].includes(i.arrayFormat)?h:decode(h,i),t(decode(p,i),h,e)}for(const[o,d]of Object.entries(e))if(typeof d=="object"&&d!==null&&i.types[o]!=="string")for(const[p,h]of Object.entries(d)){const y=i.types[o],E=typeof y=="function"?y:y?y.replace("[]",""):void 0;d[p]=parseValue(h,i,E)}else typeof d=="object"&&d!==null&&i.types[o]==="string"?e[o]=Object.values(d).join(i.arrayFormatSeparator):e[o]=parseValue(d,i,i.types[o]);return i.sort===!1?e:(i.sort===!0?Object.keys(e).sort():Object.keys(e).sort(i.sort)).reduce((o,d)=>{const p=e[d];return o[d]=p&&typeof p=="object"&&!Array.isArray(p)?keysSorter(p):p,o},Object.create(null))}function stringify(n,i){if(!n)return"";i={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...i},validateArrayFormatSeparator(i.arrayFormatSeparator);const t=p=>i.skipNull&&isNullOrUndefined(n[p])||i.skipEmptyString&&n[p]==="",e=encoderForArrayFormat(i),o={};for(const[p,h]of Object.entries(n))t(p)||(o[p]=h);const d=Object.keys(o);return i.sort!==!1&&d.sort(i.sort),d.map(p=>{let h=n[p];if(i.replacer&&(h=i.replacer(p,h),h===void 0)||h===void 0)return"";if(h===null)return encode(p,i);if(Array.isArray(h)){if(h.length===0&&i.arrayFormat==="bracket-separator")return encode(p,i)+"[]";let y=h;return i.replacer&&(y=h.map((E,$)=>i.replacer(`${p}[${$}]`,E)).filter(E=>E!==void 0)),y.reduce(e(p),[]).join("&")}return encode(p,i)+"="+encode(h,i)}).filter(p=>p.length>0).join("&")}function parseUrl(n,i){i={decode:!0,...i};let[t,e]=splitOnFirst(n,"#");return t===void 0&&(t=n),{url:t?.split("?")?.[0]??"",query:parse(extract(n),i),...i&&i.parseFragmentIdentifier&&e?{fragmentIdentifier:decode(e,i)}:{}}}function stringifyUrl(n,i){i={encode:!0,strict:!0,[encodeFragmentIdentifier]:!0,...i};const t=removeHash(n.url).split("?")[0]||"",e=extract(n.url),o={...parse(e,{sort:!1,...i}),...n.query};let d=stringify(o,i);d&&=`?${d}`;let p=getHash(n.url);if(typeof n.fragmentIdentifier=="string"){const h=new URL(t);h.hash=n.fragmentIdentifier,p=i[encodeFragmentIdentifier]?h.hash:`#${n.fragmentIdentifier}`}return`${t}${d}${p}`}function pick(n,i,t){t={parseFragmentIdentifier:!0,[encodeFragmentIdentifier]:!1,...t};const{url:e,query:o,fragmentIdentifier:d}=parseUrl(n,t);return stringifyUrl({url:e,query:includeKeys(o,i),fragmentIdentifier:d},t)}function exclude(n,i,t){const e=Array.isArray(i)?o=>!i.includes(o):(o,d)=>!i(o,d);return pick(n,e,t)}const queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude,extract,parse,parseUrl,pick,stringify,stringifyUrl},Symbol.toStringTag,{value:"Module"})),LOG$f=loglevelExports.getLogger("ComponentRegistry");class ComponentRegistry{constructor(i){this.msgListeners=new Map,this.registerListener=(t,e)=>{this.msgListeners.has(t)&&LOG$f.warn("MessageEventSource registered multiple times!",t),this.msgListeners.set(t,e)},this.deregisterListener=t=>{this.msgListeners.delete(t)||LOG$f.warn("Could not deregister unregistered MessageEventSource!")},this.checkSourceUrlResponse=(t,e)=>this.endpoints.checkSourceUrlResponse(t,"Custom Component",e),this.sendTimeoutError=(t,e)=>{this.endpoints.sendClientErrorToHost("Custom Component","Request Timeout","Your app is having trouble loading the component.",t,e)},this.getComponentURL=(t,e)=>this.endpoints.buildComponentURL(t,e),this.getBidiComponentURL=(t,e)=>this.endpoints.buildBidiComponentURL(t,e),this.onMessageEvent=t=>{if(isNullOrUndefined$1(t.data)||!Object.hasOwn(t.data,"isStreamlitMessage"))return;if(isNullOrUndefined$1(t.source)){LOG$f.warn("Received component message with no eventSource!",t.data);return}const e=this.msgListeners.get(t.source);if(isNullOrUndefined$1(e)||typeof e!="function"){LOG$f.warn("Received component message for unregistered ComponentInstance!",t.data);return}const{type:o}=t.data;if(isNullOrUndefined$1(o)){LOG$f.warn("Received Streamlit message with no type!",t.data);return}e(o,t.data)},this.endpoints=i,window.addEventListener("message",this.onMessageEvent)}}
119const byteToHex=[];for(let n=0;n<256;++n)byteToHex.push((n+256).toString(16).slice(1));function unsafeStringify(n,i=0){return(byteToHex[n[i+0]]+byteToHex[n[i+1]]+byteToHex[n[i+2]]+byteToHex[n[i+3]]+"-"+byteToHex[n[i+4]]+byteToHex[n[i+5]]+"-"+byteToHex[n[i+6]]+byteToHex[n[i+7]]+"-"+byteToHex[n[i+8]]+byteToHex[n[i+9]]+"-"+byteToHex[n[i+10]]+byteToHex[n[i+11]]+byteToHex[n[i+12]]+byteToHex[n[i+13]]+byteToHex[n[i+14]]+byteToHex[n[i+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(n,i,t){n=n||{};const e=n.random??n.rng?.()??rng();if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=e[6]&15|64,e[8]=e[8]&63|128,unsafeStringify(e)}function v4(n,i,t){return native.randomUUID&&!n?native.randomUUID():_v4(n)}const LOG$e=loglevelExports.getLogger("FileUploadClient");class FileUploadClient{constructor(i){this.formsWithPendingRequests=new Map,this.pendingFileURLsRequests=new Map,this.sessionInfo=i.sessionInfo,this.endpoints=i.endpoints,this.pendingFormUploadsChanged=i.formsWithPendingRequestsChanged,this.requestFileURLs=i.requestFileURLs}async uploadFile(i,t,e,o,d){return this.offsetPendingRequestCount(i.formId,1),this.endpoints.uploadFileUploaderFile(t,e,this.sessionInfo.current.sessionId,o,d).finally(()=>this.offsetPendingRequestCount(i.formId,-1))}deleteFile(i){return this.endpoints.deleteFileAtURL?this.endpoints.deleteFileAtURL(i,this.sessionInfo.current.sessionId):Promise.resolve()}fetchFileURLs(i){if(!this.requestFileURLs)return Promise.resolve([]);const t=Promise.withResolvers(),e=v4();return this.pendingFileURLsRequests.set(e,t),this.requestFileURLs(e,i),t.promise}onFileURLsResponse(i){const t=i.responseId,e=this.pendingFileURLsRequests.get(t);e?(i.errorMsg?e.reject(i.errorMsg):e.resolve(i.fileUrls||[]),this.pendingFileURLsRequests.delete(t)):LOG$e.warn("fileURLsResponse received for nonexistent request, ignoring.")}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(i,t){if(t===0||!isValidFormId(i))return;const e=this.formsWithPendingRequests.get(i)??0,o=e+t;if(o<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${i}, curCount=${e}, offset=${t})`);const d=this.getFormIdSet();o===0?this.formsWithPendingRequests.delete(i):this.formsWithPendingRequests.set(i,o);const p=this.getFormIdSet();isEqual(p,d)||this.pendingFormUploadsChanged(p)}}const HOST_COMM_VERSION=1;class HostCommunicationManager{constructor(i){this.openHostCommunication=()=>{window.addEventListener("message",this.receiveHostMessage),this.sendMessageToHost({type:"GUEST_READY",streamlitExecutionStartedAt:this.props.streamlitExecutionStartedAt,guestReadyAt:Date.now()})},this.closeHostCommunication=()=>{window.removeEventListener("message",this.receiveHostMessage)},this.resetAuthToken=()=>{this.deferredAuthToken=Promise.withResolvers()},this.claimAuthToken=()=>this.deferredAuthToken.promise,this.setAllowedOrigins=({allowedOrigins:t,useExternalAuthToken:e})=>{e||this.deferredAuthToken.resolve(void 0),t?.length&&(this.allowedOrigins=t,this.openHostCommunication())},this.sendMessageToSameOriginHost=t=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...t},window.location.origin)},this.sendMessageToHost=t=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...t},"*")},this.receiveHostMessage=t=>{const e=t.data;if(!(e.stCommVersion!==HOST_COMM_VERSION||!this.allowedOrigins.find(o=>isValidOrigin(o,t.origin)))){if(e.type==="CLOSE_MODAL"&&this.props.closeModal(),e.type==="STOP_SCRIPT"&&this.props.stopScript(),e.type==="RERUN_SCRIPT"&&this.props.rerunScript(),e.type==="CLEAR_CACHE"&&this.props.clearCache(),e.type==="REQUEST_PAGE_CHANGE"&&this.props.pageChanged(e.pageScriptHash),e.type==="SEND_APP_HEARTBEAT"){const o=e.ackTimeoutMilliseconds,d=typeof o=="number"&&Number.isFinite(o)&&o>0?o:0;this.props.sendAppHeartbeat(d)}if(e.type==="SET_INPUTS_DISABLED"&&this.props.setInputsDisabled(e.disabled),e.type==="SET_AUTH_TOKEN"&&this.deferredAuthToken.resolve(e.authToken),e.type==="SET_FILE_UPLOAD_CLIENT_CONFIG"){const{prefix:o,headers:d}=e;this.props.fileUploadClientConfigChanged({prefix:o,headers:d})}e.type==="SET_IS_OWNER"&&this.props.isOwnerChanged(e.isOwner),e.type==="SET_MENU_ITEMS"&&this.props.hostMenuItemsChanged(e.items),e.type==="SET_METADATA"&&this.props.deployedAppMetadataChanged(e.metadata),e.type==="SET_PAGE_LINK_BASE_URL"&&this.props.pageLinkBaseUrlChanged(e.pageLinkBaseUrl),e.type==="SET_SIDEBAR_CHEVRON_DOWNSHIFT"&&this.props.sidebarChevronDownshiftChanged(e.sidebarChevronDownshift),e.type==="SET_SIDEBAR_NAV_VISIBILITY"&&this.props.hostHideSidebarNavChanged(e.hidden),e.type==="SET_TOOLBAR_ITEMS"&&this.props.hostToolbarItemsChanged(e.items),e.type==="UPDATE_FROM_QUERY_PARAMS"&&(this.props.queryParamsChanged(e.queryParams),this.props.send
119RerunBackMsg()),e.type==="UPDATE_HASH"&&(window.location.hash=e.hash),e.type==="SET_CUSTOM_THEME_CONFIG"&&this.props.themeChanged(e.themeName,e.themeInfo),e.type==="RESTART_WEBSOCKET_CONNECTION"&&this.props.restartWebsocketConnection(),e.type==="TERMINATE_WEBSOCKET_CONNECTION"&&this.props.terminateWebsocketConnection()}},this.props=i,this.allowedOrigins=[],this.deferredAuthToken=Promise.withResolvers()}}class SessionInfo{get current(){if(!this._current)throw new Error("Tried to use SessionInfo before it was initialized");return this._current}get last(){return this._last}setCurrent(i){this._last=notNullOrUndefined(this._current)?{...this._current}:void 0,this._current=notNullOrUndefined(i)?{...i}:void 0}disconnect(){this._current&&this.setCurrent({...this._current,isConnected:!1})}get isSet(){return notNullOrUndefined(this._current)}get isHello(){return notNullOrUndefined(this._current)&&this._current.isHello}static propsFromNewSessionMessage(i){const t=i.initialize,e=i.config,o=t.userInfo,d=t.environmentInfo;return{appId:hashString(o.installationIdV3+i.mainScriptPath),sessionId:t.sessionId,streamlitVersion:d.streamlitVersion,pythonVersion:d.pythonVersion,serverOS:d.serverOs,hasDisplay:d.hasDisplay,installationId:o.installationId,installationIdV3:o.installationIdV3,installationIdV4:o.installationIdV4,maxCachedMessageAge:e.maxCachedMessageAge,isHello:t.isHello,isConnected:!0}}}const nonce=document.currentScript?.nonce||"",cache=createCache({key:"st-emotion-cache",...nonce&&{nonce}});function RootStyleProvider(n){const{children:i,theme:t}=n;return jsx$1(BaseProvider,{theme:t.basewebTheme,zIndex:t.emotion.zIndices.popup,children:jsx$1(CacheProvider,{value:cache,children:jsxs(ThemeProvider$2,{theme:t.emotion,children:[jsx$1(Global,{styles:[globalStyles]}),i]})})})}const measure=(n,i,t)=>performance.measure(n,i,t),mark=n=>performance.mark(n);var src={exports:{}},indexLight={exports:{}},types={},util={exports:{}},codegen_1,hasRequiredCodegen;function requireCodegen(){if(hasRequiredCodegen)return codegen_1;hasRequiredCodegen=1,codegen_1=n;function n(i,t){typeof i=="string"&&(t=i,i=void 0);var e=[];function o(p){if(typeof p!="string"){var h=d();if(n.verbose&&console.log("codegen: "+h),h="return "+h,p){for(var y=Object.keys(p),E=new Array(y.length+1),$=new Array(y.length),M=0;M<y.length;)E[M]=y[M],$[M]=p[y[M++]];return E[M]=h,Function.apply(null,E).apply(null,$)}return Function(h)()}for(var X=new Array(arguments.length-1),Z=0;Z<X.length;)X[Z]=arguments[++Z];if(Z=0,p=p.replace(/%([%dfijs])/g,function(be,we){var xe=X[Z++];switch(we){case"d":case"f":return String(Number(xe));case"i":return String(Math.floor(xe));case"j":return JSON.stringify(xe);case"s":return String(xe)}return"%"}),Z!==X.length)throw Error("parameter count mismatch");return e.push(p),o}function d(p){return"function "+(p||t||"")+"("+(i&&i.join(",")||"")+`){ 120 `+e.join(` 121 `)+` 122}`}return o.toString=d,o}return n.verbose=!1,codegen_1}var fetch_1,hasRequiredFetch;function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1,fetch_1=e;var n=requireAspromise(),i=requireInquire(),t=i("fs");function e(o,d,p){return typeof d=="function"?(p=d,d={}):d||(d={}),p?!d.xhr&&t&&t.readFile?t.readFile(o,function(y,E){return y&&typeof XMLHttpRequest<"u"?e.xhr(o,d,p):y?p(y):p(null,d.binary?E:E.toString("utf8"))}):e.xhr(o,d,p):n(e,this,o,d)}return e.xhr=function(d,p,h){var y=new XMLHttpRequest;y.onreadystatechange=function(){if(y.readyState===4){if(y.status!==0&&y.status!==200)return h(Error("status "+y.status));if(p.binary){var $=y.response;if(!$){$=[];for(var M=0;M<y.responseText.length;++M)$.push(y.responseText.charCodeAt(M)&255)}return h(null,typeof Uint8Array<"u"?new Uint8Array($):$)}return h(null,y.responseText)}},p.binary&&("overrideMimeType"in y&&y.overrideMimeType("text/plain; charset=x-user-defined"),y.responseType="arraybuffer"),y.open("GET",d),y.send()},fetch_1}var path={},hasRequiredPath;function requirePath(){return hasRequiredPath||(hasRequiredPath=1,(function(n){var i=n,t=i.isAbsolute=function(d){return/^(?:\/|\w+:)/.test(d)},e=i.normalize=function(d){d=d.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var p=d.split("/"),h=t(d),y="";h&&(y=p.shift()+"/");for(var E=0;E<p.length;)p[E]===".."?E>0&&p[E-1]!==".."?p.splice(--E,2):h?p.splice(E,1):++E:p[E]==="."?p.splice(E,1):++E;return y+p.join("/")};
122i.resolve=function(d,p,h){return h||(p=e(p)),t(p)?p:(h||(d=e(d)),(d=d.replace(/(?:\/|^)[^/]+$/,"")).length?e(d+"/"+p):p)}})(path)),path}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=y;var n=requireObject();((y.prototype=Object.create(n.prototype)).constructor=y).className="Namespace";var i=requireField(),t=requireUtil(),e=requireOneof(),o,d,p;y.fromJSON=function(M,X){return new y(M,X.options).addJSON(X.nested)};function h($,M){if($&&$.length){for(var X={},Z=0;Z<$.length;++Z)X[$[Z].name]=$[Z].toJSON(M);return X}}y.arrayToJSON=h,y.isReservedId=function(M,X){if(M){for(var Z=0;Z<M.length;++Z)if(typeof M[Z]!="string"&&M[Z][0]<=X&&M[Z][1]>X)return!0}return!1},y.isReservedName=function(M,X){if(M){for(var Z=0;Z<M.length;++Z)if(M[Z]===X)return!0}return!1};function y($,M){n.call(this,$,M),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function E($){$._nestedArray=null,$._lookupCache={};for(var M=$;M=M.parent;)M._lookupCache={};return $}return Object.defineProperty(y.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=t.toArray(this.nested))}}),y.prototype.toJSON=function(M){return t.toObject(["options",this.options,"nested",h(this.nestedArray,M)])},y.prototype.addJSON=function(M){var X=this;if(M)for(var Z=Object.keys(M),ye=0,be;ye<Z.length;++ye)be=M[Z[ye]],X.add((be.fields!==void 0?o.fromJSON:be.values!==void 0?p.fromJSON:be.methods!==void 0?d.fromJSON:be.id!==void 0?i.fromJSON:y.fromJSON)(Z[ye],be));return this},y.prototype.get=function(M){return this.nested&&this.nested[M]||null},y.prototype.getEnum=function(M){if(this.nested&&this.nested[M]instanceof p)return this.nested[M].values;throw Error("no such enum: "+M)},y.prototype.add=function(M){if(!(M instanceof i&&M.extend!==void 0||M instanceof o||M instanceof e||M instanceof p||M instanceof d||M instanceof y))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var X=this.get(M.name);if(X)if(X instanceof y&&M instanceof y&&!(X instanceof o||X instanceof d)){for(var Z=X.nestedArray,ye=0;ye<Z.length;++ye)M.add(Z[ye]);this.remove(X),this.nested||(this.nested={}),M.setOptions(X.options,!0)}else throw Error("duplicate name '"+M.name+"' in "+this)}this.nested[M.name]=M,this instanceof o||this instanceof d||this instanceof p||this instanceof i||M._edition||(M._edition=M._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var be=this;be=be.parent;)be._needsRecursiveFeatureResolution=!0,be._needsRecursiveResolve=!0;return M.onAdd(this),E(this)},y.prototype.remove=function(M){if(!(M instanceof n))throw TypeError("object must be a ReflectionObject");if(M.parent!==this)throw Error(M+" is not a member of "+this);return delete this.nested[M.name],Object.keys(this.nested).length||(this.nested=void 0),M.onRemove(this),E(this)},y.prototype.define=function(M,X){if(t.isString(M))M=M.split(".");else if(!Array.isArray(M))throw TypeError("illegal path");if(M&&M.length&&M[0]==="")throw Error("path must be relative");for(var Z=this;M.length>0;){var ye=M.shift();if(Z.nested&&Z.nested[ye]){if(Z=Z.nested[ye],!(Z instanceof y))throw Error("path conflicts with non-namespace objects")}else Z.add(Z=new y(ye))}return X&&Z.addJSON(X),Z},y.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var M=this.nestedArray,X=0;for(this.resolve();X<M.length;)M[X]instanceof y?M[X++].resolveAll():M[X++].resolve();return this._needsRecursiveResolve=!1,this},y.prototype._resolveFeaturesRecursive=function(M){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,M=this._edition||M,n.prototype._resolveFeaturesRecursive.call(this,M),this.nestedArray.forEach(X=>{X._resolveFeaturesRecursive(M)}),this):this},y.prototype.lookup=function(M,X,Z){if(typeof X=="boolean"?(Z=X,X=void 0):X&&!Array.isArray(X)&&(X=[X]),t.isString(M)&&M.length){if(M===".")return this.root;M=M.split(".")}else if(!M.length)return this;var ye=M.join(".");if(M[0]==="")return this.root.lookup(M.slice(1),X);var be=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+ye];if(be&&(!X||X.indexOf(be.constructor)>-1)||(be=this._lookupImpl(M,ye),be&&(!X||X.indexOf(be.constructor)>-1)))return be;if(Z)return null;for(var we=this;we.parent;){if(be=we.parent._lookupImpl(M,ye),be&&(!X||X.indexOf(be.constructor)>-1))return be;we=we.parent}return null},y.prototype._lookupImpl=function(M,X){if(Object.prototype.hasOwnProperty.call(this._lookupCache,X))return this._lookupCache[X];var Z=this.get(M[0]),ye=null;if(Z)M.length===1?ye=Z:Z instanceof y&&(M=M.slice(1),ye=Z._lookupImpl(M,M.join(".")));else for(var be=0;be<this.nestedArray.length;++be)this._nestedArray[be]instanceof y&&(Z=this._nestedArray[be]._lookupImpl(M,X))&&(ye=Z);return this._lookupCache[X]=ye,ye},y.prototype.lookupType=function(M){var X=this.lookup(M,[o]);if(!X)throw Error("no such type: "+M);return X},y.prototype.lookupEnum=function(M){var X=this.lookup(M,[p]);if(!X)throw Error("no such Enum '"+M+"' in "+this);return X},y.prototype.lookupTypeOrEnum=function(M){var X=this.lookup(M,[o,p]);if(!X)throw Error("no such Type or Enum '"+M+"' in "+this);return X},y.prototype.lookupService=function(M){var X=this.lookup(M,[d]);if(!X)throw Error("no such Service '"+M+"' in "+this);return X},y._configure=function($,M,X){o=$,d=M,p=X},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=e;var n=requireField();
122((e.prototype=Object.create(n.prototype)).constructor=e).className="MapField";var i=requireTypes(),t=requireUtil();function e(o,d,p,h,y,E){if(n.call(this,o,d,h,void 0,void 0,y,E),!t.isString(p))throw TypeError("keyType must be a string");this.keyType=p,this.resolvedKeyType=null,this.map=!0}return e.fromJSON=function(d,p){return new e(d,p.id,p.keyType,p.type,p.options,p.comment)},e.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return t.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",p?this.comment:void 0])},e.prototype.resolve=function(){if(this.resolved)return this;if(i.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},e.d=function(d,p,h){return typeof h=="function"?h=t.decorateType(h).name:h&&typeof h=="object"&&(h=t.decorateEnum(h).name),function(E,$){t.decorateType(E.constructor).add(new e($,d,p,h))}},mapfield}var method,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=t;var n=requireObject();((t.prototype=Object.create(n.prototype)).constructor=t).className="Method";var i=requireUtil();function t(e,o,d,p,h,y,E,$,M){if(i.isObject(h)?(E=h,h=y=void 0):i.isObject(y)&&(E=y,y=void 0),!(o===void 0||i.isString(o)))throw TypeError("type must be a string");if(!i.isString(d))throw TypeError("requestType must be a string");if(!i.isString(p))throw TypeError("responseType must be a string");n.call(this,e,E),this.type=o||"rpc",this.requestType=d,this.requestStream=h?!0:void 0,this.responseType=p,this.responseStream=y?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=$,this.parsedOptions=M}return t.fromJSON=function(o,d){return new t(o,d.type,d.requestType,d.responseType,d.requestStream,d.responseStream,d.options,d.comment,d.parsedOptions)},t.prototype.toJSON=function(o){var d=o?!!o.keepComments:!1;return i.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",d?this.comment:void 0,"parsedOptions",this.parsedOptions])},t.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))},method}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=o;var n=requireNamespace();((o.prototype=Object.create(n.prototype)).constructor=o).className="Service";var i=requireMethod(),t=requireUtil(),e=requireRpc();function o(p,h){n.call(this,p,h),this.methods={},this._methodsArray=null}o.fromJSON=function(h,y){var E=new o(h,y.options);if(y.methods)for(var $=Object.keys(y.methods),M=0;M<$.length;++M)E.add(i.fromJSON($[M],y.methods[$[M]]));return y.nested&&E.addJSON(y.nested),y.edition&&(E._edition=y.edition),E.comment=y.comment,E._defaultEdition="proto3",E},o.prototype.toJSON=function(h){var y=n.prototype.toJSON.call(this,h),E=h?!!h.keepComments:!1;return t.toObject(["edition",this._editionToJSON(),"options",y&&y.options||void 0,"methods",n.arrayToJSON(this.methodsArray,h)||{},"nested",y&&y.nested||void 0,"comment",E?this.comment:void 0])},Object.defineProperty(o.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=t.toArray(this.methods))}});function d(p){return p._methodsArray=null,p}return o.prototype.get=function(h){return this.methods[h]||n.prototype.get.call(this,h)},o.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolve.call(this);for(var h=this.methodsArray,y=0;y<h.length;++y)h[y].resolve();return this},o.prototype._resolveFeaturesRecursive=function(h){return this._needsRecursiveFeatureResolution?(h=this._edition||h,n.prototype._resolveFeaturesRecursive.call(this,h),this.methodsArray.forEach(y=>{y._resolveFeaturesRecursive(h)}),this):this},o.prototype.add=function(h){if(this.get(h.name))throw Error("duplicate name '"+h.name+"' in "+this);return h instanceof i?(this.methods[h.name]=h,h.parent=this,d(this)):n.prototype.add.call(this,h)},o.prototype.remove=function(h){if(h instanceof i){if(this.methods[h.name]!==h)throw Error(h+" is not a member of "+this);return delete this.methods[h.name],h.parent=null,d(this)}return n.prototype.remove.call(this,h)},o.prototype.create=function(h,y,E){for(var $=new e.Service(h,y,E),M=0,X;M<this.methodsArray.length;++M){var Z=t.lcFirst((X=this._methodsArray[M]).resolve().name).replace(/[^$\w_]/g,"");$[Z]=t.codegen(["r","c"],t.isReserved(Z)?Z+"_":Z)("return this.rpcCall(m,q,s,r,c)")({m:X,q:X.resolvedRequestType.ctor,s:X.resolvedResponseType.ctor})}return $},service}var message,hasRequiredMessage;function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1,message=i;var n=requireMinimal$1();function i(t){if(t)for(var e=Object.keys(t),o=0;o<e.length;++o)this[e[o]]=t[e[o]]}return i.create=function(e){return this.$type.create(e)},i.encode=function(e,o){return this.$type.encode(e,o)},i.encodeDelimited=function(e,o){return this.$type.encodeDelimited(e,o)},i.decode=function(e){return this.$type.decode(e)},i.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},i.verify=function(e){return this.$type.verify(e)},i.fromObject=function(e){return this.$type.fromObject(e)},i.toObject=function(e,o){return this.$type.toObject(e,o)},i.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)},message}var decoder_1,hasRequiredDecoder;
122function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=o;var n=require_enum(),i=requireTypes(),t=requireUtil();function e(d){return"missing required '"+d.name+"'"}function o(d){for(var p=t.codegen(["r","l","e"],d.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(d.fieldsArray.filter(function(X){return X.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),h=0;h<d.fieldsArray.length;++h){var y=d._fieldsArray[h].resolve(),E=y.resolvedType instanceof n?"int32":y.type,$="m"+t.safeProp(y.name);p("case %i: {",y.id),y.map?(p("if(%s===util.emptyObject)",$)("%s={}",$)("var c2 = r.uint32()+r.pos"),i.defaults[y.keyType]!==void 0?p("k=%j",i.defaults[y.keyType]):p("k=null"),i.defaults[E]!==void 0?p("value=%j",i.defaults[E]):p("value=null"),p("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",y.keyType)("case 2:"),i.basic[E]===void 0?p("value=types[%i].decode(r,r.uint32())",h):p("value=r.%s()",E),p("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),i.long[y.keyType]!==void 0?p('%s[typeof k==="object"?util.longToHash(k):k]=value',$):p("%s[k]=value",$)):y.repeated?(p("if(!(%s&&%s.length))",$,$)("%s=[]",$),i.packed[E]!==void 0&&p("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",$,E)("}else"),i.basic[E]===void 0?p(y.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",$,h):p("%s.push(r.%s())",$,E)):i.basic[E]===void 0?p(y.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",$,h):p("%s=r.%s()",$,E),p("break")("}")}for(p("default:")("r.skipType(t&7)")("break")("}")("}"),h=0;h<d._fieldsArray.length;++h){var M=d._fieldsArray[h];M.required&&p("if(!m.hasOwnProperty(%j))",M.name)("throw util.ProtocolError(%j,{instance:m})",e(M))}return p("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=d;var n=require_enum(),i=requireUtil();function t(p,h){return p.name+": "+h+(p.repeated&&h!=="array"?"[]":p.map&&h!=="object"?"{k:"+p.keyType+"}":"")+" expected"}function e(p,h,y,E){if(h.resolvedType)if(h.resolvedType instanceof n){p("switch(%s){",E)("default:")("return%j",t(h,"enum value"));for(var $=Object.keys(h.resolvedType.values),M=0;M<$.length;++M)p("case %i:",h.resolvedType.values[$[M]]);p("break")("}")}else p("{")("var e=types[%i].verify(%s);",y,E)("if(e)")("return%j+e",h.name+".")("}");else switch(h.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":p("if(!util.isInteger(%s))",E)("return%j",t(h,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":p("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",E,E,E,E)("return%j",t(h,"integer|Long"));break;case"float":case"double":p('if(typeof %s!=="number")',E)("return%j",t(h,"number"));break;case"bool":p('if(typeof %s!=="boolean")',E)("return%j",t(h,"boolean"));break;case"string":p("if(!util.isString(%s))",E)("return%j",t(h,"string"));break;case"bytes":p('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',E,E,E)("return%j",t(h,"buffer"));break}return p}function o(p,h,y){switch(h.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":p("if(!util.key32Re.test(%s))",y)("return%j",t(h,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":p("if(!util.key64Re.test(%s))",y)("return%j",t(h,"integer|Long key"));break;case"bool":p("if(!util.key2Re.test(%s))",y)("return%j",t(h,"boolean key"));break}return p}function d(p){var h=i.codegen(["m"],p.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),y=p.oneofsArray,E={};y.length&&h("var p={}");for(var $=0;$<p.fieldsArray.length;++$){var M=p._fieldsArray[$].resolve(),X="m"+i.safeProp(M.name);if(M.optional&&h("if(%s!=null&&m.hasOwnProperty(%j)){",X,M.name),M.map)h("if(!util.isObject(%s))",X)("return%j",t(M,"object"))("var k=Object.keys(%s)",X)("for(var i=0;i<k.length;++i){"),o(h,M,"k[i]"),e(h,M,$,X+"[k[i]]")("}");else if(M.repeated)h("if(!Array.isArray(%s))",X)("return%j",t(M,"array"))("for(var i=0;i<%s.length;++i){",X),e(h,M,$,X+"[i]")("}");else{if(M.partOf){var Z=i.safeProp(M.partOf.name);E[M.partOf.name]===1&&h("if(p%s===1)",Z)("return%j",M.partOf.name+": multiple values"),E[M.partOf.name]=1,h("p%s=1",Z)}e(h,M,$,X)}M.optional&&h("}")}return h("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,(function(n){var i=n,t=require_enum(),e=requireUtil();function o(p,h,y,E){var $=!1;if(h.resolvedType)if(h.resolvedType instanceof t){p("switch(d%s){",E);for(var M=h.resolvedType.values,X=Object.keys(M),Z=0;Z<X.length;++Z)M[X[Z]]===h.typeDefault&&!$&&(p("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}
122',E,E,E),h.repeated||p("break"),$=!0),p("case%j:",X[Z])("case %i:",M[X[Z]])("m%s=%j",E,M[X[Z]])("break");p("}")}else p('if(typeof d%s!=="object")',E)("throw TypeError(%j)",h.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",E,y,E);else{var ye=!1;switch(h.type){case"double":case"float":p("m%s=Number(d%s)",E,E);break;case"uint32":case"fixed32":p("m%s=d%s>>>0",E,E);break;case"int32":case"sint32":case"sfixed32":p("m%s=d%s|0",E,E);break;case"uint64":ye=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":p("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",E,E,ye)('else if(typeof d%s==="string")',E)("m%s=parseInt(d%s,10)",E,E)('else if(typeof d%s==="number")',E)("m%s=d%s",E,E)('else if(typeof d%s==="object")',E)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",E,E,E,ye?"true":"");break;case"bytes":p('if(typeof d%s==="string")',E)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",E,E,E)("else if(d%s.length >= 0)",E)("m%s=d%s",E,E);break;case"string":p("m%s=String(d%s)",E,E);break;case"bool":p("m%s=Boolean(d%s)",E,E);break}}return p}i.fromObject=function(h){var y=h.fieldsArray,E=e.codegen(["d"],h.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!y.length)return E("return new this.ctor");E("var m=new this.ctor");for(var $=0;$<y.length;++$){var M=y[$].resolve(),X=e.safeProp(M.name);M.map?(E("if(d%s){",X)('if(typeof d%s!=="object")',X)("throw TypeError(%j)",M.fullName+": object expected")("m%s={}",X)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",X),o(E,M,$,X+"[ks[i]]")("}")("}")):M.repeated?(E("if(d%s){",X)("if(!Array.isArray(d%s))",X)("throw TypeError(%j)",M.fullName+": array expected")("m%s=[]",X)("for(var i=0;i<d%s.length;++i){",X),o(E,M,$,X+"[i]")("}")("}")):(M.resolvedType instanceof t||E("if(d%s!=null){",X),o(E,M,$,X),M.resolvedType instanceof t||E("}"))}return E("return m")};function d(p,h,y,E){if(h.resolvedType)h.resolvedType instanceof t?p("d%s=o.enums===String?(types[%i].values[m
122%s]===undefined?m%s:types[%i].values[m%s]):m%s",E,y,E,E,y,E,E):p("d%s=types[%i].toObject(m%s,o)",E,y,E);else{var $=!1;switch(h.type){case"double":case"float":p("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",E,E,E,E);break;case"uint64":$=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":p('if(typeof m%s==="number")',E)("d%s=o.longs===String?String(m%s):m%s",E,E,E)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",E,E,E,E,$?"true":"",E);break;case"bytes":p("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",E,E,E,E,E);break;default:p("d%s=m%s",E,E);break}}return p}i.toObject=function(h){var y=h.fieldsArray.slice().sort(e.compareFieldsById);if(!y.length)return e.codegen()("return {}");for(var E=e.codegen(["m","o"],h.name+"$toObject")("if(!o)")("o={}")("var d={}"),$=[],M=[],X=[],Z=0;Z<y.length;++Z)y[Z].partOf||(y[Z].resolve().repeated?$:y[Z].map?M:X).push(y[Z]);if($.length){for(E("if(o.arrays||o.defaults){"),Z=0;Z<$.length;++Z)E("d%s=[]",e.safeProp($[Z].name));E("}")}if(M.length){for(E("if(o.objects||o.defaults){"),Z=0;Z<M.length;++Z)E("d%s={}",e.safeProp(M[Z].name));E("}")}if(X.length){for(E("if(o.defaults){"),Z=0;Z<X.length;++Z){var ye=X[Z],be=e.safeProp(ye.name);if(ye.resolvedType instanceof t)E("d%s=o.enums===String?%j:%j",be,ye.resolvedType.valuesById[ye.typeDefault],ye.typeDefault);else if(ye.long)E("if(util.Long){")("var n=new util.Long(%i,%i,%j)",ye.typeDefault.low,ye.typeDefault.high,ye.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",be)("}else")("d%s=o.longs===String?%j:%i",be,ye.typeDefault.toString(),ye.typeDefault.toNumber());else if(ye.bytes){var we="["+Array.prototype.slice.call(ye.typeDefault).join(",")+"]";E("if(o.bytes===String)d%s=%j",be,String.fromCharCode.apply(String,ye.typeDefault))("else{")("d%s=%s",be,we)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",be,be)("}")}else E("d%s=%j",be,ye.typeDefault)}E("}")}var xe=!1;for(Z=0;Z<y.length;++Z){var ye=y[Z],$e=h._fieldsArray.indexOf(ye),be=e.safeProp(ye.name);ye.map?(xe||(xe=!0,E("var ks2")),E("if(m%s&&(ks2=Object.keys(m%s)).length){",be,be)("d%s={}",be)("for(var j=0;j<ks2.length;++j){"),d(E,ye,$e,be+"[ks2[j]]")("}")):ye.repeated?(E("if(m%s&&m%s.length){",be,be)("d%s=[]",be)("for(var j=0;j<m%s.length;++j){",be),d(E,ye,$e,be+"[j]")("}")):(E("if(m%s!=null&&m.hasOwnProperty(%j)){",be,ye.name),d(E,ye,$e,be),ye.partOf&&E("if(o.oneofs)")("d%s=%j",e.safeProp(ye.partOf.name),ye.name)),E("}")}return E("return d")}})(converter)),converter}var wrappers={},hasRequiredWrappers;function requireWrappers(){return hasRequiredWrappers||(hasRequiredWrappers=1,(function(n){var i=n,t=requireMessage();i[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var o=e["@type"].substring(e["@type"].lastIndexOf("/")+1),d=this.lookup(o);if(d){var p=e["@type"].charAt(0)==="."?e["@type"].slice(1):e["@type"];return p.indexOf("/")===-1&&(p="/"+p),this.create({type_url:p,value:d.encode(d.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,o){var d="type.googleapis.com/",p="",h="";if(o&&o.json&&e.type_url&&e.value){h=e.type_url.substring(e.type_url.lastIndexOf("/")+1),p=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var y=this.lookup(h);y&&(e=y.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof t){var E=e.$type.toObject(e,o),$=e.$type.fullName[0]==="."?e.$type.fullName.slice(1):e.$type.fullName;return p===""&&(p=d),h=p+$,E["@type"]=h,E}return this.toObject(e,o)}}})(wrappers)),wrappers}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=be;var n=requireNamespace();((be.prototype=Object.create(n.prototype)).constructor=be).className="Type";var i=require_enum(),t=requireOneof(),e=requireField(),o=requireMapfield(),d=requireService(),p=requireMessage(),h=requireReader(),y=requireWriter(),E=requireUtil(),$=requireEncoder(),M=requireDecoder(),X=requireVerifier(),Z=requireConverter(),ye=requireWrappers();function be(xe,$e){n.call(this,xe,$e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(be.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var xe=Object.keys(this.fields),$e=0;$e<xe.length;++$e){var Ne=this.fields[xe[$e]],Fe=Ne.id;if(this._fieldsById[Fe])throw Error("duplicate id "+Fe+" in "+this);this._fieldsById[Fe]=Ne}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=E.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=E.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=be.generateConstructor(this)())},set:function(xe){var $e=xe.prototype;$e instanceof p||((xe.prototype=new p).constructor=xe,E.merge(xe.prototype,$e)),xe.$type=xe.prototype.$type=this,E.merge(xe,p,!0),this._ctor=xe;for(var Ne=0;Ne<this.fieldsArray.length;++Ne)this._fieldsArray[Ne].resolve();var Fe={};for(Ne=0;Ne<this.oneofsArray.length;++Ne)Fe[this._oneofsArray[Ne].resolve().name]={get:E.oneOfGetter(this._oneofsArray[Ne].oneof),set:E.oneOfSetter(this._oneofsArray[Ne].oneof)};Ne&&Object.defineProperties(xe.prototype,Fe)}}}),be.generateConstructor=function($e){for(var Ne=E.codegen(["p"],$e.name),Fe=0,De;Fe<$e.fieldsArray.length;++Fe)(De=$e._fieldsArray[Fe]).map?Ne("this%s={}
122",E.safeProp(De.name)):De.repeated&&Ne("this%s=[]",E.safeProp(De.name));return Ne("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function we(xe){return xe._fieldsById=xe._fieldsArray=xe._oneofsArray=null,delete xe.encode,delete xe.decode,delete xe.verify,xe}return be.fromJSON=function($e,Ne){var Fe=new be($e,Ne.options);Fe.extensions=Ne.extensions,Fe.reserved=Ne.reserved;for(var De=Object.keys(Ne.fields),Le=0;Le<De.length;++Le)Fe.add((typeof Ne.fields[De[Le]].keyType<"u"?o.fromJSON:e.fromJSON)(De[Le],Ne.fields[De[Le]]));if(Ne.oneofs)for(De=Object.keys(Ne.oneofs),Le=0;Le<De.length;++Le)Fe.add(t.fromJSON(De[Le],Ne.oneofs[De[Le]]));if(Ne.nested)for(De=Object.keys(Ne.nested),Le=0;Le<De.length;++Le){var He=Ne.nested[De[Le]];Fe.add((He.id!==void 0?e.fromJSON:He.fields!==void 0?be.fromJSON:He.values!==void 0?i.fromJSON:He.methods!==void 0?d.fromJSON:n.fromJSON)(De[Le],He))}return Ne.extensions&&Ne.extensions.length&&(Fe.extensions=Ne.extensions),Ne.reserved&&Ne.reserved.length&&(Fe.reserved=Ne.reserved),Ne.group&&(Fe.group=!0),Ne.comment&&(Fe.comment=Ne.comment),Ne.edition&&(Fe._edition=Ne.edition),Fe._defaultEdition="proto3",Fe},be.prototype.toJSON=function($e){var Ne=n.prototype.toJSON.call(this,$e),Fe=$e?!!$e.keepComments:!1;return E.toObject(["edition",this._editionToJSON(),"options",Ne&&Ne.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,$e),"fields",n.arrayToJSON(this.fieldsArray.filter(function(De){return!De.declaringField}),$e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",Ne&&Ne.nested||void 0,"comment",Fe?this.comment:void 0])},be.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var $e=this.oneofsArray;for(Fe=0;Fe<$e.length;)$e[Fe++].resolve();for(var Ne=this.fieldsArray,Fe=0;Fe<Ne.length;)Ne[Fe++].resolve();return this},be.prototype._resolveFeaturesRecursive=function($e){return this._needsRecursiveFeatureResolution?($e=this._edition||$e,n.prototype._resolveFeaturesRecursive.call(this,$e),this.oneofsArray.forEach(Ne=>{Ne._resolveFeatures($e)}),this.fieldsArray.forEach(Ne=>{Ne._resolveFeatures($e)}),this):this},be.prototype.get=function($e){return this.fields[$e]||this.oneofs&&this.oneofs[$e]||this.nested&&this.nested[$e]||null},be.prototype.add=function($e){if(this.get($e.name))throw Error("duplicate name '"+$e.name+"' in "+this);if($e instanceof e&&$e.extend===void 0){if(this._fieldsById?this._fieldsById[$e.id]:this.fieldsById[$e.id])throw Error("duplicate id "+$e.id+" in "+this);if(this.isReservedId($e.id))throw Error("id "+$e.id+" is reserved in "+this);if(this.isReservedName($e.name))throw Error("name '"+$e.name+"' is reserved in "+this);return $e.parent&&$e.parent.remove($e),this.fields[$e.name]=$e,$e.message=this,$e.onAdd(this),we(this)}return $e instanceof t?(this.oneofs||(this.oneofs={}),this.oneofs[$e.name]=$e,$e.onAdd(this),we(this)):n.prototype.add.call(this,$e)},be.prototype.remove=function($e){if($e instanceof e&&$e.extend===void 0){if(!this.fields||this.fields[$e.name]!==$e)throw Error($e+" is not a member of "+this);return delete this.fields[$e.name],$e.parent=null,$e.onRemove(this),we(this)}if($e instanceof t){if(!this.oneofs||this.oneofs[$e.name]!==$e)throw Error($e+" is not a member of "+this);return delete this.oneofs[$e.name],$e.parent=null,$e.onRemove(this),we(this)}return n.prototype.remove.call(this,$e)},be.prototype.isReservedId=function($e){return n.isReservedId(this.reserved,$e)},be.prototype.isReservedName=function($e){return n.isReservedName(this.reserved,$e)},be.prototype.create=function($e){return new this.ctor($e)},be.prototype.setup=function(){for(var $e=this.fullName,Ne=[],Fe=0;Fe<this.fieldsArray.length;++Fe)Ne.push(this._fieldsArray[Fe].resolve().resolvedType);this.encode=$(this)({Writer:y,types:Ne,util:E}),this.decode=M(this)({Reader:h,types:Ne,util:E}),this.verify=X(this)({types:Ne,util:E}),this.fromObject=Z.fromObject(this)({types:Ne,util:E}),this.toObject=Z.toObject(this)({types:Ne,util:E});var De=ye[$e];
122if(De){var Le=Object.create(this);Le.fromObject=this.fromObject,this.fromObject=De.fromObject.bind(Le),Le.toObject=this.toObject,this.toObject=De.toObject.bind(Le)}return this},be.prototype.encode=function($e,Ne){return this.setup().encode($e,Ne)},be.prototype.encodeDelimited=function($e,Ne){return this.encode($e,Ne&&Ne.len?Ne.fork():Ne).ldelim()},be.prototype.decode=function($e,Ne){return this.setup().decode($e,Ne)},be.prototype.decodeDelimited=function($e){return $e instanceof h||($e=h.create($e)),this.decode($e,$e.uint32())},be.prototype.verify=function($e){return this.setup().verify($e)},be.prototype.fromObject=function($e){return this.setup().fromObject($e)},be.prototype.toObject=function($e,Ne){return this.setup().toObject($e,Ne)},be.d=function($e){return function(Fe){E.decorateType(Fe,$e)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=y;var n=requireNamespace();((y.prototype=Object.create(n.prototype)).constructor=y).className="Root";var i=requireField(),t=require_enum(),e=requireOneof(),o=requireUtil(),d,p,h;function y(X){n.call(this,"",X),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}y.fromJSON=function(Z,ye){return ye||(ye=new y),Z.options&&ye.setOptions(Z.options),ye.addJSON(Z.nested).resolveAll()},y.prototype.resolvePath=o.path.resolve,y.prototype.fetch=o.fetch;function E(){}y.prototype.load=function X(Z,ye,be){typeof ye=="function"&&(be=ye,ye=void 0);var we=this;if(!be)return o.asPromise(X,we,Z,ye);var xe=be===E;function $e(je,Ve){if(be){if(xe)throw je;Ve&&Ve.resolveAll();var qe=be;be=null,qe(je,Ve)}}function Ne(je){var Ve=je.lastIndexOf("google/protobuf/");if(Ve>-1){var qe=je.substring(Ve);if(qe in h)return qe}return null}function Fe(je,Ve){try{if(o.isString(Ve)&&Ve.charAt(0)==="{"&&(Ve=JSON.parse(Ve)),!o.isString(Ve))we.setOptions(Ve.options).addJSON(Ve.nested);else{p.filename=je;var qe=p(Ve,we,ye),Ye,et=0;if(qe.imports)for(;et<qe.imports.length;++et)(Ye=Ne(qe.imports[et])||we.resolvePath(je,qe.imports[et]))&&De(Ye);if(qe.weakImports)for(et=0;et<qe.weakImports.length;++et)(Ye=Ne(qe.weakImports[et])||we.resolvePath(je,qe.weakImports[et]))&&De(Ye,!0)}}
122catch(Qe){$e(Qe)}!xe&&!Le&&$e(null,we)}function De(je,Ve){if(je=Ne(je)||je,!(we.files.indexOf(je)>-1)){if(we.files.push(je),je in h){xe?Fe(je,h[je]):(++Le,setTimeout(function(){--Le,Fe(je,h[je])}));return}if(xe){var qe;try{qe=o.fs.readFileSync(je).toString("utf8")}catch(Ye){Ve||$e(Ye);return}Fe(je,qe)}else++Le,we.fetch(je,function(Ye,et){if(--Le,!!be){if(Ye){Ve?Le||$e(null,we):$e(Ye);return}Fe(je,et)}})}}var Le=0;o.isString(Z)&&(Z=[Z]);for(var He=0,Ke;He<Z.length;++He)(Ke=we.resolvePath("",Z[He]))&&De(Ke);return xe?(we.resolveAll(),we):(Le||$e(null,we),we)},y.prototype.loadSync=function(Z,ye){if(!o.isNode)throw Error("not supported");return this.load(Z,ye,E)},y.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(Z){return"'extend "+Z.extend+"' in "+Z.parent.fullName}).join(", "));return n.prototype.resolveAll.call(this)};var $=/^[A-Z]/;function M(X,Z){var ye=Z.parent.lookup(Z.extend);if(ye){var be=new i(Z.fullName,Z.id,Z.type,Z.rule,void 0,Z.options);return ye.get(be.name)||(be.declaringField=Z,Z.extensionField=be,ye.add(be)),!0}return!1}return y.prototype._handleAdd=function(Z){if(Z instanceof i)Z.extend!==void 0&&!Z.extensionField&&(M(this,Z)||this.deferred.push(Z));else if(Z instanceof t)$.test(Z.name)&&(Z.parent[Z.name]=Z.values);else if(!(Z instanceof e)){if(Z instanceof d)for(var ye=0;ye<this.deferred.length;)M(this,this.deferred[ye])?this.deferred.splice(ye,1):++ye;for(var be=0;be<Z.nestedArray.length;++be)this._handleAdd(Z._nestedArray[be]);$.test(Z.name)&&(Z.parent[Z.name]=Z)}(Z instanceof d||Z instanceof t||Z instanceof i)&&(this._fullyQualifiedObjects[Z.fullName]=Z)},y.prototype._handleRemove=function(Z){if(Z instanceof i){if(Z.extend!==void 0)if(Z.extensionField)Z.extensionField.parent.remove(Z.extensionField),Z.extensionField=null;else{var ye=this.deferred.indexOf(Z);ye>-1&&this.deferred.splice(ye,1)}}else if(Z instanceof t)$.test(Z.name)&&delete Z.parent[Z.name];else if(Z instanceof n){for(var be=0;be<Z.nestedArray.length;++be)this._handleRemove(Z._nestedArray[be]);$.test(Z.name)&&delete Z.parent[Z.name]}delete this._fullyQualifiedObjects[Z.fullName]},y._configure=function(X,Z,ye){d=X,p=Z,h=ye},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util.exports;hasRequiredUtil=1;var n=util.exports=requireMinimal$1(),i=requireRoots(),t,e;n.codegen=requireCodegen(),n.fetch=requireFetch(),n.path=requirePath(),n.fs=n.inquire("fs"),n.toArray=function(E){if(E){for(var $=Object.keys(E),M=new Array($.length),X=0;X<$.length;)M[X]=E[$[X++]];return M}return[]},n.toObject=function(E){for(var $={},M=0;M<E.length;){var X=E[M++],Z=E[M++];Z!==void 0&&($[X]=Z)}return $};var o=/\\/g,d=/"/g;n.isReserved=function(E){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(E)},n.safeProp=function(E){return!/^[$\w_]+$/.test(E)||n.isReserved(E)?'["'+E.replace(o,"\\\\").replace(d,'\\"')+'"]':"."+E},n.ucFirst=function(E){return E.charAt(0).toUpperCase()+E.substring(1)};var p=/_([a-z])/g;n.camelCase=function(E){return E.substring(0,1)+E.substring(1).replace(p,function($,M){return M.toUpperCase()})},n.compareFieldsById=function(E,$){return E.id-$.id},n.decorateType=function(E,$){if(E.$type)return $&&E.$type.name!==$&&(n.decorateRoot.remove(E.$type),E.$type.name=$,n.decorateRoot.add(E.$type)),E.$type;t||(t=requireType());var M=new t($||E.name);return n.decorateRoot.add(M),M.ctor=E,Object.defineProperty(E,"$type",{value:M,enumerable:!1}),Object.defineProperty(E.prototype,"$type",{value:M,enumerable:!1}),M};var h=0;return n.decorateEnum=function(E){if(E.$type)return E.$type;e||(e=require_enum());var $=new e("Enum"+h++,E);return n.decorateRoot.add($),Object.defineProperty(E,"$type",{value:$,enumerable:!1}),$},n.setProperty=function(E,$,M,X){function Z(ye,be,we){var xe=be.shift();if(xe==="__proto__"||xe==="prototype")return ye;if(be.length>0)ye[xe]=Z(ye[xe]||{},be,we);else{var $e=ye[xe];if($e&&X)return ye;$e&&(we=[].concat($e).concat(we)),ye[xe]=we}return ye}if(typeof E!="object")throw TypeError("dst must be an object");
122if(!$)throw TypeError("path must be specified");return $=$.split("."),Z(E,$,M)},Object.defineProperty(n,"decorateRoot",{get:function(){return i.decorated||(i.decorated=new(requireRoot()))}}),util.exports}var hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,(function(n){var i=n,t=requireUtil(),e=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function o(d,p){var h=0,y={};for(p|=0;h<d.length;)y[e[h+p]]=d[h++];return y}i.basic=o([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),i.defaults=o([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",t.emptyArray,null]),i.long=o([0,0,0,1,1],7),i.mapKey=o([0,0,0,5,5,0,0,0,1,1,0,2],2),i.packed=o([1,5,0,0,0,5,5,0,0,0,1,1,0])})(types)),types}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=p;var n=requireObject();((p.prototype=Object.create(n.prototype)).constructor=p).className="Field";var i=require_enum(),t=requireTypes(),e=requireUtil(),o,d=/^required|optional|repeated$/;p.fromJSON=function(y,E){var $=new p(y,E.id,E.type,E.rule,E.extend,E.options,E.comment);return E.edition&&($._edition=E.edition),$._defaultEdition="proto3",$};function p(h,y,E,$,M,X,Z){if(e.isObject($)?(Z=M,X=$,$=M=void 0):e.isObject(M)&&(Z=X,X=M,M=void 0),n.call(this,h,X),!e.isInteger(y)||y<0)throw TypeError("id must be a non-negative integer");if(!e.isString(E))throw TypeError("type must be a string");if($!==void 0&&!d.test($=$.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(M!==void 0&&!e.isString(M))throw TypeError("extend must be a string");$==="proto3_optional"&&($="optional"),this.rule=$&&$!=="optional"?$:void 0,this.type=E,this.id=y,this.extend=M||void 0,this.repeated=$==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=e.Long?t.long[E]!==void 0:!1,this.bytes=E==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=Z}return Object.defineProperty(p.prototype,"required",{get:function(){return this._features.field_presence==="LEGACY_REQUIRED"}}),Object.defineProperty(p.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(p.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&this._features.message_encoding==="DELIMITED"}}),Object.defineProperty(p.prototype,"packed",{get:function(){return this._features.repeated_field_encoding==="PACKED"}}),Object.defineProperty(p.prototype,"hasPresence",{get:function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"}}),p.prototype.setOption=function(y,E,$){return n.prototype.setOption.call(this,y,E,$)},p.prototype.toJSON=function(y){var E=y?!!y.keepComments:!1;return e.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",E?this.comment:void 0])},p.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=t.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof i)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=e.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var y;
122e.base64.test(this.typeDefault)?e.base64.decode(this.typeDefault,y=e.newBuffer(e.base64.length(this.typeDefault)),0):e.utf8.write(this.typeDefault,y=e.newBuffer(e.utf8.length(this.typeDefault)),0),this.typeDefault=y}return this.map?this.defaultValue=e.emptyObject:this.repeated?this.defaultValue=e.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},p.prototype._inferLegacyProtoFeatures=function(y){if(y!=="proto2"&&y!=="proto3")return{};var E={};if(this.rule==="required"&&(E.field_presence="LEGACY_REQUIRED"),this.parent&&t.defaults[this.type]===void 0){var $=this.parent.get(this.type.split(".").pop());$&&$ instanceof o&&$.group&&(E.message_encoding="DELIMITED")}return this.getOption("packed")===!0?E.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&(E.repeated_field_encoding="EXPANDED"),E},p.prototype._resolveFeatures=function(y){return n.prototype._resolveFeatures.call(this,this._edition||y)},p.d=function(y,E,$,M){return typeof E=="function"?E=e.decorateType(E).name:E&&typeof E=="object"&&(E=e.decorateEnum(E).name),function(Z,ye){e.decorateType(Z.constructor).add(new p(ye,y,E,$,{default:M}))}},p._configure=function(y){o=y},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=e;var n=requireObject();((e.prototype=Object.create(n.prototype)).constructor=e).className="OneOf";var i=requireField(),t=requireUtil();function e(d,p,h,y){if(Array.isArray(p)||(h=p,p=void 0),n.call(this,d,h),!(p===void 0||Array.isArray(p)))throw TypeError("fieldNames must be an Array");this.oneof=p||[],this.fieldsArray=[],this.comment=y}e.fromJSON=function(p,h){return new e(p,h.oneof,h.options,h.comment)},e.prototype.toJSON=function(p){var h=p?!!p.keepComments:!1;return t.toObject(["options",this.options,"oneof",this.oneof,"comment",h?this.comment:void 0])};function o(d){if(d.parent)for(var p=0;p<d.fieldsArray.length;++p)d.fieldsArray[p].parent||d.parent.add(d.fieldsArray[p])}return e.prototype.add=function(p){if(!(p instanceof i))throw TypeError("field must be a Field");return p.parent&&p.parent!==this.parent&&p.parent.remove(p),this.oneof.push(p.name),this.fieldsArray.push(p),p.partOf=this,o(this),this},e.prototype.remove=function(p){if(!(p instanceof i))throw TypeError("field must be a Field");var h=this.fieldsArray.indexOf(p);if(h<0)throw Error(p+" is not a member of "+this);return this.fieldsArray.splice(h,1),h=this.oneof.indexOf(p.name),h>-1&&this.oneof.splice(h,1),p.partOf=null,this},e.prototype.onAdd=function(p){n.prototype.onAdd.call(this,p);for(var h=this,y=0;y<this.oneof.length;++y){var E=p.get(this.oneof[y]);E&&!E.partOf&&(E.partOf=h,h.fieldsArray.push(E))}o(this)},e.prototype.onRemove=function(p){for(var h=0,y;h<this.fieldsArray.length;++h)(y=this.fieldsArray[h]).parent&&y.parent.remove(y);n.prototype.onRemove.call(this,p)},Object.defineProperty(e.prototype,"isProto3Optional",{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var d=this.fieldsArray[0];return d.options!=null&&d.options.proto3_optional===!0}}),e.d=function(){for(var p=new Array(arguments.length),h=0;h<arguments.length;)p[h]=arguments[h++];return function(E,$){t.decorateType(E.constructor).add(new e($,p)),Object.defineProperty(E,$,{get:t.oneOfGetter(p),set:t.oneOfSetter(p)})}},oneof}var object,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1,object=h,h.className="ReflectionObject";const n=requireOneof();var i=requireUtil(),t,e={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE2024",default_symbol_visibility:"EXPORT_TOP_LEVEL"},o={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},d={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"},p={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY",enforce_naming_style:"STYLE_LEGACY",default_symbol_visibility:"EXPORT_ALL"};
122function h(y,E){if(!i.isString(y))throw TypeError("name must be a string");if(E&&!i.isObject(E))throw TypeError("options must be an object");this.options=E,this.parsedOptions=null,this.name=y,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(h.prototype,{root:{get:function(){for(var y=this;y.parent!==null;)y=y.parent;return y}},fullName:{get:function(){for(var y=[this.name],E=this.parent;E;)y.unshift(E.name),E=E.parent;return y.join(".")}}}),h.prototype.toJSON=function(){throw Error()},h.prototype.onAdd=function(E){this.parent&&this.parent!==E&&this.parent.remove(this),this.parent=E,this.resolved=!1;var $=E.root;$ instanceof t&&$._handleAdd(this)},h.prototype.onRemove=function(E){var $=E.root;$ instanceof t&&$._handleRemove(this),this.parent=null,this.resolved=!1},h.prototype.resolve=function(){return this.resolved?this:(this.root instanceof t&&(this.resolved=!0),this)},h.prototype._resolveFeaturesRecursive=function(E){return this._resolveFeatures(this._edition||E)},h.prototype._resolveFeatures=function(E){if(!this._featuresResolved){var $={};if(!E)throw new Error("Unknown edition for "+this.fullName);var M=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(E));if(this._edition){if(E==="proto2")$=Object.assign({},d);else if(E==="proto3")$=Object.assign({},p);else if(E==="2023")$=Object.assign({},o);else if(E==="2024")$=Object.assign({},e);else throw new Error("Unknown edition: "+E);this._features=Object.assign($,M||{}),this._featuresResolved=!0;return}if(this.partOf instanceof n){var X=Object.assign({},this.partOf._features);this._features=Object.assign(X,M||{})}else if(!this.declaringField)if(this.parent){var Z=Object.assign({},this.parent._features);this._features=Object.assign(Z,M||{})}else throw new Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},h.prototype._inferLegacyProtoFeatures=function(){return{}},h.prototype.getOption=function(E){if(this.options)return this.options[E]},h.prototype.setOption=function(E,$,M){return this.options||(this.options={}),/^features\./.test(E)?i.setProperty(this.options,E,$,M):(!M||this.options[E]===void 0)&&(this.getOption(E)!==$&&(this.resolved=!1),this.options[E]=$),this},h.prototype.setParsedOption=function(E,$,M){this.parsedOptions||(this.parsedOptions=[]);var X=this.parsedOptions;if(M){var Z=X.find(function(we){return Object.prototype.hasOwnProperty.call(we,E)});if(Z){var ye=Z[E];i.setProperty(ye,M,$)}else Z={},Z[E]=i.setProperty({},M,$),X.push(Z)}else{var be={};be[E]=$,X.push(be)}return this},h.prototype.setOptions=function(E,$){if(E)for(var M=Object.keys(E),X=0;X<M.length;++X)this.setOption(M[X],E[M[X]],$);return this},h.prototype.toString=function(){var E=this.constructor.className,$=this.fullName;return $.length?E+" "+$:E},h.prototype._editionToJSON=function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},h._configure=function(y){t=y},object}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=e;var n=requireObject();((e.prototype=Object.create(n.prototype)).constructor=e).className="Enum";var i=requireNamespace(),t=requireUtil();function e(o,d,p,h,y,E){if(n.call(this,o,p),d&&typeof d!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=h,this.comments=y||{},this.valuesOptions=E,this._valuesFeatures={},this.reserved=void 0,d)for(var $=Object.keys(d),M=0;M<$.length;++M)typeof d[$[M]]=="number"&&(this.valuesById[this.values[$[M]]=d[$[M]]]=$[M])}return e.prototype._resolveFeatures=function(d){return d=this._edition||d,n.prototype._resolveFeatures.call(this,d),Object.keys(this.values).forEach(p=>{var h=Object.assign({},this._features);this._valuesFeatures[p]=Object.assign(h,this.valuesOptions&&this.valuesOptions[p]&&this.valuesOptions[p].features)}),this}
122,e.fromJSON=function(d,p){var h=new e(d,p.values,p.options,p.comment,p.comments);return h.reserved=p.reserved,p.edition&&(h._edition=p.edition),h._defaultEdition="proto3",h},e.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return t.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",p?this.comment:void 0,"comments",p?this.comments:void 0])},e.prototype.add=function(d,p,h,y){if(!t.isString(d))throw TypeError("name must be a string");if(!t.isInteger(p))throw TypeError("id must be an integer");if(this.values[d]!==void 0)throw Error("duplicate name '"+d+"' in "+this);if(this.isReservedId(p))throw Error("id "+p+" is reserved in "+this);if(this.isReservedName(d))throw Error("name '"+d+"' is reserved in "+this);if(this.valuesById[p]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+p+" in "+this);this.values[d]=p}else this.valuesById[this.values[d]=p]=d;return y&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[d]=y||null),this.comments[d]=h||null,this},e.prototype.remove=function(d){if(!t.isString(d))throw TypeError("name must be a string");var p=this.values[d];if(p==null)throw Error("name '"+d+"' does not exist in "+this);return delete this.valuesById[p],delete this.values[d],delete this.comments[d],this.valuesOptions&&delete this.valuesOptions[d],this},e.prototype.isReservedId=function(d){return i.isReservedId(this.reserved,d)},e.prototype.isReservedName=function(d){return i.isReservedName(this.reserved,d)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=o;var n=require_enum(),i=requireTypes(),t=requireUtil();function e(d,p,h,y){return p.delimited?d("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",h,y,(p.id<<3|3)>>>0,(p.id<<3|4)>>>0):d("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",h,y,(p.id<<3|2)>>>0)}function o(d){for(var p=t.codegen(["m","w"],d.name+"$encode")("if(!w)")("w=Writer.create()"),h,y,E=d.fieldsArray.slice().sort(t.compareFieldsById),h=0;h<E.length;++h){var $=E[h].resolve(),M=d._fieldsArray.indexOf($),X=$.resolvedType instanceof n?"int32":$.type,Z=i.basic[X];y="m"+t.safeProp($.name),$.map?(p("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",y,$.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",y)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",($.id<<3|2)>>>0,8|i.mapKey[$.keyType],$.keyType),Z===void 0?p("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",M,y):p(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|Z,X,y),p("}")("}")):$.repeated?(p("if(%s!=null&&%s.length){",y,y),$.packed&&i.packed[X]!==void 0?p("w.uint32(%i).fork()",($.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",y)("w.%s(%s[i])",X,y)("w.ldelim()"):(p("for(var i=0;i<%s.length;++i)",y),Z===void 0?e(p,$,M,y+"[i]"):p("w.uint32(%i).%s(%s[i])",($.id<<3|Z)>>>0,X,y)),p("}")):($.optional&&p("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",y,$.name),Z===void 0?e(p,$,M,y):p("w.uint32(%i).%s(%s)",($.id<<3|Z)>>>0,X,y))}return p("return w")}return encoder_1}var hasRequiredIndexLight;function requireIndexLight(){if(hasRequiredIndexLight)return indexLight.exports;hasRequiredIndexLight=1;var n=indexLight.exports=requireIndexMinimal();n.build="light";function i(e,o,d){return typeof o=="function"?(d=o,o=new n.Root):o||(o=new n.Root),o.load(e,d)}n.load=i;function t(e,o){return o||(o=new n.Root),o.loadSync(e)}return n.loadSync=t,n.encoder=requireEncoder(),n.decoder=requireDecoder(),n.verifier=requireVerifier(),n.converter=requireConverter(),n.ReflectionObject=requireObject(),n.Namespace=requireNamespace(),n.Root=requireRoot(),n.Enum=require_enum(),n.Type=requireType(),n.Field=requireField(),n.OneOf=requireOneof(),n.MapField=requireMapfield(),n.Service=requireService(),n.Method=requireMethod(),n.Message=requireMessage(),n.wrappers=requireWrappers(),n.types=requireTypes(),n.util=requireUtil(),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type),indexLight.exports}var tokenize_1,hasRequiredTokenize;function requireTokenize(){if(hasRequiredTokenize)return tokenize_1;hasRequiredTokenize=1,tokenize_1=$;var n=/[\s{}=;:[\],'"()<>]/g,i=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,t=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,e=/^ *[*/]+ */,o=/^\s*\*?\/*/,d=/\n/g,p=/\s/,h=/\\(.?)/g,y={0:"\0",r:"\r",n:` 123`,t:" "};function E(M){return M.replace(h,function(X,Z){switch(Z){case"\\":case"":return Z;default:return y[Z]||""}})}$.unescape=E;function $(M,X){M=M.toString();var Z=0,ye=M.length,be=1,we=0,xe={},$e=[],Ne=null;function Fe(ze){return Error("illegal "+ze+" (line "+be+")")}function De(){var ze=Ne==="'"?t:i;ze.lastIndex=Z-1;var st=ze.exec(M);if(!st)throw Fe("string");return Z=ze.lastIndex,qe(Ne),Ne=null,E(st[1])}function Le(ze){return M.charAt(ze)}function He(ze,st,at){var tt={type:M.charAt(ze++),lineEmpty:!1,leading:at},pt;X?pt=2:pt=3;var Be=ze-pt,Ge;do if(--Be<0||(Ge=M.charAt(Be))===` 124`){tt.lineEmpty=!0;break}while(Ge===" "||Ge===" ");for(var it=M.substring(ze,st).split(d),Ue=0;Ue<it.length;++Ue)it[Ue]=it[Ue].replace(X?o:e,"").trim();tt.text=it.join(` 125`).trim(),xe[be]=tt,we=be}function Ke(ze){var st=je(ze),at=M.substring(ze,st),tt=/^\s*\/\//.test(at);return tt}function je(ze){for(var st=ze;st<ye&&Le(st)!==` 126`;)st++;return st}
126function Ve(){if($e.length>0)return $e.shift();if(Ne)return De();var ze,st,at,tt,pt,Be=Z===0;do{if(Z===ye)return null;for(ze=!1;p.test(at=Le(Z));)if(at===` 127`&&(Be=!0,++be),++Z===ye)return null;if(Le(Z)==="/"){if(++Z===ye)throw Fe("comment");if(Le(Z)==="/")if(X){if(tt=Z,pt=!1,Ke(Z-1)){pt=!0;do if(Z=je(Z),Z===ye||(Z++,!Be))break;while(Ke(Z))}else Z=Math.min(ye,je(Z)+1);pt&&(He(tt,Z,Be),Be=!0),be++,ze=!0}else{for(pt=Le(tt=Z+1)==="/";Le(++Z)!==` 128`;)if(Z===ye)return null;++Z,pt&&(He(tt,Z-1,Be),Be=!0),++be,ze=!0}else if((at=Le(Z))==="*"){tt=Z+1,pt=X||Le(tt)==="*";do{if(at===` 129`&&++be,++Z===ye)throw Fe("comment");st=at,at=Le(Z)}while(st!=="*"||at!=="/");++Z,pt&&(He(tt,Z-2,Be),Be=!0),ze=!0}else return"/"}}while(ze);var Ge=Z;n.lastIndex=0;var it=n.test(Le(Ge++));if(!it)for(;Ge<ye&&!n.test(Le(Ge));)++Ge;var Ue=M.substring(Z,Z=Ge);return(Ue==='"'||Ue==="'")&&(Ne=Ue),Ue}function qe(ze){$e.push(ze)}function Ye(){if(!$e.length){var ze=Ve();if(ze===null)return null;qe(ze)}return $e[0]}function et(ze,st){var at=Ye(),tt=at===ze;if(tt)return Ve(),!0;if(!st)throw Fe("token '"+at+"', '"+ze+"' expected");return!1}function Qe(ze){var st=null,at;return ze===void 0?(at=xe[be-1],delete xe[be-1],at&&(X||at.type==="*"||at.lineEmpty)&&(st=at.leading?at.text:null)):(we<ze&&Ye(),at=xe[ze],delete xe[ze],at&&!at.lineEmpty&&(X||at.type==="/")&&(st=at.leading?null:at.text)),st}return Object.defineProperty({next:Ve,peek:Ye,push:qe,skip:et,cmnt:Qe},"line",{get:function(){return be}})}return tokenize_1}var parse_1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1,parse_1=De,De.filename=null,De.defaults={keepCase:!1};var n=requireTokenize(),i=requireRoot(),t=requireType(),e=requireField(),o=requireMapfield(),d=requireOneof(),p=require_enum(),h=requireService(),y=requireMethod(),E=requireObject(),$=requireTypes(),M=requireUtil(),X=/^[1-9][0-9]*$/,Z=/^-?[1-9][0-9]*$/,ye=/^0[x][0-9a-fA-F]+$/,be=/^-?0[x][0-9a-fA-F]+$/,we=/^0[0-7]+$/,xe=/^-?0[0-7]+$/,$e=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,Ne=/^[a-zA-Z_][a-zA-Z_0-9]*$/,Fe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function De(Le,He,Ke){He instanceof i||(Ke=He,He=new i),Ke||(Ke=De.defaults);var je=Ke.preferTrailingComment||!1,Ve=n(Le,Ke.alternateCommentMode||!1),qe=Ve.next,Ye=Ve.push,et=Ve.peek,Qe=Ve.skip,ze=Ve.cmnt,st=!0,at,tt,pt,Be="proto2",Ge=He,it=[],Ue={},Ot=Ke.keepCase?function(rt){return rt}
129:M.camelCase;function Rt(){it.forEach(rt=>{rt._edition=Be,Object.keys(Ue).forEach(lt=>{rt.getOption(lt)===void 0&&rt.setOption(lt,Ue[lt],!0)})})}function dt(rt,lt,ct){var yt=De.filename;return ct||(De.filename=null),Error("illegal "+(lt||"token")+" '"+rt+"' ("+(yt?yt+", ":"")+"line "+Ve.line+")")}function Tt(){var rt=[],lt;do{if((lt=qe())!=='"'&<!=="'")throw dt(lt);rt.push(qe()),Qe(lt),lt=et()}while(lt==='"'||lt==="'");return rt.join("")}function ht(rt){var lt=qe();switch(lt){case"'":case'"':return Ye(lt),Tt();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return zt(lt,!0)}catch{if(Fe.test(lt))return lt;throw dt(lt,"value")}}function Ft(rt,lt){var ct,yt;do if(lt&&((ct=et())==='"'||ct==="'")){var ft=Tt();if(rt.push(ft),Be>=2023)throw dt(ft,"id")}else try{rt.push([yt=$t(qe()),Qe("to",!0)?$t(qe()):yt])}catch(qt){if(lt&&Fe.test(ct)&&Be>=2023)rt.push(ct);else throw qt}while(Qe(",",!0));var At={options:void 0};At.setOption=function(qt,rn){this.options===void 0&&(this.options={}),this.options[qt]=rn},Gt(At,function(rn){if(rn==="option")Kt(At,rn),Qe(";");else throw dt(rn)},function(){Lt(At)})}function zt(rt,lt){var ct=1;switch(rt.charAt(0)==="-"&&(ct=-1,rt=rt.substring(1)),rt){case"inf":case"INF":case"Inf":return ct*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(X.test(rt))return ct*parseInt(rt,10);if(ye.test(rt))return ct*parseInt(rt,16);if(we.test(rt))return ct*parseInt(rt,8);if($e.test(rt))return ct*parseFloat(rt);throw dt(rt,"number",lt)}function $t(rt,lt){switch(rt){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!lt&&rt.charAt(0)==="-")throw dt(rt,"id");if(Z.test(rt))return parseInt(rt,10);if(be.test(rt))return parseInt(rt,16);if(xe.test(rt))return parseInt(rt,8);throw dt(rt,"id")}function Yt(){if(at!==void 0)throw dt("package");if(at=qe(),!Fe.test(at))throw dt(at,"name");Ge=Ge.define(at),Qe(";")}function ln(){var rt=et(),lt;switch(rt){case"option":if(Be<"2024")throw dt("option");qe(),Tt(),Qe(";");return;case"weak":lt=pt||(pt=[]),qe();break;case"public":qe();default:lt=tt||(tt=[]);break}rt=Tt(),Qe(";"),lt.push(rt)}function Qt(){if(Qe("="),Be=Tt(),Be<2023)throw dt(Be,"syntax");Qe(";")}function kn(){if(Qe("="),Be=Tt(),!["2023","2024"].includes(Be))throw dt(Be,"edition");Qe(";")}function en(rt,lt){switch(lt){case"option":return Kt(rt,lt),Qe(";"),!0;case"message":return on(rt,lt),!0;case"enum":return dn(rt,lt),!0;case"export":case"local":return Be<"2024"||(lt=qe(),lt==="export"||lt==="local")||lt!=="message"&<!=="enum"?!1:en(rt,lt);case"service":return jt(rt,lt),!0;case"extend":return Vt(rt,lt),!0}return!1}function Gt(rt,lt,ct){var yt=Ve.line;if(rt&&(typeof rt.comment!="string"&&(rt.comment=ze()),rt.filename=De.filename),Qe("{",!0)){for(var ft;(ft=qe())!=="}";)lt(ft);Qe(";",!0)}else ct&&ct(),Qe(";"),rt&&(typeof rt.comment!="string"||je)&&(rt.comment=ze(yt)||rt.comment)}function on(rt,lt){if(!Ne.test(lt=qe()))throw dt(lt,"type name");var ct=new t(lt);Gt(ct,function(ft){if(!en(ct,ft))switch(ft){case"map":vn(ct);break;case"required":if(Be!=="proto2")throw dt(ft);case"repeated":Wt(ct,ft);break;case"optional":if(Be==="proto3")Wt(ct,"proto3_optional");else{if(Be!=="proto2")throw dt(ft);Wt(ct,"optional")}break;case"oneof":Rn(ct,ft);break;case"extensions":Ft(ct.extensions||(ct.extensions=[]));break;case"reserved":Ft(ct.reserved||(ct.reserved=[]),!0);break;default:if(Be==="proto2"||!Fe.test(ft))throw dt(ft);Ye(ft),Wt(ct,"optional");break}}),rt.add(ct),rt===Ge&&it.push(ct)}function Wt(rt,lt,ct){var yt=qe();if(yt==="group"){tn(rt,lt);return}for(;yt.endsWith(".")||et().startsWith(".");)yt+=qe();if(!Fe.test(yt))throw dt(yt,"type");var ft=qe();if(!Ne.test(ft))throw dt(ft,"name");ft=Ot(ft),Qe("=");var At=new e(ft,$t(qe()),yt,lt,ct);if(Gt(At,function(Zt){if(Zt==="option")Kt(At,Zt),Qe(";");else throw dt(Zt)},function(){Lt(At)}),lt==="proto3_optional"){var qt=new d("_"+ft);At.setOption("proto3_optional",!0),qt.add(At),rt.add(qt)}else rt.add(At);rt===Ge&&it.push(At)}function tn(rt,lt){if(Be>=2023)throw dt("group");var ct=qe();if(!Ne.test(ct))throw dt(ct,"name");var yt=M.lcFirst(ct);ct===yt&&(ct=M.ucFirst(ct)),Qe("=");var ft=$t(qe()),At=new t(ct);At.group=!0;var qt=new e(yt,ft,ct,lt);qt.filename=De.filename,Gt(At,function(Zt){switch(Zt){case"option":Kt(At,Zt),Qe(";");break;case"required":case"repeated":Wt(At,Zt);break;case"optional":Be==="proto3"?Wt(At,"proto3_optional"):Wt(At,"optional");break;case"message":on(At,Zt);break;case"enum":dn(At,Zt);break;case"reserved":Ft(At.reserved||(At.reserved=[]),!0);break;case"export":case"local":if(Be<"2024")throw dt(Zt);switch(Zt=qe(),Zt){case"message":on(At,Zt);break;case"enum":on(At,Zt);break;default:throw dt(Zt)}break;default:throw dt(Zt)}}),rt.add(At).add(qt)}function vn(rt){Qe("<");var lt=qe();if($.mapKey[lt]===void 0)throw dt(lt,"type");Qe(",");var ct=qe();if(!Fe.test(ct))throw dt(ct,"type");Qe(">");var yt=qe();if(!Ne.test(yt))throw dt(yt,"name");Qe("=");var ft=new o(Ot(yt),$t(qe()),lt,ct);Gt(ft,function(qt){if(qt==="option")Kt(ft,qt),Qe(";");else throw dt(qt)},function(){Lt(ft)}),rt.add(ft)}function Rn(rt,lt){if(!Ne.test(lt=qe()))throw dt(lt,"name");var ct=new d(Ot(lt));Gt(ct,function(ft){ft==="option"?(Kt(ct,ft),Qe(";")):(Ye(ft),Wt(ct,"optional"))}),rt.add(ct)}function dn(rt,lt){if(!Ne.test(lt=qe()))throw dt(lt,"name");var ct=new p(lt);Gt(ct,function(ft){switch(ft){case"option":Kt(ct,ft),Qe(";");break;case"reserved":Ft(ct.reserved||(ct.reserved=[]),!0),ct.reserved===void 0&&(ct.reserved=[]);break;default:_n(ct,ft)}}),rt.add(ct),rt===Ge&&it.push(ct)}function _n(rt,lt){if(!Ne.test(lt))throw dt(lt,"name");Qe("=");var ct=$t(qe(),!0),yt={options:void 0};yt.getOption=function(ft){return this.options[ft]},yt.setOption=function(ft,At){E.prototype.setOption.call(yt,ft,At)},yt.setParsedOption=function(){},Gt(yt,function(At){if(At==="option")Kt(yt,At),Qe(";");else throw dt(At)},function(){Lt(yt)}),rt.add(lt,ct,yt.comment,yt.parsedOptions||yt.options)}function Kt(rt,lt){var ct,yt,ft=!0;for(lt==="option"&&(lt=qe());lt!=="=";){if(lt==="("){var At=qe();Qe(")"),lt="("+At+")"}if(ft){if(ft=!1,lt.includes(".")&&!lt.includes("(")){var qt=lt.split(".");ct=qt[0]+".",lt=qt[1];continue}ct=lt}else yt=yt?yt+=lt:lt;lt=qe()}var rn=yt?ct.concat(yt):ct,Zt=ut(rt,rn);yt=yt&&yt[0]==="."?yt.slice(1):yt,ct=ct&&ct[ct.length-1]==="."?ct.slice(0,-1):ct,xt(rt,ct,Zt,yt)}function ut(rt,lt){if(Qe("{",!0)){for(var ct={};!Qe("}",!0);){if(!Ne.test(wt=qe()))throw dt(wt,"name");if(wt===null)throw dt(wt,"end of input");var yt,ft=wt;if(Qe(":",!0),et()==="{")yt=ut(rt,lt+"."+wt);else if(et()==="["){yt=[];var At;if(Qe("[",!0)){do At=ht(),yt.push(At);while(Qe(",",!0));Qe("]"),typeof At<"u"&&vt(rt,lt+"."+wt,At)}}else yt=ht(),vt(rt,lt+"."+wt,yt);var qt=ct[ft];qt&&(yt=[].concat(qt).concat(yt)),ct[ft]=yt,Qe(",",!0),Qe(";",!0)}return ct}var rn=ht();return vt(rt,lt,rn),rn}function vt(rt,lt,ct){if(Ge===rt&&/^features\./.test(lt)){Ue[lt]=ct;return}rt.setOption&&rt.setOption(lt,ct)}function xt(rt,lt,ct,yt){rt.setParsedOption&&rt.setParsedOption(lt,ct,yt)}function Lt(rt){if(Qe("[",!0)){do Kt(rt,"option");
129while(Qe(",",!0));Qe("]")}return rt}function jt(rt,lt){if(!Ne.test(lt=qe()))throw dt(lt,"service name");var ct=new h(lt);Gt(ct,function(ft){if(!en(ct,ft))if(ft==="rpc")Et(ct,ft);else throw dt(ft)}),rt.add(ct),rt===Ge&&it.push(ct)}function Et(rt,lt){var ct=ze(),yt=lt;if(!Ne.test(lt=qe()))throw dt(lt,"name");var ft=lt,At,qt,rn,Zt;if(Qe("("),Qe("stream",!0)&&(qt=!0),!Fe.test(lt=qe())||(At=lt,Qe(")"),Qe("returns"),Qe("("),Qe("stream",!0)&&(Zt=!0),!Fe.test(lt=qe())))throw dt(lt);rn=lt,Qe(")");var fr=new y(ft,yt,At,rn,qt,Zt);fr.comment=ct,Gt(fr,function(pr){if(pr==="option")Kt(fr,pr),Qe(";");else throw dt(pr)}),rt.add(fr)}function Vt(rt,lt){if(!Fe.test(lt=qe()))throw dt(lt,"reference");var ct=lt;Gt(null,function(ft){switch(ft){case"required":case"repeated":Wt(rt,ft,ct);break;case"optional":Be==="proto3"?Wt(rt,"proto3_optional",ct):Wt(rt,"optional",ct);break;default:if(Be==="proto2"||!Fe.test(ft))throw dt(ft);Ye(ft),Wt(rt,"optional",ct);break}})}for(var wt;(wt=qe())!==null;)switch(wt){case"package":if(!st)throw dt(wt);Yt();break;case"import":if(!st)throw dt(wt);ln();break;case"syntax":if(!st)throw dt(wt);Qt();break;case"edition":if(!st)throw dt(wt);kn();break;case"option":Kt(Ge,wt),Qe(";",!0);break;default:if(en(Ge,wt)){st=!1;continue}throw dt(wt)}return Rt(),De.filename=null,{package:at,imports:tt,weakImports:pt,root:He}}return parse_1}var common_1,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common_1;hasRequiredCommon=1,common_1=i;var n=/\/|\./;function i(e,o){n.test(e)||(e="google/protobuf/"+e+".proto",o={nested:{google:{nested:{protobuf:{nested:o}}}}}),i[e]=o}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var t;return i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(o){return i[o]||null},common_1}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src.exports;hasRequiredSrc=1;var n=src.exports=requireIndexLight();return n.build="full",n.tokenize=requireTokenize(),n.parse=requireParse(),n.common=requireCommon(),n.Root._configure(n.Type,n.parse,n.common),src.exports}var protobufjs,hasRequiredProtobufjs;function requireProtobufjs(){return hasRequiredProtobufjs||(hasRequiredProtobufjs=1,protobufjs=requireSrc()),protobufjs}var protobufjsExports=requireProtobufjs(),dist={},Collector={},hasRequiredCollector;function requireCollector(){if(hasRequiredCollector)return Collector;hasRequiredCollector=1,Object.defineProperty(Collector,"__esModule",{value:!0}),Collector.Collector=void 0;let n=class{constructor(t){this.emit=(...e)=>{t.emitCollecting(this,e)}}};return Collector.Collector=n,Collector}var CollectorArray={},hasRequiredCollectorArray;function requireCollectorArray(){if(hasRequiredCollectorArray)return CollectorArray;hasRequiredCollectorArray=1,Object.defineProperty(CollectorArray,"__esModule",{value:!0}),CollectorArray.CollectorArray=void 0;const n=requireCollector();let i=class extends n.Collector{constructor(){super(...arguments),this.result=[]}handleResult(e){return this.result.push(e),!0}getResult(){return this.result}reset(){this.result.length=0}};return CollectorArray.CollectorArray=i,CollectorArray}var CollectorLast={},hasRequiredCollectorLast;function requireCollectorLast(){if(hasRequiredCollectorLast)return CollectorLast;hasRequiredCollectorLast=1,Object.defineProperty(CollectorLast,"__esMo
129dule",{value:!0}),CollectorLast.CollectorLast=void 0;const n=requireCollector();let i=class extends n.Collector{handleResult(e){return this.result=e,!0}getResult(){return this.result}reset(){delete this.result}};return CollectorLast.CollectorLast=i,CollectorLast}var CollectorUntil0={},hasRequiredCollectorUntil0;function requireCollectorUntil0(){if(hasRequiredCollectorUntil0)return CollectorUntil0;hasRequiredCollectorUntil0=1,Object.defineProperty(CollectorUntil0,"__esModule",{value:!0}),CollectorUntil0.CollectorUntil0=void 0;const n=requireCollector();let i=class extends n.Collector{constructor(){super(...arguments),this.result=!1}handleResult(e){return this.result=e,this.result}getResult(){return this.result}reset(){this.result=!1}};return CollectorUntil0.CollectorUntil0=i,CollectorUntil0}var CollectorWhile0={},hasRequiredCollectorWhile0;function requireCollectorWhile0(){if(hasRequiredCollectorWhile0)return CollectorWhile0;hasRequiredCollectorWhile0=1,Object.defineProperty(CollectorWhile0,"__esModule",{value:!0}),CollectorWhile0.CollectorWhile0=void 0;const n=requireCollector();let i=class extends n.Collector{constructor(){super(...arguments),this.result=!1}handleResult(e){return this.result=e,!this.result}getResult(){return this.result}reset(){this.result=!1}};return CollectorWhile0.CollectorWhile0=i,CollectorWhile0}var Signal={},SignalConnection={},hasRequiredSignalConnection;function requireSignalConnection(){if(hasRequiredSignalConnection)return SignalConnection;hasRequiredSignalConnection=1,Object.defineProperty(SignalConnection,"__esModule",{value:!0}),SignalConnection.SignalConnectionImpl=void 0;class n{constructor(t){this.link=t}disconnect(){return this.link.unlink()}set enabled(t){this.link.setEnabled(t)}get enabled(){return this.link.isEnabled()}}return SignalConnection.SignalConnectionImpl=n,SignalConnection}var SignalLink={},hasRequiredSignalLink;function requireSignalLink(){if(hasRequiredSignalLink)return SignalLink;hasRequiredSignalLink=1,Object.defineProperty(SignalLink,"__esModule",{value:!0}),SignalLink.SignalLink=void 0;let n=class ad{constructor(t,e,o){this.enabled=!0,this.newLink=!1,this.prev=t??this,this.next=e??this,this.order=o.order,this.isPublic=o.isPublic,this.callback=o.callback,this.onUnlink=o.onUnlink}isEnabled(){return this.enabled&&!this.newLink}setEnabled(t){this.enabled=t}unlink(){return this.callback?(delete this.callback,this.next.prev=this.prev,this.prev.next=this.next,this.onUnlink(),!0):!1}insert(t){const{order:e}=t;let o=this.prev;for(;o!==this&&!(o.order<=e);)o=o.prev;const d=new ad(o,o.next,t);return o.next=d,d.next.prev=d,d}};return SignalLink.SignalLink=n,SignalLink}var hasRequiredSignal;function requireSignal(){if(hasRequiredSignal)return Signal;hasRequiredSignal=1,Object.defineProperty(Signal,"__esModule",{value:!0}),Signal.Signal=void 0;const n=requireSignalConnection(),i=requireSignalLink(),t={order:0,isPublic:!0,onUnlink(){}};let e=class{constructor(){this.head=new i.SignalLink(null,null,t),this.hasNewLinks=!1,this.emitDepth=0,this.connectionsCount=0,this.onUnlink=()=>{this.connectionsCount--}}getConnectionsCount(){return this.connectionsCount}hasConnections(){return this.connectionsCount>0}connect(d,{order:p=0,isPublic:h=!0}={}){this.connectionsCount++;const y=this.head.insert({callback:d,order:p,isPublic:h,onUnlink:this.onUnlink});return this.emitDepth>0&&(this.hasNewLinks=!0,y.newLink=!0),new n.SignalConnectionImpl(y)}disconnect(d){for(let p=this.head.next;p!==this.head;p=p.next)if(p.callback===d)return p.unlink(),!0;return!1}disconnectAll(){let{next:d}=this.head;for(;d!==this.head;)d.isPublic&&d.unlink(),d=d.next}emit(...d){this.emitDepth++;for(let p=this.head.next;p!==this.head;p=p.next)p.isEnabled()&&p.callback&&p.callback.apply(null,d);this.emitDepth--,this.unsetNewLink()}emitCollecting(d,p){this.emitDepth++;for(let h=this.head.next;h!==this.head;h=h.next)if(h.isEnabled()&&h.callback){const y=h.callback.apply(null,p);if(!d.handleResult(y))break}this.emitDepth--,this.unsetNewLink()}unsetNewLink(){if(this.hasNewLinks&&this.emitDepth===0){for(let d=this.head.next;d!==this.head;d=d.next)d.newLink=!1;this.hasNewLinks=!1}}};return Signal.Signal=e,Signal}var SignalConnections={},hasRequiredSignalConnections;function requireSignalConnections(){if(hasRequiredSignalConnections)return SignalConnections;hasRequiredSignalConnections=1,Object.defineProperty(SignalConnections,"__esModule",{value:!0}),SignalConnections.SignalConnections=void 0;let n=class{constructor(){this.list=[]}add(t){this.list.push(t)}disconnectAll(){for(const t of this.list)t.disconnect();this.list=[]}getCount(){return this.list.length}isEmpty(){return this.list.length===0}};return SignalConnections.SignalConnections=n,SignalConnections}var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.SignalConnections=n.Signal=n.CollectorWhile0=n.CollectorUntil0=n.CollectorLast=n.CollectorArray=n.Collector=void 0;var i=requireCollector();Object.defineProperty(n,"Collector",{enumerable:!0,get:function(){return i.Collector}});var t=requireCollectorArray();Object.defineProperty(n,"CollectorArray",{enumerable:!0,get:function(){return t.CollectorArray}});var e=requireCollectorLast();Object.defineProperty(n,"CollectorLast",{enumerable:!0,get:function(){return e.CollectorLast}}
129);var o=requireCollectorUntil0();Object.defineProperty(n,"CollectorUntil0",{enumerable:!0,get:function(){return o.CollectorUntil0}});var d=requireCollectorWhile0();Object.defineProperty(n,"CollectorWhile0",{enumerable:!0,get:function(){return d.CollectorWhile0}});var p=requireSignal();Object.defineProperty(n,"Signal",{enumerable:!0,get:function(){return p.Signal}});var h=requireSignalConnections();Object.defineProperty(n,"SignalConnections",{enumerable:!0,get:function(){return h.SignalConnections}})})(dist)),dist}var distExports=requireDist();function createFormsData(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtons:new Map}}const LOG$d=loglevelExports.getLogger("WidgetStateManager");function microsToIsoString(n,i){const t=new Date(n/1e3).toISOString();switch(i){case"date":return t.slice(0,10);case"time":{const e=t.slice(11,19);return e.endsWith(":00")?e.slice(0,5):e}case"datetime":return t.slice(17,19)==="00"?t.slice(0,16):t.slice(0,19)}}class WidgetStateDict{constructor(){this.widgetStates=new Map}createState(i){const t=new WidgetState({id:i});return this.widgetStates.set(i,t),t}getState(i){return this.widgetStates.get(i)}deleteState(i){this.widgetStates.delete(i)}removeInactive(i){this.widgetStates.forEach((t,e)=>{i.has(e)||this.widgetStates.delete(e)})}clear(){this.widgetStates.clear()}get isEmpty(){return this.widgetStates.size===0}createWidgetStatesMsg(){const i=new WidgetStates;return this.widgetStates.forEach(t=>i.widgets.push(t)),i}copyFrom(i){i.widgetStates.forEach((t,e)=>{this.widgetStates.set(e,t)})}forEach(i){this.widgetStates.forEach(i)}}class FormState{constructor(){this.widgetStates=new WidgetStateDict,this.clearOnSubmit=!1,this.enterToSubmit=!0,this.formCleared=new distExports.Signal}get hasPendingChanges(){return!this.widgetStates.isEmpty}}class WidgetStateManager{constructor(i){this.widgetStates=new WidgetStateDict,this.forms=new Map,this.elementStates=new Map,this.pendingTriggerIds=new Set,this.triggerFlushResolvers=[],this.flushScheduled=!1,this.hasFragmentIdConflict=!1,this.boundWidgets=new Map,this.paramKeyToWidgetId=new Map,this.props=i,this.formsData=createFormsData()}addFormClearedListener(i,t){return this.getOrCreateFormState(i).formCleared.connect(t)}setFormSubmitBehaviors(i,t,e=!0){const o=this.getOrCreateFormState(i);o.clearOnSubmit=t,o.enterToSubmit=e}submitForm(i,t,e){if(!isValidFormId(i))throw new Error(`invalid formID '${i}'`);const o=this.getOrCreateFormState(i),d=this.formsData.submitButtons.get(i);let p;e!==void 0?p=e:d!==void 0&&d.length>0&&(p=d[0]),p&&(this.createWidgetState(p,{fromUi:!0}).triggerValue=!0),this.widgetStates.copyFrom(o.widgetStates),o.widgetStates.clear(),this.sendUpdateWidgetsMessage(t),this.syncFormsWithPendingChanges(),p&&this.deleteWidgetState(p.id),o.clearOnSubmit&&o.formCleared.emit()}setChatInputValue(i,t,e,o){this.createWidgetState(i,e).chatInputValue=new ChatInputValue(t),this.pendingTriggerIds.add(i.id),this.scheduleFlush(o)}setTriggerValue(i,t,e,o){let d=this.getWidgetState(i);if(d===void 0&&(d=this.createWidgetState(i,t)),o===void 0)d.triggerValue=!0;else{const p=o;try{if(isNullOrUndefined$1(d.jsonTriggerValue))d.jsonTriggerValue=JSON.stringify([p]);else{const h=d.jsonTriggerValue,y=JSON.parse(h),E=Array.isArray(y)?y:[y];E.push(p),d.jsonTriggerValue=JSON.stringify(E)}}catch(h){LOG$d.error("Failed to parse or stringify widgetState.jsonTriggerValue:",h),d.jsonTriggerValue=JSON.stringify([d.jsonTriggerValue,p])}}return this.pendingTriggerIds.add(i.id),new Promise(p=>{this.triggerFlushResolvers.push(p),this.scheduleFlush(e)})}getBoolValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="boolValue")return t.boolValue}setBoolValue(i,t,e,o){this.createWidgetState(i,e).boolValue=t,this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}getIntValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="intValue")return requireNumberInt(t.intValue)}setIntValue(i,t,e,o){this.createWidgetState(i,e).intValue=t,this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}getDoubleValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="doubleValue")return t.doubleValue}setDoubleValue(i,t,e,o){this.createWidgetState(i,e).doubleValue=t,this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}getStringValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="stringValue")return t.stringValue}setStringValue(i,t,e,o){this.createWidgetState(i,e).stringValue=t,this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}setStringArrayValue(i,t,e,o){this.createWidgetState(i,e).stringArrayValue=new StringArray({data:t}),this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}getStringArrayValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="stringArrayValue"&¬NullOrUndefined(t.stringArrayValue)&¬NullOrUndefined(t.stringArrayValue.data))return t.stringArrayValue.data}getDoubleArrayValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="doubleArrayValue"&¬NullOrUndefined(t.doubleArrayValue)&¬NullOrUndefined(t.doubleArrayValue.data))return t.doubleArrayValue.data}setDoubleArrayValue(i,t,e,o){const d=t.filter(p=>p!=null&&!Number.isNaN(p));if(d.length===0){LOG$d.warn(`setDoubleArrayValue: All values were invalid (NaN/null/undefined) for widget "${i.id}". Preserving previous state.`),this.maybeSyncValueToUrl(i.id,e,[]);return}this.createWidgetState(i,e).doubleArrayValue=new DoubleArray({data:d}),this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,d)}getIntArrayValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="intArrayValue"&¬NullOrUndefined(t.intArrayValue)&¬NullOrUndefined(t.intArrayValue.data))return t.intArrayValue.data.map(requireNumberInt)}setIntArrayValue(i,t,e,o){this.createWidgetState(i,e).intArrayValue=new SInt64Array({data:t}),this.onWidgetValueChanged(i.formId,e,o),this.maybeSyncValueToUrl(i.id,e,t)}getJsonValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="jsonValue")return t.jsonValue}setJsonValue(i,t,e,o){this.createWidgetState(i,e).jsonValue=JSON.stringify(t),this.onWidgetValueChanged(i.formId,e,o)}setArrowValue(i,t,e,o){this.createWidgetState(i,e).arrowValue=t,this.onWidgetValueChanged(i.formId,e,o)}getArrowValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="arrowValue"&¬NullOrUndefined(t.arrowValue))return t.arrowValue}setBytesValue(i,t,e,o){this.createWidgetState(i,e).bytesValue=t,this.onWidgetValueChanged(i.formId,e,o)}getBytesValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="bytesValue")return t.bytesValue}setFileUploaderStateValue(i,t,e,o){this.createWidgetState(i,e).fileUploaderStateValue=t,this.onWidgetValueChanged(i.formId,e,o)}getFileUploaderStateValue(i){const t=this.getWidgetState(i);if(notNullOrUndefined(t)&&t.value==="fileUploaderStateValue")return t.fileUploaderStateValue}onWidgetValueChanged(i,t,e){isValidFormId(i)?this.syncFormsWithPendingChanges():t.fromUi&&this.scheduleFlush(e)}syncFormsWithPendingChanges(){const i=new Set;
129this.forms.forEach((t,e)=>{t.hasPendingChanges&&i.add(e)}),this.updateFormsData(t=>{t.formsWithPendingChanges=i})}sendUpdateWidgetsMessage(i,t=void 0){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg(),i,void 0,t)}getActiveWidgetStates(i){const t=new WidgetStates;return this.widgetStates.forEach(e=>{i.has(e.id)&&t.widgets.push(e)}),t}removeInactive(i){this.widgetStates.removeInactive(i),this.forms.forEach(t=>t.widgetStates.removeInactive(i)),this.elementStates.forEach((t,e)=>{i.has(e)||this.deleteElementState(e)})}createWidgetState(i,t){return(isValidFormId(i.formId)&&t.fromUi?this.getOrCreateFormState(i.formId).widgetStates:this.widgetStates).createState(i.id)}getWidgetState(i){if(isValidFormId(i.formId)){const t=this.forms.get(i.formId)?.widgetStates.getState(i.id);if(notNullOrUndefined(t))return t}return this.widgetStates.getState(i.id)}deleteWidgetState(i){this.widgetStates.deleteState(i)}getOrCreateFormState(i){let t=this.forms.get(i);return notNullOrUndefined(t)||(t=new FormState,this.forms.set(i,t)),t}setFormsWithUploadsInProgress(i){this.updateFormsData(t=>{t.formsWithUploads=i})}allowFormEnterToSubmit(i){if(!isValidFormId(i))return!1;const t=this.forms.get(i);if(t&&!t.enterToSubmit)return!1;const o=this.formsData.submitButtons.get(i)?.[0];return o?!o.disabled:!1}addSubmitButton(i,t){const e=this.formsData.submitButtons.get(i);if(e===void 0)this.setSubmitButtons(i,[t]);else{const o=Object.assign([],e);o.push(t),this.setSubmitButtons(i,o)}}removeSubmitButton(i,t){const e=this.formsData.submitButtons.get(i);if(e!==void 0){const o=Object.assign([],e),d=o.indexOf(t,0);d>-1&&o.splice(d,1),this.setSubmitButtons(i,o)}}setSubmitButtons(i,t){if(t.length<0)throw new Error(`Bad submitButtons length ${t.length} (must be >= 0)`);this.updateFormsData(e=>{e.submitButtons.set(i,t)})}updateFormsData(i){const t=produce(this.formsData,i);this.formsData!==t&&(this.formsData=t,this.props.formsDataChanged(this.formsData))}getElementState(i,t){return this.elementStates.get(i)?.get(t)}setElementState(i,t,e){this.elementStates.has(i)||this.elementStates.set(i,new Map),this.elementStates.get(i).set(t,e)}deleteElementState(i,t){notNullOrUndefined(t)?this.elementStates.get(i)?.delete(t):this.elementStates.delete(i)}scheduleFlush(i){this.scheduledFragmentId===void 0&&(this.scheduledFragmentId=i),this.scheduledFragmentId!==void 0&&i!==void 0&&i!==this.scheduledFragmentId&&!this.hasFragmentIdConflict&&(LOG$d.warn("Unexpected state: Multiple different fragmentIds detected in a single batch of widget updates. Proceeding with flushing updates using fragmentId '%s' for this batch.",this.scheduledFragmentId),this.hasFragmentIdConflict=!0),!this.flushScheduled&&(this.flushScheduled=!0,setTimeout(()=>{this.sendUpdateWidgetsMessage(this.scheduledFragmentId),this.pendingTriggerIds.forEach(t=>this.deleteWidgetState(t)),this.pendingTriggerIds.clear(),this.triggerFlushResolvers.forEach(t=>t()),this.triggerFlushResolvers=[],this.flushScheduled=!1,this.scheduledFragmentId=void 0,this.hasFragmentIdConflict=!1},0))}registerQueryParamBinding(i,t,e,o,d,p,h){const y=this.paramKeyToWidgetId.get(t);y&&y!==i&&this.boundWidgets.delete(y);let E=o;h&&(Array.isArray(E)?E=E.map($=>typeof $=="number"?microsToIsoString($,h):String($)):typeof E=="number"&&(E=microsToIsoString(E,h))),this.boundWidgets.set(i,{paramKey:t,valueType:e,defaultValue:E,urlFormat:p,clearable:d,dateType:h}),this.paramKeyToWidgetId.set(t,i)}unregisterQueryParamBinding(i){const t=this.boundWidgets.get(i);t&&(this.paramKeyToWidgetId.delete(t.paramKey),this.boundWidgets.delete(i))}hasQueryParamBinding(i){return this.boundWidgets.has(i)}filterParamsForPageChange(i){if(this.paramKeyToWidgetId.size===0)return i;const t=new URL(window.location.href),e={};this.paramKeyToWidgetId.forEach((d,p)=>{const h=t.searchParams.getAll(p);h.length===1?e[p]=h[0]:h.length>1&&(e[p]=h)});const o=queryString.stringify(e,{arrayFormat:"none"});return o?i?`${i}&${o}`:o:i}setQueryParamsChangeHandler(i){this.onQueryParamsChange=i}notifyQueryParamsChange(){if(this.onQueryParamsChange){const i=new URL(window.location.href);this.onQueryParamsChange(i.searchParams.toString())}}convertToUrlValue(i,t){if(i===null)return this.isEmptyValueValid(t)?"":null;switch(t.valueType){case"bool_value":return String(i);case"double_value":return String(i);case"int_value":return String(i);case"string_value":return i;case"string_array_value":return i.filter(e=>e!=="");case"int_array_value":return i.map(e=>String(e));case"double_array_value":{const e=i;if(t.dateType){const o=t.dateType;return e.map(d=>microsToIsoString(d,o))}return e.map(o=>String(o))}default:return assertNever(t.valueType)}}isEmptyValueValid(i){return i.clearable}shouldClearUrlParam(i,t){return(i===null||Array.isArray(i)&&i.length===0||i==="")&&!this.isEmptyValueValid(t)?!0:Array.isArray(i)?this.isDefaultArrayValue(i,t):this.isDefaultValue(i,t)}updateUrlParam(i,t,e){const o=queryString.parse(window.location.search,{arrayFormat:"none"});t===null?delete o[i]:Array.isArray(t)?t.length===0?o[i]="":e==="comma"?o[i]=t.join(","):o[i]=t:o[i]=t;const d=queryString.stringify(o,{arrayFormat:"none",skipNull:!0,skipEmptyString:!1}),p=window.location.search.replace(/^\?/,"");if(d===p)return;const h=new URL(window.location.href);h.search=d,window.history.replaceState({},"",h.toString()),this.notifyQueryParamsChange()}maybeSyncValueToUrl(i,t,e){if(!t.fromUi)return;const o=this.boundWidgets.get(i);if(!o)return;const d=this.convertToUrlValue(e,o),p=this.shouldClearUrlParam(d,o);this.updateUrlParam(o.paramKey,p?null:d,o.urlFormat)}toStringPrimitive(i){if(typeof i=="string"||typeof i=="number"||typeof i=="boolean")return String(i);if(i instanceof Date){const t=i.getFullYear(),e=String(i.getMonth()+1).padStart(2,"0"),o=String(i.getDate()).padStart(2,"0");return`${t}-${e}-${o}`}}
129isDefaultValue(i,t){const e=t.defaultValue;if(isNullOrUndefined$1(e))return isNullOrUndefined$1(i)||i==="";if(i===""&&Array.isArray(e)&&e.length===0)return!0;const o=this.toStringPrimitive(i),d=this.toStringPrimitive(e);return o===void 0||d===void 0?!1:o===d}isDefaultArrayValue(i,t){const e=t.defaultValue;if(!Array.isArray(e)){if(i.length===1&&e!==null){const o=this.toStringPrimitive(e);return o!==void 0&&i[0]===o}return!1}return i.length!==e.length?!1:i.every((o,d)=>{const p=this.toStringPrimitive(e[d]);return p!==void 0&&o===p})}}function requireNumberInt(n){if(typeof n=="number")return n;const i=protobufjsExports.util.LongBits.from(n).toNumber();if(Number.isSafeInteger(i))return i;throw new Error(`value ${n} cannot be converted to number without a loss of precision!`)}class ReactHotkeys extends React.Component{constructor(i){super(i),this.isKeyDown=!1,this.handle=void 0,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.handleKeyUpEvent=this.handleKeyUpEvent.bind(this),this.handle={}}componentDidMount(){var{filter:i,splitKey:t}=this.props;i&&(hotkeys.filter=i),hotkeys.unbind(this.props.keyName),hotkeys(this.props.keyName,{splitKey:t},this.onKeyDown),document&&document.body.addEventListener("keyup",this.handleKeyUpEvent)}componentWillUnmount(){hotkeys.unbind(this.props.keyName),this.isKeyDown=!0,this.handle={},document&&document.body.removeEventListener("keyup",this.handleKeyUpEvent)}onKeyUp(i,t){var{onKeyUp:e,disabled:o}=this.props;!o&&e&&e(t.shortcut,i,t)}onKeyDown(i,t){var{onKeyDown:e,allowRepeat:o,disabled:d}=this.props;this.isKeyDown&&!o||(this.isKeyDown=!0,this.handle=t,!d&&e&&e(t.shortcut,i,t))}handleKeyUpEvent(i){this.isKeyDown&&(this.isKeyDown=!1,!(this.props.keyName&&this.props.keyName.indexOf(this.handle.shortcut)<0)&&(this.onKeyUp(i,this.handle),this.handle={}))}render(){return this.props.children||null}}ReactHotkeys.defaultProps={filter(n){var i=n.target||n.srcElement,t=i.tagName;return!(i.isContentEditable||t==="INPUT"||t==="SELECT"||t==="TEXTAREA")}};ReactHotkeys.propTypes={keyName:propTypesExports.string,filter:propTypesExports.func,onKeyDown:propTypesExports.func,onKeyUp:propTypesExports.func,disabled:propTypesExports.bool,splitKey:propTypesExports.string};function EventContainer({children:n}){const i=useEmotionTheme();return jsxs(Fragment,{children:[jsx$1(ToasterContainer,{placement:PLACEMENT.topRight,autoHideDuration:4*1e3,overrides:{Root:{style:{top:i.sizes.headerHeight,zIndex:i.zIndices.toast},props:{"data-testid":"stToastContainer",className:"stToastContainer"}}}}),n]})}const StyledLogoContainer=styled("div",{target:"est0q590"})(({theme:n})=>({marginLeft:n.spacing.lg})),StyledHeader$1=styled("header",{target:"est0q591"})(({theme:n,isTransparentBackground:i}
129)=>({position:"absolute",top:0,left:0,right:0,display:"flex",alignItems:"center",height:n.sizes.headerHeight,minHeight:n.sizes.headerHeight,width:"100%",background:i?"transparent":n.colors.bgColor,outline:"none",zIndex:n.zIndices.header,pointerEvents:i?"none":"auto",fontSize:n.fontSizes.sm,"@media print":{position:"absolute",background:"transparent","& *":{display:"none !important"},[`& ${StyledLogoContainer}, & ${StyledLogoContainer} *, & :has(${StyledLogoContainer})`]:{display:"flex !important"},[`& ${StyledLogoContainer} img`]:{display:"block !important"}}})),StyledHeaderToolbar=styled("div",{target:"est0q592"})(({theme:n})=>({display:"flex",alignItems:"center",height:"100%",width:"100%",padding:0,pointerEvents:"auto",position:"relative",zIndex:n.zIndices.header})),StyledOpenSidebarButton=styled("div",{target:"est0q593"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",marginLeft:n.spacing.lg,"@media print":{display:"none"}})),StyledHeaderContent=styled("div",{target:"est0q594"})(()=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",margin:0,border:0})),StyledHeaderLeftSection=styled("div",{target:"est0q595"})(()=>({display:"flex",alignItems:"center",flexShrink:0})),StyledHeaderRightSection=styled("div",{target:"est0q596"})(({theme:n})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"flex-end",marginLeft:"auto",height:"100%",minWidth:n.sizes.headerRightContentMaxWidth,marginRight:n.spacing.lg})),Header=({hasSidebar:n,isSidebarOpen:i,onToggleSidebar:t,navigation:e,rightContent:o,logoComponent:d,showToolbar:p})=>{const{activeTheme:h}=reactExports.useContext(ThemeContext),y=d&&!i,E=n&&!i,$=p&&o,M=y||E||e||$;return jsx$1(StyledHeader$1,{className:"stAppHeader","data-testid":"stHeader",isTransparentBackground:!M,children:M?jsx$1(StyledHeaderToolbar,{className:"stAppToolbar","data-testid":"stToolbar",theme:h.emotion,children:jsxs(StyledHeaderContent,{children:[jsxs(StyledHeaderLeftSection,{children:[y?jsx$1(StyledLogoContainer,{children:d}):null,E&&jsx$1(StyledOpenSidebarButton,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:t,"data-testid":"stExpandSidebarButton",children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_right:",color:h.emotion.colors.fadedText60})})})]}),e,$?jsx$1(StyledHeaderRightSection,{children:o}):null]})}):null})},getSidebarHorizontalSpacing=(n,i)=>`max( 130 ${i}px, 131 calc(${n.spacing.xl} - ${i}px) 132 )`,StyledSidebar=styled("section",{target:"e9ic3ti0"})(({theme:n,isCollapsed:i,adjustTop:t,sidebarWidth:e,windowInnerWidth:o})=>{const d=i?0:Math.min(200,o),p=i?0:Math.min(600,o*.9);return{position:"relative",top:t?n.sizes.headerDecorationHeight:n.spacing.none,backgroundColor:n.colors.bgColor,color:n.colors.bodyText,colorScheme:hasLightBackgroun
132dColor(n)?"light":"dark",zIndex:n.zIndices.header+1,minWidth:d,maxWidth:p,transform:i?`translateX(-${e}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${n.breakpoints.md})`]:{boxShadow:i?"-2rem 0 2rem 2rem transparent":n.shadows.sidebar},"@media print":{display:i?"none":"initial",height:"auto !important",maxHeight:"99%",boxShadow:"none"}}}),StyledSidebarUserContent=styled("div",{target:"e9ic3ti1"})(({hasPageNavAbove:n,theme:i})=>({paddingTop:n?i.spacing.twoXL:0,paddingBottom:i.sizes.sidebarTopSpace})),StyledSidebarContent=styled("div",{target:"e9ic3ti2"})(({theme:n,scrollbarGutterSize:i})=>({position:"relative",height:"100%",width:"100%",overflow:"auto",scrollbarGutter:"stable both-edges",paddingLeft:getSidebarHorizontalSpacing(n,i),paddingRight:getSidebarHorizontalSpacing(n,i)})),RESIZE_HANDLE_WIDTH="8px",StyledResizeHandle=styled("div",{target:"e9ic3ti3"})(({theme:n})=>({position:"absolute",width:RESIZE_HANDLE_WIDTH,height:"100%",cursor:"col-resize",zIndex:n.zIndices.sidebarMobile,backgroundImage:n.showSidebarBorder?`linear-gradient(to right, transparent 20%, ${n.colors.borderColor} 28%, transparent 36%)`:"none","&:hover":{backgroundImage:`linear-gradient(to right, transparent 20%, ${n.colors.borderColor} 28%, transparent 44%)`}})),StyledSidebarHeaderContainer=styled("div",{target:"e9ic3ti4"})(({theme:n})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:n.spacing.lg,height:n.sizes.headerHeight})),StyledLogoLink=styled("a",{target:"e9ic3ti5"})({"&:hover":{opacity:"0.7"}}),StyledLogoButton=styled("button",{target:"e9ic3ti6"})({background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:"0.7"}});function translateLogoHeight(n,i){return i==="small"?n.sizes.smallLogoHeight:i==="large"?n.sizes.largeLogoHeight:n.sizes.defaultLogoHeight}const StyledLogo=styled("img",{target:"e9ic3ti7"})(({theme:n,size:i})=>({height:translateLogoHeight(n,i),marginTop:i=="small"?n.spacing.xs:n.spacing.twoXS,marginBottom:i=="small"?n.spacing.xs:n.spacing.twoXS,marginLeft:n.spacing.none,zIndex:n.zIndices.header,objectFit:"contain",objectPosition:"left",verticalAlign:"middle",maxWidth:"100%"})),StyledIconLogo=styled("div",{target:"e9ic3ti8"})(({theme:n,size:i})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",height:translateLogoHeight(n,i),marginTop:i=="small"?n.spacing.xs:n.spacing.twoXS,marginBottom:i=="small"?n.spacing.xs:n.spacing.twoXS,marginLeft:n.spacing.none,zIndex:n.zIndices.header,fontSize:translateLogoHeight(n,i),lineHeight:n.lineHeights.none,color:n.colors.bodyText})),StyledNoLogoSpacer=styled("div",{target:"e9ic3ti9"})(({theme:n})=>({height:n.sizes.largeLogoHeight})),StyledCollapseSidebarButton=styled("div",{target:"e9ic3ti10"})(({showSidebarCollapse:n,theme:i})=>({display:"inline",visibility:n?"visible":"hidden",marginLeft:i.spacing.sm,transition:"left 300ms",transitionDelay:"left 300ms",color:hasLightBackgroun
132dColor(i)?i.colors.fadedText60:i.colors.bodyText,lineHeight:"0","@media print":{visibility:"hidden"},[`@media (max-width: ${i.breakpoints.sm})`]:{visibility:"visible"}})),LOG$c=loglevelExports.getLogger("LogoComponent"),LOGO_SIZE_TO_ICON_SIZE={small:"lg",medium:"xl",large:"twoXL"},LogoComponent=({appLogo:n,endpoints:i,collapsed:t=!1,componentName:e="Logo",dataTestId:o="stLogo"})=>{const{resourceCrossOriginMode:d}=reactExports.useContext(LibConfigContext),{appPages:p,onPageChange:h,currentPageScriptHash:y}=reactExports.useContext(NavigationContext),E=reactExports.useMemo(()=>p.find(De=>De.isDefault),[p]),$=p.length>1,M=E?.pageScriptHash===y,X=reactExports.useCallback(()=>{E?.pageScriptHash&&!M&&h(E.pageScriptHash)},[E,h,M]);if(!n)return null;const Z=De=>{LOG$c.error(`Client Error: ${e} source error - ${De}`),i.sendClientErrorToHost(e,"Logo source failed to load","onerror triggered",De)},ye=t&&n.iconImage?n.iconImage:n.image,be=t&&n.iconImage?n.iconImageType:n.imageType,we=i.buildMediaURL(ye),xe=getCrossOriginAttribute(d,ye),$e=be===Logo.ImageType.ICON||be===Logo.ImageType.EMOJI,Ne=LOGO_SIZE_TO_ICON_
132SIZE[n.size]||"xl",Fe=$e?jsx$1(StyledIconLogo,{size:n.size,className:"stLogo","data-testid":o,children:jsx$1(DynamicIcon,{iconValue:ye,size:Ne})}):jsx$1(StyledLogo,{src:we,size:n.size,alt:"Logo",className:"stLogo","data-testid":o,onError:De=>Z(we),crossOrigin:xe});return n.link?jsx$1(StyledLogoLink,{href:n.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink","aria-label":$e?"App Logo":void 0,children:Fe}):$&&E&&!M?jsx$1(StyledLogoButton,{onClick:X,"data-testid":"stLogoLink","aria-label":"Navigate to home page",children:Fe}):jsx$1("div",{children:Fe})},getNavTextColor=(n,i,t=!1,e)=>{if(t)return n.colors.fadedText40;if(e)return n.colors.bodyText;const o=hasLightBackgroundColor(n);return i?n.colors.bodyText:o?transparentize(n.colors.bodyText,.2):transparentize(n.colors.bodyText,.25)},StyledSidebarNavContainer=styled("div",{target:"e87thbj0"})(({theme:n})=>({position:"relative",fontFamily:n.genericFonts.bodyFont})),StyledSidebarNavItems=styled("ul",{target:"e87thbj1"})(({theme:n})=>({listStyle:"none",margin:n.spacing.none,paddingBottom:n.spacing.threeXS,paddingTop:n.spacing.none,paddingRight:n.spacing.none,paddingLeft:n.spacing.none})),StyledSidebarNavLinkContainer=styled("div",{target:"e87thbj2"})(({disabled:n})=>({display:"flex",flexDirection:"column",cursor:n?"not-allowed":"pointer"})),StyledSidebarNavIcon=styled("span",{target:"e87thbj3"})(({theme:n,isActive:i})=>({display:"inline-flex",span:{fontWeight:i?n.fontWeights.bold:n.fontWeights.normal}})),StyledSidebarNavLinkListItem=styled("li",{target:"e87thbj4"})(({theme:n})=>({marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS})),StyledSidebarNavLink=styled("a",{target:"e87thbj5"})(({theme:n,isActive:i,disabled:t})=>{const e={textDecoration:"none",fontWeight:i?n.fontWeights.bold:n.fontWeights.normal};return{...e,display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,borderRadius:n.radii.md2,paddingLeft:n.spacing.sm,paddingRight:n.spacing.sm,marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS,lineHeight:n.lineHeights.menuItem,color:getNavTextColor(n,i),backgroundColor:i?n.colors.darkenedBgMix25:"transparent",...t&&{pointerEvents:"none"},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{...e},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"@media print":{paddingLeft:n.spacing.none}}}),StyledSidebarLinkText=styled("span",{target:"e87thbj6"})(({isActive:n,theme:i,disabled:t,isTopNav:e,label:o})=>({color:getNavTextColor(i,n,t,e),fontSize:i.fontSizes.sm,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell","&::after":{content:`"${o}"`,fontWeight:i.fontWeights.bold,visibility:"hidden",display:"block",width:"fit-content",height:0}})),StyledChevronContainer=styled("div",{target:"e87thbj7"})(({isExpanded:n})=>({visibility:"hidden",display:"flex",alignItems:"center",justifyContent:"center",transform:n?"rotate(0deg)":"rotate(-90deg)",transition:"transform 200ms ease",flexShrink:0})),StyledNavSectionHeaderText=styled("span",{target:"e87thbj8"})(()=>({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0})),StyledSidebarNavSectionHeader=styled("header",{target:"e87thbj9"})(({theme:n})=>({fontSize:n.fontSizes.sm,fontWeight:n.fontWeights.semiBold,color:getNavTextColor(n,!1),lineHeight:n.lineHeights.small,paddingRight:n.spacing.sm,marginTop:n.spacing.sm,marginBottom:n.spacing.twoXS,display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,cursor:"pointer",userSelect:"none","&:hover":{[`& > ${StyledChevronContainer}`]:{visibility:"visible"}}})),StyledViewButton=styled("button",{target:"e87thbj10"})(({theme:n})=>({fontSize:n.fontSizes.sm,fontFamily:"inherit",lineHeight:n.lineHeights.base,color:getNavTextColor(n,!0),backgroundColor:n.colors.transparent,border:"none",borderRadius:n.radii.default,marginTop:n.spacing.twoXS,marginLeft:n.spacing.none,marginBottom:n.spacing.none,marginRight:n.spacing.none,padding:`${n.spacing.threeXS} ${n.spacing.sm}`,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{backgroundColor:n.colors.darkenedBgMix15}})),StyledSidebarNavSeparator=styled("div",{target:"e87thbj11"})(({theme:n})=>({paddingTop:n.spacing.lg,borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledNavSectionContainer=styled("div",{target:"e87thbj12"})(({theme:n})=>({"&:not(:first-child)":{marginTop:n.spacing.lg}})),StyledOverflowContainer=styled("div",{target:"e87thbj13"})(({theme:n})=>({display:"flex",alignItems:"center",width:"100%",flexShrink:1,overflow:"hidden",padding:`0 ${n.spacing.lg}`})),StyledNavSection=styled("div",{target:"e87thbj14"})(({theme:n,isOpen:i})=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",position:"relative",lineHeight:n.lineHeights.menuItem,fontSize:n.fontSizes.sm,padding:`0 ${n.spacing.sm}`,color:getNavTextColor(n,!1,!1,!0),borderRadius:n.radii.default,marginRight:n.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:n.spacing.twoXS},...i?{backgroundColor:n.colors.darkenedBgMix25}:{},"&:hover":{backgroundColor:n.colors.darkenedBgMix15}})),StyledTopNavLinkContainer=styled("div",{target:"e87thbj15"})(({theme:n})=>({marginRight:n.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:n.spacing.twoXS}})),StyledTopNavSidebarNavLinkContainer=styled("div",{target:"e87thbj16"})(({theme:n})=>({margin:`${n.spacing.none} ${n.spacing.xs}`})),StyledNavSectionText=styled("span",{target:"e87thbj17"})(()=>({whiteSpace:"nowrap"})),StyledSectionName=styled("div",{target:"e87thbj18"})(({theme:n})=>({marginLeft:n.spacing.sm,marginTop:n.spacing.sm,marginBottom:n.spacing.sm,lineHeight:n.lineHeights.menuItem})),StyledPopoverContent=styled("div",{target:"e87thbj19"})(({theme:n})=>({padding:`${n.spacing.twoXS} ${n.spacing.none}`,fontSize:n.fontSizes.sm})),StyledIconContainer=styled("div",{target:"e87thbj20"})(({theme:n})=>({marginLeft:n.spacing.twoXS})),NavSection=({header:n="",children:i,isExpanded:t,onToggle:e})=>jsxs(StyledNavSectionContainer,{children:[n&&jsxs(StyledSidebarNavSectionHeader,{"data-testid":"stNavSectionHeader",onClick:e,isExpanded:t,children:[jsx$1(StyledNavSectionHeaderText,{children:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),jsx$1(StyledChevronContainer,{isExpanded:t,children:jsx$1(DynamicIcon,{iconValue:":material/expand_more:",size:"lg"})})]}),t&&i]}),SidebarNavLink=({isActive:n,pageUrl:i,icon:t,onClick:e,isTopNav:o,isInDropdown:d,children:p,widgetsDisabled:h})=>{const y=useEmotionTheme(),E=h;let $;return o&&d?$="stTopNavDropdownLink":o?$="stTopNavLink":$="stSidebarNavLink",jsx$1(StyledSidebarNavLinkContainer,{disabled:E,"data-testid":o?"stTopNavLinkContainer":"stSidebarNavLinkContainer",children:jsxs(StyledSidebarNavLink,{"data-testid":$,isActive:n,disabled:E,href:i,onClick:e,"aria-current":n?"page":void 0,children:[t?.length?jsx$1(StyledSidebarNavIcon,{isActive:n,children:jsx$1(DynamicIcon,{size:"base",iconValue:t,color:!n&&isMaterialIcon(t)?y.colors.fadedText60:y.colors.bodyText})}):null,jsx$1(StyledSidebarLinkText,{isActive:n,disabled:E,isTopNav:o,label:p,children:jsx$1(StreamlitMarkdown$1,{source:p,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})})]})})};function shouldShowNavigation(n){return filterVisiblePages(n).length>1}function groupPagesBySection(n){return groupBy(n,i=>i.sectionHeader||"")}function hasNonEmptySections(n){return Object.keys(n).some(i=>i!=="")}function processNavigationStructure(n){if(!hasNonEmptySections(n))return{individualPages:Object.values(n).flat(),sections:{}};const t=n[""]||[],e={};
132return Object.entries(n).forEach(([o,d])=>{o&&(e[o]=d)}),{individualPages:t,sections:e}}function filterVisiblePages(n){return n.filter(i=>!i.isHidden)}const COLLAPSE_THRESHOLD=12,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED=10,LOG$b=loglevelExports.getLogger("SidebarNav");function NavLink({pageUrl:n,page:i,isActive:t,onClick:e,widgetsDisabled:o}){const d=i.pageName;return jsx$1(StyledSidebarNavLinkListItem,{children:jsx$1(SidebarNavLink,{isActive:t,pageUrl:n,icon:i.icon,onClick:e,widgetsDisabled:o,children:d})})}function generateNavSections(n,i,t,e,o,d){const p=[];let h=d;return Object.entries(n).forEach(([y,E])=>{const $=[...E];let M=$;const X=e[y];if(i){const Z=NUM_PAGES_TO_SHOW_WHEN_COLLAPSED-h;Z<=0?M=[]:$.length>Z&&(M=$.slice(0,Z))}X&&(h+=M.length),M.length>0&&p.push(jsx$1(NavSection,{header:y,isExpanded:X,onToggle:()=>o(y),children:M.map(t)},y))}),{sections:p,updatedPageCount:h}}const SidebarNav=({endpoints:n,collapseSidebar:i,hasSidebarElements:t,widgetsDisabled:e})=>{const[o,d]=reactExports.useState(!1),{expandSidebarNav:p}=reactExports.useContext(SidebarConfigContext),{pageLinkBaseUrl:h,appPages:y,onPageChange:E,currentPageScriptHash:$}=reactExports.useContext(NavigationContext),M=`stSidebarSectionsState-${h}`,[X,Z]=reactExports.useState(null),ye=reactExports.useMemo(()=>filterVisiblePages(y),[y]),be=reactExports.useMemo(()=>processNavigationStructure(groupPagesBySection(ye)),[ye]),we=reactExports.useMemo(()=>{if(!(Object.keys(be.sections).length>0))return ye.length;let je=be.individualPages.length;return Object.entries(be.sections).forEach(([Ve,qe])=>{X?.[Ve]&&(je+=qe.length)}),je},[ye.length,X,be]);reactExports.useEffect(()=>{const Ke=localStorageAvailable()&&window.localStorage.getItem("sidebarNavState")==="expanded";!o&&(p||Ke)&&d(!0)},[o,p]),reactExports.useEffect(()=>{if(localStorageAvailable()){const Ke=window.localStorage.getItem(M);let je={};if(Ke)try{je=JSON.parse(Ke)}catch(qe){je={},LOG$b.warn("Could not parse sidebar nav state from localStorage",qe)}const Ve=Object.keys(be.sections).reduce((qe,Ye)=>(qe[Ye]=je[Ye]??!0,qe),{});Z(Ve)}else{const Ke=Object.keys(be.sections).reduce((je,Ve)=>(je[Ve]=!0,je),{});Z(Ke)}},[be.sections,M]),reactExports.useEffect(()=>{localStorageAvailable()&&X&&window.localStorage.setItem(M,JSON.stringify(X))},[X,M]);const xe=reactExports.useCallback(Ke=>{Z(je=>je?{...je,[Ke]:!je[Ke]}:null)},[]),$e=reactExports.useCallback(()=>{const Ke=!o;localStorageAvailable()&&(Ke?window.localStorage.setItem("sidebarNavState","expanded"):window.localStorage.removeItem("sidebarNavState")),d(Ke)},[o]),Ne=reactExports.useCallback((Ke,je)=>{const Ve=n.buildAppPageURL(h,Ke),qe=Ke.pageScriptHash===$;return jsx$1(NavLink,{pageUrl:Ve,page:Ke,isActive:qe,onClick:Ye=>{Ye.preventDefault(),E(Ke.pageScriptHash),isMobile()&&i()},widgetsDisabled:e},`${Ke.pageName}-${je}`)},[i,$,n,E,h,e]);if(!X)return null;const Fe=[],De=t&&we>COLLAPSE_THRESHOLD&&!p,Le=De&&!o;let He=0;if(be.individualPages.length>0){const Ke=Le?be.individualPages.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED):be.individualPages;Fe.push(...Ke.map(Ne)),He+=Ke.length}if(Object.keys(be.sections).length>0){const Ke=generateNavSections(be.sections,Le,Ne,X,xe,He);Fe.push(...Ke.sections)}return jsxs(StyledSidebarNavContainer,{"data-testid":"stSidebarNav",children:[jsx$1(StyledSidebarNavItems,{"data-testid":"stSidebarNavItems",children:Fe}),De&&jsx$1(StyledViewButton,{onClick:$e,"data-testid":"stSidebarNavViewButton",children:o?"View less":`View ${we-NUM_PAGES_TO_SHOW_WHEN_COLLAPSED} more`}),t&&jsx$1(StyledSidebarNavSeparator,{"data-testid":"stSidebarNavSeparator"})]})};function ownKeys$1(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread2(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$1(Object(t),!0).forEach(function(e){_defineProperty$h(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEac
132h(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _iterableToArrayLimit(n,i){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e,o,d,p,h=[],y=!0,E=!1;try{if(d=(t=t.call(n)).next,i===0){if(Object(t)!==t)return;y=!1}else for(;!(y=(e=d.call(t)).done)&&(h.push(e.value),h.length!==i);y=!0);}catch($){E=!0,o=$}finally{try{if(!y&&t.return!=null&&(p=t.return(),Object(p)!==p))return}finally{if(E)throw o}}return h}}function _arrayLikeToArray(n,i){(i==null||i>n.length)&&(i=n.length);for(var t=0,e=Array(i);t<i;t++)e[t]=n[t];return e}function _unsupportedIterableToArray(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray(n,i);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(n,i):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 133In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(n,i){return _arrayWithHoles(n)||_iterableToArrayLimit(n,i)||_unsupportedIterableToArray(n,i)||_nonIterableRest()}var REACT_ELEMENT_TYPE_18=Symbol.for("react.element"),REACT_ELEMENT_TYPE_19=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function isFragment(n){return n&&_typeof$8(n)==="object"&&(n.$$typeof===REACT_ELEMENT_TYPE_18||n.$$typeof===REACT_ELEMENT_TYPE_19)&&n.type===REACT_FRAGMENT_TYPE}function toArray(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return React.Children.forEach(n,function(e){e==null&&!i.keepEmpty||(Array.isArray(e)?t=t.concat(toArray(e)):isFragment(e)&&e.props?t=t.concat(toArray(e.props.children,i)):t.push(e))}),t}function isDOM(n){return n instanceof HTMLElement||n instanceof SVGElement}function getDOM(n){return n&&_typeof$8(n)==="object"&&isDOM(n.nativeElement)?n.nativeElement:isDOM(n)?n:null}function findDOMNode(n){var i=getDOM(n);if(i)return i;if(n instanceof React.Component){var t;return(t=ReactDOM.findDOMNode)===null||t===void 0?void 0:t.call(ReactDOM,n)}return null}var reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.server_context"),y=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),ye;ye=Symbol.for("react.module.reference");function be(we){if(typeof we=="object"&&we!==null){var xe=we.$$typeof;switch(xe){case n:switch(we=we.type,we){case t:case o:case e:case E:case $:return we;default:switch(we=we&&we.$$typeof,we){case h:case p:case y:case X:case M:case d:return we;default:return xe}}case i:return xe}}}return reactIs_production_min.ContextConsumer=p,reactIs_production_min.ContextProvider=d,reactIs_production_min.Element=n,reactIs_production_min.ForwardRef=y,reactIs_production_min.Fragment=t,reactIs_production_min.Lazy=X,reactIs_production_min.Memo=M,reactIs_production_min.Portal=i,reactIs_production_min.Profiler=o,reactIs_production_min.StrictMode=e,reactIs_production_min.Suspense=E,reactIs_production_min.SuspenseList=$,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(we){return be(we)===p},reactIs_production_min.isContextProvider=function(we){return be(we)===d},reactIs_production_min.isElement=function(we){return typeof we=="object"&&we!==null&&we.$$typeof===n},reactIs_production_min.isForwardRef=function(we){return be(we)===y},reactIs_production_min.isFragment=function(we){return be(we)===t},reactIs_production_min.isLazy=function(we){return be(we)===X},reactIs_production_min.isMemo=function(we){return be(we)===M},reactIs_production_min.isPortal=function(we){return be(we)===i},reactIs_production_min.isProfiler=function(we){return be(we)===o},reactIs_production_min.isStrictMode=function(we){return be(we)===e},reactIs_production_min.isSuspense=function(we){return be(we)===E},reactIs_production_min.isSuspenseList=function(we){return be(we)===$},reactIs_production_min.isValidElementType=function(we){return typeof we=="string"||typeof we=="function"||we===t||we===o||we===e||we===E||we===$||we===Z||typeof we=="object"&&we!==null&&(we.$$typeof===X||we.$$typeof===M||we.$$typeof===d||we.$$typeof===p||we.$$typeof===y||we.$$typeof===ye||we.getModuleId!==void 0)},reactIs_production_min.typeOf=be,reactIs_production_min}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_production_min()),reactIs.exports}var reactIsExports=requireReactIs();function useMemo(n,i,t){var e=reactExports.useRef({});return(!("value"in e.current)||t(e.current.condition,i))&&(e.current.value=n(),e.current.condition=i),e.current.value}var ReactMajorVersion=Number(reactExports.version.split(".")[0]),fillRef=function n(i,t){typeof i=="function"?i(t):_typeof$8(i)==="object"&&i&&"current"in i&&(i.current=t)},composeRef=function n(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];var o=t.filter(Boolean);return o.length<=1?o[0]:function(d){t.forEach(function(p){fillRef(p,d)})}},useComposeRef=function n(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return useMemo(function(){return composeRef.apply(void 0,t)},t,function(o,d){return o.length!==d.length||o.every(function(p,h){return p!==d[h]})})}
133,supportRef=function n(i){var t,e;if(!i)return!1;if(isReactElement(i)&&ReactMajorVersion>=19)return!0;var o=reactIsExports.isMemo(i)?i.type.type:i.type;return!(typeof o=="function"&&!((t=o.prototype)!==null&&t!==void 0&&t.render)&&o.$$typeof!==reactIsExports.ForwardRef||typeof i=="function"&&!((e=i.prototype)!==null&&e!==void 0&&e.render)&&i.$$typeof!==reactIsExports.ForwardRef)};function isReactElement(n){return reactExports.isValidElement(n)&&!isFragment(n)}var getNodeRef=function n(i){if(i&&isReactElement(i)){var t=i;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},CollectionContext=reactExports.createContext(null);function Collection(n){var i=n.children,t=n.onBatchResize,e=reactExports.useRef(0),o=reactExports.useRef([]),d=reactExports.useContext(CollectionContext),p=reactExports.useCallback(function(h,y,E){e.current+=1;var $=e.current;o.current.push({size:h,element:y,data:E}),Promise.resolve().then(function(){$===e.current&&(t?.(o.current),o.current=[])}),d?.(h,y,E)},[t,d]);return reactExports.createElement(CollectionContext.Provider,{value:p},i)}var MapShim=(function(){if(typeof Map<"u")return Map;function n(i,t){var e=-1;return i.some(function(o,d){return o[0]===t?(e=d,!0):!1}),e}return(function(){function i(){this.__entries__=[]}return Object.defineProperty(i.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),i.prototype.get=function(t){var e=n(this.__entries__,t),o=this.__entries__[e];return o&&o[1]},i.prototype.set=function(t,e){var o=n(this.__entries__,t);~o?this.__entries__[o][1]=e:this.__entries__.push([t,e])},i.prototype.delete=function(t){var e=this.__entries__,o=n(e,t);~o&&e.splice(o,1)},i.prototype.has=function(t){return!!~n(this.__entries__,t)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(t,e){e===void 0&&(e=null);for(var o=0,d=this.__entries__;o<d.length;o++){var p=d[o];t.call(e,p[1],p[0])}},i})()})(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),requestAnimationFrame$1=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}})(),trailingTimeout=2;function throttle(n,i){var t=!1,e=!1,o=0;function d(){t&&(t=!1,n()),e&&h()}function p(){requestAnimationFrame$1(d)}function h(){var y=Date.now();if(t){if(y-o<trailingTimeout)return;e=!0}else t=!0,e=!1,setTimeout(p,i);o=y}return h}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=(function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return n.prototype.addObserver=function(i){~this.observers_.indexOf(i)||this.observers_.push(i),this.connected_||this.connect_()},n.prototype.removeObserver=function(i){var t=this.observers_,e=t.indexOf(i);~e&&t.splice(e,1),!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var i=this.updateObservers_();i&&this.refresh()},n.prototype.updateObservers_=function(){var i=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return i.forEach(function(t){return t.broadcastActive()}),i.length>0},n.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(i){var t=i.propertyName,e=t===void 0?"":t,o=transitionKeys.some(function(d){return!!~e.indexOf(d)});o&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,593 bytes, line 133
133w n),this.instance_},n.instance_=null,n})(),defineConfigurable=(function(n,i){for(var t=0,e=Object.keys(i);t<e.length;t++){var o=e[t];Object.defineProperty(n,o,{value:i[o],enumerable:!1,writable:!1,configurable:!0})}return n}),getWindowOf=(function(n){var i=n&&n.ownerDocument&&n.ownerDocument.defaultView;return i||global$1}),emptyRect=createRectInit(0,0,0,0);function toFloat(n){return parseFloat(n)||0}function getBordersSize(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return i.reduce(function(e,o){var d=n["border-"+o+"-width"];return e+toFloat(d)},0)}function getPaddings(n){for(var i=["top","right","bottom","left"],t={},e=0,o=i;e<o.length;e++){var d=o[e],p=n["padding-"+d];t[d]=toFloat(p)}return t}function getSVGContentRect(n){var i=n.getBBox();return createRectInit(0,0,i.width,i.height)}function getHTMLElementContentRect(n){var i=n.clientWidth,t=n.clientHeight;if(!i&&!t)return emptyRect;var e=getWindowOf(n).getComputedStyle(n),o=getPaddings(e),d=o.left+o.right,p=o.top+o.bottom,h=toFloat(e.width),y=toFloat(e.height);if(e.boxSizing==="border-box"&&(Math.round(h+d)!==i&&(h-=getBordersSize(e,"left","right")+d),Math.round(y+p)!==t&&(y-=getBordersSize(e,"top","bottom")+p)),!isDocumentElement(n)){var E=Math.round(h+d)-i,$=Math.round(y+p)-t;Math.abs(E)!==1&&(h-=E),Math.abs($)!==1&&(y-=$)}return createRectInit(o.left,o.top,h,y)}var isSVGGraphicsElement=(function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof getWindowOf(n).SVGGraphicsElement}:function(n){return n instanceof getWindowOf(n).SVGElement&&typeof n.getBBox=="function"}})();function isDocumentElement(n){return n===getWindowOf(n).document.documentElement}function getContentRect(n){return isBrowser?isSVGGraphicsElement(n)?getSVGContentRect(n):getHTMLElementContentRect(n):emptyRect}function createReadOnlyRect(n){var i=n.x,t=n.y,e=n.width,o=n.height,d=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,p=Object.create(d.prototype);return defineConfigurable(p,{x:i,y:t,width:e,height:o,top:t,right:i+e,bottom:o+t,left:i}),p}function createRectInit(n,i,t,e){return{x:n,y:i,width:t,height:e}}var ResizeObservation=(function(){function n(i){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=i}return n.prototype.isActive=function(){var i=getContentRect(this.target);return this.contentRect_=i,i.width!==this.broadcastWidth||i.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var i=this.contentRect_;return this.broadcastWidth=i.width,this.broadcastHeight=i.height,i},n})(),ResizeObserverEntry=(function(){function n(i,t){var e=createReadOnlyRect(t);defineConfigurable(this,{target:i,contentRect:e})}return n})(),ResizeObserverSPI=(function(){function n(i,t,e){if(this.activeObservations_=[],this.observations_=new MapShim,typeof i!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=i,this.controller_=t,this.callbackCtx_=e}return n.prototype.observe=function(i){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(i instanceof getWindowOf(i).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(i)||(t.set(i,new ResizeObservation(i)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(i){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(i instanceof getWindowOf(i).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(i)&&(t.delete(i),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var i=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&i.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var i=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ResizeObserverEntry(e.target,e.broadcastRect())});this.callback_.call(i,t,i),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n})(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver$2=(function(){function n(i){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");
133if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=ResizeObserverController.getInstance(),e=new ResizeObserverSPI(i,t,this);observers.set(this,e)}return n})();["observe","unobserve","disconnect"].forEach(function(n){ResizeObserver$2.prototype[n]=function(){var i;return(i=observers.get(this))[n].apply(i,arguments)}});var index=(function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver$2})(),elementListeners=new Map;function onResize(n){n.forEach(function(i){var t,e=i.target;(t=elementListeners.get(e))===null||t===void 0||t.forEach(function(o){return o(e)})})}var resizeObserver=new index(onResize);function observe(n,i){elementListeners.has(n)||(elementListeners.set(n,new Set),resizeObserver.observe(n)),elementListeners.get(n).add(i)}function unobserve(n,i){elementListeners.has(n)&&(elementListeners.get(n).delete(i),elementListeners.get(n).size||(resizeObserver.unobserve(n),elementListeners.delete(n)))}function _classCallCheck(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,i){for(var t=0;t<i.length;t++){var e=i[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,toPropertyKey(e.key),e)}}function _createClass(n,i,t){return i&&_defineProperties(n.prototype,i),t&&_defineProperties(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$8(n,i)}function _getPrototypeOf(n){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},_getPrototypeOf(n)}function _isNativeReflectConstruct(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!n})()}function _possibleConstructorReturn(n,i){if(i&&(_typeof$8(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(n)}function _createSuper(n){var i=_isNativeReflectConstruct();return function(){var t,e=_getPrototypeOf(n);if(i){var o=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _possibleConstructorReturn(this,t)}}var DomWrapper=(function(n){_inherits(t,n);var i=_createSuper(t);function t(){return _classCallCheck(this,t),i.apply(this,arguments)}return _createClass(t,[{key:"render",value:function(){return this.props.children}}]),t})(reactExports.Component);function SingleObserver(n,i){var t=n.children,e=n.disabled,o=reactExports.useRef(null),d=reactExports.useRef(null),p=reactExports.useContext(CollectionContext),h=typeof t=="function",y=h?t(o):t,E=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),$=!h&&reactExports.isValidElement(y)&&supportRef(y),M=$?getNodeRef(y):null,X=useComposeRef(M,o),Z=function(){var xe;return findDOMNode(o.current)||(o.current&&_typeof$8(o.current)==="object"?findDOMNode((xe=o.current)===null||xe===void 0?void 0:xe.nativeElement):null)||findDOMNode(d.current)};reactExports.useImperativeHandle(i,function(){return Z()});var ye=reactExports.useRef(n);ye.current=n;var be=reactExports.useCallback(function(we){var xe=ye.current,$e=xe.onResize,Ne=xe.data,Fe=we.getBoundingClientRect(),De=Fe.width,Le=Fe.height,He=we.offsetWidth,Ke=we.offsetHeight,je=Math.floor(De),Ve=Math.floor(Le);if(E.current.width!==je||E.current.height!==Ve||E.current.offsetWidth!==He||E.current.offsetHeight!==Ke){var qe={width:je,height:Ve,offsetWidth:He,offsetHeight:Ke};E.current=qe;var Ye=He===Math.round(De)?De:He,et=Ke===Math.round(Le)?Le:Ke,Qe=_objectSpread2(_objectSpread2({},qe),{},{offsetWidth:Ye,offsetHeight:et});p?.(Qe,we,Ne),$e&&Promise.resolve().then(function(){$e(Qe,we)})}},[]);return reactExports.useEffect(function(){var we=Z();return we&&!e&&observe(we,be),function(){return unobserve(we,be)}},[o.current,e]),reactExports.createElement(DomWrapper,{ref:d},$?reactExports.cloneElement(y,{ref:X}):y)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(n,i){var t=n.children,e=typeof t=="function"?[t]:toArray(t);return e.map(function(o,d){var p=o?.key||"".concat(INTERNAL_PREFIX_KEY,"-").concat(d);return reactExports.createElement(RefSingleObserver,_extends$k({},n,{key:p,ref:d===0?i:void 0}),o)})}
133var RefResizeObserver=reactExports.forwardRef(ResizeObserver$1);RefResizeObserver.Collection=Collection;function canUseDom(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var useInternalLayoutEffect=canUseDom()?reactExports.useLayoutEffect:reactExports.useEffect,useLayoutEffect=function n(i,t){var e=reactExports.useRef(!0);useInternalLayoutEffect(function(){return i(e.current)},t),useInternalLayoutEffect(function(){return e.current=!1,function(){e.current=!0}},[])},_excluded$3=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(n,i){var t=n.prefixCls,e=n.invalidate,o=n.item,d=n.renderItem,p=n.responsive,h=n.responsiveDisabled,y=n.registerSize,E=n.itemKey,$=n.className,M=n.style,X=n.children,Z=n.display,ye=n.order,be=n.component,we=be===void 0?"div":be,xe=_objectWithoutProperties$2(n,_excluded$3),$e=p&&!Z;function Ne(Ke){y(E,Ke)}reactExports.useEffect(function(){return function(){Ne(null)}},[]);var Fe=d&&o!==UNDEFINED?d(o,{index:ye}):X,De;e||(De={opacity:$e?0:1,height:$e?0:UNDEFINED,overflowY:$e?"hidden":UNDEFINED,order:p?ye:UNDEFINED,pointerEvents:$e?"none":UNDEFINED,position:$e?"absolute":UNDEFINED});var Le={};$e&&(Le["aria-hidden"]=!0);var He=reactExports.createElement(we,_extends$k({className:classNames(!e&&t,$),style:_objectSpread2(_objectSpread2({},De),M)},Le,xe,{ref:i}),Fe);return p&&(He=reactExports.createElement(RefResizeObserver,{onResize:function(je){var Ve=je.offsetWidth;Ne(Ve)},disabled:h},He)),He}var Item=reactExports.forwardRef(InternalItem);Item.displayName="Item";function useEvent(n){var i=reactExports.useRef();i.current=n;var t=reactExports.useCallback(function(){for(var e,o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return(e=i.current)===null||e===void 0?void 0:e.call.apply(e,[i].concat(d))},[]);return t}var raf=function n(i){return+setTimeout(i,16)},caf=function n(i){return clearTimeout(i)};typeof window<"u"&&"requestAnimationFrame"in window&&(raf=function(i){return window.requestAnimationFrame(i)},caf=function(i){return window.cancelAnimationFrame(i)});var rafUUID=0,rafIds=new Map;function cleanup(n){rafIds.delete(n)}var wrapperRaf=function n(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var e=rafUUID;function o(d){if(d===0)cleanup(e),i();else{var p=raf(function(){o(d-1)});rafIds.set(e,p)}}return o(t),e};wrapperRaf.cancel=function(n){var i=rafIds.get(n);return cleanup(n),caf(i)};function channelUpdate(n){if(typeof MessageChannel>"u")wrapperRaf(n);else{var i=new MessageChannel;i.port1.onmessage=function(){return n()},i.port2.postMessage(void 0)}}function useBatcher(){var n=reactExports.useRef(null),i=function(e){n.current||(n.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){n.current.forEach(function(o){o()}),n.current=null})})),n.current.push(e)};return i}function useEffectState(n,i){var t=reactExports.useState(i),e=_slicedToArray(t,2),o=e[0],d=e[1],p=useEvent(function(h){n(function(){d(h)})});return[o,p]}var OverflowContext=React.createContext(null),_excluded$2=["component"],_excluded2$1=["className"],_excluded3=["className"],InternalRawItem=function n(i,t){var e=reactExports.useContext(OverflowContext);if(!e){var o=i.component,d=o===void 0?"div":o,p=_objectWithoutProperties$2(i,_excluded$2);return reactExports.createElement(d,_extends$k({},p,{ref:t}))}var h=e.className,y=_objectWithoutProperties$2(e,_excluded2$1),E=i.className,$=_objectWithoutProperties$2(i,_excluded3);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item,_extends$k({ref:t,className:classNames(h,E)},y,$)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$1=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVA
133LIDATE="invalidate";function defaultRenderRest(n){return"+ ".concat(n.length," ...")}function Overflow(n,i){var t=n.prefixCls,e=t===void 0?"rc-overflow":t,o=n.data,d=o===void 0?[]:o,p=n.renderItem,h=n.renderRawItem,y=n.itemKey,E=n.itemWidth,$=E===void 0?10:E,M=n.ssr,X=n.style,Z=n.className,ye=n.maxCount,be=n.renderRest,we=n.renderRawRest,xe=n.prefix,$e=n.suffix,Ne=n.component,Fe=Ne===void 0?"div":Ne,De=n.itemComponent,Le=n.onVisibleChange,He=_objectWithoutProperties$2(n,_excluded$1),Ke=M==="full",je=useBatcher(),Ve=useEffectState(je,null),qe=_slicedToArray(Ve,2),Ye=qe[0],et=qe[1],Qe=Ye||0,ze=useEffectState(je,new Map),st=_slicedToArray(ze,2),at=st[0],tt=st[1],pt=useEffectState(je,0),Be=_slicedToArray(pt,2),Ge=Be[0],it=Be[1],Ue=useEffectState(je,0),Ot=_slicedToArray(Ue,2),Rt=Ot[0],dt=Ot[1],Tt=useEffectState(je,0),ht=_slicedToArray(Tt,2),Ft=ht[0],zt=ht[1],$t=useEffectState(je,0),Yt=_slicedToArray($t,2),ln=Yt[0],Qt=Yt[1],kn=reactExports.useState(null),en=_slicedToArray(kn,2),Gt=en[0],on=en[1],Wt=reactExports.useState(null),tn=_slicedToArray(Wt,2),vn=tn[0],Rn=tn[1],dn=reactExports.useMemo(function(){return vn===null&&Ke?Number.MAX_SAFE_INTEGER:vn||0},[vn,Ye]),_n=reactExports.useState(!1),Kt=_slicedToArray(_n,2),ut=Kt[0],vt=Kt[1],xt="".concat(e,"-item"),Lt=Math.max(Ge,Rt),jt=ye===RESPONSIVE,Et=d.length&&jt,Vt=ye===INVALIDATE,wt=Et||typeof ye=="number"&&d.length>ye,rt=reactExports.useMemo(function(){var Ut=d;return Et?Ye===null&&Ke?Ut=d:Ut=d.slice(0,Math.min(d.length,Qe/$)):typeof ye=="number"&&(Ut=d.slice(0,ye)),Ut},[d,$,Ye,ye,Et]),lt=reactExports.useMemo(function(){return Et?d.slice(dn+1):d.slice(rt.length)},[d,rt,Et,dn]),ct=reactExports.useCallback(function(Ut,Ht){var fn;return typeof y=="function"?y(Ut):(fn=y&&Ut?.[y])!==null&&fn!==void 0?fn:Ht},[y]),yt=reactExports.useCallback(p||function(Ut){return Ut},[p]);function ft(Ut,Ht,fn){vn===Ut&&(Ht===void 0||Ht===Gt)||(Rn(Ut),fn||(vt(Ut<d.length-1),Le?.(Ut)),Ht!==void 0&&on(Ht))}function At(Ut,Ht){et(Ht.clientWidth)}function qt(Ut,Ht){tt(function(fn){var Nn=new Map(fn);return Ht===null?Nn.delete(Ut):Nn.set(Ut,Ht),Nn})}function rn(Ut,Ht){dt(Ht),it(Rt)}function Zt(Ut,Ht){zt(Ht)}function fr(Ut,Ht){Qt(Ht)}function Kr(Ut){return at.get(ct(rt[Ut],Ut))}useLayoutEffect(function(){if(Qe&&typeof Lt=="number"&&rt){var Ut=Ft+ln,Ht=rt.length,fn=Ht-1;if(!Ht){ft(0,null);return}for(var Nn=0;Nn<Ht;Nn+=1){var gr=Kr(Nn);if(Ke&&(gr=gr||0),gr===void 0){ft(Nn-1,void 0,!0);break}if(Ut+=gr,fn===0&&Ut<=Qe||Nn===fn-1&&Ut+Kr(fn)<=Qe){ft(fn,null);break}else if(Ut+Lt>Qe){ft(Nn-1,Ut-gr-ln+Rt);break}}$e&&Kr(0)+ln>Qe&&on(null)}},[Qe,at,Rt,Ft,ln,ct,rt]);var pr=ut&&!!lt.length,Di={};Gt!==null&&Et&&(Di={position:"absolute",left:Gt,top:0});var hr={prefixCls:xt,responsive:Et,component:De,invalidate:Vt},Bi=h?function(Ut,Ht){var fn=ct(Ut,Ht);return reactExports.createElement(OverflowContext.Provider,{key:fn,value:_objectSpread2(_objectSpread2({},hr),{},{order:Ht,item:Ut,itemKey:fn,registerSize:qt,display:Ht<=dn})},h(Ut,Ht))}:function(Ut,Ht){var fn=ct(Ut,Ht);return reactExports.createElement(Item,_extends$k({},hr,{order:Ht,key:fn,item:Ut,renderItem:yt,itemKey:fn,registerSize:qt,display:Ht<=dn}))},Vi={order:pr?dn:Number.MAX_SAFE_INTEGER,className:"".concat(xt,"-rest"),registerSize:rn,display:pr},yr=be||defaultRenderRest,ji=we?reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},hr),Vi)},we(lt)):reactExports.createElement(Item,_extends$k({},hr,Vi),typeof yr=="function"?yr(lt):yr),Er=reactExports.createElement(Fe,_extends$k({className:classNames(!Vt&&e,Z),style:X,ref:i}
133,He),xe&&reactExports.createElement(Item,_extends$k({},hr,{responsive:jt,responsiveDisabled:!Et,order:-1,className:"".concat(xt,"-prefix"),registerSize:Zt,display:!0}),xe),rt.map(Bi),wt?ji:null,$e&&reactExports.createElement(Item,_extends$k({},hr,{responsive:jt,responsiveDisabled:!Et,order:dn,className:"".concat(xt,"-suffix"),registerSize:fr,display:!0,style:Di}),$e));return jt?reactExports.createElement(RefResizeObserver,{onResize:At,disabled:!Et},Er):Er}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;const TopNavSection=({title:n,sections:i,handlePageChange:t,endpoints:e,pageLinkBaseUrl:o,currentPageScriptHash:d,hideChevron:p=!1,widgetsDisabled:h})=>{const[y,E]=reactExports.useState(!1),$=useEmotionTheme(),M=i.length>1;return isNullOrUndefined$1(i)||i.length===0||i[0].length===0?null:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT$1.bottomLeft,content:()=>jsx$1(StyledPopoverContent,{"data-testid":"stTopNavPopover",children:i.map((X,Z)=>{const ye=X[0].sectionHeader;return X.map((be,we)=>{const xe=Ne=>(Ne.preventDefault(),be.pageScriptHash&&t(be.pageScriptHash),E(!1),!1),$e=String(be.pageName||"");return jsxs(reactExports.Fragment,{children:[we===0&&M&&jsx$1(StyledSectionName,{children:jsx$1(StreamlitMarkdown$1,{source:ye||"",allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),jsx$1(StyledTopNavSidebarNavLinkContainer,{children:jsx$1(SidebarNavLink,{...be,icon:be.icon||null,isTopNav:!0,isInDropdown:!0,isActive:d===be.pageScriptHash,onClick:xe,pageUrl:e.buildAppPageURL(o,be),widgetsDisabled:h,children:$e})})]},`${be.pageScriptHash}-${$e}`)})})}),isOpen:y,onClickOutside:()=>E(!1),onClick:()=>y?E(!1):void 0,onEsc:()=>E(!1),renderAll:!0,popoverMargin:convertRemToPx($.spacing.twoXS),overrides:{Body:{style:()=>({...getPopoverContainerStyle($),marginRight:$.spacing.lg,marginBottom:$.spacing.lg,maxHeight:"70vh",minWidth:"8rem",overflow:"auto",maxWidth:`calc(${$.sizes.contentMaxWidth} - 2*${$.spacing.lg})`,[`@media (max-width: ${$.breakpoints.sm})`]:{maxWidth:`calc(100% - ${$.spacing.threeXL})`}})}},children:jsx$1("div",{children:jsxs(StyledNavSection,{tabIndex:0,onClick:()=>E(!y),isOpen:y,"data-testid":"stTopNavSection",children:[jsx$1(StyledNavSectionText,{children:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0,disableLinks:!0,truncate:!0,inheritFont:!0})}),!p&&jsx$1(StyledIconContainer,{children:jsx$1(Icon$2,{content:y?KeyboardArrowUp:KeyboardArrowDown,size:"lg"})})]})})})},TopNav=({endpoints:n,widgetsDisabled:i})=>{const{pageLinkBaseUrl:t,currentPageScriptHash:e,appPages:o,onPageChange:d}=reactExports.useContext(NavigationContext),p=reactExports.useMemo(()=>filterVisiblePages(o),[o]),{data:h,itemKey:y}=reactExports.useMemo(()=>{const M=groupPagesBySection(p),X=processNavigationStructure(M);return{data:[...X.individualPages,...Object.values(X.sections)],itemKey:be=>Array.isArray(be)?be[0]?.sectionHeader??"":be.pageScriptHash??""}},[p]),E=reactExports.useCallback((M,X)=>Array.isArray(M)?jsx$1(TopNavSection,{sections:[M],title:M[0].sectionHeader||"",handlePageChange:d,endpoints:n,pageLinkBaseUrl:t,currentPageScriptHash:e,widgetsDisabled:i}):jsx$1(StyledTopNavLinkContainer,{children:jsx$1(SidebarNavLink,{isTopNav:!0,isInDropdown:!1,isActive:e===M.pageScriptHash,icon:M.icon,pageUrl:n.buildAppPageURL(t,M),onClick:Z=>{Z.preventDefault(),M.pageScriptHash&&d(M.pageScriptHash)},widgetsDisabled:i,children:String(M.pageName)})}),[d,n,t,e,i]),$=reactExports.useCallback(M=>{if(isNullOrUndefined$1(M))return null;const Z=`${M.flat().length} more`,ye=M.map(be=>Array.isArray(be)?be:[be]);return jsx$1(TopNavSection,{hideChevron:!0,sections:ye,title:Z,handlePageChange:d,endpoints:n,pageLinkBaseUrl:t,currentPageScriptHash:e,widgetsDisabled:i})},[d,n,t,e,i]);return jsx$1(ForwardOverflow,{component:StyledOverflowContainer,itemKey:y,data:h,maxCount:"responsive",renderItem:E,renderRest:$})};var __assign$1=function(){return __assign$1=Object.assign||function(n){for(var i,t=1,e=arguments.length;t<e;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},__assign$1.apply(this,arguments)},rowSizeBase={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},colSizeBase={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},edgeBase={width:"20px",height:"20px",position:"absolute",zIndex:1},styles={top:__assign$1(__assign$1({},rowSizeBase),{top:"-5px"}),right:__assign$1(__assign$1({},colSizeBase),{left:void 0,right:"-5px"}),bottom:__assign$1(__assign$1({},rowSizeBase),{top:void 0,bottom:"-5px"}),left:__assign$1(__assign$1({},colSizeBase),{left:"-5px"}),topRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$1(__assign$1({},edgeBase),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$1(__assign$1({},edgeBase),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Resizer=reactExports.memo(function(n){var i=n.onResizeStart,t=n.direction,e=n.children,o=n.replaceStyles,d=n.className,p=reactExports.useCallback(function(E){i(E,t)},[i,t]),h=reactExports.useCallback(function(E){i(E,t)},[i,t]),y=reactExports.useMemo(function(){return __assign$1(__assign$1({position:"absolute",userSelect:"none"},styles[t]),o??{})},[o,t]);return jsxRuntimeExports.jsx("div",{className:d||void 0,style:y,onMouseDown:p,onTouchStart:h,children:e})}
133),__extends=(function(){var n=function(i,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(e[d]=o[d])},n(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}})(),__assign=function(){return __assign=Object.assign||function(n){for(var i,t=1,e=arguments.length;t<e;t++){i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},__assign.apply(this,arguments)},DEFAULT_SIZE={width:"auto",height:"auto"},clamp=function(n,i,t){return Math.max(Math.min(n,t),i)},snap=function(n,i,t){var e=Math.round(n/i);return e*i+t*(e-1)},hasDirection=function(n,i){return new RegExp(n,"i").test(i)},isTouchEvent=function(n){return!!(n.touches&&n.touches.length)},isMouseEvent=function(n){return!!((n.clientX||n.clientX===0)&&(n.clientY||n.clientY===0))},findClosestSnap=function(n,i,t){t===void 0&&(t=0);var e=i.reduce(function(d,p,h){return Math.abs(p-n)<Math.abs(i[d]-n)?h:d},0),o=Math.abs(i[e]-n);return t===0||o<t?i[e]:n},getStringSize=function(n){return n=n.toString(),n==="auto"||n.endsWith("px")||n.endsWith("%")||n.endsWith("vh")||n.endsWith("vw")||n.endsWith("vmax")||n.endsWith("vmin")?n:"".concat(n,"px")},getPixelSize=function(n,i,t,e){if(n&&typeof n=="string"){if(n.endsWith("px"))return Number(n.replace("px",""));if(n.endsWith("%")){var o=Number(n.replace("%",""))/100;return i*o}if(n.endsWith("vw")){var o=Number(n.replace("vw",""))/100;return t*o}if(n.endsWith("vh")){var o=Number(n.replace("vh",""))/100;return e*o}}return n},calculateNewMax=function(n,i,t,e,o,d,p){return e=getPixelSize(e,n.width,i,t),o=getPixelSize(o,n.height,i,t),d=getPixelSize(d,n.width,i,t),p=getPixelSize(p,n.height,i,t),{maxWidth:typeof e>"u"?void 0:Number(e),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof d>"u"?void 0:Number(d),minHeight:typeof p>"u"?void 0:Number(p)}},normalizeToPair=function(n){return Array.isArray(n)?n:[n,n]},definedProps=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],baseClassName="__resizable_base__",Resizable=(function(n){__extends(i,n);function i(t){var e,o,d,p,h=n.call(this,t)||this;return h.ratio=1,h.resizable=null,h.parentLeft=0,h.parentTop=0,h.resizableLeft=0,h.resizableRight=0,h.resizableTop=0,h.resizableBottom=0,h.targetLeft=0,h.targetTop=0,h.delta={width:0,height:0},h.appendBase=function(){if(!h.resizable||!h.window)return null;var y=h.parentNode;if(!y)return null;var E=h.window.document.createElement("div");return E.style.width="100%",E.style.height="100%",E.style.position="absolute",E.style.transform="scale(0, 0)",E.style.left="0",E.style.flex="0 0 100%",E.classList?E.classList.add(baseClassName):E.className+=baseClassName,y.appendChild(E),E},h.removeBase=function(y){var E=h.parentNode;E&&E.removeChild(y)},h.state={isResizing:!1,width:(o=(e=h.propsSize)===null||e===void 0?void 0:e.width)!==null&&o!==void 0?o:"auto",height:(p=(d=h.propsSize)===null||d===void 0?void 0:d.height)!==null&&p!==void 0?p:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},h.onResizeStart=h.onResizeStart.bind(h),h.onMouseMove=h.onMouseMove.bind(h),h.onMouseUp=h.onMouseUp.bind(h),h}return Object.defineProperty(i.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView}
133,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||DEFAULT_SIZE},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){var t=0,e=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,d=this.resizable.offsetHeight,p=this.resizable.style.position;p!=="relative"&&(this.resizable.style.position="relative"),t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,e=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:d,this.resizable.style.position=p}return{width:t,height:e}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sizeStyle",{get:function(){var t=this,e=this.props.size,o=function(h){var y;if(typeof t.state[h]>"u"||t.state[h]==="auto")return"auto";if(t.propsSize&&t.propsSize[h]&&(!((y=t.propsSize[h])===null||y===void 0)&&y.toString().endsWith("%"))){if(t.state[h].toString().endsWith("%"))return t.state[h].toString();var E=t.getParentSize(),$=Number(t.state[h].toString().replace("px","")),M=$/E[h]*100;return"".concat(M,"%")}return getStringSize(t.state[h])},d=e&&typeof e.width<"u"&&!this.state.isResizing?getStringSize(e.width):o("width"),p=e&&typeof e.height<"u"&&!this.state.isResizing?getStringSize(e.height):o("height");return{width:d,height:p}},enumerable:!1,configurable:!0}),i.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var e=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(e=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var d={width:t.offsetWidth,height:t.offsetHeight};return e&&(this.parentNode.style.flexWrap=o),this.removeBase(t),d},i.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},i.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},i.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:t.flexBasis!=="auto"?t.flexBasis:void 0})}},i.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},i.prototype.createSizeForCssProperty=function(t,e){var o=this.propsSize&&this.propsSize[e];return this.state[e]==="auto"&&this.state.original[e]===t&&(typeof o>"u"||o==="auto")?"auto":t},i.prototype.calculateNewMaxFromBoundary=function(t,e){var o=this.props.boundsByDirection,d=this.state.direction,p=o&&hasDirection("left",d),h=o&&hasDirection("top",d),y,E;if(this.props.bounds==="parent"){var $=this.parentNode;$&&(y=p?this.resizableRight-this.parentLeft:$.offsetWidth+(this.parentLeft-this.resizableLeft),E=h?this.resizableBottom-this.parentTop:$.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(y=p?this.resizableRight:this.window.innerWidth-this.resizableLeft,E=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(y=p?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),E=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return y&&Number.isFinite(y)&&(t=t&&t<y?t:y),E&&Number.isFinite(E)&&(e=e&&e<E?e:E),{maxWidth:t,maxHeight:e}},i.prototype.calculateNewSizeFromDirection=function(t,e){var o=this.props.scale||1,d=normalizeToPair(this.props.resizeRatio||1),p=d[0],h=d[1],y=this.state,E=y.direction,$=y.original,M=this.props,
133X=M.lockAspectRatio,Z=M.lockAspectRatioExtraHeight,ye=M.lockAspectRatioExtraWidth,be=$.width,we=$.height,xe=Z||0,$e=ye||0;return hasDirection("right",E)&&(be=$.width+(t-$.x)*p/o,X&&(we=(be-$e)/this.ratio+xe)),hasDirection("left",E)&&(be=$.width-(t-$.x)*p/o,X&&(we=(be-$e)/this.ratio+xe)),hasDirection("bottom",E)&&(we=$.height+(e-$.y)*h/o,X&&(be=(we-xe)*this.ratio+$e)),hasDirection("top",E)&&(we=$.height-(e-$.y)*h/o,X&&(be=(we-xe)*this.ratio+$e)),{newWidth:be,newHeight:we}},i.prototype.calculateNewSizeFromAspectRatio=function(t,e,o,d){var p=this.props,h=p.lockAspectRatio,y=p.lockAspectRatioExtraHeight,E=p.lockAspectRatioExtraWidth,$=typeof d.width>"u"?10:d.width,M=typeof o.width>"u"||o.width<0?t:o.width,X=typeof d.height>"u"?10:d.height,Z=typeof o.height>"u"||o.height<0?e:o.height,ye=y||0,be=E||0;if(h){var we=(X-ye)*this.ratio+be,xe=(Z-ye)*this.ratio+be,$e=($-be)/this.ratio+ye,Ne=(M-be)/this.ratio+ye,Fe=Math.max($,we),De=Math.min(M,xe),Le=Math.max(X,$e),He=Math.min(Z,Ne);t=clamp(t,Fe,De),e=clamp(e,Le,He)}else t=clamp(t,$,M),e=clamp(e,X,Z);return{newWidth:t,newHeight:e}},i.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if(this.props.bounds==="parent"){var e=this.parentNode;if(e){var o=e.getBoundingClientRect();this.parentLeft=o.left*t,this.parentTop=o.top*t}}if(this.props.bounds&&typeof this.props.bounds!="string"){var d=this.props.bounds.getBoundingClientRect();this.targetLeft=d.left*t,this.targetTop=d.top*t}if(this.resizable){var p=this.resizable.getBoundingClientRect(),h=p.left,y=p.top,E=p.right,$=p.bottom;this.resizableLeft=h*t,this.resizableRight=E*t,this.resizableTop=y*t,this.resizableBottom=$*t}},i.prototype.onResizeStart=function(t,e){if(!(!this.resizable||!this.window)){var o=0,d=0;if(t.nativeEvent&&isMouseEvent(t.nativeEvent)?(o=t.nativeEvent.clientX,d=t.nativeEvent.clientY):t.nativeEvent&&isTouchEvent(t.nativeEvent)&&(o=t.nativeEvent.touches[0].clientX,d=t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var p=this.props.onResizeStart(t,e,this.resizable);if(p===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var h,y=this.window.getComputedStyle(this.resizable);if(y.flexBasis!=="auto"){var E=this.parentNode;if(E){var $=this.window.getComputedStyle(E).flexDirection;this.flexDir=$.startsWith("row")?"row":"column",h=y.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var M={original:{x:o,y:d,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:e,flexBasis:h};this.setState(M)}},i.prototype.onMouseMove=function(t){var e=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(t))try{t.preventDefault(),t.stopPropagation()}catch{}var o=this.props,d=o.maxWidth,p=o.maxHeight,h=o.minWidth,y=o.minHeight,E=isTouchEvent(t)?t.touches[0].clientX:t.clientX,$=isTouchEvent(t)?t.touches[0].clientY:t.clientY,M=this.state,X=M.direction,Z=M.original,ye=M.width,be=M.height,we=this.getParentSize(),xe=calculateNewMax(we,this.window.innerWidth,this.window.innerHeight,d,p,h,y);d=xe.maxWidth,p=xe.maxHeight,h=xe.minWidth,y=xe.minHeight;var $e=this.calculateNewSizeFromDirection(E,$),Ne=$e.newHeight,Fe=$e.newWidth,De=this.calculateNewMaxFromBoundary(d,p);this.props.snap&&this.props.snap.x&&(Fe=findClosestSnap(Fe,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(Ne=findClosestSnap(Ne,this.props.snap.y,this.props.snapGap));var Le=this.calculateNewSizeFromAspectRatio(Fe,Ne,{width:De.maxWidth,height:De.maxHeight},{width:h,height:y});if(Fe=Le.newWidth,Ne=Le.newHeight,this.props.grid){var He=snap(Fe,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),Ke=snap(Ne,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),je=this.props.snapGap||0,Ve=je===0||Math.abs(He-Fe)<=je?He:Fe,qe=je===0||Math.abs(Ke-Ne)<=je?Ke:Ne;Fe=Ve,Ne=qe}var Ye={width:Fe-Z.width,height:Ne-Z.height};if(this.delta=Ye,ye&&typeof ye=="string"){if(ye.endsWith("%")){var et=Fe/we.width*100;Fe="".concat(et,"%")}else if(ye.endsWith("vw")){var Qe=Fe/this.window.innerWidth*100;Fe="".concat(Qe,"vw")}else if(ye.endsWith("vh")){var ze=Fe/this.window.innerHeight*100;Fe="".concat(ze,"vh")}}if(be&&typeof be=="string"){if(be.endsWith("%")){var et=Ne/we.height*100;Ne="".concat(et,"%")}else if(be.endsWith("vw")){var Qe=Ne/this.window.innerWidth*100;Ne="".concat(Qe,"vw")}else if(be.endsWith("vh")){var ze=Ne/this.window.innerHeight*100;Ne="".concat(ze,"vh")}}var st={width:this.createSizeForCssProperty(Fe,"width"),height:this.createSizeForCssProperty(Ne,"height")};this.flexDir==="row"?st.flexBasis=st.width:this.flexDir==="column"&&(st.flexBasis=st.height);var at=this.state.width!==st.width,tt=this.state.height!==st.height,pt=this.state.flexBasis!==st.flexBasis,Be=at||tt||pt;Be&&reactDomExports.flushSync(function(){e.setState(st)}),this.props.onResize&&Be&&this.props.onResize(t,X,this.resizable,Ye)}},i.prototype.onMouseUp=function(t){var e,o,d=this.state,p=d.isResizing,h=d.direction;d.original,!(!p||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(t,h,this.resizable,this.delta),this.props.size&&this.setState({width:(e=this.props.size.width)!==null&&e!==void 0?e:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign(__assign({},this.state.backgroundStyle),{cursor:"auto"})}))},i.prototype.updateSize=function(t){var e,o;this.setState({width:(e=t.width)!==null&&e!==void 0?e:"auto",height:(o=t.height)!==null&&o!==void 0?o:"auto"})},i.prototype.renderResizer=function(){var t=this,e=this.props,o=e.enable,d=e.handleStyles,p=e.handleClasses,h=e.handleWrapperStyle,y=e.handleWrapperClass,E=e.handleComponent;if(!o)return null;var $=Object.keys(o).map(function(M){return o[M]!==!1?jsxRuntimeExports.jsx(Resizer,{direction:M,onResizeStart:t.onResizeStart,replaceStyles:d&&d[M],className:p&&p[M],children:E&&E[M]?E[M]:null},M):null});return jsxRuntimeExports.jsx("div",{className:y,style:h,children:$})},i.prototype.render=function(){var t=this,e=Object.keys(this.props).reduce(function(p,h){return definedProps.indexOf(h)!==-1||(p[h]=t.props[h]),p},{}),o=__assign(__assign(__assign({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var d=this.props.as||"div";return jsxRuntimeExports.jsxs(d,__assign({style:o,className:this.props.className},e,{ref:function(p){p&&(t.resizable=p)},children:[this.state.isResizing&&jsxRuntimeExports.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},i.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
133,grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},i})(reactExports.PureComponent);const DEFAULT_WIDTH="300";function shouldCollapse(n,i,t){switch(n){case PageConfig.SidebarState.EXPANDED:return!1;case PageConfig.SidebarState.COLLAPSED:return!0;case PageConfig.SidebarState.AUTO:default:return t<=i}}const getSidebarCollapsedKey=n=>`stSidebarCollapsed-${n}`,getSavedSidebarState=n=>{if(!localStorageAvailable())return null;const i=window.localStorage.getItem(getSidebarCollapsedKey(n));return i===null?null:i==="true"},saveSidebarState=(n,i)=>{localStorageAvailable()&&window.localStorage.setItem(getSidebarCollapsedKey(n),i.toString())};function clampSidebarWidth(n){return Number.isNaN(n)?Number.parseInt(DEFAULT_WIDTH,10):Math.min(600,Math.max(200,n))}function calculateMaxBreakpoint(n){return parseInt(n,10)-.02}const Sidebar=({endpoints:n,children:i,hasElements:t,isCollapsed:e,onToggleCollapse:o,widgetsDisabled:d})=>{const p=useEmotionTheme(),h=calculateMaxBreakpoint(p.breakpoints.md),{innerWidth:y}=useWindowDimensionsContext(),{appPages:E}=reactExports.useContext(NavigationContext),{hideSidebarNav:$,appLogo:M,initialSidebarWidth:X,appRootRef:Z}=reactExports.useContext(SidebarConfigContext),ye=useScrollbarGutterSize(),be=reactExports.useRef(null),we=localStorageAvailable()?window.localStorage.getItem("sidebarWidth"):void 0,[xe,$e]=reactExports.useState(()=>{const st=(()=>{if(we){const at=Number.parseInt(we,10);return Number.isNaN(at)?null:clampSidebarWidth(at).toString()}return null})();return st||(notNullOrUndefined(X)?clampSidebarWidth(X).toString():DEFAULT_WIDTH)}),[Ne,Fe]=reactExports.useState(y??1/0),[De,Le]=reactExports.useState(!1),He=reactExports.useCallback(()=>{Le(!0)},[]),Ke=reactExports.useCallback(()=>{Le(!1)},[]),je=reactExports.useCallback(ze=>{const at=clampSidebarWidth(ze).toString();$e(at),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",at)},[]),Ve=reactExports.useCallback((ze,st,at,tt)=>{if(at){const pt=at.clientWidth||at.offsetWidth;je(pt)}},[je]);useExecuteWhenChanged(()=>{y<Ne&&y<=h&&!e&&o(!0,!1),Fe(y)},[y]),reactExports.useEffect(()=>{const ze=st=>{const at=be.current,tt=Z?.current,pt=st.target;if(!at||!pt)return;const Be=at.contains(pt),Ge=tt?.contains(pt)??!1,it=y<=h;!Be&&Ge&&it&&!e&&o(!0)};return document.addEventListener("mousedown",ze),()=>{document.removeEventListener("mousedown",ze)}},[h,e,o,y,Z]);function qe(){const ze=notNullOrUndefined(X)?clampSidebarWidth(X).toString():DEFAULT_WIDTH;$e(ze),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",ze)}const Ye=reactExports.useCallback(()=>{o(!e)},[e,o]),et=()=>M?jsx$1(LogoComponent,{appLogo:M,endpoints:n,collapsed:e,componentName:"Sidebar Logo",dataTestId:"stSidebarLogo"}):jsx$1(StyledNoLogoSpacer,{"data-testid":"stLogoSpacer"}),Qe=shouldShowNavigation(E)&&!$;return jsx$1(Resizable,{className:"stSidebar","data-testid":"stSidebar","aria-expanded":!e,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:RESIZE_HANDLE_WIDTH,right:"-6px"}},handleComponent:{right:jsx$1(StyledResizeHandle,{onDoubleClick:qe})},size:{width:xe,height:"auto"},as:StyledSidebar,onResizeStop:Ve,isCollapsed:e,sidebarWidth:xe,windowInnerWidth:y,children:jsxs(StyledSidebarContent,{"data-testid":"stSidebarContent",ref:be,onMouseOver:He,onMouseOut:Ke,scrollbarGutterSize:ye,children:[jsxs(StyledSidebarHeaderContainer,{"data-testid":"stSidebarHeader",children:[et(),jsx$1(StyledCollapseSidebarButton,{showSidebarCollapse:De,"data-testid":"stSidebarCollapseButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:Ye,children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_left:",color:p.colors.fadedText60})})})]}),Qe&&jsx$1(SidebarNav,{endpoints:n,collapseSidebar:Ye,hasSidebarElements:t,widgetsDisabled:d}),jsx$1(StyledSidebarUserContent,{hasPageNavAbove:Qe,"data-testid":"stSidebarUserContent",children:i})]})})};function SidebarWithProvider(n){return jsx$1(IsSidebarContext.Provider,{value:!0,children:jsx$1(Sidebar,{...n})})}const ThemedSidebar=({children:n,...i})=>{const{activeTheme:t}=reactExports.useContext(ThemeContext),e=createSidebarTheme(t);return jsx$1(ThemeProvider,{theme:e.emotion,baseuiTheme:e.basewebTheme,children:jsx$1(SidebarWithProvider,{...i,children:n})})},StyledAppViewContainer=styled("div",{target:"e1td4qo60"})({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",alignContent:"flex-start",position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden","@media print":{overflow:"visible"}}),StyledAppViewMain=styled("section",{target:"e1td4qo61"})(({disableScrolling:n,theme:i})=>({display:"flex",flexDirection:"column",width:i.sizes.full,overflow:n?"hidden":"auto",alignItems:"center",height:"100dvh","&:focus":{outline:"none"},"@media not print":{[`@media (max-width: ${i.breakpoints.md})`]:{position:"absolute",top:0,left:0,right:0,bottom:0,height:"100dvh"}},"@media print":{overflow:"visible"}})),StyledStickyBottomContainer=styled("div",{target:"e1td4qo62"})(({theme:n})=>({position:"sticky",left:0,bottom:0,width:"100%",zIndex:n.zIndices.bottom,"@media print":{position:"static"}})),StyledInnerBottomContainer=styled("div",{target:"e1td4qo63"})(({theme:n})=>({position:"relative",bottom:0,width:"100%",minWidth:"100%",backgroundColor:n.colors.bgColor,display:"flex",flexDirection:"column",alignItems:"center"})),applyWideModePadding=n=>({[`@media (min-width: calc(${n.sizes.contentMaxWidth} + 2 * (${n.sizes.wideSidePadding} - ${n.spacing.lg})))`]:{paddingLeft:n.sizes.wideSidePadding,paddingRight:n.sizes.wideSidePadding},minWidth:"auto",maxWidth:"initial"}),StyledAppViewBlockContainer=styled("div",{target:"e1td4qo64"})(({hasBottom:n,isWideMode:i,showPadding:t,hasHeader:e,showToolbar:o,hasTopNav:d,hasSidebar:p,embedded:h,theme:y})=>{const E="2.25rem";let $=E;h?t||o?$="6rem":(e||p)&&($="4.5rem"):$=d?"8rem":"6rem";const M=t&&!n?"10rem":y.spacing.lg;return{width:y.sizes.full,paddingLeft:y.spacing.lg,paddingRight:y.spacing.lg,paddingTop:$,paddingBottom:M,maxWidth:y.sizes.contentMaxWidth,...i&&applyWideModePadding(y),"@media print":{paddingTop:E}}}),StyledSidebarBlockContainer=styled("div",{target:"e1td4qo65"})(({theme:n})=>({width:n.sizes.full})),StyledEventBlockContainer=styled("div",{target:"e1td4qo66"})({display:"none"}),StyledBottomBlockContainer=styled("div",{target:"e1td4qo67"})(({isWideMode:n,showPadding:i,theme:t})=>({width:t.sizes.full,paddingLeft:t.spacing.lg,paddingRight:t.spacing.lg,paddingTop:t.spacing.lg,paddingBottom:i?t.sizes.appDefaultBottomPadding:t.spacing.threeXL,maxWidth:t.sizes.contentMaxWidth,...n&&applyWideModePadding(t),"@media print":{paddingTop:t.spacing.none}})),StyledAppViewBlockSpacer=styled("div",{target:"e1td4qo68"})(({theme:n})=>({width:n.sizes.full,flexGrow:1})),StyledIFrameResizerAnchor=styled("div",{target:"e1td4qo69"})(({theme:n})=>({position:"relative",bottom:n.spacing.none})),StyledMainContent=styled("div",{target:"e1td4qo610"})(({theme:n})=>({width:n.sizes.full,minWidth:0,height:"100dvh",[`@media (min-width: ${n.breakpoints.md})`]:{position:"relative"}}
133));function ScrollToBottomContainer(n){const{className:i,tabIndex:t,children:e,isEmbedded:o,disableScrolling:d}=n,p=useScrollToBottom(!0);return jsx$1(StyledAppViewMain,{tabIndex:t,className:i,isEmbedded:o,disableScrolling:d,ref:p,"data-testid":"stAppScrollToBottomContainer",children:e})}function AppView(n){const{elements:i,widgetMgr:t,uploadClient:e,sendMessageToHost:o,endpoints:d,navigationPosition:p,topRightContent:h,wideMode:y,embedded:E,showPadding:$,disableScrolling:M,addScriptFinishedHandler:X,removeScriptFinishedHandler:Z,widgetsDisabled:ye,showToolbar:be,disableFullscreenMode:we,componentRegistry:xe}=n;reactExports.useEffect(()=>{const ht=()=>{o({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",ht,!1),()=>window.removeEventListener("hashchange",ht,!1)},[o]);const{activeTheme:$e}=reactExports.useContext(ThemeContext),{appPages:Ne,pageLinkBaseUrl:Fe}=reactExports.useContext(NavigationContext),{initialSidebarState:De,appLogo:Le,hideSidebarNav:He}=reactExports.useContext(SidebarConfigContext),{innerWidth:Ke}=useWindowDimensionsContext(),je=y?"wide":"narrow",Ve=!i.sidebar.isEmpty,qe=!i.event.isEmpty,Ye=!i.bottom.isEmpty,[et,Qe]=reactExports.useState(!1),ze=Ke>0&&(Ve||p===Navigation.Position.SIDEBAR&&!He&&shouldShowNavigation(Ne)||et);reactExports.useEffect(()=>{ze&&He&&!et&&Qe(!0)},[ze,He,et]);const st=reactExports.useCallback(()=>{!Ve&&et&&Qe(!1)},[Ve,et]);reactExports.useEffect(()=>(X(st),()=>{Z(st)}),[st,X,Z]);const at=Ye?ScrollToBottomContainer:StyledAppViewMain,tt=ht=>jsx$1(ContainerContentsWrapper,{node:ht,endpoints:d,widgetMgr:t,widgetsDisabled:ye,uploadClient:e,disableFullscreenMode:we,componentRegistry:xe,height:"auto",isRoot:!0}),[pt,Be]=reactExports.useState(()=>{const ht=getSavedSidebarState(Fe);return ht!==null?ht:shouldCollapse(De,parseInt($e.emotion.breakpoints.md,10),Ke)});useExecuteWhenChanged(()=>{if(Ke>0&&ze){const ht=getSavedSidebarState(Fe);Be(ht!==null?ht:shouldCollapse(De,parseInt($e.emotion.breakpoints.md,10),Ke))}},[Ke,ze,De,$e.emotion.breakpoints.md,Fe]);const Ge=reactExports.useCallback((ht,Ft=!0)=>{Be(ht),Ft&&saveSidebarState(Fe,ht)},[Fe]),it=reactExports.useCallback(()=>{Ge(!pt,!0)},[Ge,pt]),Ue=Le?jsx$1(LogoComponent,{appLogo:Le,endpoints:d,collapsed:pt||!ze,componentName:"Header Logo",dataTestId:"stHeaderLogo"}):null,Ot=Ue&&(!ze||pt),Rt=ze&&pt,dt=p===Navigation.Position.TOP&&shouldShowNavigation(Ne),Tt=Ot||Rt||dt||be;return jsxs(StyledAppViewContainer,{className:"stAppViewContainer appview-container","data-testid":"stAppViewContainer","data-layout":je,children:[ze&&jsx$1(Profiler,{id:"Sidebar",children:jsx$1(ThemedSidebar,{endpoints:d,hasElements:Ve,isCollapsed:pt,onToggleCollapse:Ge,widgetsDisabled:ye,children:jsx$1(StyledSidebarBlockContainer,{children:tt(i.sidebar)})})}),jsxs(StyledMainContent,{children:[jsx$1(Header,{hasSidebar:ze,isSidebarOpen:ze&&!pt,onToggleSidebar:it,navigation:p===Navigation.Position.TOP&&shouldShowNavigation(Ne)?jsx$1(TopNav,{endpoints:d,widgetsDisabled:ye}):null,rightContent:h,logoComponent:Ue,showToolbar:be}),jsxs(at,{tabIndex:0,isEmbedded:E,disableScrolling:M,className:"stMain","data-testid":"stMain",children:[jsx$1(Profiler,{id:"Main",children:jsx$1(StyledAppViewBlockContainer,{className:"stMainBlockContainer block-container","data-testid":"stMainBlockContainer",isWideMode:y,showPadding:$,hasBottom:Ye,hasHeader:Tt,hasSidebar:ze,showToolbar:be,hasTopNav:dt,embedded:E,children:tt(i.main)})}),!Ye&&jsx$1(StyledIFrameResizerAnchor,{"data-testid":"stAppIframeResizerAnchor","data-iframe-height":!0}),Ye&&jsxs(Profiler,{id:"Bottom",children:[jsx$1(StyledAppViewBlockSpacer,{}),jsx$1(StyledStickyBottomContainer,{className:"stBottom","data-testid":"stBottom",children:jsx$1(StyledInnerBottomContainer,{children:jsx$1(StyledBottomBlockContainer,{"data-testid":"stBottomBlockContainer",isWideMode:y,showPadding:$,children:tt(i.bottom)})})})]})]})]}),qe&&jsx$1(Profiler,{id:"Event",children:jsx$1(EventContainer,{children:jsx$1(StyledEventBlockContainer,{className:"stEvent","data-testid":"stEvent",children:tt(i.event)})})})]})}const DeployButtonContainer=styled("div",{target:"e19wr9s00"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),DeployButton=({onClick:n})=>jsx$1("div",{className:"stAppDeployButton","data-testid":"stAppDeployButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_BUTTON,onClick:n,children:jsx$1(DeployButtonContainer,{children:jsx$1("span",{children:"Deploy"})})})});var MoreVert=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:i}),reactExports.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),reactExports.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))});MoreVert.displayName="MoreVert";const BLOB_TYPE="video/webm",LOG$a=loglevelExports.getLogger("ScreenCastRecorder");class ScreenCastRecorder{static isSupportedBrowser(){try{return notNullOrUndefined(navigator.mediaDevices)&¬NullOrUndefined(navigator.mediaDevices.getUserMedia)&¬NullOrUndefined(navigator.mediaDevices.getDisplayMedia)&&MediaRecorder.isTypeSupp
133orted(BLOB_TYPE)}catch{return!1}}constructor({recordAudio:i,onErrorOrStop:t}){this.recordAudio=i,this.onErrorOrStopCallback=t,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}async initialize(){let t=(await navigator.mediaDevices.getDisplayMedia({video:!0})).getTracks();if(this.recordAudio){const e=await navigator.mediaDevices.getUserMedia({video:!1,audio:!0});t=t.concat(e.getAudioTracks())}this.recordedChunks=[],this.inputStream=new MediaStream(t),this.mediaRecorder=new MediaRecorder(this.inputStream,{mimeType:BLOB_TYPE}),this.mediaRecorder.ondataavailable=e=>this.recordedChunks.push(e.data)}getState(){return this.mediaRecorder?this.mediaRecorder.state:"inactive"}start(){if(!this.mediaRecorder)return LOG$a.warn("ScreenCastRecorder.start: mediaRecorder is null"),!1;const i=t=>{LOG$a.warn(`mediaRecorder.start threw an error: ${t}`)};this.mediaRecorder.onerror=t=>{i(t),this.onErrorOrStopCallback()},this.mediaRecorder.onstop=()=>this.onErrorOrStopCallback();try{this.mediaRecorder.start()}catch(t){return i(t),!1}return!0}stop(){if(!this.mediaRecorder)return;let i;const t=new Promise(e=>{i=e});return this.mediaRecorder.onstop=()=>i(),this.mediaRecorder.stop(),this.inputStream&&(this.inputStream.getTracks().forEach(e=>e.stop()),this.inputStream=null),t.then(()=>this.buildOutputBlob())}buildOutputBlob(){return new Blob(this.recordedChunks,{type:BLOB_TYPE})}}const recordingIndicatorPulse=n=>keyframes("0%{box-shadow:0 0 ",n.spacing.twoXS," ",n.colors.redTextColor,";}50%{box-shadow:0 0 ",n.spacing.sm," ",n.spacing.twoXS," ",n.colors.redTextColor,";}100%{box-shadow:0 0 ",n.spacing.twoXS," ",n.colors.redTextColor,";}"),StyledRecordingIndicator=styled("div",{target:"eluf4g00"})(({theme:n})=>({position:"absolute",bottom:n.spacing.lg,right:n.spacing.sm,width:n.spacing.sm,height:n.spacing.sm,backgroundColor:n.colors.redTextColor,borderRadius:n.radii.full,boxShadow:`0 0 ${n.spacing.twoXS} ${n.colors.redTextColor}`,animation:`${recordingIndicatorPulse(n)} 2s linear infinite`})),StyledMenuDivider=styled("div",{target:"eluf4g01"})(({theme:n})=>({borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,width:"100%"})),StyledMenuPopoverContent=styled("div",{target:"eluf4g02"})(({theme:n})=>({padding:n.spacing.sm,minWidth:n.sizes.appMainMenu,"@media print":{display:"none"}})),StyledMenuContainer=styled("div",{target:"eluf4g03"})(({theme:n})=>({display:"flex",flexDirection:"column",alignItems:"stretch",gap:n.spacing.xs})),StyledMainMenuContainer=styled("span",{target:"eluf4g04"})({lineHeight:"initial"}),StyledMenuItemRow=styled("button",{target:"eluf4g05"})(({theme:n,isRecording:i})=>({display:"flex",alignItems:"center",padding:`${n.spacing.threeXS} ${n.spacing.sm}`,border:"none",borderRadius:n.radii.default,backgroundColor:n.colors.transparent,cursor:"pointer",fontSize:n.fontSizes.sm,lineHeight:`${n.lineHeights.small}rem`,textAlign:"left",color:i?n.colors.redTextColor:n.colors.bodyText,fontWeight:i?n.fontWeights.bold:n.fontWeights.normal,transition:"background-color 100ms ease","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRingMuted},'&[aria-disabled="true"]':{color:n.colors.fadedText60,cursor:"not-allowed"},'&[aria-disabled="true"]:hover':{backgroundColor:n.colors.transparent}})),StyledMenuItemContent=styled("span",{target:"eluf4g06"})(({theme:n})=>({display:"flex",alignItems:"center",width:"100%",gap:n.spacing.sm})),StyledMenuItemLabel=styled("span",{target:"eluf4g07"})({display:"inline-flex",alignItems:"center",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),StyledMenuItemShortcut=styled("kbd",{target:"eluf4g08"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",fontSize:n.fontSizes.sm,opacity:.6,fontFamily:"inherit",lineHeight:n.lineHeights.tight,letterSpacing:"0.01em"})),StyledThemeRadioGroup=styled("div",{target:"eluf4g09"})(({theme:n})=>({display:"flex",flexDirection:"row",gap:n.spacing.threeXS,width:"100%"})),StyledThemeRadioItem=styled("button",{target:"eluf4g010"})(({theme:n,isChecked:i})=>({display:"flex",flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:n.spacing.twoXS,padding:`${n.spacing.xs} ${n.spacing.sm}`,border:"none",borderRadius:n.radii.default,backgroundColor:i?n.colors.darkenedBgMix25:n.colors.transparent,cursor:"pointer",fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.tight,color:n.colors.bodyText,transition:"background-color 100ms ease","&:hover":{backgroundColor:i?n.colors.darkenedBgMix25:n.colors.darkenedBgMix15},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRingMuted,backgroundColor:i?n.colors.darkenedBgMix25:n.colors.darkenedBgMix15}})),StyledThemeRadioIcon=styled("span",{target:"eluf4g011"})({display:"inline-flex",alignItems:"center",justifyContent:"center"}),StyledToggleRow=styled("button",{target:"eluf4g012"})(({theme:n,isDisabled:i})=>({display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:`${n.spacing.threeXS} ${n.spacing.sm}`,border:"none",borderRadius:n.radii.default,backgroundColor:n.colors.transparent,cursor:i?"not-allowed":"pointer",color:i?n.colors.fadedText60:n.colors.bodyText,fontSize:n.fontSizes.sm,lineHeight:`${n.lineHeights.small}rem`,textAlign:"left",fontWeight:n.fontWeights.normal,transition:"background-color 100ms ease","&:hover":{backgroundColor:i?n.colors.transparent:n.colors.darkenedBgMix15},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15,boxSh
133adow:n.shadows.focusRingMuted}})),StyledToggleTrack=styled("div",{target:"eluf4g013"})(({theme:n,isChecked:i,isDisabled:t})=>({display:"flex",alignItems:"center",flexShrink:0,width:`calc(2 * ${n.sizes.checkbox})`,minWidth:`calc(2 * ${n.sizes.checkbox})`,height:n.sizes.checkbox,minHeight:n.sizes.checkbox,padding:`0 ${n.spacing.threeXS}`,borderRadius:n.radii.full,backgroundColor:i&&!t?n.colors.primary:n.colors.borderColor,transition:"background-color 100ms ease"})),StyledToggleKnob=styled("div",{target:"eluf4g014"})(({theme:n,isChecked:i,isDisabled:t})=>{const e=hasLightBackgroundColor(n);let o=e?n.colors.bgColor:n.colors.bodyText;return t&&(o=e?n.colors.gray70:n.colors.gray90),{width:`calc(${n.sizes.checkbox} - ${n.spacing.twoXS})`,height:`calc(${n.sizes.checkbox} - ${n.spacing.twoXS})`,borderRadius:n.radii.full,backgroundColor:o,transform:i?`translateX(${n.sizes.checkbox})`:"none",transition:"transform 100ms ease, background-color 100ms ease"}}),StyledMenuVersionFooter=styled("div",{target:"eluf4g015"})(({theme:n})=>({paddingLeft:n.spacing.sm,paddingRight:n.spacing.sm})),StyledMenuVersionRow=styled("div",{target:"eluf4g016"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.sm,marginTop:n.spacing.xs,".stMenuVersionCopyButton":{opacity:0,pointerEvents:"none",transition:"opacity 120ms ease"},"&:hover .stMenuVersionCopyButton, &:focus-within .stMenuVersionCopyButton":{opacity:1,pointerEvents:"auto"}})),StyledMenuVersionText=styled("span",{target:"eluf4g017"})(({theme:n})=>({display:"inline-flex",alignItems:"center",opacity:.6,fontSize:n.fontSizes.twoSm,lineHeight:n.lineHeights.menuItem,color:n.colors.bodyText,whiteSpace:"nowrap"})),THEME_OPTIONS=[{label:"System",icon:":material/contrast:"},{label:"Light",icon:":material/light_mode:"},{label:"Dark",icon:":material/dark_mode:"}];function findThemeForSelection(n,i){switch(n){case"System":return i.find(t=>t.name===CUSTOM_THEME_AUTO_NAME||t.name===AUTO_THEME_NAME);case"Light":return i.find(t=>t.name===CUSTOM_THEME_LIGHT_NAME||t.name===lightTheme.name);case"Dark":return i.find(t=>t.name===CUSTOM_THEME_DARK_NAME||t.name===darkTheme.name)}}function buildThemeSection(n,i,t,e){if(i.length<=1)return[];const o=getThemeSelectionFromThemeConfig(n);return THEME_OPTIONS.map(d=>({type:"radio",key:`theme-${d.label}`,label:d.label,icon:d.icon,checked:o===d.label,onSelect:()=>{const p=findThemeForSelection(d.label,i);p&&(e.enqueue("menuClick",{label:"changeTheme"}),t(p))}}))}const ToggleItemRow=reactExports.memo(function n({item:i,tabIndex:t,itemIndex:e,setItemRef:o}){const{key:d,label:p,checked:h,disabled:y,onToggle:E}=i,$=reactExports.useCallback(X=>{o(e,X)},[o,e]),M=reactExports.useCallback(()=>{y||E()},[y,E]);return jsxs(StyledToggleRow,{ref:$,type:"button",isDisabled:y,role:"menuitemcheckbox","aria-checked":h,"aria-disabled":y||void 0,tabIndex:t,onClick:M,"data-testid":`stMainMenuItem-${d}`,children:[p,jsx$1(StyledToggleTrack,{isChecked:h,isDisabled:y,children:jsx$1(StyledToggleKnob,{isChecked:h,isDisabled:y})})]})}),LOG$9=loglevelExports.getLogger("MainMenu"),SCREENCAST_LABEL={COUNTDOWN:"Cancel recording",RECORDING:"Stop recording"},MENU_OPEN_KEYS=new Set(["Enter"," ","Space","Spacebar"]);function formatDisplayVersion(n){return n.replace(/\.dev\d+/,".dev")}function openInNewTab(n,i){window.open(n,"_blank")||LOG$9.warn(`Failed to open "${i}" link. This may be due to a popup blocker. URL: ${n}`)}function isRadioItem(n){return n.type==="radio"}function isToggleItem(n){return n.type==="toggle"}function buildMenuData(n,i,t,e,o,d,p,h,y,E,$,M,X,Z,ye,be,we){const xe=!n,$e=buildCommonItems(e,o,$),Ne=buildAboutItem(e,E);if(M)return[X,[...$e,...Ne]];const Fe=buildStandardItems(t,h,y);
133return[X,buildDevItems(i,d,xe,Z,ye,be,we),buildClearCacheItem(i,p,xe),[...Fe,...Ne],$e]}function buildDevItems(n,i,t,e,o,d,p){if(!n)return[];const h=[{type:"action",key:"rerun",label:"Rerun",onClick:i,disabled:t,shortcut:"R"}];return d&&h.push({type:"toggle",key:"autoRerun",label:"Auto rerun",checked:e,disabled:t,onToggle:()=>{p.enqueue("menuClick",{label:"autoRerun"}),o(!e)}}),h}function buildClearCacheItem(n,i,t){return n?[{type:"action",key:"clearCache",label:"Clear cache",onClick:i,disabled:t,shortcut:"C"}]:[]}function buildStandardItems(n,i,t){const e=[{type:"action",key:"print",label:"Print",onClick:i}];if(ScreenCastRecorder.isSupportedBrowser()){const o=SCREENCAST_LABEL[n]||"Record screen";e.push({type:"action",key:"recordScreencast",label:o,onClick:t,isRecording:!!SCREENCAST_LABEL[n],shortcut:SCREENCAST_LABEL[n]?"ESC":void 0})}return e}function buildCommonItems(n,i,t){const e=[],o=n?.reportABugUrl;o&&!n?.hideReportABug&&e.push({type:"action",key:"report",label:"Report a bug",onClick:()=>openInNewTab(o,"Report a bug")});const d=n?.getHelpUrl;d&&!n?.hideGetHelp&&e.push({type:"action",key:"community",label:"Get help",onClick:()=>openInNewTab(d,"Get help")});for(const p of i)p.type!=="separator"&&(p.key==="reportBug"&&n?.hideGetHelp||p.key==="about"&&n?.aboutSectionMd||e.push({type:"action",key:`host-${p.key}`,label:p.label,onClick:()=>t({type:"MENU_ITEM_CALLBACK",key:p.key})}));return e}function buildAboutItem(n,i){return n?.aboutSectionMd?[{type:"action",key:"about",label:"About",onClick:i}]:[]}const MenuItemRow=reactExports.memo(function n({item:i,onItemClick:t,tabIndex:e,itemIndex:o,setItemRef:d}){const p=()=>{i.disabled||t(i)},h=reactExports.useCallback(y=>{d(o,y)},[d,o]);return jsx$1(StyledMenuItemRow,{type:"button",ref:h,onClick:p,role:"menuitem","aria-disabled":i.disabled||void 0,tabIndex:e,isRecording:i.isRecording,"data-testid":`stMainMenuItem-${i.key}`,children:jsxs(StyledMenuItemContent,{children:[jsx$1(StyledMenuItemLabel,{"data-testid":"stMainMenuItemLabel",children:i.label}),i.shortcut&&jsx$1(StyledMenuItemShortcut,{children:i.shortcut})]})})}),ThemeRadioItemRow=reactExports.memo(function n({item:i,onRadioSelect:t,tabIndex:e,itemIndex:o,setItemRef:d}){const p=()=>{t(i)},h=reactExports.useCallback(y=>{d(o,y)},[d,o]);return jsxs(StyledThemeRadioItem,{type:"button",ref:h,onClick:p,role:"menuitemradio","aria-checked":i.checked,tabIndex:e,isChecked:i.checked,"data-testid":`stMainMenuItem-${i.key}`,children:[jsx$1(StyledThemeRadioIcon,{children:jsx$1(DynamicIcon,{iconValue:i.icon,size:"lg"})}),i.label]})});function MenuContent({sections:n,closeMenu:i,metricsMgr:t,streamlitVersion:e}){const o=useEmotionTheme(),d=reactExports.useRef([]),p=reactExports.useMemo(()=>n.flat(),[n]),[h,y]=reactExports.useState(0),E=Math.max(0,p.length-1),$=p.length===0?-1:Math.min(h,E),M=Le=>{y(Le),d.current[Le]?.focus()},X=reactExports.useCallback(Le=>{Le&&d.current[0]?.focus()},[]),Z=reactExports.useCallback((Le,He)=>{d.current[Le]=He},[]),ye=Le=>{const He=Le.target,Ke=d.current.findIndex(je=>je===He);Ke!==-1&&y(Ke)},be=Le=>{t.enqueue("menuClick",{label:Le.label}),Le.onClick(),i()},we=Le=>{Le.onSelect()},xe=Le=>{if(p.length!==0)switch(Le.key){case"ArrowDown":{Le.preventDefault(),M($>=E?0:$+1);break}case"ArrowUp":{Le.preventDefault(),M($<=0?E:$-1);break}case"Home":{Le.preventDefault(),M(0);break}case"End":{Le.preventDefault(),M(E);break}case"Escape":{Le.preventDefault(),i("escape");break}
133case"Tab":{if(e)break;Le.preventDefault(),i(Le.shiftKey?"shift-tab":"tab");break}}},$e=Le=>{switch(Le.key){case"Tab":{Le.shiftKey||(Le.preventDefault(),i("tab"));break}case"Escape":{Le.preventDefault(),i("escape");break}}},Ne=[];let Fe=0,De=0;for(const Le of n){if(Le.length===0)continue;if(Ne.length>0&&(Ne.push(jsx$1(StyledMenuDivider,{role:"separator","aria-hidden":"true","data-testid":"stMainMenuDivider"},`divider-${Fe}`)),Fe+=1),isRadioItem(Le[0])){const Ke=De;Ne.push(jsx$1(StyledThemeRadioGroup,{role:"group","aria-label":"Theme","data-testid":"stThemeSwitcher",children:Le.map((je,Ve)=>{const qe=Ke+Ve;return jsx$1(ThemeRadioItemRow,{item:je,onRadioSelect:we,tabIndex:$===qe?0:-1,itemIndex:qe,setItemRef:Z},je.key)})},"theme-radio-group")),De+=Le.length}else for(const Ke of Le)isToggleItem(Ke)?Ne.push(jsx$1(ToggleItemRow,{item:Ke,tabIndex:$===De?0:-1,itemIndex:De,setItemRef:Z},Ke.key)):Ne.push(jsx$1(MenuItemRow,{item:Ke,onItemClick:be,tabIndex:$===De?0:-1,itemIndex:De,setItemRef:Z},Ke.key)),De+=1}return jsxs(StyledMenuPopoverContent,{children:[jsx$1(StyledMenuContainer,{ref:X,"data-testid":"stMainMenuList","aria-label":"Main menu",role:"menu",onFocus:ye,onKeyDown:xe,children:Ne}),e&&jsx$1(StyledMenuVersionFooter,{onKeyDown:$e,children:jsxs(StyledMenuVersionRow,{children:[jsxs(StyledMenuVersionText,{children:["Made with Streamlit v",formatDisplayVersion(e)]}),jsx$1(CopyButton$1,{text:e,buttonSize:o.iconSizes.md,iconSize:o.iconSizes.sm,className:"stMenuVersionCopyButton",copyLabel:"Copy version to clipboard",copiedLabel:"Copied"})]})})]})}function MainMenu(n){const{isServerConnected:i,developmentMode:t,screenCastState:e,menuItems:o,hostMenuItems:d,toolbarMode:p,metricsMgr:h,quickRerunCallback:y,clearCacheCallback:E,printCallback:$,screencastCallback:M,aboutCallback:X,sendMessageToHost:Z,runOnSave:ye,onRunOnSaveChange:be,allowRunOnSave:we,streamlitVersion:xe}=n,$e=useEmotionTheme(),Ne=p===Config.ToolbarMode.MINIMAL,{activeTheme:Fe,availableThemes:De,setTheme:Le}=reactExports.useContext(ThemeContext),He=reactExports.useMemo(()=>buildThemeSection(Fe,De,Le,h),[Fe,De,Le,h]),Ke=reactExports.useMemo(()=>buildMenuData(i,t,e,o,d,y,E,$,M,X,Z,Ne,He,ye,be,we,h),[i,t,e,o,d,y,E,$,M,X,Z,Ne,He,ye,be,we,h]),[je,Ve]=reactExports.useState(!1),qe=reactExports.useRef(null),Ye=reactExports.useRef("other"),et=reactExports.useCallback(()=>{Ve(!0)},[]),Qe=reactExports.useCallback(()=>{Ve(!1)},[]),ze=reactExports.useCallback(tt=>{const pt=Ye.current;Ye.current="other";const Be=qe.current;return Be&&(pt==="tab"?focusNextElement(Be):pt==="shift-tab"?focusPrevElement(Be):Be.focus()),!1},[]),st=reactExports.useCallback(tt=>{MENU_OPEN_KEYS.has(tt.key)&&(tt.preventDefault(),tt.currentTarget.click())},[]),at=Ke.some(tt=>tt.length>0);return Ne&&!at?null:jsx$1(StatefulPopover,{focusLock:!0,returnFocus:ze,accessibilityType:ACCESSIBILITY_TYPE.none,onOpen:et,onClose:Qe,placement:PLACEMENT$1.bottomRight,content:({close:tt})=>jsx$1(MenuContent,{sections:Ke,closeMenu:pt=>{Ye.current=pt??"other",tt()},metricsMgr:h,streamlitVersion:xe}),overrides:{Body:{props:{"data-testid":"stMainMenuPopover",className:"stMainMenuPopover"},style:{boxShadow:$e.shadows.popover}}},children:jsxs(StyledMainMenuContainer,{id:"MainMenu",className:"stMainMenu","data-testid":"stMainMenu",onKeyDown:st,children:[jsx$1(BaseButton,{ref:qe,kind:BaseButtonKind.HEADER_NO_PADDING,"data-testid":"stMainMenuButton","aria-label":"Main menu","aria-haspopup":"menu","aria-expanded":je,children:jsx$1(Icon$2,{content:MoreVert,size:"lg"})}),e==="RECORDING"&&jsx$1(StyledRecordingIndicator,{"data-testid":"stMainMenuRecordingIndicator"})]})})}const MainMenu$1=reactExports.memo(MainMenu);function hasClass(n,i){return n.classList?!!i&&n.classList.contains(i):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+i+" ")!==-1}function addClass(n,i){n.classList?n.classList.add(i):hasClass(n,i)||(typeof n.className=="string"?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i))}function replaceClassName(n,i){return n.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(n,i){n.classList?n.classList.remove(i):typeof n.className=="string"?n.className=replaceClassName(n.className,i):n.setAttribute("class",replaceClassName(n.className&&n.className.baseVal||"",i))}const config={disabled:!1},TransitionGroupContext=React.createContext(null);var forceReflow=function n(i){return i.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=(function(n){_inheritsLoose(i,n);function i(e,o){var d;d=n.call(this,e,o)||this;
vendor: 4,360 bytes, line 133
133var p=o,h=p&&!p.isMounting?e.enter:e.appear,y;return d.appearStatus=null,e.in?h?(y=EXITED,d.appearStatus=ENTERING):y=ENTERED:e.unmountOnExit||e.mountOnEnter?y=UNMOUNTED:y=EXITED,d.state={status:y},d.nextCallback=null,d}i.getDerivedStateFromProps=function(o,d){var p=o.in;return p&&d.status===UNMOUNTED?{status:EXITED}:null};var t=i.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var d=null;if(o!==this.props){var p=this.state.status;this.props.in?p!==ENTERING&&p!==ENTERED&&(d=ENTERING):(p===ENTERING||p===ENTERED)&&(d=EXITING)}this.updateStatus(!1,d)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,d,p,h;return d=p=h=o,o!=null&&typeof o!="number"&&(d=o.exit,p=o.enter,h=o.appear!==void 0?o.appear:p),{exit:d,enter:p,appear:h}},t.updateStatus=function(o,d){if(o===void 0&&(o=!1),d!==null)if(this.cancelNextCallback(),d===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var p=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);p&&forceReflow(p)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},t.performEnter=function(o){var d=this,p=this.props.enter,h=this.context?this.context.isMounting:o,y=this.props.nodeRef?[h]:[ReactDOM.findDOMNode(this),h],E=y[0],$=y[1],M=this.getTimeouts(),X=h?M.appear:M.enter;if(!o&&!p||config.disabled){this.safeSetState({status:ENTERED},function(){d.props.onEntered(E)});return}this.props.onEnter(E,$),this.safeSetState({status:ENTERING},function(){d.props.onEntering(E,$),d.onTransitionEnd(X,function(){d.safeSetState({status:ENTERED},function(){d.props.onEntered(E,$)})})})},t.performExit=function(){var o=this,d=this.props.exit,p=this.getTimeouts(),h=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!d||config.disabled){this.safeSetState({status:EXITED},function(){o.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:EXITING},function(){o.props.onExiting(h),o.onTransitionEnd(p.exit,function(){o.safeSetState({status:EXITED},function(){o.props.onExited(h)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,d){d=this.setNextCallback(d),this.setState(o,d)},t.setNextCallback=function(o){var d=this,p=!0;return this.nextCallback=function(h){p&&(p=!1,d.nextCallback=null,o(h))},this.nextCallback.cancel=function(){p=!1},this.nextCallback},t.onTransitionEnd=function(o,d){this.setNextCallback(d);var p=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),h=o==null&&!this.props.addEndListener;if(!p||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[p,this.nextCallback],E=y[0],$=y[1];this.props.addEndListener(E,$)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===UNMOUNTED)return null;var d=this.props,p=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var h=_objectWithoutPropertiesLoose$b(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof p=="function"?p(o,h):React.cloneElement(React.Children.only(p),h))},i})(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function n(i,t){return i&&t&&t.split(" ").forEach(function(e){return addClass(i,e)})},removeClass=function n(i,t){return i&&t&&t.split(" ").forEach(function(e){return removeClass$1(i,e)})},CSSTransition=(function(n){_inheritsLoose(i,n);function i(){for(var e,o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];
133return e=n.call.apply(n,[this].concat(d))||this,e.appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(h,y){var E=e.resolveArguments(h,y),$=E[0],M=E[1];e.removeClasses($,"exit"),e.addClass($,M?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(h,y)},e.onEntering=function(h,y){var E=e.resolveArguments(h,y),$=E[0],M=E[1],X=M?"appear":"enter";e.addClass($,X,"active"),e.props.onEntering&&e.props.onEntering(h,y)},e.onEntered=function(h,y){var E=e.resolveArguments(h,y),$=E[0],M=E[1],X=M?"appear":"enter";e.removeClasses($,X),e.addClass($,X,"done"),e.props.onEntered&&e.props.onEntered(h,y)},e.onExit=function(h){var y=e.resolveArguments(h),E=y[0];e.removeClasses(E,"appear"),e.removeClasses(E,"enter"),e.addClass(E,"exit","base"),e.props.onExit&&e.props.onExit(h)},e.onExiting=function(h){var y=e.resolveArguments(h),E=y[0];e.addClass(E,"exit","active"),e.props.onExiting&&e.props.onExiting(h)},e.onExited=function(h){var y=e.resolveArguments(h),E=y[0];e.removeClasses(E,"exit"),e.addClass(E,"exit","done"),e.props.onExited&&e.props.onExited(h)},e.resolveArguments=function(h,y){return e.props.nodeRef?[e.props.nodeRef.current,h]:[h,y]},e.getClassNames=function(h){var y=e.props.classNames,E=typeof y=="string",$=E&&y?y+"-":"",M=E?""+$+h:y[h],X=E?M+"-active":y[h+"Active"],Z=E?M+"-done":y[h+"Done"];return{baseClassName:M,activeClassName:X,doneClassName:Z}},e}var t=i.prototype;return t.addClass=function(o,d,p){var h=this.getClassNames(d)[p+"ClassName"],y=this.getClassNames("enter"),E=y.doneClassName;d==="appear"&&p==="done"&&E&&(h+=" "+E),p==="active"&&o&&forceReflow(o),h&&(this.appliedClasses[d][p]=h,_addClass(o,h))},t.removeClasses=function(o,d){var p=this.appliedClasses[d],h=p.base,y=p.active,E=p.done;this.appliedClasses[d]={},h&&removeClass(o,h),y&&removeClass(o,y),E&&removeClass(o,E)},t.render=function(){var o=this.props;o.classNames;var d=_objectWithoutPropertiesLoose$b(o,["classNames"]);return React.createElement(Transition,_extends$k({},d,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i})(React.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes={};var ConnectionState=(function(n){return n.CONNECTED="CONNECTED",n.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",n.INITIAL="INITIAL",n.PINGING_SERVER="PINGING_SERVER",n.CONNECTING="CONNECTING",n.STATIC_CONNECTING="STATIC_CONNECTING",n.STATIC_CONNECTED="STATIC_CONNECTED",n})({});const CORS_ERROR_MESSAGE_DOCUMENTATION_LINK="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",WEBSOCKET_STREAM_PATH="_stcore/stream",SERVER_PING_PATH="_stcore/health",HOST_CONFIG_PATH="_stcore/host-config",PING_MINIMUM_RETRY_PERIOD_MS=100,PING_MAXIMUM_RETRY_PERIOD_MS=2e3,MAX_RETRIES_BEFORE_CLIENT_ERROR=6,isAndroidDevice=()=>typeof navigator>"u"?!1:/Android/i.test(navigator.userAgent),WEBSOCKET_TIMEOUT_MS=isAndroidDevice()?60*1e3:15*1e3,PING_TIMEOUT_MS=15*1e3,IS_DEV_ENV=!1;typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,i;const t=new Promise((e,o)=>{n=e,i=o});return{resolve:n,reject:i,promise:t}});function A(n){const i=document.cookie.match(`\\b${n}=([^;]*)\\b`);return i?i[1]:void 0}function f(){const n="testData";try{const{localStorage:i}=window;i.setItem(n,n),i.getItem(n),i.removeItem(n)}catch{return!1}return!0}function S(n){return Array.isArray(n)&&n.length>0&&n.every(i=>typeof i=="string"&&i.trim().length>0)}function l(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}function c(n){return Object.freeze(n),Array.isArray(n)?n.forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&c(i)}):Object.values(n).forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&c(i)}),n}const r=(()=>{const n=window.__streamlit;if(!n)return;const i=l(n);return c(i)})(),N={get BACKEND_BASE_URL(){return r?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return r?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return r?.DOWNLOAD_ASSETS_BASE_URL},get HOST_CONFIG(){return r?.HOST_CONFIG}};function L(n){return n!=null}function R(n){return n==null}const _=/\/+$/,u=/^\/+/;function a({hostname:n,port:i,pathname:t,protocol:e},o){const d=s(t,o);return`${e}//${n}${i?`:${i}`:""}/${d}`}function s(n,i){return n=n.replace(_,"").replace(u,""),i=i.replace(_,"").replace(u,""),n.length===0?i:`${n}/${i}`}const STATIC_ASSET_CONFIG="https://data.streamlit.io/static.json",LOG$8=loglevelExports.getLogger("StaticConnection");async function getStaticConfig(){const n=f();let i="";if(n){const t=window.localStorage.getItem("stStaticAssetUrl");if(t)return t}try{const t=await fetch(STATIC_ASSET_CONFIG,{signal:AbortSignal.timeout(5e3)});t.ok?(i=(await t.json()).static_url??void 0,n&&i&&window.localStorage.setItem("stStaticAssetUrl",i)):LOG$8.error("Failed to fetch static config url: ",t.status)}catch(t){LOG$8.error("Failed to fetch static config url:",t)}return i}async function getProtoResponse(n,i){const t=`${i}/${n}/protos.pb`,e=await fetch(t,{signal:AbortSignal.timeout(5e3)});if(!e.ok)LOG$8.error(`Failed to fetch static app protos for id: ${n}`,e.status);else return e.arrayBuffer();return null}async function dispatchAppForwardMessages(n,i,t,e){const o=await getProtoResponse(n,i);if(!o){LOG$8.error("Failed to retrieve static app protos"),e({message:`Failed to retrieve static app protos. Please confirm the id is correct and try again. Given static app id: ${n}`});return}
133ForwardMsgList.decode(new Uint8Array(o)).messages.forEach(p=>{t(p)})}async function establishStaticConnection(n,i,t,e,o){i(ConnectionState.STATIC_CONNECTING);const d=await getStaticConfig();o.setStaticConfigUrl(d),dispatchAppForwardMessages(n,d,t,e),i(ConnectionState.STATIC_CONNECTED)}const FINAL_SLASH_RE=/\/+$/,INITIAL_SLASH_RE=/^\/+/;function isHostConfigBypassEnabled(){const n=N.HOST_CONFIG;if(!n)return!1;const{allowedOrigins:i,useExternalAuthToken:t}=n,e=!!N.BACKEND_BASE_URL,o=S(i);return e&&o&&typeof t=="boolean"}function parseUriIntoBaseParts(n){const i=new URL(n??window.location.href);return i.pathname=i.pathname.replace(FINAL_SLASH_RE,"").replace(INITIAL_SLASH_RE,""),i}function getPossibleBaseUris(){const n=parseUriIntoBaseParts(N.BACKEND_BASE_URL),{pathname:i}=n;if(i==="/")return[n];const t=i.split("/"),e=[];for(;t.length>0;){const o=new URL(n);o.pathname=t.join("/"),e.push(o),t.pop()}return e.length<=2?e:e.slice(0,2)}function buildWsUri({hostname:n,port:i,pathname:t,protocol:e},o){const d=e==="https:"?"wss":"ws",p=s(t,o);return`${d}://${n}:${i}/${p}`}function serializeForDisplay(n){if(n!=null)switch(typeof n){case"object":return JSON.stringify(n,null,2);case"string":case"number":case"boolean":return String(n);default:return}}class FetchError extends Error{constructor(i,t,e={}){super(i),this.name="FetchError",this.url=t,this.isTimeout=e.isTimeout??!1,this.isNetworkError=e.isNetworkError??!1,this.response=e.response}}async function fetchWithTimeout(n,i){const t=new AbortController,e=setTimeout(()=>t.abort(),i);try{const o=await fetch(n,{signal:t.signal});if(clearTimeout(e),!o.ok){let p;try{p=await o.json()}catch{try{p=await o.text()}catch{p=null}}throw new FetchError(`Request failed with status ${o.status}`,n,{response:{status:o.status,statusText:o.statusText,data:p}})}const d=await o.text();try{return{data:JSON.parse(d),url:n}}catch{return{data:d,url:n}}}catch(o){throw clearTimeout(e),o instanceof FetchError?o:o instanceof DOMException&&o.name==="AbortError"?new FetchError("Connection timed out",n,{isTimeout:!0}):o instanceof TypeError?new FetchError(o.message||"Network error",n,{isNetworkError:!0}):new FetchError(o instanceof Error?o.message:"Unknown error",n)}}const LOG$7=loglevelExports.getLogger("DoInitPings");class PingCancelledError extends Error{constructor(){super("Ping cancelled")}}function doInitPings(n,i,t,e,o,d){const{promise:p,resolve:h,reject:y}=Promise.withResolvers();let E=0,$=0,M,X=()=>{};const Z=()=>{$++,$>=n.length&&($=0),X()},ye=Ne=>{const Fe=Math.random()*.4-.2,De=E===1?i:i*2**(E-1)*(1+Fe),Le=Math.min(t,De);e(E,Ne,Le),!(typeof window>"u")&&(M=globalThis.setTimeout(Z,Le))},be=()=>{const Ne=n[$];new URL(a(Ne,"")).hostname==="localhost"?ye({message:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:",codeBlock:"streamlit run yourscript.py"}):ye({message:"Streamlit server is not responding. Are you connected to the internet?"})},we=()=>{ye({message:`Cannot connect to Streamlit (HTTP status: 403). 134 135If you are trying to access a Streamlit app running on another server, this could be due to the app's [CORS](${CORS_ERROR_MESSAGE_DOCUMENTATION_LINK}) settings.`})},xe=Ne=>{let Fe="DoInitPings";if(Ne)try{Fe=new URL(Ne).pathname}catch{LOG$7.error(`unrecognized url: ${Ne}`)}return Fe};return X=()=>{const Ne=n[$],Fe=a(Ne,SERVER_PING_PATH),De=N.HOST_CONFIG_BASE_URL,Le=De?parseUriIntoBaseParts(De):Ne,He=a(Le,HOST_CONFIG_PATH);LOG$7.info(`Attempting to connect to ${Fe}.`),$===0&&E++,Promise.all([fetchWithTimeout(Fe,PING_TIMEOUT_MS),fetchWithTimeout(He,PING_TIMEOUT_MS)]).then(([Ke,je])=>{d(je.data),h($)}).catch(Ke=>{const je=E>=MAX_RETRIES_BEFORE_CLIENT_ERROR;if(Ke.isTimeout){if(je){const Ve=xe(Ke.url);LOG$7.error("Client error: DoInitPings timed out"),o("DoInitPings timed out","Connection timed out - ECONNABORTED",Ve)}return ye({message:"Connection timed out."})}if(Ke.response){const{data:Ve,status:qe,statusText:Ye}=Ke.response,et=xe(Ke.url);if(qe===0)return je&&(LOG$7.error(`Client Error: response received with status ${qe} when attempting to reach ${et}`),o(`Response received with status ${qe}`,Ye,et)),be();
135if(qe===403)return je&&(LOG$7.error(`Client Error: response received with status ${qe} when attempting to reach ${et}`),o(qe,Ye,et)),we();je&&(LOG$7.error(`Client Error: response received with status ${qe} when attempting to reach ${et}`),o(qe,Ye,et));const Qe=serializeForDisplay(Ve);return ye({message:`Connection failed with status ${qe}${Qe?", and response:":"."}`,...Qe&&{codeBlock:Qe}})}if(Ke.isNetworkError){if(je){const Ve=xe(Ke.url);LOG$7.error(`Client Error in reaching server endpoint - No response received when attempting to reach ${Ve}`),o("No response received from server","Network error",Ve)}return be()}if(je){const Ve=xe(Ke.url);LOG$7.error(`Client Error in reaching server endpoint - error in setting up request when attempting to reach ${Ve}`),o("Error setting up request to server",Ke.message??"",Ve)}return ye({message:Ke.message})})},X(),{promise:p,cancel:()=>{L(M)&&globalThis.clearTimeout(M),y(new PingCancelledError)}}}const LOG$6=loglevelExports.getLogger("ForwardMessageCache");class CacheEntry{constructor(i,t,e){this.scriptRunCount=0,this.encodedMsg=i,this.scriptRunCount=t,this.fragmentId=e}getAge(i){return i-this.scriptRunCount}}class ForwardMsgCache{constructor(){this.messages=new Map,this.scriptRunCount=0}incrementRunCount(i,t){this.scriptRunCount+=1,this.messages.forEach((e,o)=>{t.length>0&&(!e.fragmentId||!t.includes(e.fragmentId))||e.getAge(this.scriptRunCount)>i&&(LOG$6.info(`Removing expired ForwardMsg [hash=${o}]`),this.messages.delete(o))})}getCachedMessageHashes(){return Array.from(this.messages.keys())}async processMessagePayload(i,t){if(this.maybeCacheMessage(i,t),i.type!=="refHash")return i;const e=this.getCachedMessage(i.refHash,!0);if(L(e))LOG$6.info(`Cached ForwardMsg HIT [hash=${i.refHash}]`);else throw new Error(`Cached ForwardMsg MISS [hash=${i.refHash}]. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).`);if(!i.metadata)throw new Error("Reference ForwardMsg has no metadata. This is not expected to happen. Please [report this bug](https://github.com/streamlit/streamlit/issues).");return e.metadata=ForwardMsg.decode(t).metadata,e}maybeCacheMessage(i,t){if(i.type!=="refHash"&&i.metadata?.cacheable){if(!i.hash){LOG$6.error("ForwardMsg has no hash. This is not expected to happen, please report this bug.",i);return}this.getCachedMessage(i.hash,!0)===void 0&&(LOG$6.info(`Caching ForwardMsg [hash=${i.hash}]`),this.messages.set(i.hash,new CacheEntry(t,this.scriptRunCount,i.delta?.fragmentId??void 0)))}}getCachedMessage(i,t){const e=this.messages.get(i);if(!R(e))return t&&(e.scriptRunCount=this.scriptRunCount),ForwardMsg.decode(e.encodedMsg)}}const LOG$5=loglevelExports.getLogger("WebsocketConnection");class WebsocketConnection{constructor(i){this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=ConnectionState.INITIAL,this.args=i,this.cache=new ForwardMsgCache,this.stepFsm("INITIALIZED")}getBaseUriParts(){if(this.state===ConnectionState.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}disconnect(){this.setFsmState(ConnectionState.DISCONNECTED_FOREVER)}reconnect(){this.state===ConnectionState.CONNECTED&&(this.closeConnection(),this.stepFsm("CONNECTION_CLOSED"))}setFsmState(i,t){switch(LOG$5.info(`New state: ${i}`),this.state=i,this.state){case ConnectionState.PINGING_SERVER:this.pingServer();break}switch(this.args.onConnectionStateChange(i,t),this.state){case ConnectionState.CONNECTING:this.connectToWebSocket();break;case ConnectionState.DISCONNECTED_FOREVER:this.closeConnection();break}}stepFsm(i,t){if(LOG$5.info(`State: ${this.state}; Event: ${i}`),i==="FATAL_ERROR"&&this.state!==ConnectionState.DISCONNECTED_FOREVER){LOG$5.error(`Client Error: Websocket connection encountered fatal error - ${t}`),this.args.sendClientError("Websocket connection fatal error encountered",t,"Websocket Connection"),this.setFsmState(ConnectionState.DISCONNECTED_FOREVER,{message:t||"Unknown error"});return}switch(this.state){case ConnectionState.INITIAL:if(i==="INITIALIZED"){this.args.enableBypass?(this.setFsmState(ConnectionState.CONNECTING),this.pingServerInBackgroun
135d()):this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTING:if(i==="CONNECTION_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTED);return}if(i==="CONNECTION_TIMED_OUT"||i==="CONNECTION_ERROR"||i==="CONNECTION_CLOSED"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.CONNECTED:if(i==="CONNECTION_CLOSED"||i==="CONNECTION_ERROR"){this.setFsmState(ConnectionState.PINGING_SERVER);return}break;case ConnectionState.PINGING_SERVER:if(i==="SERVER_PING_SUCCEEDED"){this.setFsmState(ConnectionState.CONNECTING);return}break;case ConnectionState.DISCONNECTED_FOREVER:LOG$5.warn(`Discarding ${i} while in ${ConnectionState.DISCONNECTED_FOREVER}`);return}throw new Error(`Unsupported state transition. 136State: ${this.state} 137Event: ${i}`)}async pingServer(){const i=doInitPings(this.args.baseUriPartsList,PING_MINIMUM_RETRY_PERIOD_MS,PING_MAXIMUM_RETRY_PERIOD_MS,this.args.onRetry,this.args.sendClientError,this.args.onHostConfigResp);this.pingRequest=i;try{this.uriIndex=await i.promise,this.pingRequest===i&&(this.pingRequest=void 0),this.stepFsm("SERVER_PING_SUCCEEDED")}catch(t){t instanceof PingCancelledError?LOG$5.info("Ping cancelled"):this.stepFsm("FATAL_ERROR",t instanceof Error?t.message:String(t))}finally{this.pingRequest===i&&(this.pingRequest=void 0)}}async pingServerInBackground(){const i=doInitPings(this.args.baseUriPartsList,PING_MINIMUM_RETRY_PERIOD_MS,PING_MAXIMUM_RETRY_PERIOD_MS,this.args.onRetry,this.args.sendClientError,this.args.onHostConfigResp);this.pingRequest=i;try{const t=await i.promise;
137this.uriIndex=t,LOG$5.info("Background pings completed successfully")}catch(t){t instanceof PingCancelledError?LOG$5.info("Background pings cancelled"):this.stepFsm("FATAL_ERROR",t instanceof Error?t.message:String(t))}finally{this.pingRequest===i&&(this.pingRequest=void 0)}}async getSessionTokens(){const i=await this.args.claimHostAuthToken(),t=A("_streamlit_xsrf");this.args.resetHostAuthToken();const e=this.args.getLastSessionId();return[i??t??"PLACEHOLDER_AUTH_TOKEN",...e?[e]:[]]}async connectToWebSocket(){const i=buildWsUri(this.args.baseUriPartsList[this.uriIndex],WEBSOCKET_STREAM_PATH);if(L(this.websocket))throw new Error("Websocket already exists");LOG$5.info("creating WebSocket");const t=await this.getSessionTokens();this.websocket=new WebSocket(i,["streamlit",...t]),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(i);const e=this.websocket,o=()=>e===this.websocket;this.websocket.addEventListener("message",d=>{o()&&this.handleMessage(d.data).catch(p=>{const h=`Failed to process a Websocket message. ${p}`;LOG$5.error(h),this.stepFsm("FATAL_ERROR",h)})}),this.websocket.addEventListener("open",()=>{o()&&(LOG$5.info("WebSocket onopen"),this.stepFsm("CONNECTION_SUCCEEDED"))}),this.websocket.addEventListener("close",()=>{o()&&(LOG$5.warn("WebSocket onclose"),this.closeConnection(),this.stepFsm("CONNECTION_CLOSED"))}),this.websocket.addEventListener("error",d=>{o()&&(LOG$5.error("Client Error: WebSocket onerror"),this.args.sendClientError("Websocket connection onerror triggered",`Error: ${d}`,"Websocket Connection"),this.closeConnection(),this.stepFsm("CONNECTION_ERROR"))})}setConnectionTimeout(i){if(L(this.wsConnectionTimeout))throw new Error("WS timeout is already set");const t=this.websocket;this.wsConnectionTimeout=globalThis.setTimeout(()=>{if(t===this.websocket){if(R(this.wsConnectionTimeout)){LOG$5.warn("Timeout fired after cancellation");return}if(R(this.websocket)){this.closeConnection(),this.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout");return}this.websocket.readyState===0&&(LOG$5.info(`Client error: ${i} timed out`),this.args.sendClientError("Websocket connection timed out",`${i} timed out`,"Websocket Connection"),this.closeConnection(),this.stepFsm("CONNECTION_TIMED_OUT"))}},WEBSOCKET_TIMEOUT_MS),LOG$5.info(`Set WS timeout ${Number(this.wsConnectionTimeout)}`)}closeConnection(){this.websocket&&(this.websocket.close(),this.websocket=void 0),L(this.wsConnectionTimeout)&&(LOG$5.info(`Clearing WS timeout ${Number(this.wsConnectionTimeout)}`),globalThis.clearTimeout(this.wsConnectionTimeout),this.wsConnectionTimeout=void 0),this.pingRequest&&(this.pingRequest.cancel(),this.pingRequest=void 0)}sendMessage(i){if(!this.websocket)return;const t=BackMsg.create(i),e=BackMsg.encode(t).finish();this.websocket.send(e)}incrementMessageCacheRunCount(i,t){this.cache.incrementRunCount(i,t)}getCachedMessageHashes(){return this.cache.getCachedMessageHashes()}async handleMessage(i){const t=this.nextMessageIndex;this.nextMessageIndex+=1;const e=new Uint8Array(i),o=ForwardMsg.decode(e);for(this.messageQueue[t]=await this.cache.processMessagePayload(o,e);this.lastDispatchedMessageIndex+1 in this.messageQueue;){const d=this.lastDispatchedMessageIndex+1;this.args.onMessage(this.messageQueue[d]),delete this.messageQueue[d],this.lastDispatchedMessageIndex=d}}}const LOG$4=loglevelExports.getLogger("ConnectionManager");class ConnectionManager{constructor(i){this.connectionState=ConnectionState.INITIAL,this.setConnectionState=(t,e)=>{this.connectionState!==t&&(this.connectionState===ConnectionState.CONNECTED&&t!==ConnectionState.CONNECTED&&this.clearHeartbeatAckTimeout(),this.connectionState=t,this.props.connectionStateChanged(t)),e&&this.props.onConnectionError(e)},this.showRetryError=(t,e,o)=>{t>=MAX_RETRIES_BEFORE_CLIENT_ERROR&&this.props.onConnectionError(e)},this.props=i,this.connect()}isConnected(){return this.connectionState===ConnectionState.CONNECTED}getBaseUriParts(){if(this.websocketConnection instanceof WebsocketConnection)return this.websocketConnection.getBaseUriParts()}sendMessage(i){this.websocketConnection instanceof WebsocketConnection&&this.isConnected()?this.websocketConnection.sendMessage(i):LOG$4.error(`Cannot send message when server is disconnected: ${i}`)}incrementMessageCacheRunCount(i,t){this.websocketConnection instanceof WebsocketConnection&&this.websocketConnection.incrementMessageCacheRunCount(i,t)}getCachedMessageHashes(){return this.websocketConnection instanceof WebsocketConnection?this.websocketConnection?.getCachedMessageHashes()??[]:[]}checkStaticConnection(){return new URLSearchParams(document.location.search).get("staticAppId")}async connect(){const i=this.checkStaticConnection();if(i)establishStaticConnection(i,this.setConnectionState,this.props.onMessage,this.props.onConnectionError,this.props.endpoints),this.websocketConnection=null;else try{this.websocketConnection=await this.connectToRunningServer()}catch(t){const e=t instanceof Error?t:new Error(`${t}`);LOG$4.error(`Client Error: Websocket connection - ${e.message}`),this.props.sendClientError("Failed to establish websocket connection",e.message,"Connection Manager"),this.setConnectionState(ConnectionState.DISCONNECTED_FOREVER,{message:e.message})}}disconnect(){this.clearHeartbeatAckTimeout(),this.websocketConnection?.disconnect()}onHeartbeatSent(i){this.clearHeartbeatAckTimeout(),i&&(this.heartbeatAckTimeoutId=setTimeout(()=>{LOG$4.warn("Heartbeat ack not received within timeout, connection may be unhealthy"),this.heartbeatAckTimeoutId=void 0,this.isConnected()&&this.reconnect()},i))}reconnect(){this.clearHeartbeatAckTimeout(),this.websocketConnection?.reconnect()}onHeartbeatAckReceived(){this.clearHeartbeatAckTimeout()}clearHeartbeatAckTimeout(){this.heartbeatAckTimeoutId!==void 0&&(clearTimeout(this.heartbeatAckTimeoutId),this.heartbeatAckTimeoutId=void 0)}connectToRunningServer(){const i=getPossibleBaseUris(),t=isHostConfigBypassEnabled();return new WebsocketConnection({getLastSessionId:this.props.getLastSessionId,endpoints:this.props.endpoints,baseUriPartsList:i,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,sendClientError:this.props.sendClientError,onHostConfigResp:this.props.onHostConfigResp,enableBypass:t})}}const LOG$3=loglevelExports.getLogger("DefaultStreamlitEndpoints"),MEDIA_ENDPOINT="/media",UPLOAD_FILE_ENDPOINT="/_stcore/upload_file",COMPONENT_ENDPOINT_BASE="/component",BIDI_COMPONENT_ENDPOINT_BASE="/_stcore/bidi-components";
137class DefaultStreamlitEndpoints{constructor(i){this.getServerUri=i.getServerUri,this.csrfEnabled=i.csrfEnabled,this.sendClientError=i.sendClientError,this.staticConfigUrl=null}setStaticConfigUrl(i){this.staticConfigUrl=i}sendClientErrorToHost(i,t,e,o,d){this.sendClientError(i,t,e,o,d)}async checkSourceUrlResponse(i,t,e){const o=e?`${t} ${e}`:t;try{const d=await fetch(i);d.ok||(LOG$3.error(`Client Error: ${o} source error - ${d.status}`),this.sendClientErrorToHost(t,d.status,d.statusText,i,e))}catch(d){const p=d instanceof Error?d.message:"Unknown Error";LOG$3.error(`Client Error: ${o} fetch error - ${p}`),this.sendClientErrorToHost(t,"Error fetching source",p,i,e)}}buildComponentURL(i,t){return a(this.requireServerUri(),`${COMPONENT_ENDPOINT_BASE}/${i}/${t}`)}buildBidiComponentURL(i,t){return a(this.requireServerUri(),`${BIDI_COMPONENT_ENDPOINT_BASE}/${i}/${t}`)}setFileUploadClientConfig({prefix:i,headers:t}){this.fileUploadClientConfig={prefix:i,headers:t}}buildStaticUrl(i){const e=new URLSearchParams(document.location.search).get("staticAppId");return`${this.staticConfigUrl}/${e}${i}`}buildMediaURL(i){return this.staticConfigUrl&&i.startsWith(MEDIA_ENDPOINT)?this.buildStaticUrl(i):i.startsWith(MEDIA_ENDPOINT)?a(this.requireServerUri(),i):i}buildDownloadUrl(i){if(!i.startsWith(MEDIA_ENDPOINT))return i;const t=N.DOWNLOAD_ASSETS_BASE_URL;return a(t?parseUriIntoBaseParts(t):this.requireServerUri(),i)}buildFileUploadURL(i){return this.fileUploadClientConfig?s(this.fileUploadClientConfig.prefix,i):i.startsWith(UPLOAD_FILE_ENDPOINT)?a(this.requireServerUri(),i):i}buildAppPageURL(i,t){const e=t.urlPathname,o=t.isDefault?"":e;if(typeof i=="string"&&i.length>0)return`${i}/${o}`;const{port:d,protocol:p}=window.location,{pathname:h,hostname:y}=this.requireServerUri(),E=d?`:${d}`:"",$=h==="/"?"/":`${h}/`;return`${p}//${y}${E}${$}${o}`}async uploadFileUploaderFile(i,t,e,o,d){const p=new FormData,{name:h,webkitRelativePath:y}=t,E=y||h;p.append(h,t,E);const $=this.getAdditionalHeaders(),M=this.buildFileUploadURL(i);try{await this.csrfRequest(M,{signal:d,method:"PUT",data:p,responseType:"text",headers:$,onUploadProgress:o})}catch(X){LOG$3.error(`Client Error: File uploader error on file upload - ${X}`);const Z=X instanceof Error?X.message:"Unknown Error";throw this.sendClientErrorToHost("File Uploader","Error uploading file",Z,M),X}}getAdditionalHeaders(){let i={};return this.fileUploadClientConfig&&(i={...i,...this.fileUploadClientConfig.headers}),i}async deleteFileAtURL(i,t){const e=this.getAdditionalHeaders(),o=this.buildFileUploadURL(i);try{await this.csrfRequest(o,{method:"DELETE",data:{sessionId:t},headers:e})}catch(d){LOG$3.error(`Client Error: File uploader error on file delete - ${d}`);const p=d instanceof Error?d.message:"Unknown Error";throw this.sendClientErrorToHost("File Uploader","Error deleting file",p,o),d}}requireServerUri(){const i=this.getServerUri();if(L(i))return this.cachedServerUri=i,i;if(L(this.cachedServerUri))return this.cachedServerUri;throw new Error("not connected to a server!")}
137async csrfRequest(i,t){if(t.url=i,this.csrfEnabled){const o=A("_streamlit_xsrf");L(o)&&(t.headers={"X-Xsrftoken":o,...t.headers||{}},t.withCredentials=!0)}const{default:e}=await __vitePreload(async()=>{const{default:o}=await import("./index.L0fneZHT.js");return{default:o}},[],import.meta.url);return e.request(t)}}var Ellipses=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:i}),reactExports.createElement("path",{d:"M0 3v2h2V3H0zm3 0v2h2V3H3zm3 0v2h2V3H6z"}))});Ellipses.displayName="Ellipses";var Warning=reactExports.forwardRef(function(n,i){var t={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$k({iconAttrs:t,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:i}),reactExports.createElement("path",{d:"M3.09 0c-.06 0-.1.04-.13.09L.02 6.9c-.02.05-.03.13-.03.19v.81c0 .05.04.09.09.09h6.81c.05 0 .09-.04.09-.09v-.81c0-.05-.01-.14-.03-.19L4.01.09A.142.142 0 003.88 0h-.81zM3 3h1v2H3V3zm0 3h1v1H3V6z"}))});Warning.displayName="Warning";const CONNECTING_LABEL="Connecting",CONNECTING_TOOLTIP_TEXT="Connecting to Streamlit server",CONNECTING_STATIC_TOOLTIP_TEXT="Connecting to static app",ERROR_LABEL="Error",ERROR_TOOLTIP_TEXT="Unable to connect to Streamlit server";function getConnectionStateUI(n){switch(n){case ConnectionState.INITIAL:case ConnectionState.PINGING_SERVER:case ConnectionState.CONNECTING:return{icon:Ellipses,label:CONNECTING_LABEL,tooltip:CONNECTING_TOOLTIP_TEXT};case ConnectionState.CONNECTED:return;case ConnectionState.STATIC_CONNECTING:return{icon:Ellipses,label:CONNECTING_LABEL,tooltip:CONNECTING_STATIC_TOOLTIP_TEXT};case ConnectionState.STATIC_CONNECTED:return;case ConnectionState.DISCONNECTED_FOREVER:default:return{icon:Warning,label:ERROR_LABEL,tooltip:ERROR_TOOLTIP_TEXT}}}const newYearsRunning=""+new URL("../media/fireworks.B4d-_KUe.gif",import.meta.url).href,StyledConnectionStatus=styled("div",{target:"e1ysmdb80"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",color:n.colors.gray60})),StyledConnectionStatusLabel=styled("label",{target:"e1ysmdb81"})(({theme:n})=>({fontSize:n.fontSizes.sm,color:n.colors.gray60,textTransform:"uppercase",marginTop:n.spacing.none,marginRight:n.spacing.lg,marginBottom:n.spacing.none,marginLeft:n.spacing.sm,whiteSpace:"nowrap",maxWidth:n.sizes.appStatusMaxWidth,lineHeight:n.lineHeights.none})),StyledAppStatus=styled("div",{target:"e1ysmdb82"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:n.radii.sm,margin:`0 ${n.spacing.sm} 0 0`,paddingLeft:n.spacing.sm,height:n.sizes.appRunningMen})),StyledAppStatusLabel=styled("label",{target:"e1ysmdb83"})(({isPrompt:n,theme:i})=>({fontSize:i.fontSizes.sm,color:n?i.colors.bodyText:i.colors.gray60,textTransform:n?"none":"uppercase",margin:`0 0 0 ${i.spacing.sm}`,whiteSpace:"nowrap",maxWidth:i.sizes.appStatusMaxWidth,borderRadius:n?i.radii.sm:void 0})),StyledAppButtonContainer=styled("span",{target:"e1ysmdb84"})(({theme:n})=>({marginLeft:n.spacing.md,whiteSpace:"nowrap",color:n.colors.bodyText})),StyledAppRunningIcon=styled("div",{target:"e1ysmdb85"})(({isNewYears:n,theme:i})=>({width:n?"2.2rem":i.sizes.appRunningMen,height:n?"2.2rem":i.sizes.appRunningMen,marginRight:`-${i.spacing.sm}`,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.3s ease-in-out",cursor:"wait"})),StyledStatusWidget=styled("div",{target:"e1ysmdb86"})({"&.StatusWidget-appear":{opacity:0}
137,"&.StatusWidget-appear-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-exit":{opacity:1},"&.StatusWidget-exit-active":{opacity:0,transition:"opacity 200ms ease-out"}}),StyledShortcutLabel=styled("div",{target:"e1ysmdb87"})({"&::first-letter":{textDecoration:"underline"}}),icons=[{component:AccessibleForward,name:"accessible-forward"},{component:AccessibilityNew,name:"accessibility-new"},{component:DirectionsBike,name:"directions-bike"},{component:DirectionsRun,name:"directions-run"},{component:Pool,name:"pool"},{component:Rowing,name:"rowing"}],isNewYears=()=>{const n=new Date,i=n.getMonth(),t=n.getDate();return i===11&&t===31||i===0&&t<=6},DEFAULT_SPEED=200,IconRunning=()=>{const[n,i]=reactExports.useState(0),t=useEmotionTheme(),e=reactExports.useMemo(()=>isNewYears(),[]);reactExports.useEffect(()=>{if(e)return;const p=setInterval(()=>{i(h=>(h+1)%icons.length)},DEFAULT_SPEED);return()=>clearInterval(p)},[e]);const d=icons[n].component;return jsx$1(StyledAppRunningIcon,{isNewYears:e,"aria-label":"Running...",role:"img","data-testid":"stStatusWidgetRunningIcon",children:e?jsx$1("img",{src:newYearsRunning,alt:"New Year's Celebration",style:{width:"100%",height:"100%",objectFit:"contain"},"data-testid":"stStatusWidgetNewYearsIcon"}):jsx$1(d,{color:t.colors.fadedText60,"aria-hidden":"true","data-testid":"stStatusWidgetRunningManIcon",style:{width:t.sizes.appRunningMen,height:t.sizes.appRunningMen}})})},RUNNING_MAN_DISPLAY_DELAY_TIME_MS=500,PromptButton=n=>jsx$1(StyledAppButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_BUTTON,disabled:n.disabled,containerWidth:!0,onClick:n.onClick,children:n.title})}),StatusWidget=({connectionState:n,scriptRunState:i,rerunScript:t,stopScript:e,allowRunOnSave:o,showScriptChangedActions:d})=>{const[p,h]=reactExports.useState(!1),y=useEmotionTheme(),{clear:E,restart:$}=useTimeout(()=>{h(!0)},RUNNING_MAN_DISPLAY_DELAY_TIME_MS,{autoStart:!1}),M=()=>{o&&t(!0)},X=(je,Ve)=>{je==="a"&&!isKeyboardEventFromEditableTarget(Ve)&&M()},Z=n===ConnectionState.CONNECTED,ye=()=>{e()},be=()=>{t(!1)};reactExports.useEffect(()=>{Z&&(i===ScriptRunState.RUNNING||i===ScriptRunState.RERUN_REQUESTED)?$():E(),i===ScriptRunState.NOT_RUNNING&&h(!1)},[E,Z,$,i]);const we=()=>{const je=i===ScriptRunState.STOP_REQUESTED;return p?jsxs(StyledAppStatus,{children:[jsx$1(IconRunning,{}),jsx$1(PromptButton,{title:je?"Stopping...":"Stop",disabled:je,onClick:ye})]}):jsx$1(Fragment,{})},xe=()=>{const je=i===ScriptRunState.RERUN_REQUESTED;return jsx$1(ReactHotkeys,{keyName:"a",onKeyDown:X,children:jsxs(StyledAppStatus,{children:[jsx$1(DynamicIcon,{size:"lg",iconValue:":material/info:",color:y.colors.fadedText60}),jsx$1(StyledAppStatusLabel,{isPrompt:!0,children:"File change."}),jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Rerun"}),disabled:je,onClick:be}),o&&jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Always rerun"}),disabled:je,onClick:M})]})})},$e=()=>{const je=getConnectionStateUI(n);return je===void 0?null:jsx$1(Tooltip$1,{content:je.tooltip,placement:Placement.BOTTOM,children:jsxs(StyledConnectionStatus,{className:"stConnectionStatus","data-testid":"stConnectionStatus",children:[jsx$1(Icon$2,{size:"sm",content:je.icon}),jsx$1(StyledConnectionStatusLabel,{children:je.label})]})})},Ne=()=>{if(Z){if(i===ScriptRunState.RUNNING||i===ScriptRunState.RERUN_REQUESTED)return we();if(d)return xe()}return $e()},Fe=reactExports.useRef(),De=reactExports.useRef(null),Le=Fe.current;if(Fe.current=Ne(),isNullOrUndefined$1(Fe.current)&&isNullOrUndefined$1(Le))return jsx$1(Fragment,{});let He,Ke;return notNullOrUndefined(Fe.current)?(He=!0,Ke=Fe.current):(He=!1,Ke=Le),jsx$1(CSSTransition,{appear:!0,in:He,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",nodeRef:De,children:jsx$1(StyledStatusWidget,{ref:De,className:"stStatusWidget","data-testid":"stStatusWidget",children:Ke},"StatusWidget")})},StreamlitContextProvider=({isFullScreen:n,setFullScreen:i,locale:t,mapboxToken:e,enforceDownloadInNewTab:o,resourceCrossOriginMode:d,showErrorLinks:p,pageLinkBaseUrl:h,currentPageScriptHash:y,onPageChange:E,navSections:$,appPages:M,initialSidebarState:X,initialSidebarWidth:Z,appLogo:ye,sidebarChevronDownshift:be,expandSidebarNav:we,hideSidebarNav:xe,appRootRef:$e,activeTheme:Ne,setTheme:Fe,availableThemes:De,scriptRunState:Le,scriptRunId:He,fragmentIdsThisRun:Ke,formsData:je,requestDeferredFile:Ve,children:qe})=>{const Ye=reactExports.useMemo(()=>({locale:t,mapboxToken:e,enforceDownloadInNewTab:o,resourceCrossOriginMode:d,showErrorLinks:p}),[t,e,o,d,p]),et=reactExports.useMemo(()=>({initialSidebarState:X,initialSidebarWidth:Z,appLogo:ye,sidebarChevronDownshift:be,expandSidebarNav:we,hideSidebarNav:xe,appRootRef:$e}),[X,Z,ye,be,we,xe,$e]),Qe=reactExports.useMemo(()=>({activeTheme:Ne,setTheme:Fe,availableThemes:De}),[Ne,Fe,De]),ze=reactExports.useMemo(()=>({pageLinkBaseUrl:h,currentPageScriptHash:y,onPageChange:E,navSections:$,appPages:M}),[h,y,E,$,M]),st=reactExports.useMemo(()=>({isFullScreen:n,setFullScreen:i}),[n,i]),at=reactExports.useMemo(()=>({scriptRunState:Le,scriptRunId:He,fragmentIdsThisRun:Ke}),[Le,He,Ke]),tt=reactExports.useMemo(()=>({formsData:je}),[je]),pt=reactExports.useMemo(()=>({requestDeferredFile:Ve}),[Ve]);return jsx$1(LibConfigContext.Provider,{value:Ye,children:jsx$1(SidebarConfigContext.Provider,{value:et,children:jsx$1(ThemeContext.Provider,{value:Qe,children:jsx$1(NavigationContext.Provider,{value:ze,children:jsx$1(DownloadContext.Provider,{value:pt,children:jsx$1(ViewStateContext.Provider,{value:st,children:jsx$1(ScriptRunContext.Provider,{value:at,children:jsx$1(FormsContext.Provider,{value:tt,children:qe})})})})})})})})},StreamlitContextProvider$1=reactExports.memo(StreamlitContextProvider);var DialogType=(function(n){return n.ABOUT="about",n.CLEAR_CACHE="clearCache",n.CONNECTION_ERROR="connectionError",n.SCRIPT_COMPILE_ERROR="scriptCompileError",n.WARNING="warning",n.DEPLOY_ERROR="deployError",n.DEPLOY_DIALOG="deployDialog",n})({}),LevelContext=reactExports.createContext(0);function ownKeys(n,i){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);i&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,e)}return t}function _objectSpread(n){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};
137i%2?ownKeys(Object(t),!0).forEach(function(e){_defineProperty(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _defineProperty(n,i,t){return i in n?Object.defineProperty(n,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[i]=t,n}var Action=styled$1("div",function(n){var i=n.$theme;return _objectSpread({},i.typography.LabelMedium)});Action.displayName="Action";Action.displayName="Action";var Body=styled$1("div",function(n){var i=n.$theme;return _objectSpread({marginBottom:i.sizing.scale600,color:i.colors.contentPrimary},i.typography.ParagraphMedium)});Body.displayName="Body";Body.displayName="Body";var Contents=styled$1("div",function(n){var i=n.$theme;return{marginLeft:i.sizing.scale600,marginTop:i.sizing.scale600,marginRight:i.sizing.scale600,marginBottom:i.sizing.scale600}});Contents.displayName="Contents";Contents.displayName="Contents";var HeaderImage=styled$1("img",function(n){var i=n.$theme;return{borderTopLeftRadius:i.borders.surfaceBorderRadius,borderTopRightRadius:i.borders.surfaceBorderRadius,objectFit:"contain",maxWidth:"100%"}});HeaderImage.displayName="HeaderImage";HeaderImage.displayName="HeaderImage";var Root=styled$1("section",function(n){var i=n.$theme;return{borderLeftWidth:"2px",borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderTopStyle:"solid",borderRightStyle:"solid",borderBottomStyle:"solid",borderLeftColor:i.colors.borderOpaque,borderRightColor:i.colors.borderOpaque,borderTopColor:i.colors.borderOpaque,borderBottomColor:i.colors.borderOpaque,borderTopLeftRadius:i.borders.radius400,borderTopRightRadius:i.borders.radius400,borderBottomLeftRadius:i.borders.radius400,borderBottomRightRadius:i.borders.radius400,backgroundColor:i.colors.backgroundPrimary,overflow:"hidden"}});Root.displayName="Root";Root.displayName="Root";var Thumbnail=styled$1("img",function(n){var i=n.$theme;return _objectSpread(_objectSpread({float:"right",height:i.sizing.scale2400,width:i.sizing.scale2400,objectFit:"cover",borderTopLeftRadius:i.borders.surfaceBorderRadius,borderTopRightRadius:i.borders.surfaceBorderRadius,borderBottomLeftRadius:i.borders.surfaceBorderRadius,borderBottomRightRadius:i.borders.surfaceBorderRadius},expandBorderStyles(i.borders.border200)),{},{margin:"0 0 ".concat(i.sizing.scale500," ").concat(i.sizing.scale500)})});Thumbnail.displayName="Thumbnail";
137Thumbnail.displayName="Thumbnail";var Title=styled$1("h1",function(n){var i=n.$theme;return _objectSpread(_objectSpread({},i.typography.HeadingSmall),{},{color:i.colors.contentPrimary,marginLeft:0,marginTop:0,marginRight:0,marginBottom:i.sizing.scale500,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0})});Title.displayName="Title";Title.displayName="Title";var _excluded=["children"],_excluded2=["action","children","hasThumbnail","headerImage","thumbnail","title","overrides"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},_extends.apply(this,arguments)}function _objectWithoutProperties(n,i){if(n==null)return{};var t=_objectWithoutPropertiesLoose(n,i),e,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)e=d[o],!(i.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(n,e)&&(t[e]=n[e])}return t}function _objectWithoutPropertiesLoose(n,i){if(n==null)return{};var t={},e=Object.keys(n),o,d;for(d=0;d<e.length;d++)o=e[d],!(i.indexOf(o)>=0)&&(t[o]=n[o]);return t}function hasThumbnail(n){return!!n.thumbnail}var SemanticTitle=function n(i){var t=i.children,e=_objectWithoutProperties(i,_excluded),o=["","h1","h2","h3","h4","h5","h6"];return reactExports.createElement(LevelContext.Consumer,null,function(d){return reactExports.createElement(Title,_extends({$as:o[d]},e),t)})};function Card(n){var i=n.action,t=n.children,e=n.hasThumbnail,o=n.headerImage,d=n.thumbnail,p=n.title,h=n.overrides,y=_objectWithoutProperties(n,_excluded2),E=h.Action,$=h.Body,M=h.Contents,X=h.HeaderImage,Z=h.Root,ye=h.Thumbnail,be=h.Title,we=getOverride(E)||Action,xe=getOverride($)||Body,$e=getOverride(M)||Contents,Ne=getOverride(X)||HeaderImage,Fe=getOverride(Z)||Root,De=getOverride(ye)||Thumbnail,Le=getOverride(be)||SemanticTitle,He=typeof o=="string"?{src:o}:o,Ke=e(n);return reactExports.createElement(Fe,_extends({"data-baseweb":"card"},y,getOverrideProps(Z)),o&&reactExports.createElement(Ne,_extends({},He,getOverrideProps(X))),reactExports.createElement($e,getOverrideProps(M),d&&reactExports.createElement(De,_extends({src:d},getOverrideProps(ye))),p&&reactExports.createElement(Le,_extends({$hasThumbnail:Ke},getOverrideProps(be)),p),reactExports.createElement(xe,getOverrideProps($),t),i&&reactExports.createElement(we,getOverrideProps(E),i)))}Card.defaultProps={action:null,children:null,hasThumbnail,overrides:{}};const StreamlitLogo="data:image/svg+xml,%3csvg%20width='32'%20height='19'%20viewBox='0%200%2032%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%202'%3e%3cpath%20id='path3858'%20d='M15.998%2011.078L10.3882%208.04522L0.650371%202.78157C0.641482%202.77247%200.623705%202.77248%200.614816%202.77248C0.259259%202.59975%20-0.105186%202.96338%200.0281476%203.32702L4.98994%2016.2698L4.99083%2016.2725C4.99616%2016.2852%205.00061%2016.298%205.00594%2016.3107C5.2095%2016.7934%205.65394%2017.0916%206.1375%2017.2089C6.17839%2017.218%206.20764%2017.2262%206.25673%2017.2362C6.30559%2017.2473%206.37394%2017.2625%206.43261%2017.2671C6.44239%2017.268%206.45128%2017.268%206.46106%2017.2689H6.46817C6.47528%2017.2698%206.48239%2017.2698%206.4895%2017.2707H6.49928C6.5055%2017.2716%206.51261%2017.2716%206.51883%2017.2716H6.53039C6.5375%2017.2725%206.54461%2017.2725%206.55172%2017.2725C12.8348%2017.9731%2019.1763%2017.9731%2025.4593%2017.2725C25.5349%2017.2725%2025.6087%2017.2689%2025.6798%2017.2616C25.7029%2017.2589%2025.7251%2017.2562%2025.7473%2017.2534C25.75%2017.2525%2025.7536%2017.2525%2025.7562%2017.2516C25.7713%2017.2498%2025.7864%2017.2471%2025.8016%2017.2443C25.8238%2017.2416%2025.846%2017.2371%2025.8682%2017.2325C25.9127%2017.2225%2025.9329%2017.2152%2025.9932%2017.194C26.0535%2017.1729%2026.1536%2017.1358%2026.2163%2017.1049C26.279%2017.074%2026.3224%2017.0443%2026.3749%2017.0107C26.4398%2016.9689%2026.5015%2016.9261%2026.5641%2016.8781C26.5911%2016.8569%2026.6096%2016.8434%2026.6291%2016.8243L26.6184%2016.818L15.998%2011.078Z'%20fill='%23FF2B2B'/%3e%3cpath%20id='path5063'%20d='M31.3616%202.78158H31.3527L21.6113%208.04524L27.0265%2016.2935L31.9758%203.32704V3.30886C32.1003%202.92704%2031.7181%202.58158%2031.3616%202.78158Z'%20fill='%237D353B'/%3e%3cpath%20id='path5101'%20d='M16.5171%200.278788C16.2682%20-0.0930318%2015.726%20-0.0930318%2015.486%200.278788L10.3882%208.04518L15.998%2011.0779L26.6291%2016.8242C26.6959%2016.7574%2026.7494%2016.6922%2026.806%2016.6234C26.886%2016.5225%2026.9607%2016.4143%2027.0265%2016.2934L21.6113%208.04518L16.5171%200.278788Z'%20fill='%23BD4043'/%3e%3c/g%3e%3c/svg%3e",Rocket="data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%3e%3cpath%20id='Vector'%20d='M5.95077%2010.7642L8.09076%2011.6685C8.34683%2011.157%208.61204%2010.6637%208.8864%2010.1887C9.16076%209.71374%209.46256%209.23875%209.79179%208.76376L8.25538%208.46232L5.95077%2010.7642ZM9.84666%2013.0387L12.9743%2016.1352C13.7426%2015.8429%2014.5656%2015.3954%2015.4436%2014.7925C16.3215%2014.1896%2017.1446%2013.5045%2017.9128%2012.7372C19.1931%2011.4584%2020.1946%2010.038%2020.917%208.47602C21.6395%206.91403%2021.955%205.47536%2021.8636%204.16C20.5466%204.06866%2019.1017%204.38379%2017.5287%205.10541C15.9557%205.82703%2014.529%206.82726%2013.2487%208.10608C12.4805%208.87337%2011.7946%209.69547%2011.191%2010.5724C10.5874%2011.4493%2
137010.1393%2012.2714%209.84666%2013.0387ZM14.7302%2011.2575C14.3096%2010.8373%2014.0992%2010.3212%2014.0992%209.70917C14.0992%209.09716%2014.3096%208.58107%2014.7302%208.16088C15.1509%207.7407%2015.6722%207.53061%2016.2941%207.53061C16.916%207.53061%2017.4373%207.7407%2017.8579%208.16088C18.2786%208.58107%2018.489%209.09716%2018.489%209.70917C18.489%2010.3212%2018.2786%2010.8373%2017.8579%2011.2575C17.4373%2011.6776%2016.916%2011.8877%2016.2941%2011.8877C15.6722%2011.8877%2015.1509%2011.6776%2014.7302%2011.2575ZM15.2515%2020.0539L17.5561%2017.752L17.2543%2016.2175C16.7788%2016.5463%2016.3032%2016.8432%2015.8277%2017.1081C15.3521%2017.373%2014.8583%2017.6333%2014.3461%2017.8891L15.2515%2020.0539ZM23.839%202.15956C24.1865%204.37009%2023.9716%206.52125%2023.1942%208.61304C22.4169%2010.7048%2021.0771%2012.7007%2019.1749%2014.6007L19.7236%2017.3136C19.7967%2017.679%2019.7784%2018.0352%2019.6687%2018.3823C19.559%2018.7294%2019.3761%2019.0309%2019.12%2019.2866L14.5108%2023.8904L12.2061%2018.4919L7.51461%2013.806L2.10974%2011.5041L6.69153%206.90033C6.9476%206.64457%207.25397%206.46188%207.61064%206.35227C7.9673%206.24265%208.32854%206.22438%208.69435%206.29746L11.4105%206.84553C13.3127%204.94556%2015.3064%203.6028%2017.3915%202.81724C19.4767%202.03168%2021.6258%201.81245%2023.839%202.15956ZM4.05769%2017.2862C4.69786%2016.6468%205.47978%2016.3225%206.40346%2016.3134C7.32713%2016.3042%208.10905%2016.6194%208.74922%2017.2588C9.38939%2017.8982%209.70491%2018.6792%209.69576%2019.6018C9.68662%2020.5243%209.36196%2021.3053%208.72179%2021.9448C8.26452%2022.4015%207.50089%2022.7943%206.43089%2023.1231C5.36089%2023.4519%203.88393%2023.7442%202%2024C2.25607%2022.1183%202.54872%2020.6431%202.87795%2019.5744C3.20718%2018.5056%203.60043%2017.7429%204.05769%2017.2862ZM5.62154%2018.8208C5.43863%2019.0035%205.25572%2019.3369%205.07282%2019.821C4.88991%2020.3051%204.76188%2020.7938%204.68872%2021.2871C5.18256%2021.214%205.67183%2021.0907%206.15653%2020.9171C6.64123%2020.7436%206.97504%2020.5655%207.15794%2020.3828C7.37743%2020.1635%207.49632%2019.8986%207.51461%2019.5881C7.5329%2019.2775%207.4323%2019.0126%207.21282%2018.7934C6.99333%2018.5741%206.72812%2018.4691%206.41718%2018.4782C6.10624%2018.4874%205.84102%2018.6015%205.62154%2018.8208Z'%20fill='%23A3A8B8'/%3e%3c/g%3e%3c/svg%3e",Snowflake=""+new URL("../media/snowflake.JU2jBHL8.svg",import.meta.url).href;function DetachedHead(){return{title:"Unable to deploy",body:jsxs(Fragment,{children:[jsx$1("p",{children:"This Git tree is in a detached HEAD state."}),jsx$1("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}}function ModuleIsNotAdded(n){return{title:"Unable to deploy",body:jsx$1(StreamlitMarkdown$1,{source:` 138The app's main file \`${n}\` has 139not been pushed to GitHub. Please add it to continue. 140`,allowHTML:!1})}}const DEPLOY_URL="https://share.streamlit.io/deploy",STREAMLIT_CLOUD_URL="https://streamlit.io/cloud",STREAMLIT_COMMUNITY_CLOUD_DOCS_URL="https://share.streamlit.io/cloud-getting-started",STREAMLIT_DEPLOY_TUTORIAL_URL="https://share.streamlit.io/deployment-tutorial",SNOWFLAKE_LEARN_MORE_URL="https://share.streamlit.io/sis-about",SNOWFLAKE_TRIAL_URL="https://share.streamlit.io/snowflake-trial",StyledParagraph=styled("p",{target:"euwf8ug0"})({textAlign:"justify"});function NoRepositoryDetected(){return{title:"Unable to deploy",body:jsxs(StyledParagraph,{children:["The appâs code is not connected to a remote GitHub repository. To deploy on Streamlit Community Cloud, please put your code in a GitHub repository and publish the current branch. Read more in"," ",jsx$1("a",{href:STREAMLIT_COMMUNITY_CLOUD_DOCS_URL,rel:"noopener noreferrer",target:"_blank",children:"our documentation"}),"."]})}}function DeployCard(n){const{colors:i,spacing:t,radii:e,breakpoints:o,sizes:d}=useEmotionTheme(),{children:p}=n;return jsx$1(Card,{overrides:{Root:{style:{borderTopWidth:d.borderWidth,borderBottomWidth:d.borderWidth,borderLeftWidth:d.borderWidth,borderRightWidth:d.borderWidth,borderTopStyle:"solid",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"solid",borderTopColor:i.borderColor,borderBottomColor:i.borderColor,borderLeftColor:i.borderColor,borderRightColor:i.borderColor,borderTopLeftRadius:"none",borderTopRightRadius:"none",borderBottomLeftRadius:"none",borderBottomRightRadius:"none",":last-child":{borderRightStyle:"none",borderBottomRightRadius:e.xl},":first-child":{borderBottomLeftRadius:e.xl},[`@media (max-width: ${o.md})`]:{":last-child":{borderBottomLeftRadius:e.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%"}},Body:{style:{padding:t.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%",display:"flex",flexDirection:"column",[`@media (max-width: ${o.md})`]:{padding:t.xl}}}},children:p})}const Checkmark="data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.00009%206.78L1.68676%204.46667C1.42676%204.20667%201.00676%204.20667%200.746758%204.46667C0.486758%204.72667%200.486758%205.14667%200.746758%205.40667L3.53342%208.19334C3.79342%208.45334%204.21342%208.45334%204.47342%208.19334L11.5268%201.14C11.7868%200.880005%2011.7868%200.460005%2011.5268%200.200005C11.2668%20-0.0599951%2010.8468%20-0.0599951%2010.5868%200.200005L4.00009%206.78Z'%20fill='%23808495'/%3e%3c/svg%3e",StyledHeader=styled("div",{target:"ep91p7v0"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.lg,marginTop:n.spacing.twoXL,marginBottom:n.spacing.twoXS,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledSubheader=styled("div",{target:"ep91p7v1"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginTop:n.spacing.twoXS,marginBottom:n.spacing.md,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledCardContainer=styled("div",{target:"ep91p7v2"})(({theme:n})=>({display:"grid",maxWidth:`calc(1.25 * ${n.sizes.contentMaxWidth})`,gridTemplateColumns:"1fr 1fr 1fr",gridGap:n.spacing.none,[`@media (max-width: ${n.breakpoints.md})`]:{gridTemplateColumns:"1fr"}})),StyledElement=styled("div",{target:"ep91p7v3"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.sm,"& > span":{fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginLeft:n.spacing.twoXL,color:n.colors.gray70},"& > img":{position:"absolute",marginTop:n.spacing.sm}})),StyledActionsWrapper=styled("div",{target:"ep91p7v4"})(({theme:n})=>({display:"flex",marginTop:n.spacing.threeXL,"& > button":{marginRight:n.spacing.twoXL},[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.xl}}));function DeployListElement(n){const{children:i}=n;return jsxs(StyledElement,{children:[jsx$1("img",{src:Checkmark,alt:"Checkmark"}),jsx$1("span",{children:i})]})}function ModalBody({children:n}){const{colors:i,fontSizes:t,spacing:e}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:e.none,marginLeft:e.none,marginRight:e.none,marginBottom:e.none,paddingTop:e.md,paddingRight:e.none,paddingBottom:e.none,paddingLeft:e.none,color:i.bodyText,fontSize:t.md,overflowY:"auto"},children:n})}function DeployModal(n){const{children:i,onClose:t}=n;return jsxs(Modal,{isOpen:!0,closeable:!0,onClose:t,size:"auto",children:[jsx$1(ModalHeader,{children:"Deploy this app using..."}),jsx$1(ModalBody,{children:i})]})}const{GitStates}=GitInfo,openUrl=n=>{window.open(n,"_blank")},getDeployAppUrl=n=>{if(n){const i=new URL(DEPLOY_URL);return i.searchParams.set("repository",n.repository??""),i.searchParams.set("branch",n.branch??""),i.searchParams.set("mainModule",n.module??""),i.toString()}return STREAMLIT_CLOUD_URL};function DeployDialog(n){const{gitInfo:i,onClose:t,metricsMgr:e,showDeployError:o,isDeployErrorModalOpen:d}=n,p=reactExports.useCallback(()=>
140{if(e.enqueue("menuClick",{label:"deployButtonInDialog"}),!i){const Z=NoRepositoryDetected();o(Z.title,Z.body);return}const{repository:h,branch:y,module:E,untrackedFiles:$,state:M}=i;if((!h||!y||!E)&&M===GitStates.DEFAULT){const Z=NoRepositoryDetected();o(Z.title,Z.body);return}if(M===GitStates.HEAD_DETACHED){const Z=DetachedHead();o(Z.title,Z.body);return}if(E&&$?.includes(E)){const Z=ModuleIsNotAdded(E);o(Z.title,Z.body);return}d&&t(),openUrl(getDeployAppUrl(i))},[e,i,d,o,t]);return jsx$1(DeployModal,{onClose:t,children:jsxs(StyledCardContainer,{children:[jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:StreamlitLogo,alt:"Streamlit Logo","data-testid":"stDeployDialogCommunityCloudIcon"}),jsx$1(StyledHeader,{children:"Streamlit Community Cloud"}),jsx$1(StyledSubheader,{children:"For community, always free"}),jsx$1(DeployListElement,{children:"For personal hobbies and learning"}),jsx$1(DeployListElement,{children:"Deploy unlimited public apps"}),jsx$1(DeployListElement,{children:"Explore and learn from Streamlitâs community and popular apps"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.PRIMARY,onClick:p,children:"Deploy now"}),jsx$1(BaseButton,{onClick:()=>{e.enqueue("menuClick",{label:"readMoreCommunityCloudInDeployDialog"}),openUrl(STREAMLIT_COMMUNITY_CLOUD_DOCS_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:Snowflake,alt:"Snowflake","data-testid":"stDeployDialogSnowflakeDeploymentIcon"}),jsx$1(StyledHeader,{children:"Snowflake"}),jsx$1(StyledSubheader,{children:"For enterprise"}),jsx$1(DeployListElement,{children:"Enterprise-level security, support, and fully managed infrastructure"}),jsx$1(DeployListElement,{children:"Deploy unlimited private apps with role-based sharing"}),jsx$1(DeployListElement,{children:"Integrate with Snowflakeâs full data stack"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:()=>{e.enqueue("menuClick",{label:"startTrialInDeployDialog"}),openUrl(SNOWFLAKE_TRIAL_URL)},children:"Start trial"}),jsx$1(BaseButton,{onClick:()=>{e.enqueue("menuClick",{label:"learnMoreSnowflakeInDeployDialog"}),openUrl(SNOWFLAKE_LEARN_MORE_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:2},children:[jsx$1("img",{src:Rocket,alt:"Rocket","data-testid":"stDeployDialogCustomDeploymentIcon"}),jsx$1(StyledHeader,{children:"Other platforms"}),jsx$1(StyledSubheader,{children:"For custom deployment "}),jsx$1(DeployListElement,{children:"Deploy on your own hardware or cloud service"}),jsx$1(DeployListElement,{children:"Set up and maintain your own authentication, resources, and costs"})]}),jsx$1(Action,{children:jsx$1(StyledActionsWrapper,{children:jsx$1(BaseButton,{onClick:()=>{e.enqueue("menuClick",{label:"readMoreDeployTutorialInDeployDialog"}),openUrl(STREAMLIT_DEPLOY_TUTORIAL_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})})})]})]})})}
140const StyledDeployErrorContent=styled("div",{target:"e14li120"})(({theme:n})=>({"& > ul":{paddingLeft:n.spacing.twoXL}})),StyledErrorText=styled("div",{target:"e14li121"})(({theme:n,hasCodeBelow:i})=>({...i&&{marginBottom:n.spacing.lg}}));function StreamlitDialog(n){switch(n.type){case DialogType.ABOUT:return jsx$1(AboutDialog,{...n});case DialogType.CLEAR_CACHE:return jsx$1(ClearCacheDialog,{...n});case DialogType.SCRIPT_COMPILE_ERROR:return jsx$1(ScriptCompileErrorDialog,{...n});case DialogType.WARNING:case DialogType.CONNECTION_ERROR:return jsx$1(WarningDialog,{...n});case DialogType.DEPLOY_DIALOG:return jsx$1(DeployDialog,{...n});case DialogType.DEPLOY_ERROR:return jsx$1(DeployErrorDialog,{...n});case void 0:return noDialog(n);default:return typeNotRecognizedDialog(n)}}function AboutDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"About"}),jsx$1(ModalBody$1,{children:n.aboutSectionMd&&jsx$1(StreamlitMarkdown$1,{source:n.aboutSectionMd,allowHTML:!1})})]})}function ClearCacheDialog(n){const t=["**Are you sure you want to clear the app's function caches?**","This will remove all cached entries from functions using","`@st.cache_data` and `@st.cache_resource`."].join(` 141`);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.GHOST,onClick:n.onClose,children:"Cancel"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:n.confirmCallback,children:"Clear caches"})]})]})})}function ScriptCompileErrorDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitErrorCodeBlock$1,{children:n.exception?.message?n.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:n.onClose,children:"Close"})})]})}function WarningDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:n.title}),jsx$1(ModalBody$1,{children:n.msg})]})}function DeployErrorDialog({title:n,msg:i,onClose:t,onContinue:e,onTryAgain:o}){const d=()=>{t(),e&&e()};return jsxs(Modal,{isOpen:!0,onClose:t,children:[jsx$1(ModalHeader,{children:n}
141),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:i})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:o,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:d,children:e?"Continue anyway":"Close"})]})]})}function noDialog({onClose:n}){return jsx$1(Modal,{isOpen:!1,onClose:n})}function typeNotRecognizedDialog(n){return jsx$1(Modal,{isOpen:!0,onClose:n.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${n.type}" not recognized.`})})}function parseLinks(n){const i=[];let t=0,e=0;const o=/\[([^\]]+)\]\(([^)]+)\)/g;let d;for(;(d=o.exec(n))!==null;)d.index>t&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(t,d.index)},e++)),i.push(jsx$1("a",{href:d[2],target:"_blank",rel:"noopener noreferrer",children:d[1]},e++)),t=d.index+d[0].length;return t<n.length&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(t)},e++)),i}function DialogErrorMessage({message:n,codeBlock:i}){return jsxs(Fragment,{children:[jsx$1(StyledErrorText,{hasCodeBelow:!!i,children:parseLinks(n)}),i&&jsx$1(StreamlitErrorCodeBlock$1,{children:i})]})}const DialogErrorMessage$1=reactExports.memo(DialogErrorMessage),StyledActionButtonContainer=styled("div",{target:"eyud7440"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),StyledActionButtonIcon=styled("div",{target:"eyud7441"})(({theme:n,icon:i})=>({background:`url("${i}") no-repeat center / contain`,width:n.iconSizes.base,height:n.iconSizes.base})),StyledToolbarActions=styled("div",{target:"eyud7442"})({display:"flex",alignItems:"center",flexDirection:"row"});function ActionButton({label:n,icon:i,onClick:t}){return jsx$1("div",{className:"stToolbarActionButton","data-testid":"stToolbarActionButton",children:jsx$1(BaseButton,{onClick:t,kind:BaseButtonKind.HEADER_BUTTON,children:jsxs(StyledActionButtonContainer,{children:[i&&jsx$1(StyledActionButtonIcon,{"data-testid":"stToolbarActionButtonIcon",icon:i}),n&&jsx$1("span",{"data-testid":"stToolbarActionButtonLabel",children:n})]})})})}function ToolbarActions({sendMessageToHost:n,hostToolbarItems:i,metricsMgr:t}){return jsx$1(StyledToolbarActions,{className:"stToolbarActions","data-testid":"stToolbarActions",children:i.map(({key:e,label:o,icon:d})=>jsx$1(ActionButton,{label:o,icon:d,onClick:()=>{t.enqueue("menuClick",{label:e}),n({type:"TOOLBAR_ITEM_CALLBACK",key:e})}},e))})}const screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=styled("div",{target:"erg7rn60"})(({theme:n})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:n.sizes.full,height:n.sizes.full,fontSize:"40vh",color:n.colors.redTextColor,fontWeight:n.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${n.colors.grayTextColor}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:n,endCallback:i})=>{const[t,e]=reactExports.useState(n);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const d=t-1;d>=0&&e(d),d===0&&i()},children:jsx$1("span",{children:t})},`frame${t}`)},StyledRecordAudioLabel=styled("label",{target:"erxc94j0"})({margin:0}),StyledInstruction=styled("div",{target:"erxc94j1"})({margin:0}),ScreencastDialog=({onClose:n,toggleRecordAudio:i,recordAudio:t,startRecording:e})=>{const[o,d]=reactExports.useState(t),p=reactExports.useCallback(y=>{const{checked:E}=y.target;E!==o&&(d(E),i())},[o,i]),h=reactExports.useCallback(()=>{e(),n()},[e,n]);return jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio","aria-label":"Also record audio",checked:o,onChange:p})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:h,children:"Start recording!"})})]})},StyledScreenCastWarningDialog=styled("div",{target:"e15jpqoz0"})({display:"flex"}),StyledUnsupportedScreenCastIcon=styled("div",{target:"e15jpqoz1"})(({theme:n})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:n.spacing.twoXL,marginLeft:n.spacing.sm,fontSize:n.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=styled("p",{target:"e15jpqoz2"})(({theme:n})=>({margin:n.spacing.none})),UnsupportedBrowserDialog=({onClose:n})=>jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"ð¾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),StyledVideo=styled("video",{target:"e13wfkbd0"})(({theme:n})=>({width:n.sizes.full,borderRadius:n.radii.sm})),StyledDialogContainer=styled("div",{target:"e13wfkbd1"})(({theme:n})=>({display:"flex",flexDirection:"column",width:n.sizes.full})),StyledRow=styled("div",{target:"e13wfkbd2"})(({theme:n})=>({display:"flex",flexDirection:"row",paddingTop:n.spacing.md,paddingBottom:n.spacing.md})),StyledFirstColumn=styled("div",{target:"e13wfkbd3"})(({theme:n})=>({paddingRight:n.spacing.lg,textAlign:"right",color:n.colors.grayTextColor,fontWeight:n.fontWeights.bold,width:"6em"})),StyledSecondColumn=styled("div",{target:"e13wfkbd4"})(({theme:n})=>({flex:1,paddingRight:n.spacing.lg,marginRight:"6em",[`@media (max-width: ${n.breakpoints.sm})`]:{marginRight:n.spacing.none}})),StyledVideoFormatInstructions=styled("p",{target:"e13wfkbd5"})(({theme:n})=>({marginTop:n.spacing.sm,marginBottom:n.spacing.none,fontSize:n.fontSizes.sm})),StyledDownloadButtonContainer=styled("div",{target:"e13wfkbd6"})(({theme:n})=>({marginTop:n.spacing.twoXS})),VideoRecordedDialog=({onClose:n,videoBlob:i,fileName:t})=>{const e=URL.createObjectURL(i),o=()=>{const d=document.createElement("a");d.setAttribute("href",e),d.setAttribute("download",`${t}.webm`),d.click(),n()};return jsxs(Modal,{isOpen:!0,onClose:n,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:e,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:o,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]}
141)]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"ð"})]})]})]})})]})},LOG$2=loglevelExports.getLogger("withScreencast");function withScreencast(n){const i=t=>{const{testOverride:e}=t,o=reactExports.useRef(null),[d,p]=reactExports.useState("streamlit-screencast"),[h,y]=reactExports.useState(!1),[E,$]=reactExports.useState(void 0),[M,X]=reactExports.useState(e||"OFF"),Z=reactExports.useCallback(()=>{y(Fe=>!Fe)},[]),ye=reactExports.useCallback(async()=>{if(!(M==="OFF"||isNullOrUndefined$1(o.current))){if(M==="COUNTDOWN"){X("OFF");return}if(M==="RECORDING"){const Fe=o.current;if(!Fe||Fe.getState()==="inactive")X("OFF");else{const De=await Fe.stop();$(De),X("PREVIEW_FILE")}}}},[M]),be=reactExports.useCallback(async()=>{if(!ScreenCastRecorder.isSupportedBrowser()){X("UNSUPPORTED");return}o.current=new ScreenCastRecorder({recordAudio:h,onErrorOrStop:()=>{ye().catch(Fe=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Fe}`))}});try{await o.current.initialize()}catch(Fe){LOG$2.warn(`ScreenCastRecorder.initialize error: ${Fe}`),X("UNSUPPORTED");return}X("COUNTDOWN")},[h,ye]),we=reactExports.useCallback(Fe=>{if(!ScreenCastRecorder.isSupportedBrowser()){X("UNSUPPORTED");return}if(M==="OFF"){p(Fe),X("SETUP");return}ye().catch(De=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${De}`))},[M,ye]),xe=reactExports.useCallback(()=>{if(isNullOrUndefined$1(o.current))throw new Error("Countdown finished but recorder is null");o.current.start()?X("RECORDING"):ye().catch(De=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${De}`))},[ye]),$e=reactExports.useCallback(()=>{X("OFF")},[]);return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(n,{...t,screenCast:{currentState:M,toggleRecordAudio:Z,startRecording:we,stopRecording:ye}}),M==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:$e}),M==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:h,onClose:$e,startRecording:be,toggleRecordAudio:Z}),M==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:xe}),M==="PREVIEW_FILE"&&E&&jsx$1(VideoRecordedDialog,{onClose:$e,videoBlob:E,fileName:d})]})};return i.displayName=`withScreencast(${n.displayName||n.name||"Component"})`,hoistNonReactStatics(i,n)}const useViewportSize=()=>{const{activeTheme:n}=reactExports.useContext(ThemeContext),{innerWidth:i}=useWindowDimensionsContext(),t=parseInt(n.emotion.breakpoints.md,10);return{isMobile:i<t}},DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json",LOG$1=loglevelExports.getLogger("MetricsManager");class MetricsManager{constructor(i){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=t=>{this.appHash=t},this.setMetricsConfig=(t="")=>{this.metricsUrl=t},this.sessionInfo=i}async initialize({gatherUsageStats:i,sendMessageToHost:t}){this.sendMessageToHost=t,this.actuallySendMetrics=i&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(LOG$1.error("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),LOG$1.info("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(i,t={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([i,t]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(i,t))}setMetadata(i){this.metadata=i}async requestDefaultMetricsConfig(){const i=localStorageAvailable();if(i){const t=window.localStorage.getItem("stMetricsConfig");if(t){this.metricsUrl=t;return}}try{const t=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!t.ok)this.metricsUrl=void 0,LOG$1.error("Failed to fetch metrics config: ",t.status);else{const e=await t.json();this.metricsUrl=e.url??void 0,i&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(t){LOG$1.error("Failed to fetch metrics config:",t)}}send(i,t={}){const e=this.buildEventProto(i,t);this.metricsUrl==="postMessage"?this.postMessageEvent(i,e):this.track(e)}
141sendPendingEvents(){this.pendingEvents.forEach(([i,t])=>{this.send(i,t)}),this.pendingEvents=[]}async track(i){const t=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.toJSON())});await fetch(t)}postMessageEvent(i,t){this.sendMessageToHost({type:"METRICS_EVENT",eventName:i,data:t})}buildEventProto(i,t){const e=new MetricsEvent({event:i,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,appId:this.sessionInfo.current.appId,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,serverOs:this.sessionInfo.current.serverOS,hasDisplay:this.sessionInfo.current.hasDisplay,isWebdriver:isWebdriver(),...this.getContextData()});if(i==="menuClick")e.label=t.label;else if(i==="pageProfile")return new MetricsEvent({...e,...t});return e}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3,machineIdV4:this.sessionInfo.current.installationIdV4}}getHostTrackingData(){return this.metadata?pick$1(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const i="ajs_anonymous_id",t=localStorageAvailable(),e=getCookie(i),o=t?window.localStorage.getItem(i):null,d=new Date;if(d.setFullYear(new Date().getFullYear()+1),e)this.anonymousId=e,t&&window.localStorage.setItem(i,e);else if(o){try{this.anonymousId=JSON.parse(o)}catch{this.anonymousId=o}setCookie(i,this.anonymousId,d)}else this.anonymousId=v4(),setCookie(i,this.anonymousId,d),t&&window.localStorage.setItem(i,this.anonymousId)}}function isWebdriver(){return window.navigator?.webdriver??!1}class SessionEventDispatcher{constructor(){this.onSessionEvent=new distExports.Signal}handleSessionEventMsg(i){this.onSessionEvent.emit(i)}}const StyledApp=styled("div",{target:"e1vju3fw0"})(({theme:n})=>
141{const i=hasLightBackgroundColor(n);return{position:"absolute",background:n.colors.bgColor,color:n.colors.bodyText,top:n.spacing.none,left:n.spacing.none,right:n.spacing.none,bottom:n.spacing.none,colorScheme:i?"light":"dark",overflow:"hidden","@media print":{float:"none",height:n.sizes.full,position:"static",overflow:"visible"}}});function getBrowserInfo(){const i=new UAParser().getResult();return{browserName:i.browser.name||"Unknown",browserVersion:i.browser.version||"Unknown",deviceType:i.device.type||"desktop",os:i.os.name||"Unknown"}}const showDevelopmentOptions=(n,i)=>i==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==i||Config.ToolbarMode.MINIMAL==i?!1:n||isLocalhost();function getTitle(n){return n||"Streamlit"}class AppNavigation{constructor(i,t,e,o){this.hostCommunicationMgr=i,this.onUpdatePageUrl=t,this.onPageNotFound=e,this.onPageIconChange=o,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.hasSetDefaultFavicon=!1,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(i){return this.mainScriptHash!==i.mainScriptHash&&(this.isPageTitleSet=!1,this.isPageIconSet=!1,this.hasSetDefaultFavicon=!1),this.mainScriptHash=i.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=i.config?.hideSidebarNav??null),document.title=getTitle(""),[{currentPageScriptHash:i.pageScriptHash,hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handleNavigation(i){const{sections:t,position:e,appPages:o}=i;this.appPages=o,this.hideSidebarNav=e===Navigation.Position.HIDDEN;const d=i.pageScriptHash,p=o.find(E=>E.pageScriptHash===d),h=o.find(E=>E.isDefault);this.mainPage=h;const y=p.urlPathname;if(!this.isPageTitleSet){const E=getTitle(p.pageName);document.title=E,this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:p.pageName??""})}return!this.isPageIconSet&&p.icon&&this.onPageIconChange(p.icon),this.onUpdatePageUrl(h.urlPathname??"",y,p.isDefault??!1),[{appPages:o,navSections:t,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:i.expanded,currentPageScriptHash:d},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:o}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:p.isDefault?"":y,currentPageScriptHash:d})}]}handlePageNotFound(i){return this.onPageNotFound(i),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}findPageByUrlPath(i){return this.appPages.find(t=>i.endsWith("/"+t.urlPathname))??this.mainPage}handlePageConfigChanged(i){i.favicon&&(this.isPageIconSet=!0),i.title&&(this.isPageTitleSet=!0)}clearPageElements(i,t){return i.filterMainScriptElements(t)}}function includeIfDefined(n){return Object.entries(n).reduce((i,[t,e])=>(e!==void 0&&(i[t]=e),i),{})}function preferWindowValue(n,i){return n??i}function reconcileHostConfigValues(n,i){if(!n)return i;const t=isValidAllowedOrigins(n.allowedOrigins)?n.allowedOrigins:void 0;return{...i,allowedOrigins:preferWindowValue(t,i.allowedOrigins),useExternalAuthToken:preferWindowValue(n.useExternalAuthToken,i.useExternalAuthToken),enableCustomParentMessages:preferWindowValue(n.enableCustomParentMessages,i.enableCustomParentMessages),blockErrorDialogs:preferWindowValue(n.blockErrorDialogs,i.blockErrorDialogs),mapboxToken:preferWindowValue(n.mapboxToken,i.mapboxToken),disableFullscreenMode:preferWindowValue(n.disableFullscreenMode,i.disableFullscreenMode),enforceDownloadInNewTab:preferWindowValue(n.enforceDownloadInNewTab,i.enforceDownloadInNewTab),resourceCrossOriginMode:preferWindowValue(n.resourceCrossOriginMode,i.resourceCrossOriginMode),setAnonymousCrossOriginPropertyOnMediaElements:i.setAnonymousCrossOriginPropertyOnMediaElements,metricsUrl:preferWindowValue(n.metricsUrl,i.metricsUrl)}}var define_PACKAGE_METADATA_default={version:"1.55.0"};const INITIAL_SCRIPT_RUN_ID="<null>",LOG=loglevelExports.getLogger("App");class App extends reactExports.PureComponent{constructor(i){super(i),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.appRootRef=reactExports.createRef(),this.deferredFileListeners=new Map,this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(t,e,o)=>{const d={type:DialogType.DEPLOY_ERROR,title:t,msg:e,onContinue:o,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(d)},this.handleThemeMessage=(t,e)=>{const[,o,d]=createPresetThemes(),p=isPresetTheme(this.props.theme.activeTheme);t===o.name&&p?this.props.theme.setTheme(o):t===d.name&&p?this.props.theme.setTheme(d):e&&this.props.theme.setImportedTheme(e)},this.handleConnectionStateChanged=t=>{if(LOG.info(`Connection state changed from ${this.state.connectionState} to ${t}`),t===ConnectionState.CONNECTED){LOG.info("Reconnected to server."),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});const e=this.state.scriptRunState===ScriptRunState.RUNNING,o=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED;!this.sessionInfo.last||e||o||this.state.fragmentIdsThisRun.length>0||this.state.autoReruns.length>0?(LOG.info("Requesting a script run."),this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})):this.state.dialog?.type===DialogType.CONNECTION_ERROR&&this.setState({dialog:null}),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:t!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect();this.isInitializingConnectionManager?this.setState({connectionState:t}):reactDomExports.flushSync(()=>{this.setState({connectionState:t})})},this.handleGitInfoChanged=t=>{this.setState({gitInfo:t})},this.handleCustomParentMessage=t=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:t.message}):LOG.error("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=t=>{const e=(o,d,p)=>{const h=o[d];if(h in p)return p[h](o[h]);throw new Error(`Cannot handle ${d} "${h}".`)};try{e(t,"type",{newSession:o=>this.handleNewSession(o),sessionStatusChanged:o=>this.handleSessionStatusChanged(o),sessionEvent:o=>this.handleSessionEvent(o),delta:o=>this.handleDeltaMsg(o,t.metadata),pageConfigChanged:o=>this.handlePageConfigChanged(o),pageInfoChanged:o=>this.handlePageInfoChanged(o),pageNotFound:o=>this.handlePageNotFound(o),gitInfoChanged:o=>this.handleGitInfoChanged(o),scriptFinished:o=>this.handleScriptFinished(o),pageProfile:o=>this.handlePageProfileMsg(o),autoRerun:o=>this.handleAutoRerun(o),fileUrlsResponse:o=>this.uploadClient.onFileURLsResponse(o),deferredFileResponse:o=>this.handleDeferredFileResponse(o),parentMessage:o=>this.handleCustomParentMessage(o),logo:o=>this.handleLogo(o,t.metadata),navigation:o=>this.handleNavigation(o),authRedirect:o=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:o.url}):window.location.href=o.url},heartbeatAck:()=>this.handleHeartbeatAck()})}catch(o){const d=ensureError(o);LOG.error(d),this.showError("Bad message format",{message:d.message})}},this.handleLogo=(t,e)=>{this.setState(o=>({elements:o.elements.appRootWithLogo(t,{activeScriptHash:e.activeScriptHash,scriptRunId:o.scriptRunId})}))},this.handlePageConfigChanged=t=>{const{title:e,favicon:o,layout:d,initialSidebarState:p,initialSidebarWidth:h,menuItems:y}=t;this.appNavigation.handlePageConfigChanged(t),e&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:e}),document.title=e),o&&this.onPageIconChanged(o),d!==this.state.layout&&d!==PageConfig.Layout.LAYOUT_UNSET&&this.setState($=>({layout:d,userSettings:{...$.userSettings,wideMode:d===PageConfig.Layout.WIDE}})),p!==this.state.initialSidebarState&&p!==PageConfig.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:p}));const E=h?.pixelWidth!==void 0?h.pixelWidth:void 0;notNullOrUndefined(E)&&E!==this.state.initialSidebarWidth&&this.setState(()=>({initialSidebarWidth:E})),y&&this.setState($=>(y.clearAboutMd&&(y.aboutSectionMd=""),{menuItems:{...$.menuItems,...y}}))},this.handleQueryParamsFromWidget=t=>{this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.handlePageInfoChanged=t=>{const{queryString:e}=t,o=document.location.pathname+(e?`?${e}`:"");window.history.pushState({},"",o),this.setState({queryParams:e}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:e?`?${e}`:""})},this.onPageNotFound=t=>{const e=t?`You have requested page /${t}, 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",{message:`${e}. Running the app's main page.`})},this.handlePageNotFound=t=>{const{pageName:e}=t;this.maybeSetState(this.appNavigation.handlePageNotFound(e))},this.onPageIconChanged=t=>{handleFavicon(t,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=t=>{this.setState({navigationPosition:t.position}),this.maybeSetState(this.appNavigation.handleNavigation(t))},this.handlePageProfileMsg=t=>{const e=PageProfile.toObject(t),o=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...e,isFragmentRun:!!e.isFragmentRun,numPages:this.state.appPages?.length,pageScriptHash:this.state.currentPageScriptHash,activeTheme:this.props.theme?.activeTheme?.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:o})},this.handleAutoRerun=t=>{const e=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(t.fragmentId,!0)},t.interval*1e3);this.setState(o=>({autoReruns:[...o.autoReruns,e]}))},this.handleSessionStatusChanged=t=>{this.setState(e=>{let{scriptRunState:o}=e,{dialog:d}=e;return t.scriptIsRunning&&e.scriptRunState!==ScriptRunState.STOP_REQUESTED?(o=ScriptRunState.RUNNING,notNullOrUndefined(d)&&d.type===DialogType.SCRIPT_COMPILE_ERROR&&(d=void 0)):!t.scriptIsRunning&&e.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&e.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(o=ScriptRunState.NOT_RUNNING),{userSettings:{...e.userSettings,runOnSave:!!t.runOnSave},dialog:d,scriptRunState:o,scriptChangedOnDisk:t.scriptIsRunning?!1:e.scriptChangedOnDisk}})},this.handleSessionEvent=t=>{if(this.sessionEventDispatcher.handleSessionEventMsg(t),t.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const e={type:DialogType.SCRIPT_COMPILE_ERROR,exception:t.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(e,t.scriptCompilationException?.message??"No message")}else t.type==="scriptChangedOnDisk"&&this.setState({scriptChangedOnDisk:!0}
141)},this.maybeUpdatePageUrl=(t,e,o)=>{const d=this.getBaseUriParts();if(d){let p;StreamlitConfig.MAIN_PAGE_BASE_URL?p=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:p=d.pathname;const h=extractPageNameFromPathName(document.location.pathname,p);if((h===""?t:h)!==e){const E=o?"":e,$=this.state.queryParams||preserveEmbedQueryParams(),M=$?`?${$}`:"",Z=`${p==="/"?"":p}/${E}${M}`;window.history.pushState({},"",Z)}}},this.handleNewSession=t=>{const e=t.initialize;if(this.hasStreamlitVersionChanged(e)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(t);const{appHash:o,currentPageScriptHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:y,fragmentIdsThisRun:E,pageScriptHash:$,mainScriptHash:M}=t;if(E.length)this.setState({fragmentIdsThisRun:E,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Z=t.config,ye=t.customTheme;this.processThemeInput(ye),this.setState({allowRunOnSave:Z.allowRunOnSave,hideTopBar:Z.hideTopBar,toolbarMode:Z.toolbarMode,showErrorLinks:Z.showErrorLinks,latestRunTime:performance.now(),mainScriptHash:M,fragmentIdsThisRun:E}),this.maybeSetState(this.appNavigation.handleNewSession(t)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged("./favicon.png"))}const X=hashString(this.sessionInfo.current.installationId+y);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(X),this.metricsMgr.enqueue("updateReport"),o===X&&d===$?this.setState(Z=>({elements:Z.elements.clearTransientNodes(E),scriptRunId:p})):this.clearAppState(X,p,h,M)},this.handleInitialization=t=>{const e=t.initialize,o=t.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(t)),this.metricsMgr.initialize({gatherUsageStats:o.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(e.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:t}=this.state,e=this.appNavigation.findPageByUrlPath(document.location.pathname),o=document.location.toString().includes("#"),d=e?.pageScriptHash===t;isNullOrUndefined$1(e)||o&&d||this.onPageChange(e.pageScriptHash,void 0,!0)},this.setAndSendTheme=t=>{this.props.theme.setTheme(t),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(t.emotion)})},this.createThemeHash=t=>{if(!t)return"hash_for_undefined_custom_theme";const e=JSON.parse(JSON.stringify(t)),o=sortThemeInputKeys(e);return hashString(JSON.stringify(o))},this.closeDialog=()=>{this.state.dialog?.type===DialogType.CONNECTION_ERROR?this.setState({dialog:void 0,connectionErrorDismissed:!0}):this.setState({dialog:void 0})},this.saveSettings=t=>{const{runOnSave:e}=this.state.userSettings,{runOnSave:o}=t;if(this.setState({userSettings:t}),e!==o&&this.isServerConnected()){const d=new BackMsg({setRunOnSave:o});d.type="setRunOnSave",this.sendBackMsg(d)}},this.handleRunOnSaveChange=t=>{this.saveSettings({...this.state.userSettings,runOnSave:t})},this.handleDeltaMsg=(t,e)=>{this.setState(o=>({elements:o.elements.applyDelta(o.scriptRunId,t,e)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const t=new BackMsg({debugShutdownRuntime:!0});t.type="debugShutdownRuntime",this.sendBackMsg(t)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const t=new BackMsg({debugDisconnectWebsocket:!0});t.type="debugDisconnectWebsocket",this.sendBackMsg(t)}},this.debugClearForwardMsgCache=()=>{isLocalhost()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(t=>{clearInterval(t)}),this.setState({autoReruns:[]})},this.rerunScript=(t=!1)=>{if(this.closeDialog(),!this.isServerConnected()){LOG.error("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}),t===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){LOG.error("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=(t,e,o)=>{const{elements:d,mainScriptHash:p}=this.state;this.cleanupAutoReruns();const h=this.appNavigation.clearPageElements(d,p),y=new Set(Array.from(h.getElements()).map(E=>getElementId(E)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(y),void 0,t,void 0,e,o)},this.isAppInReadyState=t=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&t.scriptRunState===ScriptRunState.RUNNING&&t.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(t,e,o,d,p,h)=>{const y=this.getBaseUriParts();if(!y){LOG.error("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:E}=this.state;let $=p??this.getQueryString(),M="";const X={timezone:getTimezone$1(),timezoneOffset:getTimezoneOffset(),locale:getLocaleLanguage(),url:getUrl(),isEmbedded:isEmbed(),colorScheme:this.getThemeColorScheme()};if(o){if(o!==E&&!h){const ye=this.widgetMgr.filterParamsForPageChange(preserveEmbedQueryParams());$=getQueryString(p,ye),this.setState({queryParams:$}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:$?`?${$}`:""})}}else if(E)o=E;else{let ye;StreamlitConfig.MAIN_PAGE_BASE_URL?ye=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:ye=y.pathname,M=extractPageNameFromPathName(
141document.location.pathname,ye),o=""}const Z=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new BackMsg({rerunScript:{queryString:$,widgetStates:t,pageScriptHash:o,pageName:M,fragmentId:e,isAutoRerun:d,cachedMessageHashes:Z,contextInfo:X}})),this.hasReceivedNewSession=!1},this.stopScript=()=>{if(!this.isServerConnected()){LOG.error("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const t=new BackMsg({stopScript:!0});t.type="stopScript",this.sendBackMsg(t),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const t={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,onClose:()=>{}};this.openDialog(t)}else LOG.error("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{const t={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:this.state.dialog?.type===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr,gitInfo:this.state.gitInfo};this.openDialog(t)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const t=new BackMsg({clearCache:!0});t.type="clearCache",this.sendBackMsg(t)}else LOG.error("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=t=>{if(this.isServerConnected()){const e=new BackMsg({appHeartbeat:!0});e.type="appHeartbeat",this.sendBackMsg(e),this.connectionManager?.onHeartbeatSent(t)}else LOG.error("Cannot send app heartbeat: disconnected from server")},this.handleHeartbeatAck=()=>{this.connectionManager?.onHeartbeatAckReceived()},this.sendBackMsg=t=>{this.connectionManager?(LOG.info(t),this.connectionManager.sendMessage(t)):LOG.error(`Not connected. Cannot send back message: ${t}`)},this.handleConnectionError=t=>{this.state.connectionErrorDismissed||this.showError("Connection error",t,DialogType.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.aboutCallback=()=>{const{menuItems:t}=this.state,e={type:DialogType.ABOUT,onClose:this.closeDialog,aboutSectionMd:t?.aboutSectionMd};this.openDialog(e)},this.printCallback=()=>{const{scriptRunState:t}=this.state;if(t!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let e;try{const o=getIFrameEnclosingApp(this.embeddingId);o?.contentWindow?e=o.contentWindow.window:e=window}catch{e=window}finally{e||(e=window),e.print()}},this.screencastCallback=()=>{const{scriptName:t}=this.state,{startRecording:e}=this.props.screenCast,o=getScreencastTimestamp();e(`streamlit-${t}-${o}`)},this.handleFullScreen=t=>{this.setState({isFullScreen:t})},this.setLibConfig=t=>{this.setState({libConfig:t})},this.setAppConfig=t=>{this.setState({appConfig:t})},this.addScriptFinishedHandler=t=>{this.setState((e,o)=>({scriptFinishedHandlers:e.scriptFinishedHandlers.concat(t)}))},this.removeScriptFinishedHandler=t=>{this.setState((e,o)=>({scriptFinishedHandlers:e.scriptFinishedHandlers.filter(d=>d!==t)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:t}=this.state,e=t&&t.length>0?t:document.location.search;return e.startsWith("?")?e.substring(1):e},this.getThemeColorScheme=()=>{const{activeTheme:t}=this.props.theme;
141return hasLightBackgroundColor(t.emotion)?"light":"dark"},this.isInCloudEnvironment=()=>{const{hostMenuItems:t}=this.state;return t&&t?.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=(t,e)=>{const o=this.isServerConnected(),d=this.sessionInfo.isSet;if(o&&d){const p=new BackMsg({fileUrlsRequest:{requestId:t,fileNames:e.map(h=>h.name),sessionId:this.sessionInfo.current.sessionId}});p.type="fileUrlsRequest",this.sendBackMsg(p)}else LOG.warn(`Cannot request file URLs (isServerConnected: ${o}, isSessionInfoSet: ${d})`),this.uploadClient.onFileURLsResponse({responseId:t,errorMsg:"Connection lost. Please wait for the app to reconnect, then try again."})},this.requestDeferredFile=t=>{const e=this.isServerConnected(),o=this.sessionInfo.isSet;if(!e||!o)return Promise.reject(new Error("Not connected to server or session not initialized"));const d=Promise.withResolvers(),p=this.deferredFileListeners.get(t)??new Set,h=E=>{p.delete(h),d.resolve(E)};p.add(h),this.deferredFileListeners.set(t,p);const y=new BackMsg({deferredFileRequest:{fileId:t,sessionId:this.sessionInfo.current.sessionId}});return y.type="deferredFileRequest",this.sendBackMsg(y),d.promise},this.handleDeferredFileResponse=t=>{const e=this.deferredFileListeners.get(t.fileId);if(!(!e||e.size===0)){for(const o of Array.from(e))try{o(t)}catch{}this.deferredFileListeners.delete(t.fileId)}},this.handleKeyDown=(t,e)=>{if(!((t==="c"||t==="r")&&isKeyboardEventFromEditableTarget(e)))switch(t){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=t=>{t==="esc"&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{const{menuItems:t}=this.state;return!!(t?.aboutSectionMd||t?.getHelpUrl&&!t?.hideGetHelp||t?.reportABugUrl&&!t?.hideReportABug)},this.shouldShowToolbar=(t,e)=>{const o=!isEmbed()||isToolbarDisplayed();let d;return this.state.toolbarMode===Config.ToolbarMode.MINIMAL?d=t.length>0||e.length>0||this.hasAppDefinedMenuItems():d=!0,o&&d},ensureHotkeysFilterConfigured(),enablePatches(),enableMapSet(),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},connectionErrorDismissed:!1,layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,initialSidebarWidth:void 0,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],showErrorLinks:Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO,themeHash:"",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:window.location?.search?.replace(/^\?/,"")??"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Navigation.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:t=>this.setState({formsData:t})}),this.widgetMgr.setQueryParamsChangeHandler(this.handleQueryParamsFromWidget),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:i.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:t=>{this.setState({inputsDisabled:t})}
141,themeChanged:this.handleThemeMessage,pageChanged:t=>this.onPageChange(t),isOwnerChanged:t=>this.setState({isOwner:t}),fileUploadClientConfigChanged:t=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(t)},hostMenuItemsChanged:t=>{this.setState({hostMenuItems:t})},hostToolbarItemsChanged:t=>{this.setState({hostToolbarItems:t})},hostHideSidebarNavChanged:t=>{this.setState({hostHideSidebarNav:t})},sidebarChevronDownshiftChanged:t=>{this.setState({sidebarChevronDownshift:t})},pageLinkBaseUrlChanged:t=>{this.setState({pageLinkBaseUrl:t})},queryParamsChanged:t=>{this.setState({queryParams:t})},deployedAppMetadataChanged:t=>{this.setState({deployedAppMetadata:t})},restartWebsocketConnection:()=>{this.connectionManager||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),this.initializeConnectionManager())},terminateWebsocketConnection:()=>{this.connectionManager?.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0,sendClientError:(t,e,o,d,p)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:t,error:e,message:o,source:d,customComponentName:p})}}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:t=>this.widgetMgr.setFormsWithUploadsInProgress(t),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}applyInitialHostConfig(){if(!isHostConfigBypassEnabled())return;const i=StreamlitConfig.HOST_CONFIG,t=includeIfDefined({allowedOrigins:i.allowedOrigins,useExternalAuthToken:i.useExternalAuthToken,enableCustomParentMessages:i.enableCustomParentMessages,blockErrorDialogs:i.blockErrorDialogs});this.hostCommunicationMgr.setAllowedOrigins(t),this.setAppConfig(t);const e=includeIfDefined({mapboxToken:i.mapboxToken,disableFullscreenMode:i.disableFullscreenMode,enforceDownloadInNewTab:i.enforceDownloadInNewTab,resourceCrossOriginMode:i.resourceCrossOriginMode});Object.keys(e).length>0&&this.setLibConfig(e),i.metricsUrl!==void 0&&this.metricsMgr.setMetricsConfig(i.metricsUrl)}initializeConnectionManager(){this.isInitializingConnectionManager=!0,this.applyInitialHostConfig(),this.connectionManager=new ConnectionManager({getLastSessionId:()=>this.sessionInfo.last?.sessionId,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,sendClientError:(i,t,e)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:"Websocket Connection",error:i,message:t,source:e})},onHostConfigResp:i=>{const t=reconcileHostConfigValues(StreamlitConfig.HOST_CONFIG,i),{allowedOrigins:e,useExternalAuthToken:o,disableFullscreenMode:d,enableCustomParentMessages:p,mapboxToken:h,enforceDownloadInNewTab:y,metricsUrl:E,blockErrorDialogs:$,setAnonymousCrossOriginPropertyOnMediaElements:M,resourceCrossOriginMode:X}=t,Z={allowedOrigins:e,useExternalAuthToken:o,enableCustomParentMessages:p,blockErrorDialogs:$},ye={mapboxToken:h,disableFullscreenMode:d,enforceDownloadInNewTab:y,resourceCrossOriginMode:X??(M?"anonymous":void 0)};this.metricsMgr.setMetricsConfig(E),this.hostCommunicationMgr.setAllowedOrigins(Z),this.setAppConfig(Z),this.setLibConfig(ye)}}),this.isInitializingConnectionManager=!1}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&
141(window.iFrameResizer={heightCalculationMethod:()=>{const i=document.querySelectorAll("[data-iframe-height]"),t=Array.from(i).map(e=>Math.ceil(e.getBoundingClientRect().bottom));return Math.max(0,...t)}},__vitePreload(()=>import("./iframeResizer.contentWindow.DP8LuJZf.js").then(i=>i.i),[],import.meta.url)),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(i,t){if(window.prerenderReady===!1&&this.isAppInReadyState(t)&&(window.prerenderReady=!0),this.state.scriptRunState!==t.scriptRunState){if(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING)try{measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING)}catch{}this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}}componentWillUnmount(){this.connectionManager?.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}maybeShowErrorDialog(i,t){const{blockErrorDialogs:e}=this.state.appConfig;e||this.openDialog(i);const d=i.type===DialogType.SCRIPT_COMPILE_ERROR?i.type:i.title;this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR_DIALOG",error:d,message:t})}showError(i,t,e=DialogType.WARNING){LOG.error(t.message);const o={type:e,title:i,msg:jsx$1(DialogErrorMessage$1,{message:t.message,codeBlock:t.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(o,t.message)}hasStreamlitVersionChanged(i){let t;if(StreamlitConfig.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?t=define_PACKAGE_METADATA_default.version:this.sessionInfo.isSet&&(t=this.sessionInfo.current.streamlitVersion),t){const{environmentInfo:e}=i;if(notNullOrUndefined(e)&¬NullOrUndefined(e.streamlitVersion))return t!=e.streamlitVersion}return!1}maybeSetState(i){if(i){const[t,e]=i;this.setState(t,e)}}processThemeInput(i){const t=this.createThemeHash(i);if(t===this.state.themeHash)return;this.setState({themeHash:t});const e=!isPresetTheme(this.props.theme.activeTheme);if(i){const o=createCustomThemes(i);this.props.theme.addThemes(o,{keepPresetThemes:!1});const d=getPreferredTheme(o);if(d)this.setAndSendTheme(d);else if(o.length>1){const p=o.findIndex(h=>h.name===CUSTOM_THEME_AUTO_NAME);this.setAndSendTheme(o[p])}else this.setAndSendTheme(o[0])}else if(this.props.theme.addThemes([]),e){const d=getPreferredTheme([lightTheme,darkTheme]);d?this.setAndSendTheme(d):this.setAndSendTheme(createAutoTheme())}(i?.fontFaces&&i.fontFaces.length>0||i?.fontSources&&i.fontSources.length>0)&&this.props.theme.setFonts(i)}handleScriptFinished(i){(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&(Promise.resolve().then(()=>{this.state.scriptFinishedHandlers.forEach(t=>t())}),(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:t,fragmentIdsThisRun:e,elements:o})=>({elements:o.clearStaleNodes(t,e)}),()=>{const t=new Set(Array.from(this.state.elements.getElements()).map(e=>getElementId(e)).filter(notUndefined));this.widgetMgr.removeInactive(t)}),this.connectionManager!==null&&i!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.hasReceivedNewSession&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge,this.state.fragmentIdsThisRun))}clearAppState(i,t,e,o){this.setState(d=>{const p=this.appNavigation.clearPageElements(d.elements,o);return{scriptRunId:t,scriptName:e,appHash:i,elements:p}},()=>{const d=new Set(Array.from(this.state.elements.getElements()).map(p=>getElementId(p)).filter(notUndefined));this.widgetMgr.removeInactive(d)})}openDialog(i){this.setState({dialog:i})}render(){const{allowRunOnSave:i,connectionState:t,dialog:e,elements:o,initialSidebarState:d,menuItems:p,isFullScreen:h,scriptRunId:y,scriptRunState:E,userSettings:$,hideTopBar:M,hideSidebarNav:X,exp
141andSidebarNav:Z,currentPageScriptHash:ye,hostHideSidebarNav:be,pageLinkBaseUrl:we,sidebarChevronDownshift:xe,hostMenuItems:$e,hostToolbarItems:Ne,libConfig:Fe,inputsDisabled:De,appPages:Le,navSections:He,navigationPosition:Ke,scriptChangedOnDisk:je}=this.state,Ve=this.props.isMobileViewport?Navigation.Position.SIDEBAR:Ke,qe=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),Ye=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":$.wideMode}),et=e?StreamlitDialog({...e,onClose:this.closeDialog}):null,Qe=this.shouldShowToolbar($e,Ne),ze=!isEmbed()||isPaddingDisplayed(),st=isScrollingHidden();return jsx$1(StreamlitContextProvider$1,{initialSidebarState:d,initialSidebarWidth:this.state.initialSidebarWidth,appRootRef:this.appRootRef,pageLinkBaseUrl:we,currentPageScriptHash:ye,onPageChange:this.onPageChange,navSections:He,appPages:Le,appLogo:o.logo,sidebarChevronDownshift:xe,expandSidebarNav:Z,hideSidebarNav:X||be||Ve===Navigation.Position.TOP,isFullScreen:h,setFullScreen:this.handleFullScreen,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language,formsData:this.state.formsData,scriptRunState:E,scriptRunId:y,mapboxToken:Fe.mapboxToken,enforceDownloadInNewTab:Fe.enforceDownloadInNewTab,resourceCrossOriginMode:Fe.resourceCrossOriginMode,showErrorLinks:this.state.showErrorLinks,requestDeferredFile:this.requestDeferredFile,children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{ref:this.appRootRef,className:Ye,"data-testid":"stApp","data-test-script-state":y==INITIAL_SCRIPT_RUN_ID?"initial":E,"data-test-connection-state":t,children:[jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:o,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:Ve,wideMode:$.wideMode,embedded:isEmbed(),showPadding:ze,disableScrolling:st,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:De||t!==ConnectionState.CONNECTED,showToolbar:Qe,disableFullscreenMode:Fe.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:jsxs(Fragment,{children:[!M&&jsx$1(StatusWidget,{connectionState:t,scriptRunState:E,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:i,showScriptChangedActions:je}),!M&&jsx$1(ToolbarActions,{hostToolbarItems:Ne,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!je&&jsx$1(DeployButton,{onClick:this.deployButtonClicked}),!M&&jsx$1(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:$e,developmentMode:qe,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:p,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode,runOnSave:this.state.userSettings.runOnSave,onRunOnSaveChange:this.handleRunOnSaveChange,allowRunOnSave:i&&qe,streamlitVersion:this.sessionInfo.isSet?this.sessionInfo.current.streamlitVersion:void 0})]})}),et]})})})}}const AppWithScreenCast=withScreencast(App),AppWrapper=n=>{const{isMobile:i}=useViewportSize();return jsx$1(AppWithScreenCast,{...n,isMobileViewport:i})},getSystemCustomTheme=n=>n.find(i=>i.name===(getSystemThemePreference()==="dark"?CUSTOM_THEME_DARK_NAME:CUSTOM_THEME_LIGHT_NAME)),createAutoCustomTheme=n=>({...n,name:CUSTOM_THEME_AUTO_NAME,displayName:AUTO_THEME_NAME});function useThemeManager(){const n=getDefaultTheme(),[i,t]=reactExports.useState(n),[e,o]=reactExports.useState(n.themeInput?.fontFaces??[]),[d,p]=reactExports.useState(null),[h,y]=reactExports.useState(()=>[...createPresetThemes(),...isPresetTheme(n)?[]:[n]]),E=reactExports.useRef(h);reactExports.useEffect(()=>{E.current=h},[h]);const $=reactExports.useCallback((we,xe={})=>{const{keepPresetThemes:$e=!0}=xe,Ne=[...$e?createPresetThemes():[],...we];E.current=Ne,y(Ne)},[]),M=reactExports.useCallback((we,xe={})=>{const{persist:$e=!0}=xe;t(Ne=>we!==Ne?($e&&setCachedThemeSelection(we),we):Ne)},[]),X=reactExports.useCallback(we=>{if(we.name===AUTO_THEME_NAME){M(getHostSpecifiedTheme());return}if(we.name===CUSTOM_THEME_AUTO_NAME){const xe=getSystemCustomTheme(E.current);if(xe){M(createAutoCustomTheme(xe));return}}M(we)},[M]),Z=reactExports.useCallback(()=>{const we=getHostSpecifiedTheme();i.name===AUTO_THEME_NAME&&M(we,{persist:!1});const xe=h.filter(Ne=>Ne.name!==AUTO_THEME_NAME),$e=xe.some(Ne=>Ne.name===CUSTOM_THEME_AUTO_NAME);if($e&&i.name===CUSTOM_THEME_AUTO_NAME){const Ne=getSystemCustomTheme(xe);Ne&&M(createAutoCustomTheme(Ne),{persist:!1})}y($e?xe:[createAutoTheme(),...xe])},[i.name,h,M]),ye=reactExports.useCallback(we=>{we.fontFaces&&o(we.fontFaces);const xe=[...we.fontSources||[],...we.sidebar?.fontSources||[]],$e={};xe.forEach(Ne=>{Ne.sourceUrl&&Ne.configName&&($e[Ne.configName]=Ne.sourceUrl)}),p(Object.keys($e).length>0?$e:null)},[]),be=reactExports.useCallback(we=>{ye(we);const xe=new CustomThemeConfig(we),$e=createTheme(CUSTOM_THEME_NAME,xe);X($e)},[ye,X]);return reactExports.useEffect(()=>{const we=window.matchMedia("(prefers-color-scheme: dark)");return we.addEventListener("change",Z),window.addEventListener("afterprint",Z),()=>{window.removeEventListener("afterprint",Z),we.removeEventListener("change",Z)}}
141,[Z]),[{setTheme:X,activeTheme:i,addThemes:$,availableThemes:h,setFonts:ye,setImportedTheme:be},e,d]}const ThemedApp=({streamlitExecutionStartedAt:n})=>{const[i,t,e]=useThemeManager(),{activeTheme:o}=i;return jsx$1(RootStyleProvider,{theme:o,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[t.length>0&&jsx$1(FontFaceDeclaration,{fontFaces:t}),e&&jsx$1(FontSources,{fontSources:e}),jsx$1(AppWrapper,{theme:i,streamlitExecutionStartedAt:n})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"}),rootDomNode=document.getElementById("root");if(!rootDomNode)throw new Error("#root DOM element not found");const reactRoot=clientExports.createRoot(rootDomNode);reactRoot.render(jsx$1(reactExports.StrictMode,{children:jsx$1(HelmetProvider,{children:jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})})})}));export{DynamicIcon as $,DownloadContext as A,BaseButtonKind as B,Checkbox$1 as C,DynamicButtonLabel as D,EmotionIconBase as E,Fragment as F,useTimeout as G,StyledErrorMessage as H,toString$2 as I,findAndReplace as J,Table$2 as K,LabelVisibilityOptions as L,StyledStreamlitMarkdown as M,range as N,convertRemToPx as O,Placement as P,isNumericType as Q,DataFrameCellType as R,StreamlitConfig as S,TooltipIcon as T,useCrossOriginAttribute as U,loglevelExports as V,useRequiredContext as W,StyledToolbarElementContainer as X,Toolbar as Y,NavigationContext as Z,_extends$k as _,BaseButtonTooltip as a,ComponentRegistry as a$,toaster as a0,Kind as a1,AlertElement$1 as a2,Video$1 as a3,keyframes as a4,isFromMac as a5,useStyletron as a6,mergeOverride as a7,toObjectOverride as a8,Icon$1 as a9,mergeOverrides as aA,PLACEMENT$1 as aB,Icon$2 as aC,Tooltip$1 as aD,useScrollbarGutterSize as aE,useWindowDimensionsContext as aF,React as aG,find as aH,parse$2 as aI,parse$3 as aJ,normalize$1 as aK,html$2 as aL,svg as aM,useCopyToClipboard as aN,ACCESSIBILITY_TYPE as aO,Popover$2 as aP,ErrorElement as aQ,ensureError as aR,hexToRgb as aS,withWrapper as aT,__vitePreload as aU,blend as aV,toExportedTheme as aW,ArrowDataframe as aX,Skeleton$1 as aY,Skeleton as aZ,queryString as a_,isPropValid as aa,shouldWidthStretch as ab,Feedback$1 as ac,FormsContext as ad,StyledFormSubmitContent as ae,Form$1 as af,IsSidebarContext as ag,useExecuteWhenChanged as ah,getPopoverContainerStyle as ai,getBorderColor as aj,isInForm as ak,isMaterialIcon as al,TextInput$1 as am,getDefaultExportFromCjs as an,darken as ao,PortalContext as ap,reactDomExports as aq,classNames as ar,requireReact as as,styled$1 as at,isFocusVisible as au,getOverride as av,getOverrideProps as aw,root$4 as ax,toNumber as ay,isObject$1 as az,BaseButton as b,arrayComparator as b$,SetCache as b0,cacheHas as b1,baseRest as b2,isArrayLikeObject as b3,Metric$1 as b4,transparentize as b5,Global as b6,getCrossOriginAttribute as b7,_arrayLikeToArray as b8,_unsupportedIterableToArray as b9,getIncreasingGreen as bA,getDecreasingRed as bB,getBlue80 as bC,getGray30 as bD,getGray70 as bE,getGray90 as bF,keysToSnakeCase as bG,PlotlyChart$1 as bH,themeColors as bI,isMobile as bJ,UploadedFileInfo as bK,FileUploaderState as bL,isSymbol as bM,arrayMap as bN,isArray$1 as bO,baseGet as bP,identity as bQ,baseUnary as bR,baseIteratee as bS,isIterateeCall as bT,baseFlatten as bU,StyledWrapper as bV,StyledEllipsizedDiv as bW,_inheritsLoose as bX,_assertThisInitialized as bY,getSelectPlaceholder as bZ,ThemeContext$1 as b_,ViewStateContext as ba,LocaleContext as bb,LabelVisibility as bc,ButtonGroup$1 as bd,StyledButtonGroup as be,NumberInput$1 as bf,forkBlur as bg,forkFocus as bh,addCssUnit as bi,convert as bj,visitParents as bk,SKIP as bl,isNamedColor as bm,resolveNamedColor as bn,isDatetimeType as bo,isDateType as bp,getTimezone as bq,debounce$1 as br,isEqual as bs,shouldHeightStretch as bt,ToolbarAction as bu,__awaiter as bv,PropTypes as bw,isFromWindows as bx,requirePropTypes as by,merge$1 as bz,BaseButtonSize as c,StatefulPopover as c$,pick$1 as c0,Slider$1 as c1,ChevronLeft as c2,ChevronRight as c3,zip as c4,baseSlice as c5,baseToString as c6,trimmedEndIndex as c7,util_bn_ as c8,util_int_ as c9,withStyle as cA,requireReactIs$1 as cB,tableFromIPC as cC,assertNever as cD,v4 as cE,AcceptFileValue as cF,chatInputAcceptFileProtoValueToEnum as cG,requireReactDom as cH,UIDConsumer as cI,ok as cJ,stringify$2 as cK,stringify$1 as cL,pointStart as cM,visit as cN,pointEnd as cO,structuredClone$1 as cP,useUIDSeed as cQ,ellipsisText as cR,StyledSpinner as cS,colors$3 as cT,DeleteIcon as cU,arrayEach as cV,baseForOwn as cW,isObjectLike as cX,baseGetTag as cY,isPlainObject$3 as cZ,cloneDeep$1 as c_,util_bit_ as ca,util_math_ as cb,util_buffer_ as cc,util_vector_ as cd,util_pretty_ as ce,util_interval_ as cf,compareTypes as cg,compareFields as ch,compareSchemas as ci,getAugmentedNamespace as cj,isStringType as ck,isTimeType as cl,isPeriodType as cm,isIntervalType as cn,isDurationType as co,isDecimalType as cp,isFloatType as cq,isObjectType as cr,isListType as cs,TimeUnit as ct,Struct as cu,ThemeProvider$1 as cv,createThemedStyled as cw,createThemedUseStyletron as cx,createThemedWithStyle as cy,expandBorderStyles as cz,Box as d,_typeof$8 as d0,_inherits as d1,_createSuper as d2,_classCallCheck as d3,_defineProperty$h as d4,_createClass as d5,mergeWith as d6,parseEntities as d7,StyledPre as d8,CodeBlockCopyToolbar$1 as d9,css as dA,parseIconPackEntry as dB,genericFonts as dC,resolveNamedBackgroun
141dColor as dD,isUnsignedIntegerType as dE,isIntegerType as dF,isBooleanType as dG,Field as dH,Null as dI,isRangeIndexType as dJ,isEmptyType as dK,isBytesType as dL,isCategoricalType as dM,fontSizes as dN,Dataframe as dO,lighten as dP,mix as dQ,TRIGGER_TYPE as dR,StyledTooltipContentWrapper as dS,FlexContext as dT,Resizable as dU,StyledCodeBlock as da,propTypesExports as db,_slicedToArray as dc,index as dd,_getPrototypeOf as de,_possibleConstructorReturn as df,parseToRgba as dg,DeckGlJsonChart$1 as dh,hasPath as di,isBuffer as dj,isTypedArray as dk,isArguments as dl,getTag as dm,isPrototype as dn,baseKeys as dp,Set$1 as dq,setToArray as dr,requireClassnames as ds,groupBy as dt,flatten as du,Vector as dv,getLuminance as dw,_objectWithoutProperties$2 as dx,_objectSpread2 as dy,jsx as dz,isNullOrUndefined$1 as e,styled as f,getHelpTooltipAriaLabel as g,jsxs as h,isValidFormId as i,jsx$1 as j,StreamlitMarkdown$1 as k,hoistNonReactStatics as l,useCalculatedDimensions as m,notNullOrUndefined as n,useEmotionTheme as o,hasLightBackgroun
141dColor as p,labelVisibilityProtoValueToEnum as q,reactExports as r,streamlit as s,StyledContent as t,useRegisterShortcut as u,StyledCheckbox as v,isArrayLike as w,baseEach as x,getOverrides as y,LibConfigContext as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.