PageSourceSearch

https://pt.2035.university/theme/v2/js/resumable.min.js

js 2035.university collected 2026-10-09 21:51:54 UTC 14,936 bytes, 1 lines download raw bytes

1!function(){"use strict";var a=function(b){function c(a,b,c){var e=this;e.opts={},e.getOpt=a.getOpt,e._prevProgress=0,e.resumableObj=a,e.file=b,e.fileName=b.fileName||b.name,e.size=b.size,e.relativePath=b.webkitRelativePath||b.relativePath||e.fileName,e.uniqueIdentifier=c,e._pause=!1,e.container="";var g=void 0!==c,h=function(a,b){switch(a){case"progress":e.resumableObj.fire("fileProgress",e);break;case"error":e.abort(),g=!0,e.chunks=[],e.resumableObj.fire("fileError",e,b);break;case"success":if(g)return;e.resumableObj.fire("fileProgress",e),e.isComplete()&&e.resumableObj.fire("fileSuccess",e,b);break;case"retry":e.resumableObj.fire("fileRetry",e)}};return e.chunks=[],e.abort=function(){var a=0;f.each(e.chunks,function(b){"uploading"==b.status()&&(b.abort(),a++)}),a>0&&e.resumableObj.fire("fileProgress",e)},e.cancel=function(){var a=e.chunks;e.chunks=[],f.each(a,function(a){"uploading"==a.status()&&(a.abort(),e.resumableObj.uploadNextChunk())}),e.resumableObj.removeFile(e),e.resumableObj.fire("fileProgress",e)},e.retry=function(){e.bootstrap();var a=!1;e.resumableObj.on("chunkingComplete",function(){a||e.resumableObj.upload(),a=!0})},e.bootstrap=function(){e.abort(),g=!1,e.chunks=[],e._prevProgress=0;for(var a=e.getOpt("forceChunkSize")?Math.ceil:Math.floor,b=Math.max(a(e.file.size/e.getOpt("chunkSize")),1),c=0;c<b;c++)!function(a){window.setTimeout(function(){e.chunks.push(new d(e.resumableObj,e,a,h)),e.resumableObj.fire("chunkingProgress",e,a/b)},0)}(c);window.setTimeout(function(){e.resumableObj.fire("chunkingComplete",e)},0)},e.progress=function(){if(g)return 1;var a=0,b=!1;return f.each(e.chunks,function(c){"error"==c.status()&&(b=!0),a+=c.progress(!0)}),a=b?1:a>.99999?1:a,a=Math.max(e._prevProgress,a),e._prevProgress=a,a},e.isUploading=function(){var a=!1;return f.each(e.chunks,function(b){if("uploading"==b.status())return a=!0,!1}),a},e.isComplete=function(){var a=!1;return f.each(e.chunks,function(b){var c=b.status();if("pending"==c||"uploading"==c||1===b.preprocessState)return a=!0,!1}),!a},e.pause=function(a){e._pause=void 0===a?!e._pause:a},e.isPaused=function(){return e._pause},e.resumableObj.fire("chunkingStart",e),e.bootstrap(),this}function d(a,b,c,d){var e=this;e.opts={},e.getOpt=a.getOpt,e.resumableObj=a,e.fileObj=b,e.fileObjSize=b.size,e.fileObjType=b.file.type,e.offset=c,e.callback=d,e.lastProgressCallback=new Date,e.tested=!1,e.retries=0,e.pendingRetry=!1,e.preprocessState=0;var g=e.getOpt("chunkSize");return e.loaded=0,e.startByte=e.offset*g,e.endByte=Math.min(e.fileObjSize,(e.offset+1)*g),e.fileObjSize-e.endByte<g&&!e.getOpt("forceChunkSize")&&(e.endByte=e.fileObjSize),e.xhr=null,e.test=function(){e.xhr=new XMLHttpRequest;var a=function(a){e.tested=!0;var b=e.status();"success"==b?(e.callback(b,e.message()),e.resumableObj.uploadNextChunk()):e.send()};e.xhr.addEventListener("load",a,!1),e.xhr.addEventListener("error",a,!1),e.xhr.addEventListener("timeout",a,!1);var b=[],c=e.getOpt("parameterNamespace"),d=e.getOpt("query");"function"==typeof d&&(d=d(e.fileObj,e)),f.each(d,function(a,d){b.push([encodeURIComponent(c+a),encodeURIComponent(d)].join("="))}),b.push([c+"resumableChunkNumber",encodeURIComponent(e.offset+1)].join("=")),b.push([c+"resumableChunkSize",encodeURIComponent(e.getOpt("chunkSize"))].join("=")),b.push([c+"resumableCurrentChunkSize",encodeURIComponent(e.endByte-e.startByte)].join("=")),b.push([c+"resumableTotalSize",encodeURIComponent(e.fileObjSize)].join("=")),b.push([c+"resumableType",encodeURIComponent(e.fileObjType)].join("=")),b.push([c+"resumableIdentifier",encodeURIComponent(e.fileObj.uniqueIdentifier)].join("=")),b.push([c+"resumableFilename",encodeURIComponent(e.fileObj.fileName)].join("=")),b.push([c+"resumableRelativePath",encodeURIComponent(e.fileObj.relativePath)].join("=")),b.push([c+"resumableTotalChunks",encodeURIComponent(e.fileObj.chunks.length)].join("=")),e.xhr.open(e.getOpt("testMethod"),f.getTarget(b)),e.xhr.timeout=e.getOpt("xhrTimeout"),e.xhr.withCredentials=e.getOpt("withCredentials");var g=e.getOpt("headers");"function"==typeof g&&(g=g(e.fileObj,e)),f.each(g,function(a,b){e.xhr.setRequestHeader(a,b)}),e.xhr.send(null)},e.preprocessFinished=function(){e.preprocessState=2,e.send()},e.send=function(){var a=e.getOpt("preprocess");if("function"==typeof a)switch(e.preprocessState){case 0:return e.preprocessState=1,void a(e);case 1:return}if(e.getOpt("testChunks")&&!e.tested)return void e.test();e.xhr=new XMLHttpRequest,e.xhr.upload.addEventListener("progress",function(a){new Date-e.lastProgressCallback>1e3*e.getOpt("throttleProgressCallbacks")&&(e.callback("progress"),e.lastProgressCallback=new Date),e.loaded=a.loaded||0},!1),e.loaded=0,e.pendingRetry=!1,e.callback("progress");var b=function(a){var b=e.status();if("success"==b||"error"==b)e.callback(b,e.message()),e.resumableObj.uploadNextChunk();else{e.callback("retry",e.message()),e.abort(),e.retries++;var c=e.getOpt("chunkRetryInterval");void 0!==c?(e.pendingRetry=!0,setTimeout(e.send,c)):e.send()}};e.xhr.addEventListener("load",b,!1),e.xhr.addEventListener("error",b,!1),e.xhr.addEventListener("timeout",b,!1);var c={resumableChunkNumber:e.offset+1,resumableChunkSize:e.getOpt("chunkSize"),resumableCurrentChunkSize:e.endByte-e.startByte,resumableTotalSize:e.fileObjSize,resumableType:e.fileObjType,resumableIdentifier:e.fileObj.uniqueIdentifier,resumableFilename:e.fileObj.fileName,resumableRelativePath:e.fileObj.relativePath,resumableTotalChunks:e.fileObj.chunks.length},d=e.getOpt("query");"function"==typeof d&&(d=d(e.fileObj,e)),f.each(d,function(a,b){c[a]=b});var g=e.fileObj.file.slice?"slice":e.fileObj.file.mozSlice?"mozSlice":e.fileObj.file.webkitSlice?"webkitSlice":"slice",h=e.fileObj.file[g](e.startByte,e.endByte),i=null,j=e.getOpt("target"),k=e.getOpt("parameterNamespace");if("octet"===e.getOpt("method")){i=h;var l=[];f.each(c,function(a,b){l.push([encodeURIComponent(k+a),encodeURIComponent(b)].join("="))}),j=f.getTarget(l)}else i=new FormData,f.each(c,function(a,b){i.append(k+a,b)}),i.append(k+e.getOpt("fileParameterName"),h);var m=e.getOpt("uploadMethod");e.xhr.open(m,j),"octet"===e.getOpt("method")&&e.xhr.setRequestHeader("Content-Type","binary/octet-stream"),e.xhr.timeout=e.getOpt("xhrTimeout"),e.xhr.withCredentials=e.getOpt("withCredentials");var n=e.getOpt("headers");"function"==typeof n&&(n=n(e.fileObj,e)),f.each(n,function(a,b){e.xhr.setRequestHeader(a,b)}),e.xhr.send(i)},e.abort=function(){e.xhr&&e.xhr.abort(),e.xhr=null},e.status=function(){return e.pendingRetry?"uploading":e.xhr?e.xhr.readyState<4?"uploading":200==e.xhr.status||201==e.xhr.status?"success":f.contains(e.getOpt("permanentErrors"),e.xhr.status)||e.retries>=e.getOpt("maxChunkRetries")?"error":(e.abort(),"pending"):"pending"},e.message=function(){return e.xhr?e.xhr.responseText:""},e.progress=function(a){void 0===a&&(a=!1);var b=a?(e.endByte-e.startByte)/e.fileObjSize:1;if(e.pendingRetry)return 0;
1switch(e.status()){case"success":case"error":return 1*b;case"pending":return 0*b;default:return e.loaded/(e.endByte-e.startByte)*b}},this}if(!(this instanceof a))return new a(b);if(this.version=1,this.support=!("undefined"==typeof File||"undefined"==typeof Blob||"undefined"==typeof FileList||!Blob.prototype.webkitSlice&&!Blob.prototype.mozSlice&&!Blob.prototype.slice),!this.support)return!1;var e=this;e.files=[],e.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,fileParameterName:"file",throttleProgressCallbacks:.5,query:{},headers:{},preprocess:null,method:"multipart",uploadMethod:"POST",testMethod:"GET",prioritizeFirstAndLastChunk:!1,target:"/",parameterNamespace:"",testChunks:!0,generateUniqueIdentifier:null,getTarget:null,maxChunkRetries:void 0,chunkRetryInterval:void 0,permanentErrors:[400,404,415,500,501],maxFiles:void 0,withCredentials:!1,xhrTimeout:0,maxFilesErrorCallback:function(a,b){var c=e.getOpt("maxFiles");alert("Please upload no more than "+c+" file"+(1===c?"":"s")+" at a time.")},minFileSize:1,minFileSizeErrorCallback:function(a,b){alert(a.fileName||a.name+" is too small, please upload files larger than "+f.formatSize(e.getOpt("minFileSize"))+".")},maxFileSize:void 0,maxFileSizeErrorCallback:function(a,b){alert(a.fileName||a.name+" is too large, please upload files less than "+f.formatSize(e.getOpt("maxFileSize"))+".")},fileType:[],fileTypeErrorCallback:function(a,b){alert(a.fileName||a.name+" has type not allowed, please upload files of type "+e.getOpt("fileType")+".")}},e.opts=b||{},e.getOpt=function(b){var e=this;if(b instanceof Array){var g={};return f.each(b,function(a){g[a]=e.getOpt(a)}),g}if(e instanceof d){if(void 0!==e.opts[b])return e.opts[b];e=e.fileObj}if(e instanceof c){if(void 0!==e.opts[b])return e.opts[b];e=e.resumableObj}if(e instanceof a)return void 0!==e.opts[b]?e.opts[b]:e.defaults[b]},e.events=[],e.on=function(a,b){e.events.push(a.toLowerCase(),b)},e.fire=function(){for(var a=[],b=0;b<arguments.length;b++)a.push(arguments[b]);for(var c=a[0].toLowerCase(),b=0;b<=e.events.length;b+=2)e.events[b]==c&&e.events[b+1].apply(e,a.slice(1)),"catchall"==e.events[b]&&e.events[b+1].apply(null,a);"fileerror"==c&&e.fire("error",a[2],a[1]),"fileprogress"==c&&e.fire("progress")};var f={stopEvent:function(a){a.stopPropagation(),a.preventDefault()},each:function(a,b){if(void 0!==a.length){for(var c=0;c<a.length;c++)if(!1===b(a[c]))return}else for(c in a)if(!1===b(c,a[c]))return},generateUniqueIdentifier:function(a){var b=e.getOpt("generateUniqueIdentifier");if("function"==typeof b)return b(a);var c=a.webkitRelativePath||a.fileName||a.name;return a.size+"-"+c.replace(/[^0-9a-zA-Z_-]/gim,"")},contains:function(a,b){var c=!1;return f.each(a,function(a){return a!=b||(c=!0,!1)}),c},formatSize:function(a){return a<1024?a+" bytes":a<1048576?(a/1024).toFixed(0)+" KB":a<1073741824?(a/1024/1024).toFixed(1)+" MB":(a/1024/1024/1024).toFixed(1)+" GB"},getTarget:function(a){var b=e.getOpt("target");return"function"==typeof b?b(a):(b.indexOf("?")<0?b+="?":b+="&",b+a.join("&"))}},g=function(a){f.stopEvent(a),a.dataTransfer&&a.dataTransfer.items?i(a.dataTransfer.items,a):a.dataTransfer&&a.dataTransfer.files&&i(a.dataTransfer.files,a)},h=function(a){a.preventDefault()},i=function(a,b,c,d){c||(c={total:0,files:[],event:b}),j(a.length,c);for(var e=0;e<a.length;e++){var f,g,h=a[e];if(h.isFile||h.isDirectory)f=h;else if(h.getAsEntry)f=h.getAsEntry();else{if(!h.webkitGetAsEntry){if("function"==typeof h.getAsFile){k(h.getAsFile(),c,d);continue}if(File&&h instanceof File){k(h,c,d);continue}j(-1,c);continue}f=h.webkitGetAsEntry()}if(f){if(f.isFile)f.file(function(a){k(a,c,d)},function(a){console.warn(a)});else if(f.isDirectory){g=f.createReader();var l=[],m=function(a){g.readEntries(function(d){if(d.length>0){for(var e=0;e<d.length;e++)l.push(d[e]);m(f.fullPath)}else i(l,b,c,a),j(-1,c)},function(a){j(-1,c),console.warn(a)})};m(f.fullPath)}}else j(-1,c)}},j=function(a,b){b.total+=a,b.files.length===b.total&&l(b.files,b.event)},k=function(a,b,c){c&&(a.relativePath=c+"/"+a.name),b.files.push(a),b.files.length===b.total&&l(b.files,b.event)},l=function(a,b){var d=0,g=e.getOpt(["maxFiles","minFileSize","maxFileSize","maxFilesErrorCallback","minFileSizeErrorCallback","maxFileSizeErrorCallback","fileType","fileTypeErrorCallback"]);if(void 0!==g.maxFiles&&g.maxFiles<a.length+e.files.length){if(1!==g.maxFiles||1!==e.files.length||1!==a.length)return g.maxFilesErrorCallback(a,d++),!1;e.removeFile(e.files[0])}var h=[];f.each(a,function(a){function i(d){e.getFromUniqueIdentifier(d)||function(){a.uniqueIdentifier=d;var f=new c(e,a,d);e.files.push(f),h.push(f),f.container=void 0!==b?b.srcElement:null,window.setTimeout(function(){e.fire("fileAdded",f,b)},0)}()}var j=a.name;if(g.fileType.length>0){var k=!1;for(var l in g.fileType){var m="."+g.fileType[l];if(-1!==j.indexOf(m,j.length-m.length)){k=!0;break}}if(!k)return g.fileTypeErrorCallback(a,d++),!1}if(void 0!==g.minFileSize&&a.size<g.minFileSize)return g.minFileSizeErrorCallback(a,d++),!1;if(void 0!==g.maxFileSize&&a.size>g.maxFileSize)return g.maxFileSizeErrorCallback(a,d++),!1;var n=f.generateUniqueIdentifier(a);n&&"function"==typeof n.done&&"function"==typeof n.fail?n.done(function(a){i(a)}).fail(function(){i()}):i(n)}),window.setTimeout(function(){e.fire("filesAdded",h)},0)};return e.uploadNextChunk=function(){var a=!1;if(e.getOpt("prioritizeFirstAndLastChunk")&&(f.each(e.files,function(b){return b.chunks.length&&"pending"==b.chunks[0].status()&&0===b.chunks[0].preprocessState?(b.chunks[0].send(),a=!0,!1):b.chunks.length>1&&"pending"==b.chunks[b.chunks.length-1].status()&&0===b.chunks[b.chunks.length-1].preprocessState?(b.chunks[b.chunks.length-1].send(),a=!0,!1):void 0}),a))return!0;
1if(f.each(e.files,function(b){if(!1===b.isPaused()&&f.each(b.chunks,function(b){if("pending"==b.status()&&0===b.preprocessState)return b.send(),a=!0,!1}),a)return!1}),a)return!0;var b=!1;return f.each(e.files,function(a){if(!a.isComplete())return b=!0,!1}),b||e.fire("complete"),!1},e.assignBrowse=function(a,b){void 0===a.length&&(a=[a]),f.each(a,function(a){var c;"INPUT"===a.tagName&&"file"===a.type?c=a:(c=document.createElement("input"),c.setAttribute("type","file"),c.style.display="none",a.addEventListener("click",function(){c.style.opacity=0,c.style.display="block",c.focus(),c.click(),c.style.display="none"},!1),a.appendChild(c));var d=e.getOpt("maxFiles");void 0===d||1!=d?c.setAttribute("multiple","multiple"):c.removeAttribute("multiple"),b?c.setAttribute("webkitdirectory","webkitdirectory"):c.removeAttribute("webkitdirectory"),c.addEventListener("change",function(a){l(a.target.files,a),a.target.value=""},!1)})},e.assignDrop=function(a){void 0===a.length&&(a=[a]),f.each(a,function(a){a.addEventListener("dragover",h,!1),a.addEventListener("dragenter",h,!1),a.addEventListener("drop",g,!1)})},e.unAssignDrop=function(a){void 0===a.length&&(a=[a]),f.each(a,function(a){a.removeEventListener("dragover",h),a.removeEventListener("dragenter",h),a.removeEventListener("drop",g)})},e.isUploading=function(){var a=!1;return f.each(e.files,function(b){if(b.isUploading())return a=!0,!1}),a},e.upload=function(){if(!e.isUploading()){e.fire("uploadStart");for(var a=1;a<=e.getOpt("simultaneousUploads");a++)e.uploadNextChunk()}},e.pause=function(){f.each(e.files,function(a){a.abort()}),e.fire("pause")},e.cancel=function(){for(var a=e.files.length-1;a>=0;a--)e.files[a].cancel();e.fire("cancel")},e.progress=function(){var a=0,b=0;return f.each(e.files,function(c){a+=c.progress()*c.size,b+=c.size}),b>0?a/b:0},e.addFile=function(a,b){l([a],b)},e.removeFile=function(a){for(var b=e.files.length-1;b>=0;b--)e.files[b]===a&&e.files.splice(b,1)},e.getFromUniqueIdentifier=function(a){var b=!1;return f.each(e.files,function(c){c.uniqueIdentifier==a&&(b=c)}),b},e.getSize=function(){var a=0;return f.each(e.files,function(b){a+=b.size}),a},this};"undefined"!=typeof module?module.exports=a:"function"==typeof define&&define.amd?define(function(){return a}):window.Resumable=a}();

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.