Blame view

__public/js/dist/vendors.1090.31f9ac0514e535ec0ba7.js 3.08 KB
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  (window.webpackJsonp=window.webpackJsonp||[]).push([["1090"],{"9RjJ":function(t,e){var r,n;r=jQuery,n=r({}),r.subscribe=function(t,e){function i(){return e.apply(this,Array.prototype.slice.call(arguments,1))}i.guid=e.guid=e.guid||(r.guid?r.guid++:r.event.guid++),n.bind(t,i)},r.unsubscribe=function(){n.unbind.apply(n,arguments)},r.publish=function(){n.trigger.apply(n,arguments)}},B1Un:function(t,e){
  /**
   * Timeago is a jQuery plugin that makes it easy to support automatically
   * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
   *
   * @name timeago
   * @version 1.0.2
   * @requires jQuery v1.2.3+
   * @author Ryan McGeary
   * @license MIT License - http://www.opensource.org/licenses/mit-license.php
   *
   * For usage and examples, visit:
   * http://timeago.yarp.com/
   *
   * Copyright (c) 2008-2013, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
   */var r;r=function(t){t.timeago=function(e){return e instanceof Date?n(e):n("string"==typeof e?t.timeago.parse(e):"number"==typeof e?new Date(e):t.timeago.datetime(e))};var e=t.timeago;function r(){var r=function(r){if(!(r=t(r)).data("timeago")){r.data("timeago",{datetime:e.datetime(r)});var n=t.trim(r.text());!(n.length>0)||e.isTime(r)&&r.attr("title")||r.attr("title",n)}return r.data("timeago")}(this);return isNaN(r.datetime)||t(this).text(n(r.datetime)),this}function n(t){return e.inWords(function(t){return(new Date).getTime()-t.getTime()}(t))}t.extend(t.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(e){var r=this.settings.strings,n=r.prefixAgo,i=r.suffixAgo;this.settings.allowFuture&&e<0&&(n=r.prefixFromNow,i=r.suffixFromNow);var a=Math.abs(e)/1e3,o=a/60,u=o/60,s=u/24,d=s/365;function m(n,i){var a=t.isFunction(n)?n(i,e):n,o=r.numbers&&r.numbers[i]||i;return a.replace(/%d/i,o)}var f=a<45&&m(r.seconds,Math.round(a))||a<90&&m(r.minute,1)||o<45&&m(r.minutes,Math.round(o))||o<90&&m(r.hour,1)||u<24&&m(r.hours,Math.round(u))||u<42&&m(r.day,1)||s<30&&m(r.days,Math.round(s))||s<45&&m(r.month,1)||s<365&&m(r.months,Math.round(s/30))||d<1.5&&m(r.year,1)||m(r.years,Math.round(d)),c=r.wordSeparator||"";return void 0===r.wordSeparator&&(c=" "),t.trim([n,f,i].join(c))},parse:function(e){var r=t.trim(e);return r=(r=(r=(r=r.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),new Date(r)},datetime:function(r){var n=e.isTime(r)?t(r).attr("datetime"):t(r).attr("title");return e.parse(n)},isTime:function(e){return"time"===t(e).get(0).tagName.toLowerCase()}}),t.fn.timeago=function(){var t=this;t.each(r);var n=e.settings;return n.refreshMillis>0&&setInterval(function(){t.each(r)},n.refreshMillis),t},document.createElement("abbr"),document.createElement("time")},"function"==typeof define&&define.amd?define(["jquery"],r):r(jQuery)}}]);