HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/geometra-4-host-prod/webviewer/core/LocalPartRetriever.chunk.js
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see legal.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{344:function(ia,da,h){h.r(da);var ca=h(3),aa=h(1),fa=h(117);ia=h(73);var ea=h(145);h=h(297);var z=window;ia=function(h){function n(f,n,w){n=h.call(this,f,n,w)||this;if(f.name&&"xod"!==f.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!z.FileReader||!z.File||!z.Blob)throw Error("File API is not supported in this browser");n.file=f;n.Rv=[];n.cB=0;return n}Object(ca.c)(n,h);n.prototype.hD=function(f,h,n){var e=
this,r=new FileReader;r.onloadend=function(f){if(0<e.Rv.length){var w=e.Rv.shift();w.O0.readAsBinaryString(w.file)}else e.cB--;if(r.error){f=r.error;if(f.code===f.ABORT_ERR){Object(aa.h)("Request for chunk "+h.start+"-"+h.stop+" was aborted");return}return n(f)}if(f=r.content||f.target.result)return n(!1,f);Object(aa.h)("No data was returned from FileReader.")};h&&(f=(f.slice||f.webkitSlice||f.mozSlice||f.v6).call(f,h.start,h.stop));0===e.Rv.length&&50>e.cB?(r.readAsBinaryString(f),e.cB++):e.Rv.push({O0:r,
file:f});return function(){r.abort()}};n.prototype.Fp=function(f){var h=this;h.Qv=!0;var n=fa.a;h.hD(h.file,{start:-n,stop:h.file.size},function(e,r){if(e)return Object(aa.h)("Error loading end header: %s "+e),f(e);if(r.length!==n)throw Error("Zip end header data is wrong size!");h.zd=new ea.a(r);var w=h.zd.rK();h.hD(h.file,w,function(e,n){if(e)return Object(aa.h)("Error loading central directory: %s "+e),f(e);if(n.length!==w.stop-w.start)throw Error("Zip central directory data is wrong size!");h.zd.bN(n);
h.TA=!0;h.Qv=!1;return f(!1)})})};n.prototype.ID=function(f,h){var n=this,e=n.Ng[f];if(n.zd.XI(f)){var r=n.zd.hs(f),x=n.hD(n.file,r,function(e,w){delete n.Ng[f];if(e)return Object(aa.h)('Error loading part "%s": %s, '+f+", "+e),h(e);if(w.length!==r.stop-r.start)throw Error("Part data is wrong size!");h(!1,f,w,n.zd.IL(f))});e.TO=!0;e.cancel=x}else h(Error('File not found: "'+f+'"'),f)};return n}(ia.a);Object(h.a)(ia);Object(h.b)(ia);da["default"]=ia}}]);}).call(this || window)