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