streamlit-nightly 1.52.3.dev20260110__py3-none-any.whl → 1.52.3.dev20260111__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +296 -296
- streamlit/static/static/js/{ErrorOutline.esm.BcqUpfNe.js → ErrorOutline.esm.D0HiUB0L.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.CtJWBuub.js → FileDownload.esm.BuUS-pfi.js} +1 -1
- streamlit/static/static/js/{FileHelper.D0dQPhOs.js → FileHelper.Pf8URFng.js} +5 -5
- streamlit/static/static/js/{FormClearHelper.Cm3GDSk6.js → FormClearHelper.By4vKj6A.js} +1 -1
- streamlit/static/static/js/{InputInstructions.D7Hxdzwv.js → InputInstructions.BiaGyIXk.js} +1 -1
- streamlit/static/static/js/{Particles.vAUDtAR8.js → Particles.2-EdjYhR.js} +1 -1
- streamlit/static/static/js/{ProgressBar.Dp2CGRba.js → ProgressBar.Dgbh0B0d.js} +1 -1
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.DC0000nJ.js → StreamlitSyntaxHighlighter.DSl8Wr3R.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.DDVoSKOT.js → TableChart.esm.MOwyTUPh.js} +1 -1
- streamlit/static/static/js/{Toolbar.CuMH-Gqe.js → Toolbar.CowuXIFr.js} +1 -1
- streamlit/static/static/js/{WidgetLabelHelpIconInline.WAReecol.js → WidgetLabelHelpIconInline.BdGIJQe4.js} +1 -1
- streamlit/static/static/js/{base-input.BX9Jll5o.js → base-input.CHPo5oJ1.js} +1 -1
- streamlit/static/static/js/{checkbox.BzMHUSz1.js → checkbox.Dkt2TQVS.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.CviG5BQx.js → createDownloadLinkElement.BaE-_v8I.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.Dzo9A4l6.js → data-grid-overlay-editor.C1ncL-Nr.js} +1 -1
- streamlit/static/static/js/{downloader.DIDvj0d5.js → downloader.yaq2AzD9.js} +1 -1
- streamlit/static/static/js/{embed.C8qeQ38b.js → embed.DJJvCVz2.js} +1 -1
- streamlit/static/static/js/{es6.Dpcc-U7U.js → es6.D2jK98VU.js} +2 -2
- streamlit/static/static/js/{formatNumber.CPvuaBa8.js → formatNumber.Cxr2q_Sk.js} +1 -1
- streamlit/static/static/js/{iconPosition.y0q-Rqem.js → iconPosition.5dHEZYw2.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.DblExdXF.js → iframeResizer.contentWindow.Cedt4qbc.js} +1 -1
- streamlit/static/static/js/{index.BZBWLU1C.js → index.01VsD2h1.js} +4 -4
- streamlit/static/static/js/{index.BDb0PRvK.js → index.1djeb6e0.js} +1 -1
- streamlit/static/static/js/{index.BXYgO5B8.js → index.6_D2Y2jA.js} +1 -1
- streamlit/static/static/js/{index.gr6yGiCL.js → index.B0GsKOuI.js} +1 -1
- streamlit/static/static/js/{index.BVN9cI-k.js → index.B2TDaHdI.js} +1 -1
- streamlit/static/static/js/{index.DaU1ayM7.js → index.B4x2O71H.js} +1 -1
- streamlit/static/static/js/{index.DppScppA.js → index.B6EliwN_.js} +1 -1
- streamlit/static/static/js/{index.DB4MbQ40.js → index.B6Uhb_NP.js} +1 -1
- streamlit/static/static/js/{index.BfZdZpv-.js → index.B7EzT2pL.js} +1 -1
- streamlit/static/static/js/{index.DTK-btqV.js → index.B9DrCSR6.js} +1 -1
- streamlit/static/static/js/{index.kKkHk9Mc.js → index.BCCeRfnu.js} +1 -1
- streamlit/static/static/js/{index.pMvzHC7z.js → index.BFopzcDu.js} +1 -1
- streamlit/static/static/js/{index.D42y-GeO.js → index.BHMoYAbd.js} +1 -1
- streamlit/static/static/js/{index.B6vCS66f.js → index.BMPclSge.js} +5 -5
- streamlit/static/static/js/{index.CCDejIvL.js → index.BVit6ClT.js} +1 -1
- streamlit/static/static/js/{index.BItU4jMo.js → index.BXCQzqUL.js} +1 -1
- streamlit/static/static/js/{index.u2AvcQQT.js → index.Ba6hzYdl.js} +1 -1
- streamlit/static/static/js/{index.DmQqT9OM.js → index.Bb9kjc_v.js} +1 -1
- streamlit/static/static/js/{index.VSsf6tsu.js → index.BgVtKHgk.js} +1 -1
- streamlit/static/static/js/{index.DZEQ0G7H.js → index.BkDplL5I.js} +1 -1
- streamlit/static/static/js/{index.BWOP7HFT.js → index.C8PH2B2k.js} +1 -1
- streamlit/static/static/js/{index.RRAKXgBZ.js → index.CAobVzMK.js} +1 -1
- streamlit/static/static/js/{index.BPMqWDef.js → index.CD8IIWcc.js} +1 -1
- streamlit/static/static/js/{index.C1ElSZEy.js → index.CIlqaESj.js} +1 -1
- streamlit/static/static/js/{index.BTHi5W25.js → index.CT9jvPcD.js} +1 -1
- streamlit/static/static/js/{index.D69ULFWq.js → index.CcHnYd9w.js} +1 -1
- streamlit/static/static/js/{index.C7lwRBvF.js → index.CcJEaOpw.js} +1 -1
- streamlit/static/static/js/{index.B-g6lwYa.js → index.CjQo7CUO.js} +1 -1
- streamlit/static/static/js/{index.DRFJgBf-.js → index.D2EVLt1U.js} +1 -1
- streamlit/static/static/js/{index.F-NmmwfK.js → index.D2v1x0i_.js} +1 -1
- streamlit/static/static/js/{index.DvQ7-afx.js → index.D6ea3OJl.js} +1 -1
- streamlit/static/static/js/{index.eweE9HKU.js → index.DKUtJ1wC.js} +1 -1
- streamlit/static/static/js/{index.w2_VrtVw.js → index.DLB_Wwth.js} +1 -1
- streamlit/static/static/js/{index.aEeM0ekc.js → index.DaITTdfQ.js} +1 -1
- streamlit/static/static/js/{index.Dr8b3Vn6.js → index.DbTMA1_Q.js} +1 -1
- streamlit/static/static/js/{index.Dla9XiNe.js → index.DcKOiCiE.js} +1 -1
- streamlit/static/static/js/{index.C26ZOVFL.js → index.DeGjj5Xy.js} +1 -1
- streamlit/static/static/js/{index.B10MmI2m.js → index.Dewn3Ni9.js} +1 -1
- streamlit/static/static/js/{index.wv1DYVsn.js → index.DozBVd6-.js} +1 -1
- streamlit/static/static/js/{index.x4j6nnNb.js → index.DredtYc0.js} +1 -1
- streamlit/static/static/js/{index.CcMmNHAq.js → index.Dt0Psatx.js} +1 -1
- streamlit/static/static/js/{index.B9TG5Ah8.js → index.DtGneC7j.js} +1 -1
- streamlit/static/static/js/{index.pgifwCIr.js → index.P-CMMGUY.js} +1 -1
- streamlit/static/static/js/{index.BGufEmCz.js → index.TO9vodwr.js} +1 -1
- streamlit/static/static/js/{index.Bxe7fKbw.js → index._nL4Yjdr.js} +1 -1
- streamlit/static/static/js/index.i_eQw7NS.js +1 -0
- streamlit/static/static/js/{index.C93QGPyk.js → index.qzz9PjCO.js} +1 -1
- streamlit/static/static/js/{index.MKI8t7l2.js → index.wLJVkoPD.js} +1 -1
- streamlit/static/static/js/{input.BoJqOS7a.js → input.27t-DftI.js} +1 -1
- streamlit/static/static/js/{main.B5XmUwmQ.js → main.BEfv2Y8-.js} +1 -1
- streamlit/static/static/js/{memory.9izgq54V.js → memory.CaZBVQ_1.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.PqOGQcLn.js → number-overlay-editor.CAIp-3oo.js} +1 -1
- streamlit/static/static/js/{pandasStylerUtils.DUtF2t3R.js → pandasStylerUtils.BY9qaz81.js} +1 -1
- streamlit/static/static/js/{sandbox.DgKTHPLO.js → sandbox.BJUaaWFJ.js} +1 -1
- streamlit/static/static/js/{styled-components.D4x8jmOI.js → styled-components.DQsMkvXn.js} +1 -1
- streamlit/static/static/js/{throttle.DxEHIIp7.js → throttle.DSR3q89S.js} +1 -1
- streamlit/static/static/js/{timepicker.CDks5DWI.js → timepicker.gie5YwtP.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.CvTQRsV-.js → toConsumableArray.C9lVwnAo.js} +1 -1
- streamlit/static/static/js/uniqueId.BdEQNrWF.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.D6_b0IqA.js → useBasicWidgetState.DrTKs46R.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.Ctz17A7g.js → useIntlLocale.CmSionuT.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.PAFB5o1T.js → useTextInputAutoExpand.D7lViJSu.js} +1 -1
- streamlit/static/static/js/{useUpdateUiValue.CcTvmGlb.js → useUpdateUiValue.Ct3CJQBQ.js} +1 -1
- streamlit/static/static/js/{useWaveformController.vLi36Ir4.js → useWaveformController.D-KQLpLI.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.BtA2jL5-.js → withCalculatedWidth.CD0pPoZr.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.CeeoYBpc.js → withFullScreenWrapper.Ch22PgdD.js} +1 -1
- {streamlit_nightly-1.52.3.dev20260110.dist-info → streamlit_nightly-1.52.3.dev20260111.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.52.3.dev20260110.dist-info → streamlit_nightly-1.52.3.dev20260111.dist-info}/RECORD +95 -95
- streamlit/static/static/js/index.q83b8_8b.js +0 -1
- streamlit/static/static/js/uniqueId.RScLN3St.js +0 -1
- {streamlit_nightly-1.52.3.dev20260110.data → streamlit_nightly-1.52.3.dev20260111.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.52.3.dev20260110.dist-info → streamlit_nightly-1.52.3.dev20260111.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.52.3.dev20260110.dist-info → streamlit_nightly-1.52.3.dev20260111.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.52.3.dev20260110.dist-info → streamlit_nightly-1.52.3.dev20260111.dist-info}/top_level.txt +0 -0
streamlit/static/static/js/{useWaveformController.vLi36Ir4.js → useWaveformController.D-KQLpLI.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as Z,r as i,aR as M,ab as $,aS as O}from"./index.BZBWLU1C.js";async function q(l,e=16e3){if(!l||l.size===0)throw new Error("Invalid or empty blob provided");if(!window.AudioContext)throw new Error("AudioContext not supported in this browser");const o=new AudioContext;try{const n=await l.arrayBuffer(),r=await o.decodeAudioData(n),d=e??r.sampleRate,s=await J(r,d);return K(s,d)}finally{o.close()}}async function J(l,e){const{duration:o,numberOfChannels:n,sampleRate:r}=l,d=Math.ceil(o*e);if(!window.OfflineAudioContext)throw new Error("OfflineAudioContext not supported");const s=new OfflineAudioContext(1,d,e),p=s.createBufferSource();if(p.buffer=l,n>1){const h=s.createChannelSplitter(n),m=s.createChannelMerger(1);p.connect(h);for(let c=0;c<n;c++){const u=s.createGain();u.gain.value=1/n,h.connect(u,c),u.connect(m,0,0)}m.connect(s.destination)}else p.connect(s.destination);p.start(0);try{return await s.startRendering()}catch(h){throw new Error(`Failed to resample audio from ${r}Hz to ${e}Hz: ${h instanceof Error?h.message:String(h)}`)}}function K(l,e){const n=l.length,r=n*2+44,d=new ArrayBuffer(r),s=new DataView(d),p=l.getChannelData(0),h=(c,u)=>{for(let y=0;y<u.length;y++)s.setUint8(c+y,u.charCodeAt(y))};h(0,"RIFF"),s.setUint32(4,r-8,!0),h(8,"WAVE"),h(12,"fmt "),s.setUint32(16,16,!0),s.setUint16(20,1,!0),s.setUint16(22,1,!0),s.setUint32(24,e,!0),s.setUint32(28,e*2,!0),s.setUint16(32,2,!0),s.setUint16(34,16,!0),h(36,"data"),s.setUint32(40,n*2,!0);let m=44;for(let c=0;c<n;c++){const u=Math.max(-1,Math.min(1,p[c]));s.setInt16(m,u*32767,!0),m+=2}return new Blob([d],{type:"audio/wav"})}class W{constructor(){this.wavesurfer=null,this.currentBlobUrl=null,this.events={},this.isPlaying=!1}initialize(e){this.wavesurfer=e,this.setupEventListeners()}setupEventListeners(){this.wavesurfer&&(this.teardownEventListeners(),this.handleTimeUpdate=e=>{this.events.onTimeUpdate?.(e*1e3)},this.handlePause=()=>{this.isPlaying=!1,this.events.onPause?.()},this.handlePlay=()=>{this.isPlaying=!0,this.events.onPlay?.()},this.handleFinish=()=>{this.isPlaying=!1,this.events.onFinish?.()},this.handleReady=()=>{this.events.onReady?.()},this.handleError=e=>{const o=e instanceof Error?e:new Error(String(e));this.events.onError?.(o)},this.wavesurfer.on("timeupdate",this.handleTimeUpdate),this.wavesurfer.on("pause",this.handlePause),this.wavesurfer.on("play",this.handlePlay),this.wavesurfer.on("finish",this.handleFinish),this.wavesurfer.on("ready",this.handleReady),this.wavesurfer.on("error",this.handleError))}setEventHandlers(e){this.events=e}async load(e){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");this.cleanupPreviousUrl();let o,n=null;try{if(e instanceof Blob)n=URL.createObjectURL(e),o=n;else if(e instanceof ArrayBuffer){const r=new Blob([e]);n=URL.createObjectURL(r),o=n}else o=e;this.currentBlobUrl=n,await this.wavesurfer.load(o)}catch(r){throw this.cleanupPreviousUrl(),r}}async play(){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");await this.wavesurfer.play()}pause(){this.wavesurfer&&this.wavesurfer.pause()}getDuration(){return this.wavesurfer?this.wavesurfer.getDuration()*1e3:0}getCurrentTime(){return this.wavesurfer?this.wavesurfer.getCurrentTime()*1e3:0}getIsPlaying(){return this.isPlaying}seekToStart(){this.wavesurfer&&this.wavesurfer.seekTo(0)}cleanupPreviousUrl(){this.currentBlobUrl&&(URL.revokeObjectURL(this.currentBlobUrl),this.currentBlobUrl=null)}destroy(){this.pause(),this.cleanupPreviousUrl(),this.wavesurfer&&(this.teardownEventListeners(),this.wavesurfer.empty(),this.wavesurfer=null),this.events={},this.isPlaying=!1,this.handleTimeUpdate=void 0,this.handlePause=void 0,this.handlePlay=void 0,this.handleFinish=void 0,this.handleReady=void 0,this.handleError=void 0}teardownEventListeners(){this.wavesurfer&&(this.handleTimeUpdate&&(this.wavesurfer.un("timeupdate",this.handleTimeUpdate),this.handleTimeUpdate=void 0),this.handlePause&&(this.wavesurfer.un("pause",this.handlePause),this.handlePause=void 0),this.handlePlay&&(this.wavesurfer.un("play",this.handlePlay),this.handlePlay=void 0),this.handleFinish&&(this.wavesurfer.un("finish",this.handleFinish),this.handleFinish=void 0),this.handleReady&&(this.wavesurfer.un("ready",this.handleReady),this.handleReady=void 0),this.handleError&&(this.wavesurfer.un("error",this.handleError),this.handleError=void 0))}}function I(l){return l.name==="NotAllowedError"||l.name==="PermissionDeniedError"||l.message?.toLowerCase().includes("permission denied")}class Q{constructor(e={}){this.wavesurfer=null,this.recordPlugin=null,this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null,this.events={},this.options=e}initialize(e,o){this.wavesurfer=e;try{const n={renderRecordedAudio:!1,mimeType:"audio/webm"};this.recordPlugin=e.registerPlugin(o.create(n)),this.setupEventListeners()}catch(n){const r=n instanceof Error?n:new Error(String(n));throw I(r)?(this.events.onPermissionDenied?.(),new Error("Microphone permission denied")):(this.events.onError?.(r),r)}}setupEventListeners(){this.recordPlugin&&(this.recordPlugin.on("record-start",()=>{this.isRecording=!0,this.events.onRecordStart?.()}),this.recordPlugin.on("record-end",e=>{this.isRecording=!1,this.events.onRecordEnd?.(e),this.recordEndResolve&&e&&e.size>0?(this.recordEndResolve(e),this.recordEndResolve=null,this.recordEndReject=null):this.recordEndReject?(this.recordEndReject(new Error("Invalid or empty recording")),this.recordEndResolve=null,this.recordEndReject=null):(this.recordEndResolve=null,this.recordEndReject=null)}),this.recordPlugin.on("record-progress",e=>{this.events.onRecordProgress?.(e)}))}setEventHandlers(e){this.events=e}async startRecording(){if(!this.recordPlugin)throw new Error("Record plugin not initialized");if(this.isRecording)return;const e=typeof this.options.sampleRate=="number"?this.options.sampleRate:void 0,o={};e!==void 0&&(o.sampleRate={ideal:e}),await this.startRecordingWithConstraints(o,e!==void 0)}async startRecordingWithConstraints(e,o){if(!this.recordPlugin)throw new Error("Record plugin not initialized");try{const n=Object.keys(e).length?e:void 0;await this.recordPlugin.startRecording(n)}catch(n){const r=n instanceof Error?n:new Error(String(n));if(I(r))throw this.events.onPermissionDenied?.(),new Error("Microphone permission denied");if(o&&(r.name==="OverconstrainedError"||r.name==="NotReadableError")){this.options.sampleRate=void 0,await this.startRecordingWithConstraints({},!1);return}throw this.events.onError?.(r),r}}async stopRecording(){if(!this.recordPlugin||!this.isRecording)throw new Error("Not currently recording");try{return await new Promise((e,o)=>{this.recordEndResolve=e,this.recordEndReject=o,this.recordPlugin?.stopRecording()})}catch(e){const o=e instanceof Error?e:new Error(String(e));throw this.events.onError?.(o),o}}cancelRecording(){this.recordPlugin&&this.isRecording&&(this.recordPlugin.stopRecording(),this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null)}destroy(){this.cancelRecording(),this.recordPlugin&&(this.recordPlugin.destroy(),this.recordPlugin=null),this.wavesurfer=null,this.events={}}}const X=4,Y=4,ee=8,re=0,te=16e3;function se({containerRef:l,sampleRate:e,events:o,waveformPadding:n=0}){const r=Z(),[d,s]=i.useState("idle"),[p,h]=i.useState(null),[m,c]=i.useState(!1),u=i.useRef(null),y=i.useRef(null),a=i.useRef(null),f=i.useRef(o),U=i.useRef(!1),D=i.useRef(!1),E=i.useRef(new Set),P=i.useRef(!1),b=e===void 0?te:e,A=i.useCallback(()=>{E.current.clear(),c(!1),y.current&&(y.current.destroy(),y.current=null),a.current&&(a.current.destroy(),a.current=null),u.current&&(u.current.destroy(),u.current=null),U.current=!1,P.current=!1,s("idle"),h(null)},[]),x=i.useCallback(()=>{const t=Array.from(E.current);E.current.clear(),t.forEach(w=>{w.resolve()})},[]),_=i.useCallback(t=>{c(!1);const w=Array.from(E.current);E.current.clear(),w.forEach(v=>{v.reject(t)})},[]),T=i.useCallback(t=>{const w={onPlay:()=>{c(!0),f.current.onPlaybackPlay?.()},onPause:()=>{c(!1),f.current.onPlaybackPause?.()},onFinish:()=>{c(!1),f.current.onPlaybackFinish?.()},onReady:()=>{x()},onError:v=>{c(!1),_(v),f.current.onError?.(v)}};t.setEventHandlers(w)},[x,_]);i.useEffect(()=>{f.current=o,a.current&&T(a.current)},[o,T]);const S=i.useCallback(async()=>{if(!(U.current||D.current||!l.current)){D.current=!0;try{const[t,w]=await Promise.all([M(()=>import("./wavesurfer.esm.D1Sty35j.js"),[],import.meta.url),M(()=>import("./record.DytFsBUt.js"),[],import.meta.url)]),v=t.default,B=w.default,k=v.create({container:l.current,waveColor:r.colors.primary,progressColor:r.colors.bodyText,height:n>0?$(r.sizes.largestElementHeight)-2*n:"auto",barWidth:X,barGap:Y,barRadius:ee,cursorWidth:re,interact:!0});u.current=k,P.current=!1;const C=new Q({sampleRate:b});C.initialize(k,B),C.setEventHandlers({onRecordProgress:R=>{f.current.onProgressMs?.(R)},onPermissionDenied:()=>{f.current.onPermissionDenied(),s("idle")},onError:R=>{f.current.onError(R),s("idle")}}),y.current=C;const g=new W;g.initialize(k),a.current=g,T(g),U.current=!0}catch(t){const w=t instanceof Error?t:new Error(String(t));f.current.onError?.(w)}finally{D.current=!1}}},[l,r,b,T,n]);i.useEffect(()=>(S(),()=>{A()}),[A,S]),i.useEffect(()=>{const t=u.current;if(t){if(d==="recording"){t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary});return}if(P.current){t.setOptions({interact:!0,waveColor:O(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText});return}t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.bodyText})}},[d,r.colors.bodyText,r.colors.fadedText40,r.colors.primary,r.colors.secondaryBg]);const F=i.useCallback(async()=>{if(d!=="recording"){if(U.current||await S(),!y.current)throw new Error("Record backend not initialized");u.current&&u.current.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary}),P.current=!1,await y.current.startRecording(),s("recording"),h(null),c(!1),f.current.onRecordStart?.()}},[d,S,r.colors.primary]),L=i.useCallback(()=>{a.current&&u.current&&(a.current.destroy(),a.current=new W,a.current.initialize(u.current),E.current.clear(),c(!1),T(a.current)),P.current=!1},[T]),z=i.useCallback(()=>{a.current?.seekToStart(),c(!1),P.current=!0,u.current&&u.current.setOptions({interact:!0,waveColor:O(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText})},[r.colors.bodyText,r.colors.fadedText40,r.colors.secondaryBg]),H=i.useCallback(async()=>{if(d!=="recording")throw new Error("Not currently recording");if(!y.current||!a.current)throw new Error("Backends not initialized");try{const t=await y.current.stopRecording();h(t),await new Promise((k,C)=>{if(!a.current){C(new Error("Player not initialized"));return}const g={resolve:()=>{E.current.delete(g),k()},reject:R=>{E.current.delete(g),C(R)}};E.current.add(g),a.current.load(t).catch(R=>{E.current.delete(g),C(R instanceof Error?R:new Error(String(R)))})}),s("idle"),c(!1),z();const v={durationMs:a.current?.getDuration()??0,sampleRate:typeof b=="number"?b:null,mimeType:t.type||"audio/webm",size:t.size},B={blob:t,meta:v};return f.current.onRecordReady?.(t),B}catch(t){const w=t instanceof Error?t:new Error(String(t));return c(!1),s("idle"),f.current.onError(w),{blob:new Blob,meta:{durationMs:0,sampleRate:null,mimeType:"audio/webm",size:0}}}},[d,z,b]),j=i.useCallback(async t=>{const w=t??p;if(!w){const v=new Error("No recorded audio to approve");f.current.onError(v);return}try{const v=await q(w,b);await f.current.onApprove?.(v),h(null),s("idle")}catch(v){const B=v instanceof Error?v:new Error(String(v));f.current.onError(B)}},[p,b]),N=i.useCallback(()=>{d==="recording"&&y.current?.cancelRecording(),L(),h(null),s("idle"),c(!1),P.current=!1,f.current.onCancel?.()},[d,L]),V=i.useMemo(()=>({isPlaying:()=>a.current?.getIsPlaying()??!1,play:async()=>{if(!a.current)throw new Error("Player not initialized");await a.current.play()},pause:()=>{a.current?.pause()},load:async t=>{if(U.current||await S(),!a.current)throw new Error("Player not initialized");await a.current.load(t),z()},getCurrentTimeMs:()=>a.current?.getCurrentTime()??0,getDurationMs:()=>a.current?.getDuration()??0}),[z,S]),G=i.useCallback(t=>{f.current=t},[]);return i.useEffect(()=>()=>{A()},[A]),{state:d,isPlaybackPlaying:m,mountRef:l,start:F,stop:H,approve:j,cancel:N,destroy:A,playback:V,setEventHandlers:G}}export{se as u};
|
|
1
|
+
import{l as Z,r as i,aR as M,ab as $,aS as O}from"./index.01VsD2h1.js";async function q(l,e=16e3){if(!l||l.size===0)throw new Error("Invalid or empty blob provided");if(!window.AudioContext)throw new Error("AudioContext not supported in this browser");const o=new AudioContext;try{const n=await l.arrayBuffer(),r=await o.decodeAudioData(n),d=e??r.sampleRate,s=await J(r,d);return K(s,d)}finally{o.close()}}async function J(l,e){const{duration:o,numberOfChannels:n,sampleRate:r}=l,d=Math.ceil(o*e);if(!window.OfflineAudioContext)throw new Error("OfflineAudioContext not supported");const s=new OfflineAudioContext(1,d,e),p=s.createBufferSource();if(p.buffer=l,n>1){const h=s.createChannelSplitter(n),m=s.createChannelMerger(1);p.connect(h);for(let c=0;c<n;c++){const u=s.createGain();u.gain.value=1/n,h.connect(u,c),u.connect(m,0,0)}m.connect(s.destination)}else p.connect(s.destination);p.start(0);try{return await s.startRendering()}catch(h){throw new Error(`Failed to resample audio from ${r}Hz to ${e}Hz: ${h instanceof Error?h.message:String(h)}`)}}function K(l,e){const n=l.length,r=n*2+44,d=new ArrayBuffer(r),s=new DataView(d),p=l.getChannelData(0),h=(c,u)=>{for(let y=0;y<u.length;y++)s.setUint8(c+y,u.charCodeAt(y))};h(0,"RIFF"),s.setUint32(4,r-8,!0),h(8,"WAVE"),h(12,"fmt "),s.setUint32(16,16,!0),s.setUint16(20,1,!0),s.setUint16(22,1,!0),s.setUint32(24,e,!0),s.setUint32(28,e*2,!0),s.setUint16(32,2,!0),s.setUint16(34,16,!0),h(36,"data"),s.setUint32(40,n*2,!0);let m=44;for(let c=0;c<n;c++){const u=Math.max(-1,Math.min(1,p[c]));s.setInt16(m,u*32767,!0),m+=2}return new Blob([d],{type:"audio/wav"})}class W{constructor(){this.wavesurfer=null,this.currentBlobUrl=null,this.events={},this.isPlaying=!1}initialize(e){this.wavesurfer=e,this.setupEventListeners()}setupEventListeners(){this.wavesurfer&&(this.teardownEventListeners(),this.handleTimeUpdate=e=>{this.events.onTimeUpdate?.(e*1e3)},this.handlePause=()=>{this.isPlaying=!1,this.events.onPause?.()},this.handlePlay=()=>{this.isPlaying=!0,this.events.onPlay?.()},this.handleFinish=()=>{this.isPlaying=!1,this.events.onFinish?.()},this.handleReady=()=>{this.events.onReady?.()},this.handleError=e=>{const o=e instanceof Error?e:new Error(String(e));this.events.onError?.(o)},this.wavesurfer.on("timeupdate",this.handleTimeUpdate),this.wavesurfer.on("pause",this.handlePause),this.wavesurfer.on("play",this.handlePlay),this.wavesurfer.on("finish",this.handleFinish),this.wavesurfer.on("ready",this.handleReady),this.wavesurfer.on("error",this.handleError))}setEventHandlers(e){this.events=e}async load(e){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");this.cleanupPreviousUrl();let o,n=null;try{if(e instanceof Blob)n=URL.createObjectURL(e),o=n;else if(e instanceof ArrayBuffer){const r=new Blob([e]);n=URL.createObjectURL(r),o=n}else o=e;this.currentBlobUrl=n,await this.wavesurfer.load(o)}catch(r){throw this.cleanupPreviousUrl(),r}}async play(){if(!this.wavesurfer)throw new Error("WaveSurfer not initialized");await this.wavesurfer.play()}pause(){this.wavesurfer&&this.wavesurfer.pause()}getDuration(){return this.wavesurfer?this.wavesurfer.getDuration()*1e3:0}getCurrentTime(){return this.wavesurfer?this.wavesurfer.getCurrentTime()*1e3:0}getIsPlaying(){return this.isPlaying}seekToStart(){this.wavesurfer&&this.wavesurfer.seekTo(0)}cleanupPreviousUrl(){this.currentBlobUrl&&(URL.revokeObjectURL(this.currentBlobUrl),this.currentBlobUrl=null)}destroy(){this.pause(),this.cleanupPreviousUrl(),this.wavesurfer&&(this.teardownEventListeners(),this.wavesurfer.empty(),this.wavesurfer=null),this.events={},this.isPlaying=!1,this.handleTimeUpdate=void 0,this.handlePause=void 0,this.handlePlay=void 0,this.handleFinish=void 0,this.handleReady=void 0,this.handleError=void 0}teardownEventListeners(){this.wavesurfer&&(this.handleTimeUpdate&&(this.wavesurfer.un("timeupdate",this.handleTimeUpdate),this.handleTimeUpdate=void 0),this.handlePause&&(this.wavesurfer.un("pause",this.handlePause),this.handlePause=void 0),this.handlePlay&&(this.wavesurfer.un("play",this.handlePlay),this.handlePlay=void 0),this.handleFinish&&(this.wavesurfer.un("finish",this.handleFinish),this.handleFinish=void 0),this.handleReady&&(this.wavesurfer.un("ready",this.handleReady),this.handleReady=void 0),this.handleError&&(this.wavesurfer.un("error",this.handleError),this.handleError=void 0))}}function I(l){return l.name==="NotAllowedError"||l.name==="PermissionDeniedError"||l.message?.toLowerCase().includes("permission denied")}class Q{constructor(e={}){this.wavesurfer=null,this.recordPlugin=null,this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null,this.events={},this.options=e}initialize(e,o){this.wavesurfer=e;try{const n={renderRecordedAudio:!1,mimeType:"audio/webm"};this.recordPlugin=e.registerPlugin(o.create(n)),this.setupEventListeners()}catch(n){const r=n instanceof Error?n:new Error(String(n));throw I(r)?(this.events.onPermissionDenied?.(),new Error("Microphone permission denied")):(this.events.onError?.(r),r)}}setupEventListeners(){this.recordPlugin&&(this.recordPlugin.on("record-start",()=>{this.isRecording=!0,this.events.onRecordStart?.()}),this.recordPlugin.on("record-end",e=>{this.isRecording=!1,this.events.onRecordEnd?.(e),this.recordEndResolve&&e&&e.size>0?(this.recordEndResolve(e),this.recordEndResolve=null,this.recordEndReject=null):this.recordEndReject?(this.recordEndReject(new Error("Invalid or empty recording")),this.recordEndResolve=null,this.recordEndReject=null):(this.recordEndResolve=null,this.recordEndReject=null)}),this.recordPlugin.on("record-progress",e=>{this.events.onRecordProgress?.(e)}))}setEventHandlers(e){this.events=e}async startRecording(){if(!this.recordPlugin)throw new Error("Record plugin not initialized");if(this.isRecording)return;const e=typeof this.options.sampleRate=="number"?this.options.sampleRate:void 0,o={};e!==void 0&&(o.sampleRate={ideal:e}),await this.startRecordingWithConstraints(o,e!==void 0)}async startRecordingWithConstraints(e,o){if(!this.recordPlugin)throw new Error("Record plugin not initialized");try{const n=Object.keys(e).length?e:void 0;await this.recordPlugin.startRecording(n)}catch(n){const r=n instanceof Error?n:new Error(String(n));if(I(r))throw this.events.onPermissionDenied?.(),new Error("Microphone permission denied");if(o&&(r.name==="OverconstrainedError"||r.name==="NotReadableError")){this.options.sampleRate=void 0,await this.startRecordingWithConstraints({},!1);return}throw this.events.onError?.(r),r}}async stopRecording(){if(!this.recordPlugin||!this.isRecording)throw new Error("Not currently recording");try{return await new Promise((e,o)=>{this.recordEndResolve=e,this.recordEndReject=o,this.recordPlugin?.stopRecording()})}catch(e){const o=e instanceof Error?e:new Error(String(e));throw this.events.onError?.(o),o}}cancelRecording(){this.recordPlugin&&this.isRecording&&(this.recordPlugin.stopRecording(),this.isRecording=!1,this.recordEndResolve=null,this.recordEndReject=null)}destroy(){this.cancelRecording(),this.recordPlugin&&(this.recordPlugin.destroy(),this.recordPlugin=null),this.wavesurfer=null,this.events={}}}const X=4,Y=4,ee=8,re=0,te=16e3;function se({containerRef:l,sampleRate:e,events:o,waveformPadding:n=0}){const r=Z(),[d,s]=i.useState("idle"),[p,h]=i.useState(null),[m,c]=i.useState(!1),u=i.useRef(null),y=i.useRef(null),a=i.useRef(null),f=i.useRef(o),U=i.useRef(!1),D=i.useRef(!1),E=i.useRef(new Set),P=i.useRef(!1),b=e===void 0?te:e,A=i.useCallback(()=>{E.current.clear(),c(!1),y.current&&(y.current.destroy(),y.current=null),a.current&&(a.current.destroy(),a.current=null),u.current&&(u.current.destroy(),u.current=null),U.current=!1,P.current=!1,s("idle"),h(null)},[]),x=i.useCallback(()=>{const t=Array.from(E.current);E.current.clear(),t.forEach(w=>{w.resolve()})},[]),_=i.useCallback(t=>{c(!1);const w=Array.from(E.current);E.current.clear(),w.forEach(v=>{v.reject(t)})},[]),T=i.useCallback(t=>{const w={onPlay:()=>{c(!0),f.current.onPlaybackPlay?.()},onPause:()=>{c(!1),f.current.onPlaybackPause?.()},onFinish:()=>{c(!1),f.current.onPlaybackFinish?.()},onReady:()=>{x()},onError:v=>{c(!1),_(v),f.current.onError?.(v)}};t.setEventHandlers(w)},[x,_]);i.useEffect(()=>{f.current=o,a.current&&T(a.current)},[o,T]);const S=i.useCallback(async()=>{if(!(U.current||D.current||!l.current)){D.current=!0;try{const[t,w]=await Promise.all([M(()=>import("./wavesurfer.esm.D1Sty35j.js"),[],import.meta.url),M(()=>import("./record.DytFsBUt.js"),[],import.meta.url)]),v=t.default,B=w.default,k=v.create({container:l.current,waveColor:r.colors.primary,progressColor:r.colors.bodyText,height:n>0?$(r.sizes.largestElementHeight)-2*n:"auto",barWidth:X,barGap:Y,barRadius:ee,cursorWidth:re,interact:!0});u.current=k,P.current=!1;const C=new Q({sampleRate:b});C.initialize(k,B),C.setEventHandlers({onRecordProgress:R=>{f.current.onProgressMs?.(R)},onPermissionDenied:()=>{f.current.onPermissionDenied(),s("idle")},onError:R=>{f.current.onError(R),s("idle")}}),y.current=C;const g=new W;g.initialize(k),a.current=g,T(g),U.current=!0}catch(t){const w=t instanceof Error?t:new Error(String(t));f.current.onError?.(w)}finally{D.current=!1}}},[l,r,b,T,n]);i.useEffect(()=>(S(),()=>{A()}),[A,S]),i.useEffect(()=>{const t=u.current;if(t){if(d==="recording"){t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary});return}if(P.current){t.setOptions({interact:!0,waveColor:O(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText});return}t.setOptions({waveColor:r.colors.primary,progressColor:r.colors.bodyText})}},[d,r.colors.bodyText,r.colors.fadedText40,r.colors.primary,r.colors.secondaryBg]);const F=i.useCallback(async()=>{if(d!=="recording"){if(U.current||await S(),!y.current)throw new Error("Record backend not initialized");u.current&&u.current.setOptions({waveColor:r.colors.primary,progressColor:r.colors.primary}),P.current=!1,await y.current.startRecording(),s("recording"),h(null),c(!1),f.current.onRecordStart?.()}},[d,S,r.colors.primary]),L=i.useCallback(()=>{a.current&&u.current&&(a.current.destroy(),a.current=new W,a.current.initialize(u.current),E.current.clear(),c(!1),T(a.current)),P.current=!1},[T]),z=i.useCallback(()=>{a.current?.seekToStart(),c(!1),P.current=!0,u.current&&u.current.setOptions({interact:!0,waveColor:O(r.colors.fadedText40,r.colors.secondaryBg),progressColor:r.colors.bodyText})},[r.colors.bodyText,r.colors.fadedText40,r.colors.secondaryBg]),H=i.useCallback(async()=>{if(d!=="recording")throw new Error("Not currently recording");if(!y.current||!a.current)throw new Error("Backends not initialized");try{const t=await y.current.stopRecording();h(t),await new Promise((k,C)=>{if(!a.current){C(new Error("Player not initialized"));return}const g={resolve:()=>{E.current.delete(g),k()},reject:R=>{E.current.delete(g),C(R)}};E.current.add(g),a.current.load(t).catch(R=>{E.current.delete(g),C(R instanceof Error?R:new Error(String(R)))})}),s("idle"),c(!1),z();const v={durationMs:a.current?.getDuration()??0,sampleRate:typeof b=="number"?b:null,mimeType:t.type||"audio/webm",size:t.size},B={blob:t,meta:v};return f.current.onRecordReady?.(t),B}catch(t){const w=t instanceof Error?t:new Error(String(t));return c(!1),s("idle"),f.current.onError(w),{blob:new Blob,meta:{durationMs:0,sampleRate:null,mimeType:"audio/webm",size:0}}}},[d,z,b]),j=i.useCallback(async t=>{const w=t??p;if(!w){const v=new Error("No recorded audio to approve");f.current.onError(v);return}try{const v=await q(w,b);await f.current.onApprove?.(v),h(null),s("idle")}catch(v){const B=v instanceof Error?v:new Error(String(v));f.current.onError(B)}},[p,b]),N=i.useCallback(()=>{d==="recording"&&y.current?.cancelRecording(),L(),h(null),s("idle"),c(!1),P.current=!1,f.current.onCancel?.()},[d,L]),V=i.useMemo(()=>({isPlaying:()=>a.current?.getIsPlaying()??!1,play:async()=>{if(!a.current)throw new Error("Player not initialized");await a.current.play()},pause:()=>{a.current?.pause()},load:async t=>{if(U.current||await S(),!a.current)throw new Error("Player not initialized");await a.current.load(t),z()},getCurrentTimeMs:()=>a.current?.getCurrentTime()??0,getDurationMs:()=>a.current?.getDuration()??0}),[z,S]),G=i.useCallback(t=>{f.current=t},[]);return i.useEffect(()=>()=>{A()},[A]),{state:d,isPlaybackPlaying:m,mountRef:l,start:F,stop:H,approve:j,cancel:N,destroy:A,playback:V,setEventHandlers:G}}export{se as u};
|
streamlit/static/static/js/{withCalculatedWidth.BtA2jL5-.js → withCalculatedWidth.CD0pPoZr.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l,k as h,j as s,d as n}from"./index.
|
|
1
|
+
import{h as l,k as h,j as s,d as n}from"./index.01VsD2h1.js";const o=t=>{const a=e=>{const{width:i,elementRef:c}=h();return s(n,{ref:c,children:s(t,{...e,width:i})})};return a.displayName=`withCalculatedWidth(${t.displayName||t.name})`,l(a,t)};export{o as w};
|
streamlit/static/static/js/{withFullScreenWrapper.CeeoYBpc.js → withFullScreenWrapper.Ch22PgdD.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,F as f,b7 as p,b8 as h,l as x,k as y,j as i,h as g}from"./index.
|
|
1
|
+
import{r as n,F as f,b7 as p,b8 as h,l as x,k as y,j as i,h as g}from"./index.01VsD2h1.js";const m=n.createContext(null);m.displayName="ElementFullscreenContext";const w=f("div",{target:"e5bcvgj0"})(({theme:e,isExpanded:t})=>({width:"100%",height:"100%",...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.fullScreenHeaderHeight,overflow:"auto",display:"flex",alignItems:"center",justifyContent:"center"}:{}})),C=()=>{const{setFullScreen:e}=n.useContext(p),[t,s]=n.useState(!1),{fullHeight:a,fullWidth:c}=h(),l=n.useCallback(r=>{s(r),e(r)},[e]),u=n.useCallback(()=>{document.body.style.overflow="hidden",l(!0)},[l]),o=n.useCallback(()=>{document.body.style.overflow="unset",l(!1)},[l]),d=n.useCallback(r=>{r.keyCode===27&&t&&o()},[o,t]);return n.useEffect(()=>(document.addEventListener("keydown",d,!1),()=>{document.removeEventListener("keydown",d,!1)}),[d]),n.useMemo(()=>({expanded:t,zoomIn:u,zoomOut:o,fullHeight:a,fullWidth:c}),[t,u,o,a,c])},F=({children:e})=>{const t=x(),{expanded:s,fullHeight:a,fullWidth:c,zoomIn:l,zoomOut:u}=C(),{width:o,elementRef:d}=y(),r=n.useMemo(()=>({width:s?c:o,height:s?a:void 0,expanded:s,expand:l,collapse:u}),[s,a,c,o,l,u]);return i(m.Provider,{value:r,children:i(w,{ref:d,isExpanded:s,"data-testid":"stFullScreenFrame",theme:t,children:e})})};function S(e){const t=s=>i(F,{children:i(e,{...s})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,g(t,e)}export{m as E,S as w};
|
|
@@ -400,116 +400,116 @@ streamlit/runtime/state/session_state.py,sha256=Ht_GRl_frv9SEBD8onC25J4Z4HAJsZfX
|
|
|
400
400
|
streamlit/runtime/state/session_state_proxy.py,sha256=RI9QquUlMgK6XyUYF3PmpN1mfP6q-_SBju5pIFTrdRU,5585
|
|
401
401
|
streamlit/runtime/state/widgets.py,sha256=CMFaIT-M-59TrskR1zt9eeoea2JJ8_YbG64fbSyd8VA,6057
|
|
402
402
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
|
403
|
-
streamlit/static/index.html,sha256=
|
|
404
|
-
streamlit/static/manifest.json,sha256=
|
|
403
|
+
streamlit/static/index.html,sha256=Df5y7LklGSKuUrF8Fetqx6XunxmIkOUZXW8CdcPs-Cs,1522
|
|
404
|
+
streamlit/static/manifest.json,sha256=k1x0U6P3O4uyWYlijvWKPAsTCf6qYLK91lZcVZ-d6tk,54244
|
|
405
405
|
streamlit/static/static/css/index.BUP6fTcR.css,sha256=w3J3tj919duL4vtYdmJSXTglGUogRuPuwX9pZd4N9aU,30331
|
|
406
406
|
streamlit/static/static/css/index.BuwrT-ty.css,sha256=Qw-234aemgZdlkzLcmPcc4L5g3WaneJBM0uTqd0L2So,35080
|
|
407
407
|
streamlit/static/static/css/index.DgR7E2CV.css,sha256=XaAj_mKlhpcUTyfDwggG3Sd2DgaiU4U749jeLKb9FBI,12683
|
|
408
|
-
streamlit/static/static/js/ErrorOutline.esm.
|
|
409
|
-
streamlit/static/static/js/FileDownload.esm.
|
|
410
|
-
streamlit/static/static/js/FileHelper.
|
|
411
|
-
streamlit/static/static/js/FormClearHelper.
|
|
408
|
+
streamlit/static/static/js/ErrorOutline.esm.D0HiUB0L.js,sha256=U0Zo5akzQbw06f_mJyYtyzDvDx7fzlUW_WF-9efOL9M,499
|
|
409
|
+
streamlit/static/static/js/FileDownload.esm.BuUS-pfi.js,sha256=4nj0loSy-jRerAxtfc-jAYrClv2zuPCjJixqZ6AvJzU,918
|
|
410
|
+
streamlit/static/static/js/FileHelper.Pf8URFng.js,sha256=0ckO67NANTcNgnAUJJh0D3ns_WDoVij7c-BUNMvkZxI,61226
|
|
411
|
+
streamlit/static/static/js/FormClearHelper.By4vKj6A.js,sha256=LDE7yMwjHmO5PTVVhsc4As91LC5frZ6lGMj19khQTmE,611
|
|
412
412
|
streamlit/static/static/js/IFrameUtil.DefezniK.js,sha256=vHcPNVM2AZouiO3NiM8fcBjO0JE9niGWSdld1T5AQeQ,564
|
|
413
|
-
streamlit/static/static/js/InputInstructions.
|
|
414
|
-
streamlit/static/static/js/Particles.
|
|
415
|
-
streamlit/static/static/js/ProgressBar.
|
|
416
|
-
streamlit/static/static/js/StreamlitSyntaxHighlighter.
|
|
417
|
-
streamlit/static/static/js/TableChart.esm.
|
|
418
|
-
streamlit/static/static/js/Toolbar.
|
|
413
|
+
streamlit/static/static/js/InputInstructions.BiaGyIXk.js,sha256=zx96gHC6XnynJ598T17C47PXWoStq0ho3vWUAw2Yj5U,919
|
|
414
|
+
streamlit/static/static/js/Particles.2-EdjYhR.js,sha256=msg17QxDLUYh9iWPad9DKriiS9V02wbnFDu4ifPUU10,615
|
|
415
|
+
streamlit/static/static/js/ProgressBar.Dgbh0B0d.js,sha256=3323DWzfnmcFHC5Kvoox1hgoc8SQhJbxMBolusT-6Y0,13320
|
|
416
|
+
streamlit/static/static/js/StreamlitSyntaxHighlighter.DSl8Wr3R.js,sha256=uFb6ZUJ75wfKd-ZbWKjCJ13mEQvMjawl3nh5qm1Dm58,1620541
|
|
417
|
+
streamlit/static/static/js/TableChart.esm.MOwyTUPh.js,sha256=0m5H2gDWrz0hWg9TO9C5oje8z0YdF6x0-3QJItnpr5k,526
|
|
418
|
+
streamlit/static/static/js/Toolbar.CowuXIFr.js,sha256=dXONwcS7_uZH8HcI5wbrxOEnPZresFO1e7XZrBexjVs,2916
|
|
419
419
|
streamlit/static/static/js/UploadFileInfo.Dr-zDST7.js,sha256=5a_iq85gVIuXJJ3oRHHpEtx73pm7QA2BwIcrkQUkpiI,175
|
|
420
|
-
streamlit/static/static/js/WidgetLabelHelpIconInline.
|
|
420
|
+
streamlit/static/static/js/WidgetLabelHelpIconInline.BdGIJQe4.js,sha256=G2cZ3pwe7ZdznCB-1fKby1Etu0NuwLbQrfKfxfMxbEs,348
|
|
421
421
|
streamlit/static/static/js/_arrayIncludes.B19Iyn2B.js,sha256=JP-DCSLwDMyVDLPMC1_99tqHMMNzTx8SwAT1rVKXIAA,127
|
|
422
422
|
streamlit/static/static/js/_baseIndexOf.BTknn6Gb.js,sha256=qpBWPWZljEJmX5vLgn6Tup6ZhVl54fGKj7xVTKZ2Ep0,258
|
|
423
|
-
streamlit/static/static/js/base-input.
|
|
424
|
-
streamlit/static/static/js/checkbox.
|
|
425
|
-
streamlit/static/static/js/createDownloadLinkElement.
|
|
426
|
-
streamlit/static/static/js/data-grid-overlay-editor.
|
|
427
|
-
streamlit/static/static/js/downloader.
|
|
428
|
-
streamlit/static/static/js/embed.
|
|
429
|
-
streamlit/static/static/js/es6.
|
|
423
|
+
streamlit/static/static/js/base-input.CHPo5oJ1.js,sha256=qvouqrjZB2MGmIlHm1zOf8IQPxpLLYwIe_uH-FhgeA8,21773
|
|
424
|
+
streamlit/static/static/js/checkbox.Dkt2TQVS.js,sha256=3h1QL464h8wgEi0K6o_2d5uBP40OTkoCukKamVOoZfM,11245
|
|
425
|
+
streamlit/static/static/js/createDownloadLinkElement.BaE-_v8I.js,sha256=IWFwS0SdXJoRVsJUObPjGj2mS-Ayowie3KuSUY1fUDo,388
|
|
426
|
+
streamlit/static/static/js/data-grid-overlay-editor.C1ncL-Nr.js,sha256=zdhcGkFWuuSzkOes-qrNFrmMNo-6-ik0OoCIL-VxVic,4399
|
|
427
|
+
streamlit/static/static/js/downloader.yaq2AzD9.js,sha256=CZyln3xQvqqNDlFubwY_HdJz5XHUUXtwKrDDvhbAQqM,2510
|
|
428
|
+
streamlit/static/static/js/embed.DJJvCVz2.js,sha256=Rc306xtXf6lPadFMb_33-5C12M9MaZ3QoOeuM9PY2ak,831630
|
|
429
|
+
streamlit/static/static/js/es6.D2jK98VU.js,sha256=0f815QAQHggEoGeCb6eWta2smuy0EBKBrJyEmD5EDxI,14634
|
|
430
430
|
streamlit/static/static/js/formatMoment.C6Hwn6X5.js,sha256=lIQHfN3RbfShBuVFfO9t_az4TUNV678ZJJSQYqRuANY,575
|
|
431
|
-
streamlit/static/static/js/formatNumber.
|
|
432
|
-
streamlit/static/static/js/iconPosition.
|
|
433
|
-
streamlit/static/static/js/iframeResizer.contentWindow.
|
|
431
|
+
streamlit/static/static/js/formatNumber.Cxr2q_Sk.js,sha256=JIzSgx8DQ6wvWb3NrrC1JG8wHlwTENPKY40WYgbF7ng,1818
|
|
432
|
+
streamlit/static/static/js/iconPosition.5dHEZYw2.js,sha256=8baDLRU4TwRv4f4wZMDQ2AEwDv10BHP462GyQWrePts,203
|
|
433
|
+
streamlit/static/static/js/iframeResizer.contentWindow.Cedt4qbc.js,sha256=aDKD7fTMXVCZLl38st4DWHcYXM9Greu126bIIPmqVPE,14409
|
|
434
|
+
streamlit/static/static/js/index.01VsD2h1.js,sha256=qQYPo1ZrNAMz3iaiBZOcn-YsAYOlCqFO9Zq-2mh5MG0,2295369
|
|
435
|
+
streamlit/static/static/js/index.1djeb6e0.js,sha256=38bUN1U8vBezGDF9UoeeLBr8ior2SWh1OPp8BsC7uOw,2998
|
|
436
|
+
streamlit/static/static/js/index.6_D2Y2jA.js,sha256=NK9frTKWuXbttGaMLo9nbmXkFV0e8FLi3Mqr8Mdl4QI,24096
|
|
434
437
|
streamlit/static/static/js/index.8HslT92O.js,sha256=Ahu9KsYwa_TyEGNbQBWydVmpBAsTcDdi0zdwD-Wf8ME,27051
|
|
435
|
-
streamlit/static/static/js/index.
|
|
436
|
-
streamlit/static/static/js/index.
|
|
437
|
-
streamlit/static/static/js/index.
|
|
438
|
-
streamlit/static/static/js/index.
|
|
438
|
+
streamlit/static/static/js/index.B0GsKOuI.js,sha256=sT1sQFRaG4J0NFX-GQPDtD-rLsGvbt-BBA3jJQxOPiI,4874479
|
|
439
|
+
streamlit/static/static/js/index.B2TDaHdI.js,sha256=XS6BCIPQB4u8gm2cGpCoBmuHaCiu0s3eqgDr4h_r07k,878
|
|
440
|
+
streamlit/static/static/js/index.B4x2O71H.js,sha256=FrDSowP3xMjLXCMQC56jf-hYXtItk6wqU9cgdpywdtg,3928
|
|
441
|
+
streamlit/static/static/js/index.B6EliwN_.js,sha256=gxPuldpv73NSKFsODitsJptzrb17JQm1EECqelATnJs,1560
|
|
442
|
+
streamlit/static/static/js/index.B6Uhb_NP.js,sha256=wnU_Yfl_Y4zOkdIQQUoGnXVzGI_AGYDVYkLfoElzIkg,100087
|
|
443
|
+
streamlit/static/static/js/index.B7EzT2pL.js,sha256=wzbM8S2hLiGbfYrOm2XSK4flBlbA1b903fjkDab-GYg,13914
|
|
444
|
+
streamlit/static/static/js/index.B9DrCSR6.js,sha256=jESkBmNuZxWcOgqFIOpixQkh5w0FKZsAnO70W0tQhsI,18346
|
|
439
445
|
streamlit/static/static/js/index.BBTKOM0z.js,sha256=-L-kKO9s5qX0eLfjdpWq_CHhzPvtPGA1A0oRn-RB8HM,36545
|
|
440
|
-
streamlit/static/static/js/index.
|
|
441
|
-
streamlit/static/static/js/index.
|
|
442
|
-
streamlit/static/static/js/index.
|
|
443
|
-
streamlit/static/static/js/index.
|
|
444
|
-
streamlit/static/static/js/index.
|
|
445
|
-
streamlit/static/static/js/index.
|
|
446
|
-
streamlit/static/static/js/index.
|
|
447
|
-
streamlit/static/static/js/index.
|
|
448
|
-
streamlit/static/static/js/index.
|
|
449
|
-
streamlit/static/static/js/index.
|
|
450
|
-
streamlit/static/static/js/index.
|
|
451
|
-
streamlit/static/static/js/index.
|
|
452
|
-
streamlit/static/static/js/index.
|
|
453
|
-
streamlit/static/static/js/index.
|
|
454
|
-
streamlit/static/static/js/index.
|
|
455
|
-
streamlit/static/static/js/index.
|
|
456
|
-
streamlit/static/static/js/index.
|
|
457
|
-
streamlit/static/static/js/index.
|
|
458
|
-
streamlit/static/static/js/index.
|
|
459
|
-
streamlit/static/static/js/index.
|
|
460
|
-
streamlit/static/static/js/index.
|
|
461
|
-
streamlit/static/static/js/index.
|
|
462
|
-
streamlit/static/static/js/index.
|
|
463
|
-
streamlit/static/static/js/index.
|
|
464
|
-
streamlit/static/static/js/index.
|
|
465
|
-
streamlit/static/static/js/index.
|
|
466
|
-
streamlit/static/static/js/index.
|
|
467
|
-
streamlit/static/static/js/index.
|
|
468
|
-
streamlit/static/static/js/index.
|
|
469
|
-
streamlit/static/static/js/index.
|
|
470
|
-
streamlit/static/static/js/index.
|
|
471
|
-
streamlit/static/static/js/index.
|
|
472
|
-
streamlit/static/static/js/index.
|
|
473
|
-
streamlit/static/static/js/index.
|
|
446
|
+
streamlit/static/static/js/index.BCCeRfnu.js,sha256=qml-8E9sW00g8RTBuAnV-vyMazqNlfBcMu-ac1lhONU,1398
|
|
447
|
+
streamlit/static/static/js/index.BFopzcDu.js,sha256=ofTud3je-NiCZaq2XbKc2WRR-v50N7gUpz8Qac2ianA,13695
|
|
448
|
+
streamlit/static/static/js/index.BHMoYAbd.js,sha256=qrdfjSmPFr3DCT6et16SE_A0DZ7vtmWMW01w94wmgG0,7264
|
|
449
|
+
streamlit/static/static/js/index.BMPclSge.js,sha256=9wv61MeefQs5Z1ODtrMDcoUxucUj2ib7VGj2WyqT4cs,443995
|
|
450
|
+
streamlit/static/static/js/index.BVit6ClT.js,sha256=01bt9FaC3dBrCuedlYvlWAoGhBLSWLPvmrHhEPIQ3iA,828422
|
|
451
|
+
streamlit/static/static/js/index.BXCQzqUL.js,sha256=6INfYQM25vnhd3cVdjfK3Qii6LLJ-c2NMsTq5dBdQzw,35980
|
|
452
|
+
streamlit/static/static/js/index.Ba6hzYdl.js,sha256=autXAoDuaedCNWZviKLUP0aW1xWlCAMw5rv7boovxRo,2824
|
|
453
|
+
streamlit/static/static/js/index.Bb9kjc_v.js,sha256=YtRs3GCTwSagqGqvxXHKvsRxy7iVqgICUJPkc-XpZzw,9184
|
|
454
|
+
streamlit/static/static/js/index.BgVtKHgk.js,sha256=NxinI7wiRi7QhdD-5yNyv04uCOwoF1XAAmu2mLhfipE,24369
|
|
455
|
+
streamlit/static/static/js/index.BkDplL5I.js,sha256=0v-XoW-tjRv4bYS_oVmJmnCI8SIFWK04SZRd-bWx_8Q,442
|
|
456
|
+
streamlit/static/static/js/index.C8PH2B2k.js,sha256=79vfz-V5yliIUH7N91exqV5rIKTYqwR5KB5oB_574_g,2967
|
|
457
|
+
streamlit/static/static/js/index.CAobVzMK.js,sha256=vrL1SEz9ig8DvFeLIdArnliZ30NosxTfxCs4v64QZJA,2604887
|
|
458
|
+
streamlit/static/static/js/index.CD8IIWcc.js,sha256=ImWtcQKyA5lYnlxs2adePVlXLyrsu4xh2P5dyizbRJQ,750
|
|
459
|
+
streamlit/static/static/js/index.CIlqaESj.js,sha256=W4__pkyWsJksmvUiw_mncNlc7SoVwpuSnEn1B_czrTY,226891
|
|
460
|
+
streamlit/static/static/js/index.CT9jvPcD.js,sha256=7sMBEABpZDXizshX_ObwmPgnl0Wo5V2Buzy_iS9MvRk,3252
|
|
461
|
+
streamlit/static/static/js/index.CcHnYd9w.js,sha256=WUtWqhbwyQz3_GffMaOKpQH0NUw--OtWiNaPm9UKMHM,13388
|
|
462
|
+
streamlit/static/static/js/index.CcJEaOpw.js,sha256=x22QPj_pQbzSBAw6G0uAjYQ4cphtYJfITs_X1nm6z28,13944
|
|
463
|
+
streamlit/static/static/js/index.CjQo7CUO.js,sha256=CoP89SMqwi_q_ja7g201oyVfhfixoOnB_sRrKSFNe-U,6906
|
|
464
|
+
streamlit/static/static/js/index.D2EVLt1U.js,sha256=USwkYrAa74y_wr8yFj7EIo4WhaiBtfs3K7_SuTLTZLo,2219
|
|
465
|
+
streamlit/static/static/js/index.D2v1x0i_.js,sha256=P7TdHyPXqKTbkjrsGLEi6sPI7Ap3P545HHivnuPGO1Y,1834
|
|
466
|
+
streamlit/static/static/js/index.D6ea3OJl.js,sha256=b1ge-LEBMeCgGqOGTAThJr49SEAaVRyUn3ktXr3Hi5I,1605
|
|
467
|
+
streamlit/static/static/js/index.DKUtJ1wC.js,sha256=zJdPN1h7kLM2sVFmCVDgvBKxpyhJhVbYrRgnSa1IILA,5820
|
|
468
|
+
streamlit/static/static/js/index.DLB_Wwth.js,sha256=YNdTtJI3082s6ILeR9z75IvippdxWV9rpYn05Oqu2eg,190412
|
|
469
|
+
streamlit/static/static/js/index.DaITTdfQ.js,sha256=ZdIw6MODD9APkM0_WIjDxZC0VE0NjG3t5pokrGuAVVw,271288
|
|
470
|
+
streamlit/static/static/js/index.DbTMA1_Q.js,sha256=sNTKVk0TGKWLPuG6QMeeoclc4vJH-jkWod_9YQBtGc0,19038
|
|
471
|
+
streamlit/static/static/js/index.DcKOiCiE.js,sha256=imcRlmPJZ-ppU5Ws-86rqfkvBZ0PPdiW0VFN59TDUds,4165
|
|
472
|
+
streamlit/static/static/js/index.DeGjj5Xy.js,sha256=uaqCwSkUTQeA7xGKie305DjGkgR0BXW-YHZM7v1fQIo,4863
|
|
473
|
+
streamlit/static/static/js/index.Dewn3Ni9.js,sha256=c0c5YWB4mRWfgzMQAPzNwljG5oiWjZ5lsiAfl-5GXfg,18040
|
|
474
|
+
streamlit/static/static/js/index.DozBVd6-.js,sha256=H4pGsupQmNdOMo8eSGsFS8GjgxtzXH3lbrY2G76kKjY,1193
|
|
475
|
+
streamlit/static/static/js/index.DredtYc0.js,sha256=4IDVkbiZjzjhbdhfBeHGE0tyfkN2dSCDl79VgGUuXNo,3807
|
|
476
|
+
streamlit/static/static/js/index.Dt0Psatx.js,sha256=nog-0QzH-ROneBjguW8xZoyQmyCa4ob8u6tqjjCGEwM,8012
|
|
477
|
+
streamlit/static/static/js/index.DtGneC7j.js,sha256=23zDMfbdjozTRcIA6onPO6ZrO1wqiOGZzH8ejUub7Bs,679
|
|
478
|
+
streamlit/static/static/js/index.P-CMMGUY.js,sha256=z_5ygxehIb7IyaByI-ExONLvwXbBX61JeD8H-o8hxUM,2671
|
|
479
|
+
streamlit/static/static/js/index.TO9vodwr.js,sha256=9KErMUdOqWmaAL1UYCCrFxW25MiitutdUys2FjOHFkc,1345
|
|
480
|
+
streamlit/static/static/js/index._nL4Yjdr.js,sha256=RwseQUW7rKmr4B4KGVw2hqZzqnHgjoHZaXVLPWHlXNw,8305
|
|
474
481
|
streamlit/static/static/js/index.bsVAaBS1.js,sha256=iWnuL74SwTYzvoX2fcuvoTFm5zB-8g4oiMdjHAZiH0g,252
|
|
475
|
-
streamlit/static/static/js/index.
|
|
476
|
-
streamlit/static/static/js/index.
|
|
477
|
-
streamlit/static/static/js/index.
|
|
478
|
-
streamlit/static/static/js/
|
|
479
|
-
streamlit/static/static/js/index.pgifwCIr.js,sha256=4CSDpbU13MINJlEHffotBC3GpZrejmP36QQ5o92fEVc,2671
|
|
480
|
-
streamlit/static/static/js/index.q83b8_8b.js,sha256=8zJho3Gw6HJda0g_bgrYtIcNi9KZC_cOc_gNaXM_2IY,27040
|
|
481
|
-
streamlit/static/static/js/index.u2AvcQQT.js,sha256=_KJ7bbPvE34Gb3zkdgKwR2EbDePx7SPdsJJTdhts1jE,2824
|
|
482
|
-
streamlit/static/static/js/index.w2_VrtVw.js,sha256=7OU0EPWRX0ARZzgbVMVxMtTv26SA0G2sCqWyFcjmzP8,190412
|
|
483
|
-
streamlit/static/static/js/index.wv1DYVsn.js,sha256=6De4UoAp49vNh7Gh-BhjPLxwQhlvGDnVAJimORTwZ2s,1193
|
|
484
|
-
streamlit/static/static/js/index.x4j6nnNb.js,sha256=mjPL9J-k58BYN792BJbU5yzyP2-aZ42X3qyk2QtaOfM,3807
|
|
485
|
-
streamlit/static/static/js/input.BoJqOS7a.js,sha256=zyhcWOhczXXL4UB9H_pzZxx8RMBva1GcrkzoxEX4nj0,5242
|
|
482
|
+
streamlit/static/static/js/index.i_eQw7NS.js,sha256=uDaSEnbyeDT0AqvxZaRYeeF3LN2u0vbBEuP9-DnxLRE,27225
|
|
483
|
+
streamlit/static/static/js/index.qzz9PjCO.js,sha256=Qz7OUu3O1NCsTqCjV8s2ls916iQL-aitM0Vh8kvNLjk,2539
|
|
484
|
+
streamlit/static/static/js/index.wLJVkoPD.js,sha256=K1FiTVeT5ayRMxVAbz866wEsRsfeZDAN4eU1xwswQl0,2958
|
|
485
|
+
streamlit/static/static/js/input.27t-DftI.js,sha256=FeDyTufj-QaU6V5qrK4lir2MzNWFzbn6B1itDgJPEBA,5242
|
|
486
486
|
streamlit/static/static/js/inputUtils.CptNuJwn.js,sha256=v9SUbdkM8OJ6aT_EfTucTRNZh059kZ9Mut2oyTmv_98,124
|
|
487
|
-
streamlit/static/static/js/main.
|
|
488
|
-
streamlit/static/static/js/memory.
|
|
487
|
+
streamlit/static/static/js/main.BEfv2Y8-.js,sha256=WlOxsPvnCZwbrVm1T02REQqlXS5NQ5IKogW38DAFfXc,117541
|
|
488
|
+
streamlit/static/static/js/memory.CaZBVQ_1.js,sha256=rfxXx4zkJJ4McxekimKZ3prPoST_NBhhpR-iYUdiSfo,3041
|
|
489
489
|
streamlit/static/static/js/moment.C7qA8nIE.js,sha256=WGJqjUq9SPn-dCBlrSpQZOywPJ4xVg2eYZN-CP7-3X0,60773
|
|
490
|
-
streamlit/static/static/js/number-overlay-editor.
|
|
490
|
+
streamlit/static/static/js/number-overlay-editor.CAIp-3oo.js,sha256=fXkojGxA1E6lXR_WKCzkiAfKlbhTuWRuEICeqBSwxsk,16652
|
|
491
491
|
streamlit/static/static/js/numbro.B9_PXfzp.js,sha256=JcWnIUWk7g3KL9hw0uuI--Tp_c_VOTPXqigpxrpjzeo,39660
|
|
492
|
-
streamlit/static/static/js/pandasStylerUtils.
|
|
492
|
+
streamlit/static/static/js/pandasStylerUtils.BY9qaz81.js,sha256=_1yPXC4CBCD_YRRL1kz-f3Xeek-3aDEbykuGvIUsF5E,739437
|
|
493
493
|
streamlit/static/static/js/record.DytFsBUt.js,sha256=1w_An_VyZRJTSv6lYzs_Sz9SOgdyfRSOG846ygJS4MY,8028
|
|
494
|
-
streamlit/static/static/js/sandbox.
|
|
494
|
+
streamlit/static/static/js/sandbox.BJUaaWFJ.js,sha256=nbjAeooCIt8-iIwS83sZk4UlkMGIANO36-G3CRvRgpY,2960
|
|
495
495
|
streamlit/static/static/js/sprintf.DpPCfzXw.js,sha256=SggQTlOztni2KsY0aRfgxAjYLCwS7NSUUSCbzZtYpr8,3436
|
|
496
|
-
streamlit/static/static/js/styled-components.
|
|
496
|
+
streamlit/static/static/js/styled-components.DQsMkvXn.js,sha256=5titHEJjnLLa0dx-aRE4cIQ3IyzCK7M62BuLMyD0y18,468
|
|
497
497
|
streamlit/static/static/js/threshold.CUNQbqMA.js,sha256=Q3du4LR3IorexmjW-Ab8y_y_9cO_8M_ddTX6YKht2p8,5698
|
|
498
|
-
streamlit/static/static/js/throttle.
|
|
499
|
-
streamlit/static/static/js/timepicker.
|
|
498
|
+
streamlit/static/static/js/throttle.DSR3q89S.js,sha256=bc0_1EsZ8oZZsd3CbK63T50HqPlokeRh2dAkshyNEAU,1262
|
|
499
|
+
streamlit/static/static/js/timepicker.gie5YwtP.js,sha256=ew0gx2Q4ttFNJqJ_c5yxOYleSop_aExyv_HADprWmR0,89207
|
|
500
500
|
streamlit/static/static/js/timer.BZio6gjG.js,sha256=vRTmDI39QE6fIvFrIvCwyjsG8MNme68-qu_yYiNUaqQ,7410
|
|
501
|
-
streamlit/static/static/js/toConsumableArray.
|
|
502
|
-
streamlit/static/static/js/uniqueId.
|
|
501
|
+
streamlit/static/static/js/toConsumableArray.C9lVwnAo.js,sha256=T_l2cliiB0QFFAVn7pjaXQ6MPqYuXNJIvp0nXCbBRic,877
|
|
502
|
+
streamlit/static/static/js/uniqueId.BdEQNrWF.js,sha256=6Kbk2yLruP4qUVBdO46eTMHfE-QTXyTeCu8ZuDhSxOM,97
|
|
503
503
|
streamlit/static/static/js/urls.BwSlolu9.js,sha256=oj7KbEdZXmm91zYfQyVjZY6MYvu7aKe2nX2Uzq_T5c4,275
|
|
504
|
-
streamlit/static/static/js/useBasicWidgetState.
|
|
505
|
-
streamlit/static/static/js/useIntlLocale.
|
|
506
|
-
streamlit/static/static/js/useTextInputAutoExpand.
|
|
507
|
-
streamlit/static/static/js/useUpdateUiValue.
|
|
508
|
-
streamlit/static/static/js/useWaveformController.
|
|
504
|
+
streamlit/static/static/js/useBasicWidgetState.DrTKs46R.js,sha256=4602Bt2xi-kipRzq9TY8aa7-h55RHypHkhy2v_ks6gM,953
|
|
505
|
+
streamlit/static/static/js/useIntlLocale.CmSionuT.js,sha256=8ABkBH68LDMne_Fh-2udnw6c-mibr7YSIUQuOmfl-ag,109692
|
|
506
|
+
streamlit/static/static/js/useTextInputAutoExpand.D7lViJSu.js,sha256=-TqN8gTvB-Vt_eennd1I8MWWcwN0GprpBjL1y-IcmVs,6643
|
|
507
|
+
streamlit/static/static/js/useUpdateUiValue.Ct3CJQBQ.js,sha256=QUg6bav8wKpkxfEP8EG3dO34sgEP2cvN0vlVQUfp9FE,615
|
|
508
|
+
streamlit/static/static/js/useWaveformController.D-KQLpLI.js,sha256=16QUgNkwaEuxHRo5UXVoMlqcORvVZF1kmdHYnzLxirU,12364
|
|
509
509
|
streamlit/static/static/js/value.DaKxGC7O.js,sha256=bicc2v81rJzY9PmrISkaY1Z9A3aJmsRRK5aMj5nGmrc,15044
|
|
510
510
|
streamlit/static/static/js/wavesurfer.esm.D1Sty35j.js,sha256=GYinzhehnkxBppDnKJLH3b87dUJ7gBJxN8F1D3_Hn6E,39578
|
|
511
|
-
streamlit/static/static/js/withCalculatedWidth.
|
|
512
|
-
streamlit/static/static/js/withFullScreenWrapper.
|
|
511
|
+
streamlit/static/static/js/withCalculatedWidth.CD0pPoZr.js,sha256=hBLQ7w3GywvgSs3u9VdLND3gsl-osrWBdOrjBp-URwg,260
|
|
512
|
+
streamlit/static/static/js/withFullScreenWrapper.Ch22PgdD.js,sha256=-5_6VELCnWyHHn3JnqhW0uyC40ByoROvDOxKAIeDPHg,1541
|
|
513
513
|
streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
|
514
514
|
streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
|
515
515
|
streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
|
@@ -634,9 +634,9 @@ streamlit/web/server/starlette/starlette_server.py,sha256=pBmwN6nFEruMonhajjd-ID
|
|
|
634
634
|
streamlit/web/server/starlette/starlette_server_config.py,sha256=_cgub_NiTO-52etLfEMIoe5bWgA3TVianT2mYCVQmqo,2508
|
|
635
635
|
streamlit/web/server/starlette/starlette_static_routes.py,sha256=sDLGRlIvFCBQieXOf0BmueYVP3KJTfvGy-ux3Tk4D6E,7547
|
|
636
636
|
streamlit/web/server/starlette/starlette_websocket.py,sha256=f64fojwihK7XXIfYT4HGNLd1TPZJMT7JEK43h4ScDAg,21338
|
|
637
|
-
streamlit_nightly-1.52.3.
|
|
638
|
-
streamlit_nightly-1.52.3.
|
|
639
|
-
streamlit_nightly-1.52.3.
|
|
640
|
-
streamlit_nightly-1.52.3.
|
|
641
|
-
streamlit_nightly-1.52.3.
|
|
642
|
-
streamlit_nightly-1.52.3.
|
|
637
|
+
streamlit_nightly-1.52.3.dev20260111.data/scripts/streamlit.cmd,sha256=es_jE8w9dt6l9DA40xFlQjGJeVq1Of8rDJQNibPUlEA,676
|
|
638
|
+
streamlit_nightly-1.52.3.dev20260111.dist-info/METADATA,sha256=PRI2BO5mQYgsvpNdtbUt6RQxMaSGEkPVA-1gnbTj7DE,10214
|
|
639
|
+
streamlit_nightly-1.52.3.dev20260111.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
640
|
+
streamlit_nightly-1.52.3.dev20260111.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
|
641
|
+
streamlit_nightly-1.52.3.dev20260111.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
|
642
|
+
streamlit_nightly-1.52.3.dev20260111.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,E as b,_ as E,W as te,F as h,aj as xt,m as ee,ct as x,cu as zt,o as S,j as a,P as Vt,az as V,aA as Rt,a0 as P,b as re,B as oe,Z as At,bX as ne,l as ae,k as ie,b8 as le,cv as se,e as J,bS as bt,bT as ce,ab as de}from"./index.BZBWLU1C.js";import{I as ue,g as Et,F as X,E as Dt,b as pe,s as ge,u as he,a as fe}from"./FileHelper.D0dQPhOs.js";import{u as we}from"./useWaveformController.vLi36Ir4.js";import{I as me}from"./InputInstructions.D7Hxdzwv.js";import{u as ve,T as St}from"./useTextInputAutoExpand.PAFB5o1T.js";import{i as Ce}from"./inputUtils.CptNuJwn.js";import{T as ye}from"./TableChart.esm.DDVoSKOT.js";import{E as xe}from"./ErrorOutline.esm.BcqUpfNe.js";import{U as Mt}from"./UploadFileInfo.Dr-zDST7.js";import"./base-input.BX9Jll5o.js";var kt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),r.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});kt.displayName="Article";var Ft=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});Ft.displayName="Code";var Ut=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});Ut.displayName="Description";var Tt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});Tt.displayName="Folder";var Ht=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});Ht.displayName="Image";var Bt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});Bt.displayName="MusicNote";var Nt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});Nt.displayName="Videocam";var Lt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}))});Lt.displayName="Add";var et=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 000-1.41l-6.59-6.59a.996.996 0 00-1.41 0l-6.6 6.58a.996.996 0 101.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1z"}))});et.displayName="ArrowUpward";var Pt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});Pt.displayName="Cancel";var Wt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18 6.7l-8.48 8.48-3.54-3.54a.996.996 0 10-1.41 1.41l4.24 4.24c.39.39 1.02.39 1.41 0l9.18-9.18a.999.999 0 00-.01-1.42c-.37-.38-1-.38-1.39.01z"}))});Wt.displayName="Check";var Ot=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))});Ot.displayName="Close";var $t=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}))});$t.displayName="ErrorOutline";var Xt=r.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(b,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),r.createElement("path",{d:"M17.91 11c-.49 0-.9.36-.98.85C16.52 14.21 14.47 16 12 16s-4.52-1.79-4.93-4.15a.998.998 0 00-.98-.85c-.61 0-1.09.54-1 1.14.49 3 2.89 5.34 5.91 5.78V20c0 .55.45 1 1 1s1-.45 1-1v-2.08c3.02-.44 5.42-2.78 5.91-5.78.1-.6-.39-1.14-1-1.14z"}))});Xt.displayName="Mic";const $=te.getLogger("ChatInput"),be=h("div",{target:"e15qancx0"})({position:"relative",display:"flex",flexDirection:"column"}),Ee=h("div",{target:"e15qancx1"})(({theme:t})=>({backgroundColor:t.colors.secondaryBg,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.widgetBorderColor??t.colors.transparent,position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",flex:1,padding:t.spacing.lg,borderRadius:t.radii.default,boxSizing:"border-box",":focus-within":{borderColor:t.colors.primary}})),Se=h("div",{target:"e15qancx2"})(({theme:t})=>({position:"relative",display:"flex",flexDirection:"column",gap:t.spacing.sm})),Ie=h("div",{target:"e15qancx3"})({position:"relative",display:"flex",flexDirection:"column"}),ze=h("div",{target:"e15qancx4"})(({theme:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:t.spacing.sm})),Ve=h("div",{target:"e15qancx5"})(({theme:t})=>({display:"flex",flexDirection:"row",alignItems:"flex-end",width:"100%",marginTop:"auto",gap:t.spacing.lg})),Re=h("div",{target:"e15qancx6"})(({theme:t})=>({display:"flex",flexDirection:"row",flex:"1 0 0",gap:t.spacing.sm,alignItems:"center"})),Ae=h("div",{target:"e15qancx7"})(({theme:t})=>({display:"flex",flexDirection:"row",gap:t.spacing.sm,alignItems:"center",position:"relative"})),De=h("div",{target:"e15qancx8"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.lg,color:t.colors.fadedText60,fontSize:t.fontSizes.twoSm,textAlign:"right",whiteSpace:"nowrap",pointerEvents:"auto",cursor:"text",zIndex:t.zIndices.priority,"& .stChatInputInstructions":{position:"static"}})),U=h("button",{target:"e15qancx9"})(({theme:t,disabled:e,hasError:o,primary:s,withVerticalOffset:d})=>{if(s)return{border:"none",backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary,borderRadius:t.radii.button,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,marginBottom:d?t.sizes.chatInputButtonVerticalOffset:void 0,padding:t.spacing.xs,width:t.sizes.chatInputPrimaryButtonSize,height:t.sizes.chatInputPrimaryButtonSize,color:e?t.colors.fadedText40:t.colors.white,cursor:e?"not-allowed":"pointer",transition:"background-color 200ms ease","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:xt(t)},"&:hover":{backgroundColor:e?t.colors.darkenedBgMix15:t.colors.primary}};const f=ee(t),[c,v]=f?[t.colors.gray60,t.colors.gray80]:[t.colors.gray80,t.colors.gray40],C=()=>o?t.colors.redTextColor:e?c:v;return{border:"none",backgroundColor:t.colors.transparent,borderRadius:t.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:t.lineHeights.none,margin:t.spacing.none,padding:t.spacing.none,color:C(),pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{backgroundColor:f?t.colors.gray10:t.colors.gray90,boxShadow:xt(t)},"&:hover":{color:o?t.colors.red70:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.transparent,borderColor:t.colors.transparent,color:t.colors.gray60,cursor:"not-allowed"},"& svg":{width:t.iconSizes.lg,height:t.iconSizes.lg}}}),Me=h("div",{target:"e15qancx10"})(({isRecording:t})=>({display:t?"flex":"none",flex:1,alignItems:"center",minWidth:0})),ke=h("div",{target:"e15qancx11"})(({theme:t})=>({position:"relative",width:"100%",minHeight:t.sizes.minElementHeight,borderRadius:t.radii.default,overflow:"hidden","& > div":{position:"absolute",inset:0}})),jt=(t,e)=>e===x.Directory?{...t,webkitdirectory:"",multiple:!0}:t,Fe=(t,e)=>{if(!e||e.length===0)return!0;const o=t.name.toLowerCase(),s=o.lastIndexOf(".");if(s===-1||s===o.length-1)return e.some(c=>c===""||c===".");const d=o.substring(s),f=o.substring(s+1);return e.some(c=>{const v=c.toLowerCase();return v.startsWith(".")?d===v:f===v})},Ue=(t,e)=>Fe(t,e)?{isValid:!0}:{isValid:!1,errorMessage:`${t.type||"This type of"} files are not allowed.`},rt=t=>{switch(t){case x.None:return"a file";case x.Single:return"a file";case x.Multiple:return"files";case x.Directory:return"a directory";default:return zt(t),"a file"}},Te=h("div",{target:"e1w5pa0h0"})(({theme:t})=>({backgroundColor:t.colors.transparent,position:"absolute",inset:0,zIndex:t.zIndices.priority,borderRadius:t.radii.chatInput})),He=h("div",{target:"e1w5pa0h1"})(({theme:t})=>({position:"absolute",inset:0,border:`${t.sizes.borderWidth} solid`,borderColor:t.colors.primary,borderRadius:t.radii.chatInput,backgroundColor:t.colors.secondaryBg,color:t.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:t.fontWeights.bold,pointerEvents:"none",zIndex:t.zIndices.priority})),Be=h("div",{target:"e1w5pa0h2"})(({disabled:t})=>({pointerEvents:t?"none":"auto"})),Ne=h("div",{target:"e1w5pa0h3"})(({theme:t})=>({lineHeight:t.lineHeights.tight})),Le=h("div",{target:"e1w5pa0h4"})(({theme:t})=>({display:"flex",flexWrap:"wrap",gap:t.spacing.sm})),Pe=h("div",{target:"e1w5pa0h5"})({flex:"0 0 auto",maxWidth:"100%"}),We=h("div",{target:"e1w5pa0h6"})(({theme:t,isError:e,isClickable:o})=>({position:"relative",display:"inline-flex",alignItems:"center",width:"fit-content",minWidth:"9rem",maxWidth:"100%",backgroundColor:e?t.colors.redBackgroundColor:t.colors.bgColor,padding:t.spacing.twoXS,paddingRight:t.spacing.twoXL,borderRadius:t.radii.default,gap:t.spacing.sm,cursor:o?"pointer":"default"})),Oe=h("div",{target:"e1w5pa0h7"})({display:"flex",flexDirection:"column",minWidth:0}),$e=h("div",{target:"e1w5pa0h8"})(({theme:t,fileStatus:e})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:t.radii.default,width:t.sizes.chatInputFileIconSize,height:t.sizes.chatInputFileIconSize,flexShrink:0,...e==="uploaded"&&{backgroundColor:t.colors.bodyText,color:t.colors.bgColor},...e==="uploading"&&{backgroundColor:t.colors.fadedText10,color:t.colors.fadedText60},...e==="error"&&{backgroundColor:t.colors.redBackgroundColor,color:t.colors.redTextColor}})),Xe=h("div",{target:"e1w5pa0h9"})(({theme:t,fileStatus:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:e.type==="uploading"?t.colors.fadedText60:t.colors.bodyText})),je=h("div",{target:"e1w5pa0h10"})(({theme:t})=>({color:t.colors.fadedText60,fontSize:t.fontSizes.sm})),qe=h("div",{target:"e1w5pa0h11"})(({theme:t})=>({color:t.colors.redTextColor,fontSize:t.fontSizes.sm})),_e=h("small",{target:"e1w5pa0h12"})(({theme:t})=>({position:"absolute",top:t.spacing.twoXS,right:t.spacing.twoXS,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,"& button":{display:"flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",minHeight:"unset",minWidth:"unset",maxHeight:"unset",maxWidth:"unset",borderRadius:"50%",backgroundColor:"transparent",color:t.colors.fadedText20,padding:0,overflow:"hidden",boxSizing:"border-box",lineHeight:0,"&:hover":{backgroundColor:"transparent",color:t.colors.fadedText40}}})),Ke=({getRootProps:t,getInputProps:e,acceptFile:o,disabled:s})=>{const d=jt(e(),o),f=t({tabIndex:-1});return S(Be,{"data-testid":"stChatInputFileUploadButton",disabled:s,...f,children:[a("input",{...d}),a(Rt,{content:`Upload or drag and drop ${rt(o)}`,placement:Vt.TOP,onMouseEnterDelay:500,children:a(U,{disabled:s,"aria-label":`Upload ${rt(o)}`,children:a(V,{content:Lt,size:"xl",color:"inherit"})})})]})},Ge=r.memo(Ke),Ye=({getRootProps:t,getInputProps:e,acceptFile:o})=>{const s=jt(e(),o);return S(P,{children:[a(Te,{...t(),children:a("input",{...s})}),a(He,{children:`Drag and drop ${rt(o)} here`})]})},Ze=r.memo(Ye),Je=new Set(["jpg","jpeg","png","gif","webp","svg","bmp"]),Qe=new Set(["pdf"]),tr=new Set(["csv","tsv","xlsx","xls"]),er=new Set(["txt","md","json","xml","yaml","yml"]),rr=new Set(["py","js","ts","jsx","tsx","css","html","java","cpp","c","go","rs","rb","php","swift","kt","scala","sh","bash","sql"]),or=new Set(["mp3","wav","m4a","ogg","flac","aac"]),nr=new Set(["mp4","webm","mov","avi","mkv","wmv"]),ar=new Set(["zip","tar","gz","rar","7z","bz2"]);function ir(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?"":t.slice(e+1).toLowerCase()}function lr(t){const e=ir(t);return Je.has(e)?Ht:Qe.has(e)?kt:tr.has(e)?ye:er.has(e)?Ut:rr.has(e)?Ft:or.has(e)?Bt:nr.has(e)?Nt:ar.has(e)?Tt:ue}const sr=36;function cr(t,e=sr){if(t.length<=e)return t;const o=t.lastIndexOf(".");if(!(o>0&&o<t.length-1)){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const d=t.slice(o),f=t.slice(0,o),c=e-d.length-3;if(c<=0){const p=Math.floor((e-3)/2),w=p>0?t.slice(-p):"";return`${t.slice(0,p)}...${w}`}const v=Math.ceil(c/2),C=Math.floor(c/2),m=C>0?f.slice(-C):"";return`${f.slice(0,v)}...${m}${d}`}const dr=({fileInfo:t})=>{const{type:e}=t.status;switch(e){case"uploading":return a(At,{iconValue:"spinner",testid:"stChatInputFileIconSpinner",size:"lg"});case"error":return a(V,{content:xe,size:"lg",testid:"stChatInputFileIconError"});case"uploaded":return a(V,{content:lr(t.name),size:"lg"});default:return zt(e),null}},ur=({fileInfo:t,onDelete:e,onRetry:o})=>{const s=t.status.type,d=s==="error",f=s==="uploading",c=d&&o!==void 0&&t.file!==void 0,v=t.status.type==="error"?t.status.errorMessage:"Upload failed",C=r.useCallback(()=>{c&&o(t)},[c,o,t]),m=r.useCallback(R=>{c&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),o(t))},[c,o,t]),p=r.useCallback(R=>{R.stopPropagation(),e(t.id)},[e,t.id]),w=f?`Cancel upload of ${t.name}`:`Remove ${t.name}`,g=Et(t.size,X.Byte),y=d?`${t.name}, ${v}`:`${t.name}, ${g}`;return S(We,{className:"stChatInputFile","data-testid":"stChatInputFile",isError:d,isClickable:c,onClick:c?C:void 0,onKeyDown:c?m:void 0,title:c?"Click to retry upload":void 0,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":y,children:[a($e,{fileStatus:s,children:a(dr,{fileInfo:t})}),S(Oe,{children:[a(Xe,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:t.name,fileStatus:t.status,children:cr(t.name)}),d?a(qe,{"data-testid":"stChatInputFileError",children:v}):a(je,{children:Et(t.size,X.Byte)})]}),a(_e,{"data-testid":"stChatInputDeleteBtn",children:a(re,{onClick:p,kind:oe.MINIMAL,"aria-label":w,children:a(V,{content:Pt,size:"md"})})})]})},pr=r.memo(ur),gr=({items:t,onDelete:e,onRetry:o})=>a(Ne,{"data-testid":"stChatUploadedFiles",children:a(Le,{children:t.map(s=>a(Pe,{children:a(pr,{fileInfo:s,onDelete:e,onRetry:o})},s.id))})}),hr=r.memo(gr),fr=(t,e)=>{const o=[],s=[];return t.forEach(d=>{const f=Ue(d,e.fileType);f.isValid?o.push(d):s.push({file:d,errors:[{code:Dt.FileInvalidType,message:f.errorMessage||"File type not allowed."}]})}),{accepted:o,rejected:s}},wr=({acceptMultipleFiles:t,acceptDirectoryFiles:e,maxFileSize:o,uploadClient:s,uploadFile:d,addFiles:f,getNextLocalFileId:c,deleteExistingFiles:v,onUploadComplete:C,element:m})=>(p,w)=>{if(e&&p.length>0){const{accepted:g,rejected:y}=fr(p,m);p=g,w=[...w,...y]}if(!t&&p.length===0&&w.length>1){const g=w.findIndex(y=>y.errors?.[0].code===Dt.TooManyFiles);g>=0&&(p.push(w[g].file),w.splice(g,1))}if(!t&&p.length>0&&v(),s.fetchFileURLs(p).then(g=>{ne(g,p).forEach(([y,R])=>{d(y,R)})}).catch(g=>{f(p.map(y=>new Mt(y.name,y.size,c(),{type:"error",errorMessage:g},y)))}),w.length>0){const g=w.map(y=>pe(y,c(),o));f(g)}C()},mr=({getNextLocalFileId:t,addFiles:e,updateFile:o,uploadClient:s,element:d,onUploadProgress:f,onUploadComplete:c})=>(v,C)=>{const m=C.webkitRelativePath||C.name,p=new AbortController,w=new Mt(m,C.size,t(),{type:"uploading",abortController:p,progress:1},C);e([w]),s.uploadFile({formId:"",...d},v.uploadUrl,C,g=>f(g,w.id),p.signal).then(()=>c(w.id,v)).catch(g=>{g instanceof DOMException&&g.name==="AbortError"||o(w.id,w.setStatus({type:"error",errorMessage:g?g.toString():"Unknown error"}))})};function It(t,e,o){return{Root:{style:{minHeight:t.sizes.chatInputTextareaMinHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",...o}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{fontWeight:t.fontWeights.normal,lineHeight:t.lineHeights.inputWidget,"::placeholder":{color:t.colors.fadedText60},height:e.height,maxHeight:e.maxHeight,overflowY:"auto",paddingLeft:t.spacing.none,paddingRight:t.spacing.none,paddingBottom:t.spacing.sm,paddingTop:t.spacing.sm,width:"100%"}}}}const Q=(t,e,o)=>o.map(s=>s.id===t?e:s),tt=(t,e)=>e.find(o=>o.id===t);function vr({disabled:t,element:e,widgetMgr:o,fragmentId:s,uploadClient:d}){const f=ae(),{placeholder:c,maxChars:v}=e,C=r.useRef(0),m=r.useRef(null),p=r.useRef(!1),w=r.useRef(null),g=r.useRef(null),{width:y,elementRef:R}=ie(),{innerWidth:ot,innerHeight:nt}=le(),[M,j]=r.useState(e.default),[D,k]=r.useState([]),[H,q]=r.useState(!1),[B,at]=r.useState(!1),[_,N]=r.useState(null),W=e.acceptAudio??!1;r.useEffect(()=>()=>{g.current&&g.current.abort()},[]);const T=ve({textareaRef:m,dependencies:[c]}),L=r.useMemo(()=>D.some(n=>n.status.type==="uploading")?!1:M!==""||D.length>0,[D,M]),I=se(e.acceptFile),it=ge(e.maxUploadSizeMb,X.Megabyte,X.Byte),lt=r.useCallback(n=>k(l=>[...l,...n]),[]),st=r.useCallback(n=>{n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&d.deleteFile(n.status.fileUrls.deleteUrl).catch(l=>{$.error("Failed to delete file from server:",l)})},[d]),ct=r.useCallback(n=>{k(l=>{const u=tt(n,l);return J(u)?l:(st(u),l.filter(i=>i.id!==n))})},[st]),K=r.useRef(null),qt=r.useCallback(n=>{!n.file||n.status.type!=="error"||(k(l=>l.filter(u=>u.id!==n.id)),K.current&&K.current([n.file],[]))},[]),dt=r.useCallback(()=>{const n=D.filter(l=>l.status.type==="uploaded").map(l=>{const{name:u,size:i,status:z}=l,{fileId:Z,fileUrls:Qt}=z;return new bt({fileId:Z,fileUrls:Qt,name:u,size:i})});return new ce({uploadedFileInfo:n})},[D]),ut=()=>C.current++,pt=wr({acceptMultipleFiles:I===x.Multiple||I===x.Directory,acceptDirectoryFiles:I===x.Directory,maxFileSize:it,uploadClient:d,uploadFile:mr({getNextLocalFileId:ut,addFiles:lt,updateFile:(n,l)=>{k(u=>Q(n,l,u))},uploadClient:d,element:e,onUploadProgress:(n,l)=>{k(u=>{const i=tt(l,u);if(J(i)||i.status.type!=="uploading")return u;const z=Math.round(n.loaded*100/n.total);return i.status.progress===z?u:Q(l,i.setStatus({type:"uploading",abortController:i.status.abortController,progress:z}),u)})},onUploadComplete:(n,l)=>{k(u=>{const i=tt(n,u);return J(i)||i.status.type!=="uploading"?u:Q(i.id,i.setStatus({type:"uploaded",fileId:l.fileId,fileUrls:l}),u)})}}),addFiles:lt,getNextLocalFileId:ut,deleteExistingFiles:()=>D.forEach(n=>ct(n.id)),onUploadComplete:()=>{m.current&&m.current.focus()},element:e});K.current=pt;const{getRootProps:gt,getInputProps:ht}=he({onDrop:pt,multiple:I===x.Multiple||I===x.Directory,accept:fe(e.fileType),maxSize:it}),O=r.useCallback(n=>{if(m.current&&m.current.focus(),!L&&!n||t)return;const l=dt(),u={data:M,fileUploaderState:l,audioFileInfo:n};o.setChatInputValue(e,u,{fromUi:!0},s),k([]),j(""),T.clearScrollHeight()},[L,t,M,dt,o,e,s,T]),ft=r.useCallback(async n=>{const l=new Date().toISOString().replace(/[:.]/g,"-"),u=new File([n],`audio-${l}.wav`,{type:"audio/wav"});try{at(!0);const i=await d.fetchFileURLs([u]);if(i.length===0)throw new Error("Failed to get upload URL for audio file");const z=i[0];g.current=new AbortController,await d.uploadFile({formId:"",...e},z.uploadUrl,u,()=>{},g.current.signal);const Z=new bt({fileId:z.fileId,fileUrls:z,name:u.name,size:u.size});O(Z)}catch(i){const z="Recording failed";$.error("Audio upload failed:",i),N(z),m.current&&m.current.focus()}finally{at(!1)}},[d,e,O]),_t=r.useMemo(()=>({onApprove:ft,onPermissionDenied:()=>{const n="Microphone access denied";N(n),$.error("Permission denied:",n)},onError:n=>{N("Recording failed"),$.error("Recording error:",n)},onRecordStart:()=>{N(null)}}),[ft]),A=we({containerRef:w,sampleRate:e.audioSampleRate??void 0,events:_t}),G=r.useCallback(()=>{O()},[O]),wt=n=>{const{metaKey:l,ctrlKey:u,shiftKey:i}=n;Ce(n)&&!i&&!u&&!l&&(n.preventDefault(),G())},mt=n=>{const{value:l}=n.target;v!==0&&l.length>v||(j(l),T.updateScrollHeight(),_&&N(null))},vt=r.useCallback(async n=>{n.preventDefault(),n.stopPropagation(),!(!W||t||A.state==="recording")&&await A.start()},[W,t,A]),Kt=r.useCallback(()=>{A.cancel(),m.current&&m.current.focus()},[A]),Ct=r.useCallback(async()=>{const{blob:n}=await A.stop();await A.approve(n)},[A]),yt=r.useCallback(n=>{vt(n)},[vt]),Gt=r.useCallback(()=>{Ct()},[Ct]),Yt=r.useCallback(()=>{m.current&&m.current.focus()},[]);r.useEffect(()=>{if(e.setValue&&!p.current){p.current=!0;const n=e.value||"";j(n)}},[e.setValue,e.value]),r.useEffect(()=>{p.current=!1},[e]),r.useEffect(()=>{const n=i=>{i.preventDefault(),i.stopPropagation(),!H&&i.dataTransfer?.types.includes("Files")&&q(!0)},l=i=>{i.preventDefault(),i.stopPropagation(),H&&(i.clientX<=0&&i.clientY<=0||i.clientX>=ot&&i.clientY>=nt)&&q(!1)},u=i=>{i.preventDefault(),i.stopPropagation(),H&&q(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",u),window.addEventListener("dragleave",l),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",u),window.removeEventListener("dragleave",l)}},[H,ot,nt]);const Zt=I!==x.None&&H,F=A.state==="recording",Jt=I===x.None&&!W&&!F,Y=!F&&y>de(f.breakpoints.hideWidgetDetails)&&v>0;return a(be,{className:"stChatInput","data-testid":"stChatInput",ref:R,children:S(Ee,{extended:T.isExtended||F,children:[Y&&a(De,{onClick:Yt,id:"stChatInputInstructions",children:a(me,{dirty:L,value:M,maxLength:v,type:"chat",inForm:!1,className:"stChatInputInstructions"})}),Jt?S(Ve,{children:[a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:It(f,T,{flex:1})}),a(U,{onClick:G,disabled:!L||t,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,withVerticalOffset:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]}):S(P,{children:[S(Se,{children:[Zt&&a(Ze,{getRootProps:gt,getInputProps:ht,acceptFile:I}),I!==x.None&&D.length>0&&a(hr,{items:[...D],onDelete:ct,onRetry:qt}),S(Ie,{children:[a(Me,{isRecording:F,children:a(ke,{ref:w})}),!F&&a(St,{inputRef:m,value:M,placeholder:c,onChange:mt,onKeyDown:wt,"aria-label":c,disabled:t,rows:1,"aria-describedby":Y?"stChatInputInstructions":void 0,overrides:It(f,T,{width:"100%"})})]})]}),S(ze,{children:[a(Re,{children:I!==x.None&&!F&&a(Ge,{getRootProps:gt,getInputProps:ht,acceptFile:I,disabled:t})}),a(Ae,{children:F?S(P,{children:[a(U,{onClick:Kt,disabled:t,"data-testid":"stChatInputCancelButton","aria-label":"Cancel recording",children:a(V,{content:Ot,size:"lg",color:"inherit"})}),a(U,{onClick:Gt,disabled:t||B,"data-testid":"stChatInputApproveButton","aria-label":"Submit recording",children:B?a(At,{size:"lg",iconValue:"spinner"}):a(V,{content:Wt,size:"lg",color:"inherit"})})]}):S(P,{children:[W&&a(P,{children:_?a(Rt,{content:_,placement:Vt.TOP,error:!0,children:a(U,{onClick:yt,disabled:t||B,hasError:!0,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:$t,size:"xl",color:"inherit"})})}):a(U,{onClick:yt,disabled:t||B,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Xt,size:"xl",color:"inherit"})})}),a(U,{onClick:G,disabled:!L||t||B,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,children:a(V,{content:et,size:"lg",color:"inherit"})})]})})]})]})]})})}const Ar=r.memo(vr);export{Ar as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as i}from"./index.BZBWLU1C.js";var n=0;function u(r){var t=++n;return i(r)+t}export{u};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|