streamlit-nightly 1.53.1.dev20260114__py3-none-any.whl → 1.53.1.dev20260115__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/__init__.py +0 -26
- streamlit/config.py +29 -0
- streamlit/elements/lib/streamlit_plotly_theme.py +9 -11
- streamlit/proto/NewSession_pb2.py +18 -18
- streamlit/proto/NewSession_pb2.pyi +5 -1
- streamlit/runtime/app_session.py +78 -58
- streamlit/runtime/scriptrunner_utils/script_run_context.py +0 -21
- streamlit/runtime/state/query_params.py +0 -19
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +299 -299
- streamlit/static/static/js/{ErrorOutline.esm.BAZUU4id.js → ErrorOutline.esm.CiSfK8ht.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.C6tTTniR.js → FileDownload.esm.ItNjcEfs.js} +1 -1
- streamlit/static/static/js/{FileHelper.BOHlwlc9.js → FileHelper.xS7f19FE.js} +1 -1
- streamlit/static/static/js/{FormClearHelper.D4lty7rT.js → FormClearHelper.N8_BCinn.js} +1 -1
- streamlit/static/static/js/{InputInstructions.BWw9lhud.js → InputInstructions.CrsdK7CQ.js} +1 -1
- streamlit/static/static/js/Particles.BDlTHC3I.js +1 -0
- streamlit/static/static/js/{ProgressBar.DCHh4N3P.js → ProgressBar.Bk2qeHfS.js} +2 -2
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.BRydQwEj.js → StreamlitSyntaxHighlighter.BcuPrPcw.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.7KFX5I_G.js → TableChart.esm.CP7XPz8I.js} +1 -1
- streamlit/static/static/js/Toolbar.DCJcLwve.js +1 -0
- streamlit/static/static/js/{WidgetLabelHelpIconInline.CzodezAH.js → WidgetLabelHelpIconInline.BPqxu1b-.js} +1 -1
- streamlit/static/static/js/{base-input.Cg7NpsfS.js → base-input.x4muJJ13.js} +4 -4
- streamlit/static/static/js/{checkbox.Bs20OTna.js → checkbox.C5r4AIaH.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.DSqCyu38.js → createDownloadLinkElement.C83kkEeT.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.Ch4SqNfY.js → data-grid-overlay-editor.0sOWm4IB.js} +1 -1
- streamlit/static/static/js/{downloader.Oj5CTGJA.js → downloader.C_6FfoEv.js} +1 -1
- streamlit/static/static/js/{embed.CqzzUq73.js → embed.BnJ6-SK4.js} +14 -14
- streamlit/static/static/js/{es6.CYrlw0Vn.js → es6.44_BWfFd.js} +2 -2
- streamlit/static/static/js/{formatNumber.CT_v8e75.js → formatNumber.DhHZAosz.js} +1 -1
- streamlit/static/static/js/{iconPosition.DPAvXTmd.js → iconPosition.shOoQuRR.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.T4DvQsIf.js → iframeResizer.contentWindow.savEE5Vs.js} +1 -1
- streamlit/static/static/js/{index.BoWBzl6h.js → index.AdijUi9Z.js} +1 -1
- streamlit/static/static/js/{index.Dtd5z2rM.js → index.B5HlOnvq.js} +1 -1
- streamlit/static/static/js/{index.MtwRNvlS.js → index.B6ewTTej.js} +1 -1
- streamlit/static/static/js/{index.D7KbBAWb.js → index.B8Of3XXR.js} +1 -1
- streamlit/static/static/js/{index.xCV2qwtw.js → index.BCaCSVj6.js} +1 -1
- streamlit/static/static/js/index.BE7Rhig1.js +1 -0
- streamlit/static/static/js/{index.DL_Ooizi.js → index.BHpLZ7X6.js} +2 -2
- streamlit/static/static/js/{index.BPxuKK0S.js → index.BNvP8E5Q.js} +1 -1
- streamlit/static/static/js/{index.LOA31DFn.js → index.BNzuyXeN.js} +2 -2
- streamlit/static/static/js/{index.Cfe-tCQJ.js → index.BT7o4A9V.js} +1 -1
- streamlit/static/static/js/{index.BZ8xp-w9.js → index.BYY3iuVE.js} +1 -1
- streamlit/static/static/js/index.BZI7jTDf.js +1 -0
- streamlit/static/static/js/{index.CGRIbGGV.js → index.BZXk3Qxq.js} +1 -1
- streamlit/static/static/js/{index.CVXiBeDI.js → index.BhQvq6YD.js} +1 -1
- streamlit/static/static/js/{index.CnXxoVEM.js → index.BkIReLGJ.js} +3 -3
- streamlit/static/static/js/{index.AGYZDQZm.js → index.Bl7SMZUw.js} +1 -1
- streamlit/static/static/js/{index.b-MrPulo.js → index.BqtgAGnG.js} +2 -2
- streamlit/static/static/js/{index.B3HdcUdo.js → index.BwnLQnAk.js} +1 -1
- streamlit/static/static/js/index.C1coXTgf.js +2 -0
- streamlit/static/static/js/{index.DXRGd--0.js → index.C6uOmY9O.js} +1 -1
- streamlit/static/static/js/index.CF88nImM.js +1 -0
- streamlit/static/static/js/{index.B9Oowxt8.js → index.CFlGfFvq.js} +1 -1
- streamlit/static/static/js/{index.wngeYhKj.js → index.CQgiNpC7.js} +1 -1
- streamlit/static/static/js/{index.D84XHt50.js → index.CZJkiRFm.js} +1 -1
- streamlit/static/static/js/index.Ch1TdQMG.js +1 -0
- streamlit/static/static/js/{index.Yj6vcyFD.js → index.Ck2mQvBi.js} +1 -1
- streamlit/static/static/js/{index.DPlPEuq6.js → index.CrD2lwZG.js} +1 -1
- streamlit/static/static/js/index.CySNwKoN.js +2 -0
- streamlit/static/static/js/index.D3LEkXqN.js +1 -0
- streamlit/static/static/js/{index.BTA0d5oq.js → index.D8BQH06Z.js} +1 -1
- streamlit/static/static/js/{index.B8ZZdPqF.js → index.DBtWixG1.js} +1 -1
- streamlit/static/static/js/{index.CVKk1nkB.js → index.DIsNrJpC.js} +1 -1
- streamlit/static/static/js/{index.CPYB1awG.js → index.DO3HICut.js} +1 -1
- streamlit/static/static/js/{index.D6HCANv6.js → index.D_ziFad8.js} +1 -1
- streamlit/static/static/js/{index.BTqav7_K.js → index.Dblsdn8d.js} +1 -1
- streamlit/static/static/js/{index.Dg9k4R8B.js → index.DcdD0ROn.js} +2 -2
- streamlit/static/static/js/{index.tLZuZM89.js → index.DfHm3P22.js} +51 -51
- streamlit/static/static/js/{index.CXVpBAvU.js → index.DiwhD0Ic.js} +46 -46
- streamlit/static/static/js/index.DvZDNiBV.js +11 -0
- streamlit/static/static/js/{index.DQzRwgrT.js → index.HjydQ4bj.js} +1 -1
- streamlit/static/static/js/{index.XHtvnZ0-.js → index.HsxzYHNf.js} +1 -1
- streamlit/static/static/js/{index.DesNeXSA.js → index.SVJGpnpy.js} +1 -1
- streamlit/static/static/js/index.SjKkVSL7.js +1 -0
- streamlit/static/static/js/index.hX8_3tMP.js +1 -0
- streamlit/static/static/js/{index.BEzgNZOm.js → index.jZin0w6_.js} +1 -1
- streamlit/static/static/js/{index.DzldU3Hy.js → index.pQvPlPcA.js} +4 -4
- streamlit/static/static/js/index.pzQTLx9j.js +1 -0
- streamlit/static/static/js/{index.ClFk8x0U.js → index.s44_OVd6.js} +33 -33
- streamlit/static/static/js/{input.CYXuTqoa.js → input.jAD-v9D6.js} +2 -2
- streamlit/static/static/js/{main.BE-siVKv.js → main.Cas0fuOs.js} +1 -1
- streamlit/static/static/js/{memory.V554ztRg.js → memory.ENruL8Qk.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.BiUTOXIl.js → number-overlay-editor.DAOTdulh.js} +2 -2
- streamlit/static/static/js/{pandasStylerUtils.Dej3Tstq.js → pandasStylerUtils.DChYgcPq.js} +1 -1
- streamlit/static/static/js/{sandbox.gpd7KGMo.js → sandbox.DWZYRCm0.js} +1 -1
- streamlit/static/static/js/{styled-components.Coj4dr6D.js → styled-components.3lwVqgRW.js} +1 -1
- streamlit/static/static/js/{throttle.gZUdtYp7.js → throttle.DfOW1Cns.js} +1 -1
- streamlit/static/static/js/{timepicker.B-Y4aU15.js → timepicker.CXHgL5f9.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.CcKcKvEd.js → toConsumableArray.DiW0GSDV.js} +1 -1
- streamlit/static/static/js/uniqueId.Dfi3SGKZ.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.D-fc_aIL.js → useBasicWidgetState.DnPEt_f3.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.CY32IeNt.js → useIntlLocale.BZEGSOVD.js} +8 -8
- streamlit/static/static/js/{useTextInputAutoExpand.C0jK7TwF.js → useTextInputAutoExpand.MGVZMqyt.js} +1 -1
- streamlit/static/static/js/useUpdateUiValue.CPl6CEx3.js +1 -0
- streamlit/static/static/js/{useWaveformController.BLEIAIDo.js → useWaveformController.DOpzDyZu.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.B3oSlRC0.js → withCalculatedWidth.DgKFTeif.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.Cw_ebNmr.js → withFullScreenWrapper.K1jkwhPu.js} +1 -1
- {streamlit_nightly-1.53.1.dev20260114.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.53.1.dev20260114.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/RECORD +103 -104
- streamlit/commands/experimental_query_params.py +0 -169
- streamlit/static/static/js/Particles.BDi7fIn-.js +0 -1
- streamlit/static/static/js/Toolbar.guIuiwEF.js +0 -1
- streamlit/static/static/js/index.BJnWg9Jq.js +0 -1
- streamlit/static/static/js/index.Bqgt60FU.js +0 -1
- streamlit/static/static/js/index.BsYYrijt.js +0 -11
- streamlit/static/static/js/index.CJQq5LcR.js +0 -2
- streamlit/static/static/js/index.Cw4eSvJ7.js +0 -1
- streamlit/static/static/js/index.DNyw7S7Z.js +0 -1
- streamlit/static/static/js/index.DZDt5hYD.js +0 -1
- streamlit/static/static/js/index.Do9A7QCt.js +0 -1
- streamlit/static/static/js/index.DrSH3pK3.js +0 -2
- streamlit/static/static/js/index.GZi6GTJa.js +0 -1
- streamlit/static/static/js/index.hcUYvTqs.js +0 -1
- streamlit/static/static/js/uniqueId.PRn3V1WU.js +0 -1
- streamlit/static/static/js/useUpdateUiValue.CDQloDgB.js +0 -1
- {streamlit_nightly-1.53.1.dev20260114.data → streamlit_nightly-1.53.1.dev20260115.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.53.1.dev20260114.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.53.1.dev20260114.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.53.1.dev20260114.dist-info → streamlit_nightly-1.53.1.dev20260115.dist-info}/top_level.txt +0 -0
streamlit/static/static/js/{useWaveformController.BLEIAIDo.js → useWaveformController.DOpzDyZu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as Z,r as i,aR as M,ab as $,aS as O}from"./index.CXVpBAvU.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,aP as M,aa as $,aQ as O}from"./index.DiwhD0Ic.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 Q(r,d);return J(s,d)}finally{o.close()}}async function Q(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 J(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 K{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),S=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),S.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 U=i.useCallback(async()=>{if(!(S.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 K({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),S.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(()=>(U(),()=>{A()}),[A,U]),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(S.current||await U(),!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,U,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(S.current||await U(),!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,U]),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.B3oSlRC0.js → withCalculatedWidth.DgKFTeif.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.DiwhD0Ic.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.Cw_ebNmr.js → withFullScreenWrapper.K1jkwhPu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,
|
|
1
|
+
import{r as n,z as f,b5 as p,b6 as h,l as x,k as y,j as i,h as g}from"./index.DiwhD0Ic.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])},b=({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(b,{children:i(e,{...s})});return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,g(t,e)}export{m as E,S as w};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
streamlit/__init__.py,sha256=
|
|
1
|
+
streamlit/__init__.py,sha256=GwzGIKXNIRqam2Ne2jAkiwZwGqPWcskY39GjvqYT0JE,8959
|
|
2
2
|
streamlit/__main__.py,sha256=4vltvfI348h2yIOUohsc2DtG-lclcjCAdR1mewGeMck,868
|
|
3
3
|
streamlit/auth_util.py,sha256=bkK5M5epEWri1rq23FtaYuvzcX4i85fbRjZqTEXCj6s,18185
|
|
4
4
|
streamlit/cli_util.py,sha256=ya35Gd9oAjIdgIj6gSSXFgAHPVYtaoxOUU8s_x-iaNE,3484
|
|
5
5
|
streamlit/column_config.py,sha256=JAiL6KDj9bcS-quoiWK8D2rKzG1LGWnY0b5xwY4lVfs,1497
|
|
6
|
-
streamlit/config.py,sha256=
|
|
6
|
+
streamlit/config.py,sha256=CnzdZSjEAxIUc7MSsyE-wOCtpsOfgKesp_5aem1IBbk,89936
|
|
7
7
|
streamlit/config_option.py,sha256=d8PJubac9JS7G99w1N4_0er8sJ4DzyA_mqoy0n1XrRI,11744
|
|
8
8
|
streamlit/config_util.py,sha256=nzdJBIn1NOZcR8qi9WKwqHjSgYNb6LL9Gfik1aG8ei4,30917
|
|
9
9
|
streamlit/cursor.py,sha256=M8b92hMFV76FL0A8aa6wfe5NI5gsbldn_VvRQ6J0Is0,9425
|
|
@@ -36,7 +36,6 @@ streamlit/version.py,sha256=Ume7B4nzDwHGX6gL-F-Xz9tdHMo0YSn96vyNdnHzvVg,763
|
|
|
36
36
|
streamlit/commands/__init__.py,sha256=iZwXNLk8xCKTqIiR1dIs0i-phfx1ipLkhGasCEwkD2Q,616
|
|
37
37
|
streamlit/commands/echo.py,sha256=kPfIV-RHXapIenNGB2qw2Btat_fBUuHwAOdBiG0U1nU,4246
|
|
38
38
|
streamlit/commands/execution_control.py,sha256=NBQPPymqtYQWz3cYyo3IvNE8UKA_7muVkWrknZS9xss,11350
|
|
39
|
-
streamlit/commands/experimental_query_params.py,sha256=CcIQ8bUOqbFDCtHbbZqF1Ty_R67jcG1YfURh_YP9yuA,5718
|
|
40
39
|
streamlit/commands/logo.py,sha256=hwqNlRZUzTX15Z49uM4yFb_gB85iNmxjMdjIt0Vo1gY,7354
|
|
41
40
|
streamlit/commands/navigation.py,sha256=V4LEYUw2rxoSnju7_aG8XqkswiNAeDeQfh9NvY6qYRc,15931
|
|
42
41
|
streamlit/commands/page_config.py,sha256=ebu5aIAVogisz5AUmqejutK4fgR-MJh5Rl7FSC9Wnng,15037
|
|
@@ -124,7 +123,7 @@ streamlit/elements/lib/options_selector_utils.py,sha256=e36sRDisBl8O6RX8iYpkDR30
|
|
|
124
123
|
streamlit/elements/lib/pandas_styler_utils.py,sha256=6dGx490ltXt_cNvvugBdYyZTyAfXmq9gbaQNbrq2wXI,9451
|
|
125
124
|
streamlit/elements/lib/policies.py,sha256=4lPgjKsKiVBLJoonOzKIqsAqavxP8hsngsDWfPmqmBo,6877
|
|
126
125
|
streamlit/elements/lib/shortcut_utils.py,sha256=hdS3N-vW2hRgKx5dl1XLMDL5-uKDyQh4ieY3urgq8Hs,4375
|
|
127
|
-
streamlit/elements/lib/streamlit_plotly_theme.py,sha256=
|
|
126
|
+
streamlit/elements/lib/streamlit_plotly_theme.py,sha256=hY-Kr0J4QF_-z_BIgiZyTj3lnzj1Gi0vwPIJBqmt2EU,8300
|
|
128
127
|
streamlit/elements/lib/subtitle_utils.py,sha256=oGvhi5FSWN_75gjNGST0F0QKwv9PoSIB9jX_sn_8Xd8,6216
|
|
129
128
|
streamlit/elements/lib/utils.py,sha256=5-tEKJYvaWg3XersG0YBtcrLU-bTgCDZSSfBGOVrGBI,9729
|
|
130
129
|
streamlit/elements/widgets/__init__.py,sha256=iZwXNLk8xCKTqIiR1dIs0i-phfx1ipLkhGasCEwkD2Q,616
|
|
@@ -272,8 +271,8 @@ streamlit/proto/NamedDataSet_pb2.py,sha256=cWRrGJRex35yZSApkPUWtfX31CHh2puULXQuR
|
|
|
272
271
|
streamlit/proto/NamedDataSet_pb2.pyi,sha256=OfAiXuy7X0qhHR6jmuD1GywXSZX3jhT1zzCK4IOOim0,2360
|
|
273
272
|
streamlit/proto/Navigation_pb2.py,sha256=GJXtZwkMQEzXRckm5-S_J6-66VlPEZxzulnBAtY_-GA,1752
|
|
274
273
|
streamlit/proto/Navigation_pb2.pyi,sha256=e5SY4rZmbzG-yjMKiCkMfTILMDM1oy77i9RoRRXNR0Q,3643
|
|
275
|
-
streamlit/proto/NewSession_pb2.py,sha256=
|
|
276
|
-
streamlit/proto/NewSession_pb2.pyi,sha256=
|
|
274
|
+
streamlit/proto/NewSession_pb2.py,sha256=LREuY6yrC5bo7tnyUe47ChVTnqKZ8wJXrgQ29NuIAec,10064
|
|
275
|
+
streamlit/proto/NewSession_pb2.pyi,sha256=Kn-0OJtxoGJxhLySanh4NF7XeznqsnopfCoB506PNOc,52165
|
|
277
276
|
streamlit/proto/NumberInput_pb2.py,sha256=C-A4tvfVkkpV140QyyOaDFc21aJ91HYJVJR5eFI3FQk,2519
|
|
278
277
|
streamlit/proto/NumberInput_pb2.pyi,sha256=6G7Sq5WnCATCD_ivfqn107xtz8sfT05Rg_jeHzRlIjo,5862
|
|
279
278
|
streamlit/proto/PageConfig_pb2.py,sha256=xCSaqgpF6Ek_K4lvCuZf3ZvwGDYlox0cpbfzANd69lA,2780
|
|
@@ -340,7 +339,7 @@ streamlit/proto/__init__.py,sha256=mJQrqVfAP9EbwEVIF-vaiE4Xlq6DvXXB5lTYrKWZtnQ,6
|
|
|
340
339
|
streamlit/proto/openmetrics_data_model_pb2.py,sha256=dWlhXENjgvIGCMnAumDVQkLA4TQQzP77G5pncI6oP9I,6424
|
|
341
340
|
streamlit/proto/openmetrics_data_model_pb2.pyi,sha256=WH3u2JER2txk8fGMIFmxnqGjNd9MdA6ydCEAL4XmjtQ,22919
|
|
342
341
|
streamlit/runtime/__init__.py,sha256=46BxeX53YcUUCZTfEVg0Qv25OXqOeh1YwAxghkkzLOk,1523
|
|
343
|
-
streamlit/runtime/app_session.py,sha256=
|
|
342
|
+
streamlit/runtime/app_session.py,sha256=Xa09yRVIzXTydKgYS5d0fG-LypwssXqLCj_rpDCke3Q,51129
|
|
344
343
|
streamlit/runtime/connection_factory.py,sha256=G51XLlUG4tsquXqbdRb7x3bbveSFD18W1KHY9AcOrAM,17663
|
|
345
344
|
streamlit/runtime/context.py,sha256=e6pxcGhCJhW7ZPOnmMMmSSvX3my61DXhUo__C7vgScY,14801
|
|
346
345
|
streamlit/runtime/context_util.py,sha256=A0qtQEc_QyEPVFhEh917Clkt-Kux0RWkteBWLTTdOlc,1702
|
|
@@ -389,127 +388,127 @@ streamlit/runtime/scriptrunner/script_runner.py,sha256=uqrUniX6cDv6XHW6F0R4A0CnJ
|
|
|
389
388
|
streamlit/runtime/scriptrunner_utils/__init__.py,sha256=8XUue1g4ZN9lMIHqo9DZcaH0U2013IYQrhFjluiacdE,840
|
|
390
389
|
streamlit/runtime/scriptrunner_utils/exceptions.py,sha256=8zknQEWI_jDWgFNMlH0d_hP5Epl3lEmxBtBSub0lMQw,1563
|
|
391
390
|
streamlit/runtime/scriptrunner_utils/script_requests.py,sha256=rxF1GNpt_kPtJLoYOJrVFODlYBnpZ4s1KZ-oI2ArdMg,12776
|
|
392
|
-
streamlit/runtime/scriptrunner_utils/script_run_context.py,sha256=
|
|
391
|
+
streamlit/runtime/scriptrunner_utils/script_run_context.py,sha256=RsV1asrcOuvOR33j0CB1AT2RJnHGpzhtLwaM8HeiGYg,9956
|
|
393
392
|
streamlit/runtime/state/__init__.py,sha256=-CvZW2IKertEjN92Egj2kUru2MStRzbMxGu09nYA88s,1433
|
|
394
393
|
streamlit/runtime/state/common.py,sha256=NoiwZGgMmZL48IHNo9auqRkujs2nc17THESHG0YONpE,7760
|
|
395
394
|
streamlit/runtime/state/presentation.py,sha256=-G8eb1k4rz6Th3q0YU2eUmTzJPQmbzHdOaPQ_txAREg,3084
|
|
396
|
-
streamlit/runtime/state/query_params.py,sha256=
|
|
395
|
+
streamlit/runtime/state/query_params.py,sha256=3Gi34xlZAPEiiWMoxVGdWhxWAz__hahcllkCed5VuM8,8734
|
|
397
396
|
streamlit/runtime/state/query_params_proxy.py,sha256=xMRqmOuuM14c8_x_f8X2pkxK9_7vWVRhRqcK3vV12-Y,7730
|
|
398
397
|
streamlit/runtime/state/safe_session_state.py,sha256=Z4UIdCHN64o8c2WTpe9N6Q0T4mgc-FIhz9BAXU7p34Q,5604
|
|
399
398
|
streamlit/runtime/state/session_state.py,sha256=Ht_GRl_frv9SEBD8onC25J4Z4HAJsZfXWI5RWuWpnas,38661
|
|
400
399
|
streamlit/runtime/state/session_state_proxy.py,sha256=RI9QquUlMgK6XyUYF3PmpN1mfP6q-_SBju5pIFTrdRU,5585
|
|
401
400
|
streamlit/runtime/state/widgets.py,sha256=CMFaIT-M-59TrskR1zt9eeoea2JJ8_YbG64fbSyd8VA,6057
|
|
402
401
|
streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
|
|
403
|
-
streamlit/static/index.html,sha256=
|
|
404
|
-
streamlit/static/manifest.json,sha256=
|
|
402
|
+
streamlit/static/index.html,sha256=DWP4h32nB6zYo7ufGtDYgSxoeanblv-oZDU21vR1VXc,1522
|
|
403
|
+
streamlit/static/manifest.json,sha256=uKMMZXCCjOJocWeq9PfK6e38J-My3_J-G3gVSDVdptI,54244
|
|
405
404
|
streamlit/static/static/css/index.BUP6fTcR.css,sha256=w3J3tj919duL4vtYdmJSXTglGUogRuPuwX9pZd4N9aU,30331
|
|
406
405
|
streamlit/static/static/css/index.BuwrT-ty.css,sha256=Qw-234aemgZdlkzLcmPcc4L5g3WaneJBM0uTqd0L2So,35080
|
|
407
406
|
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.
|
|
407
|
+
streamlit/static/static/js/ErrorOutline.esm.CiSfK8ht.js,sha256=Pf9V4z2yVAIVqQK4bF-paq5A60x3Vom1Aa6sdVhv5Rs,499
|
|
408
|
+
streamlit/static/static/js/FileDownload.esm.ItNjcEfs.js,sha256=sFJzbqGvaXYdtNSnzX0FiKKvlkd51angc7Rv8j7jlYA,918
|
|
409
|
+
streamlit/static/static/js/FileHelper.xS7f19FE.js,sha256=OR4iry0kU7quwmHqpn_ip5Qxx0EWhNrpn2cd54b5hcM,61226
|
|
410
|
+
streamlit/static/static/js/FormClearHelper.N8_BCinn.js,sha256=jukbXn6sO_AjhnLyObLE4IobLo0uXLRn7A7GOZGAZBk,611
|
|
412
411
|
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.
|
|
412
|
+
streamlit/static/static/js/InputInstructions.CrsdK7CQ.js,sha256=svPOrYcJirf94PHdjrGeWVO-ik9KiEe1O27bnLauZCc,919
|
|
413
|
+
streamlit/static/static/js/Particles.BDlTHC3I.js,sha256=-IVMKl2gOG2ivVe68fQ3pwoI3TpfFjDvPE_iEFH0zfo,614
|
|
414
|
+
streamlit/static/static/js/ProgressBar.Bk2qeHfS.js,sha256=9ngtxU8zg78hxMkWv4mZ5pGqX-uHhBuHA7jl35VGRQE,13320
|
|
415
|
+
streamlit/static/static/js/StreamlitSyntaxHighlighter.BcuPrPcw.js,sha256=3qDj8yLPu_4UybY_LBp4z3wRVm7LqT0epmqSIGHUtfw,1620541
|
|
416
|
+
streamlit/static/static/js/TableChart.esm.CP7XPz8I.js,sha256=nsSjmVaPCXolIO8r9BCz61EcV7auoRnOa0vYV3bnIr8,526
|
|
417
|
+
streamlit/static/static/js/Toolbar.DCJcLwve.js,sha256=fYPEXZXQXqOiY6Qm8NJSymv_2IEZkVT0ONHLnHTJbnY,2897
|
|
419
418
|
streamlit/static/static/js/UploadFileInfo.Dr-zDST7.js,sha256=5a_iq85gVIuXJJ3oRHHpEtx73pm7QA2BwIcrkQUkpiI,175
|
|
420
|
-
streamlit/static/static/js/WidgetLabelHelpIconInline.
|
|
419
|
+
streamlit/static/static/js/WidgetLabelHelpIconInline.BPqxu1b-.js,sha256=JIqrPHtwRVdDVGK3fazPLk3i-Y3H0keLjDLdKPLn5s8,348
|
|
421
420
|
streamlit/static/static/js/_arrayIncludes.B19Iyn2B.js,sha256=JP-DCSLwDMyVDLPMC1_99tqHMMNzTx8SwAT1rVKXIAA,127
|
|
422
421
|
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.
|
|
422
|
+
streamlit/static/static/js/base-input.x4muJJ13.js,sha256=Epnb5O3oIUa_eYqO88s_ZR7tH1QErSrJbg8M9E07KFU,21773
|
|
423
|
+
streamlit/static/static/js/checkbox.C5r4AIaH.js,sha256=OcDIAs-NNhu27jf0PgTfZbCj4UgxnBuWFvVT3Cd9BYY,11245
|
|
424
|
+
streamlit/static/static/js/createDownloadLinkElement.C83kkEeT.js,sha256=M-1yHMsOFYgdLwR-8UeACNUXVtEmI34zb9yBxYlmC8s,388
|
|
425
|
+
streamlit/static/static/js/data-grid-overlay-editor.0sOWm4IB.js,sha256=osybEGoc7xupVDEJ2_ApVY0aowRsSe-iv7Rwe3cgX18,4399
|
|
426
|
+
streamlit/static/static/js/downloader.C_6FfoEv.js,sha256=varqZM4KeuNDLi6izB3ZOgvMvJmNl37OczyXgcQTAxk,2510
|
|
427
|
+
streamlit/static/static/js/embed.BnJ6-SK4.js,sha256=VauOHnmyWxoPKiwxS4Nbu0imeNlfY5RVkIp86qo6_JA,831616
|
|
428
|
+
streamlit/static/static/js/es6.44_BWfFd.js,sha256=8pl0PI6P5l6Yn3WRixbHesOw_WorppJpBZjj4GmKKn4,14634
|
|
430
429
|
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.
|
|
430
|
+
streamlit/static/static/js/formatNumber.DhHZAosz.js,sha256=0BaWrh7ExDkYPiZn391LHxKi8qTCc8cBFY03o5-iDxA,1818
|
|
431
|
+
streamlit/static/static/js/iconPosition.shOoQuRR.js,sha256=sG2lfm-YqWncKm2CQDF9tM3JTuhC6zaHZSnjQPw2N5c,203
|
|
432
|
+
streamlit/static/static/js/iframeResizer.contentWindow.savEE5Vs.js,sha256=uM97NbyYf-lticoxf-AfyJoVhxIL0lLVOuFHCMtGSC8,14409
|
|
434
433
|
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.
|
|
434
|
+
streamlit/static/static/js/index.AdijUi9Z.js,sha256=ZT2iWIaOXMLTxwQX1NJ-iC0R2wrWw3CEENF7VNphuoA,3252
|
|
435
|
+
streamlit/static/static/js/index.B5HlOnvq.js,sha256=6nWH2V_B5isf2uMcVSw5NghSMt7HqEgkKzqO_IeJ6vE,190412
|
|
436
|
+
streamlit/static/static/js/index.B6ewTTej.js,sha256=GVhmnjCZS3EGaxXSxRhqM_JHZ2Jm-YzWcOBGmbrG_jg,5820
|
|
437
|
+
streamlit/static/static/js/index.B8Of3XXR.js,sha256=vf0yarrwkl-bfFDKlxfxnZblCJbygVCUSIF7rB00XHQ,24096
|
|
439
438
|
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.
|
|
474
|
-
streamlit/static/static/js/index.
|
|
475
|
-
streamlit/static/static/js/index.
|
|
476
|
-
streamlit/static/static/js/index.
|
|
477
|
-
streamlit/static/static/js/index.
|
|
478
|
-
streamlit/static/static/js/index.
|
|
479
|
-
streamlit/static/static/js/index.b-MrPulo.js,sha256=VZhbk0oBVVPJCGytu2ZEFnF69_YYxrTwKJAEvF2N2fc,1345
|
|
439
|
+
streamlit/static/static/js/index.BCaCSVj6.js,sha256=d2gxQc-JXFQcRxsXxoZjhf7P7pROUZUUCKX_P2-yqPQ,1193
|
|
440
|
+
streamlit/static/static/js/index.BE7Rhig1.js,sha256=zYlF6rv5gL-ZlKFM0bEGEjxlzFN2biQqJClVLWPBPsM,3818
|
|
441
|
+
streamlit/static/static/js/index.BHpLZ7X6.js,sha256=ncAbpgX5b2t5rDifRXhFTk6EhGdxfE1maDD4FQMR34o,13965
|
|
442
|
+
streamlit/static/static/js/index.BNvP8E5Q.js,sha256=3okfWdO1wWts742HZjEe1k6KramAEEXcyJ1BWgK72AI,2604886
|
|
443
|
+
streamlit/static/static/js/index.BNzuyXeN.js,sha256=EsHOeaNKyYbxZKBjrM-VbdnnoJdM6XfLxiZPVbEWqkk,828422
|
|
444
|
+
streamlit/static/static/js/index.BT7o4A9V.js,sha256=w7Apgp8Gkb5txXm3TvLmpna7hp5YWJ-KTZJW8osAKZ0,19038
|
|
445
|
+
streamlit/static/static/js/index.BYY3iuVE.js,sha256=4E9wR_VO8-CrltPfw_i6QLIv_LbWdHTHE8QJVvG08kQ,7264
|
|
446
|
+
streamlit/static/static/js/index.BZI7jTDf.js,sha256=oEbMGgvaDe9eJnpI4IdwmirTbT7EGR6uXDvVyLeRVfM,2824
|
|
447
|
+
streamlit/static/static/js/index.BZXk3Qxq.js,sha256=K8zlCgSHGPlTpaRsHsKVH5fjmhL7-m0joyFDIC-f3TE,271288
|
|
448
|
+
streamlit/static/static/js/index.BhQvq6YD.js,sha256=ZX63_ACX9ohyXD4Xb1bo3rElRhe9V4FvsBksqlecB_Q,2671
|
|
449
|
+
streamlit/static/static/js/index.BkIReLGJ.js,sha256=ebKjugQeVXj_uQ4HvN-Kjz3Bldc67UFqnU0CUcgssZQ,24369
|
|
450
|
+
streamlit/static/static/js/index.Bl7SMZUw.js,sha256=T_MgVSCP0cLV1OD9Gl3qYhmtmrmdLRVnT-sQZsbji5o,2539
|
|
451
|
+
streamlit/static/static/js/index.BqtgAGnG.js,sha256=ewtTYRZtdJrYIADPo0pipPzTc9FGtlQFohJfmasmD4I,1345
|
|
452
|
+
streamlit/static/static/js/index.BwnLQnAk.js,sha256=9cZ2l5OWmSzR0NXDrH3EExzCwYUxu1WPuufNvNh1NTM,18346
|
|
453
|
+
streamlit/static/static/js/index.C1coXTgf.js,sha256=Av7dKWoNF8OyHI15l4Eog0WXcOAe4QoiKeDtrQivFNY,36007
|
|
454
|
+
streamlit/static/static/js/index.C6uOmY9O.js,sha256=fUb8eGps1LRcJqWWuLqeYBxOn9Csw-IBCAVppOvL630,2967
|
|
455
|
+
streamlit/static/static/js/index.CF88nImM.js,sha256=Bt_6uhnRTl1Ctx_pYaH-bDO6hVHdLXhROLWjIJ5He-8,2904
|
|
456
|
+
streamlit/static/static/js/index.CFlGfFvq.js,sha256=dwJgUZz8y3SvOKR-kBg637qONYmLFLOYQLnXeMTXj90,4863
|
|
457
|
+
streamlit/static/static/js/index.CQgiNpC7.js,sha256=Di5GJ4PLn9OVV_D8C0OLJaE2NmN2zpznr-CtNjejeu0,679
|
|
458
|
+
streamlit/static/static/js/index.CZJkiRFm.js,sha256=J0h4OD-0uc5T1yxSu7LLiM6dXYfXjmH5AO0sPz1V5G8,878
|
|
459
|
+
streamlit/static/static/js/index.Ch1TdQMG.js,sha256=dLrqTPHM9bzehYHD7E_N6GIxyuiXcL3SMUloOWOTSvE,8300
|
|
460
|
+
streamlit/static/static/js/index.Ck2mQvBi.js,sha256=VrML4icxO1ioX0NPw5i3Dco5kk8n7c4xPpGhH6u3HzE,1398
|
|
461
|
+
streamlit/static/static/js/index.CrD2lwZG.js,sha256=HBDFBlJ3EfV8wKfKEwnd-5Bku4cuI-egU9RRLdjJ_ik,442
|
|
462
|
+
streamlit/static/static/js/index.CySNwKoN.js,sha256=zLqo6EToYludadVlVPEp3roSEm3YCwQhEC90XsfEzfs,4163
|
|
463
|
+
streamlit/static/static/js/index.D3LEkXqN.js,sha256=WljJI_XJyBDJSUoJxJueOwdPD0_PncdIAm8EyLBupzE,28242
|
|
464
|
+
streamlit/static/static/js/index.D8BQH06Z.js,sha256=gT4NZflrftzMjElTsSeUAHgYC30k2uqU-PCM8vAF7lo,2998
|
|
465
|
+
streamlit/static/static/js/index.DBtWixG1.js,sha256=f6vmNN4_I0vFTEjOMdLZH1AhyXXkbUmgjwhBBwpdtII,2219
|
|
466
|
+
streamlit/static/static/js/index.DIsNrJpC.js,sha256=Iz008PG8y-05TQqKinVEiOntUV7fqULhR_EUEb2Hgtg,6906
|
|
467
|
+
streamlit/static/static/js/index.DO3HICut.js,sha256=RGMEy43Oq8G4bryhUbG4RUkzUVbCkfMvDzDaFPnqXxM,13695
|
|
468
|
+
streamlit/static/static/js/index.D_ziFad8.js,sha256=GROwfONSqw-YUH_G87l4y_yQK6HeVUQhlpMWXt-o98Y,226891
|
|
469
|
+
streamlit/static/static/js/index.Dblsdn8d.js,sha256=cmbvuI-XN-vSAcbFfMZMptP23hSuUlfW84Z__QhWMvk,1834
|
|
470
|
+
streamlit/static/static/js/index.DcdD0ROn.js,sha256=aUazS8GcA2_9NW1EpvXOzwSMx9rlxScTjffufc7N7qI,9184
|
|
471
|
+
streamlit/static/static/js/index.DfHm3P22.js,sha256=00R9739nAQRvDwugZknS8bToKg76Nz0JZjdB7ofh78I,443986
|
|
472
|
+
streamlit/static/static/js/index.DiwhD0Ic.js,sha256=aX907lZCJvRbKOZ2p5VnIqwV0O1-Mm5knX5gzmVXUbM,2297085
|
|
473
|
+
streamlit/static/static/js/index.DvZDNiBV.js,sha256=NgVHSr3e18F9z6kBfuo93WhlWTnYJVkxGWm_xPTa2NA,13387
|
|
474
|
+
streamlit/static/static/js/index.HjydQ4bj.js,sha256=exs9i4fddRalfFqzT0oP9q58BGv90zN5voguohs8MSQ,750
|
|
475
|
+
streamlit/static/static/js/index.HsxzYHNf.js,sha256=UyIB4YxYYGlx-GFbvegASfeRpcqqRztc9dxvH1MWUcU,1560
|
|
476
|
+
streamlit/static/static/js/index.SVJGpnpy.js,sha256=zH6m9I9ZXv2H5FSITkYMl6vzOKksSZvigweECslFifI,1605
|
|
477
|
+
streamlit/static/static/js/index.SjKkVSL7.js,sha256=KOydo9LiUOz--87jelHj3dZRPoZqElC_iaHcOuT33vQ,18035
|
|
480
478
|
streamlit/static/static/js/index.bsVAaBS1.js,sha256=iWnuL74SwTYzvoX2fcuvoTFm5zB-8g4oiMdjHAZiH0g,252
|
|
481
|
-
streamlit/static/static/js/index.
|
|
482
|
-
streamlit/static/static/js/index.
|
|
483
|
-
streamlit/static/static/js/index.
|
|
484
|
-
streamlit/static/static/js/index.
|
|
485
|
-
streamlit/static/static/js/
|
|
479
|
+
streamlit/static/static/js/index.hX8_3tMP.js,sha256=EFO0In_lZdV54gKLX7KrKCOEvL1QKUa_UvmimCCEQag,3923
|
|
480
|
+
streamlit/static/static/js/index.jZin0w6_.js,sha256=XIjJneDNSNeJac09HEEEBeD-A8i68CZYYJk_Z92OsNo,8012
|
|
481
|
+
streamlit/static/static/js/index.pQvPlPcA.js,sha256=39Uz2WUeaIK7q3AkFtflqXnnECPu8XoMRQoqv2iWBGs,100087
|
|
482
|
+
streamlit/static/static/js/index.pzQTLx9j.js,sha256=v9jBkiERWg8_w4xa86Q-UNB1E6e43uoyzWQxT4Kh-Ak,13938
|
|
483
|
+
streamlit/static/static/js/index.s44_OVd6.js,sha256=FZf6Qmq2V-z6bP8Vpy2rxH30YrKLrkr50_GwtX-CIhk,4874422
|
|
484
|
+
streamlit/static/static/js/input.jAD-v9D6.js,sha256=V9mhBVsJ6w1v8Ya14ZJ5YVrsG87QdvQyxBIBnLDXoh8,5242
|
|
486
485
|
streamlit/static/static/js/inputUtils.CptNuJwn.js,sha256=v9SUbdkM8OJ6aT_EfTucTRNZh059kZ9Mut2oyTmv_98,124
|
|
487
|
-
streamlit/static/static/js/main.
|
|
488
|
-
streamlit/static/static/js/memory.
|
|
486
|
+
streamlit/static/static/js/main.Cas0fuOs.js,sha256=qCqmBDdYflwpzK9xWcdUU1a4xm3rLUo--GNLwVy_PsM,117541
|
|
487
|
+
streamlit/static/static/js/memory.ENruL8Qk.js,sha256=CZecRdw9LJmk-Rf3KRZEgF_syV8BunSmER6KMBoda-U,3041
|
|
489
488
|
streamlit/static/static/js/moment.C7qA8nIE.js,sha256=WGJqjUq9SPn-dCBlrSpQZOywPJ4xVg2eYZN-CP7-3X0,60773
|
|
490
|
-
streamlit/static/static/js/number-overlay-editor.
|
|
489
|
+
streamlit/static/static/js/number-overlay-editor.DAOTdulh.js,sha256=OfD7ppv0idUauMa5MEqTkWOP0O6Ol4kkDa4bm4THcNo,16652
|
|
491
490
|
streamlit/static/static/js/numbro.B9_PXfzp.js,sha256=JcWnIUWk7g3KL9hw0uuI--Tp_c_VOTPXqigpxrpjzeo,39660
|
|
492
|
-
streamlit/static/static/js/pandasStylerUtils.
|
|
491
|
+
streamlit/static/static/js/pandasStylerUtils.DChYgcPq.js,sha256=q3OUCz3X0_M1pif7c8l96uOJlq2NmctGlvOIFT62J1Y,739437
|
|
493
492
|
streamlit/static/static/js/record.DytFsBUt.js,sha256=1w_An_VyZRJTSv6lYzs_Sz9SOgdyfRSOG846ygJS4MY,8028
|
|
494
|
-
streamlit/static/static/js/sandbox.
|
|
493
|
+
streamlit/static/static/js/sandbox.DWZYRCm0.js,sha256=rcvOghgOE2u4Cc_12B918yxldKhArNGNFsg2YO25j68,2960
|
|
495
494
|
streamlit/static/static/js/sprintf.DpPCfzXw.js,sha256=SggQTlOztni2KsY0aRfgxAjYLCwS7NSUUSCbzZtYpr8,3436
|
|
496
|
-
streamlit/static/static/js/styled-components.
|
|
495
|
+
streamlit/static/static/js/styled-components.3lwVqgRW.js,sha256=_LpGN-3Aqi-EY-qwtPq1DatO-9OImUH7cx4GqjKVC9Q,468
|
|
497
496
|
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.
|
|
497
|
+
streamlit/static/static/js/throttle.DfOW1Cns.js,sha256=WroI8NaeI1UzjbSBZ7vI6hNmCTTDLcc9cWXe02nrxa4,1262
|
|
498
|
+
streamlit/static/static/js/timepicker.CXHgL5f9.js,sha256=Ejbu8wpj-gVVjABBB4qwDj_HyRRFbgsvG5WEMqGntVk,89207
|
|
500
499
|
streamlit/static/static/js/timer.BZio6gjG.js,sha256=vRTmDI39QE6fIvFrIvCwyjsG8MNme68-qu_yYiNUaqQ,7410
|
|
501
|
-
streamlit/static/static/js/toConsumableArray.
|
|
502
|
-
streamlit/static/static/js/uniqueId.
|
|
500
|
+
streamlit/static/static/js/toConsumableArray.DiW0GSDV.js,sha256=V1b7wJZeuBdlP6eZrpGLQnJ7d0x6Nhh76snxLEsEJs8,877
|
|
501
|
+
streamlit/static/static/js/uniqueId.Dfi3SGKZ.js,sha256=_qqvhnw5XNGRYzp7FPh0gkX3lFxqX4hqdR2g7svgJ58,97
|
|
503
502
|
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.
|
|
503
|
+
streamlit/static/static/js/useBasicWidgetState.DnPEt_f3.js,sha256=Hgj2RukqgTdvChIZpjnk-8WtklfwKcG6wqg0GEkbT9E,953
|
|
504
|
+
streamlit/static/static/js/useIntlLocale.BZEGSOVD.js,sha256=hs4HEiizGtZGyDyNMLf3jxOH8eeq2mQ-Eck4wWdL4YE,109692
|
|
505
|
+
streamlit/static/static/js/useTextInputAutoExpand.MGVZMqyt.js,sha256=_L1BPNHyLom31yWLXHYTNa4QOIUgHJj4lQF_hkidd4s,6643
|
|
506
|
+
streamlit/static/static/js/useUpdateUiValue.CPl6CEx3.js,sha256=0g8uYjVr7ZGmiZqx8AcmV6V5tj0hQPPM8Zos5sQvt5k,615
|
|
507
|
+
streamlit/static/static/js/useWaveformController.DOpzDyZu.js,sha256=G0EyGk4L664yEtjipfO1YmnxfrQodcKrMRYP3ASmY2E,12364
|
|
509
508
|
streamlit/static/static/js/value.DaKxGC7O.js,sha256=bicc2v81rJzY9PmrISkaY1Z9A3aJmsRRK5aMj5nGmrc,15044
|
|
510
509
|
streamlit/static/static/js/wavesurfer.esm.D1Sty35j.js,sha256=GYinzhehnkxBppDnKJLH3b87dUJ7gBJxN8F1D3_Hn6E,39578
|
|
511
|
-
streamlit/static/static/js/withCalculatedWidth.
|
|
512
|
-
streamlit/static/static/js/withFullScreenWrapper.
|
|
510
|
+
streamlit/static/static/js/withCalculatedWidth.DgKFTeif.js,sha256=3lW4XeD2-PyQ6bV3FLVtbIBuvY_KOYrRuFs1uB5LRto,260
|
|
511
|
+
streamlit/static/static/js/withFullScreenWrapper.K1jkwhPu.js,sha256=79BKnNLBdMidwkvtXEsk4tjlJ_NiQXQMAGtrWuRQLi4,1541
|
|
513
512
|
streamlit/static/static/media/KaTeX_AMS-Regular.BQhdFMY1.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
|
|
514
513
|
streamlit/static/static/media/KaTeX_AMS-Regular.DMm9YOAa.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
|
|
515
514
|
streamlit/static/static/media/KaTeX_AMS-Regular.DRggAlZN.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
|
|
@@ -634,9 +633,9 @@ streamlit/web/server/starlette/starlette_server.py,sha256=pBmwN6nFEruMonhajjd-ID
|
|
|
634
633
|
streamlit/web/server/starlette/starlette_server_config.py,sha256=_cgub_NiTO-52etLfEMIoe5bWgA3TVianT2mYCVQmqo,2508
|
|
635
634
|
streamlit/web/server/starlette/starlette_static_routes.py,sha256=sDLGRlIvFCBQieXOf0BmueYVP3KJTfvGy-ux3Tk4D6E,7547
|
|
636
635
|
streamlit/web/server/starlette/starlette_websocket.py,sha256=f64fojwihK7XXIfYT4HGNLd1TPZJMT7JEK43h4ScDAg,21338
|
|
637
|
-
streamlit_nightly-1.53.1.
|
|
638
|
-
streamlit_nightly-1.53.1.
|
|
639
|
-
streamlit_nightly-1.53.1.
|
|
640
|
-
streamlit_nightly-1.53.1.
|
|
641
|
-
streamlit_nightly-1.53.1.
|
|
642
|
-
streamlit_nightly-1.53.1.
|
|
636
|
+
streamlit_nightly-1.53.1.dev20260115.data/scripts/streamlit.cmd,sha256=es_jE8w9dt6l9DA40xFlQjGJeVq1Of8rDJQNibPUlEA,676
|
|
637
|
+
streamlit_nightly-1.53.1.dev20260115.dist-info/METADATA,sha256=G7CYNpgJeavug_ko7GxUF3BAWXzSiesTDSkHRb8_n4E,10214
|
|
638
|
+
streamlit_nightly-1.53.1.dev20260115.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
639
|
+
streamlit_nightly-1.53.1.dev20260115.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
|
640
|
+
streamlit_nightly-1.53.1.dev20260115.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
|
641
|
+
streamlit_nightly-1.53.1.dev20260115.dist-info/RECORD,,
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2026)
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
|
|
17
|
-
from typing import Any
|
|
18
|
-
from urllib import parse
|
|
19
|
-
|
|
20
|
-
from streamlit.errors import StreamlitAPIException
|
|
21
|
-
from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
|
|
22
|
-
from streamlit.runtime.metrics_util import gather_metrics
|
|
23
|
-
from streamlit.runtime.scriptrunner_utils.script_run_context import get_script_run_ctx
|
|
24
|
-
from streamlit.runtime.state.query_params import (
|
|
25
|
-
EMBED_OPTIONS_QUERY_PARAM,
|
|
26
|
-
EMBED_QUERY_PARAM,
|
|
27
|
-
EMBED_QUERY_PARAMS_KEYS,
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
@gather_metrics("experimental_get_query_params")
|
|
32
|
-
def get_query_params() -> dict[str, list[str]]:
|
|
33
|
-
"""Return the query parameters that is currently showing in the browser's URL bar.
|
|
34
|
-
|
|
35
|
-
Returns
|
|
36
|
-
-------
|
|
37
|
-
dict
|
|
38
|
-
The current query parameters as a dict. "Query parameters" are the part of the URL that comes
|
|
39
|
-
after the first "?".
|
|
40
|
-
|
|
41
|
-
Example
|
|
42
|
-
-------
|
|
43
|
-
Let's say the user's web browser is at
|
|
44
|
-
`http://localhost:8501/?show_map=True&selected=asia&selected=america`.
|
|
45
|
-
Then, you can get the query parameters using the following:
|
|
46
|
-
|
|
47
|
-
>>> import streamlit as st
|
|
48
|
-
>>>
|
|
49
|
-
>>> st.experimental_get_query_params()
|
|
50
|
-
{"show_map": ["True"], "selected": ["asia", "america"]}
|
|
51
|
-
|
|
52
|
-
Note that the values in the returned dict are *always* lists. This is
|
|
53
|
-
because we internally use Python's urllib.parse.parse_qs(), which behaves
|
|
54
|
-
this way. And this behavior makes sense when you consider that every item
|
|
55
|
-
in a query string is potentially a 1-element array.
|
|
56
|
-
|
|
57
|
-
"""
|
|
58
|
-
ctx = get_script_run_ctx()
|
|
59
|
-
if ctx is None:
|
|
60
|
-
return {}
|
|
61
|
-
ctx.mark_experimental_query_params_used()
|
|
62
|
-
# Return new query params dict, but without embed, embed_options query params
|
|
63
|
-
return _exclude_keys_in_dict(
|
|
64
|
-
parse.parse_qs(ctx.query_string, keep_blank_values=True),
|
|
65
|
-
keys_to_exclude=EMBED_QUERY_PARAMS_KEYS,
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
@gather_metrics("experimental_set_query_params")
|
|
70
|
-
def set_query_params(**query_params: Any) -> None:
|
|
71
|
-
"""Set the query parameters that are shown in the browser's URL bar.
|
|
72
|
-
|
|
73
|
-
.. warning::
|
|
74
|
-
Query param `embed` cannot be set using this method.
|
|
75
|
-
|
|
76
|
-
Parameters
|
|
77
|
-
----------
|
|
78
|
-
**query_params : dict
|
|
79
|
-
The query parameters to set, as key-value pairs.
|
|
80
|
-
|
|
81
|
-
Example
|
|
82
|
-
-------
|
|
83
|
-
|
|
84
|
-
To point the user's web browser to something like
|
|
85
|
-
"http://localhost:8501/?show_map=True&selected=asia&selected=america",
|
|
86
|
-
you would do the following:
|
|
87
|
-
|
|
88
|
-
>>> import streamlit as st
|
|
89
|
-
>>>
|
|
90
|
-
>>> st.experimental_set_query_params(
|
|
91
|
-
... show_map=True,
|
|
92
|
-
... selected=["asia", "america"],
|
|
93
|
-
... )
|
|
94
|
-
|
|
95
|
-
"""
|
|
96
|
-
ctx = get_script_run_ctx()
|
|
97
|
-
if ctx is None:
|
|
98
|
-
return
|
|
99
|
-
ctx.mark_experimental_query_params_used()
|
|
100
|
-
|
|
101
|
-
msg = ForwardMsg()
|
|
102
|
-
msg.page_info_changed.query_string = _ensure_no_embed_params(
|
|
103
|
-
query_params, ctx.query_string
|
|
104
|
-
)
|
|
105
|
-
ctx.query_string = msg.page_info_changed.query_string
|
|
106
|
-
ctx.enqueue(msg)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
def _exclude_keys_in_dict(
|
|
110
|
-
d: dict[str, Any], keys_to_exclude: list[str]
|
|
111
|
-
) -> dict[str, Any]:
|
|
112
|
-
"""Returns new object but without keys defined in keys_to_exclude."""
|
|
113
|
-
return {
|
|
114
|
-
key: value for key, value in d.items() if key.lower() not in keys_to_exclude
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
def _extract_key_query_params(
|
|
119
|
-
query_params: dict[str, list[str]], param_key: str
|
|
120
|
-
) -> set[str]:
|
|
121
|
-
"""Extracts key (case-insensitive) query params from Dict, and returns them as Set of str."""
|
|
122
|
-
return {
|
|
123
|
-
item.lower()
|
|
124
|
-
for sublist in [
|
|
125
|
-
[value.lower() for value in query_params[key]]
|
|
126
|
-
for key in query_params
|
|
127
|
-
if key.lower() == param_key and query_params.get(key)
|
|
128
|
-
]
|
|
129
|
-
for item in sublist
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
def _ensure_no_embed_params(
|
|
134
|
-
query_params: dict[str, list[str] | str], query_string: str
|
|
135
|
-
) -> str:
|
|
136
|
-
"""Ensures there are no embed params set (raises StreamlitAPIException) if there is a try,
|
|
137
|
-
also makes sure old param values in query_string are preserved. Returns query_string : str.
|
|
138
|
-
"""
|
|
139
|
-
# Get query params dict without embed, embed_options params
|
|
140
|
-
query_params_without_embed = _exclude_keys_in_dict(
|
|
141
|
-
query_params, keys_to_exclude=EMBED_QUERY_PARAMS_KEYS
|
|
142
|
-
)
|
|
143
|
-
if query_params != query_params_without_embed:
|
|
144
|
-
raise StreamlitAPIException(
|
|
145
|
-
"Query param embed and embed_options (case-insensitive) cannot be set using set_query_params method."
|
|
146
|
-
)
|
|
147
|
-
|
|
148
|
-
all_current_params = parse.parse_qs(query_string, keep_blank_values=True)
|
|
149
|
-
current_embed_params = parse.urlencode(
|
|
150
|
-
{
|
|
151
|
-
EMBED_QUERY_PARAM: list(
|
|
152
|
-
_extract_key_query_params(
|
|
153
|
-
all_current_params, param_key=EMBED_QUERY_PARAM
|
|
154
|
-
)
|
|
155
|
-
),
|
|
156
|
-
EMBED_OPTIONS_QUERY_PARAM: list(
|
|
157
|
-
_extract_key_query_params(
|
|
158
|
-
all_current_params, param_key=EMBED_OPTIONS_QUERY_PARAM
|
|
159
|
-
)
|
|
160
|
-
),
|
|
161
|
-
},
|
|
162
|
-
doseq=True,
|
|
163
|
-
)
|
|
164
|
-
query_string = parse.urlencode(query_params, doseq=True)
|
|
165
|
-
|
|
166
|
-
if query_string:
|
|
167
|
-
separator = "&" if current_embed_params else ""
|
|
168
|
-
return separator.join([query_string, current_embed_params])
|
|
169
|
-
return current_embed_params
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,ak as d,al as p,j as s,a0 as x,F as C,L as f,O as g}from"./index.CXVpBAvU.js";const M=({children:t})=>{const e=a.useContext(d)?.();return e?p.createPortal(t,e):s(x,{children:t})},P=C("div",{target:"e1smm6vf0"})({"@media print":{display:"none"}}),u=({className:t,scriptRunId:e,numParticles:o,numParticleTypes:r,ParticleComponent:n})=>{const{resourceCrossOriginMode:i}=a.useContext(f),c=a.useMemo(()=>g(o).map(()=>Math.floor(Math.random()*r)),[o,r]);return s(P,{className:t,"data-testid":t,children:c.map((l,m)=>s(n,{particleType:l,resourceCrossOriginMode:i},e+m))})},y=a.memo(u);export{y as P,M as R};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,E as m,_ as u,F as d,m as w,j as n,o as v,l as x,aA as E,P as b,B as g,az as T,b as y,q as B}from"./index.CXVpBAvU.js";var h=s.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(m,u({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),s.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),s.createElement("path",{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}))});h.displayName="Fullscreen";var f=s.forwardRef(function(t,e){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(m,u({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},t,{ref:e}),s.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),s.createElement("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))});f.displayName="FullscreenExit";const c="-2.65rem",z=d("div",{target:"e1usqpj00"})(({theme:t,locked:e,target:o})=>({padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:e?c:"-1rem",right:t.spacing.none,transition:"none",...!e&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:c},...o&&{[`${o}:hover &, ${o}:active &, ${o}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:c}}}})),C=d("div",{target:"e1usqpj01"})(({theme:t})=>({color:w(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.default,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1,padding:t.spacing.twoXS})),A=d("div",{target:"e1usqpj02"})(({height:t,useContainerWidth:e,topCentered:o,useContainerHeight:a})=>({position:"relative",height:e&&t?t:a?t||"100%":"fit-content",maxWidth:"100%",width:e?"100%":"fit-content",...o?{display:"flex",justifyContent:"center"}:{}}));function p({label:t,show_label:e,icon:o,onClick:a}){const r=x(),i=e?t:"";return n("div",{"data-testid":"stElementToolbarButton",children:n(E,{content:n(B,{source:t,allowHTML:!1,style:{fontSize:r.fontSizes.sm}}),placement:b.TOP,onMouseEnterDelay:1e3,inline:!0,children:v(y,{onClick:l=>{a&&a(),l.stopPropagation()},kind:g.ELEMENT_TOOLBAR,"aria-label":t,children:[o&&n(T,{content:o,size:"md",testid:"stElementToolbarButtonIcon"}),i&&n("span",{children:i})]})})})}const M=({onExpand:t,onCollapse:e,isFullScreen:o,locked:a,children:r,target:i,disableFullscreenMode:l})=>n(z,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:a||o,target:i,children:v(C,{"data-testid":"stElementToolbarButtonContainer",children:[r,t&&!l&&!o&&n(p,{label:"Fullscreen",icon:h,onClick:()=>t()}),e&&!l&&o&&n(p,{label:"Close fullscreen",icon:f,onClick:()=>e()})]})});export{A as S,M as T,p as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as f,r as a,l as m,o as x,j as i,Z as v,q as L,$ as r,a0 as R,m as C,n as k,a1 as B,a2 as E}from"./index.CXVpBAvU.js";const z=f("button",{target:"e1a81sb30"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),H=f("div",{target:"e1a81sb31"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),D=f("div",{target:"e1a81sb32"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function M(o){const t=C(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:o.colors.bgColor,filter:t?"brightness(0.98)":"brightness(1.2)",color:o.colors.bodyText,boxShadow:t?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function I(o){if(o.length>104){let s=o.replace(/^(.{104}[^\s]*).*/,"$1");return s.length>104&&(s=s.substring(0,104).split(" ").slice(0,-1).join(" ")),s.trim()}return o}function j({element:o}){const{body:t,icon:s,duration:d}=o,n=m(),c=I(t),l=t!==c,[e,T]=a.useState(!l),[b,S]=a.useState(0),y=a.useCallback(()=>{T(!e)},[e]),g=a.useMemo(()=>M(n),[n]),p=a.useMemo(()=>x(H,{expanded:e,children:[s&&i(v,{iconValue:s,size:"xl",testid:"stToastDynamicIcon"}),x(D,{children:[i(L,{source:e?t:c,allowHTML:!1,isToast:!0}),l&&i(z,{"data-testid":"stToastViewButton",onClick:y,children:e?"view less":"view more"})]})]}),[l,e,t,s,c,y]);a.useEffect(()=>{if(n.inSidebar)return;const w=k(d)?d===0?0:d*1e3:4e3,u=r.info(p,{overrides:{...g},autoHideDuration:w});return S(u),()=>{r.update(u,{overrides:{Body:{style:{display:"none"}}}}),r.clear(u)}},[]),a.useEffect(()=>{r.update(b,{children:p,overrides:{...g}})},[b,p,g]);const h=i(E,{kind:B.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return i(R,{children:n.inSidebar&&h})}const O=a.memo(j);export{O as default};
|