text: /*! For license information please see main.729273d3.chunk.js.LICENSE.txt */
  (this["webpackJsonpstreamlit-browser"]=this["webpackJsonpstreamlit-browser"]||[]).push([[4],{116:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return m}));var r,o,a=n(22),i=n(11),l=n(6),s=n(9),c=n(469),u=n(35),d=n(231),p=n.n(d),f=n(223),h=n.n(f);!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"}(o||(o={}));var m=function(){function e(t){Object(l.a)(this,e),this._index=void 0,this._columns=void 0,this._data=void 0,this._types=void 0,this._styler=void 0;var n=c.a.from(t.data),r=e.parseSchema(n),o=e.parseIndex(n,r),a=e.parseColumns(r),i=e.parseData(n,a),s=e.parseTypes(n,r),u=t.styler?e.parseStyler(t.styler):void 0;this._index=o,this._columns=a,this._data=i,this._types=s,this._styler=u}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 o=n.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\nIn this case, `add_rows()` received `".concat(JSON.stringify(o),"`\nbut was expecting `").concat(JSON.stringify(a),"`.\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(u.range)(s,s+t.length*l,l).map((function(e){return[e]}))}return this._index.concat(t)}},{key:"concatData",value:function(t,n){var r=this;if(0===t.length)return this._data;if(0===this._data.length)return t;if(!e.sameDataTypes(this._types.data,n)){var o=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(o),"`\nbut was expecting `").concat(JSON.stringify(a),"`.\n"))}var i=t.map((function(e){return e.slice(0,r.dimensions.dataColumns)}));return this._data.concat(i)}},{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)})),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(n),"`\nbut was expecting `").concat(JSON.stringify(o),"`.\n"))}return this._types.index.map((function(e){if(e.pandas_type===r.RangeIndex){var n=e.meta,o=n.stop,a=n.step,l=t[0].meta,s=l.start,c=o+(l.stop-s)/l.step*a;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[0].length,this._index.length]:[1,0],t=Object(a.a)(e,2),n=t[0],r=t[1],o=this._columns.length?[this._columns.length,this._columns[0].length]:[1,0],i=Object(a.a)(o,2),l=i[0],s=i[1],c=this._data.length?[this._data.length,this._data[0].length]:[0,s],u=Object(a.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.length}},{key:"getCell",value:function(e,t){var n,a,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.");if(t<0||t>=u)throw new Error("Column index is out of range.");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:o.BLANK,cssClass:f.join(" "),content:""}}if(d){var h,m=e-l,y=(null===(h=this._styler)||void 0===h?void 0:h.uuid)?"".concat(this.cssId,"level").concat(t,"_row").concat(m):void 0,b=["row_heading","level".concat(t),"row".concat(m)].join(" "),g=this._types.index[t],O=this._index[m][t];return{type:o.INDEX,cssId:y,cssClass:b,content:O,contentType:g}}if(p){var w=t-s,v=["col_heading","level".concat(e),"col".concat(w)].join(" ");return{type:o.COLUMNS,cssClass:v,content:this._columns[e][w],contentType:{pandas_type:r.UnicodeIndex,numpy_type:"object"}}}var j=e-l,x=t-s,S=(null===(n=this._styler)||void 0===n?void 0:n.uuid)?"".concat(this.cssId,"row").concat(j,"_col").concat(x):void 0,k=["data","row".concat(j),"col".concat(x)].join(" "),I=this._types.data[x],C=this._data[j][x],P=(null===(a=this._styler)||void 0===a?void 0:a.displayValues)?this._styler.displayValues.getCell(e,t).content:void 0;return{type:o.DATA,cssId:S,cssClass:k,content:C,contentType:I,displayContent:P}}},{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()){if(this.isEmpty())return this._index=Object(u.cloneDeep)(e._index),this._columns=Object(u.cloneDeep)(e._columns),this._data=Object(u.cloneDeep)(e._data),void(this._types=Object(u.cloneDeep)(e._types));var t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);this._index=t,this._data=n,this._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:"parseIndex",value:function(t,n){return Object(u.unzip)(n.index_columns.map((function(n){if(e.isRangeIndex(n)){var r=n,o=r.start,a=r.stop,i=r.step;return Object(u.range)(o,a,i)}var l=t.getColumn(n);return Object(u.range)(0,l.length).map((function(e){return l.get(e)}))})))}},{key:"parseColumns",value:function(e){var t=e.column_indexes.length>1;return Object(u.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){var n=e.length,r=t.length>0?t[0].length:0;return 0===n||0===r?[]:Object(u.range)(0,n).map((function(t){return Object(u.range)(0,r).map((function(n){var r;return null===(r=e.getColumnAt(n))||void 0===r?void 0:r.get(t)}))}))}},{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 o=t.columns.find((function(e){return e.field_name===n}));if(!o)throw new Error("".concat(n," index not found."));return{pandas_type:o.pandas_type,numpy_type:o.numpy_type,meta:o.metadata}}))}},{key:"parseDataType",value:function(e,t){return e.length>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:"formatIntervalIndex",value:function(t,n){var r=t.toJSON(),o=n.match(/interval\[(.+), (.+)\]/);if(null===o)throw new Error("Invalid interval type.");var i=Object(a.a)(o,3),l=i[1],s=i[2],c="both"===s||"left"===s?"[":"(",u="both"===s||"right"===s?"]":")",d=e.format(r.left,{pandas_type:l,numpy_type:l}),p=e.format(r.right,{pandas_type:l,numpy_type:l});return"".concat(c+d,", ").concat(p+u)}},{key:"getTypeName",value:function(e){return"object"===e.pandas_type?e.numpy_type:e.pandas_type}},{key:"format",value:function(t,n){var r=n&&e.getTypeName(n);if(null==t)return"<NA>";var o=t instanceof Date||Number.isFinite(t);if(o&&"date"===r)return p.a.utc(t).format("YYYY-MM-DD");if(o&&"datetimetz"===r){var a=null===n||void 0===n?void 0:n.meta;return p()(t).tz(null===a||void 0===a?void 0:a.timezone).format("YYYY-MM-DDTHH:mm:ssZ")}return o&&(null===r||void 0===r?void 0:r.startsWith("datetime"))?p.a.utc(t).format("YYYY-MM-DDTHH:mm:ss"):(null===r||void 0===r?void 0:r.startsWith("interval"))?e.formatIntervalIndex(t,r):"object"===r||(null===r||void 0===r?void 0:r.startsWith("list"))?JSON.stringify(t):"float64"===r&&Number.isFinite(t)?h()(t).format("0,0.0000"):String(t)}}]),e}()},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return Q}));var r=n(6),o=n(7),a=n(8),i=n(59),l=n(11),s=n(22),c=n(0),u=n.n(c),d=n(299),p=n.n(d),f=n(35),h=n(451),m=n.n(h),y=n(300),b=n.n(y),g=n(452),O=n.n(g),w=n(118),v=n(453),j=n.n(v),x=n(60),S=n(301),k=n.n(S),I=(n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(826),n(21)),C=n(454),P=n.n(C),T=n(24),E=n(13),A=n.n(E),D=A()("pre",{target:"e10mrw3y0"})((function(e){e.theme;return{margin:0,paddingRight:"2.75rem",".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:"slategray"},".token.punctuation":{color:"#999"},".namespace":{opacity:.7},".token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted":{color:"#905"},".token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted":{color:"#690"},".token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string":{color:"#9a6e3a"},".token.atrule, .token.attr-value, .token.keyword":{color:"#07a"},".token.function, .token.class-name":{color:"#dd4a68"},".token.regex, .token.important, .token.variable":{color:"#e90"},".token.important, .token.bold":{fontWeight:"bold"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"}}}),""),R=A()("button",{target:"e10mrw3y1"})((function(e){var t=e.theme;return{opacity:0,height:"2.5rem",padding:0,width:"2.5rem",transition:"opacity 300ms",border:"none",backgroundColor:t.colors.transparent,color:t.colors.bodyText,borderRadius:t.radii.xl,"&:active, &:focus, &:hover":{opacity:.75,outline:"none"}}}),""),V=A()("div",{target:"e10mrw3y2"})((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}}),""),N=A()("div",{target:"e10mrw3y3"})((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(T.a)({},R,{opacity:.75})}}),""),F=n(5),M=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).button=Object(c.createRef)(),e.clipboard=null,e.componentDidMount=function(){var t=e.button.current;null!==t&&(e.clipboard=new P.a(t))},e.componentWillUnmount=function(){null!==e.clipboard&&e.clipboard.destroy()},e.render=function(){return Object(F.jsx)(R,{title:"Copy to clipboard",ref:e.button,"data-clipboard-text":e.props.text,style:{top:0,right:0},children:Object(F.jsx)(w.Copy,{size:"16"})})},e}return n}(c.PureComponent);function B(e){var t=e.language,n=e.value;if(null===t)return Object(F.jsx)("code",{children:n});void 0===t&&Object(I.d)("No language provided, defaulting to Python");var r=(t||"python").toLowerCase(),o=k.a.languages[r];return o?Object(F.jsx)("code",{className:"language-".concat(r),dangerouslySetInnerHTML:{__html:n&&k.a.highlight(n,o,"")}}):(Object(I.d)("No syntax highlighting for ".concat(t,".")),Object(F.jsx)("code",{children:n}))}function z(e){var t=e.language,n=e.value;return Object(F.jsxs)(N,{className:"stCodeBlock",children:[n&&Object(F.jsx)(V,{children:Object(F.jsx)(M,{text:n})}),Object(F.jsx)(D,{children:Object(F.jsx)(B,{language:t,value:n})})]})}var W=n(184),L=A()("div",{target:"e16nr0p30"})((function(e){var t=e.theme;return{fontFamily:t.genericFonts.bodyFont,marginBottom:"-".concat(t.spacing.lg),a:{color:t.colors.linkText},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)},small:{color:t.colors.fadedText60,fontSize:t.fontSizes.smDefault,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:"2.25em"},h2:{fontSize:"1.75em"},h3:{fontSize:"1.25em"},"h4, h5, h6":{fontSize:"1em"}}}}),""),U=A()("div",{target:"e16nr0p31"})((function(){return{position:"relative",left:"calc(-2.5rem - 0.5rem)",width:"calc(100% + 2.5rem + 0.5rem)",display:"flex",alignItems:"flex-start",overflow:"visible",":hover":{a:{opacity:.75}}}}),""),_=A()("a",{target:"e16nr0p32"})((function(e){var t=e.theme;return{position:"absolute",top:"calc(-1.25rem + 0.5em)",left:0,marginRight:"0.5rem",lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms",opacity:0,height:"2.5rem",width:"2.5rem",zIndex:t.zIndices.sidebar+1,border:"none",backgroundColor:t.colors.bgColor,borderRadius:t.radii.xl,svg:{stroke:t.colors.bodyText}}}),""),H=A()("span",{target:"e16nr0p33"})((function(){return{position:"relative",flex:"1",marginLeft:"calc(2.5rem + 0.5rem)"}}),"");n(829);var J=Object(f.once)((function(e){e.scrollIntoView(!0)}));function G(e){var t=e.tag,n=e.anchor,r=e.children,o=e.tagProps,a=u.a.useContext(W.a),i=u.a.useState(n),c=Object(s.a)(i,2),d=c[0],p=c[1],f=u.a.useState(null),h=Object(s.a)(f,2),m=h[0],y=h[1],b=u.a.useContext(x.a),g=b.addReportFinishedHandler,O=b.removeReportFinishedHandler;if(a)return u.a.createElement(t,o,r);var v=u.a.useCallback((function(){null!==m&&window.setTimeout((function(){J(m)}),300)}),[m]);u.a.useEffect((function(){return g(v),function(){O(v)}}),[g,O,v]);var j=u.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("-"))||"");p(r),window.location.hash.slice(1)===r&&y(e)}}),[n]);return u.a.createElement(t,Object(l.a)(Object(l.a)({},o),{},{ref:j,id:d}),Object(F.jsxs)(U,{children:[d&&Object(F.jsx)(_,{href:"#".concat(d),children:Object(F.jsx)(w.Link,{size:"18"})}),Object(F.jsx)(H,{children:r})]}))}function q(e){var t=e.level,n=e.children;return Object(F.jsx)(G,{tag:"h".concat(t),children:n})}function Y(e){var t=e.element,n=t.type,r=t.props;if(u.a.useContext(W.a)||!["h1","h2","h3","h4","h5","h6"].includes(n))return p.a.renderers.parsedHtml(e);var o=r["data-anchor"],a=r.children,l=Object(i.a)(r,["data-anchor","children"]);return Object(F.jsx)(G,{tag:n,anchor:o,tagProps:l,children:a})}function X(e){if(e.href.startsWith("#")){var t=e.children,n=Object(i.a)(e,["children"]);return Object(F.jsx)("a",Object(l.a)(Object(l.a)({},n),{},{children:t}))}var r=e.href,o=e.title,a=e.children;return Object(F.jsx)("a",{href:r,title:o,target:"_blank",rel:"noopener noreferrer",children:a})}function K(e){var t=e.href,n=e.title,r=e.children;return t?Object(F.jsx)("a",{href:t,title:n,target:"_blank",rel:"noopener noreferrer",children:r}):r.length?Object(F.jsxs)(c.Fragment,{children:["[",r[0].props.children,"]"]}):null}var Q=function(e){Object(o.a)(n,e);var t=Object(a.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).componentDidCatch=function(){var t=e.props.source;throw Object.assign(new Error,{name:"Error parsing Markdown or HTML in this string",message:Object(F.jsx)("p",{children:t}),stack:null})},e.render=function(){var t=e.props,n=t.source,r=t.allowHTML,o=t.style,a=t.isCaption,i={code:z,link:X,linkReference:K,inlineMath:function(e){return Object(F.jsx)(b.a,{children:e.value})},math:function(e){return Object(F.jsx)(b.a,{block:!0,children:e.value})},heading:q,parsedHtml:Y},l=[O.a,j.a],s=r?[m()()]:[],c=function(){return Object(F.jsx)(p.a,{source:n,escapeHtml:!r,astPlugins:s,plugins:l,renderers:i})};return Object(F.jsx)(L,{style:o,"data-testid":"stMarkdownContainer",children:a?Object(F.jsx)("small",{children:c()}):c()})},e}return n}(c.PureComponent)},128:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(13),o=n.n(r),a=o()("label",{target:"effi0qh0"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.smDefault,color:t.colors.bodyText,marginBottom:t.fontSizes.halfSmDefault,height:t.fontSizes.xl,verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"}}),""),i=o()("div",{target:"effi0qh1"})((function(){return{display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}}),""),l=o()("div",{target:"effi0qh2"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.smDefault,color:t.colors.fadedText60,margin:t.spacing.none,textAlign:"right",position:"absolute",bottom:0,right:t.fontSizes.halfSmDefault}}),""),s=o()("label",{target:"effi0qh3"})((function(e){return{marginLeft:e.theme.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}}),"")},129:function(e,t,n){"use strict";var r=n(215);n.d(t,"a",(function(){return r.a}))},130:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(0);var r=n(53),o=n(13),a=n.n(o)()("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.smDefault}}),""),i=n(5);var l=function(e){var t=e.name,n=e.message,o=e.stack,l=e.width,s=o?o.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,o?Object(i.jsx)(a,{children:Object(i.jsx)("code",{children:c})}):null]})}},133:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(6),o=n(9),a=n(83),i=n.n(a),l=(n(676),n(223)),s=n.n(l),c=function(){function e(t){Object(r.a)(this,e),this.millis=void 0,this.millis=t}return Object(o.a)(e,[{key:"getTime",value:function(){return this.millis}}]),e}(),u=function(){function e(){Object(r.a)(this,e)}return Object(o.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}},137:function(e,t,n){"use strict";var r=n(128);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d}))},138:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(11),o=(n(0),n(70)),a=n(118),i=n(120),l=n(39),s=n(24),c=n(13),u=n.n(c),d=n(33),p=u()("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}}}}),""),f=u()("div",{target:"e1j25pv61"})((function(e){var t,n=e.theme;return t={boxSizing:"border-box",fontSize:"".concat(n.fontSizes.sm," !important"),maxWidth:"calc(".concat(n.sizes.contentMaxWidth," - 4rem)"),maxHeight:"300px",overflow:"auto",padding:"14px 16px"},Object(s.a)(t,"@media (max-width: ".concat(n.breakpoints.sm,")"),{maxWidth:"calc(100% - 2rem)"}),Object(s.a)(t,"img",{maxWidth:"100%"}),Object(s.a)(t,"code",{background:Object(d.transparentize)(n.colors.darkenedBgMix60,.8)}),t}),""),h=n(5);var m=function(e){var t=e.placement,n=void 0===t?o.a.AUTO:t,s=e.iconSize,c=void 0===s?"16":s,u=e.content,d=e.children,m=e.markdownProps,y=Object(l.useTheme)();return Object(h.jsx)(p,{className:"stTooltipIcon",children:Object(h.jsx)(o.b,{content:Object(h.jsx)(f,{children:Object(h.jsx)(i.a,Object(r.a)({style:{fontSize:y.fontSizes.sm},source:u,allowHTML:!1},m||{}))}),placement:n,inline:!0,children:d||Object(h.jsx)(a.HelpCircle,{className:"icon",size:c})})})}},147:function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return w.a}));var r=n(11),o=n(59),a=n(0),i=n.n(a),l=n(108),s=n(464),c=n(13),u=n.n(c),d=n(225),p=n.n(d),f=n(49);var h=u()("span",{target:"e1wbw4rs0"})({name:"1d0tddh",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"}),m=u()(f.e,{shouldForwardProp:p.a,target:"e1wbw4rs1"})((function(e){var t=e.theme,n=e.$isHighlighted,r=t.inSidebar?t.colors.bgColor:t.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:t.spacing.none,paddingBottom:t.spacing.none,background:n?r:void 0,"&:hover, &:active, &:focus":{background:r}}}),""),y=n(5);function b(e){var t=e.data,n=e.index,a=e.style,i=t[n].props,l=i.item,s=(i.overrides,Object(o.a)(i,["item","overrides"]));return Object(y.jsx)(m,Object(r.a)(Object(r.a)({style:a},s),{},{children:Object(y.jsx)(h,{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 o=n[0]?n[0].props:{};return Object(y.jsx)(l.b,{$style:{height:"".concat(90,"px")},ref:t,children:Object(y.jsx)(l.a,Object(r.a)({},o))})}var a=Math.min(300,40*n.length);return Object(y.jsx)(l.b,{ref:t,children:Object(y.jsx)(s.FixedSizeList,{width:"100%",height:a,itemCount:n.length,itemData:n,itemKey:function(e,t){return t[e].props.item.value},itemSize:40,children:b})})}));g.displayName="VirtualDropdown";var O=g,w=n(312)},150:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(305),o=n(471),a=n(229),i=n(230),l=n(73),s=Object(l.d)(a.a,r.a),c=Object(l.d)(i.a,o.a)},159:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(6),o=n(9),a=n(7),i=n(8),l=n(0),s=n.n(l),c=n(2611),u=n(466),d=n(137),p=n(138),f=n(70),h=n(21),m=n(13),y=n.n(m),b=y()("div",{target:"e1xf8znw0"})((function(e){return{fontFamily:e.theme.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start"}}),""),g=y()("div",{target:"e1xf8znw1"})((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=y()("div",{target:"e1xf8znw2"})((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=y()("div",{target:"e1xf8znw3"})((function(e){e.theme;return{display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"}}),""),v=n(5),j=function(e){Object(a.a)(n,e);var t=Object(i.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={value:e.props.value},e.onColorChange=function(t){e.setState({value:t.hex})},e.onColorClose=function(){e.props.onChange(e.state.value)},e.render=function(){var t=e.props,n=t.width,r=t.showValue,o=t.label,a=t.help,i=e.state.value,l={width:n},s={backgroundColor:i};return Object(v.jsxs)(b,{"data-testid":"stColorPicker",style:l,children:[Object(v.jsxs)(d.b,{children:[o,a&&Object(v.jsx)(d.d,{children:Object(v.jsx)(p.a,{content:a,placement:f.a.TOP_RIGHT})})]}),Object(v.jsx)(c.a,{onClose:e.onColorClose,content:function(){return Object(v.jsx)(u.ChromePicker,{color:i,onChange:e.onColorChange,disableAlpha:!0})},children:Object(v.jsxs)(g,{children:[Object(v.jsx)(O,{style:s}),r&&Object(v.jsx)(w,{children:i.toUpperCase()})]})})]})},e}return Object(o.a)(n,[{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState({value:this.props.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()}}]),n}(s.a.PureComponent)},173: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 m})),n.d(t,"b",(function(){return y})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return S}));var r=n(11),o=n(22),a=n(216),i=n.n(a),l=n(132),s=n(64),c=n(133),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"),a=m(r),i=Object(o.a)(a,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),y=0;y<l;y+=1)h[y]=y;return h.sort((function(e,o){var a=g(r,t,e),i=g(r,t,o);return n?f(a,i):f(i,a)})),h}function h(e){var t=e?e.get("index"):null,n=e?e.get("data"):null,r=e?e.get("columns"):null,a=t?O(t):[0,0],i=Object(o.a)(a,2),l=i[0],s=i[1],c=r?O(r):[0,0],u=Object(o.a)(c,2),d=u[0],p=u[1],f=n?m(n):[0,p],h=Object(o.a)(f,2),y=h[0],b=h[1];if(0!==y&&y!==s||0!==b&&b!==p)throw new Error("Dataframe dimensions don't align: "+"rows(".concat(y," != ").concat(s,") OR ")+"cols(".concat(b," != ").concat(p,")"));return{headerRows:d,headerCols:l,dataRows:y,dataCols:b,cols:l+b,rows:d+y}}function m(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 y(e,t,n){var o=h(e),a=o.headerRows,l=o.headerCols,s=o.dataRows;if(t<l)return n<a?{contents:"",styles:{},type:"corner"}:{contents:w(e.get("index"),t,n-a),styles:{},type:"col-header"};if(n<a){var c={};if(s>0)"number"!==typeof b(e.get("data"),t-l,n)&&(c=Object(r.a)(Object(r.a)({},c),{},{textAlign:"left"}));return{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-a),d=b(e.get("data"),t-l,n-a),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 o={};return r.forEach((function(e){var t=e.get("property");o[i()(t)]=e.get("value")})),o}(e.get("style"),t-l,n-a)||{};return"number"!==typeof d&&(f=Object(r.a)(Object(r.a)({},f),{},{textAlign:"left"})),{contents:p,styles:f,type:"data"}}function b(e,t,n){return j(e.getIn(["cols",t]),n)}function g(e,t,n){return x(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]),o=e.getIn(["labels",t]).getIn(["data",n]);return o<0?"NaN":w(r,0,o)},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 x(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 x(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 S(e,t){var n,r,a=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),a),u=Object(o.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 I(e,i);n=p.get("data")}}return null==n.get("data")&&(n=(n=n.set("data",Object(l.fromJS)({cols:[]}))).set("style",Object(l.fromJS)({cols:[]}))),r=n.get("data").get("cols").isEmpty()?i:n.update("index",(function(e){return function(e,t){if(0===C(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+C(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):I(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 I(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 C(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}})}},184:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(!1)},188:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(11),o=n(59),a=n(6),i=n(9),l=n(7),s=n(8),c=n(0),u=n(115),d=n.n(u),p=n(39),f=n(84),h=n(71),m=n(60),y=n(24),b=n(13),g=n.n(b),O=g()("button",{target:"e19lei0e0"})((function(e){var t=e.isExpanded,n=e.theme,r=parseFloat(n.fontSizes.smDefault);return{position:"absolute",right:t?"1rem":"-2.5rem",top:t?"0.5rem":"-0.375rem",padding:"".concat(r/4,"rem ").concat(r/2,"rem"),zIndex:n.zIndices.sidebar+1,opacity:0,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms",border:"none",backgroundColor:n.colors.bgColor,color:n.colors.bodyText,borderRadius:n.radii.xl,"&:active, &:focus, &:hover":{opacity:.75,outline:"none"}}}),""),w=g()("div",{target:"e19lei0e1"})((function(e){var t=e.theme,n=e.isExpanded;return Object(r.a)({"&:hover":Object(y.a)({},O,{opacity:.75})},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",display:"flex"}:{})}),""),v=n(5),j=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e){var o;return Object(a.a)(this,n),(o=t.call(this,e)).controlKeys=function(e){var t=o.state.expanded;27===e.keyCode&&t&&o.zoomOut()},o.zoomIn=function(){document.body.style.overflow="hidden",o.context.setFullScreen(!0),o.setState({expanded:!0})},o.zoomOut=function(){document.body.style.overflow="unset",o.context.setFullScreen(!1),o.setState({expanded:!1})},o.convertScssRemValueToPixels=function(e){return parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize)},o.getWindowDimensions=function(){var e=o.convertScssRemValueToPixels(o.props.theme.spacing.md),t=o.convertScssRemValueToPixels(o.props.theme.sizes.headerHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},o.updateWindowDimensions=function(){o.setState(o.getWindowDimensions())},o.state=Object(r.a)({expanded:!1},o.getWindowDimensions()),o}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,o=this.props,a=o.children,i=o.width,l=o.height,s=f.FullscreenEnter,c=this.zoomIn,u="View fullscreen";return t&&(s=f.FullscreenExit,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)(h.a,{content:s})}),a(t?{width:n,height:r,expanded:t}:{width:i,height:l,expanded:t})]})}}]),n}(c.PureComponent);j.contextType=m.a,j.isFullScreen=!1;var x=Object(p.withTheme)(j);var S=function(e){var t=function(t){Object(l.a)(c,t);var n=Object(s.a)(c);function c(){return Object(a.a)(this,c),n.apply(this,arguments)}return Object(i.a)(c,[{key:"render",value:function(){var t=this.props,n=t.width,a=t.height,i=Object(o.a)(t,["width","height"]);return Object(v.jsx)(x,{width:n,height:a,children:function(t){var n=t.width,o=t.height,a=t.expanded;return Object(v.jsx)(e,Object(r.a)({width:n,height:o,isFullScreen:a},i))}})}}]),c}(c.PureComponent);return t.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),d()(t,e)}},20: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,"s",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"u",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"i",(function(){return g})),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,"e",(function(){return x})),n.d(t,"n",(function(){return S})),n.d(t,"o",(function(){return k})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return C})),n.d(t,"t",(function(){return P})),n.d(t,"v",(function(){return T})),n.d(t,"x",(function(){return E})),n.d(t,"w",(function(){return A})),n.d(t,"y",(function(){return l}));var r=n(17),o=r.Reader,a=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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Alert;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0),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),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.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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Arrow;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=e.bytes();break;case 2:r.styler=l.Styler.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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 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),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?i.base64.encode(e.data,0,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)),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Styler;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowNamedDataSet;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowVegaLiteChart;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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)),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.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),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Audio;e.pos<n;){var a=e.uint32();switch(a>>>3){case 5:r.url=e.string();break;case 3:r.startTime=e.int32();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.cloudUpload=null,e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopReport=null,e.prototype.closeConnection=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["cloudUpload","clearCache","setRunOnSave","stopReport","closeConnection","rerunScript","loadGitInfo"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.cloudUpload&&Object.hasOwnProperty.call(e,"cloudUpload")&&t.uint32(16).bool(e.cloudUpload),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.stopReport&&Object.hasOwnProperty.call(e,"stopReport")&&t.uint32(56).bool(e.stopReport),null!=e.closeConnection&&Object.hasOwnProperty.call(e,"closeConnection")&&t.uint32(80).bool(e.closeConnection),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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.BackMsg;e.pos<n;){var a=e.uint32();switch(a>>>3){case 2:r.cloudUpload=e.bool();break;case 5:r.clearCache=e.bool();break;case 6:r.setRunOnSave=e.bool();break;case 7:r.stopReport=e.bool();break;case 10:r.closeConnection=e.bool();break;case 11:r.rerunScript=l.ClientState.decode(e,e.uint32());break;case 12:r.loadGitInfo=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.cloudUpload&&e.hasOwnProperty("cloudUpload")&&(t.type=1,"boolean"!==typeof e.cloudUpload))return"cloudUpload: boolean expected";if(null!=e.clearCache&&e.hasOwnProperty("clearCache")){if(1===t.type)return"type: multiple values";if(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.stopReport&&e.hasOwnProperty("stopReport")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.stopReport)return"stopReport: boolean expected"}if(null!=e.closeConnection&&e.hasOwnProperty("closeConnection")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.closeConnection)return"closeConnection: 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"}return null},e.fromObject=function(e){if(e instanceof l.BackMsg)return e;var t=new l.BackMsg;if(null!=e.cloudUpload&&(t.cloudUpload=Boolean(e.cloudUpload)),null!=e.clearCache&&(t.clearCache=Boolean(e.clearCache)),null!=e.setRunOnSave&&(t.setRunOnSave=Boolean(e.setRunOnSave)),null!=e.stopReport&&(t.stopReport=Boolean(e.stopReport)),null!=e.closeConnection&&(t.closeConnection=Boolean(e.closeConnection)),null!=e.rerunScript){if("object"!==typeof e.rerunScript)throw TypeError(".BackMsg.rerunScript: object expected");t.rerunScript=l.ClientState.fromObject(e.rerunScript)}return null!=e.loadGitInfo&&(t.loadGitInfo=Boolean(e.loadGitInfo)),t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.cloudUpload&&e.hasOwnProperty("cloudUpload")&&(n.cloudUpload=e.cloudUpload,t.oneofs&&(n.type="cloudUpload")),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.stopReport&&e.hasOwnProperty("stopReport")&&(n.stopReport=e.stopReport,t.oneofs&&(n.type="stopReport")),null!=e.closeConnection&&e.hasOwnProperty("closeConnection")&&(n.closeConnection=e.closeConnection,t.oneofs&&(n.type="closeConnection")),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")),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Balloons;e.pos<n;){var a=e.uint32();switch(a>>>3){case 3:r.show=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.allowEmpty=!1,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["vertical","horizontal","column","expandable","form"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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.allowEmpty&&Object.hasOwnProperty.call(e,"allowEmpty")&&t.uint32(48).bool(e.allowEmpty),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block;e.pos<n;){var a=e.uint32();switch(a>>>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.allowEmpty=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.Block.Column.verify(e.column);if(o)return"column."+o}if(null!=e.expandable&&e.hasOwnProperty("expandable")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Block.Expandable.verify(e.expandable);if(a)return"expandable."+a}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}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)}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.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=a.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Vertical;e.pos<n;){var a=e.uint32();e.skipType(7&a)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.totalWeight=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.totalWeight&&Object.hasOwnProperty.call(e,"totalWeight")&&t.uint32(17).double(e.totalWeight),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Horizontal;e.pos<n;){var a=e.uint32();switch(a>>>3){case 2:r.totalWeight=e.double();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.totalWeight&&e.hasOwnProperty("totalWeight")&&"number"!==typeof e.totalWeight?"totalWeight: number expected":null},e.fromObject=function(e){if(e instanceof l.Block.Horizontal)return e;var t=new l.Block.Horizontal;return null!=e.totalWeight&&(t.totalWeight=Number(e.totalWeight)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.totalWeight=0),null!=e.totalWeight&&e.hasOwnProperty("totalWeight")&&(n.totalWeight=t.json&&!isFinite(e.totalWeight)?String(e.totalWeight):e.totalWeight),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.weight&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(9).double(e.weight),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Column;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.weight=e.double();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.weight=0),null!=e.weight&&e.hasOwnProperty("weight")&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Expandable;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.label=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Block.Form;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.formId=e.string();break;case 2:r.clearOnSubmit=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}()),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.BokehChart;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.figure=e.string();break;case 2:r.useContainerWidth=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.figure="",n.useContainerWidth=!1),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=e.figure),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.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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Button;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.fromObject=function(e){if(e instanceof l.Button)return e;var t=new l.Button;return 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)),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),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),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Checkbox;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.value&&e.hasOwnProperty("value")&&"boolean"!==typeof e.value?"value: boolean expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Checkbox)return e;var t=new l.Checkbox;return 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)),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),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),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ClientState;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.queryString=e.string();break;case 2:r.widgetStates=l.WidgetStates.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.queryString="",n.widgetStates=null),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),null!=e.widgetStates&&e.hasOwnProperty("widgetStates")&&(n.widgetStates=l.WidgetStates.toObject(e.widgetStates,t)),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ColorPicker;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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")&&!i.isString(e.default)?"default: string 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.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.ColorPicker)return e;var t=new l.ColorPicker;return 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)),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),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),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.StringArray;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data&&r.data.length||(r.data=[]),r.data.push(e.string());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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;if(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DoubleArray;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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;if(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int32Array;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int64Array;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SInt64Array;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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;if(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UInt32Array;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UploadedFileInfo;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}()),m=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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.FileUploaderState;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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;if(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 o=0;o<e.uploadedFileInfo.length;++o)n.uploadedFileInfo[o]=l.UploadedFileInfo.toObject(e.uploadedFileInfo[o],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),y=(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ComponentInstance;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SpecialArg;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowDataframe;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}()),b=(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowTable;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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,0,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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ArrowTableStyler;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DataFrame;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.TableStyle.verify(e.style);if(o)return"style."+o}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)}return 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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Index;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.MultiIndex.verify(e.multiIndex);if(o)return"multiIndex."+o}if(null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.DatetimeIndex.verify(e.datetimeIndex);if(a)return"datetimeIndex."+a}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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PlainIndex;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=l.AnyArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.RangeIndex;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.start=e.int64();break;case 2:r.stop=e.int64();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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;if(i.Long){var o=new i.Long(0,0,!1);n.stop=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.MultiIndex;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.Int32Array.verify(e.labels[r]);if(o)return"labels."+o}}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 o=0;o<e.labels.length;++o)n.labels[o]=l.Int32Array.toObject(e.labels[o],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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DatetimeIndex;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=l.StringArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TimedeltaIndex;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Int64Index;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Float64Index;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.data=l.DoubleArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CSSStyle;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.property=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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.displayValue),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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CellStyle;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CellStyleArray;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.styles&&r.styles.length||(r.styles=[]),r.styles.push(l.CellStyle.decode(e,e.uint32()));break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.AnyArray;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(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 o=l.Int64Array.verify(e.int64s);if(o)return"int64s."+o}if(null!=e.datetimes&&e.hasOwnProperty("datetimes")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.StringArray.verify(e.datetimes);if(a)return"datetimes."+a}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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Table;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.AnyArray.decode(e,e.uint32()));break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TableStyle;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.CellStyleArray.decode(e,e.uint32()));break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DateInput;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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"}return null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DateInput)return e;var t=new l.DateInput;if(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])}return null!=e.setValue&&(t.setValue=Boolean(e.setValue)),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),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 o=0;o<e.value.length;++o)n.value[o]=e.value[o]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DeckGlJsonChart;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Delta;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.NamedDataSet.verify(e.addRows);if(o)return"addRows."+o}if(null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.ArrowNamedDataSet.verify(e.arrowAddRows);if(a)return"arrowAddRows."+a}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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DocString;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.DownloadButton;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.fromObject=function(e){if(e instanceof l.DownloadButton)return e;var t=new l.DownloadButton;return 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)),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=""),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),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.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.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.vegaLiteChart=null,e.prototype.video=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","balloons","bokehChart","button","downloadButton","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","text","textArea","textInput","timeInput","vegaLiteChart","video"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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&&Object.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(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Element;e.pos<n;){var a=e.uint32();switch(a>>>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 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;case 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 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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.Arrow.verify(e.arrowTable);if(o)return"arrowTable."+o}if(null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.ArrowVegaLiteChart.verify(e.arrowVegaLiteChart);if(a)return"arrowVegaLiteChart."+a}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.checkbox&&e.hasOwnProperty("checkbox")){if(1===t.type)return"type: multiple values";t.type=1;var p=l.Checkbox.verify(e.checkbox);if(p)return"checkbox."+p}if(null!=e.colorPicker&&e.hasOwnProperty("colorPicker")){if(1===t.type)return"type: multiple values";t.type=1;var f=l.ColorPicker.verify(e.colorPicker);if(f)return"colorPicker."+f}if(null!=e.componentInstance&&e.hasOwnProperty("componentInstance")){if(1===t.type)return"type: multiple values";t.type=1;var h=l.ComponentInstance.verify(e.componentInstance);if(h)return"componentInstance."+h}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 y=l.DataFrame.verify(e.table);if(y)return"table."+y}if(null!=e.dateInput&&e.hasOwnProperty("dateInput")){if(1===t.type)return"type: multiple values";t.type=1;var b=l.DateInput.verify(e.dateInput);if(b)return"dateInput."+b}if(null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")){if(1===t.type)return"type: multiple values";t.type=1;var g=l.DeckGlJsonChart.verify(e.deckGlJsonChart);if(g)return"deckGlJsonChart."+g}if(null!=e.docString&&e.hasOwnProperty("docString")){if(1===t.type)return"type: multiple values";t.type=1;var O=l.DocString.verify(e.docString);if(O)return"docString."+O}if(null!=e.empty&&e.hasOwnProperty("empty")){if(1===t.type)return"type: multiple values";t.type=1;var w=l.Empty.verify(e.empty);if(w)return"empty."+w}if(null!=e.exception&&e.hasOwnProperty("exception")){if(1===t.type)return"type: multiple values";t.type=1;var v=l.Exception.verify(e.exception);if(v)return"exception."+v}if(null!=e.favicon&&e.hasOwnProperty("favicon")){if(1===t.type)return"type: multiple values";t.type=1;var j=l.Favicon.verify(e.favicon);if(j)return"favicon."+j}if(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 S=l.GraphVizChart.verify(e.graphvizChart);if(S)return"graphvizChart."+S}if(null!=e.iframe&&e.hasOwnProperty("iframe")){if(1===t.type)return"type: multiple values";t.type=1;var k=l.IFrame.verify(e.iframe);if(k)return"iframe."+k}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 P=l.Markdown.verify(e.markdown);if(P)return"markdown."+P}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;var D=l.PlotlyChart.verify(e.plotlyChart);if(D)return"plotlyChart."+D}if(null!=e.progress&&e.hasOwnProperty("progress")){if(1===t.type)return"type: multiple values";t.type=1;var R=l.Progress.verify(e.progress);if(R)return"progress."+R}if(null!=e.radio&&e.hasOwnProperty("radio")){if(1===t.type)return"type: multiple values";t.type=1;var V=l.Radio.verify(e.radio);if(V)return"radio."+V}if(null!=e.selectbox&&e.hasOwnProperty("selectbox")){if(1===t.type)return"type: multiple values";t.type=1;var N=l.Selectbox.verify(e.selectbox);if(N)return"selectbox."+N}if(null!=e.slider&&e.hasOwnProperty("slider")){if(1===t.type)return"type: multiple values";t.type=1;var F=l.Slider.verify(e.slider);if(F)return"slider."+F}if(null!=e.text&&e.hasOwnProperty("text")){if(1===t.type)return"type: multiple values";t.type=1;var M=l.Text.verify(e.text);if(M)return"text."+M}if(null!=e.textArea&&e.hasOwnProperty("textArea")){if(1===t.type)return"type: multiple values";t.type=1;var B=l.TextArea.verify(e.textArea);if(B)return"textArea."+B}if(null!=e.textInput&&e.hasOwnProperty("textInput")){if(1===t.type)return"type: multiple values";t.type=1;var z=l.TextInput.verify(e.textInput);if(z)return"textInput."+z}if(null!=e.timeInput&&e.hasOwnProperty("timeInput")){if(1===t.type)return"type: multiple values";t.type=1;var W=l.TimeInput.verify(e.timeInput);if(W)return"timeInput."+W}if(null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var L=l.VegaLiteChart.verify(e.vegaLiteChart);if(L)return"vegaLiteChart."+L}if(null!=e.video&&e.hasOwnProperty("video")){if(1===t.type)return"type: multiple values";t.type=1;var U=l.Video.verify(e.video);if(U)return"video."+U}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.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)}if(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.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)}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.PlotlyChart.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")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),g=(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=a.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Empty;e.pos<n;){var a=e.uint32();e.skipType(7&a)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Exception;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Favicon;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.url=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}(),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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.FileUploader;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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"}return null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&!i.isInteger(e.maxUploadSizeMb)?"maxUploadSizeMb: integer expected":null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&"boolean"!==typeof e.multipleFiles?"multipleFiles: 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.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])}return 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)),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=""),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),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.newReport=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.pageConfigChanged=null,e.prototype.reportFinished=null,e.prototype.gitInfoChanged=null,e.prototype.uploadReportProgress=null,e.prototype.reportUploaded=null,e.prototype.sessionStateChanged=null,e.prototype.sessionEvent=null,e.prototype.refHash=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["newReport","delta","pageInfoChanged","pageConfigChanged","reportFinished","gitInfoChanged","uploadReportProgress","reportUploaded","sessionStateChanged","sessionEvent","refHash"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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.newReport&&Object.hasOwnProperty.call(e,"newReport")&&l.NewReport.encode(e.newReport,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.reportFinished&&Object.hasOwnProperty.call(e,"reportFinished")&&t.uint32(48).int32(e.reportFinished),null!=e.uploadReportProgress&&Object.hasOwnProperty.call(e,"uploadReportProgress")&&t.uint32(56).uint32(e.uploadReportProgress),null!=e.reportUploaded&&Object.hasOwnProperty.call(e,"reportUploaded")&&t.uint32(66).string(e.reportUploaded),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(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsg;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.hash=e.string();break;case 2:r.metadata=l.ForwardMsgMetadata.decode(e,e.uint32());break;case 4:r.newReport=l.NewReport.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.reportFinished=e.int32();break;case 14:r.gitInfoChanged=l.GitInfo.decode(e,e.uint32());break;case 7:r.uploadReportProgress=e.uint32();break;case 8:r.reportUploaded=e.string();break;case 9:r.sessionStateChanged=l.SessionState.decode(e,e.uint32());break;case 10:r.sessionEvent=l.SessionEvent.decode(e,e.uint32());break;case 11:r.refHash=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.newReport&&e.hasOwnProperty("newReport")){t.type=1;var r=l.NewReport.verify(e.newReport);if(r)return"newReport."+r}if(null!=e.delta&&e.hasOwnProperty("delta")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Delta.verify(e.delta);if(o)return"delta."+o}if(null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.PageInfo.verify(e.pageInfoChanged);if(a)return"pageInfoChanged."+a}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.reportFinished&&e.hasOwnProperty("reportFinished")){if(1===t.type)return"type: multiple values";switch(t.type=1,e.reportFinished){default:return"reportFinished: enum value expected";case 0:case 1:}}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.uploadReportProgress&&e.hasOwnProperty("uploadReportProgress")){if(1===t.type)return"type: multiple values";if(t.type=1,!i.isInteger(e.uploadReportProgress))return"uploadReportProgress: integer expected"}if(null!=e.reportUploaded&&e.hasOwnProperty("reportUploaded")){if(1===t.type)return"type: multiple values";if(t.type=1,!i.isString(e.reportUploaded))return"reportUploaded: string expected"}if(null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")){if(1===t.type)return"type: multiple values";t.type=1;var u=l.SessionState.verify(e.sessionStateChanged);if(u)return"sessionStateChanged."+u}if(null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")){if(1===t.type)return"type: multiple values";t.type=1;var d=l.SessionEvent.verify(e.sessionEvent);if(d)return"sessionEvent."+d}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.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.newReport){if("object"!==typeof e.newReport)throw TypeError(".ForwardMsg.newReport: object expected");t.newReport=l.NewReport.fromObject(e.newReport)}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.reportFinished){case"FINISHED_SUCCESSFULLY":case 0:t.reportFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:t.reportFinished=1}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.uploadReportProgress&&(t.uploadReportProgress=e.uploadReportProgress>>>0),null!=e.reportUploaded&&(t.reportUploaded=String(e.reportUploaded)),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)}return null!=e.refHash&&(t.refHash=String(e.refHash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.hash="",n.metadata=null),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.newReport&&e.hasOwnProperty("newReport")&&(n.newReport=l.NewReport.toObject(e.newReport,t),t.oneofs&&(n.type="newReport")),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=l.Delta.toObject(e.delta,t),t.oneofs&&(n.type="delta")),null!=e.reportFinished&&e.hasOwnProperty("reportFinished")&&(n.reportFinished=t.enums===String?l.ForwardMsg.ReportFinishedStatus[e.reportFinished]:e.reportFinished,t.oneofs&&(n.type="reportFinished")),null!=e.uploadReportProgress&&e.hasOwnProperty("uploadReportProgress")&&(n.uploadReportProgress=e.uploadReportProgress,t.oneofs&&(n.type="uploadReportProgress")),null!=e.reportUploaded&&e.hasOwnProperty("reportUploaded")&&(n.reportUploaded=e.reportUploaded,t.oneofs&&(n.type="reportUploaded")),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")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.ReportFinishedStatus=function(){var e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsgMetadata;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.cacheable=e.bool();break;case 2:if(r.deltaPath&&r.deltaPath.length||(r.deltaPath=[]),2===(7&a))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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}if(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ElementDimensionSpec;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.width=e.uint32();break;case 2:r.height=e.uint32();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.GitInfo;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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))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 o=0;o<e.uncommittedFiles.length;++o)n.uncommittedFiles[o]=e.uncommittedFiles[o]}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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.GraphVizChart;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.spec=e.string();break;case 4:r.useContainerWidth=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.spec="",n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),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.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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.IFrame;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Image;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.ImageList;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Json;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.body=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.Json)return e;var t=new l.Json;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.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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Markdown;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Metric;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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:}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}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),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),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}()),j=(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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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 o=0;o<e.value.length;++o)t.int32(e.value[o]);t.ldelim()}return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.MultiSelect;e.pos<n;){var a=e.uint32();switch(a>>>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&a))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&a))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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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"}return null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.MultiSelect)return e;var t=new l.MultiSelect;if(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 o=0;o<e.value.length;++o)t.value[o]=0|e.value[o]}return null!=e.setValue&&(t.setValue=Boolean(e.setValue)),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),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 o=0;o<e.options.length;++o)n.options[o]=e.options[o]}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 a=0;a<e.value.length;++a)n.value[a]=e.value[a]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NamedDataSet;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.NewReport=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.initialize=null,e.prototype.reportId="",e.prototype.name="",e.prototype.scriptPath="",e.prototype.config=null,e.prototype.customTheme=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.initialize&&Object.hasOwnProperty.call(e,"initialize")&&l.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),null!=e.reportId&&Object.hasOwnProperty.call(e,"reportId")&&t.uint32(18).string(e.reportId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.scriptPath&&Object.hasOwnProperty.call(e,"scriptPath")&&t.uint32(34).string(e.scriptPath),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(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NewReport;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.initialize=l.Initialize.decode(e,e.uint32());break;case 2:r.reportId=e.string();break;case 3:r.name=e.string();break;case 4:r.scriptPath=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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.reportId&&e.hasOwnProperty("reportId")&&!i.isString(e.reportId))return"reportId: string expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.scriptPath&&e.hasOwnProperty("scriptPath")&&!i.isString(e.scriptPath))return"scriptPath: 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}return null},e.fromObject=function(e){if(e instanceof l.NewReport)return e;var t=new l.NewReport;if(null!=e.initialize){if("object"!==typeof e.initialize)throw TypeError(".NewReport.initialize: object expected");t.initialize=l.Initialize.fromObject(e.initialize)}if(null!=e.reportId&&(t.reportId=String(e.reportId)),null!=e.name&&(t.name=String(e.name)),null!=e.scriptPath&&(t.scriptPath=String(e.scriptPath)),null!=e.config){if("object"!==typeof e.config)throw TypeError(".NewReport.config: object expected");t.config=l.Config.fromObject(e.config)}if(null!=e.customTheme){if("object"!==typeof e.customTheme)throw TypeError(".NewReport.customTheme: object expected");t.customTheme=l.CustomThemeConfig.fromObject(e.customTheme)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.initialize=null,n.reportId="",n.name="",n.scriptPath="",n.config=null,n.customTheme=null),null!=e.initialize&&e.hasOwnProperty("initialize")&&(n.initialize=l.Initialize.toObject(e.initialize,t)),null!=e.reportId&&e.hasOwnProperty("reportId")&&(n.reportId=e.reportId),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.scriptPath&&e.hasOwnProperty("scriptPath")&&(n.scriptPath=e.scriptPath),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)),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Initialize;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.sharingEnabled=!1,e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.mapboxToken="",e.prototype.allowRunOnSave=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.sharingEnabled&&Object.hasOwnProperty.call(e,"sharingEnabled")&&t.uint32(8).bool(e.sharingEnabled),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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Config;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.sharingEnabled=e.bool();break;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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.sharingEnabled&&e.hasOwnProperty("sharingEnabled")&&"boolean"!==typeof e.sharingEnabled?"sharingEnabled: boolean 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.fromObject=function(e){if(e instanceof l.Config)return e;var t=new l.Config;return null!=e.sharingEnabled&&(t.sharingEnabled=Boolean(e.sharingEnabled)),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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.sharingEnabled=!1,n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.mapboxToken="",n.allowRunOnSave=!1),null!=e.sharingEnabled&&e.hasOwnProperty("sharingEnabled")&&(n.sharingEnabled=e.sharingEnabled),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),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.CustomThemeConfig;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.primaryColor=e.string();break;case 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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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}()),S=(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.installationIdV1="",e.prototype.installationIdV2="",e.prototype.installationIdV3="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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.installationIdV1&&Object.hasOwnProperty.call(e,"installationIdV1")&&t.uint32(26).string(e.installationIdV1),null!=e.installationIdV2&&Object.hasOwnProperty.call(e,"installationIdV2")&&t.uint32(34).string(e.installationIdV2),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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.UserInfo;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.installationId=e.string();break;case 3:r.installationIdV1=e.string();break;case 4:r.installationIdV2=e.string();break;case 5:r.installationIdV3=e.string();break;case 2:r.email=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.installationIdV1&&e.hasOwnProperty("installationIdV1")&&!i.isString(e.installationIdV1)?"installationIdV1: string expected":null!=e.installationIdV2&&e.hasOwnProperty("installationIdV2")&&!i.isString(e.installationIdV2)?"installationIdV2: 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.installationIdV1&&(t.installationIdV1=String(e.installationIdV1)),null!=e.installationIdV2&&(t.installationIdV2=String(e.installationIdV2)),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.installationIdV1="",n.installationIdV2="",n.installationIdV3=""),null!=e.installationId&&e.hasOwnProperty("installationId")&&(n.installationId=e.installationId),null!=e.email&&e.hasOwnProperty("email")&&(n.email=e.email),null!=e.installationIdV1&&e.hasOwnProperty("installationIdV1")&&(n.installationIdV1=e.installationIdV1),null!=e.installationIdV2&&e.hasOwnProperty("installationIdV2")&&(n.installationIdV2=e.installationIdV2),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.EnvironmentInfo;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.streamlitVersion=e.string();break;case 2:r.pythonVersion=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.NumberInput;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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:}return null!=e.default&&e.hasOwnProperty("default")&&"number"!==typeof e.default?"default: number expected":null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step?"step: number expected":null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min?"min: number expected":null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max?"max: number expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value?"value: number expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":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}return 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)),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),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),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}()),k=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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageConfig;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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:}if(null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState"))switch(e.initialSidebarState){default:return"initialSidebarState: enum value expected";case 0:case 1:case 2:}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}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),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PageInfo;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.queryString=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.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,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=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.PlotlyChart;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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";if(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.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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.useContainerWidth=!1),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),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Figure;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.spec=e.string();break;case 2:r.config=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Progress;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.value=e.uint32();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Radio;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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"}return 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.value&&e.hasOwnProperty("value")&&!i.isInteger(e.value)?"value: integer expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Radio)return e;var t=new l.Radio;if(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])}return 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)),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),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),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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Selectbox;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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"}return 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.value&&e.hasOwnProperty("value")&&!i.isInteger(e.value)?"value: integer expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Selectbox)return e;var t=new l.Selectbox;if(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])}return 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)),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),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),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.reportChangedOnDisk=null,e.prototype.reportWasManuallyStopped=null,e.prototype.scriptCompilationException=null,Object.defineProperty(e.prototype,"type",{get:i.oneOfGetter(t=["reportChangedOnDisk","reportWasManuallyStopped","scriptCompilationException"]),set:i.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.reportChangedOnDisk&&Object.hasOwnProperty.call(e,"reportChangedOnDisk")&&t.uint32(8).bool(e.reportChangedOnDisk),null!=e.reportWasManuallyStopped&&Object.hasOwnProperty.call(e,"reportWasManuallyStopped")&&t.uint32(16).bool(e.reportWasManuallyStopped),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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SessionEvent;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.reportChangedOnDisk=e.bool();break;case 2:r.reportWasManuallyStopped=e.bool();break;case 3:r.scriptCompilationException=l.Exception.decode(e,e.uint32());break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";var t={};if(null!=e.reportChangedOnDisk&&e.hasOwnProperty("reportChangedOnDisk")&&(t.type=1,"boolean"!==typeof e.reportChangedOnDisk))return"reportChangedOnDisk: boolean expected";if(null!=e.reportWasManuallyStopped&&e.hasOwnProperty("reportWasManuallyStopped")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.reportWasManuallyStopped)return"reportWasManuallyStopped: 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.reportChangedOnDisk&&(t.reportChangedOnDisk=Boolean(e.reportChangedOnDisk)),null!=e.reportWasManuallyStopped&&(t.reportWasManuallyStopped=Boolean(e.reportWasManuallyStopped)),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.reportChangedOnDisk&&e.hasOwnProperty("reportChangedOnDisk")&&(n.reportChangedOnDisk=e.reportChangedOnDisk,t.oneofs&&(n.type="reportChangedOnDisk")),null!=e.reportWasManuallyStopped&&e.hasOwnProperty("reportWasManuallyStopped")&&(n.reportWasManuallyStopped=e.reportWasManuallyStopped,t.oneofs&&(n.type="reportWasManuallyStopped")),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.reportIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.runOnSave&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),null!=e.reportIsRunning&&Object.hasOwnProperty.call(e,"reportIsRunning")&&t.uint32(16).bool(e.reportIsRunning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.SessionState;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.runOnSave=e.bool();break;case 2:r.reportIsRunning=e.bool();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.reportIsRunning&&e.hasOwnProperty("reportIsRunning")&&"boolean"!==typeof e.reportIsRunning?"reportIsRunning: 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.reportIsRunning&&(t.reportIsRunning=Boolean(e.reportIsRunning)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.runOnSave=!1,n.reportIsRunning=!1),null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&(n.runOnSave=e.runOnSave),null!=e.reportIsRunning&&e.hasOwnProperty("reportIsRunning")&&(n.reportIsRunning=e.reportIsRunning),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.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=a.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 o=0;o<e.options.length;++o)t.uint32(106).string(e.options[o]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Slider;e.pos<n;){var a=e.uint32();switch(a>>>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&a))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&a))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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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: number 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"}return null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":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 o=0;o<e.options.length;++o)t.options[o]=String(e.options[o])}return null!=e.help&&(t.help=String(e.help)),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=""),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 o=0;o<e.value.length;++o)n.value[o]=t.json&&!isFinite(e.value[o])?String(e.value[o]):e.value[o]}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),e.options&&e.options.length){n.options=[];for(var a=0;a<e.options.length;++a)n.options[a]=e.options[a]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),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}()),C=l.StaticManifest=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.numMessages=0,e.prototype.serverStatus=0,e.prototype.configuredServerAddress="",e.prototype.externalServerIp="",e.prototype.internalServerIp="",e.prototype.serverPort=0,e.prototype.serverBasePath="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.numMessages&&Object.hasOwnProperty.call(e,"numMessages")&&t.uint32(16).uint32(e.numMessages),null!=e.serverStatus&&Object.hasOwnProperty.call(e,"serverStatus")&&t.uint32(24).int32(e.serverStatus),null!=e.configuredServerAddress&&Object.hasOwnProperty.call(e,"configuredServerAddress")&&t.uint32(34).string(e.configuredServerAddress),null!=e.externalServerIp&&Object.hasOwnProperty.call(e,"externalServerIp")&&t.uint32(42).string(e.externalServerIp),null!=e.internalServerIp&&Object.hasOwnProperty.call(e,"internalServerIp")&&t.uint32(50).string(e.internalServerIp),null!=e.serverPort&&Object.hasOwnProperty.call(e,"serverPort")&&t.uint32(56).uint32(e.serverPort),null!=e.serverBasePath&&Object.hasOwnProperty.call(e,"serverBasePath")&&t.uint32(66).string(e.serverBasePath),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.StaticManifest;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.name=e.string();break;case 2:r.numMessages=e.uint32();break;case 3:r.serverStatus=e.int32();break;case 4:r.configuredServerAddress=e.string();break;case 5:r.externalServerIp=e.string();break;case 6:r.internalServerIp=e.string();break;case 7:r.serverPort=e.uint32();break;case 8:r.serverBasePath=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.numMessages&&e.hasOwnProperty("numMessages")&&!i.isInteger(e.numMessages))return"numMessages: integer expected";if(null!=e.serverStatus&&e.hasOwnProperty("serverStatus"))switch(e.serverStatus){default:return"serverStatus: enum value expected";case 0:case 1:}return null!=e.configuredServerAddress&&e.hasOwnProperty("configuredServerAddress")&&!i.isString(e.configuredServerAddress)?"configuredServerAddress: string expected":null!=e.externalServerIp&&e.hasOwnProperty("externalServerIp")&&!i.isString(e.externalServerIp)?"externalServerIp: string expected":null!=e.internalServerIp&&e.hasOwnProperty("internalServerIp")&&!i.isString(e.internalServerIp)?"internalServerIp: string expected":null!=e.serverPort&&e.hasOwnProperty("serverPort")&&!i.isInteger(e.serverPort)?"serverPort: integer expected":null!=e.serverBasePath&&e.hasOwnProperty("serverBasePath")&&!i.isString(e.serverBasePath)?"serverBasePath: string expected":null},e.fromObject=function(e){if(e instanceof l.StaticManifest)return e;var t=new l.StaticManifest;switch(null!=e.name&&(t.name=String(e.name)),null!=e.numMessages&&(t.numMessages=e.numMessages>>>0),e.serverStatus){case"RUNNING":case 0:t.serverStatus=0;break;case"DONE":case 1:t.serverStatus=1}return null!=e.configuredServerAddress&&(t.configuredServerAddress=String(e.configuredServerAddress)),null!=e.externalServerIp&&(t.externalServerIp=String(e.externalServerIp)),null!=e.internalServerIp&&(t.internalServerIp=String(e.internalServerIp)),null!=e.serverPort&&(t.serverPort=e.serverPort>>>0),null!=e.serverBasePath&&(t.serverBasePath=String(e.serverBasePath)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.numMessages=0,n.serverStatus=t.enums===String?"RUNNING":0,n.configuredServerAddress="",n.externalServerIp="",n.internalServerIp="",n.serverPort=0,n.serverBasePath=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.numMessages&&e.hasOwnProperty("numMessages")&&(n.numMessages=e.numMessages),null!=e.serverStatus&&e.hasOwnProperty("serverStatus")&&(n.serverStatus=t.enums===String?l.StaticManifest.ServerStatus[e.serverStatus]:e.serverStatus),null!=e.configuredServerAddress&&e.hasOwnProperty("configuredServerAddress")&&(n.configuredServerAddress=e.configuredServerAddress),null!=e.externalServerIp&&e.hasOwnProperty("externalServerIp")&&(n.externalServerIp=e.externalServerIp),null!=e.internalServerIp&&e.hasOwnProperty("internalServerIp")&&(n.internalServerIp=e.internalServerIp),null!=e.serverPort&&e.hasOwnProperty("serverPort")&&(n.serverPort=e.serverPort),null!=e.serverBasePath&&e.hasOwnProperty("serverBasePath")&&(n.serverBasePath=e.serverBasePath),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.ServerStatus=function(){var e={},t=Object.create(e);return t[e[0]="RUNNING"]=0,t[e[1]="DONE"]=1,t}(),e}(),P=(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Text;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.body=e.string();break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TextArea;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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")&&!i.isString(e.default)?"default: string expected":null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars)?"maxChars: integer 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.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.TextArea)return e;var t=new l.TextArea;return 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)),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),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),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TextInput;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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:}return null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars)?"maxChars: integer 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.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&!i.isString(e.autocomplete)?"autocomplete: string expected":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}return 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)),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=""),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),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.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=a.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),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.TimeInput;e.pos<n;){var a=e.uint32();switch(a>>>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;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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")&&!i.isString(e.default)?"default: string 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.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.TimeInput)return e;var t=new l.TimeInput;return 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)),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),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),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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.VegaLiteChart;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.Video;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.WidgetStates;e.pos<n;){var a=e.uint32();switch(a>>>3){case 1:r.widgets&&r.widgets.length||(r.widgets=[]),r.widgets.push(l.WidgetState.decode(e,e.uint32()));break;default:e.skipType(7&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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=a.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.fileUploaderStateValue&&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 o||(e=o.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new l.WidgetState;e.pos<n;){var a=e.uint32();switch(a>>>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&a)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(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 o=l.StringArray.verify(e.stringArrayValue);if(o)return"stringArrayValue."+o}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 a=l.ArrowTable.verify(e.arrowValue);if(a)return"arrowValue."+a}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"}if(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.fileUploaderStateValue&&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}()},21:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var r=n(52);function o(){var e;r.b&&(e=console).log.apply(e,arguments)}function a(){var e;r.b&&(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)}},215:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s}));n(0);var r=n(20),o=n(120),a=n(53),i=n(5);function l(e){switch(e){case r.a.Format.ERROR:return a.a.ERROR;case r.a.Format.INFO:return a.a.INFO;case r.a.Format.SUCCESS:return a.a.SUCCESS;case r.a.Format.WARNING:return a.a.WARNING;default:throw new Error("Unexpected alert type: ".concat(e))}}function s(e){var t=e.body,n=e.kind,r=e.width;return Object(i.jsx)("div",{className:"stAlert",children:Object(i.jsx)(a.b,{width:r,kind:n,children:Object(i.jsx)(o.a,{source:t,allowHTML:!1})})})}},229:function(e,t,n){"use strict";var r=n(11),o=n(99),a=n(23),i=Object(r.a)(Object(r.a)({},a.a),{},{bgColor:a.a.white,bodyText:a.a.gray90,danger:"#9d292d",info:"#1e6777",success:"#176c36",warning:"#947c2d",primary:a.a.streamlitPink,disabled:a.a.gray40,lightestGray:a.a.gray20,lightGray:a.a.gray30,gray:a.a.gray60,darkGray:a.a.gray70,red:a.a.red80,blue:a.a.blue80,green:a.a.green80,yellow:a.a.yellow80}),l=n(73);t.a=Object(r.a)(Object(r.a)({},o.a),{},{inSidebar:!1,genericColors:Object(r.a)(Object(r.a)({},o.a.genericColors),i),colors:Object(l.e)(Object(r.a)(Object(r.a)({},o.a.colors),i))})},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={transparent:"transparent",current:"currentColor",inherit:"inherit",black:"#000000",white:"#ffffff",streamlitPink:"#f63366",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:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"}},230:function(e,t,n){"use strict";var r=n(11),o=n(99),a=n(33),i=n(23),l=Object(r.a)(Object(r.a)({},i.a),{},{bgColor:i.a.gray100,secondaryBg:i.a.gray85,bodyText:i.a.gray10,warning:i.a.yellow90,warningBg:Object(a.transparentize)(i.a.yellow80,.8),success:i.a.green70,successBg:Object(a.transparentize)(i.a.green80,.8),info:i.a.blue60,infoBg:Object(a.transparentize)(i.a.blue70,.9),danger:i.a.red70,dangerBg:Object(a.transparentize)(i.a.red70,.8),primary:i.a.streamlitPink,disabled:i.a.gray70,lightestGray:i.a.gray20,lightGray:i.a.gray30,gray:i.a.gray60,darkGray:i.a.gray70,red:i.a.red80,blue:i.a.blue80,green:i.a.green80,yellow:i.a.yellow80}),s=n(73);t.a=Object(r.a)(Object(r.a)({},o.a),{},{inSidebar:!1,genericColors:Object(r.a)(Object(r.a)({},o.a.genericColors),l),colors:Object(s.e)(Object(r.a)(Object(r.a)({},o.a.colors),l))})},234:function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return j}));var r=n(0),o=n(32),a=n(5);function i(e){var t=e.disabled,n=e.element,i=e.widgetMgr,l=e.hasInProgressUpload,s=e.width,c=n.formId,u={width:s};return Object(r.useEffect)((function(){return i.incrementSubmitButtonCount(c),function(){return i.decrementSubmitButtonCount(c)}}),[i,c]),Object(a.jsx)("div",{className:"row-widget stButton","data-testid":"stFormSubmitButton",style:u,children:Object(a.jsx)(o.a,{help:n.help,children:Object(a.jsx)(o.d,{kind:o.b.FORM_SUBMIT,size:o.c.SMALL,disabled:t||l,onClick:function(){return i.submitForm(n)},children:n.label})})})}var l=n(11),s=n(13),c=n.n(s),u=c()("div",{target:"epcbefy0"})((function(){return{display:"flex"}}),""),d=c()("div",{target:"epcbefy1"})((function(e){var t=e.width,n=e.theme;return{border:"1px solid ".concat(n.colors.fadedText10),borderRadius:n.radii.md,padding:"calc(1em - 1px)",width:t,marginTop:0,marginRight:0,marginBottom:n.spacing.lg,marginLeft:0}}),""),p=c()("div",{target:"epcbefy2"})((function(e){return{marginTop:e.theme.spacing.lg}}),"");function f(e){var t={width:e.width};return Object(a.jsx)(u,{className:"row-widget",style:t,children:Object(a.jsx)(i,Object(l.a)({},e))})}var h=n(22),m=n(129),y=n(53),b=n(41);function g(e){var t=e.formId,n=e.widgetMgr,o=e.hasSubmitButton,i=e.children,l=e.width,s=e.reportRunState,c=e.clearOnSubmit;Object(r.useEffect)((function(){n.setFormClearOnSubmit(t,c)}),[n,t,c]);var u,f=Object(r.useState)(!1),g=Object(h.a)(f,2),O=g[0],w=g[1];return o&&O?w(!1):o||O||s!==b.a.NOT_RUNNING||w(!0),O&&(u=Object(a.jsx)(p,{children:Object(a.jsx)(m.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/api.html#streamlit.form).",kind:y.a.ERROR,width:l})})),Object(a.jsxs)(d,{"data-testid":"stForm",width:l,children:[i,u]})}var O=n(6),w=n(9),v=n(43),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.i)(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}()},2571:function(e,t,n){},2594:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(96),i=n.n(a),l=n(468),s=n(135),c=n(16),u=n(22),d=n(2612),p=n(92),f=n(182),h=n(39),m=n(27),y=n(5);var b=function(e){var t=e.theme,n=e.baseuiTheme,r=e.children;return Object(y.jsx)(f.b,{theme:n||m.lightBaseUITheme,children:Object(y.jsx)(h.ThemeProvider,{theme:t,children:r})})},g=n(11),O=n(6),w=n(9),v=n(103),j=n(7),x=n(8),S=n(83),k=n.n(S),I=n(104),C=n(132),P=n(228),T=n.n(P),E=n(221),A=n.n(E),D=n(60),R=n(310),V=n(449),N=n.n(V),F=n(41),M=n(43),B=n(37),z=n(35),W=n.n(z),L=n(20),U=n(116),_=n(173),H=n(64),J=n(40),G=n(52),q=n(21),Y=function(){function e(){var t=this;Object(O.a)(this,e),this.initialized=!1,this.actuallySendMetrics=!1,this.pendingEvents=[],this.pendingDeltaCounter={},this.pendingCustomComponentCounter={},this.reportHash="Not initialized",this.metadata={},this.setReportHash=function(e){t.reportHash=e}}return Object(w.a)(e,[{key:"initialize",value:function(t){var n=t.gatherUsageStats;if(this.initialized=!0,this.actuallySendMetrics=n,this.actuallySendMetrics||G.c){!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),o=0;o<n;o++)r[o]=arguments[o];var a=Array.prototype.slice.call(r);return a.unshift(t),e.push(a),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 o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(r,o),e._loadOptions=n},e.SNIPPET_VERSION="4.1.0",e.load("iCkMy7ymtJ9qYzQRXkQpnAJEq7D4NyMU")}}();var r=Object(g.a)(Object(g.a)({},e.getInstallationData()),this.getHostTrackingData());""!==J.a.current.authorEmail&&(r.authoremail=J.a.current.authorEmail),this.identify(J.a.current.installationId,r),this.sendPendingEvents()}Object(q.a)("Gather usage stats: ",this.actuallySendMetrics)}},{key:"enqueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.initialized&&J.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(g.a)(Object(g.a)(Object(g.a)(Object(g.a)({},n),this.getHostTrackingData()),e.getInstallationData()),{},{reportHash:this.reportHash,dev:G.b,source:"browser",streamlitVersion:J.a.current.streamlitVersion});G.b?Object(q.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],o=n[1];e.send(r,o)})),this.pendingEvents=[]}},{key:"identify",value:function(e,t){G.b?Object(q.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(z.pick)(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}}],[{key:"getInstallationData",value:function(){return{machineIdV1:J.a.current.installationIdV1,machineIdV2:J.a.current.installationIdV2,machineIdV3:J.a.current.installationIdV3}}}]),e}();Y.current=new Y;var X="NO_REPORT_ID",K=function(){function e(t,n,r){Object(O.a)(this,e),this.element=void 0,this.metadata=void 0,this.reportId=void 0,this.lazyImmutableElement=void 0,this.lazyQuiverElement=void 0,this.lazyVegaLiteChartElement=void 0,this.element=t,this.metadata=n,this.reportId=r}return Object(w.a)(e,[{key:"immutableElement",get:function(){if(void 0!==this.lazyImmutableElement)return this.lazyImmutableElement;var e=Object(H.c)(L.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 U.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 U.b(e.data):null,n=e.datasets.length>0?e.datasets.map((function(e){return{hasName:e.hasName,name:e.name,data:new U.b(e.data)}})):[],r={data:t,spec:e.spec,datasets:n,useContainerWidth:e.useContainerWidth};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.reportId===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(_.a)(this.immutableElement,Object(H.c)(L.m,t)),r}},{key:"arrowAddRows",value:function(t,n){var r=this.element.type,o=new e(this.element,this.metadata,n);switch(r){case"arrowTable":case"arrowDataFrame":o.lazyQuiverElement=e.quiverAddRowsHelper(this.quiverElement,t);break;case"arrowVegaLiteChart":o.lazyVegaLiteChartElement=e.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,t);break;default:throw new Error("elementType '".concat(this.element.type,"' is not a valid arrowAddRows target!"))}return o}}],[{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 U.b(t.data);return e.addRows(n),Object(z.cloneDeep)(e)}},{key:"vegaLiteChartAddRowsHelper",value:function(e,t){var n=t.hasName?t.name:null,r=new U.b(t.data),o=function(e,t){if(1===e.length)return e[0];return e.find((function(e){return e.hasName&&e.name===t}))}(e.datasets,n),a=o?o.data:e.data;return a?a.addRows(r):e.data=r,Object(z.cloneDeep)(e)}}]),e}();var Q=function(){function e(t,n,r){Object(O.a)(this,e),this.children=void 0,this.deltaBlock=void 0,this.reportId=void 0,this.children=null!==t&&void 0!==t?t:[],this.deltaBlock=null!==n&&void 0!==n?n:new L.d({}),this.reportId=null!==r&&void 0!==r?r:X}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 o=t[0];if(o<0||o>this.children.length)throw new Error("Bad 'setIn' index ".concat(o," (should be between [0, ").concat(this.children.length,"])"));var a=this.children.slice();return 1===t.length?a[o]=n:a[o]=a[o].setIn(t.slice(1),n,r),new e(a,this.deltaBlock,r)}},{key:"clearStaleNodes",value:function(t){if(this.reportId===t){var n=this.children.map((function(e){return e.clearStaleNodes(t)})).filter(M.l);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(B.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}(),Z=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[L.y.RootContainer.MAIN]}},{key:"sidebar",get:function(){return this.root.children[L.y.RootContainer.SIDEBAR]}},{key:"applyDelta",value:function(e,t,n){var r=n.deltaPath;switch(Y.current.incrementDeltaCounter(function(e){if(e.length>0)switch(e[0]){case L.y.RootContainer.MAIN:return"main";case L.y.RootContainer.SIDEBAR:return"sidebar"}throw new Error("Unrecognized RootContainer in deltaPath: ".concat(e))}(r)),t.type){case"newElement":var o=t.newElement;if(null!=o.type&&Y.current.incrementDeltaCounter(o.type),"componentInstance"===o.type){var a,i=null===(a=o.componentInstance)||void 0===a?void 0:a.componentName;null!=i&&Y.current.incrementCustomComponentCounter(i)}return this.addElement(r,e,o,n);case"addBlock":return Y.current.incrementDeltaCounter("new block"),this.addBlock(r,t.addBlock,e);case"addRows":return Y.current.incrementDeltaCounter("add rows"),this.addRows(r,t.addRows,e);case"arrowAddRows":Y.current.incrementDeltaCounter("arrow add rows");try{return this.arrowAddRows(r,t.arrowAddRows,e)}catch(s){var l=Object(M.j)(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 Q,r=this.sidebar.clearStaleNodes(t)||new Q;return new e(new Q([n,r],new L.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,o){var a=new K(r,o,n);return new e(this.root.setIn(t,a,n))}},{key:"addBlock",value:function(t,n,r){var o=this.root.getIn(t),a=o instanceof Q?o.children:[],i=new Q(a,n,r);return new e(this.root.setIn(t,i,r))}},{key:"addRows",value:function(t,n,r){var o=this.root.getIn(t);if(null==o)throw new Error("Can't addRows: invalid deltaPath: ".concat(t));var a=o.addRows(n,r);return new e(this.root.setIn(t,a,r))}},{key:"arrowAddRows",value:function(t,n,r){var o=this.root.getIn(t);if(null==o)throw new Error("Can't arrowAddRows: invalid deltaPath: ".concat(t));var a=o.arrowAddRows(n,r);return new e(this.root.setIn(t,a,r))}}],[{key:"empty",value:function(t){var n;null!=t?n=[new K(Object(M.k)(t),L.j.create({}),X)]:n=[];var r=new Q(n,new L.d({allowEmpty:!0}),X),o=new Q([],new L.d({allowEmpty:!0}),X);return new e(new Q([r,o]))}}]),e}();var $=n(129),ee=n(215),te=n(53),ne=n(188),re=n(13),oe=n.n(re),ae=oe()("div",{target:"edw49t10"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.smDefault,fontFamily:t.fonts.monospace,textAlign:"right",padding:t.spacing.sm,lineHeight:t.lineHeights.table}}),""),ie=oe()("table",{target:"edw49t11"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse"}}),""),le=function(e){return{borderTop:"1px solid ".concat(e.colors.fadedText10),borderBottom:"1px solid ".concat(e.colors.fadedText10),verticalAlign:"middle",padding:e.spacing.md}},se=oe()("td",{target:"edw49t12"})((function(e){var t=e.theme;return le(t)}),""),ce=oe()("th",{target:"edw49t13"})((function(e){var t=e.theme;return Object(g.a)(Object(g.a)({},le(t)),{},{"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),ue=oe()(se,{target:"edw49t14"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.smDefault,textAlign:"center"}}),"");function de(e,t,n){return Object(y.jsx)("tr",{children:Object(z.range)(n).map((function(n){return function(e,t,n){var r=e.getCell(t,n),o=r.type,a=r.cssId,i=r.cssClass,l=r.content,s=r.contentType,c=r.displayContent||U.b.format(l,s);switch(o){case"blank":return Object(y.jsx)(ce,{className:i,children:"\xa0"},n);case"index":return Object(y.jsx)(ce,{scope:"row",id:a,className:i,children:c},n);case"columns":return Object(y.jsx)(ce,{scope:"col",className:i,children:c},n);case"data":return Object(y.jsx)(se,{id:a,children:c},n);default:throw new Error('Cannot parse type "'.concat(o,'".'))}}(e,t,n)}))},t)}var pe=Object(ne.a)((function(e){var t=e.element,n=t.cssId,r=t.cssStyles,o=t.caption,a=t.dimensions,i=a.headerRows,l=a.rows,s=a.columns,c=Object(z.range)(l),u=c.slice(0,i),d=c.slice(i);return Object(y.jsxs)(ae,{"data-testid":"stTable",children:[r&&Object(y.jsx)("style",{children:r}),Object(y.jsxs)(ie,{id:n,children:[o&&Object(y.jsx)("caption",{children:o}),u.length>0&&Object(y.jsx)("thead",{children:u.map((function(e){return de(t,e,s)}))}),Object(y.jsx)("tbody",{children:0===d.length?Object(y.jsx)("tr",{children:Object(y.jsx)(ue,{colSpan:s||1,children:"empty"})}):d.map((function(e){return de(t,e,s)}))})]})]})}));var fe=oe()("span",{target:"e17gupbm0"})((function(e){return{color:e.theme.colors.docStringModuleText}}),""),he=oe()("span",{target:"e17gupbm1"})((function(e){return{fontWeight:e.theme.fontWeights.bold}}),""),me=oe()("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.smDefault,overflowX:"auto",width:n}}),""),ye=oe()("div",{target:"e17gupbm3"})((function(e){var t=e.theme;return{paddingBottom:t.spacing.sm,marginBottom:t.spacing.sm,borderBottom:"1px solid ".concat(t.colors.fadedText10)}}),""),be=oe()("div",{target:"e17gupbm4"})({name:"10gsgm8",styles:"white-space:pre;"});function ge(e){var t=e.width,n=e.element,r=n.name,o=n.module,a=n.docString,i=n.type,l=n.signature,s=Object(y.jsxs)(fe,{children:[o,"."]},"module"),c=Object(y.jsx)(he,{children:r},"name"),u=Object(y.jsx)("span",{className:"doc-signature",children:l},"signature"),d=Object(y.jsx)("span",{className:"doc-type",children:i},"type");return Object(y.jsxs)(me,{width:t,"data-testid":"stDocstring",children:[Object(y.jsx)(ye,{children:r?[o?s:"",c,l?u:""]:[d]}),Object(y.jsx)(be,{children:a})]})}var Oe=n(130),we=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={error:null},e.componentDidCatch=function(e,t){Object(q.b)("".concat(e.name,": ").concat(e.message,"\n").concat(e.stack))},e}return Object(w.a)(n,[{key:"render",value:function(){var e=this.state.error;return e?"ChunkLoadError"===e.name?Object(y.jsx)(Oe.a,{width:this.props.width,name:"Network issue",message:Object(y.jsxs)("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",Object(y.jsx)("br",{}),"To fix this, simply reload this app by pressing ",Object(y.jsx)("kbd",{children:"F5"}),", ",Object(y.jsx)("kbd",{children:"Ctrl+R"}),", or ",Object(y.jsx)("kbd",{children:"Cmd+R"}),".",Object(y.jsx)("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",Object(y.jsx)("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):Object(y.jsx)(Oe.a,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}}]),n}(o.a.PureComponent);we.getDerivedStateFromError=function(e){return{error:e}};var ve=we,je=n(120),xe=oe()("div",{target:"e1m3hlzs0"})((function(e){return{marginTop:e.theme.spacing.sm,"&:first-of-type":{marginTop:0}}}),""),Se=oe()("span",{target:"e1m3hlzs1"})((function(e){return{fontWeight:e.theme.fontWeights.bold}}),""),ke=oe()("div",{target:"e1m3hlzs2"})((function(e){var t=e.theme;return{marginTop:"calc(".concat(t.spacing.sm," + ").concat(t.spacing.xl,")"),marginBottom:t.spacing.sm}}),""),Ie=oe()("pre",{target:"e1m3hlzs3"})((function(e){var t=e.theme;return{whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:t.fontSizes.smDefault,backgroundColor:t.colors.transparent,code:{color:"inherit"}}}),"");function Ce(e){var t,n=e.type,r=e.message;if(e.messageIsMarkdown){var o="**".concat(n,"**");return r&&(o+=": ".concat(r)),Object(y.jsx)(je.a,{source:o,allowHTML:!1})}return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(Se,{children:n}),(t=r,null!=t&&""!==t?": ".concat(r):null)]})}function Pe(e){var t=e.stackTrace;return Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(ke,{children:"Traceback:"}),Object(y.jsx)(Ie,{children:Object(y.jsx)("code",{children:t.map((function(e,t){return Object(y.jsx)(xe,{children:e},t)}))})})]})}function Te(e){var t=e.element,n=e.width;return Object(y.jsx)("div",{className:"stException",children:Object(y.jsxs)(te.b,{kind:t.isWarning?te.a.WARNING:te.a.ERROR,width:n,children:[Object(y.jsx)("div",{className:"message",children:Object(y.jsx)(Ce,{type:t.type,message:t.message,messageIsMarkdown:t.messageIsMarkdown})}),t.stackTrace&&t.stackTrace.length>0?Object(y.jsx)(Pe,{stackTrace:t.stackTrace}):null]})})}var Ee=n(33),Ae=n(456),De=n.n(Ae),Re=n(457),Ve=n.n(Re);function Ne(e){var t,n=e.width,r=e.element,o={width:n},a=Object(h.useTheme)();try{t=JSON.parse(r.body)}catch(s){try{t=De.a.parse(r.body)}catch(c){var i=parseInt(s.message.replace(/[^0-9]/g,""),10);return s.message+="\n".concat(r.body.substr(0,i+1)," \u2190 here"),Object(y.jsx)(Oe.a,{name:"Json Parse Error",message:s.message})}}var l=Object(Ee.getLuminance)(a.colors.bgColor)>.5?"rjv-default":"monokai";return Object(y.jsx)("div",{"data-testid":"stJson",style:o,children:Object(y.jsx)(Ve.a,{src:t,displayDataTypes:!1,displayObjectSize:!1,name:!1,theme:l,style:{fontFamily:a.genericFonts.codeFont,fontSize:a.fontSizes.smDefault,backgroundColor:a.colors.bgColor}})})}function Fe(e){var t=e.width,n=e.element,r={width:t};return Object(y.jsx)("div",{className:"stMarkdown",style:r,children:Object(y.jsx)(je.a,{isCaption:n.isCaption,source:n.body,allowHTML:n.allowHtml})})}var Me=n(71),Be=n(175),ze=n(128),We=oe()("div",{target:"e16fv1kl0"})((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}}),""),Le=oe()(ze.b,{target:"e16fv1kl1"})((function(e){e.theme;return{marginBottom:0}}),""),Ue=oe()("div",{target:"e16fv1kl2"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.threeXL,color:t.colors.textColor,marginTop:"-".concat(t.fontSizes.twoXS),paddingBottom:t.spacing.twoXS}}),""),_e=oe()("div",{target:"e16fv1kl3"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,display:"flex",flexDirection:"row",alignItems:"center",fontWeight:t.fontWeights.medium}}),"");function He(e){var t=e.element,n=Object(h.useTheme)().colors,r=L.l.MetricColor,o=L.l.MetricDirection,a=null,i="";switch(t.color){case r.RED:i=n.red;break;case r.GREEN:i=n.green;break;default:i=n.fadedText60}switch(t.direction){case o.DOWN:a=Be.ArrowDownward;break;case o.UP:a=Be.ArrowUpward;break;default:a=null}var l={color:i};return Object(y.jsxs)("div",{"data-testid":"metric-container",children:[Object(y.jsx)(Le,{"data-testid":"stMetricLabel",children:Object(y.jsxs)(We,{children:[" ",t.label," "]})}),Object(y.jsx)(Ue,{"data-testid":"stMetricValue",children:Object(y.jsxs)(We,{children:[" ",t.body," "]})}),Object(y.jsxs)(_e,{"data-testid":"stMetricDelta",style:l,children:[Object(y.jsx)(Me.a,{content:a,size:"lg",margin:"0 threeXS 0 0"}),Object(y.jsxs)(We,{children:[" ",t.delta," "]})]})]})}var Je=n(133),Ge=oe()("div",{target:"e1ynspad0"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.smDefault,fontFamily:t.fonts.monospace,textAlign:"right",padding:t.spacing.sm,lineHeight:t.lineHeights.table}}),""),qe=oe()("table",{target:"e1ynspad1"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse"}}),""),Ye=function(e){return{borderTop:"1px solid ".concat(e.colors.fadedText10),borderBottom:"1px solid ".concat(e.colors.fadedText10),verticalAlign:"middle",padding:e.spacing.md}},Xe=oe()("td",{target:"e1ynspad2"})((function(e){var t=e.theme;return Ye(t)}),""),Ke=oe()("th",{target:"e1ynspad3"})((function(e){var t=e.theme;return Object(g.a)(Object(g.a)({},Ye(t)),{},{"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),Qe=oe()(Xe,{target:"e1ynspad4"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.smDefault,textAlign:"center"}}),"");function Ze(e,t,n){return Object(y.jsx)("tr",{children:Object(z.range)(n).map((function(n){return function(e,t,n){var r=Object(_.b)(e,n,t),o=r.contents,a=r.styles,i=r.type,l=Object(Je.b)(o);switch(i){case"corner":return Object(y.jsx)(Ke,{children:"\xa0"},n);case"row-header":return Object(y.jsx)(Ke,{scope:"row",children:l},n);case"col-header":return Object(y.jsx)(Ke,{scope:"column",children:l},n);case"data":return Object(y.jsx)(Xe,{style:a,children:l},n);default:throw new Error('Cannot parse type "'.concat(i,'".'))}}(e,t,n)}))},t)}var $e=Object(ne.a)((function(e){var t=e.element,n=Object(_.c)(t),r=n.headerRows,o=n.rows,a=n.cols,i=Object(z.range)(o),l=i.slice(0,r),s=i.slice(r);return Object(y.jsx)(Ge,{"data-testid":"stTable",children:Object(y.jsxs)(qe,{children:[l.length>0&&Object(y.jsx)("thead",{children:l.map((function(e){return Ze(t,e,a)}))}),Object(y.jsxs)("tbody",{children:[s.map((function(e){return Ze(t,e,a)})),0===s.length&&Object(y.jsx)("tr",{children:Object(y.jsx)(Qe,{colSpan:a||1,children:"empty"})})]})]})})})),et=oe()("div",{target:"eyqtai90"})((function(e){var t=e.theme;return{fontFamily:t.fonts.monospace,whiteSpace:"pre",fontSize:t.fontSizes.smDefault,overflowX:"auto"}}),"");function tt(e){var t=e.width,n=e.element,r={width:t};return Object(y.jsx)(et,{"data-testid":"stText",style:r,children:n.body})}var nt,rt,ot=n(297),at=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}(),it=n(458),lt=n.n(it),st="https://streamlit.io",ct="https://docs.streamlit.io",ut="https://discuss.streamlit.io",dt="https://streamlit.io/for-teams",pt=["devel.streamlit.test","share.streamlit.io","share-head.streamlit.io","share-staging.streamlit.io"];!function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(nt||(nt={})),function(e){e.RENDER="streamlit:render"}(rt||(rt={}));var ft=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(e){var o;return Object(O.a)(this,n),(o=t.call(this,e)).iframeRef=Object(r.createRef)(),o.componentReady=!1,o.curArgs={},o.curDataframeArgs=[],o.frameHeight=0,o.contentWindow=void 0,o.componentReadyWarningTimer=new at,o.componentDidMount=function(){o.maybeRegisterIFrameListener(),o.componentReadyWarningTimer.setTimeout((function(){return o.setState({readyTimeout:!0})}),3e3)},o.componentWillUnmount=function(){o.deregisterIFrameListener(),o.componentReadyWarningTimer.cancel()},o.componentDidUpdate=function(){o.maybeRegisterIFrameListener()},o.maybeRegisterIFrameListener=function(){var e=o.getIFrameContentWindow();if(o.contentWindow!==e){if(o.deregisterIFrameListener(),null==e)return Object(q.b)("ComponentInstance iframe does not have a contentWindow, and will not receive messages!"),void(o.contentWindow=void 0);o.contentWindow=e,o.props.registry.registerListener(o.contentWindow,o.onBackMsg)}},o.deregisterIFrameListener=function(){null!=o.contentWindow&&(o.props.registry.deregisterListener(o.contentWindow),o.contentWindow=void 0)},o.onBackMsg=function(e,t){switch(e){case nt.COMPONENT_READY:var n=t.apiVersion;1!==n?o.setState({componentError:new Error("Unrecognized component API version: '".concat(n,"'"))}):(o.componentReady=!0,o.sendRenderMessage()),o.componentReadyWarningTimer.cancel(),o.setState({readyTimeout:!1});break;case nt.SET_COMPONENT_VALUE:o.componentReady?o.handleSetComponentValue(t,{fromUi:!0}):Object(q.d)("Got ".concat(e," before ").concat(nt.COMPONENT_READY,"!"));break;case nt.SET_FRAME_HEIGHT:o.componentReady?o.handleSetFrameHeight(t):Object(q.d)("Got ".concat(e," before ").concat(nt.COMPONENT_READY,"!"));break;default:Object(q.d)("Unrecognized ComponentBackMsgType: ".concat(e))}},o.handleSetComponentValue=function(e,t){var n=ht(e,"value");if(void 0!==n){var r=o.props.element,a=e.dataType;"dataframe"===a?o.props.widgetMgr.setArrowValue(r,n,t):"bytes"===a?o.props.widgetMgr.setBytesValue(r,n,t):o.props.widgetMgr.setJsonValue(r,n,t)}else Object(q.d)("handleSetComponentValue: missing 'value' prop")},o.handleSetFrameHeight=function(e){var t=ht(e,"height");void 0!==t?t!==o.frameHeight&&(null!=o.iframeRef.current?(o.frameHeight=t,o.iframeRef.current.height=o.frameHeight.toString()):Object(q.d)("handleSetFrameHeight: missing our iframeRef!")):Object(q.d)("handleSetFrameHeight: missing 'height' prop")},o.sendForwardMsg=function(e,t){null!=o.iframeRef.current?null!=o.iframeRef.current.contentWindow?o.iframeRef.current.contentWindow.postMessage(Object(g.a)({type:e},t),"*"):Object(q.d)("Can't send ForwardMsg; iframe has no contentWindow!"):Object(q.d)("Can't send ForwardMsg; missing our iframe!")},o.sendRenderMessage=function(){var e=o.props.theme,t=Object(m.toThemeInput)(e);o.sendForwardMsg(rt.RENDER,{args:o.curArgs,dfs:o.curDataframeArgs,disabled:o.props.disabled,theme:Object(g.a)(Object(g.a)({},t),{},{font:Object(m.fontEnumToString)(t.font)})})},o.renderError=function(e){return Object(y.jsx)(Oe.a,{name:e.name,message:e.message})},o.renderComponentReadyTimeoutWarning=function(){var e="Your app is having trouble loading the **".concat(o.props.element.componentName,"** component. ")+"\n\n(The app is attempting to load the component from **".concat(o.props.element.url,"**, and hasn't ")+'received its **"'.concat(nt.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("https://docs.streamlit.io/en/stable/develop_streamlit_components.html",") ")+"or visit our [forums](".concat(ut,").");return Object(y.jsx)($.a,{width:o.props.width,body:e,kind:te.a.WARNING})},o.render=function(){if(null!=o.state.componentError)return o.renderError(o.state.componentError);var e,t,n,r=o.state.readyTimeout?o.renderComponentReadyTimeoutWarning():null,a=[];try{n=o.props.element.componentName;var i=o.props.element.url;t=null!=i&&""!==i?i:o.props.registry.getComponentURL(n,"index.html"),t=lt.a.stringifyUrl({url:t,query:{streamlitUrl:window.location.href}}),e=JSON.parse(o.props.element.jsonArgs),o.props.element.specialArgs.forEach((function(t){var n=t,r=n.key;switch(n.value){case"arrowDataframe":a.push({key:r,value:L.b.toObject(n.arrowDataframe)});break;case"bytes":e[r]=n.bytes;break;default:throw new Error("Unrecognized SpecialArg type: ".concat(n.value))}}))}catch(l){return o.setState({componentError:l}),o.renderError(l)}return o.curArgs=e,o.curDataframeArgs=a,o.componentReady&&o.sendRenderMessage(),Object(y.jsxs)(y.Fragment,{children:[r,Object(y.jsx)("iframe",{allow:ot.a,ref:o.iframeRef,src:t,width:o.props.width,height:o.frameHeight,scrolling:"no",sandbox:ot.b,title:n})]})},o.state={componentError:void 0,readyTimeout:!1},o}return Object(w.a)(n,[{key:"getIFrameContentWindow",value:function(){var e;return null===(e=this.iframeRef.current)||void 0===e?void 0:e.contentWindow}}]),n}(o.a.PureComponent);function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e.hasOwnProperty(t)?e[t]:n}var mt=Object(h.withTheme)(ft),yt=n(78),bt=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(q.d)("MessageEventSource registered multiple times!",e),n.msgListeners.set(e,t)},this.deregisterListener=function(e){n.msgListeners.delete(e)||Object(q.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(yt.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){var r=e.data.type;null!=r?t(r,e.data):Object(q.d)("Received Streamlit message with no type!",e.data)}else Object(q.d)("Received component message for unregistered ComponentInstance!",e.data)}else Object(q.d)("Received component message with no eventSource!",e.data)},this.getServerUri=t,window.addEventListener("message",this.onMessageEvent)},gt=function(e){Object(j.a)(n,e);var t=Object(x.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}(o.a.Component),Ot=n(59),wt=n(2609),vt=n(2617),jt=oe()("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.smDefault,textAlign:"center",paddingBottom:t.spacing.lg,paddingTop:t.spacing.lg,"&:before":{content:'"empty"'}}}}}),"");var xt=function(e){return function(t){var n=t.label,o=t.expanded,a=t.empty,i=t.widgetsDisabled,l=t.isStale,s=Object(Ot.a)(t,["label","expanded","empty","widgetsDisabled","isStale"]),c=Object(r.useState)(o),d=Object(u.a)(c,2),p=d[0],f=d[1];Object(r.useEffect)((function(){f(o)}),[o]);var m=Object(h.useTheme)(),b=m.colors,O=m.spacing,w=m.fontSizes;return Object(y.jsx)(jt,{children:Object(y.jsx)(wt.a,{onChange:function(){return f(!p)},expanded:p?["panel"]:[],disabled:i,overrides:{Content:{style:function(e){var t=e.$expanded;return{backgroundColor:b.transparent,marginLeft:O.none,marginRight:O.none,marginTop:O.none,marginBottom:O.none,overflow:"visible",paddingLeft:O.lg,paddingRight:O.lg,paddingTop:0,paddingBottom:t?O.lg:0,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none"}},props:{className:"streamlit-expanderContent"}},PanelContainer:{style:function(){return{marginLeft:"".concat(O.none," !important"),marginRight:"".concat(O.none," !important"),marginTop:"".concat(O.none," !important"),marginBottom:"".concat(O.none," !important"),paddingLeft:"".concat(O.none," !important"),paddingRight:"".concat(O.none," !important"),paddingTop:"".concat(O.none," !important"),paddingBottom:"".concat(O.none," !important")}}},Header:{style:function(e){var t=e.$disabled;return{marginBottom:O.none,marginLeft:O.none,marginRight:O.none,marginTop:O.none,backgroundColor:b.transparent,color:t?b.disabled:b.bodyText,fontSize:w.smDefault,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",paddingBottom:O.md,paddingTop:O.md,paddingRight:O.lg,paddingLeft:O.lg}},props:{className:"streamlit-expanderHeader",isStale:l}},ToggleIcon:{style:function(e){return{color:e.$disabled?b.disabled:b.bodyText}}},Root:{props:{className:A()("streamlit-expander",{empty:a})},style:{borderStyle:"solid",borderWidth:"1px",borderColor:b.fadedText10,marginBottom:O.lg}}},children:Object(y.jsx)(vt.a,{title:n,children:Object(y.jsx)(e,Object(g.a)(Object(g.a)({},s),{},{disabled:i}))},"panel")})})}},St=n(234),kt=n(24),It=oe()("div",{target:"e1tzin5v0"})((function(e){var t=e.theme;return{display:"flex",flexWrap:"wrap",flexGrow:1,"--fgp-gap-container":"calc(var(--fgp-gap-parent, 0px) - ".concat(t.spacing.lg,") !important"),"--fgp-gap":"var(--fgp-gap-container)","margin-top":"var(--fgp-gap)","margin-right":"var(--fgp-gap)","& > *":{"--fgp-gap-parent":"".concat(t.spacing.lg," !important"),"--fgp-gap-item":"".concat(t.spacing.lg," !important"),"--fgp-gap":"var(--fgp-gap-item) !important","margin-top":"var(--fgp-gap)","margin-right":"var(--fgp-gap)"}}}),""),Ct=function(e,t){return{marginTop:0,marginRight:0,marginBottom:e?t.spacing.lg:0,marginLeft:0,":last-child":{marginBottom:0}}},Pt=oe()("div",{target:"e1tzin5v1"})((function(e){var t=e.theme,n=e.isStale,r=e.isHidden;return Object(g.a)(Object(g.a)({display:"flex",flexDirection:"column",position:"relative"},Ct(!r,t)),{},{"@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"}},n?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{})}),""),Tt=oe()("div",{target:"e1tzin5v2"})((function(e){var t=e.isEmpty,n=e.weight,r=e.totalWeight,o=e.theme,a=n/r;return Object(kt.a)({width:"calc(".concat(100*a,"% - ").concat(o.spacing.lg,")"),flex:"1 1 calc(".concat(100*a,"% - ").concat(o.spacing.lg,")")},"@media (max-width: ".concat(o.breakpoints.columns,")"),{display:t?"none":void 0,minWidth:"calc(100% - ".concat(o.spacing.twoXL,")")})}),""),Et=oe()("div",{target:"e1tzin5v3"})((function(e){var t=e.isEmpty,n=e.width,r=e.theme;return Object(g.a)(Object(g.a)({width:n},Ct(!t,r)),{},Object(kt.a)({},"@media (max-width: ".concat(r.breakpoints.columns,")"),{display:t?"none":void 0}))}),""),At=(oe()("div",{target:"e1tzin5v4"})((function(e){var t=e.width,n=e.theme;return{padding:n.spacing.lg,border:"1px solid ".concat(n.colors.fadedText10),borderRadius:n.radii.md,width:t,marginBottom:n.spacing.lg}}),""),o.a.lazy((function(){return n.e(27).then(n.bind(null,3859))}))),Dt=o.a.lazy((function(){return n.e(14).then(n.bind(null,3845))})),Rt=o.a.lazy((function(){return n.e(20).then(n.bind(null,3848))})),Vt=o.a.lazy((function(){return Promise.all([n.e(1),n.e(26)]).then(n.bind(null,3852))})),Nt=o.a.lazy((function(){return Promise.all([n.e(3),n.e(8),n.e(28)]).then(n.bind(null,3860))})),Ft=N()(Nt,100),Mt=o.a.lazy((function(){return n.e(21).then(n.bind(null,3849))})),Bt=o.a.lazy((function(){return Promise.all([n.e(3),n.e(7),n.e(12)]).then(n.bind(null,3846))})),zt=o.a.lazy((function(){return Promise.all([n.e(10),n.e(15)]).then(n.bind(null,3853))})),Wt=o.a.lazy((function(){return n.e(29).then(n.bind(null,3861))})),Lt=o.a.lazy((function(){return Promise.all([n.e(9),n.e(22)]).then(n.bind(null,3854))})),Ut=o.a.lazy((function(){return Promise.all([n.e(19),n.e(30)]).then(n.bind(null,3862))})),_t=o.a.lazy((function(){return Promise.all([n.e(1),n.e(32)]).then(n.bind(null,3855))})),Ht=o.a.lazy((function(){return n.e(33).then(n.bind(null,3863))})),Jt=o.a.lazy((function(){return n.e(34).then(n.bind(null,3864))})),Gt=o.a.lazy((function(){return n.e(38).then(n.bind(null,3865))})),qt=o.a.lazy((function(){return n.e(35).then(n.bind(null,3850))})),Yt=o.a.lazy((function(){return n.e(36).then(n.bind(null,3866))})),Xt=o.a.lazy((function(){return Promise.all([n.e(0),n.e(2),n.e(17),n.e(37)]).then(n.bind(null,3867))})),Kt=o.a.lazy((function(){return n.e(11).then(n.bind(null,3868))})),Qt=o.a.lazy((function(){return n.e(31).then(n.bind(null,3869))})),Zt=o.a.lazy((function(){return n.e(39).then(n.bind(null,3847))})),$t=o.a.lazy((function(){return n.e(40).then(n.bind(null,3870))})),en=o.a.lazy((function(){return Promise.all([n.e(13),n.e(41)]).then(n.bind(null,3856))})),tn=o.a.lazy((function(){return n.e(24).then(n.bind(null,3844))})),nn=o.a.lazy((function(){return Promise.all([n.e(0),n.e(23)]).then(n.bind(null,3851))})),rn=o.a.lazy((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,3857))})),on=o.a.lazy((function(){return Promise.all([n.e(2),n.e(42)]).then(n.bind(null,3871))})),an=o.a.lazy((function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,3858))})),ln=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).renderElements=function(t){return e.props.node.children.map((function(n,r){if(n instanceof K)return e.renderElementWithErrorBoundary(n,r,t);if(n instanceof Q)return e.renderBlock(n,r,t);throw new Error("Unrecognized ReportNode: ".concat(n))}))},e.renderElement=function(t,n,r){if(!t)throw new Error("Transmission error.");var o,a={widgetMgr:e.props.widgetMgr,disabled:e.props.widgetsDisabled};switch(t.metadata.elementDimensionSpec&&(t.metadata.elementDimensionSpec.width&&t.metadata.elementDimensionSpec.width>0&&(r=Math.min(t.metadata.elementDimensionSpec.width,r)),t.metadata.elementDimensionSpec.height&&t.metadata.elementDimensionSpec.height>0&&(o=t.metadata.elementDimensionSpec.height)),t.element.type){case"alert":var i=t.element.alert;return Object(y.jsx)($.a,{width:r,body:i.body,kind:Object(ee.b)(i.format)});case"audio":return Object(y.jsx)(At,{width:r,element:t.element.audio});case"balloons":return Object(y.jsx)(Dt,{reportId:e.props.reportId});case"arrowDataFrame":return Object(y.jsx)(Rt,{element:t.quiverElement,width:r,height:o});case"arrowTable":return Object(y.jsx)(pe,{element:t.quiverElement});case"arrowVegaLiteChart":return Object(y.jsx)(Vt,{element:t.vegaLiteChartElement,width:r});case"bokehChart":return Object(y.jsx)(Ft,{width:r,index:n,element:t.element.bokehChart});case"dataFrame":return Object(y.jsx)(Mt,{element:t.immutableElement.get("dataFrame"),width:r,height:o});case"deckGlJsonChart":return Object(y.jsx)(Bt,{width:r,element:t.element.deckGlJsonChart});case"docString":return Object(y.jsx)(ge,{width:r,element:t.element.docString});case"empty":return Object(y.jsx)("div",{className:"stHidden"},n);case"exception":return Object(y.jsx)(Te,{width:r,element:t.element.exception});case"graphvizChart":return Object(y.jsx)(zt,{element:t.element.graphvizChart,index:n,width:r});case"iframe":return Object(y.jsx)(Wt,{element:t.element.iframe,width:r});case"imgs":return Object(y.jsx)(Lt,{width:r,element:t.element.imgs});case"json":return Object(y.jsx)(Ne,{width:r,element:t.element.json});case"markdown":return Object(y.jsx)(Fe,{width:r,element:t.element.markdown});case"plotlyChart":return Object(y.jsx)(Ut,{width:r,height:o,element:t.element.plotlyChart});case"progress":return Object(y.jsx)(Qt,{width:r,element:t.element.progress});case"table":return Object(y.jsx)($e,{element:t.immutableElement.get("table"),width:r});case"text":return Object(y.jsx)(tt,{width:r,element:t.element.text});case"metric":return Object(y.jsx)(He,{element:t.element.metric});case"vegaLiteChart":return Object(y.jsx)(_t,{element:t.immutableElement.get("vegaLiteChart"),width:r});case"video":return Object(y.jsx)(Ht,{width:r,element:t.element.video});case"button":var l=t.element.button;if(l.isFormSubmitter){var s=l.formId,c=e.props.formsData.formsWithUploads.has(s);return Object(y.jsx)(St.c,Object(g.a)({element:l,width:r,hasInProgressUpload:c},a))}return Object(y.jsx)(Jt,Object(g.a)({element:l,width:r},a));case"downloadButton":var u=t.element.downloadButton;return Object(y.jsx)(Gt,Object(g.a)({element:u,width:r},a),u.id);case"checkbox":var d=t.element.checkbox;return Object(y.jsx)(qt,Object(g.a)({element:d,width:r},a),d.id);case"colorPicker":var p=t.element.colorPicker;return Object(y.jsx)(Yt,Object(g.a)({element:p,width:r},a),p.id);case"componentInstance":return Object(y.jsx)(mt,Object(g.a)({registry:e.props.componentRegistry,element:t.element.componentInstance,width:r},a));case"dateInput":var f=t.element.dateInput;return Object(y.jsx)(Xt,Object(g.a)({element:f,width:r},a),f.id);case"fileUploader":var h=t.element.fileUploader;return Object(y.jsx)(tn,{element:h,width:r,widgetMgr:a.widgetMgr,uploadClient:e.props.uploadClient,disabled:a.disabled},h.id);case"multiselect":var m=t.element.multiselect;return Object(y.jsx)(Kt,Object(g.a)({element:m,width:r},a),m.id);case"numberInput":var b=t.element.numberInput;return Object(y.jsx)(an,Object(g.a)({element:b,width:r},a),b.id);case"radio":var O=t.element.radio;return Object(y.jsx)(Zt,Object(g.a)({element:O,width:r},a),O.id);case"selectbox":var w=t.element.selectbox;return Object(y.jsx)($t,Object(g.a)({element:w,width:r},a),w.id);case"slider":var v=t.element.slider;return Object(y.jsx)(en,Object(g.a)({element:v,width:r},a),v.id);case"textArea":var j=t.element.textArea;return Object(y.jsx)(nn,Object(g.a)({element:j,width:r},a),j.id);case"textInput":var x=t.element.textInput;return Object(y.jsx)(rn,Object(g.a)({element:x,width:r},a),x.id);case"timeInput":var S=t.element.timeInput;return Object(y.jsx)(on,Object(g.a)({element:S,width:r},a),S.id);default:throw new Error("Unrecognized Element type ".concat(t.element.type))}},e.render=function(){return e.props.node.deltaBlock.horizontal?Object(y.jsx)(It,{"data-testid":"stHorizontalBlock",children:e.renderElements(e.props.node.deltaBlock.horizontal.totalWeight||0)}):Object(y.jsx)(R.AutoSizer,{disableHeight:!0,children:function(t){var n=t.width;return e.renderElements(n)}})},e}return Object(w.a)(n,[{key:"isElementStale",value:function(e){return this.props.reportRunState===F.a.RERUN_REQUESTED||this.props.reportRunState===F.a.RUNNING&&e.reportId!==this.props.reportId}},{key:"renderBlock",value:function(e,t,r){var o=e.deltaBlock.expandable?n.WithExpandableBlock:n,a=this.shouldComponentBeEnabled(!1),i=this.isComponentStale(a,e),l=e.deltaBlock.expandable?Object(g.a)({empty:e.isEmpty,isStale:i},e.deltaBlock.expandable):{},s=Object(y.jsx)(o,Object(g.a)({node:e,reportId:this.props.reportId,reportRunState:this.props.reportRunState,showStaleElementIndicator:this.props.showStaleElementIndicator,widgetMgr:this.props.widgetMgr,uploadClient:this.props.uploadClient,widgetsDisabled:this.props.widgetsDisabled,componentRegistry:this.props.componentRegistry,formsData:this.props.formsData},l));if("form"===e.deltaBlock.type){var c=e.deltaBlock.form,u=c.formId,d=c.clearOnSubmit,p=this.props.formsData.submitButtonCount.get(u),f=void 0!==p&&p>0;return Object(y.jsx)(St.a,{formId:u,clearOnSubmit:d,width:r,hasSubmitButton:f,reportRunState:this.props.reportRunState,widgetMgr:this.props.widgetMgr,children:s})}return e.deltaBlock.column&&e.deltaBlock.column.weight?Object(y.jsx)(Tt,{"data-testid":"stBlock",weight:e.deltaBlock.column.weight,totalWeight:r,isEmpty:e.isEmpty,children:s},t):Object(y.jsx)(Et,{"data-testid":"stBlock",width:r,isEmpty:e.isEmpty,children:s},t)}},{key:"shouldComponentBeEnabled",value:function(e){return!e||this.props.reportRunState!==F.a.RUNNING}},{key:"isComponentStale",value:function(e,t){return!e||this.props.showStaleElementIndicator&&this.isElementStale(t)}},{key:"renderElementWithErrorBoundary",value:function(e,t,n){var o=this.renderElement(e,t,n),a=e.element.type,i="empty"===a||"balloons"===a,l=this.shouldComponentBeEnabled(i),s=this.isComponentStale(l,e),c=Object(M.c)(e.element)||t;return Object(y.jsx)(gt,{enable:l,children:Object(y.jsx)(Pt,{"data-stale":!!s,isStale:s,isHidden:i,className:"element-container",style:{width:n},children:Object(y.jsx)(ve,{width:n,children:Object(y.jsx)(r.Suspense,{fallback:Object(y.jsx)($.a,{body:"Loading...",kind:te.a.INFO,width:n}),children:o})})})},c)}}]),n}(r.PureComponent);ln.WithExpandableBlock=xt(ln);var sn=ln,cn=n(84),un=n(32),dn=oe()("section",{target:"e1fqkh3o0"})((function(e){var t,n,r=e.theme;return n={},Object(kt.a)(n,"@media (max-width: ".concat(r.breakpoints.md,")"),{marginLeft:r.spacing.none,position:"absolute",top:0,left:0,right:0,bottom:0}),Object(kt.a)(n,"::-webkit-scrollbar-thumb:vertical,\n  ::-webkit-scrollbar-thumb:horizontal,\n  ::-webkit-scrollbar-thumb:vertical:active,\n  ::-webkit-scrollbar-thumb:horizontal:active",{background:r.colors.transparent}),Object(kt.a)(n,"&:hover",(t={},Object(kt.a)(t,"::-webkit-scrollbar-thumb:vertical,\n    ::-webkit-scrollbar-thumb:horizontal",{background:"rgba(0, 0, 0, 0.5)"}),Object(kt.a)(t,"::-webkit-scrollbar-thumb:vertical:active,\n    ::-webkit-scrollbar-thumb:horizontal:active",{background:"rgba(0, 0, 0, 0.61)",borderRadius:"100px"}),t)),n}),"");function pn(e){return e.replace(/rem$/,"em")}var fn=oe()("div",{target:"e1fqkh3o1"})((function(e){var t,n=e.isCollapsed,r=e.theme;return t={backgroundColor:r.colors.bgColor,backgroundAttachment:"fixed",flexShrink:0,height:"100vh",overflow:"auto",padding:"5rem ".concat(r.spacing.lg),position:"relative",transition:"margin-left 300ms, box-shadow 300ms",width:r.sizes.sidebar,zIndex:r.zIndices.sidebar,marginLeft:n?"-".concat(r.sizes.sidebar):r.spacing.none,"&:focus":{outline:"none"}},Object(kt.a)(t,"@media (max-width: ".concat(r.breakpoints.md,")"),{boxShadow:"-2rem 0 2rem 2rem ".concat(n?"transparent":"#00000029"),zIndex:r.zIndices.sidebarMobile}),Object(kt.a)(t,"& h1",{fontSize:r.fontSizes.xl,fontWeight:600}),Object(kt.a)(t,"& h2",{fontSize:r.fontSizes.lg,fontWeight:600}),Object(kt.a)(t,"& h3",{fontSize:"1.125rem",fontWeight:600}),Object(kt.a)(t,"& h4",{fontSize:r.fontSizes.md,fontWeight:500}),Object(kt.a)(t,"& h5,h6",{fontSize:r.fontSizes.smDefault,fontWeight:300,textTransform:"uppercase"}),Object(kt.a)(t,"small",{color:r.colors.gray,fontSize:r.fontSizes.smDefault,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:pn(r.fontSizes.xl)},h2:{fontSize:pn(r.fontSizes.lg)},h3:{fontSize:"1.125em"},"h4,h5,h6":{fontSize:"1em"}}),t}),""),hn=oe()("div",{target:"e1fqkh3o2"})((function(e){var t=e.theme;return{position:"absolute",top:t.spacing.sm,right:t.spacing.sm,zIndex:1,color:t.colors.fadedText40}}),""),mn=oe()("div",{target:"e1fqkh3o3"})((function(e){var t=e.isCollapsed,n=e.theme;return Object(kt.a)({position:"fixed",top:n.spacing.sm,left:t?n.spacing.sm:"-".concat(n.spacing.sm),zIndex:n.zIndices.sidebar-1,transition:"left 300ms",transitionDelay:"left 300ms",color:n.colors.fadedText40},"@media (max-width: ".concat(n.breakpoints.md,")"),{color:n.colors.bodyText})}),""),yn=n(184),bn=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(e){var r;return Object(O.a)(this,n),(r=t.call(this,e)).mediumBreakpointPx=void 0,r.sidebarRef=o.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.checkMobileOnResize=function(){if(!window)return!1;var e=window.innerWidth;return e<r.state.lastInnerWidth&&e<=r.mediumBreakpointPx&&r.setState({collapsedSidebar:!0}),r.setState({lastInnerWidth:e}),!0},r.toggleCollapse=function(){var e=r.state.collapsedSidebar;r.setState({collapsedSidebar:!e})},r.render=function(){var e=r.state.collapsedSidebar,t=r.props.children;return Object(y.jsxs)(dn,{"data-testid":"stSidebar","aria-expanded":!e,ref:r.sidebarRef,children:[Object(y.jsxs)(fn,{isCollapsed:e,children:[Object(y.jsx)(hn,{children:Object(y.jsx)(un.d,{kind:un.b.ICON,onClick:r.toggleCollapse,children:Object(y.jsx)(Me.a,{content:cn.X})})}),t]}),Object(y.jsx)(mn,{isCollapsed:e,children:Object(y.jsx)(un.d,{kind:un.b.ICON,onClick:r.toggleCollapse,children:Object(y.jsx)(Me.a,{content:cn.ChevronRight})})})]})},r.mediumBreakpointPx=n.calculateMaxBreakpoint(e.theme.breakpoints.md),r.state={collapsedSidebar:n.shouldCollapse(e,r.mediumBreakpointPx),lastInnerWidth:window?window.innerWidth:1/0},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:"calculateMaxBreakpoint",value:function(e){return parseInt(e,10)-.02}},{key:"shouldCollapse",value:function(e,t){switch(e.initialSidebarState){case L.o.SidebarState.EXPANDED:return!1;case L.o.SidebarState.COLLAPSED:return!0;case L.o.SidebarState.AUTO:default:var n=(window||{}).innerWidth;return!!n&&n<=t}}}]),n}(r.PureComponent);var gn=Object(h.withTheme)((function(e){return Object(y.jsx)(yn.a.Provider,{value:!0,children:Object(y.jsx)(bn,Object(g.a)({},e))})})),On=function(e){e.theme;var t=e.children,n=Object(Ot.a)(e,["theme","children"]),r=function(e){return Object(m.createTheme)("Sidebar",{secondaryBackgroundColor:e.emotion.colors.bgColor,backgroundColor:e.emotion.colors.secondaryBg},e,!0)}(o.a.useContext(D.a).activeTheme);return Object(y.jsx)(b,{theme:r.emotion,baseuiTheme:r.basewebTheme,children:Object(y.jsx)(gn,Object(g.a)(Object(g.a)({},n),{},{children:t}))})},wn=n(115),vn=n.n(wn);function jn(e){window.parent.postMessage(Object(g.a)({stCommVersion:1},e),"*")}var xn=function(e){function t(t){var n=Object(r.useState)([]),o=Object(u.a)(n,2),a=o[0],i=o[1],l=Object(r.useState)(""),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],m=f[1],b=Object(r.useState)({}),O=Object(u.a)(b,2),w=O[0],v=O[1];return Object(r.useEffect)((function(){function e(e){var t,n=e.data;try{t=new URL(e.origin).hostname}catch(r){t=e.origin}t&&1===n.stCommVersion&&pt.includes(t)&&("SET_MENU_ITEMS"===n.type&&i(n.items),"UPDATE_FROM_QUERY_PARAMS"===n.type&&d(n.queryParams),"CLOSE_MODAL"===n.type&&m(!0),"SET_METADATA"===n.type&&v(n.metadata),"UPDATE_HASH"===n.type&&(window.location.hash=n.hash))}return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[]),Object(y.jsx)(e,Object(g.a)({s4aCommunication:{currentState:{items:a,queryParams:c,forcedModalClose:h,streamlitShareMetadata:w},connect:function(){jn({type:"GUEST_READY"})},onModalReset:function(){m(!1)},sendMessage:jn}},t))}return t.displayName="withS4ACommunication(".concat(e.displayName||e.name,")"),vn()(t,e)},Sn=oe()("div",{target:"eknhn3m0"})((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"}}}),""),kn=oe()("section",{target:"eknhn3m1"})((function(e){var t=e.isEmbedded;return{display:"flex",flexDirection:"column",width:e.theme.sizes.full,overflow:t?"hidden":"auto",alignItems:"center","&:focus":{outline:"none"},"@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"}}}),""),In=oe()("div",{target:"eknhn3m2"})((function(e){var t=e.isWideMode,n=e.theme,r=t?"5rem":n.spacing.lg;return{flex:1,width:n.sizes.full,paddingLeft:n.inSidebar?n.spacing.none:n.spacing.lg,paddingRight:n.inSidebar?n.spacing.none:n.spacing.lg,"@media (min-width: 576px)":{paddingLeft:n.inSidebar?n.spacing.none:r,paddingRight:n.inSidebar?n.spacing.none:r},paddingTop:n.inSidebar?n.spacing.none:"5rem",paddingBottom:n.inSidebar?n.spacing.none:"10rem",minWidth:t?"auto":void 0,maxWidth:t?"initial":n.sizes.contentMaxWidth}}),""),Cn=oe()("a",{target:"eknhn3m3"})((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"}}}),""),Pn=oe()("footer",{target:"eknhn3m4"})((function(e){var t=e.isEmbedded,n=e.theme;return{display:t?"none":"block",color:n.colors.fadedText40,flex:0,fontSize:n.fontSizes.smDefault,maxWidth:n.sizes.contentMaxWidth,padding:"".concat(n.spacing.sm," ").concat(n.spacing.lg),width:n.sizes.full,a:{color:n.colors.fadedText60}}}),"");var Tn,En=function(e){var t=e.elements,n=e.reportId,r=e.reportRunState,a=e.showStaleElementIndicator,i=e.widgetMgr,l=e.widgetsDisabled,s=e.uploadClient,c=e.componentRegistry,u=e.formsData;o.a.useEffect((function(){var e=function(){jn({type:"UPDATE_HASH",hash:window.location.hash})};return window.addEventListener("hashchange",e,!1),function(){return window.removeEventListener("hashchange",e,!1)}}),[]);var d=o.a.useContext(D.a),p=d.wideMode,f=d.initialSidebarState,h=d.embedded,m=function(e){return Object(y.jsx)(In,{className:"block-container",isWideMode:p,children:Object(y.jsx)(sn,{node:e,reportId:n,reportRunState:r,showStaleElementIndicator:a,widgetMgr:i,widgetsDisabled:l,uploadClient:s,componentRegistry:c,formsData:u})})},b=p?"wide":"narrow";return Object(y.jsxs)(Sn,{className:"reportview-container","data-testid":"stReportViewContainer","data-layout":b,children:[!t.sidebar.isEmpty&&Object(y.jsx)(On,{initialSidebarState:f,children:m(t.sidebar)}),Object(y.jsxs)(kn,{tabIndex:0,isEmbedded:h,className:"main",children:[m(t.main),Object(y.jsxs)(Pn,{isEmbedded:h,children:["Made with"," ",Object(y.jsx)(Cn,{href:"//streamlit.io",children:"Streamlit"})]})]})]})},An=n(462),Dn=n(70);!function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",e.INITIAL="INITIAL",e.PINGING_SERVER="PINGING_SERVER",e.CONNECTING="CONNECTING",e.STATIC="STATIC"}(Tn||(Tn={}));var Rn=oe()("div",{target:"ehezqtx0"})((function(e){return{display:"flex",alignItems:"center",justifyContent:"center",color:e.theme.colors.gray}}),""),Vn=oe()("label",{target:"ehezqtx1"})((function(e){var t=e.isMinimized,n=e.theme;return{fontSize:n.fontSizes.smDefault,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 500ms",opacity:t?0:1,visibility:t?"hidden":"visible"}}),""),Nn=oe()("div",{target:"ehezqtx2"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:t.radii.md,margin:"0 ".concat(t.spacing.sm," 0 0"),paddingLeft:t.spacing.sm,backgroundColor:t.colors.bgColor,height:"1.6rem"}}),""),Fn=function(e){return{opacity:0,padding:e.spacing.none,margin:e.spacing.none,maxWidth:0,minWidth:0,border:0}},Mn=oe()("label",{target:"ehezqtx3"})((function(e){var t=e.isPrompt,n=e.isMinimized,r=e.theme;return Object(g.a)({fontSize:r.fontSizes.smDefault,color:t?r.colors.bodyText:r.colors.gray,textTransform:t?"none":"uppercase",margin:"0 0 0 ".concat(r.spacing.lg),whiteSpace:"nowrap",maxWidth:"20rem",height:"1rem",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?Fn(r):{})}),""),Bn=oe()("span",{target:"ehezqtx4"})((function(e){var t=e.isMinimized,n=e.theme;return Object(g.a)({minWidth:"4rem",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?Fn(n):{})}),""),zn=oe()("img",{target:"ehezqtx5"})((function(e){var t=e.theme;return{opacity:.4,width:"1.6rem",height:"1.6rem",marginRight:"-".concat(t.spacing.sm)}}),""),Wn=oe()("div",{target:"ehezqtx6"})((function(e){e.theme;return{"&.StatusWidget-appear":{opacity:0},"&.StatusWidget-appear-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-exit":{opacity:1},"&.StatusWidget-exit-active":{opacity:0,transition:"opacity 200ms ease-out"}}}),""),Ln=oe()("div",{target:"ehezqtx7"})((function(e){e.theme;return{"&::first-letter":{textDecoration:"underline"}}}),""),Un=function(e){Object(j.a)(n,e);var t=Object(x.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 at,r.keyHandlers=void 0,r.handleScroll=function(){r.setState({statusMinimized:n.shouldMinimize()})},r.onReportPromptHover=function(){r.setState({promptHovered:!0})},r.onReportPromptUnhover=function(){r.setState({promptHovered:!1,promptMinimized:!1}),r.minimizePromptAfterTimeout(1e3)},r.handleStopReportClick=function(){r.props.stopReport()},r.handleRerunClick=function(){r.props.rerunReport(!1)},r.handleAlwaysRerunClick=function(){r.props.allowRunOnSave&&r.props.rerunReport(!0)},r.state={statusMinimized:n.shouldMinimize(),promptMinimized:!1,reportChangedOnDisk:!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===Tn.CONNECTED}},{key:"handleSessionEvent",value:function(e){"reportChangedOnDisk"===e.type&&(this.setState({reportChangedOnDisk:!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(y.jsx)(An.CSSTransition,{appear:!0,in:e,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",children:Object(y.jsx)(Wn,{"data-testid":"stStatusWidget",children:t},"StatusWidget")}))}},{key:"renderWidget",value:function(){if(this.isConnected()){if(this.props.reportRunState===F.a.RUNNING||this.props.reportRunState===F.a.RERUN_REQUESTED)return this.renderReportIsRunning();if(!G.d&&this.state.reportChangedOnDisk)return this.renderRerunReportPrompt()}return this.renderConnectionStatus()}},{key:"renderConnectionStatus",value:function(){var e=n.getConnectionStateUI(this.props.connectionState);return void 0===e?null:Object(y.jsx)(Dn.b,{content:function(){return Object(y.jsx)("div",{children:e.tooltip})},placement:Dn.a.BOTTOM,children:Object(y.jsxs)(Rn,{"data-testid":"stConnectionStatus",children:[Object(y.jsx)(Me.a,{size:"sm",content:e.icon}),Object(y.jsx)(Vn,{isMinimized:this.state.statusMinimized,children:e.label})]})})}},{key:"renderReportIsRunning",value:function(){var e=this.state.statusMinimized,t=this.props.reportRunState===F.a.STOP_REQUESTED,r=n.promptButton(t?"Stopping...":"Stop",t,this.handleStopReportClick,e),o=Object(y.jsx)(zn,{src:"data:image/gif;base64,R0lGODlhgACAAPAAAAAAAAAAACH5BAkUAAEAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAgACAAAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3nKcD3vA5s+Ia9oNFATAKOQKWSiXM6oTbpkzqzTrEx7ZX78ibBYfGYzDKf0So1kZ12/+Ar+Zy+s+Pr7j1f7ffnFRinRegiddg1pNho5OMIKbhGZpXXl6N3YrdlwvlF8ik6SioZWoqaauap2ur6xvoqm4oya1t6easL2Lbra1j2+5sp3ApWjKmI7Bghy1zh/DwRLd38Wi1Bje2gvc3Q7a0AHo4wTo50fb5gfs5O7h4O7y2/TY9tX40vrf/Mz+wfKZ26BAAbFVQmcOCBg4cYEnIYCKIfiXso4rFIByMcnY1sOKLxWCmhwgCWhCQaufDkN5UoS67s1JKlOJkKXa6jOdDmTJgjdRLEqc5nOaDtiJI0Gs+o0KBKkc5ryrMmVFA9p1KqGnVoVqZb0XV9ZxUWyqNflxYt67ReWEZjyVL9+TUp2rhP577NudZUTLtXpfIVu/duSrpq/7Id6zRtYcAvGQfWy60vYsgPDre9jDmz5s2cO3v+DDq06NEnCgAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4P1AGGxGGwV0wSjzmlE8C0PZ/R2XRahV2vWdcW22V9qeHV2FlWnclp0xrddr+T8dN8WZff8/o5v3/2BzgmOMhVaAiHaAe2qEbnGCk56XBHSLlgaYl5oOmJ6Rk6GUoaSVrqeIpaqLoq2OqaBxtbNyv6eljZyprbAMvL5vuLG8wwTKxofIxcBLGM2Oz8zKm8S/0wfZ0wq62r2i1sDa6QPc49Ti6O3lkObFR9Opq8rc6sBB/v3kj/rb/PXi/Om0wB2/jh10/WQQTtumxCaGsekocMI2758QmixfZiNxbi28ixxpoIIC91NCmtZC+RXyiobCkFpsuX/2TIrEAz5IubOHNK3Hkxg897NIJuGIrHptGjSIuubPLUS9STNaVWpapTzFWsP1tM5UpUadaYW82U1bA05dhHa4V+JXg2RVoPc721RVGXQ96PkMTetbAX7t9EST8EFtzV69sLh9PFlbu4Z2SNff0OVps43GXChd1OphzNaWNsPEl+xotS8umKj9mOdvwadGcrqUnXlhAbciDbt3Gv1j0QoEfVmbUMRfvbtUqmm82+7NDaOEjDYSdaDBEayPV1wmlxz8dd88jwvnOTP48+vfr17Nu7fw8/vnz4BQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/IG1PaMc/a+537FC9Z+xIfwWEwmjkylkgl1FqFN6Y9atc6wWW2Mi/TKwELxmMwzf9E99YvddrvgQ/kcbofh828yf431FxK2ECjowcVAeKgDxsjC9phCJ2lCV1c5eImZ2bEZ16nxmRaaMRpUenFaljqxutja8NoVqzAbVWt7i5trsJuYOxuAVivsS1xqfBDZqYxAKfkquyko7TDKtxpxasctge3m7foZTq56KUdtCq2G3ojcvofomC4PQpVtr0ma594ryu4fBn8CB+orCOQgwnHMYuH7ppAGLxQRn1WkcFGiuv5p8Axu9GRNUcOE2t450+UH4y6AvwBcSwmx5bmWnFAa2kazJoScoGxOfMnTZUxgPn8uuQkUqUV6RpQmpXXUaFFWOB9yhFoV6zKpS7U+hRUVLEOvw8g6HUt1as+ZadXq7IpKo1ircuMW8srVAt1jYte1hcvP7T1aeT3+5Xu4bGKWacn6tRsWMuAbIrr0BXlYquPH/DZzXqs482WTpEZjDrx17uJ5cU2TXmvUM+MesmdTnnw7NeoRGU/Dhur69V4SYGOv/tCxRHHgx1kTtfTXuGTiMKFPl76bd3Xl0ZlP187U+m7soCtvp37de3bz4bmnX/6dfXvw49WXH1wmuO3ciK/fx0fOin6fvaVZc3VRVhtboBX4n29tJEhSfH1BqBJVFGa1Xn9CiWSgXosUZliGEYoYImoXfnXfiCR62J2AO53IYYcYZgfiUDLOuCKO/OnmoltvHZjjVZed9WKNJTYo5HHPFQmjjin6uONdRPJo5ICmzZckTRQF9WOWK00SlIK33CHTkeK0UOZ+H5FZknMEnWGOfOf5EJB7VeKw5EJ67slnn37+CWiggg5KaKGGMlIAACH5BAkUAAEALAAAAACAAIAAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8cyBNT2jHP2vud+xQvefsSG8AgoKhFI5HLZPD6LUefUV5Vec1nhFtfVfmFh75hc5p3R6do61na/X/HknJ6+s8P6fbUPlwUo8zc4I2aYqLjI2Ehk5rhSGGlSRilSd+lRJ6eZwdnjCQQaJCpBimi6gNqkqsAq6GoAG6tKy2d6aymqi6vZu3sJ7BuZN0sr3JWgSzm5zOwYxTAc3bpKzSh9ja2o/To8ZOj9DB7eN34AGtAGiH6cyXnnvp75Hj82f5+u/pVfz8TviruAAPU9GWiwYJwtCBc6+HfQmkJjD9gJtELOYoTpYFMw7oO40VlHSBMpjiLZL9Q3hxtUZgMpa0LCmCFh0qw48+ZDgjp3kuqJExXQaciGZmRltKTQpPSgGf3DsmcsjVLHUb0p0iTWhsqqSlTq8Y1LCrWOfj0zj+hZs6lSElsZFm5chjBFbpt7sZw5I2vz6rVDo+/Iv4CDtqX795TgwXoV4/XLLfBjyL1kLkbrtObhdj/JXhanVTPKX5/5TvZUGENappI3szY8+nXr2LJ9uq59lzbu3KV2i+7tGzbw4KZvE29qnPjq48h1M19+HLry0sGlV6d+3Tnz5mO3y+3kvWL48eTLmz8PoQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHQ4DRWDseiQalc8l6PoXSKgBllQKz1RJX2/taRWLwrjz2oM25dbfjdvLibAxdrrvXK3pou49nAeiHM6h0YXiVl4jEZxjG6Dj4EzmRSARo+cgUoCdxydlEFwEa2jn6UGp66gYxuYqA2vAKeyDL0FercLtwp9sb5+D7uxs820oMjHz8lSxs/PzmHL32STjNDI0Nl7vNseltpxquWUluzdh4npp+uJ7drv4eGz81b1u/R56fts6f5e8fwHACm20rKAYbwjLOulFD03BZOYYRDYqzOI3Lt/aB++x98HgvpMiRJEuaPIkypcqKIDVw3NDPBUREMwVRTDEMnUR22khk4ukJKK+P4/AVFQWO28KlP2EyferwItSpPSVRvXqTJtatGjNw/RrTZldltBKYKzZWa1iyQ9EGfdhSbFx4NUm1xSXNZSAK1dRinCjvxlqpc1caPow4seLFjBs7hqTP7169kXFm5VsXc0IVb13dxVs1RFO6oc1GBXGW3lFWZTeCBav0NWzKsl/Trv31Nu6tundf7V2Y9WjVrYkPBhzcaGfQy9kmt1vZbV+d0z1HB0w4rebNVgPbOC73+ePx5MubP48+vfr17Nu7fw8/vvzGBQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJphPAAuoLI+3cxrZJ5+7Ne/q/6wkvQN3wSCn+kEyHEtiMJp5LqZVqtEaxVS2Sm/UewTnxlzwzn9HqNbk9RgfhPTY9jr27n3omv99UBKiVNmh4iJiouMjY6FhX9hijJJnCVVnyhhkit/khx+LJARoqmkFaY0qEOqcqwVrq+gobK+tEW2u7gJuqu8ub62sA3Cs8TBxsi1wovMys7PysGh05TV29eQ1Vqf2H2N35jXyMKg4sw3o4jl5ueK4Aq07bEO+efts+eI9PKp/PUM/eP3j7BPYDWFDcAU0EBzZiyO4gNzC/JE681DBcNvCKGSFi8kgO5MU8HUmaEmnHGsYpHF2hXOmyZURKul7S/JjM5raRrUJSqdjlUZiZ3ohKY7TTqKCSyRTdVJp0ITakRaXCtNrUXFWsWwMUo3qV69OFkjSyNLnRLNShZR36HPsw4NmfQuchROs07Aq9+vjuxdsX8CrBd2RuMFzYLwbEbRiPcutH8WHIQxx/ogyJ7omEeOBmwmxDswrOmaOOBv3C82mLQkzDkNt6amjYpXvOpm1srcjcXnnxZopa1rrfvd8RL47ruNjg0HATd36ceW5Qyh+krE5PMva3Qbfz6+79O43wSdiShyD7PPqv6tsbKgAAOw==",alt:"Running..."});return Object(y.jsxs)(Nn,{children:[e?Object(y.jsx)(Dn.b,{placement:Dn.a.BOTTOM,content:function(){return Object(y.jsx)("div",{children:"This script is currently running"})},children:o}):o,Object(y.jsx)(Mn,{isMinimized:this.state.statusMinimized,isPrompt:!1,children:"Running..."}),r]})}},{key:"renderRerunReportPrompt",value:function(){var e=this.props.reportRunState===F.a.RERUN_REQUESTED,t=this.state.promptMinimized&&!this.state.promptHovered,r=this.props.theme.colors;return Object(y.jsx)(I.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(y.jsx)("div",{onMouseEnter:this.onReportPromptHover,onMouseLeave:this.onReportPromptUnhover,children:Object(y.jsxs)(Nn,{children:[Object(y.jsx)(Me.a,{content:cn.Info,margin:"0 sm 0 0",color:r.bodyText}),Object(y.jsx)(Mn,{isMinimized:t,isPrompt:!0,children:"Source file changed."}),n.promptButton(Object(y.jsx)(Ln,{children:"Rerun"}),e,this.handleRerunClick,t),this.props.allowRunOnSave&&n.promptButton(Object(y.jsx)(Ln,{children:"Always rerun"}),e,this.handleAlwaysRerunClick,t)]})})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.reportRunState===F.a.RUNNING?{reportChangedOnDisk:!1,promptHovered:!1}:null}},{key:"shouldMinimize",value:function(){return window.scrollY>32}},{key:"promptButton",value:function(e,t,n,r){return Object(y.jsx)(Bn,{isMinimized:r,children:Object(y.jsx)(un.d,{kind:un.b.PRIMARY,size:un.c.XSMALL,disabled:t,fluidWidth:!0,onClick:n,children:e})})}},{key:"getConnectionStateUI",value:function(e){switch(e){case Tn.INITIAL:case Tn.PINGING_SERVER:case Tn.CONNECTING:return{icon:cn.Ellipses,label:"Connecting",tooltip:"Connecting to Streamlit server"};case Tn.CONNECTED:case Tn.STATIC:return;case Tn.DISCONNECTED_FOREVER:default:return{icon:cn.Warning,label:"Error",tooltip:"Unable to connect to Streamlit server"}}}}]),n}(r.PureComponent),_n=Object(h.withTheme)(Un),Hn=n(2613),Jn=n(2611),Gn=n(36);var qn=function(){return{title:"Unable to deploy app",body:Object(y.jsx)(y.Fragment,{children:Object(y.jsx)("p",{children:"This Git repo has uncommitted changes. You may want to commit them before continuing."})})}};var Yn=function(){return{title:"Unable to deploy app",body:Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("p",{children:"This Git tree is in a detached HEAD state."}),Object(y.jsx)("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}};var Xn=function(){return{title:"Unable to deploy app",body:Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("p",{children:"This Git repo has untracked files. You may want to commit them before continuing."}),Object(y.jsxs)("p",{children:["Alternatively, you can either delete the files (if they're not needed) or add them to your ",Object(y.jsx)("strong",{children:".gitignore"}),"."]})]})}};var Kn=function(e){return{title:"Unable to deploy app",body:Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)("p",{children:["The file ",Object(y.jsx)("code",{children:e})," has not been added to the repo."]}),Object(y.jsx)("p",{children:"Please add it and push to GitHub to continue."})]})}};var Qn=function(e){var t=e.split("/").slice(1).join("/");return{title:"Unable to deploy app",body:Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)("p",{children:["Your repository ",Object(y.jsx)("code",{children:t})," has uncommitted changes."]}),Object(y.jsx)("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}};var Zn,$n=function(){return{title:"Unable to deploy app",body:Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("p",{children:"Could not find a remote repository hosted on GitHub. Are you sure you are on a branch that is tracking a remote GitHub branch?"}),Object(y.jsx)("p",{children:"How Streamlit sharing works:"}),Object(y.jsxs)("ul",{children:[Object(y.jsxs)("li",{children:["To deploy a public app, you must first put it in a public GitHub repo. See"," ",Object(y.jsx)("a",{href:ct,rel:"noopener noreferrer",target:"_blank",children:"our documentation"})," ","for more details."]}),Object(y.jsxs)("li",{children:["If you'd like to deploy a private app,"," ",Object(y.jsx)("a",{href:dt,target:"_blank",rel:"noopener noreferrer",children:"sign up for Streamlit for Teams"}),"."]})]})]})}},er=n(189),tr=function(e){return Object(p.keyframes)(Zn||(Zn=Object(er.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)},nr=oe()("div",{target:"e1pxm3bq0"})((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(tr(t)," 2s linear infinite")}}),""),rr=oe()("div",{target:"e1pxm3bq1"})((function(e){var t=e.theme;return{borderTop:"1px solid ".concat(t.colors.fadedText10),margin:"".concat(t.spacing.sm," ").concat(t.spacing.none)}}),""),or=oe()("span",{target:"e1pxm3bq2"})((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"}}),""),ar=oe()("li",{target:"e1pxm3bq3"})((function(e){var t=e.isDisabled,n=e.isHighlighted,r=e.isRecording,o=e.theme,a=t?{backgroundColor:o.colors.transparent,color:o.colors.fadedText60,cursor:"not-allowed"}:{"&:active":Object(kt.a)({backgroundColor:o.colors.primary,color:o.colors.white,outline:"none"},or,{color:o.colors.white}),"&:focus":{backgroundColor:o.colors.primary,color:o.colors.white}},i=n&&{backgroundColor:o.colors.secondaryBg},l=r&&{color:o.colors.red,fontWeight:o.fontWeights.bold};return Object(g.a)(Object(g.a)(Object(g.a)({margin:0,padding:"".concat(o.spacing.twoXS," ").concat(o.spacing.twoXL),display:"flex",flexDirection:"row",alignItems:"flex-start",cursor:"pointer"},i||{}),l||{}),a)}),""),ir=oe()("span",{target:"e1pxm3bq4"})((function(e){var t=e.theme;return{marginRight:t.spacing.md,flexGrow:1,fontFamily:t.fonts.sansSerif}}),""),lr=L.k.GitStates,sr={COUNTDOWN:"Cancel screencast",RECORDING:"Stop recording"},cr=function(e){return function(){window.open(e,"_blank")}},ur=function(e){if(e){var t=new URL("https://share.streamlit.io/deploy");return t.searchParams.set("repository",e.repository||""),t.searchParams.set("branch",e.branch||""),t.searchParams.set("mainModule",e.module||""),cr(t.toString())}return cr("https://streamlit.io/sharing")},dr=Object(r.forwardRef)((function(e,t){var n=e.item,r=e["aria-selected"],o=e.onClick,a=e.onMouseEnter,i=e.$disabled,l=e.$isHighlighted,s=n.label,c=n.shortcut,u=n.hasDividerAbove,d={isDisabled:i,isHighlighted:l,isRecording:Boolean(n.stopRecordingIndicator)},p=i?{}:{onClick:o,onMouseEnter:a};return Object(y.jsxs)(y.Fragment,{children:[u&&Object(y.jsx)(rr,{}),Object(y.jsxs)(ar,Object(g.a)(Object(g.a)(Object(g.a)({ref:t,role:"option","aria-selected":r,"aria-disabled":i},d),p),{},{children:[Object(y.jsx)(ir,Object(g.a)(Object(g.a)({},d),{},{children:s})),c&&Object(y.jsx)(or,Object(g.a)(Object(g.a)({},d),{},{children:c}))]}))]})}));function pr(e){var t=Object(h.useTheme)().colors,n=!e.isServerConnected,o=Object(r.useCallback)((function(){var t=e.showDeployError,n=e.closeDialog,r=e.isDeployErrorModalOpen,o=e.gitInfo;if(o){var a=o.repository,i=o.branch,l=o.module,s=o.untrackedFiles,c=o.uncommittedFiles,u=o.state;if((!a||!i||!l)&&u===lr.DEFAULT){var d=$n();t(d.title,d.body)}else if(u!==lr.HEAD_DETACHED)if(l&&(null===s||void 0===s?void 0:s.includes(l))){var p=Kn(l);t(p.title,p.body)}else if(a&&(null===c||void 0===c?void 0:c.length)){var f=Qn(a);t(f.title,f.body)}else if(u!==lr.AHEAD_OF_REMOTE)if(null===s||void 0===s?void 0:s.length){var h=Xn();t(h.title,h.body,ur(o))}else r&&n(),ur(o)();else{var m=qn();t(m.title,m.body,ur(o))}else{var y=Yn();t(y.title,y.body)}}else{var b=$n();t(b.title,b.body)}}),[e]);Object(r.useEffect)((function(){e.gitInfo&&e.isDeployErrorModalOpen&&o()}),[e.gitInfo,e.isDeployErrorModalOpen,o]);var a,i={DIVIDER:{isDivider:!0},rerun:{disabled:n,onClick:e.quickRerunCallback,label:"Rerun",shortcut:"r"},clearCache:{disabled:n,onClick:e.clearCacheCallback,label:"Clear cache",shortcut:"c"},recordScreencast:{onClick:e.screencastCallback,label:sr[e.screenCastState]||"Record a screencast",shortcut:sr[e.screenCastState]?"esc":"",stopRecordingIndicator:Boolean(sr[e.screenCastState])},deployApp:{onClick:o,label:"Deploy this app"},saveSnapshot:{disabled:n,onClick:e.shareCallback,label:"Save a snapshot"},documentation:{onClick:cr(ct),label:"Documentation"},community:{onClick:cr(ut),label:"Ask a question"},report:{onClick:cr("https://github.com/streamlit/streamlit/issues/new/choose"),label:"Report a bug"},s4t:{onClick:cr(dt),label:"Streamlit for Teams"},settings:{onClick:e.settingsCallback,label:"Settings"},about:{onClick:e.aboutCallback,label:"About"}},l=e.s4aMenuItems.map((function(t){return"separator"===t.type?i.DIVIDER:{onClick:function(){return e.sendS4AMessage({type:"MENU_ITEM_CALLBACK",key:t.key})},label:t.label}}),[]),s=!!l.length,u=("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)&&!s&&e.canDeploy,d=!s&&e.sharingEnabled,p=!s,f=[i.rerun,p&&i.clearCache,s&&i.settings,i.DIVIDER,u&&i.deployApp,d&&i.saveSnapshot,i.recordScreencast].concat(Object(c.a)(s?l:[i.DIVIDER,i.documentation,i.community,i.report,i.DIVIDER,i.s4t,i.settings,i.about])),m=[],b=null,O=Object(B.a)(f);try{for(O.s();!(a=O.n()).done;){var w=a.value;w&&(w!==i.DIVIDER&&(b===i.DIVIDER?m.push(Object(g.a)(Object(g.a)({},w),{},{hasDividerAbove:!0})):m.push(w)),b=w)}}catch(v){O.e(v)}finally{O.f()}return Object(y.jsx)(Jn.a,{focusLock:!0,onOpen:function(){u&&e.loadGitInfo()},placement:Gn.f.bottomRight,content:function(e){var n=e.close;return Object(y.jsx)(Hn.a,{items:m,onItemSelect:function(e){e.item.onClick(),n()},overrides:{Option:dr,List:{props:{"data-testid":"main-menu-list"},style:{":focus":{outline:"none"},border:"1px solid ".concat(t.fadedText10)}}}})},overrides:{Body:{props:{"data-testid":"main-menu-popover"}}},children:Object(y.jsxs)("span",{id:"MainMenu",children:[Object(y.jsx)(un.d,{kind:un.b.ICON,children:Object(y.jsx)(Me.a,{content:cn.Menu})}),"RECORDING"===e.screenCastState&&Object(y.jsx)(nr,{})]})})}var fr=Object(r.memo)(pr),hr=oe()("header",{target:"e8zbici0"})((function(e){var t=e.isEmbedded,n=e.isWideMode,r=e.theme;return Object(g.a)({position:"fixed",top:r.spacing.none,left:r.spacing.none,right:r.spacing.none,height:0,zIndex:r.zIndices.header,display:t?"none":"block","@media print":{display:"none"}},n?Object(kt.a)({backgroundImage:"linear-gradient(180deg, ".concat(r.colors.bgColor," 25%, ").concat(Object(Ee.transparentize)(r.colors.bgColor,.5)," 75%, ").concat(r.colors.transparent,")")},"@media (max-width: ".concat(r.breakpoints.md,")"),{position:"absolute",background:"unset"}):{})}),""),mr=oe()("div",{target:"e8zbici1"})((function(e){var t=e.theme;return{position:"absolute",top:t.spacing.none,right:t.spacing.none,left:t.spacing.none,height:"0.125rem",backgroundImage:"linear-gradient(90deg, ".concat(t.colors.streamlitPink,", #fffd80)"),zIndex:t.zIndices.header}}),""),yr=oe()("div",{target:"e8zbici2"})((function(e){var t=e.theme;return{position:"absolute",top:t.spacing.none,right:t.spacing.lg,height:t.sizes.headerHeight,display:"flex",flexDirection:"row",alignItems:"center"}}),"");var br=function(e){var t=e.isStale,n=e.children,r=o.a.useContext(D.a),a=r.wideMode,i=r.embedded;return Object(y.jsxs)(hr,{isWideMode:a,isEmbedded:i,tabIndex:-1,isStale:t,children:[Object(y.jsx)(mr,{"data-testid":"stDecoration"}),Object(y.jsx)(yr,{"data-testid":"stToolbar",children:n})]})},gr=n(463),Or=n.n(gr),wr=n(315),vr=n(160),jr=n(2618),xr=n(56),Sr=n.n(xr),kr=oe()("span",{target:"e104heul0"})((function(e){return{marginRight:e.theme.spacing.twoXS}}),"");function Ir(e){var t=e.children,n=Object(h.useTheme)(),r=n.colors,o=n.genericFonts,a=n.fontSizes,i=n.spacing;return Object(y.jsx)(vr.g,{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:o.bodyFont,fontSize:a.lg,margin:i.none,lineHeight:1.5,textTransform:"none",display:"flex",flexDirection:"row",alignItems:"center"},children:t})}function Cr(e){var t=e.children,n=Object(h.useTheme)(),r=n.colors,o=n.fontSizes,a=n.spacing;return Object(y.jsx)(vr.e,{style:{marginTop:a.none,marginLeft:a.none,marginRight:a.none,marginBottom:a.none,paddingTop:a.xl,paddingRight:a.xl,paddingBottom:a.xl,paddingLeft:a.xl,color:r.bodyText,fontSize:o.md},children:t})}function Pr(e){var t=e.children,n=Object(h.useTheme)(),r=n.colors,o=n.spacing;return Object(y.jsx)(vr.f,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.md,paddingRight:o.md,paddingBottom:o.md,paddingLeft:o.md,borderTop:"1px solid ".concat(r.fadedText10)},children:Object(y.jsx)("div",{className:"ModalBody",children:t})})}var Tr=function(e){return Object(y.jsx)(kr,{children:Object(y.jsx)(un.d,Object(g.a)({},e))})};var Er=function(e){var t=Object(h.useTheme)(),n=t.spacing,r=t.colors,o={DialogContainer:{style:{alignItems:"start",paddingTop:"3rem"}},Dialog:{style:{border:"1px solid ".concat(r.fadedText10)}},Close:{style:{top:n.xl,right:n.lg}}},a=Sr()(o,e.overrides);return Object(y.jsx)(jr.a,Object(g.a)(Object(g.a)({},e),{},{unstable_ModalBackdropScroll:!0,overrides:a}))},Ar=n(118),Dr=n(309),Rr=oe()("div",{target:"es2f1e70"})((function(e){return{marginBottom:e.theme.spacing.sm}}),""),Vr=oe()("div",{target:"es2f1e71"})((function(e){return{marginBottom:e.theme.spacing.sm}}),""),Nr=oe()("textarea",{target:"es2f1e72"})((function(e){var t=e.theme;return{width:t.sizes.full,fontFamily:t.genericFonts.codeFont,fontSize:t.fontSizes.smDefault,height:"6rem"}}),""),Fr=oe()("pre",{target:"es2f1e73"})((function(e){var t=e.theme;return{fontFamily:t.genericFonts.codeFont,fontSize:t.fontSizes.smDefault,whiteSpace:"normal",wordWrap:"break-word"}}),""),Mr=oe()("span",{target:"es2f1e74"})((function(e){e.theme;return{"&::first-letter":{textDecoration:"underline"}}}),""),Br=oe()(Ar.ChevronLeft,{target:"es2f1e75"})((function(e){return{cursor:"pointer",marginRight:e.theme.spacing.lg}}),""),zr=oe()("div",{target:"es2f1e76"})((function(e){return{display:"grid",gap:e.theme.spacing.xl,gridTemplateColumns:"1fr 1fr",margin:0,padding:0}}),""),Wr=oe()("div",{target:"es2f1e77"})((function(e){return{gridColumnStart:1,gridColumnEnd:-1,display:"grid",gap:e.theme.spacing.sm}}),""),Lr=oe()("h4",{target:"es2f1e78"})((function(e){return{paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:1.25,display:"grid",gridAutoFlow:"row",gap:e.theme.spacing.sm}}),""),Ur=oe()("label",{target:"es2f1e79"})((function(e){e.theme;return{paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:1.25}}),""),_r=oe()(Dr.a,{target:"es2f1e710"})((function(e){e.theme;return{display:"block",paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:1.5}}),""),Hr=oe()("hr",{target:"es2f1e711"})((function(e){var t=e.theme;return{padding:0,marginBottom:0,marginLeft:"-".concat(t.spacing.xl),marginRight:"-".concat(t.spacing.xl),marginTop:0}}),""),Jr=oe()("input",{target:"es2f1e712"})((function(e){return{marginRight:e.theme.spacing.xs}}),""),Gr=oe()("div",{target:"es2f1e713"})((function(e){e.theme;return{"& > ul":{paddingLeft:"1.4rem"}}}),""),qr=function(e){Object(j.a)(n,e);var t=Object(x.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(y.jsx)(I.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(y.jsxs)(Er,{isOpen:!0,onClose:this.props.onClose,children:[Object(y.jsx)(Ir,{children:"App changed"}),Object(y.jsx)(Cr,{children:Object(y.jsx)("div",{children:"The source files for this app have changed on disk."})}),Object(y.jsxs)(Pr,{children:[this.props.allowRunOnSave?Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:this.alwaysRerun,children:Object(y.jsx)(Mr,{children:"Always rerun"})}):null,Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:this.rerun,children:Object(y.jsx)(Mr,{children:"Rerun"})})]})]})})}}]),n}(r.PureComponent),Yr=n(147),Xr=function(e){Object(j.a)(n,e);var t=Object(x.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(y.jsx)("div",{children:Object(y.jsx)(un.d,{onClick:r.props.openThemeCreator,kind:un.b.PRIMARY,children:"Edit active theme"})})},r.render=function(){var e=r.context.availableThemes.findIndex((function(e){return e.name===r.context.activeTheme.name}));return Object(y.jsxs)(Er,{animate:r.props.animateModal,isOpen:!0,onClose:r.handleCancelButtonClick,children:[Object(y.jsx)(Ir,{children:"Settings"}),Object(y.jsx)(Cr,{children:Object(y.jsxs)(zr,{children:[r.props.allowRunOnSave&&Object(y.jsxs)(o.a.Fragment,{children:[Object(y.jsxs)(Wr,{children:[Object(y.jsx)(Lr,{children:"Development"}),Object(y.jsxs)("label",{children:[Object(y.jsx)(Jr,{disabled:!r.props.isServerConnected,type:"checkbox",name:"runOnSave",checked:r.state.runOnSave&&r.props.isServerConnected,onChange:r.handleCheckboxChange})," ","Run on save"]}),Object(y.jsx)(_r,{children:"Automatically updates the app when the underlying code is updated."})]}),Object(y.jsx)(Wr,{children:Object(y.jsx)(Hr,{})})]}),Object(y.jsxs)(Wr,{children:[Object(y.jsx)(Lr,{children:"Appearance"}),Object(y.jsxs)("label",{children:[Object(y.jsx)(Jr,{type:"checkbox",name:"wideMode",checked:r.state.wideMode,onChange:r.handleCheckboxChange})," ","Wide mode"]}),Object(y.jsx)(_r,{children:"Turn on to make this app occupy the entire width of the screen"})]}),r.context.availableThemes.length&&Object(y.jsxs)(Wr,{children:[Object(y.jsx)(Ur,{children:"Theme"}),Object(y.jsx)(_r,{children:"Choose app and font colors/styles"}),Object(y.jsx)(Yr.b,{options:r.context.availableThemes.map((function(e){return e.name})),disabled:!1,onChange:r.handleThemeChange,value:e}),r.renderThemeCreatorButton()]})]})})]})},r.changeSingleSetting=function(e,t){r.setState((function(n){return Object(g.a)(Object(g.a)({},n),{},Object(kt.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,o=t.availableThemes[e];Y.current.enqueue("themeChanged",{oldThemeName:n.name,newThemeName:o.name}),r.context.setTheme(o)},r.handleCancelButtonClick=function(){r.props.onClose()},r.saveSettings=function(){r.activeSettings=Object(g.a)({},r.state),r.props.onSave(r.activeSettings)},r.state=Object(g.a)({},r.props.settings),r.activeSettings=Object(g.a)({},r.props.settings),r}return Object(w.a)(n,[{key:"componentDidMount",value:function(){this.setState(Object(g.a)({},this.activeSettings))}}]),n}(r.PureComponent);Xr.contextType=D.a;var Kr,Qr=n(303),Zr=n.n(Qr),$r=n(304),eo=n.n($r),to=n(159),no=function(e,t){return Object(Ee.toHex)(e).toUpperCase()},ro=function(e){return Zr()(L.e.FontFamily[e])},oo={primaryColor:{help:"Primary accent color for interactive elements.",title:"Primary color",component:to.a,getValue:no},backgroundColor:{help:"Background color for the main content area.",title:"Background color",component:to.a,getValue:no},secondaryBackgroundColor:{help:"Background color used for the sidebar and most interactive widgets.",title:"Secondary background color",component:to.a,getValue:no},textColor:{help:"Color used for almost all text.",title:"Text color",component:to.a,getValue:no},font:{help:"Font family for all text in the app, except code blocks.",title:"Font family",options:Object.keys(L.e.FontFamily).map((function(e){return Zr()(e)})),getValue:function(e,t){return t.options&&t.options.findIndex((function(t){return t===ro(e)}))||0},component:Yr.b}},ao=function(e,t){var n=function(e){return"string"===typeof e?e.toLowerCase():e},r=eo()(Object(m.toThemeInput)(t),n),o=[];return(e=eo()(e,n)).primaryColor!==r.primaryColor&&o.push('primaryColor="'.concat(e.primaryColor,'"')),e.backgroundColor!==r.backgroundColor&&o.push('backgroundColor="'.concat(e.backgroundColor,'"')),e.secondaryBackgroundColor!==r.secondaryBackgroundColor&&o.push('secondaryBackgroundColor="'.concat(e.secondaryBackgroundColor,'"')),e.textColor!==r.textColor&&o.push('textColor="'.concat(e.textColor,'"')),o},io=function(e){var t=o.a.useState(!1),n=Object(u.a)(t,2),r=n[0],a=n[1],i=o.a.useContext(D.a),l=i.activeTheme,s=i.addThemes,d=i.setTheme,p=Object(m.toThemeInput)(l.emotion),f=function(e,t){!function(e){s([e]),d(e)}(Object(m.createTheme)(m.CUSTOM_THEME_NAME,Object(g.a)(Object(g.a)({},p),{},Object(kt.a)({},e,t)))),a(!1)},h=function(e){var t=["[theme]"],n=ao(e,m.lightTheme.emotion),r=ao(e,m.darkTheme.emotion),o=n.length,a=r.length;if(o===a?t.push.apply(t,Object(c.a)(n)):o<a?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=ro(e.font).toLowerCase();t.push('font="'.concat(i,'"'))}return[].concat(t,[""]).join("\n")}(p),b=function(e){var t=e.name,n=e.value,r=oo[t],a=r.component===to.a,i={options:r.options||void 0,showValue:a,value:r.getValue(n,r)};return Object(y.jsx)(o.a.Fragment,{children:Object(y.jsx)(r.component,Object(g.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,x=O.secondaryBackgroundColor;return Object(y.jsxs)(Er,{animate:!1,isOpen:!0,onClose:e.onClose,children:[Object(y.jsxs)(Ir,{children:[Object(y.jsx)(Br,{onClick:function(){e.backToSettings(!1)}}),"Edit active theme"]}),Object(y.jsx)(Cr,{children:Object(y.jsxs)(zr,{children:[Object(y.jsx)(Wr,{children:Object(y.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(y.jsx)(b,{name:"primaryColor",value:w}),Object(y.jsx)(b,{name:"backgroundColor",value:j}),Object(y.jsx)(b,{name:"textColor",value:v}),Object(y.jsx)(b,{name:"secondaryBackgroundColor",value:x}),Object(y.jsx)(Wr,{children:Object(y.jsx)(b,{name:"font",value:String(p.font)})}),Object(y.jsx)(Wr,{children:Object(y.jsx)(Hr,{})}),Object(y.jsxs)(Wr,{children:[Object(y.jsxs)(_r,{children:["To save your changes, copy your custom theme into the clipboard and paste it into the",Object(y.jsx)("code",{children:"[theme]"})," section of your"," ",Object(y.jsx)("code",{children:".streamlit/config.toml"})," file."]}),Object(y.jsx)("div",{children:Object(y.jsx)(un.d,{onClick:function(){navigator.clipboard.writeText(h),a(!0)},kind:un.b.PRIMARY,children:r?Object(y.jsxs)(o.a.Fragment,{children:["Copied to clipboard ",Object(y.jsx)(Me.a,{content:Be.Check,size:"lg",color:l.emotion.colors.success})]}):"Copy theme to clipboard"})})]})]})})]})};function lo(e){switch(e.type){case Kr.ABOUT:return t=e,Object(y.jsxs)(Er,{isOpen:!0,onClose:t.onClose,children:[Object(y.jsx)(Ir,{children:"About"}),Object(y.jsx)(Cr,{children:Object(y.jsxs)("div",{children:["Streamlit v",J.a.current.streamlitVersion,Object(y.jsx)("br",{}),Object(y.jsx)("a",{href:st,children:st}),Object(y.jsx)("br",{}),"Copyright 2021 Streamlit Inc. All rights reserved."]})}),Object(y.jsx)(Pr,{children:Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:t.onClose,children:"Close"})})]});case Kr.CLEAR_CACHE:return function(e){var t={enter:function(){return e.defaultAction()}};return Object(y.jsx)(I.HotKeys,{handlers:t,attach:window,children:Object(y.jsx)("div",{"data-testid":"stClearCacheDialog",children:Object(y.jsxs)(Er,{isOpen:!0,onClose:e.onClose,children:[Object(y.jsx)(Ir,{children:"Clear Cache"}),Object(y.jsx)(Cr,{children:Object(y.jsxs)("div",{children:["Are you sure you want to clear the ",Object(y.jsx)("code",{children:"@st.cache"})," ","function cache?"]})}),Object(y.jsxs)(Pr,{children:[Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:e.onClose,children:"Cancel"}),Object(y.jsx)(Tr,{autoFocus:!0,kind:un.b.PRIMARY,onClick:e.confirmCallback,children:"Clear cache"})]})]})})})}(e);case Kr.RERUN_SCRIPT:return function(e){var t={enter:function(){return e.defaultAction()}};return Object(y.jsx)(I.HotKeys,{handlers:t,attach:window,children:Object(y.jsxs)(Er,{isOpen:!0,onClose:e.onClose,children:[Object(y.jsxs)(Cr,{children:[Object(y.jsx)(Vr,{children:"Command line:"}),Object(y.jsx)("div",{children:Object(y.jsx)(Nr,{autoFocus:!0,className:"command-line",value:e.getCommandLine(),onChange:function(t){return e.setCommandLine(t.target.value)}})})]}),Object(y.jsxs)(Pr,{children:[Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:e.onClose,children:"Cancel"}),Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:function(){return e.rerunCallback()},children:"Rerun"})]})]})})}(e);case Kr.SETTINGS:return function(e){return Object(y.jsx)(Xr,Object(g.a)({},e))}(e);case Kr.SCRIPT_CHANGED:return Object(y.jsx)(qr,Object(g.a)({},e));case Kr.SCRIPT_COMPILE_ERROR:return function(e){return Object(y.jsxs)(Er,{isOpen:!0,onClose:e.onClose,children:[Object(y.jsx)(Ir,{children:"Script execution error"}),Object(y.jsx)(Cr,{children:Object(y.jsx)("div",{children:Object(y.jsx)("pre",{children:Object(y.jsx)("code",{children:e.exception?e.exception.message:"No message"})})})}),Object(y.jsx)(Pr,{children:Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:e.onClose,children:"Close"})})]})}(e);case Kr.THEME_CREATOR:return Object(y.jsx)(io,Object(g.a)({},e));case Kr.UPLOAD_PROGRESS:return function(e){return Object(y.jsx)(Er,{isOpen:!0,onClose:e.onClose,children:Object(y.jsxs)(Cr,{children:[Object(y.jsx)(Rr,{children:"Saving app snapshot..."}),Object(y.jsx)("div",{children:Object(y.jsx)(wr.b,{value:e.progress||0})})]})})}(e);case Kr.UPLOADED:return function(e){var t=function(){Or()(e.url),e.onClose()};return Object(y.jsxs)(Er,{isOpen:!0,onClose:e.onClose,children:[Object(y.jsxs)(Cr,{children:[Object(y.jsx)("div",{className:"streamlit-upload-first-line",children:"App snapshot saved to:"}),Object(y.jsx)(Fr,{id:"streamlit-upload-url",children:Object(y.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.url})})]}),Object(y.jsxs)(Pr,{children:[Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:t,children:"Copy to clipboard"}),Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:function(){window.open(e.url,"_blank"),e.onClose()},children:"Open"}),Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:e.onClose,children:"Done"})]})]})}(e);case Kr.WARNING:return function(e){return Object(y.jsxs)(Er,{isOpen:!0,onClose:e.onClose,children:[Object(y.jsx)(Ir,{children:e.title}),Object(y.jsx)(Cr,{children:e.msg}),Object(y.jsx)(Pr,{children:Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:e.onClose,children:"Done"})})]})}(e);case Kr.DEPLOY_ERROR:return function(e){var t=e.title,n=e.msg,r=e.onClose,o=e.onContinue,a=e.onTryAgain,i=function(){r(),o&&o()};return Object(y.jsxs)(Er,{isOpen:!0,onClose:r,children:[Object(y.jsx)(Ir,{children:t}),Object(y.jsx)(Cr,{children:Object(y.jsx)(Gr,{children:n})}),Object(y.jsxs)(Pr,{children:[Object(y.jsx)(Tr,{kind:un.b.SECONDARY,onClick:a,children:"Try again"}),Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:i,children:o?"Continue anyway":"Close"})]})]})}(e);case void 0:return function(e){var t=e.onClose;return Object(y.jsx)(Er,{isOpen:!1,onClose:t})}(e);default:return function(e){return Object(y.jsx)(Er,{isOpen:!0,onClose:e.onClose,children:Object(y.jsx)(Cr,{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.UPLOAD_PROGRESS="uploadProgress",e.UPLOADED="uploaded",e.WARNING="warning",e.DEPLOY_ERROR="deployError"}(Kr||(Kr={}));var so=n(10),co=n.n(so),uo=n(14),po=n(117),fo=n.n(po);function ho(e,t){var n=fo.a.parse(window.location.href,!0).pathname,r="";null!=n&&(r=n.substring(0,n.lastIndexOf("/"))).startsWith("/")&&(r=r.substring(1));var o="reports/".concat(e,"/").concat(t);return""===r?"/".concat(o):"/".concat(r,"/").concat(o)}function mo(e,t){return yo.apply(this,arguments)}function yo(){return(yo=Object(uo.a)(co.a.mark((function e(t,n){var r,o;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ho(t,n),G.a);case 2:if((r=e.sent).ok){e.next=12;break}if(403!==r.status){e.next=8;break}throw new Error("PermissionError");case 8:return e.next=10,r.text();case 10:throw o=e.sent,new Error("HTTP status code: ".concat(r.status,"\n")+"Response text: ".concat(o));case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var bo=function(){function e(t){Object(O.a)(this,e),t.onConnectionStateChange(Tn.STATIC),e.getAllMessages(t)}return Object(w.a)(e,null,[{key:"getAllMessages",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n,r,o,a;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.manifest.numMessages,r=0;case 2:if(!(r<n)){e.next=19;break}return e.prev=3,e.next=6,mo(t.reportId,"".concat(r,".pb"));case 6:return o=e.sent,e.next=9,o.arrayBuffer();case 9:a=e.sent,t.onMessage(L.i.decode(new Uint8Array(a))),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),Object(q.b)("Error loading message ".concat(r,": ").concat(e.t0));case 16:r++,e.next=2;break;case 19:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),go=n(213),Oo=n.n(go),wo=function(){function e(t,n){Object(O.a)(this,e),this.msg=void 0,this.reportRunCount=0,this.msg=t,this.reportRunCount=n}return Object(w.a)(e,[{key:"getAge",value:function(e){return e-this.reportRunCount}}]),e}(),vo=function(){function e(t){Object(O.a)(this,e),this.messages=new Map,this.getServerUri=void 0,this.reportRunCount=0,this.getServerUri=t}return Object(w.a)(e,[{key:"incrementRunCount",value:function(e){var t=this;this.reportRunCount+=1,this.messages.forEach((function(n,r){n.getAge(t.reportRunCount)>e&&(Object(q.c)("Removing expired ForwardMsg [hash=".concat(r,"]")),t.messages.delete(r))}))}},{key:"processMessagePayload",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.maybeCacheMessage(t),"refHash"===t.type){e.next=3;break}return e.abrupt("return",t);case 3:if(null==(n=this.getCachedMessage(t.refHash,!0))){e.next=8;break}Object(q.c)("Cached ForwardMsg HIT [hash=".concat(t.refHash,"]")),e.next=13;break;case 8:return Object(q.c)("Cached ForwardMsg MISS [hash=".concat(t.refHash,"]")),e.next=11,this.fetchMessagePayload(t.refHash);case 11:n=e.sent,this.maybeCacheMessage(n);case 13:if(t.metadata){e.next=15;break}throw new Error("ForwardMsg has no metadata");case 15:return n.metadata=L.j.create(t.metadata),e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchMessagePayload",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n,r,o,a,i;return co.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(yt.a)(n,"message?hash=".concat(t)),e.next=6,fetch(r);case 6:if((o=e.sent).ok){e.next=9;break}throw new Error("Failed to retrieve ForwardMsg (hash=".concat(t,"): ").concat(o.statusText));case 9:return e.next=11,o.arrayBuffer();case 11:return a=e.sent,i=new Uint8Array(a),e.prev=13,e.abrupt("return",L.i.decode(i));case 17:throw e.prev=17,e.t0=e.catch(13),new Error("Failed to decode ForwardMsg (hash=".concat(t,"): ").concat(e.t0.message));case 20:case"end":return e.stop()}}),e,this,[[13,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"maybeCacheMessage",value:function(e){"refHash"!==e.type&&e.metadata&&e.metadata.cacheable&&void 0===this.getCachedMessage(e.hash,!0)&&(Object(q.c)("Caching ForwardMsg [hash=".concat(e.hash,"]")),this.messages.set(e.hash,new wo(L.i.create(e),this.reportRunCount)))}},{key:"getCachedMessage",value:function(e,t){var n=this.messages.get(e);if(null!=n)return t&&(n.reportRunCount=this.reportRunCount),L.i.create(n.msg)}}]),e}(),jo=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}))};var xo="WebsocketConnection",So=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=Tn.INITIAL,this.websocket=void 0,this.wsConnectionTimeoutId=void 0,this.args=t,this.cache=new vo((function(){return n.getBaseUriParts()})),this.stepFsm("INITIALIZED")}return Object(w.a)(e,[{key:"getBaseUriParts",value:function(){if(this.state===Tn.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}},{key:"setFsmState",value:function(e,t){switch(Object(q.c)(xo,"New state: ".concat(e)),this.state=e,this.state){case Tn.PINGING_SERVER:this.pingServer(J.a.isSet()?J.a.current.commandLine:void 0)}switch(this.args.onConnectionStateChange(e,t),this.state){case Tn.CONNECTING:this.connectToWebSocket();break;case Tn.DISCONNECTED_FOREVER:this.cancelConnectionAttempt()}}},{key:"stepFsm",value:function(e,t){if(Object(q.c)(xo,"State: ".concat(this.state,"; Event: ").concat(e)),"FATAL_ERROR"!==e||this.state===Tn.DISCONNECTED_FOREVER){switch(this.state){case Tn.INITIAL:if("INITIALIZED"===e)return void this.setFsmState(Tn.CONNECTING);break;case Tn.CONNECTING:if("CONNECTION_SUCCEEDED"===e)return void this.setFsmState(Tn.CONNECTED);if("CONNECTION_TIMED_OUT"===e||"CONNECTION_ERROR"===e||"CONNECTION_CLOSED"===e)return void this.setFsmState(Tn.PINGING_SERVER);break;case Tn.CONNECTED:if("CONNECTION_CLOSED"===e||"CONNECTION_ERROR"===e)return void this.setFsmState(Tn.PINGING_SERVER);break;case Tn.PINGING_SERVER:if("SERVER_PING_SUCCEEDED"===e)return void this.setFsmState(Tn.CONNECTING);break;case Tn.DISCONNECTED_FOREVER:return void Object(q.d)(xo,"Discarding ".concat(e," while in ").concat(Tn.DISCONNECTED_FOREVER))}throw new Error("Unsupported state transition.\n"+"State: ".concat(this.state,"\n")+"Event: ".concat(e))}this.setFsmState(Tn.DISCONNECTED_FOREVER,t)}},{key:"pingServer",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n,r=this;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.args.baseUriPartsList.map((function(e,t){return Object(yt.a)(r.args.baseUriPartsList[t],"healthz")})),e.next=3,Io(n,500,this.args.onRetry,t);case 3:this.uriIndex=e.sent,this.stepFsm("SERVER_PING_SUCCEEDED");case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectToWebSocket",value:function(){var e=this,t=Object(yt.c)(this.args.baseUriPartsList[this.uriIndex],"stream");if(null!=this.websocket)throw new Error("Websocket already exists");Object(q.c)(xo,"creating WebSocket"),this.websocket=new WebSocket(t),this.setConnectionTimeout(t);var n=this.websocket,r=function(){return n===e.websocket};this.websocket.onmessage=function(t){r()&&e.handleMessage(t.data).catch((function(t){var n="Failed to process a Websocket message (".concat(t,")");Object(q.b)(xo,n),e.stepFsm("FATAL_ERROR",n)}))},this.websocket.onopen=function(){r()&&(Object(q.c)(xo,"WebSocket onopen"),e.stepFsm("CONNECTION_SUCCEEDED"))},this.websocket.onclose=function(){r()&&(Object(q.d)(xo,"WebSocket onclose"),e.cancelConnectionAttempt(),e.stepFsm("CONNECTION_CLOSED"))},this.websocket.onerror=function(){r()&&(Object(q.b)(xo,"WebSocket onerror"),e.cancelConnectionAttempt(),e.stepFsm("CONNECTION_ERROR"))}}},{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(q.c)(xo,"".concat(e," timed out")),t.cancelConnectionAttempt(),t.stepFsm("CONNECTION_TIMED_OUT")));Object(q.d)(xo,"Timeout fired after cancellation")}}),1e3),Object(q.c)(xo,"Set WS timeout ".concat(this.wsConnectionTimeoutId))}},{key:"cancelConnectionAttempt",value:function(){this.websocket&&(this.websocket.close(),this.websocket=void 0),null!=this.wsConnectionTimeoutId&&(Object(q.c)(xo,"Clearing WS timeout ".concat(this.wsConnectionTimeoutId)),window.clearTimeout(this.wsConnectionTimeoutId),this.wsConnectionTimeoutId=void 0)}},{key:"sendMessage",value:function(e){if(this.websocket){var t=L.c.create(e),n=L.c.encode(t).finish();this.websocket.send(n)}}},{key:"incrementMessageCacheRunCount",value:function(e){this.cache.incrementRunCount(e)}},{key:"handleMessage",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n,r,o,a,i;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.nextMessageIndex,this.nextMessageIndex+=1,e.next=4,Co(t);case 4:if(r=e.sent,null!=this.messageQueue){e.next=7;break}throw new Error("No message queue.");case 7:if(null!=r&&"string"!==typeof r){e.next=9;break}throw new Error("Unexpected result from FileReader: ".concat(r,"."));case 9:return o=new Uint8Array(r),a=L.i.decode(o),e.next=13,this.cache.processMessagePayload(a);case 13:for(this.messageQueue[n]=e.sent;this.lastDispatchedMessageIndex+1 in this.messageQueue;)i=this.lastDispatchedMessageIndex+1,this.args.onMessage(this.messageQueue[i]),delete this.messageQueue[i],this.lastDispatchedMessageIndex=i;case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),ko=oe()("code",{target:"eutrmpn0"})({name:"28m1rt",styles:'&::before{content:"$";margin-right:1ex;}'});function Io(e,t,n,o){var a=new jo,i=0,l=0,s=Date.now(),c=function(){},u=function(){++l>=e.length&&(l=0),c()},d=function(e){var r=(Date.now()-s)/1e3,o=r<t?t-r:0;n(i,e),window.setTimeout(u,o)},p=function(){if("localhost"===new URL(e[l]).hostname){var t=o||"streamlit run yourscript.py";d(Object(y.jsxs)(r.Fragment,{children:[Object(y.jsx)("p",{children:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:"}),Object(y.jsx)("pre",{children:Object(y.jsx)(ko,{children:t})})]}))}else d("Connection failed with status 0.")};return(c=function(){var n=e[l];Object(q.c)(xo,"Attempting to connect to ".concat(n,".")),s=Date.now(),0===l&&i++,Oo.a.get(n,{timeout:t}).then((function(){a.resolve(l)})).catch((function(e){if("ECONNABORTED"===e.code)return d("Connection timed out.");if(e.response){var t=e.response,n=t.data,o=t.status;return 0===o?p():403===o?void d(Object(y.jsxs)(r.Fragment,{children:[Object(y.jsx)("p",{children:"Cannot connect to Streamlit (HTTP status: 403)."}),Object(y.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(y.jsx)("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",children:"CORS"})," settings."]})]})):d("Connection failed with status ".concat(o,", ")+'and response "'.concat(n,'".'))}return e.request?p():d(e.message)}))})(),a.promise}function Co(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){return t(r.result)},r.onerror=n,r.readAsArrayBuffer(e)}))}var Po=function(){function e(t){var n=this;Object(O.a)(this,e),this.props=void 0,this.connection=void 0,this.connectionState=Tn.INITIAL,this.setConnectionState=function(e,t){n.connectionState!==e&&(n.connectionState=e,n.props.connectionStateChanged(e)),(t||e===Tn.DISCONNECTED_FOREVER)&&n.props.onConnectionError(t||"unknown")},this.showRetryError=function(e,t){30===e&&n.props.onConnectionError(t)},this.props=t,this.connect()}return Object(w.a)(e,[{key:"isConnected",value:function(){return this.connectionState===Tn.CONNECTED}},{key:"isStaticConnection",value:function(){return this.connectionState===Tn.STATIC}},{key:"getBaseUriParts",value:function(){if(this.connection instanceof So)return this.connection.getBaseUriParts()}},{key:"sendMessage",value:function(e){this.connection instanceof So&&this.isConnected()?this.connection.sendMessage(e):Object(q.b)("Cannot send message when server is disconnected: ".concat(e))}},{key:"incrementMessageCacheRunCount",value:function(e){this.connection instanceof So&&this.connection.incrementMessageCacheRunCount(e)}},{key:"connect",value:function(){var e=Object(uo.a)(co.a.mark((function e(){var t,n,r;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!G.c){e.next=9;break}return t=fo.a.parse(window.location.href,!0),n=t.query,r=n.id,e.next=6,this.connectBasedOnManifest(r);case 6:this.connection=e.sent,e.next=12;break;case 9:return e.next=11,this.connectToRunningServer();case 11:this.connection=e.sent;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),Object(q.b)(e.t0.message),this.setConnectionState(Tn.DISCONNECTED_FOREVER,e.t0.message);case 18:case"end":return e.stop()}}),e,this,[[0,14]])})));return function(){return e.apply(this,arguments)}}()},{key:"connectToRunningServer",value:function(){var e=Object(yt.d)();return new So({baseUriPartsList:[e],onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError})}},{key:"connectBasedOnManifest",value:function(){var t=Object(uo.a)(co.a.mark((function t(n){var r;return co.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchManifest(n);case 2:return r=t.sent,t.abrupt("return",r.serverStatus===L.r.ServerStatus.RUNNING?this.connectToRunningServerFromManifest(r):this.connectToStaticReportFromManifest(n,r));case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"connectToRunningServerFromManifest",value:function(e){var t=this,n=e.configuredServerAddress,r=e.internalServerIP,o=e.externalServerIP,a={port:e.serverPort,basePath:e.serverBasePath},i=n?[Object(g.a)(Object(g.a)({},a),{},{host:n})]:[Object(g.a)(Object(g.a)({},a),{},{host:o}),Object(g.a)(Object(g.a)({},a),{},{host:r})];return new So({baseUriPartsList:i,onMessage:this.props.onMessage,onConnectionStateChange:function(e){return t.setConnectionState(e)},onRetry:this.showRetryError})}},{key:"connectToStaticReportFromManifest",value:function(e,t){var n=this;return new bo({manifest:t,reportId:e,onMessage:this.props.onMessage,onConnectionStateChange:function(e){return n.setConnectionState(e)}})}}],[{key:"fetchManifest",value:function(){var e=Object(uo.a)(co.a.mark((function e(t){var n,r;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mo(t,"manifest.pb");case 3:return n=e.sent,e.next=6,n.arrayBuffer();case 6:return r=e.sent,e.abrupt("return",L.r.decode(new Uint8Array(r)));case 10:throw e.prev=10,e.t0=e.catch(0),Object(q.b)(e.t0),new Error("Unable to fetch data.");case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}()}]),e}(),To=n(467),Eo=n(227);function Ao(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtonCount:new Map}}var Do=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 L.w({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;this.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 L.x;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}(),Ro=function(){function e(){Object(O.a)(this,e),this.widgetStates=new Do,this.clearOnSubmit=!1,this.formCleared=new Eo.Signal}return Object(w.a)(e,[{key:"hasPendingChanges",get:function(){return!this.widgetStates.isEmpty}}]),e}(),Vo=function(){function e(t){Object(O.a)(this,e),this.props=void 0,this.widgetStates=new Do,this.forms=new Map,this.formsData=void 0,this.props=t,this.formsData=Ao()}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(M.i)(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 No(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 L.s({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 L.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(No)}},{key:"setIntArrayValue",value:function(e,t,n){this.createWidgetState(e,n).intArrayValue=new L.p({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(M.i)(e)?this.syncFormsWithPendingChanges():t.fromUi&&this.sendUpdateWidgetsMessage()}},{key:"syncFormsWithPendingChanges",value:function(){var e=new Set;this.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(M.i)(e.formId)&&t.fromUi?this.getOrCreateFormState(e.formId).widgetStates:this.widgetStates).createState(e.id)}},{key:"getWidgetState",value:function(e){if(Object(M.i)(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 Ro,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=T()(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 No(e){if("number"===typeof e)return e;var t=To.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 Fo=function(){function e(){Object(O.a)(this,e),this.onSessionEvent=new Eo.Signal}return Object(w.a)(e,[{key:"handleSessionEventMsg",value:function(e){this.onSessionEvent.emit(e)}}]),e}(),Mo=function(e){Object(j.a)(n,e);var t=Object(x.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(uo.a)(co.a.mark((function e(t,n,r,o){var a,i=this;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).append("sessionId",J.a.current.sessionId),a.append("widgetId",t.id),a.append(n.name,n),this.offsetPendingRequestCount(t.formId,1),e.abrupt("return",this.request("upload_file",{cancelToken:o,method:"POST",data:a,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,o){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(M.i)(e)){var r=null!==(n=this.formsWithPendingRequests.get(e))&&void 0!==n?n:0,o=r+t;if(o<0)throw new Error("Can't offset pendingRequestCount below 0 (formId=".concat(e,", curCount=").concat(r,", offset=").concat(t,")"));var a=this.getFormIdSet();0===o?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,o);var i=this.getFormIdSet();W.a.isEqual(i,a)||this.pendingFormUploadsChanged(i)}}}]),n}(function(){function e(t,n){Object(O.a)(this,e),this.getServerUri=void 0,this.csrfEnabled=void 0,this.getServerUri=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(yt.a)(n,e),this.csrfEnabled){var r=Object(M.b)("_xsrf");null!=r&&(t.headers=Object(g.a)({"X-Xsrftoken":r},t.headers||{}),t.withCredentials=!0)}return Oo.a.request(t)}}]),e}()),Bo=n(158),zo=n.n(Bo);var Wo=/\uFE0F/g,Lo=String.fromCharCode(8205);function Uo(e){var t,n,r=function(e){var t=e.replace("-","_");if(zo.a.hasEmoji(zo.a.get(t)))return zo.a.get(t);if(zo.a.hasEmoji(e))return e;return""}(e);if(r){var o=function(e,t){for(var n=[],r=0,o=0,a=0;a<e.length;)r=e.charCodeAt(a++),o?(n.push((65536+(o-55296<<10)+(r-56320)).toString(16)),o=0):55296<=r&&r<=56319?o=r:n.push(r.toString(16));return n.join(t||"-")}((n=r).indexOf(Lo)<0?n.replace(Wo,""):n);t="https://twemoji.maxcdn.com/2/72x72/".concat(o,".png")}else t=Object(yt.b)(e);!function(e){var t=document.querySelector("link[rel='shortcut icon']");t&&(t.href=e)}(t),jn({type:"SET_PAGE_FAVICON",favicon:t})}var _o=oe()("div",{target:"eczokvf0"})((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"}}}),""),Ho="video/webm",Jo=function(){function e(t){var n=t.recordAudio;Object(O.a)(this,e),this.recordAudio=void 0,this.inputStream=void 0,this.recordedChunks=void 0,this.mediaRecorder=void 0,this.recordAudio=n,this.inputStream=null,this.recordedChunks=[],this.mediaRecorder=null}return Object(w.a)(e,[{key:"initialize",value:function(){var e=Object(uo.a)(co.a.mark((function e(){var t,n,r,o=this;return co.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:Ho}),this.mediaRecorder.ondataavailable=function(e){return o.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(){if(!this.mediaRecorder)return Object(q.d)("ScreenCastRecorder.start: mediaRecorder is null"),!1;try{this.mediaRecorder.start()}catch(e){return Object(q.d)("mediaRecorder.start threw an error: ".concat(e)),!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:Ho})}}],[{key:"isSupportedBrowser",value:function(){return null!=navigator.mediaDevices&&null!=navigator.mediaDevices.getUserMedia&&null!=navigator.mediaDevices.getDisplayMedia&&MediaRecorder.isTypeSupported(Ho)}}]),e}();var Go,qo=oe()("label",{target:"e10rcily0"})({name:"1uk1gs8",styles:"margin:0;"}),Yo=oe()("p",{target:"e10rcily1"})({name:"1uk1gs8",styles:"margin:0;"}),Xo=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={recordAudio:e.props.recordAudio},e.handleRecordAudioCheckbox=function(t){var n=t.target.checked,r=e.state.recordAudio,o=e.props.toggleRecordAudio;n!==r&&e.setState({recordAudio:n},o)},e.handleStartButton=function(){var t=e.props,n=t.startRecording,r=t.onClose;n(),r()},e.render=function(){var t=e.state.recordAudio,n=e.props.onClose;return Object(y.jsxs)(Er,{isOpen:!0,onClose:n,children:[Object(y.jsx)(Ir,{children:"Record a screencast"}),Object(y.jsxs)(Cr,{children:[Object(y.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(y.jsx)("p",{children:Object(y.jsxs)(qo,{children:[Object(y.jsx)("input",{type:"checkbox",name:"recordAudio",checked:t,onChange:e.handleRecordAudioCheckbox})," ","Also record audio"]})}),Object(y.jsxs)(Yo,{children:["Press ",Object(y.jsx)("kbd",{children:"Esc"})," any time to stop recording."]})]}),Object(y.jsx)(Pr,{children:Object(y.jsx)(Tr,{kind:un.b.PRIMARY,onClick:e.handleStartButton,children:"Start recording!"})})]})},e}return n}(r.PureComponent),Ko=oe()("video",{target:"eqto2al0"})((function(e){var t=e.theme;return{width:t.sizes.full,borderRadius:t.radii.md}}),""),Qo=oe()("div",{target:"eqto2al1"})((function(e){return{display:"flex",flexDirection:"column",width:e.theme.sizes.full}}),""),Zo=oe()("div",{target:"eqto2al2"})((function(e){var t=e.theme;return{display:"flex",flexDirection:"row",paddingTop:t.spacing.md,paddingBottom:t.spacing.md}}),""),$o=oe()("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"}}),""),ea=oe()("div",{target:"eqto2al4"})((function(e){var t=e.theme;return Object(kt.a)({flex:1,paddingRight:t.spacing.lg,marginRight:"6em"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{marginRight:t.spacing.none})}),""),ta=oe()("p",{target:"eqto2al5"})((function(e){var t=e.theme;return{marginTop:t.spacing.sm,marginBottom:t.spacing.none,fontSize:t.fontSizes.smDefault}}),""),na=oe()("div",{target:"eqto2al6"})((function(e){return{marginTop:e.theme.spacing.twoXS}}),""),ra=function(e){var t=e.onClose,n=e.videoBlob,r=e.fileName,o=URL.createObjectURL(n);return Object(y.jsxs)(Er,{isOpen:!0,onClose:t,overrides:{Dialog:{style:{width:"80vw"}}},children:[Object(y.jsx)(Ir,{children:"Next steps"}),Object(y.jsx)(Cr,{children:Object(y.jsxs)(Qo,{children:[Object(y.jsxs)(Zo,{children:[Object(y.jsx)($o,{children:"Step 1"}),Object(y.jsxs)(ea,{children:[Object(y.jsx)("p",{children:"Preview your video below:"}),Object(y.jsx)(Ko,{src:o,controls:!0})]})]}),Object(y.jsxs)(Zo,{children:[Object(y.jsx)($o,{children:"Step 2"}),Object(y.jsxs)(ea,{children:[Object(y.jsx)(na,{children:Object(y.jsx)(un.d,{kind:un.b.PRIMARY,onClick:function(){var e=document.createElement("a");e.setAttribute("href",o),e.setAttribute("download","".concat(r,".webm")),e.click(),t()},children:"Save video to disk"})}),Object(y.jsxs)(ta,{children:["This video is encoded in the"," ",Object(y.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(y.jsxs)(Zo,{children:[Object(y.jsx)($o,{children:"Step 3"}),Object(y.jsxs)(ea,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",Object(y.jsx)("span",{role:"img","aria-label":"Happy",children:"\ud83d\ude00"})]})]})]})})]})},oa=oe()("div",{target:"e189isb50"})((function(e){e.theme;return{display:"flex"}}),""),aa=oe()("div",{target:"e189isb51"})((function(e){e.theme;return{display:"flex",alignItems:"center",justifyItems:"center",marginRight:"26px",marginLeft:"10px",fontSize:"50px"}}),""),ia=oe()("p",{target:"e189isb52"})((function(e){return{margin:e.theme.spacing.none}}),""),la=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).render=function(){var t=e.props.onClose;return Object(y.jsxs)(Er,{isOpen:!0,onClose:t,children:[Object(y.jsx)(Ir,{children:"Record a screencast"}),Object(y.jsx)(Cr,{children:Object(y.jsxs)(oa,{children:[Object(y.jsx)(aa,{children:Object(y.jsx)("span",{role:"img","aria-label":"Alien Monster",children:"\ud83d\udc7e"})}),Object(y.jsx)(ia,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]})},e}return n}(r.PureComponent),sa=Object(p.keyframes)(Go||(Go=Object(er.a)(["\n0% {\n  opacity: 0;\n}\n25% {\n  opacity: 1;\n}\n100% {\n  opacity: 0;\n}"]))),ca=oe()("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(sa," 1s")}}),""),ua=function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(){var e;Object(O.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={countdown:e.props.countdown},e.onAnimationEnd=Object(uo.a)(co.a.mark((function t(){var n,r,o;return co.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.state.countdown,r=e.props.endCallback,(o=n-1)>=0&&e.setState({countdown:o}),0===o&&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(y.jsx)(ca,{onAnimationEnd:this.onAnimationEnd,children:Object(y.jsx)("span",{children:e})},"frame".concat(e))}}]),n}(r.PureComponent);ua.defaultProps={endCallback:function(){}};var da=ua;var pa=function(e){var t=function(t){Object(j.a)(r,t);var n=Object(x.a)(r);function r(){var t;Object(O.a)(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(t=n.call.apply(n,[this].concat(a))).recorder=void 0,t.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:"OFF"},t.toggleRecordAudio=function(){var e=t.state.recordAudio;t.setState({recordAudio:!e})},t.showDialog=function(e){var n=t.state.currentState;Jo.isSupportedBrowser()?"OFF"===n?t.setState({fileName:e,currentState:"SETUP"}):t.stopRecording().catch((function(e){return Object(q.d)("withScreencast.stopRecording threw an error: ".concat(e))})):t.setState({currentState:"UNSUPPORTED"})},t.startRecording=Object(uo.a)(co.a.mark((function e(){var n;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.state.recordAudio,t.recorder=new Jo({recordAudio:n}),e.prev=2,e.next=5,t.recorder.initialize();case 5:e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(2),Object(q.d)("ScreenCastRecorder.initialize error: ".concat(e.t0)),t.setState({currentState:"UNSUPPORTED"}),e.abrupt("return");case 12:t.setState({currentState:"COUNTDOWN"});case 13:case"end":return e.stop()}}),e,null,[[2,7]])}))),t.stopRecording=Object(uo.a)(co.a.mark((function e(){var n,r;return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("OFF"!==(r=t.state.currentState)&&null!=t.recorder){e.next=3;break}return e.abrupt("return");case 3:if("COUNTDOWN"===r&&t.setState({currentState:"OFF"}),"RECORDING"!==r||"inactive"===t.recorder.getState()){e.next=9;break}return e.next=7,t.recorder.stop();case 7:n=e.sent,t.setState({outputBlob:n,currentState:"PREVIEW_FILE"});case 9:case"end":return e.stop()}}),e)}))),t.onCountdownEnd=Object(uo.a)(co.a.mark((function e(){return co.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t.recorder){e.next=2;break}throw new Error("Countdown finished but recorder is null");case 2:t.recorder.start()?t.setState({currentState:"RECORDING"}):t.stopRecording().catch((function(e){return Object(q.d)("withScreencast.stopRecording threw an error: ".concat(e))}));case 4:case"end":return e.stop()}}),e)}))),t.getScreenCastProps=function(){return{currentState:t.state.currentState,toggleRecordAudio:t.toggleRecordAudio,startRecording:t.showDialog,stopRecording:t.stopRecording}},t.closeDialog=function(){t.setState({currentState:"OFF"})},t.render=function(){var n=t.state,r=n.outputBlob,o=n.fileName,a=n.recordAudio,i=n.currentState;return Object(y.jsxs)("div",{className:"withScreencast",children:[Object(y.jsx)(e,Object(g.a)({screenCast:t.getScreenCastProps()},t.props)),"UNSUPPORTED"===i&&Object(y.jsx)(la,{onClose:t.closeDialog}),"SETUP"===i&&Object(y.jsx)(Xo,{recordAudio:a,onClose:t.closeDialog,startRecording:t.startRecording,toggleRecordAudio:t.toggleRecordAudio}),"COUNTDOWN"===i&&Object(y.jsx)(da,{countdown:3,endCallback:t.onCountdownEnd}),"PREVIEW_FILE"===i&&r&&Object(y.jsx)(ra,{onClose:t.closeDialog,videoBlob:r,fileName:o})]})},t}return r}(r.PureComponent);return t.displayName="withScreencast(".concat(e.displayName||e.name,")"),vn()(t,e)},fa=(n(2571),function(e){Object(j.a)(n,e);var t=Object(x.a)(n);function n(e){var o;return Object(O.a)(this,n),(o=t.call(this,e)).sessionEventDispatcher=void 0,o.connectionManager=void 0,o.widgetMgr=void 0,o.uploadClient=void 0,o.pendingElementsBuffer=void 0,o.pendingElementsTimerRunning=void 0,o.componentRegistry=void 0,o.keyMap={RERUN:"r",CLEAR_CACHE:"c",STOP_RECORDING:{sequence:"esc",action:"keyup"}},o.keyHandlers={RERUN:function(){return o.rerunScript()},CLEAR_CACHE:function(){return o.openClearCacheDialog()},STOP_RECORDING:o.props.screenCast.stopRecording},o.showDeployError=function(e,t,n){o.openDialog({type:Kr.DEPLOY_ERROR,title:e,msg:t,onContinue:n,onClose:function(){},onTryAgain:o.sendLoadGitInfoBackMsg})},o.handleConnectionStateChanged=function(e){Object(q.c)("Connection state changed from ".concat(o.state.connectionState," to ").concat(e)),o.setState({connectionState:e}),e===Tn.CONNECTED?(Object(q.c)("Reconnected to server; Requesting a run (which may be preheated)"),o.widgetMgr.sendUpdateWidgetsMessage(),o.setState({dialog:null})):(Object(M.m)("_xsrf",""),J.a.isSet()&&J.a.clearSession())},o.handleGitInfoChanged=function(e){o.setState({gitInfo:e})},o.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",{newReport:function(e){return o.handleNewReport(e)},sessionStateChanged:function(e){return o.handleSessionStateChanged(e)},sessionEvent:function(e){return o.handleSessionEvent(e)},delta:function(t){return o.handleDeltaMsg(t,e.metadata)},pageConfigChanged:function(e){return o.handlePageConfigChanged(e)},pageInfoChanged:function(e){return o.handlePageInfoChanged(e)},gitInfoChanged:function(e){return o.handleGitInfoChanged(e)},reportFinished:function(e){return o.handleReportFinished(e)},uploadReportProgress:function(e){return o.handleUploadReportProgress(e)},reportUploaded:function(e){return o.handleReportUploaded(e)}})}catch(t){Object(q.b)(t),o.showError("Bad message format",t.message)}},o.handleUploadReportProgress=function(e){var t={type:Kr.UPLOAD_PROGRESS,progress:e,onClose:function(){}};o.openDialog(t)},o.handleReportUploaded=function(e){var t={type:Kr.UPLOADED,url:e,onClose:function(){}};o.openDialog(t)},o.handlePageConfigChanged=function(e){var t=e.title,n=e.favicon,r=e.layout,a=e.initialSidebarState;t&&(o.props.s4aCommunication.sendMessage({type:"SET_PAGE_TITLE",title:t}),document.title=t),n&&Uo(n),r!==o.state.layout&&o.setState((function(e){return{layout:r,userSettings:Object(g.a)(Object(g.a)({},e.userSettings),{},{wideMode:r===L.o.Layout.WIDE})}})),a!==o.state.initialSidebarState&&o.setState((function(){return{initialSidebarState:a}}))},o.handlePageInfoChanged=function(e){var t=e.queryString,n=document.location.pathname+(t?"?".concat(t):"");window.history.pushState({},"",n),o.props.s4aCommunication.sendMessage({type:"SET_QUERY_PARAM",queryParams:t?"?".concat(t):""})},o.handleSessionStateChanged=function(e){o.setState((function(t){var n=t.reportRunState,r=t.dialog;if(e.reportIsRunning&&t.reportRunState!==F.a.STOP_REQUESTED)n=F.a.RUNNING,null!=r&&r.type===Kr.SCRIPT_COMPILE_ERROR&&(r=void 0);else if(!e.reportIsRunning&&t.reportRunState!==F.a.RERUN_REQUESTED&&t.reportRunState!==F.a.COMPILATION_ERROR){n=F.a.NOT_RUNNING,Y.current.enqueue("deltaStats",Y.current.getAndResetDeltaCounter());var a=o.props.theme,i=a.availableThemes,l=a.activeTheme,s=i.length>Object(m.createPresetThemes)().length;Y.current.enqueue("themeStats",{activeThemeName:l.name,customThemeDefined:s});var c=Y.current.getAndResetCustomComponentCounter();Object.entries(c).forEach((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];Y.current.enqueue("customComponentStats",{name:n,count:r})}))}return{userSettings:Object(g.a)(Object(g.a)({},t.userSettings),{},{runOnSave:Boolean(e.runOnSave)}),dialog:r,reportRunState:n}}))},o.handleSessionEvent=function(e){if(o.sessionEventDispatcher.handleSessionEventMsg(e),"scriptCompilationException"===e.type){o.setState({reportRunState:F.a.COMPILATION_ERROR});var t={type:Kr.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:function(){}};o.openDialog(t)}else if(G.d&&"reportChangedOnDisk"===e.type){var n={type:Kr.SCRIPT_CHANGED,onRerun:o.rerunScript,onClose:function(){},allowRunOnSave:o.state.allowRunOnSave};o.openDialog(n)}},o.handleNewReport=function(e){var t=e.initialize,r=e.config,a=e.customTheme;if(n.hasStreamlitVersionChanged(t))window.location.reload();else{J.a.isSet()||o.handleOneTimeInitialization(e),o.processThemeInput(a),o.setState({sharingEnabled:r.sharingEnabled,allowRunOnSave:r.allowRunOnSave});var i=o.state.reportHash,l=e.reportId,s=e.name,c=e.scriptPath,u=Object(M.d)(J.a.current.installationId+c);document.title="".concat(s," \xb7 Streamlit"),Uo("".concat(".","/favicon.png")),Y.current.setMetadata(o.props.s4aCommunication.currentState.streamlitShareMetadata),Y.current.setReportHash(u),Y.current.clearDeltaCounter(),Y.current.enqueue("updateReport"),i===u?o.setState({reportId:l}):o.clearAppState(u,l,s)}},o.handleOneTimeInitialization=function(e){var t=e.initialize,n=e.config;J.a.current=J.a.fromNewReportMessage(e),Y.current.initialize({gatherUsageStats:n.gatherUsageStats}),Y.current.enqueue("createReport",{pythonVersion:J.a.current.pythonVersion}),o.props.s4aCommunication.connect(),o.handleSessionStateChanged(t.sessionState)},o.createThemeHash=function(e){if(!e)return"hash_for_undefined_custom_theme";var t=Object.entries(e);return t.sort(),Object(M.d)(t.join(":"))},o.closeDialog=function(){o.setState({dialog:void 0}),o.props.s4aCommunication.onModalReset()},o.saveSettings=function(e){var t=o.state.userSettings.runOnSave,n=e.runOnSave;if(o.setState({userSettings:e}),t!==n&&o.isServerConnected()){var r=new L.c({setRunOnSave:n});r.type="setRunOnSave",o.sendBackMsg(r)}},o.handleDeltaMsg=function(e,t){if(o.pendingElementsBuffer=o.pendingElementsBuffer.applyDelta(o.state.reportId,e,t),!o.pendingElementsTimerRunning){o.pendingElementsTimerRunning=!0;var n=!!o.connectionManager&&o.connectionManager.isStaticConnection(),r=o.state.reportRunState===F.a.RUNNING;setTimeout((function(){o.pendingElementsTimerRunning=!1,(n||r)&&o.setState({elements:o.pendingElementsBuffer})}),10)}},o.shareReport=function(){if(o.isServerConnected())if(o.state.sharingEnabled){Y.current.enqueue("shareReport");var e=new L.c({cloudUpload:!0});e.type="cloudUpload",o.sendBackMsg(e)}else{var t={type:Kr.WARNING,title:"Error sharing app",msg:Object(y.jsxs)(r.Fragment,{children:[Object(y.jsx)("div",{children:"You do not have sharing configured."}),Object(y.jsxs)("div",{children:["Please contact"," ",Object(y.jsx)("a",{href:"mailto:hello@streamlit.io",children:"Streamlit Support"})," to setup sharing."]})]}),onClose:function(){}};o.openDialog(t)}else Object(q.b)("Cannot save app when disconnected from server")},o.rerunScript=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.closeDialog(),o.isServerConnected()?o.state.reportRunState!==F.a.RUNNING&&o.state.reportRunState!==F.a.RERUN_REQUESTED&&(Y.current.enqueue("rerunScript"),o.setState({reportRunState:F.a.RERUN_REQUESTED}),!0===e&&o.saveSettings(Object(g.a)(Object(g.a)({},o.state.userSettings),{},{runOnSave:!0})),o.widgetMgr.sendUpdateWidgetsMessage()):Object(q.b)("Cannot rerun script when disconnected from server.")},o.sendLoadGitInfoBackMsg=function(){o.isServerConnected()?o.sendBackMsg(new L.c({loadGitInfo:!0})):Object(q.b)("Cannot load git information when disconnected from server.")},o.sendRerunBackMsg=function(e){var t=o.props.s4aCommunication.currentState.queryParams,n=t&&t.length>0?t:document.location.search;n.startsWith("?")&&(n=n.substring(1)),o.sendBackMsg(new L.c({rerunScript:{queryString:n,widgetStates:e}}))},o.stopReport=function(){if(o.isServerConnected()){if(o.state.reportRunState!==F.a.NOT_RUNNING&&o.state.reportRunState!==F.a.STOP_REQUESTED){var e=new L.c({stopReport:!0});e.type="stopReport",o.sendBackMsg(e),o.setState({reportRunState:F.a.STOP_REQUESTED})}}else Object(q.b)("Cannot stop app when disconnected from server.")},o.openClearCacheDialog=function(){if(o.isServerConnected()){var e={type:Kr.CLEAR_CACHE,confirmCallback:o.clearCache,defaultAction:o.clearCache,onClose:function(){}};o.openDialog(e)}else Object(q.b)("Cannot clear cache: disconnected from server")},o.openThemeCreatorDialog=function(){var e={type:Kr.THEME_CREATOR,backToSettings:o.settingsCallback,onClose:o.closeDialog};o.openDialog(e)},o.clearCache=function(){if(o.closeDialog(),o.isServerConnected()){Y.current.enqueue("clearCache");var e=new L.c({clearCache:!0});e.type="clearCache",o.sendBackMsg(e)}else Object(q.b)("Cannot clear cache: disconnected from server")},o.sendBackMsg=function(e){o.connectionManager?(Object(q.c)(e),o.connectionManager.sendMessage(e)):Object(q.b)("Not connected. Cannot send back message: ".concat(e))},o.handleConnectionError=function(e){o.showError("Connection error",e)},o.isServerConnected=function(){return!!o.connectionManager&&o.connectionManager.isConnected()},o.settingsCallback=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={type:Kr.SETTINGS,isServerConnected:o.isServerConnected(),settings:o.state.userSettings,allowRunOnSave:o.state.allowRunOnSave,onSave:o.saveSettings,onClose:function(){},developerMode:o.state.developerMode,openThemeCreator:o.openThemeCreatorDialog,animateModal:e};o.openDialog(t)},o.aboutCallback=function(){var e={type:Kr.ABOUT,onClose:o.closeDialog};o.openDialog(e)},o.screencastCallback=function(){var e=o.state.reportName,t=o.props.screenCast.startRecording,n=k()().format("YYYY-MM-DD-HH-MM-SS");t("streamlit-".concat(e,"-").concat(n))},o.handleFullScreen=function(e){o.setState({isFullScreen:e})},o.addReportFinishedHandler=function(e){o.setState({reportFinishedHandlers:Object(z.concat)(o.state.reportFinishedHandlers,e)})},o.removeReportFinishedHandler=function(e){o.setState({reportFinishedHandlers:Object(z.without)(o.state.reportFinishedHandlers,e)})},Object(P.enableAllPlugins)(),o.state={connectionState:Tn.INITIAL,elements:Z.empty("Please wait..."),isFullScreen:!1,reportName:"",reportId:"<null>",reportHash:null,reportRunState:F.a.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:L.o.Layout.CENTERED,initialSidebarState:L.o.SidebarState.AUTO,allowRunOnSave:!0,reportFinishedHandlers:[],developerMode:window.location.host.includes("localhost"),themeHash:null,gitInfo:null,formsData:Ao()},o.sessionEventDispatcher=new Fo,o.connectionManager=null,o.widgetMgr=new Vo({sendRerunBackMsg:o.sendRerunBackMsg,formsDataChanged:function(e){return o.setState({formsData:e})}}),o.uploadClient=new Mo({getServerUri:function(){return o.connectionManager?o.connectionManager.getBaseUriParts():void 0},formsWithPendingRequestsChanged:function(e){return o.widgetMgr.setFormsWithUploads(e)},csrfEnabled:!0}),o.componentRegistry=new bt((function(){return o.connectionManager?o.connectionManager.getBaseUriParts():void 0})),o.pendingElementsTimerRunning=!1,o.pendingElementsBuffer=o.state.elements,window.streamlitDebug={},window.streamlitDebug.closeConnection=o.closeConnection.bind(Object(v.a)(o)),o}return Object(w.a)(n,[{key:"componentDidMount",value:function(){this.connectionManager=new Po({onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged}),Object(M.e)()&&document.body.classList.add("embedded"),Y.current.enqueue("viewReport")}},{key:"componentDidUpdate",value:function(e){e.s4aCommunication.currentState.queryParams!==this.props.s4aCommunication.currentState.queryParams&&this.sendRerunBackMsg(),this.props.s4aCommunication.currentState.forcedModalClose&&this.closeDialog()}},{key:"showError",value:function(e,t){Object(q.b)(t);var n={type:Kr.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(m.isPresetTheme)(this.props.theme.activeTheme);if(e){var r=Object(m.createTheme)(m.CUSTOM_THEME_NAME,e);this.props.theme.addThemes([r]),(null===Object(m.getCachedTheme)()||n)&&this.props.theme.setTheme(r)}else e||(this.props.theme.addThemes([]),n&&this.props.theme.setTheme(Object(m.createAutoTheme)()))}}},{key:"handleReportFinished",value:function(e){var t=this;if(e===L.i.ReportFinishedStatus.FINISHED_SUCCESSFULLY){window.setTimeout((function(){t.state.reportFinishedHandlers.map((function(e){return e()}))}),0),this.setState((function(e){var n=e.reportId;return{elements:t.pendingElementsBuffer.clearStaleNodes(n)}}),(function(){t.pendingElementsBuffer=t.state.elements}));var n=new Set(Array.from(this.state.elements.getElements()).map((function(e){return Object(M.c)(e)})).filter(M.l));this.widgetMgr.removeInactive(n),null!==this.connectionManager&&this.connectionManager.incrementMessageCacheRunCount(J.a.current.maxCachedMessageAge)}}},{key:"clearAppState",value:function(e,t,n){var r=this;this.setState({reportId:t,reportName:n,reportHash:e,elements:Z.empty()},(function(){r.pendingElementsBuffer=r.state.elements,r.widgetMgr.removeInactive(Object(C.fromJS)([]))}))}},{key:"openDialog",value:function(e){this.setState({dialog:e})}},{key:"closeConnection",value:function(){if(this.isServerConnected()){var e=new L.c({closeConnection:!0});e.type="closeConnection",this.sendBackMsg(e)}}},{key:"render",value:function(){var e,t=this.state,n=t.allowRunOnSave,r=t.connectionState,o=t.dialog,a=t.elements,i=t.initialSidebarState,l=t.isFullScreen,s=t.layout,c=t.reportId,u=t.reportRunState,d=t.sharingEnabled,p=t.userSettings,f=t.gitInfo,h=A()("stApp",{"streamlit-embedded":Object(M.e)(),"streamlit-wide":p.wideMode}),m=o?lo(Object(g.a)(Object(g.a)({},o),{},{onClose:this.closeDialog})):null;return Object(y.jsx)(D.a.Provider,{value:{initialSidebarState:i,layout:s,wideMode:p.wideMode,embedded:Object(M.e)(),isFullScreen:l,setFullScreen:this.handleFullScreen,addReportFinishedHandler:this.addReportFinishedHandler,removeReportFinishedHandler:this.removeReportFinishedHandler,activeTheme:this.props.theme.activeTheme,availableThemes:this.props.theme.availableThemes,setTheme:this.props.theme.setTheme,addThemes:this.props.theme.addThemes},children:Object(y.jsx)(I.HotKeys,{keyMap:this.keyMap,handlers:this.keyHandlers,attach:window,focused:!0,children:Object(y.jsxs)(_o,{className:h,children:[Object(y.jsxs)(br,{children:[Object(y.jsx)(_n,{connectionState:r,sessionEventDispatcher:this.sessionEventDispatcher,reportRunState:u,rerunReport:this.rerunScript,stopReport:this.stopReport,allowRunOnSave:n}),Object(y.jsx)(fr,{sharingEnabled:!0===d,isServerConnected:this.isServerConnected(),shareCallback:this.shareReport,quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,s4aMenuItems:this.props.s4aCommunication.currentState.items,sendS4AMessage:this.props.s4aCommunication.sendMessage,gitInfo:f,showDeployError:this.showDeployError,closeDialog:this.closeDialog,isDeployErrorModalOpen:(null===(e=this.state.dialog)||void 0===e?void 0:e.type)===Kr.DEPLOY_ERROR,loadGitInfo:this.sendLoadGitInfoBackMsg,canDeploy:J.a.isSet()&&!J.a.isHello})]}),Object(y.jsx)(En,{elements:a,reportId:c,reportRunState:u,showStaleElementIndicator:r!==Tn.STATIC,widgetMgr:this.widgetMgr,widgetsDisabled:r!==Tn.CONNECTED,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData}),m]})})})}}],[{key:"hasStreamlitVersionChanged",value:function(e){if(J.a.isSet()){var t=J.a.current.streamlitVersion,n=e.environmentInfo;if(null!=n&&null!=n.streamlitVersion)return t<n.streamlitVersion}return!1}}]),n}(r.PureComponent));fa.contextType=D.a;var ha=xn(pa(fa)),ma=function(){var e=Object(m.getDefaultTheme)(),t=o.a.useState(e),n=Object(u.a)(t,2),r=n[0],a=n[1],i=o.a.useState([].concat(Object(c.a)(Object(m.createPresetThemes)()),Object(c.a)(Object(m.isPresetTheme)(e)?[]:[e]))),l=Object(u.a)(i,2),s=l[0],f=l[1],h=function(e){e!==r&&(a(e),e.name===m.AUTO_THEME_NAME?Object(m.removeCachedTheme)():Object(m.setCachedTheme)(e))},g=function(){r.name===m.AUTO_THEME_NAME&&h(Object(m.createAutoTheme)());var e=s.filter((function(e){return e.name!==m.AUTO_THEME_NAME}));f([Object(m.createAutoTheme)()].concat(Object(c.a)(e)))};return o.a.useEffect((function(){var e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",g),function(){return e.removeEventListener("change",g)}}),[r,s]),Object(y.jsx)(d.a,{theme:r.baseweb,zIndex:r.emotion.zIndices.popupMenu,children:Object(y.jsxs)(b,{theme:r.emotion,baseuiTheme:r.basewebTheme,children:[Object(y.jsx)(p.Global,{styles:m.globalStyles}),")",Object(y.jsx)(ha,{theme:{setTheme:h,activeTheme:r,addThemes:function(e){f([].concat(Object(c.a)(Object(m.createPresetThemes)()),Object(c.a)(e)))},availableThemes:s}})]})})},ya=new l.Client({prefix:"st-"});i.a.render(Object(y.jsx)(s.Provider,{value:ya,children:Object(y.jsx)(ma,{})}),document.getElementById("root"))},27:function(e,t,n){"use strict";var r=n(150);n.d(t,"lightBaseUITheme",(function(){return r.b}));var o=n(348);n.d(t,"globalStyles",(function(){return o.a}));var a=n(349);n.o(a,"AUTO_THEME_NAME")&&n.d(t,"AUTO_THEME_NAME",(function(){return a.AUTO_THEME_NAME})),n.o(a,"CUSTOM_THEME_NAME")&&n.d(t,"CUSTOM_THEME_NAME",(function(){return a.CUSTOM_THEME_NAME})),n.o(a,"baseTheme")&&n.d(t,"baseTheme",(function(){return a.baseTheme})),n.o(a,"computeSpacingStyle")&&n.d(t,"computeSpacingStyle",(function(){return a.computeSpacingStyle})),n.o(a,"createAutoTheme")&&n.d(t,"createAutoTheme",(function(){return a.createAutoTheme})),n.o(a,"createPresetThemes")&&n.d(t,"createPresetThemes",(function(){return a.createPresetThemes})),n.o(a,"createTheme")&&n.d(t,"createTheme",(function(){return a.createTheme})),n.o(a,"darkTheme")&&n.d(t,"darkTheme",(function(){return a.darkTheme})),n.o(a,"fontEnumToString")&&n.d(t,"fontEnumToString",(function(){return a.fontEnumToString})),n.o(a,"getCachedTheme")&&n.d(t,"getCachedTheme",(function(){return a.getCachedTheme})),n.o(a,"getDefaultTheme")&&n.d(t,"getDefaultTheme",(function(){return a.getDefaultTheme})),n.o(a,"isPresetTheme")&&n.d(t,"isPresetTheme",(function(){return a.isPresetTheme})),n.o(a,"lightTheme")&&n.d(t,"lightTheme",(function(){return a.lightTheme})),n.o(a,"removeCachedTheme")&&n.d(t,"removeCachedTheme",(function(){return a.removeCachedTheme})),n.o(a,"setCachedTheme")&&n.d(t,"setCachedTheme",(function(){return a.setCachedTheme})),n.o(a,"toThemeInput")&&n.d(t,"toThemeInput",(function(){return a.toThemeInput}));var i=n(73);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,"fontEnumToString",(function(){return i.g})),n.d(t,"getCachedTheme",(function(){return i.h})),n.d(t,"getDefaultTheme",(function(){return i.i})),n.d(t,"isPresetTheme",(function(){return i.k})),n.d(t,"removeCachedTheme",(function(){return i.l})),n.d(t,"setCachedTheme",(function(){return i.m})),n.d(t,"toThemeInput",(function(){return i.n}));var l=n(350);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}))},297:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts","allow-downloads"].join(" "),o=["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-tracking"].join("; ")},309:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r,o=n(13),a=n.n(o);!function(e){e.DANGER="danger"}(r||(r={}));var i=a()("small",{target:"euu6i2w0"})((function(e){var t=e.kind,n=e.theme,o=n.colors,a=o.danger,i=o.fadedText60;return{color:t===r.DANGER?a:i,fontSize:n.fontSizes.smDefault,lineHeight:"1.25"}}),"")},312:function(e,t,n){"use strict";n.d(t,"b",(function(){return w}));var r=n(22),o=n(6),a=n(9),i=n(7),l=n(8),s=n(0),c=n.n(s),u=n(2595),d=n(21),p=n(147),f=n(302),h=n(35),m=n.n(h),y=n(70),b=n(138),g=n(137),O=n(5);function w(e,t){return t?m()(e).filter((function(e){return Object(f.hasMatch)(t,e.label)})).sortBy((function(e){return Object(f.score)(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(o.a)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;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.render=function(){var t={width:e.props.width},n=e.props,r=n.label,o=n.help,a=e.props,i=a.disabled,l=a.options,s=[{label:l.length>0?l[e.state.value]:"No options to select.",value:e.state.value.toString()}];e.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:t,children:[Object(O.jsxs)(g.b,{children:[r,o&&Object(O.jsx)(g.c,{children:Object(O.jsx)(b.a,{content:o,placement:y.a.TOP_RIGHT})})]}),Object(O.jsx)(u.a,{clearable:!1,disabled:i,labelKey:"label",onChange:e.onChange,onInputChange:e.onInputChange,onClose:e.onClose,options:c,filterOptions:e.filterOptions,value:s,valueKey:"value",overrides:{Dropdown:{component:p.a}}})]})},e}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.state.value!==this.props.value&&this.setState({value:this.props.value})}}]),n}(c.a.PureComponent);t.a=v},315:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r}));n(0);var r,o=n(39),a=n(2616),i=n(18),l=n(5);!function(e){e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(r||(r={}));var s=function(e){var t=e.value,n=e.width,s=e.size,c=void 0===s?r.MEDIUM:s,u=e.overrides,d=Object(o.useTheme)(),p={sm:d.fontSizes.smDefault,md:d.spacing.lg,lg:d.spacing.xl,xl:d.spacing.twoXL},f={BarContainer:{style:{marginTop:d.spacing.none,marginBottom:d.spacing.none,marginRight:d.spacing.none,marginLeft:d.spacing.none}},Bar:{style:function(e){var t=e.$theme;return{width:n,marginTop:d.spacing.none,marginBottom:d.spacing.none,marginRight:d.spacing.none,marginLeft:d.spacing.none,height:p[c],backgroundColor:t.colors.progressbarTrackFill}}},BarProgress:{style:{backgroundColor:d.colors.blue}}};return Object(l.jsx)(a.a,{value:t,overrides:Object(i.e)(f,u)})}},32:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return x}));n(0);var r,o,a=n(24),i=n(11),l=n(13),s=n.n(l),c=n(33);!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.LINK="link",e.ICON="icon",e.MINIMAL="minimal",e.FORM_SUBMIT="formSubmit"}(r||(r={})),function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(o||(o={}));var u=s()("button",{target:"edgvbvh0"})((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","&:focus":{boxShadow:"0 0 0 0.2rem ".concat(Object(c.transparentize)(r.colors.primary,.5)),outline:"none"}},function(e,t){switch(e){case o.XSMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.sm),fontSize:t.fontSizes.smDefault};case o.SMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.md)};case o.LARGE:return{padding:"".concat(t.spacing.md," ").concat(t.spacing.md)};default:return{padding:"".concat(t.spacing.xs," ").concat(t.spacing.md)}}}(n,r))}),""),d=s()(u,{target:"edgvbvh1"})((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":{color:t.colors.fadedText40}}}),""),p=s()(u,{target:"edgvbvh2"})((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=s()(u,{target:"edgvbvh3"})((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=s()(u,{target:"edgvbvh4"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"none",boxShadow:"none",padding:0,"&:hover, &:active, &:focus":{color:t.colors.primary}}}),""),m=s()(d,{target:"edgvbvh5"})(""),y=s()(u,{target:"edgvbvh6"})((function(e){var t,n=e.size,r=e.theme,i=(t={},Object(a.a)(t,o.XSMALL,r.spacing.threeXS),Object(a.a)(t,o.SMALL,r.spacing.twoXS),Object(a.a)(t,o.MEDIUM,r.spacing.md),Object(a.a)(t,o.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},"&:focus:not(:active)":{borderColor:r.colors.primary,color:r.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:r.colors.lightGray,borderColor:r.colors.transparent,color:r.colors.gray}}}),""),b=s()("div",{target:"edgvbvh7"})((function(e){var t=e.theme;return Object(a.a)({display:"block"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"none"})}),""),g=s()("div",{target:"edgvbvh8"})((function(e){var t=e.theme;return Object(a.a)({display:"none"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"block"})}),""),O=n(5);var w=function(e){var t=e.kind,n=e.size,a=e.disabled,i=e.onClick,l=e.fluidWidth,s=e.children,c=e.autoFocus,u=d;return t===r.SECONDARY?u=p:t===r.LINK?u=f:t===r.ICON?u=y:t===r.MINIMAL?u=h:t===r.FORM_SUBMIT&&(u=m),Object(O.jsx)(u,{kind:t,size:n||o.MEDIUM,fluidWidth:l||!1,disabled:a||!1,onClick:i||function(){},autoFocus:c||!1,children:s})},v=n(138),j=n(70);function x(e){var t=e.children,n=e.help;return n?Object(O.jsxs)("div",{className:"stTooltipIcon",children:[Object(O.jsx)(b,{children:Object(O.jsx)(v.a,{content:n,placement:j.a.TOP,children:t})}),Object(O.jsx)(g,{children:t})]}):t}},348:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(92),o=n(33),a=function(e){return Object(r.css)("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.smDefault,";line-height:inherit;margin:0;padding:0;white-space:pre;word-break:normal;word-wrap:normal;overflow-x:auto;color:",e.colors.codeTextColor,";}}.disabled{color:",e.colors.disabled,";}#vg-tooltip-element td{border:none;}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(o.transparentize)(e.colors.black,1),';}[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-weight:700;font-family:",e.genericFonts.headingFont,";font-weight:700;color:",e.colors.headingColor,";margin:1.5rem 0 0.5rem 0;padding:0.5em 0 0.25em;line-height:1;}h2{font-family:",e.genericFonts.headingFont,";font-weight:400;color:",e.colors.headingColor,";margin:1.5rem 0 0.5rem 0;padding:0.5em 0 0.25em;line-height:1;}h3{font-family:",e.genericFonts.headingFont,";font-weight:500;color:",e.colors.headingColor,";margin:1.5rem 0 0.5rem 0;padding:0.5em 0 0.25em;line-height:1;}h4{font-family:",e.genericFonts.headingFont,";font-weight:600;color:",e.colors.headingColor,";margin:1rem 0 0 0;padding:0.5em 0 0.25em;line-height:1;}h5{font-family:",e.genericFonts.headingFont,";font-weight:900;color:",e.colors.headingColor,";margin:1rem 0 0 0;padding:0.5em 0 0.25em;line-height:1;}h6{font-family:",e.genericFonts.headingFont,";font-weight:300;color:",e.colors.headingColor,";margin:1rem 0 0 0;padding:0.5em 0 0.25em;line-height:1;}h1:first-of-type,h2:first-of-type,h3:first-of-type{margin-top:0.5rem;}h4:first-of-type,h5:first-of-type,h6:first-of-type{margin-top:0;}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(o.darken)(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(o.readableColor)(e.colors.bgColor),";-ms-overflow-style:scrollbar;code{color:inherit;word-break:normal;}}code{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,";kbd{padding:0;font-weight:",e.fontWeights.bold,";}}figure{margin:0 0 1rem;}img,svg{vertical-align:middle;}table{caption-side:bottom;border-collapse:collapse;}caption{padding-top:",e.spacing.sm,";padding-bottom:",e.spacing.sm,";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:hover{background:',e.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",e.colors.fadedText40,";border-radius:100px;}")}},349:function(e,t){},350: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 m})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return b}));var r=n(11),o=n(306),a=n(305),i=n(2596),l=n(471),s=n(150),c=n(99),u=n(229),d=n(230),p=n(73),f={name:"base",emotion:c.a,baseweb:o.a,basewebTheme:s.b,primitives:a.a},h={name:"Dark",emotion:d.a,baseweb:i.a,basewebTheme:s.a,primitives:l.a},m={name:"Light",emotion:u.a,baseweb:o.a,basewebTheme:s.b,primitives:a.a},y=function(){return Object(r.a)(Object(r.a)({},Object(p.j)()),{},{name:p.a})},b=function(){return[y(),m,h]}},40:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(6),o=n(9),a=function(){function e(t){var n=t.sessionId,o=t.streamlitVersion,a=t.pythonVersion,i=t.installationId,l=t.installationIdV1,s=t.installationIdV2,c=t.installationIdV3,u=t.authorEmail,d=t.maxCachedMessageAge,p=t.commandLine,f=t.userMapboxToken;if(Object(r.a)(this,e),this.sessionId=void 0,this.streamlitVersion=void 0,this.pythonVersion=void 0,this.installationId=void 0,this.installationIdV1=void 0,this.installationIdV2=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==o||null==a||null==i||null==l||null==s||null==c||null==u||null==d||null==p||null==f)throw new Error("SessionInfo arguments must be non-null");this.sessionId=n,this.streamlitVersion=o,this.pythonVersion=a,this.installationId=i,this.installationIdV1=l,this.installationIdV2=s,this.installationIdV3=c,this.authorEmail=u,this.maxCachedMessageAge=d,this.commandLine=p,this.userMapboxToken=f}return Object(o.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:"fromNewReportMessage",value:function(t){var n=t.initialize,r=t.config,o=n.userInfo,a=n.environmentInfo;return new e({sessionId:n.sessionId,streamlitVersion:a.streamlitVersion,pythonVersion:a.pythonVersion,installationId:o.installationId,installationIdV1:o.installationIdV1,installationIdV2:o.installationIdV2,installationIdV3:o.installationIdV3,authorEmail:o.email,maxCachedMessageAge:r.maxCachedMessageAge,commandLine:n.commandLine,userMapboxToken:r.mapboxToken})}}]),e}();a.singleton=void 0},41: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={}))},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"l",(function(){return y})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return g})),n.d(t,"b",(function(){return O})),n.d(t,"m",(function(){return w})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return x}));var r=n(20),o=n(35),a=n.n(o),i=n(117),l=n.n(i),s=n(450),c=n.n(s);function u(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];n&&clearTimeout(n),n=setTimeout((function(){t.apply(void 0,o),n=null}),e)}}function d(){return"true"===l.a.parse(window.location.href,!0).query.embed}function p(e){return new r.g({alert:{body:e,format:r.a.Format.INFO}})}function f(e){return new r.g({alert:{body:e,format:r.a.Format.ERROR}})}function h(e){return c.a.h32(e,3735928559).toString(16)}function m(e){if(null==e)throw new Error("value is null");return e}function y(e){return void 0!==e}function b(){return/Mac/i.test(navigator.platform)}function g(){return/^Win/i.test(navigator.platform)}function O(e){var t=document.cookie.match("\\b".concat(e,"=([^;]*)\\b"));return t?t[1]:void 0}function w(e,t,n){var r=t?n:new Date,o=r?"expires=".concat(r.toUTCString(),";"):"";document.cookie="".concat(e,"=").concat(t,";").concat(o,"path=/")}function v(e){return a.a.get(e,[m(e.type),"id"])}function j(e){return null!=e&&e.length>0}function x(e){return j(e.formId)}},52:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c}));var r=n(117),o=n.n(r),a=8501,i=3e3===+window.location.port,l=null!=o.a.parse(window.location.href,!0).query.id,s={redirect:"follow",credentials:"same-origin",mode:"cors"},c=!1},53:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return r}));n(0);var r,o=n(39),a=n(50),i=n(2615),l=n(13),s=n.n(l)()("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"}}}),""),c=n(5);function u(e,t){var n="1px solid ";switch(e){case r.ERROR:return n+t.colors.alertErrorBorderColor;case r.INFO:return n+t.colors.alertInfoBorderColor;case r.SUCCESS:return n+t.colors.alertSuccessBorderColor;case r.WARNING:return n+t.colors.alertWarningBorderColor;default:throw new Error("Unexpected alert type: ".concat(e))}}function d(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 p(e){var t=e.kind,n=e.width,r=e.children,a=Object(o.useTheme)();return Object(c.jsx)(i.a,{kind:d(t),overrides:{Body:{style:{marginTop:0,marginBottom:0,width:n,border:u(t,a)}},InnerContainer:{style:{width:"100%"}}},children:Object(c.jsx)(s,{children:r})})}!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(r||(r={}))},60:function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(20),i=n(27);t.a=o.a.createContext({wideMode:!1,layout:a.o.Layout.CENTERED,initialSidebarState:a.o.SidebarState.AUTO,embedded:!1,isFullScreen:!1,setFullScreen:function(e){},addReportFinishedHandler:function(e){},removeReportFinishedHandler:function(e){},activeTheme:i.baseTheme,setTheme:function(e){},availableThemes:[],addThemes:function(e){}})},64:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return l}));var r=n(132);function o(e,t){var n=e.toObject(t,{defaults:!0,oneofs:!0});return Object(r.fromJS)(n)}function a(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,'".'))}},663:function(e,t){},665:function(e,t){},70:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r}));n(0);var r,o=n(39),a=n(2614),i=n(36),l=n(5);!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"}(r||(r={}));var s=function(e){var t=e.content,n=e.placement,r=e.children,s=e.inline,c=Object(o.useTheme)().colors;return Object(l.jsx)(a.a,{content:t,placement:i.f[n],accessibilityType:i.a.tooltip,showArrow:!0,popoverMargin:10,overrides:{Arrow:{style:{backgroundColor:c.secondaryBg,border:"1px solid ".concat(c.fadedText10)}},Body:{style:{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem",borderBottomLeftRadius:"0.25rem",borderBottomRightRadius:"0.25rem",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",border:"1px solid ".concat(c.fadedText10),backgroundColor:c.fadedText10}},Inner:{style:{backgroundColor:c.secondaryBg,color:c.bodyText,fontSize:"0.875rem",fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:Object(l.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:s?"flex-end":""},"data-testid":"tooltipHoverTarget",children:r})})}},71:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n(0);var r=n(13),o=n.n(r),a=n(225),i=n.n(a),l=n(27),s=o()("span",{shouldForwardProp:function(e){return i()(e)&&!["size","as"].includes(e)},target:"e1fb0mya0"})((function(e){var t=e.color,n=e.size,r=e.margin,o=e.padding,a=e.theme;return{color:a.colors[t],fill:"currentColor",display:"inline-flex",fontSize:a.iconSizes[n],width:a.iconSizes[n],height:a.iconSizes[n],margin:Object(l.computeSpacingStyle)(r,a),padding:Object(l.computeSpacingStyle)(o,a)}}),""),c=n(5),u=function(e){var t=e.content,n=e.color,r=e.size,o=e.margin,a=e.padding;return Object(c.jsx)(s,{as:t,size:r||"md",color:n||"inherit",margin:o||"",padding:a||"","aria-hidden":"true"})}},73:function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return S})),n.d(t,"k",(function(){return k})),n.d(t,"g",(function(){return C})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return A})),n.d(t,"n",(function(){return V})),n.d(t,"f",(function(){return F})),n.d(t,"j",(function(){return M})),n.d(t,"h",(function(){return z})),n.d(t,"m",(function(){return W})),n.d(t,"l",(function(){return L})),n.d(t,"i",(function(){return U})),n.d(t,"c",(function(){return H}));var r=n(22),o=n(59),a=n(11),i=n(305),l=n(2608),s=n(33),c=n(216),u=n.n(c),d=n(448),p=n.n(d),f=n(296),h=n.n(f),m=n(56),y=n.n(m),b=n(20),g=n(21),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(27),j=n(89),x="Use system setting",S="Custom Theme",k=function(e){return Object(v.createPresetThemes)().map((function(e){return e.name})).includes(e.name)},I=function(e){var t=Object.keys(j.c).find((function(t){return j.c[t]===e})),n=b.e.FontFamily.SANS_SERIF;if(t){var r=p()(t).toUpperCase();return r in b.e.FontFamily?b.e.FontFamily[r]:n}return n},C=function(e){return null!==e&&void 0!==e&&e in b.e.FontFamily?j.c[u()(b.e.FontFamily[e].toString())]:void 0},P=function(e,t){var n=t.colors,r=t.genericFonts;return Object(a.a)(Object(a.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.gray,mono700:n.gray,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black,rating200:"#FFE1A5",rating400:"#FFC043"})},T=function(e){var t=e.inSidebar,n=e.colors,r=e.genericFonts,o=e.fontSizes,i=e.lineHeights,l=e.radii,c={fontFamily:r.bodyFont,fontSize:o.md,fontSizeSm:o.smDefault,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(a.a)({},c),font200:{},font250:{},font300:Object(a.a)({},c),font350:Object(a.a)({},c),font400:Object(a.a)({},c),font450:Object(a.a)({},c),font460:Object(a.a)({},c),font470:Object(a.a)({},c),font500:Object(a.a)({},c),font600:{},LabelXSmall:Object(a.a)({},c),LabelSmall:Object(a.a)({},c),LabelMedium:Object(a.a)({},c),LabelLarge:Object(a.a)({},c),ParagraphSmall:Object(a.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.transparentDarkenedBgMix60,accent:Object(s.transparentize)(n.primary,.5),tagPrimarySolidBackground:n.primary,borderFocus: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}}},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return Object(l.a)(P(t,e),T(e))},A=function(e){var t=function(e){var t=e.bodyText,n=e.secondaryBg,r=e.bgColor,o=Object(s.getLuminance)(r)>.5,a=o?e.blue:Object(s.lighten)(e.blue,.2),i=Object(s.transparentize)(t,.8),l=Object(s.transparentize)(t,.6),c=Object(s.transparentize)(t,.4),u=Object(s.mix)(r,n,.5),d=o?Object(s.darken)(u,.3):Object(s.lighten)(u,.6);return{linkText:a,fadedText10:i,fadedText40:l,fadedText60:c,bgMix:u,darkenedBgMix60:d,transparentDarkenedBgMix60:Object(s.transparentize)(d,.75),lightenedBg05:Object(s.lighten)(r,.025)}}(e);return Object(a.a)(Object(a.a)(Object(a.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:t.bgMix,docStringModuleText:e.bodyText,docStringContainerBackground:Object(s.transparentize)(e.secondaryBg,.6),headingColor:e.bodyText})},D=function(e){var t=(new Option).style;return t.color=e,""!==t.color},R=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(o.a)(e,["font"]),u=C(s),d=Object.entries(c).reduce((function(e,t){var n=Object(r.a)(t,2),o=n[0],a=n[1];return D(a)?e[o]=a:D("#".concat(a))&&(e[o]="#".concat(a)),e}),{}),p=d.secondaryBackgroundColor,f=d.backgroundColor,h=d.primaryColor,m=d.textColor,y=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},i),h&&{primary:h}),m&&{bodyText:m}),p&&{secondaryBg:p}),f&&{bgColor:f});return Object(a.a)(Object(a.a)({},t.emotion),{},{colors:A(y),genericColors:y,genericFonts:Object(a.a)(Object(a.a)({},l),u&&{bodyFont:u,headingFont:u})})},V=function(e){var t=e.colors,n=e.genericFonts;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,font:I(n.bodyFont)}},N=function(e,t){return new b.e(Object(a.a)(Object(a.a)({},V(t.emotion)),e))},F=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(t=n?N(t,n):t.base===b.e.BaseTheme.DARK?N(t,v.darkTheme):N(t,v.lightTheme)).backgroundColor,i=y()(h()(Object(s.getLuminance)(o)>.5?v.lightTheme:v.darkTheme),{emotion:{inSidebar:r}}),l=R(t,i);return Object(a.a)(Object(a.a)({},i),{},{name:e,emotion:l,basewebTheme:E(l,i.primitives)})},M=function(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v.darkTheme:v.lightTheme},B=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},z=function(){if(!B())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)}},W=function(e){if(B()){!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(a.a)({name:e.name},!k(e)&&{themeInput:V(e.emotion)});window.localStorage.setItem(w.ACTIVE_THEME,JSON.stringify(t))}},L=function(){B()&&window.localStorage.removeItem(w.ACTIVE_THEME)},U=function(){var e=z();return e&&e.name!==x?e:Object(v.createAutoTheme)()},_=/\s+/;function H(e,t){return""===e?"":e.split(_).map((function(e){return"0"===e?t.spacing.none:e in t.spacing?t.spacing[e]:(Object(g.b)("Invalid spacing value: ".concat(e)),t.spacing.none)})).join(" ")}},78:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return h}));var r=n(52),o=n(459),a=n.n(o),i=/\/+$/,l=/^\/+/;function s(){return{host:window.location.hostname,port:r.b?r.e:window.location.port?Number(window.location.port):p()?443:80,basePath:window.location.pathname.replace(i,"").replace(l,"")}}function c(e,t){var n=e.host,r=e.port,o=e.basePath,a=p()?"wss":"ws",i=d(o,t);return"".concat(a,"://").concat(n,":").concat(r,"/").concat(i)}function u(e,t){var n=e.host,r=e.port,o=e.basePath,a=p()?"https":"http",i=d(o,t);return"".concat(a,"://").concat(n,":").concat(r,"/").concat(i)}function d(e,t){return e=e.replace(i,"").replace(l,""),t=t.replace(i,"").replace(l,""),0===e.length?t:"".concat(e,"/").concat(t)}function p(){return window.location.href.startsWith("https://")}function f(e){var t=e.substring("data:image/svg+xml,".length);return a.a.sanitize(t)}function h(e){return e.startsWith("/media")?u(s(),e):e}},89:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return s}));var r={sansSerif:"IBM Plex Sans, sans-serif",monospace:"IBM Plex Mono, monospace",serif:"IBM Plex Serif, serif"},o={bodyFont:r.sansSerif,codeFont:r.monospace,headingFont:r.sansSerif},a={twoXS:"0.375rem",halfSmDefault:"0.4rem",twoThirdSmDefault:"0.533333rem",xs:"0.5rem",sm:"0.75rem",smDefault:"0.8rem",md:"1rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"3.125rem"},i={normal:400,medium:500,bold:700},l={normal:"normal",none:"1",dataframeCell:"0.75",tight:"1.25",table:"1.3",base:"1.6"},s={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},99:function(e,t,n){"use strict";var r=n(23),o=n(89),a=1e6,i={hide:-1,auto:"auto",base:0,sidebar:100,menuButton:110,balloons:a,header:1000020,sidebarMobile:1000030,popupMenu:1000040,fullscreenWrapper:1000050},l=n(11),s=n(33),c=Object(l.a)(Object(l.a)({},r.a),{},{bgColor:r.a.white,secondaryBg:r.a.gray20,bodyText:r.a.gray90,warning:r.a.yellow110,warningBg:Object(s.transparentize)(r.a.yellow80,.8),success:r.a.green100,successBg:Object(s.transparentize)(r.a.green80,.8),info:r.a.blue100,infoBg:Object(s.transparentize)(r.a.blue70,.9),danger:r.a.red100,dangerBg:Object(s.transparentize)(r.a.red70,.8),primary:r.a.streamlitPink,disabled:r.a.gray40,lightestGray:r.a.gray20,lightGray:r.a.gray30,gray:r.a.gray60,darkGray:r.a.gray70,red:r.a.red80,blue:r.a.blue80,green:r.a.green80,yellow:r.a.yellow80}),u=n(73);t.a={inSidebar:!1,breakpoints:{sm:"576px",columns:"640px",md:"768px",lg:"992px",xl:"1200px"},colors:Object(u.e)(c),genericColors:c,fonts:o.c,fontSizes:o.a,fontWeights:o.b,genericFonts:o.d,iconSizes:{xs:"0.5rem",sm:"0.75rem",md:"0.9rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},lineHeights:o.f,letterSpacings:o.e,radii:{none:"0",sm:"0.125rem",md:"0.25rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},sizes:{full:"100%",headerHeight:"3.5rem",sidebar:"21rem",contentMaxWidth:"730px"},spacing:{px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem"},zIndices:i}}},[[2594,5,6]]]);