PageSourceSearch

https://streamlit.io/_next/static/chunks/83824.8f20e2b4143d4f22.js

js streamlit.io collected 2026-09-24 07:54:24 UTC 7,012 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83824],{83824:function(e,t,n){n.d(t,{h:function(){return w}});var o,i=n(75068),r=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=void 0;function ensureCanMutateNextEventHandlers(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function TargetEventHandlers(e){this.target=e,this.events={}}TargetEventHandlers.prototype.getEventHandlers=function(e,t){var n=String(e)+" "+String(t?!0===t?100:(t.capture<<0)+(t.passive<<1)+(t.once<<2):0);return this.events[n]||(this.events[n]={handlers:[],handleEvent:void 0},this.events[n].nextHandlers=this.events[n].handlers),this.events[n]},TargetEventHandlers.prototype.handleEvent=function(e,t,n){var o=this.getEventHandlers(e,t);o.handlers=o.nextHandlers,o.handlers.forEach(function(e){e&&e(n)})},TargetEventHandlers.prototype.add=function(e,t,n){var o=this,i=this.getEventHandlers(e,n);ensureCanMutateNextEventHandlers(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var r=!0;return function(){if(r){r=!1,ensureCanMutateNextEventHandlers(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(o.target&&o.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}};var a="__consolidated_events_handlers__";function addEventListener(e,t,n,o){e[a]||(e[a]=new TargetEventHandlers(e));var i=o?(void 0===s&&(s=function(){if(!r||!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),noop=function(){};window.addEventListener("testPassiveEventSupport",noop,t),window.removeEventListener("testPassiveEventSupport",noop,t)}catch(e){}return e}()),s)?o:!!o.capture:void 0;return e[a].add(t,n,i)}var l=n(67294),p=n(59864);function computeOffsetPixels(e,t){var n=!isNaN(parseFloat(e))&&isFinite(e)?parseFloat(e):"px"===e.slice(-2)?parseFloat(e.slice(0,-2)):void 0;if("number"==typeof n)return n;var o=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);if("number"==typeof o)return o*t}var c="above",d="inside",v="below",u="invisible";function isDOMElement(e){return"string"==typeof e.type}var f=[];function onNextTick(e){f.push(e),o||(o=setTimeout(function(){var e;for(o=null;e=f.shift();)e()},0));var t=!0;return function(){if(t){t=!1;var n=f.indexOf(e);-1!==n&&(f.splice(n,1),!f.length&&o&&(clearTimeout(o),o=null))}}}var h="undefined"!=typeof window,w=function(e){function Waypoint(t){var n;return(n=e.call(this,t)||this).refElement=function(e){n._ref=e},n}(0,i.Z)(Waypoint,e);var t=Waypoint.prototype;return t.componentDidMount=function(){var e=this;h&&(this.cancelOnNextTick=onNextTick(function(){e.cancelOnNextTick=null;var t=e.props,n=t.children;t.debug,function(e,t){if(e&&!isDOMElement(e)&&!t)throw Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=addEventListener(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=addEventListener(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))},t.componentDidUpdate=function(){var e=this;h&&this.scrollableAncestor&&!this.cancelOnNextTick&&(this.cancelOnNextTick=onNextTick(function(){e.cancelOnNextTick=null,e._handleScroll(null)}))},t.componentWillUnmount=function(){h&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())},t._findScrollableAncestor=function(){var e=this.props,t=e.horizontal,o=e.scrollableAncestor;if(o)return"window"===o?n.g.window:o;for(var i=this._ref;i.parentNode&&(i=i.parentNode)!==document.body;){var r=window.getComputedStyle(i),s=(t?r.getPropertyValue("overflow-x"):r.getPropertyValue("overflow-y"))||r.getPropertyValue("overflow");if("auto"===s||"scroll"===s||"overlay"===s)return i}return window}
1,t._handleScroll=function(e){if(this._ref){var t=this._getBounds(),n=t.viewportBottom-t.viewportTop==0?u:t.viewportTop<=t.waypointTop&&t.waypointTop<=t.viewportBottom||t.viewportTop<=t.waypointBottom&&t.waypointBottom<=t.viewportBottom||t.waypointTop<=t.viewportTop&&t.viewportBottom<=t.waypointBottom?d:t.viewportBottom<t.waypointTop?v:t.waypointTop<t.viewportTop?c:u,o=this._previousPosition,i=this.props,r=(i.debug,i.onPositionChange),s=i.onEnter,a=i.onLeave,l=i.fireOnRapidScroll;if(this._previousPosition=n,o!==n){var p={currentPosition:n,previousPosition:o,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};r.call(this,p),n===d?s.call(this,p):o===d&&a.call(this,p);var f=o===v&&n===c,h=o===c&&n===v;l&&(f||h)&&(s.call(this,{currentPosition:d,previousPosition:o,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),a.call(this,{currentPosition:n,previousPosition:d,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}},t._getBounds=function(){var e,t,n=this.props,o=n.horizontal;n.debug;var i=this._ref.getBoundingClientRect(),r=i.left,s=i.top,a=i.right,l=i.bottom;this.scrollableAncestor===window?(e=o?window.innerWidth:window.innerHeight,t=0):(e=o?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,t=o?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var p=this.props,c=p.bottomOffset,d=computeOffsetPixels(p.topOffset,e),v=computeOffsetPixels(c,e),u=t+e;return{waypointTop:o?r:s,waypointBottom:o?a:l,viewportTop:t+d,viewportBottom:u-v}},t.render=function(){var e=this,t=this.props.children;return t?isDOMElement(t)||(0,p.isForwardRef)(t)?l.cloneElement(t,{ref:function(n){e.refElement(n),t.ref&&("function"==typeof t.ref?t.ref(n):t.ref.current=n)}}):l.cloneElement(t,{innerRef:this.refElement}):l.createElement("span",{ref:this.refElement,style:{fontSize:0}})},Waypoint}(l.PureComponent);w.above=c,w.below=v,w.inside=d,w.invisible=u,w.defaultProps={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},w.displayName="Waypoint"},75068:function(e,t,n){function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}n.d(t,{Z:function(){return _inheritsLoose}})}}]);

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.