"use strict";function _typeof(r){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function _defineProperty(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}var formatTime=function(r){var t=r.getFullYear(),e=r.getMonth()+1,o=r.getDate(),n=r.getHours(),i=r.getMinutes(),a=r.getSeconds();return[t,e,o].map(formatNumber).join("/")+" "+[n,i,a].map(formatNumber).join(":")},formatNumber=function(r){return(r=r.toString())[1]?r:"0"+r},goToLink=function(r){wx.navigateTo({url:r})},getPartUrlByParam=function(r,t){return/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/.exec(r)[["url","scheme","slash","host","port","path","query","hash"].indexOf(t)]},search2Json=function(r){if(null==r)return{};var e={};return r.split("&").forEach(function(r){var t=r.split("=");e=_defineProperty({},t[0],t[1])}),e},isArray=function(r){return"Array"==Object.prototype.toString.call(r).slice(8,-1)},deepClone=function r(t){if("object"!=_typeof(t))return t;var e={};for(var o in t)e[o]=r(t[o]);return e},obj2str=function r(t){if(null===t)return"null";var e="";if("object"!=_typeof(t))return e+String(t);for(var o in e+="{\n ",t)e+=o+":"+r(t[o])+"\n";for(var n=Object.getOwnPropertySymbols(t),i=0;i<n.length;i++)e+=String(n[i])+":"+r(t[n[i]])+"\n";return e+="}"};module.exports={formatTime:formatTime,goToLink:goToLink,search2Json:search2Json,getPartUrlByParam:getPartUrlByParam,isArray:isArray,deepClone:deepClone,obj2str:obj2str};