CREATE TABLE IF NOT EXISTS 'wlb_Main' ("ID" TEXT DEFAULT '' ,"ICO" TEXT DEFAULT '' ,"PARENT" TEXT DEFAULT '' ,"PR_TR" INTEGER DEFAULT '1' ,"PROC" TEXT DEFAULT '' ,"ru#PROC" TEXT DEFAULT '' ,"uk#PROC" TEXT DEFAULT '' ,"PROC_PER" INTEGER DEFAULT '-1' ,"ATTRS" TEXT DEFAULT '*' ,"TIMESTAMP" INTEGER DEFAULT '' , PRIMARY KEY ("ID"));
INSERT INTO wlb_Main VALUES('ElCadr','iVBORw0KGgoAAAANSUhEUgAAABcAAABACAIAAAB+w3u4AAAACXBIWXMAAA06AAANOgEDIh6FAAAE
z0lEQVRYhdWX32/TVhTHv7Zv7NhO08RpcBLaauqPTcC0PYAQQkKTGJrGwx54QPsD2Z/AH8CkFiak
DkY7UWgLbYdaorqO7diOf8S+e4hhxrHTUqZpnKfknOOPv9f33HvuZe7d+0XXdXyCybJMdF3X9eO0
d3Nzk+d5lmUBCILgeR7P8/1+XxAEnucZhul0OhkQO84mhFBKXdeNoiiKItu2WZallA4GA8dxKKU5
j4y7lpaW0n9nZ2cBtNvtCYPK0XIGIwC0GY0MSc2ojYf71T435AI+iLhI8IWKXSmkcBFHmZzRAghL
YVAKYjYeiAM2LhROANSNelG4rtcBgAEoGDCTKHing1IqSVJRatpcdzAz0wTQ71sJpRt2a6QmMMK1
a9fm5uaWl5efP38uy/K5c+eq1Wou5cmTjbdve6urv9669eP6+m8EQIxYH+rtUhvA/v5+HMf7+/uE
ENM0L1++nEsxTYMQ9saN79682U20CIxQ4ZKPv7y8LIqiIAjlcrnZbBaNaHq6dnCgPX788ObNH3q9
twSAQpRRbGdnp1QqvU/d2toqomxtvarX1YWFpfX13xMtfUACOEDTtJWVlXR2CEQAD4RADIipULd7
MPqhKA0CYAdQgPmxFx4Be0AdkAALiICvAC5PGgGgAFN5sQqgAhxQAqYBvwCRUMZVjEwE5gpCGUuK
OgKCDwOUpQEfjJdrhChClE/5C9j4MGDUDLNmRlz2AXNo7ng7GWeyv1SQfavgC+JAZGhWDAWtcdnV
n1BmgJkPA5KTv6AapDHuzNnr0jYcDi3LCoKAUkoIkSRJluWPpgA4PDwcFTTLssfHx4uLi+n6zlIs
y8qsYMdxLMtaXFz0fZ9SKsvy0dERx+UUzT8U27bHKc1mkxBSLpffO0cdJmP/zu79f6KcPEemaYZh
yHFcvV64yZ+gpdvt6rq+vb3tuu7Ztaiq6nleo9FgmMI2cjIFQKWS3w/T9tnNURAEHMcpinJGSrfb
dV3XsqxWq3V2LaqqBkHQbrdzj1CnpQA4Tf9Pvu4WsJry2lP2s2+fvfzyZSZ7EA/uG/dX+6sZf0I5
BF6kvF7Z253fPegcZLJDGq7Za5veZsZ/8oiCIDAMgxDySXPkeZ6maaOT5hkpqqpyHNfpdKIo25g+
ggKAYRhRFCfnfF7ryDCMwWDA83yjkdMVT6Wl2+3Gcazruud5Z9eiqqpt27Ozs4RMyjx5RLVazv0g
Y//VHFFK9/b24jj+JEocx47j+L4/ISf5LheAZqppVa3qlbUrkR1pmtZqtRYWFkYN/3zj/F3mrshm
SzmhNIFmqsx5n+8cdACgBQDvzwxT0tRFXMzXIstTp5mItAVByPMlAIbRSyjXr39v2870dG1+/gsA
DIM4juOY2ralKDO5lF5Pr9cVAC9e/Pn06UMCYDgc7u6+Yll2Y+OPft/iOM7zPMexFaVx587PBVqC
R49WVlYe3L79U6IlDMOrV6+HYRgEQaVSGQ6HruvEcVytTnuezzCgFJk27fv+pUvfXLjw9evX2wll
fX2tVitcabnmed7ok/d6GiEgAExTM01tPNV1XUqpKIqO41QqlaJjQ3KzKTJN03RdF0XRNM12uz03
V3i3mESRJIllWUmSqtXq1FTu5ecdRZblogPOhG0pbSzL/Q2YovM7l7aYfgAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
function setActMess(mess) {
	if(prmErr.isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+prmShifr, "''"+prmShifr+"''."+mess);
	else SYS.nodeAt(prmErr).nodePrev().messSet("''"+prmShifr+"''."+mess, 2, "OP", this.ownerSess().user());
}

ev_wrk = ev_rez = "";
if(f_start) cntr = prevCntr = holdCntr = 0, toFastCalc = toFastCalc_ = false;
cntr++;

toFastCalc = false;

if(!prmColor.isEVal()) { bordColor = prmColor; bordWidth = 2; }
else { bordColor = "black"; bordWidth = 1; }

//Disable all mutable widgets
info_ed_en = info_var_en = info_sp_en = info_out_en = spToVar_en = up_en = upm_en = upMax_en = down_en = downm_en = downMin_en = lev_out_en = lev_var_en = lev_sp_en = mode_en = modMan_en = modAuto_en =
	modCasc_en = pnl_pid_en = greed_text_en = greed_text1_en = greed_text2_en = greed_text3_en = greed_text4_en = greed_text5_en = 
	com_open_en = com_stop_en = com_close_en = com_text_en = st_open_en = st_close_en = st_text_en = Ramka_en = moveUp_en = moveDwn_en = false;

info_name_text = prmShifr.isEVal() ? "" : prmShifr;

//Impulse processing
if(!prmAnalog.isEVal() && prmAnalog == false) {
	lev_out_en = info_out_en = false; 
	moveUp_en = moveDwn_en = true; 
	moveUp_fillColor = (!prmImpQupTm.isEVal() && prmImpQupTm) ? "cyan" : "black-0"; 
	moveDwn_fillColor = (!prmImpQdwnTm.isEVal() && prmImpQdwnTm) ? "cyan" : "black-0"; 
}

//Check for analog
if(!prmVar.isEVal() || !prmVarIn.isEVal()) {
	info_ed_en = info_var_en = lev_var_en = greed_text_en = greed_text1_en = greed_text2_en = greed_text3_en = greed_text4_en = greed_text5_en = true;
	info_ed_text = prmDemention.isEVal() ? "" : prmDemention;
	pVar = prmVar.isEVal() ? prmVarIn : prmVar;
	if(prmVarIn.isEVal()) info_var_bordWidth = 0;
	if(info_var_clearCnt <= 0) { info_var_arg0val = pVar; info_var_backColor = ""; } else { info_var_clearCnt--; toFastCalc = true; }
	lev_var_p1y = max(0,min(140,140*(1-(pVar-min)/(max-min))));
	if(prmPrec.isEVal())	info_var_arg0cfg = "10;f;2";
	else if(prmPrec >= 0)	info_var_arg0cfg = "10;f;"+prmPrec;
	else	info_var_arg0cfg = "10;g;"+abs(prmPrec);

	info_var_color = lev_var_c3 = "#3EFF3E";
	//Warning borders process
	if(!prmWMin.isEVal() && !prmWMax.isEVal() && prmWMax > prmWMin) {
		lev_var_c2 = "yellow";
		lev_var_p6y = lev_var_p7y = 140*(1-(prmWMax-min)/(max-min));
		lev_var_p8y = lev_var_p9y = 140*(1-(prmWMin-min)/(max-min));
		if(pVar >= prmWMax || pVar <= prmWMin) info_var_color = lev_var_c3 = "yellow";
	}
	else lev_var_c2 = "black-0";
	//Alarm borders process
	if(!prmAMin.isEVal() && !prmAMax.isEVal() && prmAMax > prmAMin) {
		lev_var_c1 = "red";
		lev_var_p2y = lev_var_p3y = 140*(1-(prmAMax-min)/(max-min));
		lev_var_p4y = lev_var_p5y = 140*(1-(prmAMin-min)/(max-min));
		if( pVar >= prmAMax || pVar <= prmAMin ) info_var_color = lev_var_c3 = "red";
	}
	else lev_var_c1 = "black-0";

	//EVAL
	if(pVar > max || pVar < min) info_var_color = lev_var_c3 = "lightgray";

	// Check an process PID regulator
	if(!prmVar.isEVal() && !prmSp.isEVal()) {
		lev_out_en = info_out_en = !prmOut.isEVal() && (prmAnalog.isEVal() || prmAnalog == true);
		info_sp_en = lev_sp_en = mode_en = modMan_en = modAuto_en = pnl_pid_en = true;

		modCasc_en = !prmCasc.isEVal();
		spToVar_en = up_en = upm_en = upMax_en = down_en = downm_en = downMin_en = (prmCasc != true);
		lev_out_p1y = 140*(1-prmOut/100);
		lev_sp_p1y = max(0,min(140,140*(1-(prmSp-min)/(max-min))));
		if(info_sp_clearCnt <= 0) { info_sp_arg0val = prmSp; info_sp_backColor = ""; } else { info_sp_clearCnt--; toFastCalc = true; }
		if(prmPrec.isEVal())	info_sp_arg0cfg = "10;f;2";
		else if(prmPrec >= 0)	info_sp_arg0cfg = "10;f;"+prmPrec;
		else info_sp_arg0cfg = "10;g;"+abs(prmPrec);

		if(info_out_clearCnt <= 0) { info_out_arg0val = prmOut; info_out_backColor = ""; } else { info_out_clearCnt--; toFastCalc = true; }
		appToVl = 0;

		//Event process
		for(off = 0; (ev_wrk=event.parse(0,"\n",off)).length; ) {
			prevMode = prmAuto ? ((prmCasc==true)?tr("Cascade"):tr("Automate")) : tr("Manual");      
			if(ev_wrk == "ws_BtPress:/modMan" && prmAuto) {  
				prmAuto = false; if(prmCasc==true) prmCasc = false;
				setActMess(tr("Mode")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prevMode+" : "+tr("Manual"));
			}
			else if(ev_wrk == "ws_BtPress:/modAuto" && (!prmAuto || prmCasc)) {  
				prmAuto = true; if(prmCasc==true) prmCasc = false;
				setActMess(tr("Mode")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prevMode+" : "+tr("Automate"));
			}
			else if(ev_wrk == "ws_BtPress:/modCasc" && !prmCasc) {  
				prmAuto = prmCasc = true;
				setActMess(tr("Mode")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prevMode+" : "+tr("Cascade"));
			}
			else if(ev_wrk == "key_mousePresLeft:/info_sp") {
				setActMess(tr("Setpoint")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prmSp.toFixed(abs(prmPrec))+" : "+info_sp_arg0val.toFixed(abs(prmPrec)));
				prmSp = info_sp_arg0val; info_sp_backColor = ""; info_sp_clearCnt = 0;
			}
			else if(ev_wrk == "key_mousePresLeft:/info_out") {
				setActMess(tr("Output")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prmManIn.toFixed(1)+" : "+info_out_arg0val.toFixed(1));
				prmManIn = info_out_arg0val; info_out_backColor = ""; info_out_clearCnt = 0;
			}
			else if(ev_wrk == "ws_BtPress:/spToVar") {
				info_sp_arg0val = info_var_arg0val;
				info_sp_backColor = "darkslategray";
				info_sp_clearCnt = 25;
				toCalcCycles = 1;
			}
			else if(ev_wrk == "ws_BtPress:/up")			appToVl = 1;
			else if(ev_wrk == "ws_BtPress:/upm")		appToVl = 10;
			else if(ev_wrk == "ws_BtPress:/upMax")		appToVl = 1e300;
			else if(ev_wrk == "ws_BtPress:/down")		appToVl = -1;
			else if(ev_wrk == "ws_BtPress:/downm")		appToVl = -10;
			else if(ev_wrk == "ws_BtPress:/downMin")	appToVl = -1e300;
			else if(ev_wrk == "ws_BtPress:/pnl_pid") {
				sessNm = path.parsePath(0);
				pidPg = "/"+sessNm + "/pg_so/"+vcaAttrGet("/"+sessNm+"/pg_so/wdg_pgCont/a_pgOpenSrc").parsePath(2)+"/pg_greg/pg_"+prmId;
				if(vcaNodePresent(pidPg)) vcaAttrSet(pidPg+"/a_pgOpen",1);
				else ev_rez += "usr_PidCntrCall\n"; 
			} 
			else ev_rez += ev_wrk+"\n";
		}
		event = ev_rez;

		if(appToVl && (prmAuto || prmOut.isEVal())) {
			if(prmPrec.isEVal())	newVl = ((info_sp_arg0val-min)/(max-min)+appToVl/100)*(max-min)+min;
			else {
				if((cntr-prevCntr)/f_frq > 0.2)	{ holdCntr = cntr; levUp = 0; }
				prevCntr = cntr;
				if((cntr-holdCntr)/f_frq > 3)	{ holdCntr = cntr; levUp++; }
				decMult = max(2,floor(lg((max-min)/pow(10,-prmPrec))));
				newVl = info_sp_arg0val + sign(appToVl) *										//direction
														pow(abs(appToVl),floor(decMult/2)) *	//half for two buttons level
														pow(10,min(levUp,ceil(decMult/2)-1)) *	//levelUp on hold any 3 seconds
														pow(10,-prmPrec);								//precision base
			}
			newVl = max(min,min(max,newVl));
			if(!prmAMin.isEVal() && !prmAMax.isEVal() && prmAMax > prmAMin ) newVl = max(prmAMin,min(prmAMax,newVl));
			info_sp_arg0val = newVl; info_sp_backColor = "darkslategray"; info_sp_clearCnt = 25;
			toCalcCycles = 1;
		}
   	else if(appToVl && !prmAuto) {
			if(prmAnalog==false) {
				prmManIn = 50+2.5*appToVl;
				if(appToVl == -1)		setActMess(tr("Output")+": "+(prmDescr.isEVal()?"":prmDescr)+" :: "+tr("Close")+" ( < )");
				else if(appToVl == 1)	setActMess(tr("Output")+": "+(prmDescr.isEVal()?"":prmDescr)+" :: "+tr("Open")+" ( > )");
				else if(appToVl == -10) setActMess(tr("Output")+": "+(prmDescr.isEVal()?"":prmDescr)+" :: "+tr("Close")+" ( << )");
				else if(appToVl == 10)	setActMess(tr("Output")+": "+(prmDescr.isEVal()?"":prmDescr)+" :: "+tr("Open")+" ( >> )");
			}
			else {
				newVl = max(0,min(100,info_out_arg0val+appToVl));
				info_out_arg0val = newVl; info_out_backColor = "darkslategray"; info_out_clearCnt = 25;
				toCalcCycles = 1;
			}
		}

		if(prmAuto && prmCasc) { mode_text = tr("Cascade"); info_sp_bordWidth = info_out_bordWidth = 0; }
		else if(prmAuto) {
			mode_text = tr("Automate");
			info_sp_bordWidth = 1; info_out_bordWidth = 0;
		}
		else {
			mode_text = tr("Manual");
			info_out_bordWidth = 1; info_sp_bordWidth = prmOut.isEVal() ? 1 : 0;
		}
	}
	// Manual variable input
	else if(!prmVarIn.isEVal()) {
		up_en = upm_en = upMax_en = down_en = downm_en = downMin_en = true;
		info_var_bordWidth = 1;
		appToVl = 0;

		//Event process
		for(off = 0; (ev_wrk=event.parse(0,"\n",off)).length; ) {
			if(ev_wrk == "key_mousePresLeft:/info_var") {
				setActMess(tr("Variable")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : "+prmVarIn.toFixed(abs(prmPrec))+" : "+info_var_arg0val.toFixed(abs(prmPrec)));
				prmVarIn = info_var_arg0val; info_var_backColor = ""; info_var_clearCnt = 0;
			}
			else if(ev_wrk == "ws_BtPress:/up")			appToVl = 1;
			else if(ev_wrk == "ws_BtPress:/upm")		appToVl = 10;
			else if(ev_wrk == "ws_BtPress:/upMax")		appToVl = 1e300;
			else if(ev_wrk == "ws_BtPress:/down")		appToVl = -1;
			else if(ev_wrk == "ws_BtPress:/downm")		appToVl = -10;
			else if(ev_wrk == "ws_BtPress:/downMin")	appToVl = -1e300;
			else ev_rez += ev_wrk + "\n";
		}
		event = ev_rez;

		if(appToVl) {
			if(prmPrec.isEVal()) newVl = ((info_var_arg0val-min)/(max-min)+appToVl/100)*(max-min)+min;
			else {
				if((cntr-prevCntr)/f_frq > 0.2)	{ holdCntr = cntr; levUp = 0; }
				prevCntr = cntr;
				if((cntr-holdCntr)/f_frq > 3)	{ holdCntr = cntr; levUp++; }
				decMult = max(2,floor(lg((max-min)/pow(10,-prmPrec))));
				newVl = info_var_arg0val +	sign(appToVl) *										//direction
															pow(abs(appToVl),floor(decMult/2)) *	//half for two buttons level
															pow(10,min(levUp,ceil(decMult/2)-1)) *	//levelUp on hold any 3 seconds
															pow(10,-prmPrec);								//precision base
			}
			newVl = max(min,min(max,newVl));
			if(!prmAMin.isEVal() && !prmAMax.isEVal() && prmAMax > prmAMin) newVl = max(prmAMin,min(prmAMax,newVl));
			info_var_arg0val = newVl; info_var_backColor = "darkslategray"; info_var_clearCnt = 25;
			toCalcCycles = 1;
		}
	}
}
else if(!prmCom.isEVal() || !prmClose.isEVal() || !prmOpenSt.isEVal() || !prmCloseSt.isEVal()) {
	Ramka_en = true;
	com_open_en = com_close_en = (!prmCom.isEVal() || !prmClose.isEVal());
	st_open_en = st_close_en = (!prmOpenSt.isEVal() || !prmCloseSt.isEVal());
	com_stop_en = !prmStop.isEVal();

	if(com_open_en) {
		com_open_name = !digComs.isEVal() ? digComs.parse(0,";").parse(0,"-") : tr("OPEN");
		com_open_color = (digComs.parse(0,";").parse(1,"-") != "") ? digComs.parse(0,";").parse(1,"-") : "green";
		com_open_tipTool = !digComs.isEVal() ? tr("Command")+" "+digComs.parse(0,";").parse(0,"-") : tr("Command")+" "+tr("OPEN");
		com_open_tipStatus = !digComs.isEVal() ? tr("Press for")+" "+digComs.parse(0,";").parse(0,"-") : tr("Press for")+" "+tr("OPEN");
		com_open_en = com_open_name.length;
	}
	if(com_close_en) {
		com_close_name = !digComs.isEVal() ? digComs.parse(1,";").parse(0,"-") : tr("CLOSE");
		com_close_color = (digComs.parse(1,";").parse(1,"-") != "") ? digComs.parse(1,";").parse(1,"-") : "red";
		com_close_tipTool = !digComs.isEVal() ? tr("Command")+" "+digComs.parse(1,";").parse(0,"-") : tr("Command")+" "+tr("CLOSE");
		com_close_tipStatus = !digComs.isEVal() ? tr("Press for")+" "+digComs.parse(1,";").parse(0,"-") : tr("Press for")+" "+tr("CLOSE");
		com_close_en = com_close_name.length;
	}
	if(com_stop_en) { 
		com_stop_name = !digComs.isEVal() ? digComs.parse(2,";").parse(0,"-") : tr("STOP");
		com_stop_color = (digComs.parse(2,";").parse(1,"-") != "") ? digComs.parse(2,";").parse(1,"-") : "yellow";
		com_stop_tipTool = !digComs.isEVal() ? tr("Command")+" "+digComs.parse(2,";").parse(0,"-") : tr("Command")+" "+tr("STOP");
		com_stop_tipStatus = !digComs.isEVal() ? tr("Press for")+" "+digComs.parse(2,";").parse(0,"-") : tr("Press for")+" "+tr("STOP");
		com_stop_en = com_stop_name.length;
	}
	if(st_open_en) {
		st_open_text = !digStts.isEVal() ? digStts.parse(0,";").parse(0,"-") : tr("OPEN");
		st_open_color = (digStts.parse(0,";").parse(1,"-") != "") ? digStts.parse(0,";").parse(1,"-") : "green";
		st_open_tipTool = !digStts.isEVal() ? digStts.parse(0,";").parse(0,"-") : tr("OPEN");
		st_open_tipStatus = !digStts.isEVal() ? tr("State")+" "+digStts.parse(0,";").parse(0,"-") : tr("State")+" "+tr("OPEN");
	}
	if(st_close_en) {
		st_close_text = !digStts.isEVal() ? digStts.parse(1,";").parse(0,"-") : tr("CLOSE");
		st_close_color = (digStts.parse(1,";").parse(1,"-") != "") ? digStts.parse(1,";").parse(1,"-") : "red";
		st_close_tipTool = !digStts.isEVal() ? digStts.parse(1,";").parse(0,"-") : tr("CLOSE");
		st_close_tipStatus = !digStts.isEVal() ? tr("State")+" "+digStts.parse(1,";").parse(0,"-") : tr("State")+" "+tr("CLOSE");
	}

	//Event process
	for(off = 0; (ev_wrk=event.parse(0,"\n",off)).length; ) {
		if(ev_wrk == "ws_BtPress:/com_open") {
			if(!prmCom.isEVal()) prmCom = true; prmClose = false;
			setActMess(tr("Command")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : : "+com_open_name);
		}
		else if(ev_wrk == "ws_BtPress:/com_close") {
			if(!prmClose.isEVal()) prmClose = true; prmCom = false;
			setActMess(tr("Command")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : : "+com_close_name);
		}
		else if(ev_wrk == "ws_BtPress:/com_stop") {
			prmStop = true;
			setActMess(tr("Command")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : : "+com_stop_name);
		}
		else ev_rez+=ev_wrk+"\n";
	}
	event = ev_rez;

	if(st_open_en) st_open_color = !prmOpenSt.isEVal() ? (prmOpenSt ?
		((digStts.parse(0,";").parse(1,"-") != "") ? digStts.parse(0,";").parse(1,"-") : "green") : "gray") :
			(prmCloseSt ? "gray" : ((digStts.parse(0,";").parse(1,"-") != "") ? digStts.parse(0,";").parse(1,"-") : "green"));

	if(st_close_en) st_close_color = !prmCloseSt.isEVal() ? (prmCloseSt ?
		((digStts.parse(1,";").parse(1,"-") != "") ? digStts.parse(1,";").parse(1,"-") : "red") : "gray") :
			(prmOpenSt ? "gray" : ((digStts.parse(1,";").parse(1,"-") != "") ? digStts.parse(1,";").parse(1,"-") : "red"));
}
else if(!prmComText.isEVal() || !prmStText.isEVal()) {
	Ramka_en = true;
	com_text_en = !prmComText.isEVal();
	st_text_en = !prmStText.isEVal();

	//Event process
	for(off = 0; (ev_wrk=event.parse(0,"\n",off)).length; ) {
		if(ev_wrk == "ws_CombChange:/com_text") {
			prmComText = com_text_value;
			setActMess(tr("Command")+" : "+(prmDescr.isEVal()?"":prmDescr)+" : : "+prmComText);
			com_text_value = "";
		}
		else ev_rez += ev_wrk+"\n";
	}
	event = ev_rez;

	if(com_text_en) {
		com_text_items = "";
		for(off = 0; !digComs.isEVal() && (vIt=digComs.parse(0,";",off)).length; ) com_text_items += vIt + "\n";
		com_text_tipTool = !digComs.isEVal() ? tr("Select command") : "";
		com_text_tipStatus = !digComs.isEVal() ? tr("Press for command select") : "";
		com_text_en = com_text_items.length;
	}
	if(st_text_en) {
		st_text_text = !prmStText.isEVal() ? prmStText.parse(0,":") : "";
		if(com_text_en) com_text_value = st_text_text;
		st_text_color = (prmStText.parse(1,":") != "") ? prmStText.parse(1,":") : "green";
		st_text_tipTool = !prmStText.isEVal() ? prmStText.parse(0,":") : "";
		st_text_tipStatus = !prmStText.isEVal() ? tr("State")+" "+prmStText.parse(0,":") : "";
		st_text_en = st_text_text.length;
		if(st_text_en && com_text_items.indexOf(st_text_text) != -1) com_text_value = st_text_text;
	}
}

//Updating cycles processing for big processing periods of that page 
if(toCalcCycles > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = max(0, toCalcCycles-1);
}
if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'path;name;dscr;active;geomW;geomH;evProc;backColor;bordWidth;bordColor;',1664088345);
INSERT INTO wlb_Main VALUES('grpGraph','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAACXBIWXMAAAx1AAAMdQEteJR1AAAE
xklEQVRYhdVYTW/bRhCd2S8uRVESJbOCZCSAgThBTknR3Jrmnj+R/5Kf2EvgwEacOkod24q+SIHk
krvbA22akW0ILQSknNO+p/cWXM2sZih8//69ylSSJo7jGGPiOG6327ooALHlulEcE0IAQCmVJAn8
z6LVarFotQp6vXbbm83n0nGEEEGvt16vXSkBEQEKrV3X/fLly3q9/tkPfE+w828XRx8/1qnj42MA
sNYi4l3Dv+KttQBwL4+IlFLGWJ03xpQJ34iHeMdxmFSOF4/RYuZnmZ9Vn3XtZH+PM2ImUXeWtir+
7Kwv5TDP3TD8KMRtTkxggmEABOJPsU51SSqlLp4/l4zlUg4/fKB5XvJRFP3edRSgg/Cn5tUmURS9
jl4zw5ZyebJ3UvFaz168UITYKHJOT/v1g+G7d+/yPAcLxBCaUbSo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WEYlv+Al7G3t1ff
3Pf90WhUQWPM4eFhlmUV8+jRI8dx6rt1u90Kep43Ho/TNGWMPX78uN1uD4dDfPny18+fT6E50W63
R6MRAPR6vW63y968+ePVq99+9lP9x3Bd9x9FY7XqUFOtUwAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) {
	elLs = this.nodeList("wdg_");

	//Parameter selection enable
	if(allowSelLst.length)
		for(iN = 0; iN < elLs.length; iN++) {
			if(elLs[iN].slice(0,6) != "wdg_el")	continue;
			cEl = this[elLs[iN].slice(4)];
			cEl.attrSet("enForce", 1);
			if(cEl.attr("contextMenu").search(":select$") < 0)
				cEl.attrSet("contextMenu",cEl.attr("contextMenu")+tr("Select")+":select\n");
		}
	cnt = 0;
	toCalcCycles = cnt_ = max(3, 2000/this.ownerSess().period());
}
cnt++;
if(cnt == cnt_)	event = "ws_FocusIn:/trnd1";

curTm = SYS.time();
if(!trnd1_tSek)	trnd1_tSek = curTm;
if(trnd1_curSek > (trnd1_tSek+trnd1_tSize/10) || trnd1_curSek < (trnd1_tSek-trnd1_tSize))
	trnd1_curSek = trnd1_tSek;
selSingle = 0;
selAll = false;

//Events process
for(evRez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	if(evCur == "key_presComma:/trnd1")			trnd1_tSek -= trnd1_tSize/2;
	else if(evCur == "key_presPeriod:/trnd1")	trnd1_tSek += trnd1_tSize/2;
	else if(evCur == "ws_SliderChange:/arh")		trnd1_tSek = arh_value*trnd1_tSize;
	else if(evCur.search("usr_single:/el") == 0) selSingle = evCur.slice(14).toInt();
	else if(evCur.search("usr_all:/el") == 0)	selAll = true;
	else evRez += (evCur+"\n");
	//SYS.messDebug("Trend","Event: "+evCur);
}
event = evRez;

//Trend time control
if(trnd1_tSek < curTm) trnd1_trcPer = 0;
else trnd1_trcPer = max(1, (this.calcPer()==-2)?10:this.calcPer()/1000), trnd1_tSek = 0;

//Generic
name_arg0val = this.attr("name");

//Scale
typeXY = (trnd1_type==2);
cntrAct = cntrLog = xCntrAct = xCntrLog = cntrEl = 0;
for(iN = 0; iN < elLs.length; iN++) {
	if(elLs[iN].slice(0,6) != "wdg_el")	continue;
	cntrEl++;
	cEl = this[elLs[iN].slice(4)];
	iEl = elLs[iN].slice(6).toInt()-1;
	if(!cEl.attr("en")) continue;
	if(!typeXY || !(iEl%2)) {
		cntrAct++;
		if(cEl.attr("log") == true)	cntrLog++;
	}
	else {
		xCntrAct++;
		if(cEl.attr("log") == true)	xCntrLog++;
	}
}
if(f_start)	trnd1_parNum = cntrEl;
trnd1_sclVer = (cntrLog > cntrAct/2) ? trnd1_sclVer|0x4 : trnd1_sclVer&(~0x4);
trnd1_sclHor = (xCntrLog > xCntrAct/2) ? trnd1_sclHor|0x4 : trnd1_sclHor&(~0x4);

//Trends
arh_beg = 1e30, arh_end = 0;
for(iN = 0; iN < elLs.length; iN++) {
	if(elLs[iN].slice(0,6) != "wdg_el")	continue;
	cEl = this[elLs[iN].slice(4)];
	iEl = elLs[iN].slice(6).toInt()-1;
	if(selAll)	cEl.attrSet("bordStyle",3);
	if(selSingle) cEl.attrSet("bordStyle",((iEl+1)==selSingle)?3:1);
	cTr = this["trnd1"];
	cTrPrm = "prm"+iEl;
	if(!cEl.attr("en")) cTr.attrSet(cTrPrm+"addr","");
	else {
		cTr.attrSet(cTrPrm+"addr",cEl.attr("addr"));
		cTr.attrSet(cTrPrm+"bordL",cEl.attr("min"));
		cTr.attrSet(cTrPrm+"bordU",cEl.attr("max"));
		cTr.attrSet(cTrPrm+"color",cEl.attr("color"));
		cTr.attrSet(cTrPrm+"width",cEl.attr("bordWidth")*2);
		cEl.attrSet("varEl",cTr.attr(cTrPrm+"val"));
		//Enable/disable of the mode''s indication in the regulators ???
		cEl.attrSet("enMode",((curTm-trnd1_curSek) <= 2));
		//Archive depth calculate
		if(cEl.attr("bordStyle") == 3) {
			arh_tmp = cTr.attr(cTrPrm+"prop");
			if((arh_vl=arh_tmp.parse(0,":").toReal())) arh_beg = min(arh_beg,arh_vl);
			if((arh_vl=arh_tmp.parse(1,":").toReal())) arh_end = min(curTm,max(arh_end,arh_vl));
		}
		if(!typeXY || !(iEl%2)) {
			if((cEl.attr("log")==true) == (cntrLog > cntrAct/2) && cEl.attr("bordWidth") == 1) cTr.attrSet(cTrPrm+"scl",0);
			else cTr.attrSet(cTrPrm+"scl",(cEl.attr("log")==true)?6:2);
		}
		else {
			if((cEl.attr("log")==true) == (xCntrLog > xCntrAct/2)) cTr.attrSet(cTrPrm+"scl",0);
			else cTr.attrSet(cTrPrm+"scl",(cEl.attr("log")==true)?6:2);
		}
	}
}
//Set archive scroll
if(arh_end && ((arh_end-arh_beg)/trnd1_tSize > 2)) {
	arh_cfg = "0:"+floor(arh_beg/trnd1_tSize+1)+":"+floor(arh_end/trnd1_tSize+1)+":1:5";
	arh_value = (trnd1_tSek?trnd1_tSek:curTm)/trnd1_tSize;
	arh_tipTool = tr("Archive space")+": ["+SYS.strftime(arh_beg)+" ... "+SYS.strftime(arh_end)+"]";
	arh_active = true;
	if(selSingle) trnd1_tSek = arh_end;
} else arh_active = false, arh_tipTool = "";

//Updating cycles processing for big processing periods of that page 
if(toCalcCycles > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = max(0, toCalcCycles-1);
}','','',-1,'name;dscr;geomW;geomH;evProc;backColor;bordWidth;bordColor;',1713699319);
INSERT INTO wlb_Main VALUES('graphSelPrm','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAD/klEQVRYhe2Z224bRRiA57gHr8/H2MEpLSCRovYGiXsE4qJ9gEq8RR+A
23LDg0TiFSJ6Ty8hvSEJJSRqnMb2endnZ2dPPxdxTZq6jllMlkr+rmakmX//z/96ZjSLv/v+Bx9p
6P2kiCPmI+1I8bwzycgdi7KP2+V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/3vj0YqcD3dcPwPaGZBYohjpOuRbMU8cGDZVUXczJ0LLsSUXWXfqGoxAh8
ITgnKlCWVXDGQzBrcLB/7Nbw/hH69DPGtUBKyghGEIYhpTSJFN7Z2Wk251TnBgijyBFywYBywXCF
D5hgAMBzXuxAeH8BRzfEXu80U30AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) {
	apply_active = false;
	name_active = val_min_active = val_max_active = dim_active = log_active = false;
	prm_items = prm_value = name_value = dim_value = "", log_value = false, val_min_value = val_max_value = 0;
	//Connect to linked widget 
	if(pgOpenSrc.length) lWdg = this.wdgAt(pgOpenSrc, true);
	if(lWdg) {
		//Get allowed graphic''s sources for the selection
		tmplLst = "";
		prm_items = tr("<Clear>")+"\n";
		if(lWdg.attrPresent("allowSelLst")) tmplLst = lWdg.attr("allowSelLst");
		else if(lWdg.ownerWdg(true).attrPresent("allowSelLst")) tmplLst = lWdg.ownerWdg(true).attr("allowSelLst");
		for(off = 0; (pIt=tmplLst.parse(0,"\n",off)).length; )
			// Archives list template process
			//t1 = "123";//SYS.messInfo("SEL", "TEST 00");	//!!!! After uncomment it next line will not work. Observe further
			if(pIt == "<varhs>") {
				aLs = SYS.Archive.nodeList("va_");
				for(i_a = 0; i_a < aLs.length; i_a++) {
					itNm = SYS.Archive[aLs[i_a]].cfg("NAME");
					if(!itNm.length) itNm = SYS.Archive[aLs[i_a]].cfg("Source");
					prm_items += tr("Archive")+" ''"+itNm+"'' (/Archive/"+aLs[i_a]+")\n";
				}
			}
			// Direct items list process by form "{path}:{name}:{min}:{max}:{dim}"
			else if(pIt.search("/(sub_|)Archive/") >= 0) {
				if(!(itObj=SYS.nodeAt(pIt.parse(0,":")))) continue;
				prm_items += tr("Archive")+" ''"+pIt.parse(1,":")+"'' ("+(pIt.parse(0,":")+":"+pIt.parse(2,":")+":"+pIt.parse(3,":")+":"+pIt.parse(4,":")).replace(new RegExp(":*$"),"")+")\n";
			}
			else {
				pathAbs = pIt.search("/(sub_|)DAQ/") >= 0;
				itObj = pathAbs ? SYS.nodeAt(pIt.parse(0,":")) : SYS.DAQ.nodeAt(pIt.parse(0,":"));
				if(!itObj) continue;
				itNm = pIt.parse(1,":");
				if(!itNm.length && typeof(itObj).search("TCntrNode:TValue[:$]") == 0) itNm = itObj.cntr().cfg("NAME") + " > " + itObj.NAME.get();
				prm_items += "DAQ ''"+itNm+(pathAbs?"'' (":"'' (/DAQ")+(pIt.parse(0,":")+":"+pIt.parse(2,":")+":"+pIt.parse(3,":")+":"+pIt.parse(4,":")).replace(new RegExp(":*$"),"")+")\n";
			}

		//Current value processing
		itAddr = lWdg.link("addr").match("(prm|arh):([^ ]+) \\(\\+\\)");
		if(itAddr.length == 3) {
			//Get Name
			if(lWdg.link("name").search("prm:[^ ]+ \\(\\+\\)") >= 0) name_value = lWdg.attr("name");
			else if((itTmp=lWdg.link("name").match("val:(.+$)")).length == 2) name_value = itTmp[1];
			else name_value = tr("Empty");
			//Get Min and Max
			if(lWdg.link("min").search("prm:[^ ]+ \\(\\+\\)") >= 0) val_min_value = lWdg.attr("min");
			else if((itTmp=lWdg.link("min").match("val:(.+$)")).length == 2) val_min_value = itTmp[1];
			if(lWdg.link("max").search("prm:[^ ]+ \\(\\+\\)") >= 0) val_max_value = lWdg.attr("max");
			else if((itTmp=lWdg.link("max").match("val:(.+$)")).length == 2) val_max_value = itTmp[1];
			//Logarithmic scale
			if(lWdg.link("log").search("prm:[^ ]+ \\(\\+\\)") >= 0) log_value = lWdg.attr("log");
			else if((itTmp=lWdg.link("log").match("val:(.+$)")).length == 2) log_value = itTmp[1];
			//Dimension
			if(lWdg.link("ed").search("prm:[^ ]+ \\(\\+\\)") >= 0) dim_value = lWdg.attr("ed");
			else if((itTmp=lWdg.link("ed").match("val:(.+$)")).length == 2) dim_value = itTmp[1];
			//Current prm name
			if(itAddr[1] == "prm") {
				for(tAddr = "", off = 0, pos = 0; (tAddrEl=itAddr[2].parsePath(0,off)).length; pos++)
					if(pos >= 3 && off < itAddr[2].length)	tAddr += "/prm_"+tAddrEl;
					else if(tAddrEl == "var" && off >= itAddr[2].length)	continue;
					else tAddr += "/"+tAddrEl;
				prm_value = "DAQ ''"+name_value+"'' (/DAQ"+(tAddr+":"+val_min_value.toPrecision()+":"+val_max_value.toPrecision()+":"+dim_value).replace(new RegExp(":*$"),"")+")";
				//prm_value = "DAQ ''"+name_value+"'' (/DAQ"+(itAddr[2].replace(new RegExp("/var$"),"")+":"+val_min_value.toPrecision()+":"+val_max_value.toPrecision()+":"+dim_value).replace(new RegExp(":*$"),"")+")";
			}
			else if(itAddr[1] == "arh") prm_value = tr("Archive")+" ''"+name_value+"'' (/Archive/va_"+(itAddr[2]+":"+val_min_value.toPrecision()+":"+val_max_value.toPrecision()+":"+dim_value).replace(new RegExp(":*$"),"")+")";
			if(prm_value.length) name_active = val_min_active = val_max_active = log_active = dim_active = true;
		}

		//Load current properties
		color_value = lWdg.attr("color");
		if(color_value == lWdg.attr("colorDef"))	color_value = "";

		//Load the colors list
		color_cfg = "";
		parLs = lWdg.nodePrev().nodeList("wdg_");
		for(iLs = 0; iLs < parLs.length; iLs++)
			 if((tVl=lWdg.nodePrev()[parLs[iLs]].attr("colorDef")).length)
				color_cfg += tVl+"\n";
	}
}

colorBox_backColor = (color_value.length?color_value:lWdg.attr("colorDef")).parse(0,"-");

//Events for commands process
for(evRez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//this.messInfo("Event: "+evCur);
	if(evCur == "ws_ListChange:/prm") {	//Parameter selected
		//Set properties
		itTmp = prm_value.match(".+''(.*)'' \\((.+?)\\)");
		if(itTmp.length == 3) {
			if(itTmp[1].length)	name_value = itTmp[1];
			off1 = 0;
			itVal = itTmp[2].parse(0,":",off1);	//Path
			//Connect to source and get main values for parameter
			if(itVal.parsePath(0) == "DAQ" && typeof(itObj=SYS.nodeAt(itVal)).search("TCntrNode:TValue[:$]") == 0) {
				val_min_value = itObj.min.get();
				val_max_value = itObj.max.get();
				log_value = itObj.log.get();
				dim_value = itObj.ed.get();
			}
			
			//Set direct values
			if((itVal=itTmp[2].parse(0,":",off1)).length) val_min_value = itVal;
			if((itVal=itTmp[2].parse(0,":",off1)).length) val_max_value = itVal;
			if((itVal=itTmp[2].parse(0,":",off1)).length) dim_value = itVal;
		}
		else name_value = dim_value = "", val_min_value = val_max_value = 0, log_value = false;
		apply_active = name_active = val_min_active = val_max_active = log_active = dim_active = true;
		//prmSearch_value = "";
	}
	else if(evCur == "key_relsReturn:/prmSearch" && prmSearch_value.length) {
		sPos = (((sPos=prm_items.indexOf(prm_value))<0)?0:sPos) + prm_value.length;
		if(((sPos=prm_items.indexOf(prmSearch_value,sPos)) >= 0 || (sPos=prm_items.indexOf(prmSearch_value,0)) >= 0)) {
			sPos = ((sPos=prm_items.lastIndexOf("\n",sPos)) < 0) ?	0 : sPos+1;
			prm_value = ((sPos_=prm_items.indexOf("\n",sPos)) >= 0) ? prm_items.slice(sPos,sPos_) : prm_items.slice(sPos);
			event += "ws_ListChange:/prm\n";
		}
	}
	else if(evCur == "ws_LnAccept:/name" || evCur == "ws_LnAccept:/val_min" || evCur == "ws_LnAccept:/val_max" ||
				evCur == "ws_LnAccept:/dim" || evCur == "ws_LnAccept:/color" || evCur == "ws_ChkChange:/log")	apply_active = true;
	else if(evCur == "ws_BtPress:/apply") {
		//Link addr set
		itTmp = prm_value.match(".+\\((.+?)[:\\)]");
		if(itTmp.length != 2)	lWdg.linkSet("addr", "", true);		//Clear
		else {	//Set
			off1 = 0;
			firstEl = itTmp[1].parsePath(0,off1);
			if(firstEl == "Archive") {
				lWdg.linkSet("addr", "", true);	//Clear all othet values
				lWdg.linkSet("addr", "arh:"+itTmp[1].slice(off1+4));		lWdg.linkSet("name", "val:"+name_value);	lWdg.linkSet("ed", "val:"+dim_value);
				lWdg.linkSet("min", "val:"+val_min_value);					lWdg.linkSet("max", "val:"+val_max_value);
				lWdg.linkSet("log", "val:"+log_value);
			}
			else if(firstEl == "DAQ") {
				itObj = SYS.nodeAt(itTmp[1]);
				isPrm = (typeof(itObj).search("TCntrNode:TValue[:$]") == 0);
				lWdg.linkSet("addr", "", true);	//Clear all othet values
				lWdg.linkSet("addr", "prm:"+itTmp[1].slice(off1).replace("/prm_","/"), isPrm);
				if(!isPrm || name_value != itObj.NAME.get())		lWdg.linkSet("name","val:"+name_value);
				if(!isPrm || val_min_value != itObj.min.get())	lWdg.linkSet("min","val:"+val_min_value);
				if(!isPrm || val_max_value != itObj.max.get())	lWdg.linkSet("max","val:"+val_max_value);
				if(!isPrm || log_value != itObj.log.get())		lWdg.linkSet("log","val:"+log_value);
				if(!isPrm || dim_value != itObj.ed.get())			lWdg.linkSet("ed","val:"+dim_value);
			}
		}
		lWdg.attrSet("color", color_value);
		lWdg.attrSet("event", lWdg.attr("event")+"usr_set\n");

		this.attrSet("pgOpen", false);
	}
	else if(evCur == "ws_BtPress:/cancel")	this.attrSet("pgOpen", false);
	else evRez += evCur+"\n";
}
event = evRez;','','',-1,'name;dscr;geomW;geomH;pgOpenSrc;pgGrp;backColor;bordWidth;',1712321651);
INSERT INTO wlb_Main VALUES('RootPgSo','iVBORw0KGgoAAAANSUhEUgAAAEAAAAApCAIAAAAK8LgbAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAADVklEQVRYhe2XS28jRRRGbz366U77ETu2Q6QomwCDDBIsZsFi/gISINbJ
L4QtC1giQLCZSKMZMa9A7JkYP9vVXd1VdYtF24AEEoFN05LPrj7p072nVepWk4uLC6WU7GSA1F96
lFJERMfIZuGkjpPyMtGhks08mkQAUCayLQHAX/jlEagV3czJuJu420qgZSdrTA4Ibit5WyKBYL6r
AIiB4Bn3Vtu5xtdZWwazkBW0TLLDVIUm/vmAUmq4G3XOwbt+9eSmkBrQxvEBG41GWmtFNcmBFAQA
jDFoUTNNMgIKykQTg9bQlJWDjTGaKdRA5bZiEBXXNP2jYog2gFRQi3ZboRpyIPluCqLiikjye2LA
ICBNiTW7CleQE5ZSAPCH9wVOj0+j12LjOBEPA7/R4FprrfViuHATN05iREREGUnRFcE0DNOgTJLW
WrsGM+tu3DKZDxc842zRKo9FnIuW4I57MI7KZHOU5HGBqfWSbWXZX9CCt9bNbSUq0kaKse381C6T
rC3SjgwwDGe7uc1Etor+tI+IfdUSr06vbr4P8/dPhkGSkO7BhlxeXhZFATsYY8YY+BP/mPy3CiJa
a+9e4ZyP3n2gcgCw1gIlxBggXPBerxcEAfzvEUKQo7YLYK01iIwxakzya0qrXuyuWGvPupC8fOaZ
5MFbJ4NwIyfjuMF41Yv9C7I0WS9v/djT2mZpOpv+0qKHtRGglD693rTeOM0NfPHVl9kiAQrCbGpz
hRARw+Drbz7vnb3ZG5xt8OUMnnFo1kYAAPqDo48/+lTMHhtTTATI183QXdXmCjHGWJY6pLXJE3Dp
/fMPA9/LlKiNABCiGyQ3BVlrq0gY+L3Dw9WyVm+h8cOnnuPRRjNodozKV5oWhNdGgAB8+8OPFuDt
0QdtJGit47hisayNAAB0G5EFsJt5TjQBosBSNLUR0Fp/9sl7ESu+W9w7OR5OXjyatqeNZVAbAULI
47Fj09sVvVXJPF/P1dV1fP5ObQS01vPnLwAA4FEKAAC+w2+eXNVGwFrr+/5fwzp9if+WvUDV7AWq
Zi9QNXuBqtkLVM1eoGr2AlWzF6iavUDV1F6gNj/13PWY62WFZo5LyPa5M+JwAJBSVrrbneB+OBge
rzW9GU+cIKAEVKHCOP4NrQkgmJreob8AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
var reqUser_; var reqLang_; var toCompleteUpd = false;
if(this.ownerSess().reqUser() != reqUser_ || this.ownerSess().reqLang() != reqLang_)
	toCompleteUpd = true, reqUser_ = this.ownerSess().reqUser(), reqLang_ = this.ownerSess().reqLang();

calcCnt++;

if(f_start || toCompleteUpd) {
	play_en = demoPlayProc.length;
	if(!play_en)	this.infoW.attrSet("geomH",this.play.attr("geomY")+this.play.attr("geomH")-this.infoW.attr("geomY"));
	//Checking the signal object''s presenting and creating needed
	soLst = this.nodeList("pg_"); soLstS = new Object();
	for(i = 0; i < soLst.length; i++)
		if((curSO=soLst[i].slice(3).toInt())) {
			soNm = this["pg_"+curSO].attr("name");
			for(soNmSz = 0, off = 0; off < soNm.length; soNmSz++)
				soNm.charAt(off, "UTF-8");
			soLstS[curSO.toString(10,2)] = tVl = new Object();
			tVl.nm = soNm;
			tVl.nmSz = soNmSz;
		}
	//Init views
	viewGrps = new Array(new Object(), new Object(), new Object());
	v = viewGrps[0]; v.cnt = 0, v.first = 1, v.last = 2;
	v = viewGrps[1]; v.cnt = 0, v.first = 3, v.last = 5;
	v = viewGrps[2]; v.cnt = 0, v.first = 6, v.last = 6, v.global = true;	//Only one item currently
	oldViewLs = new Array("mn", "ggraph", "gcadr", "gview", "doc", "rg");

	//Processing SO and views
	logoR = this.logo.attr("geomX") > this.so1.attr("geomX");
	soInterSpecX = logoR ? this.so1.attr("geomX") : (this.logo.attr("en")?this.so1.attr("geomX")-this.logo.attr("geomX")-this.logo.attr("geomW"):2);
	soX = logoR ? soInterSpecX : this.so1.attr("geomX");
	soWdth =	logoR ?	((this.logo.attr("en")?this.logo.attr("geomX"):this.attr("geomW"))-soX) : (this.attr("geomW") - soX);
	soSymbSz = this.so1.attr("font").parse(1," ").toReal()*0.75;

	soInterSpecY = this.so1.attr("geomY");
	soY = this.so1.attr("geomY");
	soY2 = soY + this.so1.attr("geomH") + soInterSpecY;
	row1 = 0, row2 = 0, row1w = 0, row2w = 0;
	oldViews = false;
	for(var iSO in soLstS) {
		if(!(curSO=iSO.toInt()))	continue;
		soNmSz = soLstS[iSO].nmSz*soSymbSz + soInterSpecX;
		if(!row2 && (row1w+soNmSz) < soWdth)		row1w += soNmSz, row1++;
		else if((row2w+soNmSz) < soWdth)			row2w += soNmSz, row2++;
		else continue;	//Too many and long SO
		if(curSO != 1)	this.wdgAdd("so"+curSO, soLstS[iSO].nm, this.attr("parent")+"/wdg_so1");

		soW = this["wdg_so"+curSO];
		soW.attrSet("name", soLstS[iSO].nm)
			.attrSet("color", backColorButton)
			.attrSet("colorText", labColorGood)
			.attrSet("tipTool", tr("Signal object")+" "+curSO+((curSO<=9)?" (CtrlAlt+"+curSO+")":""))
			.attrSet("tipStatus", tr("Press for select signal object")+" "+curSO+((curSO<=9)?" (CtrlAlt+"+curSO+")":""));

		soDscr = this["pg_"+curSO].attr("dscr");
		if(soDscr.length) soW.attrSet("tipTool", soDscr);
		soW.attrSet("en", 1);

		// Appending the events and hotkey processing
		evProc += "ws_BtPress:/so"+curSO+":open:/pg_so/"+curSO+"/*/*\n";
		if(curSO <= 9)	evProc += "key_presCtrlAlt"+curSO+":*:open:/pg_so/"+curSO+"/*/*\n";

		for(iV = viewGrps[0].first; iV <= viewGrps[2].last; iV++) {
			viewGrp = viewGrps[0];
			if(iV >= viewGrps[2].first)	viewGrp = viewGrps[2];
			else if(iV >= viewGrps[1].first)	viewGrp = viewGrps[1];
			if(viewGrp[iV].isEVal()) {
				vNm = "";
				isG = (viewGrp.global == true);
				if(this.nodeList("pg_","/pg_"+(isG?"view"+iV:curSO)+"/pg_view"+iV).length)	vNm = "view"+iV;
				else if(this.nodeList("pg_","/pg_"+(isG?oldViewLs[iV-1]:curSO)+"/pg_"+oldViewLs[iV-1]).length)	vNm = oldViewLs[iV-1];
				if(vNm.length) {
					viewGrp[iV] = true, viewGrp.cnt++;
					// Appending the events processing
					evProc += "ws_BtPress:/go_view"+iV+":open:/pg_so/"+(isG?vNm:"*")+"/"+vNm+"/*\n";
					// Append for the processing events of the hotkeys
					vO = this["wdg_go_view"+iV];
					if((tVl=vO.attr("tipTool").match("\\(CtrlAlt\\+(.)\\)")).length)
						evProc += "key_presCtrlAlt"+tVl[1]+":*:open:/pg_so/"+(isG?vNm:"*")+"/"+vNm+"/*\n"; 
				}
			}
		}
	}

	soWdthAdd = (soWdth-row1w)/row1;
	soOff = soX, i = 0;
	for(var iSO in soLstS) {
		if(!(curSO=iSO.toInt()))	continue;
		if(i > (row1+row2))	break;
		soW = this["so"+curSO];
		soNm = soW.attr("name");
		soNmSz = soLstS[iSO].nmSz*soSymbSz + soInterSpecX;
		soOffY = soY2;
		if(i < row1)	soNmSz += soWdthAdd, soOffY = soY;
		else if(i == row1)	soOff = soX;
		soW.attrSet("geomX",soOff).attrSet("geomY",soOffY).attrSet("geomW",soNmSz-soInterSpecX);
		soOff += soNmSz;
		i++;
	}
	if(row1 == 1)		soOff = soY;
	else if(!row2)	soOff = soY2 - soInterSpecY;
	else soOff = soY2 + this.so1.attr("geomH");
	this.pgCont.attrSet("geomY",soOff).attrSet("geomH",(alarms_en?alarms_geomY:geomH)-soOff);

	//Unused views concealment
	for(iVG = 0; iVG < viewGrps.length; iVG++) {
		viewGrp = viewGrps[iVG];
		viewOff = this["wdg_go_view"+viewGrp.first].attr("geomX");
		viewWdth = this["wdg_go_view"+viewGrp.last].attr("geomX") + this["wdg_go_view"+viewGrp.last].attr("geomW") - viewOff;
		for(iV = viewGrp.first; viewGrp.cnt < (viewGrp.last-viewGrp.first)+1 && iV <= viewGrp.last; iV++) {
			vO = this["wdg_go_view"+iV];
			if(viewGrp[iV].isEVal()) vO.attrSet("en", false);
			else {
				vO.attrSet("geomX", viewOff).attrSet("geomW", viewWdth/viewGrp.cnt);
				viewOff += viewWdth/viewGrp.cnt;
			}
		}
	}

	toCalcCycles = -max(1, 10000/this.ownerSess().period());
	if(f_start)	toFastCalc = toFastCalc_ = false;
}

toChangeCnt = "";
if(pgCont_pgOpenSrc != lastView || toCompleteUpd) {
	//Checking for SO selection change
	curSO = pgCont_pgOpenSrc.parsePath(2).slice(3);
	lastSO = lastView.parsePath(2).slice(3);
	if(curSO != lastSO) {
		if(lastSO.length) this["wdg_so"+lastSO].attrSet("color", backColorButton);
		if(curSO.length) {
			this["wdg_so"+curSO].attrSet("color", backColorButtonSel);
			// Check for view modes active
			for(iV = viewGrps[0].first; iV <= viewGrps[2].last; iV++) {
				viewGrp = viewGrps[0];
				if(iV >= viewGrps[2].first)		viewGrp = viewGrps[2];
				else if(iV >= viewGrps[1].first)	viewGrp = viewGrps[1];
				if(viewGrp[iV] == true) {
					vNm = "";
					isG = (viewGrp.global == true);
					if(this.nodeList("pg_","/pg_"+(isG?"view"+iV:curSO)+"/pg_view"+iV).length)	vNm = "view"+iV;
					else if(this.nodeList("pg_","/pg_"+(isG?oldViewLs[iV-1]:curSO)+"/pg_"+oldViewLs[iV-1]).length)	vNm = oldViewLs[iV-1];
					this["wdg_go_view"+iV].attrSet("active", vNm.length);
				}
			}
		}
	}
	//Checking for view selection change
	curMode = pgCont_pgOpenSrc.parsePath(3).slice(3);
	lastMode = lastView.parsePath(3).slice(3);
	if(curMode != lastMode) {
		if(lastMode.length)
			this["wdg_go_"+(((tVl=oldViewLs.indexOf(lastMode)) >= 0)?"view"+(tVl.toInt()+1):lastMode)].attrSet("color","");
		if(curMode.length)
			this["wdg_go_"+(((tVl=oldViewLs.indexOf(curMode)) >= 0)?"view"+(tVl.toInt()+1):curMode)].attrSet("color", backColorButtonSel);
	}

	//Pages counter display
	if(pgCont_pgOpenSrc.length && curMode.length) {
		elLst = this["pg_"+curSO]["pg_"+curMode].nodeList("pg_");
		curEl = pgCont_pgOpenSrc.parsePath(4);
		pgSel_items = "";
		for(iEl = 0, iM = -1; iEl < elLst.length; iEl++) {
			oEl = this["pg_"+curSO]["pg_"+curMode][elLst[iEl]];
			if(!SYS.Security.access(reqUser_,4,oEl.attr("owner").parse(0,":"),oEl.attr("owner").parse(1,":"),oEl.attr("perm")))
				continue;
			if(!(elNm=oEl.attr("name")).length)
				elNm = oEl.ownerPage().attr("name") + " " + iEl;
			elNm += " ("+elLst[iEl].slice(3)+")";
			pgSel_items += (pgSel_items.length?"\n":"") + elNm;
			if(iM < 0 && elLst[iEl] == curEl) { pgSel_value = elNm; iM = iEl; }
			delete oEl;
		}
		pgCntr_text = ""+(iM+1)+"\n("+elLst.length+")";
		prev_active = next_active = pgSel_active = (elLst.length>1);
	}
	else { pgCntr_text = "-"; prev_active = next_active = pgSel_active = false; }

	lastView = pgCont_pgOpenSrc;
}

//Cvitation button''s
cvt_light_en = alarmSt&0x100; cvt_alarm_en = alarmSt&0x200; cvt_sound_en = alarmSt&0x400;
cvt_light_active = alarmSt&0x10000; cvt_alarm_active = alarmSt&0x20000; cvt_sound_active = alarmSt&0x40000;
toFastCalc = alarmSt&0x10000;

//Per one second''s calls
if((calcCnt%f_frq) == 0) {
	//Alarms display
	actSO = pgCont_pgOpenSrc.parsePath(2).slice(3);
	soLst = this.nodeList("pg_");
	for(i = 0; i < soLst.length; i++) {
		curSO = soLst[i].slice(3);

		this["wdg_so"+curSO].attrSet("color", ((curSO==actSO)?backColorButtonSel:backColorButton));

		aSt = this["pg_"+curSO].attr("alarmSt");
		aLev = aSt&0xFF;
		if(aLev && aSt&0x100) {
			if(aLev > 30) wColor = labColorAlarm;
			else wColor = labColorWarning;
			curColor = this["wdg_so"+curSO].attr("colorText");
			this["wdg_so"+curSO].attrSet("colorText",(aSt&0x10000 && curColor==wColor)?"black":wColor);
		} else this["wdg_so"+curSO].attrSet("colorText", labColorGood);
	}
}

//Events process
for(off = 0, ev_rez = ""; (sval=event.parse(0,"\n",off)).length; )
	if(sval == "ws_CombChange:/pgSel" && (tPg=pgSel_value.match("\\((.+)\\)$")).length)
		toChangeCnt = "/pg_so/" + pgCont_pgOpenSrc.parsePath(2) + "/" + pgCont_pgOpenSrc.parsePath(3) + "/pg_" + tPg[1];
	else if(sval == "ws_BtPress:/cvt_light")	alarmSt = 0x1000001;
	else if(sval == "ws_BtPress:/cvt_alarm")	alarmSt = 0x1000002;
	else if(sval == "ws_BtPress:/cvt_sound")	alarmSt = 0x1000004;
	else if(sval.parse(0,":") == "ws_BtRelease" && ((tVl=sval.parse(1,":")) == "/prev" || tVl == "/next" || tVl.indexOf("/so") == 0 || tVl.indexOf("/go_view") == 0))
		toChangeCnt = "1";

if(toChangeCnt.length) {
	this.ownerSess().uiCmd("open", "/pg_control/pg_terminator", this.attr("path"));	//!!!! To open the terminator panel before other
	if(toChangeCnt.length > 1) this.ownerSess().uiCmd("open", toChangeCnt, this.attr("path"));
	toCalcCycles = 1;
}

//Updating cycles processing for big processing periods of that page 
if(abs(toCalcCycles) > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = (sign(toCalcCycles) < 0 && pgCont_pgOpenSrc.length) ? 0 : max(0, abs(toCalcCycles)-1)*sign(toCalcCycles);
}
if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }

//Demo play process
if(f_start || !play_value) { stepCur = -1; stepTm = 0; play_img = "start"; }
if(play_value && (SYS.time()-this.ownerSess().reqTm()) < (1e-3*this.calcPer())) {	//With preventing call in background on WEB
	play_img = "stop";
	if(stepTm > 0) stepTm -= 1/f_frq;
	else {
		var args = new Object();
		args.this = this;
		args.stepTm = stepTm;
		args.stepCur = stepCur;
		SYS.DAQ.funcCall("JavaLikeCalc.JavaScript",args,demoPlayProc);
		stepTm = args.stepTm;
		stepCur = args.stepCur;
	}
}

if((tVl=defUser.toInt()) && (tVl2=defUser.parse(1,"-")).length) {
	if((SYS.time()-this.ownerSess().userActTm()) < tVl*60)	userSetVis = "";
	else if(this.ownerSess().reqUser() != tVl2.parse(0,":"))	userSetVis = tVl2;
}','','',1000,'path;name;dscr;active;geomW;geomH;evProc;backColor;',1712641708);
INSERT INTO wlb_Main VALUES('ElViewCadr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAAx1AAAMdQEteJR1AAAC
xUlEQVRoge2W0Y4URRSG///06eqZRQYkqCuBSQDNSEJcHsBrXsInID6P4Y32QhZ3DKLZENZ1iRPR
XZmNLHZXV53yYokX63IBw1Crqe+yulPn/6r6dBU3Nu5vbk7x32Q0Oqubm9O7d78ej8e5w7w2u7u7
d+58pQDG4/Ha2lruPG+I5A6wKEUgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN0Ug
N0UgN0UgN0UgN0UgN0UgN0UgN0UgN0UgN6qq+/v76+vruZO8Nm3bqqo2TXP7y9s2NzpCYXPTy9r/
3B97W1fV5matZcn6KpqmEQD1lZorlPdFP1RUcJ84VqSSQjakUIZSj2sZCRuSZEMZCCvmzg8AeuJo
9VEl5yV1yU1cv93LSPSKooZrXPegG34x9FteBtJNu2TpHSc+xiubWAZSXagQoZe0u9eFWfA/+n67
10saZsH/4DkkXf5NEAAgZCgckA1lRUAA0KvaP+oRkXyScyJnhWdYXajsuVXnKzkjUKSYeflx9AnF
vaiXFQSIelKHWUiHyT/wdmD9kz7MQn29BqGran9afBoxgfvU+Yc+hdMh4B97PD7+IB5EAH7LA+im
HW+x/6mPB1FWJO7Fdtq+86gnc3IT/5t/EtsLa785LenxfziJlzc1B2w+byjsvu/suQGor9X6gcZ5
7Lf75mbDAf2Wj3/ERaoscQfcdRdmwT/y7oYDQGU9rttv2+piVV+rU5e677rmZrNglSUKyDmxZ2aH
xiEBcEhrLfXJDk1XNc6jvTAsmn+ZAqlPUJDE0QUqgEIQrGh/GZUksfB/eIk9EJ4EN3GpS2EW9GO1
uUFQX625Qv/Qu8+cvCfx14UaAMsVeBpSSBTG36OMJIXU3muri1W30VlrR5eR+NspFkBC3HuZ7+hY
BBB+CS9H5hHzt1BEVavJ5MZbmCkHOzs7fwOvrhb+aFJiZAAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) {
	toFastCalc = toFastCalc_ = false;
	trnd_trcPer = max(1, (this.calcPer()==-2)?10:this.calcPer()/1000);
}

toFastCalc = false;

text_arg0val = name;
text_arg1val = var;
trnd_prm0addr = addr;
if(focus)	bordColor = (bordColor != "silver") ? "silver" : "gray", toFastCalc = true;
else bordColor = "gray";

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'name;dscr;geomW;geomH;evProc;backColor;bordWidth;bordColor;bordStyle;',1665334246);
INSERT INTO wlb_Main VALUES('grpCadr','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAACXBIWXMAAAx1AAAMdQEteJR1AAAJ
50lEQVRYhdWZya4cyXWG/4iMyDmzKmu4M8kWSGijRW/8GN7rSbQTDG/aNuxX8sZuAY1uGw0JQkuC
piZui2TdoaacY/YieauLVVcgBAFs86zifPFHVA4RJ87JIp999llVlkpr3/etsW3bhmGgtI7CUEpF
KSGUaqXKqsL/P4vjmK1XqzzPGWNlWXLOuM/TNNVaSymn04nW2hjTWts0zQ99tY8bu18uv3358gf5
bUopY+zvnIS9fPnyzZs319fXgx+GYd/3u+4D972CDzZ8PB5vNptPP/2U+b6/Wq2cczvRfvvYfa/g
wwwnhAwNZq1rmmb/Rg9u+sB9r+DDDO+6ru97rTVbLpeEkDAMh+4oivbVB+57BR9seBRFXdcxxqjv
c845Plpj43HhnDPGDP4QN3fdB+57BR9s+NCw1rLb25u+7621g8I5t2sfu+8VfLDhuwaL4zgMQyHE
oOCca613Aw7c9wo+2HDOOeecUkqTJPn7T5Mf0NjNzc12u92/0Y8sjIZhFMexlHLo/vjC6Hg8+rjD
6GKxqKpq9wbw0S0hQkgQBJTSofvjW0JJkiqldoqDuHvgvlfwwYYPx5lzjgZBEEVR3/d93zvnnj9/
LqXsH+zy8nLIYAc7OTnJ83znJklydna2c5VSz58/N8bsyMXFRZqmO7coivl8vnOjKLq6utqfcH+2
vu/DMJxOpzuXMTYIGGOz2ezFixdFUZCzs7PFYoGPx9I0nc/nnueNRqPZbMZ++o8/bbv2UGURZhWI
d4AJ7F05p/QwRzcG2UlPLBlcB0dAAFhnG57Sd/MZAM65eVsfrg+AKmJtenzRlCo7fqQoj6KInZ6d
9rRfLBa+71trKaXj8Zj21I+yzkar1Wq3v4uiiLyOpxPfr7fb7cPUdDKZ1LWfTZWsZVmWwzL1PG86
nWqqVZDRzaY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xqNnHNyI3hU0vDk
gBO1XNWTyYQC2G63hCDPR8655dLkM+0jfOAkz3PnXKMrE45HxgLYbDae52VZ5pxba1E4R/wIwGaz
9jw2cP+mbaeccx/Aer3mnKdp6pzj1baPY8YOOaUrJlspawFASwmgFlsATjrOW92+AcCMBIFuWwCe
k2071loBkJIC6HsBQAgaWiGNAGA8CUJqtQVgYGqrhVYABKeUkk4LDIl0W5uuAcCk8CjVVgDQjpA1
0xAAeE89RnQrAFBQxMvhAzTnwvM8rSsAhOD/AKsOdIn92aBGAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
curTm = SYS.time();
if(!trnd1_tSek) trnd1_tSek = curTm;

//Events process
for(off = 0, ev_rez = ""; (evCur=event.parse(0,"\n",off)).length; ) {
	//Special.FLibSYS.messPut("Trend",0,"Event: "+evCur);
	if(evCur == "key_presSC#3b:/trnd1")			trnd1_tSek -= trnd1_tSize/2;
	else if(evCur == "key_presSC#3c:/trnd1")	trnd1_tSek += trnd1_tSize/2;
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Trend time control
if(trnd1_curSek > trnd1_tSek || trnd1_curSek < (trnd1_tSek-trnd1_tSize)) trnd1_curSek = trnd1_tSek;
if(trnd1_tSek < curTm)	trnd1_trcPer = 0;
else trnd1_trcPer = max(1, (this.calcPer()==-2)?10:this.calcPer()/1000), trnd1_tSek = 0;

//Generic
name_arg0val = grpName;

for(i = 0; i < 8; i++) {
	el = this["el"+(i+1)];
	if(el.attr("prmAddr").isEVal())	{ el.attrSet("en",false); this.trnd1.attrSet("prm"+i+"addr",""); }
	else {
  		el.attrSet("en", true);
		this.trnd1.attrSet("prm"+i+"addr",el.attr("prmAddr"))
						.attrSet("prm"+i+"bordL",el.attr("min")).attrSet("prm"+i+"bordU",el.attr("max"))
						.attrSet("prm"+i+"color",el.attr("bordColor"));
	}
}','','',-1,'name;dscr;geomW;geomH;evProc;backColor;bordWidth;bordColor;',1665333244);
INSERT INTO wlb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Jp9N5
7ty5/zvJf5TT6fwdtJ1wW1UXxCwAAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start)	toFastCalc = toFastCalc_ = false;

if(!pDscr.isEVal())
	tipTool = pDscr + ((!pErr.isEVal()&&pErr.toInt())?"\n"+tr("Error")+": "+pErr:"");
name_text = pName.isEVal() ? tr("No data") : pName;
val_arg0val = pVal;
val_font = "Arial 24 1 0 0 0";
if(!pPrec.isEVal()) val_arg0cfg = ((pPrec>=0)?";f;":";g;")+abs(pPrec);
if(pVal.isEVal()) {
	val_color = name_color = "grey";
	val_font = "Arial 24 0 1 0 1";
	alarm = "";
	pErrCode = 0;
	bordColor = "grey", bordWidth = 1;
	return;
}

//Notification create
if(!pErr.isEVal() && pErrCode != pErr) {
	pErrCode = pErr;
	alTp = (!spName.isEVal() && spName.length) ? 7 : 3;
	if(pErrCode == 1 || pErrCode == 2)	alarm = (redEVAL == true) ? "100|"+pName+"|"+spName+" - "+tr("reject")+".|7" : "100|"+pName+"||1";
	else if(pErrCode == 3)	alarm = "50|"+pName+"|"+spName+" "+tr("above alarm border")+".|"+alTp;
	else if(pErrCode == 4)	alarm = "50|"+pName+"|"+spName+" "+tr("bellow alarm border")+".|"+alTp;
	else if(pErrCode == 5)	alarm = "10|"+pName+"|"+spName+" "+tr("above warning border")+".|"+alTp;
	else if(pErrCode == 6)	alarm = "10|"+pName+"|"+spName+" "+tr("bellow warning border")+".|"+alTp;
	else if(pErrCode == 10) alarm = "10|"+pName+"|"+pErr.parse(1,":")+".|"+alTp;
	else if(pErrCode == 11) alarm = "50|"+pName+"|"+pErr.parse(1,":")+".|"+alTp;
	else if(alarmSt&0x100)	alarm = "1|"+pName+"||1";
}
if(!pErrCode && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";

toFastCalc = false;

//Notification color change
alarmLev = alarmSt&0xFF;
if(alarmLev && alarmSt&0x100) {
	blinkPr = true;
	if(!pErrCode || alarmLev <= 1)	wColor = labColorGood;
	else if(alarmLev < 30)	wColor = labColorWarning;
	else if(alarmLev < 75)	wColor = labColorAlarm;
	else { wColor = "grey"; blinkPr = false; }
	if(blinkPr) { name_color = val_color = (alarmSt&0x10000 && name_color == wColor) ? "grey" : wColor; if(alarmSt&0x10000) toFastCalc = true; }
	else { 
		if(pErrCode == 1 || pErrCode == 2)	{ val_color = wColor; val_font = "Arial 24 0 1 0 1"; name_color = (redEVAL==true) ? labColorAlarm : wColor; }
		else name_color = val_color = wColor;
	}
} else name_color = val_color = labColorGood;

//Blink focused or linked with ElCadr
if(this.attr("focus") ||
	(!pName.isEVal() && pName.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == pName))
{
	bordColor = (bordColor == "silver") ? "grey" : "silver";
	bordWidth = 2;
	toFastCalc = true;
} else bordColor = "grey", bordWidth = 1;

//Check the regulator mode
if(pModeC == true) mode_text = tr("C");
else mode_text = pModeA.isEVal() ? "" : ((pModeA) ? tr("A") : tr("M"));

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'path;perm;name;dscr;active;geomH;tipTool;contextMenu;evProc;backColor;bordWidth;bordColor;',1678183635);
INSERT INTO wlb_Main VALUES('ViewCadr','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAACXBIWXMAAAx1AAAMdQEteJR1AAAE
CElEQVRYhe2YW2/bRhCFz9kLL5JpuE3ctA996T9t/mpRpC7SWrRFmuLuzPSBshTZsgPUIewAOk9a
7szHHVLS2R1+/P2jc24cN8OwUdOUkpktF8uu74qiAABgvV7nnPH2tFgswjDckTSzpjkjMKbUNE3f
9zmnpmlijCmlq6urt1kAgDCmpKoAhs1murTuuunDqm27rgshXF5eHk02s7ZtLy4unqIPw6Cqi8Xi
qYCJX5bl/+N770OMcfdVObqCuq6Xy+XRWRFp27ZpmqfSVVVVnw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CICAAhmwbQDJ
iTAT3wz/AQrXOAcOBXvwAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
name_arg0val = this.attr("name");

if(f_start) {
	el1_1_en = !el1_1_addr.isEVal(); el1_2_en = !el1_2_addr.isEVal(); el1_3_en = !el1_3_addr.isEVal(); 
	el1_4_en = !el1_4_addr.isEVal(); el1_5_en = !el1_5_addr.isEVal(); el1_6_en = !el1_6_addr.isEVal();
	el2_1_en = !el2_1_addr.isEVal(); el2_2_en = !el2_2_addr.isEVal(); el2_3_en = !el2_3_addr.isEVal(); 
	el2_4_en = !el2_4_addr.isEVal(); el2_5_en = !el2_5_addr.isEVal(); el2_6_en = !el2_6_addr.isEVal();
	el3_1_en = !el3_1_addr.isEVal(); el3_2_en = !el3_2_addr.isEVal(); el3_3_en = !el3_3_addr.isEVal(); 
	el3_4_en = !el3_4_addr.isEVal(); el3_5_en = !el3_5_addr.isEVal(); el3_6_en = !el3_6_addr.isEVal();
	el4_1_en = !el4_1_addr.isEVal(); el4_2_en = !el4_2_addr.isEVal(); el4_3_en = !el4_3_addr.isEVal(); 
	el4_4_en = !el4_4_addr.isEVal(); el4_5_en = !el4_5_addr.isEVal(); el4_6_en = !el4_6_addr.isEVal();

	rows = new Array(	(el1_1_en||el1_2_en||el1_3_en||el1_4_en||el1_5_en||el1_6_en),
								(el2_1_en||el2_2_en||el2_3_en||el2_4_en||el2_5_en||el2_6_en),
								(el3_1_en||el3_2_en||el3_3_en||el3_4_en||el3_5_en||el3_6_en),
								(el4_1_en||el4_2_en||el4_3_en||el4_4_en||el4_5_en||el4_6_en));
  cols = new Array(	(el1_1_en||el2_1_en||el3_1_en||el4_1_en),
								(el1_2_en||el2_2_en||el3_2_en||el4_2_en),
								(el1_3_en||el2_3_en||el3_3_en||el4_3_en),
								(el1_4_en||el2_4_en||el3_4_en||el4_4_en),
								(el1_5_en||el2_5_en||el3_5_en||el4_5_en),
								(el1_6_en||el2_6_en||el3_6_en||el4_6_en));

	for(xScale = 0, i = 0; i < 6; i++) xScale += cols[i]; if(xScale) xScale = 6/xScale;
	for(yScale = 0, i = 0; i < 4; i++)	yScale += rows[i]; if(yScale) yScale = 4/yScale;
	xScale = yScale = min(xScale, yScale);

	if(xScale > 1)
		for(i = 1; i <= 4; i++) {
			for(j = 1; j <= 6; j++) this["wdg_el"+i+"_"+j].attrSet("geomXsc", xScale);
			this["wdg_el"+i+"_2"].attrSet("geomX", 3+150*xScale*cols[0]);
			this["wdg_el"+i+"_3"].attrSet("geomX", 3+150*xScale*(cols[0]+cols[1]));
			this["wdg_el"+i+"_4"].attrSet("geomX", 3+150*xScale*(cols[0]+cols[1]+cols[2]));
			this["wdg_el"+i+"_5"].attrSet("geomX", 3+150*xScale*(cols[0]+cols[1]+cols[2]+cols[3]));
			this["wdg_el"+i+"_6"].attrSet("geomX", 3+150*xScale*(cols[0]+cols[1]+cols[2]+cols[3]+cols[4]));
		}
	if(yScale > 1)
		for(j = 1; j <= 6; j++) {
			for(i = 1; i <= 4; i++) this["wdg_el"+i+"_"+j].attrSet("geomYsc", yScale);
			this["wdg_el2_"+j].attrSet("geomY", 30+142*yScale*rows[0]);
			this["wdg_el3_"+j].attrSet("geomY", 30+142*yScale*(rows[0]+rows[1]));
			this["wdg_el4_"+j].attrSet("geomY", 30+142*yScale*(rows[0]+rows[1]+rows[2]));
		}
}','','',-1,'name;dscr;geomW;geomH;backColor;bordWidth;',1665333333);
INSERT INTO wlb_Main VALUES('anShow1','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAOCAIAAAAQWY2VAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAEBElEQVRIicWVW0xbdRzHf+ecf6+nLdAeoEAppQXKxdFsDZciSsZlk7GN
NTM6iYlv+qSJxvjc6JvxwTezmZCYxcy4h7niggZZNU6B4Zgy6dYy6axlXFrKeuXcjw/sgitoTDv9
vH7/5/f7/v6//+93MI/HA3sTCATS6fTfHPh/sV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+7BFBEEzLKtgkvcSW4wQ
vHZ5qqi/va1XysRmJn0LqxkLAHg8HpvNtmtWp9NpNpufVE2F4P6fmKIomqZz5eLi4mg0+p+7+ncg
ABgcHNxLLisre9JrJB9MJtOfuAmh/+/YRy0AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start)	toFastCalc = toFastCalc_ = false;

var bordWidth_;
if(bordWidth_.isEVal())	bordWidth_ = bordWidth;
if(f_stop)	bordWidth = bordWidth_;
if(!pDscr.isEVal())
	tipTool = pDscr + ((!pErr.isEVal()&&pErr.toInt())?"\n"+tr("Error")+": "+pErr:"");
name_en = pName.length;
name_text = pName;
name_geomW = pNameSz;
val_arg0val = pVal;
val_font = "Arial 20 1 0 0 0";
if(!prec.isEVal()) val_arg0cfg = ((prec>=0)?";f;":";g;")+abs(prec);
if(pVal.isEVal()) {
	val_color = "grey";
	val_font = "Arial 20 0 1 0 1";
	alarm = "";
	pErrCode = 0;
	bordColor = "gray", bordWidth = bordWidth_;
	return;
}

//Notification create
if(!pErr.isEVal() && pErrCode != pErr) {
	pErrCode = pErr;
	alTp = (!spName.isEVal() && spName.length) ? 7 : 3;
	if(pErrCode == 1 || pErrCode == 2)	alarm = "100|"+pNAME+"||1";
	else if(pErrCode == 3)	alarm = "50|"+pNAME+"|"+spName+" "+tr("above alarm border")+".|"+alTp;
	else if(pErrCode == 4)	alarm = "50|"+pNAME+"|"+spName+" "+tr("bellow alarm border")+".|"+alTp;
	else if(pErrCode == 5)	alarm = "10|"+pNAME+"|"+spName+" "+tr("above warning border")+".|"+alTp;
	else if(pErrCode == 6)	alarm = "10|"+pNAME+"|"+spName+" "+tr("bellow warning border")+".|"+alTp;
	else if(pErrCode == 10) alarm = "10|"+pNAME+"|"+pErr.parse(1,":")+".|"+alTp;
	else if(pErrCode == 11) alarm = "50|"+pNAME+"|"+pErr.parse(1,":")+".|"+alTp;
	else if(alarmSt&0x100) alarm = "1|"+pNAME+"||1";
}
if(!pErrCode && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";

toFastCalc = false;

//Notification color change
alarmLev = alarmSt&0xFF;
if(alarmLev && alarmSt&0x100) {
	blinkPr = true;
	if(!pErrCode || alarmLev <= 1) wColor = labColorGood;
	else if(alarmLev < 30)	wColor = labColorWarning;
	else if(alarmLev < 75)	wColor = labColorAlarm;
	else { wColor = "grey"; blinkPr = false; }
	if(blinkPr) { val_color = (alarmSt&0x10000 && val_color == wColor) ? "grey" : wColor; if(alarmSt&0x10000) toFastCalc = true; }
	else { 
		if(pErrCode == 1 || pErrCode == 2)	{ val_color = wColor; val_font = "Arial 20 0 1 0 1"; }
		else val_color = wColor;
	}
} else val_color = labColorGood;

//Blink focused or linked with ElCadr
if(this.attr("focus") ||
	(!pNAME.isEVal() && pNAME.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == pNAME))
{
	bordColor = (bordColor == "silver") ? "grey" : "silver";
	bordWidth = 2;
	toFastCalc = true;
} else bordColor = "grey", bordWidth = bordWidth_;

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'perm;name;dscr;active;geomH;tipTool;evProc;backColor;bordWidth;bordColor;',1678183635);
INSERT INTO wlb_Main VALUES('cntrRegul','iVBORw0KGgoAAAANSUhEUgAAAEAAAAArCAIAAABHOBkQAAAACXBIWXMAAA06AAANOgEDIh6FAAAE
DklEQVRoge2ZTU8bRxjHn9mZ2fF4d/2CDREJcUFVLRRLHHyAK+LGAT4INz5Cc04lLqmUxgfU9oCE
OPEFoK2VVEhcoKQcqFog3lC7NsZv+zrTgwtBKAmDkmhVyb/TzjP7n/3/V8/MWjJ69uy7VqsF0eE6
PYSJTikA+L5PKfH9kFKiouWck1ardX5eD4NQZ6xfzeVy09PTio/f39//9eULbphY0zDGADA1NZXP
5xXl5XL55YtydnjEcXq9bi8QvhE3m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CBA1gwBRMwgQNYMAUTMIEDWDAFEzCBA1gwBRQwAAY6z4x2DkUEpvVNDT
p9/2er1I3Hw8lNJ/AdK3tNlT+3/SAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
function setActMess(mess) {
	if(var_addr.isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+NAME, "''"+NAME+"''."+mess);
	else SYS.nodeAt(var_addr).nodePrev().messSet("''"+NAME+"''."+mess, 2, "OP", this.ownerSess().user());
}

txt_pnlTitle_arg0val = NAME;

if(f_start) clc = 0;
clc++;
if(clc == 3) event += "usr_ElCadr";
for(off = 0, ev_rez = ""; (ev_wrk=event.parse(0,"\n",off)).length; ) {
	if(ev_wrk == "ws_LnAccept:/kp") { setActMess("Kp : "+DESCR+" : "+Kp+" : " +kp_value); Kp = kp_value; }
	else if(ev_wrk == "ws_LnAccept:/ki") { setActMess("Ki : "+DESCR+" : "+Ki+" : " +ki_value); Ki = ki_value; }
	else if(ev_wrk == "ws_LnAccept:/ti") { setActMess("Ti : "+DESCR+" : "+Ti/1000+" : " +ti_value); Ti = 1000*ti_value; }
	else if(ev_wrk == "ws_LnAccept:/kd") { setActMess("Kd : "+DESCR+" : "+Kd+" : " +kd_value); Kd = kd_value; }
	else if(ev_wrk == "ws_LnAccept:/td") { setActMess("Td : "+DESCR+" : "+Td/1000+" : " +td_value); Td = 1000*td_value; }
	else if(ev_wrk == "ws_LnAccept:/tzd") { setActMess("Tzd : "+DESCR+" : "+Tzd+" : " +tzd_value); Tzd = 1000*tzd_value; }
	else if(ev_wrk == "ws_LnAccept:/zn") { setActMess("Zn : "+DESCR+" : "+Zi+" : " +zn_value); Zi = zn_value; }
	else if(ev_wrk == "ws_LnAccept:/h1") { setActMess("H1 : "+DESCR+" : "+Hdwn+" : " +h1_value); Hdwn = h1_value; }
	else if(ev_wrk == "ws_LnAccept:/h2") { setActMess("H2 : "+DESCR+" : "+Hup+" : " +h2_value); Hup = h2_value; }
	else if(ev_wrk == "ws_LnAccept:/k1") { setActMess("K1 : "+DESCR+" : "+K1+" : " +k1_value); K1 = k1_value; }
	else if(ev_wrk == "ws_LnAccept:/k2") { setActMess("K2 : "+DESCR+" : "+K2+" : " +k2_value); K2 = k2_value; }
	else if(ev_wrk == "ws_LnAccept:/k3") { setActMess("K3 : "+DESCR+" : "+K3+" : " +k3_value); K3 = k3_value; }
	else if(ev_wrk == "ws_LnAccept:/k4") { setActMess("K4 : "+DESCR+" : "+K4+" : " +k4_value); K4 = k4_value; }
	else if(ev_wrk == "ws_LnAccept:/tiPer") { setActMess("TImpPer : "+DESCR+" : "+TImpPer/1000+" : " +tiPer_value); TImpPer = 1000*tiPer_value; }
	else if(ev_wrk == "ws_LnAccept:/tiMin") { setActMess("TImpMin : "+DESCR+" : "+TImpMin/1000+" : " +tiMin_value); TImpMin = 1000*tiMin_value; }    
	else if(ev_wrk == "ws_LnAccept:/rfct") { setActMess("KImpRfact : "+DESCR+" : "+KImpRfact+" : " +rfct_value); KImpRfact = rfct_value; }
	else ev_rez += ev_wrk+"\n";
}
event = ev_rez;

kp_value = (kp_active=!Kp.isEVal()) ? Kp : 0;
ki_value = (ki_active=!Ki.isEVal()) ? Ki : 0;
ti_value = (ti_active=!Ti.isEVal()) ? Ti/1000 : 0;
kd_value = (kd_active=!Kd.isEVal()) ? Kd : 0;
td_value = (td_active=!Td.isEVal()) ? Td/1000 : 0;
tzd_value = (tzd_active=!Tzd.isEVal()) ? Tzd/1000 : 0;
zn_value = (zn_active=!Zi.isEVal()) ? Zi : 0;
h1_value = (h1_active=!Hdwn.isEVal()) ? Hdwn : 0;
h2_value = (h2_active=!Hup.isEVal()) ? Hup : 0;
k1_value = (k1_active=!K1.isEVal()) ? K1 : 0;
k2_value = (k2_active=!K2.isEVal()) ? K2 : 0;
k3_value = (k3_active=!K3.isEVal()) ? K3 : 0;
k4_value = (k4_active=!K4.isEVal()) ? K4 : 0;
tiPer_value = (tiPer_active=!TImpPer.isEVal()) ? TImpPer/1000 :0;
tiMin_value = (tiMin_active=!TImpMin.isEVal()) ? TImpMin/1000 : 0;
rfct_value = (rfct_active=!KImpRfact.isEVal()) ? KImpRfact : 0;

doc_tmpl = "<body bgcolor=''"+backColor+"''><table style=''color: "+labColor+"'' border=''1'' cellpadding=''1'' cellspacing=''0'' width=''100%''>\n";
doc_tmpl += "<tr><td>"+tr("Id")+":</td><td>"+(SHIFR.isEVal()?"":SYS.strEncode(SHIFR,"HTML"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Name")+":</td><td>"+(NAME.isEVal()?"":SYS.strEncode(NAME,"HTML"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Description")+":</td><td>"+(DESCR.isEVal()?"":SYS.strEncode(DESCR,"HTML"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Dimension")+":</td><td>"+(ed.isEVal()?"":SYS.strEncode(ed,"HTML"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Setpoint")+":</td><td>"+(trnd_prm1val.isEVal()?"":(prec.isEVal()?trnd_prm1val:trnd_prm1val.toFixed(prec)));
doc_tmpl += ((trnd_prm1val.isEVal() || max.isEVal() || min.isEVal() || max == min)?"":("("+(100*(trnd_prm1val-min)/(max-min).toFixed(1))+"%)"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Variable")+":</td><td>"+(trnd_prm2val.isEVal()?"":(prec.isEVal()?trnd_prm2val:trnd_prm2val.toFixed(prec)));
doc_tmpl += ((trnd_prm2val.isEVal() || max.isEVal() || min.isEVal() || max == min)?"":("("+(100*(trnd_prm2val-min)/(max-min).toFixed(1))+"%)"))+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Output")+":</td><td>"+(trnd_prm0val.isEVal()?"":trnd_prm0val.toFixed(1)+"%")+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Scale")+":</td><td>"+(min.isEVal()?"":min)+" ... "+(max.isEVal()?"":max)+"</td></tr>\n";
doc_tmpl += "<tr><td>"+tr("Mode")+":</td><td>"+(trnd_prm3val.isEVal()?" - ":(trnd_prm3val?tr("Automate"):tr("Manual")))+"</td></tr>\n";
doc_tmpl += "</table></body>";

//Diagram
trnd_prm0addr = out_addr;
trnd_prm1addr = sp_addr;
trnd_prm1bordL = min;
trnd_prm1bordU = max;
trnd_prm2addr = var_addr;
trnd_prm2bordL = min;
trnd_prm2bordU = max;
trnd_prm3addr = auto_addr;
trnd_prm4addr = impQup_addr;
trnd_prm5addr = impQdwn_addr;','','',1000,'id;path;name;dscr;active;geomW;geomH;evProc;pgGrp;backColor;bordWidth;',1635755905);
INSERT INTO wlb_Main VALUES('ResultGraph','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAACXBIWXMAAAx1AAAMdQEteJR1AAAF
OElEQVRYhc2YTW8TRxiA33fmnZnd9VcSO4EgQW+tVPVSCUGLAAHiQ6I3JISEOHLtpRfE36A/CSEq
hdKEQogqVNoCdkJI7NiO7f2YeXtwQD2UHXMYtXsb6ZlnPZJ3n53BH+/dc84NBgPHnOd5nueRMXlR
GGMQgIiyLHPOdXs9+P9dCwsL1O31xqOR1rpeq/WLorWwUFj79tWrz44ds9bGcZznOQK8e/fuv/61
/37hrVu3mFkpNZlMlFKtVgsRP0YXRbG1tSWlVEplWUZEzWZTCFFyg83NTUQM5BdC0PLSclyNAYCZ
nz19trGxUXIDKeXJ4yfr8/Upv/F848GDByW8UurUyVNB/aT3dZzFAOCUa//RXvll5WM0ACRJcvrL
07GLAcEpt/nX5sqKhz/31bmgfsKk6yoZsgOUKuI4jksmRFGEyZ5rwHvezcCH9VMhNAA6oQAgK+x4
PC6ZgIhWKABwQjFAPgMf2k87/aVhWgMAIWzh6t4V7/YXJ0ULkaW0mZ3z8qH91JjfrSbZdCzl0Lvi
+lx3vnEwJBp4+dB+6jf6k/oEAKSVtmq9Kx7UB0WrQEZpZVErvHxoP+l0uTqMGAUg8MR4V6yzQ7VB
nREBgCexnw/sJ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5k+EmHVSWR0qfWXMtOHlWgCAoBNnf/0OLSflsYjA4zMjPjF
kWVz4kTJBCJaSieVQX/Kf760JEt5pVRo/988T/gZm+2WXgAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
name_arg0val = grpName.isEVal() ? "" : grpName;

if(f_start) {
	rows = new Array();
	cols = new Array();
	for(i = 0; i < 4; i++) {
		rows[i] = this["wdg_e"+(1+i)].attr("en") || this["wdg_e"+(5+i)].attr("en") || this["wdg_e"+(9+i)].attr("en") || this["wdg_e"+(13+i)].attr("en");
		cols[i] = this["wdg_e"+(1+i*4)].attr("en") || this["wdg_e"+(2+i*4)].attr("en") || this["wdg_e"+(3+i*4)].attr("en") || this["wdg_e"+(4+i*4)].attr("en");
	}

	for(xScale = 0, i = 0; i < 4; i++) xScale += cols[i]; if(xScale) xScale = 4/xScale;
	for(yScale = 0, i = 0; i < 4; i++) yScale += rows[i]; if(yScale) yScale = 4/yScale;
	xScale = yScale = min(xScale, yScale);

	if(xScale > 1)
		for(i = 1; i <= 4; i++) {
			for(j = 1; j <= 4; j++) this["wdg_e"+((i-1)*4+j)].attrSet("geomXsc", xScale);
			this["wdg_e"+(4+i)].attrSet("geomX", 1+224*xScale*cols[0]);
			this["wdg_e"+(8+i)].attrSet("geomX", 1+224*xScale*(cols[0]+cols[1]));
			this["wdg_e"+(12+i)].attrSet("geomX", 1+224*xScale*(cols[0]+cols[1]+cols[2]));
		}
	if(yScale > 1)
		for(j = 1; j <= 4; j++) {
			for(i = 1; i <= 4; i++) this["wdg_e"+((i-1)*4+j)].attrSet("geomYsc", yScale);
			this["wdg_e"+(2+4*(j-1))].attrSet("geomY", 30+142*yScale*rows[0]);
			this["wdg_e"+(3+4*(j-1))].attrSet("geomY", 30+142*yScale*(rows[0]+rows[1]));
			this["wdg_e"+(4+4*(j-1))].attrSet("geomY", 30+142*yScale*(rows[0]+rows[1]+rows[2]));
		}
}','','',-1,'name;dscr;geomW;geomH;backColor;b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urBdJo7OFjN5X5NW/sSSmlSLJ53u5XDw5Va7VhRkuHQ
zmYD17UymbDTWVheblGanJzMM6YkCbWsc87J6upq2uYAAIqi0ELBtSzXsty1tffjsZnPexe19fV3
APDsWRMADGOi65N83gNwq9Vuo8EPDu7EH2kcf/1z/8X+Ov9QSpf734XSFviv4EiL3j19NzbH3/K0
BNl72PveTjeC+oZf2iudVk/rz+tLnSVOOOEEANpL7Uqvcrx8vLG/4Rmeb/rr++v9h/0Pjz6Ufymn
rX0JzoSZTJjJBlnTMyM1yk1zAJAJM+V+2XKsleOV+ZP5xc5iQhIt0p42n2692cLiDi08qk90farr
U/1R+xFTmBp/Pipc/LQIAPOn8wCgMe3Fby8uSpV+ZUAGd2gfuHr/xf46V0uc39V94D5y7wPQiW7s
r23YZ0PLdTDnACARwkJwQrAQAmMAkAgDSJWxk4XFmFJoNNLWvoRGmlbpd3sP5+o/7Sy3jjkhWAoJ
0KqtLHQ6naWlH17/7lrWsFTe2HsbK0qo3bGzUcP3dN+v8pNsME0orfTOEqqojNlnZ7np1D4bVnrd
B6OzSNWKo5HCmMCknbb0VajKmMaYxpjlOl9VXACAvDcGACVJnr+uA4DlugBwtwLMMAchZFnWravM
AMYYvXr1qtvt3mhau92Ooug7Od2IWq32J7gBUGA1eYbJAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) trnd_trcPer = max(5, (this.calcPer()==-2)?60:this.calcPer()/1000);

en = !p1_addr.isEVal() || !p2_addr.isEVal() || !p3_addr.isEVal() || !p4_addr.isEVal() || !p5_addr.isEVal();
title_text = title.isEVal() ? "" : title;

p1_text = p1_name.isEVal() ? "" : p1_name; p1_color = p1_clr;
p2_text = p2_name.isEVal() ? "" : p2_name; p2_color = p2_clr;
p3_text = p3_name.isEVal() ? "" : p3_name; p3_color = p3_clr;
p4_text = p4_name.isEVal() ? "" : p4_name; p4_color = p4_clr;
p5_text = p5_name.isEVal() ? "" : p5_name; p5_color = p5_clr;

trnd_prm0addr = p1_addr; trnd_prm0bordL = p1_min; trnd_prm0bordU = p1_max; trnd_prm0color = p1_clr;
trnd_prm1addr = p2_addr; trnd_prm1bordL = p2_min; trnd_prm1bordU = p2_max; trnd_prm1color = p2_clr;
trnd_prm2addr = p3_addr; trnd_prm2bordL = p3_min; trnd_prm2bordU = p3_max; trnd_prm2color = p3_clr;
trnd_prm3addr = p4_addr; trnd_prm3bordL = p4_min; trnd_prm3bordU = p4_max; trnd_prm3color = p4_clr;
trnd_prm4addr = p5_addr; trnd_prm4bordL = p5_min; trnd_prm4bordU = p5_max; trnd_prm4color = p5_clr;','','',-1,'name;dscr;en;geomW;geomH;backColor;bordWidth;bordColor;bordStyle;',1665334660);
INSERT INTO wlb_Main VALUES('doc_panel','iVBORw0KGgoAAAANSUhEUgAAABcAAABACAIAAAB+w3u4AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAG
QElEQVRYhe1WTW/TSheeicdxbMeJHROTJi0hfJQWpapE1RWgLgBVSEBZseEHsOcnsGfJT2CBVNRN
2JQVGzZQiCpRBGqSpk1Jm9R2Yjt2PLHHdzGv8vZy+3Lfe+/mLnoW1szxOY/nfD0euLKyks1mwe8F
Y2zbNkKI5/l4PA5+Kd1uF2maVigUfnrh+/7Gxsb09LSu60EQxONxSZJM01RVVVGUn4whhLET4TmO
kySJEGIYBsdxCKGPHz+ORiPLsk60PxkliiJFUQghhUIhkUgIglAulyGEmqadaI/u3LlTKpV+FfeJ
bgixLEvX29vbzPPnzx3H4Xl+fn6+2+3G4/GZmRlCiOM4qqrKskwIgRCeO3cOY4wxLpfL3W5X07Sp
qalUKqWqajKZRL1e7/DwUBCEmZkZ27aPjo7y+TytEc3cYDBwXdcwjOFwGIbh1tZWo9EIgkCSpLW1
teXl5TAMYavV8n2fan3fj8VihBBZlhFCrutyHOe6ru/7kiR5njcajVRV1XVdkqRxRIeHh2htbe3i
xYt/NS+0AnRRq9XQ5uamrus/fvzo9/vZbBZC6Pv+aDSSJE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97e3tTCZDmYEy
C4Rwc3OTEBJFUSaTqVariqJ8//7dtm24u7ubSqV0XVdV1TAM3/ez2SyNyDCMTCbTarWmpqZs247H
45QSLcsKgiCTyVADy7LQ3t7exMQEhNAwDACAaZoQwvGN0DAM2m+UH6nScZxkMkntDcNot9toY2Pj
8ePH41SN/wH/v6ZSqcR4nhdFURRFXdcrlcpgMIAQjkaj0WgUhiGEcDgcNptNjuPq9Xqr1aJ3IUJI
IpGgjjzPo/EErq+v37t3b3V1NRaLUSzbtgVBoJfVZ8+evX37ttPpuK6raZrneUtLS7du3QIARFGE
CCGU0O/fv//+/fulpaV2u53P5wEA4+MMBgPf969fvx6GIcuyLMtijHO5HHUkhCDTNHd3d2mE5XIZ
AFAsFul2/PdLJpNHR0d0SqiIouj7PnU0TRPV6/XXr1+DfyD7+/v/TsY8RTlFOUU5Rfk3oiB6Bfsn
EN1u9zcd131HdACyZgAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
curTm = SYS.time();
if(n == 0 && !time) { time = curTm; bTime = time - 30; }
size_en = Text1_en = Text2_en = prev1_en = next1_en = date_en = dateBeg_en = !n;
szVal = time - bTime;

//Archive size
if(n) {
	if(vCur >= 0)	cPos = aCur - vCur;
	if(cPos < 0)		cPos += aSize;
	Text3_text = Text3_text.parse(0,"\n") + "\n" + (cPos+1) + "(" + aSize + ")";
}
else Text3_text = Text3_text.parse(0,"\n");

//Events process
prevTime = time;
for(off = 0, ev_rez = ""; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Trend control","Event: "+evCur);
	if(evCur == "ws_LnAccept:/size") {
		size_value = SYS.time2str(szVal=SYS.str2time(size_value,false), false);
		time += 1;
	}
	else if(evCur == "ws_LnAccept:/dateBeg") { szVal = max(1, date_value-dateBeg_value); time += 1; }
	else if(evCur == "ws_LnAccept:/date") time = min(curTm, max(szVal,date_value));
	else if(evCur == "ws_BtPress:/curtime") {	
		if(n == 0) time = curTm;
		else vCur = aCur;
	}
	else if(evCur == "ws_BtPress:/prev") {
		if(n == 0) time = min(curTm, max(szVal,time-szVal));
		else vCur = -2;
	}
	else if(evCur == "ws_BtPress:/next") {
		if(n == 0) time = min(curTm, max(szVal,time+szVal)); 
		else vCur = -1;
	}
	else if(evCur == "ws_BtPress:/prev1") time = min(curTm, max(5*szVal,time-5*szVal));
	else if(evCur == "ws_BtPress:/next1") time = min(curTm, max(5*szVal,time+5*szVal));
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Time control
date_value = time;
if(n == 0 && prevTime != time) { bTime = time - szVal; doc=""; }
size_value = SYS.time2str(szVal, false);
dateBeg_value = date_value - szVal;

//Checking for correct linking with document
if(this.attr("pgOpen") && this.attr("pgOpenSrc").length && (tVl=this.wdgAt(this.attr("pgOpenSrc"),true)) && !tVl.ownerPage().attr("pgOpen"))
	this.wdgAt("/s/pg_control/pg_terminator",true).attrSet("pgOpen", true);','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;bordColor;',1741337145);
INSERT INTO wlb_Main VALUES('terminator','iVBORw0KGgoAAAANSUhEUgAAABcAAABACAIAAAB+w3u4AAAACXBIWXMAAAx1AAAMdQEteJR1AAAA
2UlEQVRYhe3QsWrFMAwFUDlVsGWDDa/ZAvn5138K+QEPITVkiSEJ8hvcoUPpUG9Fd5NAh4vU8/mR
UoKGOOcwpZTSZ4sCAF3jvSiiiCLKb0rOOcbIzH9WEAC2bTPGzPPMzESUc3bOXdfVdd00TcuyWGvv
+9Zan+cJAIhIROu6aq2ttY/HOwJACAERvfdKKe/9cRwAQET7vjPzMAylFCLq+56ZY4whhFLKOI6l
FGPMVxfvPQBYa2u9Ola9ct/L1+UPf2mPKKKIIooooogiiiii/GcFnXNKtRXp3l7PPUhJwkNfYgAA
AABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;',1577036562);
INSERT INTO wlb_Main VALUES('grph_panel','iVBORw0K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SwLer4sywKQkCiKqqp6nget3vd9SumZM2cajYbv+9A8i8WiZVnl
cvl7SR87diwWi3meNzExQSltNpuFQkHTNE3T+vr6gHKh9BhjmqYB5W5sbJBIJLJtqqGUappWqVSA
10OhkG3bjuOYI2bAD4TMEJFJo9EQGGOUUtu279+/TykFazHG1Wr10qVL+XweIaRpWiAQ0GU9GAwa
XYZMZEmSCGMMGvPRo0fhAfhydHT05s2bnZWFESTwBxJevXoFkzEoQFOCnocxppTCWH/w4MF0KR1q
hlzsdqvdnHPCGGs0GgghzvnCwsLk5GSxWKxUKqqqKooCSFhcXLx7966qqrFYDDD000zNGItGozD6
7Ny5EyFUq9VUVUUIjY2N2bbdnh/AQLJ3795Dhw51xvbLly+7du2CZ+hIHz58SCaTwWCwkwTJwMDA
+Ph4pyZjDHYWFxf379+PENrc3Ewmk22sf9eE2Lqu++zZsxMnToDDrutWKpUbN25cvHhxdHR0cHDw
woULnWqPHz8Wjx8/HolEWq1WLBazbdu27W/fvnV1dXmeNzs7q2kajIGDg4PNZtMwDPhdXV39lzXB
dUEQqtVqPB7nnGOMoVagEd26devkyZMPHz48f/6853mC7/uc87dv316/ft2yLFCAMejatWsLCwuc
c0C8LMv1ej0YDH4vIKiV4eHhT58+QeEDHh3H0TQtHo9TShljnPN//vkHMgQG4vPnz09OTnZ6v7m5
GQ6HO3d+/bOWTCb/BxJ38yV7WtdWAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
curTm = SYS.time();
tSek = tSek ? tSek : curTm;

//Archivators real list forming
if(f_start) {
	arch_items = tr("All");
	mods = SYS.Archive.nodeList("mod_");
	for(i_m = 0; i_m < mods.length; i_m++) {
		vas = SYS.Archive[mods[i_m]].nodeList("val_");
		for(i_va = 0; i_va < vas.length; i_va++)
			arch_items += "\n"+mods[i_m].slice(4)+"."+vas[i_va].slice(4);
	}

	trcPer_ = max(1, trcPer);
}

//Events process
for(/*ev_rez = "", */off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Trend control", "Event: "+evCur);
	if(evCur == "ws_LnAccept:/size")
		size_value = SYS.time2str(tSize=SYS.str2time(size_value,false), false);
	else if(evCur == "ws_LnAccept:/dateBeg")
		tSize = max(1, date_value-dateBeg_value);
	else if(evCur == "ws_BtPress:/curstimeBeg")	{ tSize = max(1, tSek-curSek); }
	else if(evCur == "ws_LnAccept:/date")		{ tSek = date_value; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/curtime")	{ tSek = curSek = curTm; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/curstime")	{ tSek = curSek; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/prev")		{ tSek -= tSize/2; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/prev1")		{ tSek -= 5*tSize; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/next")		{ tSek += tSize/2; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/next1")		{ tSek += 5*tSize; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_CombChange:/arch")	valArch=(arch_value==tr("All")) ? "" : arch_value;
	else if(evCur == "ws_CombChange:/type")	{ type = (type_value==tr("Spectrum"))?1:((type_value==tr("XY"))?2:0); if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/zoomIn")		{ sclVer *= 0.9; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/zoomOut")	{ sclVer *= 1.1; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/zoomOffUp")	{ sclVerOff += sclVer/10; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/zoomOffDown")	{ sclVerOff -= sclVer/10; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/zoomDef")	{ sclVer = 100, sclVerOff = 0; if(sclWin == true) sclWin = false; }
	else if(evCur == "ws_BtPress:/xZoomIn")	sclHor *= 0.9;
	else if(evCur == "ws_BtPress:/xZoomOut")	sclHor *= 1.1;
	else if(evCur == "ws_BtPress:/xZoomOffRight")sclHorOff += sclHor/10;
	else if(evCur == "ws_BtPress:/xZoomOffLeft") sclHorOff -= sclHor/10;
	else if(evCur == "ws_BtPress:/xZoomDef")	sclHor = 100, sclHorOff = 0;
	else if(evCur == "ws_BtToggleChange:/selWin") {
		if(selWin_value && !sclWinCtx.isEVal()) {
			sclWinCtx.tSek = tSek; sclWinCtx.tSize = tSize; sclWinCtx.sclVer = sclVer; sclWinCtx.sclVerOff = sclVerOff; }
		else if(!selWin_value && !sclWinCtx.isEVal() && !sclWinCtx.tSek.isEVal()) {
			tSek = sclWinCtx.tSek; tSize = sclWinCtx.tSize; sclVer = sclWinCtx.sclVer; sclVerOff = sclWinCtx.sclVerOff; }
		sclWin = selWin_value;
	}
	//else ev_rez += (evCur+"\n");
}
event = "";//ev_rez;

//scaleInfo
scaleInfo_arg0val = 1e4/sclVer; scaleInfo_arg1val = sclVerOff;
xScaleInfo_arg0val = 1e4/sclHor; xScaleInfo_arg1val = sclHorOff;

//Trend time control
date_value = tSek;
if(tSek < curTm) trcPer = 0; else trcPer = trcPer_, tSek = 0;
size_value = SYS.time2str(tSize, false);
dateBeg_value = date_value - tSize;

arch_value = valArch.length ? valArch : tr("All");
cursor_en = !curSek.isEVal() && type != 2;
if(cursor_en && type == 0) cursor_arg0val = SYS.strftime(curSek,"%d.%m.%Y %H:%M:%S") + ((curUSek && (tSize/1000) < 1)?"."+curUSek:"");
if(cursor_en && type == 1) cursor_arg0val = tr("Frequency")+":\n"+(1e6/(1e6*curSek+curUSek)).toFixed(2)+" "+tr("Hz");
type_value = (type==1)?tr("Spectrum"):((type==2)?tr("XY"):tr("Graph"));
xScaleInfo_en = xZoomIn_en = xZoomOut_en = xZoomOffRight_en = xZoomOffLeft_en = xZoomDef_en = (type==2);
selWin_en = (type == 0 && !sclWin.isEVal());
if(selWin_en)	selWin_value = sclWin;

//Checking for correct linking with trend
if(this.attr("pgOpen") && this.attr("pgOpenSrc").length && (tVl=this.wdgAt(this.attr("pgOpenSrc"),true)) && !tVl.ownerPage().attr("pgOpen"))
	this.wdgAt("/s/pg_control/pg_terminator",true).attrSet("pgOpen", true);','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;',1741337145);
INSERT INTO wlb_Main VALUES('cntrPasp','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAAYElEQVRoge3PQQ0AIBDAMMC/50MEj4ZkVbDtmVk/OzrgVQNaA1oDWgNa
A1oDWgNaA1oDWgNaA1oDWgNaA1oDWgNaA1oDWgNaA1oDWgNaA1oDWgNaA1oDWgNaA1oDWgPaBXKq
A32hLxFWAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
//if(f_start) focus = true;
//if(focus) SYS.messInfo("TEST","TEST 00");

wLst = aLst = EVAL_REAL;
pwName = pName;
pwName = pwName.slice(0,pwName.lastIndexOf("/"));
req = SYS.XMLNode("info").setAttr("path", pwName+"/%2fval");
doc_tmpl = "<body><table border=''1'' cellpadding=''2'' cellspacing=''0'' width=''100%''>";
if(SYS.cntrReq(req) == 0 && req.childSize()) {
	chldRoot = req.childGet(0);
	for(i = 0; i < chldRoot.childSize(); i++) {
		aID = chldRoot.childGet(i).attr("id");
		aDscr = chldRoot.childGet(i).attr("dscr");
		reqVl = SYS.XMLNode("get").setAttr("path", pwName+"/%2fval%2f"+aID);
		SYS.cntrReq(reqVl);
		aVl = reqVl.text();

		//Filter
		if(aID == "com" || aID == "close" || aID == "stop" || aVl.isEVal()) continue;
		if(aID == "aMax" || aID == "aMin") {
			if(aLst.isEVal()) { aLst = aVl; continue; }
			aDscr = tr("Alarm border");
			if(aID == "aMax" && aLst < aVl)			aVl = "" + aLst + " ... " + aVl;
			else if(aID == "aMin" && aLst > aVl)	aVl = "" + aVl + " ... " + aLst;
			else aVl = tr("not set");
		}
		else if(aID == "wMax" || aID == "wMin") {
			if(wLst.isEVal()) { wLst = aVl; continue; }
			aDscr = tr("Warning border");
			if(aID == "wMax" && wLst < aVl)			aVl = "" + wLst + " ... " + aVl;
			else if(aID == "wMin" && wLst > aVl)	aVl = ""+aVl+" ... "+wLst;
			else aVl = tr("not set");
		}
		//Put record
		doc_tmpl += "<tr><td>"+SYS.strEncode(aDscr,"HTML")+"</td><td>"+SYS.strEncode(aVl,"HTML")+"</td></tr>\n";
	}
}
doc_tmpl += "</table></body>";','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;bordColor;bordStyle;',1664089765);
INSERT INTO wlb_Main VALUES('ElViewGraph','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAiCAIAAABgN0jYAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAC30lEQVRYhe2XbU/aUBSAT1tAC4XCQFGYBeRF3ERwuKkzcYvzhTXbdGZL
zH6BP88s+7CYZfNlIU6jMqMx07Hgy1BwceIoUKDtPkDMNMuYEWhI+ny7t+eee57b3OYUmZqaikQi
UJtYrVagabpOpW112Ml6FADk9Wqb06JASqxUkg0U1SSrRpH/gqZpFAB0praJV5PDve0yBAi9bXzy
iRYrsdLk8gdG+5TohUlcZ+rye/BS8uWleIgCArY7D5xbkaPzB7j2trfrJoluri7uHjNCcRo1WNr9
t8yAEQhwgKDNDq/XZcon4yurOwPjYy491tJAzs5vuPzdRrU8Hl5f/vK9ogLFM8ym48HVo4HBfh2O
AQAgmG/w+chdO25offnimYlUFMJURsfYGN2sUVmcbXIAFKtvMuk5HnN39/d0UPk8x/Mcy2bVDUa1
AmSEcXQioCv1MssjAEJ+e/lDDLff77ShAIASNqtqIzg7PT2T0ugNJFGI0mj1OHb6/s3rxdA3DoDn
2XjshOd4DlCFLPd15+AsEQ3OLcWOj8/SeZ7jBIWy5HUqkwAAn/kZXFgjbU4cAHj2JMG32B3tHW6c
TTEZthCTTjN5UDncbRbKiALI6vTDT4eUeYbN8SiC8rwgryPMzTcsnp4+T0vqjBEQBEX/vnE5BXiO
YzNZASAeDi1u7mczrCBk1uYXfmkcj/tdoY8L+z+YQnTiMLwU2vM9HGlEE+lsjsszu7snLl8HEz0k
9bpEPMpiTUOP7qVi0Yyi0W0h9iJJs5GorAFN05XdoJIUP6M1jSQgNpKA2EgCYlP9jlhm9fjcZgNA
bufzSvjw9LrpylLUFUAwk93d63MApFMH2zUoILArM9Nbc3IAIZ1MXj+fCD9VbCrJpsqWreYvsSQg
NpKA2EgCYiMJiI0kIDaXeyECoEeUQv6PTwCXGsDLAq0A76pWztXxAqxfnJFRFBUIBM7HBoC3VS7q
KnQCmP4YUhT1GyVO83OL1qsxAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
var user_;
if(f_start)	{
	colorDef_ = color_ = "";
	allowSel = this.ownerWdg(true).attr("allowSelLst").length;
	perUserSel = this.ownerWdg(true).attr("perUserSel");
	attrLs = "addr;name;dscr;min;max;ed;log;prec;aMax;aMin;wMax;wMin;pModeA;pModeC;color";

	toCalcCycles = -max(1, 10000/this.ownerSess().period());
	toFastCalc = toFastCalc_ = false;
	defLinks = null;
}

toFastCalc = false;

if(colorDef_ != colorDef || !color.length)	color = colorDef_ = colorDef;
user = (perUserSel == true) ? this.ownerSess().user() : "";
if(f_start || user != user_) { loadFromSess = false; user_ = user; }
en = enForce || !name.isEVal();
if(allowSel && ((en && name.isEVal()) || !loadFromSess)) {
	//Load stored session''s assignments
	loadOK = false;
	if(!loadFromSess) {
		if(loadDef=(defLinks == null && f_start)) defLinks = new Object();
		for(off = 0; (lnA=attrLs.parse(0,";",off)).length; )
			if(lnA == "color") {
				if(loadDef)	defLinks[lnA] = color;
				if((tVl=this.attr(user+lnA,true)).length)	color = tVl;
			}
			else {
				if(loadDef)	defLinks[lnA] = this.link(lnA);
				if(!f_start) this.linkSet(lnA, "");
				if((wA=this.attr(user+lnA,true)).length) { this.linkSet(lnA, wA); loadOK = true; }
			}
		//if((cVal=this.attr("color",true)).length) this.color = cVal;
		loadFromSess = true;
	}
	if(!loadOK)	name = tr("<No selected>");
}
lb_sfr_text = name;
if(varEl.isEVal()) lb_val_arg0val = "-";
else if(typeof(SYS.nodeAt(addr).get()) == "boolean" && !digStts.isEVal() && digStts.length)
	lb_val_arg0val = (varEl^digRevers) ? digStts.parse(0,";").parse(0,"-") : digStts.parse(1,";").parse(0,"-");
else lb_val_arg0val = prec.isEVal() ? varEl.toPrecision(6) : ((prec < 0) ? varEl.toPrecision(abs(prec)) : ((log==true)?varEl.toExponential(prec):varEl.toFixed(prec)));
lb_val_color = lb_sfr_color = lb_ed_color = labColorGood;
if(varEl.isEVal() || (!min.isEVal() && max > min && varEl < min) || (!max.isEVal() && max > min && varEl > max)) lb_val_color = lb_sfr_color = lb_ed_color = "grey";
else if(!aMax.isEVal() && !aMin.isEVal() && aMax > aMin && (varEl >= aMax || varEl <= aMin)) lb_val_color = lb_sfr_color = lb_ed_color = labColorAlarm;
else if(!wMax.isEVal() && !wMin.isEVal() && wMax > wMin && (varEl >= wMax || varEl <= wMin)) lb_val_color = lb_sfr_color = lb_ed_color = labColorWarning;

lb_ed_text = ed.isEVal() ? "" : ed;

//Blink focused or linked with ElCadr
if(this.attr("focus") ||
		(!name.isEVal() && name.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == name))
{
	bordColor = (bordColor == "silver") ? "gray" : "silver";
	bordWidth =  2;
	toFastCalc = true;
} else bordWidth =  1, bordColor = "black";

//Check the regulator mode
if(!enMode.isEVal() && enMode) { 
	mode_en = true; 
	if(!pModeC.isEVal() && pModeC) mode_text = tr("C");
	else mode_text = pModeA.isEVal() ? "" : ((pModeA) ? tr("A") : tr("M")); 
}
else mode_en = false;

//Events process
toSave = false;
for(evRez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; )
	if(evCur == "key_mouseDblClick" || evCur == "usr_hideshow") bordStyle = (bordStyle==1) ? 3 : 1;
	//Store session''s assignments
	else if(evCur == "usr_set")	toSave = true, toCalcCycles = 2;

if(toSave || (f_start && allowSel && !loadOK)) {
	toClean = this.link("addr").length ? false : true;
	for(off = 0; (lnA=attrLs.parse(0,";",off)).length; )
		if(lnA == "color") {
			this.attrSet(user+lnA, ((toClean || color==colorDef)?"":color), true);
			if(toClean)	color = defLinks ? defLinks[lnA] : colorDef;
		}
		else {
			this.attrSet(user+lnA, toClean ? "" : this.link(lnA), true);
			if(toClean)	this.linkSet(lnA, defLinks ? defLinks[lnA] : "");
		}
}

if(!color_.length)	color_ = color;
if(bordStyle == 1 && color != "-")			color_ = color, color = "-";
else if(bordStyle != 1 && color == "-")	color = color_;
trClr_lineClr = (color.length && color != "-") ? color : "gray";

tipTool = "";
if(!name.isEVal())	tipTool += tr("Name")+": "+name+"\n";
if(!min.isEVal() && !max.isEVal() && max > min) tipTool += tr("Scale")+": "+min+" ... "+max+"\n";
if(!aMin.isEVal() && !aMax.isEVal() && aMax > aMin) tipTool += tr("Alarm border")+": "+aMin+" ... "+aMax+"\n";
if(!wMin.isEVal() && !wMax.isEVal() && wMax > wMin) tipTool += tr("Warning border")+": "+wMin+" ... "+wMax+"\n";
if(!dscr.isEVal()) {
	tipTool += tr("Description")+": "+tr(dscr)+"\n";
	tipStatus = dscr;
}

//Updating cycles processing for big processing periods of that page 
if(abs(toCalcCycles) > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calcIn\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = (sign(toCalcCycles) < 0 && lb_sfr_color != "grey") ? 0 : max(0, abs(toCalcCycles)-1)*sign(toCalcCycles);
}
if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',2000,'path;perm;name;dscr;en;active;geomW;geomH;tipTool;tipStatus;contextMenu;evProc;backColor;bordWidth;bordColor;bordStyle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pVIp3/eDVahQKIzPFIbRaDSq1WqInLgBIYSiKDJH
IoR4nicTJAmZUEUMNbqGwn9gIB6PyxFQVZVSGnoDdLvdZrMZMdTx8fEoOXEDvV5PLqOO4yiKous6
pTTI2JaXl8+0jJbL5RA5cQNXrlyRKadcRkOl29vblUolYijG2Cg5cQMIoaC/c7lcNjsTEggBY3cs
8P79+8HA/Fs8ksxdTDOjYWV5eW3txjDDGDs6OhoMBkIITdMAYGVlJVTr6U8/BwamkEoM47dS6fXr
1+M1r16FZ/lJrxfcT3kETNM0TfM8EUZHAJ+q+x/h0sC0cWlg2rg0MG1cGpg2Lg1MG5cGpg2KENra
2hov4pxTSl3XHf+xZCqgqqouX7tmmqbFrGJxod1uq6pqmgMAlM/ni8UiADx9utXvnSwuLiKEnj9/
vru7OxrIdRxFVYeZU/fgF2/A9/1avSZ/GIYhuBBCEEoAoN1u7eyUAeDo6CiTybx5sw8An6/dyOfz
pVJJ7tN1Xc9kMoVC4fDwcGFhQQhRKpVu3boFAO/evrUsa+IGFEVZu/FxmyeE2N3dlac3hBC5wQsE
O5VKo9m0LAtjnEgkEokEADDG9vf3+/1BJpNhjDmuaxgGIcTn/qRbDwDUdd0ffnz8T8XlnU+ODFzX
zedyuVyuVqshhBqNxszMTCqVyufz9Xp9r1YDAErpm/19AGAs6onVeUAxxqur15nFBPz1BYdgIoQA
BJRQx7EBECCghKia1mq1Dg4OLcZ83zcMI5lMOa7LbPvtu3eu563fvGnb9uMnT765e1dRlGq1es4N
ZDQDCGWz2YHSNwxDVVXTsnJzs/LrHUKo3bYFCO75udlZVdMQQslkIp1O9xFqtVoAEIvFCMaJZNKx
7YODAwC4vbkpT8wd55STwAsHunfv3qkHRqcidLp/geLoEEIEXymFEH8CerzvyaSOoEAAAAAASUVO
RK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) save_active = false;
progLbUpdt = progSelPrg = progSelCom = progSelTp = false;
var comOp = "";

//Events for commands process
for(ev_rez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo(this.nodePath(),"Event: "+evCur);
	if(evCur == "ws_BtPress:/progAdd") {
		if(!progNm_value.length) progNm_value = tr("New program");
		SYS.BD.nodeAt(dbDB,".").SQLReq("INSERT INTO "+dbProgs+" (name) VALUES (''"+progNm_value+"'');");
		lib_value = progNm_value;
		progLbUpdt = progSelPrg = progSelCom = true; prog_value = "";
	}
	else if(evCur == "ws_BtPress:/progCopy") {
		if(!progNm_value.length) progNm_value = tr("New program");
		rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		if(rez.length > 1) {
			SYS.BD.nodeAt(dbDB,".").SQLReq("INSERT INTO "+dbProgs+" (name, prgTxt) VALUES (''"+progNm_value+"'', ''"+rez[1][0].replace("''","''''")+"'');");
			lib_value = progNm_value;
			progLbUpdt = progSelPrg = progSelCom = true; prog_value = "";
		}
	}
	else if(evCur == "ws_BtPress:/progRename") {
		SYS.BD.nodeAt(dbDB,".").SQLReq("UPDATE "+dbProgs+" SET name=''"+progNm_value+"'' WHERE name=''"+lib_value+"'';");
		lib_value = progNm_value;
		progLbUpdt = progSelPrg = progSelCom = true; prog_value = "";
	}
	else if(evCur == "dlg_Apply:/progDel" && lib_value.length) {
	//else if(evCur == "ws_BtPress:/progDel" && lib_value.length) {
		SYS.BD.nodeAt(dbDB,".").SQLReq("DELETE FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		lib_value = "";
		progLbUpdt = progSelPrg = true;
	}
	else if(evCur == "ws_TreeChange:/lib")	{ progSelPrg = progSelCom = true; prog_value = ""; }
	else if(evCur == "ws_BtPress:/comAdd")	comOp = "add";
	else if(evCur == "ws_BtPress:/comIns")	comOp = "ins";
	else if(evCur == "ws_BtPress:/comInAdd")	comOp = "inAdd";
	else if(evCur == "ws_BtPress:/comDel") comOp = "del";
	else if(evCur == "ws_BtPress:/comUp")	comOp = "up";
	else if(evCur == "ws_BtPress:/comDwn") comOp = "dwn";
	else if(evCur == "ws_TreeChange:/prog"){ progSelCom = true; save_active = false; }
	else if(evCur == "ws_CombChange:/type"){ progSelTp = true; save_active = true; }
	else if(evCur == "ws_BtPress:/save" && prog_value.length) {
		rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		if(rez.length > 1) {
			comTree = selNd = SYS.XMLNode("prg"); comTree.load(rez[1][0]);
			parentPath = "";
			for(offPV = 0; (vIt=prog_value.parsePath(0,offPV)).length; ) {
				if(offPV < prog_value.length) parentPath += "/"+vIt;
				selNd = selNd.childGet((i_c=vIt.toInt()));
			}
			if(selNd) {
				selNd.setAttr("id", type_value);
				selNd.setAttr("name", name_value);
				selNd.setAttr("descr", descr_value);
				selNd.setAttr("backgrnd", backgrnd_value);
				for(i_a = 1; i_a <= 5; i_a++) {
					argObj = this["arg"+i_a];
					argVal = argObj.attr("value");
					if(!argObj.attr("min").isEVal()) argVal = max(argVal,argObj.attr("min"));
					if(!argObj.attr("max").isEVal()) argVal = min(argVal,argObj.attr("max"));
					selNd.setAttr("arg"+i_a, argVal);
				}
				SYS.BD.nodeAt(dbDB,".").SQLReq("UPDATE "+dbProgs+" SET prgTxt=''"+comTree.save().replace("''","''''")+"'' WHERE name=''"+lib_value+"'';");
				prog_value = parentPath+"/"+i_c+":"+(name_value.length?name_value:type_value);
				//SYS.messInfo(this.nodePath(),"prog_value: "+prog_value);
				progSelPrg = true;
			}
		}
		save_active = false;
	}
	else if(evCur == "ws_BtPress:/progExport" && lib_value.length) {
		rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		if(rez.length > 1) {
			expTree = SYS.XMLNode("OpenSCADA_Prescr");
			expTree.childAdd("prg").load(rez[1][0]);
			expTree.childGet(0).setAttr("id",lib_value);
			progExport_value = tr("Prescription-Program")+" (*.prscr)|"+tr("Prescription file")+"|"+lib_value.replace("/","_")+".prscr\n"+expTree.save(0x05);
		}
	} 
	//else if(evCur == "ws_BtPress:/progImport")
	else if(evCur == "ws_BtLoad:/progImport" && progImport_value.length && (pCtx=progImport_value.indexOf("\n")) > 0)
	{
		expTree = SYS.XMLNode("OpenSCADA_Prescr");
		expTree.load(progImport_value.slice(pCtx+1));
		progImport_value = progImport_value.slice(0,pCtx);
		// Save all recors to DB
		for(i_p = 0; i_p < expTree.childSize(); i_p++) {
			treeNd = expTree.childGet(i_p);
			if(treeNd.name() != "prg") continue;
			if(lib_items.search(treeNd.attr("id")+"(\n|\\z)") < 0)
				SYS.BD.nodeAt(dbDB,".").SQLReq("INSERT INTO "+dbProgs+" (name,prgTxt) VALUES (''"+treeNd.attr("id")+"'',''"+treeNd.save().replace("''","''''")+"'');");
			else
				SYS.BD.nodeAt(dbDB,".").SQLReq("UPDATE "+dbProgs+" SET prgTxt=''"+treeNd.save().replace("''","''''")+"'' WHERE name=''"+treeNd.attr("id")+"'';");	
		}
		progLbUpdt = progSelPrg = progSelCom = true;
	}
	else if(evCur == "ws_LnAccept:/name" || evCur == "ws_TxtAccept:/descr" || evCur == "ws_ChkChange:/backgrnd" || (rez=evCur.match("ws_LnAccept:\\/arg(\\d)")).length)	save_active = true;
	else if((rez=evCur.match("ws_FocusOut:\\/arg(\\d)")).length) {
		argObj = this["arg"+rez[1]];
		argVal = argObj.attr("value");
		if(!argObj.attr("min").isEVal()) argVal = max(argVal,argObj.attr("min"));
		if(!argObj.attr("max").isEVal()) argVal = min(argVal,argObj.attr("max"));
		argObj.attrSet("value",argVal);
	}
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Get programms into library list
if(f_start || progLbUpdt) {
	rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT name FROM "+dbProgs+";");
	lib_items = "";
	for(i_p = 1; i_p < rez.length; i_p++)
		lib_items += ((i_p==1)?"":"\n")+rez[i_p][0];
	lib_items = lib_items.split("\n").sort().join("\n");
	progNm_cfg = lib_items;
}
progCopy_active = progRename_active = progDel_active = progExport_active = comAdd_active = lib_value.length;

//Command operations process
if(comOp.length && lib_value.length) {
	rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
	if(rez.length > 1) {
		comTree = selNd = SYS.XMLNode("prg");
		comTree.load(rez[1][0]);
		parentPath = "";
		if(prog_value.length) {
			for(offPV = 0; (vIt=prog_value.parsePath(0,offPV)).length; ) {
				if(offPV < prog_value.length) parentPath += "/"+vIt;
				selNd = selNd.childGet((i_c=vIt.toInt()));
			}
			selNd = selNd.parent();
		}
		if(comOp == "add") {
			selNd.childAdd("com").setAttr("id",tr("New command"));
			prog_value = parentPath+"/"+(selNd.childSize()-1)+":"+tr("New command");
		}
		else {
			// Get selected command node and position
			if(i_c < selNd.childSize()) {
				if(comOp == "inAdd") {
					selNd.childGet(i_c).childAdd("com").setAttr("id",tr("New command"));
					prog_value = parentPath+"/"+i_c+":"+selNd.childGet(i_c).attr("id")+"/"+(selNd.childGet(i_c).childSize()-1)+":"+tr("New command");
				}
				else if(comOp == "ins") {
					selNd.childIns(i_c,"com").setAttr("id",tr("New command"));
					prog_value = parentPath+"/"+i_c+":"+tr("New command");
				}
				else if(comOp == "del") {
					selNd.childDel(i_c);
					if(!selNd.childSize())	prog_value = parentPath;
					else {
						if(i_c >= selNd.childSize()) i_c = selNd.childSize()-1;
						prog_value = parentPath+"/"+i_c+":"+selNd.childGet(i_c).attr("id");
					}
				}
				else if((comOp == "up" && i_c) || (comOp == "dwn" && i_c < (selNd.childSize()-1))) {
					storeNd = selNd.childGet(i_c);
					selNd.childDel(i_c);
					if(comOp == "up") i_c--; else i_c++;
					selNd.childIns(i_c,storeNd);
					prog_value = parentPath+"/"+i_c+":"+storeNd.attr("id");
				}
			}
		}

		//Save changes
		SYS.BD.nodeAt(dbDB,".").SQLReq("UPDATE "+dbProgs+" SET prgTxt=''"+comTree.save().replace("''","''''")+"'' WHERE name=''"+lib_value+"'';");
		progSelPrg = progSelCom = true;
	}
}

//Get commands of selected program into commands list
if(f_start || progSelPrg) {
	prog_items = "";
	if(lib_value.length) {
		rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		if(rez.length > 1) {
			comTree = SYS.XMLNode("prg");
			comTree.load(rez[1][0]);
			curNd = comTree; curPos = 0; curPath = ""; comLevs = new Array();
			for( ; true; curPos++) {
				if(curPos >= curNd.childSize()) {
					if(!comLevs.length) break;
					stObj = comLevs.pop();
					curNd = curNd.parent();
					curPos = stObj.curPos; curPath = stObj.curPath;
					continue;
				}
				prog_items += (prog_items.length?"\n":"")+(wPath=curPath+"/"+curPos+":"+curNd.childGet(curPos).attr(curNd.childGet(curPos).attr("name").length?"name":"id"));
				if(curNd.childGet(curPos).childSize()) {
					curNd = curNd.childGet(curPos);
					comLevs.push((stObj=new Object()));
					stObj.curPos = curPos; stObj.curPath = curPath;
					curPos = -1; curPath = wPath;
					continue;
				}
			}
		}
	}
	labProg_arg0val = progNm_value = lib_value;
}
comIns_active = comInAdd_active = comDel_active = comUp_active = comDwn_active = prog_value.length;

//Get command properties
if(f_start || progSelCom || progSelTp) {
	if(!progSelTp) name_value = type_value = descr_value = "", backgrnd_value = false;
	for(i_a = 1; i_a <= 5; i_a++) {
		this["labArg"+i_a].attrSet("en",false).attrSet("text","");
		this["arg"+i_a].attrSet("en",false).attrSet("value","");
	}

	// Types/commands list load
	if(f_start && !prExtComLs.isEVal()) {
		type_items = descr_value = ""; backgrnd_value = false;
		for(var c_nm in prExtComLs)
			if(c_nm != "Error" && c_nm != "Stop")
				type_items += (type_items.length?"\n":"")+c_nm;
	}

	if(prog_value.length) {
		selNd = false;
		rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT prgTxt FROM "+dbProgs+" WHERE name=''"+lib_value+"'';");
		if(rez.length > 1) {
			selNd = SYS.XMLNode("prg"); selNd.load(rez[1][0]);
			for(off = 0; (vIt=prog_value.parsePath(0,off)).length; ) selNd = selNd.childGet(vIt.toInt());
		}
		if(!progSelTp && selNd) {
			name_value = selNd.attr("name");
			type_value = selNd.attr("id");
			descr_value = selNd.attr("descr");
			backgrnd_value = selNd.attr("backgrnd");
		}
		// Load command argument''s names
		if(!prExtComLs.isEVal() && !prExtComLs[type_value].isEVal()) {
			if((progSelTp || !descr_value.length) && (descr_value=prExtComLs[type_value]["descr"]).isEVal()) descr_value = "";
			for(i_a = 1; i_a <= 5; i_a++) {
				argLab = prExtComLs[type_value]["arg"+i_a];
				if(argLab.isEVal() || !argLab.length)	continue;
				off = 0;
				this["labArg"+i_a].attrSet("en",true).attrSet("text",argLab.parse(0,"|",off));
				argBord = argLab.parse(0,"|",off);
				this["arg"+i_a].attrSet("min",argBord.length?argBord.toReal():EVAL_REAL);
				argBord = argLab.parse(0,"|",off);
				this["arg"+i_a].attrSet("max",argBord.length?argBord.toReal():EVAL_REAL);
				this["arg"+i_a].attrSet("en",true);
			}
		}

		// Load arguments'' values
		if(!progSelTp && selNd)
			for(i_a = 1; selNd && i_a <= 5; i_a++) this["arg"+i_a].attrSet("value",selNd.attr("arg"+i_a));
	}
}
type_active = prog_value.length;','','',100,'name;dscr;geomW;geomH;evProc;pgGrp;backColor;bordWidth;bordColor;bordStyle;',1584085757);
INSERT INTO wlb_Main VALUES('prescrRun','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAqCAIAAACMZMq1AAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA0SAAANOgHo3ZneAAAC60lEQVRYhe2ZTU8TQRyH//Oy2+22Ai0hGiqRSvTiAb0YI1y5eODolYQP
0LvfhJPh6BW+gIkxUeNZ8QU1bYFYCsW+zs67h01ILRSLWueyz2Ezmfll5vdcZg+DSqVSOp2GIRzW
apO5vEcJQiiesdb2BxBC1gJCYK1FCMXf0xRCCOJlAM55KpU6DcfJGGvjfP8OvxwxrB5jjAZBcIFA
GKSq5TJCYCzCBButpBBK62wY9iKRCQNMCFgrlWI9dnOhWK/VuywKAl8bAKOk0gTjdBj8aLQmchNK
CKUtJaANygS+wSQdpK9endmvlJnQFGMDWknj+ZRz7nu+lNKAWVy8R/D5DtZaGoZhEATDBObmi3Pz
xWGrZykUCsYAIVgpRSntXzqdObs0NXV39CP64ZxTa+1cYXZgx2arpbXO56b6J62FnY+fut3uycmJ
53lSSq2U53lBmKEYtTudlO9rrVgkCCG+7+Xz077vDTgMDP6STqdDAeDWQpFSWt47yOXynXZzrjBb
3T+QUhbnb1Sqe7npmeOj+vXZa5SQdzs7KysrhBCMsTEGY3x202Hz/xyl1Pb2NgUAIeW3cuX+g4eb
m5vLy8ssipRSWusoijJXJjc2NtbX13e/fL1ZnLcWlpaWMpnMf+j3WxhjW1tbGACklOl0sPv58+rq
ar1+qGK0VkpVK5W1tbVms5nNZoUQrjufAwaAiPMwDI+PDt++eT2RDSPOhZSMsVa7nZua+PjhPY+6
GKNWu+267TlQhNCLl68opdZajPHB9xoAxNdzubIXh44bP+LBBVeyKygAtFstpZW1gBEihERCBik/
n8+77jYSVCm98PjJKFEjeeP503EXuiwUIXh0Z2aUqODRs+fj7nNpKADcnvZHiTKmx1zmT/gff5yx
kgi4JhFwTSLgmkTANYmAaxIB1yQCrkkEXJMIuCYRcE0i4JpEwDWJgGsoADQajVGinEcIQAgx8CLo
Cs45AKBSqTTwdn0xxpixVbo0vV7vJ+y1bVFUL+7MAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
//Get programms into library list
if(f_start) {
	prEndRun = true;
	lib_value = "";
	btStop_active = false;
	prCnt = 0;
}
if(prExtMode.isEVal() || prExtProg.isEVal() || prExtStartTm.isEVal() || prExtCurCom.isEVal() || prExtWork.isEVal())
	return;

//Check for program list update
if(f_start || (prCnt%max(1,f_frq)) == 0) {
	rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT name FROM "+dbProgs+";");
	curPrLst = "";
	for(i_p = 1; i_p < rez.length; i_p++)
		curPrLst += (curPrLst.length?"\n":"")+rez[i_p][0];
	curPrLst = curPrLst.split("\n").sort().join("\n");
	if(curPrLst != lib_items) lib_items = curPrLst;
}

//Check for ready
btStart_active = prExtProg.length;

if(prExtMode <= 0)		{ btStart_img = "start"; btStart_value = false; btStop_active = btPass_active = false; }
else if(prExtMode == 1){ btStart_img = "pause"; btStart_value = false; btStop_active = btPass_active = true; prEndRun = false; }
else if(prExtMode == 2){ btStart_img = "start"; btStart_value = true; btStop_active = true; btPass_active = true; }

//Prepare call status document
pTxt = "";
if((prExtMode == 1 || prExtMode == 2 || prExtMode == 3 || ((prCnt%max(1,f_frq)) == 0 && prExtMode <= 0))) {
	pTxt = "<body>";
	off = 0;
	labProg_arg0val = prExtWork.attr("name");

	if(prExtMode < 0 && !prEndRun) {
		prEndRun = true;
		prog_aCur = -1;	//Archiving
	}

	//Build result table
	pTxt += "<i>"+tr("Program:")+" </i>"+Special.FLibSYS.strEnc2HTML(labProg_arg0val)+"<br/>\n";
	if(prExtMode > 0 || (prExtMode < 0 && prog_aCur < 0)) {
		pTxt += "<i>"+tr("Started:")+" </i>"+SYS.strftime(prExtStartTm)+"<br/>\n";
		if(prog_aCur < 0) {
			if(prExtMode == -1) pTxt += "<i>"+tr("Status:")+" </i>"+tr("Error")+"<br/>\n";
			else if(prExtMode == -2) pTxt += "<i>"+tr("Status:")+" </i>"+tr("Successful finish")+"<br/>\n";
			else if(prExtMode == -3) pTxt += "<i>"+tr("Status:")+" </i>"+tr("Terminated")+"<br/>\n";
			else pTxt += "<i>"+tr("Status:")+" </i>"+tr("Unknown")+"<br/>\n";
		}
	}
	if(prExtMode == 1) {
		wtm = max(0,prExtWork.attr("wtm").toInt()-(SYS.time()-prExtStartTm));
		pTxt += "<i>"+tr("Remain:")+" </i>"+(wtm/3600).toString(10)+":"+((wtm/60)%60).toString(10,2)+":"+(wtm%60).toString(10,2)+"<br/>";
	}
	pTxt += "<table border=''1'' cellpadding=''2'' cellspacing=''0'' width=''100%''>\n"
					"<tr><th>"+tr("#")+"</th><th>"+tr("Command")+"</th><th>"+tr("Comments")+"</th><th>"+tr("Time")+"</th>";
	pTxt += "</tr>\n";

	for(comElN = prExtWork, comPos = 0, comLev = 0, comCur = true, comAftCur = false, comN = "", comPath = ""; true; comPos++) {
		if(comPos >= comElN.childSize()) {
			if((comElN=comElN.parent())) {
				comLev--;
				comPos = comElN.attr("seekPos").toInt();
				comCur = comElN.attr("comCur").toInt();
				comN = comElN.attr("comN");
				comPath = comElN.attr("comPath");
				continue;
			}
			break;
		}
		comEl = comElN.childGet(comPos);
		comN_ = (comN.length?comN+":":"") + comPos;
		comPath_ = (comPath.length?comPath+": ":"") + (comEl.attr("name").length?comEl.attr("name"):comEl.attr("id"));
		isCurCmd = comCur && (tmpComLv=prExtCurCom.parse(comLev,":")).length && tmpComLv.toInt() == comPos && !prExtCurCom.parse(comLev+1,":").length;
		if(isCurCmd) comAftCur = true;
		rezVl = comEl.attr("rez");
		toMark = true;
		if((isCurCmd || (rezVl.length && rezVl.toInt() == 0)) && (prExtMode > 0 || (prExtMode < 0 && prog_aCur < 0)))				pTxt += "<tr class=''"+(prEndRun?"err":"run")+"''>";
		else if(!comAftCur && (prExtMode > 0 || (prExtMode < 0 && prog_aCur < 0)))	pTxt += "<tr class=''"+((rezVl.toInt()==-10)?"skip":((rezVl.toInt()<0)?"err":"pass"))+"''>";
		else { pTxt += "<tr>"; toMark = false; }
		pTxt += "<td>"+comN_+"</td>";
		pTxt += "<td>"+Special.FLibSYS.strEnc2HTML(comPath_)+(comEl.attr("backgrnd")?" "+tr("(background)"):"")+"</td><td>";
		if(toMark && rezVl.parse(1,":").length) pTxt += Special.FLibSYS.strEnc2HTML(rezVl.parse(1,":"));
		else {
			//Arguments values
			for(i_a = 1; i_a <= 5; i_a++)
				if(comEl.attr("labArg"+i_a).length)
					pTxt += Special.FLibSYS.strEnc2HTML(comEl.attr("labArg"+i_a).parse(0,"|")+" = "+comEl.attr("arg"+i_a)+"; ");
		}
		pTxt += "</td>";
		comTm = comEl.attr("tm").toInt();
		if(toMark && comTm) {
			comTm -= prExtStartTm;
			pTxt += "<td>"+(comTm/3600).toString(10)+":"+
									((comTm/60)%60).toString(10,2)+":"+
									(comTm%60).toString(10,2)+"</td>";
		}
		else pTxt += "<td>---</td>";
		pTxt += "</tr>\n";

		if(comEl.childSize()) {
			comElN.setAttr("seekPos",comPos).setAttr("comCur",comCur).setAttr("comN",comN).setAttr("comPath",comPath);
			comElN = comEl;
			comCur = comCur && (tmpComLv=prExtCurCom.parse(comLev,":")).length && tmpComLv.toInt() == comPos;
			comPos = -1; comLev++; comN = comN_; comPath = comPath_;
		}
	}
	pTxt += "</table></body>";
}

if(!prExtProg.length && f_start) pTxt = "<body><H1>"+tr("Select a program please")+"</H1></body>";

if(pTxt.length) {
	this.prog.attrSet("aDoc",pTxt);
	if(this.prog.attr("aCur") == this.prog.attr("vCur")) prog_doc = pTxt;
}

prCnt++;

//Events for commands process
for(ev_rez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messDebug("Prescription edit control","Event: "+evCur);
	if(evCur == "ws_TreeChange:/lib") {
		prog_vCur = prog_aCur;
		prExtProg = lib_value;
	}
	else if(evCur == "ws_BtPress:/btStart") {
		if(prExtMode <= 0)	prExtMode = 1;
		else if(prExtMode == 1)	prExtMode = 2;
		prog_vCur = prog_aCur;
	}
	else if(evCur == "ws_BtRelease:/btStart")	prExtMode = 1;
	else if(evCur == "ws_BtPress:/btStop" && prExtMode >= 0) {
		prExtMode = prExtCurCom = 0;
		prog_vCur = prog_aCur;
	}
	else if(evCur == "ws_BtPress:/btPass" && (prExtMode == 1 || prExtMode == 2))	prExtMode = 3;
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Programm select process
if(!prExtProg.length || lib_items.search("^"+prExtProg.replace(new RegExp("(\\[|\\]|\\(|\\)|\\.|\\+|\\*|\\?|\\^|\\$|\\<|\\>|\\{|\\}|\\\\)","g"),"\\$1")+"$","m") < 0)
	prExtProg = lib_value;
else lib_value = prExtProg;','','',200,'name;dscr;geomW;geomH;evProc;pgGrp;backColor;bordWidth;bordColor;',1584085757);
INSERT INTO wlb_Main VALUES('prescrRunSimple','iVBORw0KGgoAAAANSUhEUgAAAEAAAAArCAIAAABHOBkQAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAE0ElEQVRoge2Vy28TVxSHz525nvG8HNtjO2+TEBJqAoEoJBREqSLooqrK
gj1do6Z/BH9EkYBVoMuyYAeqIkpbYlKkQNqkOAlJbEwcO37FnhnP2PPsghRBFsVQpCmSv9Xo3qtz
ft89Mxp0+/btSqUCHyeJRAJXKpVUKuV2kvckl8vhZs49mb2fq5nIqLV1HBja10ExLMd4CoVyOCxm
t7IeiiJJ0ssKNGkXSjtBMShJNYGl6oalNwy/j1XqJk06St2MhPwzP82Mjh2nGZZnqEKhFIqIsqRi
5NAcVymV/KJYym8blk1RlK7rvM/v9/H/nq0pAdtGJ06fIZXc/OL6vdSGB5N97XxVt5KZQGY9fXAg
spaVSIDB3sDjP/7q7BtcW0mNDnftqLD6dP3MZ8PpbZNH1ZVk9suvvnAI4t79WcpD7u8U1jOFrv4h
uSgHaANz3tVkJtTZK+e2/ALFRqIby4nJc+femo1oRuANY4omCTAti2UZQzf9wXB7KOihvASC7ex2
uD1i6rrI40ylTgJ0BZlnWZki7GJZCQrsxtpG3/5+7KFIhHTdAJKiMKEqUlVWajUVEEF7MCv4u9sj
Yrg9GAiGRf/b8zQTeuDQMEtjRIYG+7XVVPHo6EiAp9Kb2e7eruqOAlpR4LiRI8exreXLksDzjm07
iCAQwOFDFiACkbbRrzZshvFytJPmuGNjRwM8HXi+2RPt5TBZKWVJX+94dzTU2a3KCkdjoFnu2JFm
sqHp6enmP2JT16SaEQz4Xl9sqLJmkX6Bba5CvaroYvDNCpqiGcjv45qM8YpkMokBwLZthvHu2Ws0
GggQRVOvL9I0hUhtz0maFeimW2LKKwb39qIZnmaaLrGnIAD0RXvGRo89XV6VZAUA2nx87JOD6xtJ
nuN8PmHp6bJlO+DY0d6e3p7ue/d/oSkae5p69z44uq5T1O6dbmVzuwIIEbNzjw4fGfn8wAGWZRcW
Fh7+/igSCjX0xuzDxNfnz0ciEVVVZ2ZmdF33YHzy0wlwHFcEJEn2+YSXz4/mH6+trWMAkBUFY8/4
+Pj169ej0ejZs2cTiYSsKMVSeez4eD6fv3r1KsdxU1NTN2/c4DnGNE3Htl0RME1DURRJknied2wH
Xk6gXq+LIk8QRDwev3v3biwWY1lWq8myLAmCsLS0dOfOnVgsxjCMaZq245im6bg0AcO0TEubvvnD
Nxcv2o69K+AThOfpdKVSuXDhwuTkJEmSqVRyf/++DtQxPz8/MTFx+fLltra2ZDJJEMhxHNM0bbcm
YJkCz3839S0A2C/+ESBJYnCg79q1a6dOnVpcXHwYjw/070OI6GiPrKw8i8fjIyMj+Xz+1q0fT588
sfJsTdd1260JGIZuGLsyprUrUFPVrq5Omvb+ufAEEAwNDXAsu7mZsSxrePhQsVSMP/iN47nxsVHL
tlVV+/nXBwR651/4B8F27FetTcvcFSgWy7SXBQCG4wGgVK6WylWCwFpdf5HJAoDQ5geArVwBAEKh
MCLcSb8HRVGSG0kMAEFRvHTpktt53pnV1ZW5ubn/xV3+F1oCbtMScJuWgNu0BNymJeA2LQG3aQm4
TUvAbVoCbtMScJuWgNt89AIYAHZ2yleufO92kndGUzWMMV5eXs5ms+n0C7fzvA+yLP8NrZUdC69n
Pt0AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
//Get programms into library list
if(f_start) {
	prEndRun = true;
	lib_name = lib_selValue = "";
	btStop_active = false;
	prCnt = 0;
}
if(prExtMode.isEVal() || prExtProg.isEVal() || prExtStartTm.isEVal() || prExtCurCom.isEVal() || prExtWork.isEVal())
	return;

//Check for program list update
if(f_start || (prCnt%max(1,f_frq)) == 0) {
	rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT name FROM "+dbProgs+";");
	curPrLst = "";
	for(i_p = 1; i_p < rez.length; i_p++)
		curPrLst += (curPrLst.length?"\n":"")+rez[i_p][0];
	curPrLst = curPrLst.split("\n").sort().join("\n");
	if(curPrLst != lib_items) lib_items = curPrLst;
}

//Check for ready
btStart_active = prExtProg.length;

if(prExtMode <= 0)		{ btStart_img = "start"; btStart_value = false; btStop_active = btPass_active = false; }
else if(prExtMode == 1){ btStart_img = "pause"; btStart_value = false; btStop_active = btPass_active = true; prEndRun = false; }
else if(prExtMode == 2){ btStart_img = "start"; btStart_value = true; btStop_active = true; btPass_active = true; }

//Prepare call status document
pTxt = "";
if((prExtMode == 1 || prExtMode == 2 || prExtMode == 3 || ((prCnt%max(1,f_frq)) == 0 && prExtMode <= 0))) {
	pTxt = "<body>";
	//off = 0;
	labProg_arg0val = prExtWork.attr("name");

	if(prExtMode < 0 && !prEndRun)	prEndRun = true;

	//Build result
	pTxt += "<i>"+tr("Program:")+" </i>"+Special.FLibSYS.strEnc2HTML(lib_name);
	if(prExtMode > 0) pTxt += "\n<br/><i>"+tr("Started:")+" </i>"+SYS.strftime(prExtStartTm);
	if(prExtMode == 1) {
		wtm = max(0,prExtWork.attr("wtm").toInt()-(SYS.time()-prExtStartTm));
		pTxt += "\n<br/><i>"+tr("Remain:")+" </i>"+(wtm/3600).toString(10)+":"+((wtm/60)%60).toString(10,2)+":"+(wtm%60).toString(10,2);
	}
	if(prExtMode > 0 && prExtCurCom.parse(0,":").toInt() < prExtWork.childSize()) {
		pTxt += "<table border=''1'' cellpadding=''2'' cellspacing=''0'' width=''100%''>\n"
					"<tr><th>"+tr("#")+"</th><th>"+tr("Command")+"</th><th>"+tr("Comments")+"</th><th>"+tr("Time")+"</th></tr>\n";
		for(comElN = prExtWork, comPos = 0, comLev = 0, comN = "", comPath = ""; true; comPos++) {
			if(comPos >= comElN.childSize()) {
				if((comElN=comElN.parent())) {
					comLev--;
					comPos = comElN.attr("seekPos2").toInt();
					comN = comElN.attr("comN2");
					comPath = comElN.attr("comPath2");
					continue;
				}
				break;
			}
			comEl = comElN.childGet(comPos);
			comN_ = (comN.length?comN+":":"") + comPos;
			comPath_ = (comPath.length?comPath+": ":"") + (comEl.attr("name").length?comEl.attr("name"):comEl.attr("id"));
			rezVl = comEl.attr("rez");
			toMark = true;
			if((rezVl.length && rezVl.toInt() == 0)) {
				pTxt += "<tr class=''" + (prEndRun?"err":"run") + "''>" +
					"<td>" + comN_ + "</td>"+
					"<td>" + Special.FLibSYS.strEnc2HTML(comPath_) + "</td><td>";
				if(toMark && rezVl.parse(1,":").length) pTxt += Special.FLibSYS.strEnc2HTML(rezVl.parse(1,":"));
				else {
					//Arguments values
					for(i_a = 1; i_a <= 5; i_a++)
						if(comEl.attr("labArg"+i_a).length)
							pTxt += Special.FLibSYS.strEnc2HTML(comEl.attr("labArg"+i_a).parse(0,"|")+" = "+comEl.attr("arg"+i_a)+"; ");
				}
				pTxt += "</td>";
				comTm = comEl.attr("tm").toInt();
				if(toMark && comTm) {
					comTm -= prExtStartTm;
					pTxt += "<td>"+(comTm/3600).toString(10)+":"+
										((comTm/60)%60).toString(10,2)+":"+
										(comTm%60).toString(10,2)+"</td>";
				}
				else pTxt += "<td>---</td>";
				pTxt += "</tr>\n";
			}

			if(comEl.childSize()) {
				comElN.setAttr("seekPos2",comPos).setAttr("comN2",comN).setAttr("comPath2",comPath);
				comElN = comEl;
				comPos = -1; comLev++; comN = comN_; comPath = comPath_;
			}
		}
		pTxt += "</table>";

		/*comN = 0;
		if(prExtMode == 0)	comEl = prExtWork.childGet(0);
		else {
			comEl = prExtWork;
			for(off = 0; comEl && (tVl=prExtCurCom.parse(0,":",off)).length; )	comEl = comEl.childGet(tVl.toInt());
			if(!comEl) comEl = prExtWork.childGet(0); else comN = prExtCurCom;
		}
		for(comPath = "", comElI = comEl; comElI; comElI = comElI.parent())
			if(comElI.name() == "com")
				comPath = comElI.attr(comElI.attr("name").length?"name":"id")+(comPath.length?": ":"")+comPath;
		rezVl = comEl.attr("rez");
		if(prExtMode != 0) pTxt += "<tr class=''"+((prExtMode==-1)?"err":"run")+"''>";
		else pTxt += "<tr>";
		pTxt += "<td>"+comN+"</td>";
		pTxt += "<td>"+Special.FLibSYS.strEnc2HTML(comPath)+"</td><td>";
		if(rezVl.parse(1,":").length) pTxt += Special.FLibSYS.strEnc2HTML(rezVl.parse(1,":"));
		else {
			//Arguments values
			for(i_a = 1; i_a <= 5; i_a++)
				if(comEl.attr("labArg"+i_a).length)
					pTxt += Special.FLibSYS.strEnc2HTML(comEl.attr("labArg"+i_a).parse(0,"|")+" = "+comEl.attr("arg"+i_a)+"; ");
		}
		pTxt += "</td>";
		comTm = comEl.attr("tm").toInt();
		if(!comTm) pTxt += "<td>---</td>";
		else {
			comTm -= prExtStartTm;
			pTxt += "<td>"+(comTm/3600).toString(10)+":"+
									((comTm/60)%60).toString(10,2)+":"+
									(comTm%60).toString(10,2)+"</td>";
		}
		pTxt += "</tr>\n</table>";*/
	}
	pTxt += "</body>";
}

if(!prExtProg.length && f_start) pTxt = "<body><H1>"+tr("Select a program")+"</H1></body>";

if(pTxt.length)	prog_doc = pTxt;

prCnt++;

//Events for commands process
for(ev_rez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Prescription edit control","Event: "+evCur);
	//if(evCur == "ws_CombChange:/lib") prExtProg = lib_name;
	//if(evCur.slice(0,11) == "ws_BtMenu=/")	prExtProg = evCur.slice(11).parse(0,":");
	if(evCur == "dlg_Apply:/lib")	prExtProg = lib_selValue;
	else if(evCur == "ws_BtPress:/btStart") {
		if(prExtMode <= 0)			prExtMode = 1;
		else if(prExtMode == 1)	prExtMode = 2;
	}
	else if(evCur == "ws_BtRelease:/btStart")	prExtMode = 1;
	else if(evCur == "ws_BtPress:/btStop" && prExtMode >= 0)	prExtMode = prExtCurCom = 0;
	else if(evCur == "ws_BtPress:/btPass" && (prExtMode == 1 || prExtMode == 2))	prExtMode = 3;
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Programm select process
if(!prExtProg.length || lib_items.search("^"+prExtProg.replace(new RegExp("(\\[|\\]|\\(|\\)|\\.|\\+|\\*|\\?|\\^|\\$|\\<|\\>|\\{|\\}|\\\\)","g"),"\\$1")+"$","m") < 0)
	prExtProg = lib_name;
else lib_name = lib_selValue = prExtProg;','','',500,'name;dscr;geomW;geomH;evProc;backColor;bordWidth;bordColor;bordStyle;',1584085757);
INSERT INTO wlb_Main VALUES('accept','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAeCAIAAAATj48OAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAADx0lEQVRYhe2X3W/bVBjGX9vHTh27+XCSJWlamvSLds0qsY1O2kDbQIML
LiYViRX1DgkEUoS44KITEn8LAuUGcVcxCQbthgasWwordEALydZpLW3WNHbjJE7OsQ8XiQrctI0L
sirld2HZR3re93l85HOOmVQq5fV64WiiaRqSZXlyctJpJzZJp9Os0x4OSzuA07QDOE07gNOgVgWV
ncLMteuU4Sdee1VgDqah9M6tOSqFz5wcbbXdvrQcQOxUBsK+jr6TczOfbdUEXwcriq71RzklGr+3
kHll4kpfUPjo05kLz5/9evbGC5demrv+xdip07Nf3jx38fy1z9cAAKglcrXVIgl7xIgi389turgS
x/s3tv4cHBm/dP70/xuAYZqvPTM/bwihiJeJ9o+Wyub40HAxnz8xMrC6+G0glsivZiPd0YXvbsvB
SHYl19Mbf/wwi6uWSSmHkP4kt1UT9ZC0UCjybpnS+tCwghCvqaVW/bQcAAAGxk6xbs9bqXe3K5bk
4gAADydcnZ4LL15kAOJjZ1Tz3tPHR1d+Wx5JJn//5ef40PH1B8tKV/yP+z/VTev295k33k7li4ZX
EkSBL2iaLHfqeiXSFS7rtVbNMNPT01NTUzZi2EbXdUmSmQN+P3uSTqftzMAhkWX5P6x25JfRdgCn
aQdwmiMfACmKsrS05LQNmyiKgmKxWDKZdNqJTSilNjcyvVRiwbLd2KjXff6AVtx2CXxzyMTA8QAA
BAPi99A2sChlEQ/2zkIAQKnlcvEAsInzmOJuIWZYxleluWfcJ2J8977yWr1OKeUR2wjAUBpb/Ljg
HWU31/lHy+rU1f0NAFQMbD8AAGBCAECi0pvknXP47B02M829f4yJ3Prmpqqq0Xgfb2K9bnndqFgm
PEPdbrF/cIhHLACYptm4NooAwFpwPJH5BG8UH1y+SnE9c/cucDxiGSSIpKyqhhn0yZhYsj84mOgB
AKCUAoDtVYhSignBhLAWF9bDs8aND40P4iiOCYl093hEQatUtXKVAmsSgk0aCAa0wsbjzUJDZVom
ABDTbDxijF0rPxhPdPprHs0vYNOUJMnjD/gVn1bYqJjQ4XYjgVfVnUql0pQQAkAPNwMYN25eN650
uaMe5GmMhEKhgKIwHLd73OwFAIDQsdCu6u8ZaBShFFdqyy+/xz6ruX9cxJj09vVDUxXZ7fhUb+Kf
fTmesx+A5VC1tNP0J8aBQtX491Eek73kLMcwDDEtTJqqtecmAAA8SimeAONAfwWK5AEAlMvlWNaB
7aywXTxkhaK6k81m/wJAAK2A/KcOawAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) mess_text = elMess;

//Events for commands process
for(off = 0, ev_rez = ""; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messDebug("Prescription edit control","Event: "+evCur);
	if(evCur == "ws_BtPress:/apply") {
		elEvent += "dlg_Apply\n";
		this.attrSet("pgOpen",false);
	}
	else if(evCur == "ws_BtPress:/cancel")	this.attrSet("pgOpen", false);
	else ev_rez += (evCur+"\n");
}
event = ev_rez;','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;',1664089765);
INSERT INTO wlb_Main VALUES('treeSelect','iVBORw0KGgoAAAANSUhEUgAAAEAAAAA8CAIAAABZ6yszAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAC
GElEQVRoge3av4vaYBjA8fdNc76a43JQMzhUOfRw6w+X0uOm2yzt3qEu/SvuDyjcHyD+CV16iy51
KAcp5RbhXNpVAkoj2garmB++efMmHSwieLRUWx4Kz2dKCI95viHZpI1Go1Qqkf+TZVlqsVisVqvQ
m2zJNE0FeoddYQA0DICGAdAwABoGQMMAaBgADQOgYQA0DICGAdAwABoGQMMAaBgADQOgYQA0DICG
AdAwABoGQMMAaBgADQOgYQA0VQhhWRb0GlvyPE+N49j3/d1/izHGGPvTKc65lFLTtJ/ngpM9RiJB
lDtE+c3bMZlMoihSt9j1VowxXdeXx9ffrk+NUx7zq69XBe3eg8NH6xuvd85mMyHEcjBxp+rHOi8/
ox/eytKTVPXF5l1W40mSjMdjQshfC1h36V+2v7S7ont+cH5ff9hut7PZbBzHrus6jlMulyuVirL5
gPcPee7xfuu1Lw311fNOp5NOpwkhw+HQMIw4jsMw7Pf7tVptfeiffMQn8Unre+vi4OLMOJNS6rre
6/XCMHQcJ5/P27Z9y/aEJDxQbt77XFfMbvTps67rlNL5fO55nqZpUkrG2OZ/dGmz2Tw+Pt596Uwm
k0qllsfTYDoNpkd3j1ZXF4sFYywIAlVVoyhavfSu6yqKsjxNQi7evdl7+lKYppLLqZXKr+84Go1s
26b1er1QKOwekCTJdoOU0u1mKaWDweAHPGvJg9VZGg0AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) { select_items = elItems; select_value = selValue; }

//Events for commands process
for(off = 0, ev_rez = ""; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Prescription edit control","Event: "+evCur);
	if(evCur == "ws_BtPress:/apply") {
		if(select_value.length)	{ selValue = select_value; elEvent += "dlg_Apply\n"; }
		this.attrSet("pgOpen", false);
	}
	else if(evCur == "ws_BtPress:/cancel")	this.attrSet("pgOpen", false);
	else ev_rez += evCur + "\n";
}
event = ev_rez;','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;',1734419592);
INSERT INTO wlb_Main VALUES('TextLab','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAXCAIAAAA0gN7GAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAABHUlEQVRYhWNgGOKAkYGBIScnh5ube6BdQjL4+vXrlClTWBgYGDg4ODg5
OQfaPSSDv3//MjAwMA20MygFox4YaDDqgYEGox4YaDDkPcBCke6/Hx9cv/fszcdfCCFWHgFhKRmu
51fufUZRyqukI/ntybO3H778Rgiy8YtIKWkq8DOT7wQKPfDp4dXzZ64/QnIrt4S8ijGH6IUDB56i
KJVmkTB4ff7snYcvviIEeeU0TUTUKPLACE9CTFziCipabII/EEJs/CISwny8qvr6IihKBcX4hDlV
1NgExJHSG4ewlDgXZWFImQdYhDXM7TSwySgFqmERlVKiyDpsYMgnoVEPDDQY9cBAAxYGBoYfP36w
sFBWHA0E+PHjB2FFgx8AAE0jPQCZy9M+AAAAAElFTkSuQmCC','/wlb_originals/wdg_Text',0,'JavaLikeCalc.JavaScript
function setActMess(mess) {
	if(err.isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+NAME, "''"+NAME+"''."+mess);
	else SYS.nodeAt(err).nodePrev().messSet("''"+NAME+"''."+mess, 2, "OP", this.ownerSess().user());
}

if(f_start) {
	isErr = false, alBlnk = false, cnt = 0, fixText = (text != "---");
	toFastCalc = toFastCalc_ = false;
}
if(f_stop && !fixText)	{ text = "---"; return; }

toFastCalc = false;

//Prepare/update the context menu
if(f_start || ((cnt++)%max(1,f_frq*10)) == 0) {
	contextMenu = "";
	if(!digComs.isEVal() && digComs.length) {
		if(!com_text.isEVal())
			for(off = 0; (comVal=digComs.parse(0,";",off)).length; )
				contextMenu += comVal.parse(0,"-") + ":" + comVal.parse(0,"-") + "\n";
		else {
			if((comVal=digComs.parse(0,";")).length)	contextMenu += comVal.parse(0,"-") + ":open\n";
			if((comVal=digComs.parse(1,";")).length)	contextMenu += comVal.parse(0,"-") + ":close\n";
			if((comVal=digComs.parse(2,";")).length)	contextMenu += comVal.parse(0,"-") + ":stop\n";
		}
	}
}

//Display label from st_text
stCur = -1;
if(!st_text.isEVal() && st_text.length) {
	if(!fixText)	text = transTr ? tr(st_text.parse(0,":")) : st_text.parse(0,":");
	blink = st_text.parse(2,":").toInt();
	backClr = st_text.parse(1,":").parse(0,"-");
	if(blink) {
		backClrBl = st_text.parse(1,":").parse(1,"-");
		if(!backClrBl.length)	backClrBl = "gray";
		backColor = (backColor!=backClr) ? backClr : backClrBl;
	}
	else	backColor = backClr;
}
//Display typical for st_open
else if(st_open == true || st_close == false) {
	backColor = (stVal=digStts.parse(0,";").parse(1,"-")).length ? stVal : "green";
	if(!fixText)
		text = (!digStts.isEVal() && (stVal=digStts.parse(0,";").parse(0,"-")).length) ? stVal : tr("Enable");
	stCur = 1;
}
else if(st_open == false || st_close == true) {
	backColor = (stVal=digStts.parse(1,";").parse(1,"-")).length ? stVal : "blue";
	if(!fixText)
		text = (!digStts.isEVal() && (stVal=digStts.parse(1,";").parse(0,"-")).length) ? stVal : tr("Disable");
	stCur = 0;
}
else {
	backColor = "grey";
	if(!fixText) text = "---";
	return;
}
if(!backColor.length)	backColor = "black-1";	//For the activity cursor

//Blink linked with ElCadr
if(this.attr("focus") ||
	(!NAME.isEVal() && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == NAME))
{
	bordColor = (bordColor != "white") ? "white" : "black";
	bordWidth = 2;
	toFastCalc = true;
}
else if(bordWidth) { bordWidth = 1; bordColor = "black"; }

//Notification create
if(ntf.length && (ntf.toInt() == stCur) != isErr) {
	if((isErr=(ntf.toInt()==stCur)))	alarm = "50|"+NAME+"|"+ntf.parse(2,":")+".|"+ntf.parse(1,":");
	else if(alarmSt&0x100)	alarm = "1|"+NAME+"||1";
}
if(!isErr && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";
if(alarmSt&0x100) {
	if(!(alarmSt&0x10000) || alBlnk)	backColor = isErr ? "red" : backColor;
	else backColor = (backColor=="gray")?"#383838":"gray", toFastCalc = true;
	alBlnk = !alBlnk;
}

//Events process
for(ev_rez = "", off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("TextLab","Event: "+sval);
	if(!com_text.isEVal() && sval.indexOf("usr_") == 0) {
		com_text = comVal = sval.slice(4);
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_open") {
		if(!com.isEVal())	com = true;
		else close = false;
		comVal = (comVal=digComs.parse(0,";")).length ? comVal.parse(0,"-") : tr("ENABLE");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_close") {
		if(!close.isEVal())	close = true;
		else com = false;
		comVal = (comVal=digComs.parse(1,";")).length ? comVal.parse(0,"-") : tr("DISABLE");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_stop") {
		if(!stop.isEVal())	stop = true;
		comVal = (comVal=digComs.parse(2,";")).length ? comVal.parse(0,"-") : tr("STOP");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else ev_rez += sval+"\n";
}
event = ev_rez;

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'name;dscr;active;geomW;geomH;contextMenu;evProc;backColor;bordWidth;bordColor;font;alignment;text;',1678183635);
INSERT INTO wlb_Main VALUES('cntrPaspExt','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAADaUlEQVRoge2aTW8bRRjH/zM7u469u15vHLu1U1cRThB9FQUkyq2ocOon
QHwALnwCznDiwKkfoRI3LnAAKioqWqlBFEqFTGQRShJHpI7j+CXZ2Ls7D4dNE0tIrVMjppHmd9rZ
efbZ/293VnsZ9tEnn6bcHMaDiORwzz8xC4BIDodDIUzDMA4KpIw5PxzGcdTd3Ejq989EIYEJIQAi
gIGN9o/jaKv+wLKsMfMAEFNZ3y2WD8a1+4uMM84NCcPPOTs7QfH0gmOnklnGWG9zwymWAIRB/+bn
NwqlsudPM8Y3m81SpfJHreZlM5fevpaZMhPjIAiS+oQ7X30R7A0q8/ONei3ll9K289rly6NPqPn7
/fHTAxDcMIQQB+PiTPbhUiMdtn6trZ4quY9bvfc/vCgEfzLP4igK9wYAwMy5hVeI0G2u7ewOvfzJ
P+t1w+ArSw8XXr9iIg2AQIf1yfWcgRvry0utzZYd4q9+cOHVS4f5QUdKD4B9/Nl1J18cfQZSEgBJ
kjEGYHSFkJTd1mPbnxmzO0m529k6Uv1w45FpmmPWh2Eo2mvL9259nWQ9XhDRfLUqer3elfc+yOZy
xLhlmkQkpWSMc2N/2ZCUjPOn9xrndjKWAAOIj7zSSWiuN+q3vxQA4ij86fubbuHky2cvAHhw99vt
Vgcik8mYs9Wz5VOz/8X7oeXffmmsrKQ9b9DtnHvras5zJuwYhUMAAkAUhi+dOU/cDIcDxvj8uTd6
3a4wU4YBw8pEYUh05G/r35w4XbWz02CMCJZpDAeDZ1/zdIEo2he49ub5SqUyecT/mdXV1es/ficA
eHbad23VeY5M104DmPzrVIwWUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0WUI0W
UI0WUI0WUI0WUI0WUI0WUA13XTedTquO8TzYtu26Ls/n857nqQ7zPPi+XygUjv8SUh1gUrSAarSA
arSAaoRlWe12e3Tv63FBSmmapnAce3urVShV8n623+85jptM12q1F/YPXV/beNQOAIriWFAcdrr9
9bW7f3eDQta9+u47nAGA53nlcvlZrdSwvr378ze3SpW5KIwEY3xqKjXtz81EsFisOttYkJTVMxc5
59sNiFa7c29x8WDu9g93kgMppW2/oFsZm+1Oux+ACHvBP2ylQnHYJpj5AAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
using Special.FLibSYS;

if(f_start) {
	if(!name_.length)	name_ = this.attr("name");
	viewSet_geomY_ = viewSet_geomY, viewSet_geomH_ = viewSet_geomH;
	pAddr = pName.slice(0, pName.lastIndexOf("/"));
	if(!(pObj=SYS.nodeAt(pAddr)))	return;
	scLog = (pObj.nodeAt("a_log").get() == true);
	aLst = pObj.nodeList("a_");
	this.attrSet("name", name_+": "+SYS.nodeAt(pName).get());

	selTab = "view";

	//View mode clean up
	view_value = ""; view_geomH = geomH-view_geomY-1;

	//Standard parameters
	stdPrms = "var;sp;out;auto;aMin;aMax;wMin;wMax;com;close;stop;st_open;st_close;";
	//pColors = new Array("darkmagenta", "orange", "blue", "lightgreen", "cyan", "tomato", "magenta", "wheat", "lightyellow", "darkcyan");

	//Trends prepare
	trN = 0, trNMax = 10, trNClr = 0; trDigN = 0;
	trendsList_items = "<tbl sel=''row'' colsWdthFit=''1''><h><s width=''0px''>"+tr("ID")+"</s><s width=''50%''>"+tr("Name")+"</s><s edit=''1'' width=''25%''>"+tr("Minimum")+"</s><s edit=''1'' width=''25%''>"+tr("Maximum")+"</s></h>";
	trendsList_value = "";
	trObj = this.wdgAt("trends");
	trObj.attrSet("sclVer", scLog?6:2);
	trObj.attrSet("parNum", trNMax);
	// Clear previous trends
	for(iTr = 0; iTr < trNMax; iTr++) trObj.attrSet("prm"+iTr+"addr", "");
	for(off = 0; (sP=stdPrms.parse(0,";",off)).length && trN < trNMax; ) {
		if(!(aObj=pObj.nodeAt("a_"+sP)) ||
			(sP == "aMin" && ((tV=aObj.get()) >= pObj.nodeAt("a_aMax").get() || tV <= pObj.nodeAt("a_min").get())) ||
			(sP == "aMax" && ((tV=aObj.get()) <= pObj.nodeAt("a_aMin").get() || tV >= pObj.nodeAt("a_max").get())) ||
			(sP == "wMin" && ((tV=aObj.get()) >= pObj.nodeAt("a_wMax").get() || tV <= pObj.nodeAt("a_min").get())) ||
			(sP == "wMax" && ((tV=aObj.get()) <= pObj.nodeAt("a_wMin").get() || tV >= pObj.nodeAt("a_max").get())))	continue;
		isBool = (typeof(aObj.get())=="boolean");
		trObj.attrSet("prm"+trN+"addr", pAddr+"/a_"+sP);
		trObj.attrSet("prm"+trN+"color", (trClr=this.attr("labColorGrph"+(trNClr+1)))+(isBool?"-127":""));
		trObj.attrSet("prm"+trN+"width", 2);
		if((sP == "var" || sP == "sp" || sP == "aMin" || sP == "aMax" || sP == "wMin" || sP == "wMax") && pObj.nodeAt("a_min")) {
			trObj.attrSet("prm"+trN+"bordL", pObj.nodeAt("a_min").get()).attrSet("prm"+trN+"bordU", pObj.nodeAt("a_max").get()).attrSet("prm"+trN+"scl",0);
			if(sP == "aMin" || sP == "aMax" || sP == "wMin" || sP == "wMax")
				trObj.attrSet("prm"+trN+"addr","line:"+aObj.get()).attrSet("prm"+trN+"color",(trClr=(sP[0]=="a")?"red":"yellow"));
		}
		else if(sP == "out") trObj.attrSet("prm"+trN+"bordL",0).attrSet("prm"+trN+"bordU",100).attrSet("prm"+trN+"scl",2);
		else if(isBool) { trObj.attrSet("prm"+trN+"bordL", -trDigN).attrSet("prm"+trN+"bordU", 20-trDigN).attrSet("prm"+trN+"scl",2); trDigN++; }
		else trObj.attrSet("prm"+trN+"scl",2);
		trendsList_items += "<r><s>"+trN+"</s>"
											"<s color=''"+trClr.parse(0,"-")+"''>"+strEnc2HTML(aObj.descr())+"</s>"
											"<r>"+trObj.attr("prm"+trN+"bordL")+"</r>"
											"<r>"+trObj.attr("prm"+trN+"bordU")+"</r></r>";
		trN++; trNClr++;
	}
	for(iA = 0; iA < aLst.length && trN < trNMax; iA++) {
		aId = aLst[iA].slice(2);
		if(stdPrms.indexOf(aId+";") != -1 || !(aObj=pObj.nodeAt(aLst[iA])) || !aObj.arch()) continue;
		isBool = (typeof(aObj.get())=="boolean");
		trObj.attrSet("prm"+trN+"addr", pAddr+"/a_"+sP);
		trObj.attrSet("prm"+trN+"color", this.attr("labColorGrph"+(trNClr+1))+(isBool?"-127":""));
		trObj.attrSet("prm"+trN+"width", 2);
		if(isBool) { trObj.attrSet("prm"+trN+"bordL", -trDigN).attrSet("prm"+trN+"bordU", 20-trDigN); trDigN++; }
		trendsList_items += "<r><s>"+trN+"</s>"
											"<s color=''"+this.attr("labColorGrph"+(trNClr+1))+"''>"+strEnc2HTML(aObj.descr())+"</s>"
											"<s>"+trObj.attr("prm"+trN+"bordL")+"</s>"
											"<s>"+trObj.attr("prm"+trN+"bordU")+"</s></r>";
		trN++; trNClr++;
	}
	trendsList_items += "</tbl>";
	sel_trends_en = trN;

	//Data table prepare
	dtALst = new Array();
	dtPeriod = 1;
	for(off = 0; (sP=stdPrms.parse(0,";",off)).length; )
		if((aObj=pObj.nodeAt("a_"+sP)) && aObj.arch()) {
			dtALst.push(aObj);
			dtPeriod = max(dtPeriod, ceil(aObj.arch().cfg("BPER")));
		}
	for(iA = 0; iA < aLst.length; iA++) {
		aId = aLst[iA].slice(2);
		if(stdPrms.indexOf(aId+";") == -1 && (aObj=pObj.nodeAt(aLst[iA])) && aObj.arch()) {
			dtALst.push(aObj);
			dtPeriod = max(dtPeriod, ceil(aObj.arch().cfg("BPER")));
		}
	}
	sel_data_en = dtALst.length;
	if(!sel_trends_en && !sel_data_en)	 { view_geomH += view_geomY-sel_view_geomY; view_geomY = sel_view_geomY; }
}
if(f_stop) viewSet_geomY = viewSet_geomY_, viewSet_geomH = viewSet_geomH_;

//View update
if(pObj && view_en) {
	view_items = "<tbl sel=''row'' colsWdthFit=''1''><h><s width=''0px''>"+tr("ID")+"</s><s width=''60%''>"+tr("Name")+"</s><s width=''30%''>"+tr("Value")+"</s></h>";
	for(iA = 0; iA < aLst.length; iA++) {
		if(!hideAttrs.isEVal() && hideAttrs.match("(;|^)"+aLst[iA].slice(2)+"(;|$)").length)	continue;
		aObj = pObj.nodeAt(aLst[iA]);
		view_items += "<r><s>"+aLst[iA]+"</s>"
									"<s>"+strEnc2HTML(aObj.descr())+"</s>"
									"<s>"+strEnc2HTML(aObj.get())+"</s></r>";
	}
	view_items += "</tbl>";
}

//Data update
if(pObj && data_en) {
	data_tmpl = "<body docProcLang=''JavaLikeCalc.JavaScript''>\n"
		"<table class=''data'' cellpadding=''2'' cellspacing=''0'' export=''1'' valign=''middle'' width=''100%''>\n";
	// Header
	data_tmpl += "<tr><th>Date</th>";
	for(iA = 0; iA < dtALst.length; iA++)
		data_tmpl += "<th>"+strEnc2HTML(dtALst[iA].descr())+"</th>";
	data_tmpl += "</tr>\n";

	// Date
	curTime = SYS.time();
	for(i_rec = curTime; i_rec > (curTime-100*dtPeriod); i_rec-=dtPeriod) {
		data_tmpl += "<tr><td>"+SYS.strftime(i_rec,"%d %m %H:%M:%S")+"</td>";
		for(iA = 0; iA < dtALst.length; iA++) {
			i_rec_ = i_rec;
			data_tmpl += "<td>"+strEnc2HTML(dtALst[iA].get(i_rec_))+"</td>";
		}
		data_tmpl += "</tr>\n";
	}
	data_tmpl += "</table></body>\n";
}

//Events process
ev_rez = "";
for(off = 0; true; ) {
	sval = event.parse(0, "\n", off);
	if(!sval.length) break;
	//SYS.messInfo("ObjProps","Event: "+sval);
	if(sval.slice(0,16) == "ws_BtPress:/sel_") selTab = sval.slice(16);
	else if(sval == "ws_TableChangeSel:/view" && (aObj=pObj.nodeAt(view_value))) {
		if(!(aObj.flg()&0x04)) {
			if(typeof(aObj.get()) == "string" && aObj.flg()&0x08) {
				this.viewSet.attrSet("elType",1);	//Text editor
				viewSet_geomY = viewSet_geomY_ - viewSet_geomH_*3;
				viewSet_geomH = viewSet_geomH_*4;
				view_geomH = viewSet_geomY - view_geomY - 1;
			}
			else {
				this.viewSet.attrSet("elType",0).attrSet("view",1);	//Combo box
				this.viewSet.attrSet("cfg", (aObj.flg()&0x01) ? aObj.values().split(";").join("\n") : "");
				viewSet_geomH = viewSet_geomH_, viewSet_geomY = viewSet_geomY_;
				view_geomH = viewSet_geomY - view_geomY - 1;
			}
			this.viewSet.attrSet("value",aObj.get());
		}
		else view_geomH = geomH-view_geomY-1;
	}
	else if((sval == "ws_LnAccept:/viewSet" || sval == "ws_TxtAccept:/viewSet") && (aObj=pObj.nodeAt(view_value))) aObj.set(this.viewSet.attr("value"));
	else if(sval == "ws_TableChangeSel:/trendsList")
		for(i_tr = 0; i_tr < trN; i_tr++)
			trObj.attrSet("prm"+i_tr+"width", ((i_tr==trendsList_value)?3:2));
	else if((reRez=sval.match("ws_TableEdit_(\\d+)_(\\d+)\\:\\/trendsList")).length)
		trObj.attrSet("prm"+trendsList_value+((reRez[1]==2)?"bordL":"bordU"), trendsList_set);
	else ev_rez += sval+"\n";
}
event = ev_rez;

//Tab selection process
if(f_start || selTab != prevTab) {
	wLs = this.nodeList("wdg_");
	for(iW = 0; iW < wLs.length; iW++) {
		wId = wLs[iW].slice(4);
		wObj = this.wdgAt(wId);
		if(wId.indexOf("sel_") != -1)	wObj.attrSet("color",(wId.slice(4)==selTab)?backColorButtonSel:backColorButton);
		else if(wId.indexOf(selTab) != -1) wObj.attrSet("en",true);
		else if(wId.indexOf(prevTab) != -1) wObj.attrSet("en",false);
	}
	prevTab = selTab;
}','','',-1,'name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;bordColor;bordStyle;',1664089765);
INSERT INTO wlb_Main VALUES('objProps','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAxCAIAAADldTjtAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAABvUlEQVRoge3av0rDUBTH8V9ubpNqrVrS+BcKWtFFpYidXBycHbvqSwhd
fAHHvoEv4CIOLnHQRQcFETpYEPG/VVNtaaw1iUNRHDrJ1YNwPtMlwzn3O2S72tLy0tnoGdR6AQ4B
C5j6/NIEQsBQucTSrVgxJq0+a311XeXgFgfIAAfABFAHjoEFwFa5YfJ5cnFtUagc+SUEAOwBAmgC
DtAPJH9llTQixuz5rOKpIWACceAEiAMZoAqcA5rKJal6CoAM38OV/RWVg7+LARef5wP144tGUVqW
lcvl1M/+E4VC4Xf+gT/EAdQ4gBoHUOMAahxAjQOocQA1DqDGAdQ4gBoHUOMAahxAjQOocQA1DqDG
AdQ4gNq/D5CNRqNUKlFf44c8z5PJ3i7HcVKj43Yi/uZVX17DZKLbdV3TNCORCPUN27i6K5ebeuv8
VH+Ttad79Aw+u+WdrY1eu0/vtOfnspqmZbPZaDRKe9e2jk6Kt6fXu9ubE9Mzng9hdnTFO6OVSiXZ
P5xOj5hSqH3RoFyIUOi6PTBsDwz5vq/l8/mxdFroMgh8IUQQBELotVrVMAwpJfVt27gtP1w+Vlvv
Ydybiw8wdHLT/ZDoJgAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
using Special.FLibSYS;

if(f_start) {
	props_value = "";
	props_geomH = geomH-props_geomY;
	objErrCode = 0;
}

title_text = objName.isEVal() ? tr("Unknown") : objName;
title_tipTool = objDescr.isEVal() ? "" : objDescr;

//Setting alarms state
if(!objErr.isEVal() && objErrCode != objErr.toInt()) {
	objErrCode = objErr.toInt();
	if(objErrCode == 2)			alarm = "50|"+objName+"||3";
	else if(objErrCode == 1)	alarm = "10|"+objName+"||3";
	else if(alarmSt&0x100)		alarm = "1|"+objName+"||1";
}
if(!objErrCode && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";

//Changing notification-title color
alarmLev = alarmSt&0xFF;
if(alarmLev && alarmSt&0x100) {
	blinkPr = true;
	if(!objErrCode || alarmLev <= 1)	wColor = "lime";
	else if(alarmLev < 30)	wColor = "yellow";
	else if(alarmLev < 75)	wColor = "red";
	else { wColor = "grey"; blinkPr = false; }
	if(blinkPr) title_backColor = (alarmSt&0x10000 && title_backColor == wColor) ? "grey" : wColor;
	else title_backColor = wColor;
}
else title_backColor = "lime";

/*if(!objErr.isEVal()) {
	if(objErr.toInt() == 0)		title_backColor = "lime";
	else if(objErr.toInt() == 1)	title_backColor = "yellow";
	else if(objErr.toInt() == 2)	title_backColor = "red";
	else title_backColor = "gray";
}
else title_backColor = "gray";*/

if(!objItems.isEVal()) {
	//Load table with variables
	tbl = "<tbl sel=''row'' colsWdthFit=''1''>\n"
		"<h><s width=''0px''>"+tr("Property")+"</s><s width=''55%''>"+tr("Description")+"</s><s width=''30%'' align=''center''>"+tr("Value")+"</s></h>";
	for(var aIt in objItems) {
		it = objItems[aIt];
		if(it.alarm == 1)	tbl += "<r color=''yellow''>";
		else if(it.alarm == 2)	tbl += "<r color=''red''>";
		else tbl += "<r>";
		if(typeof(tVl=it.val) != "string") tVl = it.val.toString();
		tbl +=	"<s>"+aIt+"</s><s>"+strEnc2HTML(tr(it.descr.trim()))+"</s>"
			"<s>"+strEnc2HTML(tr(tVl.trim()))+"</s></r>\n";
	}
	tbl += "</tbl>";
	props_items = tbl;
}

for(ev_rez = "", off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("ObjProps","Event: "+sval);
	if(sval == "ws_TableChangeSel:/props" && (it=objItems[props_value])) {
		if(!it.wr.isEVal() && it.wr != false) {
			props_geomH = set_geomY-props_geomY-2;
			set_cfg = it.wr.length ? it.wr.split(";").join("\n") : "";
			set_value = it.val;
		}
		else props_geomH = geomH-props_geomY;
		//SYS.messInfo("ObjProps","WR: "+it.wr+"; it="+it);
	}
	else if(sval == "ws_LnAccept:/set" && (it=objItems[props_value])) it.set = set_value;
	else ev_rez += sval+"\n";
}
event = ev_rez;','','',1000,'perm;name;dscr;geomW;geomH;pgOpenSrc;pgGrp;backColor;bordWidth;bordColor;',1570377057);
INSERT INTO wlb_Main VALUES('grpGraph10','','/wlb_Main/wdg_grpGraph',0,'','','',-1,'name;geomW;',1712985511);
INSERT INTO wlb_Main VALUES('anShow1s','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAWCAIAAAD/3A1jAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAG50lEQVRYhdVXWWwb1xW9bxYOOdzERRTFVbtEWRIlWY5dWbHdqI2auC3Q
nyDoR4EW8H+B+qctYOjDRVC4CBAU7UdRFG4LNAWCRj8tWtiwnTiKHFkRJSaUrJUUtXARZXK4zsJZ
+kFZkiXHpAskbc/XzMO5d85577737qDx8XGoGbIsi6JYO//LBkmSBAAoilIqlaqyMQxLJpM3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xq/XbDJyTkxMsCxrvtIGz/P8wcGBWbhgJKK73VospoVC9l7ZBQAomQwMBm2VCm0K
eVoAz/O5XM7v9xcKhb5xAAAWFhaMgz4xAQDkcjmO4zY3N0ulUt8OrpGz1Wrt7OxETKpi8FNTUxcv
XjzaRAIAUDzvzuUIXSdlGbFs3x+xCwtGGdgkXK9U6EWjR4VkWUYISZJklRpVVQ3FsD6kEULdblfX
daPtMZuMnEazZJ5dR7xZmv4celRof3+foqhOp2Oz2Y4Uw8DKygqEUFVVgiDee+89symfzxeLRWP3
c2ZmJhQKHZk4jjPeJxVFcTqd586dM/Nut3t9ff3jjz/+KwX0qFAoFEokEhRFGZuyZpw+fToQCIii
aO12JicnY7GYx+MRBEGWZbMpFArRNC1JUjqdNt8BgwcAJJN/7BP1cQXwPH/v3j0AgM1ms75bff/9
9wRBDA8PW/d/crnc4eEhQsjr9bK90lGr1SRJGhkZyefz5jbJ4L1er9Pp/IsFvFKhF41XBbxovCrg
ReOlL4BGCJm/E75c4Hn+v2idbISEe7FeAAAAAElFTkSuQmCC','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) {
	selDay = selMonth = selYear = selWDay = isDst = 0;	//Selected data parts
	maxDayInMonth = 30;			//Maximum days into selected month
	selTime = SYS.time();		//Selected time, ordered to days
	prevTime = 0;					//Previous time for detect time selection change
	cntr = 0;						//Global counter for update period limit for some parts
}

//Years list update
if(f_start || (cntr%(f_frq*3600*24)) == 0)	{	//By day
	curYear = 0;
	SYS.localtime(SYS.time(), 0, 0, 0, 0, 0, curYear);
	year_items = "";
	for(i_y = 0; i_y < 10; i_y++)	year_items += (i_y?"\n":"")+(curYear-i_y);
}

//Events process
for(ev_rez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("MnCntr","Event: "+evCur);
	if(evCur == "ws_BtPress:/curDay")	selTime = SYS.time();
	else if(evCur == "ws_CombChange:/year")
		selTime = SYS.mktime(0, 0, 0, selDay, selMonth, year_value, 0, 0, isDst);
	else if(evCur == "ws_CombChange:/month")
		selTime = SYS.mktime(0, 0, 0, selDay, (month_value.match("\\((\\d+)\\)","")[1].toInt()-1), selYear, 0, 0, isDst);
	else if(evCur.indexOf("key_mousePresLeft:/w") == 0) {
		weekWdg = this.wdgAt(evCur.slice(19));
		if(weekWdg.attr("text").length)
			selTime = SYS.mktime(0, 0, 0, weekWdg.attr("text"), selMonth, selYear, 0, 0, isDst);
	}
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

if(selTime != prevTime) {
	selTime = min(selTime, SYS.time());
	SYS.localtime(selTime, 0, 0, 0, selDay, selMonth, selYear, 0, 0, isDst);
	selTime = SYS.mktime(0, 0, 0, selDay, selMonth, selYear, 0, 0, isDst);
	selWDay = 0;
	selTimeMonth = SYS.mktime(0, 0, 0, 1, selMonth, selYear, selWDay, 0, isDst);
	title_arg0val = SYS.strftime(selTime, "%d.%m.%Y");

	year_value = selYear;
	month_value = month_items.match("([^\n]*\\("+(selMonth+1)+"\\))","m")[0];

	//Days number into selected month
	tMonth = selMonth, tYear = selYear, tisDst = isDst;
	for(maxDayInMonth = 29; true; maxDayInMonth++) {
		tDayInMonth = maxDayInMonth;
		SYS.mktime(0, 0, 0, tDayInMonth, tMonth, tYear, 0, 0, tisDst);
		if(tDayInMonth != maxDayInMonth)	{ maxDayInMonth--; break; }
		if(maxDayInMonth >= 31)	break;
	}

	//Week box update
	for(i_w = 0, i_d = 1; i_w < 6; i_w++)
		for(i_wd = 0; i_wd < 7; i_wd++)
			if((i_w == 0 && i_wd < (((tVl=selWDay-1)<0)?7+tVl:tVl)) || i_d > maxDayInMonth)	//Clear cell
				this.wdgAt("w"+i_w+"_"+i_wd).attrSet("text","").attrSet("bordWidth","0").attrSet("backColor","");
			else {
				this.wdgAt("w"+i_w+"_"+i_wd).attrSet("text",i_d).attrSet("bordWidth","0").attrSet("backColor","lightgray-1");
				if(i_d == selDay)						//Selected day
					this.wdgAt("w"+i_w+"_"+i_wd).attrSet("text",i_d).attrSet("bordWidth","1").attrSet("backColor","lightgreen");
				i_d++;
			}
	prevTime = selTime;
}

cntr++;','','',-1,'name;dscr;geomW;geomH;backColor;',1576678207);
INSERT INTO wlb_Main VALUES('alarmsAct','iVBORw0KGgoAAAANSUhEUgAAAEAAAAALCAYAAADP9otxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABRlJREFUSImVlstyHLcVhj+ggb5Pz4UcUTETzciWHcelhV3lcrkqT5EX
yMtkn1W8yz7JC6TyGrZTklKKbYU3iaJIzq2ne7rRQBbTHHI4cqpyNl0H58eP/xwcAC3+8Oe//SPr
9sbS8wAHQF3VeJ6H9CTWWnAgPcldc84hhKAxDdY2OOfwg2ATr02NVnoL76zb8DSmxlM++WJGknY2
OGstUsoNfz6fk3TWcdtYAIQQCCm2dNSmRgqJ53lba67KkjCKtrRLHLFWSNy/VZJ2HoVR/GvpeeDW
BXh99Jyrt+ek3S5a+5TFEts0PP3y61tyQADXlxecnx5z8fqUNOuSZl2k9CiWOUIIPhg9pr83xAEX
r0+5fvcWU1X8YvSYwbDHD8++B2CZLwjDCGNqRh9/Sn//AQI4Pz3h9dErnLV4WlMul0gpGD35lP7+
cKNjcnrE27MTpPTo7w05HH+IA6ZXl5y9+glw1HWF1j6/Gj9GExJoVYk//vXvz4Iw/M2bF98Cjqqq
CIKAoijwfR/fDwgCn/tWGUM+n6OUQkoPY2qsdfi+JkmSHbxDINoOuzUBO2P/C///4X4u5gcBH33+
Nfn15fdqNrmi1x+wOD+iqiqqqiJJEhaLBWmaUkhJkiRbrQWQFyWTq0t830cpRVVVeJ7H3FrY29vB
Nw5mk2v6/f5anIPTszNwdoPtdDqkabrBv/rxB6Iooq5rwjBEa81yucTzPFzbrZ1ujyJfYIzBWosQ
YrOJadYlS3c3owlCyqqmWFWoOE5x1mGtpa5rJpMJxhjm8zlxHDOZTGiaZiP8xuq6xjlHnucAlGXJ
YDCgKAqOj48Zj8c7C2dZtuUfHBywKguEECilUEptxQ8PD7HWYq3F932stYRhSNM0SLm+S/wwxBMg
pUQIgTFmUxw/DHc0rIvvbKzlpfXlVAVRhFIKJySe9un2B6RpikVSmYb+3j5pmtLc6yQdhBg7IUpS
fN8nKEvqxhJEMcPhcAdvnUBKbzPuADyPKEm3d8fd4nWwncB2T93igije+MoPtmKN2z0CZlWtOsXF
N5OL46m6ujhHKwW2QeKoVyUrTyJcQxT4mGqFqTTBnRseoF6VhL7GNYZVYTB1TRRFWGsp8sWmle/U
nZOj/zAajdaeg6OTE4p8gdYaIQRZlrG/v7/B/+v5M4IgoCxLgiAgjmMWi8X6FRDrV2B48JDry3fr
1wpomoayLAnDkL3hAYNexn2z7VdK6VSa9dBKUTWW1arCrSpCIRFFSRJXLJdLpGkI7iWUmgZdG4wx
68pXNZnSrKqKJl8SiO1ns0Hyyf4Q8mWbHjwZ7CEHg211bbxB8sVovCOebm+dhLVIIWiEx4Phg11c
y+G1fHdNBmGw8Hu/Tw/jl0pIQWhqfvfNn8iBd8Bj4AXwCBgCH72H/EXW5flsyj7QAS5Y3+kR8Nv3
4K+yLnI2pdf6tac4DXzGy7VAAxQt1w3ezabstf4ESNs1vBbvWlw0m5IBFeADNaCBN1mXh7PprpZH
I/mXp199mERhrqqyZJbnPGgnCkABh8C4TewN8PB+FYHPgKYV0gU+AKbAP4Gn7ynCBWwKAHAFfNsW
LQBGdwoA8F2radLqSYGzO+t77ZyzlksDC2AJJK3++7pvzNeKKI5QVV396Gttz7s9roAZkLdEQZtQ
CczvJ5OkGCGoWn/Vir3xX97Dz5OUjhCb8UYplNZ8pm//Meo78+ZJyi/bc37XnvwM7/0b5yb28j0c
izglSmLy6fSn/wJZ90oLtw/oIAAAAABJRU5ErkJggg==','/wlb_originals/wdg_FormEl',0,'JavaLikeCalc.JavaScript
function testLev( v1, v2 )
{
	isSub = abs(v1) > 7 && abs(v2) > 7;
	v1_ = abs((!isSub && abs(v1) > 7) ? v1/10 : v1);
	v2_ = abs((!isSub && abs(v2) > 7) ? v2/10 : v2);
	return (v1_ >= v2_);
}

if(f_start) {
	cnt = 0;
	toUpdate = false;
	messItSep = ": ";
	alUnSel = 0;
	geomH_ = geomH;
	highLght_ = new Array();
	for(off = 0; (iH=highLght.parse(0,"\n",off)).length || off < highLght.length; ) {
		if(!iH.length || iH[0] == "#")	continue;
		iHo = new Object();
		if(iH.parse(0,":").length > 2)
			iHo.lev = iH.slice(0,2).toInt(), iHo.quiet = iH.slice(2,3).toInt()?1:0;
		else iHo.lev = iH.slice(0,1).toInt(), iHo.quiet = iH.slice(1,2).toInt()?1:0;
		iHo.color = iH.parse(1,":"); iHo.font = iH.parse(2,":"); iHo.fontColor = iH.parse(3,":");
		highLght_.push(iHo);
	}
	sourceCache = new Object();
}

if(focus)	alUnSel = 10;	//Wait for 10 seconds
else if(alUnSel > 0 && (alUnSel=max(0,alUnSel-1/f_frq)) <= 0)	{
	value = "";
	if(this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == NAME)
		this.wdgAt("/s/pg_control/pg_terminator",true).attrSet("pgOpen", true);
}
if(com) { event += "usr_qtc\n"; st_open = true; }

//Call per 1 seconds, start or force update
if(((cnt++)%(f_frq*1) == 0 || f_start || toUpdate) && !f_stop) {
	curAlMess = SYS.Archive.messGet(0, SYS.time(), messCat, -1);

	//Sort the messages
	sortAr = new Array();
	for(iM = 0; iM < curAlMess.length; iM++)
		//!!!! Define here self sort criteries
		sortAr.push(">"+(curAlMess[iM].mess.parse(3,messItSep).length?"0":"1")+(((tVl=abs(curAlMess[iM].level))>9)?tVl:tVl+"-")+">"+iM.toString(10,6)+"\n"+iM);
	sortAr = sortAr.sort().reverse();

	//The table content update
	items = "<tbl sel=''row'' colsWdthFit=''1'' hHdrVis=''"+(hHdrVis?1:0)+"'' vHdrVis=''"+(vHdrVis?1:0)+"''>\n";
	items += "<h><s width=''0px''>ID</s>";
	for(vC = "", off = 0; (vC=colms.parse(0,",",off)).length; )
		if(vC == "atm")			items += "<s>"+tr("Alarm time")+"</s>";
		else if(vC == "qttm")	items += "<s>"+tr("Quietance time")+"</s>";
		else if(vC == "lev")	items += "<s>"+tr("Lev.")+"</s>";
		else if(vC == "type")	items += "<s align=''center''>"+tr("Type")+"</s>";
		else if(vC == "cat")	items += "<s>"+tr("Category")+"</s>";
		else if(vC == "mess")	items += "<s>"+tr("Message")+"</s>";
		else if(vC == "prm")	items += "<s>"+tr("Source")+"</s>";
		else if(vC == "dscr")	items += "<s>"+tr("Description")+"</s>";
		else if(vC == "alrm")	items += "<s>"+tr("Alarm")+"</s>";
		else if(vC == "cmnt")	items += "<s edit=''1''>"+tr("Comment")+"</s>";
		//else if(vC == "src")	items += "<s>"+tr("Source")+"</s>";
		else if(vC.slice(0,8) == "dscrCust")
			items += "<s>"+((tVl=colDscrCustNames.parse(vC.slice(8).toInt(),";")).length?tVl:tr("Custom")+" "+vC.slice(8))+"</s>";
	items += "</h>\n";
	for(iSM = 0; iSM < sortAr.length; iSM++) {
		iM = curAlMess[iMid=sortAr[iSM].parse(1,"\n").toInt()];
		//Check for higlight properties match
		for(iHgl = false, iH = 0; iH < highLght_.length && !iHgl; iH++) {
			iHo = highLght_[iH];
			//this.messInfo("TEST 00: lev: "+iM.level+":"+iHo.lev);
			if(testLev(iM.level,iHo.lev) && (iM.mess.parse(3,messItSep).length?1:0) == iHo.quiet)
				iHgl = iHo;
		}
		items += "<r"+(iHgl?" color=''"+iHgl.color+"'' font=''"+iHgl.font+"'' colorText=''"+iHgl.fontColor+"''":"")+"><i>"+iMid+"</i>";
		for(vC = "", off = 0; (vC=colms.parse(0,",",off)).length; )
			if(vC == "atm")	items += "<s>"+SYS.strftime(iM.tm,formDtTm.replace("%MS",(iM.utm/1000).toString(10,3)).replace("%US",iM.utm.toString(10,6)))+"</s>";
			else if(vC == "qttm")	items += ((tVl=iM.mess.parse(3,messItSep)).length ? "<s>"+tVl+"</s>" : "<b edit=''1''>0</b>");
			else if(vC == "lev")	items += "<i>"+abs(iM.level)+"</i>";
			else if(vC == "type")	items += "<s>"+types.parse(abs(iM.level),";")+"</s>";
			else if(vC == "cat")	items += "<s>"+SYS.strEncode(iM.categ,"HTML")+"</s>";
			else if(vC == "mess")	items += "<s>"+SYS.strEncode(iM.mess,"HTML")+"</s>";
			else if(vC == "prm") {
				srcO = iM.categ.match("^al(.+):([^\\.]+)|^(.*):al");
				tVl = "";
				//From remote station
				if(srcO.length == 4)
					for(off2 = 0, isFirst = true; (tVl2=srcO[3].parse(0,":",off2)).length; tVl += (tVl.length?".":"")+tVl2, isFirst = false) {
						if(!isFirst)	continue;
						if(!sourceCache[tVl2].isEVal())	tVl2 = sourceCache[tVl2];
						else {
							req = SYS.XMLNode("get").setAttr("path","/Transport/%2fsub%2fehost").setAttr("upRiseSYS",1);
							SYS.cntrReq(req);
							for(iTr = 0; req.childSize() && iTr < req.childGet(0).childSize(); iTr++)
								if(req.childGet(0).childGet(iTr).text() == tVl2) {
									tVl2 = sourceCache[tVl2] = req.childGet(1).childGet(iTr).text();
									break;
								}
						}
					}

				items += "<s>"+SYS.strEncode((tVl.length?tVl+" > ":"")+iM.mess.parse(0,messItSep),"HTML")+"</s>";
			}
			else if(vC == "dscr")	items += "<s>"+SYS.strEncode(iM.mess.parse(1,messItSep).replace(new RegExp("\\[\\[.+\\]\\]"),""),"HTML")+"</s>";
			else if(vC == "alrm")	items += "<s>"+SYS.strEncode(iM.mess.parse(2,messItSep),"HTML")+"</s>";
			else if(vC == "cmnt")	items += "<s>"+SYS.strEncode(iM.mess.parse(5,messItSep),"HTML")+"</s>";
			else if(vC.slice(0,8) == "dscrCust") {
			    sVl = (sVl=iM.mess.parse(1,messItSep).match("\\[\\[(.+)\\]\\]")).length ? sVl[1].parse(vC.slice(8).toInt(),"=>") : "";
			    items += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>";
			}
		items += "</r>\n";
	}
	items += "</tbl>";
	toUpdate = false;
}

//Events process
for(off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//this.messInfo("TEST 01: Event="+sval);
	if(abs(expOnFocus) && sval == "ws_FocusIn" && expOnItems >= 0 && sortAr.length > expOnItems && geomH == geomH_) {
		if(expOnFocus < 0) geomY += expOnFocus;
		geomH += abs(expOnFocus);
		if(value.length) event += "usr_goquiet\n";
	}
	else if(abs(expOnFocus) && sval == "ws_FocusOut" && expOnItems >= 0 && sortAr.length > expOnItems && geomH != geomH_) {
		if(expOnFocus < 0) geomY -= expOnFocus;
		geomH -= abs(expOnFocus);
	}
	else if(sval == "ws_TableChangeSel") {
		iM = curAlMess[value];
		NAME = iM.mess.parse(0, messItSep);
		DESCR = iM.mess.parse(1, messItSep) + " -> " + iM.mess.parse(2, messItSep);
		st_open = iM.mess.parse(3, messItSep).length;
		if(value.length) event += "usr_goquiet\n";
	}
	else if(( (sval == "usr_qtc" && (iM=curAlMess[value])) ||
					(sval.slice(0,12) == "ws_TableEdit" && colms.parse(sval.parse(2,"_").toInt()-1,",") == "qttm" && (iM=curAlMess[sortAr[sval.parse(3,"_").toInt()].parse(1,"\n").toInt()])) )
			&& !iM.mess.parse(3,messItSep).length)
	{
		//this.messInfo("TEST 02: value="+value+"; set="+set);
		if(!com) SYS.messNote("OP:"+this.ownerSess().user()+":"+NAME, "''"+NAME+"''. "+tr("Command")+" : "+DESCR+" : : "+digComs.parse(0,";").parse(0,"-"));
		var tmU;
		tMess = iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
					SYS.strftime(SYS.time(tmU),formDtTm.replace("%MS",(tmU/1000).toString(10,3)).replace("%US",tmU.toString(10,6)));
		if((tVl1=iM.mess.parse(4,messItSep)).length || (tVl2=iM.mess.parse(5,messItSep)).length) {
			tMess += messItSep+tVl1;
			if((tVl2=iM.mess.parse(5,messItSep)).length) tMess += messItSep+tVl2;
		}
		iM.mess = tMess;
		SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess);
		toUpdate = true;
		com = false;
	}
	else if(sval == "usr_qtcMass")
		for(i = 0; i < curAlMess.length; i++) {
			iM = curAlMess[i];
			if(!iM.mess.parse(3,messItSep).length) {
				SYS.messNote("OP:"+this.ownerSess().user()+":"+iM.mess.parse(0,messItSep),
						"''"+iM.mess.parse(0,messItSep)+"''. "+tr("Command")+" : "+iM.mess.parse(1, messItSep) + " -> " + iM.mess.parse(2, messItSep)+" : : "+digComs.parse(0,";").parse(0,"-"));
				tMess = iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
						SYS.strftime(SYS.time(tmU),formDtTm.replace("%MS",(tmU/1000).toString(10,3)).replace("%US",tmU.toString(10,6)));
				if((tVl1=iM.mess.parse(4,messItSep)).length || (tVl2=iM.mess.parse(5,messItSep)).length) {
					tMess += messItSep+tVl1;
					if((tVl2=iM.mess.parse(5,messItSep)).length) tMess += messItSep+tVl2;
				}
				iM.mess = tMess;
				SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess);
			}
		}
	else if(sval.slice(0,12) == "ws_TableEdit" && colms.parse(sval.parse(2,"_").toInt()-1,",") == "cmnt") {
		iM = curAlMess[sortAr[sval.parse(3,"_").toInt()].parse(1,"\n").toInt()];
		//this.messInfo("TEST 02: value="+value+"; set="+set);
		SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
										iM.mess.parse(3,messItSep)+messItSep+iM.mess.parse(4,messItSep)+messItSep+set);
	}
}','','',-1,'owner;name;dscr;active;geomY;geomW;geomH;contextMenu;evProc;elType;value;items;set;',1662915469);
INSERT INTO wlb_Main VALUES('alarmsSt','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAnCAIAAAAw+tlrAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAE60lEQVRYhe2YTW8kRwGGn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kKaB/msbuVwGyx0LFd
D8NwHrvrdQPIm00dYAZXsdPQwvQm8pBgBq9iZ2AFc6iwAgMVAuzHzsLfoYudhOtD8ZPYAQ1cwAwi
lNi1APTwBkxuKWDHUWtj0i9c+8tgHF2keiS0a6pn6FHz0K3RhrZDTJCCdkkJpAE1D+sV1tCuMQ0V
2hXGURNqJ1wdMPF0H4e2RUjaH9LG0H4EIGesLxANuYTW0kYo9CPtw9Du36o/w4dGG2uns/rwkFop
Ba2plf2CkORMKezfpVZywWiUZBgRkpLJlTt3oJIy1gDkjBCUQq44C7B/j8WCYQCg8ugRzjMOvPUW
UnK1wlmMRipKJt7u/f8S3a1XMU5Onu0ZxzB82XLV4hw54bwf+mAM/YA11EqMOEcpWO/7LlhL7PEO
BF2LsVCxzgcftOLiwj9+HLThB99nTP7JZyH27Oxweclkypj9bhNeLSmJMfPGm97ZcKv2pUzFr377
u/fefbij63+jv2mOj49vd/L9H7IV2DRbgU2zFdg0W4FNsxXYNFuBTbMV2DRbgU2zFdg0W4FNsxXY
NN94Af3qxfNnX+gr9Y38sXV+fv4PnB1oGOFeta8AAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
function testLev( v1, v2 ) {
	isSub = abs(v1) > 7 && abs(v2) > 7;
	v1_ = abs((!isSub && abs(v1) > 7) ? v1/10 : v1);
	v2_ = abs((!isSub && abs(v2) > 7) ? v2/10 : v2);
	return (v1_ >= v2_);
}

function getSrc( categ, sourceCache ) {
	srcO = categ.match("^al(.+):([^\\.]+)|^(.*):al");
	tVl = "";

	//From remote station
	if(srcO.length == 4)
		for(off2 = 0, isFirst = true; (tVl2=srcO[3].parse(0,":",off2)).length; tVl += (tVl.length?".":"")+tVl2, isFirst = false) {
			if(!isFirst)	continue;
			if(!sourceCache[tVl2].isEVal())	tVl2 = sourceCache[tVl2];
			else {
				req = SYS.XMLNode("get").setAttr("path","/Transport/%2fsub%2fehost").setAttr("upRiseSYS",1);
				SYS.cntrReq(req);
				for(iTr = 0; req.childSize() && iTr < req.childGet(0).childSize(); iTr++)
					if(req.childGet(0).childGet(iTr).text() == tVl2) {
						tVl2 = sourceCache[tVl2] = req.childGet(1).childGet(iTr).text();
						break;
					}
			}
		}

	return tVl;
}

if(f_start) {
	cnt = 0;
	toUpdate = makeReport = toMassQuitt = false;
	wTm = 0;							//From current time
	realPrTm = prTm = SYS.time() - 86400*size_value, prTmU = 0;		//From default set depth
	messItSep = ": ";
	als = new Array();			//Hierarchical alarms with the statuses
	cAls = new Object();		//Last alarms by the criteria
	alUnSel = 0;
	highLght_ = new Array();
	for(off = 0; (iH=highLght.parse(0,"\n",off)).length || off < highLght.length; ) {
		if(!iH.length || iH[0] == "#")	continue;
		iHo = new Object();
		if(iH.parse(0,":").length > 3)
			iHo.lev = iH.slice(0,2).toInt(), iHo.quiet = iH.slice(2,3).toInt()?1:0, iHo.act = iH.slice(3,4).toInt()?1:0;
		else iHo.lev = iH.slice(0,1).toInt(), iHo.quiet = iH.slice(1,2).toInt()?1:0, iHo.act = iH.slice(2,3).toInt()?1:0;
		iHo.color = iH.parse(1,":"); iHo.font = iH.parse(2,":"); iHo.fontColor = iH.parse(3,":");
		highLght_.push(iHo);
	}
	colVars = new Array();
	//Filters curent state proceed
	fMax = 5;
	fTopOrig = fTop = this["fltr0"].attr("geomY") + this["fltr0"].attr("geomH");
	for(iF = fMax-1; iF > 0 && !this["fltr"+iF].attr("en"); iF--) ;
	fTop = this["fltr"+iF].attr("geomY") + this["fltr"+iF].attr("geomH");

	sourceCache = new Object();

	user = user_ = "";
}

//Permitions load
user = this.ownerSess().user();
if(f_start || user != user_) {
	user_ = user;
	permLoc = EVAL, permLev = 0;
	if(user != "root") {
		permLoc = new Array();
		permLev = 10;
		gList = SYS.Security["usr_"+user].groups();
		for(iG = 0; iG < gList.length; iG++) {
			if(gList[iG] == "root") { permLoc = EVAL; break; }
			gDescr = SYS.Security["grp_"+gList[iG]].cfg("LONGDESCR");
			for(iLc = 0; iLc < 10; iLc++) {
				if(permLoc[iLc].isEVal())	permLoc[iLc] = new Object();
				if((itLc=gDescr.match("^loc"+iLc+"=(.+?)$","m")).length)
					for(off = 0; (tVl=itLc[1].parse(0,";",off)).length; )
						permLoc[iLc][tVl] = true;
			}
			if((itLev=gDescr.match("^lev=(.+?)$","m")).length)	permLev = min(permLev, itLev[1].toInt());
		}
		if(permLev == 10)	permLev = 0;
	}

	//To reload
	realPrTm = prTm = (wTm?wTm:SYS.time()) - 86400*size_value, prTmU = 0;
	als = new Array(); cAls = new Object();
	toUpdate = true;
}

if(this.alarms.attr("focus"))	alUnSel = 10;	//Wait for 10 seconds
else if(alUnSel > 0 && (alUnSel=max(0,alUnSel-1/f_frq)) <= 0) {
	alarms_value = "";
	if(this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == alarms_NAME)
		this.wdgAt("/s/pg_control/pg_terminator",true).attrSet("pgOpen", true);
}
if(alarms_com) { event += "usr_qtc:/alarms\n"; alarms_st_open = true; }

//Call per 1 seconds, start or force update
if((((cnt++)%(f_frq*1) == 0 && !wTm) || f_start || toUpdate) && !f_stop) {
	alMess = SYS.Archive.messGet(realPrTm, (wTm?wTm:SYS.time()), messCat, 1, alArch);

	for(iM = 0, iRecv = 0, iAppend = 0; iM < alMess.length && iAppend < messLim; iM++) {
		iMo = alMess[iM];
		if(iMo.tm < prTm || (iMo.tm == prTm && iMo.utm <= prTmU) || abs(iMo.level) < permLev) continue;
		// Check for permited location
		if(!permLoc.isEVal() && (sVl=iMo.mess.parse(1,messItSep).match("\\[\\[(.+)\\]\\]")).length) {
			for(off = 0, iLc = 0; (sVl2=sVl[1].parse(0,"=>",off)).length; iLc++)
				if(!(permLoc[iLc]["*"] == true || permLoc[iLc][sVl2] == true))	break;
			if(sVl2.length)	continue;
		}

		if(iMo.level < 0) {	//Alarm message
			iMoA = cAls[iMo.categ];
			// !!!! To prevent the duplicate entries for new alarms in that category.
			if(!iMoA.isEVal() && iMoA.categ == iMo.categ && iMoA.tm == iMo.tm && iMoA.utm == iMo.utm) continue;
			if(!iMoA.isEVal() && !iMoA.mess.parse(4,messItSep).length) {	//Renewal state set for not marked as NORMAL
				iMoA.mess = iMoA.mess.parse(0,messItSep)+messItSep+iMoA.mess.parse(1,messItSep)+messItSep+iMoA.mess.parse(2,messItSep)+messItSep+iMoA.mess.parse(3,messItSep)+messItSep+
						tr("Renewal")+messItSep+iMoA.mess.parse(5,messItSep);
				/*if(iMoA.mess.parse(3,messItSep).length && !iMo.mess.parse(3,messItSep).length)	//Inherit the quietance fact from the previous
					iMo.mess = iMo.mess.parse(0,messItSep)+messItSep+iMo.mess.parse(1,messItSep)+messItSep+iMo.mess.parse(2,messItSep)+messItSep+iMoA.mess.parse(3,messItSep)+messItSep+
						iMo.mess.parse(4,messItSep)+messItSep+iMo.mess.parse(5,messItSep);
				if(iMoA.mess.parse(5,messItSep).length && !iMo.mess.parse(5,messItSep).length)	//Inherit the comment from the previous
					iMo.mess = iMo.mess.parse(0,messItSep)+messItSep+iMo.mess.parse(1,messItSep)+messItSep+iMo.mess.parse(2,messItSep)+messItSep+iMo.mess.parse(3,messItSep)+messItSep+
						iMo.mess.parse(4,messItSep)+messItSep+iMoA.mess.parse(5,messItSep);*/
			}
			cAls[iMo.categ] = iMo;
			iMo.lsPos = als.length;
			als.push(iMo);
			iAppend++;
		}
		else if(!(iMoA=cAls[iMo.categ]).isEVal()) {	//Norma or quietance
			/*if(iMo.mess.parse(2,messItSep).match("\\s*(.+?)\\s*$")[1] == tr("QUITANCE")) {
				if(!iMoA.mess.parse(3,messItSep).length)	//Fill for missed
					iMoA.mess = iMoA.mess.parse(0,messItSep)+messItSep+iMoA.mess.parse(1,messItSep)+messItSep+iMoA.mess.parse(2,messItSep)+messItSep+
						SYS.strftime(iMo.tm,formDtTm.replace("%MS",(iMo.utm/1000).toString(10,3)).replace("%US",iMo.utm.toString(10,6)))+messItSep+
						iMoA.mess.parse(4,messItSep)+messItSep+iMoA.mess.parse(5,messItSep);
			}
			else*/
			if(!(tVl=iMoA.mess.parse(4,messItSep)).length || tVl == tr("Norm on down"))	//Fill for missed
				iMoA.mess = iMoA.mess.parse(0,messItSep)+messItSep+iMoA.mess.parse(1,messItSep)+messItSep+iMoA.mess.parse(2,messItSep)+messItSep+iMoA.mess.parse(3,messItSep)+messItSep+
						SYS.strftime(iMo.tm,formDtTm.replace("%MS",(iMo.utm/1000).toString(10,3)).replace("%US",iMo.utm.toString(10,6)))+messItSep+
						iMoA.mess.parse(5,messItSep);
		}
		iRecv++;
		prTm = iMo.tm; prTmU = iMo.utm;
	}
	if(iM < alMess.length && iAppend >= messLim)	{ sizeLim_text = ((alMess.tm-alMess[iM-1].tm)/86400).toFixed(3); go_prev_sizeLim_en = true; }
	else if(wTm || (SYS.time()-realPrTm) > 3600) { sizeLim_text = ""; go_prev_sizeLim_en = false; }
	realPrTm = alMess.tm;
	//Active alarms get for the gone on down ones detect
	if(!wTm) {
		actAlMess = SYS.Archive.messGet(0, SYS.time(), messCat, -1);
		actAls = new Object();
		for(iM = 0; iM < actAlMess.length; iM++) {
			iMo = actAlMess[iM];
			if(abs(iMo.level) < permLev) continue;
			// Check for permited location
			if(!permLoc.isEVal() && (sVl=iMo.mess.parse(1,messItSep).match("\\[\\[(.+)\\]\\]")).length) {
				for(off = 0, iLc = 0; (sVl2=sVl[1].parse(0,"=>",off)).length; iLc++)
					if(!(permLoc[iLc]["*"] == true || permLoc[iLc][sVl2] == true))	break;
				if(sVl2.length)	continue;
			}

			actAls[iMo.categ] = iMo;
		}
		//Detect and mark "Norm on down"
		for(var iA in cAls)
			if(!(iMo=cAls[iA]).mess.parse(4,messItSep).length && !actAls[iMo.categ])
				iMo.mess = iMo.mess.parse(0,messItSep)+messItSep+iMo.mess.parse(1,messItSep)+messItSep+iMo.mess.parse(2,messItSep)+messItSep+iMo.mess.parse(3,messItSep)+messItSep+
						tr("Norm on down")+messItSep+iMo.mess.parse(5,messItSep);
		//Force placing the active alarms to the list
		for(var iA in actAls) {
			iMo = cAls[iA]; iMo1 = actAls[iA];
			if(iMo.isEVal() /*|| iMo1.tm > iMo.tm || (iMo1.tm == iMo.tm && iMo1.utm > iMo.utm)*/)
			{ als.push(iMo1); cAls[iA] = iMo1; iRecv = true; }
		}
	}

	if(iRecv || toUpdate) {
		//Sort the messages
		sortAr = new Array();
		sR = sort_value.match("\\((.+)\\)")[1];
		//this.messInfo("TEST 00: sR="+sR);		
		for(iM = 0; iM < als.length; iM++) {
			iMo = als[iM];
			tvl = iM.toString(10,6);
			if((sR_=sR.parse(0,":")) == "atm")	tvl = SYS.strftime(iMo.tm,formDtTm.replace("%MS",(iMo.utm/1000).toString(10,3)).replace("%US",iMo.utm.toString(10,6)));
			else if(sR_ == "qttm")	tvl = iMo.mess.parse(3, messItSep);
			else if(sR_ == "nrmtm")tvl = iMo.mess.parse(4, messItSep);
			else if(sR_ == "lev")	tvl = iMo.level;
			else if(sR_ == "type")	tvl = types.parse(abs(iMo.level), ";");
			else if(sR_ == "cat")	tvl = iMo.categ;
			else if(sR_ == "mess")	tvl = iMo.mess;
			else if(sR_ == "prm")	{
				tvl = iMo.mess.parse(0, messItSep);
				if((tvl2=getSrc(iMo.categ,sourceCache)).length)	tvl = tvl2 + " > " + tvl;
			}
			else if(sR_ == "dscr")	tvl = iMo.mess.parse(1, messItSep).replace(new RegExp("\\[\\[.+\\]\\]"),"");
			else if(sR_ == "alrm")	tvl = iMo.mess.parse(2, messItSep);
			else if(sR_ == "cmnt")	tvl = iMo.mess.parse(5, messItSep);
			//else if(sR_ == "src")	tvl = getSrc(iMo.categ, sourceCache);
			else if(sR_.slice(0,8) == "dscrCust")
				tvl = (tvl=iMo.mess.parse(1,messItSep).match("\\[\\[(.+)\\]\\]")).length ? tvl[1].parse(sR_.slice(8).toInt(),"=>") : "";
			sortAr.push(">"+tvl+"\n"+iM);
		}
		sortAr = sortAr.sort();
		if(sR.isEVal() || sR.parse(1,":") == "!")	sortAr = sortAr.reverse();
		sort_items = tr("Disable");

		for(iF = 0; iF < fMax; iF++) this["fltrCol"+iF].attrSet("items", tr("Disable"));

		//The table content update
		alarms_items = "<tbl sel=''row'' sortEn=''1'' colsWdthFit=''1'' hHdrVis=''"+(hHdrVis?1:0)+"'' vHdrVis=''"+(vHdrVis?1:0)+"''>\n";
		alarms_items += "<h><s width=''0px''>ID</s>";
		if(makeReport) rep = "<body>\n"
			"<h1>"+tr("Alarms report for")+" "+SYS.strftime(wTm?wTm:SYS.time())+"</h1>\n"
			"<table class=''data'' width=''100%'' export=''1''><tr>\n";
		for(vC = "", off = 0; (vC=colms.parse(0,",",off)).length; ) {
			tvl = ""; toEdit = false;
			if(vC == "atm")			tvl = tr("Alarm time");
			else if(vC == "qttm")	tvl = tr("Quietance time");
			else if(vC == "nrmtm")	{ tvl = tr("Norm"); colVars[vC] = new Object(); }
			else if(vC == "lev")	tvl = tr("Lev.");
			else if(vC == "type")	tvl = tr("Type");
			else if(vC == "cat")	tvl = tr("Category");
			else if(vC == "mess")	tvl = tr("Message");
			else if(vC == "prm")	tvl = tr("Source");
			else if(vC == "dscr")	tvl = tr("Description");
			else if(vC == "alrm")	tvl = tr("Alarm");
			else if(vC == "cmnt")	tvl = tr("Comment"), toEdit = true;
			//else if(vC == "src")	tvl = tr("Source");
			else if(vC.slice(0,8) == "dscrCust") {
				nCust = vC.slice(8).toInt();
				tvl = (tVl=colDscrCustNames.parse(nCust,";")).length ? tVl : tr("Custom")+" "+nCust;
				colVars[vC] = new Object();
			}
			if(tvl.length) {
				alarms_items += "<s"+(toEdit?" edit=''1''":"")+((vC=="atm")?" sort=''1''":"")+">"+tvl+"</s>";
				if(makeReport) rep += "<th>"+tvl+"</th>";
				sort_items += "\n"+tvl+" ("+vC+")\n"+tvl+", "+tr("reversed")+" ("+vC+":!)";
				for(iF = 0; iF < fMax; iF++)
					this["fltrCol"+iF].attrSet("items", this["fltrCol"+iF].attr("items")+"\n"+tvl+" ("+vC+")");
			}
		}
		alarms_items += "</h>\n";
		if(makeReport) rep += "</tr>\n";
		for(iSM = 0; iSM < sortAr.length; iSM++) {
			iM = als[iMid=sortAr[iSM].parse(1,"\n").toInt()];
			//Check for higlight properties match
			for(iHgl = false, iH = 0; iH < highLght_.length && !iHgl; iH++) {
				iHo = highLght_[iH];
				if(testLev(iM.level,iHo.lev) && (iM.mess.parse(3,messItSep).length?1:0) == iHo.quiet &&
																 ((wTm||iM.mess.parse(4,messItSep).length)?0:1) == iHo.act)
					iHgl = iHo;
			}
			aRow = "<r"+(iHgl?" color=''"+iHgl.color+"'' font=''"+iHgl.font+"'' colorText=''"+iHgl.fontColor+"''":"")+"><i>"+iMid+"</i>";
			if(makeReport) repRow = "<tr>\n";
			for(vC = "", off = 0, isMatch = true; isMatch && (vC=colms.parse(0,",",off)).length; ) {
				if(vC == "atm")			{ sVl = SYS.strftime(iM.tm,formDtTm.replace("%MS",(iM.utm/1000).toString(10,3)).replace("%US",iM.utm.toString(10,6))); aRow += "<s>"+sVl+"</s>"; }
				else if(vC == "qttm")	{ sVl = iM.mess.parse(3, messItSep); aRow += (sVl.length ? "<s>"+sVl+"</s>" : "<b edit=''1''>0</b>"); }
				else if(vC == "nrmtm")	{
					if(!(sVl=iM.mess.parse(4,messItSep)).length && !wTm) sVl = tr("Active");
					aRow += "<s align=''center''>"+sVl+"</s>";
					if(!sVl.toInt()) colVars[vC][sVl] = true;
				}
				else if(vC == "lev")	{ sVl = abs(iM.level).toString(); aRow += "<s align=''center''>"+sVl+"</s>"; }
				else if(vC == "type")	{ sVl = types.parse(abs(iM.level), ";"); aRow += "<s align=''center''>"+sVl+"</s>"; }
				else if(vC == "cat")	{ sVl = iM.categ; aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				else if(vC == "mess")	{ sVl = iM.mess; aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				else if(vC == "prm")	{
					sVl = iM.mess.parse(0, messItSep);
					if((tvl2=getSrc(iM.categ, sourceCache)).length)	sVl = tvl2 + " > " + sVl;
					aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>";
				}
				else if(vC == "dscr")	{ sVl = iM.mess.parse(1, messItSep).replace(new RegExp("\\[\\[.+\\]\\]"),""); aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				else if(vC == "alrm")	{ sVl = iM.mess.parse(2, messItSep); aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				else if(vC == "cmnt")	{ sVl = iM.mess.parse(5, messItSep); aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				//else if(vC == "src")	{ sVl = getSrc(iM.categ, sourceCache); aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>"; }
				else if(vC.slice(0,8) == "dscrCust") {
					nCust = vC.slice(8).toInt();
					sVl = (sVl=iM.mess.parse(1,messItSep).match("\\[\\[(.+)\\]\\]")).length ? sVl[1].parse(nCust,"=>") : "";
					aRow += "<s>"+SYS.strEncode(sVl,"HTML")+"</s>";
					colVars[vC][sVl] = true;
				}
				for(iF = 0; iF < fMax; iF++)
					if(vC == this["fltrCol"+iF].attr("value").match("\\((.+)\\)")[1] && (tVl=this["fltr"+iF].attr("value")).length) {
							if(vC == "lev")	isMatch = (sVl.toInt() >= tVl.toInt());
							else if(vC == "nrmtm" || vC.slice(0,8) == "dscrCust")	isMatch = (sVl.match(tVl).length > 0);
							else isMatch = (sVl.indexOf(tVl) >= 0);
					}
				if(makeReport) repRow += "<td>"+SYS.strEncode(sVl,"HTML")+"</td>";
			}
			if(isMatch) {
				alarms_items += aRow + "</r>\n";
				if(makeReport) rep += repRow + "</tr>\n";
				if(toMassQuitt && !iM.mess.parse(3,messItSep).length) {
					SYS.messNote("OP:"+this.ownerSess().user()+":"+iM.mess.parse(0,messItSep),
						"''"+iM.mess.parse(0,messItSep)+"''. "+tr("Command")+" : "+iM.mess.parse(1, messItSep) + " -> " + iM.mess.parse(2, messItSep)+" : : "+alarms_digComs.parse(0,";").parse(0,"-"));
					tmU = 0;
					tMess = iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
						SYS.strftime(SYS.time(tmU),formDtTm.replace("%MS",(tmU/1000).toString(10,3)).replace("%US",tmU.toString(10,6)));
					if((tVl1=iM.mess.parse(4,messItSep)).length || (tVl2=iM.mess.parse(5,messItSep)).length) {
						tMess += messItSep+tVl1;
						if((tVl2=iM.mess.parse(5,messItSep)).length) tMess += messItSep+tVl2;
					}
					iM.mess = tMess;
					isCurAct = ((iAo=actAls[iM.categ]) && iAo.tm == iM.tm && iAo.utm == iM.utm);
					SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess, isCurAct?"":alArch);
				}
			}
		}
		alarms_items += "</tbl>";
		if(makeReport) { rep += "</table>\n</body>\n"; go_report_report = rep; }

		//Filter''s selection list update
		for(iF = 0; iF < fMax; iF++) {
			iFCo = this["fltrCol"+iF]; iFo = this["fltr"+iF];
			fCol = iFCo.attr("value").match("\\((.+)\\)")[1];
			fCfg = "";
			if(colVars[fCol]) {
				fCfgPref = iFo.attr("value");
				for(sumVl = "", tVl1 = "", off = 0; (tVl=fCfgPref.parse(0,"|",off)).length; tVl1 = tVl)
					if(tVl1.length) { sumVl += (sumVl.length?"|":"")+tVl1; fCfg += sumVl + "\n"; }
				custColO = colVars[fCol];
				for(var iFv in custColO)
					if(iFv.length && fCfgPref.indexOf(iFv) < 0) fCfg += (fCfgPref.length?fCfgPref+"|":"") + iFv + "\n";
			}
			iFo.attrSet("cfg", fCfg);
		}
	}
	toUpdate = makeReport = false;
}

if(toMassQuitt) { toMassQuitt = false; toUpdate = true; }

//Events process
for(off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//this.messInfo("TEST 01: Event="+sval+" : "+alarms_value);
	isFirst = isSec = false;
	if(sval == "ws_FocusIn:/alarms") {
		alarms_geomY = fTopOrig; alarms_geomH += fTop-fTopOrig;
		if(alarms_value.length) event += "usr_goquiet:/alarms\n";
	}
	else if(sval == "ws_FocusOut:/alarms")	{ alarms_geomY = fTop; alarms_geomH -= fTop-fTopOrig; }
	else if(( (sval == "usr_qtc:/alarms" && (iM=als[alarms_value])) ||
					(sval.slice(0,12) == "ws_TableEdit" && colms.parse(sval.parse(2,"_").toInt()-1,",") == "qttm" && (iM=als[sortAr[sval.parse(3,"_").toInt()].parse(1,"\n").toInt()])) )
			&& !iM.mess.parse(3,messItSep).length)
	{
		//this.messInfo("TEST 02: value="+alarms_value+"; set="+alarms_set);
		if(!alarms_com) SYS.messNote("OP:"+this.ownerSess().user()+":"+alarms_NAME, "''"+alarms_NAME+"''. "+tr("Command")+" : "+alarms_DESCR+" : : "+alarms_digComs.parse(0,";").parse(0,"-"));
		tmU = 0;
		tMess = iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
					SYS.strftime(SYS.time(tmU),formDtTm.replace("%MS",(tmU/1000).toString(10,3)).replace("%US",tmU.toString(10,6)));
		if((tVl1=iM.mess.parse(4,messItSep)).length || (tVl2=iM.mess.parse(5,messItSep)).length) {
			tMess += messItSep+tVl1;
			if((tVl2=iM.mess.parse(5,messItSep)).length) tMess += messItSep+tVl2;
		}
		iM.mess = tMess;
		isCurAct = ((iAo=actAls[iM.categ]) && iAo.tm == iM.tm && iAo.utm == iM.utm);
		SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess, isCurAct?"":alArch);
		toUpdate = true;
		alarms_com = false;
	}
	else if(sval == "ws_BtPress:/quietMass")	toMassQuitt = toUpdate = true;
	else if(sval == "ws_TableChangeSel:/alarms") {
		iM = als[alarms_value];
		alarms_NAME = iM.mess.parse(0, messItSep);
		alarms_DESCR = iM.mess.parse(1, messItSep) + " -> " + iM.mess.parse(2, messItSep);
		alarms_st_open = iM.mess.parse(3, messItSep).length;
		if(alarms_value.length) event += "usr_goquiet:/alarms\n";
	}
	else if(sval.slice(0,12) == "ws_TableEdit" && colms.parse(sval.parse(2,"_").toInt()-1,",") == "cmnt") {
		iM = als[sortAr[sval.parse(3,"_").toInt()].parse(1,"\n").toInt()];
		//this.messInfo("TEST 03: value="+alarms_value+"; set="+alarms_set);
		iM.mess = iM.mess.parse(0,messItSep)+messItSep+iM.mess.parse(1,messItSep)+messItSep+iM.mess.parse(2,messItSep)+messItSep+
						iM.mess.parse(3,messItSep)+messItSep+iM.mess.parse(4,messItSep)+messItSep+alarms_set;
		isCurAct = ((iAo=actAls[iM.categ]) && iAo.tm == iM.tm && iAo.utm == iM.utm);
		SYS.Archive.messPut(iM.tm, iM.utm, iM.categ, iM.level, iM.mess, isCurAct?"":alArch);
	}
	else if(sval == "ws_CombChange:/sort")	toUpdate = true;
	else if(sval.slice(0,22) == "ws_CombChange:/fltrCol") {
		fN = sval.slice(22).toInt();
		fAct = !this["fltrCol"+fN].attr("value").match("\\((.+)\\)")[1].isEVal();
		this["fltr"+fN].attrSet("active", fAct).attrSet("value", "");
		if(fAct && (fN+1) < fMax && !this["fltrCol"+(fN+1)].attr("en")) {
			this["fltrCol"+(fN+1)].attrSet("en", true);
			this["fltr"+(fN+1)].attrSet("en", true).attrSet("active", false).attrSet("value", "");
		}
		else for(iF = fMax-1; !fAct && iF >= fN; iF--)
			if(iF < (fMax-1)) {
				this["fltrCol"+(iF+1)].attrSet("en", false).attrSet("value", tr("Disable"));
				this["fltr"+(iF+1)].attrSet("en", false).attrSet("active", false).attrSet("value", "");
			}
		//Apply filter vertical offset and size
		for(iF = fMax-1; iF > 0 && !this["fltr"+iF].attr("en"); iF--) ;
		fTop_ = this["fltr"+iF].attr("geomY") + this["fltr"+iF].attr("geomH");
		alarms_geomH += fTop-fTop_; fTop = fTop_; alarms_geomY = fTop;

		toUpdate = true;
	}
	else if(sval.slice(0,17) == "ws_LnAccept:/fltr")	toUpdate = true;
	else if((isFirst=(sval=="ws_LnAccept:/size")) || (isSec=(sval=="ws_LnAccept:/time")) || sval == "ws_BtPress:/go_cur") {
		if(!isFirst)	{
			wTm = isSec ? time_value : 0;
			if(wTm >= SYS.time()) wTm = 0;
		}
		realPrTm = prTm = (wTm?wTm:SYS.time()) - 86400*size_value, prTmU = 0;
		als = new Array(); cAls = new Object();
		toUpdate = true;
	}
	else if((isFirst=(sval=="ws_BtPress:/go_prev")) || (isSec=(sval=="ws_BtPress:/go_prev_sizeLim")) || sval == "ws_BtPress:/go_prev1") {
		wTm = max(0, (wTm?wTm:SYS.time())-86400*(isSec?sizeLim_text.toReal():size_value)*((isFirst||isSec)?1:5));
		realPrTm = prTm = wTm - 86400*size_value, prTmU = 0;
		als = new Array(); cAls = new Object();
		toUpdate = true;
	}
	else if((isFirst=(sval=="ws_BtPress:/go_next")) || sval == "ws_BtPress:/go_next1") {
		if((wTm=(wTm?wTm:SYS.time()) + 86400*size_value*(isFirst?1:5)) >= SYS.time()) wTm = 0;
		realPrTm = prTm = (wTm?wTm:SYS.time()) - 86400*size_value, prTmU = 0;
		als = new Array(); cAls = new Object();
		toUpdate = true;
	}
	else if(sval == "ws_BtPress:/go_report")				toUpdate = makeReport = true;
}

time_value = wTm ? wTm : SYS.time();
//go_cur_active = wTm;','','',-1,'owner;name;dscr;geomX;geomY;geomW;geomH;geomZ;evProc;pgOpenSrc;pgGrp;backColor;bordWidth;bordColor;',1662915478);
INSERT INTO wlb_Main VALUES('ImgLab','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAN
[encoded data, 4542 characters]
rkJggg==','/wlb_originals/wdg_Media',0,'JavaLikeCalc.JavaScript
function setActMess(mess) {
	if(err.isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+NAME, "''"+NAME+"''."+mess);
	else SYS.nodeAt(err).nodePrev().messSet("''"+NAME+"''."+mess, 2, "OP", this.ownerSess().user());
}

if(f_start) {
	isErr = false, alBlnk = false, cnt = 0;
	toFastCalc = toFastCalc_ = false;
}

toFastCalc = false;

//Prepare/update the context menu
if(f_start || ((cnt++)%max(1,f_frq*10)) == 0) {
	EVALclr = imgs.parse(2,":").parse(1,"-");
	contextMenu = "";
	if(!digComs.isEVal() && digComs.length) {
		if(!com_text.isEVal())
			for(off = 0; (comVal=digComs.parse(0,";",off)).length; )
				contextMenu += comVal.parse(0,"-") + ":" + comVal.parse(0,"-") + "\n";
		else {
			if((comVal=digComs.parse(0,";")).length)	contextMenu += comVal.parse(0,"-") + ":open\n";
			if((comVal=digComs.parse(1,";")).length)	contextMenu += comVal.parse(0,"-") + ":close\n";
			if((comVal=digComs.parse(2,";")).length)	contextMenu += comVal.parse(0,"-") + ":stop\n";
		}
	}
}

//Display label from st_img
stCur = -1;
if(!st_img.isEVal() && st_img.length) {
	src = st_img.parse(0,":");
	blink = st_img.parse(2,":").toInt();
	backClr = st_img.parse(1,":").parse(0,"-");
	if(blink) {
		backClrBl = st_img.parse(1,":").parse(1,"-");
		if(!backClrBl.length)	backClrBl = EVALclr;
		backColor = (backColor!=backClr) ? backClr : backClrBl;
	}
	else	backColor = backClr;
}
//Display typical for st_open
else if(st_open == true || st_close == false) {
	backColor = (stVal=imgs.parse(0,":").parse(1,"-")) ? "*" : digStts.parse(0,";").parse(1,"-");
	src = imgs.parse(0, ":");
	stCur = 1;
}
else if(st_open == false || st_close == true) {
	backColor = (stVal=imgs.parse(1,":").parse(1,"-")) ? "*" : digStts.parse(1,";").parse(1,"-");
	src = imgs.parse(1, ":");
	stCur = 0;
}
else {
	src = imgs.parse(2,":").parse(0,"-");
	backColor = EVALclr;
	return;
}
if(!backColor.length)	backColor = "black-1";	//For the activity cursor

//Blink linked with ElCadr
if(this.attr("focus") ||
	(!NAME.isEVal() && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == NAME))
{
	bordColor = (bordColor != "white") ? "white" : "black";
	if(bordWidth) bordWidth = 2;
	toFastCalc = true;
}
else { if(bordWidth) bordWidth = 1; bordColor = "black"; }

//Notification create
if(ntf.length && (ntf.toInt() == stCur) != isErr) {
	if((isErr=(ntf.toInt()==stCur)))	alarm = "50|"+NAME+"|"+ntf.parse(2,":")+".|"+ntf.parse(1,":");
	else if(alarmSt&0x100)	alarm = "1|"+NAME+"||1";
}
if(!isErr && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";
if(alarmSt&0x100) {
	if(!(alarmSt&0x10000) || alBlnk)	backColor = isErr ? "red" : backColor;
	else backColor = (backColor==EVALclr) ? "#383838" : EVALclr, toFastCalc = true;
	alBlnk = !alBlnk;
}

//Events process
for(ev_rez = "", off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("TextLab","Event: "+sval);
	if(!com_text.isEVal() && sval.indexOf("usr_") == 0) {
		com_text = comVal = sval.slice(4);
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_open") {
		if(!com.isEVal())	com = true;
		else close = false;
		comVal = (comVal=digComs.parse(0,";")).length ? comVal.parse(0,"-") : tr("ENABLE");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_close") {
		if(!close.isEVal())	close = true;
		else com = false;
		comVal = (comVal=digComs.parse(1,";")).length ? comVal.parse(0,"-") : tr("DISABLE");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_stop") {
		if(!stop.isEVal())	stop = true;
		comVal = (comVal=digComs.parse(2,";")).length ? comVal.parse(0,"-") : tr("STOP");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else ev_rez += sval+"\n";
}
event = ev_rez;

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'owner;name;dscr;active;geomW;geomH;contextMenu;evProc;backColor;bordWidth;bordColor;src;fit;',1678183635);
INSERT INTO wlb_Main VALUES('userManager','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAnCAIAAAAw+tlrAAAACXBIWX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_Main/wdg_RootPgSo/wdg_pgCont',0,'JavaLikeCalc.JavaScript
if(f_start) {
	grpLs = new Array(); userSelVl = lib_value_ = sesUer = "";
	userLbUpdt = userSel = 0;
}

if(sesUer != this.ownerSess().reqUser()) {
	userSel = userLbUpdt = SYS.mtime();
	userSelVl = sesUer = this.ownerSess().reqUser();
	if(denyUsers.indexOf(userSelVl) >= 0)	userSelVl = "";
}

//Events for commands process
for(ev_rez = "", offEv = 0; (evCur=event.parse(0,"\n",offEv)).length; ) {
	//this.messInfo("Event: "+evCur);
	if(evCur == "ws_ListChange:/lib") {
		userSel = SYS.mtime();
		userSelVl = ((userSelVl=lib_value.match("\\((.+)\\)$")).length > 1) ? userSelVl[1] : "";
	}
	if(evCur == "ws_BtPress:/userAdd") {
		if(!userNm_value.length) userNm_value = tr("NewUser");
		req = SYS.XMLNode("add").setAttr("path","/sub_Security/%2fbr%2fusr_").setText(userNm_value);
		if(!SYS.cntrReq(req).toInt()) {
			userNm_value = req.text();
			if(storeDB.length)
				SYS.cntrReq(SYS.XMLNode("set").setAttr("path","/sub_Security/"+userNm_value+"/%2fprm%2fdb").setText(storeDB));
			for(off = 0; (iIt=newUseGrps.parse(0,";",off)).length; )
				if((oIt=SYS.Security.nodeAt("grp_"+iIt)))
					oIt.cfgSet("USERS", oIt.cfg("USERS")+userNm_value+";");
			lib_value_ = userNm_value+" ("+userNm_value+")"; userSelVl = userNm_value;
			userLbUpdt = userSel = SYS.mtime()+500;

			SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Added user \"%1\"").replace("%1",userNm_value));
		}

		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/%2fobj"));	//To save all users and groups
	}
	else if(evCur == "dlg_Apply:/userDel" && userSelVl.length) {
		req = SYS.XMLNode("del").setAttr("path","/sub_Security/%2fbr%2fusr_").setText(userSelVl);
		rez = SYS.cntrReq(req);
		SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Deleted user \"%1\"").replace("%1",userNm_value));
		//this.messInfo("Result: "+rez+": "+req.save());
		lib_value_ = userSelVl = "";
		userLbUpdt = userSel = SYS.mtime()+500;

		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/%2fobj"));	//To save all groups
	}
	else if(evCur == "ws_LnAccept:/fullName" && (oIt=SYS.Security.nodeAt("usr_"+userSelVl))) {
		oIt.cfgSet("DESCR", fullName_value);
		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/usr_"+userSelVl+"/%2fobj"));
		SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Set the user \"%1\" for").replace("%1",userSelVl)+" "+tr("Full name")+" : : "+fullName_value);
		lib_value_ = fullName_value + " ("+userSelVl+")";
		userLbUpdt = userSel = SYS.mtime()+500;
	}
	else if(evCur == "ws_TxtAccept:/descr" && (oIt=SYS.Security.nodeAt("usr_"+userSelVl))) {
		oIt.cfgSet("LONGDESCR", descr_value);
		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/usr_"+userSelVl+"/%2fobj"));
		SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Set the user \"%1\" for").replace("%1",userSelVl)+" "+tr("Description")+" : : "+descr_value);
		userSel = SYS.mtime()+500;
	}
	else if(evCur == "ws_LnAccept:/pass" && (oIt=SYS.Security.nodeAt("usr_"+userSelVl))) {
		oIt.cfgSet("PASS", pass_value);
		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/usr_"+userSelVl+"/%2fobj")); 
		SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Set the user \"%1\" for").replace("%1",userSelVl)+" "+tr("Password")+" : : "+tr("CHANGED"));
		userSel = SYS.mtime()+500;
	}
	else if(evCur == "ws_TableChangeSel:/grp" && (oIt=SYS.Security.nodeAt("usr_"+userSelVl)) &&
			grp_value.length && (oIt1=SYS.Security.nodeAt(grp_value))) {
		grp_value = grp_value.slice(4);
		SYS.messNote("OP:"+this.ownerSess().user()+":{Page}."+this.attr("id"), title_text+" : "+tr("Set the user \"%1\" for").replace("%1",userSelVl)+" "+(oIt1.user(userSelVl)?tr("Group uncheck"):tr("Group check"))+" : : "+grp_value);
		users = oIt1.cfg("USERS");
		//this.messInfo("grp_value="+grp_value+"; users="+users);
		oIt1.cfgSet("USERS", oIt1.user(userSelVl) ? users.replace(userSelVl+";","") : users+userSelVl+";");
		SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/grp_"+grp_value+"/%2fobj"));
		//SYS.cntrReq(SYS.XMLNode("save").setAttr("path","/sub_Security/usr_"+userSelVl+"/%2fobj")); 
		userSel = SYS.mtime()+500;
	}
	else ev_rez += (evCur+"\n");
}
event = ev_rez;

//Get users and groups list
if(f_start || (userLbUpdt && SYS.mtime() >= userLbUpdt)) {
	userLbUpdt = 0;
	rez = SYS.Security.nodeList("usr_");
	//rez = SYS.BD.nodeAt(dbDB,".").SQLReq("SELECT name FROM "+dbProgs+";");
	lib_items = userNm_cfg = "";
	for(iIt = 0; iIt < rez.length; iIt++) {
		if(denyUsers.indexOf(rez[iIt].slice(4)) >= 0 || !(oIt=SYS.Security.nodeAt(rez[iIt])))	continue;
		tVl1 = ((tVl=oIt.cfg("DESCR")).length?tVl:rez[iIt].slice(4)) + " ("+rez[iIt].slice(4)+")";
		lib_items += (lib_items.length?"\n":"") + tVl1;
		userNm_cfg += (userNm_cfg.length?"\n":"") + rez[iIt].slice(4);
		if(!userSelVl.length) userSelVl = rez[iIt].slice(4);
		if(userSelVl == rez[iIt].slice(4))	lib_value_ = tVl1;
	}
	lib_value = lib_value_;

	grpLs = SYS.Security.nodeList("grp_");
	for(iL = 0; iL < grpLs.length; iL++)
		if(denyGroups.indexOf(grpLs[iL].slice(4)) >= 0)
		{ grpLs.splice(iL, 1); iL--; }
}
userDel_active = userSelVl.length;

if(userSel && SYS.mtime() >= userSel) {
	userSel = 0;
	fullName_active = descr_active = pass_active = grp_active = false;
	name_value = fullName_value = descr_value = pass_value = grp_items = "";

	if(userSelVl.length && (oIt=SYS.Security.nodeAt(userSelVl))) {
		//this.messInfo("userSelVl="+userSelVl);
		fullName_active = descr_active = pass_active = grp_active = true;
		name_value = oIt.cfg("NAME");
		fullName_value = oIt.cfg("DESCR");
		descr_value = oIt.cfg("LONGDESCR");
		pass_value = oIt.cfg("PASS");
		//Groups
		grp_items = "<tbl sel=''row'' colsWdthFit=''1'' vHdrVis=''0'' hHdrVis=''0'' keyID=''0''>\n"
			"<h><s width=''0''>Ідентифікатор</s><s>Група</s></h>\n";
		for(iIt = 0; iIt < grpLs.length; iIt++) {
			if(!(oIt=SYS.Security.nodeAt(grpLs[iIt])))	continue;
			grp_items += "<r"+(oIt.user(userSelVl)?" color=''#777799''":"")+">"
				"<s>"+SYS.strEncode(grpLs[iIt],"HTML")+"</s>"
				"<s>"+SYS.strEncode(oIt.cfg("DESCR")+" ("+grpLs[iIt].slice(4)+")","HTML")+"</s></r>";
		}
		grp_items += "</tbl>";
		grp_value = "";
	}
}','','',-1,'id;owner;perm;name;dscr;geomH;evProc;backColor;',1587891375);
INSERT INTO wlb_Main VALUES('graphCalc','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAD
X0lEQVRYhe2YzU7jRgCAZ8YziWPPjBNTwoJQoBKicEBqJLgguPMkPEDeaXvgxEOgPAGI21aiIK2d
LPHP+Hc8nh6yaqtNWJVSyaXKd7DkGXv8fRrJkg0vLy8ppZ7nIYSUUlmWua4rhKjruigK27aVUhjj
JEk452VZ5nlu2zZjLE1TpVRVVRjj+TFJEkopIWQ6nW5vb0dRVJal1towDMuyyrLknD8+PnLOhRCM
sV6v53kexhghJKUEADw8POzv7wdBsLe3N5lMJpPJ2tra8/PzYDCIoghCKKXUWiulbNvu9/tCCEQp
5Zx3Oh2EUBiGjuPEcUwIieO42+1CCH3f7/V67Xbbtm3HcSzLiqIoz/Msy4IgQAjN7YMggBAmSTIY
DI6Pjw3DCIKAUuq6brvdTpIky7KyLBFC3W6XUiqEQAghhIqiEELMZrPZbDYcDuM45pwjhNbX1xFC
GGPGmJQyz/OqqhzHabVanU5HSsk5p5TC0WjEOQcvoLXO87zT6XwzPpdevF5KWde1UqooCoyxaZpK
KaWU53mMMcuywjDc2tpavAtCqJRqtVoQwm9mi6Jot9tL9aIoWiLxVyCEi/YAgKX2AID7+/soiiil
aZq2Wq08z+u6Pjk5wRjf3d0xxo6OjhbvIoR8Z82X7L+afD9gKYwx13WXTu3s7CwdPzg4OD8//wfP
eomnp6eqqsAfAWmaEkIMwwAASCkJIVprhNDihgIADg8Ph8OfPe/z1uZWGEWU0krKqqowwUADDQBj
NI7jqqoYY7PnWa01Y8w029S2365eFGVd1x8//jKZTv8MKMsyy7LpdOq6bhAEGGOtdb/fp5QuLqFU
laVJmee/fvoUhMGPu7tFUQiRQAgoY3Ecb3744Pu+lDKmdPrli6614zibm5vEMP6VgKqStdbzUzga
jU5PTy3L+vtLcM5+WFt7u8pbePjtMYqi8XiMAQBnZ2cbGxvNCr2Wnw4Ofd8fj8eoaZO3sgpomlVA
06wCmmYV0DSrgKZZBTTNKqBpMADg5ubmVR80/xHSNAXzgNvb29lsVtc1IYQQEoZhv99H6H1szldL
0zTnv4DCMGxW6LVgAMDFxUW3223a5NUEQXB1dYUBALu7u+/umxgA4Ps++B+8hd59ABZCXF9fm6bZ
tMmryfNcCPE7hI+m2a6F3MAAAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
if(f_start) {
	//Connect to linked widget 
	if(pgOpenSrc.length) lWdg = this.wdgAt(pgOpenSrc, true);
	if(lWdg) {
		attrO = SYS.nodeAt(lWdg.attr("addr"));
		if(typeof(attrO) == "TCntrNode:TVal")	archO = attrO.arch();
		else archO = attrO;
		//this.messInfo("attrO="+typeof(attrO));
	}

	funcLs_active = funcCode_active = (lWdg && archO);
	result_value = "";

	if(funcCode_active) {
		dtTm = lWdg.nodePrev().trnd1.attr("tSek");
		if(dtTm <= 0)	dtTm = SYS.time();
		dtTmBeg = dtTm - lWdg.nodePrev().trnd1.attr("tSize");
		valArch = lWdg.nodePrev().trnd1.attr("valArch");

		//Prepare the execution context
		inPrcId = this.nodePath("_");
		inPrcLng = "JavaLikeCalc.JavaScript";
		inPrcErr = "";
		inPrcArgs = new Object();
		inPrcArgs.beg = dtTmBeg*1e6;
		inPrcArgs.end = dtTm*1e6;
		inPrcArgs.per = (inPrcArgs.end-inPrcArgs.beg) / 1000;
		inPrcArgs.data = archO.getVals(inPrcArgs.beg, inPrcArgs.end, inPrcArgs.per, valArch);

		title_text = tr("Calculation for the parameter \"%1\" archive at the data range [%2...%3] and the archiver \"%4\"")
			.replace("%1", lWdg.attr("name"))
			.replace("%2", SYS.strftime(1e-6*inPrcArgs.beg,"%Y-%m-%dT%H:%M:%S"))
			.replace("%3", SYS.strftime(1e-6*inPrcArgs.end,"%Y-%m-%dT%H:%M:%S"))
			.replace("%4", valArch.length ? valArch : tr("All"));

		//Functions library
		fLib = new Object();
		fLib[tr("Sum, at hour")] = "vl = 0, prVl = EVAL;\n"
			"for(i = 0; i < data.length; i++) {\n"
			"	if((cVl=data[i]).isEVal() && !prVl.isEVal())	cVl = prVl;\n"
			"	if(cVl.isEVal())	continue;\n"
			"	vl += cVl;\n"
			"	prVl = cVl;\n"
			"}\n"
			"result = \"Summary=\"+vl.toPrecision(6)+\"; \"\n"
			"	\"Hours=\"+((end-beg)/3600e6).toPrecision(6)+\"; \"\n"
			"	\"Value*hours=\"+(vl*per/3600e6).toPrecision(6);";
		fLib[tr("Average and range")] = "vl = EVAL, cnt = 0, vlMax = -1e300, tmMax = 0, vlMin = 1e300, tmMin = 0;\n"
			"for(i = 0; i < data.length; i++)\n"
			"	if((cVl=data[i]).isEVal())	continue;\n"
			"	else {\n"
			"		if(vl.isEVal())	vl = cVl;\n"
			"		else vl += cVl;\n"
			"		if(cVl > vlMax)	vlMax = cVl, tmMax = i;\n"
			"		if(cVl < vlMin)	vlMin = cVl, tmMin = i;\n"
			"		cnt++;\n"
			"	}\n"
			"result = \"Average=\"+(vl/cnt).toPrecision(6)+\"; \"\n"
			"	\"Minimum=\"+vlMin.toPrecision(6)+\"(\"+SYS.strftime(1e-6*(beg+tmMin*per))+\"); \"\n"
			"	\"Maximum=\"+vlMax.toPrecision(6)+\"(\"+SYS.strftime(1e-6*(beg+tmMax*per))+\")\";";

		funcLs_items = "";
		for(var iL in fLib)	funcLs_items += (funcLs_items.length?"\n":"") + iL;			
	}
	else title_text = tr("Error connecting to the widget ''%1''!").replace("%1", pgOpenSrc);

	toCalc = funcCode_value.length;
}

//Events for commands process
for(evRez = "", off = 0; (evCur=event.parse(0,"\n",off)).length; ) {
	//this.messInfo("Event: "+evCur);
	if(evCur == "ws_CombChange:/funcLs" && !fLib[funcLs_value].isEVal())
		funcCode_value = fLib[funcLs_value], toCalc = true;
	else if(evCur == "ws_TxtAccept:/funcCode")	toCalc = true;
}

//Calculation
if(toCalc)	{
	inPrcArgs.result = "";
	rez = SYS.DAQ.funcCall(inPrcLng, inPrcArgs, funcCode_value, inPrcId, inPrcErr);
	result_value = rez ? inPrcArgs.result : inPrcErr;
	toCalc = false;
}','','',500,'owner;name;dscr;geomW;geomH;pgOpenSrc;pgGrp;backColor;bordWidth;',1565536317);
INSERT INTO wlb_Main VALUES('alarmsStReport','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwCAIAAAAuKetIAAAAA3NCSVQICAjb4U/gAAAACXBIWXMA
AA7EAAAOxAGVKw4bAAAAqUlEQVRoge3PQQqDMBRF0ZjvtDj4ZP/LysBJnRSh+WBaG+sgpEsQ7OAh
vLOCe7sYo6q6azKzXlVDCOiS8zw64F8cQOMAGgfQOIDGATQOoHEAjQNoHEDjABoH0DiAxgE0DqBx
AI0DaBxA4wAaB9A4gMYBtMsP9OM4ppTQGQfinFsnS3sW9x6K7mUbNIiXdUm9mdVa0YUHpulRnZ/b
3XeSy/bdyu31EZF9zT9OVjILd/qtqAAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
//Events for commands process
for(off = 0, ev_rez = ""; (evCur=event.parse(0,"\n",off)).length; ) {
	if(evCur == "ws_BtPress:/apply")	this.attrSet("pgOpen",false);
	else ev_rez += evCur + "\n";
}
event = ev_rez;','','',500,'owner;name;dscr;geomW;geomH;pgGrp;backColor;bordWidth;',1677086092);
INSERT INTO wlb_Main VALUES('storeHouse','iVBORw0KGgoAAAANSUhEUgAAAEAAAAApCAIAAAAK8LgbAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAB
UklEQVRYhe3PQU/CMBjG8ba022C02yDEuSiYSNSIn40vxnfw7t2LmuhhV2S6dRusY3hB402Chjcm
7+/UQ9s8fzqdTh3HITuYTG6KsrAty/P8oBfs8mQPpaUqY+bzRfx43+m4/tkVS0xSa10k0guUHzzf
3Z4Pw+jo2PL6aZZxzrlSSghBCCHC5rZDNoRS2uKcUvr965pbQhjKWLksm/l6900bQujPt7YqktR1
XZWrnuy4UjmcqEFjko3XHy116na7o8trZtNaBUy0y3XGpZTGGCllFEXGchdvabVaUUaH44tWi3/9
2zRNVeY+M9vUQzj5PLTH0ntf1q+JtpvVIDp9eXogLPMCofOCzmazMAwPtemPxXHMoDf8FgZAwwBo
GAANA6BhADQMgIYB0DAAGgZAwwBoGAANA6BhADQMgIYB0DAAGgZA+/cBXGudpin0jD3lef4BCBlp
6Y0NgVMAAAAASUVORK5CYII=','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
function messByLang(iMess) {
	if((tVl=iMess.match("^"+(this.ownerSess().reqLang().length?this.ownerSess().reqLang():SYS.lang())+":(.+)$","m")).length)
		return tVl[1];
	return iMess.parseLine(0);
}

function labSize( ltext, charW ) {
	if(charW == null)	charW = 11;
	for(labSz = 0, off = 0; off < ltext.length; labSz++)
		ltext.charAt(off, "UTF-8");

	return ceil(ceil(labSz*charW*0.6)/10)*10;
}

function itHighl( celO, itVl ) {
	if(celO == null)	return "";
	tLs = new Array();
	if(celO.fltr.indexOf("index") == 0 && itVl.length) { celO.ls[tVl=itVl.trim()] = true; tLs.push(tVl); }
	else if(celO.fltr.indexOf("list") == 0)
		for(tLs = itVl.split(celO.fltr[4]), iLs = 0; iLs < tLs.length; iLs++)
			celO.ls[tLs[iLs]=tLs[iLs].trim()] = true;

	for(iLn = 0, off = 0; tLs.length && (tVl=celO.fltr.parseLine(0,off)).length; iLn++)
		if(iLn && tLs.indexOf(tVl.parse(0,":")) >= 0) return tVl;

	return "";
}

function updProc(iR, dataTbl, clsLsO ) {
	procLng = "JavaLikeCalc.JavaScript";
	procArgs = new Object();

	updReq = "";
	for(iC = 0; iC < dataTbl[iR].length; iC++)
		if((itID=dataTbl[0][iC]).indexOf("SP_") == 0)
			procArgs[itID.slice(3)] = ((itVl=dataTbl[iR][iC]) != "<NULL>") ? itVl : "";
	for(iC = 0; iC < dataTbl[iR].length; iC++) {
		if((itID=dataTbl[0][iC]).indexOf("SP_") != 0 || (tClO=clsLsO[(itID=itID.slice(3))]).isEVal() || !tClO.prc.length || dataTbl[iR][iC] != "<NULL>") continue;
		if(tClO.prcId == null) tClO.prcId = this.nodePath("_")+"_"+itID;
			SYS.DAQ.funcCall(procLng, procArgs, tClO.prc, tClO.prcId);
			dataTbl[iR][iC] = procArgs[itID];
			updReq += (updReq.length?", ":"") + "`SP_"+itID+"`=''"+SYS.strEncode(procArgs[itID],"SQL")+"''";
		}
	if(updReq.length)
		SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET "+updReq+" WHERE `"+dataTbl[0][0]+"`=''"+dataTbl[iR][0]+"'';", true);
}

function getFileFIt(celId, celO, fNm, sz) {
	fItValFileNm = ((fNm != null) ? fNm : this["fItVal"+celId].attr("value")).parse(0,";;");
	if(celO.tp.parse(2,":").length)
		tVl = (sz==true) ? SYS.fileSize(celO.tp.parse(2,":")+"/"+fItValFileNm) : SYS.fileRead(celO.tp.parse(2,":")+"/"+fItValFileNm);
	else {
		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `"+celId+"` FROM `sh_"+class+"` WHERE `ID`=''"+dataTbl_value+"'';");
		for(iF = 0, off = 0; (tVl=dataTblOneReq[1][0].parseLine(0,off)).length; iF++)
			if((iF%2) == 0 && tVl == fItValFileNm) {
				tVl = dataTblOneReq[1][0].parseLine(0,off);
				tVl = (sz == true) ? tVl.length : SYS.strDecode(tVl,"Base64");
				break;
			}
		delete dataTblOneReq;
	}

	return tVl;
}

var wUser;

if(f_start || wUser != this.ownerSess().reqUser()) {
	wUser = this.ownerSess().reqUser(), f_start = true;

	geomHOrig = 580;
	toUpdate = toReport = false;
	fMax = 5; fClrTo = 0;
	itEdFormMarg = 20;
	itEdFormX = itEdFormMarg;
	itEdFormY = this.lab_fltr.attr("geomY");
	itEdFormW = geomW - 2*itEdFormMarg;
	itEdFormLineHigh = 20;
	itEdFormOff = null;	//Height offset of the last item of the configuration form
	btClassEdit_en = dataEditable && classEditable;
	if(classFix.length)	classNm_text = class = classFix;
	else classSel_en = true;
	colVars = new Object(), colLists = new Object();
	btClassEdit_value = btEdit_en = btEdit_value = btItEdit_value = false;
	geomH = geomHOrig;
	dataTbl_geomY = fltrCol0_geomY + fltrCol0_geomH;
	dataTbl_geomH = itDel_geomY - dataTbl_geomY + itDel_geomH;
}

//Common events process
for(off = 0; (sval=event.parse(0,"\n",off)).length; )
	if(sval == "ws_BtToggleChange:/btClassEdit")	toUpdate = true, itDel_active = itCopy_active = false, dataTbl_value = "";
	else if(sval == "ws_BtToggleChange:/btEdit")	toUpdate = true;
	else if(sval == "ws_CombChange:/classSel") {
		class = ((tVl=classSel_value.match("\\((.+)\\)$")).length) ? tVl[1] : classSel_value;
		toUpdate = true; colVars = new Object(), colLists = new Object(); fClrTo = 0; dataTbl_value = "";
		if(itEdFormOff != null)	itEdFormOff = -1;
	}
	else if(sval == "ws_LnAccept:/classEd") {
		class = ((tVl=classEd_value.match("\\((.+)\\)$")).length) ? tVl[1] : classEd_value;
		toUpdate = true; colVars = new Object(), colLists = new Object();
	}

if((f_start || toUpdate) /*&& !classFix.length*/) {
	clsLs = SYS.BD.nodeAt(db,".").SQLReq("SELECT DISTINCT CLASS FROM `classes`;");
	classSel_items = "";
	for(iR = 1; iR < clsLs.length; iR++) {
		clsNm = SYS.BD.nodeAt(db,".").SQLReq("SELECT `NAME` FROM `classes` WHERE `CLASS`=''"+clsLs[iR][0]+"'' AND `ID`=''*TITLE'';");
		classSel_items += (classSel_items.length?"\n":"") + ((clsNm.length==2)?messByLang(clsNm[1][0]) + " ("+clsLs[iR][0]+")":clsLs[iR][0]);
	}
	classEd_cfg = classSel_items;

	clsNm = SYS.BD.nodeAt(db,".").SQLReq("SELECT `NAME` FROM `classes` WHERE `CLASS`=''"+class+"'' AND `ID`=''*TITLE'';");
	classNm_text = classSel_value = classEd_value = class;
	if(clsNm.length == 2)	classNm_text = classSel_value = messByLang(clsNm[1][0]) + " ("+class+")";

	dataTbl_geomY = btClassEdit_value ? lab_fltr_geomY : fltrCol0_geomY + fltrCol0_geomH;
	dataTbl_geomH = itDel_geomY - dataTbl_geomY + ((btClassEdit_value||btEdit_value)?0:itDel_geomH);

	//Apply filter vertical offset and size
	if(!btClassEdit_value) {
		for(iF = fMax-1; iF > 0 && !this["fltr"+iF].attr("en"); iF--) ;
		dataTbl_geomY = this["fltr"+iF].attr("geomY") + this["fltr"+iF].attr("geomH");
		dataTbl_geomH = itDel_geomY + (btEdit_value?0:itDel_geomH) - dataTbl_geomY;
	}

	btClassEdit_en = !(btItEdit_en && btItEdit_value);
	btClassEdit_active = class.length;
	classEd_en = btClassEdit_en && !classFix.length && btClassEdit_value;
	classSel_en = btClassEdit_en && !classFix.length && !btClassEdit_value;

	go_report_en = go_reportIt_en = !btClassEdit_value;
}

//Removing old edition fields of the item configuration form
if(f_start || (btClassEdit_value && itEdFormOff != null) || itEdFormOff == -1) {
	itEdFormOff = null;
	geomH = geomHOrig;

	wLs = this.nodeList("wdg_");
	for(iW = 0; iW < wLs.length; iW++)
		if(wLs[iW].indexOf("wdg_fItLab") == 0 || wLs[iW].indexOf("wdg_fItVal") == 0)
			this.wdgDel(wLs[iW].slice(4));
}

//The class edition mode
if(btClassEdit_value) {
	dataTbl_en = itDel_en = itAdd_en = true;
	btEdit_en = btItEdit_en = btItEdit_value = itCopy_en = false;

	SYS.BD.nodeAt(db,".").SQLReq("CREATE TABLE IF NOT EXISTS `classes` (`CLASS` varchar(20) DEFAULT '''', `ID` varchar(20) DEFAULT '''', `NAME` text, `TP` varchar(100) DEFAULT '''', `TBL` varchar(100) DEFAULT '''', `FILTER` text, `PROC` text, PRIMARY KEY (`CLASS`,`ID`));", true);

	//Updation the main table
	if(f_start || toUpdate) {
		// Requesting the table structure
		dataTbl = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,`NAME`,`TP`,`TBL`,`FILTER`,`PROC` FROM `classes` WHERE `CLASS`=''"+class+"'';", false);
		dataTbl_items = "<tbl sel=''row'' colsWdthFit=''0'' hHdrVis=''1'' vHdrVis=''1''>\n";
		for(iR = 0; iR < dataTbl.length; iR++) {
			dataTbl_items += iR ? "<r>" : "<h>";
			for(iC = 0; iC < dataTbl[iR].length; iC++) {
				itVl = dataTbl[iR][iC];
				tNm = "s", opt = "";
				if(iR == 0)	 {
					opt += " edit=''1''";
					if(itVl == "ID")				itVl = tr("Identifier");
					else if(itVl == "NAME")	itVl = tr("Name");
					else if(itVl == "TP")		itVl = tr("Type");
					else if(itVl == "TBL")		itVl = tr("Table properties");
					else if(itVl == "FILTER") itVl = tr("Filter");
					else if(itVl == "PROC")	{ itVl = tr("Procedure"); opt += " width=''400px''"; }
				}
				else {
				    if(iC == 1 || iC == 4 || iC == 5)	tNm = "t";
				    if(itVl == "<NULL>")	itVl = "";
				}
				dataTbl_items += "<"+tNm+opt+">"+SYS.strEncode(itVl,"HTML")+"</"+tNm+">";
			}
			dataTbl_items += iR ? "</r>\n" : "</h>\n";
		}
		dataTbl_items += "</tbl>";

		toUpdate = false;
	}

	//Class edition events process
	for(off = 0; (sval=event.parse(0,"\n",off)).length; ) {
		itDel_active = itCopy_active = dataTbl_value.length;
		if(sval == "ws_BtRelease:/itAdd") {
			// Creation the empty data table with the default structure
			if(dataTbl.length == 1) {
				SYS.BD.nodeAt(db,".").SQLReq("CREATE TABLE IF NOT EXISTS `sh_"+class+"` (`ID` INT AUTO_INCREMENT, `NAME` varchar(200) DEFAULT '''', `DSCR` text, PRIMARY KEY (`ID`));", true);
				SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `classes` (`CLASS`,`ID`,`NAME`) VALUES (''"+class+"'',''*TITLE'','''');", true);
				SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `classes` (`CLASS`,`ID`,`NAME`) VALUES (''"+class+"'',''*ID'','''');", true);
				SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `classes` (`CLASS`,`ID`,`NAME`) VALUES (''"+class+"'',''*NAME'','''');", true);
				SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `classes` (`CLASS`,`ID`,`NAME`) VALUES (''"+class+"'',''*DSCR'','''');", true);
			}
			SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `classes` (`CLASS`,`ID`,`NAME`,`TP`) VALUES (''"+class+"'',''NewItem'',''"+tr("New item")+"'',''varchar(100)'');", true);
			SYS.BD.nodeAt(db,".").SQLReq("ALTER TABLE `sh_"+class+"` ADD `SP_NewItem` varchar(100) DEFAULT '''';", true);
			toUpdate = true; toCalcCycles = 1;
		}
		else if(sval == "dlg_Apply:/itDel" && dataTbl_value[0] != "*") {
		//else if(sval == "ws_BtRelease:/itDel") {
			SYS.BD.nodeAt(db,".").SQLReq("DELETE FROM `classes` WHERE `ID`=''"+dataTbl_value+"'' AND `CLASS`=''"+class+"'';", true);
			if(dataTbl.length > 2)	SYS.BD.nodeAt(db,".").SQLReq("ALTER TABLE `sh_"+class+"` DROP `SP_"+dataTbl_value+"`;", true);
			else SYS.BD.nodeAt(db,".").SQLReq("DROP TABLE `sh_"+class+"`;", true);
			toUpdate = true; toCalcCycles = 1;
		}
		else if(sval.indexOf("ws_TableEdit") == 0) {
			col = sval.parse(0,"_",13).toInt(); row = sval.parse(1,"_",13).toInt();
			colID = dataTbl[0][col];
			fldID = dataTbl[row+1][0];
			if(!SYS.BD.nodeAt(db,".").SQLReq("UPDATE `classes` SET `"+colID+"`=''"+SYS.strEncode(dataTbl_set,"SQL")+"'' WHERE `CLASS`=''"+class+"'' AND `ID`=''"+fldID+"'';",true).err.length) {
				if(colID == "ID"  && fldID[0] != "*") {
					SYS.BD.nodeAt(db,".").SQLReq("ALTER TABLE `sh_"+class+"` CHANGE `SP_"+fldID+"` `SP_"+dataTbl_set+"` "+dataTbl[row+1][2].parse(0,":")+";", true);
					toCalcCycles = 1; //2000/this.ownerSess().period();
				}
				else if(colID == "TP" && (fldID[0] != "*" || fldID == "*NAME")) {
					if((tVl=dataTbl_set.parse(0,":")) == "file") tVl = dataTbl_set.parse(2,":").length ? "TEXT" : "LONGTEXT";
					SYS.BD.nodeAt(db,".").SQLReq("ALTER TABLE `sh_"+class+"` MODIFY `"+(fldID[0]=="*"?fldID.slice(1):"SP_"+fldID)+"` "+tVl+";", true);
				}
				else if(colID == "PROC" && dataTbl_set.length)
					SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET `SP_"+fldID+"`=NULL;", true);
			}
			toUpdate = true;
		}
	}

	if(toCalcCycles > 0.1) {
		this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
		toCalcCycles = max(0, toCalcCycles-1);
	}

	return;
}

//The data representing mode
if(f_start || toUpdate) {
	go_report_active = dataTbl_en = lab_fltr_en = btEdit_en = itDel_en = itAdd_en = itCopy_en = fltr0_en = fltrCol0_en = !btItEdit_value;

	//Generic table
	//------------------
	if(dataTbl_en) {
		geomH = geomHOrig;

		// Initiate the filter
		for(iF = 0; iF < fMax; iF++)
			this["fltrCol"+iF].attrSet("items", tr("Disabled")+"\n"+tr("Name")+" (NAME)\n"+tr("Description")+" (DSCR)");

		// Requesting the table structure
		clsLs = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,`NAME`,`TP`,`TBL`,`FILTER`,`PROC` FROM `classes` WHERE `CLASS`=''"+class+"'';");
		clsLsO = new Object();	 clsLsSort = new Array();
		hasProc = false;		//The scheme has procedures of the logical columns
		for(iR = 1; iR < clsLs.length; iR++) {
			clsLsO[clsLs[iR][0]] = tO = new Object();
			tO.name = ((tO.name=clsLs[iR][1]) == "<NULL>" || !tO.name.length) ? clsLs[iR][0] : messByLang(tO.name);
			tO.tp = clsLs[iR][2];
			tO.tbl = clsLs[iR][3];
			if((tO.fltr=clsLs[iR][4]) == "<NULL>") tO.fltr = "";
			if((tO.prc=clsLs[iR][5]) == "<NULL>")  tO.prc = "";
			if(tO.prc.length) hasProc = true;
			if(clsLs[iR][0] == "*ID") {
				tO.name = (tO.name==clsLs[iR][0]) ? tr("Identifier") : tO.name;
				tO.tp = "int";
				tO.tbl = tO.tbl.length ? tO.tbl : "center:0px";
			}
			else if(clsLs[iR][0] == "*NAME") {
				tO.name = (tO.name==clsLs[iR][0]) ? tr("Name") : tO.name;
				tO.tp = tO.tp.length ? tO.tp : "varchar(200)";
				tO.tbl = tO.tbl.length ? tO.tbl : "center:170px";
			}
			else if(clsLs[iR][0] == "*DSCR") {
				tO.name = (tO.name==clsLs[iR][0]) ? tr("Description") : tO.name;
				tO.tp = tO.tp.length ? tO.tp : "text";
				tO.tbl = tO.tbl.length ? tO.tbl : ":350px";
			}

			if(clsLs[iR][0][0] != "*")
				for(iF = 0; iF < fMax; iF++)
					this["fltrCol"+iF].attrSet("items", this["fltrCol"+iF].attr("items")+"\n"+tO.name+" (SP_"+clsLs[iR][0]+")");

			if(clsLs[iR][0] != "*TITLE") clsLsSort.push(tO.tbl.parse(2,":")+":"+iR.toString(10,3));
		}
		clsLsSort.sort();
		clsLsReq = "";
		for(iL = 0; iL < clsLsSort.length; iL++)
			if((tVl=clsLs[clsLsSort[iL].parse(1,":").toInt()][0]) != "*ID")
				clsLsReq += (clsLsReq.length?",":"") + "`"+((tVl[0]=="*")?tVl.slice(1):"SP_"+tVl)+"`";

		//Updation the main table
		// Where prepairing for the filter
		noFilter = true;
		for(wherePart = "", iF = 0; iF < fMax; iF++) {
			if(!(tVl=this["fltr"+iF].attr("value")).length)	continue;
			itVl = this["fltrCol"+iF].attr("value").match("\\((.+)\\)")[1];
			wherePart += (wherePart.length?"AND":"") + " `"+itVl+"` REGEXP ''"+tVl+"'' ";
			if(!colVars[itVl].isEVal())	colVars[itVl]["<lock>"] = true;
			noFilter = false;
		}
		for(var iC in colVars)
			if(colVars[iC]["<lock>"] == true)	delete colVars[iC]["<lock>"];
			else delete colVars[iC];
		// Same requesting
		dataTbl = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,"+clsLsReq+" FROM `sh_"+class+"` "+(wherePart.length?"WHERE"+wherePart:"")+"ORDER BY ''ID'';");
		dataTbl_items = "<tbl sel=''row'' sortEn=''"+(btEdit_value?0:1)+"'' colsWdthFit=''0'' hHdrVis=''1'' vHdrVis=''1''>\n";
		colTps = new Object();
		if(toReport)	tRep = "<body>\n"
								"<h1>"+classNm_text+"</h1>\n"
								"<table class=''data'' width=''100%'' export=''1''>\n";
		noDataTbl_value = true;
		for(iR = 0; iR < dataTbl.length; iR++) {
			cntR = optR = "";
			if(toReport) tRep += "<tr>";
			//   ... the header
			if(iR == 0)
				for(iC = 0; iC < dataTbl[iR].length; iC++) {
					itVl = dataTbl[iR][iC];
					opt = "";
					if(itVl == "ID" && clsLsO["*"+itVl] == null)	opt += " width=''0px''";
					else if((itVl.indexOf("SP_") == 0 && !(tVl=clsLsO[itVl.slice(3)]).isEVal()) || ((itVl == "ID" || itVl == "NAME" || itVl == "DSCR") && !(tVl=clsLsO["*"+itVl]).isEVal()))
					{
						if((tVl.fltr == "index" || tVl.fltr.indexOf("list") == 0) && colVars[itVl] == null) {
							colVars[itVl] = new Object();
							colVars[itVl].ls = new Object();
							colVars[itVl].fltr = tVl.fltr;
						}
						opt += (btEdit_value && !tVl.prc.length && itVl != "ID" && tVl.tp.parse(0,":") != "file") ? " edit=''1''" : "";
						itVl = tVl.name;
						if(tVl.tp.search("bool","i") >= 0)			colTps[iC] = "b";
						else if(tVl.tp.search("int","i") >= 0)	colTps[iC] = "i";
						else if(tVl.tp.search("(float|double)","i") >= 0) colTps[iC] = "r";
						else if(tVl.tp.search("text","i") >= 0 || tVl.tp.parse(0,":") == "file")
																				colTps[iC] = "t";
						if((tVl2=tVl.tbl.parse(0,":")).length)	opt += " align=''"+tVl2+"''";
						if((tVl2=tVl.tbl.parse(1,":")).length)	opt += " width=''"+tVl2+"''";
						//this.messInfo("iC="+iC+"; tp="+tVl.tp+" = "+colTps[iC]+"; tVl.fltr="+tVl.fltr);
					}
					cntR += "<s"+opt+">"+SYS.strEncode(itVl,"HTML")+"</s>";
					if(toReport) tRep += "<th>"+SYS.strEncode(itVl,"HTML")+"</th>";
				}
			//  ... the data
			else {
				//  ... prepairing the logical cells
				if(hasProc) updProc(iR, dataTbl, clsLsO);

				//  ... representing
				for(iC = 0; iC < dataTbl[iR].length; iC++) {
					itVlCol = dataTbl[0][iC];
					itVl = dataTbl[iR][iC];
					opt = "";
					if(itVl == "<NULL>")	itVl = "";
					if((celO=clsLsO[itVlCol.slice(3)]) != null && celO.tp.parse(0,":") == "file" && !celO.tp.parse(2,":").length) {
						for(iF = 0, off = 0, itVlRez = ""; (itVlEl=itVl.parseLine(0,off)).length; iF++)
							if((iF%2) == 0)	itVlRez += (itVlRez.length?"\n":"") + itVlEl;
						itVl = itVlRez;
					}
					if((tVl1=itHighl(colVars[itVlCol],itVl)).length) {
						tVl = ((tVl=tVl1.parse(2,":")).length?" color=''"+tVl+"''":"") + ((tVl=tVl1.parse(3,":")).length?" font=''"+tVl+"''":"");
						if(tVl1.parse(1,":")[0] == "1") optR += tVl; else opt += tVl;
					}
					if(noFilter)	colLists[itVlCol] = colVars[itVlCol].ls;
					if(dataTbl_value.length && itVlCol == "ID" && itVl == dataTbl_value)	noDataTbl_value = false;
				
					if(!colTps[iC].isEVal())	cntR += "<"+colTps[iC]+opt+">"+SYS.strEncode(itVl,"HTML")+"</"+colTps[iC]+">";
					else cntR += "<s"+opt+">"+SYS.strEncode(itVl,"HTML")+"</s>";
					if(toReport)
						tRep += "<td style=''white-space: pre-wrap;"+((colTps[iC]=="t")?"text-align: left;":"")+"''>"+
							SYS.strEncode(((tVl1=SYS.strEncode(itVl,"Limit",300))==itVl)?tVl1:tVl1+"...","HTML").replace(new RegExp("(http|https|ftp)://(\\S+)","g"),"<a target=''_blank'' href=''$1://$2''>$2</a>")+
							"</td>";
				}
			}
			dataTbl_items += (iR?"<r":"<h")+optR+">" + cntR + (iR?"</r>\n":"</h>\n");
			if(toReport) tRep += "</tr>\n";
		}
		dataTbl_items += "</tbl>\n";
		if(toReport) { tRep += "</table>\n</body>\n"; go_report_report = tRep; tRep = ""; }

		if(noDataTbl_value)	dataTbl_value = "";

		//Filter''s selection list update
		for(iF = 0; iF < fMax; iF++) {
			iFCo = this["fltrCol"+iF]; iFo = this["fltr"+iF];
			fCol = iFCo.attr("value").match("\\((.+)\\)")[1];
			//this.messInfo("iF="+iF+"; fCol="+fCol+"; colVars[fCol]="+colVars[fCol]);
			if((tO=colVars[fCol]).isEVal())	continue;
			tO = tO.ls;
			fCfg = "";
			fCfgPref = iFo.attr("value");
			for(sumVl = "", tVl1 = "", off = 0; (tVl=fCfgPref.parse(0,"|",off)).length; tVl1 = tVl)
				if(tVl1.length) { sumVl += (sumVl.length?"|":"")+tVl1; fCfg += sumVl + "\n"; }
			for(var iFv in tO)
				if(iFv.length && fCfgPref.indexOf(iFv) < 0)
					fCfg += (fCfgPref.length?fCfgPref+"|":"") + iFv + "\n";
				//fCfg += iFv+"\n";
			iFo.attrSet("cfg", fCfg);
		}
	}
	//Item edition form
	//------------------
	else if(btItEdit_value) {
		toCreatFormIt = (itEdFormOff == null);	//Creating the form items

		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,"+clsLsReq+" FROM `sh_"+class+"` WHERE `ID`=''"+dataTbl_value+"'';");
		for(iR = 1; iR < dataTblOneReq.length; iR++) {
			if(dataTblOneReq[iR][0] != dataTbl_value) continue;

			if(hasProc) updProc(iR, dataTblOneReq, clsLsO);

			for(iC = 0; iC < dataTblOneReq[iR].length; iC++) {
				itVlNm = itVlId = dataTblOneReq[0][iC];
				celO = null;
				if((itVlId.indexOf("SP_") == 0 && !(celO=clsLsO[itVlId.slice(3)]).isEVal()) || ((itVlId == "NAME" || itVlId == "DSCR") && !(celO=clsLsO["*"+itVlId]).isEVal()))
					itVlNm = celO.name;
				if((itVl=dataTblOneReq[iR][iC]) == "<NULL>") itVl = "";
				if(celO != null && celO.tp.parse(0,":") == "file" && !celO.tp.parse(2,":").length) {
					for(iF = 0, off = 0, itVlRez = ""; (itVlEl=itVl.parseLine(0,off)).length; iF++)
						if((iF%2) == 0)	itVlRez += (itVlRez.length?"\n":"") + itVlEl;
					itVl = itVlRez;
				}
				if(toCreatFormIt) {
					if(itEdFormOff == null)	itEdFormOff = itEdFormY, geomZoff = 100;
					// Label
					nwlO = this.wdgAdd("fItLab"+itVlId, "", "/wlb_originals/wdg_Text");
					nwlO.attrSet("geomX", itEdFormX).attrSet("geomW", tVl2=labSize(itVlNm+":"))
						.attrSet("geomY", itEdFormOff).attrSet("geomH", itEdFormLineHigh)
						.attrSet("text", itVlNm+":").attrSet("alignment", 8);
					// Value
					if(celO.prc.length || itVlId == "ID") {	//RO items
						nwO = this.wdgAdd("fItVal"+itVlId, "", "/wlb_originals/wdg_Text");
						nwO.attrSet("geomX", itEdFormX+tVl2).attrSet("geomW", (itEdFormW - tVl2) / ((itVlId=="ID")?2:1))
							.attrSet("geomY", itEdFormOff).attrSet("geomH", itEdFormLineHigh).attrSet("geomZ", geomZoff++)
							.attrSet("alignment", 8);
						itEdFormOff += itEdFormLineHigh;
					}
					else if(celO.tp.parse(0,":") == "file") {
						nwO = this.wdgAdd("fItVal"+itVlId, "", "/wlb_originals/wdg_FormEl");
						nwO.attrSet("geomX",itEdFormX+tVl2).attrSet("geomW",300)
							.attrSet("geomY",itEdFormOff).attrSet("geomH",itEdFormLineHigh).attrSet("geomZ",geomZoff++)
							.attrSet("active",1).attrSet("elType",4).attrSet("tipTool",tr("Select file"));
						nwOe = this.wdgAdd("fItVal"+itVlId+"_GT", "", "/wlb_originals/wdg_FormEl");
						nwOe.attrSet("geomX",itEdFormX+tVl2+nwO.attr("geomW")).attrSet("geomW",itEdFormLineHigh)
							.attrSet("geomY",itEdFormOff).attrSet("geomH",itEdFormLineHigh).attrSet("geomZ",geomZoff++)
							.attrSet("elType",3).attrSet("mode",4).attrSet("tipTool",tr("Get")).attrSet("img","upm");
						nwOe = this.wdgAdd("fItVal"+itVlId+"_LD", "", "/wlb_originals/wdg_FormEl");
						nwOe.attrSet("geomX",itEdFormX+tVl2+nwO.attr("geomW")+itEdFormLineHigh).attrSet("geomW",itEdFormLineHigh)
							.attrSet("geomY",itEdFormOff).attrSet("geomH",itEdFormLineHigh).attrSet("geomZ",geomZoff++)
							.attrSet("active",1).attrSet("elType",3).attrSet("mode",3).attrSet("tipTool",tr("Load")).attrSet("img","downm");
						nwOe = this.wdgAdd("fItVal"+itVlId+"_CL", "", "/wlb_originals/wdg_FormEl");
						nwOe.attrSet("geomX",itEdFormX+tVl2+nwO.attr("geomW")+2*itEdFormLineHigh).attrSet("geomW",itEdFormLineHigh)
							.attrSet("geomY",itEdFormOff).attrSet("geomH",itEdFormLineHigh).attrSet("geomZ",geomZoff++)
							.attrSet("elType",3).attrSet("tipTool",tr("Clear")).attrSet("name","X");
						itEdFormOff += itEdFormLineHigh;
						if((tVl=celO.tp.parse(4,":").toInt())) {
							nwOe = this.wdgAdd("fItVal"+itVlId+"_VW", "", "/wlb_originals/wdg_Media");
							nwOe.attrSet("geomX",itEdFormX+tVl2).attrSet("geomW",tVl)
								.attrSet("geomY",itEdFormOff).attrSet("geomH",tVl).attrSet("geomZ",geomZoff++)
								.attrSet("tipTool",tr("Overview")).attrSet("fit",1).attrSet("keepAspect",1);
							itEdFormOff += tVl.toInt();
						}
						delete nwOe;
					}
					else {
						nwO = this.wdgAdd("fItVal"+itVlId, "", "/wlb_originals/wdg_FormEl");
						nwO.attrSet("geomX", itEdFormX+tVl2).attrSet("geomW", itEdFormW - tVl2)
							.attrSet("geomY", itEdFormOff).attrSet("geomH", itEdFormLineHigh).attrSet("geomZ", geomZoff++)
							.attrSet("active", 1).attrSet("confirm", 0);
						itEdFormOff += itEdFormLineHigh;
						//this.messInfo("TEST 00: "+itVlId+" > "+celO.tp);
						if(celO.tp.search("bool","i") >= 0)
							nwO.attrSet("elType", 2);
						else if(celO.tp.search("int","i") >= 0)
							nwO.attrSet("geomW", 100).attrSet("elType", 0).attrSet("view", 0);
						else if(celO.tp.search("(float|double)","i") >= 0)
							nwO.attrSet("geomW", 100).attrSet("elType", 0).attrSet("view", 0);
						else if(celO.tp.search("text","i") >= 0) {
							txtH = 10*itEdFormLineHigh;
							if((tVl3=celO.tbl.parse(1,":")).length) {
								if(tVl3.indexOf("px") > 0)	txtH = (tVl3.toInt()/geomW)*geomHOrig;
								else if(tVl3.indexOf("%") > 0)	txtH = (tVl3.toInt()/100)*geomHOrig;
								else txtH = 3*itEdFormLineHigh;
							}
							nwO.attrSet("geomX", itEdFormX).attrSet("geomW", itEdFormW)
								.attrSet("geomY", itEdFormOff).attrSet("geomH", txtH).attrSet("elType", 1);
							itEdFormOff += txtH;
						}
					}
				} else nwlO = this.wdgAt("fItLab"+itVlId), nwO = this.wdgAt("fItVal"+itVlId);
				//Dynamic
				// Selection for indexes
				if((celO.fltr == "index" || celO.fltr.indexOf("list") == 0) && nwO.attr("elType") == 0) {
					nwO.attrSet("view", 1);
					fCfg = "", fCfgPref = (celO.fltr == "index" || !itVl.length) ? "" :
														itVl+((celO.fltr[4]==" ")?" ":celO.fltr[4]+" ");
					if(celO.fltr.indexOf("list") == 0)
						for(fCfgAdd = "", off = 0; (iFv=itVl.parse(0,celO.fltr[4],off)).length; )
							fCfgAdd += (fCfgAdd.length?celO.fltr[4]:"") + iFv, fCfg += fCfgAdd + "\n";
					for(var iFv in colLists[itVlId])
						if(fCfg.indexOf(iFv) < 0)
							fCfg += fCfgPref + iFv + "\n";
					nwO.attrSet("cfg", fCfg);
				}
				// Highlighting
				nwlO.attrSet("backColor","").attrSet("font","Arial 11");
				if((tVl1=itHighl(celO,itVl)).length) {
					if((tVl=tVl1.parse(2,":")).length)	nwlO.attrSet("backColor", tVl);
					if((tVl=tVl1.parse(3,":")).length)	nwlO.attrSet("font", tVl);
				}
				// Value
				if(celO != null && celO.tp.parse(0,":") == "file") {
					//  Size appending
					for(tVl2 = "", off = 0; (tVl=itVl.parseLine(0,off)).length; )
						tVl2 += (tVl2.length?"\n":"") + tVl + ";;" + (getFileFIt(itVlId,celO,tVl,true)/1024).toPrecision(4) + "KiB";
					itVl = tVl2;

					nwO.attrSet("items", itVl).attrSet("value",itVl.parseLine(0));
					this["fItVal"+itVlId+"_GT"].attrSet("active",itVl.length);
					this["fItVal"+itVlId+"_CL"].attrSet("active",itVl.length);
					this["fItVal"+itVlId+"_LD"].attrSet("value","|||"+celO.tp.parse(3,":")).attrSet("active", itVl.split("\n").length < max(1,celO.tp.parse(1,":").toInt()));
					if(celO.tp.parse(4,":").toInt())
						this["fItVal"+itVlId+"_VW"].attrSet("src", (itVl.parseLine(0).length && (tVl=SYS.UI.mimeGet(itVl.parseLine(0).parse(0,";;"))).indexOf("image/") >= 0)
										? "data:"+tVl+"\n"+ SYS.strEncode(getFileFIt(itVlId,celO),"Base64") : "");
				} else nwO.attrSet((celO.prc.length||itVlId == "ID")?"text":"value", itVl);
				delete nwlO; delete nwO;

				if(itEdFormOff && (itEdFormOff+itEdFormMarg) > geomH)	geomH = itEdFormOff + itEdFormMarg;
			}
			break;
		}
		delete dataTblOneReq;
	}

	toUpdate = toReport = false;
}

if(event.length) {
	itDel_active = itCopy_active = go_reportIt_active = dataTbl_value.length;
	btItEdit_en = ((btEdit_en || btItEdit_value) && dataTbl_value.length);
	if(btItEdit_en)	btItEdit_tipTool = btItEdit_value ? tr("Go to the Table") : tr("Go to the Item");
}

//Representing events process
for(offEv = 0; (sval=event.parse(0,"\n",offEv)).length; ) {
	if(sval == "ws_BtToggleChange:/btItEdit")	{
		toUpdate = true, toCalcCycles = 1;
		// Dynamic filter fields hide/show
		var fClrToEd;
		for(iF = 1; iF < fMax; iF++) {
			tVal = (fClrToEd && iF <= fClrToEd);
			if(this["fltr"+iF].attr("en"))	fClrToEd = iF;
			this["fltrCol"+iF].attrSet("en", tVal); this["fltr"+iF].attrSet("en", tVal);
		}
		if(!btItEdit_en)	fClrToEd = null;
		// Item edition fields show/hide
		wLs = this.nodeList("wdg_");
		for(iW = 0; iW < wLs.length; iW++)
			if(wLs[iW].indexOf("wdg_fItLab") == 0 || wLs[iW].indexOf("wdg_fItVal") == 0)
				this[wLs[iW]].attrSet("en", btItEdit_value);
	}
	else if(sval == "ws_BtRelease:/itAdd") {
		nmLs = vlLs = "";
		//Prepairing the filter values
		for(iF = 0; iF < fMax; iF++) {
			if(!(tVl=this["fltr"+iF].attr("value")).length)	continue;
			nmLs += (nmLs.length?",":"") + "`"+this["fltrCol"+iF].attr("value").match("\\((.+)\\)")[1]+"`";
			vlLs += (vlLs.length?",":"") + "''"+tVl+"''";
		}
		if(nmLs.indexOf("`NAME`") < 0)	{ nmLs += (nmLs.length?",":"") + "`NAME`"; vlLs += (vlLs.length?",":"") + "''"+tr("New item")+"''"; }
		SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `sh_"+class+"` ("+nmLs+") VALUES ("+vlLs+");");
		toUpdate = true; toCalcCycles = 1;
	}
	else if(sval == "dlg_Apply:/itDel") {
		// Delete files on FS for "file" fields
		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,"+clsLsReq+" FROM `sh_"+class+"` WHERE `ID`=''"+dataTbl_value+"'';");
		for(iR = 1; iR < dataTblOneReq.length; iR++) {
			if(dataTblOneReq[iR][0] != dataTbl_value) continue;
			for(iC = 0; iC < dataTblOneReq[iR].length; iC++)
				if((itVlNm=dataTblOneReq[0][iC]).indexOf("SP_") == 0 && (celO=clsLsO[itVlNm.slice(3)]) != null &&
						(itVl=dataTblOneReq[iR][iC]) != "<NULL>" && itVl.length &&
						celO.tp.parse(0,":") == "file" && celO.tp.parse(2,":").length)
					for(off = 0; (itVlEl=itVl.parseLine(0,off)).length; )
						SYS.fileRemove(celO.tp.parse(2,":")+"/"+itVlEl);
		}
		delete dataTblOneReq;

		// Delete same the fiels
		SYS.BD.nodeAt(db,".").SQLReq("DELETE FROM `sh_"+class+"` WHERE `ID`=''"+dataTbl_value+"'';");
		toUpdate = true; toCalcCycles = 1;
	}
	else if(sval == "ws_BtRelease:/itCopy") {
		for(colLs = "", iC = 1; iC < dataTbl[0].length; iC++)
			// Without copying types of the "file" type and the files storage on FS
			if(!(dataTbl[0][iC].indexOf("SP_") == 0 && (celO=clsLsO[dataTbl[0][iC].slice(3)]) != null && celO.tp.parse(0,":") == "file" && celO.tp.parse(4,":").toInt()))
				colLs += (colLs.length?", ":"") + "`"+dataTbl[0][iC]+"`";
		SYS.BD.nodeAt(db,".").SQLReq("INSERT INTO `sh_"+class+"` ("+colLs+") (SELECT "+colLs+" FROM `sh_"+class+"` WHERE `ID` = "+dataTbl_value+");");
		toUpdate = true; toCalcCycles = 1;
	}
	else if((isTbl=(sval.slice(0,12)=="ws_TableEdit")) || (tVl=sval.match("^ws_(LnAccept|TxtAccept|ChkChange):/fItVal(.+)$")).length) {
		if(isTbl)	col = dataTbl[0][sval.parse(0,"_",13).toInt()], row = dataTbl[sval.parse(1,"_",13).toInt()+1][0], toVal = dataTbl_set;
		else {
			col = tVl[2], row = this.fItValID.attr("text"), toVal = this["fItVal"+col].attr("value");
			if(this["fItVal"+col].attr("view") == 1)	toUpdate = true;
		}
		if(toUpdate || colVars[col].fltr.parseLine(1).length || hasProc)	toUpdate = true, toCalcCycles = 1;
		//this.messInfo("TEST 00: col="+col+", row="+row+", toVal="+toVal);
		//SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET `"+dataTbl[0][col]+"`=''"+SYS.strEncode(dataTbl_set,"SQL")+"'' WHERE `"+dataTbl[0][0]+"`=''"+dataTbl[row+1][0]+"'';");
		updReq = "`"+col+"`=''"+SYS.strEncode(toVal,"SQL")+"''";
		for(var itID in clsLsO)
			if(itID[0] != "*" && clsLsO[itID].prc.length)
				updReq += ", `SP_"+itID+"`=NULL";
		SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET "+updReq+" WHERE `"+dataTbl[0][0]+"`=''"+row+"'';");
	}
	else if(sval.slice(0,22) == "ws_CombChange:/fltrCol") {
		fN = sval.slice(22).toInt();
		fAct = !this["fltrCol"+fN].attr("value").match("\\((.+)\\)")[1].isEVal();
		this["fltr"+fN].attrSet("active", fAct).attrSet("value", "").attrSet("cfg", "");
		if(fAct && (fN+1) < fMax && !this["fltrCol"+(fN+1)].attr("en")) {
			this["fltrCol"+(fN+1)].attrSet("en", true);
			this["fltr"+(fN+1)].attrSet("en", true).attrSet("active", false).attrSet("value", "");
		}
		else if(!fAct) fClrTo = fN+1;

		toUpdate = true; toCalcCycles = 1;
	}
	else if(sval.slice(0,17) == "ws_LnAccept:/fltr")	toUpdate = true, toCalcCycles = 1;
	//File Load
	else if((tVl=sval.match("^ws_BtLoad:/fItVal(.+)_LD$")).length) {
		celO = clsLsO[celId=tVl[1].slice(3)];
		fItVal = (fItValFileLD=this["fItValSP_"+celId+"_LD"]).attr("value");
		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `SP_"+celId+"` FROM `sh_"+class+"` WHERE `ID`=''"+this.fItValID.attr("text")+"'';");
		off = 0; tVl = fItVal.parseLine(0, off);
		fItValFileNm = tVl.parse(2,"|");
		fItValFile = fItVal.slice(off);
		fItValFileSL = this["fItValSP_"+celId];
		if(celO.tp.parse(2,":").length) {
			if(SYS.fileSize(celO.tp.parse(2,":")+"/"+fItValFileNm) > 0) {
				off = fItValFileNm.length; fItValFileExt = fItValFileNm.parseEnd(0, ".", off); fItValFileNm = fItValFileNm.slice(0, off+1);
				for(iF = 2; SYS.fileSize(celO.tp.parse(2,":")+"/"+fItValFileNm+iF+"."+fItValFileExt) > 0; iF++) ;
				fItValFileNm = fItValFileNm+iF+"."+fItValFileExt;
			}
			SYS.fileWrite(celO.tp.parse(2,":")+"/"+fItValFileNm, fItValFile);
			SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET `SP_"+celId+"`="
					"''"+SYS.strEncode(fItValFileNm+((dataTblOneReq[1][0].length && dataTblOneReq[1][0] != "<NULL>")?"\n"+dataTblOneReq[1][0]:""),"SQL")+"'' "
					"WHERE `ID`=''"+this.fItValID.attr("text")+"'';");
		}
		else {
			if(fItValFileSL.attr("items").indexOf(fItValFileNm) >= 0) {	//Enumeration equal files
				off = fItValFileNm.length; fItValFileExt = fItValFileNm.parseEnd(0, ".", off); fItValFileNm = fItValFileNm.slice(0, off+1);
				for(iF = 2; fItValFileSL.attr("items").indexOf(fItValFileNm+iF+"."+fItValFileExt) >= 0; iF++) ;
				fItValFileNm = fItValFileNm+iF+"."+fItValFileExt;
			}
			SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET `SP_"+celId+"`="
					"''"+SYS.strEncode(fItValFileNm+"\n"+SYS.strEncode(fItValFile,"Base64")+((dataTblOneReq[1][0].length && dataTblOneReq[1][0] != "<NULL>")?"\n"+dataTblOneReq[1][0]:""),"SQL")+"'' "
					"WHERE `ID`=''"+this.fItValID.attr("text")+"'';");
		}
		fItValFileSL.attrSet("items",fItValFileNm+";;"+(fItValFile.length/1024).toPrecision(4)+"KiB\n"+fItValFileSL.attr("items"))
						.attrSet("value",fItValFileNm+";;"+(fItValFile.length/1024).toPrecision(4)+"KiB");
		delete dataTblOneReq;
		delete fItValFile;
		delete fItVal;
		this["fItValSP_"+celId+"_GT"].attrSet("active",1);
		this["fItValSP_"+celId+"_CL"].attrSet("active",1);
		fItValFileLD.attrSet("value","|||"+celO.tp.parse(3,":")).attrSet("active",fItValFileSL.attr("items").split("\n").length < max(1,celO.tp.parse(1,":").toInt()));

		if(celO.tp.parse(4,":").toInt())
			this["fItValSP_"+celId+"_VW"].attrSet("src", ((tVl=SYS.UI.mimeGet(fItValFileNm)).indexOf("image/") >= 0)
				? "data:"+tVl+"\n"+SYS.strEncode(getFileFIt("SP_"+celId,celO),"Base64") : "");
	}
	//File Clear
	else if((tVl=sval.match("^ws_BtRelease:/fItVal(.+)_CL$")).length) {
		celO = clsLsO[celId=tVl[1].slice(3)];
		fItValFileNm = this["fItValSP_"+celId].attr("value").parse(0,";;");
		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `SP_"+celId+"` FROM `sh_"+class+"` WHERE `ID`=''"+this.fItValID.attr("text")+"'';");
		isFStor = celO.tp.parse(2,":").length;
		for(iF = 0, off = 0; (tVl=dataTblOneReq[1][0].parseLine(0,off)).length; iF++)
			if((isFStor || (iF%2) == 0) && tVl == fItValFileNm) {
				tVl = off - fItValFileNm.length - ((dataTblOneReq[1][0][off-1]=="\n")?1:0);
				if(!isFStor) dataTblOneReq[1][0].parseLine(0, off);
				else SYS.fileRemove(celO.tp.parse(2,":")+"/"+fItValFileNm);
				dataTblOneReq[1][0] = dataTblOneReq[1][0].replace(tVl, off-tVl, "");
				break;
			}
		SYS.BD.nodeAt(db,".").SQLReq("UPDATE `sh_"+class+"` SET `SP_"+celId+"`=''"+SYS.strEncode(dataTblOneReq[1][0],"SQL")+"'' "
					"WHERE `ID`=''"+this.fItValID.attr("text")+"'';");

		if(!isFStor) {
			for(iF = 0, off = 0, itVlRez = ""; (itVlEl=dataTblOneReq[1][0].parseLine(0,off)).length; iF++)
				if((iF%2) == 0)	itVlRez += (itVlRez.length?"\n":"") + itVlEl;
		} else itVlRez = dataTblOneReq[1][0];
		delete dataTblOneReq;

		// Size appending
		for(tVl2 = "", off = 0; (tVl=itVlRez.parseLine(0,off)).length; )
			tVl2 += (tVl2.length?"\n":"") + tVl + ";;" + (getFileFIt("SP_"+celId,celO,tVl,true)/1024).toPrecision(4) + "KiB";
		itVlRez = tVl2;

		this["fItValSP_"+celId].attrSet("items",itVlRez).attrSet("value",itVlRez.parseLine(0));
		this["fItValSP_"+celId+"_GT"].attrSet("active",itVlRez.length);
		this["fItValSP_"+celId+"_CL"].attrSet("active",itVlRez.length);

		if(celO.tp.parse(4,":").toInt())
			this["fItValSP_"+celId+"_VW"].attrSet("src", (itVlRez.length && (tVl=SYS.UI.mimeGet(itVlRez.parseLine(0).parse(0,";;"))).indexOf("image/") >= 0)
						? "data:"+tVl+"\n"+SYS.strEncode(getFileFIt("SP_"+celId,celO),"Base64") : "");
	}
	//File Get
	else if((tVl=sval.match("^ws_BtRelease:/fItVal(.+)_GT$")).length && (celO=clsLsO[tVl[1].slice(3)]).tp.parse(0,":") == "file")
		this["fItVal"+tVl[1]+"_GT"].attrSet("value","||"+(tVl2=this["fItVal"+tVl[1]].attr("value").parse(0,";;"))+"|"+SYS.UI.mimeGet(tVl2)+"\n"+getFileFIt(tVl[1],celO));
	//File Select
	else if((tVl=sval.match("^ws_CombChange:/fItVal(.+)$")).length && (celO=clsLsO[tVl[1].slice(3)]).tp.parse(0,":") == "file")
		this["fItVal"+tVl[1]+"_VW"].attrSet("src",((tVl=SYS.UI.mimeGet(this["fItVal"+tVl[1]].attr("value").parse(0,";;"))).indexOf("image/") >= 0)
				? "data:"+tVl+"\n"+SYS.strEncode(getFileFIt(tVl[1],celO),"Base64") : "");
	else if(sval == "ws_BtRelease:/go_reportIt") {
		go_reportIt_report = "<body>\n"
			"<h1>"+tr("%1 item:").replace("%1",classNm_text)+"</h1>\n";
		dataTblOneReq = SYS.BD.nodeAt(db,".").SQLReq("SELECT `ID`,"+clsLsReq+" FROM `sh_"+class+"` WHERE `ID`=''"+dataTbl_value+"'';");
		for(iR = 1; iR < dataTblOneReq.length; iR++) {
			if(dataTblOneReq[iR][0] != dataTbl_value) continue;
			for(iC = 0; iC < dataTblOneReq[iR].length; iC++) {
				itVlNm = itVlId = dataTblOneReq[0][iC];
				celO = null;
				if((itVlNm.indexOf("SP_") == 0 && !(celO=clsLsO[itVlNm.slice(3)]).isEVal()) || ((itVlNm == "NAME" || itVlNm == "DSCR") && !(celO=clsLsO["*"+itVlNm]).isEVal()))
					itVlNm = celO.name;
				if((itVl=dataTblOneReq[iR][iC]) == "<NULL>" || !itVl.length) continue;
				if(celO != null && celO.tp.parse(0,":") == "file" && !celO.tp.parse(2,":").length) {
						for(iF = 0, off = 0, itVlRez = ""; (itVlEl=itVl.parseLine(0,off)).length; iF++)
							if((iF%2) == 0)	itVlRez += (itVlRez.length?"\n":"") + itVlEl;
						itVl = itVlRez;
					}
				go_reportIt_report += "<span style=''font: bold 15px/25px Arial, sans-serif''>"+SYS.strEncode(itVlNm,"HTML")+":</span>";
				if(colTps[iC] == "t")	go_reportIt_report += "<br/>";
				// Inserting images
				if(celO == null || celO.tp.parse(0,":") != "file")
					go_reportIt_report += "<span style=''white-space: pre-wrap;"+((colTps[iC] == "t")?"":" margin-left: 3pt;")+"''>"+
							SYS.strEncode(itVl,"HTML").replace(new RegExp("(http|https|ftp)://(\\S+)","g"),"<a target=''_blank'' href=''$1://$2''>$2</a>")+
							"</span><br/>";
				else for(off = 0; (itVlEl=itVl.parseLine(0,off)).length; ) {
					go_reportIt_report += "<span>"+SYS.strEncode(itVlEl,"HTML")+"</span><br/>";
					if((tVl=SYS.UI.mimeGet(itVlEl)).indexOf("image/") >= 0)
						go_reportIt_report += "<img src=''data:"+tVl+";base64,"+SYS.strEncode(getFileFIt(itVlId,celO,itVlEl),"Base64")+"'' /><br/>";
				}
			}
			break;
		}
		delete dataTblOneReq;
		go_reportIt_report += "</body>";

		this.attrSet("event", this.attr("event")+"usr_report:/go_reportIt\n");
	}
	else if(sval == "ws_BtRelease:/go_report") {
		toUpdate = toReport = true, toCalcCycles = 1;

		this.attrSet("event", this.attr("event")+"usr_report:/go_report\n");
	}
}

//Clearing the filter up to fClrTo
if(fClrTo >= 0) {
	for(iF = fMax-1; iF >= fClrTo; iF--) {
		if(iF) { this["fltrCol"+iF].attrSet("en", false); this["fltr"+iF].attrSet("en", false); }
		this["fltrCol"+iF].attrSet("value", tr("Disabled")); this["fltr"+iF].attrSet("active", false).attrSet("value", "");
	}
	fClrTo = -1; toUpdate = true; toCalcCycles = 1;
}

if(toCalcCycles > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = max(0, toCalcCycles-1);
}','','',-1,'owner;name;dscr;geomX;geomY;geomW;geomH;geomZ;evProc;pgOpenSrc;pgGrp;backColor;bordWidth;bordColor;',1736698649);
INSERT INTO wlb_Main VALUES('weather','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAxCAIAAADldTjtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAO
[encoded data, 4850 characters]
sxw40HSaZPF43P4QDoePmPQdM7Jer9+8efPbDuOYVigU/gexmh5SI8AylwAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',0,'JavaLikeCalc.JavaScript
isCurErr = (current == null);

curSymb_src = isCurErr ? "" : "weath"+current.symbol;

curTemp_arg0val = isCurErr ? 0 : current.t;

title_arg0val = isCurErr ? "-" : current.city;
title_arg1val = isCurErr ? "-" : current.country;

curText_arg0val = isCurErr ? "-" : SYS.strftime(SYS.strptimegm(current.sunRise,"%Y-%m-%dT%H:%M:%S"), "%H:%M");
curText_arg1val = isCurErr ? "-" : SYS.strftime(SYS.strptimegm(current.sunSet,"%Y-%m-%dT%H:%M:%S"), "%H:%M");
curText_arg8val = isCurErr ? "-" : SYS.strftime(SYS.strptimegm(current.tm,"%Y-%m-%dT%H:%M:%S"), "%a, %d-%b-%Y %H:%M");
curText_arg3val = isCurErr ? 0 : current.tFeel;
curText_arg4val = isCurErr ? 0 : current.h;
curText_arg6val = isCurErr ? 0 : current.windSpeed;
curText_arg7val = isCurErr ? "-" : current.windDir;
curText_arg2val = isCurErr ? 0 : current.windDirDeg;
curText_arg5val = isCurErr ? 0 : current.p.toInt()-1000;

isFCErr = (forecast == null);
for(iD = 1; iD <= 10; iD++) {
	fcO = forecast[iD-1];
	this["fcD"+iD+"Symb"].attrSet("src", isFCErr?"":"weath"+fcO.symbol);
	tipTool = tr("No data");
	if(!isFCErr) {
		tipTool = tr("On %1\n").replace("%1",SYS.strftime(SYS.strptimegm(fcO.tm,"%Y-%m-%d"),"%A, %d %B %Y"));
		tipTool += tr("Temperature (°С) %1, min %2, max %3, morning %4, evening %5, night %6\n")
								.replace("%1",fcO.t).replace("%2",fcO.tMin).replace("%3",fcO.tMax).replace("%4",fcO.tMorn).replace("%5",fcO.tEve).replace("%6",fcO.tNight);
		tipTool += tr("Wind %1(%4°), speed %2m/s, pressure %3mB\n")
								.replace("%1",fcO.windDir).replace("%2",fcO.windSpeed).replace("%3",(fcO.p.toInt()-1000).toString()).replace("%4",fcO.windDirDeg);
		tipTool += tr("Feel temperature (°С) %1, morning %2, evening %3, night %4\n")
								.replace("%1",fcO.tFeel).replace("%2",fcO.tFeelMorn).replace("%3",fcO.tFeelEve).replace("%4",fcO.tFeelNight);
		tipTool += tr("Humidity %1%\n").replace("%1",fcO.h);
		tipTool += tr("Sun rise %1, set %2\n").replace("%1",SYS.strftime(SYS.strptimegm(fcO.sunRise,"%Y-%m-%dT%H:%M:%S"),"%H:%M:%S"))
								.replace("%2",SYS.strftime(SYS.strptimegm(fcO.sunSet,"%Y-%m-%dT%H:%M:%S"),"%H:%M:%S"));

		for(iTm = 0; fcO.times != null && iTm < fcO.times.length; iTm++) {
			fcTmO = fcO.times[iTm];
			tipTool += tr("[%1-%2] %3 %4°C, feel %5°C; %6(%7°), %8m/s, %9mB; %A%\n").replace("%1",SYS.strftime(SYS.strptimegm(fcTmO.tmFrom,"%Y-%m-%dT%H:%M:%S"),"%H:%M"))
								.replace("%2",SYS.strftime(SYS.strptimegm(fcTmO.tmTo,"%Y-%m-%dT%H:%M:%S"),"%H:%M"))
								.replace("%3",fcTmO.symbolNm).replace("%4",fcTmO.t).replace("%5",fcTmO.tFeel)
								.replace("%6",fcTmO.windDir).replace("%7",fcTmO.windDirDeg).replace("%8",fcTmO.windSpeed).replace("%9",(fcTmO.p.toInt()-1000).toString())
								.replace("%A",fcTmO.h);

			//tipTool += tr("Temperature (°С) %1, min %2, max %3, feel %4\n")
			//					.replace("%1",fcTmO.t).replace("%2",fcTmO.tMin).replace("%3",fcTmO.tMax).replace("%4",fcTmO.tFeel);
			//tipTool += tr("Wind %1(%4°), speed %2m/s, pressure %3hPa\n")
			//					.replace("%1",fcTmO.windDir).replace("%2",fcTmO.windSpeed).replace("%3",fcTmO.p).replace("%4",fcTmO.windDirDeg);
			//tipTool += tr("Humidity %1%\n").replace("%1",fcTmO.h);
		}
	}
	this["fcD"+iD+"Symb"].attrSet("tipTool", tipTool);
	this["fcD"+iD+"Text"].attrSet("arg0val", isFCErr?0:fcO.tMax);
	this["fcD"+iD+"Text"].attrSet("arg1val", isFCErr?0:fcO.tMin);
}','','',10000,'name;dscr;geomW;geomH;backColor;bordWidth;bordColor;bordStyle;',1714665339);
CREATE TABLE IF NOT EXISTS 'wlb_mnEls' ("ID" TEXT DEFAULT '' ,"ICO" TEXT DEFAULT '' ,"PARENT" TEXT DEFAULT '' ,"PR_TR" INTEGER DEFAULT '1' ,"PROC" TEXT DEFAULT '' ,"uk#PROC" TEXT DEFAULT '' ,"ru#PROC" TEXT DEFAULT '' ,"PROC_PER" INTEGER DEFAULT '-1' ,"ATTRS" TEXT DEFAULT '*' ,"TIMESTAMP" INTEGER DEFAULT '' , PRIMARY KEY ("ID"));
INSERT INTO wlb_mnEls VALUES('El_round_square1','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABaBJREFUeJztm11MU1cAx/+tZVB0027ysctqN2SYKDoEP8aD05XE6hQB
oQ0icSVOFnWCbibzUWSJjJeJZsa4RGfGooOaOKhaso+ylMk082FQIYFKBKd0QkJb+hVauHsa8drb
T3vPZdjf2zn33Nvf+XPO7b30HCBGjBcawfOc/HBomLZarWj6vgkm0/1oOYXMzp3FWLVyFaRSKRZK
FkXUl4gDqDtRR1/54Qrkcjm2bt0KqVQa6aUiRq/XQ6vVQrJIgordu1FQuCPs/oR9wu0/btO6dh2y
s7ORkJAAiqLCvURUcTqdsFgs6O7uhky6BGvXrcVb6ekh90sYzodpW9todaUaWVlZSE9P573zAJCY
mAiKorBlyxb81dMNpUqFJ+Z/6FDPF4XaUNPcQh/57FM0NjbyMtxDQaVSQSwWo6BwB0z9A3RG5ttB
R0JIAbidLrqsfBcaGhpmbecBQCgUorCwEBMTE2hvb4d30kOLXooLGELQKeB2uui9H+1FUVERMjIy
omfLIRUVFdD/1oEbN24EbRs0ALPZDLvDgczMzKjIkUKtVqPlqgYTVlvA+0HAKdBrvEfvLC3BpUuX
omtHAJlMhpycHBz85GDAdgFHgKHTAKVSGVUxkuTl5WFqehqDpvt+R0HAALTXr2P79u3RNyPE/Pnz
UVNTg5P1J/228RvAkcOH6dl8xw8VoVCIW11d+N3QyToK/AZgt9uhVqs5EyNFfHw8SkpK4PF4WI+z
BtDxq55+naIgFos5lSOFUqnEqdONrMdYA3C5XIiPj+dUijRisRg2i9VnGsxja+xwOo7v37+feyuC
LF26FE1N36Gzs7P26XqfETDyeISWSCTkzAghEokwPU3DaXcwRoFPAKdPN6KsrIycGSGSk5PhdDkx
ODjIqA/rdXguwgjg7+GH9E2dji8XIlz89iKjzAjAYrEgLy8PqampR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fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_pipe_1','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAALFJREFUeJzt2lEKgCAABNE1PGV2vPKadYeMBnHevzEs+JWJJEmSJEla
TWktNx0x5N5z9V7eHq/n+WXN/442dn77JmNeDkAH0ByADqA5AB1AcwA6gOYAdADNAegAmgPQATQH
oANoDkAH0ByADqA5AB1AcwA6gOYAdADNAegA2vID1KPtY18oPTP/Yq8jjwuSZPYHFstfAQegA2gO
QAfQHIAOoDkAHUBzADqA5gB0AG35AR45IA4M55rBLAAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('sep','iVBORw0KGgoAAAANSUhEUgAAAC4AAABACAYAAABlR0UdAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAACUZJREFUaIHVmn00lNsex78jRl6GpFq5UVY40R9JL+tYcrq6uQeH8ZaX
oytCTF5ypboLXd0KNTUUViONMtUapzd1nQadu8oqlNXbhKZTKF0OeQ2tpfF2ZN8/rDsrxwwzY1Cf
/2Y/z3725/k9v3n23s/ewDTw6teXBACJiIgg03H9aaG9tY04OzuT0NBQoqenR34pvvV1yLu5uhFj
Y2NSVFREtm7dSgwMDMijhw+/bPny0jJiaWlJiouLiVAoJEKhkGzbto2EhYYpXVxFWRd6UH6fODg5
wsbGBkZGRuJyd3d33OTfREhwMBkaGFTaDVCUcRFR70cSEBgAUV8fkpOToa6uPua4QCDA7t278fjh
I5it+EYpbSol4skpKbjJ58Pf33+cNACsXbsW7u7uoLu54r/1b5US9Snffe2rGrLV/2+IiYnB6tWr
JzyXwWBATVUVpWVlU253ShF/U/eauLq7Yf78+ZNKA0BqairaOzpwIu3ElKOusPjvg0OEk8PBw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INQ15sr95BUa/mWkZ8DUxBQ8Hg8jIyOYO3cu
YmJicOfOHXA4HAwPD4vPff36Nfbt24cNGzZgyZIlAID3798jIiICTk6OcPrBSSnbQGTmQ3cPAUCS
k5PFu4HOnz9PtLW1SXZ2trgsMDCQbNmyRfxbKBQSe3t7snHjRtL3UaTwer7CA24tLS3kcDjg8/no
6ekBMLovZd26dTh+/Diam5vBYrFQXFw8ZhJ+7do11NbW4ud/F0DRdXylsGrVKmJnZ0cqKiqIUCgk
paWlxNbWljAYDEKj0UhWVpY40mw2m+jr6xNlbPuYMrWvaoiJiQk5cOCAWJDP5xMAxM/Pb0yK2NjY
kIz0yRemZoz4uHiipqZGeDweEQqF5Pnz54TJZJKqqiqxdFBQEDE3Nye/NTQqRVzh/Sqf88/9+zE8
PAwejwdzc3Ooq6vD2dlZfFwgEKCgoACPHz7CUuNls5fXkugX9RFNTU0SHh4+Jj2uX79OFi9eTJS9
fU9p03gNLU3Kf279goqKCjQ1NYnLCwoK4Ep3xbncXAp1rvqXFe3P+Sq3qAJf8aZgYGa2Yf8Ph7v4
yGafCI8AAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Troinik','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAANVJREFUeJzt2cEJwzAQBVE5uJC4DbkTqz3HbSo9WIeH0B/QcWEY2Iu2
lEFaK71399p19RH/z2iA2UkALaBJAC2gSQAtoEkALaBJAC2gSQAtoEkALaDZtcAw21NaK6//BKYP
cN9j88uvQAJoAU0CaAFNAmgBTQJoAU0CaAFNAmgBTQJoAU0CaAFNAmgBTQJoAU0CaAFNAmgBTQJo
AU0CaAHN8gGmP48fx7ectb6enz7AWWv5Pc/2dn75FUgALaBJAC2gSQAtoEkALaBJAC2gSQA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
QO72Sbj9iyU9nZ9t28a+hoZeVsDJkziWLOHdxkbyt23jBOD3EyAmoO3dyxt1dexOTWXy0KFkgftS
ut9Pf/uACCDO30Fc5Urh37GVO8XdjR2mAAAAAElFTkSuQmCC','/wlb_mnEls/wdg_El_Kran_Sh',1,'','','',1000,'name;active;geomW;geomH;evProc;lineClr;fillColor;elLst;c1;',1399317462);
INSERT INTO wlb_mnEls VALUES('El_Pipe_simple_vert','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAKVJREFUeJzt0MEJADEQgMBwZSb917FXRB5DQMG/uNYl56yZcZ6956b/
ux3wOg3QAZoG6ABNA3SApgE6QNMAHaBpgA7QNEAHaBqgAzQN0AGaBugATQN0gKYBOkDTAB2gaYAO
0DRAB2gaoAM0DdABmgboAE0DdICmATpA0wAdoGmADtA0QAdoGqADNA3QAZoG6ABNA3SApgE6QNMA
HaBpgA7QNEAHaH7l8mDlvmutRwAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Pipe_simple','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAHZJREFUeJzt2UERACEQA0E4meBfBydjHtutYCrfrAUAAABMs+9dr44o
7fdmD/DVATUD1AE1A9QBNQPUATUD1AE1A9QBNQPUATUD1AE1A9QBNQPUATUD1AE1A9QBNQPUATUD
1AE1A9QBtfED7HvO6HscAAAABvoBWK0HADpIXW4AAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Kran_polozh','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 4850 characters]
GxmkZDnxAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',0,'JavaLikeCalc.JavaScript
if(f_start)	toFastCalc = toFastCalc_ = false;

toFastCalc = false;

if(focus) c1 = (c1 == "#d3d3d3") ? "#00ddff" : "#d3d3d3", toFastCalc = true;
else c1 = "#d3d3d3";

p1y = p2y = 90 - (out.isEVal()?0:55*max(0,min(100,out))/100);

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'perm;name;dscr;active;geomW;geomH;evProc;lineWdth;lineClr;elLst;p1x;p1y;p2x;p2y;c1;c2;',1665336058);
INSERT INTO wlb_mnEls VALUES('El_round_square','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABPRJREFUeJztml1Mm1UYx58WOrpOirpxwyxVJEBsZSi9ITNhMpJyAROk
SFYyL/i4cRnZgCVTwYtxN2WJICxxGbAMxQFTaEnGvGBLdN2AyafCYKzAZkpB+rlSSkt4vBHCS9vR
lva8tPZ3d07at7/zP+e8OT3nAAQJ8r+GsZsvP597hgaDAW623QSlUuktJ5fJyjoBQoEAeDweRLz2
6q7a4jbVF6tRIBBg9cVqfDI5hUR//D9+ufUzSnJzMf+TfJR3yTxycDu1vod92NvbC1mZmcDhcCAm
9m2yyW/DqDfg0tISKB48AHZYGCSLkuGtmBjfOHXL5JiYmIjDg0O09PhO1NXWoUgkwkX1gvf9Otra
USgQ0DbcXcG2asXGa42YkpKC01NPvOdpMa9gniQPR0dG92zjt3K55jLWf1ePa1bb7n0t5hUskErx
Xu9dv2j8BiXFxSjr7NrRmbnTB9RqNYSGhkJiYqJ3zAhRXlYOnV2d8MJg9Lzjxv/8C0XJIr/q+a10
tLXjp6dOvdT/pSPgvkIBpaVnvGtFkP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1Tz6MpqaGOBwO5efn08WLFx+AuQs0f/582rB+A+sZYuUzwnXr
NlmsVuwp2INNmzZBLpfPeErWZrMhNzcXGzdshKWtDbzQEFZ8sFLNjCYT3t75NjIyMqBQKGY97hsb
G4uvv/4aEfMjkCJMxciNYVYy5BOM69ZtMugNpFAqsGPHDmRnZ3vUfteuXYiIiMCGjRth0Bt8PsDt
07FGq9WKnNwcZGZmori42OP2wcHBKCkpQVVVFXJycxDk40aX15lpqK+ngkIJsrKykJ+f75OJvLw8
ZGVlQVJUiPq6eq+z49XAO2G10t937EBaWhqUSqW3sR/Q4cOH0dHRgbbWNmRsz/DYm0cNfvzhB/rw
wwtQKBVYtmwZsrOzWd0DdblcMBqNuHTpEqqrqpCXn++/RVupXE4AHssVEhJC7SfaPXrl/g+Q9FFp
wZMczQAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obr_Strela','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAvpJREFUeJztmk1IVGEUht9bN8jBVJLohywbRbQ2bvpRw0VYSNGiRg2c
0cCEghkFWwghYSbaJlNBx4Z+CB0FU7NNkgkRTlk0FkEUONjPIkcdC00hR6c6rYbKUked5nSv3wN3
dc85vN/D4XIXHyAQLGsk7gCBZHhwiOx2O0bHxpCVnSUBwAruUIHi08hHqq3LQMfdw3C5XNxxAse0
e4rqzMVkNG6i0VGQ3Q6quFhB3veq3oDep3bKyz+J7TtKUFPjRFjYnzVy4GP9e4YHh8hms8H2aB8u
VU5Ao5m9VlUb4JmapvGxz3TZcgrSynSYTHMfHlDZBjQ3W9D9MA/l5UB4uG89qtiAfkcf6TP3Uvi6
M7BYfD88oIINKD1fSi1th2Bt7F9Uv2IFPO99Rnc6aqFLO4uIiMXPUaSAttZ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AeLjXq0qczgco5UcsnD4n6NvUpCfT6jVGrPX
V0ZEIOK9lZOu62/+qvwfEjiv5s/xttkAAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_box_Alarm','iVBORw0KGgoAAAANSUhEUgAAAEAAAAAZCAYAAACB6CjhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAA/9JREFUWIXtlm1MlWUYx3/PeTgcEBg45P1FD2+CIQQVCaOk3MxgkFhO
ajFzk4GzJnzINtfUTceHJkM0JZI8LqfAXBAUWMiqMWyOrRSTMwLkMMCjBDFGwHnjnLsPNjcODLBg
je38Pl7Xdd/P9b/u67nuGxw4cLAUzp87L764UCn+7zyWG2kh5yWNRmi1WgBOl5WhUqk4UFAAQGJC
IjnvvL3g+tXAvAJqqqtFfUMDra2tDIUPgbddwCNQP1STnJxMzp4cst7IWrWFcJrP2NFxl6u6q7AN
CABc7AIiQDesQ9ep41bRLZoaG0V6RsaqLILC3nDpokaU3ymHrYCaueIB1vzj2wZ9Xn0MPxqe5R7r
/Ep8uGurSIiJFvGpO0VR6deiU/9AtFV9KRpbb4sxw8yis8Q6rRfN5eWiuaNPTJoWj/+3zOqAmupq
8e6+XCwvWeYXbo8r4AH57xdwvalJvJ6eLgF8svcYfxZcoPasGh62U3X5GzSVvSgGelmT6EnsszFY
jFPCMG3EbLEiyUpUrq44CQsmkwUhwfjobzQ338TfN56EiGBmzDPCydlp2btsVgGsM1Ysmy2Q8hQ7
vALmcTNWq+2JSXb3xENlwzBlwDMohQ+Ox9KiKeN43TWGv+thXWQwr1rbKDlXx699o8i+kWzPPUiS
aOPyxR+Qw/3Qa+/T16OD2+MERlbwZrTfcmmexbwz4L+S9/Eeij8t5liLmogwNRvjXiB19z7e6xeY
EjN5a4s/7cUdOKUdpLTQhXvXK6mtrsUnywuTdxy5RUfJDO3nZEE5QfsPkRHlh2oFTh9WqADBLx/g
TFIOg92d3P3lZ376/hojEykYbaAEULgT8eJzBHX20NLQT0/3H5gM7pgUQYQGryVavRaVNLgSqc1h
zhBcDm5cqOTmmBvquBR2ZL5GfKAzo7ohjMKG2WLBahqgvvwKWs8kdmXvIDk2CKXicTpKJyXOsgSS
hCzZMJpnsAnBjGVlBuHcDtAB3UDUEnfoBOwOSzb2Uld2lG9NE0yaZdwCoknbvgXjj/epaqhnY+xe
QmIDaWn6jJJ2NyQhkO0bXPYk3G+aGk0VmzdtIC3E6+nVLYFZnx0aGBQnTp6goufzx9fgUmiGoqQi
Pjp8GP/AAAnAMNovfu/qY+QvA1aFO37rwwgL9cas76FLN4HfMzF4mx5wr2uIKdkdH39vmDTj5e+O
aVImNGo9bgoTI71atINmwp6PJ8jDBeVK3wLBoSHS6dJSwRXAB9i0yOo7UJh2iCOFR/Dx9XmSnOu6
DavmUTTnF8jbn4der+dMxVnMTWZsu20QaBfUD3K9jFJSEpIaMkv8amPBxAvy88WNlpZ5fdk7szlV
cmrVCnfgwIEDBw4c8DeHiHV9IbrsigAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',1,'JavaLikeCalc.JavaScript
prmSignal+=1;
if (prmSignal>50) prmSignal=0;
if (prmSignal<25)
{
box_alarm_fillColor="green";
El_text_alarm_text="Пуск";
}
if (prmSignal>25)
{
box_alarm_fillColor="red";
El_text_alarm_text="Останов";
}
','','',-1,'name;geomW;geomH;backColor;','');
INSERT INTO wlb_mnEls VALUES('Line_simple','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAGxJREFUeJzt0DEOAjEMBEAfoo5c5CWpgccDL8oH7hqErqChSaRoRnKx
crN2BAAAAAAAAADr287h/XztvfdZXYYopcTtcd9+Lltre0QsPZ8bvy5/vW9B13PIzKi1zuoyRGbO
rgAAAAAAAADAcAfyrEKWCSUb8QAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Priamaja','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAA06AAANOgEDIh6FAAAB
VElEQVRoge3asY6CQBSF4TtwE0KDsZKSUEDspvL9H2FaOgMFUBEqQiCOxWyIcc1uHIuzbO5XIUE5
f6MUEgkslaZpFEXoGZ7meWat9el0Qi/x1Pc9a63LskQv8VRVFWutL5cLeomnOI45TdMsy9BLPNV1
HaA3fEoC0CQATQLQJABNAtAkAE0C0CQATQLQmIjGcUTPeFuSJEopImJrbdM06D1vO5/PYRiSC6jr
Gr3nbUVR7Dvgdru5AyaiYRigY3xYa90BE9G6rtAxPnYfsGEiWpbl6az7htoq3ctH1trHk9uVL9/+
g+1D3MUvb/T9sueAw+Hw653+mi2JlVJ5nmPXeAiCr2eIvQa4HwH6DwFEdDweoWM+svunUQlAkwA0
CUCTADQJQJMANAlAkwA0CUDjruuu1yt6hqeu69gYM00TeomnqqrYGNO2LXqJp77vd//XY/QEcQdM
mGr1E4A/HQAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineClr;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Krest','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAANhJREFUeJzt29EJhDAQBuHNcYWcbWgnpj2xzVwPRvgQ/4G8Twb2IbCp
mqT3GmO40/d9zPh/ZgM8nQTQApoE0AKaBNACmgTQApoE0AKaBNACmgTQAppv7zX1nt62u1Qu0s6a
uUMbYy7A03n9CCSAFtAkgBbQJIAW0CSAFtAkgBbQJIAW0CSAFtAkgBbQJIAW0CSAFtAkgBbQJIAW
0CSAFtAkgBbQvD5Am923r3bWcdxkc4Fl+dW2rk4gHyYeTgJoAU0CaAFNAmgBTQJoAU0CaAFNAmgB
zesD/AHIVM3bU8agFAAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obriv','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAt5JREFUeJzt1jtMk1EUB/BjQ7AVEkgoLB3oRKALBsIAKSRY8xVcGHCw
X2ekCMEIm6AkECmDTDLxSOQhSAIapTAodVN5bZTyEIvU2ha1UFBqAZO/G4K0lGco8fySu3zfyb33
nHtu+xExxhhjjDHGGGOMMcYYY4yx/8OFUAFupws+n488Hg/dqawIGqcVtKQXRSIiUigUdFEmDTl3
2LNapqBKSQERHWpUVlSirrYOft8vnM3Oj8m7vIISgwEKheLQye8cSUlJSE5ORonBgLGRUdg/LYZd
Qfa06cCLl2jv6KC+/r49wVc1GsrPv7bn+fr6T7pfUxNysYyMDMrKzKSCggK6otGE1xX5OD+P1pYW
yGSyXad4OTUVxnoj3E4X1ryrAU9wa2MTbqdre4g6HQRBgEQiCdgZUVFRkMvlqLpbhSHTIJZc7rPv
DMukBUqlctdG09PTsWCzHXlzT7q60NLcHPKq5ObmQi+KmJ/7cKqFeN7/DJ8X7cHXKCsrAxEhPj4e
w69en+hmllxu6EUReXl5+xbjemEh2h+3Y8Y6faLrd3V2goigVCphmbQEnnt1xYsh0yDev313aiex
/N2DIdMgGowNkMvliI6ODlgIlUoFQRBgGjDB7XQd+R/l9+YWerp7EBsb+7ez09LgXV45+2tHRDQ6
Morb5eXIyc7ZtzNKb5Wi8WEjvi19PfDGZ6dn0FBv3DVPQkIC3pjN23OEzS+x0/EFDoeD+vr76Glv
L9nt9oBxKpWKpFIpEREZiospKzNrT8zs3Cw9qK8nr9dLNptt+3lcXBz1dH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JlTX3eIAgOOXkcw6/Sg6mw/D+zYEThfA8dOGZTsfDjodIpolcEu+pTl0NjVhzn0IOfLrKJMm
48PLRjR85EGoqIeIy3RleLqwNrru8xGPy0Wcyy7i8XjJus9L3C4ncS45idvtZSzAjAl5CQl7KrT7
f6fEgQcSGP8UiQP/AZC5L6+YSV9XB3pG7DhZfRv1VVLQ2/ThaDEmNA6P4N24B7WXJejRvsFigF1C
RqDZwUXuCQXKSktxjF6GlaEPswb6gwTrQQJwKFCEgGVA5jVMT/LBMmGB1cSFmRIgg3Emy4S5kkwk
z7yF5t5jpJWeZ9eHEfWbRa1SEYWiJOSv1tSgSHp8V8UiYvL46BhZsNtDvlAiQWZ21l9Vn7h2r9/P
fDulF/USOgAAAABJRU5ErkJggg==','/wlb_originals/wdg_Box',1,'','','',-1,'name;dscr;geomW;geomH;backColor;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Strela','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAA+tJREFUeJztmn9MlHUcx186lHAL07ZAwaI2oRJckBC6IJV/JLTNCmuc
tiJrlT8ySjbbbbTZP8riZptdNf6hhg6iFXYH/NW8Q0Vki1w/FI4Gh54TsRB/nFBe3/5oV2MeHHf3
fXj8Pnfv7fPX93k+e/b6vD/P8/1+ny/EFFNMd7qaGr8SR5qbhRa5Z2uRVLaGL19m+44dmuRWAgCA
2eyhunqbuDZ6VaoTlAGQkeFjfPwgbrdbal5lAABUVsK3zaX0nDkrzQVKAZgzB54uOct3tm+49edf
UiDEyUgyk8rOBpdrDzZbmpR8SjnAr02boKXVytUroxG7QEkAAO++56TGUh5xHmUBpKfDLd/X9PW6
InKBsgAA9u6Fww3r+eWnn8OGoDQAgJUre+g4aQv7fuUBFBVBSmoVX9TVheWCOJMJTRYZMnXs+Jus
XjP5+KpV4+zbV8+li0PivuSkWSElFwJhhOjvR7y/pzTkYirfA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/PCuizACWaw1wkTft2j9V5uM0LtRDcdERbJD+eH3hsp3P4WpfR4LpfLrfceDX8k
Nfv+bLn/oc0F0RQMi7CIwMVtFjFh0cDEqz7qBD3ZktFmtKLFbP26o9rxz12lW/88WBg89dxzz80F
bYIGPe66sffo3sctwl6cjF8WS2JJAiAzMMLddut+ol9e72onnICCcgB62kwbA8qAObA88OZofvRt
XddPvPTSS4VG+96Ur8VN0fybaIoLg8XBjCqq+8ti+b6FyEKkJJWacXukzTQ6q516ykwdi5mxk5qo
neWMXzJN80o+nw/1uvNDkzalgWw2KwLYM54a3z+RmLhvIbLQUxEraQBglHUxsH4AMIgBRVTWTplX
IXEJMTMOAXSKgi4AQFJPlrqqXbM7lncc21PecxLAeDabDR3pg9A0AoAVEi7ioniu/Zw8oo7sk0xp
DwCcT5+/Zz46/yMAKElFXI5PghHmSUCLkcaAMoAerffNwdLgJwBgiMb46djpL3bnd+vbsM1slvJA
kwlw4umnn+6JRqMdADDWOTYwHZveBQCMszaTmjtX9+/XdoghLzHxm15l8/hoYXQSADRNW3z55Zd9
d3ivBzeMAD8cOXKkVxTFO7D2HyMAAM75dDM/h6+Hm/6XmVwul+vr6zsO/xxEP3r0aNNMfAMb2MAG
NrCBDfjif244P8uw79NUAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'JavaLikeCalc.JavaScript
if(f_start)	isErr = false, alBlnk = false;

//Display typical for st_open
stCur = -1;
if(st_open == true || st_close == false) {
	fillColor = (stVal=digStts.parse(0,";").parse(1,"-")).length ? stVal : "green";
	stCur = 1;
}
else if(st_open == false || st_close == true) {
	fillColor = (stVal=digStts.parse(1,";").parse(1,"-")).length ? stVal : "blue";
	stCur = 0;
}
else { fillColor = "grey"; return; }

//Notification create
if(ntf.length && (ntf.toInt() == stCur) != isErr) {
	if((isErr=(ntf.toInt()==stCur)))	alarm = "50|"+NAME+"|"+ntf.parse(2,":")+".|"+ntf.parse(1,":");
	else if(alarmSt&0x100)	alarm = "1|"+NAME+"||1";
}
if(!isErr && alarmSt&0x100 && !(alarmSt&0x10000)) alarm = "";
if(alarmSt&0x100) {
	if(!(alarmSt&0x10000) || alBlnk)	fillColor = isErr ? "red" : fillColor;
	else fillColor = "gray";
	alBlnk = !alBlnk;
}','','',1000,'name;dscr;geomW;geomH;lineClr;fillColor;fillImg;elLst;',1678183784);
INSERT INTO wlb_mnEls VALUES('El_Armatura','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAC3BJREFUeJztWXmMVdUd/u4959zlLTMDs7IN4DDQAoMyDAoRCkYIiwxF
jRibYsLSJdIgrctfojU1NdGkLgW1YEpBY0SII4vRxoKM0hhETNgEii0UGIEqzrx5y93Ovad/3GXe
m3HG2CCgfV/ycufNuzNzv+98v+/3O2eAIooooogiiiiiiCKKKKKIIooo4v8aixcvFs8/95wwsjlx
pZ/l28JLG18Sm159NeIn53+Y6kjhpZdfxspfr8SHe/eKbDrzvRAim86I48eOiUWLFom169aioqIi
+ozm3xiL6aioqMCx48exePESTJlyI/761tti1pzZ0mV/6kuEt996S9x3//3Y8/c9qKysRG1tLTRV
iz4vEIAQCl3TIUsyYrE4Dh85goOHDuHJJ54Qc2bPwdhxDd8ZIc61fSae/eMf8dCqVSgpKUVd3Qho
mgpFVQru6yaADEVRAFkCZRSKwmBbFl5vaUFrayv+8uf14rbbbkNJWelVLcSa1WvEkmVLkU6nMWTI
YKiqBkIpCJHBGCu4tyADCCFQNBWKokDVVOi6jkQygaqqKli2jRfW/gl3LLwDGzdsEG1nzl5V+dB2
5qx44/UW8aOpU8WGjRtACMHgwYMQjyeg6RpUVYWqqlBYHw6QCQEjBJIkwXVdeITDdSkooWCMQddj
yGYz+MNTT2HXrl3Y2vKG+PGtC664G1p37xb3/Go52traUFlZiQGDBoExCkYpCKGglECWCYhMwJRC
BxQ8/PJ7lgtVU+E4DlyXw3U9uK4L13XBuQuXc9iO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scr;geomW;geomH;geomXsc;geomYsc;lineClr;fillColor;elLst;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Kran_Sh','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAC5pJREFUeJztWmmMI1e1/qrurcVVLtvlpW1sv0zPSpQEEWZAYhHkCRSQ
kie9gIJQBghBgITgBwmLglgDKCCkJyKBnvIWEpYIEYknHmITCBS2X0hD4EcYepjuTqen7XG3226v
5VruLfOjqjzlnowZIGPzeP1JV/atvqU633fPOfeccgMHOMABDnCA/78Q4pPjx49/pFwuH1qUMdca
tVqttbq6+m8A2tE1Gl9w4sSJN5w8efLU3C2bE1ZWVn61urr6hfi1KQEEQQAhZL5WzRGiKI4vu7YI
Q/6ecCDAog1YNA4EWLQBi8aBAIs2YNE4EGDRBiwaBwIs2oBF40CARRuwaEx1gysrK+c55/V5GtDv
948bhnF+Hs9aW1tzAcjxa8K+NdI8DNmHOwB8Z07PEgB4ACZtMd23wJuTIXGwBT0XwEEOOBDgQIB9
8+sWYsV8oQDIRJMpATKZzMOpVOpjAJLztmpOOJLL5T4B4MXRhSkBKpVK8eabb37gyLFjZwuFwocB
HJ+3hdcAgqZpL6pWqw+dOnXqNzfccMPdAPrRH6eOwURChWmaRFGUf+p2e58zDON0rVb7juM4n5i7
2c8Nyvl8/t5KpXKXaZpVwzDAObfiC6YEoFSCltBACIWqqkinUy8olUo3rq+vH93b23vEcZwn5mv/
Xw3NNM1bKpXKR4tLS6/QdB2KqkKSJNj2aGrhlACiKEKSJUAACCWglEKWZfH5zz9xur23d+vF+sUf
O47zmX6/vwHAnSOhq0UimUy+pFgsfrhQKLw8m82mtUQCsixDpBSEiOCcTd0wJYAkSVAUBYIognAO
iRLIkgRFlpFMGoVCvvCWRqNxZ7vdfrzRaHwFwC/nyW4GaDqd/pd8Pv/OQqFwezabRUJLQJEVUEpB
KYFICIhIwL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rY/EjhCOqCwBsI
KAm8gBIKkYhTR+fImiGA67oYDodhMvPD6i+sAsPyOBAgSJacMbheEOuDwRCdTsff2dm52Gq13lav
188A6P6V5OPwB4PBI+fOnfueZVnvtW37PelUKp8M+4GoC5SoBEpCL5h0gZeaookAszwgEuByd79U
+gafHK7nwnNdDIcWhoMBNjc3u529vf+sNxqPAXjqOSC+HzsXLlz4ZLPZfKJUKt1jmubpXC4nx6tE
GrXCYThIhAT1Aw1zAqEYzXonGMTvCL4/7f5BMxSPeQbLstDrdrG9s7NRq9V+YlnWp0aj0TaCHzuv
GWzb/sXGxsav2+32v29vb99brVZfl0ql8rquQ5Fl0Fhz5JHpjpBSCsdxriyAxzls2w6S3piDhed6
9D6AeWxytLXbbTQajUfX19e/BOB315L0s8Du9Xpner3eW7rd7q3lcvmhUql0o6bpSIQvQSllk9KZ
kKBRoozOboY8x4Ftj2IJj12q5FwPI8tCq9Xydnd3n9za2nrEcZxHAUw32HPGcDj8yfnz51/WbDbf
Xy6X32ia5o2GYUBVVEiyNHk7JBICSjncWR7AOYfjuuBhO8y94MWHZY3Q6/X45uZmbTgcPtBsNn8M
YK7/SfJn0O90Op+yLOvxfD5/p2ma9xUK+Yyu6URWZEiSDJEQ+Nyf7QGMMTiOHe46gz0awbIs1Ov1
P6yvr/+H67pfnCutvxCu656r1+sP1uv1h7PZ7Luvu+66B7LZrKSqiUkpPfOVWCCAA8d2MBxaaLV2
u41G47ec83e5rrs6VzZ/G9rtdvuzhJA/djqd95eKpRfqyaSmaQn4s34XcF0X/X4f9Vrd7nQ6393c
3PxvAD/F/1E0m83/aTab3261WqdLpdLdpmnemkgkrnxDuVL5Rbla/mEqlXoJ/vF+Ijdzudy/ViqV
7wJ45ZUWvWaOBi0KGQDHFm3EAf5e8CeIyH5z7O/CwwAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',0,'JavaLikeCalc.JavaScript
function setActMess(mess) {
	if(err.isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+shifr, "''"+shifr+"''."+mess);
	else SYS.nodeAt(err).nodePrev().messSet("''"+shifr+"''."+mess, 2, "OP", this.ownerSess().user());
}

if(f_start) {
	c1Sv = c1;
	contextMenu = "";
	if(!com.isEVal() || !close.isEVal()) {
		contextMenu =	(digComs.isEVal()?tr("Open"):digComs.parse(0,";").parse(0,"-"))+":open\n"+
								(digComs.isEVal()?tr("Close"):digComs.parse(1,";").parse(0,"-"))+":close\n";
		if(!stop.isEVal())	contextMenu += (digComs.isEVal()?"Stop":digComs.parse(2,";").parse(0,"-"))+":stop\n";
	}
	toFastCalc = toFastCalc_ = false;
}

toFastCalc = false;

if(this.attr("focus") ||
		(!shifr.isEVal() && shifr.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == shifr))
{
	c1 = (c1 == c1Sv) ? "#00ddff" : c1Sv;
	toFastCalc = true;
} else c1 = c1Sv;

fillColor = "gray";
if((st_open == true && st_close != true) || (st_open.isEVal() && st_close == false)) {
	fillColor = "green";
	if(!digStts.isEVal())	fillColor = digStts.parse(0,";").parse(1,"-");
}
if((st_close == true && st_open != true) || (st_close.isEVal() && st_open == false)) {
	fillColor = "red";
	if(!digStts.isEVal())	fillColor = digStts.parse(1,";").parse(1,"-");
}

//Events process
for(ev_rez = "", off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Kran","Event: "+sval);
	if(sval == "usr_open") {
		com = true, close = false;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("OPEN");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_close") {
		com = false, close = true;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("CLOSE");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_stop") {
		stop = true;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("STOP");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else ev_rez += sval+"\n";
}
event = ev_rez;

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'name;dscr;active;geomW;geomH;contextMenu;evProc;lineWdth;lineClr;fillColor;elLst;c1;',1665336058);
INSERT INTO wlb_mnEls VALUES('El_Pipe_simple_vert_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAS9JREFUeJztm0FOwlAYBoe+iqRAPAI7DiE38QJ4JvZyB+9VmhALuigG
0Z1dTIzfJH/en/eSZjL7ThjJasX7ZgNNM8y8gfli2JfL633TwGJxu89mUFXQ93A4QNfdnod22NvL
XddB217P4xFK9cTLfj/5rX81NsBfJwFsAZsEsAVsEsAWsEkAW8AmAWwBmwSwBWwSwBawSQBbwCYB
bAGbBLAFbBLAFrBJAFvAJgFsAZsEsAVsEsAWsEkAW8AmAWwBmwSwBWwSwBawSQBbwCYBbAGbBLAF
bBLAFrBJAFvAJgFsAZsEsAVsEsAWsEkAW8AmAWwBmwSwBWz+fYB67AfW60eet1tKgbr+MgXqu+te
6m/vNZQCE+A8hfspPCyhPw2/03/OqYe3y/nj7QS73eso/w9J4z9odzl/TQAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Strela_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAByhJREFUeJztmntslWcdxz/v5Vx6O21x60pLKftDNxwkDsPKhokbJmZk
ZAtky+Y2XEZQN7msMk00MV4SE8X9ZTLoXBxQiDO1k7GrAZMpyLZkzo1E0RVaLDBbCrS25/q+73nf
8/jH7xwLcuntPb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avBrbbd6/8vwBaD4YVGNE/mAAAAABJRU5E
rkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordWdth;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Troinik_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAi5JREFUeJztm12OmzAURg/gZEZMoi4h85RFwE66gcya5r3ZQ99baRaU
MD/FcR8u6TTRtGoB+9qSP8nCAoG/e3JtZJsUTNRmg2tbqGspdzXcraS+Xr+fr2tYrS7rt7dQltD3
cDxC110ejwepH4ZzXQeHw/vx9RWq8jNf9vtirP9yKoDUlQFoG9BWBqBtQFsZgLYBbWUA2ga0lQFo
G9BWBqBtQFsZgLYBbRltA1P17fuezQY35t7ttkkXQFHIYkrbjn/Gw26XLgBjpExRVSXaBYwR83M8
Jy0ADhYGzAzBQ4IAjIFqRsdJAZgr7S+emcQYUMByKWVumUXsAIp5Rvs/Kfou4DN4iLwL+Ojz16pi
zQDfv/xFO/6b+T+FCv5XW2Ga+jeFSPvr9qIBsFhICaloAJSlbJWHVjSToVJpWaYgEgDWghu1pDFN
p2UkAJyD52c4ncK2exMLAJDgX17CQvi0jggASPAhM6G3kQGAsJnQ9xECgHCZEC0AkOC7DpxHCFED
AAneZ3ewsQOAIRM8dYcfKQAAfwNjEhlwlg8IUb4G/6bzwDgXhOgHwY90fkXOMXdIEgBI8HNkQrIA
QIJ/e5uWCTa1MeBazsHT0z1t04y6//Hxa9oAANqmyX+YmKIMQNuAtjIAbQPaygC0DWgrA9A2oK0M
QNuAtjIAbQPamjwb3G4bHnY72Ws3v5Vq+A5vqFfm6vrwNUiB7NLeLGWvrreyUHEutpfVW9t/cM3K
lHaKfgK1nMAD15RhnAAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;ge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BYgTTZAWoA0
2QBpAdJkA6QFSBO8it/tGtzv9/6snUalPD+Hd74uafL5eQOlgD+lvan8WZ02fqNiKEb73Vuj//KZ
8UvaEH4DDMXoM/a8K5cAAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obr_Strela_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABIVJREFUeJztm0tMXFUYx3/3waMww2NI29ihg1RJodJYrZoqqWVR2oUu
rEUX2sZETU2MtcJGaqKUkHRh2Wmjm9ZiohLFRRMpTZqKCbTVQiyVpgqSdnhETEoRYYDyuPe4uJkU
G0pm5t4Zci78VpPJPf985z/f9517zr0DK6ywrNGWOoCl4vfr14V/nf+IutSBJJr+YJ84XFUl9u3f
SvEjfvSlDihRTIyHRHt7OwcPvYAQVygogKwslocBP/3YIt5+5016ehoIBCA52fpeUcHVJTDQ1y/K
924X1TW7gQY2bQKPxzIgORlU1aUZEBobF6fqT/LuoXK8GZcpWr3wda404OeLl8Su3Xn4/SME8ha/
VnOLATN3psXg4CAfH6vmWN3LbNs2ghbBAu+aDPjq63pOnDzA1sehsDDycVIbMDJ8W/T29nL4g9do
baugrCx6DVWT1IDvGxvF+1WvM/T3aXbGMPEw0mVAT3ePaG09R3PzPvI33KGwyJ6eVAbUHKkRtbUv
4fFe5dEtzmhqKuh5eQhn5OLL7Fw12591VlPVQC8pcVY0XoyP372FdQpVBT0tzVnReDE9DVNTkJnp
nKZUBgCMjoLPZwXuBKoKerpEBoz9C7eHwZ/rjJ5lgMcZsUQxOQWKAklJ9rWkK4Ewk5Ow+j47vGjQ
VNC9XvtCiSYUguxsSE+3p6NqkmYAWFmQlWVPQ9oSCDM7ay8LpDdgZsa6L4h1WVRV0D2SrQL3MjMD
GRmxjZU+A8BaElUV9Bi2da4wAKyJxLJP0NxQAmFUlYjOAe8do6emxiegRKPruxCiB9MMRj5IAd2p
jcVSo2uFGMYwQglGPEYB9Lm5uMWUUIQ4DfwT3RhAn5iISzwJRVEgJaUv6h4gBOiTk/EJKpFomrUM
GkZ041aluiADdB28XuvEKFpMwwUZ4PVav3y0vz6AabogA3w+63Y4FiwDQs4GlCg0HdasiX3yAIYp
cQl4PFb9z87GrmGaoIckLYHc9bE1vvmYMmaAolipbxjWBOwgpQFpaZCTYy/1w5gG6CHJmmBeHszY
TP0w0jXB7GxI0u11/vkIU6IMSE2Fhx+y6tYpAwwTdLudNFEEAtbk7Ta++Zgm6Jr6inOKcWRg4Bym
eYtch54LgmWA4pxcfLl04aJoOvMlnVcbKC0ddeTZYNnOenlekXm65BkFIHjjpvjwoz2oWifFxfY0
TUOid4TCPLghXwneuCnaLpzni1N1bN78B5mZsZ0KG6aEBoBlQvhz6Y5a0XWtnqKi3qh1pOoBi/Fn
d7d4r/INMjI68flCET8pKt8rUQ9YjIKNGxWAxm+/E01nTiDEWSI57ndNBsxnamJSVFQeZGjoPMkp
Qdauvf+1+191SQbMZ1V6mgLQcbldNJ9t5NcrdeTkGAueGJuyNsFIeOKpJxWA458eFy0t33BruI38
/P9fY7ixBBZisH9AtHf8wtGjlTyw7i+8Xutp0FsH6t39n6EwuYH1yp4Xy5X2jn7lsS0VdHVZp0lC
ipeEHSY0Ni6u/dYlnn9uh/j8s0+WowV3afqhaXkbsALwH2K7cwytvf3BAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Pipe_simple_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAANtJREFUeJzt2tFtwlAQRNExb0IQwUoJ/FFE6IQUQPqXjYSyTihjPvae
Cq5Wu/bPkwAAAAAAQDfT+az/dETK5fIlX6/pjJyf+10+HtMZOWOo9wBsyR/tB3BKZ+TY3U9gSJ7n
dEaO37pvACfQfADDkk/8BdIZOQyAE5B8OKQzcsaQvNulM3ImSa5KZ+T87SWvazoj530v+fFIZ+R8
zs03oLbmG1DVfQNK8rqkM3Kqmp/AVpKXxifwywY0H0Btkhc+gumMnCo2QH4+0xk52yZN37db2/cB
AAAAAAA09QLqBj01adTh5wAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('rnd_sq_gr1','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAvZJREFUeJztmk1PE0EYx/99mW0ihZKUbRZoNSSlnCQppniiUS/4FfCG
XwKTkshHsN6QcoOe5SwpSOgJTnggouGEvF0grCZ0u9vx5MnOWLo72J2d3/WZ2TzPf5/nmZcMoFAo
FIrgEup04OX5BS0tlkT64hnZ7DgW3ix0FNs/B9V367RaXcfHjQ0kk0kMG4Z7DwXz9egIpmnifbmM
4kwRmUcPmXFyBajv1uncqzkYhoFkMglCiPfeCuLm5ganp6cYNgx83tlhxhnlfaRaXUc6ncbo6Kj3
HgpG13Xouo79/X1s17bosxfP24rAVOby/IIWnk6jUChA0zRxngrm6uoKg4kEKisV9PXH/4qXmQGl
xRIymQzi8bhYDwWj6zpqtRr29vba2rklkMvlEI1yh/iCsbExpo0bHSFECgEikQjTpgTgTSSE+Grp
Y8H7iVwBYrFYsAWIRqMgMpRAOMy0caPTNA2aBBkQ6TYDNE0LdgkQQny9C/xD16uApmlSCOAqA2Qo
AVf7ABkyoGsBYrGYFAKoJhj0rXDge4BaBYK+D1A9oFsBwuEwwpyTlF/gxcAVgF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isEVal())	SYS.messNote("OP:"+this.ownerSess().user()+":"+shifr, "''"+shifr+"''."+mess);
	else SYS.nodeAt(err).nodePrev().messSet("''"+shifr+"''."+mess, 2, "OP", this.ownerSess().user());
}

if(f_start) {
	c1Sv = c1;
	contextMenu = "";
	if(!com.isEVal() || !close.isEVal())
		contextMenu =	(digComs.isEVal()?tr("Start"):digComs.parse(0,";").parse(0,"-"))+":open\n"+
								(digComs.isEVal()?tr("Stop"):digComs.parse(1,";").parse(0,"-"))+":close\n";

	toFastCalc = toFastCalc_ = false;
}

toFastCalc = false;

if(this.attr("focus") ||
	(!shifr.isEVal() && shifr.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == shifr))
{
	c1 = (c1 == c1Sv) ? "#00ddff" : c1Sv;
	toFastCalc = true;
} else c1 = c1Sv;
fillColor = "gray";
if((st_open == true && st_close != true) || (st_open.isEVal() && st_close == false)) {
	fillColor = "green";
	if(!digStts.isEVal())	fillColor = digStts.parse(0,";").parse(1,"-");
}
if((st_close == true && st_open != true) || (st_close.isEVal() && st_open == false)) {
	fillColor = "red";
	if(!digStts.isEVal())	fillColor = digStts.parse(1,";").parse(1,"-");
}

//Events process
for(ev_rez = "", off = 0; (sval=event.parse(0,"\n",off)).length; ) {
	//SYS.messInfo("Kran","Event: "+sval);
	if(sval == "usr_open") {
		com = true; close = false;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("START");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_close") {
		com = false; close = true;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("STOP");
		setActMess(tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else ev_rez += sval+"\n";
}
event = ev_rez;

if(toFastCalc != toFastCalc_)	{ toFastCalc_ = toFastCalc; this.calcPer(toFastCalc?500:-3); }','','',-1,'name;dscr;active;geomW;geomH;contextMenu;evProc;fillColor;elLst;c1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eQ0tQEALDyeOjLykLumvhJd94VKhRdJNNp
IdcXw2BXAAAkqgjkRO1C5ooViFu69Omm1larjQxmy3iz2eyzirLyKquoV+8/4XzAXyTfoy/6+mc1
nslineDXTD6qzmiv8fISzFlRu91BR2oq4M23T3iHPTlW2MZmF/T4eHs9P6dKPn/YR29LUqYMXffc
KFh4ByOexJGqU04Tm3LFWjovlbIqAuuhcJ9JhWV+hin7Xlg8AKXROGXffIGdePM/OHG/juKEu532
L/dXw/r4JJRaHUUE+C+sL0MAoLZaEOztPJgScMdANALH48csesUSejRaeqMme9pKzqidTwfKT7O2
DrD2BJR03MXO6H+Bx3E9Nx++AxvCylCh6Fo4p8QAoHG4GwnCfkbcqIBWyHTMDlTNFawIcKNDRunL
Sxnz44JVkOuLYbJYF8YxOeWocbxuzwSBXhYY7AqM0fy/Be6SGFuGLrfHM+Z26wMgUUXMozdfgxUB
dkfHoFv/Mrr1AYz4t3uikBO1C94s1QVZwZmGRkq4cJj6jX4u44CyjtWUcL6QtcPSrMFhd9Cl5mZK
uphPV9rjyPqIO2HiMk0Q/f3+Joo/V8SokvO0wHoeXS7vpFNNUvA4N+HJHYN9bAyeXC7kuiDsXLkD
GWIxYpcKn5/8fq4oqm9YWI+6G2644YYbzxH+DWqCRVJSGbkrAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',0,'JavaLikeCalc.JavaScript
if (orient < 360) orient+=speed;
else if( orient >= 360 ) orient = 0;

','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;orient;elLst;c1;c2;',1579024297);
INSERT INTO wlb_mnEls VALUES('rnd_sq_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAACmRJREFUeJztW11sFNcV/mbuzGJsloUWcLExNtu1kVoXg5uSh9Ka4rqW
wk9BpQQCSKmSUCJ+kr6RKn3BUSH0qZEhSKVNnggBVNQktQWR+pP+pGnUK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Dl
y5fx/N696Hjllel9ZQYArl+7xnft3g3LspBIJHwFkQ3IFCWZIjlvjUndXsDu9Q0NDaF1XSs6Dh9G
RXzO9AMg6N3fvMMP/fgl5HI5JJNJe6IIL0rKlE6nMTg4iIb6epx8/SSW1tVOiZEH5vpKby8/fuIE
enp6HDOMmjRCQBnDwf0H0NLSgqol1aV/bzCIzp87z2/cuDEdU02J2tvb0fiVxpkxvUf0P0L/BVQo
xYz2BoVnAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('Zadvizhka','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
[encoded data, 5312 characters]
8RcBjF3spF98Gwd0reADMHKtB/EOflLwf3NIALiJw5XVAAAAAElFTkSuQmCC','/wlb_mnEls/wdg_El_Kran_Sh',1,'','','',1000,'name;active;geomW;geomH;geomXsc;geomYsc;evProc;lineWdth;lineClr;fillColor;elLst;c1;',1399317462);
INSERT INTO wlb_mnEls VALUES('Level','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAZFJREFUeJztmrFOwlAYRj8aTUzsC3jZkahPgEnFRHZJZMHghJMPgZG1
fQx5EEVSiIlMlQdwlaiLbHWyscWlw+2n6Xcmclu4Jycp4acFhCg1FVsfPLwZxlEUwXHSW3yuVmif
ttG76FUA4LjZjI0xqXNqtV0MrgfW3Arhst+PP97e4+z6LJzGgR8k6+fd7to5ReIwN/8LKABbgI0C
sAXYKABbgI0CsAXYKABbgE3pA2ywBR4mk2Qg2jEGvu8XOgXSAxw2GrgdjWijb+kvAQVgC7BRALYA
GwVgC7BRALYAG6u/BOfzOWbhNPW///NiYXPL3FgN4DVDAJuZ1RcEftXmtrmwPAtcAdjOrD0CuLO7
bQ70HcAW+DkOf1PkzVF6AI3DZBSALcBGAdgCbBSALcBGAdgCbBSALcCm9AHow5Bujmoa5KIAbAE2
CsAWYKMAbAE2CsAWYKMAbAE2pQ9geRh6ArCVWUs/H/C6XK49Q+C6LvYO9v/3vcHOWQf1+uzXY0ee
l7xunbRwPx6njlerJvsWISzxBa2rU9fguEArAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',0,'JavaLikeCalc.JavaScript
crd = 95;
if(!(var.isEVal() || max.isEVal() || min.isEVal()))
	crd = crd - 90*(max(min,min(max,var))-min)/(max-min);
p1y = p2y = crd;','','',-1,'name;dscr;geomW;geomH;fillColor;elLst;p1x;p1y;p2x;p2y;',1579024297);
INSERT INTO wlb_mnEls VALUES('Teploobm','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAACg5JREFUeJzlm9lyW8cRhr/ZsBGkBC7aTFuLt7jsSLZl5zmSi1w775Hk
ZfICeYikUpVKlSt0ZLkkJbIUS6QocxNBHCxnllyQhHCImSMAVEl29N+wCJye7vlPd09Pz0DYQR6y
LONNRKPRQGdZxvK5FRqNxuu255UiyzK2nv6IBmg2m6yuvv26bXqlePToB4BDArQxzM29WR6gjTn8
C2C0pjE391oNetUwWgNHBEgpqVYqr9WgVw0pJTBCgNLqtRr0qlEgQAhQRx+8KRDi8K8++hchSzxA
CPT585i3VtErKwTvcdvbDB4+wG1tvTyjKhUqV6+hFhfRS8vYvV3czg75/fv4Xvel6TnSBhx7gJQo
lSBAKWo3v0AtLRdE5cVLmIuXyB8+ZPDdtxDCqcyRrRa1m18ijrIzgD7bQp9tYS5eYvDdbdzmk1Pp
GIUohoBAxTxAScxnN1FLS8mBzOXLyGqFfG1tdmNaLSqffV6Y/ChkvU71xqfka//E//jjzHoKOsWI
B0ghoh4g332vdPLD586dR1+6RNjcnN4So9GffJKc/NBgpTAf/gLbbkOe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d
deg1m8nWvuj3hvMsJMEQAnbGIyYA8WwPbA6RJW5w9izm0Q/ki0tJw/TuzkT61c4ONnZ2KQS9pSVq
nQP6i/GEjHeI3d2hnuPd4kvJAQAyy/Ax46Si31rEjlyzKyAE2N+fTP/+s8PnI0Ta+QX6S8uESuLO
wSDHdzrD7faJvUDAncIDAMTWFiROlu3b76QFnSPs7DCR9oMOIssIsaM1Y8hL9IjtrcIcCx4QQsCf
IgcAsPkEVt+GKS9di8ePptItHj8ifPDhdLY5B+vrBT1jBLgpGx5jGAxg/TFcuTq5jLWERz9Mp/vp
5iHR0/zC5ekmPiveKhv3gFNcODqGePRfOHdu4nt/4c53hMGU9wq9O7yK99HHw+uupTr6fcK9O3Bi
fuMekOi7TwXXR9y5g7pxo/zyNeA3N3EbG7Pp2dhALa8gzl94sUm3bxEG40tskQDvT50Eh3i6if9m
DXP90+Qb8rs75Le+IZxCp1tbw9wAVUJCfvs27unT6HehsApQ3q2dFn5jA9/tYj78CDWyLgdrye/d
xT58cOrb5eDpf/01+to1zJWriJGNkt/fp/+vNcJ++p7SsfZhKfzSPOAIbnub/G9/faljRvXcu0v/
3vS3RgulcCB+IPH/jMBYEny5HvBTRyEJOucY5LPfuvw54viFazg8kelmL/s3OT9tHG+LhwR0Tnn/
/ueGAgHtdpv79++/VoNeNY5/MS/e9J/P/w9VHMGNMVAODQAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_StrelaHL_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAB0BJREFUeJztm39slHcdx1/Pc/f8urve9cq13UbLgK1lIgSiC5S1EONw
MWZEJtG5Ebe4LWuH2bJBIsaZIInGdRETFx2R4Y9CMieMDWgkOmch6pTpoptLmAmQhR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2/UYpKD3B
pPu3u1av5v77HuLoURg8XyBABYSASQ+y4uUJretMp9q2bTuVlfITOR3wvABoYYr0Y+lUKsWuX+3i
3LlyursVblYFJgSKMsoMm4YGsKyhQXX3HCYRF0UYBBR1hrN7125m3rCYd98NRjcIRSagZlatdued
X6avL0Q6XcydA4bHH/+asu1g/NdYSfDGX/+mUqnU9CUA4JXf/FaNDA1PXwKuISD4L6ouUUm3d/Jw
AAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('Compressor_1','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAACexJREFUeJztm2tMk1kax/8F2lKqUJBSqJFLxgAVB9FFi0LjijBV3Jjs
Rl02UUMIwQ+NgDduiTtgVC7JZgMkS2azjhvCBxUHhBAkUtRqQZoaGSyEmwFMCwoECnTaUih1Pwim
Nm3p5S0zzvr79p5znuec87znPec85zwv8JWv/F9D2qA6ItYeIiMjy0gk0lZLhXU6Xd3IyEjj6qMK
wLirG+dKvqdSqV6ZmZm5awknT56Er6+vRQGpVIru7m4AwNTU1MDdu3d/AiAF0GhRyAmINgANQCyX
y/0niUTyv3r16jYymewWFBTkkDKtVgulUomenh5VfX39rFqtbpLJZD8C+JmoBhNpgMPBwcGZaWlp
p1JSUkCn0wlU/ZH+/n6IxeLpysrKBgCXAPzirE4iDLCNx+PdS0pK2pOSkkLx9PQkQKVlDAYDdDod
SkpKNENDQ9V9fX2XndHnjAHc6HR6TkJCQmpBQcHeLVu2ONMOh+jt7UVGRka9wWAo12q1Ekd0OGyA
qKio0sLCwrzo6GhHVRBGbW2tqqysjA/ghb2y7vYKMJnMAywWq7aoqOhUdHS03fKugMPhUD09PY9M
Tk7unZubawOgs1XW3hFw4MqVKw1nz54NMJf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VkZGQQtm+3lcnJSVy/fl347Nmz4wCsvjlb95UvGhsbn8/OzlottLKy
gunpaYhEIoSEhCA3N3fDOw8AMplM8/Tp039jnc4DdoTJzc3Ntb19+zaWy+V+Y8lRam5uBpvNRnZ2
Nvbs2QMSaSP+x/iczs5OlJaWXlxYWPivLeXtCXXVjY2NNSoUim+ZTGY4k8mEacxgfHw8EhISNmR2
N2VychJdXV2a0tLSiwqFohrAB1vkHHlF/gD+nJeX94/Tp0//ag6TMWq1Gvn5+cLVYV9nj6wjwc4a
AK9WgxC/o9FoPgEBZkOHNwShUIiqqqpWkUj0JwAye+UdjvbW6/XjUqlUPDAwoAoPD+f6+fm5WQuj
JZrFxUXcuXNHd/Xq1VNv376txMcfrOzG2RZPTE9PP6qvr58bGxvz+fDhw7bt27c7qdI6SqUSzc3N
EAgENe3t7QJ8dHDUjuojcppms1gsXlhYWNmlS5e2ent7ewQGBjp1grOGWq3G/Pw8Ojs751taWrpX
HZsXsLC9tQdXrVOXATAEAkEuhUIhp6enO6RkdHQUbW1tkMvl3auHGU9hxqV1Blcv1BFkMtnTOCwl
Ozs7avWK2iwdHR3jq0fX0Ov1L1fP8OZgcpJDFBu/UwHOwuh+3gwdMDq3/8pXXMv/ADKvgJJxMrr9
AAAAAElFTkSuQmCC','/wlb_mnEls/wdg_Compressor',1,'','','',1000,'name;active;geomW;geomH;contextMenu;evProc;fillColor;elLst;c1;',1399317462);
INSERT INTO wlb_mnEls VALUES('Kran_3_pos','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAC2BJREFUeJztm2twFNeVx3/dM/2cR48eIyFhBAKzVij70wZvrZOst+w4
Vf6ywZtU7GzWQoI1Igl2lsW7XhvsJHbKoC0/SLJgZ1O1uEzixYlBKYORECTYziauOCEpQmzz0ANJ
ICyNBMxoXj09M3c/jDSGGPOYHqHUhn9V10g9Pf97zr/vvX3uObfhG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be8Bcl+VJyD9BN46INDg4MipbWVnwBP7U1
NRiGWXxZopDJ8RbfIVC8XjRVw9B1bMPAcRxyuRw14Rr6+vpZ9+g6Tp0cFnWz6y/YZqnOwzRVh4cG
BsXyf1qOrutUV1dj6Aa6UcjgqqpazOZMLaM93kKGR9U0NE1H13R0Q8f0mdTUhDnW08Ojjz3K+8On
yl5zKLsAJ4dOiGXLl6NpGlVVVeiaPrmE1YoruKm7PxX+yrKMV1FQVbWwwNG1wu80DcMwqK6upqe3
l4fXPkJkZLSsIpRVgIH+42Jpy1I0XaOioqLotKqqaOr5d79owDkJFEVR0FQVTftAiEL1yaC6qpqB
gQHWPLiGkVPvl02EslVzjx05Krr27MGygoVcPRJIUymrqdwd52yRk4o1veI2uXMOxAfnp/5GFMLv
bC5L89KlV3dz8jVcwzVcwzX8P8T/AQZ3pfhZeRVrAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',0,'JavaLikeCalc.JavaScript
c1=(focus && c1=="#d3d3d3") ? "#00ddff" : "#d3d3d3";
if(  out!=EVAL_REAL )
{
  crd=74.0-50.0*(out/100.0);
  p1y=p2y=crd;
}','','',1000,'name;dscr;active;geomW;geomH;contextMenu;evProc;lineWdth;lineClr;fillColor;elLst;p1x;p1y;p2x;p2y;c1;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_StrelaVT_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAByxJREFUeJztm2tsHGcVhp/dnfvu+paNHV+SkNqtQLZBlUor7IAqgpJQ
qZaDhNoklUrr0JRbJRLRBFqERCtUftgVqD/ATgBXNEINUptERQIRipBI4ogIB6OENu4PO64dX5rE
9nrttXfn48fZ8SYktPF1JJhX+jSzu5r53vOe95zv29UsBAgQwA+MX7uu/vmPHvXsd76pLl64oPzm
s+rY9+0n1IMPolpaUNu22erEseO+iBBa7QmPvv4b9cMXnuXeewdo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P0A0TZ4K1/T8eUT7j89zf5gIAa4h
j94WxuUxW+8J8kwGshmYyx1v+SwL7e2/XxL/fwPPA353nDe92AAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_angleBR_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAeBJREFUeJztmktuwjAQQF8+LT9V3XCArjhEOBCciX25Q2/AiaBqY9LF
EBUh1AWxPRN1nhQJKcKZeZpxsA04juM4juM4juM4jvPfKIYOsFjQLZcxQsnPatVQDx1kuYSmgWKw
yvxsN5vhAkCSn06hLGOMlo+qIo4AkOTHJqGuIwoASX42IgnRBcBFwgzKKvbI8UkiACT52cz+xFjH
nANuKQpYLGy3Q/2UUADYnxiTtcA1liUkbYFrrEqoclRAT1nCfG5LQpYWuMZaJWQXAL+/Eyy8IlUE
gCRvoR3UBIAkP5noVkLUxdAjFIVuFRQoC+gJAbou/3PPz0YEdB2cTnA+533uxIoAkOQ/P/NKeH0x
JAAk+ZyV0AZjAiBvJbStQQGQrxLMCgBJ/niELqEE0wJAkk/ZDsG6ALhUQqJ2+B6DAEg3MY6iAnpS
SDD5GvyLfmKMJcH8JHiP/hUZY+0wSgEgyceohNEKAEn+62tYJYSxzQG3dB0cDm+sm+ah7+92H+MW
ALBuGt73+4f3lYzsz+rhArQD0MYFaAegjQvQDkAbF6AdgDYuQDsAbVyAdgDaDF4NrlYN281Gztrr
q6u6/A/v8rmqb+7Xcj5fIKe0k2c5q2uDbFT0V2hl9za0d+4FWdIO4Qc7dJtHCjpkqwAAAABJRU5E
rkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_TroinikHT_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAeJJREFUeJztmlFuozAQhj9gkkYE1Je+562H2NwkPUB7sc1J2hsBUlTT
7IOblkRKdxcbTyvmkywsHmZ+/8zYSiAjkM2G43YLZenHuoR15ed1/Xm/LKGqzuerFeQ5OAdtC113
fm0bP2/e73UdNM3n9XCAIt/xe7/PxurPQw346ZgB2gK0MQO0BWhjBmgL0MYM0BagjRmgLUAbM0Bb
gDZmgLYAbWSz4RgS4O4ulpRxPL/sGbuG+/tfyHYbLiIb/XdEWM48hxD9T4+PSFnGE5QSET9CKAri
GQD+iaRAxIuPEUfWEQ2AiU04wkJAIiweTgZUcYINmcoEESgCy/4yXtQWGBLbhFhlfxazAKnruEGH
RDEhg+XSj9jIYsIKOBF0OmRxdvtrTNoCQ8aaMOXi4b0FUhgA/9+/U/T8JYWAVBOcAtf41z1h6id/
lidVBZz4mwmpFv+RK7UBcN2EFGV/mS9pCwy5NGGx8CMlIiCrVdqkQ06nQ577V+WpKQqQVD9gvkJL
QwaIczrJvwNvS5C21Zahx80SpOu0ZehxW8+8Alw/8wpwbu4V4EDaRluGHs7NvAV6B9LMuAVerQJm
boDrQRrbBLVl6OGcVQByOGjL0KPvIXvY7YK+DzAMwzAMwzAMwzAM48fxB/TcZYf6rTXxAAAAAElF
TkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_TroinikVL_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAgRJREFUeJztm0tugzAURS/mQSMC6qRzZllE2Uk2kK4p82YPnbc7AiRU
0nTgoHyqVGpsuA/VR0IgkOzL4RkSJ0RwpCxxqCogy+yyzIBlbreL4rQ/y4A8v9xeLABjgL4HmgZo
28t1U9vt+rivbYG6Pq27DojNGq+7XXRvfuMqYO4EAewAbIIAdgA2QQA7AJsggB2ATRDADsAmCGAH
YBMEsAOwkbLEwaWBpydfUThIVbk3Et09HcFHssxPQ3OV4E0AYKe35oYsPQoA5idBlrn/RuckwesQ
OGcuEqQoxmt8DhJGq4AB7U+H0QUAuiVMIgAA4niafv6K5CM8BW6h8Z4wWQUMaJMwuQBAl4RJh8A5
WiTIYsHrXMPTQbRcCRbS97zOjeEPBWkaTsdJYv8hwkbaltCpWAEamLwCRHR9Kpy0AkTsoonJKkDj
yQOANPXIPUT6yv6ccYdApPfKD0g94hBIU90nD4xYASJWgHb8CzjoHvPXSO35JpgIECsv+3O8VoAI
IDO58gNeKiBS/qj7Dek690aM0X+3v4XEZu3UwPvHDj5+YmchLi8bAPaFCV9hGPzz+aAgIAgIAtgB
2AQB7ABsggB2ADZBADsAmyCAHYCN87f41eoZL5sN4vg0BT7MDEly2o7l6vhxAiUC8JUCDynwWAD9
3r5OPyz7Hvg8rn8c2wPb7ZtT/m8H4mfcREYf9AAAAABJRU5ErkJggg==','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;geomXsc;geomYsc;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_angleTL_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAZFJREFUeJztmM2qgzAQRj91FhJ1173vUd+k71efMBEEqXfhDbXQu7jm
ZyYwB4rBxcxw+iUBKwQyjtinCTDm+HUG6PpjPQzv98YAff+5blugroFtA5wDluXz6eyxtr/vlgWw
9v1cV6CpH3jOc3V1/jpUQOmoAO4BuFEB3ANwowK4B+BGBXAPwI0K4B6AGxXAPQA3KoB7AG5oHLGH
FLjdYo3CA01TeJHq8ucIfsiYOIVKlRBNAHB83ioN6iIKAMqTQF0fv2hJEqJugTOlSKBhSFe8BAnJ
EuCRfjskFwDIlpBFAAA0TZ4+/4X6BLfAX0g8E7IlwCNNQnYBgCwJWbfAGSkSqG35mku4HUjKP8EF
bRv3CMAe9EkmDHKOr/kZLgm0LDyNv/F65e8pJgGe3EkQlQBPziSIS4BnzySBnM3T6Ao5kiByC5xJ
fSaQFboFzqRMgvgEeFJJKEYAkEYCWcGH4DdiSygqAZ6YEopLgCfW7UDrGqcQBzEkUFM/wqswcr/f
8Zxn7jEURVEURVEURVEUpSR+AEYBY37PALAFAAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obr_StrelaVT_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABCVJREFUeJztml9oU1ccx785N0nTJLdWq2IbNLGgLxlsdi8bRX0bA/ey
B1/mZLDBnjZYCzIdwz8r9UGFIUzcBrZ24B+26hCckZXqhv+m6Zib4NqubLGtf7C2jOaPJu3N2cOJ
S2+aJvfetPdH4Xzgck/O/Z17v/eTkxsSjgMVEgyCNzcDXq/YfF7A5xdtVc33e72A369vezwAY8D0
NJBMAqmUfp9MiHYi15dKAYlEfp9OAwp7CydOnnRYzc8qFbDYkQKoA1AjBVAHoEYKoA5AjRRAHYAa
KYA6ADVSAHUAaqQA6gDUSAHUAaiRAqgDUCMFUAegRgqgDkCNFEAdgBopgDoANVIAdQBqpADqANRI
AdQBqJECqANQIwVQB6BGCqAOQI0UQB2AmooE7Nu7j2/fDmzYkF/1udAwBlRVAcuXA01NgOLswY1r
17nV8zmtDhwcGORtbVuxcRPgdgOBADA+DjgcQDxu9ayl8fmAFSuA2logkxFbQ8MYzl/4xvI5LQu4
cqUHfvV3XV99vZCRzYq1vJxXPitcLqCuTgjOakCWixt/TiAARCKnEfv7Hx5qXGt6zbAlAWe6u3kk
8jZefKn48aoqoKZG7DMZsRg6mzV3DW+1kOl0irHpNDCVATJTs2s3b/4Xn+5+05IE0wImnozzj3e+
i7WNzwzV+3z5GymHooh3fNkyQNOEvKkpcfOlcDoBxm7j6rVeQ5lmYnqCDg0N4eGjc/B4jI9xOMRH
wePJL6F3ufQ1bjdQXS2W0SuKGGOGcBjoPH7I3CBYELDrk3fQ3Gz6OvkLsvyMeP58UBRrN11IONyP
ts/aTH0jGBaQeZbmnR1f81BoxHwym1iyBPjjThf+GhgwLMGwgNHRURzreB/BYNJaOhtwuYD164fw
Uct7hscYFnDg4B683GQpl+341dvo/vY7Q7PAkIBfrt/gY2M/w++vLJhdLF2awPkfjuFpMlVWQtkv
p8RknL/2ehCvvjIxP+lsQFUBzi+ipfXDsrVlZ8Dxrg4EAhNQlHnJZhseD3D/QS/6bkVLzoKSAkbu
DfPe3hMINMxvOLtwuWK4EOkuWVNSQEvrNqg1t+Y1lJ2sXAn0/XoIR744MucsmFPAT5cu8yfjN+H1
Lkw4u6ir03Dp8imMDo8UlVBUQDKe4J1dXyEUyhQ7vKhgDHj8+CqifTeLHy/WGY1GMTh4etE9+OYi
FALa21uLHpslYDh2j39+uBVr1ix0LHtZVf8Ae3bv4InJuO6jMEvA0S+PgvPf4HbbF84OVHUaZ78/
iFgspuvXCfjz7l3+Y8/hRf/gm4t164Cduz7Q9el+gO5v389fCAdQWws4mHiAMAYoM9pMKegvfM3E
WKVI/8xaxvIX5xD/+vy/5f760rSCvlxbK6zNivqsljumza7juZr+/kmsXt2ILW9scQDAf2iFUFwH
gii+AAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_StrelaVB_gr','iVBORw0KG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ZUYyNweioZnAQ
ykofpLHxSzz7zDOEcyILznfR399eefll3fyVR9myJcXq1WlqauC++6C8XEaI8TG4fBnevwyDgzAy
CsMj0NMTZunST3Ls6DGqa2sWjeei/yHy6YceUn19CbVyxXc43gH/+JtibBSmJrNFbmwchoahfwDO
d8Lbb1fwy4O/5dy5V9ViOg93IQIyiE/FdGdnJ4fb9rFu/QXWrJGaMDgIXV3w5pvQ22vw2e272b59
Bxs+vuGucLtrAmRw5fL7uvWnrcTiP2T9+iSjo3DxIlwb+gQPP/x59u7bd9c5eYJTJzv01q0b9LZt
ZbqxcYse6L86p7+1/m9w5jdnPpyO+/gvwT8BTVwu8EvOGvcAAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_angleTR_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAcZJREFUeJztmltugzAQRS/GpBFJ1CXwl0WUnaQLSDfWrKTdESBV2NCP
SZsSpS+wPbY0RxqBkPCMD7YRjwwLqSqMdQ2UJcWmBDZb2t/tLsfLEthup/vrNaAUYAzQtkDXTbdt
Q/vN+VjXAU1z2b69Abk64Pl0yubWr5YKSB0RwF0ANyKAuwBuRAB3AdyIAO4CuBEB3AVwIwK4C+BG
BHAXwI3mLmApL68nVBXGOefu9w/pCsgyeplS1/PbeDoe0xWgNcUS8jzRKaA1Fe+inbQEjEChAe2g
80CCArQGcocVJyXA1bCftJnEGpABqxWFa3QRu4DMzWr/HdFPAZ+dByKfAj7m/DV5rCPA95Wf5PGf
5n+E6vxnrjCp/kaIYX+dLxoBRUERkmgEKEWfykMTzcOQYnotk4FZwDBQsOVfMQroewpO7rgEGANY
y5F5yv2OQYAxFDFgbGABfR9P5wGqJZgAa4AugmH/lTACxvOVZ17wbuFdwDjGNeevsb4FxHCr+4ne
pwBr6Y/OmPE2AmK5z/+Gl9ugsYBpXbfqB+eLYCpX/gOnAmJf8G7hTMAw0K/rqWEtPRIv4vFwmPVt
XhAEQRAEQRAEQRAENt4BJU2DcDzjFicAAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_TroinikHB_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAAAfdJREFUeJztmk1OwzAQhV/iSagKFUeAVQ+R3oQLtGdiT+/AHqQeqA1Q
/MPCjQSI3yT2W2Q+yVLVqPLz68xYHgdQFEVRFEVRFEVRFGVqFFdXCGwRLJbLBrJasWXw2KzXkPmc
LYOHMZi2ASKAnE/egAu2DB4iU08BA8hiwZbBQ6qpR4CmwMQNMALIhe4CbBk81ABNAUBmM7YMHsYA
UpZsGTwKAGItT0BZxuEcEAhtGV8DcjjknxgAqgro0i8E4OkJ8D6vhrMakLbNOykQi09VffzOe+D5
Oa8JlwtCBIjE4vMV3ueNBOsyR4BIHD+RMxKszRgBf1l8R65IiAbs006C4uew/w7vgbYFQkITrE2d
AsX//vnPhMTp4Cwg+4QpUNf9F9/hPdAmSofXlBEgEg0Yg1SF0SUxIPTL+d9IYYJ1gOxHLoKVxE5L
CrrCOJYJoxdBkdhnS0m3RY5xdrB2pAgoem51fQlhnEiwFpCXl+GCynJ4tf8v3gPH47BIcA4QU94M
EvLwuAXrij0EYLe7xqppev3+9vYecrfdFkNEsF+wWDUNhqxhwv2giBrAFsBGDWALYKMGsAWwUQPY
AtioAWwBbNQAtgA2g0/xy2WDzXod79rl3TCn9/BOn418en5qoBSIt7Rndbyrsy42KrrhbOzeOvvF
MxePtEN4AwHvv+EGGKr8AAAAAElFTkSuQmCC','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obr_StrelaVB_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABGZJREFUeJztml1MW1UAx3+XfkFHQQkYSXQUA2wuMTJkm8okIrC4sGQf
ZZENcRM/GANj/IpLTFxiYpw+LMYQE2d80hf1wfio843t1WUjbmZJMxKLoxQKqwza3t7Wh0NHaVk/
LnCPLveXnNyPc87t//zuuW3vzVVI4b13hxNXxkaoqACrFex2sNnA4QC7TWzbHUvLpeJI2bbZMuvS
96W2LSoCRYFEAjQNolGIREBVxXo0KtYjkeXtaCStLppSl1KSfZL9VVV8xtRUBe+8/S1d+7oUgKJU
Af39J5meLiGR4J4kFgNnyWN3Bg9pAh7dtk3Z0/kmCwvGhzOC69fhzCcjK/YVpTcaPDFIIPCgYaGM
IhyG3S3HcbvdK/ZnCNjsrlE62o8yM2NUNGOYnS3H4+mjtMylpO7PEABw6v2PqKrqIRYzJtxGc+MG
vDH8De0d7Up63aoCNrlKlZePDTA+bt/4dBuMpkFV5W52NO9atX5VAQDPPtemVFXu+t9/Ic7MWGhr
O8JDmx/OOPuQRQBA79G3mJqybEwyA0gkYHzcxdDw0KqDhxwCDnoOKfu6zvL3xPqHMwLfX26+/up8
1jZZBQAcP9bPxEQFmrZuuQwhHIbq6naad+6469mHPASUlrmUvr6PmZxcv3BGcPEifPbp2ZztcgoA
ONzdzT/zTWsOZRSTk9DzwmlKSkpyts1LQOUDVcqB/a/i9a45myGEQrXsff4ANoc96/SHPAUA9L34
CvX1p/7z/xAvXIDTH/5EY9P2nIOHAgTYix1Kt6cHn69af7oNJhSCLQ0e3DW1effJWwDA49sbldra
vQQCBWfLynrdfvv9ZXR29FJ2X3leZx8KFADQe2QIr7dYV+hEQtyTLyyIBxTJY8Tj4mdL0/TLUFUI
Brdw0HMo78GDDgFNzU8oL/V9x5/XigsKNz8vpmgoJCTE4yvbaJpoEwyKparmn0lV4drVRr74/If8
Oy1RsAAAT3e3Mj1dTzicPVQkAoEA+P0wNye282F+HqYD4PMtC8tGMGhh69bDuB+pLejsA1gL7ZDk
9dfO8P2PXbS0ZNb5/bC4KJ4rOp2i2Au8sYxp4vnf3CxocXEsmw2KHZltR0fvZ3T0g4IHDzpnAEBr
aysxdT8gpvPcHIyNwaXfYcInBKwXi4tCqtcLf1yFW7fELAG4fBlODub+x3c3dM+A0jKX8tuv5xMj
X/5MXZ0Q4HTCJidYbbrzZCX5PXHzprgsXC64fXsnTz35jO5j6hYA0LGnU6mpIZGc5kYSDouZYCmq
03XtJ9F9CdwrmAJkB5CNKUB2ANmYAmQHkI0pQHYA2ZgCZAeQjSlAdgDZmAJkB5CNKUB2ANmYAmQH
kI0pQHYA2ZgCZAeQjSlAdgDZmAJkB5CNKUB2ANmYAmQHkI0pQHYA2ZgCZAeQjSlAdgDZmAJkB5DN
mt4TBGhoeJoTAwNYLOJ11jvFIl6YTK5brGn1VrBYQAHidnDYodwlXpGNxZaLFgN1aZlRp8G5c7+s
Kf+/Dzppg+o1cSIAAAAASUVORK5CYII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
INSERT INTO wlb_mnEls VALUES('El_Obr_StrelaHR_gr','iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAAOxAAADsQBlSsOGwAABFFJREFUeJztm19sU1Ucxz+nvf0HdFPCjEv8s5qJPAmyAf7BqesUCZih
G5GBheHUjUkyTSDO+GAwMfjCNPBAxJj44JMvJgR4WUJiGp5MnNNlW0hIKm6yP7Qr3b/+u70+XEvm
0LDRc7uddp/kvjXf9Pe553fOuae3sMIKxc3xY0eNgf5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iWBT8MxeNw5Qrse/NTdr66hyc3
qv2KbJa7jgDDgKE/Kygv9xP8qQuPx4PD5SyI4gFEa+t/7wN0HcJhO6GQl2++7qZ665aCKXoutkTC
fHCZew0OQnRiO3X+0/T0REWhFg/ztsLxOExMlPJBx7dsqd7GQ488XLCFZ9F03XwouHoVtj/XTPuR
AP46f8EXfpva2rXG7l0vGH2//W5MxSaL7n+DXLxwsfiKXmGF2/wNfJ+S+T2G+UMAAAAASUVORK5C
YII=','/wlb_originals/wdg_ElFigure',1,'','','',-1,'name;dscr;geomW;geomH;lineWdth;lineClr;bordClr;fillColor;fillImg;elLst;',1579024297);
