var QuillUtil={lang:"hindi",getLangLegacy:function(){
if(window.defaultLang){
return window.defaultLang;
}
var _1;
try{
_1=window.location.pathname.match(/\/[a-z]+/g);
if(window.location.pathname.slice(-1)==="/"){
return _1[_1.length-1].substring(1);
}
return _1[_1.length-2].substring(1);
}
catch(e){
return "hindi";
}
},getLang:function(){
return QuillUtil.lang;
},setLang:function(_2){
QuillUtil.lang=_2;
if(_2!=="english"){
showRenderWarning("renderWarning","closeWarn","errPng");
}
},isValidEmailID:function(_3){
var _4=_3.match(/^[0-9a-zA-Z_\.-]+@([0-9a-zA-Z_-]+\.)+[a-zA-Z0-9_-]+$/);
return (_4!==null);
},isValidEmailIDGroup:function(_5){
var _6=_5.split(/[\s,]+/);
var _7;
if(_6.length<1){
return false;
}
var _8=0;
for(var i=0;i<_6.length;++i){
_7=_6[i].match(/[0-9a-zA-Z_\.-]+@([0-9a-zA-Z_-]+\.)+[a-zA-Z0-9_-]+/);
if(_7){
_8+=1;
}
}
if(_8==0){
return false;
}
return true;
},getRandom:function(_a){
var _b=Math.random()-0.5;
_b=_b*Math.pow(2,32);
return Math.floor(_b);
},getBrowser:function(){
var ua=window.navigator.userAgent.toLowerCase();
var _d;
var _e;
var _f;
if(ua.indexOf("opera")!=-1){
return "opera";
}else{
if(ua.indexOf("safari")!=-1){
return "safari";
}else{
if(ua.indexOf("msie 6.0")!=-1||ua.indexOf("msie 7.0")!=-1||ua.indexOf("msie 8.0")!=-1){
return "ie";
}else{
if(ua.indexOf("mozilla")!=-1){
_e=ua.indexOf("gecko/");
if(_e==-1){
return "oldmoz";
}
_f=ua.indexOf(" ",_e);
if(_f==-1){
_f=ua.length;
}
_d=parseInt(ua.substring(_e+6,_f),10);
if(_d<20051107){
return "oldmoz";
}
return "moz";
}
}
}
}
return "unknown";
},isBlank:function(_10){
if(_10.match(/^\s*$/)){
return true;
}
return false;
},isValidURL:function(_11){
if(_11.match(/^http:\/\/.*$/)){
return true;
}
return false;
},isAlpha:function(_12){
if(_12.match(/^[a-zA-Z]$/)){
return true;
}
return false;
},getServerAddr:function(){
if(document.domain){
return ("http://"+document.domain);
}else{
return quillConfig.server.location;
}
},getServerPath:function(){
var _13=window.location.pathname.match(/.*\//g);
return ["http://",window.location.host,_13].join("");
},isValidAlpha:function(_14){
if(_14.match(/[a-zA-Z]+/)){
return true;
}
return false;
},getMeta:function(){
var d=document.getElementsByTagName("meta");
var ret={};
var i;
if(!d||!d.length){
logger.error("Could not read meta tags.");
}else{
for(i=0;i<d.length;i++){
if(d[i].name){
ret[d[i].name]=d[i].content;
}
}
}
return ret;
},makeURL:function(_18,req){
var _1a="";
for(var i in req){
_1a+=[i,"=",encodeURIComponent(req[i])].join("");
}
if(_1a){
return [_18,"?",_1a].join("");
}else{
return _18;
}
},setupLogging:function(){
try{
try{
if(console.log){
logger={log:console.log,debug:console.debug,info:console.info,warn:console.warn,error:console.error};
}
}
catch(e){
if(logDebug){
logger={log:log,debug:logDebug,info:logDebug,warn:logWarning,error:logError};
}
}
}
catch(e){
logger={log:function(){
},debug:function(){
},info:function(){
},warn:function(){
},error:function(){
}};
}
},setCharEncoding:function(_1c){
if(document.defaultCharset){
document.defaultCharset=_1c;
}
if(document.charset){
document.charset=_1c;
}
}};
getNodeText=function(){
var n=SPAN();
if(typeof (n.textContent)!=="undefined"){
return function(_1e){
return _1e.textContent;
};
}else{
if(typeof (n.innerText)!=="undefined"){
return function(_1f){
return _1f.innerText;
};
}else{
return function(_20){
return _20.text;
};
}
}
}();
setNodeText=function(){
var n=SPAN();
if(typeof (n.textContent)!=="undefined"){
return function(_22,_23){
_22.textContent=_23;
};
}else{
if(typeof (n.innerText)!=="undefined"){
return function(_24,_25){
_24.innerText=_25;
};
}else{
return function(_26,_27){
_26.text=_27;
};
}
}
}();
function getFontSize(){
if(quillConfig.fontSizes&&quillConfig.fontSizes.hasOwnProperty(QuillUtil.getLang())){
return quillConfig.fontSizes[QuillUtil.getLang()];
}else{
return ["12px","20px"];
}
}
function addStyleSheet(doc,url){
var _2a=doc.createElement("LINK");
_2a.rel="stylesheet";
_2a.type="text/css";
_2a.href=url;
var _2b=doc.getElementsByTagName("head")[0];
if(_2b){
_2b.appendChild(_2a);
}else{
logger.error("addStyleSheet: document.head not found for",doc);
}
}
function enableLogPane(){
var _2c=getElement("logpane");
logger.info=function(){
var s="";
for(var i=0;i<arguments.length;i++){
s+=arguments[i]+" ";
}
_2c.appendChild(DIV(s));
if(_2c.scrollHeight>_2c.clientHeight){
_2c.scrollTop=_2c.scrollHeight-_2c.clientHeight;
}
};
}
function getCursorPosition(_2f){
var _30;
if(typeof (_2f.selectionStart)!=="undefined"){
_30=_2f.selectionEnd;
}else{
if(document.selection){
_2f.focus();
var sel=document.selection.createRange();
var _32=sel.duplicate();
_32.collapse(true);
var _33=_32.moveStart("character",-1000);
return -_33;
}
}
return _30;
}
function setCursorPosition(_34,pos){
if(typeof (_34.selectionStart)!=="undefined"){
_34.selectionStart=pos;
_34.selectionEnd=pos;
}else{
if(document.selection){
_34.focus();
var _36=_34.createTextRange();
_36.collapse(true);
_36.moveStart("character",pos);
_36.moveEnd("character",pos);
_36.select();
}
}
}
iframePos=function(){
return elementPosition("indicOutput");
};

