mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"../../../../../Libraries/Network/XMLHttpRequest","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":16,"column":2},"end":{"line":16,"column":60}}],"key":"Z6ybuHWaA0nSy7DgIt/2RW7erVU=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n 'use strict';\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n var XMLHttpRequest = require(_dependencyMap[0], \"../../../../../Libraries/Network/XMLHttpRequest\").default;\n var originalXHROpen = XMLHttpRequest.prototype.open;\n var originalXHRSend = XMLHttpRequest.prototype.send;\n var originalXHRSetRequestHeader = XMLHttpRequest.prototype.setRequestHeader;\n var openCallback;\n var sendCallback;\n var requestHeaderCallback;\n var headerReceivedCallback;\n var responseCallback;\n var _isInterceptorEnabled = false;\n var XHRInterceptor = {\n setOpenCallback: function setOpenCallback(callback) {\n openCallback = callback;\n },\n setSendCallback: function setSendCallback(callback) {\n sendCallback = callback;\n },\n setHeaderReceivedCallback: function setHeaderReceivedCallback(callback) {\n headerReceivedCallback = callback;\n },\n setResponseCallback: function setResponseCallback(callback) {\n responseCallback = callback;\n },\n setRequestHeaderCallback: function setRequestHeaderCallback(callback) {\n requestHeaderCallback = callback;\n },\n isInterceptorEnabled: function isInterceptorEnabled() {\n return _isInterceptorEnabled;\n },\n enableInterception: function enableInterception() {\n if (_isInterceptorEnabled) {\n return;\n }\n XMLHttpRequest.prototype.open = function (method, url) {\n if (openCallback) {\n openCallback(method, url, this);\n }\n originalXHROpen.apply(this, arguments);\n };\n XMLHttpRequest.prototype.setRequestHeader = function (header, value) {\n if (requestHeaderCallback) {\n requestHeaderCallback(header, value, this);\n }\n originalXHRSetRequestHeader.apply(this, arguments);\n };\n XMLHttpRequest.prototype.send = function (data) {\n var _this = this;\n if (sendCallback) {\n sendCallback(data, this);\n }\n if (this.addEventListener) {\n this.addEventListener('readystatechange', function () {\n if (!_isInterceptorEnabled) {\n return;\n }\n if (_this.readyState === _this.HEADERS_RECEIVED) {\n var contentTypeString = _this.getResponseHeader('Content-Type');\n var contentLengthString = _this.getResponseHeader('Content-Length');\n var _responseContentType, _responseSize;\n if (contentTypeString) {\n _responseContentType = contentTypeString.split(';')[0];\n }\n if (contentLengthString) {\n _responseSize = parseInt(contentLengthString, 10);\n }\n if (headerReceivedCallback) {\n headerReceivedCallback(_responseContentType, _responseSize, _this.getAllResponseHeaders(), _this);\n }\n }\n if (_this.readyState === _this.DONE) {\n if (responseCallback) {\n responseCallback(_this.status, _this.timeout, _this.response, _this.responseURL, _this.responseType, _this);\n }\n }\n }, false);\n }\n originalXHRSend.apply(this, arguments);\n };\n _isInterceptorEnabled = true;\n },\n disableInterception: function disableInterception() {\n if (!_isInterceptorEnabled) {\n return;\n }\n _isInterceptorEnabled = false;\n XMLHttpRequest.prototype.send = originalXHRSend;\n XMLHttpRequest.prototype.open = originalXHROpen;\n XMLHttpRequest.prototype.setRequestHeader = originalXHRSetRequestHeader;\n responseCallback = null;\n openCallback = null;\n sendCallback = null;\n headerReceivedCallback = null;\n requestHeaderCallback = null;\n }\n };\n var _default = XHRInterceptor;\n});","lineCount":109,"map":[[2,2,11,0],[2,14,11,12],[4,2,11,13,"Object"],[4,8,11,13],[4,9,11,13,"defineProperty"],[4,23,11,13],[4,24,11,13,"exports"],[4,31,11,13],[5,4,11,13,"value"],[5,9,11,13],[6,2,11,13],[7,2,217,0,"Object"],[7,8,217,0],[7,9,217,0,"defineProperty"],[7,23,217,0],[7,24,217,0,"exports"],[7,31,217,0],[8,4,217,0,"enumerable"],[8,14,217,0],[9,4,217,0,"get"],[9,7,217,0],[9,18,217,0,"get"],[9,19,217,0],[10,6,217,0],[10,13,217,0,"_default"],[10,21,217,0],[11,4,217,0],[12,2,217,0],[13,2,15,0],[13,6,15,6,"XMLHttpRequest"],[13,20,15,37],[13,23,16,2,"require"],[13,30,16,9],[13,31,16,9,"_dependencyMap"],[13,45,16,9],[13,99,16,59],[13,100,16,60],[13,101,16,61,"default"],[13,108,16,68],[14,2,18,0],[14,6,18,6,"originalXHROpen"],[14,21,18,21],[14,24,18,24,"XMLHttpRequest"],[14,38,18,38],[14,39,18,39,"prototype"],[14,48,18,48],[14,49,18,49,"open"],[14,53,18,53],[15,2,20,0],[15,6,20,6,"originalXHRSend"],[15,21,20,21],[15,24,20,24,"XMLHttpRequest"],[15,38,20,38],[15,39,20,39,"prototype"],[15,48,20,48],[15,49,20,49,"send"],[15,53,20,53],[16,2,22,0],[16,6,22,6,"originalXHRSetRequestHeader"],[16,33,22,33],[16,36,22,36,"XMLHttpRequest"],[16,50,22,50],[16,51,22,51,"prototype"],[16,60,22,60],[16,61,22,61,"setRequestHeader"],[16,77,22,77],[17,2,57,0],[17,6,57,4,"openCallback"],[17,18,57,51],[18,2,58,0],[18,6,58,4,"sendCallback"],[18,18,58,51],[19,2,59,0],[19,6,59,4,"requestHeaderCallback"],[19,27,59,69],[20,2,60,0],[20,6,60,4,"headerReceivedCallback"],[20,28,60,71],[21,2,61,0],[21,6,61,4,"responseCallback"],[21,22,61,59],[22,2,63,0],[22,6,63,4,"isInterceptorEnabled"],[22,27,63,24],[22,30,63,27],[22,35,63,32],[23,2,72,0],[23,6,72,6,"XHRInterceptor"],[23,20,72,20],[23,23,72,23],[24,4,76,2,"setOpenCallback"],[24,19,76,17],[24,30,76,2,"setOpenCallback"],[24,45,76,17,"setOpenCallback"],[24,46,76,18,"callback"],[24,54,76,54],[24,56,76,56],[25,6,77,4,"openCallback"],[25,18,77,16],[25,21,77,19,"callback"],[25,29,77,27],[26,4,78,2],[26,5,78,3],[27,4,83,2,"setSendCallback"],[27,19,83,17],[27,30,83,2,"setSendCallback"],[27,45,83,17,"setSendCallback"],[27,46,83,18,"callback"],[27,54,83,54],[27,56,83,56],[28,6,84,4,"sendCallback"],[28,18,84,16],[28,21,84,19,"callback"],[28,29,84,27],[29,4,85,2],[29,5,85,3],[30,4,90,2,"setHeaderReceivedCallback"],[30,29,90,27],[30,40,90,2,"setHeaderReceivedCallback"],[30,65,90,27,"setHeaderReceivedCallback"],[30,66,90,28,"callback"],[30,74,90,74],[30,76,90,76],[31,6,91,4,"headerReceivedCallback"],[31,28,91,26],[31,31,91,29,"callback"],[31,39,91,37],[32,4,92,2],[32,5,92,3],[33,4,97,2,"setResponseCallback"],[33,23,97,21],[33,34,97,2,"setResponseCallback"],[33,53,97,21,"setResponseCallback"],[33,54,97,22,"callback"],[33,62,97,62],[33,64,97,64],[34,6,98,4,"responseCallback"],[34,22,98,20],[34,25,98,23,"callback"],[34,33,98,31],[35,4,99,2],[35,5,99,3],[36,4,104,2,"setRequestHeaderCallback"],[36,28,104,26],[36,39,104,2,"setRequestHeaderCallback"],[36,63,104,26,"setRequestHeaderCallback"],[36,64,104,27,"callback"],[36,72,104,72],[36,74,104,74],[37,6,105,4,"requestHeaderCallback"],[37,27,105,25],[37,30,105,28,"callback"],[37,38,105,36],[38,4,106,2],[38,5,106,3],[39,4,108,2,"isInterceptorEnabled"],[39,24,108,22],[39,35,108,2,"isInterceptorEnabled"],[39,55,108,22,"isInterceptorEnabled"],[39,56,108,22],[39,58,108,34],[40,6,109,4],[40,13,109,11,"isInterceptorEnabled"],[40,34,109,31],[41,4,110,2],[41,5,110,3],[42,4,112,2,"enableInterception"],[42,22,112,20],[42,33,112,2,"enableInterception"],[42,51,112,20,"enableInterception"],[42,52,112,20],[42,54,112,23],[43,6,113,4],[43,10,113,8,"isInterceptorEnabled"],[43,31,113,28],[43,33,113,30],[44,8,114,6],[45,6,115,4],[46,6,120,4,"XMLHttpRequest"],[46,20,120,18],[46,21,120,19,"prototype"],[46,30,120,28],[46,31,120,29,"open"],[46,35,120,33],[46,38,120,36],[46,48,120,46,"method"],[46,54,120,60],[46,56,120,62,"url"],[46,59,120,73],[46,61,120,75],[47,8,121,6],[47,12,121,10,"openCallback"],[47,24,121,22],[47,26,121,24],[48,10,122,8,"openCallback"],[48,22,122,20],[48,23,122,21,"method"],[48,29,122,27],[48,31,122,29,"url"],[48,34,122,32],[48,36,122,34],[48,40,122,38],[48,41,122,39],[49,8,123,6],[50,8,124,6,"originalXHROpen"],[50,23,124,21],[50,24,124,22,"apply"],[50,29,124,27],[50,30,124,28],[50,34,124,32],[50,36,124,34,"arguments"],[50,45,124,43],[50,46,124,44],[51,6,125,4],[51,7,125,5],[52,6,131,4,"XMLHttpRequest"],[52,20,131,18],[52,21,131,19,"prototype"],[52,30,131,28],[52,31,131,29,"setRequestHeader"],[52,47,131,45],[52,50,131,48],[52,60,132,6,"header"],[52,66,132,20],[52,68,133,6,"value"],[52,73,133,19],[52,75,134,6],[53,8,135,6],[53,12,135,10,"requestHeaderCallback"],[53,33,135,31],[53,35,135,33],[54,10,136,8,"requestHeaderCallback"],[54,31,136,29],[54,32,136,30,"header"],[54,38,136,36],[54,40,136,38,"value"],[54,45,136,43],[54,47,136,45],[54,51,136,49],[54,52,136,50],[55,8,137,6],[56,8,138,6,"originalXHRSetRequestHeader"],[56,35,138,33],[56,36,138,34,"apply"],[56,41,138,39],[56,42,138,40],[56,46,138,44],[56,48,138,46,"arguments"],[56,57,138,55],[56,58,138,56],[57,6,139,4],[57,7,139,5],[58,6,145,4,"XMLHttpRequest"],[58,20,145,18],[58,21,145,19,"prototype"],[58,30,145,28],[58,31,145,29,"send"],[58,35,145,33],[58,38,145,36],[58,48,145,46,"data"],[58,52,145,58],[58,54,145,60],[59,8,145,60],[59,12,145,60,"_this"],[59,17,145,60],[60,8,146,6],[60,12,146,10,"sendCallback"],[60,24,146,22],[60,26,146,24],[61,10,147,8,"sendCallback"],[61,22,147,20],[61,23,147,21,"data"],[61,27,147,25],[61,29,147,27],[61,33,147,31],[61,34,147,32],[62,8,148,6],[63,8,149,6],[63,12,149,10],[63,16,149,14],[63,17,149,15,"addEventListener"],[63,33,149,31],[63,35,149,33],[64,10,150,8],[64,14,150,12],[64,15,150,13,"addEventListener"],[64,31,150,29],[64,32,151,10],[64,50,151,28],[64,52,152,10],[64,64,152,16],[65,12,153,12],[65,16,153,16],[65,17,153,17,"isInterceptorEnabled"],[65,38,153,37],[65,40,153,39],[66,14,154,14],[67,12,155,12],[68,12,156,12],[68,16,156,16,"_this"],[68,21,156,20],[68,22,156,21,"readyState"],[68,32,156,31],[68,37,156,36,"_this"],[68,42,156,40],[68,43,156,41,"HEADERS_RECEIVED"],[68,59,156,57],[68,61,156,59],[69,14,157,14],[69,18,157,20,"contentTypeString"],[69,35,157,37],[69,38,157,40,"_this"],[69,43,157,44],[69,44,157,45,"getResponseHeader"],[69,61,157,62],[69,62,157,63],[69,76,157,77],[69,77,157,78],[70,14,158,14],[70,18,158,20,"contentLengthString"],[70,37,158,39],[70,40,159,16,"_this"],[70,45,159,20],[70,46,159,21,"getResponseHeader"],[70,63,159,38],[70,64,159,39],[70,80,159,55],[70,81,159,56],[71,14,160,14],[71,18,160,18,"responseContentType"],[71,38,160,37],[71,40,160,39,"responseSize"],[71,53,160,51],[72,14,161,14],[72,18,161,18,"contentTypeString"],[72,35,161,35],[72,37,161,37],[73,16,162,16,"responseContentType"],[73,36,162,35],[73,39,162,38,"contentTypeString"],[73,56,162,55],[73,57,162,56,"split"],[73,62,162,61],[73,63,162,62],[73,66,162,65],[73,67,162,66],[73,68,162,67],[73,69,162,68],[73,70,162,69],[74,14,163,14],[75,14,164,14],[75,18,164,18,"contentLengthString"],[75,37,164,37],[75,39,164,39],[76,16,165,16,"responseSize"],[76,29,165,28],[76,32,165,31,"parseInt"],[76,40,165,39],[76,41,165,40,"contentLengthString"],[76,60,165,59],[76,62,165,61],[76,64,165,63],[76,65,165,64],[77,14,166,14],[78,14,167,14],[78,18,167,18,"headerReceivedCallback"],[78,40,167,40],[78,42,167,42],[79,16,168,16,"headerReceivedCallback"],[79,38,168,38],[79,39,169,18,"responseContentType"],[79,59,169,37],[79,61,170,18,"responseSize"],[79,74,170,30],[79,76,171,18,"_this"],[79,81,171,22],[79,82,171,23,"getAllResponseHeaders"],[79,103,171,44],[79,104,171,45],[79,105,171,46],[79,107,172,18,"_this"],[79,112,173,16],[79,113,173,17],[80,14,174,14],[81,12,175,12],[82,12,176,12],[82,16,176,16,"_this"],[82,21,176,20],[82,22,176,21,"readyState"],[82,32,176,31],[82,37,176,36,"_this"],[82,42,176,40],[82,43,176,41,"DONE"],[82,47,176,45],[82,49,176,47],[83,14,177,14],[83,18,177,18,"responseCallback"],[83,34,177,34],[83,36,177,36],[84,16,178,16,"responseCallback"],[84,32,178,32],[84,33,179,18,"_this"],[84,38,179,22],[84,39,179,23,"status"],[84,45,179,29],[84,47,180,18,"_this"],[84,52,180,22],[84,53,180,23,"timeout"],[84,60,180,30],[84,62,181,18,"_this"],[84,67,181,22],[84,68,181,23,"response"],[84,76,181,31],[84,78,182,18,"_this"],[84,83,182,22],[84,84,182,23,"responseURL"],[84,95,182,34],[84,97,183,18,"_this"],[84,102,183,22],[84,103,183,23,"responseType"],[84,115,183,35],[84,117,184,18,"_this"],[84,122,185,16],[84,123,185,17],[85,14,186,14],[86,12,187,12],[87,10,188,10],[87,11,188,11],[87,13,189,10],[87,18,190,8],[87,19,190,9],[88,8,191,6],[89,8,192,6,"originalXHRSend"],[89,23,192,21],[89,24,192,22,"apply"],[89,29,192,27],[89,30,192,28],[89,34,192,32],[89,36,192,34,"arguments"],[89,45,192,43],[89,46,192,44],[90,6,193,4],[90,7,193,5],[91,6,194,4,"isInterceptorEnabled"],[91,27,194,24],[91,30,194,27],[91,34,194,31],[92,4,195,2],[92,5,195,3],[93,4,198,2,"disableInterception"],[93,23,198,21],[93,34,198,2,"disableInterception"],[93,53,198,21,"disableInterception"],[93,54,198,21],[93,56,198,24],[94,6,199,4],[94,10,199,8],[94,11,199,9,"isInterceptorEnabled"],[94,32,199,29],[94,34,199,31],[95,8,200,6],[96,6,201,4],[97,6,202,4,"isInterceptorEnabled"],[97,27,202,24],[97,30,202,27],[97,35,202,32],[98,6,204,4,"XMLHttpRequest"],[98,20,204,18],[98,21,204,19,"prototype"],[98,30,204,28],[98,31,204,29,"send"],[98,35,204,33],[98,38,204,36,"originalXHRSend"],[98,53,204,51],[99,6,206,4,"XMLHttpRequest"],[99,20,206,18],[99,21,206,19,"prototype"],[99,30,206,28],[99,31,206,29,"open"],[99,35,206,33],[99,38,206,36,"originalXHROpen"],[99,53,206,51],[100,6,208,4,"XMLHttpRequest"],[100,20,208,18],[100,21,208,19,"prototype"],[100,30,208,28],[100,31,208,29,"setRequestHeader"],[100,47,208,45],[100,50,208,48,"originalXHRSetRequestHeader"],[100,77,208,75],[101,6,209,4,"responseCallback"],[101,22,209,20],[101,25,209,23],[101,29,209,27],[102,6,210,4,"openCallback"],[102,18,210,16],[102,21,210,19],[102,25,210,23],[103,6,211,4,"sendCallback"],[103,18,211,16],[103,21,211,19],[103,25,211,23],[104,6,212,4,"headerReceivedCallback"],[104,28,212,26],[104,31,212,29],[104,35,212,33],[105,6,213,4,"requestHeaderCallback"],[105,27,213,25],[105,30,213,28],[105,34,213,32],[106,4,214,2],[107,2,215,0],[107,3,215,1],[108,2,217,0],[108,6,217,0,"_default"],[108,14,217,0],[108,17,217,15,"XHRInterceptor"],[108,31,217,29],[109,0,217,30],[109,3]],"functionMap":{"names":["<global>","setOpenCallback","setSendCallback","setHeaderReceivedCallback","setResponseCallback","setRequestHeaderCallback","isInterceptorEnabled","enableInterception","XMLHttpRequest.prototype.open","XMLHttpRequest.prototype.setRequestHeader","XMLHttpRequest.prototype.send","addEventListener$argument_1","disableInterception"],"mappings":"AAA;EC2E;GDE;EEK;GFE;EGK;GHE;EIK;GJE;EKK;GLE;EME;GNE;EOE;oCCQ;KDK;gDEM;KFQ;oCGM;UCO;WDoC;KHK;GPE;EYG;GZgB"},"hasCjsExports":false},"type":"js/module"}]} |