PageSourceSearch

https://xenova-sponsorblock-ml.hf.space/static/js/8691.27197a39.chunk.js

js xenova-sponsorblock-ml.hf.space collected 2026-10-03 10:23:20 UTC 10,600 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[8691],{79986:function(t,e,n){n.d(e,{Z:function(){return p}});n(66845);var r,o=n(50641),i=n(86659),a=n(50189),l=n(50669),u=n(1515),s=(0,n(7865).F4)(r||(r=(0,l.Z)(["\n  50% {\n    color: rgba(0, 0, 0, 0);\n  }\n"]))),c=(0,u.Z)("span",{target:"edlqvik0"})((function(t){var e=t.includeDot,n=t.shouldBlink,r=t.theme;return(0,a.Z)((0,a.Z)({},e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:r.colors.gray,margin:"0 5px"}}:{}),n?{color:r.colors.red,animationName:"".concat(s),animationDuration:"0.5s",animationIterationCount:5}:{})}),""),f=n(40864),p=function(t){var e=t.dirty,n=t.value,r=t.maxLength,a=t.className,l=t.type,u=void 0===l?"single":l,s=t.inForm,p=[],d=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p.push((0,f.jsx)(c,{includeDot:p.length>0,shouldBlink:e,children:t},p.length))};if(e){var h=s?"submit form":"apply";if("multiline"===u){var m=(0,o.Ge)()?"\u2318":"Ctrl";d("Press ".concat(m,"+Enter to ").concat(h))}else"single"===u&&d("Press Enter to ".concat(h))}return r&&("chat"!==u||e)&&d("".concat(n.length,"/").concat(r),e&&n.length>=r),(0,f.jsx)(i.X7,{"data-testid":"InputInstructions",className:a,children:p})}},87814:function(t,e,n){n.d(e,{K:function(){return a}});var r=n(22951),o=n(91976),i=n(50641),a=function(){function t(){(0,r.Z)(this,t),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return(0,o.Z)(t,[{key:"manageFormClearListener",value:function(t,e,n){null!=this.formClearListener&&this.lastWidgetMgr===t&&this.lastFormId===e||(this.disconnect(),(0,i.bM)(e)&&(this.formClearListener=t.addFormClearedListener(e,n),this.lastWidgetMgr=t,this.lastFormId=e))}},{key:"disconnect",value:function(){var t;null===(t=this.formClearListener)||void 0===t||t.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),t}()},58691:function(t,e,n){n.r(e),n.d(e,{default:function(){return w}});var r=n(22951),o=n(91976),i=n(67591),a=n(94337),l=n(66845),u=n(82534),s=n(16295),c=n(87814),f=n(79986),p=n(98478),d=n(86659),h=n(8879),m=n(68411),y=n(50641),b=(0,n(1515).Z)("div",{target:"e11y4ecf0"})((function(t){return{position:"relative",width:t.width}}),""),v=n(40864),g=function(t){(0,i.Z)(n,t);var e=(0,a.Z)(n);function n(){var t;(0,r.Z)(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e.call.apply(e,[this].concat(i))).formClearHelper=new c.K,t.state={dirty:!1,value:t.initialValue},t.commitWidgetValue=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.props.widgetMgr.setStringValue(t.props.element,t.state.value,e),n&&t.setState({dirty:!1})},t.onFormCleared=function(){t.setState((function(t,e){return{value:e.element.default}}),(function(){return t.commitWidgetValue({fromUi:!0})}))},t.onBlur=function(){t.state.dirty&&t.commitWidgetValue({fromUi:!0})},t.onChange=function(e){var n=e.target.value,r=t.props.element.maxChars;0!==r&&n.length>r||((0,y.$b)(t.props.element)?t.setState({dirty:!0,value:n},(function(){t.commitWidgetValue({fromUi:!0},!1)})):t.setState({dirty:!0,value:n}))},t.onKeyPress=function(e){"Enter"===e.key&&(t.state.dirty&&t.commitWidgetValue({fromUi:!0}),(0,y.$b)(t.props.element)&&t.props.widgetMgr.submitForm(t.props.element.formId))},t}return(0,o.Z)(n,[{key:"initialValue",get:function(){var t=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==t?t:this.props.element.default}},{key:"componentDidMount",value:function(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}},{key:"componentDidUpdate",value:function(){this.maybeUpdateFromProtobuf()}},{key:"componentWillUnmount",value:function(){this.formClearHelper.disconnect()}},{key:"maybeUpdateFromProtobuf",value:function(){this.props.element.setValue&&this.updateFromProtobuf()}},{key:"updateFromProtobuf",value:function(){var t=this,e=this.props.element.value;this.props.element.setValue=!1,this.setState({value:e},(function(){t.commitWidgetValue({fromUi:!1})}))}},{key:"getTypeString",value:function(){return this.props.element.type===s.oi.Type.PASSWORD?"password":"text"}},{key:"render",value:function(){var t,e=this.state,n=e.dirty,r=e.value,o=this.props,i=o.element,a=o.width,l=o.disabled,s=o.widgetMgr,c=i.placeholder;return this.formClearHelper.manageFormClearListener(s,i.formId,this.onFormCleared),(0,v.jsxs)(b,{className:"row-widget stTextInput","data-testid":"stTextInput",width:a,children:[(0,v.jsx)(p.O,{label:i.label,disabled:l,labelVisibility:(0,y.iF)(null===(t=i.labelVisibility)||void 0===t?void 0:t.value),children:i.help&&(0,v.jsx)(d.dT,{children:(0,v.jsx)(h.Z,{content:i.help,placement:m.u.TOP_RIGHT})})}),(0,v.jsx)(u.Z,{value:r,placeholder:c,onBlur:this.onBlur,onChange:this.onChange,onKeyPress:this.onKeyPress,"aria-label":i.label,disabled:l,type:this.getTypeString(),autoComplete:i.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:"1.4",paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}},Root:{props:{"data-testid":"textInputRootElement"},style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}}}}),(0,v.jsx)(f.Z,{dirty:n,value:r,maxLength:i.maxChars,inForm:(0,y.$b)({formId:i.formId})})]})}}]),n}(l.PureComponent),w=g},82534:function(t,e,n){var r=n(66845),o=n(80318),i=n(32510),a=n(9656),l=n(98479),u=n(38254);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var c=["Root","StartEnhancer","EndEnhancer"],f=["startEnhancer","endEnhancer","overrides"];function p(){return p=Object.assign?Object.assign.bind():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},p.apply(this,arguments)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}
vendor: 3,885 bytes, line 1
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,n)}}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(w,t);var e,n,s,h=v(w);function w(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return j(g(t=h.call.apply(h,[this].concat(n))),"state",{isFocused:t.props.autoFocus||!1}),j(g(t),"onFocus",(function(e){t.setState({isFocused:!0}),t.props.onFocus(e)})),j(g(t),"onBlur",(function(e){t.setState({isFocused:!1}),t.props.onBlur(e)})),t}return e=w,(n=[{key:"render",value:function(){var t=this.props,e=t.startEnhancer,n=t.endEnhancer,s=t.overrides,h=s.Root,y=s.StartEnhancer,b=s.EndEnhancer,v=m(s,c),g=m(t,f),w=d((0,o.jb)(h,l.fC),2),j=w[0],O=w[1],S=d((0,o.jb)(y,l.Fp),2),x=S[0],P=S[1],E=d((0,o.jb)(b,l.Fp),2),k=E[0],I=E[1],W=(0,i.t)(this.props,this.state);return r.createElement(j,p({"data-baseweb":"input"},W,O,{$adjoined:F(e,n),$hasIconTrailing:this.props.clearable||"password"==this.props.type}),C(e)&&r.createElement(x,p({},W,P,{$position:u.Xf.start}),"function"===typeof e?e(W):e),r.createElement(a.Z,p({},g,{overrides:v,adjoined:F(e,n),onFocus:this.onFocus,onBlur:this.onBlur})),C(n)&&r.createElement(k,p({},W,I,{$position:u.Xf.end}),"function"===typeof n?n(W):n))}}])&&y(e.prototype,n),s&&y(e,s),Object.defineProperty(e,"prototype",{writable:!1}),w}(r.Component);function F(t,e){return C(t)&&C(e)?u.y4.both:C(t)?u.y4.left:C(e)?u.y4.right:u.y4.none}function C(t){return Boolean(t||0===t)}j(O,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:u.NO.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1}),e.Z=O}}]);

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.