sugar-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/sugar/rails/version.rb +1 -1
- data/vendor/assets/javascripts/sugar.js +78 -77
- metadata +10 -10
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
## Usage
|
7
7
|
|
8
|
-
This gem vendors Sugar 1.
|
8
|
+
This gem vendors Sugar 1.1.1 for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use.
|
9
9
|
|
10
10
|
To enable, add the following line to the file `app/assets/javascripts/application.js` (or other [sprockets](https://github.com/sstephenson/sprockets) manifest):
|
11
11
|
|
data/lib/sugar/rails/version.rb
CHANGED
@@ -1,68 +1,69 @@
|
|
1
1
|
/*
|
2
|
-
* Sugar Library v1.1
|
2
|
+
* Sugar Library v1.1.1
|
3
3
|
*
|
4
4
|
* Freely distributable and licensed under the MIT-style license.
|
5
5
|
* Copyright (c) 2011 Andrew Plummer
|
6
6
|
* http://sugarjs.com/
|
7
7
|
*
|
8
8
|
* ---------------------------- */
|
9
|
-
var
|
10
|
-
(function(){function
|
11
|
-
a.prototype:a,e
|
12
|
-
b===l||q(b))return z;else if(d=="RegExp")return a.ignoreCase==b.ignoreCase&&a.multiline==b.multiline&&a.source==b.source&&a.global==b.global;else if(d=="Array"||d=="Object"){for(d=c.length;d--;)if(c[d]==a)return
|
13
|
-
r(b).test(a):
|
14
|
-
"[object "+b+"]"}function S(a){return typeof a=="object"}function q(a){return a===v}function
|
15
|
-
f)g=a.length.toString();
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
a+"Ago",e);
|
20
|
-
1);return e.repeat(c)+a+e.repeat(d)}function
|
21
|
-
"time"){e=e.concat(
|
22
|
-
function(k,n,o){return o.split("|").map(function(u){return n+u}).join("|")})}).join("|");return p(f.split("|"),h)}function d(f,h,g){var k=[];if(b[f]){p(b[f],function(n,o){c(n,function(u,
|
9
|
+
var i=true,l=null,z=false;function J(H){return function(){return H}}
|
10
|
+
(function(){function H(){return"\t\n\u000b\u000c\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff"}function s(a,b,c,d){var e=b?a.prototype:a;Aa(a,b,d);D(d,function(f,h){if(typeof c==="function")t(e,f,Ba(e[f],h,c));else if(c===i||!e[f])t(e,f,h);a.j[f]={u:b,method:h}})}function Aa(a){if(!a.j){a.j={};t(a,"sugar",function(){var b=arguments,c=b.length===0;a===j&&c&&ha(Object.keys(Object.j).remove("extended","fromQueryString"),Object);
|
11
|
+
D(a.j,function(d,e){if(c||I(b,d))t(e.u?a.prototype:a,d,e.method)})})}}function Ba(a,b,c){return function(){return a&&(c===i||c.apply(this,arguments))?a.apply(this,arguments):b.apply(this,arguments)}}function t(a,b,c){if(ia)j.defineProperty(a,b,{value:c,configurable:i,enumerable:z,writable:i});else a[b]=c}function D(a,b){var c=0,d;for(d in a)if(a.hasOwnProperty(d)){b.call(a,d,a[d],c);c++}}function ja(a,b,c){var d=j.prototype.toString.call(a).match(/\[object (\w+)\]/)[1];if(a===b)return a!==0||1/a===
|
12
|
+
1/b;else if(a===l||q(a)||b===l||q(b))return z;else if(d=="RegExp")return a.ignoreCase==b.ignoreCase&&a.multiline==b.multiline&&a.source==b.source&&a.global==b.global;else if(d=="Array"||d=="Object"){for(d=c.length;d--;)if(c[d]==a)return i;c.push(a);for(var e in a)if(a.hasOwnProperty(e))if(!b.hasOwnProperty(e)||!ja(a[e],b[e],c))return z;c.pop();return j.keys(a).length===j.keys(b).length&&a.constructor===b.constructor&&a.length===b.length}else return R(b,d)&&a.valueOf()===b.valueOf()}function K(a,b,
|
13
|
+
c,d){return a===b?i:j.isRegExp(b)?r(b).test(a):j.isFunction(b)?b.apply(c,[a].concat(d)):j.equal(b,a)}function E(a,b,c,d){return q(b)?a:j.isFunction(b)?b.apply(c,d||[]):j.isFunction(a[b])?a[b].call(a):a[b]}function A(a,b){return Array.prototype.slice.call(a,b)}function C(a,b,c,d){a=A(a);if(c!==z)a=M(a);p(a,b,d)}function ka(a,b,c){var d=[],e=a.length,f=b[b.length-1]!==z,h;C(b,function(g){if(j.isBoolean(g))return z;if(f){g%=e;if(g<0)g=e+g}h=c?a.charAt(g)||"":a[g];d.push(h)});return d.length<2?d[0]:d}
|
14
|
+
function R(a,b){return j.prototype.toString.call(a)==="[object "+b+"]"}function S(a){return typeof a=="object"}function q(a){return a===v}function $(a,b,c,d){S(b)&&D(b,function(e,f){var h=a[e],g=h!==v,k=j.isArray(f);if(c===i&&(k||j.isObject(f))){h||(h=k?[]:{});$(h,f,c)}else if(g&&j.isFunction(d))h=d.call(b,e,a[e],b[e]);else if(!g||g&&d!==z)h=b[e];if(h!==v)a[e]=h});return a}function la(a,b,c,d){var e=/^(.+?)(\[.*\])$/,f,h,g;if(d!==z&&(h=b.match(e))){g=h[1];b=h[2].replace(/^\[|\]$/g,"").split("][");
|
15
|
+
p(b,function(k){f=!k||k.match(/^\d+$/);if(!g&&j.isArray(a))g=a.length;a[g]||(a[g]=f?[]:{});a=a[g];g=k});if(!g&&f)g=a.length.toString();la(a,g,c)}else a[b]=c.match(/^\d+$/)?parseInt(c):c==="true"?i:c==="false"?z:c}function aa(a){var b=this;D(a,function(c,d){b[c]=d})}function ha(a,b){var c={};p(a,function(d){c[d+(d==="equal"?"s":"")]=function(){return Object[d].apply(l,[this].concat(A(arguments)))}});s(b,i,z,c)}function p(a,b,c,d,e){var f,h;T(b);h=isNaN(c)?0:parseInt(c>>0);for(f=d===i?a.length+h:a.length;h<
|
16
|
+
f;){c=h%a.length;if(!(c in a)&&e===i)return Ca(a,b,h,d);else if(b.call(a,a[c],c,a)===z)break;h++}}function I(a,b,c,d,e){var f,h;p(a,function(g,k,n){if(K(g,b,n,[k,n])){f=g;h=k;return z}},c,d);return e?h:f}function L(a,b){function c(e){return E(e,b,a,[e])===d}var d;return a.reduce(function(e,f,h){d=E(f,b,a,[f,h,a]);if(e.none(b?c:f))e.push(f);return e},[])}function M(a,b,c){b=b||Infinity;c=c||0;var d=[];p(a,function(e){if(w.isArray(e)&&c<b)d=d.concat(M(e,b,c+1));else d.push(e)});return d}function T(a){if(!a||
|
17
|
+
!a.call)throw new TypeError("Callback is not callable");}function U(a){if(a.length===0)throw new TypeError("First argument must be defined");}function Ca(a,b,c){var d=[],e;for(e in a)e in a&&e>>>0==e&&e!=4294967295&&e>=c&&d.push(e.toNumber());d.sort().each(function(f){return b.call(a,a[f],f,a)});return a}function V(a,b,c,d){var e=c==="max",f=c==="min",h=e?-Infinity:Infinity,g=[];D(a,function(k){var n=a[k];k=E(n,b,a,d?[n,k.toNumber(),a]:[]);if(!q(k))if(k===h)g.push(n);else if(e&&k>h||f&&k<h){g=[n];
|
18
|
+
h=k}});return g}function x(a,b,c){c=Math[c||"round"];var d=Math.pow(10,(b||0).abs());if(b<0)d=1/d;return c(a*d)/d}function ma(a,b,c,d){var e=[];a=parseInt(a);for(var f=d>0;f&&a<=b||!f&&a>=b;){e.push(a);c&&c.call(this,a);a+=d}return e}function Da(a,b){function c(){return x(this*b)}function d(){return W(arguments)[f](this)}function e(){return W(arguments)[f](-this)}var f="add"+a.capitalize()+"s";t(y.prototype,a,c);t(y.prototype,a+"s",c);t(y.prototype,a+"Before",e);t(y.prototype,a+"sBefore",e);t(y.prototype,
|
19
|
+
a+"Ago",e);t(y.prototype,a+"sAgo",e);t(y.prototype,a+"After",d);t(y.prototype,a+"sAfter",d);t(y.prototype,a+"FromNow",d);t(y.prototype,a+"sFromNow",d)}function na(a,b,c,d){var e=A(b).join("");e=e.replace(/all/,"").replace(/(\w)lphabet|umbers?|atakana|paces?|unctuation/g,"$1");return a.replace(c,function(f){return d[f]&&(!e||e.has(d[f].type))?d[f].to:f})}function F(a,b,c){oa[b]={type:a,to:c};pa[c]={type:a,to:b}}function N(a,b,c,d){var e=String(b);if(e!=b)e="";j.isNumber(c)||(c=1);j.isNumber(d)||(d=
|
20
|
+
1);return e.repeat(c)+a+e.repeat(d)}function qa(a){var b=m.addFormat,c=a.code;if(!a.r){b("("+a.months.compact().join("|")+")",["month"],c);b("("+a.weekdays.compact().join("|")+")",["weekday"],c);b("("+a.modifiers.filter(function(d){return d.name==="day"}).map("text").join("|")+")",["day"],c);p(a.formats,function(d){var e=[];d=d.replace(/\s+/g,"[-,. ]*");d=d.replace(/\{(.+?)\}/g,function(f,h){var g=h.match(/\?$/),k=h.match(/(\d)(?:-(\d))?/),n=h.match(/^\d+$/),o=h.replace(/[^a-z]+$/,""),u,G;if(o===
|
21
|
+
"time"){e=e.concat(ba);return g?ra:ca}if(n)u=a.optionals[n[0]-1];else if(a[o])u=a[o];else if(a[o+"s"]){u=a[o+"s"];if(k){G=[];p(u,function(Ea,Fa){var sa=Fa%(a.units?8:u.length);if(sa>=k[1]&&sa<=(k[2]||k[1]))G.push(Ea)});u=G}u=u.compact().join("|")}if(n)return"(?:"+u+")?";else{e.push(o);return"("+u+")"+(g?"?":"")}});b(d,e,c)});a.r=i}}function O(a,b,c){if(b&&(!j.isString(a)||!a))a=Date.currentLocale;a&&!da[a]&&Ga(a,c);return da[a]}function Ga(a,b){function c(f,h){f=f.split("+").map(function(g){return g.replace(/(.+):(.+)$/,
|
22
|
+
function(k,n,o){return o.split("|").map(function(u){return n+u}).join("|")})}).join("|");return p(f.split("|"),h)}function d(f,h,g){var k=[];if(b[f]){p(b[f],function(n,o){c(n,function(u,G){k[G*g+o]=u.toLowerCase()})});if(h)k=k.concat(b[f].map(function(n){return n.slice(0,3).toLowerCase()}));return b[f]=k}}function e(f,h){var g="[0-9\uff10-\uff19]"+(f?"{"+f+","+h+"}":"+");if(b.digits)g+="|["+b.digits+"]+";return g}b=b||Ha(a);if(!b)throw Error("Invalid locale.");d("months",i,12);d("weekdays",i,7);d("units",
|
23
23
|
z,8);d("numbers",z,10);b.code=a;b.date=e(1,2);b.year=e(4,4);b.num=function(){var f=[e()].concat(b.articles);b.digits||(f=f.concat(b.numbers));return f.compact().join("|")}();(function(){var f=[];b.i={};p(b.modifiers,function(h){c(h.text,function(g){b.i[g]=h;f.push({name:h.name,text:g,value:h.value})})});f.groupBy("name",function(h,g){g=g.map("text");if(h==="day")g=g.concat(b.weekdays);b[h]=g.join("|")});b.modifiers=f})();if(b.monthSuffix){b.month=e(1,2);b.months=(1).upto(12).map(function(f){return f+
|
24
|
-
b.monthSuffix})}
|
25
|
-
0)c.digits+=c.numbers.join("");else c.numbers=X.split("");c.monthSuffix=d[1]}c.capitalizeUnit=a=="de";c.hasPlural=b(2);c.pastRelativeFormat=c.formats[0];c.futureRelativeFormat=c.formats[b(3)?1:0];return c}function
|
26
|
-
return a.replace(
|
27
|
-
"").replace(/^now$/,"");p(
|
28
|
-
c.resetTime();d=
|
29
|
-
|
30
|
-
"day";c[(o.value<0?"endOf":"beginningOf")+k.capitalize()]();o.value===-2&&c.resetTime()}}return{h:c,set:g}}function
|
31
|
-
n.match(/^(.)\1+$/);if(g.m){if(o===3)k=k.to(3);if(u||n.match(h))k=k.capitalize()}else if(u&&!g.text)k=(
|
32
|
-
d.set.f=="week"&&(new Date(g+1)).getHours()!=0)g-=m.DSTOffset;return c>=h-b&&c<=g+f}function Z(a,b,c,d,e){if(
|
33
|
-
b.month!==v&&
|
34
|
-
b<d&&a.setDate(b)}}function W(a){var b;b=
|
35
|
-
isObject:function(a){return a===l||q(a)?z:R(a,"Object")&&a.constructor===
|
36
|
-
a.toString():"";a.replace(/^.*?\?/,"").unescapeURL().split("&").each(function(d){d=d.split("=");d.length===2&&
|
37
|
-
|
38
|
-
[];for(U(arguments);d<c;){d in this&&K(this[d],a,b,[d,this])&&e.push(this[d]);d++}return e}});
|
39
|
-
this[d]===a)return d;d--}return-1},forEach:function(a,b){var c=this.length,d=0;for(T(a);d<c;){d in this&&a.call(b,this[d],d,this);d++}},reduce:function(a,b){var c=this.length,d=0,e=arguments.length>1&&b;T(a);if(c==0&&!e)throw new TypeError("Reduce called on empty array with no initial value");else if(e)e=e;else{e=this[d];d++}for(;d<c;){if(d in
|
40
|
-
else if(e)c=e;else{c=this[d];d--}for(;d>=0;){if(d in this)c=a.call(v,c,this[d],d,this);d--}return c},each:function(a,b,c){p(this,a,b,c,
|
41
|
-
c,b,[a,b]))b.splice(a,1);else a++});return b},removeAt:function(a,b){if(q(a))return this;if(q(b))b=a;for(var c=0;c<=b-a;c++)this.splice(a,1);return this},add:function(a,b){if(!
|
42
|
-
this;
|
43
|
-
1];return this.slice(this.length-a<0?0:this.length-a)},from:function(a){return this.slice(a)},to:function(a){if(q(a))a=this.length;return this.slice(0,a)},min:function(a){return L(V(this,a,"min"))},max:function(a){return L(V(this,a,"max"))},least:function(){var a=M(V(this.groupBy.apply(this,
|
44
|
-
this;return a.length>0?a.reduce(function(b,c){return b+c}):0},average:function(a){a=a?this.map(a):this;return a.length>0?a.sum()/a.length:0},groupBy:function(a,b){var c=
|
45
|
-
0||a===0)return this;if(q(a))a=1;if(q(b))b=l;var c=[],d=l;this.each(function(e,f){if(f%a===0){d&&c.push(d);d=[]}if(q(e))e=b;d.push(e)});if(!this.length.isMultipleOf(a)){(a-this.length%a).times(function(){d.push(b)});this.length+=a-this.length%a}d.length>0&&c.push(d);
|
46
|
-
0},flatten:function(){return M(this)},sortBy:function(a,b){var c=this.clone();c.sort(function(d,e){var f=
|
47
|
-
|
48
|
-
|
49
|
-
if(b||this<0)c=(this<0?"-":"+")+c;return c},format:function(a,b,c){var d,e,f=/(\d+)(\d{3})/;if(B(b).match(/\d/))throw new TypeError("Thousands separator cannot contain numbers.");
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
b
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
24
|
+
b.monthSuffix})}da[a]=new ta(b)}function Ha(a){function b(e){return!!(d[0]&Math.pow(2,e-1))}if(a.slice(0,3)=="en-")a="en";if(!ua[a])return l;var c={modifiers:[]},d=ua[a].split(";");p(["months","weekdays","units","numbers","articles","optionals","formats"],function(e,f){c[e]=d[f+2]?d[f+2].split(","):[]});c.outputFormat=d[9];p(["day","sign","shift","edge"],function(e,f){d[f+10]&&p(d[f+10].split(","),function(h,g){h&&c.modifiers.push({name:e,text:h,value:g-2})})});if(b(1)){c.digits=X+va;if(c.numbers.length>
|
25
|
+
0)c.digits+=c.numbers.join("");else c.numbers=X.split("");c.monthSuffix=d[1]}c.capitalizeUnit=a=="de";c.hasPlural=b(2);c.pastRelativeFormat=c.formats[0];c.futureRelativeFormat=c.formats[b(3)?1:0];return c}function Ia(a){a||(a=Date.currentLocale);return a!="en"&&a!="en-US"}function ta(a){j.merge(this,a)}function P(a){var b;if(S(a[0]))return a;else if(a.length==1&&j.isNumber(a[0]))return[a[0]];b={};p(wa,function(c,d){b[c.a]=a[d]});return[b]}function Ja(a,b){if(b!="date"&&b!="month"&&b!="year")return a;
|
26
|
+
return a.replace(Ka,function(c){return X.indexOf(c)+1||""})}function La(a,b){var c={},d,e;p(b,function(f,h){d=a[h+1];if(!(q(d)||d==="")){d=Ja(d.hankaku("n"),f);if(f==="year")c.A=d;if(f==="millisecond")d*=Math.pow(10,3-d.length);e=parseFloat(d);c[f]=!isNaN(e)?e:d.toLowerCase()}});return c}function xa(a,b){var c=new m,d=z,e,f,h,g,k,n,o;if(j.isDate(a))c=a;else if(j.isNumber(a))c=new m(a);else if(j.isObject(a)){c=(new m).set(a,i);g=a}else if(j.isString(a)){qa(O(b,i));f=Ia(b);a=a.trim().replace(/\.+$/,
|
27
|
+
"").replace(/^now$/,"");p(ya,function(u){var G=a.match(u.w);if(G){h=u;g=La(G,h.to);e=O(h.v,i);if(h.l&&!j.isString(g.month)&&(j.isString(g.date)||f)){o=g.month;g.month=g.date;g.date=o}if(g.year&&g.A.length===2)g.year=x((new m).getFullYear()/100)*100-x(g.year/100)*100+g.year;if(g.month){g.month=e.getMonth(g.month);if(g.shift&&!g.unit)g.unit="year"}if(g.weekday&&g.date)delete g.weekday;else if(g.weekday){g.weekday=e.p(g.weekday);if(g.shift&&!g.unit)g.unit="week"}if(g.day&&(o=e.i[g.day])){g.day=o.value;
|
28
|
+
c.resetTime();d=i}else if(g.day&&(o=e.p(g.day))>-1){delete g.day;g.weekday=o}if(g.date&&!j.isNumber(g.date))g.date=e.t(g.date);if(g.meridian)if(g.meridian==="pm"&&g.hour<12)g.hour+=12;if(g.offset_hours||g.offset_minutes){g.utc=i;g.offset_minutes=g.offset_minutes||0;g.offset_minutes+=g.offset_hours*60;if(g.offset_sign==="-")g.offset_minutes*=-1;g.minute-=g.offset_minutes}if(g.unit){d=i;n=e.o(g.num);k=e.s(g.unit);if(g.shift||g.edge){n*=(o=e.i[g.shift])?o.value:0;if(k==="month"&&g.date!==v){c.set({day:g.date},
|
29
|
+
i);delete g.date}if(k==="year"&&g.month!==v){c.set({month:g.month,day:g.date},i);delete g.month;delete g.date}}if(g.sign&&(o=e.i[g.sign]))n*=o.value;if(g.weekday!==v){c.set({weekday:g.weekday},i);delete g.weekday}g[k]=(g[k]||0)+n}if(g.year_sign==="-")g.year*=-1;return z}});if(h)if(d)c.advance(g);else g.utc?c.setUTC(g,i):c.set(g,i);else c=a?new m(a):new m;if(g&&g.edge){o=e.i[g.edge];p(Y.slice(4),function(u){if(g[u.a]!==v){k=u.a;return z}});if(k==="year")g.f="month";else if(k==="month"||k==="week")g.f=
|
30
|
+
"day";c[(o.value<0?"endOf":"beginningOf")+k.capitalize()]();o.value===-2&&c.resetTime()}}return{h:c,set:g}}function ea(a,b,c,d){var e,f=O(d,i),h=r(/^[A-Z]/);if(a.isValid())if(Date[b])b=Date[b];else{if(j.isFunction(b)){e=za(a);b=b.apply(a,e.concat(f))}}else return"Invalid Date";if(!b&&!c)b=f.outputFormat;else if(!b&&c){e=e||za(a);if(e[1]===0){e[1]=1;e[0]=1}return f.z(e[0],e[1],e[2])}p(Ma,function(g){b=b.replace(r("\\{("+g.c+")(\\d)?\\}",g.m?"i":""),function(k,n,o){k=g.b(a,f,o||1,n);o=n.length;var u=
|
31
|
+
n.match(/^(.)\1+$/);if(g.m){if(o===3)k=k.to(3);if(u||n.match(h))k=k.capitalize()}else if(u&&!g.text)k=(j.isNumber(k)?k.pad(o):k.toString()).last(o);return k})});return b}function Na(a,b,c){var d=xa(b),e=0,f=b=0,h;if(c>0){b=f=c;h=i}if(!d.h.isValid())return z;if(d.set&&d.set.f){p(Q,function(k){if(k.a===d.set.f)e=k.e(d.h,a-d.h)-1});if(d.set.edge||d.set.shift)d.h["beginningOf"+d.set.f.capitalize()]();if(!h&&d.set.sign&&d.set.f!="millisecond"){b=50;f=-50}}c=a.getTime();h=d.h.getTime();var g=h+e;if(d.set&&
|
32
|
+
d.set.f=="week"&&(new Date(g+1)).getHours()!=0)g-=m.DSTOffset;return c>=h-b&&c<=g+f}function Z(a,b,c,d,e){if(j.isNumber(b)&&e)b={milliseconds:b};else if(j.isNumber(b)){a.setTime(b);return a}if(b.date)b.day=b.date;if(!e&&q(b.day)&&b.weekday!==v){a["set"+(d?"UTC":"")+"Weekday"](b.weekday);b.day=a["get"+(d?"UTC":"")+"Date"](void 0);delete b.weekday}p(Y,function(f){if(b[f.a]!==v||b[f.a+"s"]!==v){b.f=f.a;return z}else if(c&&f.a!=="week"&&f.a!=="year")a["set"+(d?"UTC":"")+f.method](f.a==="day"?1:0)});e&&
|
33
|
+
b.month!==v&&Oa(a,b,e);p(Q,function(f){var h=f.a;f=f.method;var g=b[h]!==v?b[h]:b[h+"s"];if(!q(g)){if(e){if(h==="week"){g=(b.day||0)+g*7;f="Date"}g=g*e+a["get"+f](void 0)}a["set"+(d?"UTC":"")+f](g)}});return a}function za(a){var b;a=a.millisecondsFromNow();var c=a.abs(),d=c,e=0;p(Y.from(1),function(f,h){b=x(c/f.e(),1).floor();if(b>=1){d=b;e=h+1}});return[d,e,a]}function Oa(a,b,c){var d=a.getDate();if(!(d<29||b.f!="month"&&b.f!="year")){b=(new m(a.getFullYear()+(b.year*c||0),a.getMonth()+b.month*c)).daysInMonth();
|
34
|
+
b<d&&a.setDate(b)}}function W(a){var b;b=j.isNumber(a[1])?P(a)[0]:a[0];return xa(b,a[1]).h}function fa(a,b){var c="";if(b=="g"||a.global)c+="g";if(b=="i"||a.ignoreCase)c+="i";if(b=="m"||a.multiline)c+="m";if(b=="y"||a.B)c+="y";return c}function ga(a,b,c,d,e){if(!a.g)a.g=[];a.g.push(setTimeout(function(){a.g.removeAt(f);c.apply(d,e||[])},b));var f=a.g.length}var j=Object,w=Array,r=RegExp,m=Date,B=String,y=Number,v,ia=j.defineProperty&&j.defineProperties;aa.prototype.constructor=j;s(j,z,z,{extended:function(a){return new aa(a)},
|
35
|
+
isObject:function(a){return a===l||q(a)?z:R(a,"Object")&&a.constructor===j},isNaN:function(a){return j.isNumber(a)&&a.valueOf()!==a.valueOf()},each:function(a,b){b&&D(a,function(c,d){b.call(a,c,d,a)});return a},merge:function(a,b,c){return $(a,b,i,c)},isEmpty:function(a){if(!a)return i;return j.equal(a,{})},equal:function(a,b){return ja(a,b,[])},values:function(a,b){var c=[];D(a,function(d,e){c.push(e);b&&b.call(a,e)});return c},clone:function(a,b){if(!S(a)||a===l)return a;var c=Object.isFunction(a.keys)?
|
36
|
+
Object.extended():{};return $(c,a,b)},fromQueryString:function(a,b){var c=j.extended();a=a&&a.toString?a.toString():"";a.replace(/^.*?\?/,"").unescapeURL().split("&").each(function(d){d=d.split("=");d.length===2&&la(c,d[0],d[1],b)});return c},tap:function(a,b){E(a,b,a,[a]);return a}});s(j,z,function(){return arguments.length<2},{keys:function(a,b){if(a===l||!S(a)&&!j.isRegExp(a)&&!j.isFunction(a))throw new TypeError("Object required");var c=[];D(a,function(d){c.push(d);b&&b.call(a,d)});return c}});
|
37
|
+
s(w,z,z,{create:function(){var a=[];C(arguments,function(b){if(b&&b.callee)b=A(b);a=a.concat(b)});return a},isArray:function(a){return R(a,"Array")}});s(w,i,function(){var a=arguments;return a.length===0||j.isFunction(a[0])},{every:function(a,b){var c=this.length,d=0;for(U(arguments);d<c;){if(d in this&&!K(this[d],a,b,[d,this]))return z;d++}return i},some:function(a,b){var c=this.length,d=0;for(U(arguments);d<c;){if(d in this&&K(this[d],a,b,[d,this]))return i;d++}return z},map:function(a,b){var c=
|
38
|
+
this.length,d=0,e,f=Array(c);for(U(arguments);d<c;){if(d in this){e=this[d];f[d]=E(e,a,b,[e,d,this])}d++}return f},filter:function(a,b){var c=this.length,d=0,e=[];for(U(arguments);d<c;){d in this&&K(this[d],a,b,[d,this])&&e.push(this[d]);d++}return e}});s(w,i,z,{indexOf:function(a,b){var c=this.length,d=isNaN(b)?0:parseInt(b>>0);if(j.isString(this))return this.indexOf(a,b);if(d<0)d=Math.max(c+d,0);if(c==0||d>c)return-1;for(;d<c;){if(d in this&&this[d]===a)return d;d++}return-1},lastIndexOf:function(a,
|
39
|
+
b){var c=this.length,d=isNaN(b)?c:parseInt(b>>0);if(j.isString(this))return this.lastIndexOf(a,b);if(d<0)d=c+d;if(c==0||d<0)return-1;for(;d>=0;){if(d in this&&this[d]===a)return d;d--}return-1},forEach:function(a,b){var c=this.length,d=0;for(T(a);d<c;){d in this&&a.call(b,this[d],d,this);d++}},reduce:function(a,b){var c=this.length,d=0,e=arguments.length>1&&b;T(a);if(c==0&&!e)throw new TypeError("Reduce called on empty array with no initial value");else if(e)e=e;else{e=this[d];d++}for(;d<c;){if(d in
|
40
|
+
this)e=a.call(v,e,this[d],d,this);d++}return e},reduceRight:function(a,b){var c=this.length,d=c-1,e=arguments.length>1&&b;T(a);if(c==0&&!e)throw new TypeError("Reduce called on empty array with no initial value");else if(e)c=e;else{c=this[d];d--}for(;d>=0;){if(d in this)c=a.call(v,c,this[d],d,this);d--}return c},each:function(a,b,c){p(this,a,b,c,i);return this},find:function(a,b,c){return I(this,a,b,c)},findAll:function(a,b,c){var d=[];p(this,function(e,f,h){K(e,a,h,[f,h])&&d.push(e)},b,c);return d},
|
41
|
+
count:function(a){if(q(a))return this.length;return this.findAll(a).length},none:function(){return!this.any.apply(this,arguments)},remove:function(){var a,b=this;C(arguments,function(c){for(a=0;a<b.length;)if(K(b[a],c,b,[a,b]))b.splice(a,1);else a++},z);return b},removeAt:function(a,b){if(q(a))return this;if(q(b))b=a;for(var c=0;c<=b-a;c++)this.splice(a,1);return this},add:function(a,b){if(!j.isNumber(y(b))||isNaN(b))b=this.length;w.prototype.splice.apply(this,[b,0].concat(a));return this},include:function(a,
|
42
|
+
b){return this.clone().add(a,b)},exclude:function(){return w.prototype.remove.apply(this.clone(),arguments)},clone:function(){return this.concat()},unique:function(a){return L(this,a)},union:function(){var a=this;C(arguments,function(b){a=a.concat(b)});return L(a)},intersect:function(){var a=[],b=arguments;this.each(function(c){C(b,function(d){w.isArray(d)||(d=[d]);var e;if(e=q(I(a,c)))e=I(d,c)!==v;e&&a.push(c)})});return a},subtract:function(){var a=this.clone();C(arguments,function(b){w.isArray(b)||
|
43
|
+
(b=[b]);b.each(function(c){a.remove(c)})});return a},at:function(){return ka(this,arguments)},first:function(a){if(q(a))return this[0];if(a<0)a=0;return this.slice(0,a)},last:function(a){if(q(a))return this[this.length-1];return this.slice(this.length-a<0?0:this.length-a)},from:function(a){return this.slice(a)},to:function(a){if(q(a))a=this.length;return this.slice(0,a)},min:function(a){return L(V(this,a,"min",i))},max:function(a){return L(V(this,a,"max",i))},least:function(){var a=M(V(this.groupBy.apply(this,
|
44
|
+
arguments),"length","min"));return a.length===this.length?[]:L(a)},most:function(){var a=M(V(this.groupBy.apply(this,arguments),"length","max"));return a.length===this.length?[]:L(a)},sum:function(a){a=a?this.map(a):this;return a.length>0?a.reduce(function(b,c){return b+c}):0},average:function(a){a=a?this.map(a):this;return a.length>0?a.sum()/a.length:0},groupBy:function(a,b){var c=this,d=j.extended(),e;p(c,function(f,h){e=E(f,a,c,[f,h,c]);d[e]||(d[e]=[]);d[e].push(f)});return d.each(b)},inGroups:function(a,
|
45
|
+
b){var c=arguments.length>1,d=this,e=[],f=(this.length/a).ceil();(0).upto(a-1,function(h){h=h*f;var g=d.slice(h,h+f);c&&g.length<f&&(f-g.length).times(function(){g=g.add(b)});e.push(g)});return e},inGroupsOf:function(a,b){if(this.length===0||a===0)return this;if(q(a))a=1;if(q(b))b=l;var c=[],d=l;this.each(function(e,f){if(f%a===0){d&&c.push(d);d=[]}if(q(e))e=b;d.push(e)});if(!this.length.isMultipleOf(a)){(a-this.length%a).times(function(){d.push(b)});this.length+=a-this.length%a}d.length>0&&c.push(d);
|
46
|
+
return c},compact:function(a){var b=[];p(this,function(c){if(j.isArray(c))b.push(c.compact());else if(a&&c)b.push(c);else if(!a&&c!==v&&c!==l&&(!j.isNumber(c)||!isNaN(c)))b.push(c)});return b},isEmpty:function(){return this.compact().length==0},flatten:function(a){return M(this,a)},sortBy:function(a,b){var c=this.clone();c.sort(function(d,e){var f=E(d,a,c,[d]),h=E(e,a,c,[e]),g=j.isNumber(f);return g&&b?h-f:g&&!b?f-h:f===h?0:b?f<h?1:-1:f<h?-1:1});return c},randomize:function(){for(var a=this.concat(),
|
47
|
+
b,c,d=a.length;d;b=parseInt(Math.random()*d),c=a[--d],a[d]=a[b],a[b]=c);return a},zip:function(){var a=A(arguments);return this.map(function(b,c){return[b].concat(a.map(function(d){return c in d?d[c]:l}))})}});s(w,i,z,{all:w.prototype.every,any:w.prototype.some,has:w.prototype.some,insert:w.prototype.add});s(y,z,z,{random:function(a,b){var c;if(arguments.length==1){b=a;a=0}c=Math.min(a||0,b||1);return x(Math.random()*(Math.max(a||0,b||1)-c)+c)}});s(y,i,z,{toNumber:function(){return parseFloat(this,
|
48
|
+
10)},ceil:function(a){return x(this,a,"ceil")},floor:function(a){return x(this,a,"floor")},abs:function(){return Math.abs(this)},pow:function(a){if(q(a))a=1;return Math.pow(this,a)},round:function(a){return x(this,a,"round")},chr:function(){return B.fromCharCode(this)},isOdd:function(){return!this.isMultipleOf(2)},isEven:function(){return this.isMultipleOf(2)},isMultipleOf:function(a){return this%a===0},upto:function(a,b,c){return ma(this,a,b,c||1)},downto:function(a,b,c){return ma(this,a,b,-(c||
|
49
|
+
1))},times:function(a){if(a)for(var b=0;b<this;b++)a.call(this,b);return this.toNumber()},ordinalize:function(){var a;if(this>=11&&this<=13)a="th";else switch(this%10){case 1:a="st";break;case 2:a="nd";break;case 3:a="rd";break;default:a="th"}return this.toString()+a},pad:function(a,b,c){c=c||10;c=this.toNumber()===0?"":this.toString(c).replace(/^-/,"");c=N(c,"0",a-c.replace(/\.\d+$/,"").length,0);if(b||this<0)c=(this<0?"-":"+")+c;return c},format:function(a,b,c){var d,e,f=/(\d+)(\d{3})/;if(B(b).match(/\d/))throw new TypeError("Thousands separator cannot contain numbers.");
|
50
|
+
d=j.isNumber(a)?x(this,a).toFixed(Math.max(a,0)):this.toString();b=b||",";c=c||".";e=d.split(".");d=e[0];for(e=e[1]||"";d.match(f);)d=d.replace(f,"$1"+b+"$2");if(e.length>0)d+=c+N(e,"0",0,a-e.length);return d},hex:function(a){return this.pad(a||1,z,16)}});var Pa=[{d:["Arabic"],source:"\u0600-\u06ff"},{d:["Cyrillic"],source:"\u0400-\u04ff"},{d:["Devanagari"],source:"\u0900-\u097f"},{d:["Greek"],source:"\u0370-\u03ff"},{d:["Hangul"],source:"\uac00-\ud7af\u1100-\u11ff"},{d:["Han","Kanji"],source:"\u4e00-\u9fff\uf900-\ufaff"},
|
51
|
+
{d:["Hebrew"],source:"\u0590-\u05ff"},{d:["Hiragana"],source:"\u3040-\u309f\u30fb-\u30fc"},{d:["Kana"],source:"\u3040-\u30ff\uff61-\uff9f"},{d:["Katakana"],source:"\u30a0-\u30ff\uff61-\uff9f"},{d:["Latin"],source:"\u0001-\u0080-\u00ff\u0100-\u017f\u0180-\u024f"},{d:["Thai"],source:"\u0e00-\u0e7f"}],Qa=[{type:"a",shift:65248,start:65,end:90},{type:"a",shift:65248,start:97,end:122},{type:"n",shift:65248,start:48,end:57},{type:"p",shift:65248,start:33,end:47},{type:"p",shift:65248,start:58,end:64},
|
52
|
+
{type:"p",shift:65248,start:91,end:96},{type:"p",shift:65248,start:123,end:126}],oa={},pa={},Ra=/[\u0020-\u00A5]|[\uFF61-\uFF9F][\uff9e\uff9f]?/g,Sa=/[\u3000-\u301C]|[\u301A-\u30FC]|[\uFF01-\uFF60]|[\uFFE0-\uFFE6]/g,Ta=/[\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30cf\u30d2\u30d5\u30d8\u30db]/,Ua=/[\u30cf\u30d2\u30d5\u30d8\u30db\u30f2]/;s(B,i,z,{escapeRegExp:function(){return r.escape(this)},escapeURL:function(a){return a?encodeURIComponent(this):encodeURI(this)},
|
53
|
+
unescapeURL:function(a){return a?decodeURI(this):decodeURIComponent(this)},escapeHTML:function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},unescapeHTML:function(){return this.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},encodeBase64:function(){return btoa(this)},decodeBase64:function(){return atob(this)},capitalize:function(a){return this.toLowerCase().replace(a?/\b[a-z]/g:/^[a-z]/,function(b){return b.toUpperCase()})},pad:function(a,b){return N(this,
|
54
|
+
a,b,b)},padLeft:function(a,b){return N(this,a,b,0)},padRight:function(a,b){return N(this,a,0,b)},repeat:function(a){if(!j.isNumber(a)||a<1)return"";for(var b="",c=0;c<a;c++)b+=this;return b},each:function(a,b){if(j.isFunction(a)){b=a;a=/./g}else if(a)if(j.isString(a))a=r(r.escape(a),"gi");else{if(j.isRegExp(a))a=a.addFlag("g")}else a=/./g;var c=this.match(a)||[];if(b)for(var d=0;d<c.length;d++)c[d]=b.call(this,c[d],d)||c[d];return c},shift:function(a){var b="";a=a||0;this.codes(function(c){b+=(c+
|
55
|
+
a).chr()});return b},codes:function(a){for(var b=[],c=0;c<this.length;c++){var d=this.charCodeAt(c);b.push(d);a&&a.call(this,d,c)}return b},chars:function(a){return this.trim().each(a)},words:function(a){return this.trim().each(/\S+/g,a)},lines:function(a){return this.trim().each(/^.*$/gm,a)},paragraphs:function(a){var b=this.trim().split(/[\r\n]{2,}/);return b=b.map(function(c){if(a)var d=a.call(c);return d?d:c})},startsWith:function(a,b){if(q(b))b=i;var c=j.isRegExp(a)?a.source.replace("^",""):
|
56
|
+
r.escape(a);return r("^"+c,b?"":"i").test(this)},endsWith:function(a,b){if(q(b))b=i;var c=j.isRegExp(a)?a.source.replace("$",""):r.escape(a);return r(c+"$",b?"":"i").test(this)},isBlank:function(){return this.trim().length===0},has:function(a){return this.search(a)!==-1},add:function(a,b){return this.split("").add(a,b).join("")},remove:function(a){return this.replace(a,"")},hankaku:function(){return na(this,arguments,Sa,pa)},zenkaku:function(){return na(this,arguments,Ra,oa)},hiragana:function(a){var b=
|
57
|
+
this;if(a!==z)b=b.zenkaku("k");return b.replace(/[\u30A1-\u30F6]/g,function(c){return c.shift(-96)})},katakana:function(){return this.replace(/[\u3041-\u3096]/g,function(a){return a.shift(96)})},toNumber:function(a){var b=this.replace(/,/g,"");return b.match(/\./)?parseFloat(b):parseInt(b,a||10)},reverse:function(){return this.split("").reverse().join("")},compact:function(){return this.replace(/[\r\n]/g,"").trim().replace(/([\s\u3000])+/g,"$1")},at:function(){return ka(this,arguments,i)},first:function(a){a=
|
58
|
+
q(a)?1:a;return this.substr(0,a)},last:function(a){a=q(a)?1:a;return this.substr(this.length-a<0?0:this.length-a)},from:function(a){return this.slice(a)},to:function(a){if(q(a))a=this.length;return this.slice(0,a)},toDate:function(a){return W([this.toString(),a])},dasherize:function(){return this.underscore().replace(/_/g,"-")},underscore:function(){return this.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[-\s]/g,"_").toLowerCase()},camelize:function(a){for(var b=this.dasherize().split("-"),c="",d=
|
59
|
+
0;d<b.length;d++)c+=a===z&&d===0?b[d].toLowerCase():b[d].substr(0,1).toUpperCase()+b[d].substr(1).toLowerCase();return c},spacify:function(){return this.underscore().replace(/_/g," ")},stripTags:function(){var a=this;C(arguments.length>0?arguments:[""],function(b){a=a.replace(r("</?"+b.escapeRegExp()+"[^<>]*>","gi"),"")});return a},removeTags:function(){var a=this;C(arguments.length>0?arguments:["\\S+"],function(b){b=r("<("+b+")[^<>]*(?:\\/>|>.*?<\\/\\1>)","gi");a=a.replace(b,"")});return a},truncate:function(a,
|
60
|
+
b,c){var d;b=q(b)?"...":String(b);a-=b.length;if(this.length<=a)return this.toString();d=b.match(/^(.)\1+$/)?b.slice(0,1):"";for(d=r("[^"+H()+d+"]["+H()+d+"]");a>0&&!d.test(this.slice(a-1,a+1))&&c!==i;)a--;return this.slice(0,a)+(a>0?b:"")},assign:function(){var a=j.extended();C(arguments,function(b,c){if(j.isObject(b))a.merge(b);else a[c+1]=b});return this.replace(/\{(.+?)\}/g,function(b,c){return a[c]||b})}});s(B,i,function(a){return!j.isRegExp(a)},{split:function(a,b){var c=[],d=0;a=r(a).addFlag("g");
|
61
|
+
var e,f,h,g;r.n||(e=RegExp("^"+a.source+"$(?!\\s)",a.getFlags()));if(q(b)||+b<0)b=Infinity;else{b=(+b).floor();if(!b)return[]}for(;f=a.exec(this);){h=f.index+f[0].length;if(h>d){c.push(this.slice(d,f.index));!r.n&&f.length>1&&f[0].replace(e,function(){for(var k=1;k<arguments.length-2;k++)if(q(arguments[k]))f[k]=v});f.length>1&&f.index<this.length&&w.prototype.push.apply(c,f.slice(1));g=f[0].length;d=h;if(c.length>=b)break}a.lastIndex===f.index&&a.lastIndex++}if(d===this.length){if(g||!a.test(""))c.push("")}else c.push(this.slice(d));
|
62
|
+
return c.length>b?c.slice(0,b):c}});s(B,i,z,{insert:B.prototype.add});var ba=["hour","minute","second","millisecond","meridian","utc","offset_sign","offset_hours","offset_minutes"],ca="(\\d{1,2}):?(\\d{2})?:?(\\d{2})?(?:\\.(\\d{1,6}))?(am|pm)?(?:(Z)|(?:([+-])(\\d{2})(?::?(\\d{2}))?)?)?",ra="\\s*(?:(?:t|at |\\s+)"+ca+")?",X="\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",va="\u5341\u767e\u5343\u4e07",Ka=r("["+X+va+"]","g"),ya=[],wa,Y,Va=[{src:"(\\d{4})",to:["year"]},{src:"([+-])?(\\d{4})[-.]?({month})[-.]?(\\d{1,2})?",
|
63
|
+
to:["year_sign","year","month","date"]},{src:"(\\d{1,2})[-.\\/]({month})[-.\\/]?(\\d{2,4})?",to:["month","date","year"],l:i}],Ma=[{c:"f{1,4}|ms|milliseconds",b:function(a){return a.getMilliseconds()}},{c:"ss?|seconds",b:function(a){return a.getSeconds()}},{c:"mm?|minutes",b:function(a){return a.getMinutes()}},{c:"hh?|hours|12hr",b:function(a){a=a.getHours(void 0);return a===0?12:a-(a/13).floor()*12}},{c:"HH?|24hr",b:function(a){return a.getHours()}},{c:"dd?|date|day",b:function(a){return a.getDate()}},
|
64
|
+
{c:"dow|weekday",m:i,b:function(a,b,c){return b.weekdays[a.getDay()+(c-1)*7]}},{c:"MM?",b:function(a){return a.getMonth()+1}},{c:"mon|month",m:i,b:function(a,b,c){return b.months[a.getMonth()+(c-1)*12]}},{c:"y{2,4}|year",b:function(a){return a.getFullYear()}},{c:"[Tt]{1,2}",b:function(a,b,c,d){a=a.getHours(void 0)<12?"am":"pm";if(d.length===1)a=a.first();if(d.first()==="T")a=a.toUpperCase();return a}},{c:"z{1,4}|tz|timezone",text:i,b:function(a,b,c,d){a=a.getUTCOffset();if(d=="z"||d=="zz")a=a.replace(/(\d{2})(\d{2})/,
|
65
|
+
function(e,f){return f.toNumber().pad(d.length)});return a}},{c:"iso(tz|timezone)",b:function(a){return a.getUTCOffset(i)}},{c:"ord",b:function(a){return a.getDate().ordinalize()}}],Q=[{a:"year",method:"FullYear",e:function(a){return(365+(a?a.isLeapYear()?1:0:0.25))*24*60*60*1E3}},{a:"month",method:"Month",e:function(a,b){var c=30.4375,d;if(a){d=a.daysInMonth();if(b<=d.days())c=d}return c*24*60*60*1E3}},{a:"week",method:"Week",e:J(6048E5)},{a:"day",method:"Date",e:J(864E5)},{a:"hour",method:"Hours",
|
66
|
+
e:J(36E5)},{a:"minute",method:"Minutes",e:J(6E4)},{a:"second",method:"Seconds",e:J(1E3)},{a:"millisecond",method:"Milliseconds",e:J(1)}],da={},ua={en:"2;;January,February,March,April,May,June,July,August,September,October,November,December;Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday;millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s;one,two,three,four,five,six,seven,eight,nine,ten;a,an,the;the,st|nd|rd|th,of;{num} {unit} {sign},{num} {unit=4-5} {sign} {day},{weekday?} {month} {date}{2} {year?} {time?},{date} {month} {year},{month} {year},{shift?} {weekday} {time?},{shift} week {weekday} {time?},{shift} {unit=5-7},{1} {edge} of {shift?} {unit=4-7?}{month?}{year?},{weekday} {3} {shift} week,{1} {date}{2} of {month},{1}{month?} {date?}{2} of {shift} {unit=6-7},{day} at {time?},{time} {day};{Month} {d}, {yyyy};,yesterday,today,tomorrow;,ago|before,,from now|after|from;,last,the|this,next;last day,end,,first day|beginning",
|
66
67
|
ja:"1;\u6708;;\u65e5\u66dc\u65e5,\u6708\u66dc\u65e5,\u706b\u66dc\u65e5,\u6c34\u66dc\u65e5,\u6728\u66dc\u65e5,\u91d1\u66dc\u65e5,\u571f\u66dc\u65e5;\u30df\u30ea\u79d2,\u79d2,\u5206,\u6642\u9593,\u65e5,\u9031\u9593|\u9031,\u30f6\u6708|\u30f5\u6708|\u6708,\u5e74;;;;{num}{unit}{sign},{shift}{unit=5-7}{weekday?},{year}\u5e74{month?}\u6708?{date?}\u65e5?,{month}\u6708{date?}\u65e5?,{date}\u65e5;{yyyy}\u5e74{M}\u6708{d}\u65e5;\u4e00\u6628\u65e5,\u6628\u65e5,\u4eca\u65e5,\u660e\u65e5,\u660e\u5f8c\u65e5;,\u524d,,\u5f8c;,\u53bb|\u5148,,\u6765",
|
67
68
|
ko:"1;\uc6d4;;\uc77c\uc694\uc77c,\uc6d4\uc694\uc77c,\ud654\uc694\uc77c,\uc218\uc694\uc77c,\ubaa9\uc694\uc77c,\uae08\uc694\uc77c,\ud1a0\uc694\uc77c;\ubc00\ub9ac\ucd08,\ucd08,\ubd84,\uc2dc\uac04,\uc77c,\uc8fc,\uac1c\uc6d4|\ub2ec,\ub144;\uc77c|\ud55c,\uc774,\uc0bc,\uc0ac,\uc624,\uc721,\uce60,\ud314,\uad6c,\uc2ed;;;{num}{unit} {sign},{shift} {unit=5-7},{shift} {unit=5?} {weekday},{year}\ub144{month?}\uc6d4?{date?}\uc77c?,{month}\uc6d4{date?}\uc77c?,{date}\uc77c;{yyyy}\ub144{M}\uc6d4{d}\uc77c;\uadf8\uc800\uaed8,\uc5b4\uc81c,\uc624\ub298,\ub0b4\uc77c,\ubaa8\ub808;,\uc804,,\ud6c4;,\uc9c0\ub09c|\uc791,\uc774\ubc88,\ub2e4\uc74c|\ub0b4",
|
68
69
|
ru:"4;;\u042f\u043d\u0432\u0430\u0440:\u044f|\u044c,\u0424\u0435\u0432\u0440\u0430\u043b:\u044f|\u044c,\u041c\u0430\u0440\u0442:\u0430|,\u0410\u043f\u0440\u0435\u043b:\u044f|\u044c,\u041c\u0430:\u044f|\u0439,\u0418\u044e\u043d:\u044f|\u044c,\u0418\u044e\u043b:\u044f|\u044c,\u0410\u0432\u0433\u0443\u0441\u0442:\u0430|,\u0421\u0435\u043d\u0442\u044f\u0431\u0440:\u044f|\u044c,\u041e\u043a\u0442\u044f\u0431\u0440:\u044f|\u044c,\u041d\u043e\u044f\u0431\u0440:\u044f|\u044c,\u0414\u0435\u043a\u0430\u0431\u0440:\u044f|\u044c;\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435,\u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a,\u0412\u0442\u043e\u0440\u043d\u0438\u043a,\u0421\u0440\u0435\u0434\u0430,\u0427\u0435\u0442\u0432\u0435\u0440\u0433,\u041f\u044f\u0442\u043d\u0438\u0446\u0430,\u0421\u0443\u0431\u0431\u043e\u0442\u0430;\u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434:\u0430|\u0443|\u044b|,\u0441\u0435\u043a\u0443\u043d\u0434:\u0430|\u0443|\u044b|,\u043c\u0438\u043d\u0443\u0442:\u0430|\u0443|\u044b|,\u0447\u0430\u0441:||\u0430|\u043e\u0432,\u0434\u0435\u043d\u044c|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0434\u043d\u0435\u0439,\u043d\u0435\u0434\u0435\u043b:\u044f|\u044e|\u0438|\u044c|\u0435,\u043c\u0435\u0441\u044f\u0446:||\u0430|\u0435\u0432|\u0435,\u0433\u043e\u0434|\u0433\u043e\u0434|\u0433\u043e\u0434\u0430|\u043b\u0435\u0442|\u0433\u043e\u0434\u0443;\u043e\u0434:\u0438\u043d|\u043d\u0443,\u0434\u0432:\u0430|\u0435,\u0442\u0440\u0438,\u0447\u0435\u0442\u044b\u0440\u0435,\u043f\u044f\u0442\u044c,\u0448\u0435\u0441\u0442\u044c,\u0441\u0435\u043c\u044c,\u0432\u043e\u0441\u0435\u043c\u044c,\u0434\u0435\u0432\u044f\u0442\u044c,\u0434\u0435\u0441\u044f\u0442\u044c;;\u0432|\u043d\u0430,\u0433\u043e\u0434\u0430;{num} {unit} {sign},{sign} {num} {unit},{date} {month} {year?} {2},{month} {year},{1} {shift} {unit=5-7};{d} {month} {yyyy} \u0433\u043e\u0434\u0430;\u043f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430,\u0432\u0447\u0435\u0440\u0430,\u0441\u0435\u0433\u043e\u0434\u043d\u044f,\u0437\u0430\u0432\u0442\u0440\u0430,\u043f\u043e\u0441\u043b\u0435\u0437\u0430\u0432\u0442\u0440\u0430;,\u043d\u0430\u0437\u0430\u0434,,\u0447\u0435\u0440\u0435\u0437;,\u043f\u0440\u043e\u0448\u043b\u043e:\u0439|\u043c,,\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435:\u0439|\u043c",
|
@@ -71,23 +72,23 @@ pt:"6;;janeiro,fevereiro,mar\u00e7o,abril,maio,junho,julho,agosto,setembro,outub
|
|
71
72
|
fr:"2;;janvier,f\u00e9vrier|fevrier,mars,avril,mai,juin,juillet,ao\u00fbt,septembre,octobre,novembre;dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi;milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|n\u00e9e|nee;un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix;;l'|la|le;{sign} {num} {unit},{sign} {num} {unit},{1} {date?} {month} {year?},{1} {unit=5-7} {shift};{d} {month} {yyyy};,hier,aujourd'hui,demain;,il y a,,dans|d'ici;,derni:er|\u00e8re|ere,,prochain:|e",it:"2;;Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre;Domenica,Luned:\u00ec|i,Marted:\u00ec|i,Mercoled:\u00ec|i,Gioved:\u00ec|i,Venerd:\u00ec|i,Sabato;millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i;un:|'|a|o,due,tre,quattro,cinque,sei,sette,otto,nove,dieci;;l'|la|il;{num} {unit} {sign},{weekday?} {date?} {month} {year?},{1} {unit=5-7} {shift},{1} {shift} {unit=5-7};{d} {month} {yyyy};,ieri,oggi,domani,dopodomani;,fa,,da adesso;,scors:o|a,,prossim:o|a",
|
72
73
|
de:"2;;Januar,Februar,M\u00e4rz|Marz,April,Mai,Juni,Juli,August,September,November,Dezember;Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag;Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en;ein:|e|er|em|en,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn;;der;{sign} {num} {unit},{num} {unit} {sign},{num} {unit} {sign},{sign} {num} {unit},{weekday?} {date?} {month} {year?},{shift} {unit=5-7};{d}. {Month} {yyyy};vorgestern,gestern,heute,morgen,\u00fcbermorgen|ubermorgen|uebermorgen;,vor:|her,,in;,letzte:|r|n|s,,n\u00e4chste:|r|n|s+naechste:|r|n|s",
|
73
74
|
"zh-TW":"1;\u6708;;\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d;\u6beb\u79d2,\u79d2\u9418,\u5206\u9418,\u5c0f\u6642,\u5929,\u500b\u661f\u671f|\u9031,\u500b\u6708,\u5e74;;;\u65e5|\u865f;{num}{unit}{sign},\u661f\u671f{weekday},{shift}{unit=5-7},{shift}{unit=5}{weekday},{year}\u5e74{month?}\u6708?{date?}{1},{month}\u6708{date?}{1},{date}{1};{yyyy}\u5e74{M}\u6708{d}\u65e5;\u524d\u5929,\u6628\u5929,\u4eca\u5929,\u660e\u5929,\u5f8c\u5929;,\u524d,,\u5f8c;,\u4e0a|\u53bb,\u9019,\u4e0b|\u660e","zh-CN":"1;\u6708;;\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d;\u6beb\u79d2,\u79d2\u949f,\u5206\u949f,\u5c0f\u65f6,\u5929,\u4e2a\u661f\u671f|\u5468,\u4e2a\u6708,\u5e74;;;\u65e5|\u53f7;{num}{unit}{sign},\u661f\u671f{weekday},{shift}{unit=5-7},{shift}{unit=5}{weekday},{year}\u5e74{month?}\u6708?{date?}{1},{month}\u6708{date?}{1},{date}{1};{yyyy}\u5e74{M}\u6708{d}\u65e5;\u524d\u5929,\u6628\u5929,\u4eca\u5929,\u660e\u5929,\u540e\u5929;,\u524d,,\u540e;,\u4e0a|\u53bb,\u8fd9,\u4e0b|\u660e"};
|
74
|
-
|
75
|
-
a.toString().from(-1);switch(
|
76
|
-
|
77
|
-
7+1)}},getWeek:function(){return((this.getTime()-(new m(this.getFullYear(),0,1)).getTime()+1)/6048E5).ceil()},getUTCWeek:function(){return((this.getTime()-(new m).setUTC(this.getUTCFullYear(),0,1,0,0,0,0).getTime()+1)/6048E5).ceil()},getUTCOffset:function(a){var b=this.k?0:this.getTimezoneOffset(),c=a===
|
78
|
-
this.getTimezoneOffset()===0},advance:function(){var a=P(arguments);return Z(this,a[0],z,z,1,
|
79
|
-
c<d&&a+c>d},isLeapYear:function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0},daysInMonth:function(){return 32-(new m(this.getFullYear(),this.getMonth(),32)).getDate()},format:function(a,b){return
|
80
|
-
"weekday":return this.getDay()>0&&this.getDay()<6;case a==="weekend":return this.getDay()===0||this.getDay()===6;case (c=English.weekdays.indexOf(a)%7)>-1:return this.getDay()===c;case (c=English.months.indexOf(a)%12)>-1:return this.getMonth()===c}}return
|
81
|
-
|
82
|
-
f.length>b-2)){f.push([this,arguments]);c()}}var e=this,f=[],h=z,g,k;a=a||1;b=b||Infinity;g=a.ceil();k=x(g/a);return d},delay:function(a){
|
83
|
-
if(c==a){c=0;return b.apply(this,arguments)}}},once:function(){var a=this;return function(){return a.hasOwnProperty("memo")?a.memo:a.memo=a.apply(this,arguments)}},fill:function(){var a=this,b=
|
84
|
-
(function(a){if(this.btoa===v){var b=/[^A-Za-z0-9\+\/\=]/g;btoa=function(c){var d="",e,f,h,g,k,n,o=0;do{e=c.charCodeAt(o++);f=c.charCodeAt(o++);h=c.charCodeAt(o++);g=e>>2;e=(e&3)<<4|f>>4;k=(f&15)<<2|h>>6;n=h&63;if(isNaN(f))k=n=64;else if(isNaN(h))n=64;d=d+a.charAt(g)+
|
85
|
-
f=a.indexOf(c.charAt(n++));g=a.indexOf(c.charAt(n++));k=a.indexOf(c.charAt(n++));e=e<<2|f>>4;f=(f&15)<<4|g>>2;h=(g&3)<<6|k;d+=e.chr();if(g!=64)d+=f.chr();if(k!=64)d+=h.chr()}while(n<c.length);return unescape(d)}}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");
|
86
|
-
"")},trimRight:function(){return this.replace(d,"")}})})();(function(){var a;p(
|
87
|
-
c){a="\uff71\uff72\uff73\uff74\uff75\uff67\uff68\uff69\uff6a\uff6b\uff76\uff77\uff78\uff79\uff7a\uff7b\uff7c\uff7d\uff7e\uff7f\uff80\uff81\uff82\uff6f\uff83\uff84\uff85\uff86\uff87\uff88\uff89\uff8a\uff8b\uff8c\uff8d\uff8e\uff8f\uff90\uff91\uff92\uff93\uff94\uff6c\uff95\uff6d\uff96\uff6e\uff97\uff98\uff99\uff9a\uff9b\uff9c\uff66\uff9d\uff70\uff65".charAt(c);
|
88
|
-
c){
|
89
|
-
function(f,h){return x((this.getTime()-m.create(f,h).getTime())/e)});
|
90
|
-
{};switch(c){case "year":f.year=this.getFullYear();break;case "month":f.month=this.getMonth();break;case "day":f.day=this.getDate();break;case "week":f.weekday=0}return this.set(f,
|
91
|
-
p(
|
92
|
-
RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{fff}{isotz}"});(function(){var a=new m(m.UTC(1999,11,31));if(!a.toISOString||a.toISOString()!=="1999-12-31T00:00:00.000Z")
|
93
|
-
function(){};var b=a.q();a=new b instanceof b&&!(new a instanceof b)}
|
75
|
+
s(ta,i,z,{getMonth:function(a){return j.isNumber(a)?a-1:I(this.months,r(a,"i"),0,z,i)%12},p:function(a){return I(this.weekdays,r(a,"i"),0,z,i)%7},o:function(a){var b;return j.isNumber(a)?a:a&&(b=this.numbers.indexOf(a))!==-1?(b+1)%10:1},t:function(a){var b=this;return a.replace(this.numbers[9],"").each(function(c){return b.o(c)}).join("")},s:function(a){return English.units[this.units.indexOf(a)%8]},z:function(a,b,c){var d,e;d=c>0?this.futureRelativeFormat:this.pastRelativeFormat;if(this.code=="ru"){e=
|
76
|
+
a.toString().from(-1);switch(i){case e==1:e=1;break;case e>=2&&e<=4:e=2;break;default:e=3}}else e=this.hasPlural&&a>1?1:0;e=this.units[e*8+b]||this.units[b];if(this.capitalizeUnit)e=e.capitalize();b=I(this.modifiers,function(f){return f.name=="sign"&&f.value==(c>0?1:-1)});return d.assign({num:a,unit:e,sign:b.text})}});s(m,z,z,{create:function(){return W(arguments)},now:function(){return(new m).getTime()},setLocale:function(a,b){var c=O(a,z,b);if(c){Date.currentLocale=a;qa(c);return c}},getLocale:function(a){return O(a,
|
77
|
+
i)},addFormat:function(a,b,c,d){ya.push({l:d,v:c,w:r("^"+a+"$","i"),to:b})}});s(m,i,z,{set:function(){var a=P(arguments);return Z(this,a[0],a[1])},setUTC:function(){var a=P(arguments);return Z(this,a[0],a[1],i)},setWeekday:function(a){q(a)||this.setDate(this.getDate()+a-this.getDay())},setUTCWeekday:function(a){q(a)||this.setDate(this.getUTCDate()+a-this.getDay())},setWeek:function(a){if(!q(a)){this.setMonth(0);this.setDate(a*7+1)}},setUTCWeek:function(a){if(!q(a)){this.setMonth(0);this.setUTCDate(a*
|
78
|
+
7+1)}},getWeek:function(){return((this.getTime()-(new m(this.getFullYear(),0,1)).getTime()+1)/6048E5).ceil()},getUTCWeek:function(){return((this.getTime()-(new m).setUTC(this.getUTCFullYear(),0,1,0,0,0,0).getTime()+1)/6048E5).ceil()},getUTCOffset:function(a){var b=this.k?0:this.getTimezoneOffset(),c=a===i?":":"";if(!b&&a)return"Z";return x(-b/60).pad(2,i)+c+(b%60).pad(2)},toUTC:function(){if(this.k)return this;var a=this.clone().addMinutes(this.getTimezoneOffset());a.k=i;return a},isUTC:function(){return this.k||
|
79
|
+
this.getTimezoneOffset()===0},advance:function(){var a=P(arguments);return Z(this,a[0],z,z,1,i)},rewind:function(){var a=P(arguments);return Z(this,a[0],z,z,-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(a,b){return this.getTime()>m.create(a).getTime()-(b||0)},isBefore:function(a,b){return this.getTime()<m.create(a).getTime()+(b||0)},isBetween:function(a,b,c){var d=this.getTime();a=m.create(a).getTime();var e=m.create(b).getTime();b=Math.min(a,e);a=Math.max(a,e);c=c||0;return b-
|
80
|
+
c<d&&a+c>d},isLeapYear:function(){var a=this.getFullYear();return a%4===0&&a%100!==0||a%400===0},daysInMonth:function(){return 32-(new m(this.getFullYear(),this.getMonth(),32)).getDate()},format:function(a,b){return ea(this,a,z,b)},relative:function(a,b){if(j.isString(a)){b=a;a=l}return ea(this,a,i,b)},is:function(a,b){var c;if(j.isString(a)){a=a.trim().toLowerCase();switch(i){case a==="future":return this.getTime()>(new m).getTime();case a==="past":return this.getTime()<(new m).getTime();case a===
|
81
|
+
"weekday":return this.getDay()>0&&this.getDay()<6;case a==="weekend":return this.getDay()===0||this.getDay()===6;case (c=English.weekdays.indexOf(a)%7)>-1:return this.getDay()===c;case (c=English.months.indexOf(a)%12)>-1:return this.getMonth()===c}}return Na(this,a,b)},resetTime:function(){return this.set({hour:0,minute:0,second:0,millisecond:0})},clone:function(){return new m(this.getTime())}});s(m,i,z,{getWeekday:m.prototype.getDay,getUTCWeekday:m.prototype.getUTCDay});r.n=q(r("()??").exec("")[1]);
|
82
|
+
s(r,z,z,{escape:function(a){return a.replace(/([/'*+?|()\[\]{}.^$])/g,"\\$1")}});s(r,i,z,{getFlags:function(){return fa(this)},setFlags:function(a){return r(this.source,a)},addFlag:function(a){return this.setFlags(fa(this,a))},removeFlag:function(a){return this.setFlags(fa(this).replace(a,""))}});s(Function,i,z,{lazy:function(a,b){function c(){if(!(h||f.length==0)){for(var n=Math.max(f.length-k,0);f.length>n;)Function.prototype.apply.apply(e,f.shift());ga(d,g,function(){h=z;c()});h=i}}function d(){if(!(h&&
|
83
|
+
f.length>b-2)){f.push([this,arguments]);c()}}var e=this,f=[],h=z,g,k;a=a||1;b=b||Infinity;g=a.ceil();k=x(g/a);return d},delay:function(a){j.isNumber(a)||(a=0);var b=A(arguments,1);ga(this,a,this,this,b);return this},debounce:function(a,b){var c=this;return b===z?this.lazy(a,1):function(){c.cancel();ga(c,a,c,this,arguments)}},cancel:function(){if(j.isArray(this.g))for(;this.g.length>0;)clearTimeout(this.g.shift());return this},after:function(a){var b=this,c=0;j.isNumber(a)||(a=1);return function(){c++;
|
84
|
+
if(c==a){c=0;return b.apply(this,arguments)}}},once:function(){var a=this;return function(){return a.hasOwnProperty("memo")?a.memo:a.memo=a.apply(this,arguments)}},fill:function(){var a=this,b=A(arguments);return function(){var c=A(arguments);p(b,function(d,e){if(d!==v||e>=c.length)c.insert(d,e)});return a.apply(this,c)}}});(function(){var a={};p(["Array","Boolean","Date","Function","Number","String","RegExp"],function(b){a["is"+b]=function(c){return R(c,b)}});s(Object,z,z,a)})();ha(["keys","values",
|
85
|
+
"each","merge","isEmpty","clone","equal","watch","tap"],aa);(function(){s(j,z,i,{watch:function(a,b,c){if(ia){var d=a[b];j.defineProperty(a,b,{get:function(){return d},set:function(e){d=c.call(a,b,d,e)},enumerable:i,configurable:i})}}})})();(function(a){if(this.btoa===v){var b=/[^A-Za-z0-9\+\/\=]/g;btoa=function(c){var d="",e,f,h,g,k,n,o=0;do{e=c.charCodeAt(o++);f=c.charCodeAt(o++);h=c.charCodeAt(o++);g=e>>2;e=(e&3)<<4|f>>4;k=(f&15)<<2|h>>6;n=h&63;if(isNaN(f))k=n=64;else if(isNaN(h))n=64;d=d+a.charAt(g)+
|
86
|
+
a.charAt(e)+a.charAt(k)+a.charAt(n)}while(o<c.length);return d};atob=function(c){var d="",e,f,h,g,k,n=0;if(c.match(b))throw Error("String contains invalid base64 characters");c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{e=a.indexOf(c.charAt(n++));f=a.indexOf(c.charAt(n++));g=a.indexOf(c.charAt(n++));k=a.indexOf(c.charAt(n++));e=e<<2|f>>4;f=(f&15)<<4|g>>2;h=(g&3)<<6|k;d+=e.chr();if(g!=64)d+=f.chr();if(k!=64)d+=h.chr()}while(n<c.length);return unescape(d)}}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");
|
87
|
+
(function(){var a=H().match(/^\s+$/);try{B.prototype.trim.call([1])}catch(b){a=z}var c=r("^["+H()+"]+"),d=r("["+H()+"]+$");s(B,i,!a,{trim:function(){return this.toString().trimLeft().trimRight()},trimLeft:function(){return this.replace(c,"")},trimRight:function(){return this.replace(d,"")}})})();(function(){var a;p(Qa,function(b){b.start.upto(b.end,function(c){F(b.type,c.chr(),(c+b.shift).chr())})});"\u30a2\u30a4\u30a6\u30a8\u30aa\u30a1\u30a3\u30a5\u30a7\u30a9\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c3\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e3\u30e6\u30e5\u30e8\u30e7\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f2\u30f3\u30fc\u30fb".each(function(b,
|
88
|
+
c){a="\uff71\uff72\uff73\uff74\uff75\uff67\uff68\uff69\uff6a\uff6b\uff76\uff77\uff78\uff79\uff7a\uff7b\uff7c\uff7d\uff7e\uff7f\uff80\uff81\uff82\uff6f\uff83\uff84\uff85\uff86\uff87\uff88\uff89\uff8a\uff8b\uff8c\uff8d\uff8e\uff8f\uff90\uff91\uff92\uff93\uff94\uff6c\uff95\uff6d\uff96\uff6e\uff97\uff98\uff99\uff9a\uff9b\uff9c\uff66\uff9d\uff70\uff65".charAt(c);F("k",a,b);b.match(Ta)&&F("k",a+"\uff9e",b.shift(1));b.match(Ua)&&F("k",a+"\uff9f",b.shift(2))});"\u3002\u3001\u300c\u300d\uffe5\uffe0\uffe1".each(function(b,
|
89
|
+
c){F("p","\uff61\uff64\uff62\uff63\u00a5\u00a2\u00a3".charAt(c),b)});F("k","\uff73\uff9e","\u30f4");F("k","\uff66\uff9e","\u30fa");F("s"," ","\u3000")})();(function(){Pa.each(function(a){var b=r("^["+a.source+"\\s]+$"),c=r("["+a.source+"]");a.d.each(function(d){t(B.prototype,"is"+d,function(){return b.test(this.trim())});t(B.prototype,"has"+d,function(){return c.test(this)})})})})();English=m.setLocale("en");(function(){p(Q,function(a,b){var c=a.a,d=c.capitalize(),e=a.e();t(m.prototype,c+"sSince",
|
90
|
+
function(f,h){return x((this.getTime()-m.create(f,h).getTime())/e)});t(m.prototype,c+"sUntil",function(f,h){return x((m.create(f,h).getTime()-this.getTime())/e)});t(m.prototype,c+"sAgo",m.prototype[c+"sUntil"]);t(m.prototype,c+"sFromNow",m.prototype[c+"sSince"]);t(m.prototype,"add"+d+"s",function(f){var h={};h[c]=f;return this.advance(h)});Da(c,e);b<3&&p(["Last","This","Next"],function(f){t(m.prototype,"is"+f+d,function(){return this.is(f+" "+c)})});if(b<4){t(m.prototype,"beginningOf"+d,function(){var f=
|
91
|
+
{};switch(c){case "year":f.year=this.getFullYear();break;case "month":f.month=this.getMonth();break;case "day":f.day=this.getDate();break;case "week":f.weekday=0}return this.set(f,i)});t(m.prototype,"endOf"+d,function(){var f={hours:23,minutes:59,seconds:59,milliseconds:999};switch(c){case "year":f.month=11;f.day=31;break;case "month":f.day=this.daysInMonth();break;case "week":f.weekday=6}return this.set(f,i)})}})})();(function(){wa=Q.clone().removeAt(2);Y=Q.clone().reverse();var a="\\d{1,2}|"+English.months.join("|");
|
92
|
+
p(Va,function(b){m.addFormat(b.src.replace(/\{month\}/,a)+ra,b.to.concat(ba),"en",b.l)});m.addFormat(ca,ba)})();(function(){var a=English.weekdays.slice(0,7),b=English.months.slice(0,12);p(["today","yesterday","tomorrow","weekday","weekend","future","past"].concat(a).concat(b),function(c){t(m.prototype,"is"+c.capitalize(),function(){return this.is(c)})})})();s(m,z,i,{DSTOffset:((new m(2E3,6,1)).getTimezoneOffset()-(new m(2E3,0,1)).getTimezoneOffset())*60*1E3,INTERNATIONAL_TIME:"{h}:{mm}:{ss}",RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {tz}",
|
93
|
+
RFC1036:"{Weekday}, {dd}-{Mon}-{yy} {HH}:{mm}:{ss} {tz}",ISO8601_DATE:"{yyyy}-{MM}-{dd}",ISO8601_DATETIME:"{yyyy}-{MM}-{dd}T{HH}:{mm}:{ss}.{fff}{isotz}"});(function(){var a=new m(m.UTC(1999,11,31));if(!a.toISOString||a.toISOString()!=="1999-12-31T00:00:00.000Z")s(m,i,i,{toISOString:function(){return ea(this.toUTC(),m.ISO8601_DATETIME)}});if(!a.toJSON||a.toJSON()!=="1999-12-31T00:00:00.000Z")s(m,i,i,{toJSON:m.prototype.toISOString});s(m,i,z,{iso:m.prototype.toISOString})})();(function(){var a=z;if(Function.prototype.q){a=
|
94
|
+
function(){};var b=a.q();a=new b instanceof b&&!(new a instanceof b)}s(Function,i,!a,{bind:function(c){var d=this,e=A(arguments,1),f,h;if(!j.isFunction(this))throw new TypeError("Function.prototype.bind called on a non-function");h=function(){return d.apply(d.prototype&&this instanceof d?this:c,e.concat(A(arguments)))};f=function(){};f.prototype=this.prototype;h.prototype=new f;return h}})})()})();
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugar-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-23 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &2206729920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2206729920
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &2206729420 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.1.pre8
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2206729420
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &2206728960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.9.2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2206728960
|
47
47
|
description: Sugar, tastefully bundled for the Rails 3.1 asset pipeline. Sweet!
|
48
48
|
email:
|
49
49
|
- github@phlippers.net
|
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
segments:
|
78
78
|
- 0
|
79
|
-
hash:
|
79
|
+
hash: -1971271794297101250
|
80
80
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
segments:
|
87
87
|
- 0
|
88
|
-
hash:
|
88
|
+
hash: -1971271794297101250
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
91
|
rubygems_version: 1.8.10
|