1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5875],{15875:(t,e,n)=>{n.r(e),n.d(e,{ResponsiveMasonry:()=>f,default:()=>d});var r=n(7620);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){function e(){var e;return(e=t.call(this)||this).state={columns:[],childRefs:[],hasDistributed:!1},e}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t);var n=e.prototype;return n.componentDidUpdate=function(){this.state.hasDistributed||this.props.sequential||this.distributeChildren()},e.getDerivedStateFromProps=function(t,n){var r=t.children,o=t.columnsCount,u=o!==n.columns.length;return n&&r===n.children&&!u?null:i({},e.getEqualCountColumns(r,o),{children:r,hasDistributed:!1})},n.shouldComponentUpdate=function(t){return t.children!==this.state.children||t.columnsCount!==this.props.columnsCount},n.distributeChildren=function(){var t=this,e=this.props,n=e.children,o=e.columnsCount,u=Array(o).fill(0);if(this.state.childRefs.every(function(t){return t.current.getBoundingClientRect().height})){var s=Array.from({length:o},function(){return[]}),l=0;r.Children.forEach(n,function(e){if(e&&r.isValidElement(e)){var n=t.state.childRefs[l].current.getBoundingClientRect().height,i=u.indexOf(Math.min.apply(Math,u));u[i]+=n,s[i].push(e),l++}}),this.setState(function(t){return i({},t,{columns:s,hasDistributed:!0})})}},e.getEqualCountColumns=function(t,e){var n=Array.from({length:e},function(){return[]}),i=0,o=[];return r.Children.forEach(t,function(t){if(t&&r.isValidElement(t)){var u=r.createRef();o.push(u),n[i%e].push(r.createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:i,ref:u},t)),i++}}),{columns:n,childRefs:o}},n.renderColumns=function(){var t=this.props,e=t.gutter,n=t.itemTag,o=t.itemStyle;return this.state.columns.map(function(t,u){return r.createElement(n,{key:u,style:i({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:e},o)},t.map(function(t){return t}))})},n.render=function(){var t=this.props,e=t.gutter,n=t.className,o=t.style,u=t.containerTag;return r.createElement(u,{style:i({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:e},o),className:n},this.renderColumns())},e}(r.Component);u.propTypes={},u.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};var s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,l=function(){var t=(0,r.useState)(!1),e=t[0],n=t[1];return s(function(){n(!0)},[]),e},a=function(){var t=l(),e=(0,r.useState)("undefined"!=typeof window?window.innerWidth:0),n=e[0],i=e[1],o=(0,r.useCallback)(function(){t&&i(window.innerWidth)},[t]);return s(function(){if(t)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}},[t,o]),n},c=function(t){var e=t.columnsCountBreakPoints,n=void 0===e?{350:1,750:2,900:3}:e,i=t.gutterBreakPoints,o=void 0===i?{}:i,u=t.children,s=t.className,l=t.style,c=a(),f=(0,r.useCallback)(function(t,e){var n=Object.keys(t).sort(function(t,e){return t-e}),r=n.length>0?t[n[0]]:e;return n.forEach(function(e){e<c&&(r=t[e])}),r},[c]),d=(0,r.useMemo)(function(){return f(n,1)},[f,n]),h=(0,r.useMemo)(function(){return f(o,"10px")},[f,o]);return r.createElement("div",{className:void 0===s?null:s,style:void 0===l?null:l},r.Children.map(u,function(t,e){return r.cloneElement(t,{key:e,columnsCount:d,gutter:h})}))};c.propTypes={};let f=c,d=u}}]);
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.