PageSourceSearch

https://a1mal-wiguard-xai-ids.hf.space/static/js/1260.f4b7cd39.chunk.js

js a1mal-wiguard-xai-ids.hf.space collected 2026-10-04 16:36:37 UTC 10,986 bytes, 5 lines download raw bytes

vendor: 2,902 bytes, lines 1-5
1(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1260],{68035:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});r(58878);var n=r(25571),o=r(78286),i=r(89653);const a=r(60667).i7`
2  50% {
3    color: rgba(0, 0, 0, 0);
4  }
5`,l=(0,i.A)("span",{target:"edlqvik0"})((t=>{let{includeDot:e,shouldBlink:r,theme:n}=t;return{...e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:`0 ${n.spacing.twoXS}`}}:{},...r?{color:n.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var u=r(90782);const s=t=>{let{dirty:e,value:r,inForm:i,maxLength:a,className:s,type:c="single",allowEnterToSubmit:d=!0}=t;const f=[],p=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.push((0,u.jsx)(l,{includeDot:f.length>0,shouldBlink:e,children:t},f.length))};if(d){const t=i?"submit form":"apply";if("multiline"===c){p(`Press ${(0,n.u_)()?"\u2318":"Ctrl"}+Enter to ${t}`)}else"single"===c&&p(`Press Enter to ${t}`)}return a&&("chat"!==c||e)&&p(`${r.length}/${a}`,e&&r.length>=a),(0,u.jsx)(o.tp,{"data-testid":"InputInstructions",className:s,children:f})}},34752:(t,e,r)=>{"use strict";r.d(e,{X:()=>a,o:()=>i});var n=r(58878),o=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(t,e,r){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===t&&this.lastFormId===e||(this.disconnect(),(0,o._L)(e)&&(this.formClearListener=t.addFormClearedListener(e,r),this.lastWidgetMgr=t,this.lastFormId=e))}disconnect(){var t;null===(t=this.formClearListener)||void 0===t||t.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function a(t){let{element:e,widgetMgr:r,onFormCleared:i}=t;(0,n.useEffect)((()=>{if(!(0,o._L)(e.formId))return;const t=r.addFormClearedListener(e.formId,i);return()=>{t.disconnect()}}),[e,r,i])}},81260:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>O});var n=r(58878),o=r(32698),i=r.n(o),a=r(59095),l=r(8151),u=r(29669),s=r(3101),c=r(68035),d=r(70474),f=r(78286),p=r(93480),m=r(997),h=r(25571);const g=(0,r(89653).A)("div",{target:"e11y4ecf0"})((t=>{let{width:e}=t;return{position:"relative",width:e}}),"");var b=r(90782);function y(t,e){var r;return null!==(r=t.getStringValue(e))&&void 0!==r?r:null}function v(t){var e;return null!==(e=t.default)&&void 0!==e?e:null}function S(t){var e;return null!==(e=t.value)&&void 0!==e?e:null}function w(t,e,r,n){e.setStringValue(t,r.value,{fromUi:r.fromUi},n)}function F(t){return t.type===u.ks.Type.PASSWORD?"password":"text"}const O=function(t){var e;let{disabled:r,element:o,widgetMgr:u,width:O,fragmentId:E}=t;const[j,C]=(0,s.t)({getStateFromWidgetMgr:y,getDefaultStateFromProto:v,getCurrStateFromProto:S,updateWidgetMgrState:w,element:o,widgetMgr:u,fragmentId:E}),[I,P]=(0,n.useState)(!1),[W,x]=(0,n.useState)(!1),[M,_]=(0,n.use
5State)(j);(0,n.useEffect)((()=>{j!==M&&_(j)}),[j]);const k=(0,l.u)(),[T]=(0,n.useState)((()=>i()("text_input_"))),{placeholder:A,formId:L}=o,R=(0,h.Ml)({formId:L})?u.allowFormEnterToSubmit(L):I,B=W&&O>k.breakpoints.hideWidgetDetails,$=(0,n.useCallback)((()=>{I&&C({value:M,fromUi:!0}),x(!1)}),[I,M]),D=(0,n.useCallback)((()=>{x(!0)}),[]),U=(0,n.useCallback)((t=>{const{value:e}=t.target,{maxChars:r}=o;0!==r&&e.length>r||(P(!0),_(e),(0,h.Ml)(o)&&C({value:e,fromUi:!0}))}),[o]),z=(0,n.useCallback)((t=>{"Enter"===t.key&&(I&&C({value:M,fromUi:!0}),u.allowFormEnterToSubmit(o.formId)&&u.submitForm(o.formId,E))}),[M,o,E]);return(0,b.jsxs)(g,{className:"stTextInput","data-testid":"stTextInput",width:O,children:[(0,b.jsx)(d.L,{label:o.label,disabled:r,labelVisibility:(0,h.yv)(null===(e=o.labelVisibility)||void 0===e?void 0:e.value),htmlFor:T,children:o.help&&(0,b.jsx)(f.j,{children:(0,b.jsx)(p.A,{content:o.help,placement:m.W.TOP_RIGHT})})}),(0,b.jsx)(a.A,{value:null!==M&&void 0!==M?M:"",placeholder:A,onBlur:$,onFocus:D,onChange:U,onKeyPress:z,"aria-label":o.label,disabled:r,id:T,type:F(o),autoComplete:o.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:k.lineHeights.inputWidget,paddingRight:k.spacing.sm,paddingLeft:k.spacing.sm,paddingBottom:k.spacing.sm,paddingTop:k.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:k.sizes.minElementHeight,borderLeftWidth:k.sizes.borderWidth,borderRightWidth:k.sizes.borderWidth,borderTopWidth:k.sizes.borderWidth,borderBottomWidth:k.sizes.borderWidth}}}}),B&&(0,b.jsx)(c.A,{dirty:I,value:null!==M&&void 0!==M?M:"",maxLength:o.maxChars,inForm:(0,h.Ml)({formId:o.formId}),allowEnterToSubmit:R})]})}},3101:(t,e,r)=>{"use strict";r.d(e,{_:()=>a,t:()=>l});var n=r(58878),o=r(34752),i=r(25571);function a(t){let{getStateFromWidgetMgr:e,getDefaultState:r,updateWidgetMgrState:a,element:l,widgetMgr:u,fragmentId:s,onFormCleared:c}=t;const[d,f]=(0,n.useState)((()=>{var t;return null!==(t=e(u,l))&&void 0!==t?t:r(u,l)}
vendor: 6,058 bytes, line 5
5)),[p,m]=(0,n.useState)({value:d,fromUi:!1});(0,n.useEffect)((()=>{(0,i.hX)(p)||(m(null),f(p.value),a(l,u,p,s))}),[p,a,l,u,s]);const h=(0,n.useCallback)((()=>{m({value:r(u,l),fromUi:!0}),null===c||void 0===c||c()}),[m,l,r,u,c]);return(0,o.X)({widgetMgr:u,element:l,onFormCleared:h}),[d,m]}function l(t){let{getStateFromWidgetMgr:e,getDefaultStateFromProto:r,getCurrStateFromProto:o,updateWidgetMgrState:i,element:l,widgetMgr:u,fragmentId:s,onFormCleared:c}=t;const d=(0,n.useCallback)(((t,e)=>r(e)),[r]),[f,p]=a({getStateFromWidgetMgr:e,getDefaultState:d,updateWidgetMgrState:i,element:l,widgetMgr:u,fragmentId:s,onFormCleared:c});return(0,n.useEffect)((()=>{l.setValue&&(l.setValue=!1,p({value:o(l),fromUi:!1}))}),[l,o,p]),[f,p]}},59095:(t,e,r)=>{"use strict";r.d(e,{A:()=>j});var n=r(58878),o=r(35331),i=r(4842),a=r(18648),l=r(81301),u=r(92850);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"],d=["startEnhancer","endEnhancer","overrides"];function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(this,arguments)}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,e)}(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 m(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function g(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function y(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 r,n=S(t);if(e){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.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 v(t)}(this,r)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var F=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)}(S,t);var e,r,s,m=y(S);function S(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,S);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return w(v(t=m.call.apply(m,[this].concat(r))),"state",{isFocused:t.props.autoFocus||!1}),w(v(t),"onFocus",(function(e){t.setState({isFocused:!0}),t.props.onFocus(e)})),w(v(t),"onBlur",(function(e){t.setState({isFocused:!1}),t.props.onBlur(e)})),t}return e=S,(r=[{key:"render",value:function(){var t=this.props,e=t.startEnhancer,r=t.endEnhancer,s=t.overrides,m=s.Root,g=s.StartEnhancer,b=s.EndEnhancer,y=h(s,c),v=h(t,d),S=p((0,o._O)(m,l.bL),2),w=S[0],F=S[1],j=p((0,o._O)(g,l.P2),2),C=j[0],I=j[1],P=p((0,o._O)(b,l.P2),2),W=P[0],x=P[1],M=(0,i.e)(this.props,this.state);return n.createElement(w,f({"data-baseweb":"input"},M,F,{$adjoined:O(e,r),$hasIconTrailing:this.props.clearable||"password"==this.props.type}),E(e)&&n.createElement(C,f({},M,I,{$position:u.vN.start}),"function"===typeof e?e(M):e),n.createElement(a.A,f({},v,{overrides:y,adjoined:O(e,r),onFocus:this.onFocus,onBlur:this.onBlur})),E(r)&&n.createElement(W,f({},M,x,{$position:u.vN.end}),"function"===typeof r?r(M):r))}}])&&g(e.prototype,r),s&&g(e,s),Object.defineProperty(e,"prototype",{writable:!1}),S}(n.Component);function O(t,e){return E(t)&&E(e)?u.fb.both:E(t)?u.fb.left:E(e)?u.fb.right:u.fb.none}function E(t){return Boolean(t||0===t)}w(F,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:u.SK.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});const j=F},32698:(t,e,r)=>{var n=r(30136),o=0;t.exports=function(t){var e=++o;return n(t)+e}}}]);

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.