//>>built
define("dojox/date/hebrew/numerals",["dojox/main","dojo/_base/lang","dojo/_base/array"],function(k,l,m){var e=l.getObject("date.hebrew.numerals",!0,k),f=function(a,b){a=a.replace("\u05d9\u05d4","\u05d8\u05d5").replace("\u05d9\u05d5","\u05d8\u05d6");if(!b){var c=a.length;a=1<c?a.substr(0,c-1)+'"'+a.charAt(c-1):a+"\u05f3"}return a},h=function(a){var b=0;m.forEach(a,function(c){var d;-1!=(d="\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5\u05d6\u05d7\u05d8".indexOf(c))?b+=++d:-1!=(d="\u05d9\u05db\u05dc\u05de\u05e0\u05e1\u05e2\u05e4\u05e6".indexOf(c))?
b+=10*++d:-1!=(d="\u05e7\u05e8\u05e9\u05ea".indexOf(c))&&(b+=100*++d)});return b},g=function(a){for(var b="",c=4,d=9;a;)a>=100*c?(b+="\u05e7\u05e8\u05e9\u05ea".charAt(c-1),a-=100*c):1<c?c--:a>=10*d?(b+="\u05d9\u05db\u05dc\u05de\u05e0\u05e1\u05e2\u05e4\u05e6".charAt(d-1),a-=10*d):1<d?d--:0<a&&(b+="\u05d0\u05d1\u05d2\u05d3\u05d4\u05d5\u05d6\u05d7\u05d8".charAt(a-1),a=0);return b};e.getYearHebrewLetters=function(a){return f(g(a%1E3))};e.parseYearHebrewLetters=function(a){return h(a)+5E3};e.getDayHebrewLetters=
function(a,b){return f(g(a),b)};e.parseDayHebrewLetters=function(a){return h(a)};e.getMonthHebrewLetters=function(a){return f(g(a+1))};e.parseMonthHebrewLetters=function(a){a=e.parseDayHebrewLetters(a)-1;if(-1==a||12<a)throw Error("The month name is incorrect , month \x3d "+a);return a};return e});