forked from andrewplummer/Sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sugar-full.min.js
216 lines (216 loc) · 87.7 KB
/
sugar-full.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/*
* Sugar Library v1.5.0
*
* Freely distributable and licensed under the MIT-style license.
* Copyright (c) 2013 Andrew Plummer
* http://sugarjs.com/
*
* ---------------------------- */
(function(){'use strict';var Sugar={},n=Object,aa="undefined"!==typeof global?global:window,ba="undefined"!==typeof module&&module.exports,ca=ba&&"undefined"!==typeof process?process.env.SUGAR_NO_CONFLICT:!1,da=n.prototype.hasOwnProperty,ea=!(!n.defineProperty||!n.defineProperties),fa="Boolean Number String Array Date RegExp Function".split(" "),ga={};
function q(a,b,c,d,e){var f;f=(c=!1!==c)?a.prototype:a;s(b,function(b,h){var m=ha("method",a,b,f),p=ha("original",a,b,f),r=b in f;"function"===typeof d&&m&&(h=ia(m,h,d));var C=c,A=h,u=Sugar[ga[a]],k;u&&(k=C?ja(A):A,t(u,b,k,!0),"function"===typeof A&&(t(k,"original",p),t(k,"method",A),t(k,"existed",r),t(k,"instance",C)));!e&&(!0===d?m:ca&&ga[a])||t(f,b,h)})}function la(a,b,c){c=Sugar[ga[a]][c];var d={};d[b]=c.method;q(a,d,c.instance)}
function na(a,b,c){var d=!b,e=!1;"string"===typeof b&&(b=[b]);s(Sugar[ga[a]],function(f,g){if(d||-1!==b.indexOf(f))e=!0,c(g.instance?a.prototype:a,f,g)});return e}function ha(a,b,c,d){return(b=Sugar[ga[b]])&&v(b,c)?b[c][a]:d[c]}function ia(a,b,c){return function(d){return c.apply(this,arguments)?b.apply(this,arguments):a.apply(this,arguments)}}function ja(a){return function(b){var c=arguments,d=[],e;for(e=1;e<c.length;e++)d.push(c[e]);return a.apply(b,d)}}
function t(a,b,c,d){ea?n.defineProperty(a,b,{value:c,enumerable:!!d,configurable:!0,writable:!0}):a[b]=c}function s(a,b){for(var c in a)if(v(a,c)&&!1===b.call(a,c,a[c],a))break}function v(a,b){return!!a&&da.call(a,b)}Sugar={extend:q,restore:function(a,b){if(!ca)return na(a,b,function(a,b,e){t(a,b,e.method)})},revert:function(a,b){return na(a,b,function(a,b,e){e.existed?t(a,b,e.original):delete a[b]})},noConflict:ca};ba?module.exports=Sugar:aa.Sugar=Sugar;
s(fa.concat("Object"),function(a,b){ga[aa[b]]=b;Sugar[b]={}});
var n=Object,w=Array,x=RegExp,y=Date,z=String,B=Number,oa=Function,E=Math,pa=Sugar.Object,F=Sugar.Array,G=Sugar.Date,ra=Sugar.String,sa=Sugar.Number,ta=n.prototype.toString,ua="function"===typeof x(),va=!("0"in new z("a")),wa={},xa=/^\[object Date|Array|String|Number|RegExp|Boolean|Arguments\]$/,za=ya("boolean",fa[0]),H=ya("number",fa[1]),I=ya("string",fa[2]),J=Ba(fa[3]),Ca=Ba(fa[4]),Da=Ba(fa[5]),K=Ba(fa[6]);
function Ea(a,b,c){return(c||ta.call(a))==="[object "+b+"]"}function Ba(a){var b="Array"===a&&w.isArray||function(b,d){return Ea(b,a,d)};return wa[a]=b}function ya(a,b){function c(c){return L(c)?Ea(c,b):typeof c===a}return wa[b]=c}function Fa(a,b,c,d,e,f){var g={};b=I(b)?b.split(","):b;b.forEach(function(a,b){c(g,a,b)});q(a,g,d,e,f)}function Ga(a){return!Ha(a)&&"length"in a&&("[object Arguments]"===ta.call(a)||!!a.callee)}
function M(a,b,c){var d=[];c=c||0;var e;for(e=a.length;c<e;c++)d.push(a[c]),b&&b.call(a,a[c],c);return d}function Ia(a,b,c){var d=a[c||0];J(d)&&(a=d,c=0);return M(a,b,c)}function Ja(a){if(!a||!a.call)throw new TypeError("Callback is not callable");}function N(a){return void 0!==a}function O(a){return void 0===a}function L(a){return!!a&&("object"===typeof a||ua&&Da(a))}function Ha(a){var b=typeof a;return null==a||"string"===b||"number"===b||"boolean"===b}
function Ka(a,b){b=b||ta.call(a);try{if(a&&a.constructor&&!v(a,"constructor")&&!v(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}return!!a&&"[object Object]"===b&&"hasOwnProperty"in a}function La(a,b){for(var c=0;c<a;c++)b(c)}function Ma(a,b){s(b,function(c){a[c]=b[c]});return a}function Na(a){Ha(a)&&(a=n(a));if(va&&I(a))for(var b=a,c=0,d;d=b.charAt(c);)b[c++]=d;return a}function Hash(a){Ma(this,Na(a))}Hash.prototype.constructor=n;
var Oa=E.abs,Pa=E.pow,Qa=E.ceil,P=E.floor,Ra=E.round,Sa=E.min,Q=E.max;function Ta(a,b,c){var d=Pa(10,Oa(b||0));c=c||Ra;0>b&&(d=1/d);return c(a*d)/d}var Ua="",Va={},Wa;function Xa(){return"\t\n\x0B\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u2028\u2029\u3000\ufeff"}function Ya(a,b){var c="";for(a=a.toString();0<b;)if(b&1&&(c+=a),b>>=1)a+=a;return c}
function Za(a,b){var c,d;c=a.replace(Wa,function(a){a=Va[a];"."===a&&(d=!0);return a});return d?parseFloat(c):parseInt(c,b||10)}function R(a,b,c,d){d=Oa(a).toString(d||10);d=Ya("0",b-d.replace(/\.\d+/,"").length)+d;if(c||0>a)d=(0>a?"-":"+")+d;return d}function $a(a){if(11<=a&&13>=a)return"th";switch(a%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}
function ab(a,b){function c(a,c){if(a||-1<b.indexOf(c))d+=c}var d="";b=b||"";c(a.multiline,"m");c(a.ignoreCase,"i");c(a.global,"g");c(a.qa,"y");return d}function bb(a){I(a)||(a=z(a));return a.replace(/([\\\/\'*+?|()\[\]{}.^$-])/g,"\\$1")}function S(a,b){return a["get"+(a._utc?"UTC":"")+b]()}function cb(a,b,c){return a["set"+(a._utc?"UTC":"")+b](c)}
function db(a,b){var c=typeof a,d,e,f,g,h,m,p;if("string"===c)return a;f=ta.call(a);d=Ka(a,f);e=J(a,f);if(null!=a&&d||e){b||(b=[]);if(1<b.length)for(m=b.length;m--;)if(b[m]===a)return"CYC";b.push(a);d=a.valueOf()+z(a.constructor);g=e?a:n.keys(a).sort();m=0;for(p=g.length;m<p;m++)h=e?m:g[m],d+=h+db(a[h],b);b.pop()}else d=-Infinity===1/a?"-0":z(a&&a.valueOf?a.valueOf():a);return c+f+d}function eb(a,b){return a===b?0!==a||1/a===1/b:fb(a)&&fb(b)?db(a)===db(b):!1}
function fb(a){var b=ta.call(a);return xa.test(b)||Ka(a,b)}function gb(a,b,c){var d,e=a.length,f=b.length,g=!1!==b[f-1];if(!(f>(g?1:2)))return hb(a,e,b[0],g,c);d=[];M(b,function(b){if(za(b))return!1;d.push(hb(a,e,b,g,c))});return d}function hb(a,b,c,d,e){d&&(c%=b,0>c&&(c=b+c));return e?a.charAt(c):a[c]}function T(a,b,c,d){return b?b.apply?b.apply(c,d||[]):K(a[b])?a[b].call(a):a[b]:a}
function ib(a,b){a.forEach(function(a){var d=pa["equals"===a?"equal":a];t(b.prototype,a,function(){var a=arguments,b=[this],c;for(c=0;c<a.length;c++)b.push(a[c]);return d.apply(null,b)})})}var jb,kb;for(kb=0;9>=kb;kb++)jb=z.fromCharCode(kb+65296),Ua+=jb,Va[jb]=z.fromCharCode(kb+48);Va[","]="";Va["\uff0e"]=".";Va["."]=".";Wa=x("["+Ua+"\uff0e,.]","g");
q(n,{keys:function(a){var b=[];if(!L(a)&&!Da(a)&&!K(a))throw new TypeError("Object required");s(a,function(a){b.push(a)});return b}},!1,!0);function lb(a,b,c,d){var e=a.length,f=-1==d,g=f?e-1:0;c=isNaN(c)?g:parseInt(c>>0);0>c&&(c=e+c);if(!f&&0>c||f&&c>=e)c=g;for(;f&&0<=c||!f&&c<e;){if(a[c]===b)return c;c+=d}return-1}
function mb(a,b,c,d){var e=a.length,f=0,g=N(c);Ja(b);if(0!=e||g)g||(c=a[d?e-1:f],f++);else throw new TypeError("Reduce called on empty array with no initial value");for(;f<e;)g=d?e-f-1:f,g in a&&(c=b(c,a[g],g,a)),f++;return c}function nb(a){if(0===a.length)throw new TypeError("First argument must be defined");}q(w,{isArray:function(a){return J(a)}},!1,!0);
q(w,{every:function(a,b){var c=this.length,d=0;for(nb(arguments);d<c;){if(d in this&&!a.call(b,this[d],d,this))return!1;d++}return!0},some:function(a,b){var c=this.length,d=0;for(nb(arguments);d<c;){if(d in this&&a.call(b,this[d],d,this))return!0;d++}return!1},map:function(a,b){b=arguments[1];var c=this.length,d=0,e=Array(c);for(nb(arguments);d<c;)d in this&&(e[d]=a.call(b,this[d],d,this)),d++;return e},filter:function(a){var b=arguments[1],c=this.length,d=0,e=[];for(nb(arguments);d<c;)d in this&&
a.call(b,this[d],d,this)&&e.push(this[d]),d++;return e},indexOf:function(a){var b=arguments[1];return I(this)?this.indexOf(a,b):lb(this,a,b,1)},lastIndexOf:function(a){var b=arguments[1];return I(this)?this.lastIndexOf(a,b):lb(this,a,b,-1)},forEach:function(a){var b=this.length,c=0,d=arguments[1];for(Ja(a);c<b;)c in this&&a.call(d,this[c],c,this),c++},reduce:function(a){return mb(this,a,arguments[1])},reduceRight:function(a){return mb(this,a,arguments[1],!0)}},!0,!0);
var ob=x("^["+Xa()+"]+|["+Xa()+"]+$","g");q(z,{trim:function(){return this.toString().replace(ob,"")}},!0,!0);q(oa,{bind:function(a){var b=this,c=M(arguments,null,1),d;if(!K(this))throw new TypeError("Function.prototype.bind called on a non-function");d=function(){return b.apply(b.prototype&&this instanceof b?this:a,c.concat(M(arguments)))};d.prototype=this.prototype;return d}},!0,!0);q(y,{now:function(){return(new y).getTime()}},!1,!0);var pb,qb=new y(y.UTC(2E3,0));
pb=!!qb.toISOString&&"2000-01-01T00:00:00.000Z"===qb.toISOString();Fa(y,"toISOString,toJSON",function(a,b){a[b]=function(){return R(this.getUTCFullYear(),4)+"-"+R(this.getUTCMonth()+1,2)+"-"+R(this.getUTCDate(),2)+"T"+R(this.getUTCHours(),2)+":"+R(this.getUTCMinutes(),2)+":"+R(this.getUTCSeconds(),2)+"."+R(this.getUTCMilliseconds(),3)+"Z"}},!0,!0,!pb);
function rb(a){a=x(a);return function(b){return a.test(b)}}
function sb(a){var b=a.getTime();return function(a){return!(!a||!a.getTime)&&a.getTime()===b}}function tb(a){return function(b,c,d){return b===a||a.call(this,b,c,d)}}function ub(a){return function(b,c,d){return b===a||a.call(d,c,b,d)}}function vb(a,b){var c={};return function(d,e,f){var g;if(!L(d))return!1;for(g in a)if(c[g]=c[g]||wb(a[g],b),!1===c[g].call(f,d[g],e,f))return!1;return!0}}function xb(a){return function(b){return b===a||eb(b,a)}}
function wb(a,b){if(!Ha(a)){if(Da(a))return rb(a);if(Ca(a))return sb(a);if(K(a))return b?ub(a):tb(a);if(Ka(a))return vb(a,b)}return xb(a)}function T(a,b,c,d){return b?b.apply?b.apply(c,d||[]):J(b)?b.map(function(b){return T(a,b,c,d)}):K(a[b])?a[b].call(a):a[b]:a}function yb(a,b){var c,d;if(I(a)&&I(b))return zb(a,b);if(J(a)&&J(b)){if(a.length<b.length)return-1;if(a.length>b.length)return 1;for(d=0;d<a.length;d++)if(c=yb(a[d],b[d]),0!==c)return c;return 0}return a<b?-1:a>b?1:0}
function U(a,b,c,d){var e=+a.length;0>c&&(c=a.length+c);c=isNaN(c)?0:c;for(!0===d&&(e+=c);c<e;){d=c%a.length;if(!(d in a)){Ab(a,b,c);break}if(!1===b.call(a,a[d],d,a))break;c++}}function Ab(a,b,c){var d=[],e;for(e in a)e in a&&e>>>0==e&&4294967295!=e&&e>=c&&d.push(parseInt(e));U(d.sort(),function(c){return b.call(a,a[c],c,a)})}function Bb(a,b,c,d,e,f){var g,h,m;0<a.length&&(m=wb(b),U(a,function(b,c){if(m.call(f,b,c,a))return g=b,h=c,!1},c,d));return e?h:g}
function Cb(a,b,c,d){var e=[],f;0<a.length&&(f=wb(b),U(a,function(a,b,c){f(a,b,c)&&e.push(a)},c,d));return e}function Db(a,b,c){if(!H(B(c))||isNaN(c))c=a.length;w.prototype.splice.apply(a,[c,0].concat(b));return a}function Eb(a,b){M(b,function(b){var d=0;for(b=wb(b);d<a.length;)b(a[d],d,a)?a.splice(d,1):d++});return a}function Fb(a,b){var c=[],d={},e;U(a,function(f,g){e=b?T(f,b,a,[f,g,a]):f;Gb(d,e)||c.push(f)});return c}
function Hb(a,b,c){var d=[],e={};U(b,function(a){Gb(e,a)});U(a,function(a){var b=db(a),h=!fb(a);if(Ib(e,b,a,h)!==c){var m=0;if(h)for(b=e[b];m<b.length;)b[m]===a?b.splice(m,1):m+=1;else delete e[b];d.push(a)}});return d}function Jb(a,b,c){b=b||Infinity;c=c||0;var d=[];U(a,function(a){J(a)&&c<b?d=d.concat(Jb(a,b,c+1)):d.push(a)});return d}function Kb(a,b,c){var d={},e;U(a,function(c,g){e=T(c,b,a,[c,g,a]);d[e]||(d[e]=[]);d[e].push(c)});c&&s(d,c);return d}
function Lb(a,b){b&&(a=F.map(a,b));return 0<a.length?a.reduce(function(a,b){return a+b}):0}function Mb(a,b){var c=[];U(a,function(a){J(a)?c.push(Mb(a)):b&&a?c.push(a):b||null==a||a.valueOf()!==a.valueOf()||c.push(a)});return c}function Nb(a){a=Ma([],a);for(var b=a.length,c,d;b;)c=E.random()*b|0,d=a[--b],a[b]=a[c],a[c]=d;return a}function Ob(a){var b=[];M(a,function(a){b=b.concat(a)});return b}function Ib(a,b,c,d){var e=v(a,b);d&&(a[b]||(a[b]=[]),e=-1!==a[b].indexOf(c));return e}
function Gb(a,b){var c=db(b),d=!fb(b),e=Ib(a,c,b,d);d?a[c].push(b):a[c]=b;return e}function Pb(a,b,c,d){var e,f,g,h=[],m="max"===c,p="min"===c,r=w.isArray(a);for(e in a)if(a.hasOwnProperty(e)){c=a[e];g=T(c,b,a,r?[c,parseInt(e),a]:[]);if(O(g))throw new TypeError("Cannot compare with undefined");if(g===f)h.push(c);else if(O(f)||m&&g>f||p&&g<f)h=[c],f=g}r||(h=Jb(h,1));return d?h:h[0]}
function zb(a,b){var c,d,e,f,g=0,h=0;c=F[Qb];d=F[Rb];var m=F[Sb],p=F[Tb],r=F[Ub];a=Vb(a,c,d);b=Vb(b,c,d);do c=a.charAt(g),e=m[c]||c,c=b.charAt(g),f=m[c]||c,c=e?p.indexOf(e):null,d=f?p.indexOf(f):null,-1===c||-1===d?(c=a.charCodeAt(g)||null,d=b.charCodeAt(g)||null,r&&(48<=c&&57>=c||65296<=c&&65305>=c)&&(48<=d&&57>=d||65296<=d&&65305>=d)&&(c=Za(a.slice(g)),d=Za(b.slice(g)))):(e=e!==a.charAt(g),f=f!==b.charAt(g),e!==f&&0===h&&(h=e-f)),g+=1;while(null!=c&&null!=d&&c===d);return c===d?h:c-d}
function Vb(a,b,c){I(a)||(a=z(a));c&&(a=a.toLowerCase());b&&(a=a.replace(b,""));return a}var Tb="AlphanumericSortOrder",Qb="AlphanumericSortIgnore",Rb="AlphanumericSortIgnoreCase",Sb="AlphanumericSortEquivalents",Ub="AlphanumericSortNatural";q(w,{create:function(){var a=[];M(arguments,function(b){var c;(c=Ga(b))||(c=b,c=!Ha(c)&&"length"in c&&!I(c)&&!Ka(c));c&&(b=M(b));a=a.concat(b)});return a}},!1);
q(w,{find:function(a){var b=arguments[1];Ja(a);return Bb(this,a,0,!1,!1,b)},findIndex:function(a){var b;b=arguments[1];Ja(a);b=Bb(this,a,0,!1,!0,b);return O(b)?-1:b}},!0,!0);
q(w,{findFrom:function(a,b,c){return Bb(this,a,b,c)},findIndexFrom:function(a,b,c){b=Bb(this,a,b,c,!0);return O(b)?-1:b},findAll:function(a,b,c){return Cb(this,a,b,c)},count:function(a){return O(a)?this.length:Cb(this,a).length},removeAt:function(a,b){if(O(a))return this;O(b)&&(b=a);this.splice(a,b-a+1);return this},include:function(a,b){return Db(Ma([],this),a,b)},exclude:function(){return Eb(Ma([],this),arguments)},clone:function(){return Ma([],this)},unique:function(a){return Fb(this,a)},flatten:function(a){return Jb(this,
a)},union:function(){return Fb(this.concat(Ob(arguments)))},intersect:function(){return Hb(this,Ob(arguments),!1)},subtract:function(a){return Hb(this,Ob(arguments),!0)},at:function(){return gb(this,arguments)},first:function(a){if(O(a))return this[0];0>a&&(a=0);return this.slice(0,a)},last:function(a){return O(a)?this[this.length-1]:this.slice(0>this.length-a?0:this.length-a)},from:function(a){return this.slice(a)},to:function(a){O(a)&&(a=this.length);return this.slice(0,a)},min:function(a,b){return Pb(this,
a,"min",b)},max:function(a,b){return Pb(this,a,"max",b)},least:function(a,b){return Pb(Kb(this,a),"length","min",b)},most:function(a,b){return Pb(Kb(this,a),"length","max",b)},sum:function(a){return Lb(this,a)},average:function(a){return 0<this.length?Lb(this,a)/this.length:0},inGroups:function(a,b){var c=1<arguments.length,d=this,e=[],f=Qa(this.length/a);La(a,function(a){a*=f;var h=d.slice(a,a+f);c&&h.length<f&&La(f-h.length,function(){h.push(b)});e.push(h)});return e},inGroupsOf:function(a,b){var c=
[],d=this.length,e=this,f;if(0===d||0===a)return e;O(a)&&(a=1);O(b)&&(b=null);La(Qa(d/a),function(d){for(f=e.slice(a*d,a*d+a);f.length<a;)f.push(b);c.push(f)});return c},isEmpty:function(){return 0==Mb(this).length},sortBy:function(a,b){var c=Ma([],this);c.sort(function(d,e){var f=T(d,a,c,[d]),g=T(e,a,c,[e]);return yb(f,g)*(b?-1:1)});return c},randomize:function(){return Nb(this)},zip:function(){var a=M(arguments);return this.map(function(b,c){return[b].concat(a.map(function(a){return c in a?a[c]:
null}))})},sample:function(a){var b=Nb(this);return 0<arguments.length?b.slice(0,a):b[0]},each:function(a,b,c){U(this,a,b,c);return this},add:function(a,b){return Db(this,a,b)},remove:function(){return Eb(this,arguments)},compact:function(a){return Mb(this,a)},groupBy:function(a,b){return Kb(this,a,b)},none:function(a){var b=M(arguments);return!F.some.apply(this,[this].concat(b))}});
function Wb(a,b){Fa(n,a,function(a,d){var e=F[d].method;a[d]=function(a,c,d){var m=n.keys(Na(a)),p;b||(p=wb(c,!0));d=e.call(m,function(d){var e=a[d];return b?T(e,c,a,[d,e,a]):p(e,d,a)},d);J(d)&&(d=d.reduce(function(b,c){b[c]=a[c];return b},{}));return d}},!1);ib(a,Hash)}
(function(){function a(){var a=arguments;return 0<a.length&&!K(a[0])}var b=w.prototype.map;Fa(w,"every,some,filter,find,findIndex",function(a,b){var e=w.prototype[b];a[b]=function(a){var b=wb(a);return e.call(this,function(a,c,d){return b(a,c,d)})}},!0,a);q(w,{map:function(a,d){var e=this;2>arguments.length&&(d=e);return b.call(e,function(b,g){return T(b,a,d,[b,g,e])})}},!0,a)})();la(w,"all","every");la(w,"any","some");la(w,"insert","add");
(function(){F[Tb]="A\u00c1\u00c0\u00c2\u00c3\u0104BC\u0106\u010c\u00c7D\u010e\u00d0E\u00c9\u00c8\u011a\u00ca\u00cb\u0118FG\u011eH\u0131I\u00cd\u00cc\u0130\u00ce\u00cfJKL\u0141MN\u0143\u0147\u00d1O\u00d3\u00d2\u00d4PQR\u0158S\u015a\u0160\u015eT\u0164U\u00da\u00d9\u016e\u00db\u00dcVWXY\u00ddZ\u0179\u017b\u017d\u00de\u00c6\u0152\u00d8\u00d5\u00c5\u00c4\u00d6".split("").map(function(a){return a+a.toLowerCase()}).join("");var a={};U("A\u00c1\u00c0\u00c2\u00c3\u00c4 C\u00c7 E\u00c9\u00c8\u00ca\u00cb I\u00cd\u00cc\u0130\u00ce\u00cf O\u00d3\u00d2\u00d4\u00d5\u00d6 S\u00df U\u00da\u00d9\u00db\u00dc".split(" "),
function(b){var c=b.charAt(0);U(b.slice(1).split(""),function(b){a[b]=c;a[b.toLowerCase()]=c.toLowerCase()})});F[Ub]=!0;F[Rb]=!0;F[Sb]=a})();Wb("any all none count find findAll isEmpty".split(" "));Wb("sum average min max least most".split(" "),!0);F.AlphanumericSort=zb;
var V,Xb,Yb="ampm hour minute second ampm utc offset_sign offset_hours offset_minutes ampm".split(" "),Zb={},$b,ac,bc,cc=[],dc={},W={yyyy:function(a){return S(a,"FullYear")},yy:function(a){return S(a,"FullYear")%100},ord:function(a){a=S(a,"Date");return a+$a(a)},tz:function(a){return ec(a)},isotz:function(a){return ec(a,!0)},Z:function(a){return ec(a)},ZZ:function(a){return ec(a).replace(/(\d{2})$/,":$1")}},hc=[{name:"year",method:"FullYear",ha:!0,ca:function(a){return 864E5*(365+(a?fc(a)?1:0:0.25))}},
{name:"month",error:0.919,method:"Month",ha:!0,ca:function(a,b){var c=30.4375,d;a&&(d=gc(a),b<=864E5*d&&(c=d));return 864E5*c}},{name:"week",method:"ISOWeek",ca:function(){return 6048E5}},{name:"day",error:0.958,method:"Date",ha:!0,ca:function(){return 864E5}},{name:"hour",method:"Hours",ca:function(){return 36E5}},{name:"minute",method:"Minutes",ca:function(){return 6E4}},{name:"second",method:"Seconds",ca:function(){return 1E3}},{name:"millisecond",method:"Milliseconds",ca:function(){return 1}}],
ic={};function Localization(a){Ma(this,a);this.compiledFormats=cc.concat()}
Localization.prototype={get:function(a){return this[a]||""},getMonth:function(a){return H(a)?a-1:this.months.indexOf(a)%12},ka:function(a){return this.weekdays.indexOf(a)%7},ba:function(a,b,c,d,e){var f=c||[],g=this,h;a=a.replace(/\s+/g,"[,. ]*");a=a.replace(/\{([^,]+?)\}/g,function(a,b){var d,e,h,u=b.match(/\?$/);h=b.match(/^(\d+)\??$/);var k=b.match(/(\d)(?:-(\d))?/),D=b.replace(/[^a-z]+$/,"");h?d=g.get("tokens")[h[1]]:g[D]?d=g[D]:g[D+"s"]&&(d=g[D+"s"],k&&(e=[],d.forEach(function(a,b){var c=b%(g.units?
8:d.length);c>=k[1]&&c<=(k[2]||k[1])&&e.push(a)}),d=e),d=jc(d));if(!d)return"";h?h="(?:"+d+")":(c||f.push(D),h="("+d+")");u&&(h+="?");return h});b?(b=kc(g,e),e=["t","[\\s\\u3000]"].concat(g.get("timeMarker")),h=a.match(/\\d\{\d,\d\}\)+\??$/),lc(g,"(?:"+b+")[,\\s\\u3000]+?"+a,Yb.concat(f),d),lc(g,a+"(?:[,\\s]*(?:"+e.join("|")+(h?"+":"*")+")"+b+")?",f.concat(Yb),d)):lc(g,a,f,d)}};
function mc(a,b,c){var d,e,f=b[0],g=b[1],h=b[2];b=a[c]||a.relative;if(K(b))return b.call(a,f,g,h,c);e=a.units[8*(a.plural&&1<f?1:0)+g]||a.units[g];a.capitalizeUnit&&(e=nc(e));d=a.modifiers.filter(function(a){return"sign"==a.name&&a.value==(0<h?1:-1)})[0];return b.replace(/\{(.*?)\}/g,function(a,b){switch(b){case "num":return f;case "unit":return e;case "sign":return d.src}})}function oc(a,b){return b&&b===a.get("ampm")[1]}function pc(a,b){b=b||a.code;return"en"===b||"en-US"===b?!0:a.variant}
function qc(a,b){return b.replace(x(a.num,"g"),function(b){return rc(a,b,!0)||""})}function rc(a,b,c){return(a=a.na[b])?(c&&(a%=10),a):H(b)?b:1}function X(a,b){var c;I(a)||(a="");c=ic[a]||ic[a.slice(0,2)];if(!1===b&&!c)throw new TypeError("Invalid locale.");return c||Xb}
function sc(a,b){function c(a){var b=h[a];I(b)?h[a]=b.split(","):b||(h[a]=[])}function d(a,b){a=a.split("+").map(function(a){return a.replace(/(.+):(.+)$/,function(a,b,c){return c.split("|").map(function(a){return b+a}).join("|")})}).join("|");a.split("|").forEach(b)}function e(a,b,c){var e=[];h[a].forEach(function(a,f){b&&(a+="+"+a.slice(0,3));d(a,function(a,b){e[b*c+f]=a.toLowerCase()})});h[a]=e}function f(a,b,c){a="\\d{"+a+","+b+"}";c&&(a+="|(?:"+jc(h.get("numbers"))+")+");return a}function g(a,
b){h[a]=h[a]||b}var h,m;h=new Localization(b);c("modifiers");"months weekdays units numbers articles tokens timeMarker ampm timeSuffixes dateParse timeParse".split(" ").forEach(c);m=!h.monthSuffix;(function(){var a=h.na={},b=[];h.numbers.forEach(function(c,e){d(c,function(c){b.push(c);a[c]=e+1})});h.numbers=b})();e("months",m,12);e("weekdays",m,7);e("units",!1,8);g("code",a);g("date",f(1,2,h.digitDate));g("year","'\\d{2}|"+f(4,4));g("num",function(){var a=h.get("numbers"),b=["-?\\d+"].concat(h.get("articles"));
a&&(b=b.concat(a));return jc(b)}());(function(){var a=[];h.modifiersByName={};h.modifiers.push({name:"day",src:"yesterday",value:-1});h.modifiers.push({name:"day",src:"today",value:0});h.modifiers.push({name:"day",src:"tomorrow",value:1});h.modifiers.forEach(function(b){var c=b.name;d(b.src,function(d){var e=h[c];h.modifiersByName[d]=b;a.push({name:c,src:d,value:b.value});h[c]=e?e+"|"+d:d})});h.day+="|"+jc(h.weekdays);h.modifiers=a})();h.monthSuffix&&(h.month=f(1,2),h.months="1 2 3 4 5 6 7 8 9 10 11 12".split(" ").map(function(a){return a+
h.monthSuffix}));h.full_month=f(1,2)+"|"+jc(h.months);0<h.timeSuffixes.length&&h.ba(kc(h),!1,Yb);h.ba("{day}",!0);h.ba("{month}"+(h.monthSuffix||""));h.ba("{year}"+(h.yearSuffix||""));h.timeParse.forEach(function(a){h.ba(a,!0)});h.dateParse.forEach(function(a){h.ba(a)});return ic[a]=h}function lc(a,b,c,d){a.compiledFormats.unshift({variant:!!d,locale:a,reg:x("^"+b+"$","i"),to:c})}function nc(a){return a.slice(0,1).toUpperCase()+a.slice(1)}
function jc(a){return a.filter(function(a){return!!a}).join("|")}function tc(){var a=G.newDateInternal;return a?a():new y}function uc(a){var b=new y(a.getTime());vc(b,!!a._utc);return b}function fc(a){a=S(a,"FullYear");return 0===a%4&&0!==a%100||0===a%400}function vc(a,b){t(a,"_utc",!!b);return a}function ec(a,b){var c=a._utc?0:a.getTimezoneOffset(),d=!0===b?":":"";return!c&&b?"Z":R(P(-c/60),2,!0)+d+R(Oa(c%60),2)}
function wc(a,b){var c;if(L(a[0]))return a;if(H(a[0])&&!H(a[1]))return[a[0]];if(I(a[0])&&b)return[xc(a[0]),a[1]];c={};ac.forEach(function(b,e){c[b.name]=a[e]});return[c]}function xc(a){var b,c={};if(a=a.match(/^(-?\d+)?\s?(\w+?)s?$/i))O(b)&&(b=parseInt(a[1]),isNaN(b)&&(b=1)),c[a[2].toLowerCase()]=b;return c}function yc(a,b,c){var d;O(c)&&(c=bc.length);for(b=b||0;b<c&&(d=bc[b],!1!==a(d.name,d,b));b++);}function zc(a,b){b=wc(b,!0);return Ac(a,b[0],b[1],1)}
function Bc(a,b){b=wc(b);return Ac(a,b[0],b[1])}function Cc(a,b){var c={},d;b=b||"hours";"date"===b&&(b="days");d=hc.some(function(a){return b===a.name||b===a.name+"s"});c[b]=b.match(/^days?/)?1:0;return d?Bc(a,[c,!0]):a}function Dc(a,b){if(!O(b))return cb(a,"Date",S(a,"Date")+b-S(a,"Day"))}function Ec(a,b){var c={};switch(b){case "year":c.year=S(a,"FullYear");break;case "month":c.month=S(a,"Month");break;case "day":c.day=S(a,"Date");break;case "week":c.weekday=0}return Bc(a,[c,!0])}
function Fc(a,b){var c={hours:23,minutes:59,seconds:59,milliseconds:999};switch(b){case "year":c.month=11;c.day=31;break;case "month":c.day=gc(a);break;case "week":c.weekday=6}return Bc(a,[c,!0])}function Gc(a,b){var c={},d,e;b.forEach(function(b,g){d=a[g+1];O(d)||""===d||("year"===b&&(c.ga=d.replace(/'/,"")),e=parseFloat(d.replace(/'/,"").replace(/,/,".")),c[b]=isNaN(e)?d.toLowerCase():e)});return c}function Hc(a){a=a.trim().replace(/^just (?=now)|\.+$/i,"");return Ic(a)}
function Ic(a){return a.replace($b,function(a,c,d){var e=0,f=1,g,h;if(c)return a;d.split("").reverse().forEach(function(a){a=Zb[a];var b=9<a;b?(g&&(e+=f),f*=a/(h||1),h=a):(!1===g&&(f*=10),e+=f*a);g=b});g&&(e+=f);return e})}
function Jc(a,b,c,d){function e(a){A.push(a)}function f(){A.forEach(function(a){a.call()})}function g(){Dc(p,7*(k.num-1)+(p.getDay()>ka?ka+7:ka))}function h(){var a=u.modifiersByName[k.edge];yc(function(a){if(N(k[a]))return D=a,!1},4);if("year"===D)k.da="month";else if("month"===D||"week"===D)k.da="day";0>a.value?Fc(p,D):Ec(p,D);-2===a.value&&Cc(p)}function m(){var a;yc(function(b,c,d){"day"===b&&(b="date");if(N(k[b])){if(d>=qa)return p.setTime(NaN),!1;a=a||{};a[b]=k[b];delete k[b]}});a&&e(function(){Bc(p,
[a,!0])})}var p,r,C,A,u,k,D,qa,ka,Aa,ma;p=tc();A=[];vc(p,d);Ca(a)?vc(p,!!a._utc||0===a.getTimezoneOffset()).setTime(a.getTime()):H(a)||null===a?p.setTime(a):L(a)?(Bc(p,[a,!0]),k=a):I(a)&&(C=X(b),a=Hc(a),C&&s(C.cachedFormat?[C.cachedFormat].concat(C.compiledFormats):C.compiledFormats,function(c,d){var f=a.match(d.reg);if(f){u=d.locale;k=Gc(f,d.to);u.cachedFormat=d;k.utc&&vc(p,!0);if(k.timestamp)return k=k.timestamp,!1;d.variant&&!I(k.month)&&(I(k.date)||pc(C,b))&&(ma=k.month,k.month=k.date,k.date=
ma);k.ga&&2===k.ga.length&&(k.year=Kc(k.year));k.month&&(k.month=u.getMonth(k.month),k.shift&&!k.unit&&(k.unit=u.units[7]));k.weekday&&k.date?delete k.weekday:k.weekday&&(k.weekday=u.ka(k.weekday),k.shift&&!k.unit&&(k.unit=u.units[5]));k.day&&(ma=u.modifiersByName[k.day])?(k.day=ma.value,Cc(p),r=!0):k.day&&-1<(ka=u.ka(k.day))&&(delete k.day,k.num&&k.month?(e(g),k.day=1):k.weekday=ka);k.date&&!H(k.date)&&(k.date=qc(u,k.date));oc(u,k.ampm)&&12>k.hour?k.hour+=12:k.ampm===u.get("ampm")[0]&&12===k.hour&&
(k.hour=0);if("offset_hours"in k||"offset_minutes"in k)vc(p,!0),k.offset_minutes=k.offset_minutes||0,k.offset_minutes+=60*k.offset_hours,"-"===k.offset_sign&&(k.offset_minutes*=-1),k.minute-=k.offset_minutes;k.unit&&(r=!0,Aa=rc(u,k.num),qa=u.units.indexOf(k.unit)%8,D=V.units[qa],m(),k.shift&&(Aa*=(ma=u.modifiersByName[k.shift])?ma.value:0),k.sign&&(ma=u.modifiersByName[k.sign])&&(Aa*=ma.value),N(k.weekday)&&(Bc(p,[{weekday:k.weekday},!0]),delete k.weekday),k[D]=(k[D]||0)+Aa);k.edge&&e(h);"-"===k.year_sign&&
(k.year*=-1);yc(function(a,b,c){b=k[a];var d=b%1;d&&(k[bc[c-1].name]=Ra(d*("second"===a?1E3:60)),k[a]=P(b))},1,4);return!1}}),k?r?zc(p,[k]):(p._utc&&Cc(p),Ac(p,k,!0,!1,c)):("now"!==a&&(p=new y(a)),d&&p.oa(-p.getTimezoneOffset())),f(),vc(p,!1));return{ea:p,set:k}}function Kc(a){return 100*Ra(S(tc(),"FullYear")/100)-100*Ra(a/100)+a}function Lc(a,b){var c=S(a,"Day")||7;if(!O(b))return Bc(a,[{month:0,date:4}]),Bc(a,[{weekday:1}]),1<b&&zc(a,[{weeks:b-1}]),1!==c&&zc(a,[{days:c-1}]),a.getTime()}
function gc(a){return 32-S(new y(S(a,"FullYear"),S(a,"Month"),32),"Date")}function Mc(a){var b,c=Oa(a),d=c,e=0;yc(function(a,g,h){b=P(Ta(c/g.ca(),1));1<=b&&(d=b,e=h)},1);return[d,e,a]}function Nc(a){var b=Mc(G.millisecondsFromNow(a));if(6===b[1]||5===b[1]&&4===b[0]&&G.daysFromNow(a)>=gc(tc()))b[0]=Oa(G.monthsFromNow(a)),b[1]=6;return b}function Oc(a,b,c){function d(a,c){var d=S(a,"Month");return X(c).months[d+12*b]}Pc(a,d,c);Pc(nc(a),d,c,1)}
function Pc(a,b,c,d){W[a]=function(a,f){var g=b(a,f);c&&(g=g.slice(0,c));d&&(g=g.slice(0,d).toUpperCase()+g.slice(d));return g}}function Qc(a,b,c){W[a]=b;W[a+a]=function(a,c){return R(b(a,c),2)};c&&(W[a+a+a]=function(a,c){return R(b(a,c),3)},W[a+a+a+a]=function(a,c){return R(b(a,c),4)})}function Rc(a){var b=a.match(/(\{\w+\})|[^{}]+/g);dc[a]=b.map(function(a){a.replace(/\{(\w+)\}/,function(b,e){a=W[e]||e;return e});return a})}
function Sc(a,b,c,d){var e;if(isNaN(a.getTime()))return"Invalid Date";I(G[b])?b=G[b]:K(b)&&(e=Nc(a),b=b.apply(a,e.concat(X(d))));if(!b&&c)return e=e||Nc(a),0===e[1]&&(e[1]=1,e[0]=1),a=X(d),mc(a,e,0<e[2]?"future":"past");b=b||"long";if("short"===b||"long"===b||"full"===b)b=X(d)[b];dc[b]||Rc(b);var f,g;e="";b=dc[b];f=0;for(c=b.length;f<c;f++)g=b[f],e+=K(g)?g(a,d):g;return e}
function Tc(a,b,c,d){var e,f;if(!isNaN(a.getTime())){if(I(b))switch(b=b.trim().toLowerCase(),f=vc(uc(a),d),!0){case "future"===b:return a.getTime()>tc().getTime();case "past"===b:return a.getTime()<tc().getTime();case "weekday"===b:return 0<S(f,"Day")&&6>S(f,"Day");case "weekend"===b:return 0===S(f,"Day")||6===S(f,"Day");case -1<(e=V.weekdays.indexOf(b)%7):return S(f,"Day")===e;case -1<(e=V.months.indexOf(b)%12):return S(f,"Month")===e}return Uc(a,b,null,c,d)}}
function Uc(a,b,c,d,e){var f,g,h=0,m=0;b=Jc(b,c,null,e);0<d&&(h=m=d,f=!0);if(isNaN(b.ea.getTime()))return!1;b.set&&b.set.da&&((b.set.edge||b.set.shift)&&Ec(b.ea,b.set.da),g="month"===b.set.da?Fc(uc(b.ea),b.set.da).getTime():zc(uc(b.ea),["1 "+b.set.da]).getTime()-1,!f&&b.set.sign&&"millisecond"!==b.set.da&&(h=50,m=-50));d=a.getTime();f=b.ea.getTime();g=g||f+0;b=new y(f);a=vc(new y(g),!!a._utc||0===a.getTimezoneOffset());23!==S(a,"Hours")&&(b=b.getTimezoneOffset(),a=a.getTimezoneOffset(),b!==a&&(g+=
(a-b).pa()));return d>=f-h&&d<=g+m}
function Ac(a,b,c,d,e){function f(a){return N(b[a])?b[a]:b[a+"s"]}function g(a){return N(f(a))}var h;if(H(b)&&d)b={milliseconds:b};else if(H(b))return a.setTime(b),a;N(b.date)&&(b.day=b.date);yc(function(d,e,f){var m="day"===d;if(g(d)||m&&g("weekday"))return b.da=d,h=+f,!1;!c||"week"===d||m&&g("week")||cb(a,e.method,m?1:0)});hc.forEach(function(c){var e=c.name,h=c.method;c=f(e);if(!O(c)){d?("week"===e&&(c=(b.day||0)+7*c,h="Date"),c=c*d+S(a,h)):"month"===e&&g("day")&&cb(a,"Date",15);var m=c;"ISOWeek"===
h?Lc(a,m):cb(a,h,m);d&&"month"===e&&(e=c,0>e&&(e=e%12+12),e%12!==S(a,"Month")&&cb(a,"Date",0))}});d||g("day")||!g("weekday")||Dc(a,f("weekday"));var m;a:{switch(e){case -1:m=a>tc();break a;case 1:m=a<tc();break a}m=void 0}m&&yc(function(c,d){if((d.ha||"week"===c&&g("weekday"))&&!(g(c)||"day"===c&&g("weekday")))return G[d.fa](a,e),!1;"year"===c&&b.ga&&2===b.ga.length&&zc(a,[{years:100*e}])},h+1);return a}
function kc(a,b){var c={h:0,m:1,s:2},d;a=a||V;return"({t})?\\s*(\\d{1,2}(?:[,.]\\d+)?)(?:{h}([0-5]\\d(?:[,.]\\d+)?)?{m}(?::?([0-5]\\d(?:[,.]\\d+)?){s})?\\s*(?:({t})|(Z)|(?:([+-])(\\d{2,2})(?::?(\\d{2,2}))?)?)?|\\s*({t}))".replace(/{([a-z])}/g,function(e,f){var g=[],h="h"===f,m=h&&!b;if("t"===f)return a.get("ampm").join("|");h&&g.push(":");(d=a.timeSuffixes[c[f]])&&g.push(d+"\\s*");return 0===g.length?"":"(?:"+g.join("|")+")"+(m?"":"?")})}
function Y(a,b,c){var d,e;H(a[1])?d=wc(a)[0]:(d=a[0],e=a[1]);return Jc(d,e,b,c).ea}q(y,{create:function(){return Y(arguments)},past:function(){return Y(arguments,-1)},future:function(){return Y(arguments,1)},addLocale:function(a,b){return sc(a,b)},setLocale:function(a){var b=X(a,!1);Xb=b;a&&a!==b.code&&(b.code=a);return b},getLocale:function(a){return a?X(a,!1):Xb},addFormat:function(a,b,c){lc(X(c),a,b)}},!1);
q(y,{set:function(){return Bc(this,arguments)},setWeekday:function(a){return Dc(this,a)},setISOWeek:function(a){return Lc(this,a)},getISOWeek:function(){var a;a=uc(this);var b=S(a,"Day")||7;Cc(zc(a,[4-b+" days"]));return 1+P(G.daysSince(a,Ec(uc(a),"year"))/7)},beginningOfISOWeek:function(){var a=this.getDay();0===a?a=-6:1!==a&&(a=1);Dc(this,a);return Cc(this)},endOfISOWeek:function(){0!==this.getDay()&&Dc(this,7);return Fc(this,"day")},getUTCOffset:function(a){return ec(this,a)},setUTC:function(a){return vc(this,
a)},isUTC:function(){return!!this._utc||0===this.getTimezoneOffset()},advance:function(){return zc(this,arguments)},rewind:function(){var a=wc(arguments,!0);return Ac(this,a[0],a[1],-1)},isValid:function(){return!isNaN(this.getTime())},isAfter:function(a,b){return this.getTime()>Y([a]).getTime()-(b||0)},isBefore:function(a,b){return this.getTime()<Y([a]).getTime()+(b||0)},isBetween:function(a,b,c){var d=this.getTime();a=Y([a]).getTime();var e=Y([b]).getTime();b=Sa(a,e);a=Q(a,e);c=c||0;return b-c<
d&&a+c>d},isLeapYear:function(){return fc(this)},daysInMonth:function(){return gc(this)},format:function(a,b){return Sc(this,a,!1,b)},relative:function(a,b){I(a)&&(b=a,a=null);return Sc(this,a,!0,b)},is:function(a,b,c){return Tc(this,a,b,c)},reset:function(a){return Cc(this,a)},clone:function(){return uc(this)},iso:function(){return this.toISOString()},getWeekday:function(){return this.getDay()},getUTCWeekday:function(){return this.getUTCDay()}});
function Vc(a,b){function c(){return Ra(this*b)}function d(){return G[a.fa](Y(arguments),this)}function e(){return G[a.fa](Y(arguments),-this)}var f=a.name,g={};g[f]=c;g[f+"s"]=c;g[f+"Before"]=e;g[f+"sBefore"]=e;g[f+"Ago"]=e;g[f+"sAgo"]=e;g[f+"After"]=d;g[f+"sAfter"]=d;g[f+"FromNow"]=d;g[f+"sFromNow"]=d;q(B,g)}q(B,{duration:function(a){a=X(a);return mc(a,Mc(this),"duration")}});
V=Xb=G.addLocale("en",{plural:!0,timeMarker:"at",ampm:"am,pm",months:"January,February,March,April,May,June,July,August,September,October,November,December",weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",units:"millisecond:|s,second:|s,minute:|s,hour:|s,day:|s,week:|s,month:|s,year:|s",numbers:"one,two,three,four,five,six,seven,eight,nine,ten",articles:"a,an,the",tokens:"the,st|nd|rd|th,of","short":"{Month} {d}, {yyyy}","long":"{Month} {d}, {yyyy} {h}:{mm}{tt}",full:"{Weekday} {Month} {d}, {yyyy} {h}:{mm}:{ss}{tt}",
past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",modifiers:[{name:"sign",src:"ago|before",value:-1},{name:"sign",src:"from now|after|from|in|later",value:1},{name:"edge",src:"last day",value:-2},{name:"edge",src:"end",value:-1},{name:"edge",src:"first day|beginning",value:1},{name:"shift",src:"last",value:-1},{name:"shift",src:"the|this",value:0},{name:"shift",src:"next",value:1}],dateParse:["{month} {year}","{shift} {unit=5-7}","{0?} {date}{1}","{0?} {edge} of {shift?} {unit=4-7?} {month?} {year?}"],
timeParse:"{num} {unit} {sign};{sign} {num} {unit};{0} {num}{1} {day} of {month} {year?};{weekday?} {month} {date}{1?} {year?};{date} {month} {year};{date} {month};{shift} {weekday};{shift} week {weekday};{weekday} {2?} {shift} week;{num} {unit=4-5} {sign} {day};{0?} {date}{1} of {month};{0?}{month?} {date?}{1?} of {shift} {unit=6-7};{edge} of {day}".split(";")});bc=hc.concat().reverse();ac=hc.concat();ac.splice(2,1);
Fa(y,hc,function(a,b,c){function d(a){a/=g;var c=a%1,d=b.error||0.999;c&&Oa(c%1)>d&&(a=Ra(a));return 0>a?Qa(a):P(a)}var e=b.name,f=nc(e),g=b.ca(),h,m;b.fa="add"+f+"s";h=function(a,b){return d(this.getTime()-Y([a,b]).getTime())};m=function(a,b){return d(Y([a,b]).getTime()-this.getTime())};a[e+"sAgo"]=m;a[e+"sUntil"]=m;a[e+"sSince"]=h;a[e+"sFromNow"]=h;a[b.fa]=function(a,b){var c={};c[e]=a;return zc(this,[c,b])};Vc(b,g);3>c&&["Last","This","Next"].forEach(function(b){a["is"+b+f]=function(){return Uc(this,
b+" "+e,"en")}});4>c&&(a["beginningOf"+f]=function(){return Ec(this,e)},a["endOf"+f]=function(){return Fc(this,e)})});V.ba("([+-])?(\\d{4,4})[-.\\/]?{full_month}[-.]?(\\d{1,2})?",!0,["year_sign","year","month","date"],!1,!0);V.ba("(\\d{1,2})[-.\\/]{full_month}(?:[-.\\/](\\d{2,4}))?",!0,["date","month","year"],!0);V.ba("{full_month}[-.](\\d{4,4})",!1,["month","year"]);V.ba("\\/Date\\((\\d+(?:[+-]\\d{4,4})?)\\)\\/",!1,["timestamp"]);V.ba(kc(V),!1,Yb);cc=V.compiledFormats.slice(0,7).reverse();
V.compiledFormats=V.compiledFormats.slice(7).concat(cc);Qc("f",function(a){return S(a,"Milliseconds")},!0);Qc("s",function(a){return S(a,"Seconds")});Qc("m",function(a){return S(a,"Minutes")});Qc("h",function(a){return S(a,"Hours")%12||12});Qc("H",function(a){return S(a,"Hours")});Qc("d",function(a){return S(a,"Date")});Qc("M",function(a){return S(a,"Month")+1});
(function(){function a(a,c){var d=S(a,"Hours");return X(c).get("ampm")[P(d/12)]||""}Pc("t",a,1);Pc("tt",a);Pc("T",a,1,1);Pc("TT",a,null,2)})();(function(){function a(a,c){var d=S(a,"Day");return X(c).weekdays[d]}Pc("dow",a,3);Pc("Dow",a,3,1);Pc("weekday",a);Pc("Weekday",a,null,1)})();Oc("mon",0,3);Oc("month",0);Oc("month2",1);Oc("month3",2);W.ms=W.f;W.milliseconds=W.f;W.seconds=W.s;W.minutes=W.m;W.hours=W.h;W["24hr"]=W.H;W["12hr"]=W.h;W.date=W.d;W.day=W.d;W.year=W.yyyy;
Fa(y,"short,long,full",function(a,b){a[b]=function(a){return Sc(this,b,!1,a)}});"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07".split("").forEach(function(a,b){9<b&&(b=Pa(10,b-9));Zb[a]=b});Ma(Zb,Va);$b=x("([\u671f\u9031\u5468])?([\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341\u767e\u5343\u4e07"+Ua+"]+)(?!\u6628)","g");
Fa(y,"today yesterday tomorrow weekday weekend future past".split(" ").concat(V.weekdays.slice(0,7)).concat(V.months.slice(0,12)),function(a,b){a["is"+nc(b)]=function(a){return Tc(this,b,0,a)}});q(y,{utc:{create:function(){return Y(arguments,0,!0)},past:function(){return Y(arguments,-1,!0)},future:function(){return Y(arguments,1,!0)}}},!1);
q(y,{RFC1123:"{Dow}, {dd} {Mon} {yyyy} {HH}:{mm}:{ss} {tz}",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}"},!1);
var Wc=/(?:from)?\s*(.+)\s+(?:to|until)\s+(.+)$/i,Xc=x("(\\d+)?\\s*(year|month|week|day|hour|minute|(?:milli)?second)s?","i"),Yc=x("(?:for)?\\s*((?:\\d+)?\\s*(?:year|month|week|day|hour|minute|(?:milli)?second))s?\\s*(?:starting)?\\s*at\\s*(.+)","i"),Zc=x("(.+)\\s*for\\s*((?:\\d+)?\\s*(?:year|month|week|day|hour|minute|(?:milli)?second))s?","i");function Range(a,b){this.start=$c(a);this.end=$c(b)}function ad(a){return I(a)?a.charCodeAt(0):a}
function bd(a){return null==a?a:Ca(a)?a.getTime():a.valueOf()}function cd(a){a=a.toString().split(".");return a[1]?a[1].length:0}function dd(a){return null==a?new y:new y(a)}function $c(a){return Ca(a)?new y(a.getTime()):bd(a)}function ed(a){var b=bd(a);return(!!b||0===b)&&-Infinity!==a&&Infinity!==a}
function fd(a){var b;if(H(a))return[a,"Milliseconds"];b=a.match(Xc);a=parseInt(b[1])||1;b=b[2].slice(0,1).toUpperCase()+b[2].slice(1).toLowerCase();b.match(/hour|minute|second/i)?b+="s":"Year"===b?b="FullYear":"Day"===b&&(b="Date");return[a,b]}function gd(a,b,c){var d=S(a,c);a=new y(a.getTime());cb(a,c,d+b);return a}Range.prototype.toString=function(){return this.isValid()?this.start+".."+this.end:"Invalid Range"};
q(Range,{isValid:function(){return ed(this.start)&&ed(this.end)&&typeof this.start===typeof this.end},span:function(){return this.isValid()?Oa(ad(this.end)-ad(this.start))+1:NaN},contains:function(a){return null==a?!1:a.start&&a.end?a.start>=this.start&&a.start<=this.end&&a.end>=this.start&&a.end<=this.end:a>=this.start&&a<=this.end},every:function(a,b){var c,d,e,f=this.start,g=this.end,h=g<f,m=f,p=0,r=[];if(!this.isValid())return[];K(a)&&(b=a,a=null);a=a||1;H(f)?(d=Q(cd(f),cd(a)),c=function(){return Ta(m+
a,d)}):I(f)?c=function(){return z.fromCharCode(m.charCodeAt(0)+a)}:Ca(f)&&(c=fd(a),a=c[0],e=c[1],c=function(){return gd(m,a,e)});for(h&&0<a&&(a*=-1);h?m>=g:m<=g;)r.push(m),b&&b(m,p),m=c(),p++;return r},union:function(a){return new Range(this.start<a.start?this.start:a.start,this.end>a.end?this.end:a.end)},intersect:function(a){return a.start>this.end||a.end<this.start?new Range(NaN,NaN):new Range(this.start>a.start?this.start:a.start,this.end<a.end?this.end:a.end)},clone:function(){return new Range(this.start,
this.end)},clamp:function(a){var b=this.start,c=this.end,d=c<b?c:b,b=b>c?b:c;return $c(a<d?d:a>b?b:a)}});function hd(a,b){return new Range(a,b)}function id(a,b){if(G.create){if(1===arguments.length&&I(a)){var c;var d=a,e,f,g,h;if(e=d.match(Wc))c=id(e[1],e[2]);else{if(e=d.match(Yc))g=e[1],f=e[2];if(e=d.match(Zc))f=e[1],g=e[2];f&&g&&(c=G.create(f),d=fd(g),h=gd(c,d[0],d[1]));c=id(c,h)}return c}a=G.create(a);b=G.create(b)}else a=dd(a),b=dd(b);return new Range(a,b)}q(B,{range:hd},!1);q(z,{range:hd},!1);
q(y,{range:id},!1);q(B,{upto:function(a,b,c){return(new Range(this,a)).every(c,b)},clamp:function(a,b){return(new Range(a,b)).clamp(this)},cap:function(a){return(new Range(void 0,a)).clamp(this)}});la(B,"downto","upto");q(w,{create:function(a){return a.every()}},!1,function(a){return a instanceof Range});
function jd(a,b,c,d,e){Infinity!==b&&(a.timers||(a.timers=[]),H(b)||(b=1),a.ja=!1,a.timers.push(setTimeout(function(){a.ja||c.apply(d,e||[])},b)))}
function kd(a){var b=a.timers,c;if(J(b))for(;c=b.shift();)clearTimeout(c);a.ja=!0;return a}function ld(a,b,c,d){function e(){f.length<d-(g&&c?1:0)&&f.push([this,arguments]);g||(g=!0,c?h():jd(e,m,h));return r}var f=[],g=!1,h,m,p,r;b=b||1;d=d||Infinity;m=Qa(b);p=Ra(m/b)||1;h=function(){var b=f.length,c;if(0!=b){for(c=Q(b-p,0);b>c;)r=oa.prototype.apply.apply(a,f.shift()),b--;jd(e,m,function(){g=!1;h()})}};return e}
q(oa,{lazy:function(a,b,c){return ld(this,a,b,c)},throttle:function(a){return ld(this,a,!0,1)},debounce:function(a){function b(){kd(b);jd(b,a,c,this,arguments)}var c=this;return b},delay:function(a){var b=M(arguments,null,1);jd(this,a,this,this,b);return this},every:function(a){function b(){c.apply(c,d);jd(c,a,b)}var c=this,d=arguments,d=1<d.length?M(d,null,1):[];jd(c,a,b);return c},cancel:function(){return kd(this)},after:function(a){var b=this,c=0,d=[];if(!H(a))a=1;else if(0===a)return b.call(),
b;return function(){var e;d.push(M(arguments));c++;if(c==a)return e=b.call(this,d),c=0,d=[],e}},once:function(){return ld(this,Infinity,!0,1)},fill:function(){var a=this,b=M(arguments);return function(){var c=M(arguments);b.forEach(function(a,b){(null!=a||b>=c.length)&&c.splice(b,0,a)});return a.apply(this,c)}}});
function md(a,b,c,d,e,f){var g=a.toFixed(20),h=g.search(/\./),g=g.search(/[1-9]/),h=h-g;0<h&&(h-=1);e=Q(Sa(P(h/3),!1===e?c.length:e),-d);d=c.charAt(e+d-1);-9>h&&(e=-3,b=Oa(h)-9,d=c.slice(0,1));c=f?Pa(2,10*e):Pa(10,3*e);return nd(Ta(a/c,b||0))+d.trim()}
function nd(a,b){var c,d,e,f="",g;g=sa.thousands;g=I(g)?g:",";var h;d=sa.decimal;h=I(d)?d:".";c=(H(b)?Ta(a,b||0).toFixed(Q(b,0)):a.toString()).replace(/^-/,"").split(".");d=c[0];e=c[1];for(c=d.length;0<c;c-=3)c<d.length&&(f=g+f),f=d.slice(Q(0,c-3),c)+f;e&&(f+=h+Ya("0",(b||0)-e.length)+e);return(0>a?"-":"")+f}q(B,{random:function(a,b){var c,d;1==arguments.length&&(b=a,a=0);c=Sa(a||0,O(b)?1:b);d=Q(a||0,O(b)?1:b)+1;return P(E.random()*(d-c)+c)}},!1);q(B,{isNaN:function(a){return a!==a}},!1,!0);
q(B,{log:function(a){return E.log(this)/(a?E.log(a):1)},abbr:function(a){return md(this,a,"kmbt",0,4)},metric:function(a,b){return md(this,a,"n\u03bcm kMGTPE",4,O(b)?1:b)},bytes:function(a,b,c){return md(this,a,"kMGTPE",0,O(b)?4:b,!0!==c)+"B"},isInteger:function(){return 0===this%1},isOdd:function(){return 0===this%1&&0!==this%2},isEven:function(){return 0===this%2},isMultipleOf:function(a){return 0===this%a},format:function(a){return nd(this,a)},hex:function(a){return R(this,a||1,!1,16)},times:function(a){if(a)for(var b=
0;b<this;b++)a.call(this,b);return+this},chr:function(){return z.fromCharCode(this)},pad:function(a,b,c){return R(this,a,b,c)},ordinalize:function(){var a=Oa(this);return this+$a(parseInt(a.toString().slice(-2)))},toNumber:function(){return parseFloat(this,10)}});(function(){function a(a){return function(c){return c?Ta(this,c,a):a(this)}}q(B,{ceil:a(Qa),round:a(Ra),floor:a(P)});Fa(B,"abs,pow,sin,asin,cos,acos,tan,atan,exp,pow,sqrt",function(a,c){a[c]=function(a,b){return E[c](this.valueOf(),a,b)}})})();
var od=["isObject","isNaN"],pd="equals keys values select reject each map size merge clone watch tap has toQueryString".split(" ");function qd(a,b,c,d){var e,f,g;(f=b.match(/^(.+?)(\[.*\])$/))?(g=f[1],b=f[2].replace(/^\[|\]$/g,"").split("]["),b.forEach(function(b){e=!b||b.match(/^\d+$/);!g&&J(a)&&(g=a.length);v(a,g)||(a[g]=e?[]:{});a=a[g];g=b}),!g&&e&&(g=a.length.toString()),qd(a,g,c,d)):a[b]=d&&"true"===c?!0:d&&"false"===c?!1:c}
function rd(a,b){var c;return J(b)||L(b)&&b.toString===ta?(c=[],s(b,function(b,e){a&&(b=a+"["+b+"]");c.push(rd(b,e))}),c.join("&")):a?sd(a)+"="+(Ca(b)?b.getTime():sd(b)):""}function sd(a){return a||!1===a||0===a?encodeURIComponent(a).replace(/%20/g,"+"):""}function td(a,b,c){var d,e=a instanceof Hash?new Hash:{};s(a,function(a,g){d=!1;Ia(b,function(b){(Da(b)?b.test(a):L(b)?b[a]===g:a===z(b))&&(d=!0)},1);d===c&&(e[a]=g)});return e}
var ud=n.getOwnPropertyNames,wd=ea?n.defineProperty:vd,yd=ea?n.getOwnPropertyDescriptor:xd,Ad=ea?zd:s;function zd(a,b){ud(a).forEach(b)}function xd(a,b){return a.hasOwnProperty(b)?{value:a[b]}:void 0}function vd(a,b,c){a[b]=c.value}
function Bd(a,b,c,d){if(!L(b))return a;Ad(b,function(e){var f,g=yd(b,e);f=yd(a,e);var h=g&&g.value,m=f&&f.value,p=L(h),p=c&&p;if(N(f)&&null!=f.value){if(!p&&!1===d)return;K(d)&&(f=d.call(b,e,m,h),N(f)&&(g.value=f,p=!1))}p&&(Ca(h)?h=new y(h.getTime()):Da(h)?h=new x(h.source,ab(h)):(L(m)||(m=J(h)?[]:{}),h=Bd(m,h,c,d)),g.value=h);wd(a,e,g)});return a}function Cd(){var a=n.prototype;od.concat(pd).forEach(function(b){a[b]&&delete a[b]})}
q(n,{watch:function(a,b,c){var d,e;if(!ea||(e=yd(a,b))&&(!e.configurable||e.get||e.set))return!1;d=a[b];wd(a,b,{configurable:!0,enumerable:!e||e.enumerable,get:function(){return d},set:function(e){d=c.call(a,b,d,e)}});return!0},unwatch:function(a,b){if(!ea)return!1;yd(a,b).configurable&&wd(a,b,{configurable:!0,value:3})}},!1,!0,!0);q(n,{keys:function(a,b){var c=n.keys(a);c.forEach(function(c){b.call(a,c,a[c])});return c}},!1,function(){return 1<arguments.length});
q(n,{isArguments:function(a){return Ga(a)},isObject:function(a){return Ka(a)},isNaN:function(a){return H(a)&&a.valueOf()!==a.valueOf()},equal:function(a,b){return eb(a,b)},extended:function(a){return new Hash(a)},merge:function(a,b,c,d){return Bd(a,b,c,d)},values:function(a,b){var c=[];s(a,function(d,e){c.push(e);b&&b.call(a,e)});return c},clone:function(a,b){var c;if(!L(a))return a;c=ta.call(a);if(Ca(a,c)&&G.clone)return G.clone(a);if(Ca(a,c)||Da(a,c))return new a.constructor(a);if(a instanceof Hash)c=
new Hash;else if(J(a,c))c=[];else if(Ka(a,c))c={};else throw new TypeError("Clone must be a basic data type.");return Bd(c,a,b)},fromQueryString:function(a,b){var c=new Hash;a=a&&a.toString?a.toString():"";a.replace(/^.*?\?/,"").split("&").forEach(function(a){a=a.split("=");2===a.length&&qd(c,a[0],decodeURIComponent(a[1]),b)});return c},toQueryString:function(a,b){return rd(b,a)},tap:function(a,b){var c=b;K(b)||(c=function(){if(b)a[b]()});c.call(a,a);return a},has:function(a,b){return v(a,b)},select:function(a){return td(a,
arguments,!0)},reject:function(a){return td(a,arguments,!1)},map:function(a,b){var c={},d,e;for(d in a)v(a,d)&&(e=a[d],c[d]=T(e,b,a,[d,e,a]));return c},each:function(a,b){Ja(b);s(a,b);return a},size:function(a){return n.keys(Na(a)).length}},!1);q(Sugar,{extendObject:function(a){!1!==a?ib(od.concat(pd),n):Cd();return!0}},!1);Fa(n,fa,function(a,b){var c="is"+b;od.push(c);a[c]=wa[b]},!1);ib(pd,Hash);
q(x,{escape:function(a){return bb(a)}},!1);
q(x,{getFlags:function(){return ab(this)},setFlags:function(a){return x(this.source,a)},addFlag:function(a){return x(this.source,ab(this,a))},removeFlag:function(a){return x(this.source,ab(this).replace(a,""))}});
var Dd=/&#(x)?([\w\d]{0,5});/i,Ed="area base br col command embed hr img input keygen link meta param source track wbr".split(" ");function Fd(a){a=+a;if(0>a||Infinity===a)throw new RangeError("Invalid number");return a}
function Gd(a,b){return Ya(N(b)?b:" ",a)}function Hd(a,b,c,d,e){var f;if(a.length<=b)return a.toString();d=O(d)?"...":d;switch(c){case "left":return a=e?Id(a,b,!0):a.slice(a.length-b),d+a;case "middle":return c=Qa(b/2),f=P(b/2),b=e?Id(a,c):a.slice(0,c),a=e?Id(a,f,!0):a.slice(a.length-f),b+d+a;default:return b=e?Id(a,b):a.slice(0,b),b+d}}
function Jd(a,b,c){var d,e,f;K(b)?(c=b,b=/[\s\S]/g):b?I(b)?b=x(bb(b),"gi"):Da(b)&&(b=x(b.source,ab(b,"g"))):b=/[\s\S]/g;f=a.match(b)||[];if(c)for(b=0,d=f.length;b<d;b++)if(e=c.call(a,f[b],b,f),!1===e){f.length=b+1;break}else N(e)&&(f[b]=e);return f}function Kd(a,b){return Jd(a.trim(),/\S+/g,b)}function Ld(a,b){var c=[],d,e;d=0;for(e=a.length;d<e;d++){var f=a.charCodeAt(d);c.push(f);b&&b.call(a,f,d)}return c}function Md(a,b){var c="";b=b||0;Ld(a,function(a){c+=z.fromCharCode(a+b)});return c}
function Nd(a){var b=ra.Inflector;return a.replace(/[-\s]+/g,"_").replace(b&&b.ma,function(a,b){return(0<b?"_":"")+a.toLowerCase()}).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase()}function Od(a,b){var c;return a.toLowerCase().replace(b?/[^']/g:/^\S/,function(a){var b=a.toUpperCase(),f;f=c?a:b;c=b!==a;return f})}function Pd(a){return a.split("").reverse().join("")}function Qd(a,b){O(b)&&(b=1);return a.substr(0,b)}
function Z(a,b){var c={};Ia(b,function(a,b){L(a)?Ma(c,a):c[b+1]=a});return a.replace(/\{([^{]+?)\}/g,function(a,b){return v(c,b)?c[b]:a})}function Id(a,b,c){if(c)return Pd(Id(Pd(a),b));c=x("(?=["+Xa()+"])");var d=0;return a.split(c).filter(function(a){d+=a.length;return d<=b}).join("")}function Rd(a){return a.replace(Dd,function(a,c,d){return z.fromCharCode(parseInt(d,c?16:10))})}
function Sd(a,b,c){var d=b.length-1,e=b[d],f;K(e)&&(f=e,b.length=d);b=Ia(b).map(function(a){return bb(a)}).join("|");b=x("<(\\/)?("+(b||"[^\\s>]+")+")\\s*([^<>]*?)\\s*(\\/)?\\s*>","gi");return Td(a,b,c,f)}
function Td(a,b,c,d,e){function f(f,g,k,p){var r=a.slice(m,f);d?(g=d.call(e,g,r,k,e),N(g)?r=g:c||(r="")):c||(r="");h+=Td(r,b,c,d,e);m=f+(p||0)}var g,h="",m=0,p,r,C=0;e=e||a;for(b=x(b.source,"gi");g=b.exec(a);){var A=g[2],u=g[3],k=!!g[1],D=!!g[4],qa=g[0].length,D=!k&&!D&&-1===Ed.indexOf(A.toLowerCase()),ka=A===p;p||(h+=a.slice(m,g.index),m=g.index);D?p?ka&&C++:(p=A,r=u,C++,m+=qa):k&&ka?(C--,0===C&&(f(g.index,p,r,qa),r=p=null)):p||f(g.index,A,u,qa)}p&&f(a.length,p,r);return h+=a.slice(m)}
function Ud(a,b,c){I(b)&&(b=a.indexOf(b),-1===b&&(b=c?a.length:0));return b}var Vd,Wd;function Xd(a){if(null==a)throw new TypeError;return z(a)}function Yd(a){if(Da(a))throw new TypeError;return z(a)}q(z,{contains:function(a){return-1<Xd(this).indexOf(a,arguments[1])},repeat:function(a){a=Fd(a);return Ya(this,a)}},!0,!0);
q(z,{escapeURL:function(a){return a?encodeURIComponent(this):encodeURI(this)},unescapeURL:function(a){return a?decodeURI(this):decodeURIComponent(this)},escapeHTML:function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},unescapeHTML:function(){return Rd(this).replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")},encodeBase64:function(){return Vd(this)},
decodeBase64:function(){return Wd(this)},each:function(a,b){return Jd(this,a,b)},map:function(a,b){var c=this.toString();if(K(a)){var d=a;a=function(a,f){return d.call(b,a,f,c)}}return c.split("").map(a,b).join("")},shift:function(a){return Md(this,a)},codes:function(a){return Ld(this,a)},chars:function(a){return Jd(this,a)},words:function(a){return Kd(this,a)},lines:function(a){return Jd(this.trim(),/^.*$/gm,a)},paragraphs:function(a){var b=this.trim().split(/[\r\n]{2,}/);return b=b.map(function(b){if(a)var d=
a.call(b);return d?d:b})},isBlank:function(){return 0===this.trim().length},add:function(a,b){b=O(b)?this.length:b;return this.slice(0,b)+a+this.slice(b)},remove:function(a){return this.replace(a,"")},reverse:function(){return Pd(this)},compact:function(){return this.trim().replace(/([\r\n\s\u3000])+/g,function(a,b){return"\u3000"===b?b:" "})},at:function(){return gb(this,arguments,!0)},from:function(a){return this.slice(Ud(this,a,!0))},to:function(a){O(a)&&(a=this.length);return this.slice(0,Ud(this,
a))},dasherize:function(){return Nd(this).replace(/_/g,"-")},underscore:function(){return Nd(this)},camelize:function(a){return Nd(this).replace(/(^|_)([^_]+)/g,function(b,c,d,e){b=(b=ra.Inflector)&&b.acronyms[d];b=I(b)?b:void 0;e=!1!==a||0<e;return b?e?b:b.toLowerCase():e?Od(d):d})},spacify:function(){return Nd(this).replace(/_/g," ")},stripTags:function(){return Sd(this,arguments,!0)},removeTags:function(){return Sd(this,arguments,!1)},truncate:function(a,b,c){return Hd(this,a,b,c)},truncateOnWord:function(a,
b,c){return Hd(this,a,b,c,!0)},pad:function(a,b){var c,d;a=Fd(a);c=Q(0,a-this.length)/2;d=P(c);c=Qa(c);return Gd(d,b)+this+Gd(c,b)},padLeft:function(a,b){a=Fd(a);return Gd(Q(0,a-this.length),b)+this},padRight:function(a,b){a=Fd(a);return this+Gd(Q(0,a-this.length),b)},first:function(a){return Qd(this,a)},last:function(a){O(a)&&(a=1);return this.substr(0>this.length-a?0:this.length-a)},toNumber:function(a){return Za(this,a)},capitalize:function(a){return Od(this,a)},assign:function(){return Z(this,
arguments)},trimLeft:function(){return this.replace(x("^["+Xa()+"]+"),"")},trimRight:function(){return this.replace(x("["+Xa()+"]+$"),"")}});la(z,"insert","add");
(function(){var a=!0;try{"".startsWith(/./)}catch(b){a=!1}q(z,{startsWith:function(a){var b,e,f,g;f=arguments[1];b=Xd(this);a=Yd(a);e=B(f)||0;f=b.length;e=Sa(Q(e,0),f);g=a.length;return g+e>f?!1:b.substr(e,g)===a?!0:!1},endsWith:function(a){var b,e,f,g=arguments[1];b=Xd(this);a=Yd(a);f=e=b.length;N(g)&&(f=B(g)||0);e=Sa(Q(f,0),e);f=a.length;e-=f;return 0>e?!1:b.substr(e,f)===a?!0:!1}},!0,!0,a)})();
(function(a){function b(a){return function(b){try{return a(b)}catch(c){return""}}}var c,d;if("undefined"!==typeof Buffer)Vd=function(a){return(new Buffer(a)).toString("base64")},Wd=function(a){return(new Buffer(a,"base64")).toString("utf8")};else{if("undefined"!==typeof btoa)c=b(btoa),d=b(atob);else{var e=/[^A-Za-z0-9\+\/\=]/g;c=function(b){var c="",d,e,p,r,C,A,u=0;do d=b.charCodeAt(u++),e=b.charCodeAt(u++),p=b.charCodeAt(u++),r=d>>2,d=(d&3)<<4|e>>4,C=(e&15)<<2|p>>6,A=p&63,isNaN(e)?C=A=64:isNaN(p)&&
(A=64),c=c+a.charAt(r)+a.charAt(d)+a.charAt(C)+a.charAt(A);while(u<b.length);return c};d=function(b){var c="",d,m,p,r,C,A=0;if(b.match(e))return"";b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");do d=a.indexOf(b.charAt(A++)),m=a.indexOf(b.charAt(A++)),r=a.indexOf(b.charAt(A++)),C=a.indexOf(b.charAt(A++)),d=d<<2|m>>4,m=(m&15)<<4|r>>2,p=(r&3)<<6|C,c+=z.fromCharCode(d),64!=r&&(c+=z.fromCharCode(m)),64!=C&&(c+=z.fromCharCode(p));while(A<b.length);return c}}Vd=function(a){return c(unescape(encodeURIComponent(a)))};
Wd=function(a){return decodeURIComponent(escape(d(a)))}}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");
var Zd=[],$d=[],ae=[],be=[],ce={},de,$,ee={},fe,ge;function he(a){var b=ae;a=b.indexOf(a);-1<a&&b.splice(a,1)}function ie(a,b,c){I(b)&&he(b);he(c);a.unshift({ia:b,la:c})}function je(a,b){return a==b||"all"==a||!a}function ke(a){return ae.some(function(b){return(new x("\\b"+b+"$","i")).test(a)})}
function le(a,b){a=I(a)?a.toString():"";return 0===a.trim().length||ke(a)?a:me(a,b?Zd:$d)}function me(a,b){s(b,function(b,d){if(a.match(d.ia))return a=a.replace(d.ia,d.la),!1});return a}function ne(a){return a.replace(/^\W*[a-z]/,function(a){return a.toUpperCase()})}function oe(a){a=me(a,be);var b;a=a.replace(/_id$/g,"");a=a.replace(/(_)?([a-z\d]*)/gi,function(a,d,e){a=e.toLowerCase();b=v(ce,a)?ce[a]:null;return(d?" ":"")+(b||a)});return ne(a)}
function pe(a){return a.replace(fe,function(a){return ee[a]})}
$={acronym:function(a){ce[a.toLowerCase()]=a;a=n.keys(ce).map(function(a){return ce[a]});$.ma=x(a.join("|"),"g")},plural:function(a,b){ie(Zd,a,b)},singular:function(a,b){ie($d,a,b)},irregular:function(a,b){var c=Qd(a),d=a.slice(Ud(a,1,!0)),e=Qd(b),f=b.slice(Ud(b,1,!0)),g=e.toUpperCase(),h=e.toLowerCase(),m=c.toUpperCase(),p=c.toLowerCase();he(a);he(b);m==g?($.plural(new x(Z("({1}){2}$",[c,d]),"i"),"$1"+f),$.plural(new x(Z("({1}){2}$",[e,f]),"i"),"$1"+f),$.singular(new x(Z("({1}){2}$",[e,f]),"i"),
"$1"+d)):($.plural(new x(Z("{1}{2}$",[m,d])),g+f),$.plural(new x(Z("{1}{2}$",[p,d])),h+f),$.plural(new x(Z("{1}{2}$",[g,f])),g+f),$.plural(new x(Z("{1}{2}$",[h,f])),h+f),$.singular(new x(Z("{1}{2}$",[g,f])),m+d),$.singular(new x(Z("{1}{2}$",[h,f])),p+d))},uncountable:function(a){var b=w.isArray(a)?a:M(arguments);ae=ae.concat(b)},human:function(a,b){be.unshift({ia:a,la:b})},clear:function(a){je(a,"singulars")&&($d=[]);je(a,"plurals")&&(Zd=[]);je(a,"uncountables")&&(ae=[]);je(a,"humans")&&(be=[]);je(a,
"acronyms")&&(ce={})}};de="and or nor a an the so but to of at by from into on onto off out in over with for".split(" ");$.plural(/$/,"s");$.plural(/s$/gi,"s");$.plural(/(ax|test)is$/gi,"$1es");$.plural(/(octop|fung|foc|radi|alumn|cact)(i|us)$/gi,"$1i");$.plural(/(census|alias|status|fetus|genius|virus)$/gi,"$1es");$.plural(/(bu)s$/gi,"$1ses");$.plural(/(buffal|tomat)o$/gi,"$1oes");$.plural(/([ti])um$/gi,"$1a");$.plural(/([ti])a$/gi,"$1a");$.plural(/sis$/gi,"ses");$.plural(/f+e?$/gi,"ves");
$.plural(/(cuff|roof)$/gi,"$1s");$.plural(/([ht]ive)$/gi,"$1s");$.plural(/([^aeiouy]o)$/gi,"$1es");$.plural(/([^aeiouy]|qu)y$/gi,"$1ies");$.plural(/(x|ch|ss|sh)$/gi,"$1es");$.plural(/(tr|vert)(?:ix|ex)$/gi,"$1ices");$.plural(/([ml])ouse$/gi,"$1ice");$.plural(/([ml])ice$/gi,"$1ice");$.plural(/^(ox)$/gi,"$1en");$.plural(/^(oxen)$/gi,"$1");$.plural(/(quiz)$/gi,"$1zes");$.plural(/(phot|cant|hom|zer|pian|portic|pr|quart|kimon)o$/gi,"$1os");$.plural(/(craft)$/gi,"$1");$.plural(/([ft])[eo]{2}(th?)$/gi,"$1ee$2");
$.singular(/s$/gi,"");$.singular(/([pst][aiu]s)$/gi,"$1");$.singular(/([aeiouy])ss$/gi,"$1ss");$.singular(/(n)ews$/gi,"$1ews");$.singular(/([ti])a$/gi,"$1um");$.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/gi,"$1$2sis");$.singular(/(^analy)ses$/gi,"$1sis");$.singular(/(i)(f|ves)$/i,"$1fe");$.singular(/([aeolr]f?)(f|ves)$/i,"$1f");$.singular(/([ht]ive)s$/gi,"$1");$.singular(/([^aeiouy]|qu)ies$/gi,"$1y");$.singular(/(s)eries$/gi,"$1eries");$.singular(/(m)ovies$/gi,"$1ovie");
$.singular(/(x|ch|ss|sh)es$/gi,"$1");$.singular(/([ml])(ous|ic)e$/gi,"$1ouse");$.singular(/(bus)(es)?$/gi,"$1");$.singular(/(o)es$/gi,"$1");$.singular(/(shoe)s?$/gi,"$1");$.singular(/(cris|ax|test)[ie]s$/gi,"$1is");$.singular(/(octop|fung|foc|radi|alumn|cact)(i|us)$/gi,"$1us");$.singular(/(census|alias|status|fetus|genius|virus)(es)?$/gi,"$1");$.singular(/^(ox)(en)?/gi,"$1");$.singular(/(vert)(ex|ices)$/gi,"$1ex");$.singular(/tr(ix|ices)$/gi,"trix");$.singular(/(quiz)(zes)?$/gi,"$1");
$.singular(/(database)s?$/gi,"$1");$.singular(/ee(th?)$/gi,"oo$1");$.irregular("person","people");$.irregular("man","men");$.irregular("deer","deer");$.irregular("human","humans");$.irregular("child","children");$.irregular("sex","sexes");$.irregular("move","moves");$.irregular("save","saves");$.irregular("goose","geese");$.irregular("zombie","zombies");$.uncountable("equipment information rice money species series fish sheep jeans".split(" "));
ge={A:"A\u24b6\uff21\u00c0\u00c1\u00c2\u1ea6\u1ea4\u1eaa\u1ea8\u00c3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\u00c4\u01de\u1ea2\u00c5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f",B:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181",C:"C\u24b8\uff23\u0106\u0108\u010a\u010c\u00c7\u1e08\u0187\u023b\ua73e",D:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779",E:"E\u24ba\uff25\u00c8\u00c9\u00ca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\u00cb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e",
F:"F\u24bb\uff26\u1e1e\u0191\ua77b",G:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e",H:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d",I:"I\u24be\uff29\u00cc\u00cd\u00ce\u0128\u012a\u012c\u0130\u00cf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197",J:"J\u24bf\uff2a\u0134\u0248",K:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2",L:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780",
M:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c",N:"N\u24c3\uff2e\u01f8\u0143\u00d1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4",O:"O\u24c4\uff2f\u00d2\u00d3\u00d4\u1ed2\u1ed0\u1ed6\u1ed4\u00d5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\u00d6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\u00d8\u01fe\u0186\u019f\ua74a\ua74c",P:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754",Q:"Q\u24c6\uff31\ua756\ua758\u024a",R:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782",
S:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784",T:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786",U:"U\u24ca\uff35\u00d9\u00da\u00db\u0168\u1e78\u016a\u1e7a\u016c\u00dc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244",V:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245",W:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72",
X:"X\u24cd\uff38\u1e8a\u1e8c",Y:"Y\u24ce\uff39\u1ef2\u00dd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe",Z:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762",a:"a\u24d0\uff41\u1e9a\u00e0\u00e1\u00e2\u1ea7\u1ea5\u1eab\u1ea9\u00e3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\u00e4\u01df\u1ea3\u00e5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250",b:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253",c:"c\u24d2\uff43\u0107\u0109\u010b\u010d\u00e7\u1e09\u0188\u023c\ua73f\u2184",
d:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a",e:"e\u24d4\uff45\u00e8\u00e9\u00ea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\u00eb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd",f:"f\u24d5\uff46\u1e1f\u0192\ua77c",g:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f",h:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265",i:"i\u24d8\uff49\u00ec\u00ed\u00ee\u0129\u012b\u012d\u00ef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131",
j:"j\u24d9\uff4a\u0135\u01f0\u0249",k:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3",l:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747",m:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f",n:"n\u24dd\uff4e\u01f9\u0144\u00f1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5",o:"o\u24de\uff4f\u00f2\u00f3\u00f4\u1ed3\u1ed1\u1ed7\u1ed5\u00f5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\u00f6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\u00f8\u01ff\u0254\ua74b\ua74d\u0275",
p:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755",q:"q\u24e0\uff51\u024b\ua757\ua759",r:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783",s:"s\u24e2\uff53\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b",t:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787",u:"u\u24e4\uff55\u00f9\u00fa\u00fb\u0169\u1e79\u016b\u1e7b\u016d\u00fc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289",
v:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c",w:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73",x:"x\u24e7\uff58\u1e8b\u1e8d",y:"y\u24e8\uff59\u1ef3\u00fd\u0177\u1ef9\u0233\u1e8f\u00ff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff",z:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763",AA:"\ua732",AE:"\u00c6\u01fc\u01e2",AO:"\ua734",AU:"\ua736",AV:"\ua738\ua73a",AY:"\ua73c",DZ:"\u01f1\u01c4",Dz:"\u01f2\u01c5",LJ:"\u01c7",Lj:"\u01c8",NJ:"\u01ca",Nj:"\u01cb",OI:"\u01a2",
OO:"\ua74e",OU:"\u0222",TZ:"\ua728",VY:"\ua760",aa:"\ua733",ae:"\u00e6\u01fd\u01e3",ao:"\ua735",au:"\ua737",av:"\ua739\ua73b",ay:"\ua73d",dz:"\u01f3\u01c6",hv:"\u0195",lj:"\u01c9",nj:"\u01cc",oi:"\u01a3",ou:"\u0223",oo:"\ua74f",ss:"\u00df",tz:"\ua729",vy:"\ua761"};
q(z,{pluralize:function(){return le(this,!0)},singularize:function(){return le(this,!1)},humanize:function(){return oe(this)},titleize:function(){var a=/[.:;!]$/,b,c,d,e=oe(Nd(this).replace(/_/g," "));return Kd(e,function(e,g,h){b=a.test(e);d=0==g||g==h.length-1||b||c;c=b;return d||-1===de.indexOf(e)?ne(e):e}).join(" ")},parameterize:function(a){var b=pe(this);void 0===a&&(a="-");b=b.replace(/[^a-z0-9\-_]+/gi,a);a&&(b=b.replace(new x(Z("^{sep}+|{sep}+$|({sep}){sep}+",[{sep:bb(a)}]),"g"),"$1"));return encodeURI(b.toLowerCase())},
toAscii:function(){return pe(this)}});ra.Inflector=$;ra.Inflector.acronyms=ce;(function(){var a,b,c="";for(a in ge)ge.hasOwnProperty(a)&&(b=ge[a],b.split("").forEach(function(b){ee[b]=a}),c+=b);fe=RegExp("["+c+"]","g")})();
var qe=[{type:"a",start:65,end:90},{type:"a",start:97,end:122},{type:"n",start:48,end:57},{type:"p",start:33,end:47},{type:"p",start:58,end:64},{type:"p",start:91,end:96},{type:"p",start:123,end:126}],re,se=/[\u0020-\u00A5]|[\uFF61-\uFF9F][\uff9e\uff9f]?/g,te=/[\u2212\u3000-\u301C\u301A-\u30FC\uFF01-\uFF60\uFFE0-\uFFE6]/g,ue=/[\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30cf\u30d2\u30d5\u30d8\u30db]/,ve=/[\u30cf\u30d2\u30d5\u30d8\u30db\u30f2]/;
function we(a,b,c,d){re||xe();var e=M(b).join(""),f=re[d],e=e.replace(/all/,"").replace(/(\w)lphabet|umbers?|atakana|paces?|unctuation/g,"$1");return a.replace(c,function(a){var b=f[a],c;if(b){if(""===e&&b.all)return b.all;for(var d=0,r=e.length;d<r;d++)if(c=b[e.charAt(d)])return c}return a})}
function xe(){var a;re={zenkaku:{},hankaku:{}};qe.forEach(function(a){La(a.end-a.start+1,function(c){c+=a.start;ye(a.type,z.fromCharCode(c),z.fromCharCode(c+65248))})});Jd("\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",function(b,
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);ye("k",a,b);b.match(ue)&&ye("k",a+"\uff9e",Md(b,1));b.match(ve)&&ye("k",a+"\uff9f",Md(b,2))});Jd("\u3002\u3001\u300c\u300d\uffe5\uffe0\uffe1",
function(a,c){ye("p","\uff61\uff64\uff62\uff63\u00a5\u00a2\u00a3".charAt(c),a)});ye("s"," ","\u3000");ye("k","\uff73\uff9e","\u30f4");ye("k","\uff66\uff9e","\u30fa");ze("hankaku","n","\u2212","-");ze("hankaku","n","\u30fc","-",!1);ze("zenkaku","n","-","\uff0d",!1)}function ye(a,b,c){ze("zenkaku",a,b,c);ze("hankaku",a,c,b)}function ze(a,b,c,d,e){var f=re[a][c]||{};!1!==e&&(f.all=d);f[b]=d;re[a][c]=f}function Ae(a,b){return we(a,b,se,"zenkaku")}
q(z,{hankaku:function(){return we(this,arguments,te,"hankaku")},zenkaku:function(){return Ae(this,arguments)},hiragana:function(a){var b=this;!1!==a&&(b=Ae(b,["k"]));return b.replace(/[\u30A1-\u30F6]/g,function(a){return Md(a,-96)})},katakana:function(){return this.replace(/[\u3041-\u3096]/g,function(a){return Md(a,96)})}});
Fa(z,[{$:["Arabic"],source:"\u0600-\u06ff"},{$:["Cyrillic"],source:"\u0400-\u04ff"},{$:["Devanagari"],source:"\u0900-\u097f"},{$:["Greek"],source:"\u0370-\u03ff"},{$:["Hangul"],source:"\uac00-\ud7af\u1100-\u11ff"},{$:["Han","Kanji"],source:"\u4e00-\u9fff\uf900-\ufaff"},{$:["Hebrew"],source:"\u0590-\u05ff"},{$:["Hiragana"],source:"\u3040-\u309f\u30fb-\u30fc"},{$:["Kana"],source:"\u3040-\u30ff\uff61-\uff9f"},{$:["Katakana"],source:"\u30a0-\u30ff\uff61-\uff9f"},{$:["Latin"],source:"\u0001-\u007f\u0080-\u00ff\u0100-\u017f\u0180-\u024f"},
{$:["Thai"],source:"\u0e00-\u0e7f"}],function(a,b){var c=x("^["+b.source+"\\s]+$"),d=x("["+b.source+"]");b.$.forEach(function(b){a["is"+b]=function(){return c.test(this.trim())};a["has"+b]=function(){return d.test(this.trim())}})});
Sugar.Date.addLocale("da",{plural:!0,months:"januar,februar,marts,april,maj,juni,juli,august,september,oktober,november,december",weekdays:"s\u00f8ndag|sondag,mandag,tirsdag,onsdag,torsdag,fredag,l\u00f8rdag|lordag",units:"millisekund:|er,sekund:|er,minut:|ter,tim:e|er,dag:|e,ug:e|er|en,m\u00e5ned:|er|en+maaned:|er|en,\u00e5r:||et+aar:||et",numbers:"en|et,to,tre,fire,fem,seks,syv,otte,ni,ti",tokens:"den,for",articles:"den","short":"d. {d}. {month} {yyyy}","long":"den {d}. {month} {yyyy} {H}:{mm}",
full:"{Weekday} den {d}. {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"forg\u00e5rs|i forg\u00e5rs|forgaars|i forgaars",value:-2},{name:"day",src:"i g\u00e5r|ig\u00e5r|i gaar|igaar",value:-1},{name:"day",src:"i dag|idag",value:0},{name:"day",src:"i morgen|imorgen",value:1},{name:"day",src:"over morgon|overmorgen|i over morgen|i overmorgen|iovermorgen",value:2},{name:"sign",src:"siden",value:-1},
{name:"sign",src:"om",value:1},{name:"shift",src:"i sidste|sidste",value:-1},{name:"shift",src:"denne",value:0},{name:"shift",src:"n\u00e6ste|naeste",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});
Sugar.Date.addLocale("de",{plural:!0,capitalizeUnit:!0,months:"Januar,Februar,M\u00e4rz|Marz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember",weekdays:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag",units:"Millisekunde:|n,Sekunde:|n,Minute:|n,Stunde:|n,Tag:|en,Woche:|n,Monat:|en,Jahr:|en",numbers:"ein:|e|er|en|em,zwei,drei,vier,fuenf,sechs,sieben,acht,neun,zehn",tokens:"der","short":"{d}. {Month} {yyyy}","long":"{d}. {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d}. {Month} {yyyy} {H}:{mm}:{ss}",
past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"um",ampm:"am,pm",modifiers:[{name:"day",src:"vorgestern",value:-2},{name:"day",src:"gestern",value:-1},{name:"day",src:"heute",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"\u00fcbermorgen|ubermorgen|uebermorgen",value:2},{name:"sign",src:"vor:|her",value:-1},{name:"sign",src:"in",value:1},{name:"shift",src:"letzte:|r|n|s",value:-1},{name:"shift",src:"n\u00e4chste:|r|n|s+nachste:|r|n|s+naechste:|r|n|s+kommende:n|r",
value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}","{shift} {weekday}"]});
Sugar.Date.addLocale("es",{plural:!0,months:"enero,febrero,marzo,abril,mayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre",weekdays:"domingo,lunes,martes,mi\u00e9rcoles|miercoles,jueves,viernes,s\u00e1bado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,d\u00eda|d\u00edas|dia|dias,semana:|s,mes:|es,a\u00f1o|a\u00f1os|ano|anos",numbers:"uno,dos,tres,cuatro,cinco,seis,siete,ocho,nueve,diez",tokens:"el,la,de","short":"{d} {month} {yyyy}","long":"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",
past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"a las",ampm:"am,pm",modifiers:[{name:"day",src:"anteayer",value:-2},{name:"day",src:"ayer",value:-1},{name:"day",src:"hoy",value:0},{name:"day",src:"ma\u00f1ana|manana",value:1},{name:"sign",src:"hace",value:-1},{name:"sign",src:"dentro de",value:1},{name:"shift",src:"pasad:o|a",value:-1},{name:"shift",src:"pr\u00f3ximo|pr\u00f3xima|proximo|proxima",value:1}],dateParse:["{sign} {num} {unit}","{num} {unit} {sign}",
"{0?}{1?} {unit=5-7} {shift}","{0?}{1?} {shift} {unit=5-7}"],timeParse:["{shift} {weekday}","{weekday} {shift}","{date?} {2?} {month} {2?} {year?}"]});
Sugar.Date.addLocale("fi",{plural:!0,timeMarker:"kello",ampm:",",months:"tammikuu,helmikuu,maaliskuu,huhtikuu,toukokuu,kes\u00e4kuu,hein\u00e4kuu,elokuu,syyskuu,lokakuu,marraskuu,joulukuu",weekdays:"sunnuntai,maanantai,tiistai,keskiviikko,torstai,perjantai,lauantai",units:"millisekun:ti|tia|teja|tina|nin,sekun:ti|tia|teja|tina|nin,minuut:ti|tia|teja|tina|in,tun:ti|tia|teja|tina|nin,p\u00e4iv:\u00e4|\u00e4\u00e4|i\u00e4|\u00e4n\u00e4|\u00e4n,viik:ko|koa|koja|on|kona,kuukau:si|sia|tta|den|tena,vuo:si|sia|tta|den|tena",numbers:"yksi|ensimm\u00e4inen,kaksi|toinen,kolm:e|as,nelj\u00e4:s,vii:si|des,kuu:si|des,seitsem\u00e4:n|s,kahdeksa:n|s,yhdeks\u00e4:n|s,kymmene:n|s",
articles:"",optionals:"","short":"{d}. {month}ta {yyyy}","long":"{d}. {month}ta {yyyy} kello {H}.{mm}",full:"{Weekday}na {d}. {month}ta {yyyy} kello {H}.{mm}",relative:function(a,b,c,d){function e(c){return(1===a?"":a+" ")+f[8*c+b]}var f=this.units;switch(d){case "duration":return e(0);case "past":return e(1<a?1:0)+" sitten";case "future":return e(4)+" p\u00e4\u00e4st\u00e4"}},modifiers:[{name:"day",src:"toissa p\u00e4iv\u00e4n\u00e4|toissa p\u00e4iv\u00e4ist\u00e4",value:-2},{name:"day",src:"eilen|eilist\u00e4",
value:-1},{name:"day",src:"t\u00e4n\u00e4\u00e4n",value:0},{name:"day",src:"huomenna|huomista",value:1},{name:"day",src:"ylihuomenna|ylihuomista",value:2},{name:"sign",src:"sitten|aiemmin",value:-1},{name:"sign",src:"p\u00e4\u00e4st\u00e4|kuluttua|my\u00f6hemmin",value:1},{name:"edge",src:"viimeinen|viimeisen\u00e4",value:-2},{name:"edge",src:"lopussa",value:-1},{name:"edge",src:"ensimm\u00e4inen|ensimm\u00e4isen\u00e4",value:1},{name:"shift",src:"edellinen|edellisen\u00e4|edelt\u00e4v\u00e4|edelt\u00e4v\u00e4n\u00e4|viime|toissa",
value:-1},{name:"shift",src:"t\u00e4n\u00e4|t\u00e4m\u00e4n",value:0},{name:"shift",src:"seuraava|seuraavana|tuleva|tulevana|ensi",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{num} {unit=4-5} {sign} {day}","{month} {year}","{shift} {unit=5-7}"],timeParse:"{0} {num}{1} {day} of {month} {year?};{weekday?} {month} {date}{1} {year?};{date} {month} {year};{shift} {weekday};{shift} week {weekday};{weekday} {2} {shift} week;{0} {date}{1} of {month};{0}{month?} {date?}{1} of {shift} {unit=6-7}".split(";")});
Sugar.Date.addLocale("fr",{plural:!0,months:"janvier,f\u00e9vrier|fevrier,mars,avril,mai,juin,juillet,ao\u00fbt,septembre,octobre,novembre,d\u00e9cembre|decembre",weekdays:"dimanche,lundi,mardi,mercredi,jeudi,vendredi,samedi",units:"milliseconde:|s,seconde:|s,minute:|s,heure:|s,jour:|s,semaine:|s,mois,an:|s|n\u00e9e|nee",numbers:"un:|e,deux,trois,quatre,cinq,six,sept,huit,neuf,dix",tokens:"l'|la|le","short":"{d} {month} {yyyy}","long":"{d} {month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} {H}:{mm}:{ss}",
past:"{sign} {num} {unit}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"\u00e0",ampm:"am,pm",modifiers:[{name:"day",src:"hier",value:-1},{name:"day",src:"aujourd'hui",value:0},{name:"day",src:"demain",value:1},{name:"sign",src:"il y a",value:-1},{name:"sign",src:"dans|d'ici",value:1},{name:"shift",src:"derni:\u00e8r|er|\u00e8re|ere",value:-1},{name:"shift",src:"prochain:|e",value:1}],dateParse:["{sign} {num} {unit}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}"],timeParse:["{weekday?} {0?} {date?} {month} {year?}",
"{0?} {weekday} {shift}"]});
Sugar.Date.addLocale("it",{plural:!0,months:"Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre",weekdays:"Domenica,Luned:\u00ec|i,Marted:\u00ec|i,Mercoled:\u00ec|i,Gioved:\u00ec|i,Venerd:\u00ec|i,Sabato",units:"millisecond:o|i,second:o|i,minut:o|i,or:a|e,giorn:o|i,settiman:a|e,mes:e|i,ann:o|i",numbers:"un:|a|o|',due,tre,quattro,cinque,sei,sette,otto,nove,dieci",tokens:"l'|la|il","short":"{d} {Month} {yyyy}","long":"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",
past:"{num} {unit} {sign}",future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"alle",ampm:"am,pm",modifiers:[{name:"day",src:"ieri",value:-1},{name:"day",src:"oggi",value:0},{name:"day",src:"domani",value:1},{name:"day",src:"dopodomani",value:2},{name:"sign",src:"fa",value:-1},{name:"sign",src:"da adesso",value:1},{name:"shift",src:"scors:o|a",value:-1},{name:"shift",src:"prossim:o|a",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}",
"{shift} {weekday}"]});
Sugar.Date.addLocale("ja",{monthSuffix:"\u6708",weekdays:"\u65e5\u66dc\u65e5,\u6708\u66dc\u65e5,\u706b\u66dc\u65e5,\u6c34\u66dc\u65e5,\u6728\u66dc\u65e5,\u91d1\u66dc\u65e5,\u571f\u66dc\u65e5",units:"\u30df\u30ea\u79d2,\u79d2,\u5206,\u6642\u9593,\u65e5,\u9031\u9593|\u9031,\u30f6\u6708|\u30f5\u6708|\u6708,\u5e74","short":"{yyyy}\u5e74{M}\u6708{d}\u65e5","long":"{yyyy}\u5e74{M}\u6708{d}\u65e5 {H}\u6642{mm}\u5206",full:"{yyyy}\u5e74{M}\u6708{d}\u65e5 {Weekday} {H}\u6642{mm}\u5206{ss}\u79d2",past:"{num}{unit}{sign}",
future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"\u6642,\u5206,\u79d2",ampm:"\u5348\u524d,\u5348\u5f8c",modifiers:[{name:"day",src:"\u4e00\u6628\u65e5",value:-2},{name:"day",src:"\u6628\u65e5",value:-1},{name:"day",src:"\u4eca\u65e5",value:0},{name:"day",src:"\u660e\u65e5",value:1},{name:"day",src:"\u660e\u5f8c\u65e5",value:2},{name:"sign",src:"\u524d",value:-1},{name:"sign",src:"\u5f8c",value:1},{name:"shift",src:"\u53bb|\u5148",value:-1},{name:"shift",src:"\u6765",value:1}],dateParse:["{num}{unit}{sign}"],
timeParse:["{shift}{unit=5-7}{weekday?}","{year}\u5e74{month?}\u6708?{date?}\u65e5?","{month}\u6708{date?}\u65e5?","{date}\u65e5"]});
Sugar.Date.addLocale("ko",{digitDate:!0,monthSuffix:"\uc6d4",weekdays:"\uc77c\uc694\uc77c,\uc6d4\uc694\uc77c,\ud654\uc694\uc77c,\uc218\uc694\uc77c,\ubaa9\uc694\uc77c,\uae08\uc694\uc77c,\ud1a0\uc694\uc77c",units:"\ubc00\ub9ac\ucd08,\ucd08,\ubd84,\uc2dc\uac04,\uc77c,\uc8fc,\uac1c\uc6d4|\ub2ec,\ub144|\ud574",numbers:"\uc77c|\ud55c,\uc774,\uc0bc,\uc0ac,\uc624,\uc721,\uce60,\ud314,\uad6c,\uc2ed","short":"{yyyy}\ub144{M}\uc6d4{d}\uc77c","long":"{yyyy}\ub144{M}\uc6d4{d}\uc77c {H}\uc2dc{mm}\ubd84",full:"{yyyy}\ub144{M}\uc6d4{d}\uc77c {Weekday} {H}\uc2dc{mm}\ubd84{ss}\ucd08",
past:"{num}{unit} {sign}",future:"{num}{unit} {sign}",duration:"{num}{unit}",timeSuffixes:"\uc2dc,\ubd84,\ucd08",ampm:"\uc624\uc804,\uc624\ud6c4",modifiers:[{name:"day",src:"\uadf8\uc800\uaed8",value:-2},{name:"day",src:"\uc5b4\uc81c",value:-1},{name:"day",src:"\uc624\ub298",value:0},{name:"day",src:"\ub0b4\uc77c",value:1},{name:"day",src:"\ubaa8\ub808",value:2},{name:"sign",src:"\uc804",value:-1},{name:"sign",src:"\ud6c4",value:1},{name:"shift",src:"\uc9c0\ub09c|\uc791",value:-1},{name:"shift",src:"\uc774\ubc88|\uc62c",
value:0},{name:"shift",src:"\ub2e4\uc74c|\ub0b4",value:1}],dateParse:["{num}{unit} {sign}","{shift?} {unit=5-7}"],timeParse:["{shift} {unit=5?} {weekday}","{year}\ub144{month?}\uc6d4?{date?}\uc77c?","{month}\uc6d4{date?}\uc77c?","{date}\uc77c"]});
Sugar.Date.addLocale("nl",{plural:!0,months:"januari,februari,maart,april,mei,juni,juli,augustus,september,oktober,november,december",weekdays:"zondag|zo,maandag|ma,dinsdag|di,woensdag|woe|wo,donderdag|do,vrijdag|vrij|vr,zaterdag|za",units:"milliseconde:|n,seconde:|n,minu:ut|ten,uur,dag:|en,we:ek|ken,maand:|en,jaar",numbers:"een,twee,drie,vier,vijf,zes,zeven,acht,negen",tokens:"","short":"{d} {Month} {yyyy}","long":"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday} {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",
future:"{num} {unit} {sign}",duration:"{num} {unit}",timeMarker:"'s|om",modifiers:[{name:"day",src:"gisteren",value:-1},{name:"day",src:"vandaag",value:0},{name:"day",src:"morgen",value:1},{name:"day",src:"overmorgen",value:2},{name:"sign",src:"geleden",value:-1},{name:"sign",src:"vanaf nu",value:1},{name:"shift",src:"laatste|vorige|afgelopen",value:-1},{name:"shift",src:"volgend:|e",value:1}],dateParse:["{num} {unit} {sign}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{weekday?} {date?} {month} {year?}",
"{shift} {weekday}"]});
Sugar.Date.addLocale("pl",{plural:!0,months:"Stycze\u0144|Stycznia,Luty|Lutego,Marzec|Marca,Kwiecie\u0144|Kwietnia,Maj|Maja,Czerwiec|Czerwca,Lipiec|Lipca,Sierpie\u0144|Sierpnia,Wrzesie\u0144|Wrze\u015bnia,Pa\u017adziernik|Pa\u017adziernika,Listopad|Listopada,Grudzie\u0144|Grudnia",weekdays:"Niedziela|Niedziel\u0119,Poniedzia\u0142ek,Wtorek,\u015arod:a|\u0119,Czwartek,Pi\u0105tek,Sobota|Sobot\u0119",units:"milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzie\u0144|dni,tydzie\u0144|tygodnie|tygodni,miesi\u0105ce|miesi\u0105ce|miesi\u0119cy,rok|lata|lat",numbers:"jeden|jedn\u0105,dwa|dwie,trzy,cztery,pi\u0119\u0107,sze\u015b\u0107,siedem,osiem,dziewi\u0119\u0107,dziesi\u0119\u0107",
optionals:"w|we,roku","short":"{d} {Month} {yyyy}","long":"{d} {Month} {yyyy} {H}:{mm}",full:"{Weekday}, {d} {Month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"o",ampm:"am,pm",modifiers:[{name:"day",src:"przedwczoraj",value:-2},{name:"day",src:"wczoraj",value:-1},{name:"day",src:"dzisiaj|dzi\u015b",value:0},{name:"day",src:"jutro",value:1},{name:"day",src:"pojutrze",value:2},{name:"sign",src:"temu|przed",value:-1},{name:"sign",
src:"za",value:1},{name:"shift",src:"zesz\u0142y|zesz\u0142a|ostatni|ostatnia",value:-1},{name:"shift",src:"nast\u0119pny|nast\u0119pna|nast\u0119pnego|przysz\u0142y|przysz\u0142a|przysz\u0142ego",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{shift} {unit=5-7}","{0} {shift?} {weekday}"],timeParse:["{date} {month} {year?} {1}","{0} {shift?} {weekday}"]});
Sugar.Date.addLocale("pt",{plural:!0,months:"janeiro,fevereiro,mar\u00e7o,abril,maio,junho,julho,agosto,setembro,outubro,novembro,dezembro",weekdays:"domingo,segunda-feira,ter\u00e7a-feira,quarta-feira,quinta-feira,sexta-feira,s\u00e1bado|sabado",units:"milisegundo:|s,segundo:|s,minuto:|s,hora:|s,dia:|s,semana:|s,m\u00eas|m\u00eases|mes|meses,ano:|s",numbers:"um:|a,dois|duas,tr\u00eas|tres,quatro,cinco,seis,sete,oito,nove,dez",tokens:"a,de","short":"{d} de {month} de {yyyy}","long":"{d} de {month} de {yyyy} {H}:{mm}",
full:"{Weekday}, {d} de {month} de {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",timeMarker:"\u00e0s",ampm:"am,pm",modifiers:[{name:"day",src:"anteontem",value:-2},{name:"day",src:"ontem",value:-1},{name:"day",src:"hoje",value:0},{name:"day",src:"amanh:\u00e3|a",value:1},{name:"sign",src:"atr\u00e1s|atras|h\u00e1|ha",value:-1},{name:"sign",src:"daqui a",value:1},{name:"shift",src:"passad:o|a",value:-1},{name:"shift",src:"pr\u00f3ximo|pr\u00f3xima|proximo|proxima",
value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{0?} {unit=5-7} {shift}","{0?} {shift} {unit=5-7}"],timeParse:["{date?} {1?} {month} {1?} {year?}","{0?} {shift} {weekday}"]});
Sugar.Date.addLocale("ru",{months:"\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",weekdays:"\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",
units:"\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",
numbers:"\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",tokens:"\u0432|\u043d\u0430,\u0433\u043e\u0434\u0430","short":"{d} {month} {yyyy} \u0433\u043e\u0434\u0430","long":"{d} {month} {yyyy} \u0433\u043e\u0434\u0430 {H}:{mm}",full:"{Weekday} {d} {month} {yyyy} \u0433\u043e\u0434\u0430 {H}:{mm}:{ss}",
relative:function(a,b,c,d){c=a.toString().slice(-1);switch(!0){case 11<=a&&15>=a:c=3;break;case 1==c:c=1;break;case 2<=c&&4>=c:c=2;break;default:c=3}a=a+" "+this.units[8*c+b];switch(d){case "duration":return a;case "past":return a+" \u043d\u0430\u0437\u0430\u0434";case "future":return"\u0447\u0435\u0440\u0435\u0437 "+a}},timeMarker:"\u0432",ampm:" \u0443\u0442\u0440\u0430, \u0432\u0435\u0447\u0435\u0440\u0430",modifiers:[{name:"day",src:"\u043f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430",value:-2},
{name:"day",src:"\u0432\u0447\u0435\u0440\u0430",value:-1},{name:"day",src:"\u0441\u0435\u0433\u043e\u0434\u043d\u044f",value:0},{name:"day",src:"\u0437\u0430\u0432\u0442\u0440\u0430",value:1},{name:"day",src:"\u043f\u043e\u0441\u043b\u0435\u0437\u0430\u0432\u0442\u0440\u0430",value:2},{name:"sign",src:"\u043d\u0430\u0437\u0430\u0434",value:-1},{name:"sign",src:"\u0447\u0435\u0440\u0435\u0437",value:1},{name:"shift",src:"\u043f\u0440\u043e\u0448\u043b:\u044b\u0439|\u043e\u0439|\u043e\u043c",value:-1},
{name:"shift",src:"\u0441\u043b\u0435\u0434\u0443\u044e\u0449:\u0438\u0439|\u0435\u0439|\u0435\u043c",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{month} {year}","{0?} {shift} {unit=5-7}"],timeParse:["{date} {month} {year?} {1?}","{0?} {shift} {weekday}"]});
Sugar.Date.addLocale("sv",{plural:!0,months:"januari,februari,mars,april,maj,juni,juli,augusti,september,oktober,november,december",weekdays:"s\u00f6ndag|sondag,m\u00e5ndag:|en+mandag:|en,tisdag,onsdag,torsdag,fredag,l\u00f6rdag|lordag",units:"millisekund:|er,sekund:|er,minut:|er,timm:e|ar,dag:|ar,veck:a|or|an,m\u00e5nad:|er|en+manad:|er|en,\u00e5r:||et+ar:||et",numbers:"en|ett,tv\u00e5|tva,tre,fyra,fem,sex,sju,\u00e5tta|atta,nio,tio",tokens:"den,f\u00f6r|for",articles:"den","short":"den {d} {month} {yyyy}",
"long":"den {d} {month} {yyyy} {H}:{mm}",full:"{Weekday} den {d} {month} {yyyy} {H}:{mm}:{ss}",past:"{num} {unit} {sign}",future:"{sign} {num} {unit}",duration:"{num} {unit}",ampm:"am,pm",modifiers:[{name:"day",src:"f\u00f6rrg\u00e5r|i f\u00f6rrg\u00e5r|if\u00f6rrg\u00e5r|forrgar|i forrgar|iforrgar",value:-2},{name:"day",src:"g\u00e5r|i g\u00e5r|ig\u00e5r|gar|i gar|igar",value:-1},{name:"day",src:"dag|i dag|idag",value:0},{name:"day",src:"morgon|i morgon|imorgon",value:1},{name:"day",src:"\u00f6ver morgon|\u00f6vermorgon|i \u00f6ver morgon|i \u00f6vermorgon|i\u00f6vermorgon|over morgon|overmorgon|i over morgon|i overmorgon|iovermorgon",
value:2},{name:"sign",src:"sedan|sen",value:-1},{name:"sign",src:"om",value:1},{name:"shift",src:"i f\u00f6rra|f\u00f6rra|i forra|forra",value:-1},{name:"shift",src:"denna",value:0},{name:"shift",src:"n\u00e4sta|nasta",value:1}],dateParse:["{num} {unit} {sign}","{sign} {num} {unit}","{1?} {num} {unit} {sign}","{shift} {unit=5-7}"],timeParse:["{0?} {weekday?} {date?} {month} {year}","{date} {month}","{shift} {weekday}"]});
Sugar.Date.addLocale("zh-CN",{variant:!0,monthSuffix:"\u6708",weekdays:"\u661f\u671f\u65e5|\u5468\u65e5|\u661f\u671f\u5929,\u661f\u671f\u4e00|\u5468\u4e00,\u661f\u671f\u4e8c|\u5468\u4e8c,\u661f\u671f\u4e09|\u5468\u4e09,\u661f\u671f\u56db|\u5468\u56db,\u661f\u671f\u4e94|\u5468\u4e94,\u661f\u671f\u516d|\u5468\u516d",units:"\u6beb\u79d2,\u79d2\u949f,\u5206\u949f,\u5c0f\u65f6,\u5929,\u4e2a\u661f\u671f|\u5468,\u4e2a\u6708,\u5e74",tokens:"\u65e5|\u53f7","short":"{yyyy}\u5e74{M}\u6708{d}\u65e5","long":"{yyyy}\u5e74{M}\u6708{d}\u65e5 {tt}{h}:{mm}",
full:"{yyyy}\u5e74{M}\u6708{d}\u65e5 {weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"\u70b9|\u65f6,\u5206\u949f?,\u79d2",ampm:"\u4e0a\u5348,\u4e0b\u5348",modifiers:[{name:"day",src:"\u5927\u524d\u5929",value:-3},{name:"day",src:"\u524d\u5929",value:-2},{name:"day",src:"\u6628\u5929",value:-1},{name:"day",src:"\u4eca\u5929",value:0},{name:"day",src:"\u660e\u5929",value:1},{name:"day",src:"\u540e\u5929",value:2},{name:"day",src:"\u5927\u540e\u5929",
value:3},{name:"sign",src:"\u524d",value:-1},{name:"sign",src:"\u540e",value:1},{name:"shift",src:"\u4e0a|\u53bb",value:-1},{name:"shift",src:"\u8fd9",value:0},{name:"shift",src:"\u4e0b|\u660e",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}\u5e74{month?}\u6708?{date?}{0?}","{month}\u6708{date?}{0?}","{date}[\u65e5\u53f7]"]});
Sugar.Date.addLocale("zh-TW",{monthSuffix:"\u6708",weekdays:"\u661f\u671f\u65e5|\u9031\u65e5|\u661f\u671f\u5929,\u661f\u671f\u4e00|\u9031\u4e00,\u661f\u671f\u4e8c|\u9031\u4e8c,\u661f\u671f\u4e09|\u9031\u4e09,\u661f\u671f\u56db|\u9031\u56db,\u661f\u671f\u4e94|\u9031\u4e94,\u661f\u671f\u516d|\u9031\u516d",units:"\u6beb\u79d2,\u79d2\u9418,\u5206\u9418,\u5c0f\u6642,\u5929,\u500b\u661f\u671f|\u9031,\u500b\u6708,\u5e74",tokens:"\u65e5|\u865f","short":"{yyyy}\u5e74{M}\u6708{d}\u65e5","long":"{yyyy}\u5e74{M}\u6708{d}\u65e5 {tt}{h}:{mm}",
full:"{yyyy}\u5e74{M}\u6708{d}\u65e5 {Weekday} {tt}{h}:{mm}:{ss}",past:"{num}{unit}{sign}",future:"{num}{unit}{sign}",duration:"{num}{unit}",timeSuffixes:"\u9ede|\u6642,\u5206\u9418?,\u79d2",ampm:"\u4e0a\u5348,\u4e0b\u5348",modifiers:[{name:"day",src:"\u5927\u524d\u5929",value:-3},{name:"day",src:"\u524d\u5929",value:-2},{name:"day",src:"\u6628\u5929",value:-1},{name:"day",src:"\u4eca\u5929",value:0},{name:"day",src:"\u660e\u5929",value:1},{name:"day",src:"\u5f8c\u5929",value:2},{name:"day",src:"\u5927\u5f8c\u5929",
value:3},{name:"sign",src:"\u524d",value:-1},{name:"sign",src:"\u5f8c",value:1},{name:"shift",src:"\u4e0a|\u53bb",value:-1},{name:"shift",src:"\u9019",value:0},{name:"shift",src:"\u4e0b|\u660e",value:1}],dateParse:["{num}{unit}{sign}","{shift}{unit=5-7}"],timeParse:["{shift}{weekday}","{year}\u5e74{month?}\u6708?{date?}{0?}","{month}\u6708{date?}{0?}","{date}[\u65e5\u865f]"]});})();