(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[58],{1085:function(e,n,r){"use strict";r.d(n,"a",(function(){return p}));var t=["second","minute","hour","day","week","month","year"],a=["秒","分钟","小时","天","周","个月","年"],o={},u=function(e,n){o[e]=n},i=function(e){return o[e]||o.en_US},c=[60,60,24,7,365/7/12,12];function f(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function s(e,n){for(var r=e<0?1:0,t=e=Math.abs(e),a=0;e>=c[a]&&a<c.length;a++)e/=c[a];return(e=Math.floor(e))>(0===(a*=2)?9:1)&&(a+=1),n(e,a,t)[r].replace("%s",e.toString())}function l(e,n){return(+(n?f(n):new Date)-+f(e))/1e3}var p=function(e,n,r){return s(l(e,r&&r.relativeDate),i(n))};u("en_US",(function(e,n){if(0===n)return["just now","right now"];var r=t[Math.floor(n/2)];return e>1&&(r+="s"),[e+" "+r+" ago","in "+e+" "+r]})),u("zh_CN",(function(e,n){if(0===n)return["刚刚","片刻后"];var r=a[~~(n/2)];return[e+" "+r+"前",e+" "+r+"后"]}))}}]);
//# sourceMappingURL=58.d0b97d06.chunk.js.map