PageSourceSearch

https://snoop2head-braille-detection.hf.space/static/js/main.2acb32ee.chunk.js

js snoop2head-braille-detection.hf.space collected 2026-10-03 17:23:56 UTC 670,572 bytes, 1 lines download raw bytes

1(this["webpackJsonpstreamlit-browser"]=this["webpackJsonpstreamlit-browser"]||[]).push([[3],{100:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=8501,a=3e3===+window.location.port,o=!1},1162:function(e,t,n){},1164:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(64),i=n.n(o),l=n(499),s=n(159),c=n(18),u=n(17),d=n(1214),p=n(53),f=n(206),h=n(71),b=n(26),m=n(1);var g=function(e){var t=e.theme,n=e.baseuiTheme,r=e.children;return Object(m.jsx)(f.b,{theme:n||b.lightBaseUITheme,children:Object(m.jsx)(h.c,{theme:t,children:r})})},y=n(5),O=n(2),w=n(4),v=n(6),j=n(7),S=n(98),x=n.n(S),k=n(125),P=n(103),I=n(220),C=n.n(I),V=n(78),T=n(465),E=n(28),A=n(23),N=n(136),D=n(193),R=n(96),B=n(81),M=n(50),F=n.n(M),L=n(47),z=n(100),W=n(24),H=function(){function e(){var t=this;Object(O.a)(this,e),this.initialized=!1,this.actuallySendMetrics=!1,this.pendingEvents=[],this.pendingDeltaCounter={},this.pendingCustomComponentCounter={},this.appHash="Not initialized",this.metadata={},this.setAppHash=function(e){t.appHash=e}}return Object(w.a)(e,[{key:"initialize",value:function(t){var n=t.gatherUsageStats;if(this.initialized=!0,this.actuallySendMetrics=n,this.actuallySendMetrics){!function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var o=Array.prototype.slice.call(r);return o.unshift(t),e.push(o),e}};for(var t=0;t<e.methods.length;t++){var n=e.methods[t];e[n]=e.factory(n)}e.load=function(t,n){var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a&&a.parentNode&&a.parentNode.insertBefore(r,a),e._loadOptions=n},e.SNIPPET_VERSION="4.1.0",e.load("iCkMy7ymtJ9qYzQRXkQpnAJEq7D4NyMU")}}();var r=Object(y.a)(Object(y.a)({},e.getInstallationData()),this.getHostTrackingData());""!==L.a.current.authorEmail&&(r.authoremail=L.a.current.authorEmail),this.identify(L.a.current.installationId,r),this.sendPendingEvents()}Object(W.a)("Gather usage stats: ",this.actuallySendMetrics)}},{key:"enqueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.initialized&&L.a.isSet()?this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(e,t)):this.pendingEvents.push([e,t])}},{key:"clearDeltaCounter",value:function(){this.pendingDeltaCounter={}}},{key:"incrementDeltaCounter",value:function(e){null==this.pendingDeltaCounter[e]?this.pendingDeltaCounter[e]=1:this.pendingDeltaCounter[e]++}},{key:"getAndResetDeltaCounter",value:function(){var e=this.pendingDeltaCounter;return this.clearDeltaCounter(),e}},{key:"clearCustomComponentCounter",value:function(){this.pendingCustomComponentCounter={}}},{key:"incrementCustomComponentCounter",value:function(e){null==this.pendingCustomComponentCounter[e]?this.pendingCustomComponentCounter[e]=1:this.pendingCustomComponentCounter[e]++}},{key:"getAndResetCustomComponentCounter",value:function(){var e=this.pendingCustomComponentCounter;return this.clearCustomComponentCounter(),e}},{key:"send",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},n),this.getHostTrackingData()),e.getInstallationData()),{},{reportHash:this.appHash,dev:z.a,source:"browser",streamlitVersion:L.a.current.streamlitVersion});z.a?Object(W.a)("[Dev mode] Not tracking stat datapoint: ",t,r):this.track(t,r)}},{key:"sendPendingEvents",value:function(){var e=this;this.pendingEvents.forEach((function(t){var n=Object(u.a)(t,2),r=n[0],a=n[1];e.send(r,a)})),this.pendingEvents=[]}},{key:"identify",value:function(e,t){z.a?Object(W.a)("[Dev mode] Not sending id: ",e,t):analytics.identify(e,t)}},{key:"track",value:function(e,t){analytics.track(e,t)}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getHostTrackingData",value:function(){return this.metadata?Object(M.pick)(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}}],[{key:"getInstallationData",value:function(){return{machineIdV3:L.a.current.installationIdV3}}}]),e}();
1H.current=new H;var U=n(40),_="NO_SCRIPT_RUN_ID",G=function(){function e(t,n,r){Object(O.a)(this,e),this.element=void 0,this.metadata=void 0,this.scriptRunId=void 0,this.lazyImmutableElement=void 0,this.lazyQuiverElement=void 0,this.lazyVegaLiteChartElement=void 0,this.element=t,this.metadata=n,this.scriptRunId=r}return Object(w.a)(e,[{key:"immutableElement",get:function(){if(void 0!==this.lazyImmutableElement)return this.lazyImmutableElement;var e=Object(B.c)(A.g,this.element);return this.lazyImmutableElement=e,e}},{key:"quiverElement",get:function(){if(void 0!==this.lazyQuiverElement)return this.lazyQuiverElement;if("arrowTable"!==this.element.type&&"arrowDataFrame"!==this.element.type)throw new Error("elementType '".concat(this.element.type,"' is not a valid Quiver element!"));var e=new N.b(this.element[this.element.type]);return this.lazyQuiverElement=e,e}},{key:"vegaLiteChartElement",get:function(){if(void 0!==this.lazyVegaLiteChartElement)return this.lazyVegaLiteChartElement;if("arrowVegaLiteChart"!==this.element.type)throw new Error("elementType '".concat(this.element.type,"' is not a valid VegaLiteChartElement!"));var e=this.element.arrowVegaLiteChart,t=e.data?new N.b(e.data):null,n=e.datasets.length>0?e.datasets.map((function(e){return{hasName:e.hasName,name:e.name,data:new N.b(e.data)}})):[],r={data:t,spec:e.spec,datasets:n,useContainerWidth:e.useContainerWidth,vegaLiteTheme:e.theme};return this.lazyVegaLiteChartElement=r,r}},{key:"getIn",value:function(e){}},{key:"setIn",value:function(e,t,n){throw new Error("'setIn' cannot be called on an ElementNode")}},{key:"clearStaleNodes",value:function(e){return this.scriptRunId===e?this:void 0}},{key:"getElements",value:function(e){return null==e&&(e=new Set),e.add(this.element),e}},{key:"addRows",value:function(t,n){var r=new e(this.element,this.metadata,n);return r.lazyImmutableElement=Object(D.a)(this.immutableElement,Object(B.c)(A.n,t)),r}},{key:"arrowAddRows",value:function(t,n){var r=this.element.type,a=new e(this.element,this.metadata,n);switch(r){case"arrowTable":case"arrowDataFrame":a.lazyQuiverElement=e.quiverAddRowsHelper(this.quiverElement,t);break;case"arrowVegaLiteChart":a.lazyVegaLiteChartElement=e.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,t);break;default:throw new Error("elementType '".concat(this.element.type,"' is not a valid arrowAddRows target!"))}return a}}],[{key:"quiverAddRowsHelper",value:function(e,t){if(t.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");var n=new N.b(t.data);return e.addRows(n)}},{key:"vegaLiteChartAddRowsHelper",value:function(e,t){var n=t.hasName?t.name:null,r=new N.b(t.data);return Object(P.d)(e,(function(e){var t=function(e,t){if(1===e.length)return e[0];return e.find((function(e){return e.hasName&&e.name===t}))}(e.datasets,n);t?t.data=t.data.addRows(r):e.data=e.data?e.data.addRows(r):r}))}}]),e}();var J=function(){function e(t,n,r){Object(O.a)(this,e),this.children=void 0,this.deltaBlock=void 0,this.scriptRunId=void 0,this.children=null!==t&&void 0!==t?t:[],this.deltaBlock=null!==n&&void 0!==n?n:new A.d({}),this.scriptRunId=null!==r&&void 0!==r?r:_}return Object(w.a)(e,[{key:"isEmpty",get:function(){return 0===this.children.length}},{key:"getIn",value:function(e){if(0!==e.length){var t=e[0];if(!(t<0||t>=this.children.length))return 1===e.length?this.children[t]:this.children[t].getIn(e.slice(1))}}},{key:"setIn",value:function(t,n,r){if(0===t.length)throw new Error("empty path!");var a=t[0];if(a<0||a>this.children.length)throw new Error("Bad 'setIn' index ".concat(a," (should be between [0, ").concat(this.children.length,"])"));var o=this.children.slice();return 1===t.length?o[a]=n:o[a]=o[a].setIn(t.slice(1),n,r),new e(o,this.deltaBlock,r)}},{key:"clearStaleNodes",value:function(t){if(this.scriptRunId===t){var n=this.children.map((function(e){return e.clearStaleNodes(t)})).filter(U.p);if(0!==n.length||this.deltaBlock.allowEmpty)return new e(n,this.deltaBlock,t)}}},{key:"getElements",value:function(e){null==e&&(e=new Set);var t,n=Object(E.a)(this.children);try{for(n.s();!(t=n.n()).done;){t.value.getElements(e)}}catch(r){n.e(r)}finally{n.f()}return e}}]),e}(),q=function(){function e(t){if(Object(O.a)(this,e),this.root=void 0,this.root=t,2!==this.root.children.length||null==this.main||null==this.sidebar)throw new Error("Invalid root node children! ".concat(t))}return Object(w.a)(e,[{key:"main",get:function(){return this.root.children[A.z.RootContainer.MAIN]}},{key:"sidebar",get:function(){return this.root.children[A.z.RootContainer.SIDEBAR]}},{key:"applyDelta",value:function(e,t,n){var r=n.deltaPath;switch(H.current.incrementDeltaCounter(function(e){if(e.length>0)switch(e[0]){case A.z.RootContainer.MAIN:return"main";case A.z.RootContainer.SIDEBAR:return"sidebar"}throw new Error("Unrecognized RootContainer in deltaPath: ".concat(e))}(r)),t.type){case"newElement":var a=t.newElement;if(null!=a.type&&H.current.incrementDeltaCounter(a.type),"componentInstance"===a.type){var o,i=null===(o=a.componentInstance)||void 0===o?void 0:o.componentName;null!=i&&H.current.incrementCustomComponentCounter(i)}return this.addElement(r,e,a,n);case"addBlock":return H.current.incrementDeltaCounter("new block"),this.addBlock(r,t.addBlock,e);case"addRows":return H.current.incrementDeltaCounter("add rows"),this.addRows(r,t.addRows,e);case"arrowAddRows":H.current.incrementDeltaCounter("arrow add rows");try{return this.arrowAddRows(r,t.arrowAddRows,e)}catch(s){var l=Object(U.m)(Object(R.a)(s).message);return this.addElement(r,e,l,n)}default:throw new Error("Unrecognized deltaType: '".concat(t.type,"'"))}}},{key:"clearStaleNodes",value:function(t){var n=this.main.clearStaleNodes(t)||new J,r=this.sidebar.clearStaleNodes(t)||new J;return new e(new J([n,r],new A.d({allowEmpty:!0}),t))}},{key:"getElements",value:function(){var e=new Set;return this.main.getElements(e),this.sidebar.getElements(e),e}},{key:"addElement",value:function(t,n,r,a){var o=new G(r,a,n);return new e(this.root.setIn(t,o,n))}},{key:"addBlock",value:function(t,n,r){var a=this.root.getIn(t),o=a instanceof J?a.children:[],i=new J(o,n,r);return new e(this.root.setIn(t,i,r))}},{key:"addRows",value:function(t,n,r){var a=this.root.getIn(t);
1if(null==a)throw new Error("Can't addRows: invalid deltaPath: ".concat(t));var o=a.addRows(n,r);return new e(this.root.setIn(t,o,r))}},{key:"arrowAddRows",value:function(t,n,r){var a=this.root.getIn(t);if(null==a)throw new Error("Can't arrowAddRows: invalid deltaPath: ".concat(t));var o=a.arrowAddRows(n,r);return new e(this.root.setIn(t,o,r))}}],[{key:"empty",value:function(t){var n;null!=t?n=[new G(Object(U.n)(t),A.j.create({}),_)]:n=[];var r=new J(n,new A.d({allowEmpty:!0}),_),a=new J([],new A.d({allowEmpty:!0}),_);return new e(new J([r,a]))}}]),e}();var Y=n(79),X=n(1194),Q=n(1195),K=n(57),$=n(63),Z=n(1193),ee=n(1196),te=n(11),ne=Object(te.a)("div",{target:"e1s6o5jp0"})((function(e){var t=e.theme;return{".streamlit-expanderHeader:hover svg":{fill:t.colors.primary},".streamlit-expander.empty":{"div[aria-expanded='true'] + .streamlit-expanderContent":{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.sm,textAlign:"center",paddingBottom:t.spacing.lg,paddingTop:t.spacing.lg,"&:before":{content:'"empty"'}}}}}),"");var re=function(e){return function(t){var n=t.label,a=t.expanded,o=t.empty,i=t.widgetsDisabled,l=t.isStale,s=Object(Y.a)(t,["label","expanded","empty","widgetsDisabled","isStale"]),c=Object(r.useState)(a),d=Object(u.a)(c,2),p=d[0],f=d[1];Object(r.useEffect)((function(){f(a)}),[n,a]);var b=Object(h.g)(),g=b.colors,O=b.radii,w=b.spacing,v=b.fontSizes;return Object(m.jsx)(ne,{"data-testid":"stExpander",children:Object(m.jsx)(Z.a,{onChange:function(){return f(!p)},expanded:p?["panel"]:[],disabled:i,overrides:{Content:{style:function(e){var t=e.$expanded;return{backgroundColor:g.transparent,marginLeft:w.none,marginRight:w.none,marginTop:w.none,marginBottom:w.none,overflow:"visible",paddingLeft:w.lg,paddingRight:w.lg,paddingTop:0,paddingBottom:t?w.lg:0,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none"}},props:{className:"streamlit-expanderContent"}},PanelContainer:{style:function(){return{marginLeft:"".concat(w.none," !important"),marginRight:"".concat(w.none," !important"),marginTop:"".concat(w.none," !important"),marginBottom:"".concat(w.none," !important"),paddingLeft:"".concat(w.none," !important"),paddingRight:"".concat(w.none," !important"),paddingTop:"".concat(w.none," !important"),paddingBottom:"".concat(w.none," !important"),borderTopStyle:"none !important",borderBottomStyle:"none !important",borderRightStyle:"none !important",borderLeftStyle:"none !important"}}},Header:{style:function(e){var t=e.$disabled;return Object(y.a)({marginBottom:w.none,marginLeft:w.none,marginRight:w.none,marginTop:w.none,backgroundColor:g.transparent,color:t?g.disabled:g.bodyText,fontSize:v.sm,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",paddingBottom:w.md,paddingTop:w.md,paddingRight:w.lg,paddingLeft:w.lg},l?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{})},props:{className:"streamlit-expanderHeader",isStale:l}},ToggleIcon:{style:function(e){return{color:e.$disabled?g.disabled:g.bodyText}},component:function(){return p?Object(m.jsx)(K.b,{content:X.a,size:"lg"}):Object(m.jsx)(K.b,{content:Q.a,size:"lg"})}},Root:{props:{className:C()("streamlit-expander",{empty:o}),isStale:l},style:Object(y.a)({borderStyle:"solid",borderWidth:"1px",borderColor:g.fadedText10,borderRadius:O.md},l?{borderColor:g.fadedText05,transition:"border 1s ease-in 0.5s"}:{})}},children:Object(m.jsx)(ee.a,{title:Object(m.jsx)($.a,{source:n,allowHTML:!1,isLabel:!0,isExpander:!0}),children:Object(m.jsx)(e,Object(y.a)(Object(y.a)({},s),{},{disabled:i}))},"panel")})})}},ae=n(215),oe=n(1219),ie=n(1200),le=n(39),se=Object(te.a)("div",{target:"exp6ofz0"})((function(e){var t=e.theme,n=e.isOverflowing,r=e.tabHeight;return Object(y.a)({},n?{position:"relative","::after":{content:'" "',position:"absolute",zIndex:1,top:0,right:0,pointerEvents:"none",backgroundImage:"linear-gradient(to right, ".concat(Object(le.g)(t.colors.bgColor,1),", ").concat(t.colors.bgColor,")"),width:t.spacing.lg,height:r}}:{})}),"");var ce=function(e){var t=e.widgetsDisabled,n=e.node,a=e.isStale,o=Object(r.useState)(0),i=Object(u.a)(o,2),l=i[0],s=i[1],c=Object(r.useRef)(null),d=Object(h.g)(),p=Object(r.useState)(!1),f=Object(u.a)(p,2),b=f[0],g=f[1];Object(r.useEffect)((function(){if(c.current){var e=c.current,t=e.scrollWidth,n=e.clientWidth;g(t>n)}}),[c.current,n.children.length]);var O="2.5rem",w=d.spacing.threeXS;return Object(m.jsx)(se,{isOverflowing:b,tabHeight:O,className:"stTabs",children:Object(m.jsx)(oe.a,{activeKey:l,onChange:function(e){var t=e.activeKey;s(t)},renderAll:!0,disabled:t,overrides:{TabHighlight:{style:function(){return{backgroundColor:t?d.colors.fadedText40:d.c
1olors.primary,height:w}}},TabBorder:{style:function(){return{backgroundColor:d.colors.fadedText05,height:w}}},TabList:{props:{ref:c},style:function(){return Object(y.a)({gap:d.spacing.lg,marginBottom:"-".concat(w),paddingBottom:w},a?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{})}},Root:{style:function(){return{transform:"none"}}}},activateOnFocus:!0,children:n.children.map((function(r,a){var o,i,s=Object(y.a)(Object(y.a)({},e),{},{node:r}),c=a.toString();(null===(o=s.node.deltaBlock)||void 0===o||null===(i=o.tab)||void 0===i?void 0:i.label)&&(c=s.node.deltaBlock.tab.label);var u=l.toString()===a.toString(),p=a===n.children.length-1;return Object(m.jsx)(ie.a,{title:Object(m.jsx)($.a,{source:c,allowHTML:!1,isLabel:!0,isTabs:!0}),overrides:{TabPanel:{style:function(){return{paddingLeft:d.spacing.none,paddingRight:d.spacing.none,paddingBottom:d.spacing.none,paddingTop:d.spacing.lg}}},Tab:{style:function(){return Object(y.a)(Object(y.a)({height:O,whiteSpace:"nowrap",paddingLeft:d.spacing.none,paddingRight:d.spacing.none,paddingTop:d.spacing.none,paddingBottom:d.spacing.none,fontSize:d.fontSizes.sm,color:t?d.colors.fadedText40:d.colors.bodyText,":focus":{outline:"none",color:t?d.colors.fadedText40:d.colors.primary,background:"none"},":hover":{color:t?d.colors.fadedText40:d.colors.primary,background:"none"}},u?{color:t?d.colors.fadedText40:d.colors.primary}:{}),b&&p?{paddingRight:"0.6rem"}:{})}}},children:Object(m.jsx)(kn,Object(y.a)({},s))},a)}))})})},ue=n(48);function de(e,t){return"empty"!==e||t!==ue.a.RUNNING}function pe(e,t,n,r){return!e||function(e,t,n){return t===ue.a.RERUN_REQUESTED||t===ue.a.RUNNING&&e.scriptRunId!==n}(t,n,r)}var fe=n(486),he=n.n(fe),be=n(149),me=n(216),ge=Object(te.a)("div",{target:"edw49t14"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,fontFamily:t.fonts.sansSerif,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.xs),lineHeight:t.lineHeights.table,overflow:["auto","overlay"]}}),""),ye=Object(te.a)("table",{target:"edw49t13"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse",border:"1px solid ".concat(t.colors.fadedText05)}}),""),Oe=function(e){return{borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),verticalAlign:"middle",padding:"".concat(e.spacing.twoXS," ").concat(e.spacing.xs),fontWeight:e.fontWeights.normal}},we=Object(te.a)("td",{target:"edw49t12"})((function(e){var t=e.theme;return Oe(t)}),""),ve=Object(te.a)("th",{target:"edw49t11"})((function(e){var t=e.theme;return Object(y.a)(Object(y.a)({},Oe(t)),{},{color:t.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),je=Object(te.a)(we,{target:"edw49t10"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),"");function Se(e,t,n){return Object(m.jsx)("tr",{children:Object(M.range)(n).map((function(n){return function(e,t,n){var r,a=e.getCell(t,n),o=a.type,i=a.cssId,l=a.cssClass,s=a.content,c=a.contentType,u=a.displayContent,d=a.field,p=u||N.b.format(s,c,d),f=e.dimensions.headerColumns,h=null===(r=e.types.data[n-f])||void 0===r?void 0:r.pandas_type,b={textAlign:"int64"===h||"float64"===h?"right":"left"};switch(o){case"blank":return Object(m.jsx)(ve,{className:l,children:"\xa0"},n);case"index":return Object(m.jsx)(ve,{scope:"row",id:i,className:l,children:p},n);case"columns":return Object(m.jsx)(ve,{scope:"col",className:l,style:b,children:p},n);case"data":return Object(m.jsx)(we,{id:i,style:b,children:p},n);default:throw new Error('Cannot parse type "'.concat(o,'".'))}}(e,t,n)}))},t)}var xe=Object(me.a)((function(e){var t=e.element,n=t.cssId,r=t.cssStyles,a=t.caption,o=t.dimensions,i=o.headerRows,l=o.rows,s=o.columns,c=Object(M.range)(l),u=c.slice(0,i),d=c.slice(i);return Object(m.jsxs)(ge,{"data-testid":"stTable",children:[r&&Object(m.jsx)("style",{children:r}),Object(m.jsxs)(ye,{id:n,children:[a&&Object(m.jsx)("caption",{children:Object(m.jsx)("small",{children:a})}),u.length>0&&Object(m.jsx)("thead",{children:u.map((function(e){return Se(t,e,s)}
1))}),Object(m.jsx)("tbody",{children:0===d.length?Object(m.jsx)("tr",{children:Object(m.jsx)(je,{colSpan:s||1,children:"empty"})}):d.map((function(e){return Se(t,e,s)}))})]})]})}));var ke=Object(te.a)("span",{target:"e17gupbm4"})((function(e){return{color:e.theme.colors.docStringModuleText}}),""),Pe=Object(te.a)("span",{target:"e17gupbm3"})((function(e){return{fontWeight:e.theme.fontWeights.bold}}),""),Ie=Object(te.a)("span",{target:"e17gupbm2"})((function(e){var t=e.theme,n=e.width;return{backgroundColor:t.colors.docStringContainerBackground,padding:"".concat(t.spacing.sm," ").concat(t.spacing.lg),fontFamily:t.fonts.monospace,fontSize:t.fontSizes.sm,overflowX:"auto",width:n}}),""),Ce=Object(te.a)("div",{target:"e17gupbm1"})((function(e){var t=e.theme;return{paddingBottom:t.spacing.sm,marginBottom:t.spacing.sm,borderBottom:"1px solid ".concat(t.colors.fadedText10)}}),""),Ve=Object(te.a)("div",{target:"e17gupbm0"})({name:"o572a0",styles:"white-space:pre"});function Te(e){var t=e.width,n=e.element,r=n.name,a=n.module,o=n.docString,i=n.type,l=n.signature,s=Object(m.jsxs)(ke,{children:[a,"."]},"module"),c=Object(m.jsx)(Pe,{children:r},"name"),u=Object(m.jsx)("span",{className:"doc-signature",children:l},"signature"),d=Object(m.jsx)("span",{className:"doc-type",children:i},"type");return Object(m.jsxs)(Ie,{width:t,"data-testid":"stDocstring",children:[Object(m.jsx)(Ce,{children:r?[a?s:"",c,l?u:""]:[d]}),Object(m.jsx)(Ve,{children:o})]})}var Ee=n(265),Ae=n(68),Ne=Object(te.a)("div",{target:"e1m3hlzs3"})((function(e){return{marginTop:e.theme.spacing.sm,"&:first-of-type":{marginTop:0}}}),""),De=Object(te.a)("span",{target:"e1m3hlzs2"})((function(e){return{fontWeight:e.theme.fontWeights.bold}}),""),Re=Object(te.a)("div",{target:"e1m3hlzs1"})((function(e){var t=e.theme;return{marginTop:"calc(".concat(t.spacing.sm," + ").concat(t.spacing.xl,")"),marginBottom:t.spacing.sm}}),""),Be=Object(te.a)("pre",{target:"e1m3hlzs0"})((function(e){var t=e.theme;return{whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:t.fontSizes.sm,backgroundColor:t.colors.transparent,code:{color:"inherit"}}}),"");function Me(e){var t,n=e.type,r=e.message;if(e.messageIsMarkdown){var a="**".concat(n,"**");return r&&(a+=": ".concat(r)),Object(m.jsx)($.a,{source:a,allowHTML:!1})}return Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(De,{children:n}),(t=r,null!=t&&""!==t?": ".concat(r):null)]})}function Fe(e){var t=e.stackTrace;return Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(Re,{children:"Traceback:"}),Object(m.jsx)(Be,{children:Object(m.jsx)("code",{children:t.map((function(e,t){return Object(m.jsx)(Ne,{children:e},t)}))})})]})}function Le(e){var t=e.element,n=e.width;return Object(m.jsx)("div",{className:"stException",children:Object(m.jsxs)(Ae.b,{kind:t.isWarning?Ae.a.WARNING:Ae.a.ERROR,width:n,children:[Object(m.jsx)("div",{className:"message",children:Object(m.jsx)(Me,{type:t.type,message:t.message,messageIsMarkdown:t.messageIsMarkdown})}),t.stackTrace&&t.stackTrace.length>0?Object(m.jsx)(Fe,{stackTrace:t.stackTrace}):null]})})}var ze=n(487),We=n(488),He=n.n(We),Ue=n(150);function _e(e){var t,n=e.width,r=e.element,a={width:n},o=Object(h.g)();try{t=JSON.parse(r.body)}catch(c){var i=Object(R.a)(c);try{t=ze.a.parse(r.body)}catch(u){var l=parseInt(i.message.replace(/[^0-9]/g,""),10);return i.message+="\n".concat(r.body.substr(0,l+1)," \u2190 here"),Object(m.jsx)(Ue.a,{name:"Json Parse Error",message:i.message})}}
1var s=Object(b.hasLightBackgroundColor)(o)?"rjv-default":"monokai";return Object(m.jsx)("div",{"data-testid":"stJson",style:a,children:Object(m.jsx)(He.a,{src:t,collapsed:!r.expanded,displayDataTypes:!1,displayObjectSize:!1,name:!1,theme:s,style:{fontFamily:o.genericFonts.codeFont,fontSize:o.fontSizes.sm,backgroundColor:o.colors.bgColor}})})}function Ge(e){var t=e.width,n=e.element,r={width:t};return Object(m.jsx)("div",{className:"stMarkdown",style:r,children:Object(m.jsx)($.a,{isCaption:n.isCaption,source:n.body,allowHTML:n.allowHtml})})}var Je=n(1203),qe=n(1204),Ye=n(130),Xe=n(131),Qe=n(65),Ke=n(122),$e=Object(te.a)("div",{target:"e16fv1kl3"})((function(e){var t=e.theme;return{overflowWrap:"normal",textOverflow:"ellipsis",width:"100%",overflow:"hidden",whiteSpace:"nowrap",fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.normal,verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"}}),""),Ze=Object(te.a)(Ke.b,{target:"e16fv1kl2"})((function(e){var t=e.visibility;return{marginBottom:0,display:t===U.a.Collapsed?"none":"flex",visibility:t===U.a.Hidden?"hidden":"visible"}}),""),et=Object(te.a)("div",{target:"e16fv1kl1"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.threeXL,color:t.colors.textColor,paddingBottom:t.spacing.twoXS}}),""),tt=Object(te.a)("div",{target:"e16fv1kl0"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,display:"flex",flexDirection:"row",alignItems:"center",fontWeight:t.fontWeights.normal}}),"");function nt(e){var t,n=e.element,r=Object(h.g)().colors,a=A.m.MetricColor,o=A.m.MetricDirection,i=null,l="";switch(n.color){case a.RED:l=r.red;break;case a.GREEN:l=r.green;break;default:l=r.fadedText60}switch(n.direction){case o.DOWN:i=Je.a;break;case o.UP:i=qe.a;break;default:i=null}var s={color:l},c=""!==n.delta;return Object(m.jsxs)("div",{"data-testid":"metric-container",children:[Object(m.jsx)(Ze,{"data-testid":"stMetricLabel",visibility:Object(U.l)(null===(t=n.labelVisibility)||void 0===t?void 0:t.value),children:Object(m.jsxs)($e,{children:[Object(m.jsx)($.a,{source:n.label,allowHTML:!1,isLabel:!0}),n.help&&Object(m.jsx)(Ye.c,{children:Object(m.jsx)(Xe.a,{content:n.help,placement:Qe.b.TOP_RIGHT})})]})}),Object(m.jsx)(et,{"data-testid":"stMetricValue",children:Object(m.jsxs)($e,{children:[" ",n.body," "]})}),c&&Object(m.jsxs)(tt,{"data-testid":"stMetricDelta",style:s,children:[Object(m.jsx)(K.b,{content:i,size:"lg",margin:"0 threeXS 0 0"}),Object(m.jsxs)($e,{children:[" ",n.delta," "]})]})]})}var rt=n(157),at=Object(te.a)("div",{target:"e1ynspad4"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,fontFamily:t.fonts.sansSerif,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.md),lineHeight:t.lineHeights.table,overflow:["auto","overlay"]}}),""),ot=Object(te.a)("table",{target:"e1ynspad3"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse",border:"1px solid ".concat(t.colors.fadedText05)}}),""),it=function(e){return{borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),verticalAlign:"middle",padding:"".concat(e.spacing.twoXS," ").concat(e.spacing.md),fontWeight:e.fontWeights.normal}},lt=Object(te.a)("td",{target:"e1ynspad2"})((function(e){var t=e.theme;return it(t)}),""),st=Object(te.a)("th",{target:"e1ynspad1"})((function(e){var t=e.theme;return Object(y.a)(Object(y.a)({},it(t)),{},{color:t.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),ct=Object(te.a)(lt,{target:"e1ynspad0"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),"");function ut(e,t,n){return Object(m.jsx)("tr",{children:Object(M.range)(n).map((function(n){return function(e,t,n){var r=Object(D.b)(e,n,t),a=r.contents,o=r.styles,i=r.type,l=Object(rt.b)(a);switch(i){case"corner":return Object(m.jsx)(st,{children:"\xa0"},n);case"row-header":return Object(m.jsx)(st,{scope:"row",children:l},n);case"col-header":return Object(m.jsx)(st,{scope:"column",children:l},n);case"data":return Object(m.jsx)(lt,{style:o,children:l},n);default:throw new Error('Cannot parse type "'.concat(i,'".'))}}
1(e,t,n)}))},t)}var dt=Object(me.a)((function(e){var t=e.element,n=Object(D.c)(t),r=n.headerRows,a=n.rows,o=n.cols,i=Object(M.range)(a),l=i.slice(0,r),s=i.slice(r);return Object(m.jsx)(at,{"data-testid":"stTable",children:Object(m.jsxs)(ot,{children:[l.length>0&&Object(m.jsx)("thead",{children:l.map((function(e){return ut(t,e,o)}))}),Object(m.jsxs)("tbody",{children:[s.map((function(e){return ut(t,e,o)})),0===s.length&&Object(m.jsx)("tr",{children:Object(m.jsx)(ct,{colSpan:o||1,children:"empty"})})]})]})})})),pt=Object(te.a)("div",{target:"eyqtai90"})((function(e){var t=e.theme;return{fontFamily:t.fonts.monospace,whiteSpace:"pre",fontSize:t.fontSizes.sm,overflowX:"auto"}}),"");function ft(e){var t=e.width,n=e.element,r={width:t};return Object(m.jsx)(pt,{"data-testid":"stText",style:r,children:n.body})}var ht,bt,mt=n(332),gt=function(){function e(){Object(O.a)(this,e),this.timerHandle=void 0,this.duration=0,this.startTime=0,this.running=!1}return Object(w.a)(e,[{key:"isRunning",get:function(){return this.running}},{key:"remainingTime",get:function(){if(!this.running)return 0;var e=Date.now()-this.startTime;return Math.max(this.duration-e,0)}},{key:"setTimeout",value:function(e,t){var n=this;this.cancel(),this.startTime=Date.now(),this.duration=t,this.running=!0,this.timerHandle=window.setTimeout((function(){n.running=!1,e()}),t)}},{key:"cancel",value:function(){void 0!==this.timerHandle&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}]),e}(),yt=n(489),Ot=n.n(yt),wt=n(74);!function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(ht||(ht={})),function(e){e.RENDER="streamlit:render"}(bt||(bt={}));var vt=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var a;return Object(O.a)(this,n),(a=t.call(this,e)).iframeRef=Object(r.createRef)(),a.componentReady=!1,a.curArgs={},a.curDataframeArgs=[],a.frameHeight=0,a.contentWindow=void 0,a.componentReadyWarningTimer=new gt,a.componentDidMount=function(){a.maybeRegisterIFrameListener(),a.componentReadyWarningTimer.setTimeout((function(){return a.setState({readyTimeout:!0})}),3e3)},a.componentWillUnmount=function(){a.deregisterIFrameListener(),a.componentReadyWarningTimer.cancel()},a.componentDidUpdate=function(){a.maybeRegisterIFrameListener()},a.maybeRegisterIFrameListener=function(){var e=a.getIFrameContentWindow();if(a.contentWindow!==e){if(a.deregisterIFrameListener(),null==e)return Object(W.b)("ComponentInstance iframe does not have a contentWindow, and will not receive messages!"),void(a.contentWindow=void 0);a.contentWindow=e,a.props.registry.registerListener(a.contentWindow,a.onBackMsg)}},a.deregisterIFrameListener=function(){null!=a.contentWindow&&(a.props.registry.deregisterListener(a.contentWindow),a.contentWindow=void 0)},a.onBackMsg=function(e,t){switch(e){case ht.COMPONENT_READY:var n=t.apiVersion;1!==n?a.setState({componentError:new Error("Unrecognized component API version: '".concat(n,"'"))}):(a.componentReady=!0,a.sendRenderMessage()),a.componentReadyWarningTimer.cancel(),a.setState({readyTimeout:!1});break;case ht.SET_COMPONENT_VALUE:a.componentReady?a.handleSetComponentValue(t,{fromUi:!0}):Object(W.d)("Got ".concat(e," before ").concat(ht.COMPONENT_READY,"!"));break;case ht.SET_FRAME_HEIGHT:a.componentReady?a.handleSetFrameHeight(t):Object(W.d)("Got ".concat(e," before ").concat(ht.COMPONENT_READY,"!"));break;default:Object(W.d)("Unrecognized ComponentBackMsgType: ".concat(e))}},a.handleSetComponentValue=function(e,t){var n=jt(e,"value");if(void 0!==n){var r=a.props.element,o=e.dataType;"dataframe"===o?a.props.widgetMgr.setArrowValue(r,n,t):"bytes"===o?a.props.widgetMgr.setBytesValue(r,n,t):a.props.widgetMgr.setJsonValue(r,n,t)}else Object(W.d)("handleSetComponentValue: missing 'value' prop")},a.handleSetFrameHeight=function(e){var t=jt(e,"height");void 0!==t?t!==a.frameHeight&&(null!=a.iframeRef.current?(a.frameHeight=t,a.iframeRef.current.height=a.frameHeight.toString()):Object(W.d)("handleSetFrameHeight: missing our iframeRef!")):Object(W.d)("handleSetFrameHeight: missing 'height' prop")},a.sendForwardMsg=function(e,t){null!=a.iframeRef.current?null!=a.iframeRef.current.contentWindow?a.iframeRef.current.contentWindow.postMessage(Object(y.a)({type:e},t),"*"):Object(W.d)("Can't send ForwardMsg; iframe has no contentWindow!"):Object(W.d)("Can't send ForwardMsg; missing our iframe!")},a.sendRenderMessage=function(){a.sendForwardMsg(bt.RENDER,{args:a.curArgs,dfs:a.curDataframeArgs,disabled:a.props.disabled,theme:Object(b.toExportedTheme)(a.props.theme)})},a.renderError=function(e){return Object(m.jsx)(Ue.a,{name:e.name,message:e.message})},a.renderComponentReadyTimeoutWarning=function(){var e="Your app is having trouble loading the **".concat(a.props.element.componentName,"** component. ")+"\n\n(The app is attempting to load the component from **".concat(a.props.element.url,"**, and hasn't ")+'received its **"'.concat(ht.COMPONENT_READY,'"** message.)')+"\n- If this is a development build, have you started the dev server?\n- If this is a release build, have you compiled the frontend?"+"\n\nFor more troubleshooting help, please see the [Streamlit Component docs](".concat(wt.d,") ")+"or visit our [forums](".concat(wt.c,").");return Object(m.jsx)(be.a,{width:a.props.width,body:e,kind:Ae.a.WARNING})},a.state={componentError:void 0,readyTimeout:!1},a}return Object(w.a)(n,[{key:"getIFrameContentWindow",value:function(){var e;return null===(e=this.iframeRef.current)||void 0===e?void 0:e.contentWindow}},{key:"render",value:function(){if(null!=this.state.componentError)return this.renderError(this.state.componentError);var e,t,n,r=this.state.readyTimeout?this.renderComponentReadyTimeoutWarning():null,a=[];try{n=this.props.element.componentName;var o=this.props.element.url;t=null!=o&&""!==o?o:this.props.registry.getComponentURL(n,"index.html"),t=Ot.a.stringifyUrl({url:t,query:{streamlitUrl:window.location.href}}),e=JSON.parse(this.props.element.jsonArgs),this.props.element.specialArgs.forEac
1h((function(t){var n=t,r=n.key;switch(n.value){case"arrowDataframe":a.push({key:r,value:A.b.toObject(n.arrowDataframe)});break;case"bytes":e[r]=n.bytes;break;default:throw new Error("Unrecognized SpecialArg type: ".concat(n.value))}}))}catch(l){var i=Object(R.a)(l);return this.renderError(i)}return this.curArgs=e,this.curDataframeArgs=a,this.componentReady&&this.sendRenderMessage(),Object(m.jsxs)(m.Fragment,{children:[r,Object(m.jsx)("iframe",{allow:mt.a,ref:this.iframeRef,src:t,width:this.props.width,height:this.frameHeight,scrolling:"no",sandbox:mt.b,title:n})]})}}]),n}(a.a.PureComponent);function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e.hasOwnProperty(t)?e[t]:n}var St=Object(h.d)(vt),xt=n(67),kt=function e(t){var n=this;Object(O.a)(this,e),this.getServerUri=void 0,this.msgListeners=new Map,this.cachedServerUri=void 0,this.registerListener=function(e,t){n.msgListeners.has(e)&&Object(W.d)("MessageEventSource registered multiple times!",e),n.msgListeners.set(e,t)},this.deregisterListener=function(e){n.msgListeners.delete(e)||Object(W.d)("Could not deregister unregistered MessageEventSource!")},this.getComponentURL=function(e,t){var r=n.getServerUri();if(void 0===r){if(void 0===n.cachedServerUri)throw new Error("Can't fetch component: not connected to a server");r=n.cachedServerUri}return n.cachedServerUri=r,Object(xt.a)(r,"component/".concat(e,"/").concat(t))},this.onMessageEvent=function(e){if(null!=e.data&&e.data.hasOwnProperty("isStreamlitMessage"))if(null!=e.source){var t=n.msgListeners.get(e.source);if(null!=t&&"function"===typeof t){var r=e.data.type;null!=r?t(r,e.data):Object(W.d)("Received Streamlit message with no type!",e.data)}else Object(W.d)("Received component message for unregistered ComponentInstance!",e.data)}else Object(W.d)("Received component message with no eventSource!",e.data)}
1,this.getServerUri=t,window.addEventListener("message",this.onMessageEvent)},Pt=n(246),It=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){return Object(O.a)(this,n),t.apply(this,arguments)}return Object(w.a)(n,[{key:"shouldComponentUpdate",value:function(e,t,n){return this.props.enable||e.enable}},{key:"render",value:function(){return this.props.children}}]),n}(a.a.Component),Ct=n(245),Vt=n(25);function Tt(e,t){var n=t.spacing.lg;return"medium"===e?n=t.spacing.threeXL:"large"===e&&(n=t.spacing.fourXL),n}var Et=Object(te.a)("div",{target:"e1tzin5v4"})((function(e){var t=e.theme;return{display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:Tt(e.gap,t)}}),""),At=Object(te.a)("div",{target:"e1tzin5v3"})((function(e){var t=e.theme,n=e.isStale,r=e.width,a=e.elementType;return Object(y.a)(Object(y.a)(Object(y.a)({width:r,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"}},n?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{}),"empty"===a?{display:"none"}:{}),"balloons"===a?{marginBottom:"-".concat(t.spacing.lg)}:{})}),""),Nt=Object(te.a)("div",{target:"e1tzin5v2"})((function(e){var t=e.weight,n=e.gap,r=e.theme,a=100*t,o=Tt(n,r),i="calc(".concat(a,"% - ").concat(o,")");return Object(Vt.a)({width:i,flex:"1 1 ".concat(i)},"@media (max-width: ".concat(r.breakpoints.columns,")"),{minWidth:"calc(100% - ".concat(r.spacing.twoXL,")")})}),""),Dt={display:"flex",flexDirection:"column",flex:1},Rt=Object(te.a)("div",{target:"e1tzin5v0"})((function(e){return{width:e.width,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:e.theme.spacing.lg}}),""),Bt=a.a.lazy((function(){return n.e(29).then(n.bind(null,1764))})),Mt=a.a.lazy((function(){return n.e(10).then(n.bind(null,1739))})),Ft=a.a.lazy((function(){return n.e(11).then(n.bind(null,1747))})),Lt=a.a.lazy((function(){return Promise.all([n.e(9),n.e(40)]).then(n.bind(null,1753))})),zt=a.a.lazy((function(){return Promise.all([n.e(1),n.e(28)]).then(n.bind(null,1754))})),Wt=a.a.lazy((function(){return n.e(30).then(n.bind(null,1765))})),Ht=he()(Wt,100),Ut=a.a.lazy((function(){return n.e(31).then(n.bind(null,1740))})),_t=a.a.lazy((function(){return Promise.all([n.e(6),n.e(14)]).then(n.bind(null,1744))})),Gt=a.a.lazy((function(){return Promise.all([n.e(8),n.e(19)]).then(n.bind(null,1756))})),Jt=a.a.lazy((function(){return n.e(32).then(n.bind(null,1766))})),qt=a.a.lazy((function(){return Promise.all([n.e(7),n.e(26)]).then(n.bind(null,1757))})),Yt=a.a.lazy((function(){return Promise.all([n.e(18),n.e(33)]).then(n.bind(null,1758))})),Xt=a.a.lazy((function(){return Promise.all([n.e(1),n.e(35)]).then(n.bind(null,1759))})),Qt=a.a.lazy((function(){return n.e(36).then(n.bind(null,1767))})),Kt=a.a.lazy((function(){return n.e(37).then(n.bind(null,1768))})),$t=a.a.lazy((function(){return n.e(42).then(n.bind(null,1769))})),Zt=a.a.lazy((function(){return Promise.all([n.e(16),n.e(24)]).then(n.bind(null,1748))})),en=a.a.lazy((function(){return n.e(38).then(n.bind(null,1749))})),tn=a.a.lazy((function(){return n.e(39).then(n.bind(null,1770))})),nn=a.a.lazy((function(){return Promise.all([n.e(0),n.e(2),n.e(17),n.e(41)]).then(n.bind(null,1771))})),rn=a.a.lazy((function(){return n.e(12).then(n.bind(null,1760))})),an=a.a.lazy((function(){return n.e(22).then(n.bind(null,1772))})),on=a.a.lazy((function(){return n.e(34).then(n.bind(null,1761))})),ln=a.a.lazy((function(){return Promise.all([n.e(21),n.e(43)]).then(n.bind(null,1755))})),sn=a.a.lazy((function(){return n.e(44).then(n.bind(null,1773))})),cn=a.a.lazy((function(){return Promise.all([n.e(15),n.e(45)]).then(n.bind(null,1762))})),un=a.a.lazy((function(){return Promise.all([n.e(13),n.e(25)]).then(n.bind(null,1738))})),dn=a.a.lazy((function(){return Promise.all([n.e(0),n.e(27)]).then(n.bind(null,1750))})),pn=a.a.lazy((function(){return Promise.all([n.e(0),n.e(23)]).then(n.bind(null,1763))})),fn=a.a.lazy((function(){return Promise.all([n.e(2),n.e(46)]).then(n.bind(null,1774))})),hn=a.a.lazy((function(){return Promise.all([n.e(0),n.e(20)]).then(n.bind(null,1751))}));function bn(e,t){return e?Object(m.jsx)(m.Fragment,{}):t}var mn=function(e){var t,n=e.node;if(!n)throw new Error("ElementNode not found.");var r,a={widgetMgr:e.widgetMgr,disabled:e.widgetsDisabled},o=null!==(t=e.width)&&void 0!==t?t:0;switch(n.metadata.elementDimensionSpec&&(n.metadata.elementDimensionSpec.width&&n.metadata.elementDimensionSpec.width>0&&(o=Math.min(n.metadata.elementDimensionSpec.width,o)),n.metadata.elementDimensionSpec.height&&n.metadata.elementDimensionSpec.height>0&&(r=n.metadata.elementDimensionSpec.height)),n.element.type){case"alert":var i=n.element.alert;return Object(m.jsx)(be.a,{width:o,icon:i.icon,body:i.body,kind:Object(Pt.b)(i.format)});case"audio":return Object(m.jsx)(Bt,{width:o,element:n.element.audio});case"balloons":return bn(e.isStale,Object(m.jsx)(Mt,{scriptRunId:e.scriptRunId}));case"arrowDataFrame":return Object(m.jsx)(Lt,{element:n.element.arrowDataFrame,data:n.quiverElement,width:o,height:r});case"arrowTable":return Object(m.jsx)(xe,{element:n.quiverElement});case"arrowVegaLiteChart":return Object(m.jsx)(zt,{element:n.vegaLiteChartElement,width:o});case"bokehChart":return Object(m.jsx)(Ht,{width:o,element:n.element.bokehChart});case"dataFrame":return Object(m.jsx)(Ut,{element:n.immutableElement.get("dataFrame"),width:o,height:r});case"deckGlJsonChart":return Object(m.jsx)(_t,{width:o,element:n.element.deckGlJsonChart});case"docString":return Object(m.jsx)(Te,{width:o,element:n.element.docString});case"empty":return Object(m.jsx)("div",{className:"stHidden"});case"exception":return Object(m.jsx)(Le,{width:o,element:n.element.exception});case"graphvizChart":return Object(m.jsx)(Gt,{element:n.element.graphvizChart,width:o});case"iframe":return Object(m.jsx)(Jt,{element:n.element.iframe,width:o});case"imgs":return Object(m.jsx)(qt,{width:o,element:n.element.imgs});case"json":return Object(m.jsx)(_e,{width:o,element:n.element.json});case"markdown":return Object(m.jsx)(Ge,{width:o,element:n.element.markdown});case"heading":return Object(m.jsx)(Ct.a,{width:o,element:n.element.heading});case"plotlyChart":return Object(m.jsx)(Yt,{width:o,height:r,element:n.element.plotlyChart});case"progress":return Object(m.jsx)(an,{width:o,element:n.element.progress});case"spinner":return Object(m.jsx)(on,{width:o,element:n.element.spinner});case"table":return Object(m.jsx)(dt,{element:n.immutableElement.get("table"),width:o});case"text":return Object(m.jsx)(ft,{width:o,element:n.element.text});case"metric":return Object(m.jsx)(nt,{element:n.element.metric});case"vegaLiteChart":return Object(m.jsx)(Xt,{element:n.immutableElement.get("vegaLiteChart"),width:o});case"video":return Object(m.jsx)(Qt,{width:o,element:n.element.video});case"button":var l=n.element.button;if(a.disabled=a.disabled||l.disabled,l.isFormSubmitter){var s=l.formId,c=e.formsData.formsWithUploads.has(s);return Object(m.jsx)(ae.c,Object(y.a)({element:l,width:o,hasInProgressUpload:c},a))}return Object(m.jsx)(Kt,Object(y.a)({element:l,width:o},a));case"downloadButton":var u=n.element.downloadButton;return a.disabled=a.disabled||u.disabled,Object(m.jsx)($t,Object(y.a)({element:u,width:o},a),u.id);case"cameraInput":var d=n.element.cameraInput;return a.disabled=a.disabled||d.disabled,Object(m.jsx)(Zt,Object(y.a)({element:d,uploadClient:e.uploadClient,width:o},a),d.id);case"checkbox":var p=n.element.checkbox;return a.disabled=a.disabled||p.disabled,Object(m.jsx)(en,Object(y.a)({element:p,width:o}
1,a),p.id);case"colorPicker":var f=n.element.colorPicker;return a.disabled=a.disabled||f.disabled,Object(m.jsx)(tn,Object(y.a)({element:f,width:o},a),f.id);case"componentInstance":return Object(m.jsx)(St,Object(y.a)({registry:e.componentRegistry,element:n.element.componentInstance,width:o},a));case"dateInput":var h=n.element.dateInput;return a.disabled=a.disabled||h.disabled,Object(m.jsx)(nn,Object(y.a)({element:h,width:o},a),h.id);case"fileUploader":var b=n.element.fileUploader;return a.disabled=a.disabled||b.disabled,Object(m.jsx)(un,{element:b,width:o,widgetMgr:a.widgetMgr,uploadClient:e.uploadClient,disabled:a.disabled},b.id);case"multiselect":var g=n.element.multiselect;return a.disabled=a.disabled||g.disabled,Object(m.jsx)(rn,Object(y.a)({element:g,width:o},a),g.id);case"numberInput":var O=n.element.numberInput;return a.disabled=a.disabled||O.disabled,Object(m.jsx)(hn,Object(y.a)({element:O,width:o},a),O.id);case"radio":var w=n.element.radio;return a.disabled=a.disabled||w.disabled,Object(m.jsx)(ln,Object(y.a)({element:w,width:o},a),w.id);case"selectbox":var v=n.element.selectbox;return a.disabled=a.disabled||v.disabled,Object(m.jsx)(sn,Object(y.a)({element:v,width:o},a),v.id);case"slider":var j=n.element.slider;return a.disabled=a.disabled||j.disabled,Object(m.jsx)(cn,Object(y.a)({element:j,width:o},a),j.id);case"snow":return bn(e.isStale,Object(m.jsx)(Ft,{scriptRunId:e.scriptRunId}));case"textArea":var S=n.element.textArea;return a.disabled=a.disabled||S.disabled,Object(m.jsx)(dn,Object(y.a)({element:S,width:o},a),S.id);case"textInput":var x=n.element.textInput;return a.disabled=a.disabled||x.disabled,Object(m.jsx)(pn,Object(y.a)({element:x,width:o},a),x.id);case"timeInput":var k=n.element.timeInput;return a.disabled=a.disabled||k.disabled,Object(m.jsx)(fn,Object(y.a)({element:k,width:o},a),k.id);default:throw new Error("Unrecognized Element type ".concat(n.element.type))}},gn=function(e){var t,n=e.node,a=n.element.type||"",o=de(a,e.scriptRunState),i=pe(o,n,e.scriptRunState,e.scriptRunId),l=null!==(t=e.width)&&void 0!==t?t:0;return Object(m.jsx)(It,{enable:o,children:Object(m.jsx)(At,{"data-stale":i,isStale:i,width:l,className:"element-container",elementType:a,children:Object(m.jsx)(Ee.a,{width:l,children:Object(m.jsx)(r.Suspense,{fallback:Object(m.jsx)(be.a,{body:"Loading...",kind:Ae.a.INFO,width:l}),children:Object(m.jsx)(mn,Object(y.a)(Object(y.a)({},e),{},{isStale:i}))})})})})},yn=re(Sn),On=function(e){var t=e.node;if(t.isEmpty&&!t.deltaBlock.column)return Object(m.jsx)(m.Fragment,{});var n,r,a=pe(de("",e.scriptRunState),t,e.scriptRunState,e.scriptRunId),o=t.deltaBlock.expandable?Object(y.a)({empty:t.isEmpty,isStale:a},t.deltaBlock.expandable):{},i=Object(y.a)(Object(y.a)(Object(y.a)({},e),o),{node:t}),l=t.deltaBlock.expandable?Object(m.jsx)(yn,Object(y.a)({},i)):Object(m.jsx)(Sn,Object(y.a)({},i));if("form"===t.deltaBlock.type){var s=t.deltaBlock.form,c=s.formId,u=s.clearOnSubmit,d=e.formsData.submitButtonCount.get(c),p=void 0!==d&&d>0;return Object(m.jsx)(ae.a,{formId:c,clearOnSubmit:u,width:e.width,hasSubmitButton:p,scriptRunState:e.scriptRunState,widgetMgr:e.widgetMgr,children:l})}if(t.deltaBlock.column)return Object(m.jsx)(Nt,{weight:null!==(n=t.deltaBlock.column.weight)&&void 0!==n?n:0,gap:null!==(r=t.deltaBlock.column.gap)&&void 0!==r?r:"","data-testid":"column",children:l});if(t.deltaBlock.tabContainer){var f=Object(y.a)(Object(y.a)({},i),{},{isStale:a});return Object(m.jsx)(ce,Object(y.a)({},f))}return l},wn=function(e){return Object(m.jsx)(m.Fragment,{children:e.node.children&&e.node.children.map((function(t,n){if(t instanceof G){var r=Object(y.a)(Object(y.a)({},e),{},{node:t}),a=Object(U.d)(t.element)||n;return Object(m.jsx)(gn,Object(y.a)({},r),a)}if(t instanceof J){var o=Object(y.a)(Object(y.a)({},e),{},{node:t});return Object(m.jsx)(On,Object(y.a)({},o),n)}throw new Error("Unrecognized AppNode: ".concat(t))}))})},vn=function(e){return Object(m.jsx)(T.a,{disableHeight:!0,style:Dt,children:function(t){var n=t.width,r=Object(y.a)(Object(y.a)({},e),{width:n});return Object(m.jsx)(Rt,{width:n,"data-testid":"stVerticalBlock",children:Object(m.jsx)(wn,Object(y.a)({},r))})}})},jn=function(e){var t,n,r=null!==(t=null===(n=e.node.deltaBlock.horizontal)||void 0===n?void 0:n.gap)&&void 0!==t?t:"";return Object(m.jsx)(Et,{gap:r,"data-testid":"stHorizontalBlock",children:Object(m.jsx)(wn,Object(y.a)({},e))})};
1function Sn(e){return e.node.deltaBlock.horizontal?Object(m.jsx)(jn,Object(y.a)({},e)):Object(m.jsx)(vn,Object(y.a)({},e))}var xn,kn=vn,Pn=n(1205),In=n(1206),Cn=n(467),Vn=n(35),Tn=n(161),En=Object(te.a)("section",{target:"e1fqkh3o11"})((function(e){var t=e.theme,n=e.isCollapsed,r=e.sidebarWidth,a=n?0:Math.min(244,window.innerWidth),o=n?0:Math.min(550,.9*window.innerWidth);return Object(Vt.a)({position:"relative",top:"0px",background:"linear-gradient(to left, ".concat(t.colors.sidebarBackgroundFrom,", ").concat(t.colors.sidebarBackgroundTo,")"),borderRight:"1px solid ".concat(t.colors.lightestGray),zIndex:t.zIndices.header+1,minWidth:a,maxWidth:o,transform:n?"translateX(-".concat(r,"px)"):"none","&:focus":{outline:"none"}},"@media (max-width: ".concat(t.breakpoints.md,")"),{boxShadow:"-2rem 0 2rem 2rem ".concat(n?"transparent":"#00000029")})}),""),An=Object(te.a)("div",{target:"e1fqkh3o10"})((function(e){e.theme;return{position:"relative"}}),""),Nn=Object(te.a)("ul",{target:"e1fqkh3o9"})((function(e){var t=e.isExpanded,n=e.isOverflowing,r=e.hasSidebarElements,a=e.theme;return{maxHeight:r?t?"75vh":"50vh":"100vh",listStyle:"none",overflow:["auto","overlay"],margin:0,paddingTop:a.sizes.sidebarTopSpace,paddingBottom:a.spacing.lg,"&::before":n?{content:'" "',backgroundImage:"linear-gradient(0deg, transparent, ".concat(a.colors.bgColor,")"),width:"100%",height:"2rem",position:"absolute",top:0,left:0,right:0,pointerEvents:"none"}:null,"&::after":n?{content:'" "',backgroundImage:"linear-gradient(0deg, ".concat(a.colors.bgColor,", transparent)"),height:"2rem",position:"absolute",bottom:0,left:0,right:0,pointerEvents:"none"}:null}}),""),Dn=Object(p.c)(xn||(xn=Object(Tn.a)(["\n  from, to {\n    transform: translateY(0);\n  }\n\n  50% {\n    transform: translateY(-0.25rem);\n  }\n"]))),Rn=Object(te.a)("div",{target:"e1fqkh3o8"})((function(e){var t=e.isExpanded,n=e.isOverflowing,r=e.theme;return Object(y.a)({cursor:t||n?"pointer":"default",position:"absolute",height:r.spacing.lg,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",color:r.colors.fadedText60,borderBottom:"1px solid ".concat(r.colors.fadedText10),transition:"color 500ms"},(t||n)&&{"&:hover":{color:r.colors.bodyText,background:"linear-gradient(0deg, ".concat(r.colors.darkenedBgMix15,", transparent)"),"& > *":{animation:"".concat(Dn," 0.5s ease infinite")}}})}),""),Bn=Object(te.a)("div",{target:"e1fqkh3o7"})((function(e){e.theme;return{display:"flex",flexDirection:"column"}}),""),Mn=Object(te.a)("a",{target:"e1fqkh3o6"})((function(e){var t=e.isActive,n=e.theme,r={textDecoration:"none",fontWeight:t?600:400};return Object(y.a)(Object(y.a)({},r),{},{display:"flex",flexDirection:"row",alignItems:"center",gap:n.spacing.sm,borderRadius:n.spacing.twoXS,paddingLeft:n.spacing.sm,paddingRight:n.spacing.sm,marginLeft:n.spacing.lg,marginRight:n.spacing.lg,marginTop:n.spacing.threeXS,marginBottom:n.spacing.threeXS,lineHeight:n.lineHeights.menuItem,backgroundColor:t?n.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:t?n.colors.darkenedBgMix25:n.colors.darkenedBgMix15},"&:active,&:visited,&:hover":Object(y.a)({},r),"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:n.colors.darkenedBgMix15}})}),""),Fn=Object(te.a)("span",{target:"e1fqkh3o5"})((function(e){var t=e.isActive,n=e.theme;return{color:t?n.colors.bodyText:n.colors.fadedText60,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell"}}),""),Ln=Object(te.a)("div",{target:"e1fqkh3o4"})((function(e){var t=e.hasPageNavAbove,n=e.theme;return{paddingTop:t?n.spacing.lg:n.sizes.sidebarTopSpace,paddingBottom:n.spacing.twoXL,paddingLeft:n.spacing.lg,paddingRight:n.spacing.lg,"& h1":{fontSize:n.fontSizes.xl,fontWeight:600},"& h2":{fontSize:n.fontSizes.lg,fontWeight:600},"& h3":{fontSize:n.fontSizes.mdLg,fontWeight:600},"& h4":{fontSize:n.fontSizes.md,fontWeight:600},"& h5":{fontSize:n.fontSizes.sm,fontWeight:600},"& h6":{fontSize:n.fontSizes.twoSm,fontWeight:600}}}),""),zn=Object(te.a)("div",{target:"e1fqkh3o3"})((function(e){var t=e.hideScrollbar;e.theme;return{position:"relative",height:"100%",width:"100%",overflow:t?"hidden":["auto","overlay"]}}),""),Wn=Object(te.a)("div",{target:"e1fqkh3o2"})((function(e){var t=e.theme;return Object(Vt.a)({position:"absolute",top:t.spacing.xs,right:t.spacing.twoXS,zIndex:1,"&:hover button":{backgroundColor:Object(le.g)(t.colors.fadedText60,.5)}},"@media (min-width: ".concat(t.breakpoints.md,")"),{display:"none"})}),""),Hn=Object(te.a)("div",{target:"e1fqkh3o1"})((function(e){var t=e.chevronDownshift,n=e.isCollapsed,r=e.theme;return Object(Vt.a)({position:"fixed",top:t?"".concat(t,"px"):r.spacing.sm,left:n?r.spacing.twoXS:"-".concat(r.spacing.twoXS),zIndex:r.zIndices.header,transition:"left 300ms",transitionDelay:"left 300ms",color:r.colors.bodyText},"@media (max-width: ".concat(r.breakpoints.md,")"),{color:r.colors.bodyText})}),""),Un=Object(te.a)("div",{target:"e1fqkh3o0"})((function(e){var t=e.theme;return{position:"absolute",width:"8px",height:"100%",cursor:"col-resize",zIndex:t.zIndices.sidebarMobile,"&:hover":{backgroundImage:"linear-gradient(to right, transparent 20%, ".concat(t.colors.fadedText20," 28%, transparent 36%)")}
1}}),""),_n=n(184),Gn=n(441),Jn=n(442),qn=function(e){var t=e.appPages,n=e.collapseSidebar,o=e.currentPageScriptHash,i=e.hasSidebarElements,l=e.hideParentScrollbar,s=e.onPageChange,c=e.pageLinkBaseUrl;if(t.length<2)return null;var d=Object(r.useState)(!1),p=Object(u.a)(d,2),f=p[0],h=p[1],b=Object(r.useRef)(null),g=Object(Jn.a)(b),y=a.a.useContext(V.a).getBaseUriParts,O=Object(r.useCallback)((function(){g&&l(!0)}),[g,l]),w=Object(r.useCallback)((function(){return l(!1)}),[l]),v=Object(r.useCallback)((function(){!f&&g?h(!0):f&&h(!1)}),[f,g]);return Object(m.jsxs)(An,{"data-testid":"stSidebarNav",children:[Object(m.jsx)(Nn,{ref:b,isExpanded:f,isOverflowing:g,hasSidebarElements:i,onMouseOver:O,onMouseOut:w,children:t.map((function(e,t){var r=e.icon,a=e.pageName,i=e.pageScriptHash;a=a;var l=window.location,u=l.port,d=l.protocol,p=y(),f=0===t?"":a,h="";if(c)h="".concat(c,"/").concat(f);else if(p){var b=p.basePath,g=p.host,O=u?":".concat(u):"",w=b?"".concat(b,"/"):"";h="".concat(d,"//").concat(g).concat(O,"/").concat(w).concat(f)}var v=a.replace(/_/g," "),j=i===o;return Object(m.jsx)("li",{children:Object(m.jsx)(Bn,{children:Object(m.jsxs)(Mn,{isActive:j,href:h,onClick:function(e){e.preventDefault(),s(i),Gn.isMobile&&n()},children:[r&&r.length&&Object(m.jsx)(K.a,{size:"lg",children:r}),Object(m.jsx)(Fn,{isActive:j,children:v})]})})},a)}))}),i&&Object(m.jsxs)(Rn,{isExpanded:f,isOverflowing:g,onClick:v,children:[g&&!f&&Object(m.jsx)(K.b,{content:Q.a,size:"md"}),f&&Object(m.jsx)(K.b,{content:X.a,size:"md"})]})]})},Yn=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e)).mediumBreakpointPx=void 0,r.minWidth=void 0,r.sidebarRef=a.a.createRef(),r.handleClickOutside=function(e){if(r.sidebarRef&&window){var t=r.sidebarRef.current,n=window.innerWidth;t&&!t.contains(e.target)&&n<=r.mediumBreakpointPx&&r.setState({collapsedSidebar:!0})}},r.setSidebarWidth=function(e){var t=e.toString();r.setState({sidebarWidth:t}),window.localStorage.setItem("sidebarWidth",t)},r.resetSidebarWidth=function(e){2===e.detail&&(r.setState({sidebarWidth:r.minWidth}),window.localStorage.setItem("sidebarWidth",r.minWidth))},r.checkMobileOnResize=function(){if(!window)return!1;var e=window.innerWidth;return e<r.state.lastInnerWidth&&e<=r.mediumBreakpointPx?r.setState({collapsedSidebar:!0}):e>r.state.lastInnerWidth&&e>r.mediumBreakpointPx&&r.setState({collapsedSidebar:!1}),r.setState({lastInnerWidth:e}),!0},r.toggleCollapse=function(){var e=r.state.collapsedSidebar;r.setState({collapsedSidebar:!e})},r.hideScrollbar=function(e){r.setState({hideScrollbar:e})},r.mediumBreakpointPx=n.calculateMaxBreakpoint(e.theme.breakpoints.md),window.innerWidth<=r.mediumBreakpointPx?r.minWidth="336":window.innerWidth<=parseInt(e.theme.breakpoints.xl,10)?r.minWidth="371":r.minWidth="445",r.state={collapsedSidebar:n.shouldCollapse(e,r.mediumBreakpointPx),sidebarWidth:window.localStorage.getItem("sidebarWidth")||r.minWidth,lastInnerWidth:window?window.innerWidth:1/0,hideScrollbar:!1},r}return Object(w.a)(n,[{key:"componentDidUpdate",value:function(e){this.mediumBreakpointPx=n.calculateMaxBreakpoint(this.props.theme.breakpoints.md),this.props.initialSidebarState!==e.initialSidebarState&&this.setState({collapsedSidebar:n.shouldCollapse(this.props,this.mediumBreakpointPx)})}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.checkMobileOnResize),document.addEventListener("mousedown",this.handleClickOutside)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.checkMobileOnResize),document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"render",value:function(){var e=this,t=this.state,n=t.collapsedSidebar,r=t.sidebarWidth,a=t.hideScrollbar,o=this.props,i=o.appPages,l=o.chevronDownshift,s=o.children,c=o.hasElements,u=o.onPageChange,d=o.currentPageScriptHash,p=o.hideSidebarNav,f=o.pageLinkBaseUrl,h=i.length>1&&!p;return Object(m.jsxs)(m.Fragment,{children:[n&&Object(m.jsx)(Hn,{chevronDownshift:l,isCollapsed:n,"data-testid":"collapsedControl",children:Object(m.jsx)(Vn.d,{kind:Vn.b.HEADER_BUTTON,onClick:this.toggleCollapse,children:Object(m.jsx)(K.b,{content:Pn.a,size:"lg"})})}),Object(m.jsx)(Cn.a,{"data-testid":"stSidebar","aria-expanded":!n,enable:{top:!1,right:!0,bottom:!1,left:!1},handleStyles:{right:{width:"8px",right:"-6px"}},handleComponent:{right:Object(m.jsx)(Un,{onClick:this.resetSidebarWidth}
1)},size:{width:r,height:"100%"},as:En,onResizeStop:function(t,n,a,o){var i=parseInt(r,10)+o.width;e.setSidebarWidth(i)},isCollapsed:n,sidebarWidth:r,children:Object(m.jsxs)(zn,{hideScrollbar:a,ref:this.sidebarRef,children:[Object(m.jsx)(Wn,{children:Object(m.jsx)(Vn.d,{kind:Vn.b.HEADER_BUTTON,onClick:this.toggleCollapse,children:Object(m.jsx)(K.b,{content:In.a,size:"lg"})})}),!p&&Object(m.jsx)(qn,{appPages:i,collapseSidebar:this.toggleCollapse,currentPageScriptHash:d,hasSidebarElements:c,hideParentScrollbar:this.hideScrollbar,onPageChange:u,pageLinkBaseUrl:f}),Object(m.jsx)(Ln,{hasPageNavAbove:h,children:s})]})})]})}}],[{key:"calculateMaxBreakpoint",value:function(e){return parseInt(e,10)}},{key:"shouldCollapse",value:function(e,t){switch(e.initialSidebarState){case A.p.SidebarState.EXPANDED:return!1;case A.p.SidebarState.COLLAPSED:return!0;case A.p.SidebarState.AUTO:default:var n=(window||{}).innerWidth;return!!n&&n<=t}}}]),n}(r.PureComponent);var Xn=Object(h.d)((function(e){return Object(m.jsx)(_n.a.Provider,{value:!0,children:Object(m.jsx)(Yn,Object(y.a)({},e))})})),Qn=function(e){var t,n=e.children,r=Object(Y.a)(e,["children"]),o=a.a.useContext(V.a),i=o.activeTheme,l=o.sidebarChevronDownshift,s=(t=i,Object(b.createTheme)("Sidebar",{secondaryBackgroundColor:t.emotion.colors.bgColor,backgroundColor:t.emotion.colors.secondaryBg},t,!0));return Object(m.jsx)(g,{theme:s.emotion,baseuiTheme:s.basewebTheme,children:Object(m.jsx)(Xn,Object(y.a)(Object(y.a)({},r),{},{chevronDownshift:l,children:n}))})},Kn=n(107),$n=n.n(Kn),Zn=function e(){var t=this;Object(O.a)(this,e),this.resolve=void 0,this.reject=void 0,this.promise=void 0,this.resolve=function(){},this.reject=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))};function er(e){window.parent.postMessage(Object(y.a)({stCommVersion:1},e),"*")}var tr=function(e){function t(t){var n=Object(r.useState)(!1),a=Object(u.a)(n,2),o=a[0],i=a[1],l=Object(r.useState)(!1),s=Object(u.a)(l,2),c=s[0],d=s[1],p=Object(r.useState)(!1),f=Object(u.a)(p,2),h=f[0],b=f[1],g=Object(r.useState)([]),O=Object(u.a)(g,2),w=O[0],v=O[1],j=Object(r.useState)(""),S=Object(u.a)(j,2),x=S[0],k=S[1],P=Object(r.useState)(""),I=Object(u.a)(P,2),C=I[0],V=I[1],T=Object(r.useState)(null),E=Object(u.a)(T,2),A=E[0],N=E[1],D=Object(r.useState)(0),R=Object(u.a)(D,2),B=R[0],M=R[1],F=Object(r.useState)({}),L=Object(u.a)(F,2),z=L[0],W=L[1],H=Object(r.useState)([]),U=Object(u.a)(H,2),_=U[0],G=U[1],J=Object(r.useState)(null),q=Object(u.a)(J,2),Y=q[0],X=q[1],Q=Object(r.useState)((function(){return new Zn})),K=Object(u.a)(Q,2),$=K[0],Z=K[1];return Object(r.useEffect)((function(){if(!Y)return function(){};var e=Y.allowedOrigins;function t(t){var n=t.data;1===n.stCommVersion&&e.find((function(e){return Object(xt.f)(e,t.origin)}))&&("CLOSE_MODAL"===n.type&&i(!0),"REQUEST_PAGE_CHANGE"===n.type&&N(n.pageScriptHash),"SET_AUTH_TOKEN"===n.type&&$.resolve(n.authToken),"SET_IS_OWNER"===n.type&&b(n.isOwner),"SET_MENU_ITEMS"===n.type&&v(n.items),"SET_METADATA"===n.type&&W(n.metadata),"SET_PAGE_LINK_BASE_URL"===n.type&&k(n.pageLinkBaseUrl),"SET_SIDEBAR_CHEVRON_DOWNSHIFT"===n.type&&M(n.sidebarChevronDownshift),"SET_SIDEBAR_NAV_VISIBILITY"===n.type&&d(n.hidden),"SET_TOOLBAR_ITEMS"===n.type&&G(n.items),"UPDATE_FROM_QUERY_PARAMS"===n.type&&V(n.queryParams),"UPDATE_HASH"===n.type&&(window.location.hash=n.hash))}return Y.useExternalAuthToken||$.resolve(void 0),e.length?(window.addEventListener("message",t),er({type:"GUEST_READY"}),function(){window.removeEventListener("message",t)}):function(){}}),[Y]),Object(m.jsx)(e,Object(y.a)({hostCommunication:{currentState:{authTokenPromise:$.promise,forcedModalClose:o,hideSidebarNav:c,isOwner:h,menuItems:w,pageLinkBaseUrl:x,queryParams:C,requestedPageScriptHash:A,sidebarChevronDownshift:B,deployedAppMetadata:z,toolbarItems:_},resetAuthToken:function(){Z(new Zn)},onModalReset:function(){i(!1)},onPageChanged:function(){N(null)},sendMessage:er,setAllowedOriginsResp:X}},t))}return t.displayName="withHostCommunication(".concat(e.displayName||e.name,")"),$n()(t,e)},nr=Object(te.a)("div",{target:"egzxvld6"})((function(e){return{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":{display:"block",float:"none",height:e.theme.sizes.full,position:"static",overflow:"visible"}}}),""),rr=Object(te.a)("section",{target:"egzxvld5"})((function(e){var t=e.isEmbedded,n=e.theme;return Object(Vt.a)({display:"flex",flexDirection:"column",flexGrow:1,overflow:t?"hidden":"auto",alignItems:"center","&:focus":{outline:"none"},"@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"}},"@media (max-width: ".concat(n.breakpoints.md,")"),{position:"absolute",top:0,left:0,right:0,bottom:0})}),""),ar=Object(te.a)("div",{target:"egzxvld4"})((function(e){var t=e.isWideMode,n=e.isEmbedded,r=e.theme,a=n?"1rem":"4rem",o=n?"1rem":"10rem",i=t?"5rem":r.spacing.lg;return{width:r.sizes.full,paddingLeft:r.inSidebar?r.spacing.none:r.spacing.lg,paddingRight:r.inSidebar?r.spacing.none:r.spacing.lg,"@media (min-width: 576px)":{paddingLeft:r.inSidebar?r.spacing.none:i,paddingRight:r.inSidebar?r.spacing.none:i},paddingTop:r.inSidebar?r.spacing.none:a,paddingBottom:r.inSidebar?r.spacing.none:o,minWidth:t?"auto":void 0,maxWidth:t?"initial":r.sizes.contentMaxWidth}}),""),or=Object(te.a)("div",{target:"egzxvld3"})((function(e){return{width:e.theme.sizes.full,flexGrow:1}}),""),ir=Object(te.a)("a",{target:"egzxvld2"})((function(e){var t=e.theme;return{color:t.colors.fadedText60,fontFamily:t.fonts.sansSerif,textDecoration:"none",transition:"color 300ms","&:hover":{color:t.colors.bodyText,textDecoration:"underline"}}}),""),lr=Object(te.a)("footer",{target:"egzxvld1"})((function(e){var t=e.isWideMode,n=e.theme,r=t?"5rem":n.spacing.lg;return{color:n.colors.fadedText40,fontSize:n.fontSizes.sm,height:n.sizes.footerHeight,minWidth:t?"auto":void 0,maxWidth:t?"initial":n.sizes.contentMaxWidth,padding:"".concat(n.spacing.sm," ").concat(n.spacing.lg),"@media (min-width: 576px)":{paddingLeft:r,paddingRight:r},width:n.sizes.full,a:{color:n.colors.fadedText60}}}),""),sr=Object(te.a)("div",{target:"egzxvld0"})((function(e){var t=e.theme;return{position:"relative",bottom:e.isEmbedded?"0":"-".concat(t.sizes.footerHeight)}}),"");var cr,ur=function(e){var t=e.elements,n=e.scriptRunId,r=e.scriptRunState,o=e.widgetMgr,i=e.widgetsDisabled,l=e.uploadClient,s=e.componentRegistry,c=e.formsData,u=e.appPages,d=e.onPageChange,p=e.currentPageScriptHash,f=e.hideSidebarNav,h=e.pageLinkBaseUrl;a.a.useEffect((function(){var e=function(){er({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",e,!1),function(){return window.removeEventListener("hashchange",e,!1)}}),[]);var b=a.a.useContext(V.a),g=b.wideMode,y=b.initialSidebarState,O=b.embedded,w=function(e){return Object(m.jsx)(ar,{className:"block-container",isWideMode:g,isEmbedded:O,children:Object(m.jsx)(kn,{node:e,scriptRunId:n,scriptRunState:r,widgetMgr:o,widgetsDisabled:i,uploadClient:l,componentRegistry:s,formsData:c})})},v=g?"wide":"narrow",j=!t.sidebar.isEmpty,S=j||!f&&u.length>1;return Object(m.jsxs)(nr,{className:"appview-container","data-testid":"stAppViewContainer","data-layout":v,children:[S&&Object(m.jsx)(Qn,{initialSidebarState:y,appPages:u,hasElements:j,onPageChange:d,currentPageScriptHash:p,hideSidebarNav:f,pageLinkBaseUrl:h,children:w(t.sidebar)}),Object(m.jsxs)(rr,{tabIndex:0,isEmbedded:O,className:"main",children:[w(t.main),Object(m.jsx)(sr,{isEmbedded:O,"data-iframe-height":!0}),!O&&Object(m.jsx)(or,{}),!O&&Object(m.jsxs)(lr,{isWideMode:g,children:["Made with"," ",Object(m.jsx)(ir,{href:"//streamlit.io",target:"_blank",children:"Streamlit"})]})]})]})},dr=n(1207),pr=n(1208),fr=n(1209),hr=n(1215);!function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",e.INITIAL="INITIAL",e.PINGING_SERVER="PINGING_SERVER",e.CONNECTING="CONNECTING"}(cr||(cr={}));var br=n.p+"static/media/icon_loading.5bbd61e0.svg",mr=n.p+"static/media/fireworks.0906f02e.gif",gr=Object(te.a)("div",{target:"ehezqtx7"})((function(e){return{display:"flex",alignItems:"center",justifyContent:"center",color:e.theme.colors.gray}}),""),yr=Object(te.a)("label",{target:"ehezqtx6"})((function(e){var t=e.isMinimized,n=e.theme;return{fontSize:n.fontSizes.sm,color:n.colors.gray,textTransform:"uppercase",marginTop:n.spacing.none,marginRight:t?n.spacing.none:n.spacing.lg,marginBottom:n.spacing.none,marginLeft:n.spacing.sm,whiteSpace:"nowrap",maxWidth:t?"0":"20rem",transition:"opacity 500ms 0ms, clip 500ms 0ms, max-width 500ms 0ms, margin 500ms 0ms, visibility 0ms 500m
1s",opacity:t?0:1,visibility:t?"hidden":"visible",lineHeight:1}}),""),Or=Object(te.a)("div",{target:"ehezqtx5"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:t.radii.md,marginTop:"2rem",paddingLeft:t.spacing.sm,height:"1.6rem"}}),""),wr=function(e){return{opacity:0,padding:e.spacing.none,margin:e.spacing.none,maxWidth:0,minWidth:0,border:0}},vr=Object(te.a)("label",{target:"ehezqtx4"})((function(e){var t=e.isPrompt,n=e.isMinimized,r=e.theme;return Object(y.a)({fontSize:r.fontSizes.sm,color:t?r.colors.bodyText:r.colors.gray,textTransform:t?"none":"uppercase",margin:"0 0 0 ".concat(r.spacing.lg),whiteSpace:"nowrap",maxWidth:"20rem",borderRadius:t?r.radii.md:void 0,transition:"opacity 200ms ease-out 0s,\n  clip 200ms ease-out 0s, min-width 200ms ease-out 0s,\n  max-width 200ms ease-out 0s, padding 200ms ease-out 0s"},n?wr(r):{})}),""),jr=Object(te.a)("span",{target:"ehezqtx3"})((function(e){var t=e.isMinimized,n=e.theme;return Object(y.a)({marginLeft:n.spacing.sm,whiteSpace:"nowrap",transition:"opacity 200ms ease-out 0s,\n  clip 200ms ease-out 0s, min-width 200ms ease-out 0s,\n  max-width 200ms ease-out 0s, padding 200ms ease-out 0s"},t?wr(n):{})}),""),Sr=Object(te.a)("img",{target:"ehezqtx2"})((function(e){var t=e.isNewYears,n=e.theme,r=Object(b.hasLightBackgroun
1dColor)(n)?"":"invert(1)";return{opacity:t?1:.4,width:t?"2.2rem":"1.6rem",height:t?"2.2rem":"1.6rem",filter:t?"":r}}),""),xr=Object(te.a)("div",{target:"ehezqtx1"})((function(e){e.theme;return{"&.StatusWidget-appear":{opacity:0},"&.StatusWidget-appear-active":{opacity:1,transition:"opacity 200ms ease-out",transitionDelay:"2s"},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:"opacity 200ms ease-out",transitionDelay:"2s"},"&.StatusWidget-enter-done":{opacity:1,transition:"opacity",transitionDelay:"2s"},"&.StatusWidget-exit":{opacity:0},"&.StatusWidget-exit-active":{opacity:0,transition:"opacity 200ms ease-out"}}}),""),kr=Object(te.a)("div",{target:"ehezqtx0"})((function(e){e.theme;return{"&::first-letter":{textDecoration:"underline"}}}),""),Pr=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e)).sessionEventConn=void 0,r.curView=void 0,r.minimizePromptTimer=new gt,r.keyHandlers=void 0,r.handleScroll=function(){r.setState({statusMinimized:n.shouldMinimize()})},r.onAppPromptHover=function(){r.setState({promptHovered:!0})},r.onAppPromptUnhover=function(){r.setState({promptHovered:!1,promptMinimized:!1}),r.minimizePromptAfterTimeout(1e3)},r.handleStopScriptClick=function(){r.props.stopScript()},r.handleRerunClick=function(){r.props.rerunScript(!1)},r.handleAlwaysRerunClick=function(){r.props.allowRunOnSave&&r.props.rerunScript(!0)},r.state={statusMinimized:n.shouldMinimize(),promptMinimized:!1,scriptChangedOnDisk:!1,promptHovered:!1},r.keyHandlers={a:r.handleAlwaysRerunClick},r}return Object(w.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.sessionEventConn=this.props.sessionEventDispatcher.onSessionEvent.connect((function(t){return e.handleSessionEvent(t)})),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){void 0!==this.sessionEventConn&&(this.sessionEventConn.disconnect(),this.sessionEventConn=void 0),this.minimizePromptTimer.cancel(),window.removeEventListener("scroll",this.handleScroll)}},{key:"isConnected",value:function(){return this.props.connectionState===cr.CONNECTED}},{key:"handleSessionEvent",value:function(e){"scriptChangedOnDisk"===e.type&&(this.setState({scriptChangedOnDisk:!0,promptMinimized:!1}),this.minimizePromptAfterTimeout(15e3))}},{key:"minimizePromptAfterTimeout",value:function(e){var t=this;e>this.minimizePromptTimer.remainingTime&&this.minimizePromptTimer.setTimeout((function(){t.setState({promptMinimized:!0})}),e)}},{key:"render",value:function(){var e,t,n=this.curView;return this.curView=this.renderWidget(),null==n&&null==this.curView?null:(null!=this.curView?(e=!0,t=this.curView):(e=!1,t=n),Object(m.jsx)(hr.a,{appear:!0,in:e,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",children:Object(m.jsx)(xr,{"data-testid":"stStatusWidget",children:t},"StatusWidget")}))}},{key:"renderWidget",value:function(){return!this.isConnected()||this.props.scriptRunState!==ue.a.RUNNING&&this.props.scriptRunState!==ue.a.RERUN_REQUESTED?null:this.renderScriptIsRunning()}},{key:"renderConnectionStatus",value:function(){var e=n.getConnectionStateUI(this.props.connectionState);return void 0===e?null:Object(m.jsx)(Qe.c,{content:e.tooltip,placement:Qe.b.BOTTOM,children:Object(m.jsxs)(gr,{"data-testid":"stConnectionStatus",children:[Object(m.jsx)(K.b,{size:"sm",content:e.icon}),Object(m.jsx)(yr,{isMinimized:this.state.statusMinimized,children:e.label})]})})}},{key:"renderScriptIsRunning",value:function(){var e=this.state.statusMinimized,t=this.props.scriptRunState===ue.a.STOP_REQUESTED,r=(n.promptButton(t?"Stopping...":"Stop",t,this.handleStopScriptClick,e),n.isNewYears()),a=r?mr:br,o=Object(m.jsx)(Sr,{isNewYears:r,src:a,alt:"Running..."});return Object(m.jsx)(Or,{children:e?Object(m.jsx)(Qe.c,{placement:Qe.b.BOTTOM,content:"This script is currently running",children:o}):o})}},{key:"renderRerunScriptPrompt",value:function(){var e=this.props.scriptRunState===ue.a.RERUN_REQUESTED,t=this.state.promptMinimized&&!this.state.promptHovered,r=this.props.theme.colors;return Object(m.jsx)(k.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsx)("div",{onMouseEnter:this.onAppPromptHover,onMouseLeave:this.onAppPromptUnhover,children:Object(m.jsxs)(Or,{children:[Object(m.jsx)(K.b,{content:dr.a,margin:"0 sm 0 0",color:r.bodyText}),Object(m.jsx)(vr,{isMinimized:t,isPrompt:!0,children:"Source file changed."}),n.promptButton(Object(m.jsx)(kr,{children:"Rerun"}),e,this.handleRerunClick,t),this.props.allowRunOnSave&&n.promptButton(Object(m.jsx)(kr,{children:"Always rerun"}),e,this.handleAlwaysRerunClick,t)]})})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scriptRunState===ue.a.RUNNING?{scriptChangedOnDisk:!1,promptHovered:!1}:null}},{key:"shouldMinimize",value:function(){return window.scrollY>32}},{key:"isNewYears",value:function(){var e=new Date,t=e.getMonth(),n=e.getDate();return 11===t&&31===n||0===t&&n<=6}},{key:"promptButton",value:function(e,t,n,r){return Object(m.jsx)(jr,{isMinimized:r,children:Object(m.jsx)(Vn.d,{kind:Vn.b.HEADER_BUTTON,disabled:t,fluidWidth:!0,onClick:n,children:e})})}},{key:"getConnectionStateUI",value:function(e){switch(e){case cr.INITIAL:case cr.PINGING_SERVER:case cr.CONNECTING:return{icon:pr.a,label:"Connecting",tooltip:"
1Connecting to Streamlit server"};case cr.CONNECTED:return;case cr.DISCONNECTED_FOREVER:default:return{icon:fr.a,label:"Error",tooltip:"Unable to connect to Streamlit server"}}}}]),n}(r.PureComponent),Ir=Object(h.d)(Pr);n(1216),n(1211),n(1210),n(41);var Cr,Vr=function(e){return Object(p.c)(Cr||(Cr=Object(Tn.a)(["\n0% {\n  box-shadow: 0 0 "," ",";\n}\n50% {\n  box-shadow: 0 0 "," "," ",";\n}\n100% {\n  box-shadow: 0 0 "," ",";\n}"])),e.spacing.twoXS,e.colors.red,e.spacing.sm,e.spacing.twoXS,e.colors.red,e.spacing.twoXS,e.colors.red)},Tr=(Object(te.a)("div",{target:"e1pxm3bq7"})((function(e){var t=e.theme;return{position:"absolute",bottom:t.spacing.lg,right:t.spacing.sm,width:t.spacing.sm,height:t.spacing.sm,backgroundColor:"red",borderRadius:t.radii.full,boxShadow:"0 0 ".concat(t.spacing.twoXS," ").concat(t.colors.red),animation:"".concat(Vr(t)," 2s linear infinite")}}),""),Object(te.a)("div",{target:"e1pxm3bq6"})((function(e){var t=e.theme;return{borderTop:"1px solid ".concat(t.colors.fadedText10),margin:"".concat(t.spacing.sm," ").concat(t.spacing.none)}}),""),Object(te.a)("span",{target:"e1pxm3bq5"})((function(e){var t=e.isRecording,n=e.theme;return{color:t?n.colors.red:n.colors.fadedText60,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,fontVariant:"small-caps",textTransform:"uppercase"}}),"")),Er=(Object(te.a)("ul",{target:"e1pxm3bq4"})((function(e){var t=e.isDisabled,n=e.isRecording,r=e.theme,a=t?{backgroundColor:r.colors.transparent,color:r.colors.fadedText60,cursor:"not-allowed"}:{"&:active":Object(Vt.a)({backgroundColor:r.colors.primary,color:r.colors.white,outline:"none"},Tr,{color:r.colors.white}),"&:focus":{backgroundColor:r.colors.primary,color:r.colors.white}},o=n&&{color:r.colors.red,fontWeight:r.fontWeights.bold};return Object(y.a)(Object(y.a)({display:"block",flexDirection:"row",alignItems:"flex-start",cursor:"pointer"},o||{}),a)}),""),Object(te.a)("li",{target:"e1pxm3bq3"})((function(e){var t=e.isHighlighted,n=e.styleProps,r=e.theme,a=t&&{backgroundColor:r.colors.secondaryBg},o=(null===n||void 0===n?void 0:n.margin)||0,i=(null===n||void 0===n?void 0:n.padding)||"".concat(r.spacing.twoXS," ").concat(r.spacing.twoXL),l=(null===n||void 0===n?void 0:n.backgroundColor)||r.colors.primaryBg,s=(null===n||void 0===n?void 0:n.fontSize)||r.fontSizes.md;return Object(y.a)(Object(y.a)({margin:o,padding:i,backgroundColor:l,fontSize:s},a||{}),{},{display:"block"})}),""),Object(te.a)("li",{target:"e1pxm3bq2"})((function(e){var t=e.isHighlighted,n=e.styleProps,r=e.theme,a=t&&{backgroundColor:r.colors.primaryBg},o=(null===n||void 0===n?void 0:n.margin)||0,i=(null===n||void 0===n?void 0:n.padding)||"".concat(r.spacing.twoXS," ").concat(r.spacing.twoXL),l=(null===n||void 0===n?void 0:n.backgroundColor)||r.colors.secondaryBg,s=(null===n||void 0===n?void 0:n.fontSize)||r.fontSizes.md;return Object(y.a)(Object(y.a)({margin:o,padding:i,backgroundColor:l,fontSize:s},a||{}),{},{display:"block"})}),""),Object(te.a)("span",{target:"e1pxm3bq1"})((function(e){var t=e.theme;return{marginRight:t.spacing.md,flexGrow:1,fontFamily:t.fonts.sansSerif}}),""),Object(te.a)("ul",{target:"e1pxm3bq0"})((function(e){e.theme;return{borderBottom:"$1px solid rgba(38, 39, 48, 0.2)",borderTop:"$1px solid rgba(38, 39, 48, 0.2)",margin:"-.20rem 0 -.5rem 0"}}),""),A.k.GitStates,function(){return"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname});var Ar=n(211),Nr=n(1221),Dr=n(244),Rr=n.n(Dr),Br=Object(te.a)("span",{target:"e104heul0"})((function(e){return{marginRight:e.theme.spacing.twoXS}}),"");function Mr(e){var t=e.children,n=Object(h.g)(),r=n.colors,a=n.genericFonts,o=n.fontSizes,i=n.spacing;return Object(m.jsx)(Ar.f,{style:{marginTop:i.none,marginLeft:i.none,marginRight:i.none,marginBottom:i.none,paddingTop:i.lg,paddingRight:i.xl,paddingBottom:i.lg,paddingLeft:i.xl,borderBottom:"1px solid ".concat(r.fadedText10),fontFamily:a.bodyFont,fontSize:o.lg,fontWeight:500,margin:i.none,lineHeight:1.5,textTransform:"none",display:"flex",alignItems:"center",maxHeight:"80vh",flexDirection:"row"},children:t})}function Fr(e){var t=e.children,n=Object(h.g)(),r=n.colors,a=n.fontSizes,o=n.spacing;return Object(m.jsx)(Ar.d,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.xl,paddingRight:o.xl,paddingBottom:o.xl,paddingLeft:o.xl,color:r.bodyText,fontSize:a.md,overflowY:"auto"},children:t})}function Lr(e){var t=e.children,n=Object(h.g)(),r=n.colors,a=n.spacing;return Object(m.jsx)(Ar.e,{style:{marginTop:a.none,marginLeft:a.none,marginRight:a.none,marginBottom:a.none,paddingTop:a.md,paddingRight:a.md,paddingBottom:a.md,paddingLeft:a.md,borderTop:"1px solid ".concat(r.fadedText10)},children:Object(m.jsx)("div",{className:"ModalBody",children:t})})}var zr=function(e){return Object(m.jsx)(Br,{children:Object(m.jsx)(Vn.d,Object(y.a)({},e))})};var Wr=function(e){var t=Object(h.g)(),n=t.spacing,r=t.colors,a=t.radii,o={DialogContainer:{style:{alignItems:"start",paddingTop:"3rem"}},Dialog:{style:{border:"1px solid ".concat(r.fadedText10),borderTopLeftRadius:a.md,borderTopRightRadius:a.md,borderBottomRightRadius:a.md,borderBottomLeftRadius:a.md}}
1,Close:{style:{top:n.xl,right:n.lg}}},i=Rr()(o,e.overrides);return Object(m.jsx)(Nr.a,Object(y.a)(Object(y.a)({},e),{},{overrides:i}))},Hr=n(1212),Ur=n(344),_r=Object(te.a)("div",{target:"es2f1e712"})((function(e){return{marginBottom:e.theme.spacing.sm}}),""),Gr=Object(te.a)("textarea",{target:"es2f1e711"})((function(e){var t=e.theme;return{width:t.sizes.full,fontFamily:t.genericFonts.codeFont,fontSize:t.fontSizes.sm,height:"6rem"}}),""),Jr=Object(te.a)("span",{target:"es2f1e710"})((function(e){e.theme;return{"&::first-letter":{textDecoration:"underline"}}}),""),qr=Object(te.a)(Hr.a,{target:"es2f1e79"})((function(e){return{cursor:"pointer",marginRight:e.theme.spacing.lg}}),""),Yr=Object(te.a)("div",{target:"es2f1e78"})((function(e){return{display:"grid",gap:e.theme.spacing.xl,gridTemplateColumns:"1fr 1fr",margin:0,padding:0}}),""),Xr=Object(te.a)("div",{target:"es2f1e77"})((function(e){return{gridColumnStart:1,gridColumnEnd:-1,display:"grid",gap:e.theme.spacing.sm}}),""),Qr=Object(te.a)("h2",{target:"es2f1e76"})((function(e){var t=e.theme;return{paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:"0",fontWeight:t.fontWeights.normal,fontSize:t.fontSizes.sm,lineHeight:t.lineHeights.tight,textTransform:"uppercase",color:t.colors.fadedText60,display:"grid",gridAutoFlow:"row",gap:t.spacing.sm,"&:first-of-type":{marginTop:0}}}),""),Kr=Object(te.a)("label",{target:"es2f1e75"})((function(e){e.theme;return{paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:1.25}}),""),$r=Object(te.a)(Ur.a,{target:"es2f1e74"})((function(e){e.theme;return{display:"block",paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:1.5}}),""),Zr=Object(te.a)("hr",{target:"es2f1e73"})((function(e){var t=e.theme;return{padding:0,marginBottom:0,marginLeft:"-".concat(t.spacing.xl),marginRight:"-".concat(t.spacing.xl),marginTop:0}}),""),ea=Object(te.a)("input",{target:"es2f1e72"})((function(e){var t=e.theme;return{marginRight:t.spacing.xs,appearance:"none",border:"1px solid ".concat(t.colors.fadedText10),width:t.fontSizes.md,height:t.fontSizes.md,borderRadius:t.radii.sm,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,verticalAlign:"middle",overflow:"hidden","&:focus-visible":{outline:"2px solid ".concat(t.colors.primary)},"&:checked":{backgroundColor:t.colors.primary,"&:after":{content:'"\u2713"',fontFamily:t.fonts.monospace,fontSize:t.fontSizes.md,color:t.colors.white,lineHeight:1}},"&:disabled":{backgroundColor:t.colors.secondaryBg}}}),""),ta=Object(te.a)("div",{target:"es2f1e71"})((function(e){e.theme;return{"& > ul":{paddingLeft:"1.4rem"}}}),""),na=Object(te.a)("div",{target:"es2f1e70"})((function(){return{padding:"0 0 1rem 0",overflowY:"scroll"}}),""),ra=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e)).keyHandlers=void 0,r.rerun=function(){r.props.onRerun(!1)},r.alwaysRerun=function(){r.props.onRerun(!0)},r.keyHandlers={a:r.alwaysRerun},r}return Object(w.a)(n,[{key:"render",value:function(){return Object(m.jsx)(k.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsxs)(Wr,{isOpen:!0,onClose:this.props.onClose,children:[Object(m.jsx)(Mr,{children:"App changed"}),Object(m.jsx)(Fr,{children:Object(m.jsx)("div",{children:"The source files for this app have changed on disk."})}),Object(m.jsxs)(Lr,{children:[this.props.allowRunOnSave?Object(m.jsx)(zr,{kind:Vn.b.TERTIARY,onClick:this.alwaysRerun,children:Object(m.jsx)(Jr,{children:"Always rerun"})}):null,Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:this.rerun,children:Object(m.jsx)(Jr,{children:"Rerun"})})]})]})})}}]),n}(r.PureComponent),aa=n(170),oa=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e)).activeSettings=void 0,r.renderThemeCreatorButton=function(){return r.props.developerMode&&Object(m.jsx)("div",{children:Object(m.jsx)(Vn.d,{onClick:r.props.openThemeCreator,kind:Vn.b.SECONDARY,children:"Edit active theme"})})},r.changeSingleSetting=function(e,t){r.setState((function(n){return Object(y.a)(Object(y.a)({},n),{},Object(Vt.a)({},e,t))}),r.saveSettings)},r.handleCheckboxChange=function(e){r.changeSingleSetting(e.target.name,e.target.checked)},r.handleThemeChange=function(e){var t=r.context,n=t.activeTheme,a=t.availableThemes[e];H.current.enqueue("themeChanged",{oldThemeName:n.name,newThemeName:a.name}),r.context.setTheme(a)},r.handleCancelButtonClick=function(){r.props.onClose()},r.saveSettings=function(){r.activeSettings=Object(y.a)({},r.state),r.props.onSave(r.activeSettings)},r.state=Object(y.a)({},r.props.settings),r.activeSettings=Object(y.a)({},r.props.settings),r}return Object(w.a)(n,[{key:"render",value:function(){var e=this,t=this.context.availableThemes.findIndex((function(t){return t.name===e.context.activeTheme.name}));return Object(m.jsxs)(Wr,{animate:this.props.animateModal,isOpen:!0,onClose:this.handleCancelButtonClick,children:[Object(m.jsx)(Mr,{children:"Settings"}),Object(m.jsx)(Fr,{children:Object(m.jsxs)(Yr,{children:[this.props.allowRunOnSave&&Object(m.jsxs)(a.a.Fragment,{children:[Object(m.jsxs)(Xr,{children:[Object(m.jsx)(Qr,{children:"Development"}),Object(m.jsxs)("label",{children:[Object(m.jsx)(ea,{disabled:!this.props.isServerConnected,type:"checkbox",name:"runOnSave",checked:this.state.runOnSave&&this.props.isServerConnected,onChange:this.handleCheckboxChange})," ","Run on save"]}),Object(m.jsx)($r,{children:"Automatically updates the app when the underlying code is updated."})]}),Object(m.jsx)(Xr,{children:Object(m.jsx)(Zr,{})})]}),Object(m.jsxs)(Xr,{children:[Object(m.jsx)(Qr,{children:"Appearance"}),Object(m.jsxs)("label",{children:[Object(m.jsx)(ea,{type:"checkbox",name:"wideMode",checked:this.state.wideMode,onChange:this.handleCheckboxChange})," ","Wide mode"]}),Object(m.jsx)($r,{children:"Turn on to make this app occupy the entire width of the screen"})]}),this.context.availableThemes.length&&Object(m.jsxs)(Xr,{children:[Object(m.jsx)(Kr,{children:"Theme"}),Object(m.jsx)($r,{children:"Choose app and font colors/styles"}),Object(m.jsx)(aa.b,{options:this.context.availableThemes.map((function(e){return e.name})),disabled:!1,onChange:this.handleThemeChange,value:t}),this.renderThemeCreatorButton()]})]})})]})}},{key:"componentDidMount",value:function(){this.setState(Object(y.a)({},this.activeSettings))}}]),n}(r.PureComponent);oa.contextType=V.a;var ia,la=n(1213),sa=n(335),ca=n.n(sa),ua=n(336),da=n.n(ua),pa=n(185),fa=function(e,t){return Object(le.f)(e).toUpperCase()},ha=function(e){return ca()(A.e.FontFamily[e])},ba={primaryColor:{help:"Primary accent color for interactive elements.",title:"Primary color",component:pa.a,getValue:fa}
1,backgroundColor:{help:"Background color for the main content area.",title:"Background color",component:pa.a,getValue:fa},secondaryBackgroundColor:{help:"Background color used for the sidebar and most interactive widgets.",title:"Secondary background color",component:pa.a,getValue:fa},textColor:{help:"Color used for almost all text.",title:"Text color",component:pa.a,getValue:fa},font:{help:"Font family for all text in the app, except code blocks.",title:"Font family",options:Object.keys(A.e.FontFamily).map((function(e){return ca()(e)})),getValue:function(e,t){return t.options&&t.options.findIndex((function(t){return t===ha(e)}))||0},component:aa.b}},ma=function(e,t){var n=function(e){return"string"===typeof e?e.toLowerCase():e},r=da()(Object(b.toThemeInput)(t),n),a=[];return(e=da()(e,n)).primaryColor!==r.primaryColor&&a.push('primaryColor="'.concat(e.primaryColor,'"')),e.backgroundColor!==r.backgroundColor&&a.push('backgroundColor="'.concat(e.backgroundColor,'"')),e.secondaryBackgroundColor!==r.secondaryBackgroundColor&&a.push('secondaryBackgroundColor="'.concat(e.secondaryBackgroundColor,'"')),e.textColor!==r.textColor&&a.push('textColor="'.concat(e.textColor,'"')),a},ga=function(e){var t=a.a.useState(!1),n=Object(u.a)(t,2),r=n[0],o=n[1],i=a.a.useContext(V.a),l=i.activeTheme,s=i.addThemes,d=i.setTheme,p=Object(b.toThemeInput)(l.emotion),f=function(e,t){!function(e){s([e]),d(e)}(Object(b.createTheme)(b.CUSTOM_THEME_NAME,Object(y.a)(Object(y.a)({},p),{},Object(Vt.a)({},e,t)))),o(!1)},h=function(e){var t=["[theme]"],n=ma(e,b.lightTheme.emotion),r=ma(e,b.darkTheme.emotion),a=n.length,o=r.length;if(a===o?t.push.apply(t,Object(c.a)(n)):a<o?t.push.apply(t,['base="light"'].concat(Object(c.a)(n))):t.push.apply(t,['base="dark"'].concat(Object(c.a)(r))),e.font){var i=ha(e.font).toLowerCase();t.push('font="'.concat(i,'"'))}return[].concat(t,[""]).join("\n")}(p),g=function(e){var t=e.name,n=e.value,r=ba[t],o=r.component===pa.a,i={options:r.options||void 0,showValue:o,value:r.getValue(n,r)};return Object(m.jsx)(a.a.Fragment,{children:Object(m.jsx)(r.component,Object(y.a)({disabled:!1,label:r.title,help:r.help,onChange:function(e){f(t,e)}},i))},t)},O=p,w=O.primaryColor,v=O.textColor,j=O.backgroundColor,S=O.secondaryBackgroundColor;return Object(m.jsxs)(Wr,{animate:!1,isOpen:!0,onClose:e.onClose,children:[Object(m.jsxs)(Mr,{children:[Object(m.jsx)(qr,{onClick:function(){e.backToSettings(!1)}}),"Edit active theme"]}),Object(m.jsx)(Fr,{children:Object(m.jsxs)(Yr,{children:[Object(m.jsx)(Xr,{children:Object(m.jsx)($r,{children:"Changes made to the active theme will exist for the duration of a session. To discard changes and recover the original theme, refresh the page."})}),Object(m.jsx)(g,{name:"primaryColor",value:w}),Object(m.jsx)(g,{name:"backgroundColor",value:j}),Object(m.jsx)(g,{name:"textColor",value:v}),Object(m.jsx)(g,{name:"secondaryBackgroundColor",value:S}),Object(m.jsx)(Xr,{children:Object(m.jsx)(g,{name:"font",value:String(p.font)})}),Object(m.jsx)(Xr,{children:Object(m.jsx)(Zr,{})}),Object(m.jsxs)(Xr,{children:[Object(m.jsxs)($r,{children:["To save your changes, copy your custom theme into the clipboard and paste it into the",Object(m.jsx)("code",{children:"[theme]"})," section of your"," ",Object(m.jsx)("code",{children:".streamlit/config.toml"})," file."]}),Object(m.jsx)("div",{children:Object(m.jsx)(Vn.d,{onClick:function(){navigator.clipboard.writeText(h),o(!0)},kind:Vn.b.SECONDARY,children:r?Object(m.jsxs)(a.a.Fragment,{children:["Copied to clipboard ",Object(m.jsx)(K.b,{content:la.a,size:"lg",color:l.emotion.colors.success})]}):"Copy theme to clipboard"})})]})]})})]})};function ya(e){switch(e.type){case ia.ABOUT:return function(e){if(e.aboutSectionMd){var t={overflowY:"auto",overflowX:"hidden",maxHeight:"35vh"},n="  \n",r=["Made with Streamlit v".concat(L.a.current.streamlitVersion),wt.h,"Copyright ".concat((new Date).getFullYear()," Snowflake Inc. All rights reserved.")].join(n),a="".concat(e.aboutSectionMd," ").concat(n," ").concat(n," ").concat(r);return Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,children:[Object(m.jsx)(Mr,{children:"About"}),Object(m.jsx)(Fr,{children:Object(m.jsx)(na,{children:Object(m.jsx)($.a,{source:a,allowHTML:!1,style:t})})}),Object(m.jsx)(Lr,{children:Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:e.onClose,children:"Close"})})]})}return Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,children:[Object(m.jsx)(Mr,{children:"Powered by"}
1),Object(m.jsx)(Fr,{children:Object(m.jsxs)("div",{children:[L.a.isSet()&&Object(m.jsxs)(m.Fragment,{children:["Streamlit v",L.a.current.streamlitVersion,Object(m.jsx)("br",{})]}),Object(m.jsx)("a",{href:wt.h,children:wt.h}),Object(m.jsx)("br",{}),"Copyright ",(new Date).getFullYear()," Snowflake Inc. All rights reserved."]})}),Object(m.jsx)(Lr,{children:Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:e.onClose,children:"Close"})})]})}(e);case ia.CLEAR_CACHE:return function(e){var t={enter:function(){return e.defaultAction()}};return Object(m.jsx)(k.HotKeys,{handlers:t,attach:window,children:Object(m.jsx)("div",{"data-testid":"stClearCacheDialog",children:Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,children:[Object(m.jsx)(Mr,{children:"Clear Caches"}),Object(m.jsxs)(Fr,{children:[Object(m.jsx)("div",{children:Object(m.jsx)("b",{children:"Are you sure you want to clear the app's function caches?"})}),Object(m.jsxs)("div",{children:["This will remove all cached entries from functions using"," ",Object(m.jsx)("code",{children:"@st.cache"}),", ",Object(m.jsx)("code",{children:"@st.experimental_memo"}),", and"," ",Object(m.jsx)("code",{children:"@st.experimental_singleton"}),"."]})]}),Object(m.jsxs)(Lr,{children:[Object(m.jsx)(zr,{kind:Vn.b.TERTIARY,onClick:e.onClose,children:"Cancel"}),Object(m.jsx)(zr,{autoFocus:!0,kind:Vn.b.SECONDARY,onClick:e.confirmCallback,children:"Clear caches"})]})]})})})}(e);case ia.RERUN_SCRIPT:return function(e){var t={enter:function(){return e.defaultAction()}};return Object(m.jsx)(k.HotKeys,{handlers:t,attach:window,children:Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,children:[Object(m.jsxs)(Fr,{children:[Object(m.jsx)(_r,{children:"Command line:"}),Object(m.jsx)("div",{children:Object(m.jsx)(Gr,{autoFocus:!0,className:"command-line",value:e.getCommandLine(),onChange:function(t){return e.setCommandLine(t.target.value)}})})]}),Object(m.jsxs)(Lr,{children:[Object(m.jsx)(zr,{kind:Vn.b.TERTIARY,onClick:e.onClose,children:"Cancel"}),Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:function(){return e.rerunCallback()},children:"Rerun"})]})]})})}(e);case ia.SETTINGS:return t=e,Object(m.jsx)(oa,Object(y.a)({},t));case ia.SCRIPT_CHANGED:return Object(m.jsx)(ra,Object(y.a)({},e));case ia.SCRIPT_COMPILE_ERROR:return function(e){return Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,size:"auto",children:[Object(m.jsx)(Mr,{children:"Script execution error"}),Object(m.jsx)(Fr,{children:Object(m.jsx)("div",{children:Object(m.jsx)("pre",{children:Object(m.jsx)("code",{children:e.exception?e.exception.message:"No message"})})})}),Object(m.jsx)(Lr,{children:Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:e.onClose,children:"Close"})})]})}(e);case ia.THEME_CREATOR:return Object(m.jsx)(ga,Object(y.a)({},e));case ia.WARNING:return function(e){return Object(m.jsxs)(Wr,{isOpen:!0,onClose:e.onClose,children:[Object(m.jsx)(Mr,{children:e.title}),Object(m.jsx)(Fr,{children:e.msg}),Object(m.jsx)(Lr,{children:Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:e.onClose,children:"Done"})})]})}(e);case ia.DEPLOY_ERROR:return function(e){var t=e.title,n=e.msg,r=e.onClose,a=e.onContinue,o=e.onTryAgain,i=function(){r(),a&&a()};return Object(m.jsxs)(Wr,{isOpen:!0,onClose:r,children:[Object(m.jsx)(Mr,{children:t}),Object(m.jsx)(Fr,{children:Object(m.jsx)(ta,{children:n})}),Object(m.jsxs)(Lr,{children:[Object(m.jsx)(zr,{kind:Vn.b.TERTIARY,onClick:o,children:"Try again"}),Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:i,children:a?"Continue anyway":"Close"})]})]})}(e);case void 0:return function(e){var t=e.onClose;return Object(m.jsx)(Wr,{isOpen:!1,onClose:t})}(e);default:return function(e){return Object(m.jsx)(Wr,{isOpen:!0,onClose:e.onClose,children:Object(m.jsx)(Fr,{children:'Dialog type "'.concat(e.type,'" not recognized.')})})}(e)}var t}!function(e){e.ABOUT="about",e.CLEAR_CACHE="clearCache",e.RERUN_SCRIPT="rerunScript",e.SETTINGS="settings",e.SCRIPT_CHANGED="scriptChanged",e.SCRIPT_COMPILE_ERROR="scriptCompileError",e.THEME_CREATOR="themeCreator",e.WARNING="warning",e.DEPLOY_ERROR="deployError"}(ia||(ia={}));var Oa=n(10),wa=n.n(Oa),va=n(66),ja=n(221),Sa=n.n(ja),xa=function(){function e(t,n){Object(O.a)(this,e),this.encodedMsg=void 0,this.scriptRunCount=0,this.encodedMsg=t,this.scriptRunCount=n}return Object(w.a)(e,[{key:"getAge",value:function(e){return e-this.scriptRunCount}}]),e}(),ka=function(){function e(t){Object(O.a)(this,e),this.messages=new Map,this.get
1ServerUri=void 0,this.scriptRunCount=0,this.getServerUri=t}return Object(w.a)(e,[{key:"incrementRunCount",value:function(e){var t=this;this.scriptRunCount+=1,this.messages.forEach((function(n,r){n.getAge(t.scriptRunCount)>e&&(Object(W.c)("Removing expired ForwardMsg [hash=".concat(r,"]")),t.messages.delete(r))}))}},{key:"processMessagePayload",value:function(){var e=Object(va.a)(wa.a.mark((function e(t,n){var r,a;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.maybeCacheMessage(t,n),"refHash"===t.type){e.next=3;break}return e.abrupt("return",t);case 3:if(null==(r=this.getCachedMessage(t.refHash,!0))){e.next=8;break}Object(W.c)("Cached ForwardMsg HIT [hash=".concat(t.refHash,"]")),e.next=20;break;case 8:return Object(W.c)("Cached ForwardMsg MISS [hash=".concat(t.refHash,"]")),e.next=11,this.fetchMessagePayload(t.refHash);case 11:a=e.sent,e.prev=12,r=A.i.decode(a),e.next=19;break;case 16:throw e.prev=16,e.t0=e.catch(12),new Error("Failed to decode ForwardMsg (hash=".concat(t.refHash,"): ").concat(Object(R.a)(e.t0).message));case 19:this.maybeCacheMessage(r,a);case 20:if(t.metadata){e.next=22;break}throw new Error("ForwardMsg has no metadata");case 22:return r.metadata=A.i.decode(n).metadata,e.abrupt("return",r);case 24:case"end":return e.stop()}}),e,this,[[12,16]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"fetchMessagePayload",value:function(){var e=Object(va.a)(wa.a.mark((function e(t){var n,r,a,o;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=this.getServerUri())){e.next=3;break}throw new Error("Cannot retrieve uncached message: not connected to a server");case 3:return r=Object(xt.a)(n,"message?hash=".concat(t)),e.next=6,fetch(r);case 6:if((a=e.sent).ok){e.next=9;break}throw new Error("Failed to retrieve ForwardMsg (hash=".concat(t,"): ").concat(a.statusText));case 9:return e.next=11,a.arrayBuffer();case 11:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"maybeCacheMessage",value:function(e,t){"refHash"!==e.type&&e.metadata&&e.metadata.cacheable&&void 0===this.getCachedMessage(e.hash,!0)&&(Object(W.c)("Caching ForwardMsg [hash=".concat(e.hash,"]")),this.messages.set(e.hash,new xa(t,this.scriptRunCount)))}},{key:"getCachedMessage",value:function(e,t){var n=this.messages.get(e);if(null!=n)return t&&(n.scriptRunCount=this.scriptRunCount),A.i.decode(n.encodedMsg)}}]),e}();function Pa(e,t,n){for(var r="number"===typeof t?t:e.indexOf(t);r<e.length;++r)if(n(e[r]))return r}function Ia(e,t,n){for(var r="number"===typeof t?t:e.indexOf(t);r>=0;--r){if(n(e[r]))return r}}function Ca(e){return void 0!==e.messageIndex}function Va(e,t){return Math.abs(t.timestamp-e.timestamp)}var Ta=function e(t,n){var r=this;Object(O.a)(this,e),this.rerunEvents=void 0,this.requestedRerun=void 0,this.getResults=function(){var e=new Set;if(r.rerunEvents.forEach((function(t){Ca(t)&&e.add(t.messageIndex)})),0===e.size)return"No rerun messages found!";var t=Array.from(e).sort(Ea),n=r.rerunEvents[r.rerunEvents.length-1],a=r.rerunEvents[0],o={messages:t.map(r.getMessageAnalysis),rerunDuration:Va(a,n)};return void 0!==r.requestedRerun&&(o.requestedRerun=!0,o.scriptRunStateAtStart=r.requestedRerun.scriptRunState,o.requestToRerunStart=Va(r.requestedRerun,a)),o},this.getMessageAnalysis=function(e){for(var t=[],n=0;n<r.rerunEvents.length;){var a=Aa(r.rerunEvents,n,e);if(void 0===a)break;t.push(r.rerunEvents[a]),n=a+1}if(0===t.length)throw new Error("No messages for the given index: ".concat(e));for(var o={messageIndex:e,duration:Va(t[0],t[t.length-1]),steps:[]},i=1;i<t.length;++i){var l=t[i-1],s=t[i];"DecodedMessage"===s.name&&(o.messageType=s.messageType,o.len=s.len),o.steps.push({name:s.name,duration:Va(l,s)})}return o};var a=function(e,t){var n=Ia(e,t-1,(function(e){return"DecodedMessage"===e.name&&"newSession"===e.messageType}));if(void 0===n)return;var r=e[n].messageIndex;return Ia(e,n,(function(e){return"BeginHandleMessage"===e.name&&e.messageIndex===r}))}(t,n);if(void 0===a)throw new Error("Unable to find run start!");this.rerunEvents=t.slice(a,n+1),this.requestedRerun=function(e,t,n){var r=Ia(e,t,n);return void 0!==r?e[r]:void 0}(t,a-1,(function(e){return"RequestedRerun"===e.name}))};function Ea(e,t){return e<t?-1:e>t?1:0}function Aa(e,t,n){return Pa(e,t,(function(e){return Ca(e)&&e.messageIndex===n}))}var Na=function(){function e(){Object(O.a)(this,e)}return Object(w.a)(e,null,[{key:"record",value:function(e){var t,n;this.enabled&&(e.timestamp=performance.now(),this.events.push(e),"DispatchedMessage"===e.name&&"scriptFinished"===e.messageType&&(Object(W.c)("Rerun results",(t=this.events,new Ta(t,null!==n&&void 0!==n?n:t.length-1).getResults())),this.events=[]))}}]),e}();Na.enabled=!1,Na.events=[];var Da="WebsocketConnection",Ra=function(){function e(t){var n=this;Object(O.a)(this,e),this.args=void 0,this.cache=void 0,this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=cr.INITIAL,this.websocket=void 0,this.wsConnectionTimeoutId=void 0,this.args=t,this.cache=new ka((function(){return n.getBaseUriParts()})),this.stepFsm("INITIALIZED")}return Object(w.a)(e,[{key:"getBaseUriParts",value:function(){if(this.state===cr.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}},{key:"setFsmState",value:function(e,t){switch(Object(W.c)(Da,"New state: ".concat(e)),this.state=e,this.state){case cr.PINGING_SERVER:this.pingServer(L.a.isSet()?L.a.current.commandLine:void 0)}switch(this.args.onConnectionStateChange(e,t),this.state){case cr.CONNECTING:this.connectToWebSocket();break;case cr.DISCONNECTED_FOREVER:this.cancelConnectionAttempt()}}},{key:"stepFsm",value:function(e,t){if(Object(W.c)(Da,"State: ".concat(this.state,"; Event: ").concat(e)),"FATAL_ERROR"!==e||this.state===cr.DISCONNECTED_FOREVER){switch(this.state){case cr.INITIAL:if("INITIALIZED"===e)return void this.setFsmState(cr.PINGING_SERVER);break;case cr.CONNECTING:if("CONNECTION_SUCCEEDED"===e)return void this.setFsmState(cr.CONNECTED);if("CONNECTION_TIMED_OUT"===e||"CONNECTION_ERROR"===e||"CONNECTION_CLOSED"===e)return void this.setFsmState(cr.PINGING_SERVER);break;case cr.CONNECTED:if("CONNECTION_CLOSED"===e||"CONNECTION_ERROR"===e)return void this.setFsmState(cr.PINGING_SERVER);break;case cr.PINGING_SERVER:if("SERVER_PING_SUCCEEDED"===e)return void this.setFsmState(cr.CONNECTING);break;case cr.DISCONNECTED_FOREVER:return void Object(W.d)(Da,"Discarding ".concat(e," while in ").concat(cr.DISCONNECTED_FOREVER))}throw new Error("Unsupported state transition.\n"+"State: ".concat(this.state,"\n")+"Event: ".concat(e))}this.setFsmState(cr.DISCONNECTED_FOREVER,t)}},{key:"pingServer",value:function(){var e=Object(va.a)(wa.a.mark((function e(t){return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ma(this.args.baseUriPartsList,500,6e4,this.args.onRetry,this.args.setAllowedOriginsResp,t);case 2:this.uriIndex=e.sent,this.stepFsm("SERVER_PING_SUCCEEDED");case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectToWebSocket",value:function(){var e=Object(va.a)(wa.a.mark((function e(){var t,n,r,a,o=this;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Object(xt.c)(this.args.baseUriPartsList[this.uriIndex],"stream"),null==this.websocket){e.next=3;break}throw new Error("Websocket already exists");case 3:return e.next=5,this.args.claimHostAuthToken();
1case 5:n=e.sent,this.args.resetHostAuthToken(),Object(W.c)(Da,"creating WebSocket"),this.websocket=new WebSocket(t,["streamlit"].concat(Object(c.a)(n?[n]:[]))),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(t),r=this.websocket,a=function(){return r===o.websocket},this.websocket.onmessage=function(e){a()&&o.handleMessage(e.data).catch((function(e){var t="Failed to process a Websocket message (".concat(e,")");Object(W.b)(Da,t),o.stepFsm("FATAL_ERROR",t)}))},this.websocket.onopen=function(){a()&&(Object(W.c)(Da,"WebSocket onopen"),o.stepFsm("CONNECTION_SUCCEEDED"))},this.websocket.onclose=function(){a()&&(Object(W.d)(Da,"WebSocket onclose"),o.cancelConnectionAttempt(),o.stepFsm("CONNECTION_CLOSED"))},this.websocket.onerror=function(){a()&&(Object(W.b)(Da,"WebSocket onerror"),o.cancelConnectionAttempt(),o.stepFsm("CONNECTION_ERROR"))};case 17:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setConnectionTimeout",value:function(e){var t=this;if(null!=this.wsConnectionTimeoutId)throw new Error("WS timeout is already set");var n=this.websocket;this.wsConnectionTimeoutId=window.setTimeout((function(){if(n===t.websocket){if(null!=t.wsConnectionTimeoutId)return null==t.websocket?(t.cancelConnectionAttempt(),void t.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout")):void(0===t.websocket.readyState&&(Object(W.c)(Da,"".concat(e," timed out")),t.cancelConnectionAttempt(),t.stepFsm("CONNECTION_TIMED_OUT")));Object(W.d)(Da,"Timeout fired after cancellation")}}),1e3),Object(W.c)(Da,"Set WS timeout ".concat(this.wsConnectionTimeoutId))}},{key:"cancelConnectionAttempt",value:function(){this.websocket&&(this.websocket.close(),this.websocket=void 0),null!=this.wsConnectionTimeoutId&&(Object(W.c)(Da,"Clearing WS timeout ".concat(this.wsConnectionTimeoutId)),window.clearTimeout(this.wsConnectionTimeoutId),this.wsConnectionTimeoutId=void 0)}},{key:"sendMessage",value:function(e){if(this.websocket){var t=A.c.create(e),n=A.c.encode(t).finish();this.websocket.send(n)}}},{key:"incrementMessageCacheRunCount",value:function(e){this.cache.incrementRunCount(e)}},{key:"handleMessage",value:function(){var e=Object(va.a)(wa.a.mark((function e(t){var n,r,a,o;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.nextMessageIndex,this.nextMessageIndex+=1,Na.record({name:"BeginHandleMessage",messageIndex:n}),r=new Uint8Array(t),a=A.i.decode(r),Na.record({name:"DecodedMessage",messageIndex:n,messageType:a.type,len:t.byteLength}),e.next=8,this.cache.processMessagePayload(a,r);case 8:for(this.messageQueue[n]=e.sent,Na.record({name:"GotCachedPayload",messageIndex:n});this.lastDispatchedMessageIndex+1 in this.messageQueue;)o=this.lastDispatchedMessageIndex+1,this.args.onMessage(this.messageQueue[o]),Na.record({name:"DispatchedMessage",messageIndex:o,messageType:this.messageQueue[o].type}),delete this.messageQueue[o],this.lastDispatchedMessageIndex=o;case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Ba=Object(te.a)("code",{target:"eutrmpn0"})({name:"28m1rt",styles:'&::before{content:"$";margin-right:1ex;}'});function Ma(e,t,n,a,o,i){var l=new Zn,s=0,c=0,d=function(){},p=function(){++c>=e.length&&(c=0),d()},f=function(e){var r=.4*Math.random()-.2,o=1===s?t:t*Math.pow(2,s-1)*(1+r),i=Math.min(n,o);a(s,e,i),window.setTimeout(p,i)},h=function(){var t=e[c];if("localhost"===new URL(Object(xt.a)(t,"")).hostname){var n=i||"streamlit run yourscript.py";f(Object(m.jsxs)(r.Fragment,{children:[Object(m.jsx)("p",{children:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:"}),Object(m.jsx)("pre",{children:Object(m.jsx)(Ba,{children:n})})]}))}else f("Connection failed with status 0.")};return(d=function(){var n=e[c],a=Object(xt.a)(n,"healthz"),i=Object(xt.a)(n,"st-allowed-message-origins");Object(W.c)(Da,"Attempting to connect to ".concat(a,".")),0===c&&s++,Promise.all([Promise.resolve(),Sa.a.get(i,{timeout:t})]).then((function(e){var t=Object(u.a)(e,2),n=(t[0],t[1]);o(n.data),l.resolve(c)})).catch((function(e){if("ECONNABORTED"===e.code)return f("Connection timed out.");if(e.response){var t=e.response,n=t.data,a=t.status;return 0===a?h():403===a?void f(Object(m.jsxs)(r.Fragment,{children:[Object(m.jsx)("p",{children:"Cannot connect to Streamlit (HTTP status: 403)."}),Object(m.jsxs)("p",{children:["If you are trying to access a Streamlit app running on another server, this could be due to the app's"," ",Object(m.jsx)("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",children:"CORS"})," settings."]})]})):f("Connection failed with status ".concat(a,", ")+'and response "'.concat(n,'".'))}return e.request?h():f(e.message)}))})(),l.promise}var Fa=function(){function e(t){var n=this;Object(O.a)(this,e),this.props=void 0,this.connection=void 0,this.connectionState=cr.INITIAL,this.setConnectionState=function(e,t){n.connectionState!==e&&(n.connectionState=e,n.props.connectionStateChanged(e)),(t||e===cr.DISCONNECTED_FOREVER)&&n.props.onConnectionError(t||"unknown")},this.showRetryError=function(e,t,r){6===e&&n.props.onConnectionError(t)},this.props=t,this.connect()}return Object(w.a)(e,[{key:"isConnected",value:function(){return this.connectionState===cr.CONNECTED}},{key:"getBaseUriParts",value:function(){if(this.connection instanceof Ra)return this.connection.getBaseUriParts()}},{key:"sendMessage",value:function(e){this.connection instanceof Ra&&this.isConnected()?this.connection.sendMessage(e):Object(W.b)("Cannot send message when server is disconnected: ".concat(e))}},{key:"incrementMessageCacheRunCount",value:function(e){this.connection instanceof Ra&&this.connection.incrementMessageCacheRunCount(e)}},{key:"connect",value:function(){var e=Object(va.a)(wa.a.mark((function e(){var t;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.connectToRunningServer();case 3:this.connection=e.sent,e.next=11;break;case 6:e.prev=6,e.t0=e.catch(0),t=Object(R.a)(e.t0),Object(W.b)(t.message),this.setConnectionState(cr.DISCONNECTED_FOREVER,t.message);case 11:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(){return e.apply(this,arguments)}}()},{key:"connectToRunningServer",value:function(){var e=Object(xt.d)();return new Ra({baseUriPartsList:e,onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError,claimHostAuthToken:this.props.claimHostAuthToken,resetHostAuthToken:this.props.resetHostAuthToken,setAllowedOriginsResp:this.props.setAllowedOriginsResp})}}]),e}(),La=n(495),za=n(262);function Wa(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtonCount:new Map}}var Ha=function(){function e(){Object(O.a)(this,e),this.widgetStates=new Map}return Object(w.a)(e,[{key:"createState",value:function(e){var t=new A.x({id:e});return this.widgetStates.set(e,t),t}},{key:"getState",value:function(e){return this.widgetStates.get(e)}},{key:"deleteState",value:function(e){this.widgetStates.delete(e)}},{key:"removeInactive",value:function(e){var t=this;
1this.widgetStates.forEach((function(n,r){e.has(r)||t.widgetStates.delete(r)}))}},{key:"clear",value:function(){this.widgetStates.clear()}},{key:"isEmpty",get:function(){return 0===this.widgetStates.size}},{key:"createWidgetStatesMsg",value:function(){var e=new A.y;return this.widgetStates.forEach((function(t){return e.widgets.push(t)})),e}},{key:"copyFrom",value:function(e){var t=this;e.widgetStates.forEach((function(e,n){t.widgetStates.set(n,e)}))}},{key:"forEach",value:function(e){this.widgetStates.forEach(e)}}]),e}(),Ua=function(){function e(){Object(O.a)(this,e),this.widgetStates=new Ha,this.clearOnSubmit=!1,this.formCleared=new za.Signal}return Object(w.a)(e,[{key:"hasPendingChanges",get:function(){return!this.widgetStates.isEmpty}}]),e}(),_a=function(){function e(t){Object(O.a)(this,e),this.props=void 0,this.widgetStates=new Ha,this.forms=new Map,this.formsData=void 0,this.props=t,this.formsData=Wa()}return Object(w.a)(e,[{key:"addFormClearedListener",value:function(e,t){return this.getOrCreateFormState(e).formCleared.connect(t)}},{key:"setFormClearOnSubmit",value:function(e,t){this.getOrCreateFormState(e).clearOnSubmit=t}},{key:"submitForm",value:function(e){var t=e.formId;if(!Object(U.k)(t))throw new Error("invalid formID '".concat(t,"'"));var n=this.getOrCreateFormState(t);this.createWidgetState(e,{fromUi:!0}).triggerValue=!0,this.widgetStates.copyFrom(n.widgetStates),n.widgetStates.clear(),this.sendUpdateWidgetsMessage(),this.syncFormsWithPendingChanges(),this.deleteWidgetState(e.id),n.clearOnSubmit&&n.formCleared.emit()}},{key:"setTriggerValue",value:function(e,t){this.createWidgetState(e,t).triggerValue=!0,this.onWidgetValueChanged(e.formId,t),this.deleteWidgetState(e.id)}},{key:"getBoolValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"boolValue"===t.value)return t.boolValue}},{key:"setBoolValue",value:function(e,t,n){this.createWidgetState(e,n).boolValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getIntValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"intValue"===t.value)return Ga(t.intValue)}},{key:"setIntValue",value:function(e,t,n){this.createWidgetState(e,n).intValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getDoubleValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"doubleValue"===t.value)return t.doubleValue}},{key:"setDoubleValue",value:function(e,t,n){this.createWidgetState(e,n).doubleValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getStringValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"stringValue"===t.value)return t.stringValue}},{key:"setStringValue",value:function(e,t,n){this.createWidgetState(e,n).stringValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"setStringArrayValue",value:function(e,t,n){this.createWidgetState(e,n).stringArrayValue=new A.t({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getStringArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"stringArrayValue"===t.value&&null!=t.stringArrayValue&&null!=t.stringArrayValue.data)return t.stringArrayValue.data}},{key:"getDoubleArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"doubleArrayValue"===t.value&&null!=t.doubleArrayValue&&null!=t.doubleArrayValue.data)return t.doubleArrayValue.data}},{key:"setDoubleArrayValue",value:function(e,t,n){this.createWidgetState(e,n).doubleArrayValue=new A.f({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getIntArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"intArrayValue"===t.value&&null!=t.intArrayValue&&null!=t.intArrayValue.data)return t.intArrayValue.data.map(Ga)}},{key:"setIntArrayValue",value:function(e,t,n){this.createWidgetState(e,n).intArrayValue=new A.r({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getJsonValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"jsonValue"===t.value)return t.jsonValue}},{key:"setJsonValue",value:function(e,t,n){this.createWidgetState(e,n).jsonValue=JSON.stringify(t),this.onWidgetValueChanged(e.formId,n)}},{key:"setArrowValue",value:function(e,t,n){this.createWidgetState(e,n).arrowValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getArrowValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"arrowValue"===t.value&&null!=t.arrowValue)return t.arrowValue}},{key:"setBytesValue",value:function(e,t,n){this.createWidgetState(e,n).bytesValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getBytesValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"bytesValue"===t.value)return t.bytesValue}},{key:"setFileUploaderStateValue",value:function(e,t,n){this.createWidgetState(e,n).fileUploaderStateValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getFileUploaderStateValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"fileUploaderStateValue"===t.value)return t.fileUploaderStateValue}},{key:"onWidgetValueChanged",value:function(e,t){Object(U.k)(e)?this.syncFormsWithPendingChanges():t.fromUi&&this.sendUpdateWidgetsMessage()}},{key:"syncFormsWithPendingChanges",value:function(){var e=new Set;
1this.forms.forEach((function(t,n){t.hasPendingChanges&&e.add(n)})),this.updateFormsData((function(t){t.formsWithPendingChanges=e}))}},{key:"sendUpdateWidgetsMessage",value:function(){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg())}},{key:"removeInactive",value:function(e){this.widgetStates.removeInactive(e),this.forms.forEach((function(t){return t.widgetStates.removeInactive(e)}))}},{key:"createWidgetState",value:function(e,t){return(Object(U.k)(e.formId)&&t.fromUi?this.getOrCreateFormState(e.formId).widgetStates:this.widgetStates).createState(e.id)}},{key:"getWidgetState",value:function(e){if(Object(U.k)(e.formId)){var t,n=null===(t=this.forms.get(e.formId))||void 0===t?void 0:t.widgetStates.getState(e.id);if(null!=n)return n}return this.widgetStates.getState(e.id)}},{key:"deleteWidgetState",value:function(e){this.widgetStates.deleteState(e)}},{key:"getOrCreateFormState",value:function(e){var t=this.forms.get(e);return null!=t||(t=new Ua,this.forms.set(e,t)),t}},{key:"setFormsWithUploads",value:function(e){this.updateFormsData((function(t){t.formsWithUploads=e}))}},{key:"incrementSubmitButtonCount",value:function(t){this.setSubmitButtonCount(t,e.getSubmitButtonCount(this.formsData,t)+1)}},{key:"decrementSubmitButtonCount",value:function(t){this.setSubmitButtonCount(t,e.getSubmitButtonCount(this.formsData,t)-1)}},{key:"setSubmitButtonCount",value:function(e,t){if(t<0)throw new Error("Bad submitButtonCount value ".concat(t," (must be >= 0)"));this.updateFormsData((function(n){n.submitButtonCount.set(e,t)}))}},{key:"updateFormsData",value:function(e){var t=Object(P.a)(this.formsData,e);this.formsData!==t&&(this.formsData=t,this.props.formsDataChanged(this.formsData))}}],[{key:"getSubmitButtonCount",value:function(e,t){var n=e.submitButtonCount.get(t);return void 0!==n?n:0}}]),e}();function Ga(e){if("number"===typeof e)return e;var t=La.util.LongBits.from(e).toNumber();if(Number.isSafeInteger(t))return t;throw new Error("value ".concat(e," cannot be converted to number without a loss of precision!"))}var Ja=function(){function e(){Object(O.a)(this,e),this.onSessionEvent=new za.Signal}return Object(w.a)(e,[{key:"handleSessionEventMsg",value:function(e){this.onSessionEvent.emit(e)}}]),e}(),qa=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e.getServerUri,e.csrfEnabled)).formsWithPendingRequests=new Map,r.pendingFormUploadsChanged=void 0,r.pendingFormUploadsChanged=e.formsWithPendingRequestsChanged,r}return Object(w.a)(n,[{key:"uploadFile",value:function(){var e=Object(va.a)(wa.a.mark((function e(t,n,r,a){var o,i=this;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).append("sessionId",L.a.current.sessionId),o.append("widgetId",t.id),o.append(n.name,n),this.offsetPendingRequestCount(t.formId,1),e.abrupt("return",this.request("upload_file",{cancelToken:a,method:"POST",data:o,responseType:"text",onUploadProgress:r}).then((function(e){if("number"===typeof e.data)return e.data;throw new Error("Bad uploadFile response: expected a number but got '".concat(e.data,"'"))})).finally((function(){return i.offsetPendingRequestCount(t.formId,-1)})));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r,a){return e.apply(this,arguments)}}()},{key:"getFormIdSet",value:function(){return new Set(this.formsWithPendingRequests.keys())}},{key:"offsetPendingRequestCount",value:function(e,t){var n;if(0!==t&&Object(U.k)(e)){var r=null!==(n=this.formsWithPendingRequests.get(e))&&void 0!==n?n:0,a=r+t;if(a<0)throw new Error("Can't offset pendingRequestCount below 0 (formId=".concat(e,", curCount=").concat(r,", offset=").concat(t,")"));var o=this.getFormIdSet();0===a?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,a);var i=this.getFormIdSet();F.a.isEqual(i,o)||this.pendingFormUploadsChanged(i)}}}]),n}(function(){function e(t,n){Object(O.a)(this,e),this.getServerUri=void 0,this.csrfEnabled=void 0,this.get
1ServerUri=t,this.csrfEnabled=n}return Object(w.a)(e,[{key:"request",value:function(e,t){var n=this.getServerUri();if(void 0===n)throw new Error("Cannot complete request: not connected to a server");if(t.url=Object(xt.a)(n,e),this.csrfEnabled){var r=Object(U.c)("_xsrf");null!=r&&(t.headers=Object(y.a)({"X-Xsrftoken":r},t.headers||{}),t.withCredentials=!0)}return Sa.a.request(t)}}]),e}()),Ya=n(183),Xa=n.n(Ya);var Qa=/\uFE0F/g,Ka=String.fromCharCode(8205);function $a(e,t){var n,r,a=function(e){var t=e.replace("-","_");if(Xa.a.hasEmoji(Xa.a.get(t)))return Xa.a.get(t);if(Xa.a.hasEmoji(e))return e;return""}(e);if(a){var o=function(e,t){for(var n=[],r=0,a=0,o=0;o<e.length;)r=e.charCodeAt(o++),a?(n.push((65536+(a-55296<<10)+(r-56320)).toString(16)),a=0):55296<=r&&r<=56319?a=r:n.push(r.toString(16));return n.join(t||"-")}((r=a).indexOf(Ka)<0?r.replace(Qa,""):r);n="https://twemoji.maxcdn.com/2/72x72/".concat(o,".png")}else n=Object(xt.b)(e,t);!function(e){var t=document.querySelector("link[rel='shortcut icon']");t&&(t.href=e)}(n),er({type:"SET_PAGE_FAVICON",favicon:n})}var Za=Object(te.a)("div",{target:"eczokvf1"})((function(e){var t=e.theme;return{position:"absolute",background:t.colors.bgColor,color:t.colors.bodyText,top:t.spacing.none,left:t.spacing.none,right:t.spacing.none,bottom:t.spacing.none,overflow:"hidden","@media print":{float:"none",height:t.sizes.full,position:"static",overflow:"visible"}}}),""),eo=Object(te.a)("div",{target:"eczokvf0"})((function(e){return{position:"fixed",top:0,left:0,zIndex:e.theme.zIndices.tablePortal,lineHeight:"100%"}}),""),to="video/webm",no=function(){function e(t){var n=t.recordAudio,r=t.onErrorOrStop;Object(O.a)(this,e),this.recordAudio=void 0,this.inputStream=void 0,this.recordedChunks=void 0,this.mediaRecorder=void 0,this.onErrorOrStopCallback=void 0,this.recordAudio=n,this.onErrorOrStopCallback=r,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}return Object(w.a)(e,[{key:"initialize",value:function(){var e=Object(va.a)(wa.a.mark((function e(){var t,n,r,a=this;return wa.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.getDisplayMedia({video:!0});case 2:if(t=e.sent,n=t.getTracks(),!this.recordAudio){e.next=9;break}return e.next=7,navigator.mediaDevices.getUserMedia({video:!1,audio:!0});case 7:r=e.sent,n=n.concat(r.getAudioTracks());case 9:this.recordedChunks=[],this.inputStream=new MediaStream(n),this.mediaRecorder=new MediaRecorder(this.inputStream,{mimeType:to}),this.mediaRecorder.ondataavailable=function(e){return a.recordedChunks.push(e.data)};case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getState",value:function(){return this.mediaRecorder?this.mediaRecorder.state:"inactive"}},{key:"start",value:function(){var e=this;if(!this.mediaRecorder)return Object(W.d)("ScreenCastRecorder.start: mediaRecorder is null"),!1;var t=function(e){Object(W.d)("mediaRecorder.start threw an error: ".concat(e))};this.mediaRecorder.onerror=function(n){t(n),e.onErrorOrStopCallback()},this.mediaRecorder.onstop=function(){return e.onErrorOrStopCallback()};try{this.mediaRecorder.start()}catch(n){return t(n),!1}return!0}},{key:"stop",value:function(){var e=this;if(this.mediaRecorder){var t,n=new Promise((function(e){t=e}));return this.mediaRecorder.onstop=function(){return t()},this.mediaRecorder.stop(),this.inputStream&&(this.inputStream.getTracks().forEach((function(e){return e.stop()})),this.inputStream=null),n.then((function(){return e.buildOutputBlob()}))}}},{key:"buildOutputBlob",value:function(){return new Blob(this.recordedChunks,{type:to})}}],[{key:"isSupportedBrowser",value:function(){return null!=navigator.mediaDevices&&null!=navigator.mediaDevices.getUserMedia&&null!=navigator.mediaDevices.getDisplayMedia&&MediaRecorder.isTypeSupported(to)}}]),e}();var ro,ao=Object(te.a)("label",{target:"e10rcily1"})({name:"ti75j2",styles:"margin:0"}),oo=Object(te.a)("p",{target:"e10rcily0"})({name:"ti75j2",styles:"margin:0"}),io=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={recordAudio:e.props.recordAudio},e.handleRecordAudioCheckbox=function(t){var n=t.target.checked,r=e.state.recordAudio,a=e.props.toggleRecordAudio;
1n!==r&&e.setState({recordAudio:n},a)},e.handleStartButton=function(){var t=e.props,n=t.startRecording,r=t.onClose;n(),r()},e}return Object(w.a)(n,[{key:"render",value:function(){var e=this.state.recordAudio,t=this.props.onClose;return Object(m.jsxs)(Wr,{isOpen:!0,onClose:t,children:[Object(m.jsx)(Mr,{children:"Record a screencast"}),Object(m.jsxs)(Fr,{children:[Object(m.jsx)("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),Object(m.jsx)("p",{children:Object(m.jsxs)(ao,{children:[Object(m.jsx)("input",{type:"checkbox",name:"recordAudio",checked:e,onChange:this.handleRecordAudioCheckbox})," ","Also record audio"]})}),Object(m.jsxs)(oo,{children:["Press ",Object(m.jsx)("kbd",{children:"Esc"})," any time to stop recording."]})]}),Object(m.jsx)(Lr,{children:Object(m.jsx)(zr,{kind:Vn.b.SECONDARY,onClick:this.handleStartButton,children:"Start recording!"})})]})}}]),n}(r.PureComponent),lo=Object(te.a)("video",{target:"eqto2al6"})((function(e){var t=e.theme;return{width:t.sizes.full,borderRadius:t.radii.md}}),""),so=Object(te.a)("div",{target:"eqto2al5"})((function(e){return{display:"flex",flexDirection:"column",width:e.theme.sizes.full}}),""),co=Object(te.a)("div",{target:"eqto2al4"})((function(e){var t=e.theme;return{display:"flex",flexDirection:"row",paddingTop:t.spacing.md,paddingBottom:t.spacing.md}}),""),uo=Object(te.a)("div",{target:"eqto2al3"})((function(e){var t=e.theme;return{paddingRight:t.spacing.lg,textAlign:"right",color:t.colors.gray,fontWeight:t.fontWeights.bold,width:"6em"}}),""),po=Object(te.a)("div",{target:"eqto2al2"})((function(e){var t=e.theme;return Object(Vt.a)({flex:1,paddingRight:t.spacing.lg,marginRight:"6em"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{marginRight:t.spacing.none})}),""),fo=Object(te.a)("p",{target:"eqto2al1"})((function(e){var t=e.theme;return{marginTop:t.spacing.sm,marginBottom:t.spacing.none,fontSize:t.fontSizes.sm}}),""),ho=Object(te.a)("div",{target:"eqto2al0"})((function(e){return{marginTop:e.theme.spacing.twoXS}}),""),bo=function(e){var t=e.onClose,n=e.videoBlob,r=e.fileName,a=URL.createObjectURL(n);return Object(m.jsxs)(Wr,{isOpen:!0,onClose:t,overrides:{Dialog:{style:{width:"80vw"}}},children:[Object(m.jsx)(Mr,{children:"Next steps"}),Object(m.jsx)(Fr,{children:Object(m.jsxs)(so,{children:[Object(m.jsxs)(co,{children:[Object(m.jsx)(uo,{children:"Step 1"}),Object(m.jsxs)(po,{children:[Object(m.jsx)("p",{children:"Preview your video below:"}),Object(m.jsx)(lo,{src:a,controls:!0})]})]}),Object(m.jsxs)(co,{children:[Object(m.jsx)(uo,{children:"Step 2"}),Object(m.jsxs)(po,{children:[Object(m.jsx)(ho,{children:Object(m.jsx)(Vn.d,{kind:Vn.b.SECONDARY,onClick:function(){var e=document.createElement("a");e.setAttribute("href",a),e.setAttribute("download","".concat(r,".webm")),e.click(),t()},children:"Save video to disk"})}),Object(m.jsxs)(fo,{children:["This video is encoded in the"," ",Object(m.jsx)("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."]})]})]}),Object(m.jsxs)(co,{children:[Object(m.jsx)(uo,{children:"Step 3"}),Object(m.jsxs)(po,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",Object(m.jsx)("span",{role:"img","aria-label":"Happy",children:"\ud83d\ude00"})]})]})]})})]})},mo=Object(te.a)("div",{target:"e189isb52"})((function(e){e.theme;return{display:"flex"}}),""),go=Object(te.a)("div",{target:"e189isb51"})((function(e){e.theme;return{display:"flex",alignItems:"center",justifyItems:"center",marginRight:"26px",marginLeft:"10px",fontSize:"50px"}}),""),yo=Object(te.a)("p",{target:"e189isb50"})((function(e){return{margin:e.theme.spacing.none}}),""),Oo=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){return Object(O.a)(this,n),t.apply(this,arguments)}return Object(w.a)(n,[{key:"render",value:function(){var e=this.props.onClose;return Object(m.jsxs)(Wr,{isOpen:!0,onClose:e,children:[Object(m.jsx)(Mr,{children:"Record a screencast"}),Object(m.jsx)(Fr,{children:Object(m.jsxs)(mo,{children:[Object(m.jsx)(go,{children:Object(m.jsx)("span",{role:"img","aria-label":"Alien Monster",children:"\ud83d\udc7e"})}),Object(m.jsx)(yo,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]})}}]),n}(r.PureComponent),wo=Object(p.c)(ro||(ro=Object(Tn.a)(["\n0% {\n  opacity: 0;\n}\n25% {\n  opacity: 1;\n}\n100% {\n  opacity: 0;\n}"]))),vo=Object(te.a)("div",{target:"e1qhdkqn0"})((function(e){var t=e.theme;return{position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:t.sizes.full,height:t.sizes.full,fontSize:"40vh",color:t.colors.red,fontWeight:t.fontWeights.bold,opacity:"0.8",textShadow:"1px 1px 10px ".concat(t.colors.darkGray),transition:"opacity 0.3s ease-in-out",fontFamily:'Helvetica, Calibri, Roboto, "Open Sans", Arial, sans-serif',animation:"".concat(wo," 1s")}}),""),jo=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={countdown:e.props.countdown},e.onAnimationEnd=Object(va.a)(wa.a.mark((function t(){var n,r,a;return wa.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.state.countdown,r=e.props.endCallback,(a=n-1)>=0&&e.setState({countdown:a}),0===a&&r();case 5:case"end":return t.stop()}}),t)}))),e}return Object(w.a)(n,[{key:"render",value:function(){var e=this.state.countdown;return Object(m.jsx)(vo,{onAnimationEnd:this.onAnimationEnd,children:Object(m.jsx)("span",{children:e})},"frame".concat(e))}}]),n}(r.PureComponent);jo.defaultProps={endCallback:function(){}};var So=jo;var xo=function(e){var t=function(t){Object(v.a)(r,t);var n=Object(j.a)(r);function r(){var e;Object(O.a)(this,r);for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a))).recorder=void 0,e.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:"OFF"},e.toggleRecordAudio=function(){var t=e.state.recordAudio;
1e.setState({recordAudio:!t})},e.showDialog=function(t){var n=e.state.currentState;no.isSupportedBrowser()?"OFF"===n?e.setState({fileName:t,currentState:"SETUP"}):e.stopRecording().catch((function(e){return Object(W.d)("withScreencast.stopRecording threw an error: ".concat(e))})):e.setState({currentState:"UNSUPPORTED"})},e.startRecording=Object(va.a)(wa.a.mark((function t(){var n;return wa.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state.recordAudio,e.recorder=new no({recordAudio:n,onErrorOrStop:function(){return e.stopRecording()}}),t.prev=2,t.next=5,e.recorder.initialize();case 5:t.next=12;break;case 7:return t.prev=7,t.t0=t.catch(2),Object(W.d)("ScreenCastRecorder.initialize error: ".concat(t.t0)),e.setState({currentState:"UNSUPPORTED"}),t.abrupt("return");case 12:e.setState({currentState:"COUNTDOWN"});case 13:case"end":return t.stop()}}),t,null,[[2,7]])}))),e.stopRecording=Object(va.a)(wa.a.mark((function t(){var n,r;return wa.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("OFF"!==(r=e.state.currentState)&&null!=e.recorder){t.next=3;break}return t.abrupt("return");case 3:if("COUNTDOWN"===r&&e.setState({currentState:"OFF"}),"RECORDING"!==r){t.next=13;break}if("inactive"!==e.recorder.getState()){t.next=9;break}e.setState({currentState:"OFF"}),t.next=13;break;case 9:return t.next=11,e.recorder.stop();case 11:n=t.sent,e.setState({outputBlob:n,currentState:"PREVIEW_FILE"});case 13:case"end":return t.stop()}}),t)}))),e.onCountdownEnd=Object(va.a)(wa.a.mark((function t(){return wa.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e.recorder){t.next=2;break}throw new Error("Countdown finished but recorder is null");case 2:e.recorder.start()?e.setState({currentState:"RECORDING"}):e.stopRecording().catch((function(e){return Object(W.d)("withScreencast.stopRecording threw an error: ".concat(e))}));case 4:case"end":return t.stop()}}),t)}))),e.getScreenCastProps=function(){return{currentState:e.state.currentState,toggleRecordAudio:e.toggleRecordAudio,startRecording:e.showDialog,stopRecording:e.stopRecording}},e.closeDialog=function(){e.setState({currentState:"OFF"})},e}return Object(w.a)(r,[{key:"render",value:function(){var t=this.state,n=t.outputBlob,r=t.fileName,a=t.recordAudio,o=t.currentState;return Object(m.jsxs)("div",{className:"withScreencast",children:[Object(m.jsx)(e,Object(y.a)({screenCast:this.getScreenCastProps()},this.props)),"UNSUPPORTED"===o&&Object(m.jsx)(Oo,{onClose:this.closeDialog}),"SETUP"===o&&Object(m.jsx)(io,{recordAudio:a,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),"COUNTDOWN"===o&&Object(m.jsx)(So,{countdown:3,endCallback:this.onCountdownEnd}),"PREVIEW_FILE"===o&&n&&Object(m.jsx)(bo,{onClose:this.closeDialog,videoBlob:n,fileName:r})]})}}]),r}(r.PureComponent);return t.displayName="withScreencast(".concat(e.displayName||e.name,")"),$n()(t,e)},ko=(n(1162),tr(xo(function(e){Object(v.a)(r,e);var t=Object(j.a)(r);function r(e){var n;return Object(O.a)(this,r),(n=t.call(this,e)).sessionEventDispatcher=void 0,n.connectionManager=void 0,n.widgetMgr=void 0,n.uploadClient=void 0,n.pendingElementsBuffer=void 0,n.pendingElementsTimerRunning=void 0,n.componentRegistry=void 0,n.keyMap={RERUN:"r",CLEAR_CACHE:"c",STOP_RECORDING:{sequence:"esc",action:"keyup"}},n.keyHandlers={RERUN:function(){n.rerunScript()},CLEAR_CACHE:function(){(Er()||n.props.hostCommunication.currentState.isOwner)&&n.openClearCacheDialog()},STOP_RECORDING:n.props.screenCast.stopRecording},n.showDeployError=function(e,t,r){n.openDialog({type:ia.DEPLOY_ERROR,title:e,msg:t,onContinue:r,onClose:function(){},onTryAgain:n.sendLoadGitInfoBackMsg})},n.handleConnectionStateChanged=function(e){Object(W.c)("Connection state changed from ".concat(n.state.connectionState," to ").concat(e)),n.setState({connectionState:e}),e===cr.CONNECTED?(Object(W.c)("Reconnected to server; requesting a script run"),n.widgetMgr.sendUpdateWidgetsMessage(),n.setState({dialog:null})):(Object(U.q)("_xsrf",""),L.a.isSet()&&L.a.clearSession())},n.handleGitInfoChanged=function(e){n.setState({gitInfo:e})},n.handleMessage=function(e){try{!function(e,t,n){var r=e[t];if(r in n)return n[r](e[r]);throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}(e,"type",{newSession:function(e){return n.handleNewSession(e)},sessionStateChanged:function(e){return n.handleSessionStateChanged(e)},sessionEvent:function(e){return n.handleSessionEvent(e)},delta:function(t){return n.handleDeltaMsg(t,e.metadata)},pageConfigChanged:function(e){return n.handlePageConfigChanged(e)},pageInfoChanged:function(e){return n.handlePageInfoChanged(e)},pagesChanged:function(e){return n.handlePagesChanged(e)},pageNotFound:function(e){return n.handlePageNotFound(e)},gitInfoChanged:function(e){return n.handleGitInfoChanged(e)},scriptFinished:function(e){return n.handleScriptFinished(e)},pageProfile:function(e){return n.handlePageProfileMsg(e)}})}catch(r){var t=Object(R.a)(r);Object(W.b)(t),n.showError("Bad message format",t.message)}},n.handlePageConfigChanged=function(e){var t=e.title,r=e.favicon,a=e.layout,o=e.initialSidebarState,i=e.menuItems;H.current.enqueue("pageConfigChanged",{favicon:r,layout:a,initialSidebarState:o}),t&&(n.props.hostCommunication.sendMessage({type:"SET_PAGE_TITLE",title:t}),document.title=t),r&&$a(r,n.getBaseUriParts()),a!==n.state.layout&&n.setState((function(e){return{layout:a,userSettings:Object(y.a)(Object(y.a)({},e.userSettings),{},{wideMode:a===A.p.Layout.WIDE})}})),o!==n.state.initialSidebarState&&n.setState((function(){return{initialSidebarState:o}})),n.setState({menuItems:i})},n.handlePageInfoChanged=function(e){var t=e.queryString,r=document.location.pathname+(t?"?".concat(t):"");window.history.pushState({},"",r),window.parent.postMessage({queryString:t},"*"),n.props.hostCommunication.sendMessage({type:"SET_QUERY_PARAM",queryParams:t?"?".concat(t):""})},n.handlePageNotFound=function(e){var t,r=e.pageName,a=r?"You have requested page /".concat(r,", but no corresponding file was found in the app's pages/ directory"):"The page that you have requested does not seem to exist";n.showError("Page not found","".concat(a,". Running the app's main page."));var o=(null===(t=n.state.appPages[0])||void 0===t?void 0:t.pageScriptHash)||"";n.setState({currentPageScriptHash:o},(function(){n.props.hostCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:o})}))},n.handlePagesChanged=function(e){var t=e.appPages;n.setState({appPages:t},(function(){n.props.hostCommunication.sendMessage({type:"SET_APP_PAGES",appPages:t})}))},n.handlePageProfileMsg=function(e){var t,r,a;H.current.enqueue("pageProfile",Object(y.a)(Object(y.a)({},A.q.toObject(e)),{}
1,{appId:L.a.current.appId,numPages:null===(t=n.state.appPages)||void 0===t?void 0:t.length,sessionId:L.a.current.sessionId,pythonVersion:L.a.current.pythonVersion,pageScriptHash:n.state.currentPageScriptHash,activeTheme:null===(r=n.props.theme)||void 0===r||null===(a=r.activeTheme)||void 0===a?void 0:a.name,totalLoadTime:Math.round(1e3*(performance.now()-n.state.latestRunTime))}))},n.handleSessionStateChanged=function(e){n.setState((function(t){var r=t.scriptRunState,a=t.dialog;if(e.scriptIsRunning&&t.scriptRunState!==ue.a.STOP_REQUESTED)r=ue.a.RUNNING,null!=a&&a.type===ia.SCRIPT_COMPILE_ERROR&&(a=void 0);else if(!e.scriptIsRunning&&t.scriptRunState!==ue.a.RERUN_REQUESTED&&t.scriptRunState!==ue.a.COMPILATION_ERROR){r=ue.a.NOT_RUNNING,H.current.enqueue("deltaStats",H.current.getAndResetDeltaCounter());var o=n.props.theme,i=o.availableThemes,l=o.activeTheme,s=i.length>Object(b.createPresetThemes)().length;H.current.enqueue("themeStats",{activeThemeName:l.name,customThemeDefined:s});var c=H.current.getAndResetCustomComponentCounter();Object.entries(c).forEach((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];H.current.enqueue("customComponentStats",{name:n,count:r})}))}return{userSettings:Object(y.a)(Object(y.a)({},t.userSettings),{},{runOnSave:Boolean(e.runOnSave)}),dialog:a,scriptRunState:r}}))},n.handleSessionEvent=function(e){if(n.sessionEventDispatcher.handleSessionEventMsg(e),"scriptCompilationException"===e.type){n.setState({scriptRunState:ue.a.COMPILATION_ERROR});var t={type:ia.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:function(){}};n.openDialog(t)}else if(z.b&&"scriptChangedOnDisk"===e.type){var r={type:ia.SCRIPT_CHANGED,onRerun:n.rerunScript,onClose:function(){},allowRunOnSave:n.state.allowRunOnSave};n.openDialog(r)}},n.handleNewSession=function(e){var t,a=e.initialize;if(r.hasStreamlitVersionChanged(a))window.location.reload();else{L.a.isSet()||n.handleOneTimeInitialization(e);var o=e.config,i=e.customTheme,l=n.state.currentPageScriptHash,s=e.pageScriptHash,c=e.appPages[0],u=null===(t=e.appPages.find((function(e){return e.pageScriptHash===s})))||void 0===t?void 0:t.pageName,d=s===c.pageScriptHash,p=n.getBaseUriParts();if(p){var f=p.basePath,h=n.getQueryString(),b=h?"?".concat(h):"",m=f?"/".concat(f):"",g=d?"":u,y="".concat(m,"/").concat(g).concat(b);window.history.pushState({},"",y)}n.processThemeInput(i),n.setState({allowRunOnSave:o.allowRunOnSave,hideTopBar:o.hideTopBar,hideSidebarNav:o.hideSidebarNav,appPages:e.appPages,currentPageScriptHash:s,latestRunTime:performance.now()},(function(){n.props.hostCommunication.sendMessage({type:"SET_APP_PAGES",appPages:e.appPages}),n.props.hostCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:d?"":u,currentPageScriptHash:s})}));var O=n.state.appHash,w=e.scriptRunId,v=e.name,j=e.mainScriptPath,S=Object(U.e)(L.a.current.installationId+j);document.title="".concat(u," \xb7 Streamlit"),$a("".concat(".","/favicon.png"),n.getBaseUriParts()),H.current.setMetadata(n.props.hostCommunication.currentState.deployedAppMetadata),H.current.setAppHash(S),H.current.clearDeltaCounter(),H.current.enqueue("updateReport",{numPages:e.appPages.length,isMainPage:d}),O===S&&l===s?n.setState({scriptRunId:w}
1):n.clearAppState(S,w,v)}},n.handleOneTimeInitialization=function(e){var t=e.initialize,r=e.config;L.a.current=L.a.fromNewSessionMessage(e),H.current.initialize({gatherUsageStats:r.gatherUsageStats}),H.current.enqueue("createReport",{pythonVersion:L.a.current.pythonVersion}),n.handleSessionStateChanged(t.sessionState)},n.setAndSendTheme=function(e){n.props.theme.setTheme(e),n.props.hostCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(b.toExportedTheme)(e.emotion)})},n.createThemeHash=function(e){if(!e)return"hash_for_undefined_custom_theme";var t=Object.entries(e);return t.sort(),Object(U.e)(t.join(":"))},n.closeDialog=function(){n.setState({dialog:void 0}),n.props.hostCommunication.onModalReset()},n.saveSettings=function(e){var t=n.state.userSettings.runOnSave,r=e.runOnSave;if(n.setState({userSettings:e}),t!==r&&n.isServerConnected()){var a=new A.c({setRunOnSave:r});a.type="setRunOnSave",n.sendBackMsg(a)}},n.handleDeltaMsg=function(e,t){if(n.pendingElementsBuffer=n.pendingElementsBuffer.applyDelta(n.state.scriptRunId,e,t),!n.pendingElementsTimerRunning){n.pendingElementsTimerRunning=!0;var r=n.state.scriptRunState===ue.a.RUNNING;setTimeout((function(){n.pendingElementsTimerRunning=!1,r&&n.setState({elements:n.pendingElementsBuffer})}),10)}},n.debugShutdownRuntime=function(){if(n.isServerConnected()){var e=new A.c({debugShutdownRuntime:!0});e.type="debugShutdownRuntime",n.sendBackMsg(e)}},n.debugDisconnectWebsocket=function(){if(n.isServerConnected()){var e=new A.c({debugDisconnectWebsocket:!0});e.type="debugDisconnectWebsocket",n.sendBackMsg(e)}},n.rerunScript=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n.closeDialog(),n.isServerConnected()?n.state.scriptRunState!==ue.a.RUNNING&&n.state.scriptRunState!==ue.a.RERUN_REQUESTED&&(H.current.enqueue("rerunScript"),n.setState({scriptRunState:ue.a.RERUN_REQUESTED}),!0===e&&n.saveSettings(Object(y.a)(Object(y.a)({},n.state.userSettings),{},{runOnSave:!0})),n.widgetMgr.sendUpdateWidgetsMessage()):Object(W.b)("Cannot rerun script when disconnected from server.")},n.sendLoadGitInfoBackMsg=function(){n.isServerConnected()?n.sendBackMsg(new A.c({loadGitInfo:!0})):Object(W.b)("Cannot load git information when disconnected from server.")},n.onPageChange=function(e){n.sendRerunBackMsg(void 0,e)},n.isAppInReadyState=function(e){return n.state.connectionState===cr.CONNECTED&&n.state.scriptRunState===ue.a.NOT_RUNNING&&e.scriptRunState===ue.a.RUNNING&&e.connectionState===cr.CONNECTED},n.sendRerunBackMsg=function(e,t){var r=n.getBaseUriParts();if(r){var a=n.state.currentPageScriptHash,o=r.basePath,i=n.getQueryString(),l="";t||(a?t=a:(l=decodeURIComponent(document.location.pathname.replace("/".concat(o),"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),"")),t="")),n.sendBackMsg(new A.c({rerunScript:{queryString:i,widgetStates:e,pageScriptHash:t,pageName:l}})),Na.record({name:"RequestedRerun",scriptRunState:n.state.scriptRunState})}else Object(W.b)("Cannot send rerun backMessage when disconnected from server.")},n.stopScript=function(){if(n.isServerConnected()){if(n.state.scriptRunState!==ue.a.NOT_RUNNING&&n.state.scriptRunState!==ue.a.STOP_REQUESTED){var e=new A.c({stopScript:!0});e.type="stopScript",n.sendBackMsg(e),n.setState({scriptRunState:ue.a.STOP_REQUESTED})}}else Object(W.b)("Cannot stop app when disconnected from server.")},n.openClearCacheDialog=function(){if(n.isServerConnected()){var e={type:ia.CLEAR_CACHE,confirmCallback:n.clearCache,defaultAction:n.clearCache,onClose:function(){}};n.openDialog(e)}else Object(W.b)("Cannot clear cache: disconnected from server")},n.openThemeCreatorDialog=function(){var e={type:ia.THEME_CREATOR,backToSettings:n.settingsCallback,onClose:n.closeDialog};n.openDialog(e)},n.clearCache=function(){if(n.closeDialog(),n.isServerConnected()){H.current.enqueue("clearCache");var e=new A.c({clearCache:!0});e.type="clearCache",n.sendBackMsg(e)}else Object(W.b)("Cannot clear cache: disconnected from server")},n.sendBackMsg=function(e){n.connectionManager?(Object(W.c)(e),n.connectionManager.sendMessage(e)):Object(W.b)("Not connected. Cannot send back message: ".concat(e))},n.handleConnectionError=function(e){n.showError("Connection error",e)},n.isServerConnected=function(){return!!n.connectionManager&&n.connectionManager.isConnected()},n.settingsCallback=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={type:ia.SETTINGS,isServerConnected:n.isServerConnected(),settings:n.state.userSettings,allowRunOnSave:n.state.allowRunOnSave,onSave:n.saveSettings,onClose:function(){},developerMode:n.state.developerMode,openThemeCreator:n.openThemeCreatorDialog,animateModal:e};n.openDialog(t)}
1,n.aboutCallback=function(){var e=n.state.menuItems,t={type:ia.ABOUT,onClose:n.closeDialog,aboutSectionMd:null===e||void 0===e?void 0:e.aboutSectionMd};n.openDialog(t)},n.screencastCallback=function(){var e=n.state.scriptName,t=n.props.screenCast.startRecording,r=x()().format("YYYY-MM-DD-HH-MM-SS");t("streamlit-".concat(e,"-").concat(r))},n.handleFullScreen=function(e){n.setState({isFullScreen:e})},n.addScriptFinishedHandler=function(e){n.setState((function(t,n){return{scriptFinishedHandlers:Object(M.concat)(t.scriptFinishedHandlers,e)}}))},n.removeScriptFinishedHandler=function(e){n.setState((function(t,n){return{scriptFinishedHandlers:Object(M.without)(t.scriptFinishedHandlers,e)}}))},n.getBaseUriParts=function(){return n.connectionManager?n.connectionManager.getBaseUriParts():void 0},n.getQueryString=function(){var e=n.props.hostCommunication.currentState.queryParams,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},Object(P.b)(),n.state={connectionState:cr.INITIAL,elements:q.empty("Please wait..."),isFullScreen:!1,scriptName:"",scriptRunId:"<null>",appHash:null,scriptRunState:ue.a.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:A.p.Layout.CENTERED,initialSidebarState:A.p.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],developerMode:window.location.host.includes("localhost"),themeHash:null,gitInfo:null,formsData:Wa(),appPages:[],currentPageScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,latestRunTime:performance.now()},n.sessionEventDispatcher=new Ja,n.connectionManager=null,n.widgetMgr=new _a({sendRerunBackMsg:n.sendRerunBackMsg,formsDataChanged:function(e){return n.setState({formsData:e})}}),n.uploadClient=new qa({getServerUri:n.getBaseUriParts,formsWithPendingRequestsChanged:function(e){return n.widgetMgr.setFormsWithUploads(e)},csrfEnabled:!0}),n.componentRegistry=new kt(n.getBaseUriParts),n.pendingElementsTimerRunning=!1,n.pendingElementsBuffer=n.state.elements,window.streamlitDebug={disconnectWebsocket:n.debugDisconnectWebsocket,shutdownRuntime:n.debugShutdownRuntime},n}return Object(w.a)(r,[{key:"componentDidMount",value:function(){var e=this;this.connectionManager=new Fa({onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:function(){return e.props.hostCommunication.currentState.authTokenPromise},resetHostAuthToken:this.props.hostCommunication.resetAuthToken,setAllowedOriginsResp:this.props.hostCommunication.setAllowedOriginsResp}),Object(U.f)()&&document.body.classList.add("embedded"),Object(U.i)()&&(window.iFrameResizer={heightCalculationMethod:function(){var e=document.querySelectorAll("[data-iframe-height]"),t=Array.from(e).map((function(e){return Math.ceil(e.getBoundingClientRect().bottom)}));return Math.max.apply(Math,[0].concat(Object(c.a)(t)))}},n.e(48).then(n.t.bind(null,1708,7))),this.props.hostCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(b.toExportedTheme)(this.props.theme.activeTheme.emotion)}),H.current.enqueue("viewReport")}},{key:"componentDidUpdate",value:function(e,t){e.hostCommunication.currentState.queryParams!==this.props.hostCommunication.currentState.queryParams&&this.sendRerunBackMsg(),this.props.hostCommunication.currentState.forcedModalClose&&this.closeDialog();var n=this.props.hostCommunication.currentState.requestedPageScriptHash;null!==n&&(this.onPageChange(n),this.props.hostCommunication.onPageChanged()),!1===window.prerenderReady&&this.isAppInReadyState(t)&&(window.prerenderReady=!0)}},{key:"showError",value:function(e,t){Object(W.b)(t);var n={type:ia.WARNING,title:e,msg:t,onClose:function(){}};this.openDialog(n)}},{key:"processThemeInput",value:function(e){var t=this.createThemeHash(e);if(t!==this.state.themeHash){this.setState({themeHash:t});var n=!Object(b.isPresetTheme)(this.props.theme.activeTheme);if(e){var r=Object(b.createTheme)(b.CUSTOM_THEME_NAME,e);this.props.theme.addThemes([r]),(null===Object(b.getCachedTheme)()||n)&&this.setAndSendTheme(r)}else this.props.theme.addThemes([]),n&&this.setAndSendTheme(Object(b.createAutoTheme)())}}},{key:"handleScriptFinished",value:function(e){var t=this;if(e===A.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||e===A.i.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN){var n=e===A.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY;if(window.setTimeout((function(){t.state.scriptFinishedHandlers.map((function(e){return e()}))}),0),n){this.setState((function(e){var n=e.scriptRunId;return{elements:t.pendingElementsBuffer.clearStaleNodes(n)}}),(function(){t.pendingElementsBuffer=t.state.elements}));var r=new Set(Array.from(this.state.elements.getElements()).map((function(e){return Object(U.d)(e)})).filter(U.p));this.widgetMgr.removeInactive(r)}null!==this.connectionManager&&this.connectionManager.incrementMessageCacheRunCount(L.a.current.maxCachedMessageAge)}}}
1,{key:"clearAppState",value:function(e,t,n){var r=this;this.setState({scriptRunId:t,scriptName:n,appHash:e,elements:q.empty()},(function(){r.pendingElementsBuffer=r.state.elements,r.widgetMgr.removeInactive(new Set([]))}))}},{key:"openDialog",value:function(e){this.setState({dialog:e})}},{key:"render",value:function(){var e=this.state,t=e.allowRunOnSave,n=e.connectionState,r=e.dialog,a=e.elements,o=e.initialSidebarState,i=(e.menuItems,e.isFullScreen),l=e.layout,s=e.scriptRunId,c=e.scriptRunState,u=e.userSettings,d=(e.gitInfo,e.hideTopBar,e.hideSidebarNav),p=e.currentPageScriptHash,f=this.props.hostCommunication.currentState.hideSidebarNav,h=C()("stApp",{"streamlit-embedded":Object(U.f)(),"streamlit-wide":u.wideMode}),b=r?ya(Object(y.a)(Object(y.a)({},r),{},{onClose:this.closeDialog})):null;return Object(m.jsx)(V.a.Provider,{value:{initialSidebarState:o,layout:l,wideMode:u.wideMode,embedded:Object(U.f)(),isFullScreen:i,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,availableThemes:this.props.theme.availableThemes,setTheme:this.setAndSendTheme,addThemes:this.props.theme.addThemes,sidebarChevronDownshift:this.props.hostCommunication.currentState.sidebarChevronDownshift,getBaseUriParts:this.getBaseUriParts},children:Object(m.jsx)(k.HotKeys,{keyMap:this.keyMap,handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsxs)(Za,{className:h,children:[Object(m.jsx)(Ir,{connectionState:n,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:c,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:t}),Object(m.jsx)(ur,{elements:a,scriptRunId:s,scriptRunState:c,widgetMgr:this.widgetMgr,widgetsDisabled:n!==cr.CONNECTED,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appPages:this.state.appPages,onPageChange:this.onPageChange,currentPageScriptHash:p,hideSidebarNav:d||f,pageLinkBaseUrl:this.props.hostCommunication.currentState.pageLinkBaseUrl}),b]})})})}}],[{key:"hasStreamlitVersionChanged",value:function(e){if(L.a.isSet()){var t=L.a.current.streamlitVersion,n=e.environmentInfo;if(null!=n&&null!=n.streamlitVersion)return t<n.streamlitVersion}return!1}}]),r}(r.PureComponent)))),Po=function(){var e=Object(b.getDefaultTheme)(),t=a.a.useState(e),n=Object(u.a)(t,2),r=n[0],o=n[1],i=a.a.useState([].concat(Object(c.a)(Object(b.createPresetThemes)()),Object(c.a)(Object(b.isPresetTheme)(e)?[]:[e]))),l=Object(u.a)(i,2),s=l[0],f=l[1],h=function(e){e!==r&&(o(e),e.name===b.AUTO_THEME_NAME?Object(b.removeCachedTheme)():Object(b.setCachedTheme)(e))},y=function(){r.name===b.AUTO_THEME_NAME&&h(Object(b.createAutoTheme)());var e=s.filter((function(e){return e.name!==b.AUTO_THEME_NAME}));f([Object(b.createAutoTheme)()].concat(Object(c.a)(e)))};return a.a.useEffect((function(){var e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",y),function(){return e.removeEventListener("change",y)}}),[r,s]),Object(m.jsx)(d.a,{theme:r.baseweb,zIndex:r.emotion.zIndices.popupMenu,children:Object(m.jsxs)(g,{theme:r.emotion,baseuiTheme:r.basewebTheme,children:[Object(m.jsx)(p.a,{styles:b.globalStyles}),Object(m.jsx)(ko,{theme:{setTheme:h,activeTheme:r,addThemes:function(e){f([].concat(Object(c.a)(Object(b.createPresetThemes)()),Object(c.a)(e)))},availableThemes:s}}),Object(m.jsx)(eo,{id:"portal"})]})})},Io=new l.a({prefix:"st-"});i.a.render(Object(m.jsx)(s.a,{value:Io,children:Object(m.jsx)(Po,{})}),document.getElementById("root"))},122:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(11),a=n(40),o=Object(r.a)("label",{target:"effi0qh3"})((function(e){var t=e.disabled,n=e.labelVisibility,r=e.theme;return{fontSize:r.fontSizes.sm,color:t?r.colors.fadedText40:r.colors.bodyText,display:n===a.a.Collapsed?"none":"flex",visibility:n===a.a.Hidden?"hidden":"visible",marginBottom:r.spacing.sm,height:"auto",minHeight:r.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"}}),""),i=Object(r.a)("div",{target:"effi0qh2"})((function(){return{display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}}),""),l=Object(r.a)("div",{target:"effi0qh1"})((function(e){var t=e.theme;
1return{fontSize:t.fontSizes.twoSm,color:t.colors.fadedText60,margin:t.spacing.none,textAlign:"right",position:"absolute",bottom:0,right:t.spacing.halfSmFont}}),""),s=Object(r.a)("label",{target:"effi0qh0"})((function(e){return{marginLeft:e.theme.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}}),"")},130:function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.c})),n.d(t,"c",(function(){return r.d})),n.d(t,"d",(function(){return i}));var r=n(122),a=(n(0),n(63)),o=n(1);function i(e){var t=e.label,n=e.children,i=e.disabled,l=e.labelVisibility;return null==t?Object(o.jsx)(o.Fragment,{}):Object(o.jsxs)(r.b,{"aria-hidden":"true",disabled:i,labelVisibility:l,children:[Object(o.jsx)(a.a,{source:t,allowHTML:!1,isLabel:!0}),n]})}},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(5),a=(n(0),n(65)),o=n(1199),i=n(63),l=n(71),s=n(11),c=Object(s.a)("div",{target:"e1j25pv60"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",svg:{stroke:t.colors.fadedText40,strokeWidth:2.25},":hover":{svg:{stroke:t.colors.fadedText60}}}}),""),u=n(1);var d=function(e){var t=e.placement,n=void 0===t?a.b.AUTO:t,s=e.iconSize,d=void 0===s?"16":s,p=e.content,f=e.children,h=e.markdownProps,b=Object(l.g)();return Object(u.jsx)(c,{className:"stTooltipIcon",children:Object(u.jsx)(a.c,{content:Object(u.jsx)(i.a,Object(r.a)({style:{fontSize:b.fontSizes.sm},source:p,allowHTML:!1},h||{})),placement:n,inline:!0,children:f||Object(u.jsx)(o.a,{className:"icon",size:d})})})}},136:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return y}));var r,a,o=n(17),i=n(5),l=n(2),s=n(4),c=n(1165),u=n(38),d=n(13),p=n(103),f=n(50),h=n(210),b=n.n(h),m=n(257),g=n.n(m);!function(e){e.CategoricalIndex="categorical",e.DatetimeIndex="datetime",e.Float64Index="float64",e.Int64Index="int64",e.RangeIndex="range",e.UInt64Index="uint64",e.UnicodeIndex="unicode",e.PeriodIndex="period[Q-DEC]",e.TimedeltaIndex="time"}(r||(r={})),function(e){e.BLANK="blank",e.INDEX="index",e.COLUMNS="columns",e.DATA="data"}(a||(a={}));var y=function(){function e(t){Object(l.a)(this,e),this[p.c]=!0,this._index=void 0,this._columns=void 0,this._data=void 0,this._fields=void 0,this._types=void 0,this._styler=void 0;var n=Object(c.a)(t.data),r=e.parseSchema(n),a=e.getRawColumns(r),o=n.schema.fields||[],i=e.parseIndex(n,r),s=e.parseColumns(r),u=e.parseData(n,s,a),d=e.parseTypes(n,r),f=t.styler?e.parseStyler(t.styler):void 0;this._index=i,this._columns=s,this._data=u,this._types=d,this._fields=o,this._styler=f}return Object(s.a)(e,[{key:"concatIndexes",value:function(t,n){if(0===t.length)return this._index;if(0===this._index.length)return t;if(!e.sameIndexTypes(this._types.index,n)){var a=n.map((function(t){return e.getTypeName(t)})),o=this._types.index.map((function(t){return e.getTypeName(t)}));throw new Error("\nUnsupported operation. The data passed into `add_rows()` must have the same\nindex signature as the original data.\n\nIn this case, `add_rows()` received `".concat(JSON.stringify(a),"`\nbut was expecting `").concat(JSON.stringify(o),"`.\n"))}if(0===this._types.index.length)throw new Error("There was an error while parsing index types.");if(this._types.index[0].pandas_type===r.RangeIndex){var i=this._types.index[0].meta,l=i.step,s=i.stop;t=[Object(f.range)(s,s+t[0].length*l,l)]}return Object(f.zip)(this._index,t).map((function(e){return e[0].concat(e[1])}))}},{key:"concatData",value:function(t,n){if(0===t.numCols)return this._data;if(0===this._data.numCols)return t;if(!e.sameDataTypes(this._types.data,n)){var r=n.map((function(e){return e.pandas_type})),a=this._types.data.map((function(e){return e.pandas_type}));throw new Error("\nUnsupported operation. The data passed into `add_rows()` must have the same\ndata signature as the original data.\n\nIn this case, `add_rows()` received `".concat(JSON.stringify(r),"`\nbut was expecting `").concat(JSON.stringify(a),"`.\n"))}var o=t.selectAt(Object(f.range)(0,this._data.numCols));return this._data.concat(o)}},{key:"concatTypes",value:function(e){return{index:this.concatIndexTypes(e.index),data:this.concatDataTypes(e.data)}}},{key:"concatIndexTypes",value:function(t){if(0===t.length)return this._types.index;if(0===this._types.index.length)return t;if(!e.sameIndexTypes(this._types.index,t)){var n=t.map((function(t){return e.getTypeName(t)})),a=this._types.index.map((function(t){return e.getTypeName(t)}));throw new Error("\nUnsupported operation. The data passed into `add_rows()` must have the same\nindex signature as the original data.\n\n
1In this case, `add_rows()` received `".concat(JSON.stringify(n),"`\nbut was expecting `").concat(JSON.stringify(a),"`.\n"))}return this._types.index.map((function(e){if(e.pandas_type===r.RangeIndex){var n=e.meta,a=n.stop,o=n.step,l=t[0].meta,s=l.start,c=a+(l.stop-s)/l.step*o;return Object(i.a)(Object(i.a)({},e),{},{meta:Object(i.a)(Object(i.a)({},e.meta),{},{stop:c})})}return e}))}},{key:"concatDataTypes",value:function(e){return 0===this._types.data.length?e:this._types.data}},{key:"index",get:function(){return this._index}},{key:"columns",get:function(){return this._columns}},{key:"data",get:function(){return this._data}},{key:"types",get:function(){return this._types}},{key:"cssId",get:function(){var e;if(null!=(null===(e=this._styler)||void 0===e?void 0:e.uuid))return"T_".concat(this._styler.uuid)}},{key:"cssStyles",get:function(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.styles)||void 0}},{key:"caption",get:function(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.caption)||void 0}},{key:"dimensions",get:function(){var e=this._index.length?[this._index.length,this._index[0].length]:[1,0],t=Object(o.a)(e,2),n=t[0],r=t[1],a=this._columns.length?[this._columns.length,this._columns[0].length]:[1,0],i=Object(o.a)(a,2),l=i[0],s=i[1],c=this._data.numRows?[this._data.numRows,this._data.numCols]:[0,s],u=Object(o.a)(c,2),d=u[0],p=u[1];if(0!==d&&d!==r||0!==p&&p!==s)throw new Error("Dataframe dimensions don't align: "+"rows(".concat(d," != ").concat(r,") OR ")+"cols(".concat(p," != ").concat(s,")"));return{headerRows:l,headerColumns:n,dataRows:d,dataColumns:p,rows:l+d,columns:n+p}}},{key:"isEmpty",value:function(){return 0===this._index.length&&0===this._columns.length&&0===this._data.numRows&&0===this._data.numCols}},{key:"getCell",value:function(e,t){var n,o,i=this.dimensions,l=i.headerRows,s=i.headerColumns,c=i.rows,u=i.columns;if(e<0||e>=c)throw new Error("Row index is out of range: ".concat(e));if(t<0||t>=u)throw new Error("Column index is out of range: ".concat(t));var d=e>=l&&t<s,p=e<l&&t>=s;if(e<l&&t<s){var f=["blank"];return t>0&&f.push("level".concat(e)),{type:a.BLANK,cssClass:f.join(" "),content:""}}if(d){var h,b=e-l,m=(null===(h=this._styler)||void 0===h?void 0:h.uuid)?"".concat(this.cssId,"level").concat(t,"_row").concat(b):void 0,g=["row_heading","level".concat(t),"row".concat(b)].join(" "),y=this._types.index[t],O=this.getIndexValue(b,t);return{type:a.INDEX,cssId:m,cssClass:g,content:O,contentType:y}}if(p){var w=t-s,v=["col_heading","level".concat(e),"col".concat(w)].join(" ");return{type:a.COLUMNS,cssClass:v,content:this._columns[e][w],contentType:{pandas_type:r.UnicodeIndex,numpy_type:"object"}}}
1var j=e-l,S=t-s,x=(null===(n=this._styler)||void 0===n?void 0:n.uuid)?"".concat(this.cssId,"row").concat(j,"_col").concat(S):void 0,k=["data","row".concat(j),"col".concat(S)].join(" "),P=this._types.data[S],I=this._fields[S],C=this.getDataValue(j,S),V=(null===(o=this._styler)||void 0===o?void 0:o.displayValues)?this._styler.displayValues.getCell(e,t).content:void 0;return{type:a.DATA,cssId:x,cssClass:k,content:C,contentType:P,displayContent:V,field:I}}},{key:"getIndexValue",value:function(e,t){var n=this._index[t];return n instanceof u.a?n.get(e):n[e]}},{key:"getDataValue",value:function(e,t){var n;return null===(n=this._data.getChildAt(t))||void 0===n?void 0:n.get(e)}},{key:"addRows",value:function(e){if(this._styler||e._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(e.isEmpty())return Object(p.d)(this,(function(e){return e}));if(this.isEmpty())return Object(p.d)(e,(function(e){return e}));var t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);return Object(p.d)(this,(function(e){e._index=t,e._data=n,e._types=r}))}}],[{key:"parseSchema",value:function(e){var t=e.schema.metadata.get("pandas");if(null==t)throw new Error("Table schema is missing.");return JSON.parse(t)}},{key:"getRawColumns",value:function(e){return e.columns.map((function(e){return e.field_name})).filter((function(t){return!e.index_columns.includes(t)}))}},{key:"parseIndex",value:function(t,n){return n.index_columns.map((function(n){if(e.isRangeIndex(n)){var r=n.start,a=n.stop,o=n.step;return Object(f.range)(r,a,o)}var i=t.getChild(n);return i instanceof u.a&&i.type instanceof d.u?null:i})).filter((function(e){return null!==e}))}},{key:"parseColumns",value:function(e){var t=e.column_indexes.length>1;return Object(f.unzip)(e.columns.map((function(e){return e.field_name})).filter((function(t){return!e.index_columns.includes(t)})).map((function(e){return t?JSON.parse(e.replace(/\(/g,"[").replace(/\)/g,"]").replace(/'/g,'"')):[e]})))}},{key:"parseData",value:function(e,t,n){var r=e.numRows,a=t.length>0?t[0].length:0;return 0===r||0===a?e.select([]):e.select(n)}},{key:"parseTypes",value:function(t,n){return{index:e.parseIndexType(n),data:e.parseDataType(t,n)}}},{key:"parseIndexType",value:function(t){return t.index_columns.map((function(n){if(e.isRangeIndex(n))return{pandas_type:r.RangeIndex,numpy_type:r.RangeIndex,meta:n};var a=t.columns.find((function(e){return e.field_name===n}));if(!a)throw new Error("".concat(n," index not found."));return{pandas_type:a.pandas_type,numpy_type:a.numpy_type,meta:a.metadata}}))}},{key:"parseDataType",value:function(e,t){return e.numRows>0?t.columns.filter((function(e){return!t.index_columns.includes(e.field_name)})).map((function(e){return{pandas_type:e.pandas_type,numpy_type:e.numpy_type,meta:e.metadata}})):[]}},{key:"parseStyler",value:function(t){return{uuid:t.uuid,caption:t.caption,styles:t.styles,displayValues:new e({data:t.displayValues})}}},{key:"sameIndexTypes",value:function(t,n){return t.length===n.length&&t.every((function(t,r){return r<n.length&&e.getTypeName(t)===e.getTypeName(n[r])}))}},{key:"sameDataTypes",value:function(e,t){return e.every((function(e,n){var r;return e.pandas_type===(null===(r=t[n])||void 0===r?void 0:r.pandas_type)}))}},{key:"isRangeIndex",value:function(e){return"object"===typeof e&&"range"===e.kind}},{key:"formatIntervalType",value:function(e,t){var n=t.match(/interval\[(.+), (both|left|right|neither)\]/);if(null===n)throw new Error("Invalid interval type: ".concat(t));var r=Object(o.a)(n,3),a=r[1],i=r[2];return this.formatInterval(e,a,i)}},{key:"formatInterval",value:function(t,n,r){var a=t.toJSON(),o="both"===r||"left"===r?"[":"(",i="both"===r||"right"===r?"]":")",l=e.format(a.left,{pandas_type:n,numpy_type:n}),s=e.format(a.right,{pandas_type:n,numpy_type:n});return"".concat(o+l,", ").concat(s+i)}},{key:"getTypeName",value:function(e){return"object"===e.pandas_type?e.numpy_type:e.pandas_type}},{key:"format",value:function(t,n,r){var a=n&&e.getTypeName(n);if(null==t)return"<NA>";var o=t instanceof Date||Number.isFinite(t);if(o&&"date"===a)return b.a.utc(t).format("YYYY-MM-DD");if(o&&"datetimetz"===a){var i=null===n||void 0===n?void 0:n.meta,l=b()(t);return(null===i||void 0===i?void 0:i.timezone)&&(l=b.a.tz.zone(null===i||void 0===i?void 0:i.timezone)?l.tz(null===i||void 0===i?void 0:i.timezone):l.utcOffset(null===i||void 0===i?void 0:i.timezone)),l.format("YYYY-MM-DDTHH:mm:ssZ")}if(o&&(null===a||void 0===a?void 0:a.startsWith("datetime")))return b.a.utc(t).format("YYYY-MM-DDTHH:mm:ss");if(null===a||void 0===a?void 0:a.startsWith("interval"))return e.formatIntervalType(t,a);if("categorical"===a){if("pandas.interval"===(null===r||void 0===r?void 0:r.metadata.get("ARROW:extension:name"))){var s=JSON.parse(null===r||void 0===r?void 0:r.metadata.get("ARROW:extension:metadata")),c=s.subtype,u=s.closed;return e.formatInterval(t,c,u)}return String(t)}return"object"===a||(null===a||void 0===a?void 0:a.startsWith("list"))?JSON.stringify(t,(function(e,t){return"bigint"===typeof t?Number(t):t})):"float64"===a&&Number.isFinite(t)?g()(t).format("0,0.0000"):String(t)}}]),e}()},138:function(e,t,n){"use strict";n(31);var r=n(84),a={halfSmFont:"".concat(r.a.smPx/2,"px"),twoThirdsSmFont:"".concat(2*r.a.smPx/3,"px"),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",nonePx:0,threeXSPx:2,twoXSPx:4,xsPx:6,smPx:8,mdPx:12,lgPx:16,xlPx:20,twoXLPx:24,threeXLPx:32,fourXLPx:64},o=1e6,i=1000050,l={hide:-1,auto:"auto",base:0,sidebar:100,menuButton:110,balloons:o,header:999990,sidebarMobile:999995,popupMenu:1000040,fullscreenWrapper:i,tablePortal:1000110},s=n(99),c=n(289);t.a={inSidebar:!1,breakpoints:{sm:"576px",columns:"640px",md:"768px",lg:"1024px",xl:"1280px"},colors:Object(s.e)(c.a),genericColors:c.a,fonts:r.c,fontSizes:r.a,fontWeights:r.b,genericFonts:r.d,iconSizes:{xs:"0.5rem",sm:"0.75rem",md:"0.9rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},lineHeights:r.f,letterSpacings:r.e,radii:{none:"0",sm:"0.125rem",md:"0.25rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},sizes:{full:"100%",headerHeight:"2.875rem",sidebarTopSpace:"4rem",sidebar:"21rem",contentMaxWidth:"46rem",footerHeight:"2.5rem"},spacing:a,zIndices:l}},148:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var r=n(11),a=n(172),o=n(26),i=Object(r.a)("span",{shouldForwardProp:function(e){return Object(a.a)(e)&&!["size","as"].includes(e)},target:"e1fb0mya1"})((function(e){var t=e.color,n=e.size,r=e.margin,a=e.padding,i=e.theme;return{color:i.colors[t],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:i.iconSizes[n],width:i.iconSizes[n],height:i.iconSizes[n],margin:Object(o.computeSpacingStyle)(r,i),padding:Object(o.computeSpacingStyle)(a,i)}}),""),l=Object(r.a)("span",{target:"e1fb0mya0"})((function(e){var t=e.size,n=e.margin,r=e.padding,a=e.theme;return{display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:a.iconSizes[t],width:a.iconSizes[t],height:a.iconSizes[t],margin:Object(o.computeSpacingStyle)(n,a),padding:Object(o.computeSpacingStyle)(r,a)}}),"")},149:function(e,t,n){"use strict";var r=n(246);n.d(t,"a",(function(){return r.a}))},150:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(0);var r=n(68),a=n(11),o=Object(a.a)("pre",{target:"e13yyrnc0"})((function(e){var t=e.theme;return{padding:t.spacing.twoXS,whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:t.fontSizes.sm}}
1),""),i=n(1);var l=function(e){var t=e.name,n=e.message,a=e.stack,l=e.width,s=a?a.split("\n"):[];s.shift();var c=s.map((function(e){return e.trim()})).join("\n");return Object(i.jsxs)(r.b,{kind:r.a.ERROR,width:l,children:[Object(i.jsxs)("strong",{children:[t,": "]}),n,a?Object(i.jsx)(o,{children:Object(i.jsx)("code",{children:c})}):null]})}},157:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(2),a=n(4),o=n(98),i=n.n(o),l=(n(621),n(257)),s=n.n(l),c=function(){function e(t){Object(r.a)(this,e),this.millis=void 0,this.millis=t}return Object(a.a)(e,[{key:"getTime",value:function(){return this.millis}}]),e}(),u=function(){function e(){Object(r.a)(this,e)}return Object(a.a)(e,null,[{key:"nanosToDate",value:function(e){return new Date(e/1e6)}},{key:"iso8601ContainsTimezone",value:function(e){return[/[+-]\d\d\d\d$/,/[+-]\d\d$/,/[+-]\d\d:\d\d$/,/Z$/].some((function(t){return t.test(e)}))}},{key:"iso8601ToMoment",value:function(t){return e.iso8601ContainsTimezone(t)?i.a.parseZone(t):i()(t)}},{key:"nanosToDuration",value:function(e){return new c(e/1e6)}},{key:"dateToString",value:function(e){var t=i()(e),n="lll";return 0===t.hour()&&0===t.minute()&&0===t.second()&&(n="ll"),t.format(n)}},{key:"durationToString",value:function(e){var t=i.a.duration(e.getTime()).asMilliseconds();return i.a.utc(t).format()}}]),e}();function d(e){return i.a.isMoment(e)?e.format():(t=e,Number(t)===t&&t%1!==0?s()(e).format("0,0.0000"):e instanceof Date?u.dateToString(e):e instanceof c?u.durationToString(e):e.toString());var t}},170:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return O.a}));var r=n(5),a=n(79),o=n(0),i=n.n(o),l=n(114),s=n(502),c=n(65),u=n(25),d=n(11),p=n(172),f=n(69),h=Object(d.a)(f.d,{shouldForwardProp:p.a,target:"e1wbw4rs0"})((function(e){var t,n=e.theme,r=e.$isHighlighted,a=n.inSidebar?n.colors.bgColor:n.colors.secondaryBg;return t={display:"flex",alignItems:"center",paddingTop:n.spacing.none,paddingBottom:n.spacing.none,background:r?a:void 0},Object(u.a)(t,"@media (max-width: 768px)",{minHeight:"40px",height:"auto !important"}),Object(u.a)(t,"&:hover, &:active, &:focus",{background:a}),t}),""),b=n(1);function m(e){var t=e.data,n=e.index,o=e.style,i=t[n].props,l=i.item,s=(i.overrides,Object(a.a)(i,["item","overrides"]));return Object(b.jsx)(h,Object(r.a)(Object(r.a)({style:o},s),{},{children:Object(b.jsx)(c.a,{content:l.label,placement:c.b.AUTO,children:l.label})}),l.value)}var g=i.a.forwardRef((function(e,t){var n=i.a.Children.toArray(e.children);if(!n[0]||!n[0].props.item){var a=n[0]?n[0].props:{};return Object(b.jsx)(l.b,{$style:{height:"".concat(90,"px")},ref:t,children:Object(b.jsx)(l.a,Object(r.a)({},a))})}var o=Math.min(300,40*n.length);return Object(b.jsx)(l.b,{ref:t,$style:{paddingTop:0,paddingBottom:0},children:Object(b.jsx)(s.a,{width:"100%",height:o,itemCount:n.length,itemData:n,itemKey:function(e,t){return t[e].props.item.value},itemSize:40,children:m})})}));g.displayName="VirtualDropdown";var y=g,O=n(346)},173:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(338),a=n(503),o=n(250),i=n(264),l=n(99),s=Object(l.d)(o.a,r.a),c=Object(l.d)(i.a,a.a)},184:function(e,t,n){"use strict";var r=n(0),a=n.n(r);t.a=a.a.createContext(!1)},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(2),a=n(4),o=n(6),i=n(7),l=n(0),s=n.n(l),c=n(1210),u=n(497),d=n(130),p=n(131),f=n(65),h=n(24),b=n(11),m=Object(b.a)("div",{target:"e1xf8znw4"})((function(e){return{fontFamily:e.theme.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start"}}),""),g=Object(b.a)("div",{target:"e1xf8znw3"})((function(){return{div:{fontFamily:'"Source Sans Pro", sans-serif !important'}}}),""),y=Object(b.a)("div",{target:"e1xf8znw2"})((function(e){var t=e.theme;return{height:"1.8rem",borderRadius:t.radii.md,borderColor:t.colors.fadedText10,cursor:"pointer",boxShadow:"none",lineHeight:t.lineHeights.base,"&:focus":{outline:"none"},display:"flex"}}),""),O=Object(b.a)("div",{target:"e1xf8znw1"})((function(e){var t=e.theme;return{height:"1.8rem",width:"1.8rem",borderRadius:t.radii.md,borderColor:t.colors.fadedText10,borderWidth:"1px",borderStyle:"solid",padding:"2px 0.8rem",cursor:"pointer",lineHeight:t.lineHeights.base,"&:focus":{outline:"none"}}}),""),w=Object(b.a)("div",{target:"e1xf8znw0"})((function(e){e.theme;return{display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"}}),""),v=n(1),j=function(e){Object(o.a)(n,e);var t=Object(i.a)(n);function n(){var e;Object(r.a)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={value:e.props.value},e.onColorChange=function(t){e.setState({value:t.hex})},e.onColorClose=function(){e.props.onChange(e.state.value)},e}
1return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState((function(e,t){return{value:t.value}}))}},{key:"componentDidCatch",value:function(e,t){if("SecurityError"!==(null===e||void 0===e?void 0:e.name))throw e;Object(h.d)("Swallowing ColorPicker SecurityError '".concat(e.name,": ").concat(e.message,"'")),this.forceUpdate()}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.showValue,a=t.label,o=t.labelVisibility,i=t.help,l=t.disabled,s=this.state.value,h=l?"not-allowed":"default",b={width:n,cursor:h},j={cursor:h,"pointer-events":l?"none":"auto"},S={backgroundColor:s,opacity:l?"0.4":""};return Object(v.jsxs)(m,{"data-testid":"stColorPicker",style:b,children:[Object(v.jsx)(d.d,{label:a,disabled:l,labelVisibility:o,children:i&&Object(v.jsx)(d.c,{children:Object(v.jsx)(p.a,{content:i,placement:f.b.TOP_RIGHT})})}),Object(v.jsx)(c.a,{onClose:this.onColorClose,content:function(){return Object(v.jsx)(g,{children:Object(v.jsx)(u.a,{color:s,onChange:e.onColorChange,disableAlpha:!0})})},children:Object(v.jsxs)(y,{style:j,children:[Object(v.jsx)(O,{style:S}),r&&Object(v.jsx)(w,{children:s.toUpperCase()})]})})]})}}]),n}(s.a.PureComponent)},193:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return x}));var r=n(5),a=n(17),o=n(251),i=n.n(o),l=n(208),s=n(81),c=n(157),u=new Intl.Collator("en",{numeric:!1,sensitivity:"base"});function d(e,t){return e<t?-1:e>t?1:0}function p(e,t){return u.compare(e,t)}function f(e,t,n){var r=e.get("data"),o=b(r),i=Object(a.a)(o,2),l=i[0],c=i[1];if(t<0||t>=c)throw new Error("Bad sortColumnIdx ".concat(t," (should be >= 0, < ").concat(c,")"));for(var u=r.getIn(["cols",t]),f=Object(s.b)(u,"type",{strings:p,doubles:d,int64s:d,datetimes:d,timedeltas:d}),h=new Array(l),m=0;m<l;m+=1)h[m]=m;return h.sort((function(e,a){var o=y(r,t,e),i=y(r,t,a);return n?f(o,i):f(i,o)})),h}function h(e){var t=e?e.get("index"):null,n=e?e.get("data"):null,r=e?e.get("columns"):null,o=t?O(t):[0,0],i=Object(a.a)(o,2),l=i[0],s=i[1],c=r?O(r):[0,0],u=Object(a.a)(c,2),d=u[0],p=u[1],f=n?b(n):[0,p],h=Object(a.a)(f,2),m=h[0],g=h[1];if(0!==m&&m!==s||0!==g&&g!==p)throw new Error("Dataframe dimensions don't align: "+"rows(".concat(m," != ").concat(s,") OR ")+"cols(".concat(g," != ").concat(p,")"));return{headerRows:d,headerCols:l,dataRows:m,dataCols:g,cols:l+g,rows:d+m}}function b(e){if(!e||!e.get("cols"))return[0,0];var t=e.get("cols").size;return 0===t?[0,0]:[v(e.getIn(["cols",0])),t]}function m(e,t,n){var a=h(e),o=a.headerRows,l=a.headerCols,s=a.dataRows;if(t<l)return n<o?{contents:"",styles:{},type:"corner"}:{contents:w(e.get("index"),t,n-o),styles:{},type:"col-header"};if(n<o){var c={};if(s>0)"number"!==typeof g(e.get("data"),t-l,n)&&(c=Object(r.a)(Object(r.a)({},c),{},{textAlign:"left"}));
1return{contents:w(e.get("columns"),n,t-l),styles:c,type:"row-header"}}var u=function(e,t,n){if(null==e)return;var r=e.getIn(["cols",t,"styles",n],void 0);if(null==r)return;return r.get("hasDisplayValue")?r.get("displayValue"):void 0}(e.get("style"),t-l,n-o),d=g(e.get("data"),t-l,n-o),p=null!=u?u:d,f=function(e,t,n){if(null==e)return;var r=e.getIn(["cols",t,"styles",n,"css"],void 0);if(null==r)return;var a={};return r.forEach((function(e){var t=e.get("property");a[i()(t)]=e.get("value")})),a}(e.get("style"),t-l,n-o)||{};return"number"!==typeof d&&(f=Object(r.a)(Object(r.a)({},f),{},{textAlign:"left"})),{contents:p,styles:f,type:"data"}}function g(e,t,n){return j(e.getIn(["cols",t]),n)}function y(e,t,n){return S(e.getIn(["cols",t])).get(n)}function O(e){return Object(s.a)(e,"type",{plainIndex:function(e){return[1,v(e.get("data"))]},rangeIndex:function(e){return[1,e.get("stop")-e.get("start")]},multiIndex:function(e){return 0===e.get("labels").size?[0,0]:[e.get("labels").size,e.getIn(["labels",0,"data"]).size]},int_64Index:function(e){return[1,e.getIn(["data","data"]).size]},float_64Index:function(e){return[1,e.getIn(["data","data"]).size]},datetimeIndex:function(e){return[1,e.getIn(["data","data"]).size]},timedeltaIndex:function(e){return[1,e.getIn(["data","data"]).size]}})}function w(e,t,n){var r=e.get("type");if("multiIndex"!==r&&0!==t)throw new Error("Attempting to access level ".concat(t," of a ").concat(r,"."));return Object(s.a)(e,"type",{plainIndex:function(e){return j(e.get("data"),n)},rangeIndex:function(e){return e.get("start")+n},multiIndex:function(e){var r=e.getIn(["levels",t]),a=e.getIn(["labels",t]).getIn(["data",n]);return a<0?"NaN":w(r,0,a)},int_64Index:function(e){return e.getIn(["data","data",n])},float_64Index:function(e){return e.getIn(["data","data",n])},datetimeIndex:function(e){return c.a.iso8601ToMoment(e.getIn(["data","data",n]))},timedeltaIndex:function(e){return c.a.nanosToDuration(e.getIn(["data","data",n]))}})}function v(e){return S(e).size}function j(e,t){var n=function(e){return e.get("data").get(t)};return Object(s.a)(e,"type",{strings:n,doubles:n,int64s:n,datetimes:function(e){return c.a.iso8601ToMoment(n(e))},timedeltas:function(e){return c.a.nanosToDuration(n(e))}})}function S(e){var t=function(e){return e.get("data")};return Object(s.a)(e,"type",{strings:t,doubles:t,int64s:t,datetimes:t,timedeltas:t})}function x(e,t){var n,r,o=t.get("hasName")?t.get("name"):null,i=t.get("data"),c=function(e,t){if(null!=e){if(1===e.size)return[0,e.first()];var n=e.findEntry((function(e){return e.get("hasName")&&e.get("name")===t}));if(n)return n}return[-1,null]}(function(e){return Object(s.a)(e,"type",{vegaLiteChart:function(e){return e.get("datasets")},_else:function(){return null}})}(e),o),u=Object(a.a)(c,2),d=u[0],p=u[1];if(t.get("hasName")){if(!p)return function(e,t){return Object(s.d)(e,"type",{vegaLiteChart:function(e){return e.update("datasets",(function(e){return e.push(t)}))}})}(e,t);n=p.get("data")}else{var f=function(e){return Object(s.a)(e,"type",{chart:function(e){return e.get("data")},dataFrame:function(e){return e},table:function(e){return e},arrowTable:function(e){return e},deckGlMap:function(e){return e.get("data")},vegaLiteChart:function(e){return e.get("data")}})}(e);if(f)n=f;else{if(!p)return P(e,i);n=p.get("data")}}return null==n.get("data")&&(n=(n=n.set("data",Object(l.a)({cols:[]}))).set("style",Object(l.a)({cols:[]}))),r=n.get("data").get("cols").isEmpty()?i:n.update("index",(function(e){return function(e,t){if(0===I(e))return t;var n=e.get("type"),r=t.get("type");if(n!==r)throw new Error("Cannot concatenate ".concat(n," with ").concat(r,"."));return Object(s.d)(e,"type",{plainIndex:function(e){return e.update("data",(function(e){return k(e,t.getIn(["plainIndex","data"]))}))},rangeIndex:function(e){return e.update("stop",(function(e){return e+I(t)}))},int_64Index:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["int_64Index","data","data"]))}))},float_64Index:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["float_64Index","data","data"]))}))},datetimeIndex:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["datetimeIndex","data","data"]))}))},timedeltaIndex:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["timedeltaIndex","data","data"]))}))}})}(e,i.get("index"))})).updateIn(["data","cols"],(function(e){return e.zipWith((function(e,t){return k(e,t)}),i.getIn(["data","cols"]))})).updateIn(["style","cols"],(function(e){return e.zipWith((function(e,t){return function(e,t){if(0===e.get("styles").length)return t;return e.update("styles",(function(e){return e.concat(t.get("styles"))}))}(e,t)}),i.getIn(["style","cols"]))})),p?function(e,t,n){return Object(s.d)(e,"type",{vegaLiteChart:function(e){return e.setIn(["datasets",t,"data"],n)}})}(e,d,r):P(e,r)}function k(e,t){if(0===v(e))return t;var n=e.get("type"),r=t.get("type");if(n!==r)throw new Error("Cannot concatenate ".concat(n," and ").concat(r,"."));return e.updateIn([n,"data"],(function(e){return e.concat(t.getIn([r,"data"]))}))}function P(e,t){return Object(s.d)(e,"type",{chart:function(e){return e.set("data",t)},dataFrame:function(){return t},table:function(){return t},arrowTable:function(){return t},deckGlMap:function(e){return e.set("data",t)},vegaLiteChart:function(e){return e.set("data",t)}})}function I(e){return Object(s.a)(e,"type",{plainIndex:function(e){return v(e.get("data"))},rangeIndex:function(e){return e.get("stop")-e.get("start")},multiIndex:function(e){return 0===e.get("labels").size?0:e.getIn(["labels",0]).size},int_64Index:function(e){return e.getIn(["data","data"]).size},float_64Index:function(e){return e.getIn(["data","data"]).size},datetimeIndex:function(e){return e.getIn(["data","data"]).size},timedeltaIndex:function(e){return e.getIn(["data","data"]).size}}
1)}},215:function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return j}));var r=n(0),a=n(35),o=n(63),i=n(1);function l(e){var t=e.disabled,n=e.element,l=e.widgetMgr,s=e.hasInProgressUpload,c=e.width,u=n.formId,d={width:c},p="primary"===n.type?a.b.PRIMARY_FORM_SUBMIT:a.b.SECONDARY_FORM_SUBMIT;return Object(r.useEffect)((function(){return l.incrementSubmitButtonCount(u),function(){return l.decrementSubmitButtonCount(u)}}),[l,u]),Object(i.jsx)("div",{className:"row-widget stButton","data-testid":"stFormSubmitButton",style:d,children:Object(i.jsx)(a.a,{help:n.help,children:Object(i.jsx)(a.d,{kind:p,size:a.c.SMALL,disabled:t||s,onClick:function(){return l.submitForm(n)},children:Object(i.jsx)(o.a,{source:n.label,allowHTML:!1,isLabel:!0,isButton:!0})})})})}var s=n(5),c=n(11),u=Object(c.a)("div",{target:"epcbefy2"})((function(){return{display:"flex"}}),""),d=Object(c.a)("div",{target:"epcbefy1"})((function(e){var t=e.theme;return{border:"1px solid ".concat(t.colors.fadedText10),borderRadius:t.radii.md,padding:"calc(1em - 1px)"}}),""),p=Object(c.a)("div",{target:"epcbefy0"})((function(e){return{marginTop:e.theme.spacing.lg}}),"");function f(e){var t={width:e.width};return Object(i.jsx)(u,{className:"row-widget",style:t,children:Object(i.jsx)(l,Object(s.a)({},e))})}var h=n(17),b=n(149),m=n(68),g=n(48);function y(e){var t=e.formId,n=e.widgetMgr,a=e.hasSubmitButton,o=e.children,l=e.width,s=e.scriptRunState,c=e.clearOnSubmit;Object(r.useEffect)((function(){n.setFormClearOnSubmit(t,c)}),[n,t,c]);var u,f=Object(r.useState)(!1),y=Object(h.a)(f,2),O=y[0],w=y[1];return a&&O?w(!1):a||O||s!==g.a.NOT_RUNNING||w(!0),O&&(u=Object(i.jsx)(p,{children:Object(i.jsx)(b.a,{body:"**Missing Submit Button**\n\nThis form has no submit button, which means that user interactions will never be sent to your Streamlit app.\n\nTo create a submit button, use the `st.form_submit_button()` function.\n\nFor more information, refer to the [documentation for forms](https://docs.streamlit.io/library/api-reference/control-flow/st.form).",kind:m.a.ERROR,width:l})})),Object(i.jsxs)(d,{"data-testid":"stForm",children:[o,u]})}var O=n(2),w=n(4),v=n(40),j=function(){function e(){Object(O.a)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return Object(w.a)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),Object(v.k)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()},216:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(5),a=n(79),o=n(2),i=n(4),l=n(6),s=n(7),c=n(0),u=n(107),d=n.n(u),p=n(71),f=n(1201),h=n(1202),b=n(57),m=n(78),g=n(25),y=n(11),O=Object(y.a)("button",{target:"e19lei0e1"})((function(e){var t=e.isExpanded,n=e.theme,a=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:n.colors.lightenedBg05};return Object(r.a)(Object(r.a)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:n.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:n.colors.fadedText60,borderRadius:"50%"},a),{},{"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:n.colors.bodyText,transition:"none"}})}),""),w=Object(y.a)("div",{target:"e19lei0e0"})((function(e){var t=e.theme,n=e.isExpanded;return Object(r.a)({"&:hover":Object(g.a)({},O,{opacity:1,transform:"scale(1)",transition:"none"})},n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.headerHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{})}),""),v=n(1),j=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e){var a;return Object(o.a)(this,n),(a=t.call(this,e)).controlKeys=function(e){var t=a.state.expanded;
127===e.keyCode&&t&&a.zoomOut()},a.zoomIn=function(){document.body.style.overflow="hidden",a.context.setFullScreen(!0),a.setState({expanded:!0})},a.zoomOut=function(){document.body.style.overflow="unset",a.context.setFullScreen(!1),a.setState({expanded:!1})},a.convertScssRemValueToPixels=function(e){return parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize)},a.getWindowDimensions=function(){var e=a.convertScssRemValueToPixels(a.props.theme.spacing.md),t=a.convertScssRemValueToPixels(a.props.theme.sizes.headerHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},a.updateWindowDimensions=function(){a.setState(a.getWindowDimensions())},a.state=Object(r.a)({expanded:!1},a.getWindowDimensions()),a}return Object(i.a)(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}},{key:"render",value:function(){var e=this.state,t=e.expanded,n=e.fullWidth,r=e.fullHeight,a=this.props,o=a.children,i=a.width,l=a.height,s=f.a,c=this.zoomIn,u="View fullscreen";return t&&(s=h.a,c=this.zoomOut,u="Exit fullscreen"),Object(v.jsxs)(w,{isExpanded:t,children:[Object(v.jsx)(O,{onClick:c,title:u,isExpanded:t,children:Object(v.jsx)(b.b,{content:s})}),o(t?{width:n,height:r,expanded:t}:{width:i,height:l,expanded:t})]})}}]),n}(c.PureComponent);j.contextType=m.a,j.isFullScreen=!1;var S=Object(p.d)(j);var x=function(e){var t=function(t){Object(l.a)(c,t);var n=Object(s.a)(c);function c(){return Object(o.a)(this,c),n.apply(this,arguments)}return Object(i.a)(c,[{key:"render",value:function(){var t=this.props,n=t.width,o=t.height,i=Object(a.a)(t,["width","height"]);return Object(v.jsx)(S,{width:n,height:o,children:function(t){var n=t.width,a=t.height,o=t.expanded;return Object(v.jsx)(e,Object(r.a)({width:n,height:a,isFullScreen:o},i))}})}}]),c}(c.PureComponent);return t.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),d()(t,e)}},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"t",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"r",(function(){return f})),n.d(t,"v",(function(){return h})),n.d(t,"h",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return j})),n.d(t,"n",(function(){return S})),n.d(t,"e",(function(){return x})),n.d(t,"o",(function(){return k})),n.d(t,"p",(function(){return P})),n.d(t,"q",(function(){return I})),n.d(t,"s",(function(){return C})),n.d(t,"u",(function(){return V})),n.d(t,"w",(function(){return T})),n.d(t,"y",(function(){return E})),n.d(t,"x",(function(){return A})),n.d(t,"z",(function(){return l}));var r=n(14),a=r.Reader,o=r.Writer,i=r.util,l=r.roots.default||(r.roots.default={}),s=l.Alert=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.format=0,e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Alert;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;case 3:r.icon=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.format&&e.hasOwnProperty("format"))switch(e.format){default:return"format: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.icon&&e.hasOwnProperty("icon")&&!i.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.Alert)return e;var t=new l.Alert;switch(null!=e.body&&(t.body=String(e.body)),e.format){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}return null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0,n.icon=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.format&&e.hasOwnProperty("format")&&(n.format=t.enums===String?l.Alert.Format[e.format]:e.format),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Format=function(){var e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="ERROR"]=1,t[e[2]="WARNING"]=2,t[e[3]="INFO"]=3,t[e[4]="SUCCESS"]=4,t}(),e}(),c=(l.AppPage=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageScriptHash="",e.prototype.pageName="",e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.AppPage;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pageScriptHash=e.string();break;case 2:r.pageName=e.string();break;case 3:r.icon=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!i.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!i.isString(e.pageName)?"pageName: string expected":null!=e.icon&&e.hasOwnProperty("icon")&&!i.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.AppPage)return e;var t=new l.AppPage;return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.pageScriptHash="",n.pageName="",n.icon=""),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Arrow=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.newBuffer([]),e.prototype.styler=null,e.prototype.width=0,e.prototype.height=0,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.Styler.encode(e.styler,t.uint32(18).fork()).ldelim(),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Arrow;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=e.bytes();break;case 2:r.styler=l.Styler.decode(e,e.uint32());break;case 3:r.width=e.uint32();break;case 4:r.height=e.uint32();break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||i.isString(e.data)))return"data: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){var t=l.Styler.verify(e.styler);if(t)return"styler."+t}return null!=e.width&&e.hasOwnProperty("width")&&!i.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Arrow)return e;var t=new l.Arrow;if(null!=e.data&&("string"===typeof e.data?i.base64.decode(e.data,t.data=i.newBuffer(i.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".Arrow.styler: object expected");t.styler=l.Styler.fromObject(e.styler)}return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=i.newBuffer(n.data))),n.styler=null,n.width=0,n.height=0,n.useContainerWidth=!1),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?i.base64.encode(e.data,
10,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.Styler.toObject(e.styler,t)),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Styler=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=i.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Styler;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!i.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!i.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||i.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.Styler)return e;var t=new l.Styler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?i.base64.decode(e.displayValues,t.displayValues=i.newBuffer(i.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=i.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?i.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ArrowNamedDataSet=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowNamedDataSet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.Arrow.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowNamedDataSet)return e;var t=new l.ArrowNamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=l.Arrow.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ArrowVegaLiteChart=function(){function e(e){if(this.datasets=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=i.emptyArray,e.prototype.useContainerWidth=!1,e.prototype.theme="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(var n=0;n<e.datasets.length;++n)l.ArrowNamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),null!=e.theme&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowVegaLiteChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.ArrowNamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;case 6:r.theme=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!i.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.Arrow.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(var n=0;n<e.datasets.length;++n){var r=l.ArrowNamedDataSet.verify(e.datasets[n]);if(r)return"datasets."+r}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.theme&&e.hasOwnProperty("theme")&&!i.isString(e.theme)?"theme: string expected":null},e.fromObject=function(e){if(e instanceof l.ArrowVegaLiteChart)return e;var t=new l.ArrowVegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=l.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(var n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[n]=l.ArrowNamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.theme&&(t.theme=String(e.theme)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1,n.theme=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(var r=0;r<e.datasets.length;++r)n.datasets[r]=l.ArrowNamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.theme&&e.hasOwnProperty("theme")&&(n.theme=e.theme),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Audio=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Audio;e.pos<n;){var o=e.uint32();switch(o>>>3){case 5:r.url=e.string();break;case 3:r.startTime=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null!=e.startTime&&e.hasOwnProperty("startTime")&&!i.isInteger(e.startTime)?"startTime: integer expected":null},e.fromObject=function(e){if(e instanceof l.Audio)return e;var t=new l.Audio;return null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.startTime=0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.BackMsg=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopScript=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,e.prototype.debugDisconnectWebsocket=null,e.prototype.debugShutdownRuntime=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clearCache&&Object.hasOwnProperty.call(e,"clearCache")&&t.uint32(40).bool(e.clearCache),null!=e.setRunOnSave&&Object.hasOwnProperty.call(e,"setRunOnSave")&&t.uint32(48).bool(e.setRunOnSave),null!=e.stopScript&&Object.hasOwnProperty.call(e,"stopScript")&&t.uint32(56).bool(e.stopScript),null!=e.rerunScript&&Object.hasOwnProperty.call(e,"rerunScript")&&l.ClientState.encode(e.rerunScript,t.uint32(90).fork()).ldelim(),null!=e.loadGitInfo&&Object.hasOwnProperty.call(e,"loadGitInfo")&&t.uint32(96).bool(e.loadGitInfo),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugL
1astBackmsgId")&&t.uint32(106).string(e.debugLastBackmsgId),null!=e.debugDisconnectWebsocket&&Object.hasOwnProperty.call(e,"debugDisconnectWebsocket")&&t.uint32(112).bool(e.debugDisconnectWebsocket),null!=e.debugShutdownRuntime&&Object.hasOwnProperty.call(e,"debugShutdownRuntime")&&t.uint32(120).bool(e.debugShutdownRuntime),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.BackMsg;e.pos<n;){var o=e.uint32();switch(o>>>3){case 5:r.clearCache=e.bool();break;case 6:r.setRunOnSave=e.bool();break;case 7:r.stopScript=e.bool();break;case 11:r.rerunScript=l.ClientState.decode(e,e.uint32());break;case 12:r.loadGitInfo=e.bool();break;case 14:r.debugDisconnectWebsocket=e.bool();break;case 15:r.debugShutdownRuntime=e.bool();break;case 13:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(t.type=1,"boolean"!==typeof e.clearCache))return"clearCache: boolean expected";if(null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.setRunOnSave)return"setRunOnSave: boolean expected"}if(null!=e.stopScript&&e.hasOwnProperty("stopScript")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.stopScript)return"stopScript: boolean expected"}if(null!=e.rerunScript&&e.hasOwnProperty("rerunScript")){if(1===t.type)return"type: multiple values";t.type=1;var n=l.ClientState.verify(e.rerunScript);if(n)return"rerunScript."+n}if(null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.loadGitInfo)return"loadGitInfo: boolean expected"}if(null!=e.debugDisconnectWebsocket&&e.hasOwnProperty("debugDisconnectWebsocket")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.debugDisconnectWebsocket)return"debugDisconnectWebsocket: boolean expected"}if(null!=e.debugShutdownRuntime&&e.hasOwnProperty("debugShutdownRuntime")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.debugShutdownRuntime)return"debugShutdownRuntime: boolean expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!i.isString(e.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.BackMsg)return e;var t=new l.BackMsg;if(null!=e.clearCache&&(t.clearCache=Boolean(e.clearCache)),null!=e.setRunOnSave&&(t.setRunOnSave=Boolean(e.setRunOnSave)),null!=e.stopScript&&(t.stopScript=Boolean(e.stopScript)),null!=e.rerunScript){if("object"!==typeof e.rerunScript)throw TypeError(".BackMsg.rerunScript: object expected");t.rerunScript=l.ClientState.fromObject(e.rerunScript)}
1return null!=e.loadGitInfo&&(t.loadGitInfo=Boolean(e.loadGitInfo)),null!=e.debugDisconnectWebsocket&&(t.debugDisconnectWebsocket=Boolean(e.debugDisconnectWebsocket)),null!=e.debugShutdownRuntime&&(t.debugShutdownRuntime=Boolean(e.debugShutdownRuntime)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.debugLastBackmsgId=""),null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(n.clearCache=e.clearCache,t.oneofs&&(n.type="clearCache")),null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")&&(n.setRunOnSave=e.setRunOnSave,t.oneofs&&(n.type="setRunOnSave")),null!=e.stopScript&&e.hasOwnProperty("stopScript")&&(n.stopScript=e.stopScript,t.oneofs&&(n.type="stopScript")),null!=e.rerunScript&&e.hasOwnProperty("rerunScript")&&(n.rerunScript=l.ClientState.toObject(e.rerunScript,t),t.oneofs&&(n.type="rerunScript")),null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")&&(n.loadGitInfo=e.loadGitInfo,t.oneofs&&(n.type="loadGitInfo")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),null!=e.debugDisconnectWebsocket&&e.hasOwnProperty("debugDisconnectWebsocket")&&(n.debugDisconnectWebsocket=e.debugDisconnectWebsocket,t.oneofs&&(n.type="debugDisconnectWebsocket")),null!=e.debugShutdownRuntime&&e.hasOwnProperty("debugShutdownRuntime")&&(n.debugShutdownRuntime=e.debugShutdownRuntime,t.oneofs&&(n.type="debugShutdownRuntime")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),u=(l.Balloons=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Balloons;e.pos<n;){var o=e.uint32();switch(o>>>3){case 3:r.show=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Balloons)return e;var t=new l.Balloons;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Block=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.vertical=null,e.prototype.horizontal=null,e.prototype.column=null,e.prototype.expandable=null,e.prototype.form=null,e.prototype.tabContainer=null,e.prototype.tab=null,e.prototype.allowEmpty=!1,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["vertical","horizontal","column","expandable","form","tabContainer","tab"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.vertical&&Object.hasOwnProperty.call(e,"vertical")&&l.Block.Vertical.encode(e.vertical,t.uint32(10).fork()).ldelim(),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&l.Block.Horizontal.encode(e.horizontal,t.uint32(18).fork()).ldelim(),null!=e.column&&Object.hasOwnProperty.call(e,"column")&&l.Block.Column.encode(e.column,t.uint32(26).fork()).ldelim(),null!=e.expandable&&Object.hasOwnProperty.call(e,"expandable")&&l.Block.Expandable.encode(e.expandable,t.uint32(34).fork()).ldelim(),null!=e.form&&Object.hasOwnProperty.call(e,"form")&&l.Block.Form.encode(e.form,t.uint32(42).fork()).ldelim(),null!=e.tabContainer&&Object.hasOwnProperty.call(e,"tabContainer")&&l.Block.TabContainer.encode(e.tabContainer,t.uint32(50).fork()).ldelim(),null!=e.tab&&Object.hasOwnProperty.call(e,"tab")&&l.Block.Tab.encode(e.tab,t.uint32(58).fork()).ldelim(),null!=e.allowEmpty&&Object.hasOwnProperty.call(e,"allowEmpty")&&t.uint32(64).bool(e.allowEmpty),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.vertical=l.Block.Vertical.decode(e,e.uint32());break;case 2:r.horizontal=l.Block.Horizontal.decode(e,e.uint32());break;case 3:r.column=l.Block.Column.decode(e,e.uint32());break;case 4:r.expandable=l.Block.Expandable.decode(e,e.uint32());break;case 5:r.form=l.Block.Form.decode(e,e.uint32());break;case 6:r.tabContainer=l.Block.TabContainer.decode(e,e.uint32());break;case 7:r.tab=l.Block.Tab.decode(e,e.uint32());break;case 8:r.allowEmpty=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.vertical&&e.hasOwnProperty("vertical")){t.type=1;var n=l.Block.Vertical.verify(e.vertical);if(n)return"vertical."+n}if(null!=e.horizontal&&e.hasOwnProperty("horizontal")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Block.Horizontal.verify(e.horizontal);if(r)return"horizontal."+r}if(null!=e.column&&e.hasOwnProperty("column")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Block.Column.verify(e.column);if(a)return"column."+a}if(null!=e.expandable&&e.hasOwnProperty("expandable")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Block.Expandable.verify(e.expandable);if(o)return"expandable."+o}if(null!=e.form&&e.hasOwnProperty("form")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Block.Form.verify(e.form);if(i)return"form."+i}
1if(null!=e.tabContainer&&e.hasOwnProperty("tabContainer")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.Block.TabContainer.verify(e.tabContainer);if(s)return"tabContainer."+s}if(null!=e.tab&&e.hasOwnProperty("tab")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.Block.Tab.verify(e.tab);if(c)return"tab."+c}return null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&"boolean"!==typeof e.allowEmpty?"allowEmpty: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block)return e;var t=new l.Block;if(null!=e.vertical){if("object"!==typeof e.vertical)throw TypeError(".Block.vertical: object expected");t.vertical=l.Block.Vertical.fromObject(e.vertical)}if(null!=e.horizontal){if("object"!==typeof e.horizontal)throw TypeError(".Block.horizontal: object expected");t.horizontal=l.Block.Horizontal.fromObject(e.horizontal)}if(null!=e.column){if("object"!==typeof e.column)throw TypeError(".Block.column: object expected");t.column=l.Block.Column.fromObject(e.column)}if(null!=e.expandable){if("object"!==typeof e.expandable)throw TypeError(".Block.expandable: object expected");t.expandable=l.Block.Expandable.fromObject(e.expandable)}if(null!=e.form){if("object"!==typeof e.form)throw TypeError(".Block.form: object expected");t.form=l.Block.Form.fromObject(e.form)}if(null!=e.tabContainer){if("object"!==typeof e.tabContainer)throw TypeError(".Block.tabContainer: object expected");t.tabContainer=l.Block.TabContainer.fromObject(e.tabContainer)}if(null!=e.tab){if("object"!==typeof e.tab)throw TypeError(".Block.tab: object expected");t.tab=l.Block.Tab.fromObject(e.tab)}return null!=e.allowEmpty&&(t.allowEmpty=Boolean(e.allowEmpty)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.allowEmpty=!1),null!=e.vertical&&e.hasOwnProperty("vertical")&&(n.vertical=l.Block.Vertical.toObject(e.vertical,t),t.oneofs&&(n.type="vertical")),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=l.Block.Horizontal.toObject(e.horizontal,t),t.oneofs&&(n.type="horizontal")),null!=e.column&&e.hasOwnProperty("column")&&(n.column=l.Block.Column.toObject(e.column,t),t.oneofs&&(n.type="column")),null!=e.expandable&&e.hasOwnProperty("expandable")&&(n.expandable=l.Block.Expandable.toObject(e.expandable,t),t.oneofs&&(n.type="expandable")),null!=e.form&&e.hasOwnProperty("form")&&(n.form=l.Block.Form.toObject(e.form,t),t.oneofs&&(n.type="form")),null!=e.tabContainer&&e.hasOwnProperty("tabContainer")&&(n.tabContainer=l.Block.TabContainer.toObject(e.tabContainer,t),t.oneofs&&(n.type="tabContainer")),null!=e.tab&&e.hasOwnProperty("tab")&&(n.tab=l.Block.Tab.toObject(e.tab,t),t.oneofs&&(n.type="tab")),null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&(n.allowEmpty=e.allowEmpty),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Vertical=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Vertical;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.Vertical?e:new l.Block.Vertical},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Horizontal=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(10).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Horizontal;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.gap=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gap&&e.hasOwnProperty("gap")&&!i.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Horizontal)return e;var t=new l.Block.Horizontal;return null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.gap=""),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Column=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.weight=0,e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.weight&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(9).double(e.weight),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(18).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Column;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.weight=e.double();break;case 2:r.gap=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.weight&&e.hasOwnProperty("weight")&&"number"!==typeof e.weight?"weight: number expected":null!=e.gap&&e.hasOwnProperty("gap")&&!i.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Column)return e;var t=new l.Block.Column;return null!=e.weight&&(t.weight=Number(e.weight)),null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.weight=0,n.gap=""),null!=e.weight&&e.hasOwnProperty("weight")&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Expandable=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Expandable;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.label=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Expandable)return e;var t=new l.Block.Expandable;return null!=e.label&&(t.label=String(e.label)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.label="",n.expanded=!1),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Form=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(10).string(e.formId),null!=e.clearOnSubmit&&Object.hasOwnProperty.call(e,"clearOnSubmit")&&t.uint32(16).bool(e.clearOnSubmit),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Form;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.formId=e.string();break;case 2:r.clearOnSubmit=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&"boolean"!==typeof e.clearOnSubmit?"clearOnSubmit: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Form)return e;var t=new l.Block.Form;return null!=e.formId&&(t.formId=String(e.formId)),null!=e.clearOnSubmit&&(t.clearOnSubmit=Boolean(e.clearOnSubmit)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.formId="",n.clearOnSubmit=!1),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&(n.clearOnSubmit=e.clearOnSubmit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TabContainer=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.TabContainer;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.TabContainer?e:new l.Block.TabContainer},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Tab=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Tab;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.label=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Tab)return e;var t=new l.Block.Tab;return null!=e.label&&(t.label=String(e.label)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.label=""),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}()),d=(l.BokehChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.figure="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)}
1,e.encode=function(e,t){return t||(t=o.create()),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&t.uint32(10).string(e.figure),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(16).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(26).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.BokehChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.figure=e.string();break;case 2:r.useContainerWidth=e.bool();break;case 3:r.elementId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.figure&&e.hasOwnProperty("figure")&&!i.isString(e.figure)?"figure: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!i.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.BokehChart)return e;var t=new l.BokehChart;return null!=e.figure&&(t.figure=String(e.figure)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.figure="",n.useContainerWidth=!1,n.elementId=""),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=e.figure),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Button=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.isFormSubmitter=!1,e.prototype.type="",e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.isFormSubmitter&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Button;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.isFormSubmitter=e.bool();break;case 7:r.type=e.string();break;case 8:r.disabled=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&"boolean"!==typeof e.isFormSubmitter?"isFormSubmitter: boolean expected":null!=e.type&&e.hasOwnProperty("type")&&!i.isString(e.type)?"type: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Button)return e;var t=new l.Button;
1return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.isFormSubmitter&&(t.isFormSubmitter=Boolean(e.isFormSubmitter)),null!=e.type&&(t.type=String(e.type)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.isFormSubmitter=!1,n.type="",n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&(n.isFormSubmitter=e.isFormSubmitter),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CameraInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CameraInput;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.help=e.string();break;case 4:r.formId=e.string();break;case 5:r.disabled=e.bool();break;case 6:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.CameraInput)return e;var t=new l.CameraInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Checkbox=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=!1,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Checkbox;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.bool();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default)return"default: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&"boolean"!==typeof e.value)return"value: boolean expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Checkbox)return e;var t=new l.Checkbox;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=Boolean(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Checkbox.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.value=!1,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ClientState=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.prototype.widgetStates=null,e.prototype.pageScriptHash="",e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),null!=e.widgetStates&&Object.hasOwnProperty.call(e,"widgetStates")&&l.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ClientState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.queryString=e.string();break;case 2:r.widgetStates=l.WidgetStates.decode(e,e.uint32());break;case 3:r.pageScriptHash=e.string();break;case 4:r.pageName=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.queryString&&e.hasOwnProperty("queryString")&&!i.isString(e.queryString))return"queryString: string expected";if(null!=e.widgetStates&&e.hasOwnProperty("widgetStates")){var t=l.WidgetStates.verify(e.widgetStates);if(t)return"widgetStates."+t}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!i.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!i.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.ClientState)return e;var t=new l.ClientState;if(null!=e.queryString&&(t.queryString=String(e.queryString)),null!=e.widgetStates){if("object"!==typeof e.widgetStates)throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=l.WidgetStates.fromObject(e.widgetStates)}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.queryString="",n.widgetStates=null,n.pageScriptHash="",n.pageName=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),null!=e.widgetStates&&e.hasOwnProperty("widgetStates")&&(n.widgetStates=l.WidgetStates.toObject(e.widgetStates,t)),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ColorPicker=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ColorPicker;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.ColorPicker)return e;var t=new l.ColorPicker;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.StringArray=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length)for(var n=0;n<e.data.length;++n)t.uint32(10).string(e.data[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.StringArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data&&r.data.length||(r.data=[]),r.data.push(e.string());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if(!i.isString(e.data[t]))return"data: string[] expected"}return null},e.fromObject=function(e){if(e instanceof l.StringArray)return e;var t=new l.StringArray;
1if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)t.data[n]=String(e.data[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)n.data[r]=e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),p=l.DoubleArray=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(var n=0;n<e.data.length;++n)t.double(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DoubleArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.data.push(e.double());else r.data.push(e.double());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if("number"!==typeof e.data[t])return"data: number[] expected"}return null},e.fromObject=function(e){if(e instanceof l.DoubleArray)return e;var t=new l.DoubleArray;
1if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)t.data[n]=Number(e.data[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)n.data[r]=t.json&&!isFinite(e.data[r])?String(e.data[r]):e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),f=(l.Int32Array=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(var n=0;n<e.data.length;++n)t.int32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int32Array;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.data.push(e.int32());else r.data.push(e.int32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if(!i.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int32Array)return e;var t=new l.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)t.data[n]=0|e.data[n]}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)n.data[r]=e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Int64Array=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(var n=0;n<e.data.length;++n)t.int64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int64Array;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.data.push(e.int64());else r.data.push(e.int64());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if(!i.isInteger(e.data[t])&&!(e.data[t]&&i.isInteger(e.data[t].low)&&i.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int64Array)return e;var t=new l.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)i.Long?(t.data[n]=i.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new i.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?i.Long.prototype.toString.call(e.data[r]):t.longs===Number?new i.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.SInt64Array=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(var n=0;n<e.data.length;++n)t.sint64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SInt64Array;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.data.push(e.sint64());else r.data.push(e.sint64());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if(!i.isInteger(e.data[t])&&!(e.data[t]&&i.isInteger(e.data[t].low)&&i.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.SInt64Array)return e;var t=new l.SInt64Array;
1if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)i.Long?(t.data[n]=i.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new i.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?i.Long.prototype.toString.call(e.data[r]):t.longs===Number?new i.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),h=(l.UInt32Array=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(var n=0;n<e.data.length;++n)t.uint32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UInt32Array;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.data.push(e.uint32());else r.data.push(e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(var t=0;t<e.data.length;++t)if(!i.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.UInt32Array)return e;var t=new l.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(var n=0;n<e.data.length;++n)t.data[n]=e.data[n]>>>0}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r<e.data.length;++r)n.data[r]=e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.UploadedFileInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.name="",e.prototype.size=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).sint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.size&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint32(e.size),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UploadedFileInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.sint64();break;case 2:r.name=e.string();break;case 3:r.size=e.uint32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.id||!e.hasOwnProperty("id")||i.isInteger(e.id)||e.id&&i.isInteger(e.id.low)&&i.isInteger(e.id.high)?null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.size&&e.hasOwnProperty("size")&&!i.isInteger(e.size)?"size: integer expected":null:"id: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.UploadedFileInfo)return e;var t=new l.UploadedFileInfo;return null!=e.id&&(i.Long?(t.id=i.Long.fromValue(e.id)).unsigned=!1:"string"===typeof e.id?t.id=parseInt(e.id,10):"number"===typeof e.id?t.id=e.id:"object"===typeof e.id&&(t.id=new i.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber())),null!=e.name&&(t.name=String(e.name)),null!=e.size&&(t.size=e.size>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.id=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.id=t.longs===String?"0":0;n.name="",n.size=0}return null!=e.id&&e.hasOwnProperty("id")&&("number"===typeof e.id?n.id=t.longs===String?String(e.id):e.id:n.id=t.longs===String?i.Long.prototype.toString.call(e.id):t.longs===Number?new i.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber():e.id),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.size&&e.hasOwnProperty("size")&&(n.size=e.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),b=l.FileUploaderState=function(){function e(e){if(this.uploadedFileInfo=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.maxFileId=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.uploadedFileInfo=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.maxFileId&&Object.hasOwnProperty.call(e,"maxFileId")&&t.uint32(8).sint64(e.maxFileId),null!=e.uploadedFileInfo&&e.uploadedFileInfo.length)for(var n=0;n<e.uploadedFileInfo.length;++n)l.UploadedFileInfo.encode(e.uploadedFileInfo[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.FileUploaderState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.maxFileId=e.sint64();break;case 2:r.uploadedFileInfo&&r.uploadedFileInfo.length||(r.uploadedFileInfo=[]),r.uploadedFileInfo.push(l.UploadedFileInfo.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&!i.isInteger(e.maxFileId)&&!(e.maxFileId&&i.isInteger(e.maxFileId.low)&&i.isInteger(e.maxFileId.high)))return"maxFileId: integer|Long expected";if(null!=e.uploadedFileInfo&&e.hasOwnProperty("uploadedFileInfo")){if(!Array.isArray(e.uploadedFileInfo))return"uploadedFileInfo: array expected";for(var t=0;t<e.uploadedFileInfo.length;++t){var n=l.UploadedFileInfo.verify(e.uploadedFileInfo[t]);if(n)return"uploadedFileInfo."+n}}return null},e.fromObject=function(e){if(e instanceof l.FileUploaderState)return e;var t=new l.FileUploaderState;if(null!=e.maxFileId&&(i.Long?(t.maxFileId=i.Long.fromValue(e.maxFileId)).unsigned=!1:"string"===typeof e.maxFileId?t.maxFileId=parseInt(e.maxFileId,10):"number"===typeof e.maxFileId?t.maxFileId=e.maxFileId:"object"===typeof e.maxFileId&&(t.maxFileId=new i.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(var n=0;n<e.uploadedFileInfo.length;++n){if("object"!==typeof e.uploadedFileInfo[n])throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[n]=l.UploadedFileInfo.fromObject(e.uploadedFileInfo[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uploadedFileInfo=[]),t.defaults)if(i.Long){var r=new i.Long(0,0,!1);n.maxFileId=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.maxFileId=t.longs===String?"0":0;
1if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&("number"===typeof e.maxFileId?n.maxFileId=t.longs===String?String(e.maxFileId):e.maxFileId:n.maxFileId=t.longs===String?i.Long.prototype.toString.call(e.maxFileId):t.longs===Number?new i.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){n.uploadedFileInfo=[];for(var a=0;a<e.uploadedFileInfo.length;++a)n.uploadedFileInfo[a]=l.UploadedFileInfo.toObject(e.uploadedFileInfo[a],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),m=(l.ComponentInstance=function(){function e(e){if(this.specialArgs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.jsonArgs="",e.prototype.specialArgs=i.emptyArray,e.prototype.componentName="",e.prototype.url="",e.prototype.formId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.jsonArgs&&Object.hasOwnProperty.call(e,"jsonArgs")&&t.uint32(18).string(e.jsonArgs),null!=e.specialArgs&&e.specialArgs.length)for(var n=0;n<e.specialArgs.length;++n)l.SpecialArg.encode(e.specialArgs[n],t.uint32(26).fork()).ldelim();return null!=e.componentName&&Object.hasOwnProperty.call(e,"componentName")&&t.uint32(34).string(e.componentName),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ComponentInstance;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.jsonArgs=e.string();break;case 3:r.specialArgs&&r.specialArgs.length||(r.specialArgs=[]),r.specialArgs.push(l.SpecialArg.decode(e,e.uint32()));break;case 4:r.componentName=e.string();break;case 5:r.url=e.string();break;case 6:r.formId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&!i.isString(e.jsonArgs))return"jsonArgs: string expected";if(null!=e.specialArgs&&e.hasOwnProperty("specialArgs")){if(!Array.isArray(e.specialArgs))return"specialArgs: array expected";for(var t=0;t<e.specialArgs.length;++t){var n=l.SpecialArg.verify(e.specialArgs[t]);if(n)return"specialArgs."+n}}return null!=e.componentName&&e.hasOwnProperty("componentName")&&!i.isString(e.componentName)?"componentName: string expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null},e.fromObject=function(e){if(e instanceof l.ComponentInstance)return e;var t=new l.ComponentInstance;if(null!=e.id&&(t.id=String(e.id)),null!=e.jsonArgs&&(t.jsonArgs=String(e.jsonArgs)),e.specialArgs){if(!Array.isArray(e.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");t.specialArgs=[];for(var n=0;n<e.specialArgs.length;++n){if("object"!==typeof e.specialArgs[n])throw TypeError(".ComponentInstance.specialArgs: object expected");t.specialArgs[n]=l.SpecialArg.fromObject(e.specialArgs[n])}}return null!=e.componentName&&(t.componentName=String(e.componentName)),null!=e.url&&(t.url=String(e.url)),null!=e.formId&&(t.formId=String(e.formId)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.specialArgs=[]),t.defaults&&(n.id="",n.jsonArgs="",n.componentName="",n.url="",n.formId=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&(n.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){n.specialArgs=[];for(var r=0;r<e.specialArgs.length;++r)n.specialArgs[r]=l.SpecialArg.toObject(e.specialArgs[r],t)}return null!=e.componentName&&e.hasOwnProperty("componentName")&&(n.componentName=e.componentName),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.SpecialArg=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.key="",e.prototype.arrowDataframe=null,e.prototype.bytes=null,Object.defineProperty(e.prototype,"value",{get:i.oneOfGetter(t=["arrowDataframe","bytes"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.arrowDataframe&&Object.hasOwnProperty.call(e,"arrowDataframe")&&l.ArrowDataframe.encode(e.arrowDataframe,t.uint32(18).fork()).ldelim(),null!=e.bytes&&Object.hasOwnProperty.call(e,"bytes")&&t.uint32(26).bytes(e.bytes),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SpecialArg;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.string();break;case 2:r.arrowDataframe=l.ArrowDataframe.decode(e,e.uint32());break;case 3:r.bytes=e.bytes();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.key&&e.hasOwnProperty("key")&&!i.isString(e.key))return"key: string expected";if(null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")){t.value=1;var n=l.ArrowDataframe.verify(e.arrowDataframe);if(n)return"arrowDataframe."+n}if(null!=e.bytes&&e.hasOwnProperty("bytes")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytes&&"number"===typeof e.bytes.length||i.isString(e.bytes)))return"bytes: buffer expected"}return null},e.fromObject=function(e){if(e instanceof l.SpecialArg)return e;var t=new l.SpecialArg;if(null!=e.key&&(t.key=String(e.key)),null!=e.arrowDataframe){if("object"!==typeof e.arrowDataframe)throw TypeError(".SpecialArg.arrowDataframe: object expected");t.arrowDataframe=l.ArrowDataframe.fromObject(e.arrowDataframe)}return null!=e.bytes&&("string"===typeof e.bytes?i.base64.decode(e.bytes,t.bytes=i.newBuffer(i.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key=""),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")&&(n.arrowDataframe=l.ArrowDataframe.toObject(e.arrowDataframe,t),t.oneofs&&(n.value="arrowDataframe")),null!=e.bytes&&e.hasOwnProperty("bytes")&&(n.bytes=t.bytes===String?i.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(n.value="bytes")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ArrowDataframe=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.height=0,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowDataframe;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.ArrowTable.decode(e,e.uint32());break;case 2:r.height=e.uint32();break;case 3:r.width=e.uint32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.ArrowTable.verify(e.data);if(t)return"data."+t}return null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null!=e.width&&e.hasOwnProperty("width")&&!i.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowDataframe)return e;var t=new l.ArrowDataframe;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowDataframe.data: object expected");t.data=l.ArrowTable.fromObject(e.data)}return null!=e.height&&(t.height=e.height>>>0),null!=e.width&&(t.width=e.width>>>0),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null,n.height=0,n.width=0),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.ArrowTable.toObject(e.data,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),g=(l.ArrowTable=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=i.newBuffer([]),e.prototype.index=i.newBuffer([]),e.prototype.columns=i.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowTable;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=e.bytes();break;case 2:r.index=e.bytes();break;case 3:r.columns=e.bytes();break;case 5:r.styler=l.ArrowTableStyler.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||i.isString(e.data)))return"data: buffer expected";if(null!=e.index&&e.hasOwnProperty("index")&&!(e.index&&"number"===typeof e.index.length||i.isString(e.index)))return"index: buffer expected";if(null!=e.columns&&e.hasOwnProperty("columns")&&!(e.columns&&"number"===typeof e.columns.length||i.isString(e.columns)))return"columns: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){var t=l.ArrowTableStyler.verify(e.styler);if(t)return"styler."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowTable)return e;var t=new l.ArrowTable;if(null!=e.data&&("string"===typeof e.data?i.base64.decode(e.data,t.data=i.newBuffer(i.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.index&&("string"===typeof e.index?i.base64.decode(e.index,t.index=i.newBuffer(i.base64.length(e.index)),0):e.index.length&&(t.index=e.index)),null!=e.columns&&("string"===typeof e.columns?i.base64.decode(e.columns,t.columns=i.newBuffer(i.base64.length(e.columns)),0):e.columns.length&&(t.columns=e.columns)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".ArrowTable.styler: object expected");t.styler=l.ArrowTableStyler.fromObject(e.styler)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=i.newBuffer(n.data))),t.bytes===String?n.index="":(n.index=[],t.bytes!==Array&&(n.index=i.newBuffer(n.index))),t.bytes===String?n.columns="":(n.columns=[],t.bytes!==Array&&(n.columns=i.newBuffer(n.columns))),n.styler=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?i.base64.encode(e.data,
10,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.index&&e.hasOwnProperty("index")&&(n.index=t.bytes===String?i.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=t.bytes===String?i.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.ArrowTableStyler.toObject(e.styler,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ArrowTableStyler=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=i.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowTableStyler;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!i.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!i.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||i.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowTableStyler)return e;var t=new l.ArrowTableStyler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?i.base64.decode(e.displayValues,t.displayValues=i.newBuffer(i.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=i.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?i.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DataFrame=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.index=null,e.prototype.columns=null,e.prototype.style=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Table.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&l.Index.encode(e.index,t.uint32(18).fork()).ldelim(),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&l.Index.encode(e.columns,t.uint32(26).fork()).ldelim(),null!=e.style&&Object.hasOwnProperty.call(e,"style")&&l.TableStyle.encode(e.style,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DataFrame;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.Table.decode(e,e.uint32());break;case 2:r.index=l.Index.decode(e,e.uint32());break;case 3:r.columns=l.Index.decode(e,e.uint32());break;case 4:r.style=l.TableStyle.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.Table.verify(e.data);if(t)return"data."+t}if(null!=e.index&&e.hasOwnProperty("index")){var n=l.Index.verify(e.index);if(n)return"index."+n}if(null!=e.columns&&e.hasOwnProperty("columns")){var r=l.Index.verify(e.columns);if(r)return"columns."+r}if(null!=e.style&&e.hasOwnProperty("style")){var a=l.TableStyle.verify(e.style);if(a)return"style."+a}return null},e.fromObject=function(e){if(e instanceof l.DataFrame)return e;var t=new l.DataFrame;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DataFrame.data: object expected");t.data=l.Table.fromObject(e.data)}if(null!=e.index){if("object"!==typeof e.index)throw TypeError(".DataFrame.index: object expected");t.index=l.Index.fromObject(e.index)}if(null!=e.columns){if("object"!==typeof e.columns)throw TypeError(".DataFrame.columns: object expected");t.columns=l.Index.fromObject(e.columns)}if(null!=e.style){if("object"!==typeof e.style)throw TypeError(".DataFrame.style: object expected");t.style=l.TableStyle.fromObject(e.style)}
1return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null,n.index=null,n.columns=null,n.style=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Table.toObject(e.data,t)),null!=e.index&&e.hasOwnProperty("index")&&(n.index=l.Index.toObject(e.index,t)),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=l.Index.toObject(e.columns,t)),null!=e.style&&e.hasOwnProperty("style")&&(n.style=l.TableStyle.toObject(e.style,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Index=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.plainIndex=null,e.prototype.rangeIndex=null,e.prototype.multiIndex=null,e.prototype.datetimeIndex=null,e.prototype.timedeltaIndex=null,e.prototype.int_64Index=null,e.prototype.float_64Index=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.plainIndex&&Object.hasOwnProperty.call(e,"plainIndex")&&l.PlainIndex.encode(e.plainIndex,t.uint32(10).fork()).ldelim(),null!=e.rangeIndex&&Object.hasOwnProperty.call(e,"rangeIndex")&&l.RangeIndex.encode(e.rangeIndex,t.uint32(18).fork()).ldelim(),null!=e.multiIndex&&Object.hasOwnProperty.call(e,"multiIndex")&&l.MultiIndex.encode(e.multiIndex,t.uint32(34).fork()).ldelim(),null!=e.datetimeIndex&&Object.hasOwnProperty.call(e,"datetimeIndex")&&l.DatetimeIndex.encode(e.datetimeIndex,t.uint32(50).fork()).ldelim(),null!=e.timedeltaIndex&&Object.hasOwnProperty.call(e,"timedeltaIndex")&&l.TimedeltaIndex.encode(e.timedeltaIndex,t.uint32(58).fork()).ldelim(),null!=e.int_64Index&&Object.hasOwnProperty.call(e,"int_64Index")&&l.Int64Index.encode(e.int_64Index,t.uint32(74).fork()).ldelim(),null!=e.float_64Index&&Object.hasOwnProperty.call(e,"float_64Index")&&l.Float64Index.encode(e.float_64Index,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Index;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.plainIndex=l.PlainIndex.decode(e,e.uint32());break;case 2:r.rangeIndex=l.RangeIndex.decode(e,e.uint32());break;case 4:r.multiIndex=l.MultiIndex.decode(e,e.uint32());break;case 6:r.datetimeIndex=l.DatetimeIndex.decode(e,e.uint32());break;case 7:r.timedeltaIndex=l.TimedeltaIndex.decode(e,e.uint32());break;case 9:r.int_64Index=l.Int64Index.decode(e,e.uint32());break;case 11:r.float_64Index=l.Float64Index.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.plainIndex&&e.hasOwnProperty("plainIndex")){t.type=1;var n=l.PlainIndex.verify(e.plainIndex);if(n)return"plainIndex."+n}if(null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.RangeIndex.verify(e.rangeIndex);if(r)return"rangeIndex."+r}if(null!=e.multiIndex&&e.hasOwnProperty("multiIndex")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.MultiIndex.verify(e.multiIndex);if(a)return"multiIndex."+a}if(null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.DatetimeIndex.verify(e.datetimeIndex);if(o)return"datetimeIndex."+o}if(null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.TimedeltaIndex.verify(e.timedeltaIndex);if(i)return"timedeltaIndex."+i}if(null!=e.int_64Index&&e.hasOwnProperty("int_64Index")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.Int64Index.verify(e.int_64Index);if(s)return"int_64Index."+s}if(null!=e.float_64Index&&e.hasOwnProperty("float_64Index")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.Float64Index.verify(e.float_64Index);if(c)return"float_64Index."+c}return null},e.fromObject=function(e){if(e instanceof l.Index)return e;var t=new l.Index;if(null!=e.plainIndex){if("object"!==typeof e.plainIndex)throw TypeError(".Index.plainIndex: object expected");t.plainIndex=l.PlainIndex.fromObject(e.plainIndex)}if(null!=e.rangeIndex){if("object"!==typeof e.rangeIndex)throw TypeError(".Index.rangeIndex: object expected");t.rangeIndex=l.RangeIndex.fromObject(e.rangeIndex)}if(null!=e.multiIndex){if("object"!==typeof e.multiIndex)throw TypeError(".Index.multiIndex: object expected");t.multiIndex=l.MultiIndex.fromObject(e.multiIndex)}if(null!=e.datetimeIndex){if("object"!==typeof e.datetimeIndex)throw TypeError(".Index.datetimeIndex: object expected");t.datetimeIndex=l.DatetimeIndex.fromObject(e.datetimeIndex)}if(null!=e.timedeltaIndex){if("object"!==typeof e.timedeltaIndex)throw TypeError(".Index.timedeltaIndex: object expected");t.timedeltaIndex=l.TimedeltaIndex.fromObject(e.timedeltaIndex)}if(null!=e.int_64Index){if("object"!==typeof e.int_64Index)throw TypeError(".Index.int_64Index: object expected");t.int_64Index=l.Int64Index.fromObject(e.int_64Index)}if(null!=e.float_64Index){if("object"!==typeof e.float_64Index)throw TypeError(".Index.float_64Index: object expected");t.float_64Index=l.Float64Index.fromObject(e.float_64Index)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.plainIndex&&e.hasOwnProperty("plainIndex")&&(n.plainIndex=l.PlainIndex.toObject(e.plainIndex,t),t.oneofs&&(n.type="plainIndex")),null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")&&(n.rangeIndex=l.RangeIndex.toObject(e.rangeIndex,t),t.oneofs&&(n.type="rangeIndex")),null!=e.multiIndex&&e.hasOwnProperty("multiIndex")&&(n.multiIndex=l.MultiIndex.toObject(e.multiIndex,t),t.oneofs&&(n.type="multiIndex")),null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")&&(n.datetimeIndex=l.DatetimeIndex.toObject(e.datetimeIndex,t),t.oneofs&&(n.type="datetimeIndex")),null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")&&(n.timedeltaIndex=l.TimedeltaIndex.toObject(e.timedeltaIndex,t),t.oneofs&&(n.type="timedeltaIndex")),null!=e.int_64Index&&e.hasOwnProperty("int_64Index")&&(n.int_64Index=l.Int64Index.toObject(e.int_64Index,t),t.oneofs&&(n.type="int_64Index")),null!=e.float_64Index&&e.hasOwnProperty("float_64Index")&&(n.float_64Index=l.Float64Index.toObject(e.float_64Index,t),t.oneofs&&(n.type="float_64Index")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.PlainIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.AnyArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PlainIndex;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.AnyArray.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.AnyArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.PlainIndex)return e;var t=new l.PlainIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".PlainIndex.data: object expected");t.data=l.AnyArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.AnyArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.RangeIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.stop=i.Long?i.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int64(e.start),null!=e.stop&&Object.hasOwnProperty.call(e,"stop")&&t.uint32(16).int64(e.stop),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.RangeIndex;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.start=e.int64();break;case 2:r.stop=e.int64();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.start||!e.hasOwnProperty("start")||i.isInteger(e.start)||e.start&&i.isInteger(e.start.low)&&i.isInteger(e.start.high)?null==e.stop||!e.hasOwnProperty("stop")||i.isInteger(e.stop)||e.stop&&i.isInteger(e.stop.low)&&i.isInteger(e.stop.high)?null:"stop: integer|Long expected":"start: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.RangeIndex)return e;var t=new l.RangeIndex;return null!=e.start&&(i.Long?(t.start=i.Long.fromValue(e.start)).unsigned=!1:"string"===typeof e.start?t.start=parseInt(e.start,10):"number"===typeof e.start?t.start=e.start:"object"===typeof e.start&&(t.start=new i.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),null!=e.stop&&(i.Long?(t.stop=i.Long.fromValue(e.stop)).unsigned=!1:"string"===typeof e.stop?t.stop=parseInt(e.stop,10):"number"===typeof e.stop?t.stop=e.stop:"object"===typeof e.stop&&(t.stop=new i.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.start=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.start=t.longs===String?"0":0;
vendor: 11,385 bytes, line 1
1if(i.Long){var a=new i.Long(0,0,!1);n.stop=t.longs===String?a.toString():t.longs===Number?a.toNumber():a}else n.stop=t.longs===String?"0":0}return null!=e.start&&e.hasOwnProperty("start")&&("number"===typeof e.start?n.start=t.longs===String?String(e.start):e.start:n.start=t.longs===String?i.Long.prototype.toString.call(e.start):t.longs===Number?new i.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber():e.start),null!=e.stop&&e.hasOwnProperty("stop")&&("number"===typeof e.stop?n.stop=t.longs===String?String(e.stop):e.stop:n.stop=t.longs===String?i.Long.prototype.toString.call(e.stop):t.longs===Number?new i.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber():e.stop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.MultiIndex=function(){function e(e){if(this.levels=[],this.labels=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.levels=i.emptyArray,e.prototype.labels=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.levels&&e.levels.length)for(var n=0;n<e.levels.length;++n)l.Index.encode(e.levels[n],t.uint32(10).fork()).ldelim();if(null!=e.labels&&e.labels.length)for(var r=0;r<e.labels.length;++r)l.Int32Array.encode(e.labels[r],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.MultiIndex;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.levels&&r.levels.length||(r.levels=[]),r.levels.push(l.Index.decode(e,e.uint32()));break;case 2:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.Int32Array.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.levels&&e.hasOwnProperty("levels")){if(!Array.isArray(e.levels))return"levels: array expected";for(var t=0;t<e.levels.length;++t){var n=l.Index.verify(e.levels[t]);if(n)return"levels."+n}}if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(var r=0;r<e.labels.length;++r){var a=l.Int32Array.verify(e.labels[r]);if(a)return"labels."+a}}return null},e.fromObject=function(e){if(e instanceof l.MultiIndex)return e;var t=new l.MultiIndex;if(e.levels){if(!Array.isArray(e.levels))throw TypeError(".MultiIndex.levels: array expected");t.levels=[];for(var n=0;n<e.levels.length;++n){if("object"!==typeof e.levels[n])throw TypeError(".MultiIndex.levels: object expected");t.levels[n]=l.Index.fromObject(e.levels[n])}}if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".MultiIndex.labels: array expected");t.labels=[];for(var r=0;r<e.labels.length;++r){if("object"!==typeof e.labels[r])throw TypeError(".MultiIndex.labels: object expected");t.labels[r]=l.Int32Array.fromObject(e.labels[r])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.levels=[],n.labels=[]),e.levels&&e.levels.length){n.levels=[];for(var r=0;r<e.levels.length;++r)n.levels[r]=l.Index.toObject(e.levels[r],t)}if(e.labels&&e.labels.length){n.labels=[];for(var a=0;a<e.labels.length;++a)n.labels[a]=l.Int32Array.toObject(e.labels[a],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DatetimeIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.StringArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DatetimeIndex;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.StringArray.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.StringArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.DatetimeIndex)return e;var t=new l.DatetimeIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DatetimeIndex.data: object expected");t.data=l.StringArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.StringArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.TimedeltaIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TimedeltaIndex;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.TimedeltaIndex)return e;var t=new l.TimedeltaIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".TimedeltaIndex.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Int64Index=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int64Index;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Int64Index)return e;var t=new l.Int64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Int64Index.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Float64Index=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DoubleArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Float64Index;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.data=l.DoubleArray.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.DoubleArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Float64Index)return e;var t=new l.Float64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Float64Index.data: object expected");t.data=l.DoubleArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DoubleArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CSSStyle=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.property="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.property&&Object.hasOwnProperty.call(e,"property")&&t.uint32(10).string(e.property),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CSSStyle;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.property=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.property&&e.hasOwnProperty("property")&&!i.isString(e.property)?"property: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.CSSStyle)return e;var t=new l.CSSStyle;return null!=e.property&&(t.property=String(e.property)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.property="",n.value=""),null!=e.property&&e.hasOwnProperty("property")&&(n.property=e.property),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CellStyle=function(){function e(e){if(this.css=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.css=i.emptyArray,e.prototype.displayValue="",e.prototype.hasDisplayValue=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.css&&e.css.length)for(var n=0;n<e.css.length;++n)l.CSSStyle.encode(e.css[n],t.uint32(10).fork()).ldelim();return null!=e.displayValue&&Object.hasOwnProperty.call(e,"displayValue")&&t.uint32(18).string(e.dis
1playValue),null!=e.hasDisplayValue&&Object.hasOwnProperty.call(e,"hasDisplayValue")&&t.uint32(24).bool(e.hasDisplayValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CellStyle;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.css&&r.css.length||(r.css=[]),r.css.push(l.CSSStyle.decode(e,e.uint32()));break;case 2:r.displayValue=e.string();break;case 3:r.hasDisplayValue=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.css&&e.hasOwnProperty("css")){if(!Array.isArray(e.css))return"css: array expected";for(var t=0;t<e.css.length;++t){var n=l.CSSStyle.verify(e.css[t]);if(n)return"css."+n}}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&!i.isString(e.displayValue)?"displayValue: string expected":null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&"boolean"!==typeof e.hasDisplayValue?"hasDisplayValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.CellStyle)return e;var t=new l.CellStyle;if(e.css){if(!Array.isArray(e.css))throw TypeError(".CellStyle.css: array expected");t.css=[];for(var n=0;n<e.css.length;++n){if("object"!==typeof e.css[n])throw TypeError(".CellStyle.css: object expected");t.css[n]=l.CSSStyle.fromObject(e.css[n])}}return null!=e.displayValue&&(t.displayValue=String(e.displayValue)),null!=e.hasDisplayValue&&(t.hasDisplayValue=Boolean(e.hasDisplayValue)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.css=[]),t.defaults&&(n.displayValue="",n.hasDisplayValue=!1),e.css&&e.css.length){n.css=[];for(var r=0;r<e.css.length;++r)n.css[r]=l.CSSStyle.toObject(e.css[r],t)}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&(n.displayValue=e.displayValue),null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&(n.hasDisplayValue=e.hasDisplayValue),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CellStyleArray=function(){function e(e){if(this.styles=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.styles=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.styles&&e.styles.length)for(var n=0;n<e.styles.length;++n)l.CellStyle.encode(e.styles[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CellStyleArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.styles&&r.styles.length||(r.styles=[]),r.styles.push(l.CellStyle.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.styles&&e.hasOwnProperty("styles")){if(!Array.isArray(e.styles))return"styles: array expected";for(var t=0;t<e.styles.length;++t){var n=l.CellStyle.verify(e.styles[t]);if(n)return"styles."+n}}return null},e.fromObject=function(e){if(e instanceof l.CellStyleArray)return e;var t=new l.CellStyleArray;if(e.styles){if(!Array.isArray(e.styles))throw TypeError(".CellStyleArray.styles: array expected");t.styles=[];for(var n=0;n<e.styles.length;++n){if("object"!==typeof e.styles[n])throw TypeError(".CellStyleArray.styles: object expected");t.styles[n]=l.CellStyle.fromObject(e.styles[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.styles=[]),e.styles&&e.styles.length){n.styles=[];for(var r=0;r<e.styles.length;++r)n.styles[r]=l.CellStyle.toObject(e.styles[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.AnyArray=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.strings=null,e.prototype.doubles=null,e.prototype.int64s=null,e.prototype.datetimes=null,e.prototype.timedeltas=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["strings","doubles","int64s","datetimes","timedeltas"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.strings&&Object.hasOwnProperty.call(e,"strings")&&l.StringArray.encode(e.strings,t.uint32(10).fork()).ldelim(),null!=e.doubles&&Object.hasOwnProperty.call(e,"doubles")&&l.DoubleArray.encode(e.doubles,t.uint32(18).fork()).ldelim(),null!=e.int64s&&Object.hasOwnProperty.call(e,"int64s")&&l.Int64Array.encode(e.int64s,t.uint32(26).fork()).ldelim(),null!=e.datetimes&&Object.hasOwnProperty.call(e,"datetimes")&&l.StringArray.encode(e.datetimes,t.uint32(34).fork()).ldelim(),null!=e.timedeltas&&Object.hasOwnProperty.call(e,"timedeltas")&&l.Int64Array.encode(e.timedeltas,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.AnyArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.strings=l.StringArray.decode(e,e.uint32());break;case 2:r.doubles=l.DoubleArray.decode(e,e.uint32());break;case 3:r.int64s=l.Int64Array.decode(e,e.uint32());break;case 4:r.datetimes=l.StringArray.decode(e,e.uint32());break;case 5:r.timedeltas=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};
1if(null!=e.strings&&e.hasOwnProperty("strings")){t.type=1;var n=l.StringArray.verify(e.strings);if(n)return"strings."+n}if(null!=e.doubles&&e.hasOwnProperty("doubles")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.DoubleArray.verify(e.doubles);if(r)return"doubles."+r}if(null!=e.int64s&&e.hasOwnProperty("int64s")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Int64Array.verify(e.int64s);if(a)return"int64s."+a}if(null!=e.datetimes&&e.hasOwnProperty("datetimes")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.StringArray.verify(e.datetimes);if(o)return"datetimes."+o}if(null!=e.timedeltas&&e.hasOwnProperty("timedeltas")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Int64Array.verify(e.timedeltas);if(i)return"timedeltas."+i}return null},e.fromObject=function(e){if(e instanceof l.AnyArray)return e;var t=new l.AnyArray;if(null!=e.strings){if("object"!==typeof e.strings)throw TypeError(".AnyArray.strings: object expected");t.strings=l.StringArray.fromObject(e.strings)}if(null!=e.doubles){if("object"!==typeof e.doubles)throw TypeError(".AnyArray.doubles: object expected");t.doubles=l.DoubleArray.fromObject(e.doubles)}if(null!=e.int64s){if("object"!==typeof e.int64s)throw TypeError(".AnyArray.int64s: object expected");t.int64s=l.Int64Array.fromObject(e.int64s)}if(null!=e.datetimes){if("object"!==typeof e.datetimes)throw TypeError(".AnyArray.datetimes: object expected");t.datetimes=l.StringArray.fromObject(e.datetimes)}if(null!=e.timedeltas){if("object"!==typeof e.timedeltas)throw TypeError(".AnyArray.timedeltas: object expected");t.timedeltas=l.Int64Array.fromObject(e.timedeltas)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.strings&&e.hasOwnProperty("strings")&&(n.strings=l.StringArray.toObject(e.strings,t),t.oneofs&&(n.type="strings")),null!=e.doubles&&e.hasOwnProperty("doubles")&&(n.doubles=l.DoubleArray.toObject(e.doubles,t),t.oneofs&&(n.type="doubles")),null!=e.int64s&&e.hasOwnProperty("int64s")&&(n.int64s=l.Int64Array.toObject(e.int64s,t),t.oneofs&&(n.type="int64s")),null!=e.datetimes&&e.hasOwnProperty("datetimes")&&(n.datetimes=l.StringArray.toObject(e.datetimes,t),t.oneofs&&(n.type="datetimes")),null!=e.timedeltas&&e.hasOwnProperty("timedeltas")&&(n.timedeltas=l.Int64Array.toObject(e.timedeltas,t),t.oneofs&&(n.type="timedeltas")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Table=function(){function e(e){if(this.cols=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.cols&&e.cols.length)for(var n=0;n<e.cols.length;++n)l.AnyArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Table;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.AnyArray.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(var t=0;t<e.cols.length;++t){var n=l.AnyArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.Table)return e;var t=new l.Table;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".Table.cols: array expected");t.cols=[];for(var n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".Table.cols: object expected");t.cols[n]=l.AnyArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(var r=0;r<e.cols.length;++r)n.cols[r]=l.AnyArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.TableStyle=function(){function e(e){if(this.cols=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.cols&&e.cols.length)for(var n=0;n<e.cols.length;++n)l.CellStyleArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TableStyle;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.CellStyleArray.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(var t=0;t<e.cols.length;++t){var n=l.CellStyleArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.TableStyle)return e;var t=new l.TableStyle;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".TableStyle.cols: array expected");t.cols=[];for(var n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".TableStyle.cols: object expected");t.cols[n]=l.CellStyleArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(var r=0;r<e.cols.length;++r)n.cols[r]=l.CellStyleArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DateInput=function(){function e(e){if(this.default=[],this.value=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=i.emptyArray,e.prototype.min="",e.prototype.max="",e.prototype.isRange=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=i.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length)for(var n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),null!=e.isRange&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)t.uint32(74).string(e.value[r]);return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DateInput;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default&&r.default.length||(r.default=[]),r.default.push(e.string());break;case 4:r.min=e.string();break;case 5:r.max=e.string();break;case 6:r.isRange=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.value&&r.value.length||(r.value=[]),r.value.push(e.string());break;case 10:r.setValue=e.bool();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(var t=0;t<e.default.length;++t)if(!i.isString(e.default[t]))return"default: string[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&!i.isString(e.min))return"min: string expected";if(null!=e.max&&e.hasOwnProperty("max")&&!i.isString(e.max))return"max: string expected";if(null!=e.isRange&&e.hasOwnProperty("isRange")&&"boolean"!==typeof e.isRange)return"isRange: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var n=0;n<e.value.length;++n)if(!i.isString(e.value[n]))return"value: string[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var r=l.LabelVisibilityMessage.verify(e.labelVisibility);if(r)return"labelVisibility."+r}return null},e.fromObject=function(e){if(e instanceof l.DateInput)return e;var t=new l.DateInput;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(var n=0;n<e.default.length;++n)t.default[n]=String(e.default[n])}if(null!=e.min&&(t.min=String(e.min)),null!=e.max&&(t.max=String(e.max)),null!=e.isRange&&(t.isRange=Boolean(e.isRange)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r)t.value[r]=String(e.value[r])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.min="",n.max="",n.isRange=!1,n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(var r=0;r<e.default.length;++r)n.default[r]=e.default[r]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=e.max),null!=e.isRange&&e.hasOwnProperty("isRange")&&(n.isRange=e.isRange),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(var a=0;a<e.value.length;++a)n.value[a]=e.value[a]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DeckGlJsonChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.json="",e.prototype.tooltip="",e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),null!=e.tooltip&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DeckGlJsonChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.json=e.string();break;case 2:r.tooltip=e.string();break;case 4:r.useContainerWidth=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.json&&e.hasOwnProperty("json")&&!i.isString(e.json)?"json: string expected":null!=e.tooltip&&e.hasOwnProperty("tooltip")&&!i.isString(e.tooltip)?"tooltip: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DeckGlJsonChart)return e;var t=new l.DeckGlJsonChart;return null!=e.json&&(t.json=String(e.json)),null!=e.tooltip&&(t.tooltip=String(e.tooltip)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.json="",n.tooltip="",n.useContainerWidth=!1),null!=e.json&&e.hasOwnProperty("json")&&(n.json=e.json),null!=e.tooltip&&e.hasOwnProperty("tooltip")&&(n.tooltip=e.tooltip),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Delta=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.newElement=null,e.prototype.addBlock=null,e.prototype.addRows=null,e.prototype.arrowAddRows=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["newElement","addBlock","addRows","arrowAddRows"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.newElement&&Object.hasOwnProperty.call(e,"newElement")&&l.Element.encode(e.newElement,t.uint32(26).fork()).ldelim(),null!=e.addRows&&Object.hasOwnProperty.call(e,"addRows")&&l.NamedDataSet.encode(e.addRows,t.uint32(42).fork()).ldelim(),null!=e.addBlock&&Object.hasOwnProperty.call(e,"addBlock")&&l.Block.encode(e.addBlock,t.uint32(50).fork()).ldelim(),null!=e.arrowAddRows&&Object.hasOwnProperty.call(e,"arrowAddRows")&&l.ArrowNamedDataSet.encode(e.arrowAddRows,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Delta;e.pos<n;){var o=e.uint32();switch(o>>>3){case 3:r.newElement=l.Element.decode(e,e.uint32());break;case 6:r.addBlock=l.Block.decode(e,e.uint32());break;case 5:r.addRows=l.NamedDataSet.decode(e,e.uint32());break;case 7:r.arrowAddRows=l.ArrowNamedDataSet.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.newElement&&e.hasOwnProperty("newElement")){t.type=1;var n=l.Element.verify(e.newElement);if(n)return"newElement."+n}if(null!=e.addBlock&&e.hasOwnProperty("addBlock")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Block.verify(e.addBlock);if(r)return"addBlock."+r}if(null!=e.addRows&&e.hasOwnProperty("addRows")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.NamedDataSet.verify(e.addRows);if(a)return"addRows."+a}if(null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.ArrowNamedDataSet.verify(e.arrowAddRows);if(o)return"arrowAddRows."+o}return null},e.fromObject=function(e){if(e instanceof l.Delta)return e;var t=new l.Delta;if(null!=e.newElement){if("object"!==typeof e.newElement)throw TypeError(".Delta.newElement: object expected");t.newElement=l.Element.fromObject(e.newElement)}if(null!=e.addBlock){if("object"!==typeof e.addBlock)throw TypeError(".Delta.addBlock: object expected");t.addBlock=l.Block.fromObject(e.addBlock)}if(null!=e.addRows){if("object"!==typeof e.addRows)throw TypeError(".Delta.addRows: object expected");t.addRows=l.NamedDataSet.fromObject(e.addRows)}if(null!=e.arrowAddRows){if("object"!==typeof e.arrowAddRows)throw TypeError(".Delta.arrowAddRows: object expected");t.arrowAddRows=l.ArrowNamedDataSet.fromObject(e.arrowAddRows)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.newElement&&e.hasOwnProperty("newElement")&&(n.newElement=l.Element.toObject(e.newElement,t),t.oneofs&&(n.type="newElement")),null!=e.addRows&&e.hasOwnProperty("addRows")&&(n.addRows=l.NamedDataSet.toObject(e.addRows,t),t.oneofs&&(n.type="addRows")),null!=e.addBlock&&e.hasOwnProperty("addBlock")&&(n.addBlock=l.Block.toObject(e.addBlock,t),t.oneofs&&(n.type="addBlock")),null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")&&(n.arrowAddRows=l.ArrowNamedDataSet.toObject(e.arrowAddRows,t),t.oneofs&&(n.type="arrowAddRows")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DocString=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.module="",e.prototype.docString="",e.prototype.type="",e.prototype.signature="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(18).string(e.module),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(42).string(e.signature),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DocString;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.module=e.string();break;case 3:r.docString=e.string();break;case 4:r.type=e.string();break;case 5:r.signature=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.module&&e.hasOwnProperty("module")&&!i.isString(e.module)?"module: string expected":null!=e.docString&&e.hasOwnProperty("docString")&&!i.isString(e.docString)?"docString: string expected":null!=e.type&&e.hasOwnProperty("type")&&!i.isString(e.type)?"type: string expected":null!=e.signature&&e.hasOwnProperty("signature")&&!i.isString(e.signature)?"signature: string expected":null},e.fromObject=function(e){if(e instanceof l.DocString)return e;var t=new l.DocString;return null!=e.name&&(t.name=String(e.name)),null!=e.module&&(t.module=String(e.module)),null!=e.docString&&(t.docString=String(e.docString)),null!=e.type&&(t.type=String(e.type)),null!=e.signature&&(t.signature=String(e.signature)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.module="",n.docString="",n.type="",n.signature=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=e.docString),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.DownloadButton=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.url="",e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DownloadButton;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.url=e.string();break;case 7:r.disabled=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DownloadButton)return e;var t=new l.DownloadButton;
1return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.url&&(t.url=String(e.url)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.url="",n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Element=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.alert=null,e.prototype.arrowDataFrame=null,e.prototype.arrowTable=null,e.prototype.arrowVegaLiteChart=null,e.prototype.audio=null,e.prototype.balloons=null,e.prototype.bokehChart=null,e.prototype.button=null,e.prototype.downloadButton=null,e.prototype.cameraInput=null,e.prototype.checkbox=null,e.prototype.colorPicker=null,e.prototype.componentInstance=null,e.prototype.dataFrame=null,e.prototype.table=null,e.prototype.dateInput=null,e.prototype.deckGlJsonChart=null,e.prototype.docString=null,e.prototype.empty=null,e.prototype.exception=null,e.prototype.favicon=null,e.prototype.fileUploader=null,e.prototype.graphvizChart=null,e.prototype.iframe=null,e.prototype.imgs=null,e.prototype.json=null,e.prototype.markdown=null,e.prototype.metric=null,e.prototype.multiselect=null,e.prototype.numberInput=null,e.prototype.plotlyChart=null,e.prototype.progress=null,e.prototype.radio=null,e.prototype.selectbox=null,e.prototype.slider=null,e.prototype.snow=null,e.prototype.spinner=null,e.prototype.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.vegaLiteChart=null,e.prototype.video=null,e.prototype.heading=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","balloons","bokehChart","button","downloadButton","cameraInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","fileUploader","graphvizChart","iframe","imgs","json","markdown","metric","multiselect","numberInput","plotlyChart","progress","radio","selectbox","slider","snow","spinner","text","textArea","textInput","timeInput","vegaLiteChart","video","heading"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&l.Text.encode(e.text,t.uint32(10).fork()).ldelim(),null!=e.empty&&Object.hasOwnProperty.call(e,"empty")&&l.Empty.encode(e.empty,t.uint32(18).fork()).ldelim(),null!=e.dataFrame&&Object.hasOwnProperty.call(e,"dataFrame")&&l.DataFrame.encode(e.dataFrame,t.uint32(26).fork()).ldelim(),null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&l.Progress.encode(e.progress,t.uint32(42).fork()).ldelim(),null!=e.imgs&&Object.hasOwnProperty.call(e,"imgs")&&l.ImageList.encode(e.imgs,t.uint32(50).fork()).ldelim(),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&l.DocString.encode(e.docString,t.uint32(58).fork()).ldelim(),null!=e.exception&&Object.hasOwnProperty.call(e,"exception")&&l.Exception.encode(e.exception,t.uint32(66).fork()).ldelim(),null!=e.vegaLiteChart&&Object.hasOwnProperty.call(e,"vegaLiteChart")&&l.VegaLiteChart.encode(e.vegaLiteChart,t.uint32(82).fork()).ldelim(),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&l.DataFrame.encode(e.table,t.uint32(90).fork()).ldelim(),null!=e.balloons&&Object.hasOwnProperty.call(e,"balloons")&&l.Balloons.encode(e.balloons,t.uint32(98).fork()).ldelim(),null!=e.audio&&Object.hasOwnProperty.call(e,"audio")&&l.Audio.encode(e.audio,t.uint32(106).fork()).ldelim(),null!=e.video&&Object.hasOwnProperty.call(e,"video")&&l.Video.encode(e.video,t.uint32(114).fork()).ldelim(),null!=e.plotlyChart&&Ob
1ject.hasOwnProperty.call(e,"plotlyChart")&&l.PlotlyChart.encode(e.plotlyChart,t.uint32(130).fork()).ldelim(),null!=e.bokehChart&&Object.hasOwnProperty.call(e,"bokehChart")&&l.BokehChart.encode(e.bokehChart,t.uint32(138).fork()).ldelim(),null!=e.graphvizChart&&Object.hasOwnProperty.call(e,"graphvizChart")&&l.GraphVizChart.encode(e.graphvizChart,t.uint32(146).fork()).ldelim(),null!=e.button&&Object.hasOwnProperty.call(e,"button")&&l.Button.encode(e.button,t.uint32(154).fork()).ldelim(),null!=e.checkbox&&Object.hasOwnProperty.call(e,"checkbox")&&l.Checkbox.encode(e.checkbox,t.uint32(162).fork()).ldelim(),null!=e.slider&&Object.hasOwnProperty.call(e,"slider")&&l.Slider.encode(e.slider,t.uint32(170).fork()).ldelim(),null!=e.textArea&&Object.hasOwnProperty.call(e,"textArea")&&l.TextArea.encode(e.textArea,t.uint32(178).fork()).ldelim(),null!=e.radio&&Object.hasOwnProperty.call(e,"radio")&&l.Radio.encode(e.radio,t.uint32(186).fork()).ldelim(),null!=e.textInput&&Object.hasOwnProperty.call(e,"textInput")&&l.TextInput.encode(e.textInput,t.uint32(194).fork()).ldelim(),null!=e.selectbox&&Object.hasOwnProperty.call(e,"selectbox")&&l.Selectbox.encode(e.selectbox,t.uint32(202).fork()).ldelim(),null!=e.timeInput&&Object.hasOwnProperty.call(e,"timeInput")&&l.TimeInput.encode(e.timeInput,t.uint32(210).fork()).ldelim(),null!=e.dateInput&&Object.hasOwnProperty.call(e,"dateInput")&&l.DateInput.encode(e.dateInput,t.uint32(218).fork()).ldelim(),null!=e.multiselect&&Object.hasOwnProperty.call(e,"multiselect")&&l.MultiSelect.encode(e.multiselect,t.uint32(226).fork()).ldelim(),null!=e.markdown&&Object.hasOwnProperty.call(e,"markdown")&&l.Markdown.encode(e.markdown,t.uint32(234).fork()).ldelim(),null!=e.alert&&Object.hasOwnProperty.call(e,"alert")&&l.Alert.encode(e.alert,t.uint32(242).fork()).ldelim(),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&l.Json.encode(e.json,t.uint32(250).fork()).ldelim(),null!=e.numberInput&&Object.hasOwnProperty.call(e,"numberInput")&&l.NumberInput.encode(e.numberInput,t.uint32(258).fork()).ldelim(),null!=e.fileUploader&&Object.hasOwnProperty.call(e,"fileUploader")&&l.FileUploader.encode(e.fileUploader,t.uint32(266).fork()).ldelim(),null!=e.deckGlJsonChart&&Object.hasOwnProperty.call(e,"deckGlJsonChart")&&l.DeckGlJsonChart.encode(e.deckGlJsonChart,t.uint32(274).fork()).ldelim(),null!=e.colorPicker&&Object.hasOwnProperty.call(e,"colorPicker")&&l.ColorPicker.encode(e.colorPicker,t.uint32(282).fork()).ldelim(),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&l.Favicon.encode(e.favicon,t.uint32(290).fork()).ldelim(),null!=e.componentInstance&&Object.hasOwnProperty.call(e,"componentInstance")&&l.ComponentInstance.encode(e.componentInstance,t.uint32(298).fork()).ldelim(),null!=e.iframe&&Object.hasOwnProperty.call(e,"iframe")&&l.IFrame.encode(e.iframe,t.uint32(306).fork()).ldelim(),null!=e.arrowTable&&Object.hasOwnProperty.call(e,"arrowTable")&&l.Arrow.encode(e.arrowTable,t.uint32(314).fork()).ldelim(),null!=e.arrowDataFrame&&Object.hasOwnProperty.call(e,"arrowDataFrame")&&l.Arrow.encode(e.arrowDataFrame,t.uint32(322).fork()).ldelim(),null!=e.arrowVegaLiteChart&&Object.hasOwnProperty.call(e,"arrowVegaLiteChart")&&l.ArrowVegaLiteChart.encode(e.arrowVegaLiteChart,t.uint32(330).fork()).ldelim(),null!=e.metric&&Object.hasOwnProperty.call(e,"metric")&&l.Metric.encode(e.metric,t.uint32(338).fork()).ldelim(),null!=e.downloadButton&&Object.hasOwnProperty.call(e,"downloadButton")&&l.DownloadButton.encode(e.downloadButton,t.uint32(346).fork()).ldelim(),null!=e.spinner&&Object.hasOwnProperty.call(e,"spinner")&&l.Spinner.encode(e.spinner,t.uint32(354).fork()).ldelim(),null!=e.cameraInput&&Object.hasOwnProperty.call(e,"cameraInput")&&l.CameraInput.encode(e.cameraInput,t.uint32(362).fork()).ldelim(),null!=e.snow&&Object.hasOwnProperty.call(e,"snow")&&l.Snow.encode(e.snow,t.uint32(370).fork()).ldelim(),null!=e.heading&&Object.hasOwnProperty.call(e,"heading")&&l.Heading.encode(e.heading,t.uint32(378).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Element;e.pos<n;){var o=e.uint32();switch(o>>>3){case 30:r.alert=l.Alert.decode(e,e.uint32());break;case 40:r.arrowDataFrame=l.Arrow.decode(e,e.uint32());break;case 39:r.arrowTable=l.Arrow.decode(e,e.uint32());break;case 41:r.arrowVegaLiteChart=l.ArrowVegaLiteChart.decode(e,e.uint32());break;case 13:r.audio=l.Audio.decode(e,e.uint32());break;case 12:r.balloons=l.Balloons.decode(e,e.uint32());break;case 17:r.bokehChart=l.BokehChart.decode(e,e.uint32());break;case 19:r.button=l.Button.decode(e,e.uint32());break;case 43:r.downloadButton=l.DownloadButton.decode(e,e.uint32());break;case 45:r.cameraInput=l.CameraInput.decode(e,e.uint32());break;case 20:r.checkbox=l.Checkbox.decode(e,e.uint32());break;case 35:r.colorPicker=l.ColorPicker.decode(e,e.uint32());break;case 37:r.componentInstance=l.ComponentInstance.decode(e,e.uint32());break;case 3:r.dataFrame=l.DataFrame.decode(e,e.uint32());break;case 11:r.table=l.DataFrame.decode(e,e.uint32());break;case 27:r.dateInput=l.DateInput.decode(e,e.uint32());break;case 34:r.deckGlJsonChart=l.DeckGlJsonChart.decode(e,e.uint32());break;case 7:r.docString=l.DocString.decode(e,e.uint32());break;case 2:r.empty=l.Empty.decode(e,e.uint32());break;case 8:r.exception=l.Exception.decode(e,e.uint32());break;case 36:r.favicon=l.Favicon.decode(e,e.uint32());break;case 33:r.fileUploader=l.FileUploader.decode(e,e.uint32());break;case 18:r.graphvizChart=l.GraphVizChart.decode(e,e.uint32());break;case 38:r.iframe=l.IFrame.decode(e,e.uint32());break;case 6:r.imgs=l.ImageList.decode(e,e.uint32());break;case 31:r.json=l.Json.decode(e,e.uint32());break;case 29:r.markdown=l.Markdown.decode(e,e.uint32());break;case 42:r.metric=l.Metric.decode(e,e.uint32());break;case 28:r.multiselect=l.MultiSelect.decode(e,e.uint32());break;case 32:r.numberInput=l.NumberInput.decode(e,e.uint32());break;
1case 16:r.plotlyChart=l.PlotlyChart.decode(e,e.uint32());break;case 5:r.progress=l.Progress.decode(e,e.uint32());break;case 23:r.radio=l.Radio.decode(e,e.uint32());break;case 25:r.selectbox=l.Selectbox.decode(e,e.uint32());break;case 21:r.slider=l.Slider.decode(e,e.uint32());break;case 46:r.snow=l.Snow.decode(e,e.uint32());break;case 44:r.spinner=l.Spinner.decode(e,e.uint32());break;case 1:r.text=l.Text.decode(e,e.uint32());break;case 22:r.textArea=l.TextArea.decode(e,e.uint32());break;case 24:r.textInput=l.TextInput.decode(e,e.uint32());break;case 26:r.timeInput=l.TimeInput.decode(e,e.uint32());break;case 10:r.vegaLiteChart=l.VegaLiteChart.decode(e,e.uint32());break;case 14:r.video=l.Video.decode(e,e.uint32());break;case 47:r.heading=l.Heading.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.alert&&e.hasOwnProperty("alert")){t.type=1;var n=l.Alert.verify(e.alert);if(n)return"alert."+n}if(null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Arrow.verify(e.arrowDataFrame);if(r)return"arrowDataFrame."+r}if(null!=e.arrowTable&&e.hasOwnProperty("arrowTable")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Arrow.verify(e.arrowTable);if(a)return"arrowTable."+a}if(null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.ArrowVegaLiteChart.verify(e.arrowVegaLiteChart);if(o)return"arrowVegaLiteChart."+o}if(null!=e.audio&&e.hasOwnProperty("audio")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Audio.verify(e.audio);if(i)return"audio."+i}if(null!=e.balloons&&e.hasOwnProperty("balloons")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.Balloons.verify(e.balloons);if(s)return"balloons."+s}if(null!=e.bokehChart&&e.hasOwnProperty("bokehChart")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.BokehChart.verify(e.bokehChart);if(c)return"bokehChart."+c}if(null!=e.button&&e.hasOwnProperty("button")){if(1===t.type)return"type: multiple values";t.type=1;var u=l.Button.verify(e.button);if(u)return"button."+u}if(null!=e.downloadButton&&e.hasOwnProperty("downloadButton")){if(1===t.type)return"type: multiple values";t.type=1;var d=l.DownloadButton.verify(e.downloadButton);if(d)return"downloadButton."+d}if(null!=e.cameraInput&&e.hasOwnProperty("cameraInput")){if(1===t.type)return"type: multiple values";t.type=1;var p=l.CameraInput.verify(e.cameraInput);if(p)return"cameraInput."+p}if(null!=e.checkbox&&e.hasOwnProperty("checkbox")){if(1===t.type)return"type: multiple values";t.type=1;var f=l.Checkbox.verify(e.checkbox);if(f)return"checkbox."+f}if(null!=e.colorPicker&&e.hasOwnProperty("colorPicker")){if(1===t.type)return"type: multiple values";t.type=1;var h=l.ColorPicker.verify(e.colorPicker);
1if(h)return"colorPicker."+h}if(null!=e.componentInstance&&e.hasOwnProperty("componentInstance")){if(1===t.type)return"type: multiple values";t.type=1;var b=l.ComponentInstance.verify(e.componentInstance);if(b)return"componentInstance."+b}if(null!=e.dataFrame&&e.hasOwnProperty("dataFrame")){if(1===t.type)return"type: multiple values";t.type=1;var m=l.DataFrame.verify(e.dataFrame);if(m)return"dataFrame."+m}if(null!=e.table&&e.hasOwnProperty("table")){if(1===t.type)return"type: multiple values";t.type=1;var g=l.DataFrame.verify(e.table);if(g)return"table."+g}if(null!=e.dateInput&&e.hasOwnProperty("dateInput")){if(1===t.type)return"type: multiple values";t.type=1;var y=l.DateInput.verify(e.dateInput);if(y)return"dateInput."+y}if(null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")){if(1===t.type)return"type: multiple values";t.type=1;var O=l.DeckGlJsonChart.verify(e.deckGlJsonChart);if(O)return"deckGlJsonChart."+O}if(null!=e.docString&&e.hasOwnProperty("docString")){if(1===t.type)return"type: multiple values";t.type=1;var w=l.DocString.verify(e.docString);if(w)return"docString."+w}if(null!=e.empty&&e.hasOwnProperty("empty")){if(1===t.type)return"type: multiple values";t.type=1;var v=l.Empty.verify(e.empty);if(v)return"empty."+v}if(null!=e.exception&&e.hasOwnProperty("exception")){if(1===t.type)return"type: multiple values";t.type=1;var j=l.Exception.verify(e.exception);if(j)return"exception."+j}if(null!=e.favicon&&e.hasOwnProperty("favicon")){if(1===t.type)return"type: multiple values";t.type=1;var S=l.Favicon.verify(e.favicon);if(S)return"favicon."+S}
1if(null!=e.fileUploader&&e.hasOwnProperty("fileUploader")){if(1===t.type)return"type: multiple values";t.type=1;var x=l.FileUploader.verify(e.fileUploader);if(x)return"fileUploader."+x}if(null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")){if(1===t.type)return"type: multiple values";t.type=1;var k=l.GraphVizChart.verify(e.graphvizChart);if(k)return"graphvizChart."+k}if(null!=e.iframe&&e.hasOwnProperty("iframe")){if(1===t.type)return"type: multiple values";t.type=1;var P=l.IFrame.verify(e.iframe);if(P)return"iframe."+P}if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(1===t.type)return"type: multiple values";t.type=1;var I=l.ImageList.verify(e.imgs);if(I)return"imgs."+I}if(null!=e.json&&e.hasOwnProperty("json")){if(1===t.type)return"type: multiple values";t.type=1;var C=l.Json.verify(e.json);if(C)return"json."+C}if(null!=e.markdown&&e.hasOwnProperty("markdown")){if(1===t.type)return"type: multiple values";t.type=1;var V=l.Markdown.verify(e.markdown);if(V)return"markdown."+V}if(null!=e.metric&&e.hasOwnProperty("metric")){if(1===t.type)return"type: multiple values";t.type=1;var T=l.Metric.verify(e.metric);if(T)return"metric."+T}if(null!=e.multiselect&&e.hasOwnProperty("multiselect")){if(1===t.type)return"type: multiple values";t.type=1;var E=l.MultiSelect.verify(e.multiselect);if(E)return"multiselect."+E}if(null!=e.numberInput&&e.hasOwnProperty("numberInput")){if(1===t.type)return"type: multiple values";t.type=1;var A=l.NumberInput.verify(e.numberInput);if(A)return"numberInput."+A}if(null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")){if(1===t.type)return"type: multiple values";t.type=1;
1var N=l.PlotlyChart.verify(e.plotlyChart);if(N)return"plotlyChart."+N}if(null!=e.progress&&e.hasOwnProperty("progress")){if(1===t.type)return"type: multiple values";t.type=1;var D=l.Progress.verify(e.progress);if(D)return"progress."+D}if(null!=e.radio&&e.hasOwnProperty("radio")){if(1===t.type)return"type: multiple values";t.type=1;var R=l.Radio.verify(e.radio);if(R)return"radio."+R}if(null!=e.selectbox&&e.hasOwnProperty("selectbox")){if(1===t.type)return"type: multiple values";t.type=1;var B=l.Selectbox.verify(e.selectbox);if(B)return"selectbox."+B}if(null!=e.slider&&e.hasOwnProperty("slider")){if(1===t.type)return"type: multiple values";t.type=1;var M=l.Slider.verify(e.slider);if(M)return"slider."+M}if(null!=e.snow&&e.hasOwnProperty("snow")){if(1===t.type)return"type: multiple values";t.type=1;var F=l.Snow.verify(e.snow);if(F)return"snow."+F}if(null!=e.spinner&&e.hasOwnProperty("spinner")){if(1===t.type)return"type: multiple values";t.type=1;var L=l.Spinner.verify(e.spinner);if(L)return"spinner."+L}if(null!=e.text&&e.hasOwnProperty("text")){if(1===t.type)return"type: multiple values";t.type=1;var z=l.Text.verify(e.text);if(z)return"text."+z}if(null!=e.textArea&&e.hasOwnProperty("textArea")){if(1===t.type)return"type: multiple values";t.type=1;var W=l.TextArea.verify(e.textArea);if(W)return"textArea."+W}if(null!=e.textInput&&e.hasOwnProperty("textInput")){if(1===t.type)return"type: multiple values";t.type=1;var H=l.TextInput.verify(e.textInput);if(H)return"textInput."+H}if(null!=e.timeInput&&e.hasOwnProperty("timeInput")){if(1===t.type)return"type: multiple values";t.type=1;var U=l.TimeInput.verify(e.timeInput);if(U)return"timeInput."+U}if(null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var _=l.VegaLiteChart.verify(e.vegaLiteChart);if(_)return"vegaLiteChart."+_}if(null!=e.video&&e.hasOwnProperty("video")){if(1===t.type)return"type: multiple values";t.type=1;var G=l.Video.verify(e.video);if(G)return"video."+G}if(null!=e.heading&&e.hasOwnProperty("heading")){if(1===t.type)return"type: multiple values";t.type=1;var J=l.Heading.verify(e.heading);if(J)return"heading."+J}return null},e.fromObject=function(e){if(e instanceof l.Element)return e;var t=new l.Element;if(null!=e.alert){if("object"!==typeof e.alert)throw TypeError(".Element.alert: object expected");t.alert=l.Alert.fromObject(e.alert)}if(null!=e.arrowDataFrame){if("object"!==typeof e.arrowDataFrame)throw TypeError(".Element.arrowDataFrame: object expected");t.arrowDataFrame=l.Arrow.fromObject(e.arrowDataFrame)}if(null!=e.arrowTable){if("object"!==typeof e.arrowTable)throw TypeError(".Element.arrowTable: object expected");t.arrowTable=l.Arrow.fromObject(e.arrowTable)}if(null!=e.arrowVegaLiteChart){if("object"!==typeof e.arrowVegaLiteChart)throw TypeError(".Element.arrowVegaLiteChart: object expected");t.arrowVegaLiteChart=l.ArrowVegaLiteChart.fromObject(e.arrowVegaLiteChart)}if(null!=e.audio){if("object"!==typeof e.audio)throw TypeError(".Element.audio: object expected");t.audio=l.Audio.fromObject(e.audio)}if(null!=e.balloons){if("object"!==typeof e.balloons)throw TypeError(".Element.balloons: object expected");t.balloons=l.Balloons.fromObject(e.balloons)}if(null!=e.bokehChart){if("object"!==typeof e.bokehChart)throw TypeError(".Element.bokehChart: object expected");t.bokehChart=l.BokehChart.fromObject(e.bokehChart)}if(null!=e.button){if("object"!==typeof e.button)throw TypeError(".Element.button: object expected");t.button=l.Button.fromObject(e.button)}if(null!=e.downloadButton){if("object"!==typeof e.downloadButton)throw TypeError(".Element.downloadButton: object expected");t.downloadButton=l.DownloadButton.fromObject(e.downloadButton)}if(null!=e.cameraInput){if("object"!==typeof e.cameraInput)throw TypeError(".Element.cameraInput: object expected");t.cameraInput=l.CameraInput.fromObject(e.cameraInput)}if(null!=e.checkbox){if("object"!==typeof e.checkbox)throw TypeError(".Element.checkbox: object expected");t.checkbox=l.Checkbox.fromObject(e.checkbox)}if(null!=e.colorPicker){if("object"!==typeof e.colorPicker)throw TypeError(".Element.colorPicker: object expected");t.colorPicker=l.ColorPicker.fromObject(e.colorPicker)}if(null!=e.componentInstance){if("object"!==typeof e.componentInstance)throw TypeError(".Element.componentInstance: object expected");t.componentInstance=l.ComponentInstance.fromObject(e.componentInstance)}if(null!=e.dataFrame){if("object"!==typeof e.dataFrame)throw TypeError(".Element.dataFrame: object expected");t.dataFrame=l.DataFrame.fromObject(e.dataFrame)}if(null!=e.table){if("object"!==typeof e.table)throw TypeError(".Element.table: object expected");t.table=l.DataFrame.fromObject(e.table)}if(null!=e.dateInput){if("object"!==typeof e.dateInput)throw TypeError(".Element.dateInput: object expected");t.dateInput=l.DateInput.fromObject(e.dateInput)}if(null!=e.deckGlJsonChart){if("object"!==typeof e.deckGlJsonChart)throw TypeError(".Element.deckGlJsonChart: object expected");t.deckGlJsonChart=l.DeckGlJsonChart.fromObject(e.deckGlJsonChart)}if(null!=e.docString){if("object"!==typeof e.docString)throw TypeError(".Element.docString: object expected");t.docString=l.DocString.fromObject(e.docString)}
1if(null!=e.empty){if("object"!==typeof e.empty)throw TypeError(".Element.empty: object expected");t.empty=l.Empty.fromObject(e.empty)}if(null!=e.exception){if("object"!==typeof e.exception)throw TypeError(".Element.exception: object expected");t.exception=l.Exception.fromObject(e.exception)}if(null!=e.favicon){if("object"!==typeof e.favicon)throw TypeError(".Element.favicon: object expected");t.favicon=l.Favicon.fromObject(e.favicon)}if(null!=e.fileUploader){if("object"!==typeof e.fileUploader)throw TypeError(".Element.fileUploader: object expected");t.fileUploader=l.FileUploader.fromObject(e.fileUploader)}if(null!=e.graphvizChart){if("object"!==typeof e.graphvizChart)throw TypeError(".Element.graphvizChart: object expected");t.graphvizChart=l.GraphVizChart.fromObject(e.graphvizChart)}if(null!=e.iframe){if("object"!==typeof e.iframe)throw TypeError(".Element.iframe: object expected");t.iframe=l.IFrame.fromObject(e.iframe)}if(null!=e.imgs){if("object"!==typeof e.imgs)throw TypeError(".Element.imgs: object expected");t.imgs=l.ImageList.fromObject(e.imgs)}if(null!=e.json){if("object"!==typeof e.json)throw TypeError(".Element.json: object expected");t.json=l.Json.fromObject(e.json)}if(null!=e.markdown){if("object"!==typeof e.markdown)throw TypeError(".Element.markdown: object expected");t.markdown=l.Markdown.fromObject(e.markdown)}if(null!=e.metric){if("object"!==typeof e.metric)throw TypeError(".Element.metric: object expected");t.metric=l.Metric.fromObject(e.metric)}if(null!=e.multiselect){if("object"!==typeof e.multiselect)throw TypeError(".Element.multiselect: object expected");t.multiselect=l.MultiSelect.fromObject(e.multiselect)}if(null!=e.numberInput){if("object"!==typeof e.numberInput)throw TypeError(".Element.numberInput: object expected");t.numberInput=l.NumberInput.fromObject(e.numberInput)}if(null!=e.plotlyChart){if("object"!==typeof e.plotlyChart)throw TypeError(".Element.plotlyChart: object expected");t.plotlyChart=l.PlotlyChart.fromObject(e.plotlyChart)}if(null!=e.progress){if("object"!==typeof e.progress)throw TypeError(".Element.progress: object expected");t.progress=l.Progress.fromObject(e.progress)}if(null!=e.radio){if("object"!==typeof e.radio)throw TypeError(".Element.radio: object expected");t.radio=l.Radio.fromObject(e.radio)}if(null!=e.selectbox){if("object"!==typeof e.selectbox)throw TypeError(".Element.selectbox: object expected");t.selectbox=l.Selectbox.fromObject(e.selectbox)}if(null!=e.slider){if("object"!==typeof e.slider)throw TypeError(".Element.slider: object expected");t.slider=l.Slider.fromObject(e.slider)}if(null!=e.snow){if("object"!==typeof e.snow)throw TypeError(".Element.snow: object expected");t.snow=l.Snow.fromObject(e.snow)}if(null!=e.spinner){if("object"!==typeof e.spinner)throw TypeError(".Element.spinner: object expected");t.spinner=l.Spinner.fromObject(e.spinner)}if(null!=e.text){if("object"!==typeof e.text)throw TypeError(".Element.text: object expected");t.text=l.Text.fromObject(e.text)}if(null!=e.textArea){if("object"!==typeof e.textArea)throw TypeError(".Element.textArea: object expected");t.textArea=l.TextArea.fromObject(e.textArea)}if(null!=e.textInput){if("object"!==typeof e.textInput)throw TypeError(".Element.textInput: object expected");t.textInput=l.TextInput.fromObject(e.textInput)}if(null!=e.timeInput){if("object"!==typeof e.timeInput)throw TypeError(".Element.timeInput: object expected");t.timeInput=l.TimeInput.fromObject(e.timeInput)}if(null!=e.vegaLiteChart){if("object"!==typeof e.vegaLiteChart)throw TypeError(".Element.vegaLiteChart: object expected");t.vegaLiteChart=l.VegaLiteChart.fromObject(e.vegaLiteChart)}if(null!=e.video){if("object"!==typeof e.video)throw TypeError(".Element.video: object expected");t.video=l.Video.fromObject(e.video)}if(null!=e.heading){if("object"!==typeof e.heading)throw TypeError(".Element.heading: object expected");t.heading=l.Heading.fromObject(e.heading)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.text&&e.hasOwnProperty("text")&&(n.text=l.Text.toObject(e.text,t),t.oneofs&&(n.type="text")),null!=e.empty&&e.hasOwnProperty("empty")&&(n.empty=l.Empty.toObject(e.empty,t),t.oneofs&&(n.type="empty")),null!=e.dataFrame&&e.hasOwnProperty("dataFrame")&&(n.dataFrame=l.DataFrame.toObject(e.dataFrame,t),t.oneofs&&(n.type="dataFrame")),null!=e.progress&&e.hasOwnProperty("progress")&&(n.progress=l.Progress.toObject(e.progress,t),t.oneofs&&(n.type="progress")),null!=e.imgs&&e.hasOwnProperty("imgs")&&(n.imgs=l.ImageList.toObject(e.imgs,t),t.oneofs&&(n.type="imgs")),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=l.DocString.toObject(e.docString,t),t.oneofs&&(n.type="docString")),null!=e.exception&&e.hasOwnProperty("exception")&&(n.exception=l.Exception.toObject(e.exception,t),t.oneofs&&(n.type="exception")),null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")&&(n.vegaLiteChart=l.VegaLiteChart.toObject(e.vegaLiteChart,t),t.oneofs&&(n.type="vegaLiteChart")),null!=e.table&&e.hasOwnProperty("table")&&(n.table=l.DataFrame.toObject(e.table,t),t.oneofs&&(n.type="table")),null!=e.balloons&&e.hasOwnProperty("balloons")&&(n.balloons=l.Balloons.toObject(e.balloons,t),t.oneofs&&(n.type="balloons")),null!=e.audio&&e.hasOwnProperty("audio")&&(n.audio=l.Audio.toObject(e.audio,t),t.oneofs&&(n.type="audio")),null!=e.video&&e.hasOwnProperty("video")&&(n.video=l.Video.toObject(e.video,t),t.oneofs&&(n.type="video")),null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")&&(n.plotlyChart=l.PlotlyC
1hart.toObject(e.plotlyChart,t),t.oneofs&&(n.type="plotlyChart")),null!=e.bokehChart&&e.hasOwnProperty("bokehChart")&&(n.bokehChart=l.BokehChart.toObject(e.bokehChart,t),t.oneofs&&(n.type="bokehChart")),null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")&&(n.graphvizChart=l.GraphVizChart.toObject(e.graphvizChart,t),t.oneofs&&(n.type="graphvizChart")),null!=e.button&&e.hasOwnProperty("button")&&(n.button=l.Button.toObject(e.button,t),t.oneofs&&(n.type="button")),null!=e.checkbox&&e.hasOwnProperty("checkbox")&&(n.checkbox=l.Checkbox.toObject(e.checkbox,t),t.oneofs&&(n.type="checkbox")),null!=e.slider&&e.hasOwnProperty("slider")&&(n.slider=l.Slider.toObject(e.slider,t),t.oneofs&&(n.type="slider")),null!=e.textArea&&e.hasOwnProperty("textArea")&&(n.textArea=l.TextArea.toObject(e.textArea,t),t.oneofs&&(n.type="textArea")),null!=e.radio&&e.hasOwnProperty("radio")&&(n.radio=l.Radio.toObject(e.radio,t),t.oneofs&&(n.type="radio")),null!=e.textInput&&e.hasOwnProperty("textInput")&&(n.textInput=l.TextInput.toObject(e.textInput,t),t.oneofs&&(n.type="textInput")),null!=e.selectbox&&e.hasOwnProperty("selectbox")&&(n.selectbox=l.Selectbox.toObject(e.selectbox,t),t.oneofs&&(n.type="selectbox")),null!=e.timeInput&&e.hasOwnProperty("timeInput")&&(n.timeInput=l.TimeInput.toObject(e.timeInput,t),t.oneofs&&(n.type="timeInput")),null!=e.dateInput&&e.hasOwnProperty("dateInput")&&(n.dateInput=l.DateInput.toObject(e.dateInput,t),t.oneofs&&(n.type="dateInput")),null!=e.multiselect&&e.hasOwnProperty("multiselect")&&(n.multiselect=l.MultiSelect.toObject(e.multiselect,t),t.oneofs&&(n.type="multiselect")),null!=e.markdown&&e.hasOwnProperty("markdown")&&(n.markdown=l.Markdown.toObject(e.markdown,t),t.oneofs&&(n.type="markdown")),null!=e.alert&&e.hasOwnProperty("alert")&&(n.alert=l.Alert.toObject(e.alert,t),t.oneofs&&(n.type="alert")),null!=e.json&&e.hasOwnProperty("json")&&(n.json=l.Json.toObject(e.json,t),t.oneofs&&(n.type="json")),null!=e.numberInput&&e.hasOwnProperty("numberInput")&&(n.numberInput=l.NumberInput.toObject(e.numberInput,t),t.oneofs&&(n.type="numberInput")),null!=e.fileUploader&&e.hasOwnProperty("fileUploader")&&(n.fileUploader=l.FileUploader.toObject(e.fileUploader,t),t.oneofs&&(n.type="fileUploader")),null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")&&(n.deckGlJsonChart=l.DeckGlJsonChart.toObject(e.deckGlJsonChart,t),t.oneofs&&(n.type="deckGlJsonChart")),null!=e.colorPicker&&e.hasOwnProperty("colorPicker")&&(n.colorPicker=l.ColorPicker.toObject(e.colorPicker,t),t.oneofs&&(n.type="colorPicker")),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=l.Favicon.toObject(e.favicon,t),t.oneofs&&(n.type="favicon")),null!=e.componentInstance&&e.hasOwnProperty("componentInstance")&&(n.componentInstance=l.ComponentInstance.toObject(e.componentInstance,t),t.oneofs&&(n.type="componentInstance")),null!=e.iframe&&e.hasOwnProperty("iframe")&&(n.iframe=l.IFrame.toObject(e.iframe,t),t.oneofs&&(n.type="iframe")),null!=e.arrowTable&&e.hasOwnProperty("arrowTable")&&(n.arrowTable=l.Arrow.toObject(e.arrowTable,t),t.oneofs&&(n.type="arrowTable")),null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")&&(n.arrowDataFrame=l.Arrow.toObject(e.arrowDataFrame,t),t.oneofs&&(n.type="arrowDataFrame")),null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")&&(n.arrowVegaLiteChart=l.ArrowVegaLiteChart.toObject(e.arrowVegaLiteChart,t),t.oneofs&&(n.type="arrowVegaLiteChart")),null!=e.metric&&e.hasOwnProperty("metric")&&(n.metric=l.Metric.toObject(e.metric,t),t.oneofs&&(n.type="metric")),null!=e.downloadButton&&e.hasOwnProperty("downloadButton")&&(n.downloadButton=l.DownloadButton.toObject(e.downloadButton,t),t.oneofs&&(n.type="downloadButton")),null!=e.spinner&&e.hasOwnProperty("spinner")&&(n.spinner=l.Spinner.toObject(e.spinner,t),t.oneofs&&(n.type="spinner")),null!=e.cameraInput&&e.hasOwnProperty("cameraInput")&&(n.cameraInput=l.CameraInput.toObject(e.cameraInput,t),t.oneofs&&(n.type="cameraInput")),null!=e.snow&&e.hasOwnProperty("snow")&&(n.snow=l.Snow.toObject(e.snow,t),t.oneofs&&(n.type="snow")),null!=e.heading&&e.hasOwnProperty("heading")&&(n.heading=l.Heading.toObject(e.heading,t),t.oneofs&&(n.type="heading")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),y=(l.Empty=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Empty;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Empty?e:new l.Empty},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Exception=function(){function e(e){if(this.stackTrace=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type="",e.prototype.message="",e.prototype.messageIsMarkdown=!1,e.prototype.stackTrace=i.emptyArray,e.prototype.isWarning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.stackTrace&&e.stackTrace.length)for(var n=0;n<e.stackTrace.length;++n)t.uint32(26).string(e.stackTrace[n]);return null!=e.messageIsMarkdown&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),null!=e.isWarning&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Exception;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.type=e.string();break;case 2:r.message=e.string();break;case 4:r.messageIsMarkdown=e.bool();break;case 3:r.stackTrace&&r.stackTrace.length||(r.stackTrace=[]),r.stackTrace.push(e.string());break;case 5:r.isWarning=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!i.isString(e.type))return"type: string expected";if(null!=e.message&&e.hasOwnProperty("message")&&!i.isString(e.message))return"message: string expected";if(null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&"boolean"!==typeof e.messageIsMarkdown)return"messageIsMarkdown: boolean expected";if(null!=e.stackTrace&&e.hasOwnProperty("stackTrace")){if(!Array.isArray(e.stackTrace))return"stackTrace: array expected";for(var t=0;t<e.stackTrace.length;++t)if(!i.isString(e.stackTrace[t]))return"stackTrace: string[] expected"}return null!=e.isWarning&&e.hasOwnProperty("isWarning")&&"boolean"!==typeof e.isWarning?"isWarning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Exception)return e;var t=new l.Exception;if(null!=e.type&&(t.type=String(e.type)),null!=e.message&&(t.message=String(e.message)),null!=e.messageIsMarkdown&&(t.messageIsMarkdown=Boolean(e.messageIsMarkdown)),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(var n=0;n<e.stackTrace.length;++n)t.stackTrace[n]=String(e.stackTrace[n])}return null!=e.isWarning&&(t.isWarning=Boolean(e.isWarning)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.stackTrace=[]),t.defaults&&(n.type="",n.message="",n.messageIsMarkdown=!1,n.isWarning=!1),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),e.stackTrace&&e.stackTrace.length){n.stackTrace=[];for(var r=0;r<e.stackTrace.length;++r)n.stackTrace[r]=e.stackTrace[r]}return null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&(n.messageIsMarkdown=e.messageIsMarkdown),null!=e.isWarning&&e.hasOwnProperty("isWarning")&&(n.isWarning=e.isWarning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Favicon=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Favicon;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.url=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null},e.fromObject=function(e){if(e instanceof l.Favicon)return e;var t=new l.Favicon;return null!=e.url&&(t.url=String(e.url)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.url=""),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}
1(),l.FileUploader=function(){function e(e){if(this.type=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.type=i.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.multipleFiles=!1,e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.type&&e.type.length)for(var n=0;n<e.type.length;++n)t.uint32(26).string(e.type[n]);return null!=e.maxUploadSizeMb&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),null!=e.multipleFiles&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.FileUploader;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.type&&r.type.length||(r.type=[]),r.type.push(e.string());break;case 4:r.maxUploadSizeMb=e.int32();break;case 6:r.multipleFiles=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.type&&e.hasOwnProperty("type")){if(!Array.isArray(e.type))return"type: array expected";for(var t=0;t<e.type.length;++t)if(!i.isString(e.type[t]))return"type: string[] expected"}if(null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&!i.isInteger(e.maxUploadSizeMb))return"maxUploadSizeMb: integer expected";if(null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&"boolean"!==typeof e.multipleFiles)return"multipleFiles: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var n=l.LabelVisibilityMessage.verify(e.labelVisibility);if(n)return"labelVisibility."+n}return null},e.fromObject=function(e){if(e instanceof l.FileUploader)return e;var t=new l.FileUploader;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(var n=0;n<e.type.length;++n)t.type[n]=String(e.type[n])}if(null!=e.maxUploadSizeMb&&(t.maxUploadSizeMb=0|e.maxUploadSizeMb),null!=e.multipleFiles&&(t.multipleFiles=Boolean(e.multipleFiles)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.type=[]),t.defaults&&(n.id="",n.label="",n.maxUploadSizeMb=0,n.multipleFiles=!1,n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.type&&e.type.length){n.type=[];for(var r=0;r<e.type.length;++r)n.type[r]=e.type[r]}return null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&(n.maxUploadSizeMb=e.maxUploadSizeMb),null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&(n.multipleFiles=e.multipleFiles),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ForwardMsg=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.hash="",e.prototype.metadata=null,e.prototype.newSession=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.page
1ConfigChanged=null,e.prototype.scriptFinished=null,e.prototype.gitInfoChanged=null,e.prototype.pageProfile=null,e.prototype.sessionStateChanged=null,e.prototype.sessionEvent=null,e.prototype.pageNotFound=null,e.prototype.pagesChanged=null,e.prototype.refHash=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStateChanged","sessionEvent","pageNotFound","pagesChanged","refHash"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).string(e.hash),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&l.ForwardMsgMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),null!=e.newSession&&Object.hasOwnProperty.call(e,"newSession")&&l.NewSession.encode(e.newSession,t.uint32(34).fork()).ldelim(),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&l.Delta.encode(e.delta,t.uint32(42).fork()).ldelim(),null!=e.scriptFinished&&Object.hasOwnProperty.call(e,"scriptFinished")&&t.uint32(48).int32(e.scriptFinished),null!=e.sessionStateChanged&&Object.hasOwnProperty.call(e,"sessionStateChanged")&&l.SessionState.encode(e.sessionStateChanged,t.uint32(74).fork()).ldelim(),null!=e.sessionEvent&&Object.hasOwnProperty.call(e,"sessionEvent")&&l.SessionEvent.encode(e.sessionEvent,t.uint32(82).fork()).ldelim(),null!=e.refHash&&Object.hasOwnProperty.call(e,"refHash")&&t.uint32(90).string(e.refHash),null!=e.pageInfoChanged&&Object.hasOwnProperty.call(e,"pageInfoChanged")&&l.PageInfo.encode(e.pageInfoChanged,t.uint32(98).fork()).ldelim(),null!=e.pageConfigChanged&&Object.hasOwnProperty.call(e,"pageConfigChanged")&&l.PageConfig.encode(e.pageConfigChanged,t.uint32(106).fork()).ldelim(),null!=e.gitInfoChanged&&Object.hasOwnProperty.call(e,"gitInfoChanged")&&l.GitInfo.encode(e.gitInfoChanged,t.uint32(114).fork()).ldelim(),null!=e.pageNotFound&&Object.hasOwnProperty.call(e,"pageNotFound")&&l.PageNotFound.encode(e.pageNotFound,t.uint32(122).fork()).ldelim(),null!=e.pagesChanged&&Object.hasOwnProperty.call(e,"pagesChanged")&&l.PagesChanged.encode(e.pagesChanged,t.uint32(130).fork()).ldelim(),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&t.uint32(138).string(e.debugLastBackmsgId),null!=e.pageProfile&&Object.hasOwnProperty.call(e,"pageProfile")&&l.PageProfile.encode(e.pageProfile,t.uint32(146).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsg;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.hash=e.string();break;case 2:r.metadata=l.ForwardMsgMetadata.decode(e,e.uint32());break;case 4:r.newSession=l.NewSession.decode(e,e.uint32());break;case 5:r.delta=l.Delta.decode(e,e.uint32());break;case 12:r.pageInfoChanged=l.PageInfo.decode(e,e.uint32());break;case 13:r.pageConfigChanged=l.PageConfig.decode(e,e.uint32());break;case 6:r.scriptFinished=e.int32();break;case 14:r.gitInfoChanged=l.GitInfo.decode(e,e.uint32());break;case 18:r.pageProfile=l.PageProfile.decode(e,e.uint32());break;case 9:r.sessionStateChanged=l.SessionState.decode(e,e.uint32());break;case 10:r.sessionEvent=l.SessionEvent.decode(e,e.uint32());break;case 15:r.pageNotFound=l.PageNotFound.decode(e,e.uint32());break;case 16:r.pagesChanged=l.PagesChanged.decode(e,e.uint32());break;case 11:r.refHash=e.string();break;case 17:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.hash&&e.hasOwnProperty("hash")&&!i.isString(e.hash))return"hash: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")){var n=l.ForwardMsgMetadata.verify(e.metadata);if(n)return"metadata."+n}if(null!=e.newSession&&e.hasOwnProperty("newSession")){t.type=1;var r=l.NewSession.verify(e.newSession);if(r)return"newSession."+r}if(null!=e.delta&&e.hasOwnProperty("delta")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Delta.verify(e.delta);if(a)return"delta."+a}if(null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.PageInfo.verify(e.pageInfoChanged);if(o)return"pageInfoChanged."+o}if(null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.PageConfig.verify(e.pageConfigChanged);if(s)return"pageConfigChanged."+s}if(null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")){if(1===t.type)return"type: multiple values";switch(t.type=1,e.scriptFinished){default:return"scriptFinished: enum value expected";case 0:case 1:case 2:}}if(null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.GitInfo.verify(e.gitInfoChanged);if(c)return"gitInfoChanged."+c}if(null!=e.pageProfile&&e.hasOwnProperty("pageProfile")){if(1===t.type)return"type: multiple values";t.type=1;var u=l.PageProfile.verify(e.pageProfile);if(u)return"pageProfile."+u}if(null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")){if(1===t.type)return"type: multiple values";t.type=1;var d=l.SessionState.verify(e.sessionStateChanged);if(d)return"sessionStateChanged."+d}if(null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")){if(1===t.type)return"type: multiple values";t.type=1;var p=l.SessionEvent.verify(e.sessionEvent);if(p)return"sessionEvent."+p}if(null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")){if(1===t.type)return"type: multiple values";t.type=1;var f=l.PageNotFound.verify(e.pageNotFound);if(f)return"pageNotFound."+f}if(null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")){if(1===t.type)return"type: multiple values";t.type=1;var h=l.PagesChanged.verify(e.pagesChanged);if(h)return"pagesChanged."+h}if(null!=e.refHash&&e.hasOwnProperty("refHash")){if(1===t.type)return"type: multiple values";if(t.type=1,!i.isString(e.refHash))return"refHash: string expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!i.isString(e.debugLastBackmsgId)?"debugL
1astBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.ForwardMsg)return e;var t=new l.ForwardMsg;if(null!=e.hash&&(t.hash=String(e.hash)),null!=e.metadata){if("object"!==typeof e.metadata)throw TypeError(".ForwardMsg.metadata: object expected");t.metadata=l.ForwardMsgMetadata.fromObject(e.metadata)}if(null!=e.newSession){if("object"!==typeof e.newSession)throw TypeError(".ForwardMsg.newSession: object expected");t.newSession=l.NewSession.fromObject(e.newSession)}if(null!=e.delta){if("object"!==typeof e.delta)throw TypeError(".ForwardMsg.delta: object expected");t.delta=l.Delta.fromObject(e.delta)}if(null!=e.pageInfoChanged){if("object"!==typeof e.pageInfoChanged)throw TypeError(".ForwardMsg.pageInfoChanged: object expected");t.pageInfoChanged=l.PageInfo.fromObject(e.pageInfoChanged)}if(null!=e.pageConfigChanged){if("object"!==typeof e.pageConfigChanged)throw TypeError(".ForwardMsg.pageConfigChanged: object expected");t.pageConfigChanged=l.PageConfig.fromObject(e.pageConfigChanged)}switch(e.scriptFinished){case"FINISHED_SUCCESSFULLY":case 0:t.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:t.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:t.scriptFinished=2}if(null!=e.gitInfoChanged){if("object"!==typeof e.gitInfoChanged)throw TypeError(".ForwardMsg.gitInfoChanged: object expected");t.gitInfoChanged=l.GitInfo.fromObject(e.gitInfoChanged)}if(null!=e.pageProfile){if("object"!==typeof e.pageProfile)throw TypeError(".ForwardMsg.pageProfile: object expected");t.pageProfile=l.PageProfile.fromObject(e.pageProfile)}if(null!=e.sessionStateChanged){if("object"!==typeof e.sessionStateChanged)throw TypeError(".ForwardMsg.sessionStateChanged: object expected");t.sessionStateChanged=l.SessionState.fromObject(e.sessionStateChanged)}if(null!=e.sessionEvent){if("object"!==typeof e.sessionEvent)throw TypeError(".ForwardMsg.sessionEvent: object expected");t.sessionEvent=l.SessionEvent.fromObject(e.sessionEvent)}if(null!=e.pageNotFound){if("object"!==typeof e.pageNotFound)throw TypeError(".ForwardMsg.pageNotFound: object expected");t.pageNotFound=l.PageNotFound.fromObject(e.pageNotFound)}if(null!=e.pagesChanged){if("object"!==typeof e.pagesChanged)throw TypeError(".ForwardMsg.pagesChanged: object expected");t.pagesChanged=l.PagesChanged.fromObject(e.pagesChanged)}return null!=e.refHash&&(t.refHash=String(e.refHash)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.hash="",n.metadata=null,n.debugLastBackmsgId=""),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=e.hash),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=l.ForwardMsgMetadata.toObject(e.metadata,t)),null!=e.newSession&&e.hasOwnProperty("newSession")&&(n.newSession=l.NewSession.toObject(e.newSession,t),t.oneofs&&(n.type="newSession")),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=l.Delta.toObject(e.delta,t),t.oneofs&&(n.type="delta")),null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")&&(n.scriptFinished=t.enums===String?l.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,t.oneofs&&(n.type="scriptFinished")),null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")&&(n.sessionStateChanged=l.SessionState.toObject(e.sessionStateChanged,t),t.oneofs&&(n.type="sessionStateChanged")),null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")&&(n.sessionEvent=l.SessionEvent.toObject(e.sessionEvent,t),t.oneofs&&(n.type="sessionEvent")),null!=e.refHash&&e.hasOwnProperty("refHash")&&(n.refHash=e.refHash,t.oneofs&&(n.type="refHash")),null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")&&(n.pageInfoChanged=l.PageInfo.toObject(e.pageInfoChanged,t),t.oneofs&&(n.type="pageInfoChanged")),null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")&&(n.pageConfigChanged=l.PageConfig.toObject(e.pageConfigChanged,t),t.oneofs&&(n.type="pageConfigChanged")),null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")&&(n.gitInfoChanged=l.GitInfo.toObject(e.gitInfoChanged,t),t.oneofs&&(n.type="gitInfoChanged")),null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")&&(n.pageNotFound=l.PageNotFound.toObject(e.pageNotFound,t),t.oneofs&&(n.type="pageNotFound")),null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")&&(n.pagesChanged=l.PagesChanged.toObject(e.pagesChanged,t),t.oneofs&&(n.type="pagesChanged")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),null!=e.pageProfile&&e.hasOwnProperty("pageProfile")&&(n.pageProfile=l.PageProfile.toObject(e.pageProfile,t),t.oneofs&&(n.type="pageProfile")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.ScriptFinishedStatus=function(){var 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}()),O=l.ForwardMsgMetadata=function(){function e(e){if(this.deltaPath=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cacheable=!1,e.prototype.deltaPath=i.emptyArray,e.prototype.elementDimensionSpec=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.cacheable&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),null!=e.deltaPath&&e.deltaPath.length){t.uint32(18).fork();for(var n=0;n<e.deltaPath.length;++n)t.uint32(e.deltaPath[n]);t.ldelim()}return null!=e.elementDimensionSpec&&Object.hasOwnProperty.call(e,"elementDimensionSpec")&&l.ElementDimensionSpec.encode(e.elementDimensionSpec,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsgMetadata;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.cacheable=e.bool();break;case 2:if(r.deltaPath&&r.deltaPath.length||(r.deltaPath=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.deltaPath.push(e.uint32());else r.deltaPath.push(e.uint32());break;case 3:r.elementDimensionSpec=l.ElementDimensionSpec.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cacheable&&e.hasOwnProperty("cacheable")&&"boolean"!==typeof e.cacheable)return"cacheable: boolean expected";if(null!=e.deltaPath&&e.hasOwnProperty("deltaPath")){if(!Array.isArray(e.deltaPath))return"deltaPath: array expected";for(var t=0;t<e.deltaPath.length;++t)if(!i.isInteger(e.deltaPath[t]))return"deltaPath: integer[] expected"}if(null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")){var n=l.ElementDimensionSpec.verify(e.elementDimensionSpec);if(n)return"elementDimensionSpec."+n}return null},e.fromObject=function(e){if(e instanceof l.ForwardMsgMetadata)return e;var t=new l.ForwardMsgMetadata;if(null!=e.cacheable&&(t.cacheable=Boolean(e.cacheable)),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(var n=0;n<e.deltaPath.length;++n)t.deltaPath[n]=e.deltaPath[n]>>>0}
1if(null!=e.elementDimensionSpec){if("object"!==typeof e.elementDimensionSpec)throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");t.elementDimensionSpec=l.ElementDimensionSpec.fromObject(e.elementDimensionSpec)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.deltaPath=[]),t.defaults&&(n.cacheable=!1,n.elementDimensionSpec=null),null!=e.cacheable&&e.hasOwnProperty("cacheable")&&(n.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){n.deltaPath=[];for(var r=0;r<e.deltaPath.length;++r)n.deltaPath[r]=e.deltaPath[r]}return null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")&&(n.elementDimensionSpec=l.ElementDimensionSpec.toObject(e.elementDimensionSpec,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),w=(l.ElementDimensionSpec=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.width=0,e.prototype.height=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(8).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ElementDimensionSpec;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.width=e.uint32();break;case 2:r.height=e.uint32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.width&&e.hasOwnProperty("width")&&!i.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null},e.fromObject=function(e){if(e instanceof l.ElementDimensionSpec)return e;var t=new l.ElementDimensionSpec;return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.width=0,n.height=0),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.GitInfo=function(){function e(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.repository="",e.prototype.branch="",e.prototype.module="",e.prototype.untrackedFiles=i.emptyArray,e.prototype.uncommittedFiles=i.emptyArray,e.prototype.state=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.repository&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),null!=e.branch&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),null!=e.untrackedFiles&&e.untrackedFiles.length)for(var n=0;n<e.untrackedFiles.length;++n)t.uint32(34).string(e.untrackedFiles[n]);if(null!=e.uncommittedFiles&&e.uncommittedFiles.length)for(var r=0;r<e.uncommittedFiles.length;++r)t.uint32(42).string(e.uncommittedFiles[r]);return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.GitInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.repository=e.string();break;case 2:r.branch=e.string();break;case 3:r.module=e.string();break;case 4:r.untrackedFiles&&r.untrackedFiles.length||(r.untrackedFiles=[]),r.untrackedFiles.push(e.string());break;case 5:r.uncommittedFiles&&r.uncommittedFiles.length||(r.uncommittedFiles=[]),r.uncommittedFiles.push(e.string());break;case 6:r.state=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.repository&&e.hasOwnProperty("repository")&&!i.isString(e.repository)
vendor: 16,384 bytes, line 1
1)return"repository: string expected";if(null!=e.branch&&e.hasOwnProperty("branch")&&!i.isString(e.branch))return"branch: string expected";if(null!=e.module&&e.hasOwnProperty("module")&&!i.isString(e.module))return"module: string expected";if(null!=e.untrackedFiles&&e.hasOwnProperty("untrackedFiles")){if(!Array.isArray(e.untrackedFiles))return"untrackedFiles: array expected";for(var t=0;t<e.untrackedFiles.length;++t)if(!i.isString(e.untrackedFiles[t]))return"untrackedFiles: string[] expected"}if(null!=e.uncommittedFiles&&e.hasOwnProperty("uncommittedFiles")){if(!Array.isArray(e.uncommittedFiles))return"uncommittedFiles: array expected";for(var n=0;n<e.uncommittedFiles.length;++n)if(!i.isString(e.uncommittedFiles[n]))return"uncommittedFiles: string[] expected"}if(null!=e.state&&e.hasOwnProperty("state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.GitInfo)return e;var t=new l.GitInfo;if(null!=e.repository&&(t.repository=String(e.repository)),null!=e.branch&&(t.branch=String(e.branch)),null!=e.module&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(var n=0;n<e.untrackedFiles.length;++n)t.untrackedFiles[n]=String(e.untrackedFiles[n])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(var r=0;r<e.uncommittedFiles.length;++r)t.uncommittedFiles[r]=String(e.uncommittedFiles[r])}switch(e.state){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}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.untrackedFiles=[],n.uncommittedFiles=[]),t.defaults&&(n.repository="",n.branch="",n.module="",n.state=t.enums===String?"DEFAULT":0),null!=e.repository&&e.hasOwnProperty("repository")&&(n.repository=e.repository),null!=e.branch&&e.hasOwnProperty("branch")&&(n.branch=e.branch),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){n.untrackedFiles=[];for(var r=0;r<e.untrackedFiles.length;++r)n.untrackedFiles[r]=e.untrackedFiles[r]}if(e.uncommittedFiles&&e.uncommittedFiles.length){n.uncommittedFiles=[];for(var a=0;a<e.uncommittedFiles.length;++a)n.uncommittedFiles[a]=e.uncommittedFiles[a]}return null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?l.GitInfo.GitStates[e.state]:e.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.GitStates=function(){var e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="HEAD_DETACHED"]=1,t[e[2]="AHEAD_OF_REMOTE"]=2,t}(),e}()),v=(l.GraphVizChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.GraphVizChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.spec=e.string();break;case 4:r.useContainerWidth=e.bool();break;case 5:r.elementId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!i.isString(e.spec)?"spec: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!i.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.GraphVizChart)return e;var t=new l.GraphVizChart;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.spec="",n.useContainerWidth=!1,n.elementId=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Heading=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag="",e.prototype.anchor="",e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.tag&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),null!=e.anchor&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Heading;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.tag=e.string();break;case 2:r.anchor=e.string();break;case 3:r.body=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.tag&&e.hasOwnProperty("tag")&&!i.isString(e.tag)?"tag: string expected":null!=e.anchor&&e.hasOwnProperty("anchor")&&!i.isString(e.anchor)?"anchor: string expected":null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Heading)return e;var t=new l.Heading;return null!=e.tag&&(t.tag=String(e.tag)),null!=e.anchor&&(t.anchor=String(e.anchor)),null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.tag="",n.anchor="",n.body=""),null!=e.tag&&e.hasOwnProperty("tag")&&(n.tag=e.tag),null!=e.anchor&&e.hasOwnProperty("anchor")&&(n.anchor=e.anchor),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.IFrame=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.src=null,e.prototype.srcdoc=null,e.prototype.width=0,e.prototype.hasWidth=!1,e.prototype.height=0,e.prototype.scrolling=!1,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["src","srcdoc"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.src&&Object.hasOwnProperty.call(e,"src")&&t.uint32(10).string(e.src),null!=e.srcdoc&&Object.hasOwnProperty.call(e,"srcdoc")&&t.uint32(18).string(e.srcdoc),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(29).float(e.width),null!=e.hasWidth&&Object.hasOwnProperty.call(e,"hasWidth")&&t.uint32(32).bool(e.hasWidth),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(45).float(e.height),null!=e.scrolling&&Object.hasOwnProperty.call(e,"scrolling")&&t.uint32(56).bool(e.scrolling),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.IFrame;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.src=e.string();break;case 2:r.srcdoc=e.string();break;case 3:r.width=e.float();break;case 4:r.hasWidth=e.bool();break;case 5:r.height=e.float();break;case 7:r.scrolling=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.src&&e.hasOwnProperty("src")&&(t.type=1,!i.isString(e.src)))return"src: string expected";if(null!=e.srcdoc&&e.hasOwnProperty("srcdoc")){if(1===t.type)return"type: multiple values";if(t.type=1,!i.isString(e.srcdoc))return"srcdoc: string expected"}return null!=e.width&&e.hasOwnProperty("width")&&"number"!==typeof e.width?"width: number expected":null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&"boolean"!==typeof e.hasWidth?"hasWidth: boolean expected":null!=e.height&&e.hasOwnProperty("height")&&"number"!==typeof e.height?"height: number expected":null!=e.scrolling&&e.hasOwnProperty("scrolling")&&"boolean"!==typeof e.scrolling?"scrolling: boolean expected":null},e.fromObject=function(e){if(e instanceof l.IFrame)return e;var t=new l.IFrame;return null!=e.src&&(t.src=String(e.src)),null!=e.srcdoc&&(t.srcdoc=String(e.srcdoc)),null!=e.width&&(t.width=Number(e.width)),null!=e.hasWidth&&(t.hasWidth=Boolean(e.hasWidth)),null!=e.height&&(t.height=Number(e.height)),null!=e.scrolling&&(t.scrolling=Boolean(e.scrolling)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.width=0,n.hasWidth=!1,n.height=0,n.scrolling=!1),null!=e.src&&e.hasOwnProperty("src")&&(n.src=e.src,t.oneofs&&(n.type="src")),null!=e.srcdoc&&e.hasOwnProperty("srcdoc")&&(n.srcdoc=e.srcdoc,t.oneofs&&(n.type="srcdoc")),null!=e.width&&e.hasOwnProperty("width")&&(n.width=t.json&&!isFinite(e.width)?String(e.width):e.width),null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&(n.hasWidth=e.hasWidth),null!=e.height&&e.hasOwnProperty("height")&&(n.height=t.json&&!isFinite(e.height)?String(e.height):e.height),null!=e.scrolling&&e.hasOwnProperty("scrolling")&&(n.scrolling=e.scrolling),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Image=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.markup="",e.prototype.url="",e.prototype.caption="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),null!=e.markup&&Object.hasOwnProperty.call(e,"markup")&&t.uint32(34).string(e.markup),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Image;e.pos<n;){var o=e.uint32();switch(o>>>3){case 4:r.markup=e.string();break;case 3:r.url=e.string();break;case 2:r.caption=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.markup&&e.hasOwnProperty("markup")&&!i.isString(e.markup)?"markup: string expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null},e.fromObject=function(e){if(e instanceof l.Image)return e;var t=new l.Image;return null!=e.markup&&(t.markup=String(e.markup)),null!=e.url&&(t.url=String(e.url)),null!=e.caption&&(t.caption=String(e.caption)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.caption="",n.url="",n.markup=""),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.markup&&e.hasOwnProperty("markup")&&(n.markup=e.markup),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ImageList=function(){function e(e){if(this.imgs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imgs=i.emptyArray,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.imgs&&e.imgs.length)for(var n=0;n<e.imgs.length;++n)l.Image.encode(e.imgs[n],t.uint32(10).fork()).ldelim();return null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(16).int32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ImageList;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.imgs&&r.imgs.length||(r.imgs=[]),r.imgs.push(l.Image.decode(e,e.uint32()));break;case 2:r.width=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(!Array.isArray(e.imgs))return"imgs: array expected";for(var t=0;t<e.imgs.length;++t){var n=l.Image.verify(e.imgs[t]);if(n)return"imgs."+n}}return null!=e.width&&e.hasOwnProperty("width")&&!i.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ImageList)return e;var t=new l.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(var n=0;n<e.imgs.length;++n){if("object"!==typeof e.imgs[n])throw TypeError(".ImageList.imgs: object expected");t.imgs[n]=l.Image.fromObject(e.imgs[n])}}return null!=e.width&&(t.width=0|e.width),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.imgs=[]),t.defaults&&(n.width=0),e.imgs&&e.imgs.length){n.imgs=[];for(var r=0;r<e.imgs.length;++r)n.imgs[r]=l.Image.toObject(e.imgs[r],t)}return null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Json=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Json;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.body=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body)?"body: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Json)return e;var t=new l.Json;return null!=e.body&&(t.body=String(e.body)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body="",n.expanded=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.LabelVisibilityMessage=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.LabelVisibilityMessage;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.value=e.in
1t32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value"))switch(e.value){default:return"value: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.LabelVisibilityMessage)return e;var t=new l.LabelVisibilityMessage;switch(e.value){case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value=t.enums===String?"VISIBLE":0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.enums===String?l.LabelVisibilityMessage.LabelVisibilityOptions[e.value]:e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.LabelVisibilityOptions=function(){var e={},t=Object.create(e);return t[e[0]="VISIBLE"]=0,t[e[1]="HIDDEN"]=1,t[e[2]="COLLAPSED"]=2,t}(),e}()),j=(l.Markdown=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.allowHtml=!1,e.prototype.isCaption=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.allowHtml&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),null!=e.isCaption&&Object.hasOwnProperty.call(e,"isCaption")&&t.uint32(24).bool(e.isCaption),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Markdown;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.body=e.string();break;case 2:r.allowHtml=e.bool();break;case 3:r.isCaption=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body)?"body: string expected":null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&"boolean"!==typeof e.allowHtml?"allowHtml: boolean expected":null!=e.isCaption&&e.hasOwnProperty("isCaption")&&"boolean"!==typeof e.isCaption?"isCaption: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Markdown)return e;var t=new l.Markdown;return null!=e.body&&(t.body=String(e.body)),null!=e.allowHtml&&(t.allowHtml=Boolean(e.allowHtml)),null!=e.isCaption&&(t.isCaption=Boolean(e.isCaption)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body="",n.allowHtml=!1,n.isCaption=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&(n.allowHtml=e.allowHtml),null!=e.isCaption&&e.hasOwnProperty("isCaption")&&(n.isCaption=e.isCaption),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Metric=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.body="",e.prototype.delta="",e.prototype.direction=0,e.prototype.color=0,e.prototype.help="",e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),null!=e.direction&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Metric;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.label=e.string();break;case 2:r.body=e.string();break;case 3:r.delta=e.string();break;case 4:r.direction=e.int32();break;case 5:r.color=e.int32();break;case 6:r.help=e.string();break;case 7:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.delta&&e.hasOwnProperty("delta")&&!i.isString(e.delta))return"delta: string expected";if(null!=e.direction&&e.hasOwnProperty("direction"))switch(e.direction){default:return"direction: enum value expected";case 0:case 1:case 2:}if(null!=e.color&&e.hasOwnProperty("color"))switch(e.color){default:return"color: enum value expected";case 0:case 1:case 2:}if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Metric)return e;var t=new l.Metric;switch(null!=e.label&&(t.label=String(e.label)),null!=e.body&&(t.body=String(e.body)),null!=e.delta&&(t.delta=String(e.delta)),e.direction){case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2}switch(e.color){case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2}if(null!=e.help&&(t.help=String(e.help)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Metric.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.label="",n.body="",n.delta="",n.direction=t.enums===String?"DOWN":0,n.color=t.enums===String?"RED":0,n.help="",n.labelVisibility=null),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=e.delta),null!=e.direction&&e.hasOwnProperty("direction")&&(n.direction=t.enums===String?l.Metric.MetricDirection[e.direction]:e.direction),null!=e.color&&e.hasOwnProperty("color")&&(n.color=t.enums===String?l.Metric.MetricColor[e.color]:e.color),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MetricColor=function(){var e={},t=Object.create(e);return t[e[0]="RED"]=0,t[e[1]="GREEN"]=1,t[e[2]="GRAY"]=2,t}(),e.MetricDirection=function(){var e={},t=Object.create(e);return t[e[0]="DOWN"]=0,t[e[1]="UP"]=1,t[e[2]="NONE"]=2,t}(),e}()),S=(l.MultiSelect=function(){function e(e){if(this.default=[],this.options=[],this.value=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=i.emptyArray,e.prototype.options=i.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=i.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.prototype.maxSelections=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length){t.uint32(26).fork();for(var n=0;n<e.default.length;++n)t.int32(e.default[n]);t.ldelim()}if(null!=e.options&&e.options.length)for(var r=0;r<e.options.length;++r)t.uint32(34).string(e.options[r]);if(null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&e.value.length){t.uint32(58).fork();for(var a=0;a<e.value.length;++a)t.int32(e.value[a]);t.ldelim()}return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),null!=e.maxSelections&&Object.hasOwnProperty.call(e,"maxSelections")&&t.uint32(88).int32(e.maxSelections),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.MultiSelect;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:if(r.default&&r.default.length||(r.default=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.default.push(e.int32());else r.default.push(e.int32());break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:if(r.value&&r.value.length||(r.value=[]),2===(7&o))for(var s=e.uint32()+e.pos;e.pos<s;)r.value.push(e.int32());else r.value.push(e.int32());break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;case 11:r.maxSelections=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(var t=0;t<e.default.length;++t)if(!i.isInteger(e.default[t]))return"default: integer[] expected"}if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var n=0;n<e.options.length;++n)if(!i.isString(e.options[n]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var r=0;r<e.value.length;++r)if(!i.isInteger(e.value[r]))return"value: integer[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var a=l.LabelVisibilityMessage.verify(e.labelVisibility);if(a)return"labelVisibility."+a}return null!=e.maxSelections&&e.hasOwnProperty("maxSelections")&&!i.isInteger(e.maxSelections)?"maxSelections: integer expected":null},e.fromObject=function(e){if(e instanceof l.MultiSelect)return e;var t=new l.MultiSelect;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".MultiSelect.default: array expected");t.default=[];for(var n=0;n<e.default.length;++n)t.default[n]=0|e.default[n]}if(e.options){if(!Array.isArray(e.options))throw TypeError(".MultiSelect.options: array expected");t.options=[];for(var r=0;r<e.options.length;++r)t.options[r]=String(e.options[r])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".MultiSelect.value: array expected");t.value=[];for(var a=0;a<e.value.length;++a)t.value[a]=0|e.value[a]}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".MultiSelect.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return null!=e.maxSelections&&(t.maxSelections=0|e.maxSelections),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.default=[],n.options=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null,n.maxSelections=0),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(var r=0;r<e.default.length;++r)n.default[r]=e.default[r]}if(e.options&&e.options.length){n.options=[];for(var a=0;a<e.options.length;++a)n.options[a]=e.options[a]}if(null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(var o=0;o<e.value.length;++o)n.value[o]=e.value[o]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),null!=e.maxSelections&&e.hasOwnProperty("maxSelections")&&(n.maxSelections=e.maxSelections),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.NamedDataSet=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NamedDataSet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.DataFrame.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.NamedDataSet)return e;var t=new l.NamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".NamedDataSet.data: object expected");t.data=l.DataFrame.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),x=(l.NewSession=function(){function e(e){if(this.appPages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.initialize=null,e.prototype.scriptRunId="",e.prototype.name="",e.prototype.mainScriptPath="",e.prototype.config=null,e.prototype.customTheme=null,e.prototype.appPages=i.emptyArray,e.prototype.pageScriptHash="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.initialize&&Object.hasOwnProperty.call(e,"initialize")&&l.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),null!=e.scriptRunId&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.mainScriptPath&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&l.Config.encode(e.config,t.uint32(50).fork()).ldelim(),null!=e.customTheme&&Object.hasOwnProperty.call(e,"customTheme")&&l.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),null!=e.appPages&&e.appPages.length)for(var n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(66).fork()).ldelim();return null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NewSession;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.initialize=l.Initialize.decode(e,e.uint32());break;case 2:r.scriptRunId=e.string();break;case 3:r.name=e.string();break;case 4:r.mainScriptPath=e.string();break;case 6:r.config=l.Config.decode(e,e.uint32());break;case 7:r.customTheme=l.CustomThemeConfig.decode(e,e.uint32());break;case 8:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;case 9:r.pageScriptHash=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.initialize&&e.hasOwnProperty("initialize")){var t=l.Initialize.verify(e.initialize);if(t)return"initialize."+t}if(null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&!i.isString(e.scriptRunId))return"scriptRunId: string expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&!i.isString(e.mainScriptPath))return"mainScriptPath: string expected";if(null!=e.config&&e.hasOwnProperty("config")){var n=l.Config.verify(e.config);if(n)return"config."+n}if(null!=e.customTheme&&e.hasOwnProperty("customTheme")){var r=l.CustomThemeConfig.verify(e.customTheme);if(r)return"customTheme."+r}if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(var a=0;a<e.appPages.length;++a){var o=l.AppPage.verify(e.appPages[a]);if(o)return"appPages."+o}}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!i.isString(e.pageScriptHash)?"pageScriptHash: string expected":null},e.fromObject=function(e){if(e instanceof l.NewSession)return e;var t=new l.NewSession;if(null!=e.initialize){if("object"!==typeof e.initialize)throw TypeError(".NewSession.initialize: object expected");t.initialize=l.Initialize.fromObject(e.initialize)}
1if(null!=e.scriptRunId&&(t.scriptRunId=String(e.scriptRunId)),null!=e.name&&(t.name=String(e.name)),null!=e.mainScriptPath&&(t.mainScriptPath=String(e.mainScriptPath)),null!=e.config){if("object"!==typeof e.config)throw TypeError(".NewSession.config: object expected");t.config=l.Config.fromObject(e.config)}if(null!=e.customTheme){if("object"!==typeof e.customTheme)throw TypeError(".NewSession.customTheme: object expected");t.customTheme=l.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(var n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".NewSession.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.appPages=[]),t.defaults&&(n.initialize=null,n.scriptRunId="",n.name="",n.mainScriptPath="",n.config=null,n.customTheme=null,n.pageScriptHash=""),null!=e.initialize&&e.hasOwnProperty("initialize")&&(n.initialize=l.Initialize.toObject(e.initialize,t)),null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&(n.scriptRunId=e.scriptRunId),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&(n.mainScriptPath=e.mainScriptPath),null!=e.config&&e.hasOwnProperty("config")&&(n.config=l.Config.toObject(e.config,t)),null!=e.customTheme&&e.hasOwnProperty("customTheme")&&(n.customTheme=l.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){n.appPages=[];for(var r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Initialize=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userInfo=null,e.prototype.environmentInfo=null,e.prototype.sessionState=null,e.prototype.commandLine="",e.prototype.sessionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.userInfo&&Object.hasOwnProperty.call(e,"userInfo")&&l.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),null!=e.environmentInfo&&Object.hasOwnProperty.call(e,"environmentInfo")&&l.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),null!=e.sessionState&&Object.hasOwnProperty.call(e,"sessionState")&&l.SessionState.encode(e.sessionState,t.uint32(34).fork()).ldelim(),null!=e.commandLine&&Object.hasOwnProperty.call(e,"commandLine")&&t.uint32(42).string(e.commandLine),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Initialize;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.userInfo=l.UserInfo.decode(e,e.uint32());break;case 3:r.environmentInfo=l.EnvironmentInfo.decode(e,e.uint32());break;case 4:r.sessionState=l.SessionState.decode(e,e.uint32());break;case 5:r.commandLine=e.string();break;case 6:r.sessionId=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.userInfo&&e.hasOwnProperty("userInfo")){var t=l.UserInfo.verify(e.userInfo);if(t)return"userInfo."+t}if(null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")){var n=l.EnvironmentInfo.verify(e.environmentInfo);if(n)return"environmentInfo."+n}if(null!=e.sessionState&&e.hasOwnProperty("sessionState")){var r=l.SessionState.verify(e.sessionState);if(r)return"sessionState."+r}return null!=e.commandLine&&e.hasOwnProperty("commandLine")&&!i.isString(e.commandLine)?"commandLine: string expected":null!=e.sessionId&&e.hasOwnProperty("sessionId")&&!i.isString(e.sessionId)?"sessionId: string expected":null},e.fromObject=function(e){if(e instanceof l.Initialize)return e;var t=new l.Initialize;if(null!=e.userInfo){if("object"!==typeof e.userInfo)throw TypeError(".Initialize.userInfo: object expected");t.userInfo=l.UserInfo.fromObject(e.userInfo)}if(null!=e.environmentInfo){if("object"!==typeof e.environmentInfo)throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=l.EnvironmentInfo.fromObject(e.environmentInfo)}if(null!=e.sessionState){if("object"!==typeof e.sessionState)throw TypeError(".Initialize.sessionState: object expected");t.sessionState=l.SessionState.fromObject(e.sessionState)}return null!=e.commandLine&&(t.commandLine=String(e.commandLine)),null!=e.sessionId&&(t.sessionId=String(e.sessionId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.userInfo=null,n.environmentInfo=null,n.sessionState=null,n.commandLine="",n.sessionId=""),null!=e.userInfo&&e.hasOwnProperty("userInfo")&&(n.userInfo=l.UserInfo.toObject(e.userInfo,t)),null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")&&(n.environmentInfo=l.EnvironmentInfo.toObject(e.environmentInfo,t)),null!=e.sessionState&&e.hasOwnProperty("sessionState")&&(n.sessionState=l.SessionState.toObject(e.sessionState,t)),null!=e.commandLine&&e.hasOwnProperty("commandLine")&&(n.commandLine=e.commandLine),null!=e.sessionId&&e.hasOwnProperty("sessionId")&&(n.sessionId=e.sessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Config=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.mapboxToken="",e.prototype.allowRunOnSave=!1,e.prototype.hideTopBar=!1,e.prototype.hideSidebarNav=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.gatherUsageStats&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),null!=e.maxCachedMessageAge&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),null!=e.mapboxToken&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(34).string(e.mapboxToken),null!=e.allowRunOnSave&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),null!=e.hideTopBar&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),null!=e.hideSidebarNav&&Ob
1ject.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Config;e.pos<n;){var o=e.uint32();switch(o>>>3){case 2:r.gatherUsageStats=e.bool();break;case 3:r.maxCachedMessageAge=e.int32();break;case 4:r.mapboxToken=e.string();break;case 5:r.allowRunOnSave=e.bool();break;case 6:r.hideTopBar=e.bool();break;case 7:r.hideSidebarNav=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&"boolean"!==typeof e.gatherUsageStats?"gatherUsageStats: boolean expected":null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&!i.isInteger(e.maxCachedMessageAge)?"maxCachedMessageAge: integer expected":null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&!i.isString(e.mapboxToken)?"mapboxToken: string expected":null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&"boolean"!==typeof e.allowRunOnSave?"allowRunOnSave: boolean expected":null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&"boolean"!==typeof e.hideTopBar?"hideTopBar: boolean expected":null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&"boolean"!==typeof e.hideSidebarNav?"hideSidebarNav: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Config)return e;var t=new l.Config;return null!=e.gatherUsageStats&&(t.gatherUsageStats=Boolean(e.gatherUsageStats)),null!=e.maxCachedMessageAge&&(t.maxCachedMessageAge=0|e.maxCachedMessageAge),null!=e.mapboxToken&&(t.mapboxToken=String(e.mapboxToken)),null!=e.allowRunOnSave&&(t.allowRunOnSave=Boolean(e.allowRunOnSave)),null!=e.hideTopBar&&(t.hideTopBar=Boolean(e.hideTopBar)),null!=e.hideSidebarNav&&(t.hideSidebarNav=Boolean(e.hideSidebarNav)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.mapboxToken="",n.allowRunOnSave=!1,n.hideTopBar=!1,n.hideSidebarNav=!1),null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&(n.gatherUsageStats=e.gatherUsageStats),null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&(n.maxCachedMessageAge=e.maxCachedMessageAge),null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&(n.mapboxToken=e.mapboxToken),null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&(n.allowRunOnSave=e.allowRunOnSave),null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&(n.hideTopBar=e.hideTopBar),null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&(n.hideSidebarNav=e.hideSidebarNav),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CustomThemeConfig=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.primaryColor="",e.prototype.secondaryBackgroundColor="",e.prototype.backgroundColor="",e.prototype.textColor="",e.prototype.font=0,e.prototype.base=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.primaryColor&&Object.hasOwnProperty.call(e,"primaryColor")&&t.uint32(10).string(e.primaryColor),null!=e.secondaryBackgroundColor&&Object.hasOwnProperty.call(e,"secondaryBackgroundColor")&&t.uint32(18).string(e.secondaryBackgroundColor),null!=e.backgroundColor&&Object.hasOwnProperty.call(e,"backgroundColor")&&t.uint32(26).string(e.backgroundColor),null!=e.textColor&&Object.hasOwnProperty.call(e,"textColor")&&t.uint32(34).string(e.textColor),null!=e.font&&Object.hasOwnProperty.call(e,"font")&&t.uint32(40).int32(e.font),null!=e.base&&Object.hasOwnProperty.call(e,"base")&&t.uint32(48).int32(e.base),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CustomThemeConfig;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.primaryColor=e.string();break;
1case 2:r.secondaryBackgroundColor=e.string();break;case 3:r.backgroundColor=e.string();break;case 4:r.textColor=e.string();break;case 5:r.font=e.int32();break;case 6:r.base=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&!i.isString(e.primaryColor))return"primaryColor: string expected";if(null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&!i.isString(e.secondaryBackgroundColor))return"secondaryBackgroundColor: string expected";if(null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&!i.isString(e.backgroundColor))return"backgroundColor: string expected";if(null!=e.textColor&&e.hasOwnProperty("textColor")&&!i.isString(e.textColor))return"textColor: string expected";if(null!=e.font&&e.hasOwnProperty("font"))switch(e.font){default:return"font: enum value expected";case 0:case 1:case 2:}if(null!=e.base&&e.hasOwnProperty("base"))switch(e.base){default:return"base: enum value expected";case 0:case 1:}return null},e.fromObject=function(e){if(e instanceof l.CustomThemeConfig)return e;var t=new l.CustomThemeConfig;switch(null!=e.primaryColor&&(t.primaryColor=String(e.primaryColor)),null!=e.secondaryBackgroundColor&&(t.secondaryBackgroundColor=String(e.secondaryBackgroundColor)),null!=e.backgroundColor&&(t.backgroundColor=String(e.backgroundColor)),null!=e.textColor&&(t.textColor=String(e.textColor)),e.font){case"SANS_SERIF":case 0:t.font=0;break;case"SERIF":case 1:t.font=1;break;case"MONOSPACE":case 2:t.font=2}switch(e.base){case"LIGHT":case 0:t.base=0;break;case"DARK":case 1:t.base=1}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.primaryColor="",n.secondaryBackgroundColor="",n.backgroundColor="",n.textColor="",n.font=t.enums===String?"SANS_SERIF":0,n.base=t.enums===String?"LIGHT":0),null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&(n.primaryColor=e.primaryColor),null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&(n.secondaryBackgroundColor=e.secondaryBackgroundColor),null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&(n.backgroundColor=e.backgroundColor),null!=e.textColor&&e.hasOwnProperty("textColor")&&(n.textColor=e.textColor),null!=e.font&&e.hasOwnProperty("font")&&(n.font=t.enums===String?l.CustomThemeConfig.FontFamily[e.font]:e.font),null!=e.base&&e.hasOwnProperty("base")&&(n.base=t.enums===String?l.CustomThemeConfig.BaseTheme[e.base]:e.base),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.BaseTheme=function(){var e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t}(),e.FontFamily=function(){var e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t}(),e}()),k=(l.UserInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.installationId="",e.prototype.installationIdV3="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.installationId&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(18).string(e.email),null!=e.installationIdV3&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UserInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.installationId=e.string();break;case 5:r.installationIdV3=e.string();break;case 2:r.email=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.installationId&&e.hasOwnProperty("installationId")&&!i.isString(e.installationId)?"installationId: string expected":null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&!i.isString(e.installationIdV3)?"installationIdV3: string expected":null!=e.email&&e.hasOwnProperty("email")&&!i.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof l.UserInfo)return e;var t=new l.UserInfo;return null!=e.installationId&&(t.installationId=String(e.installationId)),null!=e.installationIdV3&&(t.installationIdV3=String(e.installationIdV3)),null!=e.email&&(t.email=String(e.email)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.installationId="",n.email="",n.installationIdV3=""),null!=e.installationId&&e.hasOwnProperty("installationId")&&(n.installationId=e.installationId),null!=e.email&&e.hasOwnProperty("email")&&(n.email=e.email),null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&(n.installationIdV3=e.installationIdV3),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.EnvironmentInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.streamlitVersion="",e.prototype.pythonVersion="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.streamlitVersion&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),null!=e.pythonVersion&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.EnvironmentInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.streamlitVersion=e.string();break;case 2:r.pythonVersion=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&!i.isString(e.streamlitVersion)?"streamlitVersion: string expected":null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&!i.isString(e.pythonVersion)?"pythonVersion: string expected":null},e.fromObject=function(e){if(e instanceof l.EnvironmentInfo)return e;var t=new l.EnvironmentInfo;return null!=e.streamlitVersion&&(t.streamlitVersion=String(e.streamlitVersion)),null!=e.pythonVersion&&(t.pythonVersion=String(e.pythonVersion)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.streamlitVersion="",n.pythonVersion=""),null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&(n.streamlitVersion=e.streamlitVersion),null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&(n.pythonVersion=e.pythonVersion),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.NumberInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.formId="",e.prototype.format="",e.prototype.hasMin=!1,e.prototype.hasMax=!1,e.prototype.dataType=0,e.prototype.default=0,e.prototype.step=0,e.prototype.min=0,e.prototype.max=0,e.prototype.help="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(26).string(e.formId),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(66).string(e.format),null!=e.hasMin&&Object.hasOwnProperty.call(e,"hasMin")&&t.uint32(88).bool(e.hasMin),null!=e.hasMax&&Object.hasOwnProperty.call(e,"hasMax")&&t.uint32(96).bool(e.hasMax),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(104).int32(e.dataType),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(113).double(e.default),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(121).double(e.step),null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(129).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(137).double(e.max),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(146).string(e.help),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(153).double(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(160).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(168).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(178).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NumberInput;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.formId=e.string();break;case 8:r.format=e.string();break;case 11:r.hasMin=e.bool();break;case 12:r.hasMax=e.bool();break;case 13:r.dataType=e.int32();break;case 14:r.default=e.double();break;case 15:r.step=e.double();break;case 16:r.min=e.double();break;case 17:r.max=e.double();break;case 18:r.help=e.string();break;case 19:r.value=e.double();break;case 20:r.setValue=e.bool();break;case 21:r.disabled=e.bool();break;case 22:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!i.isString(e.format))return"format: string expected";if(null!=e.hasMin&&e.hasOwnProperty("hasMin")&&"boolean"!==typeof e.hasMin)return"hasMin: boolean expected";if(null!=e.hasMax&&e.hasOwnProperty("hasMax")&&"boolean"!==typeof e.hasMax)return"hasMax: boolean expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:}
1if(null!=e.default&&e.hasOwnProperty("default")&&"number"!==typeof e.default)return"default: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: number expected";if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.NumberInput)return e;var t=new l.NumberInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.format&&(t.format=String(e.format)),null!=e.hasMin&&(t.hasMin=Boolean(e.hasMin)),null!=e.hasMax&&(t.hasMax=Boolean(e.hasMax)),e.dataType){case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1}if(null!=e.default&&(t.default=Number(e.default)),null!=e.step&&(t.step=Number(e.step)),null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.help&&(t.help=String(e.help)),null!=e.value&&(t.value=Number(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".NumberInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.formId="",n.format="",n.hasMin=!1,n.hasMax=!1,n.dataType=t.enums===String?"INT":0,n.default=0,n.step=0,n.min=0,n.max=0,n.help="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.hasMin&&e.hasOwnProperty("hasMin")&&(n.hasMin=e.hasMin),null!=e.hasMax&&e.hasOwnProperty("hasMax")&&(n.hasMax=e.hasMax),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.NumberInput.DataType[e.dataType]:e.dataType),null!=e.default&&e.hasOwnProperty("default")&&(n.default=t.json&&!isFinite(e.default)?String(e.default):e.default),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){var e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t}(),e}()),P=l.PageConfig=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.favicon="",e.prototype.layout=0,e.prototype.initialSidebarState=0,e.prototype.menuItems=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&t.uint32(18).string(e.favicon),null!=e.layout&&Object.hasOwnProperty.call(e,"layout")&&t.uint32(24).int32(e.layout),null!=e.initialSidebarState&&Object.hasOwnProperty.call(e,"initialSidebarState")&&t.uint32(32).int32(e.initialSidebarState),null!=e.menuItems&&Object.hasOwnProperty.call(e,"menuItems")&&l.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageConfig;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.title=e.string();break;case 2:r.favicon=e.string();break;case 3:r.layout=e.int32();break;case 4:r.initialSidebarState=e.int32();break;case 5:r.menuItems=l.PageConfig.MenuItems.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.title&&e.hasOwnProperty("title")&&!i.isString(e.title))return"title: string expected";if(null!=e.favicon&&e.hasOwnProperty("favicon")&&!i.isString(e.favicon))return"favicon: string expected";if(null!=e.layout&&e.hasOwnProperty("layout"))switch(e.layout){default:return"layout: enum value expected";case 0:case 1:}
1if(null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState"))switch(e.initialSidebarState){default:return"initialSidebarState: enum value expected";case 0:case 1:case 2:}if(null!=e.menuItems&&e.hasOwnProperty("menuItems")){var t=l.PageConfig.MenuItems.verify(e.menuItems);if(t)return"menuItems."+t}return null},e.fromObject=function(e){if(e instanceof l.PageConfig)return e;var t=new l.PageConfig;switch(null!=e.title&&(t.title=String(e.title)),null!=e.favicon&&(t.favicon=String(e.favicon)),e.layout){case"CENTERED":case 0:t.layout=0;break;case"WIDE":case 1:t.layout=1}switch(e.initialSidebarState){case"AUTO":case 0:t.initialSidebarState=0;break;case"EXPANDED":case 1:t.initialSidebarState=1;break;case"COLLAPSED":case 2:t.initialSidebarState=2}if(null!=e.menuItems){if("object"!==typeof e.menuItems)throw TypeError(".PageConfig.menuItems: object expected");t.menuItems=l.PageConfig.MenuItems.fromObject(e.menuItems)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.title="",n.favicon="",n.layout=t.enums===String?"CENTERED":0,n.initialSidebarState=t.enums===String?"AUTO":0,n.menuItems=null),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=e.favicon),null!=e.layout&&e.hasOwnProperty("layout")&&(n.layout=t.enums===String?l.PageConfig.Layout[e.layout]:e.layout),null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState")&&(n.initialSidebarState=t.enums===String?l.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),null!=e.menuItems&&e.hasOwnProperty("menuItems")&&(n.menuItems=l.PageConfig.MenuItems.toObject(e.menuItems,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MenuItems=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.getHelpUrl&&Object.hasOwnProperty.call(e,"getHelpUrl")&&t.uint32(10).string(e.getHelpUrl),null!=e.hideGetHelp&&Object.hasOwnProperty.call(e,"hideGetHelp")&&t.uint32(16).bool(e.hideGetHelp),null!=e.reportABugUrl&&Object.hasOwnProperty.call(e,"reportABugUrl")&&t.uint32(26).string(e.reportABugUrl),null!=e.hideReportABug&&Object.hasOwnProperty.call(e,"hideReportABug")&&t.uint32(32).bool(e.hideReportABug),null!=e.aboutSectionMd&&Object.hasOwnProperty.call(e,"aboutSectionMd")&&t.uint32(42).string(e.aboutSectionMd),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageConfig.MenuItems;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.getHelpUrl=e.string();break;case 2:r.hideGetHelp=e.bool();break;case 3:r.reportABugUrl=e.string();break;case 4:r.hideReportABug=e.bool();break;case 5:r.aboutSectionMd=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&!i.isString(e.getHelpUrl)?"getHelpUrl: string expected":null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&"boolean"!==typeof e.hideGetHelp?"hideGetHelp: boolean expected":null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&!i.isString(e.reportABugUrl)?"reportABugUrl: string expected":null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&"boolean"!==typeof e.hideReportABug?"hideReportABug: boolean expected":null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&!i.isString(e.aboutSectionMd)?"aboutSectionMd: string expected":null},e.fromObject=function(e){if(e instanceof l.PageConfig.MenuItems)return e;var t=new l.PageConfig.MenuItems;return null!=e.getHelpUrl&&(t.getHelpUrl=String(e.getHelpUrl)),null!=e.hideGetHelp&&(t.hideGetHelp=Boolean(e.hideGetHelp)),null!=e.reportABugUrl&&(t.reportABugUrl=String(e.reportABugUrl)),null!=e.hideReportABug&&(t.hideReportABug=Boolean(e.hideReportABug)),null!=e.aboutSectionMd&&(t.aboutSectionMd=String(e.aboutSectionMd)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.getHelpUrl="",n.hideGetHelp=!1,n.reportABugUrl="",n.hideReportABug=!1,n.aboutSectionMd=""),null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&(n.getHelpUrl=e.getHelpUrl),null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&(n.hideGetHelp=e.hideGetHelp),null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&(n.reportABugUrl=e.reportABugUrl),null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&(n.hideReportABug=e.hideReportABug),null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&(n.aboutSectionMd=e.aboutSectionMd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Layout=function(){var e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t}(),e.SidebarState=function(){var e={},t=Object.create(e);return t[e[0]="AUTO"]=0,t[e[1]="EXPANDED"]=1,t[e[2]="COLLAPSED"]=2,t}(),e}(),I=(l.PageInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.queryString=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.queryString&&e.hasOwnProperty("queryString")&&!i.isString(e.queryString)?"queryString: string expected":null},e.fromObject=function(e){if(e instanceof l.PageInfo)return e;var t=new l.PageInfo;return null!=e.queryString&&(t.queryString=String(e.queryString)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.queryString=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.PageNotFound=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageNotFound;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pageName=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!i.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.PageNotFound)return e;var t=new l.PageNotFound;return null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.pageName=""),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.PageProfile=function(){function e(e){if(this.commands=[],this.config=[],this.attributions=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commands=i.emptyArray,e.prototype.execTime=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.prepTime=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.config=i.emptyArray,e.prototype.uncaughtException="",e.prototype.attributions=i.emptyArray,e.prototype.os="",e.prototype.timezone="",e.prototype.headless=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.commands&&e.commands.length)for(var n=0;n<e.commands.length;++n)l.Command.encode(e.commands[n],t.uint32(10).fork()).ldelim();if(null!=e.execTime&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),null!=e.prepTime&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),null!=e.config&&e.config.length)for(var r=0;r<e.config.length;++r)t.uint32(42).string(e.config[r]);if(null!=e.uncaughtException&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),null!=e.attributions&&e.attributions.length)for(var a=0;a<e.attributions.length;++a)t.uint32(58).string(e.attributions[a]);return null!=e.os&&Object.hasOwnProperty.call(e,"os")&&t.uint32(66).string(e.os),null!=e.timezone&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(74).string(e.timezone),null!=e.headless&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(80).bool(e.headless),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageProfile;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.commands&&r.commands.length||(r.commands=[]),r.commands.push(l.Command.decode(e,e.uint32()));break;case 2:r.execTime=e.int64();break;case 3:r.prepTime=e.int64();break;case 5:r.config&&r.config.length||(r.config=[]),r.config.push(e.string());break;case 6:r.uncaughtException=e.string();break;case 7:r.attributions&&r.attributions.length||(r.attributions=[]),r.attributions.push(e.string());break;case 8:r.os=e.string();break;case 9:r.timezone=e.string();break;case 10:r.headless=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.commands&&e.hasOwnProperty("commands")){if(!Array.isArray(e.commands))return"commands: array expected";for(var t=0;t<e.commands.length;++t){var n=l.Command.verify(e.commands[t]);if(n)return"commands."+n}}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&!i.isInteger(e.execTime)&&!(e.execTime&&i.isInteger(e.execTime.low)&&i.isInteger(e.execTime.high)))return"execTime: integer|Long expected";if(null!=e.prepTime&&e.hasOwnProperty("prepTime")&&!i.isInteger(e.prepTime)&&!(e.prepTime&&i.isInteger(e.prepTime.low)&&i.isInteger(e.prepTime.high)))return"prepTime: integer|Long expected";if(null!=e.config&&e.hasOwnProperty("config")){if(!Array.isArray(e.config))return"config: array expected";for(var r=0;r<e.config.length;++r)if(!i.isString(e.config[r]))return"config: string[] expected"}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&!i.isString(e.uncaughtException))return"uncaughtException: string expected";if(null!=e.attributions&&e.hasOwnProperty("attributions")){if(!Array.isArray(e.attributions))return"attributions: array expected";for(var a=0;a<e.attributions.length;++a)if(!i.isString(e.attributions[a]))return"attributions: string[] expected"}return null!=e.os&&e.hasOwnProperty("os")&&!i.isString(e.os)?"os: string expected":null!=e.timezone&&e.hasOwnProperty("timezone")&&!i.isString(e.timezone)?"timezone: string expected":null!=e.headless&&e.hasOwnProperty("headless")&&"boolean"!==typeof e.headless?"headless: boolean expected":null},e.fromObject=function(e){if(e instanceof l.PageProfile)return e;var t=new l.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(var n=0;n<e.commands.length;++n){if("object"!==typeof e.commands[n])throw TypeError(".PageProfile.commands: object expected");t.commands[n]=l.Command.fromObject(e.commands[n])}}if(null!=e.execTime&&(i.Long?(t.execTime=i.Long.fromValue(e.execTime)).unsigned=!1:"string"===typeof e.execTime?t.execTime=parseInt(e.execTime,10):"number"===typeof e.execTime?t.execTime=e.execTime:"object"===typeof e.execTime&&(t.execTime=new i.LongBits(e.execTime.low>>>0,e.execTime.high>
1>>0).toNumber())),null!=e.prepTime&&(i.Long?(t.prepTime=i.Long.fromValue(e.prepTime)).unsigned=!1:"string"===typeof e.prepTime?t.prepTime=parseInt(e.prepTime,10):"number"===typeof e.prepTime?t.prepTime=e.prepTime:"object"===typeof e.prepTime&&(t.prepTime=new i.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(var r=0;r<e.config.length;++r)t.config[r]=String(e.config[r])}if(null!=e.uncaughtException&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(var a=0;a<e.attributions.length;++a)t.attributions[a]=String(e.attributions[a])}return null!=e.os&&(t.os=String(e.os)),null!=e.timezone&&(t.timezone=String(e.timezone)),null!=e.headless&&(t.headless=Boolean(e.headless)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.commands=[],n.config=[],n.attributions=[]),t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.execTime=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.execTime=t.longs===String?"0":0;if(i.Long){var a=new i.Long(0,0,!1);n.prepTime=t.longs===String?a.toString():t.longs===Number?a.toNumber():a}else n.prepTime=t.longs===String?"0":0;n.uncaughtException="",n.os="",n.timezone="",n.headless=!1}if(e.commands&&e.commands.length){n.commands=[];for(var o=0;o<e.commands.length;++o)n.commands[o]=l.Command.toObject(e.commands[o],t)}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&("number"===typeof e.execTime?n.execTime=t.longs===String?String(e.execTime):e.execTime:n.execTime=t.longs===String?i.Long.prototype.toString.call(e.execTime):t.longs===Number?new i.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),null!=e.prepTime&&e.hasOwnProperty("prepTime")&&("number"===typeof e.prepTime?n.prepTime=t.longs===String?String(e.prepTime):e.prepTime:n.prepTime=t.longs===String?i.Long.prototype.toString.call(e.prepTime):t.longs===Number?new i.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){n.config=[];for(var s=0;s<e.config.length;++s)n.config[s]=e.config[s]}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&(n.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){n.attributions=[];for(var c=0;c<e.attributions.length;++c)n.attributions[c]=e.attributions[c]}return null!=e.os&&e.hasOwnProperty("os")&&(n.os=e.os),null!=e.timezone&&e.hasOwnProperty("timezone")&&(n.timezone=e.timezone),null!=e.headless&&e.hasOwnProperty("headless")&&(n.headless=e.headless),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),C=(l.Argument=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.k="",e.prototype.t="",e.prototype.m="",e.prototype.p=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.k&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),null!=e.t&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),null!=e.m&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),null!=e.p&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Argument;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.k=e.string();break;case 2:r.t=e.string();break;case 3:r.m=e.string();break;case 5:r.p=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.k&&e.hasOwnProperty("k")&&!i.isString(e.k)?"k: string expected":null!=e.t&&e.hasOwnProperty("t")&&!i.isString(e.t)?"t: string expected":null!=e.m&&e.hasOwnProperty("m")&&!i.isString(e.m)?"m: string expected":null!=e.p&&e.hasOwnProperty("p")&&!i.isInteger(e.p)?"p: integer expected":null},e.fromObject=function(e){if(e instanceof l.Argument)return e;var t=new l.Argument;return null!=e.k&&(t.k=String(e.k)),null!=e.t&&(t.t=String(e.t)),null!=e.m&&(t.m=String(e.m)),null!=e.p&&(t.p=0|e.p),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.k="",n.t="",n.m="",n.p=0),null!=e.k&&e.hasOwnProperty("k")&&(n.k=e.k),null!=e.t&&e.hasOwnProperty("t")&&(n.t=e.t),null!=e.m&&e.hasOwnProperty("m")&&(n.m=e.m),null!=e.p&&e.hasOwnProperty("p")&&(n.p=e.p),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Command=function(){function e(e){if(this.args=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.args=i.emptyArray,e.prototype.time=i.Long?i.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.args&&e.args.length)for(var n=0;n<e.args.length;++n)l.Argument.encode(e.args[n],t.uint32(18).fork()).ldelim();return null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Command;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.args&&r.args.length||(r.args=[]),r.args.push(l.Argument.decode(e,e.uint32()));break;case 4:r.time=e.int64();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.args&&e.hasOwnProperty("args")){if(!Array.isArray(e.args))return"args: array expected";for(var t=0;t<e.args.length;++t){var n=l.Argument.verify(e.args[t]);if(n)return"args."+n}}return null==e.time||!e.hasOwnProperty("time")||i.isInteger(e.time)||e.time&&i.isInteger(e.time.low)&&i.isInteger(e.time.high)?null:"time: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.Command)return e;var t=new l.Command;if(null!=e.name&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(var n=0;n<e.args.length;++n){if("object"!==typeof e.args[n])throw TypeError(".Command.args: object expected");t.args[n]=l.Argument.fromObject(e.args[n])}}return null!=e.time&&(i.Long?(t.time=i.Long.fromValue(e.time)).unsigned=!1:"string"===typeof e.time?t.time=parseInt(e.time,10):"number"===typeof e.time?t.time=e.time:"object"===typeof e.time&&(t.time=new i.LongBits(e.time.low>>>0,e.time.high>
1>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.args=[]),t.defaults)if(n.name="",i.Long){var r=new i.Long(0,0,!1);n.time=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.time=t.longs===String?"0":0;if(null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.args&&e.args.length){n.args=[];for(var a=0;a<e.args.length;++a)n.args[a]=l.Argument.toObject(e.args[a],t)}return null!=e.time&&e.hasOwnProperty("time")&&("number"===typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?i.Long.prototype.toString.call(e.time):t.longs===Number?new i.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.PagesChanged=function(){function e(e){if(this.appPages=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.appPages=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.appPages&&e.appPages.length)for(var n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PagesChanged;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(var t=0;t<e.appPages.length;++t){var n=l.AppPage.verify(e.appPages[t]);if(n)return"appPages."+n}}return null},e.fromObject=function(e){if(e instanceof l.PagesChanged)return e;var t=new l.PagesChanged;if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".PagesChanged.appPages: array expected");t.appPages=[];for(var n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".PagesChanged.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.appPages=[]),e.appPages&&e.appPages.length){n.appPages=[];for(var r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.PlotlyChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.url=null,e.prototype.figure=null,e.prototype.useContainerWidth=!1,e.prototype.theme="",Object.defineProperty(e.prototype,"chart",{get:i.oneOfGetter(t=["url","figure"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&l.Figure.encode(e.figure,t.uint32(18).fork()).ldelim(),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),null!=e.theme&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PlotlyChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.url=e.string();break;case 2:r.figure=l.Figure.decode(e,e.uint32());break;case 5:r.useContainerWidth=e.bool();break;case 6:r.theme=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.url&&e.hasOwnProperty("url")&&(t.chart=1,!i.isString(e.url)))return"url: string expected";
1if(null!=e.figure&&e.hasOwnProperty("figure")){if(1===t.chart)return"chart: multiple values";t.chart=1;var n=l.Figure.verify(e.figure);if(n)return"figure."+n}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.theme&&e.hasOwnProperty("theme")&&!i.isString(e.theme)?"theme: string expected":null},e.fromObject=function(e){if(e instanceof l.PlotlyChart)return e;var t=new l.PlotlyChart;if(null!=e.url&&(t.url=String(e.url)),null!=e.figure){if("object"!==typeof e.figure)throw TypeError(".PlotlyChart.figure: object expected");t.figure=l.Figure.fromObject(e.figure)}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.theme&&(t.theme=String(e.theme)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.useContainerWidth=!1,n.theme=""),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url,t.oneofs&&(n.chart="url")),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=l.Figure.toObject(e.figure,t),t.oneofs&&(n.chart="figure")),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.theme&&e.hasOwnProperty("theme")&&(n.theme=e.theme),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Figure=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.config="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&t.uint32(18).string(e.config),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Figure;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.spec=e.string();break;case 2:r.config=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!i.isString(e.spec)?"spec: string expected":null!=e.config&&e.hasOwnProperty("config")&&!i.isString(e.config)?"config: string expected":null},e.fromObject=function(e){if(e instanceof l.Figure)return e;var t=new l.Figure;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.config&&(t.config=String(e.config)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.spec="",n.config=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.config&&e.hasOwnProperty("config")&&(n.config=e.config),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Progress=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Progress;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.value=e.uint32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isInteger(e.value)?"value: integer expected":null},e.fromObject=function(e){if(e instanceof l.Progress)return e;var t=new l.Progress;return null!=e.value&&(t.value=e.value>>>0),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.value=0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Radio=function(){function e(e){if(this.options=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=i.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.horizontal=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(var n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&t.uint32(80).bool(e.horizontal),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Radio;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.horizontal=e.bool();break;case 11:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var t=0;t<e.options.length;++t)if(!i.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.horizontal&&e.hasOwnProperty("horizontal")&&"boolean"!==typeof e.horizontal)return"horizontal: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var n=l.LabelVisibilityMessage.verify(e.labelVisibility);if(n)return"labelVisibility."+n}return null},e.fromObject=function(e){if(e instanceof l.Radio)return e;var t=new l.Radio;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Radio.options: array expected");t.options=[];for(var n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.horizontal&&(t.horizontal=Boolean(e.horizontal)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Radio.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.horizontal=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(var r=0;r<e.options.length;++r)n.options[r]=e.options[r]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=e.horizontal),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.RootContainer=function(){var e={},t=Object.create(e);return t[e[0]="MAIN"]=0,t[e[1]="SIDEBAR"]=1,t}(),l.Selectbox=function(){function e(e){if(this.options=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=i.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(var n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Selectbox;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var t=0;t<e.options.length;++t)if(!i.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var n=l.LabelVisibilityMessage.verify(e.labelVisibility);if(n)return"labelVisibility."+n}return null},e.fromObject=function(e){if(e instanceof l.Selectbox)return e;var t=new l.Selectbox;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Selectbox.options: array expected");t.options=[];for(var n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Selectbox.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(var r=0;r<e.options.length;++r)n.options[r]=e.options[r]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.SessionEvent=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.scriptChangedOnDisk=null,e.prototype.scriptWasManuallyStopped=null,e.prototype.scriptCompilationException=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.scriptChangedOnDisk&&Object.hasOwnProperty.call(e,"scriptChangedOnDisk")&&t.uint32(8).bool(e.scriptChangedOnDisk),null!=e.scriptWasManuallyStopped&&Object.hasOwnProperty.call(e,"scriptWasManuallyStopped")&&t.uint32(16).bool(e.scriptWasManuallyStopped),null!=e.scriptCompilationException&&Object.hasOwnProperty.call(e,"scriptCompilationException")&&l.Exception.encode(e.scriptCompilationException,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SessionEvent;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.scriptChangedOnDisk=e.bool();break;case 2:r.scriptWasManuallyStopped=e.bool();break;case 3:r.scriptCompilationException=l.Exception.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(t.type=1,"boolean"!==typeof e.scriptChangedOnDisk))return"scriptChangedOnDisk: boolean expected";if(null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.scriptWasManuallyStopped)return"scriptWasManuallyStopped: boolean expected"}if(null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")){if(1===t.type)return"type: multiple values";t.type=1;var n=l.Exception.verify(e.scriptCompilationException);if(n)return"scriptCompilationException."+n}return null},e.fromObject=function(e){if(e instanceof l.SessionEvent)return e;var t=new l.SessionEvent;if(null!=e.scriptChangedOnDisk&&(t.scriptChangedOnDisk=Boolean(e.scriptChangedOnDisk)),null!=e.scriptWasManuallyStopped&&(t.scriptWasManuallyStopped=Boolean(e.scriptWasManuallyStopped)),null!=e.scriptCompilationException){if("object"!==typeof e.scriptCompilationException)throw TypeError(".SessionEvent.scriptCompilationException: object expected");t.scriptCompilationException=l.Exception.fromObject(e.scriptCompilationException)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(n.scriptChangedOnDisk=e.scriptChangedOnDisk,t.oneofs&&(n.type="scriptChangedOnDisk")),null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")&&(n.scriptWasManuallyStopped=e.scriptWasManuallyStopped,t.oneofs&&(n.type="scriptWasManuallyStopped")),null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")&&(n.scriptCompilationException=l.Exception.toObject(e.scriptCompilationException,t),t.oneofs&&(n.type="scriptCompilationException")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.SessionState=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.runOnSave=!1,e.prototype.scriptIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.runOnSave&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),null!=e.scriptIsRunning&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SessionState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.runOnSave=e.bool();break;case 2:r.scriptIsRunning=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&"boolean"!==typeof e.runOnSave?"runOnSave: boolean expected":null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&"boolean"!==typeof e.scriptIsRunning?"scriptIsRunning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.SessionState)return e;var t=new l.SessionState;return null!=e.runOnSave&&(t.runOnSave=Boolean(e.runOnSave)),null!=e.scriptIsRunning&&(t.scriptIsRunning=Boolean(e.scriptIsRunning)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.runOnSave=!1,n.scriptIsRunning=!1),null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&(n.runOnSave=e.runOnSave),null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&(n.scriptIsRunning=e.scriptIsRunning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Slider=function(){function e(e){if(this.default=[],this.value=[],this.options=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.formId="",e.prototype.label="",e.prototype.format="",e.prototype.dataType=0,e.prototype.default=i.emptyArray,e.prototype.min=0,e.prototype.max=0,e.prototype.step=0,e.prototype.value=i.emptyArray,e.prototype.setValue=!1,e.prototype.options=i.emptyArray,e.prototype.help="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),null!=e.default&&e.default.length){t.uint32(50).fork();for(var n=0;n<e.default.length;++n)t.double(e.default[n]);t.ldelim()}if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),null!=e.value&&e.value.length){t.uint32(82).fork();for(var r=0;r<e.value.length;++r)t.double(e.value[r]);t.ldelim()}if(null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),null!=e.options&&e.options.length)for(var a=0;a<e.options.length;++a)t.uint32(106).string(e.options[a]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Slider;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.formId=e.string();break;case 3:r.label=e.string();break;case 4:r.format=e.string();break;case 5:r.dataType=e.int32();break;case 6:if(r.default&&r.default.length||(r.default=[]),2===(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)r.default.push(e.double());else r.default.push(e.double());break;case 7:r.min=e.double();break;case 8:r.max=e.double();break;case 9:r.step=e.double();break;case 10:if(r.value&&r.value.length||(r.value=[]),2===(7&o))for(var s=e.uint32()+e.pos;e.pos<s;)r.value.push(e.double());else r.value.push(e.double());break;case 11:r.setValue=e.bool();break;case 13:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 14:r.help=e.string();break;case 15:r.disabled=e.bool();break;case 16:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!i.isString(e.format))return"format: string expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(var t=0;t<e.default.length;++t)if("number"!==typeof e.default[t])return"default: number[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: 
1number expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var n=0;n<e.value.length;++n)if("number"!==typeof e.value[n])return"value: number[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var r=0;r<e.options.length;++r)if(!i.isString(e.options[r]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var a=l.LabelVisibilityMessage.verify(e.labelVisibility);if(a)return"labelVisibility."+a}return null},e.fromObject=function(e){if(e instanceof l.Slider)return e;var t=new l.Slider;switch(null!=e.id&&(t.id=String(e.id)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.label&&(t.label=String(e.label)),null!=e.format&&(t.format=String(e.format)),e.dataType){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}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(var n=0;n<e.default.length;++n)t.default[n]=Number(e.default[n])}if(null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.step&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r)t.value[r]=Number(e.value[r])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(var a=0;a<e.options.length;++a)t.options[a]=String(e.options[a])}if(null!=e.help&&(t.help=String(e.help)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[],n.options=[]),t.defaults&&(n.id="",n.formId="",n.label="",n.format="",n.dataType=t.enums===String?"INT":0,n.min=0,n.max=0,n.step=0,n.setValue=!1,n.help="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){n.default=[];for(var r=0;r<e.default.length;++r)n.default[r]=t.json&&!isFinite(e.default[r])?String(e.default[r]):e.default[r]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){n.value=[];for(var a=0;a<e.value.length;++a)n.value[a]=t.json&&!isFinite(e.value[a])?String(e.value[a]):e.value[a]}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),e.options&&e.options.length){n.options=[];for(var o=0;o<e.options.length;++o)n.options[o]=e.options[o]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){var e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t[e[2]="DATETIME"]=2,t[e[3]="DATE"]=3,t[e[4]="TIME"]=4,t}(),e}()),V=(l.Snow=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Snow;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.show=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Snow)return e;var t=new l.Snow;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Spinner=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.text="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Spinner;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.text=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.text&&e.hasOwnProperty("text")&&!i.isString(e.text)?"text: string expected":null},e.fromObject=function(e){if(e instanceof l.Spinner)return e;var t=new l.Spinner;return null!=e.text&&(t.text=String(e.text)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.text=""),null!=e.text&&e.hasOwnProperty("text")&&(n.text=e.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Text=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Text;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.body=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Text)return e;var t=new l.Text;return null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.TextArea=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.height=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.placeholder&&Ob
1ject.hasOwnProperty.call(e,"placeholder")&&t.uint32(82).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TextArea;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.height=e.uint32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.placeholder=e.string();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default))return"default: string expected";if(null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height))return"height: integer expected";if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!i.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextArea)return e;var t=new l.TextArea;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.height&&(t.height=e.height>>>0),null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextArea.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.height=0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.TextInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.type=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.autocomplete="",e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(32).int32(e.type),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.autocomplete&&Object.hasOwnProperty.call(e,"autocomplete")&&t.uint32(82).string(e.autocomplete),null!=e.placeholder&&Ob
1ject.hasOwnProperty.call(e,"placeholder")&&t.uint32(90).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(96).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TextInput;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.type=e.int32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.autocomplete=e.string();break;case 11:r.placeholder=e.string();break;case 12:r.disabled=e.bool();break;case 13:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default))return"default: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:}if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&!i.isString(e.autocomplete))return"autocomplete: string expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!i.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextInput)return e;var t=new l.TextInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),e.type){case"DEFAULT":case 0:t.type=0;break;case"PASSWORD":case 1:t.type=1}if(null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.autocomplete&&(t.autocomplete=String(e.autocomplete)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.type=t.enums===String?"DEFAULT":0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.autocomplete="",n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.TextInput.Type[e.type]:e.type),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&(n.autocomplete=e.autocomplete),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){var e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t}(),e}()),T=(l.TimeInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TimeInput;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){var t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TimeInput)return e;var t=new l.TimeInput;
1if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TimeInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.VegaLiteChart=function(){function e(e){if(this.datasets=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=i.emptyArray,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(var n=0;n<e.datasets.length;++n)l.NamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.VegaLiteChart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.NamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!i.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){var t=l.DataFrame.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(var n=0;n<e.datasets.length;++n){var r=l.NamedDataSet.verify(e.datasets[n]);if(r)return"datasets."+r}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.VegaLiteChart)return e;var t=new l.VegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".VegaLiteChart.data: object expected");t.data=l.DataFrame.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");t.datasets=[];for(var n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".VegaLiteChart.datasets: object expected");t.datasets[n]=l.NamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(var r=0;r<e.datasets.length;++r)n.datasets[r]=l.NamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Video=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.prototype.type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Video;e.pos<n;){var o=e.uint32();switch(o>>>3){case 6:r.url=e.string();break;case 3:r.startTime=e.int32();break;case 5:r.type=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url))return"url: string expected";if(null!=e.startTime&&e.hasOwnProperty("startTime")&&!i.isInteger(e.startTime))return"startTime: integer expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.Video)return e;var t=new l.Video;switch(null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),e.type){case"UNUSED":case 0:t.type=0;break;case"NATIVE":case 1:t.type=1;break;case"YOUTUBE_IFRAME":case 2:t.type=2}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.startTime=0,n.type=t.enums===String?"UNUSED":0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.Video.Type[e.type]:e.type),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){var e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t}(),e}()),E=l.WidgetStates=function(){function e(e){if(this.widgets=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.widgets=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.widgets&&e.widgets.length)for(var n=0;n<e.widgets.length;++n)l.WidgetState.encode(e.widgets[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.WidgetStates;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.widgets&&r.widgets.length||(r.widgets=[]),r.widgets.push(l.WidgetState.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.widgets&&e.hasOwnProperty("widgets")){if(!Array.isArray(e.widgets))return"widgets: array expected";for(var t=0;t<e.widgets.length;++t){var n=l.WidgetState.verify(e.widgets[t]);if(n)return"widgets."+n}}return null},e.fromObject=function(e){if(e instanceof l.WidgetStates)return e;var t=new l.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(var n=0;n<e.widgets.length;++n){if("object"!==typeof e.widgets[n])throw TypeError(".WidgetStates.widgets: object expected");t.widgets[n]=l.WidgetState.fromObject(e.widgets[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.widgets=[]),e.widgets&&e.widgets.length){n.widgets=[];for(var r=0;r<e.widgets.length;++r)n.widgets[r]=l.WidgetState.toObject(e.widgets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),A=l.WidgetState=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.id="",e.prototype.triggerValue=null,e.prototype.boolValue=null,e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.stringValue=null,e.prototype.doubleArrayValue=null,e.prototype.intArrayValue=null,e.prototype.stringArrayValue=null,e.prototype.jsonValue=null,e.prototype.arrowValue=null,e.prototype.bytesValue=null,e.prototype.fileUploaderStateValue=null,Object.defineProperty(e.prototype,"value",{get:i.oneOfGetter(t=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.triggerValue&&Object.hasOwnProperty.call(e,"triggerValue")&&t.uint32(16).bool(e.triggerValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(24).bool(e.boolValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(33).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(40).sint64(e.intValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(50).string(e.stringValue),null!=e.doubleArrayValue&&Object.hasOwnProperty.call(e,"doubleArrayValue")&&l.DoubleArray.encode(e.doubleArrayValue,t.uint32(58).fork()).ldelim(),null!=e.intArrayValue&&Object.hasOwnProperty.call(e,"intArrayValue")&&l.SInt64Array.encode(e.intArrayValue,t.uint32(66).fork()).ldelim(),null!=e.stringArrayValue&&Object.hasOwnProperty.call(e,"stringArrayValue")&&l.StringArray.encode(e.stringArrayValue,t.uint32(74).fork()).ldelim(),null!=e.jsonValue&&Object.hasOwnProperty.call(e,"jsonValue")&&t.uint32(82).string(e.jsonValue),null!=e.arrowValue&&Object.hasOwnProperty.call(e,"arrowValue")&&l.ArrowTable.encode(e.arrowValue,t.uint32(90).fork()).ldelim(),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(98).bytes(e.bytesValue),null!=e.f
1ileUploaderStateValue&&Object.hasOwnProperty.call(e,"fileUploaderStateValue")&&l.FileUploaderState.encode(e.fileUploaderStateValue,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.WidgetState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.triggerValue=e.bool();break;case 3:r.boolValue=e.bool();break;case 4:r.doubleValue=e.double();break;case 5:r.intValue=e.sint64();break;case 6:r.stringValue=e.string();break;case 7:r.doubleArrayValue=l.DoubleArray.decode(e,e.uint32());break;case 8:r.intArrayValue=l.SInt64Array.decode(e,e.uint32());break;case 9:r.stringArrayValue=l.StringArray.decode(e,e.uint32());break;case 10:r.jsonValue=e.string();break;case 11:r.arrowValue=l.ArrowTable.decode(e,e.uint32());break;case 12:r.bytesValue=e.bytes();break;case 13:r.fileUploaderStateValue=l.FileUploaderState.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.id&&e.hasOwnProperty("id")&&!i.isString(e.id))return"id: string expected";if(null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(t.value=1,"boolean"!==typeof e.triggerValue))return"triggerValue: boolean expected";if(null!=e.boolValue&&e.hasOwnProperty("boolValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"boolean"!==typeof e.boolValue)return"boolValue: boolean expected"}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"number"!==typeof e.doubleValue)return"doubleValue: number expected"}if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;var n=l.DoubleArray.verify(e.doubleArrayValue);if(n)return"doubleArrayValue."+n}if(null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;var r=l.SInt64Array.verify(e.intArrayValue);if(r)return"intArrayValue."+r}if(null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;var a=l.StringArray.verify(e.stringArrayValue);if(a)return"stringArrayValue."+a}if(null!=e.jsonValue&&e.hasOwnProperty("jsonValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.isString(e.jsonValue))return"jsonValue: string expected"}if(null!=e.arrowValue&&e.hasOwnProperty("arrowValue")){if(1===t.value)return"value: multiple values";t.value=1;var o=l.ArrowTable.verify(e.arrowValue);if(o)return"arrowValue."+o}if(null!=e.bytesValue&&e.hasOwnProperty("bytesValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytesValue&&"number"===typeof e.bytesValue.length||i.isString(e.bytesValue)))return"bytesValue: buffer expected"}
1if(null!=e.fileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")){if(1===t.value)return"value: multiple values";t.value=1;var s=l.FileUploaderState.verify(e.fileUploaderStateValue);if(s)return"fileUploaderStateValue."+s}return null},e.fromObject=function(e){if(e instanceof l.WidgetState)return e;var t=new l.WidgetState;if(null!=e.id&&(t.id=String(e.id)),null!=e.triggerValue&&(t.triggerValue=Boolean(e.triggerValue)),null!=e.boolValue&&(t.boolValue=Boolean(e.boolValue)),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.doubleArrayValue){if("object"!==typeof e.doubleArrayValue)throw TypeError(".WidgetState.doubleArrayValue: object expected");t.doubleArrayValue=l.DoubleArray.fromObject(e.doubleArrayValue)}if(null!=e.intArrayValue){if("object"!==typeof e.intArrayValue)throw TypeError(".WidgetState.intArrayValue: object expected");t.intArrayValue=l.SInt64Array.fromObject(e.intArrayValue)}if(null!=e.stringArrayValue){if("object"!==typeof e.stringArrayValue)throw TypeError(".WidgetState.stringArrayValue: object expected");t.stringArrayValue=l.StringArray.fromObject(e.stringArrayValue)}if(null!=e.jsonValue&&(t.jsonValue=String(e.jsonValue)),null!=e.arrowValue){if("object"!==typeof e.arrowValue)throw TypeError(".WidgetState.arrowValue: object expected");t.arrowValue=l.ArrowTable.fromObject(e.arrowValue)}if(null!=e.bytesValue&&("string"===typeof e.bytesValue?i.base64.decode(e.bytesValue,t.bytesValue=i.newBuffer(i.base64.length(e.bytesValue)),0):e.bytesValue.length&&(t.bytesValue=e.bytesValue)),null!=e.fileUploaderStateValue){if("object"!==typeof e.fileUploaderStateValue)throw TypeError(".WidgetState.fileUploaderStateValue: object expected");t.fileUploaderStateValue=l.FileUploaderState.fromObject(e.fileUploaderStateValue)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(n.triggerValue=e.triggerValue,t.oneofs&&(n.value="triggerValue")),null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(n.boolValue=e.boolValue,t.oneofs&&(n.value="boolValue")),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=e.stringValue,t.oneofs&&(n.value="stringValue")),null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")&&(n.doubleArrayValue=l.DoubleArray.toObject(e.doubleArrayValue,t),t.oneofs&&(n.value="doubleArrayValue")),null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")&&(n.intArrayValue=l.SInt64Array.toObject(e.intArrayValue,t),t.oneofs&&(n.value="intArrayValue")),null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")&&(n.stringArrayValue=l.StringArray.toObject(e.stringArrayValue,t),t.oneofs&&(n.value="stringArrayValue")),null!=e.jsonValue&&e.hasOwnProperty("jsonValue")&&(n.jsonValue=e.jsonValue,t.oneofs&&(n.value="jsonValue")),null!=e.arrowValue&&e.hasOwnProperty("arrowValue")&&(n.arrowValue=l.ArrowTable.toObject(e.arrowValue,t),t.oneofs&&(n.value="arrowValue")),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(n.bytesValue=t.bytes===String?i.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(n.value="bytesValue")),null!=e.f
vendor: 11,596 bytes, line 1
1ileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")&&(n.fileUploaderStateValue=l.FileUploaderState.toObject(e.fileUploaderStateValue,t),t.oneofs&&(n.value="fileUploaderStateValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}();l.openmetrics=function(){var e={};return e.MetricSet=function(){function e(e){if(this.metricFamilies=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.metricFamilies=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.metricFamilies&&e.metricFamilies.length)for(var n=0;n<e.metricFamilies.length;++n)l.openmetrics.MetricFamily.encode(e.metricFamilies[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricSet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.metricFamilies&&r.metricFamilies.length||(r.metricFamilies=[]),r.metricFamilies.push(l.openmetrics.MetricFamily.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.metricFamilies&&e.hasOwnProperty("metricFamilies")){if(!Array.isArray(e.metricFamilies))return"metricFamilies: array expected";for(var t=0;t<e.metricFamilies.length;++t){var n=l.openmetrics.MetricFamily.verify(e.metricFamilies[t]);if(n)return"metricFamilies."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricSet)return e;var t=new l.openmetrics.MetricSet;if(e.metricFamilies){if(!Array.isArray(e.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");t.metricFamilies=[];for(var n=0;n<e.metricFamilies.length;++n){if("object"!==typeof e.metricFamilies[n])throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");t.metricFamilies[n]=l.openmetrics.MetricFamily.fromObject(e.metricFamilies[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){n.metricFamilies=[];for(var r=0;r<e.metricFamilies.length;++r)n.metricFamilies[r]=l.openmetrics.MetricFamily.toObject(e.metricFamilies[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricFamily=function(){function e(e){if(this.metrics=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.type=0,e.prototype.unit="",e.prototype.help="",e.prototype.metrics=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.unit&&Object.hasOwnProperty.call(e,"unit")&&t.uint32(26).string(e.unit),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.metrics&&e.metrics.length)for(var n=0;n<e.metrics.length;++n)l.openmetrics.Metric.encode(e.metrics[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricFamily;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.type=e.int32();break;case 3:r.unit=e.string();break;case 4:r.help=e.string();break;case 5:r.metrics&&r.metrics.length||(r.metrics=[]),r.metrics.push(l.openmetrics.Metric.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.unit&&e.hasOwnProperty("unit")&&!i.isString(e.unit))return"unit: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.metrics&&e.hasOwnProperty("metrics")){if(!Array.isArray(e.metrics))return"metrics: array expected";for(var t=0;t<e.metrics.length;++t){var n=l.openmetrics.Metric.verify(e.metrics[t]);if(n)return"metrics."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricFamily)return e;var t=new l.openmetrics.MetricFamily;switch(null!=e.name&&(t.name=String(e.name)),e.type){case"UNKNOWN":case 0:t.type=0;break;case"GAUGE":case 1:t.type=1;break;case"COUNTER":case 2:t.type=2;break;case"STATE_SET":case 3:t.type=3;break;case"INFO":case 4:t.type=4;break;case"HISTOGRAM":case 5:t.type=5;break;case"GAUGE_HISTOGRAM":case 6:t.type=6;break;case"SUMMARY":case 7:t.type=7}if(null!=e.unit&&(t.unit=String(e.unit)),null!=e.help&&(t.help=String(e.help)),e.metrics){if(!Array.isArray(e.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");t.metrics=[];for(var n=0;n<e.metrics.length;++n){if("object"!==typeof e.metrics[n])throw TypeError(".openmetrics.MetricFamily.metrics: object expected");t.metrics[n]=l.openmetrics.Metric.fromObject(e.metrics[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.metrics=[]),t.defaults&&(n.name="",n.type=t.enums===String?"UNKNOWN":0,n.unit="",n.help=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.openmetrics.MetricType[e.type]:e.type),null!=e.unit&&e.hasOwnProperty("unit")&&(n.unit=e.unit),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),e.metrics&&e.metrics.length){n.metrics=[];for(var r=0;r<e.metrics.length;++r)n.metrics[r]=l.openmetrics.Metric.toObject(e.metrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricType=function(){var e={},t=Object.create(e);return t[e[0]="UNKNOWN"]=0,t[e[1]="GAUGE"]=1,t[e[2]="COUNTER"]=2,t[e[3]="STATE_SET"]=3,t[e[4]="INFO"]=4,t[e[5]="HISTOGRAM"]=5,t[e[6]="GAUGE_HISTOGRAM"]=6,t[e[7]="SUMMARY"]=7,t}(),e.Metric=function(){function e(e){if(this.labels=[],this.metricPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.labels=i.emptyArray,e.prototype.metricPoints=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.labels&&e.labels.length)for(var n=0;n<e.labels.length;++n)l.openmetrics.Label.encode(e.labels[n],t.uint32(10).fork()).ldelim();if(null!=e.metricPoints&&e.metricPoints.length)for(var r=0;r<e.metricPoints.length;++r)l.openmetrics.MetricPoint.encode(e.metricPoints[r],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Metric;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.openmetrics.Label.decode(e,e.uint32()));break;case 2:r.metricPoints&&r.metricPoints.length||(r.metricPoints=[]),r.metricPoints.push(l.openmetrics.MetricPoint.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(var t=0;t<e.labels.length;++t){var n=l.openmetrics.Label.verify(e.labels[t]);if(n)return"labels."+n}}if(null!=e.metricPoints&&e.hasOwnProperty("metricPoints")){if(!Array.isArray(e.metricPoints))return"metricPoints: array expected";for(var r=0;r<e.metricPoints.length;++r){var a=l.openmetrics.MetricPoint.verify(e.metricPoints[r]);if(a)return"metricPoints."+a}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Metric)return e;var t=new l.openmetrics.Metric;if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".openmetrics.Metric.labels: array expected");t.labels=[];for(var n=0;n<e.labels.length;++n){if("object"!==typeof e.labels[n])throw TypeError(".openmetrics.Metric.labels: object expected");t.labels[n]=l.openmetrics.Label.fromObject(e.labels[n])}}if(e.metricPoints){if(!Array.isArray(e.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");t.metricPoints=[];for(var r=0;r<e.metricPoints.length;++r){if("object"!==typeof e.metricPoints[r])throw TypeError(".openmetrics.Metric.metricPoints: object expected");t.metricPoints[r]=l.openmetrics.MetricPoint.fromObject(e.metricPoints[r])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.labels=[],n.metricPoints=[]),e.labels&&e.labels.length){n.labels=[];for(var r=0;r<e.labels.length;++r)n.labels[r]=l.openmetrics.Label.toObject(e.labels[r],t)}if(e.metricPoints&&e.metricPoints.length){n.metricPoints=[];for(var a=0;a<e.metricPoints.length;++a)n.metricPoints[a]=l.openmetrics.MetricPoint.toObject(e.metricPoints[a],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Label=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Label;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.Label)return e;var t=new l.openmetrics.Label;return null!=e.name&&(t.name=String(e.name)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.value=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricPoint=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.unknownValue=null,e.prototype.gaugeValue=null,e.prototype.counterValue=null,e.prototype.histogramValue=null,e.prototype.stateSetValue=null,e.prototype.infoValue=null,e.prototype.summaryValue=null,e.prototype.timestamp=null,Object.defineProperty(e.prototype,"value",{get:i.oneOfGetter(t=["unknownValue","gauge
1Value","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.unknownValue&&Object.hasOwnProperty.call(e,"unknownValue")&&l.openmetrics.UnknownValue.encode(e.unknownValue,t.uint32(10).fork()).ldelim(),null!=e.gaugeValue&&Object.hasOwnProperty.call(e,"gaugeValue")&&l.openmetrics.GaugeValue.encode(e.gaugeValue,t.uint32(18).fork()).ldelim(),null!=e.counterValue&&Object.hasOwnProperty.call(e,"counterValue")&&l.openmetrics.CounterValue.encode(e.counterValue,t.uint32(26).fork()).ldelim(),null!=e.histogramValue&&Object.hasOwnProperty.call(e,"histogramValue")&&l.openmetrics.HistogramValue.encode(e.histogramValue,t.uint32(34).fork()).ldelim(),null!=e.stateSetValue&&Object.hasOwnProperty.call(e,"stateSetValue")&&l.openmetrics.StateSetValue.encode(e.stateSetValue,t.uint32(42).fork()).ldelim(),null!=e.infoValue&&Object.hasOwnProperty.call(e,"infoValue")&&l.openmetrics.InfoValue.encode(e.infoValue,t.uint32(50).fork()).ldelim(),null!=e.summaryValue&&Object.hasOwnProperty.call(e,"summaryValue")&&l.openmetrics.SummaryValue.encode(e.summaryValue,t.uint32(58).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(66).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricPoint;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.unknownValue=l.openmetrics.UnknownValue.decode(e,e.uint32());break;case 2:r.gaugeValue=l.openmetrics.GaugeValue.decode(e,e.uint32());break;case 3:r.counterValue=l.openmetrics.CounterValue.decode(e,e.uint32());break;case 4:r.histogramValue=l.openmetrics.HistogramValue.decode(e,e.uint32());break;case 5:r.stateSetValue=l.openmetrics.StateSetValue.decode(e,e.uint32());break;case 6:r.infoValue=l.openmetrics.InfoValue.decode(e,e.uint32());break;case 7:r.summaryValue=l.openmetrics.SummaryValue.decode(e,e.uint32());break;case 8:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.unknownValue&&e.hasOwnProperty("unknownValue")){t.value=1;var n=l.openmetrics.UnknownValue.verify(e.unknownValue);if(n)return"unknownValue."+n}if(null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")){if(1===t.value)return"value: multiple values";t.value=1;var r=l.openmetrics.GaugeValue.verify(e.gaugeValue);if(r)return"gaugeValue."+r}if(null!=e.counterValue&&e.hasOwnProperty("counterValue")){if(1===t.value)return"value: multiple values";t.value=1;var a=l.openmetrics.CounterValue.verify(e.counterValue);if(a)return"counterValue."+a}if(null!=e.histogramValue&&e.hasOwnProperty("histogramValue")){if(1===t.value)return"value: multiple values";t.value=1;var o=l.openmetrics.HistogramValue.verify(e.histogramValue);if(o)return"histogramValue."+o}if(null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")){if(1===t.value)return"value: multiple values";t.value=1;var i=l.openmetrics.StateSetValue.verify(e.stateSetValue);if(i)return"stateSetValue."+i}if(null!=e.infoValue&&e.hasOwnProperty("infoValue")){if(1===t.value)return"value: multiple values";t.value=1;var s=l.openmetrics.InfoValue.verify(e.infoValue);if(s)return"infoValue."+s}if(null!=e.summaryValue&&e.hasOwnProperty("summaryValue")){if(1===t.value)return"value: multiple values";t.value=1;var c=l.openmetrics.SummaryValue.verify(e.summaryValue);if(c)return"summaryValue."+c}if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){var u=l.google.protobuf.Timestamp.verify(e.timestamp);if(u)return"timestamp."+u}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricPoint)return e;var t=new l.openmetrics.MetricPoint;if(null!=e.unknownValue){if("object"!==typeof e.unknownValue)throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");t.unknownValue=l.openmetrics.UnknownValue.fromObject(e.unknownValue)}
vendor: 15,591 bytes, line 1
1if(null!=e.gaugeValue){if("object"!==typeof e.gaugeValue)throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");t.gaugeValue=l.openmetrics.GaugeValue.fromObject(e.gaugeValue)}if(null!=e.counterValue){if("object"!==typeof e.counterValue)throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");t.counterValue=l.openmetrics.CounterValue.fromObject(e.counterValue)}if(null!=e.histogramValue){if("object"!==typeof e.histogramValue)throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");t.histogramValue=l.openmetrics.HistogramValue.fromObject(e.histogramValue)}if(null!=e.stateSetValue){if("object"!==typeof e.stateSetValue)throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");t.stateSetValue=l.openmetrics.StateSetValue.fromObject(e.stateSetValue)}if(null!=e.infoValue){if("object"!==typeof e.infoValue)throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");t.infoValue=l.openmetrics.InfoValue.fromObject(e.infoValue)}if(null!=e.summaryValue){if("object"!==typeof e.summaryValue)throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");t.summaryValue=l.openmetrics.SummaryValue.fromObject(e.summaryValue)}if(null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.timestamp=null),null!=e.unknownValue&&e.hasOwnProperty("unknownValue")&&(n.unknownValue=l.openmetrics.UnknownValue.toObject(e.unknownValue,t),t.oneofs&&(n.value="unknownValue")),null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")&&(n.gaugeValue=l.openmetrics.GaugeValue.toObject(e.gaugeValue,t),t.oneofs&&(n.value="gaugeValue")),null!=e.counterValue&&e.hasOwnProperty("counterValue")&&(n.counterValue=l.openmetrics.CounterValue.toObject(e.counterValue,t),t.oneofs&&(n.value="counterValue")),null!=e.histogramValue&&e.hasOwnProperty("histogramValue")&&(n.histogramValue=l.openmetrics.HistogramValue.toObject(e.histogramValue,t),t.oneofs&&(n.value="histogramValue")),null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")&&(n.stateSetValue=l.openmetrics.StateSetValue.toObject(e.stateSetValue,t),t.oneofs&&(n.value="stateSetValue")),null!=e.infoValue&&e.hasOwnProperty("infoValue")&&(n.infoValue=l.openmetrics.InfoValue.toObject(e.infoValue,t),t.oneofs&&(n.value="infoValue")),null!=e.summaryValue&&e.hasOwnProperty("summaryValue")&&(n.summaryValue=l.openmetrics.SummaryValue.toObject(e.summaryValue,t),t.oneofs&&(n.value="summaryValue")),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UnknownValue=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:i.oneOfGetter(t=["doubleValue","intValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.UnknownValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.UnknownValue)return e;var t=new l.openmetrics.UnknownValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.GaugeValue=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:i.oneOfGetter(t=["doubleValue","intValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.GaugeValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.GaugeValue)return e;var t=new l.openmetrics.GaugeValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CounterValue=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.created=null,e.prototype.exemplar=null,Object.defineProperty(e.prototype,"total",{get:i.oneOfGetter(t=["doubleValue","intValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).uint64(e.intValue),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(26).fork()).ldelim(),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.CounterValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.uint64();break;case 3:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.total=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.total)return"total: multiple values";if(t.total=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){var r=l.openmetrics.Exemplar.verify(e.exemplar);if(r)return"exemplar."+r}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.CounterValue)return e;var t=new l.openmetrics.CounterValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!0:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.CounterValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.CounterValue.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.created=null,n.exemplar=null),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.total="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0):e.intValue,t.oneofs&&(n.total="intValue")),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.HistogramValue=function(){function e(e){if(this.buckets=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=i.Long?i.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.buckets=i.emptyArray,Object.defineProperty(e.prototype,"sum",{get:i.oneOfGetter(t=["doubleValue","intValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.buckets&&e.buckets.length)for(var n=0;n<e.buckets.length;++n)l.openmetrics.HistogramValue.Bucket.encode(e.buckets[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.buckets&&r.buckets.length||(r.buckets=[]),r.buckets.push(l.openmetrics.HistogramValue.Bucket.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.buckets&&e.hasOwnProperty("buckets")){if(!Array.isArray(e.buckets))return"buckets: array expected";for(var r=0;r<e.buckets.length;++r){var a=l.openmetrics.HistogramValue.Bucket.verify(e.buckets[r]);if(a)return"buckets."+a}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue)return e;var t=new l.openmetrics.HistogramValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(i.Long?(t.count=i.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new i.LongBits(e.count.low>>>0,e.count.high>
1>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.HistogramValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.buckets){if(!Array.isArray(e.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");t.buckets=[];for(var n=0;n<e.buckets.length;++n){if("object"!==typeof e.buckets[n])throw TypeError(".openmetrics.HistogramValue.buckets: object expected");t.buckets[n]=l.openmetrics.HistogramValue.Bucket.fromObject(e.buckets[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.buckets=[]),t.defaults){if(i.Long){var r=new i.Long(0,0,!0);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.buckets&&e.buckets.length){n.buckets=[];for(var a=0;a<e.buckets.length;++a)n.buckets[a]=l.openmetrics.HistogramValue.Bucket.toObject(e.buckets[a],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Bucket=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.count=i.Long?i.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(8).uint64(e.count),null!=e.upperBound&&Object.hasOwnProperty.call(e,"upperBound")&&t.uint32(17).double(e.upperBound),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue.Bucket;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.count=e.uint64();break;case 2:r.upperBound=e.double();break;case 3:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.count&&e.hasOwnProperty("count")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.upperBound&&e.hasOwnProperty("upperBound")&&"number"!==typeof e.upperBound)return"upperBound: number expected";if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){var t=l.openmetrics.Exemplar.verify(e.exemplar);if(t)return"exemplar."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue.Bucket)return e;var t=new l.openmetrics.HistogramValue.Bucket;if(null!=e.count&&(i.Long?(t.count=i.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new i.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.upperBound&&(t.upperBound=Number(e.upperBound)),null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!0);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?"0":0;n.upperBound=0,n.exemplar=null}return null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.LongBits(e.count.low>>>0,e.count.high>
vendor: 12,363 bytes, line 1
1>>0).toNumber(!0):e.count),null!=e.upperBound&&e.hasOwnProperty("upperBound")&&(n.upperBound=t.json&&!isFinite(e.upperBound)?String(e.upperBound):e.upperBound),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.Exemplar=function(){function e(e){if(this.label=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.prototype.timestamp=null,e.prototype.label=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(18).fork()).ldelim(),null!=e.label&&e.label.length)for(var n=0;n<e.label.length;++n)l.openmetrics.Label.encode(e.label[n],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Exemplar;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.value=e.double();break;case 2:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:r.label&&r.label.length||(r.label=[]),r.label.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){var t=l.google.protobuf.Timestamp.verify(e.timestamp);if(t)return"timestamp."+t}if(null!=e.label&&e.hasOwnProperty("label")){if(!Array.isArray(e.label))return"label: array expected";for(var n=0;n<e.label.length;++n){var r=l.openmetrics.Label.verify(e.label[n]);if(r)return"label."+r}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Exemplar)return e;var t=new l.openmetrics.Exemplar;if(null!=e.value&&(t.value=Number(e.value)),null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.Exemplar.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}if(e.label){if(!Array.isArray(e.label))throw TypeError(".openmetrics.Exemplar.label: array expected");t.label=[];for(var n=0;n<e.label.length;++n){if("object"!==typeof e.label[n])throw TypeError(".openmetrics.Exemplar.label: object expected");t.label[n]=l.openmetrics.Label.fromObject(e.label[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.label=[]),t.defaults&&(n.value=0,n.timestamp=null),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),e.label&&e.label.length){n.label=[];for(var r=0;r<e.label.length;++r)n.label[r]=l.openmetrics.Label.toObject(e.label[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.StateSetValue=function(){function e(e){if(this.states=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.states=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.states&&e.states.length)for(var n=0;n<e.states.length;++n)l.openmetrics.StateSetValue.State.encode(e.states[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.states&&r.states.length||(r.states=[]),r.states.push(l.openmetrics.StateSetValue.State.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.states&&e.hasOwnProperty("states")){if(!Array.isArray(e.states))return"states: array expected";for(var t=0;t<e.states.length;++t){var n=l.openmetrics.StateSetValue.State.verify(e.states[t]);if(n)return"states."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue)return e;var t=new l.openmetrics.StateSetValue;if(e.states){if(!Array.isArray(e.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");t.states=[];for(var n=0;n<e.states.length;++n){if("object"!==typeof e.states[n])throw TypeError(".openmetrics.StateSetValue.states: object expected");t.states[n]=l.openmetrics.StateSetValue.State.fromObject(e.states[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.states=[]),e.states&&e.states.length){n.states=[];for(var r=0;r<e.states.length;++r)n.states[r]=l.openmetrics.StateSetValue.State.toObject(e.states[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.State=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(8).bool(e.enabled),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue.State;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.enabled=e.bool();break;case 2:r.name=e.string();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.enabled&&e.hasOwnProperty("enabled")&&"boolean"!==typeof e.enabled?"enabled: boolean expected":null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue.State)return e;var t=new l.openmetrics.StateSetValue.State;return null!=e.enabled&&(t.enabled=Boolean(e.enabled)),null!=e.name&&(t.name=String(e.name)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.enabled=!1,n.name=""),null!=e.enabled&&e.hasOwnProperty("enabled")&&(n.enabled=e.enabled),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.InfoValue=function(){function e(e){if(this.info=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.info=i.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.info&&e.info.length)for(var n=0;n<e.info.length;++n)l.openmetrics.Label.encode(e.info[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.InfoValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.info&&r.info.length||(r.info=[]),r.info.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.info&&e.hasOwnProperty("info")){if(!Array.isArray(e.info))return"info: array expected";for(var t=0;t<e.info.length;++t){var n=l.openmetrics.Label.verify(e.info[t]);if(n)return"info."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.InfoValue)return e;var t=new l.openmetrics.InfoValue;if(e.info){if(!Array.isArray(e.info))throw TypeError(".openmetrics.InfoValue.info: array expected");t.info=[];for(var n=0;n<e.info.length;++n){if("object"!==typeof e.info[n])throw TypeError(".openmetrics.InfoValue.info: object expected");t.info[n]=l.openmetrics.Label.fromObject(e.info[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.info=[]),e.info&&e.info.length){n.info=[];for(var r=0;r<e.info.length;++r)n.info[r]=l.openmetrics.Label.toObject(e.info[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SummaryValue=function(){function e(e){if(this.quantile=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}var t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=i.Long?i.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.quantile=i.emptyArray,Object.defineProperty(e.prototype,"sum",{get:i.oneOfGetter(t=["doubleValue","intValue"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.quantile&&e.quantile.length)for(var n=0;n<e.quantile.length;++n)l.openmetrics.SummaryValue.Quantile.encode(e.quantile[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.quantile&&r.quantile.length||(r.quantile=[]),r.quantile.push(l.openmetrics.SummaryValue.Quantile.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.quantile&&e.hasOwnProperty("quantile")){if(!Array.isArray(e.quantile))return"quantile: array expected";for(var r=0;r<e.quantile.length;++r){var a=l.openmetrics.SummaryValue.Quantile.verify(e.quantile[r]);if(a)return"quantile."+a}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue)return e;var t=new l.openmetrics.SummaryValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(i.Long?(t.count=i.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new i.LongBits(e.count.low>>>0,e.count.high>
1>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.SummaryValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.quantile){if(!Array.isArray(e.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");t.quantile=[];for(var n=0;n<e.quantile.length;++n){if("object"!==typeof e.quantile[n])throw TypeError(".openmetrics.SummaryValue.quantile: object expected");t.quantile[n]=l.openmetrics.SummaryValue.Quantile.fromObject(e.quantile[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.quantile=[]),t.defaults){if(i.Long){var r=new i.Long(0,0,!0);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.quantile&&e.quantile.length){n.quantile=[];for(var a=0;a<e.quantile.length;++a)n.quantile[a]=l.openmetrics.SummaryValue.Quantile.toObject(e.quantile[a],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Quantile=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.quantile=0,e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.quantile&&Object.hasOwnProperty.call(e,"quantile")&&t.uint32(9).double(e.quantile),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(17).double(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue.Quantile;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.quantile=e.double();break;case 2:r.value=e.double();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.quantile&&e.hasOwnProperty("quantile")&&"number"!==typeof e.quantile?"quantile: number expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue.Quantile)return e;var t=new l.openmetrics.SummaryValue.Quantile;return null!=e.quantile&&(t.quantile=Number(e.quantile)),null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.quantile=0,n.value=0),null!=e.quantile&&e.hasOwnProperty("quantile")&&(n.quantile=t.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),l.google=function(){var e={};return e.protobuf=function(){var e={};return e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=i.Long?i.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof a||(e=a.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.google.protobuf.Timestamp;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&o)}}return r},e.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.seconds||!e.hasOwnProperty("seconds")||i.isInteger(e.seconds)||e.seconds&&i.isInteger(e.seconds.low)&&i.isInteger(e.seconds.high)?null!=e.nanos&&e.hasOwnProperty("nanos")&&!i.isInteger(e.nanos)?"nanos: integer expected":null:"seconds: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.google.protobuf.Timestamp)return e;var t=new l.google.protobuf.Timestamp;return null!=e.seconds&&(i.Long?(t.seconds=i.Long.fromValue(e.seconds)).unsigned=!1:"string"===typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"===typeof e.seconds?t.seconds=e.seconds:"object"===typeof e.seconds&&(t.seconds=new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.seconds=t.longs===String?"0":0;n.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"===typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?i.Long.prototype.toString.call(e.seconds):t.longs===Number?new i.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}()},24:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o}
1)),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var r=n(100);function a(){var e;r.a&&(e=console).log.apply(e,arguments)}function o(){var e;r.a&&(e=console).warn.apply(e,arguments)}function i(){var e;(e=console).error.apply(e,arguments)}function l(){var e;(e=console).log.apply(e,arguments)}},245:function(e,t,n){"use strict";n.d(t,"a",(function(){return ue}));var r=n(384),a=n(2),o=n(4),i=n(6),l=n(7),s=n(79),c=n(5),u=n(17),d=n(0),p=n.n(d),f=n(501),h=n(71),b=n(475),m=n.n(b),g=n(50),y=n(498),O=n(476),w=n.n(O),v=n(477),j=n.n(v),S=n(478),x=n.n(S),k=n(1192),P=n(479),I=n.n(P),C=n(480),V=n.n(C),T=n(78),E=n(1217),A=n(481),N=n.n(A),D=n(1191),R=n(25),B=n(11),M=Object(B.a)("pre",{target:"e10mrw3y3"})((function(e){var t=e.theme;return{margin:0,paddingRight:"2.75rem",color:t.colors.bodyText,".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:"slategray"},".token.punctuation":{color:"#999"},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:t.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:t.colors.green70},".token.number, .token.regex":{color:t.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:t.colors.green80},".token.operator, .token.entity":{color:t.colors.orange90},".token.url":{color:t.colors.purple80},".token.decorator, .token.atrule":{color:t.colors.orange90},".token.keyword, .token.tag":{color:t.colors.blue70},".token.function, .token.class-name, .token.selector":{color:t.colors.blue70,fontWeight:"bold"},".token.important":{color:t.colors.red70,fontWeight:"bold"},".token.comment":{color:t.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"}}}),""),F=Object(B.a)("button",{target:"e10mrw3y2"})((function(e){var t=e.theme;return{opacity:0,height:"2.5rem",padding:0,width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",backgroundColor:t.colors.transparent,color:t.colors.fadedText60,borderRadius:t.radii.xl,transform:"scale(0)","&:active, &:focus, &:hover":{opacity:1,transform:"scale(1)",outline:"none",color:t.colors.bodyText,transition:"none"}}}),""),L=Object(B.a)("div",{target:"e10mrw3y1"})((function(e){var t=e.theme;return{padding:"".concat(t.spacing.sm," ").concat(t.spacing.sm," 0 0"),top:0,right:0,position:"absolute",width:"2.75rem",height:"100%",backgroundColor:t.colors.transparent,zIndex:t.zIndices.sidebar+1}}),""),z=Object(B.a)("div",{target:"e10mrw3y0"})((function(e){var t=e.theme;return{position:"relative",marginLeft:t.spacing.none,marginRight:t.spacing.none,marginTop:t.spacing.none,marginBottom:t.spacing.lg,"&:hover":Object(R.a)({},F,{opacity:1,transform:"scale(1)",outline:"none",transition:"none"})}}),""),W=n(1),H=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).button=Object(d.createRef)(),e.clipboard=null,e.componentDidMount=function(){var t=e.button.current;null!==t&&(e.clipboard=new N.a(t))},e.componentWillUnmount=function(){null!==e.clipboard&&e.clipboard.destroy()},e}return Object(o.a)(n,[{key:"render",value:function(){return Object(W.jsx)(F,{title:"Copy to clipboard",ref:this.button,"data-clipboard-text":this.props.text,style:{to
1p:0,right:0},children:Object(W.jsx)(D.a,{size:"16"})})}}]),n}(d.PureComponent),U=function(e){e.node;var t=e.inline,n=e.className,r=e.children,a=Object(s.a)(e,["node","inline","className","children"]),o=/language-(\w+)/.exec(n||""),i=String(r).trim().replace(/\n$/,"");return t?Object(W.jsx)("code",Object(c.a)(Object(c.a)({className:n},a),{},{children:r})):Object(W.jsxs)(W.Fragment,{children:[i&&Object(W.jsx)(L,{children:Object(W.jsx)(H,{text:i})}),Object(W.jsx)(M,{children:Object(W.jsx)(E.a,{language:o&&o[1]||"",PreTag:"div",customStyle:{backgroundColor:"transparent"},style:{},children:i})})]})};function _(e){var t=e.children;return Object(W.jsx)(z,{className:"stCodeBlock",children:t})}var G=n(184),J=n(265),q=n(26);function Y(e){return e.replace(/rem$/,"em")}function X(e){return{a:{color:e.colors.linkText}}}var Q,K=Object(B.a)("div",{target:"e16nr0p34"})((function(e){var t=e.theme,n=e.isCaption,r=e.isInSidebar,a=e.isLabel,o=e.isCheckbox,i=a&&!o;return Object(c.a)(Object(c.a)({fontFamily:t.genericFonts.bodyFont,marginBottom:"-".concat(t.spacing.lg)},X(t)),{},{p:Object(c.a)({wordBreak:"break-word"},i?{fontSize:t.fontSizes.sm}:{}),li:{margin:"0.2em 0 0.2em 1.2em",padding:"0 0 0 0.6em",fontSize:t.fontSizes.md},tr:{borderTop:"1px solid ".concat(t.colors.fadedText10)},"th, td":{padding:"6px 13px",border:"1px solid ".concat(t.colors.fadedText10)}},n?{color:r?t.colors.gray:t.colors.fadedText60,fontSize:t.fontSizes.sm,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:r?Y(t.fontSizes.xl):"2.25em"},h2:{fontSize:r?Y(t.fontSizes.lg):"1.75em"},h3:{fontSize:r?"1.125em":"1.25em"},"h4, h5, h6":{fontSize:"1em"}}:{})}),""),$=Object(B.a)("div",{target:"e16nr0p33"})((function(){return{position:"relative",left:"calc(-2.5rem - 0.5rem)",width:"calc(100% + 2.5rem + 0.5rem)",display:"flex",alignItems:"center",overflow:"visible",":hover":{a:{opacity:1,transform:"scale(1)",transition:"none"}}}}),""),Z=Object(B.a)("a",{target:"e16nr0p32"})((function(e){var t=e.theme;return{position:"absolute",marginRight:"0.5rem",lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",transform:"scale(0)",transition:"opacity 300ms 150ms, transform 300ms 150ms",opacity:0,height:"2.5rem",width:"2.5rem",zIndex:t.zIndices.sidebar+1,border:"none",backgroundColor:t.colors.lightenedBg05,borderRadius:"50%",svg:{stroke:t.colors.fadedText60},"&:hover svg":{stroke:t.colors.bodyText}}}),""),ee=Object(B.a)("div",{target:"e16nr0p31"})((function(e){var t=e.theme;return Object(c.a)({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:t.spacing.threeXL}},X(t))}),""),te=Object(B.a)("span",{target:"e16nr0p30"})((function(){return{position:"relative",flex:"1",marginLeft:"calc(2.5rem + 0.5rem)"}}),"");n(1072);function ne(e){return e}!function(e){e.H1="h1",e.H2="h2",e.H3="h3"}(Q||(Q={}));var re=Object(g.once)((function(e){e.scrollIntoView(!0)})),ae=function(e){var t=e.tag,n=e.anchor,r=e.children,a=e.tagProps,o=p.a.useContext(G.a),i=p.a.useState(n),l=Object(u.a)(i,2),s=l[0],d=l[1],f=p.a.useState(null),h=Object(u.a)(f,2),b=h[0],m=h[1],g=p.a.useContext(T.a),y=g.addScriptFinishedHandler,O=g.removeScriptFinishedHandler;if(o)return p.a.createElement(t,a,r);var w=p.a.useCallback((function(){null!==b&&window.setTimeout((function(){re(b)}),300)}),[b]);p.a.useEffect((function(){return y(w),function(){O(w)}}),[y,O,w]);var v=p.a.useCallback((function(e){if(null!==e){var t,r=n||((null===(t=e.textContent)||void 0===t?void 0:t.toLowerCase().split(/[^A-Za-z0-9]/).filter(Boolean).join("-"))||"");d(r),window.location.hash.slice(1)===r&&m(e)}}),[n]);return p.a.createElement(t,Object(c.a)(Object(c.a)({},a),{},{ref:v,id:s}),Object(W.jsxs)($,{children:[s&&Object(W.jsx)(Z,{href:"#".concat(s),children:Object(W.jsx)(k.a,{size:"18"})}),Object(W.jsx)(te,{children:r})]}))},oe=function(e){var t=e.node,n=e.children,r=(e.level,Object(s.a)(e,["node","children","level"])),a=r["data-anchor"];return Object(W.jsx)(ee,{children:Object(W.jsx)(ae,{tag:t.tagName,anchor:a,tagProps:r,children:n})})};function ie(e){var t=e.allowHTML,n=e.source,r=e.overrideComponents,a=e.isLabel,o=e.isButton,i=e.isCheckbox,l=e.isExpander,s=e.isTabs,u=Object(c.a)({pre:_,code:U,a:se,h1:oe,h2:oe,h3:oe,h4:oe,h
15:oe,h6:oe},r||{}),d=Object(h.g)(),p=new Map(Object.entries({red:Object(q.getMdRed)(d),blue:Object(q.getMdBlue)(d),green:Object(q.getMdGreen)(d),violet:Object(q.getMdViolet)(d),orange:Object(q.getMdOrange)(d)}));var b,g=[w.a,I.a,V.a,y.a,function(){return function(e){Object(f.a)(e,(function(e){if("textDirective"===e.type){var t=String(e.name);if(p.has(t)){var n=e.data||(e.data={});n.hName="span",n.hProperties={style:"color: ".concat(p.get(t))}}}}))}}],O=[x.a];return t&&O.push(j.a),a&&(b=["p","em","strong","del","code","a","span"]),(o||i||l||s)&&(b=["p","em","strong","del"]),Object(W.jsx)(J.a,{children:Object(W.jsx)(m.a,{remarkPlugins:g,rehypePlugins:O,components:u,transformLinkUri:ne,allowedElements:b,children:n})})}var le=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).componentDidCatch=function(){var t=e.props.source;throw Object.assign(new Error,{name:"Error parsing Markdown or HTML in this string",message:Object(W.jsx)("p",{children:t}),stack:null})},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.source,n=e.allowHTML,r=e.style,a=e.isCaption,o=e.isLabel,i=e.isButton,l=e.isCheckbox,s=e.isExpander,c=e.isTabs,u=this.context;return Object(W.jsx)(K,{isCaption:Boolean(a),isInSidebar:u,isLabel:o,isCheckbox:l,style:r,"data-testid":a?"stCaptionContainer":"stMarkdownContainer",children:Object(W.jsx)(ie,{source:t,allowHTML:n,isLabel:o,isCheckbox:l,isButton:i,isExpander:s,isTabs:c})})}}]),n}(d.PureComponent);function se(e){var t=e.href;if(t&&t.startsWith("#")){var n=e.children,r=(e.node,Object(s.a)(e,["children","node"]));return Object(W.jsx)("a",Object(c.a)(Object(c.a)({},r),{},{children:n}))}var a=e.title,o=e.children,i=(e.node,e.target),l=e.rel,u=Object(s.a)(e,["title","children","node","target","rel"]);return Object(W.jsx)("a",Object(c.a)(Object(c.a)({href:t,title:a,target:i||"_blank",rel:l||"noopener noreferrer"},u),{},{children:o}))}function ce(e,t){switch(e.toLowerCase()){case Q.H1:return"# ".concat(t);case Q.H2:return"## ".concat(t);case Q.H3:return"### ".concat(t);default:throw new Error("Unrecognized tag for header: ".concat(e))}}function ue(e){var t=e.width,n=e.element,a=n.tag,o=n.anchor,i=n.body,l=p.a.useContext(G.a),s=i.split("\n"),c=Object(r.a)(s),u=c[0],f=c.slice(1);return Object(W.jsx)("div",{className:"stMarkdown",style:{width:t},children:Object(W.jsxs)(K,{isCaption:Boolean(!1),isInSidebar:l,style:{width:t},"data-testid":"stMarkdownContainer",children:[Object(W.jsx)(ee,{children:Object(W.jsx)(ae,{tag:a,anchor:o,children:Object(W.jsx)(ie,{source:ce(a,u),allowHTML:!1,overrideComponents:{p:d.Fragment,h1:d.Fragment,h2:d.Fragment,h3:d.Fragment,h4:d.Fragment,h5:d.Fragment,h6:d.Fragment}})})}),f.length>0&&Object(W.jsx)(ie,{source:f.join("\n"),allowHTML:!1})]})})}le.contextType=G.a;t.b=le},246:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));n(0);var r=n(23),a=n(63),o=n(57),i=n(68),l=n(25),s=n(11),c=n(148),u=Object(s.a)("div",{target:"e12sa3f30"})((function(e){var t=e.theme;return Object(l.a)({display:"flex",gap:t.spacing.sm},c.a,{position:"relative",top:"2px"})}),""),d=n(1);function p(e){switch(e){case r.a.Format.ERROR:return i.a.ERROR;case r.a.Format.INFO:return i.a.INFO;case r.a.Format.SUCCESS:return i.a.SUCCESS;case r.a.Format.WARNING:return i.a.WARNING;default:throw new Error("Unexpected alert type: ".concat(e))}}function f(e){var t=e.icon,n=e.body,r=e.kind,l=e.width;return Object(d.jsx)("div",{className:"stAlert",children:Object(d.jsx)(i.b,{width:l,kind:r,children:Object(d.jsxs)(u,{children:[t&&Object(d.jsx)(o.a,{size:"lg",children:t}),Object(d.jsx)(a.a,{source:n,allowHTML:!1})]})})})}},250:function(e,t,n){"use strict";var r=n(5),a=n(138);t.a=Object(r.a)({},a.a)},26:function(e,t,n){"use strict";var r=n(173);n.d(t,"lightBaseUITheme",(function(){return r.b}));var a=n(375);n.d(t,"globalStyles",(function(){return a.a}));var o=n(376);n.o(o,"AUTO_THEME_NAME")&&n.d(t,"AUTO_THEME_NAME",(function(){return o.AUTO_THEME_NAME})),n.o(o,"CUSTOM_THEME_NAME")&&n.d(t,"CUSTOM_THEME_NAME",(function(){return o.CUSTOM_THEME_NAME})),n.o(o,"baseTheme")&&n.d(t,"baseTheme",(function(){return o.baseTheme})),n.o(o,"computeSpacingStyle")&&n.d(t,"computeSpacingStyle",(function(){return o.computeSpacingStyle})),n.o(o,"createAutoTheme")&&n.d(t,"createAutoTheme",(function(){return o.createAutoTheme})),n.o(o,"createPresetThemes")&&n.d(t,"createPresetThemes",(function(){return o.createPresetThemes})),n.o(o,"createTheme")&&n.d(t,"createTheme",(function(){return o.createTheme})),n.o(o,"darkTheme")&&n.d(t,"darkTheme",(function(){return o.darkTheme})),n.o(o,"getCachedTheme")&&n.d(t,"getCachedTheme",(function(){return o.getCachedTheme})),n.o(o,"getCategoricalColorsArray")&&n.d(t,"getCategoricalColorsArray",(function(){return o.getCategoricalColorsArray}
1)),n.o(o,"getDecreasingRed")&&n.d(t,"getDecreasingRed",(function(){return o.getDecreasingRed})),n.o(o,"getDefaultTheme")&&n.d(t,"getDefaultTheme",(function(){return o.getDefaultTheme})),n.o(o,"getDivergingColorsArray")&&n.d(t,"getDivergingColorsArray",(function(){return o.getDivergingColorsArray})),n.o(o,"getGray30")&&n.d(t,"getGray30",(function(){return o.getGray30})),n.o(o,"getGray70")&&n.d(t,"getGray70",(function(){return o.getGray70})),n.o(o,"getGray90")&&n.d(t,"getGray90",(function(){return o.getGray90})),n.o(o,"getIncreasingGreen")&&n.d(t,"getIncreasingGreen",(function(){return o.getIncreasingGreen})),n.o(o,"getMdBlue")&&n.d(t,"getMdBlue",(function(){return o.getMdBlue})),n.o(o,"getMdGreen")&&n.d(t,"getMdGreen",(function(){return o.getMdGreen})),n.o(o,"getMdOrange")&&n.d(t,"getMdOrange",(function(){return o.getMdOrange})),n.o(o,"getMdRed")&&n.d(t,"getMdRed",(function(){return o.getMdRed})),n.o(o,"getMdViolet")&&n.d(t,"getMdViolet",(function(){return o.getMdViolet})),n.o(o,"getSequentialColorsArray")&&n.d(t,"getSequentialColorsArray",(function(){return o.getSequentialColorsArray}
1)),n.o(o,"hasLightBackgroundColor")&&n.d(t,"hasLightBackgroundColor",(function(){return o.hasLightBackgroundColor})),n.o(o,"isPresetTheme")&&n.d(t,"isPresetTheme",(function(){return o.isPresetTheme})),n.o(o,"lightTheme")&&n.d(t,"lightTheme",(function(){return o.lightTheme})),n.o(o,"removeCachedTheme")&&n.d(t,"removeCachedTheme",(function(){return o.removeCachedTheme})),n.o(o,"setCachedTheme")&&n.d(t,"setCachedTheme",(function(){return o.setCachedTheme})),n.o(o,"toExportedTheme")&&n.d(t,"toExportedTheme",(function(){return o.toExportedTheme})),n.o(o,"toThemeInput")&&n.d(t,"toThemeInput",(function(){return o.toThemeInput}));var i=n(99);n.d(t,"AUTO_THEME_NAME",(function(){return i.a})),n.d(t,"CUSTOM_THEME_NAME",(function(){return i.b})),n.d(t,"computeSpacingStyle",(function(){return i.c})),n.d(t,"createTheme",(function(){return i.f})),n.d(t,"getCachedTheme",(function(){return i.g})),n.d(t,"getCategoricalColorsArray",(function(){return i.h})),n.d(t,"getDecreasingRed",(function(){return i.i})),n.d(t,"getDefaultTheme",(function(){return i.j})),n.d(t,"getDivergingColorsArray",(function(){return i.k})),n.d(t,"getGray30",(function(){return i.l})),n.d(t,"getGray70",(function(){return i.m})),n.d(t,"getGray90",(function(){return i.n})),n.d(t,"getIncreasingGreen",(function(){return i.p})),n.d(t,"getMdBlue",(function(){return i.q})),n.d(t,"getMdGreen",(function(){return i.r})),n.d(t,"getMdOrange",(function(){return i.s})),n.d(t,"getMdRed",(function(){return i.t})),n.d(t,"getMdViolet",(function(){return i.u})),n.d(t,"getSequentialColorsArray",(function(){return i.v}
1)),n.d(t,"hasLightBackgroundColor",(function(){return i.w})),n.d(t,"isPresetTheme",(function(){return i.x})),n.d(t,"removeCachedTheme",(function(){return i.y})),n.d(t,"setCachedTheme",(function(){return i.z})),n.d(t,"toExportedTheme",(function(){return i.A})),n.d(t,"toThemeInput",(function(){return i.B}));var l=n(377);n.d(t,"baseTheme",(function(){return l.a})),n.d(t,"createAutoTheme",(function(){return l.b})),n.d(t,"createPresetThemes",(function(){return l.c})),n.d(t,"darkTheme",(function(){return l.d})),n.d(t,"lightTheme",(function(){return l.e}))},264:function(e,t,n){"use strict";var r=n(5),a=n(138),o=n(99),i=n(39),l=n(31),s=Object(r.a)(Object(r.a)({},l.a),{},{bgColor:"#0b0f19",inputBgColor:l.a.gray100,secondaryBg:l.a.gray85,bodyText:l.a.gray10,warning:l.a.yellow20,warningBg:Object(i.g)(l.a.yellow70,.8),success:l.a.green10,successBg:Object(i.g)(l.a.green60,.8),info:l.a.blue20,infoBg:Object(i.g)(l.a.blue60,.8),danger:l.a.red20,dangerBg:Object(i.g)(l.a.red60,.8),primary:"#ffc423",disabled:l.a.gray70,sidebarBackgroundFrom:l.b.gray900,sidebarBackgroundTo:"#0b0f19",lightestGray:l.b.gray800,lightGray:l.a.gray70,gray:l.a.gray60,darkGray:l.a.gray70,red:l.a.red80,blue:l.a.blue80,green:l.a.green80,yellow:l.a.yellow80});t.a=Object(r.a)(Object(r.a)({},a.a),{},{inSidebar:!1,genericColors:Object(r.a)(Object(r.a)({},a.a.genericColors),s),colors:Object(o.e)(Object(r.a)(Object(r.a)({},a.a.colors),s))})},265:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),a=n(4),o=n(6),i=n(7),l=n(0),s=n.n(l),c=n(150),u=n(24),d=n(1),p=function(e){Object(o.a)(n,e);var t=Object(i.a)(n);function n(){var e;Object(r.a)(this,n);for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={error:null},e.componentDidCatch=function(e,t){Object(u.b)("".concat(e.name,": ").concat(e.message,"\n").concat(e.stack))},e}return Object(a.a)(n,[{key:"render",value:function(){var e=this.state.error;return e?"ChunkLoadError"===e.name?Object(d.jsx)(c.a,{width:this.props.width,name:"Network issue",message:Object(d.jsxs)("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",Object(d.jsx)("br",{}),"To fix this, simply reload this app by pressing ",Object(d.jsx)("kbd",{children:"F5"}),", ",Object(d.jsx)("kbd",{children:"Ctrl+R"}),", or ",Object(d.jsx)("kbd",{children:"Cmd+R"}),".",Object(d.jsx)("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",Object(d.jsx)("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):Object(d.jsx)(c.a,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}}]),n}(s.a.PureComponent);p.getDerivedStateFromError=function(e){return{error:e}};var f=p},289:function(e,t,n){"use strict";var r=n(5),a=n(31);t.a=Object(r.a)(Object(r.a)({},a.a),{},{bgColor:a.a.white,inputBgColor:a.a.white,secondaryBg:a.b.gray100,bodyText:a.a.gray90,warning:a.b.yellow800,warningBg:a.b.yellow50,success:a.b.green800,successBg:a.b.green50,info:a.b.blue800,infoBg:a.b.blue50,danger:a.b.red800,dangerBg:a.b.red50,primary:"#ffc423",disabled:a.a.gray40,sidebarBackgroundFrom:a.b.gray50,sidebarBackgroundTo:a.a.white,lightestGray:a.b.gray100,lightGray:a.b.gray200,gray:a.b.gray400,darkGray:a.b.gray500,red:a.b.red500,blue:a.b.blue500,green:a.b.green500,yellow:a.b.yellow500})},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r={transparent:"transparent",current:"currentColor",inherit:"inherit",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",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",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",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#8
103df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"},a={blueGray50:"#f8fafc",blueGray100:"#f1f5f9",blueGray200:"#e2e8f0",blueGray300:"#cbd5e1",blueGray400:"#94a3b8",blueGray500:"#64748b",blueGray600:"#475569",blueGray700:"#334155",blueGray800:"#1e293b",blueGray900:"#0f172a",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",trueGray50:"#fafafa",trueGray100:"#f5f5f5",trueGray200:"#e5e5e5",trueGray300:"#d4d4d4",trueGray400:"#a3a3a3",trueGray500:"#737373",trueGray600:"#525252",trueGray700:"#404040",trueGray800:"#262626",trueGray900:"#171717",warmGray50:"#fafaf9",warmGray100:"#f5f5f4",warmGray200:"#e7e5e4",warmGray300:"#d6d3d1",warmGray400:"#a8a29e",warmGray500:"#78716c",warmGray600:"#57534e",warmGray700:"#44403c",warmGray800:"#292524",warmGray900:"#1c1917",red50:"#fef2f2",red100:"#fee2e2",red200:"#fecaca",red300:"#fca5a5",red400:"#f87171",red500:"#ef4444",red600:"#dc2626",red700:"#b91c1c",red800:"#991b1b",red900:"#7f1d1d",orange50:"#fff7ed",orange100:"#ffedd5",orange200:"#fed7aa",orange300:"#fdba74",orange400:"#fb923c",orange500:"#f97316",orange600:"#ea580c",orange700:"#c2410c",orange800:"#9a3412",orange900:"#7c2d12",yellow50:"#fffbeb",yellow100:"#fef3c7",yellow200:"#fde68a",yellow300:"#fcd34d",yellow400:"#fbbf24",yellow500:"#f59e0b",yellow600:"#d97706",yellow700:"#b45309",yellow800:"#92400e",yellow900:"#78350f",lime50:"#f7fee7",lime100:"#ecfccb",lime200:"#d9f99d",lime300:"#bef264",lime400:"#a3e635",lime500:"#84cc16",lime600:"#65a30d",lime700:"#4d7c0f",lime800:"#3f6212",lime900:"#365314",green50:"#ecfdf5",green100:"#d1fae5",green200:"#a7f3d0",green300:"#6ee7b7",green400:"#34d399",green500:"#10b981",green600:"#059669",green700:"#047857",green800:"#065f46",green900:"#064e3b",teal50:"#f0fdfa",teal100:"#ccfbf1",teal200:"#99f6e4",teal300:"#5eead4",teal400:"#2dd4bf",teal500:"#14b8a6",teal600:"#0d9488",teal700:"#0f766e",teal800:"#115e59",teal900:"#134e4a",cyan50:"#ecfeff",cyan100:"#cffafe",cyan200:"#a5f3fc",cyan300:"#67e8f9",cyan400:"#22d3ee",cyan500:"#06b6d4",cyan600:"#0891b2",cyan700:"#0e7490",cyan800:"#155e75",cyan900:"#164e63",lightBlue50:"#f0f9ff",lightBlue100:"#e0f2fe",lightBlue200:"#bae6fd",lightBlue300:"#7dd3fc",lightBlue400:"#38bdf8",lightBlue500:"#0ea5e9",lightBlue600:"#0284c7",lightBlue700:"#0369a1",lightBlue800:"#075985",lightBlue900:"#0c4a6e",blue50:"#eff6ff",blue100:"#dbeafe",blue200:"#bfdbfe",blue300:"#93c5fd",blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",blue800:"#1e40af",blue900:"#1e3a8a",indigo50:"#eef2ff",indigo100:"#e0e7ff",indigo200:"#c7d2fe",indigo300:"#a5b4fc",indigo400:"#818cf8",indigo500:"#6366f1",indigo600:"#4f46e5",indigo700:"#4338ca",indigo800:"#3730a3",indigo900:"#312e81",purple50:"#f5f3ff",purple100:"#ede9fe",purple200:"#ddd6fe",purple300:"#c4b5fd",purple400:"#a78bfa",purple500:"#8b5cf6",purple600:"#7c3aed",purple700:"#6d28d9",purple800:"#5b21b6",purple900:"#4c1d95",fuchsia50:"#fdf4ff",fuchsia100:"#fae8ff",fuchsia200:"#f5d0fe",fuchsia300:"#f0abfc",fuchsia400:"#e879f9",fuchsia500:"#d946ef",fuchsia600:"#c026d3",fuchsia700:"#a21caf",fuchsia800:"#86198f",fuchsia900:"#701a75",pink50:"#fdf2f8",pink100:"#fce7f3",pink200:"#fbcfe8",pink300:"#f9a8d4",pink400:"#f472b6",pink500:"#ec4899",pink600:"#db2777",pink700:"#be185d",pink800:"#9d174d",pink900:"#831843",rose50:"#fff1f2",rose100:"#ffe4e6",rose200:"#fecdd3",rose300:"#fda4af",rose400:"#fb7185",rose500:"#f43f5e",rose600:"#e11d48",rose700:"#be123c",rose800:"#9f1239",rose900:"#881337"}},332:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts","allow-downloads"].join(" "),a=["accelerometer","ambient-light-sensor","autoplay","battery","camera","document-domain","encrypted-media","fullscreen","geolocation","gyroscope","layout-animations","legacy-image-formats","magnetometer","microphone","midi","oversized-images","payment","picture-in-picture","publickey-credentials-get","sync-xhr","usb","vr ","wake-lock","xr-spatial
1-tracking"].join("; ")},344:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,a=n(11);!function(e){e.DANGER="danger"}(r||(r={}));var o=Object(a.a)("small",{target:"euu6i2w0"})((function(e){var t=e.kind,n=e.theme,a=n.colors,o=a.danger,i=a.fadedText60;return{color:t===r.DANGER?o:i,fontSize:n.fontSizes.sm,lineHeight:"1.25"}}),"")},346:function(e,t,n){"use strict";n.d(t,"b",(function(){return w}));var r=n(17),a=n(2),o=n(4),i=n(6),l=n(7),s=n(0),c=n.n(s),u=n(1166),d=n(24),p=n(170),f=n(334),h=n(50),b=n.n(h),m=n(65),g=n(131),y=n(130),O=n(1);function w(e,t){return t?b()(e).filter((function(e){return Object(f.a)(t,e.label)})).sortBy((function(e){return Object(f.b)(t,e.label)})).reverse().value():e}var v=function(e){Object(i.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(a.a)(this,n);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return(e=t.call.apply(t,[this].concat(i))).state={isEmpty:!1,value:e.props.value},e.onChange=function(t){if(0!==t.value.length){var n=Object(r.a)(t.value,1)[0];e.setState({value:parseInt(n.value,10)},(function(){return e.props.onChange(e.state.value)}))}else Object(d.d)("No value selected!")},e.onInputChange=function(t){var n=t.target.value;e.setState({isEmpty:!n})},e.onClose=function(){e.setState({isEmpty:!1})},e.filterOptions=function(e,t){return w(e,t)},e}return Object(o.a)(n,[{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.state.value!==this.props.value&&this.setState((function(e,t){return{value:t.value}}))}},{key:"render",value:function(){var e={width:this.props.width},t=this.props,n=t.label,r=t.labelVisibility,a=t.help,o=this.props,i=o.disabled,l=o.options,s=[{label:l.length>0?l[this.state.value]:"No options to select.",value:this.state.value.toString()}];this.state.isEmpty&&(s=[]),0===l.length&&(l=["No options to select."],i=!0);var c=l.map((function(e,t){return{label:e,value:t.toString()}}));return Object(O.jsxs)("div",{className:"row-widget stSelectbox",style:e,children:[Object(O.jsx)(y.d,{label:n,labelVisibility:r,disabled:i,children:a&&Object(O.jsx)(y.b,{children:Object(O.jsx)(g.a,{content:a,placement:m.b.TOP_RIGHT})})}),Object(O.jsx)(u.a,{clearable:!1,disabled:i,labelKey:"label","aria-label":n||"",onChange:this.onChange,onInputChange:this.onInputChange,onClose:this.onClose,options:c,filterOptions:this.filterOptions,value:s,valueKey:"value",overrides:{Root:{style:function(){return{lineHeight:1.4}}},Dropdown:{component:p.a},ControlContainer:{style:function(){return{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}}},IconsContainer:{style:function(){return{paddingRight:".5rem"}}},ValueContainer:{style:function(){return{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}},Input:{style:function(){return{lineHeight:1.4}}},Popover:{props:{overrides:{Body:{style:function(){return{marginTop:"1px"}}}}}}}})]})}}]),n}(c.a.PureComponent);t.a=v},35:function(e,t,n){"use strict";n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return P}));n(0);var r,a,o=n(25),i=n(5),l=n(11),s=n(39);!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.TERTIARY="tertiary",e.LINK="link",e.ICON="icon",e.BORDERLESS_ICON="borderlessIcon",e.MINIMAL="minimal",e.PRIMARY_FORM_SUBMIT="primaryFormSubmit",e.SECONDARY_FORM_SUBMIT="secondaryFormSubmit",e.HEADER_BUTTON="header"}(r||(r={})),function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={}));var c=Object(l.a)("button",{target:"edgvbvh12"})((function(e){var t=e.fluidWidth,n=e.size,r=e.theme;return Object(i.a)({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:"".concat(r.spacing.xs," ").concat(r.spacing.md),borderRadius:r.radii.md,margin:0,lineHeight:r.lineHeights.base,color:"inherit",width:t?"100%":"auto",userSelect:"none","&:focus":{boxShadow:"0 0 0 0.2rem ".concat(Object(s.g)(r.colors.primary,.5)),outline:"none"}},function(e,t){switch(e){case a.XSMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.sm),fontSize:t.fontSizes.sm};case a.SMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.md)};case a.LARGE:return{padding:"".concat(t.spacing.md," ").concat(t.spacing.md)};default:return{padding:"".concat(t.spacing.xs," ").concat(t.spacing.md)}}}(n,r))}),""),u=Object(l.a)(c,{target:"edgvbvh11"})((function(e){var t=e.theme;return{backgroundColor:t.colors.primary,color:t.colors.white,border:"1px solid ".concat(t.colors.primary),"&:hover":{backgroundColor:Object(s.a)(t.colors.primary,.05)},"&:active":{backgroundColor:"transparent",color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:t.colors.fadedText10,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:"not-allowed"}}}),""),d=Object(l.a)(c,{target:"edgvbvh10"})((function(e){var t=e.theme;return{backgroundColor:t.colors.lightenedBg05,border:"1px solid ".concat(t.colors.fadedText10),"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{color:t.colors.white,borderColor:t.colors.primary,backgroundColor:t.colors.primary},"&:focus:not(:active)":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:t.colors.fadedText10,backgroundColor:t.colors.transparent,color:t.colors.fadedText40,cursor:"not-allowed"}}}),""),p=Object(l.a)(c,{target:"edgvbvh9"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"1px solid ".concat(t.colors.transparent),"&:hover":{borderColor:t.colors.transparent,color:t.colors.primary},"&:active":{color:t.colors.primary,borderColor:t.colors.transparent,backgroundColor:t.colors.transparent},"&:focus:not(:active)":{borderColor:t.colors.transparent,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),f=Object(l.a)(c,{target:"edgvbvh8"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,padding:0,border:"none",color:t.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:t.colors.transparent,color:t.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),h=Object(l.a)(c,{target:"edgvbvh7"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"none",boxShadow:"none",padding:0,"&:hover, &:active, &:focus":{color:t.colors.primary}}}),""),b=Object(l.a)(u,{target:"edgvbvh6"})(""),m=Object(l.a)(d,{target:"edgvbvh5"})(""),g=Object(l.a)(c,{target:"edgvbvh4"})((function(e){var t,n=e.size,r=e.theme,i=(t={},Object(o.a)(t,a.XSMALL,r.spacing.threeXS),Object(o.a)(t,a.SMALL,r.spacing.twoXS),Object(o.a)(t,a.MEDIUM,r.spacing.md),Object(o.a)(t,a.LARGE,r.spacing.lg),t);return{backgroundColor:r.colors.transparent,border:"1px solid ".concat(r.colors.transparent),padding:i[n],"&:hover":{borderColor:r.colors.primary,color:r.colors.primary},"&:active":{backgroundColor:r.colors.primary,borderColor:r.colors.primary,color:r.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:r.colors.lightGray,borderColor:r.colors.transparent,color:r.colors.gray}}}),""),y=Object(l.a)(c,{target:"edgvbvh3"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"none",padding:t.spacing.sm,fontSize:t.fontSizes.sm,marginLeft:t.spacing.threeXS,marginRight:t.spacing.threeXS,lineHeight:1,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:"0 0 0 0.2rem ".concat(Object(s.g)(t.colors.gray90,.8))},"&:hover":{backgroundColor:t.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),O=Object(l.a)(c,{target:"edgvbvh2"})((function(e){var t,n=e.size,r=e.theme,i=(t={},Object(o.a)(t,a.XSMALL,r.spacing.threeXS),Object(o.a)(t,a.SMALL,r.spacing.twoXS),Object(o.a)(t,a.MEDIUM,r.spacing.md),Object(o.a)(t,a.LARGE,r.spacing.lg),t);return{backgroundColor:r.colors.transparent,border:"1px solid ".concat(r.colors.transparent),padding:i[n],"&:focus":{boxShadow:"none",outline:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:r.colors.lightGray,borderColor:r.colors.transparent,color:r.colors.gray}}}),""),w=Object(l.a)("div",{target:"edgvbvh1"})((function(e){var t=e.theme;return Object(o.a)({display:"block"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"none"})}),""),v=Object(l.a)("div",{target:"edgvbvh0"})((function(e){var t=e.theme;return Object(o.a)({display:"none"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"block"})}),""),j=n(1);var S=function(e){var t=e.kind,n=e.size,o=e.disabled,i=e.onClick,l=e.fluidWidth,s=e.children,c=e.autoFocus,w=u;return t===r.SECONDARY?w=d:t===r.TERTIARY?w=p:t===r.LINK?w=f:t===r.ICON?w=g:t===r.BORDERLESS_ICON?w=O:t===r.MINIMAL?w=h:t===r.PRIMARY_FORM_SUBMIT?w=b:t===r.SECONDARY_FORM_SUBMIT?w=m:t===r.HEADER_BUTTON&&(w=y),Object(j.jsx)(w,{kind:t,size:n||a.MEDIUM,fluidWidth:l||!1,disabled:o||!1,onClick:i||function(){},autoFocus:c||!1,children:s})},x=n(131),k=n(65);function P(e){var t=e.children,n=e.help;return n?Object(j.jsxs)("div",{className:"stTooltipIcon",children:[Object(j.jsx)(w,{children:Object(j.jsx)(x.a,{content:n,placement:k.b.TOP,children:t})}),Object(j.jsx)(v,{children:t})]}):t}},375:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
1));var r=n(53),a=n(39),o=function(e){return Object(r.b)("a,a:visited{color:",e.colors.primary,";}a:hover,a:active{color:",e.colors.primary,";text-decoration:underline;}iframe{border:none;padding:0;margin:0;}code{padding:0.2em 0.4em;margin:0;border-radius:",e.radii.md,";background:",e.colors.codeHighlightColor,";color:",e.colors.codeTextColor,";}pre{margin:0 0 1rem 0;background:",e.colors.codeHighlightColor,";border-radius:",e.radii.md,";padding:1rem;code{background:transparent;border:0;display:inline;font-size:",e.fontSizes.sm,";line-height:inherit;margin:0;padding:0;white-space:pre;word-break:normal;word-wrap:normal;overflow-x:auto;color:",e.colors.codeTextColor,';}}section[data-testid="stSidebar"]{pre{background:',e.colors.bgColor,";border:1px solid ",e.colors.lightestGray,';}.stSelectbox [data-baseweb="select"],.stTextInput [data-baseweb="input"],.stTextArea [data-baseweb="textarea"],.stNumberInput>label+div,[data-testid="stFileUploadDropzone"]{border:1px solid ',e.colors.lightestGray,";border-radius:0.25rem;}}.disabled{color:",e.colors.disabled,";}#vg-tooltip-element{font-family:",e.genericFonts.bodyFont,";color:",e.colors.bodyText,";border:1px solid ",e.colors.fadedText10,";background-color:",Object(a.g)(e.colors.bgColor,.05),";font-size:",e.fontSizes.sm,";box-shadow:rgb(0 0 0 / 16%) 0px 1px 4px;padding:",e.spacing.xs," ",e.spacing.md,";border-radius:",e.radii.md,";z-index:",e.zIndices.fullscreenWrapper,";}#vg-tooltip-element td{border:none;}#vg-tooltip-element table tr td.key{color:",e.colors.fadedText60,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",e.genericFonts.bodyFont,";font-weight:",e.fontWeights.normal,";line-height:",e.lineHeights.base,";color:",e.colors.bodyText,";background-color:",e.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",Object(a.g)(e.colors.black,1),';-webkit-font-smoothing:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important;}hr{margin:2em 0;padding:0;color:inherit;background-color:transparent;border:none;border-bottom:1px solid ',e.colors.fadedText10,";}hr:not([size]){height:1px;}h1{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.extrabold,";color:",e.colors.headingColor,";padding:1.25rem 0 1rem 0;margin:0;line-height:1.2;}h2{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:1rem 0 1rem 0;margin:0;line-height:1.2;}h3{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:0.5rem 0 1rem 0;margin:0;line-height:1.2;}h4{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0.75rem 0 1rem 0;margin:0;line-height:1.2;}h5{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}h6{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none;}address{margin-bottom:1rem;font-style:normal;line-height:inherit;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:400;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}dt{font-size:1rem;font-weight:600;margin:1em 0 0.2em 0;padding:0;}dd{margin:0 0 0.2em 1.2em;font-size:1rem;}b,strong{font-weight:",e.fontWeights.bold,";}mark{padding:0.2em;background-color:",e.colors.secondaryBg,";}sub,sup{position:relative;line-height:0;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}a{color:",e.colors.primary,";text-decoration:underline;&:hover{color:",Object(a.a)(e.colors.primary,.15),";}}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}pre,code,kbd{font-family:",e.genericFonts.codeFont,";}samp{font-family:",e.genericFonts.codeFont,";}samp,blockquote{margin:1em 0 1em -1px;padding:0 0 0 1.2em;font-size:1rem;border-left:1px solid ",e.colors.lightGray,";}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;color:",Object(a.e)(e.colors.bgColor),";-ms-overflow-style:scrollbar;code{color:inherit;word-break:normal;}}
1code{color:",e.colors.codeTextColor,";word-wrap:break-word;a>&{color:inherit;}}kbd{padding:0.2rem 0.4rem;color:",e.colors.codeTextColor,";background-color:",e.colors.codeHighlightColor,";}figure{margin:0 0 1rem;}img,svg{vertical-align:middle;}table{caption-side:bottom;border-collapse:collapse;}table caption{padding-top:",e.spacing.sm,";padding-bottom:0;color:",e.colors.gray60,';text-align:left;}th{text-align:inherit;text-align:-webkit-match-parent;}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0;}label{display:inline-block;}button{border-radius:0;}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;}button,input{overflow:visible;}button,select{text-transform:none;}[role="button"]{cursor:pointer;}select{word-wrap:normal;}[list]::-webkit-calendar-picker-indicator{display:none;}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}::-moz-focus-inner{padding:0;border-style:none;}textarea{resize:vertical;}fieldset{min-width:0;padding:0;margin:0;border:0;}legend{float:left;width:100%;padding:0;margin-bottom:',e.spacing.sm,';line-height:inherit;white-space:normal;+*{clear:left;}}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0;}::-webkit-inner-spin-button{height:auto;}[type="search"]{outline-offset:-2px;-webkit-appearance:textfield;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-color-swatch-wrapper{padding:0;}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button;}output{display:inline-block;}iframe{border:0;}summary{display:list-item;cursor:pointer;}progress{vertical-align:baseline;}[hidden]{display:none!important;}::-webkit-scrollbar{background:transparent;border-radius:100px;height:6px;width:6px;}::-webkit-scrollbar:active{background:',e.colors.fadedText10,';}section.main[tabindex="0"]{overflow:hidden;}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:',e.colors.fadedText40,";border-radius:100px;}","")}},376:function(e,t){},377:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g}));var r=n(5),a=n(339),o=n(338),i=n(1167),l=n(503),s=n(173),c=n(138),u=n(250),d=n(264),p=n(99),f={name:"base",emotion:c.a,baseweb:a.a,basewebTheme:s.b,primitives:o.a},h={name:"Dark",emotion:d.a,baseweb:i.a,basewebTheme:s.a,primitives:l.a},b={name:"Light",emotion:u.a,baseweb:a.a,basewebTheme:s.b,primitives:o.a},m=function(){return Object(r.a)(Object(r.a)({},Object(p.o)()),{},{name:p.a})},g=function(){return[m(),b,h]}},40:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return f})),n.d(t,"n",(function(){return h})),n.d(t,"m",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"p",(function(){return y})),n.d(t,"o",(function(){return O})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return v})),n.d(t,"c",(function(){return j})),n.d(t,"q",(function(){return S})),n.d(t,"d",(function(){return x})),n.d(t,"k",(function(){return k})),n.d(t,"j",(function(){return P})),n.d(t,"a",(function(){return r})),n.d(t,"l",(function(){return I}));var r,a=n(23),o=n(50),i=n.n(o),l=n(473),s=n.n(l),c=n(474),u=n.n(c);function d(e,t){var n;return function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){t.apply(void 0,a),n=null}),e)}}function p(){return"true"===s.a.parse(window.location.href,!0).query.embed}function f(){return window.parent!==window}function h(e){return new a.g({alert:{body:e,format:a.a.Format.INFO}})}function b(e){return new a.g({alert:{body:e,format:a.a.Format.ERROR}})}function m(e){return u.a.h32(e,3735928559).toString(16)}function g(e){if(null==e)throw new Error("value is null");return e}function y(e){return void 0!==e}function O(e){return null!==e&&void 0!==e}function w(){return/Mac/i.test(navigator.platform)}function v(){return/^Win/i.test(navigator.platform)}function j(e){var t=document.cookie.match("\\b".concat(e,"=([^;]*)\\b"));return t?t[1]:void 0}function S(e,t,n){var r=t?n:new Date,a=r?"expires=".concat(r.toUTCString(),";"):"";document.cookie="".concat(e,"=").concat(t,";").concat(a,"path=/")}
1function x(e){return i.a.get(e,[g(e.type),"id"])}function k(e){return null!=e&&e.length>0}function P(e){return k(e.formId)}function I(e){switch(e){case a.l.LabelVisibilityOptions.VISIBLE:return r.Visible;case a.l.LabelVisibilityOptions.HIDDEN:return r.Hidden;case a.l.LabelVisibilityOptions.COLLAPSED:return r.Collapsed;default:return r.Visible}}!function(e){e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Collapsed=2]="Collapsed"}(r||(r={}))},442:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(17),a=n(0),o=function(e){var t=Object(a.useRef)();return Object(a.useEffect)((function(){t.current=e}),[e]),t.current},i=function(e){var t=e.current,n=Object(a.useState)(!1),o=Object(r.a)(n,2),i=o[0],l=o[1];return Object(a.useEffect)((function(){if(t){var e=t.scrollHeight,n=t.clientHeight;l(e>n)}})),i}},47:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),a=n(4),o=n(40),i=function(){function e(t){var n=t.appId,a=t.sessionId,o=t.streamlitVersion,i=t.pythonVersion,l=t.installationId,s=t.installationIdV3,c=t.authorEmail,u=t.maxCachedMessageAge,d=t.commandLine,p=t.userMapboxToken;if(Object(r.a)(this,e),this.appId=void 0,this.sessionId=void 0,this.streamlitVersion=void 0,this.pythonVersion=void 0,this.installationId=void 0,this.installationIdV3=void 0,this.authorEmail=void 0,this.maxCachedMessageAge=void 0,this.commandLine=void 0,this.userMapboxToken=void 0,null==n||null==a||null==o||null==i||null==l||null==s||null==c||null==u||null==d||null==p)throw new Error("SessionInfo arguments must be non-null");this.appId=n,this.sessionId=a,this.streamlitVersion=o,this.pythonVersion=i,this.installationId=l,this.installationIdV3=s,this.authorEmail=c,this.maxCachedMessageAge=u,this.commandLine=d,this.userMapboxToken=p}return Object(a.a)(e,null,[{key:"current",get:function(){if(!e.singleton)throw new Error("Tried to use SessionInfo before it was initialized");return e.singleton},set:function(t){e.singleton=t}},{key:"isSet",value:function(){return null!=e.singleton}},{key:"isHello",get:function(){return"streamlit hello"===this.current.commandLine}},{key:"clearSession",value:function(){e.singleton=void 0}},{key:"fromNewSessionMessage",value:function(t){var n=t.initialize,r=t.config,a=n.userInfo,i=n.environmentInfo;return new e({appId:Object(o.e)(a.installationIdV3+t.mainScriptPath),sessionId:n.sessionId,streamlitVersion:i.streamlitVersion,pythonVersion:i.pythonVersion,installationId:a.installationId,installationIdV3:a.installationIdV3,authorEmail:a.email,maxCachedMessageAge:r.maxCachedMessageAge,commandLine:n.commandLine,userMapboxToken:r.mapboxToken})}}]),e}();i.singleton=void 0},48:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.NOT_RUNNING="notRunning",e.RUNNING="running",e.RERUN_REQUESTED="rerunRequested",e.STOP_REQUESTED="stopRequested",e.COMPILATION_ERROR="compilationError"}(r||(r={}))},57:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(5),a=(n(0),n(148)),o=n(1),i=function(e){return{size:e.size||"md",margin:e.margin||"",padding:e.padding||""}},l=function(e){var t=e.size,n=e.margin,l=e.padding,s=e.children;return Object(o.jsx)(a.a,Object(r.a)(Object(r.a)({"aria-hidden":"true"},i({size:t,margin:n,padding:l})),{},{children:s}))},s=function(e){var t=e.content,n=e.color,l=e.size,s=e.margin,c=e.padding;return Object(o.jsx)(a.b,Object(r.a)({as:t,color:n||"inherit","aria-hidden":"true"},i({size:l,margin:s,padding:c})))}},63:function(e,t,n){"use strict";var r=n(245);n.d(t,"a",(function(){return r.b}))},65:function(e,t,n){"use strict";n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return v}));var r,a=n(5),o=n(0),i=n.n(o),l=n(71),s=n(26),c=n(1218),u=n(41),d=n(25),p=n(11),f=n(39);var h,b=Object(p.a)("div",{target:"e1wqxbhn2"})({name:"87mhkc",styles:"display:table;table-layout:fixed;width:100%"}),m=Object(p.a)("div",{target:"e1wqxbhn1"})((r={},Object(d.a)(r,"@media (min-width: 768px)",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Object(d.a)(r,"display","table-cell"),r),""),g=Object(p.a)("div",{target:"e1wqxbhn0"})((function(e){var t,n=e.theme;return t={boxSizing:"border-box",fontSize:"".concat(n.fontSizes.sm),maxWidth:"calc(".concat(n.sizes.contentMaxWidth," - 4rem)"),maxHeight:"300px",overflow:["auto","overlay"],padding:"".concat(n.spacing.xs," ").concat(n.spacing.md)},Object(d.a)(t,"@media (max-width: ".concat(n.breakpoints.sm,")"),{maxWidth:"calc(100% - 2rem)"}),Object(d.a)(t,"img",{maxWidth:"100%"}),Object(d.a)(t,"code",{background:Object(f.g)(n.colors.darkenedBgMix100,.8)}),Object(d.a)(t,"*",{fontSize:"".concat(n.fontSizes.sm," !important")}),t}),""),y=n(1);!function(e){e.AUTO="auto",e.TOP_LEFT="topLeft",e.TOP="top",e.TOP_RIGHT="topRight",e.RIGHT_TOP="rightTop",e.RIGHT="right",e.RIGHT_BOTTOM="rightBottom",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottomLeft",e.LEFT_BOTTOM="leftBottom",e.LEFT="left",e.LEFT_TOP="leftTop"}(h||(h={}));var O=function(e){var t=e.content,n=e.placement,r=e.children,o=e.inline,i=e.style,d=Object(l.g)(),p=d.colors,f=d.fontSizes,h=d.radii;return Object(y.jsx)(c.a,{content:t?Object(y.jsx)(g,{children:t}):null,placement:u.f[n],accessibilityType:u.a.tooltip,showArrow:!1,popoverMargin:10,overrides:{Body:{style:{borderTopLeftRadius:h.md,borderTopRightRadius:h.md,borderBottomLeftRadius:h.md,borderBottomRightRadius:h.md,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}}
1,Inner:{style:{backgroundColor:Object(s.hasLightBackgroundColor)(d)?p.bgColor:p.secondaryBg,color:p.bodyText,fontSize:f.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:Object(y.jsx)("div",{style:Object(a.a)({display:"flex",flexDirection:"row",justifyContent:o?"flex-end":""},i),"data-testid":"tooltipHoverTarget",children:r})})},w=n(17);var v=function(e){var t=e.content,n=e.placement,r=e.children,a=e.inline,l=e.style,s=i.a.useRef(null),c=Object(o.useState)(!1),u=Object(w.a)(c,2),d=u[0],p=u[1];return i.a.useEffect((function(){var e=!!(null===s||void 0===s?void 0:s.current)&&s.current.offsetWidth<s.current.scrollWidth;e!==d&&p(e)}),[r,d]),Object(y.jsx)(O,{content:d?t:"",placement:n,inline:a,children:Object(y.jsx)(b,{children:Object(y.jsx)(m,{ref:s,style:l,children:r})})})}},67:function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return y}));var r=n(5),a=n(50),o=n(100),i=n(471),l=/\/+$/,s=/^\/+/,c="data:image/svg+xml,";function u(){return{host:window.location.hostname,port:o.a?o.c:window.location.port?Number(window.location.port):b()?443:80,basePath:window.location.pathname.replace(l,"").replace(s,"")}}function d(){var e=u(),t=e.basePath;if(!t)return[e];for(var n=t.split("/"),o=[];n.length>0;)o.push(Object(r.a)(Object(r.a)({},e),{},{basePath:n.join("/")})),n.pop();return o.push(Object(r.a)(Object(r.a)({},e),{},{basePath:""})),Object(a.take)(o,2)}function p(e,t){var n=e.host,r=e.port,a=e.basePath,o=b()?"wss":"ws",i=h(a,t);return"".concat(o,"://").concat(n,":").concat(r,"/").concat(i)}function f(e,t){var n=e.host,r=e.port,a=e.basePath,o=b()?"https":"http",i=h(a,t);return"".concat(o,"://").concat(n,":").concat(r,"/").concat(i)}function h(e,t){return e=e.replace(l,"").replace(s,""),t=t.replace(l,"").replace(s,""),0===e.length?t:"".concat(e,"/").concat(t)}function b(){return window.location.href.startsWith("https://")}function m(e){var t=e.substring("data:image/svg+xml,".length);return i.a.sanitize(t,{})}function g(e,t){return e.startsWith(c)?"".concat(c).concat(m(e)):(t||(t=u()),e.startsWith("/media")?f(t,e):e)}function y(e,t){var n,r;try{n=new URL(e),r=new URL(t)}catch(s){return!1}if(n.protocol!==r.protocol||n.port!==r.port)return!1;var a=n.hostname,o=r.hostname;if(a===o)return!0;var i=a.replace(/%2A/g,"*").split("."),l=o.split(".");return i.length===l.length&&i.every((function(e,t){return"*"===e||e===l[t]}))}},68:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return r}));n(0);var r,a=n(54),o=n(1220),i=n(11),l=Object(i.a)("div",{target:"e13vu3m50"})((function(e){var t=e.theme;return{pre:{backgroundColor:t.colors.transparent,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg,border:"1px solid ".concat(t.colors.fadedText10),"pre, code":{backgroundColor:t.colors.transparent,color:"inherit"}},code:{backgroundColor:t.colors.transparent,padding:t.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}}),""),s=n(1);function c(e){switch(e){case r.ERROR:return a.a.negative;case r.INFO:return a.a.info;case r.SUCCESS:return a.a.positive;case r.WARNING:return a.a.warning;default:throw new Error("Unexpected alert type: ".concat(e))}}function u(e){var t=e.kind,n=e.width,r=e.children;return Object(s.jsx)(o.a,{kind:c(t),overrides:{Body:{style:{marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,width:n?n.toString():void 0,border:0}},InnerContainer:{style:{width:"100%",lineHeight:"1.5"}}},children:Object(s.jsx)(l,{children:r})})}!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(r||(r={}))},74:function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return d}));var r="https://streamlit.io",a="https://share.streamlit.io/deploy",o="https://streamlit.io/cloud",i="https://docs.streamlit.io",l="https://discuss.streamlit.io",s="https://streamlit.io/for-teams",c="https://github.com/streamlit/streamlit/issues/new/choose",u="https://docs.streamlit.io/library/components",d="https://docs.streamlit.io/knowledge-base/using-streamlit/enable-camera"},78:function(e,t,n){"use strict";var r=n(0),a=n.n(r),o=n(23),i=n(26),l=n(67);t.a=a.a.createContext({wideMode:!1,layout:o.p.Layout.CENTERED,initialSidebarState:o.p.SidebarState.AUTO,embedded:!1,isFullScreen:!1,setFullScreen:function(e){},addScriptFinishedHandler:function(e){},removeScriptFinishedHandler:function(e){},activeTheme:i.baseTheme,setTheme:function(e){},availableThemes:[],addThemes:function(e){},sidebarChevronDownshift:0,getBaseUriParts:l.e})},81:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}
1)),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return l}));var r=n(208);function a(e,t){var n=e.toObject(t,{defaults:!0,oneofs:!0});return Object(r.a)(n)}function o(e,t,n){var r=e.get(t);if(r in n)return n[r](e.get(r));if(n._else)return n._else();throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}function i(e,t,n){var r=e.get(t);if(r in n)return e.update(r,n[r]);throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}function l(e,t,n){var r=e.get(t);if(r in n)return n[r];throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}},84:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return s}));var r={sansSerif:'"Source Sans Pro", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif Pro", serif'},a={bodyFont:r.sansSerif,codeFont:r.monospace,headingFont:r.sansSerif},o={twoSm:"".concat(12,"px"),sm:"".concat(14,"px"),md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",twoSmPx:12,smPx:14,mdPx:16},i={normal:400,bold:600,extrabold:700},l={normal:"normal",none:1,tight:1.25,table:1.5,base:1.6,menuItem:2},s={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},96:function(e,t,n){"use strict";function r(e){return e instanceof Error?e:new Error("".concat(e))}n.d(t,"a",(function(){return r}))},99:function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return x})),n.d(t,"x",(function(){return k})),n.d(t,"d",(function(){return T})),n.d(t,"e",(function(){return A})),n.d(t,"B",(function(){return R})),n.d(t,"A",(function(){return B})),n.d(t,"f",(function(){return F})),n.d(t,"o",(function(){return L})),n.d(t,"g",(function(){return W})),n.d(t,"z",(function(){return H})),n.d(t,"y",(function(){return U})),n.d(t,"j",(function(){return _})),n.d(t,"c",(function(){return J})),n.d(t,"w",(function(){return q})),n.d(t,"m",(function(){return Y})),n.d(t,"l",(function(){return X})),n.d(t,"n",(function(){return Q})),n.d(t,"t",(function(){return K})),n.d(t,"q",(function(){return $})),n.d(t,"r",(function(){return Z})),n.d(t,"u",(function(){return ee})),n.d(t,"s",(function(){return te})),n.d(t,"v",(function(){return ne})),n.d(t,"k",(function(){return re})),n.d(t,"h",(function(){return ae})),n.d(t,"i",(function(){return oe})),n.d(t,"p",(function(){return ie}));var r=n(17),a=n(79),o=n(5),i=n(338),l=n(1190),s=n(39),c=n(251),u=n.n(c),d=n(468),p=n.n(d),f=n(330),h=n.n(f),b=n(244),m=n.n(b),g=n(23),y=n(24),O="stActiveTheme-".concat(window.location.pathname),w={CACHED_THEME_VERSION:1,CACHED_THEME_BASE_KEY:O,ACTIVE_THEME:"".concat(O,"-v").concat(1)},v=n(26),j=n(84),S="Use system setting",x="Custom Theme",k=function(e){return Object(v.createPresetThemes)().map((function(e){return e.name})).includes(e.name)},P=function(e){var t=Object.keys(j.c).find((function(t){return j.c[t]===e})),n=g.e.FontFamily.SANS_SERIF;if(t){var r=p()(t).toUpperCase();return r in g.e.FontFamily?g.e.FontFamily[r]:n}return n},I=function(e){return null!==e&&void 0!==e&&e in g.e.FontFamily?j.c[u()(g.e.FontFamily[e].toString())]:void 0},C=function(e,t){var n=t.colors,r=t.genericFonts;return Object(o.a)(Object(o.a)({},e),{},{primaryFontFamily:r.bodyFont,primary100:n.primary,primary200:n.primary,primary300:n.primary,primary400:n.primary,primary500:n.primary,primary600:n.primary,primary700:n.primary,mono100:n.bgColor,mono200:n.secondaryBg,mono300:n.lightGray,mono400:n.lightGray,mono500:n.gray,mono600:n.fadedText40,mono700:n.gray,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black})},V=function(e){var t=e.inSidebar,n=e.colors,r=e.genericFonts,a=e.fontSizes,i=e.lineHeights,l=e.radii,c={fontFamily:r.bodyFont,fontSize:a.md,fontSizeSm:a.sm,fontWeight:"normal",lineHeight:i.base,lineHeightTight:i.tight};return{borders:{radius100:l.md,radius200:l.md,radius300:l.md,radius400:l.md,buttonBorderRadius:l.md,inputBorderRadius:l.md,popoverBorderRadius:l.md,surfaceBorderRadius:l.md},typography:{font100:{},font150:Object(o.a)({},c),font200:{},font250:{},font300:Object(o.a)({},c),font350:Object(o.a)({},c),font400:Object(o.a)({},c),font450:Object(o.a)({},c),font460:Object(o.a)({},c),font470:Object(o.a)({},c),font500:Object(o.a)({},c),font600:{},LabelXSmall:Object(o.a)({},c),LabelSmall:Object(o.a)({},c),LabelMedium:Object(o.a)({},c),LabelLarge:Object(o.a)({},c),ParagraphSmall:Object(o.a)({},c)},colors:{white:n.white,black:n.black,primary:n.primary,primaryA:n.primary,backgroundPrimary:n.bgColor,backgroundSecondary:n.secondaryBg,backgroundTertiary:n.bgColor,borderOpaque:n.darkenedBgMix25,accent:Object(s.g)(n.primary,.5),tagPrimarySolidBackgroun
1d:n.primary,tagPrimaryFontDisabled:n.fadedText40,tagPrimaryOutlinedDisabled:n.transparent,borderSelected:n.primary,contentPrimary:n.bodyText,inputPlaceholder:n.fadedText60,tickFillDisabled:n.fadedText40,tickMarkFill:n.lightestGray,tickFillSelected:n.primary,datepickerBackground:t?n.secondaryBg:n.bgColor,calendarBackground:t?n.secondaryBg:n.bgColor,calendarForeground:n.bodyText,calendarDayForegroundPseudoSelected:n.bodyText,calendarHeaderBackground:t?n.bgColor:n.secondaryBg,calendarHeaderBackgroundActive:t?n.bgColor:n.secondaryBg,calendarHeaderForeground:n.bodyText,calendarHeaderForegroundDisabled:n.gray40,calendarDayBackgroundSelected:n.primary,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelected:n.white,calendarDayForegroundSelectedHighlighted:n.white,calendarDayForegroundPseudoSelectedHighlighted:n.bodyText,menuFontHighlighted:n.bodyText,modalCloseColor:n.bodyText,notificationInfoBackground:n.alertInfoBackgroundColor,notificationInfoText:n.alertInfoTextColor,notificationPositiveBackground:n.alertSuccessBackgroundColor,notificationPositiveText:n.alertSuccessTextColor,notificationWarningBackground:n.alertWarningBackgroundColor,notificationWarningText:n.alertWarningTextColor,notificationNegativeBackground:n.alertErrorBackgroundColor,notificationNegativeText:n.alertErrorTextColor,progressbarTrackFill:n.secondaryBg,tickFill:n.lightenedBg05,tickMarkFillDisabled:n.lightenedBg05,menuFill:e.inSidebar?n.secondaryBg:n.bgColor,buttonDisabledFill:n.lightenedBg05,tickFillHover:n.secondaryBg,inputFillDisabled:n.secondaryBg,inputFillActive:n.secondaryBg,toggleTrackFillDisabled:n.secondaryBg,tickFillActive:n.secondaryBg,sliderTrackFillDisabled:n.secondaryBg,inputBorder:n.secondaryBg,inputFill:n.secondaryBg,inputEnhanceFill:n.secondaryBg,inputEnhancerFillDisabled:n.secondaryBg,buttonDisabledSpinnerBackground:n.gray40,toggleTrackFill:n.gray40,sliderTrackFill:n.gray40,sliderHandleInnerFill:n.gray40,sliderHandleInnerFillDisabled:n.gray40}}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return Object(l.a)(C(t,e),V(e))},E=function(e){var t=e.bodyText,n=e.secondaryBg,r=e.bgColor,a=Object(s.b)(r)>.5,o=a?e.blue:Object(s.c)(e.blue,.2),i=Object(s.g)(t,.9),l=Object(s.g)(t,.8),c=Object(s.g)(t,.7),u=Object(s.g)(t,.6),d=Object(s.g)(t,.4),p=Object(s.d)(r,n,.2),f=a?Object(s.a)(p,.3):Object(s.c)(p,.6);return{linkText:o,fadedText05:i,fadedText10:l,fadedText20:c,fadedText40:u,fadedText60:d,bgMix:p,darkenedBgMix100:f,darkenedBgMix25:Object(s.g)(f,.75),darkenedBgMix15:Object(s.g)(f,.85),lightenedBg05:Object(s.c)(r,.025)}},A=function(e){var t=E(e);return Object(o.a)(Object(o.a)(Object(o.a)({},e),t),{},{alertErrorBorderColor:e.dangerBg,alertErrorBackgroundColor:e.dangerBg,alertErrorTextColor:e.danger,alertInfoBorderColor:e.infoBg,alertInfoBackgroundColor:e.infoBg,alertInfoTextColor:e.info,alertSuccessBorderColor:e.successBg,alertSuccessBackgroundColor:e.successBg,alertSuccessTextColor:e.success,alertWarningBorderColor:e.warningBg,alertWarningBackgroundColor:e.warningBg,alertWarningTextColor:e.warning,codeTextColor:e.green80,codeHighlightColor:e.secondaryBg,docStringModuleText:e.bodyText,docStringContainerBackground:Object(s.g)(e.secondaryBg,.6),headingColor:e.bodyText})},N=function(e){var t=(new Option).style;return t.color=e,""!==t.color},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.baseTheme,n=t.emotion,i=n.genericColors,l=n.genericFonts,s=e.font,c=Object(a.a)(e,["font"]),u=I(s),d=Object.entries(c).reduce((function(e,t){var n=Object(r.a)(t,2),a=n[0],o=n[1];return N(o)?e[a]=o:N("#".concat(o))&&(e[a]="#".concat(o)),e}),{}),p=d.secondaryBackgroundColor,f=d.backgroundColor,h=d.primaryColor,b=d.textColor,m=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},i),h&&{primary:h}),b&&{bodyText:b}),p&&{secondaryBg:p}),f&&{bgColor:f});return Object(o.a)(Object(o.a)({},t.emotion),{},{colors:A(m),genericColors:m,genericFonts:Object(o.a)(Object(o.a)({},l),u&&{bodyFont:u,headingFont:u})})},R=function(e){var t=e.colors,n=e.genericFonts;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroun
1dColor:t.secondaryBg,textColor:t.bodyText,font:P(n.bodyFont)}},B=function(e){var t,n=e.genericColors,r=R(e);return Object(o.a)({primaryColor:r.primaryColor,backgroundColor:r.backgroundColor,secondaryBackgroundColor:r.secondaryBackgroundColor,textColor:r.textColor,base:(t=r.backgroundColor,void 0===t||Object(s.b)(t)>.5?"light":"dark"),font:I(r.font)},E(n))},M=function(e,t){return new g.e(Object(o.a)(Object(o.a)({},R(t.emotion)),e))},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=(t=n?M(t,n):t.base===g.e.BaseTheme.DARK?M(t,v.darkTheme):M(t,v.lightTheme)).backgroundColor,i=m()(h()(Object(s.b)(a)>.5?v.lightTheme:v.darkTheme),{emotion:{inSidebar:r}}),l=D(t,i);return Object(o.a)(Object(o.a)({},i),{},{name:e,emotion:l,basewebTheme:T(l,i.primitives)})},L=function(){var e=new URL(window.location.toString()).hash,t="#lighttheme"===e;return"#darktheme"===e?v.darkTheme:t?v.lightTheme:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v.darkTheme:v.lightTheme},z=function(){var e="testData";try{var t=window.localStorage;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch(n){return!1}return!0},W=function(){if(!z())return null;var e=window.localStorage.getItem(w.ACTIVE_THEME);if(!e)return null;var t=JSON.parse(e),n=t.name,r=t.themeInput;switch(n){case v.lightTheme.name:return v.lightTheme;case v.darkTheme.name:return v.darkTheme;default:return F(n,r)}},H=function(e){if(z()){!function(){var e=w.CACHED_THEME_VERSION,t=w.CACHED_THEME_BASE_KEY,n=window.localStorage;n.removeItem("stActiveTheme"),n.removeItem(t);for(var r=1;r<e;r++)n.removeItem("".concat(t,"-v").concat(e))}();var t=Object(o.a)({name:e.name},!k(e)&&{themeInput:R(e.emotion)});window.localStorage.setItem(w.ACTIVE_THEME,JSON.stringify(t))}},U=function(){z()&&window.localStorage.removeItem(w.ACTIVE_THEME)},_=function(){var e=W();return e&&e.name!==S?e:Object(v.createAutoTheme)()},G=/\s+/;function J(e,t){return""===e?"":e.split(G).map((function(e){return"0"===e?t.spacing.none:e in t.spacing?t.spacing[e]:(Object(y.b)("Invalid spacing value: ".concat(e)),t.spacing.none)})).join(" ")}function q(e){return Object(s.b)(e.colors.bgColor)>.5}function Y(e){return q(e)?e.colors.gray70:e.colors.gray30}function X(e){return q(e)?e.colors.gray30:e.colors.gray85}function Q(e){return q(e)?e.colors.gray90:e.colors.gray10}function K(e){return q(e)?e.colors.red80:e.colors.red70}function $(e){return q(e)?e.colors.blue80:e.colors.blue50}function Z(e){return q(e)?e.colors.green90:e.colors.green60}function ee(e){return q(e)?e.colors.purple80:e.colors.purple50}function te(e){return q(e)?e.colors.orange100:e.colors.orange60}function ne(e){return q(e)?function(e){var t=e.colors;return[t.blue10,t.blue20,t.blue30,t.blue40,t.blue50,t.blue60,t.blue70,t.blue80,t.blue90,t.blue100]}(e):function(e){var t=e.colors;return[t.blue100,t.blue90,t.blue80,t.blue70,t.blue60,t.blue50,t.blue40,t.blue30,t.blue20,t.blue10]}(e)}function re(e){var t=e.colors;return[t.red100,t.red90,t.red70,t.red50,t.red30,t.blue30,t.blue50,t.blue70,t.blue90,t.blue100]}function ae(e){var t=e.colors;return q(e)?[t.blue80,t.blue40,t.red80,t.red40,t.blueGreen80,t.green40,t.orange80,t.orange50,t.purple80,t.gray40]:[t.blue40,t.blue80,t.red40,t.red80,t.green40,t.blueGreen80,t.orange50,t.orange80,t.purple80,t.gray40]}function oe(e){return q(e)?e.colors.red80:e.colors.red40}function ie(e){return q(e)?e.colors.blueGreen80:e.colors.green40}}},[[1164,4,5]]]);

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.