1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[474,9758],{60474:function(e,t,n){n.r(t),n.d(t,{FileHandle:function(){return v}});var r=n(50189),i=n(11092),a=n(19113),o=n(649),s=n(27791),u=n(22951),c=n(91976),l=n(69758),d=n(60643),p=d.Z.WritableStream,f=d.Z.TransformStream,h=d.Z.DOMException,y=d.Z.Blob,m=l.errors.GONE,w=/constructor/i.test(window.HTMLElement)||window.safari||window.WebKitPoint,v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unkown";(0,u.Z)(this,e),this.name=t,this.kind="file"}return(0,c.Z)(e,[{key:"getFile",value:function(){var e=(0,s.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw(0,a.Z)(h,(0,o.Z)(m));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"isSameEntry",value:function(){var e=(0,s.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this===t);case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createWritable",value:function(){var e=(0,s.Z)((0,i.Z)().mark((function e(){var t,n,a,o,s,u,c,l,d,h,m,v,b,g,k=arguments;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=k.length>0&&void 0!==k[0]?k[0]:{},e.next=3,null===(t=navigator.serviceWorker)||void 0===t?void 0:t.getRegistration();case 3:return a=e.sent,o=document.createElement("a"),s=new f,u=s.writable,o.download=this.name,w||!a?(c=[],s.readable.pipeTo(new p({write:function(e){c.push(new y([e]))},close:function(){var e=new y(c,{type:"application/octet-stream; charset=utf-8"});c=[],o.href=URL.createObjectURL(e),o.click(),setTimeout((function(){return URL.revokeObjectURL(o.href)}),1e4)}}))):(l=new _(p),d=l.writable,h=l.readablePort,m=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),v=(0,r.Z)({"content-disposition":"attachment; filename*=UTF-8''"+m,"content-type":"application/octet-stream; charset=utf-8"},n.size?{"content-length":n.size}:{}),b=setTimeout((function(){return a.active.postMessage(0)}),1e4),s.readable.pipeThrough(new f({transform:function(e,t){if(e instanceof Uint8Array)return t.enqueue(e);var n=new Response(e).body.getReader();return function e(r){return n.read().then((function(n){return n.done?0:e(t.enqueue(n.value))}))}()}})).pipeTo(d).finally((function(){clearInterval(b)})),a.active.postMessage({url:a.scope+m,headers:v,readablePort:h}
1,[h]),(g=document.createElement("iframe")).hidden=!0,g.src=a.scope+m,document.body.appendChild(g)),e.abrupt("return",u.getWriter());case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),b=function(){function e(t){var n=this;(0,u.Z)(this,e),t.onmessage=function(e){return n._onMessage(e.data)},this._port=t,this._resetReady()}return(0,c.Z)(e,[{key:"start",value:function(e){return this._controller=e,this._readyPromise}},{key:"write",value:function(e){var t={type:0,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}},{key:"close",value:function(){this._port.postMessage({type:2}),this._port.close()}},{key:"abort",value:function(e){this._port.postMessage({type:1,reason:e}),this._port.close()}},{key:"_onMessage",value:function(e){0===e.type&&this._resolveReady(),1===e.type&&this._onError(e.reason)}},{key:"_onError",value:function(e){this._controller.error(e),this._rejectReady(e),this._port.close()}},{key:"_resetReady",value:function(){var e=this;this._readyPromise=new Promise((function(t,n){e._readyResolve=t,e._readyReject=n})),this._readyPending=!0}},{key:"_resolveReady",value:function(){this._readyResolve(),this._readyPending=!1}},{key:"_rejectReady",value:function(e){this._readyPending||this._resetReady(),this._readyPromise.catch((function(){})),this._readyReject(e),this._readyPending=!1}}]),e}(),_=(0,c.Z)((function e(t){(0,u.Z)(this,e);var n=new MessageChannel;this.readablePort=n.port1,this.writable=new t(new b(n.port2))}))},69758:function(e,t,n){n.r(t),n.d(t,{config:function(){return s},errors:function(){return o},fromDataTransfer:function(){return u},getDirHandlesFromInput:function(){return l},getFileHandlesFromInput:function(){return p}});var r=n(11092),i=n(11026),a=n(27791),o={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:function(e){return["Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ".concat(e),"SyntaxError"]},SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},s={writable:globalThis.WritableStream};function u(e){return c.apply(this,arguments)}function c(){return(c=(0,a.Z)((0,r.Z)().mark((function e(t){var a,o,s,u,c,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead"),e.next=3,Promise.all([n.e(8724).then(n.bind(n,88724)),n.e(3053).then(n.bind(n,13053)),Promise.resolve().then(n.bind(n,46979))]);case 3:return a=e.sent,o=(0,i.Z)(a,3),s=o[0],u=o[1],c=o[2],(l=new s.FolderHandle("",!1))._entries=t.map((function(e){return e.isFile?new u.FileHandle(e,!1):new u.FolderHandle(e,!1)})),e.abrupt("return",new c.FileSystemDirectoryHandle(l));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return d.apply(this,arguments)}function d(){return(d=(0,a.Z)((0,r.Z)().mark((function e(t){var i,a,o,s,u,c,l,d;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(8724).then(n.bind(n,88724));case 2:return i=e.sent,a=i.FolderHandle,o=i.FileHandle,e.next=7,Promise.resolve().then(n.bind(n,46979));case 7:return s=e.sent,u=s.FileSystemDirectoryHandle,c=Array.from(t.files),l=c[0].webkitRelativePath.split("/",1)[0],d=new a(l,!1),c.forEach((function(e){var t=e.webkitRelativePath.split("/");t.shift();var n=t.pop();t.reduce((function(e,t){return e._entries[t]||(e._entries[t]=new a(t,!1)),e._entries[t]}),d)._entries[n]=new o(e.name,e,!1)})),e.abrupt("return",new u(d));case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=(0,a.Z)((0,r.Z)().mark((function e(t){var i,a,o,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(8724).then(n.bind(n,88724));case 2:return i=e.sent,a=i.FileHandle,e.next=6,Promise.resolve().then(n.bind(n,8192));case 6:return o=e.sent,s=o.FileSystemFileHandle,e.abrupt("return",Array.from(t.files).map((function(e){return new s(new a(e.name,e,!1))})));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.