1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87387a98-e411-4263-9ca4-1b73fd83f942",e._sentryDebugIdIdentifier="sentry-dbid-87387a98-e411-4263-9ca4-1b73fd83f942")}catch(e){}}();import"./_sentry-release-injection-file-BIxAPxRH.js";import{a as e}from"./rolldown-runtime-CynJssAt.js";import{t}from"./react-C9jbeexS.js";import{_ as r,g as n,n as i}from"./_arrayPush-DSp2RZw1.js";import{t as o}from"./_copyArray-Bn7L1NMR.js";import{n as s,t as a}from"./lib-C2GB3B5V.js";import{t as l}from"./formatClasses-DEp3Ml96.js";import{t as d}from"./ResizedImage-BrrX3nrO.js";import{K as h}from"./index-eSpJ4TSf.js";function u(e){return null==e?[]:function(e,t){return r(t,(function(t){return e[t]}))}(e,i(e))}var f=Math.floor,m=Math.random;function c(e,t){var r,n,i=-1,o=e.length,s=o-1;for(t=void 0===t?o:t;++i<t;){var a=(n=s,(r=i)+f(m()*(n-r+1))),l=e[a];e[a]=e[i],e[i]=l}return e.length=t,e}function p(e){return c(o(e))}function g(e){return c(u(e))}function v(e){return(n(e)?p:g)(e)}var w=e(t()),y=Object.defineProperty,b=(e,t,r)=>(((e,t,r)=>{t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),j=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style.getPropertyValue(t),x=e=>j(e,"overflow")+j(e,"overflow-y")+j(e,"overflow-x"),L=class extends w.Component{constructor(e){super(e),b(this,"elementObserver"),b(this,"wrapper"),b(this,"lazyLoadHandler",(e=>{var t,r;const{onContentVisible:n}=this.props,[i]=e,{isIntersecting:o}=i;if(o){this.setState({visible:!0},(()=>{n&&n()}));const e=null==(t=this.wrapper)?void 0:t.current;e&&e instanceof HTMLElement&&(null==(r=this.elementObserver)||r.unobserve(e))}})),this.elementObserver=null,this.wrapper=w.createRef(),this.state={visible:!1}}componentDidMount(){var e;this.getEventNode();const{offset:t,threshold:r}=this.props,n={rootMargin:"number"==typeof t?`${t}px`:t||"0px",threshold:r||0};this.elementObserver=new IntersectionObserver(this.lazyLoadHandler,n);const i=null==(e=this.wrapper)?void 0:e.current;i instanceof HTMLElement&&this.elementObserver.observe(i)}shouldComponentUpdate(e,t){return t.visible}componentWillUnmount(){var e,t;const r=null==(e=this.wrapper)?void 0:e.current;r&&r instanceof HTMLElement&&(null==(t=this.elementObserver)||t.unobserve(r))}getEventNode(){var e;return(e=>{if(!(e instanceof HTMLElement))return window;let t=e;for(;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(x(t)))return t;t=t.parentNode}return window})(null==(e=this.wrapper)?void 0:e.current)}render(){const{children:e,className:t,height:r,width:n,elementType:i}=this.props,{visible:o}=this.state,s={height:r,width:n},a=`LazyLoad${o?" is-visible":""}${t?` ${t}`:""}`;return(0,w.createElement)(i||"div",{className:a,style:s,ref:this.wrapper},o&&w.Children.only(e))}};function E(e,t,{width:r,height:n}){if(!e&&!t)return{width:r,height:n};const i=r/n;return!t||e&&e/t<i?{width:e,height:Math.round(e/i)}:{width:Math.round(t*i),height:t}}b(L,"defaultProps",{elementType:"div",className:"",offset:0,threshold:0,width:null,onContentVisible:null,height:null}),s();var C=h(),I=a` 2 fragment ConstrainedSizeImage on ImageUpload { 3 id 4 url 5 width 6 height 7 } 8`,M=({image:e,alt:t="",width:r=null,height:n=null,maxDisplayWidth:i=null,lazyLoad:o=!1,hideBackgroundOnceLoaded:s=!1,onError:a,onLoad:h})=>{const[u,f]=(0,w.useState)(!1),m=(0,w.useCallback)((e=>{s&&f(!0),h&&h(e)}),[s,h]),{width:c,height:p}=E(r,n,e);if(0===c)return null;const g=i&&c>i,v={className:l("constrained-size-image",{"overflows-max-display-width":g,"image-loaded":u}),width:c,height:p},y=(0,C.jsx)(d,{url:e.url,alt:t,maxWidth:c,maxHeight:p,onError:a,onLoad:m,imageProps:v});return o?(0,C.jsx)(L,{width:c,height:p,offset:1e3,className:l("constrained-size-image-lazy-load",{"overflows-max-display-width":g}),children:y}):y};function z(e,t,r){return v(e.filter((e=>e.image.width/e.image.height>t))).slice(0,r)}export{E as i,M as n,I as r,z as t}; 9//# sourceMappingURL=filterHighlights-Bv6B4Ttz.js.map
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.