1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4483],{64483:function(e,t,n){n.r(t),n.d(t,{default:function(){return H}});var o,r=n(50189),i=n(11026),a=n(66845),c=n(68936),l=n(82673),d=n(4435);!function(e){e.ASCENDING="ascending",e.DESCENDING="descending"}(o||(o={}));var s,u=n(64649),h=n(1515),f=(0,h.Z)("div",{target:"epzu5vs8"})((function(e){var t=e.width,n=e.theme;return{width:t,border:"1px solid ".concat(n.colors.fadedText05),boxSizing:"content-box","& .table-top-right":{overflow:"hidden !important",paddingRight:"6px"},"& .table-bottom-left":{overflow:"hidden !important",paddingBottom:"6px"},"& .table-bottom-right":{overflow:"overlay !important"},"& .table-bottom-right:focus-visible":{outline:"none"},"& .table-bottom-right:focus":{outline:"none"}}}),""),m=(0,h.Z)("div",{target:"epzu5vs7"})((function(e){var t=e.theme;return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.xs),borderBottom:"1px solid ".concat(t.colors.fadedText05),borderRight:"1px solid ".concat(t.colors.fadedText05),fontSize:t.fontSizes.md,fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.table,display:"flex",alignItems:"center",justifyContent:"flex-start"}}),""),v=function(e){return{color:e.colors.fadedText60,borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),zIndex:1}},p=function(e){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineHeight:e.lineHeights.table}},g=(0,h.Z)(m,{target:"epzu5vs6"})((function(e){var t=e.theme;return v(t)}),""),w=(0,h.Z)(m,{target:"epzu5vs5"})((function(e){var t=e.theme;return(0,r.Z)((0,r.Z)({userSelect:"none"},v(t)),p(t))}),""),x=(0,h.Z)(m,{target:"epzu5vs4"})((function(e){var t=e.theme;return(0,r.Z)((0,r.Z)({userSelect:"none"},v(t)),p(t))}),""),b=(0,h.Z)(m,{target:"epzu5vs3"})((function(e){var t=e.theme;return p(t)}),""),C=(0,h.Z)("div",{target:"epzu5vs2"})((function(e){var t,n=e.verticalLocator,o=e.horizontalLocator,r=e.width,i=e.height;return t={position:"absolute"},(0,u.Z)(t,n,"0px"),(0,u.Z)(t,o,"0px"),(0,u.Z)(t,"width",r),(0,u.Z)(t,"height",i),t}),""),y=(0,h.Z)("div",{target:"epzu5vs1"})((function(e){var t=e.theme;return{fontFamily:t.genericFonts.codeFont,color:t.colors.fadedText60,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),""),S=(0,h.Z)("span",{target:"epzu5vs0"})((function(e){return{color:e.theme.colors.fadedText05,verticalAlign:"top"}}),""),N=n(85160),Z=n(23849),I=!("undefined"===typeof window||!window.document||!window.document.createElement);function D(e){if((!s&&0!==s||e)&&I){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),s=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return s}var E=n(19123),R=2*E.CH.smPx,z=function(e,t,n,o){var r=(0,d.kG)(n),i=r.headerRows,a=r.headerCols,c=r.dataRows,l=r.cols,s=r.rows,u=R*i,h=t-2-D(),f=function(e,t,n,o,r,i){var a=25,c=e>2?200:400,l=function(e){for(var n=e.index,r=8*10/10,c=24,l=100,d=a,s=0;s<Math.min(t,l);s++){var u=-1;u=s<o?s:t>l?Math.floor(Math.random()*t):s;var h=i(n,u).contents,f=(h?h.length:0)*r+c;f>d&&(d=f)}return d},d=[],s=Array.from(Array(e),(function(e,t){return l({index:t})})),u=s.reduce((function(e,t){return e+t}),0),h=r-u,f=function(e){return e.filter((function(e){return e>c}))};if(h<0)d=s.map((function(e){return e>c?c:e}));else{var m=f(s),v=h/m.length;d=s.map((function(e,t){return t in m.keys()?e+v:e}))}var p=d.reduce((function(e,t){return e+t}),0);if(p>r*(2/3)&&p<r){var g=(r-p)/e;d=d.map((function(e){return e+g})),p=d.reduce((function(e,t){return e+t}),0)}var w=Math.min(p,r),x=function(e){var t=e.index;return d[t]},b=d.slice(0,n).reduce((function(e,t){return e+t}));return{elementWidth:w,columnWidth:x,headerWidth:b}}(l,s,a,i,h,o),m=f.elementWidth,v=f.columnWidth,p=f.headerWidth;if(0===c&&m<60){m=60,p=60;for(var g=0,w=0;w<l;w++)g+=v({index:w});g<60&&(v=function(){return 60/l})}var x=s*R,b=(e||300)-2;return e=Math.min(x,b),m+=x>b?D():0,{rowHeight:R,headerHeight:u,border:2,columnWidth:v,headerWidth:p,elementWidth:m,height:e}},G={corner:g,"col-header":w,"row-header":x,data:b};var A=n(25773),W=n(69),k=a.forwardRef((function(e,t){return a.createElement(W.D,(0,A.Z)({iconAttrs:{fill:"
1currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),a.createElement("path",{d:"M4 1L0 5l1.5 1.5L4 4l2.5 2.5L8 5 4 1z"}))}));k.displayName="ChevronTop";var T=a.forwardRef((function(e,t){return a.createElement(W.D,(0,A.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),a.createElement("path",{d:"M1.5 1L0 2.5l4 4 4-4L6.5 1 4 3.5 1.5 1z"}))}));T.displayName="ChevronBottom";var j=n(46927),B=n(40864);function L(e){var t,n,r,i=e.CellType,a=e.columnIndex,c=e.contents,l=e.rowIndex,d=e.sortedByUser,s=e.style,u=e.columnSortDirection,h=e.headerClickedCallback,f=c,m=u===o.DESCENDING;null!=h&&0===l&&(t=function(){return h(a)},n="button",r=0,f=null==u?'Sort by column "'.concat(c,'"'):'Sorted by column "'.concat(c,'" (').concat(m?"descending":"ascending",")"));var v=0===l?function(e){switch(e){case o.ASCENDING:return(0,B.jsx)(S,{"data-testid":"sortIcon",children:(0,B.jsx)(j.Z,{content:k,size:"xs",margin:"0 0 0 twoXS"})});case o.DESCENDING:return(0,B.jsx)(S,{"data-testid":"sortIcon",children:(0,B.jsx)(j.Z,{content:T,size:"xs",margin:"0 0 0 twoXS"})});default:return null}}(u):void 0;return(0,B.jsxs)(i,{style:s,onClick:t,role:n,tabIndex:r,title:f,"data-testid":i.displayName,"data-test-sort-direction":u,children:[c,d?v:""]})}var H=(0,l.Z)((function(e){var t=e.element,n=e.height,l=e.width,s=a.useRef(null),u=(0,a.useState)(!1),h=(0,i.Z)(u,2),m=h[0],v=h[1],p=(0,a.useState)(0),g=(0,i.Z)(p,2),w=g[0],x=g[1],b=(0,a.useState)(o.ASCENDING),S=(0,i.Z)(b,2),I=S[0],D=S[1],E=(0,d.oo)(t.get("data")),R=(0,i.Z)(E,2)[1],A=(0,d.kG)(t),W=A.headerRows,k=A.headerCols,T=A.dataRows,j=A.cols,H=A.rows,F=function(e){var t=o.ASCENDING;w===e&&(t=I===o.ASCENDING?o.DESCENDING:o.ASCENDING),x(e),D(t),v(!0)},M=function(e){var n=(0,d.kG)(t),r=n.headerCols,i=n.dataRows,a=I!==o.DESCENDING;if(w<r||w-r>=e){for(var c=new Array(i),l=0;l<i;l+=1)c[l]=a?l:i-(l+1);return c}return(0,d.X_)(t,w-r,a)}(R),_=function(e){var t=e.element,n=e.headerRows,o=e.sortedDataRowIndices;return function(e,r){if(null!=o&&r>=n){var i=r-n;i>=0&&i<o.length?(r=o[i],r+=n):(0,Z.KE)("Bad sortedDataRowIndices ("+"rowIndex=".concat(r,", ")+"headerRows=".concat(n,", ")+"sortedDataRowIndices.length=".concat(o.length))}var a=(0,d.me)(t,e,r),c=a.contents,l=a.styles,s=a.type;return{Component:G[s],styles:l,contents:(0,N.H7)(c)}}}({element:t,headerRows:W,sortedDataRowIndices:M}),V=function(e){return function(t){var n=t.columnIndex,o=t.key,i=t.rowIndex,a=t.style,c=e(n,i),l=c.Component,d=c.styles,s=c.contents,u=0===i?F:void 0,h=n===w?I:void 0,f=i===T,v=n===j-k,p=(0,r.Z)((0,r.Z)((0,r.Z)({},a),d),{},{borderBottom:f?"none":void 0,borderRight:v?"none":void 0});return(0,B.jsx)(L,{CellType:l,columnIndex:n,rowIndex:i,style:p,contents:s,sortedByUser:m,columnSortDirection:h,headerClickedCallback:u},o)}}(_),X=z(n,l,t,_),U=X.rowHeight,K=X.headerHeight,O=X.border,P=X.height,q=X.elementWidth,J=X.columnWidth,Q=X.headerWidth;return setTimeout((function(){null!=s.current&&s.current.recomputeGridSize()}),0),(0,a.useEffect)((function(){w-k>=R&&(x(0),D(o.ASCENDING),v(!1))}),[w,k,R]),(0,B.jsxs)(f,{width:q,className:"stDataFrame",children:[(0,B.jsx)(c.yR,{cellRenderer:V,fixedColumnCount:k,fixedRowCount:W,columnWidth:J,columnCount:j,enableFixedColumnScroll:!1,enableFixedRowScroll:!1,height:P,rowHeight:U,rowCount:H,width:q,classNameBottomLeftGrid:"table-bottom-left",classNameBottomRightGrid:"table-bottom-right",classNameTopRightGrid:"table-top-right",ref:s}),(0,B.jsx)(C,{verticalLocator:"top",horizontalLocator:"right",width:O,height:K}),(0,B.jsx)(C,{verticalLocator:"bottom",horizontalLocator:"left",width:Q,height:O}),0===T?(0,B.jsx)(y,{children:"empty"}):null]})}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.