function enableNetworkPanel(){let e=wx._MINI_WX_PROXY_||wx;e.request;if(!global.__minium__.request_hooked){Object.defineProperty(global.__minium__,"request_hooked",{value:!0,writable:!1});const t=Object.getOwnPropertyDescriptor(e,"request");if(t&&!1===t.configurable)return void console.warn("[minitest] Cannot redefine property: request");let n=function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0},i=new Map,r=new Map,l=new Map;global.__minium__.setCall("request","networkPannel",{before:function(e,t){if(!global||!global.__minium__.get_mini_network_id)return;if("https://weapp.tencent.com/jscov_driver/CollectCovTimer"==e.url)return;let r,o=global.__minium__.get_mini_network_id(),_=Object.assign({},e);delete _.success,delete _.fail,delete _.complete;let s=Date.now();try{let e=JSON.stringify(_);r=n(e),i.has(r)&&i.get(r)>s&&(e=""),i.set(r,s+21e3),mini_send_request(o,e,s,r)}catch(e){mini_send_request(o,JSON.stringify({url:_.url,err:e.toString()}),s,0)}l.set(t,{nid:o,obj:e})},callback:function(e,t){if(!l.has(t))return;const{nid:i,obj:o}=l.get(t);l.delete(t);let _=Object.assign({},e);delete _.profile;let s=JSON.stringify(_),a=n(s),u=Date.now();r.has(a)&&r.get(a)>u&&(s=""),r.set(a,u+21e3),mini_request_callback(i,s,u,a,o.__miniumMocked)}},!0)}}
