vendor: 4,098 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.DBIRzFM7.js","./index.bsVAaBS1.js","./index.DYkkO_of.js","./index.BU3d_gp1.js","./index.1PD6f3vh.js","./index.FfR9SXQv.js","./StreamlitSyntaxHighlighter.DUPp9dS3.js","./index.CZzy-Gct.js","./pandasStylerUtils.DsNlDEqS.js","./moment.C7qA8nIE.js","./numbro.B9_PXfzp.js","./_baseIndexOf.BTknn6Gb.js","./index.By8GIgDH.js","./withFullScreenWrapper.Dl2f8_gt.js","./Toolbar.BbO8bxwz.js","./index.BGgra9Bb.js","./FormClearHelper.CUrwwEeX.js","./index.8HslT92O.js","./main.BeiYkHRo.js","./throttle.DOaQWO4U.js","./formatNumber.CfuUiEpF.js","./sprintf.DpPCfzXw.js","./formatMoment.C6Hwn6X5.js","./checkbox.C0HE0ojW.js","./createDownloadLinkElement.DBMfH8_e.js","./toConsumableArray.DFAIugL0.js","./FileDownload.esm.Cym2KVOR.js","./_arrayIncludes.B19Iyn2B.js","../css/index.DgR7E2CV.css","./embed.DQBlGL9Q.js","./threshold.CUNQbqMA.js","./value.DaKxGC7O.js","./timer.BZio6gjG.js","./TableChart.esm.C_g2CvCE.js","./index.gPUFpUqs.js","./Particles.D5ZUTvE6.js","./index.DpU0Bc2F.js","./useBasicWidgetState.CTtyymrp.js","../css/index.BuwrT-ty.css","./index.DSaE74nc.js","./index.95DldRtG.js","./IFrameUtil.DefezniK.js","./index.BDA5l7b9.js","./index.DZGCJu4I.js","./index.BNpEDrb2.js","./iconPosition.BVSTKfGd.js","./index.Tq2okoAU.js","./WidgetLabelHelpIconInline.Dy4yV6I2.js","./index.BgCYNmov.js","./index.Z0mB4zBp.js","./index.BXfSsjdq.js","./ProgressBar.qKdiDYyx.js","./index.NtSfVVJe.js","./index.BMFt07G_.js","./useWaveformController.DozaayUB.js","./urls.BwSlolu9.js","./index.CWAvu1Qu.js","./index.iboGgrkh.js","./index.CeFdbzfR.js","./withCalculatedWidth.SNNFFxhJ.js","./index.BGzJYcHz.js","./UploadFileInfo.Dr-zDST7.js","./index.5CsPRetw.js","./FileHelper.C47VLeXF.js","./InputInstructions.DyVOE42q.js","./useTextInputAutoExpand.Cnfcep1Z.js","./base-input.DQAb60v0.js","./inputUtils.CptNuJwn.js","./ErrorOutline.esm.Cxoit62D.js","./index.C8VoW8Ph.js","./index.nEa8y_He.js","./index.DgJeIFb5.js","./useIntlLocale.DG5haQGX.js","./timepicker.RjHB2IT4.js","./input.Pz8Lwzsi.js","./index.CTQ8QcOV.js","./styled-components.DcoFBb7G.js","./index.C9QftD-S.js","./index.Bk5wGJXh.js","./index.CAMxgVFm.js","./index.D0tXFTaW.js","./index.Cow0Hs9V.js","./uniqueId.DEvFPH9n.js","./index.CsmTnJl4.js","./index.DtZTtufl.js","./index.svncz-Ad.js","./index.DysJZEAt.js","./useUpdateUiValue.BWnXwmrp.js","./index.7S_sCSRx.js","./index.BiVJWMS-.js"])))=>i.map(i=>d[i]); 2function _mergeNamespaces(n,i){for(var e=0;e<i.length;e++){const t=i[e];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(t,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>t[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"]'))t(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"&&t(p)}).observe(document,{childList:!0,subtree:!0});function e(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 t(o){if(o.ep)return;o.ep=!0;const d=e(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 e=function t(){var o=!1;try{o=this instanceof t}catch{}return o?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};e.prototype=i.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}
vendor: 5,073 bytes, line 2
2),Object.keys(n).forEach(function(t){var o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:function(){return n[t]}})}),e}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"),e=Symbol.for("react.fragment"),t=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"),$=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),M=Symbol.iterator;function H(qe){return qe===null||typeof qe!="object"?null:(qe=M&&qe[M]||qe["@@iterator"],typeof qe=="function"?qe:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},be=Object.assign,ye={};function we(qe,rt,He){this.props=qe,this.context=rt,this.refs=ye,this.updater=He||Z}we.prototype.isReactComponent={},we.prototype.setState=function(qe,rt){if(typeof qe!="object"&&typeof qe!="function"&&qe!=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,qe,rt,"setState")},we.prototype.forceUpdate=function(qe){this.updater.enqueueForceUpdate(this,qe,"forceUpdate")};function xe(){}xe.prototype=we.prototype;function Ce(qe,rt,He){this.props=qe,this.context=rt,this.refs=ye,this.updater=He||Z}var Ne=Ce.prototype=new xe;Ne.constructor=Ce,be(Ne,we.prototype),Ne.isPureReactComponent=!0;var Fe=Array.isArray,Me=Object.prototype.hasOwnProperty,Le={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function Ke(qe,rt,He){var Ot,Ct={},tt=null,wt=null;if(rt!=null)for(Ot in rt.ref!==void 0&&(wt=rt.ref),rt.key!==void 0&&(tt=""+rt.key),rt)Me.call(rt,Ot)&&!ze.hasOwnProperty(Ot)&&(Ct[Ot]=rt[Ot]);var gt=arguments.length-2;if(gt===1)Ct.children=He;else if(1<gt){for(var $t=Array(gt),Mt=0;Mt<gt;Mt++)$t[Mt]=arguments[Mt+2];Ct.children=$t}if(qe&&qe.defaultProps)for(Ot in gt=qe.defaultProps,gt)Ct[Ot]===void 0&&(Ct[Ot]=gt[Ot]);return{$$typeof:n,type:qe,key:tt,ref:wt,props:Ct,_owner:Le.current}}function Ve(qe,rt){return{$$typeof:n,type:qe.type,key:rt,ref:qe.ref,props:qe.props,_owner:qe._owner}}function je(qe){return typeof qe=="object"&&qe!==null&&qe.$$typeof===n}function We(qe){var rt={"=":"=0",":":"=2"};return"$"+qe.replace(/[=:]/g,function(He){return rt[He]})}var Xe=/\/+/g;function Qe(qe,rt){return typeof qe=="object"&&qe!==null&&qe.key!=null?We(""+qe.key):rt.toString(36)}function Ye(qe,rt,He,Ot,Ct){var tt=typeof qe;(tt==="undefined"||tt==="boolean")&&(qe=null);var wt=!1;if(qe===null)wt=!0;else switch(tt){case"string":case"number":wt=!0;break;case"object":switch(qe.$$typeof){case n:case i:wt=!0}}if(wt)return wt=qe,Ct=Ct(wt),qe=Ot===""?"."+Qe(wt,0):Ot,Fe(Ct)?(He="",qe!=null&&(He=qe.replace(Xe,"$&/")+"/"),Ye(Ct,rt,He,"",function(Mt){return Mt})):Ct!=null&&(je(Ct)&&(Ct=Ve(Ct,He+(!Ct.key||wt&&wt.key===Ct.key?"":(""+Ct.key).replace(Xe,"$&/")+"/")+qe)),rt.push(Ct)),1;if(wt=0,Ot=Ot===""?".":Ot+":",Fe(qe))for(var gt=0;gt<qe.length;gt++){tt=qe[gt];var $t=Ot+Qe(tt,gt);wt+=Ye(tt,rt,He,$t,Ct)}else if($t=H(qe),typeof $t=="function")for(qe=$t.call(qe),gt=0;!(tt=qe.next()).done;)tt=tt.value,$t=Ot+Qe(tt,gt++),wt+=Ye(tt,rt,He,$t,Ct);else if(tt==="object")throw rt=String(qe),Error("Objects are not valid as a React child (found: "+(rt==="[object Object]"?"object with keys {"+Object.keys(qe).join(", ")+"}":rt)+"). If you meant to render a collection of children, use an array instead.");return wt}function Ue(qe,rt,He){if(qe==null)return qe;var Ot=[],Ct=0;return Ye(qe,Ot,"","",function(tt){return rt.call(He,tt,Ct++)}),Ot}function ot(qe){if(qe._status===-1){var rt=qe._result;rt=rt(),rt.then(function(He){(qe._status===0||qe._status===-1)&&(qe._status=1,qe._result=He)},function(He){(qe._status===0||qe._status===-1)&&(qe._status=2,qe._result=He)}),qe._status===-1&&(qe._status=0,qe._result=rt)}if(qe._status===1)return qe._result.default;throw qe._result}var dt={current:null},st={transition:null},pt={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:st,ReactCurrentOwner:Le};function Be(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:Ue,forEach:function(qe,rt,He){Ue(qe,function(){rt.apply(this,arguments)},He)},count:function(qe){var rt=0;return Ue(qe,function(){rt++}),rt},toArray:function(qe){return Ue(qe,function(rt){return rt})||[]},only:function(qe){if(!je(qe))throw Error("React.Children.only expected to receive a single React element child.");return qe}},react_production_min.Component=we,react_production_min.Fragment=e,react_production_min.Profiler=o,react_production_min.PureComponent=Ce,react_production_min.StrictMode=t,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(qe,rt,He){if(qe==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+qe+".");var Ot=be({},qe.props),Ct=qe.key,tt=qe.ref,wt=qe._owner;if(rt!=null){if(rt.ref!==void 0&&(tt=rt.ref,wt=Le.current),rt.key!==void 0&&(Ct=""+rt.key),qe.type&&qe.type.defaultProps)var gt=qe.type.defaultProps;for($t in rt)Me.call(rt,$t)&&!ze.hasOwnProperty($t)&&(Ot[$t]=rt[$t]===void 0&>!==void 0?gt[$t]:rt[$t])}var $t=arguments.length-2;if($t===1)Ot.children=He;else if(1<$t){gt=Array($t);for(var Mt=0;Mt<$t;Mt++)gt[Mt]=arguments[Mt+2];Ot.children=gt}return{$$typeof:n,type:qe.type,key:Ct,ref:tt,props:Ot,_owner:wt}},react_production_min.createContext=function(qe){return qe={$$typeof:p,_currentValue:qe,_currentValue2:qe,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},qe.Provider={$$typeof:d,_context:qe},qe.Consumer=qe},react_production_min.createElement=Ke,react_production_min.createFactory=function(qe){var rt=Ke.bind(null,qe);return rt.type=qe,rt},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(qe){return{$$typeof:h,render:qe}},react_production_min.isValidElement=je,react_production_min.lazy=function(qe){return{$$typeof:E,_payload:{_status:-1,_result:qe},_init:ot}},react_production_min.memo=function(qe,rt){return{$$typeof:$,type:qe,compare:rt===void 0?null:rt}},react_production_min.startTransition=function(qe){var rt=st.transition;st.transition={};try{qe()}finally{st.transition=rt}},react_production_min.unstable_act=Be,react_production_min.useCallback=function(qe,rt){return dt.current.useCallback(qe,rt)},react_production_min.useContext=function(qe){return dt.current.useContext(qe)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(qe){return dt.current.useDeferredValue(qe)},react_production_min.useEffect=function(qe,rt){return dt.current.useEffect(qe,rt)},react_production_min.useId=function(){return dt.current.useId()},react_production_min.useImperativeHandle=function(qe,rt,He){return dt.current.useImperativeHandle(qe,rt,He)},react_production_min.useInsertionEffect=function(qe,rt){return dt.current.useInsertionEffect(qe,rt)},react_production_min.useLayoutEffect=function(qe,rt){return dt.current.useLayoutEffect(qe,rt)},react_production_min.useMemo=function(qe,rt){return dt.current.useMemo(qe,rt)},react_production_min.useReducer=function(qe,rt,He){return dt.current.useReducer(qe,rt,He)},react_production_min.useRef=function(qe){return dt.current.useRef(qe)},react_production_min.useState=function(qe){return dt.current.useState(qe)},react_production_min.useSyncExternalStore=function(qe,rt,He){return dt.current.useSyncExternalStore(qe,rt,He)},react_production_min.useTransition=function(){return dt.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"),e=Symbol.for("react.fragment"),t=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,$){var E,M={},H=null,Z=null;$!==void 0&&(H=""+$),y.key!==void 0&&(H=""+y.key),y.ref!==void 0&&(Z=y.ref);for(E in y)t.call(y,E)&&!d.hasOwnProperty(E)&&(M[E]=y[E]);if(h&&h.defaultProps)for(E in y=h.defaultProps,y)M[E]===void 0&&(M[E]=y[E]);return{$$typeof:i,type:h,key:H,ref:Z,props:M,_owner:o.current}}return reactJsxRuntime_production_min.Fragment=e,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(e){var t=this;this._insertTag=function(o){var d;t.tags.length===0?t.insertionPoint?d=t.insertionPoint.nextSibling:t.prepe
vendor: 4,499 bytes, line 2
2nd?d=t.container.firstChild:d=t.before:d=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(o,d),t.tags.push(o)},this.isSpeedy=e.speedy===void 0?!0:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var i=n.prototype;return i.hydrate=function(t){t.forEach(this._insertTag)},i.insert=function(t){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(t,d.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(t));this.ctr++},i.flush=function(){this.tags.forEach(function(t){var o;return(o=t.parentNode)==null?void 0:o.removeChild(t)}),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,e){return n.replace(i,e)}function indexof(n,i){return n.indexOf(i)}function charat(n,i){return n.charCodeAt(i)|0}function substr(n,i,e){return n.slice(i,e)}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,e,t,o,d,p){return{value:n,root:i,parent:e,type:t,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(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(n)>2||token(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(peek$1());)next();return slice(n,position$3)}function compile(n){return dealloc(parse$3("",null,null,null,[""],n=alloc(n),0,[0],n))}function parse$3(n,i,e,t,o,d,p,h,y){for(var $=0,E=0,M=p,H=0,Z=0,be=0,ye=1,we=1,xe=1,Ce=0,Ne="",Fe=o,Me=d,Le=t,ze=Ne;we;)switch(be=Ce,Ce=next()){case 40:if(be!=108&&charat(ze,M-1)==58){indexof(ze+=replace$1(delimit(Ce),"&","&\f"),"&\f")!=-1&&(xe=-1);break}case 34:case 39:case 91:ze+=delimit(Ce);break;case 9:case 10:case 13:case 32:ze+=whitespace$1(be);break;case 92:ze+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),i,e),y);break;default:ze+="/"}break;case 123*ye:h[$++]=strlen(ze)*xe;case 125*ye:case 59:case 0:switch(Ce){case 0:case 125:we=0;case 59+E:xe==-1&&(ze=replace$1(ze,/\f/g,"")),Z>0&&strlen(ze)-M&&append(Z>32?declaration(ze+";",t,e,M-1):declaration(replace$1(ze," ","")+";",t,e,M-2),y);break;case 59:ze+=";";default:if(append(Le=ruleset(ze,i,e,$,E,o,h,Ne,Fe=[],Me=[],M),d),Ce===123)if(E===0)parse$3(ze,i,Le,Le,Fe,d,M,h,Me);
vendor: 10,689 bytes, line 2
2else switch(H===99&&charat(ze,3)===110?100:H){case 100:case 108:case 109:case 115:parse$3(n,Le,Le,t&&append(ruleset(n,Le,Le,0,0,o,h,Ne,o,Fe=[],M),Me),o,Me,M,h,t?Fe:Me);break;default:parse$3(ze,Le,Le,Le,[""],Me,0,h,Me)}}$=E=Z=0,ye=xe=1,Ne=ze="",M=p;break;case 58:M=1+strlen(ze),Z=be;default:if(ye<1){if(Ce==123)--ye;else if(Ce==125&&ye++==0&&prev()==125)continue}switch(ze+=from(Ce),Ce*ye){case 38:xe=E>0?1:(ze+="\f",-1);break;case 44:h[$++]=(strlen(ze)-1)*xe,xe=1;break;case 64:peek$1()===45&&(ze+=delimit(next())),H=peek$1(),E=M=strlen(Ne=ze+=identifier(caret())),Ce++;break;case 45:be===45&&strlen(ze)==2&&(ye=0)}}return d}function ruleset(n,i,e,t,o,d,p,h,y,$,E){for(var M=o-1,H=o===0?d:[""],Z=sizeof(H),be=0,ye=0,we=0;be<t;++be)for(var xe=0,Ce=substr(n,M+1,M=abs(ye=p[be])),Ne=n;xe<Z;++xe)(Ne=trim(ye>0?H[xe]+" "+Ce:replace$1(Ce,/&\f/g,H[xe])))&&(y[we++]=Ne);return node$1(n,i,e,o===0?RULESET:h,y,$,E)}function comment(n,i,e){return node$1(n,i,e,COMMENT,from(char()),substr(n,2,-2),0)}function declaration(n,i,e,t){return node$1(n,i,e,DECLARATION,substr(n,0,t),substr(n,t+1,-1),t)}function serialize$2(n,i){for(var e="",t=sizeof(n),o=0;o<t;o++)e+=i(n[o],o,n,i)||"";return e}function stringify$2(n,i,e,t){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,t)+"}";case RULESET:n.value=n.props.join(",")}return strlen(e=serialize$2(n.children,t))?n.return=n.value+"{"+e+"}":""}function middleware(n){var i=sizeof(n);return function(e,t,o,d){for(var p="",h=0;h<i;h++)p+=n[h](e,t,o,d)||"";return p}}function rulesheet(n){return function(i){i.root||(i=i.return)&&n(i)}}var weakMemoize=function(i){var e=new WeakMap;return function(t){if(e.has(t))return e.get(t);var o=i(t);return e.set(t,o),o}};function memoize$1(n){var i=Object.create(null);return function(e){return i[e]===void 0&&(i[e]=n(e)),i[e]}}var identifierWithPointTracking=function(i,e,t){for(var o=0,d=0;o=d,d=peek$1(),o===38&&d===12&&(e[t]=1),!token(d);)next();return slice(i,position$3)},toRules=function(i,e){var t=-1,o=44;do switch(token(o)){case 0:o===38&&peek$1()===12&&(e[t]=1),i[t]+=identifierWithPointTracking(position$3-1,e,t);break;case 2:i[t]+=delimit(o);break;case 4:if(o===44){i[++t]=peek$1()===58?"&\f":"",e[t]=i[t].length;break}default:i[t]+=from(o)}while(o=next());return i},getRules=function(i,e){return dealloc(toRules(alloc(i),e))},fixedElements=new WeakMap,compat=function(i){if(!(i.type!=="rule"||!i.parent||i.length<1)){for(var e=i.value,t=i.parent,o=i.column===t.column&&i.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(i.props.length===1&&e.charCodeAt(0)!==58&&!fixedElements.get(t))&&!o){fixedElements.set(i,!0);for(var d=[],p=getRules(e,d),h=t.props,y=0,$=0;y<p.length;y++)for(var E=0;E<h.length;E++,$++)i.props[$]=d[y]?p[y].replace(/&\f/g,h[E]):h[E]+" "+p[y]}}},removeLabel=function(i){if(i.type==="decl"){var e=i.value;e.charCodeAt(0)===108&&e.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,e,t,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 e=i.key;if(e==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(ye){var we=ye.getAttribute("data-emotion");we.indexOf(" ")!==-1&&(document.head.appendChild(ye),ye.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^="'+e+' "]'),function(ye){for(var we=ye.getAttribute("data-emotion").split(" "),xe=1;xe<we.length;xe++)d[we[xe]]=!0;h.push(ye)});var y,$=[compat,removeLabel];{var E,M=[stringify$2,rulesheet(function(ye){E.insert(ye)})],H=middleware($.concat(o,M)),Z=function(we){return serialize$2(compile(we),H)};y=function(we,xe,Ce,Ne){E=Ce,Z(we?we+"{"+xe.styles+"}":xe.styles),Ne&&(be.inserted[xe.name]=!0)}}var be={key:e,sheet:new StyleSheet({key:e,container:p,nonce:i.nonce,speedy:i.speedy,prepend:i.prepend,insertionPoint:i.insertionPoint}),nonce:i.nonce,inserted:d,registered:{},insert:y};return be.sheet.hydrate(h),be};function _extends$A(){return _extends$A=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$A.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,e=n?Symbol.for("react.portal"):60106,t=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,$=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,M=n?Symbol.for("react.suspense"):60113,H=n?Symbol.for("react.suspense_list"):60120,Z=n?Symbol.for("react.memo"):60115,be=n?Symbol.for("react.lazy"):60116,ye=n?Symbol.for("react.block"):60121,we=n?Symbol.for("react.fundamental"):60117,xe=n?Symbol.for("react.responder"):60118,Ce=n?Symbol.for("react.scope"):60119;function Ne(Me){if(typeof Me=="object"&&Me!==null){var Le=Me.$$typeof;switch(Le){case i:switch(Me=Me.type,Me){case y:case $:case t:case d:case o:case M:return Me;default:switch(Me=Me&&Me.$$typeof,Me){case h:case E:case be:case Z:case p:return Me;default:return Le}}case e:return Le}}}function Fe(Me){return Ne(Me)===$}return reactIs_production_min$1.AsyncMode=y,reactIs_production_min$1.ConcurrentMode=$,reactIs_production_min$1.ContextConsumer=h,reactIs_production_min$1.ContextProvider=p,reactIs_production_min$1.Element=i,reactIs_production_min$1.ForwardRef=E,reactIs_production_min$1.Fragment=t,reactIs_production_min$1.Lazy=be,reactIs_production_min$1.Memo=Z,reactIs_production_min$1.Portal=e,reactIs_production_min$1.Profiler=d,reactIs_production_min$1.StrictMode=o,reactIs_production_min$1.Suspense=M,reactIs_production_min$1.isAsyncMode=function(Me){return Fe(Me)||Ne(Me)===y},reactIs_production_min$1.isConcurrentMode=Fe,reactIs_production_min$1.isContextConsumer=function(Me){return Ne(Me)===h},reactIs_production_min$1.isContextProvider=function(Me){return Ne(Me)===p},reactIs_production_min$1.isElement=function(Me){return typeof Me=="object"&&Me!==null&&Me.$$typeof===i},reactIs_production_min$1.isForwardRef=function(Me){return Ne(Me)===E},reactIs_production_min$1.isFragment=function(Me){return Ne(Me)===t},reactIs_production_min$1.isLazy=function(Me){return Ne(Me)===be},reactIs_production_min$1.isMemo=function(Me){return Ne(Me)===Z},reactIs_production_min$1.isPortal=function(Me){return Ne(Me)===e},reactIs_production_min$1.isProfiler=function(Me){return Ne(Me)===d},reactIs_production_min$1.isStrictMode=function(Me){return Ne(Me)===o},reactIs_production_min$1.isSuspense=function(Me){return Ne(Me)===M},reactIs_production_min$1.isValidElementType=function(Me){return typeof Me=="string"||typeof Me=="function"||Me===t||Me===$||Me===d||Me===o||Me===M||Me===H||typeof Me=="object"&&Me!==null&&(Me.$$typeof===be||Me.$$typeof===Z||Me.$$typeof===p||Me.$$typeof===h||Me.$$typeof===E||Me.$$typeof===we||Me.$$typeof===xe||Me.$$typeof===Ce||Me.$$typeof===ye)},reactIs_production_min$1.typeOf=Ne,reactIs_production_min$1}var hasRequiredReactIs$1;
vendor: 6,962 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},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$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]=t,d[n.Memo]=o;function p(be){return n.isMemo(be)?o:d[be.$$typeof]||i}var h=Object.defineProperty,y=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,H=Object.prototype;function Z(be,ye,we){if(typeof ye!="string"){if(H){var xe=M(ye);xe&&xe!==H&&Z(be,xe,we)}var Ce=y(ye);$&&(Ce=Ce.concat($(ye)));for(var Ne=p(be),Fe=p(ye),Me=0;Me<Ce.length;++Me){var Le=Ce[Me];if(!e[Le]&&!(we&&we[Le])&&!(Fe&&Fe[Le])&&!(Ne&&Ne[Le])){var ze=E(ye,Le);try{h(be,Le,ze)}catch{}}}}return be}return hoistNonReactStatics_cjs=Z,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var isBrowser$2=!0;function getRegisteredStyles(n,i,e){var t="";return e.split(" ").forEach(function(o){n[o]!==void 0?i.push(n[o]+";"):o&&(t+=o+" ")}),t}var registerStyles=function(i,e,t){var o=i.key+"-"+e.name;(t===!1||isBrowser$2===!1)&&i.registered[o]===void 0&&(i.registered[o]=e.styles)},insertStyles=function(i,e,t){registerStyles(i,e,t);var o=i.key+"-"+e.name;if(i.inserted[e.name]===void 0){var d=e;do i.insert(e===d?"."+o:"",d,i.sheet,!0),d=d.next;while(d!==void 0)}};function murmur2(n){for(var i=0,e,t=0,o=n.length;o>=4;++t,o-=4)e=n.charCodeAt(t)&255|(n.charCodeAt(++t)&255)<<8|(n.charCodeAt(++t)&255)<<16|(n.charCodeAt(++t)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,i=(e&65535)*1540483477+((e>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(o){case 3:i^=(n.charCodeAt(t+2)&255)<<16;case 2:i^=(n.charCodeAt(t+1)&255)<<8;case 1:i^=n.charCodeAt(t)&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,e){switch(i){case"animation":case"animationName":if(typeof e=="string")return e.replace(animationRegex,function(t,o,d){return cursor$1={name:o,styles:d,next:cursor$1},o})}return unitlessKeys[i]!==1&&!isCustomProperty(i)&&typeof e=="number"&&e!==0?e+"px":e};function handleInterpolation(n,i,e){if(e==null)return"";var t=e;if(t.__emotion_styles!==void 0)return t;switch(typeof e){case"boolean":return"";case"object":{var o=e;if(o.anim===1)return cursor$1={name:o.name,styles:o.styles,next:cursor$1},o.name;var d=e;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,e)}case"function":{if(n!==void 0){var y=cursor$1,$=e(n);return cursor$1=y,handleInterpolation(n,i,$)}break}}var E=e;if(i==null)return E;var M=i[E];return M!==void 0?M:E}function createStringFromObject(n,i,e){var t="";if(Array.isArray(e))for(var o=0;o<e.length;o++)t+=handleInterpolation(n,i,e[o])+";";else for(var d in e){var p=e[d];if(typeof p!="object"){var h=p;i!=null&&i[h]!==void 0?t+=d+"{"+i[h]+"}":isProcessableValue(h)&&(t+=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])&&(t+=processStyleName(d)+":"+processStyleValue(d,p[y])+";");else{var $=handleInterpolation(n,i,p);switch(d){case"animation":case"animationName":{t+=processStyleName(d)+":"+$+";";break}default:t+=d+"{"+$+"}"}}}return t}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor$1;function serializeStyles(n,i,e){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var t=!0,o="";cursor$1=void 0;var d=n[0];if(d==null||d.raw===void 0)t=!1,o+=handleInterpolation(e,i,d);else{var p=d;o+=p[0]}for(var h=1;h<n.length;h++)if(o+=handleInterpolation(e,i,n[h]),t){var y=d;o+=y[h]}labelPattern.lastIndex=0;for(var $="",E;(E=labelPattern.exec(o))!==null;)$+="-"+E[1];var M=murmur2(o)+$;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(e,t){var o=reactExports.useContext(EmotionCacheContext);return i(e,o,t)})},ThemeContext$2=reactExports.createContext({}),useTheme=function(){return reactExports.useContext(ThemeContext$2)},getTheme=function(i,e){if(typeof e=="function"){var t=e(i);return t}return _extends$A({},i,e)},createCacheWithTheme=weakMemoize(function(n){return weakMemoize(function(i){return getTheme(n,i)})}),ThemeProvider$2=function(i){var e=reactExports.useContext(ThemeContext$2);return i.theme!==e&&(e=createCacheWithTheme(e)(i.theme)),reactExports.createElement(ThemeContext$2.Provider,{value:e},i.children)},hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(i,e){var t={};for(var o in e)hasOwn.call(e,o)&&(t[o]=e[o]);return t[typePropName]=i,t}
2,Insertion$1=function(i){var e=i.cache,t=i.serialized,o=i.isStringTag;return registerStyles(e,t,o),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(e,t,o)}),null},Emotion=withEmotionCache(function(n,i,e){var t=n.css;typeof t=="string"&&i.registered[t]!==void 0&&(t=i.registered[t]);var o=n[typePropName],d=[t],p="";typeof 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 $ in n)hasOwn.call(n,$)&&$!=="css"&&$!==typePropName&&(y[$]=n[$]);return y.className=p,e&&(y.ref=e),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,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsx(Emotion$1,createEmotionProps(i,e),t):jsxRuntimeExports.jsx(i,e,t)},jsxs=function(i,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsxs(Emotion$1,createEmotionProps(i,e),t):jsxRuntimeExports.jsxs(i,e,t)},loglevel$1={exports:{}},loglevel=loglevel$1.exports,hasRequiredLoglevel;function requireLoglevel(){return hasRequiredLoglevel||(hasRequiredLoglevel=1,(function(n){(function(i,e){n.exports?n.exports=e():i.log=e()})(loglevel,function(){var i=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],d={},p=null;function h(ye,we){var xe=ye[we];if(typeof xe.bind=="function")return xe.bind(ye);try{return Function.prototype.bind.call(xe,ye)}catch{return function(){return Function.prototype.apply.apply(xe,[ye,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 $(ye){return ye==="debug"&&(ye="log"),typeof console===e?!1:ye==="trace"&&t?y:console[ye]!==void 0?h(console,ye):console.log!==void 0?h(console,"log"):i}function E(){for(var ye=this.getLevel(),we=0;we<o.length;we++){var xe=o[we];this[xe]=we<ye?i:this.methodFactory(xe,ye,this.name)}if(this.log=this.debug,typeof console===e&&ye<this.levels.SILENT)return"No console available for logging"}function M(ye){return function(){typeof console!==e&&(E.call(this),this[ye].apply(this,arguments))}}function H(ye,we,xe){return $(ye)||M.apply(this,arguments)}function Z(ye,we){var xe=this,Ce,Ne,Fe,Me="loglevel";typeof ye=="string"?Me+=":"+ye:typeof ye=="symbol"&&(Me=void 0);function Le(We){var Xe=(o[We]||"silent").toUpperCase();if(!(typeof window===e||!Me)){try{window.localStorage[Me]=Xe;return}catch{}try{window.document.cookie=encodeURIComponent(Me)+"="+Xe+";"}catch{}}}function ze(){var We;if(!(typeof window===e||!Me)){try{We=window.localStorage[Me]}catch{}if(typeof We===e)try{var Xe=window.document.cookie,Qe=encodeURIComponent(Me),Ye=Xe.indexOf(Qe+"=");Ye!==-1&&(We=/^([^;]+)/.exec(Xe.slice(Ye+Qe.length+1))[1])}catch{}return xe.levels[We]===void 0&&(We=void 0),We}}function Ke(){if(!(typeof window===e||!Me)){try{window.localStorage.removeItem(Me)}catch{}try{window.document.cookie=encodeURIComponent(Me)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function Ve(We){var Xe=We;if(typeof Xe=="string"&&xe.levels[Xe.toUpperCase()]!==void 0&&(Xe=xe.levels[Xe.toUpperCase()]),typeof Xe=="number"&&Xe>=0&&Xe<=xe.levels.SILENT)return Xe;throw new TypeError("log.setLevel() called with invalid level: "+We)}xe.name=ye,xe.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},xe.methodFactory=we||H,xe.getLevel=function(){return Fe??Ne??Ce},xe.setLevel=function(We,Xe){return Fe=Ve(We),Xe!==!1&&Le(Fe),E.call(xe)},xe.setDefaultLevel=function(We){Ne=Ve(We),ze()||xe.setLevel(We,!1)},xe.resetLevel=function(){Fe=null,Ke(),E.call(xe)},xe.enableAll=function(We){xe.setLevel(xe.levels.TRACE,We)},xe.disableAll=function(We){xe.setLevel(xe.levels.SILENT,We)},xe.rebuild=function(){if(p!==xe&&(Ce=Ve(p.getLevel())),E.call(xe),p===xe)for(var We in d)d[We].rebuild()},Ce=Ve(p?p.getLevel():"WARN");var je=ze();je!=null&&(Fe=Ve(je)),E.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: 2,590 bytes, line 2
2var xe=d[we];return xe||(xe=d[we]=new Z(we,p.methodFactory)),xe};var be=typeof window!==e?window.log:void 0;return p.noConflict=function(){return typeof window!==e&&window.log===p&&(window.log=be),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(st,pt){var Be=st.length;st.push(pt);e:for(;0<Be;){var qe=Be-1>>>1,rt=st[qe];if(0<o(rt,pt))st[qe]=pt,st[Be]=rt,Be=qe;else break e}}function e(st){return st.length===0?null:st[0]}function t(st){if(st.length===0)return null;var pt=st[0],Be=st.pop();if(Be!==pt){st[0]=Be;e:for(var qe=0,rt=st.length,He=rt>>>1;qe<He;){var Ot=2*(qe+1)-1,Ct=st[Ot],tt=Ot+1,wt=st[tt];if(0>o(Ct,Be))tt<rt&&0>o(wt,Ct)?(st[qe]=wt,st[tt]=Be,qe=tt):(st[qe]=Ct,st[Ot]=Be,qe=Ot);else if(tt<rt&&0>o(wt,Be))st[qe]=wt,st[tt]=Be,qe=tt;else break e}}return pt}function o(st,pt){var Be=st.sortIndex-pt.sortIndex;return Be!==0?Be:st.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,H=3,Z=!1,be=!1,ye=!1,we=typeof setTimeout=="function"?setTimeout:null,xe=typeof clearTimeout=="function"?clearTimeout:null,Ce=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(st){for(var pt=e($);pt!==null;){if(pt.callback===null)t($);else if(pt.startTime<=st)t($),pt.sortIndex=pt.expirationTime,i(y,pt);else break;pt=e($)}}function Fe(st){if(ye=!1,Ne(st),!be)if(e(y)!==null)be=!0,ot(Me);else{var pt=e($);pt!==null&&dt(Fe,pt.startTime-st)}}function Me(st,pt){be=!1,ye&&(ye=!1,xe(Ke),Ke=-1),Z=!0;var Be=H;try{for(Ne(pt),M=e(y);M!==null&&(!(M.expirationTime>pt)||st&&!We());){var qe=M.callback;if(typeof qe=="function"){M.callback=null,H=M.priorityLevel;var rt=qe(M.expirationTime<=pt);pt=n.unstable_now(),typeof rt=="function"?M.callback=rt:M===e(y)&&t(y),Ne(pt)}else t(y);M=e(y)}if(M!==null)var He=!0;else{var Ot=e($);Ot!==null&&dt(Fe,Ot.startTime-pt),He=!1}return He}finally{M=null,H=Be,Z=!1}}var Le=!1,ze=null,Ke=-1,Ve=5,je=-1;function We(){return!(n.unstable_now()-je<Ve)}
vendor: 24,735 bytes, lines 2-6
2function Xe(){if(ze!==null){var st=n.unstable_now();je=st;var pt=!0;try{pt=ze(!0,st)}finally{pt?Qe():(Le=!1,ze=null)}}else Le=!1}var Qe;if(typeof Ce=="function")Qe=function(){Ce(Xe)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,Ue=Ye.port2;Ye.port1.onmessage=Xe,Qe=function(){Ue.postMessage(null)}}else Qe=function(){we(Xe,0)};function ot(st){ze=st,Le||(Le=!0,Qe())}function dt(st,pt){Ke=we(function(){st(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(st){st.callback=null},n.unstable_continueExecution=function(){be||Z||(be=!0,ot(Me))},n.unstable_forceFrameRate=function(st){0>st||125<st?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ve=0<st?Math.floor(1e3/st):5},n.unstable_getCurrentPriorityLevel=function(){return H},n.unstable_getFirstCallbackNode=function(){return e(y)},n.unstable_next=function(st){switch(H){case 1:case 2:case 3:var pt=3;break;default:pt=H}var Be=H;H=pt;try{return st()}finally{H=Be}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(st,pt){switch(st){case 1:case 2:case 3:case 4:case 5:break;default:st=3}var Be=H;H=st;try{return pt()}finally{H=Be}},n.unstable_scheduleCallback=function(st,pt,Be){var qe=n.unstable_now();switch(typeof Be=="object"&&Be!==null?(Be=Be.delay,Be=typeof Be=="number"&&0<Be?qe+Be:qe):Be=qe,st){case 1:var rt=-1;break;case 2:rt=250;break;case 5:rt=1073741823;break;case 4:rt=1e4;break;default:rt=5e3}return rt=Be+rt,st={id:E++,callback:pt,priorityLevel:st,startTime:Be,expirationTime:rt,sortIndex:-1},Be>qe?(st.sortIndex=Be,i($,st),e(y)===null&&st===e($)&&(ye?(xe(Ke),Ke=-1):ye=!0,dt(Fe,Be-qe))):(st.sortIndex=rt,i(y,st),be||Z||(be=!0,ot(Me))),st},n.unstable_shouldYield=We,n.unstable_wrapCallback=function(st){var pt=H;return function(){var Be=H;H=pt;try{return st.apply(this,arguments)}finally{H=Be}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=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 e(g){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+g,X=1;X<arguments.length;X++)k+="&args[]="+encodeURIComponent(arguments[X]);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 t=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++)t.add(k[g])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,$=/^[: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]*$/,E={},M={};function H(g){return y.call(M,g)?!0:y.call(E,g)?!1:$.test(g)?M[g]=!0:(E[g]=!0,!1)}function Z(g,k,X,ve){if(X!==null&&X.type===0)return!1;switch(typeof k){case"function":case"symbol":return!0;case"boolean":return ve?!1:X!==null?!X.acceptsBooleans:(g=g.toLowerCase().slice(0,5),g!=="data-"&&g!=="aria-");default:return!1}}function be(g,k,X,ve){if(k===null||typeof k>"u"||Z(g,k,X,ve))return!0;if(ve)return!1;if(X!==null)switch(X.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 ye(g,k,X,ve,$e,Ie,De){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=ve,this.attributeNamespace=$e,this.mustUseProperty=X,this.propertyName=g,this.type=k,this.sanitizeURL=Ie,this.removeEmptyString=De}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){we[g]=new ye(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 ye(k,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){we[g]=new ye(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){we[g]=new ye(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 ye(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){we[g]=new ye(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){we[g]=new ye(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){we[g]=new ye(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){we[g]=new ye(g,5,!1,g.toLowerCase(),null,!1,!1)});var xe=/[\-:]([a-z])/g;function Ce(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-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,Ce);we[k]=new ye(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,Ce);we[k]=new ye(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,Ce);we[k]=new ye(k,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){we[g]=new ye(g,1,!1,g.toLowerCase(),null,!1,!1)}),we.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){we[g]=new ye(g,1,!1,g.toLowerCase(),null,!0,!0)});function Ne(g,k,X,ve){var $e=we.hasOwnProperty(k)?we[k]:null;($e!==null?$e.type!==0:ve||!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N")&&(be(k,X,$e,ve)&&(X=null),ve||$e===null?H(k)&&(X===null?g.removeAttribute(k):g.setAttribute(k,""+X)):$e.mustUseProperty?g[$e.propertyName]=X===null?$e.type===3?!1:"":X:(k=$e.attributeName,ve=$e.attributeNamespace,X===null?g.removeAttribute(k):($e=$e.type,X=$e===3||$e===4&&X===!0?"":""+X,ve?g.setAttributeNS(ve,k,X):g.setAttribute(k,X))))}var Fe=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Me=Symbol.for("react.element"),Le=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),We=Symbol.for("react.context"),Xe=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),st=Symbol.iterator;function pt(g){return g===null||typeof g!="object"?null:(g=st&&g[st]||g["@@iterator"],typeof g=="function"?g:null)}var Be=Object.assign,qe;function rt(g){if(qe===void 0)try{throw Error()}catch(X){var k=X.stack.trim().match(/\n( *(at )?)/);qe=k&&k[1]||""}return` 3`+qe+g}var He=!1;function Ot(g,k){if(!g||He)return"";He=!0;var X=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(at){var ve=at}Reflect.construct(g,[],k)}else{try{k.call()}catch(at){ve=at}g.call(k.prototype)}else{try{throw Error()}catch(at){ve=at}g()}}catch(at){if(at&&ve&&typeof at.stack=="string"){for(var $e=at.stack.split(` 4`),Ie=ve.stack.split(` 5`),De=$e.length-1,Ge=Ie.length-1;1<=De&&0<=Ge&&$e[De]!==Ie[Ge];)Ge--;for(;1<=De&&0<=Ge;De--,Ge--)if($e[De]!==Ie[Ge]){if(De!==1||Ge!==1)do if(De--,Ge--,0>Ge||$e[De]!==Ie[Ge]){var Je=` 6`+$e[De].replace(" at new "," at ");return g.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",g.displayName)),Je}while(1<=De&&0<=Ge);break}}}finally{He=!1,Error.prepareStackTrace=X}return(g=g?g.displayName||g.name:"")?rt(g):""}function Ct(g){switch(g.tag){case 5:return rt(g.type);case 16:return rt("Lazy");case 13:return rt("Suspense");case 19:return rt("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 tt(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 ze:return"Fragment";case Le:return"Portal";case Ve:return"Profiler";case Ke:return"StrictMode";case Qe:return"Suspense";case Ye:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case We:return(g.displayName||"Context")+".Consumer";case je:return(g._context.displayName||"Context")+".Provider";case Xe:var k=g.render;return g=g.displayName,g||(g=k.displayName||k.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case Ue:return k=g.displayName||null,k!==null?k:tt(g.type)||"Memo";case ot:k=g._payload,g=g._init;try{return tt(g(k))}catch{}}return null}function wt(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 tt(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 gt(g){switch(typeof g){case"boolean":case"number":case"string":case"undefined":return g;case"object":return g;default:return""}}function $t(g){var k=g.type;return(g=g.nodeName)&&g.toLowerCase()==="input"&&(k==="checkbox"||k==="radio")}function Mt(g){var k=$t(g)?"checked":"value",X=Object.getOwnPropertyDescriptor(g.constructor.prototype,k),ve=""+g[k];if(!g.hasOwnProperty(k)&&typeof X<"u"&&typeof X.get=="function"&&typeof X.set=="function"){var $e=X.get,Ie=X.set;return Object.defineProperty(g,k,{configurable:!0,get:function(){return $e.call(this)},set:function(De){ve=""+De,Ie.call(this,De)}}),Object.defineProperty(g,k,{enumerable:X.enumerable}),{getValue:function(){return ve},setValue:function(De){ve=""+De},stopTracking:function(){g._valueTracker=null,delete g[k]}}}}function qt(g){g._valueTracker||(g._valueTracker=Mt(g))}function cn(g){if(!g)return!1;var k=g._valueTracker;if(!k)return!0;var X=k.getValue(),ve="";return g&&(ve=$t(g)?g.checked?"true":"false":g.value),g=ve,g!==X?(k.setValue(g),!0):!1}function en(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 Wt(g,k){var X=k.checked;return Be({},k,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:X??g._wrapperState.initialChecked})}function dn(g,k){var X=k.defaultValue==null?"":k.defaultValue,ve=k.checked!=null?k.checked:k.defaultChecked;X=gt(k.value!=null?k.value:X),g._wrapperState={initialChecked:ve,initialValue:X,controlled:k.type==="checkbox"||k.type==="radio"?k.checked!=null:k.value!=null}}function Yt(g,k){k=k.checked,k!=null&&Ne(g,"checked",k,!1)}function zt(g,k){Yt(g,k);var X=gt(k.value),ve=k.type;if(X!=null)ve==="number"?(X===0&&g.value===""||g.value!=X)&&(g.value=""+X):g.value!==""+X&&(g.value=""+X);else if(ve==="submit"||ve==="reset"){g.removeAttribute("value");return}k.hasOwnProperty("value")?Ut(g,k.type,X):k.hasOwnProperty("defaultValue")&&Ut(g,k.type,gt(k.defaultValue)),k.checked==null&&k.defaultChecked!=null&&(g.defaultChecked=!!k.defaultChecked)}function nn(g,k,X){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,X||k===g.value||(g.value=k),g.defaultValue=k}X=g.name,X!==""&&(g.name=""),g.defaultChecked=!!g._wrapperState.initialChecked,X!==""&&(g.name=X)}function Ut(g,k,X){(k!=="number"||en(g.ownerDocument)!==g)&&(X==null?g.defaultValue=""+g._wrapperState.initialValue:g.defaultValue!==""+X&&(g.defaultValue=""+X))}var Zt=Array.isArray;function fn(g,k,X,ve){if(g=g.options,k){k={};for(var $e=0;$e<X.length;$e++)k["$"+X[$e]]=!0;for(X=0;X<g.length;X++)$e=k.hasOwnProperty("$"+g[X].value),g[X].selected!==$e&&(g[X].selected=$e),$e&&ve&&(g[X].defaultSelected=!0)}else{for(X=""+gt(X),k=null,$e=0;$e<g.length;$e++){if(g[$e].value===X){g[$e].selected=!0,ve&&(g[$e].defaultSelected=!0);return}k!==null||g[$e].disabled||(k=g[$e])}k!==null&&(k.selected=!0)}}function On(g,k){if(k.dangerouslySetInnerHTML!=null)throw Error(e(91));return Be({},k,{value:void 0,defaultValue:void 0,children:""+g._wrapperState.initialValue})}function tn(g,k){var X=k.value;if(X==null){if(X=k.children,k=k.defaultValue,X!=null){if(k!=null)throw Error(e(92));if(Zt(X)){if(1<X.length)throw Error(e(93));X=X[0]}k=X}k==null&&(k=""),X=k}g._wrapperState={initialValue:gt(X)}}function bn(g,k){var X=gt(k.value),ve=gt(k.defaultValue);X!=null&&(X=""+X,X!==g.value&&(g.value=X),k.defaultValue==null&&g.defaultValue!==X&&(g.defaultValue=X)),ve!=null&&(g.defaultValue=""+ve)}function Gt(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 bt(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 kt,Lt=(function(g){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(k,X,ve,$e){MSApp.execUnsafeLocalFunction(function(){return g(k,X,ve,$e)})}:g})(function(g,k){if(g.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in g)g.innerHTML=k;else{for(kt=kt||document.createElement("div"),kt.innerHTML="<svg>"+k.valueOf().toString()+"</svg>",k=kt.firstChild;g.firstChild;)g.removeChild(g.firstChild);for(;k.firstChild;)g.appendChild(k.firstChild)}});function Nt(g,k){if(k){var X=g.firstChild;if(X&&X===g.lastChild&&X.nodeType===3){X.nodeValue=k;return}}g.textContent=k}var xt={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(xt).forEach(function(g){Vt.forEach(function(k){k=k+g.charAt(0).toUpperCase()+g.substring(1),xt[k]=xt[g]})});function Tt(g,k,X){return k==null||typeof k=="boolean"||k===""?"":X||typeof k!="number"||k===0||xt.hasOwnProperty(g)&&xt[g]?(""+k).trim():k+"px"}function it(g,k){g=g.style;for(var X in k)if(k.hasOwnProperty(X)){var ve=X.indexOf("--")===0,$e=Tt(X,k[X],ve);X==="float"&&(X="cssFloat"),ve?g.setProperty(X,$e):g[X]=$e}}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(e(137,g));if(k.dangerouslySetInnerHTML!=null){if(k.children!=null)throw Error(e(60));if(typeof k.dangerouslySetInnerHTML!="object"||!("__html"in k.dangerouslySetInnerHTML))throw Error(e(61))}if(k.style!=null&&typeof k.style!="object")throw Error(e(62))}}function ht(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 Rt(g){return g=g.target||g.srcElement||window,g.correspondingUseElement&&(g=g.correspondingUseElement),g.nodeType===3?g.parentNode:g}var Jt=null,an=null,rn=null;function dr(g){if(g=io(g)){if(typeof Jt!="function")throw Error(e(280));var k=g.stateNode;k&&(k=Ko(k),Jt(g.stateNode,g.type,k))}}function qr(g){an?rn?rn.push(g):rn=[g]:an=g}function fr(){if(an){var g=an,k=rn;if(rn=an=null,dr(g),k)for(g=0;g<k.length;g++)dr(k[g])}}function Li(g,k){return g(k)}function pr(){}var Mi=!1;function Di(g,k,X){if(Mi)return g(k,X);Mi=!0;try{return Li(g,k,X)}finally{Mi=!1,(an!==null||rn!==null)&&(pr(),fr())}}function hr(g,k){var X=g.stateNode;if(X===null)return null;var ve=Ko(X);if(ve===null)return null;X=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(X&&typeof X!="function")throw Error(e(231,k,typeof X));return X}var Bi=!1;if(h)try{var xr={};Object.defineProperty(xr,"passive",{get:function(){Bi=!0}}),window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{Bi=!1}function Ht(g,k,X,ve,$e,Ie,De,Ge,Je){var at=Array.prototype.slice.call(arguments,3);try{k.apply(X,at)}catch(mt){this.onError(mt)}}var Kt=!1,hn=null,Nn=!1,yr=null,od={onError:function(g){Kt=!0,hn=g}};function ad(g,k,X,ve,$e,Ie,De,Ge,Je){Kt=!1,hn=null,Ht.apply(od,arguments)}function ld(g,k,X,ve,$e,Ie,De,Ge,Je){if(ad.apply(this,arguments),Kt){if(Kt){var at=hn;Kt=!1,hn=null}else throw Error(e(198));Nn||(Nn=!0,yr=at)}}function Kr(g){var k=g,X=g;if(g.alternate)for(;k.return;)k=k.return;else{g=k;do k=g,(k.flags&4098)!==0&&(X=k.return),g=k.return;while(g)}return k.tag===3?X:null}function Os(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 ws(g){if(Kr(g)!==g)throw Error(e(188))}function sd(g){var k=g.alternate;if(!k){if(k=Kr(g),k===null)throw Error(e(188));return k!==g?null:g}for(var X=g,ve=k;;){var $e=X.return;if($e===null)break;var Ie=$e.alternate;if(Ie===null){if(ve=$e.return,ve!==null){X=ve;continue}break}if($e.child===Ie.child){for(Ie=$e.child;Ie;){if(Ie===X)return ws($e),g;if(Ie===ve)return ws($e),k;Ie=Ie.sibling}throw Error(e(188))}if(X.return!==ve.return)X=$e,ve=Ie;else{for(var De=!1,Ge=$e.child;Ge;){if(Ge===X){De=!0,X=$e,ve=Ie;break}if(Ge===ve){De=!0,ve=$e,X=Ie;break}Ge=Ge.sibling}if(!De){for(Ge=Ie.child;Ge;){if(Ge===X){De=!0,X=Ie,ve=$e;break}if(Ge===ve){De=!0,ve=Ie,X=$e;break}Ge=Ge.sibling}if(!De)throw Error(e(189))}}if(X.alternate!==ve)throw Error(e(190))}if(X.tag!==3)throw Error(e(188));return X.stateNode.current===X?g:k}function $s(g){return g=sd(g),g!==null?Ts(g):null}function Ts(g){if(g.tag===5||g.tag===6)return g;for(g=g.child;g!==null;){var k=Ts(g);if(k!==null)return k;g=g.sibling}return null}var xs=i.unstable_scheduleCallback,Cs=i.unstable_cancelCallback,ud=i.unstable_shouldYield,cd=i.unstable_requestPaint,vn=i.unstable_now,dd=i.unstable_getCurrentPriorityLevel,Fa=i.unstable_ImmediatePriority,ks=i.unstable_UserBlockingPriority,ko=i.unstable_NormalPriority,fd=i.unstable_LowPriority,Es=i.unstable_IdlePriority,Eo=null,or=null;function pd(g){if(or&&typeof or.onCommitFiberRoot=="function")try{or.onCommitFiberRoot(Eo,g,void 0,(g.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:gd,hd=Math.log,yd=Math.LN2;function gd(g){return g>>>=0,g===0?32:31-(hd(g)/yd|0)|0}var Io=64,Po=4194304;function ji(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 Ao(g,k){var X=g.pendingLanes;if(X===0)return 0;var ve=0,$e=g.suspendedLanes,Ie=g.pingedLanes,De=X&268435455;if(De!==0){var Ge=De&~$e;Ge!==0?ve=ji(Ge):(Ie&=De,Ie!==0&&(ve=ji(Ie)))}else De=X&~$e,De!==0?ve=ji(De):Ie!==0&&(ve=ji(Ie));if(ve===0)return 0;if(k!==0&&k!==ve&&(k&$e)===0&&($e=ve&-ve,Ie=k&-k,$e>=Ie||$e===16&&(Ie&4194240)!==0))return k;if((ve&4)!==0&&(ve|=X&16),k=g.entangledLanes,k!==0)for(g=g.entanglements,k&=ve;0<k;)X=31-Zn(k),$e=1<<X,ve|=g[X],k&=~$e;return ve}function md(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 bd(g,k){for(var X=g.suspendedLanes,ve=g.pingedLanes,$e=g.expirationTimes,Ie=g.pendingLanes;0<Ie;){var De=31-Zn(Ie),Ge=1<<De,Je=$e[De];Je===-1?((Ge&X)===0||(Ge&ve)!==0)&&($e[De]=md(Ge,k)):Je<=k&&(g.expiredLanes|=Ge),Ie&=~Ge}}function La(g){return g=g.pendingLanes&-1073741825,g!==0?g:g&1073741824?1073741824:0}function Is(){var g=Io;return Io<<=1,(Io&4194240)===0&&(Io=64),g}function Ma(g){for(var k=[],X=0;31>X;X++)k.push(g);return k}function Vi(g,k,X){g.pendingLanes|=k,k!==536870912&&(g.suspendedLanes=0,g.pingedLanes=0),g=g.eventTimes,k=31-Zn(k),g[k]=X}function vd(g,k){var X=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<X;){var $e=31-Zn(X),Ie=1<<$e;k[$e]=0,ve[$e]=-1,g[$e]=-1,X&=~Ie}}function Da(g,k){var X=g.entangledLanes|=k;for(g=g.entanglements;X;){var ve=31-Zn(X),$e=1<<ve;$e&k|g[ve]&k&&(g[ve]|=k),X&=~$e}}var on=0;function Ps(g){return g&=-g,1<g?4<g?(g&268435455)!==0?16:536870912:4:1}var As,Ba,Rs,Ns,Fs,ja=!1,Ro=[],Cr=null,kr=null,Er=null,zi=new Map,Ui=new Map,Ir=[],Sd="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 Ls(g,k){switch(g){case"focusin":case"focusout":Cr=null;break;case"dragenter":case"dragleave":kr=null;break;case"mouseover":case"mouseout":Er=null;break;case"pointerover":case"pointerout":zi.delete(k.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(k.pointerId)}}
vendor: 4,378 bytes, line 6
6function Hi(g,k,X,ve,$e,Ie){return g===null||g.nativeEvent!==Ie?(g={blockedOn:k,domEventName:X,eventSystemFlags:ve,nativeEvent:Ie,targetContainers:[$e]},k!==null&&(k=io(k),k!==null&&Ba(k)),g):(g.eventSystemFlags|=ve,k=g.targetContainers,$e!==null&&k.indexOf($e)===-1&&k.push($e),g)}function Od(g,k,X,ve,$e){switch(k){case"focusin":return Cr=Hi(Cr,g,k,X,ve,$e),!0;case"dragenter":return kr=Hi(kr,g,k,X,ve,$e),!0;case"mouseover":return Er=Hi(Er,g,k,X,ve,$e),!0;case"pointerover":var Ie=$e.pointerId;return zi.set(Ie,Hi(zi.get(Ie)||null,g,k,X,ve,$e)),!0;case"gotpointercapture":return Ie=$e.pointerId,Ui.set(Ie,Hi(Ui.get(Ie)||null,g,k,X,ve,$e)),!0}return!1}function Ms(g){var k=Jr(g.target);if(k!==null){var X=Kr(k);if(X!==null){if(k=X.tag,k===13){if(k=Os(X),k!==null){g.blockedOn=k,Fs(g.priority,function(){Rs(X)});return}}else if(k===3&&X.stateNode.current.memoizedState.isDehydrated){g.blockedOn=X.tag===3?X.stateNode.containerInfo:null;return}}}g.blockedOn=null}function No(g){if(g.blockedOn!==null)return!1;for(var k=g.targetContainers;0<k.length;){var X=za(g.domEventName,g.eventSystemFlags,k[0],g.nativeEvent);if(X===null){X=g.nativeEvent;var ve=new X.constructor(X.type,X);ft=ve,X.target.dispatchEvent(ve),ft=null}else return k=io(X),k!==null&&Ba(k),g.blockedOn=X,!1;k.shift()}return!0}function Ds(g,k,X){No(g)&&X.delete(k)}function wd(){ja=!1,Cr!==null&&No(Cr)&&(Cr=null),kr!==null&&No(kr)&&(kr=null),Er!==null&&No(Er)&&(Er=null),zi.forEach(Ds),Ui.forEach(Ds)}function Wi(g,k){g.blockedOn===k&&(g.blockedOn=null,ja||(ja=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wd)))}function Gi(g){function k($e){return Wi($e,g)}if(0<Ro.length){Wi(Ro[0],g);for(var X=1;X<Ro.length;X++){var ve=Ro[X];ve.blockedOn===g&&(ve.blockedOn=null)}}for(Cr!==null&&Wi(Cr,g),kr!==null&&Wi(kr,g),Er!==null&&Wi(Er,g),zi.forEach(k),Ui.forEach(k),X=0;X<Ir.length;X++)ve=Ir[X],ve.blockedOn===g&&(ve.blockedOn=null);for(;0<Ir.length&&(X=Ir[0],X.blockedOn===null);)Ms(X),X.blockedOn===null&&Ir.shift()}var ui=Fe.ReactCurrentBatchConfig,Fo=!0;function $d(g,k,X,ve){var $e=on,Ie=ui.transition;ui.transition=null;try{on=1,Va(g,k,X,ve)}finally{on=$e,ui.transition=Ie}}function Td(g,k,X,ve){var $e=on,Ie=ui.transition;ui.transition=null;try{on=4,Va(g,k,X,ve)}finally{on=$e,ui.transition=Ie}}function Va(g,k,X,ve){if(Fo){var $e=za(g,k,X,ve);if($e===null)ol(g,k,ve,Lo,X),Ls(g,ve);else if(Od($e,g,k,X,ve))ve.stopPropagation();else if(Ls(g,ve),k&4&&-1<Sd.indexOf(g)){for(;$e!==null;){var Ie=io($e);if(Ie!==null&&As(Ie),Ie=za(g,k,X,ve),Ie===null&&ol(g,k,ve,Lo,X),Ie===$e)break;$e=Ie}$e!==null&&ve.stopPropagation()}else ol(g,k,ve,null,X)}}var Lo=null;function za(g,k,X,ve){if(Lo=null,g=Rt(ve),g=Jr(g),g!==null)if(k=Kr(g),k===null)g=null;else if(X=k.tag,X===13){if(g=Os(k),g!==null)return g;g=null}else if(X===3){if(k.stateNode.current.memoizedState.isDehydrated)return k.tag===3?k.stateNode.containerInfo:null;g=null}else k!==g&&(g=null);return Lo=g,null}function Bs(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(dd()){case Fa:return 1;case ks:return 4;case ko:case fd:return 16;case Es:return 536870912;default:return 16}default:return 16}}var Pr=null,Ua=null,Mo=null;function js(){if(Mo)return Mo;var g,k=Ua,X=k.length,ve,$e="value"in Pr?Pr.value:Pr.textContent,Ie=$e.length;for(g=0;g<X&&k[g]===$e[g];g++);var De=X-g;
vendor: 11,356 bytes, line 6
6for(ve=1;ve<=De&&k[X-ve]===$e[Ie-ve];ve++);return Mo=$e.slice(g,1<ve?1-ve:void 0)}function Do(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 Bo(){return!0}function Vs(){return!1}function zn(g){function k(X,ve,$e,Ie,De){this._reactName=X,this._targetInst=$e,this.type=ve,this.nativeEvent=Ie,this.target=De,this.currentTarget=null;for(var Ge in g)g.hasOwnProperty(Ge)&&(X=g[Ge],this[Ge]=X?X(Ie):Ie[Ge]);return this.isDefaultPrevented=(Ie.defaultPrevented!=null?Ie.defaultPrevented:Ie.returnValue===!1)?Bo:Vs,this.isPropagationStopped=Vs,this}return Be(k.prototype,{preventDefault:function(){this.defaultPrevented=!0;var X=this.nativeEvent;X&&(X.preventDefault?X.preventDefault():typeof X.returnValue!="unknown"&&(X.returnValue=!1),this.isDefaultPrevented=Bo)},stopPropagation:function(){var X=this.nativeEvent;X&&(X.stopPropagation?X.stopPropagation():typeof X.cancelBubble!="unknown"&&(X.cancelBubble=!0),this.isPropagationStopped=Bo)},persist:function(){},isPersistent:Bo}),k}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(g){return g.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ha=zn(ci),qi=Be({},ci,{view:0,detail:0}),xd=zn(qi),Wa,Ga,Ki,jo=Be({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ka,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!==Ki&&(Ki&&g.type==="mousemove"?(Wa=g.screenX-Ki.screenX,Ga=g.screenY-Ki.screenY):Ga=Wa=0,Ki=g),Wa)},movementY:function(g){return"movementY"in g?g.movementY:Ga}}),zs=zn(jo),Cd=Be({},jo,{dataTransfer:0}),kd=zn(Cd),Ed=Be({},qi,{relatedTarget:0}),qa=zn(Ed),Id=Be({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),Pd=zn(Id),Ad=Be({},ci,{clipboardData:function(g){return"clipboardData"in g?g.clipboardData:window.clipboardData}}),Rd=zn(Ad),Nd=Be({},ci,{data:0}),Us=zn(Nd),Fd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ld={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"},Md={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dd(g){var k=this.nativeEvent;return k.getModifierState?k.getModifierState(g):(g=Md[g])?!!k[g]:!1}function Ka(){return Dd}var Bd=Be({},qi,{key:function(g){if(g.key){var k=Fd[g.key]||g.key;if(k!=="Unidentified")return k}return g.type==="keypress"?(g=Do(g),g===13?"Enter":String.fromCharCode(g)):g.type==="keydown"||g.type==="keyup"?Ld[g.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ka,charCode:function(g){return g.type==="keypress"?Do(g):0},keyCode:function(g){return g.type==="keydown"||g.type==="keyup"?g.keyCode:0},which:function(g){return g.type==="keypress"?Do(g):g.type==="keydown"||g.type==="keyup"?g.keyCode:0}}),jd=zn(Bd),Vd=Be({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hs=zn(Vd),zd=Be({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ka}),Ud=zn(zd),Hd=Be({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wd=zn(Hd),Gd=Be({},jo,{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}),qd=zn(Gd),Kd=[9,13,27,32],Ja=h&&"CompositionEvent"in window,Ji=null;h&&"documentMode"in document&&(Ji=document.documentMode);var Jd=h&&"TextEvent"in window&&!Ji,Ws=h&&(!Ja||Ji&&8<Ji&&11>=Ji),Gs=" ",qs=!1;function Ks(g,k){switch(g){case"keyup":return Kd.indexOf(k.keyCode)!==-1;case"keydown":return k.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Js(g){return g=g.detail,typeof g=="object"&&"data"in g?g.data:null}var di=!1;function Yd(g,k){switch(g){case"compositionend":return Js(k);case"keypress":return k.which!==32?null:(qs=!0,Gs);case"textInput":return g=k.data,g===Gs&&qs?null:g;default:return null}}function Xd(g,k){if(di)return g==="compositionend"||!Ja&&Ks(g,k)?(g=js(),Mo=Ua=Pr=null,di=!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 Ws&&k.locale!=="ko"?null:k.data;default:return null}}var Zd={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 Ys(g){var k=g&&g.nodeName&&g.nodeName.toLowerCase();return k==="input"?!!Zd[g.type]:k==="textarea"}function Xs(g,k,X,ve){qr(ve),k=Wo(k,"onChange"),0<k.length&&(X=new Ha("onChange","change",null,X,ve),g.push({event:X,listeners:k}))}var Yi=null,Xi=null;function Qd(g){yu(g,0)}function Vo(g){var k=gi(g);if(cn(k))return g}function ef(g,k){if(g==="change")return k}var Zs=!1;if(h){var Ya;if(h){var Xa="oninput"in document;if(!Xa){var Qs=document.createElement("div");Qs.setAttribute("oninput","return;"),Xa=typeof Qs.oninput=="function"}Ya=Xa}else Ya=!1;Zs=Ya&&(!document.documentMode||9<document.documentMode)}function eu(){Yi&&(Yi.detachEvent("onpropertychange",tu),Xi=Yi=null)}function tu(g){if(g.propertyName==="value"&&Vo(Xi)){var k=[];Xs(k,Xi,g,Rt(g)),Di(Qd,k)}}function tf(g,k,X){g==="focusin"?(eu(),Yi=k,Xi=X,Yi.attachEvent("onpropertychange",tu)):g==="focusout"&&eu()}function nf(g){if(g==="selectionchange"||g==="keyup"||g==="keydown")return Vo(Xi)}function rf(g,k){if(g==="click")return Vo(k)}function of(g,k){if(g==="input"||g==="change")return Vo(k)}function af(g,k){return g===k&&(g!==0||1/g===1/k)||g!==g&&k!==k}var Qn=typeof Object.is=="function"?Object.is:af;function Zi(g,k){if(Qn(g,k))return!0;if(typeof g!="object"||g===null||typeof k!="object"||k===null)return!1;var X=Object.keys(g),ve=Object.keys(k);if(X.length!==ve.length)return!1;for(ve=0;ve<X.length;ve++){var $e=X[ve];if(!y.call(k,$e)||!Qn(g[$e],k[$e]))return!1}return!0}function nu(g){for(;g&&g.firstChild;)g=g.firstChild;return g}function ru(g,k){var X=nu(g);g=0;for(var ve;X;){if(X.nodeType===3){if(ve=g+X.textContent.length,g<=k&&ve>=k)return{node:X,offset:k-g};g=ve}e:{for(;X;){if(X.nextSibling){X=X.nextSibling;break e}X=X.parentNode}X=void 0}X=nu(X)}}function iu(g,k){return g&&k?g===k?!0:g&&g.nodeType===3?!1:k&&k.nodeType===3?iu(g,k.parentNode):"contains"in g?g.contains(k):g.compareDocumentPosition?!!(g.compareDocumentPosition(k)&16):!1:!1}function ou(){for(var g=window,k=en();k instanceof g.HTMLIFrameElement;){try{var X=typeof k.contentWindow.location.href=="string"}catch{X=!1}if(X)g=k.contentWindow;else break;k=en(g.document)}return k}function Za(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 lf(g){var k=ou(),X=g.focusedElem,ve=g.selectionRange;if(k!==X&&X&&X.ownerDocument&&iu(X.ownerDocument.documentElement,X)){if(ve!==null&&Za(X)){if(k=ve.start,g=ve.end,g===void 0&&(g=k),"selectionStart"in X)X.selectionStart=k,X.selectionEnd=Math.min(g,X.value.length);else if(g=(k=X.ownerDocument||document)&&k.defaultView||window,g.getSelection){g=g.getSelection();var $e=X.textContent.length,Ie=Math.min(ve.start,$e);ve=ve.end===void 0?Ie:Math.min(ve.end,$e),!g.extend&&Ie>ve&&($e=ve,ve=Ie,Ie=$e),$e=ru(X,Ie);var De=ru(X,ve);$e&&De&&(g.rangeCount!==1||g.anchorNode!==$e.node||g.anchorOffset!==$e.offset||g.focusNode!==De.node||g.focusOffset!==De.offset)&&(k=k.createRange(),k.setStart($e.node,$e.offset),g.removeAllRanges(),Ie>ve?(g.addRange(k),g.extend(De.node,De.offset)):(k.setEnd(De.node,De.offset),g.addRange(k)))}}for(k=[],g=X;g=g.parentNode;)g.nodeType===1&&k.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof X.focus=="function"&&X.focus(),X=0;X<k.length;X++)g=k[X],g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}var sf=h&&"documentMode"in document&&11>=document.documentMode,fi=null,Qa=null,Qi=null,el=!1;function au(g,k,X){var ve=X.window===X?X.document:X.nodeType===9?X:X.ownerDocument;el||fi==null||fi!==en(ve)||(ve=fi,"selectionStart"in ve&&Za(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}),Qi&&Zi(Qi,ve)||(Qi=ve,ve=Wo(Qa,"onSelect"),0<ve.length&&(k=new Ha("onSelect","select",null,k,X),g.push({event:k,listeners:ve}),k.target=fi)))}function zo(g,k){var X={};return X[g.toLowerCase()]=k.toLowerCase(),X["Webkit"+g]="webkit"+k,X["Moz"+g]="moz"+k,X}var pi={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionend:zo("Transition","TransitionEnd")},tl={},lu={};h&&(lu=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Uo(g){if(tl[g])return tl[g];if(!pi[g])return g;var k=pi[g],X;for(X in k)if(k.hasOwnProperty(X)&&X in lu)return tl[g]=k[X];return g}var su=Uo("animationend"),uu=Uo("animationiteration"),cu=Uo("animationstart"),du=Uo("transitionend"),fu=new Map,pu="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 Ar(g,k){fu.set(g,k),d(k,[g])}for(var nl=0;nl<pu.length;nl++){var rl=pu[nl],uf=rl.toLowerCase(),cf=rl[0].toUpperCase()+rl.slice(1);Ar(uf,"on"+cf)}Ar(su,"onAnimationEnd"),Ar(uu,"onAnimationIteration"),Ar(cu,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(du,"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 focu
6sin 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 eo="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(" "),df=new Set("cancel close invalid load scroll toggle".split(" ").concat(eo));function hu(g,k,X){var ve=g.type||"unknown-event";g.currentTarget=X,ld(ve,k,void 0,g),g.currentTarget=null}function yu(g,k){k=(k&4)!==0;for(var X=0;X<g.length;X++){var ve=g[X],$e=ve.event;ve=ve.listeners;e:{var Ie=void 0;if(k)for(var De=ve.length-1;0<=De;De--){var Ge=ve[De],Je=Ge.instance,at=Ge.currentTarget;if(Ge=Ge.listener,Je!==Ie&&$e.isPropagationStopped())break e;hu($e,Ge,at),Ie=Je}else for(De=0;De<ve.length;De++){if(Ge=ve[De],Je=Ge.instance,at=Ge.currentTarget,Ge=Ge.listener,Je!==Ie&&$e.isPropagationStopped())break e;hu($e,Ge,at),Ie=Je}}}if(Nn)throw g=yr,Nn=!1,yr=null,g}function sn(g,k){var X=k[dl];X===void 0&&(X=k[dl]=new Set);var ve=g+"__bubble";X.has(ve)||(gu(k,g,2,!1),X.add(ve))}function il(g,k,X){var ve=0;k&&(ve|=4),gu(X,g,ve,k)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function to(g){if(!g[Ho]){g[Ho]=!0,t.forEach(function(X){X!=="selectionchange"&&(df.has(X)||il(X,!1,g),il(X,!0,g))});var k=g.nodeType===9?g:g.ownerDocument;k===null||k[Ho]||(k[Ho]=!0,il("selectionchange",!1,k))}}function gu(g,k,X,ve){switch(Bs(k)){case 1:var $e=$d;break;case 4:$e=Td;break;default:$e=Va}X=$e.bind(null,k,X,g),$e=void 0,!Bi||k!=="touchstart"&&k!=="touchmove"&&k!=="wheel"||($e=!0),ve?$e!==void 0?g.addEventListener(k,X,{capture:!0,passive:$e}):g.addEventListener(k,X,!0):$e!==void 0?g.addEventListener(k,X,{passive:$e}):g.addEventListener(k,X,!1)}function ol(g,k,X,ve,$e){var Ie=ve;if((k&1)===0&&(k&2)===0&&ve!==null)e:for(;;){if(ve===null)return;var De=ve.tag;if(De===3||De===4){var Ge=ve.stateNode.containerInfo;if(Ge===$e||Ge.nodeType===8&&Ge.parentNode===$e)break;if(De===4)for(De=ve.return;De!==null;){var Je=De.tag;if((Je===3||Je===4)&&(Je=De.stateNode.containerInfo,Je===$e||Je.nodeType===8&&Je.parentNode===$e))return;De=De.return}for(;Ge!==null;){if(De=Jr(Ge),De===null)return;if(Je=De.tag,Je===5||Je===6){ve=Ie=De;continue e}Ge=Ge.parentNode}}ve=ve.return}Di(function(){var at=Ie,mt=Rt(X),vt=[];e:{var yt=fu.get(g);if(yt!==void 0){var Et=Ha,Pt=g;switch(g){case"keypress":if(Do(X)===0)break e;case"keydown":case"keyup":Et=jd;break;case"focusin":Pt="focus",Et=qa;break;case"focusout":Pt="blur",Et=qa;break;case"beforeblur":case"afterblur":Et=qa;break;case"click":if(X.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Et=zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Et=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Et=Ud;break;case su:case uu:case cu:Et=Pd;break;case du:Et=Wd;break;case"scroll":Et=xd;break;case"wheel":Et=qd;break;case"copy":case"cut":case"paste":Et=Rd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Et=Hs}var At=(k&4)!==0,Sn=!At&&g==="scroll",et=At?yt!==null?yt+"Capture":null:yt;At=[];for(var Ze=at,nt;Ze!==null;){nt=Ze;var St=nt.stateNode;if(nt.tag===5&&St!==null&&(nt=St,et!==null&&(St=hr(Ze,et),St!=null&&At.push(no(Ze,St,nt)))),Sn)break;Ze=Ze.return}0<At.length&&(yt=new Et(yt,Pt,null,X,mt),vt.push({event:yt,listeners:At}))}}if((k&7)===0){e:{if(yt=g==="mouseover"||g==="pointerover",Et=g==="mouseout"||g==="pointerout",yt&&X!==ft&&(Pt=X.relatedTarget||X.fromElement)&&(Jr(Pt)||Pt[gr]))break e;if((Et||yt)&&(yt=mt.window===mt?mt:(yt=mt.ownerDocument)?yt.defaultView||yt.parentWindow:window,Et?(Pt=X.relatedTarget||X.toElement,Et=at,Pt=Pt?Jr(Pt):null,Pt!==null&&(Sn=Kr(Pt),Pt!==Sn||Pt.tag!==5&&Pt.tag!==6)&&(Pt=null)):(Et=null,Pt=at),Et!==Pt)){if(At=zs,St="onMouseLeave",et="onMouseEnter",Ze="mouse",(g==="pointerout"||g==="pointerover")&&(At=Hs,St="onPointerLeave",et="onPointerEnter",Ze="pointer"),Sn=Et==null?yt:gi(Et),nt=Pt==null?yt:gi(Pt),yt=new At(St,Ze+"leave",Et,X,mt),yt.target=Sn,yt.relatedTarget=nt,St=null,Jr(mt)===at&&(At=new At(et,Ze+"enter",Pt,X,mt),At.target=nt,At.relatedTarget=Sn,St=At),Sn=St,Et&&Pt)t:{for(At=Et,et=Pt,Ze=0,nt=At;nt;nt=hi(nt))Ze++;for(nt=0,St=et;St;St=hi(St))nt++;for(;0<Ze-nt;)At=hi(At),Ze--;for(;0<nt-Ze;)et=hi(et),nt--;for(;Ze--;){if(At===et||et!==null&&At===et.alternate)break t;At=hi(At),et=hi(et)}At=null}else At=null;Et!==null&&mu(vt,yt,Et,At,!1),Pt!==null&&Sn!==null&&mu(vt,Sn,Pt,At,!0)}}
vendor: 6,207 bytes, lines 6-7
6e:{if(yt=at?gi(at):window,Et=yt.nodeName&&yt.nodeName.toLowerCase(),Et==="select"||Et==="input"&&yt.type==="file")var Ft=ef;else if(Ys(yt))if(Zs)Ft=of;else{Ft=nf;var Dt=tf}else(Et=yt.nodeName)&&Et.toLowerCase()==="input"&&(yt.type==="checkbox"||yt.type==="radio")&&(Ft=rf);if(Ft&&(Ft=Ft(g,at))){Xs(vt,Ft,X,mt);break e}Dt&&Dt(g,yt,at),g==="focusout"&&(Dt=yt._wrapperState)&&Dt.controlled&&yt.type==="number"&&Ut(yt,"number",yt.value)}switch(Dt=at?gi(at):window,g){case"focusin":(Ys(Dt)||Dt.contentEditable==="true")&&(fi=Dt,Qa=at,Qi=null);break;case"focusout":Qi=Qa=fi=null;break;case"mousedown":el=!0;break;case"contextmenu":case"mouseup":case"dragend":el=!1,au(vt,X,mt);break;case"selectionchange":if(sf)break;case"keydown":case"keyup":au(vt,X,mt)}var Bt;if(Ja)e:{switch(g){case"compositionstart":var jt="onCompositionStart";break e;case"compositionend":jt="onCompositionEnd";break e;case"compositionupdate":jt="onCompositionUpdate";break e}jt=void 0}else di?Ks(g,X)&&(jt="onCompositionEnd"):g==="keydown"&&X.keyCode===229&&(jt="onCompositionStart");jt&&(Ws&&X.locale!=="ko"&&(di||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&di&&(Bt=js()):(Pr=mt,Ua="value"in Pr?Pr.value:Pr.textContent,di=!0)),Dt=Wo(at,jt),0<Dt.length&&(jt=new Us(jt,g,null,X,mt),vt.push({event:jt,listeners:Dt}),Bt?jt.data=Bt:(Bt=Js(X),Bt!==null&&(jt.data=Bt)))),(Bt=Jd?Yd(g,X):Xd(g,X))&&(at=Wo(at,"onBeforeInput"),0<at.length&&(mt=new Us("onBeforeInput","beforeinput",null,X,mt),vt.push({event:mt,listeners:at}),mt.data=Bt))}yu(vt,k)})}function no(g,k,X){return{instance:g,listener:k,currentTarget:X}}function Wo(g,k){for(var X=k+"Capture",ve=[];g!==null;){var $e=g,Ie=$e.stateNode;$e.tag===5&&Ie!==null&&($e=Ie,Ie=hr(g,X),Ie!=null&&ve.unshift(no(g,Ie,$e)),Ie=hr(g,k),Ie!=null&&ve.push(no(g,Ie,$e))),g=g.return}return ve}function hi(g){if(g===null)return null;do g=g.return;while(g&&g.tag!==5);return g||null}function mu(g,k,X,ve,$e){for(var Ie=k._reactName,De=[];X!==null&&X!==ve;){var Ge=X,Je=Ge.alternate,at=Ge.stateNode;if(Je!==null&&Je===ve)break;Ge.tag===5&&at!==null&&(Ge=at,$e?(Je=hr(X,Ie),Je!=null&&De.unshift(no(X,Je,Ge))):$e||(Je=hr(X,Ie),Je!=null&&De.push(no(X,Je,Ge)))),X=X.return}De.length!==0&&g.push({event:k,listeners:De})}var ff=/\r\n?/g,pf=/\u0000|\uFFFD/g;function bu(g){return(typeof g=="string"?g:""+g).replace(ff,` 7`).replace(pf,"")}function Go(g,k,X){if(k=bu(k),bu(g)!==k&&X)throw Error(e(425))}function qo(){}var al=null,ll=null;function sl(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 ul=typeof setTimeout=="function"?setTimeout:void 0,hf=typeof clearTimeout=="function"?clearTimeout:void 0,vu=typeof Promise=="function"?Promise:void 0,yf=typeof queueMicrotask=="function"?queueMicrotask:typeof vu<"u"?function(g){return vu.resolve(null).then(g).catch(gf)}:ul;function gf(g){setTimeout(function(){throw g})}function cl(g,k){var X=k,ve=0;do{var $e=X.nextSibling;if(g.removeChild(X),$e&&$e.nodeType===8)if(X=$e.data,X==="/$"){if(ve===0){g.removeChild($e),Gi(k);return}ve--}else X!=="$"&&X!=="$?"&&X!=="$!"||ve++;X=$e}while(X);Gi(k)}function Rr(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 Su(g){g=g.previousSibling;for(var k=0;g;){if(g.nodeType===8){var X=g.data;if(X==="$"||X==="$!"||X==="$?"){if(k===0)return g;k--}else X==="/$"&&k++}g=g.previousSibling}return null}var yi=Math.random().toString(36).slice(2),ar="__reactFiber$"+yi,ro="__reactProps$"+yi,gr="__reactContainer$"+yi,dl="__reactEvents$"+yi,mf="__reactListeners$"+yi,bf="__reactHandles$"+yi;function Jr(g){var k=g[ar];if(k)return k;for(var X=g.parentNode;X;){if(k=X[gr]||X[ar]){if(X=k.alternate,k.child!==null||X!==null&&X.child!==null)for(g=Su(g);g!==null;){if(X=g[ar])return X;g=Su(g)}return k}g=X,X=g.parentNode}return null}function io(g){return g=g[ar]||g[gr],!g||g.tag!==5&&g.tag!==6&&g.tag!==13&&g.tag!==3?null:g}function gi(g){if(g.tag===5||g.tag===6)return g.stateNode;throw Error(e(33))}function Ko(g){return g[ro]||null}var fl=[],mi=-1;function Nr(g){return{current:g}}function un(g){0>mi||(g.current=fl[mi],fl[mi]=null,mi--)}function ln(g,k){mi++,fl[mi]=g.current,g.current=k}var Fr={},In=Nr(Fr),Mn=Nr(!1),Yr=Fr;function bi(g,k){var X=g.type.contextTypes;if(!X)return Fr;var ve=g.stateNode;if(ve&&ve.__reactInternalMemoizedUnmaskedChildContext===k)return ve.__reactInternalMemoizedMaskedChildContext;var $e={},Ie;for(Ie in X)$e[Ie]=k[Ie];return ve&&(g=g.stateNode,g.__reactInternalMemoizedUnmaskedChildContext=k,g.__reactInternalMemoizedMaskedChildContext=$e),$e}function Dn(g){return g=g.childContextTypes,g!=null}function Jo(){un(Mn),un(In)}function Ou(g,k,X){if(In.current!==Fr)throw Error(e(168));ln(In,k),ln(Mn,X)}function wu(g,k,X){var ve=g.stateNode;if(k=k.childContextTypes,typeof ve.getChildContext!="function")return X;ve=ve.getChildContext();for(var $e in ve)if(!($e in k))throw Error(e(108,wt(g)||"Unknown",$e));return Be({},X,ve)}function Yo(g){return g=(g=g.stateNode)&&g.__reactInternalMemoizedMergedChildContext||Fr,Yr=In.current,ln(In,g),ln(Mn,Mn.current),!0}function $u(g,k,X){var ve=g.stateNode;if(!ve)throw Error(e(169));X?(g=wu(g,k,Yr),ve.__reactInternalMemoizedMergedChildContext=g,un(Mn),un(In),ln(In,g)):un(Mn),ln(Mn,X)}var mr=null,Xo=!1,pl=!1;function Tu(g){mr===null?mr=[g]:mr.push(g)}function vf(g){Xo=!0,Tu(g)}function Lr(){if(!pl&&mr!==null){pl=!0;var g=0,k=on;try{var X=mr;for(on=1;g<X.length;g++){var ve=X[g];do ve=ve(!0);while(ve!==null)}mr=null,Xo=!1}catch($e){throw mr!==null&&(mr=mr.slice(g+1)),xs(Fa,Lr),$e}finally{on=k,pl=!1}}return null}var vi=[],Si=0,Zo=null,Qo=0,Gn=[],qn=0,Xr=null,br=1,vr="";function Zr(g,k){vi[Si++]=Qo,vi[Si++]=Zo,Zo=g,Qo=k}function xu(g,k,X){Gn[qn++]=br,Gn[qn++]=vr,Gn[qn++]=Xr,Xr=g;var ve=br;g=vr;var $e=32-Zn(ve)-1;ve&=~(1<<$e),X+=1;var Ie=32-Zn(k)+$e;if(30<Ie){var De=$e-$e%5;Ie=(ve&(1<<De)-1).toString(32),ve>>=De,$e-=De,br=1<<32-Zn(k)+$e|X<<$e|ve,vr=Ie+g}else br=1<<Ie|X<<$e|ve,vr=g}function hl(g){g.return!==null&&(Zr(g,1),xu(g,1,0))}function yl(g){for(;g===Zo;
vendor: 4,548 bytes, line 7
7)Zo=vi[--Si],vi[Si]=null,Qo=vi[--Si],vi[Si]=null;for(;g===Xr;)Xr=Gn[--qn],Gn[qn]=null,vr=Gn[--qn],Gn[qn]=null,br=Gn[--qn],Gn[qn]=null}var Un=null,Hn=null,pn=!1,er=null;function Cu(g,k){var X=Xn(5,null,null,0);X.elementType="DELETED",X.stateNode=k,X.return=g,k=g.deletions,k===null?(g.deletions=[X],g.flags|=16):k.push(X)}function ku(g,k){switch(g.tag){case 5:var X=g.type;return k=k.nodeType!==1||X.toLowerCase()!==k.nodeName.toLowerCase()?null:k,k!==null?(g.stateNode=k,Un=g,Hn=Rr(k.firstChild),!0):!1;case 6:return k=g.pendingProps===""||k.nodeType!==3?null:k,k!==null?(g.stateNode=k,Un=g,Hn=null,!0):!1;case 13:return k=k.nodeType!==8?null:k,k!==null?(X=Xr!==null?{id:br,overflow:vr}:null,g.memoizedState={dehydrated:k,treeContext:X,retryLane:1073741824},X=Xn(18,null,null,0),X.stateNode=k,X.return=g,g.child=X,Un=g,Hn=null,!0):!1;default:return!1}}function gl(g){return(g.mode&1)!==0&&(g.flags&128)===0}function ml(g){if(pn){var k=Hn;if(k){var X=k;if(!ku(g,k)){if(gl(g))throw Error(e(418));k=Rr(X.nextSibling);var ve=Un;k&&ku(g,k)?Cu(ve,X):(g.flags=g.flags&-4097|2,pn=!1,Un=g)}}else{if(gl(g))throw Error(e(418));g.flags=g.flags&-4097|2,pn=!1,Un=g}}}function Eu(g){for(g=g.return;g!==null&&g.tag!==5&&g.tag!==3&&g.tag!==13;)g=g.return;Un=g}function ea(g){if(g!==Un)return!1;if(!pn)return Eu(g),pn=!0,!1;var k;if((k=g.tag!==3)&&!(k=g.tag!==5)&&(k=g.type,k=k!=="head"&&k!=="body"&&!sl(g.type,g.memoizedProps)),k&&(k=Hn)){if(gl(g))throw Iu(),Error(e(418));for(;k;)Cu(g,k),k=Rr(k.nextSibling)}if(Eu(g),g.tag===13){if(g=g.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(e(317));e:{for(g=g.nextSibling,k=0;g;){if(g.nodeType===8){var X=g.data;if(X==="/$"){if(k===0){Hn=Rr(g.nextSibling);break e}k--}else X!=="$"&&X!=="$!"&&X!=="$?"||k++}g=g.nextSibling}Hn=null}}else Hn=Un?Rr(g.stateNode.nextSibling):null;return!0}function Iu(){for(var g=Hn;g;)g=Rr(g.nextSibling)}function Oi(){Hn=Un=null,pn=!1}function bl(g){er===null?er=[g]:er.push(g)}var Sf=Fe.ReactCurrentBatchConfig;function oo(g,k,X){if(g=X.ref,g!==null&&typeof g!="function"&&typeof g!="object"){if(X._owner){if(X=X._owner,X){if(X.tag!==1)throw Error(e(309));var ve=X.stateNode}if(!ve)throw Error(e(147,g));var $e=ve,Ie=""+g;return k!==null&&k.ref!==null&&typeof k.ref=="function"&&k.ref._stringRef===Ie?k.ref:(k=function(De){var Ge=$e.refs;De===null?delete Ge[Ie]:Ge[Ie]=De},k._stringRef=Ie,k)}if(typeof g!="string")throw Error(e(284));if(!X._owner)throw Error(e(290,g))}return g}function ta(g,k){throw g=Object.prototype.toString.call(k),Error(e(31,g==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":g))}function Pu(g){var k=g._init;return k(g._payload)}function Au(g){function k(et,Ze){if(g){var nt=et.deletions;nt===null?(et.deletions=[Ze],et.flags|=16):nt.push(Ze)}}function X(et,Ze){if(!g)return null;for(;Ze!==null;)k(et,Ze),Ze=Ze.sibling;return null}function ve(et,Ze){for(et=new Map;Ze!==null;)Ze.key!==null?et.set(Ze.key,Ze):et.set(Ze.index,Ze),Ze=Ze.sibling;return et}function $e(et,Ze){return et=Hr(et,Ze),et.index=0,et.sibling=null,et}function Ie(et,Ze,nt){return et.index=nt,g?(nt=et.alternate,nt!==null?(nt=nt.index,nt<Ze?(et.flags|=2,Ze):nt):(et.flags|=2,Ze)):(et.flags|=1048576,Ze)}function De(et){return g&&et.alternate===null&&(et.flags|=2),et}function Ge(et,Ze,nt,St){return Ze===null||Ze.tag!==6?(Ze=ds(nt,et.mode,St),Ze.return=et,Ze):(Ze=$e(Ze,nt),Ze.return=et,Ze)}function Je(et,Ze,nt,St){var Ft=nt.type;return Ft===ze?mt(et,Ze,nt.props.children,St,nt.key):Ze!==null&&(Ze.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===ot&&Pu(Ft)===Ze.type)?(St=$e(Ze,nt.props),St.ref=oo(et,Ze,nt),St.return=et,St):(St=xa(nt.type,nt.key,nt.props,null,et.mode,St),St.ref=oo(et,Ze,nt),St.return=et,St)}function at(et,Ze,nt,St){return Ze===null||Ze.tag!==4||Ze.stateNode.containerInfo!==nt.containerInfo||Ze.stateNode.implementation!==nt.implementation?(Ze=fs(nt,et.mode,St),Ze.return=et,Ze):(Ze=$e(Ze,nt.children||[]),Ze.return=et,Ze)}function mt(et,Ze,nt,St,Ft){return Ze===null||Ze.tag!==7?(Ze=ai(nt,et.mode,St,Ft),Ze.return=et,Ze):(Ze=$e(Ze,nt),Ze.return=et,Ze)}function vt(et,Ze,nt){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number")return Ze=ds(""+Ze,et.mode,nt),Ze.return=et,Ze;if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case Me:return nt=xa(Ze.type,Ze.key,Ze.props,null,et.mode,nt),nt.ref=oo(et,null,Ze),nt.return=et,nt;case Le:return Ze=fs(Ze,et.mode,nt),Ze.return=et,Ze;case ot:var St=Ze._init;return vt(et,St(Ze._payload),nt)}if(Zt(Ze)||pt(Ze))return Ze=ai(Ze,et.mode,nt,null),Ze.return=et,Ze;ta(et,Ze)}return null}
vendor: 15,448 bytes, line 7
7function yt(et,Ze,nt,St){var Ft=Ze!==null?Ze.key:null;if(typeof nt=="string"&&nt!==""||typeof nt=="number")return Ft!==null?null:Ge(et,Ze,""+nt,St);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case Me:return nt.key===Ft?Je(et,Ze,nt,St):null;case Le:return nt.key===Ft?at(et,Ze,nt,St):null;case ot:return Ft=nt._init,yt(et,Ze,Ft(nt._payload),St)}if(Zt(nt)||pt(nt))return Ft!==null?null:mt(et,Ze,nt,St,null);ta(et,nt)}return null}function Et(et,Ze,nt,St,Ft){if(typeof St=="string"&&St!==""||typeof St=="number")return et=et.get(nt)||null,Ge(Ze,et,""+St,Ft);if(typeof St=="object"&&St!==null){switch(St.$$typeof){case Me:return et=et.get(St.key===null?nt:St.key)||null,Je(Ze,et,St,Ft);case Le:return et=et.get(St.key===null?nt:St.key)||null,at(Ze,et,St,Ft);case ot:var Dt=St._init;return Et(et,Ze,nt,Dt(St._payload),Ft)}if(Zt(St)||pt(St))return et=et.get(nt)||null,mt(Ze,et,St,Ft,null);ta(Ze,St)}return null}function Pt(et,Ze,nt,St){for(var Ft=null,Dt=null,Bt=Ze,jt=Ze=0,Cn=null;Bt!==null&&jt<nt.length;jt++){Bt.index>jt?(Cn=Bt,Bt=null):Cn=Bt.sibling;var Qt=yt(et,Bt,nt[jt],St);if(Qt===null){Bt===null&&(Bt=Cn);break}g&&Bt&&Qt.alternate===null&&k(et,Bt),Ze=Ie(Qt,Ze,jt),Dt===null?Ft=Qt:Dt.sibling=Qt,Dt=Qt,Bt=Cn}if(jt===nt.length)return X(et,Bt),pn&&Zr(et,jt),Ft;if(Bt===null){for(;jt<nt.length;jt++)Bt=vt(et,nt[jt],St),Bt!==null&&(Ze=Ie(Bt,Ze,jt),Dt===null?Ft=Bt:Dt.sibling=Bt,Dt=Bt);return pn&&Zr(et,jt),Ft}for(Bt=ve(et,Bt);jt<nt.length;jt++)Cn=Et(Bt,et,jt,nt[jt],St),Cn!==null&&(g&&Cn.alternate!==null&&Bt.delete(Cn.key===null?jt:Cn.key),Ze=Ie(Cn,Ze,jt),Dt===null?Ft=Cn:Dt.sibling=Cn,Dt=Cn);return g&&Bt.forEach(function(Wr){return k(et,Wr)}),pn&&Zr(et,jt),Ft}function At(et,Ze,nt,St){var Ft=pt(nt);if(typeof Ft!="function")throw Error(e(150));if(nt=Ft.call(nt),nt==null)throw Error(e(151));for(var Dt=Ft=null,Bt=Ze,jt=Ze=0,Cn=null,Qt=nt.next();Bt!==null&&!Qt.done;jt++,Qt=nt.next()){Bt.index>jt?(Cn=Bt,Bt=null):Cn=Bt.sibling;var Wr=yt(et,Bt,Qt.value,St);if(Wr===null){Bt===null&&(Bt=Cn);break}g&&Bt&&Wr.alternate===null&&k(et,Bt),Ze=Ie(Wr,Ze,jt),Dt===null?Ft=Wr:Dt.sibling=Wr,Dt=Wr,Bt=Cn}if(Qt.done)return X(et,Bt),pn&&Zr(et,jt),Ft;if(Bt===null){for(;!Qt.done;jt++,Qt=nt.next())Qt=vt(et,Qt.value,St),Qt!==null&&(Ze=Ie(Qt,Ze,jt),Dt===null?Ft=Qt:Dt.sibling=Qt,Dt=Qt);return pn&&Zr(et,jt),Ft}for(Bt=ve(et,Bt);!Qt.done;jt++,Qt=nt.next())Qt=Et(Bt,et,jt,Qt.value,St),Qt!==null&&(g&&Qt.alternate!==null&&Bt.delete(Qt.key===null?jt:Qt.key),Ze=Ie(Qt,Ze,jt),Dt===null?Ft=Qt:Dt.sibling=Qt,Dt=Qt);return g&&Bt.forEach(function(ep){return k(et,ep)}),pn&&Zr(et,jt),Ft}function Sn(et,Ze,nt,St){if(typeof nt=="object"&&nt!==null&&nt.type===ze&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case Me:e:{for(var Ft=nt.key,Dt=Ze;Dt!==null;){if(Dt.key===Ft){if(Ft=nt.type,Ft===ze){if(Dt.tag===7){X(et,Dt.sibling),Ze=$e(Dt,nt.props.children),Ze.return=et,et=Ze;break e}}else if(Dt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===ot&&Pu(Ft)===Dt.type){X(et,Dt.sibling),Ze=$e(Dt,nt.props),Ze.ref=oo(et,Dt,nt),Ze.return=et,et=Ze;break e}X(et,Dt);break}else k(et,Dt);Dt=Dt.sibling}nt.type===ze?(Ze=ai(nt.props.children,et.mode,St,nt.key),Ze.return=et,et=Ze):(St=xa(nt.type,nt.key,nt.props,null,et.mode,St),St.ref=oo(et,Ze,nt),St.return=et,et=St)}return De(et);case Le:e:{for(Dt=nt.key;Ze!==null;){if(Ze.key===Dt)if(Ze.tag===4&&Ze.stateNode.containerInfo===nt.containerInfo&&Ze.stateNode.implementation===nt.implementation){X(et,Ze.sibling),Ze=$e(Ze,nt.children||[]),Ze.return=et,et=Ze;break e}else{X(et,Ze);break}else k(et,Ze);Ze=Ze.sibling}Ze=fs(nt,et.mode,St),Ze.return=et,et=Ze}return De(et);case ot:return Dt=nt._init,Sn(et,Ze,Dt(nt._payload),St)}if(Zt(nt))return Pt(et,Ze,nt,St);if(pt(nt))return At(et,Ze,nt,St);ta(et,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"?(nt=""+nt,Ze!==null&&Ze.tag===6?(X(et,Ze.sibling),Ze=$e(Ze,nt),Ze.return=et,et=Ze):(X(et,Ze),Ze=ds(nt,et.mode,St),Ze.return=et,et=Ze),De(et)):X(et,Ze)}return Sn}var wi=Au(!0),Ru=Au(!1),na=Nr(null),ra=null,_i=null,vl=null;function Sl(){vl=_i=ra=null}function Ol(g){var k=na.current;un(na),g._currentValue=k}function wl(g,k,X){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===X)break;g=g.return}}function $i(g,k){ra=g,vl=_i=null,g=g.dependencies,g!==null&&g.firstContext!==null&&((g.lanes&k)!==0&&(Bn=!0),g.firstContext=null)}function Kn(g){var k=g._currentValue;if(vl!==g)if(g={context:g,memoizedValue:k,next:null},_i===null){if(ra===null)throw Error(e(308));_i=g,ra.dependencies={lanes:0,firstContext:g}}else _i=_i.next=g;return k}var Qr=null;function $l(g){Qr===null?Qr=[g]:Qr.push(g)}function Nu(g,k,X,ve){var $e=k.interleaved;return $e===null?(X.next=X,$l(k)):(X.next=$e.next,$e.next=X),k.interleaved=X,Sr(g,ve)}function Sr(g,k){g.lanes|=k;var X=g.alternate;for(X!==null&&(X.lanes|=k),X=g,g=g.return;g!==null;)g.childLanes|=k,X=g.alternate,X!==null&&(X.childLanes|=k),X=g,g=g.return;return X.tag===3?X.stateNode:null}var Mr=!1;function Tl(g){g.updateQueue={baseState:g.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fu(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 Dr(g,k,X){var ve=g.updateQueue;if(ve===null)return null;if(ve=ve.shared,(Xt&2)!==0){var $e=ve.pending;return $e===null?k.next=k:(k.next=$e.next,$e.next=k),ve.pending=k,Sr(g,X)}return $e=ve.interleaved,$e===null?(k.next=k,$l(ve)):(k.next=$e.next,$e.next=k),ve.interleaved=k,Sr(g,X)}function ia(g,k,X){if(k=k.updateQueue,k!==null&&(k=k.shared,(X&4194240)!==0)){var ve=k.lanes;ve&=g.pendingLanes,X|=ve,k.lanes=X,Da(g,X)}}function Lu(g,k){var X=g.updateQueue,ve=g.alternate;if(ve!==null&&(ve=ve.updateQueue,X===ve)){var $e=null,Ie=null;if(X=X.firstBaseUpdate,X!==null){do{var De={eventTime:X.eventTime,lane:X.lane,tag:X.tag,payload:X.payload,callback:X.callback,next:null};Ie===null?$e=Ie=De:Ie=Ie.next=De,X=X.next}while(X!==null);Ie===null?$e=Ie=k:Ie=Ie.next=k}else $e=Ie=k;X={baseState:ve.baseState,firstBaseUpdate:$e,lastBaseUpdate:Ie,shared:ve.shared,effects:ve.effects},g.updateQueue=X;return}g=X.lastBaseUpdate,g===null?X.firstBaseUpdate=k:g.next=k,X.lastBaseUpdate=k}function oa(g,k,X,ve){var $e=g.updateQueue;Mr=!1;var Ie=$e.firstBaseUpdate,De=$e.lastBaseUpdate,Ge=$e.shared.pending;if(Ge!==null){$e.shared.pending=null;var Je=Ge,at=Je.next;Je.next=null,De===null?Ie=at:De.next=at,De=Je;var mt=g.alternate;mt!==null&&(mt=mt.updateQueue,Ge=mt.lastBaseUpdate,Ge!==De&&(Ge===null?mt.firstBaseUpdate=at:Ge.next=at,mt.lastBaseUpdate=Je))}if(Ie!==null){var vt=$e.baseState;De=0,mt=at=Je=null,Ge=Ie;do{var yt=Ge.lane,Et=Ge.eventTime;if((ve&yt)===yt){mt!==null&&(mt=mt.next={eventTime:Et,lane:0,tag:Ge.tag,payload:Ge.payload,callback:Ge.callback,next:null});e:{var Pt=g,At=Ge;switch(yt=k,Et=X,At.tag){case 1:if(Pt=At.payload,typeof Pt=="function"){vt=Pt.call(Et,vt,yt);break e}vt=Pt;break e;case 3:Pt.flags=Pt.flags&-65537|128;case 0:if(Pt=At.payload,yt=typeof Pt=="function"?Pt.call(Et,vt,yt):Pt,yt==null)break e;vt=Be({},vt,yt);break e;case 2:Mr=!0}}Ge.callback!==null&&Ge.lane!==0&&(g.flags|=64,yt=$e.effects,yt===null?$e.effects=[Ge]:yt.push(Ge))}else Et={eventTime:Et,lane:yt,tag:Ge.tag,payload:Ge.payload,callback:Ge.callback,next:null},mt===null?(at=mt=Et,Je=vt):mt=mt.next=Et,De|=yt;if(Ge=Ge.next,Ge===null){if(Ge=$e.shared.pending,Ge===null)break;yt=Ge,Ge=yt.next,yt.next=null,$e.lastBaseUpdate=yt,$e.shared.pending=null}}while(!0);if(mt===null&&(Je=vt),$e.baseState=Je,$e.firstBaseUpdate=at,$e.lastBaseUpdate=mt,k=$e.shared.interleaved,k!==null){$e=k;do De|=$e.lane,$e=$e.next;while($e!==k)}else Ie===null&&($e.shared.lanes=0);ni|=De,g.lanes=De,g.memoizedState=vt}}function Mu(g,k,X){if(g=k.effects,k.effects=null,g!==null)for(k=0;k<g.length;k++){var ve=g[k],$e=ve.callback;if($e!==null){if(ve.callback=null,ve=X,typeof $e!="function")throw Error(e(191,$e));$e.call(ve)}}}var ao={},lr=Nr(ao),lo=Nr(ao),so=Nr(ao);function ei(g){if(g===ao)throw Error(e(174));return g}function xl(g,k){switch(ln(so,k),ln(lo,g),ln(lr,ao),g=k.nodeType,g){case 9:case 11:k=(k=k.documentElement)?k.namespaceURI:bt(null,"");break;default:g=g===8?k.parentNode:k,k=g.namespaceURI||null,g=g.tagName,k=bt(k,g)}un(lr),ln(lr,k)}function Ti(){un(lr),un(lo),un(so)}function Du(g){ei(so.current);var k=ei(lr.current),X=bt(k,g.type);k!==X&&(ln(lo,g),ln(lr,X))}function Cl(g){lo.current===g&&(un(lr),un(lo))}var yn=Nr(0);function aa(g){for(var k=g;k!==null;){if(k.tag===13){var X=k.memoizedState;if(X!==null&&(X=X.dehydrated,X===null||X.data==="$?"||X.data==="$!"))return k}else if(k.tag===19&&k.memoizedProps.revealOrder!==void 0){if((k.flags&128)!==0)return k}else 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 kl=[];function El(){for(var g=0;g<kl.length;g++)kl[g]._workInProgressVersionPrimary=null;kl.length=0}var la=Fe.ReactCurrentDispatcher,Il=Fe.ReactCurrentBatchConfig,ti=0,gn=null,_n=null,Tn=null,sa=!1,uo=!1,co=0,Of=0;function Pn(){throw Error(e(321))}function Pl(g,k){if(k===null)return!1;for(var X=0;X<k.length&&X<g.length;X++)if(!Qn(g[X],k[X]))return!1;return!0}function Al(g,k,X,ve,$e,Ie){if(ti=Ie,gn=k,k.memoizedState=null,k.updateQueue=null,k.lanes=0,la.current=g===null||g.memoizedState===null?xf:Cf,g=X(ve,$e),uo){Ie=0;do{if(uo=!1,co=0,25<=Ie)throw Error(e(301));Ie+=1,Tn=_n=null,k.updateQueue=null,la.current=kf,g=X(ve,$e)}while(uo)}if(la.current=da,k=_n!==null&&_n.next!==null,ti=0,Tn=_n=gn=null,sa=!1,k)throw Error(e(300));return g}function Rl(){var g=co!==0;return co=0,g}function sr(){var g={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?gn.memoizedState=Tn=g:Tn=Tn.next=g,Tn}function Jn(){if(_n===null){var g=gn.alternate;g=g!==null?g.memoizedState:null}else g=_n.next;var k=Tn===null?gn.memoizedState:Tn.next;if(k!==null)Tn=k,_n=g;else{if(g===null)throw Error(e(310));_n=g,g={memoizedState:_n.memoizedState,baseState:_n.baseState,baseQueue:_n.baseQueue,queue:_n.queue,next:null},Tn===null?gn.memoizedState=Tn=g:Tn=Tn.next=g}return Tn}function fo(g,k){return typeof k=="function"?k(g):k}function Nl(g){var k=Jn(),X=k.queue;if(X===null)throw Error(e(311));X.lastRenderedReducer=g;var ve=_n,$e=ve.baseQueue,Ie=X.pending;if(Ie!==null){if($e!==null){var De=$e.next;$e.next=Ie.next,Ie.next=De}ve.baseQueue=$e=Ie,X.pending=null}if($e!==null){Ie=$e.next,ve=ve.baseState;var Ge=De=null,Je=null,at=Ie;do{var mt=at.lane;if((ti&mt)===mt)Je!==null&&(Je=Je.next={lane:0,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null}),ve=at.hasEagerState?at.eagerState:g(ve,at.action);else{var vt={lane:mt,action:at.action,hasEagerState:at.hasEagerState,eagerState:at.eagerState,next:null};Je===null?(Ge=Je=vt,De=ve):Je=Je.next=vt,gn.lanes|=mt,ni|=mt}at=at.next}while(at!==null&&at!==Ie);Je===null?De=ve:Je.next=Ge,Qn(ve,k.memoizedState)||(Bn=!0),k.memoizedState=ve,k.baseState=De,k.baseQueue=Je,X.lastRenderedState=ve}if(g=X.interleaved,g!==null){$e=g;do Ie=$e.lane,gn.lanes|=Ie,ni|=Ie,$e=$e.next;while($e!==g)}else $e===null&&(X.lanes=0);return[k.memoizedState,X.dispatch]}function Fl(g){var k=Jn(),X=k.queue;if(X===null)throw Error(e(311));X.lastRenderedReducer=g;var ve=X.dispatch,$e=X.pending,Ie=k.memoizedState;if($e!==null){X.pending=null;var De=$e=$e.next;do Ie=g(Ie,De.action),De=De.next;while(De!==$e);Qn(Ie,k.memoizedState)||(Bn=!0),k.memoizedState=Ie,k.baseQueue===null&&(k.baseState=Ie),X.lastRenderedState=Ie}return[Ie,ve]}function Bu(){}function ju(g,k){var X=gn,ve=Jn(),$e=k(),Ie=!Qn(ve.memoizedState,$e);if(Ie&&(ve.memoizedState=$e,Bn=!0),ve=ve.queue,Ll(Uu.bind(null,X,ve,g),[g]),ve.getSnapshot!==k||Ie||Tn!==null&&Tn.memoizedState.tag&1){if(X.flags|=2048,po(9,zu.bind(null,X,ve,$e,k),void 0,null),xn===null)throw Error(e(349));(ti&30)!==0||Vu(X,k,$e)}return $e}function Vu(g,k,X){g.flags|=16384,g={getSnapshot:k,value:X},k=gn.updateQueue,k===null?(k={lastEffect:null,stores:null},gn.updateQueue=k,k.stores=[g]):(X=k.stores,X===null?k.stores=[g]:X.push(g))}function zu(g,k,X,ve){k.value=X,k.getSnapshot=ve,Hu(k)&&Wu(g)}function Uu(g,k,X){return X(function(){Hu(k)&&Wu(g)})}function Hu(g){var k=g.getSnapshot;g=g.value;try{var X=k();return!Qn(g,X)}catch{return!0}}function Wu(g){var k=Sr(g,1);k!==null&&ir(k,g,1,-1)}function Gu(g){var k=sr();return typeof g=="function"&&(g=g()),k.memoizedState=k.baseState=g,g={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:g},k.queue=g,g=g.dispatch=Tf.bind(null,gn,g),[k.memoizedState,g]}function po(g,k,X,ve){return g={tag:g,create:k,destroy:X,deps:ve,next:null},k=gn.updateQueue,k===null?(k={lastEffect:null,stores:null},gn.updateQueue=k,k.lastEffect=g.next=g):(X=k.lastEffect,X===null?k.lastEffect=g.next=g:(ve=X.next,X.next=g,g.next=ve,k.lastEffect=g)),g}function qu(){return Jn().memoizedState}function ua(g,k,X,ve){var $e=sr();gn.flags|=g,$e.memoizedState=po(1|k,X,void 0,ve===void 0?null:ve)}function ca(g,k,X,ve){var $e=Jn();ve=ve===void 0?null:ve;var Ie=void 0;if(_n!==null){var De=_n.memoizedState;if(Ie=De.destroy,ve!==null&&Pl(ve,De.deps)){$e.memoizedState=po(k,X,Ie,ve);return}}gn.flags|=g,$e.memoizedState=po(1|k,X,Ie,ve)}function Ku(g,k){return ua(8390656,8,g,k)}function Ll(g,k){return ca(2048,8,g,k)}function Ju(g,k){return ca(4,2,g,k)}function Yu(g,k){return ca(4,4,g,k)}function Xu(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 Zu(g,k,X){return X=X!=null?X.concat([g]):null,ca(4,4,Xu.bind(null,k,g),X)}function Ml(){}function Qu(g,k){var X=Jn();k=k===void 0?null:k;var ve=X.memoizedState;return ve!==null&&k!==null&&Pl(k,ve[1])?ve[0]:(X.memoizedState=[g,k],g)}function ec(g,k){var X=Jn();k=k===void 0?null:k;var ve=X.memoizedState;return ve!==null&&k!==null&&Pl(k,ve[1])?ve[0]:(g=g(),X.memoizedState=[g,k],g)}function tc(g,k,X){return(ti&21)===0?(g.baseState&&(g.baseState=!1,Bn=!0),g.memoizedState=X):(Qn(X,k)||(X=Is(),gn.lanes|=X,ni|=X,g.baseState=!0),k)}function wf(g,k){var X=on;on=X!==0&&4>X?X:4,g(!0);var ve=Il.transition;Il.transition={};try{g(!1),k()}finally{on=X,Il.transition=ve}}function nc(){return Jn().memoizedState}function $f(g,k,X){var ve=zr(g);if(X={lane:ve,action:X,hasEagerState:!1,eagerState:null,next:null},rc(g))ic(k,X);else if(X=Nu(g,k,X,ve),X!==null){var $e=Ln();ir(X,g,ve,$e),oc(X,k,ve)}}function Tf(g,k,X){var ve=zr(g),$e={lane:ve,action:X,hasEagerState:!1,eagerState:null,next:null};if(rc(g))ic(k,$e);else{var Ie=g.alternate;if(g.lanes===0&&(Ie===null||Ie.lanes===0)&&(Ie=k.lastRenderedReducer,Ie!==null))try{var De=k.lastRenderedState,Ge=Ie(De,X);if($e.hasEagerState=!0,$e.eagerState=Ge,Qn(Ge,De)){var Je=k.interleaved;Je===null?($e.next=$e,$l(k)):($e.next=Je.next,Je.next=$e),k.interleaved=$e;return}}catch{}X=Nu(g,k,$e,ve),X!==null&&($e=Ln(),ir(X,g,ve,$e),oc(X,k,ve))}}function rc(g){var k=g.alternate;return g===gn||k!==null&&k===gn}function ic(g,k){uo=sa=!0;var X=g.pending;X===null?k.next=k:(k.next=X.next,X.next=k),g.pending=k}function oc(g,k,X){if((X&4194240)!==0){var ve=k.lanes;
vendor: 1,046 bytes, line 7
7ve&=g.pendingLanes,X|=ve,k.lanes=X,Da(g,X)}}var da={readContext:Kn,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useInsertionEffect:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useDeferredValue:Pn,useTransition:Pn,useMutableSource:Pn,useSyncExternalStore:Pn,useId:Pn,unstable_isNewReconciler:!1},xf={readContext:Kn,useCallback:function(g,k){return sr().memoizedState=[g,k===void 0?null:k],g},useContext:Kn,useEffect:Ku,useImperativeHandle:function(g,k,X){return X=X!=null?X.concat([g]):null,ua(4194308,4,Xu.bind(null,k,g),X)},useLayoutEffect:function(g,k){return ua(4194308,4,g,k)},useInsertionEffect:function(g,k){return ua(4,2,g,k)},useMemo:function(g,k){var X=sr();return k=k===void 0?null:k,g=g(),X.memoizedState=[g,k],g},useReducer:function(g,k,X){var ve=sr();return k=X!==void 0?X(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=$f.bind(null,gn,g),[ve.memoizedState,g]}
vendor: 11,273 bytes, lines 7-9
7,useRef:function(g){var k=sr();return g={current:g},k.memoizedState=g},useState:Gu,useDebugValue:Ml,useDeferredValue:function(g){return sr().memoizedState=g},useTransition:function(){var g=Gu(!1),k=g[0];return g=wf.bind(null,g[1]),sr().memoizedState=g,[k,g]},useMutableSource:function(){},useSyncExternalStore:function(g,k,X){var ve=gn,$e=sr();if(pn){if(X===void 0)throw Error(e(407));X=X()}else{if(X=k(),xn===null)throw Error(e(349));(ti&30)!==0||Vu(ve,k,X)}$e.memoizedState=X;var Ie={value:X,getSnapshot:k};return $e.queue=Ie,Ku(Uu.bind(null,ve,Ie,g),[g]),ve.flags|=2048,po(9,zu.bind(null,ve,Ie,X,k),void 0,null),X},useId:function(){var g=sr(),k=xn.identifierPrefix;if(pn){var X=vr,ve=br;X=(ve&~(1<<32-Zn(ve)-1)).toString(32)+X,k=":"+k+"R"+X,X=co++,0<X&&(k+="H"+X.toString(32)),k+=":"}else X=Of++,k=":"+k+"r"+X.toString(32)+":";return g.memoizedState=k},unstable_isNewReconciler:!1},Cf={readContext:Kn,useCallback:Qu,useContext:Kn,useEffect:Ll,useImperativeHandle:Zu,useInsertionEffect:Ju,useLayoutEffect:Yu,useMemo:ec,useReducer:Nl,useRef:qu,useState:function(){return Nl(fo)},useDebugValue:Ml,useDeferredValue:function(g){var k=Jn();return tc(k,_n.memoizedState,g)},useTransition:function(){var g=Nl(fo)[0],k=Jn().memoizedState;return[g,k]},useMutableSource:Bu,useSyncExternalStore:ju,useId:nc,unstable_isNewReconciler:!1},kf={readContext:Kn,useCallback:Qu,useContext:Kn,useEffect:Ll,useImperativeHandle:Zu,useInsertionEffect:Ju,useLayoutEffect:Yu,useMemo:ec,useReducer:Fl,useRef:qu,useState:function(){return Fl(fo)},useDebugValue:Ml,useDeferredValue:function(g){var k=Jn();return _n===null?k.memoizedState=g:tc(k,_n.memoizedState,g)},useTransition:function(){var g=Fl(fo)[0],k=Jn().memoizedState;return[g,k]},useMutableSource:Bu,useSyncExternalStore:ju,useId:nc,unstable_isNewReconciler:!1};function tr(g,k){if(g&&g.defaultProps){k=Be({},k),g=g.defaultProps;for(var X in g)k[X]===void 0&&(k[X]=g[X]);return k}return k}function Dl(g,k,X,ve){k=g.memoizedState,X=X(ve,k),X=X==null?k:Be({},k,X),g.memoizedState=X,g.lanes===0&&(g.updateQueue.baseState=X)}var fa={isMounted:function(g){return(g=g._reactInternals)?Kr(g)===g:!1},enqueueSetState:function(g,k,X){g=g._reactInternals;var ve=Ln(),$e=zr(g),Ie=Or(ve,$e);Ie.payload=k,X!=null&&(Ie.callback=X),k=Dr(g,Ie,$e),k!==null&&(ir(k,g,$e,ve),ia(k,g,$e))},enqueueReplaceState:function(g,k,X){g=g._reactInternals;var ve=Ln(),$e=zr(g),Ie=Or(ve,$e);Ie.tag=1,Ie.payload=k,X!=null&&(Ie.callback=X),k=Dr(g,Ie,$e),k!==null&&(ir(k,g,$e,ve),ia(k,g,$e))},enqueueForceUpdate:function(g,k){g=g._reactInternals;var X=Ln(),ve=zr(g),$e=Or(X,ve);$e.tag=2,k!=null&&($e.callback=k),k=Dr(g,$e,ve),k!==null&&(ir(k,g,ve,X),ia(k,g,ve))}};function ac(g,k,X,ve,$e,Ie,De){return g=g.stateNode,typeof g.shouldComponentUpdate=="function"?g.shouldComponentUpdate(ve,Ie,De):k.prototype&&k.prototype.isPureReactComponent?!Zi(X,ve)||!Zi($e,Ie):!0}function lc(g,k,X){var ve=!1,$e=Fr,Ie=k.contextType;return typeof Ie=="object"&&Ie!==null?Ie=Kn(Ie):($e=Dn(k)?Yr:In.current,ve=k.contextTypes,Ie=(ve=ve!=null)?bi(g,$e):Fr),k=new k(X,Ie),g.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=fa,g.stateNode=k,k._reactInternals=g,ve&&(g=g.stateNode,g.__reactInternalMemoizedUnmaskedChildContext=$e,g.__reactInternalMemoizedMaskedChildContext=Ie),k}function sc(g,k,X,ve){g=k.state,typeof k.componentWillReceiveProps=="function"&&k.componentWillReceiveProps(X,ve),typeof k.UNSAFE_componentWillReceiveProps=="function"&&k.UNSAFE_componentWillReceiveProps(X,ve),k.state!==g&&fa.enqueueReplaceState(k,k.state,null)}function Bl(g,k,X,ve){var $e=g.stateNode;$e.props=X,$e.state=g.memoizedState,$e.refs={},Tl(g);var Ie=k.contextType;typeof Ie=="object"&&Ie!==null?$e.context=Kn(Ie):(Ie=Dn(k)?Yr:In.current,$e.context=bi(g,Ie)),$e.state=g.memoizedState,Ie=k.getDerivedStateFromProps,typeof Ie=="function"&&(Dl(g,k,Ie,X),$e.state=g.memoizedState),typeof k.getDerivedStateFromProps=="function"||typeof $e.getSnapshotBeforeUpdate=="function"||typeof $e.UNSAFE_componentWillMount!="function"&&typeof $e.componentWillMount!="function"||(k=$e.state,typeof $e.componentWillMount=="function"&&$e.componentWillMount(),typeof $e.UNSAFE_componentWillMount=="function"&&$e.UNSAFE_componentWillMount(),k!==$e.state&&fa.enqueueReplaceState($e,$e.state,null),oa(g,X,$e,ve),$e.state=g.memoizedState),typeof $e.componentDidMount=="function"&&(g.flags|=4194308)}function xi(g,k){try{var X="",ve=k;do X+=Ct(ve),ve=ve.return;while(ve);var $e=X}catch(Ie){$e=` 8Error generating stack: `+Ie.message+` 9`+Ie.stack}return{value:g,source:k,stack:$e,digest:null}}function jl(g,k,X){return{value:g,source:null,stack:X??null,digest:k??null}}function Vl(g,k){try{console.error(k.value)}catch(X){setTimeout(function(){throw X})}}var Ef=typeof WeakMap=="function"?WeakMap:Map;function uc(g,k,X){X=Or(-1,X),X.tag=3,X.payload={element:null};var ve=k.value;return X.callback=function(){va||(va=!0,ns=ve),Vl(g,k)},X}function cc(g,k,X){X=Or(-1,X),X.tag=3;var ve=g.type.getDerivedStateFromError;if(typeof ve=="function"){var $e=k.value;X.payload=function(){return ve($e)},X.callback=function(){Vl(g,k)}}var Ie=g.stateNode;return Ie!==null&&typeof Ie.componentDidCatch=="function"&&(X.callback=function(){Vl(g,k),typeof ve!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var De=k.stack;this.componentDidCatch(k.value,{componentStack:De!==null?De:""})}),X}function dc(g,k,X){var ve=g.pingCache;if(ve===null){ve=g.pingCache=new Ef;var $e=new Set;ve.set(k,$e)}else $e=ve.get(k),$e===void 0&&($e=new Set,ve.set(k,$e));$e.has(X)||($e.add(X),g=Uf.bind(null,g,k,X),k.then(g,g))}function fc(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 pc(g,k,X,ve,$e){return(g.mode&1)===0?(g===k?g.flags|=65536:(g.flags|=128,X.flags|=131072,X.flags&=-52805,X.tag===1&&(X.alternate===null?X.tag=17:(k=Or(-1,1),k.tag=2,Dr(X,k,1))),X.lanes|=1),g):(g.flags|=65536,g.lanes=$e,g)}var If=Fe.ReactCurrentOwner,Bn=!1;function Fn(g,k,X,ve){k.child=g===null?Ru(k,null,X,ve):wi(k,g.child,X,ve)}function hc(g,k,X,ve,$e){X=X.render;var Ie=k.ref;return $i(k,$e),ve=Al(g,k,X,ve,Ie,$e),X=Rl(),g!==null&&!Bn?(k.updateQueue=g.updateQueue,k.flags&=-2053,g.lanes&=~$e,wr(g,k,$e)):(pn&&X&&hl(k),k.flags|=1,Fn(g,k,ve,$e),k.child)}function yc(g,k,X,ve,$e){if(g===null){var Ie=X.type;return typeof Ie=="function"&&!cs(Ie)&&Ie.defaultProps===void 0&&X.compare===null&&X.defaultProps===void 0?(k.tag=15,k.type=Ie,gc(g,k,Ie,ve,$e)):(g=xa(X.type,null,ve,k,k.mode,$e),g.ref=k.ref,g.return=k,k.child=g)}if(Ie=g.child,(g.lanes&$e)===0){var De=Ie.memoizedProps;if(X=X.compare,X=X!==null?X:Zi,X(De,ve)&&g.ref===k.ref)return wr(g,k,$e)}return k.flags|=1,g=Hr(Ie,ve),g.ref=k.ref,g.return=k,k.child=g}function gc(g,k,X,ve,$e){if(g!==null){var Ie=g.memoizedProps;if(Zi(Ie,ve)&&g.ref===k.ref)if(Bn=!1,k.pendingProps=ve=Ie,(g.lanes&$e)!==0)(g.flags&131072)!==0&&(Bn=!0);else return k.lanes=g.lanes,wr(g,k,$e)}return zl(g,k,X,ve,$e)}function mc(g,k,X){var ve=k.pendingProps,$e=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},ln(ki,Wn),Wn|=X;else{if((X&1073741824)===0)return g=Ie!==null?Ie.baseLanes|X:X,k.lanes=k.childLanes=1073741824,k.memoizedState={baseLanes:g,cachePool:null,transitions:null},k.updateQueue=null,ln(ki,Wn),Wn|=g,null;k.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve=Ie!==null?Ie.baseLanes:X,ln(ki,Wn),Wn|=ve}else Ie!==null?(ve=Ie.baseLanes|X,k.memoizedState=null):ve=X,ln(ki,Wn),Wn|=ve;return Fn(g,k,$e,X),k.child}function bc(g,k){var X=k.ref;(g===null&&X!==null||g!==null&&g.ref!==X)&&(k.flags|=512,k.flags|=2097152)}function zl(g,k,X,ve,$e){var Ie=Dn(X)?Yr:In.current;return Ie=bi(k,Ie),$i(k,$e),X=Al(g,k,X,ve,Ie,$e),ve=Rl(),g!==null&&!Bn?(k.updateQueue=g.updateQueue,k.flags&=-2053,g.lanes&=~$e,wr(g,k,$e)):(pn&&ve&&hl(k),k.flags|=1,Fn(g,k,X,$e),k.child)}function vc(g,k,X,ve,$e){if(Dn(X)){var Ie=!0;Yo(k)}else Ie=!1;if($i(k,$e),k.stateNode===null)ha(g,k),lc(k,X,ve),Bl(k,X,ve,$e),ve=!0;else if(g===null){var De=k.stateNode,Ge=k.memoizedProps;De.props=Ge;var Je=De.context,at=X.contextType;typeof at=="object"&&at!==null?at=Kn(at):(at=Dn(X)?Yr:In.current,at=bi(k,at));var mt=X.getDerivedStateFromProps,vt=typeof mt=="function"||typeof De.getSnapshotBeforeUpdate=="function";vt||typeof De.UNSAFE_componentWillReceiveProps!="function"&&typeof De.componentWillReceiveProps!="function"||(Ge!==ve||Je!==at)&&sc(k,De,ve,at),Mr=!1;var yt=k.memoizedState;De.state=yt,oa(k,ve,De,$e),Je=k.memoizedState,Ge!==ve||yt!==Je||Mn.current||Mr?(typeof mt=="function"&&(Dl(k,X,mt,ve),Je=k.memoizedState),(Ge=Mr||ac(k,X,Ge,ve,yt,Je,at))?(vt||typeof De.UNSAFE_componentWillMount!="function"&&typeof De.componentWillMount!="function"||(typeof De.componentWillMount=="function"&&De.componentWillMount(),typeof De.UNSAFE_componentWillMount=="function"&&De.UNSAFE_componentWillMount()),typeof De.componentDidMount=="function"&&(k.flags|=4194308)):(typeof De.componentDidMount=="function"&&(k.flags|=4194308),k.memoizedProps=ve,k.memoizedState=Je),De.props=ve,De.state=Je,De.context=at,ve=Ge):(typeof De.componentDidMount=="function"&&(k.flags|=4194308),ve=!1)}else{De=k.stateNode,Fu(g,k),Ge=k.memoizedProps,at=k.type===k.elementType?Ge:tr(k.type,Ge),De.props=at,vt=k.pendingProps,yt=De.context,Je=X.contextType,typeof Je=="object"&&Je!==null?Je=Kn(Je):(Je=Dn(X)?Yr:In.current,Je=bi(k,Je));var Et=X.getDerivedStateFromProps;(mt=typeof Et=="function"||typeof De.getSnapshotBeforeUpdate=="function")||typeof De.UNSAFE_componentWillReceiveProps!="function"&&typeof De.componentWillReceiveProps!="function"||(Ge!==vt||yt!==Je)&&sc(k,De,ve,Je),Mr=!1,yt=k.memoizedState,De.state=yt,oa(k,ve,De,$e);var Pt=k.memoizedState;Ge!==vt||yt!==Pt||Mn.current||Mr?(typeof Et=="function"&&(Dl(k,X,Et,ve),Pt=k.memoizedState),(at=Mr||ac(k,X,at,ve,yt,Pt,Je)||!1)?(mt||typeof De.UNSAFE_componentWillUpdate!="function"&&typeof De.componentWillUpdate!="function"||(typeof De.componentWillUpdate=="function"&&De.componentWillUpdate(ve,Pt,Je),typeof De.UNSAFE_componentWillUpdate=="function"&&De.UNSAFE_componentWillUpdate(ve,Pt,Je)),typeof De.componentDidUpdate=="function"&&(k.flags|=4),typeof De.getSnapshotBeforeUpdate=="function"&&(k.flags|=1024)):(typeof De.componentDidUpdate!="function"||Ge===g.memoizedProps&&yt===g.memoizedState||(k.flags|=4),typeof De.getSnapshotBeforeUpdate!="function"||Ge===g.memoizedProps&&yt===g.memoizedState||(k.flags|=1024),k.memoizedProps=ve,k.memoizedState=Pt),De.props=ve,De.state=Pt,De.context=Je,ve=at):(typeof De.componentDidUpdate!="function"||Ge===g.memoizedProps&&yt===g.memoizedState||(k.flags|=4),typeof De.getSnapshotBeforeUpdate!="function"||Ge===g.memoizedProps&&yt===g.memoizedState||(k.flags|=1024),ve=!1)}return Ul(g,k,X,ve,Ie,$e)}function Ul(g,k,X,ve,$e,Ie){bc(g,k);var De=(k.flags&128)!==0;if(!ve&&!De)return $e&&$u(k,X,!1),wr(g,k,Ie);ve=k.stateNode,If.current=k;var Ge=De&&typeof X.getDerivedStateFromError!="function"?null:ve.render();return k.flags|=1,g!==null&&De?(k.child=wi(k,g.child,null,Ie),k.child=wi(k,null,Ge,Ie)):Fn(g,k,Ge,Ie),k.memoizedState=ve.state,$e&&$u(k,X,!0),k.child}function Sc(g){var k=g.stateNode;k.pendingContext?Ou(g,k.pendingContext,k.pendingContext!==k.context):k.context&&Ou(g,k.c
vendor: 8,938 bytes, line 9
9ontext,!1),xl(g,k.containerInfo)}function Oc(g,k,X,ve,$e){return Oi(),bl($e),k.flags|=256,Fn(g,k,X,ve),k.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function Wl(g){return{baseLanes:g,cachePool:null,transitions:null}}function wc(g,k,X){var ve=k.pendingProps,$e=yn.current,Ie=!1,De=(k.flags&128)!==0,Ge;if((Ge=De)||(Ge=g!==null&&g.memoizedState===null?!1:($e&2)!==0),Ge?(Ie=!0,k.flags&=-129):(g===null||g.memoizedState!==null)&&($e|=1),ln(yn,$e&1),g===null)return ml(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):(De=ve.children,g=ve.fallback,Ie?(ve=k.mode,Ie=k.child,De={mode:"hidden",children:De},(ve&1)===0&&Ie!==null?(Ie.childLanes=0,Ie.pendingProps=De):Ie=Ca(De,ve,0,null),g=ai(g,ve,X,null),Ie.return=k,g.return=k,Ie.sibling=g,k.child=Ie,k.child.memoizedState=Wl(X),k.memoizedState=Hl,g):Gl(k,De));if($e=g.memoizedState,$e!==null&&(Ge=$e.dehydrated,Ge!==null))return Pf(g,k,De,ve,Ge,$e,X);if(Ie){Ie=ve.fallback,De=k.mode,$e=g.child,Ge=$e.sibling;var Je={mode:"hidden",children:ve.children};return(De&1)===0&&k.child!==$e?(ve=k.child,ve.childLanes=0,ve.pendingProps=Je,k.deletions=null):(ve=Hr($e,Je),ve.subtreeFlags=$e.subtreeFlags&14680064),Ge!==null?Ie=Hr(Ge,Ie):(Ie=ai(Ie,De,X,null),Ie.flags|=2),Ie.return=k,ve.return=k,ve.sibling=Ie,k.child=ve,ve=Ie,Ie=k.child,De=g.child.memoizedState,De=De===null?Wl(X):{baseLanes:De.baseLanes|X,cachePool:null,transitions:De.transitions},Ie.memoizedState=De,Ie.childLanes=g.childLanes&~X,k.memoizedState=Hl,ve}return Ie=g.child,g=Ie.sibling,ve=Hr(Ie,{mode:"visible",children:ve.children}),(k.mode&1)===0&&(ve.lanes=X),ve.return=k,ve.sibling=null,g!==null&&(X=k.deletions,X===null?(k.deletions=[g],k.flags|=16):X.push(g)),k.child=ve,k.memoizedState=null,ve}function Gl(g,k){return k=Ca({mode:"visible",children:k},g.mode,0,null),k.return=g,g.child=k}function pa(g,k,X,ve){return ve!==null&&bl(ve),wi(k,g.child,null,X),g=Gl(k,k.pendingProps.children),g.flags|=2,k.memoizedState=null,g}function Pf(g,k,X,ve,$e,Ie,De){if(X)return k.flags&256?(k.flags&=-257,ve=jl(Error(e(422))),pa(g,k,De,ve)):k.memoizedState!==null?(k.child=g.child,k.flags|=128,null):(Ie=ve.fallback,$e=k.mode,ve=Ca({mode:"visible",children:ve.children},$e,0,null),Ie=ai(Ie,$e,De,null),Ie.flags|=2,ve.return=k,Ie.return=k,ve.sibling=Ie,k.child=ve,(k.mode&1)!==0&&wi(k,g.child,null,De),k.child.memoizedState=Wl(De),k.memoizedState=Hl,Ie);if((k.mode&1)===0)return pa(g,k,De,null);if($e.data==="$!"){if(ve=$e.nextSibling&&$e.nextSibling.dataset,ve)var Ge=ve.dgst;return ve=Ge,Ie=Error(e(419)),ve=jl(Ie,ve,void 0),pa(g,k,De,ve)}if(Ge=(De&g.childLanes)!==0,Bn||Ge){if(ve=xn,ve!==null){switch(De&-De){case 4:$e=2;break;case 16:$e=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:$e=32;break;case 536870912:$e=268435456;break;default:$e=0}$e=($e&(ve.suspendedLanes|De))!==0?0:$e,$e!==0&&$e!==Ie.retryLane&&(Ie.retryLane=$e,Sr(g,$e),ir(ve,g,$e,-1))}return us(),ve=jl(Error(e(421))),pa(g,k,De,ve)}return $e.data==="$?"?(k.flags|=128,k.child=g.child,k=Hf.bind(null,g),$e._reactRetry=k,null):(g=Ie.treeContext,Hn=Rr($e.nextSibling),Un=k,pn=!0,er=null,g!==null&&(Gn[qn++]=br,Gn[qn++]=vr,Gn[qn++]=Xr,br=g.id,vr=g.overflow,Xr=k),k=Gl(k,ve.children),k.flags|=4096,k)}function $c(g,k,X){g.lanes|=k;var ve=g.alternate;ve!==null&&(ve.lanes|=k),wl(g.return,k,X)}function ql(g,k,X,ve,$e){var Ie=g.memoizedState;Ie===null?g.memoizedState={isBackwards:k,rendering:null,renderingStartTime:0,last:ve,tail:X,tailMode:$e}:(Ie.isBackwards=k,Ie.rendering=null,Ie.renderingStartTime=0,Ie.last=ve,Ie.tail=X,Ie.tailMode=$e)}function Tc(g,k,X){var ve=k.pendingProps,$e=ve.revealOrder,Ie=ve.tail;if(Fn(g,k,ve.children,X),ve=yn.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&&$c(g,X,k);else if(g.tag===19)$c(g,X,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(ln(yn,ve),(k.mode&1)===0)k.memoizedState=null;else switch($e){case"forwards":for(X=k.child,$e=null;X!==null;)g=X.alternate,g!==null&&aa(g)===null&&($e=X),X=X.sibling;X=$e,X===null?($e=k.child,k.child=null):($e=X.sibling,X.sibling=null),ql(k,!1,$e,X,Ie);break;case"backwards":for(X=null,$e=k.child,k.child=null;$e!==null;){if(g=$e.alternate,g!==null&&aa(g)===null){k.child=$e;break}g=$e.sibling,$e.sibling=X,X=$e,$e=g}ql(k,!0,X,null,Ie);break;case"together":ql(k,!1,null,null,void 0);break;default:k.memoizedState=null}return k.child}function ha(g,k){(k.mode&1)===0&&g!==null&&(g.alternate=null,k.alternate=null,k.flags|=2)}function wr(g,k,X){if(g!==null&&(k.dependencies=g.dependencies),ni|=k.lanes,(X&k.childLanes)===0)return null;if(g!==null&&k.child!==g.child)throw Error(e(153));if(k.child!==null){for(g=k.child,X=Hr(g,g.pendingProps),k.child=X,X.return=k;g.sibling!==null;)g=g.sibling,X=X.sibling=Hr(g,g.pendingProps),X.return=k;X.sibling=null}return k.child}function Af(g,k,X){switch(k.tag){case 3:Sc(k),Oi();break;case 5:Du(k);break;case 1:Dn(k.type)&&Yo(k);break;case 4:xl(k,k.stateNode.containerInfo);break;case 10:var ve=k.type._context,$e=k.memoizedProps.value;ln(na,ve._currentValue),ve._currentValue=$e;break;case 13:if(ve=k.memoizedState,ve!==null)return ve.dehydrated!==null?(ln(yn,yn.current&1),k.flags|=128,null):(X&k.child.childLanes)!==0?wc(g,k,X):(ln(yn,yn.current&1),g=wr(g,k,X),g!==null?g.sibling:null);ln(yn,yn.current&1);break;case 19:if(ve=(X&k.childLanes)!==0,(g.flags&128)!==0){if(ve)return Tc(g,k,X);k.flags|=128}if($e=k.memoizedState,$e!==null&&($e.rendering=null,$e.tail=null,$e.lastEffect=null),ln(yn,yn.current),ve)break;return null;case 22:case 23:return k.lanes=0,mc(g,k,X)}return wr(g,k,X)}var xc,Kl,Cc,kc;xc=function(g,k){for(var X=k.child;X!==null;){if(X.tag===5||X.tag===6)g.appendChild(X.stateNode);else if(X.tag!==4&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===k)break;for(;X.sibling===null;){if(X.return===null||X.return===k)return;X=X.return}X.sibling.return=X.return,X=X.sibling}},Kl=function(){},Cc=function(g,k,X,ve){var $e=g.memoizedProps;if($e!==ve){g=k.stateNode,ei(lr.current);var Ie=null;switch(X){case"input":$e=Wt(g,$e),ve=Wt(g,ve),Ie=[];break;case"select":$e=Be({},$e,{value:void 0}),ve=Be({},ve,{value:void 0}),Ie=[];break;case"textarea":$e=On(g,$e),ve=On(g,ve),Ie=[];break;default:typeof $e.onClick!="function"&&typeof ve.onClick=="function"&&(g.onclick=qo)}ct(X,ve);var De;X=null;for(at in $e)if(!ve.hasOwnProperty(at)&&$e.hasOwnProperty(at)&&$e[at]!=null)if(at==="style"){var Ge=$e[at];for(De in Ge)Ge.hasOwnProperty(De)&&(X||(X={}),X[De]="")}else at!=="dangerouslySetInnerHTML"&&at!=="children"&&at!=="suppressContentEditableWarning"&&at!=="suppressHydrationWarning"&&at!=="autoFocus"&&(o.hasOwnProperty(at)?Ie||(Ie=[]):(Ie=Ie||[]).push(at,null));for(at in ve){var Je=ve[at];if(Ge=$e?.[at],ve.hasOwnProperty(at)&&Je!==Ge&&(Je!=null||Ge!=null))if(at==="style")if(Ge){for(De in Ge)!Ge.hasOwnProperty(De)||Je&&Je.hasOwnProperty(De)||(X||(X={}),X[De]="");for(De in Je)Je.hasOwnProperty(De)&&Ge[De]!==Je[De]&&(X||(X={}),X[De]=Je[De])}else X||(Ie||(Ie=[]),Ie.push(at,X)),X=Je;else at==="dangerouslySetInnerHTML"?(Je=Je?Je.__html:void 0,Ge=Ge?Ge.__html:void 0,Je!=null&&Ge!==Je&&(Ie=Ie||[]).push(at,Je)):at==="children"?typeof Je!="string"&&typeof Je!="number"||(Ie=Ie||[]).push(at,""+Je):at!=="suppressContentEditableWarning"&&at!=="suppressHydrationWarning"&&(o.hasOwnProperty(at)?(Je!=null&&at==="onScroll"&&sn("scroll",g),Ie||Ge===Je||(Ie=[])):(Ie=Ie||[]).push(at,Je))}X&&(Ie=Ie||[]).push("style",X);var at=Ie;(k.updateQueue=at)&&(k.flags|=4)}},kc=function(g,k,X,ve){X!==ve&&(k.flags|=4)};function ho(g,k){if(!pn)switch(g.tailMode){case"hidden":k=g.tail;for(var X=null;k!==null;)k.alternate!==null&&(X=k),k=k.sibling;X===null?g.tail=null:X.sibling=null;break;case"collapsed":X=g.tail;for(var ve=null;X!==null;)X.alternate!==null&&(ve=X),X=X.sibling;ve===null?k||g.tail===null?g.tail=null:g.tail.sibling=null:ve.sibling=null}}function An(g){var k=g.alternate!==null&&g.alternate.child===g.child,X=0,ve=0;if(k)for(var $e=g.child;$e!==null;)X|=$e.lanes|$e.childLanes,ve|=$e.subtreeFlags&14680064,ve|=$e.flags&14680064,$e.return=g,$e=$e.sibling;else for($e=g.child;$e!==null;)X|=$e.lanes|$e.childLanes,ve|=$e.subtreeFlags,ve|=$e.flags,$e.return=g,$e=$e.sibling;return g.subtreeFlags|=ve,g.childLanes=X,k}function Rf(g,k,X){var ve=k.pendingProps;switch(yl(k),k.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(k),null;case 1:return Dn(k.type)&&Jo(),An(k),null;case 3:return ve=k.stateNode,Ti(),un(Mn),un(In),El(),ve.pendingContext&&(ve.context=ve.pen
vendor: 29,153 bytes, line 9
9dingContext,ve.pendingContext=null),(g===null||g.child===null)&&(ea(k)?k.flags|=4:g===null||g.memoizedState.isDehydrated&&(k.flags&256)===0||(k.flags|=1024,er!==null&&(as(er),er=null))),Kl(g,k),An(k),null;case 5:Cl(k);var $e=ei(so.current);if(X=k.type,g!==null&&k.stateNode!=null)Cc(g,k,X,ve,$e),g.ref!==k.ref&&(k.flags|=512,k.flags|=2097152);else{if(!ve){if(k.stateNode===null)throw Error(e(166));return An(k),null}if(g=ei(lr.current),ea(k)){ve=k.stateNode,X=k.type;var Ie=k.memoizedProps;switch(ve[ar]=k,ve[ro]=Ie,g=(k.mode&1)!==0,X){case"dialog":sn("cancel",ve),sn("close",ve);break;case"iframe":case"object":case"embed":sn("load",ve);break;case"video":case"audio":for($e=0;$e<eo.length;$e++)sn(eo[$e],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":dn(ve,Ie),sn("invalid",ve);break;case"select":ve._wrapperState={wasMultiple:!!Ie.multiple},sn("invalid",ve);break;case"textarea":tn(ve,Ie),sn("invalid",ve)}ct(X,Ie),$e=null;for(var De in Ie)if(Ie.hasOwnProperty(De)){var Ge=Ie[De];De==="children"?typeof Ge=="string"?ve.textContent!==Ge&&(Ie.suppressHydrationWarning!==!0&&Go(ve.textContent,Ge,g),$e=["children",Ge]):typeof Ge=="number"&&ve.textContent!==""+Ge&&(Ie.suppressHydrationWarning!==!0&&Go(ve.textContent,Ge,g),$e=["children",""+Ge]):o.hasOwnProperty(De)&&Ge!=null&&De==="onScroll"&&sn("scroll",ve)}switch(X){case"input":qt(ve),nn(ve,Ie,!0);break;case"textarea":qt(ve),Gt(ve);break;case"select":case"option":break;default:typeof Ie.onClick=="function"&&(ve.onclick=qo)}ve=$e,k.updateQueue=ve,ve!==null&&(k.flags|=4)}else{De=$e.nodeType===9?$e:$e.ownerDocument,g==="http://www.w3.org/1999/xhtml"&&(g=ut(X)),g==="http://www.w3.org/1999/xhtml"?X==="script"?(g=De.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild)):typeof ve.is=="string"?g=De.createElement(X,{is:ve.is}):(g=De.createElement(X),X==="select"&&(De=g,ve.multiple?De.multiple=!0:ve.size&&(De.size=ve.size))):g=De.createElementNS(g,X),g[ar]=k,g[ro]=ve,xc(g,k,!1,!1),k.stateNode=g;e:{switch(De=ht(X,ve),X){case"dialog":sn("cancel",g),sn("close",g),$e=ve;break;case"iframe":case"object":case"embed":sn("load",g),$e=ve;break;case"video":case"audio":for($e=0;$e<eo.length;$e++)sn(eo[$e],g);$e=ve;break;case"source":sn("error",g),$e=ve;break;case"img":case"image":case"link":sn("error",g),sn("load",g),$e=ve;break;case"details":sn("toggle",g),$e=ve;break;case"input":dn(g,ve),$e=Wt(g,ve),sn("invalid",g);break;case"option":$e=ve;break;case"select":g._wrapperState={wasMultiple:!!ve.multiple},$e=Be({},ve,{value:void 0}),sn("invalid",g);break;case"textarea":tn(g,ve),$e=On(g,ve),sn("invalid",g);break;default:$e=ve}ct(X,$e),Ge=$e;for(Ie in Ge)if(Ge.hasOwnProperty(Ie)){var Je=Ge[Ie];Ie==="style"?it(g,Je):Ie==="dangerouslySetInnerHTML"?(Je=Je?Je.__html:void 0,Je!=null&&Lt(g,Je)):Ie==="children"?typeof Je=="string"?(X!=="textarea"||Je!=="")&&Nt(g,Je):typeof Je=="number"&&Nt(g,""+Je):Ie!=="suppressContentEditableWarning"&&Ie!=="suppressHydrationWarning"&&Ie!=="autoFocus"&&(o.hasOwnProperty(Ie)?Je!=null&&Ie==="onScroll"&&sn("scroll",g):Je!=null&&Ne(g,Ie,Je,De))}switch(X){case"input":qt(g),nn(g,ve,!1);break;case"textarea":qt(g),Gt(g);break;case"option":ve.value!=null&&g.setAttribute("value",""+gt(ve.value));break;case"select":g.multiple=!!ve.multiple,Ie=ve.value,Ie!=null?fn(g,!!ve.multiple,Ie,!1):ve.defaultValue!=null&&fn(g,!!ve.multiple,ve.defaultValue,!0);break;default:typeof $e.onClick=="function"&&(g.onclick=qo)}switch(X){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 An(k),null;case 6:if(g&&k.stateNode!=null)kc(g,k,g.memoizedProps,ve);else{if(typeof ve!="string"&&k.stateNode===null)throw Error(e(166));if(X=ei(so.current),ei(lr.current),ea(k)){if(ve=k.stateNode,X=k.memoizedProps,ve[ar]=k,(Ie=ve.nodeValue!==X)&&(g=Un,g!==null))switch(g.tag){case 3:Go(ve.nodeValue,X,(g.mode&1)!==0);break;case 5:g.memoizedProps.suppressHydrationWarning!==!0&&Go(ve.nodeValue,X,(g.mode&1)!==0)}Ie&&(k.flags|=4)}else ve=(X.nodeType===9?X:X.ownerDocument).createTextNode(ve),ve[ar]=k,k.stateNode=ve}return An(k),null;case 13:if(un(yn),ve=k.memoizedState,g===null||g.memoizedState!==null&&g.memoizedState.dehydrated!==null){if(pn&&Hn!==null&&(k.mode&1)!==0&&(k.flags&128)===0)Iu(),Oi(),k.flags|=98560,Ie=!1;else if(Ie=ea(k),ve!==null&&ve.dehydrated!==null){if(g===null){if(!Ie)throw Error(e(318));if(Ie=k.memoizedState,Ie=Ie!==null?Ie.dehydrated:null,!Ie)throw Error(e(317));Ie[ar]=k}else Oi(),(k.flags&128)===0&&(k.memoizedState=null),k.flags|=4;An(k),Ie=!1}else er!==null&&(as(er),er=null),Ie=!0;if(!Ie)return k.flags&65536?k:null}return(k.flags&128)!==0?(k.lanes=X,k):(ve=ve!==null,ve!==(g!==null&&g.memoizedState!==null)&&ve&&(k.child.flags|=8192,(k.mode&1)!==0&&(g===null||(yn.current&1)!==0?$n===0&&($n=3):us())),k.updateQueue!==null&&(k.flags|=4),An(k),null);case 4:return Ti(),Kl(g,k),g===null&&to(k.stateNode.containerInfo),An(k),null;case 10:return Ol(k.type._context),An(k),null;case 17:return Dn(k.type)&&Jo(),An(k),null;case 19:if(un(yn),Ie=k.memoizedState,Ie===null)return An(k),null;if(ve=(k.flags&128)!==0,De=Ie.rendering,De===null)if(ve)ho(Ie,!1);else{if($n!==0||g!==null&&(g.flags&128)!==0)for(g=k.child;g!==null;){if(De=aa(g),De!==null){for(k.flags|=128,ho(Ie,!1),ve=De.updateQueue,ve!==null&&(k.updateQueue=ve,k.flags|=4),k.subtreeFlags=0,ve=X,X=k.child;X!==null;)Ie=X,g=ve,Ie.flags&=14680066,De=Ie.alternate,De===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=De.childLanes,Ie.lanes=De.lanes,Ie.child=De.child,Ie.subtreeFlags=0,Ie.deletions=null,Ie.memoizedProps=De.memoizedProps,Ie.memoizedState=De.memoizedState,Ie.updateQueue=De.updateQueue,Ie.type=De.type,g=De.dependencies,Ie.dependencies=g===null?null:{lanes:g.lanes,firstContext:g.firstContext}),X=X.sibling;return ln(yn,yn.current&1|2),k.child}g=g.sibling}Ie.tail!==null&&vn()>Ei&&(k.flags|=128,ve=!0,ho(Ie,!1),k.lanes=4194304)}else{if(!ve)if(g=aa(De),g!==null){if(k.flags|=128,ve=!0,X=g.updateQueue,X!==null&&(k.updateQueue=X,k.flags|=4),ho(Ie,!0),Ie.tail===null&&Ie.tailMode==="hidden"&&!De.alternate&&!pn)return An(k),null}else 2*vn()-Ie.renderingStartTime>Ei&&X!==1073741824&&(k.flags|=128,ve=!0,ho(Ie,!1),k.lanes=4194304);Ie.isBackwards?(De.sibling=k.child,k.child=De):(X=Ie.last,X!==null?X.sibling=De:k.child=De,Ie.last=De)}return Ie.tail!==null?(k=Ie.tail,Ie.rendering=k,Ie.tail=k.sibling,Ie.renderingStartTime=vn(),k.sibling=null,X=yn.current,ln(yn,ve?X&1|2:X&1),k):(An(k),null);case 22:case 23:return ss(),ve=k.memoizedState!==null,g!==null&&g.memoizedState!==null!==ve&&(k.flags|=8192),ve&&(k.mode&1)!==0?(Wn&1073741824)!==0&&(An(k),k.subtreeFlags&6&&(k.flags|=8192)):An(k),null;case 24:return null;case 25:return null}throw Error(e(156,k.tag))}function Nf(g,k){switch(yl(k),k.tag){case 1:return Dn(k.type)&&Jo(),g=k.flags,g&65536?(k.flags=g&-65537|128,k):null;case 3:return Ti(),un(Mn),un(In),El(),g=k.flags,(g&65536)!==0&&(g&128)===0?(k.flags=g&-65537|128,k):null;case 5:return Cl(k),null;case 13:if(un(yn),g=k.memoizedState,g!==null&&g.dehydrated!==null){if(k.alternate===null)throw Error(e(340));Oi()}return g=k.flags,g&65536?(k.flags=g&-65537|128,k):null;case 19:return un(yn),null;case 4:return Ti(),null;case 10:return Ol(k.type._context),null;case 22:case 23:return ss(),null;case 24:return null;default:return null}}var ya=!1,Rn=!1,Ff=typeof WeakSet=="function"?WeakSet:Set,It=null;function Ci(g,k){var X=g.ref;if(X!==null)if(typeof X=="function")try{X(null)}catch(ve){mn(g,k,ve)}else X.current=null}function Jl(g,k,X){try{X()}catch(ve){mn(g,k,ve)}}var Ec=!1;function Lf(g,k){if(al=Fo,g=ou(),Za(g)){if("selectionStart"in g)var X={start:g.selectionStart,end:g.selectionEnd};else e:{X=(X=g.ownerDocument)&&X.defaultView||window;var ve=X.getSelection&&X.getSelection();if(ve&&ve.rangeCount!==0){X=ve.anchorNode;var $e=ve.anchorOffset,Ie=ve.focusNode;ve=ve.focusOffset;try{X.nodeType,Ie.nodeType}catch{X=null;break e}var De=0,Ge=-1,Je=-1,at=0,mt=0,vt=g,yt=null;t:for(;;){for(var Et;vt!==X||$e!==0&&vt.nodeType!==3||(Ge=De+$e),vt!==Ie||ve!==0&&vt.nodeType!==3||(Je=De+ve),vt.nodeType===3&&(De+=vt.nodeValue.length),(Et=vt.firstChild)!==null;)yt=vt,vt=Et;for(;;){if(vt===g)break t;if(yt===X&&++at===$e&&(Ge=De),yt===Ie&&++mt===ve&&(Je=De),(Et=vt.nextSibling)!==null)break;vt=yt,yt=vt.parentNode}vt=Et}X=Ge===-1||Je===-1?null:{start:Ge,end:Je}}else X=null}X=X||{start:0,end:0}}else X=null;for(ll={focusedElem:g,selectionRange:X},Fo=!1,It=k;It!==null;)if(k=It,g=k.child,(k.subtreeFlags&1028)!==0&&g!==null)g.return=k,It=g;else for(;It!==null;){k=It;try{var Pt=k.alternate;if((k.flags&1024)!==0)switch(k.tag){case 0:case 11:case 15:break;case 1:if(Pt!==null){var At=Pt.memoizedProps,Sn=Pt.memoizedState,et=k.stateNode,Ze=et.getSnapshotBeforeUpdate(k.elementType===k.type?At:tr(k.type,At),Sn);et.__reactInternalSnapshotBeforeUpdate=Ze}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(e(163))}}catch(St){mn(k,k.return,St)}if(g=k.sibling,g!==null){g.return=k.return,It=g;break}It=k.return}return Pt=Ec,Ec=!1,Pt}function yo(g,k,X){var ve=k.updateQueue;if(ve=ve!==null?ve.lastEffect:null,ve!==null){var $e=ve=ve.next;do{if(($e.tag&g)===g){var Ie=$e.destroy;$e.destroy=void 0,Ie!==void 0&&Jl(k,X,Ie)}$e=$e.next}while($e!==ve)}}function ga(g,k){if(k=k.updateQueue,k=k!==null?k.lastEffect:null,k!==null){var X=k=k.next;do{if((X.tag&g)===g){var ve=X.create;X.destroy=ve()}X=X.next}while(X!==k)}}function Yl(g){var k=g.ref;if(k!==null){var X=g.stateNode;switch(g.tag){case 5:g=X;break;default:g=X}typeof k=="function"?k(g):k.current=g}}function Ic(g){var k=g.alternate;k!==null&&(g.alternate=null,Ic(k)),g.child=null,g.deletions=null,g.sibling=null,g.tag===5&&(k=g.stateNode,k!==null&&(delete k[ar],delete k[ro],delete k[dl],delete k[mf],delete k[bf])),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 Pc(g){return g.tag===5||g.tag===3||g.tag===4}function Ac(g){e:for(;;){for(;g.sibling===null;){if(g.return===null||Pc(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 Xl(g,k,X){var ve=g.tag;if(ve===5||ve===6)g=g.stateNode,k?X.nodeType===8?X.parentNode.insertBefore(g,k):X.insertBefore(g,k):(X.nodeType===8?(k=X.parentNode,k.insertBefore(g,X)):(k=X,k.appendChild(g)),X=X._reactRootContainer,X!=null||k.onclick!==null||(k.onclick=qo));else if(ve!==4&&(g=g.child,g!==null))for(Xl(g,k,X),g=g.sibling;g!==null;)Xl(g,k,X),g=g.sibling}function Zl(g,k,X){var ve=g.tag;if(ve===5||ve===6)g=g.stateNode,k?X.insertBefore(g,k):X.appendChild(g);else if(ve!==4&&(g=g.child,g!==null))for(Zl(g,k,X),g=g.sibling;g!==null;)Zl(g,k,X),g=g.sibling}var kn=null,nr=!1;function Br(g,k,X){for(X=X.child;X!==null;)Rc(g,k,X),X=X.sibling}function Rc(g,k,X){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(Eo,X)}catch{}switch(X.tag){case 5:Rn||Ci(X,k);case 6:var ve=kn,$e=nr;kn=null,Br(g,k,X),kn=ve,nr=$e,kn!==null&&(nr?(g=kn,X=X.stateNode,g.nodeType===8?g.parentNode.removeChild(X):g.removeChild(X)):kn.removeChild(X.stateNode));break;case 18:kn!==null&&(nr?(g=kn,X=X.stateNode,g.nodeType===8?cl(g.parentNode,X):g.nodeType===1&&cl(g,X),Gi(g)):cl(kn,X.stateNode));break;case 4:ve=kn,$e=nr,kn=X.stateNode.containerInfo,nr=!0,Br(g,k,X),kn=ve,nr=$e;break;case 0:case 11:case 14:case 15:if(!Rn&&(ve=X.updateQueue,ve!==null&&(ve=ve.lastEffect,ve!==null))){$e=ve=ve.next;do{var Ie=$e,De=Ie.destroy;Ie=Ie.tag,De!==void 0&&((Ie&2)!==0||(Ie&4)!==0)&&Jl(X,k,De),$e=$e.next}while($e!==ve)}Br(g,k,X);break;case 1:if(!Rn&&(Ci(X,k),ve=X.stateNode,typeof ve.componentWillUnmount=="function"))try{ve.props=X.memoizedProps,ve.state=X.memoizedState,ve.componentWillUnmount()}catch(Ge){mn(X,k,Ge)}Br(g,k,X);break;case 21:Br(g,k,X);break;case 22:X.mode&1?(Rn=(ve=Rn)||X.memoizedState!==null,Br(g,k,X),Rn=ve):Br(g,k,X);break;default:Br(g,k,X)}}function Nc(g){var k=g.updateQueue;if(k!==null){g.updateQueue=null;var X=g.stateNode;X===null&&(X=g.stateNode=new Ff),k.forEach(function(ve){var $e=Wf.bind(null,g,ve);X.has(ve)||(X.add(ve),ve.then($e,$e))})}}function rr(g,k){var X=k.deletions;if(X!==null)for(var ve=0;ve<X.length;ve++){var $e=X[ve];try{var Ie=g,De=k,Ge=De;e:for(;Ge!==null;){switch(Ge.tag){case 5:kn=Ge.stateNode,nr=!1;break e;case 3:kn=Ge.stateNode.containerInfo,nr=!0;break e;case 4:kn=Ge.stateNode.containerInfo,nr=!0;break e}Ge=Ge.return}if(kn===null)throw Error(e(160));Rc(Ie,De,$e),kn=null,nr=!1;var Je=$e.alternate;Je!==null&&(Je.return=null),$e.return=null}catch(at){mn($e,k,at)}}if(k.subtreeFlags&12854)for(k=k.child;k!==null;)Fc(k,g),k=k.sibling}function Fc(g,k){var X=g.alternate,ve=g.flags;switch(g.tag){case 0:case 11:case 14:case 15:if(rr(k,g),ur(g),ve&4){try{yo(3,g,g.return),ga(3,g)}catch(At){mn(g,g.return,At)}try{yo(5,g,g.return)}catch(At){mn(g,g.return,At)}}break;case 1:rr(k,g),ur(g),ve&512&&X!==null&&Ci(X,X.return);break;case 5:if(rr(k,g),ur(g),ve&512&&X!==null&&Ci(X,X.return),g.flags&32){var $e=g.stateNode;try{Nt($e,"")}catch(At){mn(g,g.return,At)}}if(ve&4&&($e=g.stateNode,$e!=null)){var Ie=g.memoizedProps,De=X!==null?X.memoizedProps:Ie,Ge=g.type,Je=g.updateQueue;if(g.updateQueue=null,Je!==null)try{Ge==="input"&&Ie.type==="radio"&&Ie.name!=null&&Yt($e,Ie),ht(Ge,De);var at=ht(Ge,Ie);for(De=0;De<Je.length;De+=2){var mt=Je[De],vt=Je[De+1];mt==="style"?it($e,vt):mt==="dangerouslySetInnerHTML"?Lt($e,vt):mt==="children"?Nt($e,vt):Ne($e,mt,vt,at)}switch(Ge){case"input":zt($e,Ie);break;case"textarea":bn($e,Ie);break;case"select":var yt=$e._wrapperState.wasMultiple;$e._wrapperState.wasMultiple=!!Ie.multiple;var Et=Ie.value;Et!=null?fn($e,!!Ie.multiple,Et,!1):yt!==!!Ie.multiple&&(Ie.defaultValue!=null?fn($e,!!Ie.multiple,Ie.defaultValue,!0):fn($e,!!Ie.multiple,Ie.multiple?[]:"",!1))}$e[ro]=Ie}catch(At){mn(g,g.return,At)}}break;case 6:if(rr(k,g),ur(g),ve&4){if(g.stateNode===null)throw Error(e(162));$e=g.stateNode,Ie=g.memoizedProps;try{$e.nodeValue=Ie}catch(At){mn(g,g.return,At)}}break;case 3:if(rr(k,g),ur(g),ve&4&&X!==null&&X.memoizedState.isDehydrated)try{Gi(k.containerInfo)}catch(At){mn(g,g.return,At)}break;case 4:rr(k,g),ur(g);break;case 13:rr(k,g),ur(g),$e=g.child,$e.flags&8192&&(Ie=$e.memoizedState!==null,$e.stateNode.isHidden=Ie,!Ie||$e.alternate!==null&&$e.alternate.memoizedState!==null||(ts=vn())),ve&4&&Nc(g);break;case 22:if(mt=X!==null&&X.memoizedState!==null,g.mode&1?(Rn=(at=Rn)||mt,rr(k,g),Rn=at):rr(k,g),ur(g),ve&8192){if(at=g.memoizedState!==null,(g.stateNode.isHidden=at)&&!mt&&(g.mode&1)!==0)for(It=g,mt=g.child;mt!==null;){for(vt=It=mt;It!==null;){switch(yt=It,Et=yt.child,yt.tag){case 0:case 11:case 14:case 15:yo(4,yt,yt.return);break;case 1:Ci(yt,yt.return);var Pt=yt.stateNode;if(typeof Pt.componentWillUnmount=="function"){ve=yt,X=yt.return;try{k=ve,Pt.props=k.memoizedProps,Pt.state=k.memoizedState,Pt.componentWillUnmount()}catch(At){mn(ve,X,At)}}break;case 5:Ci(yt,yt.return);break;case 22:if(yt.memoizedState!==null){Dc(vt);continue}}Et!==null?(Et.return=yt,It=Et):Dc(vt)}mt=mt.sibling}e:for(mt=null,vt=g;;){if(vt.tag===5){if(mt===null){mt=vt;try{$e=vt.stateNode,at?(Ie=$e.style,typeof Ie.setProperty=="function"?Ie.setProperty("display","none","important"):Ie.display="none"):(Ge=vt.stateNode,Je=vt.memoizedProps.style,De=Je!=null&&Je.hasOwnProperty("display")?Je.display:null,Ge.style.display=Tt("display",De))}catch(At){mn(g,g.return,At)}}}else if(vt.tag===6){if(mt===null)try{vt.stateNode.nodeValue=at?"":vt.memoizedProps}catch(At){mn(g,g.return,At)}}else if((vt.tag!==22&&vt.tag!==23||vt.memoizedState===null||vt===g)&&vt.child!==null){vt.child.return=vt,vt=vt.child;continue}if(vt===g)break e;for(;vt.sibling===null;){if(vt.return===null||vt.return===g)break e;mt===vt&&(mt=null),vt=vt.return}mt===vt&&(mt=null),vt.sibling.return=vt.return,vt=vt.sibling}}break;case 19:rr(k,g),ur(g),ve&4&&Nc(g);break;case 21:break;default:rr(k,g),ur(g)}}function ur(g){var k=g.flags;if(k&2){try{e:{for(var X=g.return;X!==null;){if(Pc(X)){var ve=X;break e}X=X.return}throw Error(e(160))}switch(ve.tag){case 5:var $e=ve.stateNode;ve.flags&32&&(Nt($e,""),ve.flags&=-33);var Ie=Ac(g);Zl(g,Ie,$e);break;case 3:case 4:var De=ve.stateNode.containerInfo,Ge=Ac(g);Xl(g,Ge,De);break;default:throw Error(e(161))}}catch(Je){mn(g,g.return,Je)}g.flags&=-3}k&4096&&(g.flags&=-4097)}function Mf(g,k,X){It=g,Lc(g)}function Lc(g,k,X){for(var ve=(g.mode&1)!==0;It!==null;){var $e=It,Ie=$e.child;if($e.tag===22&&ve){var De=$e.memoizedState!==null||ya;if(!De){var Ge=$e.alternate,Je=Ge!==null&&Ge.memoizedState!==null||Rn;Ge=ya;var at=Rn;if(ya=De,(Rn=Je)&&!at)for(It=$e;It!==null;)De=It,Je=De.child,De.tag===22&&De.memoizedState!==null?Bc($e):Je!==null?(Je.return=De,It=Je):Bc($e);for(;Ie!==null;)It=Ie,Lc(Ie),Ie=Ie.sibling;It=$e,ya=Ge,Rn=at}Mc(g)}else($e.subtreeFlags&8772)!==0&&Ie!==null?(Ie.return=$e,It=Ie):Mc(g)}}function Mc(g){for(;It!==null;){var k=It;if((k.flags&8772)!==0){var X=k.alternate;try{if((k.flags&8772)!==0)switch(k.tag){case 0:case 11:case 15:Rn||ga(5,k);break;case 1:var ve=k.stateNode;if(k.flags&4&&!Rn)if(X===null)ve.componentDidMount();else{var $e=k.elementType===k.type?X.memoizedProps:tr(k.type,X.memoizedProps);ve.componentDidUpdate($e,X.memoizedState,ve.__reactInternalSnapshotBeforeUpdate)}var Ie=k.updateQueue;Ie!==null&&Mu(k,Ie,ve);break;case 3:var De=k.updateQueue;if(De!==null){if(X=null,k.child!==null)switch(k.child.tag){case 5:X=k.child.stateNode;break;case 1:X=k.child.stateNode}Mu(k,De,X)}break;case 5:var Ge=k.stateNode;if(X===null&&k.flags&4){X=Ge;var Je=k.memoizedProps;switch(k.type){case"button":case"input":case"select":case"textarea":Je.autoFocus&&X.focus();break;case"img":Je.src&&(X.src=Je.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(k.memoizedState===null){var at=k.alternate;if(at!==null){var mt=at.memoizedState;if(mt!==null){var vt=mt.dehydrated;vt!==null&&Gi(vt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(e(163))}Rn||k.flags&512&&Yl(k)}catch(yt){mn(k,k.return,yt)}}if(k===g){It=null;break}if(X=k.sibling,X!==null){X.return=k.return,It=X;break}It=k.return}}function Dc(g){for(;It!==null;){var k=It;if(k===g){It=null;break}var X=k.sibling;if(X!==null){X.return=k.return,It=X;break}It=k.return}}function Bc(g){for(;It!==null;){var k=It;try{switch(k.tag){case 0:case 11:case 15:var X=k.return;try{ga(4,k)}catch(Je){mn(k,X,Je)}break;case 1:var ve=k.stateNode;if(typeof ve.componentDidMount=="function"){var $e=k.return;try{ve.componentDidMount()}catch(Je){mn(k,$e,Je)}}var Ie=k.return;try{Yl(k)}catch(Je){mn(k,Ie,Je)}break;case 5:var De=k.return;try{Yl(k)}catch(Je){mn(k,De,Je)}}}catch(Je){mn(k,k.return,Je)}if(k===g){It=null;break}var Ge=k.sibling;if(Ge!==null){Ge.return=k.return,It=Ge;break}It=k.return}}var Df=Math.ceil,ma=Fe.ReactCurrentDispatcher,Ql=Fe.ReactCurrentOwner,Yn=Fe.ReactCurrentBatchConfig,Xt=0,xn=null,wn=null,En=0,Wn=0,ki=Nr(0),$n=0,go=null,ni=0,ba=0,es=0,mo=null,jn=null,ts=0,Ei=1/0,$r=null,va=!1,ns=null,jr=null,Sa=!1,Vr=null,Oa=0,bo=0,rs=null,wa=-1,$a=0;function Ln(){return(Xt&6)!==0?vn():wa!==-1?wa:wa=vn()}function zr(g){return(g.mode&1)===0?1:(Xt&2)!==0&&En!==0?En&-En:Sf.transition!==null?($a===0&&($a=Is()),$a):(g=on,g!==0||(g=window.event,g=g===void 0?16:Bs(g.type)),g)}function ir(g,k,X,ve){if(50<bo)throw bo=0,rs=null,Error(e(185));Vi(g,X,ve),((Xt&2)===0||g!==xn)&&(g===xn&&((Xt&2)===0&&(ba|=X),$n===4&&Ur(g,En)),Vn(g,ve),X===1&&Xt===0&&(k.mode&1)===0&&(Ei=vn()+500,Xo&&Lr()))}function Vn(g,k){var X=g.callbackNode;bd(g,k);var ve=Ao(g,g===xn?En:0);if(ve===0)X!==null&&Cs(X),g.callbackNode=null,g.callbackPriority=0;else if(k=ve&-ve,g.callbackPriority!==k){if(X!=null&&Cs(X),k===1)g.tag===0?vf(Vc.bind(null,g)):Tu(Vc.bind(null,g)),yf(function(){(Xt&6)===0&&Lr()}),X=null;else{switch(Ps(ve)){case 1:X=Fa;break;case 4:X=ks;break;case 16:X=ko;break;case 536870912:X=Es;break;default:X=ko}X=Jc(X,jc.bind(null,g))}g.callbackPriority=k,g.callbackNode=X}}function jc(g,k){if(wa=-1,$a=0,(Xt&6)!==0)throw Error(e(327));var X=g.callbackNode;if(Ii()&&g.callbackNode!==X)return null;var ve=Ao(g,g===xn?En:0);if(ve===0)return null;if((ve&30)!==0||(ve&g.expiredLanes)!==0||k)k=Ta(g,ve);else{k=ve;var $e=Xt;Xt|=2;var Ie=Uc();(xn!==g||En!==k)&&($r=null,Ei=vn()+500,ii(g,k));do try{Vf();break}catch(Ge){zc(g,Ge)}while(!0);Sl(),ma.current=Ie,Xt=$e,wn!==null?k=0:(xn=null,En=0,k=$n)}if(k!==0){if(k===2&&($e=La(g),$e!==0&&(ve=$e,k=os(g,$e))),k===1)throw X=go,ii(g,0),Ur(g,ve),Vn(g,vn()),X;if(k===6)Ur(g,ve);else{if($e=g.current.alternate,(ve&30)===0&&!Bf($e)&&(k=Ta(g,ve),k===2&&(Ie=La(g),Ie!==0&&(ve=Ie,k=os(g,Ie))),k===1))throw X=go,ii(g,0),Ur(g,ve),Vn(g,vn()),X;switch(g.finishedWork=$e,g.finishedLanes=ve,k){case 0:case 1:throw Error(e(345));case 2:oi(g,jn,$r);break;case 3:if(Ur(g,ve),(ve&130023424)===ve&&(k=ts+500-vn(),10<k)){if(Ao(g,0)!==0)break;if($e=g.suspendedLanes,($e&ve)!==ve){Ln(),g.pingedLanes|=g.suspendedLanes&$e;break}g.timeoutHandle=ul(oi.bind(null,g,jn,$r),k);break}oi(g,jn,$r);break;case 4:if(Ur(g,ve),(ve&4194240)===ve)break;for(k=g.eventTimes,$e=-1;0<ve;){var De=31-Zn(ve);Ie=1<<De,De=k[De],De>$e&&($e=De),ve&=~Ie}if(ve=$e,ve=vn()-ve,ve=(120>ve?120:480>ve?480:1080>ve?1080:1920>ve?1920:3e3>ve?3e3:4320>ve?4320:1960*Df(ve/1960))-ve,10<ve){g.timeoutHandle=ul(oi.bind(null,g,jn,$r),ve);break}oi(g,jn,$r);break;case 5:oi(g,jn,$r);break;default:throw Error(e(329))}}}return Vn(g,vn()),g.callbackNode===X?jc.bind(null,g):null}function os(g,k){var X=mo;return g.current.memoizedState.isDehydrated&&(ii(g,k).flags|=256),g=Ta(g,k),g!==2&&(k=jn,jn=X,k!==null&&as(k)),g}function as(g){jn===null?jn=g:jn.push.apply(jn,g)}function Bf(g){for(var k=g;;){if(k.flags&16384){var X=k.updateQueue;if(X!==null&&(X=X.stores,X!==null))for(var ve=0;ve<X.length;ve++){var $e=X[ve],Ie=$e.getSnapshot;$e=$e.value;try{if(!Qn(Ie(),$e))return!1}catch{return!1}}}if(X=k.child,k.subtreeFlags&16384&&X!==null)X.return=k,k=X;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 Ur(g,k){for(k&=~es,k&=~ba,g.suspendedLanes|=k,g.pingedLanes&=~k,g=g.expirationTimes;0<k;){var X=31-Zn(k),ve=1<<X;g[X]=-1,k&=~ve}}function Vc(g){if((Xt&6)!==0)throw Error(e(327));Ii();var k=Ao(g,0);if((k&1)===0)return Vn(g,vn()),null;var X=Ta(g,k);if(g.tag!==0&&X===2){var ve=La(g);ve!==0&&(k=ve,X=os(g,ve))}if(X===1)throw X=go,ii(g,0),Ur(g,k),Vn(g,vn()),X;if(X===6)throw Error(e(345));return g.finishedWork=g.current.alternate,g.finishedLanes=k,oi(g,jn,$r),Vn(g,vn()),null}function ls(g,k){var X=Xt;Xt|=1;try{return g(k)}finally{Xt=X,Xt===0&&(Ei=vn()+500,Xo&&Lr())}}function ri(g){Vr!==null&&Vr.tag===0&&(Xt&6)===0&&Ii();var k=Xt;Xt|=1;var X=Yn.transition,ve=on;try{if(Yn.transition=null,on=1,g)return g()}finally{on=ve,Yn.transition=X,Xt=k,(Xt&6)===0&&Lr()}}function ss(){Wn=ki.current,un(ki)}function ii(g,k){g.finishedWork=null,g.finishedLanes=0;var X=g.timeoutHandle;if(X!==-1&&(g.timeoutHandle=-1,hf(X)),wn!==null)for(X=wn.return;X!==null;){var ve=X;switch(yl(ve),ve.tag){case 1:ve=ve.type.childContextTypes,ve!=null&&Jo();break;case 3:Ti(),un(Mn),un(In),El();break;case 5:Cl(ve);break;case 4:Ti();break;case 13:un(yn);break;case 19:un(yn);break;case 10:Ol(ve.type._context);break;case 22:case 23:ss()}X=X.return}if(xn=g,wn=g=Hr(g.current,null),En=Wn=k,$n=0,go=null,es=ba=ni=0,jn=mo=null,Qr!==null){for(k=0;k<Qr.length;k++)if(X=Qr[k],ve=X.interleaved,ve!==null){X.interleaved=null;var $e=ve.next,Ie=X.pending;if(Ie!==null){var De=Ie.next;Ie.next=$e,ve.next=De}X.pending=ve}Qr=null}return g}function zc(g,k){do{var X=wn;try{if(Sl(),la.current=da,sa){for(var ve=gn.memoizedState;ve!==null;){var $e=ve.queue;$e!==null&&($e.pending=null),ve=ve.next}sa=!1}if(ti=0,Tn=_n=gn=null,uo=!1,co=0,Ql.current=null,X===null||X.return===null){$n=1,go=k,wn=null;break}e:{var Ie=g,De=X.return,Ge=X,Je=k;if(k=En,Ge.flags|=32768,Je!==null&&typeof Je=="object"&&typeof Je.then=="function"){var at=Je,mt=Ge,vt=mt.tag;if((mt.mode&1)===0&&(vt===0||vt===11||vt===15)){var yt=mt.alternate;yt?(mt.updateQueue=yt.updateQueue,mt.memoizedState=yt.memoizedState,mt.lanes=yt.lanes):(mt.updateQueue=null,mt.memoizedState=null)}var Et=fc(De);if(Et!==null){Et.flags&=-257,pc(Et,De,Ge,Ie,k),Et.mode&1&&dc(Ie,at,k),k=Et,Je=at;var Pt=k.updateQueue;if(Pt===null){var At=new Set;At.add(Je),k.updateQueue=At}else Pt.add(Je);break e}else{if((k&1)===0){dc(Ie,at,k),us();break e}Je=Error(e(426))}}else if(pn&&Ge.mode&1){var Sn=fc(De);if(Sn!==null){(Sn.flags&65536)===0&&(Sn.flags|=256),pc(Sn,De,Ge,Ie,k),bl(xi(Je,Ge));break e}}Ie=Je=xi(Je,Ge),$n!==4&&($n=2),mo===null?mo=[Ie]:mo.push(Ie),Ie=De;do{switch(Ie.tag){case 3:Ie.flags|=65536,k&=-k,Ie.lanes|=k;var et=uc(Ie,Je,k);Lu(Ie,et);break e;case 1:Ge=Je;var Ze=Ie.type,nt=Ie.stateNode;if((Ie.flags&128)===0&&(typeof Ze.getDerivedStateFromError=="function"||nt!==null&&typeof nt.componentDidCatch=="function"&&(jr===null||!jr.has(nt)))){Ie.flags|=65536,k&=-k,Ie.lanes|=k;var St=cc(Ie,Ge,k);Lu(Ie,St);break e}}Ie=Ie.return}while(Ie!==null)}Wc(X)}catch(Ft){k=Ft,wn===X&&X!==null&&(wn=X=X.return);continue}break}while(!0)}function Uc(){var g=ma.current;return ma.current=da,g===null?da:g}function us(){($n===0||$n===3||$n===2)&&($n=4),xn===null||(ni&268435455)===0&&(ba&268435455)===0||Ur(xn,En)}function Ta(g,k){var X=Xt;Xt|=2;var ve=Uc();(xn!==g||En!==k)&&($r=null,ii(g,k));do try{jf();break}catch($e){zc(g,$e)}while(!0);if(Sl(),Xt=X,ma.current=ve,wn!==null)throw Error(e(261));return xn=null,En=0,$n}function jf(){for(;wn!==null;)Hc(wn)}function Vf(){for(;wn!==null&&!ud();)Hc(wn)}function Hc(g){var k=Kc(g.alternate,g,Wn);g.memoizedProps=g.pendingProps,k===null?Wc(g):wn=k,Ql.current=null}function Wc(g){var k=g;do{var X=k.alternate;if(g=k.return,(k.flags&32768)===0){if(X=Rf(X,k,Wn),X!==null){wn=X;return}}else{if(X=Nf(X,k),X!==null){X.flags&=32767,wn=X;return}if(g!==null)g.flags|=32768,g.subtreeFlags=0,g.deletions=null;else{$n=6,wn=null;return}}if(k=k.sibling,k!==null){wn=k;return}wn=k=g}while(k!==null);$n===0&&($n=5)}function oi(g,k,X){var ve=on,$e=Yn.transition;try{Yn.transition=null,on=1,zf(g,k,X,ve)}finally{Yn.transition=$e,on=ve}return null}function zf(g,k,X,ve){do Ii();while(Vr!==null);if((Xt&6)!==0)throw Error(e(327));X=g.finishedWork;var $e=g.finishedLanes;if(X===null)return null;if(g.finishedWork=null,g.finishedLanes=0,X===g.current)throw Error(e(177));g.callbackNode=null,g.callbackPriority=0;var Ie=X.lanes|X.childLanes;if(vd(g,Ie),g===xn&&(wn=xn=null,En=0),(X.subtreeFlags&2064)===0&&(X.flags&2064)===0||Sa||(Sa=!0,Jc(ko,function(){return Ii(),null})),Ie=(X.flags&15990)!==0,(X.subtreeFlags&15990)!==0||Ie){Ie=Yn.transition,Yn.transition=null;var De=on;on=1;var Ge=Xt;Xt|=4,Ql.current=null,Lf(g,X),Fc(X,g),lf(ll),Fo=!!al,ll=al=null,g.current=X,Mf(X),cd(),Xt=Ge,on=De,Yn.transition=Ie}else g.current=X;if(Sa&&(Sa=!1,Vr=g,Oa=$e),Ie=g.pendingLanes,Ie===0&&(jr=null),pd(X.stateNode),Vn(g,vn()),k!==null)for(ve=g.onRecoverableError,X=0;X<k.length;X++)$e=k[X],ve($e.value,{componentStack:$e.stack,digest:$e.digest});if(va)throw va=!1,g=ns,ns=null,g;return(Oa&1)!==0&&g.tag!==0&&Ii(),Ie=g.pendingLanes,(Ie&1)!==0?g===rs?bo++:(bo=0,rs=g):bo=0,Lr(),null}function Ii(){if(Vr!==null){var g=Ps(Oa),k=Yn.transition,X=on;try{if(Yn.transition=null,on=16>g?16:g,Vr===null)var ve=!1;else{if(g=Vr,Vr=null,Oa=0,(Xt&6)!==0)throw Error(e(331));var $e=Xt;for(Xt|=4,It=g.current;It!==null;){var Ie=It,De=Ie.child;if((It.flags&16)!==0){var Ge=Ie.deletions;if(Ge!==null){for(var Je=0;Je<Ge.length;Je++){var at=Ge[Je];for(It=at;It!==null;){var mt=It;switch(mt.tag){case 0:case 11:case 15:yo(8,mt,Ie)}var vt=mt.child;if(vt!==null)vt.return=mt,It=vt;else for(;It!==null;){mt=It;var yt=mt.sibling,Et=mt.return;if(Ic(mt),mt===at){It=null;break}if(yt!==null){yt.return=Et,It=yt;break}It=Et}}}var Pt=Ie.alternate;if(Pt!==null){var At=Pt.child;if(At!==null){Pt.child=null;do{var Sn=At.sibling;At.sibling=null,At=Sn}while(At!==null)}}It=Ie}}if((Ie.subtreeFlags&2064)!==0&&De!==null)De.return=Ie,It=De;else e:for(;It!==null;){if(Ie=It,(Ie.flags&2048)!==0)switch(Ie.tag){case 0:case 11:case 15:yo(9,Ie,Ie.return)}var et=Ie.sibling;if(et!==null){et.return=Ie.return,It=et;break e}It=Ie.return}}var Ze=g.current;for(It=Ze;It!==null;){De=It;var nt=De.child;if((De.subtreeFlags&2064)!==0&&nt!==null)nt.return=De,It=nt;else e:for(De=Ze;It!==null;){if(Ge=It,(Ge.flags&2048)!==0)try{switch(Ge.tag){case 0:case 11:case 15:ga(9,Ge)}}catch(Ft){mn(Ge,Ge.return,Ft)}if(Ge===De){It=null;break e}var St=Ge.sibling;if(St!==null){St.return=Ge.return,It=St;break e}It=Ge.return}}if(Xt=$e,Lr(),or&&typeof or.onPostCommitFiberRoot=="function")try{or.onPostCommitFiberRoot(Eo,g)}catch{}ve=!0}return ve}finally{on=X,Yn.transition=k}}return!1}
vendor: 4,307 bytes, line 9
9function Gc(g,k,X){k=xi(X,k),k=uc(g,k,1),g=Dr(g,k,1),k=Ln(),g!==null&&(Vi(g,1,k),Vn(g,k))}function mn(g,k,X){if(g.tag===3)Gc(g,g,X);else for(;k!==null;){if(k.tag===3){Gc(k,g,X);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=xi(X,g),g=cc(k,g,1),k=Dr(k,g,1),g=Ln(),k!==null&&(Vi(k,1,g),Vn(k,g));break}}k=k.return}}function Uf(g,k,X){var ve=g.pingCache;ve!==null&&ve.delete(k),k=Ln(),g.pingedLanes|=g.suspendedLanes&X,xn===g&&(En&X)===X&&($n===4||$n===3&&(En&130023424)===En&&500>vn()-ts?ii(g,0):es|=X),Vn(g,k)}function qc(g,k){k===0&&((g.mode&1)===0?k=1:(k=Po,Po<<=1,(Po&130023424)===0&&(Po=4194304)));var X=Ln();g=Sr(g,k),g!==null&&(Vi(g,k,X),Vn(g,X))}function Hf(g){var k=g.memoizedState,X=0;k!==null&&(X=k.retryLane),qc(g,X)}function Wf(g,k){var X=0;switch(g.tag){case 13:var ve=g.stateNode,$e=g.memoizedState;$e!==null&&(X=$e.retryLane);break;case 19:ve=g.stateNode;break;default:throw Error(e(314))}ve!==null&&ve.delete(k),qc(g,X)}var Kc;Kc=function(g,k,X){if(g!==null)if(g.memoizedProps!==k.pendingProps||Mn.current)Bn=!0;else{if((g.lanes&X)===0&&(k.flags&128)===0)return Bn=!1,Af(g,k,X);Bn=(g.flags&131072)!==0}else Bn=!1,pn&&(k.flags&1048576)!==0&&xu(k,Qo,k.index);switch(k.lanes=0,k.tag){case 2:var ve=k.type;ha(g,k),g=k.pendingProps;var $e=bi(k,In.current);$i(k,X),$e=Al(null,k,ve,g,$e,X);var Ie=Rl();return k.flags|=1,typeof $e=="object"&&$e!==null&&typeof $e.render=="function"&&$e.$$typeof===void 0?(k.tag=1,k.memoizedState=null,k.updateQueue=null,Dn(ve)?(Ie=!0,Yo(k)):Ie=!1,k.memoizedState=$e.state!==null&&$e.state!==void 0?$e.state:null,Tl(k),$e.updater=fa,k.stateNode=$e,$e._reactInternals=k,Bl(k,ve,g,X),k=Ul(null,k,ve,!0,Ie,X)):(k.tag=0,pn&&Ie&&hl(k),Fn(null,k,$e,X),k=k.child),k;case 16:ve=k.elementType;e:{switch(ha(g,k),g=k.pendingProps,$e=ve._init,ve=$e(ve._payload),k.type=ve,$e=k.tag=qf(ve),g=tr(ve,g),$e){case 0:k=zl(null,k,ve,g,X);break e;case 1:k=vc(null,k,ve,g,X);break e;case 11:k=hc(null,k,ve,g,X);break e;case 14:k=yc(null,k,ve,tr(ve.type,g),X);break e}throw Error(e(306,ve,""))}return k;case 0:return ve=k.type,$e=k.pendingProps,$e=k.elementType===ve?$e:tr(ve,$e),zl(g,k,ve,$e,X);case 1:return ve=k.type,$e=k.pendingProps,$e=k.elementType===ve?$e:tr(ve,$e),vc(g,k,ve,$e,X);case 3:e:{if(Sc(k),g===null)throw Error(e(387));ve=k.pendingProps,Ie=k.memoizedState,$e=Ie.element,Fu(g,k),oa(k,ve,null,X);var De=k.memoizedState;if(ve=De.element,Ie.isDehydrated)if(Ie={element:ve,isDehydrated:!1,cache:De.cache,pendingSuspenseBoundaries:De.pendingSuspenseBoundaries,transitions:De.transitions},k.updateQueue.baseState=Ie,k.memoizedState=Ie,k.flags&256){$e=xi(Error(e(423)),k),k=Oc(g,k,ve,X,$e);break e}else if(ve!==$e){$e=xi(Error(e(424)),k),k=Oc(g,k,ve,X,$e);break e}else for(Hn=Rr(k.stateNode.containerInfo.firstChild),Un=k,pn=!0,er=null,X=Ru(k,null,ve,X),k.child=X;X;)X.flags=X.flags&-3|4096,X=X.sibling;else{if(Oi(),ve===$e){k=wr(g,k,X);break e}Fn(g,k,ve,X)}k=k.child}return k;case 5:return Du(k),g===null&&ml(k),ve=k.type,$e=k.pendingProps,Ie=g!==null?g.memoizedProps:null,De=$e.children,sl(ve,$e)?De=null:Ie!==null&&sl(ve,Ie)&&(k.flags|=32),bc(g,k),Fn(g,k,De,X),k.child;case 6:return g===null&&ml(k),null;case 13:return wc(g,k,X);case 4:return xl(k,k.stateNode.containerInfo),ve=k.pendingProps,g===null?k.child=wi(k,null,ve,X):Fn(g,k,ve,X),k.child;case 11:return ve=k.type,$e=k.pendingProps,$e=k.elementType===ve?$e:tr(ve,$e),hc(g,k,ve,$e,X);case 7:return Fn(g,k,k.pendingProps,X),k.child;case 8:return Fn(g,k,k.pendingProps.children,X),k.child;case 12:return Fn(g,k,k.pendingProps.children,X),k.child;case 10:e:{if(ve=k.type._context,$e=k.pendingProps,Ie=k.memoizedProps,De=$e.value,ln(na,ve._currentValue),ve._currentValue=De,Ie!==null)if(Qn(Ie.value,De)){if(Ie.children===$e.children&&!Mn.current){k=wr(g,k,X);break e}}else for(Ie=k.child,Ie!==null&&(Ie.return=k);Ie!==null;){var Ge=Ie.dependencies;if(Ge!==null){De=Ie.child;for(var Je=Ge.firstContext;Je!==null;){if(Je.context===ve){if(Ie.tag===1){Je=Or(-1,X&-X),Je.tag=2;var at=Ie.updateQueue;if(at!==null){at=at.shared;var mt=at.pending;mt===null?Je.next=Je:(Je.next=mt.next,mt.next=Je),at.pending=Je}}Ie.lanes|=X,Je=Ie.alternate,Je!==null&&(Je.lanes|=X),wl(Ie.return,X,k),Ge.lanes|=X;break}Je=Je.next}}
vendor: 12,164 bytes, line 9
9else if(Ie.tag===10)De=Ie.type===k.type?null:Ie.child;else if(Ie.tag===18){if(De=Ie.return,De===null)throw Error(e(341));De.lanes|=X,Ge=De.alternate,Ge!==null&&(Ge.lanes|=X),wl(De,X,k),De=Ie.sibling}else De=Ie.child;if(De!==null)De.return=Ie;else for(De=Ie;De!==null;){if(De===k){De=null;break}if(Ie=De.sibling,Ie!==null){Ie.return=De.return,De=Ie;break}De=De.return}Ie=De}Fn(g,k,$e.children,X),k=k.child}return k;case 9:return $e=k.type,ve=k.pendingProps.children,$i(k,X),$e=Kn($e),ve=ve($e),k.flags|=1,Fn(g,k,ve,X),k.child;case 14:return ve=k.type,$e=tr(ve,k.pendingProps),$e=tr(ve.type,$e),yc(g,k,ve,$e,X);case 15:return gc(g,k,k.type,k.pendingProps,X);case 17:return ve=k.type,$e=k.pendingProps,$e=k.elementType===ve?$e:tr(ve,$e),ha(g,k),k.tag=1,Dn(ve)?(g=!0,Yo(k)):g=!1,$i(k,X),lc(k,ve,$e),Bl(k,ve,$e,X),Ul(null,k,ve,!0,g,X);case 19:return Tc(g,k,X);case 22:return mc(g,k,X)}throw Error(e(156,k.tag))};function Jc(g,k){return xs(g,k)}function Gf(g,k,X,ve){this.tag=g,this.key=X,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 Xn(g,k,X,ve){return new Gf(g,k,X,ve)}function cs(g){return g=g.prototype,!(!g||!g.isReactComponent)}function qf(g){if(typeof g=="function")return cs(g)?1:0;if(g!=null){if(g=g.$$typeof,g===Xe)return 11;if(g===Ue)return 14}return 2}function Hr(g,k){var X=g.alternate;return X===null?(X=Xn(g.tag,k,g.key,g.mode),X.elementType=g.elementType,X.type=g.type,X.stateNode=g.stateNode,X.alternate=g,g.alternate=X):(X.pendingProps=k,X.type=g.type,X.flags=0,X.subtreeFlags=0,X.deletions=null),X.flags=g.flags&14680064,X.childLanes=g.childLanes,X.lanes=g.lanes,X.child=g.child,X.memoizedProps=g.memoizedProps,X.memoizedState=g.memoizedState,X.updateQueue=g.updateQueue,k=g.dependencies,X.dependencies=k===null?null:{lanes:k.lanes,firstContext:k.firstContext},X.sibling=g.sibling,X.index=g.index,X.ref=g.ref,X}function xa(g,k,X,ve,$e,Ie){var De=2;if(ve=g,typeof g=="function")cs(g)&&(De=1);else if(typeof g=="string")De=5;else e:switch(g){case ze:return ai(X.children,$e,Ie,k);case Ke:De=8,$e|=8;break;case Ve:return g=Xn(12,X,k,$e|2),g.elementType=Ve,g.lanes=Ie,g;case Qe:return g=Xn(13,X,k,$e),g.elementType=Qe,g.lanes=Ie,g;case Ye:return g=Xn(19,X,k,$e),g.elementType=Ye,g.lanes=Ie,g;case dt:return Ca(X,$e,Ie,k);default:if(typeof g=="object"&&g!==null)switch(g.$$typeof){case je:De=10;break e;case We:De=9;break e;case Xe:De=11;break e;case Ue:De=14;break e;case ot:De=16,ve=null;break e}throw Error(e(130,g==null?g:typeof g,""))}return k=Xn(De,X,k,$e),k.elementType=g,k.type=ve,k.lanes=Ie,k}function ai(g,k,X,ve){return g=Xn(7,g,ve,k),g.lanes=X,g}function Ca(g,k,X,ve){return g=Xn(22,g,ve,k),g.elementType=dt,g.lanes=X,g.stateNode={isHidden:!1},g}function ds(g,k,X){return g=Xn(6,g,null,k),g.lanes=X,g}function fs(g,k,X){return k=Xn(4,g.children!==null?g.children:[],g.key,k),k.lanes=X,k.stateNode={containerInfo:g.containerInfo,pendingChildren:null,implementation:g.implementation},k}function Kf(g,k,X,ve,$e){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=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=ve,this.onRecoverableError=$e,this.mutableSourceEagerHydrationData=null}function ps(g,k,X,ve,$e,Ie,De,Ge,Je){return g=new Kf(g,k,X,Ge,Je),k===1?(k=1,Ie===!0&&(k|=8)):k=0,Ie=Xn(3,null,null,k),g.current=Ie,Ie.stateNode=g,Ie.memoizedState={element:ve,isDehydrated:X,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tl(Ie),g}function Jf(g,k,X){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:X}}function Yc(g){if(!g)return Fr;g=g._reactInternals;e:{if(Kr(g)!==g||g.tag!==1)throw Error(e(170));var k=g;do{switch(k.tag){case 3:k=k.stateNode.context;break e;case 1:if(Dn(k.type)){k=k.stateNode.__reactInternalMemoizedMergedChildContext;break e}}k=k.return}while(k!==null);throw Error(e(171))}if(g.tag===1){var X=g.type;if(Dn(X))return wu(g,X,k)}return k}function Xc(g,k,X,ve,$e,Ie,De,Ge,Je){return g=ps(X,ve,!0,g,$e,Ie,De,Ge,Je),g.context=Yc(null),X=g.current,ve=Ln(),$e=zr(X),Ie=Or(ve,$e),Ie.callback=k??null,Dr(X,Ie,$e),g.current.lanes=$e,Vi(g,$e,ve),Vn(g,ve),g}function ka(g,k,X,ve){var $e=k.current,Ie=Ln(),De=zr($e);return X=Yc(X),k.context===null?k.context=X:k.pendingContext=X,k=Or(Ie,De),k.payload={element:g},ve=ve===void 0?null:ve,ve!==null&&(k.callback=ve),g=Dr($e,k,De),g!==null&&(ir(g,$e,De,Ie),ia(g,$e,De)),De}function Ea(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 Zc(g,k){if(g=g.memoizedState,g!==null&&g.dehydrated!==null){var X=g.retryLane;g.retryLane=X!==0&&X<k?X:k}}function hs(g,k){Zc(g,k),(g=g.alternate)&&Zc(g,k)}function Yf(){return null}var Qc=typeof reportError=="function"?reportError:function(g){console.error(g)};function ys(g){this._internalRoot=g}Ia.prototype.render=ys.prototype.render=function(g){var k=this._internalRoot;if(k===null)throw Error(e(409));ka(g,k,null,null)},Ia.prototype.unmount=ys.prototype.unmount=function(){var g=this._internalRoot;if(g!==null){this._internalRoot=null;var k=g.containerInfo;ri(function(){ka(null,g,null,null)}),k[gr]=null}};function Ia(g){this._internalRoot=g}Ia.prototype.unstable_scheduleHydration=function(g){if(g){var k=Ns();g={blockedOn:null,target:g,priority:k};for(var X=0;X<Ir.length&&k!==0&&k<Ir[X].priority;X++);Ir.splice(X,0,g),X===0&&Ms(g)}};function gs(g){return!(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)}function Pa(g){return!(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11&&(g.nodeType!==8||g.nodeValue!==" react-mount-point-unstable "))}function ed(){}function Xf(g,k,X,ve,$e){if($e){if(typeof ve=="function"){var Ie=ve;ve=function(){var at=Ea(De);Ie.call(at)}}var De=Xc(k,ve,g,0,null,!1,!1,"",ed);return g._reactRootContainer=De,g[gr]=De.current,to(g.nodeType===8?g.parentNode:g),ri(),De}for(;$e=g.lastChild;)g.removeChild($e);if(typeof ve=="function"){var Ge=ve;ve=function(){var at=Ea(Je);Ge.call(at)}}var Je=ps(g,0,!1,null,null,!1,!1,"",ed);return g._reactRootContainer=Je,g[gr]=Je.current,to(g.nodeType===8?g.parentNode:g),ri(function(){ka(k,Je,X,ve)}),Je}function Aa(g,k,X,ve,$e){var Ie=X._reactRootContainer;if(Ie){var De=Ie;if(typeof $e=="function"){var Ge=$e;$e=function(){var Je=Ea(De);Ge.call(Je)}}ka(k,De,g,$e)}else De=Xf(X,k,g,$e,ve);return Ea(De)}As=function(g){switch(g.tag){case 3:var k=g.stateNode;if(k.current.memoizedState.isDehydrated){var X=ji(k.pendingLanes);X!==0&&(Da(k,X|1),Vn(k,vn()),(Xt&6)===0&&(Ei=vn()+500,Lr()))}break;case 13:ri(function(){var ve=Sr(g,1);if(ve!==null){var $e=Ln();ir(ve,g,1,$e)}}),hs(g,1)}},Ba=function(g){if(g.tag===13){var k=Sr(g,134217728);if(k!==null){var X=Ln();ir(k,g,134217728,X)}hs(g,134217728)}},Rs=function(g){if(g.tag===13){var k=zr(g),X=Sr(g,k);if(X!==null){var ve=Ln();ir(X,g,k,ve)}hs(g,k)}},Ns=function(){return on},Fs=function(g,k){var X=on;try{return on=g,k()}finally{on=X}},Jt=function(g,k,X){switch(k){case"input":if(zt(g,X),k=X.name,X.type==="radio"&&k!=null){for(X=g;X.parentNode;)X=X.parentNode;for(X=X.querySelectorAll("input[name="+JSON.stringify(""+k)+'][type="radio"]'),k=0;k<X.length;k++){var ve=X[k];if(ve!==g&&ve.form===g.form){var $e=Ko(ve);if(!$e)throw Error(e(90));cn(ve),zt(ve,$e)}}}break;case"textarea":bn(g,X);break;case"select":k=X.value,k!=null&&fn(g,!!X.multiple,k,!1)}},Li=ls,pr=ri;var Zf={usingClientEntryPoint:!1,Events:[io,gi,Ko,qr,fr,ls]},vo={findFiberByHostInstance:Jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qf={bundleType:vo.bundleType,version:vo.version,rendererPackageName:vo.rendererPackageName,rendererConfig:vo.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=$s(g),g===null?null:g.stateNode},findFiberByHostInstance:vo.findFiberByHostInstance||Yf,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 Ra=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ra.isDisabled&&Ra.supportsFiber)try{Eo=Ra.inject(Qf),or=Ra}catch{}}return reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zf,reactDom_production_min.createPortal=function(g,k){var X=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gs(k))throw Error(e(200));return Jf(g,k,null,X)},reactDom_production_min.createRoot=function(g,k){if(!gs(g))throw Error(e(299));var X=!1,ve="",$e=Qc;return k!=null&&(k.unstable_strictMode===!0&&(X=!0),k.identifierPrefix!==void 0&&(ve=k.identifierPrefix),k.onRecoverableError!==void 0&&($e=k.onRecoverableError)),k=ps(g,1,!1,null,null,X,!1,ve,$e),g[gr]=k.current,to(g.nodeType===8?g.parentNode:g),new ys(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(e(188)):(g=Object.keys(g).join(","),Error(e(268,g)));return g=$s(k),g=g===null?null:g.stateNode,g},reactDom_production_min.flushSync=function(g){return ri(g)},reactDom_production_min.hydrate=function(g,k,X){if(!Pa(k))throw Error(e(200));return Aa(null,g,k,!0,X)},reactDom_production_min.hydrateRoot=function(g,k,X){if(!gs(g))throw Error(e(405));var ve=X!=null&&X.hydratedSources||null,$e=!1,Ie="",De=Qc;if(X!=null&&(X.unstable_strictMode===!0&&($e=!0),X.identifierPrefix!==void 0&&(Ie=X.identifierPrefix),X.onRecoverableError!==void 0&&(De=X.onRecoverableError)),k=Xc(k,null,g,1,X??null,$e,!1,Ie,De),g[gr]=k.current,to(g),ve)for(g=0;g<ve.length;g++)X=ve[g],$e=X._getVersion,$e=$e(X._source),k.mutableSourceEagerHydrationData==null?k.mutableSourceEagerHydrationData=[X,$e]:k.mutableSourceEagerHydrationData.push(X,$e);return new Ia(k)},reactDom_production_min.render=function(g,k,X){if(!Pa(k))throw Error(e(200));return Aa(null,g,k,!1,X)},reactDom_production_min.unmountComponentAtNode=function(g){if(!Pa(g))throw Error(e(40));return g._reactRootContainer?(ri(function(){Aa(null,null,g,!1,function(){g._reactRootContainer=null,g[gr]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=ls,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(g,k,X,ve){if(!Pa(X))throw Error(e(200));if(g==null||g._reactInternals===void 0)throw Error(e(38));return Aa(g,k,X,!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",e=typeof Set=="function",t=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(d,p){if(d===p)return!0;
9if(d&&p&&typeof d=="object"&&typeof p=="object"){if(d.constructor!==p.constructor)return!1;var h,y,$;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 E;if(i&&d instanceof Map&&p instanceof Map){if(d.size!==p.size)return!1;for(E=d.entries();!(y=E.next()).done;)if(!p.has(y.value[0]))return!1;for(E=d.entries();!(y=E.next()).done;)if(!o(y.value[1],p.get(y.value[0])))return!1;return!0}if(e&&d instanceof Set&&p instanceof Set){if(d.size!==p.size)return!1;for(E=d.entries();!(y=E.next()).done;)if(!p.has(y.value[0]))return!1;return!0}if(t&&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($=Object.keys(d),h=$.length,h!==Object.keys(p).length)return!1;for(y=h;y--!==0;)if(!Object.prototype.hasOwnProperty.call(p,$[y]))return!1;if(n&&d instanceof Element)return!1;for(y=h;y--!==0;)if(!(($[y]==="_owner"||$[y]==="__v"||$[y]==="__o")&&d.$$typeof)&&!o(d[$[y]],p[$[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,e,t,o,d,p,h,y){if(!i){var $;if(e===void 0)$=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=[t,o,d,p,h,y],M=0;$=new Error(e.replace(/%s/g,function(){return E[M++]})),$.name="Invariant Violation"}throw $.framesToPop=1,$}};return browser=n,browser}var browserExports=requireBrowser();const invariant=getDefaultExportFromCjs(browserExports);var shallowequal,hasRequiredShallowequal;function requireShallowequal(){return hasRequiredShallowequal||(hasRequiredShallowequal=1,shallowequal=function(i,e,t,o){var d=t?t.call(o,i,e):void 0;if(d!==void 0)return!!d;if(i===e)return!0;if(typeof i!="object"||!i||typeof e!="object"||!e)return!1;var p=Object.keys(i),h=Object.keys(e);if(p.length!==h.length)return!1;for(var y=Object.prototype.hasOwnProperty.bind(e),$=0;$<p.length;$++){var E=p[$];if(!y(E))return!1;var M=i[E],H=e[E];if(d=t?t.call(o,M,H,E):void 0,d===!1||d===void 0&&M!==H)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,e])=>(n[e]=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 e=n.length-1;e>=0;e-=1){const t=n[e];if(Object.prototype.hasOwnProperty.call(t,i))return t[i]}return null},getTitleFromPropsList=n=>{let i=getInnermostProperty(n,"title");const e=getInnermostProperty(n,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(i)&&(i=i.join("")),e&&i)return e.replace(/%s/g,()=>i);const t=getInnermostProperty(n,HELMET_PROPS.DEFAULT_TITLE);return i||t||void 0},getOnChangeClientState=n=>getInnermostProperty(n,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(n,i)=>i.filter(e=>typeof e[n]<"u").map(e=>e[n]).reduce((e,t)=>
9({...e,...t}),{}),getBaseTagFromPropsList=(n,i)=>i.filter(e=>typeof e.base<"u").map(e=>e.base).reverse().reduce((e,t)=>{if(!e.length){const o=Object.keys(t);for(let d=0;d<o.length;d+=1){const h=o[d].toLowerCase();if(n.indexOf(h)!==-1&&t[h])return e.concat(t)}}return e},[]),warn=n=>console&&typeof console.warn=="function"&&console.warn(n),getTagsFromPropsList=(n,i,e)=>{const t={};return e.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 $;const E=Object.keys(y);for(let H=0;H<E.length;H+=1){const Z=E[H],be=Z.toLowerCase();i.indexOf(be)!==-1&&!($==="rel"&&y[$].toLowerCase()==="canonical")&&!(be==="rel"&&y[be].toLowerCase()==="stylesheet")&&($=be),i.indexOf(Z)!==-1&&(Z==="innerHTML"||Z==="cssText"||Z==="itemprop")&&($=Z)}if(!$||!y[$])return!1;const M=y[$].toLowerCase();return t[$]||(t[$]={}),p[$]||(p[$]={}),t[$][M]?!1:(p[$][M]=!0,!0)}).reverse().forEach(y=>o.push(y));const h=Object.keys(p);for(let y=0;y<h.length;y+=1){const $=h[y],E={...t[$],...p[$]};t[$]=E}return o},[]).reverse()},getAnyTrueFromPropsList=(n,i)=>{if(Array.isArray(n)&&n.length){for(let e=0;e<n.length;e+=1)if(n[e][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 e=Object.keys(n);for(let t=0;t<e.length;t+=1)if(i[e[t]]&&i[e[t]].includes(n[e[t]]))return!0;return!1},prioritizer=(n,i)=>Array.isArray(n)?n.reduce((e,t)=>(checkIfPropsMatch(t,i)?e.priority.push(t):e.default.push(t),e),{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,e)=>{const t=typeof n[e]<"u"?`${e}="${n[e]}"`:`${e}`;return i?`${i} ${t}`:t},""),generateTitleAsString=(n,i,e,t)=>{const o=generateElementAttributesAsString(e),d=flattenArray(i);return o?`<${n} ${HELMET_ATTRIBUTE}="true" ${o}>${encodeSpecialCharacters(d,t)}</${n}>`:`<${n} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(d,t)}</${n}>`},generateTagsAsString=(n,i,e=!0)=>i.reduce((t,o)=>{const d=o,p=Object.keys(d).filter($=>!($==="innerHTML"||$==="cssText")).reduce(($,E)=>{const M=typeof d[E]>"u"?E:`${E}="${encodeSpecialCharacters(d[E],e)}"`;return $?`${$} ${M}`:M},""),h=d.innerHTML||d.cssText||"",y=SELF_CLOSING_TAGS.indexOf(n)===-1;return`${t}<${n} ${HELMET_ATTRIBUTE}="true" ${p}${y?"/>":`>${h}</${n}>`}`},""),convertElementAttributesToReactProps=(n,i={})=>Object.keys(n).reduce((e,t)=>{const o=REACT_TAG_MAP[t];return e[o||t]=n[t],e},i),generateTitleAsReactComponent=(n,i,e)=>{const t={key:i,[HELMET_ATTRIBUTE]:!0},o=convertElementAttributesToReactProps(e,t);return[React.createElement("title",o,i)]},generateTagsAsReactComponent=(n,i)=>i.map((e,t)=>{const o={key:t,[HELMET_ATTRIBUTE]:!0};return Object.keys(e).forEach(d=>{const h=REACT_TAG_MAP[d]||d;if(h==="innerHTML"||h==="cssText"){const y=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:y}}else o[h]=e[d]}),React.createElement(n,o)}),getMethodsForTag=(n,i,e=!0)=>{switch(n){case"title":return{toComponent:()=>generateTitleAsReactComponent(n,i.title,i.titleAttributes),toString:()=>generateTitleAsString(n,i.title,i.titleAttributes,e)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(i),toString:()=>generateElementAttributesAsString(i)};default:return{toComponent:()=>generateTagsAsReactComponent(n,i),toString:()=>generateTagsAsString(n,i,e)}}},getPriorityMethods=({metaTags:n,linkTags:i,scriptTags:e,encode:t})=>{const o=prioritizer(n,SEO_PRIORITY_TAGS.meta),d=prioritizer(i,SEO_PRIORITY_TAGS.link),p=prioritizer(e,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",o.priority),...generateTagsAsReactComponent("link",d.priority),...generateTagsAsReactComponent("script",p.priority)],toString:()=>`${getMethodsForTag("meta",o.priority,t)} ${getMethodsForTag("link",d.priority,t)} ${getMethodsForTag("script",p.priority,t)}`},metaTags:o.default,linkTags:d.default,scriptTags:p.default}},mapStateOnServer=n=>{const{baseTag:i,bodyAttributes:e,encode:t=!0,htmlAttributes:o,noscriptTags:d,styleTags:p,title:h="",titleAttributes:y,prioritizeSeoTags:$}=n;let{linkTags:E,metaTags:M,scriptTags:H}=n,Z={toComponent:()=>{},toString:()=>""};return $&&({priorityMethods:Z,linkTags:E,metaTags:M,scriptTags:H}=getPriorityMethods(n)),{priority:Z,base:getMethodsForTag("base",i,t),bodyAttributes:getMethodsForTag("bodyAttributes",e,t),htmlAttributes:getMethodsForTag("htmlAttributes",o,t),link:getMethodsForTag("link",E,t),meta:getMethodsForTag("meta",M,t),noscript:getMethodsForTag("noscript",d,t),script:getMethodsForTag("script",H,t),style:getMethodsForTag("style",p,t),title:getMethodsForTag("title",{title:h,titleAttributes:y},t)}},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 td extends reactExports.Component{static canUseDOM=isDocument;helmetData;constructor(i){super(i),this.helmetData=new HelmetData(this.props.context||{},td.canUseDOM)}render(){return React.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},updateTags=(n,i)=>{const e=document.head||document.querySelector("head"),t=e.querySelectorAll(`${n}[${HELMET_ATTRIBUTE}]`),o=[].slice.call(t),d=[];let p;
9return i&&i.length&&i.forEach(h=>{const y=document.createElement(n);for(const $ in h)if(Object.prototype.hasOwnProperty.call(h,$))if($==="innerHTML")y.innerHTML=h.innerHTML;else if($==="cssText")y.styleSheet?y.styleSheet.cssText=h.cssText:y.appendChild(document.createTextNode(h.cssText));else{const E=$,M=typeof h[E]>"u"?"":h[E];y.setAttribute($,M)}y.setAttribute(HELMET_ATTRIBUTE,"true"),o.some(($,E)=>(p=E,y.isEqualNode($)))?o.splice(p,1):d.push(y)}),o.forEach(h=>h.parentNode?.removeChild(h)),d.forEach(h=>e.appendChild(h)),{oldTags:o,newTags:d}},updateAttributes=(n,i)=>{const e=document.getElementsByTagName(n)[0];if(!e)return;const t=e.getAttribute(HELMET_ATTRIBUTE),o=t?t.split(","):[],d=[...o],p=Object.keys(i);for(const h of p){const y=i[h]||"";e.getAttribute(h)!==y&&e.setAttribute(h,y),o.indexOf(h)===-1&&o.push(h);const $=d.indexOf(h);$!==-1&&d.splice($,1)}for(let h=d.length-1;h>=0;h-=1)e.removeAttribute(d[h]);o.length===d.length?e.removeAttribute(HELMET_ATTRIBUTE):e.getAttribute(HELMET_ATTRIBUTE)!==p.join(",")&&e.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:e,bodyAttributes:t,htmlAttributes:o,linkTags:d,metaTags:p,noscriptTags:h,onChangeClientState:y,scriptTags:$,styleTags:E,title:M,titleAttributes:H}=n;updateAttributes("body",t),updateAttributes("html",o),updateTitle(M,H);const Z={baseTag:updateTags("base",e),linkTags:updateTags("link",d),metaTags:updateTags("meta",p),noscriptTags:updateTags("noscript",h),scriptTags:updateTags("script",$),styleTags:updateTags("style",E)},be={},ye={};Object.keys(Z).forEach(we=>{const{newTags:xe,oldTags:Ce}=Z[we];xe.length&&(be[we]=xe),Ce.length&&(ye[we]=Z[we].oldTags)}),i&&i(),y(n,be,ye)},_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 e=null;const t=reducePropsToState$1(n.get().map(o=>{const d={...o.props};return delete d.context,d}));HelmetProvider.canUseDOM?client_default(t):server_default&&(e=server_default(t)),i(e)}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,e,t){return{...i,[n.type]:[...i[n.type]||[],{...e,...this.mapNestedChildrenToProps(n,t)}]}}mapObjectTypeChildren(n,i,e,t){switch(n.type){case"title":return{...i,[n.type]:t,titleAttributes:{...e}};case"body":return{...i,bodyAttributes:{...e}};case"html":return{...i,htmlAttributes:{...e}};default:return{...i,[n.type]:{...e}}}}mapArrayTypeChildrenToProps(n,i){let e={...i};return Object.keys(n).forEach(t=>{e={...e,[t]:n[t]}}),e}warnOnInvalidChildren(n,i){return invariant(VALID_TAG_NAMES.some(e=>n.type===e),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||t
9ypeof i=="string"||Array.isArray(i)&&!i.some(e=>typeof e!="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 e={};return React.Children.forEach(n,t=>{if(!t||!t.props)return;const{children:o,...d}=t.props,p=Object.keys(d).reduce((y,$)=>(y[HTML_TAG_MAP[$]||$]=d[$],y),{});let{type:h}=t;switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(t,o),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(o,i);break;case"link":case"meta":case"noscript":case"script":case"style":e=this.flattenArrayTypeChildren(t,e,p,o);break;default:i=this.mapObjectTypeChildren(t,i,p,o);break}}),this.mapArrayTypeChildrenToProps(e,i)}render(){const{children:n,...i}=this.props;let e={...i},{helmetData:t}=i;if(n&&(e=this.mapChildrenToProps(n,e)),t&&!(t instanceof HelmetData)){const o=t;t=new HelmetData(o.context,!0),delete e.helmetData}return t?React.createElement(HelmetDispatcher,{...e,context:t.value}):React.createElement(Context.Consumer,null,o=>React.createElement(HelmetDispatcher,{...e,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 e=i[1];switch(i[2]){case"ch":e=parseFloat(e)*8.8984375;break;case"em":case"rem":e=parseFloat(e)*16;break;case"ex":e=parseFloat(e)*8.296875;break;case"px":e=parseFloat(e);break}return+e}function _testQuery(n,i,e){return function(t){return n.test(t)?!0:i.test(t)?!1:e.test(t)}}function _testIsPrint(n,i){const e=isPrint.test(n),t=isPrintOnly.test(n),o=isPrint.test(i),d=isPrintOnly.test(i);return e&&o?!t&&d?1:t&&!d?-1:n.localeCompare(i):e?1:o?-1:null}function sortCSSmq(n,i){if(n==="")return-1;if(i==="")return 1;const e=_testIsPrint(n,i);if(e!==null)return e;const t=isMinWidth(n)||isMinHeight(n),o=isMaxWidth(n)||isMaxHeight(n),d=isMinWidth(i)||isMinHeight(i),p=isMaxWidth(i)||isMaxHeight(i);if(t&&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,e,t){this.idGenerator=i,this.onNewCache=e,this.onNewValue=t,this.sortedCacheKeys=[],this.caches={}}getCache(i){if(!this.caches[i]){const e=new Cache(this.idGenerator,this.onNewValue);e.key=i,this.sortedCacheKeys.push(i),this.sortedCacheKeys.sort(sortCSSmq);const t=this.sortedCacheKeys.indexOf(i),o=t<this.sortedCacheKeys.length-1?this.sortedCacheKeys[t+1]:void 0;this.caches[i]=e,this.onNewCache(i,e,o)}return this.caches[i]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(i,e){this.cache={},this.idGenerator=i,this.onNewValue=e}addValue(i,e){const t=this.cache[i];if(t)return t;const o=this.idGenerator.next();return this.cache[i]=o,this.onNewValue(this,o,e),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,e){if(n.hasOwnProperty(i)){for(var t={},o=n[i],d=capitalizeString(i),p=Object.keys(e),h=0;h<p.length;h++){var y=p[h];if(y===i)for(var $=0;$<o.length;$++)t[o[$]+d]=e[i];t[y]=e[y]}return t}return e}function prefixValue$1(n,i,e,t,o){for(var d=0,p=n.length;d<p;++d){var h=n[d](i,e,t,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 e=0,t=i.length;e<t;++e)addIfNew(n,i[e]);else addIfNew(n,i)}function isObject$3(n){return n instanceof Object&&!Array.isArray(n)}function createPrefixer(n){var i=n.prefixMap,e=n.plugins;return function t(o){for(var d in o){var p=o[d];if(isObject$3(p))o[d]=t(p);else if(Array.isArray(p)){for(var h=[],y=0,$=p.length;y<$;++y){var E=prefixValue$1(e,d,p[y],o,i);addNewValuesOnly(h,E||p[y])}h.length>0&&(o[d]=h)}else{var M=prefixValue$1(e,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(e){return e+i})}var isPrefixedValue$1={exports:{}},hasRequiredIsPrefixedValue;function requireIsPrefixedValue(){return hasRequiredIsPrefixedValue||(hasRequiredIsPrefixedValue=1,(function(n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=t;var e=/-webkit-|-moz-|-ms-/;function t(o){return typeof o=="string"&&e.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(e){return i.replace(/cross-fade\(/g,e+"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(e){return i.replace(/filter\(/g,e+"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,e){n==="flexDirection"&&typeof i=="string"&&(i.indexOf("column")>-1?e.WebkitBoxOrient="vertical":e.WebkitBoxOrient="horizontal",i.indexOf("reverse")>-1?e.WebkitBoxDirection="reverse":e.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(n)&&(e[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(e){return i.replace(values$1,function(t){return e+t})})}var _slicedToArray$n=(function(){function n(i,e){var t=[],o=!0,d=!1,p=void 0;try{for(var h=i[Symbol.iterator](),y;!(o=(y=h.next()).done)&&(t.push(y.value),!(e&&t.length===e));o=!0);}catch($){d=!0,p=$}finally{try{!o&&h.return&&h.return()}finally{if(d)throw p}}return t}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return n(i,e);
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,e){alignmentValues.indexOf(i)>-1&&(e.msGridRowAlign=i)},gridColumn:function(i,e){if(isSimplePositionValue(i))e.msGridColumn=i;else if(isComplexSpanValue(i)){var t=i.split("/"),o=_slicedToArray$n(t,2),d=o[0],p=o[1];propertyConverters.gridColumnStart(+d,e);var h=p.split(/ ?span /),y=_slicedToArray$n(h,2),$=y[0],E=y[1];$===""?propertyConverters.gridColumnEnd(+d+ +E,e):propertyConverters.gridColumnEnd(+p,e)}else propertyConverters.gridColumnStart(i,e)},gridColumnEnd:function(i,e){var t=e.msGridColumn;isSimplePositionValue(i)&&isSimplePositionValue(t)&&(e.msGridColumnSpan=i-t)},gridColumnStart:function(i,e){isSimplePositionValue(i)&&(e.msGridColumn=i)},gridRow:function(i,e){if(isSimplePositionValue(i))e.msGridRow=i;else if(isComplexSpanValue(i)){var t=i.split("/"),o=_slicedToArray$n(t,2),d=o[0],p=o[1];propertyConverters.gridRowStart(+d,e);var h=p.split(/ ?span /),y=_slicedToArray$n(h,2),$=y[0],E=y[1];$===""?propertyConverters.gridRowEnd(+d+ +E,e):propertyConverters.gridRowEnd(+p,e)}else propertyConverters.gridRowStart(i,e)},gridRowEnd:function(i,e){var t=e.msGridRow;isSimplePositionValue(i)&&isSimplePositionValue(t)&&(e.msGridRowSpan=i-t)},gridRowStart:function(i,e){isSimplePositionValue(i)&&(e.msGridRow=i)},gridTemplateColumns:function(i,e){e.msGridColumns=i},gridTemplateRows:function(i,e){e.msGridRows=i},justifySelf:function(i,e){alignmentValues.indexOf(i)>-1&&(e.msGridColumnAlign=i)}};function grid$1(n,i,e){if(n==="display"&&i in displayValues)return displayValues[i];if(n in propertyConverters){var t=propertyConverters[n];t(i,e)}}var prefixes$1=["-webkit-",""];function imageSet(n,i){if(typeof i=="string"&&!isPrefixedValue(i)&&i.indexOf("image-set(")>-1)return prefixes$1.map(function(e){return i.replace(/image-set\(/g,e+"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,e){if(Object.prototype.hasOwnProperty.call(alternativeProps,n))for(var t=alternativeProps[n],o=0,d=t.length;o<d;++o)e[t[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(e){return e+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 e=require$$0,t=o(e);function o(p){return p&&p.__esModule?p:{default:p}}function d(p){return(0,t.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 e=n.split(/,(?![^()]*(?:\([^()]*\))?\))/g),t=0,o=e.length;t<o;++t){var d=e[t],p=[d];for(var h in i){var y=hyphenateProperty(h);if(d.indexOf(y)>-1&&y!=="order")for(var $=i[h],E=0,M=$.length;E<M;++E)p.unshift(d.replace(y,prefixMapping[$[E]]+y))}e[t]=p.join(",")}return e.join(",")}function transition(n,i,e,t){if(typeof i=="string"&&properties.hasOwnProperty(n)){var o=prefixValue(i,t),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:(e["Webkit"+capitalizeString(n)]=d,e["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,e,t){const o=n.getCache(e);let d="";for(const p in i){const h=i[p];if(h!=null)if(typeof h!="object"){const y=`${hyphenateStyleName$2(p)}:${h}`,$=`${t}${y}`,E=o.cache[$];if(E!==void 0){d+=" "+E;continue}else{let M="";const H=prefix({[p]:h});for(const be in H){const ye=H[be],we=typeof ye;if(we==="string"||we==="number"){const xe=`${hyphenateStyleName$2(be)}:${ye}`;xe!==y&&(M+=`${xe};`)}else if(Array.isArray(ye)){const xe=hyphenateStyleName$2(be);for(let Ce=0;Ce<ye.length;Ce++){const Ne=`${xe}:${ye[Ce]}`;Ne!==y&&(M+=`${Ne};`)}}}M+=y;const Z=o.addValue($,{pseudo:t,block:M});d+=" "+Z}}else p[0]===":"?d+=" "+injectStylePrefixed(n,h,e,t+p):p.substring(0,6)==="@media"&&(d+=" "+injectStylePrefixed(n,h,p.substr(7),t))}return d.slice(1)}function atomicSelector(n,i){let e=`.${n}`;return i&&(e+=i),e}function keyframesToBlock(n){let i="";for(const e in n)i+=`${e}{${declarationsToBlock(n[e])}}`;return i}function declarationsToBlock(n){let i="";for(const e in n){const t=n[e];(typeof t=="string"||typeof t=="number")&&(i+=`${hyphenateStyleName$2(e)}:${t};`)}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 e=n.substring(1,n.indexOf(":")!==-1?n.indexOf(":"):n.length),t={};for(const o of i.split(";"))o.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[e]&&(t[o.substring(0,o.indexOf(":"))]=o.substring(o.indexOf(":")+1,o.length));window.__STYLETRON_DEVTOOLS__.atomicMap[e]=t},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(n,i,e){let t;for(;t=i.exec(e);){const[,o,d,p]=t,h=d?`${d}${p}`:p;n.cache[h]=o,n.idGenerator.increment()}}function hydrate(n,i,e){let t;for(;t=i.exec(e);){const[,o,d]=t;n.cache[d]=o,n.idGenerator.increment()}}class StyletronClient{constructor(i={}){this.styleElements={};const e=new SequentialIDGenerator(i.prefix),t=(o,d,p)=>{const{pseudo:h,block:y}=p,$=this.styleElements[o.key].sheet,E=atomicSelector(d,h),M=styleBlockToRule(E,y);try{$.insertRule(M,$.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(e,(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},t),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{}}
9),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(e,t);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 e=declarationsToBlock(i);return this.fontFaceCache.addValue(e,i)}renderKeyframes(i){const e=keyframesToBlock(i);return this.keyframesCache.addValue(e,i)}}function findSheetIndexWithMedia(n,i){let e=0;for(;e<n.length;e++){const t=n[e];if(t.tagName==="STYLE"&&t.media===i)return e}return-1}function driver(n,i){const e=renderDeclarativeRules(n,i);return i.renderStyle(e)}function getInitialStyle(){return{}}function renderDeclarativeRules(n,i){for(const e in n){const t=n[e];if(e==="animationName"&&typeof t!="string"){n.animationName=i.renderKeyframes(t);continue}if(e==="fontFamily"&&typeof t!="string")if(Array.isArray(t)){let o="";for(const d of t)typeof d=="object"?o+=`${i.renderFontFace(d)},`:typeof d=="string"&&(o+=`${d},`);n.fontFamily=o.slice(0,-1);continue}else{if(t===void 0)continue;n.fontFamily=i.renderFontFace(t);continue}typeof t=="object"&&t!==null&&renderDeclarativeRules(t,i)}return n}function _extends$z(){return _extends$z=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$z.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(e){return driver(e,n)}]}function createStyled$1({getInitialStyle:n,driver:i,wrapper:e}){function t(o,d){return createStyledElementComponent(autoComposeShallow({reducers:[],base:o,driver:i,getInitialStyle:n,wrapper:e},d))}return t}const withStyleDeep=(n,i)=>{const e=n.__STYLETRON__;return createStyledElementComponent(autoComposeDeep(e,i))},withStyle$1=withStyleDeep,withWrapper$1=(n,i)=>{const e=n.__STYLETRON__,t={getInitialStyle:e.getInitialStyle,base:e.base,driver:e.driver,wrapper:i,reducers:e.reducers};return createStyledElementComponent(t)};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,(e,t)=>shallowMerge(e,i(t)))}function dynamicComposeDeep(n,i){return composeDynamic(n,(e,t)=>deepMerge$1(e,i(t)))}function createShallowMergeReducer(n){return{reducer:i=>shallowMerge(i,n),assignmentCommutative:!0,factory:createShallowMergeReducer,style:n}}function createDeepMergeReducer(n){return{reducer:i=>
9deepMerge$1(i,n),assignmentCommutative:!0,factory:createDeepMergeReducer,style:n}}function composeStatic(n,i){if(n.reducers.length===0){const e=i.reducer(n.getInitialStyle());return{reducers:n.reducers,base:n.base,driver:n.driver,wrapper:n.wrapper,getInitialStyle:()=>e}}else{const e=n.reducers[0];if(e.assignmentCommutative===!0&&i.assignmentCommutative===!0){const t=i.reducer(e.style);return{getInitialStyle:n.getInitialStyle,base:n.base,driver:n.driver,wrapper:n.wrapper,reducers:[e.factory(t)].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:e,driver:t,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 H=omitPrefixedKeys($);let Z=resolveStyle(d,i,$);$.$style&&(typeof $.$style=="function"?Z=deepMerge$1(Z,$.$style($)):Z=deepMerge$1(Z,$.$style));const be=t(Z,M),ye=$.$as?$.$as:e;return H.className=$.className?`${$.className} ${be}`:be,$.$ref&&console.warn("The prop `$ref` has been deprecated. Use `ref` instead. Refs are now forwarded with React.forwardRef."),reactExports.createElement(ye,_extends$z({},H,{ref:E||$.$ref}))}));return y.__STYLETRON__={base:e,reducers:i,driver:t,wrapper:o,getInitialStyle:d},y}function resolveStyle(n,i,e){let t=n(),o=i.length;for(;o--;){const d=i[o].reducer;t=d(t,e)}return t}function isObject$2(n){return typeof n=="object"&&n!==null}function omitPrefixedKeys(n){const i={};for(const e in n)e[0]!=="$"&&(i[e]=n[e]);return i}function deepMerge$1(n,i){const e=assign({},n);for(const t in i){const o=i[t];isObject$2(o)&&isObject$2(n[t])?e[t]=deepMerge$1(n[t],o):e[t]=o}return e}function shallowMerge(n,i){return assign(assign({},n),i)}function assign(n,i){for(const e in i)n[e]=i[e];return n}var jsx=function(i,e){var t=arguments;if(e==null||!hasOwn.call(e,"css"))return reactExports.createElement.apply(void 0,t);var o=t.length,d=new Array(o);d[0]=Emotion$1,d[1]=createEmotionProps(i,e);for(var p=2;p<o;p++)d[p]=t[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 e=n.styles,t=serializeStyles([e],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+" "+t.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(t.next!==void 0&&insertStyles(i,t.next,!0),p.tags.length){var y=p.tags[p.tags.length-1].nextElementSibling;p.before=y,p.flush()}i.insert("",t,p,!1)},[i,t.name]),null});function css(){for(var n=arguments.length,i=new Array(n),e=0;e<n;e++)i[e]=arguments[e];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(e=>{const{family:t,weight:o,weightRange:d,url:p,style:h,unicodeRange:y}=e,$=d||o;return` 10 @font-face { 11 font-family: ${t}; 12 src: url(${p}) format("woff2"); 13 font-display: swap; 14 ${h?`font-style: ${h};`:""} 15 ${$?`font-weight: ${$};`:""} 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,e])=>jsx$1("link",{id:i,rel:"stylesheet",href:e},i))});typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,i;const e=new Promise((t,o)=>{n=t,i=o});return{resolve:n,reject:i,promise:e}});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: 29,039 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(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,e){for(var t=new Array(arguments.length-1),o=0,d=2,p=!0;d<arguments.length;)t[o++]=arguments[d++];return new Promise(function(y,$){t[o]=function(M){if(p)if(p=!1,M)$(M);else{for(var H=new Array(arguments.length-1),Z=0;Z<H.length;)H[Z++]=arguments[Z];y.apply(null,H)}};try{i.apply(e||null,t)}catch(E){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 $=0;--y%4>1&&h.charAt(y)==="=";)++$;return Math.ceil(h.length*3)/4-$};for(var e=new Array(64),t=new Array(123),o=0;o<64;)t[e[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(h,y,$){for(var E=null,M=[],H=0,Z=0,be;y<$;){var ye=h[y++];switch(Z){case 0:M[H++]=e[ye>>2],be=(ye&3)<<4,Z=1;break;case 1:M[H++]=e[be|ye>>4],be=(ye&15)<<2,Z=2;break;case 2:M[H++]=e[be|ye>>6],M[H++]=e[ye&63],Z=0;break}H>8191&&((E||(E=[])).push(String.fromCharCode.apply(String,M)),H=0)}return Z&&(M[H++]=e[be],M[H++]=61,Z===1&&(M[H++]=61)),E?(H&&E.push(String.fromCharCode.apply(String,M.slice(0,H))),E.join("")):String.fromCharCode.apply(String,M.slice(0,H))};var d="invalid encoding";i.decode=function(h,y,$){for(var E=$,M=0,H,Z=0;Z<h.length;){var be=h.charCodeAt(Z++);if(be===61&&M>1)break;if((be=t[be])===void 0)throw Error(d);switch(M){case 0:H=be,M=1;break;case 1:y[$++]=H<<2|(be&48)>>4,H=be,M=2;break;case 2:y[$++]=(H&15)<<4|(be&60)>>2,H=be,M=3;break;case 3:y[$++]=(H&3)<<6|be,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(e,t,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:o||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],d=0;d<o.length;)o[d].fn===t?o.splice(d,1):++d;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var o=[],d=1;d<arguments.length;)o.push(arguments[d++]);for(d=0;d<t.length;)t[d].fn.apply(t[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 $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3]}function E(Z,be,ye){p[0]=Z,be[ye]=h[3],be[ye+1]=h[2],be[ye+2]=h[1],be[ye+3]=h[0]}d.writeFloatLE=y?$:E,d.writeFloatBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],p[0]}function H(Z,be){return h[3]=Z[be],h[2]=Z[be+1],h[1]=Z[be+2],h[0]=Z[be+3],p[0]}d.readFloatLE=y?M:H,d.readFloatBE=y?H:M})():(function(){function p(y,$,E,M){var H=$<0?1:0;if(H&&($=-$),$===0)y(1/$>0?0:2147483648,E,M);else if(isNaN($))y(2143289344,E,M);else if($>34028234663852886e22)y((H<<31|2139095040)>>>0,E,M);else if($<11754943508222875e-54)y((H<<31|Math.round($/1401298464324817e-60))>>>0,E,M);else{var Z=Math.floor(Math.log($)/Math.LN2),be=Math.round($*Math.pow(2,-Z)*8388608)&8388607;y((H<<31|Z+127<<23|be)>>>0,E,M)}}d.writeFloatLE=p.bind(null,i),d.writeFloatBE=p.bind(null,e);function h(y,$,E){var M=y($,E),H=(M>>31)*2+1,Z=M>>>23&255,be=M&8388607;return Z===255?be?NaN:H*(1/0):Z===0?H*1401298464324817e-60*be:H*Math.pow(2,Z-150)*(be+8388608)}d.readFloatLE=h.bind(null,t),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 $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3],be[ye+4]=h[4],be[ye+5]=h[5],be[ye+6]=h[6],be[ye+7]=h[7]}function E(Z,be,ye){p[0]=Z,be[ye]=h[7],be[ye+1]=h[6],be[ye+2]=h[5],be[ye+3]=h[4],be[ye+4]=h[3],be[ye+5]=h[2],be[ye+6]=h[1],be[ye+7]=h[0]}d.writeDoubleLE=y?$:E,d.writeDoubleBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],h[4]=Z[be+4],h[5]=Z[be+5],h[6]=Z[be+6],h[7]=Z[be+7],p[0]}function H(Z,be){return h[7]=Z[be],h[6]=Z[be+1],h[5]=Z[be+2],h[4]=Z[be+3],h[3]=Z[be+4],h[2]=Z[be+5],h[1]=Z[be+6],h[0]=Z[be+7],p[0]}d.readDoubleLE=y?M:H,d.readDoubleBE=y?H:M})():(function(){function p(y,$,E,M,H,Z){var be=M<0?1:0;if(be&&(M=-M),M===0)y(0,H,Z+$),y(1/M>0?0:2147483648,H,Z+E);else if(isNaN(M))y(0,H,Z+$),y(2146959360,H,Z+E);else if(M>17976931348623157e292)y(0,H,Z+$),y((be<<31|2146435072)>>>0,H,Z+E);else{var ye;if(M<22250738585072014e-324)ye=M/5e-324,y(ye>>>0,H,Z+$),y((be<<31|ye/4294967296)>>>0,H,Z+E);else{var we=Math.floor(Math.log(M)/Math.LN2);we===1024&&(we=1023),ye=M*Math.pow(2,-we),y(ye*4503599627370496>>>0,H,Z+$),y((be<<31|we+1023<<20|ye*1048576&1048575)>>>0,H,Z+E)}}}d.writeDoubleLE=p.bind(null,i,0,4),d.writeDoubleBE=p.bind(null,e,4,0);function h(y,$,E,M,H){var Z=y(M,H+$),be=y(M,H+E),ye=(be>>31)*2+1,we=be>>>20&2047,xe=4294967296*(be&1048575)+Z;return we===2047?xe?NaN:ye*(1/0):we===0?ye*5e-324*xe:ye*Math.pow(2,we-1075)*(xe+4503599627370496)}d.readDoubleLE=h.bind(null,t,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 e(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 t(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(t){for(var o=0,d=0,p=0;p<t.length;++p)d=t.charCodeAt(p),d<128?o+=1:d<2048?o+=2:(d&64512)===55296&&(t.charCodeAt(p+1)&64512)===56320?(++p,o+=4):o+=3;return o},i.read=function(t,o,d){var p=d-o;if(p<1)return"";for(var h=null,y=[],$=0,E;o<d;)E=t[o++],E<128?y[$++]=E:E>191&&E<224?y[$++]=(E&31)<<6|t[o++]&63:E>239&&E<365?(E=((E&7)<<18|(t[o++]&63)<<12|(t[o++]&63)<<6|t[o++]&63)-65536,y[$++]=55296+(E>>10),y[$++]=56320+(E&1023)):y[$++]=(E&15)<<12|(t[o++]&63)<<6|t[o++]&63,$>8191&&((h||(h=[])).push(String.fromCharCode.apply(String,y)),$=0);return h?($&&h.push(String.fromCharCode.apply(String,y.slice(0,$))),h.join("")):String.fromCharCode.apply(String,y.slice(0,$))},i.write=function(t,o,d){for(var p=d,h,y,$=0;$<t.length;++$)h=t.charCodeAt($),h<128?o[d++]=h:h<2048?(o[d++]=h>>6|192,o[d++]=h&63|128):(h&64512)===55296&&((y=t.charCodeAt($+1))&64512)===56320?(h=65536+((h&1023)<<10)+(y&1023),++$,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,e,t){var o=t||8192,d=o>>>1,p=null,h=o;return function($){if($<1||$>d)return i($);h+$>o&&(p=i(o),h=0);var E=e.call(p,h,h+=$);return h&7&&(h=(h|7)+1),E}}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 e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(p){if(p===0)return e;var h=p<0;h&&(p=-p);var y=p>>>0,$=(p-y)/4294967296>>>0;return h&&($=~$>>>0,y=~y>>>0,++y>4294967295&&(y=0,++$>4294967295&&($=0))),new i(y,$)},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):e},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===t?e: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 e(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=e,i.lcFirst=function(d){return d.charAt(0).toLowerCase()+d.substring(1)};function t(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&&e(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=t,i.ProtocolError=t("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),$=y.length-1;$>-1;--$)if(p[y[$]]===1&&this[y[$]]!==void 0&&this[y[$]]!==null)return y[$]}},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,e=n.LongBits,t=n.base64,o=n.utf8;function d(we,xe,Ce){this.fn=we,this.len=xe,this.next=void 0,this.val=Ce}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 $=function(){return n.Buffer?function(){return(y.create=function(){return new i})()}:function(){return new y}};y.create=$(),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,Ce,Ne){return this.tail=this.tail.next=new d(xe,Ce,Ne),this.len+=Ce,this};function E(we,xe,Ce){xe[Ce]=we&255}function M(we,xe,Ce){for(;we>127;)xe[Ce++]=we&127|128,we>>>=7;xe[Ce]=we}function H(we,xe){this.len=we,this.next=void 0,this.val=xe}H.prototype=Object.create(d.prototype),H.prototype.fn=M,y.prototype.uint32=function(xe){return this.len+=(this.tail=this.tail.next=new H((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,e.fromNumber(xe)):this.uint32(xe)},y.prototype.sint32=function(xe){return this.uint32((xe<<1^xe>>31)>>>0)};function Z(we,xe,Ce){for(;we.hi;)xe[Ce++]=we.lo&127|128,we.lo=(we.lo>>>7|we.hi<<25)>>>0,we.hi>>>=7;for(;we.lo>127;)xe[Ce++]=we.lo&127|128,we.lo=we.lo>>>7;xe[Ce++]=we.lo}y.prototype.uint64=function(xe){var Ce=e.from(xe);return this._push(Z,Ce.length(),Ce)},y.prototype.int64=y.prototype.uint64,y.prototype.sint64=function(xe){var Ce=e.from(xe).zzEncode();return this._push(Z,Ce.length(),Ce)},y.prototype.bool=function(xe){return this._push(E,1,xe?1:0)};function be(we,xe,Ce){xe[Ce]=we&255,xe[Ce+1]=we>>>8&255,xe[Ce+2]=we>>>16&255,xe[Ce+3]=we>>>24}y.prototype.fixed32=function(xe){return this._push(be,4,xe>>>0)},y.prototype.sfixed32=y.prototype.fixed32,y.prototype.fixed64=function(xe){var Ce=e.from(xe);return this._push(be,4,Ce.lo)._push(be,4,Ce.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 ye=n.Array.prototype.set?function(xe,Ce,Ne){Ce.set(xe,Ne)}:function(xe,Ce,Ne){for(var Fe=0;Fe<xe.length;++Fe)Ce[Ne+Fe]=xe[Fe]};return y.prototype.bytes=function(xe){var Ce=xe.length>>>0;if(!Ce)return this._push(E,1,0);if(n.isString(xe)){var Ne=y.alloc(Ce=t.length(xe));t.decode(xe,Ne,0),xe=Ne}return this.uint32(Ce)._push(ye,Ce,xe)},y.prototype.string=function(xe){var Ce=o.length(xe);return Ce?this.uint32(Ce)._push(o.write,Ce,xe):this._push(E,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,Ce=this.tail,Ne=this.len;return this.reset().uint32(Ne),Ne&&(this.tail.next=xe.next,this.tail=Ce,this.len+=Ne),this},y.prototype.finish=function(){for(var xe=this.head.next,Ce=this.constructor.alloc(this.len),Ne=0;xe;)xe.fn(xe.val,Ce,Ne),Ne+=xe.len,xe=xe.next;return Ce},y._configure=function(we){i=we,y.create=$(),i._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=e;var n=requireWriter();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(){n.call(this)}e._configure=function(){e.alloc=i._Buffer_allocUnsafe,e.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++]}},e.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(e.writeBytesBuffer,p,d),this};function t(o,d,p){o.length<40?i.utf8.write(o,d,p):d.utf8Write?d.utf8Write(o,p):d.write(o,p)}return e.prototype.string=function(d){var p=i.Buffer.byteLength(d);return this.uint32(p),p&&this._push(t,p,d),this},e._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=d;var n=requireMinimal$1(),i,e=n.LongBits,t=n.utf8;function o(M,H){return RangeError("index out of range: "+M.pos+" + "+(H||1)+" > "+M.len)}function d(M){this.buf=M,this.pos=0,this.len=M.length}var p=typeof Uint8Array<"u"?function(H){if(H instanceof Uint8Array||Array.isArray(H))return new d(H);throw Error("illegal buffer")}:function(H){if(Array.isArray(H))return new d(H);throw Error("illegal buffer")},h=function(){return n.Buffer?function(Z){return(d.create=function(ye){return n.Buffer.isBuffer(ye)?new i(ye):p(ye)})(Z)}:p};d.create=h(),d.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,d.prototype.uint32=(function(){var H=4294967295;return function(){if(H=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(H=(H|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return H;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return H}})(),d.prototype.int32=function(){return this.uint32()|0},d.prototype.sint32=function(){var H=this.uint32();return H>>>1^-(H&1)|0};function y(){var M=new e(0,0),H=0;if(this.len-this.pos>4){for(;H<4;++H)if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*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;H=0}else{for(;H<3;++H){if(this.pos>=this.len)throw o(this);if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*7)>>>0,this.buf[this.pos++]<128)return M}return M.lo=(M.lo|(this.buf[this.pos++]&127)<<H*7)>>>0,M}if(this.len-this.pos>4){for(;H<5;++H)if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}else for(;H<5;++H){if(this.pos>=this.len)throw o(this);if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}throw Error("invalid varint encoding")}d.prototype.bool=function(){return this.uint32()!==0};function $(M,H){return(M[H-4]|M[H-3]<<8|M[H-2]<<16|M[H-1]<<24)>>>0}d.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)|0};function E(){if(this.pos+8>this.len)throw o(this,8);return new e($(this.buf,this.pos+=4),$(this.buf,this.pos+=4))}return d.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var H=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,H},d.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var H=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,H},d.prototype.bytes=function(){var H=this.uint32(),Z=this.pos,be=this.pos+H;if(be>this.len)throw o(this,H);if(this.pos+=H,Array.isArray(this.buf))return this.buf.slice(Z,be);if(Z===be){var ye=n.Buffer;return ye?ye.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,Z,be)},d.prototype.string=function(){var H=this.bytes();return t.read(H,0,H.length)},d.prototype.skip=function(H){if(typeof H=="number"){if(this.pos+H>this.len)throw o(this,H);this.pos+=H}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 H=n.Long?"toLong":"toNumber";n.merge(d.prototype,{int64:function(){return y.call(this)[H](!1)},uint64:function(){return y.call(this)[H](!0)},sint64:function(){return y.call(this).zzDecode()[H](!1)},fixed64:function(){return E.call(this)[H](!0)},sfixed64:function(){return E.call(this)[H](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=e;var n=requireReader();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(t){n.call(this,t)}return e._configure=function(){i.Buffer&&(e.prototype._slice=i.Buffer.prototype.slice)},e.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))},e._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(e,t,o){if(typeof e!="function")throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!o}return i.prototype.rpcCall=function e(t,o,d,p,h){if(!p)throw TypeError("request must be specified");var y=this;if(!h)return n.asPromise(e,y,t,o,d,p);if(!y.rpcImpl){setTimeout(function(){h(Error("already ended"))},0);return}try{return y.rpcImpl(t,o[y.requestDelimited?"encodeDelimited":"encode"](p).finish(),function(E,M){if(E)return y.emit("error",E,t),h(E);if(M===null){y.end(!0);return}if(!(M instanceof d))try{M=d[y.responseDelimited?"decodeDelimited":"decode"](M)}catch(H){return y.emit("error",H,t),h(H)}return y.emit("data",M,t),h(null,M)})}catch($){y.emit("error",$,t),setTimeout(function(){h($)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||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=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(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 e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.format=0,n.prototype.icon="",n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Alert;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.format=e.int32();break}case 3:{p.icon=e.string();break}case 4:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Alert)return e;let t=new $root.Alert;switch(e.body!=null&&(t.body=String(e.body)),e.format){default:if(typeof e.format=="number"){t.format=e.format;break}break;case"UNUSED":case 0:t.format=0;break;case"ERROR":case 1:t.format=1;break;case"WARNING":case 2:t.format=2;break;case"INFO":case 3:t.format=3;break;case"SUCCESS":case 4:t.format=4;break}if(e.icon!=null&&(t.icon=String(e.icon)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Alert.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.format=t.enums===String?"UNUSED":0,o.icon="",o.widthConfig=null),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.format!=null&&e.hasOwnProperty("format")&&(o.format=t.enums===String?$root.Alert.Format[e.format]===void 0?e.format:$root.Alert.Format[e.format]:e.format),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},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+"/Alert"},n.Format=(function(){const i={},e=Object.create(i);return e[i[0]="UNUSED"]=0,e[i[1]="ERROR"]=1,e[i[2]="WARNING"]=2,e[i[3]="INFO"]=3,e[i[4]="SUCCESS"]=4,e})(),n})(),streamlit=$root.streamlit=(()=>{const n={};return n.WidthConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelWidth=null,i.prototype.remWidth=null;let e;return Object.defineProperty(i.prototype,"widthSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelWidth","remWidth"]),set:$util.oneOfSetter(e)}),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;
18){let $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},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.HeightConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelHeight=null,i.prototype.remHeight=null;let e;return Object.defineProperty(i.prototype,"heightSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelHeight","remHeight"]),set:$util.oneOfSetter(e)}),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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},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.GapSize=(function(){const i={},e=Object.create(i);return e[i[0]="GAP_UNDEFINED"]=0,e[i[1]="SMALL"]=1,e[i[2]="MEDIUM"]=2,e[i[3]="LARGE"]=3,e[i[4]="NONE"]=4,e[i[5]="XXSMALL"]=5,e[i[6]="XSMALL"]=6,e[i[7]="XLARGE"]=7,e[i[8]="XXLARGE"]=8,e})(),n.GapConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.gapSize=null;let e;return Object.defineProperty(i.prototype,"gapSpec",{get:$util.oneOfGetter(e=["gapSize"]),set:$util.oneOfSetter(e)}),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));
18let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.GapConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gapSize=o.int32();break}default:o.skipType($&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.ButtonLikeIconPosition=(function(){const i={},e=Object.create(i);return e[i[0]="LEFT"]=0,e[i[1]="RIGHT"]=1,e})(),n.TextAlignmentConfig=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.alignment=0,i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.alignment!=null&&Object.hasOwnProperty.call(t,"alignment")&&o.uint32(8).int32(t.alignment),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.streamlit.TextAlignmentConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.alignment=t.int32();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.streamlit.TextAlignmentConfig)return t;let o=new $root.streamlit.TextAlignmentConfig;switch(t.alignment){default:if(typeof t.alignment=="number"){o.alignment=t.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(t,o){o||(o={});let d={};return o.defaults&&(d.alignment=o.enums===String?"UNSPECIFIED":0),t.alignment!=null&&t.hasOwnProperty("alignment")&&(d.alignment=o.enums===String?$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]===void 0?t.alignment:$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]:t.alignment),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/streamlit.TextAlignmentConfig"},i.Alignment=(function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LEFT"]=1,t[e[2]="CENTER"]=2,t[e[3]="RIGHT"]=3,t[e[4]="JUSTIFY"]=4,t})(),i})(),n})();$root.AppPage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.icon="",n.prototype.isDefault=!1,n.prototype.sectionHeader="",n.prototype.urlPathname="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.isDefault!=null&&Object.hasOwnProperty.call(e,"isDefault")&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&Object.hasOwnProperty.call(e,"sectionHeader")&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&Object.hasOwnProperty.call(e,"urlPathname")&&t.uint32(50).string(e.urlPathname),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AppPage;
18for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageScriptHash=e.string();break}case 2:{p.pageName=e.string();break}case 3:{p.icon=e.string();break}case 4:{p.isDefault=e.bool();break}case 5:{p.sectionHeader=e.string();break}case 6:{p.urlPathname=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AppPage)return e;let t=new $root.AppPage;return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.icon!=null&&(t.icon=String(e.icon)),e.isDefault!=null&&(t.isDefault=!!e.isDefault),e.sectionHeader!=null&&(t.sectionHeader=String(e.sectionHeader)),e.urlPathname!=null&&(t.urlPathname=String(e.urlPathname)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageScriptHash="",o.pageName="",o.icon="",o.isDefault=!1,o.sectionHeader="",o.urlPathname=""),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.isDefault!=null&&e.hasOwnProperty("isDefault")&&(o.isDefault=e.isDefault),e.sectionHeader!=null&&e.hasOwnProperty("sectionHeader")&&(o.sectionHeader=e.sectionHeader),e.urlPathname!=null&&e.hasOwnProperty("urlPathname")&&(o.urlPathname=e.urlPathname),o},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+"/AppPage"},n})();const Arrow$2=$root.Arrow=(()=>{function n(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=$util.newBuffer([]),n.prototype.styler=null,n.prototype.width=0,n.prototype.height=0,n.prototype.useContainerWidth=!1,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.borderMode=0,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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).bytes(t.data),t.styler!=null&&Object.hasOwnProperty.call(t,"styler")&&$root.Styler.encode(t.styler,o.uint32(18).fork()).ldelim(),t.width!=null&&Object.hasOwnProperty.call(t,"width")&&o.uint32(24).uint32(t.width),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(32).uint32(t.height),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(40).bool(t.useContainerWidth),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(50).string(t.id),t.columns!=null&&Object.hasOwnProperty.call(t,"columns")&&o.uint32(58).string(t.columns),t.editingMode!=null&&Object.hasOwnProperty.call(t,"editingMode")&&o.uint32(64).int32(t.editingMode),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(82).string(t.formId),t.columnOrder!=null&&t.columnOrder.length)for(let d=0;d<t.columnOrder.length;++d)o.uint32(90).string(t.columnOrder[d]);if(t.selectionMode!=null&&t.selectionMode.length){o.uint32(98).fork();for(let d=0;d<t.selectionMode.length;++d)o.int32(t.selectionMode[d]);o.ldelim()}return t.rowHeight!=null&&Object.hasOwnProperty.call(t,"rowHeight")&&o.uint32(104).uint32(t.rowHeight),t.borderMode!=null&&Object.hasOwnProperty.call(t,"borderMode")&&o.uint32(112).int32(t.borderMode),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(122).string(t.placeholder),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Arrow;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.bytes();break}case 2:{h.styler=$root.Styler.decode(t,t.uint32());break}case 3:{h.width=t.uint32();break}case 4:{h.height=t.uint32();break}case 5:{h.useContainerWidth=t.bool();break}case 6:{h.id=t.string();break}case 7:{h.columns=t.string();break}case 8:{h.editingMode=t.int32();break}case 9:{h.disabled=t.bool();break}case 10:{h.formId=t.string();break}case 11:{h.columnOrder&&h.columnOrder.length||(h.columnOrder=[]),h.columnOrder.push(t.string());break}case 12:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.selectionMode.push(t.int32())}else h.selectionMode.push(t.int32());break}case 13:{h.rowHeight=t.uint32();break}case 14:{h.borderMode=t.int32();break}case 15:{h.placeholder=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Arrow)return t;let o=new $root.Arrow;
18if(t.data!=null&&(typeof t.data=="string"?$util.base64.decode(t.data,o.data=$util.newBuffer($util.base64.length(t.data)),0):t.data.length>=0&&(o.data=t.data)),t.styler!=null){if(typeof t.styler!="object")throw TypeError(".Arrow.styler: object expected");o.styler=$root.Styler.fromObject(t.styler)}switch(t.width!=null&&(o.width=t.width>>>0),t.height!=null&&(o.height=t.height>>>0),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.id!=null&&(o.id=String(t.id)),t.columns!=null&&(o.columns=String(t.columns)),t.editingMode){default:if(typeof t.editingMode=="number"){o.editingMode=t.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(t.disabled!=null&&(o.disabled=!!t.disabled),t.formId!=null&&(o.formId=String(t.formId)),t.columnOrder){if(!Array.isArray(t.columnOrder))throw TypeError(".Arrow.columnOrder: array expected");o.columnOrder=[];for(let d=0;d<t.columnOrder.length;++d)o.columnOrder[d]=String(t.columnOrder[d])}if(t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".Arrow.selectionMode: array expected");o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)switch(t.selectionMode[d]){default:if(typeof t.selectionMode[d]=="number"){o.selectionMode[d]=t.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}}switch(t.rowHeight!=null&&(o.rowHeight=t.rowHeight>>>0),t.borderMode){default:if(typeof t.borderMode=="number"){o.borderMode=t.borderMode;break}break;case"ALL":case 0:o.borderMode=0;break;case"NONE":case 1:o.borderMode=1;break;case"HORIZONTAL":case 2:o.borderMode=2;break}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.columnOrder=[],d.selectionMode=[]),o.defaults&&(o.bytes===String?d.data="":(d.data=[],o.bytes!==Array&&(d.data=$util.newBuffer(d.data))),d.styler=null,d.width=0,d.height=0,d.useContainerWidth=!1,d.id="",d.columns="",d.editingMode=o.enums===String?"READ_ONLY":0,d.disabled=!1,d.formId="",d.borderMode=o.enums===String?"ALL":0),t.data!=null&&t.hasOwnProperty("data")&&(d.data=o.bytes===String?$util.base64.encode(t.data,0,t.data.length):o.bytes===Array?Array.prototype.slice.call(t.data):t.data),t.styler!=null&&t.hasOwnProperty("styler")&&(d.styler=$root.Styler.toObject(t.styler,o)),t.width!=null&&t.hasOwnProperty("width")&&(d.width=t.width),t.height!=null&&t.hasOwnProperty("height")&&(d.height=t.height),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.columns!=null&&t.hasOwnProperty("columns")&&(d.columns=t.columns),t.editingMode!=null&&t.hasOwnProperty("editingMode")&&(d.editingMode=o.enums===String?$root.Arrow.EditingMode[t.editingMode]===void 0?t.editingMode:$root.Arrow.EditingMode[t.editingMode]:t.editingMode),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.columnOrder&&t.columnOrder.length){d.columnOrder=[];for(let p=0;p<t.columnOrder.length;++p)d.columnOrder[p]=t.columnOrder[p]}if(t.selectionMode&&t.selectionMode.length){d.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)d.selectionMode[p]=o.enums===String?$root.Arrow.SelectionMode[t.selectionMode[p]]===void 0?t.selectionMode[p]:$root.Arrow.SelectionMode[t.selectionMode[p]]:t.selectionMode[p]}return t.rowHeight!=null&&t.hasOwnProperty("rowHeight")&&(d.rowHeight=t.rowHeight,o.oneofs&&(d._rowHeight="rowHeight")),t.borderMode!=null&&t.hasOwnProperty("borderMode")&&(d.borderMode=o.enums===String?$root.Arrow.BorderMode[t.borderMode]===void 0?t.borderMode:$root.Arrow.BorderMode[t.borderMode]:t.borderMode),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder,o.oneofs&&(d._placeholder="placeholder")),d},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+"/Arrow"},n.EditingMode=(function(){const e={},t=Object.create(e);return t[e[0]="READ_ONLY"]=0,t[e[1]="FIXED"]=1,t[e[2]="DYNAMIC"]=2,t[e[3]="ADD_ONLY"]=3,t[e[4]="DELETE_ONLY"]=4,t})(),n.SelectionMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_ROW"]=0,t[e[1]="MULTI_ROW"]=1,t[e[2]="SINGLE_COLUMN"]=2,t[e[3]="MULTI_COLUMN"]=3,t[e[4]="SINGLE_CELL"]=4,t[e[5]="MULTI_CELL"]=5,t})(),n.BorderMode=(function(){const e={},t=Object.create(e);return t[e[0]="ALL"]=0,t[e[1]="NONE"]=1,t[e[2]="HORIZONTAL"]=2,t})(),n})();$root.Styler=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Styler;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=e.string();break}case 2:{p.caption=e.string();break}case 3:{p.styles=e.string();break}case 4:{p.displayValues=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Styler)return e;let t=new $root.Styler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.uuid="",o.caption="",o.styles="",t.bytes===String?o.displayValues="":(o.displayValues=[],t.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(o.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(o.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(o.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),o},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+"/Styler"},n})();$root.ArrowData=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowData;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowData)return e;let t=new $root.ArrowData;
18return e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data)))),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),o},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+"/ArrowData"},n})();$root.ArrowNamedDataSet=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowNamedDataSet;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 3:{p.hasName=e.bool();break}case 2:{p.data=$root.Arrow.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowNamedDataSet)return e;let t=new $root.ArrowNamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=$root.Arrow.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.name="",o.data=null,o.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Arrow.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(o.hasName=e.hasName),o},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+"/ArrowNamedDataSet"},n})();$root.ArrowVegaLiteChart=(()=>{function n(i){if(this.datasets=[],this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let o=0;o<e.datasets.length;++o)$root.ArrowNamedDataSet.encode(e.datasets[o],t.uint32(34).fork()).ldelim();if(e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let o=0;o<e.selectionMode.length;++o)t.uint32(66).string(e.selectionMode[o]);return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowVegaLiteChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 2:{p.data=$root.Arrow.decode(e,e.uint32());break}case 4:{p.datasets&&p.datasets.length||(p.datasets=[]),p.datasets.push($root.ArrowNamedDataSet.decode(e,e.uint32()));break}case 5:{p.useContainerWidth=e.bool();break}case 6:{p.theme=e.string();break}case 7:{p.id=e.string();break}case 8:{p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),p.selectionMode.push(e.string());break}case 9:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowVegaLiteChart)return e;let t=new $root.ArrowVegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=$root.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let o=0;o<e.datasets.length;++o){if(typeof e.datasets[o]!="object")throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[o]=$root.ArrowNamedDataSet.fromObject(e.datasets[o])}}if(e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".ArrowVegaLiteChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)t.selectionMode[o]=String(e.selectionMode[o])}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.datasets=[],o.selectionMode=[]),t.defaults&&(o.spec="",o.data=null,o.useContainerWidth=!1,o.theme="",o.id="",o.formId=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){o.datasets=[];for(let d=0;d<e.datasets.length;++d)o.datasets[d]=$root.ArrowNamedDataSet.toObject(e.datasets[d],t)}if(e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.theme!=null&&e.hasOwnProperty("theme")&&(o.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},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+"/ArrowVegaLiteChart"},n})();$root.Audio=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(48).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(56).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"auto
18play")&&o.uint32(64).bool(t.autoplay),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(74).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(82).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Audio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 6:{h.endTime=t.int32();break}case 7:{h.loop=t.bool();break}case 8:{h.autoplay=t.bool();break}case 9:{h.id=t.string();break}case 10:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Audio)return t;let o=new $root.Audio;if(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Audio.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.startTime=0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},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+"/Audio"},n})();$root.AudioInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(26).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(34).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(40).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(50).fork()).ldelim(),t.sampleRate!=null&&Object.hasOwnProperty.call(t,"sampleRate")&&o.uint32(56).int32(t.sampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.AudioInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.help=t.string();break}case 4:{h.formId=t.string();break}case 5:{h.disabled=t.bool();break}case 6:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 7:{h.sampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.AudioInput)return t;let o=new $root.AudioInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.sampleRate!=null&&(o.sampleRate=t.sampleRate|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(
18d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.sampleRate!=null&&t.hasOwnProperty("sampleRate")&&(d.sampleRate=t.sampleRate,o.oneofs&&(d._sampleRate="sampleRate")),d},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+"/AudioInput"},n})();const LabelVisibilityMessage=$root.LabelVisibilityMessage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LabelVisibilityMessage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LabelVisibilityMessage)return e;let t=new $root.LabelVisibilityMessage;switch(e.value){default:if(typeof e.value=="number"){t.value=e.value;break}break;case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=t.enums===String?"VISIBLE":0),e.value!=null&&e.hasOwnProperty("value")&&(o.value=t.enums===String?$root.LabelVisibilityMessage.LabelVisibilityOptions[e.value]===void 0?e.value:$root.LabelVisibilityMessage.LabelVisibilityOptions[e.value]:e.value),o},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+"/LabelVisibilityMessage"},n.LabelVisibilityOptions=(function(){const i={},e=Object.create(i);return e[i[0]="VISIBLE"]=0,e[i[1]="HIDDEN"]=1,e[i[2]="COLLAPSED"]=2,e})(),n})();$root.AuthRedirect=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AuthRedirect;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AuthRedirect)return e;let t=new $root.AuthRedirect;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},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+"/AuthRedirect"},n})();$root.AutoRerun=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.interval=0,n.prototype.fragmentId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.interval!=null&&Object.hasOwnProperty.call(e,"interval")&&t.uint32(13).float(e.interval),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(18).string(e.fragmentId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AutoRerun;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.interval=e.float();break}case 2:{p.fragmentId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AutoRerun)return e;let t=new $root.AutoRerun;return e.interval!=null&&(t.interval=Number(e.interval)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.interval=0,o.fragmentId=""),e.interval!=null&&e.hasOwnProperty("interval")&&(o.interval=t.json&&!isFinite(e.interval)?String(e.interval):e.interval),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),o},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+"/AutoRerun"},n})();const BackMsg=$root.BackMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.clearCache!=null&&Object.hasOwnProperty.call(t,"clearCache")&&o.uint32(40).bool(t.clearCache),t.setRunOnSave!=null&&Object.hasOwnProperty.call(t,"setRunOnSave")&&o.uint32(48).bool(t.setRunOnSave),t.stopScript!=null&&Object.hasOwnProperty.call(t,"stopScript")&&o.uint32(56).bool(t.stopScript),t.rerunScript!=null&&Object.hasOwnProperty.call(t,"rerunScript")&&$root.ClientState.encode(t.rerunScript,o.uint32(90).fork()).ldelim(),t.loadGitInfo!=null&&Object.hasOwnProperty.call(t,"loadGitInfo")&&o.uint32(96).bool(t.loadGitInfo),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugL
18astBackmsgId")&&o.uint32(106).string(t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(t,"debugDisconnectWebsocket")&&o.uint32(112).bool(t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(t,"debugShutdownRuntime")&&o.uint32(120).bool(t.debugShutdownRuntime),t.fileUrlsRequest!=null&&Object.hasOwnProperty.call(t,"fileUrlsRequest")&&$root.FileURLsRequest.encode(t.fileUrlsRequest,o.uint32(130).fork()).ldelim(),t.appHeartbeat!=null&&Object.hasOwnProperty.call(t,"appHeartbeat")&&o.uint32(136).bool(t.appHeartbeat),t.deferredFileRequest!=null&&Object.hasOwnProperty.call(t,"deferredFileRequest")&&$root.DeferredFileRequest.encode(t.deferredFileRequest,o.uint32(146).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BackMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.clearCache=t.bool();break}case 6:{h.setRunOnSave=t.bool();break}case 7:{h.stopScript=t.bool();break}case 11:{h.rerunScript=$root.ClientState.decode(t,t.uint32());break}case 12:{h.loadGitInfo=t.bool();break}case 14:{h.debugDisconnectWebsocket=t.bool();break}case 15:{h.debugShutdownRuntime=t.bool();break}case 16:{h.fileUrlsRequest=$root.FileURLsRequest.decode(t,t.uint32());break}case 17:{h.appHeartbeat=t.bool();break}case 18:{h.deferredFileRequest=$root.DeferredFileRequest.decode(t,t.uint32());break}case 13:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BackMsg)return t;let o=new $root.BackMsg;if(t.clearCache!=null&&(o.clearCache=!!t.clearCache),t.setRunOnSave!=null&&(o.setRunOnSave=!!t.setRunOnSave),t.stopScript!=null&&(o.stopScript=!!t.stopScript),t.rerunScript!=null){if(typeof t.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");o.rerunScript=$root.ClientState.fromObject(t.rerunScript)}if(t.loadGitInfo!=null&&(o.loadGitInfo=!!t.loadGitInfo),t.debugDisconnectWebsocket!=null&&(o.debugDisconnectWebsocket=!!t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&(o.debugShutdownRuntime=!!t.debugShutdownRuntime),t.fileUrlsRequest!=null){if(typeof t.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");o.fileUrlsRequest=$root.FileURLsRequest.fromObject(t.fileUrlsRequest)}if(t.appHeartbeat!=null&&(o.appHeartbeat=!!t.appHeartbeat),t.deferredFileRequest!=null){if(typeof t.deferredFileRequest!="object")throw TypeError(".BackMsg.deferredFileRequest: object expected");o.deferredFileRequest=$root.DeferredFileRequest.fromObject(t.deferredFileRequest)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugLastBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.debugLastBackmsgId=""),t.clearCache!=null&&t.hasOwnProperty("clearCache")&&(d.clearCache=t.clearCache,o.oneofs&&(d.type="clearCache")),t.setRunOnSave!=null&&t.hasOwnProperty("setRunOnSave")&&(d.setRunOnSave=t.setRunOnSave,o.oneofs&&(d.type="setRunOnSave")),t.stopScript!=null&&t.hasOwnProperty("stopScript")&&(d.stopScript=t.stopScript,o.oneofs&&(d.type="stopScript")),t.rerunScript!=null&&t.hasOwnProperty("rerunScript")&&(d.rerunScript=$root.ClientState.toObject(t.rerunScript,o),o.oneofs&&(d.type="rerunScript")),t.loadGitInfo!=null&&t.hasOwnProperty("loadGitInfo")&&(d.loadGitInfo=t.loadGitInfo,o.oneofs&&(d.type="loadGitInfo")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&t.hasOwnProperty("debugDisconnectWebsocket")&&(d.debugDisconnectWebsocket=t.debugDisconnectWebsocket,o.oneofs&&(d.type="debugDisconnectWebsocket")),t.debugShutdownRuntime!=null&&t.hasOwnProperty("debugShutdownRuntime")&&(d.debugShutdownRuntime=t.debugShutdownRuntime,o.oneofs&&(d.type="debugShutdownRuntime")),t.fileUrlsRequest!=null&&t.hasOwnProperty("fileUrlsRequest")&&(d.fileUrlsRequest=$root.FileURLsRequest.toObject(t.fileUrlsRequest,o),o.oneofs&&(d.type="fileUrlsRequest")),t.appHeartbeat!=null&&t.hasOwnProperty("appHeartbeat")&&(d.appHeartbeat=t.appHeartbeat,o.oneofs&&(d.type="appHeartbeat")),t.deferredFileRequest!=null&&t.hasOwnProperty("deferredFileRequest")&&(d.deferredFileRequest=$root.DeferredFileRequest.toObject(t.deferredFileRequest,o),o.oneofs&&(d.type="deferredFileRequest")),d},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+"/BackMsg"},n})();$root.DeferredFileRequest=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(18).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileRequest)return e;let t=new $root.DeferredFileRequest;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.sessionId=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},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+"/DeferredFileRequest"},n})();$root.ContextInfo=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&o.uint32(10).string(t.timezone),t.timezoneOffset!=null&&Object.hasOwnProperty.call(t,"timezoneOffset")&&o.uint32(16).int32(t.timezoneOffset),t.locale!=null&&Object.hasOwnProperty.call(t,"locale")&&o.uint32(26).string(t.locale),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(34).string(t.url),t.isEmbedded!=null&&Object.hasOwnProperty.call(t,"isEmbedded")&&o.uint32(40).bool(t.isEmbedded),t.colorScheme!=null&&Object.hasOwnProperty.call(t,"colorScheme")&&o.uint32(50).string(t.colorScheme),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ContextInfo;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.timezone=t.string();break}case 2:{h.timezoneOffset=t.int32();break}case 3:{h.locale=t.string();break}case 4:{h.url=t.string();break}case 5:{h.isEmbedded=t.bool();break}case 6:{h.colorScheme=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ContextInfo)return t;let o=new $root.ContextInfo;return t.timezone!=null&&(o.timezone=String(t.timezone)),t.timezoneOffset!=null&&(o.timezoneOffset=t.timezoneOffset|0),t.locale!=null&&(o.locale=String(t.locale)),t.url!=null&&(o.url=String(t.url)),t.isEmbedded!=null&&(o.isEmbedded=!!t.isEmbedded),t.colorScheme!=null&&(o.colorScheme=String(t.colorScheme)),o},n.toObject=function(t,o){o||(o={});let d={};return t.timezone!=null&&t.hasOwnProperty("timezone")&&(d.timezone=t.timezone,o.oneofs&&(d._timezone="timezone")),t.timezoneOffset!=null&&t.hasOwnProperty("timezoneOffset")&&(d.timezoneOffset=t.timezoneOffset,o.oneofs&&(d._timezoneOffset="timezoneOffset")),t.locale!=null&&t.hasOwnProperty("locale")&&(d.locale=t.locale,o.oneofs&&(d._locale="locale")),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url,o.oneofs&&(d._url="url")),t.isEmbedded!=null&&t.hasOwnProperty("isEmbedded")&&(
18d.isEmbedded=t.isEmbedded,o.oneofs&&(d._isEmbedded="isEmbedded")),t.colorScheme!=null&&t.hasOwnProperty("colorScheme")&&(d.colorScheme=t.colorScheme,o.oneofs&&(d._colorScheme="colorScheme")),d},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+"/ContextInfo"},n})();$root.ClientState=(()=>{function n(i){if(this.cachedMessageHashes=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&Object.hasOwnProperty.call(e,"widgetStates")&&$root.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&Object.hasOwnProperty.call(e,"isAutoRerun")&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let o=0;o<e.cachedMessageHashes.length;++o)t.uint32(58).string(e.cachedMessageHashes[o]);return e.contextInfo!=null&&Object.hasOwnProperty.call(e,"contextInfo")&&$root.ContextInfo.encode(e.contextInfo,t.uint32(66).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ClientState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}case 2:{p.widgetStates=$root.WidgetStates.decode(e,e.uint32());break}case 3:{p.pageScriptHash=e.string();break}case 4:{p.pageName=e.string();break}case 5:{p.fragmentId=e.string();break}case 6:{p.isAutoRerun=e.bool();break}case 7:{p.cachedMessageHashes&&p.cachedMessageHashes.length||(p.cachedMessageHashes=[]),p.cachedMessageHashes.push(e.string());break}case 8:{p.contextInfo=$root.ContextInfo.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ClientState)return e;let t=new $root.ClientState;if(e.queryString!=null&&(t.queryString=String(e.queryString)),e.widgetStates!=null){if(typeof e.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=$root.WidgetStates.fromObject(e.widgetStates)}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),e.isAutoRerun!=null&&(t.isAutoRerun=!!e.isAutoRerun),e.cachedMessageHashes){if(!Array.isArray(e.cachedMessageHashes))throw TypeError(".ClientState.cachedMessageHashes: array expected");t.cachedMessageHashes=[];for(let o=0;o<e.cachedMessageHashes.length;++o)t.cachedMessageHashes[o]=String(e.cachedMessageHashes[o])}if(e.contextInfo!=null){if(typeof e.contextInfo!="object")throw TypeError(".ClientState.contextInfo: object expected");t.contextInfo=$root.ContextInfo.fromObject(e.contextInfo)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.cachedMessageHashes=[]),t.defaults&&(o.queryString="",o.widgetStates=null,o.pageScriptHash="",o.pageName="",o.fragmentId="",o.isAutoRerun=!1,o.contextInfo=null),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),e.widgetStates!=null&&e.hasOwnProperty("widgetStates")&&(o.widgetStates=$root.WidgetStates.toObject(e.widgetStates,t)),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),e.isAutoRerun!=null&&e.hasOwnProperty("isAutoRerun")&&(o.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){o.cachedMessageHashes=[];for(let d=0;d<e.cachedMessageHashes.length;++d)o.cachedMessageHashes[d]=e.cachedMessageHashes[d]}return e.contextInfo!=null&&e.hasOwnProperty("contextInfo")&&(o.contextInfo=$root.ContextInfo.toObject(e.contextInfo,t)),o},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+"/ClientState"},n})();const WidgetStates=$root.WidgetStates=(()=>{function n(i){if(this.widgets=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.widgets=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.widgets!=null&&e.widgets.length)for(let o=0;o<e.widgets.length;++o)$root.WidgetState.encode(e.widgets[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.WidgetStates;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.widgets&&p.widgets.length||(p.widgets=[]),p.widgets.push($root.WidgetState.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.WidgetStates)return e;let t=new $root.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let o=0;o<e.widgets.length;++o){if(typeof e.widgets[o]!="object")throw TypeError(".WidgetStates.widgets: object expected");t.widgets[o]=$root.WidgetState.fromObject(e.widgets[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.widgets=[]),e.widgets&&e.widgets.length){o.widgets=[];for(let d=0;d<e.widgets.length;++d)o.widgets[d]=$root.WidgetState.toObject(e.widgets[d],t)}return o},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+"/WidgetStates"},n})(),WidgetState=$root.WidgetState=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.triggerValue!=null&&Object.hasOwnProperty.call(t,"triggerValue")&&o.uint32(16).bool(t.triggerValue),t.boolValue!=null&&Object.hasOwnProperty.call(t,"boolValue")&&o.uint32(24).bool(t.boolValue),t.doubleValue!=null&&Object.hasOwnProperty.call(t,"doubleValue")&&o.uint32(33).double(t.doubleValue),t.intValue!=null&&Object.hasOwnProperty.call(t,"intValue")&&o.uint32(40).sint64(t.intValue),t.stringValue!=null&&Object.hasOwnProperty.call(t,"stringValue")&&o.uint32(50).string(t.stringValue),t.doubleArrayValue!=null&&Object.hasOwnProperty.call(t,"doubleArrayValue")&&$root.DoubleArray.encode(t.doubleArrayValue,o.uint32(58).fork()).ldelim(),t.intArrayValue!=null&&Object.hasOwnProperty.call(t,"intArrayValue")&&$root.SInt64Array.encode(t.intArrayValue,o.uint32(66).fork()).ldelim(),t.stringArrayValue!=null&&Object.hasOwnProperty.call(t,"stringArrayValue")&&$root.StringArray.encode(t.stringArrayValue,o.uint32(74).fork()).ldelim(),t.jsonValue!=null&&Object.hasOwnProperty.call(t,"jsonValue")&&o.uint32(82).string(t.jsonValue),t.arrowValue!=null&&Object.hasOwnProperty.call(t,"arrowValue")&&$root.ArrowTable.encode(t.arrowValue,o.uint32(90).fork()).ldelim(),t.bytesValue!=null&&Object.hasOwnProperty.call(t,"bytesValue")&&o.uint32(98).bytes(t.bytesValue),t.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(t,"fileUploaderStateValue")&&$root.FileUploaderState.encode(t.fileUploaderStateValue,o.uint32(106).fork()).ldelim(),t.stringTriggerValue!=null&&Object.hasOwnProperty.call(t,"stringTriggerValue")&&$root.StringTriggerValue.encode(t.stringTriggerValue,o.uint32(114).fork()).ldelim(),t.chatInputValue!=null&&Object.hasOwnProperty.call(t,"chatInputValue")&&$root.ChatInputValue.encode(t.chatInputValue,o.uint32(122).fork()).ldelim(),t.jsonTriggerValue!=null&&Object.hasOwnProperty.call(t,"jsonTriggerValue")&&o.uint32(130).string(t.jsonTriggerValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.WidgetState;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.triggerValue=t.bool();break}case 3:{h.boolValue=t.bool();break}case 4:{h.doubleValue=t.double();break}case 5:{h.intValue=t.sint64();break}case 6:{h.stringValue=t.string();break}case 7:{h.doubleArrayValue=$root.DoubleArray.decode(t,t.uint32());break}case 8:{h.intArrayValue=$root.SInt64Array.decode(t,t.uint32());break}case 9:{h.stringArrayValue=$root.StringArray.decode(t,t.uint32());break}case 10:{h.jsonValue=t.string();break}case 11:{h.arrowValue=$root.ArrowTable.decode(t,t.uint32());break}case 12:{h.bytesValue=t.bytes();break}case 13:{h.fileUploaderStateValue=$root.FileUploaderState.decode(t,t.uint32());break}case 14:{h.stringTriggerValue=$root.StringTriggerValue.decode(t,t.uint32());break}case 15:{h.chatInputValue=$root.ChatInputValue.decode(t,t.uint32());break}case 16:{h.jsonTriggerValue=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.WidgetState)return t;let o=new $root.WidgetState;if(t.id!=null&&(o.id=String(t.id)),t.triggerValue!=null&&(o.triggerValue=!!t.triggerValue),t.boolValue!=null&&(o.boolValue=!!t.boolValue),t.doubleValue!=null&&(o.doubleValue=Number(t.doubleValue)),t.intValue!=null&&($util.Long?(o.intValue=$util.Long.fromValue(t.intValue)).unsigned=!1:typeof t.intValue=="string"?o.intValue=parseInt(t.intValue,10):typeof t.intValue=="number"?o.intValue=t.intValue:typeof t.intValue=="object"&&(o.intValue=new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>
180).toNumber())),t.stringValue!=null&&(o.stringValue=String(t.stringValue)),t.doubleArrayValue!=null){if(typeof t.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");o.doubleArrayValue=$root.DoubleArray.fromObject(t.doubleArrayValue)}if(t.intArrayValue!=null){if(typeof t.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");o.intArrayValue=$root.SInt64Array.fromObject(t.intArrayValue)}if(t.stringArrayValue!=null){if(typeof t.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");o.stringArrayValue=$root.StringArray.fromObject(t.stringArrayValue)}if(t.jsonValue!=null&&(o.jsonValue=String(t.jsonValue)),t.arrowValue!=null){if(typeof t.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");o.arrowValue=$root.ArrowTable.fromObject(t.arrowValue)}if(t.bytesValue!=null&&(typeof t.bytesValue=="string"?$util.base64.decode(t.bytesValue,o.bytesValue=$util.newBuffer($util.base64.length(t.bytesValue)),0):t.bytesValue.length>=0&&(o.bytesValue=t.bytesValue)),t.fileUploaderStateValue!=null){if(typeof t.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");o.fileUploaderStateValue=$root.FileUploaderState.fromObject(t.fileUploaderStateValue)}if(t.stringTriggerValue!=null){if(typeof t.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");o.stringTriggerValue=$root.StringTriggerValue.fromObject(t.stringTriggerValue)}if(t.chatInputValue!=null){if(typeof t.chatInputValue!="object")throw TypeError(".WidgetState.chatInputValue: object expected");o.chatInputValue=$root.ChatInputValue.fromObject(t.chatInputValue)}return t.jsonTriggerValue!=null&&(o.jsonTriggerValue=String(t.jsonTriggerValue)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.triggerValue!=null&&t.hasOwnProperty("triggerValue")&&(d.triggerValue=t.triggerValue,o.oneofs&&(d.value="triggerValue")),t.boolValue!=null&&t.hasOwnProperty("boolValue")&&(d.boolValue=t.boolValue,o.oneofs&&(d.value="boolValue")),t.doubleValue!=null&&t.hasOwnProperty("doubleValue")&&(d.doubleValue=o.json&&!isFinite(t.doubleValue)?String(t.doubleValue):t.doubleValue,o.oneofs&&(d.value="doubleValue")),t.intValue!=null&&t.hasOwnProperty("intValue")&&(typeof t.intValue=="number"?d.intValue=o.longs===String?String(t.intValue):t.intValue:d.intValue=o.longs===String?$util.Long.prototype.toString.call(t.intValue):o.longs===Number?new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber():t.intValue,o.oneofs&&(d.value="intValue")),t.stringValue!=null&&t.hasOwnProperty("stringValue")&&(d.stringValue=t.stringValue,o.oneofs&&(d.value="stringValue")),t.doubleArrayValue!=null&&t.hasOwnProperty("doubleArrayValue")&&(d.doubleArrayValue=$root.DoubleArray.toObject(t.doubleArrayValue,o),o.oneofs&&(d.value="doubleArrayValue")),t.intArrayValue!=null&&t.hasOwnProperty("intArrayValue")&&(d.intArrayValue=$root.SInt64Array.toObject(t.intArrayValue,o),o.oneofs&&(d.value="intArrayValue")),t.stringArrayValue!=null&&t.hasOwnProperty("stringArrayValue")&&(d.stringArrayValue=$root.StringArray.toObject(t.stringArrayValue,o),o.oneofs&&(d.value="stringArrayValue")),t.jsonValue!=null&&t.hasOwnProperty("jsonValue")&&(d.jsonValue=t.jsonValue,o.oneofs&&(d.value="jsonValue")),t.arrowValue!=null&&t.hasOwnProperty("arrowValue")&&(d.arrowValue=$root.ArrowTable.toObject(t.arrowValue,o),o.oneofs&&(d.value="arrowValue")),t.bytesValue!=null&&t.hasOwnProperty("bytesValue")&&(d.bytesValue=o.bytes===String?$util.base64.encode(t.bytesValue,0,t.bytesValue.length):o.bytes===Array?Array.prototype.slice.call(t.bytesValue):t.bytesValue,o.oneofs&&(d.value="bytesValue")),t.fileUploaderStateValue!=null&&t.hasOwnProperty("fileUploaderStateValue")&&(d.fileUploaderStateValue=$root.FileUploaderState.toObject(t.fileUploaderStateValue,o),o.oneofs&&(d.value="fileUploaderStateValue")),t.stringTriggerValue!=null&&t.hasOwnProperty("stringTriggerValue")&&(d.stringTriggerValue=$root.StringTriggerValue.toObject(t.stringTriggerValue,o),o.oneofs&&(d.value="stringTriggerValue")),t.chatInputValue!=null&&t.hasOwnProperty("chatInputValue")&&(d.chatInputValue=$root.ChatInputValue.toObject(t.chatInputValue,o),o.oneofs&&(d.value="chatInputValue")),t.jsonTriggerValue!=null&&t.hasOwnProperty("jsonTriggerValue")&&(d.jsonTriggerValue=t.jsonTriggerValue,o.oneofs&&(d.value="jsonTriggerValue")),d},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+"/WidgetState"},n})(),StringArray=$root.StringArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length)for(let o=0;o<e.data.length;++o)t.uint32(10).string(e.data[o]);return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.StringArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data&&p.data.length||(p.data=[]),p.data.push(e.string());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.StringArray)return e;let t=new $root.StringArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=String(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},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+"/StringArray"},n})(),DoubleArray=$root.DoubleArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.double(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DoubleArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.double())}else p.data.push(e.double());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DoubleArray)return e;let t=new $root.DoubleArray;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=Number(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=t.json&&!isFinite(e.data[d])?String(e.data[d]):e.data[d]}return o},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+"/DoubleArray"},n})();$root.Int32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int32())}else p.data.push(e.int32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int32Array)return e;let t=new $root.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]|0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},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+"/Int32Array"},n})();$root.Int64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int64())}else p.data.push(e.int64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int64Array)return e;let t=new $root.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},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+"/Int64Array"},n})();const SInt64Array=$root.SInt64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.sint64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SInt64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.sint64())}else p.data.push(e.sint64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SInt64Array)return e;let t=new $root.SInt64Array;
18if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},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+"/SInt64Array"},n})();$root.UInt32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.uint32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UInt32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.uint32())}else p.data.push(e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UInt32Array)return e;let t=new $root.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]>>>0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},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+"/UInt32Array"},n})();$root.StringTriggerValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.StringTriggerValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.StringTriggerValue)return t;let o=new $root.StringTriggerValue;return t.data!=null&&(o.data=String(t.data)),o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),d},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+"/StringTriggerValue"},n})();$root.FileURLsRequest=(()=>{function n(i){if(this.fileNames=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.requestId="",n.prototype.fileNames=$util.emptyArray,n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.requestId!=null&&Object.hasOwnProperty.call(e,"requestId")&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let o=0;o<e.fileNames.length;++o)t.uint32(18).string(e.fileNames[o]);return e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(26).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.requestId=e.string();break}case 2:{p.fileNames&&p.fileNames.length||(p.fileNames=[]),p.fileNames.push(e.string());break}case 3:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsRequest)return e;let t=new $root.FileURLsRequest;if(e.requestId!=null&&(t.requestId=String(e.requestId)),e.fileNames){if
18(!Array.isArray(e.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");t.fileNames=[];for(let o=0;o<e.fileNames.length;++o)t.fileNames[o]=String(e.fileNames[o])}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileNames=[]),t.defaults&&(o.requestId="",o.sessionId=""),e.requestId!=null&&e.hasOwnProperty("requestId")&&(o.requestId=e.requestId),e.fileNames&&e.fileNames.length){o.fileNames=[];for(let d=0;d<e.fileNames.length;++d)o.fileNames[d]=e.fileNames[d]}return e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},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+"/FileURLsRequest"},n})();$root.FileURLs=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.uploadUrl="",n.prototype.deleteUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&Object.hasOwnProperty.call(e,"uploadUrl")&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&Object.hasOwnProperty.call(e,"deleteUrl")&&t.uint32(26).string(e.deleteUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLs;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.uploadUrl=e.string();break}case 3:{p.deleteUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLs)return e;let t=new $root.FileURLs;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.uploadUrl!=null&&(t.uploadUrl=String(e.uploadUrl)),e.deleteUrl!=null&&(t.deleteUrl=String(e.deleteUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.uploadUrl="",o.deleteUrl=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.uploadUrl!=null&&e.hasOwnProperty("uploadUrl")&&(o.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&e.hasOwnProperty("deleteUrl")&&(o.deleteUrl=e.deleteUrl),o},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+"/FileURLs"},n})();$root.FileURLsResponse=(()=>{function n(i){if(this.fileUrls=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.responseId="",n.prototype.fileUrls=$util.emptyArray,n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.responseId!=null&&Object.hasOwnProperty.call(e,"responseId")&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let o=0;o<e.fileUrls.length;++o)$root.FileURLs.encode(e.fileUrls[o],t.uint32(18).fork()).ldelim();return e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.responseId=e.string();break}case 2:{p.fileUrls&&p.fileUrls.length||(p.fileUrls=[]),p.fileUrls.push($root.FileURLs.decode(e,e.uint32()));break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsResponse)return e;let t=new $root.FileURLsResponse;if(e.responseId!=null&&(t.responseId=String(e.responseId)),e.fileUrls){if(!Array.isArray(e.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");t.fileUrls=[];for(let o=0;o<e.fileUrls.length;++o){if(typeof e.fileUrls[o]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");t.fileUrls[o]=$root.FileURLs.fromObject(e.fileUrls[o])}}return e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileUrls=[]),t.defaults&&(o.responseId="",o.errorMsg=""),e.responseId!=null&&e.hasOwnProperty("responseId")&&(o.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){o.fileUrls=[];for(let d=0;d<e.fileUrls.length;++d)o.fileUrls[d]=$root.FileURLs.toObject(e.fileUrls[d],t)}return e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o}
18,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+"/FileURLsResponse"},n})();const UploadedFileInfo=$root.UploadedFileInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id=$util.Long?$util.Long.fromBits(0,0,!1):0,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(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).sint64(e.id),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint64(e.size),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&Object.hasOwnProperty.call(e,"fileUrls")&&$root.FileURLs.encode(e.fileUrls,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UploadedFileInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.sint64();break}case 2:{p.name=e.string();break}case 3:{p.size=e.uint64();break}case 4:{p.fileId=e.string();break}case 5:{p.fileUrls=$root.FileURLs.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UploadedFileInfo)return e;let t=new $root.UploadedFileInfo;if(e.id!=null&&($util.Long?(t.id=$util.Long.fromValue(e.id)).unsigned=!1:typeof e.id=="string"?t.id=parseInt(e.id,10):typeof e.id=="number"?t.id=e.id:typeof e.id=="object"&&(t.id=new $util.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber())),e.name!=null&&(t.name=String(e.name)),e.size!=null&&($util.Long?(t.size=$util.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?t.size=parseInt(e.size,10):typeof e.size=="number"?t.size=e.size:typeof e.size=="object"&&(t.size=new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(t.fileId=String(e.fileId)),e.fileUrls!=null){if(typeof e.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");t.fileUrls=$root.FileURLs.fromObject(e.fileUrls)}return t},n.toObject=function(e,t){t||(t={});let o={};if(t.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.id=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.id=t.longs===String?"0":0;if(o.name="",$util.Long){let d=new $util.Long(0,0,!0);o.size=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.size=t.longs===String?"0":0;o.fileId="",o.fileUrls=null}return e.id!=null&&e.hasOwnProperty("id")&&(typeof e.id=="number"?o.id=t.longs===String?String(e.id):e.id:o.id=t.longs===String?$util.Long.prototype.toString.call(e.id):t.longs===Number?new $util.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber():e.id),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.size!=null&&e.hasOwnProperty("size")&&(typeof e.size=="number"?o.size=t.longs===String?String(e.size):e.size:o.size=t.longs===String?$util.Long.prototype.toString.call(e.size):t.longs===Number?new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.fileUrls!=null&&e.hasOwnProperty("fileUrls")&&(o.fileUrls=$root.FileURLs.toObject(e.fileUrls,t)),o},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+"/UploadedFileInfo"},n})(),FileUploaderState=$root.FileUploaderState=(()=>{function n(i){if(this.uploadedFileInfo=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.maxFileId=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.uploadedFileInfo=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.maxFileId!=null&&Object.hasOwnProperty.call(e,"maxFileId")&&t.uint32(8).sint64(e.maxFileId),e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let o=0;o<e.uploadedFileInfo.length;++o)$root.UploadedFileInfo.encode(e.uploadedFileInfo[o],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploaderState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.maxFileId=e.sint64();break}case 2:{p.uploadedFileInfo&&p.uploadedFileInfo.length||(p.uploadedFileInfo=[]),p.uploadedFileInfo.push($root.UploadedFileInfo.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploaderState)return e;let t=new $root.FileUploaderState;if(e.maxFileId!=null&&($util.Long?(t.maxFileId=$util.Long.fromValue(e.maxFileId)).unsigned=!1:typeof e.maxFileId=="string"?t.maxFileId=parseInt(e.maxFileId,10):typeof e.maxFileId=="number"?t.maxFileId=e.maxFileId:typeof e.maxFileId=="object"&&(t.maxFileId=new $util.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber())),e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let o=0;o<e.uploadedFileInfo.length;++o){if(typeof e.uploadedFileInfo[o]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[o]=$root.UploadedFileInfo.fromObject(e.uploadedFileInfo[o]
vendor: 12,562 bytes, line 18
18)}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.uploadedFileInfo=[]),t.defaults)if($util.Long){let d=new $util.Long(0,0,!1);o.maxFileId=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.maxFileId=t.longs===String?"0":0;if(e.maxFileId!=null&&e.hasOwnProperty("maxFileId")&&(typeof e.maxFileId=="number"?o.maxFileId=t.longs===String?String(e.maxFileId):e.maxFileId:o.maxFileId=t.longs===String?$util.Long.prototype.toString.call(e.maxFileId):t.longs===Number?new $util.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){o.uploadedFileInfo=[];for(let d=0;d<e.uploadedFileInfo.length;++d)o.uploadedFileInfo[d]=$root.UploadedFileInfo.toObject(e.uploadedFileInfo[d],t)}return o},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+"/FileUploaderState"},n})(),ChatInputValue=$root.ChatInputValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),t.fileUploaderState!=null&&Object.hasOwnProperty.call(t,"fileUploaderState")&&$root.FileUploaderState.encode(t.fileUploaderState,o.uint32(18).fork()).ldelim(),t.audioFileInfo!=null&&Object.hasOwnProperty.call(t,"audioFileInfo")&&$root.UploadedFileInfo.encode(t.audioFileInfo,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInputValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}case 2:{h.fileUploaderState=$root.FileUploaderState.decode(t,t.uint32());break}case 3:{h.audioFileInfo=$root.UploadedFileInfo.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInputValue)return t;let o=new $root.ChatInputValue;if(t.data!=null&&(o.data=String(t.data)),t.fileUploaderState!=null){if(typeof t.fileUploaderState!="object")throw TypeError(".ChatInputValue.fileUploaderState: object expected");o.fileUploaderState=$root.FileUploaderState.fromObject(t.fileUploaderState)}if(t.audioFileInfo!=null){if(typeof t.audioFileInfo!="object")throw TypeError(".ChatInputValue.audioFileInfo: object expected");o.audioFileInfo=$root.UploadedFileInfo.fromObject(t.audioFileInfo)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),t.fileUploaderState!=null&&t.hasOwnProperty("fileUploaderState")&&(d.fileUploaderState=$root.FileUploaderState.toObject(t.fileUploaderState,o),o.oneofs&&(d._fileUploaderState="fileUploaderState")),t.audioFileInfo!=null&&t.hasOwnProperty("audioFileInfo")&&(d.audioFileInfo=$root.UploadedFileInfo.toObject(t.audioFileInfo,o),o.oneofs&&(d._audioFileInfo="audioFileInfo")),d},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+"/ChatInputValue"},n})();$root.ComponentInstance=(()=>{function n(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.jsonArgs!=null&&Object.hasOwnProperty.call(t,"jsonArgs")&&o.uint32(18).string(t.jsonArgs),t.specialArgs!=null&&t.specialArgs.length)for(let d=0;d<t.specialArgs.length;++d)$root.SpecialArg.encode(t.specialArgs[d],o.uint32(26).fork()).ldelim();return t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(34).string(t.componentName),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(56).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ComponentInstance;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.jsonArgs=t.string();break}case 3:{h.specialArgs&&h.specialArgs.length||(h.specialArgs=[]),h.specialArgs.push($root.SpecialArg.decode(t,t.uint32()));break}case 4:{h.componentName=t.string();break}case 5:{h.url=t.string();break}case 6:{h.formId=t.string();break}case 7:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ComponentInstance)return t;let o=new $root.ComponentInstance;if(t.id!=null&&(o.id=String(t.id)),t.jsonArgs!=null&&(o.jsonArgs=String(t.jsonArgs)),t.specialArgs){if(!Array.isArray(t.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");o.specialArgs=[];for(let d=0;d<t.specialArgs.length;++d){if(typeof t.specialArgs[d]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");o.specialArgs[d]=$root.SpecialArg.fromObject(t.specialArgs[d])}}return t.componentName!=null&&(o.componentName=String(t.componentName)),t.url!=null&&(o.url=String(t.url)),t.formId!=null&&(o.formId=String(t.formId)),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.specialArgs=[]),o.defaults&&(d.id="",d.jsonArgs="",d.componentName="",d.url="",d.formId=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.jsonArgs!=null&&t.hasOwnProperty("jsonArgs")&&(d.jsonArgs=t.jsonArgs),t.specialArgs&&t.specialArgs.length){d.specialArgs=[];for(let p=0;p<t.specialArgs.length;++p)d.specialArgs[p]=$root.SpecialArg.toObject(t.specialArgs[p],o)}return t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},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+"/ComponentInstance"},n})();$root.SpecialArg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&o.uint32(10).string(t.key),t.arrowDataframe!=null&&Object.hasOwnProperty.call(t,"arrowDataframe")&&$root.ArrowDataframe.encode(t.arrowDataframe,o.uint32(18).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(26).bytes(t.bytes),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SpecialArg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.key=t.string();break}case 2:{h.arrowDataframe=$root.ArrowDataframe.decode(t,t.uint32());break}case 3:{h.bytes=t.bytes();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SpecialArg)return t;let o=new $root.SpecialArg;if(t.key!=null&&(o.key=String(t.key)),t.arrowDataframe!=null){if(typeof t.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");o.arrowDataframe=$root.ArrowDataframe.fromObject(t.arrowDataframe)}return t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.key=""),t.key!=null&&t.hasOwnProperty("key")&&(d.key=t.key),t.arrowDataframe!=null&&t.hasOwnProperty("arrowDataframe")&&(d.arrowDataframe=$root.ArrowDataframe.toObject(t.arrowDataframe,o),o.oneofs&&(d.value="arrowDataframe")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.value="bytes")),d},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+"/SpecialArg"},n})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.prototype.height=0,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowDataframe;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.ArrowTable.decode(e,e.uint32());break}case 2:{p.height=e.uint32();break}case 3:{p.width=e.uint32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowDataframe)return e;let t=new $root.ArrowDataframe;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowDataframe.data: object expected");t.data=$root.ArrowTable.fromObject(e.data)}return e.height!=null&&(t.height=e.height>>>0),e.width!=null&&(t.width=e.width>>>0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null,o.height=0,o.width=0),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.ArrowTable.toObject(e.data,t)),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),o},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+"/ArrowDataframe"},n})();$root.ArrowTable=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.prototype.index=$util.newBuffer([]),n.prototype.columns=$util.newBuffer([]),n.prototype.styler=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),e.styler!=null&&Object.hasOwnProperty.call(e,"styler")&&$root.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTable;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}case 2:{p.index=e.bytes();break}case 3:{p.columns=e.bytes();break}case 5:{p.styler=$root.ArrowTableStyler.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTable)return e;let t=new $root.ArrowTable;
18if(e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),e.index!=null&&(typeof e.index=="string"?$util.base64.decode(e.index,t.index=$util.newBuffer($util.base64.length(e.index)),0):e.index.length>=0&&(t.index=e.index)),e.columns!=null&&(typeof e.columns=="string"?$util.base64.decode(e.columns,t.columns=$util.newBuffer($util.base64.length(e.columns)),0):e.columns.length>=0&&(t.columns=e.columns)),e.styler!=null){if(typeof e.styler!="object")throw TypeError(".ArrowTable.styler: object expected");t.styler=$root.ArrowTableStyler.fromObject(e.styler)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data))),t.bytes===String?o.index="":(o.index=[],t.bytes!==Array&&(o.index=$util.newBuffer(o.index))),t.bytes===String?o.columns="":(o.columns=[],t.bytes!==Array&&(o.columns=$util.newBuffer(o.columns))),o.styler=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.index!=null&&e.hasOwnProperty("index")&&(o.index=t.bytes===String?$util.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),e.columns!=null&&e.hasOwnProperty("columns")&&(o.columns=t.bytes===String?$util.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),e.styler!=null&&e.hasOwnProperty("styler")&&(o.styler=$root.ArrowTableStyler.toObject(e.styler,t)),o},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+"/ArrowTable"},n})();$root.ArrowTableStyler=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTableStyler;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=e.string();break}case 2:{p.caption=e.string();break}case 3:{p.styles=e.string();break}case 4:{p.displayValues=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTableStyler)return e;let t=new $root.ArrowTableStyler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.uuid="",o.caption="",o.styles="",t.bytes===String?o.displayValues="":(o.displayValues=[],t.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(o.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(o.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(o.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),o},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+"/ArrowTableStyler"},n})();$root.Balloons=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Balloons;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Balloons)return e;let t=new $root.Balloons;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},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+"/Balloons"},n})();$root.MixedData=(()=>{function n(i){if(this.arrowBlobs={},i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.arrowBlobs=$util.emptyObject,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&Object.hasOwnProperty.call(e,"arrowBlobs"))for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d)t.uint32(18).fork().uint32(10).string(o[d]),$root.ArrowData.encode(e.arrowBlobs[o[d]],t.uint32(18).fork()).ldelim().ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MixedData,h,y;for(;e.pos<d;){let $=e.uint32();if($===o)break;switch($>>>3){case 1:{p.json=e.string();break}case 2:{p.arrowBlobs===$util.emptyObject&&(p.arrowBlobs={});let E=e.uint32()+e.pos;for(h="",y=null;e.pos<E;){let M=e.uint32();switch(M>>>3){case 1:h=e.string();break;case 2:y=$root.ArrowData.decode(e,e.uint32());break;default:e.skipType(M&7);break}}p.arrowBlobs[h]=y;break}default:e.skipType($&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MixedData)return e;let t=new $root.MixedData;if(e.json!=null&&(t.json=String(e.json)),e.arrowBlobs){if(typeof e.arrowBlobs!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs={};for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d){if(typeof e.arrowBlobs[o[d]]!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs[o[d]]=$root.ArrowData.fromObject(e.arrowBlobs[o[d]])}}return t},n.toObject=function(e,t){t||(t={});let o={};(t.objects||t.defaults)&&(o.arrowBlobs={}),t.defaults&&(o.json=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json);let d;
18if(e.arrowBlobs&&(d=Object.keys(e.arrowBlobs)).length){o.arrowBlobs={};for(let p=0;p<d.length;++p)o.arrowBlobs[d[p]]=$root.ArrowData.toObject(e.arrowBlobs[d[p]],t)}return o},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+"/MixedData"},n})();$root.BidiComponent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(18).string(t.componentName),t.jsContent!=null&&Object.hasOwnProperty.call(t,"jsContent")&&o.uint32(26).string(t.jsContent),t.jsSourcePath!=null&&Object.hasOwnProperty.call(t,"jsSourcePath")&&o.uint32(34).string(t.jsSourcePath),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.htmlContent!=null&&Object.hasOwnProperty.call(t,"htmlContent")&&o.uint32(50).string(t.htmlContent),t.cssContent!=null&&Object.hasOwnProperty.call(t,"cssContent")&&o.uint32(58).string(t.cssContent),t.cssSourcePath!=null&&Object.hasOwnProperty.call(t,"cssSourcePath")&&o.uint32(66).string(t.cssSourcePath),t.isolateStyles!=null&&Object.hasOwnProperty.call(t,"isolateStyles")&&o.uint32(72).bool(t.isolateStyles),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&o.uint32(82).string(t.json),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,o.uint32(90).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(98).bytes(t.bytes),t.mixed!=null&&Object.hasOwnProperty.call(t,"mixed")&&$root.MixedData.encode(t.mixed,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BidiComponent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.componentName=t.string();break}case 3:{h.jsContent=t.string();break}case 4:{h.jsSourcePath=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.htmlContent=t.string();break}case 7:{h.cssContent=t.string();break}case 8:{h.cssSourcePath=t.string();break}case 9:{h.isolateStyles=t.bool();break}case 10:{h.json=t.string();break}case 11:{h.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 12:{h.bytes=t.bytes();break}case 13:{h.mixed=$root.MixedData.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BidiComponent)return t;let o=new $root.BidiComponent;if(t.id!=null&&(o.id=String(t.id)),t.componentName!=null&&(o.componentName=String(t.componentName)),t.jsContent!=null&&(o.jsContent=String(t.jsContent)),t.jsSourcePath!=null&&(o.jsSourcePath=String(t.jsSourcePath)),t.formId!=null&&(o.formId=String(t.formId)),t.htmlContent!=null&&(o.htmlContent=String(t.htmlContent)),t.cssContent!=null&&(o.cssContent=String(t.cssContent)),t.cssSourcePath!=null&&(o.cssSourcePath=String(t.cssSourcePath)),t.isolateStyles!=null&&(o.isolateStyles=!!t.
vendor: 5,111 bytes, line 18
18isolateStyles),t.json!=null&&(o.json=String(t.json)),t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".BidiComponent.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(t.arrowData)}if(t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),t.mixed!=null){if(typeof t.mixed!="object")throw TypeError(".BidiComponent.mixed: object expected");o.mixed=$root.MixedData.fromObject(t.mixed)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.componentName="",d.formId="",d.isolateStyles=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.jsContent!=null&&t.hasOwnProperty("jsContent")&&(d.jsContent=t.jsContent,o.oneofs&&(d._jsContent="jsContent")),t.jsSourcePath!=null&&t.hasOwnProperty("jsSourcePath")&&(d.jsSourcePath=t.jsSourcePath,o.oneofs&&(d._jsSourcePath="jsSourcePath")),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.htmlContent!=null&&t.hasOwnProperty("htmlContent")&&(d.htmlContent=t.htmlContent,o.oneofs&&(d._htmlContent="htmlContent")),t.cssContent!=null&&t.hasOwnProperty("cssContent")&&(d.cssContent=t.cssContent,o.oneofs&&(d._cssContent="cssContent")),t.cssSourcePath!=null&&t.hasOwnProperty("cssSourcePath")&&(d.cssSourcePath=t.cssSourcePath,o.oneofs&&(d._cssSourcePath="cssSourcePath")),t.isolateStyles!=null&&t.hasOwnProperty("isolateStyles")&&(d.isolateStyles=t.isolateStyles),t.json!=null&&t.hasOwnProperty("json")&&(d.json=t.json,o.oneofs&&(d.data="json")),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(t.arrowData,o),o.oneofs&&(d.data="arrowData")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.data="bytes")),t.mixed!=null&&t.hasOwnProperty("mixed")&&(d.mixed=$root.MixedData.toObject(t.mixed,o),o.oneofs&&(d.data="mixed")),d},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+"/BidiComponent"},n})();const Block$1=$root.Block=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.vertical!=null&&Object.hasOwnProperty.call(t,"vertical")&&$root.Block.Vertical.encode(t.vertical,o.uint32(10).fork()).ldelim(),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&$root.Block.Horizontal.encode(t.horizontal,o.uint32(18).fork()).ldelim(),t.column!=null&&Object.hasOwnProperty.call(t,"column")&&$root.Block.Column.encode(t.column,o.uint32(26).fork()).ldelim(),t.expandable!=null&&Object.hasOwnProperty.call(t,"expandable")&&$root.Block.Expandable.encode(t.expandable,o.uint32(34).fork()).ldelim(),t.form!=null&&Object.hasOwnProperty.call(t,"form")&&$root.Block.Form.encode(t.form,o.uint32(42).fork()).ldelim(),t.tabContainer!=null&&Object.hasOwnProperty.call(t,"tabContainer")&&$root.Block.TabContainer.encode(t.tabContainer,o.uint32(50).fork()).ldelim(),t.tab!=null&&Object.hasOwnProperty.call(t,"tab")&&$root.Block.Tab.encode(t.tab,o.uint32(58).fork()).ldelim(),t.allowEmpty!=null&&Object.hasOwnProperty.call(t,"allowEmpty")&&o.uint32(64).bool(t.allowEmpty),t.chatMessage!=null&&Object.hasOwnProperty.call(t,"chatMessage")&&$root.Block.ChatMessage.encode(t.chatMessage,o.uint32(74).fork()).ldelim(),t.popover!=null&&Object.hasOwnProperty.call(t,"popover")&&$root.Block.Popover.encode(t.popover,o.uint32(82).fork()).ldelim(),t.dialog!=null&&Object.hasOwnProperty.call(t,"dialog")&&$root.Block.Dialog.encode(t.dialog,o.uint32(90).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.flexContainer!=null&&Object.hasOwnProperty.call(t,"flexContainer")&&$root.Block.FlexContainer.encode(t.flexContainer,o.uint32(106).fork()).ldelim(),t.height
18Config!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(114).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(122).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Block;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.vertical=$root.Block.Vertical.decode(t,t.uint32());break}case 2:{h.horizontal=$root.Block.Horizontal.decode(t,t.uint32());break}case 3:{h.column=$root.Block.Column.decode(t,t.uint32());break}case 4:{h.expandable=$root.Block.Expandable.decode(t,t.uint32());break}case 5:{h.form=$root.Block.Form.decode(t,t.uint32());break}case 6:{h.tabContainer=$root.Block.TabContainer.decode(t,t.uint32());break}case 7:{h.tab=$root.Block.Tab.decode(t,t.uint32());break}case 9:{h.chatMessage=$root.Block.ChatMessage.decode(t,t.uint32());break}case 10:{h.popover=$root.Block.Popover.decode(t,t.uint32());break}case 11:{h.dialog=$root.Block.Dialog.decode(t,t.uint32());break}case 13:{h.flexContainer=$root.Block.FlexContainer.decode(t,t.uint32());break}case 8:{h.allowEmpty=t.bool();break}case 12:{h.id=t.string();break}case 14:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 15:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Block)return t;let o=new $root.Block;if(t.vertical!=null){if(typeof t.vertical!="object")throw TypeError(".Block.vertical: object expected");o.vertical=$root.Block.Vertical.fromObject(t.vertical)}if(t.horizontal!=null){if(typeof t.horizontal!="object")throw TypeError(".Block.horizontal: object expected");o.horizontal=$root.Block.Horizontal.fromObject(t.horizontal)}if(t.column!=null){if(typeof t.column!="object")throw TypeError(".Block.column: object expected");o.column=$root.Block.Column.fromObject(t.column)}if(t.expandable!=null){if(typeof t.expandable!="object")throw TypeError(".Block.expandable: object expected");o.expandable=$root.Block.Expandable.fromObject(t.expandable)}if(t.form!=null){if(typeof t.form!="object")throw TypeError(".Block.form: object expected");o.form=$root.Block.Form.fromObject(t.form)}if(t.tabContainer!=null){if(typeof t.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");o.tabContainer=$root.Block.TabContainer.fromObject(t.tabContainer)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".Block.tab: object expected");o.tab=$root.Block.Tab.fromObject(t.tab)}if(t.chatMessage!=null){if(typeof t.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");o.chatMessage=$root.Block.ChatMessage.fromObject(t.chatMessage)}if(t.popover!=null){if(typeof t.popover!="object")throw TypeError(".Block.popover: object expected");o.popover=$root.Block.Popover.fromObject(t.popover)}if(t.dialog!=null){if(typeof t.dialog!="object")throw TypeError(".Block.dialog: object expected");o.dialog=$root.Block.Dialog.fromObject(t.dialog)}if(t.flexContainer!=null){if(typeof t.flexContainer!="object")throw TypeError(".Block.flexContainer: object expected");o.flexContainer=$root.Block.FlexContainer.fromObject(t.flexContainer)}if(t.allowEmpty!=null&&(o.allowEmpty=!!t.allowEmpty),t.id!=null&&(o.id=String(t.id)),t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Block.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Block.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.allowEmpty=!1),t.vertical!=null&&t.hasOwnProperty("vertical")&&(d.vertical=$root.Block.Vertical.toObject(t.vertical,o),o.oneofs&&(d.type="vertical")),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=$root.Block.Horizontal.toObject(t.horizontal,o),o.oneofs&&(d.type="horizontal")),t.column!=null&&t.hasOwnProperty("column")&&(d.column=$root.Block.Column.toObject(t.column,o),o.oneofs&&(d.type="column")),t.expandable!=null&&t.hasOwnProperty("expandable")&&(d.expandable=$root.Block.Expandable.toObject(t.expandable,o),o.oneofs&&(d.type="exp
18andable")),t.form!=null&&t.hasOwnProperty("form")&&(d.form=$root.Block.Form.toObject(t.form,o),o.oneofs&&(d.type="form")),t.tabContainer!=null&&t.hasOwnProperty("tabContainer")&&(d.tabContainer=$root.Block.TabContainer.toObject(t.tabContainer,o),o.oneofs&&(d.type="tabContainer")),t.tab!=null&&t.hasOwnProperty("tab")&&(d.tab=$root.Block.Tab.toObject(t.tab,o),o.oneofs&&(d.type="tab")),t.allowEmpty!=null&&t.hasOwnProperty("allowEmpty")&&(d.allowEmpty=t.allowEmpty),t.chatMessage!=null&&t.hasOwnProperty("chatMessage")&&(d.chatMessage=$root.Block.ChatMessage.toObject(t.chatMessage,o),o.oneofs&&(d.type="chatMessage")),t.popover!=null&&t.hasOwnProperty("popover")&&(d.popover=$root.Block.Popover.toObject(t.popover,o),o.oneofs&&(d.type="popover")),t.dialog!=null&&t.hasOwnProperty("dialog")&&(d.dialog=$root.Block.Dialog.toObject(t.dialog,o),o.oneofs&&(d.type="dialog")),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id,o.oneofs&&(d._id="id")),t.flexContainer!=null&&t.hasOwnProperty("flexContainer")&&(d.flexContainer=$root.Block.FlexContainer.toObject(t.flexContainer,o),o.oneofs&&(d.type="flexContainer")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},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+"/Block"},n.Vertical=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.prototype.height=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),o.height!=null&&Object.hasOwnProperty.call(o,"height")&&d.uint32(16).uint32(o.height),d},e.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 $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.border=o.bool();break}case 2:{y.height=o.uint32();break}default:o.skipType($&7);break}}return y},e.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),o.height!=null&&(d.height=o.height>>>0),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1,p.height=0),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.height!=null&&o.hasOwnProperty("height")&&(p.height=o.height),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Vertical"},e})(),n.Horizontal=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.gap="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.gap!=null&&Object.hasOwnProperty.call(o,"gap")&&d.uint32(10).string(o.gap),d},e.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 $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gap=o.string();break}default:o.skipType($&7);break}}return y},e.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},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.gap=""),o.gap!=null&&o.hasOwnProperty("gap")&&(p.gap=o.gap),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Horizontal"},e})(),n.FlexContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(o){return new e(o)},e.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.Ga
18pConfig.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},e.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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.FlexContainer"},e.Direction=(function(){const t={},o=Object.create(t);return o[t[0]="DIRECTION_UNDEFINED"]=0,o[t[1]="VERTICAL"]=1,o[t[2]="HORIZONTAL"]=2,o})(),e.Justify=(function(){const t={},o=Object.create(t);return o[t[0]="JUSTIFY_UNDEFINED"]=0,o[t[1]="JUSTIFY_START"]=1,o[t[2]="JUSTIFY_END"]=2,o[t[3]="JUSTIFY_CENTER"]=3,o[t[4]="SPACE_BETWEEN"]=4,o})(),e.Align=(function(){const t={},o=Object.create(t);return o[t[0]="ALIGN_UNDEFINED"]=0,o[t[1]="ALIGN_START"]=1,o[t[2]="ALIGN_END"]=2,o[t[3]="ALIGN_CENTER"]=3,o[t[4]="STRETCH"]=4,o})(),e})(),n.Column=(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]])}e.prototype.weight=0,e.prototype.gap="",e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return Object.defineProperty(e.prototype,"_gapConfig",{get:$util.oneOfGetter(t=["gapConfig"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.weight!=null&&Object.hasOwnProperty.call(d,"weight")&&p.uint32(9).double(d.weight),d.gap!=null&&Object.hasOwnProperty.call(d,"gap")&&p.uint32(18).string(d.gap),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},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Column;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.weight=d.double();break}case 2:{$.gap=d.string();break}case 3:{$.verticalAlignment=d.int32();break}case 4:{$.showBorder=d.bool();break}case 5:{$.gapConfig=$root.streamlit.GapConfig.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},e.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.gap!=null&&(p.gap=String(d.gap)),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)}
18return p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.weight=0,h.gap="",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.gap!=null&&d.hasOwnProperty("gap")&&(h.gap=d.gap),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.GapConfig.toObject(d.gapConfig,p),p.oneofs&&(h._gapConfig="gapConfig")),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+"/Block.Column"},e.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})(),e})(),n.Expandable=(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]])}e.prototype.label="",e.prototype.expanded=null,e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_expanded",{get:$util.oneOfGetter(t=["expanded"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.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),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Expandable;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.label=d.string();break}case 2:{$.expanded=d.bool();break}case 3:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.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)),p},e.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),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+"/Block.Expandable"},e})(),n.Dialog=(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]])}e.prototype.title="",e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id="",e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_isOpen",{get:$util.oneOfGetter(t=["isOpen"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.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},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Dialog;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.title=d.string();break}case 2:{$.dismissible=d.bool();break}case 3:{$.width=d.int32();break}case 4:{$.isOpen=d.bool();break}case 5:{$.id=d.string();break}case 6:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.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},e.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},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+"/Block.Dialog"},e.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})(),e})(),n.Form=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(o){return new e(o)},e.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},e.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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Form"},e})(),n.TabContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.defaultTabIndex=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.defaultTabIndex!=null&&Object.hasOwnProperty.call(o,"defaultTabIndex")&&d.uint32(8).int32(o.defaultTabIndex),d},e.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.TabContainer;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.defaultTabIndex=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.TabContainer)return o;let d=new $root.Block.TabContainer;return o.defaultTabIndex!=null&&(d.defaultTabIndex=o.defaultTabIndex|0),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.defaultTabIndex=0),o.defaultTabIndex!=null&&o.hasOwnProperty("defaultTabIndex")&&(p.defaultTabIndex=o.defaultTabIndex),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.TabContainer"},e})(),n.Tab=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),d},e.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;
18){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}default:o.skipType($&7);break}}return y},e.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},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Tab"},e})(),n.Popover=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.prototype.useContainerWidth=!1,e.prototype.help="",e.prototype.disabled=!1,e.prototype.icon="",e.prototype.type="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).str
18ing(o.label),o.useContainerWidth!=null&&Object.hasOwnProperty.call(o,"useContainerWidth")&&d.uint32(16).bool(o.useContainerWidth),o.help!=null&&Object.hasOwnProperty.call(o,"help")&&d.uint32(26).string(o.help),o.disabled!=null&&Object.hasOwnProperty.call(o,"disabled")&&d.uint32(32).bool(o.disabled),o.icon!=null&&Object.hasOwnProperty.call(o,"icon")&&d.uint32(42).string(o.icon),o.type!=null&&Object.hasOwnProperty.call(o,"type")&&d.uint32(50).string(o.type),d},e.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.Popover;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}case 2:{y.useContainerWidth=o.bool();break}case 3:{y.help=o.string();break}case 4:{y.disabled=o.bool();break}case 5:{y.icon=o.string();break}case 6:{y.type=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Popover)return o;let d=new $root.Block.Popover;return o.label!=null&&(d.label=String(o.label)),o.useContainerWidth!=null&&(d.useContainerWidth=!!o.useContainerWidth),o.help!=null&&(d.help=String(o.help)),o.disabled!=null&&(d.disabled=!!o.disabled),o.icon!=null&&(d.icon=String(o.icon)),o.type!=null&&(d.type=String(o.type)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label="",p.useContainerWidth=!1,p.help="",p.disabled=!1,p.icon="",p.type=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),o.useContainerWidth!=null&&o.hasOwnProperty("useContainerWidth")&&(p.useContainerWidth=o.useContainerWidth),o.help!=null&&o.hasOwnProperty("help")&&(p.help=o.help),o.disabled!=null&&o.hasOwnProperty("disabled")&&(p.disabled=o.disabled),o.icon!=null&&o.hasOwnProperty("icon")&&(p.icon=o.icon),o.type!=null&&o.hasOwnProperty("type")&&(p.type=o.type),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Popover"},e})(),n.ChatMessage=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.name="",e.prototype.avatar="",e.prototype.avatarType=0,e.create=function(o){return new e(o)},e.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},e.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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.ChatMessage"},e.AvatarType=(function(){const t={},o=Object.create(t);return o[t[0]="IMAGE"]=0,o[t[1]="EMOJI"]=1,o[t[2]="ICON"]=2,o})(),e})(),n})();$root.BokehChart=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.figure="",n.prototype.useContainerWidth=!1,n.prototype.elementId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.figure!=null&&Object.hasOwnProperty.call(e,"figure")&&t.uint32(10).string(e.figure),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(16).bool(e.useContainerWidth),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(26).string(e.elementId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.BokehChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.figure=e.string();break}case 2:{p.useContainerWidth=e.bool();break}case 3:{p.elementId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.BokehChart)return e;let t=new $root.BokehChart;return e.figure!=null&&(t.figure=String(e.figure)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.elementId!=null&&(t.elementId=String(e.elementId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.figure="",o.useContainerWidth=!1,o.elementId=""),e.figure!=null&&e.hasOwnProperty("figure")&&(o.figure=e.figure),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.elementId!=null&&e.hasOwnProperty("elementId")&&(o.elementId=e.elementId),o},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+"/BokehChart"},n})();$root.Button=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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.useContainerWidth=!1,n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(72).bool(e.useContainerWidth),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Button;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.isFormSubmitter=e.bool();break}case 7:{p.type=e.string();break}case 8:{p.disabled=e.bool();break}case 9:{p.useContainerWidth=e.bool();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Button)return e;let t=new $root.Button;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.isFormSubmitter!=null&&(t.isFormSubmitter=!!e.isFormSubmitter),e.type!=null&&(t.type=String(e.type)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.isFormSubmitter=!1,o.type="",o.disabled=!1,o.useContainerWidth=!1,o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.isFormSubmitter!=null&&e.hasOwnProperty("isFormSubmitter")&&(o.isFormSubmitter=e.isFormSubmitter),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},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+"/Button"},n})();const ButtonGroup$1=$root.ButtonGroup=(()=>{function n(e){if(this.options=[],this.default=[],this.value=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.selectionVisualization=0,n.prototype.style=0,n.prototype.label="",n.prototype.labelVisibility=null,n.prototype.help=null;let i;return Object.defineProperty(n.prototype,"_help",{get:$util.oneOfGetter(i=["help"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)$root.ButtonGroup.Option.encode(t.options[d],o.uint32(18).fork()).ldelim();if(t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.uint32(t.default[d]);o.ldelim()}if(t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.clickMode!=null&&Object.hasOwnProperty.call(t,"clickMode")&&o.uint32(40).int32(t.clickMode),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.value!=null&&t.value.length){o.uint32(58).fork();for(let d=0;d<t.value.length;++d)o.uint32(t.value[d]);o.ldelim()}return t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.selectionVisualization!=null&&Object.hasOwnProperty.call(t,"selectionVisualization")&&o.uint32(72).int32(t.selectionVisualization),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(80).int32(t.style),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(90).string(t.label),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(106).string(t.help),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ButtonGroup;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.options&&h.options.length||(h.options=[]),h.options.push($root.ButtonGroup.Option.decode(t,t.uint32()));break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.uint32())}else h.default.push(t.uint32());break}case 4:{h.disabled=t.bool();break}case 5:{h.clickMode=t.int32();break}case 6:{h.formId=t.string();break}case 7:{if(h.value&&h.value.length||(h.value=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.value.push(t.uint32())}else h.value.push(t.uint32());break}case 8:{h.setValue=t.bool();break}case 9:{h.selectionVisualization=t.int32();break}case 10:{h.style=t.int32();break}case 11:{h.label=t.string();break}case 12:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 13:{h.help=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ButtonGroup)return t;let o=new $root.ButtonGroup;if(t.id!=null&&(o.id=String(t.id)),t.options){if(!Array.isArray(t.options))throw TypeError(".ButtonGroup.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d){if(typeof t.options[d]!="object")throw TypeError(".ButtonGroup.options: object expected");o.options[d]=$root.ButtonGroup.Option.fromObject(t.options[d])}}if(t.default){if(!Array.isArray(t.default))throw TypeError(".ButtonGroup.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]>>>0}switch(t.disabled!=null&&(o.disabled=!!t.disabled),t.clickMode){default:if(typeof t.clickMode=="number"){o.clickMode=t.clickMode;break}break;case"SINGLE_SELECT":case 0:o.clickMode=0;break;case"MULTI_SELECT":case 1:o.clickMode=1;break}if(t.formId!=null&&(o.formId=String(t.formId)),t.value){if(!Array.isArray(t.value))throw TypeError(".ButtonGroup.value: array expected");o.value=[];for(let d=0;d<t.value.length;++d)o.value[d]=t.value[d]>>>0}switch(t.setValue!=null&&(o.setValue=!!t.setValue),t.selectionVisualization){default:if(typeof t.selectionVisualization=="number"){o.selectionVisualization=t.selectionVisualization;break}break;case"ONLY_SELECTED":case 0:o.selectionVisualization=0;break;case"ALL_UP_TO_SELECTED":case 1:o.selectionVisualization=1;break}switch(t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"SEGMENTED_CONTROL":case 0:o.style=0;break;case"PILLS":case 1:o.style=1;break;case"BORDERLESS":case 2:o.style=2;break}if(t.label!=null&&(o.label=String(t.label)),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.help!=null&&(o.help=String(t.help)),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.default=[],d.value=[]),o.defaults&&(d.id="",d.disabled=!1,d.clickMode=o.enums===String?"SINGLE_SELECT":0,d.formId="",d.setValue=!1,d.selectionVisualization=o.enums===String?"ONLY_SELECTED":0,d.style=o.enums===String?"SEGMENTED_CONTROL":0,d.label="",d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=$root.ButtonGroup.Option.toObject(t.options[p],o)}if(t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.clickMode!=null&&t.hasOwnProperty("clickMode")&&(d.clickMode=o.enums===String?$root.ButtonGroup.ClickMode[t.clickMode]===void 0?t.clickMode:$root.ButtonGroup.ClickMode[t.clickMode]:t.clickMode),t.formId!=null&&t.h
18asOwnProperty("formId")&&(d.formId=t.formId),t.value&&t.value.length){d.value=[];for(let p=0;p<t.value.length;++p)d.value[p]=t.value[p]}return t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.selectionVisualization!=null&&t.hasOwnProperty("selectionVisualization")&&(d.selectionVisualization=o.enums===String?$root.ButtonGroup.SelectionVisualization[t.selectionVisualization]===void 0?t.selectionVisualization:$root.ButtonGroup.SelectionVisualization[t.selectionVisualization]:t.selectionVisualization),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.ButtonGroup.Style[t.style]===void 0?t.style:$root.ButtonGroup.Style[t.style]:t.style),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help,o.oneofs&&(d._help="help")),d},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+"/ButtonGroup"},n.ClickMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_SELECT"]=0,t[e[1]="MULTI_SELECT"]=1,t})(),n.Option=(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]])}e.prototype.content="",e.prototype.selectedContent=null,e.prototype.contentIcon=null,e.prototype.selectedContentIcon=null;let t;return Object.defineProperty(e.prototype,"_selectedContent",{get:$util.oneOfGetter(t=["selectedContent"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_contentIcon",{get:$util.oneOfGetter(t=["contentIcon"]),set:$util.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_selectedContentIcon",{get:$util.oneOfGetter(t=["selectedContentIcon"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.content!=null&&Object.hasOwnProperty.call(d,"content")&&p.uint32(10).string(d.content),d.selectedContent!=null&&Object.hasOwnProperty.call(d,"selectedContent")&&p.uint32(18).string(d.selectedContent),d.contentIcon!=null&&Object.hasOwnProperty.call(d,"contentIcon")&&p.uint32(26).string(d.contentIcon),d.selectedContentIcon!=null&&Object.hasOwnProperty.call(d,"selectedContentIcon")&&p.uint32(34).string(d.selectedContentIcon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.ButtonGroup.Option;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.content=d.string();break}case 2:{$.selectedContent=d.string();break}case 3:{$.contentIcon=d.string();break}case 4:{$.selectedContentIcon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.ButtonGroup.Option)return d;let p=new $root.ButtonGroup.Option;return d.content!=null&&(p.content=String(d.content)),d.selectedContent!=null&&(p.selectedContent=String(d.selectedContent)),d.contentIcon!=null&&(p.contentIcon=String(d.contentIcon)),d.selectedContentIcon!=null&&(p.selectedContentIcon=String(d.selectedContentIcon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.content=""),d.content!=null&&d.hasOwnProperty("content")&&(h.content=d.content),d.selectedContent!=null&&d.hasOwnProperty("selectedContent")&&(h.selectedContent=d.selectedContent,p.oneofs&&(h._selectedContent="selectedContent")),d.contentIcon!=null&&d.hasOwnProperty("contentIcon")&&(h.contentIcon=d.contentIcon,p.oneofs&&(h._contentIcon="contentIcon")),d.selectedContentIcon!=null&&d.hasOwnProperty("selectedContentIcon")&&(h.selectedContentIcon=d.selectedContentIcon,p.oneofs&&(h._selectedContentIcon="selectedContentIcon")),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+"/ButtonGroup.Option"},e})(),n.SelectionVisualization=(function(){const e={},t=Object.create(e);return t[e[0]="ONLY_SELECTED"]=0,t[e[1]="ALL_UP_TO_SELECTED"]=1,t})(),n.Style=(function(){const e={},t=Object.create(e);return t[e[0]="SEGMENTED_CONTROL"]=0,t[e[1]="PILLS"]=1,t[e[2]="BORDERLESS"]=2,t})(),n})();$root.CameraInput=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CameraInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.help=e.string();break}case 4:{p.formId=e.string();break}case 5:{p.disabled=e.bool();break}case 6:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CameraInput)return e;let t=new $root.CameraInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),o},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+"/CameraInput"},n})();const ChatInput$1=$root.ChatInput=(()=>{function n(e){if(this.fileType=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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.position=0,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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(18).string(t.placeholder),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(24).uint32(t.maxChars),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(42).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(48).bool(t.setValue),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(58).string(t.default),t.position!=null&&Object.hasOwnProperty.call(t,"position")&&o.uint32(64).int32(t.position),t.acceptFile!=null&&Object.hasOwnProperty.call(t,"acceptFile")&&o.uint32(72).int32(t.acceptFile),t.fileType!=null&&t.fileType.length)for(let d=0;d<t.fileType.length;++d)o.uint32(82).string(t.fileType[d]);return t.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(t,"maxUploadSizeMb")&&o.uint32(88).int32(t.maxUploadSizeMb),t.acceptAudio!=null&&Object.hasOwnProperty.call(t,"acceptAudio")&&o.uint32(96).bool(t.acceptAudio),t.audioSampleRate!=null&&Object.hasOwnProperty.call(t,"audioSampleRate")&&o.uint32(104).int32(t.audioSampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.placeholder=t.string();break}case 3:{h.maxChars=t.uint32();break}case 4:{h.disabled=t.bool();break}case 5:{h.value=t.string();break}case 6:{h.setValue=t.bool();break}case 7:{h.default=t.string();break}case 8:{h.position=t.int32();break}case 9:{h.acceptFile=t.int32();break}case 10:{h.fileType&&h.fileType.length||(h.fileType=[]),h.fileType.push(t.string());break}case 11:{h.maxUploadSizeMb=t.int32();break}case 12:{h.acceptAudio=t.bool();break}case 13:{h.audioSampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInput)return t;let o=new $root.ChatInput;switch(t.id!=null&&(o.id=String(t.id)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.disabled!=null&&(o.disabled=!!t.disabled),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.default!=null&&(o.default=String(t.default)),t.position){default:if(typeof t.position=="number"){o.position=t.position;break}break;case"BOTTOM":case 0:o.position=0;break}switch(t.acceptFile){default:if(typeof t.acceptFile=="number"){o.acceptFile=t.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(t.fileType){if(!Array.isArray(t.fileType))throw TypeError(".ChatInput.fileType: array expected");o.fileType=[];for(let d=0;d<t.fileType.length;++d)o.fileType[d]=String(t.fileType[d])}return t.maxUploadSizeMb!=null&&(o.maxUploadSizeMb=t.maxUploadSizeMb|0),t.acceptAudio!=null&&(o.acceptAudio=!!t.acceptAudio),t.audioSampleRate!=null&&(o.audioSampleRate=t.audioSampleRate|0),o},n.toObject=function(t,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.position=o.enums===String?"BOTTOM":0,d.acceptFile=o.enums===String?"NONE":0,d.maxUploadSizeMb=0,d.acceptAudio=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.position!=null&&t.hasOwnProperty("position")&&(d.position=o.enums===String?$root.ChatInput.Position[t.position]===void 0?t.position:$root.ChatInput.Position[t.position]:t.position),t.acceptFile!=null&&t.hasOwnProperty("acceptFile")&&(d.acceptFile=o.enums===String?$root.ChatInput.AcceptFile[t.acceptFile]===void 0?t.acceptFile:$root.ChatInput.AcceptFile[t.acceptFile]:t.acceptFile),t.fileType&&t.fileType.length){d.fileType=[];for(let p=0;p<t.fileType.length;++p)d.fileType[p]=t.fileType[p]}return t.maxUploadSizeMb!=null&&t.hasOwnProperty("maxUploadSizeMb")&&(d.maxUploadSizeMb=t.maxUploadSizeMb),t.acceptAudio!=null&&t.hasOwnProperty("acceptAudio")&&(d.acceptAudio=t.acceptAudio),t.audioSampleRate!=null&&t.hasOwnProperty("audioSampleRate")&&(d.audioSampleRate=t.audioSampleRate,o.oneofs&&(d._audioSampleRate="audioSampleRate")),d},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+"/ChatInput"},n.Position=(function(){const e={},t=Object.create(e);return t[e[0]="BOTTOM"]=0,t})(),n.AcceptFile=(function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="SINGLE"]=1,t[e[2]="MULTIPLE"]=2,t[e[3]="DIRECTORY"]=3,t})(),n})(),Checkbox$1=$root.Checkbox=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return 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.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(80).int32(e.type),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Checkbox;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.bool();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 10:{p.type=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Checkbox)return e;let t=new $root.Checkbox;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=!!e.value),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"DEFAULT":case 0:t.type=0;break;case"TOGGLE":case 1:t.type=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.value=!1,o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"DEFAULT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disab
18led=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Checkbox.StyleType[e.type]===void 0?e.type:$root.Checkbox.StyleType[e.type]:e.type),o},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 i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="TOGGLE"]=1,e})(),n})();$root.Code=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.codeText="",n.prototype.language="",n.prototype.showLineNumbers=!1,n.prototype.wrapLines=!1,n.prototype.height=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.codeText!=null&&Object.hasOwnProperty.call(e,"codeText")&&t.uint32(10).string(e.codeText),e.language!=null&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&Object.hasOwnProperty.call(e,"showLineNumbers")&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&Object.hasOwnProperty.call(e,"wrapLines")&&t.uint32(32).bool(e.wrapLines),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(40).uint32(e.height),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Code;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.codeText=e.string();break}case 2:{p.language=e.string();break}case 3:{p.showLineNumbers=e.bool();break}case 4:{p.wrapLines=e.bool();break}case 5:{p.height=e.uint32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Code)return e;let t=new $root.Code;return e.codeText!=null&&(t.codeText=String(e.codeText)),e.language!=null&&(t.language=String(e.language)),e.showLineNumbers!=null&&(t.showLineNumbers=!!e.showLineNumbers),e.wrapLines!=null&&(t.wrapLines=!!e.wrapLines),e.height!=null&&(t.height=e.height>>>0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.codeText="",o.language="",o.showLineNumbers=!1,o.wrapLines=!1,o.height=0),e.codeText!=null&&e.hasOwnProperty("codeText")&&(o.codeText=e.codeText),e.language!=null&&e.hasOwnProperty("language")&&(o.language=e.language),e.showLineNumbers!=null&&e.hasOwnProperty("showLineNumbers")&&(o.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&e.hasOwnProperty("wrapLines")&&(o.wrapLines=e.wrapLines),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),o},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+"/Code"},n})();$root.ColorPicker=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return 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.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ColorPicker;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.string();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.string();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ColorPicker)return e;let t=new $root.ColorPicker;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=String(e.default)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=String(e.value)),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default="",o.help="",o.formId="",o.value="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),o},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})();$root.DataFrame=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.prototype.index=null,n.prototype.columns=null,n.prototype.style=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Table.encode(e.data,t.uint32(10).fork()).ldelim(),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&$root.Index.encode(e.index,t.uint32(18).fork()).ldelim(),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&$root.Index.encode(e.columns,t.uint32(26).fork()).ldelim(),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&$root.TableStyle.encode(e.style,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DataFrame;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.Table.decode(e,e.uint32());break}case 2:{p.index=$root.Index.decode(e,e.uint32());break}case 3:{p.columns=$root.Index.decode(e,e.uint32());break}case 4:{p.style=$root.TableStyle.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DataFrame)return e;let t=new $root.DataFrame;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".DataFrame.data: object expected");t.data=$root.Table.fromObject(e.data)}if(e.index!=null){if(typeof e.index!="object")throw TypeError(".DataFrame.index: object expected");t.index=$root.Index.fromObject(e.index)}if(e.columns!=null){if(typeof e.columns!="object")throw TypeError(".DataFrame.columns: object expected");t.columns=$root.Index.fromObject(e.columns)}if(e.style!=null){if(typeof e.style!="object")throw TypeError(".DataFrame.style: object expected");t.style=$root.TableStyle.fromObject(e.style)}
18return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null,o.index=null,o.columns=null,o.style=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Table.toObject(e.data,t)),e.index!=null&&e.hasOwnProperty("index")&&(o.index=$root.Index.toObject(e.index,t)),e.columns!=null&&e.hasOwnProperty("columns")&&(o.columns=$root.Index.toObject(e.columns,t)),e.style!=null&&e.hasOwnProperty("style")&&(o.style=$root.TableStyle.toObject(e.style,t)),o},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})();$root.Index=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.plainIndex=null,n.prototype.rangeIndex=null,n.prototype.multiIndex=null,n.prototype.datetimeIndex=null,n.prototype.timedeltaIndex=null,n.prototype.int_64Index=null,n.prototype.float_64Index=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.plainIndex!=null&&Object.hasOwnProperty.call(t,"plainIndex")&&$root.PlainIndex.encode(t.plainIndex,o.uint32(10).fork()).ldelim(),t.rangeIndex!=null&&Object.hasOwnProperty.call(t,"rangeIndex")&&$root.RangeIndex.encode(t.rangeIndex,o.uint32(18).fork()).ldelim(),t.multiIndex!=null&&Object.hasOwnProperty.call(t,"multiIndex")&&$root.MultiIndex.encode(t.multiIndex,o.uint32(34).fork()).ldelim(),t.datetimeIndex!=null&&Object.hasOwnProperty.call(t,"datetimeIndex")&&$root.DatetimeIndex.encode(t.datetimeIndex,o.uint32(50).fork()).ldelim(),t.timedeltaIndex!=null&&Object.hasOwnProperty.call(t,"timedeltaIndex")&&$root.TimedeltaIndex.encode(t.timedeltaIndex,o.uint32(58).fork()).ldelim(),t.int_64Index!=null&&Object.hasOwnProperty.call(t,"int_64Index")&&$root.Int64Index.encode(t.int_64Index,o.uint32(74).fork()).ldelim(),t.float_64Index!=null&&Object.hasOwnProperty.call(t,"float_64Index")&&$root.Float64Index.encode(t.float_64Index,o.uint32(90).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Index;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.plainIndex=$root.PlainIndex.decode(t,t.uint32());break}case 2:{h.rangeIndex=$root.RangeIndex.decode(t,t.uint32());break}case 4:{h.multiIndex=$root.MultiIndex.decode(t,t.uint32());break}case 6:{h.datetimeIndex=$root.DatetimeIndex.decode(t,t.uint32());break}case 7:{h.timedeltaIndex=$root.TimedeltaIndex.decode(t,t.uint32());break}case 9:{h.int_64Index=$root.Int64Index.decode(t,t.uint32());break}case 11:{h.float_64Index=$root.Float64Index.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Index)return t;let o=new $root.Index;if(t.plainIndex!=null){if(typeof t.plainIndex!="object")throw TypeError(".Index.plainIndex: object expected");o.plainIndex=$root.PlainIndex.fromObject(t.plainIndex)}if(t.rangeIndex!=null){if(typeof t.rangeIndex!="object")throw TypeError(".Index.rangeIndex: object expected");o.rangeIndex=$root.RangeIndex.fromObject(t.rangeIndex)}if(t.multiIndex!=null){if(typeof t.multiIndex!="object")throw TypeError(".Index.multiIndex: object expected");o.multiIndex=$root.MultiIndex.fromObject(t.multiIndex)}if(t.datetimeIndex!=null){if(typeof t.datetimeIndex!="object")throw TypeError(".Index.datetimeIndex: object expected");o.datetimeIndex=$root.DatetimeIndex.fromObject(t.datetimeIndex)}if(t.timedeltaIndex!=null){if(typeof t.timedeltaIndex!="object")throw TypeError(".Index.timedeltaIndex: object expected");o.timedeltaIndex=$root.TimedeltaIndex.fromObject(t.timedeltaIndex)}if(t.int_64Index!=null){if(typeof t.int_64Index!="object")throw TypeError(".Index.int_64Index: object expected");o.int_64Index=$root.Int64Index.fromObject(t.int_64Index)}if(t.float_64Index!=null){if(typeof t.float_64Index!="object")throw TypeError(".Index.float_64Index: object expected");o.float_64Index=$root.Float64Index.fromObject(t.float_64Index)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.plainIndex!=null&&t.hasOwnProperty("plainIndex")&&(d.plainIndex=$root.PlainIndex.toObject(t.plainIndex,o),o.oneofs&&(d.type="plainIndex")),t.rangeIndex!=null&&t.hasOwnProperty("rangeIndex")&&(d.rangeIndex=$root.RangeIndex.toObject(t.rangeIndex,o),o.oneofs&&(d.type="rangeIndex")),t.multiIndex!=null&&t.hasOwnProperty("multiIndex")&&(d.multiIndex=$root.MultiIndex.toObject(t.multiIndex,o),o.oneofs&&(d.type="multiIndex")),t.datetimeIndex!=null&&t.hasOwnProperty("datetimeIndex")&&(d.datetimeIndex=$root.DatetimeIndex.toObject(t.datetimeIndex,o),o.oneofs&&(d.type="datetimeIndex")),t.timedeltaIndex!=null&&t.hasOwnProperty("timedeltaIndex")&&(d.timedeltaIndex=$root.TimedeltaIndex.toObject(t.timedeltaIndex,o),o.oneofs&&(d.type="timedeltaIndex")),t.int_64Index!=null&&t.hasOwnProperty("int_64Index")&&(d.int_64Index=$root.Int64Index.toObject(t.int_64Index,o),o.oneofs&&(d.type="int_64Index")),t.float_64Index!=null&&t.hasOwnProperty("float_64Index")&&(d.float_64Index=$root.Float64Index.toObject(t.float_64Index,o),o.oneofs&&(d.type="float_64Index")),d},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+"/Index"},n})();$root.PlainIndex=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.AnyArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PlainIndex;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.AnyArray.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PlainIndex)return e;let t=new $root.PlainIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".PlainIndex.data: object expected");t.data=$root.AnyArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.AnyArray.toObject(e.data,t)),o},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+"/PlainIndex"},n})();$root.RangeIndex=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.stop=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.start!=null&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int64(e.start),e.stop!=null&&Object.hasOwnProperty.call(e,"stop")&&t.uint32(16).int64(e.stop),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.RangeIndex;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.start=e.int64();break}case 2:{p.stop=e.int64();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.RangeIndex)return e;let t=new $root.RangeIndex;return e.start!=null&&($util.Long?(t.start=$util.Long.fromValue(e.start)).unsigned=!1:typeof e.start=="string"?t.start=parseInt(e.start,10):typeof e.start=="number"?t.start=e.start:typeof e.start=="object"&&(t.start=new $util.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),e.stop!=null&&($util.Long?(t.stop=$util.Long.fromValue(e.stop)).unsigned=!1:typeof e.stop=="string"?t.stop=parseInt(e.stop,10):typeof e.stop=="number"?t.stop=e.stop:typeof e.stop=="object"&&(t.stop=new $util.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let o={};if(t.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.start=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.start=t.longs===String?"0":0;
vendor: 10,083 bytes, line 18
18if($util.Long){let d=new $util.Long(0,0,!1);o.stop=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.stop=t.longs===String?"0":0}return e.start!=null&&e.hasOwnProperty("start")&&(typeof e.start=="number"?o.start=t.longs===String?String(e.start):e.start:o.start=t.longs===String?$util.Long.prototype.toString.call(e.start):t.longs===Number?new $util.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber():e.start),e.stop!=null&&e.hasOwnProperty("stop")&&(typeof e.stop=="number"?o.stop=t.longs===String?String(e.stop):e.stop:o.stop=t.longs===String?$util.Long.prototype.toString.call(e.stop):t.longs===Number?new $util.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber():e.stop),o},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+"/RangeIndex"},n})();$root.MultiIndex=(()=>{function n(i){if(this.levels=[],this.labels=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.levels=$util.emptyArray,n.prototype.labels=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.levels!=null&&e.levels.length)for(let o=0;o<e.levels.length;++o)$root.Index.encode(e.levels[o],t.uint32(10).fork()).ldelim();if(e.labels!=null&&e.labels.length)for(let o=0;o<e.labels.length;++o)$root.Int32Array.encode(e.labels[o],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MultiIndex;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.levels&&p.levels.length||(p.levels=[]),p.levels.push($root.Index.decode(e,e.uint32()));break}case 2:{p.labels&&p.labels.length||(p.labels=[]),p.labels.push($root.Int32Array.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MultiIndex)return e;let t=new $root.MultiIndex;if(e.levels){if(!Array.isArray(e.levels))throw TypeError(".MultiIndex.levels: array expected");t.levels=[];for(let o=0;o<e.levels.length;++o){if(typeof e.levels[o]!="object")throw TypeError(".MultiIndex.levels: object expected");t.levels[o]=$root.Index.fromObject(e.levels[o])}}if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".MultiIndex.labels: array expected");t.labels=[];for(let o=0;o<e.labels.length;++o){if(typeof e.labels[o]!="object")throw TypeError(".MultiIndex.labels: object expected");t.labels[o]=$root.Int32Array.fromObject(e.labels[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.levels=[],o.labels=[]),e.levels&&e.levels.length){o.levels=[];for(let d=0;d<e.levels.length;++d)o.levels[d]=$root.Index.toObject(e.levels[d],t)}if(e.labels&&e.labels.length){o.labels=[];for(let d=0;d<e.labels.length;++d)o.labels[d]=$root.Int32Array.toObject(e.labels[d],t)}return o},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+"/MultiIndex"},n})();$root.DatetimeIndex=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.StringArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DatetimeIndex;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.StringArray.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DatetimeIndex)return e;let t=new $root.DatetimeIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".DatetimeIndex.data: object expected");t.data=$root.StringArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.StringArray.toObject(e.data,t)),o},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+"/DatetimeIndex"},n})();$root.TimedeltaIndex=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.TimedeltaIndex;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.Int64Array.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.TimedeltaIndex)return e;let t=new $root.TimedeltaIndex;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".TimedeltaIndex.data: object expected");t.data=$root.Int64Array.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Int64Array.toObject(e.data,t)),o},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+"/TimedeltaIndex"},n})();$root.Int64Index=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int64Index;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.Int64Array.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int64Index)return e;let t=new $root.Int64Index;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".Int64Index.data: object expected");t.data=$root.Int64Array.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Int64Array.toObject(e.data,t)),o},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+"/Int64Index"},n})();$root.Float64Index=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DoubleArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Float64Index;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.DoubleArray.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Float64Index)return e;let t=new $root.Float64Index;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".Float64Index.data: object expected");t.data=$root.DoubleArray.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.DoubleArray.toObject(e.data,t)),o},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+"/Float64Index"},n})();$root.CSSStyle=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.property="",n.prototype.value="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.property!=null&&Object.hasOwnProperty.call(e,"property")&&t.uint32(10).string(e.property),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CSSStyle;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.property=e.string();break}case 2:{p.value=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CSSStyle)return e;let t=new $root.CSSStyle;return e.property!=null&&(t.property=String(e.property)),e.value!=null&&(t.value=String(e.value)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.property="",o.value=""),e.property!=null&&e.hasOwnProperty("property")&&(o.property=e.property),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),o},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+"/CSSStyle"},n})();$root.CellStyle=(()=>{function n(i){if(this.css=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.css=$util.emptyArray,n.prototype.displayValue="",n.prototype.hasDisplayValue=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.css!=null&&e.css.length)for(let o=0;o<e.css.length;++o)$root.CSSStyle.encode(e.css[o],t.uint32(10).fork()).ldelim();return e.displayValue!=null&&Object.hasOwnProperty.call(e,"displayValue")&&t.uint32(18).string(e.dis
18playValue),e.hasDisplayValue!=null&&Object.hasOwnProperty.call(e,"hasDisplayValue")&&t.uint32(24).bool(e.hasDisplayValue),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CellStyle;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.css&&p.css.length||(p.css=[]),p.css.push($root.CSSStyle.decode(e,e.uint32()));break}case 2:{p.displayValue=e.string();break}case 3:{p.hasDisplayValue=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CellStyle)return e;let t=new $root.CellStyle;if(e.css){if(!Array.isArray(e.css))throw TypeError(".CellStyle.css: array expected");t.css=[];for(let o=0;o<e.css.length;++o){if(typeof e.css[o]!="object")throw TypeError(".CellStyle.css: object expected");t.css[o]=$root.CSSStyle.fromObject(e.css[o])}}return e.displayValue!=null&&(t.displayValue=String(e.displayValue)),e.hasDisplayValue!=null&&(t.hasDisplayValue=!!e.hasDisplayValue),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.css=[]),t.defaults&&(o.displayValue="",o.hasDisplayValue=!1),e.css&&e.css.length){o.css=[];for(let d=0;d<e.css.length;++d)o.css[d]=$root.CSSStyle.toObject(e.css[d],t)}return e.displayValue!=null&&e.hasOwnProperty("displayValue")&&(o.displayValue=e.displayValue),e.hasDisplayValue!=null&&e.hasOwnProperty("hasDisplayValue")&&(o.hasDisplayValue=e.hasDisplayValue),o},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+"/CellStyle"},n})();$root.CellStyleArray=(()=>{function n(i){if(this.styles=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.styles=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.styles!=null&&e.styles.length)for(let o=0;o<e.styles.length;++o)$root.CellStyle.encode(e.styles[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CellStyleArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.styles&&p.styles.length||(p.styles=[]),p.styles.push($root.CellStyle.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CellStyleArray)return e;let t=new $root.CellStyleArray;if(e.styles){if(!Array.isArray(e.styles))throw TypeError(".CellStyleArray.styles: array expected");t.styles=[];for(let o=0;o<e.styles.length;++o){if(typeof e.styles[o]!="object")throw TypeError(".CellStyleArray.styles: object expected");t.styles[o]=$root.CellStyle.fromObject(e.styles[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.styles=[]),e.styles&&e.styles.length){o.styles=[];for(let d=0;d<e.styles.length;++d)o.styles[d]=$root.CellStyle.toObject(e.styles[d],t)}return o},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+"/CellStyleArray"},n})();$root.AnyArray=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.strings=null,n.prototype.doubles=null,n.prototype.int64s=null,n.prototype.datetimes=null,n.prototype.timedeltas=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["strings","doubles","int64s","datetimes","timedeltas"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.strings!=null&&Object.hasOwnProperty.call(t,"strings")&&$root.StringArray.encode(t.strings,o.uint32(10).fork()).ldelim(),t.doubles!=null&&Object.hasOwnProperty.call(t,"doubles")&&$root.DoubleArray.encode(t.doubles,o.uint32(18).fork()).ldelim(),t.int64s!=null&&Object.hasOwnProperty.call(t,"int64s")&&$root.Int64Array.encode(t.int64s,o.uint32(26).fork()).ldelim(),t.datetimes!=null&&Object.hasOwnProperty.call(t,"datetimes")&&$root.StringArray.encode(t.datetimes,o.uint32(34).fork()).ldelim(),t.timedeltas!=null&&Object.hasOwnProperty.call(t,"timedeltas")&&$root.Int64Array.encode(t.timedeltas,o.uint32(42).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.AnyArray;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.strings=$root.StringArray.decode(t,t.uint32());break}case 2:{h.doubles=$root.DoubleArray.decode(t,t.uint32());break}case 3:{h.int64s=$root.Int64Array.decode(t,t.uint32());break}case 4:{h.datetimes=$root.StringArray.decode(t,t.uint32());break}case 5:{h.timedeltas=$root.Int64Array.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.AnyArray)return t;let o=new $root.AnyArray;if(t.strings!=null){if(typeof t.strings!="object")throw TypeError(".AnyArray.strings: object expected");o.strings=$root.StringArray.fromObject(t.strings)}if(t.doubles!=null){if(typeof t.doubles!="object")throw TypeError(".AnyArray.doubles: object expected");o.doubles=$root.DoubleArray.fromObject(t.doubles)}if(t.int64s!=null){if(typeof t.int64s!="object")throw TypeError(".AnyArray.int64s: object expected");o.int64s=$root.Int64Array.fromObject(t.int64s)}if(t.datetimes!=null){if(typeof t.datetimes!="object")throw TypeError(".AnyArray.datetimes: object expected");o.datetimes=$root.StringArray.fromObject(t.datetimes)}if(t.timedeltas!=null){if(typeof t.timedeltas!="object")throw TypeError(".AnyArray.timedeltas: object expected");o.timedeltas=$root.Int64Array.fromObject(t.timedeltas)}return o},n.toObject=function(t,o){o||(o={});let d={};
18return t.strings!=null&&t.hasOwnProperty("strings")&&(d.strings=$root.StringArray.toObject(t.strings,o),o.oneofs&&(d.type="strings")),t.doubles!=null&&t.hasOwnProperty("doubles")&&(d.doubles=$root.DoubleArray.toObject(t.doubles,o),o.oneofs&&(d.type="doubles")),t.int64s!=null&&t.hasOwnProperty("int64s")&&(d.int64s=$root.Int64Array.toObject(t.int64s,o),o.oneofs&&(d.type="int64s")),t.datetimes!=null&&t.hasOwnProperty("datetimes")&&(d.datetimes=$root.StringArray.toObject(t.datetimes,o),o.oneofs&&(d.type="datetimes")),t.timedeltas!=null&&t.hasOwnProperty("timedeltas")&&(d.timedeltas=$root.Int64Array.toObject(t.timedeltas,o),o.oneofs&&(d.type="timedeltas")),d},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+"/AnyArray"},n})();$root.Table=(()=>{function n(i){if(this.cols=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.cols=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cols!=null&&e.cols.length)for(let o=0;o<e.cols.length;++o)$root.AnyArray.encode(e.cols[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Table;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cols&&p.cols.length||(p.cols=[]),p.cols.push($root.AnyArray.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Table)return e;let t=new $root.Table;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".Table.cols: array expected");t.cols=[];for(let o=0;o<e.cols.length;++o){if(typeof e.cols[o]!="object")throw TypeError(".Table.cols: object expected");t.cols[o]=$root.AnyArray.fromObject(e.cols[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.cols=[]),e.cols&&e.cols.length){o.cols=[];for(let d=0;d<e.cols.length;++d)o.cols[d]=$root.AnyArray.toObject(e.cols[d],t)}return o},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+"/Table"},n})();$root.TableStyle=(()=>{function n(i){if(this.cols=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.cols=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cols!=null&&e.cols.length)for(let o=0;o<e.cols.length;++o)$root.CellStyleArray.encode(e.cols[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.TableStyle;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cols&&p.cols.length||(p.cols=[]),p.cols.push($root.CellStyleArray.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.TableStyle)return e;let t=new $root.TableStyle;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".TableStyle.cols: array expected");t.cols=[];for(let o=0;o<e.cols.length;++o){if(typeof e.cols[o]!="object")throw TypeError(".TableStyle.cols: object expected");t.cols[o]=$root.CellStyleArray.fromObject(e.cols[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.cols=[]),e.cols&&e.cols.length){o.cols=[];for(let d=0;d<e.cols.length;++d)o.cols[d]=$root.CellStyleArray.toObject(e.cols[d],t)}return o},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+"/TableStyle"},n})();$root.DateInput=(()=>{function n(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return 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.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(74).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(106).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.isRange=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 10:{p.setValue=e.bool();break}case 11:{p.disabled=e.bool();break}case 12:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 13:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateInput)return e;let t=new $root.DateInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.isRange!=null&&(t.isRange=!!e.isRange),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults&&(o.id="",o.label="",o.min="",o.max="",o.isRange=!1,o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format=""),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},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(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return 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.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(66).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(112).bool(e.isRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateTimeInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.help=e.string();break}case 7:{p.formId=e.string();break}case 8:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 9:{p.setValue=e.bool();break}case 10:{p.disabled=e.bool();break}case 11:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 12:{p.format=e.string();break}case 13:{p.step=e.int64();break}case 14:{p.isRange=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateTimeInput)return e;let t=new $root.DateTimeInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateTimeInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateTimeInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateTimeInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),e.step!=null&&($util.Long?(t.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?t.step=parseInt(e.step,10):typeof e.step=="number"?t.step=e.step:typeof e.step=="object"&&(t.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&(t.isRange=!!e.isRange),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults){if(o.id="",o.label="",o.min="",o.max="",o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format="",$util.Long){let d=new $util.Long(0,0,!1);o.step=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.step=t.longs===String?"0":0;o.isRange=!1}if(e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?o.step=t.longs===String?String(e.step):e.step:o.step=t.longs===String?$util.Long.prototype.toString.call(e.step):t.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),o},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 e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.tooltip="",n.prototype.useContainerWidth=!1,n.prototype.id="",n.prototype.mapboxToken="",n.prototype.width=0,n.prototype.height=0,n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.tooltip!=null&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(42).string(e.id),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(50).string(e.mapboxToken),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(56).uint32(e.width),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(64).uint32(e.height),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let o=0;o<e.selectionMode.length;++o)t.int32(e.selectionMode[o]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(82).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeckGlJsonChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.json=e.string();break}case 2:{p.tooltip=e.string();break}case 4:{p.useContainerWidth=e.bool();brea
18k}case 5:{p.id=e.string();break}case 6:{p.mapboxToken=e.string();break}case 7:{p.width=e.uint32();break}case 8:{p.height=e.uint32();break}case 9:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.selectionMode.push(e.int32())}else p.selectionMode.push(e.int32());break}case 10:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeckGlJsonChart)return e;let t=new $root.DeckGlJsonChart;if(e.json!=null&&(t.json=String(e.json)),e.tooltip!=null&&(t.tooltip=String(e.tooltip)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.id!=null&&(t.id=String(e.id)),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.width!=null&&(t.width=e.width>>>0),e.height!=null&&(t.height=e.height>>>0),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)switch(e.selectionMode[o]){default:if(typeof e.selectionMode[o]=="number"){t.selectionMode[o]=e.selectionMode[o];break}case"SINGLE_OBJECT":case 0:t.selectionMode[o]=0;break;case"MULTI_OBJECT":case 1:t.selectionMode[o]=1;break}}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.selectionMode=[]),t.defaults&&(o.json="",o.tooltip="",o.useContainerWidth=!1,o.id="",o.mapboxToken="",o.width=0,o.height=0,o.formId=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json),e.tooltip!=null&&e.hasOwnProperty("tooltip")&&(o.tooltip=e.tooltip),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(o.mapboxToken=e.mapboxToken),e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=t.enums===String?$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]===void 0?e.selectionMode[d]:$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]:e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},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+"/DeckGlJsonChart"},n.SelectionMode=(function(){const i={},e=Object.create(i);return e[i[0]="SINGLE_OBJECT"]=0,e[i[1]="MULTI_OBJECT"]=1,e})(),n})();$root.Delta=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.newElement=null,n.prototype.addBlock=null,n.prototype.newTransient=null,n.prototype.addRows=null,n.prototype.arrowAddRows=null,n.prototype.fragmentId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newElement","addBlock","newTransient","addRows","arrowAddRows"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.newElement!=null&&Object.hasOwnProperty.call(t,"newElement")&&$root.Element.encode(t.newElement,o.uint32(26).fork()).ldelim(),t.addRows!=null&&Object.hasOwnProperty.call(t,"addRows")&&$root.NamedDataSet.encode(t.addRows,o.uint32(42).fork()).ldelim(),t.addBlock!=null&&Object.hasOwnProperty.call(t,"addBlock")&&$root.Block.encode(t.addBlock,o.uint32(50).fork()).ldelim(),t.arrowAddRows!=null&&Object.hasOwnProperty.call(t,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(t.arrowAddRows,o.uint32(58).fork()).ldelim(),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&o.uint32(66).string(t.fragmentId),t.newTransient!=null&&Object.hasOwnProperty.call(t,"newTransient")&&$root.Transient.encode(t.newTransient,o.uint32(74).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Delta;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 3:{h.newElement=$root.Element.decode(t,t.uint32());break}case 6:{h.addBlock=$root.Block.decode(t,t.uint32());break}case 9:{h.newTransient=$root.Transient.decode(t,t.uint32());break}case 5:{h.addRows=$root.NamedDataSet.decode(t,t.uint32());break}case 7:{h.arrowAddRows=$root.ArrowNamedDataSet.decode(t,t.uint32());break}case 8:{h.fragmentId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Delta)return t;let o=new $root.Delta;if(t.newElement!=null){if(typeof t.newElement!="object")throw TypeError(".Delta.newElement: object expected");o.newElement=$root.Element.fromObject(t.newElement)}if(t.addBlock!=null){if(typeof t.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");o.addBlock=$root.Block.fromObject(t.addBlock)}if(t.newTransient!=null){if(typeof t.newTransient!="object")throw TypeError(".Delta.newTransient: object expected");o.newTransient=$root.Transient.fromObject(t.newTransient)}if(t.addRows!=null){if(typeof t.addRows!="object")throw TypeError(".Delta.addRows: object expected");o.addRows=$root.NamedDataSet.fromObject(t.addRows)}if(t.arrowAddRows!=null){if(typeof t.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");o.arrowAddRows=$root.ArrowNamedDataSet.fromObject(t.arrowAddRows)}return t.fragmentId!=null&&(o.fragmentId=String(t.fragmentId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.fragmentId=""),t.newElement!=null&&t.hasOwnProperty("newElement")&&(d.newElement=$root.Element.toObject(t.newElement,o),o.oneofs&&(d.type="newElement")),t.addRows!=null&&t.hasOwnProperty("addRows")&&(
vendor: 5,258 bytes, line 18
18d.addRows=$root.NamedDataSet.toObject(t.addRows,o),o.oneofs&&(d.type="addRows")),t.addBlock!=null&&t.hasOwnProperty("addBlock")&&(d.addBlock=$root.Block.toObject(t.addBlock,o),o.oneofs&&(d.type="addBlock")),t.arrowAddRows!=null&&t.hasOwnProperty("arrowAddRows")&&(d.arrowAddRows=$root.ArrowNamedDataSet.toObject(t.arrowAddRows,o),o.oneofs&&(d.type="arrowAddRows")),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(d.fragmentId=t.fragmentId),t.newTransient!=null&&t.hasOwnProperty("newTransient")&&(d.newTransient=$root.Transient.toObject(t.newTransient,o),o.oneofs&&(d.type="newTransient")),d},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+"/Delta"},n})();const Element$1=$root.Element=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.heightConfig=null,n.prototype.widthConfig=null,n.prototype.textAlignmentConfig=null,n.prototype.alert=null,n.prototype.arrowDataFrame=null,n.prototype.arrowTable=null,n.prototype.arrowVegaLiteChart=null,n.prototype.audio=null,n.prototype.audioInput=null,n.prototype.balloons=null,n.prototype.bidiComponent=null,n.prototype.bokehChart=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.dataFrame=null,n.prototype.table=null,n.prototype.dateInput=null,n.prototype.deckGlJsonChart=null,n.prototype.docString=null,n.prototype.empty=null,n.prototype.exception=null,n.prototype.favicon=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.vegaLiteChart=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","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","audioInput","balloons","bidiComponent","bokehChart","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","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","vegaLiteChart","video","heading","code"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&$root.Text.encode(t.text,o.uint32(10).fork()).ldelim(),t.empty!=null&&Object.hasOwnProperty.call(t,"empty")&&$root.Empty.encode(t.empty,o.uint32(18).fork()).ldelim(),t.dataFrame!=null&&Object.hasOwnProperty.call(t,"dataFrame")&&$root.DataFrame.encode(t.dataFrame,o.uint32(26).fork()).ldelim(),t.progress!=null&&Object.hasOwnProperty.call(t,"progress")&&$root.Progress.encode(t.progress,o.uint32(42).fork()).ldelim(),t.imgs!=null&&Object.hasOwnProperty.call(t,"imgs")&&$root.ImageList.encode(t.imgs,o.uint32(50).fork()).ldelim(),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&$root.DocString.encode(t.docString,o.uint32(58).fork()).ldelim(),t.exception!=null&&Object.hasOwnProperty.call(t,"exception")&&$root.Exception.encode(t.exception,o.uint32(66).fork()).ldelim(),t.vegaLiteChart!=null&&Object.hasOwnProperty.call(t,"vegaLiteChart")&&$root.VegaLiteChart.encode(t.vegaLiteChart,o.uint32(82).fork()).ldelim(),t.table!=null&&Object.hasOwnProperty.call(t,"table")&&$root.DataFrame.encode(t.table,o.uint32(90).fork()).ldelim(),t.balloons!=null&&Object.hasOwnProperty.call(t,"balloons")&&$root.Balloons.encode(t.balloons,o.uint32(98).fork()).ldelim(),t.audio!=null&&Object.hasOwnProperty.call(t,"audio")&&$root.Audio.encode(t.audio,o.uint32(106).fork()).ldelim(),t.video!=null&&Object.hasOwnProperty.call(t,"video")&&$root.Video.encode(t.video,o.uint32(114).fork()).ldelim(),t.plotlyChart!=null&&Object.hasOwnProperty.call(t,"plotlyChart")&&$root.PlotlyC
18hart.encode(t.plotlyChart,o.uint32(130).fork()).ldelim(),t.bokehChart!=null&&Object.hasOwnProperty.call(t,"bokehChart")&&$root.BokehChart.encode(t.bokehChart,o.uint32(138).fork()).ldelim(),t.graphvizChart!=null&&Object.hasOwnProperty.call(t,"graphvizChart")&&$root.GraphVizChart.encode(t.graphvizChart,o.uint32(146).fork()).ldelim(),t.button!=null&&Object.hasOwnProperty.call(t,"button")&&$root.Button.encode(t.button,o.uint32(154).fork()).ldelim(),t.checkbox!=null&&Object.hasOwnProperty.call(t,"checkbox")&&$root.Checkbox.encode(t.checkbox,o.uint32(162).fork()).ldelim(),t.slider!=null&&Object.hasOwnProperty.call(t,"slider")&&$root.Slider.encode(t.slider,o.uint32(170).fork()).ldelim(),t.textArea!=null&&Object.hasOwnProperty.call(t,"textArea")&&$root.TextArea.encode(t.textArea,o.uint32(178).fork()).ldelim(),t.radio!=null&&Object.hasOwnProperty.call(t,"radio")&&$root.Radio.encode(t.radio,o.uint32(186).fork()).ldelim(),t.textInput!=null&&Object.hasOwnProperty.call(t,"textInput")&&$root.TextInput.encode(t.textInput,o.uint32(194).fork()).ldelim(),t.selectbox!=null&&Object.hasOwnProperty.call(t,"selectbox")&&$root.Selectbox.encode(t.selectbox,o.uint32(202).fork()).ldelim(),t.timeInput!=null&&Object.hasOwnProperty.call(t,"timeInput")&&$root.TimeInput.encode(t.timeInput,o.uint32(210).fork()).ldelim(),t.dateInput!=null&&Object.hasOwnProperty.call(t,"dateInput")&&$root.DateInput.encode(t.dateInput,o.uint32(218).fork()).ldelim(),t.multiselect!=null&&Object.hasOwnProperty.call(t,"multiselect")&&$root.MultiSelect.encode(t.multiselect,o.uint32(226).fork()).ldelim(),t.markdown!=null&&Object.hasOwnProperty.call(t,"markdown")&&$root.Markdown.encode(t.markdown,o.uint32(234).fork()).ldelim(),t.alert!=null&&Object.hasOwnProperty.call(t,"alert")&&$root.Alert.encode(t.alert,o.uint32(242).fork()).ldelim(),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&$root.Json.encode(t.json,o.uint32(250).fork()).ldelim(),t.numberInput!=null&&Object.hasOwnProperty.call(t,"numberInput")&&$root.NumberInput.encode(t.numberInput,o.uint32(258).fork()).ldelim(),t.fileUploader!=null&&Object.hasOwnProperty.call(t,"fileUploader")&&$root.FileUploader.encode(t.fileUploader,o.uint32(266).fork()).ldelim(),t.deckGlJsonChart!=null&&Object.hasOwnProperty.call(t,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(t.deckGlJsonChart,o.uint32(274).fork()).ldelim(),t.colorPicker!=null&&Object.hasOwnProperty.call(t,"colorPicker")&&$root.ColorPicker.encode(t.colorPicker,o.uint32(282).fork()).ldelim(),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&$root.Favicon.encode(t.favicon,o.uint32(290).fork()).ldelim(),t.componentInstance!=null&&Object.hasOwnProperty.call(t,"componentInstance")&&$root.ComponentInstance.encode(t.componentInstance,o.uint32(298).fork()).ldelim(),t.iframe!=null&&Object.hasOwnProperty.call(t,"iframe")&&$root.IFrame.encode(t.iframe,o.uint32(306).fork()).ldelim(),t.arrowTable!=null&&Object.hasOwnProperty.call(t,"arrowTable")&&$root.Arrow.encode(t.arrowTable,o.uint32(314).fork()).ldelim(),t.arrowDataFrame!=null&&Object.hasOwnProperty.call(t,"arrowDataFrame")&&$root.Arrow.encode(t.arrowDataFrame,o.uint32(322).fork()).ldelim(),t.arrowVegaLiteChart!=null&&Object.hasOwnProperty.call(t,"arrowVegaLiteChart")&&$root.ArrowVegaLiteChart.encode(t.arrowVegaLiteChart,o.uint32(330).fork()).ldelim(),t.metric!=null&&Object.hasOwnProperty.call(t,"metric")&&$root.Metric.encode(t.metric,o.uint32(338).fork()).ldelim(),t.downloadButton!=null&&Object.hasOwnProperty.call(t,"downloadButton")&&$root.DownloadButton.encode(t.downloadButton,o.uint32(346).fork()).ldelim(),t.spinner!=null&&Object.hasOwnProperty.call(t,"spinner")&&$root.Spinner.encode(t.spinner,o.uint32(354).fork()).ldelim(),t.cameraInput!=null&&Object.hasOwnProperty.call(t,"cameraInput")&&$root.CameraInput.encode(t.cameraInput,o.uint32(362).fork()).ldelim(),t.snow!=null&&Object.hasOwnProperty.call(t,"snow")&&$root.Snow.encode(t.snow,o.uint32(370).fork()).ldelim(),t.heading!=null&&Object.hasOwnProperty.call(t,"heading")&&$root.Heading.encode(t.heading,o.uint32(378).fork()).ldelim(),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&$root.Code.encode(t.code,o.uint32(386).fork()).ldelim(),t.chatInput!=null&&Object.hasOwnProperty.call(t,"chatInput")&&$root.ChatInput.encode(t.chatInput,o.uint32(394).fork()).ldelim(),t.toast!=null&&Object.hasOwnProperty.call(t,"toast")&&$root.Toast.encode(t.toast,o.uint32(402).fork()).ldelim(),t.linkButton!=null&&Object.hasOwnProperty.call(t,"linkButton")&&$root.LinkButton.encode(t.linkButton,o.uint32(410).fork()).ldelim(),t.skeleton!=null&&Object.hasOwnProperty.call(t,"skeleton")&&$root.Skeleton.encode(t.skeleton,o.uint32(418).fork()).ldelim(),t.pageLink!=null&&Object.hasOwnProperty.call(t,"pageLink")&&$root.PageLink.encode(t.pageLink,o.uint32(426).fork()).ldelim(),t.html!=null&&Object.hasOwnProperty.call(t,"html")&&$root.Html.encode(t.html,o.uint32(434).fork()).ldelim(),t.buttonGroup!=null&&Object.hasOwnProperty.call(t,"buttonGroup")&&$root.ButtonGroup.encode(t.buttonGroup,o.uint32(442).fork()).ldelim(),t.audio
18Input!=null&&Object.hasOwnProperty.call(t,"audioInput")&&$root.AudioInput.encode(t.audioInput,o.uint32(450).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(458).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(466).fork()).ldelim(),t.bidiComponent!=null&&Object.hasOwnProperty.call(t,"bidiComponent")&&$root.BidiComponent.encode(t.bidiComponent,o.uint32(474).fork()).ldelim(),t.space!=null&&Object.hasOwnProperty.call(t,"space")&&$root.Space.encode(t.space,o.uint32(482).fork()).ldelim(),t.textAlignmentConfig!=null&&Object.hasOwnProperty.call(t,"textAlignmentConfig")&&$root.streamlit.TextAlignmentConfig.encode(t.textAlignmentConfig,o.uint32(490).fork()).ldelim(),t.dateTimeInput!=null&&Object.hasOwnProperty.call(t,"dateTimeInput")&&$root.DateTimeInput.encode(t.dateTimeInput,o.uint32(498).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Element;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 57:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 58:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}case 61:{h.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.decode(t,t.uint32());break}case 30:{h.alert=$root.Alert.decode(t,t.uint32());break}case 40:{h.arrowDataFrame=$root.Arrow.decode(t,t.uint32());break}case 39:{h.arrowTable=$root.Arrow.decode(t,t.uint32());break}case 41:{h.arrowVegaLiteChart=$root.ArrowVegaLiteChart.decode(t,t.uint32());break}case 13:{h.audio=$root.Audio.decode(t,t.uint32());break}case 56:{h.audioInput=$root.AudioInput.decode(t,t.uint32());break}case 12:{h.balloons=$root.Balloons.decode(t,t.uint32());break}case 59:{h.bidiComponent=$root.BidiComponent.decode(t,t.uint32());break}case 17:{h.bokehChart=$root.BokehChart.decode(t,t.uint32());break}case 19:{h.button=$root.Button.decode(t,t.uint32());break}case 55:{h.buttonGroup=$root.ButtonGroup.decode(t,t.uint32());break}case 43:{h.downloadButton=$root.DownloadButton.decode(t,t.uint32());break}case 45:{h.cameraInput=$root.CameraInput.decode(t,t.uint32());break}case 49:{h.chatInput=$root.ChatInput.decode(t,t.uint32());break}case 20:{h.checkbox=$root.Checkbox.decode(t,t.uint32());break}case 35:{h.colorPicker=$root.ColorPicker.decode(t,t.uint32());break}case 37:{h.componentInstance=$root.ComponentInstance.decode(t,t.uint32());break}case 3:{h.dataFrame=$root.DataFrame.decode(t,t.uint32());break}case 11:{h.table=$root.DataFrame.decode(t,t.uint32());break}case 27:{h.dateInput=$root.DateInput.decode(t,t.uint32());break}case 34:{h.deckGlJsonChart=$root.DeckGlJsonChart.decode(t,t.uint32());break}case 7:{h.docString=$root.DocString.decode(t,t.uint32());break}case 2:{h.empty=$root.Empty.decode(t,t.uint32());break}case 8:{h.exception=$root.Exception.decode(t,t.uint32());break}case 36:{h.favicon=$root.Favicon.decode(t,t.uint32());break}case 33:{h.fileUploader=$root.FileUploader.decode(t,t.uint32());break}case 18:{h.graphvizChart=$root.GraphVizChart.decode(t,t.uint32());break}case 54:{h.html=$root.Html.decode(t,t.uint32());break}case 38:{h.iframe=$root.IFrame.decode(t,t.uint32());break}case 6:{h.imgs=$root.ImageList.decode(t,t.uint32());break}case 31:{h.json=$root.Json.decode(t,t.uint32());break}case 51:{h.linkButton=$root.LinkButton.decode(t,t.uint32());break}case 29:{h.markdown=$root.Markdown.decode(t,t.uint32());break}case 42:{h.metric=$root.Metric.decode(t,t.uint32());break}case 28:{h.multiselect=$root.MultiSelect.decode(t,t.uint32());break}case 32:{h.numberInput=$root.NumberInput.decode(t,t.uint32());break}case 53:{h.pageLink=$root.PageLink.decode(t,t.uint32());break}case 16:{h.plotlyChart=$root.PlotlyChart.decode(t,t.uint32());break}case 5:{h.progress=$root.Progress.decode(t,t.uint32());break}case 23:{h.radio=$root.Radio.decode(t,t.uint32());break}case 25:{h.selectbox=$root.Selectbox.decode(t,t.uint32());break}case 52:{h.skeleton=$root.Skeleton.decode(t,t.uint32());break}case 21:{h.slider=$root.Slider.decode(t,t.uint32());break}case 46:{h.snow=$root.Snow.decode(t,t.uint32());break}case 60:{h.space=$root.Space.decode(t,t.uint32());break}case 44:{h.spinner=$root.Spinner.decode(t,t.uint32());break}case 1:{h.text=$root.Text.decode(t,t.uint32());break}case 22:{h.textArea=$root.TextArea.decode(t,t.uint32());break}case 24:{h.textInput=$root.TextInput.decode(t,t.uint32());break}case 26:{h.timeInput=$root.TimeInput.decode(t,t.uint32());break}case 62:{h.dateTimeInput=$root.DateTimeInput.decode(t,t.uint32());break}case 50:{h.toast=$root.Toast.decode(t,t.uint32());break}case 10:{h.vegaLiteChart=$root.VegaLiteChart.decode(t,t.uint32());break}case 14:{h.video=$root.Video.decode(t,t.uint32());break}case 47:{h.heading=$root.Heading.decode(t,t.uint32());break}case 48:{h.code=$root.Code.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Element)return t;let o=new $root.Element;
18if(t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Element.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Element.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}if(t.textAlignmentConfig!=null){if(typeof t.textAlignmentConfig!="object")throw TypeError(".Element.textAlignmentConfig: object expected");o.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.fromObject(t.textAlignmentConfig)}if(t.alert!=null){if(typeof t.alert!="object")throw TypeError(".Element.alert: object expected");o.alert=$root.Alert.fromObject(t.alert)}if(t.arrowDataFrame!=null){if(typeof t.arrowDataFrame!="object")throw TypeError(".Element.arrowDataFrame: object expected");o.arrowDataFrame=$root.Arrow.fromObject(t.arrowDataFrame)}if(t.arrowTable!=null){if(typeof t.arrowTable!="object")throw TypeError(".Element.arrowTable: object expected");o.arrowTable=$root.Arrow.fromObject(t.arrowTable)}if(t.arrowVegaLiteChart!=null){if(typeof t.arrowVegaLiteChart!="object")throw TypeError(".Element.arrowVegaLiteChart: object expected");o.arrowVegaLiteChart=$root.ArrowVegaLiteChart.fromObject(t.arrowVegaLiteChart)}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".Element.audio: object expected");o.audio=$root.Audio.fromObject(t.audio)}if(t.audioInput!=null){if(typeof t.audioInput!="object")throw TypeError(".Element.audioInput: object expected");o.audioInput=$root.AudioInput.fromObject(t.audioInput)}if(t.balloons!=null){if(typeof t.balloons!="object")throw TypeError(".Element.balloons: object expected");o.balloons=$root.Balloons.fromObject(t.balloons)}if(t.bidiComponent!=null){if(typeof t.bidiComponent!="object")throw TypeError(".Element.bidiComponent: object expected");o.bidiComponent=$root.BidiComponent.fromObject(t.bidiComponent)}if(t.bokehChart!=null){if(typeof t.bokehChart!="object")throw TypeError(".Element.bokehChart: object expected");o.bokehChart=$root.BokehChart.fromObject(t.bokehChart)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".Element.button: object expected");o.button=$root.Button.fromObject(t.button)}if(t.buttonGroup!=null){if(typeof t.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");o.buttonGroup=$root.ButtonGroup.fromObject(t.buttonGroup)}if(t.downloadButton!=null){if(typeof t.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");o.downloadButton=$root.DownloadButton.fromObject(t.downloadButton)}if(t.cameraInput!=null){if(typeof t.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");o.cameraInput=$root.CameraInput.fromObject(t.cameraInput)}if(t.chatInput!=null){if(typeof t.chatInput!="object")throw TypeError(".Element.chatInput: object expected");o.chatInput=$root.ChatInput.fromObject(t.chatInput)}if(t.checkbox!=null){if(typeof t.checkbox!="object")throw TypeError(".Element.checkbox: object expected");o.checkbox=$root.Checkbox.fromObject(t.checkbox)}if(t.colorPicker!=null){if(typeof t.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");o.colorPicker=$root.ColorPicker.fromObject(t.colorPicker)}if(t.componentInstance!=null){if(typeof t.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");o.componentInstance=$root.ComponentInstance.fromObject(t.componentInstance)}if(t.dataFrame!=null){if(typeof t.dataFrame!="object")throw TypeError(".Element.dataFrame: object expected");o.dataFrame=$root.DataFrame.fromObject(t.dataFrame)}if(t.table!=null){if(typeof t.table!="object")throw TypeError(".Element.table: object expected");o.table=$root.DataFrame.fromObject(t.table)}if(t.dateInput!=null){if(typeof t.dateInput!="object")throw TypeError(".Element.dateInput: object expected");o.dateInput=$root.DateInput.fromObject(t.dateInput)}if(t.deckGlJsonChart!=null){if(typeof t.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");o.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(t.deckGlJsonChart)}if(t.docString!=null){if(typeof t.docString!="object")throw TypeError(".Element.docString: object expected");o.docString=$root.DocString.fromObject(t.docString)}if(t.empty!=null){if(typeof t.empty!="object")throw TypeError(".Element.empty: object expected");o.empty=$root.Empty.fromObject(t.empty)}if(t.exception!=null){if(typeof t.exception!="object")throw TypeError(".Element.exception: object expected");o.exception=$root.Exception.fromObject(t.exception)}if(t.favicon!=null){if(typeof t.favicon!="object")throw TypeError(".Element.favicon: object expected");o.favicon=$root.Favicon.fromObject(t.favicon)}if(t.fileUploader!=null){if(typeof t.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");o.fileUploader=$root.FileUploader.fromObject(t.fileUploader)}if(t.graphvizChart!=null){if(typeof t.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");o.graphvizChart=$root.GraphVizChart.fromObject(t.graphvizChart)}if(t.html!=null){if(typeof t.html!="object")throw TypeError(".Element.html: object expected");o.html=$root.Html.fromObject(t.html)}if(t.iframe!=null){if(typeof t.iframe!="object")throw TypeError(".Element.iframe: object expected");o.iframe=$root.IFrame.fromObject(t.iframe)}if(t.imgs!=null){if(typeof t.imgs!="object")throw TypeError(".Element.imgs: object expected");o.imgs=$root.ImageList.fromObject(t.imgs)}if(t.json!=null){if(typeof t.json!="object")throw TypeError(".Element.json: object expected");o.json=$root.Json.fromObject(t.json)}if(t.linkButton!=null){if(typeof t.linkButton!="object")throw TypeError(".Element.linkButton: object expected");o.linkButton=$root.LinkButton.fromObject(t.linkButton)}if(t.markdown!=null){if(typeof t.markdown!="object")throw TypeError(".Element.markdown: object expected");o.markdown=$root.Markdown.fromObject(t.markdown)}if(t.metric!=null){if(typeof t.metric!="object")throw TypeError(".Element.metric: object expected");o.metric=$root.Metric.fromObject(t.metric)}if(t.multiselect!=null){if(typeof t.multiselect!="object")throw TypeError(".Element.multiselect: object expected");o.multiselect=$root.MultiSelect.fromObject(t.multiselect)}if(t.numberInput!=null){if(typeof t.numberInput!="object")throw TypeError(".Element.numberInput: object expected");o.numberInput=$root.NumberInput.fromObject(t.numberInput)}if(t.pageLink!=null){if(typeof t.pageLink!="object")throw TypeError(".Element.pageLink: object expected");o.pageLink=$root.PageLink.fromObject(t.pageLink)}if(t.plotlyChart!=null){if(typeof t.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");
18o.plotlyChart=$root.PlotlyChart.fromObject(t.plotlyChart)}if(t.progress!=null){if(typeof t.progress!="object")throw TypeError(".Element.progress: object expected");o.progress=$root.Progress.fromObject(t.progress)}if(t.radio!=null){if(typeof t.radio!="object")throw TypeError(".Element.radio: object expected");o.radio=$root.Radio.fromObject(t.radio)}if(t.selectbox!=null){if(typeof t.selectbox!="object")throw TypeError(".Element.selectbox: object expected");o.selectbox=$root.Selectbox.fromObject(t.selectbox)}if(t.skeleton!=null){if(typeof t.skeleton!="object")throw TypeError(".Element.skeleton: object expected");o.skeleton=$root.Skeleton.fromObject(t.skeleton)}if(t.slider!=null){if(typeof t.slider!="object")throw TypeError(".Element.slider: object expected");o.slider=$root.Slider.fromObject(t.slider)}if(t.snow!=null){if(typeof t.snow!="object")throw TypeError(".Element.snow: object expected");o.snow=$root.Snow.fromObject(t.snow)}if(t.space!=null){if(typeof t.space!="object")throw TypeError(".Element.space: object expected");o.space=$root.Space.fromObject(t.space)}if(t.spinner!=null){if(typeof t.spinner!="object")throw TypeError(".Element.spinner: object expected");o.spinner=$root.Spinner.fromObject(t.spinner)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".Element.text: object expected");o.text=$root.Text.fromObject(t.text)}if(t.textArea!=null){if(typeof t.textArea!="object")throw TypeError(".Element.textArea: object expected");o.textArea=$root.TextArea.fromObject(t.textArea)}if(t.textInput!=null){if(typeof t.textInput!="object")throw TypeError(".Element.textInput: object expected");o.textInput=$root.TextInput.fromObject(t.textInput)}if(t.timeInput!=null){if(typeof t.timeInput!="object")throw TypeError(".Element.timeInput: object expected");o.timeInput=$root.TimeInput.fromObject(t.timeInput)}if(t.dateTimeInput!=null){if(typeof t.dateTimeInput!="object")throw TypeError(".Element.dateTimeInput: object expected");o.dateTimeInput=$root.DateTimeInput.fromObject(t.dateTimeInput)}if(t.toast!=null){if(typeof t.toast!="object")throw TypeError(".Element.toast: object expected");o.toast=$root.Toast.fromObject(t.toast)}if(t.vegaLiteChart!=null){if(typeof t.vegaLiteChart!="object")throw TypeError(".Element.vegaLiteChart: object expected");o.vegaLiteChart=$root.VegaLiteChart.fromObject(t.vegaLiteChart)}if(t.video!=null){if(typeof t.video!="object")throw TypeError(".Element.video: object expected");o.video=$root.Video.fromObject(t.video)}if(t.heading!=null){if(typeof t.heading!="object")throw TypeError(".Element.heading: object expected");o.heading=$root.Heading.fromObject(t.heading)}if(t.code!=null){if(typeof t.code!="object")throw TypeError(".Element.code: object expected");o.code=$root.Code.fromObject(t.code)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.text!=null&&t.hasOwnProperty("text")&&(d.text=$root.Text.toObject(t.text,o),o.oneofs&&(d.type="text")),t.empty!=null&&t.hasOwnProperty("empty")&&(d.empty=$root.Empty.toObject(t.empty,o),o.oneofs&&(d.type="empty")),t.dataFrame!=null&&t.hasOwnProperty("dataFrame")&&(d.dataFrame=$root.DataFrame.toObject(t.dataFrame,o),o.oneofs&&(d.type="dataFrame")),t.progress!=null&&t.hasOwnProperty("progress")&&(d.progress=$root.Progress.toObject(t.progress,o),o.oneofs&&(d.type="progress")),t.imgs!=null&&t.hasOwnProperty("imgs")&&(d.imgs=$root.ImageList.toObject(t.imgs,o),o.oneofs&&(d.type="imgs")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=$root.DocString.toObject(t.docString,o),o.oneofs&&(d.type="docString")),t.exception!=null&&t.hasOwnProperty("exception")&&(d.exception=$root.Exception.toObject(t.exception,o),o.oneofs&&(d.type="exception")),t.vegaLiteChart!=null&&t.hasOwnProperty("vegaLiteChart")&&(d.vegaLiteChart=$root.VegaLiteChart.toObject(t.vegaLiteChart,o),o.oneofs&&(d.type="vegaLiteChart")),t.table!=null&&t.hasOwnProperty("table")&&(d.table=$root.DataFrame.toObject(t.table,o),o.oneofs&&(d.type="table")),t.balloons!=null&&t.hasOwnProperty("balloons")&&(d.balloons=$root.Balloons.toObject(t.balloons,o),o.oneofs&&(d.type="balloons")),t.audio!=null&&t.hasOwnProperty("audio")&&(d.audio=$root.Audio.toObject(t.audio,o),o.oneofs&&(d.type="audio")),t.video!=null&&t.hasOwnProperty("video")&&(
18d.video=$root.Video.toObject(t.video,o),o.oneofs&&(d.type="video")),t.plotlyChart!=null&&t.hasOwnProperty("plotlyChart")&&(d.plotlyChart=$root.PlotlyChart.toObject(t.plotlyChart,o),o.oneofs&&(d.type="plotlyChart")),t.bokehChart!=null&&t.hasOwnProperty("bokehChart")&&(d.bokehChart=$root.BokehChart.toObject(t.bokehChart,o),o.oneofs&&(d.type="bokehChart")),t.graphvizChart!=null&&t.hasOwnProperty("graphvizChart")&&(d.graphvizChart=$root.GraphVizChart.toObject(t.graphvizChart,o),o.oneofs&&(d.type="graphvizChart")),t.button!=null&&t.hasOwnProperty("button")&&(d.button=$root.Button.toObject(t.button,o),o.oneofs&&(d.type="button")),t.checkbox!=null&&t.hasOwnProperty("checkbox")&&(d.checkbox=$root.Checkbox.toObject(t.checkbox,o),o.oneofs&&(d.type="checkbox")),t.slider!=null&&t.hasOwnProperty("slider")&&(d.slider=$root.Slider.toObject(t.slider,o),o.oneofs&&(d.type="slider")),t.textArea!=null&&t.hasOwnProperty("textArea")&&(d.textArea=$root.TextArea.toObject(t.textArea,o),o.oneofs&&(d.type="textArea")),t.radio!=null&&t.hasOwnProperty("radio")&&(d.radio=$root.Radio.toObject(t.radio,o),o.oneofs&&(d.type="radio")),t.textInput!=null&&t.hasOwnProperty("textInput")&&(d.textInput=$root.TextInput.toObject(t.textInput,o),o.oneofs&&(d.type="textInput")),t.selectbox!=null&&t.hasOwnProperty("selectbox")&&(d.selectbox=$root.Selectbox.toObject(t.selectbox,o),o.oneofs&&(d.type="selectbox")),t.timeInput!=null&&t.hasOwnProperty("timeInput")&&(d.timeInput=$root.TimeInput.toObject(t.timeInput,o),o.oneofs&&(d.type="timeInput")),t.dateInput!=null&&t.hasOwnProperty("dateInput")&&(d.dateInput=$root.DateInput.toObject(t.dateInput,o),o.oneofs&&(d.type="dateInput")),t.multiselect!=null&&t.hasOwnProperty("multiselect")&&(d.multiselect=$root.MultiSelect.toObject(t.multiselect,o),o.oneofs&&(d.type="multiselect")),t.markdown!=null&&t.hasOwnProperty("markdown")&&(d.markdown=$root.Markdown.toObject(t.markdown,o),o.oneofs&&(d.type="markdown")),t.alert!=null&&t.hasOwnProperty("alert")&&(d.alert=$root.Alert.toObject(t.alert,o),o.oneofs&&(d.type="alert")),t.json!=null&&t.hasOwnProperty("json")&&(d.json=$root.Json.toObject(t.json,o),o.oneofs&&(d.type="json")),t.numberInput!=null&&t.hasOwnProperty("numberInput")&&(d.numberInput=$root.NumberInput.toObject(t.numberInput,o),o.oneofs&&(d.type="numberInput")),t.fileUploader!=null&&t.hasOwnProperty("fileUploader")&&(d.fileUploader=$root.FileUploader.toObject(t.fileUploader,o),o.oneofs&&(d.type="fileUploader")),t.deckGlJsonChart!=null&&t.hasOwnProperty("deckGlJsonChart")&&(d.deckGlJsonChart=$root.DeckGlJsonChart.toObject(t.deckGlJsonChart,o),o.oneofs&&(d.type="deckGlJsonChart")),t.colorPicker!=null&&t.hasOwnProperty("colorPicker")&&(d.colorPicker=$root.ColorPicker.toObject(t.colorPicker,o),o.oneofs&&(d.type="colorPicker")),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=$root.Favicon.toObject(t.favicon,o),o.oneofs&&(d.type="favicon")),t.componentInstance!=null&&t.hasOwnProperty("componentInstance")&&(d.componentInstance=$root.ComponentInstance.toObject(t.componentInstance,o),o.oneofs&&(d.type="componentInstance")),t.iframe!=null&&t.hasOwnProperty("iframe")&&(d.iframe=$root.IFrame.toObject(t.iframe,o),o.oneofs&&(d.type="iframe")),t.arrowTable!=null&&t.hasOwnProperty("arrowTable")&&(d.arrowTable=$root.Arrow.toObject(t.arrowTable,o),o.oneofs&&(d.type="arrowTable")),t.arrowDataFrame!=null&&t.hasOwnProperty("arrowDataFrame")&&(d.arrowDataFrame=$root.Arrow.toObject(t.arrowDataFrame,o),o.oneofs&&(d.type="arrowDataFrame")),t.arrowVegaLiteChart!=null&&t.hasOwnProperty("arrowVegaLiteChart")&&(d.arrowVegaLiteChart=$root.ArrowVegaLiteChart.toObject(t.arrowVegaLiteChart,o),o.oneofs&&(d.type="arrowVegaLiteChart")),t.metric!=null&&t.hasOwnProperty("metric")&&(d.metric=$root.Metric.toObject(t.metric,o),o.oneofs&&(d.type="metric")),t.downloadButton!=null&&t.hasOwnProperty("downloadButton")&&(d.downloadButton=$root.DownloadButton.toObject(t.downloadButton,o),o.oneofs&&(d.type="downloadButton")),t.spinner!=null&&t.hasOwnProperty("spinner")&&(d.spinner=$root.Spinner.toObject(t.spinner,o),o.oneofs&&(d.type="spinner")),t.cameraInput!=null&&t.hasOwnProperty("cameraInput")&&(d.cameraInput=$root.CameraInput.toObject(t.cameraInput,o),o.oneofs&&(d.type="cameraInput")),t.snow!=null&&t.hasOwnProperty("snow")&&(d.snow=$root.Snow.toObject(t.snow,o),o.oneofs&&(d.type="snow")),t.heading!=null&&t.hasOwnProperty("heading")&&(d.heading=$root.Heading.toObject(t.heading,o),o.oneofs&&(d.type="heading")),t.code!=null&&t.hasOwnProperty("code")&&(d.code=$root.Code.toObject(t.code,o),o.oneofs&&(d.type="code")),t.chatInput!=null&&t.hasOwnProperty("chatInput")&&(d.chatInput=$root.ChatInput.toObject(t.chatInput,o),o.oneofs&&(d.type="chatInput")),t.toast!=null&&t.hasOwnProperty("toast")&&(d.toast=$root.Toast.toObject(t.toast,o),o.oneofs&&(d.type="toast")),t.linkButton!=null&&t.hasOwnProperty("linkButton")&&(d.linkButton=$root.LinkButton.toObject(t.linkButton,o),o.oneofs&&(d.type="linkButton")),t.skeleton!=null&&t.hasOwnProperty("skeleton")&&(d.skeleton=$root.Skeleton.toObject(t.skeleton,o),o.oneofs&&(d.type="skeleton")),t.pageLink!=null&&t.hasOwnProperty("pageLink")&&(d.pageLink=$root.PageLink.toObject(t.pageLink,o),o.oneofs&&(d.type="pageLink")),t.html!=null&&t.hasOwnProperty("html")&&(d.html=$root.Html.toObject(t.html,o),o.oneofs&&(d.type="html")),t.buttonGroup!=null&&t.hasOwnProperty("buttonGroup")&&(d.buttonGroup=$root.ButtonGroup.toObject(t.buttonGroup,o),o.oneofs&&(d.type="buttonGroup")),t.audio
18Input!=null&&t.hasOwnProperty("audioInput")&&(d.audioInput=$root.AudioInput.toObject(t.audioInput,o),o.oneofs&&(d.type="audioInput")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),t.bidiComponent!=null&&t.hasOwnProperty("bidiComponent")&&(d.bidiComponent=$root.BidiComponent.toObject(t.bidiComponent,o),o.oneofs&&(d.type="bidiComponent")),t.space!=null&&t.hasOwnProperty("space")&&(d.space=$root.Space.toObject(t.space,o),o.oneofs&&(d.type="space")),t.textAlignmentConfig!=null&&t.hasOwnProperty("textAlignmentConfig")&&(d.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.toObject(t.textAlignmentConfig,o),o.oneofs&&(d._textAlignmentConfig="textAlignmentConfig")),t.dateTimeInput!=null&&t.hasOwnProperty("dateTimeInput")&&(d.dateTimeInput=$root.DateTimeInput.toObject(t.dateTimeInput,o),o.oneofs&&(d.type="dateTimeInput")),d},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+"/Element"},n})();$root.DownloadButton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).bool(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.url
18!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(64).bool(t.useContainerWidth),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(74).string(t.type),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(82).string(t.icon),t.ignoreRerun!=null&&Object.hasOwnProperty.call(t,"ignoreRerun")&&o.uint32(88).bool(t.ignoreRerun),t.deferredFileId!=null&&Object.hasOwnProperty.call(t,"deferredFileId")&&o.uint32(98).string(t.deferredFileId),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&o.uint32(106).string(t.shortcut),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(112).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.DownloadButton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.bool();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.url=t.string();break}case 7:{h.disabled=t.bool();break}case 8:{h.useContainerWidth=t.bool();break}case 9:{h.type=t.string();break}case 10:{h.icon=t.string();break}case 11:{h.ignoreRerun=t.bool();break}case 12:{h.deferredFileId=t.string();break}case 13:{h.shortcut=t.string();break}case 14:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.DownloadButton)return t;let o=new $root.DownloadButton;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=!!t.default),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.url!=null&&(o.url=String(t.url)),t.disabled!=null&&(o.disabled=!!t.disabled),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.type!=null&&(o.type=String(t.type)),t.icon!=null&&(o.icon=String(t.icon)),t.ignoreRerun!=null&&(o.ignoreRerun=!!t.ignoreRerun),t.deferredFileId!=null&&(o.deferredFileId=String(t.deferredFileId)),t.shortcut!=null&&(o.shortcut=String(t.shortcut)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,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),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.url
18!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.ignoreRerun!=null&&t.hasOwnProperty("ignoreRerun")&&(d.ignoreRerun=t.ignoreRerun),t.deferredFileId!=null&&t.hasOwnProperty("deferredFileId")&&(d.deferredFileId=t.deferredFileId,o.oneofs&&(d._deferredFileId="deferredFileId")),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(d.shortcut=t.shortcut),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},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+"/DownloadButton"},n})();$root.DocString=(()=>{function n(i){if(this.members=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.docString="",n.prototype.type="",n.prototype.name="",n.prototype.value="",n.prototype.members=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.docString!=null&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(50).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let o=0;o<e.members.length;++o)$root.Member.encode(e.members[o],t.uint32(66).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DocString;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.docString=e.string();break}case 4:{p.type=e.string();break}case 6:{p.name=e.string();break}case 7:{p.value=e.string();break}case 8:{p.members&&p.members.length||(p.members=[]),p.members.push($root.Member.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DocString)return e;let t=new $root.DocString;if(e.docString!=null&&(t.docString=String(e.docString)),e.type!=null&&(t.type=String(e.type)),e.name!=null&&(t.name=String(e.name)),e.value!=null&&(t.value=String(e.value)),e.members){if(!Array.isArray(e.members))throw TypeError(".DocString.members: array expected");t.members=[];for(let o=0;o<e.members.length;++o){if(typeof e.members[o]!="object")throw TypeError(".DocString.members: object expected");t.members[o]=$root.Member.fromObject(e.members[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.members=[]),t.defaults&&(o.docString="",o.type="",o.name="",o.value=""),e.docString!=null&&e.hasOwnProperty("docString")&&(o.docString=e.docString),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.members&&e.members.length){o.members=[];for(let d=0;d<e.members.length;++d)o.members[d]=$root.Member.toObject(e.members[d],t)}return o},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+"/DocString"},n})();$root.Member=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(18).string(t.type),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(26).string(t.value),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&o.uint32(34).string(t.docString),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Member;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.string();break}case 3:{h.value=t.string();break}case 4:{h.docString=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Member)return t;let o=new $root.Member;return t.name!=null&&(o.name=String(t.name)),t.type!=null&&(o.type=String(t.type)),t.value!=null&&(o.value=String(t.value)),t.docString!=null&&(o.docString=String(t.docString)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.type=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d.contents="value")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=t.docString,o.oneofs&&(d.contents="docString")),d},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+"/Member"},n})();$root.Empty=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Empty;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Empty?e:new $root.Empty},n.toObject=function(){return{}},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+"/Empty"},n})();$root.Exception=(()=>{function n(i){if(this.stackTrace=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let o=0;o<e.stackTrace.length;++o)t.uint32(26).string(e.stackTrace[o]);return e.messageIsMarkdown!=null&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Exception;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.type=e.string();break}case 2:{p.message=e.string();break}case 4:{p.messageIsMarkdown=e.bool();break}case 3:{p.stackTrace&&p.stackTrace.length||(p.stackTrace=[]),p.stackTrace.push(e.string());break}case 5:{p.isWarning=e.bool();break}case 6:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Exception)return e;let t=new $root.Exception;if(e.type!=null&&(t.type=String(e.type)),e.message!=null&&(t.message=String(e.message)),e.messageIsMarkdown!=null&&(t.messageIsMarkdown=!!e.messageIsMarkdown),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let o=0;o<e.stackTrace.length;++o)t.stackTrace[o]=String(e.stackTrace[o])}if(e.isWarning!=null&&(t.isWarning=!!e.isWarning),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Exception.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.stackTrace=[]),t.defaults&&(o.type="",o.message="",o.messageIsMarkdown=!1,o.isWarning=!1,o.widthConfig=null),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),e.stackTrace&&e.stackTrace.length){o.stackTrace=[];for(let d=0;d<e.stackTrace.length;++d)o.stackTrace[d]=e.stackTrace[d]}return e.messageIsMarkdown!=null&&e.hasOwnProperty("messageIsMarkdown")&&(o.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&e.hasOwnProperty("isWarning")&&(o.isWarning=e.isWarning),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},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+"/Exception"},n})();$root.Favicon=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Favicon;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Favicon)return e;let t=new $root.Favicon;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},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+"/Favicon"},n})();$root.FileUploader=(()=>
18{function n(i){if(this.type=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let o=0;o<e.type.length;++o)t.uint32(26).string(e.type[o]);return e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.acceptDirectory!=null&&Object.hasOwnProperty.call(e,"acceptDirectory")&&t.uint32(88).bool(e.acceptDirectory),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploader;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.type&&p.type.length||(p.type=[]),p.type.push(e.string());break}case 4:{p.maxUploadSizeMb=e.int32();break}case 6:{p.multipleFiles=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.disabled=e.bool();break}case 10:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 11:{p.acceptDirectory=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploader)return e;let t=new $root.FileUploader;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let o=0;o<e.type.length;++o)t.type[o]=String(e.type[o])}if(e.maxUploadSizeMb!=null&&(t.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&(t.multipleFiles=!!e.multipleFiles),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}return e.acceptDirectory!=null&&(t.acceptDirectory=!!e.acceptDirectory),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.type=[]),t.defaults&&(o.id="",o.label="",o.maxUploadSizeMb=0,o.multipleFiles=!1,o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null,o.acceptDirectory=!1),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.type&&e.type.length){o.type=[];for(let d=0;d<e.type.length;++d)o.type[d]=e.type[d]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty("maxUploadSizeMb")&&(o.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&e.hasOwnProperty("multipleFiles")&&(o.multipleFiles=e.multipleFiles),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.acceptDirectory!=null&&e.hasOwnProperty("acceptDirectory")&&(o.acceptDirectory=e.acceptDirectory),o},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+"/FileUploader"},n})();$root.GraphVizChart=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.useContainerWidth=!1,n.prototype.elementId="",n.prototype.engine="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),e.engine!=null&&Object.hasOwnProperty.call(e,"engine")&&t.uint32(50).string(e.engine),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GraphVizChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 4:{p.useContainerWidth=e.bool();break}case 5:{p.elementId=e.string();break}case 6:{p.engine=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GraphVizChart)return e;let t=new $root.GraphVizChart;return e.spec!=null&&(t.spec=String(e.spec)),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.elementId!=null&&(t.elementId=String(e.elementId)),e.engine!=null&&(t.engine=String(e.engine)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.spec="",o.useContainerWidth=!1,o.elementId="",o.engine=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.elementId!=null&&e.hasOwnProperty("elementId")&&(o.elementId=e.elementId),e.engine!=null&&e.hasOwnProperty("engine")&&(o.engine=e.engine),o},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+"/GraphVizChart"},n})();$root.Html=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.unsafeAllowJavascript=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(e,"unsafeAllowJavascript")&&t.uint32(16).bool(e.unsafeAllowJavascript),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Html;
18for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.unsafeAllowJavascript=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Html)return e;let t=new $root.Html;return e.body!=null&&(t.body=String(e.body)),e.unsafeAllowJavascript!=null&&(t.unsafeAllowJavascript=!!e.unsafeAllowJavascript),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.unsafeAllowJavascript=!1),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.unsafeAllowJavascript!=null&&e.hasOwnProperty("unsafeAllowJavascript")&&(o.unsafeAllowJavascript=e.unsafeAllowJavascript),o},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+"/Html"},n})();$root.IFrame=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.src=null,n.prototype.srcdoc=null,n.prototype.width=0,n.prototype.hasWidth=!1,n.prototype.height=0,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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.src!=null&&Object.hasOwnProperty.call(t,"src")&&o.uint32(10).string(t.src),t.srcdoc!=null&&Object.hasOwnProperty.call(t,"srcdoc")&&o.uint32(18).string(t.srcdoc),t.width!=null&&Object.hasOwnProperty.call(t,"width")&&o.uint32(29).float(t.width),t.hasWidth!=null&&Object.hasOwnProperty.call(t,"hasWidth")&&o.uint32(32).bool(t.hasWidth),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(45).float(t.height),t.scrolling!=null&&Object.hasOwnProperty.call(t,"scrolling")&&o.uint32(56).bool(t.scrolling),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(64).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.IFrame;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.src=t.string();break}case 2:{h.srcdoc=t.string();break}case 3:{h.width=t.float();break}case 4:{h.hasWidth=t.bool();break}case 5:{h.height=t.float();break}case 7:{h.scrolling=t.bool();break}case 8:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.IFrame)return t;let o=new $root.IFrame;return t.src!=null&&(o.src=String(t.src)),t.srcdoc!=null&&(o.srcdoc=String(t.srcdoc)),t.width!=null&&(o.width=Number(t.width)),t.hasWidth!=null&&(o.hasWidth=!!t.hasWidth),t.height!=null&&(o.height=Number(t.height)),t.scrolling!=null&&(o.scrolling=!!t.scrolling),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.width=0,d.hasWidth=!1,d.height=0,d.scrolling=!1),t.src!=null&&t.hasOwnProperty("src")&&(d.src=t.src,o.oneofs&&(d.type="src")),t.srcdoc!=null&&t.hasOwnProperty("srcdoc")&&(d.srcdoc=t.srcdoc,o.oneofs&&(d.type="srcdoc")),t.width!=null&&t.hasOwnProperty("width")&&(d.width=o.json&&!isFinite(t.width)?String(t.width):t.width),t.hasWidth!=null&&t.hasOwnProperty("hasWidth")&&(d.hasWidth=t.hasWidth),t.height!=null&&t.hasOwnProperty("height")&&(d.height=o.json&&!isFinite(t.height)?String(t.height):t.height),t.scrolling!=null&&t.hasOwnProperty("scrolling")&&(d.scrolling=t.scrolling),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},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+"/IFrame"},n})();$root.Image=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.caption="",n.prototype.markup="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),e.markup!=null&&Object.hasOwnProperty.call(e,"markup")&&t.uint32(34).string(e.markup),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Image;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.url=e.string();break}case 2:{p.caption=e.string();break}case 4:{p.markup=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Image)return e;let t=new $root.Image;return e.url!=null&&(t.url=String(e.url)),e.caption!=null&&(t.caption=String(e.caption)),e.markup!=null&&(t.markup=String(e.markup)),t},n.toObject=function(e,t){t||(t={});let o={};
18return t.defaults&&(o.caption="",o.url="",o.markup=""),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.markup!=null&&e.hasOwnProperty("markup")&&(o.markup=e.markup),o},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+"/Image"},n})();$root.ImageList=(()=>{function n(i){if(this.imgs=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.imgs=$util.emptyArray,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.imgs!=null&&e.imgs.length)for(let o=0;o<e.imgs.length;++o)$root.Image.encode(e.imgs[o],t.uint32(10).fork()).ldelim();return e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(16).int32(e.width),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ImageList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.imgs&&p.imgs.length||(p.imgs=[]),p.imgs.push($root.Image.decode(e,e.uint32()));break}case 2:{p.width=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ImageList)return e;let t=new $root.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let o=0;o<e.imgs.length;++o){if(typeof e.imgs[o]!="object")throw TypeError(".ImageList.imgs: object expected");t.imgs[o]=$root.Image.fromObject(e.imgs[o])}}return e.width!=null&&(t.width=e.width|0),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.imgs=[]),t.defaults&&(o.width=0),e.imgs&&e.imgs.length){o.imgs=[];for(let d=0;d<e.imgs.length;++d)o.imgs[d]=$root.Image.toObject(e.imgs[d],t)}return e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),o},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+"/ImageList"},n})();$root.Json=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.expanded!=null&&Object.hasOwnProperty.call(t,"expanded")&&o.uint32(16).bool(t.expanded),t.maxExpandDepth!=null&&Object.hasOwnProperty.call(t,"maxExpandDepth")&&o.uint32(24).int32(t.maxExpandDepth),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Json;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.expanded=t.bool();break}case 3:{h.maxExpandDepth=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Json)return t;let o=new $root.Json;return t.body!=null&&(o.body=String(t.body)),t.expanded!=null&&(o.expanded=!!t.expanded),t.maxExpandDepth!=null&&(o.maxExpandDepth=t.maxExpandDepth|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.expanded=!1),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.expanded!=null&&t.hasOwnProperty("expanded")&&(d.expanded=t.expanded),t.maxExpandDepth!=null&&t.hasOwnProperty("maxExpandDepth")&&(d.maxExpandDepth=t.maxExpandDepth,o.oneofs&&(d._maxExpandDepth="maxExpandDepth")),d},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+"/Json"},n})();$root.LinkButton=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LinkButton;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 4:{p.help=e.string();break}case 6:{p.url=e.string();break}case 7:{p.disabled=e.bool();break}case 8:{p.useContainerWidth=e.bool();break}case 9:{p.type=e.string();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LinkButton)return e;let t=new $root.LinkButton;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.url!=null&&(t.url=String(e.url)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(t.type=String(e.type)),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.url="",o.disabled=!1,o.useContainerWidth=!1,o.type="",o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},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+"/LinkButton"},n})();const NumberInput$1=$root.NumberInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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="";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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(26).string(t.formId),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&o.uint32(66).string(t.format),t.hasMin!=null&&Object.hasOwnProperty.call(t,"hasMin")&&o.uint32(88).bool(t.hasMin),t.hasMax!=null&&Object.hasOwnProperty.call(t,"hasMax")&&o.uint32(96).bool(t.hasMax),t.dataType!=null&&Object.hasOwnProperty.call(t,"dataType")&&o.uint32(104).int32(t.dataType),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(113).double(t.default),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(121).double(t.step),t.min!=null&&Object.hasOwnProperty.call(t,"min")&&o.uint32(129).double(t.min),t.max!=null&&Object.hasOwnProperty.call(t,"max")&&o.uint32(137).double(t.max),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(146).string(t.help),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(153).double(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(160).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(168).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(178).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(186).string(t.placeholder),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(194).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.NumberInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.formId=t.string();break}case 8:{h.format=t.string();break}case 11:{h.hasMin=t.bool();break}case 12:{h.hasMax=t.bool();break}case 13:{h.dataType=t.int32();break}case 14:{h.default=t.double();break}case 15:{h.step=t.double();break}case 16:{h.min=t.double();break}case 17:{h.max=t.double();break}case 18:{h.help=t.string();break}case 19:{h.value=t.double();break}case 20:{h.setValue=t.bool();break}case 21:{h.disabled=t.bool();break}case 22:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 23:{h.placeholder=t.string();break}case 24:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.NumberInput)return t;let o=new $root.NumberInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.formId!=null&&(o.formId=String(t.formId)),t.format!=null&&(o.format=String(t.format)),t.hasMin!=null&&(o.hasMin=!!t.hasMin),t.hasMax!=null&&(o.hasMax=!!t.hasMax),t.dataType){default:if(typeof t.dataType=="number"){o.dataType=t.dataType;break}break;case"INT":case 0:o.dataType=0;break;case"FLOAT":case 1:o.dataType=1;break}if(t.default!=null&&(o.default=Number(t.default)),t.step!=null&&(o.step=Number(t.step)),t.min!=null&&(o.min=Number(t.min)),t.max!=null&&(o.max=Number(t.max)),t.help!=null&&(o.help=String(t.help)),t.value!=null&&(o.value=Number(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,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=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.format!=null&&t.hasOwnProperty("format")&&(d.format=t.format),t.hasMin!=null&&t.hasOwnProperty("hasMin")&&(
18d.hasMin=t.hasMin),t.hasMax!=null&&t.hasOwnProperty("hasMax")&&(d.hasMax=t.hasMax),t.dataType!=null&&t.hasOwnProperty("dataType")&&(d.dataType=o.enums===String?$root.NumberInput.DataType[t.dataType]===void 0?t.dataType:$root.NumberInput.DataType[t.dataType]:t.dataType),t.default!=null&&t.hasOwnProperty("default")&&(d.default=o.json&&!isFinite(t.default)?String(t.default):t.default,o.oneofs&&(d._default="default")),t.step!=null&&t.hasOwnProperty("step")&&(d.step=o.json&&!isFinite(t.step)?String(t.step):t.step),t.min!=null&&t.hasOwnProperty("min")&&(d.min=o.json&&!isFinite(t.min)?String(t.min):t.min),t.max!=null&&t.hasOwnProperty("max")&&(d.max=o.json&&!isFinite(t.max)?String(t.max):t.max),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},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+"/NumberInput"},n.DataType=(function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t})(),n})(),Markdown$3=$root.Markdown=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.allowHtml=!1,n.prototype.isCaption=!1,n.prototype.elementType=0,n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.allowHtml!=null&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),e.isCaption!=null&&Object.hasOwnProperty.call(e,"isCaption")&&t.uint32(24).bool(e.isCaption),e.elementType!=null&&Object.hasOwnProperty.call(e,"elementType")&&t.uint32(32).int32(e.elementType),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Markdown;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.allowHtml=e.bool();break}case 3:{p.isCaption=e.bool();break}case 4:{p.elementType=e.int32();break}case 5:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Markdown)return e;let t=new $root.Markdown;switch(e.body!=null&&(t.body=String(e.body)),e.allowHtml!=null&&(t.allowHtml=!!e.allowHtml),e.isCaption!=null&&(t.isCaption=!!e.isCaption),e.elementType){default:if(typeof e.elementType=="number"){t.elementType=e.elementType;break}break;case"UNSPECIFIED":case 0:t.elementType=0;break;case"NATIVE":case 1:t.elementType=1;break;case"CAPTION":case 2:t.elementType=2;break;case"CODE":case 3:t.elementType=3;break;case"LATEX":case 4:t.elementType=4;break;case"DIVIDER":case 5:t.elementType=5;break}return e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.allowHtml=!1,o.isCaption=!1,o.elementType=t.enums===String?"UNSPECIFIED":0,o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.allowHtml!=null&&e.hasOwnProperty("allowHtml")&&(o.allowHtml=e.allowHtml),e.isCaption!=null&&e.hasOwnProperty("isCaption")&&(o.isCaption=e.isCaption),e.elementType!=null&&e.hasOwnProperty("elementType")&&(o.elementType=t.enums===String?$root.Markdown.Type[e.elementType]===void 0?e.elementType:$root.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},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+"/Markdown"},n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="NATIVE"]=1,e[i[2]="CAPTION"]=2,e[i[3]="CODE"]=3,e[i[4]="LATEX"]=4,e[i[5]="DIVIDER"]=5,e})(),n})(),Metric$1=$root.Metric=(()=>{function n(i){if(this.chartData=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),e.delta!=null&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),e.direction!=null&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),e.color!=null&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),e.showBorder!=null&&Object.hasOwnProperty.call(e,"showBorder")&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let o=0;o<e.chartData.length;++o)t.double(e.chartData[o]);t.ldelim()}return e.chartType!=null&&Object.hasOwnProperty.call(e,"chartType")&&t.uint32(80).int32(e.chartType),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(90).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Metric;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.body=e.string();break}case 3:{p.delta=e.string();break}case 4:{p.direction=e.int32();break}case 5:{p.color=e.int32();break}case 6:{p.help=e.string();break}case 7:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 8:{p.showBorder=e.bool();break}case 9:{if(p.chartData&&p.chartData.length||(p.chartData=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.chartData.push(e.double())}else p.chartData.push(e.double());break}case 10:{p.chartType=e.int32();break}case 11:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Metric)return e;let t=new $root.Metric;switch(e.label!=null&&(t.label=String(e.label)),e.body!=null&&(t.body=String(e.body)),e.delta!=null&&(t.delta=String(e.delta)),e.direction){default:if(typeof e.direction=="number"){t.direction=e.direction;break}break;case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2;break}switch(e.color){default:if(typeof e.color=="number"){t.color=e.color;break}break;case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2;break;case"ORANGE":case 3:t.color=3;break;case"YELLOW":case 4:t.color=4;break;case"BLUE":case 5:t.color=5;break;case"VIOLET":case 6:t.color=6;break;case"PRIMARY":case 7:t.color=7;break}if(e.help!=null&&(t.help=String(e.help)),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}if(e.showBorder!=null&&(t.showBorder=!!e.showBorder),e.chartData){if(!Array.isArray(e.chartData))throw TypeError(".Metric.chartData: array expected");t.chartData=[];for(let o=0;o<e.chartData.length;++o)t.chartData[o]=Number(e.chartData[o])}switch(e.chartType){default:if(typeof e.chartType=="number"){t.chartType=e.chartType;break}break;case"LINE":case 0:t.chartType=0;break;case"BAR":case 1:t.chartType=1;break;case"AREA":case 2:t.chartType=2;break}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.chartData=[]),t.defaults&&(o.label="",o.body="",o.delta="",o.direction=t.enums===String?"DOWN":0,o.color=t.enums===String?"RED":0,o.help="",o.labelVisibility=null,o.showBorder=!1,o.chartType=t.enums===String?"LINE":0,o.format=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.delta!=null&&e.hasOwnProperty("delta")&&(o.delta=e.delta),e.direction!=null&&e.hasOwnProperty("direction")&&(o.direction=t.enums===String?$root.Metric.MetricDirection[e.direction]===void 0?e.direction:$root.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&e.hasOwnProperty("color")&&(o.color=t.enums===String?$root.Metric.MetricColor[e.color]===void 0?e.color:$root.Metric.MetricColor[e.color]:e.color),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.showBorder!=null&&e.hasOwnProperty("showBorder")&&(o.showBorder=e.showBorder),e.chartData&&e.chartData.length){o.chartData=[];for(let d=0;d<e.chartData.length;++d)o.chartData[d]=t.json&&!isFinite(e.chartData[d])?String(e.chartData[d]):e.chartData[d]}return e.chartType!=null&&e.hasOwnProperty("chartType")&&(o.chartType=t.enums===String?$root.Metric.ChartType[e.chartType]===void 0?e.chartType:$root.Metric.ChartType[e.chartType]:e.chartType),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},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+"/Metric"},n.MetricDirection=(function(){const i={},e=Object.create(i);return e[i[0]="DOWN"]=0,e[i[1]="UP"]=1,e[i[2]="NONE"]=2,e})(),n.MetricColor=(function(){const i={},e=Object.create(i);return e[i[0]="RED"]=0,e[i[1]="GREEN"]=1,e[i[2]="GRAY"]=2,e[i[3]="ORANGE"]=3,e[i[4]="YELLOW"]=4,e[i[5]="BLUE"]=5,e[i[6]="VIOLET"]=6,e[i[7]="PRIMARY"]=7,e})(),n.ChartType=(function(){const i={},e=Object.create(i);return e[i[0]="LINE"]=0,e[i[1]="BAR"]=1,e[i[2]="AREA"]=2,e})(),n})();$root.MultiSelect=(()=>{function n(e){if(this.default=[],this.options=[],this.value=[],this.rawValues=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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.value=$util.emptyArray,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;let i;return Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.int32(t.default[d]);o.ldelim()}if(t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.value!=null&&t.value.length){o.uint32(58).fork();for(let d=0;d<t.value.length;++d)o.int32(t.value[d]);o.ldelim()}if(t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.maxSelections!=null&&Object.hasOwnProperty.call(t,"maxSelections")&&o.uint32(88).int32(t.maxSelections),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(98).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(104).bool(t.acceptNewOptions),t.rawValues!=null&&t.rawValues.length)for(let d=0;d<t.rawValues.length;++d)o.uint32(114).string(t.rawValues[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.MultiSelect;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.int32())}else h.default.push(t.int32());break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 7:{if(h.value&&h.value.length||(h.value=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.value.push(t.int32())}else h.value.push(t.int32());break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(t.string());break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 11:{h.maxSelections=t.int32();break}case 12:{h.placeholder=t.string();break}case 13:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.MultiSelect)return t;let o=new $root.MultiSelect;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default){if(!Array.isArray(t.default))throw TypeError(".MultiSelect.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]|0}if(t.options){if(!Array.isArray(t.options))throw TypeError(".MultiSelect.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value){if(!Array.isArray(t.value))throw TypeError(".MultiSelect.value: array expected");o.value=[];for(let d=0;d<t.value.length;++d)o.value[d]=t.value[d]|0}if(t.rawValues){if(!Array.isArray(t.rawValues))throw TypeError(".MultiSelect.rawValues: array expected");o.rawValues=[];for(let d=0;d<t.rawValues.length;++d)o.rawValues[d]=String(t.rawValues[d])}if(t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.maxSelections!=null&&(o.maxSelections=t.maxSelections|0),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.options=[],d.value=[],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=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}
18if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value&&t.value.length){d.value=[];for(let p=0;p<t.value.length;++p)d.value[p]=t.value[p]}if(t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.maxSelections!=null&&t.hasOwnProperty("maxSelections")&&(d.maxSelections=t.maxSelections),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValues&&t.rawValues.length){d.rawValues=[];for(let p=0;p<t.rawValues.length;++p)d.rawValues[p]=t.rawValues[p]}return d},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+"/MultiSelect"},n})();$root.PageLink=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.page!=null&&Object.hasOwnProperty.call(t,"page")&&o.uint32(10).string(t.page),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(26).string(t.icon),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&o.uint32(34).string(t.pageScriptHash),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(48).bool(t.useContainerWidth),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.external!=null&&Object.hasOwnProperty.call(t,"external")&&o.uint32(64).bool(t.external),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&o.uint32(74).string(t.queryString),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(80).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageLink;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.page=t.string();break}case 2:{h.label=t.string();break}case 3:{h.icon=t.string();break}case 4:{h.pageScriptHash=t.string();break}case 5:{h.help=t.string();break}case 6:{h.useContainerWidth=t.bool();break}case 7:{h.disabled=t.bool();break}case 8:{h.external=t.bool();break}case 9:{h.queryString=t.string();break}case 10:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageLink)return t;let o=new $root.PageLink;switch(t.page!=null&&(o.page=String(t.page)),t.label!=null&&(o.label=String(t.label)),t.icon!=null&&(o.icon=String(t.icon)),t.pageScriptHash!=null&&(o.pageScriptHash=String(t.pageScriptHash)),t.help!=null&&(o.help=String(t.help)),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.disabled!=null&&(o.disabled=!!t.disabled),t.external!=null&&(o.external=!!t.external),t.queryString!=null&&(o.queryString=String(t.queryString)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,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),t.page!=null&&t.hasOwnProperty("page")&&(d.page=t.page),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(d.pageScriptHash=t.pageScriptHash),t.help!=null&&t.hasOwnProperty("help")&&(
18d.help=t.help),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth,o.oneofs&&(d._useContainerWidth="useContainerWidth")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.external!=null&&t.hasOwnProperty("external")&&(d.external=t.external),t.queryString!=null&&t.hasOwnProperty("queryString")&&(d.queryString=t.queryString),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},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+"/PageLink"},n})();const PlotlyChart$1=$root.PlotlyChart=(()=>{function n(e){if(this.selectionMode=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.prototype.spec="",n.prototype.config="",n.prototype.url=null,n.prototype.figure=null;let i;return Object.defineProperty(n.prototype,"chart",{get:$util.oneOfGetter(i=["url","figure"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(10).string(t.url),t.figure!=null&&Object.hasOwnProperty.call(t,"figure")&&$root.Figure.encode(t.figure,o.uint32(18).fork()).ldelim(),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(40).bool(t.useContainerWidth),t.theme!=null&&Object.hasOwnProperty.call(t,"theme")&&o.uint32(50).string(t.theme),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(58).string(t.id),t.selectionMode!=null&&t.selectionMode.length){o.uint32(66).fork();for(let d=0;d<t.selectionMode.length;++d)o.int32(t.selectionMode[d]);o.ldelim()}return t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(74).string(t.formId),t.spec!=null&&Object.hasOwnProperty.call(t,"spec")&&o.uint32(82).string(t.spec),t.config!=null&&Object.hasOwnProperty.call(t,"config")&&o.uint32(90).string(t.config),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PlotlyChart;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.useContainerWidth=t.bool();break}case 6:{h.theme=t.string();break}case 7:{h.id=t.string();break}case 8:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.selectionMode.push(t.int32())}else h.selectionMode.push(t.int32());break}case 9:{h.formId=t.string();break}case 10:{h.spec=t.string();break}case 11:{h.config=t.string();break}case 1:{h.url=t.string();break}case 2:{h.figure=$root.Figure.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PlotlyChart)return t;let o=new $root.PlotlyChart;if(t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.theme!=null&&(o.theme=String(t.theme)),t.id!=null&&(o.id=String(t.id)),t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)switch(t.selectionMode[d]){default:if(typeof t.selectionMode[d]=="number"){o.selectionMode[d]=t.selectionMode[d];break}case"POINTS":case 0:o.selectionMode[d]=0;break;case"BOX":case 1:o.selectionMode[d]=1;break;case"LASSO":case 2:o.selectionMode[d]=2;break}}if(t.formId!=null&&(o.formId=String(t.formId)),t.spec!=null&&(o.spec=String(t.spec)),t.config!=null&&(o.config=String(t.config)),t.url!=null&&(o.url=String(t.url)),t.figure!=null){if(typeof t.figure!="object")throw TypeError(".PlotlyChart.figure: object expected");o.figure=$root.Figure.fromObject(t.figure)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.selectionMode=[]),o.defaults&&(d.useContainerWidth=!1,d.theme="",d.id="",d.formId="",d.spec="",d.config=""),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url,o.oneofs&&(d.chart="url")),t.figure!=null&&t.hasOwnProperty("figure")&&(d.figure=$root.Figure.toObject(t.figure,o),o.oneofs&&(d.chart="figure")),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(
18d.useContainerWidth=t.useContainerWidth),t.theme!=null&&t.hasOwnProperty("theme")&&(d.theme=t.theme),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.selectionMode&&t.selectionMode.length){d.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)d.selectionMode[p]=o.enums===String?$root.PlotlyChart.SelectionMode[t.selectionMode[p]]===void 0?t.selectionMode[p]:$root.PlotlyChart.SelectionMode[t.selectionMode[p]]:t.selectionMode[p]}return t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.spec!=null&&t.hasOwnProperty("spec")&&(d.spec=t.spec),t.config!=null&&t.hasOwnProperty("config")&&(d.config=t.config),d},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 e={},t=Object.create(e);return t[e[0]="POINTS"]=0,t[e[1]="BOX"]=1,t[e[2]="LASSO"]=2,t})(),n})();$root.Figure=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.config="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&t.uint32(18).string(e.config),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Figure;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 2:{p.config=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Figure)return e;let t=new $root.Figure;return e.spec!=null&&(t.spec=String(e.spec)),e.config!=null&&(t.config=String(e.config)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.spec="",o.config=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.config!=null&&e.hasOwnProperty("config")&&(o.config=e.config),o},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+"/Figure"},n})();$root.Progress=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.prototype.text="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(18).string(e.text),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Progress;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.uint32();break}case 2:{p.text=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Progress)return e;let t=new $root.Progress;return e.value!=null&&(t.value=e.value>>>0),e.text!=null&&(t.text=String(e.text)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=0,o.text=""),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),o},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+"/Progress"},n})();$root.Snow=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Snow;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Snow)return e;let t=new $root.Snow;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},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+"/Snow"},n})();$root.Spinner=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.text="",n.prototype.cache=!1,n.prototype.showTime=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),e.cache!=null&&Object.hasOwnProperty.call(e,"cache")&&t.uint32(16).bool(e.cache),e.showTime!=null&&Object.hasOwnProperty.call(e,"showTime")&&t.uint32(24).bool(e.showTime),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Spinner;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.text=e.string();break}case 2:{p.cache=e.bool();break}case 3:{p.showTime=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Spinner)return e;let t=new $root.Spinner;return e.text!=null&&(t.text=String(e.text)),e.cache!=null&&(t.cache=!!e.cache),e.showTime!=null&&(t.showTime=!!e.showTime),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.text="",o.cache=!1,o.showTime=!1),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),e.cache!=null&&e.hasOwnProperty("cache")&&(o.cache=e.cache),e.showTime!=null&&e.hasOwnProperty("showTime")&&(o.showTime=e.showTime),o},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+"/Spinner"},n})();$root.Radio=(()=>{function n(e){if(this.options=[],this.captions=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.horizontal=!1,n.prototype.labelVisibility=null,n.prototype.captions=$util.emptyArray;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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(56).int32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&o.uint32(80).bool(t.horizontal),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(90).fork()).ldelim(),t.captions!=null&&t.captions.length)for(let d=0;d<t.captions.length;++d)o.uint32(98).string(t.captions[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Radio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 7:{h.value=t.int32();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.horizontal=t.bool();break}case 11:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 12:{h.captions&&h.captions.length||(h.captions=[]),h.captions.push(t.string());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Radio)return t;let o=new $root.Radio;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Radio.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=t.value|0),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.horizontal!=null&&(o.horizontal=!!t.horizontal),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}if(t.captions){if(!Array.isArray(t.captions))throw TypeError(".Radio.captions: array expected");o.captions=[];for(let d=0;d<t.captions.length;++d)o.captions[d]=String(t.captions[d])}return o},n.toObject=function(t,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),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}
18if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=t.horizontal),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.captions&&t.captions.length){d.captions=[];for(let p=0;p<t.captions.length;++p)d.captions[p]=t.captions[p]}return d},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+"/Radio"},n})();$root.Selectbox=(()=>{function n(e){if(this.options=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.acceptNewOptions=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,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);return t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(56).int32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(96).bool(t.acceptNewOptions),t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&o.uint32(106).string(t.rawValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Selectbox;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 7:{h.value=t.int32();break}case 13:{h.rawValue=t.string();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 11:{h.placeholder=t.string();break}case 12:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Selectbox)return t;let o=new $root.Selectbox;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Selectbox.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=t.value|0),t.rawValue!=null&&(o.rawValue=String(t.rawValue)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,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=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}
18return t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(d.rawValue=t.rawValue,o.oneofs&&(d._rawValue="rawValue")),d},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+"/Selectbox"},n})();const Skeleton$1=$root.Skeleton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(8).int32(t.style),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(16).int32(t.height),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Skeleton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.style=t.int32();break}case 2:{h.height=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Skeleton)return t;let o=new $root.Skeleton;switch(t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"ELEMENT":case 0:o.style=0;break;case"APP":case 1:o.style=1;break}return t.height!=null&&(o.height=t.height|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.style=o.enums===String?"ELEMENT":0),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.Skeleton.SkeletonStyle[t.style]===void 0?t.style:$root.Skeleton.SkeletonStyle[t.style]:t.style),t.height!=null&&t.hasOwnProperty("height")&&(d.height=t.height,o.oneofs&&(d._height="height")),d},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+"/Skeleton"},n.SkeletonStyle=(function(){const e={},t=Object.create(e);return t[e[0]="ELEMENT"]=0,t[e[1]="APP"]=1,t})(),n})(),Slider$1=$root.Slider=(()=>{function n(i){if(this.default=[],this.value=[],this.options=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return 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.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let o=0;o<e.default.length;++o)t.double(e.default[o]);t.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let o=0;o<e.value.length;++o)t.double(e.value[o]);t.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let o=0;o<e.options.length;++o)t.uint32(106).string(e.options[o]);return e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(136).int32(e.type),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Slider;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.formId=e.string();break}case 3:{p.label=e.string();break}case 4:{p.format=e.string();break}case 5:{p.dataType=e.int32();break}case 6:{if(p.default&&p.default.length||(p.default=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.default.push(e.double())}else p.default.push(e.double());break}case 7:{p.min=e.double();break}case 8:{p.max=e.double();break}case 9:{p.step=e.double();break}case 10:{if(p.value&&p.value.length||(p.value=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.value.push(e.double())}else p.value.push(e.double());break}case 11:{p.setValue=e.bool();break}case 13:{p.options&&p.options.length||(p.options=[]),p.options.push(e.string());break}case 14:{p.help=e.string();break}case 15:{p.disabled=e.bool();break}case 16:{p.labelVisibility=$root.LabelVisibilityMessage.decode(e,e.uint32());break}case 17:{p.type=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Slider)return e;let t=new $root.Slider;switch(e.id!=null&&(t.id=String(e.id)),e.formId!=null&&(t.formId=String(e.formId)),e.label!=null&&(t.label=String(e.label)),e.format!=null&&(t.format=String(e.format)),e.dataType){default:if(typeof e.dataType=="number"){t.dataType=e.dataType;break}break;case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1;break;case"DATETIME":case 2:t.dataType=2;break;case"DATE":case 3:t.dataType=3;break;case"TIME":case 4:t.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=Number(e.default[o])}if(e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),e.step!=null&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=Number(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let o=0;o<e.options.length;++o)t.options[o]=String(e.options[o])}if(e.help!=null&&(t.help=String(e.help)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibilityMessage.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"SLIDER":case 1:t.type=1;break;case"SELECT_SLIDER":case 2:t.type=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[],o.options=[]),t.defaults&&(o.id="",o.formId="",o.label="",o.format="",o.dataType=t.enums===String?"INT":0,o.min=0,o.max=0,o.step=0,o.setValue=!1,o.help="",o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"UNSPECIFIED":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.dataType!=null&&e.hasOwnProperty("dataType")&&(o.dataType=t.enums===String?$root.Slider.DataType[e.dataType]===void 0?e.dataType:$root.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=t.json&&!isFinite(e.default[d])?String(e.default[d]):e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty("step")&&(o.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=t.json&&!isFinite(e.value[d])?String(e.value[d]):e.value[d]}if(e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.options&&e.options.length){o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=e.options[d]}return e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibilityMessage.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Slider.Type[e.type]===void 0?e.type:$root.Slider.Type[e.type]:e.type),o},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 i={},e=Object.create(i);return e[i[0]="INT"]=0,e[i[1]="FLOAT"]=1,e[i[2]="DATETIME"]=2,e[i[3]="DATE"]=3,e[i[4]="TIME"]=4,e})(),n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="SLIDER"]=1,e[i[2]="SELECT_SLIDER"]=2,e})(),n})();$root.Space=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Space;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Space?e:new $root.Space},n.toObject=function(){return{}},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+"/Space"},n})();$root.Text=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(18).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Text;
18for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Text)return e;let t=new $root.Text;return e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},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+"/Text"},n})();$root.TextArea=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.height=0,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;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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(32).uint32(t.height),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(82).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(88).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextArea;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.height=t.uint32();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.placeholder=t.string();break}case 11:{h.disabled=t.bool();break}case 12:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextArea)return t;let o=new $root.TextArea;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.height!=null&&(o.height=t.height>>>0),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.height=0,d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.placeholder="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.height!=null&&t.hasOwnProperty("height")&&(d.height=t.height),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(
18d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),d},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+"/TextArea"},n})();const TextInput$1=$root.TextInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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="";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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(32).int32(t.type),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.autocomplete!=null&&Object.hasOwnProperty.call(t,"autocomplete")&&o.uint32(82).string(t.autocomplete),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(96).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(106).fork()).ldelim(),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(114).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.type=t.int32();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.autocomplete=t.string();break}case 11:{h.placeholder=t.string();break}case 12:{h.disabled=t.bool();break}case 13:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 14:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextInput)return t;let o=new $root.TextInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"DEFAULT":case 0:o.type=0;break;case"PASSWORD":case 1:o.type=1;break}if(t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.autocomplete!=null&&(o.autocomplete=String(t.autocomplete)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,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=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.TextInput.Type[t.type]===void 0?t.type:$root.TextInput.Type[t.type]:t.type),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(
18d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.autocomplete!=null&&t.hasOwnProperty("autocomplete")&&(d.autocomplete=t.autocomplete),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},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+"/TextInput"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t})(),n})();$root.TimeInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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;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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(50).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(56).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(64).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibilityMessage.encode(t.labelVisibility,o.uint32(74).fork()).ldelim(),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(80).int64(t.step),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TimeInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.value=t.string();break}case 7:{h.setValue=t.bool();break}case 8:{h.disabled=t.bool();break}case 9:{h.labelVisibility=$root.LabelVisibilityMessage.decode(t,t.uint32());break}case 10:{h.step=t.int64();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TimeInput)return t;let o=new $root.TimeInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibilityMessage.fromObject(t.labelVisibility)}return t.step!=null&&($util.Long?(o.step=$util.Long.fromValue(t.step)).unsigned=!1:typeof t.step=="string"?o.step=parseInt(t.step,10):typeof t.step=="number"?o.step=t.step:typeof t.step=="object"&&(o.step=new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber())),o},n.toObject=function(t,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 t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.help!=null&&t.hasOwnProperty("help")&&(
18d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibilityMessage.toObject(t.labelVisibility,o)),t.step!=null&&t.hasOwnProperty("step")&&(typeof t.step=="number"?d.step=o.longs===String?String(t.step):t.step:d.step=o.longs===String?$util.Long.prototype.toString.call(t.step):o.longs===Number?new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber():t.step),d},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+"/TimeInput"},n})();$root.Toast=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(18).string(t.icon),t.duration!=null&&Object.hasOwnProperty.call(t,"duration")&&o.uint32(24).int32(t.duration),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Toast;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.icon=t.string();break}case 3:{h.duration=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Toast)return t;let o=new $root.Toast;return t.body!=null&&(o.body=String(t.body)),t.icon!=null&&(o.icon=String(t.icon)),t.duration!=null&&(o.duration=t.duration|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.icon=""),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.duration!=null&&t.hasOwnProperty("duration")&&(d.duration=t.duration,o.oneofs&&(d._duration="duration")),d},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+"/Toast"},n})();$root.VegaLiteChart=(()=>{function n(i){if(this.datasets=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let o=0;o<e.datasets.length;++o)$root.NamedDataSet.encode(e.datasets[o],t.uint32(34).fork()).ldelim();return e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.VegaLiteChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 2:{p.data=$root.DataFrame.decode(e,e.uint32());break}case 4:{p.datasets&&p.datasets.length||(p.datasets=[]),p.datasets.push($root.NamedDataSet.decode(e,e.uint32()));break}case 5:{p.useContainerWidth=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.VegaLiteChart)return e;let t=new $root.VegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".VegaLiteChart.data: object expected");t.data=$root.DataFrame.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");t.datasets=[];for(let o=0;o<e.datasets.length;++o){if(typeof e.datasets[o]!="object")throw TypeError(".VegaLiteChart.datasets: object expected");t.datasets[o]=$root.NamedDataSet.fromObject(e.datasets[o])}}return e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.datasets=[]),t.defaults&&(o.spec="",o.data=null,o.useContainerWidth=!1),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.DataFrame.toObject(e.data,t)),e.datasets&&e.datasets.length){o.datasets=[];for(let d=0;d<e.datasets.length;++d)o.datasets[d]=$root.NamedDataSet.toObject(e.datasets[d],t)}return e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),o},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+"/VegaLiteChart"},n})();$root.NamedDataSet=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.NamedDataSet;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 3:{p.hasName=e.bool();break}case 2:{p.data=$root.DataFrame.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.NamedDataSet)return e;let t=new $root.NamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".NamedDataSet.data: object expected");t.data=$root.DataFrame.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.name="",o.data=null,o.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.DataFrame.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(o.hasName=e.hasName),o},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+"/NamedDataSet"},n})();$root.SubtitleTrack=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.label="",n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SubtitleTrack;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SubtitleTrack)return e;let t=new $root.SubtitleTrack;return e.label!=null&&(t.label=String(e.label)),e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.label="",o.url=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},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+"/SubtitleTrack"},n})();const Video$1=$root.Video=(()=>{function n(e){if(this.subtitles=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(40).int32(t.type),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.subtitles!=null&&t.subtitles.length)for(let d=0;d<t.subtitles.length;++d)$root.SubtitleTrack.encode(t.subtitles[d],o.uint32(58).fork()).ldelim();return t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(64).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(72).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"auto
18play")&&o.uint32(80).bool(t.autoplay),t.muted!=null&&Object.hasOwnProperty.call(t,"muted")&&o.uint32(88).bool(t.muted),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Video;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 6:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 5:{h.type=t.int32();break}case 7:{h.subtitles&&h.subtitles.length||(h.subtitles=[]),h.subtitles.push($root.SubtitleTrack.decode(t,t.uint32()));break}case 8:{h.endTime=t.int32();break}case 9:{h.loop=t.bool();break}case 10:{h.autoplay=t.bool();break}case 11:{h.muted=t.bool();break}case 12:{h.id=t.string();break}case 13:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Video)return t;let o=new $root.Video;switch(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.type){default:if(typeof t.type=="number"){o.type=t.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}if(t.subtitles){if(!Array.isArray(t.subtitles))throw TypeError(".Video.subtitles: array expected");o.subtitles=[];for(let d=0;d<t.subtitles.length;++d){if(typeof t.subtitles[d]!="object")throw TypeError(".Video.subtitles: object expected");o.subtitles[d]=$root.SubtitleTrack.fromObject(t.subtitles[d])}}if(t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.muted!=null&&(o.muted=!!t.muted),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Video.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,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=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Video.Type[t.type]===void 0?t.type:$root.Video.Type[t.type]:t.type),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.subtitles&&t.subtitles.length){d.subtitles=[];for(let p=0;p<t.subtitles.length;++p)d.subtitles[p]=$root.SubtitleTrack.toObject(t.subtitles[p],o)}return t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.muted!=null&&t.hasOwnProperty("muted")&&(d.muted=t.muted),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},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+"/Video"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t})(),n})();$root.Heading=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tag="",n.prototype.anchor="",n.prototype.body="",n.prototype.help="",n.prototype.hideAnchor=!1,n.prototype.divider="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tag!=null&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),e.anchor!=null&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.hideAnchor!=null&&Object.hasOwnProperty.call(e,"hideAnchor")&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&Object.hasOwnProperty.call(e,"divider")&&t.uint32(50).string(e.divider),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Heading;
18for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tag=e.string();break}case 2:{p.anchor=e.string();break}case 3:{p.body=e.string();break}case 4:{p.help=e.string();break}case 5:{p.hideAnchor=e.bool();break}case 6:{p.divider=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Heading)return e;let t=new $root.Heading;return e.tag!=null&&(t.tag=String(e.tag)),e.anchor!=null&&(t.anchor=String(e.anchor)),e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),e.hideAnchor!=null&&(t.hideAnchor=!!e.hideAnchor),e.divider!=null&&(t.divider=String(e.divider)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tag="",o.anchor="",o.body="",o.help="",o.hideAnchor=!1,o.divider=""),e.tag!=null&&e.hasOwnProperty("tag")&&(o.tag=e.tag),e.anchor!=null&&e.hasOwnProperty("anchor")&&(o.anchor=e.anchor),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.hideAnchor!=null&&e.hasOwnProperty("hideAnchor")&&(o.hideAnchor=e.hideAnchor),e.divider!=null&&e.hasOwnProperty("divider")&&(o.divider=e.divider),o},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+"/Heading"},n})();$root.Transient=(()=>{function n(i){if(this.elements=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.elements=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.elements!=null&&e.elements.length)for(let o=0;o<e.elements.length;++o)$root.Element.encode(e.elements[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Transient;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.elements&&p.elements.length||(p.elements=[]),p.elements.push($root.Element.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Transient)return e;let t=new $root.Transient;if(e.elements){if(!Array.isArray(e.elements))throw TypeError(".Transient.elements: array expected");t.elements=[];for(let o=0;o<e.elements.length;++o){if(typeof e.elements[o]!="object")throw TypeError(".Transient.elements: object expected");t.elements[o]=$root.Element.fromObject(e.elements[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.elements=[]),e.elements&&e.elements.length){o.elements=[];for(let d=0;d<e.elements.length;++d)o.elements[d]=$root.Element.toObject(e.elements[d],t)}return o},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+"/Transient"},n})();const ForwardMsg=$root.ForwardMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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.pagesChanged=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.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","pagesChanged","fileUrlsResponse","autoRerun","logo","authRedirect","parentMessage","refHash","deferredFileResponse"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.hash!=null&&Object.hasOwnProperty.call(t,"hash")&&o.uint32(10).string(t.hash),t.metadata!=null&&Object.hasOwnProperty.call(t,"metadata")&&$root.ForwardMsgMetadata.encode(t.metadata,o.uint32(18).fork()).ldelim(),t.newSession!=null&&Object.hasOwnProperty.call(t,"newSession")&&$root.NewSession.encode(t.newSession,o.uint32(34).fork()).ldelim(),t.delta!=null&&Object.hasOwnProperty.call(t,"delta")&&$root.Delta.encode(t.delta,o.uint32(42).fork()).ldelim(),t.scriptFinished!=null&&Object.hasOwnProperty.call(t,"scriptFinished")&&o.uint32(48).int32(t.scriptFinished),t.sessionStatusChanged!=null&&Object.hasOwnProperty.call(t,"sessionStatusChanged")&&$root.SessionStatus.encode(t.sessionStatusChanged,o.uint32(74).fork()).ldelim(),t.sessionEvent!=null&&Object.hasOwnProperty.call(t,"sessionEvent")&&$root.SessionEvent.encode(t.sessionEvent,o.uint32(82).fork()).ldelim(),t.refHash!=null&&Object.hasOwnProperty.call(t,"refHash")&&o.uint32(90).string(t.refHash),t.pageInfoChanged!=null&&Object.hasOwnProperty.call(t,"pageInfoChanged")&&$root.PageInfo.encode(t.pageInfoChanged,o.uint32(98).fork()).ldelim(),t.pageConfigChanged!=null&&Object.hasOwnProperty.call(t,"pageConfigChanged")&&$root.PageConfig.encode(t.pageConfigChanged,o.uint32(106).fork()).ldelim(),t.gitInfoChanged!=null&&Object.hasOwnProperty.call(t,"gitInfoChanged")&&$root.GitInfo.encode(t.gitInfoChanged,o.uint32(114).fork()).ldelim(),t.pageNotFound!=null&&Object.hasOwnProperty.call(t,"pageNotFound")&&$root.PageNotFound.encode(t.pageNotFound,o.uint32(122).fork()).ldelim(),t.pagesChanged!=null&&Object.hasOwnProperty.call(t,"pagesChanged")&&$root.PagesChanged.encode(t.pagesChanged,o.uint32(130).fork()).ldelim(),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugL
18astBackmsgId")&&o.uint32(138).string(t.debugLastBackmsgId),t.pageProfile!=null&&Object.hasOwnProperty.call(t,"pageProfile")&&$root.PageProfile.encode(t.pageProfile,o.uint32(146).fork()).ldelim(),t.fileUrlsResponse!=null&&Object.hasOwnProperty.call(t,"fileUrlsResponse")&&$root.FileURLsResponse.encode(t.fileUrlsResponse,o.uint32(154).fork()).ldelim(),t.parentMessage!=null&&Object.hasOwnProperty.call(t,"parentMessage")&&$root.ParentMessage.encode(t.parentMessage,o.uint32(162).fork()).ldelim(),t.autoRerun!=null&&Object.hasOwnProperty.call(t,"autoRerun")&&$root.AutoRerun.encode(t.autoRerun,o.uint32(170).fork()).ldelim(),t.logo!=null&&Object.hasOwnProperty.call(t,"logo")&&$root.Logo.encode(t.logo,o.uint32(178).fork()).ldelim(),t.navigation!=null&&Object.hasOwnProperty.call(t,"navigation")&&$root.Navigation.encode(t.navigation,o.uint32(186).fork()).ldelim(),t.authRedirect!=null&&Object.hasOwnProperty.call(t,"authRedirect")&&$root.AuthRedirect.encode(t.authRedirect,o.uint32(194).fork()).ldelim(),t.deferredFileResponse!=null&&Object.hasOwnProperty.call(t,"deferredFileResponse")&&$root.DeferredFileResponse.encode(t.deferredFileResponse,o.uint32(202).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ForwardMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.hash=t.string();break}case 2:{h.metadata=$root.ForwardMsgMetadata.decode(t,t.uint32());break}case 4:{h.newSession=$root.NewSession.decode(t,t.uint32());break}case 5:{h.delta=$root.Delta.decode(t,t.uint32());break}case 12:{h.pageInfoChanged=$root.PageInfo.decode(t,t.uint32());break}case 13:{h.pageConfigChanged=$root.PageConfig.decode(t,t.uint32());break}case 6:{h.scriptFinished=t.int32();break}case 14:{h.gitInfoChanged=$root.GitInfo.decode(t,t.uint32());break}case 18:{h.pageProfile=$root.PageProfile.decode(t,t.uint32());break}case 9:{h.sessionStatusChanged=$root.SessionStatus.decode(t,t.uint32());break}case 10:{h.sessionEvent=$root.SessionEvent.decode(t,t.uint32());break}case 23:{h.navigation=$root.Navigation.decode(t,t.uint32());break}case 15:{h.pageNotFound=$root.PageNotFound.decode(t,t.uint32());break}case 16:{h.pagesChanged=$root.PagesChanged.decode(t,t.uint32());break}case 19:{h.fileUrlsResponse=$root.FileURLsResponse.decode(t,t.uint32());break}case 21:{h.autoRerun=$root.AutoRerun.decode(t,t.uint32());break}case 22:{h.logo=$root.Logo.decode(t,t.uint32());break}case 24:{h.authRedirect=$root.AuthRedirect.decode(t,t.uint32());break}case 20:{h.parentMessage=$root.ParentMessage.decode(t,t.uint32());break}case 11:{h.refHash=t.string();break}case 25:{h.deferredFileResponse=$root.DeferredFileResponse.decode(t,t.uint32());break}case 17:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ForwardMsg)return t;let o=new $root.ForwardMsg;if(t.hash!=null&&(o.hash=String(t.hash)),t.metadata!=null){if(typeof t.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");o.metadata=$root.ForwardMsgMetadata.fromObject(t.metadata)}if(t.newSession!=null){if(typeof t.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");o.newSession=$root.NewSession.fromObject(t.newSession)}if(t.delta!=null){if(typeof t.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");o.delta=$root.Delta.fromObject(t.delta)}if(t.pageInfoChanged!=null){if(typeof t.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");o.pageInfoChanged=$root.PageInfo.fromObject(t.pageInfoChanged)}if(t.pageConfigChanged!=null){if(typeof t.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");o.pageConfigChanged=$root.PageConfig.fromObject(t.pageConfigChanged)}switch(t.scriptFinished){default:if(typeof t.scriptFinished=="number"){o.scriptFinished=t.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(t.gitInfoChanged!=null){if(typeof t.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");o.gitInfoChanged=$root.GitInfo.fromObject(t.gitInfoChanged)}if(t.pageProfile!=null){if(typeof t.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");o.pageProfile=$root.PageProfile.fromObject(t.pageProfile)}if(t.sessionStatusChanged!=null){if(typeof t.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");o.sessionStatusChanged=$root.SessionStatus.fromObject(t.sessionStatusChanged)}if(t.sessionEvent!=null){if(typeof t.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");o.sessionEvent=$root.SessionEvent.fromObject(t.sessionEvent)}if(t.navigation!=null){if(typeof t.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");o.navigation=$root.Navigation.fromObject(t.navigation)}if(t.pageNotFound!=null){if(typeof t.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");o.pageNotFound=$root.PageNotFound.fromObject(t.pageNotFound)}if(t.pagesChanged!=null){if(typeof t.pagesChanged!="object")throw TypeError(".ForwardMsg.pagesChanged: object expected");o.pagesChanged=$root.PagesChanged.fromObject(t.pagesChanged)}if(t.fileUrlsResponse!=null){if(typeof t.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");o.fileUrlsResponse=$root.FileURLsResponse.fromObject(t.fileUrlsResponse)}if(t.autoRerun!=null){if(typeof t.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");o.autoRerun=$root.AutoRerun.fromObject(t.autoRerun)}if(t.logo!=null){if(typeof t.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");o.logo=$root.Logo.fromObject(t.logo)}if(t.authRedirect!=null){if(typeof t.authRedirect!="object")throw TypeError(".ForwardMsg.authRedirect: object expected");o.authRedirect=$root.AuthRedirect.fromObject(t.authRedirect)}if(t.parentMessage!=null){if(typeof t.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");o.parentMessage=$root.ParentMessage.fromObject(t.parentMessage)}if(t.refHash!=null&&(o.refHash=String(t.refHash)),t.deferredFileResponse!=null){if(typeof t.deferredFileResponse!="object")throw TypeError(".ForwardMsg.deferredFileResponse: object expected");o.deferredFileResponse=$root.DeferredFileResponse.fromObject(t.deferredFileResponse)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugL
18astBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.hash="",d.metadata=null,d.debugLastBackmsgId=""),t.hash!=null&&t.hasOwnProperty("hash")&&(d.hash=t.hash),t.metadata!=null&&t.hasOwnProperty("metadata")&&(d.metadata=$root.ForwardMsgMetadata.toObject(t.metadata,o)),t.newSession!=null&&t.hasOwnProperty("newSession")&&(d.newSession=$root.NewSession.toObject(t.newSession,o),o.oneofs&&(d.type="newSession")),t.delta!=null&&t.hasOwnProperty("delta")&&(d.delta=$root.Delta.toObject(t.delta,o),o.oneofs&&(d.type="delta")),t.scriptFinished!=null&&t.hasOwnProperty("scriptFinished")&&(d.scriptFinished=o.enums===String?$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]===void 0?t.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]:t.scriptFinished,o.oneofs&&(d.type="scriptFinished")),t.sessionStatusChanged!=null&&t.hasOwnProperty("sessionStatusChanged")&&(d.sessionStatusChanged=$root.SessionStatus.toObject(t.sessionStatusChanged,o),o.oneofs&&(d.type="sessionStatusChanged")),t.sessionEvent!=null&&t.hasOwnProperty("sessionEvent")&&(d.sessionEvent=$root.SessionEvent.toObject(t.sessionEvent,o),o.oneofs&&(d.type="sessionEvent")),t.refHash!=null&&t.hasOwnProperty("refHash")&&(d.refHash=t.refHash,o.oneofs&&(d.type="refHash")),t.pageInfoChanged!=null&&t.hasOwnProperty("pageInfoChanged")&&(d.pageInfoChanged=$root.PageInfo.toObject(t.pageInfoChanged,o),o.oneofs&&(d.type="pageInfoChanged")),t.pageConfigChanged!=null&&t.hasOwnProperty("pageConfigChanged")&&(d.pageConfigChanged=$root.PageConfig.toObject(t.pageConfigChanged,o),o.oneofs&&(d.type="pageConfigChanged")),t.gitInfoChanged!=null&&t.hasOwnProperty("gitInfoChanged")&&(d.gitInfoChanged=$root.GitInfo.toObject(t.gitInfoChanged,o),o.oneofs&&(d.type="gitInfoChanged")),t.pageNotFound!=null&&t.hasOwnProperty("pageNotFound")&&(d.pageNotFound=$root.PageNotFound.toObject(t.pageNotFound,o),o.oneofs&&(d.type="pageNotFound")),t.pagesChanged!=null&&t.hasOwnProperty("pagesChanged")&&(d.pagesChanged=$root.PagesChanged.toObject(t.pagesChanged,o),o.oneofs&&(d.type="pagesChanged")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.pageProfile!=null&&t.hasOwnProperty("pageProfile")&&(d.pageProfile=$root.PageProfile.toObject(t.pageProfile,o),o.oneofs&&(d.type="pageProfile")),t.fileUrlsResponse!=null&&t.hasOwnProperty("fileUrlsResponse")&&(d.fileUrlsResponse=$root.FileURLsResponse.toObject(t.fileUrlsResponse,o),o.oneofs&&(d.type="fileUrlsResponse")),t.parentMessage!=null&&t.hasOwnProperty("parentMessage")&&(d.parentMessage=$root.ParentMessage.toObject(t.parentMessage,o),o.oneofs&&(d.type="parentMessage")),t.autoRerun!=null&&t.hasOwnProperty("autoRerun")&&(d.autoRerun=$root.AutoRerun.toObject(t.autoRerun,o),o.oneofs&&(d.type="autoRerun")),t.logo!=null&&t.hasOwnProperty("logo")&&(d.logo=$root.Logo.toObject(t.logo,o),o.oneofs&&(d.type="logo")),t.navigation!=null&&t.hasOwnProperty("navigation")&&(d.navigation=$root.Navigation.toObject(t.navigation,o),o.oneofs&&(d.type="navigation")),t.authRedirect!=null&&t.hasOwnProperty("authRedirect")&&(d.authRedirect=$root.AuthRedirect.toObject(t.authRedirect,o),o.oneofs&&(d.type="authRedirect")),t.deferredFileResponse!=null&&t.hasOwnProperty("deferredFileResponse")&&(d.deferredFileResponse=$root.DeferredFileResponse.toObject(t.deferredFileResponse,o),o.oneofs&&(d.type="deferredFileResponse")),d},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+"/ForwardMsg"},n.ScriptFinishedStatus=(function(){const e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,t[e[2]="FINISHED_EARLY_FOR_RERUN"]=2,t[e[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,t})(),n})();$root.DeferredFileResponse=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.url="",n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.url=e.string();break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileResponse)return e;let t=new $root.DeferredFileResponse;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.url!=null&&(t.url=String(e.url)),e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.url="",o.errorMsg=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o}
18,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+"/DeferredFileResponse"},n})();const ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function n(i){if(this.deltaPath=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.cacheable=!1,n.prototype.deltaPath=$util.emptyArray,n.prototype.elementDimensionSpec=null,n.prototype.activeScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cacheable!=null&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let o=0;o<e.deltaPath.length;++o)t.uint32(e.deltaPath[o]);t.ldelim()}return e.elementDimensionSpec!=null&&Object.hasOwnProperty.call(e,"elementDimensionSpec")&&$root.ElementDimensionSpec.encode(e.elementDimensionSpec,t.uint32(26).fork()).ldelim(),e.activeScriptHash!=null&&Object.hasOwnProperty.call(e,"activeScriptHash")&&t.uint32(34).string(e.activeScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgMetadata;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cacheable=e.bool();break}case 2:{if(p.deltaPath&&p.deltaPath.length||(p.deltaPath=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.deltaPath.push(e.uint32())}else p.deltaPath.push(e.uint32());break}case 3:{p.elementDimensionSpec=$root.ElementDimensionSpec.decode(e,e.uint32());break}case 4:{p.activeScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgMetadata)return e;let t=new $root.ForwardMsgMetadata;if(e.cacheable!=null&&(t.cacheable=!!e.cacheable),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let o=0;o<e.deltaPath.length;++o)t.deltaPath[o]=e.deltaPath[o]>>>0}if(e.elementDimensionSpec!=null){if(typeof e.elementDimensionSpec!="object")throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");t.elementDimensionSpec=$root.ElementDimensionSpec.fromObject(e.elementDimensionSpec)}return e.activeScriptHash!=null&&(t.activeScriptHash=String(e.activeScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.deltaPath=[]),t.defaults&&(o.cacheable=!1,o.elementDimensionSpec=null,o.activeScriptHash=""),e.cacheable!=null&&e.hasOwnProperty("cacheable")&&(o.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){o.deltaPath=[];for(let d=0;d<e.deltaPath.length;++d)o.deltaPath[d]=e.deltaPath[d]}return e.elementDimensionSpec!=null&&e.hasOwnProperty("elementDimensionSpec")&&(o.elementDimensionSpec=$root.ElementDimensionSpec.toObject(e.elementDimensionSpec,t)),e.activeScriptHash!=null&&e.hasOwnProperty("activeScriptHash")&&(o.activeScriptHash=e.activeScriptHash),o},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+"/ForwardMsgMetadata"},n})();$root.ElementDimensionSpec=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.width=0,n.prototype.height=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(8).uint32(e.width),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ElementDimensionSpec;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.width=e.uint32();break}case 2:{p.height=e.uint32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ElementDimensionSpec)return e;let t=new $root.ElementDimensionSpec;return e.width!=null&&(t.width=e.width>>>0),e.height!=null&&(t.height=e.height>>>0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.width=0,o.height=0),e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),o},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+"/ElementDimensionSpec"},n})();const ForwardMsgList=$root.ForwardMsgList=(()=>{function n(i){if(this.messages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.messages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.messages!=null&&e.messages.length)for(let o=0;o<e.messages.length;++o)$root.ForwardMsg.encode(e.messages[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.messages&&p.messages.length||(p.messages=[]),p.messages.push($root.ForwardMsg.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgList)return e;let t=new $root.ForwardMsgList;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".ForwardMsgList.messages: array expected");t.messages=[];for(let o=0;o<e.messages.length;++o){if(typeof e.messages[o]!="object")throw TypeError(".ForwardMsgList.messages: object expected");t.messages[o]=$root.ForwardMsg.fromObject(e.messages[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.messages=[]),e.messages&&e.messages.length){o.messages=[];for(let d=0;d<e.messages.length;++d)o.messages[d]=$root.ForwardMsg.toObject(e.messages[d],t)}return o},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+"/ForwardMsgList"},n})(),GitInfo=$root.GitInfo=(()=>{function n(i){if(this.untrackedFiles=[],this.uncommittedFiles=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.repository!=null&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),e.module!=null&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let o=0;o<e.untrackedFiles.length;++o)t.uint32(34).string(e.untrackedFiles[o]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let o=0;o<e.uncommittedFiles.length;++o)t.uint32(42).string(e.uncommittedFiles[o]);return e.state!=null&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GitInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.repository=e.string();break}case 2:{p.branch=e.string();break}case 3:{p.module=e.string();break}case 4:{p.untrackedFiles&&p.untrackedFiles.length||(p.untrackedFiles=[]),p.untrackedFiles.push(e.string());break}case 5:{p.uncommittedFiles&&p.uncommittedFiles.length||(p.uncommittedFiles=[]),p.uncommittedFiles.push(e.string());break}case 6:{p.state=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GitInfo)return e;let t=new $root.GitInfo;
vendor: 16,384 bytes, line 18
18if(e.repository!=null&&(t.repository=String(e.repository)),e.branch!=null&&(t.branch=String(e.branch)),e.module!=null&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let o=0;o<e.untrackedFiles.length;++o)t.untrackedFiles[o]=String(e.untrackedFiles[o])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let o=0;o<e.uncommittedFiles.length;++o)t.uncommittedFiles[o]=String(e.uncommittedFiles[o])}switch(e.state){default:if(typeof e.state=="number"){t.state=e.state;break}break;case"DEFAULT":case 0:t.state=0;break;case"HEAD_DETACHED":case 1:t.state=1;break;case"AHEAD_OF_REMOTE":case 2:t.state=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.untrackedFiles=[],o.uncommittedFiles=[]),t.defaults&&(o.repository="",o.branch="",o.module="",o.state=t.enums===String?"DEFAULT":0),e.repository!=null&&e.hasOwnProperty("repository")&&(o.repository=e.repository),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.module!=null&&e.hasOwnProperty("module")&&(o.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){o.untrackedFiles=[];for(let d=0;d<e.untrackedFiles.length;++d)o.untrackedFiles[d]=e.untrackedFiles[d]}if(e.uncommittedFiles&&e.uncommittedFiles.length){o.uncommittedFiles=[];for(let d=0;d<e.uncommittedFiles.length;++d)o.uncommittedFiles[d]=e.uncommittedFiles[d]}return e.state!=null&&e.hasOwnProperty("state")&&(o.state=t.enums===String?$root.GitInfo.GitStates[e.state]===void 0?e.state:$root.GitInfo.GitStates[e.state]:e.state),o},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+"/GitInfo"},n.GitStates=(function(){const i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="HEAD_DETACHED"]=1,e[i[2]="AHEAD_OF_REMOTE"]=2,e})(),n})();$root.Logo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.image="",n.prototype.link="",n.prototype.iconImage="",n.prototype.size="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.image!=null&&Object.hasOwnProperty.call(e,"image")&&t.uint32(10).string(e.image),e.link!=null&&Object.hasOwnProperty.call(e,"link")&&t.uint32(18).string(e.link),e.iconImage!=null&&Object.hasOwnProperty.call(e,"iconImage")&&t.uint32(26).string(e.iconImage),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(34).string(e.size),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Logo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.image=e.string();break}case 2:{p.link=e.string();break}case 3:{p.iconImage=e.string();break}case 4:{p.size=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Logo)return e;let t=new $root.Logo;return e.image!=null&&(t.image=String(e.image)),e.link!=null&&(t.link=String(e.link)),e.iconImage!=null&&(t.iconImage=String(e.iconImage)),e.size!=null&&(t.size=String(e.size)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.image="",o.link="",o.iconImage="",o.size=""),e.image!=null&&e.hasOwnProperty("image")&&(o.image=e.image),e.link!=null&&e.hasOwnProperty("link")&&(o.link=e.link),e.iconImage!=null&&e.hasOwnProperty("iconImage")&&(o.iconImage=e.iconImage),e.size!=null&&e.hasOwnProperty("size")&&(o.size=e.size),o},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+"/Logo"},n})();const Navigation=$root.Navigation=(()=>{function n(i){if(this.sections=[],this.appPages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.sections!=null&&e.sections.length)for(let o=0;o<e.sections.length;++o)t.uint32(10).string(e.sections[o]);if(e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(18).fork()).ldelim();return e.position!=null&&Object.hasOwnProperty.call(e,"position")&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(40).bool(e.expanded),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Navigation;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.sections&&p.sections.length||(p.sections=[]),p.sections.push(e.string());break}case 2:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 3:{p.position=e.int32();break}case 4:{p.pageScriptHash=e.string();break}case 5:{p.expanded=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Navigation)return e;let t=new $root.Navigation;if(e.sections){if(!Array.isArray(e.sections))throw TypeError(".Navigation.sections: array expected");t.sections=[];for(let o=0;o<e.sections.length;++o)t.sections[o]=String(e.sections[o])}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".Navigation.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".Navigation.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}switch(e.position){default:if(typeof e.position=="number"){t.position=e.position;break}break;case"HIDDEN":case 0:t.position=0;break;case"SIDEBAR":case 1:t.position=1;break;case"TOP":case 2:t.position=2;break}return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.expanded!=null&&(t.expanded=!!e.expanded),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.sections=[],o.appPages=[]),t.defaults&&(o.position=t.enums===String?"HIDDEN":0,o.pageScriptHash="",o.expanded=!1),e.sections&&e.sections.length){o.sections=[];for(let d=0;d<e.sections.length;++d)o.sections[d]=e.sections[d]}if(e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}return e.position!=null&&e.hasOwnProperty("position")&&(o.position=t.enums===String?$root.Navigation.Position[e.position]===void 0?e.position:$root.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.expanded!=null&&e.hasOwnProperty("expanded")&&(o.expanded=e.expanded),o},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+"/Navigation"},n.Position=(function(){const i={},e=Object.create(i);return e[i[0]="HIDDEN"]=0,e[i[1]="SIDEBAR"]=1,e[i[2]="TOP"]=2,e})(),n})();$root.NewSession=(()=>{function n(i){if(this.appPages=[],this.fragmentIdsThisRun=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.initialize!=null&&Object.hasOwnProperty.call(e,"initialize")&&$root.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),e.scriptRunId!=null&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&$root.Config.encode(e.config,t.uint32(50).fork()).ldelim(),e.customTheme!=null&&Object.hasOwnProperty.call(e,"customTheme")&&$root.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(66).fork()).ldelim();if(e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.uint32(82).string(e.fragmentIdsThisRun[o]);return e.mainScriptHash!=null&&Object.hasOwnProperty.call(e,"mainScriptHash")&&t.uint32(90).string(e.mainScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.NewSession;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.initialize=$root.Initialize.decode(e,e.uint32());break}case 2:{p.scriptRunId=e.string();break}case 3:{p.name=e.string();break}case 4:{p.mainScriptPath=e.string();break}case 6:{p.config=$root.Config.decode(e,e.uint32());break}case 7:{p.customTheme=$root.CustomThemeConfig.decode(e,e.uint32());break}case 8:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 9:{p.pageScriptHash=e.string();break}case 10:{p.fragmentIdsThisRun&&p.fragmentIdsThisRun.length||(p.fragmentIdsThisRun=[]),p.fragmentIdsThisRun.push(e.string());break}case 11:{p.mainScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.NewSession)return e;let t=new $root.NewSession;if(e.initialize!=null){if(typeof e.initialize!="object")throw TypeError(".NewSession.initialize: object expected");t.initialize=$root.Initialize.fromObject(e.initialize)}if(e.scriptRunId!=null&&(t.scriptRunId=String(e.scriptRunId)),e.name!=null&&(t.name=String(e.name)),e.mainScriptPath!=null&&(t.mainScriptPath=String(e.mainScriptPath)),e.config!=null){if(typeof e.config!="object")throw TypeError(".NewSession.config: object expected");t.config=$root.Config.fromObject(e.config)}if(e.customTheme!=null){if(typeof e.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");t.customTheme=$root.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".NewSession.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.fragmentIdsThisRun){if(!Array.isArray(e.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");t.fragmentIdsThisRun=[];for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.fragmentIdsThisRun[o]=String(e.fragmentIdsThisRun[o])}return e.mainScriptHash!=null&&(t.mainScriptHash=String(e.mainScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.appPages=[],o.fragmentIdsThisRun=[]),t.defaults&&(o.initialize=null,o.scriptRunId="",o.name="",o.mainScriptPath="",o.config=null,o.customTheme=null,o.pageScriptHash="",o.mainScriptHash=""),e.initialize!=null&&e.hasOwnProperty("initialize")&&(o.initialize=$root.Initialize.toObject(e.initialize,t)),e.scriptRunId!=null&&e.hasOwnProperty("scriptRunId")&&(o.scriptRunId=e.scriptRunId),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.mainScriptPath!=null&&e.hasOwnProperty("mainScriptPath")&&(o.mainScriptPath=e.mainScriptPath),e.config!=null&&e.hasOwnProperty("config")&&(o.config=$root.Config.toObject(e.config,t)),e.customTheme!=null&&e.hasOwnProperty("customTheme")&&(o.customTheme=$root.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}if(e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){o.fragmentIdsThisRun=[];for(let d=0;d<e.fragmentIdsThisRun.length;++d)o.fragmentIdsThisRun[d]=e.fragmentIdsThisRun[d]}return e.mainScriptHash!=null&&e.hasOwnProperty("mainScriptHash")&&(o.mainScriptHash=e.mainScriptHash),o},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+"/NewSession"},n})();$root.Initialize=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.userInfo=null,n.prototype.environmentInfo=null,n.prototype.sessionStatus=null,n.prototype.commandLine="",n.prototype.sessionId="",n.prototype.isHello=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.userInfo!=null&&Object.hasOwnProperty.call(e,"userInfo")&&$root.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),e.environmentInfo!=null&&Object.hasOwnProperty.call(e,"environmentInfo")&&$root.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),e.sessionStatus!=null&&Object.hasOwnProperty.call(e,"sessionStatus")&&$root.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork()).ldelim(),e.commandLine!=null&&Object.hasOwnProperty.call(e,"commandLine")&&t.uint32(42).string(e.commandLine),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(56).bool(e.isHello),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Initialize;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.userInfo=$root.UserInfo.decode(e,e.uint32());break}case 3:{p.environmentInfo=$root.EnvironmentInfo.decode(e,e.uint32());break}case 4:{p.sessionStatus=$root.SessionStatus.decode(e,e.uint32());break}case 5:{p.commandLine=e.string();break}case 6:{p.sessionId=e.string();break}case 7:{p.isHello=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Initialize)return e;let t=new $root.Initialize;if(e.userInfo!=null){if(typeof e.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");t.userInfo=$root.UserInfo.fromObject(e.userInfo)}if(e.environmentInfo!=null){if(typeof e.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=$root.EnvironmentInfo.fromObject(e.environmentInfo)}if(e.sessionStatus!=null){if(typeof e.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");t.sessionStatus=$root.SessionStatus.fromObject(e.sessionStatus)}return e.commandLine!=null&&(t.commandLine=String(e.commandLine)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.isHello!=null&&(t.isHello=!!e.isHello),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.userInfo=null,o.environmentInfo=null,o.sessionStatus=null,o.commandLine="",o.sessionId="",o.isHello=!1),e.userInfo!=null&&e.hasOwnProperty("userInfo")&&(o.userInfo=$root.UserInfo.toObject(e.userInfo,t)),e.environmentInfo!=null&&e.hasOwnProperty("environmentInfo")&&(o.environmentInfo=$root.EnvironmentInfo.toObject(e.environmentInfo,t)),e.sessionStatus!=null&&e.hasOwnProperty("sessionStatus")&&(o.sessionStatus=$root.SessionStatus.toObject(e.sessionStatus,t)),e.commandLine!=null&&e.hasOwnProperty("commandLine")&&(o.commandLine=e.commandLine),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),o},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+"/Initialize"},n})();co
18nst Config=$root.Config=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.gatherUsageStats=!1,n.prototype.maxCachedMessageAge=0,n.prototype.mapboxToken="",n.prototype.allowRunOnSave=!1,n.prototype.hideTopBar=!1,n.prototype.hideSidebarNav=!1,n.prototype.toolbarMode=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.gatherUsageStats!=null&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(34).string(e.mapboxToken),e.allowRunOnSave!=null&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&Object.hasOwnProperty.call(e,"toolbarMode")&&t.uint32(64).int32(e.toolbarMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Config;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.gatherUsageStats=e.bool();break}case 3:{p.maxCachedMessageAge=e.int32();break}case 4:{p.mapboxToken=e.string();break}case 5:{p.allowRunOnSave=e.bool();break}case 6:{p.hideTopBar=e.bool();break}case 7:{p.hideSidebarNav=e.bool();break}case 8:{p.toolbarMode=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Config)return e;let t=new $root.Config;switch(e.gatherUsageStats!=null&&(t.gatherUsageStats=!!e.gatherUsageStats),e.maxCachedMessageAge!=null&&(t.maxCachedMessageAge=e.maxCachedMessageAge|0),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.allowRunOnSave!=null&&(t.allowRunOnSave=!!e.allowRunOnSave),e.hideTopBar!=null&&(t.hideTopBar=!!e.hideTopBar),e.hideSidebarNav!=null&&(t.hideSidebarNav=!!e.hideSidebarNav),e.toolbarMode){default:if(typeof e.toolbarMode=="number"){t.toolbarMode=e.toolbarMode;break}break;case"AUTO":case 0:t.toolbarMode=0;break;case"DEVELOPER":case 1:t.toolbarMode=1;break;case"VIEWER":case 2:t.toolbarMode=2;break;case"MINIMAL":case 3:t.toolbarMode=3;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.gatherUsageStats=!1,o.maxCachedMessageAge=0,o.mapboxToken="",o.allowRunOnSave=!1,o.hideTopBar=!1,o.hideSidebarNav=!1,o.toolbarMode=t.enums===String?"AUTO":0),e.gatherUsageStats!=null&&e.hasOwnProperty("gatherUsageStats")&&(o.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&e.hasOwnProperty("maxCachedMessageAge")&&(o.maxCachedMessageAge=e.maxCachedMessageAge),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(o.mapboxToken=e.mapboxToken),e.allowRunOnSave!=null&&e.hasOwnProperty("allowRunOnSave")&&(o.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&e.hasOwnProperty("hideTopBar")&&(o.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&e.hasOwnProperty("hideSidebarNav")&&(o.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&e.hasOwnProperty("toolbarMode")&&(o.toolbarMode=t.enums===String?$root.Config.ToolbarMode[e.toolbarMode]===void 0?e.toolbarMode:$root.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),o},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+"/Config"},n.ToolbarMode=(function(){const i={},e=Object.create(i);return e[i[0]="AUTO"]=0,e[i[1]="DEVELOPER"]=1,e[i[2]="VIEWER"]=2,e[i[3]="MINIMAL"]=3,e})(),n})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function n(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}
18n.prototype.primaryColor="",n.prototype.secondaryBackgroundColor="",n.prototype.backgroundColor="",n.prototype.textColor="",n.prototype.font=0,n.prototype.base=0,n.prototype.widgetBackgroundColor="",n.prototype.widgetBorderColor="",n.prototype.radii=null,n.prototype.headingFont="",n.prototype.bodyFont="",n.prototype.codeFont="",n.prototype.fontFaces=$util.emptyArray,n.prototype.fontSources=$util.emptyArray,n.prototype.fontSizes=null,n.prototype.skeletonBackgroundColor="",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.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.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,675 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,"_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(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.primaryColor!=null&&Object.hasOwnProperty.call(t,"primaryColor")&&o.uint32(10).string(t.primaryColor),t.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(t,"secondaryBackgroundColor")&&o.uint32(18).string(t.secondaryBackgroundColor),t.backgroundColor!=null&&Object.hasOwnProperty.call(t,"backgroundColor")&&o.uint32(26).string(t.backgroundColor),t.textColor!=null&&Object.hasOwnProperty.call(t,"textColor")&&o.uint32(34).string(t.textColor),t.font!=null&&Object.hasOwnProperty.call(t,"font")&&o.uint32(40).int32(t.font),t.base!=null&&Object.hasOwnProperty.call(t,"base")&&o.uint32(48).int32(t.base),t.widgetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"widgetBackgroundColor")&&o.uint32(58).string(t.widgetBackgroundColor),t.widgetBorderColor!=null&&Object.hasOwnProperty.call(t,"widgetBorderColor")&&o.uint32(66).string(t.widgetBorderColor),t.radii!=null&&Object.hasOwnProperty.call(t,"radii")&&$root.Radii.encode(t.radii,o.uint32(74).fork()).ldelim(),t.headingFont!=null&&Object.hasOwnProperty.call(t,"headingFont")&&o.uint32(98).string(t.headingFont),t.bodyFont!=null&&Object.hasOwnProperty.call(t,"bodyFont")&&o.uint32(106).string(t.bodyFont),t.codeFont!=null&&Object.hasOwnProperty.call(t,"codeFont")&&o.uint32(114).string(t.codeFont),t.fontFaces!=null&&t.fontFaces.length)for(let d=0;d<t.fontFaces.length;++d)$root.FontFace.encode(t.fontFaces[d],o.uint32(122).fork()).ldelim();if(t.fontSizes!=null&&Object.hasOwnProperty.call(t,"fontSizes")&&$root.FontSizes.encode(t.fontSizes,o.uint32(130).fork()).ldelim(),t.skeletonBackgroundColor!=null&&Object.hasOwnProperty.call(t,"skeletonBackgroundColor")&&o.uint32(138).string(t.skeletonBackgroundColor),t.baseRadius!=null&&Object.hasOwnProperty.call(t,"baseRadius")&&o.uint32(146).string(t.baseRadius),t.borderColor!=null&&Object.hasOwnProperty.call(t,"borderColor")&&o.uint32(154).string(t.borderColor),t.showWidgetBorder!=null&&Object.hasOwnProperty.call(t,"showWidgetBorder")&&o.uint32(160).bool(t.showWidgetBorder),t.linkColor!=null&&Object.hasOwnProperty.call(t,"linkColor")&&o.uint32(170).string(t.linkColor),t.baseFontSize!=null&&Object.hasOwnProperty.call(t,"baseFontSize")&&o.uint32(176).int32(t.baseFontSize),t.showSidebarBorder!=null&&Object.hasOwnProperty.call(t,"showSidebarBorder")&&o.uint32(184).bool(t.showSidebarBorder),t.sidebar!=null&&Object.hasOwnProperty.call(t,"sidebar")&&$root.CustomThemeConfig.encode(t.sidebar,o.uint32(194).fork()).ldelim(),t.codeBackgroun
18dColor!=null&&Object.hasOwnProperty.call(t,"codeBackgroundColor")&&o.uint32(202).string(t.codeBackgroundColor),t.buttonRadius!=null&&Object.hasOwnProperty.call(t,"buttonRadius")&&o.uint32(210).string(t.buttonRadius),t.dataframeBorderColor!=null&&Object.hasOwnProperty.call(t,"dataframeBorderColor")&&o.uint32(218).string(t.dataframeBorderColor),t.codeFontSize!=null&&Object.hasOwnProperty.call(t,"codeFontSize")&&o.uint32(226).string(t.codeFontSize),t.linkUnderline!=null&&Object.hasOwnProperty.call(t,"linkUnderline")&&o.uint32(232).bool(t.linkUnderline),t.baseFontWeight!=null&&Object.hasOwnProperty.call(t,"baseFontWeight")&&o.uint32(240).int32(t.baseFontWeight),t.dataframeHeaderBackgroundColor!=null&&Object.hasOwnProperty.call(t,"dataframeHeaderBackgroundColor")&&o.uint32(250).string(t.dataframeHeaderBackgroundColor),t.codeFontWeight!=null&&Object.hasOwnProperty.call(t,"codeFontWeight")&&o.uint32(256).int32(t.codeFontWeight),t.chartCategoricalColors!=null&&t.chartCategoricalColors.length)for(let d=0;d<t.chartCategoricalColors.length;++d)o.uint32(266).string(t.chartCategoricalColors[d]);if(t.headingFontWeights!=null&&t.headingFontWeights.length){o.uint32(274).fork();for(let d=0;d<t.headingFontWeights.length;++d)o.int32(t.headingFontWeights[d]);o.ldelim()}if(t.headingFontSizes!=null&&t.headingFontSizes.length)for(let d=0;d<t.headingFontSizes.length;++d)o.uint32(282).string(t.headingFontSizes[d]);if(t.chartSequentialColors!=null&&t.chartSequentialColors.length)for(let d=0;d<t.chartSequentialColors.length;++d)o.uint32(290).string(t.chartSequentialColors[d]);if(t.fontSources!=null&&t.fontSources.length)for(let d=0;d<t.fontSources.length;++d)$root.FontSource.encode(t.fontSources[d],o.uint32(298).fork()).ldelim();return t.redColor!=null&&Object.hasOwnProperty.call(t,"redColor")&&o.uint32(306).string(t.redColor),t.orangeColor!=null&&Object.hasOwnProperty.call(t,"orangeColor")&&o.uint32(314).string(t.orangeColor),t.yellowColor!=null&&Object.hasOwnProperty.call(t,"yellowColor")&&o.uint32(322).string(t.yellowColor),t.blueColor!=null&&Object.hasOwnProperty.call(t,"blueColor")&&o.uint32(330).string(t.blueColor),t.greenColor!=null&&Object.hasOwnProperty.call(t,"greenColor")&&o.uint32(338).string(t.greenColor),t.violetColor!=null&&Object.hasOwnProperty.call(t,"violetColor")&&o.uint32(346).string(t.violetColor),t.grayColor!=null&&Object.hasOwnProperty.call(t,"grayColor")&&o.uint32(354).string(t.grayColor),t.redBackgroundColor!=null&&Object.hasOwnProperty.call(t,"redBackgroundColor")&&o.uint32(362).string(t.redBackgroundColor),t.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"orangeBackgroundColor")&&o.uint32(370).string(t.orangeBackgroundColor),t.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(t,"yellowBackgroundColor")&&o.uint32(378).string(t.yellowBackgroundColor),t.blueBackgroundColor!=null&&Object.hasOwnProperty.call(t,"blueBackgroundColor")&&o.uint32(386).string(t.blueBackgroundColor),t.greenBackgroundColor!=null&&Object.hasOwnProperty.call(t,"greenBackgroundColor")&&o.uint32(394).string(t.greenBackgroundColor),t.violetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"violetBackgroundColor")&&o.uint32(402).string(t.violetBackgroundColor),t.grayBackgroundColor!=null&&Object.hasOwnProperty.call(t,"grayBackgroundColor")&&o.uint32(410).string(t.grayBackgroundColor),t.redTextColor!=null&&Object.hasOwnProperty.call(t,"redTextColor")&&o.uint32(418).string(t.redTextColor),t.orangeTextColor!=null&&Object.hasOwnProperty.call(t,"orangeTextColor")&&o.uint32(426).string(t.orangeTextColor),t.yellowTextColor!=null&&Object.hasOwnProperty.call(t,"yellowTextColor")&&o.uint32(434).string(t.yellowTextColor),t.blueTextColor!=null&&Object.hasOwnProperty.call(t,"blueTextColor")&&o.uint32(442).string(t.blueTextColor),t.greenTextColor!=null&&Object.hasOwnProperty.call(t,"greenTextColor")&&o.uint32(450).string(t.greenTextColor),t.violetTextColor!=null&&Object.hasOwnProperty.call(t,"violetTextColor")&&o.uint32(458).string(t.violetTextColor),t.grayTextColor!=null&&Object.hasOwnProperty.call(t,"grayTextColor")&&o.uint32(466).string(t.grayTextColor),t.codeTextColor!=null&&Object.hasOwnProperty.call(t,"codeTextColor")&&o.uint32(474).string(t.codeTextColor),t.light!=null&&Object.hasOwnProperty.call(t,"light")&&$root.CustomThemeConfig.encode(t.light,o.uint32(482).fork()).ldelim(),t.dark!=null&&Object.hasOwnProperty.call(t,"dark")&&$root.CustomThemeConfig.encode(t.dark,o.uint32(490).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.CustomThemeConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.primaryColor=t.string();break}
18case 2:{h.secondaryBackgroundColor=t.string();break}case 3:{h.backgroundColor=t.string();break}case 4:{h.textColor=t.string();break}case 5:{h.font=t.int32();break}case 6:{h.base=t.int32();break}case 7:{h.widgetBackgroundColor=t.string();break}case 8:{h.widgetBorderColor=t.string();break}case 9:{h.radii=$root.Radii.decode(t,t.uint32());break}case 12:{h.headingFont=t.string();break}case 13:{h.bodyFont=t.string();break}case 14:{h.codeFont=t.string();break}case 15:{h.fontFaces&&h.fontFaces.length||(h.fontFaces=[]),h.fontFaces.push($root.FontFace.decode(t,t.uint32()));break}case 37:{h.fontSources&&h.fontSources.length||(h.fontSources=[]),h.fontSources.push($root.FontSource.decode(t,t.uint32()));break}case 16:{h.fontSizes=$root.FontSizes.decode(t,t.uint32());break}case 17:{h.skeletonBackgroundColor=t.string();break}case 18:{h.baseRadius=t.string();break}case 26:{h.buttonRadius=t.string();break}case 19:{h.borderColor=t.string();break}case 27:{h.dataframeBorderColor=t.string();break}case 20:{h.showWidgetBorder=t.bool();break}case 21:{h.linkColor=t.string();break}case 29:{h.linkUnderline=t.bool();break}case 22:{h.baseFontSize=t.int32();break}case 30:{h.baseFontWeight=t.int32();break}case 32:{h.codeFontWeight=t.int32();break}case 28:{h.codeFontSize=t.string();break}case 35:{h.headingFontSizes&&h.headingFontSizes.length||(h.headingFontSizes=[]),h.headingFontSizes.push(t.string());break}case 34:{if(h.headingFontWeights&&h.headingFontWeights.length||(h.headingFontWeights=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.headingFontWeights.push(t.int32())}else h.headingFontWeights.push(t.int32());break}case 23:{h.showSidebarBorder=t.bool();break}case 59:{h.codeTextColor=t.string();break}case 25:{h.codeBackgroundColor=t.string();break}case 31:{h.dataframeHeaderBackgroundColor=t.string();break}case 33:{h.chartCategoricalColors&&h.chartCategoricalColors.length||(h.chartCategoricalColors=[]),h.chartCategoricalColors.push(t.string());break}case 36:{h.chartSequentialColors&&h.chartSequentialColors.length||(h.chartSequentialColors=[]),h.chartSequentialColors.push(t.string());break}case 38:{h.redColor=t.string();break}case 39:{h.orangeColor=t.string();break}case 40:{h.yellowColor=t.string();break}case 41:{h.blueColor=t.string();break}case 42:{h.greenColor=t.string();break}case 43:{h.violetColor=t.string();break}case 44:{h.grayColor=t.string();break}case 45:{h.redBackgroundColor=t.string();break}case 46:{h.orangeBackgroundColor=t.string();break}case 47:{h.yellowBackgroundColor=t.string();break}case 48:{h.blueBackgroundColor=t.string();break}case 49:{h.greenBackgroundColor=t.string();break}case 50:{h.violetBackgroundColor=t.string();break}case 51:{h.grayBackgroundColor=t.string();break}case 52:{h.redTextColor=t.string();break}case 53:{h.orangeTextColor=t.string();break}case 54:{h.yellowTextColor=t.string();break}case 55:{h.blueTextColor=t.string();break}case 56:{h.greenTextColor=t.string();break}case 57:{h.violetTextColor=t.string();break}case 58:{h.grayTextColor=t.string();break}case 24:{h.sidebar=$root.CustomThemeConfig.decode(t,t.uint32());break}case 60:{h.light=$root.CustomThemeConfig.decode(t,t.uint32());break}case 61:{h.dark=$root.CustomThemeConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.CustomThemeConfig)return t;let o=new $root.CustomThemeConfig;switch(t.primaryColor!=null&&(o.primaryColor=String(t.primaryColor)),t.secondaryBackgroundColor!=null&&(o.secondaryBackgroundColor=String(t.secondaryBackgroundColor)),t.backgroundColor!=null&&(o.backgroundColor=String(t.backgroundColor)),t.textColor!=null&&(o.textColor=String(t.textColor)),t.font){default:if(typeof t.font=="number"){o.font=t.font;break}break;case"SANS_SERIF":case 0:o.font=0;break;case"SERIF":case 1:o.font=1;break;case"MONOSPACE":case 2:o.font=2;break}switch(t.base){default:if(typeof t.base=="number"){o.base=t.base;break}break;case"LIGHT":case 0:o.base=0;break;case"DARK":case 1:o.base=1;break}if(t.widgetBackgroundColor!=null&&(o.widgetBackgroundColor=String(t.widgetBackgroundColor)),t.widgetBorderColor!=null&&(o.widgetBorderColor=String(t.widgetBorderColor)),t.radii!=null){if(typeof t.radii!="object")throw TypeError(".CustomThemeConfig.radii: object expected");o.radii=$root.Radii.fromObject(t.radii)}if(t.headingFont!=null&&(o.headingFont=String(t.headingFont)),t.bodyFont!=null&&(o.bodyFont=String(t.bodyFont)),t.codeFont!=null&&(o.codeFont=String(t.codeFont)),t.fontFaces){if(!Array.isArray(t.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");o.fontFaces=[];for(let d=0;d<t.fontFaces.length;++d){if(typeof t.fontFaces[d]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");o.fontFaces[d]=$root.FontFace.fromObject(t.fontFaces[d])}}if(t.fontSources){if(!Array.isArray(t.fontSources))throw TypeError(".CustomThemeConfig.fontSources: array expected");o.fontSources=[];for(let d=0;d<t.fontSources.length;++d){if(typeof t.fontSources[d]!="object")throw TypeError(".CustomThemeConfig.fontSources: object expected");o.fontSources[d]=$root.FontSource.fromObject(t.fontSources[d])}}if(t.fontSizes!=null){if(typeof t.fontSizes!="object")throw TypeError(".CustomThemeConfig.fontSizes: object expected");o.fontSizes=$root.FontSizes.fromObject(t.fontSizes)}
18if(t.skeletonBackgroundColor!=null&&(o.skeletonBackgroundColor=String(t.skeletonBackgroundColor)),t.baseRadius!=null&&(o.baseRadius=String(t.baseRadius)),t.buttonRadius!=null&&(o.buttonRadius=String(t.buttonRadius)),t.borderColor!=null&&(o.borderColor=String(t.borderColor)),t.dataframeBorderColor!=null&&(o.dataframeBorderColor=String(t.dataframeBorderColor)),t.showWidgetBorder!=null&&(o.showWidgetBorder=!!t.showWidgetBorder),t.linkColor!=null&&(o.linkColor=String(t.linkColor)),t.linkUnderline!=null&&(o.linkUnderline=!!t.linkUnderline),t.baseFontSize!=null&&(o.baseFontSize=t.baseFontSize|0),t.baseFontWeight!=null&&(o.baseFontWeight=t.baseFontWeight|0),t.codeFontWeight!=null&&(o.codeFontWeight=t.codeFontWeight|0),t.codeFontSize!=null&&(o.codeFontSize=String(t.codeFontSize)),t.headingFontSizes){if(!Array.isArray(t.headingFontSizes))throw TypeError(".CustomThemeConfig.headingFontSizes: array expected");o.headingFontSizes=[];for(let d=0;d<t.headingFontSizes.length;++d)o.headingFontSizes[d]=String(t.headingFontSizes[d])}if(t.headingFontWeights){if(!Array.isArray(t.headingFontWeights))throw TypeError(".CustomThemeConfig.headingFontWeights: array expected");o.headingFontWeights=[];for(let d=0;d<t.headingFontWeights.length;++d)o.headingFontWeights[d]=t.headingFontWeights[d]|0}if(t.showSidebarBorder!=null&&(o.showSidebarBorder=!!t.showSidebarBorder),t.codeTextColor!=null&&(o.codeTextColor=String(t.codeTextColor)),t.codeBackgroundColor!=null&&(o.codeBackgroundColor=String(t.codeBackgroundColor)),t.dataframeHeaderBackgroundColor!=null&&(o.dataframeHeaderBackgroundColor=String(t.dataframeHeaderBackgroundColor)),t.chartCategoricalColors){if(!Array.isArray(t.chartCategoricalColors))throw TypeError(".CustomThemeConfig.chartCategoricalColors: array expected");o.chartCategoricalColors=[];for(let d=0;d<t.chartCategoricalColors.length;++d)o.chartCategoricalColors[d]=String(t.chartCategoricalColors[d])}if(t.chartSequentialColors){if(!Array.isArray(t.chartSequentialColors))throw TypeError(".CustomThemeConfig.chartSequentialColors: array expected");o.chartSequentialColors=[];for(let d=0;d<t.chartSequentialColors.length;++d)o.chartSequentialColors[d]=String(t.chartSequentialColors[d])}if(t.redColor!=null&&(o.redColor=String(t.redColor)),t.orangeColor!=null&&(o.orangeColor=String(t.orangeColor)),t.yellowColor!=null&&(o.yellowColor=String(t.yellowColor)),t.blueColor!=null&&(o.blueColor=String(t.blueColor)),t.greenColor!=null&&(o.greenColor=String(t.greenColor)),t.violetColor!=null&&(o.violetColor=String(t.violetColor)),t.grayColor!=null&&(o.grayColor=String(t.grayColor)),t.redBackgroundColor!=null&&(o.redBackgroundColor=String(t.redBackgroundColor)),t.orangeBackgroundColor!=null&&(o.orangeBackgroundColor=String(t.orangeBackgroundColor)),t.yellowBackgroundColor!=null&&(o.yellowBackgroundColor=String(t.yellowBackgroundColor)),t.blueBackgroundColor!=null&&(o.blueBackgroundColor=String(t.blueBackgroundColor)),t.greenBackgroundColor!=null&&(o.greenBackgroundColor=String(t.greenBackgroundColor)),t.violetBackgroundColor!=null&&(o.violetBackgroundColor=String(t.violetBackgroundColor)),t.grayBackgroundColor!=null&&(o.grayBackgroundColor=String(t.grayBackgroundColor)),t.redTextColor!=null&&(o.redTextColor=String(t.redTextColor)),t.orangeTextColor!=null&&(o.orangeTextColor=String(t.orangeTextColor)),t.yellowTextColor!=null&&(o.yellowTextColor=String(t.yellowTextColor)),t.blueTextColor!=null&&(o.blueTextColor=String(t.blueTextColor)),t.greenTextColor!=null&&(o.greenTextColor=String(t.greenTextColor)),t.violetTextColor!=null&&(o.violetTextColor=String(t.violetTextColor)),t.grayTextColor!=null&&(o.grayTextColor=String(t.grayTextColor)),t.sidebar!=null){if(typeof t.sidebar!="object")throw TypeError(".CustomThemeConfig.sidebar: object expected");o.sidebar=$root.CustomThemeConfig.fromObject(t.sidebar)}if(t.light!=null){if(typeof t.light!="object")throw TypeError(".CustomThemeConfig.light: object expected");o.light=$root.CustomThemeConfig.fromObject(t.light)}if(t.dark!=null){if(typeof t.dark!="object")throw TypeError(".CustomThemeConfig.dark: object expected");o.dark=$root.CustomThemeConfig.fromObject(t.dark)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fontFaces=[],d.chartCategoricalColors=[],d.headingFontWeights=[],d.headingFontSizes=[],d.chartSequentialColors=[],d.fontSources=[]),o.defaults&&(d.primaryColor="",d.secondaryBackgroun
vendor: 5,886 bytes, line 18
18dColor="",d.backgroundColor="",d.textColor="",d.font=o.enums===String?"SANS_SERIF":0,d.base=o.enums===String?"LIGHT":0,d.widgetBackgroundColor="",d.widgetBorderColor="",d.radii=null,d.headingFont="",d.bodyFont="",d.codeFont="",d.fontSizes=null,d.skeletonBackgroundColor=""),t.primaryColor!=null&&t.hasOwnProperty("primaryColor")&&(d.primaryColor=t.primaryColor),t.secondaryBackgroundColor!=null&&t.hasOwnProperty("secondaryBackgroundColor")&&(d.secondaryBackgroundColor=t.secondaryBackgroundColor),t.backgroundColor!=null&&t.hasOwnProperty("backgroundColor")&&(d.backgroundColor=t.backgroundColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(d.textColor=t.textColor),t.font!=null&&t.hasOwnProperty("font")&&(d.font=o.enums===String?$root.CustomThemeConfig.FontFamily[t.font]===void 0?t.font:$root.CustomThemeConfig.FontFamily[t.font]:t.font),t.base!=null&&t.hasOwnProperty("base")&&(d.base=o.enums===String?$root.CustomThemeConfig.BaseTheme[t.base]===void 0?t.base:$root.CustomThemeConfig.BaseTheme[t.base]:t.base),t.widgetBackgroundColor!=null&&t.hasOwnProperty("widgetBackgroundColor")&&(d.widgetBackgroundColor=t.widgetBackgroundColor),t.widgetBorderColor!=null&&t.hasOwnProperty("widgetBorderColor")&&(d.widgetBorderColor=t.widgetBorderColor),t.radii!=null&&t.hasOwnProperty("radii")&&(d.radii=$root.Radii.toObject(t.radii,o)),t.headingFont!=null&&t.hasOwnProperty("headingFont")&&(d.headingFont=t.headingFont),t.bodyFont!=null&&t.hasOwnProperty("bodyFont")&&(d.bodyFont=t.bodyFont),t.codeFont!=null&&t.hasOwnProperty("codeFont")&&(d.codeFont=t.codeFont),t.fontFaces&&t.fontFaces.length){d.fontFaces=[];for(let p=0;p<t.fontFaces.length;++p)d.fontFaces[p]=$root.FontFace.toObject(t.fontFaces[p],o)}if(t.fontSizes!=null&&t.hasOwnProperty("fontSizes")&&(d.fontSizes=$root.FontSizes.toObject(t.fontSizes,o)),t.skeletonBackgroundColor!=null&&t.hasOwnProperty("skeletonBackgroundColor")&&(d.skeletonBackgroundColor=t.skeletonBackgroundColor),t.baseRadius!=null&&t.hasOwnProperty("baseRadius")&&(d.baseRadius=t.baseRadius,o.oneofs&&(d._baseRadius="baseRadius")),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(d.borderColor=t.borderColor,o.oneofs&&(d._borderColor="borderColor")),t.showWidgetBorder!=null&&t.hasOwnProperty("showWidgetBorder")&&(d.showWidgetBorder=t.showWidgetBorder,o.oneofs&&(d._showWidgetBorder="showWidgetBorder")),t.linkColor!=null&&t.hasOwnProperty("linkColor")&&(d.linkColor=t.linkColor,o.oneofs&&(d._linkColor="linkColor")),t.baseFontSize!=null&&t.hasOwnProperty("baseFontSize")&&(d.baseFontSize=t.baseFontSize,o.oneofs&&(d._baseFontSize="baseFontSize")),t.showSidebarBorder!=null&&t.hasOwnProperty("showSidebarBorder")&&(d.showSidebarBorder=t.showSidebarBorder,o.oneofs&&(d._showSidebarBorder="showSidebarBorder")),t.sidebar!=null&&t.hasOwnProperty("sidebar")&&(d.sidebar=$root.CustomThemeConfig.toObject(t.sidebar,o),o.oneofs&&(d._sidebar="sidebar")),t.codeBackgroundColor!=null&&t.hasOwnProperty("codeBackgroundColor")&&(d.codeBackgroundColor=t.codeBackgroundColor,o.oneofs&&(d._codeBackgroundColor="codeBackgroundColor")),t.buttonRadius!=null&&t.hasOwnProperty("buttonRadius")&&(d.buttonRadius=t.buttonRadius,o.oneofs&&(d._buttonRadius="buttonRadius")),t.dataframeBorderColor!=null&&t.hasOwnProperty("dataframeBorderColor")&&(d.dataframeBorderColor=t.dataframeBorderColor,o.oneofs&&(d._dataframeBorderColor="dataframeBorderColor")),t.codeFontSize!=null&&t.hasOwnProperty("codeFontSize")&&(d.codeFontSize=t.codeFontSize,o.oneofs&&(d._codeFontSize="codeFontSize")),t.linkUnderline!=null&&t.hasOwnProperty("linkUnderline")&&(d.linkUnderline=t.linkUnderline,o.oneofs&&(d._linkUnderline="linkUnderline")),t.baseFontWeight!=null&&t.hasOwnProperty("baseFontWeight")&&(d.baseFontWeight=t.baseFontWeight,o.oneofs&&(d._baseFontWeight="baseFontWeight")),t.dataframeHeaderBackgroundColor!=null&&t.hasOwnProperty("dataframeHeaderBackgroundColor")&&(d.dataframeHeaderBackgroundColor=t.dataframeHeaderBackgroundColor,o.oneofs&&(d._dataframeHeaderBackgroundColor="dataframeHeaderBackgroundColor")),t.codeFontWeight!=null&&t.hasOwnProperty("codeFontWeight")&&(d.codeFontWeight=t.codeFontWeight,o.oneofs&&(d._codeFontWeight="codeFontWeight")),t.chartCategoricalColors&&t.chartCategoricalColors.length){d.chartCategoricalColors=[];for(let p=0;p<t.chartCategoricalColors.length;++p)d.chartCategoricalColors[p]=t.chartCategoricalColors[p]}if(t.headingFontWeights&&t.headingFontWeights.length){d.headingFontWeights=[];for(let p=0;p<t.headingFontWeights.length;++p)d.headingFontWeights[p]=t.headingFontWeights[p]}if(t.headingFontSizes&&t.headingFontSizes.length){d.headingFontSizes=[];for(let p=0;p<t.headingFontSizes.length;++p)d.headingFontSizes[p]=t.headingFontSizes[p]}if(t.chartSequentialColors&&t.chartSequentialColors.length){d.chartSequentialColors=[];for(let p=0;p<t.chartSequentialColors.length;++p)d.chartSequentialColors[p]=t.chartSequentialColors[p]}if(t.fontSources&&t.fontSources.length){d.fontSources=[];for(let p=0;p<t.fontSources.length;++p)d.fontSources[p]=$root.FontSource.toObject(t.fontSources[p],o)}return t.redColor!=null&&t.hasOwnProperty("redColor")&&(d.redColor=t.redColor,o.oneofs&&(d._redColor="redColor")),t.orangeColor!=null&&t.hasOwnProperty("orangeColor")&&(d.orangeColor=t.orangeColor,o.oneofs&&(d._orangeColor="orangeColor")),t.yellowColor!=null&&t.hasOwnProperty("yellowColor")&&(d.yellowColor=t.yellowColor,o.oneofs&&(d._yellowColor="yellowColor")),t.blueColor!=null&&t.hasOwnProperty("blueColor")&&(d.blueColor=t.blueColor,o.oneofs&&(d._blueColor="blueColor")),t.greenColor!=null&&t.hasOwnProperty("greenColor")&&(d.greenColor=t.greenColor,o.oneofs&&(d._greenColor="greenColor")),t.violetColor!=null&&t.hasOwnProperty("violetColor")&&(d.violetColor=t.violetColor,o.oneofs&&(d._violetColor="violetColor")),t.grayColor!=null&&t.hasOwnProperty("grayColor")&&(d.grayColor=t.grayColor,o.oneofs&&(d._grayColor="grayColor")),t.redBackgroun
18dColor!=null&&t.hasOwnProperty("redBackgroundColor")&&(d.redBackgroundColor=t.redBackgroundColor,o.oneofs&&(d._redBackgroundColor="redBackgroundColor")),t.orangeBackgroundColor!=null&&t.hasOwnProperty("orangeBackgroundColor")&&(d.orangeBackgroundColor=t.orangeBackgroundColor,o.oneofs&&(d._orangeBackgroundColor="orangeBackgroundColor")),t.yellowBackgroundColor!=null&&t.hasOwnProperty("yellowBackgroundColor")&&(d.yellowBackgroundColor=t.yellowBackgroundColor,o.oneofs&&(d._yellowBackgroundColor="yellowBackgroundColor")),t.blueBackgroundColor!=null&&t.hasOwnProperty("blueBackgroundColor")&&(d.blueBackgroundColor=t.blueBackgroundColor,o.oneofs&&(d._blueBackgroundColor="blueBackgroundColor")),t.greenBackgroundColor!=null&&t.hasOwnProperty("greenBackgroundColor")&&(d.greenBackgroundColor=t.greenBackgroundColor,o.oneofs&&(d._greenBackgroundColor="greenBackgroundColor")),t.violetBackgroundColor!=null&&t.hasOwnProperty("violetBackgroundColor")&&(d.violetBackgroundColor=t.violetBackgroundColor,o.oneofs&&(d._violetBackgroundColor="violetBackgroundColor")),t.grayBackgroundColor!=null&&t.hasOwnProperty("grayBackgroundColor")&&(d.grayBackgroundColor=t.grayBackgroundColor,o.oneofs&&(d._grayBackgroundColor="grayBackgroundColor")),t.redTextColor!=null&&t.hasOwnProperty("redTextColor")&&(d.redTextColor=t.redTextColor,o.oneofs&&(d._redTextColor="redTextColor")),t.orangeTextColor!=null&&t.hasOwnProperty("orangeTextColor")&&(d.orangeTextColor=t.orangeTextColor,o.oneofs&&(d._orangeTextColor="orangeTextColor")),t.yellowTextColor!=null&&t.hasOwnProperty("yellowTextColor")&&(d.yellowTextColor=t.yellowTextColor,o.oneofs&&(d._yellowTextColor="yellowTextColor")),t.blueTextColor!=null&&t.hasOwnProperty("blueTextColor")&&(d.blueTextColor=t.blueTextColor,o.oneofs&&(d._blueTextColor="blueTextColor")),t.greenTextColor!=null&&t.hasOwnProperty("greenTextColor")&&(d.greenTextColor=t.greenTextColor,o.oneofs&&(d._greenTextColor="greenTextColor")),t.violetTextColor!=null&&t.hasOwnProperty("violetTextColor")&&(d.violetTextColor=t.violetTextColor,o.oneofs&&(d._violetTextColor="violetTextColor")),t.grayTextColor!=null&&t.hasOwnProperty("grayTextColor")&&(d.grayTextColor=t.grayTextColor,o.oneofs&&(d._grayTextColor="grayTextColor")),t.codeTextColor!=null&&t.hasOwnProperty("codeTextColor")&&(d.codeTextColor=t.codeTextColor,o.oneofs&&(d._codeTextColor="codeTextColor")),t.light!=null&&t.hasOwnProperty("light")&&(d.light=$root.CustomThemeConfig.toObject(t.light,o),o.oneofs&&(d._light="light")),t.dark!=null&&t.hasOwnProperty("dark")&&(d.dark=$root.CustomThemeConfig.toObject(t.dark,o),o.oneofs&&(d._dark="dark")),d},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+"/CustomThemeConfig"},n.BaseTheme=(function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t})(),n.FontFamily=(function(){const e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t})(),n})();$root.FontFace=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.family="",n.prototype.weight=0,n.prototype.weightRange="",n.prototype.style="",n.prototype.unicodeRange="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),e.family!=null&&Object.hasOwnProperty.call(e,"family")&&t.uint32(18).string(e.family),e.weight!=null&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(24).int32(e.weight),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&t.uint32(34).string(e.style),e.weightRange!=null&&Object.hasOwnProperty.call(e,"weightRange")&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&Object.hasOwnProperty.call(e,"unicodeRange")&&t.uint32(50).string(e.unicodeRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontFace;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}case 2:{p.family=e.string();break}case 3:{p.weight=e.int32();break}case 5:{p.weightRange=e.string();break}case 4:{p.style=e.string();break}case 6:{p.unicodeRange=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontFace)return e;let t=new $root.FontFace;return e.url!=null&&(t.url=String(e.url)),e.family!=null&&(t.family=String(e.family)),e.weight!=null&&(t.weight=e.weight|0),e.weightRange!=null&&(t.weightRange=String(e.weightRange)),e.style!=null&&(t.style=String(e.style)),e.unicodeRange!=null&&(t.unicodeRange=String(e.unicodeRange)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url="",o.family="",o.weight=0,o.style="",o.weightRange="",o.unicodeRange=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.fam
18ily!=null&&e.hasOwnProperty("family")&&(o.family=e.family),e.weight!=null&&e.hasOwnProperty("weight")&&(o.weight=e.weight),e.style!=null&&e.hasOwnProperty("style")&&(o.style=e.style),e.weightRange!=null&&e.hasOwnProperty("weightRange")&&(o.weightRange=e.weightRange),e.unicodeRange!=null&&e.hasOwnProperty("unicodeRange")&&(o.unicodeRange=e.unicodeRange),o},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+"/FontFace"},n})();$root.FontSource=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.configName="",n.prototype.sourceUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.configName!=null&&Object.hasOwnProperty.call(e,"configName")&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&Object.hasOwnProperty.call(e,"sourceUrl")&&t.uint32(18).string(e.sourceUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSource;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.configName=e.string();break}case 2:{p.sourceUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSource)return e;let t=new $root.FontSource;return e.configName!=null&&(t.configName=String(e.configName)),e.sourceUrl!=null&&(t.sourceUrl=String(e.sourceUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.configName="",o.sourceUrl=""),e.configName!=null&&e.hasOwnProperty("configName")&&(o.configName=e.configName),e.sourceUrl!=null&&e.hasOwnProperty("sourceUrl")&&(o.sourceUrl=e.sourceUrl),o},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+"/FontSource"},n})();$root.Radii=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.baseWidgetRadius=0,n.prototype.checkboxRadius=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.baseWidgetRadius!=null&&Object.hasOwnProperty.call(e,"baseWidgetRadius")&&t.uint32(8).int32(e.baseWidgetRadius),e.checkboxRadius!=null&&Object.hasOwnProperty.call(e,"checkboxRadius")&&t.uint32(16).int32(e.checkboxRadius),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Radii;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.baseWidgetRadius=e.int32();break}case 2:{p.checkboxRadius=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Radii)return e;let t=new $root.Radii;return e.baseWidgetRadius!=null&&(t.baseWidgetRadius=e.baseWidgetRadius|0),e.checkboxRadius!=null&&(t.checkboxRadius=e.checkboxRadius|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.baseWidgetRadius=0,o.checkboxRadius=0),e.baseWidgetRadius!=null&&e.hasOwnProperty("baseWidgetRadius")&&(o.baseWidgetRadius=e.baseWidgetRadius),e.checkboxRadius!=null&&e.hasOwnProperty("checkboxRadius")&&(o.checkboxRadius=e.checkboxRadius),o},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+"/Radii"},n})();$root.FontSizes=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tinyFontSize=0,n.prototype.smallFontSize=0,n.prototype.baseFontSize=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tinyFontSize!=null&&Object.hasOwnProperty.call(e,"tinyFontSize")&&t.uint32(8).int32(e.tinyFontSize),e.smallFontSize!=null&&Object.hasOwnProperty.call(e,"smallFontSize")&&t.uint32(16).int32(e.smallFontSize),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,"baseFontSize")&&t.uint32(24).int32(e.baseFontSize),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSizes;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tinyFontSize=e.int32();break}case 2:{p.smallFontSize=e.int32();break}case 3:{p.baseFontSize=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSizes)return e;let t=new $root.FontSizes;return e.tinyFontSize!=null&&(t.tinyFontSize=e.tinyFontSize|0),e.smallFontSize!=null&&(t.smallFontSize=e.smallFontSize|0),e.baseFontSize!=null&&(t.baseFontSize=e.baseFontSize|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tinyFontSize=0,o.smallFontSize=0,o.baseFontSize=0),e.tinyFontSize!=null&&e.hasOwnProperty("tinyFontSize")&&(o.tinyFontSize=e.tinyFontSize),e.smallFontSize!=null&&e.hasOwnProperty("smallFontSize")&&(o.smallFontSize=e.smallFontSize),e.baseFontSize!=null&&e.hasOwnProperty("baseFontSize")&&(o.baseFontSize=e.baseFontSize),o}
18,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+"/FontSizes"},n})();$root.UserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.installationId="",n.prototype.installationIdV3="",n.prototype.installationIdV4="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.installationId!=null&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&Object.hasOwnProperty.call(e,"installationIdV4")&&t.uint32(50).string(e.installationIdV4),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.installationId=e.string();break}case 5:{p.installationIdV3=e.string();break}case 6:{p.installationIdV4=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UserInfo)return e;let t=new $root.UserInfo;return e.installationId!=null&&(t.installationId=String(e.installationId)),e.installationIdV3!=null&&(t.installationIdV3=String(e.installationIdV3)),e.installationIdV4!=null&&(t.installationIdV4=String(e.installationIdV4)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.installationId="",o.installationIdV3="",o.installationIdV4=""),e.installationId!=null&&e.hasOwnProperty("installationId")&&(o.installationId=e.installationId),e.installationIdV3!=null&&e.hasOwnProperty("installationIdV3")&&(o.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&e.hasOwnProperty("installationIdV4")&&(o.installationIdV4=e.installationIdV4),o},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+"/UserInfo"},n})();$root.EnvironmentInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.streamlitVersion="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(32).bool(e.hasDisplay),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.EnvironmentInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.streamlitVersion=e.string();break}case 2:{p.pythonVersion=e.string();break}case 3:{p.serverOs=e.string();break}case 4:{p.hasDisplay=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.EnvironmentInfo)return e;let t=new $root.EnvironmentInfo;return e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.streamlitVersion="",o.pythonVersion="",o.serverOs="",o.hasDisplay=!1),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),o},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+"/EnvironmentInfo"},n})();$root.SessionStatus=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.runOnSave=!1,n.prototype.scriptIsRunning=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.runOnSave!=null&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SessionStatus;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.runOnSave=e.bool();break}case 2:{p.scriptIsRunning=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SessionStatus)return e;let t=new $root.SessionStatus;return e.runOnSave!=null&&(t.runOnSave=!!e.runOnSave),e.scriptIsRunning!=null&&(t.scriptIsRunning=!!e.scriptIsRunning),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.runOnSave=!1,o.scriptIsRunning=!1),e.runOnSave!=null&&e.hasOwnProperty("runOnSave")&&(o.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&e.hasOwnProperty("scriptIsRunning")&&(o.scriptIsRunning=e.scriptIsRunning),o},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+"/SessionStatus"},n})();const PageConfig=$root.PageConfig=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.title!=null&&Object.hasOwnProperty.call(t,"title")&&o.uint32(10).string(t.title),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&o.uint32(18).string(t.favicon),t.layout!=null&&Object.hasOwnProperty.call(t,"layout")&&o.uint32(24).int32(t.layout),t.initialSidebarState!=null&&Object.hasOwnProperty.call(t,"initialSidebarState")&&o.uint32(32).int32(t.initialSidebarState),t.menuItems!=null&&Object.hasOwnProperty.call(t,"menuItems")&&$root.PageConfig.MenuItems.encode(t.menuItems,o.uint32(42).fork()).ldelim(),t.initialSidebarWidth!=null&&Object.hasOwnProperty.call(t,"initialSidebarWidth")&&$root.PageConfig.SidebarWidthConfig.encode(t.initialSidebarWidth,o.uint32(50).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.title=t.string();break}case 2:{h.favicon=t.string();break}case 3:{h.layout=t.int32();break}case 4:{h.initialSidebarState=t.int32();break}case 5:{h.menuItems=$root.PageConfig.MenuItems.decode(t,t.uint32());break}case 6:{h.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageConfig)return t;let o=new $root.PageConfig;switch(t.title!=null&&(o.title=String(t.title)),t.favicon!=null&&(o.favicon=String(t.favicon)),t.layout){default:if(typeof t.layout=="number"){o.layout=t.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(t.initialSidebarState){default:if(typeof t.initialSidebarState=="number"){o.initialSidebarState=t.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(t.menuItems!=null){if(typeof t.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");o.menuItems=$root.PageConfig.MenuItems.fromObject(t.menuItems)}if(t.initialSidebarWidth!=null){if(typeof t.initialSidebarWidth!="object")throw TypeError(".PageConfig.initialSidebarWidth: object expected");o.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.fromObject(t.initialSidebarWidth)}return o},n.toObject=function(t,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),t.title!=null&&t.hasOwnProperty("title")&&(d.title=t.title),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=t.favicon),t.layout!=null&&t.hasOwnProperty("layout")&&(d.layout=o.enums===String?$root.PageConfig.Layout[t.layout]===void 0?t.layout:$root.PageConfig.Layout[t.layout]:t.layout),t.initialSidebarState!=null&&t.hasOwnProperty("initialSidebarState")&&(d.initialSidebarState=o.enums===String?$root.PageConfig.SidebarState[t.initialSidebarState]===void 0?t.initialSidebarState:$root.PageConfig.SidebarState[t.initialSidebarState]:t.initialSidebarState),t.menuItems!=null&&t.hasOwnProperty("menuItems")&&(d.menuItems=$root.PageConfig.MenuItems.toObject(t.menuItems,o)),t.initialSidebarWidth!=null&&t.hasOwnProperty("initialSidebarWidth")&&(
18d.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.toObject(t.initialSidebarWidth,o),o.oneofs&&(d._initialSidebarWidth="initialSidebarWidth")),d},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+"/PageConfig"},n.MenuItems=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.prototype.clearAboutMd=!1,e.create=function(o){return new e(o)},e.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},e.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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/PageConfig.MenuItems"},e})(),n.Layout=(function(){const e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t[e[2]="LAYOUT_UNSET"]=2,t})(),n.SidebarState=(function(){const e={},t=Object.create(e);return t[e[0]="AUTO"]=0,t[e[1]="EXPANDED"]=1,t[e[2]="COLLAPSED"]=2,t[e[3]="SIDEBAR_UNSET"]=3,t})(),n.SidebarWidthConfig=(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]])}e.prototype.pixelWidth=null;let t;return Object.defineProperty(e.prototype,"widthSpec",{get:$util.oneOfGetter(t=["pixelWidth"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.pixelWidth!=null&&Object.hasOwnProperty.call(d,"pixelWidth")&&p.uint32(8).uint32(d.pixelWidth),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.PageConfig.SidebarWidthConfig;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.pixelWidth=d.uint32();break}default:d.skipType(E&7);break}}return $},e.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},e.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},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+"/PageConfig.SidebarWidthConfig"},e})(),n})();$root.PageInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.queryString="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageInfo)return e;let t=new $root.PageInfo;return e.queryString!=null&&(t.queryString=String(e.queryString)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.queryString=""),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),o},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+"/PageInfo"},n})();const PageProfile=$root.PageProfile=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(10).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(42).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(58).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(66).string(e.os),e.t
18imezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(74).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(88).bool(e.isFragmentRun),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(98).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageProfile;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 2:{p.execTime=e.int64();break}case 3:{p.prepTime=e.int64();break}case 5:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 6:{p.uncaughtException=e.string();break}case 7:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 8:{p.os=e.string();break}case 9:{p.timezone=e.string();break}case 10:{p.headless=e.bool();break}case 11:{p.isFragmentRun=e.bool();break}case 12:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageProfile)return e;let t=new $root.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".PageProfile.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".PageProfile.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}return e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.execTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.longs===String?"0":0;o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.serverMode=""}if(e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>
18>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},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+"/PageProfile"},n})();$root.Argument=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.k="",n.prototype.t="",n.prototype.m="",n.prototype.p=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.k!=null&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),e.t!=null&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),e.m!=null&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),e.p!=null&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Argument;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.k=e.string();break}case 2:{p.t=e.string();break}case 3:{p.m=e.string();break}case 5:{p.p=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Argument)return e;let t=new $root.Argument;return e.k!=null&&(t.k=String(e.k)),e.t!=null&&(t.t=String(e.t)),e.m!=null&&(t.m=String(e.m)),e.p!=null&&(t.p=e.p|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.k="",o.t="",o.m="",o.p=0),e.k!=null&&e.hasOwnProperty("k")&&(o.k=e.k),e.t!=null&&e.hasOwnProperty("t")&&(o.t=e.t),e.m!=null&&e.hasOwnProperty("m")&&(o.m=e.m),e.p!=null&&e.hasOwnProperty("p")&&(o.p=e.p),o},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+"/Argument"},n})();$root.Command=(()=>{function n(i){if(this.args=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.args=$util.emptyArray,n.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let o=0;o<e.args.length;++o)$root.Argument.encode(e.args[o],t.uint32(18).fork()).ldelim();return e.time!=null&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Command;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 2:{p.args&&p.args.length||(p.args=[]),p.args.push($root.Argument.decode(e,e.uint32()));break}case 4:{p.time=e.int64();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Command)return e;let t=new $root.Command;if(e.name!=null&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let o=0;o<e.args.length;++o){if(typeof e.args[o]!="object")throw TypeError(".Command.args: object expected");t.args[o]=$root.Argument.fromObject(e.args[o])}}return e.time!=null&&($util.Long?(t.time=$util.Long.fromValue(e.time)).unsigned=!1:typeof e.time=="string"?t.time=parseInt(e.time,10):typeof e.time=="number"?t.time=e.time:typeof e.time=="object"&&(t.time=new $util.LongBits(e.time.low>>>0,e.time.high>
18>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.args=[]),t.defaults)if(o.name="",$util.Long){let d=new $util.Long(0,0,!1);o.time=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.time=t.longs===String?"0":0;if(e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.args&&e.args.length){o.args=[];for(let d=0;d<e.args.length;++d)o.args[d]=$root.Argument.toObject(e.args[d],t)}return e.time!=null&&e.hasOwnProperty("time")&&(typeof e.time=="number"?o.time=t.longs===String?String(e.time):e.time:o.time=t.longs===String?$util.Long.prototype.toString.call(e.time):t.longs===Number?new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),o},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+"/Command"},n})();$root.PageNotFound=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageName="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageNotFound;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageName=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageNotFound)return e;let t=new $root.PageNotFound;return e.pageName!=null&&(t.pageName=String(e.pageName)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageName=""),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),o},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+"/PageNotFound"},n})();$root.PagesChanged=(()=>{function n(i){if(this.appPages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.appPages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PagesChanged;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PagesChanged)return e;let t=new $root.PagesChanged;if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".PagesChanged.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".PagesChanged.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.appPages=[]),e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}return o},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+"/PagesChanged"},n})();$root.ParentMessage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.message="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ParentMessage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.message=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ParentMessage)return e;let t=new $root.ParentMessage;return e.message!=null&&(t.message=String(e.message)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.message=""),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),o},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+"/ParentMessage"},n})();$root.SessionEvent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[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(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(t,"scriptChangedOnDisk")&&o.uint32(8).bool(t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(t,"scriptWasManuallyStopped")&&o.uint32(16).bool(t.scriptWasManuallyStopped),t.scriptCompilationException!=null&&Object.hasOwnProperty.call(t,"scriptCompilationException")&&$root.Exception.encode(t.scriptCompilationException,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SessionEvent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.scriptChangedOnDisk=t.bool();break}case 2:{h.scriptWasManuallyStopped=t.bool();break}case 3:{h.scriptCompilationException=$root.Exception.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SessionEvent)return t;let o=new $root.SessionEvent;if(t.scriptChangedOnDisk!=null&&(o.scriptChangedOnDisk=!!t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&(o.scriptWasManuallyStopped=!!t.scriptWasManuallyStopped),t.scriptCompilationException!=null){if(typeof t.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");o.scriptCompilationException=$root.Exception.fromObject(t.scriptCompilationException)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.scriptChangedOnDisk!=null&&t.hasOwnProperty("scriptChangedOnDisk")&&(d.scriptChangedOnDisk=t.scriptChangedOnDisk,o.oneofs&&(d.type="scriptChangedOnDisk")),t.scriptWasManuallyStopped!=null&&t.hasOwnProperty("scriptWasManuallyStopped")&&(
18d.scriptWasManuallyStopped=t.scriptWasManuallyStopped,o.oneofs&&(d.type="scriptWasManuallyStopped")),t.scriptCompilationException!=null&&t.hasOwnProperty("scriptCompilationException")&&(d.scriptCompilationException=$root.Exception.toObject(t.scriptCompilationException,o),o.oneofs&&(d.type="scriptCompilationException")),d},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+"/SessionEvent"},n})();const MetricsEvent=$root.MetricsEvent=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}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(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.event!=null&&Object.hasOwnProperty.call(e,"event")&&t.uint32(10).string(e.event),e.anonymousId!=null&&Object.hasOwnProperty.call(e,"anonymousId")&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&Object.hasOwnProperty.call(e,"machineIdV3")&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&Object.hasOwnProperty.call(e,"reportHash")&&t.uint32(34).string(e.reportHash),e.dev!=null&&Object.hasOwnProperty.call(e,"dev")&&t.uint32(40).bool(e.dev),e.source!=null&&Object.hasOwnProperty.call(e,"source")&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&Object.hasOwnProperty.call(e,"hostedAt")&&t.uint32(74).string(e.hostedAt),e.owner!=null&&Object.hasOwnProperty.call(e,"owner")&&t.uint32(82).string(e.owner),e.repo!=null&&Object.hasOwnProperty.call(e,"repo")&&t.uint32(90).string(e.repo),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(98).string(e.branch),e.mainModule!=null&&Object.hasOwnProperty.call(e,"mainModule")&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&Object.hasOwnProperty.call(e,"creatorId")&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&Object.hasOwnProperty.call(e,"contextPageUrl")&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&Object.hasOwnProperty.call(e,"contextPageTitle")&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&Object.hasOwnProperty.call(e,"contextPagePath")&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&Object.hasOwnProperty.call(e,"contextPageReferrer")&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&Object.hasOwnProperty.call(e,"contextPageSearch")&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&Object.hasOwnProperty.call(e,"contextLocale")&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&Object.hasOwnProperty.call(e,"contextUserAgent")&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(186).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(210).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(226).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(234).string(e.os),e.t
18imezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(242).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&Object.hasOwnProperty.call(e,"appId")&&t.uint32(266).string(e.appId),e.numPages!=null&&Object.hasOwnProperty.call(e,"numPages")&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&Object.hasOwnProperty.call(e,"activeTheme")&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&Object.hasOwnProperty.call(e,"totalLoadTime")&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&Object.hasOwnProperty.call(e,"browserInfo")&&$root.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork()).ldelim(),e.machineIdV4!=null&&Object.hasOwnProperty.call(e,"machineIdV4")&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&Object.hasOwnProperty.call(e,"isWebdriver")&&t.uint32(352).bool(e.isWebdriver),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(362).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MetricsEvent;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.event=e.string();break}case 2:{p.anonymousId=e.string();break}case 3:{p.machineIdV3=e.string();break}case 41:{p.machineIdV4=e.string();break}case 4:{p.reportHash=e.string();break}case 5:{p.dev=e.bool();break}case 6:{p.source=e.string();break}case 7:{p.streamlitVersion=e.string();break}case 8:{p.isHello=e.bool();break}case 33:{p.appId=e.string();break}case 35:{p.sessionId=e.string();break}case 36:{p.pythonVersion=e.string();break}case 42:{p.serverOs=e.string();break}case 43:{p.hasDisplay=e.bool();break}case 44:{p.isWebdriver=e.bool();break}case 9:{p.hostedAt=e.string();break}case 10:{p.owner=e.string();break}case 11:{p.repo=e.string();break}case 12:{p.branch=e.string();break}case 13:{p.mainModule=e.string();break}case 14:{p.creatorId=e.string();break}case 15:{p.contextPageUrl=e.string();break}case 16:{p.contextPageTitle=e.string();break}case 17:{p.contextPagePath=e.string();break}case 18:{p.contextPageReferrer=e.string();break}case 19:{p.contextPageSearch=e.string();break}case 20:{p.contextLocale=e.string();break}case 21:{p.contextUserAgent=e.string();break}case 22:{p.label=e.string();break}case 23:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 24:{p.execTime=e.int64();break}case 25:{p.prepTime=e.int64();break}case 26:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 27:{p.uncaughtException=e.string();break}case 28:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 29:{p.os=e.string();break}case 30:{p.timezone=e.string();break}case 31:{p.headless=e.bool();break}case 32:{p.isFragmentRun=e.bool();break}case 34:{p.numPages=e.int64();break}case 37:{p.pageScriptHash=e.string();break}case 38:{p.activeTheme=e.string();break}case 39:{p.totalLoadTime=e.int64();break}case 40:{p.browserInfo=$root.BrowserInfo.decode(e,e.uint32());break}case 45:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MetricsEvent)return e;let t=new $root.MetricsEvent;if(e.event!=null&&(t.event=String(e.event)),e.anonymousId!=null&&(t.anonymousId=String(e.anonymousId)),e.machineIdV3!=null&&(t.machineIdV3=String(e.machineIdV3)),e.machineIdV4!=null&&(t.machineIdV4=String(e.machineIdV4)),e.reportHash!=null&&(t.reportHash=String(e.reportHash)),e.dev!=null&&(t.dev=!!e.dev),e.source!=null&&(t.source=String(e.source)),e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.isHello!=null&&(t.isHello=!!e.isHello),e.appId!=null&&(t.appId=String(e.appId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),e.isWebdriver!=null&&(t.isWebdriver=!!e.isWebdriver),e.hostedAt!=null&&(t.hostedAt=String(e.hostedAt)),e.owner!=null&&(t.owner=String(e.owner)),e.repo!=null&&(t.repo=String(e.repo)),e.branch!=null&&(t.branch=String(e.branch)),e.mainModule!=null&&(t.mainModule=String(e.mainModule)),e.creatorId!=null&&(t.creatorId=String(e.creatorId)),e.contextPageUrl!=null&&(t.contextPageUrl=String(e.contextPageUrl)),e.contextPageTitle!=null&&(t.contextPageTitle=String(e.contextPageTitle)),e.contextPagePath!=null&&(t.contextPagePath=String(e.contextPagePath)),e.contextPageReferrer!=null&&(t.contextPageReferrer=String(e.contextPageReferrer)),e.contextPageSearch!=null&&(t.contextPageSearch=String(e.contextPageSearch)),e.contextLocale!=null&&(t.contextLocale=String(e.contextLocale)),e.contextUserAgent!=null&&(t.contextUserAgent=String(e.contextUserAgent)),e.label!=null&&(t.label=String(e.label)),e.commands){if(!Array.isArray(e.commands))throw TypeError(".MetricsEvent.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".MetricsEvent.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>
vendor: 5,633 bytes, line 18
18>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".MetricsEvent.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".MetricsEvent.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}if(e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.numPages!=null&&($util.Long?(t.numPages=$util.Long.fromValue(e.numPages)).unsigned=!1:typeof e.numPages=="string"?t.numPages=parseInt(e.numPages,10):typeof e.numPages=="number"?t.numPages=e.numPages:typeof e.numPages=="object"&&(t.numPages=new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.activeTheme!=null&&(t.activeTheme=String(e.activeTheme)),e.totalLoadTime!=null&&($util.Long?(t.totalLoadTime=$util.Long.fromValue(e.totalLoadTime)).unsigned=!1:typeof e.totalLoadTime=="string"?t.totalLoadTime=parseInt(e.totalLoadTime,10):typeof e.totalLoadTime=="number"?t.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime=="object"&&(t.totalLoadTime=new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(typeof e.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");t.browserInfo=$root.BrowserInfo.fromObject(e.browserInfo)}return e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.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=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.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=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.numPages=t.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=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.totalLoadTime=t.longs===String?"0":0;o.browserInfo=null,o.machineIdV4="",o.serverOs="",o.hasDisplay=!1,o.isWebdriver=!1,o.serverMode=""}if(e.event!=null&&e.hasOwnProperty("event")&&(o.event=e.event),e.anonymousId!=null&&e.hasOwnProperty("anonymousId")&&(o.anonymousId=e.anonymousId),e.machineIdV3!=null&&e.hasOwnProperty("machineIdV3")&&(o.machineIdV3=e.machineIdV3),e.reportHash!=null&&e.hasOwnProperty("reportHash")&&(o.reportHash=e.reportHash),e.dev!=null&&e.hasOwnProperty("dev")&&(o.dev=e.dev),e.source!=null&&e.hasOwnProperty("source")&&(o.source=e.source),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),e.hostedAt!=null&&e.hasOwnProperty("hostedAt")&&(o.hostedAt=e.hostedAt),e.owner!=null&&e.hasOwnProperty("owner")&&(o.owner=e.owner),e.repo!=null&&e.hasOwnProperty("repo")&&(o.repo=e.repo),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.mainModule!=null&&e.hasOwnProperty("mainModule")&&(o.mainModule=e.mainModule),e.creatorId!=null&&e.hasOwnProperty("creatorId")&&(o.creatorId=e.creatorId),e.contextPageUrl!=null&&e.hasOwnProperty("contextPageUrl")&&(o.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&e.hasOwnProperty("contextPageTitle")&&(o.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&e.hasOwnProperty("contextPagePath")&&(o.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&e.hasOwnProperty("contextPageReferrer")&&(o.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&e.hasOwnProperty("contextPageSearch")&&(o.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&e.hasOwnProperty("contextLocale")&&(o.contextLocale=e.contextLocale),e.contextUserAgent!=null&&e.hasOwnProperty("contextUserAgent")&&(o.contextUserAgent=e.contextUserAgent),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>
18>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.appId!=null&&e.hasOwnProperty("appId")&&(o.appId=e.appId),e.numPages!=null&&e.hasOwnProperty("numPages")&&(typeof e.numPages=="number"?o.numPages=t.longs===String?String(e.numPages):e.numPages:o.numPages=t.longs===String?$util.Long.prototype.toString.call(e.numPages):t.longs===Number?new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&e.hasOwnProperty("activeTheme")&&(o.activeTheme=e.activeTheme),e.totalLoadTime!=null&&e.hasOwnProperty("totalLoadTime")&&(typeof e.totalLoadTime=="number"?o.totalLoadTime=t.longs===String?String(e.totalLoadTime):e.totalLoadTime:o.totalLoadTime=t.longs===String?$util.Long.prototype.toString.call(e.totalLoadTime):t.longs===Number?new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&e.hasOwnProperty("browserInfo")&&(o.browserInfo=$root.BrowserInfo.toObject(e.browserInfo,t)),e.machineIdV4!=null&&e.hasOwnProperty("machineIdV4")&&(o.machineIdV4=e.machineIdV4),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&e.hasOwnProperty("isWebdriver")&&(o.isWebdriver=e.isWebdriver),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},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+"/MetricsEvent"},n})();$root.BrowserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.browserName="",n.prototype.browserVersion="",n.prototype.deviceType="",n.prototype.os="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.browserName!=null&&Object.hasOwnProperty.call(e,"browserName")&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&Object.hasOwnProperty.call(e,"browserVersion")&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&Object.hasOwnProperty.call(e,"deviceType")&&t.uint32(26).string(e.deviceType),e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(34).string(e.os),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.BrowserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.browserName=e.string();break}case 2:{p.browserVersion=e.string();break}case 3:{p.deviceType=e.string();break}case 4:{p.os=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.BrowserInfo)return e;let t=new $root.BrowserInfo;return e.browserName!=null&&(t.browserName=String(e.browserName)),e.browserVersion!=null&&(t.browserVersion=String(e.browserVersion)),e.deviceType!=null&&(t.deviceType=String(e.deviceType)),e.os!=null&&(t.os=String(e.os)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.browserName="",o.browserVersion="",o.deviceType="",o.os=""),e.browserName!=null&&e.hasOwnProperty("browserName")&&(o.browserName=e.browserName),e.browserVersion!=null&&e.hasOwnProperty("browserVersion")&&(o.browserVersion=e.browserVersion),e.deviceType!=null&&e.hasOwnProperty("deviceType")&&(o.deviceType=e.deviceType),e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),o},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+"/BrowserInfo"},n})();$root.openmetrics=(()=>{const n={};return n.MetricSet=(function(){function i(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.metricFamilies=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.metricFamilies!=null&&t.metricFamilies.length)for(let d=0;d<t.metricFamilies.length;++d)$root.openmetrics.MetricFamily.encode(t.metricFamilies[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricSet;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.metricFamilies&&h.metricFamilies.length||(h.metricFamilies=[]),h.metricFamilies.push($root.openmetrics.MetricFamily.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricSet)return t;let o=new $root.openmetrics.MetricSet;
vendor: 14,912 bytes, line 18
18if(t.metricFamilies){if(!Array.isArray(t.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");o.metricFamilies=[];for(let d=0;d<t.metricFamilies.length;++d){if(typeof t.metricFamilies[d]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");o.metricFamilies[d]=$root.openmetrics.MetricFamily.fromObject(t.metricFamilies[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metricFamilies=[]),t.metricFamilies&&t.metricFamilies.length){d.metricFamilies=[];for(let p=0;p<t.metricFamilies.length;++p)d.metricFamilies[p]=$root.openmetrics.MetricFamily.toObject(t.metricFamilies[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricSet"},i})(),n.MetricFamily=(function(){function i(e){if(this.metrics=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.type=0,i.prototype.unit="",i.prototype.help="",i.prototype.metrics=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(16).int32(t.type),t.unit!=null&&Object.hasOwnProperty.call(t,"unit")&&o.uint32(26).string(t.unit),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.metrics!=null&&t.metrics.length)for(let d=0;d<t.metrics.length;++d)$root.Metric.encode(t.metrics[d],o.uint32(42).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricFamily;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.int32();break}case 3:{h.unit=t.string();break}case 4:{h.help=t.string();break}case 5:{h.metrics&&h.metrics.length||(h.metrics=[]),h.metrics.push($root.Metric.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricFamily)return t;let o=new $root.openmetrics.MetricFamily;switch(t.name!=null&&(o.name=String(t.name)),t.type){default:if(typeof t.type=="number"){o.type=t.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(t.unit!=null&&(o.unit=String(t.unit)),t.help!=null&&(o.help=String(t.help)),t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");o.metrics=[];for(let d=0;d<t.metrics.length;++d){if(typeof t.metrics[d]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");o.metrics[d]=$root.Metric.fromObject(t.metrics[d])}}return o},i.toObject=function(t,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=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.openmetrics.MetricType[t.type]===void 0?t.type:$root.openmetrics.MetricType[t.type]:t.type),t.unit!=null&&t.hasOwnProperty("unit")&&(d.unit=t.unit),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.metrics&&t.metrics.length){d.metrics=[];for(let p=0;p<t.metrics.length;++p)d.metrics[p]=$root.Metric.toObject(t.metrics[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricFamily"},i})(),n.MetricType=(function(){const i={},e=Object.create(i);return e[i[0]="UNKNOWN"]=0,e[i[1]="GAUGE"]=1,e[i[2]="COUNTER"]=2,e[i[3]="STATE_SET"]=3,e[i[4]="INFO"]=4,e[i[5]="HISTOGRAM"]=5,e[i[6]="GAUGE_HISTOGRAM"]=6,e[i[7]="SUMMARY"]=7,e})(),n.Metric=(function(){function i(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.labels=$util.emptyArray,i.prototype.metricPoints=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.labels!=null&&t.labels.length)for(let d=0;d<t.labels.length;++d)$root.openmetrics.Label.encode(t.labels[d],o.uint32(10).fork()).ldelim();if(t.metricPoints!=null&&t.metricPoints.length)for(let d=0;d<t.metricPoints.length;++d)$root.openmetrics.MetricPoint.encode(t.metricPoints[d],o.uint32(18).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Metric;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.labels&&h.labels.length||(h.labels=[]),h.labels.push($root.openmetrics.Label.decode(t,t.uint32()));break}case 2:{h.metricPoints&&h.metricPoints.length||(h.metricPoints=[]),h.metricPoints.push($root.openmetrics.MetricPoint.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Metric)return t;let o=new $root.openmetrics.Metric;if(t.labels){if(!Array.isArray(t.labels))throw TypeError(".openmetrics.Metric.labels: array expected");o.labels=[];for(let d=0;d<t.labels.length;++d){if(typeof t.labels[d]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");o.labels[d]=$root.openmetrics.Label.fromObject(t.labels[d])}}if(t.metricPoints){if(!Array.isArray(t.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");o.metricPoints=[];for(let d=0;d<t.metricPoints.length;++d){if(typeof t.metricPoints[d]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");o.metricPoints[d]=$root.openmetrics.MetricPoint.fromObject(t.metricPoints[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.labels=[],d.metricPoints=[]),t.labels&&t.labels.length){d.labels=[];for(let p=0;p<t.labels.length;++p)d.labels[p]=$root.openmetrics.Label.toObject(t.labels[p],o)}if(t.metricPoints&&t.metricPoints.length){d.metricPoints=[];for(let p=0;p<t.metricPoints.length;++p)d.metricPoints[p]=$root.openmetrics.MetricPoint.toObject(t.metricPoints[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Metric"},i})(),n.Label=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.value="",i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(18).string(t.value),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Label;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.value=t.string();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Label)return t;let o=new $root.openmetrics.Label;return t.name!=null&&(o.name=String(t.name)),t.value!=null&&(o.value=String(t.value)),o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.value=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Label"},i})(),n.MetricPoint=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[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 e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(e)}),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 $=o.uint32();if($===p)break;switch($>>>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($&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(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),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;
18){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&7);break}}return y},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(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),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 $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&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(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.created=null,i.prototype.exemplar=null;let e;return Object.defineProperty(i.prototype,"total",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),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;
18){let $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y},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(t){if(this.buckets=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[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 e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),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 $=o.uint32();if($===p)break;switch($>>>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($&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 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]])}return t.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,t.prototype.upperBound=0,t.prototype.exemplar=null,t.create=function(d){return new t(d)},t.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},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.HistogramValue.Bucket;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.count=d.uint64();break}case 2:{$.upperBound=d.double();break}case 3:{$.exemplar=$root.openmetrics.Exemplar.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},t.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},t.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.
vendor: 5,478 bytes, line 18
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},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+"/openmetrics.HistogramValue.Bucket"},t})(),i})(),n.Exemplar=(function(){function i(e){if(this.label=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.value=0,i.prototype.timestamp=null,i.prototype.label=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(9).double(t.value),t.timestamp!=null&&Object.hasOwnProperty.call(t,"timestamp")&&$root.google.protobuf.Timestamp.encode(t.timestamp,o.uint32(18).fork()).ldelim(),t.label!=null&&t.label.length)for(let d=0;d<t.label.length;++d)$root.openmetrics.Label.encode(t.label[d],o.uint32(26).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Exemplar;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.value=t.double();break}case 2:{h.timestamp=$root.google.protobuf.Timestamp.decode(t,t.uint32());break}case 3:{h.label&&h.label.length||(h.label=[]),h.label.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Exemplar)return t;let o=new $root.openmetrics.Exemplar;if(t.value!=null&&(o.value=Number(t.value)),t.timestamp!=null){if(typeof t.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");o.timestamp=$root.google.protobuf.Timestamp.fromObject(t.timestamp)}if(t.label){if(!Array.isArray(t.label))throw TypeError(".openmetrics.Exemplar.label: array expected");o.label=[];for(let d=0;d<t.label.length;++d){if(typeof t.label[d]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");o.label[d]=$root.openmetrics.Label.fromObject(t.label[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.label=[]),o.defaults&&(d.value=0,d.timestamp=null),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(d.timestamp=$root.google.protobuf.Timestamp.toObject(t.timestamp,o)),t.label&&t.label.length){d.label=[];for(let p=0;p<t.label.length;++p)d.label[p]=$root.openmetrics.Label.toObject(t.label[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Exemplar"},i})(),n.StateSetValue=(function(){function i(e){if(this.states=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.states=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.states!=null&&t.states.length)for(let d=0;d<t.states.length;++d)$root.openmetrics.StateSetValue.State.encode(t.states[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.StateSetValue;for(;t.pos<p;){let y=t.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(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.StateSetValue)return t;let o=new $root.openmetrics.StateSetValue;if(t.states){if(!Array.isArray(t.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");o.states=[];for(let d=0;d<t.states.length;++d){if(typeof t.states[d]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");o.states[d]=$root.openmetrics.StateSetValue.State.fromObject(t.states[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.states=[]),t.states&&t.states.length){d.states=[];for(let p=0;p<t.states.length;++p)d.states[p]=$root.openmetrics.StateSetValue.State.toObject(t.states[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.StateSetValue"},i.State=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(o){return new e(o)},e.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},e.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;
18){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.enabled=o.bool();break}case 2:{y.name=o.string();break}default:o.skipType($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.StateSetValue.State"},e})(),i})(),n.InfoValue=(function(){function i(e){if(this.info=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.info=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.info!=null&&t.info.length)for(let d=0;d<t.info.length;++d)$root.openmetrics.Label.encode(t.info[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.InfoValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.info&&h.info.length||(h.info=[]),h.info.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.InfoValue)return t;let o=new $root.openmetrics.InfoValue;if(t.info){if(!Array.isArray(t.info))throw TypeError(".openmetrics.InfoValue.info: array expected");o.info=[];for(let d=0;d<t.info.length;++d){if(typeof t.info[d]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");o.info[d]=$root.openmetrics.Label.fromObject(t.info[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.info=[]),t.info&&t.info.length){d.info=[];for(let p=0;p<t.info.length;++p)d.info[p]=$root.openmetrics.Label.toObject(t.info[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.InfoValue"},i})(),n.SummaryValue=(function(){function i(t){if(this.quantile=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[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 e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),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 $=o.uint32();if($===p)break;switch($>>>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($&7);break}}return y}
18,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>>>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 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]])}return t.prototype.quantile=0,t.prototype.value=0,t.create=function(d){return new t(d)},t.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},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.SummaryValue.Quantile;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.quantile=d.double();break}case 2:{$.value=d.double();break}default:d.skipType(E&7);break}}return $},t.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},t.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},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+"/openmetrics.SummaryValue.Quantile"},t})(),i})(),n})();$root.google=(()=>{const n={};return n.protobuf=(function(){const i={};return i.Timestamp=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(o){return new e(o)},e.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},e.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 $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.seconds=o.int64();break}case 2:{y.nanos=o.int32();break}default:o.skipType($&7);break}}return y},e.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},e.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},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/google.protobuf.Timestamp"},e})(),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"),e=>e.toLowerCase()),n.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(e,t,o)=>t+i+o.toLowerCase()));function decamelize$1(n,{separator:i="_",preserveConsecutiveUppercase:e=!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 e?n:n.toLowerCase();const t=`$1${i}$2`,o=n.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),t);return e?handlePreserveConsecutiveUppercase(o,i):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),t).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),e=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var t=!0}catch{}var o=nativeObjectToString$1.call(n);return t&&(i?n[symToStringTag$1]=e: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 e=-1,t=n==null?0:n.length,o=Array(t);++e<t;)o[e]=i(n[e],e,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: 14,650 bytes, line 18
18if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var e=reIsBinary.test(n);return e||reIsOctal.test(n)?freeParseInt(n.slice(2),e?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),e=i%1;return i===i?e?i-e: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 e=getValue$1(n,i);return baseIsNative(e)?e: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 e=new n;return n.prototype=void 0,e}})();function apply(n,i,e){switch(e.length){case 0:return n.call(i);case 1:return n.call(i,e[0]);case 2:return n.call(i,e[0],e[1]);case 3:return n.call(i,e[0],e[1],e[2])}return n.apply(i,e)}function copyArray(n,i){var e=-1,t=n.length;for(i||(i=Array(t));++e<t;)i[e]=n[e];return i}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var i=0,e=0;return function(){var t=nativeNow(),o=HOT_SPAN-(t-e);if(e=t,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 e=-1,t=n==null?0:n.length;++e<t&&i(n[e],e,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,i){var e=typeof n;return i=i??MAX_SAFE_INTEGER$1,!!i&&(e=="number"||e!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<i}function baseAssignValue(n,i,e){i=="__proto__"&&defineProperty$1?defineProperty$1(n,i,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[i]=e}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,e){var t=n[i];(!(hasOwnProperty$d.call(n,i)&&eq(t,e))||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}function copyObject(n,i,e,t){var o=!e;e||(e={});for(var d=-1,p=i.length;++d<p;){var h=i[d],y=void 0;y===void 0&&(y=n[h]),o?baseAssignValue(e,h,y):assignValue(e,h,y)}return e}var nativeMax$2=Math.max;function overRest(n,i,e){return i=nativeMax$2(i===void 0?n.length-1:i,0),function(){for(var t=arguments,o=-1,d=nativeMax$2(t.length-i,0),p=Array(d);++o<d;)p[o]=t[i+o];o=-1;for(var h=Array(i+1);++o<i;)h[o]=t[o];return h[i]=e(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,e){if(!isObject$1(e))return!1;var t=typeof i;return(t=="number"?isArrayLike(e)&&isIndex(i,e.length):t=="string"&&i in e)?eq(e[i],n):!1}function createAssigner(n){return baseRest(function(i,e){var t=-1,o=e.length,d=o>1?e[o-1]:void 0,p=o>2?e[2]:void 0;for(d=n.length>3&&typeof d=="function"?(o--,d):void 0,p&&isIterateeCall(e[0],e[1],p)&&(d=o<3?void 0:d,o=1),i=Object(i);++t<o;){var h=e[t];h&&n(i,h,t,d)}return i})}var objectProto$d=Object.prototype;function isPrototype(n){var i=n&&n.constructor,e=typeof i=="function"&&i.prototype||objectProto$d;return n===e}function baseTimes(n,i){for(var e=-1,t=Array(n);++e<n;)t[e]=i(e);return t}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]",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 e=isArray$1(n),t=!e&&isArguments(n),o=!e&&!t&&isBuffer(n),d=!e&&!t&&!o&&isTypedArray(n),p=e||t||o||d,h=p?baseTimes(n.length,String):[],y=h.length;for(var $ in n)(i||hasOwnProperty$b.call(n,$))&&!(p&&($=="length"||o&&($=="offset"||$=="parent")||d&&($=="buffer"||$=="byteLength"||$=="byteOffset")||isIndex($,y)))&&h.push($);return h}function overArg(n,i){return function(e){return n(i(e))}}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 e in Object(n))hasOwnProperty$a.call(n,e)&&e!="constructor"&&i.push(e);return i}function keys$1(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var i=[];if(n!=null)for(var e in Object(n))i.push(e);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),e=[];for(var t in n)t=="constructor"&&(i||!hasOwnProperty$9.call(n,t))||e.push(t);return e}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(n,i){if(isArray$1(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="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 e=i[n];return e===HASH_UNDEFINED$2?void 0:e}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 e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=nativeCreate&&i===void 0?HASH_UNDEFINED$1:i,this}function Hash(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[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 e=n.length;e--;)if(eq(n[e][0],i))return e;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(n){var i=this.__data__,e=assocIndexOf(i,n);if(e<0)return!1;var t=i.length-1;return e==t?i.pop():splice$1.call(i,e,1),--this.size,!0}function listCacheGet(n){var i=this.__data__,e=assocIndexOf(i,n);return e<0?void 0:i[e][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,i){var e=this.__data__,t=assocIndexOf(e,n);return t<0?(++this.size,e.push([n,i])):e[t][1]=i,this}function ListCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[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 e=n.__data__;return isKeyable(i)?e[typeof i=="string"?"string":"hash"]:e.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 e=getMapData(this,n),t=e.size;return e.set(n,i),this.size+=e.size==t?0:1,this}function MapCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[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 e=function(){var t=arguments,o=i?i.apply(this,t):t[0],d=e.cache;if(d.has(o))return d.get(o);var p=n.apply(this,t);return e.cache=d.set(o,p)||d,p};return e.cache=new(memoize.Cache||MapCache),e}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var i=memoize(n,function(t){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),t}),e=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(e,t,o,d){i.push(o?d.replace(reEscapeChar,"$1"):t||e)}),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 e=0,t=i.length;n!=null&&e<t;)n=n[toKey(i[e++])];return e&&e==t?n:void 0}function get$1(n,i,e){var t=n==null?void 0:baseGet(n,i);return t===void 0?e:t}function arrayPush(n,i){for(var e=-1,t=i.length,o=n.length;++e<t;)n[o+e]=i[e];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,e,t,o){var d=-1,p=n.length;for(e||(e=isFlattenable),o||(o=[]);++d<p;){var h=n[d];e(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 e=hasOwnProperty$6.call(i,"constructor")&&i.constructor;return typeof e=="function"&&e instanceof e&&funcToString.call(e)==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 e;if(typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(e=i.apply(this,arguments)),n<=1&&(i=void 0),e}}function baseSlice(n,i,e){var t=-1,o=n.length;i<0&&(i=-i>o?0:o+i),e=e>o?o:e,e<0&&(e+=o),o=i>e?0:e-i>>>0,i>>>=0;for(var d=Array(o);++t<o;)d[t]=n[t+i];return d}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var i=this.__data__,e=i.delete(n);return this.size=i.size,e}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 e=this.__data__;if(e instanceof ListCache){var t=e.__data__;if(!Map$2||t.length<LARGE_ARRAY_SIZE-1)return t.push([n,i]),this.size=++e.size,this;e=this.__data__=new MapCache(t)}return e.set(n,i),this.size=e.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 e=n.length,t=allocUnsafe?allocUnsafe(e):new n.constructor(e);return n.copy(t),t}function arrayFilter(n,i){for(var e=-1,t=n==null?0:n.length,o=0,d=[];++e<t;){var p=n[e];i(p,e,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,e){var t=i(n);
vendor: 4,503 bytes, line 18
18return isArray$1(n)?t:arrayPush(t,e(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),e=i==objectTag$2?n.constructor:void 0,t=e?toSource(e):"";if(t)switch(t){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,e=new n.constructor(i);return i&&typeof n[0]=="string"&&hasOwnProperty$5.call(n,"index")&&(e.index=n.index,e.input=n.input),e}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 e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,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:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,i){var e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,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,e){var t=n.constructor;switch(i){case arrayBufferTag$2:return cloneArrayBuffer(n);case boolTag$2:case dateTag$2:return new t(+n);case dataViewTag$2:return cloneDataView(n,e);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,e);case mapTag$3:return new t;case numberTag$2:case stringTag$2:return new t(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new t;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
18]",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,e,t,o,d){var p,h=i&CLONE_DEEP_FLAG$2,y=i&CLONE_FLAT_FLAG$1,$=i&CLONE_SYMBOLS_FLAG$2;if(e&&(p=o?e(n,t,o,d):e(n)),p!==void 0)return p;if(!isObject$1(n))return n;var E=isArray$1(n);if(E){if(p=initCloneArray(n),!h)return copyArray(n,p)}else{var M=getTag(n),H=M==funcTag||M==genTag;if(isBuffer(n))return cloneBuffer(n,h);if(M==objectTag$1||M==argsTag$1||H&&!o){if(p=y||H?{}: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,e,we,n,d))}):isMap$1(n)&&n.forEach(function(we,xe){p.set(xe,baseClone(we,i,e,xe,n,d))});var be=$?y?getAllKeysIn:getAllKeys:y?keysIn:keys$1,ye=E?void 0:be(n);return arrayEach(ye||n,function(we,xe){ye&&(xe=we,we=n[xe]),assignValue(p,xe,baseClone(we,i,e,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,e=n==null?0:n.length;for(this.__data__=new MapCache;++i<e;)this.add(n[i])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(n,i){for(var e=-1,t=n==null?0:n.length;++e<t;)if(i(n[e],e,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,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$5,h=n.length,y=i.length;if(h!=y&&!(p&&y>h))return!1;var $=d.get(n),E=d.get(i);if($&&E)return $==i&&E==n;var M=-1,H=!0,Z=e&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(d.set(n,i),d.set(i,n);++M<h;){var be=n[M],ye=i[M];if(t)var we=p?t(ye,be,M,i,n,d):t(be,ye,M,n,i,d);if(we!==void 0){if(we)continue;H=!1;break}if(Z){if(!arraySome(i,function(xe,Ce){if(!cacheHas(Z,Ce)&&(be===xe||o(be,xe,e,t,d)))return Z.push(Ce)})){H=!1;break}}else if(!(be===ye||o(be,ye,e,t,d))){H=!1;break}}return d.delete(n),d.delete(i),H}function mapToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t,o){e[++i]=[o,t]}),e}function setToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t){e[++i]=t}),e}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,e,t,o,d,p){switch(e){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=t&COMPARE_PARTIAL_FLAG$4;if(h||(h=setToArray),n.size!=i.size&&!y)return!1;var $=p.get(n);if($)return $==i;t|=COMPARE_UNORDERED_FLAG$2,p.set(n,i);var E=equalArrays(h(n),h(i),t,o,d,p);return p.delete(n),E;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,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$3,h=getAllKeys(n),y=h.length,$=getAllKeys(i),E=$.length;if(y!=E&&!p)return!1;for(var M=y;M--;){var H=h[M];if(!(p?H in i:hasOwnProperty$4.call(i,H)))return!1}var Z=d.get(n),be=d.get(i);if(Z&&be)return Z==i&&be==n;var ye=!0;d.set(n,i),d.set(i,n);for(var we=p;++M<y;){H=h[M];var xe=n[H],Ce=i[H];if(t)var Ne=p?t(Ce,xe,H,i,n,d):t(xe,Ce,H,n,i,d);if(!(Ne===void 0?xe===Ce||o(xe,Ce,e,t,d):Ne)){ye=!1;break}we||(we=H=="constructor")}if(ye&&!we){var Fe=n.constructor,Me=i.constructor;Fe!=Me&&"constructor"in n&&"constructor"in i&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof Me=="function"&&Me instanceof Me)&&(ye=!1)}return d.delete(n),d.delete(i),ye}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,e,t,o,d){var p=isArray$1(n),h=isArray$1(i),y=p?arrayTag:getTag(n),$=h?arrayTag:getTag(i);y=y==argsTag?objectTag:y,$=$==argsTag?objectTag:$;var E=y==objectTag,M=$==objectTag,H=y==$;if(H&&isBuffer(n)){if(!isBuffer(i))return!1;p=!0,E=!1}if(H&&!E)return d||(d=new Stack),p||isTypedArray(n)?equalArrays(n,i,e,t,o,d):equalByTag(n,i,y,e,t,o,d);if(!(e&COMPARE_PARTIAL_FLAG$2)){var Z=E&&hasOwnProperty$3.call(n,"__wrapped__"),be=M&&hasOwnProperty$3.call(i,"__wrapped__");
vendor: 4,959 bytes, line 18
18if(Z||be){var ye=Z?n.value():n,we=be?i.value():i;return d||(d=new Stack),o(ye,we,e,t,d)}}return H?(d||(d=new Stack),equalObjects(n,i,e,t,o,d)):!1}function baseIsEqual(n,i,e,t,o){return n===i?!0:n==null||i==null||!isObjectLike(n)&&!isObjectLike(i)?n!==n&&i!==i:baseIsEqualDeep(n,i,e,t,baseIsEqual,o)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(n,i,e,t){var o=e.length,d=o;if(n==null)return!d;for(n=Object(n);o--;){var p=e[o];if(p[2]?p[1]!==n[p[0]]:!(p[0]in n))return!1}for(;++o<d;){p=e[o];var h=p[0],y=n[h],$=p[1];if(p[2]){if(y===void 0&&!(h in n))return!1}else{var E=new Stack,M;if(!(M===void 0?baseIsEqual($,y,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,t,E):M))return!1}}return!0}function isStrictComparable(n){return n===n&&!isObject$1(n)}function getMatchData(n){for(var i=keys$1(n),e=i.length;e--;){var t=i[e],o=n[t];i[e]=[t,o,isStrictComparable(o)]}return i}function matchesStrictComparable(n,i){return function(e){return e==null?!1:e[n]===i&&(i!==void 0||n in Object(e))}}function baseMatches(n){var i=getMatchData(n);return i.length==1&&i[0][2]?matchesStrictComparable(i[0][0],i[0][1]):function(e){return e===n||baseIsMatch(e,n,i)}}function baseHasIn(n,i){return n!=null&&i in Object(n)}function hasPath(n,i,e){i=castPath(i,n);for(var t=-1,o=i.length,d=!1;++t<o;){var p=toKey(i[t]);if(!(d=n!=null&&e(n,p)))break;n=n[p]}return d||++t!=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(e){var t=get$1(e,n);return t===void 0&&t===i?hasIn(e,n):baseIsEqual(i,t,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,e,t){for(var o=-1,d=n==null?0:n.length;++o<d;){var p=n[o];i(t,p,e(p),n)}return t}function createBaseFor(n){return function(i,e,t){for(var o=-1,d=Object(i),p=t(i),h=p.length;h--;){var y=p[++o];if(e(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(e,t){if(e==null)return e;if(!isArrayLike(e))return n(e,t);for(var o=e.length,d=-1,p=Object(e);++d<o&&t(p[d],d,p)!==!1;);return e}}var baseEach=createBaseEach(baseForOwn);function baseAggregator(n,i,e,t){return baseEach(n,function(o,d,p){i(t,o,e(o),p)}),t}function createAggregator(n,i){return function(e,t){var o=isArray$1(e)?arrayAggregator:baseAggregator,d=i?i():{};return o(e,n,baseIteratee(t),d)}}function assignMergeValue(n,i,e){(e!==void 0&&!eq(n[i],e)||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}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,e,t,o,d,p){var h=safeGet(n,e),y=safeGet(i,e),$=p.get(y);if($){assignMergeValue(n,e,$);return}var E=d?d(h,y,e+"",n,i,p):void 0,M=E===void 0;if(M){var H=isArray$1(y),Z=!H&&isBuffer(y),be=!H&&!Z&&isTypedArray(y);E=y,H||Z||be?isArray$1(h)?E=h:isArrayLikeObject(h)?E=copyArray(h):Z?(M=!1,E=cloneBuffer(y,!0)):be?(M=!1,E=cloneTypedArray(y,!0)):E=[]:isPlainObject$2(y)||isArguments(y)?(E=h,isArguments(h)?E=toPlainObject(h):(!isObject$1(h)||isFunction$3(h))&&(E=initCloneObject(y))):M=!1}M&&(p.set(y,E),o(E,y,t,d,p),p.delete(y)),assignMergeValue(n,e,E)}function baseMerge(n,i,e,t,o){n!==i&&baseFor(i,function(d,p){if(o||(o=new Stack),isObject$1(d))baseMergeDeep(n,i,p,e,baseMerge,t,o);else{var h=t?t(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,e,t){baseMerge(n,i,e,t)});function last(n){var i=n==null?0:n.length;return i?n[i-1]:void 0}function baseMap(n,i){var e=-1,t=isArrayLike(n)?Array(n.length):[];return baseEach(n,function(o,d,p){t[++e]=i(o,d,p)}),t}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty,groupBy=createAggregator(function(n,i,e){hasOwnProperty$2.call(n,e)?n[e].push(i):baseAssignValue(n,e,[i])});function parent(n,i){return i.length<2?n:baseGet(n,baseSlice(i,0,-1))}function isEqual$1(n,i){return baseIsEqual(n,i)}var merge$1=createAssigner(function(n,i,e){baseMerge(n,i,e)}),objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseUnset(n,i){i=castPath(i,n);var e=-1,t=i.length;if(!t)return!0;for(var o=n==null||typeof n!="object"&&typeof n!="function";++e<t;){var d=i[e];
18if(typeof d=="string"){if(d==="__proto__"&&!hasOwnProperty$1.call(n,"__proto__"))return!1;if(d==="constructor"&&e+1<t&&typeof i[e+1]=="string"&&i[e+1]==="prototype"){if(o&&e===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 e={};if(n==null)return e;var t=!1;i=arrayMap(i,function(d){return d=castPath(d,n),t||(t=d.length>1),d}),copyObject(n,getAllKeysIn(n),e),t&&(e=baseClone(e,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var o=i.length;o--;)baseUnset(e,i[o]);return e});function baseSet(n,i,e,t){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;if(y==="__proto__"||y==="constructor"||y==="prototype")return n;if(o!=p){var E=h[y];$=void 0,$===void 0&&($=isObject$1(E)?E:isIndex(i[o+1])?[]:{})}assignValue(h,y,$),h=h[y]}return n}function basePickBy(n,i,e){for(var t=-1,o=i.length,d={};++t<o;){var p=i[t],h=baseGet(n,p);e(h,p)&&baseSet(d,castPath(p,n),h)}return d}function once(n){return before(2,n)}function baseSortBy(n,i){var e=n.length;for(n.sort(i);e--;)n[e]=n[e].value;return n}function compareAscending(n,i){if(n!==i){var e=n!==void 0,t=n===null,o=n===n,d=isSymbol(n),p=i!==void 0,h=i===null,y=i===i,$=isSymbol(i);if(!h&&!$&&!d&&n>i||d&&p&&y&&!h&&!$||t&&p&&y||!e&&y||!o)return 1;if(!t&&!d&&!$&&n<i||$&&e&&o&&!t&&!d||h&&e&&o||!p&&o||!y)return-1}return 0}function compareMultiple(n,i,e){for(var t=-1,o=n.criteria,d=i.criteria,p=o.length,h=e.length;++t<p;){var y=compareAscending(o[t],d[t]);if(y){if(t>=h)return y;var $=e[t];return y*($=="desc"?-1:1)}}return n.index-i.index}function baseOrderBy(n,i,e){i.length?i=arrayMap(i,function(d){return isArray$1(d)?function(p){return baseGet(p,d.length===1?d[0]:d)}:d}):i=[identity];var t=-1;i=arrayMap(i,baseUnary(baseIteratee));var o=baseMap(n,function(d,p,h){var y=arrayMap(i,function($){return $(d)});return{criteria:y,index:++t,value:d}});return baseSortBy(o,function(d,p){return compareMultiple(d,p,e)})}function basePick(n,i){return basePickBy(n,i,function(e,t){return hasIn(n,t)})}var pick$1=flatRest(function(n,i){return n==null?{}:basePick(n,i)}),nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(n,i,e,t){for(var o=-1,d=nativeMax$1(nativeCeil((i-n)/(e||1)),0),p=Array(d);d--;)p[++o]=n,n+=e;return p}function createRange(n){return function(i,e,t){return t&&typeof t!="number"&&isIterateeCall(i,e,t)&&(e=t=void 0),i=toFinite(i),e===void 0?(e=i,i=0):e=toFinite(e),t=t===void 0?i<e?1:-1:toFinite(t),baseRange(i,e,t)}}var range=createRange(),sortBy=baseRest(function(n,i){if(n==null)return[];var e=i.length;return e>1&&isIterateeCall(n,i[0],i[1])?i=[]:e>2&&isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),baseOrderBy(n,baseFlatten(i),[])}),nativeMax=Math.max;function unzip(n){if(!(n&&n.length))return[];var i=0;return n=arrayFilter(n,function(e){if(isArrayLikeObject(e))return i=nativeMax(e.length,i),!0}),baseTimes(i,function(e){return arrayMap(n,baseProperty(e))})}var zip=baseRest(unzip),cuint={},uint32$1={exports:{}},uint32=uint32$1.exports,hasRequiredUint32;function requireUint32(){return hasRequiredUint32||(hasRequiredUint32=1,(function(n){(function(i){e(Math.pow(36,5)),e(Math.pow(16,7)),e(Math.pow(10,9)),e(Math.pow(2,30)),e(36),e(16),e(10),e(2);function e(p,h){if(!(this instanceof e))return new e(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);t.call(this,p,h)}function t(p,h){return this._low=p|0,this._high=h|0,this}e.prototype.fromBits=t;function o(p){return this._low=p&65535,this._high=p>>>16,this}e.prototype.fromNumber=o;function d(p,h){var y=parseInt(p,h||10);return this._low=y&65535,this._high=y>>>16,this}e.prototype.fromString=d,e.prototype.toNumber=function(){return this._high*65536+this._low},e.prototype.toString=function(p){return this.toNumber().toString(p||10)},e.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},e.prototype.subtract=function(p){return this.add(p.clone().negate())},e.prototype.multiply=function(p){var h=this._high,y=this._low,$=p._high,E=p._low,M,H;return H=y*E,M=H>>>16,M+=h*E,M&=65535,M+=y*$,this._low=H&65535,this._high=M&65535,this},e.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 e(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 e(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},e.prototype.negate=function(){var p=(~this._low&65535)+1;return this._low=p&65535,this._high=~this._high+(p>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(p){return this._low==p._low&&this._high==p._high},e.prototype.greaterThan=e.prototype.gt=function(p){return this._high>p._high?!0:this._high<p._high?!1:this._low>p._low},e.prototype.lessThan=e.prototype.lt=function(p){return this._high<p._high?!0:this._high>p._high?!1:this._low<p._low},e.prototype.or=function(p){return this._low|=p._low,this._high|=p._high,this},e.prototype.and=function(p){return this._low&=p._low,this._high&=p._high,this},e.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},e.prototype.xor=function(p){return this._low^=p._low,this._high^=p._high,this},e.prototype.shiftRight=e.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},e.prototype.shiftLeft=e.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},e.prototype.rotateLeft=e.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},e.prototype.rotateRight=e.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},e.prototype.clone=function(){return new e(this._low,this._high)},n.exports?n.exports=e:i.UINT32=e})(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 e={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},t={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,$);if(typeof $>"u")return p.call(this,y);d.apply(this,arguments)}function d(y,$,E,M){return typeof E>"u"?(this._a00=y&65535,this._a16=y>>>16,this._a32=$&65535,this._a48=$>>>16,this):(this._a00=y|0,this._a16=$|0,this._a32=E|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,$){$=$||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var E=e[$]||new o(Math.pow($,5)),M=0,H=y.length;M<H;M+=5){var Z=Math.min(5,H-M),be=parseInt(y.slice(M,M+Z),$);this.multiply(Z<5?new o(Math.pow($,Z)):E).add(new o(be))}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 $=t[y]||new o(y);if(!this.gt($))return this.toNumber().toString(y);for(var E=this.clone(),M=new Array(64),H=63;H>=0&&(E.div($),M[H]=E.remainder.toNumber().toString(y),!!E.gt($));H--);return M[H-1]=E.toNumber().toString(y),M.join("")},o.prototype.add=function(y){var $=this._a00+y._a00,E=$>>>16;E+=this._a16+y._a16;var M=E>>>16;M+=this._a32+y._a32;var H=M>>>16;return H+=this._a48+y._a48,this._a00=$&65535,this._a16=E&65535,this._a32=M&65535,this._a48=H&65535,this},o.prototype.subtract=function(y){return this.add(y.clone().negate())},o.prototype.multiply=function(y){var $=this._a00,E=this._a16,M=this._a32,H=this._a48,Z=y._a00,be=y._a16,ye=y._a32,we=y._a48,xe=$*Z,Ce=xe>>>16;Ce+=$*be;var Ne=Ce>>>16;Ce&=65535,Ce+=E*Z,Ne+=Ce>>>16,Ne+=$*ye;var Fe=Ne>>>16;return Ne&=65535,Ne+=E*be,Fe+=Ne>>>16,Ne&=65535,Ne+=M*Z,Fe+=Ne>>>16,Fe+=$*we,Fe&=65535,Fe+=E*ye,Fe&=65535,Fe+=M*be,Fe&=65535,Fe+=H*Z,this._a00=xe&65535,this._a16=Ce&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 $=y.clone(),E=-1;!this.lt($);)$.shiftLeft(1,!0),E++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;E>=0;E--)$.shiftRight(1),this.remainder.lt($)||(this.remainder.subtract($),E>=48?this._a48|=1<<E-48:E>=32?this._a32|=1<<E-32:E>=16?this._a16|=1<<E-16:this._a00|=1<<E);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,$){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),$||(this._a48&=65535),this},o.prototype.rotateLeft=o.prototype.rotl=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E<<y|M>>>32-y,Z=M<<y|E>>>32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E>>>y|M<<32-y,Z=M>>>y|E<<32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>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;
18function requireXxhash(){if(hasRequiredXxhash)return xxhash$1;hasRequiredXxhash=1;var n=requireCuint().UINT32;n.prototype.xxh_update=function($,E){var M=e._low,H=e._high,Z,be;be=$*M,Z=be>>>16,Z+=E*M,Z&=65535,Z+=$*H;var ye=this._low+(be&65535),we=ye>>>16;we+=this._high+(Z&65535);var xe=we<<16|ye&65535;xe=xe<<13|xe>>>19,ye=xe&65535,we=xe>>>16,M=i._low,H=i._high,be=ye*M,Z=be>>>16,Z+=we*M,Z&=65535,Z+=ye*H,this._low=be&65535,this._high=Z&65535};var i=n("2654435761"),e=n("2246822519"),t=n("3266489917"),o=n("668265263"),d=n("374761393");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}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($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),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($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+Z<16)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,16-this.memsize):M?this.memory.set($.subarray(0,16-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,16-this.memsize);var ye=0;E?(this.v1.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v2.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v3.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v4.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2))):(this.v1.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v2.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v3.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v4.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2])),H+=16-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-16){var we=be-16;do E?(this.v1.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v2.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v3.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v4.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2))):(this.v1.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v2.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v3.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v4.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2])),H+=4;while(H<=we)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=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(ye.fromNumber(this.total_len));M<=H-4;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2]),Z.add(ye.multiply(t)).rotl(17).multiply(o),M+=4;for(;M<H;
18)ye.fromBits(E?$.charCodeAt(M++):$[M++],0),Z.add(ye.multiply(d)).rotl(11).multiply(i);return be=Z.clone().shiftRight(15),Z.xor(be).multiply(e),be=Z.clone().shiftRight(13),Z.xor(be).multiply(t),be=Z.clone().shiftRight(16),Z.xor(be),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"),e=n("14029467366897019727"),t=n("1609587929392839161"),o=n("9650029242287828579"),d=n("2870177450012600261");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}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($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),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($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+Z<32)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,32-this.memsize):M?this.memory.set($.subarray(0,32-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,32-this.memsize);var ye=0;if(E){var we;we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=32-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-32){var xe=be-32;do{if(E){var we;we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=8}while(H<=xe)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=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(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v2.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v3.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v4.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o)):Z=this.seed.clone().add(d),Z.add(ye.fromNumber(this.total_len));M<=H-8;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),$.charCodeAt(M+5)<<8|$.charCodeAt(M+4),$.charCodeAt(M+7)<<8|$.charCodeAt(M+6)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],$[M+5]<<8|$[M+4],$[M+7]<<8|$[M+6]),ye.multiply(e).rotl(31).multiply(i),Z.xor(ye).rotl(27).multiply(i).add(o),M+=8;for(M+4<=H&&(E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),0,0):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],0,0),Z.xor(ye.multiply(i)).rotl(23).multiply(e).add(t),M+=4);M<H;)ye.fromBits(E?$.charCodeAt(M++):$[M++],0,0,0),Z.xor(ye.multiply(d)
18).rotl(11).multiply(i);return be=Z.clone().shiftRight(33),Z.xor(be).multiply(e),be=Z.clone().shiftRight(29),Z.xor(be).multiply(t),be=Z.clone().shiftRight(32),Z.xor(be),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$2(n,i){let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout(()=>{i(...t),e=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((t,o)=>{o=o.toString().toLowerCase(),t=t.toString().toLowerCase(),o===n&&EMBED_QUERY_PARAM_VALUES.includes(t)&&i.add(t)}),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(e=>{i.push([EMBED_OPTIONS_QUERY_PARAM_KEY,e])}),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(),e=String(n.getMonth()+1).padStart(2,"0"),t=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}-${e}-${t}-${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(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,e){const t=i?e:new Date,o=t?`expires=${t.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,e,t=!1){let o=!1;return n!==""?{placeholder:n,shouldDisable:o}:(i.length===0?e?n=t?"Add options":"Add an option":(n="No options to select",o=!0):e?n=t?"Choose or add options":"Cho
18ose or add an option":n=t?"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 LabelVisibilityMessage.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibilityMessage.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibilityMessage.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 e=0;e<n.length;e++){const t=n[e].contentDocument;if(t&&t.getElementsByClassName(i).length>0)return n[e]}return null}function canAccessIFrame(n){try{if(n.contentWindow===null)return!1;const e=(n.contentDocument||n.contentWindow.document).body.innerHTML;return e!==null&&e!==""}catch{return!1}}function getIFrameEnclosingApp(n){if(!isInChildFrame())return null;const i=getEmbeddingIdClassName(n),e='iframe[title="streamlitApp"]';let t=window.document.querySelectorAll(e),o=findAnIFrameWithClassName(t,i);if(o&&!canAccessIFrame(o))return null;if(o)return o;if(window.parent&&(t=window.parent.document.querySelectorAll(e)),o=findAnIFrameWithClassName(t,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,e)=>{const t=decamelize$1(e,{preserveConsecutiveUppercase:!0}).replace(".","_");let o=n[e];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[t]=o,i},{})}const MAX_HASH_LENGTH=6;class DebugVisitor{constructor(i="",e=!0){this.prefix=i,this.isLast=e}visitBlockNode(i){const e=this.isLast?"âââ ":"âââ ",t=this.prefix+(this.isLast?" ":"â ");let o=`${this.prefix}${e}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(t,h);o+=d.accept(y)}),o}visitElementNode(i){const e=this.isLast?"âââ ":"âââ ";let t=`${this.prefix}${e}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;t+=` "${o}"`}return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(t+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),i.fragmentId&&(t+=` (fragment: ${i.fragmentId.substring(0,MAX_HASH_LENGTH)})`),t+=` (activeScriptHash: ${i.activeScriptHash.substring(0,MAX_HASH_LENGTH)})`,t+=` 20`,t}visitTransientNode(i){const e=this.isLast?"âââ ":"âââ ",t=this.prefix+(this.isLast?" ":"â ");let o=`${this.prefix}${e}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+=`${t}âââ anchor: 22`;const d=new DebugVisitor(t+"â ",!0);o+=i.anchor.accept(d)}return i.transientNodes.length>0&&(o+=`${t}âââ transient nodes: 23`,i.transientNodes.forEach((d,p)=>{const h=p===i.transientNodes.length-1,y=h?"âââ ":"âââ ",$=t+" "+(h?" ":"â ");o+=`${t} ${y}: 24`;const E=new DebugVisitor($,!0);o+=d.accept(E)})),o}static generateDebugString(i,e="",t=!0){const o=new DebugVisitor(e,t);return i.accept(o)}}class TransientNode{constructor(i,e,t,o){this.scriptRunId=i,this.anchor=e,this.transientNodes=t??[],this.deltaMsgReceivedAt=o??Date.now(),this.fragmentId=void 0,this.activeScriptHash=void 0}updateTransientNodes(i){const e=[];
24return this.transientNodes.forEach(t=>{const o=i(t);o&&e.push(o)}),e}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,e,t){this.currentScriptRunId=i,this.fragmentIdsThisRun=e??[],this.fragmentIdOfBlock=t}get isFragmentRun(){return this.fragmentIdsThisRun.length>0}visitBlockNode(i){let e=null;if(this.isFragmentRun){if(this.fragmentIdOfBlock&&i.scriptRunId!==this.currentScriptRunId)return;i.fragmentId&&this.fragmentIdsThisRun.includes(i.fragmentId)&&i.scriptRunId===this.currentScriptRunId&&(e=new ClearStaleNodeVisitor(this.currentScriptRunId,this.fragmentIdsThisRun,i.fragmentId))}else if(i.scriptRunId!==this.currentScriptRunId)return;const t=[];let o=!1;return i.children.forEach(d=>{const p=d.accept(e??this);p!==d&&(o=!0),p!==void 0&&t.push(p)}),o?new BlockNode(i.activeScriptHash,t,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){const e=i.anchor?.accept(this),t=i.updateTransientNodes(o=>o.accept(this));if(!(!e&&t.length===0))return t.length===0?e:new TransientNode(i.scriptRunId,e,t,i.deltaMsgReceivedAt)}}class BlockNode{constructor(i,e,t,o,d,p){this.activeScriptHash=i,this.children=e??[],this.deltaBlock=t??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 e=i.updateTransientNodes(t=>t.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return e.length===0?this:new TransientNode(this.scriptRunId,this,e,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 e=O$1.hasOwnProperty.call(i,CONSTRUCTOR)&&i[CONSTRUCTOR];if(e===Object)return!0;if(!isFunction$2(e))return!1;let t=cachedCtorStrings.get(e);return t===void 0&&(t=Function.toString.call(e),cachedCtorStrings.set(e,t)),t===objectCtorString}function each(n,i,e=!0){getArchtype(n)===0?(e?Reflect.ownKeys(n):O$1.keys(n)).forEach(o=>{i(o,n[o],n)}):n.forEach((t,o)=>i(o,t,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,e=getArchtype(n))=>e===2?n.has(i):O$1[PROTOTYPE].hasOwnProperty.call(n,i),get=(n,i,e=getArchtype(n))=>e===2?n.get(i):n[i],set=(n,i,e,t=getArchtype(n))=>{t===2?n.set(i,e):t===3?n.add(e):n[i]=e};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 e=isPlainObject$1(n);if(i===!0||i==="class_only"&&!e){const t=O$1.getOwnPropertyDescriptors(n);delete t[DRAFT_STATE];let o=Reflect.ownKeys(t);for(let d=0;d<o.length;d++){const p=o[d],h=t[p];h[WRITABLE]===!1&&(h[WRITABLE]=!0,h[CONFIGURABLE]=!0),(h.get||h.set)&&(t[p]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:h[ENUMERABLE],[VALUE]:n[p]})}return O$1.create(getPrototypeOf(n),t)}else{const t=getPrototypeOf(n);if(t!==null&&e)return{...n};const o=O$1.create(t);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,(e,t)=>{freeze(t,!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 e=i.drafts_[0];if(n!==void 0&&n!==e){e[DRAFT_STATE].modified_&&(revokeScope(i),die(4)),isDraftable(n)&&(n=finalize(i,n));const{patchPlugin_:o}=i;o&&o.generateReplacementPatches_(e[DRAFT_STATE].base_,n,i)}else n=finalize(i,e);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 e=i[DRAFT_STATE];if(!e)return handleValue(i,n.handledSet_,n);if(!isSameScope(e,n))return i;if(!e.modified_)return e.base_;if(!e.finalized_){const{callbacks_:t}=e;if(t)for(;t.length>0;)t.pop()(n);generatePatchesAndFinalize(e,n)}return e.copy_}function maybeFreeze(n,i,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&freeze(i,e)}function markStateFinalized(n){n.finalized_=!0,n.scope_.unfinalizedDrafts_--}var isSameScope=(n,i)=>n.scope_===i,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(n,i,e,t){const o=latest(n),d=n.type_;if(t!==void 0&&get(o,t,d)===i){set(o,t,e,d);return}if(!n.draftLocations_){const h=n.draftLocations_=new Map;each(o,(y,$)=>{if(isDraft($)){const E=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,e,d)}function registerChildFinalizationCallback(n,i,e){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,e),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_:t}=i;if(t){const o=t.getPath(n);o&&t.generatePatches_(n,o,i)}markStateFinalized(n)}}function handleCrossReference(n,i,e){const{scope_:t}=n;if(isDraft(e)){const o=e[DRAFT_STATE];isSameScope(o,t)&&o.callbacks_.push(function(){prepareCopy(n);const p=getFinalValue(o);updateDraftInParent(n,e,p,i)})}else isDraftable(e)&&n.callbacks_.push(function(){const d=latest
vendor: 6,267 bytes, line 24
24(n);n.type_===3?d.has(e)&&handleValue(e,t.handledSet_,t):get(d,i,n.type_)===e&&t.drafts_.length>1&&(n.assigned_.get(i)??!1)===!0&&n.copy_&&handleValue(get(n.copy_,i,n.type_),t.handledSet_,t)})}function handleValue(n,i,e){return!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||isDraft(n)||i.has(n)||!isDraftable(n)||isFrozen(n)||(i.add(n),each(n,(t,o)=>{if(isDraft(o)){const d=o[DRAFT_STATE];if(isSameScope(d,e)){const p=getFinalValue(d);set(n,t,p,n.type_),markStateFinalized(d)}}else isDraftable(o)&&handleValue(o,i,e)})),n}function createProxyProxy(n,i){const e=isArray(n),t={type_:e?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=t,d=objectTraps;e&&(o=[t],d=arrayTraps);const{revoke:p,proxy:h}=Proxy.revocable(o,d);return t.draft_=h,t.revoke_=p,[h,t]}var objectTraps={get(n,i){if(i===DRAFT_STATE)return n;let e=n.scope_.arrayMethodsPlugin_;const t=n.type_===1&&typeof i=="string";if(t&&e?.isArrayOperationMethod(i))return e.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)||t&&n.operationMethod&&e?.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,e){const t=getDescriptorFromProto(latest(n),i);if(t?.set)return t.set.call(n.draft_,e),!0;if(!n.modified_){const o=peek(latest(n),i),d=o?.[DRAFT_STATE];if(d&&d.base_===e)return n.copy_[i]=e,n.assigned_.set(i,!1),!0;if(is(e,o)&&(e!==void 0||has(n.base_,i,n.type_)))return!0;prepareCopy(n),markChanged(n)}return n.copy_[i]===e&&(e!==void 0||i in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[i])||(n.copy_[i]=e,n.assigned_.set(i,!0),handleCrossReference(n,i,e)),!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 e=latest(n),t=Reflect.getOwnPropertyDescriptor(e,i);return t&&{[WRITABLE]:!0,[CONFIGURABLE]:n.type_!==1||i!=="length",[ENUMERABLE]:t[ENUMERABLE],[VALUE]:e[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 e=arguments;return e[0]=e[0][0],i.apply(this,e)}}arrayTraps.deleteProperty=function(n,i){return arrayTraps.set.call(this,n,i,void 0)};arrayTraps.set=function(n,i,e){return objectTraps.set.call(this,n[0],i,e,n[0])};function peek(n,i){const e=n[DRAFT_STATE];return(e?latest(e):n)[i]}function readPropFromProto(n,i,e){const t=getDescriptorFromProto(i,e);return t?VALUE in t?t[VALUE]:t.get?.call(n.draft_):void 0}function getDescriptorFromProto(n,i){if(!(i in n))return;let e=getPrototypeOf(n);for(;e;){const t=Object.getOwnPropertyDescriptor(e,i);if(t)return t;e=getPrototypeOf(e)}}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,e,t)=>{if(isFunction$2(i)&&!isFunction$2(e)){const d=e;e=i;const p=this;return function(y=d,...$){return p.produce(y,E=>e.call(this,E,...$))}}isFunction$2(e)||die(6),t!==void 0&&!isFunction$2(t)&&die(7);let o;if(isDraftable(i)){const d=enterScope(this),p=createProxy(d,i,void 0);let h=!0;try{o=e(p),h=!1}finally{h?revokeScope(d):leaveScope(d)}return usePatchesInScope(d,t),processResult(o,d)}else if(!i||!isObjectish(i)){if(o=e(i),o===void 0&&(o=i),o===NOTHING&&(o=void 0),this.autoFreeze_&&freeze(o,!0),t){const d=[],p=[];getPlugin(PluginPatches).generateReplacementPatches_(i,o,{patches_:d,inversePatches_:p}),t(d,p)}return o}else die(1,i)},this.produceWithPatches=(i,e)=>{if(isFunction$2(i))return(p,...h)=>this.produceWithPatches(p,y=>i(y,...h));let t,o;return[this.produce(i,e,(p,h)=>{t=p,o=h}),t,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),e=createProxy(i,n,void 0);return e[DRAFT_STATE].isManual_=!0,leaveScope(i),e}finishDraft(n,i){const e=n&&n[DRAFT_STATE];(!e||!e.isManual_)&&die(9);const{scope_:t}=e;return usePatchesInScope(t,i),processResult(void 0,t)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}setUseStrictIteration(n){this.useStrictIteration_=n}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(n,i){let e;for(e=i.length-1;e>=0;e--){const o=i[e];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}e>-1&&(i=i.slice(e+1));const t=getPlugin(PluginPatches).applyPatches_;return isDraft(n)?t(n,i):this.produce(n,o=>t(o,i))}};function createProxy(n,i,e,t){const[o,d]=isMap(i)?getPlugin(PluginMapSet).proxyMap_(i,e):isSet(i)?getPlugin(PluginMapSet).proxySet_(i,e):createProxyProxy(i,e);return(e?.scope_??getCurrentScope()).drafts_.push(o),d.callbacks_=e?.callbacks_??[],d.key_=t,e&&t!==void 0?registerChildFinalizationCallback(e,d,t):d.callbacks_.push(function(y){y.mapSetPlugin_?.fixSetContents(d);const{patchPlugin_:$}=y;d.modified_&&$&&$.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 e,t=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,e=shallowCopy(n,i.scope_.immer_.useStrictShallowCopy_),t=i.scope_.immer_.shouldUseStrictIteration()}else e=shallowCopy(n,!0);return each(e,(o,d)=>{set(e,o,currentImpl(d))},t),i&&(i.finalized_=!1),e}function enablePatches(){function i(be,ye=[]){if(be.key_!==void 0){const we=be.parent_.copy_??be.parent_.base_,xe=getProxyDraft(get(we,be.key_)),Ce=get(we,be.key_);
24if(Ce===void 0||Ce!==be.draft_&&Ce!==be.base_&&Ce!==be.copy_||xe!=null&&xe.base_!==be.base_)return null;const Ne=be.parent_.type_===3;let Fe;if(Ne){const Me=be.parent_;Fe=Array.from(Me.drafts_.keys()).indexOf(be.key_)}else Fe=be.key_;if(!(Ne&&we.size>Fe||has(we,Fe)))return null;ye.push(Fe)}if(be.parent_)return i(be.parent_,ye);ye.reverse();try{e(be.copy_,ye)}catch{return null}return ye}function e(be,ye){let we=be;for(let xe=0;xe<ye.length-1;xe++){const Ce=ye[xe];if(we=get(we,Ce),!isObjectish(we)||we===null)throw new Error(`Cannot resolve path at '${ye.join("/")}'`)}return we}const t="replace",o="add",d="remove";function p(be,ye,we){if(be.scope_.processedForPatches_.has(be))return;be.scope_.processedForPatches_.add(be);const{patches_:xe,inversePatches_:Ce}=we;switch(be.type_){case 0:case 2:return y(be,ye,xe,Ce);case 1:return h(be,ye,xe,Ce);case 3:return $(be,ye,xe,Ce)}}function h(be,ye,we,xe){let{base_:Ce,assigned_:Ne}=be,Fe=be.copy_;Fe.length<Ce.length&&([Ce,Fe]=[Fe,Ce],[we,xe]=[xe,we]);const Me=be.allIndicesReassigned_===!0;for(let Le=0;Le<Ce.length;Le++){const ze=Fe[Le],Ke=Ce[Le];if((Me||Ne?.get(Le.toString()))&&ze!==Ke){const je=ze?.[DRAFT_STATE];if(je&&je.modified_)continue;const We=ye.concat([Le]);we.push({op:t,path:We,value:Z(ze)}),xe.push({op:t,path:We,value:Z(Ke)})}}for(let Le=Ce.length;Le<Fe.length;Le++){const ze=ye.concat([Le]);we.push({op:o,path:ze,value:Z(Fe[Le])})}for(let Le=Fe.length-1;Ce.length<=Le;--Le){const ze=ye.concat([Le]);xe.push({op:d,path:ze})}}function y(be,ye,we,xe){const{base_:Ce,copy_:Ne,type_:Fe}=be;each(be.assigned_,(Me,Le)=>{const ze=get(Ce,Me,Fe),Ke=get(Ne,Me,Fe),Ve=Le?has(Ce,Me)?t:o:d;if(ze===Ke&&Ve===t)return;const je=ye.concat(Me);we.push(Ve===d?{op:Ve,path:je}:{op:Ve,path:je,value:Z(Ke)}),xe.push(Ve===o?{op:d,path:je}:Ve===d?{op:o,path:je,value:Z(ze)}:{op:t,path:je,value:Z(ze)})})}function $(be,ye,we,xe){let{base_:Ce,copy_:Ne}=be,Fe=0;Ce.forEach(Me=>{if(!Ne.has(Me)){const Le=ye.concat([Fe]);we.push({op:d,path:Le,value:Me}),xe.unshift({op:o,path:Le,value:Me})}Fe++}),Fe=0,Ne.forEach(Me=>{if(!Ce.has(Me)){const Le=ye.concat([Fe]);we.push({op:o,path:Le,value:Me}),xe.unshift({op:d,path:Le,value:Me})}Fe++})}function E(be,ye,we){const{patches_:xe,inversePatches_:Ce}=we;xe.push({op:t,path:[],value:ye===NOTHING?void 0:ye}),Ce.push({op:t,path:[],value:be})}function M(be,ye){return ye.forEach(we=>{const{path:xe,op:Ce}=we;let Ne=be;for(let ze=0;ze<xe.length-1;ze++){const Ke=getArchtype(Ne);let Ve=xe[ze];typeof Ve!="string"&&typeof Ve!="number"&&(Ve=""+Ve),(Ke===0||Ke===1)&&(Ve==="__proto__"||Ve===CONSTRUCTOR)&&die(19),isFunction$2(Ne)&&Ve===PROTOTYPE&&die(19),Ne=get(Ne,Ve),isObjectish(Ne)||die(18,xe.join("/"))}const Fe=getArchtype(Ne),Me=H(we.value),Le=xe[xe.length-1];switch(Ce){case t:switch(Fe){case 2:return Ne.set(Le,Me);case 3:die(16);default:return Ne[Le]=Me}case o:switch(Fe){case 1:return Le==="-"?Ne.push(Me):Ne.splice(Le,0,Me);case 2:return Ne.set(Le,Me);case 3:return Ne.add(Me);default:return Ne[Le]=Me}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,Ce)}}),be}function H(be){if(!isDraftable(be))return be;if(isArray(be))return be.map(H);if(isMap(be))return new Map(Array.from(be.entries()).map(([we,xe])=>[we,H(xe)]));if(isSet(be))return new Set(Array.from(be).map(H));const ye=Object.create(getPrototypeOf(be));for(const we in be)ye[we]=H(be[we]);return has(be,DRAFTABLE)&&(ye[DRAFTABLE]=be[DRAFTABLE]),ye}function Z(be){return isDraft(be)?H(be):be}loadPlugin(PluginPatches,{applyPatches_:M,generatePatches_:p,generateReplacementPatches_:E,getPath:i})}function enableMapSet(){class n extends Map{constructor($,E){super(),this[DRAFT_STATE]={type_:2,parent_:E,scope_:E?E.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:$,draft_:this,isManual_:!1,revoked_:!1,callbacks_:[]}}get size(){return latest(this[DRAFT_STATE]).size}has($){return latest(this[DRAFT_STATE]).has($)}set($,E){const M=this[DRAFT_STATE];return p(M),(!latest(M).has($)||latest(M).get($)!==E)&&(e(M),markChanged(M),M.assigned_.set($,!0),M.copy_.set($,E),M.assigned_.set($,!0),handleCrossReference(M,$,E)),this}delete($){if(!this.has($))return!1;const E=this[DRAFT_STATE];return p(E),e(E),markChanged(E),E.base_.has($)?E.assigned_.set($,!1):E.assigned_.delete($),E.copy_.delete($),!0}clear(){const $=this[DRAFT_STATE];p($),latest($).size&&(e($),markChanged($),$.assigned_=new Map,each($.base_,E=>{$.assigned_.set(E,!1)}),$.copy_.clear())}forEach($,E){const M=this[DRAFT_STATE];
24latest(M).forEach((H,Z,be)=>{$.call(E,this.get(Z),Z,this)})}get($){const E=this[DRAFT_STATE];p(E);const M=latest(E).get($);if(E.finalized_||!isDraftable(M)||M!==E.base_.get($))return M;const H=createProxy(E.scope_,M,E,$);return e(E),E.copy_.set($,H),H}keys(){return latest(this[DRAFT_STATE]).keys()}values(){const $=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const E=$.next();return E.done?E:{done:!1,value:this.get(E.value)}}}}entries(){const $=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const E=$.next();if(E.done)return E;const M=this.get(E.value);return{done:!1,value:[E.value,M]}}}}[Symbol.iterator](){return this.entries()}}function i(y,$){const E=new n(y,$);return[E,E[DRAFT_STATE]]}function e(y){y.copy_||(y.assigned_=new Map,y.copy_=new Map(y.base_))}class t extends Set{constructor($,E){super(),this[DRAFT_STATE]={type_:3,parent_:E,scope_:E?E.scope_:getCurrentScope(),modified_:!1,finalized_:!1,copy_:void 0,base_:$,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1,assigned_:void 0,callbacks_:[]}}get size(){return latest(this[DRAFT_STATE]).size}has($){const E=this[DRAFT_STATE];return p(E),E.copy_?!!(E.copy_.has($)||E.drafts_.has($)&&E.copy_.has(E.drafts_.get($))):E.base_.has($)}add($){const E=this[DRAFT_STATE];return p(E),this.has($)||(d(E),markChanged(E),E.copy_.add($),handleCrossReference(E,$,$)),this}delete($){if(!this.has($))return!1;const E=this[DRAFT_STATE];return p(E),d(E),markChanged(E),E.copy_.delete($)||(E.drafts_.has($)?E.copy_.delete(E.drafts_.get($)):!1)}clear(){const $=this[DRAFT_STATE];p($),latest($).size&&(d($),markChanged($),$.copy_.clear())}values(){const $=this[DRAFT_STATE];return p($),d($),$.copy_.values()}entries(){const $=this[DRAFT_STATE];return p($),d($),$.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach($,E){const M=this.values();let H=M.next();for(;!H.done;)$.call(E,H.value,H.value,this),H=M.next()}}function o(y,$){const E=new t(y,$);return[E,E[DRAFT_STATE]]}function d(y){y.copy_||(y.copy_=new Set,y.base_.forEach($=>{if(isDraftable($)){const E=createProxy(y.scope_,$,y,$);y.drafts_.set($,E),y.copy_.add(E)}else y.copy_.add($)}))}
24function p(y){y.revoked_&&die(3,JSON.stringify(latest(y)))}function h(y){if(y.type_===3&&y.copy_){const $=new Set(y.copy_);y.copy_.clear(),$.forEach(E=>{y.copy_.add(getValue(E))})}}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 e,t=1,o=arguments.length;t<o;t++){e=arguments[t];for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(i[d]=e[d])}return i},__assign$2.apply(this,arguments)};function __awaiter(n,i,e,t){function o(d){return d instanceof e?d:new e(function(p){p(d)})}return new(e||(e=Promise))(function(d,p){function h(E){try{$(t.next(E))}catch(M){p(M)}}function y(E){try{$(t.throw(E))}catch(M){p(M)}}function $(E){E.done?d(E.value):o(E.value).then(h,y)}$((t=t.apply(n,i||[])).next())})}function __values(n){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&n[i],t=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],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,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e.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(be){return Promise.resolve(be).then(Z,M)}}function h(Z,be){t[Z]&&(o[Z]=function(ye){return new Promise(function(we,xe){d.push([Z,ye,we,xe])>1||y(Z,ye)})},be&&(o[Z]=be(o[Z])))}function y(Z,be){try{$(t[Z](be))}catch(ye){H(d[0][3],ye)}}function $(Z){Z.value instanceof __await?Promise.resolve(Z.value.v).then(E,M):H(d[0][2],Z)}function E(Z){y("next",Z)}function M(Z){y("throw",Z)}function H(Z,be){Z(be),d.shift(),d.length&&y(d[0][0],d[0][1])}}function __asyncDelegator(n){var i,e;return i={},t("next"),t("throw",function(o){throw o}),t("return"),i[Symbol.iterator]=function(){return this},i;function t(o,d){i[o]=n[o]?function(p){return(e=!e)?{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],e;return i?i.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),e={},t("next"),t("throw"),t("return"),e[Symbol.asyncIterator]=function(){return this},e);function t(d){e[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($){d({value:$,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 e,t,o,d;for(let p,h,y=0,$=0,E=n.length;++y<E;){if(p=i[$],h=n[y],!p||!h||p.buffer!==h.buffer||h.byteOffset<p.byteOffset){h&&(i[++$]=h);continue}if({byteOffset:e,byteLength:o}=p,{byteOffset:t,byteLength:d}=h,e+o<t||t+d<e){h&&(i[++$]=h);continue}i[$]=new Uint8Array(p.buffer,e,t-e+d)}return i}function memcpy(n,i,e=0,t=i.byteLength){const o=n.byteLength,d=new Uint8Array(n.buffer,n.byteOffset,o),p=new Uint8Array(i.buffer,i.byteOffset,Math.min(t,o));return d.set(p,e),n}function joinUint8Arrays(n,i){const e=collapseContiguousByteRanges(n),t=e.reduce((E,M)=>E+M.byteLength,0);let o,d,p,h=0,y=-1;const $=Math.min(i||Number.POSITIVE_INFINITY,t);for(const E=e.length;++y<E;){if(o=e[y],d=o.subarray(0,Math.min(o.length,$-h)),$<=h+d.length){d.length<o.length?e[y]=o.subarray(d.length):d.length===o.length&&y++,p?memcpy(p,d,h):p=d;break}memcpy(p||(p=new Uint8Array($)),d,h),h+=d.length}return[p||new Uint8Array(0),e.slice(y),t-(p?p.byteLength:0)]}function toArrayBufferView(n,i){let e=isIteratorResult(i)?i.value:i;return e instanceof n?n===Uint8Array?new n(e.buffer,e.byteOffset,e.byteLength):e:e?(typeof e=="string"&&(e=encodeUtf8(e)),e instanceof ArrayBuffer?new n(e):e instanceof SharedArrayBuf?new n(e):isFlatbuffersByteBuffer(e)?toArrayBufferView(n,e.bytes()):ArrayBuffer.isView(e)?e.byteLength<=0?new n(0):new n(e.buffer,e.byteOffset,e.byteLength/n.BYTES_PER_ELEMENT):n.from(e)):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 e=function*(o){yield o},t=typeof i=="string"||ArrayBuffer.isView(i)||i instanceof ArrayBuffer||i instanceof SharedArrayBuf?e(i):isIterable(i)?i:e(i);return yield*pump$1((function*(o){let d=null;do d=o.next(yield toArrayBufferView(n,d));while(!d.done)})(t[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 t=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?t(i):isIterable(i)?o(i):isAsyncIterable(i)?i:t(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,e){if(n!==0){e=e.slice(0,i);for(let t=-1,o=e.length;++t<o;)e[t]+=n}return e.subarray(0,i)}function compareArrayLike(n,i){let e=0;const t=n.length;if(t!==i.length)return!1;if(t>0)do if(n[e]!==i[e])return!1;while(++e<t);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,e=!1,t=[],o,d,p,h=0;function y(){return d==="peek"?joinUint8Arrays(t,p)[0]:([o,t,h]=joinUint8Arrays(t,p),o)}({cmd:d,size:p}=(yield null)||{cmd:"read",size:0});const $=toUint8ArrayIterator(n)[Symbol.iterator]();try{do if({done:i,value:o}=Number.isNaN(p-h)?$.next():$.next(p-h),!i&&o.byteLength>0&&(t.push(o),h+=o.byteLength),i||p<=h)do({cmd:d,size:p}=yield y());while(p<h);while(!i)}catch(E){e=!0,typeof $.throw=="function"&&$.throw(E)}finally{e===!1&&typeof $.return=="function"&&$.return(null)}return null}function fromAsyncIterable(n){return __asyncGenerator(this,arguments,function*(){let e,t=!1,o=[],d,p,h,y=0;function $(){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 E=toUint8ArrayAsyncIterator(n)[Symbol.asyncIterator]();try{do if({done:e,value:d}=Number.isNaN(h-y)?yield __await(E.next()):yield __await(E.next(h-y)),!e&&d.byteLength>0&&(o.push(d),y+=d.byteLength),e||h<=y)do({cmd:p,size:h}=yield yield __await($()));while(h<y);while(!e)}catch(M){t=!0,typeof E.throw=="function"&&(yield __await(E.throw(M)))}finally{t===!1&&typeof E.return=="function"&&(yield __await(E.return(new Uint8Array(0))))}return yield __await(null)})}function fromDOMStream(n){return __asyncGenerator(this,arguments,function*(){let e=!1,t=!1,o=[],d,p,h,y=0;function $(){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 E=new AdaptiveByteReader(n);try{do if({done:e,value:d}=Number.isNaN(h-y)?yield __await(E.read()):yield __await(E.read(h-y)),!e&&d.byteLength>0&&(o.push(toUint8Array(d)),y+=d.byteLength),e||h<=y)do({cmd:p,size:h}=yield yield __await($()));while(h<y);while(!e)}catch(M){t=!0,yield __await(E.cancel(M))}finally{t===!1?yield __await(E.cancel()):n.locked&&E.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:e,source:t}=this;e&&(yield e.cancel(i).catch(()=>{})),t&&t.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 e=yield this.reader.read();return!e.done&&(e.value=toUint8Array(e)),e})}}const onEvent=(n,i)=>{const e=o=>t([i,o]);let t;return[i,e,new Promise(o=>(t=o)&&n.once(i,e))]};function fromNodeStream(n){return __asyncGenerator(this,arguments,function*(){const e=[];let t="error",o=!1,d=null,p,h,y=0,$=[],E;function M(){return p==="peek"?joinUint8Arrays($,h)[0]:([E,$,y]=joinUint8Arrays($,h),E)}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{e[0]=onEvent(n,"end"),e[1]=onEvent(n,"error");do{if(e[2]=onEvent(n,"readable"),[t,d]=yield __await(Promise.race(e.map(Z=>Z[2]))),t==="error")break;if((o=t==="end")||(Number.isFinite(h-y)?(E=toUint8Array(n.read(h-y)),E.byteLength<h-y&&(E=toUint8Array(n.read()))):E=toUint8Array(n.read()),E.byteLength>0&&($.push(E),y+=E.byteLength)),o||h<=y)do({cmd:p,size:h}=yield yield __await(M()));while(h<y)}while(!o)}finally{yield __await(H(e,t==="error"?d:null))}return yield __await(null);function H(Z,be){return E=$=null,new Promise((ye,we)=>{for(const[xe,Ce]of Z)n.off(xe,Ce);try{const xe=n.destroy;xe&&xe.call(n,be),be=void 0}catch(xe){be=xe||be}finally{be!=null?we(be):ye()}})}})}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 nd{constructor(i){this.bytes_=i,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(i){return new nd(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,e){this.bytes_[i]=e}writeUint8(i,e){this.bytes_[i]=e}writeInt16(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8}writeUint16(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8}writeInt32(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8,this.bytes_[i+2]=e>>16,this.bytes_[i+3]=e>>24}writeUint32(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8,this.bytes_[i+2]=e>>16,this.bytes_[i+3]=e>>24}writeInt64(i,e){this.writeInt32(i,Number(BigInt.asIntN(32,e))),this.writeInt32(i+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(i,e){this.writeUint32(i,Number(BigInt.asUintN(32,e))),this.writeUint32(i+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(i,e){float32[0]=e,this.writeInt32(i,int32[0])}writeFloat64(i,e){float64[0]=e,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 e=0;e<FILE_IDENTIFIER_LENGTH;e++)i+=String.fromCharCode(this.readInt8(this.position_+SIZEOF_INT+e));return i}__offset(i,e){const t=i-this.readInt32(i);return e<this.readInt16(t)?this.readInt16(t+e):0}__union(i,e){return i.bb_pos=e+this.readInt32(e),i.bb=this,i}__string(i,e){i+=this.readInt32(i);const t=this.readInt32(i);i+=SIZEOF_INT;const o=this.bytes_.subarray(i,i+t);return e===Encoding.UTF8_BYTES?o:this.text_decoder_.decode(o)}__union_with_string(i,e){return typeof i=="string"?this.__string(e):this.__union(i,e)}__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 e=0;e<FILE_IDENTIFIER_LENGTH;e++)if(i.charCodeAt(e)!=this.readInt8(this.position()+SIZEOF_INT+e))return!1;return!0}createScalarList(i,e){const t=[];for(let o=0;o<e;++o){const d=i(o);d!==null&&t.push(d)}return t}createObjList(i,e){const t=[];for(let o=0;o<e;++o){const d=i(o);d!==null&&t.push(d.unpack())}return t}},Builder$2=class rd{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 e;i?e=i:e=1024,this.bb=ByteBuffer$2.allocate(e),this.space=e}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,e){i>this.minalign&&(this.minalign=i);const t=~(this.bb.capacity()-this.space+e)+1&i-1;for(;this.space<t+i+e;){const o=this.bb.capacity();this.bb=rd.growByteBuffer(this.bb),this.space+=this.bb.capacity()-o}this.pad(t)}pad(i){for(let e=0;e<i;e++)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,e,t){(this.force_defaults||e!=t)&&(this.addInt8(e),this.slot(i))}addFieldInt16(i,e,t){(this.force_defaults||e!=t)&&(this.addInt16(e),this.slot(i))}addFieldInt32(i,e,t){(this.force_defaults||e!=t)&&(this.addInt32(e),this.slot(i))}addFieldInt64(i,e,t){(this.force_defaults||e!==t)&&(this.addInt64(e),this.slot(i))}addFieldFloat32(i,e,t){(this.force_defaults||e!=t)&&(this.addFloat32(e),this.slot(i))}addFieldFloat64(i,e,t){(this.force_defaults||e!=t)&&(this.addFloat64(e),this.slot(i))}addFieldOffset(i,e,t){(this.force_defaults||e!=t)&&(this.addOffset(e),this.slot(i))}addFieldStruct(i,e,t){e!=t&&(this.nested(e),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 e=i.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const t=e<<1,o=ByteBuffer$2.allocate(t);return o.setPosition(t-e),o.bytes().set(i.bytes(),t-e),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 e=0;e<i;e++)this.vtable[e]=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 e=this.vtable_in_use-1;for(;e>=0&&this.vtable[e]==0;e--);const t=e+1;for(;e>=0;e--)this.addInt16(this.vtable[e]!=0?i-this.vtable[e]:0);const o=2;this.addInt16(i-this.object_start);const d=(t+o)*SIZEOF_SHORT;this.addInt16(d);let p=0;const h=this.space;e:for(e=0;e<this.vtables.length;e++){const y=this.bb.capacity()-this.vtables[e];if(d==this.bb.readInt16(y)){for(let $=SIZEOF_SHORT;$<d;$+=SIZEOF_SHORT)if(this.bb.readInt16(h+$)!=this.bb.readInt16(y+$))continue e;p=this.vtables[e];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,e,t){const o=t?SIZE_PREFIX_LENGTH:0;
24if(e){const d=e;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,e){this.finish(i,e,!0)}requiredField(i,e){const t=this.bb.capacity()-i,o=t-this.bb.readInt32(t);if(!(e<this.bb.readInt16(o)&&this.bb.readInt16(o+e)!=0))throw new TypeError("FlatBuffers: field "+e+" must be set")}startVector(i,e,t){this.notNested(),this.vector_num_elems=e,this.prep(SIZEOF_INT,i*e),this.prep(t,i*e)}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 e=this.createString(i);return this.string_maps.set(i,e),e}createString(i){if(i==null)return 0;let e;return i instanceof Uint8Array?e=i:e=this.text_encoder.encode(i),this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,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 e=[];for(let t=0;t<i.length;++t){const o=i[t];if(o!==null)e.push(this.createObjectOffset(o));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return e}createStructOffsetList(i,e){return e(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 li{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsBodyCompression(i,e){return(e||new li).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBodyCompression(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new li).__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,e){i.addFieldInt8(0,e,CompressionType.LZ4_FRAME)}static addMethod(i,e){i.addFieldInt8(1,e,BodyCompressionMethod.BUFFER)}static endBodyCompression(i){return i.endObject()}static createBodyCompression(i,e,t){return li.startBodyCompression(i),li.addCodec(i,e),li.addMethod(i,t),li.endBodyCompression(i)}},Buffer$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,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,e,t){return i.prep(8,16),i.writeInt64(BigInt(t??0)),i.writeInt64(BigInt(e??0)),i.offset()}},FieldNode$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,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,e,t){return i.prep(8,16),i.writeInt64(BigInt(t??0)),i.writeInt64(BigInt(e??0)),i.offset()}},RecordBatch$2=class bs{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsRecordBatch(i,e){return(e||new bs).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsRecordBatch(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new bs).__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,e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new FieldNode$1).__init(this.bb.__vector(this.bb_pos+t)+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,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new Buffer$1).__init(this.bb.__vector(this.bb_pos+t)+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 e=this.bb.__offset(this.bb_pos,10);
vendor: 22,990 bytes, line 24
24return e?(i||new BodyCompression$1).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(i){i.startObject(4)}static addLength(i,e){i.addFieldInt64(0,e,BigInt("0"))}static addNodes(i,e){i.addFieldOffset(1,e,0)}static startNodesVector(i,e){i.startVector(16,e,8)}static addBuffers(i,e){i.addFieldOffset(2,e,0)}static startBuffersVector(i,e){i.startVector(16,e,8)}static addCompression(i,e){i.addFieldOffset(3,e,0)}static endRecordBatch(i){return i.endObject()}},DictionaryBatch$1=class vs{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsDictionaryBatch(i,e){return(e||new vs).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDictionaryBatch(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new vs).__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 e=this.bb.__offset(this.bb_pos,6);return e?(i||new RecordBatch$2).__init(this.bb.__indirect(this.bb_pos+e),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,e){i.addFieldInt64(0,e,BigInt("0"))}static addData(i,e){i.addFieldOffset(1,e,0)}static addIsDelta(i,e){i.addFieldInt8(2,+e,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,e){return this.bb_pos=i,this.bb=e,this}static getRootAsInt(i,e){return(e||new Int).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsInt(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){i.addFieldInt32(0,e,0)}static addIsSigned(i,e){i.addFieldInt8(1,+e,0)}static endInt(i){return i.endObject()}static createInt(i,e,t){return Int.startInt(i),Int.addBitWidth(i,e),Int.addIsSigned(i,t),Int.endInt(i)}}class DictionaryEncoding{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsDictionaryEncoding(i,e){return(e||new DictionaryEncoding).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDictionaryEncoding(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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 e=this.bb.__offset(this.bb_pos,6);return e?(i||new Int).__init(this.bb.__indirect(this.bb_pos+e),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,e){i.addFieldInt64(0,e,BigInt("0"))}static addIndexType(i,e){i.addFieldOffset(1,e,0)}static addIsOrdered(i,e){i.addFieldInt8(2,+e,0)}static addDictionaryKind(i,e){i.addFieldInt16(3,e,DictionaryKind.DenseArray)}static endDictionaryEncoding(i){return i.endObject()}}class KeyValue{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsKeyValue(i,e){return(e||new KeyValue).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsKeyValue(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new KeyValue).__init(i.readInt32(i.position())+i.position(),i)}key(i){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,i):null}value(i){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,i):null}static startKeyValue(i){i.startObject(2)}static addKey(i,e){i.addFieldOffset(0,e,0)}static addValue(i,e){i.addFieldOffset(1,e,0)}static endKeyValue(i){return i.endObject()}static createKeyValue(i,e,t){return KeyValue.startKeyValue(i),KeyValue.addKey(i,e),KeyValue.addValue(i,t),KeyValue.endKeyValue(i)}}let Binary$1=class So{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsBinary(i,e){return(e||new So).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBinary(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new So).__init(i.readInt32(i.position())+i.position(),i)}static startBinary(i){i.startObject(0)}static endBinary(i){return i.endObject()}static createBinary(i){return So.startBinary(i),So.endBinary(i)}},Bool$1=class Oo{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsBool(i,e){return(e||new Oo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsBool(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Oo).__init(i.readInt32(i.position())+i.position(),i)}static startBool(i){i.startObject(0)}static endBool(i){return i.endObject()}static createBool(i){return Oo.startBool(i),Oo.endBool(i)}},Date$1=class Pi{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsDate(i,e){return(e||new Pi).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDate(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Pi).__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,e){i.addFieldInt16(0,e,DateUnit.MILLISECOND)}static endDate(i){return i.endObject()}static createDate(i,e){return Pi.startDate(i),Pi.addUnit(i,e),Pi.endDate(i)}},Decimal$1=class Gr{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsDecimal(i,e){return(e||new Gr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDecimal(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){i.addFieldInt32(0,e,0)}static addScale(i,e){i.addFieldInt32(1,e,0)}static addBitWidth(i,e){i.addFieldInt32(2,e,128)}static endDecimal(i){return i.endObject()}static createDecimal(i,e,t,o){return Gr.startDecimal(i),Gr.addPrecision(i,e),Gr.addScale(i,t),Gr.addBitWidth(i,o),Gr.endDecimal(i)}},Duration$1=class Ai{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsDuration(i,e){return(e||new Ai).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsDuration(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Ai).__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,e){i.addFieldInt16(0,e,TimeUnit.MILLISECOND)}static endDuration(i){return i.endObject()}static createDuration(i,e){return Ai.startDuration(i),Ai.addUnit(i,e),Ai.endDuration(i)}},FixedSizeBinary$1=class Ri{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsFixedSizeBinary(i,e){return(e||new Ri).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFixedSizeBinary(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Ri).__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,e){i.addFieldInt32(0,e,0)}static endFixedSizeBinary(i){return i.endObject()}static createFixedSizeBinary(i,e){return Ri.startFixedSizeBinary(i),Ri.addByteWidth(i,e),Ri.endFixedSizeBinary(i)}},FixedSizeList$2=class Ni{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsFixedSizeList(i,e){return(e||new Ni).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFixedSizeList(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Ni).__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,e){i.addFieldInt32(0,e,0)}static endFixedSizeList(i){return i.endObject()}static createFixedSizeList(i,e){return Ni.startFixedSizeList(i),Ni.addListSize(i,e),Ni.endFixedSizeList(i)}};class FloatingPoint{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsFloatingPoint(i,e){return(e||new FloatingPoint).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFloatingPoint(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){i.addFieldInt16(0,e,Precision.HALF)}static endFloatingPoint(i){return i.endObject()}static createFloatingPoint(i,e){return FloatingPoint.startFloatingPoint(i),FloatingPoint.addPrecision(i,e),FloatingPoint.endFloatingPoint(i)}}class Interval{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsInterval(i,e){return(e||new Interval).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsInterval(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){i.addFieldInt16(0,e,IntervalUnit.YEAR_MONTH)}static endInterval(i){return i.endObject()}static createInterval(i,e){return Interval.startInterval(i),Interval.addUnit(i,e),Interval.endInterval(i)}}let LargeBinary$1=class wo{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsLargeBinary(i,e){return(e||new wo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsLargeBinary(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new wo).__init(i.readInt32(i.position())+i.position(),i)}static startLargeBinary(i){i.startObject(0)}static endLargeBinary(i){return i.endObject()}static createLargeBinary(i){return wo.startLargeBinary(i),wo.endLargeBinary(i)}},LargeUtf8$1=class $o{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsLargeUtf8(i,e){return(e||new $o).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsLargeUtf8(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new $o).__init(i.readInt32(i.position())+i.position(),i)}static startLargeUtf8(i){i.startObject(0)}static endLargeUtf8(i){return i.endObject()}static createLargeUtf8(i){return $o.startLargeUtf8(i),$o.endLargeUtf8(i)}},List$1=class To{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsList(i,e){return(e||new To).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsList(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new To).__init(i.readInt32(i.position())+i.position(),i)}static startList(i){i.startObject(0)}static endList(i){return i.endObject()}static createList(i){return To.startList(i),To.endList(i)}},Map$1=class Fi{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsMap(i,e){return(e||new Fi).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsMap(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Fi).__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}static startMap(i){i.startObject(1)}static addKeysSorted(i,e){i.addFieldInt8(0,+e,0)}static endMap(i){return i.endObject()}static createMap(i,e){return Fi.startMap(i),Fi.addKeysSorted(i,e),Fi.endMap(i)}},Null$1=class xo{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsNull(i,e){return(e||new xo).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsNull(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new xo).__init(i.readInt32(i.position())+i.position(),i)}static startNull(i){i.startObject(0)}static endNull(i){return i.endObject()}static createNull(i){return xo.startNull(i),xo.endNull(i)}};class Struct_{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsStruct_(i,e){return(e||new Struct_).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsStruct_(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){return this.bb_pos=i,this.bb=e,this}static getRootAsTime(i,e){return(e||new Time).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsTime(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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,e){i.addFieldInt16(0,e,TimeUnit.MILLISECOND)}static addBitWidth(i,e){i.addFieldInt32(1,e,32)}static endTime(i){return i.endObject()}static createTime(i,e,t){return Time.startTime(i),Time.addUnit(i,e),Time.addBitWidth(i,t),Time.endTime(i)}}class Timestamp{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsTimestamp(i,e){return(e||new Timestamp).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsTimestamp(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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 e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,i):null}static startTimestamp(i){i.startObject(2)}static addUnit(i,e){i.addFieldInt16(0,e,TimeUnit.SECOND)}static addTimezone(i,e){i.addFieldOffset(1,e,0)}static endTimestamp(i){return i.endObject()}static createTimestamp(i,e,t){return Timestamp.startTimestamp(i),Timestamp.addUnit(i,e),Timestamp.addTimezone(i,t),Timestamp.endTimestamp(i)}}class Union{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsUnion(i,e){return(e||new Union).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsUnion(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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 e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+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,e){i.addFieldInt16(0,e,UnionMode.Sparse)}static addTypeIds(i,e){i.addFieldOffset(1,e,0)}static createTypeIdsVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addInt32(e[t]);return i.endVector()}static startTypeIdsVector(i,e){i.startVector(4,e,4)}static endUnion(i){return i.endObject()}static createUnion(i,e,t){return Union.startUnion(i),Union.addMode(i,e),Union.addTypeIds(i,t),Union.endUnion(i)}}let Utf8$1=class Co{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsUtf8(i,e){return(e||new Co).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsUtf8(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Co).__init(i.readInt32(i.position())+i.position(),i)}static startUtf8(i){i.startObject(0)}static endUtf8(i){return i.endObject()}static createUtf8(i){return Co.startUtf8(i),Co.endUtf8(i)}};var Type$1;(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 Na{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsField(i,e){return(e||new Na).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsField(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Na).__init(i.readInt32(i.position())+i.position(),i)}name(i){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,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 e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(i,this.bb_pos+e):null}dictionary(i){const e=this.bb.__offset(this.bb_pos,12);return e?(i||new DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(i,e){const t=this.bb.__offset(this.bb_pos,14);return t?(e||new Na).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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,e){const t=this.bb.__offset(this.bb_pos,16);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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,e){i.addFieldOffset(0,e,0)}static addNullable(i,e){i.addFieldInt8(1,+e,0)}static addTypeType(i,e){i.addFieldInt8(2,e,Type$1.NONE)}static addType(i,e){i.addFieldOffset(3,e,0)}static addDictionary(i,e){i.addFieldOffset(4,e,0)}static addChildren(i,e){i.addFieldOffset(5,e,0)}static createChildrenVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startChildrenVector(i,e){i.startVector(4,e,4)}static addCustomMetadata(i,e){i.addFieldOffset(6,e,0)}static createCustomMetadataVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startCustomMetadataVector(i,e){i.startVector(4,e,4)}static endField(i){return i.endObject()}},Schema$2=class Tr{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsSchema(i,e){return(e||new Tr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsSchema(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new Tr).__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,e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new Field$1).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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 e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+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,e){i.addFieldInt16(0,e,Endianness.Little)}static addFields(i,e){i.addFieldOffset(1,e,0)}static createFieldsVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startFieldsVector(i,e){i.startVector(4,e,4)}static addCustomMetadata(i,e){i.addFieldOffset(2,e,0)}static createCustomMetadataVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startCustomMetadataVector(i,e){i.startVector(4,e,4)}static addFeatures(i,e){i.addFieldOffset(3,e,0)}static createFeaturesVector(i,e){i.startVector(8,e.length,8);for(let t=e.length-1;t>=0;t--)i.addInt64(e[t]);return i.endVector()}static startFeaturesVector(i,e){i.startVector(8,e,8)}static endSchema(i){return i.endObject()}static finishSchemaBuffer(i,e){i.finish(e)}static finishSizePrefixedSchemaBuffer(i,e){i.finish(e,void 0,!0)}static createSchema(i,e,t,o,d){return Tr.startSchema(i),Tr.addEndianness(i,e),Tr.addFields(i,t),Tr.addCustomMetadata(i,o),Tr.addFeatures(i,d),Tr.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,e)=>typeof e=="bigint"?`${e}`:e)}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:e,byteOffset:t,byteLength:o,signed:d}=n,p=new BigUint64Array(e,t,o/8),h=d&&p.at(-1)&BigInt(1)<<BigInt(63);let y=BigInt(0),$=0;if(h){for(const E of p)y|=(E^TWO_TO_THE_64_MINUS_1)*(BigInt(1)<<BigInt(64*$++));y*=BigInt(-1),y-=BigInt(1)}else for(const E of p)y|=E*(BigInt(1)<<BigInt(64*$++));if(typeof i=="number"&&i>0){const E=BigInt("1".padEnd(i+1,"0")),M=y/E,H=h?-(y%E):y%E,Z=bigIntToNumber(M),be=`${H}`.padStart(i,"0");return+`${h&&Z===0?"-":""}${Z}.${be}`}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 t=1;for(let d=0;d<i.length;d++){const p=i[d],h=~p+t;i[d]=h,t&=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 e=new Uint32Array(2);let t=new Uint16Array(n.buffer,n.byteOffset,n.byteLength/2);const o=new Uint32Array((t=new Uint16Array(t).reverse()).buffer);let d=-1;const p=t.length-1;do{for(e[0]=t[d=0];d<p;)t[d++]=e[1]=e[0]/10,e[0]=(e[0]-e[1]*10<<16)+t[d];t[d]=e[1]=e[0]/10,e[0]=e[0]-e[1]*10,i=`${e[0]}${i}`}while(o[0]||o[1]||o[2]||o[3]);return i??"0"}class BN{static new(i,e){switch(e){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,e){return BN.new(i,e)}}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,e){super(Type.Int),this.isSigned=i,this.bitWidth=e}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,e,t=128){super(Type.Decimal),this.scale=i,this.precision=e,this.bitWidth=t}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,e){super(Type.Time),this.unit=i,this.bitWidth=e}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,e){super(Type.Timestamp),this.unit=i,this.timezone=e}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,e,t){super(Type.Union),this.mode=i,this.children=t,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.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);let FixedSizeList$1=class extends DataType{constructor(i,e){super(Type.FixedSizeList),this.listSize=i,this.children=[e]}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$1[_v]=(n=>(n.children=null,n.listSize=null,n[Symbol.toStringTag]="FixedSizeList"))(FixedSizeList$1.prototype);class Map_ extends DataType{constructor(i,e=!1){var t,o,d;if(super(Type.Map),this.children=[i],this.keysSorted=e,i&&(i.name="entries",!((t=i?.type)===null||t===void 0)&&t.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,e,t,o){super(Type.Dictionary),this.indices=e,this.dictionary=i,this.isOrdered=o||
24!1,this.id=t==null?getId$1():bigIntToNumber(t)}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,...e){return i.map((t,o)=>this.visit(t,...e.map(d=>d[o])))}visit(...i){return this.getVisitFn(i[0],!1).apply(this,i)}getVisitFn(i,e=!0){return getVisitFn(this,i,e)}getVisitFnByTypeId(i,e=!0){return getVisitFnByTypeId(this,i,e)}visitNull(i,...e){return null}visitBool(i,...e){return null}visitInt(i,...e){return null}visitFloat(i,...e){return null}visitUtf8(i,...e){return null}visitLargeUtf8(i,...e){return null}visitBinary(i,...e){return null}visitLargeBinary(i,...e){return null}visitFixedSizeBinary(i,...e){return null}visitDate(i,...e){return null}visitTimestamp(i,...e){return null}visitTime(i,...e){return null}visitDecimal(i,...e){return null}visitList(i,...e){return null}visitStruct(i,...e){return null}visitUnion(i,...e){return null}visitDictionary(i,...e){return null}visitInterval(i,...e){return null}visitDuration(i,...e){return null}visitFixedSizeList(i,...e){return null}visitMap(i,...e){return null}}function getVisitFn(n,i,e=!0){return typeof i=="number"?getVisitFnByTypeId(n,i,e):typeof i=="string"&&i in Type?getVisitFnByTypeId(n,Type[i],e):i&&i instanceof DataType?getVisitFnByTypeId(n,inferDType(i),e):i?.type&&i.type instanceof DataType?getVisitFnByTypeId(n,inferDType(i.type),e):getVisitFnByTypeId(n,Type.NONE,e)}function getVisitFnByTypeId(n,i,e=!0){let t=null;switch(i){case Type.Null:t=n.visitNull;break;case Type.Bool:t=n.visitBool;break;case Type.Int:t=n.visitInt;break;case Type.Int8:t=n.visitInt8||n.visitInt;break;case Type.Int16:t=n.visitInt16||n.visitInt;break;case Type.Int32:t=n.visitInt32||n.visitInt;break;case Type.Int64:t=n.visitInt64||n.visitInt;break;case Type.Uint8:t=n.visitUint8||n.visitInt;break;case Type.Uint16:t=n.visitUint16||n.visitInt;break;case Type.Uint32:t=n.visitUint32||n.visitInt;break;case Type.Uint64:t=n.visitUint64||n.visitInt;break;case Type.Float:t=n.visitFloat;break;case Type.Float16:t=n.visitFloat16||n.visitFloat;break;case Type.Float32:t=n.visitFloat32||n.visitFloat;break;case Type.Float64:t=n.visitFloat64||n.visitFloat;break;case Type.Utf8:t=n.visitUtf8;break;case Type.LargeUtf8:t=n.visitLargeUtf8;break;case Type.Binary:t=n.visitBinary;break;case Type.LargeBinary:t=n.visitLargeBinary;break;case Type.FixedSizeBinary:t=n.visitFixedSizeBinary;break;case Type.Date:t=n.visitDate;break;case Type.DateDay:t=n.visitDateDay||n.visitDate;break;case Type.DateMillisecond:t=n.visitDateMillisecond||n.visitDate;break;case Type.Timestamp:t=n.visitTimestamp;break;case Type.TimestampSecond:t=n.visitTimestampSecond||n.visitTimestamp;break;case Type.TimestampMillisecond:t=n.visitTimestampMillisecond||n.visitTimestamp;break;case Type.TimestampMicrosecond:t=n.visitTimestampMicrosecond||n.visitTimestamp;break;case Type.TimestampNanosecond:t=n.visitTimestampNanosecond||n.visitTimestamp;break;case Type.Time:t=n.visitTime;break;case Type.TimeSecond:t=n.visitTimeSecond||n.visitTime;break;case Type.TimeMillisecond:t=n.visitTimeMillisecond||n.visitTime;break;case Type.TimeMicrosecond:t=n.visitTimeMicrosecond||n.visitTime;break;case Type.TimeNanosecond:t=n.visitTimeNanosecond||n.visitTime;break;case Type.Decimal:t=n.visitDecimal;break;case Type.List:t=n.visitList;break;case Type.Struct:t=n.visitStruct;break;case Type.Union:t=n.visitUnion;break;case Type.DenseUnion:t=n.visitDenseUnion||n.visitUnion;break;case Type.SparseUnion:t=n.visitSparseUnion||n.visitUnion;break;case Type.Dictionary:t=n.visitDictionary;break;case Type.Interval:t=n.visitInterval;break;case Type.IntervalDayTime:t=n.visitIntervalDayTime||n.visitInterval;break;case Type.IntervalYearMonth:t=n.visitIntervalYearMonth||n.visitInterval;break;case Type.IntervalMonthDayNano:t=n.visitIntervalMonthDayNano||n.visitInterval;break;case Type.Duration:t=n.visitDuration;break;case Type.DurationSecond:t=n.visitDurationSecond||n.visitDuration;break;case Type.DurationMillisecond:t=n.visitDurationMillisecond||n.visitDuration;break;case Type.DurationMicrosecond:t=n.visitDurationMicrosecond||n.visitDuration;break;case Type.DurationNanosecond:t=n.visitDurationNanosecond||n.visitDuration;break;case Type.FixedSizeList:t=n.visitFixedSizeList;break;case Type.Map:t=n.visitMap;break}if(typeof t=="function")return t;if(!e)return()=>null;throw new Error(`Unrecognized type '${Type[i]}'`)}function inferDType(n){switch(n.typeId){case Type.Null:return Type.
24Null;case Type.Int:{const{bitWidth:i,isSigned:e}=n;switch(i){case 8:return e?Type.Int8:Type.Uint8;case 16:return e?Type.Int16:Type.Uint16;case 32:return e?Type.Int32:Type.Uint32;case 64:return e?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,e=(n&1023)/1024,t=Math.pow(-1,(n&32768)>>15);switch(i){case 31:return t*(e?Number.NaN:1/0);case 0:return t*(e?6103515625e-14*e:0)}return t*Math.pow(2,i-15)*(1+e)}function float64ToUint16(n){if(n!==n)return 32256;f64[0]=n;const i=(u32[1]&2147483648)>>16&65535;let e=u32[1]&2146435072,t=0;return e>=1089470464?u32[0]>0?e=31744:(e=(e&2080374784)>>16,t=(u32[1]&1048575)>>10):e<=1056964608?(t=1048576+(u32[1]&1048575),t=1048576+(t<<(e>>20)-998)>>21,e=0):(e=e-1056964608>>10,t=(u32[1]&1048575)+512>>10),i|e|t&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,e,t)=>{if(i.setValid(e,t!=null))return n(i,e,t)}}const setEpochMsToDays=(n,i,e)=>{n[i]=Math.floor(e/864e5)},setVariableWidthBytes=(n,i,e,t)=>{if(e+1<i.length){const o=bigIntToNumber(i[e]),d=bigIntToNumber(i[e+1]);n.set(t.subarray(0,d-o),o)}},setBool$1=({offset:n,values:i},e,t)=>{const o=n+e;t?i[o>>3]|=1<<o%8:i[o>>
vendor: 17,147 bytes, line 24
243]&=~(1<<o%8)},setInt=({values:n},i,e)=>{n[i]=e},setFloat=({values:n},i,e)=>{n[i]=e},setFloat16=({values:n},i,e)=>{n[i]=float64ToUint16(e)},setAnyFloat=(n,i,e)=>{switch(n.type.precision){case Precision.HALF:return setFloat16(n,i,e);case Precision.SINGLE:case Precision.DOUBLE:return setFloat(n,i,e)}},setDateDay=({values:n},i,e)=>{setEpochMsToDays(n,i,e.valueOf())},setDateMillisecond=({values:n},i,e)=>{n[i]=BigInt(e)},setFixedSizeBinary=({stride:n,values:i},e,t)=>{i.set(t.subarray(0,n),n*e)},setBinary=({values:n,valueOffsets:i},e,t)=>setVariableWidthBytes(n,i,e,t),setUtf8=({values:n,valueOffsets:i},e,t)=>setVariableWidthBytes(n,i,e,encodeUtf8(t)),setDate=(n,i,e)=>{n.type.unit===DateUnit.DAY?setDateDay(n,i,e):setDateMillisecond(n,i,e)},setTimestampSecond=({values:n},i,e)=>{n[i]=BigInt(e/1e3)},setTimestampMillisecond=({values:n},i,e)=>{n[i]=BigInt(e)},setTimestampMicrosecond=({values:n},i,e)=>{n[i]=BigInt(e*1e3)},setTimestampNanosecond=({values:n},i,e)=>{n[i]=BigInt(e*1e6)},setTimestamp=(n,i,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimestampSecond(n,i,e);case TimeUnit.MILLISECOND:return setTimestampMillisecond(n,i,e);case TimeUnit.MICROSECOND:return setTimestampMicrosecond(n,i,e);case TimeUnit.NANOSECOND:return setTimestampNanosecond(n,i,e)}},setTimeSecond=({values:n},i,e)=>{n[i]=e},setTimeMillisecond=({values:n},i,e)=>{n[i]=e},setTimeMicrosecond=({values:n},i,e)=>{n[i]=e},setTimeNanosecond=({values:n},i,e)=>{n[i]=e},setTime=(n,i,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setTimeSecond(n,i,e);case TimeUnit.MILLISECOND:return setTimeMillisecond(n,i,e);case TimeUnit.MICROSECOND:return setTimeMicrosecond(n,i,e);case TimeUnit.NANOSECOND:return setTimeNanosecond(n,i,e)}},setDecimal=({values:n,stride:i},e,t)=>{n.set(t.subarray(0,i),i*e)},setList=(n,i,e)=>{const t=n.children[0],o=n.valueOffsets,d=instance$5.getVisitFn(t);if(Array.isArray(e))for(let p=-1,h=o[i],y=o[i+1];h<y;)d(t,h++,e[++p]);else for(let p=-1,h=o[i],y=o[i+1];h<y;)d(t,h++,e.get(++p))},setMap=(n,i,e)=>{const t=n.children[0],{valueOffsets:o}=n,d=instance$5.getVisitFn(t);let{[i]:p,[i+1]:h}=o;const y=e instanceof Map?e.entries():Object.entries(e);for(const $ of y)if(d(t,p,$),++p>=h)break},_setStructArrayValue=(n,i)=>(e,t,o,d)=>t&&e(t,n,i[d]),_setStructVectorValue=(n,i)=>(e,t,o,d)=>t&&e(t,n,i.get(d)),_setStructMapValue=(n,i)=>(e,t,o,d)=>t&&e(t,n,i.get(o.name)),_setStructObjectValue=(n,i)=>(e,t,o,d)=>t&&e(t,n,i[o.name]),setStruct=(n,i,e)=>{const t=n.type.children.map(d=>instance$5.getVisitFn(d.type)),o=e instanceof Map?_setStructMapValue(i,e):e instanceof Vector?_setStructVectorValue(i,e):Array.isArray(e)?_setStructArrayValue(i,e):_setStructObjectValue(i,e);n.type.children.forEach((d,p)=>o(t[p],n.children[p],d,p))},setUnion=(n,i,e)=>{n.type.mode===UnionMode.Dense?setDenseUnion(n,i,e):setSparseUnion(n,i,e)},setDenseUnion=(n,i,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[i]],o=n.children[t];instance$5.visit(o,n.valueOffsets[i],e)},setSparseUnion=(n,i,e)=>{const t=n.type.typeIdToChildIndex[n.typeIds[i]],o=n.children[t];instance$5.visit(o,i,e)},setDictionary=(n,i,e)=>{var t;(t=n.dictionary)===null||t===void 0||t.set(n.values[i],e)},setIntervalValue=(n,i,e)=>{switch(n.type.unit){case IntervalUnit.YEAR_MONTH:return setIntervalYearMonth(n,i,e);case IntervalUnit.DAY_TIME:return setIntervalDayTime(n,i,e);case IntervalUnit.MONTH_DAY_NANO:return setIntervalMonthDayNano(n,i,e)}},setIntervalDayTime=({values:n},i,e)=>{n.set(e.subarray(0,2),2*i)},setIntervalYearMonth=({values:n},i,e)=>{n[i]=e[0]*12+e[1]%12},setIntervalMonthDayNano=({values:n,stride:i},e,t)=>{n.set(t.subarray(0,i),i*e)},setDurationSecond=({values:n},i,e)=>{n[i]=e},setDurationMillisecond=({values:n},i,e)=>{n[i]=e},setDurationMicrosecond=({values:n},i,e)=>{n[i]=e},setDurationNanosecond=({values:n},i,e)=>{n[i]=e},setDuration=(n,i,e)=>{switch(n.type.unit){case TimeUnit.SECOND:return setDurationSecond(n,i,e);case TimeUnit.MILLISECOND:return setDurationMillisecond(n,i,e);case TimeUnit.MICROSECOND:return setDurationMicrosecond(n,i,e);case TimeUnit.NANOSECOND:return setDurationNanosecond(n,i,e)}},setFixedSizeList=(n,i,e)=>{const{stride:t}=n,o=n.children[0],d=instance$5.getVisitFn(o);if(Array.isArray(e))for(let p=-1,h=i*t;++p<t;)d(o,h+p,e[p]);else for(let p=-1,h=i*t;++p<t;)d(o,h+p,e.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,e){return this[kParent]=i,this[kRowIndex]=e,new Proxy(this,structRowProxyHandler)}toArray(){return Object.values(this.toJSON())}toJSON(){const i=this[kRowIndex],e=this[kParent],t=e.type.children,o={};for(let d=-1,p=t.length;++d<p;)o[t[d].name]=instance$4.visit(e.children[d],i);return o}toString(){return`{${[...this].map(([i,e])=>`${valueToString(i)}: ${valueToString(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new StructRowIterator(this[kParent],this[kRowIndex])}}class StructRowIterator{constructor(i,e){this.childIndex=0,this.children=i.children,this.rowIndex=e,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,configurable:!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(e=>e.name)}has(i,e){return i[kParent].type.children.some(t=>t.name===e)}getOwnPropertyDescriptor(i,e){if(i[kParent].type.children.some(t=>t.name===e))return{writable:!0,enumerable:!0,configurable:!0}}get(i,e){if(Reflect.has(i,e))return i[e];const t=i[kParent].type.children.findIndex(o=>o.name===e);if(t!==-1){const o=instance$4.visit(i[kParent].children[t],i[kRowIndex]);return Reflect.set(i,e,o),o}}set(i,e,t){const o=i[kParent].type.children.findIndex(d=>d.name===e);return o!==-1?(instance$5.visit(i[kParent].children[o],i[kRowIndex],t),Reflect.set(i,e,t)):Reflect.has(i,e)||typeof e=="symbol"?Reflect.set(i,e,t):!1}}const structRowProxyHandler=new StructRowProxyHandler;class GetVisitor extends Visitor{}function wrapGet(n){return(i,e)=>i.getValid(e)?n(i,e):null}const epochDaysToMs=(n,i)=>864e5*n[i],getNull=(n,i)=>null,getVariableWidthBytes=(n,i,e)=>{if(e+1>=i.length)return null;const t=bigIntToNumber(i[e]),o=bigIntToNumber(i[e+1]);return n.subarray(t,o)},getBool$1=({offset:n,values:i},e)=>{const t=n+e;return(i[t>>3]&1<<t%8)!==0},getDateDay=({values:n},i)=>epochDaysToMs(n,i),getDateMillisecond=({values:n},i)=>bigIntToNumber(n[i]),getNumeric=({stride:n,values:i},e)=>i[n*e],getFloat16=({stride:n,values:i},e)=>uint16ToFloat64(i[n*e]),getBigInts=({values:n},i)=>n[i],getFixedSizeBinary=({stride:n,values:i},e)=>i.subarray(n*e,n*(e+1)),getBinary=({values:n,valueOffsets:i},e)=>getVariableWidthBytes(n,i,e),getUtf8=({values:n,valueOffsets:i},e)=>{const t=getVariableWidthBytes(n,i,e);return t!==null?decodeUtf8(t):null},getInt=({values:n},i)=>n[i],getFloat=({type:n,values:i},e)=>n.precision!==Precision.HALF?i[e]:uint16ToFloat64(i[e]),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},e)=>BN.decimal(n.subarray(i*e,i*(e+1))),getList=(n,i)=>{const{valueOffsets:e,stride:t,children:o}=n,{[i*t]:d,[i*t+1]:p}=e,y=o[0].slice(d,p-d);return new Vector([y])},getMap=(n,i)=>{const{valueOffsets:e,children:t}=n,{[i]:o,[i+1]:d}=e,p=t[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 e=n.type.typeIdToChildIndex[n.typeIds[i]],t=n.children[e];return instance$4.visit(t,n.valueOffsets[i])},getSparseUnion=(n,i)=>{const e=n.type.typeIdToChildIndex[n.typeIds[i]],t=n.children[e];return instance$4.visit(t,i)},getDictionary=(n,i)=>{var e;return(e=n.dictionary)===null||e===void 0?void 0:e.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 e=n[i],t=new Int32Array(2);return t[0]=Math.trunc(e/12),t[1]=Math.trunc(e%12),t},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:e,children:t}=n,d=t[0].slice(i*e,e);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],e=this[kVals],t={};for(let o=-1,d=i.length;++o<d;)t[i.get(o)]=instance$4.visit(e,o);return t}toString(){return`{${[...this].map(([i,e])=>`${valueToString(i)}: ${valueToString(e)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class MapRowIterator{constructor(i,e){this.keys=i,this.vals=e,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,e){return i[kKeysAsStrings].includes(e)}getOwnPropertyDescriptor(i,e){if(i[kKeysAsStrings].indexOf(e)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(i,e){if(Reflect.has(i,e))return i[e];const t=i[kKeysAsStrings].indexOf(e);if(t!==-1){const o=instance$4.visit(Reflect.get(i,kVals),t);return Reflect.set(i,e,o),o}}set(i,e,t){const o=i[kKeysAsStrings].indexOf(e);return o!==-1?(instance$5.visit(Reflect.get(i,kVals),o,t),Reflect.set(i,e,t)):Reflect.has(i,e)?Reflect.set(i,e,t):!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,e,t){const{length:o=0}=n;let d=typeof i!="number"?0:i,p=typeof e!="number"?o:e;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),t?t(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:e=>e===n;if(n instanceof Date){const e=n.valueOf();return t=>t instanceof Date?t.valueOf()===e:!1}return ArrayBuffer.isView(n)?e=>e?compareArrayLike(n,e):!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 e=-1,t=n.length;++e<t;)i[e]=createElementComparator(n[e]);return createSubElementsComparator(i)}function createMapComparator(n){let i=-1;const e=[];for(const t of n.values())e[++i]=createElementComparator(t);return createSubElementsComparator(e)}function createVectorComparator(n){const i=[];for(let e=-1,t=n.length;++e<t;)i[e]=createElementComparator(n.get(e));return createSubElementsComparator(i)}function createObjectComparator(n,i=!1){const e=Object.keys(n);if(!i&&e.length===0)return()=>!1;const t=[];for(let o=-1,d=e.length;++o<d;)t[o]=createElementComparator(n[e[o]]);return createSubElementsComparator(t,e)}function createSubElementsComparator(n,i){return e=>{if(!e||typeof e!="object")return!1;switch(e.constructor){case Array:return compareArray$1(n,e);case Map:return compareObject(n,e,e.keys());case MapRow:case StructRow:case Object:case void 0:return compareObject(n,e,i||Object.keys(e))}return e instanceof Vector?compareVector(n,e):!1}}function compareArray$1(n,i){const e=n.length;if(i.length!==e)return!1;for(let t=-1;++t<e;)if(!n[t](i[t]))return!1;return!0}function compareVector(n,i){const e=n.length;if(i.length!==e)return!1;for(let t=-1;++t<e;)if(!n[t](i.get(t)))return!1;return!0}function compareObject(n,i,e){const t=e[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(),$=t.next(),E=o.next();for(;p<h&&!$.done&&!E.done&&!y.done&&!($.value!==E.value||!n[p](y.value));++p,$=t.next(),E=o.next(),y=d.next());return p===h&&$.done&&E.done&&y.done?!0:(t.return&&t.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,e,t){return(e&1<<t)!==0}function getBit(n,i,e,t){return(e&1<<t)>>t}function setBool(n,i,e){return e?!!(n[i>>3]|=1<<i%8)||!0:!(n[i>>3]&=~(1<<i%8))&&!1}function truncateBitmap(n,i,e){const t=e.byteLength+7&-8;if(n>0||e.byteLength<t){const o=new Uint8Array(t);return o.set(n%8===0?e.subarray(n>>3):packBools(new BitIterator(e,n,i,null,getBool)).subarray(0,t)),o}return e}function packBools(n){const i=[];let e=0,t=0,o=0;for(const p of n)p&&(o|=1<<t),++t===8&&(i[e++]=o,o=t=0);(e===0||t>0)&&(i[e++]=o);const d=new Uint8Array(i.length+7&-8);return d.set(i),d}class BitIterator{constructor(i,e,t,o,d){this.bytes=i,this.length=t,this.context=o,this.get=d,this.bit=e%8,this.byteIndex=e>>3,this.byte=i[this.byteIndex++],this.index=0}
vendor: 10,447 bytes, line 24
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,e){if(e-i<=0)return 0;if(e-i<8){let d=0;for(const p of new BitIterator(n,i,e-i,n,getBit))d+=p;return d}const t=e>>3<<3,o=i+(i%8===0?0:8-i%8);return popcnt_bit_range(n,i,o)+popcnt_bit_range(n,t,e)+popcnt_array(n,o>>3,t-o>>3)}function popcnt_array(n,i,e){let t=0,o=Math.trunc(i);const d=new DataView(n.buffer,n.byteOffset,n.byteLength),p=e===void 0?n.byteLength:o+e;for(;p-o>=4;)t+=popcnt_uint32(d.getUint32(o)),o+=4;for(;p-o>=2;)t+=popcnt_uint32(d.getUint16(o)),o+=2;for(;p-o>=1;)t+=popcnt_uint32(d.getUint8(o)),o+=1;return t}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(e=>e.nullable):DataType.isDenseUnion(i)?this.children.some(e=>e.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let i=0;const{valueOffsets:e,values:t,nullBitmap:o,typeIds:d}=this;return e&&(i+=e.byteLength),t&&(i+=t.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((t,o)=>t+o.nullCount,0);let i=this._nullCount,e;return i<=kUnknownNullCount&&(e=this.nullBitmap)&&(this._nullCount=i=e.length===0?0:this.length-popcnt_bit_range(e,this.offset,this.offset+this.length)),i}constructor(i,e,t,o,d,p=[],h){this.type=i,this.children=p,this.dictionary=h,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(t||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:e}=this;if(DataType.isUnion(e)){const t=e,o=this.children[t.typeIdToChildIndex[this.typeIds[i]]],d=t.mode===UnionMode.Dense?this.valueOffsets[i]:i;return o.getValid(d)}if(this.nullable&&this.nullCount>0){const t=this.offset+i;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}setValid(i,e){let t;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;t=p.getValid(h),p.setValid(h,e)}else{let{nullBitmap:d}=this;const{offset:p,length:h}=this,y=p+i,$=1<<y%8,E=y>>3;(!d||d.byteLength<=E)&&(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];t=(M&$)!==0,d[E]=e?M|$:M&~$}return t!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(i=this.type,e=this.offset,t=this.length,o=this._nullCount,d=this,p=this.children){return new Data(i,e,t,o,d,p,this.dictionary)}slice(i,e){const{stride:t,typeId:o,children:d}=this,p=+(this._nullCount===0)-1,h=o===16?t:1,y=this._sliceBuffers(i,e,t,o);return this.clone(this.type,this.offset+i,e,p,y,d.length===0||this.valueOffsets?d:this._sliceChildren(d,h*i,h*e))}_changeLengthAndBackfillNullBitmap(i){if(this.typeId===Type.Null)return this.clone(this.type,0,i,0);const{length:e,nullCount:t}=this,o=new Uint8Array((i+63&-64)>>3).fill(255,0,e>>3);o[e>>3]=(1<<e-(e&-8))-1,t>0&&o.set(truncateBitmap(this.offset,e,this.nullBitmap),0);const d=this.buffers;return d[BufferType.VALIDITY]=o,this.clone(this.type,0,i,t+(i-e),d)}_sliceBuffers(i,e,t,o){let d;const{buffers:p}=this;return(d=p[BufferType.TYPE])&&(p[BufferType.TYPE]=d.subarray(i,i+e)),(d=p[BufferType.OFFSET])&&(p[BufferType.OFFSET]=d.subarray(i,i+e+1))||(d=p[BufferType.DATA])&&(p[BufferType.DATA]=o===6?d:d.subarray(t*i,t*(i+e))),p}_sliceChildren(i,e,t){return i.map(o=>o.slice(e,t))}}Data.prototype.children=Object.freeze([]);class MakeDataVisitor extends Visitor{visit(i){return this.getVisitFn(i.type).call(this,i)}visitNull(i){const{["type"]:e,["offset"]:t=0,["length"]:o=0}=i;return new Data(e,t,o,o)}visitBool(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length>>3,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitInt(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitFloat(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitUtf8(i){const{["type"]:e,["offset"]:t=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(e,t,h,y,[p,o,d])}visitLargeUtf8(i){const{["type"]:e,["offset"]:t=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(e,t,h,y,[p,o,d])}visitBinary(i){const{["type"]:e,["offset"]:t=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(e,t,h,y,[p,o,d])}visitLargeBinary(i){const{["type"]:e,["offset"]:t=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(e,t,h,y,[p,o,d])}visitFixedSizeBinary(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitDate(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitTimestamp(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitTime(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitDecimal(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitList(i){const{["type"]:e,["offset"]:t=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(e,t,h,y,[p,void 0,d],[o])}visitStruct(i){const{["type"]:e,["offset"]:t=0,["children"]:o=[]}=i,d=toUint8Array(i.nullBitmap),{length:p=o.reduce((y,{length:$})=>Math.max(y,$),0),nullCount:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,void 0,d],o)}visitUnion(i){const{["type"]:e,["offset"]:t=0,["children"]:o=[]}=i,d=toArrayBufferView(e.ArrayType,i.typeIds),{["length"]:p=d.length,["nullCount"]:h=-1}=i;if(DataType.isSparseUnion(e))return new Data(e,t,p,h,[void 0,void 0,void 0,d],o);const y=toInt32Array(i.valueOffsets);return new Data(e,t,p,h,[y,void 0,void 0,d],o)}visitDictionary(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.indices.ArrayType,i.data),{["dictionary"]:p=new Vector([new MakeDataVisitor().visit({type:e.dictionary})])}=i,{["length"]:h=d.length,["nullCount"]:y=i.nullBitmap?-1:0}=i;return new Data(e,t,h,y,[void 0,d,o],[],p)}visitInterval(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitDuration(i){const{["type"]:e,["offset"]:t=0}=i,o=toUint8Array(i.nullBitmap),d=toArrayBufferView(e.ArrayType,i.data),{["length"]:p=d.length,["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,d,o])}visitFixedSizeList(i){const{["type"]:e,["offset"]:t=0,["child"]:o=new MakeDataVisitor().visit({type:e.valueType})}=i,d=toUint8Array(i.nullBitmap),{["length"]:p=o.length/strideForType(e),["nullCount"]:h=i.nullBitmap?-1:0}=i;return new Data(e,t,p,h,[void 0,void 0,d],[o])}visitMap(i){const{["type"]:e,["offset"]:t=0,["child"]:o=new MakeDataVisitor().visit({type:e.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(e,t,h,y,[p,void 0,d],[o])}}const makeDataVisitor=new MakeDataVisitor;function makeData(n){return makeDataVisitor.visit(n)}class ChunkedIterator{constructor(i=0,e){this.numChunks=i,this.getChunkIterator=e,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,e)=>i+e.nullCount,0)}function computeChunkOffsets(n){return n.reduce((i,e,t)=>(i[t+1]=i[t]+e.length,i),new Uint32Array(n.length+1))}function sliceChunks$1(n,i,e,t){const o=[];for(let d=-1,p=n.length;++d<p;){const h=n[d],y=i[d],{length:$}=h;if(y>=t)break;
24if(e>=y+$)continue;if(y>=e&&y+$<=t){o.push(h);continue}const E=Math.max(0,e-y),M=Math.min(t-y,$);o.push(h.slice(E,M-E))}return o.length===0&&o.push(n[0].slice(0,0)),o}function binarySearch(n,i,e,t){let o=0,d=0,p=i.length-1;do{if(o>=p-1)return e<i[p]?t(n,o,e-i[o]):null;d=o+Math.trunc((p-o)*.5),e<i[d]?p=d:o=d}while(o<p)}function isChunkedValid(n,i){return n.getValid(i)}function wrapChunkedCall1(n){function i(e,t,o){return n(e[t],o)}return function(e){const t=this.data;return binarySearch(t,this._offsets,e,i)}}function wrapChunkedCall2(n){let i;function e(t,o,d){return n(t[o],d,i)}return function(t,o){const d=this.data;i=o;const p=binarySearch(d,this._offsets,t,e);return i=void 0,p}}function wrapChunkedIndexOf(n){let i;function e(t,o,d){let p=d,h=0,y=0;for(let $=o-1,E=t.length;++$<E;){const M=t[$];if(~(h=n(M,i,p)))return y+h;p=0,y+=M.length}return-1}return function(t,o){i=t;const d=this.data,p=typeof o!="number"?e(d,0,0):binarySearch(d,this._offsets,o,e);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:e}=n;if(!e||n.nullCount<=0)return-1;let t=0;for(const o of new BitIterator(e,n.offset+(i||0),n.length,e,getBool)){if(!o)return t;++t}return-1}function indexOfValue(n,i,e){if(i===void 0)return-1;if(i===null)switch(n.typeId){case Type.Union:break;case Type.Dictionary:break;default:return indexOfNull(n,e)}const t=instance$4.getVisitFn(n),o=createElementComparator(i);for(let d=(e||0)-1,p=n.length;++d<p;)if(o(t(n,d)))return d;return-1}function indexOfUnion(n,i,e){const t=instance$4.getVisitFn(n),o=createElementComparator(i);for(let d=(e||0)-1,p=n.length;++d<p;)if(o(t(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;
vendor: 5,809 bytes, line 24
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,t=>{const o=n.data[t];return o.values.subarray(0,o.length)[Symbol.iterator]()});let e=0;return new ChunkedIterator(n.data.length,t=>{const d=n.data[t].length,p=n.slice(e,e+d);return e+=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 e,t,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=(e=d[0])===null||e===void 0?void 0:e.type;switch(d.length){case 0:this._offsets=[0];break;case 1:{const{get:h,set:y,indexOf:$}=visitorsByTypeId[p.typeId],E=d[0];this.isValid=M=>isChunkedValid(E,M),this.get=M=>h(E,M),this.set=(M,H)=>y(E,M,H),this.indexOf=M=>$(E,M),this._offsets=[0,E.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=(t=p.children)===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((i,e)=>i+e.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,e){}indexOf(i,e){return-1}includes(i,e){return this.indexOf(i,e)>-1}[Symbol.iterator](){return instance$2.visit(this)}concat(...i){return new Vector(this.data.concat(i.flatMap(e=>e.data).flat(Number.POSITIVE_INFINITY)))}slice(i,e){return new Vector(clampRange(this,i,e,({data:t,_offsets:o},d,p)=>sliceChunks$1(t,o,d,p)))}toJSON(){return[...this]}toArray(){const{type:i,data:e,length:t,stride:o,ArrayType:d}=this;switch(i.typeId){case Type.Int:case Type.Float:case Type.Decimal:case Type.Time:case Type.Timestamp:switch(e.length){case 0:return new d;case 1:return e[0].values.subarray(0,t*o);default:return e.reduce((p,{values:h,length:y})=>(p.array.set(h.subarray(0,y*o),p.offset),p.offset+=y*o,p),{array:new d(t*o),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(i){var e;
24return this.getChildAt((e=this.type.children)===null||e===void 0?void 0:e.findIndex(t=>t.name===i))}getChildAt(i){return i>-1&&i<this.numChildren?new Vector(this.data.map(({children:e})=>e[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),e=this.data.map(t=>{const o=t.clone();return o.dictionary=i,o});return new Vector(e)}return new MemoizedVector(this)}unmemoize(){if(DataType.isDictionary(this.type)&&this.isMemoized){const i=this.data[0].dictionary.unmemoize(),e=this.data.map(t=>{const o=t.clone();return o.dictionary=i,o});return new Vector(e)}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(e=>Type[e]).filter(e=>typeof e=="number"&&e!==Type.NONE);for(const e of i){const t=instance$4.getVisitFnByTypeId(e),o=instance$5.getVisitFnByTypeId(e),d=instance$3.getVisitFnByTypeId(e);visitorsByTypeId[e]={get:t,set:o,indexOf:d},vectorPrototypesByTypeId[e]=Object.create(n,{isValid:{value:wrapChunkedCall1(isChunkedValid)},get:{value:wrapChunkedCall1(instance$4.getVisitFnByTypeId(e))},set:{value:wrapChunkedCall2(instance$5.getVisitFnByTypeId(e))},indexOf:{value:wrapChunkedIndexOf(instance$3.getVisitFnByTypeId(e))}})}return"Vector"})(Vector.prototype);class MemoizedVector extends Vector{constructor(i){super(i.data);const e=this.get,t=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=e.call(this,p);return d[p]=y,y}}),Object.defineProperty(this,"set",{value(p,h){t.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,e){return this.bb_pos=i,this.bb=e,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,e,t,o){return i.prep(8,24),i.writeInt64(BigInt(o??0)),i.pad(4),i.writeInt32(t),i.writeInt64(BigInt(e??0)),i.offset()}}class Footer{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsFooter(i,e){return(e||new Footer).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsFooter(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||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 e=this.bb.__offset(this.bb_pos,6);return e?(i||new Schema$2).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(i,e){const t=this.bb.__offset(this.bb_pos,8);return t?(e||new Block).__init(this.bb.__vector(this.bb_pos+t)+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,e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new Block).__init(this.bb.__vector(this.bb_pos+t)+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,e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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,e){i.addFieldInt16(0,e,MetadataVersion.V1)}static addSchema(i,e){i.addFieldOffset(1,e,0)}static addDictionaries(i,e){i.addFieldOffset(2,e,0)}static startDictionariesVector(i,e){i.startVector(24,e,8)}static addRecordBatches(i,e){i.addFieldOffset(3,e,0)}static startRecordBatchesVector(i,e){i.startVector(24,e,8)}static addCustomMetadata(i,e){i.addFieldOffset(4,e,0)}static createCustomMetadataVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startCustomMetadataVector(i,e){i.startVector(4,e,4)}static endFooter(i){return i.endObject()}static finishFooterBuffer(i,e){i.finish(e)}static finishSizePrefixedFooterBuffer(i,e){i.finish(e,void 0,!0)}}let Schema$1=class si{constructor(i=[],e,t,o=MetadataVersion.V5){this.fields=i||[],this.metadata=e||new Map,t||(t=generateDictionaryMap(this.fields)),this.dictionaries=t,this.metadataVersion=o}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(i=>i.name)}toString(){return`Schema<{ ${this.fields.map((i,e)=>`${e}: ${i}`).join(", ")} }>`}select(i){const e=new Set(i),t=this.fields.filter(o=>e.has(o.name));return new si(t,this.metadata)}selectAt(i){const e=i.map(t=>
vendor: 8,962 bytes, line 24
24this.fields[t]).filter(Boolean);return new si(e,this.metadata)}assign(...i){const e=i[0]instanceof si?i[0]:Array.isArray(i[0])?new si(i[0]):new si(i),t=[...this.fields],o=mergeMaps(mergeMaps(new Map,this.metadata),e.metadata),d=e.fields.filter(h=>{const y=t.findIndex($=>$.name===h.name);return~y?(t[y]=h.clone({metadata:mergeMaps(mergeMaps(new Map,t[y].metadata),h.metadata)}))&&!1:!0}),p=generateDictionaryMap(d,new Map);return new si([...t,...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[e,t,o,d]=i;return i[0]&&typeof i[0]=="object"&&({name:e}=i[0],t===void 0&&(t=i[0].type),o===void 0&&(o=i[0].nullable),d===void 0&&(d=i[0].metadata)),new Field(`${e}`,t,o,d)}constructor(i,e,t=!1,o){this.name=i,this.type=e,this.nullable=t,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[e,t,o,d]=i;return!i[0]||typeof i[0]!="object"?[e=this.name,t=this.type,o=this.nullable,d=this.metadata]=i:{name:e=this.name,type:t=this.type,nullable:o=this.nullable,metadata:d=this.metadata}=i[0],Field.new(e,t,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 e=-1,t=n.length;++e<t;){const d=n[e].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 e=Footer.getRootAsFooter(i),t=Schema$1.decode(e.schema(),new Map,e.version());return new OffHeapFooter(t,e)}static encode(i){const e=new Builder$1,t=Schema$1.encode(e,i.schema);Footer.startRecordBatchesVector(e,i.numRecordBatches);for(const p of[...i.recordBatches()].slice().reverse())FileBlock.encode(e,p);const o=e.endVector();Footer.startDictionariesVector(e,i.numDictionaries);for(const p of[...i.dictionaryBatches()].slice().reverse())FileBlock.encode(e,p);const d=e.endVector();return Footer.startFooter(e),Footer.addSchema(e,t),Footer.addVersion(e,MetadataVersion.V5),Footer.addRecordBatches(e,o),Footer.addDictionaries(e,d),Footer.finishFooterBuffer(e,Footer.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(i,e=MetadataVersion.V5,t,o){this.schema=i,this.version=e,t&&(this._recordBatches=t),o&&(this._dictionaryBatches=o)}*recordBatches(){for(let i,e=-1,t=this.numRecordBatches;++e<t;)(i=this.getRecordBatch(e))&&(yield i)}*dictionaryBatches(){for(let i,e=-1,t=this.numDictionaries;++e<t;)(i=this.getDictionaryBatch(e))&&(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,e){super(i,e.version()),this._footer=e}getRecordBatch(i){if(i>=0&&i<this.numRecordBatches){const e=this._footer.recordBatches(i);if(e)return FileBlock.decode(e)}return null}getDictionaryBatch(i){if(i>=0&&i<this.numDictionaries){const e=this._footer.dictionaries(i);if(e)return FileBlock.decode(e)}return null}}class FileBlock{static decode(i){return new FileBlock(i.metaDataLength(),i.bodyLength(),i.offset())}static encode(i,e){const{metaDataLength:t}=e,o=BigInt(e.offset),d=BigInt(e.bodyLength);return Block.createBlock(i,o,t,d)}constructor(i,e,t){this.metaDataLength=i,this.offset=bigIntToNumber(t),this.bodyLength=bigIntToNumber(e)}}let Message$1=class cr{constructor(){this.bb=null,this.bb_pos=0}__init(i,e){return this.bb_pos=i,this.bb=e,this}static getRootAsMessage(i,e){return(e||new cr).__init(i.readInt32(i.position())+i.position(),i)}static getSizePrefixedRootAsMessage(i,e){return i.setPosition(i.position()+SIZE_PREFIX_LENGTH),(e||new cr).__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 e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(i,this.bb_pos+e):null}bodyLength(){const i=this.bb.__offset(this.bb_pos,10);return i?this.bb.readInt64(this.bb_pos+i):BigInt("0")}customMetadata(i,e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+t)+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,e){i.addFieldInt16(0,e,MetadataVersion.V1)}static addHeaderType(i,e){i.addFieldInt8(1,e,MessageHeader.NONE)}static addHeader(i,e){i.addFieldOffset(2,e,0)}static addBodyLength(i,e){i.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(i,e){i.addFieldOffset(4,e,0)}static createCustomMetadataVector(i,e){i.startVector(4,e.length,4);for(let t=e.length-1;t>=0;t--)i.addOffset(e[t]);return i.endVector()}static startCustomMetadataVector(i,e){i.startVector(4,e,4)}static endMessage(i){return i.endObject()}static finishMessageBuffer(i,e){i.finish(e)}static finishSizePrefixedMessageBuffer(i,e){i.finish(e,void 0,!0)}static createMessage(i,e,t,o,d,p){return cr.startMessage(i),cr.addVersion(i,e),cr.addHeaderType(i,t),cr.addHeader(i,o),cr.addBodyLength(i,d),cr.addCustomMetadata(i,p),cr.endMessage(i)}};class TypeAssembler extends Visitor{visit(i,e){return i==null||e==null?void 0:super.visit(i,e)}visitNull(i,e){return Null$1.startNull(e),Null$1.endNull(e)}visitInt(i,e){return Int.startInt(e),Int.addBitWidth(e,i.bitWidth),Int.addIsSigned(e,i.isSigned),Int.endInt(e)}visitFloat(i,e){return FloatingPoint.startFloatingPoint(e),FloatingPoint.addPrecision(e,i.precision),FloatingPoint.endFloatingPoint(e)}visitBinary(i,e){return Binary$1.startBinary(e),Binary$1.endBinary(e)}visitLargeBinary(i,e){return LargeBinary$1.startLargeBinary(e),LargeBinary$1.endLargeBinary(e)}visitBool(i,e){return Bool$1.startBool(e),Bool$1.endBool(e)}visitUtf8(i,e){return Utf8$1.startUtf8(e),Utf8$1.endUtf8(e)}visitLargeUtf8(i,e){return LargeUtf8$1.startLargeUtf8(e),LargeUtf8$1.endLargeUtf8(e)}visitDecimal(i,e){return Decimal$1.startDecimal(e),Decimal$1.addScale(e,i.scale),Decimal$1.addPrecision(e,i.precision),Decimal$1.addBitWidth(e,i.bitWidth),Decimal$1.endDecimal(e)}visitDate(i,e){return Date$1.startDate(e),Date$1.addUnit(e,i.unit),Date$1.endDate(e)}visitTime(i,e){return Time.startTime(e),Time.addUnit(e,i.unit),Time.addBitWidth(e,i.bitWidth),Time.endTime(e)}visitTimestamp(i,e){const t=i.timezone&&e.createString(i.timezone)||void 0;return Timestamp.startTimestamp(e),Timestamp.addUnit(e,i.unit),t!==void 0&&Timestamp.addTimezone(e,t),Timestamp.endTimestamp(e)}visitInterval(i,e){return Interval.startInterval(e),Interval.addUnit(e,i.unit),Interval.endInterval(e)}visitDuration(i,e){return Duration$1.startDuration(e),Duration$1.addUnit(e,i.unit),Duration$1.endDuration(e)}visitList(i,e){return List$1.startList(e),List$1.endList(e)}visitStruct(i,e){return Struct_.startStruct_(e),Struct_.endStruct_(e)}visitUnion(i,e){Union.startTypeIdsVector(e,i.typeIds.length);const t=Union.createTypeIdsVector(e,i.typeIds);return Union.startUnion(e),Union.addMode(e,i.mode),Union.addTypeIds(e,t),Union.endUnion(e)}visitDictionary(i,e){const t=this.visit(i.indices,e);return DictionaryEncoding.startDictionaryEncoding(e),DictionaryEncoding.addId(e,BigInt(i.id)),DictionaryEncoding.addIsOrdered(e,i.isOrdered),t!==void 0&&DictionaryEncoding.addIndexType(e,t),DictionaryEncoding.endDictionaryEncoding(e)}visitFixedSizeBinary(i,e){return FixedSizeBinary$1.startFixedSizeBinary(e),FixedSizeBinary$1.addByteWidth(e,i.byteWidth),FixedSizeBinary$1.endFixedSizeBinary(e)}visitFixedSizeList(i,e){return FixedSizeList$2.startFixedSizeList(e),FixedSizeList$2.addListSize(e,i.listSize),FixedSizeList$2.endFixedSizeList(e)}visitMap(i,e){return Map$1.startMap(e),Map$1.addKeysSorted(e,i.keysSorted),Map$1.endMap(e)}}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)}
24function schemaFieldsFromJSON(n,i){return(n.fields||[]).filter(Boolean).map(e=>Field.fromJSON(e,i))}function fieldChildrenFromJSON(n,i){return(n.children||[]).filter(Boolean).map(e=>Field.fromJSON(e,i))}function fieldNodesFromJSON(n){return(n||[]).reduce((i,e)=>[...i,new FieldNode(e.count,nullCountFromJSON(e.VALIDITY)),...fieldNodesFromJSON(e.children)],[])}function buffersFromJSON(n,i=[]){for(let e=-1,t=(n||[]).length;++e<t;){const o=n[e];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}function nullCountFromJSON(n){return(n||[]).reduce((i,e)=>i+ +(e===0),0)}function fieldFromJSON(n,i){let e,t,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(e=d.id)?(t=(t=d.indexType)?indexTypeFromJSON(t):new Int32,h=new Dictionary(i.get(e),t,e,d.isOrdered),o=new Field(n.name,h,n.nullable,customMetadataFromJSON(n.metadata))):(t=(t=d.indexType)?indexTypeFromJSON(t):new Int32,i.set(e,p=typeFromJSON(n,fieldChildrenFromJSON(n,i))),h=new Dictionary(p,t,e,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:e})=>[i,e]))}function indexTypeFromJSON(n){return new Int_(n.isSigned,n.bitWidth)}function typeFromJSON(n,i){const e=n.type.name;switch(e){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(e){case"int":{const t=n.type;return new Int_(t.isSigned,t.bitWidth)}case"floatingpoint":{const t=n.type;return new Float(Precision[t.precision])}case"decimal":{const t=n.type;return new Decimal(t.scale,t.precision,t.bitWidth)}case"date":{const t=n.type;return new Date_(DateUnit[t.unit])}case"time":{const t=n.type;return new Time_(TimeUnit[t.unit],t.bitWidth)}case"timestamp":{const t=n.type;return new Timestamp_(TimeUnit[t.unit],t.timezone)}case"interval":{const t=n.type;return new Interval_(IntervalUnit[t.unit])}case"duration":{const t=n.type;return new Duration(TimeUnit[t.unit])}case"union":{const t=n.type,[o,...d]=(t.mode+"").toLowerCase(),p=o.toUpperCase()+d.join("");return new Union_(UnionMode[p],t.typeIds||[],i||[])}case"fixedsizebinary":{const t=n.type;return new FixedSizeBinary(t.byteWidth)}case"fixedsizelist":{const t=n.type;return new FixedSizeList$1(t.listSize,(i||[])[0])}case"map":{const t=n.type;return new Map_((i||[])[0],t.keysSorted)}}throw new Error(`Unrecognized type: "${e}"`)}var Builder=Builder$2,ByteBuffer=ByteBuffer$2;class Message{static fromJSON(i,e){const t=new Message(0,MetadataVersion.V5,e);return t._createHeader=messageHeaderFromJSON(i,e),t}static decode(i){i=new ByteBuffer(toUint8Array(i));const e=Message$1.getRootAsMessage(i),t=e.bodyLength(),o=e.version(),d=e.headerType(),p=new Message(t,o,d);return p._createHeader=decodeMessageHeader(e,d),p}static encode(i){const e=new Builder;let t=-1;return i.isSchema()?t=Schema$1.encode(e,i.header()):i.isRecordBatch()?t=RecordBatch$1.encode(e,i.header()):i.isDictionaryBatch()&&(t=DictionaryBatch.encode(e,i.header())),Message$1.startMessage(e),Message$1.addVersion(e,MetadataVersion.V5),Message$1.addHeader(e,t),Message$1.addHeaderType(e,i.headerType),Message$1.addBodyLength(e,BigInt(i.bodyLength)),Message$1.finishMessageBuffer(e,Message$1.endMessage(e)),e.asUint8Array()}static from(i,e=0){if(i instanceof Schema$1)return new Message(0,MetadataVersion.V5,MessageHeader.Schema,i);if(i instanceof RecordBatch$1)return new Message(e,MetadataVersion.V5,MessageHeader.RecordBatch,i);if(i instanceof DictionaryBatch)return new Message(e,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,e,t,o){this._version=e,this._headerType=t,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,e,t,o){this._nodes=e,this._buffers=t,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,e,t=!1){this._data=i,this._isDelta=t,this._id=bigIntToNumber(e)}}class BufferRegion{constructor(i,e){this.offset=bigIntToNumber(i),this.length=bigIntToNumber(e)}}
24class FieldNode{constructor(i,e){this.length=bigIntToNumber(i),this.nullCount=bigIntToNumber(e)}}class BodyCompression{constructor(i,e=BodyCompressionMethod.BUFFER){this.type=i,this.method=e}}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,e=MetadataVersion.V5){const t=decodeSchemaFields(n,i);return new Schema$1(t,decodeCustomMetadata(n),i,e)}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 e,t=-1,o=-1,d=n.nodesLength();++t<d;)(e=n.nodes(t))&&(i[++o]=FieldNode.decode(e));return i}function decodeBuffers(n,i){const e=[];for(let t,o=-1,d=-1,p=n.buffersLength();++o<p;)(t=n.buffers(o))&&(i<MetadataVersion.V4&&(t.bb_pos+=8*(o+1)),e[++d]=BufferRegion.decode(t));return e}function decodeSchemaFields(n,i){const e=[];for(let t,o=-1,d=-1,p=n.fieldsLength();++o<p;)(t=n.fields(o))&&(e[++d]=Field.decode(t,i));return e}function decodeFieldChildren(n,i){const e=[];for(let t,o=-1,d=-1,p=n.childrenLength();++o<p;)(t=n.children(o))&&(e[++d]=Field.decode(t,i));return e}function decodeField(n,i){let e,t,o,d,p,h;return!i||!(h=n.dictionary())?(o=decodeFieldType(n,decodeFieldChildren(n,i)),t=new Field(n.name(),o,n.nullable(),decodeCustomMetadata(n))):i.has(e=bigIntToNumber(h.id()))?(d=(d=h.indexType())?decodeIndexType(d):new Int32,p=new Dictionary(i.get(e),d,e,h.isOrdered()),t=new Field(n.name(),p,n.nullable(),decodeCustomMetadata(n))):(d=(d=h.indexType())?decodeIndexType(d):new Int32,i.set(e,o=decodeFieldType(n,decodeFieldChildren(n,i))),p=new Dictionary(o,d,e,h.isOrdered()),t=new Field(n.name(),p,n.nullable(),decodeCustomMetadata(n))),t||null}function decodeCustomMetadata(n){const i=new Map;if(n)for(let e,t,o=-1,d=Math.trunc(n.customMetadataLength());++o<d;)(e=n.customMetadata(o))&&(t=e.key())!=null&&i.set(t,e.value());return i}function decodeIndexType(n){return new Int_(n.isSigned(),n.bitWidth())}function decodeFieldType(n,i){const e=n.typeType();switch(e){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(e){case Type$1.Int:{const t=n.type(new Int);return new Int_(t.isSigned(),t.bitWidth())}case Type$1.FloatingPoint:{const t=n.type(new FloatingPoint);return new Float(t.precision())}
24case Type$1.Decimal:{const t=n.type(new Decimal$1);return new Decimal(t.scale(),t.precision(),t.bitWidth())}case Type$1.Date:{const t=n.type(new Date$1);return new Date_(t.unit())}case Type$1.Time:{const t=n.type(new Time);return new Time_(t.unit(),t.bitWidth())}case Type$1.Timestamp:{const t=n.type(new Timestamp);return new Timestamp_(t.unit(),t.timezone())}case Type$1.Interval:{const t=n.type(new Interval);return new Interval_(t.unit())}case Type$1.Duration:{const t=n.type(new Duration$1);return new Duration(t.unit())}case Type$1.Union:{const t=n.type(new Union);return new Union_(t.mode(),t.typeIdsArray()||[],i||[])}case Type$1.FixedSizeBinary:{const t=n.type(new FixedSizeBinary$1);return new FixedSizeBinary(t.byteWidth())}case Type$1.FixedSizeList:{const t=n.type(new FixedSizeList$2);return new FixedSizeList$1(t.listSize(),(i||[])[0])}case Type$1.Map:{const t=n.type(new Map$1);return new Map_((i||[])[0],t.keysSorted())}}throw new Error(`Unrecognized type: "${Type$1[e]}" (${e})`)}function decodeBodyCompression(n){return n?new BodyCompression(n.codec(),n.method()):null}function encodeSchema(n,i){const e=i.fields.map(d=>Field.encode(n,d));Schema$2.startFieldsVector(n,e.length);const t=Schema$2.createFieldsVector(n,e),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,t),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 e=-1,t=-1,o=-1;const d=i.type;let p=i.typeId;DataType.isDictionary(d)?(p=d.dictionary.typeId,o=instance$1.visit(d,n),t=instance$1.visit(d.dictionary,n)):t=instance$1.visit(d,n);const h=(d.children||[]).map(E=>Field.encode(n,E)),y=Field$1.createChildrenVector(n,h),$=i.metadata&&i.metadata.size>0?Field$1.createCustomMetadataVector(n,[...i.metadata].map(([E,M])=>{const H=n.createString(`${E}`),Z=n.createString(`${M}`);return KeyValue.startKeyValue(n),KeyValue.addKey(n,H),KeyValue.addValue(n,Z),KeyValue.endKeyValue(n)})):-1;return i.name&&(e=n.createString(i.name)),Field$1.startField(n),Field$1.addType(n,t),Field$1.addTypeType(n,p),Field$1.addChildren(n,y),Field$1.addNullable(n,!!i.nullable),e!==-1&&Field$1.addName(n,e),o!==-1&&Field$1.addDictionary(n,o),$!==-1&&Field$1.addCustomMetadata(n,$),Field$1.endField(n)}function encodeRecordBatch(n,i){const e=i.nodes||[],t=i.buffers||[];RecordBatch$2.startNodesVector(n,e.length);for(const h of e.slice().reverse())FieldNode.encode(n,h);const o=n.endVector();RecordBatch$2.startBuffersVector(n,t.length);for(const h of t.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 e=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,e),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,e){return this._getNodeStream().pipe(i,e)}pipeTo(i,e){return this._getDOMStream().pipeTo(i,e)}pipeThrough(i,e){return this._getDOMStream().pipeThrough(i,e)}_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((e,t)=>
vendor: 4,461 bytes, line 24
24{this.resolvers.push({resolve:e,reject:t})}):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 e,t,o,d;const p=[];let h=0;try{for(var y=!0,$=__asyncValues(this),E;E=yield $.next(),e=E.done,!e;y=!0){d=E.value,y=!1;const M=d;p.push(M),h+=M.byteLength}}catch(M){t={error:M}}finally{try{!y&&!e&&(o=$.return)&&(yield o.call($))}finally{if(t)throw t.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,e="read"){return this.source.next({cmd:e,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(e=>this._closedPromiseResolve=e)}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*(e,t="read"){return yield this.source.next({cmd:t,size:e})})}throw(i){return __awaiter(this,void 0,void 0,function*(){const e=this.source.throw&&(yield this.source.throw(i))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}return(i){return __awaiter(this,void 0,void 0,function*(){const e=this.source.return&&(yield this.source.return(i))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)})}}class RandomAccessFile extends ByteStream{constructor(i,e){super(),this.position=0,this.buffer=toUint8Array(i),this.size=e===void 0?this.buffer.byteLength:e}readInt32(i){const{buffer:e,byteOffset:t}=this.readAt(i,4);return new DataView(e,t).getInt32(0,!0)}seek(i){return this.position=Math.min(i,this.size),i<this.size}read(i){const{buffer:e,size:t,position:o}=this;return e&&o<t?(typeof i!="number"&&(i=Number.POSITIVE_INFINITY),this.position=Math.min(t,o+Math.min(t-o,i)),e.subarray(o,this.position)):null}readAt(i,e){const t=this.buffer,o=Math.min(this.size,i+e);return t?t.subarray(i,o):new Uint8Array(e)}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,e){super(),this.position=0,this._handle=i,typeof e=="number"?this.size=e:this._pe
24nding=__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:e,byteOffset:t}=yield this.readAt(i,4);return new DataView(e,t).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:e,size:t,position:o}=this;if(e&&o<t){typeof i!="number"&&(i=Number.POSITIVE_INFINITY);let d=o,p=0,h=0;const y=Math.min(t,d+Math.min(t-d,i)),$=new Uint8Array(Math.max(0,(this.position=y)-d));for(;(d+=h)<y&&(p+=h)<$.byteLength;)({bytesRead:h}=yield e.read($,p,$.byteLength-p,d));return $}return null})}readAt(i,e){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:t,size:o}=this;if(t&&i+e<o){const d=Math.min(o,i+e),p=new Uint8Array(d-i);return(yield t.read(p,0,e,i)).buffer}return new Uint8Array(e)})}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 e=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),t=new Uint32Array([i.buffer[1]>>>16,i.buffer[1]&65535,i.buffer[0]>>>16,i.buffer[0]&65535]);let o=e[3]*t[3];this.buffer[0]=o&65535;let d=o>>>16;return o=e[2]*t[3],d+=o,o=e[3]*t[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]+=e[1]*t[3]+e[2]*t[2]+e[3]*t[1],this.buffer[1]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0]<<16,this}_plus(i){const e=this.buffer[0]+i.buffer[0]>>>0;this.buffer[1]+=i.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}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,e=new Uint32Array(2)){return Uint64.fromString(typeof i=="string"?i:i.toString(),e)}static fromNumber(i,e=new Uint32Array(2)){return Uint64.fromString(i.toString(),e)}static fromString(i,e=new Uint32Array(2)){const t=i.length,o=new Uint64(e);for(let d=0;d<t;){const p=kInt32DecimalDigits<t-d?kInt32DecimalDigits:t-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 e=new Uint32Array(i.length*2);for(let t=-1,o=i.length;++t<o;)Uint64.from(i[t],new Uint32Array(e.buffer,e.byteOffset+2*t*4,2));return e}static multiply(i,e){return new Uint64(new Uint32Array(i.buffer)).times(e)}static add(i,e){return new Uint64(new Uint32Array(i.buffer)).plus(e)}}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 e=this.buffer[1]<<0,t=i.buffer[1]<<0;return e<t||e===t&&this.buffer[0]<i.buffer[0]}static from(i,e=new Uint32Array(2)){return Int64.fromString(typeof i=="string"?i:i.toString(),e)}static fromNumber(i,e=new Uint32Array(2)){return Int64.fromString(i.toString(),e)}static fromString(i,e=new Uint32Array(2)){const t=i.startsWith("-"),o=i.length,d=new Int64(e);for(let p=t?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])),$=new Int64(new Uint32Array([kPowersOfTen[h],0]));d.times($),d.plus(y),p+=h}return t?d.negate():d}static convertArray(i){const e=new Uint32Array(i.length*2);for(let t=-1,o=i.length;++t<o;)Int64.from(i[t],new Uint32Array(e.buffer,e.byteOffset+2*t*4,2));return e}static multiply(i,e){return new Int64(new Uint32Array(i.buffer)).times(e)}static add(i,e){return new Int64(new Uint32Array(i.buffer)).plus(e)}}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 e=new Uint64(new Uint32Array([this.buffer[3],0])),t=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])),$=new Uint64(new Uint32Array([i.buffer[0],0]));let E=Uint64.multiply(d,$);this.buffer[0]=E.low();const M=new Uint64(new Uint32Array([E.high(),0]));return E=Uint64.multiply(o,$),M.plus(E),E=Uint64.multiply(d,y),M.plus(E),this.buffer[1]=M.low(),this.buffer[3]=M.lessThan(E)?1:0,this.buffer[2]=M.high(),new Uint64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Uint64.multiply(t,$)).plus(Uint64.multiply(o,y)).plus(Uint64.multiply(d,h)),this.buffer[3]+=Uint64.multiply(e,$).plus(Uint64.multiply(t,y)).plus(Uint64.multiply(o,h)).plus(Uint64.multiply(d,p)).low(),this}plus(i){const e=new Uint32Array(4);return e[3]=this.buffer[3]+i.buffer[3]>>>0,e[2]=this.buffer[2]+i.buffer[2]>>>0,e[1]=this.buffer[1]+i.buffer[1]>>>0,e[0]=this.buffer[0]+i.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${intAsHex(this.buffer[3])} ${intAsHex(this.buffer[2])} ${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}static multiply(i,e){return new Int128(new Uint32Array(i.buffer)).times(e)}static add(i,e){return new Int128(new Uint32Array(i.buffer)).plus(e)}static from(i,e=new Uint32Array(4)){return Int128.fromString(typeof i=="string"?i:i.toString(),e)}static fromNumber(i,e=new Uint32Array(4)){return Int128.fromString(i.toString(),e)}static fromString(i,e=new Uint32Array(4)){const t=i.startsWith("-"),o=i.length,d=new Int128(e);for(let p=t?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])),$=new Int128(new Uint32Array([kPowersOfTen[h],0,0,0]));d.times($),d.plus(y),p+=h}return t?d.negate():d}static convertArray(i){const e=new Uint32Array(i.length*4);for(let t=-1,o=i.length;++t<o;)Int128.from(i[t],new Uint32Array(e.buffer,e.byteOffset+16*t,4));return e}}const util_int_=Object.freeze(Object.defineProperty({__proto__:null,BaseInt64,Int128,Int64,Uint64},Symbol.toStringTag,{value:"Module"}));function toIntervalDayTimeInt32Array(n){var i,e;const t=n.length,o=new Int32Array(t*2);for(let d=0,p=0;d<t;d++){const h=n[d];o[p++]=(i=h.days)!==null&&i!==void 0?i:0,o[p++]=(e=h.milliseconds)!==null&&e!==void 0?e:0}return o}function toIntervalMonthDayNanoInt32Array(n){var i,e;const t=n.length,o=new Int32Array(t*4);for(let d=0,p=0;d<t;d++){const h=n[d];o[p++]=(i=h.months)!==null&&i!==void 0?i:0,o[p++]=(e=h.days)!==null&&e!==void 0?e: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,e=new Array(i/2);for(let t=0,o=0;t<i;t+=2)e[o++]={days:n[t],milliseconds:n[t+1]};return e}function toIntervalMonthDayNanoObjects(n,i){const e=n.length,t=new Array(e/4);for(let o=0,d=0;o<e;o+=4){const p=BigInt(n[o+3])<<BigInt(32)|BigInt(n[o+2]>>>0);t[d++]={months:n[o],days:n[o+1],nanoseconds:i?`${p}`:p}}return t}const util_interval_=Object.freeze(Object.defineProperty({__proto__:null,toIntervalDayTimeInt32Array,toIntervalDayTimeObjects,toIntervalMonthDayNanoInt32Array,toIntervalMonthDayNanoObjects},Symbol.toStringTag,{value:"Module"}));class VectorLoader extends Visitor{constructor(i,e,t,o,d=MetadataVersion.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=i,this.nodes=e,this.buffers=t,this.dictionaries=o,this.metadataVersion=d}visit(i){return super.visit(i instanceof Field?i.type:i)}visitNull(i,{length:e}=this.nextFieldNode()){return makeData({type:i,length:e})}visitBool(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitInt(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitFloat(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitUtf8(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitLargeUtf8(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitBinary(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitLargeBinary(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),data:this.readData(i)})}visitFixedSizeBinary(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitDate(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitTimestamp(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitTime(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitDecimal(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitList(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),child:this.visit(i.children[0])})}visitStruct(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),children:this.visitMany(i.
24children)})}visitUnion(i,{length:e,nullCount:t}=this.nextFieldNode()){return this.metadataVersion<MetadataVersion.V5&&this.readNullBitmap(i,t),i.mode===UnionMode.Sparse?this.visitSparseUnion(i,{length:e,nullCount:t}):this.visitDenseUnion(i,{length:e,nullCount:t})}visitDenseUnion(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,typeIds:this.readTypeIds(i),valueOffsets:this.readOffsets(i),children:this.visitMany(i.children)})}visitSparseUnion(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,typeIds:this.readTypeIds(i),children:this.visitMany(i.children)})}visitDictionary(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i.indices),dictionary:this.readDictionary(i)})}visitInterval(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitDuration(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),data:this.readData(i)})}visitFixedSizeList(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),child:this.visit(i.children[0])})}visitMap(i,{length:e,nullCount:t}=this.nextFieldNode()){return makeData({type:i,length:e,nullCount:t,nullBitmap:this.readNullBitmap(i,t),valueOffsets:this.readOffsets(i),child:this.visit(i.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(i,e,t=this.nextBufferRange()){return e>0&&this.readData(i,t)||new Uint8Array(0)}readOffsets(i,e){return this.readData(i,e)}readTypeIds(i,e){return this.readData(i,e)}readData(i,{length:e,offset:t}=this.nextBufferRange()){return this.bytes.subarray(t,t+e)}readDictionary(i){return this.dictionaries.get(i.id)}}class JSONVectorLoader extends VectorLoader{constructor(i,e,t,o,d){super(new Uint8Array(0),e,t,o,d),this.sources=i}readNullBitmap(i,e,{offset:t}=this.nextBufferRange()){return e<=0?new Uint8Array(0):packBools(this.sources[t])}readOffsets(i,{offset:e}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(i.OffsetArrayType,this.sources[e]))}readTypeIds(i,{offset:e}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(i.ArrayType,this.sources[e]))}readData(i,{offset:e}=this.nextBufferRange()){const{sources:t}=this;if(DataType.isTimestamp(i))return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if((DataType.isInt(i)||DataType.isTime(i))&&i.bitWidth===64||DataType.isDuration(i))return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if(DataType.isDate(i)&&i.unit===DateUnit.MILLISECOND)return toArrayBufferView(Uint8Array,Int64.convertArray(t[e]));if(DataType.isDecimal(i))return toArrayBufferView(Uint8Array,Int128.convertArray(t[e]));if(DataType.isBinary(i)||DataType.isLargeBinary(i)||DataType.isFixedSizeBinary(i))return binaryDataFromJSON(t[e]);if(DataType.isBool(i))return packBools(t[e]);if(DataType.isUtf8(i)||DataType.isLargeUtf8(i))return encodeUtf8(t[e].join(""));if(DataType.isInterval(i))switch(i.unit){case IntervalUnit.DAY_TIME:return toIntervalDayTimeInt32Array(t[e]);case IntervalUnit.MONTH_DAY_NANO:return toIntervalMonthDayNanoInt32Array(t[e])}return toArrayBufferView(Uint8Array,toArrayBufferView(i.ArrayType,t[e].map(o=>+o)))}}function binaryDataFromJSON(n){const i=n.join(""),e=new Uint8Array(i.length/2);for(let t=0;t<i.length;t+=2)e[t>>1]=Number.parseInt(i.slice(t,t+2),16);return e}class CompressedVectorLoader extends VectorLoader{constructor(i,e,t,o,d){super(new Uint8Array(0),e,t,o,d),this.bodyChunks=i}readData(i,e=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}class TypeComparator extends Visitor{compareSchemas(i,e){return i===e||e instanceof i.constructor&&this.compareManyFields(i.fields,e.fields)}compareManyFields(i,e){return i===e||Array.isArray(i)&&Array.isArray(e)&&i.length===e.length&&i.every((t,o)=>this.compareFields(t,e[o]))}compareFields(i,e){return i===e||e instanceof i.constructor&&i.name===e.name&&i.nullable===e.nullable&&this.visit(i.type,e.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((e,t)=>e===i.typeIds[t])&&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(e=>e.data.concat()))}function uniformlyDistributeChunksAcrossRecordBatches(n,i){const e=[...n.fields],t=[],o={numBatches:i.reduce((M,H)=>Math.max(M,H.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;)E[h]=$=i[h].shift(),p=Math.min(p,$?$.length:p);Number.isFinite(p)&&(E=distributeChildren(e,p,E,i,o),p>0&&(t[d++]=makeData({type:new Struct(e),length:p,nullCount:0,children:E.slice()})))}return[n=n.assign(e),t.map(M=>new RecordBatch(n,M))]}function distributeChildren(n,i,e,t,o){var d;const p=(i+63&-64)>>3;for(let h=-1,y=t.length;++h<y;){const $=e[h],E=$?.length;if(E>=i)E===i?e[h]=$:(e[h]=$.slice(0,i),o.numBatches=Math.max(o.numBatches,t[h].unshift($.slice(i,E-i))
vendor: 7,102 bytes, lines 24-27
24));else{const M=n[h];n[h]=M.clone({nullable:!0}),e[h]=(d=$?._changeLengthAndBackfillNullBitmap(i))!==null&&d!==void 0?d:makeData({type:M.type,length:i,nullCount:i,nullBitmap:new Uint8Array(p)})}}return e}var _a$2;class Table{constructor(...i){var e,t;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 Table)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($=>p($));if(typeof y[Symbol.iterator]=="function")return[...y].flatMap($=>p($));if(typeof y=="object"){const $=Object.keys(y),E=$.map(Z=>new Vector([y[Z]])),M=o??new Schema$1($.map((Z,be)=>new Field(String(Z),E[be].type,E[be].nullable))),[,H]=distributeVectorsIntoRecordBatches(M,E);return H.length===0?[new RecordBatch(y)]:H}}}return[]},h=i.flatMap(y=>p(y));if(o=(t=o??((e=h[0])===null||e===void 0?void 0:e.schema))!==null&&t!==void 0?t: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,e)=>i+e.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,e){}indexOf(i,e){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 e=this.schema,t=this.data.concat(i.flatMap(({data:o})=>o));return new Table(e,t.map(o=>new RecordBatch(e,o)))}slice(i,e){const t=this.schema;[i,e]=clampRange({length:this.numRows},i,e);const o=sliceChunks$1(this.data,this._offsets,i,e);return new Table(t,o.map(d=>new RecordBatch(t,d)))}getChild(i){return this.getChildAt(this.schema.fields.findIndex(e=>e.name===i))}getChildAt(i){if(i>-1&&i<this.schema.fields.length){const e=this.data.map(t=>t.children[i]);if(e.length===0){const{type:t}=this.schema.fields[i],o=makeData({type:t,length:0,nullCount:0});e.push(o._changeLengthAndBackfillNullBitmap(this.numRows))}return new Vector(e)}return null}setChild(i,e){var t;return this.setChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(o=>o.name===i),e)}setChildAt(i,e){let t=this.schema,o=[...this.batches];if(i>-1&&i<this.numCols){e||(e=new Vector([makeData({type:new Null,length:this.numRows})]));const d=t.fields.slice(),p=d[i].clone({type:e.type}),h=this.schema.fields.map((y,$)=>this.getChildAt($));[d[i],h[i]]=[p,e],[t,o]=distributeVectorsIntoRecordBatches(t,h)}return new Table(t,o)}select(i){const e=this.schema.fields.reduce((t,o,d)=>t.set(o.name,d),new Map);return this.selectAt(i.map(t=>e.get(t)).filter(t=>t>-1))}selectAt(i){const e=this.schema.selectAt(i),t=this.batches.map(o=>o.selectAt(i));return new Table(e,t)}assign(i){const e=this.schema.fields,[t,o]=i.schema.fields.reduce((h,y,$)=>{const[E,M]=h,H=e.findIndex(Z=>Z.name===y.name);return~H?M[H]=$:E.push($),h},[[],[]]),d=this.schema.assign(i.schema),p=[...e.map((h,y)=>[y,o[y]]).map(([h,y])=>y===void 0?this.getChildAt(h):i.getChildAt(y)),...t.map(h=>i.getChildAt(h))].filter(Boolean);return new Table(...distributeVectorsIntoRecordBatches(d,p))}}_a$2=Symbol.toStringTag;Table[_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.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(e=>makeData({type:e.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[e]=i,{fields:t,children:o,length:d}=Object.keys(e).reduce((y,$,E)=>(y.children[E]=e[$],y.length=Math.max(y.length,e[$].length),y.fields[E]=Field.new({name:$,type:e[$].type,nullable:!0}),y),{length:0,fields:new Array,children:new Array}),p=new Schema$1(t),h=makeData({type:new Struct(t),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,e){return instance$5.visit(this.data,i,e)}indexOf(i,e){return instance$3.visit(this.data,i,e)}[Symbol.iterator](){return instance$2.visit(new Vector([this.data]))}toArray(){return[...this]}concat(...i){return new Table(this.schema,[this,...i])}slice(i,e){const[t]=new Vector([this.data]).slice(i,e).data;return new RecordBatch(this.schema,t)}getChild(i){var e;return this.getChildAt((e=this.schema.fields)===null||e===void 0?void 0:e.findIndex(t=>t.name===i))}getChildAt(i){return i>-1&&i<this.schema.fields.length?new Vector([this.data.children[i]]):null}setChild(i,e){var t;return this.setChildAt((t=this.schema.fields)===null||t===void 0?void 0:t.findIndex(o=>o.name===i),e)}setChildAt(i,e){let t=this.schema,o=this.data;if(i>-1&&i<this.numCols){e||(e=new Vector([makeData({type:new Null,length:this.numRows})]));const d=t.fields.slice(),p=o.children.slice(),h=d[i].clone({type:e.type});[d[i],p[i]]=[h,e.data[0]],t=new Schema$1(d,new Map(this.schema.metadata)),o=makeData({type:new Struct(d),children:p})}return new RecordBatch(t,o)}select(i){const e=this.schema.select(i),t=new Struct(e.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(e,makeData({type:t,length:this.numRows,children:o}))}selectAt(i){const e=this.schema.selectAt(i),t=i.map(d=>
27this.data.children[d]).filter(Boolean),o=makeData({type:new Struct(e.fields),length:this.numRows,children:t});return new RecordBatch(e,o)}}_a$1=Symbol.toStringTag;RecordBatch[_a$1]=(n=>(n._nullCount=-1,n[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(RecordBatch.prototype);function ensureSameLengthData(n,i,e=i.reduce((t,o)=>Math.max(t,o.length),0)){var t;const o=[...n.fields],d=[...i],p=(e+63&-64)>>3;for(const[h,y]of n.fields.entries()){const $=i[h];(!$||$.length!==e)&&(o[h]=y.clone({nullable:!0}),d[h]=(t=$?._changeLengthAndBackfillNullBitmap(e))!==null&&t!==void 0?t:makeData({type:y.type,length:e,nullCount:e,nullBitmap:new Uint8Array(p)}))}return[n.assign(o),makeData({type:new Struct(o),length:e,children:d})]}function collectDictionaries(n,i,e=new Map){var t,o;if(((t=n?.length)!==null&&t!==void 0?t: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 $ of[y,...((o=y?.dictionary)===null||o===void 0?void 0:o.data)||[]])collectDictionaries(h.children,$?.children,e);if(DataType.isDictionary(h)){const{id:$}=h;if(!e.has($))y?.dictionary&&e.set($,y.dictionary);else if(e.get($)!==y.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return e}class _InternalEmptyPlaceholderRecordBatch extends RecordBatch{constructor(i){const e=i.fields.map(o=>makeData({type:o.type})),t=makeData({type:new Struct(i.fields),nullCount:0,children:e});super(i,t)}}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 e;if((e=this.next()).done)return null;if(i!=null&&e.value.headerType!==i)throw new Error(invalidMessageType(i));return e.value}readMessageBody(i){if(i<=0)return new Uint8Array(0);const e=toUint8Array(this.source.read(i));if(e.byteLength<i)throw new Error(invalidMessageBodyLength(i,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}readSchema(i=!1){const e=MessageHeader.Schema,t=this.readMessage(e),o=t?.header();if(i&&!o)throw new Error(nullMessage(e));return o}readMetadataLength(){const i=this.source.read(PADDING),e=i&&new ByteBuffer$2(i),t=e?.readInt32(0)||0;return{done:t===0,value:t}}readMetadata(i){const e=this.source.read(i);if(!e)return ITERATOR_DONE;if(e.byteLength<i)throw new Error(invalidMessageMetadata(i,e.byteLength));return{done:!1,value:Message.decode(e)}}}class AsyncMessageReader{constructor(i,e){this.source=i instanceof AsyncByteStream?i:isFileHandle(i)?new AsyncRandomAccessFile(i,e):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 e;if((e=yield this.next()).done)return null;if(i!=null&&e.value.headerType!==i)throw new Error(invalidMessageType(i));return e.value})}readMessageBody(i){return __awaiter(this,void 0,void 0,function*(){if(i<=0)return new Uint8Array(0);const e=toUint8Array(yield this.source.read(i));if(e.byteLength<i)throw new Error(invalidMessageBodyLength(i,e.byteLength));return e.byteOffset%8===0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()})}readSchema(){return __awaiter(this,arguments,void 0,function*(i=!1){const e=MessageHeader.Schema,t=yield this.readMessage(e),o=t?.header();if(i&&!o)throw new Error(nullMessage(e));return o}
27)}readMetadataLength(){return __awaiter(this,void 0,void 0,function*(){const i=yield this.source.read(PADDING),e=i&&new ByteBuffer$2(i),t=e?.readInt32(0)||0;return{done:t===0,value:t}})}readMetadata(i){return __awaiter(this,void 0,void 0,function*(){const e=yield this.source.read(i);if(!e)return ITERATOR_DONE;if(e.byteLength<i)throw new Error(invalidMessageMetadata(i,e.byteLength));return{done:!1,value:Message.decode(e)}})}}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 e=i.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:Message.fromJSON(e,MessageHeader.DictionaryBatch)}}if(this._batchIndex<i.batches.length){const e=i.batches[this._batchIndex++];return this._body=e.columns,{done:!1,value:Message.fromJSON(e,MessageHeader.RecordBatch)}}return this._body=[],ITERATOR_DONE}readMessageBody(i){return e(this._body);function e(t){return(t||[]).reduce((o,d)=>[...o,...d.VALIDITY&&[d.VALIDITY]||[],...d.TYPE_ID&&[d.TYPE_ID]||[],...d.OFFSET&&[d.OFFSET]||[],...d.DATA&&[d.DATA]||[],...e(d.children)],[])}}readMessage(i){let e;if((e=this.next()).done)return null;if(i!=null&&e.value.headerType!==i)throw new Error(invalidMessageType(i));return e.value}readSchema(){const i=MessageHeader.Schema,e=this.readMessage(i),t=e?.header();if(!e||!t)throw new Error(nullMessage(i));return t}}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 e=-1,t=MAGIC.length;++e<t;)if(MAGIC[e]!==n[i+e])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 e=new Uint8Array([1,2,3,4,5,6,7,8]),t=i.encode(e);return this._isValidCompressed(t)}_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((e,t)=>i[t]===e)}_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 e=new Uint8Array([1,2,3,4,5,6,7,8]),t=i.encode(e);return this._isValidCompressed(t)}_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((e,t)=>i[t]===e)}}const compressionValidators={[CompressionType.LZ4_FRAME]:new Lz4FrameValidator,[CompressionType.ZSTD]:new ZstdValidator};class _CompressionRegistry{constructor(){this.registry={}}set(i,e){if(e?.encode&&typeof e.encode=="function"&&!compressionValidators[i].isValidCodecEncode(e))throw new Error(`Encoder for ${CompressionType[i]} is not valid.`);this.registry[i]=e}get(i){var e;return((e=this.registry)===null||e===void 0?void 0:e[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 e=this._impl.open(i);return isPromise(e)?e.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,e){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,e,t,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 $=o;d.push($)}}catch($){e={error:$}}finally{try{!p&&!i&&(t=h.return)&&(yield t.call(h))}finally{if(e)throw e.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,e){let t;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,e,d);t=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 t=this._loadVectors(i,e,this.schema.fields);const o=makeData({type:new Struct(this.schema.fields),length:i.length,children:t});return new RecordBatch(this.schema,o)}_loadDictionaryBatch(i,e){const{id:t,isDelta:o}=i,{dictionaries:d,schema:p}=this,h=d.get(t),y=p.dictionaries.get(t);let $;if(i.data.compression!=null){const E=compressionRegistry.get(i.data.compression.type);if(E?.decode&&typeof E.decode=="function"){const{decommpressedBody:M,buffers:H}=this._decompressBuffers(i.data,e,E);$=this._loadCompressedVectors(i.data,M,[y]),i=new DictionaryBatch(new RecordBatch$1(i.data.length,i.data.nodes,H,null),t,o)}else throw new Error("Dictionary batch is compressed but codec not found")}else $=this._loadVectors(i.data,e,[y]);
27return(h&&o?h.concat(new Vector($)):new Vector($)).memoize()}_loadVectors(i,e,t){return new VectorLoader(e,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(t)}_loadCompressedVectors(i,e,t){return new CompressedVectorLoader(e,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(t)}_decompressBuffers(i,e,t){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 $=new ByteBuffer$2(e.subarray(h,h+y)),E=bigIntToNumber($.readInt64(0)),M=$.bytes().subarray(COMPRESS_LENGTH_PREFIX),H=E===LENGTH_NO_COMPRESSED_DATA?M:t.decode(M);o.push(H);const Z=(p+7&-8)-p;p+=Z,d.push(new BufferRegion(p,H.length)),p+=H.length}return{decommpressedBody:o,buffers:d}}}class RecordBatchStreamReaderImpl extends RecordBatchReaderImpl{constructor(i,e){super(e),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:e}=this;for(;i=this._readNextMessageAndValidate();)if(i.isSchema())this.reset(i.header());else if(i.isRecordBatch()){this._recordBatchIndex++;const t=i.header(),o=e.readMessageBody(i.bodyLength);return{done:!1,value:this._loadRecordBatch(t,o)}}else if(i.isDictionaryBatch()){this._dictionaryIndex++;const t=i.header(),o=e.readMessageBody(i.bodyLength),d=this._loadDictionaryBatch(t,o);this.dictionaries.set(t.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,e){super(e),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:e}=this;for(;i=yield this._readNextMessageAndValidate();)if(i.isSchema())yield this.reset(i.header());else if(i.isRecordBatch()){this._recordBatchIndex++;const t=i.header(),o=yield e.readMessageBody(i.bodyLength);return{done:!1,value:this._loadRecordBatch(t,o)}}else if(i.isDictionaryBatch()){this._dictionaryIndex++;const t=i.header(),o=yield e.readMessageBody(i.bodyLength),d=this._loadDictionaryBatch(t,o);this.dictionaries.set(t.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,e){super(i instanceof RandomAccessFile?i:new RandomAccessFile(i),e)}isSync(){return!0}isFile(){return!0}open(i){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(i)}readRecordBatch(i){var e;if(this.closed)return null;this._footer||this.open();const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(i);if(t&&this._handle.seek(t.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 e;const t=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(i);if(t&&this._handle.seek(t.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,e=i.size-magicAndPadding,t=i.readInt32(e),o=i.readAt(e-t,t);return Footer_.decode(o)}_readNextMessageAndValidate(i){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.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,...e){const t=typeof e[0]!="number"?e.shift():void 0,o=e[0]instanceof Map?e.shift():void 0;super(i instanceof AsyncRandomAccessFile?i:new AsyncRandomAccessFile(i,t),o)}isFile(){return!0}isAsync(){return!0}open(i){const e=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 t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,i)})}readRecordBatch(i){return __awaiter(this,void 0,void 0,function*(){var e;if(this.closed)return null;this._footer||(yield this.open());const t=(e=this._footer)===null||e===void 0?void 0:e.getRecordBatch(i);if(t&&(yield this._handle.seek(t.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 e;const t=(e=this._footer)===null||e===void 0?void 0:e.getDictionaryBatch(i);if(t&&(yield this._handle.seek(t.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 e=i.size-magicAndPadding,t=yield i.readInt32(e),o=yield i.readAt(e-t,t);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 e=this._footer.getRecordBatch(this._recordBatchIndex);if(e&&(yield this._handle.seek(e.offset)))return yield this._reader.readMessage(i)}return null})}}class RecordBatchJSONReaderImpl extends RecordBatchStreamReaderImpl{constructor(i,e){super(i,e)}_loadVectors(i,e,t){return new JSONVectorLoader(e,i.nodes,i.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(t)}}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 e=yield __await(RecordBatchReader.from(n));try{if(!(yield __await(e.open({autoDestroy:!1}))).closed)do yield yield __await(e);while(!(yield __await(e.reset().open())).closed)}finally{yield __await(e.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(),e=new AsyncRandomAccessFile(n,i);return i>=magicX2AndPadding&&checkForMagicArrowString(yield e.readAt(0,magicLength+7&-8))?new AsyncRecordBatchFileReader(new AsyncRecordBatchFileReaderImpl(e)):new AsyncRecordBatchStreamReader(new AsyncRecordBatchStreamReaderImpl(e))})}function tableFromIPC(n){const i=RecordBatchReader.from(n);return isPromise(i)?i.then(e=>tableFromIPC(e)):i.isAsync()?i.readAll().then(e=>new Table(e)):new Table(i.readAll())}const PandasRangeIndexType="range";var DataFrameCellType=(function(n){return n.INDEX="index",n.DATA="data",n})({});function convertVectorToList(n){const i=[];for(let e=0;e<n.length;e++)i.push(n.get(e));return i}function getPandasTypeName(n){if(!isNullOrUndefined(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(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(n)?!1:DataType.isInt(n.arrowField.type)&&n.arrowField.type.isSigned===!1||(getPandasTypeName(n)?.startsWith("uint")??!1)}function isFloatType(n){return isNullOrUndefined(n)?!1:(DataType.isFloat(n.arrowField.type)||getPandasTypeName(n)?.startsWith("float"))??!1}function isDecimalType(n){return isNullOrUndefined(n)?!1:DataType.isDecimal(n.arrowField.type)||getPandasTypeName(n)==="decimal"}function isNumericType(n){return isNullOrUndefined(n)?!1:isIntegerType(n)||isFloatType(n)||isDecimalType(n)}function isBooleanType(n){return isNullOrUndefined(n)?!1:DataType.isBool(n.arrowField.type)||getPandasTypeName(n)==="bool"}function isDurationType(n){return isNullOrUndefined(n)?!1:DataType.isDuration(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("timedelta")??!1)}function isPeriodType(n){return isNullOrUndefined(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(n)?!1:DataType.isTimestamp(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("datetime")??!1)}function isDateType(n){return isNullOrUndefined(n)?!1:DataType.isDate(n.arrowField.type)||getPandasTypeName(n)==="date"}function isTimeType(n){return isNullOrUndefined(n)?!1:DataType.isTime(n.arrowField.type)||getPandasTypeName(n)==="time"}function isCategoricalType(n){return isNullOrUndefined(n)?!1:DataType.isDictionary(n.arrowField.type)||getPandasTypeName(n)==="categorical"}function isListType(n){return isNullOrUndefined(n)?!1:DataType.isList(n.arrowField.type)||DataType.isFixedSizeList(n.arrowField.type)||(getPandasTypeName(n)?.startsWith("list")??!1)}function isObjectType(n){return isNullOrUndefined(n)?!1:DataType.isStruct(n.arrowField.type)||DataType.isMap(n.arrowField.type)||getPandasTypeName(n)==="object"}function isBytesType(n){return isNullOrUndefined(n)?!1:DataType.isBinary(n.arrowField.type)||DataType.isLargeBinary(n.arrowField.type)||getPandasTypeName(n)==="bytes"}function isStringType(n){return isNullOrUndefined(n)?!1:DataType.isUtf8(n.arrowField.type)||DataType.isLargeUtf8(n.arrowField.type)||["unicode","large_string[pyarrow]"].includes(getPandasTypeName(n)??"")}function isEmptyType(n){return isNullOrUndefined(n)?!1:DataType.isNull(n.arrowField.type)||getPandasTypeName(n)==="empty"}function isIntervalType(n){return isNullOrUndefined(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(n)?!1:getPandasTypeName(n)===PandasRangeIndexType}function sameDataTypes(n,i){return n.every((e,t)=>e.pandasType?.pandas_type===i[t]?.pandasType?.pandas_type)}function sameIndexTypes(n,i){return n.length!==i.length?!1:n.every((e,t)=>t<i.length&&getPandasTypeName(e)===getPandasTypeName(i[t]))}function concatIndexes(n,i,e,t){if(e.length===0)return n;if(n.length===0)return e;if(!sameIndexTypes(i,t)){const d=t.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;e=[range(p,p+e[0].length*d,d)]}return zip(n,e).map(d=>d[0].concat(d[1]))}function concatData(n,i,e,t){if(e.numCols===0)return n;if(n.numCols===0)return e;if(!sameDataTypes(i,t)){const d=t.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=e.selectAt(range(0,n.numCols));return n.concat(o)}function concatTypes(n,i,e,t){const o=concatIndexTypes(n,e),d=concatDataTypes(i,t);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 e=i.map(o=>getPandasTypeName(o)),t=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(e)}\` 44but was expecting \`${JSON.stringify(t)}\`. 45`)}return n.map(e=>{if(isRangeIndexType(e)&&e.pandasType){const{stop:t,step:o}=e.pandasType.metadata,{start:d,stop:p,step:h}=i[0].pandasType?.metadata,y=(p-d)/h,$=t+y*o;return{...e,pandasType:{...e.pandasType,metadata:{...e.pandasType.metadata,stop:$}}}}return e})}function concatDataTypes(n,i){return n.length===0?i:n}function concat(n,i,e,t,o,d,p,h){const y=concatIndexes(e,i,p,d),$=concatData(t,n,h,o),{indexTypes:E,dataTypes:M}=concatTypes(i,n,d,o);return{index:y,data:$,indexTypes:E,dataTypes:M}}function isPandasRangeIndex(n){return typeof n=="object"&&n.kind==="range"}function parsePandasSchema(n){const i=n.schema.metadata.get("pandas");if(!isNullOrUndefined(i))return JSON.parse(i)}function parsePandasIndexData(n,i){return i?i.index_columns.map(e=>{if(isPandasRangeIndex(e)){const{start:o,stop:d,step:p}=e;return range(o,d,p)}const t=n.getChild(e);return t instanceof Vector&&t.type instanceof Null?null:t}).filter(e=>e!==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,e){const t=i.concat(n);return unzip(t.map(o=>o.arrowField.name.startsWith("__index_level_")?"":o.arrowField.name).map(o=>parseHeaderName(o,e?.column_indexes.length??1)))}function parseData(n,i){const e=n.numRows,t=i.length;if(e===0||t===0)return n.select([]);const o=i.map(d=>d.arrowField.name);return n.select(o)}function parsePandasIndexColumnTypes(n,i,e){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:e[d.name]}}):[]}function parseDataColumnTypes(n,i,e){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:e[d.name]}))}function parseCategoricalOptionsForColumns(n){const i={};return n.schema.fields.forEach((e,t)=>{if(e.type instanceof Dictionary){const o=n.getChildAt(t)?.data[0]?.dictionary;notNullOrUndefined(o)&&(i[e.name]=convertVectorToList(o))}}),i}function parseArrowIpcBytes(n){const i=tableFromIPC(n),e=i.schema,t=parsePandasSchema(i),o=parseCategoricalOptionsForColumns(i),d=parsePandasIndexColumnTypes(e,t,o),p=parseDataColumnTypes(e,t,o),h=parseData(i,p),y=parsePandasIndexData(i,t),$=parseColumnNames(p,d,t);return{pandasIndexData:y,data:h,columnNames:$,pandasIndexColumnTypes:d,dataColumnTypes:p}}var _a;_a=DRAFTABLE;class Quiver{constructor(i){this[_a]=!0;const{pandasIndexData:e,columnNames:t,data:o,dataColumnTypes:d,pandasIndexColumnTypes:p}=parseArrowIpcBytes(i.data),h=i.styler?parseStyler(i.styler):void 0;this._pandasIndexData=e,this._columnNames=t,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,e=this._columnNames.length||1,t=this._data.numRows||0,o=this._dataColumnTypes.length||0,d=e+t,p=i+o;return{numHeaderRows:e,numIndexColumns:i,numDataRows:t,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,e){const{numIndexColumns:t,numDataRows:o,numColumns:d}=this.dimensions;
45if(i<0||i>=o)throw new Error(`Row index is out of range: ${i}`);if(e<0||e>=d)throw new Error(`Column index is out of range: ${e}`);if(e<t){const E=this._pandasIndexColumnTypes[e],M=this.getIndexValue(i,e);return{type:DataFrameCellType.INDEX,content:M,contentType:E,field:E.arrowField}}const h=e-t,y=this._dataColumnTypes[h],$=this.getDataValue(i,h);return{type:DataFrameCellType.DATA,content:$,contentType:y,field:y.arrowField}}getIndexValue(i,e){const t=this._pandasIndexData[e];return t instanceof Vector?t.get(i):t[i]}getDataValue(i,e){return this._data.getChildAt(e)?.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:e,data:t,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=e,p._data=t,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,e,t,o,d){this.element=i,this.metadata=e,this.scriptRunId=t,this.activeScriptHash=o,this.fragmentId=d}get quiverElement(){if(this.lazyQuiverElement!==void 0)return this.lazyQuiverElement;if(this.element.type!=="arrowTable"&&this.element.type!=="arrowDataFrame")throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const i=new Quiver(this.element[this.element.type]);return this.lazyQuiverElement=i,i}get vegaLiteChartElement(){if(this.lazyVegaLiteChartElement!==void 0)return this.lazyVegaLiteChartElement;if(this.element.type!=="arrowVegaLiteChart")throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const i=this.element.arrowVegaLiteChart,e=i.data?new Quiver(i.data):null,t=i.datasets.length>0?wrapDatasets(i.datasets):[],o={data:e,spec:i.spec,datasets:t,useContainerWidth:i.useContainerWidth,vegaLiteTheme:i.theme,id:i.id,selectionMode:i.selectionMode,formId:i.formId};return this.lazyVegaLiteChartElement=o,o}arrowAddRows(i,e){const t=this.element.type,o=new ElementNode(this.element,this.metadata,e,this.activeScriptHash,this.fragmentId);switch(t){case"arrowTable":case"arrowDataFrame":{o.lazyQuiverElement=ElementNode.quiverAddRowsHelper(this.quiverElement,i);break}case"arrowVegaLiteChart":{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,e){if(e.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const t=new Quiver(e.data);return i.addRows(t)}static vegaLiteChartAddRowsHelper(i,e){const t=e.hasName?e.name:null,o=new Quiver(e.data);return produce(i,d=>{const p=getNamedDataSet(d.datasets,t);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 e=i.updateTransientNodes(t=>t.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return e.length===0?this:new TransientNode(this.scriptRunId,this,e,i.deltaMsgReceivedAt)}}function getNamedDataSet(n,i){return n.length===1?n[0]:n.find(e=>e.hasName&&e.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 e=[];let t=!1;
45return i.children.forEach(o=>{const d=o.accept(this);d!==o&&(t=!0),d!==void 0&&e.push(d)}),t?new BlockNode(i.activeScriptHash,e,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 e of i.children)e.accept(this);return this.elements}visitTransientNode(i){return i.transientNodes.forEach(e=>{e.accept(this)}),i.anchor?.accept(this),this.elements}static collectElements(i){const e=new ElementsSetVisitor;return i.accept(e),e.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 e=!1;const t=[];for(const o of i.children){const d=o.accept(this);d!==o&&(e=!0),d!==void 0&&t.push(d)}return e?new BlockNode(i.activeScriptHash,t,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitTransientNode(i){const e=i.anchor?.accept(this),t=i.updateTransientNodes(o=>o.accept(this));if(!(!e&&t.length===0))return t.length===0?e:new TransientNode(i.scriptRunId,e,t,i.deltaMsgReceivedAt)}static filterNode(i,e){const t=new FilterMainScriptElementsVisitor(e);return i.accept(t)}}class GetNodeByDeltaPathVisitor{constructor(i){this.deltaPath=i}visitElementNode(i){}visitBlockNode(i){if(this.deltaPath.length===0)return;const[e,...t]=this.deltaPath;if(e<0||e>=i.children.length)return;if(t.length===0)return i.children[e];const o=new GetNodeByDeltaPathVisitor(t);return i.children[e].accept(o)}visitTransientNode(i){return this.deltaPath.length===0?i.anchor:i.anchor?.accept(this)}static getNodeAtPath(i,e){const t=new GetNodeByDeltaPathVisitor(e);return i.accept(t)}}class SetNodeByDeltaPathVisitor{constructor(i,e,t){this.deltaPath=i,this.nodeToSet=e,this.scriptRunId=t}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.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet}visitTransientNode(i){const[,...e]=this.deltaPath;if(e.length>0){if(i.anchor)return i.anchor.accept(new SetNodeByDeltaPathVisitor(e,this.nodeToSet,this.scriptRunId));throw new Error("TransientNode has no anchor to set node at")}return this.nodeToSet.replaceTransientNodeWithSelf(i)}visitBlockNode(i){if(this.deltaPath.length===0)return this.nodeToSet;const[e,...t]=this.deltaPath;if(e<0||e>i.children.length)throw new Error(`Bad delta path index ${e} (should be between [0, ${i.children.length}])`);let o=[];const d=new SetNodeByDeltaPathVisitor(t,this.nodeToSet,this.scriptRunId);if(i.children[e]){let p=0;for(;p<i.children.length;){const h=i.children[p];if(p!==e){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(t.length>0)throw new Error("Cannot set a node at a delta path");o=i.children.slice(),o[e]=this.nodeToSet}return new BlockNode(i.activeScriptHash,o,i.deltaBlock,this.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt)}static setNodeAtPath(i,e,t,o){const d=new SetNodeByDeltaPathVisitor(e,t,o);return i.accept(d)}}class AppRoot{static empty(i="",e=!0,t,o){const d=[];let p;switch(getLoadingScreenType()){case LoadingScreenType.NONE:break;case LoadingScreenType.V1:e&&(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=t||new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),$=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),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,e,t=null){if(this.mainScriptHash=i,this.root=e,this.appLogo=t,this.root.children.length!==4||isNullOrUndefined(this.main)||isNullOrUndefined(this.sidebar)||isNullOrUndefined(this.event)||isNullOrUndefined(this.bottom))throw new Error(`Invalid root node children! ${e}`)}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,e){return new AppRoot(this.mainScriptHash,this.root,{logo:i,...e})}applyDelta(i,e,t){const{deltaPath:o,activeScriptHash:d}=t;switch(e.type){case"newElement":{const p=e.newElement;return this.addElement(o,i,p,t,d,e.fragmentId)}case"addBlock":{const p=Date.now();return this.addBlock(o,e.addBlock,i,d,e.fragmentId,p)}case"newTransient":{const p=e.newTransient;return this.addTransient(o,i,p,t,d,e.fragmentId)}case"arrowAddRows":try{return this.arrowAddRows(o,e.arrowAddRows,i)}catch(p){const h=makeElementWithErrorText(ensureError(p).message);return this.addElement(o,i,h,t,d)}default:throw new Error(`Unrecognized deltaType: '${e.type}'`)}}ensureBlockNode(i,e=this.mainScriptHash){return i??new BlockNode(e)}filterMainScriptElements(i){const e=this.main.scriptRunId,t=new FilterMainScriptElementsVisitor(i),o=this.root.children.map(p=>this.ensureBlockNode(p.accept(t),i)),d=this.appLogo?.activeScriptHash===i?this.appLogo:null;return new AppRoot(i,new BlockNode(i,o,new Block$1({allowEmpty:!0}),e),d)}clearStaleNodes(i,e){const t=new ClearStaleNodeVisitor(i,e),o=this.root.children.map(h=>this.ensureBlockNode(h.accept(t))),p=e&&e.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 e=new ClearTransientNodesVisitor(i),t=this.root.children.map(o=>this.ensureBlockNode(o.accept(e)));return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,t,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}
45addElement(i,e,t,o,d,p){const h=new ElementNode(t,o,e,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,h,e),this.appLogo)}addBlock(i,e,t,o,d,p){const h=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);let y=[];h instanceof BlockNode&&h.deltaBlock.type===e.type&&(e.dialog&&h.deltaBlock.dialog&&e.id!==h.deltaBlock.id||(y=h.children));const $=new BlockNode(o,y,e,t,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,$,t),this.appLogo)}addTransient(i,e,t,o,d,p,h){const y=new TransientNode(e,void 0,t.elements.map($=>new ElementNode($,o,e,d,p)),h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,y,e),this.appLogo)}arrowAddRows(i,e,t){const o=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);if(isNullOrUndefined(o)||!(o instanceof ElementNode))throw new Error(`Can't arrowAddRows: invalid deltaPath: ${i}`);const d=o.arrowAddRows(e,t);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,d,t),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((e,t)=>{const o=t===this.root.children.length-1,d=this.getChildName(e),p=o?"âââ ":"âââ ",h=o?" ":"â ";i+=`${p}${d}: 47`;const y=new DebugVisitor(h,!0);i+=e.accept(y)}),i}}var classnames={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(n){(function(){var i={}.hasOwnProperty;function e(){for(var d="",p=0;p<arguments.length;p++){var h=arguments[p];h&&(d=o(d,t(h)))}return d}function t(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return e.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?(e.default=e,n.exports=e):window.classNames=e})()})(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:e,parentWidth:t,hasContentWidth:o=!1,hasFixedWidth:d=!1,parentContext:p=null})=>{const h=reactExports.useMemo(()=>{const y=i===Direction.HORIZONTAL;let $;return o?$=!0:d?$=!1:$=p?.isInContentWidthContainer??!1,{direction:i,isInHorizontalLayout:y,isInRoot:e??!1,parentWidth:t,isInContentWidthContainer:$}},[i,e,t,o,d,p]);return jsx$1(FlexContext.Provider,{value:h,children:n})};function guard(n,i,e){return Math.min(Math.max(n,e),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 e=reducedHexRegex.exec(i);if(e){const p=Array.from(e).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 t=hexRegex.exec(i);if(t){const p=Array.from(t).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,$]=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($)?1:$]}throw new ColorError$1(n)}function hash(n){let i=5381,e=n.length;for(;e;
47)i=i*33^n.charCodeAt(--e);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 e=colorToInt(i.substring(0,3)),t=colorToInt(i.substring(3)).toString(16);let o="";for(let d=0;d<6-t.length;d++)o+="0";return n[e]=`${o}${t}`,n},{});function nameToHex(n){const i=n.toLowerCase().trim(),e=compressedColorMap[hash(i)];if(!e)throw new ColorError$1(n);return`#${e}`}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,e)=>{let t=e/100;if(i===0)return[t,t,t].map(roundColor);const o=(n%360+360)%360/60,d=(1-Math.abs(2*t-1))*(i/100),p=d*(1-Math.abs(o%2-1));let h=0,y=0,$=0;o>=0&&o<1?(h=d,y=p):o>=1&&o<2?(h=p,y=d):o>=2&&o<3?(y=d,$=p):o>=3&&o<4?(y=p,$=d):o>=4&&o<5?(h=p,$=d):o>=5&&o<6&&(h=d,$=p);const E=t-d/2,M=h+E,H=y+E,Z=$+E;return[M,H,Z].map(roundColor)};function parseToHsla(n){const[i,e,t,o]=parseToRgba(n).map((M,H)=>H===3?M:M/255),d=Math.max(i,e,t),p=Math.min(i,e,t),h=(d+p)/2;if(d===p)return[0,0,h,o];const y=d-p,$=h>.5?y/(2-d-p):y/(d+p);return[60*(i===d?(e-t)/y+(e<t?6:0):e===d?(t-i)/y+2:(i-e)/y+4),$,h,o]}function hsla(n,i,e,t){return`hsla(${(n%360).toFixed()}, ${guard(0,100,i*100).toFixed()}%, ${guard(0,100,e*100).toFixed()}%, ${parseFloat(guard(0,1,t).toFixed(3))})`}function darken(n,i){const[e,t,o,d]=parseToHsla(n);return hsla(e,t,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[e,t,o]=parseToRgba(n);return .2126*i(e)+.7152*i(t)+.0722*i(o)}function rgba$1(n,i,e,t){return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,i).toFixed()}, ${guard(0,255,e).toFixed()}, ${parseFloat(guard(0,1,t).toFixed(3))})`}function mix$1(n,i,e){const t=(Me,Le)=>Le===3?Me:Me/255,[o,d,p,h]=parseToRgba(n).map(t),[y,$,E,M]=parseToRgba(i).map(t),H=M-h,Z=e*2-1,ye=((Z*H===-1?Z:Z+H/(1+Z*H))+1)/2,we=1-ye,xe=(o*we+y*ye)*255,Ce=(d*we+$*ye)*255,Ne=(p*we+E*ye)*255,Fe=M*e+h*(1-e);return rgba$1(xe,Ce,Ne,Fe)}function lighten(n,i){return darken(n,-i)}function transparentize(n,i){const[e,t,o,d]=parseToRgba(n);return rgba$1(e,t,o,d-i)}function toHex(n){const[i,e,t,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(e)}${d(t)}${o<1?d(Math.round(o*255)):""}`}var colors$1={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$1.black,primaryB:colors$1.white,primary:colors$1.black,primary50:colors$1.gray50,primary100:colors$1.gray100,primary200:colors$1.gray200,primary300:colors$1.gray300,primary400:colors$1.gray400,primary500:colors$1.gray500,primary600:colors$1.gray600,primary700:colors$1.gray700,accent:colors$1.blue400,accent50:colors$1.blue50,accent100:colors$1.blue100,accent200:colors$1.blue200,accent300:colors$1.blue300,accent400:colors$1.blue400,accent500:colors$1.blue500,accent600:colors$1.blue600,accent700:colors$1.blue700,negative:colors$1.red400,negative50:colors$1.red50,negative100:colors$1.red100,negative200:colors$1.red200,negative300:colors$1.red300,negative400:colors$1.red400,negative500:colors$1.red500,negative600:colors$1.red600,negative700:colors$1.red700,warning:colors$1.yellow400,warning50:colors$1.yellow50,warning100:colors$1.yellow100,warning200:colors$1.yellow200,warning300:colors$1.yellow300,warning400:colors$1.yellow400,warning500:colors$1.yellow500,warning600:colors$1.yellow600,warning700:colors$1.yellow700,positive:colors$1.green500,positive50:colors$1.green50,positive100:colors$1.green100,positive200:colors$1.green200,positive300:colors$1.green300,positive400:colors$1.green400,positive500:colors$1.green500,positive600:colors$1.green600,positive700:colors$1.green700,white:colors$1.white,black:colors$1.black,mono100:colors$1.white,mono200:colors$1.gray50,mono300:colors$1.gray100,mono400:colors$1.gray200,mono500:colors$1.gray300,mono600:colors$1.gray400,mono700:colors$1.gray500,mono800:colors$1.gray600,mono900:colors$1.gray700,mono1000:colors$1.black,ratingInactiveFill:colors$1.gray100,ratingStroke:colors$1.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",e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(e,function(o,d,p,h){return d+d+p+p+h+h});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?"rgba(".concat(parseInt(t[1],16),", ").concat(parseInt(t[2],16),", ").concat(parseInt(t[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$x(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$w(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};
47i%2?ownKeys$x(Object(e),!0).forEach(function(t){_defineProperty$D(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$x(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$D(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}const getSemanticColorTokens=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens,i={backgroundPrimary:n.primaryB,backgroundSecondary:colors$1.gray50,backgroundTertiary:colors$1.gray100,backgroundInversePrimary:n.primaryA,backgroundInverseSecondary:colors$1.gray800,contentPrimary:n.primaryA,contentSecondary:colors$1.gray600,contentTertiary:colors$1.gray500,contentInversePrimary:n.primaryB,contentInverseSecondary:colors$1.gray300,contentInverseTertiary:colors$1.gray400,borderOpaque:colors$1.gray200,borderTransparent:hexToRgb(n.primaryA,"0.08"),borderSelected:n.primaryA,borderInverseOpaque:colors$1.gray700,borderInverseTransparent:hexToRgb(n.primaryB,"0.2"),borderInverseSelected:n.primaryB},e={backgroundStateDisabled:colors$1.gray50,backgroundOverlayDark:hexToRgb(colors$1.black,"0.3"),backgroundOverlayLight:hexToRgb(colors$1.black,"0.08"),backgroundOverlayArt:hexToRgb(colors$1.black,"0.00"),backgroundAccent:n.accent,backgroundNegative:n.negative,backgroundWarning:n.warning,backgroundPositive:colors$1.green400,backgroundLightAccent:colors$1.blue50,backgroundLightNegative:colors$1.red50,backgroundLightWarning:colors$1.yellow50,backgroundLightPositive:colors$1.green50,backgroundAlwaysDark:colors$1.black,backgroundAlwaysLight:colors$1.white,contentStateDisabled:colors$1.gray400,contentAccent:n.accent,contentOnColor:colors$1.white,contentOnColorInverse:colors$1.black,contentNegative:n.negative,contentWarning:colors$1.yellow600,contentPositive:colors$1.green400,borderStateDisabled:colors$1.gray50,borderAccent:colors$1.blue400,borderAccentLight:colors$1.blue200,borderNegative:colors$1.red200,borderWarning:colors$1.yellow200,borderPositive:colors$1.green200,safety:colors$1.blue400,eatsGreen400:colors$1.green400,freightBlue400:colors$1.cobalt400,jumpRed400:colors$1.red400,rewardsTier1:colors$1.blue400,rewardsTier2:colors$1.yellow400,rewardsTier3:colors$1.platinum400,rewardsTier4:colors$1.black,membership:colors$1.yellow600};return _objectSpread$w(_objectSpread$w({},i),e)});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$w(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$v(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$w(Object(e),!0).forEach(function(t){_defineProperty$C(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$w(Object(e)).forEac
47h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$C(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,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"},e={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:500,lineHeight:"16px"},t={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"},$={fontFamily:n.primaryFontFamily,fontSize:"20px",fontWeight:700,lineHeight:"28px"},E={fontFamily:n.primaryFontFamily,fontSize:"24px",fontWeight:700,lineHeight:"32px"},M={fontFamily:n.primaryFontFamily,fontSize:"28px",fontWeight:700,lineHeight:"36px"},H={fontFamily:n.primaryFontFamily,fontSize:"32px",fontWeight:700,lineHeight:"40px"},Z={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},be={fontFamily:n.primaryFontFamily,fontSize:"40px",fontWeight:700,lineHeight:"52px"},ye={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"},Ce={fontFamily:n.primaryFontFamily,fontSize:"96px",fontWeight:700,lineHeight:"112px"};return{font100:i,font150:e,font200:t,font250:o,font300:d,font350:p,font400:h,font450:y,font550:$,font650:E,font750:M,font850:H,font950:Z,font1050:be,font1150:ye,font1250:we,font1350:xe,font1450:Ce,ParagraphXSmall:i,ParagraphSmall:t,ParagraphMedium:d,ParagraphLarge:h,LabelXSmall:e,LabelSmall:o,LabelMedium:p,LabelLarge:y,HeadingXSmall:$,HeadingSmall:E,HeadingMedium:M,HeadingLarge:H,HeadingXLarge:Z,HeadingXXLarge:be,DisplayXSmall:ye,DisplaySmall:we,DisplayMedium:xe,DisplayLarge:Ce,MonoParagraphXSmall:_objectSpread$v(_objectSpread$v({},i),{},{fontFamily:monoFontFamily}),MonoParagraphSmall:_objectSpread$v(_objectSpread$v({},t),{},{fontFamily:monoFontFamily}),MonoParagraphMedium:_objectSpread$v(_objectSpread$v({},d),{},{fontFamily:monoFontFamily}),MonoParagraphLarge:_objectSpread$v(_objectSpread$v({},h),{},{fontFamily:monoFontFamily}),MonoLabelXSmall:_objectSpread$v(_objectSpread$v({},e),{},{fontFamily:monoFontFamily}),MonoLabelSmall:_objectSpread$v(_objectSpread$v({},o),{},{fontFamily:monoFontFamily}),MonoLabelMedium:_objectSpread$v(_objectSpread$v({},p),{},{fontFamily:monoFontFamily}),MonoLabelLarge:_objectSpread$v(_objectSpread$v({},y),{},{fontFamily:monoFontFamily}),MonoHeadingXSmall:_objectSpread$v(_objectSpread$v({},$),{},{fontFamily:monoFontFamily}),MonoHeadingSmall:_objectSpread$v(_objectSpread$v({},E),{},{fontFamily:monoFontFamily}),MonoHeadingMedium:_objectSpread$v(_objectSpread$v({},M),{},{fontFamily:monoFontFamily}),MonoHeadingLarge:_objectSpread$v(_objectSpread$v({},H),{},{fontFamily:monoFontFamily}),MonoHeadingXLarge:_objectSpread$v(_objectSpread$v({},Z),{},{fontFamily:monoFontFamily}),MonoHeadingXXLarge:_objectSpread$v(_objectSpread$v({},be),{},{fontFamily:monoFontFamily}),MonoDisplayXSmall:_objectSpread$v(_objectSpread$v({},ye),{},{fontFamily:monoFontFamily}),MonoDisplaySmall:_objectSpread$v(_objectSpread$v({},we),{},{fontFamily:monoFontFamily}),MonoDisplayMedium:_objectSpread$v(_objectSpread$v({},xe),{},{fontFamily:monoFontFamily}),MonoDisplayLarge:_objectSpread$v(_objectSpread$v({},Ce),{},{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$v(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$u(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$v(Object(e),!0).forEach(function(t){_defineProperty$B(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$v(Object(e)).forEac
47h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$B(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var LightTheme={name:"light-theme",colors:_objectSpread$u(_objectSpread$u(_objectSpread$u({},lightColorTokens),getComponentColorTokens()),getSemanticColorTokens()),animation,breakpoints:breakpoints$1,borders,direction:"auto",grid,lighting,mediaQuery,sizing,typography:getTypography(),zIndex:{modal:2e3}};function _typeof$j(n){"@babel/helpers - typeof";return _typeof$j=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$j(n)}function deepMerge(n){n=n||{};for(var i=arguments.length<=1?0:arguments.length-1,e,t,o=0;o<i;o++){e=(o+1<1||arguments.length<=o+1?void 0:arguments[o+1])||{};for(var d in e)_typeof$j(e[d])!==void 0&&(t=e[d],isCloneable(t)?n[d]=deepMerge(n[d]||Array.isArray(t)&&[]||{},t):n[d]=t)}return n}function isCloneable(n){return Array.isArray(n)||{}.toString.call(n)=="[object Object]"}var darkColorTokens={primaryA:colors$1.gray200,primaryB:colors$1.gray900,primary:colors$1.white,primary50:colors$1.gray50,primary100:colors$1.gray100,primary200:colors$1.gray200,primary300:colors$1.gray300,primary400:colors$1.gray400,primary500:colors$1.gray500,primary600:colors$1.gray600,primary700:colors$1.gray700,accent:colors$1.blue400,accent50:colors$1.blue50,accent100:colors$1.blue100,accent200:colors$1.blue200,accent300:colors$1.blue300,accent400:colors$1.blue400,accent500:colors$1.blue500,accent600:colors$1.blue600,accent700:colors$1.blue700,negative:colors$1.red500,negative50:colors$1.red50,negative100:colors$1.red100,negative200:colors$1.red200,negative300:colors$1.red300,negative400:colors$1.red400,negative500:colors$1.red500,negative600:colors$1.red600,negative700:colors$1.red700,warning:colors$1.yellow500,warning50:colors$1.yellow50,warning100:colors$1.yellow100,warning200:colors$1.yellow200,warning300:colors$1.yellow300,warning400:colors$1.yellow400,warning500:colors$1.yellow500,warning600:colors$1.yellow600,warning700:colors$1.yellow700,positive:colors$1.green400,positive50:colors$1.green50,positive100:colors$1.green100,positive200:colors$1.green200,positive300:colors$1.green300,positive400:colors$1.green400,positive500:colors$1.green500,positive600:colors$1.green600,positive700:colors$1.green700,white:colors$1.white,black:colors$1.black,mono100:colors$1.gray300,mono200:colors$1.gray400,mono300:colors$1.gray500,mono400:colors$1.gray600,mono500:colors$1.gray700,mono600:"#292929",mono700:"#1F1F1F",mono800:"#141414",mono900:"#111111",mono1000:colors$1.black,ratingInactiveFill:colors$1.gray500,ratingStroke:colors$1.gray700},_excluded$q=["primaryFontFamily"];function ownKeys$u(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$t(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$u(Object(e),!0).forEach(function(t){_defineProperty$A(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$u(Object(e)).forEac
47h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$A(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _objectWithoutProperties$r(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$r(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$r(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function createLightTheme(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,e=n.primaryFontFamily,t=_objectWithoutProperties$r(n,_excluded$q),o=_objectSpread$t(_objectSpread$t({},lightColorTokens),t),d={animation,borders,breakpoints:breakpoints$1,colors:_objectSpread$t(_objectSpread$t(_objectSpread$t({},o),getComponentColorTokens(o)),getSemanticColorTokens(o)),direction:"auto",grid,lighting,mediaQuery,sizing,typography:e?getTypography({primaryFontFamily:e}):getTypography(),zIndex:{modal:2e3}};return deepMerge(d,i)}function ownKeys$t(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$s(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$t(Object(e),!0).forEach(function(t){_defineProperty$z(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$t(Object(e)).forEac
47h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$z(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var primitives$1=_objectSpread$s(_objectSpread$s({},darkColorTokens),defaultFontTokens);function ownKeys$s(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$r(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$s(Object(e),!0).forEach(function(t){_defineProperty$y(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$s(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$y(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var primitives=_objectSpread$r(_objectSpread$r({},lightColorTokens),defaultFontTokens),ThemeContext$1=reactExports.createContext(LightTheme),ThemeProvider$1=function n(i){var e=i.theme,t=i.children;return reactExports.createElement(ThemeContext$1.Provider,{value:e},t)};function ownKeys$r(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$q(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$r(Object(e),!0).forEach(function(t){_defineProperty$x(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$r(Object(e)).forEac
47h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$x(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _slicedToArray$m(n,i){return _arrayWithHoles$m(n)||_iterableToArrayLimit$m(n,i)||_unsupportedIterableToArray$m(n,i)||_nonIterableRest$m()}function _nonIterableRest$m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$m(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$m(n,i)}}function _arrayLikeToArray$m(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$m(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$m(n){if(Array.isArray(n))return n}function _extends$y(){return _extends$y=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$y.apply(this,arguments)}var wrapper=function n(i){return reactExports.forwardRef(function(e,t){return reactExports.createElement(ThemeContext$1.Consumer,null,function(o){return reactExports.createElement(i,_extends$y({ref:t},e,{$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(),e=_slicedToArray$m(i,1),t=e[0];return[t,n]}}var useStyletron=createThemedUseStyletron();function withWrapper(n,i){return withWrapper$1(n,function(e){return reactExports.forwardRef(function(t,o){return reactExports.createElement(ThemeContext$1.Consumer,null,function(d){return i(e)(_objectSpread$q(_objectSpread$q({ref:o},t),{},{$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,e=function(t,o){return typeof t=="number"||typeof t=="string"?o?"idx-".concat(o):"val-".concat(t):i.has(t)?"uid"+i.get(t):(i.set(t,n++),e(t))};return e},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,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(t[d]=o[d])},n(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}})(),prefixId=function(n,i,e){var t=i+n;return String(e?e(t):t)},UID=(function(n){__extends$1(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={quartz:e.props.idSource||counter,prefix:getPrefix(e.props.idSource),id:getId(e.props.idSource||counter)},e.uid=function(t){return prefixId(e.state.id+"-"+e.state.quartz.uid(t),e.state.prefix,e.props.name)},e}return i.prototype.render=function(){var e=this.props,t=e.children,o=e.name,d=this.state,p=d.id,h=d.prefix;return t(prefixId(p,h,o),this.uid)},i})(reactExports.Component),generateUID=function(n){var i=n||counter,e=getPrefix(i),t=getId(i),o=e+t,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,e=n.prefix,t=e===void 0?"":e,o=reactExports.useState(function(){return createSource(t)})[0];return reactExports.createElement(source.Provider,{value:o},i)},UIDConsumer=function(n){var i=n.name,e=n.children;return reactExports.createElement(source.Consumer,null,function(t){return reactExports.createElement(UID,{name:i,idSource:t,children:e})})},reactIsExports$1=requireReactIs$1();function _extends$x(){return _extends$x=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$x.apply(this,arguments)}function ownKeys$q(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$p(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$q(Object(e),!0).forEach(function(t){_defineProperty$w(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$q(Object(e)).forEac
48h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$w(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _typeof$i(n){"@babel/helpers - typeof";return _typeof$i=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$i(n)}function getOverride(n){return reactIsExports$1.isValidElementType(n)?n:n&&_typeof$i(n)==="object"?n.component:n}function getOverrideProps(n){return n&&_typeof$i(n)==="object"?_typeof$i(n.props)==="object"?_objectSpread$p(_objectSpread$p({},n.props),{},{$style:n.style}):{$style:n.style}:{}}function toObjectOverride(n){return reactIsExports$1.isValidElementType(n)?{component:n}:n||{}}function getOverrides(n,i){var e=getOverride(n)||i;if(n&&_typeof$i(n)==="object"&&typeof n.props=="function"){var t=reactExports.forwardRef(function(d,p){var h=n.props(d),y=getOverrideProps(_objectSpread$p(_objectSpread$p({},n),{},{props:h}));return reactExports.createElement(e,_extends$x({ref:p},y))});return t.displayName=e.displayName,[t,{}]}var o=getOverrideProps(n);return[e,o]}function mergeOverrides(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Object.assign({},n,i),t=Object.keys(e);return t.reduce(function(o,d){return o[d]=mergeOverride(toObjectOverride(n[d]),toObjectOverride(i[d])),o},{})}function mergeOverride(n,i){var e=_objectSpread$p(_objectSpread$p({},n),i);return n.props&&i.props&&(e.props=mergeConfigurationOverrides(n.props,i.props)),n.style&&i.style&&(e.style=mergeConfigurationOverrides(n.style,i.style)),e}function mergeConfigurationOverrides(n,i){return _typeof$i(n)==="object"&&_typeof$i(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,e=n.tagName;return!!(e==="INPUT"&&inputTypesWhitelist[i]&&!n.readOnly||e==="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,e){return function(t){typeof i.onFocus=="function"&&i.onFocus(t),e(t)}},forkBlur=function n(i,e){return function(t){typeof i.onBlur=="function"&&i.onBlur(t),e(t)}};function _typeof$h(n){"@babel/helpers - typeof";return _typeof$h=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$h(n)}function _extends$w(){return _extends$w=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$w.apply(this,arguments)}function _slicedToArray$l(n,i){return _arrayWithHoles$l(n)||_iterableToArrayLimit$l(n,i)||_unsupportedIterableToArray$l(n,i)||_nonIterableRest$l()}function _nonIterableRest$l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$l(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$l(n){if(Array.isArray(n))return n}function _toConsumableArray$3(n){return _arrayWithoutHoles$3(n)||_iterableToArray$3(n)||_unsupportedIterableToArray$l(n)||_nonIterableSpread$3()}function _nonIterableSpread$3(){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$l(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$l(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);
50if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$l(n,i)}}function _iterableToArray$3(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$3(n){if(Array.isArray(n))return _arrayLikeToArray$l(n)}function _arrayLikeToArray$l(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _classCallCheck$g(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$g(n,i,e){return i&&_defineProperties$g(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$g(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$g(n,i)}function _setPrototypeOf$g(n,i){return _setPrototypeOf$g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$g(n,i)}function _createSuper$g(n){var i=_isNativeReflectConstruct$g();return function(){var t=_getPrototypeOf$g(n),o;if(i){var d=_getPrototypeOf$g(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$g(this,o)}}function _possibleConstructorReturn$g(n,i){if(i&&(_typeof$h(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$g(n)}function _assertThisInitialized$g(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$g(){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$g(n){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$g(n)}function _defineProperty$v(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,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$g(e,n);var i=_createSuper$g(e);function e(t){var o;return _classCallCheck$g(this,e),o=i.call(this,t),_defineProperty$v(_assertThisInitialized$g(o),"host",reactExports.createRef()),_defineProperty$v(_assertThisInitialized$g(o),"containerRef",reactExports.createRef()),_defineProperty$v(_assertThisInitialized$g(o),"onDocumentClick",function(d){var p=o.state.docClickHandlers[o.state.docClickHandlers.length-1];p&&p(d)}),_defineProperty$v(_assertThisInitialized$g(o),"onKeyDown",function(d){var p=o.state.keyDownHandlers[o.state.keyDownHandlers.length-1];p&&p(d)}),_defineProperty$v(_assertThisInitialized$g(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$v(_assertThisInitialized$g(o),"onKeyPress",function(d){var p=o.state.keyPressHandlers[o.state.keyPressHandlers.length-1];p&&p(d)}),_defineProperty$v(_assertThisInitialized$g(o),"onAddEscapeHandler",function(d){o.setState(function(p){return{escapeKeyHandlers:[].concat(_toConsumableArray$3(p.escapeKeyHandlers),[d])}})}),_defineProperty$v(_assertThisInitialized$g(o),"onRemoveEscapeHandler",function(d){o.setState(function(p){return{escapeKeyHandlers:p.escapeKeyHandlers.filter(function(h){return h!==d})}})}),_defineProperty$v(_assertThisInitialized$g(o),"onAddKeyDownHandler",function(d){o.setState(function(p){return{keyDownHandlers:[].concat(_toConsumableArray$3(p.keyDownHandlers),[d])}})}),_defineProperty$v(_assertThisInitialized$g(o),"onRemoveKeyDownHandler",function(d){o.setState(function(p){return{keyDownHandlers:p.keyDownHandlers.filter(function(h){return h!==d})}})}),_defineProperty$v(_assertThisInitialized$g(o),"onAddKeyUpHandler",function(d){o.setState(function(p){return{keyUpHandlers:[].concat(_toConsumableArray$3(p.keyUpHandlers),[d])}})}),_defineProperty$v(_assertThisInitialized$g(o),"onRemoveKeyUpHandler",function(d){o.setState(function(p){return{keyUpHandlers:p.keyUpHandlers.filter(function(h){return h!==d})}})}),_defineProperty$v(_assertThisInitialized$g(o),"onAddKeyPressHandler",function(d){o.setState(function(p){return{keyPressHandlers:[].concat(_toConsumableArray$3(p.keyPressHandlers),[d])}})}),_defineProperty$v(_assertThisInitialized$g(o),"onRemoveKeyPressHandler",function(d){o.setState(function(p){return{keyPressHandlers:p.keyPressHandlers.filter(function(h){return h!==d})}})}),_defineProperty$v(_assertThisInitialized$g(o),"onAddDocClickHandler",function(d){o.setState(function(p){return{docClickHandlers:[].concat(_toConsumableArray$3(p.docClickHandlers),[d])}})}),_defineProperty$v(_assertThisInitialized$g(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$g(e,[{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$l(h,2),$=y[0],E=y[1],M=getOverrides(p.LayersContainer,StyledLayersContainer),H=_slicedToArray$l(M,2),Z=H[0],be=H[1];return reactExports.createElement(Consumer,null,function(ye){var we=ye.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($,_extends$w({},E,{ref:o.containerRef}),o.props.children),reactExports.createElement(Z,_extends$w({},be,{ref:o.host})))})}}]),e})(reactExports.Component),reactDomExports=requireReactDom();const ReactDOM=getDefaultExportFromCjs(reactDomExports);function _typeof$g(n){"@babel/helpers - typeof";return _typeof$g=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$g(n)}function _extends$v(){return _extends$v=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$v.apply(this,arguments)}function _classCallCheck$f(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$f(n,i,e){return i&&_defineProperties$f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$f(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$f(n,i)}function _setPrototypeOf$f(n,i){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$f(n,i)}function _createSuper$f(n){var i=_isNativeReflectConstruct$f();return function(){var t=_getPrototypeOf$f(n),o;if(i){var d=_getPrototypeOf$f(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$f(this,o)}}function _possibleConstructorReturn$f(n,i){if(i&&(_typeof$g(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(n)}function _assertThisInitialized$f(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$f(){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$f(n){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$f(n)}function _defineProperty$u(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Container=styled$1("div",function(n){var i=n.$zIndex;return{position:"absolute",top:0,left:0,right:0,zIndex:i||null}});
50Container.displayName="Container";var LayerComponent=(function(n){_inherits$f(e,n);var i=_createSuper$f(e);function e(){var t;_classCallCheck$f(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$u(_assertThisInitialized$f(t),"state",{container:null}),_defineProperty$u(_assertThisInitialized$f(t),"onEscape",function(){t.props.onEscape&&t.props.onEscape()}),_defineProperty$u(_assertThisInitialized$f(t),"onKeyDown",function(h){t.props.onKeyDown&&t.props.onKeyDown(h)}),_defineProperty$u(_assertThisInitialized$f(t),"onKeyUp",function(h){t.props.onKeyUp&&t.props.onKeyUp(h)}),_defineProperty$u(_assertThisInitialized$f(t),"onKeyPress",function(h){t.props.onKeyPress&&t.props.onKeyPress(h)}),_defineProperty$u(_assertThisInitialized$f(t),"onDocumentClick",function(h){t.props.onDocumentClick&&t.props.onDocumentClick(h)}),t}return _createClass$f(e,[{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,$=y?h:document.body;$&&this.addContainer($)}},{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 $=o.ownerDocument.createElement("div"),E=typeof p=="number"?o.children[p]:null;E?o.insertBefore($,E):o.appendChild($),this.setState({container:$},function(){y&&y()})}}},{key:"render",value:function(){var o=this.state.container,d=this.props,p=d.children,h=d.mountNode,y=d.zIndex,$=y?reactExports.createElement(Container,{$zIndex:y},p):p;return typeof document<"u"?h?ReactDOM.createPortal($,h):o?ReactDOM.createPortal($,o):null:null}}]),e})(reactExports.Component);_defineProperty$u(LayerComponent,"contextType",LayersContext);function Layer(n){return reactExports.createElement(Consumer,null,function(i){var e=i.host,t=i.zIndex;return reactExports.createElement(LayerComponent,_extends$v({},n,{host:e,zIndex:t}))})}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$1=supportsMicroTasks?microtaskDebounce:taskDebounce;function isFunction(n){var i={};return n&&i.toString.call(n)==="[object Function]"}
vendor: 22,756 bytes, line 50
50function getStyleComputedProperty(n,i){if(n.nodeType!==1)return[];var e=n.ownerDocument.defaultView,t=e.getComputedStyle(n,null);return i?t[i]:t}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),e=i.overflow,t=i.overflowX,o=i.overflowY;return/(auto|scroll|overlay)/.test(e+o+t)?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,e=n.offsetParent||null;e===i&&n.nextElementSibling;)e=(n=n.nextElementSibling).offsetParent;var t=e&&e.nodeName;return!t||t==="BODY"||t==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(e.nodeName)!==-1&&getStyleComputedProperty(e,"position")==="static"?getOffsetParent(e):e}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 e=n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING,t=e?n:i,o=e?i:n,d=document.createRange();d.setStart(t,0),d.setEnd(o,0);var p=d.commonAncestorContainer;if(n!==p&&i!==p||t.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",e=i==="top"?"scrollTop":"scrollLeft",t=n.nodeName;if(t==="BODY"||t==="HTML"){var o=n.ownerDocument.documentElement,d=n.ownerDocument.scrollingElement||o;return d[e]}return n[e]}function includeScroll(n,i){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,t=getScroll(i,"top"),o=getScroll(i,"left"),d=e?-1:1;return n.top+=t*d,n.bottom+=t*d,n.left+=o*d,n.right+=o*d,n}function getBordersSize$1(n,i){var e=i==="x"?"Left":"Top",t=e==="Left"?"Right":"Bottom";return parseFloat(n["border"+e+"Width"])+parseFloat(n["border"+t+"Width"])}function getSize(n,i,e,t){return Math.max(i["offset"+n],i["scroll"+n],e["client"+n],e["offset"+n],e["scroll"+n],isIE(10)?parseInt(e["offset"+n])+parseInt(t["margin"+(n==="Height"?"Top":"Left")])+parseInt(t["margin"+(n==="Height"?"Bottom":"Right")]):0)}function getWindowSizes(n){var i=n.body,e=n.documentElement,t=isIE(10)&&getComputedStyle(e);return{height:getSize("Height",i,e,t),width:getSize("Width",i,e,t)}}var classCallCheck=function(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function n(i,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(i,o.key,o)}}return function(i,e,t){return e&&n(i.prototype,e),t&&n(i,t),i}})(),defineProperty=function(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n},_extends$u=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n};function getClientRect(n){return _extends$u({},n,{right:n.left+n.width,bottom:n.top+n.height})}function getBoundingClientRect(n){var i={};try{if(isIE(10)){i=n.getBoundingClientRect();var e=getScroll(n,"top"),t=getScroll(n,"left");i.top+=e,i.left+=t,i.bottom+=e,i.right+=t}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,$=n.offsetHeight-h;if(y||$){var E=getStyleComputedProperty(n);y-=getBordersSize$1(E,"x"),$-=getBordersSize$1(E,"y"),o.width-=y,o.height-=$}return getClientRect(o)}function getOffsetRectRelativeToArbitraryNode(n,i){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,t=isIE(10),o=i.nodeName==="HTML",d=getBoundingClientRect(n),p=getBoundingClientRect(i),h=getScrollParent(n),y=getStyleComputedProperty(i),$=parseFloat(y.borderTopWidth),E=parseFloat(y.borderLeftWidth);e&&o&&(p.top=Math.max(p.top,0),p.left=Math.max(p.left,0));var M=getClientRect({top:d.top-p.top-$,left:d.left-p.left-E,width:d.width,height:d.height});if(M.marginTop=0,M.marginLeft=0,!t&&o){var H=parseFloat(y.marginTop),Z=parseFloat(y.marginLeft);M.top-=$-H,M.bottom-=$-H,M.left-=E-Z,M.right-=E-Z,M.marginTop=H,M.marginLeft=Z}return(t&&!e?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,e=n.ownerDocument.documentElement,t=getOffsetRectRelativeToArbitraryNode(n,e),o=Math.max(e.clientWidth,window.innerWidth||0),d=Math.max(e.clientHeight,window.innerHeight||0),p=i?0:getScroll(e),h=i?0:getScroll(e,"left"),y={top:p-t.top+t.marginTop,left:h-t.left+t.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 e=getParentNode$1(n);return e?isFixed$1(e):!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,e,t){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(t==="viewport")d=getViewportOffsetRectRelativeToArtbitraryNode(p,o);else{var h=void 0;t==="scrollParent"?(h=getScrollParent(getParentNode$1(i)),h.nodeName==="BODY"&&(h=n.ownerDocument.documentElement)):t==="window"?h=n.ownerDocument.documentElement:h=t;var y=getOffsetRectRelativeToArbitraryNode(h,p,o);if(h.nodeName==="HTML"&&!isFixed$1(p)){var $=getWindowSizes(n.ownerDocument),E=$.height,M=$.width;d.top+=y.top-y.marginTop,d.bottom=E+y.top,d.left+=y.left-y.marginLeft,d.right=M+y.left}else d=y}e=e||0;var H=typeof e=="number";return d.left+=H?e:e.left||0,d.top+=H?e:e.top||0,d.right-=H?e:e.right||0,d.bottom-=H?e:e.bottom||0,d}function getArea(n){var i=n.width,e=n.height;return i*e}function computeAutoPlacement(n,i,e,t,o){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var p=getBoundaries(e,t,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(H){return _extends$u({key:H},h[H],{area:getArea(h[H])})}).sort(function(H,Z){return Z.area-H.area}),$=y.filter(function(H){var Z=H.width,be=H.height;return Z>=e.clientWidth&&be>=e.clientHeight}),E=$.length>0?$[0].key:y[0].key,M=n.split("-")[1];return E+(M?"-"+M:"")}function getReferenceOffsets(n,i,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=t?getFixedPositionOffsetParent(i):findCommonOffsetParent(i,getReferenceNode(e));return getOffsetRectRelativeToArbitraryNode(e,o,t)}function getOuterSizes(n){var i=n.ownerDocument.defaultView,e=i.getComputedStyle(n),t=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0),d={width:n.offsetWidth+o,height:n.offsetHeight+t};return d}function getOppositePlacement(n){var i={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(e){return i[e]})}function getPopperOffsets(n,i,e){e=e.split("-")[0];var t=getOuterSizes(n),o={width:t.width,height:t.height},d=["right","left"].indexOf(e)!==-1,p=d?"top":"left",h=d?"left":"top",y=d?"height":"width",$=d?"width":"height";return o[p]=i[p]+i[y]/2-t[y]/2,e===h?o[h]=i[h]-t[$]: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,e){if(Array.prototype.findIndex)return n.findIndex(function(o){return o[i]===e});var t=find$1(n,function(o){return o[i]===e});return n.indexOf(t)}function runModifiers(n,i,e){var t=e===void 0?n:n.slice(0,findIndex(n,"name",e));return t.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(e){var t=e.name,o=e.enabled;return o&&t===i})}function getSupportedPropertyName(n){for(var i=[!1,"ms","Webkit","Moz","O"],e=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<i.length;t++){var o=i[t],d=o?""+o+e: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,e,t){var o=n.nodeName==="BODY",d=o?n.ownerDocument.defaultView:n;d.addEventListener(i,e,{passive:!0}),o||attachToScrollParents(getScrollParent(d.parentNode),i,e,t),t.push(d)}function setupEventListeners(n,i,e,t){e.updateBound=t,getWindow(n).addEventListener("resize",e.updateBound,{passive:!0});var o=getScrollParent(n);return attachToScrollParents(o,"scroll",e.updateBound,e.scrollParents),e.scrollElement=o,e.eventsEnabled=!0,e}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(e){e.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(e){var t="";["width","height","top","right","bottom","left"].indexOf(e)!==-1&&isNumeric(i[e])&&(t="px"),n.style[e]=i[e]+t})}function setAttributes(n,i){Object.keys(i).forEach(function(e){var t=i[e];t!==!1?n.setAttribute(e,i[e]):n.removeAttribute(e)})}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,e,t,o){var d=getReferenceOffsets(o,i,n,e.positionFixed),p=computeAutoPlacement(e.placement,d,i,n,e.modifiers.flip.boundariesElement,e.modifiers.flip.padding);return i.setAttribute("x-placement",p),setStyles(i,{position:e.positionFixed?"fixed":"absolute"}),e}function getRoundedOffsets(n,i){var e=n.offsets,t=e.popper,o=e.reference,d=Math.round,p=Math.floor,h=function(xe){return xe},y=d(o.width),$=d(t.width),E=["left","right"].indexOf(n.placement)!==-1,M=n.placement.indexOf("-")!==-1,H=y%2===$%2,Z=y%2===1&&$%2===1,be=i?E||M||H?d:p:h,ye=i?d:h;return{left:be(Z&&!M&&i?t.left-1:t.left),top:ye(t.top),bottom:ye(t.bottom),right:be(t.right)}}var isFirefox=isBrowser$1&&/Firefox/i.test(navigator.userAgent);function computeStyle(n,i){var e=i.x,t=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),$={position:o.position},E=getRoundedOffsets(n,window.devicePixelRatio<2||!isFirefox),M=e==="bottom"?"top":"bottom",H=t==="right"?"left":"right",Z=getSupportedPropertyName("transform"),be=void 0,ye=void 0;if(M==="bottom"?h.nodeName==="HTML"?ye=-h.clientHeight+E.bottom:ye=-y.height+E.bottom:ye=E.top,H==="right"?h.nodeName==="HTML"?be=-h.clientWidth+E.right:be=-y.width+E.right:be=E.left,p&&Z)$[Z]="translate3d("+be+"px, "+ye+"px, 0)",$[M]=0,$[H]=0,$.willChange="transform";else{var we=M==="bottom"?-1:1,xe=H==="right"?-1:1;$[M]=ye*we,$[H]=be*xe,$.willChange=M+", "+H}var Ce={"x-placement":n.placement};return n.attributes=_extends$u({},Ce,n.attributes),n.styles=_extends$u({},$,n.styles),n.arrowStyles=_extends$u({},n.offsets.arrow,n.arrowStyles),n}function isModifierRequired(n,i,e){var t=find$1(n,function(h){var y=h.name;return y===i}),o=!!t&&n.some(function(h){return h.name===e&&h.enabled&&h.order<t.order});if(!o){var d="`"+i+"`",p="`"+e+"`";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 e;if(!isModifierRequired(n.instance.modifiers,"arrow","keepTogether"))return n;var t=i.element;if(typeof t=="string"){if(t=n.instance.popper.querySelector(t),!t)return n}else if(!n.instance.popper.contains(t))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,$=y?"height":"width",E=y?"Top":"Left",M=E.toLowerCase(),H=y?"left":"top",Z=y?"bottom":"right",be=getOuterSizes(t)[$];h[Z]-be<p[M]&&(n.offsets.popper[M]-=p[M]-(h[Z]-be)),h[M]+be>p[Z]&&(n.offsets.popper[M]+=h[M]+be-p[Z]),n.offsets.popper=getClientRect(n.offsets.popper);var ye=h[M]+h[$]/2-be/2,we=getStyleComputedProperty(n.instance.popper),xe=parseFloat(we["margin"+E]),Ce=parseFloat(we["border"+E+"Width"]),Ne=ye-n.offsets.popper[M]-xe-Ce;return Ne=Math.max(Math.min(p[$]-be,Ne),0),n.arrowElement=t,n.offsets.arrow=(e={},defineProperty(e,M,Math.round(Ne)),defineProperty(e,H,""),e),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,e=validPlacements.indexOf(n),t=validPlacements.slice(e+1).concat(validPlacements.slice(0,e));return i?t.reverse():t}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 e=getBoundaries(n.instance.popper,n.instance.reference,i.padding,i.boundariesElement,n.positionFixed),t=n.placement.split("-")[0],o=getOppositePlacement(t),d=n.placement.split("-")[1]||"",p=[];switch(i.behavior){case BEHAVIORS.FLIP:p=[t,o];break;case BEHAVIORS.CLOCKWISE:p=clockwise(t);break;case BEHAVIORS.COUNTERCLOCKWISE:p=clockwise(t,!0);break;default:p=i.behavior}return p.forEach(function(h,y){if(t!==h||p.length===y+1)return n;t=n.placement.split("-")[0],o=getOppositePlacement(t);var $=n.offsets.popper,E=n.offsets.reference,M=Math.floor,H=t==="left"&&M($.right)>M(E.left)||t==="right"&&M($.left)<M(E.right)||t==="top"&&M($.bottom)>M(E.top)||t==="bottom"&&M($.top)<M(E.bottom),Z=M($.left)<M(e.left),be=M($.right)>M(e.right),ye=M($.top)<M(e.top),we=M($.bottom)>M(e.bottom),xe=t==="left"&&Z||t==="right"&&be||t==="top"&&ye||t==="bottom"&&we,Ce=["top","bottom"].indexOf(t)!==-1,Ne=!!i.flipVariations&&(Ce&&d==="start"&&Z||Ce&&d==="end"&&be||!Ce&&d==="start"&&ye||!Ce&&d==="end"&&we),Fe=!!i.flipVariationsByContent&&(Ce&&d==="start"&&be||Ce&&d==="end"&&Z||!Ce&&d==="start"&&we||!Ce&&d==="end"&&ye),Me=Ne||Fe;(H||xe||Me)&&(n.flipped=!0,(H||xe)&&(t=p[y+1]),Me&&(d=getOppositeVariation(d)),n.placement=t+(d?"-"+d:""),n.offsets.popper=_extends$u({},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,e=i.popper,t=i.reference,o=n.placement.split("-")[0],d=Math.floor,p=["top","bottom"].indexOf(o)!==-1,h=p?"right":"bottom",y=p?"left":"top",$=p?"width":"height";return e[h]<d(t[y])&&(n.offsets.popper[y]=d(t[y])-e[$]),e[y]>d(t[h])&&(n.offsets.popper[y]=d(t[h])),n}function toValue(n,i,e,t){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=e;break;case"%":case"%r":default:h=t}var y=getClientRect(h);return y[i]/100*d}else if(p==="vh"||p==="vw"){var $=void 0;return p==="vh"?$=Math.max(document.documentElement.clientHeight,window.innerHeight||0):$=Math.max(document.documentElement.clientWidth,window.innerWidth||0),$/100*d}else return d}function parseOffset(n,i,e,t){var o=[0,0],d=["right","left"].indexOf(t)!==-1,p=n.split(/(\+|\-)/).map(function(E){return E.trim()}),h=p.indexOf(find$1(p,function(E){return E.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+/,$=h!==-1?[p.slice(0,h).concat([p[h].split(y)[0]]),[p[h].split(y)[1]].concat(p.slice(h+1))]:[p];return $=$.map(function(E,M){var H=(M===1?!d:d)?"height":"width",Z=!1;return E.reduce(function(be,ye){return be[be.length-1]===""&&["+","-"].indexOf(ye)!==-1?(be[be.length-1]=ye,Z=!0,be):Z?(be[be.length-1]+=ye,Z=!1,be):be.concat(ye)},[]).map(function(be){return toValue(be,H,i,e)})}),$.forEach(function(E,M){E.forEach(function(H,Z){isNumeric(H)&&(o[M]+=H*(E[Z-1]==="-"?-1:1))})}),o}function offset(n,i){var e=i.offset,t=n.placement,o=n.offsets,d=o.popper,p=o.reference,h=t.split("-")[0],y=void 0;return isNumeric(+e)?y=[+e,0]:y=parseOffset(e,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 e=i.boundariesElement||getOffsetParent(n.instance.popper);n.instance.reference===e&&(e=getOffsetParent(e));var t=getSupportedPropertyName("transform"),o=n.instance.popper.style,d=o.top,p=o.left,h=o[t];o.top="",o.left="",o[t]="";var y=getBoundaries(n.instance.popper,n.instance.reference,i.padding,e,n.positionFixed);o.top=d,o.left=p,o[t]=h,i.boundaries=y;var $=i.priority,E=n.offsets.popper,M={primary:function(Z){var be=E[Z];return E[Z]<y[Z]&&!i.escapeWithReference&&(be=Math.max(E[Z],y[Z])),defineProperty({},Z,be)},secondary:function(Z){var be=Z==="right"?"left":"top",ye=E[be];return E[Z]>y[Z]&&!i.escapeWithReference&&(ye=Math.min(E[be],y[Z]-(Z==="right"?E.width:E.height))),defineProperty({},be,ye)}};return $.forEach(function(H){var Z=["left","top"].indexOf(H)!==-1?"primary":"secondary";E=_extends$u({},E,M[Z](H))}),n.offsets.popper=E,n}function shift(n){var i=n.placement,e=i.split("-")[0],t=i.split("-")[1];if(t){var o=n.offsets,d=o.reference,p=o.popper,h=["bottom","top"].indexOf(e)!==-1,y=h?"left":"top",$=h?"width":"height",E={start:defineProperty({},y,d[y]),end:defineProperty({},y,d[y]+d[$]-p[$])};n.offsets.popper=_extends$u({},p,E[t])}return n}function hide(n){if(!isModifierRequired(n.instance.modifiers,"hide","preventOverflow"))return n;var i=n.offsets.reference,e=find$1(n.instance.modifiers,function(t){return t.name==="preventOverflow"}).boundaries;if(i.bottom<e.top||i.left>e.right||i.top>e.bottom||i.right<e.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,e=i.split("-")[0],t=n.offsets,o=t.popper,d=t.reference,p=["left","right"].indexOf(e)!==-1,h=["top","left"].indexOf(e)===-1;return o[p?"left":"top"]=d[e]-(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,e){var t=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};classCallCheck(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(t.update)},this.update=debounce$1(this.update.bind(this)),this.options=_extends$u({},n.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i&&i.jquery?i[0]:i,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(_extends$u({}
50,n.Defaults.modifiers,o.modifiers)).forEach(function(p){t.options.modifiers[p]=_extends$u({},n.Defaults.modifiers[p]||{},o.modifiers?o.modifiers[p]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(p){return _extends$u({name:p},t.options.modifiers[p])}).sort(function(p,h){return p.order-h.order}),this.modifiers.forEach(function(p){p.enabled&&isFunction(p.onLoad)&&p.onLoad(t.reference,t.popper,t.options,p,t.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$f(n){"@babel/helpers - typeof";return _typeof$f=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$f(n)}var _excluded$p=["modifiers"];function ownKeys$p(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$o(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$p(Object(e),!0).forEach(function(t){_defineProperty$t(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$p(Object(e)).forEac
50h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _objectWithoutProperties$q(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$q(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$q(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _classCallCheck$e(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$e(n,i,e){return i&&_defineProperties$e(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$e(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$e(n,i)}function _setPrototypeOf$e(n,i){return _setPrototypeOf$e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$e(n,i)}function _createSuper$e(n){var i=_isNativeReflectConstruct$e();return function(){var t=_getPrototypeOf$e(n),o;if(i){var d=_getPrototypeOf$e(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$e(this,o)}}function _possibleConstructorReturn$e(n,i){if(i&&(_typeof$f(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$e(n)}function _assertThisInitialized$e(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$e(){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$e(n){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$e(n)}function _defineProperty$t(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Tether=(function(n){_inherits$e(e,n);var i=_createSuper$e(e);function e(){var t;_classCallCheck$e(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$t(_assertThisInitialized$e(t),"popper",void 0),_defineProperty$t(_assertThisInitialized$e(t),"popperHeight",0),_defineProperty$t(_assertThisInitialized$e(t),"popperWidth",0),_defineProperty$t(_assertThisInitialized$e(t),"anchorHeight",0),_defineProperty$t(_assertThisInitialized$e(t),"anchorWidth",0),_defineProperty$t(_assertThisInitialized$e(t),"state",{isMounted:!1}),_defineProperty$t(_assertThisInitialized$e(t),"onPopperUpdate",function(h){var y={popper:parsePopperOffset(h.offsets.popper),arrow:h.offsets.arrow?parsePopperOffset(h.offsets.arrow):{top:0,left:0}};t.props.onPopperUpdate(y,h)}),t}return _createClass$e(e,[{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 $=this.props.popperRef.getBoundingClientRect(),E=$.height,M=$.width;(this.popperHeight!==E||this.popperWidth!==M)&&(this.popperHeight=E,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$q(p,_excluded$p);!this.props.anchorRef||!this.props.popperRef||(this.popper=new Popper(this.props.anchorRef,this.props.popperRef,_objectSpread$o({placement:toPopperPlacement(d),modifiers:_objectSpread$o({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}}]),e})(reactExports.Component);_defineProperty$t(Tether,"defaultProps",{anchorRef:null,onPopperUpdate:function n(){return null},placement:TETHER_PLACEMENT.auto,popperRef:null,popperOptions:{}});var BaseProvider=function n(i){var e=i.children,t=i.overrides,o=i.theme,d=i.zIndex;return reactExports.createElement(LayersManager,{zIndex:d,overrides:t},reactExports.createElement(UIDReset,{prefix:"bui"},reactExports.createElement(ThemeProvider$1,{theme:o},e)))};const createBaseUiThemePrimitives=(n,i)=>{const{colors:e,genericFonts:t}=i;return{...n,primaryFontFamily:t.bodyFont,primary100:e.primary,primary200:e.primary,primary300:e.primary,primary400:e.primary,primary500:e.primary,primary600:e.primary,primary700:e.primary,mono100:e.bgColor,mono200:e.secondaryBg,mono300:e.gray30,mono400:e.gray30,mono500:e.gray60,mono600:e.fadedText40,mono700:e.gray60,mono800:e.bodyText,mono900:e.bodyText,mono1000:e.black}},createBaseUiThemeOverrides=n=>{const{inSidebar:i,colors:e,genericFonts:t,fontSizes:o,lineHeights:d,radii:p}=n,h={fontFamily:t.bodyFont,fontSize:o.md,fontSizeSm:o.sm,fontWeight:"normal",lineHeight:d.base,lineHeightTight:d.tight},y=e.secondaryBg,$=i?e.secondaryBg:e.bgColor,E=i?e.bgColor:e.secondaryBg;
50return{borders:{radius100:p.default,radius200:p.default,radius300:p.default,radius400:p.default,radius500:p.default,useRoundedCorners:!0,buttonBorderRadiusMini:p.md,buttonBorderRadius:p.default,checkboxBorderRadius:`min(${p.md}, ${p.maxCheckbox})`,inputBorderRadiusMini:p.md,inputBorderRadius:p.default,popoverBorderRadius:p.default,surfaceBorderRadius:p.default,tagBorderRadius:p.md},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:e.white,black:e.black,primary:e.primary,primaryA:e.primary,backgroundPrimary:e.bgColor,backgroundSecondary:y,backgroundTertiary:e.bgColor,borderOpaque:e.darkenedBgMix25,accent:transparentize(e.primary,.5),tagPrimarySolidBackground:e.primary,tagPrimaryFontDisabled:e.fadedText40,tagPrimaryOutlinedDisabled:e.transparent,borderSelected:e.primary,contentPrimary:e.bodyText,inputPlaceholder:e.fadedText60,tickFillDisabled:e.fadedText40,tickMarkFill:e.gray20,tickFillSelected:e.primary,datepickerBackground:$,calendarBackgroun
50d:$,calendarForeground:e.bodyText,calendarDayForegroundPseudoSelected:e.bodyText,calendarHeaderBackground:E,calendarHeaderBackgroundActive:E,calendarHeaderForeground:e.bodyText,calendarHeaderForegroundDisabled:e.gray40,calendarDayBackgroundSelected:e.primary,calendarDayBackgroundSelectedHighlighted:e.primary,calendarDayForegroundSelected:e.white,calendarDayForegroundSelectedHighlighted:e.white,calendarDayForegroundPseudoSelectedHighlighted:e.bodyText,menuFontHighlighted:e.bodyText,menuFontSelected:e.bodyText,modalCloseColor:e.bodyText,notificationInfoBackground:e.blueBackgroundColor,notificationInfoText:e.blueTextColor,notificationPositiveBackground:e.greenBackgroundColor,notificationPositiveText:e.greenTextColor,notificationWarningBackground:e.yellowBackgroundColor,notificationWarningText:e.yellowTextColor,notificationNegativeBackground:e.redBackgroundColor,notificationNegativeText:e.redTextColor,progressbarTrackFill:y,tickFill:e.lightenedBg05,tickMarkFillDisabled:e.lightenedBg05,menuFill:$,buttonDisabledFill:e.lightenedBg05,tickFillHover:y,inputFillDisabled:y,inputFillActive:y,toggleTrackFillDisabled:y,tickFillActive:y,sliderTrackFillDisabled:y,inputBorder:e.widgetBorderColor||y,inputFill:y,inputEnhanceFill:y,inputEnhancerFillDisabled:y,buttonDisabledSpinnerBackground:e.gray40,toggleTrackFill:e.gray40,sliderTrackFill:e.gray40,sliderHandleInnerFill:e.gray40,sliderHandleInnerFillDisabled:e.gray40}}},createBaseUiTheme=(n,i=primitives)=>createLightTheme(createBaseUiThemePrimitives(i,n),createBaseUiThemeOverrides(n)),computeDerivedColors=n=>{const{bodyText:i,secondaryBg:e,bgColor:t}=n,o=getLuminance(t)>.5,d=transparentize(i,.9),p=transparentize(i,.8),h=transparentize(i,.7),y=transparentize(i,.6),$=transparentize(i,.4),E=mix$1(t,e,.5),M=o?darken(E,.3):lighten(E,.6),H=transparentize(M,.75),Z=transparentize(M,.85),be=lighten(t,.025);
50return{fadedText05:d,fadedText10:p,fadedText20:h,fadedText40:y,fadedText60:$,bgMix:E,darkenedBgMix100:M,darkenedBgMix25:H,darkenedBgMix15:Z,lightenedBg05:be}};function _isLightBackground(n){return getLuminance(n)>.5}function hasLightBackgroundColor(n){return _isLightBackground(n.colors.bgColor)}const createEmotionColors=n=>{const i=computeDerivedColors(n),e=defaultCategoricalColorsArray(n),t=defaultSequentialColorsArray(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:e,chartSequentialColors:t}};function getDividerColors(n){const{redColor:i,orangeColor:e,yellowColor:t,blueColor:o,greenColor:d,violetColor:p,grayColor:h}=n.colors;return{red:i,orange:e,yellow:t,blue:o,green:d,violet:p,gray:h,grey:h,rainbow:`linear-gradient(to right, ${i}, ${e}, ${t}, ${d}, ${o}, ${p})`}}function getMarkdownBgColors(n){const i=hasLightBackgroun
50dColor(n),e=n.colors;return{redbg:e.redBackgroundColor,orangebg:e.orangeBackgroundColor,yellowbg:e.yellowBackgroundColor,bluebg:e.blueBackgroundColor,greenbg:e.greenBackgroundColor,violetbg:e.violetBackgroundColor,purplebg:transparentize(e[i?"purple90":"purple80"],i?.9:.7),graybg:e.grayBackgroundColor,primarybg:transparentize(e.primary,i?.9:.7)}}function getMarkdownTextColors(n){const i=hasLightBackgroundColor(n),e=n.colors,t=e.primary,o=e.redTextColor,d=e.orangeTextColor,p=e.yellowTextColor,h=e.blueTextColor,y=e.greenTextColor,$=e.violetTextColor,E=i?e.purple100:e.purple80,M=e.grayTextColor;return{red:o,orange:d,yellow:p,green:y,blue:h,violet:$,purple:E,gray:M,primary:t}}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 hasLightBackgroundColor(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 getDivergingColorsArray(n){const{colors:i}=n;return[i.red100,i.red90,i.red70,i.red50,i.red30,i.blue30,i.blue50,i.blue70,i.blue90,i.blue100]}function defaultSequentialColorsArray(n){return _isLightBackgroun
50d(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 breakpoints={hideWidgetDetails:"11.25rem",hideNumberInputControls:"7.5rem",sm:"576px",columns:"640px",md:"768px"},colors={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:"#803df5",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={md:"0.25rem",default:"0.5rem",xl:"0.75rem",xxl:"1rem",button:"0.5rem",chatInput:"1.25rem",full:"9999px",maxCheckbox:"0.35rem"},sizes={full:"100%",headerHeight:"3.75rem",fullScreenHeaderHeight:"2.875rem",sidebarTopSpace:"6rem",toastWidth:"21rem",contentMaxWidth:"736px",maxChartTooltipWidth:"30rem",checkbox:"1rem",borderWidth:"1px",smallElementHeight:"1.5rem",minElementHeight:"2.5rem",largestElementHeight:"4.25rem",smallLogoHeight:"1.25rem",defaultLogoHeight:"1.5rem",largeLogoHeight:"2rem",sliderThumb:"0.75rem",wideSidePadding:"5rem",headerDecorationHeight:"0.125rem",appRunningMen:"1.6rem",appStatusMaxWidth:"20rem",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},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"},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}
50,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.white,secondaryBg:colors.gray20,bodyText:colors.gray85,primary:colors.red70,secondary:colors.blue70,redColor:colors.red70,orangeColor:colors.orange70,yellowColor:colors.yellow80,blueColor:colors.blue70,greenColor:colors.green70,violetColor:colors.purple70,grayColor:colors.gray60,redBackgroundColor:transparentize(colors.red80,.9),orangeBackgroundColor:transparentize(colors.orange70,.9),yellowBackgroundColor:transparentize(colors.yellow65,.9),blueBackgroundColor:transparentize(colors.blue65,.9),greenBackgroundColor:transparentize(colors.green70,.9),violetBackgroundColor:transparentize(colors.purple60,.9),grayBackgroundColor:transparentize(colors.gray85,.9),redTextColor:colors.red90,orangeTextColor:colors.orange95,yellowTextColor:colors.yellow115,blueTextColor:colors.blue90,greenTextColor:colors.green90,violetTextColor:colors.purple90,grayTextColor:transparentize(colors.gray85,.4)},optionalThemeColors={},themeColors={...colors,...requiredThemeColors,...optionalThemeColors},emotionBaseTheme={inSidebar:!1,showSidebarBorder:!1,linkUnderline:!0,breakpoints,colors:createEmotionColors(themeColors),fonts,fontSizes,fontWeights,genericFonts,iconSizes,lineHeights,radii,sizes,spacing,zIndices},genericColors$1={...colors,bgColor:colors.gray100,bodyText:colors.gray10,primary:colors.red70,secondaryBg:colors.gray90,redColor:colors.red80,orangeColor:colors.orange80,yellowColor:colors.yellow70,blueColor:colors.blue80,greenColor:colors.green80,violetColor:colors.purple70,grayColor:colors.gray80,redBackgroundColor:transparentize(colors.red60,.8),orangeBackgroundColor:transparentize(colors.orange80,.8),yellowBackgroundColor:transparentize(colors.yellow65,.8),blueBackgroundColor:transparentize(colors.blue60,.8),greenBackgroundColor:transparentize(colors.green60,.8),violetBackgroundColor:transparentize(colors.purple60,.8),grayBackgroundColor:transparentize(colors.gray70,.8),redTextColor:colors.red60,orangeTextColor:colors.orange60,yellowTextColor:colors.yellow20,blueTextColor:colors.blue60,greenTextColor:colors.green50,violetTextColor:colors.purple50,grayTextColor:transparentize(colors.gray10,.4)},emotionDarkTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors$1})},genericColors={...colors},emotionLightTheme={...emotionBaseTheme,inSidebar:!1,colors:createEmotionColors({...emotionBaseTheme.colors,...genericColors})},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=1,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$h=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(e=>{i[e]=sortThemeInputKeys(n[e])}),i}return n}function mergeTheme(n,i){if(i&&isObject$1(i)){const e=new CustomThemeConfig(i);return createTheme(n.name,e,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(e=>e.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 e=n.trim();if(!e)return i;const t={"sans-serif":fonts.sansSerif,serif:fonts.serif,monospace:fonts.monospace},o=e.toLowerCase().replaceAll(" ","-");return o in t?t[o]:`${e}, ${i}`},parseColor=(n,i,e=!1)=>{if(isColor(n))return n;if(isColor(`#${n}`))return`#${n}`;if(i.toLowerCase().includes("color")){const o=e?"theme.sidebar":"theme";LOG$h.warn(`Invalid color passed for ${i} in ${o}: "${n}"`)}},resolveBgColor=(n,i,e,t)=>n||(i?transparentize(i,t?.9:.8):e),resolveTextColor=(n,i,e,t)=>n||(i?t?darken(i,.15):lighten(i,.15):e),setBackgroundColors=(n,i)=>{const e={...n},t={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(e.bgColor)>.5;return Object.entries(t).forEach(([d,{main:p,background:h}])=>{const y=d;e[y]=resolveBgColor(h,p,n[y],o)}),e},setTextColors=(n,i)=>{const e={...n},t={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(e.bgColor)>.5;return Object.entries(t).forEach(([d,{main:p,text:h}])=>{const y=d;e[y]=resolveTextColor(h,p,n[y],o)}),e},parseRadius=n=>{let i="rem",e;const t=n.trim().toLowerCase();return t==="none"?e=0:t==="small"?e=.35:t==="medium"?e=.5:t==="large"?e=1:t==="full"?e=1.4:t.endsWith("rem")?e=parseFloat(t):t.endsWith("px")?(e=parseFloat(t),i="px"):isNaN(parseFloat(t))||(e=parseFloat(t),i="px"),[e,i]},parseFontSize=(n,i,e)=>{const t=e?"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$h.warn(`Invalid size passed for ${n} in ${t}: ${i}. Falling back to default ${n}.`)},isValidFontWeight=(n,i,e,t,o)=>{const d=o?"theme.sidebar":"theme";if(notNullOrUndefined(i)){const p=Number.isInteger(i),h=i%100===0,y=i>=e&&i<=t;return!p||!h||!y?(LOG$h.warn(`Invalid ${n}: ${i} in ${d}. The ${n} must be an integer ${e}-${t}, and an increment of 100. Falling back to default font weight.`),!1):!0}return!1},convertHeadingFontSizeToRem=(n,i,e,t)=>{const o=parseFontSize(n,i,t);if(o?.endsWith("rem"))return o;if(o?.endsWith("px"))return`${parseFloat(o)/e}rem`},setHeadingFontSizes=(n,i,e,t)=>{const o={...n};return t&&t.forEach((d,p)=>{const h=`h${p+1}FontSize`,y=convertHeadingFontSizeToRem(`${h} in headingFontSizes`,d,e,i);y&&(o[h]=y)}),o},setFontWeights=(n,i,e,t,o)=>{const d={...n,h1FontWeight:i?600:n.h1FontWeight};return e&&isValidFontWeight("baseFontWeight",e,100,600)&&(d.normal=e,d.semiBold=e+100,d.bold=e+200,d.extrabold=e+300,d.code=e,d.codeBold=e+200,d.codeExtraBold=e+300),t&&isValidFontWeight("codeFontWeight",t,100,600)&&(d.code=t,d.co
50deBold=t+200,d.codeExtraBold=t+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(e=>parseColor(e,n)).filter(e=>e!==void 0),createEmotionTheme=(n,i=baseTheme)=>{const{colors:e,genericFonts:t,inSidebar:o}=i.emotion,{baseFontSize:d,baseFontWeight:p,baseRadius:h,buttonRadius:y,codeFontSize:$,codeFontWeight:E,showWidgetBorder:M,headingFont:H,headingFontSizes:Z,headingFontWeights:be,bodyFont:ye,codeFont:we,showSidebarBorder:xe,linkUnderline:Ce,chartCategoricalColors:Ne,chartSequentialColors:Fe,...Me}=n,Le=Object.entries(Me).reduce((gt,[$t,Mt])=>{const qt=parseColor(Mt,$t,o);return qt&&(gt[$t]=qt),gt},{}),{secondaryBackgroundColor:ze,backgroundColor:Ke,primaryColor:Ve,textColor:je,dataframeBorderColor:We,dataframeHeaderBackgroundColor:Xe,widgetBorderColor:Qe,borderColor:Ye,linkColor:Ue,codeTextColor:ot,codeBackgroundColor:dt,redColor:st,orangeColor:pt,yellowColor:Be,blueColor:qe,greenColor:rt,violetColor:He,grayColor:Ot}=Le,Ct={...e,primary:Ve??e.primary,bodyText:je??e.bodyText,secondaryBg:ze??e.secondaryBg,bgColor:Ke??e.bgColor,redColor:st??e.redColor,orangeColor:pt??e.orangeColor,yellowColor:Be??e.yellowColor,blueColor:qe??e.blueColor,greenColor:rt??e.greenColor,violetColor:He??e.violetColor,grayColor:Ot??e.grayColor,secondary:Ve??e.primary},tt={colors:{...createEmotionColors(Ct)},showSidebarBorder:xe??i.emotion.showSidebarBorder,linkUnderline:Ce??i.emotion.linkUnderline,radii:{...i.emotion.radii},fontSizes:{...i.emotion.fontSizes},fontWeights:{...i.emotion.fontWeights}};if(tt.colors.codeBackgroundColor=dt??e.codeBackgroundColor,tt.colors.dataframeHeaderBackgroundColor=Xe??e.dataframeHeaderBackgroundColor,notNullOrUndefined(Ye)){tt.colors.borderColor=Ye;const gt=transparentize(Ye,.55);tt.colors.borderColorLight=gt,tt.colors.dataframeBorderColor=gt}if(notNullOrUndefined(We)&&(tt.colors.dataframeBorderColor=We),(M||Qe)&&(tt.colors.widgetBorderColor=Qe||tt.colors.borderColor),tt.colors=setBackgroundColors(tt.colors,Le),tt.colors=setTextColors(tt.colors,Le),tt.colors.link=Ue??tt.colors.blueTextColor,tt.colors.codeTextColor=ot??tt.colors.greenTextColor,notNullOrUndefined(Ne)&&Ne.length>0){const gt=validateChartColors("chartCategoricalColors",Ne);gt.length>0&&(tt.colors.chartCategoricalColors=gt)}if(notNullOrUndefined(Fe)&&Fe.length>0){const gt=validateChartColors("chartSequentialColors",Fe);gt.length===10?tt.colors.chartSequentialColors=gt:LOG$h.warn(`Invalid chartSequentialColors: ${Fe.toString()}. Falling back to default chartSequentialColors.`)}if(notNullOrUndefined(h)){const[gt,$t]=parseRadius(h);if(notNullOrUndefined(gt)&&!isNaN(gt)){const Mt=addCssUnit(gt,$t);tt.radii.default=Mt,tt.radii.button=Mt,tt.radii.md=addCssUnit(roundToTwoDecimals(gt*.5),$t),tt.radii.xl=addCssUnit(roundToTwoDecimals(gt*1.5),$t),tt.radii.xxl=addCssUnit(roundToTwoDecimals(gt*2),$t)}else LOG$h.warn(`Invalid base radius: ${h}. Falling back to default base radius.`)}if(notNullOrUndefined(y)){const[gt,$t]=parseRadius(y);notNullOrUndefined(gt)&&!isNaN(gt)?tt.radii.button=addCssUnit(gt,$t):LOG$h.warn(`Invalid button radius: ${y}. Falling back to default button radius.`)}if(d&&d>0&&(tt.fontSizes.baseFontSize=d),$){const gt=parseFontSize("codeFontSize",$,o);gt&&(tt.fontSizes.codeFontSize=gt)}tt.fontSizes=setHeadingFontSizes(tt.fontSizes,o,tt.fontSizes.baseFontSize,Z),tt.fontWeights=setFontWeights(i.emotion.fontWeights,o,p,E,be);const wt={...t,bodyFont:ye?parseFont(ye,fonts.sansSerif):t.bodyFont,codeFont:we?parseFont(we,fonts.monospace):t.codeFont,headingFont:H?parseFont(H,fonts.sansSerif):t.headingFont};return ye&&!H&&(wt.headingFont=parseFont(ye,fonts.sansSerif)),{...i.emotion,genericFonts:wt,...tt}},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,e=toThemeInput(n);return{primaryColor:e.primaryColor,backgroundColor:e.backgroundColor,secondaryBackgroundColor:e.secondaryBackgroun
50dColor,textColor:e.textColor,bodyFont:e.bodyFont,base:bgColorToBaseString(e.backgroundColor),...computeDerivedColors(i)}},completeThemeInput=(n,i)=>new CustomThemeConfig({...toThemeInput(i.emotion),...n}),createTheme=(n,i,e,t=!1)=>{let o;e?o=completeThemeInput(i,e):i.base===CustomThemeConfig.BaseTheme.DARK?o=completeThemeInput(i,darkTheme):o=completeThemeInput(i,lightTheme);const d=o.backgroundColor,p=merge$1(cloneDeep(e||(getLuminance(d)>.5?lightTheme:darkTheme)),{emotion:{inSidebar:t}}),h=createEmotionTheme(o,p),y=cloneDeep(createBaseUiTheme(h,p.primitives));return{...p,name:n,emotion:h,basewebTheme:y,themeInput:i}},getCachedTheme=()=>{if(!localStorageAvailable())return null;const n=window.localStorage.getItem(LocalStore.ACTIVE_THEME);if(!n)return null;const{name:i,themeInput:e}=JSON.parse(n);switch(i){case lightTheme.name:return getMergedLightTheme();case darkTheme.name:return getMergedDarkTheme();case CUSTOM_THEME_LIGHT_NAME:return{...createTheme(i,e),displayName:"Light"};case CUSTOM_THEME_DARK_NAME:return{...createTheme(i,e),displayName:"Dark"};default:return createTheme(i,e)}},deleteOldCachedThemes=()=>{const{CACHED_THEME_VERSION:n,CACHED_THEME_BASE_KEY:i}=LocalStore,{localStorage:e}=window;e.removeItem("stActiveTheme"),e.removeItem(i);for(let t=1;t<=n;t++)e.removeItem(`${i}-v${t}`)},setCachedTheme=n=>{if(!localStorageAvailable()||(deleteOldCachedThemes(),isLightThemeInQueryParams()||isDarkThemeInQueryParams()))return;const i={name:n.name,...!isPresetTheme(n)&&{themeInput:toThemeInput(n.emotion)}};window.localStorage.setItem(LocalStore.ACTIVE_THEME,JSON.stringify(i))},removeCachedTheme=()=>{localStorageAvailable()&&window.localStorage.removeItem(LocalStore.ACTIVE_THEME)},getHostSpecifiedThemeOnly=()=>isLightThemeInQueryParams()?getMergedLightTheme():isDarkThemeInQueryParams()?getMergedDarkTheme():null,getHostSpecifiedTheme=()=>getHostSpecifiedThemeOnly()??createAutoTheme(),getDefaultTheme=()=>{const n=getCachedTheme();return n&&n.name!==AUTO_THEME_NAME?n:getHostSpecifiedTheme()},whiteSpace=/\s+/;function computeSpacingStyle(n,i){return n===""?"":n.split(whiteSpace).map(e=>e==="0"?i.spacing.none:e in i.spacing?i.spacing[e]:(LOG$h.error(`Invalid spacing value: ${e}`),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[e,t,o,d]=parseToRgba(n);if(d===1)return n;const[p,h,y,$]=parseToRgba(i),E=d+$*(1-d),M=Math.round((d*e+$*p*(1-d))/E),H=Math.round((d*t+$*h*(1-d))/E),Z=Math.round((d*o+$*y*(1-d))/E);return toHex(`rgba(${M}, ${H}, ${Z}, ${E})`)}const getFocusBoxShadow=(n,i=.5,e="0.2rem")=>`0 0 0 ${e} ${transparentize(n,i)}`,getPrimaryFocusBoxShadow=n=>getFocusBoxShadow(n.colors.primary),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 e=i==="light",t=e?CustomThemeConfig.BaseTheme.LIGHT:CustomThemeConfig.BaseTheme.DARK,{light:o,dark:d,sidebar:p,...h}=n,y=e?o:d,{sidebar:$,...E}=y||{},M=mergeWith({},h,E,{base:t},skipProtobufDefaults);return(p||$)&&(M.sidebar=mergeWith({},p,$,skipProtobufDefaults)),M},hasThemeSectionConfigs=n=>{if(!n)return!1;const i=e=>e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.values(e).some(i):!0;return Object.values(n).some(i)},createCustomThemes=n=>{const i=hasThemeSectionConfigs(n.light),e=hasThemeSectionConfigs(n.dark),t=[];if(i||e){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"},$={...getSystemThemePreference()==="dark"?h:d,displayName:AUTO_THEME_NAME,name:CUSTOM_THEME_AUTO_NAME};t.push(d,h,$)}else{const o=createTheme(CUSTOM_THEME_NAME,n);t.push(o)}return t},setSidebarHeadingFontSizes=n=>merge$1([],["1.5rem","1.25rem","1.125rem","1rem","0.875rem","0.75rem"],n||[]),createSidebarTheme=n=>{const i=n.themeInput?.sidebar,{bgColor:e,secondaryBg:t}=n.emotion.colors,o=i?.backgroundColor||t,d=i?.secondaryBackgroun
50dColor||e,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)},THEME_MAPPING={[lightTheme.name]:CUSTOM_THEME_LIGHT_NAME,[darkTheme.name]:CUSTOM_THEME_DARK_NAME,[CUSTOM_THEME_LIGHT_NAME]:lightTheme.name,[CUSTOM_THEME_DARK_NAME]:darkTheme.name},mapCachedThemeToAvailableTheme=(n,i)=>{if(!n)return null;const e=i.find(o=>o.name===n.name);if(e)return e;const t=THEME_MAPPING[n.name];return t?i.find(o=>o.name===t)??null:null},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 e=n.widthConfig?.useStretch||i?.widthConfig?.useStretch,t=n?.widthConfig?.useContent||i?.widthConfig?.useContent,o=n?.widthConfig?.pixelWidth||i?.widthConfig?.pixelWidth||n.widthConfig?.pixelWidth===0,d=n.widthConfig?.remWidth;return e?{type:"stretch"}:t?{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 e=!!n.heightConfig?.useStretch,t=!!n.heightConfig?.useContent,o=!!n.heightConfig?.pixelHeight||n.heightConfig?.pixelHeight===0,d=n.heightConfig?.remHeight;return e?{type:"stretch"}:t?{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,e,t)=>{if(e===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 ${t??"fit-content"}`;case"auto":return;default:assertNever(n)}else if(e===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,e=32)=>{if(i===void 0||n===void 0||n==="fit-content")return n;const t=convertRemToPx(n);return i<t&&i>e?`${i-e}px`:n},useLayoutStyles=({element:n,subElement:i,styleOverrides:e,minStretchBehavior:t})=>{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 $=getDirection(o);o?.isInContentWidthContainer&&p.type==="stretch"&&t!==void 0&&(y=calculateMinWidthWithParentConstraint(t,o?.parentWidth));const E=getHeight(n,i);let M,H="visible";switch(E.type){case"stretch":M="100%";break;case"content":M="auto";break;case"rem":M=`${E.rem}rem`;break;case"pixel":M=`${E.pixels}px`,H="auto";break;case"auto":M="auto";break;default:assertNever(E)}const Z=getFlex(p,E,$,t),be=getTextAlignmentStyle("textAlignmentConfig"in n?n.textAlignmentConfig:void 0);return{...{width:h,height:M,overflow:H,flex:Z,minWidth:y,textAlign:be},...e}},[n,i,e,o,t])};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|playsInl
50ine|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.charCodeAt(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,e,t){var o;if(e){var d=e.shouldForwardProp;o=i.__emotion_forwardProp&&d?function(p){return i.__emotion_forwardProp(p)&&d(p)}:d}return typeof o!="function"&&t&&(o=i.__emotion_forwardProp),o},Insertion=function n(i){var e=i.cache,t=i.serialized,o=i.isStringTag;return registerStyles(e,t,o),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(e,t,o)}),null},createStyled=function n(i,e){var t=i.__emotion_real===i,o=t&&i.__emotion_base||i,d,p;e!==void 0&&(d=e.label,p=e.target);var h=composeShouldForwardProps(i,e,t),y=h||getDefaultShouldForwardProp(o),$=!y("as");return function(){var E=arguments,M=t&&i.__emotion_styles!==void 0?i.__emotion_styles.slice(0):[];if(d!==void 0&&M.push("label:"+d+";"),E[0]==null||E[0].raw===void 0)M.push.apply(M,E);else{var H=E[0];M.push(H[0]);for(var Z=E.length,be=1;be<Z;be++)M.push(E[be],H[be])}var ye=withEmotionCache(function(we,xe,Ce){var Ne=$&&we.as||o,Fe="",Me=[],Le=we;if(we.theme==null){Le={};
50for(var ze in we)Le[ze]=we[ze];Le.theme=reactExports.useContext(ThemeContext$2)}typeof we.className=="string"?Fe=getRegisteredStyles(xe.registered,Me,we.className):we.className!=null&&(Fe=we.className+" ");var Ke=serializeStyles(M.concat(Me),xe.registered,Le);Fe+=xe.key+"-"+Ke.name,p!==void 0&&(Fe+=" "+p);var Ve=$&&h===void 0?getDefaultShouldForwardProp(Ne):y,je={};for(var We in we)$&&We==="as"||Ve(We)&&(je[We]=we[We]);return je.className=Fe,Ce&&(je.ref=Ce),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:xe,serialized:Ke,isStringTag:typeof Ne=="string"}),reactExports.createElement(Ne,je))});return ye.displayName=d!==void 0?d:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",ye.defaultProps=i.defaultProps,ye.__emotion_real=ye,ye.__emotion_base=o,ye.__emotion_styles=M,ye.__emotion_forwardProp=h,Object.defineProperty(ye,"toString",{value:function(){return"."+p}}),ye.withComponent=function(we,xe){var Ce=n(we,_extends$A({},e,xe,{shouldForwardProp:composeShouldForwardProps(ye,xe,!0)}));return Ce.apply(void 0,M)},ye}},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$3={medium:"medium"},spin={from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},StyledSpinner=styled$1("i",function(n){var i=n.$theme,e=n.$color,t=e===void 0?i.colors.contentAccent:e,o=n.$borderWidth,d=n.$size,p=d===void 0?SIZE$3.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:t,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"}});StyledSpinner.displayName="StyledSpinner";StyledSpinner.displayName="StyledSpinner";const StyledSpinnerIcon=styled(StyledSpinner,{shouldForwardProp:n=>isPropValid(n)&&!["size"].includes(n),target:"emntfgb0"})(({size:n="lg",margin:i="",padding:e="",theme:t})=>{const o=`calc(${t.iconSizes[n]} * 0.80)`;return{width:o,height:o,fontSize:o,justifyContent:"center",margin:computeSpacingStyle(i,t),padding:computeSpacingStyle(e,t),borderColor:t.colors.fadedText10,borderTopColor:t.colors.bodyText,borderWidth:t.sizes.spinnerThickness,flexGrow:0,flexShrink:0}}),StyledIcon=styled("span",{shouldForwardProp:n=>isPropValid(n)&&!["size","as"].includes(n),target:"emntfgb1"})(({color:n,size:i,margin:e,padding:t,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(e,o),padding:computeSpacingStyle(t,o),flexShrink:0})),StyledDynamicIcon=styled("span",{target:"emntfgb2"})(({size:n="lg",margin:i="",padding:e="",theme:t})=>
50({fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t.iconSizes[n],width:t.iconSizes[n],height:t.iconSizes[n],margin:computeSpacingStyle(i,t),padding:computeSpacingStyle(e,t),flexShrink:0})),StyledImageIcon=styled("img",{target:"emntfgb3"})({width:"100%",height:"100%"}),StyledEmojiIcon=styled("span",{target:"emntfgb4"})(({size:n,margin:i,padding:e,theme:t,color:o})=>{const d=`calc(${t.iconSizes[n]} * 0.90)`;return{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:d,width:d,height:d,margin:computeSpacingStyle(i,t),padding:computeSpacingStyle(e,t),color:o}}),getDefaultProps$1=({size:n,margin:i,padding:e,color:t})=>({size:n||"md",margin:i||"",padding:e||"",color:t||void 0}),Icon$2=({content:n,color:i,size:e,margin:t,padding:o,testid:d})=>jsx$1(StyledIcon,{as:n,"aria-hidden":"true","data-testid":d,...getDefaultProps$1({size:e,margin:t,padding:o,color:i})}),EmojiIcon=({size:n,margin:i,padding:e,children:t,color:o,testid:d})=>(typeof t=="string"&&(t=t.replace(/^emoji:/,"")),jsx$1(StyledEmojiIcon,{"data-testid":d||"stIconEmoji","aria-hidden":"true",...getDefaultProps$1({size:n,margin:i,padding:e,color:o}),children:t})),StyledMaterialIcon=styled("span",{target:"exvv1vr0"})(({size:n,margin:i,padding:e,theme:t,color:o})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",color:o,fontSize:t.iconSizes[n],width:t.iconSizes[n],height:t.iconSizes[n],margin:computeSpacingStyle(i,t),padding:computeSpacingStyle(e,t),userSelect:"none",fontFamily:t.genericFonts.iconFont,fontWeight:t.fontWeights.normal,fontStyle:"normal",lineHeight:t.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:e,color:t})=>({size:n||"md",margin:i||"",padding:e||"",color:t||"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 e=i[1],t=i[2];return{pack:e,icon:t}}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:e,icon:t}=parseIconPackEntry(n);switch(e){case"material":switch(t){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:e,iconName:t,...i})})}case"emoji":default:return jsx$1(StyledDynamicIcon,{...i,children:jsx$1(EmojiIcon,{...i,children:t})})}},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});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,e,t,o,d){this.type=n,this.name=i,this.prefix=e,this.value=t,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 e=[],t=0;for(;t<n.length;){let o=n[t],d=a$1(function(p){if(!i)throw new TypeError(p);e.push({type:"INVALID_CHAR",index:t,value:n[t++]})},"ErrorOrInvalid");if(o==="*"){e.push({type:"ASTERISK",index:t,value:n[t++]});continue}if(o==="+"||o==="?"){e.push({type:"OTHER_MODIFIER",index:t,value:n[t++]});continue}if(o==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(o==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(o==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(o===":"){let p="",h=t+1;for(;h<n.length;){let y=n.substr(h,1);if(h===t+1&&Re.test(y)||h!==t+1&&Ee.test(y)){p+=n[h++];continue}break}if(!p){d(`Missing parameter name at ${t}`);continue}e.push({type:"NAME",index:t,value:p}),t=h;continue}if(o==="("){let p=1,h="",y=t+1,$=!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}.`),$=!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}`),$=!0;break}h+=n[y++]}if($)continue;if(p){d(`Unbalanced pattern at ${t}`);continue}if(!h){d(`Missing pattern at ${t}`);continue}e.push({type:"REGEX",index:t,value:h}),t=y;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}a$1(D,"lexer");function F(n,i={}){let e=D(n);i.delimiter??="/#?",i.prefixes??="./";let t=`[^${x(i.delimiter)}]+?`,o=[],d=0,p=0,h=new Set,y=a$1(Ce=>{if(p<e.length&&e[p].type===Ce)return e[p++].value},"tryConsume"),$=a$1(()=>y("OTHER_MODIFIER")??y("ASTERISK"),"tryConsumeModifier"),E=a$1(Ce=>{let Ne=y(Ce);if(Ne!==void 0)return Ne;let{type:Fe,index:Me}=e[p];throw new TypeError(`Unexpected ${Fe} at ${Me}, expected ${Ce}`)},"mustConsume"),M=a$1(()=>{let Ce="",Ne;for(;Ne=y("CHAR")??y("ESCAPED_CHAR");)Ce+=Ne;return Ce},"consumeText"),H=a$1(Ce=>Ce,"DefaultEncodePart"),Z=i.encodePart||H,be="",ye=a$1(Ce=>{be+=Ce},"appendToPendingFixedValue"),we=a$1(()=>{be.length&&(o.push(new P(3,"","",Z(be),"",3)),be="")},"maybeAddPartFromPendingFixedValue"),xe=a$1((Ce,Ne,Fe,Me,Le)=>{let ze=3;switch(Le){case"?":ze=1;break;case"*":ze=0;break;case"+":ze=2;break}if(!Ne&&!Fe&&ze===3){ye(Ce);return}if(we(),!Ne&&!Fe){if(!Ce)return;o.push(new P(3,"","",Z(Ce),"",ze));return}let Ke;Fe?Fe==="*"?Ke=v:Ke=Fe:Ke=t;let Ve=2;Ke===t?(Ve=1,Ke=""):Ke===v&&(Ve=0,Ke="");let je;if(Ne?je=Ne:Fe&&(je=d++),h.has(je))throw new TypeError(`Duplicate name '${je}'.`);h.add(je),o.push(new P(Ve,je,Z(Ce),Ke,Z(Me),ze))},"addPart");for(;p<e.length;){let Ce=y("CHAR"),Ne=y("NAME"),Fe=y("REGEX");if(!Ne&&!Fe&&(Fe=y("ASTERISK")),Ne||Fe){let Le=Ce??"";i.prefixes.indexOf(Le)===-1&&(ye(Le),Le=""),we();let ze=$();xe(Le,Ne,Fe,"",ze);continue}let Me=Ce??y("ESCAPED_CHAR");
vendor: 13,574 bytes, line 50
50if(Me){ye(Me);continue}if(y("OPEN")){let Le=M(),ze=y("NAME"),Ke=y("REGEX");!ze&&!Ke&&(Ke=y("ASTERISK"));let Ve=M();E("CLOSE");let je=$();xe(Le,ze,Ke,Ve,je);continue}we(),E("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,e){return W(F(n,e),i,e)}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,e={}){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let t=e.start?"^":"";for(let h of n){if(h.type===3){h.modifier===3?t+=x(h.value):t+=`(?:${x(h.value)})${T(h.modifier)}`;continue}i&&i.push(h.name);let y=`[^${x(e.delimiter)}]+?`,$=h.value;if(h.type===1?$=y:h.type===0&&($=v),!h.prefix.length&&!h.suffix.length){h.modifier===3||h.modifier===1?t+=`(${$})${T(h.modifier)}`:t+=`((?:${$})${T(h.modifier)})`;continue}if(h.modifier===3||h.modifier===1){t+=`(?:${x(h.prefix)}(${$})${x(h.suffix)})`,t+=T(h.modifier);continue}t+=`(?:${x(h.prefix)}`,t+=`((?:${$})(?:`,t+=x(h.suffix),t+=x(h.prefix),t+=`(?:${$}))*)${x(h.suffix)})`,h.modifier===0&&(t+="?")}let o=`[${x(e.endsWith)}]|$`,d=`[${x(e.delimiter)}]`;if(e.end)return e.strict||(t+=`${d}?`),e.endsWith.length?t+=`(?=${o})`:t+="$",new RegExp(t,B(e));e.strict||(t+=`(?:${d}(?=${o}))?`);let p=!1;if(n.length){let h=n[n.length-1];h.type===3&&h.modifier===3&&(p=e.delimiter.indexOf(h)>-1)}return p||(t+=`(?=${d}|${o})`),new RegExp(t,B(e))}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 e=new URL("https://example.com");return e.hash=n,e.hash?e.hash.substring(1,e.hash.length):""}a$1(ne,"canonicalizeHash");function se(n,i){if(n=te(n,"?"),i||n==="")return n;let e=new URL("https://example.com");return e.search=n,e.search?e.search.substring(1,e.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 e=new URL("https://example.com");return e.password=n,e.password}a$1(ae,"canonicalizePassword");function oe(n,i){if(i||n==="")return n;let e=new URL("https://example.com");return e.username=n,e.username}a$1(oe,"canonicalizeUsername");function ce(n,i,e){if(e||n==="")return n;if(i&&!re$1.includes(i))return new URL(`${i}:${n}`).pathname;let t=n[0]=="/";return n=new URL(t?n:"/-"+n,"https://example.com").pathname,t||(n=n.substring(2,n.length)),n}a$1(ce,"canonicalizePathname");function le(n,i,e){return z(i)===n&&(n=""),e||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.#x())this.#p-=1;else continue;if(this.#T()){this.#p+=1;continue}switch(this.#l){case 0:this.#S()&&this.#f(1);break;case 1:if(this.#S()){this.#E();let n=7,i=1;this.#w()?(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.#_()?this.#n(4,1):this.#m()&&this.#n(5,1);break;case 4:this.#m()&&this.#n(5,1);break;case 5:this.#C()?this.#h+=1:this.#k()&&(this.#h-=1),this.#$()&&!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.#O(n,i)}#O(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 e=this.#g(n);return e.value===i&&(e.type==="CHAR"||e.type==="ESCAPED_CHAR"||e.type==="INVALID_CHAR")}#S(){return this.#a(this.#e,":")}#w(){return this.#a(this.#e+1,"/")&&this.#a(this.#e+2,"/")}#m(){return this.#a(this.#e,"@")}#_(){return this.#a(this.#e,":")}#$(){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,"#")}#T(){return this.#r[this.#e].type=="OPEN"}#x(){return this.#r[this.#e].type=="CLOSE"}#C(){return this.#a(this.#e,"[")}#k(){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)}#E(){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 e=new URL(n,i);return{protocol:e.protocol.substring(0,e.protocol.length-1),username:e.username,password:e.password,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search!==""?e.search.substring(1,e.search.length):void 0,hash:e.hash!==""?e.hash.substring(1,e.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,e){let t;if(typeof i.baseURL=="string")try{t=new URL(i.baseURL),i.protocol===void 0&&(n.protocol=R$1(t.protocol.substring(0,t.protocol.length-1),e)),!e&&i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.username===void 0&&(n.username=R$1(t.username,e)),!e&&i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.username===void 0&&i.password===void 0&&(n.password=R$1(t.password,e)),i.protocol===void 0&&i.hostname===void 0&&(n.hostname=R$1(t.hostname,e)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&(n.port=R$1(t.port,e)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.pathname===void 0&&(n.pathname=R$1(t.pathname,e)),i.protocol===void 0&&i.hostname===void 0&&i.port===void 0&&i.pathname===void 0&&i.search===void 0&&(n.search=R$1(t.search.substring(1,t.search.length),e)),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(t.hash.substring(1,t.hash.length),e))}catch{throw new TypeError(`invalid baseURL '${i.baseURL}'.`)}if(typeof i.protocol=="string"&&(n.protocol=fe(i.protocol,e)),typeof i.username=="string"&&(n.username=oe(i.username,e)),typeof i.password=="string"&&(n.password=ae(i.password,e)),typeof i.hostname=="string"&&(n.hostname=ie(i.hostname,e)),typeof i.port=="string"&&(n.port=le(i.port,n.protocol,e)),typeof i.pathname=="string"){if(n.pathname=i.pathname,t&&!ee(n.pathname,e)){let o=t.pathname.lastIndexOf("/");o>=0&&(n.pathname=R$1(t.pathname.substring(0,o+1),e)+n.pathname)}n.pathname=ce(n.pathname,n.protocol,e)}return typeof i.search=="string"&&(n.search=se(i.search,e)),typeof i.hash=="string"&&(n.hash=ne(i.hash,e)),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 e=".*",t=`[^${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(),$=!!h.suffix.length||!!h.prefix.length&&(h.prefix.length!==1||!i.prefixes.includes(h.prefix)),E=p>0?n[p-1]:null,M=p<n.length-1?n[p+1]:null;if(!$&&y&&h.type===1&&h.modifier===3&&M&&!M.prefix.length&&!M.suffix.length)if(M.type===3){let H=M.value.length>0?M.value[0]:"";$=o.test(H)}else $=!M.hasCustomName();if(!$&&!h.prefix.length&&E&&E.type===3){let H=E.value[E.value.length-1];$=i.prefixes.includes(H)}$&&(d+="{"),d+=I(h.prefix),y&&(d+=`:${h.name}`),h.type===2?d+=`(${h.value})`:h.type===1?y||(d+=`(${t})`):h.type===0&&(!y&&(!E||E.type===3||E.modifier!==3||$||h.prefix!=="")?d+="*":d+=`(${e})`),h.type===1&&y&&h.suffix.length&&o.test(h.suffix[0])&&(d+="\\"),d+=I(h.suffix),$&&(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,e){try{let t;if(typeof i=="string"?t=i:e=i,typeof n=="string"){let h=new C(n);if(h.parse(),n=h.result,t===void 0&&typeof n.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");n.baseURL=t}else{if(!n||typeof n!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(t)throw new TypeError("parameter 1 is not of type 'string'.")}typeof e>"u"&&(e={ignoreCase:!1});let o={ignoreCase:e.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($=>$.type===2)}catch{throw new TypeError(`invalid ${p} pattern '${this.#o[p]}'.`)}}}catch(t){throw new TypeError(`Failed to construct 'URLPattern': ${t.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(n={},i){let e={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"?e=L$1(e,n,!1):e=L$1(e,Se(n,i),!1)}catch{return!1}let t;for(t of V)if(!this.#r[t].exec(e[t]))return!1;return!0}exec(n={},i){let e={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"?e=L$1(e,n,!1):e=L$1(e,Se(n,i),!1)}catch{return null}let t={};i?t.inputs=[n,i]:t.inputs=[n];let o;for(o of V){let d=this.#r[o].exec(e[o]);if(!d)return null;let p={};for(let[h,y]of this.#t[o].entries())if(typeof y=="string"||typeof y=="number"){let $=d[h+1];p[y]=$}t[o]={input:e[o]??"",groups:p}}return t}static compareComponent(n,i,e){let t=a$1((h,y)=>{for(let $ of["type","modifier","prefix","value","suffix"]){if(h[$]<y[$])return-1;if(h[$]!==y[$])return 1}return 0},"comparePart"),o=new P(3,"","","","",3),d=new P(0,"","","","",3),p=a$1((h,y)=>{let $=0;for(;$<Math.min(h.length,y.length);++$){let E=t(h[$],y[$]);if(E)return E}return h.length===y.length?0:t(h[$]??o,y[$]??o)},"comparePartList");return!i.#e[n]&&!e.#e[n]?0:i.#e[n]&&!e.#e[n]?p(i.#i[n],[d]):!i.#e[n]&&e.#e[n]?p([d],e.#i[n]):p(i.#i[n],e.#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 e,t,o;try{e=new URLPattern(n),t=new URLPattern({protocol:e.protocol,hostname:e.hostname}),o=new URL(i)}catch{return!1}return o.hostname==="localhost"&&t.test(o)?!0:e.test(o)}function getCrossOriginAttribute(n,i){if(i)try{const e=new URL(i);return StreamlitConfig.BACKEND_BASE_URL&&e.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 e=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(e?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 e=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:e?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:e,name:t,endpoints:o}=n,d=useEmotionTheme(),p=useCrossOriginAttribute(i);if(i)switch(e){case void 0:break;case Block$1.ChatMessage.AvatarType.IMAGE:return jsx$1(StyledAvatarImage,{src:o.buildMediaURL(i),alt:`${t} 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:t?t.charAt(0).toUpperCase():"ð§âð»"})}const ChatMessage=({endpoints:n,element:i,children:e})=>{const{avatar:t,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:t,avatarType:o,endpoints:n}),jsx$1(StyledMessageContent,{"data-testid":"stChatMessageContent","aria-label":`Chat message from ${d}`,children:e})]})},ChatMessage$1=reactExports.memo(ChatMessage),IsDialogContext=reactExports.createContext(!1);IsDialogContext.displayName="IsDialogContext";function _objectWithoutPropertiesLoose$p(n,i){if(n==null)return{};var e={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(i.indexOf(t)!==-1)continue;e[t]=n[t]}return e}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 e(){}return e.resetWarningCache=i,factoryWithThrowingShims=function(){function t(p,h,y,$,E,M){if(M!==n){var H=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 H.name="Invariant Violation",H}}t.isRequired=t;function o(){return t}var d={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:o,element:t,elementType:t,instanceOf:o,node:t,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:e,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 e=reactExports.useState(function(){return{value:n,callback:i,facade:{get current(){return e.value},set current(t){var o=e.value;o!==t&&(e.value=t,e.callback(t,o))}}}})[0];return e.callback=i,e.facade}var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(n,i){var e=useCallbackRef(null,function(t){return n.forEach(function(o){return assignRef(o,t)})});return useIsomorphicLayoutEffect(function(){var t=currentValues.get(e);if(t){var o=new Set(t),d=new Set(n),p=e.current;o.forEach(function(h){d.has(h)||assignRef(h,null)}),d.forEach(function(h){o.has(h)||assignRef(h,p)})}currentValues.set(e,n)},[n]),e}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 e=[],t=!1,o={read:function(){if(t)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return e.length?e[e.length-1]:n},useMedium:function(d){var p=i(d,t);return e.push(p),function(){e=e.filter(function(h){return h!==p})}},assignSyncMedium:function(d){for(t=!0;e.length;){var p=e;e=[],p.forEach(d)}e={push:function(h){return d(h)},filter:function(){return e}}},assignMedium:function(d){t=!0;var p=[];if(e.length){var h=e;e=[],h.forEach(d),p=e}var y=function(){var E=p;p=[],E.forEach(d)},$=function(){return Promise.resolve().then(y)};$(),e={push:function(E){p.push(E),$()},filter:function(E){return p=p.filter(E),e}}}};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,e=n.currentTarget;return{target:i,currentTarget:e}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0,ssr:typeof document<"u"}),focusScope=reactExports.createContext(void 0),emptyArray=[],FocusLock=reactExports.forwardRef(function n(i,e){var t,o=reactExports.useState(),d=o[0],p=o[1],h=reactExports.useRef(),y=reactExports.useRef(!1),$=reactExports.useRef(null),E=reactExports.useState({}),M=E[1],H=i.children,Z=i.disabled,be=Z===void 0?!1:Z,ye=i.noFocusGuards,we=ye===void 0?!1:ye,xe=i.persistentFocus,Ce=xe===void 0?!1:xe,Ne=i.crossFrame,Fe=Ne===void 0?!0:Ne,Me=i.autoFocus,Le=Me===void 0?!0:Me;i.allowTextSelection;var ze=i.group,Ke=i.className,Ve=i.whiteList,je=i.hasPositiveIndices,We=i.shards,Xe=We===void 0?emptyArray:We,Qe=i.as,Ye=Qe===void 0?"div":Qe,Ue=i.lockProps,ot=Ue===void 0?{}:Ue,dt=i.sideCar,st=i.returnFocus,pt=st===void 0?!1:st,Be=i.focusOptions,qe=i.onActivation,rt=i.onDeactivation,He=reactExports.useState({}),Ot=He[0],Ct=reactExports.useCallback(function(Yt){var zt=Yt.captureFocusRestore;if(!$.current){var nn,Ut=(nn=document)==null?void 0:nn.activeElement;$.current=Ut,Ut!==document.body&&($.current=zt(Ut))}h.current&&qe&&qe(h.current),y.current=!0,M()},[qe]),tt=reactExports.useCallback(function(){y.current=!1,rt&&rt(h.current),M()},[rt]),wt=reactExports.useCallback(function(Yt){var zt=$.current;if(zt){var nn=(typeof zt=="function"?zt():zt)||document.body,Ut=typeof pt=="function"?pt(nn):pt;if(Ut){var Zt=typeof Ut=="object"?Ut:void 0;$.current=null,Yt?Promise.resolve().then(function(){return nn.focus(Zt)}):nn.focus(Zt)}}},[pt]),gt=reactExports.useCallback(function(Yt){y.current&&mediumFocus.useMedium(Yt)},[]),$t=mediumBlur.useMedium,Mt=reactExports.useCallback(function(Yt){h.current!==Yt&&(h.current=Yt,p(Yt))},[]),qt=_extends$A((t={},t[FOCUS_DISABLED]=be&&"disabled",t[FOCUS_GROUP]=ze,t),ot),cn=we!==!0,en=cn&&we!=="tail",Wt=useMergeRefs([e,Mt]),dn=reactExports.useMemo(function(){return{observed:h,shards:Xe,enabled:!be,active:y.current}},[be,y.current,Xe,d]);return reactExports.createElement(reactExports.Fragment,null,cn&&[reactExports.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:be?-1:0,style:hiddenGuard}),je?reactExports.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:be?-1:1,style:hiddenGuard}):null],!be&&reactExports.createElement(dt,{id:Ot,sideCar:mediumSidecar,observed:d,disabled:be,persistentFocus:Ce,crossFrame:Fe,autoFocus:Le,whiteList:Ve,shards:Xe,onActivation:Ct,onDeactivation:tt,returnFocus:wt,focusOptions:Be,noFocusGuards:we}),reactExports.createElement(Ye,_extends$A({ref:Wt},qt,{className:Ke,onBlur:$t,onFocus:gt}),reactExports.createElement(focusScope.Provider,{value:dn},H)),en&&reactExports.createElement("div",{"data-focus-guard":!0,tabIndex:be?-1:0,style:hiddenGuard}))});FocusLock.propTypes={};function _setPrototypeOf$d(n,i){return _setPrototypeOf$d=Object.
50setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf$d(n,i)}function _inheritsLoose(n,i){n.prototype=Object.create(i.prototype),n.prototype.constructor=n,_setPrototypeOf$d(n,i)}function _typeof$e(n){"@babel/helpers - typeof";return _typeof$e=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$e(n)}function toPrimitive(n,i){if(_typeof$e(n)!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,i);if(_typeof$e(t)!="object")return t;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$e(i)=="symbol"?i:i+""}function _defineProperty$s(n,i,e){return(i=toPropertyKey(i))in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function withSideEffect(n,i){function e(t){return t.displayName||t.name||"Component"}return function(o){var d=[],p;function h(){p=n(d.map(function($){return $.props})),i(p)}var y=(function($){_inheritsLoose(E,$);function E(){return $.apply(this,arguments)||this}E.peek=function(){return p};var M=E.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)},E})(reactExports.PureComponent);return _defineProperty$s(y,"displayName","SideEffect("+e(o)+")"),y}}var toArray$1=function(n){for(var i=Array(n.length),e=0;e<n.length;++e)i[e]=n[e];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 e=n.get(i);if(e!==void 0)return e;var t=isVisibleUncached(i,isVisibleCached.bind(void 0,n));return n.set(i,t),t},isAutoFocusAllowedUncached=function(n,i){return n&&!isTopNode(n)?isAutoFocusAllowed(n)?i(getParentNode(n)):!1:!0},isAutoFocusAllowedCached=function(n,i){var e=n.get(i);if(e!==void 0)return e;var t=isAutoFocusAllowedUncached(i,isAutoFocusAllowedCached.bind(void 0,n));return n.set(i,t),t},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 e=Math.max(0,n.tabIndex),t=Math.max(0,i.tabIndex),o=e-t,d=n.index-i.index;if(o){if(!e)return 1;if(!t)return-1}return o||d},getTabIndex=function(n){return n.tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex},orderByTabIndex=function(n,i,e){return toArray$1(n).map(function(t,o){var d=getTabIndex(t);return{node:t,index:o,tabIndex:e&&d===-1?(t.dataset||{}).focusGuard?0:-1:d}}).filter(function(t){return!i||t.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(e,t){return e.concat(t.matches(i?queryGuardTabbables:queryTabbables)?[t]:[],getFocusablesWithShadowDom(t))},[])},getFocusablesWithIFrame=function(n,i){var e;return n instanceof HTMLIFrameElement&&(!((e=n.contentDocument)===null||e===void 0)&&e.body)?getFocusables([n.contentDocument.body],i):[n]},getFocusables=function(n,i){return n.reduce(function(e,t){var o,d=getFocusablesWithShadowDom(t,i),p=(o=[]).concat.apply(o,d.map(function(h){return getFocusablesWithIFrame(h,i)}));return e.concat(p,t.parentNode?toArray$1(t.parentNode.querySelectorAll(queryTabbables)).filter(function(h){return h===t}):[])},[])},getParentAutofocusables=function(n){var i=n.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$1(i).map(function(e){return getFocusables([e])}).reduce(function(e,t){return e.concat(t)},[])},filterFocusable=function(n,i){return toArray$1(n).filter(function(e){return isVisibleCached(i,e)}).filter(function(e){return notHiddenInput(e)})},filterAutoFocusable=function(n,i){return i===void 0&&(i=new Map),toArray$1(n).filter(function(e){return isAutoFocusAllowedCached(i,e)})},getTabbableNodes=function(n,i,e){return orderByTabIndex(filterFocusable(getFocusables(n,e),i),!0,e)},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(e){var t;if(e instanceof HTMLIFrameElement){var o=(t=e.contentDocument)===null||t===void 0?void 0:t.body;return o?contains(o,i):!1}return contains(e,i)})},filterNested=function(n){for(var i=new Set,e=n.length,t=0;t<e;t+=1)for(var o=t+1;o<e;o+=1){var d=n[t].compareDocumentPosition(n[o]);(d&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&i.add(o),(d&Node.DOCUMENT_POSITION_CONTAINS)>0&&i.add(t)}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(e,t){var o=t.getAttribute(FOCUS_GROUP);return e.push.apply(e,o?filterNested(toArray$1(getTopParent(t).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(o,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[t]),e},[])},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(e){return focusInFrame(e,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(e){return contains(e,i)||focusInsideIframe(e,i)})},focusIsHidden=function(n){n===void 0&&(n=document);var i=getActiveElement(n);return i?toArray$1(n.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(e){return contains(e,i)}):!1},findSelectedRadio=function(n,i){return i.filter(isRadioElement).filter(function(e){return e.name===n.name}).filter(function(e){return e.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(e){return i.add(correctNode(e,n))}),n.filter(function(e){return i.has(e)})},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,e,t,o){var d=n.length,p=n[0],h=n[d-1],y=isGuard(t);
50if(!(t&&n.indexOf(t)>=0)){var $=t!==void 0?e.indexOf(t):-1,E=o?e.indexOf(o):$,M=o?n.indexOf(o):-1;if($===-1)return M!==-1?M:NEW_FOCUS;if(M===-1)return NEW_FOCUS;var H=$-E,Z=e.indexOf(p),be=e.indexOf(h),ye=correctNodes(e),we=t!==void 0?ye.indexOf(t):-1,xe=we-(o?ye.indexOf(o):$);if(!H&&M>=0||i.length===0)return M;var Ce=pickFocusable(n,i[0]),Ne=pickFocusable(n,i[i.length-1]);if($<=Z&&y&&Math.abs(H)>1)return Ne;if($>=be&&y&&Math.abs(H)>1)return Ce;if(H&&Math.abs(xe)>1)return M;if($<=Z)return Ne;if($>be)return Ce;if(H)return Math.abs(H)>1?M:(d+M+H)%d}},findAutoFocused=function(n){return function(i){var e,t=(e=getDataset(i))===null||e===void 0?void 0:e.autofocus;return i.autofocus||t!==void 0&&t!=="false"||n.indexOf(i)>=0}},pickAutofocus=function(n,i,e){var t=n.map(function(d){var p=d.node;return p}),o=filterAutoFocusable(t.filter(findAutoFocused(e)));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 e=getParents(n),t=getParents(i),o=0;o<e.length;o+=1){var d=e[o];if(t.indexOf(d)>=0)return d}return!1},getTopCommonParent=function(n,i,e){var t=asArray(n),o=asArray(i),d=t[0],p=!1;
50return o.filter(Boolean).forEach(function(h){p=getCommonParent(p||h,h)||p,e.filter(Boolean).forEach(function(y){var $=getCommonParent(d,y);$&&(!p||contains($,p)?p=$:p=getCommonParent($,p))})}),p},allParentAutofocusables=function(n,i){return n.reduce(function(e,t){return e.concat(parentAutofocusables(t,i))},[])},reorderNodes=function(n,i){var e=new Map;return i.forEach(function(t){return e.set(t.node,t)}),n.map(function(t){return e.get(t)}).filter(isDefined)},focusSolver=function(n,i){var e=getActiveElement(asArray(n).length>0?document:getFirst(n).ownerDocument),t=getAllAffectedNodes(n).filter(isNotAGuard),o=getTopCommonParent(e||n,n,t),d=new Map,p=getFocusableNodes(t,d),h=p.filter(function(be){var ye=be.node;return isNotAGuard(ye)});if(h[0]){var y=getFocusableNodes([o],d).map(function(be){var ye=be.node;return ye}),$=reorderNodes(y,h),E=$.map(function(be){var ye=be.node;return ye}),M=$.filter(function(be){var ye=be.tabIndex;return ye>=0}).map(function(be){var ye=be.node;return ye}),H=newFocus(E,M,y,e,i);if(H===NEW_FOCUS){var Z=pickAutofocus(p,M,allParentAutofocusables(t,d))||pickAutofocus(p,E,allParentAutofocusables(t,d));if(Z)return{node:Z};console.warn("focus-lock: cannot find any node to move focus into");return}return H===void 0?H:$[H]}},expandFocusableNodes=function(n){var i=getAllAffectedNodes(n).filter(isNotAGuard),e=getTopCommonParent(n,n,i),t=orderByTabIndex(getFocusables([e],!0),!0,!0),o=getFocusables(i,!1);return t.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,e){e===void 0&&(e={});var t=focusSolver(n,i);if(!lockDisabled&&t){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(t.node,e.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=[],e=n;e&&e!==document.body;)i.push({current:weakRef(e),parent:weakRef(e.parentElement),left:weakRef(e.previousElementSibling),right:weakRef(e.nextElementSibling)}),e=e.parentElement;return{element:weakRef(n),stack:i,ownerDocument:n.ownerDocument}},restoreFocusTo=function(n){var i,e,t,o,d;if(n)for(var p=n.stack,h=n.ownerDocument,y=new Map,$=0,E=p;$<E.length;$++){var M=E[$],H=(i=M.parent)===null||i===void 0?void 0:i.call(M);if(H&&h.contains(H)){for(var Z=(e=M.left)===null||e===void 0?void 0:e.call(M),be=M.current(),ye=H.contains(be)?be:void 0,we=(t=M.right)===null||t===void 0?void 0:t.call(M),xe=getTabbableNodes([H],y),Ce=(d=(o=ye??Z?.nextElementSibling)!==null&&o!==void 0?o:we)!==null&&d!==void 0?d:Z;Ce;){for(var Ne=0,Fe=xe;Ne<Fe.length;Ne++){var Me=Fe[Ne];if(Ce?.contains(Me.node))return Me.node}Ce=Ce.nextElementSibling}if(xe.length)return xe[0].node}}},captureFocusRestore=function(n){var i=recordElementLocation(n);return function(){return restoreFocusTo(i)}},getRelativeFocusable=function(n,i,e){if(!n||!i)return console.error("no element or scope given"),{};var t=asArray(i);if(t.every(function(p){return!contains(p,n)}))return console.error("Active element is not contained in the scope"),{};var o=e?getTabbableNodes(t,new Map):getFocusableNodes(t,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 e=i?getTabbableNodes(asArray(n),new Map):getFocusableNodes(asArray(n),new Map);return{first:e[0],last:e[e.length-1]}},defaultOptions=function(n){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},n)},moveFocus=function(n,i,e){i===void 0&&(i={});var t=defaultOptions(i),o=getRelativeFocusable(n,t.scope,t.onlyTabbable);if(o){var d=e(o,t.cycle);d&&focusOn(d.node,t.focusOptions)}},focusNextElement=function(n,i){i===void 0&&(i={}),moveFocus(n,i,function(e,t){var o=e.next,d=e.first;return o||t&&d})},focusPrevElement=function(n,i){i===void 0&&(i={}),moveFocus(n,i,function(e,t){var o=e.prev,d=e.last;return o||t&&d})},pickBoundary=function(n,i,e){var t,o=getBoundary(n,(t=i.onlyTabbable)!==null&&t!==void 0?t:!0),d=o[e];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,e){var t={};return t[i]=e,t},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,e){lastPortaledElement={observerNode:i,portaledElement:e}},focusIsPortaledPair=function n(i){return lastPortaledElement&&lastPortaledElement.portaledElement===i};function autoGuard(n,i,e,t){var o=null,d=n;do{var p=t[d];if(p.guard)p.node.dataset.focusAutoGuard&&(o=p);else if(p.lockItem){if(d!==n)return;o=null}else break}while((d+=e)!==i);o&&(o.node.tabIndex=0)}var focusWasOutside=function n(i){return i?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function n(i,e,t){return e&&(e.host===i&&(!e.activeElement||t.contains(e.activeElement))||e.parentNode&&n(i,e.parentNode,t))},withinHost=function n(i,e){return e.some(function(t){return checkInHost(i,t,t)})},getNodeFocusables=function n(i){return getFocusableNodes(i,new Map)},isNotFocusable=function n(i){return!getNodeFocusables([i.parentNode]).some(function(e){return e.no
50de===i})},activateTrap=function n(){var i=!1;if(lastActiveTrap){var e=lastActiveTrap,t=e.observed,o=e.persistentFocus,d=e.autoFocus,p=e.shards,h=e.crossFrame,y=e.focusOptions,$=e.noFocusGuards,E=t||lastPortaledElement&&lastPortaledElement.portaledElement;if(focusOnBody()&&lastActiveFocus&&(!document.body.contains(lastActiveFocus)||isNotFocusable(lastActiveFocus))){lastActiveFocus=null;var M=tryRestoreFocus();M&&M.focus()}var H=document&&document.activeElement;if(E){var Z=[E].concat(p.map(extractRef).filter(Boolean)),be=function(){if(!focusWasOutside(h)||!$||!lastActiveFocus||windowFocused)return!1;var Ne=getNodeFocusables(Z),Fe=Ne.findIndex(function(Me){var Le=Me.node;return Le===lastActiveFocus});return Fe===0||Fe===Ne.length-1};if((!H||focusWhitelisted(H))&&(o||be()||!isFreeFocus()||!lastActiveFocus&&d)&&(E&&!(focusInside(Z)||H&&withinHost(H,Z)||focusIsPortaledPair(H))&&(document&&!lastActiveFocus&&H&&!d?(H.blur&&H.blur(),document.body.focus()):(i=moveFocusInside(Z,lastActiveFocus,{focusOptions:y}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement,tryRestoreFocus=captureFocusRestore(lastActiveFocus)),document&&H!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var ye=document&&document.activeElement,we=expandFocusableNodes(Z),xe=we.map(function(Ce){var Ne=Ce.node;return Ne}).indexOf(ye);xe>-1&&(we.filter(function(Ce){var Ne=Ce.guard,Fe=Ce.node;return Ne&&Fe.dataset.focusAutoGuard}).forEach(function(Ce){var Ne=Ce.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 e=i.target,t=i.currentTarget;t.contains(e)||recordPortal(t,e)},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 e=i.disabled;return!e})}var focusLockAPI={moveFocusInside,focusInside,focusNextElement,focusPrevElement,focusFirstElement,focusLastElement,captureFocusRestore};function handleStateChangeOnClient(n){var i=n.slice(-1)[0];i&&!lastActiveTrap&&attachHandler();var e=lastActiveTrap,t=e&&i&&i.id===e.id;lastActiveTrap=i,e&&!t&&(e.onDeactivation(),n.filter(function(o){var d=o.id;return d===e.id}).length||e.returnFocus(!i)),i?(lastActiveFocus=null,(!t||e.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,e){return reactExports.createElement(FocusLock,_extends$A({sideCar:FocusTrap,ref:e},i))}),_ref=FocusLock.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose$p(_ref,["sideCar"]);FocusLockCombination.propTypes={};var useFocusInside=function n(i){reactExports.useEffect(function(){var e=!0;return mediumEffect.useMedium(function(t){var o=i&&i.current;e&&o&&(t.focusInside(o)||t.moveFocusInside(o,null))}),function(){e=!1}},[i])};function MoveFocusInside(n){var i=n.disabled,e=i===void 0?!1:i,t=n.className,o=n.children,d=reactExports.useRef(null);return useFocusInside(e?void 0:d),reactExports.createElement("div",_extends$A({},inlineProp(FOCUS_AUTO,!e),{ref:d,className:t}),o)}
50MoveFocusInside.propTypes={};var SIZE$2={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$o(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$n(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$o(Object(e),!0).forEach(function(t){_defineProperty$r(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$o(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$r(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function getSizeStyles(n){var i={maxWidth:"100%",width:null};return typeof n=="number"?i.width="".concat(n,"px"):SIZE$2[n]?i.width=SIZE_WIDTHS[n]:typeof n=="string"&&(i.width=n),n===SIZE$2.full&&(i.alignSelf="stretch"),i}var Root$3=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$3.displayName="Root";Root$3.displayName="Root";var DialogContainer=styled$1("div",function(n){var i=n.$animate,e=n.$isOpen,t=n.$isVisible,o=n.$theme,d={transitionProperty:"opacity",transitionDuration:o.animation.timing400,transitionTimingFunction:o.animation.easeOutCurve};return _objectSpread$n({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",minHeight:"100%",userSelect:"none",pointerEvents:"auto",backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",opacity:t&&e?1:0},i?d:null)});DialogContainer.displayName="DialogContainer";DialogContainer.displayName="DialogContainer";var Dialog$2=styled$1("div",function(n){var i=n.$animate,e=n.$isOpen,t=n.$isVisible,o=n.$size,d=n.$theme;return _objectSpread$n(_objectSpread$n(_objectSpread$n({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:t&&e?1:0,transform:t?"translateY(0)":"translateY(20px)"},i?{transitionProperty:"opacity, transform",transitionDuration:d.animation.timing400,transitionTimingFunction:d.animation.easeOutCurve}:null),{},{userSelect:"text",pointerEvents:e?"all":"none",":focus":{outline:"none"}})});Dialog$2.displayName="Dialog";Dialog$2.displayName="Dialog";var Close=styled$1("button",function(n){var i,e=n.$theme,t=n.$isFocusVisible,o=e.direction==="rtl"?"left":"right";return i={background:"transparent",outline:0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,color:e.colors.modalCloseColor,transitionProperty:"color, border-color",transitionDuration:e.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:e.colors.modalCloseColorHover},":focus":{outline:t?"3px solid ".concat(e.colors.accent):"none"},position:"absolute",top:e.sizing.scale500},_defineProperty$r(i,o,e.sizing.scale500),_defineProperty$r(i,"width",e.sizing.scale800),_defineProperty$r(i,"height",e.sizing.scale800),_defineProperty$r(i,"display","flex"),_defineProperty$r(i,"justifyContent","center"),_defineProperty$r(i,"alignItems","center"),_defineProperty$r(i,"cursor","pointer"),i});Close.displayName="Close";Close.displayName="Close";var ModalHeader$1=styled$1("div",function(n){var i,e=n.$theme,t=e.direction==="rtl"?"marginRight":"marginLeft",o=e.direction==="rtl"?"marginLeft":"marginRight";return _objectSpread$n(_objectSpread$n({},e.typography.font550),{},(i={color:e.colors.contentPrimary,marginTop:e.sizing.scale900,marginBottom:e.sizing.scale600},_defineProperty$r(i,t,e.sizing.scale800),_defineProperty$r(i,o,e.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$n(_objectSpread$n({},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$n(_objectSpread$n({},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$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 _extends$t(){return _extends$t=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$t.apply(this,arguments)}function _slicedToArray$k(n,i){return _arrayWithHoles$k(n)||_iterableToArrayLimit$k(n,i)||_unsupportedIterableToArray$k(n,i)||_nonIterableRest$k()}function _nonIterableRest$k(){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$k(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$k(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$k(n,i)}}function _arrayLikeToArray$k(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$k(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$k(n){if(Array.isArray(n))return n}function _classCallCheck$d(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$d(n,i,e){return i&&_defineProperties$d(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$d(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$c(n,i)}function _setPrototypeOf$c(n,i){return _setPrototypeOf$c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$c(n,i)}function _createSuper$d(n){var i=_isNativeReflectConstruct$d();return function(){var t=_getPrototypeOf$d(n),o;if(i){var d=_getPrototypeOf$d(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$d(this,o)}}function _possibleConstructorReturn$d(n,i){if(i&&(_typeof$d(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$d(n)}function _assertThisInitialized$d(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$d(){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}}
51function _getPrototypeOf$d(n){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$d(n)}function _defineProperty$q(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Modal$1=(function(n){_inherits$d(e,n);var i=_createSuper$d(e);function e(){var t;_classCallCheck$d(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$q(_assertThisInitialized$d(t),"animateOutTimer",void 0),_defineProperty$q(_assertThisInitialized$d(t),"animateStartTimer",void 0),_defineProperty$q(_assertThisInitialized$d(t),"dialogContainerRef",reactExports.createRef()),_defineProperty$q(_assertThisInitialized$d(t),"lastFocus",null),_defineProperty$q(_assertThisInitialized$d(t),"lastMountNodeOverflowStyle",null),_defineProperty$q(_assertThisInitialized$d(t),"rootRef",reactExports.createRef()),_defineProperty$q(_assertThisInitialized$d(t),"state",{isVisible:!1,mounted:!1,isFocusVisible:!1}),_defineProperty$q(_assertThisInitialized$d(t),"handleFocus",function(h){isFocusVisible(h)&&t.setState({isFocusVisible:!0})}),_defineProperty$q(_assertThisInitialized$d(t),"handleBlur",function(h){t.state.isFocusVisible!==!1&&t.setState({isFocusVisible:!1})}),_defineProperty$q(_assertThisInitialized$d(t),"onEscape",function(){t.props.closeable&&t.triggerClose(CLOSE_SOURCE.escape)}),_defineProperty$q(_assertThisInitialized$d(t),"onDocumentClick",function(h){h.target&&h.target instanceof HTMLElement&&h.target.contains(t.dialogContainerRef.current)&&t.onBackdropClick()}),_defineProperty$q(_assertThisInitialized$d(t),"onBackdropClick",function(){t.props.closeable&&t.triggerClose(CLOSE_SOURCE.backdrop)}),_defineProperty$q(_assertThisInitialized$d(t),"onCloseClick",function(){t.triggerClose(CLOSE_SOURCE.closeButton)}),_defineProperty$q(_assertThisInitialized$d(t),"animateOutComplete",function(){t.setState({isVisible:!1})}),t}return _createClass$d(e,[{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,$=o.closeable;return{$animate:d,$isVisible:this.state.isVisible,$isOpen:!!p,$size:h,$role:y,$closeable:!!$,$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,$=d.role,E=d.autoFocus,M=d.focusLock,H=d.returnFocus,Z=h.Root,be=h.Dialog,ye=h.DialogContainer,we=h.Close,xe=getOverrides(Z,Root$3),Ce=_slicedToArray$k(xe,2),Ne=Ce[0],Fe=Ce[1],Me=getOverrides(ye,DialogContainer),Le=_slicedToArray$k(Me,2),ze=Le[0],Ke=Le[1],Ve=getOverrides(be,Dialog$2),je=_slicedToArray$k(Ve,2),We=je[0],Xe=je[1],Qe=getOverrides(we,Close),Ye=_slicedToArray$k(Qe,2),Ue=Ye[0],ot=Ye[1],dt=this.getSharedProps(),st=this.getChildren();return reactExports.createElement(LocaleContext.Consumer,null,function(pt){return reactExports.createElement(FocusLockCombination,{disabled:!M,crossFrame:!1,returnFocus:H,autoFocus:E},reactExports.createElement(Ne,_extends$t({"data-baseweb":"modal",ref:o.rootRef},dt,Fe),reactExports.createElement(ze,_extends$t({ref:o.dialogContainerRef},dt,Ke),reactExports.createElement(We,_extends$t({tabIndex:-1,"aria-modal":!0,"aria-label":"dialog",role:$},dt,Xe),st,y?reactExports.createElement(Ue,_extends$t({"aria-label":pt.modal.close,onClick:o.onCloseClick},dt,ot,{onFocus:forkFocus(ot,o.handleFocus),onBlur:forkBlur(ot,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())}}]),e})(reactExports.Component);_defineProperty$q(Modal$1,"defaultProps",{animate:!0,autoFocus:!0,focusLock:!0,returnFocus:!0,closeable:!0,name:"dialog",isOpen:!1,overrides:{},role:ROLE.dialog,size:SIZE$2.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:"e27ue8x0"})(({containerWidth:n,size:i,theme:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:e.fontWeights.normal,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.button,minHeight:e.sizes.minElementHeight,margin:e.spacing.none,lineHeight:e.lineHeights.base,textTransform:"none",fontSize:"inherit",fontFamily:"inherit",color:"inherit",width:n?"100%":"auto",cursor:"pointer",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:getPrimaryFocusBoxShadow(e)},...getSizeStyle(i,e)})),StyledPrimaryButton=styled(StyledBaseButton,{target:"e27ue8x1"})(({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:"e27ue8x2"})(({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:"e27ue8x3"})(({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:"e27ue8x4"})(({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:"e27ue8x5"})(({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:"e27ue8x6"})(),StyledSecondaryFormSubmitButton=styled(StyledSecondaryButton,{target:"e27ue8x7"})(),StyledTertiaryFormSubmitButton=styled(StyledTertiaryButton,{target:"e27ue8x8"})(),StyledButtonGroupBaseButton=styled(StyledBaseButton,{target:"e27ue8x9"})(({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:"e27ue8x10"}
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:"e27ue8x11"})(({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"}})),StyledSegmentedControlButton=styled(StyledButtonGroupBaseButton,{target:"e27ue8x12"})(({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},"&:focus-visible":{zIndex:n.zIndices.priority}})),StyledSegmentedControlButtonActive=styled(StyledSegmentedControlButton,{target:"e27ue8x13"})(({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:"e27ue8x14"})(({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:getFocusBoxShadow(n.colors.gray90,.8)},"&: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:"e27ue8x15"})(()=>({padding:0})),StyledBorderlessIconButton=styled(StyledBaseButton,{target:"e27ue8x16"})(({size:n,theme:i})=>{const e={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:e[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:"e27ue8x17"})(({theme:n})=>({color:n.colors.bodyText,"&:disabled, &:disabled:hover, &:disabled:active":{color:n.colors.fadedText40}})),StyledTooltipNormal=styled("div",{target:"e27ue8x18"})(({theme:n})=>({display:"block",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"none"}})),StyledTooltipMobile=styled("div",{target:"e27ue8x19"})(({theme:n})=>({display:"none",[`@media (max-width: ${n.breakpoints.sm})`]:{display:"block"}})),StyledElementToolbarButton=styled(StyledBaseButton,{target:"e27ue8x20"})(({theme:n})=>({backgroundColor:n.colors.transparent,border:"none",padding:n.spacing.twoXS,fontSize:n.fontSizes.twoSm,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:"e27ue8x21"})(({containerWidth:n})=>({width:n?"100%":"auto"})),StyledButtonLabel=styled("div",{target:"e27ue8x22"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),StyledButtonMainLabel=styled("span",{target:"e27ue8x23"})(({theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:n.spacing.sm,minWidth:0})),StyledButtonShortcut=styled("kbd",{target:"e27ue8x24"})(({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"}));function BaseButton(n){const{kind:i,size:e,disabled:t,onClick:o,containerWidth:d,children:p,autoFocus:h}=n;let y=StyledPrimaryButton;return i===BaseButtonKind.SECONDARY?y=StyledSecondaryButton:i===BaseButtonKind.TERTIARY?y=StyledTertiaryButton:i===BaseButtonKind.GHOST?y=StyledGhostButton:i===BaseButtonKind.PILLS?y=StyledPillsButton:i===BaseButtonKind.PILLS_ACTIVE?y=StyledPillsButtonActive:i===BaseButtonKind.SEGMENTED_CONTROL?y=StyledSegmentedControlButton:i===BaseButtonKind.SEGMENTED_CONTROL_ACTIVE?y=StyledSegmentedControlButtonActive:i===BaseButtonKind.BORDERLESS_ICON?y=StyledBorderlessIconButton:i===BaseButtonKind.BORDERLESS_ICON_ACTIVE?y=StyledBorderlessIconButtonActive:i===BaseButtonKind.MINIMAL?y=StyledMinimalButton:i===BaseButtonKind.PRIMARY_FORM_SUBMIT?y=StyledPrimaryFormSubmitButton:i===BaseButtonKind.SECONDARY_FORM_SUBMIT?y=StyledSecondaryFormSubmitButton:i===BaseButtonKind.TERTIARY_FORM_SUBMIT?y=StyledTertiaryFormSubmitButton:i===BaseButtonKind.HEADER_BUTTON?y=StyledHeaderButton:i===BaseButtonKind.HEADER_NO_PADDING?y=StyledHeaderNoPaddingButton:i===BaseButtonKind.ELEMENT_TOOLBAR&&(y=StyledElementToolbarButton),jsx$1(y,{kind:i,size:e??BaseButtonSize.MEDIUM,containerWidth:d||!1,disabled:t||!1,onClick:o||(()=>{}),autoFocus:h||!1,"data-testid":n["data-testid"]??`stBaseButton-${i}`,"aria-label":n["aria-label"]??"",children:p})}const StyledWrapper=styled("div",{target:"e1bi6yfx0"})({display:"table",tableLayout:"fixed",width:"100%"}),StyledEllipsizedDiv=styled("div",{target:"e1bi6yfx1"}
51)({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$1={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$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 ownKeys$n(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$m(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$n(Object(e),!0).forEach(function(t){_defineProperty$p(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$n(Object(e)).forEac
51h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$c(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$c(n,i,e){return i&&_defineProperties$c(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$c(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(t,o){return t.__proto__=o,t},_setPrototypeOf$b(n,i)}function _createSuper$c(n){var i=_isNativeReflectConstruct$c();return function(){var t=_getPrototypeOf$c(n),o;if(i){var d=_getPrototypeOf$c(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$c(this,o)}}function _possibleConstructorReturn$c(n,i){if(i&&(_typeof$c(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$c(n)}function _assertThisInitialized$c(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$c(){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$c(n){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$c(n)}function _defineProperty$p(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var defaultStateReducer=function n(i,e){return e},StatefulContainer$1=(function(n){_inherits$c(e,n);var i=_createSuper$c(e);function e(){var t;_classCallCheck$c(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$p(_assertThisInitialized$c(t),"state",_objectSpread$m({isOpen:!1},t.props.initialState)),_defineProperty$p(_assertThisInitialized$c(t),"onBlur",function(h){t.props.onBlur&&t.props.onBlur(h),!(t.props.focusLock||t.props.autoFocus)&&t.close()}),_defineProperty$p(_assertThisInitialized$c(t),"onClick",function(h){t.props.onClick&&t.props.onClick(h),t.state.isOpen?t.close():t.open()}),_defineProperty$p(_assertThisInitialized$c(t),"onClickOutside",function(){t.close()}),_defineProperty$p(_assertThisInitialized$c(t),"onEsc",function(){t.close()}),_defineProperty$p(_assertThisInitialized$c(t),"onFocus",function(h){t.props.onFocus&&t.props.onFocus(h),isFocusVisible(h)&&t.open()}),_defineProperty$p(_assertThisInitialized$c(t),"onMouseEnter",function(h){t.props.onMouseEnter&&t.props.onMouseEnter(h),t.open()}),_defineProperty$p(_assertThisInitialized$c(t),"onMouseLeave",function(h){t.props.onMouseLeave&&t.props.onMouseLeave(h),t.close()}),_defineProperty$p(_assertThisInitialized$c(t),"onContentClose",function(){t.close()}),_defineProperty$p(_assertThisInitialized$c(t),"renderContent",function(){var h=t.props.content;return typeof h=="function"?h({close:t.onContentClose}):h}),t}return _createClass$c(e,[{key:"open",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.open,{isOpen:!0}),this.props.onOpen&&this.props.onOpen()}},{key:"close",value:function(){this.internalSetState(STATE_CHANGE_TYPE$1.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,$=o.dism
51issOnEsc,E=o.focusLock,M=o.ignoreBoundary,H=o.mountNode,Z=o.onBlur,be=o.onClick,ye=o.onFocus,we=o.onMouseEnter,xe=o.onMouseLeave,Ce=o.onMouseEnterDelay,Ne=o.onMouseLeaveDelay,Fe=o.overrides,Me=o.placement,Le=o.popperOptions,ze=o.renderAll,Ke=o.returnFocus,Ve=o.showArrow,je=o.triggerType,We=o.popoverMargin,Xe=o.focusOptions,Qe={accessibilityType:d,animateOutTime:h,autoFocus:p,content:this.renderContent,focusLock:E,ignoreBoundary:M,isOpen:this.state.isOpen,mountNode:H,onBlur:Z,onClick:be,onFocus:ye,onMouseEnter:we,onMouseLeave:xe,onMouseEnterDelay:Ce,onMouseLeaveDelay:Ne,overrides:Fe,placement:Me,popperOptions:Le,renderAll:ze,returnFocus:Ke,showArrow:Ve,triggerType:je,popoverMargin:We,focusOptions:Xe};return y&&(Qe.onClickOutside=this.onClickOutside),$&&(Qe.onEsc=this.onEsc),je===TRIGGER_TYPE.hover?(Qe.onBlur=this.onBlur,Qe.onFocus=this.onFocus,Qe.onMouseEnter=this.onMouseEnter,Qe.onMouseLeave=this.onMouseLeave):Qe.onClick=this.onClick,this.props.children(Qe)}}]),e})(reactExports.Component);_defineProperty$p(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$m(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$l(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$m(Object(e),!0).forEach(function(t){_defineProperty$o(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$m(Object(e)).forEac
51h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$o(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _slicedToArray$j(n,i){return _arrayWithHoles$j(n)||_iterableToArrayLimit$j(n,i)||_unsupportedIterableToArray$j(n,i)||_nonIterableRest$j()}function _nonIterableRest$j(){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$j(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$j(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$j(n,i)}}function _arrayLikeToArray$j(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$j(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$j(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(e){return e.toLowerCase()})}function getPopoverMarginStyles(n,i,e){var t=splitPlacement(i),o=_slicedToArray$j(t,1),d=o[0],p=getOppositePosition(d);if(!p)return null;var h="margin".concat(capitalize(p));return _defineProperty$o({},h,"".concat(n+e,"px"))}function getStartPosition(n,i,e,t){n=_objectSpread$l({},n);var o=splitPlacement(i),d=_slicedToArray$j(o,1),p=d[0],h=(e>0?e:t)*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 e,t=splitPlacement(i),o=_slicedToArray$j(t,1),d=o[0],p=getOppositePosition(d);if(!p)return null;var h=isVerticalPosition(d)?"left":"top";return e={},_defineProperty$o(e,h,"".concat(n[h],"px")),_defineProperty$o(e,p,"-".concat(ARROW_SIZE-2,"px")),e}function ownKeys$l(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$k(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$l(Object(e),!0).forEach(function(t){_defineProperty$n(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$l(Object(e)).forEac
52h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$n(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function getBodyStyles(n){var i=n.$animationDuration,e=n.$isOpen,t=n.$isAnimating,o=n.$placement,d=n.$popoverOffset,p=n.$showArrow,h=n.$theme,y=n.$popoverMargin,$=n.$isHoverTrigger;return _objectSpread$k(_objectSpread$k({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,boxShadow:h.lighting.shadow600,transitionProperty:"opacity,transform",transitionDuration:t?e?"0.1s":"".concat(i,"ms"):"0s",transitionTimingFunction:e?h.animation.easeOutCurve:h.animation.easeInCurve,opacity:t&&e?1:0,transform:t&&e?getEndPosition(d):getStartPosition(d,o,p?ARROW_SIZE:0,y)},getPopoverMarginStyles(p?ARROW_SIZE:0,o,y)),$?{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,e=n.$placement,t=n.$theme;return _objectSpread$k({backgroundColor:t.colors.backgroundTertiary,boxShadow:t.lighting.shadow600,width:"".concat(ARROW_WIDTH,"px"),height:"".concat(ARROW_WIDTH,"px"),transform:"rotate(45deg)",position:"absolute"},getArrowPositionStyles(i,e))}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$k(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$j(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$k(Object(e),!0).forEach(function(t){_defineProperty$m(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$k(Object(e)).forEac
52h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _extends$s(){return _extends$s=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$s.apply(this,arguments)}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 _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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$b(n,i,e){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$a(n,i)}function _setPrototypeOf$a(n,i){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$a(n,i)}function _createSuper$b(n){var i=_isNativeReflectConstruct$b();return function(){var t=_getPrototypeOf$b(n),o;if(i){var d=_getPrototypeOf$b(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$b(n)}function _defineProperty$m(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var PopoverInner=(function(n){_inherits$b(e,n);var i=_createSuper$b(e);function e(){var t;_classCallCheck$b(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$m(_assertThisInitialized$b(t),"animateInTimer",void 0),_defineProperty$m(_assertThisInitialized$b(t),"animateOutTimer",void 0),_defineProperty$m(_assertThisInitialized$b(t),"animateOutCompleteTimer",void 0),_defineProperty$m(_assertThisInitialized$b(t),"onMouseEnterTimer",void 0),_defineProperty$m(_assertThisInitialized$b(t),"onMouseLeaveTimer",void 0),_defineProperty$m(_assertThisInitialized$b(t),"anchorRef",reactExports.createRef()),_defineProperty$m(_assertThisInitialized$b(t),"popperRef",reactExports.createRef()),_defineProperty$m(_assertThisInitialized$b(t),"arrowRef",reactExports.createRef()),_defineProperty$m(_assertThisInitialized$b(t),"state",t.getDefaultState(t.props)),_defineProperty$m(_assertThisInitialized$b(t),"animateIn",function(){t.props.isOpen&&t.setState({isAnimating:!0})}),_defineProperty$m(_assertThisInitialized$b(t),"animateOut",function(){t.props.isOpen||(t.setState({isAnimating:!0}),t.animateOutCompleteTimer=setTimeout(function(){t.setState({isAnimating:!1,placement:t.props.placement})},t.props.animateOutTime||ANIMATE_OUT_TIME))}),_defineProperty$m(_assertThisInitialized$b(t),"onAnchorClick",function(h){t.props.onClick&&t.props.onClick(h)}),_defineProperty$m(_assertThisInitialized$b(t),"onAnchorMouseEnter",function(h){t.onMouseLeaveTimer&&clearTimeout(t.onMouseLeaveTimer),t.triggerOnM
52ouseEnterWithDelay(h)}),_defineProperty$m(_assertThisInitialized$b(t),"onAnchorMouseLeave",function(h){t.onMouseEnterTimer&&clearTimeout(t.onMouseEnterTimer),t.triggerOnMouseLeaveWithDelay(h)}),_defineProperty$m(_assertThisInitialized$b(t),"onPopoverMouseEnter",function(){t.onMouseLeaveTimer&&clearTimeout(t.onMouseLeaveTimer)}),_defineProperty$m(_assertThisInitialized$b(t),"onPopoverMouseLeave",function(h){t.triggerOnMouseLeaveWithDelay(h)}),_defineProperty$m(_assertThisInitialized$b(t),"onPopperUpdate",function(h,y){var $=fromPopperPlacement(y.placement)||PLACEMENT$1.top;return t.setState({arrowOffset:h.arrow,popoverOffset:h.popper,placement:$}),t.animateInTimer=setTimeout(t.animateIn,ANIMATE_IN_TIME),y}),_defineProperty$m(_assertThisInitialized$b(t),"triggerOnMouseLeave",function(h){t.props.onMouseLeave&&t.props.onMouseLeave(h)}),_defineProperty$m(_assertThisInitialized$b(t),"triggerOnMouseEnter",function(h){t.props.onMouseEnter&&t.props.onMouseEnter(h)}),_defineProperty$m(_assertThisInitialized$b(t),"onDocumentClick",function(h){var y=h.composedPath?h.composedPath()[0]:h.target,$=t.popperRef.current,E=t.anchorRef.current;!$||$===y||y instanceof Node&&$.contains(y)||!E||E===y||y instanceof Node&&E.contains(y)||t.props.onClickOutside&&t.props.onClickOutside(h)}),t}return _createClass$b(e,[{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,$=this.state,E=$.isAnimating,M=$.arrowOffset,H=$.popoverOffset,Z=$.placement;return{$showArrow:!!p,$arrowOffset:M,$popoverOffset:H,$placement:Z,$isAnimating:E,$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$b(o)==="object"&&d?reactExports.cloneElement(o,p):reactExports.createElement("span",_extends$s({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,$=y.Arrow,E=y.Body,M=y.Inner,H=getOverride($)||Arrow$1,Z=getOverride(E)||Body$3,be=getOverride(M)||Inner$1,ye=this.getSharedProps(),we=this.getPopoverBodyProps();return reactExports.createElement(Z,_extends$s({key:"popover-body",ref:this.popperRef,"data-baseweb":this.props["data-baseweb"]||"popover"},we,ye,getOverrideProps(E)),p?reactExports.createElement(H,_extends$s({key:"popover-arrow",ref:this.arrowRef},ye,getOverrideProps($))):null,reactExports.createElement(be,_extends$s({},ye,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$j(_objectSpread$j({},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}}]),e})(reactExports.Component);_defineProperty$m(PopoverInner,"defaultProps",baseDefaultProps$1);var Popover$2=function n(i){var e=i.innerRef,t=useUID();return reactExports.createElement(PopoverInner,_extends$s({id:i.id||t,ref:e},i))};Popover$2.defaultProps=baseDefaultProps$1;var _excluded$o=["children"];function _objectWithoutProperties$p(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$o(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$o(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function StatefulPopover(n){var i=n.children,e=_objectWithoutProperties$p(n,_excluded$o);return reactExports.createElement(StatefulContainer$1,e,function(t){return reactExports.createElement(Popover$2,t,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,e){return e},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$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 ownKeys$j(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$i(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$j(Object(e),!0).forEach(function(t){_defineProperty$l(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$j(Object(e)).forEac
vendor: 3,136 bytes, line 52
52h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$a(n,i,e){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$9(n,i)}function _setPrototypeOf$9(n,i){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$9(n,i)}function _createSuper$a(n){var i=_isNativeReflectConstruct$a();return function(){var t=_getPrototypeOf$a(n),o;if(i){var d=_getPrototypeOf$a(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.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}}function _getPrototypeOf$a(n){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$a(n)}function _defineProperty$l(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var StatefulContainer=(function(n){_inherits$a(e,n);var i=_createSuper$a(e);function e(){return _classCallCheck$a(this,e),i.apply(this,arguments)}return _createClass$a(e,[{key:"render",value:function(){return reactExports.createElement(StatefulContainer$1,this.props)}}]),e})(reactExports.Component);_defineProperty$l(StatefulContainer,"defaultProps",_objectSpread$i({},baseDefaultProps));function ownKeys$i(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$h(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$i(Object(e),!0).forEach(function(t){_defineProperty$k(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$i(Object(e)).forEac
52h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$k(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Body$2=styled$1("div",function(n){return _objectSpread$h(_objectSpread$h({},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$h(_objectSpread$h(_objectSpread$h({},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$h(_objectSpread$h({},getArrowStyles(n)),{},{backgroundColor:n.$theme.colors.tooltipBackground})});Arrow.displayName="Arrow";Arrow.displayName="Arrow";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)}function ownKeys$h(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$g(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$h(Object(e),!0).forEach(function(t){_defineProperty$j(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$h(Object(e)).forEac
52h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _extends$r(){return _extends$r=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$r.apply(this,arguments)}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$9(n,i,e){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$8(n,i)}function _setPrototypeOf$8(n,i){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$8(n,i)}function _createSuper$9(n){var i=_isNativeReflectConstruct$9();return function(){var t=_getPrototypeOf$9(n),o;if(i){var d=_getPrototypeOf$9(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$9(n)}function _defineProperty$j(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Tooltip$2=(function(n){_inherits$9(e,n);var i=_createSuper$9(e);function e(){return _classCallCheck$9(this,e),i.apply(this,arguments)}return _createClass$9(e,[{key:"render",value:function(){var o=mergeOverrides({Arrow,Body:Body$2,Inner},this.props.overrides);return reactExports.createElement(Popover$2,_extends$r({autoFocus:!1,"data-baseweb":"tooltip"},this.props,{overrides:o}))}}]),e})(reactExports.Component);_defineProperty$j(Tooltip$2,"defaultProps",_objectSpread$g({},baseDefaultProps));var _excluded$n=["children"];function _objectWithoutProperties$o(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$n(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$n(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function StatefulTooltip(n){var i=n.children,e=_objectWithoutProperties$o(n,_excluded$n);return reactExports.createElement(StatefulContainer,e,function(t){return reactExports.createElement(Tooltip$2,t,i)})}StatefulTooltip.defaultProps=StatefulContainer.defaultProps;function useTooltipMeasurementSideEffect(n,i){const{innerWidth:e}=useWindowDimensionsContext();reactExports.useEffect(()=>{const t=n?.parentElement;if(!t)return;(async()=>{const d=()=>{const H=t.getBoundingClientRect();return H.x!==0||H.y!==0?H:null};let p=null,h=0;const y=5;for(;!p&&h<y;)p=d(),p||(h++,await new Promise(H=>requestAnimationFrame(H)));p||(p=t.getBoundingClientRect());const $=p.x,E=$+p.width-e,M=t.parentElement;if(E>0&&M){const H=new DOMMatrix(window.getComputedStyle(M)?.transform);M.style.transform=`translate3d(${H.e-E}px, ${H.f}px, 0px)`}$<0&&(t.style.left=`${-$}px`)})()},[n,i,e])}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:e,fontSizes:t,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)?e.bgColor:e.secondaryBg,color:e.bodyText,fontSize:t.sm,fontWeight:d.normal,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"},...i}}};function Tooltip({content:n,placement:i,children:e,inline:t,style:o,onMouseEnterDelay:d,overrides:p,containerWidth:h,error:y}){const $=useEmotionTheme(),[E,M]=reactExports.useState(null),[H,Z]=reactExports.useState(!1),be=reactExports.useRef(null),ye=reactExports.useCallback(()=>{Z(!0)},[]),we=reactExports.useCallback(()=>{Z(!1),be.current=null},[]);reactExports.useEffect(()=>()=>{be.current=null},[]);const xe=reactExports.useCallback(Fe=>{if(Fe.key!=="Escape"||!H)return;const Me=Fe.currentTarget,Le=Me.ownerDocument?.activeElement;Le instanceof HTMLElement&&Me.contains(Le)&&(be.current?.(),Fe.preventDefault(),Fe.stopPropagation())},[H]);useTooltipMeasurementSideEffect(E,H);const Ce=generateDefaultTooltipOverrides($,p),Ne=reactExports.useCallback(({close:Fe})=>(be.current=Fe,jsx$1(StyledTooltipContentWrapper,{className:y?"stTooltipErrorContent":"stTooltipContent","data-testid":y?"stTooltipErrorContent":"stTooltipContent",ref:M,children:n})),[n,y,M]);return jsx$1(StatefulTooltip,{onOpen:ye,onClose:we,content:n?Ne:null,placement:PLACEMENT$1[i],accessibilityType:ACCESSIBILITY_TYPE.tooltip,showArrow:!1,popoverMargin:10,onMouseEnterDelay:d,overrides:Ce,children:jsx$1("div",{style:{display:"flex",flexDirection:"row",justifyContent:t?"flex-end":"",width:h?"100%":"auto",...o},onKeyDownCapture:xe,"data-testid":y?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",className:y?"stTooltipErrorHoverTarget":"stTooltipHoverTarget",children:e})})}const Tooltip$1=reactExports.memo(Tooltip);function OverflowTooltip({content:n,placement:i,children:e,inline:t,style:o}){const d=reactExports.useRef(null),[p,h]=reactExports.useState(!1);return reactExports.useEffect(()=>{const y=d?.current?d.current.offsetWidth<d.current.scrollWidth:!1;y!==p&&h(y)},[e,p]),jsx$1(Tooltip$1,{content:p?n:"",placement:i,inline:t,children:jsx$1(StyledWrapper,{children:jsx$1(StyledEllipsizedDiv,{ref:d,style:o,children:e})})})}const StyledTooltipTriggerButton=styled("button",{target:"e96ujdg0"})(({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:getPrimaryFocusBoxShadow(n),borderRadius:n.radii.default}})),StyledTooltipIconWrapper=styled("div",{target:"e96ujdg1"})(({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:"e96ujdg2"})(({isLatex:n})=>({display:"flex",flexDirection:"row",alignItems:"center",visibility:"visible",width:n?"fit-content":"100%",...n?{maxWidth:"100%",marginInline:"auto"}:{}})),StyledLabelHelpInline=styled("label",{target:"e96ujdg3"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function _extends$q(){return _extends$q=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$q.apply(this,arguments)}function _objectWithoutProperties$n(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$m(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$m(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}var Check=reactExports.forwardRef(function(n,i){var e=n.color,t=e===void 0?"currentColor":e,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$n(n,["color","size"]);return React.createElement("svg",_extends$q({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},p),React.createElement("polyline",{points:"20 6 9 17 4 12"}))});
52Check.propTypes={color:PropTypes.string,size:PropTypes.oneOfType([PropTypes.string,PropTypes.number])};Check.displayName="Check";function _extends$p(){return _extends$p=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$p.apply(this,arguments)}function _objectWithoutProperties$m(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$l(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$l(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}var Copy=reactExports.forwardRef(function(n,i){var e=n.color,t=e===void 0?"currentColor":e,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$m(n,["color","size"]);return React.createElement("svg",_extends$p({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:t,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$o(){return _extends$o=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$o.apply(this,arguments)}function _objectWithoutProperties$l(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$k(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$k(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}var HelpCircle=reactExports.forwardRef(function(n,i){var e=n.color,t=e===void 0?"currentColor":e,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$l(n,["color","size"]);return React.createElement("svg",_extends$o({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:t,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$n(){return _extends$n=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$n.apply(this,arguments)}function _objectWithoutProperties$k(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$j(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$j(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}var Link2=reactExports.forwardRef(function(n,i){var e=n.color,t=e===void 0?"currentColor":e,o=n.size,d=o===void 0?24:o,p=_objectWithoutProperties$k(n,["color","size"]);return React.createElement("svg",_extends$n({ref:i,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:t,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"}))});
52Link2.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,e,t){let o=Promise.resolve();if(e&&e.length>0){let $=function(E){return Promise.all(E.map(M=>Promise.resolve(M).then(H=>({status:"fulfilled",value:H}),H=>({status:"rejected",reason:H}))))};const p=document.getElementsByTagName("link"),h=document.querySelector("meta[property=csp-nonce]"),y=h?.nonce||h?.getAttribute("nonce");o=$(e.map(E=>{if(E=assetsURL(E,t),E in seen)return;seen[E]=!0;const M=E.endsWith(".css"),H=M?'[rel="stylesheet"]':"";if(t)for(let be=p.length-1;be>=0;be--){const ye=p[be];if(ye.href===E&&(!M||ye.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${E}"]${H}`))return;const Z=document.createElement("link");if(Z.rel=M?"stylesheet":scriptRel,M||(Z.as="script"),Z.crossOrigin="",Z.href=E,y&&Z.setAttribute("nonce",y),document.head.appendChild(Z),M)return new Promise((be,ye)=>{Z.addEventListener("load",be),Z.addEventListener("error",()=>ye(new Error(`Unable to preload CSS for ${E}`)))})}))}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[e,t]of i)n=n.replaceAll(e,t);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 e=getLocaleReplacements(i.locale),t=new Map([...replacements,...e,...i.customReplacements]);return n=n.normalize(),n=doCustomReplacements(n,t),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 e=escapeStringRegexp$1(i);return n.replaceAll(new RegExp(`(?:${e}){2,}`,"g"),i).replaceAll(new RegExp(`^(?:${e})|(?:${e})$`,"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 t of n.preserveCharacters){if(t===n.separator)throw new Error(`The separator character \`${n.separator}\` cannot be included in preserved characters: ${n.preserveCharacters}`);i+=escapeStringRegexp$1(t)}const e=n.transliterate?"g":"gu";return new RegExp(`[^${i}]+`,e)};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 e=i.preserveLeadingUnderscore&&n.startsWith("_"),t=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)),e&&(n=`_${n}`),t&&(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 e=-1;for(;++e<n.length;)i[e]=convert(n[e]);return castFactory(t);function t(...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(e);function e(t){const o=t;let d;for(d in n)if(o[d]!==i[d])return!1;return!0}}function typeFactory(n){return castFactory(i);function i(e){return e&&e.type===n}}function castFactory(n){return i;function i(e,t,o){return!!(looksLikeANode(e)&&n.call(this,e,typeof t=="number"?t: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,e,t){let o;typeof i=="function"&&typeof e!="function"?(t=e,e=i):o=i;const d=convert(o),p=t?-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(H,"name",{value:"node ("+(y.type+(Z?"<"+Z+">":""))+")"})}return H;function H(){let Z=empty$1,be,ye,we;if((!i||d(y,$,E[E.length-1]||void 0))&&(Z=toResult(e(y,E)),Z[0]===EXIT))return Z;if("children"in y&&y.children){const xe=y;if(xe.children&&Z[0]!==SKIP)for(ye=(t?xe.children.length:-1)+p,we=E.concat(xe);ye>-1&&ye<xe.children.length;){const Ce=xe.children[ye];if(be=h(Ce,ye,we)(),be[0]===EXIT)return be;ye=typeof be[1]=="number"?be[1]:ye+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,e){const o=convert((e||{}).ignore||[]),d=toPairs(i);let p=-1;for(;++p<d.length;)visitParents(n,"text",h);function h($,E){let M=-1,H;for(;++M<E.length;){const Z=E[M],be=H?H.children:void 0;if(o(Z,be?be.indexOf(Z):void 0,H))return;H=Z}if(H)return y($,E)}function y($,E){const M=E[E.length-1],H=d[p][0],Z=d[p][1];let be=0;const we=M.children.indexOf($);let xe=!1,Ce=[];H.lastIndex=0;let Ne=H.exec($.value);for(;Ne;){const Fe=Ne.index,Me={index:Ne.index,input:Ne.input,stack:[...E,$]};let Le=Z(...Ne,Me);if(typeof Le=="string"&&(Le=Le.length>0?{type:"text",value:Le}:void 0),Le===!1?H.lastIndex=Fe+1:(be!==Fe&&Ce.push({type:"text",value:$.value.slice(be,Fe)}),Array.isArray(Le)?Ce.push(...Le):Le&&Ce.push(Le),be=Fe+Ne[0].length,xe=!0),!H.global)break;Ne=H.exec($.value)}return xe?(be<$.value.length&&Ce.push({type:"text",value:$.value.slice(be)}),M.children.splice(we,1,...Ce)):Ce=[$],we+Ce.length}}function toPairs(n){const i=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const e=!n[0]||Array.isArray(n[0])?n:[n];let t=-1;for(;++t<e.length;){const o=e[t];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$2(n){const i=[],e=String(n||"");let t=e.indexOf(","),o=0,d=!1;for(;!d;){t===-1&&(t=e.length,d=!0);const p=e.slice(o,t).trim();(p||!d)&&i.push(p),o=t+1,t=e.indexOf(",",o)}return i}function stringify$1(n,i){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.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,e,t){this.normal=e,this.property=i,t&&(this.space=t)}}Schema.prototype.normal={};Schema.prototype.property={};
vendor: 4,716 bytes, line 52
52Schema.prototype.space=void 0;function merge(n,i){const e={},t={};for(const o of n)Object.assign(e,o.property),Object.assign(t,o.normal);return new Schema(e,t,i)}function normalize$1(n){return n.toLowerCase()}class Info{constructor(i,e){this.attribute=e,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,e,t,o){let d=-1;if(super(i,e),mark$1(this,"space",o),typeof t=="number")for(;++d<checks.length;){const p=checks[d];mark$1(this,checks[d],(t&types$1[p])===types$1[p])}}}DefinedInfo.prototype.defined=!0;function mark$1(n,i,e){e&&(n[i]=e)}function create(n){const i={},e={};for(const[t,o]of Object.entries(n.properties)){const d=new DefinedInfo(t,n.transform(n.attributes||{},t),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(t)&&(d.mustUseProperty=!0),i[t]=d,e[normalize$1(t)]=t,e[normalize$1(d.attribute)]=t}return new Schema(i,e,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,995 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 e=normalize$1(i);let t=i,o=Info;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&valid.test(i)){if(i.charAt(4)==="-"){const d=i.slice(5).replace(dash,camelcase);t="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(t,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$1(n){const i=String(n||"").trim();return i?i.split(/[ \t\n\r\f]+/g):[]}function stringify(n){return n.join(" ").trim()}var cjs$1={},inlineStyleParser,hasRequiredInlineStyleParser;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,e=/^\s*/,t=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,d=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,p=/^[;\s]*/,h=/^\s+|\s+$/g,y=` 53`,$="/",E="*",M="",H="comment",Z="declaration";inlineStyleParser=function(ye,we){if(typeof ye!="string")throw new TypeError("First argument must be a string");if(!ye)return[];we=we||{};var xe=1,Ce=1;function Ne(Qe){var Ye=Qe.match(i);Ye&&(xe+=Ye.length);var Ue=Qe.lastIndexOf(y);Ce=~Ue?Qe.length-Ue:Ce+Qe.length}function Fe(){var Qe={line:xe,column:Ce};return function(Ye){return Ye.position=new Me(Qe),Ke(),Ye}}function Me(Qe){this.start=Qe,this.end={line:xe,column:Ce},this.source=we.source}Me.prototype.content=ye;function Le(Qe){var Ye=new Error(we.source+":"+xe+":"+Ce+": "+Qe);if(Ye.reason=Qe,Ye.filename=we.source,Ye.line=xe,Ye.column=Ce,Ye.source=ye,!we.silent)throw Ye}function ze(Qe){var Ye=Qe.exec(ye);if(Ye){var Ue=Ye[0];return Ne(Ue),ye=ye.slice(Ue.length),Ye}}function Ke(){ze(e)}function Ve(Qe){var Ye;for(Qe=Qe||[];Ye=je();)Ye!==!1&&Qe.push(Ye);return Qe}function je(){var Qe=Fe();if(!($!=ye.charAt(0)||E!=ye.charAt(1))){for(var Ye=2;M!=ye.charAt(Ye)&&(E!=ye.charAt(Ye)||$!=ye.charAt(Ye+1));)++Ye;if(Ye+=2,M===ye.charAt(Ye-1))return Le("End of comment missing");var Ue=ye.slice(2,Ye-2);return Ce+=2,Ne(Ue),ye=ye.slice(Ye),Ce+=2,Qe({type:H,comment:Ue})}}function We(){var Qe=Fe(),Ye=ze(t);if(Ye){if(je(),!ze(o))return Le("property missing ':'");var Ue=ze(d),ot=Qe({type:Z,property:be(Ye[0].replace(n,M)),value:Ue?be(Ue[0].replace(n,M)):M});return ze(p),ot}}function Xe(){var Qe=[];Ve(Qe);for(var Ye;Ye=We();)Ye!==!1&&(Qe.push(Ye),Ve(Qe));return Qe}return Ke(),Xe()};function be(ye){return ye?ye.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(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cjs$1,"__esModule",{value:!0}),cjs$1.default=e;var i=n(requireInlineStyleParser());function e(t,o){var d=null;if(!t||typeof t!="string")return d;var p=(0,i.default)(t),h=typeof o=="function";return p.forEach(function(y){if(y.type==="declaration"){var $=y.property,E=y.value;h?o($,E,y):E&&(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,e=/^[^-]+$/,t=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,d=function($){return!$||e.test($)||n.test($)},p=function($,E){return E.toUpperCase()},h=function($,E){return"".concat(E,"-")},y=function($,E){return E===void 0&&(E={}),d($)?$:($=$.toLowerCase(),E.reactCompat?$=$.replace(o,h):$=$.replace(t,h),$.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()),e=requireUtilities();function t(o,d){var p={};return!o||typeof o!="string"||(0,i.default)(o,function(h,y){h&&y&&(p[(0,e.camelCase)(h,d)]=y)}),p}return t.default=t,cjs=t,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(n){return i;function i(e){const t=e&&e.position&&e.position[n]||{};if(typeof t.line=="number"&&t.line>0&&typeof t.column=="number"&&t.column>0)return{line:t.line,column:t.column,offset:typeof t.offset=="number"&&t.offset>-1?t.offset:void 0}}}function position$1(n){const i=pointStart(n),e=pointEnd(n);if(i&&e)return{start:i,end:e}}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,e,t){super(),typeof e=="string"&&(t=e,e=void 0);let o="",d={},p=!1;if(e&&("line"in e&&"column"in e?d={place:e}:"start"in e&&"end"in e?d={place:e}:"type"in e?d={ancestors:[e],place:e.position}:d={...e}),typeof i=="string"?o=i:!d.cause&&i&&(p=!0,o=i.message,d.cause=i),!d.ruleId&&!d.source&&typeof t=="string"){const y=t.indexOf(":");y===-1?d.ruleId=t:(d.source=t.slice(0,y),d.ruleId=t.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 e=i.filePath||void 0;let t;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");t=developmentCreate(e,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 4,387 bytes, line 53
53if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");t=productionCreate(e,i.jsx,i.jsxs)}const o={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:t,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:e,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,e){if(i.type==="element")return element$1(n,i,e);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return mdxExpression(n,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return mdxJsxElement(n,i,e);if(i.type==="mdxjsEsm")return mdxEsm(n,i);if(i.type==="root")return root$3(n,i,e);if(i.type==="text")return text$5(n,i)}function element$1(n,i,e){const t=n.schema;let o=t;i.tagName.toLowerCase()==="svg"&&t.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=t,n.create(i,d,p,e)}function mdxExpression(n,i){if(i.data&&i.data.estree&&n.evaluater){const t=i.data.estree.body[0];return t.type,n.evaluater.evaluateExpression(t.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,e){const t=n.schema;let o=t;i.name==="svg"&&t.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=t,n.create(i,d,p,e)}function root$3(n,i,e){const t={};return addChildren(t,createChildren(n,i)),n.create(i,n.Fragment,t,e)}function text$5(n,i){return i.value}function addNode(n,i,e,t){typeof e!="string"&&e!==n.Fragment&&n.passNode&&(i.node=t)}function addChildren(n,i){if(i.length>0){const e=i.length>1?i:i[0];e&&(n.children=e)}}function productionCreate(n,i,e){return t;function t(o,d,p,h){const $=Array.isArray(p.children)?e:i;return h?$(d,p,h):$(d,p)}}function developmentCreate(n,i){return e;function e(t,o,d,p){const h=Array.isArray(d.children),y=pointStart(t);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 e={};let t,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)?t=h:e[p]=h}}if(t){const d=e.style||(e.style={});d[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=t}return e}function createJsxElementProps(n,i){const e={};for(const t of i.attributes)if(t.type==="mdxJsxExpressionAttribute")if(t.data&&t.data.estree&&n.evaluater){const d=t.data.estree.body[0];d.type;const p=d.expression;p.type;const h=p.properties[0];h.type,Object.assign(e,n.evaluater.evaluateExpression(h.argument))}else crashEstree(n,i.position);else{const o=t.name;let d;if(t.value&&typeof t.value=="object")if(t.value.data&&t.value.data.estree&&n.evaluater){const h=t.value.data.estree.body[0];h.type,d=n.evaluater.evaluateExpression(h.expression)}else crashEstree(n,i.position);else d=t.value===null?!0:t.value;e[o]=d}return e}function createChildren(n,i){const e=[];let t=-1;const o=n.passKeys?new Map:emptyMap;for(;++t<i.children.length;){const d=i.children[t];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 $=o.get(y)||0;p=y+"-"+$,o.set(y,$+1)}}const h=one$1(n,d,p);h!==void 0&&e.push(h)}return e}function createProperty(n,i,e){const t=find(n.schema,i);if(!(e==null||typeof e=="number"&&Number.isNaN(e))){if(Array.isArray(e)&&(e=t.commaSeparated?stringify$1(e):stringify(e)),t.property==="style"){let o=typeof e=="object"?e:parseStyle(n,Str
vendor: 6,275 bytes, line 53
53ing(e));return n.stylePropertyNameCase==="css"&&(o=transformStylesToCssCasing(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&t.space?hastToReact[t.property]||t.property:t.attribute,e]}}function parseStyle(n,i){try{return styleToJs(i,{reactCompat:!0})}catch(e){if(n.ignoreInvalidStyle)return{};const t=e,o=new VFileMessage("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:t,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,e){let t;if(!e)t={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}t=p}else t=name(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(t.type==="Literal"){const o=t.value;return own$4.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(t);crashEstree(n)}function crashEstree(n,i){const e=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw e.file=n.filePath||void 0,e.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",e}function transformStylesToCssCasing(n){const i={};let e;for(e in n)own$4.call(n,e)&&(i[transformStyleToCssCasing(e)]=n[e]);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 e=emptyOptions$4,t=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,o=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return one(n,t,o)}function one(n,i,e){if(node(n)){if("value"in n)return n.type==="html"&&!e?"":n.value;if(i&&"alt"in n&&n.alt)return n.alt;if("children"in n)return all(n.children,i,e)}return Array.isArray(n)?all(n,i,e):""}function all(n,i,e){const t=[];let o=-1;for(;++o<n.length;)t[o]=one(n[o],i,e);return t.join("")}function node(n){return!!(n&&typeof n=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(n){const i="&"+n+";";element.innerHTML=i;const e=element.textContent;return e.charCodeAt(e.length-1)===59&&n!=="semi"||e===i?!1:e}function splice(n,i,e,t){const o=n.length;let d=0,p;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,e=e>0?e:0,t.length<1e4)p=Array.from(t),p.unshift(i,e),n.splice(...p);else for(e&&n.splice(i,e);d<t.length;)p=t.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 e=-1;for(;++e<n.length;)syntaxExtension(i,n[e]);return i}function syntaxExtension(n,i){let e;for(e in i){const o=(hasOwnProperty.call(n,e)?n[e]:void 0)||(n[e]={}),d=i[e];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 e=-1;const t=[];for(;++e<i.length;)(i[e].add==="after"?n:t).push(i[e]);splice(n,0,0,t)}function decodeNumericCharacterReference(n,i){const e=Number.parseInt(n,i);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCodePoint(e)}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(e){return e!==null&&e>-1&&n.test(String.fromCharCode(e))}}function normalizeUri(n){const i=[];let e=-1,t=0,o=0;for(;++e<n.length;){const d=n.charCodeAt(e);let p="";if(d===37&&asciiAlphanumeric(n.charCodeAt(e+1))&&asciiAlphanumeric(n.charCodeAt(e+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(e+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(t,e),encodeURIComponent(p)),t=e+o+1,p=""),o&&(e+=o,o=0)}return i.join("")+n.slice(t)}function factorySpace(n,i,e,t){const o=t?t-1:Number.POSITIVE_INFINITY;let d=0;return p;function p(y){return markdownSpace(y)?(n.enter(e),h(y)):i(y)}function h(y){return markdownSpace(y)&&d++<o?(n.consume(y),h):(n.exit(e),i(y))}}const content$1={tokenize:initializeContent};function initializeContent(n){const i=n.attempt(this.parser.constructs.contentInitial,t,o);let e;return i;function t(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:e});return e&&(e.next=y),e=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,e=[];let t=0,o,d,p;return h;function h(Ne){if(t<e.length){const Fe=e[t];return i.containerState=Fe[1],n.attempt(Fe[0].continuation,y,$)(Ne)}return $(Ne)}
vendor: 8,956 bytes, line 53
53function y(Ne){if(t++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&Ce();const Fe=i.events.length;let Me=Fe,Le;for(;Me--;)if(i.events[Me][0]==="exit"&&i.events[Me][1].type==="chunkFlow"){Le=i.events[Me][1].end;break}xe(t);let ze=Fe;for(;ze<i.events.length;)i.events[ze][1].end={...Le},ze++;return splice(i.events,Me+1,0,i.events.slice(Fe)),i.events.length=ze,$(Ne)}return h(Ne)}function $(Ne){if(t===e.length){if(!o)return H(Ne);if(o.currentConstruct&&o.currentConstruct.concrete)return be(Ne);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},n.check(containerConstruct,E,M)(Ne)}function E(Ne){return o&&Ce(),xe(t),H(Ne)}function M(Ne){return i.parser.lazy[i.now().line]=t!==e.length,p=i.now().offset,be(Ne)}function H(Ne){return i.containerState={},n.attempt(containerConstruct,Z,be)(Ne)}function Z(Ne){return t++,e.push([i.currentConstruct,i.containerState]),H(Ne)}function be(Ne){if(Ne===null){o&&Ce(),xe(0),n.consume(Ne);return}return o=o||i.parser.flow(i.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:d}),ye(Ne)}function ye(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")),t=0,i.interrupt=void 0,h):(n.consume(Ne),ye)}function we(Ne,Fe){const Me=i.sliceStream(Ne);if(Fe&&Me.push(null),Ne.previous=d,d&&(d.next=Ne),d=Ne,o.defineSkip(Ne.start),o.write(Me),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 ze=i.events.length;let Ke=ze,Ve,je;for(;Ke--;)if(i.events[Ke][0]==="exit"&&i.events[Ke][1].type==="chunkFlow"){if(Ve){je=i.events[Ke][1].end;break}Ve=!0}for(xe(t),Le=ze;Le<i.events.length;)i.events[Le][1].end={...je},Le++;splice(i.events,Ke+1,0,i.events.slice(ze)),i.events.length=Le}}function xe(Ne){let Fe=e.length;for(;Fe-- >Ne;){const Me=e[Fe];i.containerState=Me[1],Me[0].exit.call(i,n)}e.length=Ne}function Ce(){o.write([null]),d=void 0,o=void 0,i.containerState._closeFlow=void 0}}function tokenizeContainer(n,i,e){return factorySpace(n,n.attempt(this.parser.constructs.document,i,e),"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,e){const t=[];let o=-1;for(;++o<n.length;){const d=n[o].resolveAll;d&&!t.includes(d)&&(i=d(i,e),t.push(d))}return i}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(n,i){let e=-1,t,o,d,p,h,y,$,E;for(;++e<n.length;)if(n[e][0]==="enter"&&n[e][1].type==="attentionSequence"&&n[e][1]._close){for(t=e;t--;)if(n[t][0]==="exit"&&n[t][1].type==="attentionSequence"&&n[t][1]._open&&i.sliceSerialize(n[t][1]).charCodeAt(0)===i.sliceSerialize(n[e][1]).charCodeAt(0)){if((n[t][1]._close||n[e][1]._open)&&(n[e][1].end.offset-n[e][1].start.offset)%3&&!((n[t][1].end.offset-n[t][1].start.offset+n[e][1].end.offset-n[e][1].start.offset)%3))continue;y=n[t][1].end.offset-n[t][1].start.offset>1&&n[e][1].end.offset-n[e][1].start.offset>1?2:1;const M={...n[t][1].end},H={...n[e][1].start};movePoint(M,-y),movePoint(H,y),p={type:y>1?"strongSequence":"emphasisSequence",start:M,end:{...n[t][1].end}},h={type:y>1?"strongSequence":"emphasisSequence",start:{...n[e][1].start},end:H},d={type:y>1?"strongText":"emphasisText",start:{...n[t][1].end},end:{...n[e][1].start}},o={type:y>1?"strong":"emphasis",start:{...p.start},end:{...h.end}},n[t][1].end={...p.start},n[e][1].start={...h.end},$=[],n[t][1].end.offset-n[t][1].start.offset&&($=push($,[["enter",n[t][1],i],["exit",n[t][1],i]])),$=push($,[["enter",o,i],["enter",p,i],["exit",p,i],["enter",d,i]]),$=push($,resolveAll(i.parser.constructs.insideSpan.null,n.slice(t+1,e),i)),$=push($,[["exit",d,i],["enter",h,i],["exit",h,i],["exit",o,i]]),n[e][1].end.offset-n[e][1].start.offset?(E=2,$=push($,[["enter",n[e][1],i],["exit",n[e][1],i]])):E=0,splice(n,t-1,e-t+3,$),e=t+$.length-E-2;break}}for(e=-1;++e<n.length;)n[e][1].type==="attentionSequence"&&(n[e][1].type="data");return n}function tokenizeAttention(n,i){const e=this.parser.constructs.attentionMarkers.null,t=this.previous,o=classifyCharacter(t);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 $=n.exit("attentionSequence"),E=classifyCharacter(y),M=!E||E===2&&o||e.includes(y),H=!o||o===2&&E||e.includes(t);return $._open=!!(d===42?M:M&&(o||!H)),$._close=!!(d===42?H:H&&(E||!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,e){let t=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?e(Z):$(Z)}function p(Z){return Z===43||Z===45||Z===46||asciiAlphanumeric(Z)?(t=1,h(Z)):$(Z)}function h(Z){return Z===58?(n.consume(Z),t=0,y):(Z===43||Z===45||Z===46||asciiAlphanumeric(Z))&&t++<32?(n.consume(Z),h):(t=0,$(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)?e(Z):(n.consume(Z),y)}function $(Z){return Z===64?(n.consume(Z),E):asciiAtext(Z)?(n.consume(Z),$):e(Z)}function E(Z){return asciiAlphanumeric(Z)?M(Z):e(Z)}function M(Z){return Z===46?(n.consume(Z),t=0,E):Z===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(Z),n.exit("autolinkMarker"),n.exit("autolink"),i):H(Z)}function H(Z){if((Z===45||asciiAlphanumeric(Z))&&t++<63){const be=Z===45?H:M;return n.consume(Z),be}return e(Z)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(n,i,e){return t;function t(d){return markdownSpace(d)?factorySpace(n,o,"linePrefix")(d):o(d)}function o(d){return d===null||markdownLineEnding(d)?i(d):e(d)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$2,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(n,i,e){const t=this;return o;function o(p){if(p===62){const h=t.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 e(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,e){const t=this;return o;function o(p){return markdownSpace(p)?factorySpace(n,d,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):d(p)}function d(p){return n.attempt(blockQuote,i,e)(p)}}function exit$2(n){n.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(n,i,e){return t;function t(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):e(d)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(n,i,e){const t=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"),$):(n.enter("characterReferenceValue"),d=31,p=asciiAlphanumeric,E(M))}function $(M){return M===88||M===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(M),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),d=6,p=asciiHexDigit,E):(n.enter("characterReferenceValue"),d=7,p=asciiDigit,E(M))}function E(M){if(M===59&&o){const H=n.exit("characterReferenceValue");return p===asciiAlphanumeric&&!decodeNamedCharacterReference(t.sliceSerialize(H))?e(M):(n.enter("characterReferenceMarker"),n.consume(M),n.exit("characterReferenceMarker"),n.exit("characterReference"),i)}return p(M)&&o++<d?(n.consume(M),E):e(M)}}const nonLazyContinuation$1={partial:!0,tokenize:tokenizeNonLazyContinuation$1},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(n,i,e){const t=this,o={partial:!0,tokenize:Me};let d=0,p=0,h;return y;function y(Le){return $(Le)}function $(Le){const ze=t.events[t.events.length-1];return d=ze&&ze[1].type==="linePrefix"?ze[2].sliceSerialize(ze[1],!0).length:0,h=Le,n.enter("co
53deFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),E(Le)}function E(Le){return Le===h?(p++,n.consume(Le),E):p<3?e(Le):(n.exit("codeFencedFenceSequence"),markdownSpace(Le)?factorySpace(n,M,"whitespace")(Le):M(Le))}function M(Le){return Le===null||markdownLineEnding(Le)?(n.exit("codeFencedFence"),t.interrupt?i(Le):n.check(nonLazyContinuation$1,ye,Fe)(Le)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),H(Le))}function H(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?e(Le):(n.consume(Le),H)}function Z(Le){return Le===null||markdownLineEnding(Le)?M(Le):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),be(Le))}function be(Le){return Le===null||markdownLineEnding(Le)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),M(Le)):Le===96&&Le===h?e(Le):(n.consume(Le),be)}function ye(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,Ce,"linePrefix",d+1)(Le):Ce(Le)}function Ce(Le){return Le===null||markdownLineEnding(Le)?n.check(nonLazyContinuation$1,ye,Fe)(Le):(n.enter("codeFlowValue"),Ne(Le))}function Ne(Le){return Le===null||markdownLineEnding(Le)?(n.exit("codeFlowValue"),Ce(Le)):(n.consume(Le),Ne)}function Fe(Le){return n.exit("codeFenced"),i(Le)}function Me(Le,ze,Ke){let Ve=0;return je;function je(Ue){return Le.enter("lineEnding"),Le.consume(Ue),Le.exit("lineEnding"),We}function We(Ue){return Le.enter("codeFencedFence"),markdownSpace(Ue)?factorySpace(Le,Xe,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Ue):Xe(Ue)}function Xe(Ue){return Ue===h?(Le.enter("codeFencedFenceSequence"),Qe(Ue)):Ke(Ue)}function Qe(Ue){return Ue===h?(Ve++,Le.consume(Ue),Qe):Ve>=p?(Le.exit("codeFencedFenceSequence"),markdownSpace(Ue)?factorySpace(Le,Ye,"whitespace")(Ue):Ye(Ue)):Ke(Ue)}function Ye(Ue){return Ue===null||markdownLineEnding(Ue)?(Le.exit("codeFencedFence"),ze(Ue)):Ke(Ue)}}}function tokenizeNonLazyContinuation$1(n,i,e){const t=this;return o;function o(p){return p===null?e(p):(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d)}function d(p){return t.parser.lazy[t.now().line]?e(p):i(p)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(n,i,e){const t=this;return o;function o($){return n.enter("codeIndented"),factorySpace(n,d,"linePrefix",5)($)}function d($){const E=t.events[t.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?p($):e($)}function p($){return $===null?y($):markdownLineEnding($)?n.attempt(furtherStart,p,y)($):(n.enter("codeFlowValue"),h($))}function h($){return $===null||markdownLineEnding($)?(n.exit("codeFlowValue"),p($)):(n.consume($),h)}function y($){return n.exit("codeIndented"),i($)}}function tokenizeFurtherStart(n,i,e){const t=this;return o;function o(p){return t.parser.lazy[t.now().line]?e(p):markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),o):factorySpace(n,d,"linePrefix",5)(p)}function d(p){const h=t.events[t.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(p):markdownLineEnding(p)?o(p):e(p)}}const codeText={name:"codeText",previous:previous$3,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(n){let i=n.length-4,e=3,t,o;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(t=e;++t<i;)if(n[t][1].type==="codeTextData"){n[e][1].type="codeTextPadding",n[i][1].type="codeTextPadding",e+=2,i-=2;break}}for(t=e-1,i++;++t<=i;)o===void 0?t!==i&&n[t][1].type!=="lineEnding"&&(o=t):(t===i||n[t][1].type==="lineEnding")&&(n[o][1].type="codeTextData",t!==o+2&&(n[o][1].end=n[t-1][1].end,n.splice(o+2,t-o-2),i-=t-o-2,t=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,e){let t=0,o,d;return p;
vendor: 29,871 bytes, line 53
53function p(M){return n.enter("codeText"),n.enter("codeTextSequence"),h(M)}function h(M){return M===96?(n.consume(M),t++,h):(n.exit("codeTextSequence"),y(M))}function y(M){return M===null?e(M):M===32?(n.enter("space"),n.consume(M),n.exit("space"),y):M===96?(d=n.enter("codeTextSequence"),o=0,E(M)):markdownLineEnding(M)?(n.enter("lineEnding"),n.consume(M),n.exit("lineEnding"),y):(n.enter("codeTextData"),$(M))}function $(M){return M===null||M===32||M===96||markdownLineEnding(M)?(n.exit("codeTextData"),y(M)):(n.consume(M),$)}function E(M){return M===96?(n.consume(M),o++,E):o===t?(n.exit("codeTextSequence"),n.exit("codeText"),i(M)):(d.type="codeTextData",$(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,e){const t=e??Number.POSITIVE_INFINITY;return t<this.left.length?this.left.slice(i,t):i>this.left.length?this.right.slice(this.right.length-t+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-t+this.left.length).reverse())}splice(i,e,t){const o=e||0;this.setCursor(Math.trunc(i));const d=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return t&&chunkedPush(this.left,t),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 e=this.left.splice(i,Number.POSITIVE_INFINITY);chunkedPush(this.right,e.reverse())}else{const e=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);chunkedPush(this.left,e.reverse())}}}function chunkedPush(n,i){let e=0;if(i.length<1e4)n.push(...i);else for(;e<i.length;)n.push(...i.slice(e,e+1e4)),e+=1e4}function subtokenize(n){const i={};let e=-1,t,o,d,p,h,y,$;const E=new SpliceBuffer(n);for(;++e<E.length;){for(;e in i;)e=i[e];if(t=E.get(e),e&&t[1].type==="chunkFlow"&&E.get(e-1)[1].type==="listItemPrefix"&&(y=t[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(t[0]==="enter")t[1].contentType&&(Object.assign(i,subcontent(E,e)),e=i[e],$=!0);else if(t[1]._container){for(d=e,o=void 0;d--;)if(p=E.get(d),p[1].type==="lineEnding"||p[1].type==="lineEndingBlank")p[0]==="enter"&&(o&&(E.get(o)[1].type="lineEndingBlank"),p[1].type="lineEnding",o=d);else if(p[1].type!=="linePrefix")break;o&&(t[1].end={...E.get(o)[1].start},h=E.slice(o,e),h.unshift(t),E.splice(o,e-o+1,h))}}return splice(n,0,Number.POSITIVE_INFINITY,E.slice(0)),!$}function subcontent(n,i){const e=n.get(i)[1],t=n.get(i)[2];let o=i-1;const d=[],p=e._tokenizer||t.parser[e.contentType](e.start),h=p.events,y=[],$={};let E,M,H=-1,Z=e,be=0,ye=0;const we=[ye];for(;Z;){for(;n.get(++o)[1]!==Z;);d.push(o),Z._tokenizer||(E=t.sliceStream(Z),Z.next||E.push(null),M&&p.defineSkip(Z.start),Z._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=!0),p.write(E),Z._isInFirstContentOfListItem&&(p._gfmTasklistFirstContentOfListItem=void 0)),M=Z,Z=Z.next}for(Z=e;++H<h.length;)h[H][0]==="exit"&&h[H-1][0]==="enter"&&h[H][1].type===h[H-1][1].type&&h[H][1].start.line!==h[H][1].end.line&&(ye=H+1,we.push(ye),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(),H=we.length;H--;){const xe=h.slice(we[H],we[H+1]),Ce=d.pop();y.push([Ce,Ce+xe.length-1]),n.splice(Ce,2,xe)}for(y.reverse(),H=-1;++H<y.length;)$[be+y[H][0]]=be+y[H][1],be+=y[H][1]-y[H][0]-1;return $}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(n){return subtokenize(n),n}function tokenizeContent(n,i){let e;return t;function t(h){return n.enter("content"),e=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"),e.next=n.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,o}}function tokenizeContinuation(n,i,e){const t=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 e(p);const h=t.events[t.events.length-1];return!t.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(p):n.interrupt(t.parser.constructs.flow,e,i)(p)}}function factoryDestination(n,i,e,t,o,d,p,h,y){const $=y||Number.POSITIVE_INFINITY;let E=0;return M;function M(xe){return xe===60?(n.enter(t),n.enter(o),n.enter(d),n.consume(xe),n.exit(d),H):xe===null||xe===32||xe===41||asciiControl(xe)?e(xe):(n.enter(t),n.enter(p),n.enter(h),n.enter("chunkString",{contentType:"string"}),ye(xe))}function H(xe){return xe===62?(n.enter(d),n.consume(xe),n.exit(d),n.exit(o),n.exit(t),i):(n.enter(h),n.enter("chunkString",{contentType:"string"}),Z(xe))}function Z(xe){return xe===62?(n.exit("chunkString"),n.exit(h),H(xe)):xe===null||xe===60||markdownLineEnding(xe)?e(xe):(n.consume(xe),xe===92?be:Z)}function be(xe){return xe===60||xe===62||xe===92?(n.consume(xe),Z):Z(xe)}function ye(xe){return!E&&(xe===null||xe===41||markdownLineEndingOrSpace(xe))?(n.exit("chunkString"),n.exit(h),n.exit(p),n.exit(t),i(xe)):E<$&&xe===40?(n.consume(xe),E++,ye):xe===41?(n.consume(xe),E--,ye):xe===null||xe===32||xe===40||asciiControl(xe)?e(xe):(n.consume(xe),xe===92?we:ye)}function we(xe){return xe===40||xe===41||xe===92?(n.consume(xe),ye):ye(xe)}}function factoryLabel$1(n,i,e,t,o,d){const p=this;let h=0,y;return $;function $(Z){return n.enter(t),n.enter(o),n.consume(Z),n.exit(o),n.enter(d),E}function E(Z){return h>999||Z===null||Z===91||Z===93&&!y||Z===94&&!h&&"_hiddenFootnoteSupport"in p.parser.constructs?e(Z):Z===93?(n.exit(d),n.enter(o),n.consume(Z),n.exit(o),n.exit(t),i):markdownLineEnding(Z)?(n.enter("lineEnding"),n.consume(Z),n.exit("lineEnding"),E):(n.enter("chunkString",{contentType:"string"}),M(Z))}function M(Z){return Z===null||Z===91||Z===93||markdownLineEnding(Z)||h++>999?(n.exit("chunkString"),E(Z)):(n.consume(Z),y||(y=!markdownSpace(Z)),Z===92?H:M)}function H(Z){return Z===91||Z===92||Z===93?(n.consume(Z),h++,M):M(Z)}}function factoryTitle(n,i,e,t,o,d){let p;return h;function h(H){return H===34||H===39||H===40?(n.enter(t),n.enter(o),n.consume(H),n.exit(o),p=H===40?41:H,y):e(H)}function y(H){return H===p?(n.enter(o),n.consume(H),n.exit(o),n.exit(t),i):(n.enter(d),$(H))}function $(H){return H===p?(n.exit(d),y(p)):H===null?e(H):markdownLineEnding(H)?(n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),factorySpace(n,$,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),E(H))}function E(H){return H===p||H===null||markdownLineEnding(H)?(n.exit("chunkString"),$(H)):(n.consume(H),H===92?M:E)}function M(H){return H===p||H===92?(n.consume(H),E):E(H)}}function factoryWhitespace(n,i){let e;return t;function t(o){return markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),e=!0,t):markdownSpace(o)?factorySpace(n,t,e?"linePrefix":"lineSuffix")(o):i(o)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(n,i,e){const t=this;let o;return d;function d(Z){return n.enter("definition"),p(Z)}function p(Z){return factoryLabel$1.call(t,n,h,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(Z)}function h(Z){return o=normalizeIdentifier(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)),Z===58?(n.enter("definitionMarker"),n.consume(Z),n.exit("definitionMarker"),y):e(Z)}function y(Z){return markdownLineEndingOrSpace(Z)?factoryWhitespace(n,$)(Z):$(Z)}function $(Z){return factoryDestination(n,E,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Z)}function E(Z){return n.attempt(titleBefore,M,M)(Z)}function M(Z){return markdownSpace(Z)?factorySpace(n,H,"whitespace")(Z):H(Z)}function H(Z){return Z===null||markdownLineEnding(Z)?(n.exit("definition"),t.parser.defined.push(o),i(Z)):e(Z)}}function tokenizeTitleBefore(n,i,e){return t;function t(h){return markdownLineEndingOrSpace(h)?factoryWhitespace(n,o)(h):e(h)}function o(h){return factoryTitle(n,d,e,"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):e(h)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(n,i,e){return t;function t(d){return n.enter("hardBreakEscape"),n.consume(d),o}function o(d){return markdownLineEnding(d)?(n.exit("hardBreakEscape"),i(d)):e(d)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(n,i){let e=n.length-2,t=3,o,d;return n[t][1].type==="whitespace"&&(t+=2),e-2>t&&n[e][1].type==="whitespace"&&(e-=2),n[e][1].type==="atxHeadingSequence"&&(t===e-1||e-4>t&&n[e-2][1].type==="whitespace")&&(e-=t+1===e?2:4),e>t&&(o={type:"atxHeadingText",start:n[t][1].start,end:n[e][1].end},d={type:"chunkText",start:n[t][1].start,end:n[e][1].end,contentType:"text"},splice(n,t,e-t+1,[["enter",o,i],["enter",d,i],["exit",d,i],["exit",o,i]])),n}function tokenizeHeadingAtx(n,i,e){let t=0;return o;function o(E){return n.enter("atxHeading"),d(E)}function d(E){return n.enter("atxHeadingSequence"),p(E)}function p(E){return E===35&&t++<6?(n.consume(E),p):E===null||markdownLineEndingOrSpace(E)?(n.exit("atxHeadingSequence"),h(E)):e(E)}function h(E){return E===35?(n.enter("atxHeadingSequence"),y(E)):E===null||markdownLineEnding(E)?(n.exit("atxHeading"),i(E)):markdownSpace(E)?factorySpace(n,h,"whitespace")(E):(n.enter("atxHeadingText"),$(E))}function y(E){return E===35?(n.consume(E),y):(n.exit("atxHeadingSequence"),h(E))}function $(E){return E===null||E===35||markdownLineEndingOrSpace(E)?(n.exit("atxHeadingText"),h(E)):(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,e){const t=this;let o,d,p,h,y;return $;function $(He){return E(He)}function E(He){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(He),M}function M(He){return He===33?(n.consume(He),H):He===47?(n.consume(He),d=!0,ye):He===63?(n.consume(He),o=3,t.interrupt?i:Be):asciiAlpha(He)?(n.consume(He),p=String.fromCharCode(He),we):e(He)}function H(He){return He===45?(n.consume(He),o=2,Z):He===91?(n.consume(He),o=5,h=0,be):asciiAlpha(He)?(n.consume(He),o=4,t.interrupt?i:Be):e(He)}function Z(He){return He===45?(n.consume(He),t.interrupt?i:Be):e(He)}function be(He){const Ot="CDATA[";return He===Ot.charCodeAt(h++)?(n.consume(He),h===Ot.length?t.interrupt?i:Xe:be):e(He)}function ye(He){return asciiAlpha(He)?(n.consume(He),p=String.fromCharCode(He),we):e(He)}function we(He){if(He===null||He===47||He===62||markdownLineEndingOrSpace(He)){const Ot=He===47,Ct=p.toLowerCase();return!Ot&&!d&&htmlRawNames.includes(Ct)?(o=1,t.interrupt?i(He):Xe(He)):htmlBlockNames.includes(p.toLowerCase())?(o=6,Ot?(n.consume(He),xe):t.interrupt?i(He):Xe(He)):(o=7,t.interrupt&&!t.parser.lazy[t.now().line]?e(He):d?Ce(He):Ne(He))}return He===45||asciiAlphanumeric(He)?(n.consume(He),p+=String.fromCharCode(He),we):e(He)}function xe(He){return He===62?(n.consume(He),t.interrupt?i:Xe):e(He)}function Ce(He){return markdownSpace(He)?(n.consume(He),Ce):je(He)}function Ne(He){return He===47?(n.consume(He),je):He===58||He===95||asciiAlpha(He)?(n.consume(He),Fe):markdownSpace(He)?(n.consume(He),Ne):je(He)}function Fe(He){return He===45||He===46||He===58||He===95||asciiAlphanumeric(He)?(n.consume(He),Fe):Me(He)}function Me(He){return He===61?(n.consume(He),Le):markdownSpace(He)?(n.consume(He),Me):Ne(He)}function Le(He){return He===null||He===60||He===61||He===62||He===96?e(He):He===34||He===39?(n.consume(He),y=He,ze):markdownSpace(He)?(n.consume(He),Le):Ke(He)}function ze(He){return He===y?(n.consume(He),y=null,Ve):He===null||markdownLineEnding(He)?e(He):(n.consume(He),ze)}function Ke(He){return He===null||He===34||He===39||He===47||He===60||He===61||He===62||He===96||markdownLineEndingOrSpace(He)?Me(He):(n.consume(He),Ke)}function Ve(He){return He===47||He===62||markdownSpace(He)?Ne(He):e(He)}function je(He){return He===62?(n.consume(He),We):e(He)}function We(He){return He===null||markdownLineEnding(He)?Xe(He):markdownSpace(He)?(n.consume(He),We):e(He)}function Xe(He){return He===45&&o===2?(n.consume(He),ot):He===60&&o===1?(n.consume(He),dt):He===62&&o===4?(n.consume(He),qe):He===63&&o===3?(n.consume(He),Be):He===93&&o===5?(n.consume(He),pt):markdownLineEnding(He)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(blankLineBefore,rt,Qe)(He)):He===null||markdownLineEnding(He)?(n.exit("htmlFlowData"),Qe(He)):(n.consume(He),Xe)}function Qe(He){return n.check(nonLazyContinuationStart,Ye,rt)(He)}function Ye(He){return n.enter("lineEnding"),n.consume(He),n.exit("lineEnding"),Ue}function Ue(He){return He===null||markdownLineEnding(He)?Qe(He):(n.enter("htmlFlowData"),Xe(He))}function ot(He){return He===45?(n.consume(He),Be):Xe(He)}function dt(He){return He===47?(n.consume(He),p="",st):Xe(He)}function st(He){if(He===62){const Ot=p.toLowerCase();return htmlRawNames.includes(Ot)?(n.consume(He),qe):Xe(He)}return asciiAlpha(He)&&p.length<8?(n.consume(He),p+=String.fromCharCode(He),st):Xe(He)}function pt(He){return He===93?(n.consume(He),Be):Xe(He)}function Be(He){return He===62?(n.consume(He),qe):He===45&&o===2?(n.consume(He),Be):Xe(He)}function qe(He){return He===null||markdownLineEnding(He)?(n.exit("htmlFlowData"),rt(He)):(n.consume(He),qe)}function rt(He){return n.exit("htmlFlow"),i(He)}}function tokenizeNonLazyContinuationStart(n,i,e){const t=this;return o;function o(p){return markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d):e(p)}function d(p){return t.parser.lazy[t.now().line]?e(p):i(p)}}function tokenizeBlankLineBefore(n,i,e){return t;function t(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(blankLine,i,e)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(n,i,e){const t=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),$):Be===47?(n.consume(Be),Me):Be===63?(n.consume(Be),Ne):asciiAlpha(Be)?(n.consume(Be),Ke):e(Be)}function $(Be){return Be===45?(n.consume(Be),E):Be===91?(n.consume(Be),d=0,be):asciiAlpha(Be)?(n.consume(Be),Ce):e(Be)}function E(Be){return Be===45?(n.consume(Be),Z):e(Be)}function M(Be){return Be===null?e(Be):Be===45?(n.consume(Be),H):markdownLineEnding(Be)?(p=M,dt(Be)):(n.consume(Be),M)}function H(Be){return Be===45?(n.consume(Be),Z):M(Be)}function Z(Be){return Be===62?ot(Be):Be===45?H(Be):M(Be)}function be(Be){const qe="CDATA[";return Be===qe.charCodeAt(d++)?(n.consume(Be),d===qe.length?ye:be):e(Be)}function ye(Be){return Be===null?e(Be):Be===93?(n.consume(Be),we):markdownLineEnding(Be)?(p=ye,dt(Be)):(n.consume(Be),ye)}function we(Be){return Be===93?(n.consume(Be),xe):ye(Be)}function xe(Be){return Be===62?ot(Be):Be===93?(n.consume(Be),xe):ye(Be)}function Ce(Be){return Be===null||Be===62?ot(Be):markdownLineEnding(Be)?(p=Ce,dt(Be)):(n.consume(Be),Ce)}function Ne(Be){return Be===null?e(Be):Be===63?(n.consume(Be),Fe):markdownLineEnding(Be)?(p=Ne,dt(Be)):(n.consume(Be),Ne)}function Fe(Be){return Be===62?ot(Be):Ne(Be)}function Me(Be){return asciiAlpha(Be)?(n.consume(Be),Le):e(Be)}function Le(Be){return Be===45||asciiAlphanumeric(Be)?(n.consume(Be),Le):ze(Be)}function ze(Be){return markdownLineEnding(Be)?(p=ze,dt(Be)):markdownSpace(Be)?(n.consume(Be),ze):ot(Be)}function Ke(Be){return Be===45||asciiAlphanumeric(Be)?(n.consume(Be),Ke):Be===47||Be===62||markdownLineEndingOrSpace(Be)?Ve(Be):e(Be)}function Ve(Be){return Be===47?(n.consume(Be),ot):Be===58||Be===95||asciiAlpha(Be)?(n.consume(Be),je):markdownLineEnding(Be)?(p=Ve,dt(Be)):markdownSpace(Be)?(n.consume(Be),Ve):ot(Be)}function je(Be){return Be===45||Be===46||Be===58||Be===95||asciiAlphanumeric(Be)?(n.consume(Be),je):We(Be)}function We(Be){return Be===61?(n.consume(Be),Xe):markdownLineEnding(Be)?(p=We,dt(Be)):markdownSpace(Be)?(n.consume(Be),We):Ve(Be)}function Xe(Be){return Be===null||Be===60||Be===61||Be===62||Be===96?e(Be):Be===34||Be===39?(n.consume(Be),o=Be,Qe):markdownLineEnding(Be)?(p=Xe,dt(Be)):markdownSpace(Be)?(n.consume(Be),Xe):(n.consume(Be),Ye)}function Qe(Be){return Be===o?(n.consume(Be),o=void 0,Ue):Be===null?e(Be):markdownLineEnding(Be)?(p=Qe,dt(Be)):(n.consume(Be),Qe)}function Ye(Be){return Be===null||Be===34||Be===39||Be===60||Be===61||Be===96?e(Be):Be===47||Be===62||markdownLineEndingOrSpace(Be)?Ve(Be):(n.consume(Be),Ye)}function Ue(Be){return Be===47||Be===62||markdownLineEndingOrSpace(Be)?Ve(Be):e(Be)}function ot(Be){return Be===62?(n.consume(Be),n.exit("htmlTextData"),n.exit("htmlText"),i):e(Be)}function dt(Be){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(Be),n.exit("lineEnding"),st}function st(Be){return markdownSpace(Be)?factorySpace(n,pt,"linePrefix",t.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 e=[];for(;++i<n.length;){const t=n[i][1];if(e.push(n[i]),t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd"){const o=t.type==="labelImage"?4:2;t.type="data",i+=o}}return n.length!==e.length&&splice(n,0,n.length,e),n}function resolveToLabelEnd(n,i){let e=n.length,t=0,o,d,p,h;for(;e--;)if(o=n[e][1],d){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[e][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(p){if(n[e][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(d=e,o.type!=="labelLink")){t=2;break}}else o.type==="labelEnd"&&(p=e);const y={type:n[d][1].type==="labelLink"?"link":"image",start:{...n[d][1].start},end:{...n[n.length-1][1].end}},$={type:"label",start:{...n[d][1].start},end:{...n[p][1].end}},E={type:"labelText",start:{...n[d+t+2][1].end},end:{...n[p-2][1].start}};return h=[["enter",y,i],["enter",$,i]],h=push(h,n.slice(d+1,d+t+3)),h=push(h,[["enter",E,i]]),h=push(h,resolveAll(i.parser.constructs.insideSpan.null,n.slice(d+t+4,p-3),i)),h=push(h,[["exit",E,i],n[p-2],n[p-1],["exit",$,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,e){const t=this;let o=t.events.length,d,p;for(;o--;)if((t.events[o][1].type==="labelImage"||t.events[o][1].type==="labelLink")&&!t.events[o][1]._balanced){d=t.events[o][1];break}return h;function h(H){return d?d._inactive?M(H):(p=t.parser.defined.includes(normalizeIdentifier(t.sliceSerialize({start:d.end,end:t.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(H),n.exit("labelMarker"),n.exit("labelEnd"),y):e(H)}function y(H){return H===40?n.attempt(resourceConstruct,E,p?E:M)(H):H===91?n.attempt(referenceFullConstruct,E,p?$:M)(H):p?E(H):M(H)}function $(H){return n.attempt(referenceCollapsedConstruct,E,M)(H)}function E(H){return i(H)}function M(H){return d._balanced=!0,e(H)}}function tokenizeResource(n,i,e){return t;function t(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?E(M):factoryDestination(n,p,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(M)}function p(M){return markdownLineEndingOrSpace(M)?factoryWhitespace(n,y)(M):E(M)}function h(M){return e(M)}function y(M){return M===34||M===39||M===40?factoryTitle(n,$,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(M):E(M)}function $(M){return markdownLineEndingOrSpace(M)?factoryWhitespace(n,E)(M):E(M)}function E(M){return M===41?(n.enter("resourceMarker"),n.consume(M),n.exit("resourceMarker"),n.exit("resource"),i):e(M)}}function tokenizeReferenceFull(n,i,e){const t=this;return o;function o(h){return factoryLabel$1.call(t,n,d,p,"reference","referenceMarker","referenceString")(h)}function d(h){return t.parser.defined.includes(normalizeIdentifier(t.sliceSerialize(t.events[t.events.length-1][1]).slice(1,-1)))?i(h):e(h)}function p(h){return e(h)}}function tokenizeReferenceCollapsed(n,i,e){return t;function t(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):e(d)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(n,i,e){const t=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):e(h)}function p(h){return h===94&&"_hiddenFootnoteSupport"in t.parser.constructs?e(h):i(h)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(n,i,e){const t=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 t.parser.constructs?e(p):i(p)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(n,i){return e;function e(t){return n.enter("lineEnding"),n.consume(t),n.exit("lineEnding"),factorySpace(n,i,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(n,i,e){let t=0,o;return d;function d($){return n.enter("thematicBreak"),p($)}function p($){return o=$,h($)}function h($){return $===o?(n.enter("thematicBreakSequence"),y($)):t>=3&&($===null||markdownLineEnding($))?(n.exit("thematicBreak"),i($)):e($)}function y($){return $===o?(n.consume($),t++,y):(n.exit("thematicBreakSequence"),markdownSpace($)?factorySpace(n,h,"whitespace")($):h($))}}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,e){const t=this,o=t.events[t.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 be=t.containerState.type||(Z===42||Z===43||Z===45?"listUnordered":"listOrdered");if(be==="listUnordered"?!t.containerState.marker||Z===t.containerState.marker:asciiDigit(Z)){if(t.containerState.type||(t.containerState.type=be,n.enter(be,{_container:!0})),be==="listUnordered")return n.enter("listItemPrefix"),Z===42||Z===45?n.check(thematicBreak$2,e,$)(Z):$(Z);if(!t.interrupt||Z===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),y(Z)}return e(Z)}function y(Z){return asciiDigit(Z)&&++p<10?(n.consume(Z),y):(!t.interrupt||p<2)&&(t.containerState.marker?Z===t.containerState.marker:Z===41||Z===46)?(n.exit("listItemValue"),$(Z)):e(Z)}function $(Z){return n.enter("listItemMarker"),n.consume(Z),n.exit("listItemMarker"),t.containerState.marker=t.containerState.marker||Z,n.check(blankLine,t.interrupt?e:E,n.attempt(listItemPrefixWhitespaceConstruct,H,M))}function E(Z){return t.containerState.initialBlankLine=!0,d++,H(Z)}function M(Z){return markdownSpace(Z)?(n.enter("listItemPrefixWhitespace"),n.consume(Z),n.exit("listItemPrefixWhitespace"),H):e(Z)}function H(Z){return t.containerState.size=d+t.sliceSerialize(n.exit("listItemPrefix"),!0).length,i(Z)}}function tokenizeListContinuation(n,i,e){const t=this;return t.containerState._closeFlow=void 0,n.check(blankLine,o,d);function o(h){return t.containerState.furtherBlankLines=t.containerState.furtherBlankLines||t.containerState.initialBlankLine,factorySpace(n,i,"listItemIndent",t.containerState.size+1)(h)}function d(h){return t.containerState.furtherBlankLines||!markdownSpace(h)?(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,p(h)):(t.containerState.furtherBlankLines=void 0,t.containerState.initialBlankLine=void 0,n.attempt(indentConstruct,i,p)(h))}function p(h){return t.containerState._closeFlow=!0,t.interrupt=void 0,factorySpace(n,n.attempt(list$2,i,e),"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function tokenizeIndent$1(n,i,e){const t=this;return factorySpace(n,o,"listItemIndent",t.containerState.size+1);function o(d){const p=t.events[t.events.length-1];return p&&p[1].type==="listItemIndent"&&p[2].sliceSerialize(p[1],!0).length===t.containerState.size?i(d):e(d)}}function tokenizeListEnd(n){n.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(n,i,e){const t=this;return factorySpace(n,o,"listItemPrefixWhitespace",t.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(d){const p=t.events[t.events.length-1];return!markdownSpace(d)&&p&&p[1].type==="listItemPrefixWhitespace"?i(d):e(d)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(n,i){let e=n.length,t,o,d;for(;e--;)if(n[e][0]==="enter"){if(n[e][1].type==="content"){t=e;break}n[e][1].type==="paragraph"&&(o=e)}else n[e][1].type==="content"&&n.splice(e,1),!d&&n[e][1].type==="definition"&&(d=e);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[t][1],i]),n[t][1].end={...n[d][1].end}):n[t][1]=p,n.push(["exit",p,i]),n}function tokenizeSetextUnderline(n,i,e){const t=this;let o;return d;function d($){let E=t.events.length,M;for(;E--;)if(t.events[E][1].type!=="lineEnding"&&t.events[E][1].type!=="linePrefix"&&t.events[E][1].type!=="content"){M=t.events[E][1].type==="paragraph";break}return!t.parser.lazy[t.now().line]&&(t.interrupt||M)?(n.enter("setextHeadingLine"),o=$,p($)):e($)}function p($){return n.enter("setextHeadingLineSequence"),h($)}function h($){return $===o?(n.consume($),h):(n.exit("setextHeadingLineSequence"),markdownSpace($)?factorySpace(n,y,"lineSuffix")($):y($))}function y($){return $===null||markdownLineEnding($)?(n.exit("setextHeadingLine"),i($)):e($)}}const flow$1={tokenize:initializeFlow};function initializeFlow(n){const i=this,e=n.attempt(blankLine,t,n.attempt(this.parser.constructs.flowInitial,o,factorySpace(n,n.attempt(this.parser.constructs.flow,o,n.attempt(content,o)),"linePrefix")));return e;function t(d){if(d===null){n.consume(d);return}return n.enter("lineEndingBlank"),n.consume(d),n.exit("lineEndingBlank"),i.currentConstruct=void 0,e}function o(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),i.currentConstruct=void 0,e}}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(e){const t=this,o=this.parser.constructs[n],d=e.attempt(o,p,h);return p;function p(E){return $(E)?d(E):h(E)}function h(E){if(E===null){e.consume(E);return}return e.enter("data"),e.consume(E),y}function y(E){return $(E)?(e.exit("data"),d(E)):(e.consume(E),y)}function $(E){if(E===null)return!0;const M=o[E];let H=-1;
vendor: 4,318 bytes, line 53
53if(M)for(;++H<M.length;){const Z=M[H];if(!Z.previous||Z.previous.call(t,t.previous))return!0}return!1}}}function createResolver(n){return i;function i(e,t){let o=-1,d;for(;++o<=e.length;)d===void 0?e[o]&&e[o][1].type==="data"&&(d=o,o++):(!e[o]||e[o][1].type!=="data")&&(o!==d+2&&(e[d][1].end=e[o-1][1].end,e.splice(d+2,o-d-2),o=d+2),d=void 0);return n?n(e,t):e}}function resolveAllLineSuffixes(n,i){let e=0;for(;++e<=n.length;)if((e===n.length||n[e][1].type==="lineEnding")&&n[e-1][1].type==="data"){const t=n[e-1][1],o=i.sliceStream(t);let d=o.length,p=-1,h=0,y;for(;d--;){const $=o[d];if(typeof $=="string"){for(p=$.length;$.charCodeAt(p-1)===32;)h++,p--;if(p)break;p=-1}else if($===-2)y=!0,h++;else if($!==-1){d++;break}}if(h){const $={type:e===n.length||y||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:d?p:t.start._bufferIndex+p,_index:t.start._index+d,line:t.end.line,column:t.end.column-h,offset:t.end.offset-h},end:{...t.end}};t.end={...$.start},t.start.offset===t.end.offset?Object.assign(t,$):(n.splice(e,0,["enter",$,i],["exit",$,i]),e+=2)}e++}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,e){let t={_bufferIndex:-1,_index:0,line:e&&e.line||1,column:e&&e.column||1,offset:e&&e.offset||0};const o={},d=[];let p=[],h=[];const y={attempt:ze(Me),check:ze(Le),consume:Ce,enter:Ne,exit:Fe,interrupt:ze(Le,{interrupt:!0})},$={code:null,containerState:{},defineSkip:ye,events:[],now:be,parser:n,previous:null,sliceSerialize:H,sliceStream:Z,write:M};let E=i.tokenize.call($,y);return i.resolveAll&&d.push(i),$;function M(We){return p=push(p,We),we(),p[p.length-1]!==null?[]:(Ke(i,0),$.events=resolveAll(d,$.events,$),$.events)}function H(We,Xe){return serializeChunks(Z(We),Xe)}function Z(We){return sliceChunks(p,We)}function be(){const{_bufferIndex:We,_index:Xe,line:Qe,column:Ye,offset:Ue}=t;return{_bufferIndex:We,_index:Xe,line:Qe,column:Ye,offset:Ue}}function ye(We){o[We.line]=We.column,je()}function we(){let We;for(;t._index<p.length;){const Xe=p[t._index];if(typeof Xe=="string")for(We=t._index,t._bufferIndex<0&&(t._bufferIndex=0);t._index===We&&t._bufferIndex<Xe.length;)xe(Xe.charCodeAt(t._bufferIndex));else xe(Xe)}}function xe(We){E=E(We)}function Ce(We){markdownLineEnding(We)?(t.line++,t.column=1,t.offset+=We===-3?2:1,je()):We!==-1&&(t.column++,t.offset++),t._bufferIndex<0?t._index++:(t._bufferIndex++,t._bufferIndex===p[t._index].length&&(t._bufferIndex=-1,t._index++)),$.previous=We}function Ne(We,Xe){const Qe=Xe||{};return Qe.type=We,Qe.start=be(),$.events.push(["enter",Qe,$]),h.push(Qe),Qe}function Fe(We){const Xe=h.pop();return Xe.end=be(),$.events.push(["exit",Xe,$]),Xe}function Me(We,Xe){Ke(We,Xe.from)}function Le(We,Xe){Xe.restore()}function ze(We,Xe){return Qe;function Qe(Ye,Ue,ot){let dt,st,pt,Be;return Array.isArray(Ye)?rt(Ye):"tokenize"in Ye?rt([Ye]):qe(Ye);function qe(tt){return wt;function wt(gt){const $t=gt!==null&&tt[gt],Mt=gt!==null&&tt.null,qt=[...Array.isArray($t)?$t:$t?[$t]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return rt(qt)(gt)}}function rt(tt){return dt=tt,st=0,tt.length===0?ot:He(tt[st])}function He(tt){return wt;function wt(gt){return Be=Ve(),pt=tt,tt.partial||($.currentConstruct=tt),tt.name&&$.parser.constructs.disable.null.includes(tt.name)?Ct():tt.tokenize.call(Xe?Object.assign(Object.create($),Xe):$,y,Ot,Ct)(gt)}}function Ot(tt){return We(pt,Be),Ue}
vendor: 13,508 bytes, lines 53-55
53function Ct(tt){return Be.restore(),++st<dt.length?He(dt[st]):ot}}}function Ke(We,Xe){We.resolveAll&&!d.includes(We)&&d.push(We),We.resolve&&splice($.events,Xe,$.events.length-Xe,We.resolve($.events.slice(Xe),$)),We.resolveTo&&($.events=We.resolveTo($.events,$))}function Ve(){const We=be(),Xe=$.previous,Qe=$.currentConstruct,Ye=$.events.length,Ue=Array.from(h);return{from:Ye,restore:ot};function ot(){t=We,$.previous=Xe,$.currentConstruct=Qe,$.events.length=Ye,h=Ue,je()}}function je(){t.line in o&&t.column<2&&(t.column=o[t.line],t.offset+=o[t.line]-1)}}function sliceChunks(n,i){const e=i.start._index,t=i.start._bufferIndex,o=i.end._index,d=i.end._bufferIndex;let p;if(e===o)p=[n[e].slice(t,d)];else{if(p=n.slice(e,o),t>-1){const h=p[0];typeof h=="string"?p[0]=h.slice(t):p.shift()}d>0&&p.push(n[o].slice(0,d))}return p}function serializeChunks(n,i){let e=-1;const t=[];let o;for(;++e<n.length;){const d=n[e];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,t.push(p)}return t.join("")}function parse(n){const t={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 t;function o(d){return p;function p(h){return createTokenizer(t,d,h)}}}function postprocess(n){for(;!subtokenize(n););return n}const search=/[\0\t\n\r]/g;function preprocess(){let n=1,i="",e=!0,t;return o;function o(d,p,h){const y=[];let $,E,M,H,Z;for(d=i+(typeof d=="string"?d.toString():new TextDecoder(p||void 0).decode(d)),M=0,i="",e&&(d.charCodeAt(0)===65279&&M++,e=void 0);M<d.length;){if(search.lastIndex=M,$=search.exec(d),H=$&&$.index!==void 0?$.index:d.length,Z=d.charCodeAt(H),!$){i=d.slice(M);break}if(Z===10&&M===H&&t)y.push(-3),t=void 0;else switch(t&&(y.push(-5),t=void 0),M<H&&(y.push(d.slice(M,H)),n+=H-M),Z){case 0:{y.push(65533),n++;break}case 9:{for(E=Math.ceil(n/4)*4,y.push(-2);n++<E;)y.push(-1);break}case 10:{y.push(-4),n=1;break}default:t=!0,n=1}M=H+1}return h&&(t&&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)}function decode(n,i,e){if(i)return i;if(e.charCodeAt(0)===35){const o=e.charCodeAt(1),d=o===120||o===88;return decodeNumericCharacterReference(e.slice(d?2:1),d?16:10)}return decodeNamedCharacterReference(e)||n}const own$3={}.hasOwnProperty;function fromMarkdown(n,i,e){return typeof i!="string"&&(e=i,i=void 0),compiler(e)(postprocess(parse(e).document().write(preprocess()(n,i,!0))))}function compiler(n){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(Ut),autolinkProtocol:Ve,autolinkEmail:Ve,atxHeading:d(dn),blockQuote:d(Mt),characterEscape:Ve,characterReference:Ve,codeFenced:d(qt),codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:d(qt,p),codeText:d(cn,p),codeTextData:Ve,data:Ve,codeFlowValue:Ve,definition:d(en),definitionDestinationString:p,definitionLabelString:p,definitionTitleString:p,emphasis:d(Wt),hardBreakEscape:d(Yt),hardBreakTrailing:d(Yt),htmlFlow:d(zt,p),htmlFlowData:Ve,htmlText:d(zt,p),htmlTextData:Ve,image:d(nn),label:p,link:d(Ut),listItem:d(fn),listItemValue:H,listOrdered:d(Zt,M),listUnordered:d(Zt),paragraph:d(On),reference:He,referenceString:p,resourceDestinationString:p,resourceTitleString:p,setextHeading:d(dn),strong:d(tn),thematicBreak:d(Gt)},exit:{atxHeading:y(),atxHeadingSequence:Me,autolink:y(),autolinkEmail:$t,autolinkProtocol:gt,blockQuote:y(),characterEscapeValue:je,characterReferenceMarkerHexadecimal:Ct,characterReferenceMarkerNumeric:Ct,characterReferenceValue:tt,characterReference:wt,codeFenced:y(we),codeFencedFence:ye,codeFencedFenceInfo:Z,codeFencedFenceMeta:be,codeFlowValue:je,codeIndented:y(xe),codeText:y(Ue),codeTextData:je,data:je,definition:y(),definitionDestinationString:Fe,definitionLabelString:Ce,definitionTitleString:Ne,emphasis:y(),hardBreakEscape:y(Xe),hardBreakTrailing:y(Xe),htmlFlow:y(Qe),htmlFlowData:je,htmlText:y(Ye),htmlTextData:je,image:y(dt),label:pt,labelText:st,lineEnding:We,link:y(ot),listItem:y(),listOrdered:y(),listUnordered:y(),paragraph:y(),referenceString:Ot,resourceDestinationString:Be,resourceTitleString:qe,resource:rt,setextHeading:y(Ke),setextHeadingLineSequence:ze,setextHeadingText:Le,strong:y(),thematicBreak:y()}};configure(i,(n||{}).mdastExtensions||[]);const e={};return t;function t(ut){let bt={type:"root",children:[]};const kt={stack:[bt],tokenStack:[],config:i,enter:h,exit:$,buffer:p,resume:E,data:e},Lt=[];let Nt=-1;for(;++Nt<ut.length;)if(ut[Nt][1].type==="listOrdered"||ut[Nt][1].type==="listUnordered")if(ut[Nt][0]==="enter")Lt.push(Nt);else{const xt=Lt.pop();Nt=o(ut,xt,Nt)}for(Nt=-1;++Nt<ut.length;){const xt=i[ut[Nt][0]];own$3.call(xt,ut[Nt][1].type)&&xt[ut[Nt][1].type].call(Object.assign({sliceSerialize:ut[Nt][2].sliceSerialize},kt),ut[Nt][1])}if(kt.tokenStack.length>0){const xt=kt.tokenStack[kt.tokenStack.length-1];(xt[1]||defaultOnError).call(kt,void 0,xt[0])}for(bt.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})},Nt=-1;++Nt<i.transforms.length;)bt=i.transforms[Nt](bt)||bt;return bt}function o(ut,bt,kt){let Lt=bt-1,Nt=-1,xt=!1,Vt,Tt,it,lt;for(;++Lt<=kt;){const ct=ut[Lt];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?Nt++:Nt--,lt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(Vt&&!lt&&!Nt&&!it&&(it=Lt),lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:lt=void 0}if(!Nt&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||Nt===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(Vt){let ht=Lt;for(Tt=void 0;ht--;){const ft=ut[ht];if(ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank"){if(ft[0]==="exit")continue;Tt&&(ut[Tt][1].type="lineEndingBlank",xt=!0),ft[1].type="lineEnding",Tt=ht}else if(!(ft[1].type==="linePrefix"||ft[1].type==="blockQuotePrefix"||ft[1].type==="blockQuotePrefixWhitespace"||ft[1].type==="blockQuoteMarker"||ft[1].type==="listItemIndent"))break}it&&(!Tt||it<Tt)&&(Vt._spread=!0),Vt.end=Object.assign({},Tt?ut[Tt][1].start:ct[1].end),ut.splice(Tt||Lt,0,["exit",Vt,ct[2]]),Lt++,kt++}if(ct[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};Vt=ht,ut.splice(Lt,0,["enter",ht,ct[2]]),Lt++,kt++,it=void 0,lt=!0}}}return ut[bt][1]._spread=xt,kt}function d(ut,bt){return kt;function kt(Lt){h.call(this,ut(Lt),Lt),bt&&bt.call(this,Lt)}}function p(){this.stack.push({type:"fragment",children:[]})}function h(ut,bt,kt){this.stack[this.stack.length-1].children.push(ut),this.stack.push(ut),this.tokenStack.push([bt,kt||void 0]),ut.position={start:point(bt.start),end:void 0}}function y(ut){return bt;function bt(kt){ut&&ut.call(this,kt),$.call(this,kt)}}function $(ut,bt){const kt=this.stack.pop(),Lt=this.tokenStack.pop();if(Lt)Lt[0].type!==ut.type&&(bt?bt.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");kt.position.end=point(ut.end)}function E(){return toString$1(this.stack.pop())}function M(){this.data.expectingFirstListItemValue=!0}function H(ut){if(this.data.expectingFirstListItemValue){const bt=this.stack[this.stack.length-2];bt.start=Number.parseInt(this.sliceSerialize(ut),10),this.data.expectingFirstListItemValue=void 0}}function Z(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.lang=ut}function be(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.meta=ut}function ye(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function we(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.value=ut.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function xe(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.value=ut.replace(/(\r?\n|\r)$/g,"")}function Ce(ut){const bt=this.resume(),kt=this.stack[this.stack.length-1];kt.label=bt,kt.identifier=normalizeIdentifier(this.sliceSerialize(ut)).toLowerCase()}function Ne(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.title=ut}function Fe(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.url=ut}function Me(ut){const bt=this.stack[this.stack.length-1];if(!bt.depth){const kt=this.sliceSerialize(ut).length;bt.depth=kt}}function Le(){this.data.setextHeadingSlurpLineEnding=!0}function ze(ut){const bt=this.stack[this.stack.length-1];bt.depth=this.sliceSerialize(ut).codePointAt(0)===61?1:2}function Ke(){this.data.setextHeadingSlurpLineEnding=void 0}function Ve(ut){const kt=this.stack[this.stack.length-1].children;let Lt=kt[kt.length-1];(!Lt||Lt.type!=="text")&&(Lt=bn(),Lt.position={start:point(ut.start),end:void 0},kt.push(Lt)),this.stack.push(Lt)}function je(ut){const bt=this.stack.pop();bt.value+=this.sliceSerialize(ut),bt.position.end=point(ut.end)}function We(ut){const bt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const kt=bt.children[bt.children.length-1];kt.position.end=point(ut.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(bt.type)&&(Ve.call(this,ut),je.call(this,ut))}function Xe(){this.data.atHardBreak=!0}function Qe(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.value=ut}function Ye(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.value=ut}function Ue(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.value=ut}function ot(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const bt=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=bt,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function dt(){const ut=this.stack[this.stack.length-1];if(this.data.inReference){const bt=this.data.referenceType||"shortcut";ut.type+="Reference",ut.referenceType=bt,delete ut.url,delete ut.title}else delete ut.identifier,delete ut.label;this.data.referenceType=void 0}function st(ut){const bt=this.sliceSerialize(ut),kt=this.stack[this.stack.length-2];kt.label=decodeString(bt),kt.identifier=normalizeIdentifier(bt).toLowerCase()}function pt(){const ut=this.stack[this.stack.length-1],bt=this.resume(),kt=this.stack[this.stack.length-1];if(this.data.inReference=!0,kt.type==="link"){const Lt=ut.children;kt.children=Lt}else kt.alt=bt}function Be(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.url=ut}function qe(){const ut=this.resume(),bt=this.stack[this.stack.length-1];bt.title=ut}function rt(){this.data.inReference=void 0}function He(){this.data.referenceType="collapsed"}function Ot(ut){const bt=this.resume(),kt=this.stack[this.stack.length-1];kt.label=bt,kt.identifier=normalizeIdentifier(this.sliceSerialize(ut)).toLowerCase(),this.data.referenceType="full"}function Ct(ut){this.data.characterReferenceType=ut.type}function tt(ut){const bt=this.sliceSerialize(ut),kt=this.data.characterReferenceType;let Lt;kt?(Lt=decodeNumericCharacterReference(bt,kt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Lt=decodeNamedCharacterReference(bt);const Nt=this.stack[this.stack.length-1];Nt.value+=Lt}function wt(ut){const bt=this.stack.pop();bt.position.end=point(ut.end)}function gt(ut){je.call(this,ut);const bt=this.stack[this.stack.length-1];bt.url=this.sliceSerialize(ut)}function $t(ut){je.call(this,ut);const bt=this.stack[this.stack.length-1];bt.url="mailto:"+this.sliceSerialize(ut)}function Mt(){return{type:"blockquote",children:[]}}function qt(){return{type:"code",lang:null,meta:null,value:""}}function cn(){return{type:"inlineCode",value:""}}function en(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Wt(){return{type:"emphasis",children:[]}}function dn(){return{type:"heading",depth:0,children:[]}}function Yt(){return{type:"break"}}function zt(){return{type:"html",value:""}}function nn(){return{type:"image",title:null,url:"",alt:null}}function Ut(){return{type:"link",title:null,url:"",children:[]}}function Zt(ut){return{type:"list",ordered:ut.type==="listOrdered",start:null,spread:ut._spread,children:[]}}function fn(ut){return{type:"listItem",spread:ut._spread,checked:null,children:[]}}function On(){return{type:"paragraph",children:[]}}function tn(){return{type:"strong",children:[]}}function bn(){return{type:"text",value:""}}function Gt(){return{type:"thematicBreak"}}}function point(n){return{line:n.line,column:n.column,offset:n.offset}}function configure(n,i){let e=-1;for(;++e<i.length;){const t=i[e];Array.isArray(t)?configure(n,t):extension(n,t)}}function extension(n,i){let e;for(e in i)if(own$3.call(i,e))switch(e){case"canContainEols":{const t=i[e];t&&n[e].push(...t);break}case"transforms":{const t=i[e];t&&n[e].push(...t);break}case"enter":case"exit":{const t=i[e];t&&Object.assign(n[e],t);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: 17,613 bytes, lines 55-65
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=e;function e(t){return fromMarkdown(t,{...i.data("settings"),...n,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function blockquote$1(n,i){const e={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(i),!0)};return n.patch(i,e),n.applyData(i,e)}function hardBreak$1(n,i){const e={type:"element",tagName:"br",properties:{},children:[]};return n.patch(i,e),[n.applyData(i,e),{type:"text",value:` 56`}]}function code$3(n,i){const e=i.value?i.value+` 57`:"",t={},o=i.lang?i.lang.split(/\s+/):[];o.length>0&&(t.className=["language-"+o[0]]);let d={type:"element",tagName:"code",properties:t,children:[{type:"text",value:e}]};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 e={type:"element",tagName:"del",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function emphasis$1(n,i){const e={type:"element",tagName:"em",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function footnoteReference$1(n,i){const e=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",t=String(i.identifier).toUpperCase(),o=normalizeUri(t.toLowerCase()),d=n.footnoteOrder.indexOf(t);let p,h=n.footnoteCounts.get(t);h===void 0?(h=0,n.footnoteOrder.push(t),p=n.footnoteOrder.length):p=d+1,h+=1,n.footnoteCounts.set(t,h);const y={type:"element",tagName:"a",properties:{href:"#"+e+"fn-"+o,id:e+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(p)}]};n.patch(i,y);const $={type:"element",tagName:"sup",properties:{},children:[y]};return n.patch(i,$),n.applyData(i,$)}function heading$1(n,i){const e={type:"element",tagName:"h"+i.depth,properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function html$1(n,i){if(n.options.allowDangerousHtml){const e={type:"raw",value:i.value};return n.patch(i,e),n.applyData(i,e)}}function revert(n,i){const e=i.referenceType;let t="]";if(e==="collapsed"?t+="[]":e==="full"&&(t+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+t}];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+=t:o.push({type:"text",value:t}),o}function imageReference$1(n,i){const e=String(i.identifier).toUpperCase(),t=n.definitionById.get(e);if(!t)return revert(n,i);const o={src:normalizeUri(t.url||""),alt:i.alt};t.title!==null&&t.title!==void 0&&(o.title=t.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 e={src:normalizeUri(i.url)};i.alt!==null&&i.alt!==void 0&&(e.alt=i.alt),i.title!==null&&i.title!==void 0&&(e.title=i.title);const t={type:"element",tagName:"img",properties:e,children:[]};return n.patch(i,t),n.applyData(i,t)}function inlineCode$1(n,i){const e={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};n.patch(i,e);const t={type:"element",tagName:"code",properties:{},children:[e]};return n.patch(i,t),n.applyData(i,t)}function linkReference$1(n,i){const e=String(i.identifier).toUpperCase(),t=n.definitionById.get(e);if(!t)return revert(n,i);const o={href:normalizeUri(t.url||"")};t.title!==null&&t.title!==void 0&&(o.title=t.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 e={href:normalizeUri(i.url)};i.title!==null&&i.title!==void 0&&(e.title=i.title);const t={type:"element",tagName:"a",properties:e,children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function listItem$1(n,i,e){const t=n.all(i),o=e?listLoose(e):listItemLoose(i),d={},p=[];if(typeof i.checked=="boolean"){const E=t[0];let M;E&&E.type==="element"&&E.tagName==="p"?M=E:(M={type:"element",tagName:"p",properties:{},children:[]},t.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<t.length;){const E=t[h];(o||h!==0||E.type!=="element"||E.tagName!=="p")&&p.push({type:"text",value:` 58`}),E.type==="element"&&E.tagName==="p"&&!o?p.push(...E.children):p.push(E)}const y=t[t.length-1];y&&(o||y.type!=="element"||y.tagName!=="p")&&p.push({type:"text",value:` 59`});const $={type:"element",tagName:"li",properties:d,children:p};return n.patch(i,$),n.applyData(i,$)}function listLoose(n){let i=!1;if(n.type==="list"){i=n.spread||!1;const e=n.children;let t=-1;for(;!i&&++t<e.length;)i=listItemLoose(e[t])}return i}function listItemLoose(n){const i=n.spread;return i??n.children.length>1}function list$1(n,i){const e={},t=n.all(i);let o=-1;for(typeof i.start=="number"&&i.start!==1&&(e.start=i.start);++o<t.length;){const p=t[o];if(p.type==="element"&&p.tagName==="li"&&p.properties&&Array.isArray(p.properties.className)&&p.properties.className.includes("task-list-item")){e.className=["contains-task-list"];break}}const d={type:"element",tagName:i.ordered?"ol":"ul",properties:e,children:n.wrap(t,!0)};return n.patch(i,d),n.applyData(i,d)}function paragraph$1(n,i){const e={type:"element",tagName:"p",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function root$2(n,i){const e={type:"root",children:n.wrap(n.all(i))};return n.patch(i,e),n.applyData(i,e)}function strong$1(n,i){const e={type:"element",tagName:"strong",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}function table(n,i){const e=n.all(i),t=e.shift(),o=[];if(t){const p={type:"element",tagName:"thead",properties:{},children:n.wrap([t],!0)};n.patch(i.children[0],p),o.push(p)}if(e.length>0){const p={type:"element",tagName:"tbody",properties:{},children:n.wrap(e,!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,e){const t=e?e.children:void 0,d=(t?t.indexOf(i):1)===0?"th":"td",p=e&&e.type==="table"?e.align:void 0,h=p?p.length:i.children.length;let y=-1;const $=[];for(;++y<h;){const M=i.children[y],H={},Z=p?p[y]:void 0;Z&&(H.align=Z);let be={type:"element",tagName:d,properties:H,children:[]};M&&(be.children=n.all(M),n.patch(M,be),be=n.applyData(M,be)),$.push(be)}const E={type:"element",tagName:"tr",properties:{},children:n.wrap($,!0)};return n.patch(i,E),n.applyData(i,E)}function tableCell(n,i){const e={type:"element",tagName:"td",properties:{},children:n.all(i)};return n.patch(i,e),n.applyData(i,e)}const tab=9,space=32;function trimLines(n){const i=String(n),e=/\r?\n|\r/g;let t=e.exec(i),o=0;const d=[];for(;t;)d.push(trimLine(i.slice(o,t.index),o>0,!0),t[0]),o=t.index+t[0].length,t=e.exec(i);return d.push(trimLine(i.slice(o),o>0,!1)),d.join("")}function trimLine(n,i,e){let t=0,o=n.length;if(i){let d=n.codePointAt(t);for(;d===tab||d===space;)t++,d=n.codePointAt(t)}if(e){let d=n.codePointAt(o-1);for(;d===tab||d===space;)o--,d=n.codePointAt(o-1)}return o>t?n.slice(t,o):""}function text$2(n,i){const e={type:"text",value:trimLines(String(i.value))};return n.patch(i,e),n.applyData(i,e)}function thematicBreak$1(n,i){const e={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(i,e),n.applyData(i,e)}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 e=(o,d)=>(n.set(d,o),o),t=o=>{if(n.has(o))return n.get(o);const[d,p]=i[o];switch(d){case PRIMITIVE:case VOID:return e(p,o);case ARRAY:{const h=e([],o);for(const y of p)h.push(t(y));return h}case OBJECT:{const h=e({},o);for(const[y,$]of p)h[t(y)]=t($);return h}case DATE:return e(new Date(p),o);case REGEXP:{const{source:h,flags:y}=p;return e(new RegExp(h,y),o)}case MAP:{const h=e(new Map,o);for(const[y,$]of p)h.set(t(y),t($));return h}case SET:{const h=e(new Set,o);for(const y of p)h.add(t(y));return h}case ERROR:{const{name:h,message:y}=p;return e(new env[h](y),o)}case BIGINT:return e(BigInt(p),o);case"BigInt":return e(Object(BigInt(p)),o);case"ArrayBuffer":return e(new Uint8Array(p).buffer,p);case"DataView":{const{buffer:h}=new Uint8Array(p);return e(new DataView(h),p)}}return e(new env[d](p),o)};return t},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 e=toString.call(n).slice(8,-1);switch(e){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,e]}return e.includes("Array")?[ARRAY,e]:e.includes("Error")?[ERROR,e]:[OBJECT,e]},shouldSkip=([n,i])=>n===PRIMITIVE&&(i==="function"||i==="symbol"),serializer=(n,i,e,t)=>{const o=(p,h)=>{const y=t.push(p)-1;return e.set(h,y),y},d=p=>{if(e.has(p))return e.get(p);let[h,y]=typeOf(p);switch(h){case PRIMITIVE:{let E=p;switch(y){case"bigint":h=BIGINT,E=p.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+y);E=null;break;case"undefined":return o([VOID],p)}return o([h,E],p)}case ARRAY:{if(y){let H=p;return y==="DataView"?H=new Uint8Array(p.buffer):y==="ArrayBuffer"&&(H=new Uint8Array(p)),o([y,[...H]],p)}const E=[],M=o([h,E],p);for(const H of p)E.push(d(H));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 E=[],M=o([h,E],p);for(const H of keys(p))(n||!shouldSkip(typeOf(p[H])))&&E.push([d(H),d(p[H])]);return M}case DATE:return o([h,p.toISOString()],p);case REGEXP:{const{source:E,flags:M}=p;return o([h,{source:E,flags:M}],p)}case MAP:{const E=[],M=o([h,E],p);for(const[H,Z]of p)(n||!(shouldSkip(typeOf(H))||shouldSkip(typeOf(Z))))&&E.push([d(H),d(Z)]);return M}case SET:{const E=[],M=o([h,E],p);for(const H of p)(n||!shouldSkip(typeOf(H)))&&E.push(d(H));return M}}const{message:$}=p;return o([h,{name:y,message:$}],p)};return d},serialize$1=(n,{json:i,lossy:e}={})=>{const t=[];return serializer(!(i||e),!!i,new Map,t)(n),t},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 e=[{type:"text",value:"â©"}];return i>1&&e.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),e}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-",e=n.options.footnoteBackContent||defaultFootnoteBackContent,t=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 $=n.footnoteById.get(n.footnoteOrder[y]);if(!$)continue;const E=n.all($),M=String($.identifier).toUpperCase(),H=normalizeUri(M.toLowerCase());let Z=0;const be=[],ye=n.footnoteCounts.get(M);for(;ye!==void 0&&++Z<=ye;){be.length>0&&be.push({type:"text",value:" "});let Ce=typeof e=="string"?e:e(y,Z);typeof Ce=="string"&&(Ce={type:"text",value:Ce}),be.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+H+(Z>1?"-"+Z:""),dataFootnoteBackref:"",ariaLabel:typeof t=="string"?t:t(y,Z),className:["data-footnote-backref"]},children:Array.isArray(Ce)?Ce:[Ce]})}const we=E[E.length-1];if(we&&we.type==="element"&&we.tagName==="p"){const Ce=we.children[we.children.length-1];Ce&&Ce.type==="text"?Ce.value+=" ":we.children.push({type:"text",value:" "}),we.children.push(...be)}else E.push(...be);const xe={type:"element",tagName:"li",properties:{id:i+"fn-"+H},children:n.wrap(E,!0)};n.patch($,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,e,t){let o,d,p;typeof i=="function"&&typeof e!="function"?(d=void 0,p=i,o=e):(d=i,p=e,o=t),visitParents(n,d,h,o);function h(y,$){const E=$[$.length-1],M=E?E.children.indexOf(y):void 0;return p(y,M,E)}}const own$2={}.hasOwnProperty,emptyOptions$3={};function createState(n,i){const e=i||emptyOptions$3,t=new Map,o=new Map,d=new Map,p={...handlers,...e.handlers},h={all:$,applyData,definitionById:t,footnoteById:o,footnoteCounts:d,footnoteOrder:[],handlers:p,one:y,options:e,patch,wrap:wrap$1};return visit(n,function(E){if(E.type==="definition"||E.type==="footnoteDefinition"){const M=E.type==="definition"?t:o,H=String(E.identifier).toUpperCase();M.has(H)||M.set(H,E)}}),h;function y(E,M){const H=E.type,Z=h.handlers[H];if(own$2.call(h.handlers,H)&&Z)return Z(h,E,M);if(h.options.passThrough&&h.options.passThrough.includes(H)){if("children"in E){const{children:ye,...we}=E,xe=structuredClone$1(we);return xe.children=h.all(E),xe}return structuredClone$1(E)}return(h.options.unknownHandler||defaultUnknownHandler)(h,E,M)}function $(E){const M=[];if("children"in E){const H=E.children;let Z=-1;for(;++Z<H.length;){const be=h.one(H[Z],E);if(be){if(Z&&H[Z-1].type==="break"&&(!Array.isArray(be)&&be.type==="text"&&(be.value=trimMarkdownSpaceStart(be.value)),!Array.isArray(be)&&be.type==="element")){const ye=be.children[0];ye&&ye.type==="text"&&(ye.value=trimMarkdownSpaceStart(ye.value))}Array.isArray(be)?M.push(...be):M.push(be)}}}return M}}function patch(n,i){n.position&&(i.position=position$1(n))}function applyData(n,i){let e=i;if(n&&n.data){const t=n.data.hName,o=n.data.hChildren,d=n.data.hProperties;if(typeof t=="string")if(e.type==="element")e.tagName=t;else{const p="children"in e?e.children:[e];e={type:"element",tagName:t,properties:{},children:p}}e.type==="element"&&d&&Object.assign(e.properties,structuredClone$1(d)),"children"in e&&e.children&&o!==null&&o!==void 0&&(e.children=o)}return e}function defaultUnknownHandler(n,i){const e=i.data||{},t="value"in i&&!(own$2.call(e,"hProperties")||own$2.call(e,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:n.all(i)};return n.patch(i,t),n.applyData(i,t)}function wrap$1(n,i){const e=[];let t=-1;for(i&&e.push({type:"text",value:` 62`});++t<n.length;)t&&e.push({type:"text",value:` 63`}),e.push(n[t]);return i&&n.length>0&&e.push({type:"text",value:` 64`}),e}function trimMarkdownSpaceStart(n){let i=0,e=n.charCodeAt(i);for(;e===9||e===32;)i++,e=n.charCodeAt(i);return n.slice(i)}function toHast(n,i){const e=createState(n,i),t=e.one(n,void 0),o=footer(e),d=Array.isArray(t)?{type:"root",children:t}:t||{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(e,t){const o=toHast(e,{file:t,...i});await n.run(o,t)}:function(e,t){return toHast(e,{file:t,...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,e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,o=function($){return typeof Array.isArray=="function"?Array.isArray($):i.call($)==="[object Array]"},d=function($){if(!$||i.call($)!=="[object Object]")return!1;var E=n.call($,"constructor"),M=$.constructor&&$.constructor.prototype&&n.call($.constructor.prototype,"isPrototypeOf");if($.constructor&&!E&&!M)return!1;var H;for(H in $);return typeof H>"u"||n.call($,H)},p=function($,E){e&&E.name==="__proto__"?e($,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):$[E.name]=E.newValue},h=function($,E){if(E==="__proto__")if(n.call($,E)){if(t)return t($,E).value}else return;return $[E]};return extend$1=function y(){var $,E,M,H,Z,be,ye=arguments[0],we=1,xe=arguments.length,Ce=!1;for(typeof ye=="boolean"&&(Ce=ye,ye=arguments[1]||{},we=2),(ye==null||typeof ye!="object"&&typeof ye!="function")&&(ye={});we<xe;++we)if($=arguments[we],$!=null)for(E in $)M=h(ye,E),H=h($,E),ye!==H&&(Ce&&H&&(d(H)||(Z=o(H)))?(Z?(Z=!1,be=M&&o(M)?M:[]):be=M&&d(M)?M:{},p(ye,{name:E,newValue:y(Ce,be,H)})):typeof H<"u"&&p(ye,{name:E,newValue:H}));return ye},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);
vendor: 4,660 bytes, line 65
65return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function trough(){const n=[],i={run:e,use:t};return i;function e(...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,...$){const E=n[++d];let M=-1;if(y){p(y);return}for(;++M<o.length;)($[M]===null||$[M]===void 0)&&($[M]=o[M]);o=$,E?wrap(E,h)(...$):p(null,...$)}}function t(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 e;return t;function t(...p){const h=n.length>p.length;let y;h&&p.push(o);try{y=n.apply(this,p)}catch($){const E=$;if(h&&e)throw E;return o(E)}h||(y&&y.then&&typeof y.then=="function"?y.then(d,o):y instanceof Error?o(y):d(y))}function o(p,...h){e||(e=!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 e=0,t=-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){e=o+1;break}}else t<0&&(d=!0,t=o+1);return t<0?"":n.slice(e,t)}if(i===n)return"";let p=-1,h=i.length-1;for(;o--;)if(n.codePointAt(o)===47){if(d){e=o+1;break}}else p<0&&(d=!0,p=o+1),h>-1&&(n.codePointAt(o)===i.codePointAt(h--)?h<0&&(t=o):(h=-1,t=p));return e===t?t=p:t<0&&(t=n.length),n.slice(e,t)}function dirname(n){if(assertPath$1(n),n.length===0)return".";let i=-1,e=n.length,t;for(;--e;)if(n.codePointAt(e)===47){if(t){i=e;break}}else t||(t=!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,e=-1,t=0,o=-1,d=0,p;for(;i--;){const h=n.codePointAt(i);if(h===47){if(p){t=i+1;break}continue}e<0&&(p=!0,e=i+1),h===46?o<0?o=i:d!==1&&(d=1):o>-1&&(d=-1)}return o<0||e<0||d===0||d===1&&o===e-1&&o===t+1?"":n.slice(o,e)}function join(...n){let i=-1,e;for(;++i<n.length;)assertPath$1(n[i]),n[i]&&(e=e===void 0?n[i]:e+"/"+n[i]);return e===void 0?".":normalize(e)}function normalize(n){assertPath$1(n);const i=n.codePointAt(0)===47;let e=normalizeString(n,!i);return e.length===0&&!i&&(e="."),e.length>0&&n.codePointAt(n.length-1)===47&&(e+="/"),i?"/"+e:e}function normalizeString(n,i){let e="",t=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(e.length<2||t!==2||e.codePointAt(e.length-1)!==46||e.codePointAt(e.length-2)!==46){if(e.length>2){if(y=e.lastIndexOf("/"),y!==e.length-1){y<0?(e="",t=0):(e=e.slice(0,y),t=e.length-1-e.lastIndexOf("/")),o=p,d=0;continue}}else if(e.length>0){e="",t=0,o=p,d=0;continue}}i&&(e=e.length>0?e+"/..":"..",t=2)}else e.length>0?e+="/"+n.slice(o+1,p):e=n.slice(o+1,p),t=p-o-1;o=p,d=0}else h===46&&d>-1?d++:d=-1}return e}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 t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const i=n.pathname;let e=-1;for(;++e<i.length;)if(i.codePointAt(e)===37&&i.codePointAt(e+1)===50){const t=i.codePointAt(e+2);if(t===70||t===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 e;i?isUrl(i)?e={path:i}:typeof i=="string"||isUint8Array$1(i)?e={value:i}:e=i:e={},this.cwd="cwd"in e?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let t=-1;for(;++t<order.length;){const d=order[t];d in e&&e[d]!==void 0&&e[d]!==null&&(this[d]=d==="history"?[...e[d]]:e[d])}let o;for(o in e)order.includes(o)||(this[o]=e[o])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}
vendor: 5,047 bytes, line 65
65set basename(i){assertNonEmpty(i,"basename"),assertPart(i,"basename"),this.path=minpath.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,e,t){const o=this.message(i,e,t);throw o.fatal=!0,o}info(i,e,t){const o=this.message(i,e,t);return o.fatal=void 0,o}message(i,e,t){const o=new VFileMessage(i,e,t);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 t=this.constructor.prototype,o=t[n],d=function(){return o.apply(d,arguments)};return Object.setPrototypeOf(d,t),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 e=-1;for(;++e<this.attachers.length;){const t=this.attachers[e];i.use(...t)}return i.data(extend(!0,{},this.namespace)),i}data(i,e){return typeof i=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[i]=e,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[e,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const o=e.call(i,...t);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const e=vfile(i),t=this.parser||this.Parser;return assertParser("parse",t),t(String(e),e)}process(i,e){const t=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),e?o(void 0,e):new Promise(o);function o(d,p){const h=vfile(i),y=t.parse(h);t.run(y,h,function(E,M,H){if(E||!M||!H)return $(E);const Z=M,be=t.stringify(Z,H);looksLikeAValue(be)?H.value=be:H.result=be,$(E,H)});function $(E,M){E||!M?p(E):d?d(M):e(void 0,M)}}}processSync(i){let e=!1,t;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(i,o),assertDone("processSync","process",e),t;function o(d,p){e=!0,bail(d),t=p}}run(i,e,t){assertNode(i),this.freeze();const o=this.transformers;return!t&&typeof e=="function"&&(t=e,e=void 0),t?d(void 0,t):new Promise(d);function d(p,h){const y=vfile(e);o.run(i,y,$);function $(E,M,H){const Z=M||i;E?h(E):p?p(Z):t(void 0,Z,H)}}}runSync(i,e){let t=!1,o;return this.run(i,e,d),assertDone("runSync","run",t),o;function d(p,h){bail(p),o=h,t=!0}}stringify(i,e){this.freeze();const t=vfile(e),o=this.compiler||this.Compiler;return assertCompiler("stringify",o),assertNode(i),o(i,t)}use(i,...e){const t=this.attachers,o=this.namespace;if(assertUnfrozen("use",this.frozen),i!=null)if(typeof i=="function")y(i,e);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($){if(typeof $=="function")y($,[]);else if(typeof $=="object")if(Array.isArray($)){const[E,...M]=$;y(E,M)}else p($);else throw new TypeError("Expected usable value, not `"+$+"`")}function p($){if(!("plugins"in $)&&!("settings"in $))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($.plugins),$.settings&&(o.settings=extend(!0,o.settings,$.settings))}function h($){let E=-1;
vendor: 4,499 bytes, line 65
65if($!=null)if(Array.isArray($))for(;++E<$.length;){const M=$[E];d(M)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function y($,E){let M=-1,H=-1;for(;++M<t.length;)if(t[M][0]===$){H=M;break}if(H===-1)t.push([$,...E]);else if(E.length>0){let[Z,...be]=E;const ye=t[H][1];isPlainObject(ye)&&isPlainObject(Z)&&(Z=extend(!0,ye,Z)),t[H]=[$,Z,...be]}}}}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,e){if(!e)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),e=createFile(n);return post(i.runSync(i.parse(e),e),n)}function createProcessor(n){const i=n.rehypePlugins||emptyPlugins,e=n.remarkPlugins||emptyPlugins,t=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(e).use(remarkRehype,t).use(i)}function createFile(n){const i=n.children||"",e=new VFile;return typeof i=="string"&&(e.value=i),e}function post(n,i){const e=i.allowedElements,t=i.allowElement,o=i.components,d=i.disallowedElements,p=i.skipHtml,h=i.unwrapDisallowed,y=i.urlTransform||defaultUrlTransform;for(const E of deprecations)Object.hasOwn(i,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+changelog+E.id,void 0);return visit(n,$),toJsxRuntime(n,{Fragment:jsxRuntimeExports.Fragment,components:o,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function $(E,M,H){if(E.type==="raw"&&H&&typeof M=="number")return p?H.children.splice(M,1):H.children[M]={type:"text",value:E.value},M;if(E.type==="element"){let Z;for(Z in urlAttributes)if(Object.hasOwn(urlAttributes,Z)&&Object.hasOwn(E.properties,Z)){const be=E.properties[Z],ye=urlAttributes[Z];(ye===null||ye.includes(E.tagName))&&(E.properties[Z]=y(String(be||""),Z,E))}}if(E.type==="element"){let Z=e?!e.includes(E.tagName):d?d.includes(E.tagName):!1;if(!Z&&t&&typeof M=="number"&&(Z=!t(E,M,H)),Z&&H&&typeof M=="number")return h&&E.children?H.children.splice(M,1,...E.children):H.children.splice(M,1),M}}}function defaultUrlTransform(n){const i=n.indexOf(":"),e=n.indexOf("?"),t=n.indexOf("#"),o=n.indexOf("/");return i===-1||o!==-1&&i>o||e!==-1&&i>e||t!==-1&&i>t||safeProtocol.test(n.slice(0,i))?n:""}function ccount(n,i){const e=String(n);
vendor: 5,103 bytes, line 65
65if(typeof i!="string")throw new TypeError("Expected character");let t=0,o=e.indexOf(i);for(;o!==-1;)t++,o=e.indexOf(i,o+i.length);return t}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 e=typeof i.additional=="string"?i.additional.charCodeAt(0):i.additional,t=[];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 $=(h?h.line:0)||1,E=(h?h.column:0)||1,M=Z(),H;for(o--;++o<=n.length;)if(H===10&&(E=(y?y[d]:0)||1),H=n.charCodeAt(o),H===38){const we=n.charCodeAt(o+1);if(we===9||we===10||we===12||we===32||we===38||we===60||Number.isNaN(we)||e&&we===e){p+=fromCharCode(H),E++;continue}const xe=o+1;let Ce=xe,Ne=xe,Fe;if(we===35){Ne=++Ce;const Xe=n.charCodeAt(Ne);Xe===88||Xe===120?(Fe="hexadecimal",Ne=++Ce):Fe="decimal"}else Fe="named";let Me="",Le="",ze="";const Ke=Fe==="named"?isAlphanumerical:Fe==="decimal"?isDecimal:isHexadecimal;for(Ne--;++Ne<=n.length;){const Xe=n.charCodeAt(Ne);if(!Ke(Xe))break;ze+=fromCharCode(Xe),Fe==="named"&&characterEntitiesLegacy.includes(ze)&&(Me=ze,Le=decodeNamedCharacterReference(ze))}let Ve=n.charCodeAt(Ne)===59;if(Ve){Ne++;const Xe=Fe==="named"?decodeNamedCharacterReference(ze):!1;Xe&&(Me=ze,Le=Xe)}let je=1+Ne-xe,We="";if(!(!Ve&&i.nonTerminated===!1))if(!ze)Fe!=="named"&&be(4,je);else if(Fe==="named"){if(Ve&&!Le)be(5,1);else if(Me!==ze&&(Ne=Ce+Me.length,je=1+Ne-Ce,Ve=!1),!Ve){const Xe=Me?1:3;if(i.attribute){const Qe=n.charCodeAt(Ne);Qe===61?(be(Xe,je),Le=""):isAlphanumerical(Qe)?Le="":be(Xe,je)}else be(Xe,je)}We=Le}else{Ve||be(2,je);let Xe=Number.parseInt(ze,Fe==="hexadecimal"?16:10);if(prohibited(Xe))be(7,je),We=fromCharCode(65533);else if(Xe in characterReferenceInvalid)be(6,je),We=characterReferenceInvalid[Xe];else{let Qe="";disallowed(Xe)&&be(6,je),Xe>65535&&(Xe-=65536,Qe+=fromCharCode(Xe>>>10|55296),Xe=56320|Xe&1023),We=Qe+fromCharCode(Xe)}}if(We){ye(),M=Z(),o=Ne-1,E+=Ne-xe+1,t.push(We);const Xe=Z();Xe.offset++,i.reference&&i.reference.call(i.referenceContext,We,{start:M,end:Xe},n.slice(xe-1,Ne)),M=Xe}else ze=n.slice(xe-1,Ne),p+=ze,E+=ze.length,o=Ne-1}else H===10&&($++,d++,E=0),Number.isNaN(H)?ye():(p+=fromCharCode(H),E++);return t.join("");function Z(){return{line:$,column:E,offset:o+((h?h.offset:0)||0)}}function be(we,xe){let Ce;i.warning&&(Ce=Z(),Ce.column+=xe,Ce.offset+=xe,i.warning.call(i.warningContext,messages[we],Ce,we))}function ye(){p&&(t.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,t),i.subset||i.escapeOnly)return n;return n.replace(surrogatePairsRegex,e).replace(controlCharactersRegex,t);
65function e(o,d,p){return i.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,p.charCodeAt(d+2),i)}function t(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 e=-1;for(;++e<n.length;)i.push(n[e].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 e.peek=peekDirective,{handlers:{containerDirective:e,leafDirective:e,textDirective:e},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:` 66`,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}]};function e(d,p,h,y){const $=h.createTracker(y),E=fence(d),M=h.enter(d.type);let H=$.move(E+(d.name||"")),Z;if(d.type==="containerDirective"){const be=(d.children||[])[0];Z=inlineDirectiveLabel(be)?be:void 0}else Z=d;if(Z&&Z.children&&Z.children.length>0){const be=h.enter("label"),ye=`${d.type}Label`,we=h.enter(ye);H+=$.move("["),H+=$.move(h.containerPhrasing(Z,{...$.current(),before:H,after:"]"})),H+=$.move("]"),we(),be()}if(H+=$.move(t(d,h)),d.type==="containerDirective"){const be=(d.children||[])[0];let ye=d;inlineDirectiveLabel(be)&&(ye=Object.assign({},d,{children:d.children.slice(1)})),ye&&ye.children&&ye.children.length>0&&(H+=$.move(` 67`),H+=$.move(h.containerFlow(ye,$.current()))),H+=$.move(` 68`+E)}return M(),H}function t(d,p){const h=d.attributes||{},y=[];let $,E,M,H;for(H in h)if(own.call(h,H)&&h[H]!==void 0&&h[H]!==null){const Z=String(h[H]);if(H==="id")M=i.preferShortcut!==!1&&shortcut.test(Z)?"#"+Z:o("id",Z,d,p);else if(H==="class"){const be=Z.split(/[\t\n\r ]+/g),ye=[],we=[];let xe=-1;for(;++xe<be.length;)(i.preferShortcut!==!1&&shortcut.test(be[xe])?we:ye).push(be[xe]);$=ye.length>0?o("class",ye.join(" "),d,p):"",E=we.length>0?"."+we.join("."):""}else y.push(o(H,Z,d,p))}return $&&y.unshift($),E&&y.unshift(E),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 $=i.quote||y.options.quote||'"',E=$==='"'?"'":'"',M=i.quoteSmart&&ccount(p,$)>ccount(p,E)?E:$,H=h.type==="textDirective"?[M]:[M,` 69`,"\r"];return d+"="+M+stringifyEntitiesLight(p,{subset:H})+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 e=-1;for(;++e<n.length;){const o=n[e];o[0]==="class"&&i.class?i.class+=" "+o[1]:i[o[0]]=o[1]}this.data.directiveAttributes=void 0,this.resume();const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.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(e,t){if(e.type==="containerDirective"){let o=t.length,d=0;for(;o--;)t[o].type==="containerDirective"&&d++;d>i&&(i=d)}}
69),i+=3):n.type==="leafDirective"?i=2:i=1,":".repeat(i)}function factoryAttributes(n,i,e,t,o,d,p,h,y,$,E,M,H,Z,be){let ye,we;return xe;function xe(Ue){return n.enter(t),n.enter(o),n.consume(Ue),n.exit(o),Ce}function Ce(Ue){return Ue===35?(ye=p,Ne(Ue)):Ue===46?(ye=h,Ne(Ue)):be&&markdownSpace(Ue)?factorySpace(n,Ce,"whitespace")(Ue):!be&&markdownLineEndingOrSpace(Ue)?factoryWhitespace(n,Ce)(Ue):Ue===null||markdownLineEnding(Ue)||unicodeWhitespace(Ue)||unicodePunctuation(Ue)&&Ue!==45&&Ue!==95?Ye(Ue):(n.enter(d),n.enter(y),n.consume(Ue),Le)}function Ne(Ue){const ot=ye+"Marker";return n.enter(d),n.enter(ye),n.enter(ot),n.consume(Ue),n.exit(ot),Fe}function Fe(Ue){if(Ue===null||Ue===34||Ue===35||Ue===39||Ue===46||Ue===60||Ue===61||Ue===62||Ue===96||Ue===125||markdownLineEndingOrSpace(Ue))return e(Ue);const ot=ye+"Value";return n.enter(ot),n.consume(Ue),Me}function Me(Ue){if(Ue===null||Ue===34||Ue===39||Ue===60||Ue===61||Ue===62||Ue===96)return e(Ue);if(Ue===35||Ue===46||Ue===125||markdownLineEndingOrSpace(Ue)){const ot=ye+"Value";return n.exit(ot),n.exit(ye),n.exit(d),Ce(Ue)}return n.consume(Ue),Me}function Le(Ue){return Ue===null||markdownLineEnding(Ue)||unicodeWhitespace(Ue)||unicodePunctuation(Ue)&&Ue!==45&&Ue!==46&&Ue!==58&&Ue!==95?(n.exit(y),be&&markdownSpace(Ue)?factorySpace(n,ze,"whitespace")(Ue):!be&&markdownLineEndingOrSpace(Ue)?factoryWhitespace(n,ze)(Ue):ze(Ue)):(n.consume(Ue),Le)}function ze(Ue){return Ue===61?(n.enter($),n.consume(Ue),n.exit($),Ke):(n.exit(d),Ce(Ue))}function Ke(Ue){return Ue===null||Ue===60||Ue===61||Ue===62||Ue===96||Ue===125||be&&markdownLineEnding(Ue)?e(Ue):Ue===34||Ue===39?(n.enter(E),n.enter(H),n.consume(Ue),n.exit(H),we=Ue,je):be&&markdownSpace(Ue)?factorySpace(n,Ke,"whitespace")(Ue):!be&&markdownLineEndingOrSpace(Ue)?factoryWhitespace(n,Ke)(Ue):(n.enter(M),n.enter(Z),n.consume(Ue),we=void 0,Ve)}function Ve(Ue){return Ue===null||Ue===34||Ue===39||Ue===60||Ue===61||Ue===62||Ue===96?e(Ue):Ue===125||markdownLineEndingOrSpace(Ue)?(n.exit(Z),n.exit(M),n.exit(d),Ce(Ue)):(n.consume(Ue),Ve)}function je(Ue){return Ue===we?(n.enter(H),n.consume(Ue),n.exit(H),n.exit(E),n.exit(d),Qe):(n.enter(M),We(Ue))}function We(Ue){return Ue===we?(n.exit(M),je(Ue)):Ue===null?e(Ue):markdownLineEnding(Ue)?be?e(Ue):factoryWhitespace(n,We)(Ue):(n.enter(Z),n.consume(Ue),Xe)}function Xe(Ue){return Ue===we||Ue===null||markdownLineEnding(Ue)?(n.exit(Z),We(Ue)):(n.consume(Ue),Xe)}function Qe(Ue){return Ue===125||markdownLineEndingOrSpace(Ue)?Ce(Ue):Ye(Ue)}function Ye(Ue){return Ue===125?(n.enter(o),n.consume(Ue),n.exit(o),n.exit(t),i):e(Ue)}}function factoryLabel(n,i,e,t,o,d,p){let h=0,y=0,$;return E;function E(we){return n.enter(t),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(t),i):(n.enter(d),H(we))}function H(we){if(we===93&&!y)return ye(we);const xe=n.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:$});return $&&($.next=xe),$=xe,Z(we)}function Z(we){return we===null||h>999||we===91&&++y>32?e(we):we===93&&!y--?(n.exit("chunkText"),ye(we)):markdownLineEnding(we)?p?e(we):(n.consume(we),n.exit("chunkText"),H):(n.consume(we),we===92?be:Z)}function be(we){return we===91||we===92||we===93?(n.consume(we),h++,Z):Z(we)}function ye(we){return n.exit(d),n.enter(o),n.consume(we),n.exit(o),n.exit(t),i}}function factoryName(n,i,e,t){const o=this;return d;function d(h){return h===null||markdownLineEnding(h)||unicodePunctuation(h)||unicodeWhitespace(h)?e(h):(n.enter(t),n.consume(h),p)}function p(h){return h===null||markdownLineEnding(h)||unicodeWhitespace(h)||unicodePunctuation(h)&&h!==45&&h!==95?(n.exit(t),o.previous===45||o.previous===95?e(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,e){const t=this,o=t.events[t.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(Ve){return n.enter("directiveContainer"),n.enter("directiveContainerFence"),n.enter("directiveContainerSequence"),$(Ve)}function $(Ve){return Ve===58?(n.consume(Ve),p++,$):p<3?e(Ve):(n.exit("directiveContainerSequence"),factoryName.call(t,n,E,e,"directiveContainerName")(Ve))}function E(Ve){return Ve===91?n.attempt(label$2,M,M)(Ve):M(Ve)}function M(Ve){return Ve===123?n.attempt(attributes$2,H,H)(Ve):H(Ve)}function H(Ve){return factorySpace(n,Z,"whitespace")(Ve)}function Z(Ve){return n.exit("directiveContainerFence"),Ve===null?ze(Ve):markdownLineEnding(Ve)?t.interrupt?i(Ve):n.attempt(nonLazyLine,be,ze)(Ve):e(Ve)}function be(Ve){return Ve===null?ze(Ve):markdownLineEnding(Ve)?n.check(nonLazyLine,Ne,ze)(Ve):(n.enter("directiveContainerContent"),ye(Ve))}function ye(Ve){return n.attempt({tokenize:Ke,partial:!0},Le,d?factorySpace(n,we,"linePrefix",d+1):we)(Ve)}function we(Ve){return Ve===null?Le(Ve):markdownLineEnding(Ve)?n.check(nonLazyLine,Ce,Le)(Ve):Ce(Ve)}
69function xe(Ve){if(Ve===null){const je=n.exit("chunkDocument");return t.parser.lazy[je.start.line]=!1,Le(Ve)}return markdownLineEnding(Ve)?n.check(nonLazyLine,Fe,Me)(Ve):(n.consume(Ve),xe)}function Ce(Ve){const je=n.enter("chunkDocument",{contentType:"document",previous:h});return h&&(h.next=je),h=je,xe(Ve)}function Ne(Ve){return n.enter("directiveContainerContent"),ye(Ve)}function Fe(Ve){n.consume(Ve);const je=n.exit("chunkDocument");return t.parser.lazy[je.start.line]=!1,ye}function Me(Ve){const je=n.exit("chunkDocument");return t.parser.lazy[je.start.line]=!1,Le(Ve)}function Le(Ve){return n.exit("directiveContainerContent"),ze(Ve)}function ze(Ve){return n.exit("directiveContainer"),i(Ve)}function Ke(Ve,je,We){let Xe=0;return factorySpace(Ve,Qe,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Qe(ot){return Ve.enter("directiveContainerFence"),Ve.enter("directiveContainerSequence"),Ye(ot)}function Ye(ot){return ot===58?(Ve.consume(ot),Xe++,Ye):Xe<p?We(ot):(Ve.exit("directiveContainerSequence"),factorySpace(Ve,Ue,"whitespace")(ot))}function Ue(ot){return ot===null||markdownLineEnding(ot)?(Ve.exit("directiveContainerFence"),je(ot)):We(ot)}}}function tokenizeLabel$2(n,i,e){return factoryLabel(n,i,e,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function tokenizeAttributes$2(n,i,e){return factoryAttributes(n,i,e,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function tokenizeNonLazyLine(n,i,e){const t=this;return o;function o(p){return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),d}function d(p){return t.parser.lazy[t.now().line]?e(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,e){const t=this;return o;function o(E){return n.enter("directiveLeaf"),n.enter("directiveLeafSequence"),n.consume(E),d}function d(E){return E===58?(n.consume(E),n.exit("directiveLeafSequence"),factoryName.call(t,n,p,e,"directiveLeafName")):e(E)}function p(E){return E===91?n.attempt(label$1,h,h)(E):h(E)}function h(E){return E===123?n.attempt(attributes$1,y,y)(E):y(E)}function y(E){return factorySpace(n,$,"whitespace")(E)}function $(E){return E===null||markdownLineEnding(E)?(n.exit("directiveLeaf"),i(E)):e(E)}}function tokenizeLabel$1(n,i,e){return factoryLabel(n,i,e,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function tokenizeAttributes$1(n,i,e){return factoryAttributes(n,i,e,"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,e){const t=this;return o;function o(y){return n.enter("directiveText"),n.enter("directiveTextMarker"),n.consume(y),n.exit("directiveTextMarker"),factoryName.call(t,n,d,e,"directiveTextName")}function d(y){return y===58?e(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,e){return factoryLabel(n,i,e,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function tokenizeAttributes(n,i,e){return factoryAttributes(n,i,e,"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(),e=i.micromarkExtensions||(i.micromarkExtensions=[]),t=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);e.push(directive()),t.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,e,t,o){let d="";if(!previous$1(o)||(/^w/i.test(i)&&(e=i+e,i="",d="http://"),!isCorrectDomain(e)))return!1;const p=splitUrl(e+t);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,e,t){return!previous$1(t,!0)||/[-\d_]$/.test(e)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+e,children:[{type:"text",value:i+"@"+e}]}}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 e=i[0],t=e.indexOf(")");const o=ccount(n,"(");let d=ccount(n,")");for(;t!==-1&&o>d;)n+=e.slice(0,t+1),e=e.slice(t+1),t=e.indexOf(")"),d++;return[n,e]}function previous$1(n,i){const e=n.input.charCodeAt(n.index-1);return(n.index===0||unicodeWhitespace(e)||unicodePunctuation(e))&&(!i||e!==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(),e=this.stack[this.stack.length-1];e.type,e.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),e.label=i}function exitFootnoteCall(n){this.exit(n)}function exitFootnoteDefinitionLabelString(n){const i=this.resume(),e=this.stack[this.stack.length-1];e.type,e.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),e.label=i}function exitFootnoteDefinition(n){this.exit(n)}function footnoteReferencePeek(){return"["}function footnoteReference(n,i,e,t){const o=e.createTracker(t);let d=o.move("[^");const p=e.enter("footnoteReference"),h=e.enter("reference");return d+=o.move(e.safe(e.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:e,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function e(t,o,d,p){const h=d.createTracker(p);let y=h.move("[^");const $=d.enter("footnoteDefinition"),E=d.enter("label");return y+=h.move(d.safe(d.associationId(t),{before:y,after:"]"})),E(),y+=h.move("]:"),t.children&&t.children.length>0&&(h.shift(4),y+=h.move((i?` 70`:" ")+d.indentLines(d.containerFlow(t,h.current()),i?mapAll:mapExceptFirst))),$(),y}}function mapExceptFirst(n,i,e){return i===0?n:mapAll(n,i,e)}function mapAll(n,i,e){return(e?"":" ")+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,e,t){const o=e.createTracker(t),d=e.enter("strikethrough");let p=o.move("~~");return p+=e.containerPhrasing(n,{...o.current(),before:p,after:"~"}),p+=o.move("~~"),d(),p}function peekDelete(){return"~"}function markdownTable(n,i={}){const e=(i.align||[]).concat(),t=i.stringLength||defaultStringLength,o=[],d=[],p=[],h=[];let y=0,$=-1;for(;++$<n.length;){const be=[],ye=[];let we=-1;for(n[$].length>y&&(y=n[$].length);++we<n[$].length;){const xe=serialize(n[$][we]);if(i.alignDelimiters!==!1){const Ce=t(xe);ye[we]=Ce,(h[we]===void 0||Ce>h[we])&&(h[we]=Ce)}be.push(xe)}d[$]=be,p[$]=ye}let E=-1;
vendor: 11,517 bytes, lines 70-82
70if(typeof e=="object"&&"length"in e)for(;++E<y;)o[E]=toAlignment(e[E]);else{const be=toAlignment(e);for(;++E<y;)o[E]=be}E=-1;const M=[],H=[];for(;++E<y;){const be=o[E];let ye="",we="";be===99?(ye=":",we=":"):be===108?ye=":":be===114&&(we=":");let xe=i.alignDelimiters===!1?1:Math.max(1,h[E]-ye.length-we.length);const Ce=ye+"-".repeat(xe)+we;i.alignDelimiters!==!1&&(xe=ye.length+xe+we.length,xe>h[E]&&(h[E]=xe),H[E]=xe),M[E]=Ce}d.splice(1,0,M),p.splice(1,0,H),$=-1;const Z=[];for(;++$<d.length;){const be=d[$],ye=p[$];E=-1;const we=[];for(;++E<y;){const xe=be[E]||"";let Ce="",Ne="";if(i.alignDelimiters!==!1){const Fe=h[E]-(ye[E]||0),Me=o[E];Me===114?Ce=" ".repeat(Fe):Me===99?Fe%2?(Ce=" ".repeat(Fe/2+.5),Ne=" ".repeat(Fe/2-.5)):(Ce=" ".repeat(Fe/2),Ne=Ce):Ne=" ".repeat(Fe)}i.delimiterStart!==!1&&!E&&we.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&xe==="")&&(i.delimiterStart!==!1||E)&&we.push(" "),i.alignDelimiters!==!1&&we.push(Ce),we.push(xe),i.alignDelimiters!==!1&&we.push(Ne),i.padding!==!1&&we.push(" "),(i.delimiterEnd!==!1||E!==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,e,t){const o=e.enter("blockquote"),d=e.createTracker(t);d.move("> "),d.shift(2);const p=e.indentLines(e.containerFlow(n,d.current()),map$1);return o(),p}function map$1(n,i,e){return">"+(e?"":" ")+n}function patternInScope(n,i){return listInScope(n,i.inConstruct,!0)&&!listInScope(n,i.notInConstruct,!1)}function listInScope(n,i,e){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return e;let t=-1;for(;++t<i.length;)if(n.includes(i[t]))return!0;return!1}function hardBreak(n,i,e,t){let o=-1;for(;++o<e.unsafe.length;)if(e.unsafe[o].character===` 72`&&patternInScope(e.stack,e.unsafe[o]))return/[ \t]/.test(t.before)?"":" ";return`\\ 73`}function longestStreak(n,i){const e=String(n);let t=e.indexOf(i),o=t,d=0,p=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;t!==-1;)t===o?++d>p&&(p=d):d=1,o=t+i.length,t=e.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,e,t){const o=checkFence(e),d=n.value||"",p=o==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(n,e)){const M=e.enter("codeIndented"),H=e.indentLines(d,map);return M(),H}const h=e.createTracker(t),y=o.repeat(Math.max(longestStreak(d,o)+1,3)),$=e.enter("codeFenced");let E=h.move(y);if(n.lang){const M=e.enter(`codeFencedLang${p}`);E+=h.move(e.safe(n.lang,{before:E,after:" ",encode:["`"],...h.current()})),M()}if(n.lang&&n.meta){const M=e.enter(`codeFencedMeta${p}`);E+=h.move(" "),E+=h.move(e.safe(n.meta,{before:E,after:` 74`,encode:["`"],...h.current()})),M()}return E+=h.move(` 75`),d&&(E+=h.move(d+` 76`)),E+=h.move(y),$(),E}function map(n,i,e){return(e?"":" ")+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,e,t){const o=checkQuote(e),d=o==='"'?"Quote":"Apostrophe",p=e.enter("definition");let h=e.enter("label");const y=e.createTracker(t);let $=y.move("[");return $+=y.move(e.safe(e.associationId(n),{before:$,after:"]",...y.current()})),$+=y.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=e.enter("destinationLiteral"),$+=y.move("<"),$+=y.move(e.safe(n.url,{before:$,after:">",...y.current()})),$+=y.move(">")):(h=e.enter("destinationRaw"),$+=y.move(e.safe(n.url,{before:$,after:n.title?" ":` 77`,...y.current()}))),h(),n.title&&(h=e.enter(`title${d}`),$+=y.move(" "+o),$+=y.move(e.safe(n.title,{before:$,after:o,...y.current()})),$+=y.move(o),h()),p(),$}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,e){const t=classifyCharacter(n),o=classifyCharacter(i);return t===void 0?o===void 0?e==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:t===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,e,t){const o=checkEmphasis(e),d=e.enter("emphasis"),p=e.createTracker(t),h=p.move(o);let y=p.move(e.containerPhrasing(n,{after:o,before:h,...p.current()}));const $=y.charCodeAt(0),E=encodeInfo(t.before.charCodeAt(t.before.length-1),$,o);E.inside&&(y=encodeCharacterReference($)+y.slice(1));const M=y.charCodeAt(y.length-1),H=encodeInfo(t.after.charCodeAt(0),M,o);H.inside&&(y=y.slice(0,-1)+encodeCharacterReference(M));const Z=p.move(o);return d(),e.attentionEncodeSurroundingInfo={after:H.outside,before:E.outside},h+y+Z}function emphasisPeek(n,i,e){return e.options.emphasis||"*"}function formatHeadingAsSetext(n,i){let e=!1;return visit(n,function(t){if("value"in t&&/\r?\n|\r/.test(t.value)||t.type==="break")return e=!0,EXIT}),!!((!n.depth||n.depth<3)&&toString$1(n)&&(i.options.setext||e))}function heading(n,i,e,t){const o=Math.max(Math.min(6,n.depth||1),1),d=e.createTracker(t);if(formatHeadingAsSetext(n,e)){const E=e.enter("headingSetext"),M=e.enter("phrasing"),H=e.containerPhrasing(n,{...d.current(),before:` 78`,after:` 79`});return M(),E(),H+` 80`+(o===1?"=":"-").repeat(H.length-(Math.max(H.lastIndexOf("\r"),H.lastIndexOf(` 81`))+1))}const p="#".repeat(o),h=e.enter("headingAtx"),y=e.enter("phrasing");d.move(p+" ");let $=e.containerPhrasing(n,{before:"# ",after:` 82`,...d.current()});return/^[\t ]/.test($)&&($=encodeCharacterReference($.charCodeAt(0))+$.slice(1)),$=$?p+" "+$:p,e.options.closeAtx&&($+=" "+p),y(),h(),$}html.peek=htmlPeek;function html(n){return n.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(n,i,e,t){const o=checkQuote(e),d=o==='"'?"Quote":"Apostrophe",p=e.enter("image");let h=e.enter("label");const y=e.createTracker(t);let $=y.move("![");return $+=y.move(e.safe(n.alt,{before:$,after:"]",...y.current()})),$+=y.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=e.enter("destinationLiteral"),$+=y.move("<"),$+=y.move(e.safe(n.url,{before:$,after:">",...y.current()})),$+=y.move(">")):(h=e.enter("destinationRaw"),$+=y.move(e.safe(n.url,{before:$,after:n.title?" ":")",...y.current()}))),h(),n.title&&(h=e.enter(`title${d}`),$+=y.move(" "+o),$+=y.move(e.safe(n.title,{before:$,after:o,...y.current()})),$+=y.move(o),h()),$+=y.move(")"),p(),$}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(n,i,e,t){const o=n.referenceType,d=e.enter("imageReference");let p=e.enter("label");const h=e.createTracker(t);let y=h.move("![");const $=e.safe(n.alt,{before:y,after:"]",...h.current()});y+=h.move($+"]["),p();const E=e.stack;e.stack=[],p=e.enter("reference");const M=e.safe(e.associationId(n),{before:y,after:"]",...h.current()});return p(),e.stack=E,d(),o==="full"||!$||$!==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,e){let t=n.value||"",o="`",d=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(t);)o+="`";for(/[^ \r\n]/.test(t)&&(/^[ \r\n]/.test(t)&&/[ \r\n]$/.test(t)||/^`|`$/.test(t))&&(t=" "+t+" ");++d<e.unsafe.length;){const p=e.unsafe[d],h=e.compilePattern(p);let y;if(p.atBreak)for(;y=h.exec(t);){let $=y.index;t.charCodeAt($)===10&&t.charCodeAt($-1)===13&&$--,t=t.slice(0,$)+" "+t.slice(y.index+1)}}return o+t+o}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(n,i){const e=toString$1(n);return!!(!i.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(e===n.url||"mailto:"+e===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}link.peek=linkPeek;function link(n,i,e,t){const o=checkQuote(e),d=o==='"'?"Quote":"Apostrophe",p=e.createTracker(t);let h,y;if(formatLinkAsAutolink(n,e)){const E=e.stack;e.stack=[],h=e.enter("autolink");let M=p.move("<");return M+=p.move(e.containerPhrasing(n,{before:M,after:">",...p.current()})),M+=p.move(">"),h(),e.stack=E,M}h=e.enter("link"),y=e.enter("label");let $=p.move("[");return $+=p.move(e.containerPhrasing(n,{before:$,after:"](",...p.current()})),$+=p.move("]("),y(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(y=e.enter("destinationLiteral"),$+=p.move("<"),$+=p.move(e.safe(n.url,{before:$,after:">",...p.current()})),$+=p.move(">")):(y=e.enter("destinationRaw"),$+=p.move(e.safe(n.url,{before:$,after:n.title?" ":")",...p.current()}))),y(),n.title&&(y=e.enter(`title${d}`),$+=p.move(" "+o),$+=p.move(e.safe(n.title,{before:$,after:o,...p.current()})),$+=p.move(o),y()),$+=p.move(")"),h(),$}function linkPeek(n,i,e){return formatLinkAsAutolink(n,e)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(n,i,e,t){const o=n.referenceType,d=e.enter("linkReference");let p=e.enter("label");const h=e.createTracker(t);let y=h.move("[");const $=e.containerPhrasing(n,{before:y,after:"]",...h.current()});y+=h.move($+"]["),p();const E=e.stack;e.stack=[],p=e.enter("reference");const M=e.safe(e.associationId(n),{before:y,after:"]",...h.current()});return p(),e.stack=E,d(),o==="full"||!$||$!==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),e=n.options.bulletOther;if(!e)return i==="*"?"-":"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(e===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+e+"`) to be different");return e}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,e,t){const o=e.enter("list"),d=e.bulletCurrent;let p=n.ordered?checkBulletOrdered(e):checkBullet(e);const h=n.ordered?p==="."?")":".":checkBulletOther(e);let y=i&&e.bulletLastUsed?p===e.bulletLastUsed:!1;if(!n.ordered){const E=n.children?n.children[0]:void 0;if((p==="*"||p==="-")&&E&&(!E.children||!E.children[0])&&e.stack[e.stack.length-1]==="list"&&e.stack[e.stack.length-2]==="listItem"&&e.stack[e.stack.length-3]==="list"&&e.stack[e.stack.length-4]==="listItem"&&e.indexStack[e.indexStack.length-1]===0&&e.indexStack[e.indexStack.length-2]===0&&e.indexStack[e.indexStack.length-3]===0&&(y=!0),checkRule(e)===
vendor: 7,362 bytes, lines 82-84
82p&&E){let M=-1;for(;++M<n.children.length;){const H=n.children[M];if(H&&H.type==="listItem"&&H.children&&H.children[0]&&H.children[0].type==="thematicBreak"){y=!0;break}}}}y&&(p=h),e.bulletCurrent=p;const $=e.containerFlow(n,t);return e.bulletLastUsed=p,e.bulletCurrent=d,o(),$}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,e,t){const o=checkListItemIndent(e);let d=e.bulletCurrent||checkBullet(e);i&&i.type==="list"&&i.ordered&&(d=(typeof i.start=="number"&&i.start>-1?i.start:1)+(e.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=e.createTracker(t);h.move(d+" ".repeat(p-d.length)),h.shift(p);const y=e.enter("listItem"),$=e.indentLines(e.containerFlow(n,h.current()),E);return y(),$;function E(M,H,Z){return H?(Z?"":" ".repeat(p))+M:(Z?d:d+" ".repeat(p-d.length))+M}}function paragraph(n,i,e,t){const o=e.enter("paragraph"),d=e.enter("phrasing"),p=e.containerPhrasing(n,t);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,e,t){return(n.children.some(function(p){return phrasing(p)})?e.containerPhrasing:e.containerFlow).call(e,n,t)}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,e,t){const o=checkStrong(e),d=e.enter("strong"),p=e.createTracker(t),h=p.move(o+o);let y=p.move(e.containerPhrasing(n,{after:o,before:h,...p.current()}));const $=y.charCodeAt(0),E=encodeInfo(t.before.charCodeAt(t.before.length-1),$,o);E.inside&&(y=encodeCharacterReference($)+y.slice(1));const M=y.charCodeAt(y.length-1),H=encodeInfo(t.after.charCodeAt(0),M,o);H.inside&&(y=y.slice(0,-1)+encodeCharacterReference(M));const Z=p.move(o+o);return d(),e.attentionEncodeSurroundingInfo={after:H.outside,before:E.outside},h+y+Z}function strongPeek(n,i,e){return e.options.strong||"*"}function text$1(n,i,e,t){return e.safe(n.value,t)}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,e){const t=(checkRule(e)+(e.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(e));return e.options.ruleSpaces?t.slice(0,-1):t}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(e){return e==="none"?null:e}),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 e=this.stack[this.stack.length-1];e.type,e.value=i,this.exit(n)}function replace(n,i){return i==="|"?i:n}function gfmTableToMarkdown(n){const i=n||{},e=i.tableCellPadding,t=i.tablePipeAlign,o=i.stringLength,d=e?" ":"|";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:H,table:p,tableCell:y,tableRow:h}};function p(Z,be,ye,we){return $(E(Z,ye,we),Z.align)}function h(Z,be,ye,we){const xe=M(Z,ye,we),Ce=$([xe]);return Ce.slice(0,Ce.indexOf(` 84`))}function y(Z,be,ye,we){const xe=ye.enter("tableCell"),Ce=ye.enter("phrasing"),Ne=ye.containerPhrasing(Z,{...we,before:d,after:d});return Ce(),xe(),Ne}function $(Z,be){return markdownTable(Z,{align:be,alignDelimiters:t,padding:e,stringLength:o})}function E(Z,be,ye){const we=Z.children;let xe=-1;const Ce=[],Ne=be.enter("table");for(;++xe<we.length;)Ce[xe]=M(we[xe],be,ye);return Ne(),Ce}function M(Z,be,ye){const we=Z.children;let xe=-1;const Ce=[],Ne=be.enter("tableRow");for(;++xe<we.length;)Ce[xe]=y(we[xe],Z,be,ye);return Ne(),Ce}function H(Z,be,ye){let we=handle.inlineCode(Z,be,ye);return ye.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 e=this.stack[this.stack.length-1];e.type;const t=e.children[0];if(t&&t.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===e&&(t.value=t.value.slice(1),t.value.length===0?e.children.shift():e.position&&t.position&&typeof t.position.start.offset=="number"&&(t.position.start.column++,t.position.start.offset++,e.position.start=Object.assign({},t.position.start)))}}this.exit(n)}function listItemWithTaskListItem(n,i,e,t){const o=n.children[0],d=typeof n.checked=="boolean"&&o&&o.type==="paragraph",p="["+(n.checked?"x":" ")+"] ",h=e.createTracker(t);d&&h.move(p);let y=handle.listItem(n,i,e,{...t,...h.current()});return d&&(y=y.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,$)),y;function $(E){return E+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,e){const t=this;let o,d;return p;function p(M){return!gfmAtext(M)||!previousEmail.call(t,t.previous)||previousUnbalanced(t.events)?e(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):e(M)}function y(M){return M===46?n.check(emailDomainDotTrail,E,$)(M):M===45||M===95||asciiAlphanumeric(M)?(d=!0,n.consume(M),y):E(M)}function $(M){return n.consume(M),o=!0,y}function E(M){return d&&o&&asciiAlpha(t.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),i(M)):e(M)}}function tokenizeWwwAutolink(n,i,e){const t=this;return o;function o(p){return p!==87&&p!==119||!previousWww.call(t,t.previous)||previousUnbalanced(t.events)?e(p):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(wwwPrefix,n.attempt(domain,n.attempt(path$1,d),e),e)(p))}function d(p){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),i(p)}}function tokenizeProtocolAutolink(n,i,e){const t=this;let o="",d=!1;return p;function p(M){return(M===72||M===104)&&previousProtocol.call(t,t.previous)&&!previousUnbalanced(t.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(M),n.consume(M),h):e(M)}function h(M){if(asciiAlpha(M)&&o.length<5)return o+=String.fromCodePoint(M),n.consume(M),h;if(M===58){const H=o.toLowerCase();if(H==="http"||H==="https")return n.consume(M),y}return e(M)}function y(M){return M===47?(n.consume(M),d?$:(d=!0,y)):e(M)}function $(M){return M===null||asciiControl(M)||markdownLineEndingOrSpace(M)||unicodeWhitespace(M)||unicodePunctuation(M)?e(M):n.attempt(domain,n.attempt(path$1,E),e)(M)}function E(M){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(M)}}function tokenizeWwwPrefix(n,i,e){let t=0;return o;function o(p){return(p===87||p===119)&&t<3?(t++,n.consume(p),o):p===46&&t===3?(n.consume(p),d):e(p)}function d(p){return p===null?e(p):i(p)}}function tokenizeDomain(n,i,e){let t,o,d;return p;function p($){return $===46||$===95?n.check(trail,y,h)($):$===null||markdownLineEndingOrSpace($)||unicodeWhitespace($)||$!==45&&unicodePunctuation($)?y($):(d=!0,n.consume($),p)}function h($){return $===95?t=!0:(o=t,t=void 0),n.consume($),p}function y($){return o||t||!d?e($):i($)}}function tokenizePath(n,i){let e=0,t=0;return o;function o(p){return p===40?(e++,n.consume(p),o):p===41&&t<e?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&&t++,n.consume(p),o}}function tokenizeTrail(n,i,e){return t;function t(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),t):h===38?(n.consume(h),d):h===93?(n.consume(h),o):h===60||h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):e(h)}function o(h){return h===null||h===40||h===91||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):t(h)}function d(h){return asciiAlpha(h)?p(h):e(h)}function p(h){return h===59?(n.consume(h),t):asciiAlpha(h)?(n.consume(h),p):e(h)}}function tokenizeEmailDomainDotTrail(n,i,e){return t;function t(d){return n.consume(d),o}function o(d){return asciiAlphanumeric(d)?e(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,e=!1;for(;i--;){const t=n[i][1];if((t.type==="labelLink"||t.type==="labelImage")&&!t._balanced){e=!0;break}if(t._gfmAutolinkLiteralWalkedInto){e=!1;break}}return n.length>0&&!e&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),e}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,e){const t=this;let o=t.events.length;const d=t.parser.gfmFootnotes||(t.parser.gfmFootnotes=[]);let p;for(;o--;){const y=t.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 e(y);const $=normalizeIdentifier(t.sliceSerialize({start:p.end,end:t.now()}));return $.codePointAt(0)!==94||!d.includes($.slice(1))?e(y):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),i(y))}}function resolveToPotentialGfmFootnoteCall(n,i){let e=n.length;for(;e--;)if(n[e][1].type==="labelImage"&&n[e][0]==="enter"){n[e][1];break}n[e+1][1].type="data",n[e+3][1].type="gfmFootnoteCallLabelMarker";const t={type:"gfmFootnoteCall",start:Object.assign({},n[e+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[e+3][1].end),end:Object.assign({},n[e+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[e+1],n[e+2],["enter",t,i],n[e+3],n[e+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",t,i]];return n.splice(e,n.length-e+1,...h),n}function tokenizeGfmFootnoteCall(n,i,e){const t=this,o=t.parser.gfmFootnotes||(t.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?e(M):(n.enter("gfmFootnoteCallMarker"),n.consume(M),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",$)}function $(M){if(d>999||M===93&&!p||M===null||M===91||markdownLineEndingOrSpace(M))return e(M);if(M===93){n.exit("chunkString");const H=n.exit("gfmFootnoteCallString");return o.includes(normalizeIdentifier(t.sliceSerialize(H)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(M),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),i):e(M)}return markdownLineEndingOrSpace(M)||(p=!0),d++,n.consume(M),M===92?E:$}function E(M){return M===91||M===92||M===93?(n.consume(M),d++,$):$(M)}}function tokenizeDefinitionStart(n,i,e){const t=this,o=t.parser.gfmFootnotes||(t.parser.gfmFootnotes=[]);let d,p=0,h;return y;function y(be){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(be),n.exit("gfmFootnoteDefinitionLabelMarker"),$}function $(be){return be===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(be),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",E):e(be)}function E(be){if(p>999||be===93&&!h||be===null||be===91||markdownLineEndingOrSpace(be))return e(be);if(be===93){n.exit("chunkString");const ye=n.exit("gfmFootnoteDefinitionLabelString");return d=normalizeIdentifier(t.sliceSerialize(ye)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(be),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),H}
vendor: 4,976 bytes, line 84
84return markdownLineEndingOrSpace(be)||(h=!0),p++,n.consume(be),be===92?M:E}function M(be){return be===91||be===92||be===93?(n.consume(be),p++,E):E(be)}function H(be){return be===58?(n.enter("definitionMarker"),n.consume(be),n.exit("definitionMarker"),o.includes(d)||o.push(d),factorySpace(n,Z,"gfmFootnoteDefinitionWhitespace")):e(be)}function Z(be){return i(be)}}function tokenizeDefinitionContinuation(n,i,e){return n.check(blankLine,i,n.attempt(indent,i,e))}function gfmFootnoteDefinitionEnd(n){n.exit("gfmFootnoteDefinition")}function tokenizeIndent(n,i,e){const t=this;return factorySpace(n,o,"gfmFootnoteDefinitionIndent",5);function o(d){const p=t.events[t.events.length-1];return p&&p[1].type==="gfmFootnoteDefinitionIndent"&&p[2].sliceSerialize(p[1],!0).length===4?i(d):e(d)}}function gfmStrikethrough(n){let e=(n||{}).singleTilde;const t={name:"strikethrough",tokenize:d,resolveAll:o};return e==null&&(e=!0),{text:{126:t},insideSpan:{null:[t]},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 $=y;for(;$--;)if(p[$][0]==="exit"&&p[$][1].type==="strikethroughSequenceTemporary"&&p[$][1]._open&&p[y][1].end.offset-p[y][1].start.offset===p[$][1].end.offset-p[$][1].start.offset){p[y][1].type="strikethroughSequence",p[$][1].type="strikethroughSequence";const E={type:"strikethrough",start:Object.assign({},p[$][1].start),end:Object.assign({},p[y][1].end)},M={type:"strikethroughText",start:Object.assign({},p[$][1].end),end:Object.assign({},p[y][1].start)},H=[["enter",E,h],["enter",p[$][1],h],["exit",p[$][1],h],["enter",M,h]],Z=h.parser.constructs.insideSpan.null;Z&&splice(H,H.length,0,resolveAll(Z,p.slice($+1,y),h)),splice(H,H.length,0,[["exit",M,h],["enter",p[y][1],h],["exit",p[y][1],h],["exit",E,h]]),splice(p,$-1,y-$+3,H),y=$+H.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 $=this.previous,E=this.events;let M=0;return H;function H(be){return $===126&&E[E.length-1][1].type!=="characterEscape"?y(be):(p.enter("strikethroughSequenceTemporary"),Z(be))}function Z(be){const ye=classifyCharacter($);if(be===126)return M>1?y(be):(p.consume(be),M++,Z);if(M<2&&!e)return y(be);const we=p.exit("strikethroughSequenceTemporary"),xe=classifyCharacter(be);return we._open=!xe||xe===2&&!!ye,we._close=!ye||ye===2&&!!xe,h(be)}}}class EditMap{constructor(){this.map=[]}add(i,e,t){addImplementation(this,i,e,t)}consume(i){if(this.map.sort(function(d,p){return d[0]-p[0]}),this.map.length===0)return;let e=this.map.length;const t=[];for(;e>0;)e-=1,t.push(i.slice(this.map[e][0]+this.map[e][1]),this.map[e][2]),i.length=this.map[e][0];t.push(i.slice()),i.length=0;let o=t.pop();for(;o;){for(const d of o)i.push(d);o=t.pop()}this.map.length=0}}function addImplementation(n,i,e,t){let o=0;if(!(e===0&&t.length===0)){for(;o<n.map.length;){if(n.map[o][0]===i){n.map[o][1]+=e,n.map[o][2].push(...t);return}o+=1}n.map.push([i,e,t])}}function gfmTableAlign(n,i){let e=!1;const t=[];for(;i<n.length;){const o=n[i];if(e){if(o[0]==="enter")o[1].type==="tableContent"&&t.push(n[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[i-1][1].type==="tableDelimiterMarker"){const d=t.length-1;t[d]=t[d]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(e=!0);i+=1}return t}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(n,i,e){const t=this;let o=0,d=0,p;return h;function h(je){let We=t.events.length-1;for(;We>-1;){const Ye=t.events[We][1].type;if(Ye==="lineEnding"||Ye==="linePrefix")We--;else break}const Xe=We>-1?t.events[We][1].type:null,Qe=Xe==="tableHead"||Xe==="tableRow"?Le:y;return Qe===Le&&t.parser.lazy[t.now().line]?e(je):Qe(je)}function y(je){return n.enter("tableHead"),n.enter("tableRow"),$(je)}function $(je){return je===124||(p=!0,d+=1),E(je)}function E(je){return je===null?e(je):markdownLineEnding(je)?d>1?(d=0,t.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(je),n.exit("lineEnding"),Z):e(je):markdownSpace(je)?factorySpace(n,E,"whitespace")(je):(d+=1,p&&(p=!1,o+=1),je===124?(n.enter("tableCellDivider"),n.consume(je),n.exit("tableCellDivider"),p=!0,E):(n.enter("data"),M(je)))}function M(je){return je===null||je===124||markdownLineEndingOrSpace(je)?(n.exit("data"),E(je)):(n.consume(je),je===92?H:M)}function H(je){return je===92||je===124?(n.consume(je),M):M(je)}function Z(je){return t.interrupt=!1,t.parser.lazy[t.now().line]?e(je):(n.enter("tableDelimiterRow"),p=!1,markdownSpace(je)?factorySpace(n,be,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(je):be(je))}function be(je){return je===45||je===58?we(je):je===124?(p=!0,n.enter("tableCellDivider"),n.consume(je),n.exit("tableCellDivider"),ye):Me(je)}
vendor: 4,237 bytes, line 84
84function ye(je){return markdownSpace(je)?factorySpace(n,we,"whitespace")(je):we(je)}function we(je){return je===58?(d+=1,p=!0,n.enter("tableDelimiterMarker"),n.consume(je),n.exit("tableDelimiterMarker"),xe):je===45?(d+=1,xe(je)):je===null||markdownLineEnding(je)?Fe(je):Me(je)}function xe(je){return je===45?(n.enter("tableDelimiterFiller"),Ce(je)):Me(je)}function Ce(je){return je===45?(n.consume(je),Ce):je===58?(p=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(je),n.exit("tableDelimiterMarker"),Ne):(n.exit("tableDelimiterFiller"),Ne(je))}function Ne(je){return markdownSpace(je)?factorySpace(n,Fe,"whitespace")(je):Fe(je)}function Fe(je){return je===124?be(je):je===null||markdownLineEnding(je)?!p||o!==d?Me(je):(n.exit("tableDelimiterRow"),n.exit("tableHead"),i(je)):Me(je)}function Me(je){return e(je)}function Le(je){return n.enter("tableRow"),ze(je)}function ze(je){return je===124?(n.enter("tableCellDivider"),n.consume(je),n.exit("tableCellDivider"),ze):je===null||markdownLineEnding(je)?(n.exit("tableRow"),i(je)):markdownSpace(je)?factorySpace(n,ze,"whitespace")(je):(n.enter("data"),Ke(je))}function Ke(je){return je===null||je===124||markdownLineEndingOrSpace(je)?(n.exit("data"),ze(je)):(n.consume(je),je===92?Ve:Ke)}function Ve(je){return je===92||je===124?(n.consume(je),Ke):Ke(je)}}function resolveTable(n,i){let e=-1,t=!0,o=0,d=[0,0,0,0],p=[0,0,0,0],h=!1,y=0,$,E,M;const H=new EditMap;for(;++e<n.length;){const Z=n[e],be=Z[1];Z[0]==="enter"?be.type==="tableHead"?(h=!1,y!==0&&(flushTableEnd(H,i,y,$,E),E=void 0,y=0),$={type:"table",start:Object.assign({},be.start),end:Object.assign({},be.end)},H.add(e,0,[["enter",$,i]])):be.type==="tableRow"||be.type==="tableDelimiterRow"?(t=!0,M=void 0,d=[0,0,0,0],p=[0,e+1,0,0],h&&(h=!1,E={type:"tableBody",start:Object.assign({},be.start),end:Object.assign({},be.end)},H.add(e,0,[["enter",E,i]])),o=be.type==="tableDelimiterRow"?2:E?3:1):o&&(be.type==="data"||be.type==="tableDelimiterMarker"||be.type==="tableDelimiterFiller")?(t=!1,p[2]===0&&(d[1]!==0&&(p[0]=p[1],M=flushCell(H,i,d,o,void 0,M),d=[0,0,0,0]),p[2]=e)):be.type==="tableCellDivider"&&(t?t=!1:(d[1]!==0&&(p[0]=p[1],M=flushCell(H,i,d,o,void 0,M)),d=p,p=[d[1],e,0,0])):be.type==="tableHead"?(h=!0,y=e):be.type==="tableRow"||be.type==="tableDelimiterRow"?(y=e,d[1]!==0?(p[0]=p[1],M=flushCell(H,i,d,o,e,M)):p[1]!==0&&(M=flushCell(H,i,p,o,e,M)),o=0):o&&(be.type==="data"||be.type==="tableDelimiterMarker"||be.type==="tableDelimiterFiller")&&(p[3]=e)}for(y!==0&&flushTableEnd(H,i,y,$,E),H.consume(i.events),e=-1;++e<i.events.length;){const Z=i.events[e];Z[0]==="enter"&&Z[1].type==="table"&&(Z[1]._align=gfmTableAlign(i.events,e))}return n}function flushCell(n,i,e,t,o,d){const p=t===1?"tableHeader":t===2?"tableDelimiter":"tableData",h="tableContent";e[0]!==0&&(d.end=Object.assign({},getPoint(i.events,e[0])),n.add(e[0],0,[["exit",d,i]]));const y=getPoint(i.events,e[1]);if(d={type:p,start:Object.assign({},y),end:Object.assign({},y)},n.add(e[1],0,[["enter",d,i]]),e[2]!==0){const $=getPoint(i.events,e[2]),E=getPoint(i.events,e[3]),M={type:h,start:Object.assign({},$),end:Object.assign({},E)};if(n.add(e[2],0,[["enter",M,i]]),t!==2){const H=i.events[e[2]],Z=i.events[e[3]];if(H[1].end=Object.assign({},Z[1].end),H[1].type="chunkText",H[1].contentType="text",e[3]>e[2]+1){const be=e[2]+1,ye=e[3]-e[2]-1;n.add(be,ye,[])}}n.add(e[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,e,t,o){const d=[],p=getPoint(i.events,e);o&&(o.end=Object.assign({},p),d.push(["exit",o,i])),t.end=Object.assign({},p),d.push(["exit",t,i]),n.add(e+1,0,d)}function getPoint(n,i){const e=n[i],t=e[0]==="enter"?"start":"end";return e[1][t]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(n,i,e){const t=this;return o;function o(y){return t.previous!==null||!t._gfmTasklistFirstContentOfListItem?e(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: 9,067 bytes, lines 84-88
84onsume(y),n.exit("taskListCheckValueUnchecked"),p):y===88||y===120?(n.enter("taskListCheckValueChecked"),n.consume(y),n.exit("taskListCheckValueChecked"),p):e(y)}function p(y){return y===93?(n.enter("taskListCheckMarker"),n.consume(y),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):e(y)}function h(y){return markdownLineEnding(y)?i(y):markdownSpace(y)?n.check({tokenize:spaceThenNonSpace},i,e)(y):e(y)}}function spaceThenNonSpace(n,i,e){return factorySpace(n,t,"whitespace");function t(o){return o===null?e(o):i(o)}}function gfm(n){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(n),gfmTable(),gfmTaskListItem()])}const emptyOptions$1={};function remarkGfm(n){const i=this,e=n||emptyOptions$1,t=i.data(),o=t.micromarkExtensions||(t.micromarkExtensions=[]),d=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),p=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);o.push(gfm(e)),d.push(gfmFromMarkdown()),p.push(gfmToMarkdown(e))}function mathFromMarkdown(){return{enter:{mathFlow:n,mathFlowFenceMeta:i,mathText:d},exit:{mathFlow:o,mathFlowFence:t,mathFlowFenceMeta:e,mathFlowValue:h,mathText:p,mathTextData:h}};function n(y){const $={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[$]}},y)}function i(){this.buffer()}function e(){const y=this.resume(),$=this.stack[this.stack.length-1];$.type,$.meta=y}function t(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(y){const $=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),E=this.stack[this.stack.length-1];E.type,this.exit(y),E.value=$;const M=E.data.hChildren[0];M.type,M.tagName,M.children.push({type:"text",value:$}),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 $=this.resume(),E=this.stack[this.stack.length-1];E.type,this.exit(y),E.value=$,E.data.hChildren.push({type:"text",value:$})}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),t.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:e,inlineMath:t}};function e(d,p,h,y){const $=d.value||"",E=h.createTracker(y),M="$".repeat(Math.max(longestStreak($,"$")+1,2)),H=h.enter("mathFlow");let Z=E.move(M);if(d.meta){const be=h.enter("mathFlowMeta");Z+=E.move(h.safe(d.meta,{after:` 86`,before:Z,encode:["$"],...E.current()})),be()}return Z+=E.move(` 87`),$&&(Z+=E.move($+` 88`)),Z+=E.move(M),H(),Z}function t(d,p,h){let y=d.value||"",$=1;for(i||$++;new RegExp("(^|[^$])"+"\\$".repeat($)+"([^$]|$)").test(y);)$++;const E="$".repeat($);/[^ \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 H=h.unsafe[M];if(!H.atBreak)continue;const Z=h.compilePattern(H);let be;for(;be=Z.exec(y);){let ye=be.index;y.codePointAt(ye)===10&&y.codePointAt(ye-1)===13&&ye--,y=y.slice(0,ye)+" "+y.slice(be.index+1)}}return E+y+E}function o(){return"$"}}const mathFlow={tokenize:tokenizeMathFenced,concrete:!0,name:"mathFlow"},nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0};function tokenizeMathFenced(n,i,e){const t=this,o=t.events[t.events.length-1],d=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let p=0;return h;function h(Ce){return n.enter("mathFlow"),n.enter("mathFlowFence"),n.enter("mathFlowFenceSequence"),y(Ce)}function y(Ce){return Ce===36?(n.consume(Ce),p++,y):p<2?e(Ce):(n.exit("mathFlowFenceSequence"),factorySpace(n,$,"whitespace")(Ce))}function $(Ce){return Ce===null||markdownLineEnding(Ce)?M(Ce):(n.enter("mathFlowFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(Ce))}function E(Ce){return Ce===null||markdownLineEnding(Ce)?(n.exit("chunkString"),n.exit("mathFlowFenceMeta"),M(Ce)):Ce===36?e(Ce):(n.consume(Ce),E)}function M(Ce){return n.exit("mathFlowFence"),t.interrupt?i(Ce):n.attempt(nonLazyContinuation,H,we)(Ce)}function H(Ce){return n.attempt({tokenize:xe,partial:!0},we,Z)(Ce)}function Z(Ce){return(d?factorySpace(n,be,"linePrefix",d+1):be)(Ce)}function be(Ce){return Ce===null?we(Ce):markdownLineEnding(Ce)?n.attempt(nonLazyContinuation,H,we)(Ce):(n.enter("mathFlowValue"),ye(Ce))}function ye(Ce){return Ce===null||markdownLineEnding(Ce)?(n.exit("mathFlowValue"),be(Ce)):(n.consume(Ce),ye)}function we(Ce){return n.exit("mathFlow"),i(Ce)}function xe(Ce,Ne,Fe){let Me=0;return factorySpace(Ce,Le,"linePrefix",t.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function Le(Ve){return Ce.enter("mathFlowFence"),Ce.enter("mathFlowFenceSequence"),ze(Ve)}function ze(Ve){return Ve===36?(Me++,Ce.consume(Ve),ze):Me<p?Fe(Ve):(Ce.exit("mathFlowFenceSequence"),factorySpace(Ce,Ke,"whitespace")(Ve))}function Ke(Ve){return Ve===null||markdownLineEnding(Ve)?(Ce.exit("mathFlowFence"),Ne(Ve)):Fe(Ve)}}}function tokenizeNonLazyContinuation(n,i,e){const t=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 t.parser.lazy[t.now().line]?e(p):i(p)}}function mathText(n){let e=(n||{}).singleDollarTextMath;return e==null&&(e=!0),{tokenize:t,resolve:resolveMathText,previous,name:"mathText"};function t(o,d,p){let h=0,y,$;return E;function E(ye){return o.enter("mathText"),o.enter("mathTextSequence"),M(ye)}function M(ye){return ye===36?(o.consume(ye),h++,M):h<2&&!e?p(ye):(o.exit("mathTextSequence"),H(ye))}function H(ye){return ye===null?p(ye):ye===36?($=o.enter("mathTextSequence"),y=0,be(ye)):ye===32?(o.enter("space"),o.consume(ye),o.exit("space"),H):markdownLineEnding(ye)?(o.enter("lineEnding"),o.consume(ye),o.exit("lineEnding"),H):(o.enter("mathTextData"),Z(ye))}function Z(ye){return ye===null||ye===32||ye===36||markdownLineEnding(ye)?(o.exit("mathTextData"),H(ye)):(o.consume(ye),Z)}function be(ye){return ye===36?(o.consume(ye),y++,be):y===h?(o.exit("mathTextSequence"),o.exit("mathText"),d(ye)):($.type="mathTextData",Z(ye))}}}function resolveMathText(n){let i=n.length-4,e=3,t,o;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(t=e;++t<i;)if(n[t][1].type==="mathTextData"){n[i][1].type="mathTextPadding",n[e][1].type="mathTextPadding",e+=2,i-=2;break}}for(t=e-1,i++;++t<=i;)o===void 0?t!==i&&n[t][1].type!=="lineEnding"&&(o=t):(t===i||n[t][1].type==="lineEnding")&&(n[o][1].type="mathTextData",t!==o+2&&(n[o][1].end=n[t-1][1].end,n.splice(o+2,t-o-2),i-=t-o-2,t=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,e=n||emptyOptions,t=i.data(),o=t.micromarkExtensions||(t.micromarkExtensions=[]),d=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),p=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);o.push(math(e)),d.push(mathFromMarkdown()),p.push(mathToMarkdown(e))}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.1636%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%2
880298.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 codeLink={"a > &":{color:"inherit"}},StyledInlineCode=styled("code",{target:"evr5gns0"})(({theme:n})=>({padding:"0.2em 0.4em",overflowWrap:"break-word",whiteSpace:"pre-wrap",margin:0,borderRadius:n.radii.md,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:"evr5gns1"})(({theme:n,wrapLines:i})=>({...codeBlockStyle(n,i)})),StyledPre=styled("pre",{target:"evr5gns2"})(({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,paddingRight:n.iconSizes.threeXL,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}})),StyledCopyButtonContainer=styled("div",{target:"evr5gns3"})(({theme:n})=>({opacity:0,padding:`${n.spacing.sm} ${n.spacing.sm} 0 0`,top:0,right:0,position:"absolute",width:"100%",height:"100%",backgroundColor:n.colors.transparent,zIndex:n.zIndices.sidebar+1,display:"flex",justifyContent:"flex-end",alignItems:"flex-start",transition:"opacity 300ms 150ms",pointerEvents:"none"})),StyledCodeBlock=styled("div",{target:"evr5gns4"})(({theme:n})=>({height:"100%",position:"relative",marginLeft:n.spacing.none,marginRight:n.spacing.none,marginTop:n.spacing.none,marginBottom:void 0,"&:hover":{[`${StyledCopyButtonContainer}`]:{opacity:1}}})),StyledCopyButton=styled("button",{target:"evr5gns5"})(({theme:n})=>({pointerEvents:"auto",height:n.iconSizes.threeXL,width:n.iconSizes.threeXL,padding:n.spacing.none,border:"none",backgroundColor:n.colors.transparent,color:n.colors.fadedText60,transform:"scale(0)",top:0,right:0,[`${StyledCodeBlock}:hover &`]:{opacity:1,transform:"scale(1)",outline:"none",transition:"none"},"&:hover, &:focus, &:active, &:focus-visible":{opacity:1,transform:"scale(1)",outline:"none",transition:"none",borderRadius:n.radii.md},"&:hover":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix15},"&:active":{color:n.colors.bodyText,backgroundColor:n.colors.darkenedBgMix25},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${n.colors.darkenedBgMix25}`}})),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:e})=>({height:i??n.fontSizes.fourXL,width:e??"100%",background:n.colors.darkenedBgMix15,borderRadius:n.radii.default,...ANIMATION_STYLES})),SHOW_DELAY_MS=500,RawAppSkeleton=()=>{const[n,i]=reactExports.useState(!1);return reactExports.useEffect(()=>{const e=setTimeout(()=>{i(!0)},SHOW_DELAY_MS);return()=>{clearTimeout(e)}},[]),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$1=Object.freeze({info:"info",positive:"positive",warning:"warning",negative:"negative"}),TYPE$1=Object.freeze({inline:"inline",toast:"toast"}),PLACEMENT=Object.freeze({topLeft:"topLeft",top:"top",topRight:"topRight",bottomRight:"bottomRight",bottom:"bottom",bottomLeft:"bottomLeft"});function getSvgStyles$1(n){var i=n.$theme,e=n.$size,t=n.$color,o=i.sizing.scale600;e&&(i.sizing[e]?o=i.sizing[e]:typeof e=="number"?o="".concat(e,"px"):o=e);var d="currentColor";return t&&(i.colors[t]?d=i.colors[t]:d=t),{display:"inline-block",fill:d,color:d,height:o,width:o}}var Svg=styled$1("svg",getSvgStyles$1);Svg.displayName="Svg";Svg.displayName="Svg";function _objectDestructuringEmpty(n){if(n==null)throw new TypeError("Cannot destructure undefined")}function ownKeys$g(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$f(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$g(Object(e),!0).forEach(function(t){_defineProperty$i(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$g(Object(e)).forEac
88h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$i(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function getBackgroundColor$1(n,i,e){var t,o=i===TYPE$1.inline;return(t={},_defineProperty$i(t,KIND$1.info,o?e.colors.notificationInfoBackground:e.colors.toastInfoBackground),_defineProperty$i(t,KIND$1.positive,o?e.colors.notificationPositiveBackground:e.colors.toastPositiveBackground),_defineProperty$i(t,KIND$1.warning,o?e.colors.notificationWarningBackground:e.colors.toastWarningBackground),_defineProperty$i(t,KIND$1.negative,o?e.colors.notificationNegativeBackground:e.colors.toastNegativeBackground),t)[n]}function getFontColor$1(n,i,e){var t,o=i===TYPE$1.inline;if(o){var d;return(d={},_defineProperty$i(d,KIND$1.info,e.colors.notificationInfoText),_defineProperty$i(d,KIND$1.positive,e.colors.notificationPositiveText),_defineProperty$i(d,KIND$1.warning,e.colors.notificationWarningText),_defineProperty$i(d,KIND$1.negative,e.colors.notificationNegativeText),d)[n]}return(t={},_defineProperty$i(t,KIND$1.info,e.colors.toastInfoText),_defineProperty$i(t,KIND$1.positive,e.colors.toastPositiveText),_defineProperty$i(t,KIND$1.warning,e.colors.toastWarningText),_defineProperty$i(t,KIND$1.negative,e.colors.toastNegativeText),t)[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$2=styled$1("div",function(n){var i=n.$placement,e=n.$theme;return _objectSpread$f({pointerEvents:"none",position:"fixed",right:0,left:0,display:"flex",marginTop:e.sizing.scale300,marginBottom:e.sizing.scale300,marginLeft:e.sizing.scale600,marginRight:e.sizing.scale600},getPlacement(i))});Root$2.displayName="Root";Root$2.displayName="Root";var InnerContainer=styled$1("div",function(n){return _objectDestructuringEmpty(n),{}});InnerContainer.displayName="InnerContainer";InnerContainer.displayName="InnerContainer";var Body$1=styled$1("div",function(n){var i=n.$isVisible,e=n.$kind,t=n.$type,o=n.$theme,d=t===TYPE$1.inline;return _objectSpread$f(_objectSpread$f({},o.typography.font300),{},{pointerEvents:"auto",color:getFontColor$1(e,t,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$1(e,t,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,e=n.$size,t=n.$color,o=n.$isFocusVisible;return _objectSpread$f(_objectSpread$f({},getSvgStyles$1({$theme:i,$size:e,$color:t})),{},{cursor:"pointer",width:e||"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 e in n)e[0]!=="$"&&(i[e]=n[e]);return i}var _excluded$m=["children","title","size","color","overrides"];function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n}
88,_extends$m.apply(this,arguments)}function ownKeys$f(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$e(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$f(Object(e),!0).forEach(function(t){_defineProperty$h(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$f(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$h(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _slicedToArray$i(n,i){return _arrayWithHoles$i(n)||_iterableToArrayLimit$i(n,i)||_unsupportedIterableToArray$i(n,i)||_nonIterableRest$i()}function _nonIterableRest$i(){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$i(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$i(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$i(n,i)}}function _arrayLikeToArray$i(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$i(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$i(n){if(Array.isArray(n))return n}function _objectWithoutProperties$j(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$i(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$i(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}var Icon=function n(i,e){var t=i.children,o=i.title,d=i.size,p=i.color,h=i.overrides,y=h===void 0?{}:h,$=_objectWithoutProperties$j(i,_excluded$m),E=getOverrides(y.Svg,Svg),M=_slicedToArray$i(E,2),H=M[0],Z=M[1],be=H.__STYLETRON__?_objectSpread$e(_objectSpread$e({title:o,$color:p,$size:d},$),Z):_objectSpread$e(_objectSpread$e({title:o,color:p,size:d},omitDollarPrefixedKeys($)),omitDollarPrefixedKeys(Z));return reactExports.createElement(H,_extends$m({"data-baseweb":"icon",ref:e},be),o?reactExports.createElement("title",null,o):null,t)};const Icon$1=reactExports.forwardRef(Icon);var _excluded$l=["title","size","color","overrides"];function _extends$l(){return _extends$l=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$l.apply(this,arguments)}function _objectWithoutProperties$i(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$h(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$h(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$h(n,i){return _arrayWithHoles$h(n)||_iterableToArrayLimit$h(n,i)||_unsupportedIterableToArray$h(n,i)||_nonIterableRest$h()}function _nonIterableRest$h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
90function _unsupportedIterableToArray$h(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$h(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$h(n,i)}}function _arrayLikeToArray$h(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$h(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$h(n){if(Array.isArray(n))return n}function Delete(n,i){var e=useStyletron(),t=_slicedToArray$h(e,2),o=t[1],d=n.title,p=d===void 0?"Delete":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$i(n,_excluded$l),H=mergeOverride({component:o.icons&&o.icons.Delete?o.icons.Delete:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$l({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},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$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 _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$k.apply(this,arguments)}function _slicedToArray$g(n,i){return _arrayWithHoles$g(n)||_iterableToArrayLimit$g(n,i)||_unsupportedIterableToArray$g(n,i)||_nonIterableRest$g()}function _nonIterableRest$g(){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$g(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$g(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$g(n,i)}}function _arrayLikeToArray$g(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$g(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$g(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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$8(n,i,e){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.
91setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$7(n,i)}function _createSuper$8(n){var i=_isNativeReflectConstruct$8();return function(){var t=_getPrototypeOf$8(n),o;if(i){var d=_getPrototypeOf$8(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$8(this,o)}}function _possibleConstructorReturn$8(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$8(n)}function _defineProperty$g(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Toast$1=(function(n){_inherits$8(e,n);var i=_createSuper$8(e);function e(t){var o;return _classCallCheck$8(this,e),o=i.call(this,t),_defineProperty$g(_assertThisInitialized$8(o),"autoHideTimeout",void 0),_defineProperty$g(_assertThisInitialized$8(o),"animateInTimer",void 0),_defineProperty$g(_assertThisInitialized$8(o),"animateOutCompleteTimer",void 0),_defineProperty$g(_assertThisInitialized$8(o),"closeRef",void 0),_defineProperty$g(_assertThisInitialized$8(o),"previouslyFocusedElement",void 0),_defineProperty$g(_assertThisInitialized$8(o),"state",{isVisible:!1,isRendered:!0,isFocusVisible:!1}),_defineProperty$g(_assertThisInitialized$8(o),"handleFocus",function(d){isFocusVisible(d)&&o.setState({isFocusVisible:!0})}),_defineProperty$g(_assertThisInitialized$8(o),"handleBlur",function(d){o.state.isFocusVisible!==!1&&o.setState({isFocusVisible:!1})}),_defineProperty$g(_assertThisInitialized$8(o),"animateIn",function(){o.animateInTimer=setTimeout(function(){o.setState({isVisible:!0})},0)}),_defineProperty$g(_assertThisInitialized$8(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$g(_assertThisInitialized$8(o),"dismiss",function(){o.animateOut(o.props.onClose),o.props.autoFocus&&o.previouslyFocusedElement&&o.previouslyFocusedElement.focus()}),_defineProperty$g(_assertThisInitialized$8(o),"onFocus",function(d){o.state.isVisible&&(clearTimeout(o.autoHideTimeout),clearTimeout(o.animateOutCompleteTimer),typeof o.props.onFocus=="function"&&o.props.onFocus(d))}),_defineProperty$g(_assertThisInitialized$8(o),"onMouseEnter",function(d){o.state.isVisible&&(clearTimeout(o.autoHideTimeout),clearTimeout(o.animateOutCompleteTimer),typeof o.props.onMouseEnter=="function"&&o.props.onMouseEnter(d))}),_defineProperty$g(_assertThisInitialized$8(o),"onBlur",function(d){o.startTimeout(),typeof o.props.onBlur=="function"&&o.props.onBlur(d)}),_defineProperty$g(_assertThisInitialized$8(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$8(e,[{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(t){function o(){return t.apply(this,arguments)}return o.toString=function(){return t.toString()},o})(function(){[this.autoHideTimeout,this.animateInTimer,this.animateOutCompleteTimer].forEach(function(t){t&&clearTimeout(t)})})},{key:"getSharedProps",value:function(){var o=this.props,d=o.kind,p=o.notificationType,h=o.closeable,y=this.state,$=y.isRendered,E=y.isVisible;return{$kind:d,$type:p,$closeable:h,$isRendered:$,$isVisible:E}}},{key:"render",value:function(){var o=this,d=this.props,p=d.children,h=d.closeable,y=this.state.isRendered,$=this.props.overrides,E=$.Body,M=$.CloseIcon,H=$.InnerContainer,Z=getOverrides(E,Body$1),be=_slicedToArray$g(Z,2),ye=be[0],we=be[1],xe=getOverrides(H,InnerContainer),Ce=_slicedToArray$g(xe,2),Ne=Ce[0],Fe=Ce[1],Me=getOverrides(M,CloseIconSvg),Le=_slicedToArray$g(Me,2),ze=Le[0],Ke=Le[1],Ve=mergeOverrides({Svg:{component:ze}},{Svg:M}),je=this.getSharedProps();return y?reactExports.createElement(LocaleContext.Consumer,null,function(We){return reactExports.createElement(ye,_extends$k({role:"alert","data-baseweb":o.props["data-baseweb"]||"toast"},je,we,{onBlur:o.onBlur,onFocus:o.onFocus,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave}),reactExports.createElement(Ne,_extends$k({},je,Fe),typeof p=="function"?p({dismiss:o.dismiss}):p),h?reactExports.createElement(DeleteIcon,_extends$k({ref:o.closeRef,role:"button",tabIndex:0,$isFocusVisible:o.state.isFocusVisible,onClick:o.dismiss,onKeyPress:function(Qe){Qe.key==="Enter"&&o.dismiss()},title:We.toast.close},je,Ke,{onFocus:forkFocus(Ke,o.handleFocus),onBlur:forkBlur(Ke,o.handleBlur),overrides:Ve})):null)}):null}}]),e})(reactExports.Component);_defineProperty$g(Toast$1,"defaultProps",{autoFocus:!1,autoHideDuration:0,
vendor: 3,521 bytes, lines 91-93
91closeable:!0,kind:KIND$1.info,notificationType:TYPE$1.toast,onClose:function n(){},onBlur:function n(){},onFocus:function n(){},onMouseEnter:function n(){},onMouseLeave:function n(){},overrides:{}});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)}var _excluded$k=["onClose","children","key"];function _slicedToArray$f(n,i){return _arrayWithHoles$f(n)||_iterableToArrayLimit$f(n,i)||_unsupportedIterableToArray$f(n,i)||_nonIterableRest$f()}function _nonIterableRest$f(){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$f(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$f(n){if(Array.isArray(n))return n}function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$j.apply(this,arguments)}function _objectWithoutProperties$h(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$g(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$g(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _toConsumableArray$2(n){return _arrayWithoutHoles$2(n)||_iterableToArray$2(n)||_unsupportedIterableToArray$f(n)||_nonIterableSpread$2()}function _nonIterableSpread$2(){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$f(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$f(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$f(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$f(n)}function _arrayLikeToArray$f(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function ownKeys$e(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$d(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$e(Object(e),!0).forEach(function(t){_defineProperty$f(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$e(Object(e)).forEac
93h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$7(n,i,e){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(t,o){return t.__proto__=o,t},_setPrototypeOf$6(n,i)}function _createSuper$7(n){var i=_isNativeReflectConstruct$7();return function(){var t=_getPrototypeOf$7(n),o;if(i){var d=_getPrototypeOf$7(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$7(this,o)}}function _possibleConstructorReturn$7(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$7(n)}function _defineProperty$f(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var toasterRef,ToasterContainer=(function(n){_inherits$7(e,n);var i=_createSuper$7(e);function e(t){var o;return _classCallCheck$7(this,e),o=i.call(this,t),_defineProperty$f(_assertThisInitialized$7(o),"state",{isMounted:!1,toasts:[]}),_defineProperty$f(_assertThisInitialized$7(o),"dismissHandlers",{}),_defineProperty$f(_assertThisInitialized$7(o),"toastId",0),_defineProperty$f(_assertThisInitialized$7(o),"getToastProps",function(d){var p=o.props,h=p.autoFocus,y=p.autoHideDuration,$=p.closeable,E=d.key||"toast-".concat(o.toastId++);return _objectSpread$d(_objectSpread$d({autoFocus:h,autoHideDuration:y,closeable:$},d),{},{key:E})}),_defineProperty$f(_assertThisInitialized$7(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$2(y),[p])}}),p.key}),_defineProperty$f(_assertThisInitialized$7(o),"update",function(d,p){o.setState(function(h){var y=h.toasts,$=y.map(function(E){if(E.key===d){var M=_objectSpread$d(_objectSpread$d(_objectSpread$d({},E),o.getToastProps(_objectSpread$d({autoHideDuration:E.autoHideDuration},p))),{},{key:d},o.props.resetAutoHideTimerOnUpdate?{__updated:(+E.__updated||0)+1}:{});return M}return E});return{toasts:$}})}),_defineProperty$f(_assertThisInitialized$7(o),"dismiss",function(d){o.dismissHandlers[d]&&o.dismissHandlers[d]()}),_defineProperty$f(_assertThisInitialized$7(o),"clearAll",function(){Object.keys(o.dismissHandlers).forEach(function(d){o.dismissHandlers[d]()})}),_defineProperty$f(_assertThisInitialized$7(o),"clear",function(d){d===void 0?o.clearAll():o.dismiss(d)}),_defineProperty$f(_assertThisInitialized$7(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$f(_assertThisInitialized$7(o),"getOnCloseHandler",function(d,p){return function(){o.internalOnClose(d),typeof p=="function"&&p()}}),_defineProperty$f(_assertThisInitialized$7(o),"renderToast",function(d){var p=d.onClose,h=d.children,y=d.key,$=_objectWithoutProperties$h(d,_excluded$k),E=o.props.overrides,M=E.ToastBody,H=E.ToastCloseIcon,Z=E.ToastInnerContainer,be=mergeOverrides({Body:Body$1,CloseIcon:CloseIconSvg,InnerContainer},{Body:M||{},CloseIcon:H||{},InnerContainer:Z||{}}),ye=mergeOverrides(be,d.overrides);return reactExports.createElement(Toast$1,_extends$j({},$,{overrides:ye,key:y,onClose:o.getOnCloseHandler(y,p)}),function(we){var xe=we.dismiss;return o.dismissHandlers[y]=xe,h})}),_defineProperty$f(_assertThisInitialized$7(o),"getSharedProps",function(){var d=o.props.placement;return{$placement:d}}),toasterRef=_assertThisInitialized$7(o),o}
93return _createClass$7(e,[{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$2),h=_slicedToArray$f(p,2),y=h[0],$=h[1],E=this.state.toasts.length,M=[],H=E-1;H>=0;H--)M.push(this.renderToast(this.state.toasts[H]));var Z=reactExports.createElement(y,_extends$j({"data-baseweb":"toaster"},o,$),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)}}]),e})(reactExports.Component);_defineProperty$f(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 e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=this.getRef();if(t)return t.show(_objectSpread$d(_objectSpread$d({},e),{},{children:i}))},info:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.info}))},positive:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.positive}))},warning:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.warning}))},negative:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.negative}))},update:function n(i,e){var t=this.getRef();t&&t.update(i,e)},clear:function n(i){var e=this.getRef();e&&e.clear(i)}};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 _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$i.apply(this,arguments)}
93function _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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$6(n,i,e){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(t,o){return t.__proto__=o,t},_setPrototypeOf$5(n,i)}function _createSuper$6(n){var i=_isNativeReflectConstruct$6();return function(){var t=_getPrototypeOf$6(n),o;if(i){var d=_getPrototypeOf$6(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$6(this,o)}}function _possibleConstructorReturn$6(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$6(n)}function _defineProperty$e(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Notification=(function(n){_inherits$6(e,n);var i=_createSuper$6(e);function e(){return _classCallCheck$6(this,e),i.apply(this,arguments)}return _createClass$6(e,[{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$i({"data-baseweb":"notification"},this.props,{overrides:o}))}}]),e})(reactExports.Component);_defineProperty$e(Notification,"defaultProps",{notificationType:TYPE$1.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$1.negative;case"info":return KIND$1.info;case"success":return KIND$1.positive;case"warning":return KIND$1.warning;default:throw new Error(`Unexpected alert type: ${n}`)}}function AlertContainer({kind:n,width:i,children:e}){const t=useEmotionTheme(),o=n.charAt(0).toUpperCase()+n.slice(1);return jsx$1(Notification,{kind:getNotificationKind(n),overrides:{Body:{style:{fontWeight:t.fontWeights.normal,marginTop:t.spacing.none,marginBottom:t.spacing.none,marginLeft:t.spacing.none,marginRight:t.spacing.none,width:i?i.toString():void 0,border:0,borderTopRightRadius:t.radii.default,borderBottomRightRadius:t.radii.default,borderTopLeftRadius:t.radii.default,borderBottomLeftRadius:t.radii.default,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg},props:{"data-testid":"stAlertContainer",className:"stAlertContainer"}},InnerContainer:{style:{width:"100%",lineHeight:t.lineHeights.small}}},children:jsx$1(StyledAlertContent$1,{"data-testid":`stAlertContent${o}`,children:e})})}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:e,stack:t,width:o}=n,d=t?t.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,": "]}),e,t?jsx$1(StyledStackTrace,{"data-testid":"stErrorElementStack",children:jsx$1(StyledCode,{wrapLines:!1,children:p})}):null]})}const LOG$g=loglevelExports.getLogger("ErrorBoundary"),Ss=class Ss extends reactExports.PureComponent{constructor(){super(...arguments),this.state={error:null},this.componentDidCatch=i=>{LOG$g.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}};Ss.getDerivedStateFromError=i=>({error:i});let ErrorBoundary=Ss;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:getPrimaryFocusBoxShadow(n),borderRadius:n.radii.default},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:focus-visible":{boxShadow:getPrimaryFocusBoxShadow(n),borderRadius:n.radii.default}}}}function convertFontSizes(n,i,e){if(i){const t=roundFontSizeToNearestEighth(parseFloat(n)*.65),o=`${Math.max(t,.75)}rem`;return e?convertRemToEm(o):o}return e?convertRemToEm(n):n}function getMarkdownHeadingDefinitions(n,i,e){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,e),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,e),fontWeight:n.fontWeights.h2FontWeight,padding:`${n.spacing.lg} 0 ${n.spacing.lg} 0`},h3:{fontSize:convertFontSizes(n.fontSizes.h3FontSize,i,e),fontWeight:n.fontWeights.h3FontWeight,padding:`${n.spacing.md} 0 ${n.spacing.lg} 0`},h4:{fontSize:convertFontSizes(n.fontSizes.h4FontSize,i,e),fontWeight:n.fontWeights.h4FontWeight,padding:`${n.spacing.sm} 0 ${n.spacing.lg} 0`},h5:{fontSize:convertFontSizes(n.fontSizes.h5FontSize,i,e),fontWeight:n.fontWeights.h5FontWeight,padding:`${n.spacing.xs} 0 ${n.spacing.lg} 0`},h6:{fontSize:convertFontSizes(n.fontSizes.h6FontSize,i,e),fontWeight:n.fontWeights.h6FontWeight,padding:`${n.spacing.twoXS} 0 ${n.spacing.lg} 0`}}}const StyledStreamlitMarkdown=styled("div",{target:"eg78z5t0"})(({theme:n,isCaption:i,isInDialog:e,isLabel:t,inheritFont:o,boldLabel:d,largerLabel:p,isToast:h})=>{const y=t&&!p||h||i;return{fontFamily:o?"inherit":n.genericFonts.bodyFont,fontSize:o?"inherit":y?n.fontSizes.sm:n.fontSizes.md,marginBottom:t?"":`-${n.spacing.lg}`,opacity:i?.6:void 0,color:"inherit",maxWidth:"100%",width:t?"":"100%",overflowWrap:"break-word",...sharedMarkdownStyle(n),...getMarkdownHeadingDefinitions(n,e,i),"&:has(.katex-display)":{overflowX:"hidden"},p:{wordBreak:"break-word",marginBottom:t?n.spacing.none:"",fontWeight:o?"inherit":d?n.fontWeights.bold:"",marginTop:n.spacing.none,marginLeft:n.spacing.none,marginRight:n.spacing.none},img:{maxWidth:"100%",maxHeight:t?"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}`},"span.stMarkdownColoredBackground":{borderRadius:n.radii.md,padding:`${n.spacing.threeXS} ${n.spacing.twoXS}`,margin:n.spacing.none,boxDecorationBreak:"clone"},"span.stMarkdownBadge":{borderRadius:n.radii.md,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:"eg78z5t1"})(({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:"eg78z5t2"})(({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:"eg78z5t3"})(({theme:n})=>({marginLeft:n.spacing.sm,display:"inline-flex",gap:n.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=styled("hr",{target:"eg78z5t4"})(({theme:n,rainbow:i,color:e})=>({height:`${n.spacing.threeXS} !important`,marginTop:n.spacing.sm,marginBottom:n.spacing.none,border:"none",borderRadius:n.radii.full,...i?{background:e}:{backgroundColor:e}})),StyledPreWrapper=styled("div",{target:"eg78z5t5"})(({theme:n})=>({marginBottom:n.spacing.lg})),StyledHelpIconWrapper=styled("span",{target:"eg78z5t6"})({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.DBIRzFM7.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.BU3d_gp1.js"),__vite__mapDeps([3,1,2]),import.meta.url),loadRemarkEmoji=()=>__vitePreload(()=>import("./index.1PD6f3vh.js"),__vite__mapDeps([4,5]),import.meta.url);function isLoadedPlugin(n){return n!==null&&n!==LOAD_FAILED}function extractPlugin(n,i){const e=[];let t=n,o=0;for(;t&&typeof t=="object"&&"default"in t&&o<5;){const d=t.default;if(e.push(d),d===t)break;t=d,o+=1}e.push(n);for(const d of e)if(typeof d=="function")return d;return console.warn(`[StreamlitMarkdown] Failed to load ${i} plugin`),LOAD_FAILED}function wrapRehypePlugin(n,i){return e=>{const t=n(e);return(o,d)=>
96{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function wrapRemarkPlugin(n,i){return e=>{const t=n(e);return(o,d)=>{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function useLazyPlugin(n){const{key:i,needed:e,load:t,pluginName:o,onBeforeLoad:d}=n,p=e?pluginCache[i]:null,[h,y]=reactExports.useState(null);return reactExports.useEffect(()=>{if(!e||p||h)return;const $=loadingPromises[i];if($){let H=!1;return $.then(Z=>{H||y(()=>Z)}),()=>{H=!0}}d?.();let E=!1;const M=t().then(H=>extractPlugin(H,o)).then(H=>(pluginCache[i]=H,E||y(()=>H),H)).catch(()=>{const H=LOAD_FAILED;return pluginCache[i]=H,E||y(()=>H),H}).finally(()=>{loadingPromises[i]=null});return loadingPromises[i]=M,()=>{E=!0}},[e,p,h,i,t,o,d]),e?p??h:null}const StreamlitSyntaxHighlighter$1=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.DUPp9dS3.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,e,t)=>{i.tagName==="code"&&(t?.type==="element"&&t.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:e})=>{const t=useEmotionTheme();return!i&&e?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[i&&jsx$1(InlineTooltipIcon,{content:i}),n&&!e&&jsx$1(StyledLinkIcon,{href:`#${n}`,"aria-label":"Link to heading",children:jsx$1(Link2,{size:convertRemToPx(t.iconSizes.base),"aria-hidden":"true"})})]})},HeadingWithActionElements=({tag:n,anchor:i,help:e,hideAnchor:t,children:o,tagProps:d})=>{const p=reactExports.useContext(IsSidebarContext),h=reactExports.useContext(IsDialogContext),[y,$]=reactExports.useState(i),E=reactExports.useCallback(Fe=>{if(Fe===null)return;const Me=i||createAnchorFromText(Fe.textContent);$(Me);const Le=window.location.hash.slice(1);Le&&Le===Me&&scrollNodeIntoView(Fe)},[i]),M=p||h,H=jsx$1(HeaderActionElements,{elementId:y,help:e,hideAnchor:t||M}),Z=reactExports.useId(),be=e||y&&!t&&!M?Z:void 0,ye=y?{id:y}:{},we=be?{"aria-labelledby":be}:{},xe={...M?{}:{ref:E,...ye},...we},Ne=jsxs(n,{...d,...xe,children:[be?jsx$1("span",{id:be,children:o}):o,H]});return M?Ne:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:Ne})},CustomHeading=({node:n,children:i,...e})=>{const t=e["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:n.tagName,anchor:t,tagProps:e,children:i})},CustomCodeTag=({inline:n,className:i,children:e,...t})=>{const o=/language-(\w+)/.exec(i||""),d=String(e??"").replace(/^\n/,"").replace(/\n$/,""),p=o?.[1]||"";return n?jsx$1(StyledInlineCode,{className:i,...omit(t,"node"),children:e}):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 e=useCrossOriginAttribute(i.src),t=n.tagName,o={...i,crossOrigin:e};return jsx$1(t,{...o})},HelpTextContext=reactExports.createContext(void 0);HelpTextContext.displayName="HelpTextContext";const CustomHelpIcon=({children:n})=>{const e=reactExports.useContext(HelpTextContext)||(typeof n=="string"?n:"");return jsx$1(StyledHelpIconWrapper,{children:jsx$1(InlineTooltipIcon,{content:e})})},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:e,yellow:t,green:o,blue:d,violet:p,purple:h,gray:y,primary:$}=getMarkdownTextColors(n),{redbg:E,orangebg:M,yellowbg:H,greenbg:Z,bluebg:be,violetbg:ye,purplebg:we,graybg:xe,primarybg:Ce}=getMarkdownBgColors(n);return new Map(Object.entries({red:`color: ${i}`,orange:`color: ${e}`,yellow:`color: ${t}`,blue:`color: ${d}`,green:`color: ${o}`,violet:`color: ${p}`,gray:`color: ${y}`,grey:`color: ${y}`,primary:`color: ${$}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right, 97 ${i}, ${e}, ${t}, ${o}, ${d}, ${p}, ${h});`,"red-background":`background-color: ${E}`,"orange-background":`background-color: ${M}`,"yellow-background":`background-color: ${H}`,"blue-background":`background-color: ${be}`,"green-background":`background-color: ${Z}`,"violet-background":`background-color: ${ye}`,"gray-background":`background-color: ${xe}`,"grey-background":`background-color: ${xe}`,"primary-background":`background-color: ${Ce}`,"rainbow-background":`background: linear-gradient(to right, 98 ${E}, ${M}, ${H}, ${Z}, ${be}, ${ye}, ${we});`}))}function createRemarkHelpIcon(){return()=>n=>(visit(n,"textDirective",(i,e,t)=>{if(String(i.name)==="help"){const d=i.data||(i.data={});d.hName="streamlit-help-icon",d.hProperties=d.hProperties||{};return}}),n)}function createRemarkColoringAndSmall(n,i){return()=>e=>(visit(e,"textDirective",(t,o,d)=>{const p=String(t.name);if(p==="small"){const y=t.data||(t.data={});y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=`font-size: ${n.fontSizes.sm};`;return}
98const h=p.match(/^(.+)-badge$/);if(h&&i.has(h[1])){const y=h[1];if(y==="rainbow")return;const $=i.get(y),E=i.get(`${y}-background`);if($&&E){const M=t.data||(t.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=t.data||(t.data={}),$=i.get(p);y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=$,y.hProperties.className="stMarkdownColoredText",$&&(/background-color:/.test($)||/background:/.test($))&&(y.hProperties.className="stMarkdownColoredBackground");return}}),e)}function createRemarkUnsupportedDirectivesCleanup(){return()=>n=>(visit(n,"textDirective",(i,e,t)=>{if(!i.data?.hName&&t&&e!==void 0){const o={type:"text",value:`:${i.name}`};t.children[e]=o}}),n)}function createRemarkMaterialIcons(n){return()=>i=>{function e(t,o){return{type:"text",value:t,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,e]]),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,e,t)=>{if(!(t&&(t.type==="link"||t.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:e,children:t,target:o,rel:d,...p}=n;return jsx$1("a",{href:i,title:e,target:o||"_blank",rel:d||"noopener noreferrer",...omit(p,"node"),children:t})}const RenderedMarkdown=reactExports.memo(function n({allowHTML:i,source:e,overrideComponents:t,isLabel:o,disableLinks:d,helpText:p}){const h=useEmotionTheme(),y=reactExports.useMemo(()=>containsMathSyntax(e),[e]),$=reactExports.useMemo(()=>containsEmojiShortcodes(e),[e]),E=useLazyPlugin({key:"katex",needed:y,load:loadKatexPlugin,pluginName:"rehype-katex",onBeforeLoad:loadKatexStyles}),M=useLazyPlugin({key:"raw",needed:i,load:loadRehypeRaw,pluginName:"rehype-raw"}),H=useLazyPlugin({key:"emoji",needed:$,load:loadRemarkEmoji,pluginName:"remark-emoji"}),Z=reactExports.useMemo(()=>createColorMapping(h),[h]),be=reactExports.useMemo(()=>isLoadedPlugin(E)?wrapRehypePlugin(E,"rehype-katex"):null,[E]),ye=reactExports.useMemo(()=>isLoadedPlugin(M)?wrapRehypePlugin(M,"rehype-raw"):null,[M]),we=reactExports.useMemo(()=>isLoadedPlugin(H)?wrapRemarkPlugin(H,"remark-emoji"):null,[H]),xe=reactExports.useMemo(()=>{const ze=[...BASE_REMARK_PLUGINS,createRemarkColoringAndSmall(h,Z),createRemarkMaterialIcons(h)];return $&&we&&ze.push(we),ze.push(createRemarkUnsupportedDirectivesCleanup()),ze},[h,Z,$,we]),Ce=reactExports.useMemo(()=>{const ze=[];return y&&be&&ze.push(be),i&&ye&&ze.push(ye),ze.push(rehypeSetCodeInlineProperty),ze},[i,y,be,ye]),Ne=reactExports.useMemo(()=>({...BASE_RENDERERS,a:LinkWithTargetBlank,...t||{}}),[t]),Fe=reactExports.useMemo(()=>e.replaceAll(":material/",":material_"),[e]),Me=reactExports.useMemo(()=>o?d?LINKS_DISALLOWED_ELEMENTS:LABEL_DISALLOWED_ELEMENTS:[],[o,d]);return y&&E===null||i&&M===null||$&&H===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:Ce,components:Ne,urlTransform:transformLinkUri,disallowedElements:Me,unwrapDisallowed:!0,children:Fe})})})}),StreamlitMarkdown=({source:n,allowHTML:i,style:e,isCaption:t,isLabel:o,boldLabel:d,largerLabel:p,disableLinks:h,isToast:y,inheritFont:$,helpText:E})=>{const M=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!t,isInDialog:M,isLabel:o,inheritFont:$,boldLabel:d,largerLabel:p,isToast:y,style:e,"data-testid":t?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:n,allowHTML:i,isLabel:o,disableLinks:h,helpText:E})})},StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown);function TooltipIcon(n){const{placement:i=Placement.AUTO,isLatex:e=!1,content:t,markdownProps:o,onMouseEnterDelay:d,containerWidth:p=!1}=n,h=useEmotionTheme(),y=E=>jsx$1(StyledTooltipTriggerButton,{type:"button","aria-label":E,children:jsx$1(HelpCircle,{className:"icon","aria-hidden":"true",focusable:"false",size:convertRemToPx(h.iconSizes.base)})}),$=()=>{if("children"in n)return reactExports.isValidElement(n.children)?n.children:y("Help");const E=n.ariaLabel.trim();return E.length?y(E):y("Help")};return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:e,children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:h.fontSizes.sm},source:t,allowHTML:!1,...o||{}}),placement:i,onMouseEnterDelay:d,inline:!0,containerWidth:p,children:$()})})}function getHelpTooltipAriaLabel(n){const i=n?.trim(),e=i?i.replace(/\s+/g," "):null;return e?`Help for ${e}`:"Help"}const InlineTooltipIcon=({placement:n=Placement.TOP_RIGHT,isLatex:i=!1,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p="Help"})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:n,isLatex:i,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p})});function BaseButtonTooltip({children:n,help:i,placement:e,containerWidth:t}){return i?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:i,placement:e||Placement.TOP,containerWidth:t,children:n})}),jsx$1(StyledTooltipMobile,{children:n})]}):n}const isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(n,i,e,t){n.addEventListener?n.addEventListener(i,e,t):n.attachEvent&&n.attachEvent("on".concat(i),e)}function removeEvent(n,i,e,t){n.removeEventListener?n.removeEventListener(i,e,t):n.detachEvent&&n.detachEvent("on".concat(i),e)}function getMods(n,i){const e=i.slice(0,i.length-1);for(let t=0;t<e.length;t++)e[t]=n[e[t].toLowerCase()];return e}
106function getKeys(n){typeof n!="string"&&(n=""),n=n.replace(/\s/g,"");const i=n.split(",");let e=i.lastIndexOf("");for(;e>=0;)i[e-1]+=",",i.splice(e,1),e=i.lastIndexOf("");return i}function compareArray(n,i){const e=n.length>=i.length?n:i,t=n.length>=i.length?i:n;let o=!0;for(let d=0;d<e.length;d++)t.indexOf(e[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(e=>{let{key:t,scope:o,mods:d,shortcut:p}=e;n.push({scope:o,shortcut:p,mods:d,keys:t.split("+").map(h=>code(h))})})}),n}function filter(n){const i=n.target||n.srcElement,{tagName:e}=i;let t=!0;const o=e==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(i.type);return(i.isContentEditable||(o||e==="TEXTAREA"||e==="SELECT")&&!i.readOnly)&&(t=!1),t}function isPressed(n){return typeof n=="string"&&(n=code(n)),_downKeys.indexOf(n)!==-1}function deleteScope(n,i){let e,t;n||(n=getScope());for(const o in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,o))for(e=_handlers[o],t=0;t<e.length;)e[t].scope===n?e.splice(t,1).forEach(p=>{let{element:h}=p;return removeKeyEvent(h)}):t++;getScope()===n&&setScope(i||"all")}function clearModifier(n){let i=n.keyCode||n.which||n.charCode;const e=_downKeys.indexOf(i);if(e>=0&&_downKeys.splice(e,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 t in _modifier)_modifier[t]===i&&(hotkeys[t]=!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,e=new Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];let[o,d]=e;typeof o=="function"&&(d=o,o=""),eachUnbind({key:n,scope:o,method:d,splitKey:"+"})}}const eachUnbind=n=>{let{key:i,scope:e,method:t,splitKey:o="+"}=n;
106getKeys(i).forEach(p=>{const h=p.split(o),y=h.length,$=h[y-1],E=$==="*"?"*":code($);if(!_handlers[E])return;e||(e=getScope());const M=y>1?getMods(_modifier,h):[],H=[];_handlers[E]=_handlers[E].filter(Z=>{const ye=(t?Z.method===t:!0)&&Z.scope===e&&compareArray(Z.mods,M);return ye&&H.push(Z.element),!ye}),H.forEach(Z=>removeKeyEvent(Z))})};function eventHandler(n,i,e,t){if(i.element!==t)return;let o;if(i.scope===e||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 e=_handlers["*"];let t=n.keyCode||n.which||n.charCode;if(!hotkeys.filter.call(this,n))return;if((t===93||t===224)&&(t=91),_downKeys.indexOf(t)===-1&&t!==229&&_downKeys.push(t),["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))))}),t in _mods){_mods[t]=!0;for(const h in _modifier)_modifier[h]===t&&(hotkeys[h]=!0);if(!e)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(e)for(let h=0;h<e.length;h++)e[h].scope===o&&(n.type==="keydown"&&e[h].keydown||n.type==="keyup"&&e[h].keyup)&&eventHandler(n,e[h],o,i);if(!(t in _handlers))return;const d=_handlers[t],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:$}=y,E=y.key.split($),M=[];for(let H=0;H<E.length;H++)M.push(code(E[H]));M.sort().join("")===_downKeys.sort().join("")&&eventHandler(n,y,o,i)}}function hotkeys(n,i,e){_downKeys=[];const t=getKeys(n);let o=[],d="all",p=document,h=0,y=!1,$=!0,E="+",M=!1,H=!1;for(e===void 0&&typeof i=="function"&&(e=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&&($=i.keydown),i.capture!==void 0&&(M=i.capture),typeof i.splitKey=="string"&&(E=i.splitKey),i.single===!0&&(H=!0)),typeof i=="string"&&(d=i),H&&unbind(n,d);h<t.length;h++)n=t[h].split(E),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:$,scope:d,mods:o,shortcut:t[h],method:e,key:t[h],splitKey:E,element:p});if(typeof p<"u"&&window){if(!elementEventMap.has(p)){const Z=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(ye,p)},be=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(ye,p),clearModifier(ye)};elementEventMap.set(p,{keydownListener:Z,keyupListenr:be,capture:M}),addEvent(p,"keydown",Z,M),addEvent(p,"keyup",be,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(e=>{_handlers[e].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(t=>{let{element:o}=t;return o===n})<0){const{keydownListener:t,keyupListenr:o,capture:d}=elementEventMap.get(n)||{};t&&o&&(removeEvent(n,"keyup",o,d),removeEvent(n,"keydown",t,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 t of i){const o=t;if(o?.tagName&&(EDITABLE_TAGS.has(o.tagName)||o.isContentEditable||o.getAttribute("contenteditable")==="true"))return o}return null}const e=n.target||n.srcElement;return e?.tagName&&(EDITABLE_TAGS.has(e.tagName)||e.isContentEditable||e.getAttribute("contenteditable")==="true")?e: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 e=n.key??"";if(e.length>1&&!/^[a-z0-9]$/i.test(e))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 e;for(let o=i.length-1;o>=0;o-=1){const d=i[o];if(!MODIFIER_TOKENS.has(d)){e=d;break}}const t=i.some(o=>SYSTEM_MODIFIERS.has(o));return{tokens:i,baseKey:e,hasSystemModifier:t}}function shouldBlockShortcutInInput(n,i){if(!getEditableEventTarget(i)||n.hasSystemModifier)return!1;const t=n.baseKey;return!!(!t||t.length===1&&/^[a-z0-9]$/i.test(t)||t==="space"||t==="tab"||t==="enter"||NAVIGATION_KEYS.has(t))}function toHotkeysSequenceFromTokens(n){return n.map(i=>i==="cmd"?"command":i).join("+")}function buildSequences(n){if(!n)return[];const{tokens:i}=n,t=isFromMac()?"cmd":"ctrl",o=i.map(p=>p==="cmd"||p==="ctrl"||p==="mod"?t: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 e=parseShortcutString(n);if(!e)return;const t=i?.isMac??!1,o=[];if(MODIFIER_ORDER.forEach(d=>{if(e.tokens.includes(d)){const p=getModifierLabel(d,t);p&&o.push(p)}}),e.baseKey&&o.push(getKeyLabel(e.baseKey)),o.length!==0)return o.join(" + ")}function useRegisterShortcut({shortcut:n,disabled:i=!1,onActivate:e}){const t=reactExports.useMemo(()=>parseShortcutString(n),[n]),o=reactExports.useMemo(()=>buildSequences(t),[t]);reactExports.useEffect(()=>{if(!t||o.length===0||i)return;const d=(p,h)=>{i||shouldBlockShortcutInInput(t,p)||(p.preventDefault(),e())};return o.forEach(p=>{hotkeys(p,d)}),()=>{o.forEach(p=>{hotkeys.unbind(p,d)})}},[t,o,i,e])}const DynamicButtonLabel=({icon:n,label:i,iconSize:e,useSmallerFont:t=!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:e??"lg",iconValue:n}),i&&jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,isLabel:!0,largerLabel:!t,disableLinks:!0}),n&&o==="right"&&jsx$1(DynamicIcon,{size:e??"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:e,fontSizes:t,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:e.bodyFont,fontSize:t.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:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.twoXL,paddingBottom:t.twoXL,paddingLeft:t.twoXL,color:i.bodyText,fontSize:e.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,e,t){return n==="large"&&t?t:n==="medium"&&i&&e?`calc(${i} + ${e})`:n==="auto"?SIZE$2.auto:SIZE$2.default}function Modal(n){const{spacing:i,radii:e,colors:t,sizes:o}=useEmotionTheme(),d={Root:{style:{background:t.darkenedBgMix25},props:{className:"stDialog","data-testid":"stDialog"}},DialogContainer:{style:{alignItems:"start",paddingTop:i.threeXL}},Dialog:{style:{borderBottomRightRadius:e.xxl,borderBottomLeftRadius:e.xxl,borderTopRightRadius:e.xxl,borderTopLeftRadius:e.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:e,widgetMgr:t,fragmentId:o})=>{const{title:d,dismissible:p,width:h,isOpen:y,id:$,icon:E}=n,[M,H]=reactExports.useState(!1);reactExports.useEffect(()=>{notNullOrUndefined(y)&&H(y)},[y,i]);const Z=reactExports.useCallback(()=>{H(!1),$&&t&&t.setTriggerValue({id:$,formId:""},{fromUi:!0},o)},[$,t,o]),be=reactExports.useCallback(ye=>{if(M&&ye.key.toLowerCase()==="r"&&!n.dismissible){const we=ye.target;if(we&&(we.isContentEditable||we.tagName==="INPUT"||we.tagName==="TEXTAREA"||we.tagName==="SELECT"))return;ye.preventDefault(),ye.stopPropagation()}},[M,n.dismissible]);return reactExports.useEffect(()=>{if(M&&!n.dismissible)return document.addEventListener("keydown",be,!0),()=>{document.removeEventListener("keydown",be,!0)}},[M,n.dismissible,be]),M?jsxs(Modal,{isOpen:!0,closeable:p,onClose:Z,size:mapDialogWidthToModalSize(h),children:[jsx$1(ModalHeader,{children:jsxs(StyledDialogTitle,{children:[E&&jsx$1(StyledDialogIcon,{"data-testid":"stDialogIcon",children:jsx$1(DynamicIcon,{iconValue:E,size:"lg"})}),jsx$1(StreamlitMarkdown$1,{source:d,allowHTML:!1,isLabel:!0,inheritFont:!0})]})}),jsx$1(ModalBody$1,{children:e})]}):jsx$1(Fragment,{})};function DialogWithProvider(n){return jsx$1(IsDialogContext.Provider,{value:!0,children:jsx$1(Dialog,{...n})})}const Dialog$1=reactExports.memo(DialogWithProvider),StyledExpandableContainer=styled("div",{target:"e1x5aka40"})({width:"100%"}),BORDER_SIZE=1,StyledDetails=styled("details",{target:"e1x5aka41"})(({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:"e1x5aka42"})(({theme:n})=>({display:"flex",alignItems:"center",flexGrow:1,minWidth:0,width:"100%",maxWidth:"100%",overflow:"hidden",gap:n.spacing.sm})),StyledSummaryLabelWrapper=styled("div",{target:"e1x5aka43"})({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),StyledSummary=styled("summary",{target:"e1x5aka44"})(({theme:n,isStale:i,expanded:e})=>({position:"relative",display:"flex",width:"100%",minWidth:0,overflow:"hidden","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:getPrimaryFocusBoxShadow(n)},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:e?n.colors.bgMix:"transparent",borderRadius:e?`${n.radii.default} ${n.radii.default} 0 0`:n.radii.default,transition:e?"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})),StyledDetailsPanel=styled("div",{target:"e1x5aka45"})(({theme:n})=>({padding:n.spacing.lg,borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),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,children:e})=>{const{label:t,expanded:o}=n,[d,p]=reactExports.useState(o||!1),[h,y]=reactExports.useState(!1),$=reactExports.useRef(null),E=reactExports.useRef(null),M=reactExports.useRef(null),H=reactExports.useRef(null),Z=reactExports.useRef(null);reactExports.useEffect(()=>{notNullOrUndefined(o)&&(p(o),$.current&&($.current.open=o))},[t,o]);const be=Me=>{$.current&&($.current.open=Me,M.current=null,$.current.style.height="",$.current.style.overflow="")},ye=(Me,Le,ze)=>{const Ke=ze>Le;M.current&&(M.current.cancel(),H.current&&(clearTimeout(H.current),H.current=null));const Ve=Me.animate({height:[`${Le}px`,`${ze}px`]},{duration:500,easing:"cubic-bezier(0.23, 1, 0.32, 1)"});Ve.addEventListener("finish",()=>be(Ke)),M.current=Ve},we=Me=>{Me.preventDefault(),p(!d);const Le=$.current;if(!Le||!E.current)return;Le.style.overflow="hidden";const ze=Le.getBoundingClientRect().height,Ke=E.current.getBoundingClientRect().height;d?ye(Le,ze,Ke+2*BORDER_SIZE):(Le.style.height=`${ze}px`,Le.open=!0,window.requestAnimationFrame(()=>{ye(Le,ze,Ke+2*BORDER_SIZE+5),H.current=setTimeout(()=>{if(!Z.current)return;const Ve=Z.current.getBoundingClientRect().height;ye(Le,ze,Ke+Ve+2*BORDER_SIZE)},100)}))},xe=()=>{y(!0)},Ce=()=>{y(!1)},Ne=!n.icon||h,Fe=n.icon&&!h;return jsx$1(StyledExpandableContainer,{className:"stExpander","data-testid":"stExpander",children:jsxs(StyledDetail
106s,{isStale:i,ref:$,onMouseEnter:xe,onMouseLeave:Ce,children:[jsx$1(StyledSummary,{onClick:we,ref:E,isStale:i,expanded:d,children:jsxs(StyledSummaryHeading,{children:[Ne&&jsx$1(DynamicIcon,{iconValue:d?":material/keyboard_arrow_down:":":material/keyboard_arrow_right:",size:"lg"}),Fe&&jsx$1(ExpanderIcon,{icon:n.icon}),jsx$1(StyledSummaryLabelWrapper,{children:jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1,isLabel:!0,largerLabel:!0})})]})}),jsx$1(StyledDetailsPanel,{"data-testid":"stExpanderDetails",ref:Z,children:e})]})})},Expander$1=reactExports.memo(Expander),Box=styled("div",{target:"ew64v8o0"})(({width:n="100%",height:i})=>({width:n,height:i})),getBorderColor=(n,i)=>{let e=n.widgetBorderColor??n.secondaryBg;return i&&(e=n.primary),e},useResizeObserver=(n,i=[])=>{const e=reactExports.useRef(null),[t,o]=reactExports.useState([]),d=reactExports.useCallback(()=>{if(!e.current)return[];const p=e.current.getBoundingClientRect();return n.map(h=>p[h])},[n]);return reactExports.useEffect(()=>{if(!e.current)return;o(d());let p;const h=new ResizeObserver(()=>{p=window.requestAnimationFrame(()=>{o(d())})});return h.observe(e.current),()=>{h.disconnect(),p&&cancelAnimationFrame(p)}},[n,d,...i]),{values:t,elementRef:e}},useCalculatedDimensions=(n=[],i=-1)=>{const{values:[e,t],elementRef:o}=useResizeObserver(reactExports.useMemo(()=>["width","height"],[]),n);return{width:e||i,height:t||i,elementRef:o}},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:e,stretchWidth:t})=>{const[o,d]=reactExports.useState(!1),p=reactExports.useContext(IsSidebarContext),h=useEmotionTheme(),y=hasLightBackgroun
106dColor(h),{width:$,elementRef:E}=useCalculatedDimensions();let M=BaseButtonKind.SECONDARY;return n.type==="primary"?M=BaseButtonKind.PRIMARY:n.type==="tertiary"&&(M=BaseButtonKind.TERTIARY),jsx$1(Box,{"data-testid":"stPopover",className:"stPopover",ref:E,children:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT$1.bottomLeft,content:()=>e,isOpen:o,onClickOutside:()=>d(!1),onClick:()=>o?d(!1):void 0,onEsc:()=>d(!1),ignoreBoundary:p,renderAll:!0,overrides:{Body:{props:{"data-testid":"stPopoverBody"},style:()=>({marginRight:h.spacing.lg,marginBottom:h.spacing.lg,maxHeight:"70vh",overflow:"auto",maxWidth:`calc(${h.sizes.contentMaxWidth} - 2*${h.spacing.lg})`,minWidth:t?`${Math.max($,160)}px`:h.sizes.minPopupWidth,[`@media (max-width: ${h.breakpoints.sm})`]:{maxWidth:`calc(100% - ${h.spacing.threeXL})`},borderTopLeftRadius:h.radii.xl,borderTopRightRadius:h.radii.xl,borderBottomRightRadius:h.radii.xl,borderBottomLeftRadius:h.radii.xl,borderLeftWidth:h.sizes.borderWidth,borderRightWidth:h.sizes.borderWidth,borderTopWidth:h.sizes.borderWidth,borderBottomWidth:h.sizes.borderWidth,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})`,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:h.colors.borderColor,borderRightColor:h.colors.borderColor,borderTopColor:h.colors.borderColor,borderBottomColor:h.colors.borderColor,boxShadow:y?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"})}},children:jsx$1("div",{children:jsx$1(BaseButtonTooltip,{help:n.help,containerWidth:!0,children:jsx$1(BaseButton,{"data-testid":"stPopoverButton",kind:M,size:BaseButtonSize.SMALL,disabled:i||n.disabled,containerWidth:!0,onClick:()=>d(!o),children:jsxs(StyledPopoverLabelContainer,{children:[jsx$1(DynamicButtonLabel,{icon:n.icon,label:n.label}),jsx$1(StyledPopoverExpansionIcon,{children:jsx$1(DynamicIcon,{iconValue:o?":material/expand_less:":":material/expand_more:",size:"lg"})})]})})})})})})},Popover$1=reactExports.memo(Popover);var ORIENTATION={vertical:"vertical",horizontal:"horizontal"},FILL={fixed:"fixed",intrinsic:"intrinsic"},getTabId=function n(i,e){return"tabs-".concat(i,"-tab-").concat(e)},getTabPanelId=function n(i,e){return"tabs-".concat(i,"-tabpanel-").concat(e)},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$d(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$c(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$d(Object(e),!0).forEach(function(t){_defineProperty$d(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$d(Object(e)).forEac
106h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$d(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var StyledRoot$1=styled$1("div",function(n){n.$theme;var i=n.$orientation,e=i===void 0?ORIENTATION.horizontal:i,t={transform:"scale(1)"};return isVertical(e)&&(t.display="flex"),t});StyledRoot$1.displayName="StyledRoot";StyledRoot$1.displayName="StyledRoot";var StyledTabBar=styled$1("div",function(n){var i=n.$hasEndEnhancer,e=n.$orientation;return i||!isHorizontal(e)?{display:"flex"}:{}});StyledTabBar.displayName="StyledTabBar";StyledTabBar.displayName="StyledTabBar";var StyledTabList=styled$1("div",function(n){var i=n.$theme,e=n.$fill,t=e===void 0?FILL.intrinsic:e,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(t)&&(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,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$fill,d=o===void 0?FILL.intrinsic:o,p=n.$focusVisible,h=p===void 0?!1:p;n.$isActive;var y=_objectSpread$c({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(t)?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,e=i.direction==="rtl"?"marginRight":"marginLeft";return _defineProperty$d({display:"flex",alignItems:"center",justifyContent:"flex-end"},e,i.sizing.scale600)});StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";var StyledArtworkContainer=styled$1("div",function(n){var i=n.$theme;n.$orientation;var e={display:"flex"};return isRTL(i.direction)?e.marginLeft=i.sizing.scale300:e.marginRight=i.sizing.scale300,e});StyledArtworkContainer.displayName="StyledArtworkContainer";StyledArtworkContainer.displayName="StyledArtworkContainer";var StyledTabBorder=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o={backgroundColor:i.colors.borderOpaque,position:"relative"};return isHorizontal(t)?o.height="5px":o.width="5px",o});StyledTabBorder.displayName="StyledTabBorder";StyledTabBorder.displayName="StyledTabBorder";var StyledTabHighlight=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$length,d=o===void 0?0:o,p=n.$distance,h=p===void 0?0:p,y=n.$animate,$=y===void 0?!1:y,E={backgroundColor:i.colors.borderSelected,position:"absolute",zIndex:1};
106return isHorizontal(t)?(E.bottom="0px",E.left="0px",E.height="5px",E.width="".concat(d,"px"),E.transform="translateX(".concat(h,"px)")):(E.transform="translateY(".concat(h,"px)"),E.width="5px",E.height="".concat(d,"px"),isRTL(i.direction)?E.left="0px":E.right="0px"),$&&(E.transitionProperty="all",E.transitionDuration=i.animation.timing400,E.transitionTimingFunction=i.animation.easeInOutQuinticCurve),E});StyledTabHighlight.displayName="StyledTabHighlight";StyledTabHighlight.displayName="StyledTabHighlight";var StyledTabPanel=styled$1("div",function(n){var i=n.$theme,e=n.$pad,t=e===void 0?!0:e,o={flexGrow:1,outline:"none"};return t&&(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$j=["childKey","childIndex","activeKey","orientation","activeTabRef","updateHighlight","parseKeyDown","activateOnFocus","uid","disabled","sharedStylingProps","onChange"],_excluded2$4=["artwork","overrides","tabRef","onClick","title"],_excluded3$1=["childKey","childIndex","activeKey","uid","sharedStylingProps","renderAll"];function ownKeys$c(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$b(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$c(Object(e),!0).forEach(function(t){_defineProperty$c(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$c(Object(e)).forEac
106h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$c(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _toConsumableArray$1(n){return _arrayWithoutHoles$1(n)||_iterableToArray$1(n)||_unsupportedIterableToArray$e(n)||_nonIterableSpread$1()}function _nonIterableSpread$1(){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$1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$1(n){if(Array.isArray(n))return _arrayLikeToArray$e(n)}function _objectWithoutProperties$g(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$f(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$f(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$h.apply(this,arguments)}function _slicedToArray$e(n,i){return _arrayWithHoles$e(n)||_iterableToArrayLimit$e(n,i)||_unsupportedIterableToArray$e(n,i)||_nonIterableRest$e()}function _nonIterableRest$e(){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$e(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$e(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$e(n,i)}}function _arrayLikeToArray$e(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$e(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$e(n){if(Array.isArray(n))return n}var KEYBOARD_ACTION={next:"next",previous:"previous"},getLayoutParams=function n(i,e){return i?isVertical(e)?{length:i.clientHeight,distance:i.offsetTop}:{length:i.clientWidth,distance:i.offsetLeft}:{length:0,distance:0}},scrollParentToCentreTarget=function n(i){var e=i.parentNode.getBoundingClientRect(),t=e.x,o=e.y,d=e.width,p=e.height,h=i.getBoundingClientRect(),y=h.x,$=h.y,E=h.width,M=h.height,H={x:y-t+E/2,y:$-o+M/2},Z=i.parentNode,be=Z.scrollLeft,ye=Z.scrollTop,we={x:be+H.x-d/2,y:ye+H.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,e=i===void 0?"0":i,t=n.disabled,o=t===void 0?!1:t,d=n.children,p=n.fill,h=p===void 0?FILL.intrinsic:p,y=n.activateOnFocus,$=y===void 0?!0:y,E=n.onChange,M=n.orientation,H=M===void 0?ORIENTATION.horizontal:M,Z=n.overrides,be=Z===void 0?{}:Z,ye=n.renderAll,we=ye===void 0?!1:ye,xe=n.uid,Ce=xe===void 0?null:xe,Ne=n.endEnhancer,Fe=useUID(),Me=Ce||Fe,Le=be.Root,ze=be.TabList,Ke=be.TabHighlight,Ve=be.TabBorder,je=getOverrides(Le,StyledRoot$1),We=_slicedToArray$e(je,2),Xe=We[0],Qe=We[1],Ye=getOverrides(ze,StyledTabList),Ue=_slicedToArray$e(Ye,2),ot=Ue[0],dt=Ue[1],st=getOverrides(Ke,StyledTabHighlight),pt=_slicedToArray$e(st,2),Be=pt[0],qe=pt[1],rt=getOverrides(Ve,StyledTabBorder),He=_slicedToArray$e(rt,2),Ot=He[0],Ct=He[1],tt=getOverrides(be.EndEnhancerContainer,StyledEndEnhancerContainer),wt=_slicedToArray$e(tt,2),gt=wt[0],$t=wt[1],Mt=reactExports.useState(0),qt=_slicedToArray$e(Mt,2),cn=qt[0],en=qt[1];reactExports.useEffect(function(){en(cn+1)},[e]);var Wt=reactExports.useRef(),dn=reactExports.useState({length:0,distance:0}),Yt=_slicedToArray$e(dn,2),zt=Yt[0],nn=Yt[1],Ut=reactExports.useCallback(function(){Wt.current&&nn(getLayoutParams(Wt.current,H))},[Wt.current,H]);reactExports.useEffect(Ut,[Wt.current,H]),reactExports.useEffect(function(){Wt.current&&(isHorizontal(H)?Wt.current.parentNode.scrollWidth>Wt.current.parentNode.clientWidth:Wt.current.parentNode.scrollHeight>Wt.current.parentNode.clientHeight)&&(cn>1?Wt.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}):scrollParentToCentreTarget(Wt.current))},[Wt.current]);var Zt={$orientation:H,$fill:h},fn=useStyletron(),On=_slicedToArray$e(fn,2),tn=On[1],bn=reactExports.useCallback(function(Gt){if(isHorizontal(H))if(isRTL(tn.direction))switch(Gt.keyCode){case 39:return KEYBOARD_ACTION.previous;case 37:return KEYBOARD_ACTION.next;default:return null}else switch(Gt.keyCode){case 37:return KEYBOARD_ACTION.previous;case 39:return KEYBOARD_ACTION.next;default:return null}else switch(Gt.keyCode){case 38:return KEYBOARD_ACTION.previous;case 40:return KEYBOARD_ACTION.next;default:return null}},[H,tn.direction]);return reactExports.createElement(Xe,_extends$h({},Zt,Qe),reactExports.createElement(StyledTabBar,{$hasEndEnhancer:!!Ne,$orientation:H},reactExports.createElement(ot,_extends$h({"data-baseweb":"tab-list",role:"tablist","aria-orientation":H},Zt,dt),reactExports.Children.map(d,function(Gt,ut){if(Gt)return reactExports.createElement(InternalTab,_extends$h({childKey:Gt.key,childIndex:ut,activeKey:e,orientation:H,activeTabRef:Wt,updateHighlight:Ut,parseKeyDown:bn,activateOnFocus:$,uid:Me,disabled:o,sharedStylingProps:Zt,onChange:E},Gt.props))}),reactExports.createElement(Be,_extends$h({"data-baseweb":"tab-highlight",$length:zt.length,$distance:zt.distance,$animate:cn>1,"aria-hidden":"true",role:"presentation"},Zt,qe))),H===ORIENTATION.horizontal&&Ne!==null&&Ne!==void 0&&reactExports.createElement(gt,_extends$h({},$t,{$orientation:H}),reactExports.createElement(RenderEnhancer,{Enhancer:Ne}))),reactExports.createElement(Ot,_extends$h({"data-baseweb":"tab-border","aria-hidden":"true",role:"presentation"},Zt,Ct)),reactExports.Children.map(d,function(Gt,ut){if(Gt)return reactExports.createElement(InternalTabPanel,_extends$h({childKey:Gt.key,childIndex:ut,activeKey:e,uid:Me,sharedStylingProps:Zt,renderAll:we},Gt.props))}))}function InternalTab(n){var i=n.childKey,e=n.childIndex,t=n.activeKey,o=n.orientation,d=n.activeTabRef,p=n.updateHighlight,h=n.parseKeyDown,y=n.activateOnFocus,$=n.uid,E=n.disabled,M=n.sharedStylingProps,H=n.onChange,Z=_objectWithoutProperties$g(n,_excluded$j),be=i||String(e),ye=be==t,we=Z.artwork,xe=Z.overrides,Ce=xe===void 0?{}:xe,Ne=Z.tabRef,Fe=Z.onClick,Me=Z.title,Le=_objectWithoutProperties$g(Z,_excluded2$4),ze=reactExports.useRef();reactExports.useImperativeHandle(Ne,function(){return ye?d.current:ze.current});var Ke=reactExports.useRef({length:0,distance:0});reactExports.useEffect(function(){Ke.current=getLayoutParams(ye?d.current:ze.current,o)}),reactExports.useEffect(function(){if(window.ResizeObserver){var tt=new window.ResizeObserver(function(wt){if(wt[0]&&wt[0].target){var gt=getLayoutParams(wt[0].target,o);(gt.length!==Ke.current.length||gt.distance!==Ke.current.distance)&&p()}});return tt.observe(ye?d.current:ze.current),function(){tt.disconnect()}}},[t,o]),reactExports.useEffect(p,[Me]);var Ve=Ce.Tab,je=Ce.ArtworkContainer,We=getOverrides(Ve,StyledTab),Xe=_slicedToArray$e(We,2),Qe=Xe[0],Ye=Xe[1],Ue=getOverrides(je,StyledArtworkContainer),ot=_slicedToArray$e(Ue,2),dt=ot[0],st=ot[1],pt=reactExports.useState(!1),Be=_slicedToArray$e(pt,2),qe=Be[0],rt=Be[1],He=reactExports.useCallback(function(tt){isFocusVisible(tt)&&rt(!0)},[]),Ot=reactExports.useCallback(function(tt){qe!==!1&&rt(!1)},[qe]),Ct=reactExports.useCallback(function(tt){var wt=_toConsumableArray$1(tt.target.parentNode.childNodes).filter(function(qt){return!qt.disabled&&qt.getAttribute("role")==="tab"});if(wt.length!==1){var gt=wt.indexOf(tt.target),$t=h(tt);if($t){var Mt;$t===KEYBOARD_ACTION.previous?wt[gt-1]?Mt=wt[gt-1]:Mt=wt[wt.length-1]:$t===KEYBOARD_ACTION.next&&(wt[gt+1]?Mt=wt[gt+1]:Mt=wt[0]),Mt&&(Mt.focus(),y&&Mt.click()),isVertical(o)&&tt.preventDefault()}}});return reactExports.createElement(Qe,_extends$h({"data-baseweb":"tab",key:be,id:getTabId($,be),role:"tab",onKeyDown:Ct,"aria-selected":ye,"aria-controls":getTabPanelId($,be),tabIndex:ye?"0":"-1",ref:ye?d:ze,disabled:!ye&&E,type:"button",$focusVisible:qe,$isActive:ye},M,Le,Ye,{onClick:function(wt){typeof H=="function"&&H({activeKey:be}),typeof Fe=="function"&&Fe(wt)},onFocus:forkFocus(_objectSpread$b(_objectSpread$b({},Le),Ye),He),onBlur:forkBlur(_objectSpread$b(_objectSpread$b({},Le),Ye),Ot)}),we?reactExports.createElement(dt,_extends$h({"data-baseweb":"artwork-container"},M,st),reactExports.createElement(we,{size:20,color:"contentPrimary"})):null,Me||be)}function InternalTabPanel(n){var i=n.childKey,e=n.childIndex,t=n.activeKey,o=n.uid,d=n.sharedStylingProps,p=n.renderAll,h=_objectWithoutProperties$g(n,_excluded3$1),y=i||Str
108ing(e),$=y==t,E=h.overrides,M=E===void 0?{}:E,H=h.children,Z=M.TabPanel,be=getOverrides(Z,StyledTabPanel),ye=_slicedToArray$e(be,2),we=ye[0],xe=ye[1];return reactExports.createElement(we,_extends$h({"data-baseweb":"tab-panel",key:y,role:"tabpanel",id:getTabPanelId(o,y),"aria-labelledby":getTabId(o,y),hidden:!$},d,xe),$||p?H:null)}function Tab(n){return null}function getClassnamePrefix(n){return n===Direction.HORIZONTAL?"stHorizontalBlock":"stVerticalBlock"}function shouldComponentBeEnabled(n,i){return n!=="empty"||i!==ScriptRunState.RUNNING}function isElementStale(n,i,e,t){return i===ScriptRunState.RERUN_REQUESTED?!0:i===ScriptRunState.RUNNING?t?.length?!!(n.fragmentId&&t.includes(n.fragmentId)&&n.scriptRunId!==e):n.scriptRunId!==e:!1}function isComponentStale(n,i,e,t,o){return!n||isElementStale(i,e,t,o)}function assignDividerColor(n,i){const e=getDividerColors(i),t=Object.keys(e),{blue:o,green:d,orange:p,red:h,violet:y,yellow:$}=e,E={blue:o,green:d,orange:p,red:h,violet:y,yellow:$},M=Object.keys(E);let H=0;for(const Z of ElementsSetVisitor.collectElements(n)){const be=Z.heading?.divider;if(Z.type==="heading"&&be)if(be==="auto"){const ye=M[H];Z.heading.divider=E[ye],H+=1,H===M.length&&(H=0)}else t.includes(be)&&(Z.heading.divider=e[be])}}function convertKeyToClassName(n){return n?"st-key-"+n.trim().replace(/[^a-zA-Z0-9_-]/g,"-"):""}function getKeyFromId(n){if(!n||!isValidElementId(n))return;const e=n.split("-").slice(2).join("-");return e==="None"?void 0:e}function backwardsCompatibleColumnGapSize(n){if(n.gapConfig?.gapSize)return n.gapConfig.gapSize;if(n.gap){if(n.gap==="small")return streamlit.GapSize.SMALL;if(n.gap==="medium")return streamlit.GapSize.MEDIUM;if(n.gap==="large")return streamlit.GapSize.LARGE}return streamlit.GapSize.SMALL}function checkFlexContainerBackwardsCompatibile(n){return!!(n.flexContainer||n.vertical||n.horizontal)}function getActivateScrollToBottomBackwardsCompatible(n){return!!((n.deltaBlock.heightConfig?.pixelHeight||n.deltaBlock.vertical?.height)&&n.children.some(e=>e instanceof BlockNode&&e.deltaBlock.type==="chatMessage"))}function getBorderBackwardsCompatible(n){return n.flexContainer?.border||n.vertical?.border||!1}const StyledTabContainer=styled("div",{target:"eh1nhsq0"})(({theme:n,isOverflowing:i,tabHeight:e,width:t,flex:o})=>({...i?{position:"relative","::after":{content:'" "',position:"absolute",zIndex:n.zIndices.priority,top:0,right:0,pointerEvents:"none",backgroundImage:`linear-gradient(to right, ${transparentize(n.colors.bgColor,1)}, ${n.colors.bgColor})`,width:n.spacing.lg,height:e}}:{},...t&&{width:t},...o&&{flex:o}}));function Tabs(n){const{widgetsDisabled:i,node:e,isStale:t,width:o,flex:d}=n,{scriptRunState:p,scriptRunId:h,fragmentIdsThisRun:y}=reactExports.useContext(ScriptRunContext),$=e.deltaBlock?.tabContainer?.defaultTabIndex??0;let E=[];const[M,H]=reactExports.useState($),[Z,be]=reactExports.useState(()=>e.children[$]?.deltaBlock?.tab?.label??"0"),ye=reactExports.useRef(null),we=useEmotionTheme(),[xe,Ce]=reactExports.useState(!1);reactExports.useEffect(()=>{E.indexOf(Z)===-1&&(H($),be(E[$]))},[E]),reactExports.useEffect(()=>{if(ye.current){const{scrollWidth:Le,clientWidth:ze}=ye.current;Ce(Le>ze)}const Me=E.indexOf(Z);Me!==-1?(H(Me),be(E[Me])):(H($),be(E[$]))},[e.children.length]);const Ne=we.sizes.tabHeight,Fe=we.spacing.threeXS;return jsx$1(StyledTabContainer,{className:"stTabs","data-testid":"stTabs",isOverflowing:xe,tabHeight:Ne,width:o,flex:d,children:jsx$1(Tabs$2,{activateOnFocus:!0,activeKey:M,onChange:({activeKey:Me})=>{H(Me),be(E[Me])},renderAll:!0,overrides:{TabHighlight:{style:()=>({backgroundColor:we.colors.primary,height:Fe})},TabBorder:{style:()=>({backgroundColor:we.colors.borderColorLight,height:Fe})},TabList:{props:{ref:ye},style:()=>({gap:we.spacing.lg,marginBottom:`-${Fe}`,paddingBottom:Fe,overflowY:"hidden",...t&&STALE_STYLES})},Root:{style:()=>({transform:"none"})}},children:e.children.map((Me,Le)=>{Le===0&&(E=[]);const ze=isElementStale(Me,p,h,y),Ke={...n,isStale:t||ze,widgetsDisabled:i,node:Me};let Ve=Le.toString();Ke.node.deltaBlock?.tab?.label&&(Ve=Ke.node.deltaBlock.tab.label),E[Le]=Ve;const je=M.toString()===Le.toString(),We=Le===e.children.length-1;return jsx$1(Tab,{"data-testid":"stTab",title:jsx$1(StreamlitMarkdown$1,{source:Ve,allowHTML:!1,isLabel:!0}),disabled:!t&&ze,overrides:{TabPanel:{style:()=>({paddingLeft:we.spacing.none,paddingRight:we.spacing.none,paddingBottom:we.spacing.none,paddingTop:we.spacing.lg})},Tab:{style:()=>({height:Ne,whiteSpace:"nowrap",paddingLeft:we.spacing.none,paddingRight:we.spacing.none,paddingTop:we.spacing.none,paddingBottom:we.spacing.none,fontSize:we.fontSizes.sm,background:"transparent",color:we.colors.bodyText,":focus":{outline:"none",color:we.colors.primary,background:"none"},":hover":{color:we.colors.primary,background:"none"},...je?{color:we.colors.primary}:{},...xe&&We?{paddingRight:`calc(${we.spacing.lg} * 0.6)`}:{},...!t&&ze&&STALE_STYLES})}},children:n.renderTabContent(Ke)},Le)})})})}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:e})=>({...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:e})),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:e}){const t=useEmotionTheme(),o={width:n?`calc(100% - (${t.iconSizes.lg} + ${t.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{kind:e,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:e,children:t,clearOnSubmit:o,enterToSubmit:d,border:p,overflow:h}=n,{formsData:y}=useRequiredContext(FormsContext),$=y.submitButtons.get(i),E=$!==void 0&&$.length>0,{scriptRunState:M}=reactExports.useContext(ScriptRunContext),H=M===ScriptRunState.NOT_RUNNING;reactExports.useEffect(()=>{e.setFormSubmitBehaviors(i,o,d)},[e,i,o,d]);const[Z,be]=reactExports.useState(!1);E&&Z?be(!1):!E&&!Z&&H&&be(!0);let ye;return Z&&(ye=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:[t,
114ye]})}const Form$1=reactExports.memo(Form);function squareStepper(n,i){const e=Math.sign(i-n),t=Math.sqrt(Math.abs(i-n)),o=n+t*e;return e>0?Math.min(i,o):Math.max(i,o)}function step(n,i,e,t){let o=n;for(let d=0;d<t;d++)o=e(o,i);return o}function useScrollAnimation(n,i,e,t){const o=reactExports.useRef(0),d=reactExports.useCallback((h,y,$=Date.now())=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{if(n){const E=n.scrollHeight-n.offsetHeight;let M=step(h,E,squareStepper,(Date.now()-$)/5);Math.abs(E-M)<1.5&&(M=E),n.scrollTop=M,E===M?i():d(h,y+1,$)}})},[o,i,n]),p=reactExports.useCallback(()=>{cancelAnimationFrame(o.current),i()},[i]);reactExports.useLayoutEffect(()=>{if(!(!n||!e||!t))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,e,t])}function debounce(n,i){let e=0,t=null;return(...o)=>{const d=Date.now();d-e>i?(n(...o),e=d):(t&&clearTimeout(t),t=setTimeout(()=>{n(...o),e=Date.now()},Math.max(0,i-d+e)))}}const DEFAULT_DEBOUNCE_MS=100;function useScrollSpy(n,i,e){const t=reactExports.useRef(i),o=reactExports.useMemo(()=>debounce(p=>{t.current(p)},DEFAULT_DEBOUNCE_MS),[t]),d=reactExports.useCallback(p=>{p.timeStampLow=Date.now(),o(p)},[o]);reactExports.useLayoutEffect(()=>!n||!e?()=>{}:(n.addEventListener("scroll",d,{passive:!0}),d({target:n}),()=>n.removeEventListener("scroll",d)),[d,n,e])}function useStateRef(n){const[i,e]=reactExports.useState(n),t=reactExports.useRef(n);return t.current=i,[i,e,t]}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:e}){return n-e-i<DEFAULT_BOTTOM_THRESHOLD}function useScrollToBottom(n){const i=reactExports.useRef(null),[e,t,o]=useStateRef(!1),[d,p,h]=useStateRef(!0);reactExports.useEffect(()=>{t(!0)},[t]);const y=reactExports.useRef(0),$=reactExports.useRef(0),E=reactExports.useRef(0),M=reactExports.useCallback(()=>{y.current=Date.now(),h.current||t(!1),p(!1)},[y,h,p,t]),H=reactExports.useCallback(({timeStampLow:Z})=>{const{current:be}=i,ye=h.current;if(Z<=y.current||!be)return;const we=isAtBottom(be),{offsetHeight:xe,scrollHeight:Ce}=be,{current:Ne}=$,{current:Fe}=E,Me=xe!==Ne,Le=Ce!==Fe;if(Me&&($.current=xe),Le&&(E.current=Ce),!Me&&!Le){const ze=ye||we;o.current!==ze&&t(ze)}else o.current&&(p(!0),t(!0))},[y,$,E,h,o,p,t]);return reactExports.useEffect(()=>{if(i.current&&n){let Z=0;const be=setImmediateInterval(()=>{const{current:ye}=i,we=h.current;o.current&&ye?isAtBottom(ye)?Z=0:Z?Date.now()-Z>SCROLL_DECISION_DURATION&&(we||(p(!0),t(!0)),Z=0):Z=Date.now():ye&&ye.scrollHeight<=ye.offsetHeight&&!o.current&&t(!0)},MIN_CHECK_INTERVAL);return()=>clearInterval(be)}},[i,e,d,h,o,t,p,n]),reactExports.useEffect(()=>{const Z=i.current;if(Z&&n){const be=()=>{E.current=Z.scrollHeight};return Z.addEventListener("focus",be,{capture:!0,passive:!0}),()=>{Z.removeEventListener("focus",be,{capture:!0})}}},[i,n]),useScrollSpy(i.current,H,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)),ViewStateContext=reactExports.createContext({isFullScreen:!1,setFullScreen:()=>{}});ViewStateContext.displayName="ViewStateContext";const 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 DocString({element:n}){const{name:i,type:e,value:t,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,e?jsx$1(StyledDocType,{"data-testid":"stHelpType",children:e}):null,t?jsx$1(StyledDocValue,{"data-testid":"stHelpValue",children:t}):null]})}),jsx$1(StyledDocString,{"data-testid":"stHelpDoc",children:o||"No docs available"}),d.length>0?jsx$1(StyledMembersTable,{"data-testid":"stHelpMembersTable",children:d.map(p=>jsx$1(Member,{member:p},p.name))}):null]})}function Member({member:n}){const{name:i,type:e,value:t,docString:o}=n;return jsxs(StyledMembersRow,{"data-testid":"stHelpMember",children:[jsxs(StyledMembersSummaryCell,{children:[i?jsx$1(StyledDocName,{"data-testid":"stHelpMemberDocName",children:i}):null,e?jsx$1(StyledDocType,{"data-testid":"stHelpMemberDocType",children:e}):null]}),jsx$1(StyledMembersDetailsCell,{children:t?jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocValue",children:t}):jsx$1(StyledDocValue,{"data-testid":"stHelpMemberDocString",children:o||"No docs available"})})]})}const DocString$1=reactExports.memo(DocString);function useTimeout(n,i){const e=reactExports.useRef(null),t=reactExports.useRef(n);reactExports.useEffect(()=>{t.current=n},[n]);const o=reactExports.useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null),i!==null&&(e.current=setTimeout(()=>{t.current()},i))},[i]);reactExports.useEffect(()=>(o(),()=>{e.current&&(clearTimeout(e.current),e.current=null)}),[o]);const d=reactExports.useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),p=reactExports.useCallback(()=>{o()},[o]);return{clear:d,restart:p}}
114const LOG$f=loglevelExports.getLogger("useCopyToClipboard"),useCopyToClipboard=({timeout:n=2e3}={})=>{const[i,e]=reactExports.useState(!1),{restart:t}=useTimeout(reactExports.useCallback(()=>{e(!1)},[]),i?n:null),o=reactExports.useCallback(p=>{(async()=>{try{await navigator.clipboard.writeText(p),e(!0),t()}catch(y){LOG$f.error("Failed to copy text to clipboard:",y),e(!1)}})()},[t]);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:e}){if(e){let t=i??"";return n.length!==0&&(t=`**${n}**: ${t}`),jsx$1(StreamlitMarkdown$1,{source:t,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,e)=>jsx$1(StyledStackTraceRow,{"data-testid":"stExceptionTraceRow",children:i},e))})})})]})}function ExceptionElement({element:n}){const i=`${n.type}: ${n.message}`,e=`${i} 115 116${n.stackTrace?.join(` 117`)}`,t=`https://www.google.com/search?q=${encodeURIComponent(i)}`,o=`https://chatgpt.com/?q=${encodeURIComponent(e)}`,{copyToClipboard:d}=useCopyToClipboard(),p=reactExports.useCallback(()=>{d(e)},[d,e]);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,isLocalhost()&&jsxs(StyledExceptionLinks,{children:[jsx$1(StyledExceptionCopyButton,{onClick:p,children:"Copy"}),jsx$1("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"Ask Google"}),jsx$1("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:"Ask ChatGPT"})]})]})})})}const ExceptionElement$1=reactExports.memo(ExceptionElement),SINGLE_BADGE_REGEX=/^:\w+-badge\[((?:\\.|[^\]\\])*)\]$/;function Markdown({element:n}){const{allowHtml:i,body:e,elementType:t,help:o,isCaption:d}=n,p=t===Markdown$3.Type.LATEX,h=t===Markdown$3.Type.NATIVE&&SINGLE_BADGE_REGEX.test(e.trim());let y;if(o&&h)y=jsx$1(BaseButtonTooltip,{help:o,containerWidth:!1,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:e,allowHTML:i})});else if(o&&p)y=jsxs(StyledLabelHelpWrapper,{isLatex:p,children:[jsx$1(StreamlitMarkdown$1,{isCaption:d,source:e,allowHTML:i}),jsx$1(InlineTooltipIcon,{content:o,isLatex:p})]});else{const $=o?`${e} :help[]`:e;y=jsx$1(StyledLabelHelpWrapper,{isLatex:p,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:$,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:e,anchor:t,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:t,help:d,hideAnchor:p,tag:e,children:jsx$1(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(e,$),overrideComponents:OVERRIDE_COMPONENTS})}),E.length>0&&jsx$1(RenderedMarkdown,{source:E.join(` 119`),allowHTML:!1})]}),h&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:h.includes("linear"),color:h})]})}const StyledCheckbox$1=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"}));
119function 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:e,height:t,elementType:o,overflow:d,flex:p,minWidth:h,textAlign:y})=>({width:e,height:t,textAlign:y,maxWidth:"100%",minWidth:e==="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}`,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:e,showBorder:t,verticalAlignment:o})=>{const{VerticalAlignment:d}=Block$1.Column,p=i*100,h=translateGapWidth(e,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$1}`]:{marginBottom:n.spacing.sm}},...o===d.TOP&&{[`& ${StyledElementContainer}:first-of-type > ${StyledCheckbox$1}`]:{marginTop:n.spacing.sm}},...o===d.CENTER&&{marginTop:"auto",marginBottom:"auto"},...t&&{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:e,flex:t,$wrap:o,height:d,border:p,align:h,justify:y,overflow:$})=>{let E;return e!==void 0&&(E=translateGapWidth(e,n)),{display:"flex",gap:E,width:"100%",maxWidth:"100%",height:d??"auto",minWidth:"1rem",flexDirection:i,flex:t,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:$}}),StyledLayoutWrapper=styled("div",{target:"e12zf7d54"})(({width:n,height:i,flex:e})=>({display:"flex",flexDirection:"column",width:n,maxWidth:"100%",minWidth:"1rem",he
119ight:i,flex:e})),LARGE_STRETCH_BEHAVIOR$1=["graphvizChart","arrowVegaLiteChart","deckGlJsonChart","plotlyChart","docString","arrowDataFrame","json","audioInput","fileUploader","cameraInput","audio","video","code","buttonGroup","iframe"],MEDIUM_STRETCH_BEHAVIOR$1=["dateInput","radio","slider","textArea","progress","multiselect","selectbox","timeInput","numberInput","textInput"],WIDTH_STRETCH_OVERRIDE=["componentInstance","skeleton"],VISIBLE_OVERFLOW_OVERRIDE=["iframe","arrowDataFrame","deckGlJsonChart","arrowVegaLiteChart","graphvizChart"],StyledElementContainerLayoutWrapper=({node:n,...i})=>{const{isInHorizontalLayout:e,isInRoot:t}=useRequiredContext(FlexContext);let o;LARGE_STRETCH_BEHAVIOR$1.includes(n.element.type??"")?o="14rem":MEDIUM_STRETCH_BEHAVIOR$1.includes(n.element.type??"")&&(o="8rem"),n.element.type==="buttonGroup"&&n.element.buttonGroup?.style===ButtonGroup$1.Style.BORDERLESS&&(o="fit-content");const d=reactExports.useMemo(()=>{const h={};if(WIDTH_STRETCH_OVERRIDE.includes(n.element.type??"")&&(h.width="100%"),VISIBLE_OVERFLOW_OVERRIDE.includes(n.element.type??"")&&(h.overflow="visible"),n.element.type==="textArea")return n.element.heightConfig?.useStretch?{height:"100%",flex:"1 1 8rem"}:e?{height:"auto"}:{height:"auto",flex:""};if(n.element.type==="arrowVegaLiteChart")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),e&&!n.element.widthConfig&&(h.flex="1 1 14rem"),h;if(n.element.type==="arrowDataFrame")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),h;if(n.element.type==="imgs"){const y=!n.element.widthConfig||n.element.widthConfig.useStretch;h.width=y?"100%":"auto"}return h},[n.element.type,n.element.heightConfig?.useStretch,e,t,n.element.widthConfig]);let p=useLayoutStyles({element:n.element,subElement:n.element?.type&&n.element[n.element.type]||void 0,styleOverrides:d,minStretchBehavior:o});return n.element.type==="space"&&(e?p={...p,height:"auto"}:p={...p,width:"auto"}),jsx$1(StyledElementContainer,{...i,...p})},ArrowTable=reactExports.lazy(()=>__vitePreload(()=>import("./index.CZzy-Gct.js"),__vite__mapDeps([7,8,9,10,11]),import.meta.url)),ArrowVegaLiteChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.By8GIgDH.js"),__vite__mapDeps([12,13,14,15,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url)),Audio=reactExports.lazy(()=>__vitePreload(()=>import("./index.C0F0G-wg.js"),[],import.meta.url)),Balloons=reactExports.lazy(()=>__vitePreload(()=>import("./index.gPUFpUqs.js"),__vite__mapDeps([34,35]),import.meta.url)),DeckGlJsonChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.DpU0Bc2F.js"),__vite__mapDeps([36,25,13,14,17,37,16,30,31,38]),import.meta.url)),GraphVizChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.DSaE74nc.js"),__vite__mapDeps([39,32,31,13,14]),import.meta.url)),Html=reactExports.lazy(()=>__vitePreload(()=>import("./index.dgs1TGpP.js"),[],import.meta.url)),IFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.95DldRtG.js"),__vite__mapDeps([40,41]),import.meta.url)),ImageList=reactExports.lazy(()=>__vitePreload(()=>import("./index.BDA5l7b9.js"),__vite__mapDeps([42,13,14]),import.meta.url)),Json=reactExports.lazy(()=>__vitePreload(()=>import("./index.DZGCJu4I.js"),__vite__mapDeps([43,17,18]),import.meta.url)),LinkButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.BNpEDrb2.js"),__vite__mapDeps([44,45]),import.meta.url)),Metric=reactExports.lazy(()=>__vitePreload(()=>import("./index.Tq2okoAU.js"),__vite__mapDeps([46,29,30,31,32,47,20,10,21]),import.meta.url)),PageLink=reactExports.lazy(()=>__vitePreload(()=>import("./index.BgCYNmov.js"),__vite__mapDeps([48,45]),import.meta.url)),PlotlyChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.Z0mB4zBp.js"),__vite__mapDeps([49,13,16]),import.meta.url)),Progress=reactExports.lazy(()=>__vitePreload(()=>import("./index.BXfSsjdq.js"),__vite__mapDeps([50,51]),import.meta.url)),Snow=reactExports.lazy(()=>__vitePreload(()=>import("./index.NtSfVVJe.js"),__vite__mapDeps([52,35]),import.meta.url)),Spinner=reactExports.lazy(()=>__vitePreload(()=>import("./index.Dk0CU4R6.js"),[],import.meta.url)),StreamlitSyntaxHighlighter=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.DUPp9dS3.js"),__vite__mapDeps([6,2]),import.meta.url)),Toast=reactExports.lazy(()=>__vitePreload(()=>import("./index.CkmNfvPD.js"),[],import.meta.url)),Video=reactExports.lazy(()=>__vitePreload(()=>import("./index.B2fTHpId.js"),[],import.meta.url)),AudioInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BMFt07G_.js"),__vite__mapDeps([53,54,14,16,24,55,26]),import.meta.url)),ArrowDataFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.BGgra9Bb.js").then(n=>n.c),__vite__mapDeps([15,13,14,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)),Button=reactExports.lazy(()=>__vitePreload(()=>import("./index.CWAvu1Qu.js"),__vite__mapDeps([56,45]),import.meta.url)),ButtonGroup=reactExports.lazy(()=>__vitePreload(()=>import("./index.iboGgrkh.js"),__vite__mapDeps([57,47,37,16]),import.meta.url)),ComponentInstance=reactExports.lazy(()=>__vitePreload(()=>import("./index.CeFdbzfR.js"),__vite__mapDeps([58,59,55,41]),import.meta.url).then(n=>({default:n.ComponentInstance}))),CameraInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BGzJYcHz.js"),__vite__mapDeps([60,61,16,51,55]),import.meta.url)),ChatInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.5CsPRetw.js"),__vite__mapDeps([62,63,61,54,64,65,66,67,33,68]),import.meta.url)),Checkbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.C8VoW8Ph.js"),__vite__mapDeps([69,47,37,16,23]),import.meta.url)),ColorPicker=reactExports.lazy(()=>__vitePreload(()=>import("./index.nEa8y_He.js"),__vite__mapDeps([70,37,16,19,47]),import.meta.url)),DateInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DgJeIFb5.js"),__vite__mapDeps([71,9,37,16,72,73,74,66,68]),import.meta.url)),DateTimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CTQ8QcOV.js"),__vite__mapDeps([75,9,72,73,74,66,37,16,76,68]),import.meta.url)),DownloadButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.C9QftD-S.js"),__vite__mapDeps([77,45,24]),import.meta.url)),FileUploader=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bk5wGJXh.js"),__vite__mapDeps([78,16,63,61,51]),import.meta.url)),FormSubmitContent=reactExports.lazy(()=>__vitePreload(()=>import("./index.CAMxgVFm.js"),__vite__mapDeps([79,45,16]),import.meta.url).then(n=>({default:n.FormSubmitContent}))),Multiselect=reactExports.lazy(()=>__vitePreload(()=>import("./index.D0tXFTaW.js"),__vite__mapDeps([80,37,16,27,11]),import.meta.url)),NumberInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.Cow0Hs9V.js"),__vite__mapDeps([81,64,37,16,21,82,74,66]),import.meta.url)),Radio=reactExports.lazy(()=>__vitePreload(()=>import("./index.CsmTnJl4.js"),__vite__mapDeps([83,47,37,16]),import.meta.url)),Selectbox$1=reactExports.lazy(()=>__vitePreload(()=>import("./index.DtZTtufl.js"),__vite__mapDeps([84,37,16]),import.meta.url)),Slider=reactExports.lazy(()=>__vitePreload(()=>import("./index.svncz-Ad.js"),__vite__mapDeps([85,9,59,37,16,22,20,10,21]),import.meta.url)),TextArea=reactExports.lazy(()=>__vitePreload(()=>import("./index.DysJZEAt.js"),__vite__mapDeps([86,64,37,16,87,67,65,66,82]),import.meta.url)),TextInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.7S_sCSRx.js"),__vite__mapDeps([88,64,37,16,87,67,82,74,66]),import.meta.url)),TimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BiVJWMS-.js"),__vite__mapDeps([89,37,16,76,73]),import.meta.url)),BidiComponent=reactExports.lazy(()=>__vitePreload(()=>
119import("./index.Bukztsaz.js"),[],import.meta.url));function hideIfStale(n,i){return n?jsx$1(Fragment,{}):i}const RawElementNodeRenderer=n=>{const{node:i}=n;if(!i)throw new Error("ElementNode not found.");const e={disableFullscreenMode:n.disableFullscreenMode,widthConfig:i.element.widthConfig,heightConfig:i.element.heightConfig},t={...e,widgetMgr:n.widgetMgr,disabled:n.widgetsDisabled,fragmentId:i.fragmentId,componentRegistry:n.componentRegistry};switch(i.element.type){case"alert":{const o=i.element.alert;return jsx$1(AlertElement$1,{icon:o.icon,body:o.body,kind:getAlertElementKind(o.format),...e})}case"arrowTable":{const o=i.element.arrowTable;return jsx$1(ArrowTable,{element:o,data:i.quiverElement,...e})}case"audio":return jsx$1(Audio,{element:i.element.audio,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"balloons":return hideIfStale(n.isStale,jsx$1(Balloons,{scriptRunId:i.scriptRunId}));case"code":{const o=i.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:o.language,showLineNumbers:o.showLineNumbers,wrapLines:o.wrapLines,children:o.codeText})}case"deckGlJsonChart":return jsx$1(DeckGlJsonChart,{element:i.element.deckGlJsonChart,...t});case"docString":return jsx$1(DocString$1,{element:i.element.docString,...e});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement$1,{element:i.element.exception,...e});case"graphvizChart":return jsx$1(GraphVizChart,{element:i.element.graphvizChart,...e});case"heading":return jsx$1(Heading,{element:i.element.heading,...e});case"iframe":return jsx$1(IFrame,{element:i.element.iframe,...e});case"imgs":return jsx$1(ImageList,{element:i.element.imgs,endpoints:n.endpoints,...e});case"json":return jsx$1(Json,{element:i.element.json,...e});case"markdown":return jsx$1(Markdown$1,{element:i.element.markdown,...e});case"metric":return jsx$1(Metric,{element:i.element.metric,...e});case"html":return jsx$1(Html,{element:i.element.html,...e});case"pageLink":{const o=i.element.pageLink,d=t.disabled||o.disabled;return jsx$1(PageLink,{element:o,disabled:d,...e})}case"progress":return jsx$1(Progress,{element:i.element.progress,...e});case"skeleton":return jsx$1(Skeleton,{element:i.element.skeleton});case"snow":return hideIfStale(n.isStale,jsx$1(Snow,{scriptRunId:i.scriptRunId}));case"space":return jsx$1(StyledSpace,{className:"stSpace","data-testid":"stSpace"});case"spinner":return jsx$1(Spinner,{element:i.element.spinner,...e});case"text":return jsx$1(TextElement$1,{element:i.element.text,...e});case"video":return jsx$1(Video,{element:i.element.video,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"toast":{const o=i.element.toast;return jsx$1(Toast,{element:o,...e},i.scriptRunId)}case"arrowDataFrame":{const o=i.element.arrowDataFrame;return t.disabled=t.disabled||o.disabled,jsx$1(ArrowDataFrame,{element:o,data:i.quiverElement,...t},o.id||void 0)}case"arrowVegaLiteChart":{const o=i.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:o,...t},o.id||void 0)}case"audioInput":{const o=i.element.audioInput;return t.disabled=t.disabled||o.disabled,jsx$1(AudioInput,{uploadClient:n.uploadClient,element:o,...t},o.id)}case"button":{const o=i.element.button;return t.disabled=t.disabled||o.disabled,o.isFormSubmitter?jsx$1(FormSubmitContent,{element:o,...t}):jsx$1(Button,{element:o,...t})}case"buttonGroup":{const o=i.element.buttonGroup;return t.disabled=t.disabled||o.disabled,jsx$1(ButtonGroup,{element:o,...t},o.id)}case"downloadButton":{const o=i.element.downloadButton;return t.disabled=t.disabled||o.disabled,jsx$1(DownloadButton,{endpoints:n.endpoints,element:o,...t},o.id)}case"cameraInput":{const o=i.element.cameraInput;return t.disabled=t.disabled||o.disabled,jsx$1(CameraInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"chatInput":{const o=i.element.chatInput;return t.disabled=t.disabled||o.disabled,jsx$1(ChatInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"checkbox":{const o=i.element.checkbox;return t.disabled=t.disabled||o.disabled,jsx$1(Checkbox,{element:o,...t},o.id)}case"colorPicker":{const o=i.element.colorPicker;return t.disabled=t.disabled||o.disabled,jsx$1(ColorPicker,{element:o,...t},o.id)}case"componentInstance":return jsx$1(ComponentInstance,{element:i.element.componentInstance,...t});case"dateInput":{const o=i.element.dateInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateInput,{element:o,...t},o.id)}case"fileUploader":{const o=i.element.fileUploader;return t.disabled=t.disabled||o.disabled,jsx$1(FileUploader,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"linkButton":{const o=i.element.linkButton;return jsx$1(LinkButton,{element:o,...e})}case"multiselect":{const o=i.element.multiselect;return t.disabled=t.disabled||o.disabled,jsx$1(Multiselect,{element:o,...t},o.id)}case"numberInput":{const o=i.element.numberInput;return t.disabled=t.disabled||o.disabled,jsx$1(NumberInput,{element:o,...t},o.id)}case"plotlyChart":{const o=i.element.plotlyChart;return jsx$1(PlotlyChart,{element:o,...t},o.id)}case"radio":{const o=i.element.radio;return t.disabled=t.disabled||o.disabled,jsx$1(Radio,{element:o,...t},o.id)}case"selectbox":{const o=i.element.selectbox;return t.disabled=t.disabled||o.disabled,jsx$1(Selectbox$1,{element:o,...t},o.id)}case"slider":{const o=i.element.slider;return t.disabled=t.disabled||o.disabled,jsx$1(Slider,{element:o,...t},o.id)}case"textArea":{const o=i.element.textArea;return t.disabled=t.disabled||o.disabled,jsx$1(TextArea,{element:o,outerElement:i.element,...t},o.id)}case"textInput":{const o=i.element.textInput;return t.disabled=t.disabled||o.disabled,jsx$1(TextInput,{element:o,...t},o.id)}
119case"dateTimeInput":{const o=i.element.dateTimeInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateTimeInput,{element:o,...t},o.id)}case"timeInput":{const o=i.element.timeInput;return t.disabled=t.disabled||o.disabled,jsx$1(TimeInput,{element:o,...t},o.id)}case"bidiComponent":{const o=i.element.bidiComponent;return jsx$1(BidiComponent,{element:o,...t},o.id)}default:throw new Error(`Unrecognized Element type ${i.element.type}`)}},ElementNodeRenderer=n=>{const{isFullScreen:i}=reactExports.useContext(ViewStateContext),{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext),{node:d}=n,p=d.element.type||"",h=shouldComponentBeEnabled(p,e),y=isComponentStale(h,d,e,t,o),$=getElementId(d.element),E=getKeyFromId($);return jsx$1(Maybe,{enable:h,children:jsx$1(StyledElementContainerLayoutWrapper,{className:classNames("stElementContainer","element-container",convertKeyToClassName(E)),"data-testid":"stElementContainer","data-stale":y,isStale:y&&!i,elementType:p,node:d,children:jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...n,isStale:y})})})})})};class RenderNodeVisitor{constructor(i,e){this.props=i,this.elementKeyOverride=e,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 e={...this.props,node:i},t=this.getCurrentKey();this.index+=1;const o=jsx$1(BlockNodeRenderer,{...e},t);return this.reactElements.push(o),o}visitTransientNode(i){const e=[];i.transientNodes.forEach(o=>{const d=this.getCurrentKey(`transient-${this.transientElementCount}`);this.transientElementCount+=1;const p=o.accept(new RenderNodeVisitor(this.props,d));e.push(...this.conformToArray(p))}),this.reactElements.push(...e);const t=i.anchor?.accept(this);return e.push(...this.conformToArray(t)),e}visitElementNode(i){const e={...this.props,node:i},t=this.getCurrentKey(getElementId(i.element));if(this.index+=1,this.elementKeySet.has(t))return null;this.elementKeySet.add(t);const o=jsx$1(ElementNodeRenderer,{...e},t);return this.reactElements.push(o),o}static collectReactElements(i){if(!i.node.children)return[];const e=new RenderNodeVisitor(i);return i.node.children.forEach(t=>t.accept(e)),e.reactElements}}const ChildRenderer=n=>(assignDividerColor(n.node,useEmotionTheme()),jsx$1(Fragment,{children:RenderNodeVisitor.collectReactElements(n)})),getLayoutSubElement=n=>{const i=n.type,e=i?n[i]:void 0;if(!e||typeof e!="object")return;const t=e,o={useContainerWidth:t.useContainerWidth,height:t.height,width:t.width,widthConfig:t.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),e={direction:Direction.VERTICAL,flex:1,gap:streamlit.GapSize.SMALL,height:n.height,border:!1},t=getKeyFromId(n.node.deltaBlock.id);return jsx$1(FlexContextProvider,{direction:Direction.VERTICAL,isRoot:n.isRoot,parentContext:i,children:jsx$1(StyledFlexContainerBlock,{...e,className:classNames(getClassnamePrefix(Direction.VERTICAL),convertKeyToClassName(t)),"data-testid":getClassnamePrefix(Direction.VERTICAL),children:jsx$1(ChildRenderer,{...n})})})},FlexBoxContainer=n=>{const i=getDirectionOfBlock(n.node.deltaBlock),e=reactExports.useContext(FlexContext),t=getActivateScrollToBottomBackwardsCompatible(n.node),o=useScrollToBottom(t),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,$=n.node.deltaBlock.widthConfig?.useContent??!1,E=(n.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(n.node.deltaBlock.widthConfig?.remWidth??0)>0;return jsx$1(FlexContextProvider,{direction:i,parentWidth:y,hasContentWidth:$,hasFixedWidth:E,parentContext:e,children:jsx$1(StyledFlexContainerBlock,{...p,className:classNames(getClassnamePrefix(i),convertKeyToClassName(h)),"data-testid":getClassnamePrefix(i),ref:o,"data-test-scroll-behavior":t?"scroll-to-bottom":"normal",children:jsx$1(ChildRenderer,{...n})})})},LARGE_STRETCH_BEHAVIOR=["tabContainer"],MEDIUM_STRETCH_BEHAVIOR=["chatInput"],BlockNodeRenderer=n=>{const{node:i}=n,{scriptRunState:e,scriptRunId:t,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("",e),y=isComponentStale(h,i,e,t,o),$={...n,node:i},E=n.disableFullscreenMode||notNullOrUndefined(i.deltaBlock.dialog)||notNullOrUndefined(i.deltaBlock.popover);let M;const H=jsx$1(ContainerContentsWrapper,{...$,disableFullscreenMode:E,height:"100%"});if(checkFlexContainerBackwardsCompatibile(i.deltaBlock)&&(M=jsx$1(FlexBoxContainer,{...$})),i.deltaBlock.dialog)return jsx$1(Dialog$1,{element:i.deltaBlock.dialog,deltaMsgReceivedAt:i.deltaMsgReceivedAt,widgetMgr:n.widgetMgr,fragmentId:i.fragmentId,children:H});if(i.deltaBlock.expandable&&(M=jsx$1(Expander$1,{isStale:y,element:i.deltaBlock.expandable,children:H})),i.deltaBlock.popover&&(M=jsx$1(Popover$1,{empty:i.isEmpty,element:i.deltaBlock.popover,stretchWidth:shouldWidthStretch(i.deltaBlock.widthConfig),children:H})),i.deltaBlock.type==="form"){const{formId:Z,clearOnSubmit:be,enterToSubmit:ye,border:we}=i.deltaBlock.form;M=jsx$1(Form$1,{formId:Z,clearOnSubmit:be,enterToSubmit:ye,widgetMgr:n.widgetMgr,border:we,overflow:p.overflow,children:H})}if(i.deltaBlock.chatMessage&&(M=jsx$1(ChatMessage$1,{element:i.deltaBlock.chatMessage,endpoints:n.endpoints,children:H})),i.deltaBlock.column)return jsx$1(StyledColumn,{weight:i.deltaBlock.column.weight??0,gap:backwardsCompatibleColumnGapSize(i.deltaBlock.column),verticalAlignment:i.deltaBlock.column.verticalAlignment??void 0,showBorder:i.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stC
119olumn",children:H});if(i.deltaBlock.tabContainer){const be={...$,isStale:y,renderTabContent:ye=>jsx$1(ContainerContentsWrapper,{...ye,height:"auto"}),width:p.width,flex:p.flex};return jsx$1(Tabs$1,{...be})}return M?jsx$1(StyledLayoutWrapper,{"data-testid":"stLayoutWrapper",...p,children:M}):H},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),e=reactExports.useCallback(()=>i.current,[]);return jsxs(PortalContext.Provider,{value:e,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:e}){return jsx$1(ThemeProvider$1,{theme:i||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:n,children:e})})}const CopyButton=({text:n})=>{const i=useEmotionTheme(),e=reactExports.useRef(null),{isCopied:t,copyToClipboard:o,label:d}=useCopyToClipboard(),p=reactExports.useCallback(()=>{o(n)},[o,n]);return jsx$1(StyledCopyButton,{"data-testid":"stCodeCopyButton",title:d,"aria-label":d,type:"button",ref:e,onClick:p,children:t?jsx$1(Check,{size:convertRemToPx(i.iconSizes.base)}):jsx$1(Copy,{size:convertRemToPx(i.iconSizes.base)})})},CopyButton$1=reactExports.memo(CopyButton);function StreamlitErrorCodeBlock({children:n}){const i=typeof n=="string"&&n.trim().length>0;return jsxs(StyledCodeBlock,{className:"stErrorCodeBlock","data-testid":"stErrorCodeBlock",children:[jsx$1(StyledPre,{wrapLines:!1,children:jsx$1(StyledCode,{wrapLines:!1,children:n})}),i&&jsx$1(StyledCopyButtonContainer,{children:jsx$1(CopyButton$1,{text:n})})]})}const StreamlitErrorCodeBlock$1=reactExports.memo(StreamlitErrorCodeBlock);function iconToUrl(n){const i=/^:(.+)\/(.+):$/,e=n.match(i);return e===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${e[2]}/default/24px.svg`}function handleFavicon(n,i,e){const t=p=>{overwriteFavicon(p),i({type:"SET_PAGE_FAVICON",favicon:p})};if(n.startsWith(":material")){t(iconToUrl(n));return}const o="emoji:";if(n.startsWith(o)){const p=n.substring(o.length),h=createEmojiDataUrl(p);t(h);return}/^:[a-zA-Z0-9_+-]+:$/.test(n)?convertShortcodeToEmoji(n).then(p=>{t(p?createEmojiDataUrl(p):e.buildMediaURL(n))}).catch(()=>{t(e.buildMediaURL(n))}):t(e.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.FfR9SXQv.js"),[],import.meta.url),e=n.replace(/-/g,"_"),t=i.get(e);return t&&t!==e&&i.has(t)?t:""}const StyledWidgetLabel=styled("label",{target:"e1kt9bl70"})(({disabled:n,labelVisibility:i,theme:e})=>({fontSize:e.fontSizes.sm,color:n?e.colors.fadedText40:e.colors.bodyText,display:i===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:i===LabelVisibilityOptions.Hidden?"hidden":"visible",marginBottom:e.spacing.twoXS,height:"auto",minHeight:e.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),StyledWidgetLabelHelp=styled("div",{target:"e1kt9bl71"})({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}),StyledWidgetInstructions=styled("div",{target:"e1kt9bl72"})(({theme:n})=>
119({fontSize:n.fontSizes.twoSm,color:n.colors.fadedText60,margin:n.spacing.none,textAlign:"right",position:"absolute",bottom:n.spacing.threeXS,right:`calc(${n.fontSizes.mdLg} * 0.5)`})),StyledWidgetLabelHelpInline=styled("span",{target:"e1kt9bl73"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function WidgetLabel({label:n,children:i,disabled:e,labelVisibility:t,htmlFor:o}){return isNullOrUndefined(n)?jsx$1(Fragment,{}):jsxs(StyledWidgetLabel,{"data-testid":"stWidgetLabel",disabled:e,labelVisibility:t,htmlFor:o,children:[jsx$1("span",{"aria-hidden":"true",children:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0})}),i]})}function WidgetLabelHelpIcon({content:n,label:i,ariaLabel:e,placement:t=Placement.TOP_RIGHT,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h}){return jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:n,placement:t,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h,ariaLabel:e??getHelpTooltipAriaLabel(i)})})}const arrayComparator=(n,i)=>n.length!==i.length?!1:n.every((e,t)=>Object.is(e,i[t])),useExecuteWhenChanged=(n,i,e=arrayComparator)=>{const[t,o]=reactExports.useState(i);e(t,i)||(o(i),n())};var _excluded$i=["title","size","color","overrides"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$g.apply(this,arguments)}function _objectWithoutProperties$f(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$e(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$e(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$d(n,i){return _arrayWithHoles$d(n)||_iterableToArrayLimit$d(n,i)||_unsupportedIterableToArray$d(n,i)||_nonIterableRest$d()}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$d(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$d(n,i)}}function _arrayLikeToArray$d(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$d(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$d(n){if(Array.isArray(n))return n}function ChevronDown(n,i){var e=useStyletron(),t=_slicedToArray$d(e,2),o=t[1],d=n.title,p=d===void 0?"Down":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$f(n,_excluded$i),H=mergeOverride({component:o.icons&&o.icons.ChevronDown?o.icons.ChevronDown:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$g({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{transform:"rotate(270, 12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const ChevronDown$1=reactExports.forwardRef(ChevronDown);var _excluded$h=["title","size","color","overrides"];function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$f.apply(this,arguments)}function _objectWithoutProperties$e(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$d(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}
120function _objectWithoutPropertiesLoose$d(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$c(n,i){return _arrayWithHoles$c(n)||_iterableToArrayLimit$c(n,i)||_unsupportedIterableToArray$c(n,i)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 121In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$c(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$c(n,i)}}function _arrayLikeToArray$c(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$c(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$c(n){if(Array.isArray(n))return n}function DeleteAlt(n,i){var e=useStyletron(),t=_slicedToArray$c(e,2),o=t[1],d=n.title,p=d===void 0?"Delete Alt":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$e(n,_excluded$h),H=mergeOverride({component:o.icons&&o.icons.DeleteAlt?o.icons.DeleteAlt:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$f({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}const DeleteAlt$1=reactExports.forwardRef(DeleteAlt);var _excluded$g=["title","size","color","overrides"];function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$e.apply(this,arguments)}function _objectWithoutProperties$d(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$c(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$c(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$b(n,i){return _arrayWithHoles$b(n)||_iterableToArrayLimit$b(n,i)||_unsupportedIterableToArray$b(n,i)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 122In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$b(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$b(n,i)}}function _arrayLikeToArray$b(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$b(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$b(n){if(Array.isArray(n))return n}function Search(n,i){var e=useStyletron(),t=_slicedToArray$b(e,2),o=t[1],d=n.title,p=d===void 0?"Search":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$d(n,_excluded$g),H=mergeOverride({component:o.icons&&o.icons.Search?o.icons.Search:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$e({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6C8.79086 6 7 7.79086 7 10C7 12.2091 8.79086 14 11 14C13.2091 14 15 12.2091 15 10C15 7.79086 13.2091 6 11 6ZM5 10C5 6.68629 7.68629 4 11 4C14.3137 4 17 6.68629 17 10C17 11.2958 16.5892 12.4957 15.8907 13.4765L19.7071 17.2929C20.0976 17.6834 20.0976 18.3166 19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L14.4765 14.8907C13.4957 15.5892 12.2958 16 11 16C7.68629 16 5 13.3137 5 10Z"}))}const SearchIconComponent=reactExports.forwardRef(Search);var _excluded$f=["title","size","color","overrides"];function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$d.apply(this,arguments)}
122function _objectWithoutProperties$c(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$b(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$b(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$a(n,i){return _arrayWithHoles$a(n)||_iterableToArrayLimit$a(n,i)||_unsupportedIterableToArray$a(n,i)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 123In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$a(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$a(n,i)}}function _arrayLikeToArray$a(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$a(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$a(n){if(Array.isArray(n))return n}function TriangleDown(n,i){var e=useStyletron(),t=_slicedToArray$a(e,2),o=t[1],d=n.title,p=d===void 0?"Triangle Down":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$c(n,_excluded$f),H=mergeOverride({component:o.icons&&o.icons.TriangleDown?o.icons.TriangleDown:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$d({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{d:"M12.7071 15.2929L17.1464 10.8536C17.4614 10.5386 17.2383 10 16.7929 10L7.20711 10C6.76165 10 6.53857 10.5386 6.85355 10.8536L11.2929 15.2929C11.6834 15.6834 12.3166 15.6834 12.7071 15.2929Z"}))}const TriangleDownIcon=reactExports.forwardRef(TriangleDown);var CUSTOM_INPUT_TYPE={textarea:"textarea"},ADJOINED={none:"none",left:"left",right:"right",both:"both"},SIZE$1={mini:"mini",default:"default",compact:"compact",large:"large"},ENHANCER_POSITION={start:"start",end:"end"},TYPE={select:"select",search:"search"},STATE_CHANGE_TYPE=Object.freeze({select:"select",remove:"remove",clear:"clear"}),STATE_CHANGE_TYPES={click:"click",moveUp:"moveUp",moveDown:"moveDown",mouseEnter:"mouseEnter",focus:"focus",reset:"reset",character:"character",enter:"enter"},KEY_STRINGS={ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Enter:"Enter",Home:"Home",End:"End"},OPTION_LIST_SIZE={default:"default",compact:"compact"},_excluded$e=["item"];function _objectWithoutProperties$b(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$a(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$a(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function ownKeys$b(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$a(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$b(Object(e),!0).forEach(function(t){_defineProperty$b(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$b(Object(e)).forEac
123h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$b(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var StyledList=styled$1("ul",function(n){var i=n.$theme,e=n.$isFocusVisible;return{backgroundColor:i.colors.menuFill,position:"relative",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,paddingTop:i.sizing.scale300,paddingBottom:i.sizing.scale300,paddingLeft:0,paddingRight:0,borderTopLeftRadius:i.borders.popoverBorderRadius,borderTopRightRadius:i.borders.popoverBorderRadius,borderBottomRightRadius:i.borders.popoverBorderRadius,borderBottomLeftRadius:i.borders.popoverBorderRadius,boxShadow:i.lighting.shadow600,overflow:"auto",":focus":{outline:e?"3px solid ".concat(i.colors.accent):"none"}}});StyledList.displayName="StyledList";StyledList.displayName="StyledList";function getFontColor(n){return n.$disabled?n.$theme.colors.menuFontDisabled:n.$isHighlighted&&n.$isFocused?n.$theme.colors.menuFontHighlighted:n.$isHighlighted&&!n.$isFocused?n.$theme.colors.menuFontSelected:n.$theme.colors.menuFontDefault}function getBackgroundColor(n){return n.$disabled?"transparent":n.$isHighlighted?n.$theme.colors.menuFillHover:"transparent"}var StyledEmptyState=styled$1("li",function(n){var i=n.$theme,e=n.$size;return _objectSpread$a(_objectSpread$a({},e===OPTION_LIST_SIZE.compact?i.typography.font100:i.typography.font200),{},{position:"relative",display:"block",color:i.colors.menuFontDisabled,textAlign:"center",cursor:"not-allowed",backgroundColor:"transparent",marginBottom:0,paddingTop:i.sizing.scale800,paddingBottom:i.sizing.scale800,paddingRight:i.sizing.scale800,paddingLeft:i.sizing.scale800})});StyledEmptyState.displayName="StyledEmptyState";StyledEmptyState.displayName="StyledEmptyState";var StyledOptgroupHeader=styled$1("li",function(n){var i=n.$theme.sizing.scale300,e=n.$theme.sizing.scale200;return _objectSpread$a(_objectSpread$a({},n.$theme.typography.font250),{},{color:n.$theme.colors.contentPrimary,paddingTop:e,paddingBottom:e,paddingRight:i,paddingLeft:i})});StyledOptgroupHeader.displayName="StyledOptgroupHeader";StyledOptgroupHeader.displayName="StyledOptgroupHeader";var StyledListItemAnchor=styled$1("a",function(n){return{display:"block",color:getFontColor(n)}});StyledListItemAnchor.displayName="StyledListItemAnchor";StyledListItemAnchor.displayName="StyledListItemAnchor";var StyledListItemElement=styled$1("li",function(n){var i=n.$disabled,e=n.$theme,t=n.$size;return _objectSpread$a(_objectSpread$a({},t===OPTION_LIST_SIZE.compact?e.typography.font100:e.typography.font200),{},{boxSizing:"border-box",position:"relative",display:"block",color:getFontColor(n),cursor:i?"not-allowed":"pointer",backgroundColor:getBackgroundColor(n),transitionProperty:"color, background-color",transitionDuration:e.animation.timing200,transitionTimingFunction:e.animation.easeOutCurve,marginBottom:0,paddingTop:t===OPTION_LIST_SIZE.compact?e.sizing.scale100:e.sizing.scale300,paddingBottom:t===OPTION_LIST_SIZE.compact?e.sizing.scale100:e.sizing.scale300,paddingRight:t===OPTION_LIST_SIZE.compact?e.sizing.scale900:e.sizing.scale600,paddingLeft:t===OPTION_LIST_SIZE.compact?e.sizing.scale900:e.sizing.scale600,":focus":{outline:"none"}})});StyledListItemElement.displayName="StyledListItemElement";StyledListItemElement.displayName="StyledListItemElement";var StyledListItem=withWrapper(StyledListItemElement,function(n){return(function(e){e.item;var t=_objectWithoutProperties$b(e,_excluded$e);return reactExports.createElement(n,t)})}),StyledListItemProfile=styled$1("li",function(n){var i=n.$theme;return{position:"relative",display:"flex",alignItems:"center",cursor:"pointer",paddingTop:i.sizing.scale300,paddingBottom:i.sizing.scale300,paddingRight:i.sizing.scale800,paddingLeft:i.sizing.scale800,transitionProperty:"color, background-color",transitionDuration:i.animation.timing200,transitionTimingFunction:i.animation.easeOutCurve,":hover":{backgroundColor:i.colors.menuFillHover}}});StyledListItemProfile.displayName="StyledListItemProfile";StyledListItemProfile.displayName="StyledListItemProfile";var StyledProfileImgContainer=styled$1("div",{width:"60px",height:"60px",display:"flex",justifyContent:"center",alignItems:"center"});
123StyledProfileImgContainer.displayName="StyledProfileImgContainer";StyledProfileImgContainer.displayName="StyledProfileImgContainer";var StyledProfileImg=styled$1("img",{width:"100%",height:"100%",borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%"});StyledProfileImg.displayName="StyledProfileImg";StyledProfileImg.displayName="StyledProfileImg";var StyledProfileLabelsContainer=styled$1("div",function(n){var i=n.$theme,e=i.direction,t=i.sizing;return _objectSpread$a({alignSelf:e==="rtl"?"flex-end":"flex-start",display:"flex",flexDirection:"column"},e==="rtl"?{marginRight:t.scale600}:{marginLeft:t.scale600})});StyledProfileLabelsContainer.displayName="StyledProfileLabelsContainer";StyledProfileLabelsContainer.displayName="StyledProfileLabelsContainer";var StyledProfileTitle=styled$1("h6",function(n){var i=n.$theme;return _objectSpread$a(_objectSpread$a({},i.typography.font350),{},{color:i.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileTitle.displayName="StyledProfileTitle";StyledProfileTitle.displayName="StyledProfileTitle";var StyledProfileSubtitle=styled$1("p",function(n){var i=n.$theme;return _objectSpread$a(_objectSpread$a({},i.typography.font200),{},{color:i.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileSubtitle.displayName="StyledProfileSubtitle";StyledProfileSubtitle.displayName="StyledProfileSubtitle";var StyledProfileBody=styled$1("p",function(n){var i=n.$theme;return _objectSpread$a(_objectSpread$a({},i.typography.font100),{},{color:i.colors.contentPrimary,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0})});StyledProfileBody.displayName="StyledProfileBody";StyledProfileBody.displayName="StyledProfileBody";var StyledMenuDivider$1=styled$1("li",function(n){var i=n.$theme;return{color:i.colors.contentPrimary,borderBottomWidth:i.borders.border300.borderWidth,borderBottomStyle:i.borders.border300.borderStyle,borderBottomColor:i.borders.border300.borderColor,marginTop:i.sizing.scale100,marginBottom:i.sizing.scale100,marginLeft:i.sizing.scale500,marginRight:i.sizing.scale500,listStyle:"none",height:0}});StyledMenuDivider$1.displayName="StyledMenuDivider";StyledProfileBody.displayName="StyledMenuDivider";var NestedMenuContext=reactExports.createContext({addMenuToNesting:function n(){},removeMenuFromNesting:function n(){},getParentMenu:function n(){},getChildMenu:function n(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function n(){return!1},mountRef:{current:null}});function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$c.apply(this,arguments)}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 destructure non-iterable instance. 124In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$9(n,i)}}function _arrayLikeToArray$9(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$9(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$9(n){if(Array.isArray(n))return n}var MaybeChildMenu=function n(i){if(!i.getChildMenu)return i.children;var e=i.getChildMenu(i.item);if(!e)return i.children;var t=i.overrides,o=t===void 0?{}:t,d=getOverrides(o.ChildMenuPopover,Popover$2),p=_slicedToArray$9(d,2),h=p[0],y=p[1];return reactExports.createElement(NestedMenuContext.Consumer,null,function($){return reactExports.createElement(h,_extends$c({focusLock:!1,autoFocus:!1,isOpen:i.isOpen,renderAll:i.renderAll,content:e,ignoreBoundary:!0,mountNode:$.mountRef.current?$.mountRef.current:void 0,onClick:i.onClick,onMouseEnterDelay:30,onMouseLeaveDelay:30,onEsc:i.resetParentMenu,placement:"rightTop"},y,{overrides:mergeOverrides({Body:{props:{onKeyDown:function(M){M.keyCode===9&&M.preventDefault()}}}},y.overrides)}),i.children)})},_excluded$d=["getChildMenu","getItemLabel","item","onClick","onMouseEnter","overrides","renderHrefAsAnchor","resetMenu","size","$isHighlighted","renderAll"];function ownKeys$a(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$9(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};
124i%2?ownKeys$a(Object(e),!0).forEach(function(t){_defineProperty$a(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$a(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$a(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$b.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 destructure non-iterable instance. 125In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$8(n,i)}}function _arrayLikeToArray$8(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$8(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$8(n){if(Array.isArray(n))return n}function _objectWithoutProperties$a(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$9(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$9(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function OptionList(n,i){var e=n.getChildMenu,t=n.getItemLabel,o=t===void 0?function(Ye){return Ye?Ye.label:""}:t,d=n.item,p=n.onClick,h=p===void 0?function(){}:p,y=n.onMouseEnter,$=y===void 0?function(){}:y,E=n.overrides,M=E===void 0?{}:E,H=n.renderHrefAsAnchor,Z=H===void 0?!0:H,be=n.resetMenu,ye=be===void 0?function(){}:be,we=n.size,xe=we===void 0?OPTION_LIST_SIZE.default:we,Ce=n.$isHighlighted,Ne=n.renderAll,Fe=_objectWithoutProperties$a(n,_excluded$d),Me=getOverrides(M.ListItem,StyledListItem),Le=_slicedToArray$8(Me,2),ze=Le[0],Ke=Le[1],Ve=getOverrides(M.ListItemAnchor,StyledListItemAnchor),je=_slicedToArray$8(Ve,2),We=je[0],Xe=je[1],Qe=function(Ue){return Ue.href&&Z?reactExports.createElement(We,_extends$b({$item:Ue,href:Ue.href},Xe),o(Ue)):reactExports.createElement(reactExports.Fragment,null,o(Ue))};return reactExports.createElement(LocaleContext.Consumer,null,function(Ye){return reactExports.createElement(MaybeChildMenu,{getChildMenu:e,isOpen:!!Ce,item:d,resetParentMenu:ye,renderAll:Ne,onClick:h,overrides:M},reactExports.createElement(ze,_extends$b({ref:i,"aria-label":e&&e(d)?Ye.menu.parentMenuItemAriaLabel:null,item:d,onClick:h,onMouseEnter:$,$size:xe,$isHighlighted:Ce},Fe,Ke),Qe(_objectSpread$9({isHighlighted:Ce},d))))})}function areEqualShallow(n,i){if(!n||!i)return!1;for(var e in n)if(n[e]!==i[e])return!1;return!0}function compare(n,i){return n.$isHighlighted===i.$isHighlighted&&n.$isFocused===i.$isFocused&&areEqualShallow(n.item,i.item)&&areEqualShallow(n.overrides,i.overrides)&&n.size===i.size&&n.getItemLabel===i.getItemLabel&&n.getChildMenu===i.getChildMenu&&n.resetMenu===i.resetMenu}var forwarded=reactExports.forwardRef(OptionList);forwarded.displayName="OptionList";const OptionList$1=reactExports.memo(forwarded,compare);var _excluded$c=["disabled","isFocused","isHighlighted","resetMenu"];function _objectWithoutProperties$9(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$8(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$8(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$a.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 de
125structure non-iterable instance. 126In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$7(n,i)}}function _arrayLikeToArray$7(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$7(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$7(n){if(Array.isArray(n))return n}function Menu(n){var i=n.overrides,e=i===void 0?{}:i,t=n["aria-label"],o=t===void 0?"Menu":t,d=n.rootRef,p=d===void 0?reactExports.createRef():d,h=n.focusMenu,y=h===void 0?function(){}:h,$=n.unfocusMenu,E=$===void 0?function(){}:$,M=n.handleMouseLeave,H=M===void 0?function(){}:M,Z=n.handleKeyDown,be=Z===void 0?function(en){}:Z,ye=n.renderAll,we=ye===void 0?!1:ye,xe=reactExports.useState(!1),Ce=_slicedToArray$7(xe,2),Ne=Ce[0],Fe=Ce[1],Me=function(Wt){isFocusVisible(Wt)&&Fe(!0)},Le=function(Wt){Ne!==!1&&Fe(!1)},ze=getOverrides(e.List,StyledList),Ke=_slicedToArray$7(ze,2),Ve=Ke[0],je=Ke[1],We=getOverrides(e.Option,OptionList$1),Xe=_slicedToArray$7(We,2),Qe=Xe[0],Ye=Xe[1],Ue=getOverrides(e.EmptyState,StyledEmptyState),ot=_slicedToArray$7(Ue,2),dt=ot[0],st=ot[1],pt=getOverrides(e.OptgroupHeader,StyledOptgroupHeader),Be=_slicedToArray$7(pt,2),qe=Be[0],rt=Be[1],He=getOverrides(e.MenuDivider,StyledMenuDivider$1),Ot=_slicedToArray$7(He,2),Ct=Ot[0],tt=Ot[1],wt=Array.isArray(n.items)?{__ungrouped:n.items}:n.items,gt=Object.keys(wt),$t=gt.reduce(function(en,Wt){var dn=_slicedToArray$7(en,2),Yt=dn[0],zt=dn[1];Wt!=="__ungrouped"&&Yt.push(reactExports.createElement(qe,_extends$a({key:Wt},rt),Wt));var nn=wt[Wt].map(function(Ut,Zt){zt=zt+1;var fn=n.getRequiredItemProps,On=fn===void 0?function(Nt,xt){return{}}:fn;if(Ut.divider===!0)return reactExports.createElement(Ct,tt);var tn=On(Ut,zt),bn=tn.disabled,Gt=tn.isFocused,ut=tn.isHighlighted,bt=tn.resetMenu,kt=bt===void 0?function(){}:bt,Lt=_objectWithoutProperties$9(tn,_excluded$c);return reactExports.createElement(Qe,_extends$a({renderAll:we,key:zt,item:Ut,overrides:n.overrides,resetMenu:kt,role:"option",$disabled:bn,$isFocused:Gt,$isHighlighted:ut,"aria-disabled":bn,"aria-selected":ut&&Gt},Lt,Ye))});return[Yt.concat(nn),zt]},[[],-1]),Mt=_slicedToArray$7($t,1),qt=Mt[0],cn=gt.every(function(en){return!wt[en].length});return reactExports.createElement(LocaleContext.Consumer,null,function(en){return reactExports.createElement(Ve,_extends$a({"aria-activedescendant":n.activedescendantId||null,role:"listbox","aria-label":o,ref:p,onMouseEnter:y,onMouseLeave:H,onMouseOver:y,onFocus:forkFocus({onFocus:y},Me),onBlur:forkBlur({onBlur:E},Le),onKeyDown:function(dn){n.isFocused&&be(dn)},tabIndex:0,"data-baseweb":"menu",$isFocusVisible:Ne},je),cn?reactExports.createElement(dt,_extends$a({"aria-live":"polite","aria-atomic":!0},st),n.noResultsMsg||en.menu.noResultsMsg):qt)})}function scrollItemIntoView(n,i,e,t){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"auto";if(n){var d=n.getBoundingClientRect(),p=i.getBoundingClientRect();if(d.bottom>p.bottom)if(t)i.scrollTop=i.scrollHeight-p.height;else{var h=n.offsetTop+d.height;i.scrollTop=h-(o==="center"?Math.round((p.height+d.height)/2):p.height)}
126else d.top<p.top&&(e?i.scrollTop=0:i.scrollTop=n.offsetTop-(o==="center"?Math.round((p.height-d.height)/2):0))}}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)}var _excluded$b=["disabled"],_excluded2$3=["initialState","stateReducer","children","onItemSelect","addMenuToNesting","removeMenuFromNesting","getParentMenu","getChildMenu","forceHighlight"];function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$9.apply(this,arguments)}function _objectWithoutProperties$8(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$7(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$7(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function ownKeys$9(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$8(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$9(Object(e),!0).forEach(function(t){_defineProperty$9(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$9(Object(e)).forEac
126h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$5(n,i,e){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(t,o){return t.__proto__=o,t},_setPrototypeOf$4(n,i)}function _createSuper$5(n){var i=_isNativeReflectConstruct$5();return function(){var t=_getPrototypeOf$5(n),o;if(i){var d=_getPrototypeOf$5(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$5(this,o)}}function _possibleConstructorReturn$5(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$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}}function _getPrototypeOf$5(n){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$5(n)}function _defineProperty$9(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var DEFAULT_PROPS={initialState:{highlightedIndex:-1,isFocused:!1},typeAhead:!0,keyboardControlNode:{current:null},stateReducer:function(n,i){return i},onItemSelect:function n(){},getRequiredItemProps:function n(){return{}},children:function n(){return null},addMenuToNesting:function n(){},removeMenuFromNesting:function n(){},getParentMenu:function n(){},getChildMenu:function n(){},nestedMenuHoverIndex:-1,isNestedMenuVisible:function n(){return!1},forceHighlight:!1},MenuStatefulContainerInner=(function(n){_inherits$5(e,n);var i=_createSuper$5(e);function e(){var t;_classCallCheck$5(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$9(_assertThisInitialized$5(t),"state",_objectSpread$8(_objectSpread$8({},t.constructor.defaultProps.initialState),t.props.initialState)),_defineProperty$9(_assertThisInitialized$5(t),"rootRef",reactExports.createRef()),_defineProperty$9(_assertThisInitialized$5(t),"keyboardControlNode",t.props.keyboardControlNode.current),_defineProperty$9(_assertThisInitialized$5(t),"refList",[]),_defineProperty$9(_assertThisInitialized$5(t),"optionIds",[]),_defineProperty$9(_assertThisInitialized$5(t),"typeAheadChars",""),_defineProperty$9(_assertThisInitialized$5(t),"typeAheadTimeOut",null),_defineProperty$9(_assertThisInitialized$5(t),"onKeyDown",function(h){switch(h.key){case KEY_STRINGS.ArrowUp:case KEY_STRINGS.ArrowDown:case KEY_STRINGS.ArrowLeft:case KEY_STRINGS.ArrowRight:case KEY_STRINGS.Home:case KEY_STRINGS.End:t.handleArrowKey(h);break;case KEY_STRINGS.Enter:if(h.keyCode===229)break;t.handleEnterKey(h);break;default:t.props.typeAhead&&(clearTimeout(t.typeAheadTimeOut),t.handleAlphaDown(h));break}}),_defineProperty$9(_assertThisInitialized$5(t),"handleAlphaDown",function(h){var y=t.props.rootRef?t.props.rootRef:t.rootRef,$=t.state.highlightedIndex;t.typeAheadChars+=h.key,t.typeAheadTimeOut=setTimeout(function(){t.typeAheadChars=""},500);var E=$,M=t.getItems();if(!(M.length===0||!("label"in M[0]))){for(var H=!0,Z=0;Z<M.length;Z++){var be=M[Z].label;if(be&&be.toUpperCase&&be.toUpperCase().indexOf(t.typeAheadChars.toUpperCase())===0){E=Z,H=!1;break}}if(H)for(var ye=0;ye<M.length;ye++){var we=M[ye].label;if(we&&we.toUpperCase&&we.toUpperCase().indexOf(t.typeAheadChars.toUpperCase())>0){E=ye;break}}t.internalSetState(STATE_CHANGE_TYPES.character,{highlightedIndex:E}),t.refList[E]&&scrollItemIntoView(t.refList[E].current,y.current,E===0,E===M.length-1)}}),_defineProperty$9(_assertThisInitialized$5(t),"handleArrowKey",function(h){var y=t.props.rootRef?t.props.rootRef:t.rootRef,$=t.state.highlightedIndex,E=$;if(h.key===KEY_STRINGS.ArrowUp)h.preventDefault(),E=Math.max(0,$-1),t.internalSetState(STATE_CHANGE_TYPES.moveUp,{highlightedIndex:E});else if(h.key===KEY_STRINGS.ArrowDown)h.preventDefault(),E=Math.min($+1,t.getItems().length-1),t.internalSetState(STATE_CHANGE_TYPES.moveDown,{highlightedIndex:E});else if(h.key===KEY_STRINGS.Home)h.preventDefault(),E=0,t.internalSetState(STATE_CHANGE_TYPES.moveUp,{highlightedIndex:E});else if(h.key===KEY_STRINGS.End)h.preventDefault(),E=t.getItems().length-1,t.internalSetState(STATE_CHANGE_TYPES.moveDown,{highlightedIndex:E});else if(h.key===KEY_STRINGS.ArrowLeft){if(t.props.getParentMenu){var M=t.props.getParentMenu(y);M&&M.current&&M.current.focus()}}else if(h.key===KEY_STRINGS.ArrowRight&&t.props.getChildMenu){var H=t.props.getChildMenu(y);H&&H.current&&H.current.focus()}t.refList[E]&&scrollItemIntoView(t.refList[E].current,y.current,E===0,E===t.getItems().length-1)}),_defineProperty$9(_assertThisInitialized$5(t),"handleEnterKey",function(h){var y=t.props.onItemSelect,$=t.state.highlightedIndex,E=t.getItems();E[$]&&y&&!E[$].disabled&&(h.preventDefault(),y({item:E[$],event:h}))}
126),_defineProperty$9(_assertThisInitialized$5(t),"handleItemClick",function(h,y,$){t.props.onItemSelect&&!y.disabled&&(t.props.onItemSelect({item:y,event:$}),t.internalSetState(STATE_CHANGE_TYPES.click,{highlightedIndex:h,activedescendantId:t.optionIds[h]}))}),_defineProperty$9(_assertThisInitialized$5(t),"handleMouseEnter",function(h){t.internalSetState(STATE_CHANGE_TYPES.mouseEnter,{highlightedIndex:h,activedescendantId:t.optionIds[h]})}),_defineProperty$9(_assertThisInitialized$5(t),"handleMouseLeave",function(h){}),_defineProperty$9(_assertThisInitialized$5(t),"getRequiredItemProps",function(h,y){var $=t.refList[y];$||($=reactExports.createRef(),t.refList[y]=$,t.optionIds[y]=t.props.uidSeed(y));var E=t.props.getRequiredItemProps(h,y),M=E.disabled,H=_objectWithoutProperties$8(E,_excluded$b),Z=typeof M=="boolean"?M:!!h.disabled;return _objectSpread$8(_objectSpread$8({id:H.id||t.optionIds[y],disabled:Z,ref:$,isFocused:t.state.isFocused,isHighlighted:t.state.highlightedIndex===y,resetMenu:t.resetMenu},Z?{}:{onClick:t.handleItemClick.bind(_assertThisInitialized$5(t),y,h),onMouseEnter:t.handleMouseEnter.bind(_assertThisInitialized$5(t),y)}),H)}),_defineProperty$9(_assertThisInitialized$5(t),"focusMenu",function(h){var y=t.props.rootRef?t.props.rootRef:t.rootRef;!t.state.isFocused&&y.current&&y.current.contains(h.target)&&(t.state.highlightedIndex<0?t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!0,highlightedIndex:0}):t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!0}),y.current.focus())}),_defineProperty$9(_assertThisInitialized$5(t),"unfocusMenu",function(){t.internalSetState(STATE_CHANGE_TYPES.focus,{isFocused:!1})}),_defineProperty$9(_assertThisInitialized$5(t),"resetMenu",function(){t.internalSetState(STATE_CHANGE_TYPES.reset,{isFocused:!1,highlightedIndex:-1,activedescendantId:null})}),t}return _createClass$5(e,[{key:"getItems",value:function(){var o=this;if(Array.isArray(this.props.items))return this.props.items;var d=Object.keys(this.props.items);return d.reduce(function(p,h){return p.concat(o.props.items[h])},[])}},{key:"componentDidMount",value:function(){var o=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&(o.current&&this.state.highlightedIndex>-1&&this.refList[this.state.highlightedIndex]&&scrollItemIntoView(this.refList[this.state.highlightedIndex].current,o.current,this.state.highlightedIndex===0,this.state.highlightedIndex===this.getItems().length-1,"center"),this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown)),this.props.addMenuToNesting&&this.props.addMenuToNesting(o)}},{key:"componentWillUnmount",value:function(){var o=this.props.rootRef?this.props.rootRef:this.rootRef;typeof document<"u"&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown),this.props.removeMenuFromNesting&&this.props.removeMenuFromNesting(o)}},{key:"componentDidUpdate",value:function(o,d){typeof document<"u"&&(!d.isFocused&&this.state.isFocused?this.keyboardControlNode&&this.keyboardControlNode.addEventListener("keydown",this.onKeyDown):d.isFocused&&!this.state.isFocused&&this.keyboardControlNode&&this.keyboardControlNode.removeEventListener("keydown",this.onKeyDown));var p=this.getItems().length;this.props.forceHighlight&&this.state.highlightedIndex===-1&&p>0&&this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:0}),p===0&&this.state.highlightedIndex!==-1?this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:-1}):this.state.highlightedIndex>=p&&this.internalSetState(STATE_CHANGE_TYPES.enter,{highlightedIndex:0}),this.props.isNestedMenuVisible&&this.props.nestedMenuHoverIndex!==o.nestedMenuHoverIndex&&!this.props.isNestedMenuVisible(this.rootRef)&&!this.props.forceHighlight&&this.setState({highlightedIndex:-1})}},{key:"internalSetState",value:function(o,d){var p=this.props.stateReducer;this.props.onActiveDescendantChange&&typeof d.highlightedIndex=="number"&&this.state.highlightedIndex!==d.highlightedIndex&&this.props.onActiveDescendantChange(this.optionIds[d.highlightedIndex]),this.setState(p(o,d,this.state))}},{key:"render",value:function(){var o=this,d=this.props;d.initialState,d.stateReducer,d.children,d.onItemSelect,d.addMenuToNesting,d.removeMenuFromNesting,d.getParentMenu,d.getChildMenu,d.forceHighlight;var p=_objectWithoutProperties$8(d,_excluded2$3);return this.props.children(_objectSpread$8(_objectSpread$8({},p),{},{rootRef:this.props.rootRef?this.props.rootRef:this.rootRef,activedescendantId:this.optionIds[this.state.highlightedIndex],getRequiredItemProps:function(y,$){return o.getRequiredItemProps(y,$)},handleMouseLeave:this.handleMouseLeave,highlightedIndex:this.state.highlightedIndex,isFocused:this.state.isFocused,handleKeyDown:this.props.keyboardControlNode.current?function(h){}:this.onKeyDown,focusMenu:this.focusMenu,unfocusMenu:this.unfocusMenu}))}}]),e})(reactExports.Component);_defineProperty$9(MenuStatefulContainerInner,"defaultProps",DEFAULT_PROPS);var MenuStatefulContainer=function n(i){return reactExports.createElement(MenuStatefulContainerInner,_extends$9({uidSeed:useUIDSeed()},i))};MenuStatefulContainer.defaultProps=DEFAULT_PROPS;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)}var _excluded$a=["overrides"];function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$8.apply(this,arguments)}
vendor: 3,536 bytes, line 126
126function _objectWithoutProperties$7(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$6(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$6(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$4(n,i,e){return i&&_defineProperties$4(n.prototype,i),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(t,o){return t.__proto__=o,t},_setPrototypeOf$3(n,i)}function _createSuper$4(n){var i=_isNativeReflectConstruct$4();return function(){var t=_getPrototypeOf$4(n),o;if(i){var d=_getPrototypeOf$4(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$4(this,o)}}function _possibleConstructorReturn$4(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$4(n)}var StatefulMenu=(function(n){_inherits$4(e,n);var i=_createSuper$4(e);function e(){return _classCallCheck$4(this,e),i.apply(this,arguments)}return _createClass$4(e,[{key:"render",value:function(){var o=this.props,d=o.overrides,p=_objectWithoutProperties$7(o,_excluded$a);return reactExports.createElement(NestedMenuContext.Consumer,null,function(h){return reactExports.createElement(MenuStatefulContainer,_extends$8({},h,p),function(y){return reactExports.createElement(Menu,_extends$8({},y,{overrides:d}))})})}}]),e})(reactExports.PureComponent);function ownKeys$8(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$7(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$8(Object(e),!0).forEach(function(t){_defineProperty$8(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$8(Object(e)).forEac
126h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$8(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function getFont(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SIZE$1.default,e=arguments.length>1?arguments[1]:void 0;return(n={},_defineProperty$8(n,SIZE$1.mini,e.font100),_defineProperty$8(n,SIZE$1.compact,e.font200),_defineProperty$8(n,SIZE$1.default,e.font300),_defineProperty$8(n,SIZE$1.large,e.font400),n)[i]}function getBorderRadius(n,i){var e=i.inputBorderRadius;return n===SIZE$1.mini&&(e=i.inputBorderRadiusMini),{borderTopLeftRadius:e,borderBottomLeftRadius:e,borderTopRightRadius:e,borderBottomRightRadius:e}}function getControlPadding(n){var i,e,t,o,d,p=n.$theme,h=n.$theme.sizing,y=n.$size,$=y===void 0?SIZE$1.default:y,E=n.$type,M=n.$multi,H=n.$isEmpty,Z=E===TYPE.search,be=Z?"calc(".concat(h.scale1000," - ").concat(h.scale0,")"):h.scale400,ye=p.direction==="rtl"?"paddingRight":"paddingLeft",we=p.direction==="rtl"?"paddingLeft":"paddingRight";return(d={},_defineProperty$8(d,SIZE$1.mini,(i={paddingTop:M&&!H?0:h.scale100,paddingBottom:M&&!H?0:h.scale100},_defineProperty$8(i,ye,M&&!H?"calc(".concat(be," - ").concat(h.scale0,")"):be),_defineProperty$8(i,we,"0"),i)),_defineProperty$8(d,SIZE$1.compact,(e={paddingTop:M&&!H?"calc(".concat(h.scale100," - ").concat(h.scale0,")"):h.scale200,paddingBottom:M&&!H?"calc(".concat(h.scale100," - ").concat(h.scale0,")"):h.scale200},_defineProperty$8(e,ye,M&&!H?"calc(".concat(be," - ").concat(h.scale0,")"):be),_defineProperty$8(e,we,"0"),e)),_defineProperty$8(d,SIZE$1.default,(t={paddingTop:M&&!H?"calc(".concat(h.scale400," - ").concat(h.scale0,")"):h.scale400,paddingBottom:M&&!H?"calc(".concat(h.scale400," - ").concat(h.scale0,")"):h.scale400},_defineProperty$8(t,ye,M&&!H?"calc(".concat(be," + ").concat(h.scale0,")"):be),_defineProperty$8(t,we,0),t)),_defineProperty$8(d,SIZE$1.large,(o={paddingTop:M&&!H?"calc(".concat(h.scale600," - ").concat(h.scale0,")"):h.scale550,paddingBottom:M&&!H?"calc(".concat(h.scale600," - ").concat(h.scale0,")"):h.scale550},_defineProperty$8(o,ye,M&&!H?"calc(".concat(be," - ").concat(h.scale0,")"):be),_defineProperty$8(o,we,0),o)),d)[$]}var StyledDropdownContainer=styled$1("div",function(n){return{width:"".concat(String(n.$width),"px")}});StyledDropdownContainer.displayName="StyledDropdownContainer";StyledDropdownContainer.displayName="StyledDropdownContainer";var StyledDropdown=StyledList,StyledDropdownListItem=StyledListItem,StyledOptionContent=styled$1("div",function(n){var i=n.$isHighlighted,e=n.$selected,t=n.$disabled,o=n.$theme;return{cursor:t?"not-allowed":"pointer",color:e&&!i?o.colors.menuFontSelected:null,fontWeight:e?"bold":"normal"}});StyledOptionContent.displayName="StyledOptionContent";StyledOptionContent.displayName="StyledOptionContent";var StyledRoot=styled$1("div",function(n){var i=n.$theme.typography,e=n.$size;return _objectSpread$7(_objectSpread$7({},getFont(e,i)),{},{boxSizing:"border-box",position:"relative",width:"100%"})});StyledRoot.displayName="StyledRoot";StyledRoot.displayName="StyledRoot";function getControlContainerColors(n,i,e,t,o,d){return n?{color:d.inputTextDisabled,borderLeftColor:d.inputFillDisabled,borderRightColor:d.inputFillDisabled,borderTopColor:d.inputFillDisabled,borderBottomColor:d.inputFillDisabled,backgroundColor:d.inputFillDisabled}:i||e?{color:d.contentPrimary,borderLeftColor:d.borderSelected,borderRightColor:d.borderSelected,borderTopColor:d.borderSelected,borderBottomColor:d.borderSelected,backgroundColor:d.inputFillActive}:o?{color:d.contentPrimary,borderLeftColor:d.inputBorderError,borderRightColor:d.inputBorderError,borderTopColor:d.inputBorderError,borderBottomColor:d.inputBorderError,backgroundColor:d.inputFillError}:t?{color:d.contentPrimary,borderLeftColor:d.inputBorderPositive,borderRightColor:d.inputBorderPositive,borderTopColor:d.inputBorderPositive,borderBottomColor:d.inputBorderPositive,backgroundColor:d.inputFillPositive}:{color:d.contentPrimary,borderLeftColor:d.inputBorder,borderRightColor:d.inputBorder,borderTopColor:d.inputBorder,borderBottomColor:d.inputBorder,backgroundColor:d.inputFill}}var StyledControlContainer=styled$1("div",function(n){var i=n.$disabled,e=n.$error,t=n.$positive,o=n.$isFocused,d=n.$isPseudoFocused,p=n.$type,h=n.$searchable,y=n.$size,$=n.$theme,E=$.borders,M=$.colors,H=$.animation;return _objectSpread$7(_objectSpread$7({},getBorderRadius(y,E)),{}
126,{boxSizing:"border-box",overflow:"hidden",width:"100%",display:"flex",justifyContent:"space-between",cursor:i?"not-allowed":h||p===TYPE.search?"text":"pointer",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border, box-shadow, background-color",transitionDuration:H.timing200,transitionTimingFunction:H.easeOutCurve},getControlContainerColors(i,o,d,t,e,M))});StyledControlContainer.displayName="StyledControlContainer";StyledControlContainer.displayName="StyledControlContainer";var StyledValueContainer=styled$1("div",function(n){var i=getControlPadding(n);return _objectSpread$7({boxSizing:"border-box",position:"relative",flexGrow:1,flexShrink:1,flexBasis:"0%",display:"flex",alignItems:"center",flexWrap:n.$multi?"wrap":"nowrap",overflow:"hidden"},i)});StyledValueContainer.displayName="StyledValueContainer";StyledValueContainer.displayName="StyledValueContainer";var StyledPlaceholder=styled$1("div",function(n){var i=n.$disabled,e=n.$theme.colors;return{color:i?e.inputPlaceholderDisabled:e.inputPlaceholder,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});StyledPlaceholder.displayName="StyledPlaceholder";StyledPlaceholder.displayName="StyledPlaceholder";var StyledSingleValue=styled$1("div",function(n){var i,e=n.$searchable,t=n.$size,o=n.$theme,d=n.$theme.typography,p=getFont(t,d),h=o.direction==="rtl"?"marginRight":"marginLeft";return _objectSpread$7((i={lineHeight:e?"inherit":p.lineHeight,boxSizing:"border-box"},_defineProperty$8(i,h,o.sizing.scale0),_defineProperty$8(i,"height","100%"),_defineProperty$8(i,"maxWidth","100%"),i),ellipsisText)});StyledSingleValue.displayName="StyledSingleValue";StyledSingleValue.displayName="StyledSingleValue";var StyledInputContainer=styled$1("div",function(n){var i=n.$size,e=n.$searchable,t=n.$theme,o=t.typography,d=t.sizing,p=n.$isEmpty,h=getFont(i,o);return{position:"relative",display:"inline-block",maxWidth:"100%",backgroundColor:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",boxSizing:"border-box",outline:"none",marginTop:0,marginBottom:0,marginLeft:p?0:d.scale0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,height:String(e?"auto":h.lineHeight),maxHeight:String(h.lineHeight)}});StyledInputContainer.displayName="StyledInputContainer";StyledInputContainer.displayName="StyledInputContainer";var StyledInput=styled$1("input",function(n){var i=n.$theme,e=i.colors,t=i.typography,o=n.$size,d=n.$searchable,p=n.$width;return _objectSpread$7(_objectSpread$7({},getFont(o,t)),{},{color:e.contentPrimary,boxSizing:"content-box",width:d?p||"100%":"1px",maxWidth:"100%",background:"transparent",borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",boxShadow:"none",display:"inline-block",outline:"none",marginTop:"0",marginBottom:"0",marginLeft:"0",marginRight:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"})});StyledInput.displayName="StyledInput";StyledInput.displayName="StyledInput";var StyledInputSizer=styled$1("div",function(n){var i,e=n.$size,t=n.$theme,o=n.$theme.typography,d=t.direction==="rtl"?"right":"left";return _objectSpread$7(_objectSpread$7({},getFont(e,o)),{},(i={position:"absolute",top:0},_defineProperty$8(i,d,0),_defineProperty$8(i,"visibility","hidden"),_defineProperty$8(i,"height",0),_defineProperty$8(i,"overflow","scroll"),_defineProperty$8(i,"whiteSpace","pre"),i))});StyledInputSizer.displayName="StyledInputSizer";StyledInputSizer.displayName="StyledInputSizer";var StyledIconsContainer=styled$1("div",function(n){var i=n.$theme,e=n.$theme.sizing,t=i.direction==="rtl"?"paddingLeft":"paddingRight";return _defineProperty$8({boxSizing:"border-box",position:"relative",display:"flex",flexShrink:0,alignItems:"center",alignSelf:"stretch"},t,e.scale500)});StyledIconsContainer.displayName="StyledIconsContainer";StyledIconsContainer.displayName="StyledIconsContainer";function getSvgStyles(n){var i=n.$theme;return{display:"inline-block",fill:"currentColor",color:"currentColor",height:i.sizing.scale600,width:i.sizing.scale600}}var StyledSelectArrow=styled$1("svg",function(n){var i,e=n.$theme,t=n.$disabled,o=n.$size,d=e.colors,p=(i={},_defineProperty$8(i,SIZE$1.mini,16),_defineProperty$8(i,SIZE$1.compact,16),_defineProperty$8(i,SIZE$1.default,20),_defineProperty$8(i,SIZE$1.large,24),i),h=p[SIZE$1.default];return o&&(h=p[o]),_objectSpread$7(_objectSpread$7({}
126,getSvgStyles({$theme:e})),{},{color:t?d.inputTextDisabled:d.contentPrimary,cursor:t?"not-allowed":"pointer",height:"".concat(h,"px"),width:"".concat(h,"px")})});StyledSelectArrow.displayName="StyledSelectArrow";StyledSelectArrow.displayName="StyledSelectArrow";var StyledClearIcon=styled$1("svg",function(n){var i,e=n.$theme,t=n.$size,o=e.colors,d=(i={},_defineProperty$8(i,SIZE$1.mini,15),_defineProperty$8(i,SIZE$1.compact,15),_defineProperty$8(i,SIZE$1.default,18),_defineProperty$8(i,SIZE$1.large,22),i),p=d[SIZE$1.default];return t&&(p=d[t]),_objectSpread$7(_objectSpread$7({},getSvgStyles({$theme:e})),{},{color:o.contentPrimary,cursor:"pointer",height:"".concat(p,"px"),width:"".concat(p,"px")})});StyledClearIcon.displayName="StyledClearIcon";StyledClearIcon.displayName="StyledClearIcon";var StyledLoadingIndicator=withStyle(StyledSpinner,function(n){var i=n.$theme;return{borderTopWidth:"2px",borderRightWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"2px",borderRightColor:i.colors.borderOpaque,borderBottomColor:i.colors.borderOpaque,borderLeftColor:i.colors.borderOpaque,width:"16px",height:"16px"}});StyledLoadingIndicator.displayName="StyledLoadingIndicator";StyledLoadingIndicator.displayName="StyledLoadingIndicator";var StyledSearchIconContainer=styled$1("div",function(n){var i,e=n.$disabled,t=n.$theme,o=t.colors,d=t.sizing,p=t.direction==="rtl"?"right":"left";return _objectSpread$7(_objectSpread$7({},getSvgStyles(n)),{},(i={color:e?o.inputTextDisabled:o.contentPrimary,cursor:e?"not-allowed":"pointer",position:"absolute",top:0},_defineProperty$8(i,p,d.scale500),_defineProperty$8(i,"display","flex"),_defineProperty$8(i,"alignItems","center"),_defineProperty$8(i,"height","100%"),i))});StyledSearchIconContainer.displayName="StyledSearchIconContainer";StyledSearchIconContainer.displayName="StyledSearchIconContainer";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)}var _excluded$9=["overrides","inputRef"];function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$7.apply(this,arguments)}function ownKeys$7(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$6(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$7(Object(e),!0).forEach(function(t){_defineProperty$7(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$7(Object(e)).forEac
vendor: 4,303 bytes, lines 126-127
126h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return 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. 127In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$6(n,i)}}function _arrayLikeToArray$6(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$6(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$6(n){if(Array.isArray(n))return n}function _objectWithoutProperties$6(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$5(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$5(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$3(n,i,e){return i&&_defineProperties$3(n.prototype,i),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(t,o){return t.__proto__=o,t},_setPrototypeOf$2(n,i)}function _createSuper$3(n){var i=_isNativeReflectConstruct$3();return function(){var t=_getPrototypeOf$3(n),o;if(i){var d=_getPrototypeOf$3(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$3(this,o)}}function _possibleConstructorReturn$3(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$3(n)}function _defineProperty$7(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var AutosizeInput=(function(n){_inherits$3(e,n);var i=_createSuper$3(e);function e(){var t;_classCallCheck$3(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$7(_assertThisInitialized$3(t),"mounted",void 0),_defineProperty$7(_assertThisInitialized$3(t),"sizer",void 0),_defineProperty$7(_assertThisInitialized$3(t),"state",{inputWi
127dth:5}),_defineProperty$7(_assertThisInitialized$3(t),"sizerRef",function(h){t.sizer=h}),t}return _createClass$3(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.updateInputWidth()}},{key:"componentDidUpdate",value:function(o,d){this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||typeof this.sizer.scrollWidth>"u")){var o=this.sizer.scrollWidth+2;o!==this.state.inputWidth&&this.sizer.scrollWidth!==this.state.inputWidth&&this.setState({inputWidth:o})}}},{key:"render",value:function(){var o=this.props,d=o.overrides,p=d===void 0?{}:d,h=o.inputRef,y=_objectWithoutProperties$6(o,_excluded$9),$=getOverrides(p.Input,StyledInput),E=_slicedToArray$6($,2),M=E[0],H=E[1],Z=[this.props.defaultValue,this.props.value,""].reduce(function(ye,we){return ye??we}),be=_objectSpread$6(_objectSpread$6({},y),{},{$width:"".concat(this.state.inputWidth,"px")});return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(M,_extends$7({},be,{ref:h},H)),reactExports.createElement(StyledInputSizer,{$size:this.props.$size,ref:this.sizerRef,$style:H.$style?H.$style:null},Z))}}]),e})(reactExports.Component);_defineProperty$7(AutosizeInput,"defaultProps",{inputRef:reactExports.createRef(),value:"",overrides:{}});function ownKeys$6(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$5(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$6(Object(e),!0).forEach(function(t){_defineProperty$6(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$6(Object(e)).forEac
127h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$6(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var escapeRegExp=function n(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},isValid=function n(i){return typeof i<"u"&&i!==null&&i!==""},defaultProps$1={filterOption:null,ignoreCase:!0,labelKey:"label",matchPos:"any",matchProp:"any",trimFilter:!0,valueKey:"value"},filterOptions=function n(i,e,t,o){var d=_objectSpread$5(_objectSpread$5({},defaultProps$1),o);d.ignoreCase&&(e=e.toLowerCase()),d.trimFilter&&(e=e.trim());var p=(t||[]).reduce(function(y,$){return y.add($[d.valueKey]),y},new Set),h=new RegExp("".concat(d.matchPos==="start"?"^":"").concat(escapeRegExp(e)),d.ignoreCase?"i":"");return i.filter(function(y){if(p.has(y[d.valueKey]))return!1;if(d.filterOption)return d.filterOption.call(void 0,y,e);if(!e)return!0;var $=y[d.valueKey],E=y[d.labelKey],M=isValid($),H=isValid(E);if(!M&&!H)return!1;var Z=M?String($):null,be=H?String(E):null;return Z&&d.matchProp!=="label"&&h.test(Z)||be&&d.matchProp!=="value"&&h.test(be)})},defaultProps={"aria-label":null,"aria-describedby":null,"aria-errormessage":null,"aria-labelledby":null,autoFocus:!1,backspaceRemoves:!0,clearable:!0,closeOnSelect:!0,creatable:!1,deleteRemoves:!0,disabled:!1,error:!1,positive:!1,escapeClearsValue:!0,filterOptions,filterOutSelected:!0,getOptionLabel:null,getValueLabel:null,ignoreCase:!0,isLoading:!1,labelKey:"label",maxDropdownHeight:"40vh",multi:!1,onBlur:function n(){},onBlurResetsInput:!0,onChange:function n(){},onFocus:function n(){},onInputChange:function n(){},onCloseResetsInput:!0,onSelectResetsInput:!0,onOpen:null,onClose:null,openOnClick:!0,startOpen:!1,options:[],overrides:{},required:!1,searchable:!0,size:SIZE$1.default,type:TYPE.select,value:[],valueKey:"id"};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)}var _excluded$8=["overrides"];function ownKeys$5(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$4(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$5(Object(e),!0).forEach(function(t){_defineProperty$5(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$5(Object(e)).forEac
127h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _objectWithoutProperties$5(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$4(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$4(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$6.apply(this,arguments)}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. 128In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$5(n,i)}}function _arrayLikeToArray$5(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$5(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$5(n){if(Array.isArray(n))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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$2(n,i,e){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(t,o){return t.__proto__=o,t},_setPrototypeOf$1(n,i)}function _createSuper$2(n){var i=_isNativeReflectConstruct$2();return function(){var t=_getPrototypeOf$2(n),o;if(i){var d=_getPrototypeOf$2(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$2(this,o)}}function _possibleConstructorReturn$2(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$2(n)}function _defineProperty$5(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function groupOptions(n){return n.reduce(function(i,e){return e.__optgroup?(i[e.__optgroup]||(i[e.__optgroup]=[]),i[e.__optgroup].push(e)):i.__ungrouped.push(e),i},{__ungrouped:[]})}var SelectDropdown=(function(n){_inherits$2(e,n);var i=_createSuper$2(e);function e(){var t;_classCallCheck$2(this,e);for(var o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=i.call.apply(i,[this].concat(d)),_defineProperty$5(_assertThisInitialized$2(t),"getItemLabel",function(h){var y=t.props,$=y.getOptionLabel,E=y.overrides,M=E===void 0?{}:E,H=y.value,Z=y.valueKey,be=getOverrides(M.OptionContent,StyledOptionContent),ye=_slicedToArray$5(be,2),we=ye[0],xe=ye[1],Ce;Array.isArray(H)?Ce=!!H.find(function(Fe){return Fe&&Fe[Z]===h[Z]}):Ce=H[Z]===h[Z];var Ne={$selected:Ce,$disabled:h.disabled,$isHighlighted:h.isHighlighted};return reactExports.createElement(we,_extends$6({"aria-readonly":h.disabled,"aria-selected":Ce,key:h[Z]},t.getSharedProps(),Ne,xe),$({option:h,optionState:Ne}))}),_defineProperty$5(_assertThisInitialized$2(t),"onMouseDown",function(h){h.nativeEvent.stopImmediatePropagation()}),_defineProperty$5(_assertThisInitialized$2(t),"getHighlightedIndex",function(){var h=t.props,y=h.value,$=h.options,E=h.valueKey,M={};if(Array.isArray(y)&&y.length>0?M=y[0]:y instanceof Array||(M=y),Object.keys(M).length>0){var H=$.findIndex(function(Z){return Z&&Z[E]===M[E]});return H===-1?0:H}return 0}),t}return _createClass$2(e,[{key:"getSharedProps",value:function(){var o=this.props,d=o.error,p=o.isLoading,h=o.multi,y=o.required,$=o.size,E=o.searchable,M=o.type,H=o.width;return{$error:d,$isLoading:p,$multi:h,$required:y,$searchable:E,$size:$,$type:M,$width:H}}},{key:"render",value:function(){var o=this,d=this.props,p=d.maxDropdownHeight,h=d.multi,y=d.noResultsMsg,$=d.onItemSelect,E=d.options,M=E===void 0?[]:E,H=d.overrides,Z=H===void 0?{}:H,be=d.size,ye=getOverrides(Z.DropdownContainer,StyledDropdownContainer),we=_slicedToArray$5(ye,2),xe=we[0],Ce=we[1],Ne=getOverrides(Z.DropdownListItem,StyledDropdownListItem),Fe=_slicedToArray$5(Ne,2),Me=Fe[0],Le=Fe[1],ze=getOverrides(Z.StatefulMenu,StatefulMenu),Ke=_slicedToArray$5(ze,2),Ve=Ke[0],je=Ke[1],We=je.overrides,Xe=We===void 0?{}:We,Qe=_objectWithoutProperties$5(je,_excluded$8),Ye=this.getHighlightedIndex(),Ue=groupOptions(M);return reactExports.createElement(xe,_extends$6({"data-no-focus-lock":!0,ref:this.props.innerRef}
128,this.getSharedProps(),Ce),reactExports.createElement(Ve,_extends$6({noResultsMsg:y,onActiveDescendantChange:function(dt){o.props.onActiveDescendantChange&&o.props.onActiveDescendantChange(dt)},onItemSelect:$,items:Ue,size:be,initialState:{isFocused:!0,highlightedIndex:Ye},typeAhead:!1,keyboardControlNode:this.props.keyboardControlNode,forceHighlight:!0,overrides:mergeOverrides({List:{component:StyledDropdown,style:function(dt){return{maxHeight:dt.$maxHeight||null}},props:{id:this.props.id?this.props.id:null,$maxHeight:p,"aria-multiselectable":h}},Option:{props:{getItemLabel:this.getItemLabel,onMouseDown:this.onMouseDown,overrides:{ListItem:{component:Me,props:_objectSpread$4(_objectSpread$4({},Le),{},{role:"option"}),style:Le.$style}},renderHrefAsAnchor:!1}}},_objectSpread$4({List:Z.Dropdown||{},Option:Z.DropdownOption||{}},Xe))},Qe)))}}]),e})(reactExports.Component);function ownKeys$4(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$3(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$4(Object(e),!0).forEach(function(t){_defineProperty$4(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$4(Object(e)).forEac
128h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$4(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function groupedOptionsToArray(n){return Object.keys(n).reduce(function(i,e){var t=n[e];return i.concat(t.map(function(o){return _objectSpread$3(_objectSpread$3({},o),{},{__optgroup:e})}))},[])}function normalizeOptions(n){return n?Array.isArray(n)?n:groupedOptionsToArray(n):[]}var expandValue=function n(i,e){if(!e.options)return i;for(var t=normalizeOptions(e.options),o=0;o<t.length;o++)if(String(t[o][e.valueKey])===String(i[e.valueKey]))return t[o];return i};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$7=["$size"],_excluded2$2=["$size"];function _objectWithoutProperties$4(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$3(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$3(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$5.apply(this,arguments)}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. 129In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$4(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$4(n){if(Array.isArray(n))return n}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray$4(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 130In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$4(n,i)}}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$4(n)}function _arrayLikeToArray$4(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$1(n,i,e){return i&&_defineProperties$1(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _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(t,o){return t.__proto__=o,t},_setPrototypeOf(n,i)}
130function _createSuper$1(n){var i=_isNativeReflectConstruct$1();return function(){var t=_getPrototypeOf$1(n),o;if(i){var d=_getPrototypeOf$1(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$1(this,o)}}function _possibleConstructorReturn$1(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$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(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$1(n)}function _defineProperty$3(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function Noop(){return null}var isClick=function n(i){return i.type==="click"},isLeftClick=function n(i){return i.button!==null&&i.button!==void 0&&i.button===0},containsNode=function n(i,e){if(typeof document<"u")return e&&i&&i.contains(e)};function isInteractive(n,i){if(n instanceof Element)for(var e=n;e&&e!==i;){var t=e.getAttribute("role");if(t==="button"||t==="link")return!0;e.tagName&&(e=e.parentElement)}return!1}var Select$1=(function(n){_inherits$1(e,n);var i=_createSuper$1(e);function e(t){var o;return _classCallCheck$1(this,e),o=i.call(this,t),_defineProperty$3(_assertThisInitialized$1(o),"anchor",reactExports.createRef()),_defineProperty$3(_assertThisInitialized$1(o),"dropdown",reactExports.createRef()),_defineProperty$3(_assertThisInitialized$1(o),"input",void 0),_defineProperty$3(_assertThisInitialized$1(o),"dragging",void 0),_defineProperty$3(_assertThisInitialized$1(o),"focusAfterClear",void 0),_defineProperty$3(_assertThisInitialized$1(o),"openAfterFocus",void 0),_defineProperty$3(_assertThisInitialized$1(o),"justSelected",void 0),_defineProperty$3(_assertThisInitialized$1(o),"options",[]),_defineProperty$3(_assertThisInitialized$1(o),"state",{activeDescendant:null,inputValue:"",isFocused:!1,isOpen:o.props.startOpen,isPseudoFocused:!1}),_defineProperty$3(_assertThisInitialized$1(o),"isItMounted",!1),_defineProperty$3(_assertThisInitialized$1(o),"handleTouchOutside",function(d){containsNode(o.dropdown.current,d.target)||containsNode(o.anchor.current,d.target)||o.closeMenu()}),_defineProperty$3(_assertThisInitialized$1(o),"handleTouchMove",function(){return o.dragging=!0}),_defineProperty$3(_assertThisInitialized$1(o),"handleTouchStart",function(){return o.dragging=!1}),_defineProperty$3(_assertThisInitialized$1(o),"handleTouchEnd",function(d){o.dragging||o.handleClick(d)}),_defineProperty$3(_assertThisInitialized$1(o),"handleClick",function(d){if(!(o.props.disabled||!isClick(d)&&!isLeftClick(d))){if(d.target===o.input){o.state.isFocused||(o.openAfterFocus=o.props.openOnClick,o.focus()),o.state.isOpen||o.setState({isOpen:!0,isFocused:!0,isPseudoFocused:!1});return}if(!(o.input&&isInteractive(d.target,o.input))){if(!o.props.searchable){o.focus(),o.state.isOpen?o.setState({isOpen:!1,isFocused:!1}):o.setState({isOpen:!0,isFocused:!0});return}o.state.isFocused?(o.focus(),o.input&&(o.input.value=""),o.setState(function(p){return{isOpen:!o.focusAfterClear&&!p.isOpen,isPseudoFocused:!1}}),o.focusAfterClear=!1):(o.focusAfterClear=!1,o.openAfterFocus=o.props.openOnClick,o.focus())}}}),_defineProperty$3(_assertThisInitialized$1(o),"handleInputFocus",function(d){if(!o.props.disabled){o.props.onFocus&&o.props.onFocus(d);var p=o.state.isOpen||o.openAfterFocus;p=!o.focusAfterClear&&p,o.setState({isFocused:!0,isOpen:!!p}),o.focusAfterClear=!1,o.openAfterFocus=!1}}),_defineProperty$3(_assertThisInitialized$1(o),"handleBlur",function(d){if(d.relatedTarget){if(containsNode(o.anchor.current,d.relatedTarget)||containsNode(o.dropdown.current,d.relatedTarget))return}else if(containsNode(o.anchor.current,d.target))return;o.props.onBlur&&o.props.onBlur(d),o.isItMounted&&o.setState({isFocused:!1,isOpen:!1,isPseudoFocused:!1,inputValue:o.props.onBlurResetsInput?"":o.state.inputValue})}),_defineProperty$3(_assertThisInitialized$1(o),"handleClickOutside",function(d){if(o.justSelected){o.justSelected=!1;return}if(!containsNode(o.dropdown.current,d.target)){var p=o.state.isFocused||o.state.isPseudoFocused;p&&!containsNode(o.anchor.current,d.target)&&o.handleBlur(d)}}),_defineProperty$3(_assertThisInitialized$1(o),"handleInputChange",function(d){var p=d.target.value;o.setState({inputValue:p,isOpen:!0,isPseudoFocused:!1}),o.props.onInputChange&&o.props.onInputChange(d)}),_defineProperty$3(_assertThisInitialized$1(o),"handleKeyDown",function(d){if(!o.props.disabled)switch(d.keyCode){case 8:!o.state.inputValue&&o.props.backspaceRemoves&&(d.preventDefault(),o.backspaceValue());break;case 9:o.setState(function(p){return{isPseudoFocused:!1,isFocused:!1,isOpen:!1,inputValue:!o.props.onCloseResetsInput||!o.props.onBlurResetsInput?p.inputValue:""}});break;case 27:!o.state.isOpen&&o.props.clearable&&o.props.escapeClearsValue&&(o.clearValue(d),o.setState({isFocused:!1,isPseudoFocused:!1}));break;case 32:if(o.props.searchable)break;d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 38:d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 40:d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 33:d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 34:d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;
130case 35:if(d.shiftKey)break;d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 36:if(d.shiftKey)break;d.preventDefault(),o.state.isOpen||o.setState({isOpen:!0});break;case 46:!o.state.inputValue&&o.props.deleteRemoves&&(d.preventDefault(),o.popValue());break}}),_defineProperty$3(_assertThisInitialized$1(o),"getOptionLabel",function(d,p){var h=p.option;return h.isCreatable?"".concat(d.select.create," â").concat(h[o.props.labelKey],"â"):h[o.props.labelKey]}),_defineProperty$3(_assertThisInitialized$1(o),"getValueLabel",function(d){var p=d.option;return p[o.props.labelKey]}),_defineProperty$3(_assertThisInitialized$1(o),"handleActiveDescendantChange",function(d){d?o.setState({activeDescendant:d}):o.setState({activeDescendant:null})}),_defineProperty$3(_assertThisInitialized$1(o),"handleInputRef",function(d){o.input=d,typeof o.props.inputRef=="function"?o.props.inputRef(d):o.props.inputRef&&(o.props.inputRef.current=d),o.props.controlRef&&typeof o.props.controlRef=="function"&&o.props.controlRef(d)}),_defineProperty$3(_assertThisInitialized$1(o),"selectValue",function(d){var p=d.item;if(!p.disabled){o.justSelected=!0;var h=o.props.onSelectResetsInput?"":o.state.inputValue;o.props.multi?o.setState({inputValue:h,isOpen:!o.props.closeOnSelect},function(){var y=o.props.value;y.some(function($){return $[o.props.valueKey]===p[o.props.valueKey]})?o.removeValue(p):o.addValue(p)}):(o.focus(),o.setState({inputValue:h,isOpen:!o.props.closeOnSelect,isFocused:!0,isPseudoFocused:!1},function(){o.setValue([p],p,STATE_CHANGE_TYPE.select)}))}}),_defineProperty$3(_assertThisInitialized$1(o),"addValue",function(d){var p=_toConsumableArray(o.props.value);o.setValue(p.concat(d),d,STATE_CHANGE_TYPE.select)}),_defineProperty$3(_assertThisInitialized$1(o),"backspaceValue",function(){var d=o.popValue();if(d){var p=o.props.value.length,h=o.props.getValueLabel||o.getValueLabel,y=h({option:d,index:p-1});if(!o.props.backspaceClearsInputValue&&typeof y=="string"){var $=y.slice(0,-1);o.setState({inputValue:$,isOpen:!0})}}}),_defineProperty$3(_assertThisInitialized$1(o),"popValue",function(){var d=_toConsumableArray(o.props.value),p=d.length;if(p&&d[p-1].clearableValue!==!1){var h=d.pop();return o.setValue(d,h,STATE_CHANGE_TYPE.remove),h}}),_defineProperty$3(_assertThisInitialized$1(o),"removeValue",function(d){var p=_toConsumableArray(o.props.value);o.setValue(p.filter(function(h){return h[o.props.valueKey]!==d[o.props.valueKey]}),d,STATE_CHANGE_TYPE.remove),o.focus()}),_defineProperty$3(_assertThisInitialized$1(o),"clearValue",function(d){if(!(isClick(d)&&!isLeftClick(d))){if(o.props.value){var p=o.props.value.filter(function(h){return h.clearableValue===!1});o.setValue(p,null,STATE_CHANGE_TYPE.clear)}o.setState({inputValue:"",isOpen:!1}),o.focus(),o.focusAfterClear=!0}}),_defineProperty$3(_assertThisInitialized$1(o),"shouldShowPlaceholder",function(){return!(o.state.inputValue||o.props.value&&o.props.value.length)}),_defineProperty$3(_assertThisInitialized$1(o),"shouldShowValue",function(){return!o.state.inputValue}),o.options=normalizeOptions(t.options),o}return _createClass$1(e,[{key:"componentDidMount",value:function(){this.props.autoFocus&&this.focus(),this.isItMounted=!0;var o=this.props.controlRef;o&&typeof o!="function"&&(o.current={setDropdownOpen:this.handleDropdownOpen.bind(this),setInputValue:this.handleSetInputValue.bind(this),setInputFocus:this.handleSetInputFocus.bind(this),setInputBlur:this.handleSetInputBlur.bind(this),focus:this.handleSetInputFocus.bind(this),blur:this.handleSetInputBlur.bind(this)})}},{key:"componentDidUpdate",value:function(o,d){var p=this;typeof document<"u"&&(d.isOpen!==this.state.isOpen&&(this.state.isOpen?(this.props.onOpen&&this.props.onOpen(),document.addEventListener("touchstart",this.handleTouchOutside)):(this.props.onClose&&this.props.onClose(),document.removeEventListener("touchstart",this.handleTouchOutside))),!d.isFocused&&this.state.isFocused&&setTimeout(function(){return document.addEventListener("click",p.handleClickOutside)},0))}},{key:"componentWillUnmount",value:function(){typeof document<"u"&&(document.removeEventListener("touchstart",this.handleTouchOutside),document.removeEventListener("click",this.handleClickOutside)),this.isItMounted=!1}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"handleDropdownOpen",value:function(o){this.setState({isOpen:o})}},{key:"handleSetInputValue",value:function(o){this.setState({inputValue:o})}},{key:"handleSetInputFocus",value:function(){this.input.focus()}},{key:"handleSetInputBlur",value:function(){this.input.blur()}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:"",isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi})}},{key:"getValueArray",value:(function(o){var d=this;if(!Array.isArray(o)){if(o==null)return[];o=[o]}return o.map(function(p){return expandValue(p,d.props)})})},{key:"setValue",value:function(o,d,p){this.props.onChange&&this.props.onChange({value:o,option:d,type:p})}},{key:"renderLoading",value:function(){if(this.props.isLoading){var o=this.props.overrides,d=o===void 0?{}:o,p=getOverrides(d.LoadingIndicator,StyledLoadingIndicator),h=_slicedToArray$4(p,2),y=h[0],$=h[1];return reactExports.createElement(y,_extends$5({role:"status"},$),reactExports.createElement("span",{style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Loading"))}}},{key:"renderValue",value:function(o){var d=this,p=this.props.overrides,h=p===void 0?{}:p,y=this.getSharedProps(),$=this.props.getValueLabel||this.getValueLabel,E=this.props.valueComponent||Noop;if(!o.length)return null;if(this.props.multi)return o.map(function(M,H){var Z=y.$disabled||M.clearableValue===!1;return reactExports.createElement(E,_extends$5({value:M,key:"value-".concat(H,"-").concat(M[d.props.valueKey]),removeValue:function(){return d.removeValue(M)},disabled:Z,overrides:{Tag:h.Tag,MultiValue:h.MultiValue}},y,{$disabled:Z}),$({option:M,index:H}))});if(this.shouldShowValue())return reactExports.createElement(E,_extends$5({value:o[0][this.props.valueKey],disabled:this.props.disabled,overrides:{SingleValue:h.SingleValue}},y),$({option:o[0]}))}},{key:"renderInput",value:function(o){var d=this,p=this.props.overrides,h=p===void 0?{}:p,y=getOverrides(h.InputContainer,StyledInputContainer),$=_slicedToArray$4(y,2),E=$[0],M=$[1],H=this.getSharedProps(),Z=this.state.isOpen,be=this.getValueArray(this.props.value).map(function(xe){return xe[d.props.labelKey]}).join(", "),ye=be.length?"Selected ".concat(be,". "):"",we="".concat(ye).concat(this.props["aria-label"]||"");return this.props.searchable?reactExports.createElement(E,_extends$5({},H,M),reactExports.createElement(AutosizeInput,_extends$5({"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":"list","aria-controls":this.state.isOpen?o:null,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled||null,"aria-expanded":Z,"aria-haspopup":"listbox","aria-label":we,"aria-labelledby":this.props["aria-labelledby"],"aria-required":this.props.required||null,disabled:this.props.disabled||null,id:this.props.id||null,inputRef:this.handleInputRef,onChange:this.handleInputChange,onFocus:this.handleInputFocus,overrides:{Input:h.Input},required:this.props.required&&!this.props.value.length||null,role:"combobox",value:this.state.inputValue,tabIndex:0},H))):reactExports.createElement(E,_extends$5({"aria-activedescendant":this.state.activeDescendant,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-disabled":this.props.disabled,"aria-labelledby":this.props["aria-labelledby"],"aria-owns":this.state.isOpen?o:null,"aria-required":this.props.required||null,onFocus:this.handleInputFocus,tabIndex:0},H,M),reactExports.createElement("input",_extends$5({"aria-hidden":!0,id:this.props.id||null,ref:this.handleInputRef,style:{opacity:0,width:0,overflow:"hidden",border:"none",padding:0},tabIndex:-1},h.Input?h.Input.props?h.Input.props:{}:{})))}},{key:"renderClear",value:function(){var o,d=!!(this.props.value&&this.props.value.length||this.state.inputValue);if(!(!this.props.clearable||this.props.disabled||this.props.isLoading||!d)){var p=this.getSharedProps();p.$size;var h=_objectWithoutProperties$4(p,_excluded$7),y=this.props.overrides,$=y===void 0?{}:y,E=getOverrides($.ClearIcon,DeleteAlt$1),M=_slicedToArray$4(E,2),H=M[0],Z=M[1],be=this.props.multi?"Clear all":"Clear value",ye=(o={},_defineProperty$3(o,SIZE$1.mini,15),_defineProperty$3(o,SIZE$1.compact,15),_defineProperty$3(o,SIZE$1.default,18),_defineProperty$3(o,SIZE$1.large,22),o);return reactExports.createElement(H,_extends$5({title:be,"aria-label":be,onClick:this.clearValue,role:"button",size:ye[this.props.size]||ye[SIZE$1.default]},h,Z))}}},{key:"renderArrow",value:function(){var o;if(this.props.type!==TYPE.select)return null;var d=this.getSharedProps();d.$size;var p=_objectWithoutProperties$4(d,_excluded2$2),h=this.props.overrides,y=h===void 0?{}:h,$=getOverrides(y.SelectArrow,TriangleDownIcon),E=_slicedToArray$4($,2),M=E[0],H=E[1];H.overrides=mergeOverrides({Svg:{style:function(ye){var we=ye.$theme,xe=ye.$disabled;return{color:xe?we.colors.inputTextDisabled:we.colors.contentPrimary}}}},H.overrides);var Z=(o={},_defineProperty$3(o,SIZE$1.mini,16),_defineProperty$3(o,SIZE$1.compact,16),_defineProperty$3(o,SIZE$1.default,20),_defineProperty$3(o,SIZE$1.large,24),o);return reactExports.createElement(M,_extends$5({size:Z[this.props.size]||Z[SIZE$1.default],title:"open"},p,H))}},{key:"renderSearch",value:function(){if(this.props.type!==TYPE.search)return null;var o=this.props.overrides,d=o===void 0?{}:o,p=getOverrides(d.SearchIconContainer,StyledSearchIconContainer),h=_slicedToArray$4(p,2),y=h[0],$=h[1],E=getOverrides(d.SearchIcon,SearchIconComponent),M=_slicedToArray$4(E,2),H=M[0],Z=M[1],be=this.getSharedProps();return reactExports.createElement(y,_extends$5({},be,$),reactExports.createElement(H,_extends$5({size:16,title:"search"},be,Z)))}},{key:"filterOptions",value:function(o){var d=this,p=this.state.inputValue.trim();this.props.filterOptions&&(this.options=this.props.filterOptions(this.options,p,o,{valueKey:this.props.valueKey,labelKey:this.props.labelKey}));var h=this.props.ignoreCase?function($){return $[d.props.labelKey].toLowerCase()!==p.toLowerCase().trim()}:function($){return $[d.props.labelKey]!==p.trim()};if(p&&this.props.creatable&&this.options.concat(this.props.value).every(h)){var y;this.options.push((y={id:p},_defineProperty$3(y,this.props.labelKey,p),_defineProperty$3(y,this.props.valueKey,p),_defineProperty$3(y,"isCreatable",!0),y))}return this.options}},{key:"getSharedProps",value:function(){var o=this.props,d=o.clearable,p=o.creatable,h=o.disabled,y=o.error,$=o.positive,E=o.isLoading,M=o.multi,H=o.required,Z=o.size,be=o.searchable,ye=o.type,we=o.value,xe=this.state,Ce=xe.isOpen,Ne=xe.isFocused,Fe=xe.isPseudoFocused;return{$clearable:d,$creatable:p,$disabled:h,$error:y,$positive:$,$isFocused:Ne,$isLoading:E,$isOpen:Ce,$isPseudoFocused:Fe,$multi:M,$required:H,$searchable:be,$size:Z,$type:ye,$isEmpty:!this.getValueArray(we).length}}},{key:"render",value:function(){var o=this;this.options=normalizeOptions(this.props.options);var d=this.props,p=d.overrides,h=p===void 0?{}:p,y=d.type,$=d.multi,E=d.noResultsMsg,M=d.value,H=d.filterOutSelected,Z=getOverrides(h.Root,StyledRoot),be=_slicedToArray$4(Z,2),ye=be[0],we=be[1],xe=getOverrides(h.ControlContainer,StyledControlContainer),Ce=_slicedToArray$4(xe,2),Ne=Ce[0],Fe=Ce[1],Me=getOverrides(h.ValueContainer,StyledValueContainer),Le=_slicedToArray$4(Me,2),ze=Le[0],Ke=Le[1],Ve=getOverrides(h.IconsContainer,StyledIconsContainer),je=_slicedToArray$4(Ve,2),We=je[0],Xe=je[1],Qe=getOverrides(h.Popover,Popover$2),Ye=_slicedToArray$4(Qe,2),Ue=Ye[0],ot=Ye[1],dt=getOverrides(h.Placeholder,StyledPlaceholder),st=_slicedToArray$4(dt,2),pt=st[0],Be=st[1],qe=this.getSharedProps(),rt=this.getValueArray(M),He=this.filterOptions($&&H?rt:null),Ot=this.state.isOpen;return qe.$isOpen=Ot,reactExports.createElement(UIDConsumer,null,function(Ct){return reactExports.createElement(LocaleContext.Consumer,null,function(tt){return reactExports.createElement(Ue,_extends$5({innerRef:function(gt){gt&&(o.anchor=gt.anchorRef)},accessibilityType:ACCESSIBILITY_TYPE.none,autoFocus:!1,focusLock:!1,mountNode:o.props.mountNode,onEsc:function(){return o.closeMenu()}
130,isOpen:Ot,popoverMargin:0,content:function(){var gt={error:o.props.error,positive:o.props.positive,getOptionLabel:o.props.getOptionLabel||o.getOptionLabel.bind(o,tt),id:Ct,isLoading:o.props.isLoading,labelKey:o.props.labelKey,maxDropdownHeight:o.props.maxDropdownHeight,multi:$,noResultsMsg:E,onActiveDescendantChange:o.handleActiveDescendantChange,onItemSelect:o.selectValue,options:He,overrides:h,required:o.props.required,searchable:o.props.searchable,size:o.props.size,type:y,value:rt,valueKey:o.props.valueKey,width:o.anchor.current?o.anchor.current.clientWidth:null,keyboardControlNode:o.anchor};return reactExports.createElement(SelectDropdown,_extends$5({innerRef:o.dropdown},gt))},placement:PLACEMENT$1.bottom},ot),reactExports.createElement(ye,_extends$5({onBlur:o.handleBlur,"data-baseweb":"select"},qe,we),reactExports.createElement(Ne,_extends$5({onKeyDown:o.handleKeyDown,onClick:o.handleClick,onTouchEnd:o.handleTouchEnd,onTouchMove:o.handleTouchMove,onTouchStart:o.handleTouchStart},qe,Fe),y===TYPE.search?o.renderSearch():null,reactExports.createElement(ze,_extends$5({},qe,Ke),o.renderValue(rt),o.renderInput(Ct),o.shouldShowPlaceholder()?reactExports.createElement(pt,_extends$5({},qe,Be),typeof o.props.placeholder<"u"?o.props.placeholder:tt.select.placeholder):null),reactExports.createElement(We,_extends$5({},qe,Xe),o.renderLoading(),o.renderClear(),y===TYPE.select?o.renderArrow():null))))})})}}]),e})(reactExports.Component);_defineProperty$3(Select$1,"defaultProps",defaultProps);var tint$1={exports:{}},_curry={exports:{}},hasRequired_curry;function require_curry(){return hasRequired_curry||(hasRequired_curry=1,(function(n,i){i.__esModule=!0,i.default=t;function e(o,d,p){return function(){var y=p.concat(Array.prototype.slice.call(arguments));return y.length>=d?o.apply(this,y):e(o,d,y)}}function t(o){return e(o,o.length,[])}n.exports=i.default})(_curry,_curry.exports)),_curry.exports}var mix={exports:{}},rgba={exports:{}},parseToRgb={exports:{}},_hslToRgb={exports:{}},hasRequired_hslToRgb;function require_hslToRgb(){return hasRequired_hslToRgb||(hasRequired_hslToRgb=1,(function(n,i){i.__esModule=!0,i.default=void 0;function e(p){return Math.round(p*255)}function t(p,h,y){return e(p)+","+e(h)+","+e(y)}function o(p,h,y,$){if($===void 0&&($=t),h===0)return $(y,y,y);var E=(p%360+360)%360/60,M=(1-Math.abs(2*y-1))*h,H=M*(1-Math.abs(E%2-1)),Z=0,be=0,ye=0;E>=0&&E<1?(Z=M,be=H):E>=1&&E<2?(Z=H,be=M):E>=2&&E<3?(be=M,ye=H):E>=3&&E<4?(be=H,ye=M):E>=4&&E<5?(Z=H,ye=M):E>=5&&E<6&&(Z=M,ye=H);var we=y-M/2,xe=Z+we,Ce=be+we,Ne=ye+we;return $(xe,Ce,Ne)}var d=o;i.default=d,n.exports=i.default})(_hslToRgb,_hslToRgb.exports)),_hslToRgb.exports}var _nameToHex={exports:{}},hasRequired_nameToHex;function require_nameToHex(){return hasRequired_nameToHex||(hasRequired_nameToHex=1,(function(n,i){i.__esModule=!0,i.default=void 0;var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
1300",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function t(d){if(typeof d!="string")return d;var p=d.toLowerCase();return e[p]?"#"+e[p]:d}var o=t;i.default=o,n.exports=i.default})(_nameToHex,_nameToHex.exports)),_nameToHex.exports}var _errors={exports:{}},hasRequired_errors;function require_errors(){return hasRequired_errors||(hasRequired_errors=1,(function(n,i){i.__esModule=!0,i.default=void 0;function e(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function t(M,H){M.prototype=Object.create(H.prototype),M.prototype.constructor=M,y(M,H)}function o(M){var H=typeof Map=="function"?new Map:void 0;return o=function(be){if(be===null||!h(be))return be;if(typeof be!="function")throw new TypeError("Super expression must either be null or a function");if(typeof H<"u"){if(H.has(be))return H.get(be);H.set(be,ye)}function ye(){return d(be,arguments,$(this).constructor)}return ye.prototype=Object.create(be.prototype,{constructor:{value:ye,enumerable:!1,writable:!0,configurable:!0}}),y(ye,be)},o(M)}function d(M,H,Z){return p()?d=Reflect.construct:d=function(ye,we,xe){var Ce=[null];Ce.push.apply(Ce,we);var Ne=Function.bind.apply(ye,Ce),Fe=new Ne;return xe&&y(Fe,xe.prototype),Fe},d.apply(null,arguments)}function p(){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 h(M){return Function.toString.call(M).indexOf("[native code]")!==-1}function y(M,H){return y=Object.setPrototypeOf||function(be,ye){return be.__proto__=ye,be},y(M,H)}function $(M){return $=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},$(M)}var E=(function(M){t(H,M);function H(Z){var be;return be=M.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+Z+" for more information.")||this,e(be)}return H})(o(Error));i.default=E,n.exports=i.default})(_errors,_errors.exports)),_errors.exports}var hasRequiredParseToRgb;function requireParseToRgb(){return hasRequiredParseToRgb||(hasRequiredParseToRgb=1,(function(n,i){i.__esModule=!0,i.default=be;var e=d(require_hslToRgb()),t=d(require_nameToHex()),o=d(require_errors());function d(ye){return ye&&ye.__esModule?ye:{default:ye}}var p=/^#[a-fA-F0-9]{6}$/,h=/^#[a-fA-F0-9]{8}$/,y=/^#[a-fA-F0-9]{3}$/,$=/^#[a-fA-F0-9]{4}$/,E=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,M=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,H=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Z=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function be(ye){if(typeof ye!="string")throw new o.default(3);var we=(0,t.default)(ye);if(we.match(p))return{red:parseInt(""+we[1]+we[2],16),green:parseInt(""+we[3]+we[4],16),blue:parseInt(""+we[5]+we[6],16)};if(we.match(h)){var xe=parseFloat((parseInt(""+we[7]+we[8],16)/255).toFixed(2));return{red:parseInt(""+we[1]+we[2],16),green:parseInt(""+we[3]+we[4],16),blue:parseInt(""+we[5]+we[6],16),alph
130a:xe}}if(we.match(y))return{red:parseInt(""+we[1]+we[1],16),green:parseInt(""+we[2]+we[2],16),blue:parseInt(""+we[3]+we[3],16)};if(we.match($)){var Ce=parseFloat((parseInt(""+we[4]+we[4],16)/255).toFixed(2));return{red:parseInt(""+we[1]+we[1],16),green:parseInt(""+we[2]+we[2],16),blue:parseInt(""+we[3]+we[3],16),alpha:Ce}}var Ne=E.exec(we);if(Ne)return{red:parseInt(""+Ne[1],10),green:parseInt(""+Ne[2],10),blue:parseInt(""+Ne[3],10)};var Fe=M.exec(we.substring(0,50));if(Fe)return{red:parseInt(""+Fe[1],10),green:parseInt(""+Fe[2],10),blue:parseInt(""+Fe[3],10),alpha:parseFloat(""+Fe[4])};var Me=H.exec(we);if(Me){var Le=parseInt(""+Me[1],10),ze=parseInt(""+Me[2],10)/100,Ke=parseInt(""+Me[3],10)/100,Ve="rgb("+(0,e.default)(Le,ze,Ke)+")",je=E.exec(Ve);if(!je)throw new o.default(4,we,Ve);return{red:parseInt(""+je[1],10),green:parseInt(""+je[2],10),blue:parseInt(""+je[3],10)}}var We=Z.exec(we.substring(0,50));if(We){var Xe=parseInt(""+We[1],10),Qe=parseInt(""+We[2],10)/100,Ye=parseInt(""+We[3],10)/100,Ue="rgb("+(0,e.default)(Xe,Qe,Ye)+")",ot=E.exec(Ue);if(!ot)throw new o.default(4,we,Ue);return{red:parseInt(""+ot[1],10),green:parseInt(""+ot[2],10),blue:parseInt(""+ot[3],10),alpha:parseFloat(""+We[4])}}throw new o.default(5)}n.exports=i.default})(parseToRgb,parseToRgb.exports)),parseToRgb.exports}var rgb={exports:{}},_reduceHexValue={exports:{}},hasRequired_reduceHexValue;function require_reduceHexValue(){return hasRequired_reduceHexValue||(hasRequired_reduceHexValue=1,(function(n,i){i.__esModule=!0,i.default=void 0;var e=function(d){return d.length===7&&d[1]===d[2]&&d[3]===d[4]&&d[5]===d[6]?"#"+d[1]+d[3]+d[5]:d},t=e;i.default=t,n.exports=i.default})(_reduceHexValue,_reduceHexValue.exports)),_reduceHexValue.exports}var _numberToHex={exports:{}},hasRequired_numberToHex;function require_numberToHex(){return hasRequired_numberToHex||(hasRequired_numberToHex=1,(function(n,i){i.__esModule=!0,i.default=void 0;function e(o){var d=o.toString(16);return d.length===1?"0"+d:d}var t=e;i.default=t,n.exports=i.default})(_numberToHex,_numberToHex.exports)),_numberToHex.exports}var hasRequiredRgb;function requireRgb(){return hasRequiredRgb||(hasRequiredRgb=1,(function(n,i){i.__esModule=!0,i.default=p;var e=d(require_reduceHexValue()),t=d(require_numberToHex()),o=d(require_errors());function d(h){return h&&h.__esModule?h:{default:h}}function p(h,y,$){if(typeof h=="number"&&typeof y=="number"&&typeof $=="number")return(0,e.default)("#"+(0,t.default)(h)+(0,t.default)(y)+(0,t.default)($));if(typeof h=="object"&&y===void 0&&$===void 0)return(0,e.default)("#"+(0,t.default)(h.red)+(0,t.default)(h.green)+(0,t.default)(h.blue));throw new o.default(6)}n.exports=i.default})(rgb,rgb.exports)),rgb.exports}var hasRequiredRgba;function requireRgba(){return hasRequiredRgba||(hasRequiredRgba=1,(function(n,i){i.__esModule=!0,i.default=p;var e=d(requireParseToRgb()),t=d(requireRgb()),o=d(require_errors());function d(h){return h&&h.__esModule?h:{default:h}}
130function p(h,y,$,E){if(typeof h=="string"&&typeof y=="number"){var M=(0,e.default)(h);return"rgba("+M.red+","+M.green+","+M.blue+","+y+")"}else{if(typeof h=="number"&&typeof y=="number"&&typeof $=="number"&&typeof E=="number")return E>=1?(0,t.default)(h,y,$):"rgba("+h+","+y+","+$+","+E+")";if(typeof h=="object"&&y===void 0&&$===void 0&&E===void 0)return h.alpha>=1?(0,t.default)(h.red,h.green,h.blue):"rgba("+h.red+","+h.green+","+h.blue+","+h.alpha+")"}throw new o.default(7)}n.exports=i.default})(rgba,rgba.exports)),rgba.exports}var hasRequiredMix;function requireMix(){return hasRequiredMix||(hasRequiredMix=1,(function(n,i){i.__esModule=!0,i.default=void 0;var e=d(require_curry()),t=d(requireRgba()),o=d(requireParseToRgb());function d(E){return E&&E.__esModule?E:{default:E}}function p(){return p=Object.assign||function(E){for(var M=1;M<arguments.length;M++){var H=arguments[M];for(var Z in H)Object.prototype.hasOwnProperty.call(H,Z)&&(E[Z]=H[Z])}return E},p.apply(this,arguments)}function h(E,M,H){if(M==="transparent")return H;if(H==="transparent")return M;if(E===0)return H;var Z=(0,o.default)(M),be=p({},Z,{alpha:typeof Z.alpha=="number"?Z.alpha:1}),ye=(0,o.default)(H),we=p({},ye,{alpha:typeof ye.alpha=="number"?ye.alpha:1}),xe=be.alpha-we.alpha,Ce=parseFloat(E)*2-1,Ne=Ce*xe===-1?Ce:Ce+xe,Fe=1+Ce*xe,Me=(Ne/Fe+1)/2,Le=1-Me,ze={red:Math.floor(be.red*Me+we.red*Le),green:Math.floor(be.green*Me+we.green*Le),blue:Math.floor(be.blue*Me+we.blue*Le),alpha:be.alpha*(parseFloat(E)/1)+we.alpha*(1-parseFloat(E)/1)};return(0,t.default)(ze)}var y=(0,e.default)(h),$=y;i.default=$,n.exports=i.default})(mix,mix.exports)),mix.exports}var hasRequiredTint;function requireTint(){return hasRequiredTint||(hasRequiredTint=1,(function(n,i){i.__esModule=!0,i.default=void 0;var e=o(require_curry()),t=o(requireMix());function o(y){return y&&y.__esModule?y:{default:y}}function d(y,$){return $==="transparent"?$:(0,t.default)(parseFloat(y),"rgb(255, 255, 255)",$)}var p=(0,e.default)(d),h=p;i.default=h,n.exports=i.default})(tint$1,tint$1.exports)),tint$1.exports}var tintExports=requireTint();const tint=getDefaultExportFromCjs(tintExports);var shade$1={exports:{}},hasRequiredShade;function requireShade(){return hasRequiredShade||(hasRequiredShade=1,(function(n,i){i.__esModule=!0,i.default=void 0;var e=o(require_curry()),t=o(requireMix());function o(y){return y&&y.__esModule?y:{default:y}}function d(y,$){return $==="transparent"?$:(0,t.default)(parseFloat(y),"rgb(0, 0, 0)",$)}var p=(0,e.default)(d),h=p;i.default=h,n.exports=i.default})(shade$1,shade$1.exports)),shade$1.exports}var shadeExports=requireShade();const shade=getDefaultExportFromCjs(shadeExports);var SIZE={small:"small",medium:"medium",large:"large"},VARIANT=Object.freeze({solid:"solid",light:"light",outlined:"outlined"}),KIND={custom:"custom",neutral:"neutral",primary:"primary",accent:"accent",positive:"positive",warning:"warning",negative:"negative",black:"black",blue:"blue",green:"green",red:"red",yellow:"yellow",orange:"orange",purple:"purple",brown:"brown"},_neutralColorStates,_primaryColorStates,_accentColorStates,_positiveColorStates,_warningColorStates,_negativeColorStates,_orangeColorStates,_purpleColorStates,_brownColorStates,_customColorStates,_colorMap;function ownKeys$3(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$2(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$3(Object(e),!0).forEach(function(t){_defineProperty$2(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$3(Object(e)).forEac
130h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$2(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function customOnRamp(n,i){switch(i){case"0":return"white";case"50":return tint(.8,n);case"100":return tint(.6,n);case"200":return tint(.4,n);case"300":return tint(.2,n);case"400":return n;case"500":return shade(.2,n);case"600":return shade(.4,n);case"700":return shade(.6,n);case"800":return shade(.8,n);case"1000":return"black";default:return n}}var COLOR_STATE={disabled:"disabled",solid:"solid",outline:"outline"},pick=function n(i,e,t){return i.name&&i.name.includes("dark")?t:e},neutralColorStates=(_neutralColorStates={},_defineProperty$2(_neutralColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagNeutralFontDisabled,backgroundColor:null,borderColor:n.colors.tagNeutralOutlinedDisabled}}),_defineProperty$2(_neutralColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagNeutralSolidFont,backgroundColor:n.colors.tagNeutralSolidBackground,borderColor:null}}),_defineProperty$2(_neutralColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagNeutralOutlinedFont,backgroundColor:null,borderColor:n.colors.tagNeutralOutlinedBackground}}),_neutralColorStates),primaryColorStates=(_primaryColorStates={},_defineProperty$2(_primaryColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagPrimaryFontDisabled,backgroundColor:null,borderColor:n.colors.tagPrimaryOutlinedDisabled}}),_defineProperty$2(_primaryColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagPrimarySolidFont,backgroundColor:n.colors.tagPrimarySolidBackground,borderColor:null}}),_defineProperty$2(_primaryColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagPrimaryOutlinedFont,backgroundColor:null,borderColor:n.colors.tagPrimaryOutlinedBackground}}),_primaryColorStates),accentColorStates=(_accentColorStates={},_defineProperty$2(_accentColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagAccentFontDisabled,backgroundColor:null,borderColor:n.colors.tagAccentOutlinedDisabled}}),_defineProperty$2(_accentColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagAccentSolidFont,backgroundColor:n.colors.tagAccentSolidBackground,borderColor:null}}),_defineProperty$2(_accentColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagAccentOutlinedFont,backgroundColor:null,borderColor:n.colors.tagAccentOutlinedBackground}}),_accentColorStates),positiveColorStates=(_positiveColorStates={},_defineProperty$2(_positiveColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagPositiveFontDisabled,backgroundColor:null,borderColor:n.colors.tagPositiveOutlinedDisabled}}),_defineProperty$2(_positiveColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagPositiveSolidFont,backgroundColor:n.colors.tagPositiveSolidBackground,borderColor:null}}),_defineProperty$2(_positiveColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagPositiveOutlinedFont,backgroundColor:null,borderColor:n.colors.tagPositiveOutlinedBackground}}),_positiveColorStates),warningColorStates=(_warningColorStates={},_defineProperty$2(_warningColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagWarningFontDisabled,backgroundColor:null,borderColor:n.colors.tagWarningOutlinedDisabled}}),_defineProperty$2(_warningColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagWarningSolidFont,backgroundColor:n.colors.tagWarningSolidBackground,borderColor:null}}),_defineProperty$2(_warningColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagWarningOutlinedFont,backgroundColor:null,borderColor:n.colors.tagWarningOutlinedBackground}}),_warningColorStates),negativeColorStates=(_negativeColorStates={},_defineProperty$2(_negativeColorStates,COLOR_STATE.disabled,function(n,i){return{color:n.colors.tagNegativeFontDisabled,backgroundColor:null,borderColor:n.colors.tagNegativeOutlinedDisabled}}),_defineProperty$2(_negativeColorStates,COLOR_STATE.solid,function(n,i){return{color:n.colors.tagNegativeSolidFont,backgroundColor:n.colors.tagNegativeSolidBackgroun
130d,borderColor:null}}),_defineProperty$2(_negativeColorStates,COLOR_STATE.outline,function(n,i){return{color:n.colors.tagNegativeOutlinedFont,backgroundColor:null,borderColor:n.colors.tagNegativeOutlinedBackground}}),_negativeColorStates),orangeColorStates=(_orangeColorStates={},_defineProperty$2(_orangeColorStates,COLOR_STATE.disabled,function(n,i){return{color:pick(n,colors$1.orange200,colors$1.orange600),backgroundColor:null,borderColor:pick(n,colors$1.orange200,colors$1.orange700)}}),_defineProperty$2(_orangeColorStates,COLOR_STATE.solid,function(n,i){return{color:colors$1.white,backgroundColor:pick(n,colors$1.orange400,colors$1.orange500),borderColor:null}}),_defineProperty$2(_orangeColorStates,COLOR_STATE.outline,function(n,i){return{color:pick(n,colors$1.orange400,colors$1.orange300),backgroundColor:null,borderColor:pick(n,colors$1.orange200,colors$1.orange500)}}),_orangeColorStates),purpleColorStates=(_purpleColorStates={},_defineProperty$2(_purpleColorStates,COLOR_STATE.disabled,function(n,i){return{color:pick(n,colors$1.purple200,colors$1.purple600),backgroundColor:null,borderColor:pick(n,colors$1.purple200,colors$1.purple700)}}),_defineProperty$2(_purpleColorStates,COLOR_STATE.solid,function(n,i){return{color:colors$1.white,backgroundColor:pick(n,colors$1.purple400,colors$1.purple500),borderColor:null}}),_defineProperty$2(_purpleColorStates,COLOR_STATE.outline,function(n,i){return{color:pick(n,colors$1.purple400,colors$1.purple300),backgroundColor:null,borderColor:pick(n,colors$1.purple200,colors$1.purple500)}}),_purpleColorStates),brownColorStates=(_brownColorStates={},_defineProperty$2(_brownColorStates,COLOR_STATE.disabled,function(n,i){return{color:pick(n,colors$1.brown200,colors$1.brown600),backgroundColor:null,borderColor:pick(n,colors$1.brown200,colors$1.brown700)}}),_defineProperty$2(_brownColorStates,COLOR_STATE.solid,function(n,i){return{color:colors$1.white,backgroundColor:pick(n,colors$1.brown400,colors$1.brown500),borderColor:null}}),_defineProperty$2(_brownColorStates,COLOR_STATE.outline,function(n,i){return{color:pick(n,colors$1.brown400,colors$1.brown300),backgroundColor:null,borderColor:pick(n,colors$1.brown200,colors$1.brown500)}}),_brownColorStates),customColorStates=(_customColorStates={},_defineProperty$2(_customColorStates,COLOR_STATE.disabled,function(n,i){return{color:customOnRamp(i,n.colors.tagFontDisabledRampUnit),backgroundColor:null,borderColor:customOnRamp(i,n.colors.tagSolidDisabledRampUnit)}}),_defineProperty$2(_customColorStates,COLOR_STATE.solid,function(n,i){return{color:customOnRamp(i,n.colors.tagSolidFontRampUnit),backgroundColor:customOnRamp(i,n.colors.tagSolidRampUnit),borderColor:null}}),_defineProperty$2(_customColorStates,COLOR_STATE.outline,function(n,i){return{color:customOnRamp(i,n.colors.tagOutlinedFontRampUnit),backgroundColor:null,borderColor:customOnRamp(i,n.colors.tagOutlinedRampUnit)}}),_customColorStates),colorMap=(_colorMap={},_defineProperty$2(_colorMap,KIND.neutral,neutralColorStates),_defineProperty$2(_colorMap,KIND.primary,primaryColorStates),_defineProperty$2(_colorMap,KIND.accent,accentColorStates),_defineProperty$2(_colorMap,KIND.positive,positiveColorStates),_defineProperty$2(_colorMap,KIND.warning,warningColorStates),_defineProperty$2(_colorMap,KIND.negative,negativeColorStates),_defineProperty$2(_colorMap,KIND.black,primaryColorStates),_defineProperty$2(_colorMap,KIND.blue,accentColorStates),_defineProperty$2(_colorMap,KIND.green,positiveColorStates),_defineProperty$2(_colorMap,KIND.red,negativeColorStates),_defineProperty$2(_colorMap,KIND.yellow,warningColorStates),_defineProperty$2(_colorMap,KIND.orange,orangeColorStates),_defineProperty$2(_colorMap,KIND.purple,purpleColorStates),_defineProperty$2(_colorMap,KIND.brown,brownColorStates),_defineProperty$2(_colorMap,KIND.custom,customColorStates),_colorMap),getColorStateFromProps=function n(i){return i.$disabled?COLOR_STATE.disabled:i.$variant===VARIANT.solid?COLOR_STATE.solid:COLOR_STATE.outline},Action$1=styled$1("span",function(n){var i,e,t=n.$theme,o=n.$disabled,d=n.$size,p=d===void 0?SIZE.small:d,h=t.direction==="rtl"?"borderBottomLeftRadius":"borderBottomRightRadius",y=t.direction==="rtl"?"borderTopLeftRadius":"borderTopRightRadius",$=t.direction==="rtl"?"marginRight":"marginLeft";return e={alignItems:"center"},_defineProperty$2(e,h,t.borders.useRoundedCorners?t.borders.radius400:0),_defineProperty$2(e,y,t.borders.useRoundedCorners?t.borders.radius400:0),_defineProperty$2(e,"cursor",o?"not-allowed":"pointer"),_defineProperty$2(e,"display","flex"),_defineProperty$2(e,$,(i={},_defineProperty$2(i,SIZE.small,"8px"),_defineProperty$2(i,SIZE.medium,"12px"),_defineProperty$2(i,SIZE.large,"16px"),i)[p]),_defineProperty$2(e,"outline","none"),_defineProperty$2(e,"transitionProperty","all"),_defineProperty$2(e,"transitionDuration","background-color"),_defineProperty$2(e,"transitionTimingFunction",t.animation.easeOutCurve),e});Action$1.displayName="Action";Action$1.displayName="Action";var StartEnhancerContainer=styled$1("div",function(n){var i=n.$theme,e=n.$size,t=e===void 0?SIZE.small:e,o=i.sizing.scale300;t===SIZE.medium?o=i.sizing.scale400:t===SIZE.large&&(o=i.sizing.scale600);var d=i.direction==="rtl"?"paddingLeft":"paddingRight";return _defineProperty$2({alignItems:"center",display:"flex"},d,o)});
130StartEnhancerContainer.displayName="StartEnhancerContainer";StartEnhancerContainer.displayName="StartEnhancerContainer";var Text=styled$1("span",function(n){var i=n.$theme;return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:n.$theme.sizing.scale3200,order:i.direction==="rtl"?1:0}});Text.displayName="Text";Text.displayName="Text";var Root$1=styled$1("span",function(n){var i,e,t,o=n.$theme,d=n.$kind,p=d===void 0?KIND.primary:d,h=n.$clickable,y=n.$variant,$=n.$disabled,E=n.$closeable,M=n.$isFocusVisible,H=n.$color,Z=n.$size,be=Z===void 0?SIZE.small:Z,ye=o.borders.tagBorderRadius,we=(i={},_defineProperty$2(i,SIZE.small,o.sizing.scale300),_defineProperty$2(i,SIZE.medium,o.sizing.scale500),_defineProperty$2(i,SIZE.large,o.sizing.scale600),i)[be],xe=!$&&y===VARIANT.solid?0:"2px",Ce=colorMap[p][getColorStateFromProps(n)](o,H),Ne=Ce.color,Fe=Ce.backgroundColor,Me=Ce.borderColor;return _objectSpread$2(_objectSpread$2({},(e={},_defineProperty$2(e,SIZE.small,o.typography.LabelSmall),_defineProperty$2(e,SIZE.medium,o.typography.LabelMedium),_defineProperty$2(e,SIZE.large,o.typography.LabelLarge),e)[be]),{},{alignItems:"center",color:Ne,backgroundColor:Fe,borderLeftColor:Me,borderRightColor:Me,borderTopColor:Me,borderBottomColor:Me,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:xe,borderRightWidth:xe,borderTopWidth:xe,borderBottomWidth:xe,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,boxSizing:"border-box",cursor:$?"not-allowed":h?"pointer":"default",display:"inline-flex",height:(t={},_defineProperty$2(t,SIZE.small,"24px"),_defineProperty$2(t,SIZE.medium,"32px"),_defineProperty$2(t,SIZE.large,"40px"),t)[be],justifyContent:"space-between",marginTop:"5px",marginBottom:"5px",marginLeft:"5px",marginRight:"5px",paddingTop:o.sizing.scale0,paddingBottom:o.sizing.scale0,paddingLeft:we,paddingRight:we,outline:"none",":hover":$||!h?{}:{boxShadow:"inset 0px 0px 100px ".concat(pick(o,"rgba(0, 0, 0, 0.08)","rgba(255, 255, 255, 0.2)"))},":focus":$||!h&&!E?{}:{boxShadow:M?"0 0 0 3px ".concat(p===KIND.accent?o.colors.primaryA:o.colors.accent):"none"}})});Root$1.displayName="Root";Root$1.displayName="Root";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)}var JOINABLE_TYPES=new Set(["string","number"]);function getTextFromChildren(n){var i=reactExports.Children.toArray(n).filter(function(t){return t!=null});if(!i.length)return null;var e=i.every(function(t){return JOINABLE_TYPES.has(_typeof(t))});return e?i.join(""):null}function _defineProperty$1(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}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. 131In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$3(n,i)}}function _arrayLikeToArray$3(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$3(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$3(n){if(Array.isArray(n))return n}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$4.apply(this,arguments)}var ModifiedViewBoxDeleteIcon=function n(i){return reactExports.createElement(DeleteIcon,_extends$4({viewBox:"5 5 13.186 13.186"},i))},Tag=reactExports.forwardRef(function(n,i){var e,t=n.children,o=n.closeable,d=o===void 0?!0:o,p=n.color,h=n.size,y=h===void 0?SIZE.small:h,$=n.disabled,E=$===void 0?!1:$,M=n.isFocused,H=M===void 0?!1:M,Z=n.isHovered,be=Z===void 0?!1:Z,ye=n.kind,we=ye===void 0?KIND.primary:ye,xe=n.onActionClick,Ce=xe===void 0?function(Nt){}:xe,Ne=n.onActionKeyDown,Fe=Ne===void 0?function(Nt){}:Ne,Me=n.onClick,Le=Me===void 0?null:Me,ze=n.onKeyDown,Ke=ze===void 0?null:ze,Ve=n.overrides,je=Ve===void 0?{}:Ve,We=n.startEnhancer,Xe=n.title,Qe=n.variant,Ye=Qe===void 0?VARIANT.light:Qe,Ue=reactExports.useState(!1),ot=_slicedToArray$3(Ue,2),dt=ot[0],st=ot[1];function pt(Nt){isFocusVisible(Nt)&&st(!0)}function Be(Nt){dt!==!1&&st(!1)}function qe(Nt){if(Nt.currentTarget===Nt.target){var xt=Nt.key;Le&&xt==="Enter"&&Le(Nt),d&&(xt==="Backspace"||xt==="Delete")&&(Ce(Nt),Fe(Nt)),Ke&&Ke(Nt)}}var rt=getOverrides(je.Root,Root$1),He=_slicedToArray$3(rt,2),Ot=He[0],Ct=He[1],tt=getOverrides(je.Action,Action$1),wt=_slicedToArray$3(tt,2),gt=wt[0],$t=wt[1],Mt=getOverrides(je.ActionIcon,ModifiedViewBoxDeleteIcon),qt=_slicedToArray$3(Mt,2),cn=qt[0],en=qt[1],Wt=getOverrides(je.StartEnhancerContainer,StartEnhancerContainer),dn=_slicedToArray$3(Wt,2),Yt=dn[0],zt=dn[1],nn=getOverrides(je.Text,Text),Ut=_slicedToArray$3(nn,2),Zt=Ut[0],fn=Ut[1],On=typeof Le=="function",tn=E?{}:{onClick:Le,onKeyDown:qe},bn=E?{}:{onClick:function(xt){xt.stopPropagation(),Ce(xt)}},Gt={$clickable:On,$closeable:d,$color:p,$disabled:E,$isFocused:H,$isHovered:be,$kind:we,$variant:Ye,$isFocusVisible:dt,$size:y},ut=Xe||getTextFromChildren(t),bt=(On||d)&&!E,kt=(e={},_defineProperty$1(e,SIZE.small,12),_defineProperty$1(e,SIZE.medium,16),_defineProperty$1(e,SIZE.large,20),e)[y],Lt=We;return reactExports.createElement(Ot,_extends$4({ref:i,"data-baseweb":"tag","aria-label":bt&&d?"".concat(typeof t=="string"?"".concat(t,", "):"","close by backspace"):null,"aria-disabled":E?!0:null,role:bt?"button":null,tabIndex:bt?0:null},tn,Gt,Ct,{onFocus:forkFocus(Ct,pt),onBlur:forkBlur(Ct,Be)}),Lt&&Lt!==0&&reactExports.createElement(Yt,zt,reactExports.createElement(Lt,null)),reactExports.createElement(Zt,_extends$4({title:ut},fn),t),d?reactExports.createElement(gt,_extends$4({"aria-hidden":!0,role:"presentation"},bn,Gt,$t),reactExports.createElement(cn,_extends$4({size:kt},en))):null)});Tag.displayName="Tag";var _excluded$6=["overrides","removeValue"];function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$3.apply(this,arguments)}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 de
131structure non-iterable instance. 132In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$2(n,i)}}function _arrayLikeToArray$2(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$2(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$2(n){if(Array.isArray(n))return n}function _objectWithoutProperties$3(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$2(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$2(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function MultiValue(n){var i=n.overrides,e=i===void 0?{}:i,t=n.removeValue,o=_objectWithoutProperties$3(n,_excluded$6),d=getOverrides(e.Tag||e.MultiValue,Tag),p=_slicedToArray$2(d,2),h=p[0],y=p[1];return reactExports.createElement(h,_extends$3({variant:VARIANT.solid,overrides:{Root:{style:function(E){var M=E.$theme.sizing;return{marginRight:M.scale0,marginBottom:M.scale0,marginLeft:M.scale0,marginTop:M.scale0}}}},onActionClick:t},o,y),n.children)}var _excluded$5=["overrides"];function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$2.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. 133In 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 e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$1(n,i)}}function _arrayLikeToArray$1(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$1(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$1(n){if(Array.isArray(n))return n}function _objectWithoutProperties$2(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$1(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$1(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function Value(n){var i=n.overrides,e=i===void 0?{}:i,t=_objectWithoutProperties$2(n,_excluded$5),o=getOverrides(e.SingleValue,StyledSingleValue),d=_slicedToArray$1(o,2),p=d[0],h=d[1];return reactExports.createElement(p,_extends$2({},t,h),n.children)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$1.apply(this,arguments)}function Select(n){return reactExports.createElement(Select$1,_extends$1({},n,{valueComponent:n.multi?MultiValue:Value}))}function _assertThisInitialized(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}var safeIsNaN=Number.isNaN||function n(i){return typeof i=="number"&&i!==i};function isEqual(n,i){return!!(n===i||safeIsNaN(n)&&safeIsNaN(i))}function areInputsEqual(n,i){if(n.length!==i.length)return!1;for(var e=0;e<n.length;e++)if(!isEqual(n[e],i[e]))return!1;return!0}function memoizeOne(n,i){i===void 0&&(i=areInputsEqual);var e,t=[],o,d=!1;function p(){for(var h=[],y=0;y<arguments.length;y++)h[y]=arguments[y];return d&&e===this&&i(h,t)||(o=n.apply(this,h),d=!0,e=this,t=h),o}return p}var hasNativePerformanceNow=typeof performance=="object"&&typeof performance.now=="function",now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(n){cancelAnimationFrame(n.id)}function requestTimeout(n,i){var e=now();function t(){now()-e>=i?n.call(null):o.id=requestAnimationFrame(t)}var o={id:requestAnimationFrame(t)};return o}var size=-1;function getScrollbarSize(n){if(n===void 0&&(n=!1),size===-1||n){var i=document.createElement("div"),e=i.style;e.width="50px",e.height="50px",e.overflow="scroll",document.body.appendChild(i),size=i.offsetWidth-i.clientWidth,document.body.removeChild(i)}return size}var cachedRTLResult=null;function getRTLOffsetType(n){if(n===void 0&&(n=!1),cachedRTLResult===null||n){var i=document.createElement("div"),e=i.style;e.width="50px",e.height="50px",e.overflow="scroll",e.direction="rtl";var t=document.createElement("div"),o=t.style;return o.width="100px",o.height="100px",i.appendChild(t),document.body.appendChild(i),i.scrollLeft>0?cachedRTLResult="positive-descending":(i.scrollLeft=1,i.scrollLeft===0?cachedRTLResult="negative":cachedRTLResult="positive-ascending"),document.body.removeChild(i),cachedRTLResult}return cachedRTLResult}var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function n(i,e){return i};function createListComponent(n){var i,e=n.getItemOffset,t=n.getEstimatedTotalSize,o=n.getItemSize,d=n.getOffsetForIndexAndAlignment,p=n.get
vendor: 7,217 bytes, line 133
133StartIndexForOffset,h=n.getStopIndexForStartIndex,y=n.initInstanceProps,$=n.shouldResetStyleCacheOnItemSizeChange,E=n.validateProps;return i=(function(M){_inheritsLoose(H,M);function H(be){var ye;return ye=M.call(this,be)||this,ye._instanceProps=y(ye.props,_assertThisInitialized(ye)),ye._outerRef=void 0,ye._resetIsScrollingTimeoutId=null,ye.state={instance:_assertThisInitialized(ye),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof ye.props.initialScrollOffset=="number"?ye.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},ye._callOnItemsRendered=void 0,ye._callOnItemsRendered=memoizeOne(function(we,xe,Ce,Ne){return ye.props.onItemsRendered({overscanStartIndex:we,overscanStopIndex:xe,visibleStartIndex:Ce,visibleStopIndex:Ne})}),ye._callOnScroll=void 0,ye._callOnScroll=memoizeOne(function(we,xe,Ce){return ye.props.onScroll({scrollDirection:we,scrollOffset:xe,scrollUpdateWasRequested:Ce})}),ye._getItemStyle=void 0,ye._getItemStyle=function(we){var xe=ye.props,Ce=xe.direction,Ne=xe.itemSize,Fe=xe.layout,Me=ye._getItemStyleCache($&&Ne,$&&Fe,$&&Ce),Le;if(Me.hasOwnProperty(we))Le=Me[we];else{var ze=e(ye.props,we,ye._instanceProps),Ke=o(ye.props,we,ye._instanceProps),Ve=Ce==="horizontal"||Fe==="horizontal",je=Ce==="rtl",We=Ve?ze:0;Me[we]=Le={position:"absolute",left:je?void 0:We,right:je?We:void 0,top:Ve?0:ze,height:Ve?"100%":Ke,width:Ve?Ke:"100%"}}return Le},ye._getItemStyleCache=void 0,ye._getItemStyleCache=memoizeOne(function(we,xe,Ce){return{}}),ye._onScrollHorizontal=function(we){var xe=we.currentTarget,Ce=xe.clientWidth,Ne=xe.scrollLeft,Fe=xe.scrollWidth;ye.setState(function(Me){if(Me.scrollOffset===Ne)return null;var Le=ye.props.direction,ze=Ne;if(Le==="rtl")switch(getRTLOffsetType()){case"negative":ze=-Ne;break;case"positive-descending":ze=Fe-Ce-Ne;break}return ze=Math.max(0,Math.min(ze,Fe-Ce)),{isScrolling:!0,scrollDirection:Me.scrollOffset<ze?"forward":"backward",scrollOffset:ze,scrollUpdateWasRequested:!1}},ye._resetIsScrollingDebounced)},ye._onScrollVertical=function(we){var xe=we.currentTarget,Ce=xe.clientHeight,Ne=xe.scrollHeight,Fe=xe.scrollTop;ye.setState(function(Me){if(Me.scrollOffset===Fe)return null;var Le=Math.max(0,Math.min(Fe,Ne-Ce));return{isScrolling:!0,scrollDirection:Me.scrollOffset<Le?"forward":"backward",scrollOffset:Le,scrollUpdateWasRequested:!1}},ye._resetIsScrollingDebounced)},ye._outerRefSetter=function(we){var xe=ye.props.outerRef;ye._outerRef=we,typeof xe=="function"?xe(we):xe!=null&&typeof xe=="object"&&xe.hasOwnProperty("current")&&(xe.current=we)},ye._resetIsScrollingDebounced=function(){ye._resetIsScrollingTimeoutId!==null&&cancelTimeout(ye._resetIsScrollingTimeoutId),ye._resetIsScrollingTimeoutId=requestTimeout(ye._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},ye._resetIsScrolling=function(){ye._resetIsScrollingTimeoutId=null,ye.setState({isScrolling:!1},function(){ye._getItemStyleCache(-1,null)})},ye}H.getDerivedStateFromProps=function(ye,we){return validateSharedProps$1(ye,we),E(ye),null};var Z=H.prototype;return Z.scrollTo=function(ye){ye=Math.max(0,ye),this.setState(function(we){return we.scrollOffset===ye?null:{scrollDirection:we.scrollOffset<ye?"forward":"backward",scrollOffset:ye,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},Z.scrollToItem=function(ye,we){we===void 0&&(we="auto");var xe=this.props,Ce=xe.itemCount,Ne=xe.layout,Fe=this.state.scrollOffset;ye=Math.max(0,Math.min(ye,Ce-1));var Me=0;if(this._outerRef){var Le=this._outerRef;Ne==="vertical"?Me=Le.scrollWidth>Le.clientWidth?getScrollbarSize():0:Me=Le.scrollHeight>Le.clientHeight?getScrollbarSize():0}this.scrollTo(d(this.props,ye,we,Fe,this._instanceProps,Me))},Z.componentDidMount=function(){var ye=this.props,we=ye.direction,xe=ye.initialScrollOffset,Ce=ye.layout;if(typeof xe=="number"&&this._outerRef!=null){var Ne=this._outerRef;we==="horizontal"||Ce==="horizontal"?Ne.scrollLeft=xe:Ne.scrollTop=xe}this._callPropsCallbacks()},Z.componentDidUpdate=function(){var ye=this.props,we=ye.direction,xe=ye.layout,Ce=this.state,Ne=Ce.scrollOffset,Fe=Ce.scrollUpdateWasRequested;if(Fe&&this._outerRef!=null){var Me=this._outerRef;if(we==="horizontal"||xe==="horizontal")if(we==="rtl")switch(getRTLOffsetType()){case"negative":Me.scrollLeft=-Ne;break;case"positive-ascending":Me.scrollLeft=Ne;break;default:var Le=Me.clientWidth,ze=Me.scrollWidth;Me.scrollLeft=ze-Le-Ne;break}else Me.scrollLeft=Ne;else Me.scrollTop=Ne}this._callPropsCallbacks()},Z.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&cancelTimeout(this._resetIsScrollingTimeoutId)},Z.render=function(){var ye=this.props,we=ye.children,xe=ye.className,Ce=ye.direction,Ne=ye.height,Fe=ye.innerRef,Me=ye.innerElementType,Le=ye.innerTagName,ze=ye.itemCount,Ke=ye.itemData,Ve=ye.itemKey,je=Ve===void 0?defaultItemKey$1:Ve,We=ye.layout,Xe=ye.outerElementType,Qe=ye.outerTagName,Ye=ye.style,Ue=ye.useIsScrolling,ot=ye.width,dt=this.state.isScrolling,st=Ce==="horizontal"||We==="horizontal",pt=st?this._onScrollHorizontal:this._onScrollVertical,Be=this._getRangeToRender(),qe=Be[0],rt=Be[1],He=[];if(ze>0)for(var Ot=qe;Ot<=rt;Ot++)He.push(reactExports.createElement(we,{data:Ke,key:je(Ot,Ke),index:Ot,isScrolling:Ue?dt:void 0,style:this._getItemStyle(Ot)}));var Ct=t(this.props,this._instanceProps);return reactExports.createElement(Xe||Qe||"div",{className:xe,onScroll:pt,ref:this._outerRefSetter,style:_extends$A({position:"relative",height:Ne,width:ot,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Ce},Ye)},reactExports.createElement(Me||Le||"div",{children:He,ref:Fe,style:{height:st?"100%":Ct,pointerEvents:dt?"none":void 0,width:st?Ct:"100%"}}))},Z._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var ye=this.props.itemCount;if(ye>0){var we=this._getRangeToRender(),xe=we[0],Ce=we[1],Ne=we[2],Fe=we[3];this._callOnItemsRendered(xe,Ce,Ne,Fe)}}if(typeof this.props.onScroll=="function"){var Me=this.state,Le=Me.scrollDirection,ze=Me.scrollOffset,Ke=Me.scrollUpdateWasRequested;this._callOnScroll(Le,ze,Ke)}},Z._getRangeToRender=function(){var ye=this.props,we=ye.itemCount,xe=ye.overscanCount,Ce=this.state,Ne=Ce.isScrolling,Fe=Ce.scrollDirection,Me=Ce.scrollOffset;if(we===0)return[0,0,0,0];var Le=p(this.props,Me,this._instanceProps),ze=h(this.props,Le,Me,this._instanceProps),Ke=!Ne||Fe==="backward"?Math.max(1,xe):1,Ve=!Ne||Fe==="forward"?Math.max(1,xe):1;return[Math.max(0,Le-Ke),Math.max(0,Math.min(we-1,ze+Ve)),Le,ze]},H})(reactExports.PureComponent),i.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},i}var validateSharedProps$1=function n(i,e){i.children,i.direction,i.height,i.layout,i.innerTagName,i.outerTagName,i.width,e.instance},FixedSizeList=createListComponent({getItemOffset:function n(i,e){var t=i.itemSize;return e*t},getItemSize:function n(i,e){var t=i.itemSize;return t},getEstimatedTotalSize:function n(i){var e=i.itemCount,t=i.itemSize;return t*e},getOffsetForIndexAndAlignment:function n(i,e,t,o,d,p){var h=i.direction,y=i.height,$=i.itemCount,E=i.itemSize,M=i.layout,H=i.width,Z=h==="horizontal"||M==="horizontal",be=Z?H:y,ye=Math.max(0,$*E-be),we=Math.min(ye,e*E),xe=Math.max(0,e*E-be+E+p);
133switch(t==="smart"&&(o>=xe-be&&o<=we+be?t="auto":t="center"),t){case"start":return we;case"end":return xe;case"center":{var Ce=Math.round(xe+(we-xe)/2);return Ce<Math.ceil(be/2)?0:Ce>ye+Math.floor(be/2)?ye:Ce}case"auto":default:return o>=xe&&o<=we?o:o<xe?xe:we}},getStartIndexForOffset:function n(i,e){var t=i.itemCount,o=i.itemSize;return Math.max(0,Math.min(t-1,Math.floor(e/o)))},getStopIndexForStartIndex:function n(i,e,t){var o=i.direction,d=i.height,p=i.itemCount,h=i.itemSize,y=i.layout,$=i.width,E=o==="horizontal"||y==="horizontal",M=e*h,H=E?$:d,Z=Math.ceil((H+t-M)/h);return Math.max(0,Math.min(p-1,e+Z-1))},initInstanceProps:function n(i){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function n(i){i.itemSize}});const ThemedStyledDropdownListItem=styled(StyledDropdownListItem,{shouldForwardProp:isPropValid,target:"e173f7ii0"})(({theme:n,$isHighlighted:i})=>({display:"flex",alignItems:"center",paddingTop:n.spacing.none,paddingBottom:n.spacing.none,paddingLeft:n.spacing.lg,paddingRight:n.spacing.lg,background:i?n.colors.darkenedBgMix15:void 0,fontWeight:n.fontWeights.normal,[`@media (max-width: ${n.breakpoints.md})`]:{minHeight:n.sizes.dropdownItemHeight,height:"auto !important"},"&:hover, &:active, &:focus-visible":{background:n.colors.darkenedBgMix15}}));function FixedSizeListItem(n){const{data:i,index:e,style:t}=n,{item:o,overrides:d,...p}=i[e].props,h=o.isCreatable?`Add: ${o.label}`:o.label;return jsx$1(ThemedStyledDropdownListItem,{style:t,...p,children:jsx$1(OverflowTooltip,{content:h,placement:Placement.AUTO,children:h})},o.value)}const VirtualDropdown=reactExports.forwardRef((n,i)=>{const e=useEmotionTheme(),t=reactExports.Children.toArray(n.children);if(!t[0]?.props.item){const d=t[0]?t[0].props:{};return jsx$1(StyledList,{$style:{height:e.sizes.emptyDropdownHeight,paddingBottom:e.spacing.none,paddingTop:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"none"},ref:i,"data-testid":"stSelectboxVirtualDropdownEmpty",children:jsx$1(StyledEmptyState,{$style:{paddingBottom:e.spacing.none,paddingTop:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,color:e.colors.fadedText60},...d})})}const o=Math.min(convertRemToPx(e.sizes.maxDropdownHeight),t.length*convertRemToPx(e.sizes.dropdownItemHeight));return jsx$1(StyledList,{ref:i,$style:{paddingTop:0,paddingBottom:0,boxShadow:"none"},"data-testid":"stSelectboxVirtualDropdown",children:jsx$1(FixedSizeList,{width:"100%",height:o,itemCount:t.length,itemData:t,itemKey:(d,p)=>{const{id:h,value:y}=p[d].props.item;return h??y},itemSize:convertRemToPx(e.sizes.dropdownItemHeight),children:FixedSizeListItem})})});VirtualDropdown.displayName="VirtualDropdown";const SCORE_MIN=-1/0,SCORE_MAX=1/0,SCORE_GAP_LEADING=-.005,SCORE_GAP_TRAILING=-.005,SCORE_GAP_INNER=-.01,SCORE_MATCH_CONSECUTIVE=1,SCORE_MATCH_SLASH=.9,SCORE_MATCH_WORD=.8,SCORE_MATCH_CAPITAL=.7,SCORE_MATCH_DOT=.6;function islower(n){return n.toLowerCase()===n}function isupper(n){return n.toUpperCase()===n}function precomputeBonus(n){const i=n.length,e=new Array(i);let t="/";for(let o=0;o<i;o++){const d=n[o];t==="/"?e[o]=SCORE_MATCH_SLASH:t==="-"||t==="_"||t===" "?e[o]=SCORE_MATCH_WORD:t==="."?e[o]=SCORE_MATCH_DOT:islower(t)&&isupper(d)?e[o]=SCORE_MATCH_CAPITAL:e[o]=0,t=d}return e}function compute(n,i,e,t,o=!1){const d=n.length,p=i.length,h=o?n:n.toLowerCase(),y=o?i:i.toLowerCase(),$=precomputeBonus(i);for(let E=0;E<d;E++){e[E]=new Array(p),t[E]=new Array(p);let M=SCORE_MIN;const H=E===d-1?SCORE_GAP_TRAILING:SCORE_GAP_INNER;for(let Z=0;Z<p;Z++)if(h[E]===y[Z]){let be=SCORE_MIN;E?Z&&(be=Math.max(t[E-1][Z-1]+$[Z],e[E-1][Z-1]+SCORE_MATCH_CONSECUTIVE)):be=Z*SCORE_GAP_LEADING+$[Z],e[E][Z]=be,t[
133E][Z]=M=Math.max(be,M+H)}else e[E][Z]=SCORE_MIN,t[E][Z]=M=M+H}}function score(n,i,e=!1){const t=n.length,o=i.length;if(!t||!o)return SCORE_MIN;if(n===i||!e&&o===t)return SCORE_MAX;if(o>1024)return SCORE_MIN;const d=new Array(t),p=new Array(t);return compute(n,i,d,p,e),p[t-1][o-1]}function hasMatch(n,i){n=n.toLowerCase(),i=i.toLowerCase();const e=n.length;for(let t=0,o=0;t<e;t+=1)if(o=i.indexOf(n[t],o)+1,o===0)return!1;return!0}function fuzzyFilterSelectOptions(n,i){if(!i)return n;const e=n.filter(t=>hasMatch(i,t.label));return sortBy(e,t=>-score(i,t.label))}var uaParser$1={exports:{}},uaParser=uaParser$1.exports,hasRequiredUaParser;function requireUaParser(){return hasRequiredUaParser||(hasRequiredUaParser=1,(function(n,i){(function(e,t){var o="1.0.41",d="",p="?",h="function",y="undefined",$="object",E="string",M="major",H="model",Z="name",be="type",ye="vendor",we="version",xe="architecture",Ce="console",Ne="mobile",Fe="tablet",Me="smarttv",Le="wearable",ze="embedded",Ke=500,Ve="Amazon",je="Apple",We="ASUS",Xe="BlackBerry",Qe="Browser",Ye="Chrome",Ue="Edge",ot="Firefox",dt="Google",st="Honor",pt="Huawei",Be="Lenovo",qe="LG",rt="Microsoft",He="Motorola",Ot="Nvidia",Ct="OnePlus",tt="Opera",wt="OPPO",gt="Samsung",$t="Sharp",Mt="Sony",qt="Xiaomi",cn="Zebra",en="Facebook",Wt="Chromium OS",dn="Mac OS",Yt=" Browser",zt=function(xt,Vt){var Tt={};for(var it in xt)Vt[it]&&Vt[it].length%2===0?Tt[it]=Vt[it].concat(xt[it]):Tt[it]=xt[it];return Tt},nn=function(xt){for(var Vt={},Tt=0;Tt<xt.length;Tt++)Vt[xt[Tt].toUpperCase()]=xt[Tt];return Vt},Ut=function(xt,Vt){return typeof xt===E?Zt(Vt).indexOf(Zt(xt))!==-1:!1},Zt=function(xt){return xt.toLowerCase()},fn=function(xt){return typeof xt===E?xt.replace(/[^\d\.]/g,d).split(".")[0]:t},On=function(xt,Vt){if(typeof xt===E)return xt=xt.replace(/^\s\s*/,d),typeof Vt===y?xt:xt.substring(0,Ke)},tn=function(xt,Vt){for(var Tt=0,it,lt,ct,ht,ft,Rt;Tt<Vt.length&&!ft;){var Jt=Vt[Tt],an=Vt[Tt+1];for(it=lt=0;it<Jt.length&&!ft&&Jt[it];)if(ft=Jt[it++].exec(xt),ft)for(ct=0;ct<an.length;ct++)Rt=ft[++lt],ht=an[ct],typeof ht===$&&ht.length>0?ht.length===2?typeof ht[1]==h?this[ht[0]]=ht[1].call(this,Rt):this[ht[0]]=ht[1]:ht.length===3?typeof ht[1]===h&&!(ht[1].exec&&ht[1].test)?this[ht[0]]=Rt?ht[1].call(this,Rt,ht[2]):t:this[ht[0]]=Rt?Rt.replace(ht[1],ht[2]):t:ht.length===4&&(this[ht[0]]=Rt?ht[3].call(this,Rt.replace(ht[1],ht[2])):t):this[ht]=Rt||t;Tt+=2}},bn=function(xt,Vt){for(var Tt in Vt)if(typeof Vt[Tt]===$&&Vt[Tt].length>0){for(var it=0;
vendor: 18,746 bytes, line 133
133it<Vt[Tt].length;it++)if(Ut(Vt[Tt][it],xt))return Tt===p?t:Tt}else if(Ut(Vt[Tt],xt))return Tt===p?t:Tt;return Vt.hasOwnProperty("*")?Vt["*"]:xt},Gt={"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"},bt={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,tt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[we,[Z,tt+" GX"]],[/\bopr\/([\w\.]+)/i],[we,[Z,tt]],[/\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"+Qe]],[/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 "+Qe]],[/(avast|avg)\/([\w\.]+)/i],[[Z,/(.+)/,"$1 Secure "+Qe],we],[/\bfocus\/([\w\.]+)/i],[we,[Z,ot+" Focus"]],[/\bopt\/([\w\.]+)/i],[we,[Z,tt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[we,[Z,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[we,[Z,"Dolphin"]],[/coast\/([\w\.]+)/i],[we,[Z,tt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[we,[Z,"MIUI"+Yt]],[/fxios\/([\w\.-]+)/i],[we,[Z,ot]],[/\bqihoobrowser\/?([\w\.]*)/i],[we,[Z,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Z,/(.+)/,"$1Browser"],we],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Z,/(.+)/,"$1"+Yt],we],[/samsungbrowser\/([\w\.]+)/i],[we,[Z,gt+" 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,en],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(?:.+app_?version\/|_)([\w\.]+)/i],[we,[Z,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[we,[Z,Ye+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Z,Ye+" WebView"],we],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[we,[Z,"Android "+Qe]],[/(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,bn,Gt]],[/(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,ot+" 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,Zt]],[/ 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,Zt]]],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],[H,[ye,gt],[be,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],[H,[ye,gt],[be,Ne]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[H,[ye,je],[be,Ne]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[H,[ye,je],[be,Fe]],[/(macintosh);/i],[H,[ye,je]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[H,[ye,$t],[be,Ne]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[H,[ye,st],[be,Fe]],[/honor([-\w ]+)[;\)]/i],[H,[ye,st],[be,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],[H,[ye,pt],[be,Fe]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[H,[ye,pt],[be,Ne]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[H,/_/g," "],[ye,qt],[be,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],[[H,/_/g," "],[ye,qt],[be,Ne]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[H,[ye,wt],[be,Ne]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[H,[ye,bn,{OnePlus:["304","403","203"],"*":wt}],[be,Fe]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[H,[ye,"Vivo"],[be,Ne]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[H,[ye,"Realme"],[be,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],[H,[ye,He],[be,Ne]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[H,[ye,He],[be,Fe]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[H,[ye,qe],[be,Fe]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[H,[ye,qe],[be,Ne]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?: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],[H,[ye,Be],[be,Fe]],[/(nokia) (t[12][01])/i],[ye,H,[be,Fe]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[H,/_/g," "],[be,Ne],[ye,"Nokia"]],[/(pixel (c|tablet))\b/i],[H,[ye,dt],[be,Fe]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[H,[ye,dt],[be,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],[H,[ye,Mt],[be,Ne]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[H,"Xperia Tablet"],[ye,Mt],[be,Fe]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[H,[ye,Ct],[be,Ne]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[H,[ye,Ve],[be,Fe]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[H,/(.+)/g,"Fire Phone $1"],[ye,Ve],[be,Ne]],[/(playbook);[-\w\),; ]+(rim)/i],[H,ye,[be,Fe]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[H,[ye,Xe],[be,Ne]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[H,[ye,We],[be,Fe]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[H,[ye,We],[be,Ne]],[/(nexus 9)/i],[H,[ye,"HTC"],[be,Fe]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ye,[H,/_/g," "],[be,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],[H,[ye,"TCL"],[be,Fe]],[/(itel) ((\w+))/i],[[ye,Zt],H,[be,bn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[H,[ye,"Acer"],[be,Fe]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[H,[ye,"Meizu"],[be,Ne]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[H,[ye,"Ulefone"],[be,Ne]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[H,[ye,"Energizer"],[be,Ne]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[H,[ye,"Cat"],[be,Ne]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[H,[ye,"Smartfren"],[be,Ne]],[/droid.+; (a(?:015|06[35]|142p?))/i],[H,[ye,"Nothing"],[be,Ne]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[H,[ye,"Archos"],[be,Fe]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[H,[ye,"Archos"],[be,Ne]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[ye,H,[be,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],[ye,H,[be,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],[ye,H,[be,Fe]],[/(surface duo)/i],[H,[ye,rt],[be,Fe]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[H,[ye,"Fairphone"],[be,Ne]],[/(u304aa)/i],[H,[ye,"AT&T"],[be,Ne]],[/\bsie-(\w*)/i],[H,[ye,"Siemens"],[be,Ne]],[/\b(rct\w+) b/i],[H,[ye,"RCA"],[be,Fe]],[/\b(venue[\d ]{2,7}) b/i],[H,[ye,"Dell"],[be,Fe]],[/\b(q(?:mv|ta)\w+) b/i],[H,[ye,"Verizon"],[be,Fe]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[H,[ye,"Barnes & Noble"],[be,Fe]],[/\b(tm\d{3}\w+) b/i],[H,[ye,"NuVision"],[be,Fe]],[/\b(k88) b/i],[H,[ye,"ZTE"],[be,Fe]],[/\b(nx\d{3}j) b/i],[H,[ye,"ZTE"],[be,Ne]],[/\b(gen\d{3}) b.+49h/i],[H,[ye,"Swiss"],[be,Ne]],[/\b(zur\d{3}) b/i],[H,[ye,"Swiss"],[be,Fe]],[/\b((zeki)?tb.*\b) b/i],[H,[ye,"Zeki"],[be,Fe]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[ye,"Dragon Touch"],H,[be,Fe]],[/\b(ns-?\w{0,9}) b/i],[H,[ye,"Insignia"],[be,Fe]],[/\b((nxa|next)-?\w{0,9}) b/i],[H,[ye,"NextBook"],[be,Fe]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[ye,"Voice"],H,[be,Ne]],[/\b(lvtel\-)?(v1[12]) b/i],[[ye,"LvTel"],H,[be,Ne]],[/\b(ph-1) /i],[H,[ye,"Essential"],[be,Ne]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[H,[ye,"Envizen"],[be,Fe]],[/\b(trio[-\w\. ]+) b/i],[H,[ye,"MachSpeed"],[be,Fe]],[/\btu_(1491) b/i],[H,[ye,"Rotor"],[be,Fe]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[H,[ye,Ot],[be,Fe]],[/(sprint) (\w+)/i],[ye,H,[be,Ne]],[/(kin\.[onetw]{3})/i],[[H,/\./g," "],[ye,rt],[be,Ne]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[H,[ye,cn],[be,Fe]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[H,[ye,cn],[be,Ne]],[/smart-tv.+(samsung)/i],[ye,[be,Me]],[/hbbtv.+maple;(\d+)/i],[[H,/^/,"SmartTV"],[ye,gt],[be,Me]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ye,qe],[be,Me]],[/(apple) ?tv/i],[ye,[H,je+" TV"],[be,Me]],[/crkey/i],[[H,Ye+"cast"],[ye,dt],[be,Me]],[/droid.+aft(\w+)( bui|\))/i],[H,[ye,Ve],[be,Me]],[/(shield \w+ tv)/i],[H,[ye,Ot],[be,Me]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[H,[ye,$t],[be,Me]],[/(bravia[\w ]+)( bui|\))/i],[H,[ye,Mt],[be,Me]],[/(mi(tv|box)-?\w+) bui/i],[H,[ye,qt],[be,Me]],[/Hbbtv.*(technisat) (.*);/i],[ye,H,[be,Me]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ye,On],[H,On],[be,Me]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[H,[be,Me]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[be,Me]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[ye,H,[be,Ce]],[/droid.+; (shield)( bui|\))/i],[H,[ye,Ot],[be,Ce]],[/(playstation \w+)/i],[H,[ye,Mt],[be,Ce]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[H,[ye,rt],[be,Ce]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[H,[ye,gt],[be,Le]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ye,H,[be,Le]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[H,[ye,wt],[be,Le]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[H,[ye,je],[be,Le]],[/(opwwe\d{3})/i],[H,[ye,Ct],[be,Le]],[/(moto 360)/i],[H,[ye,He],[be,Le]],[/(smartwatch 3)/i],[H,[ye,Mt],[be,Le]],[/(g watch r)/i],[H,[ye,qe],[be,Le]],[/droid.+; (wt63?0{2,3})\)/i],[H,[ye,cn],[be,Le]],[/droid.+; (glass) \d/i],[H,[ye,dt],[be,Le]],[/(pico) (4|neo3(?: link|pro)?)/i],[ye,H,[be,Le]],[/; (quest( \d| pro)?)/i],[H,[ye,en],[be,Le]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ye,[be,ze]],[/(aeobc)\b/i],[H,[ye,Ve],[be,ze]],[/(homepod).+mac os/i],[H,[ye,je],[be,ze]],[/windows iot/i],[[be,ze]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[H,[be,Ne]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[H,[be,Fe]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[be,Fe]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[be,Ne]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[H,[ye,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[we,[Z,Ue+"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,bn,ut]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[we,bn,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,dn],[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,Xe]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[we,[Z,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[we,[Z,ot+" 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,Ye+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Z,Wt],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]]},kt=function(xt,Vt){if(typeof xt===$&&(Vt=xt,xt=t),!(this instanceof kt))return new kt(xt,Vt).getResult();var Tt=typeof e!==y&&e.navigator?e.navigator:t,it=xt||(Tt&&Tt.userAgent?Tt.userAgent:d),lt=Tt&&Tt.userAgentData?Tt.userAgentData:t,ct=Vt?zt(bt,Vt):bt,ht=Tt&&Tt.userAgent==it;return this.getBrowser=function(){var ft={};return ft[Z]=t,ft[we]=t,tn.call(ft,it,ct.browser),ft[M]=fn(ft[we]),ht&&Tt&&Tt.brave&&typeof Tt.brave.isBrave==h&&(ft[Z]="Brave"),ft},this.getCPU=function(){var ft={};return ft[xe]=t,tn.call(ft,it,ct.cpu),ft},this.getDevice=function(){var ft={};return ft[ye]=t,ft[H]=t,ft[be]=t,tn.call(ft,it,ct.device),ht&&!ft[be]&<&<.mobile&&(ft[be]=Ne),ht&&ft[H]=="Macintosh"&&Tt&&typeof Tt.standalone!==y&&Tt.maxTouchPoints&&Tt.maxTouchPoints>2&&(ft[H]="iPad",ft[be]=Fe),ft},this.getEngine=function(){var ft={};return ft[Z]=t,ft[we]=t,tn.call(ft,it,ct.engine),ft},this.getOS=function(){var ft={};return ft[Z]=t,ft[we]=t,tn.call(ft,it,ct.os),ht&&!ft[Z]&<&<.platform&<.platform!="Unknown"&&(ft[Z]=lt.platform.replace(/chrome os/i,Wt).replace(/macos/i,dn)),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 it},this.setUA=function(ft){return it=typeof ft===E&&ft.length>Ke?On(ft,Ke):ft,this},this.setUA(it),this};kt.VERSION=o,kt.BROWSER=nn([Z,we,M]),kt.CPU=nn([xe]),kt.DEVICE=nn([H,ye,be,Ce,Ne,Me,Fe,Le,ze]),kt.ENGINE=kt.OS=nn([Z,we]),n.exports&&(i=n.exports=kt),i.UAParser=kt;var Lt=typeof e!==y&&(e.jQuery||e.Zepto);if(Lt&&!Lt.ua){var Nt=new kt;Lt.ua=Nt.getResult(),Lt.ua.get=function(){return Nt.getUA()},Lt.ua.set=function(xt){Nt.setUA(xt);var Vt=Nt.getResult();for(var Tt in Vt)Lt.ua[Tt]=Vt[Tt]}}})(typeof window=="object"?window:uaParser)}
133)(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"}function useSelectCommon(n){const{options:i,isMulti:e,acceptNewOptions:t,placeholderInput:o}=n,d=reactExports.useMemo(()=>i.map((Z,be)=>({label:Z,value:Z,id:`${Z}_${be}`})),[i]),{placeholder:p,shouldDisable:h}=reactExports.useMemo(()=>getSelectPlaceholder(o,i,t,e),[t,e,i,o]),y=i.length>10,$=isMobile()&&!y&&!t?"readonly":null,E=reactExports.useMemo(()=>Z=>isNullOrUndefined(Z)?[]:[{label:Z,value:Z}],[]),M=reactExports.useMemo(()=>Z=>Z.map(be=>({label:be,value:be})),[]),H=reactExports.useMemo(()=>Z=>(be,ye)=>{const we=Array.isArray(Z)?be.filter(xe=>!Z.includes(xe.value)):be;return fuzzyFilterSelectOptions(we,ye)},[]);return{selectOptions:d,placeholder:p,disabled:h,inputReadOnly:$,valueToUiSingle:E,valuesToUiMulti:M,createFilterOptions:H}}const Selectbox=({disabled:n,value:i,onChange:e,options:t,label:o,labelVisibility:d,help:p,placeholder:h,clearable:y,acceptNewOptions:$})=>{const E=useEmotionTheme(),M=reactExports.useContext(IsSidebarContext),[H,Z]=reactExports.useState(i),be=reactExports.useRef(H);useExecuteWhenChanged(()=>{Z(i),be.current=null},[i]);const ye=reactExports.useCallback(We=>{if(We.type==="remove"){be.current=We.option?.value,Z(null);return}if(be.current=null,We.type==="clear"){Z(null),e(null);return}const[Xe]=We.value;Z(Xe.value),e(Xe.value)},[e]),we=reactExports.useCallback(()=>{be.current!==null&&Z(be.current)},[]),xe=t,{placeholder:Ce,disabled:Ne,selectOptions:Fe,inputReadOnly:Me,valueToUiSingle:Le,createFilterOptions:ze}=useSelectCommon({options:xe,isMulti:!1,acceptNewOptions:$,placeholderInput:h}),Ke=n||Ne,Ve=reactExports.useMemo(()=>ze(),[ze]),je=Le(H);return jsxs("div",{className:"stSelectbox","data-testid":"stSelectbox",children:[jsx$1(WidgetLabel,{label:o,labelVisibility:d,disabled:Ke,children:p&&jsx$1(WidgetLabelHelpIcon,{content:p,label:o})}),jsx$1(Select,{creatable:$,disabled:Ke,labelKey:"label","aria-label":o||"",onChange:ye,onBlur:we,options:Fe,filterOptions:Ve,clearable:y||!1,escapeClearsValue:y||!1,value:je,valueKey:"value",placeholder:Ce,ignoreCase:!1,overrides:{Root:{style:()=>({lineHeight:E.lineHeights.inputWidget,fontWeight:E.fontWeights.normal})},Dropdown:{component:VirtualDropdown},ClearIcon:{props:{overrides:{Svg:{style:{color:E.colors.grayTextColor,padding:E.spacing.threeXS,height:E.sizes.clearIconSize,width:E.sizes.clearIconSize,":hover":{fill:E.colors.bodyText}}}}}},ControlContainer:{style:({$isFocused:We})=>{const Xe=getBorderColor(E.colors,We);return{height:E.sizes.minElementHeight,borderLeftWidth:E.sizes.borderWidth,borderRightWidth:E.sizes.borderWidth,borderTopWidth:E.sizes.borderWidth,borderBottomWidth:E.sizes.borderWidth,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe}}},IconsContainer:{style:()=>({paddingRight:E.spacing.sm})},Placeholder:{style:()=>({color:Ke?E.colors.fadedText40:E.colors.fadedText60})},ValueContainer:{style:()=>({paddingRight:E.spacing.sm,paddingLeft:E.spacing.md,paddingBottom:E.spacing.sm,paddingTop:E.spacing.sm})},Input:{props:{readOnly:Me},style:()=>({lineHeight:E.lineHeights.inputWidget})},Popover:{props:{ignoreBoundary:M,overrides:{Body:{style:()=>({marginTop:E.spacing.px})}}}},SingleValue:{style:()=>({marginLeft:E.spacing.none})},SelectArrow:{component:ChevronDown$1,props:{style:{...Ke&&{cursor:"not-allowed"}},overrides:{Svg:{style:()=>({width:E.iconSizes.xl,height:E.iconSizes.xl})}}}}}})]})},UISelectbox=reactExports.memo(Selectbox);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,e,t,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:e,baseDuration:t,startTime:o,commitTime:d})},Profiler=({id:n,children:i})=>jsx$1(reactExports.Profiler,{id:n,onRender:handleRender,children:i}),WindowDimensionsContext=reactExports.createContext(null);WindowDimensionsContext.displayName="WindowDimensionsContext";const useWindowDimensions=()=>{const n=useEmotionTheme(),[i,e]=reactExports.useState({fullWidth:0,fullHeight:0,innerWidth:0,innerHeight:0}),t=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(()=>{e(t())},[t]);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})},useWindowDimensionsContext=()=>useRequiredContext(WindowDimensionsContext),LOG$e=loglevelExports.getLogger("ComponentRegistry");class ComponentRegistry{constructor(i){this.msgListeners=new Map,this.registerListener=(e,t)=>{this.msgListeners.has(e)&&LOG$e.warn("MessageEventSource registered multiple times!",e),this.msgListeners.set(e,t)},this.deregisterListener=e=>{this.msgListeners.delete(e)||LOG$e.warn("Could not deregister unregistered MessageEventSource!")},this.checkSourceUrlResponse=(e,t)=>this.endpoints.checkSourceUrlResponse(e,"Custom Component",t),this.sendTimeoutError=(e,t)=>
133{this.endpoints.sendClientErrorToHost("Custom Component","Request Timeout","Your app is having trouble loading the component.",e,t)},this.getComponentURL=(e,t)=>this.endpoints.buildComponentURL(e,t),this.getBidiComponentURL=(e,t)=>this.endpoints.buildBidiComponentURL(e,t),this.onMessageEvent=e=>{if(isNullOrUndefined(e.data)||!Object.hasOwn(e.data,"isStreamlitMessage"))return;if(isNullOrUndefined(e.source)){LOG$e.warn("Received component message with no eventSource!",e.data);return}const t=this.msgListeners.get(e.source);if(isNullOrUndefined(t)||typeof t!="function"){LOG$e.warn("Received component message for unregistered ComponentInstance!",e.data);return}const{type:o}=e.data;if(isNullOrUndefined(o)){LOG$e.warn("Received Streamlit message with no type!",e.data);return}t(o,e.data)},this.endpoints=i,window.addEventListener("message",this.onMessageEvent)}}const 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,e){n=n||{};const t=n.random??n.rng?.()??rng();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,unsafeStringify(t)}function v4(n,i,e){return native.randomUUID&&!n?native.randomUUID():_v4(n)}const LOG$d=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,e,t,o,d){return this.offsetPendingRequestCount(i.formId,1),this.endpoints.uploadFileUploaderFile(e,t,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 e=Promise.withResolvers(),t=v4();return this.pendingFileURLsRequests.set(t,e),this.requestFileURLs(t,i),e.promise}onFileURLsResponse(i){const e=i.responseId,t=this.pendingFileURLsRequests.get(e);t?(i.errorMsg?t.reject(i.errorMsg):t.resolve(i.fileUrls||[]),this.pendingFileURLsRequests.delete(e)):LOG$d.warn("fileURLsResponse received for nonexistent request, ignoring.")}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(i,e){if(e===0||!isValidFormId(i))return;const t=this.formsWithPendingRequests.get(i)??0,o=t+e;if(o<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${i}, curCount=${t}, offset=${e})`);const d=this.getFormIdSet();o===0?this.formsWithPendingRequests.delete(i):this.formsWithPendingRequests.set(i,o);const p=this.getFormIdSet();isEqual$1(p,d)||this.pendingFormUploadsChanged(p)}}const 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");i.style.width="100%",i.style.height="100%",n.appendChild(i);const e=n.offsetWidth-i.offsetWidth;return n.remove(),e},useScrollbarGutterSize=()=>{const n=window.devicePixelRatio;return reactExports.useMemo(()=>measureScrollbarGutterSize(),[n])},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:e,useExternalAuthToken:t})=>{t||this.deferredAuthToken.resolve(void 0),e?.length&&(this.allowedOrigins=e,this.openHostCommunication())},this.sendMessageToSameOriginHost=e=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...e},window.location.origin)},this.sendMessageToHost=e=>{window.parent.postMessage({stCommVersion:HOST_COMM_VERSION,...e},"*")},this.receiveHostMessage=e=>{const t=e.data;if(!(t.stCommVersion!==HOST_COMM_VERSION||!this.allowedOrigins.find(o=>isValidOrigin(o,e.origin)))){if(t.type==="CLOSE_MODAL"&&this.props.closeModal(),t.type==="STOP_SCRIPT"&&this.props.stopScript(),t.type==="RERUN_SCRIPT"&&this.props.rerunScript(),t.type==="CLEAR_CACHE"&&this.props.clearCache(),t.type==="REQUEST_PAGE_CHANGE"&&this.props.pageChanged(t.pageScriptHash),t.type==="SEND_APP_HEARTBEAT"&&this.props.sendAppHeartbeat(),t.type==="SET_INPUTS_DISABLED"&&this.props.setInputsDisabled(t.disabled),t.type==="SET_AUTH_TOKEN"&&this.deferredAuthToken.resolve(t.authToken),t.type==="SET_FILE_UPLOAD_CLIENT_CONFIG"){const{prefix:o,headers:d}=t;this.props.fileUploadClientConfigChanged({prefix:o,headers:d})}t.type==="SET_IS_OWNER"&&this.props.isOwnerChanged(t.isOwner),t.type==="SET_MENU_ITEMS"&&this.props.hostMenuItemsChanged(t.items),t.type==="SET_METADATA"&&this.props.deployedAppMetadataChanged(t.metadata),t.type==="SET_PAGE_LINK_BASE_URL"&&this.props.pageLinkBaseUrlChanged(t.pageLinkBaseUrl),t.type==="SET_SIDEBAR_CHEVRON_DOWNSHIFT"&&this.props.sidebarChevronDownshiftChanged(t.sidebarChevronDownshift),t.type==="SET_SIDEBAR_NAV_VISIBILITY"&&this.props.hostHideSidebarNavChanged(t.hidden),t.type==="SET_TOOLBAR_ITEMS"&&this.props.hostToolbarItemsChanged(t.items),t.type==="UPDATE_FROM_QUERY_PARAMS"&&(this.props.queryParamsChanged(t.queryParams),this.props.send
133RerunBackMsg()),t.type==="UPDATE_HASH"&&(window.location.hash=t.hash),t.type==="SET_CUSTOM_THEME_CONFIG"&&this.props.themeChanged(t.themeName,t.themeInfo),t.type==="RESTART_WEBSOCKET_CONNECTION"&&this.props.restartWebsocketConnection(),t.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 e=i.initialize,t=i.config,o=e.userInfo,d=e.environmentInfo;return{appId:hashString(o.installationIdV3+i.mainScriptPath),sessionId:e.sessionId,streamlitVersion:d.streamlitVersion,pythonVersion:d.pythonVersion,serverOS:d.serverOs,hasDisplay:d.hasDisplay,installationId:o.installationId,installationIdV3:o.installationIdV3,installationIdV4:o.installationIdV4,maxCachedMessageAge:t.maxCachedMessageAge,isHello:e.isHello,isConnected:!0}}}const nonce=document.currentScript?.nonce||"",cache=createCache({key:"st-emotion-cache",...nonce&&{nonce}});function RootStyleProvider(n){const{children:i,theme:e}=n;return jsx$1(BaseProvider,{theme:e.basewebTheme,zIndex:e.emotion.zIndices.popup,children:jsx$1(CacheProvider,{value:cache,children:jsxs(ThemeProvider$2,{theme:e.emotion,children:[jsx$1(Global,{styles:[globalStyles]}),i]})})})}const measure=(n,i,e)=>performance.measure(n,i,e),mark=n=>performance.mark(n);class Timer{constructor(){this.duration=0,this.startTime=0,this.running=!1}get isRunning(){return this.running}get remainingTime(){if(!this.running)return 0;const i=Date.now()-this.startTime;return Math.max(this.duration-i,0)}setTimeout(i,e){this.cancel(),this.startTime=Date.now(),this.duration=e,this.running=!0,this.timerHandle=window.setTimeout(()=>{this.running=!1,i()},e)}cancel(){this.timerHandle!==void 0&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}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,e){typeof i=="string"&&(e=i,i=void 0);var t=[];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),$=new Array(y.length+1),E=new Array(y.length),M=0;M<y.length;)$[M]=y[M],E[M]=p[y[M++]];return $[M]=h,Function.apply(null,$).apply(null,E)}return Function(h)()}for(var H=new Array(arguments.length-1),Z=0;Z<H.length;)H[Z]=arguments[++Z];if(Z=0,p=p.replace(/%([%dfijs])/g,function(ye,we){var xe=H[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!==H.length)throw Error("parameter count mismatch");return t.push(p),o}function d(p){return"function "+(p||e||"")+"("+(i&&i.join(",")||"")+`){ 134 `+t.join(` 135 `)+` 136}`}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=t;var n=requireAspromise(),i=requireInquire(),e=i("fs");function t(o,d,p){return typeof d=="function"?(p=d,d={}):d||(d={}),p?!d.xhr&&e&&e.readFile?e.readFile(o,function(y,$){return y&&typeof XMLHttpRequest<"u"?t.xhr(o,d,p):y?p(y):p(null,d.binary?$:$.toString("utf8"))}):t.xhr(o,d,p):n(t,this,o,d)}return t.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 E=y.response;if(!E){E=[];for(var M=0;M<y.responseText.length;++M)E.push(y.responseText.charCodeAt(M)&255)}return h(null,typeof Uint8Array<"u"?new Uint8Array(E):E)}return h(null,y.responseText)}},p.binary&&("overrideMimeType"in y&&y.overrideMimeType("text/plain;
136 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,e=i.isAbsolute=function(d){return/^(?:\/|\w+:)/.test(d)},t=i.normalize=function(d){d=d.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var p=d.split("/"),h=e(d),y="";h&&(y=p.shift()+"/");for(var $=0;$<p.length;)p[$]===".."?$>0&&p[$-1]!==".."?p.splice(--$,2):h?p.splice($,1):++$:p[$]==="."?p.splice($,1):++$;return y+p.join("/")};i.resolve=function(d,p,h){return h||(p=t(p)),e(p)?p:(h||(d=t(d)),(d=d.replace(/(?:\/|^)[^/]+$/,"")).length?t(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(),e=requireUtil(),t=requireOneof(),o,d,p;y.fromJSON=function(M,H){return new y(M,H.options).addJSON(H.nested)};function h(E,M){if(E&&E.length){for(var H={},Z=0;Z<E.length;++Z)H[E[Z].name]=E[Z].toJSON(M);return H}}y.arrayToJSON=h,y.isReservedId=function(M,H){if(M){for(var Z=0;Z<M.length;++Z)if(typeof M[Z]!="string"&&M[Z][0]<=H&&M[Z][1]>H)return!0}return!1},y.isReservedName=function(M,H){if(M){for(var Z=0;Z<M.length;++Z)if(M[Z]===H)return!0}return!1};function y(E,M){n.call(this,E,M),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function $(E){E._nestedArray=null,E._lookupCache={};for(var M=E;M=M.parent;)M._lookupCache={};return E}return Object.defineProperty(y.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=e.toArray(this.nested))}}),y.prototype.toJSON=function(M){return e.toObject(["options",this.options,"nested",h(this.nestedArray,M)])},y.prototype.addJSON=function(M){var H=this;if(M)for(var Z=Object.keys(M),be=0,ye;be<Z.length;++be)ye=M[Z[be]],H.add((ye.fields!==void 0?o.fromJSON:ye.values!==void 0?p.fromJSON:ye.methods!==void 0?d.fromJSON:ye.id!==void 0?i.fromJSON:y.fromJSON)(Z[be],ye));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 t||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 H=this.get(M.name);if(H)if(H instanceof y&&M instanceof y&&!(H instanceof o||H instanceof d)){for(var Z=H.nestedArray,be=0;be<Z.length;++be)M.add(Z[be]);this.remove(H),this.nested||(this.nested={}),M.setOptions(H.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 ye=this;ye=ye.parent;)ye._needsRecursiveFeatureResolution=!0,ye._needsRecursiveResolve=!0;return M.onAdd(this),$(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),$(this)},y.prototype.define=function(M,H){if(e.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 be=M.shift();if(Z.nested&&Z.nested[be]){if(Z=Z.nested[be],!(Z instanceof y))throw Error("path conflicts with non-namespace objects")}else Z.add(Z=new y(be))}return H&&Z.addJSON(H),Z},y.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var M=this.nestedArray,H=0;for(this.resolve();H<M.length;)M[H]instanceof y?M[H++].resolveAll():M[H++].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(H=>{H._resolveFeaturesRecursive(M)}),this):this},y.prototype.lookup=function(M,H,Z){if(typeof H=="boolean"?(Z=H,H=void 0):H&&!Array.isArray(H)&&(H=[H]),e.isString(M)&&M.length){if(M===".")return this.root;M=M.split(".")}else if(!M.length)return this;var be=M.join(".");if(M[0]==="")return this.root.lookup(M.slice(1),H);var ye=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+be];if(ye&&(!H||H.indexOf(ye.constructor)>-1)||(ye=this._lookupImpl(M,be),ye&&(!H||H.indexOf(ye.constructor)>-1)))return ye;if(Z)return null;for(var we=this;we.parent;){if(ye=we.parent._lookupImpl(M,be),ye&&(!H||H.indexOf(ye.constructor)>-1))return ye;we=we.parent}return null},y.prototype._lookupImpl=function(M,H){if(Object.prototype.hasOwnProperty.call(this._lookupCache,H))return this._lookupCache[H];var Z=this.get(M[0]),be=null;if(Z)M.length===1?be=Z:Z instanceof y&&(M=M.slice(1),be=Z._lookupImpl(M,M.join(".")));else for(var ye=0;ye<this.nestedArray.length;++ye)this._nestedArray[ye]instanceof y&&(Z=this._nestedArray[ye]._lookupImpl(M,H))&&(be=Z);return this._lookupCache[H]=be,be},y.prototype.lookupType=function(M){var H=this.lookup(M,[o]);if(!H)throw Error("no such type: "+M);return H},y.prototype.lookupEnum=function(M){var H=this.lookup(M,[p]);if(!H)throw Error("no such Enum '"+M+"' in "+this);return H},y.prototype.lookupTypeOrEnum=function(M){var H=this.lookup(M,[o,p]);if(!H)throw Error("no such Type or Enum '"+M+"' in "+this);return H},y.prototype.lookupService=function(M){var H=this.lookup(M,[d]);if(!H)throw Error("no such Service '"+M+"' in "+this);return H},y._configure=function(E,M,H){o=E,d=M,p=H},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=t;var n=requireField();((t.prototype=Object.create(n.prototype)).constructor=t).className="MapField";var i=requireTypes(),e=requireUtil();function t(o,d,p,h,y,$){if(n.call(this,o,d,h,void 0,void 0,y,$),!e.isString(p))throw TypeError("keyType must be a string");this.keyType=p,this.resolvedKeyType=null,this.map=!0}return t.fromJSON=function(d,p){return new t(d,p.id,p.keyType,p.type,p.options,p.
136comment)},t.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return e.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",p?this.comment:void 0])},t.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)},t.d=function(d,p,h){return typeof h=="function"?h=e.decorateType(h).name:h&&typeof h=="object"&&(h=e.decorateEnum(h).name),function($,E){e.decorateType($.constructor).add(new t(E,d,p,h))}},mapfield}var method,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=e;var n=requireObject();((e.prototype=Object.create(n.prototype)).constructor=e).className="Method";var i=requireUtil();function e(t,o,d,p,h,y,$,E,M){if(i.isObject(h)?($=h,h=y=void 0):i.isObject(y)&&($=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,t,$),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=E,this.parsedOptions=M}return e.fromJSON=function(o,d){return new e(o,d.type,d.requestType,d.responseType,d.requestStream,d.responseStream,d.options,d.comment,d.parsedOptions)},e.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])},e.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(),e=requireUtil(),t=requireRpc();function o(p,h){n.call(this,p,h),this.methods={},this._methodsArray=null}o.fromJSON=function(h,y){var $=new o(h,y.options);if(y.methods)for(var E=Object.keys(y.methods),M=0;M<E.length;++M)$.add(i.fromJSON(E[M],y.methods[E[M]]));return y.nested&&$.addJSON(y.nested),y.edition&&($._edition=y.edition),$.comment=y.comment,$._defaultEdition="proto3",$},o.prototype.toJSON=function(h){var y=n.prototype.toJSON.call(this,h),$=h?!!h.keepComments:!1;return e.toObject(["edition",this._editionToJSON(),"options",y&&y.options||void 0,"methods",n.arrayToJSON(this.methodsArray,h)||{},"nested",y&&y.nested||void 0,"comment",$?this.comment:void 0])},Object.defineProperty(o.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=e.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,$){for(var E=new t.Service(h,y,$),M=0,H;M<this.methodsArray.length;++M){var Z=e.lcFirst((H=this._methodsArray[M]).resolve().name).replace(/[^$\w_]/g,"");E[Z]=e.codegen(["r","c"],e.isReserved(Z)?Z+"_":Z)("return this.rpcCall(m,q,s,r,c)")({m:H,q:H.resolvedRequestType.ctor,s:H.resolvedResponseType.ctor})}return E},service}var message,hasRequiredMessage;function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1,message=i;var n=requireMinimal$1();function i(e){if(e)for(var t=Object.keys(e),o=0;o<t.length;++o)this[t[o]]=e[t[o]]}return i.create=function(t){return this.$type.create(t)},i.encode=function(t,o){return this.$type.encode(t,o)},i.encodeDelimited=function(t,o){return this.$type.encodeDelimited(t,o)},i.decode=function(t){return this.$type.decode(t)},i.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},i.verify=function(t){return this.$type.verify(t)},i.fromObject=function(t){return this.$type.fromObject(t)},i.toObject=function(t,o){return this.$type.toObject(t,o)},i.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)},message}var decoder_1,hasRequiredDecoder;
136function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=o;var n=require_enum(),i=requireTypes(),e=requireUtil();function t(d){return"missing required '"+d.name+"'"}function o(d){for(var p=e.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(H){return H.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(),$=y.resolvedType instanceof n?"int32":y.type,E="m"+e.safeProp(y.name);p("case %i: {",y.id),y.map?(p("if(%s===util.emptyObject)",E)("%s={}",E)("var c2 = r.uint32()+r.pos"),i.defaults[y.keyType]!==void 0?p("k=%j",i.defaults[y.keyType]):p("k=null"),i.defaults[$]!==void 0?p("value=%j",i.defaults[$]):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[$]===void 0?p("value=types[%i].decode(r,r.uint32())",h):p("value=r.%s()",$),p("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),i.long[y.keyType]!==void 0?p('%s[typeof k==="object"?util.longToHash(k):k]=value',E):p("%s[k]=value",E)):y.repeated?(p("if(!(%s&&%s.length))",E,E)("%s=[]",E),i.packed[$]!==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[$]===void 0?p(y.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",E,h):p("%s.push(r.%s())",E,$)):i.basic[$]===void 0?p(y.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",E,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})",t(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 e(p,h){return p.name+": "+h+(p.repeated&&h!=="array"?"[]":p.map&&h!=="object"?"{k:"+p.keyType+"}":"")+" expected"}function t(p,h,y,$){if(h.resolvedType)if(h.resolvedType instanceof n){p("switch(%s){",$)("default:")("return%j",e(h,"enum value"));for(var E=Object.keys(h.resolvedType.values),M=0;M<E.length;++M)p("case %i:",h.resolvedType.values[E[M]]);p("break")("}")}else p("{")("var e=types[%i].verify(%s);",y,$)("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))",$)("return%j",e(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)))",$,$,$,$)("return%j",e(h,"integer|Long"));break;case"float":case"double":p('if(typeof %s!=="number")',$)("return%j",e(h,"number"));break;case"bool":p('if(typeof %s!=="boolean")',$)("return%j",e(h,"boolean"));break;case"string":p("if(!util.isString(%s))",$)("return%j",e(h,"string"));break;case"bytes":p('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',$,$,$)("return%j",e(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",e(h,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":p("if(!util.key64Re.test(%s))",y)("return%j",e(h,"integer|Long key"));break;case"bool":p("if(!util.key2Re.test(%s))",y)("return%j",e(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,$={};y.length&&h("var p={}");for(var E=0;E<p.fieldsArray.length;++E){var M=p._fieldsArray[E].resolve(),H="m"+i.safeProp(M.name);if(M.optional&&h("if(%s!=null&&m.hasOwnProperty(%j)){",H,M.name),M.map)h("if(!util.isObject(%s))",H)("return%j",e(M,"object"))("var k=Object.keys(%s)",H)("for(var i=0;i<k.length;++i){"),o(h,M,"k[i]"),t(h,M,E,H+"[k[i]]")("}");else if(M.repeated)h("if(!Array.isArray(%s))",H)("return%j",e(M,"array"))("for(var i=0;i<%s.length;++i){",H),t(h,M,E,H+"[i]")("}");else{if(M.partOf){var Z=i.safeProp(M.partOf.name);$[M.partOf.name]===1&&h("if(p%s===1)",Z)("return%j",M.partOf.name+": multiple values"),$[M.partOf.name]=1,h("p%s=1",Z)}t(h,M,E,H)}M.optional&&h("}")}return h("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,(function(n){var i=n,e=require_enum(),t=requireUtil();function o(p,h,y,$){var E=!1;if(h.resolvedType)if(h.resolvedType instanceof e){p("switch(d%s){",$);for(var M=h.resolvedType.values,H=Object.keys(M),Z=0;Z<H.length;++Z)M[H[Z]]===h.typeDefault&&!E&&(p("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',$,$,$),h.repeated||p("break"),E=!0),p("case%j:",H[Z])("case %i:",M[H[Z]])("m%s=%j",$,M[H[Z]])("break");p("}")}else p('if(typeof d%s!=="object")',$)("throw TypeError(%j)",h.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",$,y,$);else{var be=!1;switch(h.type){case"double":case"float":p("m%s=Number(d%s)",$,$);break;case"uint32":case"fixed32":p("m%s=d%s>>>0",$,$);break;case"int32":case"sint32":case"sfixed32":p("m%s=d%s|0",$,$);break;case"uint64":be=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":p("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",$,$,be)('else if(typeof d%s==="string")',$)("m%s=parseInt(d%s,10)",$,$)('else if(typeof d%s==="number")',$)("m%s=d%s",$,$)('else if(typeof d%s==="object")',$)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",$,$,$,be?"true":"");break;case"bytes":p('if(typeof d%s==="string")',$)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",$,$,$)("else if(d%s.length >= 0)",$)("m%s=d%s",$,$);break;case"string":p("m%s=String(d%s)",$,$);break;case"bool":p("m%s=Boolean(d%s)",$,$);break}}return p}i.fromObject=function(h){var y=h.fieldsArray,$=t.codegen(["d"],h.name+"$fromObject")("if(d instanceof this.ctor)")("return d");
136if(!y.length)return $("return new this.ctor");$("var m=new this.ctor");for(var E=0;E<y.length;++E){var M=y[E].resolve(),H=t.safeProp(M.name);M.map?($("if(d%s){",H)('if(typeof d%s!=="object")',H)("throw TypeError(%j)",M.fullName+": object expected")("m%s={}",H)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",H),o($,M,E,H+"[ks[i]]")("}")("}")):M.repeated?($("if(d%s){",H)("if(!Array.isArray(d%s))",H)("throw TypeError(%j)",M.fullName+": array expected")("m%s=[]",H)("for(var i=0;i<d%s.length;++i){",H),o($,M,E,H+"[i]")("}")("}")):(M.resolvedType instanceof e||$("if(d%s!=null){",H),o($,M,E,H),M.resolvedType instanceof e||$("}"))}return $("return m")};function d(p,h,y,$){if(h.resolvedType)h.resolvedType instanceof e?p("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",$,y,$,$,y,$,$):p("d%s=types[%i].toObject(m%s,o)",$,y,$);else{var E=!1;switch(h.type){case"double":case"float":p("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",$,$,$,$);break;case"uint64":E=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":p('if(typeof m%s==="number")',$)("d%s=o.longs===String?String(m%s):m%s",$,$,$)("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?"true":"",$);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",$,$,$,$,$);break;default:p("d%s=m%s",$,$);break}}return p}i.toObject=function(h){var y=h.fieldsArray.slice().sort(t.compareFieldsById);if(!y.length)return t.codegen()("return {}");for(var $=t.codegen(["m","o"],h.name+"$toObject")("if(!o)")("o={}")("var d={}"),E=[],M=[],H=[],Z=0;Z<y.length;++Z)y[Z].partOf||(y[Z].resolve().repeated?E:y[Z].map?M:H).push(y[Z]);if(E.length){for($("if(o.arrays||o.defaults){"),Z=0;Z<E.length;++Z)$("d%s=[]",t.safeProp(E[Z].name));$("}")}if(M.length){for($("if(o.objects||o.defaults){"),Z=0;Z<M.length;++Z)$("d%s={}",t.safeProp(M[Z].name));$("}")}if(H.length){for($("if(o.defaults){"),Z=0;Z<H.length;++Z){var be=H[Z],ye=t.safeProp(be.name);if(be.resolvedType instanceof e)$("d%s=o.enums===String?%j:%j",ye,be.resolvedType.valuesById[be.typeDefault],be.typeDefault);else if(be.long)$("if(util.Long){")("var n=new util.Long(%i,%i,%j)",be.typeDefault.low,be.typeDefault.high,be.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",ye)("}else")("d%s=o.longs===String?%j:%i",ye,be.typeDefault.toString(),be.typeDefault.toNumber());else if(be.bytes){var we="["+Array.prototype.slice.call(be.typeDefault).join(",")+"]";$("if(o.bytes===String)d%s=%j",ye,String.fromCharCode.apply(String,be.typeDefault))("else{")("d%s=%s",ye,we)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",ye,ye)("}")}else $("d%s=%j",ye,be.typeDefault)}$("}")}var xe=!1;for(Z=0;Z<y.length;++Z){var be=y[Z],Ce=h._fieldsArray.indexOf(be),ye=t.safeProp(be.name);be.map?(xe||(xe=!0,$("var ks2")),$("if(m%s&&(ks2=Object.keys(m%s)).length){",ye,ye)("d%s={}",ye)("for(var j=0;j<ks2.length;++j){"),d($,be,Ce,ye+"[ks2[j]]")("}")):be.repeated?($("if(m%s&&m%s.length){",ye,ye)("d%s=[]",ye)("for(var j=0;j<m%s.length;++j){",ye),d($,be,Ce,ye+"[j]")("}")):($("if(m%s!=null&&m.hasOwnProperty(%j)){",ye,be.name),d($,be,Ce,ye),be.partOf&&$("if(o.oneofs)")("d%s=%j",t.safeProp(be.partOf.name),be.name)),$("}")}return $("return d")}})(converter)),converter}var wrappers={},hasRequiredWrappers;function requireWrappers(){return hasRequiredWrappers||(hasRequiredWrappers=1,(function(n){var i=n,e=requireMessage();i[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var o=t["@type"].substring(t["@type"].lastIndexOf("/")+1),d=this.lookup(o);if(d){var p=t["@type"].charAt(0)==="."?t["@type"].slice(1):t["@type"];return p.indexOf("/")===-1&&(p="/"+p),this.create({type_url:p,value:d.encode(d.fromObject(t)).finish()})}}return this.fromObject(t)},toObject:function(t,o){var d="type.googleapis.com/",p="",h="";if(o&&o.json&&t.type_url&&t.value){h=t.type_url.substring(t.type_url.lastIndexOf("/")+1),p=t.type_url.substring(0,t.type_url.lastIndexOf("/")+1);var y=this.lookup(h);y&&(t=y.decode(t.value))}if(!(t instanceof this.ctor)&&t instanceof e){var $=t.$type.toObject(t,o),E=t.$type.fullName[0]==="."?t.$type.fullName.slice(1):t.$type.fullName;return p===""&&(p=d),h=p+E,$["@type"]=h,$}return this.toObject(t,o)}}})(wrappers)),wrappers}var type,hasRequiredType;
136function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=ye;var n=requireNamespace();((ye.prototype=Object.create(n.prototype)).constructor=ye).className="Type";var i=require_enum(),e=requireOneof(),t=requireField(),o=requireMapfield(),d=requireService(),p=requireMessage(),h=requireReader(),y=requireWriter(),$=requireUtil(),E=requireEncoder(),M=requireDecoder(),H=requireVerifier(),Z=requireConverter(),be=requireWrappers();function ye(xe,Ce){n.call(this,xe,Ce),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(ye.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var xe=Object.keys(this.fields),Ce=0;Ce<xe.length;++Ce){var Ne=this.fields[xe[Ce]],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=$.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=$.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=ye.generateConstructor(this)())},set:function(xe){var Ce=xe.prototype;Ce instanceof p||((xe.prototype=new p).constructor=xe,$.merge(xe.prototype,Ce)),xe.$type=xe.prototype.$type=this,$.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:$.oneOfGetter(this._oneofsArray[Ne].oneof),set:$.oneOfSetter(this._oneofsArray[Ne].oneof)};Ne&&Object.defineProperties(xe.prototype,Fe)}}}),ye.generateConstructor=function(Ce){for(var Ne=$.codegen(["p"],Ce.name),Fe=0,Me;Fe<Ce.fieldsArray.length;++Fe)(Me=Ce._fieldsArray[Fe]).map?Ne("this%s={}",$.safeProp(Me.name)):Me.repeated&&Ne("this%s=[]",$.safeProp(Me.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 ye.fromJSON=function(Ce,Ne){var Fe=new ye(Ce,Ne.options);Fe.extensions=Ne.extensions,Fe.reserved=Ne.reserved;for(var Me=Object.keys(Ne.fields),Le=0;Le<Me.length;++Le)Fe.add((typeof Ne.fields[Me[Le]].keyType<"u"?o.fromJSON:t.fromJSON)(Me[Le],Ne.fields[Me[Le]]));if(Ne.oneofs)for(Me=Object.keys(Ne.oneofs),Le=0;Le<Me.length;++Le)Fe.add(e.fromJSON(Me[Le],Ne.oneofs[Me[Le]]));if(Ne.nested)for(Me=Object.keys(Ne.nested),Le=0;Le<Me.length;++Le){var ze=Ne.nested[Me[Le]];Fe.add((ze.id!==void 0?t.fromJSON:ze.fields!==void 0?ye.fromJSON:ze.values!==void 0?i.fromJSON:ze.methods!==void 0?d.fromJSON:n.fromJSON)(Me[Le],ze))}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},ye.prototype.toJSON=function(Ce){var Ne=n.prototype.toJSON.call(this,Ce),Fe=Ce?!!Ce.keepComments:!1;return $.toObject(["edition",this._editionToJSON(),"options",Ne&&Ne.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,Ce),"fields",n.arrayToJSON(this.fieldsArray.filter(function(Me){return!Me.declaringField}),Ce)||{},"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])},ye.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;n.prototype.resolveAll.call(this);var Ce=this.oneofsArray;for(Fe=0;Fe<Ce.length;)Ce[Fe++].resolve();for(var Ne=this.fieldsArray,Fe=0;Fe<Ne.length;)Ne[Fe++].resolve();return this},ye.prototype._resolveFeaturesRecursive=function(Ce){return this._needsRecursiveFeatureResolution?(Ce=this._edition||Ce,n.prototype._resolveFeaturesRecursive.call(this,Ce),this.oneofsArray.forEach(Ne=>{Ne._resolveFeatures(Ce)}),this.fieldsArray.forEach(Ne=>{Ne._resolveFeatures(Ce)}),this):this},ye.prototype.get=function(Ce){return this.fields[Ce]||this.oneofs&&this.oneofs[Ce]||this.nested&&this.nested[Ce]||null},ye.prototype.add=function(Ce){if(this.get(Ce.name))throw Error("duplicate name '"+Ce.name+"' in "+this);if(Ce instanceof t&&Ce.extend===void 0){if(this._fieldsById?this._fieldsById[Ce.id]:this.fieldsById[Ce.id])throw Error("duplicate id "+Ce.id+" in "+this);if(this.isReservedId(Ce.id))throw Error("id "+Ce.id+" is reserved in "+this);if(this.isReservedName(Ce.name))throw Error("name '"+Ce.name+"' is reserved in "+this);return Ce.parent&&Ce.parent.remove(Ce),this.fields[Ce.name]=Ce,Ce.message=this,Ce.onAdd(this),we(this)}return Ce instanceof e?(this.oneofs||(this.oneofs={}),this.oneofs[Ce.name]=Ce,Ce.onAdd(this),we(this)):n.prototype.add.call(this,Ce)},ye.prototype.remove=function(Ce){if(Ce instanceof t&&Ce.extend===void 0){if(!this.fields||this.fields[Ce.name]!==Ce)throw Error(Ce+" is not a member of "+this);return delete this.fields[Ce.name],Ce.parent=null,Ce.onRemove(this),we(this)}if(Ce instanceof e){if(!this.oneofs||this.oneofs[Ce.name]!==Ce)throw Error(Ce+" is not a member of "+this);return delete this.oneofs[Ce.name],Ce.parent=null,Ce.onRemove(this),we(this)}return n.prototype.remove.call(this,Ce)},ye.prototype.isReservedId=function(Ce){return n.isReservedId(this.reserved,Ce)},ye.prototype.isReservedName=function(Ce){return n.isReservedName(this.reserved,Ce)},ye.prototype.create=function(Ce){return new this.ctor(Ce)},ye.prototype.setup=function(){for(var Ce=this.fullName,Ne=[],Fe=0;Fe<this.fieldsArray.length;++Fe)Ne.push(this._fieldsArray[Fe].resolve().resolvedType);this.encode=E(this)({Writer:y,types:Ne,util:$}),this.decode=M(this)({Reader:h,types:Ne,util:$}),this.verify=H(this)({types:Ne,util:$}),this.fromObject=Z.fromObject(this)({types:Ne,util:$}),this.toObject=Z.toObject(this)({types:Ne,util:$});var Me=be[Ce];if(Me){var Le=Object.create(this);Le.fromObject=this.fromObject,this.fromObject=Me.fromObject.bind(Le),Le.toObject=this.toObject,this.toObject=Me.toObject.bind(Le)}return this},ye.prototype.encode=function(Ce,Ne){return this.setup().encode(Ce,Ne)},ye.prototype.encodeDelimited=function(Ce,Ne){return this.encode(Ce,Ne&&Ne.len?Ne.fork():Ne).ldelim()},ye.prototype.decode=function(Ce,Ne){return this.setup().decode(Ce,Ne)},ye.prototype.decodeDelimited=function(Ce){return Ce instanceof h||(Ce=h.create(Ce)),this.decode(Ce,Ce.uint32())},ye.prototype.verify=function(Ce){return this.setup().verify(Ce)},ye.prototype.fromObject=function(Ce){return this.setup().fromObject(Ce)},ye.prototype.toObject=function(Ce,Ne){return this.setup().toObject(Ce,Ne)},ye.d=function(Ce){return function(Fe){$.decorateType(Fe,Ce)}},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(),e=require_enum(),t=requireOneof(),o=requireUtil(),d,p,h;function y(H){n.call(this,"",H),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}
136y.fromJSON=function(Z,be){return be||(be=new y),Z.options&&be.setOptions(Z.options),be.addJSON(Z.nested).resolveAll()},y.prototype.resolvePath=o.path.resolve,y.prototype.fetch=o.fetch;function $(){}y.prototype.load=function H(Z,be,ye){typeof be=="function"&&(ye=be,be=void 0);var we=this;if(!ye)return o.asPromise(H,we,Z,be);var xe=ye===$;function Ce(Ve,je){if(ye){if(xe)throw Ve;je&&je.resolveAll();var We=ye;ye=null,We(Ve,je)}}function Ne(Ve){var je=Ve.lastIndexOf("google/protobuf/");if(je>-1){var We=Ve.substring(je);if(We in h)return We}return null}function Fe(Ve,je){try{if(o.isString(je)&&je.charAt(0)==="{"&&(je=JSON.parse(je)),!o.isString(je))we.setOptions(je.options).addJSON(je.nested);else{p.filename=Ve;var We=p(je,we,be),Xe,Qe=0;if(We.imports)for(;Qe<We.imports.length;++Qe)(Xe=Ne(We.imports[Qe])||we.resolvePath(Ve,We.imports[Qe]))&&Me(Xe);if(We.weakImports)for(Qe=0;Qe<We.weakImports.length;++Qe)(Xe=Ne(We.weakImports[Qe])||we.resolvePath(Ve,We.weakImports[Qe]))&&Me(Xe,!0)}}catch(Ye){Ce(Ye)}!xe&&!Le&&Ce(null,we)}function Me(Ve,je){if(Ve=Ne(Ve)||Ve,!(we.files.indexOf(Ve)>-1)){if(we.files.push(Ve),Ve in h){xe?Fe(Ve,h[Ve]):(++Le,setTimeout(function(){--Le,Fe(Ve,h[Ve])}));return}if(xe){var We;try{We=o.fs.readFileSync(Ve).toString("utf8")}catch(Xe){je||Ce(Xe);return}Fe(Ve,We)}else++Le,we.fetch(Ve,function(Xe,Qe){if(--Le,!!ye){if(Xe){je?Le||Ce(null,we):Ce(Xe);return}Fe(Ve,Qe)}})}}var Le=0;o.isString(Z)&&(Z=[Z]);for(var ze=0,Ke;ze<Z.length;++ze)(Ke=we.resolvePath("",Z[ze]))&&Me(Ke);return xe?(we.resolveAll(),we):(Le||Ce(null,we),we)},y.prototype.loadSync=function(Z,be){if(!o.isNode)throw Error("not supported");return this.load(Z,be,$)},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 E=/^[A-Z]/;function M(H,Z){var be=Z.parent.lookup(Z.extend);if(be){var ye=new i(Z.fullName,Z.id,Z.type,Z.rule,void 0,Z.options);return be.get(ye.name)||(ye.declaringField=Z,Z.extensionField=ye,be.add(ye)),!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 e)E.test(Z.name)&&(Z.parent[Z.name]=Z.values);else if(!(Z instanceof t)){if(Z instanceof d)for(var be=0;be<this.deferred.length;)M(this,this.deferred[be])?this.deferred.splice(be,1):++be;for(var ye=0;ye<Z.nestedArray.length;++ye)this._handleAdd(Z._nestedArray[ye]);E.test(Z.name)&&(Z.parent[Z.name]=Z)}(Z instanceof d||Z instanceof e||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 be=this.deferred.indexOf(Z);be>-1&&this.deferred.splice(be,1)}}else if(Z instanceof e)E.test(Z.name)&&delete Z.parent[Z.name];else if(Z instanceof n){for(var ye=0;ye<Z.nestedArray.length;++ye)this._handleRemove(Z._nestedArray[ye]);E.test(Z.name)&&delete Z.parent[Z.name]}delete this._fullyQualifiedObjects[Z.fullName]},y._configure=function(H,Z,be){d=H,p=Z,h=be},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util.exports;hasRequiredUtil=1;var n=util.exports=requireMinimal$1(),i=requireRoots(),e,t;n.codegen=requireCodegen(),n.fetch=requireFetch(),n.path=requirePath(),n.fs=n.inquire("fs"),n.toArray=function($){if($){for(var E=Object.keys($),M=new Array(E.length),H=0;H<E.length;)M[H]=$[E[H++]];return M}return[]},n.toObject=function($){for(var E={},M=0;M<$.length;){var H=$[M++],Z=$[M++];Z!==void 0&&(E[H]=Z)}return E};var o=/\\/g,d=/"/g;n.isReserved=function($){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($)},n.safeProp=function($){return!/^[$\w_]+$/.test($)||n.isReserved($)?'["'+$.replace(o,"\\\\").replace(d,'\\"')+'"]':"."+$},n.ucFirst=function($){return $.charAt(0).toUpperCase()+$.substring(1)};var p=/_([a-z])/g;
136n.camelCase=function($){return $.substring(0,1)+$.substring(1).replace(p,function(E,M){return M.toUpperCase()})},n.compareFieldsById=function($,E){return $.id-E.id},n.decorateType=function($,E){if($.$type)return E&&$.$type.name!==E&&(n.decorateRoot.remove($.$type),$.$type.name=E,n.decorateRoot.add($.$type)),$.$type;e||(e=requireType());var M=new e(E||$.name);return n.decorateRoot.add(M),M.ctor=$,Object.defineProperty($,"$type",{value:M,enumerable:!1}),Object.defineProperty($.prototype,"$type",{value:M,enumerable:!1}),M};var h=0;return n.decorateEnum=function($){if($.$type)return $.$type;t||(t=require_enum());var E=new t("Enum"+h++,$);return n.decorateRoot.add(E),Object.defineProperty($,"$type",{value:E,enumerable:!1}),E},n.setProperty=function($,E,M,H){function Z(be,ye,we){var xe=ye.shift();if(xe==="__proto__"||xe==="prototype")return be;if(ye.length>0)be[xe]=Z(be[xe]||{},ye,we);else{var Ce=be[xe];if(Ce&&H)return be;Ce&&(we=[].concat(Ce).concat(we)),be[xe]=we}return be}if(typeof $!="object")throw TypeError("dst must be an object");if(!E)throw TypeError("path must be specified");return E=E.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,e=requireUtil(),t=["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[t[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,"",e.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(),e=requireTypes(),t=requireUtil(),o,d=/^required|optional|repeated$/;p.fromJSON=function(y,$){var E=new p(y,$.id,$.type,$.rule,$.extend,$.options,$.comment);return $.edition&&(E._edition=$.edition),E._defaultEdition="proto3",E};function p(h,y,$,E,M,H,Z){if(t.isObject(E)?(Z=M,H=E,E=M=void 0):t.isObject(M)&&(Z=H,H=M,M=void 0),n.call(this,h,H),!t.isInteger(y)||y<0)throw TypeError("id must be a non-negative integer");if(!t.isString($))throw TypeError("type must be a string");if(E!==void 0&&!d.test(E=E.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(M!==void 0&&!t.isString(M))throw TypeError("extend must be a string");E==="proto3_optional"&&(E="optional"),this.rule=E&&E!=="optional"?E:void 0,this.type=$,this.id=y,this.extend=M||void 0,this.repeated=E==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=t.Long?e.long[$]!==void 0:!1,this.bytes=$==="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 $=y?!!y.keepComments:!1;return t.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",$?this.comment:void 0])},p.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=e.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.t
136ype),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=t.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;t.base64.test(this.typeDefault)?t.base64.decode(this.typeDefault,y=t.newBuffer(t.base64.length(this.typeDefault)),0):t.utf8.write(this.typeDefault,y=t.newBuffer(t.utf8.length(this.typeDefault)),0),this.typeDefault=y}return this.map?this.defaultValue=t.emptyObject:this.repeated?this.defaultValue=t.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 $={};if(this.rule==="required"&&($.field_presence="LEGACY_REQUIRED"),this.parent&&e.defaults[this.type]===void 0){var E=this.parent.get(this.type.split(".").pop());E&&E instanceof o&&E.group&&($.message_encoding="DELIMITED")}return this.getOption("packed")===!0?$.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&($.repeated_field_encoding="EXPANDED"),$},p.prototype._resolveFeatures=function(y){return n.prototype._resolveFeatures.call(this,this._edition||y)},p.d=function(y,$,E,M){return typeof $=="function"?$=t.decorateType($).name:$&&typeof $=="object"&&($=t.decorateEnum($).name),function(Z,be){t.decorateType(Z.constructor).add(new p(be,y,$,E,{default:M}))}},p._configure=function(y){o=y},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=t;var n=requireObject();((t.prototype=Object.create(n.prototype)).constructor=t).className="OneOf";var i=requireField(),e=requireUtil();function t(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}t.fromJSON=function(p,h){return new t(p,h.oneof,h.options,h.comment)},t.prototype.toJSON=function(p){var h=p?!!p.keepComments:!1;return e.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 t.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},t.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},t.prototype.onAdd=function(p){n.prototype.onAdd.call(this,p);for(var h=this,y=0;y<this.oneof.length;++y){var $=p.get(this.oneof[y]);$&&!$.partOf&&($.partOf=h,h.fieldsArray.push($))}o(this)},t.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(t.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}}),t.d=function(){for(var p=new Array(arguments.length),h=0;h<arguments.length;)p[h]=arguments[h++];return function($,E){e.decorateType($.constructor).add(new t(E,p)),Object.defineProperty($,E,{get:e.oneOfGetter(p),set
136:e.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(),e,t={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"};function h(y,$){if(!i.isString(y))throw TypeError("name must be a string");if($&&!i.isObject($))throw TypeError("options must be an object");this.options=$,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],$=this.parent;$;)y.unshift($.name),$=$.parent;return y.join(".")}}}),h.prototype.toJSON=function(){throw Error()},h.prototype.onAdd=function($){this.parent&&this.parent!==$&&this.parent.remove(this),this.parent=$,this.resolved=!1;var E=$.root;E instanceof e&&E._handleAdd(this)},h.prototype.onRemove=function($){var E=$.root;E instanceof e&&E._handleRemove(this),this.parent=null,this.resolved=!1},h.prototype.resolve=function(){return this.resolved?this:(this.root instanceof e&&(this.resolved=!0),this)},h.prototype._resolveFeaturesRecursive=function($){return this._resolveFeatures(this._edition||$)},h.prototype._resolveFeatures=function($){if(!this._featuresResolved){var E={};if(!$)throw new Error("Unknown edition for "+this.fullName);var M=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures($));if(this._edition){if($==="proto2")E=Object.assign({},d);else if($==="proto3")E=Object.assign({},p);else if($==="2023")E=Object.assign({},o);else if($==="2024")E=Object.assign({},t);else throw new Error("Unknown edition: "+$);this._features=Object.assign(E,M||{}),this._featuresResolved=!0;return}if(this.partOf instanceof n){var H=Object.assign({},this.partOf._features);this._features=Object.assign(H,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($){if(this.options)return this.options[$]},h.prototype.setOption=function($,E,M){return this.options||(this.options={}),/^features\./.test($)?i.setProperty(this.options,$,E,M):(!M||this.options[$]===void 0)&&(this.getOption($)!==E&&(this.resolved=!1),this.options[$]=E),this},h.prototype.setParsedOption=function($,E,M){this.parsedOptions||(this.parsedOptions=[]);var H=this.parsedOptions;if(M){var Z=H.find(function(we){return Object.prototype.hasOwnProperty.call(we,$)});if(Z){var be=Z[$];i.setProperty(be,M,E)}else Z={},Z[$]=i.setProperty({},M,E),H.push(Z)}else{var ye={};ye[$]=E,H.push(ye)}return this},h.prototype.setOptions=function($,E){if($)for(var M=Object.keys($),H=0;H<M.length;++H)this.setOption(M[H],$[M[H]],E);return this},h.prototype.toString=function(){var $=this.constructor.className,E=this.fullName;return E.length?$+" "+E:$},h.prototype._editionToJSON=function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},h._configure=function(y){e=y},object}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=t;var n=requireObject();((t.prototype=Object.create(n.prototype)).constructor=t).className="Enum";var i=requireNamespace(),e=requireUtil();function t(o,d,p,h,y,$){if(n.call(this,o,p),d&&typeof d!="object")throw TypeError("values must be an object");
136if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=h,this.comments=y||{},this.valuesOptions=$,this._valuesFeatures={},this.reserved=void 0,d)for(var E=Object.keys(d),M=0;M<E.length;++M)typeof d[E[M]]=="number"&&(this.valuesById[this.values[E[M]]=d[E[M]]]=E[M])}return t.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},t.fromJSON=function(d,p){var h=new t(d,p.values,p.options,p.comment,p.comments);return h.reserved=p.reserved,p.edition&&(h._edition=p.edition),h._defaultEdition="proto3",h},t.prototype.toJSON=function(d){var p=d?!!d.keepComments:!1;return e.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])},t.prototype.add=function(d,p,h,y){if(!e.isString(d))throw TypeError("name must be a string");if(!e.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},t.prototype.remove=function(d){if(!e.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},t.prototype.isReservedId=function(d){return i.isReservedId(this.reserved,d)},t.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(),e=requireUtil();function t(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=e.codegen(["m","w"],d.name+"$encode")("if(!w)")("w=Writer.create()"),h,y,$=d.fieldsArray.slice().sort(e.compareFieldsById),h=0;h<$.length;++h){var E=$[h].resolve(),M=d._fieldsArray.indexOf(E),H=E.resolvedType instanceof n?"int32":E.type,Z=i.basic[H];y="m"+e.safeProp(E.name),E.map?(p("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",y,E.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",y)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(E.id<<3|2)>>>0,8|i.mapKey[E.keyType],E.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,H,y),p("}")("}")):E.repeated?(p("if(%s!=null&&%s.length){",y,y),E.packed&&i.packed[H]!==void 0?p("w.uint32(%i).fork()",(E.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",y)("w.%s(%s[i])",H,y)("w.ldelim()"):(p("for(var i=0;i<%s.length;++i)",y),Z===void 0?t(p,E,M,y+"[i]"):p("w.uint32(%i).%s(%s[i])",(E.id<<3|Z)>>>0,H,y)),p("}")):(E.optional&&p("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",y,E.name),Z===void 0?t(p,E,M,y):p("w.uint32(%i).%s(%s)",(E.id<<3|Z)>>>0,H,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(t,o,d){return typeof o=="function"?(d=o,o=new n.Root):o||(o=new n.Root),o.load(t,d)}n.load=i;function e(t,o){return o||(o=new n.Root),o.loadSync(t)}return n.loadSync=e,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=E;var n=/[\s{}=;:[\],'"()<>]/g,i=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,e=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,t=/^ *[*/]+ */,o=/^\s*\*?\/*/,d=/\n/g,p=/\s/,h=/\\(.?)/g,y={0:"\0",r:"\r",n:` 137`,t:" "};function $(M){return M.replace(h,function(H,Z){switch(Z){case"\\":case"":return Z;default:return y[Z]||""}})}E.unescape=$;function E(M,H){M=M.toString();var Z=0,be=M.length,ye=1,we=0,xe={},Ce=[],Ne=null;function Fe(Ue){return Error("illegal "+Ue+" (line "+ye+")")}function Me(){var Ue=Ne==="'"?e:i;Ue.lastIndex=Z-1;var ot=Ue.exec(M);if(!ot)throw Fe("string");return Z=Ue.lastIndex,We(Ne),Ne=null,$(ot[1])}function Le(Ue){return M.charAt(Ue)}function ze(Ue,ot,dt){var st={type:M.charAt(Ue++),lineEmpty:!1,leading:dt},pt;H?pt=2:pt=3;var Be=Ue-pt,qe;do if(--Be<0||(qe=M.charAt(Be))===` 138`){st.lineEmpty=!0;break}while(qe===" "||qe===" ");for(var rt=M.substring(Ue,ot).split(d),He=0;He<rt.length;++He)rt[He]=rt[He].replace(H?o:t,"").trim();st.text=rt.join(` 139`).trim(),xe[ye]=st,we=ye}function Ke(Ue){var ot=Ve(Ue),dt=M.substring(Ue,ot),st=/^\s*\/\//.test(dt);return st}function Ve(Ue){for(var ot=Ue;ot<be&&Le(ot)!==` 140`;)ot++;return ot}function je(){if(Ce.length>0)return Ce.shift();if(Ne)return Me();
140var Ue,ot,dt,st,pt,Be=Z===0;do{if(Z===be)return null;for(Ue=!1;p.test(dt=Le(Z));)if(dt===` 141`&&(Be=!0,++ye),++Z===be)return null;if(Le(Z)==="/"){if(++Z===be)throw Fe("comment");if(Le(Z)==="/")if(H){if(st=Z,pt=!1,Ke(Z-1)){pt=!0;do if(Z=Ve(Z),Z===be||(Z++,!Be))break;while(Ke(Z))}else Z=Math.min(be,Ve(Z)+1);pt&&(ze(st,Z,Be),Be=!0),ye++,Ue=!0}else{for(pt=Le(st=Z+1)==="/";Le(++Z)!==` 142`;)if(Z===be)return null;++Z,pt&&(ze(st,Z-1,Be),Be=!0),++ye,Ue=!0}else if((dt=Le(Z))==="*"){st=Z+1,pt=H||Le(st)==="*";do{if(dt===` 143`&&++ye,++Z===be)throw Fe("comment");ot=dt,dt=Le(Z)}while(ot!=="*"||dt!=="/");++Z,pt&&(ze(st,Z-2,Be),Be=!0),Ue=!0}else return"/"}}while(Ue);var qe=Z;n.lastIndex=0;var rt=n.test(Le(qe++));if(!rt)for(;qe<be&&!n.test(Le(qe));)++qe;var He=M.substring(Z,Z=qe);return(He==='"'||He==="'")&&(Ne=He),He}function We(Ue){Ce.push(Ue)}function Xe(){if(!Ce.length){var Ue=je();if(Ue===null)return null;We(Ue)}return Ce[0]}function Qe(Ue,ot){var dt=Xe(),st=dt===Ue;if(st)return je(),!0;if(!ot)throw Fe("token '"+dt+"', '"+Ue+"' expected");return!1}function Ye(Ue){var ot=null,dt;return Ue===void 0?(dt=xe[ye-1],delete xe[ye-1],dt&&(H||dt.type==="*"||dt.lineEmpty)&&(ot=dt.leading?dt.text:null)):(we<Ue&&Xe(),dt=xe[Ue],delete xe[Ue],dt&&!dt.lineEmpty&&(H||dt.type==="/")&&(ot=dt.leading?null:dt.text)),ot}return Object.defineProperty({next:je,peek:Xe,push:We,skip:Qe,cmnt:Ye},"line",{get:function(){return ye}})}return tokenize_1}var parse_1,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1,parse_1=Me,Me.filename=null,Me.defaults={keepCase:!1};var n=requireTokenize(),i=requireRoot(),e=requireType(),t=requireField(),o=requireMapfield(),d=requireOneof(),p=require_enum(),h=requireService(),y=requireMethod(),$=requireObject(),E=requireTypes(),M=requireUtil(),H=/^[1-9][0-9]*$/,Z=/^-?[1-9][0-9]*$/,be=/^0[x][0-9a-fA-F]+$/,ye=/^-?0[x][0-9a-fA-F]+$/,we=/^0[0-7]+$/,xe=/^-?0[0-7]+$/,Ce=/^(?![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 Me(Le,ze,Ke){ze instanceof i||(Ke=ze,ze=new i),Ke||(Ke=Me.defaults);var Ve=Ke.preferTrailingComment||!1,je=n(Le,Ke.alternateCommentMode||!1),We=je.next,Xe=je.push,Qe=je.peek,Ye=je.skip,Ue=je.cmnt,ot=!0,dt,st,pt,Be="proto2",qe=ze,rt=[],He={},Ot=Ke.keepCase?function(it){return it}:M.camelCase;function Ct(){rt.forEach(it=>{it._edition=Be,Object.keys(He).forEach(lt=>{it.getOption(lt)===void 0&&it.setOption(lt,He[lt],!0)})})}function tt(it,lt,ct){var ht=Me.filename;return ct||(Me.filename=null),Error("illegal "+(lt||"token")+" '"+it+"' ("+(ht?ht+", ":"")+"line "+je.line+")")}function wt(){var it=[],lt;do{if((lt=We())!=='"'&<!=="'")throw tt(lt);it.push(We()),Ye(lt),lt=Qe()}while(lt==='"'||lt==="'");return it.join("")}function gt(it){var lt=We();switch(lt){case"'":case'"':return Xe(lt),wt();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return Mt(lt,!0)}catch{if(Fe.test(lt))return lt;throw tt(lt,"value")}}function $t(it,lt){var ct,ht;do if(lt&&((ct=Qe())==='"'||ct==="'")){var ft=wt();if(it.push(ft),Be>=2023)throw tt(ft,"id")}else try{it.push([ht=qt(We()),Ye("to",!0)?qt(We()):ht])}catch(Jt){if(lt&&Fe.test(ct)&&Be>=2023)it.push(ct);else throw Jt}while(Ye(",",!0));var Rt={options:void 0};Rt.setOption=function(Jt,an){this.options===void 0&&(this.options={}),this.options[Jt]=an},zt(Rt,function(an){if(an==="option")Gt(Rt,an),Ye(";");else throw tt(an)},function(){Lt(Rt)})}function Mt(it,lt){var ct=1;switch(it.charAt(0)==="-"&&(ct=-1,it=it.substring(1)),it){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(H.test(it))return ct*parseInt(it,10);if(be.test(it))return ct*parseInt(it,16);if(we.test(it))return ct*parseInt(it,8);if(Ce.test(it))return ct*parseFloat(it);throw tt(it,"number",lt)}function qt(it,lt){switch(it){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!lt&&it.charAt(0)==="-")throw tt(it,"id");if(Z.test(it))return parseInt(it,10);if(ye.test(it))return parseInt(it,16);if(xe.test(it))return parseInt(it,8);throw tt(it,"id")}function cn(){if(dt!==void 0)throw tt("package");if(dt=We(),!Fe.test(dt))throw tt(dt,"name");qe=qe.define(dt),Ye(";")}function en(){var it=Qe(),lt;switch(it){case"option":if(Be<"2024")throw tt("option");We(),wt(),Ye(";");return;case"weak":lt=pt||(pt=[]),We();break;case"public":We();default:lt=st||(st=[]);break}it=wt(),Ye(";"),lt.push(it)}function Wt(){if(Ye("="),Be=wt(),Be<2023)throw tt(Be,"syntax");Ye(";")}function dn(){if(Ye("="),Be=wt(),!["2023","2024"].includes(Be))throw tt(Be,"edition");Ye(";")}function Yt(it,lt){switch(lt){case"option":return Gt(it,lt),Ye(";"),!0;case"message":return nn(it,lt),!0;case"enum":return tn(it,lt),!0;case"export":case"local":return Be<"2024"||(lt=We(),lt==="export"||lt==="local")||lt!=="message"&<!=="enum"?!1:Yt(it,lt);case"service":return Nt(it,lt),!0;case"extend":return Vt(it,lt),!0}return!1}function zt(it,lt,ct){var ht=je.line;if(it&&(typeof it.comment!="string"&&(it.comment=Ue()),it.filename=Me.filename),Ye("{",!0)){for(var ft;(ft=We())!=="}";)lt(ft);Ye(";",!0)}else ct&&ct(),Ye(";"),it&&(typeof it.comment!="string"||Ve)&&(it.comment=Ue(ht)||it.comment)}function nn(it,lt){if(!Ne.test(lt=We()))throw tt(lt,"type name");var ct=new e(lt);zt(ct,function(ft){if(!Yt(ct,ft))switch(ft){case"map":fn(ct);break;case"required":if(Be!=="proto2")throw tt(ft);case"repeated":Ut(ct,ft);break;case"optional":if(Be==="proto3")Ut(ct,"proto3_optional");else{if(Be!=="proto2")throw tt(ft);Ut(ct,"optional")}break;case"oneof":On(ct,ft);break;case"extensions":$t(ct.extensions||(ct.extensions=[]));break;case"reserved":$t(ct.reserved||(ct.reserved=[]),!0);break;default:if(Be==="proto2"||!Fe.test(ft))throw tt(ft);Xe(ft),Ut(ct,"optional");break}}),it.add(ct),it===qe&&rt.push(ct)}function Ut(it,lt,ct){var ht=We();if(ht==="group"){Zt(it,lt);return}for(;ht.endsWith(".")||Qe().startsWith(".");)ht+=We();if(!Fe.test(ht))throw tt(ht,"type");var ft=We();if(!Ne.test(ft))throw tt(ft,"name");ft=Ot(ft),Ye("=");var Rt=new t(ft,qt(We()),ht,lt,ct);
143if(zt(Rt,function(rn){if(rn==="option")Gt(Rt,rn),Ye(";");else throw tt(rn)},function(){Lt(Rt)}),lt==="proto3_optional"){var Jt=new d("_"+ft);Rt.setOption("proto3_optional",!0),Jt.add(Rt),it.add(Jt)}else it.add(Rt);it===qe&&rt.push(Rt)}function Zt(it,lt){if(Be>=2023)throw tt("group");var ct=We();if(!Ne.test(ct))throw tt(ct,"name");var ht=M.lcFirst(ct);ct===ht&&(ct=M.ucFirst(ct)),Ye("=");var ft=qt(We()),Rt=new e(ct);Rt.group=!0;var Jt=new t(ht,ft,ct,lt);Jt.filename=Me.filename,zt(Rt,function(rn){switch(rn){case"option":Gt(Rt,rn),Ye(";");break;case"required":case"repeated":Ut(Rt,rn);break;case"optional":Be==="proto3"?Ut(Rt,"proto3_optional"):Ut(Rt,"optional");break;case"message":nn(Rt,rn);break;case"enum":tn(Rt,rn);break;case"reserved":$t(Rt.reserved||(Rt.reserved=[]),!0);break;case"export":case"local":if(Be<"2024")throw tt(rn);switch(rn=We(),rn){case"message":nn(Rt,rn);break;case"enum":nn(Rt,rn);break;default:throw tt(rn)}break;default:throw tt(rn)}}),it.add(Rt).add(Jt)}function fn(it){Ye("<");var lt=We();if(E.mapKey[lt]===void 0)throw tt(lt,"type");Ye(",");var ct=We();if(!Fe.test(ct))throw tt(ct,"type");Ye(">");var ht=We();if(!Ne.test(ht))throw tt(ht,"name");Ye("=");var ft=new o(Ot(ht),qt(We()),lt,ct);zt(ft,function(Jt){if(Jt==="option")Gt(ft,Jt),Ye(";");else throw tt(Jt)},function(){Lt(ft)}),it.add(ft)}function On(it,lt){if(!Ne.test(lt=We()))throw tt(lt,"name");var ct=new d(Ot(lt));zt(ct,function(ft){ft==="option"?(Gt(ct,ft),Ye(";")):(Xe(ft),Ut(ct,"optional"))}),it.add(ct)}function tn(it,lt){if(!Ne.test(lt=We()))throw tt(lt,"name");var ct=new p(lt);zt(ct,function(ft){switch(ft){case"option":Gt(ct,ft),Ye(";");break;case"reserved":$t(ct.reserved||(ct.reserved=[]),!0),ct.reserved===void 0&&(ct.reserved=[]);break;default:bn(ct,ft)}}),it.add(ct),it===qe&&rt.push(ct)}function bn(it,lt){if(!Ne.test(lt))throw tt(lt,"name");Ye("=");var ct=qt(We(),!0),ht={options:void 0};ht.getOption=function(ft){return this.options[ft]},ht.setOption=function(ft,Rt){$.prototype.setOption.call(ht,ft,Rt)},ht.setParsedOption=function(){},zt(ht,function(Rt){if(Rt==="option")Gt(ht,Rt),Ye(";");else throw tt(Rt)},function(){Lt(ht)}),it.add(lt,ct,ht.comment,ht.parsedOptions||ht.options)}function Gt(it,lt){var ct,ht,ft=!0;for(lt==="option"&&(lt=We());lt!=="=";){if(lt==="("){var Rt=We();Ye(")"),lt="("+Rt+")"}if(ft){if(ft=!1,lt.includes(".")&&!lt.includes("(")){var Jt=lt.split(".");ct=Jt[0]+".",lt=Jt[1];continue}ct=lt}else ht=ht?ht+=lt:lt;lt=We()}var an=ht?ct.concat(ht):ct,rn=ut(it,an);ht=ht&&ht[0]==="."?ht.slice(1):ht,ct=ct&&ct[ct.length-1]==="."?ct.slice(0,-1):ct,kt(it,ct,rn,ht)}function ut(it,lt){if(Ye("{",!0)){for(var ct={};!Ye("}",!0);){if(!Ne.test(Tt=We()))throw tt(Tt,"name");if(Tt===null)throw tt(Tt,"end of input");var ht,ft=Tt;if(Ye(":",!0),Qe()==="{")ht=ut(it,lt+"."+Tt);else if(Qe()==="["){ht=[];var Rt;if(Ye("[",!0)){do Rt=gt(),ht.push(Rt);while(Ye(",",!0));Ye("]"),typeof Rt<"u"&&bt(it,lt+"."+Tt,Rt)}}else ht=gt(),bt(it,lt+"."+Tt,ht);var Jt=ct[ft];Jt&&(ht=[].concat(Jt).concat(ht)),ct[ft]=ht,Ye(",",!0),Ye(";",!0)}return ct}var an=gt();return bt(it,lt,an),an}function bt(it,lt,ct){if(qe===it&&/^features\./.test(lt)){He[lt]=ct;return}it.setOption&&it.setOption(lt,ct)}function kt(it,lt,ct,ht){it.setParsedOption&&it.setParsedOption(lt,ct,ht)}function Lt(it){if(Ye("[",!0)){do Gt(it,"option");while(Ye(",",!0));Ye("]")}return it}function Nt(it,lt){if(!Ne.test(lt=We()))throw tt(lt,"service name");var ct=new h(lt);zt(ct,function(ft){if(!Yt(ct,ft))if(ft==="rpc")xt(ct,ft);else throw tt(ft)}),it.add(ct),it===qe&&rt.push(ct)}function xt(it,lt){var ct=Ue(),ht=lt;if(!Ne.test(lt=We()))throw tt(lt,"name");var ft=lt,Rt,Jt,an,rn;if(Ye("("),Ye("stream",!0)&&(Jt=!0),!Fe.test(lt=We())||(Rt=lt,Ye(")"),Ye("returns"),Ye("("),Ye("stream",!0)&&(rn=!0),!Fe.test(lt=We())))throw tt(lt);an=lt,Ye(")");var dr=new y(ft,ht,Rt,an,Jt,rn);dr.comment=ct,zt(dr,function(fr){if(fr==="option")Gt(dr,fr),Ye(";");else throw tt(fr)}),it.add(dr)}function Vt(it,lt){if(!Fe.test(lt=We()))throw tt(lt,"reference");var ct=lt;zt(null,function(ft){switch(ft){case"required":case"repeated":Ut(it,ft,ct);break;case"optional":Be==="proto3"?Ut(it,"proto3_optional",ct):Ut(it,"optional",ct);break;default:if(Be==="proto2"||!Fe.test(ft))throw tt(ft);Xe(ft),Ut(it,"optional",ct);break}})}for(var Tt;(Tt=We())!==null;)switch(Tt){case"package":if(!ot)throw tt(Tt);cn();break;case"import":if(!ot)throw tt(Tt);en();break;case"syntax":if(!ot)throw tt(Tt);Wt();break;case"edition":if(!ot)throw tt(Tt);dn();break;case"option":Gt(qe,Tt),Ye(";",!0);break;default:if(Yt(qe,Tt)){ot=!1;continue}throw tt(Tt)}
143return Ct(),Me.filename=null,{package:dt,imports:st,weakImports:pt,root:ze}}return parse_1}var common_1,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common_1;hasRequiredCommon=1,common_1=i;var n=/\/|\./;function i(t,o){n.test(t)||(t="google/protobuf/"+t+".proto",o={nested:{google:{nested:{protobuf:{nested:o}}}}}),i[t]=o}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var e;return i("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:e}),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(e){this.emit=(...t)=>{e.emitCollecting(this,t)}}};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(t){return this.result.push(t),!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,"__esModule",{value:!0}),CollectorLast.CollectorLast=void 0;const n=requireCollector();let i=class extends n.Collector{handleResult(t){return this.result=t,!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(t){return this.result=t,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(t){return this.result=t,!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;
143class n{constructor(e){this.link=e}disconnect(){return this.link.unlink()}set enabled(e){this.link.setEnabled(e)}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 id{constructor(e,t,o){this.enabled=!0,this.newLink=!1,this.prev=e??this,this.next=t??this,this.order=o.order,this.isPublic=o.isPublic,this.callback=o.callback,this.onUnlink=o.onUnlink}isEnabled(){return this.enabled&&!this.newLink}setEnabled(e){this.enabled=e}unlink(){return this.callback?(delete this.callback,this.next.prev=this.prev,this.prev.next=this.next,this.onUnlink(),!0):!1}insert(e){const{order:t}=e;let o=this.prev;for(;o!==this&&!(o.order<=t);)o=o.prev;const d=new id(o,o.next,e);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(),e={order:0,isPublic:!0,onUnlink(){}};let t=class{constructor(){this.head=new i.SignalLink(null,null,e),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=t,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(e){this.list.push(e)}disconnectAll(){for(const e of this.list)e.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 e=requireCollectorArray();Object.defineProperty(n,"CollectorArray",{enumerable:!0,get:function(){return e.CollectorArray}});var t=requireCollectorLast();Object.defineProperty(n,"CollectorLast",{enumerable:!0,get:function(){return t.CollectorLast}});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$c=loglevelExports.getLogger("WidgetStateManager");class WidgetStateDict{constructor(){this.widgetStates=new Map}createState(i){const e=new WidgetState({id:i}
143);return this.widgetStates.set(i,e),e}getState(i){return this.widgetStates.get(i)}deleteState(i){this.widgetStates.delete(i)}removeInactive(i){this.widgetStates.forEach((e,t)=>{i.has(t)||this.widgetStates.delete(t)})}clear(){this.widgetStates.clear()}get isEmpty(){return this.widgetStates.size===0}createWidgetStatesMsg(){const i=new WidgetStates;return this.widgetStates.forEach(e=>i.widgets.push(e)),i}copyFrom(i){i.widgetStates.forEach((e,t)=>{this.widgetStates.set(t,e)})}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.props=i,this.formsData=createFormsData()}addFormClearedListener(i,e){return this.getOrCreateFormState(i).formCleared.connect(e)}setFormSubmitBehaviors(i,e,t=!0){const o=this.getOrCreateFormState(i);o.clearOnSubmit=e,o.enterToSubmit=t}submitForm(i,e,t){if(!isValidFormId(i))throw new Error(`invalid formID '${i}'`);const o=this.getOrCreateFormState(i),d=this.formsData.submitButtons.get(i);let p;t!==void 0?p=t: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(e),this.syncFormsWithPendingChanges(),p&&this.deleteWidgetState(p.id),o.clearOnSubmit&&o.formCleared.emit()}setChatInputValue(i,e,t,o){this.createWidgetState(i,t).chatInputValue=new ChatInputValue(e),this.pendingTriggerIds.add(i.id),this.scheduleFlush(o)}setTriggerValue(i,e,t,o){let d=this.getWidgetState(i);if(d===void 0&&(d=this.createWidgetState(i,e)),o===void 0)d.triggerValue=!0;else{const p=o;try{if(isNullOrUndefined(d.jsonTriggerValue))d.jsonTriggerValue=JSON.stringify([p]);else{const h=d.jsonTriggerValue,y=JSON.parse(h),$=Array.isArray(y)?y:[y];$.push(p),d.jsonTriggerValue=JSON.stringify($)}}catch(h){LOG$c.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(t)})}getBoolValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="boolValue")return e.boolValue}setBoolValue(i,e,t,o){this.createWidgetState(i,t).boolValue=e,this.onWidgetValueChanged(i.formId,t,o)}getIntValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="intValue")return requireNumberInt(e.intValue)}setIntValue(i,e,t,o){this.createWidgetState(i,t).intValue=e,this.onWidgetValueChanged(i.formId,t,o)}getDoubleValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="doubleValue")return e.doubleValue}setDoubleValue(i,e,t,o){this.createWidgetState(i,t).doubleValue=e,this.onWidgetValueChanged(i.formId,t,o)}getStringValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="stringValue")return e.stringValue}setStringValue(i,e,t,o){this.createWidgetState(i,t).stringValue=e,this.onWidgetValueChanged(i.formId,t,o)}setStringArrayValue(i,e,t,o){this.createWidgetState(i,t).stringArrayValue=new StringArray({data:e}),this.onWidgetValueChanged(i.formId,t,o)}getStringArrayValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="stringArrayValue"&¬NullOrUndefined(e.stringArrayValue)&¬NullOrUndefined(e.stringArrayValue.data))return e.stringArrayValue.data}getDoubleArrayValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="doubleArrayValue"&¬NullOrUndefined(e.doubleArrayValue)&¬NullOrUndefined(e.doubleArrayValue.data))return e.doubleArrayValue.data}setDoubleArrayValue(i,e,t,o){this.createWidgetState(i,t).doubleArrayValue=new DoubleArray({data:e}),this.onWidgetValueChanged(i.formId,t,o)}getIntArrayValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="intArrayValue"&¬NullOrUndefined(e.intArrayValue)&¬NullOrUndefined(e.intArrayValue.data))return e.intArrayValue.data.map(requireNumberInt)}setIntArrayValue(i,e,t,o){this.createWidgetState(i,t).intArrayValue=new SInt64Array({data:e}),this.onWidgetValueChanged(i.formId,t,o)}getJsonValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="jsonValue")return e.jsonValue}setJsonValue(i,e,t,o){this.createWidgetState(i,t).jsonValue=JSON.stringify(e),this.onWidgetValueChanged(i.formId,t,o)}setArrowValue(i,e,t,o){this.createWidgetState(i,t).arrowValue=e,this.onWidgetValueChanged(i.formId,t,o)}getArrowValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="arrowValue"&¬NullOrUndefined(e.arrowValue))return e.arrowValue}setBytesValue(i,e,t,o){this.createWidgetState(i,t).bytesValue=e,this.onWidgetValueChanged(i.formId,t,o)}getBytesValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="bytesValue")return e.bytesValue}setFileUploaderStateValue(i,e,t,o){this.createWidgetState(i,t).fileUploaderStateValue=e,this.onWidgetValueChanged(i.formId,t,o)}getFileUploaderStateValue(i){const e=this.getWidgetState(i);if(notNullOrUndefined(e)&&e.value==="fileUploaderStateValue")return e.fileUploaderStateValue}onWidgetValueChanged(i,e,t){isValidFormId(i)?this.syncFormsWithPendingChanges():e.fromUi&&this.scheduleFlush(t)}syncFormsWithPendingChanges(){const i=new Set;
143this.forms.forEach((e,t)=>{e.hasPendingChanges&&i.add(t)}),this.updateFormsData(e=>{e.formsWithPendingChanges=i})}sendUpdateWidgetsMessage(i,e=void 0){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg(),i,void 0,e)}getActiveWidgetStates(i){const e=new WidgetStates;return this.widgetStates.forEach(t=>{i.has(t.id)&&e.widgets.push(t)}),e}removeInactive(i){this.widgetStates.removeInactive(i),this.forms.forEach(e=>e.widgetStates.removeInactive(i)),this.elementStates.forEach((e,t)=>{i.has(t)||this.deleteElementState(t)})}createWidgetState(i,e){return(isValidFormId(i.formId)&&e.fromUi?this.getOrCreateFormState(i.formId).widgetStates:this.widgetStates).createState(i.id)}getWidgetState(i){if(isValidFormId(i.formId)){const e=this.forms.get(i.formId)?.widgetStates.getState(i.id);if(notNullOrUndefined(e))return e}return this.widgetStates.getState(i.id)}deleteWidgetState(i){this.widgetStates.deleteState(i)}getOrCreateFormState(i){let e=this.forms.get(i);return notNullOrUndefined(e)||(e=new FormState,this.forms.set(i,e)),e}setFormsWithUploadsInProgress(i){this.updateFormsData(e=>{e.formsWithUploads=i})}allowFormEnterToSubmit(i){if(!isValidFormId(i))return!1;const e=this.forms.get(i);if(e&&!e.enterToSubmit)return!1;const o=this.formsData.submitButtons.get(i)?.[0];return o?!o.disabled:!1}addSubmitButton(i,e){const t=this.formsData.submitButtons.get(i);if(t===void 0)this.setSubmitButtons(i,[e]);else{const o=Object.assign([],t);o.push(e),this.setSubmitButtons(i,o)}}removeSubmitButton(i,e){const t=this.formsData.submitButtons.get(i);if(t!==void 0){const o=Object.assign([],t),d=o.indexOf(e,0);d>-1&&o.splice(d,1),this.setSubmitButtons(i,o)}}setSubmitButtons(i,e){if(e.length<0)throw new Error(`Bad submitButtons length ${e.length} (must be >= 0)`);this.updateFormsData(t=>{t.submitButtons.set(i,e)})}updateFormsData(i){const e=produce(this.formsData,i);this.formsData!==e&&(this.formsData=e,this.props.formsDataChanged(this.formsData))}getElementState(i,e){return this.elementStates.get(i)?.get(e)}setElementState(i,e,t){this.elementStates.has(i)||this.elementStates.set(i,new Map),this.elementStates.get(i).set(e,t)}deleteElementState(i,e){notNullOrUndefined(e)?this.elementStates.get(i)?.delete(e):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$c.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(e=>this.deleteWidgetState(e)),this.pendingTriggerIds.clear(),this.triggerFlushResolvers.forEach(e=>e()),this.triggerFlushResolvers=[],this.flushScheduled=!1,this.scheduledFragmentId=void 0,this.hasFragmentIdConflict=!1},0))}}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:e}=this.props;i&&(hotkeys.filter=i),hotkeys.unbind(this.props.keyName),hotkeys(this.props.keyName,{splitKey:e},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,e){var{onKeyUp:t,disabled:o}=this.props;!o&&t&&t(e.shortcut,i,e)}onKeyDown(i,e){var{onKeyDown:t,allowRepeat:o,disabled:d}=this.props;this.isKeyDown&&!o||(this.isKeyDown=!0,this.handle=e,!d&&t&&t(e.shortcut,i,e))}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}}
143ReactHotkeys.defaultProps={filter(n){var i=n.target||n.srcElement,e=i.tagName;return!(i.isContentEditable||e==="INPUT"||e==="SELECT"||e==="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$2=styled("header",{target:"est0q591"})(({theme:n,isTransparentBackground:i})=>({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:e,navigation:t,rightContent:o,logoComponent:d,showToolbar:p})=>{const{activeTheme:h}=reactExports.useContext(ThemeContext),y=d&&!i,$=n&&!i,E=p&&o,M=y||$||t||E;return jsx$1(StyledHeader$2,{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,$&&jsx$1(StyledOpenSidebarButton,{children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:e,"data-testid":"stExpandSidebarButton",children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_right:",color:h.emotion.colors.fadedText60})})})]}),t,E?jsx$1(StyledHeaderRightSection,{children:o}):null]})}):null})},getSidebarHorizontalSpacing=(n,i)=>`max( 144 ${i}px, 145 calc(${n.spacing.xl} - ${i}px) 146 )`,StyledSidebar=styled("section",{target:"e3rr4jk0"})(({theme:n,isCollapsed:i,adjustTop:e,sidebarWidth:t,windowInnerWidth:o})=>{const d=i?0:Math.min(200,o),p=i?0:Math.min(600,o*.9);return{position:"relative",top:e?n.sizes.headerDecorationHeight:n.spacing.none,backgroundColor:n.colors.bgColor,color:n.colors.bodyText,colorScheme:hasLightBackgroun
146dColor(n)?"light":"dark",zIndex:n.zIndices.header+1,minWidth:d,maxWidth:p,transform:i?`translateX(-${t}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${n.breakpoints.md})`]:{boxShadow:`-2rem 0 2rem 2rem ${i?"transparent":"#00000029"}`},"@media print":{display:i?"none":"initial",height:"auto !important",maxHeight:"99%",boxShadow:"none"}}}),StyledSidebarUserContent=styled("div",{target:"e3rr4jk1"})(({hasPageNavAbove:n,theme:i})=>({paddingTop:n?i.spacing.twoXL:0,paddingBottom:i.sizes.sidebarTopSpace})),StyledSidebarContent=styled("div",{target:"e3rr4jk2"})(({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:"e3rr4jk3"})(({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:"e3rr4jk4"})(({theme:n})=>({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:n.spacing.lg,height:n.sizes.headerHeight})),StyledLogoLink=styled("a",{target:"e3rr4jk5"})({"&:hover":{opacity:"0.7"}}),StyledLogoButton=styled("button",{target:"e3rr4jk6"})({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:"e3rr4jk7"})(({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%"})),StyledNoLogoSpacer=styled("div",{target:"e3rr4jk8"})(({theme:n})=>({height:n.sizes.largeLogoHeight})),StyledCollapseSidebarButton=styled("div",{target:"e3rr4jk9"})(({showSidebarCollapse:n,theme:i})=>({display:"inline",visibility:n?"visible":"hidden",marginLeft:i.spacing.sm,transition:"left 300ms",transitionDelay:"left 300ms",color:hasLightBackgroun
146dColor(i)?i.colors.fadedText60:i.colors.bodyText,lineHeight:"0","@media print":{visibility:"hidden"},[`@media (max-width: ${i.breakpoints.sm})`]:{visibility:"visible"}})),LOG$b=loglevelExports.getLogger("LogoComponent"),LogoComponent=({appLogo:n,endpoints:i,collapsed:e=!1,componentName:t="Logo",dataTestId:o="stLogo"})=>{const{resourceCrossOriginMode:d}=reactExports.useContext(LibConfigContext),{appPages:p,onPageChange:h,currentPageScriptHash:y}=reactExports.useContext(NavigationContext),$=reactExports.useMemo(()=>p.find(Ce=>Ce.isDefault),[p]),E=p.length>1,M=$?.pageScriptHash===y,H=reactExports.useCallback(()=>{$?.pageScriptHash&&!M&&h($.pageScriptHash)},[$,h,M]);if(!n)return null;const Z=Ce=>{LOG$b.error(`Client Error: ${t} source error - ${Ce}`),i.sendClientErrorToHost(t,"Logo source failed to load","onerror triggered",Ce)},be=e&&n.iconImage?n.iconImage:n.image,ye=i.buildMediaURL(be),we=getCrossOriginAttribute(d,be),xe=jsx$1(StyledLogo,{src:ye,size:n.size,alt:"Logo",className:"stLogo","data-testid":o,onError:Ce=>Z(ye),crossOrigin:we});return n.link?jsx$1(StyledLogoLink,{href:n.link,target:"_blank",rel:"noreferrer","data-testid":"stLogoLink",children:xe}):E&&$&&!M?jsx$1(StyledLogoButton,{onClick:H,"data-testid":"stLogoLink","aria-label":"Navigate to home page",children:xe}):jsx$1("div",{children:xe})},getNavTextColor=(n,i,e=!1,t)=>{if(e)return n.colors.fadedText40;if(t)return n.colors.bodyText;
146const o=hasLightBackgroundColor(n);return i?n.colors.bodyText:o?transparentize(n.colors.bodyText,.2):transparentize(n.colors.bodyText,.25)},StyledSidebarNavContainer=styled("div",{target:"e1pqlk430"})(({theme:n})=>({position:"relative",fontFamily:n.genericFonts.bodyFont})),StyledSidebarNavItems=styled("ul",{target:"e1pqlk431"})(({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:"e1pqlk432"})(({disabled:n})=>({display:"flex",flexDirection:"column",cursor:n?"not-allowed":"pointer"})),StyledSidebarNavIcon=styled("span",{target:"e1pqlk433"})(({theme:n,isActive:i})=>({display:"inline-flex",span:{fontWeight:i?n.fontWeights.bold:n.fontWeights.normal}})),StyledSidebarNavLinkListItem=styled("li",{target:"e1pqlk434"})(({theme:n})=>({marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS})),StyledSidebarNavLink=styled("a",{target:"e1pqlk435"})(({theme:n,isActive:i,disabled:e})=>{const t={textDecoration:"none",fontWeight:i?n.fontWeights.bold:n.fontWeights.normal};return{...t,display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,borderRadius:n.radii.default,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",...e&&{pointerEvents:"none"},"&:hover":{backgroundColor:n.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{...t},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"@media print":{paddingLeft:n.spacing.none}}}),StyledSidebarLinkText=styled("span",{target:"e1pqlk436"})(({isActive:n,theme:i,disabled:e,isTopNav:t,label:o})=>({color:getNavTextColor(i,n,e,t),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:"e1pqlk437"})(({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:"e1pqlk438"})(()=>({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0})),StyledSidebarNavSectionHeader=styled("header",{target:"e1pqlk439"})(({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:"e1pqlk4310"})(({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:"e1pqlk4311"})(({theme:n})=>({paddingTop:n.spacing.lg,borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledNavSectionContainer=styled("div",{target:"e1pqlk4312"})(({theme:n})=>({"&:not(:first-child)":{marginTop:n.spacing.lg}})),StyledOverflowContainer=styled("div",{target:"e1pqlk4313"})(({theme:n})=>({display:"flex",alignItems:"center",width:"100%",flexShrink:1,overflow:"hidden",padding:`0 ${n.spacing.lg}`})),StyledNavSection=styled("div",{target:"e1pqlk4314"})(({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:"e1pqlk4315"})(({theme:n})=>({marginRight:n.spacing.twoXS,"&:not(:first-of-type)":{marginLeft:n.spacing.twoXS}})),StyledTopNavSidebarNavLinkContainer=styled("div",{target:"e1pqlk4316"})(({theme:n})=>({margin:`${n.spacing.twoXS} ${n.spacing.sm}`})),StyledNavSectionText=styled("span",{target:"e1pqlk4317"})(()=>({whiteSpace:"nowrap"})),StyledSectionName=styled("div",{target:"e1pqlk4318"})(({theme:n})=>({marginLeft:n.spacing.sm,marginTop:n.spacing.sm,marginBottom:n.spacing.sm})),StyledPopoverContent=styled("div",{target:"e1pqlk4319"})(({theme:n})=>({padding:`${n.spacing.twoXS} 0`,fontSize:n.fontSizes.sm})),StyledIconContainer=styled("div",{target:"e1pqlk4320"})(({theme:n})=>({marginLeft:n.spacing.twoXS})),NavSection=({header:n="",children:i,isExpanded:e,onToggle:t})=>jsxs(StyledNavSectionContainer,{children:[n&&jsxs(StyledSidebarNavSectionHeader,{"data-testid":"stNavSectionHeader",onClick:t,isExpanded:e,children:[jsx$1(StyledNavSectionHeaderText,{children:n}),jsx$1(StyledChevronContainer,{isExpanded:e,children:jsx$1(DynamicIcon,{iconValue:":material/expand_more:",size:"lg"})})]}),e&&i]}),SidebarNavLink=({isActive:n,pageUrl:i,icon:e,onClick:t,isTopNav:o,isInDropdown:d,children:p,widgetsDisabled:h})=>{const y=useEmotionTheme(),$=h;let E;return o&&d?E="stTopNavDropdownLink":o?E="stTopNavLink":E="stSidebarNavLink",jsx$1(StyledSidebarNavLinkContainer,{disabled:$,"data-testid":o?"stTopNavLinkContainer":"stSidebarNavLinkContainer",children:jsxs(StyledSidebarNavLink,{"data-testid":E,isActive:n,disabled:$,href:i,onClick:t,"aria-current":n?"page":void 0,children:[e?.length?jsx$1(StyledSidebarNavIcon,{isActive:n,children:jsx$1(DynamicIcon,{size:"base",iconValue:e,color:!n&&isMaterialIcon(e)?y.colors.fadedText60:y.colors.bodyText})}):null,jsx$1(StyledSidebarLinkText,{isActive:n,disabled:$,isTopNav:o,label:p,children:p})]})})};function shouldShowNavigation(n,i){return n.length<=1?!1:(i.length===0||i.length>1,!0)}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 e=n[""]||[],t={};
146return Object.entries(n).forEach(([o,d])=>{o&&o!==""&&o!=="undefined"&&(t[o]=d)}),{individualPages:e,sections:t}}const COLLAPSE_THRESHOLD=12,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED=10,LOG$a=loglevelExports.getLogger("SidebarNav");function NavLink({pageUrl:n,page:i,isActive:e,onClick:t,widgetsDisabled:o}){const d=i.pageName;return jsx$1(StyledSidebarNavLinkListItem,{children:jsx$1(SidebarNavLink,{isActive:e,pageUrl:n,icon:i.icon,onClick:t,widgetsDisabled:o,children:d})})}function generateNavSections(n,i,e,t,o,d){const p=[];let h=d;return Object.entries(n).forEach(([y,$])=>{const E=[...$];let M=E;const H=t[y];if(i){const Z=NUM_PAGES_TO_SHOW_WHEN_COLLAPSED-h;Z<=0?M=[]:E.length>Z&&(M=E.slice(0,Z))}H&&(h+=M.length),M.length>0&&p.push(jsx$1(NavSection,{header:y,isExpanded:H,onToggle:()=>o(y),children:M.map(e)},y))}),{sections:p,updatedPageCount:h}}const SidebarNav=({endpoints:n,collapseSidebar:i,hasSidebarElements:e,widgetsDisabled:t})=>{const[o,d]=reactExports.useState(!1),{expandSidebarNav:p}=reactExports.useContext(SidebarConfigContext),{pageLinkBaseUrl:h,appPages:y,onPageChange:$,currentPageScriptHash:E}=reactExports.useContext(NavigationContext),M=`stSidebarSectionsState-${h}`,[H,Z]=reactExports.useState(null),be=reactExports.useMemo(()=>processNavigationStructure(groupPagesBySection(y)),[y]),ye=reactExports.useMemo(()=>{if(!(Object.keys(be.sections).length>0))return y.length;let Ke=be.individualPages.length;return Object.entries(be.sections).forEach(([Ve,je])=>{H?.[Ve]&&(Ke+=je.length)}),Ke},[y.length,H,be]);reactExports.useEffect(()=>{const ze=localStorageAvailable()&&window.localStorage.getItem("sidebarNavState")==="expanded";!o&&(p||ze)&&d(!0)},[o,p]),reactExports.useEffect(()=>{if(localStorageAvailable()){const ze=window.localStorage.getItem(M);let Ke={};if(ze)try{Ke=JSON.parse(ze)}catch(je){Ke={},LOG$a.warn("Could not parse sidebar nav state from localStorage",je)}const Ve=Object.keys(be.sections).reduce((je,We)=>(je[We]=Ke[We]??!0,je),{});Z(Ve)}else{const ze=Object.keys(be.sections).reduce((Ke,Ve)=>(Ke[Ve]=!0,Ke),{});Z(ze)}},[be.sections,M]),reactExports.useEffect(()=>{localStorageAvailable()&&H&&window.localStorage.setItem(M,JSON.stringify(H))},[H,M]);const we=reactExports.useCallback(ze=>{Z(Ke=>Ke?{...Ke,[ze]:!Ke[ze]}:null)},[]),xe=reactExports.useCallback(()=>{const ze=!o;localStorageAvailable()&&(ze?window.localStorage.setItem("sidebarNavState","expanded"):window.localStorage.removeItem("sidebarNavState")),d(ze)},[o]),Ce=reactExports.useCallback((ze,Ke)=>{const Ve=n.buildAppPageURL(h,ze),je=ze.pageScriptHash===E;return jsx$1(NavLink,{pageUrl:Ve,page:ze,isActive:je,onClick:We=>{We.preventDefault(),$(ze.pageScriptHash),isMobile()&&i()},widgetsDisabled:t},`${ze.pageName}-${Ke}`)},[i,E,n,$,h,t]);if(!H)return null;const Ne=[],Fe=e&&ye>COLLAPSE_THRESHOLD&&!p,Me=Fe&&!o;let Le=0;if(be.individualPages.length>0){const ze=Me?be.individualPages.slice(0,NUM_PAGES_TO_SHOW_WHEN_COLLAPSED):be.individualPages;Ne.push(...ze.map(Ce)),Le+=ze.length}if(Object.keys(be.sections).length>0){const ze=generateNavSections(be.sections,Me,Ce,H,we,Le);Ne.push(...ze.sections)}return jsxs(StyledSidebarNavContainer,{"data-testid":"stSidebarNav",children:[jsx$1(StyledSidebarNavItems,{"data-testid":"stSidebarNavItems",children:Ne}),Fe&&jsx$1(StyledViewButton,{onClick:xe,"data-testid":"stSidebarNavViewButton",children:o?"View less":`View ${ye-NUM_PAGES_TO_SHOW_WHEN_COLLAPSED} more`}),e&&jsx$1(StyledSidebarNavSeparator,{"data-testid":"stSidebarNavSeparator"})]})};function ownKeys$2(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread2(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$2(Object(e),!0).forEach(function(t){_defineProperty$s(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$2(Object(e)).forEac
146h(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _iterableToArrayLimit(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t,o,d,p,h=[],y=!0,$=!1;try{if(d=(e=e.call(n)).next,i===0){if(Object(e)!==e)return;y=!1}else for(;!(y=(t=d.call(e)).done)&&(h.push(t.value),h.length!==i);y=!0);}catch(E){$=!0,o=E}finally{try{if(!y&&e.return!=null&&(p=e.return(),Object(p)!==p))return}finally{if($)throw o}}return h}}function _arrayLikeToArray(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=Array(i);e<i;e++)t[e]=n[e];return t}function _unsupportedIterableToArray(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray(n,i);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(n,i):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 147In 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()}function _objectWithoutProperties$1(n,i){if(n==null)return{};var e,t,o=_objectWithoutPropertiesLoose$p(n,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(t=0;t<d.length;t++)e=d[t],i.indexOf(e)===-1&&{}.propertyIsEnumerable.call(n,e)&&(o[e]=n[e])}return o}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$e(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]:{},e=[];return React.Children.forEach(n,function(t){t==null&&!i.keepEmpty||(Array.isArray(t)?e=e.concat(toArray(t)):isFragment(t)&&t.props?e=e.concat(toArray(t.props.children,i)):e.push(t))}),e}function isDOM(n){return n instanceof HTMLElement||n instanceof SVGElement}function getDOM(n){return n&&_typeof$e(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 e;return(e=ReactDOM.findDOMNode)===null||e===void 0?void 0:e.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"),e=Symbol.for("react.fragment"),t=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"),$=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),be;be=Symbol.for("react.module.reference");function ye(we){if(typeof we=="object"&&we!==null){var xe=we.$$typeof;switch(xe){case n:switch(we=we.type,we){case e:case o:case t:case $:case E:return we;default:switch(we=we&&we.$$typeof,we){case h:case p:case y:case H: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=e,reactIs_production_min.Lazy=H,reactIs_production_min.Memo=M,reactIs_production_min.Portal=i,reactIs_production_min.Profiler=o,reactIs_production_min.StrictMode=t,reactIs_production_min.Suspense=$,reactIs_production_min.SuspenseList=E,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(we){return ye(we)===p},reactIs_production_min.isContextProvider=function(we){return ye(we)===d},reactIs_production_min.isElement=function(we){return typeof we=="object"&&we!==null&&we.$$typeof===n},reactIs_production_min.isForwardRef=function(we){return ye(we)===y},reactIs_production_min.isFragment=function(we){return ye(we)===e},reactIs_production_min.isLazy=function(we){return ye(we)===H},reactIs_production_min.isMemo=function(we){return ye(we)===M},reactIs_production_min.isPortal=function(we){return ye(we)===i},reactIs_production_min.isProfiler=function(we){return ye(we)===o},reactIs_production_min.isStrictMode=function(we){return ye(we)===t},reactIs_production_min.isSuspense=function(we){return ye(we)===$},reactIs_production_min.isSuspenseList=function(we){return ye(we)===E},reactIs_production_min.isValidElementType=function(we){return typeof we=="string"||typeof we=="function"||we===e||we===o||we===t||we===$||we===E||we===Z||typeof we=="object"&&we!==null&&(we.$$typeof===H||we.$$typeof===M||we.$$typeof===d||we.$$typeof===p||we.$$typeof===y||we.$$typeof===be||we.getModuleId!==void 0)},reactIs_production_min.typeOf=ye,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,e){var t=reactExports.useRef({});return(!("value"in t.current)||e(t.current.condition,i))&&(t.current.value=n(),t.current.condition=i),t.current.value}var ReactMajorVersion=Number(reactExports.version.split(".")[0]),fillRef=function n(i,e){typeof i=="function"?i(e):_typeof$e(i)==="object"&&i&&"current"in i&&(i.current=e)},composeRef=function n(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];var o=e.filter(Boolean);return o.length<=1?o[0]:function(d){e.forEach(function(p){fillRef(p,d)})}},useComposeRef=function n(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return useMemo(function(){return composeRef.apply(void 0,e)},e,function(o,d){return o.length!==d.length||o.every(function(p,h){return p!==d[h]})})}
147,supportRef=function n(i){var e,t;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"&&!((e=o.prototype)!==null&&e!==void 0&&e.render)&&o.$$typeof!==reactIsExports.ForwardRef||typeof i=="function"&&!((t=i.prototype)!==null&&t!==void 0&&t.render)&&i.$$typeof!==reactIsExports.ForwardRef)};function isReactElement(n){return reactExports.isValidElement(n)&&!isFragment(n)}var getNodeRef=function n(i){if(i&&isReactElement(i)){var e=i;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null},CollectionContext=reactExports.createContext(null);function Collection(n){var i=n.children,e=n.onBatchResize,t=reactExports.useRef(0),o=reactExports.useRef([]),d=reactExports.useContext(CollectionContext),p=reactExports.useCallback(function(h,y,$){t.current+=1;var E=t.current;o.current.push({size:h,element:y,data:$}),Promise.resolve().then(function(){E===t.current&&(e?.(o.current),o.current=[])}),d?.(h,y,$)},[e,d]);return reactExports.createElement(CollectionContext.Provider,{value:p},i)}var MapShim=(function(){if(typeof Map<"u")return Map;function n(i,e){var t=-1;return i.some(function(o,d){return o[0]===e?(t=d,!0):!1}),t}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(e){var t=n(this.__entries__,e),o=this.__entries__[t];return o&&o[1]},i.prototype.set=function(e,t){var o=n(this.__entries__,e);~o?this.__entries__[o][1]=t:this.__entries__.push([e,t])},i.prototype.delete=function(e){var t=this.__entries__,o=n(t,e);~o&&t.splice(o,1)},i.prototype.has=function(e){return!!~n(this.__entries__,e)},i.prototype.clear=function(){this.__entries__.splice(0)},i.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var o=0,d=this.__entries__;o<d.length;o++){var p=d[o];e.call(t,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 e=!1,t=!1,o=0;function d(){e&&(e=!1,n()),t&&h()}function p(){requestAnimationFrame$1(d)}function h(){var y=Date.now();if(e){if(y-o<trailingTimeout)return;t=!0}else e=!0,t=!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 e=this.observers_,t=e.indexOf(i);~t&&e.splice(t,1),!e.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(e){return e.gatherActive(),e.hasActive()});return i.forEach(function(e){return e.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 e=i.propertyName,t=e===void 0?"":e,o=transitionKeys.some(function(d){return!!~t.indexOf(d)});o&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,593 bytes, line 147
147w n),this.instance_},n.instance_=null,n})(),defineConfigurable=(function(n,i){for(var e=0,t=Object.keys(i);e<t.length;e++){var o=t[e];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=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];return i.reduce(function(t,o){var d=n["border-"+o+"-width"];return t+toFloat(d)},0)}function getPaddings(n){for(var i=["top","right","bottom","left"],e={},t=0,o=i;t<o.length;t++){var d=o[t],p=n["padding-"+d];e[d]=toFloat(p)}return e}function getSVGContentRect(n){var i=n.getBBox();return createRectInit(0,0,i.width,i.height)}function getHTMLElementContentRect(n){var i=n.clientWidth,e=n.clientHeight;if(!i&&!e)return emptyRect;var t=getWindowOf(n).getComputedStyle(n),o=getPaddings(t),d=o.left+o.right,p=o.top+o.bottom,h=toFloat(t.width),y=toFloat(t.height);if(t.boxSizing==="border-box"&&(Math.round(h+d)!==i&&(h-=getBordersSize(t,"left","right")+d),Math.round(y+p)!==e&&(y-=getBordersSize(t,"top","bottom")+p)),!isDocumentElement(n)){var $=Math.round(h+d)-i,E=Math.round(y+p)-e;Math.abs($)!==1&&(h-=$),Math.abs(E)!==1&&(y-=E)}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,e=n.y,t=n.width,o=n.height,d=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,p=Object.create(d.prototype);return defineConfigurable(p,{x:i,y:e,width:t,height:o,top:e,right:i+t,bottom:o+e,left:i}),p}function createRectInit(n,i,e,t){return{x:n,y:i,width:e,height:t}}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,e){var t=createReadOnlyRect(e);defineConfigurable(this,{target:i,contentRect:t})}return n})(),ResizeObserverSPI=(function(){function n(i,e,t){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_=e,this.callbackCtx_=t}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 e=this.observations_;e.has(i)||(e.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 e=this.observations_;e.has(i)&&(e.delete(i),e.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(e){e.isActive()&&i.activeObservations_.push(e)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var i=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new ResizeObserverEntry(t.target,t.broadcastRect())});this.callback_.call(i,e,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.");
147if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=ResizeObserverController.getInstance(),t=new ResizeObserverSPI(i,e,this);observers.set(this,t)}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 e,t=i.target;(e=elementListeners.get(t))===null||e===void 0||e.forEach(function(o){return o(t)})})}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 e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,toPropertyKey(t.key),t)}}function _createClass(n,i,e){return i&&_defineProperties(n.prototype,i),e&&_defineProperties(n,e),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$d(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$e(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 e,t=_getPrototypeOf(n);if(i){var o=_getPrototypeOf(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return _possibleConstructorReturn(this,e)}}var DomWrapper=(function(n){_inherits(e,n);var i=_createSuper(e);function e(){return _classCallCheck(this,e),i.apply(this,arguments)}return _createClass(e,[{key:"render",value:function(){return this.props.children}}]),e})(reactExports.Component);function SingleObserver(n,i){var e=n.children,t=n.disabled,o=reactExports.useRef(null),d=reactExports.useRef(null),p=reactExports.useContext(CollectionContext),h=typeof e=="function",y=h?e(o):e,$=reactExports.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),E=!h&&reactExports.isValidElement(y)&&supportRef(y),M=E?getNodeRef(y):null,H=useComposeRef(M,o),Z=function(){var xe;return findDOMNode(o.current)||(o.current&&_typeof$e(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 be=reactExports.useRef(n);be.current=n;var ye=reactExports.useCallback(function(we){var xe=be.current,Ce=xe.onResize,Ne=xe.data,Fe=we.getBoundingClientRect(),Me=Fe.width,Le=Fe.height,ze=we.offsetWidth,Ke=we.offsetHeight,Ve=Math.floor(Me),je=Math.floor(Le);if($.current.width!==Ve||$.current.height!==je||$.current.offsetWidth!==ze||$.current.offsetHeight!==Ke){var We={width:Ve,height:je,offsetWidth:ze,offsetHeight:Ke};$.current=We;var Xe=ze===Math.round(Me)?Me:ze,Qe=Ke===Math.round(Le)?Le:Ke,Ye=_objectSpread2(_objectSpread2({},We),{},{offsetWidth:Xe,offsetHeight:Qe});p?.(Ye,we,Ne),Ce&&Promise.resolve().then(function(){Ce(Ye,we)})}},[]);return reactExports.useEffect(function(){var we=Z();return we&&!t&&observe(we,ye),function(){return unobserve(we,ye)}},[o.current,t]),reactExports.createElement(DomWrapper,{ref:d},E?reactExports.cloneElement(y,{ref:H}):y)}var RefSingleObserver=reactExports.forwardRef(SingleObserver),INTERNAL_PREFIX_KEY="rc-observer-key";function ResizeObserver$1(n,i){var e=n.children,t=typeof e=="function"?[e]:toArray(e);return t.map(function(o,d){var p=o?.key||"".concat(INTERNAL_PREFIX_KEY,"-").concat(d);return reactExports.createElement(RefSingleObserver,_extends$A({},n,{key:p,ref:d===0?i:void 0}),o)})}
147var 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,e){var t=reactExports.useRef(!0);useInternalLayoutEffect(function(){return i(t.current)},e),useInternalLayoutEffect(function(){return t.current=!1,function(){t.current=!0}},[])},_excluded$4=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(n,i){var e=n.prefixCls,t=n.invalidate,o=n.item,d=n.renderItem,p=n.responsive,h=n.responsiveDisabled,y=n.registerSize,$=n.itemKey,E=n.className,M=n.style,H=n.children,Z=n.display,be=n.order,ye=n.component,we=ye===void 0?"div":ye,xe=_objectWithoutProperties$1(n,_excluded$4),Ce=p&&!Z;function Ne(Ke){y($,Ke)}reactExports.useEffect(function(){return function(){Ne(null)}},[]);var Fe=d&&o!==UNDEFINED?d(o,{index:be}):H,Me;t||(Me={opacity:Ce?0:1,height:Ce?0:UNDEFINED,overflowY:Ce?"hidden":UNDEFINED,order:p?be:UNDEFINED,pointerEvents:Ce?"none":UNDEFINED,position:Ce?"absolute":UNDEFINED});var Le={};Ce&&(Le["aria-hidden"]=!0);var ze=reactExports.createElement(we,_extends$A({className:classNames(!t&&e,E),style:_objectSpread2(_objectSpread2({},Me),M)},Le,xe,{ref:i}),Fe);return p&&(ze=reactExports.createElement(RefResizeObserver,{onResize:function(Ve){var je=Ve.offsetWidth;Ne(je)},disabled:h},ze)),ze}var Item=reactExports.forwardRef(InternalItem);Item.displayName="Item";function useEvent(n){var i=reactExports.useRef();i.current=n;var e=reactExports.useCallback(function(){for(var t,o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return(t=i.current)===null||t===void 0?void 0:t.call.apply(t,[i].concat(d))},[]);return e}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 e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rafUUID+=1;var t=rafUUID;function o(d){if(d===0)cleanup(t),i();else{var p=raf(function(){o(d-1)});rafIds.set(t,p)}}return o(e),t};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(t){n.current||(n.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){n.current.forEach(function(o){o()}),n.current=null})})),n.current.push(t)};return i}function useEffectState(n,i){var e=reactExports.useState(i),t=_slicedToArray(e,2),o=t[0],d=t[1],p=useEvent(function(h){n(function(){d(h)})});return[o,p]}var OverflowContext=React.createContext(null),_excluded$3=["component"],_excluded2$1=["className"],_excluded3=["className"],InternalRawItem=function n(i,e){var t=reactExports.useContext(OverflowContext);if(!t){var o=i.component,d=o===void 0?"div":o,p=_objectWithoutProperties$1(i,_excluded$3);return reactExports.createElement(d,_extends$A({},p,{ref:e}))}var h=t.className,y=_objectWithoutProperties$1(t,_excluded2$1),$=i.className,E=_objectWithoutProperties$1(i,_excluded3);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item,_extends$A({ref:e,className:classNames(h,$)},y,E)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$2=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVA
147LIDATE="invalidate";function defaultRenderRest(n){return"+ ".concat(n.length," ...")}function Overflow(n,i){var e=n.prefixCls,t=e===void 0?"rc-overflow":e,o=n.data,d=o===void 0?[]:o,p=n.renderItem,h=n.renderRawItem,y=n.itemKey,$=n.itemWidth,E=$===void 0?10:$,M=n.ssr,H=n.style,Z=n.className,be=n.maxCount,ye=n.renderRest,we=n.renderRawRest,xe=n.prefix,Ce=n.suffix,Ne=n.component,Fe=Ne===void 0?"div":Ne,Me=n.itemComponent,Le=n.onVisibleChange,ze=_objectWithoutProperties$1(n,_excluded$2),Ke=M==="full",Ve=useBatcher(),je=useEffectState(Ve,null),We=_slicedToArray(je,2),Xe=We[0],Qe=We[1],Ye=Xe||0,Ue=useEffectState(Ve,new Map),ot=_slicedToArray(Ue,2),dt=ot[0],st=ot[1],pt=useEffectState(Ve,0),Be=_slicedToArray(pt,2),qe=Be[0],rt=Be[1],He=useEffectState(Ve,0),Ot=_slicedToArray(He,2),Ct=Ot[0],tt=Ot[1],wt=useEffectState(Ve,0),gt=_slicedToArray(wt,2),$t=gt[0],Mt=gt[1],qt=useEffectState(Ve,0),cn=_slicedToArray(qt,2),en=cn[0],Wt=cn[1],dn=reactExports.useState(null),Yt=_slicedToArray(dn,2),zt=Yt[0],nn=Yt[1],Ut=reactExports.useState(null),Zt=_slicedToArray(Ut,2),fn=Zt[0],On=Zt[1],tn=reactExports.useMemo(function(){return fn===null&&Ke?Number.MAX_SAFE_INTEGER:fn||0},[fn,Xe]),bn=reactExports.useState(!1),Gt=_slicedToArray(bn,2),ut=Gt[0],bt=Gt[1],kt="".concat(t,"-item"),Lt=Math.max(qe,Ct),Nt=be===RESPONSIVE,xt=d.length&&Nt,Vt=be===INVALIDATE,Tt=xt||typeof be=="number"&&d.length>be,it=reactExports.useMemo(function(){var Ht=d;return xt?Xe===null&&Ke?Ht=d:Ht=d.slice(0,Math.min(d.length,Ye/E)):typeof be=="number"&&(Ht=d.slice(0,be)),Ht},[d,E,Xe,be,xt]),lt=reactExports.useMemo(function(){return xt?d.slice(tn+1):d.slice(it.length)},[d,it,xt,tn]),ct=reactExports.useCallback(function(Ht,Kt){var hn;return typeof y=="function"?y(Ht):(hn=y&&Ht?.[y])!==null&&hn!==void 0?hn:Kt},[y]),ht=reactExports.useCallback(p||function(Ht){return Ht},[p]);function ft(Ht,Kt,hn){fn===Ht&&(Kt===void 0||Kt===zt)||(On(Ht),hn||(bt(Ht<d.length-1),Le?.(Ht)),Kt!==void 0&&nn(Kt))}function Rt(Ht,Kt){Qe(Kt.clientWidth)}function Jt(Ht,Kt){st(function(hn){var Nn=new Map(hn);return Kt===null?Nn.delete(Ht):Nn.set(Ht,Kt),Nn})}function an(Ht,Kt){tt(Kt),rt(Ct)}function rn(Ht,Kt){Mt(Kt)}function dr(Ht,Kt){Wt(Kt)}function qr(Ht){return dt.get(ct(it[Ht],Ht))}useLayoutEffect(function(){if(Ye&&typeof Lt=="number"&&it){var Ht=$t+en,Kt=it.length,hn=Kt-1;if(!Kt){ft(0,null);return}for(var Nn=0;Nn<Kt;Nn+=1){var yr=qr(Nn);if(Ke&&(yr=yr||0),yr===void 0){ft(Nn-1,void 0,!0);break}if(Ht+=yr,hn===0&&Ht<=Ye||Nn===hn-1&&Ht+qr(hn)<=Ye){ft(hn,null);break}else if(Ht+Lt>Ye){ft(Nn-1,Ht-yr-en+Ct);break}}Ce&&qr(0)+en>Ye&&nn(null)}},[Ye,dt,Ct,$t,en,ct,it]);var fr=ut&&!!lt.length,Li={};zt!==null&&xt&&(Li={position:"absolute",left:zt,top:0});var pr={prefixCls:kt,responsive:xt,component:Me,invalidate:Vt},Mi=h?function(Ht,Kt){var hn=ct(Ht,Kt);return reactExports.createElement(OverflowContext.Provider,{key:hn,value:_objectSpread2(_objectSpread2({},pr),{},{order:Kt,item:Ht,itemKey:hn,registerSize:Jt,display:Kt<=tn})},h(Ht,Kt))}:function(Ht,Kt){var hn=ct(Ht,Kt);return reactExports.createElement(Item,_extends$A({},pr,{order:Kt,key:hn,item:Ht,renderItem:ht,itemKey:hn,registerSize:Jt,display:Kt<=tn}))},Di={order:fr?tn:Number.MAX_SAFE_INTEGER,className:"".concat(kt,"-rest"),registerSize:an,display:fr},hr=ye||defaultRenderRest,Bi=we?reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},pr),Di)},we(lt)):reactExports.createElement(Item,_extends$A({},pr,Di),typeof hr=="function"?hr(lt):hr),xr=reactExports.createElement(Fe,_extends$A({className:classNames(!Vt&&t,Z),style:H,ref:i},ze),xe&&reactExports.createElement(Item,_extends$A({},pr,{responsive:Nt,responsiveDisabled:!xt,order:-1,className:"".concat(kt,"-prefix"),registerSize:rn,display:!0}),xe),it.map(Mi),Tt?Bi:null,Ce&&reactExports.createElement(Item,_extends$A({},pr,{responsive:Nt,responsiveDisabled:!xt,order:tn,className:"".concat(kt,"-suffix"),registerSize:dr,display:!0,style:Li}),Ce));return Nt?reactExports.createElement(RefResizeObserver,{onResize:Rt,disabled:!xt},xr):xr}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var _excluded$1=["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"];function ownKeys$1(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$1(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};
147i%2?ownKeys$1(Object(e),!0).forEach(function(t){_defineProperty$s(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$1(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}var EmotionIconBaseBase=reactExports.forwardRef(function(n,i){var e=n.children,t=n.iconAttrs;n.iconVerticalAlign;var o=n.iconViewBox,d=n.size,p=n.title,h=_objectWithoutProperties$1(n,_excluded$1),y=_objectSpread$1(_objectSpread$1({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},t),h);return reactExports.createElement("svg",_extends$A({},y,{ref:i}),p&&reactExports.createElement("title",{key:"icon-title"},p),e)}),EmotionIconBase=createStyled(EmotionIconBaseBase,{target:"ex0cdmw0"})("display:inline-block;vertical-align:",function(n){return n.iconVerticalAlign},";overflow:hidden;"),AccessibilityNew=reactExports.forwardRef(function(n,i){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 DirectionsBike=reactExports.forwardRef(function(n,i){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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-.6s-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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 KeyboardArrowDown=reactExports.forwardRef(function(n,i){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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.58
147L18 14l-6-6-6 6 1.41 1.41z"}))});KeyboardArrowUp.displayName="KeyboardArrowUp";var Pool=reactExports.forwardRef(function(n,i){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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";const TopNavSection=({title:n,sections:i,handlePageChange:e,endpoints:t,pageLinkBaseUrl:o,currentPageScriptHash:d,hideChevron:p=!1,widgetsDisabled:h})=>{const[y,$]=reactExports.useState(!1),E=useEmotionTheme(),M=hasLightBackgroun
147dColor(E),H=i.length>1;return isNullOrUndefined(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((Z,be)=>{const ye=Z[0].sectionHeader;return Z.map((we,xe)=>{const Ce=Fe=>(Fe.preventDefault(),we.pageScriptHash&&e(we.pageScriptHash),$(!1),!1),Ne=String(we.pageName||"");return jsxs(reactExports.Fragment,{children:[xe===0&&H&&jsx$1(StyledSectionName,{children:ye}),jsx$1(StyledTopNavSidebarNavLinkContainer,{children:jsx$1(SidebarNavLink,{...we,icon:we.icon||null,isTopNav:!0,isInDropdown:!0,isActive:d===we.pageScriptHash,onClick:Ce,pageUrl:t.buildAppPageURL(o,we),widgetsDisabled:h,children:Ne})})]},`${we.pageScriptHash}-${Ne}`)})})}),isOpen:y,onClickOutside:()=>$(!1),onClick:()=>y?$(!1):void 0,onEsc:()=>$(!1),renderAll:!0,overrides:{Body:{style:()=>({marginTop:E.spacing.sm,marginRight:E.spacing.lg,marginBottom:E.spacing.lg,maxHeight:"70vh",minWidth:"8rem",overflow:"auto",maxWidth:`calc(${E.sizes.contentMaxWidth} - 2*${E.spacing.lg})`,borderTopLeftRadius:E.radii.xl,borderTopRightRadius:E.radii.xl,borderBottomRightRadius:E.radii.xl,borderBottomLeftRadius:E.radii.xl,borderLeftWidth:E.sizes.borderWidth,borderRightWidth:E.sizes.borderWidth,borderTopWidth:E.sizes.borderWidth,borderBottomWidth:E.sizes.borderWidth,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:E.colors.borderColor,borderRightColor:E.colors.borderColor,borderTopColor:E.colors.borderColor,borderBottomColor:E.colors.borderColor,boxShadow:M?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)",[`@media (max-width: ${E.breakpoints.sm})`]:{maxWidth:`calc(100% - ${E.spacing.threeXL})`}})}},children:jsx$1("div",{children:jsxs(StyledNavSection,{tabIndex:0,onClick:()=>$(!y),isOpen:y,"data-testid":"stTopNavSection",children:[jsx$1(StyledNavSectionText,{children:n}),!p&&jsx$1(StyledIconContainer,{children:jsx$1(Icon$2,{content:y?KeyboardArrowUp:KeyboardArrowDown,size:"lg"})})]})})})},TopNav=({endpoints:n,widgetsDisabled:i})=>{const{pageLinkBaseUrl:e,currentPageScriptHash:t,appPages:o,onPageChange:d}=reactExports.useContext(NavigationContext),{data:p,itemKey:h}=reactExports.useMemo(()=>{const E=groupPagesBySection(o),M=processNavigationStructure(E);return{data:[...M.individualPages,...Object.entries(M.sections).map(([be,ye])=>ye)],itemKey:be=>Array.isArray(be)?be[0]?.sectionHeader??"":be.pageScriptHash??""}},[o]),y=reactExports.useCallback((E,M)=>Array.isArray(E)?jsx$1(TopNavSection,{sections:[E],title:E[0].sectionHeader||"",handlePageChange:d,endpoints:n,pageLinkBaseUrl:e,currentPageScriptHash:t,widgetsDisabled:i}):jsx$1(StyledTopNavLinkContainer,{children:jsx$1(SidebarNavLink,{isTopNav:!0,isInDropdown:!1,isActive:t===E.pageScriptHash,icon:E.icon,pageUrl:n.buildAppPageURL(e,E),onClick:H=>{H.preventDefault(),E.pageScriptHash&&d(E.pageScriptHash)},widgetsDisabled:i,children:String(E.pageName)})}),[d,n,e,t,i]),$=reactExports.useCallback(E=>{if(isNullOrUndefined(E))return null;const H=`${E.flat().length} more`,Z=E.map(be=>Array.isArray(be)?be:[be]);return jsx$1(TopNavSection,{hideChevron:!0,sections:Z,title:H,handlePageChange:d,endpoints:n,pageLinkBaseUrl:e,currentPageScriptHash:t,widgetsDisabled:i})},[d,n,e,t,i]);return jsx$1(ForwardOverflow,{component:StyledOverflowContainer,itemKey:h,data:p,maxCount:"responsive",renderItem:y,renderRest:$})};var __assign$1=function(){return __assign$1=Object.assign||function(n){for(var i,e=1,t=arguments.length;e<t;e++){i=arguments[e];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,e=n.direction,t=n.children,o=n.replaceStyles,d=n.className,p=reactExports.useCallback(function($){i($,e)},[i,e]),h=reactExports.useCallback(function($){i($,e)},[i,e]),y=reactExports.useMemo(function(){return __assign$1(__assign$1({position:"absolute",userSelect:"none"},styles[e]),o??{})},[o,e]);return jsxRuntimeExports.jsx("div",{className:d||void 0,style:y,onMouseDown:p,onTouchStart:h,children:t})}
vendor: 4,233 bytes, line 147
147),__extends=(function(){var n=function(i,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(t[d]=o[d])},n(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}})(),__assign=function(){return __assign=Object.assign||function(n){for(var i,e=1,t=arguments.length;e<t;e++){i=arguments[e];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,e){return Math.max(Math.min(n,e),i)},snap=function(n,i,e){var t=Math.round(n/i);return t*i+e*(t-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,e){e===void 0&&(e=0);var t=i.reduce(function(d,p,h){return Math.abs(p-n)<Math.abs(i[d]-n)?h:d},0),o=Math.abs(i[t]-n);return e===0||o<e?i[t]: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,e,t){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 e*o}if(n.endsWith("vh")){var o=Number(n.replace("vh",""))/100;return t*o}}return n},calculateNewMax=function(n,i,e,t,o,d,p){return t=getPixelSize(t,n.width,i,e),o=getPixelSize(o,n.height,i,e),d=getPixelSize(d,n.width,i,e),p=getPixelSize(p,n.height,i,e),{maxWidth:typeof t>"u"?void 0:Number(t),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(e){var t,o,d,p,h=n.call(this,e)||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 $=h.window.document.createElement("div");return $.style.width="100%",$.style.height="100%",$.style.position="absolute",$.style.transform="scale(0, 0)",$.style.left="0",$.style.flex="0 0 100%",$.classList?$.classList.add(baseClassName):$.className+=baseClassName,y.appendChild($),$},h.removeBase=function(y){var $=h.parentNode;$&&$.removeChild(y)},h.state={isResizing:!1,width:(o=(t=h.propsSize)===null||t===void 0?void 0:t.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}
147,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 e=0,t=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"),e=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,t=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:d,this.resizable.style.position=p}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(h){var y;if(typeof e.state[h]>"u"||e.state[h]==="auto")return"auto";if(e.propsSize&&e.propsSize[h]&&(!((y=e.propsSize[h])===null||y===void 0)&&y.toString().endsWith("%"))){if(e.state[h].toString().endsWith("%"))return e.state[h].toString();var $=e.getParentSize(),E=Number(e.state[h].toString().replace("px","")),M=E/$[h]*100;return"".concat(M,"%")}return getStringSize(e.state[h])},d=t&&typeof t.width<"u"&&!this.state.isResizing?getStringSize(t.width):o("width"),p=t&&typeof t.height<"u"&&!this.state.isResizing?getStringSize(t.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 e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var d={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),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 e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:e.flexBasis!=="auto"?e.flexBasis:void 0})}},i.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},i.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return this.state[t]==="auto"&&this.state.original[t]===e&&(typeof o>"u"||o==="auto")?"auto":e},i.prototype.calculateNewMaxFromBoundary=function(e,t){var o=this.props.boundsByDirection,d=this.state.direction,p=o&&hasDirection("left",d),h=o&&hasDirection("top",d),y,$;if(this.props.bounds==="parent"){var E=this.parentNode;E&&(y=p?this.resizableRight-this.parentLeft:E.offsetWidth+(this.parentLeft-this.resizableLeft),$=h?this.resizableBottom-this.parentTop:E.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(y=p?this.resizableRight:this.window.innerWidth-this.resizableLeft,$=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),$=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return y&&Number.isFinite(y)&&(e=e&&e<y?e:y),$&&Number.isFinite($)&&(t=t&&t<$?t:$),{maxWidth:e,maxHeight:t}},i.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,d=normalizeToPair(this.props.resizeRatio||1),p=d[0],h=d[1],y=this.state,$=y.direction,E=y.original,M=this.props,H=M.lockAspectRatio,Z=M.lockAspectRatioExtraHeight,be=M.lockAspectRatioExtraWidth,ye=E.width,we=E.height,xe=Z||0,Ce=be||0;return hasDirection("right",$)&&(ye=E.width+(e-E.x)*p/o,H&&(we=(ye-Ce)/this.ratio+xe)),hasDirection("left",$)&&(ye=E.width-(e-E.x)*p/o,H&&(we=(ye-Ce)/this.ratio+xe)),hasDirection("bottom",$)&&(we=E.height+(t-E.y)*h/o,H&&(ye=(we-xe)*this.ratio+Ce)),hasDirection("top",$)&&(we=E.height-(t-E.y)*h/o,H&&(ye=(we-xe)*this.ratio+Ce)),{newWidth:ye,newHeight:we}},i.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,d){var p=this.props,h=p.lockAspectRatio,y=p.lockAspectRatioExtraHeight,$=p.lockAspectRatioExtraWidth,E=typeof d.width>"u"?10:d.width,M=typeof o.width>"u"||o.width<0?e:o.width,H=typeof d.height>"u"?10:d.height,Z=typeof o.height>"u"||o.height<0?t:o.height,be=y||0,ye=$||0;if(h){var we=(H-be)*this.ratio+ye,xe=(Z-be)*this.ratio+ye,Ce=(E-ye)/this.ratio+be,Ne=(M-ye)/this.ratio+be,Fe=Math.max(E,we),Me=Math.min(M,xe),Le=Math.max(H,Ce),ze=Math.min(Z,Ne);e=clamp(e,Fe,Me),t=clamp(t,Le,ze)}else e=clamp(e,E,M),t=clamp(t,H,Z);return{newWidth:e,newHeight:t}},i.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if(this.props.bounds==="parent"){var t=this.parentNode;if(t){var o=t.getBoundingClientRect();this.parentLeft=o.left*e,this.parentTop=o.top*e}}
147if(this.props.bounds&&typeof this.props.bounds!="string"){var d=this.props.bounds.getBoundingClientRect();this.targetLeft=d.left*e,this.targetTop=d.top*e}if(this.resizable){var p=this.resizable.getBoundingClientRect(),h=p.left,y=p.top,$=p.right,E=p.bottom;this.resizableLeft=h*e,this.resizableRight=$*e,this.resizableTop=y*e,this.resizableBottom=E*e}},i.prototype.onResizeStart=function(e,t){if(!(!this.resizable||!this.window)){var o=0,d=0;if(e.nativeEvent&&isMouseEvent(e.nativeEvent)?(o=e.nativeEvent.clientX,d=e.nativeEvent.clientY):e.nativeEvent&&isTouchEvent(e.nativeEvent)&&(o=e.nativeEvent.touches[0].clientX,d=e.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var p=this.props.onResizeStart(e,t,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 $=this.parentNode;if($){var E=this.window.getComputedStyle($).flexDirection;this.flexDir=E.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(e.target).cursor||"auto"}),direction:t,flexBasis:h};this.setState(M)}},i.prototype.onMouseMove=function(e){var t=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&isTouchEvent(e))try{e.preventDefault(),e.stopPropagation()}catch{}var o=this.props,d=o.maxWidth,p=o.maxHeight,h=o.minWidth,y=o.minHeight,$=isTouchEvent(e)?e.touches[0].clientX:e.clientX,E=isTouchEvent(e)?e.touches[0].clientY:e.clientY,M=this.state,H=M.direction,Z=M.original,be=M.width,ye=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 Ce=this.calculateNewSizeFromDirection($,E),Ne=Ce.newHeight,Fe=Ce.newWidth,Me=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:Me.maxWidth,height:Me.maxHeight},{width:h,height:y});if(Fe=Le.newWidth,Ne=Le.newHeight,this.props.grid){var ze=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),Ve=this.props.snapGap||0,je=Ve===0||Math.abs(ze-Fe)<=Ve?ze:Fe,We=Ve===0||Math.abs(Ke-Ne)<=Ve?Ke:Ne;Fe=je,Ne=We}var Xe={width:Fe-Z.width,height:Ne-Z.height};if(this.delta=Xe,be&&typeof be=="string"){if(be.endsWith("%")){var Qe=Fe/we.width*100;Fe="".concat(Qe,"%")}else if(be.endsWith("vw")){var Ye=Fe/this.window.innerWidth*100;Fe="".concat(Ye,"vw")}else if(be.endsWith("vh")){var Ue=Fe/this.window.innerHeight*100;Fe="".concat(Ue,"vh")}}if(ye&&typeof ye=="string"){if(ye.endsWith("%")){var Qe=Ne/we.height*100;Ne="".concat(Qe,"%")}else if(ye.endsWith("vw")){var Ye=Ne/this.window.innerWidth*100;Ne="".concat(Ye,"vw")}else if(ye.endsWith("vh")){var Ue=Ne/this.window.innerHeight*100;Ne="".concat(Ue,"vh")}}var ot={width:this.createSizeForCssProperty(Fe,"width"),height:this.createSizeForCssProperty(Ne,"height")};this.flexDir==="row"?ot.flexBasis=ot.width:this.flexDir==="column"&&(ot.flexBasis=ot.height);var dt=this.state.width!==ot.width,st=this.state.height!==ot.height,pt=this.state.flexBasis!==ot.flexBasis,Be=dt||st||pt;Be&&reactDomExports.flushSync(function(){t.setState(ot)}),this.props.onResize&&Be&&this.props.onResize(e,H,this.resizable,Xe)}},i.prototype.onMouseUp=function(e){var t,o,d=this.state,p=d.isResizing,h=d.direction;d.original,!(!p||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(e,h,this.resizable,this.delta),this.props.size&&this.setState({width:(t=this.props.size.width)!==null&&t!==void 0?t:"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(e){var t,o;this.setState({width:(t=e.width)!==null&&t!==void 0?t:"auto",height:(o=e.height)!==null&&o!==void 0?o:"auto"})},i.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,d=t.handleStyles,p=t.handleClasses,h=t.handleWrapperStyle,y=t.handleWrapperClass,$=t.handleComponent;if(!o)return null;var E=Object.keys(o).map(function(M){return o[M]!==!1?jsxRuntimeExports.jsx(Resizer,{direction:M,onResizeStart:e.onResizeStart,replaceStyles:d&&d[M],className:p&&p[M],children:$&&$[M]?$[M]:null},M):null});return jsxRuntimeExports.jsx("div",{className:y,style:h,children:E})},i.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(p,h){return definedProps.indexOf(h)!==-1||(p[h]=e.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},t,{ref:function(p){p&&(e.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:{}
147,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,e){switch(n){case PageConfig.SidebarState.EXPANDED:return!1;case PageConfig.SidebarState.COLLAPSED:return!0;case PageConfig.SidebarState.AUTO:default:return e<=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:e,isCollapsed:t,onToggleCollapse:o,widgetsDisabled:d})=>{const p=useEmotionTheme(),h=calculateMaxBreakpoint(p.breakpoints.md),{innerWidth:y}=useWindowDimensionsContext(),{appPages:$,navSections:E}=reactExports.useContext(NavigationContext),{hideSidebarNav:M,appLogo:H,initialSidebarWidth:Z}=reactExports.useContext(SidebarConfigContext),be=useScrollbarGutterSize(),ye=reactExports.useRef(null),we=localStorageAvailable()?window.localStorage.getItem("sidebarWidth"):void 0,[xe,Ce]=reactExports.useState(()=>{const ot=(()=>{if(we){const dt=Number.parseInt(we,10);return Number.isNaN(dt)?null:clampSidebarWidth(dt).toString()}return null})();return ot||(notNullOrUndefined(Z)?clampSidebarWidth(Z).toString():DEFAULT_WIDTH)}),[Ne,Fe]=reactExports.useState(y??1/0),[Me,Le]=reactExports.useState(!1),ze=reactExports.useCallback(()=>{Le(!0)},[]),Ke=reactExports.useCallback(()=>{Le(!1)},[]),Ve=reactExports.useCallback(Ue=>{const dt=clampSidebarWidth(Ue).toString();Ce(dt),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",dt)}
147,[]),je=reactExports.useCallback((Ue,ot,dt,st)=>{if(dt){const pt=dt.clientWidth||dt.offsetWidth;Ve(pt)}},[Ve]);useExecuteWhenChanged(()=>{y<Ne&&y<=h&&!t&&o(!0,!1),Fe(y)},[y]),reactExports.useEffect(()=>{const Ue=ot=>{if(ye&&window){const{current:dt}=ye;dt&&!dt.contains(ot.target)&&y<=h&&!t&&o(!0)}};return document.addEventListener("mousedown",Ue),()=>{document.removeEventListener("mousedown",Ue)}},[Ne,h,t,o,y]);function We(){const Ue=notNullOrUndefined(Z)?clampSidebarWidth(Z).toString():DEFAULT_WIDTH;Ce(Ue),localStorageAvailable()&&window.localStorage.setItem("sidebarWidth",Ue)}const Xe=reactExports.useCallback(()=>{o(!t)},[t,o]),Qe=()=>H?jsx$1(LogoComponent,{appLogo:H,endpoints:n,collapsed:t,componentName:"Sidebar Logo",dataTestId:"stSidebarLogo"}):jsx$1(StyledNoLogoSpacer,{"data-testid":"stLogoSpacer"}),Ye=shouldShowNavigation($,E)&&!M;return jsx$1(Resizable,{className:"stSidebar","data-testid":"stSidebar","aria-expanded":!t,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:RESIZE_HANDLE_WIDTH,right:"-6px"}},handleComponent:{right:jsx$1(StyledResizeHandle,{onDoubleClick:We})},size:{width:xe,height:"auto"},as:StyledSidebar,onResizeStop:je,isCollapsed:t,sidebarWidth:xe,windowInnerWidth:y,children:jsxs(StyledSidebarContent,{"data-testid":"stSidebarContent",ref:ye,onMouseOver:ze,onMouseOut:Ke,scrollbarGutterSize:be,children:[jsxs(StyledSidebarHeaderContainer,{"data-testid":"stSidebarHeader",children:[Qe(),jsx$1(StyledCollapseSidebarButton,{showSidebarCollapse:Me,"data-testid":"stSidebarCollapseButton",children:jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,onClick:Xe,children:jsx$1(DynamicIcon,{size:"xl",iconValue:":material/keyboard_double_arrow_left:",color:p.colors.fadedText60})})})]}),Ye&&jsx$1(SidebarNav,{endpoints:n,collapseSidebar:Xe,hasSidebarElements:e,widgetsDisabled:d}),jsx$1(StyledSidebarUserContent,{hasPageNavAbove:Ye,"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:e}=reactExports.useContext(ThemeContext),t=createSidebarTheme(e);return jsx$1(ThemeProvider,{theme:t.emotion,baseuiTheme:t.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:e,hasHeader:t,showToolbar:o,hasTopNav:d,hasSidebar:p,embedded:h,theme:y})=>{const $="2.25rem";let E=$;h?e||o?E="6rem":(t||p)&&(E="4.5rem"):E=d?"8rem":"6rem";const M=e&&!n?"10rem":y.spacing.lg;return{width:y.sizes.full,paddingLeft:y.spacing.lg,paddingRight:y.spacing.lg,paddingTop:E,paddingBottom:M,maxWidth:y.sizes.contentMaxWidth,...i&&applyWideModePadding(y),"@media print":{paddingTop:$}}}),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:e})=>({width:e.sizes.full,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg,paddingTop:e.spacing.lg,paddingBottom:i?e.sizes.appDefaultBottomPadding:e.spacing.threeXL,maxWidth:e.sizes.contentMaxWidth,...n&&applyWideModePadding(e),"@media print":{paddingTop:e.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"}}
147));function ScrollToBottomContainer(n){const{className:i,tabIndex:e,children:t,isEmbedded:o,disableScrolling:d}=n,p=useScrollToBottom(!0);return jsx$1(StyledAppViewMain,{tabIndex:e,className:i,isEmbedded:o,disableScrolling:d,ref:p,"data-testid":"stAppScrollToBottomContainer",children:t})}function AppView(n){const{elements:i,widgetMgr:e,uploadClient:t,sendMessageToHost:o,endpoints:d,navigationPosition:p,topRightContent:h,wideMode:y,embedded:$,showPadding:E,disableScrolling:M,addScriptFinishedHandler:H,removeScriptFinishedHandler:Z,widgetsDisabled:be,showToolbar:ye,disableFullscreenMode:we,componentRegistry:xe}=n;reactExports.useEffect(()=>{const $t=()=>{o({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",$t,!1),()=>window.removeEventListener("hashchange",$t,!1)},[o]);const{activeTheme:Ce}=reactExports.useContext(ThemeContext),{appPages:Ne,navSections:Fe,pageLinkBaseUrl:Me}=reactExports.useContext(NavigationContext),{initialSidebarState:Le,appLogo:ze,hideSidebarNav:Ke}=reactExports.useContext(SidebarConfigContext),{innerWidth:Ve}=useWindowDimensionsContext(),je=y?"wide":"narrow",We=!i.sidebar.isEmpty,Xe=!i.event.isEmpty,Qe=!i.bottom.isEmpty,[Ye,Ue]=reactExports.useState(!1),ot=Ve>0&&(We||p===Navigation.Position.SIDEBAR&&!Ke&&Ne.length>1||Ye);reactExports.useEffect(()=>{ot&&Ke&&!Ye&&Ue(!0)},[ot,Ke,Ye]);const dt=reactExports.useCallback(()=>{!We&&Ye&&Ue(!1)},[We,Ye]);reactExports.useEffect(()=>(H(dt),()=>{Z(dt)}),[dt,H,Z]);const st=Qe?ScrollToBottomContainer:StyledAppViewMain,pt=$t=>jsx$1(ContainerContentsWrapper,{node:$t,endpoints:d,widgetMgr:e,widgetsDisabled:be,uploadClient:t,disableFullscreenMode:we,componentRegistry:xe,height:"auto",isRoot:!0}),[Be,qe]=reactExports.useState(()=>{const $t=getSavedSidebarState(Me);return $t!==null?$t:shouldCollapse(Le,parseInt(Ce.emotion.breakpoints.md,10),Ve)});useExecuteWhenChanged(()=>{if(Ve>0&&ot){const $t=getSavedSidebarState(Me);qe($t!==null?$t:shouldCollapse(Le,parseInt(Ce.emotion.breakpoints.md,10),Ve))}},[Ve,ot,Le,Ce.emotion.breakpoints.md,Me]);const rt=reactExports.useCallback(($t,Mt=!0)=>{qe($t),Mt&&saveSidebarState(Me,$t)},[Me]),He=reactExports.useCallback(()=>{rt(!Be,!0)},[rt,Be]),Ot=ze?jsx$1(LogoComponent,{appLogo:ze,endpoints:d,collapsed:Be||!ot,componentName:"Header Logo",dataTestId:"stHeaderLogo"}):null,Ct=Ot&&(!ot||Be),tt=ot&&Be,wt=p===Navigation.Position.TOP&&shouldShowNavigation(Ne,Fe),gt=Ct||tt||wt||ye;return jsxs(StyledAppViewContainer,{className:"stAppViewContainer appview-container","data-testid":"stAppViewContainer","data-layout":je,children:[ot&&jsx$1(Profiler,{id:"Sidebar",children:jsx$1(ThemedSidebar,{endpoints:d,hasElements:We,isCollapsed:Be,onToggleCollapse:rt,widgetsDisabled:be,children:jsx$1(StyledSidebarBlockContainer,{children:pt(i.sidebar)})})}),jsxs(StyledMainContent,{children:[jsx$1(Header,{hasSidebar:ot,isSidebarOpen:ot&&!Be,onToggleSidebar:He,navigation:p===Navigation.Position.TOP&&shouldShowNavigation(Ne,Fe)?jsx$1(TopNav,{endpoints:d,widgetsDisabled:be}):null,rightContent:h,logoComponent:Ot,showToolbar:ye}),jsxs(st,{tabIndex:0,isEmbedded:$,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:E,hasBottom:Qe,hasHeader:gt,hasSidebar:ot,showToolbar:ye,hasTopNav:wt,embedded:$,children:pt(i.main)})}),!Qe&&jsx$1(StyledIFrameResizerAnchor,{"data-testid":"stAppIframeResizerAnchor","data-iframe-height":!0}),Qe&&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:E,children:pt(i.bottom)})})})]})]})]}),Xe&&jsx$1(Profiler,{id:"Event",children:jsx$1(EventContainer,{children:jsx$1(StyledEventBlockContainer,{className:"stEvent","data-testid":"stEvent",children:pt(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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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$9=loglevelExports.getLogger("ScreenCastRecorder");class ScreenCastRecorder{static isSupportedBrowser(){try{return notNullOrUndefined(navigator.mediaDevices)&¬NullOrUndefined(navigator.mediaDevices.getUserMedia)&¬NullOrUndefined(navigator.mediaDevices.getDisplayMedia)&&MediaRecorder.isTypeSupp
147orted(BLOB_TYPE)}catch{return!1}}constructor({recordAudio:i,onErrorOrStop:e}){this.recordAudio=i,this.onErrorOrStopCallback=e,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}async initialize(){let e=(await navigator.mediaDevices.getDisplayMedia({video:!0})).getTracks();if(this.recordAudio){const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:!0});e=e.concat(t.getAudioTracks())}this.recordedChunks=[],this.inputStream=new MediaStream(e),this.mediaRecorder=new MediaRecorder(this.inputStream,{mimeType:BLOB_TYPE}),this.mediaRecorder.ondataavailable=t=>this.recordedChunks.push(t.data)}getState(){return this.mediaRecorder?this.mediaRecorder.state:"inactive"}start(){if(!this.mediaRecorder)return LOG$9.warn("ScreenCastRecorder.start: mediaRecorder is null"),!1;const i=e=>{LOG$9.warn(`mediaRecorder.start threw an error: ${e}`)};this.mediaRecorder.onerror=e=>{i(e),this.onErrorOrStopCallback()},this.mediaRecorder.onstop=()=>this.onErrorOrStopCallback();try{this.mediaRecorder.start()}catch(e){return i(e),!1}return!0}stop(){if(!this.mediaRecorder)return;let i;const e=new Promise(t=>{i=t});return this.mediaRecorder.onstop=()=>i(),this.mediaRecorder.stop(),this.inputStream&&(this.inputStream.getTracks().forEach(t=>t.stop()),this.inputStream=null),e.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:"e1vxtby80"})(({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:"e1vxtby81"})(({theme:n})=>({borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,margin:`${n.spacing.sm} ${n.spacing.none}`})),StyledMenuItemShortcut=styled("span",{target:"e1vxtby82"})(({isRecording:n,theme:i})=>({color:n?i.colors.redTextColor:i.colors.fadedText60,fontSize:i.fontSizes.sm,marginTop:i.spacing.twoXS,fontVariant:"small-caps",textTransform:"uppercase"})),StyledMenuItem=styled("ul",{target:"e1vxtby83"})(({isDisabled:n,isRecording:i,theme:e})=>{const t=n?{backgroundColor:e.colors.transparent,color:e.colors.fadedText60,cursor:"not-allowed"}:{"&:focus":{backgroundColor:e.colors.primary,color:e.colors.white}},o=i&&{color:e.colors.redTextColor,fontWeight:e.fontWeights.bold};return{display:"block",flexDirection:"row",alignItems:"flex-start",padding:e.spacing.none,cursor:"pointer",...o||{},...t,"@media print":{display:"none !important"}}}),StyledCoreItem=styled("li",{target:"e1vxtby84"})(({isHighlighted:n,styleProps:i,theme:e})=>{const t=n&&{"&:hover":{backgroundColor:e.colors.darkenedBgMix15}},o=i?.margin||0,d=i?.padding||`${e.spacing.twoXS} ${e.spacing.twoXL}`,p=i?.backgroundColor||e.colors.bgColor,h=i?.fontSize||e.fontSizes.md;return{margin:o,padding:d,backgroundColor:p,fontSize:h,...t||{},display:"block"}}),StyledDevItem=styled("li",{target:"e1vxtby85"})(({isHighlighted:n,styleProps:i,theme:e})=>{const t=n&&{"&:hover":{backgroundColor:transparentize(e.colors.darkenedBgMix15,1)}},o=i?.margin||0,d=i?.padding||`${e.spacing.twoXS} ${e.spacing.twoXL}`,p=i?.backgroundColor||e.colors.secondaryBg,h=i?.fontSize||e.fontSizes.md;return{margin:o,padding:d,backgroundColor:p,fontSize:h,...t||{},display:"block"}}),StyledMenuItemLabel=styled("span",{target:"e1vxtby86"})(({theme:n})=>({marginRight:n.spacing.md,flexGrow:1})),StyledMenuContainer=styled("div",{target:"e1vxtby87"})(({theme:n})=>({ul:{borderRadius:n.radii.default},"& > ul[role=listbox]:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},"ul[role=listbox] ~ ul[role=listbox]":{borderTopLeftRadius:0,borderTopRightRadius:0,boxShadow:"none",borderTop:"none"},"@media print":{display:"none"}})),StyledMainMenuContainer=styled("span",{target:"e1vxtby88"})({lineHeight:"initial"}),SCREENCAST_LABEL={COUNTDOWN:"Cancel screencast",RECORDING:"Stop recording"},getOpenInWindowCallback=n=>()=>{window.open(n,"_blank")};function buildMenuItemComponent(n,i){const e=reactExports.forwardRef(({item:t,"aria-selected":o,onClick:d,onMouseEnter:p,$disabled:h,$isHighlighted:y},$)=>{const{label:E,shortcut:M,hasDividerAbove:H,styleProps:Z,noHighlight:be,interactions:ye}=t,we={isDisabled:h,isRecording:!!t.stopRecordingIndicator};return jsxs(Fragment,{children:[H&&jsx$1(StyledMenuDivider,{"data-testid":"stMainMenuDivider"}),jsx$1(StyledMenuItem,{ref:$,role:"option","aria-selected":o,"aria-disabled":h,...we,...ye||(h?{}:{onClick:Ne=>{i.enqueue("menuClick",{label:E}),d(Ne)},onMouseEnter:p}),children:jsxs(n,{...{isHighlighted:!be&&y,styleProps:Z},children:[jsx$1(StyledMenuItemLabel,{...we,children:E}),M&&jsx$1(StyledMenuItemShortcut,{...we,children:M})]})})]})});return e.displayName="MenuItem",e}const SubMenu=n=>{const{colors:i,sizes:e,spacing:t}=useEmotionTheme(),o=n.isDevMenu?StyledDevItem:StyledCoreItem;return jsx$1(StatefulMenu,{items:n.menuItems,onItemSelect:({item:d})=>{d.onClick(),n.closeMenu()},overrides:{Option:buildMenuItemComponent(o,n.metricsMgr),List:{props:{"data-testid":"stMainMenuList"},style:{backgroundColor:"inherit",borderBottomRadius:0,borderTopRadius:0,borderLeftRadius:0,borderRightRadius:0,paddingBottom:t.sm,paddingTop:t.sm,":focus":{outline:"none"},border:`${e.borderWidth} solid ${i.borderColor}`}}}})};function getDevMenuItems(n,i){const e=[],t=[i.developerOptions,i.clearCache];let o=null;for(const d of t)d&&(d!==i.DIVIDER&&(o===i.DIVIDER?e.push({...d,hasDividerAbove:!0}):e.push(d)),o=d);return notNullOrUndefined(o)&&(o.styleProps={margin:`0 0 -${n.spacing.sm} 0`,padding:`${n.spacing.twoXS} ${n.spacing.none} ${n.spacing.twoXS} ${n.spacing.twoXL}`}),e}function getPreferredMenuOrder(n,i,e){let t;if(n.toolbarMode==Config.ToolbarMode.MINIMAL){for(t=[e.report,e.community,e.DIVIDER,...i.length>0?i:[e.DIVIDER],e.about],t=t.filter(o=>o);t.length>0&&t[0]==e.DIVIDER;)t.shift();for(;t.length>0&&t.at(t.length-1)==e.DIVIDER;)t.pop();return t}return[e.rerun,e.settings,e.DIVIDER,e.print,...ScreenCastRecorder.isSupportedBrowser()?[e.recordScreencast]:[],e.DIVIDER,e.report,e.community,...i.length>0?i:[e.DIVIDER],e.about]}function MainMenu(n){const i=useEmotionTheme(),e=!n.isServerConnected,t={DIVIDER:{isDivider:!0},rerun:{disabled:e,onClick:n.quickRerunCallback,label:"Rerun",shortcut:"r"},print:{onClick:n.printCallback,label:"Print"},recordScreencast:{onClick:n.screencastCallback,label:SCREENCAST_LABEL[n.screenCastState]||"Record a screencast",shortcut:SCREENCAST_LABEL[n.screenCastState]?"esc":"",stopRecordingIndicator:!!SCREENCAST_LABEL[n.screenCastState]},...!n.menuItems?.hideGetHelp&&n.menuItems?.getHelpUrl&&{community:{onClick:getOpenInWindowCallback(n.menuItems?.getHelpUrl),label:"Get help"}},...!n.menuItems?.hideReportABug&&n.menuItems?.reportABugUrl&&{report:{onClick:getOpenInWindowCallback(n.menuItems?.reportABugUrl),label:"Report a bug"}},settings:{onClick:n.settingsCallback,label:"Settings"},...n.menuItems?.aboutSectionMd&&{about:{onClick:n.aboutCallback,label:"About"}}},o={DIVIDER:{},developerOptions:{label:"Developer options",noHighlight:!0,interactions:{}
147,styleProps:{fontSize:convertRemToPx(i.fontSizes.twoSm),margin:`-${i.spacing.sm} 0 0 0`,padding:`${i.spacing.twoXS} ${i.spacing.none} ${i.spacing.twoXS} ${i.spacing.twoXL}`,pointerEvents:"none"}},clearCache:{disabled:e,onClick:n.clearCacheCallback,label:"Clear cache",shortcut:"c"}},d=n.hostMenuItems.map(E=>E.type==="separator"?t.DIVIDER:E.key==="reportBug"&&n.menuItems?.hideGetHelp||E.key==="about"&&n.menuItems?.aboutSectionMd!==""?null:{onClick:()=>n.sendMessageToHost({type:"MENU_ITEM_CALLBACK",key:E.key}),label:E.label},[]),p=getPreferredMenuOrder(n,d,t),h=[];let y=null;for(const E of p)E&&(E!==t.DIVIDER&&(y===t.DIVIDER?h.push({...E,hasDividerAbove:!0}):h.push(E)),y=E);const $=n.developmentMode?getDevMenuItems(i,o):[];return h.length==0&&$.length==0?jsx$1(Fragment,{}):jsx$1(StatefulPopover,{focusLock:!0,placement:PLACEMENT$1.bottomRight,content:({close:E})=>jsxs(StyledMenuContainer,{children:[h.length!=0&&jsx$1(SubMenu,{menuItems:h,closeMenu:E,isDevMenu:!1,metricsMgr:n.metricsMgr}),$.length!=0&&jsx$1(SubMenu,{menuItems:$,closeMenu:E,isDevMenu:!0,metricsMgr:n.metricsMgr})]}),overrides:{Body:{props:{"data-testid":"stMainMenuPopover",className:"stMainMenuPopover"}}},children:jsxs(StyledMainMenuContainer,{id:"MainMenu",className:"stMainMenu","data-testid":"stMainMenu",children:[jsx$1(BaseButton,{kind:BaseButtonKind.HEADER_NO_PADDING,children:jsx$1(Icon$2,{content:MoreVert,size:"lg"})}),n.screenCastState==="RECORDING"&&jsx$1(StyledRecordingIndicator,{})]})})}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(t,o){var d;d=n.call(this,t,o)||this;var p=o,h=p&&!p.isMounting?t.enter:t.appear,y;return d.appearStatus=null,t.in?h?(y=EXITED,d.appearStatus=ENTERING):y=ENTERED:t.unmountOnExit||t.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 e=i.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.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)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.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}},e.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})},e.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],$=y[0],E=y[1],M=this.getTimeouts(),H=h?M.appear:M.enter;if(!o&&!p||config.disabled){this.safeSetState({status:ENTERED},function(){d.props.onEntered($)});return}this.props.onEnter($,E),this.safeSetState({status:ENTERING},function(){d.props.onEntering($,E),d.onTransitionEnd(H,function(){d.safeSetState({status:ENTERED},function(){d.props.onEntered($,E)})})})},e.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)})})})},e.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(o,d){d=this.setNextCallback(d),this.setState(o,d)},e.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},e.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],$=y[0],E=y[1];this.props.addEndListener($,E)}o!=null&&setTimeout(this.nextCallback,o)},e.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$p(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
147:!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,e){return i&&e&&e.split(" ").forEach(function(t){return addClass(i,t)})},removeClass=function n(i,e){return i&&e&&e.split(" ").forEach(function(t){return removeClass$1(i,t)})},CSSTransition=(function(n){_inheritsLoose(i,n);function i(){for(var t,o=arguments.length,d=new Array(o),p=0;p<o;p++)d[p]=arguments[p];return t=n.call.apply(n,[this].concat(d))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(h,y){var $=t.resolveArguments(h,y),E=$[0],M=$[1];t.removeClasses(E,"exit"),t.addClass(E,M?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(h,y)},t.onEntering=function(h,y){var $=t.resolveArguments(h,y),E=$[0],M=$[1],H=M?"appear":"enter";t.addClass(E,H,"active"),t.props.onEntering&&t.props.onEntering(h,y)},t.onEntered=function(h,y){var $=t.resolveArguments(h,y),E=$[0],M=$[1],H=M?"appear":"enter";t.removeClasses(E,H),t.addClass(E,H,"done"),t.props.onEntered&&t.props.onEntered(h,y)},t.onExit=function(h){var y=t.resolveArguments(h),$=y[0];t.removeClasses($,"appear"),t.removeClasses($,"enter"),t.addClass($,"exit","base"),t.props.onExit&&t.props.onExit(h)},t.onExiting=function(h){var y=t.resolveArguments(h),$=y[0];t.addClass($,"exit","active"),t.props.onExiting&&t.props.onExiting(h)},t.onExited=function(h){var y=t.resolveArguments(h),$=y[0];t.removeClasses($,"exit"),t.addClass($,"exit","done"),t.props.onExited&&t.props.onExited(h)},t.resolveArguments=function(h,y){return t.props.nodeRef?[t.props.nodeRef.current,h]:[h,y]},t.getClassNames=function(h){var y=t.props.classNames,$=typeof y=="string",E=$&&y?y+"-":"",M=$?""+E+h:y[h],H=$?M+"-active":y[h+"Active"],Z=$?M+"-done":y[h+"Done"];return{baseClassName:M,activeClassName:H,doneClassName:Z}},t}var e=i.prototype;return e.addClass=function(o,d,p){var h=this.getClassNames(d)[p+"ClassName"],y=this.getClassNames("enter"),$=y.doneClassName;d==="appear"&&p==="done"&&$&&(h+=" "+$),p==="active"&&o&&forceReflow(o),h&&(this.appliedClasses[d][p]=h,_addClass(o,h))},e.removeClasses=function(o,d){var p=this.appliedClasses[d],h=p.base,y=p.active,$=p.done;this.appliedClasses[d]={},h&&removeClass(o,h),y&&removeClass(o,y),$&&removeClass(o,$)},e.render=function(){var o=this.props;o.classNames;var d=_objectWithoutPropertiesLoose$p(o,["classNames"]);return React.createElement(Transition,_extends$A({},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 e=new Promise((t,o)=>{n=t,i=o});return{resolve:n,reject:i,promise:e}});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))}
147function 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:e,protocol:t},o){const d=s(e,o);return`${t}//${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 e=window.localStorage.getItem("stStaticAssetUrl");if(e)return e}try{const e=await fetch(STATIC_ASSET_CONFIG,{signal:AbortSignal.timeout(5e3)});e.ok?(i=(await e.json()).static_url??void 0,n&&i&&window.localStorage.setItem("stStaticAssetUrl",i)):LOG$8.error("Failed to fetch static config url: ",e.status)}catch(e){LOG$8.error("Failed to fetch static config url:",e)}return i}async function getProtoResponse(n,i){const e=`${i}/${n}/protos.pb`,t=await fetch(e,{signal:AbortSignal.timeout(5e3)});if(!t.ok)LOG$8.error(`Failed to fetch static app protos for id: ${n}`,t.status);else return t.arrayBuffer();return null}async function dispatchAppForwardMessages(n,i,e,t){const o=await getProtoResponse(n,i);if(!o){LOG$8.error("Failed to retrieve static app protos"),t({message:`Failed to retrieve static app protos. Please confirm the id is correct and try again. Given static app id: ${n}`});return}ForwardMsgList.decode(new Uint8Array(o)).messages.forEach(p=>{e(p)})}async function establishStaticConnection(n,i,e,t,o){i(ConnectionState.STATIC_CONNECTING);const d=await getStaticConfig();o.setStaticConfigUrl(d),dispatchAppForwardMessages(n,d,e,t),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:e}=n,t=!!N.BACKEND_BASE_URL,o=S(i);return t&&o&&typeof e=="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 e=i.split("/"),t=[];for(;e.length>0;){const o=new URL(n);o.pathname=e.join("/"),t.push(o),e.pop()}return t.length<=2?t:t.slice(0,2)}function buildWsUri({hostname:n,port:i,pathname:e,protocol:t},o){const d=t==="https:"?"wss":"ws",p=s(e,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,e,t={}){super(i),this.name="FetchError",this.url=e,this.isTimeout=t.isTimeout??!1,this.isNetworkError=t.isNetworkError??!1,this.response=t.response}}async function fetchWithTimeout(n,i){const e=new AbortController,t=setTimeout(()=>e.abort(),i);try{const o=await fetch(n,{signal:e.signal});if(clearTimeout(t),!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(t),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");
147class PingCancelledError extends Error{constructor(){super("Ping cancelled")}}function doInitPings(n,i,e,t,o,d){const{promise:p,resolve:h,reject:y}=Promise.withResolvers();let $=0,E=0,M,H=()=>{};const Z=()=>{E++,E>=n.length&&(E=0),H()},be=Ne=>{const Fe=Math.random()*.4-.2,Me=$===1?i:i*2**($-1)*(1+Fe),Le=Math.min(e,Me);t($,Ne,Le),!(typeof window>"u")&&(M=globalThis.setTimeout(Z,Le))},ye=()=>{const Ne=n[E];new URL(a(Ne,"")).hostname==="localhost"?be({message:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:",codeBlock:"streamlit run yourscript.py"}):be({message:"Streamlit server is not responding. Are you connected to the internet?"})},we=()=>{be({message:`Cannot connect to Streamlit (HTTP status: 403). 148 149If 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 H=()=>{const Ne=n[E],Fe=a(Ne,SERVER_PING_PATH),Me=N.HOST_CONFIG_BASE_URL,Le=Me?parseUriIntoBaseParts(Me):Ne,ze=a(Le,HOST_CONFIG_PATH);LOG$7.info(`Attempting to connect to ${Fe}.`),E===0&&$++,Promise.all([fetchWithTimeout(Fe,PING_TIMEOUT_MS),fetchWithTimeout(ze,PING_TIMEOUT_MS)]).then(([Ke,Ve])=>{d(Ve.data),h(E)}).catch(Ke=>{const Ve=$>=MAX_RETRIES_BEFORE_CLIENT_ERROR;if(Ke.isTimeout){if(Ve){const je=xe(Ke.url);LOG$7.error("Client error: DoInitPings timed out"),o("DoInitPings timed out","Connection timed out - ECONNABORTED",je)}return be({message:"Connection timed out."})}if(Ke.response){const{data:je,status:We,statusText:Xe}=Ke.response,Qe=xe(Ke.url);if(We===0)return Ve&&(LOG$7.error(`Client Error: response received with status ${We} when attempting to reach ${Qe}`),o(`Response received with status ${We}`,Xe,Qe)),ye();if(We===403)return Ve&&(LOG$7.error(`Client Error: response received with status ${We} when attempting to reach ${Qe}`),o(We,Xe,Qe)),we();Ve&&(LOG$7.error(`Client Error: response received with status ${We} when attempting to reach ${Qe}`),o(We,Xe,Qe));const Ye=serializeForDisplay(je);return be({message:`Connection failed with status ${We}${Ye?", and response:":"."}`,...Ye&&{codeBlock:Ye}})}if(Ke.isNetworkError){if(Ve){const je=xe(Ke.url);LOG$7.error(`Client Error in reaching server endpoint - No response received when attempting to reach ${je}`),o("No response received from server","Network error",je)}return ye()}if(Ve){const je=xe(Ke.url);LOG$7.error(`Client Error in reaching server endpoint - error in setting up request when attempting to reach ${je}`),o("Error setting up request to server",Ke.message??"",je)}return be({message:Ke.message})})},H(),{promise:p,cancel:()=>{L(M)&&globalThis.clearTimeout(M),y(new PingCancelledError)}}}const LOG$6=loglevelExports.getLogger("ForwardMessageCache");class CacheEntry{constructor(i,e,t){this.scriptRunCount=0,this.encodedMsg=i,this.scriptRunCount=e,this.fragmentId=t}getAge(i){return i-this.scriptRunCount}}class ForwardMsgCache{constructor(){this.messages=new Map,this.scriptRunCount=0}incrementRunCount(i,e){this.scriptRunCount+=1,this.messages.forEach((t,o)=>{e.length>0&&(!t.fragmentId||!e.includes(t.fragmentId))||t.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,e){if(this.maybeCacheMessage(i,e),i.type!=="refHash")return i;const t=this.getCachedMessage(i.refHash,!0);if(L(t))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 t.metadata=ForwardMsg.decode(e).metadata,t}maybeCacheMessage(i,e){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(e,this.scriptRunCount,i.delta?.fragmentId??void 0)))}}getCachedMessage(i,e){const t=this.messages.get(i);if(!R(t))return e&&(t.scriptRunCount=this.scriptRunCount),ForwardMsg.decode(t.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)}setFsmState(i,e){switch(LOG$5.info(`New state: ${i}`),this.state=i,this.state){case ConnectionState.PINGING_SERVER:this.pingServer();break}switch(this.args.onConnectionStateChange(i,e),this.state){case ConnectionState.CONNECTING:this.connectToWebSocket();break;case ConnectionState.DISCONNECTED_FOREVER:this.closeConnection();break}}stepFsm(i,e){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 - ${e}`),this.args.sendClientError("Websocket connection fatal error encountered",e,"Websocket Connection"),this.setFsmState(ConnectionState.DISCONNECTED_FOREVER,{message:e||"Unknown error"});return}switch(this.state){case ConnectionState.INITIAL:if(i==="INITIALIZED"){this.args.enableBypass?(this.setFsmState(ConnectionState.CONNECTING),this.pingServerInBackgroun
149d()):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. 150State: ${this.state} 151Event: ${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(e){e instanceof PingCancelledError?LOG$5.info("Ping cancelled"):this.stepFsm("FATAL_ERROR",e instanceof Error?e.message:String(e))}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 e=await i.promise;
151this.uriIndex=e,LOG$5.info("Background pings completed successfully")}catch(e){e instanceof PingCancelledError?LOG$5.info("Background pings cancelled"):this.stepFsm("FATAL_ERROR",e instanceof Error?e.message:String(e))}finally{this.pingRequest===i&&(this.pingRequest=void 0)}}async getSessionTokens(){const i=await this.args.claimHostAuthToken(),e=A("_streamlit_xsrf");this.args.resetHostAuthToken();const t=this.args.getLastSessionId();return[i??e??"PLACEHOLDER_AUTH_TOKEN",...t?[t]:[]]}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 e=await this.getSessionTokens();this.websocket=new WebSocket(i,["streamlit",...e]),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(i);const t=this.websocket,o=()=>t===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 e=this.websocket;this.wsConnectionTimeout=globalThis.setTimeout(()=>{if(e===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 e=BackMsg.create(i),t=BackMsg.encode(e).finish();this.websocket.send(t)}incrementMessageCacheRunCount(i,e){this.cache.incrementRunCount(i,e)}getCachedMessageHashes(){return this.cache.getCachedMessageHashes()}async handleMessage(i){const e=this.nextMessageIndex;this.nextMessageIndex+=1;const t=new Uint8Array(i),o=ForwardMsg.decode(t);for(this.messageQueue[e]=await this.cache.processMessagePayload(o,t);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=(e,t)=>{this.connectionState!==e&&(this.connectionState=e,this.props.connectionStateChanged(e)),t&&this.props.onConnectionError(t)},this.showRetryError=(e,t,o)=>{e>=MAX_RETRIES_BEFORE_CLIENT_ERROR&&this.props.onConnectionError(t)},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,e){this.websocketConnection instanceof WebsocketConnection&&this.websocketConnection.incrementMessageCacheRunCount(i,e)}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(e){const t=e instanceof Error?e:new Error(`${e}`);LOG$4.error(`Client Error: Websocket connection - ${t.message}`),this.props.sendClientError("Failed to establish websocket connection",t.message,"Connection Manager"),this.setConnectionState(ConnectionState.DISCONNECTED_FOREVER,{message:t.message})}}disconnect(){this.websocketConnection?.disconnect()}connectToRunningServer(){const i=getPossibleBaseUris(),e=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:e})}}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";
151class 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,e,t,o,d){this.sendClientError(i,e,t,o,d)}async checkSourceUrlResponse(i,e,t){const o=t?`${e} ${t}`:e;try{const d=await fetch(i);d.ok||(LOG$3.error(`Client Error: ${o} source error - ${d.status}`),this.sendClientErrorToHost(e,d.status,d.statusText,i,t))}catch(d){const p=d instanceof Error?d.message:"Unknown Error";LOG$3.error(`Client Error: ${o} fetch error - ${p}`),this.sendClientErrorToHost(e,"Error fetching source",p,i,t)}}buildComponentURL(i,e){return a(this.requireServerUri(),`${COMPONENT_ENDPOINT_BASE}/${i}/${e}`)}buildBidiComponentURL(i,e){return a(this.requireServerUri(),`${BIDI_COMPONENT_ENDPOINT_BASE}/${i}/${e}`)}setFileUploadClientConfig({prefix:i,headers:e}){this.fileUploadClientConfig={prefix:i,headers:e}}buildStaticUrl(i){const t=new URLSearchParams(document.location.search).get("staticAppId");return`${this.staticConfigUrl}/${t}${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 e=N.DOWNLOAD_ASSETS_BASE_URL;return a(e?parseUriIntoBaseParts(e):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,e){const t=e.urlPathname,o=e.isDefault?"":t;if(typeof i=="string"&&i.length>0)return`${i}/${o}`;const{port:d,protocol:p}=window.location,{pathname:h,hostname:y}=this.requireServerUri(),$=d?`:${d}`:"",E=h==="/"?"/":`${h}/`;return`${p}//${y}${$}${E}${o}`}async uploadFileUploaderFile(i,e,t,o,d){const p=new FormData,{name:h,webkitRelativePath:y}=e,$=y||h;p.append(h,e,$);const E=this.getAdditionalHeaders(),M=this.buildFileUploadURL(i);try{await this.csrfRequest(M,{signal:d,method:"PUT",data:p,responseType:"text",headers:E,onUploadProgress:o})}catch(H){LOG$3.error(`Client Error: File uploader error on file upload - ${H}`);const Z=H instanceof Error?H.message:"Unknown Error";throw this.sendClientErrorToHost("File Uploader","Error uploading file",Z,M),H}}getAdditionalHeaders(){let i={};return this.fileUploadClientConfig&&(i={...i,...this.fileUploadClientConfig.headers}),i}async deleteFileAtURL(i,e){const t=this.getAdditionalHeaders(),o=this.buildFileUploadURL(i);try{await this.csrfRequest(o,{method:"DELETE",data:{sessionId:e},headers:t})}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!")}
151async csrfRequest(i,e){if(e.url=i,this.csrfEnabled){const o=A("_streamlit_xsrf");L(o)&&(e.headers={"X-Xsrftoken":o,...e.headers||{}},e.withCredentials=!0)}const{default:t}=await __vitePreload(async()=>{const{default:o}=await import("./index.BBTKOM0z.js");return{default:o}},[],import.meta.url);return t.request(e)}}var Ellipses=reactExports.forwardRef(function(n,i){var e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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 e={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return reactExports.createElement(EmotionIconBase,_extends$A({iconAttrs:e,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:"e1by5rsa0"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",color:n.colors.gray60})),StyledConnectionStatusLabel=styled("label",{target:"e1by5rsa1"})(({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:"e1by5rsa2"})(({theme:n})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:n.radii.md,margin:`0 ${n.spacing.sm} 0 0`,paddingLeft:n.spacing.sm,height:n.sizes.appRunningMen})),StyledAppStatusLabel=styled("label",{target:"e1by5rsa3"})(({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.md:void 0})),StyledAppButtonContainer=styled("span",{target:"e1by5rsa4"})(({theme:n})=>({marginLeft:n.spacing.md,whiteSpace:"nowrap",color:n.colors.bodyText})),StyledAppRunningIcon=styled("div",{target:"e1by5rsa5"})(({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:"e1by5rsa6"})({"&.StatusWidget-appear":{opacity:0}
151,"&.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:"e1by5rsa7"})({"&::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(),e=n.getDate();return i===11&&e===31||i===0&&e<=6},DEFAULT_SPEED=200,IconRunning=()=>{const[n,i]=reactExports.useState(0),e=useEmotionTheme(),t=reactExports.useMemo(()=>isNewYears(),[]);reactExports.useEffect(()=>{if(t)return;const p=setInterval(()=>{i(h=>(h+1)%icons.length)},DEFAULT_SPEED);return()=>clearInterval(p)},[t]);const d=icons[n].component;return jsx$1(StyledAppRunningIcon,{isNewYears:t,"aria-label":"Running...",role:"img","data-testid":"stStatusWidgetRunningIcon",children:t?jsx$1("img",{src:newYearsRunning,alt:"New Year's Celebration",style:{width:"100%",height:"100%",objectFit:"contain"},"data-testid":"stStatusWidgetNewYearsIcon"}):jsx$1(d,{color:e.colors.fadedText60,"aria-hidden":"true","data-testid":"stStatusWidgetRunningManIcon",style:{width:e.sizes.appRunningMen,height:e.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:e,stopScript:t,allowRunOnSave:o,showScriptChangedActions:d})=>{const[p,h]=reactExports.useState(!1),y=reactExports.useRef(null),$=reactExports.useRef(null),E=useEmotionTheme(),M=()=>{o&&e(!0)},H=(Ve,je)=>{Ve==="a"&&!isKeyboardEventFromEditableTarget(je)&&M()},Z=n===ConnectionState.CONNECTED,be=reactExports.useCallback(Ve=>{$.current!==null&&$.current.setTimeout(()=>{h(!0)},Ve)},[]),ye=()=>{t()},we=()=>{e(!1)};reactExports.useEffect(()=>{y.current===null&&(y.current=new Timer),$.current===null&&($.current=new Timer);const Ve=y.current,je=y.current;return()=>{Ve.cancel(),je.cancel()}},[]),reactExports.useEffect(()=>{Z&&(i===ScriptRunState.RUNNING||i===ScriptRunState.RERUN_REQUESTED)&&be(RUNNING_MAN_DISPLAY_DELAY_TIME_MS),i===ScriptRunState.NOT_RUNNING&&h(!1)},[i,be,Z]);const xe=()=>{const Ve=i===ScriptRunState.STOP_REQUESTED;return p?jsxs(StyledAppStatus,{children:[jsx$1(IconRunning,{}),jsx$1(PromptButton,{title:Ve?"Stopping...":"Stop",disabled:Ve,onClick:ye})]}):jsx$1(Fragment,{})},Ce=()=>{const Ve=i===ScriptRunState.RERUN_REQUESTED;return jsx$1(ReactHotkeys,{keyName:"a",onKeyDown:H,children:jsxs(StyledAppStatus,{children:[jsx$1(DynamicIcon,{size:"lg",iconValue:":material/info:",color:E.colors.fadedText60}),jsx$1(StyledAppStatusLabel,{isPrompt:!0,children:"File change."}),jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Rerun"}),disabled:Ve,onClick:we}),o&&jsx$1(PromptButton,{title:jsx$1(StyledShortcutLabel,{children:"Always rerun"}),disabled:Ve,onClick:M})]})})},Ne=()=>{const Ve=getConnectionStateUI(n);return Ve===void 0?null:jsx$1(Tooltip$1,{content:Ve.tooltip,placement:Placement.BOTTOM,children:jsxs(StyledConnectionStatus,{className:"stConnectionStatus","data-testid":"stConnectionStatus",children:[jsx$1(Icon$2,{size:"sm",content:Ve.icon}),jsx$1(StyledConnectionStatusLabel,{children:Ve.label})]})})},Fe=()=>{if(Z){if(i===ScriptRunState.RUNNING||i===ScriptRunState.RERUN_REQUESTED)return xe();if(d)return Ce()}return Ne()},Me=reactExports.useRef(),Le=Me.current;if(Me.current=Fe(),isNullOrUndefined(Me.current)&&isNullOrUndefined(Le))return jsx$1(Fragment,{});let ze,Ke;return notNullOrUndefined(Me.current)?(ze=!0,Ke=Me.current):(ze=!1,Ke=Le),jsx$1(CSSTransition,{appear:!0,in:ze,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",children:jsx$1(StyledStatusWidget,{className:"stStatusWidget","data-testid":"stStatusWidget",children:Ke},"StatusWidget")})},StreamlitContextProvider=({isFullScreen:n,setFullScreen:i,locale:e,mapboxToken:t,enforceDownloadInNewTab:o,resourceCrossOriginMode:d,pageLinkBaseUrl:p,currentPageScriptHash:h,onPageChange:y,navSections:$,appPages:E,initialSidebarState:M,initialSidebarWidth:H,appLogo:Z,sidebarChevronDownshift:be,expandSidebarNav:ye,hideSidebarNav:we,activeTheme:xe,setTheme:Ce,availableThemes:Ne,scriptRunState:Fe,scriptRunId:Me,fragmentIdsThisRun:Le,formsData:ze,requestDeferredFile:Ke,children:Ve})=>{const je=reactExports.useMemo(()=>({locale:e,mapboxToken:t,enforceDownloadInNewTab:o,resourceCrossOriginMode:d}),[e,t,o,d]),We=reactExports.useMemo(()=>({initialSidebarState:M,initialSidebarWidth:H,appLogo:Z,sidebarChevronDownshift:be,expandSidebarNav:ye,hideSidebarNav:we}),[M,H,Z,be,ye,we]),Xe=reactExports.useMemo(()=>({activeTheme:xe,setTheme:Ce,availableThemes:Ne}),[xe,Ce,Ne]),Qe=reactExports.useMemo(()=>({pageLinkBaseUrl:p,currentPageScriptHash:h,onPageChange:y,navSections:$,appPages:E}),[p,h,y,$,E]),Ye=reactExports.useMemo(()=>({isFullScreen:n,setFullScreen:i}),[n,i]),Ue=reactExports.useMemo(()=>({scriptRunState:Fe,scriptRunId:Me,fragmentIdsThisRun:Le}),[Fe,Me,Le]),ot=reactExports.useMemo(()=>({formsData:ze}),[ze]),dt=reactExports.useMemo(()=>({requestDeferredFile:Ke}),[Ke]);return jsx$1(LibConfigContext.Provider,{value:je,children:jsx$1(SidebarConfigContext.Provider,{value:We,children:jsx$1(ThemeContext.Provider,{value:Xe,children:jsx$1(NavigationContext.Provider,{value:Qe,children:jsx$1(DownloadContext.Provider,{value:dt,children:jsx$1(ViewStateContext.Provider,{value:Ye,children:jsx$1(ScriptRunContext.Provider,{value:Ue,children:jsx$1(FormsContext.Provider,{value:ot,children:Ve})})})})})})})})},StreamlitContextProvider$1=reactExports.memo(StreamlitContextProvider);var DialogType=(function(n){return n.ABOUT="about",n.CLEAR_CACHE="clearCache",n.CONNECTION_ERROR="connectionError",n.SETTINGS="settings",n.SCRIPT_COMPILE_ERROR="scriptCompileError",n.THEME_CREATOR="theme
151Creator",n.WARNING="warning",n.DEPLOY_ERROR="deployError",n.DEPLOY_DIALOG="deployDialog",n})({}),LevelContext=reactExports.createContext(0);function ownKeys(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(e),!0).forEach(function(t){_defineProperty(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,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";
151Thumbnail.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 e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends.apply(this,arguments)}function _objectWithoutProperties(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function hasThumbnail(n){return!!n.thumbnail}var SemanticTitle=function n(i){var e=i.children,t=_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]},t),e)})};function Card(n){var i=n.action,e=n.children,t=n.hasThumbnail,o=n.headerImage,d=n.thumbnail,p=n.title,h=n.overrides,y=_objectWithoutProperties(n,_excluded2),$=h.Action,E=h.Body,M=h.Contents,H=h.HeaderImage,Z=h.Root,be=h.Thumbnail,ye=h.Title,we=getOverride($)||Action,xe=getOverride(E)||Body,Ce=getOverride(M)||Contents,Ne=getOverride(H)||HeaderImage,Fe=getOverride(Z)||Root,Me=getOverride(be)||Thumbnail,Le=getOverride(ye)||SemanticTitle,ze=typeof o=="string"?{src:o}:o,Ke=t(n);return reactExports.createElement(Fe,_extends({"data-baseweb":"card"},y,getOverrideProps(Z)),o&&reactExports.createElement(Ne,_extends({},ze,getOverrideProps(H))),reactExports.createElement(Ce,getOverrideProps(M),d&&reactExports.createElement(Me,_extends({src:d},getOverrideProps(be))),p&&reactExports.createElement(Le,_extends({$hasThumbnail:Ke},getOverrideProps(ye)),p),reactExports.createElement(xe,getOverrideProps(E),e),i&&reactExports.createElement(we,getOverrideProps($),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
151010.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:` 152The app's main file \`${n}\` has 153not been pushed to GitHub. Please add it to continue. 154`,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:e,radii:t,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:t.xl},":first-child":{borderBottomLeftRadius:t.xl},[`@media (max-width: ${o.md})`]:{":last-child":{borderBottomLeftRadius:t.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%"}},Body:{style:{padding:e.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%",display:"flex",flexDirection:"column",[`@media (max-width: ${o.md})`]:{padding:e.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$1=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:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.
154none,paddingBottom:t.none,paddingLeft:t.none,color:i.bodyText,fontSize:e.md,overflowY:"auto"},children:n})}function DeployModal(n){const{children:i,onClose:e}=n;return jsxs(Modal,{isOpen:!0,closeable:!0,onClose:e,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:e,metricsMgr:t,showDeployError:o,isDeployErrorModalOpen:d}=n,p=reactExports.useCallback(()=>{if(t.enqueue("menuClick",{label:"deployButtonInDialog"}),!i){const Z=NoRepositoryDetected();o(Z.title,Z.body);return}const{repository:h,branch:y,module:$,untrackedFiles:E,state:M}=i;if((!h||!y||!$)&&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($)){const Z=ModuleIsNotAdded($);o(Z.title,Z.body);return}d&&e(),openUrl(getDeployAppUrl(i))},[t,i,d,o,e]);return jsx$1(DeployModal,{onClose:e,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$1,{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:()=>{t.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$1,{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:()=>{t.enqueue("menuClick",{label:"startTrialInDeployDialog"}),openUrl(SNOWFLAKE_TRIAL_URL)},children:"Start trial"}),jsx$1(BaseButton,{onClick:()=>{t.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$1,{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:()=>{t.enqueue("menuClick",{label:"readMoreDeployTutorialInDeployDialog"}),openUrl(STREAMLIT_DEPLOY_TUTORIAL_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})})})]})]})})}const StyledDialogBody=styled("div",{target:"e1mwyxu0"})(({theme:n})=>({display:"grid",gap:n.spacing.twoXL,gridTemplateColumns:"1fr 1fr",margin:0,padding:0})),StyledFullRow=styled("div",{target:"e1mwyxu1"})(({theme:n})=>({gridColumnStart:1,gridColumnEnd:-1,display:"grid",gap:n.spacing.xs})),StyledHeader=styled("h2",{target:"e1mwyxu2"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:n.spacing.md,marginTop:"0",fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.md,lineHeight:n.lineHeights.tight,color:n.colors.bodyText,display:"grid",gridAutoFlow:"row",gap:n.spacing.xs,"&:first-of-type":{marginTop:0}})),StyledLabel=styled("label",{target:"e1mwyxu3"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:n.lineHeights.tight,fontSize:n.fontSizes.sm})),StyledCheckbox=styled("input",{target:"e1mwyxu6"})(({theme:n})=>({marginRight:n.spacing.xs,appearance:"none",border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,width:n.fontSizes.md,height:n.fontSizes.md,borderRadius:`min(${n.radii.md}, ${n.radii.maxCheckbox})`,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,verticalAlign:"middle",overflow:"hidden","&:focus-visible":{outline:`2px solid ${n.colors.primary}`},"&:checked":{backgroundColor:n.colors.primary,"&:after":{content:'"â"',fontFamily:n.fonts.monospace,fontSize:n.fontSizes.md,color:n.colors.white,lineHeight:n.lineHeights.none}},"&:disabled":{backgroundColor:n.colors.darkenedBgMix15}}
154)),StyledDeployErrorContent=styled("div",{target:"e1mwyxu7"})(({theme:n})=>({"& > ul":{paddingLeft:n.spacing.twoXL}})),StyledErrorText=styled("div",{target:"e1mwyxu8"})(({theme:n,hasCodeBelow:i})=>({...i&&{marginBottom:n.spacing.lg}})),SettingsDialog=reactExports.memo(function n({isServerConnected:i,onClose:e,onSave:t,settings:o,allowRunOnSave:d,animateModal:p,metricsMgr:h,sessionInfo:y}){const{activeTheme:$,availableThemes:E,setTheme:M}=reactExports.useContext(ThemeContext),H=reactExports.useRef(o),Z=reactExports.useRef(!0),[be,ye]=reactExports.useState({...o}),we=reactExports.useCallback((Fe,Me)=>{ye(Le=>({...Le,[Fe]:Me}))},[]);reactExports.useEffect(()=>{if(Z.current){Z.current=!1;return}H.current=be,t(H.current)},[t,be]);const xe=reactExports.useCallback(Fe=>{we(Fe.target.name,Fe.target.checked)},[we]),Ce=reactExports.useCallback(Fe=>{let Me;Fe&&(Me=E.find(Le=>Le.name.startsWith("Custom Theme")?Le.displayName===Fe:Le.name===Fe)),Me===void 0&&(Me=E[0]),h.enqueue("menuClick",{label:"changeTheme"}),M(Me)},[M,h,E]),Ne=reactExports.useCallback(()=>E.map(Fe=>Fe.displayName??Fe.name),[E]);return jsxs(Modal,{animate:p,isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:"Settings"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogBody,{children:[d&&jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Development"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{disabled:!i,type:"checkbox",name:"runOnSave",checked:be.runOnSave&&i,onChange:xe})," ","Run on save"]}),jsx$1(StreamlitMarkdown$1,{source:"Automatically updates the app when the underlying code is updated.",allowHTML:!1,isCaption:!0})]}),jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Appearance"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{type:"checkbox",name:"wideMode",checked:be.wideMode,onChange:xe})," ","Wide mode"]}),jsx$1(StreamlitMarkdown$1,{source:" Turn on to make this app occupy the entire width of the screen.",allowHTML:!1,isCaption:!0})]}),!!E.length&&jsxs(StyledFullRow,{children:[jsx$1(StyledLabel,{children:"Choose app theme"}),jsx$1(UISelectbox,{options:Ne(),disabled:$.name===CUSTOM_THEME_NAME,onChange:Ce,value:$.displayName??$.name,placeholder:"",acceptNewOptions:!1})]}),y.isSet&&jsx$1("div",{"data-testid":"stVersionInfo",children:jsx$1(StreamlitMarkdown$1,{source:`Made with Streamlit ${y.current.streamlitVersion}`,allowHTML:!1,isCaption:!0})})]})})]})});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.SETTINGS:return jsx$1(SettingsDialog,{...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 e=["**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(` 155`);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:e,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:n.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,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:e,onContinue:t,onTryAgain:o}){const d=()=>{e(),t&&t()};return jsxs(Modal,{isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:n}
155),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:t?"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 e=0,t=0;const o=/\[([^\]]+)\]\(([^)]+)\)/g;let d;for(;(d=o.exec(n))!==null;)d.index>e&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e,d.index)},t++)),i.push(jsx$1("a",{href:d[2],target:"_blank",rel:"noopener noreferrer",children:d[1]},t++)),e=d.index+d[0].length;return e<n.length&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e)},t++)),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:e}){return jsx$1("div",{className:"stToolbarActionButton","data-testid":"stToolbarActionButton",children:jsx$1(BaseButton,{onClick:e,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:e}){return jsx$1(StyledToolbarActions,{className:"stToolbarActions","data-testid":"stToolbarActions",children:i.map(({key:t,label:o,icon:d})=>jsx$1(ActionButton,{label:o,icon:d,onClick:()=>{e.enqueue("menuClick",{label:t}),n({type:"TOOLBAR_ITEM_CALLBACK",key:t})}},t))})}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[e,t]=reactExports.useState(n);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const d=e-1;d>=0&&t(d),d===0&&i()},children:jsx$1("span",{children:e})},`frame${e}`)},StyledRecordAudioLabel=styled("label",{target:"ez2zj4i0"})({margin:0}),StyledInstruction=styled("p",{target:"ez2zj4i1"})({margin:0}),ScreencastDialog=({onClose:n,toggleRecordAudio:i,recordAudio:e,startRecording:t})=>{const[o,d]=reactExports.useState(e),p=reactExports.useCallback(y=>{const{checked:$}=y.target;$!==o&&(d($),i())},[o,i]),h=reactExports.useCallback(()=>{t(),n()},[t,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:"e1y8cy420"})(({theme:n})=>({width:n.sizes.full,borderRadius:n.radii.md})),StyledDialogContainer=styled("div",{target:"e1y8cy421"})(({theme:n})=>({display:"flex",flexDirection:"column",width:n.sizes.full})),StyledRow=styled("div",{target:"e1y8cy422"})(({theme:n})=>({display:"flex",flexDirection:"row",paddingTop:n.spacing.md,paddingBottom:n.spacing.md})),StyledFirstColumn=styled("div",{target:"e1y8cy423"})(({theme:n})=>({paddingRight:n.spacing.lg,textAlign:"right",color:n.colors.grayTextColor,fontWeight:n.fontWeights.bold,width:"6em"})),StyledSecondColumn=styled("div",{target:"e1y8cy424"})(({theme:n})=>({flex:1,paddingRight:n.spacing.lg,marginRight:"6em",[`@media (max-width: ${n.breakpoints.sm})`]:{marginRight:n.spacing.none}})),StyledVideoFormatInstructions=styled("p",{target:"e1y8cy425"})(({theme:n})=>({marginTop:n.spacing.sm,marginBottom:n.spacing.none,fontSize:n.fontSizes.sm})),StyledDownloadButtonContainer=styled("div",{target:"e1y8cy426"})(({theme:n})=>({marginTop:n.spacing.twoXS})),VideoRecordedDialog=({onClose:n,videoBlob:i,fileName:e})=>{const t=URL.createObjectURL(i),o=()=>{const d=document.createElement("a");d.setAttribute("href",t),d.setAttribute("download",`${e}.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:t,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."]}
155)]})]}),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=e=>{const{testOverride:t}=e,o=reactExports.useRef(null),[d,p]=reactExports.useState("streamlit-screencast"),[h,y]=reactExports.useState(!1),[$,E]=reactExports.useState(void 0),[M,H]=reactExports.useState(t||"OFF"),Z=reactExports.useCallback(()=>{y(Fe=>!Fe)},[]),be=reactExports.useCallback(async()=>{if(!(M==="OFF"||isNullOrUndefined(o.current))){if(M==="COUNTDOWN"){H("OFF");return}if(M==="RECORDING"){const Fe=o.current;if(!Fe||Fe.getState()==="inactive")H("OFF");else{const Me=await Fe.stop();E(Me),H("PREVIEW_FILE")}}}},[M]),ye=reactExports.useCallback(async()=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}o.current=new ScreenCastRecorder({recordAudio:h,onErrorOrStop:()=>{be().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}`),H("UNSUPPORTED");return}H("COUNTDOWN")},[h,be]),we=reactExports.useCallback(Fe=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}if(M==="OFF"){p(Fe),H("SETUP");return}be().catch(Me=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Me}`))},[M,be]),xe=reactExports.useCallback(()=>{if(isNullOrUndefined(o.current))throw new Error("Countdown finished but recorder is null");o.current.start()?H("RECORDING"):be().catch(Me=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Me}`))},[be]),Ce=reactExports.useCallback(()=>{H("OFF")},[]);return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(n,{...e,screenCast:{currentState:M,toggleRecordAudio:Z,startRecording:we,stopRecording:be}}),M==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:Ce}),M==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:h,onClose:Ce,startRecording:ye,toggleRecordAudio:Z}),M==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:xe}),M==="PREVIEW_FILE"&&$&&jsx$1(VideoRecordedDialog,{onClose:Ce,videoBlob:$,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(),e=parseInt(n.emotion.breakpoints.md,10);return{isMobile:i<e}},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=e=>{this.appHash=e},this.setMetricsConfig=(e="")=>{this.metricsUrl=e},this.sessionInfo=i}async initialize({gatherUsageStats:i,sendMessageToHost:e}){this.sendMessageToHost=e,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,e={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([i,e]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(i,e))}setMetadata(i){this.metadata=i}async requestDefaultMetricsConfig(){const i=localStorageAvailable();if(i){const e=window.localStorage.getItem("stMetricsConfig");if(e){this.metricsUrl=e;return}}try{const e=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!e.ok)this.metricsUrl=void 0,LOG$1.error("Failed to fetch metrics config: ",e.status);else{const t=await e.json();this.metricsUrl=t.url??void 0,i&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(e){LOG$1.error("Failed to fetch metrics config:",e)}}send(i,e={}){const t=this.buildEventProto(i,e);this.metricsUrl==="postMessage"?this.postMessageEvent(i,t):this.track(t)}
155sendPendingEvents(){this.pendingEvents.forEach(([i,e])=>{this.send(i,e)}),this.pendingEvents=[]}async track(i){const e=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.toJSON())});await fetch(e)}postMessageEvent(i,e){this.sendMessageToHost({type:"METRICS_EVENT",eventName:i,data:e})}buildEventProto(i,e){const t=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")t.label=e.label;else if(i==="pageProfile")return new MetricsEvent({...t,...e});return t}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",e=localStorageAvailable(),t=getCookie(i),o=e?window.localStorage.getItem(i):null,d=new Date;if(d.setFullYear(new Date().getFullYear()+1),t)this.anonymousId=t,e&&window.localStorage.setItem(i,t);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),e&&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})=>
155{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,e,t,o){this.hostCommunicationMgr=i,this.onUpdatePageUrl=e,this.onPageNotFound=t,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:e,position:t,appPages:o}=i;this.appPages=o,this.hideSidebarNav=t===Navigation.Position.HIDDEN;const d=i.pageScriptHash,p=o.find($=>$.pageScriptHash===d),h=o.find($=>$.isDefault);this.mainPage=h;const y=p.urlPathname;if(!this.isPageTitleSet){const $=getTitle(p.pageName);document.title=$,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:e,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(e=>i.endsWith("/"+e.urlPathname))??this.mainPage}handlePageConfigChanged(i){i.favicon&&(this.isPageIconSet=!0),i.title&&(this.isPageTitleSet=!0)}clearPageElements(i,e){return i.filterMainScriptElements(e)}}function includeIfDefined(n){return Object.entries(n).reduce((i,[e,t])=>(t!==void 0&&(i[e]=t),i),{})}function preferWindowValue(n,i){return n??i}function reconcileHostConfigValues(n,i){if(!n)return i;const e=isValidAllowedOrigins(n.allowedOrigins)?n.allowedOrigins:void 0;return{...i,allowedOrigins:preferWindowValue(e,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.53.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.deferredFileListeners=new Map,this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(e,t,o)=>{const d={type:DialogType.DEPLOY_ERROR,title:e,msg:t,onContinue:o,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(d)},this.handleThemeMessage=(e,t)=>
155{const[,o,d]=createPresetThemes(),p=isPresetTheme(this.props.theme.activeTheme);e===o.name&&p?this.props.theme.setTheme(o):e===d.name&&p?this.props.theme.setTheme(d):t&&this.props.theme.setImportedTheme(t)},this.handleConnectionStateChanged=e=>{if(LOG.info(`Connection state changed from ${this.state.connectionState} to ${e}`),e===ConnectionState.CONNECTED){LOG.info("Reconnected to server."),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});const t=this.state.scriptRunState===ScriptRunState.RUNNING,o=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED;!this.sessionInfo.last||t||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:e!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect();this.isInitializingConnectionManager?this.setState({connectionState:e}):reactDomExports.flushSync(()=>{this.setState({connectionState:e})})},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleCustomParentMessage=e=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:e.message}):LOG.error("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=e=>{const t=(o,d,p)=>{const h=o[d];if(h in p)return p[h](o[h]);throw new Error(`Cannot handle ${d} "${h}".`)};try{t(e,"type",{newSession:o=>this.handleNewSession(o),sessionStatusChanged:o=>this.handleSessionStatusChanged(o),sessionEvent:o=>this.handleSessionEvent(o),delta:o=>this.handleDeltaMsg(o,e.metadata),pageConfigChanged:o=>this.handlePageConfigChanged(o),pageInfoChanged:o=>this.handlePageInfoChanged(o),pagesChanged: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,e.metadata),navigation:o=>this.handleNavigation(o),authRedirect:o=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:o.url}):window.location.href=o.url}})}catch(o){const d=ensureError(o);LOG.error(d),this.showError("Bad message format",{message:d.message})}},this.handleLogo=(e,t)=>{this.setState(o=>({elements:o.elements.appRootWithLogo(e,{activeScriptHash:t.activeScriptHash,scriptRunId:o.scriptRunId})}))},this.handlePageConfigChanged=e=>{const{title:t,favicon:o,layout:d,initialSidebarState:p,initialSidebarWidth:h,menuItems:y}=e;this.appNavigation.handlePageConfigChanged(e),t&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:t}),document.title=t),o&&this.onPageIconChanged(o),d!==this.state.layout&&d!==PageConfig.Layout.LAYOUT_UNSET&&this.setState(E=>({layout:d,userSettings:{...E.userSettings,wideMode:d===PageConfig.Layout.WIDE}})),p!==this.state.initialSidebarState&&p!==PageConfig.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:p}));const $=h?.pixelWidth!==void 0?h.pixelWidth:void 0;notNullOrUndefined($)&&$!==this.state.initialSidebarWidth&&this.setState(()=>({initialSidebarWidth:$})),y&&this.setState(E=>(y.clearAboutMd&&(y.aboutSectionMd=""),{menuItems:{...E.menuItems,...y}}))},this.handlePageInfoChanged=e=>{const{queryString:t}=e,o=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",o),this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.onPageNotFound=e=>{const t=e?`You have requested page /${e}, 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:`${t}. Running the app's main page.`})},this.handlePageNotFound=e=>{const{pageName:t}=e;this.maybeSetState(this.appNavigation.handlePageNotFound(t))},this.onPageIconChanged=e=>{handleFavicon(e,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=e=>{this.setState({navigationPosition:e.position}),this.maybeSetState(this.appNavigation.handleNavigation(e))},this.handlePageProfileMsg=e=>{const t=PageProfile.toObject(e),o=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...t,isFragmentRun:!!t.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=e=>{const t=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(e.fragmentId,!0)},e.interval*1e3);this.setState(o=>({autoReruns:[...o.autoReruns,t]}))},this.handleSessionStatusChanged=e=>{this.setState(t=>{let{scriptRunState:o}=t,{dialog:d}=t;return e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.STOP_REQUESTED?(o=ScriptRunState.RUNNING,notNullOrUndefined(d)&&d.type===DialogType.SCRIPT_COMPILE_ERROR&&(d=void 0)):!e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&t.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(o=ScriptRunState.NOT_RUNNING),{userSettings:{...t.userSettings,runOnSave:!!e.runOnSave},dialog:d,scriptRunState:o,scriptChangedOnDisk:e.scriptIsRunning?!1:t.scriptChangedOnDisk}})},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),e.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const t={type:DialogType.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(t,e.scriptCompilationException?.message??"No message")}else e.type==="scriptChangedOnDisk"&&this.setState({scriptChangedOnDisk:!0}
155)},this.maybeUpdatePageUrl=(e,t,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===""?e:h)!==t){const $=o?"":t,E=this.state.queryParams||preserveEmbedQueryParams(),M=E?`?${E}`:"",Z=`${p==="/"?"":p}/${$}${M}`;window.history.pushState({},"",Z)}}},this.handleNewSession=e=>{const t=e.initialize;if(this.hasStreamlitVersionChanged(t)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(e);const{appHash:o,currentPageScriptHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:y,fragmentIdsThisRun:$,pageScriptHash:E,mainScriptHash:M}=e;if($.length)this.setState({fragmentIdsThisRun:$,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Z=e.config,be=e.customTheme;this.processThemeInput(be),this.setState({allowRunOnSave:Z.allowRunOnSave,hideTopBar:Z.hideTopBar,toolbarMode:Z.toolbarMode,latestRunTime:performance.now(),mainScriptHash:M,fragmentIdsThisRun:$}),this.maybeSetState(this.appNavigation.handleNewSession(e)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged("./favicon.png"))}const H=hashString(this.sessionInfo.current.installationId+y);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(H),this.metricsMgr.enqueue("updateReport"),o===H&&d===E?this.setState(Z=>({elements:Z.elements.clearTransientNodes($),scriptRunId:p})):this.clearAppState(H,p,h,M)},this.handleInitialization=e=>{const t=e.initialize,o=e.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(e)),this.metricsMgr.initialize({gatherUsageStats:o.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(t.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:e}=this.state,t=this.appNavigation.findPageByUrlPath(document.location.pathname),o=document.location.toString().includes("#"),d=t?.pageScriptHash===e;isNullOrUndefined(t)||o&&d||this.onPageChange(t.pageScriptHash,void 0,!0)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=JSON.parse(JSON.stringify(e)),o=sortThemeInputKeys(t);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=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:o}=e;if(this.setState({userSettings:e}),t!==o&&this.isServerConnected()){const d=new BackMsg({setRunOnSave:o});d.type="setRunOnSave",this.sendBackMsg(d)}},this.handleDeltaMsg=(e,t)=>{this.setState(o=>({elements:o.elements.applyDelta(o.scriptRunId,e,t)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const e=new BackMsg({debugShutdownRuntime:!0});e.type="debugShutdownRuntime",this.sendBackMsg(e)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const e=new BackMsg({debugDisconnectWebsocket:!0});e.type="debugDisconnectWebsocket",this.sendBackMsg(e)}},this.debugClearForwardMsgCache=()=>{isLocalhost()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(e=>{clearInterval(e)}),this.setState({autoReruns:[]})},this.rerunScript=(e=!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}),e===!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=(e,t,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($=>getElementId($)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(y),void 0,e,void 0,t,o)},this.isAppInReadyState=e=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&e.scriptRunState===ScriptRunState.RUNNING&&e.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(e,t,o,d,p,h)=>{const y=this.getBaseUriParts();if(!y){LOG.error("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:$}=this.state;let E=p??this.getQueryString(),M="";const H={timezone:getTimezone$1(),timezoneOffset:getTimezoneOffset(),locale:getLocaleLanguage(),url:getUrl(),isEmbedded:isEmbed(),colorScheme:this.getThemeColorScheme()};if(o){if(o!==$&&!h){const be=preserveEmbedQueryParams();E=getQueryString(p,be),this.setState({queryParams:E}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:E})}}else if($)o=$;else{let be;StreamlitConfig.MAIN_PAGE_BASE_URL?be=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:be=y.pathname,M=extractPageNameFromPathName(
155document.location.pathname,be),o=""}const Z=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new BackMsg({rerunScript:{queryString:E,widgetStates:e,pageScriptHash:o,pageName:M,fragmentId:t,isAutoRerun:d,cachedMessageHashes:Z,contextInfo:H}})),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 e=new BackMsg({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{const e={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(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const e=new BackMsg({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const e=new BackMsg({appHeartbeat:!0});e.type="appHeartbeat",this.sendBackMsg(e)}else LOG.error("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(LOG.info(e),this.connectionManager.sendMessage(e)):LOG.error(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.state.connectionErrorDismissed||this.showError("Connection error",e,DialogType.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(e=!0)=>{const t={type:DialogType.SETTINGS,sessionInfo:this.sessionInfo,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},animateModal:e,metricsMgr:this.metricsMgr};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:DialogType.ABOUT,onClose:this.closeDialog,aboutSectionMd:e?.aboutSectionMd};this.openDialog(t)},this.printCallback=()=>{const{scriptRunState:e}=this.state;if(e!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let t;try{const o=getIFrameEnclosingApp(this.embeddingId);o?.contentWindow?t=o.contentWindow.window:t=window}catch{t=window}finally{t||(t=window),t.print()}},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast,o=getScreencastTimestamp();t(`streamlit-${e}-${o}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.setLibConfig=e=>{this.setState({libConfig:e})},this.setAppConfig=e=>{this.setState({appConfig:e})},this.addScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.concat(e)}))},this.removeScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.filter(d=>d!==e)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.state,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},this.getThemeColorScheme=()=>{const{activeTheme:e}=this.props.theme;
155return hasLightBackgroundColor(e.emotion)?"light":"dark"},this.isInCloudEnvironment=()=>{const{hostMenuItems:e}=this.state;return e&&e?.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=(e,t)=>{const o=this.isServerConnected(),d=this.sessionInfo.isSet;if(o&&d){const p=new BackMsg({fileUrlsRequest:{requestId:e,fileNames:t.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:e,errorMsg:"Connection lost. Please wait for the app to reconnect, then try again."})},this.requestDeferredFile=e=>{const t=this.isServerConnected(),o=this.sessionInfo.isSet;if(!t||!o)return Promise.reject(new Error("Not connected to server or session not initialized"));const d=Promise.withResolvers(),p=this.deferredFileListeners.get(e)??new Set,h=$=>{p.delete(h),d.resolve($)};p.add(h),this.deferredFileListeners.set(e,p);const y=new BackMsg({deferredFileRequest:{fileId:e,sessionId:this.sessionInfo.current.sessionId}});return y.type="deferredFileRequest",this.sendBackMsg(y),d.promise},this.handleDeferredFileResponse=e=>{const t=this.deferredFileListeners.get(e.fileId);if(!(!t||t.size===0)){for(const o of Array.from(t))try{o(e)}catch{}this.deferredFileListeners.delete(e.fileId)}},this.handleKeyDown=(e,t)=>{if(!((e==="c"||e==="r")&&isKeyboardEventFromEditableTarget(t)))switch(e){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=e=>{e==="esc"&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{const{menuItems:e}=this.state;return!!(e?.aboutSectionMd||e?.getHelpUrl&&!e?.hideGetHelp||e?.reportABugUrl&&!e?.hideReportABug)},this.shouldShowToolbar=(e,t)=>{const o=!isEmbed()||isToolbarDisplayed();let d;return this.state.toolbarMode===Config.ToolbarMode.MINIMAL?d=e.length>0||t.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:[],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:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Navigation.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),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:e=>{this.setState({inputsDisabled:e})},themeChanged:this.handleThemeMessage,pageChanged:e=>this.onPageChange(e),isOwnerChanged:e=>this.setState({isOwner:e}),fileUploadClientConfigChanged:e=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(e)},hostMenuItemsChanged:e=>{this.setState({hostMenuItems:e})},hostToolbarItemsChanged:e=>{this.setState({hostToolbarItems:e})},hostHideSidebarNavChanged:e=>{this.setState({hostHideSidebarNav:e})},sidebarChevronDownshiftChanged:e=>{this.setState({sidebarChevronDownshift:e})},pageLinkBaseUrlChanged:e=>{this.setState({pageLinkBaseUrl:e})},queryParamsChanged:e=>{this.setState({queryParams:e})},deployedAppMetadataChanged:e=>{this.setState({deployedAppMetadata:e})},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:(e,t,o,d,p)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:e,error:t,message:o,source:d,customComponentName:p})}}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsC
155hanged:e=>this.widgetMgr.setFormsWithUploadsInProgress(e),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,e=includeIfDefined({allowedOrigins:i.allowedOrigins,useExternalAuthToken:i.useExternalAuthToken,enableCustomParentMessages:i.enableCustomParentMessages,blockErrorDialogs:i.blockErrorDialogs});this.hostCommunicationMgr.setAllowedOrigins(e),this.setAppConfig(e);const t=includeIfDefined({mapboxToken:i.mapboxToken,disableFullscreenMode:i.disableFullscreenMode,enforceDownloadInNewTab:i.enforceDownloadInNewTab,resourceCrossOriginMode:i.resourceCrossOriginMode});Object.keys(t).length>0&&this.setLibConfig(t),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,e,t)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:"Websocket Connection",error:i,message:e,source:t})},onHostConfigResp:i=>{const e=reconcileHostConfigValues(StreamlitConfig.HOST_CONFIG,i),{allowedOrigins:t,useExternalAuthToken:o,disableFullscreenMode:d,enableCustomParentMessages:p,mapboxToken:h,enforceDownloadInNewTab:y,metricsUrl:$,blockErrorDialogs:E,setAnonymousCrossOriginPropertyOnMediaElements:M,resourceCrossOriginMode:H}=e,Z={allowedOrigins:t,useExternalAuthToken:o,enableCustomParentMessages:p,blockErrorDialogs:E},be={mapboxToken:h,disableFullscreenMode:d,enforceDownloadInNewTab:y,resourceCrossOriginMode:H??(M?"anonymous":void 0)};this.metricsMgr.setMetricsConfig($),this.hostCommunicationMgr.setAllowedOrigins(Z),this.setAppConfig(Z),this.setLibConfig(be)}}),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()&&(window.iFrameResizer={heightCalculationMethod:()=>{const i=document.querySelectorAll("[data-iframe-height]"),e=Array.from(i).map(t=>Math.ceil(t.getBoundingClientRect().bottom));return Math.max(0,...e)}},__vitePreload(()=>import("./iframeResizer.contentWindow.BZ3lugzo.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,e){if(window.prerenderReady===!1&&this.isAppInReadyState(e)&&(window.prerenderReady=!0),this.state.scriptRunState!==e.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,e){const{blockErrorDialogs:t}=this.state.appConfig;t||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:e})}showError(i,e,t=DialogType.WARNING){LOG.error(e.message);const o={type:t,title:i,msg:jsx$1(DialogErrorMessage$1,{message:e.message,codeBlock:e.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(o,e.message)}hasStreamlitVersionChanged(i){let e;if(StreamlitConfig.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?e=define_PACKAGE_METADATA_default.version:this.sessionInfo.isSet&&(e=this.sessionInfo.current.streamlitVersion),e){const{environmentInfo:t}=i;if(notNullOrUndefined(t)&¬NullOrUndefined(t.streamlitVersion))return e!=t.streamlitVersion}return!1}maybeSetState(i){if(i){const[e,t]=i;this.setState(e,t)}}processThemeInput(i){const e=this.createThemeHash(i);if(e===this.state.themeHash)return;this.setState({themeHash:e});const t=!isPresetTheme(this.props.theme.activeTheme);if(i){const o=createCustomThemes(i);this.props.theme.addThemes(o,{keepPresetThemes:!1});const p=getHostSpecifiedThemeOnly()??getCachedTheme(),h=mapCachedThemeToAvailableTheme(p,o);if(h)this.setAndSendTheme(h);else if(o.length>1){const y=o.findIndex($=>$.name===CUSTOM_THEME_AUTO_NAME);this.setAndSendTheme(o[y])}else this.setAndSendTheme(o[0])}else if(this.props.theme.addThemes([]),t){const d=getHostSpecifiedThemeOnly()??getCachedTheme(),h=mapCachedThemeToAvailableTheme(d,[lightTheme,darkTheme]);h?this.setAndSendTheme(h):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(()=>
155{this.state.scriptFinishedHandlers.forEach(e=>e())}),(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:e,fragmentIdsThisRun:t,elements:o})=>({elements:o.clearStaleNodes(e,t)}),()=>{const e=new Set(Array.from(this.state.elements.getElements()).map(t=>getElementId(t)).filter(notUndefined));this.widgetMgr.removeInactive(e)}),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,e,t,o){this.setState(d=>{const p=this.appNavigation.clearPageElements(d.elements,o);return{scriptRunId:e,scriptName:t,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:e,dialog:t,elements:o,initialSidebarState:d,menuItems:p,isFullScreen:h,scriptRunId:y,scriptRunState:$,userSettings:E,hideTopBar:M,hideSidebarNav:H,expandSidebarNav:Z,currentPageScriptHash:be,hostHideSidebarNav:ye,pageLinkBaseUrl:we,sidebarChevronDownshift:xe,hostMenuItems:Ce,hostToolbarItems:Ne,libConfig:Fe,inputsDisabled:Me,appPages:Le,navSections:ze,navigationPosition:Ke,scriptChangedOnDisk:Ve}=this.state,je=this.props.isMobileViewport?Navigation.Position.SIDEBAR:Ke,We=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),Xe=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":E.wideMode}),Qe=t?StreamlitDialog({...t,onClose:this.closeDialog}):null,Ye=this.shouldShowToolbar(Ce,Ne),Ue=!isEmbed()||isPaddingDisplayed(),ot=isScrollingHidden();return jsx$1(StreamlitContextProvider$1,{initialSidebarState:d,initialSidebarWidth:this.state.initialSidebarWidth,pageLinkBaseUrl:we,currentPageScriptHash:be,onPageChange:this.onPageChange,navSections:ze,appPages:Le,appLogo:o.logo,sidebarChevronDownshift:xe,expandSidebarNav:Z,hideSidebarNav:H||ye||je===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:$,scriptRunId:y,mapboxToken:Fe.mapboxToken,enforceDownloadInNewTab:Fe.enforceDownloadInNewTab,resourceCrossOriginMode:Fe.resourceCrossOriginMode,requestDeferredFile:this.requestDeferredFile,children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{className:Xe,"data-testid":"stApp","data-test-script-state":y==INITIAL_SCRIPT_RUN_ID?"initial":$,"data-test-connection-state":e,children:[jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:o,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:je,wideMode:E.wideMode,embedded:isEmbed(),showPadding:Ue,disableScrolling:ot,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:Me||e!==ConnectionState.CONNECTED,showToolbar:Ye,disableFullscreenMode:Fe.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:jsxs(Fragment,{children:[!M&&jsx$1(StatusWidget,{connectionState:e,scriptRunState:$,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:i,showScriptChangedActions:Ve}),!M&&jsx$1(ToolbarActions,{hostToolbarItems:Ne,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!Ve&&jsx$1(DeployButton,{onClick:this.deployButtonClicked}),!M&&jsx$1(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:Ce,developmentMode:We,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:p,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]})}),Qe]})})})}}const AppWithScreenCast=withScreencast(App),AppWrapper=n=>{const{isMobile:i}=useViewportSize();return jsx$1(AppWithScreenCast,{...n,isMobileViewport:i})};function useThemeManager(){const n=getDefaultTheme(),[i,e]=reactExports.useState(n),[t,o]=reactExports.useState(n.themeInput?.fontFaces??[]),[d,p]=reactExports.useState(null),[h,y]=reactExports.useState(()=>[...createPresetThemes(),...isPresetTheme(n)?[]:[n]]),$=(be,ye={})=>{const{keepPresetThemes:we=!0}=ye;y([...we?createPresetThemes():[],...be])},E=reactExports.useCallback(be=>{e(ye=>be!==ye?(be.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme(be),be):ye)},[e]),M=reactExports.useCallback(()=>{i.name===AUTO_THEME_NAME&&E(getHostSpecifiedTheme());const be=h.filter(ye=>ye.name!==AUTO_THEME_NAME);
155y([createAutoTheme(),...be])},[i.name,h,E]),H=reactExports.useCallback(be=>{be.fontFaces&&o(be.fontFaces);const ye=[...be.fontSources||[],...be.sidebar?.fontSources||[]],we={};ye.forEach(xe=>{xe.sourceUrl&&xe.configName&&(we[xe.configName]=xe.sourceUrl)}),p(Object.keys(we).length>0?we:null)},[o,p]),Z=reactExports.useCallback(be=>{H(be);const ye=new CustomThemeConfig(be),we=createTheme(CUSTOM_THEME_NAME,ye);E(we)},[H,E]);return reactExports.useEffect(()=>{const be=window.matchMedia("(prefers-color-scheme: dark)");return be.addEventListener("change",M),window.addEventListener("afterprint",M),()=>{window.removeEventListener("afterprint",M),be.removeEventListener("change",M)}},[i,h,M]),[{setTheme:E,activeTheme:i,addThemes:$,availableThemes:h,setFonts:H,setImportedTheme:Z},t,d]}const ThemedApp=({streamlitExecutionStartedAt:n})=>{const[i,e,t]=useThemeManager(),{activeTheme:o}=i;return jsx$1(RootStyleProvider,{theme:o,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[e.length>0&&jsx$1(FontFaceDeclaration,{fontFaces:e}),t&&jsx$1(FontSources,{fontSources:t}),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{toaster as $,ADJOINED as A,BaseButtonKind as B,Checkbox$1 as C,DynamicButtonLabel as D,EmotionIconBase as E,styled as F,StyledDropdownListItem as G,isPropValid as H,DownloadContext as I,StyledErrorMessage as J,toString$2 as K,LibConfigContext as L,findAndReplace as M,Arrow$2 as N,range as O,Placement as P,isNumericType as Q,DataFrameCellType as R,StreamlitConfig as S,TooltipIcon as T,UISelectbox as U,useCrossOriginAttribute as V,loglevelExports as W,useRequiredContext as X,NavigationContext as Y,DynamicIcon as Z,_extends$A as _,BaseButtonTooltip as a,TYPE as a$,Fragment as a0,Kind as a1,AlertElement$1 as a2,Video$1 as a3,keyframes as a4,StyledWidgetInstructions as a5,isFromMac as a6,FormsContext as a7,StyledFormSubmitContent as a8,Form$1 as a9,Tooltip$1 as aA,IsSidebarContext as aB,LabelVisibilityOptions as aC,React as aD,find as aE,parse$1 as aF,parse$2 as aG,normalize$1 as aH,html$2 as aI,svg as aJ,useCopyToClipboard as aK,ACCESSIBILITY_TYPE as aL,Popover$2 as aM,ensureError as aN,ErrorElement as aO,hexToRgb as aP,withWrapper as aQ,__vitePreload as aR,blend as aS,SetCache as aT,cacheHas as aU,baseRest as aV,isArrayLikeObject as aW,useSelectCommon as aX,StyledValueContainer as aY,Select as aZ,VirtualDropdown as a_,isInForm as aa,convertRemToPx as ab,WidgetLabelHelpIcon as ac,WidgetLabel as ad,isMaterialIcon as ae,getBorderColor as af,TextInput$1 as ag,getDefaultExportFromCjs as ah,darken as ai,getPrimaryFocusBoxShadow as aj,PortalContext as ak,reactDomExports as al,classNames as am,requireReact as an,styled$1 as ao,isFocusVisible as ap,getOverride as aq,getOverrideProps as ar,root$4 as as,toNumber as at,isObject$1 as au,mergeOverrides as av,CUSTOM_INPUT_TYPE as aw,ChevronDown$1 as ax,PLACEMENT$1 as ay,Icon$2 as az,BaseButton as b,util_bn_ as b$,Metric$1 as b0,transparentize as b1,StyledWidgetLabel as b2,Global as b3,getCrossOriginAttribute as b4,_arrayLikeToArray as b5,_unsupportedIterableToArray as b6,ViewStateContext as b7,useWindowDimensionsContext as b8,LocaleContext as b9,Skeleton as bA,ComponentRegistry as bB,__awaiter as bC,PropTypes as bD,isFromWindows as bE,requirePropTypes as bF,merge$1 as bG,getIncreasingGreen as bH,getDecreasingRed as bI,getBlue80 as bJ,getGray30 as bK,getGray70 as bL,getGray90 as bM,getDivergingColorsArray as bN,keysToSnakeCase as bO,PlotlyChart$1 as bP,themeColors as bQ,isMobile as bR,UploadedFileInfo as bS,FileUploaderState as bT,ThemeContext$1 as bU,pick$1 as bV,Slider$1 as bW,zip as bX,baseSlice as bY,baseToString as bZ,trimmedEndIndex as b_,shouldWidthStretch as ba,ButtonGroup$1 as bb,LabelVisibilityMessage as bc,StyledButtonGroup as bd,NumberInput$1 as be,isDatetimeType as bf,isDateType as bg,getTimezone as bh,debounce$2 as bi,isEqual$1 as bj,shouldHeightStretch as bk,useStyletron as bl,mergeOverride as bm,toObjectOverride as bn,Icon$1 as bo,DeleteAlt$1 as bp,forkBlur as bq,forkFocus as br,addCssUnit as bs,convert as bt,visitParents as bu,SKIP as bv,toExportedTheme as bw,ArrowDataframe as bx,useTimeout as by,Skeleton$1 as bz,BaseButtonSize as c,_assertThisInitialized as c$,util_int_ as c0,util_bit_ as c1,util_math_ as c2,util_buffer_ as c3,util_vector_ as c4,util_pretty_ as c5,util_interval_ as c6,compareTypes as c7,compareFields as c8,compareSchemas as c9,StatefulMenu as cA,ok as cB,stringify$1 as cC,stringify as cD,pointStart as cE,visit as cF,pointEnd as cG,structuredClone$1 as cH,identity as cI,arrayEach as cJ,baseEach as cK,isArray$1 as cL,arrayMap as cM,baseMap as cN,baseIteratee as cO,baseForOwn as cP,isObjectLike as cQ,baseGetTag as cR,isPlainObject$3 as cS,cloneDeep$1 as cT,useExecuteWhenChanged as cU,StatefulPopover as cV,_typeof$e as cW,_inherits as cX,_createSuper as cY,_classCallCheck as cZ,_defineProperty$s as c_,getAugmentedNamespace as ca,isStringType as cb,isTimeType as cc,isPeriodType as cd,isIntervalType as ce,isDurationType as cf,isDecimalType as cg,isFloatType as ch,isObjectType as ci,isListType as cj,TimeUnit as ck,Struct as cl,ThemeProvider$1 as cm,createThemedStyled as cn,createThemedUseStyletron as co,createThemedWithStyle as cp,expandBorderStyles as cq,withStyle as cr,requireReactIs$1 as cs,tableFromIPC as ct,assertNever as cu,v4 as cv,AcceptFileValue as cw,chatInputAcceptFileProtoValueToEnum as cx,requireReactDom as cy,UIDConsumer as cz,Box as d,_createClass as d0,filterOptions as d1,mergeWith as d2,parseEntities as d3,StyledPre as d4,CopyButton$1 as d5,StyledCopyButtonContainer as d6,StyledCodeBlock as d7,propTypesExports as d8,_slicedToArray as d9,isBooleanType as dA,Field as dB,Null as dC,isRangeIndexType as dD,isEmptyType as dE,isBytesType as dF,isCategoricalType as dG,fontSizes as dH,_objectWithoutProperties$1 as dI,_objectSpread2 as dJ,jsx as dK,css as dL,lighten as dM,mix$
1551 as dN,TRIGGER_TYPE as dO,StyledTooltipContentWrapper as dP,FlexContext as dQ,useScrollbarGutterSize as dR,Resizable as dS,index as da,_getPrototypeOf as db,_possibleConstructorReturn as dc,parseToRgba as dd,DeckGlJsonChart$1 as de,hasPath as df,isArrayLike as dg,isBuffer as dh,isTypedArray as di,isArguments as dj,getTag as dk,isPrototype as dl,baseKeys as dm,Set$1 as dn,setToArray as dp,requireClassnames as dq,groupBy as dr,flatten as ds,Vector as dt,getLuminance as du,parseIconPackEntry as dv,genericFonts as dw,getMarkdownBgColors as dx,isUnsignedIntegerType as dy,isIntegerType as dz,isNullOrUndefined as e,StyledWidgetLabelHelpInline as f,getHelpTooltipAriaLabel as g,hoistNonReactStatics as h,isValidFormId as i,jsx$1 as j,useCalculatedDimensions as k,useEmotionTheme as l,hasLightBackgroundColor as m,notNullOrUndefined as n,jsxs as o,labelVisibilityProtoValueToEnum as p,StreamlitMarkdown$1 as q,reactExports as r,streamlit as s,StyledContent as t,useRegisterShortcut as u,getFocusBoxShadow as v,StyledCheckbox$1 as w,getOverrides as x,SIZE$1 as y,ENHANCER_POSITION 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.