if(!nexacro._bInitCssObjects){nexacro.Style_value=function(_a){this.value="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";if(_a){if(typeof (_a)=="string"){var _b=_a.trim();if(_b){this._parseInfo(_b);var _c=this._getValueStr();this._is_empty=(_c=="");this._value=_c;}}else{this.value=_a;var _c=_a+"";this._is_empty=(_c=="");this._value=_c;}}else if(_a===false||_a===0){this.value=_a;var _c=_a+"";this._is_empty=(_c=="");this._value=_c;}};var _pStyleValue=nexacro._createPrototype(nexacro.Object,nexacro.Style_value);nexacro.Style_value.prototype=_pStyleValue;_pStyleValue._type_name="Value";_pStyleValue.valueOf=function(){return this.value;};_pStyleValue.toString=function(){return this._value+"";};_pStyleValue.clone=function(){var _a=new nexacro.Style_value();_a.value=this.value;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleValue.isEmpty=function(){return (this._bindtype=0&&this._value!="");};_pStyleValue._getValueStr=function(){switch(this._bindtype){case 0:return this.value+"";case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleValue._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.value="";}else{this._bindtype=0;this._bindexpr="";this.value=_a;}};_pStyleValue._parseEnumInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.value="";}else{this._bindtype=0;this._bindexpr="";var _c=enumvals.length;for(var _d=0;_d<_c;_d++ ){if(v==enumvals[_d]){this.value=v;return;}}this.value="";}};_pStyleValue._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this.value="";return true;}return false;};_pStyleValue._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleValue._setValue=function(_a){if(_a){if((typeof _a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}else{if(_a!=this._value){this._bindtype=0;this._bindexpr="";this.value=_a;return this._updateValue();}return false;}}return this._empty();};_pStyleValue._setEnumValue=function(_a,_b){if(_a){if((typeof _a)=="string"){var _c=_a.trim();if(_c!=this._value){if(_c){this._parseEnumInfo(_c,_b);return this._updateValue();}else{return this._empty();}}return false;}else{if(_a!=this._value){this._bindtype=0;this._bindexpr="";var _d=_b.length;for(var _e=0;_e<_d;_e++ ){if(_a==_b[_e]){this.value=_a;return this._updateValue();}}return this._empty();}return false;}}return this._empty();};delete _pStyleValue;nexacro.getStyleValueFloat=function(_a,_b){if(!_a||_a.isEmpty()){return _b;}var _c=(_a.value-0);return isNaN(_c)?_b:_c;};nexacro.getStyleValueInt=function(_a,_b){if(!_a||_a.isEmpty()){return _b;}var _c=(_a.value|0);return isNaN(_c)?_b:_c;};nexacro.getStyleValueText=function(_a,_b){if(!_a||_a.isEmpty()){return _b;}return _a.value;};nexacro.getStyleValueText2=function(_a,_b,_c){if(!_a||_a.isEmpty()||_a._value==_b){return _c;}return _a.value;};nexacro.getStyleValueBoolean=function(_a,_b){if(!_a||_a.isEmpty()){return _b;}return (!!_a.value);};nexacro._createValueAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if ((v != null && v != undefined) || v === false) {\n"+" var styleobj = nexacro._getCachedValueObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro._createEnumValueAttributeEvalStr=function(_a,_b,_c){var _d="on_update_style_"+_b;var _e="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = new nexacro.Style_value();\n"+" styleobj._setEnumValue(v, $ENUM$);\n"+" if (!oldobj || oldobj._value != styleobj._value) {\n"+" if (styleobj._bindtype != 0) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" else {\n"+" styleobj = nexacro._registerCachedValueObj(styleobj);\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" }\n"+" else if (styleobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _e.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_d).replace(/\$ENUM\$/g,_c);};nexacro.Style_color=function(_a){this.value="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._syscolor="";this._sysalpha=255;if(_a){var _b=_a.trim();if(_b){this._parseInfo(_b);var _c=this._getValueStr();this._is_empty=(_c=="");this.value=_b;this._value=_c;}}};var _pStyleColor=nexacro._createPrototype(nexacro.Object,nexacro.Style_color);nexacro.Style_color.prototype=_pStyleColor;_pStyleColor._type_name="Color";_pStyleColor.valueOf=function(){return this.value;};_pStyleColor.toString=function(){return this.value;};_pStyleColor.clone=function(){var _a=new nexacro.Style_color();_a.value=this.value;_a._is_empty=this._is_empty;_a._value=this._value;_a._syscolor=this._syscolor;_a._sysalpha=this._sysalpha;return _a;};_pStyleColor._getValueStr=function(_a){switch(this._bindtype){case 0:return this._value;case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleColor._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.value="";}else{this._bindtype=0;this._bindexpr="";this.value=_a;this._syscolor=nexacro._getWebColorFromXreColor(_a);this._sysalpha=nexacro._getXreColorAlpha(_a);var _c=_a+"";this._is_empty=(_c=="");this._value=_c;}};_pStyleColor._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this.value="";this._syscolor="";this._sysalpha=255;return true;}return false;};_pStyleColor._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");if(this._bindtype!=0){this._syscolor="";this._sysalpha=255;}else{this._syscolor=nexacro._getWebColorFromXreColor(this.value);this._sysalpha=nexacro._getXreColorAlpha(this.value);}this._value=_a;return true;}return false;};_pStyleColor._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};nexacro._createColorAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedColorObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_align=function(_a,_b){this.halign="";this.valign="";this._halign="";this._valign="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";if(_b!=null){this._bindtype=0;this.valign=_a;this.halign=_b;var _c;if(this.halign&&this.valign){_c=this.halign+" "+this.valign;}else{_c=this.halign+this.valign;}this._is_empty=(_c=="");this._value=_c;}else if(_a&&(typeof (_a)=="string")){var _d=_a.trim();if(_d){this._parseInfo(_d);var _c=this._getValueStr();this._is_empty=(_c=="");this._value=_c;}}};var _pStyleAlign=nexacro._createPrototype(nexacro.Object,nexacro.Style_align);nexacro.Style_align.prototype=_pStyleAlign;_pStyleAlign._type_name="Align";_pStyleAlign.valueOf=function(){return this._value;};_pStyleAlign.toString=function(){return this._value;};_pStyleAlign.clone=function(){var _a=new nexacro.Style_align();_a.halign=this.halign;_a.valign=this.valign;_a._halign=this._halign;_a._valign=this._valign;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleAlign._getValueStr=function(){switch(this._bindtype){case 0:if(this.halign&&this.valign){return this.halign+" "+this.valign;}else{return this.halign+this.valign;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleAlign._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.halign="";this.valign="";this._halign="";this._valign="";}else{this._bindtype=0;var _c=_a.split(/\s+/);this.halign="";this.valign="";this._halign="";this._valign="";var _d=0;switch(_c[0]){case "left":this.halign="left";this._halign="left";_d=1;break;case "center":this.halign="center";this._halign="center";_d=1;break;case "right":this.halign="right";this._halign="right";_d=1;break;case "lefttext":this.halign="lefttext";this._halign="left";_d=1;break;case "righttext":this.halign="righttext";this._halign="right";_d=1;break;case "top":this.valign="top";this._valign="top";_d=2;break;case "middle":this.valign="middle";this._valign="middle";_d=2;break;case "bottom":this.valign="bottom";this._valign="bottom";_d=2;break;case "toptext":this.valign="toptext";this._valign="top";_d=2;break;case "bottomtext":this.valign="bottomtext";this._valign="bottom";_d=2;break;}if(_c.length>1){if(_d==1){switch(_c[1]){case "top":this.valign="top";this._valign="top";break;case "middle":this.valign="middle";this._valign="middle";break;case "bottom":this.valign="bottom";this._valign="bottom";break;case "toptext":this.valign="toptext";this._valign="top";break;case "bottomtext":this.valign="bottomtext";this._valign="bottom";break;}}else if(_d==2){switch(_c[1]){case "left":this.halign="left";this._halign="left";break;case "center":this.halign="center";this._halign="center";break;case "right":this.halign="right";this._halign="right";break;case "lefttext":this.halign="lefttext";this._halign="left";break;case "righttext":this.halign="righttext";this._halign="right";break;}}else{switch(_c[1]){case "left":this.halign="left";this._halign="left";break;case "center":this.halign="center";this._halign="center";break;case "right":this.halign="right";this._halign="right";break;case "lefttext":this.halign="lefttext";this._halign="left";break;case "righttext":this.halign="righttext";this._halign="right";break;case "top":this.valign="top";this._valign="top";break;case "middle":this.valign="middle";this._valign="middle";break;case "bottom":this.valign="bottom";this._valign="bottom";break;case "toptext":this.valign="toptext";this._valign="top";break;case "bottomtext":this.valign="bottomtext";this._valign="bottom";break;}}}}};_pStyleAlign._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this.valign="";this.halign="";this._valign="";this._halign="";return true;}return false;};_pStyleAlign._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleAlign._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleAlign.set_halign=function(_a){if(_a!=this.halign){this._bindtype=0;this.halign="";this._halign="";switch(_a){case "left":this.halign="left";this._halign="left";break;case "center":this.halign="center";this._halign="center";break;case "right":this.halign="right";this._halign="right";break;case "lefttext":this.halign="lefttext";this._halign="left";break;case "righttext":this.halign="righttext";this._halign="right";break;default:this.halign="left";this._halign="left";break;}return this._updateValue();}};_pStyleAlign.set_valign=function(_a){if(_a!=this.valign){this._bindtype=0;this.valign="";this._valign="";switch(_a){case "top":this.valign="top";this._valign="top";break;case "middle":this.valign="middle";this._valign="middle";break;case "bottom":this.valign="bottom";this._valign="bottom";break;case "toptext":this.valign="toptext";this._valign="toptext";break;case "bottomtext":this.valign="bottomtext";this._valign="bottomtext";break;default:this.valign="top";this._valign="top";break;}return this._updateValue();}};_pStyleAlign._createRtlValue=function(){if(!this._rtlvalue){var _a;if(this.halign=="left"){_a="right "+this.valign;}else if(this.halign=="right"){_a="left "+this.valign;}this._rtlvalue=_a;}};_pStyleAlign._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedAlignObj(this._rtlvalue);}else{return this;}};nexacro._createAlignAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedAlignObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_halign = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_align());\n"+" newobj.set_halign(v);\n"+" newobj = nexacro._registerCachedAlignObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_valign = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_align());\n"+" newobj.set_valign(v);\n"+" newobj = nexacro._registerCachedAlignObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_background=function(_a,_b,_c,_d,_e,_f,_g){this.color="";this.image="";this.repeat="";this.imageedge="";this.imageedge_x=0;this.imageedge_y=0;this.position="";this.position_x=0;this.position_y=0;this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._syscolor="";this._sysopacity=100;this._sysopacityfilter="";if(_g!=null){this._is_empty=false;this._bindtype=0;if(_a=="transparent"){this.color="";}else{this.color=_a;}this.image=_b;if(_b){this.image=_b;}this.repeat=_c;this.imageedge_x=(_d|0);this.imageedge_y=(_e|0);if(this.imageedge_x||this.imageedge_y){this.imageedge=this.imageedge_x+","+this.imageedge_y;}this.__load_position1(_f);this.__load_position2(_g);this._updateValue();}else if(_a&&(typeof (_a)=="string")){var _h=_a.trim();if(_h){this._parseInfo(_h);this._updateValue();}}};var _pStyleBackground=nexacro._createPrototype(nexacro.Object,nexacro.Style_background);nexacro.Style_background.prototype=_pStyleBackground;_pStyleBackground._type_name="Background";_pStyleBackground.valueOf=function(){return this._value;};_pStyleBackground.toString=function(){return this._value;};_pStyleBackground.clone=function(){var _a=new nexacro.Style_background();_a.color=this.color;_a.image=this.image;_a.repeat=this.repeat;_a.imageedge=this.imageedge;_a.imageedge_x=this.imageedge_x;_a.imageedge_y=this.imageedge_y;_a.position=this.position;_a.position_x=this.position_x;_a.position_y=this.position_y;_a.clientonly=this.clientonly;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleBackground.isEdgeType=function(){return (this.image&&(this.imageedge_x>0||this.imageedge_y>0));};_pStyleBackground._getValueStr=function(){switch(this._bindtype){case 0:{var _a;if(this.color){_a=this.color;}else{_a="transparent";}if(this.image){_a+=" URL('"+this.image+"')";}if(this.repeat){_a+=' '+this.repeat;}if(this.imageedge){_a+=' '+this.imageedge;}if(this.position){_a+=' '+this.position;}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleBackground.__load_color=function(_a){_a=_a.replace(/^'/,"").replace(/'$/,"");if(_a.substring(1)=="gradation"){this.color="@gradation";return true;}if(_a=="transparent"){this.color="transparent";return true;}if(nexacro._xreNamedColorList){if(_a in nexacro._xreNamedColorList){this.color=_a;return true;}}if(_a.charAt(0)=="#"&&(_a.length==7||_a.length==9)){this.color=_a;return true;}return false;};_pStyleBackground.__load_repeat=function(_a){if(_a=="repeat"||_a=="repeat-x"||_a=="repeat-y"||_a=="no-repeat"||_a=="stretch"||_a=="quad"){this.repeat=_a;return true;}else{this.repeat="";return false;}};_pStyleBackground.__load_imageedge=function(_a){if(_a.indexOf(",")>=0){var _b=_a.split(',');this.imageedge_x=(_b[0]|0);this.imageedge_y=(_b[1]|0);if(this.imageedge_x<0){this.imageedge_x=0;}if(this.imageedge_y<0){this.imageedge_y=0;}this.imageedge=this.imageedge_x+","+this.imageedge_y;return true;}return false;};_pStyleBackground.__load_position1=function(_a){if(_a=="left"){this.position_x=0;this.position="left";return true;}else if(_a=="center"){this.position_x=50;this.position="center";return true;}else if(_a=="right"){this.position_x=100;this.position="right";return true;}else{var _b=parseInt(_a)|0;if(isFinite(_b)){this.position_x=_b;if(_b==0){this.position="left";}else if(_b==50){this.position="center";}else if(_b==100){this.position="right";}else{this.position=_b+"%";}return true;}return false;}};_pStyleBackground.__load_position2=function(_a){if(_a=="top"){this.position_y=0;this.position+=" top";return true;}else if(_a=="middle"){this.position_y=50;this.position+=" middle";return true;}else if(_a=="bottom"){this.position_y=100;this.position+=" bottom";return true;}else{var _b=parseInt(_a)|0;if(isFinite(_b)){this.position_y=_b;if(_b==0){this.position+=" top";}else if(_b==50){this.position+=" middle";}else if(_b==100){this.position+=" bottom";}else{this.position+=" "+_b+"%";}return true;}return false;}};_pStyleBackground._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.color="";this.image="";this.repeat="";this.imageedge="";this.imageedge_x=0;this.imageedge_y=0;this.position="";this.position_x=0;this.position_y=0;this._syscolor="";this._sysopacity=100;this._sysopacityfilter="";}else{var _c=true;var _d=true;var _e=true;var _f=true;var _g=true;var _h=true;var _i=true;var _j;var _k=_a.split(/\s+/);var _l=_k.length;for(var _m=0;_m<_l;_m++ ){_j=_k[_m];if(_j){if(_c&&this.__load_color(_j)){_c=false;continue;}else if(_d&&_j.length>=5&&_j.substring(0,3).toLowerCase()=="url"){var _n;var _o=_j.charAt(4);if(_o=='\''||_o=='\"'){_n=_j.substring(5,_j.length-2);}else{_n=_j.substring(4,_j.length-1);}this.image=_n;_d=false;continue;}else if(_e&&this.__load_repeat(_j)){_e=false;continue;}else if(_g&&this.__load_imageedge(_j)){_g=false;continue;}else if(_h&&this.__load_position1(_j)){_h=false;continue;}else if(_i&&this.__load_position2(_j)){_i=false;continue;}}}}};_pStyleBackground._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this.color="";this.image="";this.repeat="";this.imageedge_x=0;this.imageedge_y=0;this.position_x=0;this.position_y=0;this.clientonly=true;this._image_url="";this._syscolor="";this._sysopacity=100;this._sysopacityfilter="";return true;}return false;};_pStyleBackground._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){if(this.color&&this.color!="@gradation"){if(this.color=="transparent"){this._syscolor="";this._sysopacity=0;}else{this._syscolor=nexacro._getWebColorFromXreColor(this.color);this._sysopacity=nexacro._getXreColorOpacity(this.color);}if(this._sysopacity!=100){this._sysopacityfilter=nexacro._getOpacityFilterFromXreColor(this.color);}else{this._sysopacityfilter="";}}else{this._syscolor="";this._sysopacity=100;this._sysopacityfilter="";}this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleBackground._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleBackground.set_color=function(_a){_a=_a.trim();if(_a!=this.color){this._bindtype=0;this._bindexpr="";this.color=_a;return this._updateValue();}return false;};_pStyleBackground.set_image=function(_a){var _b=_a.toString().trim();if(_b.length>=5&&_b.substring(0,3).toLowerCase()=="url"){var _c=_b.charAt(4);if(_c=='\''||_c=='\"'){_b=_b.substring(5,_a.length-2);}else{_b=_b.substring(4,_b.length-1);}}if(_b!=this.image){this._bindtype=0;this._bindexpr="";this.image=_b;return this._updateValue();}return false;};_pStyleBackground.set_repeat=function(_a){if(_a!="no-repeat"&&_a!="repeat"&&_a!="repeat-x"&&_a!="repeat-y"&&_a!="stretch"&&_a!="quad"){_a="";}if(_a!=this.repeat){this._bindtype=0;this._bindexpr="";this.repeat=_a;return this._updateValue();}return false;};_pStyleBackground.set_imageedge=function(_a){var _b=_a.toString().trim();var _c=_b.split(',');var _d=0;var _e=0;switch(_c.length){case 0:break;case 1:_d=_e=((_c[0].trim())|0);break;default:_d=((_c[0].trim())|0);_e=((_c[1].trim())|0);break;}if(_d<0){_d=0;}if(_e<0){_e=0;}_b=_d+","+_e;if(_b!=this.imageedge){this._bindtype=0;this._bindexpr="";this.imageedge=_b;this.imageedge_x=_d;this.imageedge_y=_e;return this._updateValue();}return false;};_pStyleBackground.set_clientonly=nexacro._emptyFn;_pStyleBackground.set_position=function(_a){var _b=_a.trim().split(/\s+/);var _c=_b.length;if(_c==0){if(this.position!=""){this._is_empty=false;this._bindtype=0;this._bindexpr="";this.position="";this.position_x=0;this.position_y=0;return this._updateValue();}return false;}else if(_c==2){var _d=this.position;this.__load_position1(_b[0]);this.__load_position2(_b[1]);if(_d!=this.position){this._is_empty=false;this._bindtype=0;this._bindexpr="";return this._updateValue();}return false;}return false;};delete _pStyleBackground;nexacro._createBackgroundAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedBackgroundObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_image = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_image(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_repeat = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_repeat(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_position = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_position(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_imageedge = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_imageedge(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_clientonly = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_background());\n"+" newobj.set_clientonly(v);\n"+" newobj = nexacro._registerCachedBackgroundObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_line=function(_a,_b,_c,_d){this.width="";this.style="";this.color="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._width=0;this._syscolor="";this._sysalpha=255;if(_c!=null){this._is_empty=false;this.width=_a;this._width=(parseInt(_a)|0);this.style=_b;this.color=(_c&&_c!="transparent")?_c:"";this._syscolor=(this.color)?nexacro._getWebColorFromXreColor(this.color):"";this._sysalpha=(this.color)?nexacro._getXreColorAlpha(this.color):"";}else if(_a&&(typeof (_a)=="string")){if(_a!="none"){var _e=_a.trim();if(_e){this._parseInfo(_e);var _f=this._getValueStr();this._is_empty=(_f=="");this._syscolor=(this.color)?nexacro._getWebColorFromXreColor(this.color):"";this._sysalpha=(this.color)?nexacro._getXreColorAlpha(this.color):"";this._value=_f;}}}};var _pStyleLine=nexacro._createPrototype(nexacro.Object,nexacro.Style_line);nexacro.Style_line.prototype=_pStyleLine;_pStyleLine._type_name="Line";_pStyleLine.valueOf=function(){return this._value;};_pStyleLine.toString=function(){return this._value;};_pStyleLine.clone=function(){var _a=new nexacro.Style_line();_a.width=this.width;_a.style=this.style;_a.color=this.color;_a._width=this._width;_a._syscolor=this._syscolor;_a._sysalpha=this._sysalpha;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleLine._getValueStr=function(){switch(this._bindtype){case 0:return this._width+"px "+((this.style)?this.style:"none")+" "+((this.color)?this.color:"transparent");case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleLine._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this.width="";this.style="";this.color="";this._width=0;this._syscolor="";this._sysalpha=255;}else{var _c=_a.trim().split(/\s+/);if(_c.length<3){return;}this.width=_c[0];this._width=(parseInt(_c[0])|0);switch(_c[1]){case "solid":case "double":case "dotted":case "dashed":this.style=_c[1];break;default:this.style="";break;}this.color=(_c[2]&&_c[2]!="transparent")?_c[2]:"";}};_pStyleLine._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this.width="";this._width=0;this.style="";this.color="";this._syscolor="";this._sysalpha=255;return true;}return false;};_pStyleLine._copyInfo=function(_a){this._is_empty=_a._is_empty;this._value=from_value;this._bindtype=_a.binetype;this._bindexpr=_a.bineexpr;this.width=_a.width;this.style=_a.style;this.color=_a.color;this._width=_a._width;this._syscolor=_a._syscolor;this._sysalpha=_a._sysalpha;};_pStyleLine._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){if(this.color){this._syscolor=nexacro._getWebColorFromXreColor(this.color);this._sysalpha=nexacro._getXreColorAlpha(this.value);}else{this._syscolor="";this._sysalpha=255;}this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleLine._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleLine.set_width=function(_a){if(_a!=this.width){this._is_empty=false;this.width=_a;this._width=(parseInt(_a)|0);return this._updateValue();}return false;};_pStyleLine.set_style=function(_a){var _b="";switch(_a){case "solid":case "double":case "dotted":case "dashed":_b=_a;break;}if(_b!=this.style){this._bindtype=0;this._bindexpr="";this.style=_b;return this._updateValue();}return false;};_pStyleLine.set_color=function(_a){if(_a!=this.color){this._bindtype=0;this._bindexpr="";this.color=(_a&&_a!="transparent")?_a:"";return this._updateValue();}return false;};_pStyleLine._isValid=function(){return (!this._is_empty&&this._width&&this.style&&this.color);};delete _pStyleLine;nexacro._createLineAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedLineObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_line());\n"+" newobj.set_width(v);\n"+" newobj = nexacro._registerCachedLineObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_line());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedLineObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_line());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedLineObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_border=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,_p){this.top="";this.top_width="";this.top_style="";this.top_color="";this.top_color2="";this.right="";this.right_width="";this.right_style="";this.right_color="";this.right_color2="";this.bottom="";this.bottom_width="";this.bottom_style="";this.bottom_color="";this.bottom_color2="";this.left="";this.left_width="";this.left_style="";this.left_color="";this.left_color2="";this.width="";this.color="";this.color2="";this.style="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._linecnt=1;this._left_width=0;this._top_width=0;this._right_width=0;this._bottom_width=0;this._left_syscolor="";this._top_syscolor="";this._right_syscolor="";this._bottom_syscolor="";this._systop="";this._sysright="";this._sysbottom="";this._sysleft="";this.top=this.left=this.right=this.bottom="";if((arguments.length==1)&&((typeof (_a)=="string"))){var _q=_a.trim();if(_q){this._parseInfo(_q);this._updateValue();}}else{var _r=(_e==null)?4:((_i==null)?8:((_m==null)?12:16));if(_r==4||_r==8||_r==12||_r==16){this._is_empty=false;switch(_r){case 16:this.left=_m+" "+_n+" "+_o;this._left_width=(parseInt(_m)|0);this.left_width=this._left_width?(this._left_width+"px"):"";this.left_style=(_n&&_n!="none")?_n:"";this.left_color=(_o&&_o!="transparent")?_o:"";this._left_syscolor=(this.left_color)?nexacro._getWebColorFromXreColor(this.left_color):"";this._sysleft=(this._left_width)?(this._left_width+"px "+((this._left_syscolor)?(this.left_style+" "+this._left_syscolor):"solid transparent")):"";case 12:this.bottom=_i+" "+_j+" "+_k;this.bottom_width=_i;this._bottom_width=(parseInt(_i)|0);this.bottom_style=(_j&&_j!="none")?_j:"";this.bottom_color=(_k&&_k!="transparent")?_k:"";this._bottom_syscolor=(this.bottom_color)?nexacro._getWebColorFromXreColor(this.bottom_color):"";this._sysbottom=(this._bottom_width)?(this._bottom_width+"px "+((this._bottom_syscolor)?(this.bottom_style+" "+this._bottom_syscolor):"solid transparent")):"";case 8:this.right=_e+" "+_f+" "+_g;this.right_width=_e;this._right_width=(parseInt(_e)|0);this.right_style=(_f&&_f!="none")?_f:"";this.right_color=(_g&&_g!="transparent")?_g:"";this._right_syscolor=(this.right_color)?nexacro._getWebColorFromXreColor(this.right_color):"";this._sysright=(this._right_width)?(this._right_width+"px "+((this._right_syscolor)?(this.right_style+" "+this._right_syscolor):"solid transparent")):"";case 4:this.top=_a+" "+_b+" "+_c;this.width=this.top_width=_a;this._top_width=(parseInt(_a)|0);this.style=this.top_style=(_b&&_b!="none")?_b:"";this.color=this.top_color=(_c&&_c!="transparent")?_c:_c;this._top_syscolor=(this.top_color)?nexacro._getWebColorFromXreColor(this.top_color):"";this._systop=(this._top_width)?(this._top_width+"px "+((this._top_syscolor)?(this.top_style+" "+this._top_syscolor):"solid transparent")):"";}this._linecnt=((_r/4)|0);this._copytoSubObjects();this._updateValue();}}};var _pStyleBorder=nexacro._createPrototype(nexacro.Style_line,nexacro.Style_border);nexacro.Style_border.prototype=_pStyleBorder;_pStyleBorder._type_name="Border";_pStyleBorder.valueOf=function(){return this._value;};_pStyleBorder.toString=function(){return this._value;};_pStyleBorder.clone=function(){var _a=new nexacro.Style_border();_a.style=this.style;_a.width=this.width;_a.color=this.color;_a.color2=this.color2;_a.style=this.style;_a.top=this.top;_a.top_width=this.top_width;_a.top_style=this.top_style;_a.top_color=this.top_color;_a.top_color2=this.top_color2;_a.right=this.right;_a.right_width=this.right_width;_a.right_style=this.right_style;_a.right_color=this.right_color;_a.right_color2=this.right_color2;_a.bottom=this.bottom;_a.bottom_width=this.bottom_width;_a.bottom_style=this.bottom_style;_a.bottom_color=this.bottom_color;_a.bottom_color2=this.bottom_color2;_a.left=this.left;_a.left_width=this.left_width;_a.left_style=this.left_style;_a.left_color=this.left_color;_a.left_color2=this.left_color2;_a._linecnt=this._linecnt;_a._left_width=this._left_width;_a._top_width=this._top_width;_a._right_width=this._right_width;_a._bottom_width=this._bottom_width;_a._left_syscolor=this._left_syscolor;_a._top_syscolor=this._top_syscolor;_a._right_syscolor=this._right_syscolor;_a._bottom_syscolor=this._bottom_syscolor;_a._systop=this._systop;_a._sysright=this._sysright;_a._sysbottom=this._sysbottom;_a._sysleft=this._sysleft;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleBorder._emptySubObjects=function(){if(this._linecnt){this.top_width="";this.top_style="";this.top_color="";this._top_width=0;this._top_syscolor="";this._systop="";this.top="";this.right_width="";this.right_style="";this.right_color="";this._right_width=0;this._right_syscolor="";this._sysright="";this.right="";this.bottom_width="";this.bottom_style="";this.bottom_color="";this._bottom_width=0;this._bottom_syscolor="";this._sysbottom="";this.bottom="";this.left_width="";this.left_style="";this.left_color="";this._left_width=0;this._left_syscolor="";this._sysleft="";this.left="";}};_pStyleBorder._is_real_empty=function(){if(this._top_width!=0||this._left_width!=0||this._bottom_width!=0||this._right_width!=0){return false;}return true;};_pStyleBorder._empty=function(){if(!this._is_empty){this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._emptySubObjects();this._linecnt=0;return true;}return false;};_pStyleBorder._copytoSubObjects=function(){switch(this._linecnt){case 1:this._right_width=this._top_width;this.right_width=this.top_width;this.right_style=this.top_style;this.right_color=this.top_color;this.right=this.top;case 2:this._bottom_width=this._top_width;this.bottom_width=this.top_width;this.bottom_style=this.top_style;this.bottom_color=this.top_color;this.bottom=this.top;case 3:this._left_width=this._right_width;this.left_width=this.right_width;this.left_style=this.right_style;this.left_color=this.right_color;this.left=this.right;}};_pStyleBorder._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}if(_a.charAt(4)=='('){this._bindexpr=_a.substr(5,_a.length-6);}else{this._bindexpr=_a.substring(5);}this._emptySubObjects();this._linecnt=0;}else{var _c=_a.split(',');this._linecnt=_c.length;if(this._linecnt>4){this._linecnt=4;}switch(this._linecnt){case 4:this.left=_c[3];var _d=_c[3].trim().split(/\s+/);if(_d.length<3){return;}this._left_width=(parseInt(_d[0])|0);this.left_width=this._left_width>=0?(this._left_width+"px"):"";switch(_d[1]){case "solid":case "double":case "dotted":case "dashed":case "none":this.left_style=_d[1];break;default:this.left_style="";break;}this.left_color=(_d[2]&&_d[2]!="transparent")?_d[2]:"";case 3:this.bottom=_c[2];var _d=_c[2].trim().split(/\s+/);if(_d.length<3){return;}this._bottom_width=(parseInt(_d[0])|0);this.bottom_width=this._bottom_width?(this._bottom_width+"px"):"";switch(_d[1]){case "solid":case "double":case "dotted":case "dashed":case "none":this.bottom_style=_d[1];break;default:this.bottom_style="";break;}this.bottom_color=(_d[2]&&_d[2]!="transparent")?_d[2]:"";case 2:this.right=_c[1];_d=_c[1].trim().split(/\s+/);if(_d.length<3){return;}this._right_width=(parseInt(_d[0])|0);this.right_width=this._right_width?(this._right_width+"px"):"";switch(_d[1]){case "solid":case "double":case "dotted":case "dashed":case "none":this.right_style=_d[1];break;default:this.right_style="";break;}this.right_color=(_d[2]&&_d[2]!="transparent")?_d[2]:"";case 1:this.top=_c[0];var _d=_c[0].trim().split(/\s+/);if(_d.length<3){return;}this._top_width=(parseInt(_d[0])|0);this.top_width=this._top_width>=0?(this._top_width+"px"):"";this.top_color=(_d[2]&&_d[2]!="transparent")?_d[2]:"";switch(_d[1]){case "solid":case "double":case "dotted":case "dashed":case "none":this.top_style=_d[1];break;default:this.top_style="";break;}if(this._linecnt==1){this.width=this.top_width;this.style=this.top_style;this.color=this.top_color;}}this._copytoSubObjects();}};_pStyleBorder._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";_a+=this._top_width+"px "+(this.top_color?((this.top_style?this.top_style:"")+' '+this.top_color):this.top_style+" transparent");switch(this._linecnt){case 1:break;case 2:_a+=", "+this._right_width+"px "+(this.right_color?((this.right_style?this.right_style:"")+' '+this.right_color):"transparent");break;case 3:_a+=", "+this._right_width+"px "+(this.right_color?((this.right_style?this.right_style:"")+' '+this.right_color):"transparent");_a+=", "+this._bottom_width+"px "+(this.bottom_color?((this.bottom_style?this.bottom_style:"")+' '+this.bottom_color):"transparent");break;case 4:_a+=", "+this._right_width+"px "+(this.right_color?((this.right_style?this.right_style:"")+' '+this.right_color):"transparent");_a+=", "+this._bottom_width+"px "+(this.bottom_color?((this.bottom_style?this.bottom_style:"")+' '+this.bottom_color):"transparent");_a+=", "+this._left_width+"px "+(this.left_color?((this.left_style?this.left_style:"")+' '+this.left_color):this.left_style+" transparent");break;default:if(this._bindtype==0){return "";}}return (_a!="none"&&_a!="none, none"&&_a!="none, none, none"&&_a!="none, none, none, none")?_a:"";}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}};_pStyleBorder._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;switch(this._linecnt){case 1:this._top_syscolor=(this.top_color)?nexacro._getWebColorFromXreColor(this.top_color):"";this._systop=(this._top_width)?(this._top_width+"px "+((this._top_syscolor)?(this.top_style+" "+this._top_syscolor):this.top_style+" "+"transparent")):"";this._right_syscolor=this._bottom_syscolor=this._left_syscolor=this._top_syscolor;this._right_width=this._bottom_width=this._left_width=this._top_width;this.right_style=this.bottom_style=this.left_style=this.top_style;this.right_color=this.bottom_color=this.left_color=this.top_color;this._sysright=this._sysbottom=this._sysleft=this._systop;this.top=this.top_width+" "+this.top_style+" "+this.top_color;this.right=this.bottom=this.left=this.top;break;case 2:this._top_syscolor=(this.top_color)?nexacro._getWebColorFromXreColor(this.top_color):"";this._systop=(this._top_width)?(this._top_width+"px "+((this._top_syscolor)?(this.top_style+" "+this._top_syscolor):this.top_style+" "+"transparent")):"";this._right_syscolor=(this.right_color)?nexacro._getWebColorFromXreColor(this.right_color):"";this._sysright=(this._right_width)?(this._right_width+"px "+((this._right_syscolor)?(this.right_style+" "+this._right_syscolor):this.right_style+" "+"transparent")):"";this._bottom_syscolor=this._top_syscolor;this._left_syscolor=this._right_syscolor;this._sysbottom=this._systop;this._sysleft=this._sysright;this._left_width=this._right_width;this._bottom_width=this._top_width;this.top=this.top_width+" "+this.top_style+" "+this.top_color;this.right=this.right_width+" "+this.right_style+" "+this.right_color;this.bottom=this.top;this.left=this.right;break;case 3:this._top_syscolor=(this.top_color)?nexacro._getWebColorFromXreColor(this.top_color):"";this._systop=(this._top_width)?(this._top_width+"px "+((this._top_syscolor)?(this.top_style+" "+this._top_syscolor):this.top_style+" "+"transparent")):"";this._right_syscolor=(this.right_color)?nexacro._getWebColorFromXreColor(this.right_color):"";this._sysright=(this._right_width)?(this._right_width+"px "+((this._right_syscolor)?(this.right_style+" "+this._right_syscolor):this.right_style+" "+"transparent")):"";this._bottom_syscolor=(this.bottom_color)?nexacro._getWebColorFromXreColor(this.bottom_color):"";this._sysbottom=(this._bottom_width)?(this._bottom_width+"px "+((this._bottom_syscolor)?(this.bottom_style+" "+this._bottom_syscolor):this.bottom_style+" "+"transparent")):"";this._left_syscolor=this._right_syscolor;this._left_width=this._right_width;this._sysleft=this._sysright;this.top=this.top_width+" "+this.top_style+" "+this.top_color;this.right=this.right_width+" "+this.right_style+" "+this.right_color;this.bottom=this.bottom_width+" "+this.bottom_style+" "+this.bottom_color;this.left=this.right;break;case 4:this._top_syscolor=(this.top_color)?nexacro._getWebColorFromXreColor(this.top_color):"";this._systop=(this._top_width)?(this._top_width+"px "+((this._top_syscolor)?(this.top_style+" "+this._top_syscolor):this.top_style+" "+"transparent")):"";this._right_syscolor=(this.right_color)?nexacro._getWebColorFromXreColor(this.right_color):"";this._sysright=(this._right_width)?(this._right_width+"px "+((this._right_syscolor)?(this.right_style+" "+this._right_syscolor):this.right_style+" "+"transparent")):"";this._bottom_syscolor=(this.bottom_color)?nexacro._getWebColorFromXreColor(this.bottom_color):"";this._sysbottom=(this._bottom_width)?(this._bottom_width+"px "+((this._bottom_syscolor)?(this.bottom_style+" "+this._bottom_syscolor):this.bottom_style+" "+"transparent")):"";this._left_syscolor=(this.left_color)?nexacro._getWebColorFromXreColor(this.left_color):"";this._sysleft=(this._left_width)?(this._left_width+"px "+((this._left_syscolor)?(this.left_style+" "+this._left_syscolor):this.left_style+" "+"transparent")):"";this.top=this.top_width+" "+this.top_style+" "+this.top_color;this.right=this.right_width+" "+this.right_style+" "+this.right_color;this.bottom=this.bottom_width+" "+this.bottom_style+" "+this.bottom_color;this.left=this.left_width+" "+this.left_style+" "+this.left_color;break;}this._updateSubProp();return true;}return false;};_pStyleBorder._updateSubProp=function(){if(this.top){this.top=this._top_width+"px "+(this.top_color?((this.top_style?this.top_style:"")+' '+this.top_color):this.top_style+" transparent");}if(this.right){this.right=this._right_width+"px "+(this.right_color?((this.right_style?this.right_style:"")+' '+this.right_color):"transparent");}if(this.bottom){this.bottom=this._bottom_width+"px "+(this.bottom_color?((this.bottom_style?this.bottom_style:"")+' '+this.bottom_color):"transparent");}if(this.left){this.left=this._left_width+"px "+(this.left_color?((this.left_style?this.left_style:"")+' '+this.left_color):"transparent");}};_pStyleBorder._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleBorder._isValid=function(){return (!this._is_empty);};_pStyleBorder._getBorderLeftWidth=function(){if(this._is_empty){return 0;}return (this.left_style&&this.left_style!="none")?this._left_width:0;};_pStyleBorder._getBorderTopWidth=function(){if(this._is_empty){return 0;}return (this.top_style&&this.top_style!="none")?this._top_width:0;};_pStyleBorder._getBorderRightWidth=function(){if(this._is_empty){return 0;}return (this.right_style&&this.right_style!="none")?this._right_width:0;};_pStyleBorder._getBorderBottomWidth=function(){if(this._is_empty){return 0;}return (this.bottom_style&&this.bottom_style!="none")?this._bottom_width:0;};_pStyleBorder._getBorderWidth=function(){if(this._is_empty){return 0;}if(this._linecnt>1){var _a=(this.left_style&&this.left_style!="none")?this._left_width:0;var _b=(this.right_style&&this.right_style!="none")?this._right_width:0;}else{var _a=(this.top_style&&this.top_style!="none")?this._left_width:0;var _b=_a;}return _a+_b;};_pStyleBorder._getBorderHeight=function(){if(this._is_empty){return 0;}if(this._linecnt>1){var _a=(this.top_style&&this.top_style!="none")?this._top_width:0;var _b=(this.bottom_style&&this.bottom_style!="none")?this._bottom_width:0;}else{var _a=(this.top_style&&this.top_style!="none")?this._top_width:0;var _b=_a;}return _a+_b;};_pStyleBorder.set_width=function(_a){if(!this.width||_a!==this.width){this._is_empty=false;this._bindtype=0;var _b=(parseInt(_a)|0);if(this._linecnt>1){this.top_width=_a;this._top_width=_b;this.right_width=_a;this._right_width=_b;this.bottom_width=_a;this._bottom_width=_b;this.left_width=_a;this._left_width=_b;}else{this.top_width=_a;this._top_width=_b;}this.width=_a;this._width=_b;return this._updateValue();}return false;};_pStyleBorder.set_style=function(_a){if(_a!=this.style){this._is_empty=false;this._bindtype=0;switch(_a){case "none":case "solid":case "double":case "dotted":case "dashed":break;default:_a="";break;}this.style=_a;if(this._linecnt>1){this.top_style=this.right_style=this.bottom_style=this.left_style=_a;}else{this.top_style=_a;}return this._updateValue();}return false;};_pStyleBorder.set_color=function(_a){if(_a!=this.color){_a=(_a&&_a!="transparent")?_a:"";this._is_empty=false;this._bindtype=0;this.color=_a;if(this._linecnt>1){this.top_color=this.right_color=this.bottom_color=this.left_color=_a;}else{this.top_color=_a;}return this._updateValue();}return false;};_pStyleBorder.set_color2=function(_a){if(_a!=this.color2){_a=(_a&&_a!="transparent")?_a:"";this._is_empty=false;this._bindtype=0;this.color2=_a;if(this._linecnt>1){this.top_color2=this.right_color2=this.bottom_color2=this.left_color2=_a;}else{this.top_color2=_a;}return this._updateValue();}return false;};_pStyleBorder.set_top=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._linecnt=4;}if(_a!=this._systop){var _b=_a.trim().split(/\s+/);if(_b.length>=3){this.top_width=_b[0];this._top_width=parseInt(_b[0]);switch(_b[1]){case "none":case "solid":case "double":case "dotted":case "dashed":this.top_style=_b[1];break;default:this.top_style="";break;}this.top_color=(_b[2]&&_b[2]!="transparent")?_b[2]:"";this.top_color2=(_b[3]&&_b[3]!="transparent")?_b[3]:"";this.top=_a;}else{this.top_width="";this._top_width=0;this.top_style="";this.top_color="";this.top_color2="";this.top="";}if(this._linecnt<1){this._linecnt=1;}return this._updateValue();}return false;};_pStyleBorder.set_top_width=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.top_width){this.top_width=_a;this._top_width=(parseInt(_a)|0);if(this._linecnt<1){this._linecnt=1;}return this._updateValue();}return false;};_pStyleBorder.set_top_style=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.top_style){switch(_a){case "none":case "solid":case "double":case "dotted":case "dashed":this.top_style=_a;break;default:this.top_style="";break;}if(this._linecnt<1){this._linecnt=1;}return this._updateValue();}return false;};_pStyleBorder.set_top_color=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.top_color){this.top_color=(_a&&_a!="transparent")?_a:"";if(this._linecnt<1){this._linecnt=1;}return this._updateValue();}return false;};_pStyleBorder.set_top_color2=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.top_color2){this.top_color2=(_a&&_a!="transparent")?_a:"";if(this._linecnt<1){this._linecnt=1;}return this._updateValue();}return false;};_pStyleBorder.set_right=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._linecnt=4;}if(_a!=this._sysright){var _b=_a.trim().split(/\s+/);if(_b.length>=3){this.right_width=_b[0];this._right_width=parseInt(_b[0]);switch(_b[1]){case "none":case "solid":case "double":case "dotted":case "dashed":this.right_style=_b[1];break;default:this.right_style="";break;}this.right_color=(_b[2]&&_b[2]!="transparent")?_b[2]:"";this.right_color2=(_b[3]&&_b[3]!="transparent")?_b[3]:"";this.right=_a;}else{this.right_width="";this._right_width=0;this.right_style="";this.right_color="";this.right_color2="";this.right="";}if(this._linecnt<2){this._linecnt=2;}return this._updateValue();}return false;};_pStyleBorder.set_right_width=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_width){this.right_width=_a;this._right_width=(parseInt(_a)|0);return this._updateValue();}if(this._linecnt<2){this._linecnt=2;}return false;};_pStyleBorder.set_right_style=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_style){switch(_a){case "none":case "solid":case "double":case "dotted":case "dashed":this.right_style=_a;break;default:this.right_style="";break;}if(this._linecnt<2){this._linecnt=2;}return this._updateValue();}return false;};_pStyleBorder.set_right_color=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_color){this.right_color=(_a&&_a!="transparent")?_a:"";if(this._linecnt<2){this._linecnt=2;}return this._updateValue();}return false;};_pStyleBorder.set_right_color2=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_color2){if(this._linecnt>1){this._emptySubObjects();}if(this._linecnt<2){this._linecnt=2;}this.right_color2=(_a&&_a!="transparent")?_a:"";return this._updateValue();}return false;};_pStyleBorder.set_bottom=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._linecnt=4;}if(_a!=this._sysbottom){var _b=_a.trim().split(/\s+/);if(_b.length>=3){this.bottom_width=_b[0];this._bottom_width=(parseInt(_b[0])|0);switch(_b[1]){case "none":case "solid":case "double":case "dotted":case "dashed":this.bottom_style=_b[1];break;default:this.bottom_style="";break;}this.bottom_color=(_b[2]&&_b[2]!="transparent")?_b[2]:"";this.bottom_color2=(_b[3]&&_b[3]!="transparent")?_b[3]:"";this.bottom=_a;}else{this.bottom_width="";this._bottom_width=0;this.bottom_style="";this.bottom_color="";this.bottom_color2="";this.bottom="";}if(this._linecnt<3){this._linecnt=3;}return this._updateValue();}return false;};_pStyleBorder.set_bottom_width=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.bottom_width){this.bottom_width=_a;this._bottom_width=(parseInt(_a)|0);if(this._linecnt<3){this._linecnt=3;}return this._updateValue();}return false;};_pStyleBorder.set_bottom_style=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_style){switch(_a){case "none":case "solid":case "double":case "dotted":case "dashed":this.bottom_style=_a;break;default:this.bottom_style="";break;}if(this._linecnt<3){this._linecnt=3;}return this._updateValue();}return false;};_pStyleBorder.set_bottom_color=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.bottom_color){this.bottom_color=(_a&&_a!="transparent")?_a:"";if(this._linecnt<3){this._linecnt=3;}return this._updateValue();}return false;};_pStyleBorder.set_bottom_color2=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.right_color2){this.bottom_color2=(_a&&_a!="transparent")?_a:"";if(this._linecnt<3){this._linecnt=3;}return this._updateValue();}return false;};_pStyleBorder.set_left=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._linecnt=4;}if(_a!=this._sysleft){var _b=_a.trim().split(/\s+/);if(_b.length>=3){this.left_width=_b[0];this._left_width=(parseInt(_b[0])|0);switch(_b[1]){case "none":case "solid":case "double":case "dotted":case "dashed":this.left_style=_b[1];break;default:this.left_style="";break;}this.left_color=(_b[2]&&_b[2]!="transparent")?_b[2]:"";this.left_color2=(_b[3]&&_b[3]!="transparent")?_b[3]:"";this.left=_a;}else{this.left_width="";this._left_width=0;this.left_style="";this.left_color="";this.left_color2="";this.left="";}if(this._linecnt<4){this._linecnt=4;}return this._updateValue();}return false;};_pStyleBorder.set_left_width=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.left_width){this.left_width=_a;this._left_width=(parseInt(_a)|0);if(this._linecnt<4){this._linecnt=4;}return this._updateValue();}return false;};_pStyleBorder.set_left_style=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.left_style){switch(_a){case "none":case "solid":case "double":case "dotted":case "dashed":this.left_style=_a;break;default:this.left_style="";break;}if(this._linecnt<4){this._linecnt=4;}return this._updateValue();}return false;};_pStyleBorder.set_left_color=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.left_color){this.left_color=(_a&&_a!="transparent")?_a:"";if(this._linecnt<4){this._linecnt=4;}return this._updateValue();}return false;};_pStyleBorder.set_left_color2=function(_a){this._is_empty=false;this._bindtype=0;if(this._linecnt<=1){this._copytoSubObjects();}if(_a!=this.left_color2){this.left_color2=(_a&&_a!="transparent")?_a:"";if(this._linecnt<4){this._linecnt=4;}return this._updateValue();}return false;};_pStyleBorder._createRtlValue=function(){if(!this._rtlvalue){if(this._sysleft!=this._sysright){var _a=this._value.split(",");var _b;if(_a.length==4){_b=_a[0]+", "+_a[3]+", "+_a[2]+", "+_a[1];this._rtlvalue=_b;}}}};_pStyleBorder._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedBorderObj(this._rtlvalue);}else{return this;}};delete _pStyleBorder;nexacro._createBorderAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedBorderObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_width(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) \n"+" this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color2 = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_color2(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_top(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_top_width(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_top_color(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top_color2 = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_top_color2(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_right(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_right_width(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_right_color(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right_color2 = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_right_color2(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_bottom(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_bottom_width(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_bottom_color(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom_color2 = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_bottom_color2(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_left(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_left_width(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_left_color(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left_color2 = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_border());\n"+" newobj.set_left_color2(v);\n"+" newobj = nexacro._registerCachedBorderObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_bordertype=function(_a,_b,_c,_d,_e,_f,_g){this.type="";this.radiusx="";this.radiusy="";this.lefttop=undefined;this._lefttop=false;this.righttop=undefined;this._righttop=false;this.leftbottom=undefined;this._leftbottom=false;this.rightbottom=undefined;this._rightbottom=false;this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";this._sysvalue="";this._radiusx=0;this._radiusy=0;if(_b!=null){this._is_empty=false;this._bindtype=0;this.type=_a;if(_b!=undefined&&_c!=undefined){this.radiusx=_b;this.radiusy=_c;this._radiusx=(parseInt(_b)|0);this._radiusy=(parseInt(_c)|0);}this.lefttop=this._lefttop=nexacro._toBoolean(_d);this.righttop=this._righttop=nexacro._toBoolean(_e);this.leftbottom=this._leftbottom=nexacro._toBoolean(_f);this.rightbottom=this._rightbottom=nexacro._toBoolean(_g);var _h=this._getValueStr();this._is_empty=(_h.value=="");this._value=_h.value;this._sysvalue=_h.sysvalue;}else if(_a&&(typeof (_a)=="string")){var _i=_a.trim();if(_i){this._parseInfo(_i);this._updateValue();}}};var _pStyleBordertype=nexacro._createPrototype(nexacro.Object,nexacro.Style_bordertype);nexacro.Style_bordertype.prototype=_pStyleBordertype;_pStyleBordertype._type_name="Bordertype";_pStyleBordertype.valueOf=function(){return this._value;};_pStyleBordertype.toString=function(){return this._value;};_pStyleBordertype.clone=function(){var _a=new nexacro.Style_bordertype();_a.type=this.type;_a.radiusx=this.radiusx;_a.radiusy=this.radiusy;_a.lefttop=this.lefttop;_a._lefttop=this._lefttop;_a.righttop=this.righttop;_a._righttop=this._righttop;_a.leftbottom=this.leftbottom;_a._leftbottom=this._leftbottom;_a.rightbottom=this.rightbottom;_a._rightbottom=this._rightbottom;_a._radiusx=this._radiusx;_a._radiusy=this._radiusy;_a._is_empty=this._is_empty;_a._value=this._value;_a._sysvalue=this._sysvalue;return _a;};_pStyleBordertype._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.type="";this.radiusx="";this.radiusy="";this._radiusx=0;this._radiusy=0;this.lefttop=undefined;this.righttop=undefined;this.leftbottom=undefined;this.rightbottom=undefined;this._lefttop=false;this._righttop=false;this._leftbottom=false;this._rightbottom=false;this._value="";this._sysvalue="";return true;}return false;};_pStyleBordertype._isRound=function(){return (this.type=="round"&&this._radiusx>0&&this._radiusy>0);};_pStyleBordertype._getValueStr=function(){switch(this._bindtype){case 0:{var _a=this.type;var _b;if(_a=="round"){if(this._radiusx>=0&&this._radiusy>=0){_a+=" "+this.radiusx+" "+this.radiusy;_b=_a;if(this.lefttop){_a+=" lefttop";_b+=" true";}else if(this.lefttop==false){_b+=" false";}else{_b+=" undefined";}if(this.righttop){_a+=" righttop";_b+=" true";}else if(this.righttop==false){_b+=" false";}else{_b+=" undefined";}if(this.leftbottom){_a+=" leftbottom";_b+=" true";}else if(this.leftbottom==false){_b+=" false";}else{_b+=" undefined";}if(this.rightbottom){_a+=" rightbottom";_b+=" true";}else if(this.rightbottom==false){_b+=" false";}else{_b+=" undefined";}}else{_a="normal "+this.radiusx+" "+this.radiusy;_b=_a;}}else{_a="normal "+this.radiusx+" "+this.radiusy;_b=_a;if(this.lefttop){_a+=" lefttop";_b+=" true";}else if(this.lefttop==false){_b+=" false";}else{_b+=" undefined";}if(this.righttop){_a+=" righttop";_b+=" true";}else if(this.righttop==false){_b+=" false";}else{_b+=" undefined";}if(this.leftbottom){_a+=" leftbottom";_b+=" true";}else if(this.leftbottom==false){_b+=" false";}else{_b+=" undefined";}if(this.rightbottom){_a+=" rightbottom";_b+=" true";}else if(this.rightbottom==false){_b+=" false";}else{_b+=" undefined";}}return {value:_a,sysvalue:_b};}case 1:var _a="bind:"+this._bindexpr;return {value:_a,sysvalue:_a};case 2:var _a="expr:"+this._bindexpr;return {value:_a,sysvalue:_a};}return "";};_pStyleBordertype._updateValue=function(){var _a=this._getValueStr();if(_a.sysvalue!=this._sysvalue){this._resetValue();this._is_empty=(_a.value=="");this._sysvalue=_a.sysvalue;this._value=_a.value;return true;}return false;};_pStyleBordertype._resetValue=function(){var _a=this.lefttop,_b=this.righttop,_c=this.leftbottom,_d=this.rightbottom;if(_a==undefined&&_b==undefined&&_c==undefined&&_d==undefined){this._lefttop=true;this._righttop=true;this._leftbottom=true;this._rightbottom=true;}else{if(_a==undefined){this._lefttop=false;}if(_b==undefined){this._righttop=false;}if(_c==undefined){this._leftbottom=false;}if(_d==undefined){this._rightbottom=false;}}};_pStyleBordertype._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);var _e;this.type=_d[0];if(_d[1]!=undefined&&_d[2]!=undefined){this.radiusx=_d[1];this.radiusy=_d[2];this._radiusx=(parseInt(_d[1])|0);this._radiusy=(parseInt(_d[2])|0);}if(_d.length>3){this._lefttop=false;this._righttop=false;this._leftbottom=false;this._rightbottom=false;for(var _f=3;_f<_d.length;_f++ ){_e=_d[_f];switch(_e){case "lefttop":this.lefttop=true;this._lefttop=true;break;case "righttop":this.righttop=true;this._righttop=true;break;case "leftbottom":this.leftbottom=true;this._leftbottom=true;break;case "rightbottom":this.rightbottom=true;this._rightbottom=true;break;}}}else{this._lefttop=true;this._righttop=true;this._leftbottom=true;this._rightbottom=true;}}};_pStyleBordertype._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._sysvalue){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleBordertype.set_type=function(_a){if(_a!=this.type){this._is_empty=false;this._bindtype=0;this.type=_a;return this._updateValue(true);}return false;};_pStyleBordertype.set_radiusx=function(_a){if(_a!=this.radiusx){this._is_empty=false;this._bindtype=0;this.radiusx=_a;this._radiusx=(parseInt(_a)|0);return this._updateValue(true);}return false;};_pStyleBordertype.set_radiusy=function(_a){if(_a!=this.radiusy){this._is_empty=false;this._bindtype=0;this.radiusy=_a;this._radiusy=(parseInt(_a)|0);return this._updateValue(true);}return false;};_pStyleBordertype.set_lefttop=function(_a){if(typeof _a=="string"){_a=(_a=="true");}if(_a!=this.lefttop){this._is_empty=false;this._bindtype=0;this._lefttop=this.lefttop=(_a?true:false);return this._updateValue(true);}return false;};_pStyleBordertype.set_leftbottom=function(_a){if(typeof _a=="string"){_a=(_a=="true");}if(_a!=this.leftbottom){this._is_empty=false;this._bindtype=0;this._leftbottom=this.leftbottom=(_a?true:false);return this._updateValue(true);}return false;};_pStyleBordertype.set_righttop=function(_a){if(typeof _a=="string"){_a=(_a=="true");}if(_a!=this.righttop){this._is_empty=false;this._bindtype=0;this._righttop=this.righttop=(_a?true:false);return this._updateValue(true);}return false;};_pStyleBordertype.set_rightbottom=function(_a){if(typeof _a=="string"){_a=(_a=="true");}if(_a!=this.rightbottom){this._is_empty=false;this._bindtype=0;this._rightbottom=this.rightbottom=(_a?true:false);return this._updateValue(true);}return false;};_pStyleBordertype._createRtlValue=function(){if(!this._rtlvalue){if(this.lefttop!=this.righttop||this.leftbottom!=this.rightbottom){var _a;_a=this.type+" "+this.radiusx+" "+this.radiusy;if(this.lefttop){_a=_a+" righttop";}if(this.righttop){_a=_a+" lefttop";}if(this.leftbottom){_a=_a+" rightbottom";}if(this.rightbottom){_a=_a+" leftbottom";}this._rtlvalue=_a;}}};_pStyleBordertype._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedBordertypeObj(this._rtlvalue);}else{return this;}};nexacro._createBordertypeAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedBordertypeObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_type = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_type(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_radiusx = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_radiusx(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_radiusy = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_radiusy(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_lefttop = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_lefttop(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_leftbottom = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_leftbottom(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_righttop = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_righttop(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_rightbottom = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_bordertype());\n"+" newobj.set_rightbottom(v);\n"+" newobj = nexacro._registerCachedBordertypeObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/gi,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_pointColor=function(_a,_b){this.point="";this.color="";this._is_empty=true;this._target=null;this._itemidx=0;this._value="";this._x=0;this._y=0;this._syscolor="";this._sysalpha=255;if(_b!=null){this._is_empty=false;this.point=_a;if(_b=="transparent"){this.color="";}else{this.color=_b;}}else if(_a&&(typeof (_a)=="string")){var _c=v.trim();if(_c){this._parseInfo(_c);var _d=this._getValueStr();this._is_empty=(_d=="");if(this.color){this._syscolor=nexacro._getWebColorFromXreColor(this.color);this._sysalpha=nexacro._getXreColorAlpha(this.color);}else{this._syscolor="";this._sysalpha=255;}this._value=_d;}}};var _pStylePointColor=nexacro._createPrototype(nexacro.Object,nexacro.Style_pointColor);nexacro.Style_pointColor.prototype=_pStylePointColor;_pStylePointColor._type_name="PointColor";_pStylePointColor.valueOf=function(){return this._value;};_pStylePointColor.toString=function(){return this._value;};_pStylePointColor._empty=function(){if(!this._is_empty){this._value="";this.point="";this.color="";this._syscolor="";this._sysalpha=255;this._x=0;this._y=0;this._is_empty=true;return true;}return false;};_pStylePointColor._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";if(!this._is_empty){_a=this.point+" "+this.color;}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStylePointColor._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;if(this.color){this._syscolor=nexacro._getWebColorFromXreColor(this.color);this._sysalpha=nexacro._getXreColorAlpha(this.color);}return true;}return false;};_pStylePointColor._parseInfo=function(_a){this._is_empty=false;var _b=_a.split(/\s+/);this.point=_b[0];var _c=this.point.split(',');this._x=(parseInt(_c[0])|0);this._y=(parseInt(_c[1])|0);this.color=_b[1];};_pStylePointColor._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStylePointColor.update=function(_a){if(this._updateValue()&&_a){if(this._target){this._target.on_update_style_pointcolor();}}};_pStylePointColor.set_point=function(_a){if(_a!=this.point){this._is_empty=false;this.point=_a;var _b=this.point.split(',');this._x=(parseInt(_b[0])|0);this._y=(parseInt(_b[1])|0);this.update(true);}};_pStylePointColor.set_color=function(_a){if(_a!=this.color){this._is_empty=false;this.color=_a;this.update(true);}};nexacro.Style_gradation=function(_a,_b,_c,_d,_e,_f,_g,_h){this.style="";this.peglist="";this.start=null;this.end=null;this.start_point="";this.start_color="";this.end_point="";this.end_color="";this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";this._sysvalue="";this._sysvalue2="";this._start_x=0;this._start_y=0;this._start_syscolor="";this._start_vmlcolor="";this._end_x=100;this._end_y=100;this._end_syscolor="";this._end_vmlcolor="";if(_b!=null){this._is_empty=false;this._bindtype=0;this.style=_a;this._start_x=_b;this._start_y=_c;this.start_point=_b+","+_c;this.start_color=_d;this._end_x=_e;this._end_y=_f;this.end_point=_b+","+_c;this.end_color=_g;this.peglist=_h;nexacro._makeGradationSysValue(this);}else if(_a&&(typeof _a)=="string"){var _i=_a.trim();if(_i){this._parseInfo(_i);var _j=this._getValueStr();this._is_empty=(_j=="");this._value=_i;nexacro._makeGradationSysValue(this);}}};var _pStyleGradation=nexacro._createPrototype(nexacro.Object,nexacro.Style_gradation);nexacro.Style_gradation.prototype=_pStyleGradation;_pStyleGradation._type_name="Gradation";_pStyleGradation.valueOf=function(){return this._value;};_pStyleGradation.toString=function(){return this._value;};_pStyleGradation.clone=function(){var _a=new nexacro.Style_gradation();_a.style=this.style;_a.peglist=this.peglist;_a.start=this.start;_a.end=this.end;_a.start_point=this.start_point;_a.start_color=this.start_color;_a.end_point=this.end_point;_a.end_color=this.end_color;_a._sysvalue=this._sysvalue;_a._sysvalue2=this._sysvalue2;_a._start_x=this._start_x;_a._start_y=this._start_y;_a._start_syscolor=this._start_syscolor;_a._start_vmlcolor=this._start_vmlcolor;_a._end_x=this._end_x;_a._end_y=this._end_y;_a._end_syscolor=this._end_syscolor;_a._end_vmlcolor=this._end_vmlcolor;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleGradation._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.style="";this.peglist="";this.start_point="";this.start_color="";this._start_x=0;this._start_y=0;this.end_point="";this.end_color="";this._end_x=100;this._end_y=100;this._sysvalue="";this._sysvalue2="";return true;}return false;};_pStyleGradation._parsePegList=function(_a){var _b=[];var _c=_a;var _d,_e,_f,_g;_d=0;_d=_c.indexOf("[",_d);while(_d>=0){_d+=1;_e=_c.indexOf("]",_d);if(_e<0){break;}_g=_c.substring(_d,_e);_d=_e+1;_f=_g.trim().split(/\s+/);if(_f.length>=2){pos=(parseInt(_f[0])|0);if(pos>0&&pos<100){_b.push([pos,_f[_f.length-1]]);}}_d=_c.indexOf("[",_d);}return _b;};_pStyleGradation._getValueStr=function(){switch(this._bindtype){case 0:{var _a=this.style+" "+this.start_point+" "+this.start_color+" "+this.end_point+" "+this.end_color;_a+=" "+this.peglist;return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleGradation._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;nexacro._makeGradationSysValue(this);return true;}return false;};_pStyleGradation._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}}else{if(_a.indexOf("linear-gradient")>=0){this.style="linear";var _d=_a.indexOf("(");var _e=_a.substring(_d+1,_a.length-1);var _f=_e.split(",");var _g=_f.length;var _h=_f[1].trim().split(" ");var _i=_h[1]&&parseInt(_h[1])>0?parseInt(_h[1]):0;var _j=_f[_g-1].trim().split(" ");var _k=_j[1]&&parseInt(_j[1])<100?parseInt(_j[1]):100;if(_g==2){this._start_x=this._start_y=_i;this._end_x=this._end_y=_k;this.start_point=this._start_x+","+this._start_y;this.start_color=_h[0];this.end_point=this._end_x+","+this._end_y;this.end_color=_j[0];}else if(_g>=3){var _l=_f[0].trim();if((/left|top|right|bottom/).test(_l)){if(_l.indexOf("top")>=0){if(_l.indexOf("right")>=0){this._setPosition("top right",_i,_k);}else if(_l.indexOf("left")>=0){this._setPosition("top left",_i,_k);}else{this._setPosition("top",_i,_k);}}else if(_l.indexOf("bottom")>=0){if(_l.indexOf("right")>=0){this._setPosition("bottom right",_i,_k);}else if(_l.indexOf("left")>=0){this._setPosition("bottom left",_i,_k);}else{this._setPosition("bottom",_i,_k);}}else if(_l.indexOf("left")>=0){this._setPosition("left",_i,_k);}else if(_l.indexOf("right")>=0){this._setPosition("right",_i,_k);}if(_g>3){var _m=_f.slice(2,_g-1);var _n="",_o="",_p="",_q=[];for(var _r=0;_r<_m.length;_r++ ){_o=_m[_r].trim();_q=_o.split(" ");_p="["+_q[1]+" "+_q[0]+"]";_n+=_p;}this.peglist=_n;}}else if(_l.indexOf("to")>=0){var _s=_l.split(" ");this._start_x=(parseInt(_s[0])|0);this._start_y=(parseInt(_s[1])|0);this._end_x=(parseInt(_s[3])|0);this._end_y=(parseInt(_s[4])|0);if(_g>3){var _m=_f.slice(2,_g-1);var _n="",_o="",_p="",_q=[];for(var _r=0;_r<_m.length;_r++ ){_o=_m[_r].trim();_q=_o.split(" ");_p="["+_q[1]+" "+_q[0]+"]";_n+=_p;}this.peglist=_n;}}else if(_l.indexOf("deg")>=0){var _t=(parseInt(_l)|0);if(_t<0){while(_t<0){_t+=360;}}else if(_t>=360){while(_t>=360){_t-=360;}}switch(Math.floor(_t/45)){case 0:this._setPosition("top",_i,_k);break;case 1:this._setPosition("top right",_i,_k);break;case 2:this._setPosition("right",_i,_k);break;case 3:this._setPosition("bottom right",_i,_k);break;case 4:this._setPosition("bottom",_i,_k);break;case 5:this._setPosition("bottom left",_i,_k);break;case 6:this._setPosition("left",_i,_k);break;case 7:this._setPosition("top left",_i,_k);break;}if(_g>3){var _m=_f.slice(2,_g-1);var _n="",_o="",_p="",_q=[];for(var _r=0;_r<_m.length;_r++ ){_o=_m[_r].trim();_q=_o.split(" ");_p="["+_q[1]+" "+_q[0]+"]";_n+=_p;}this.peglist=_n;}}else{this._start_x=this._start_y=_i;this._end_x=this._end_y=_k;var _m=_f.slice(1,_g-1);var _n="",_o="",_p="",_q=[];for(var _r=0;_r<_m.length;_r++ ){_o=_m[_r].trim();_q=_o.split(" ");_p="["+_q[1]+" "+_q[0]+"]";_n+=_p;}this.peglist=_n;}this.start_point=this._start_x+","+this._start_y;this.start_color=_h[0];this.end_point=this._end_x+","+this._end_y;this.end_color=_j[0];}}else if(_a.indexOf("radial-gradient")>=0){this.style="radial";}else{var _u=_a.split(/\s+/);if(_u.length>4){switch(_u[0]){case "none":case "linear":case "radial":this.style=_u[0];break;default:this.style="";break;}var _v=_u[1].split(',');this._start_x=(parseInt(_v[0])|0);this._start_y=(parseInt(_v[1])|0);this.start_point=this._start_x+","+this._start_y;this.start_color=_u[2];var _v=_u[3].split(',');this._end_x=(parseInt(_v[0])|0);this._end_y=(parseInt(_v[1])|0);this.end_point=this._end_x+","+this._end_y;this.end_color=_u[4];if(_u.length>5){var _w=[];for(var _r=5;_r<_u.length;_r++ ){_w.push(_u[_r]);}this.peglist=_w.join(" ");}else{this.peglist="";}}}}};_pStyleGradation._setPosition=function(_a,_b,_c){switch(_a){case "top":this._start_x=this._end_x=0;this._start_y=100-_b;this._end_y=100-_c;break;case "top right":this._start_x=_b;this._start_y=100-_b;this._end_x=_c;this._end_y=100-_c;break;case "top left":this._start_x=this._start_y=100-_b;this._end_x=this._end_y=100-_c;break;case "bottom":this._start_x=this._end_x=0;this._start_y=_b;this._end_y=_c;break;case "bottom right":this._start_x=this._start_y=_b;this._end_x=this._end_y=_c;break;case "bottom left":this._start_x=100-_b;this._start_y=_b;this._end_x=100-_c;this._end_y=_c;break;case "left":this._start_x=100-_b;this._start_y=this._end_y=0;this._end_x=100-_c;break;case "right":this._start_x=_b;this._start_y=this._end_y=0;this._end_x=_c;break;}};_pStyleGradation._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleGradation.set_style=function(_a){if(_a!=this.style){this._is_empty=false;this._bindtype=0;switch(_a){case "none":case "linear":case "radial":this.style=_a;break;default:this.style="";break;}return this._updateValue();}return false;};_pStyleGradation.set_start=function(_a){if(_a!=(this.start_point+" "+this.start_color)){this._is_empty=false;this._bindtype=0;var _b=(_a)?_a.toString().trim():"";var _c=_b.split(/\s+/);var _d=_c[0].split(',');this._start_x=(parseInt(_d[0])|0);this._start_y=(parseInt(_d[1])|0);this.start_point=this._start_x+","+this._start_y;this.start_color=_c[1];this.start=_a;return this._updateValue();}return false;};_pStyleGradation.set_start_point=function(_a){if(_a!=this.start_point){this._is_empty=false;this._bindtype=0;var _b=(_a)?_a.toString().trim():"";var _c=_b.split(',');this._start_x=(parseInt(_c[0])|0);this._start_y=(parseInt(_c[1])|0);this.start_point=this._start_x+","+this._start_y;return this._updateValue();}return false;};_pStyleGradation.set_start_color=function(_a){if(_a!=this.start_color){this._is_empty=false;this._bindtype=0;this.start_color=_a;return this._updateValue();}return false;};_pStyleGradation.set_end=function(_a){if(_a!=(this.end_point+" "+this.end_color)){this._is_empty=false;this._bindtype=0;var _b=(_a)?_a.toString().trim():"";var _c=_b.split(/\s+/);var _d=_c[0].split(',');this._end_x=(parseInt(_d[0])|0);this._end_y=(parseInt(_d[1])|0);this.end_point=this._end_x+","+this._end_y;this.end_color=_c[1];this.end=_a;return this._updateValue();}return false;};_pStyleGradation.set_end_point=function(_a){if(_a!=this.end_point){this._is_empty=false;this._bindtype=0;var _b=(_a)?_a.toString().trim():"";var _c=_b.split(',');this._end_x=(parseInt(_c[0])|0);this._end_y=(parseInt(_c[1])|0);this.end_point=this._end_x+","+this._end_y;return this._updateValue();}return false;};_pStyleGradation.set_end_color=function(_a){if(_a!=this.end_color){this._is_empty=false;this._bindtype=0;this.end_color=_a;return this._updateValue();}return false;};_pStyleGradation.set_peglist=function(_a){if(_a!=this.peglist){this._is_empty=false;this._bindtype=0;this.peglist=_a;return this._updateValue();}return false;};_pStyleGradation._createRtlValue=function(){if(!this._rtlvalue){if(this._start_x!=this._end_x){var _a;_a=this.style+" "+this._end_x+","+this._start_y+" "+this.start_color+" "+this._start_x+","+this._end_y+" "+this.end_color;this._rtlvalue=_a;}}};_pStyleGradation._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedGradationObj(this._rtlvalue);}else{return this;}};nexacro._createGradationAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedGradationObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_peglist = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_peglist(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_start = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_start(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_start_point = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_start_point(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_start_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_start_color(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_end = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_end(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_end_point = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_end_point(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_end_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_gradation());\n"+" newobj.set_end_color(v);\n"+" newobj = nexacro._registerCachedGradationObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_font=function(_a,_b,_c,_d,_e,_f,_g){this.face="";this.size=0;this.type="";this._default_face="굴림";this._default_size="9";this._default_type="normal";this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";this._bold=false;this._italic=false;this._underline=false;this._strikeout=false;this._antialias=false;this._sysvalue="";this._sysdecoration="";if(_b!=null){this._is_empty=false;this._bindtype=0;this.face=_a;this.size=(parseInt(_b)|0);if(_c){this._bold=true;}if(_d){this._italic=true;}if(_e){this._underline=true;}if(_f){this._strikeout=true;}if(_g){this._antialias=true;}}else if(_b==null&&(typeof (_a)=="string")){var _h=_a.trim();if(_h){this._parseInfo(_h);this._updateValue();}}};var _pStyleFont=nexacro._createPrototype(nexacro.Object,nexacro.Style_font);nexacro.Style_font.prototype=_pStyleFont;_pStyleFont._type_name="Font";_pStyleFont.valueOf=function(){return this._value;};_pStyleFont.toString=function(){return this._value;};_pStyleFont.clone=function(){var _a=new nexacro.Style_font();_a.face=this.face;_a.size=this.size;_a.type=this.type;_a._bold=this._bold;_a._italic=this._italic;_a._underline=this._underline;_a._strikeout=this._strikeout;_a._antialias=this._antialias;_a._sysvalue=this._sysvalue;_a._sysdecoration=this._sysdecoration;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleFont._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.face="";this.size=0;this.type="";this._bold=false;this._italic=false;this._underline=false;this._strikeout=false;this._antialias=false;this._sysvalue="";this._sysdecoration="";return true;}return false;};_pStyleFont._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);var _e;var _f=[],_g=0;var _h=true;for(var _i=0;_i<_d.length&&_h;_i++ ){_e=_d[_i];switch(_e){case "bold":this._bold=true;break;case "italic":this._italic=true;break;case "underline":this._underline=true;break;case "strikeout":this._strikeout=true;break;case "antialias":this._antialias=true;break;default:{var _j=parseInt(_e);if(_j!=_j){if(_g==0){_h=false;}else{_f.push(_e);}}else{_g=_j;}}break;}}if(_h){this.face=(_f.length>0)?_f.join(" "):this._default_face;this.size=(_g>0)?_g:this._default_size;}else{var _d=_a.split(',');if(_d.length>=2){this.face=_d[0];this.size=(parseInt(_d[1])|0);if(_d[2]){var _k=_d[2].split(/\s+/);var _e;for(var _i=0;_i<_k.length;_i++ ){_e=_k[_i];switch(_e){case "bold":this._bold=true;break;case "italic":this._italic=true;break;case "underline":this._underline=true;break;case "strikeout":this._strikeout=true;break;case "antialias":this._antialias=true;break;}}}}}}};_pStyleFont._getValueStr=function(){switch(this._bindtype){case 0:{var _a=[];if(this._bold){_a.push("bold");this._bold=true;}if(this._italic){_a.push("italic");this._italic=true;}if(this._underline){_a.push("underline");this._underline=true;}if(this._strikeout){_a.push("strikeout");this._strikeout=true;}if(this._antialias){_a.push("antialias");this._antialias=true;}if(_a.length>0){this.type=_a.join(" ");}else{this.type="";}_a.push(this.size);_a.push(this.face);return _a.join(' ');}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleFont._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){if(this._italic||this._bold||this._underline||this._strikeout||this.size){this._sysvalue=(this._italic==true?"italic ":"")+(this._bold==true?"bold ":"")+(this.size>=0?this.size+"pt ":Math.abs(this.size)+"px ")+this.face;if(this._underline==true){if(this._strikeout==true){this._sysdecoration="underline line-through";}else{this._sysdecoration="underline";}}else{if(this._strikeout==true){this._sysdecoration="line-through";}else{this._sysdecoration="";}}}else{this._sysvalue="";this._sysdecoration="";}this._is_empty=(_a==""||_a==0);this._value=_a;return true;}return false;};_pStyleFont._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleFont.set_face=function(_a){if(_a!=this.face){this._is_empty=false;this._bindtype=0;this.face=_a;if(!this.size){this.size=this._default_size;}return this._updateValue();}return false;};_pStyleFont.set_size=function(_a){var _b=(parseInt(_a)|0);if(_b!=this.size){this._is_empty=false;this._bindtype=0;this.size=_b;if(!this.face){this.face=this._default_face;}return this._updateValue();}return false;};_pStyleFont.set_type=function(_a){if(_a!=this.type){this._is_empty=false;this._bindtype=0;var _b=_a.split(/\s+/);var _c;this._bold=false;this._italic=false;this._underline=false;this._strikeout=false;this._antialias=false;for(var _d=0;_d<_b.length;_d++ ){_c=_b[_d];switch(_c){case "bold":this._bold=true;break;case "italic":this._italic=true;break;case "underline":this._underline=true;break;case "strikeout":this._strikeout=true;break;case "antialias":this._antialias=true;break;}}if(!this.size){this.size=this._default_size;}if(!this.face){this.face=this._default_face;}return this._updateValue();}return false;};nexacro._createFontAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedFontObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_face = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_font());\n"+" newobj.set_face(v);\n"+" newobj = nexacro._registerCachedFontObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_size = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_font());\n"+" newobj.set_size(v);\n"+" newobj = nexacro._registerCachedFontObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_type = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_font());\n"+" newobj.set_type(v);\n"+" newobj = nexacro._registerCachedFontObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_padding=function(_a,_b,_c,_d){this.top=0;this.right=0;this.bottom=0;this.left=0;this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";this._sysvalue="";if(_b!=null){this._is_empty=false;this._bindtype=0;this.top=(parseInt(_a)|0);this.right=(parseInt(_b)|0);this.bottom=(parseInt(_c)|0);this.left=(parseInt(_d)|0);}else if(_a&&(typeof (_a)=="string")){var _e=_a.trim();if(_e){this._parseInfo(_e);var _f=this._getValueStr();this._is_empty=(_f=="");this._value=_e;this._sysvalue=_f;}}};var _pStylePadding=nexacro._createPrototype(nexacro.Object,nexacro.Style_padding);nexacro.Style_padding.prototype=_pStylePadding;_pStylePadding._type_name="Padding";_pStylePadding.valueOf=function(){return this._value;};_pStylePadding.toString=function(){return this._value;};_pStylePadding.clone=function(){var _a=new nexacro.Style_padding();_a.top=this.top;_a.right=this.right;_a.bottom=this.bottom;_a.left=this.left;_a._is_empty=this._is_empty;_a._sysvalue=this._sysvalue;_a._value=this._value;return _a;};_pStylePadding._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.top=0;this.right=0;this.bottom=0;this.left=0;this._value="";this._sysvalue="";return true;}return false;};_pStylePadding._getValueStr=function(){switch(this._bindtype){case 0:return this.top+" "+this.right+" "+this.bottom+" "+this.left;case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStylePadding._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);switch(_d.length){case 1:_a=(parseInt(_d[0])|0);this.top=this.right=this.bottom=this.left=_a;break;case 2:_a=(parseInt(_d[0])|0);this.top=this.bottom=_a;_a=(parseInt(_d[1])|0);this.right=this.left=_a;break;case 3:_a=(parseInt(_d[0])|0);this.top=_a;_a=(parseInt(_d[1])|0);this.right=this.left=_a;_a=(parseInt(_d[2])|0);this.bottom=_a;break;default:_a=(parseInt(_d[0])|0);this.top=_a;_a=(parseInt(_d[1])|0);this.right=_a;_a=(parseInt(_d[2])|0);this.bottom=_a;_a=(parseInt(_d[3])|0);this.left=_a;break;}}};_pStylePadding._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStylePadding._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._sysvalue){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStylePadding._set_value=function(){this._value=this.left+" "+this.top+" "+this.right+" "+this.bottom;};_pStylePadding.set_top=function(_a){_a=(parseInt(_a)|0);if(_a!=this.top&&_a>=0){this._is_empty=false;this._bindtype=0;this.top=_a;this._set_value();return this._updateValue();}return false;};_pStylePadding.set_right=function(_a){_a=(parseInt(_a)|0);if(_a!=this.right&&_a>=0){this._is_empty=false;this._bindtype=0;this.right=_a;this._set_value();return this._updateValue();}return false;};_pStylePadding.set_bottom=function(_a){_a=(parseInt(_a)|0);if(_a!=this.bottom&&_a>=0){this._is_empty=false;this._bindtype=0;this.bottom=_a;this._set_value();return this._updateValue();}return false;};_pStylePadding.set_left=function(_a){_a=(parseInt(_a)|0);if(_a!=this.left&&_a>=0){this._is_empty=false;this._bindtype=0;this.left=_a;this._set_value();return this._updateValue();}return false;};_pStylePadding._getPaddingWidth=function(){return (this._is_empty)?0:(this.left+this.right);};_pStylePadding._getPaddingHeight=function(){return (this._is_empty)?0:(this.top+this.bottom);};_pStylePadding._createRtlValue=function(){if(!this._rtlvalue){if(this.left!=this.right){var _a;_a=this.top+" "+this.left+" "+this.bottom+" "+this.right;this._rtlvalue=_a;}}};_pStylePadding._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedPaddingObj(this._rtlvalue);}else{return this;}};nexacro._createPaddingAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedPaddingObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_padding());\n"+" newobj.set_top(v);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_padding());\n"+" newobj.set_right(v);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_padding());\n"+" newobj.set_bottom(v);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_padding());\n"+" newobj.set_left(v);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_margin=function(_a,_b,_c,_d){this.top=0;this.right=0;this.bottom=0;this.left=0;this._is_empty=true;this._bindtype=0;this._bindexpr="";this._sysvalue="";this._value="";if(_b!=null){this._is_empty=true;this._bindtype=0;this.top=_a;this.right=_b;this.bottom=_c;this.left=_d;}else if(_a&&(typeof (_a)=="string")){var _e=_a.trim();if(_e){this._parseInfo(_e);var _f=this._getValueStr();this._is_empty=(_f=="");this._sysvalue=_f;this._value=_e;}}};var _pStyleMargin=nexacro._createPrototype(nexacro.Object,nexacro.Style_margin);nexacro.Style_margin.prototype=_pStyleMargin;_pStyleMargin._type_name="Margin";_pStyleMargin.valueOf=function(){return this._value;};_pStyleMargin.toString=function(){return this._value;};_pStyleMargin.clone=function(){var _a=new nexacro.Style_margin();_a.top=this.top;_a.right=this.right;_a.bottom=this.bottom;_a.left=this.left;_a._is_empty=this._is_empty;_a._value=this._value;_a._sysvalue=this._sysvalue;return _a;};_pStyleMargin._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.top=0;this.right=0;this.bottom=0;this.left=0;this._value="";this._sysvalue="";return true;}return false;};_pStyleMargin._getValueStr=function(){switch(this._bindtype){case 0:return this.top+" "+this.right+" "+this.bottom+" "+this.left;case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleMargin._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);switch(_d.length){case 1:_a=(parseInt(_d[0])|0);this.top=this.right=this.bottom=this.left=_a;break;case 2:_a=(parseInt(_d[0])|0);this.top=this.bottom=_a;_a=(parseInt(_d[1])|0);this.right=this.left=_a;break;case 3:_a=(parseInt(_d[0])|0);this.top=_a;_a=(parseInt(_d[1])|0);this.right=this.left=_a;_a=(parseInt(_d[2])|0);this.bottom=_a;break;default:_a=(parseInt(_d[0])|0);this.top=_a;_a=(parseInt(_d[1])|0);this.right=_a;_a=(parseInt(_d[2])|0);this.bottom=_a;_a=(parseInt(_d[3])|0);this.left=_a;break;}}};_pStyleMargin._updateValue=function(){var _a=this._getValueStr();if(_a!=this._sysvalue){this._is_empty=(_a=="");this._sysvalue=_a;return true;}return false;};_pStyleMargin._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._sysvalue){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleMargin._getMarginWidth=function(){return (this.left+this.right);};_pStyleMargin._getMarginHeight=function(){return (this.top+this.bottom);};_pStyleMargin.set_top=function(_a){_a=(parseInt(_a)|0);if(_a!=this.top){this._is_empty=false;this._bindtype=0;this.top=_a;return this._updateValue();}return false;};_pStyleMargin.set_right=function(_a){_a=(parseInt(_a)|0);if(_a!=this.right){this._is_empty=false;this._bindtype=0;this.right=_a;return this._updateValue();}return false;};_pStyleMargin.set_bottom=function(_a){_a=(parseInt(_a)|0);if(_a!=this.bottom){this._is_empty=false;this._bindtype=0;this.bottom=_a;return this._updateValue();}return false;};_pStyleMargin.set_left=function(_a){_a=(parseInt(_a)|0);if(_a!=this.left){this._is_empty=false;this._bindtype=0;this.left=_a;return this._updateValue();}return false;};nexacro._createMarginAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedMarginObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_top = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_margin());\n"+" newobj.set_top(v);\n"+" newobj = nexacro._registerCachedMarginObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_right = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_margin());\n"+" newobj.set_right(v);\n"+" newobj = nexacro._registerCachedMarginObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_bottom = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_margin());\n"+" newobj.set_bottom(v);\n"+" newobj = nexacro._registerCachedMarginObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_left = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_margin());\n"+" newobj.set_left(v);\n"+" newobj = nexacro._registerCachedMarginObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_shadow=function(_a,_b,_c,_d,_e){this.type="";this.color="";this.offset="";this.factor=0;this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";this._sysvalue="";this._syscolor="";if(_b!=null){this._is_empty=true;this._bindtype=0;this.type=_a;this.color=_b;this._offset_x=_c;this._offset_y=_d;this.offset=this._offset_x+","+this._offset_y;this.factor=_e;}else if(_a&&(typeof (_a)=="string")){var _f=_a.trim();if(_f){this._parseInfo(_f);this._updateValue();}}};var _pStyleShadow=nexacro._createPrototype(nexacro.Object,nexacro.Style_shadow);nexacro.Style_shadow.prototype=_pStyleShadow;_pStyleShadow._type_name="Shadow";_pStyleShadow.valueOf=function(){return this._value;};_pStyleShadow.toString=function(){return this._value;};_pStyleShadow.clone=function(){var _a=new nexacro.Style_shadow();_a.type=this.type;_a.color=this.color;_a.offset=this.offset;_a._offset_x=this._offset_x;_a._offset_y=this._offset_y;_a.factor=this.factor;_a._sysvalue=this._sysvalue;_a._syscolor=this._syscolor;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleShadow._empty=function(){if(!this._is_empty){this.type="";this.color="";this.offset="";this._offset_x=0;this._offset_y=0;this.factor=0;this._value="";this._is_empty=true;this._bindtype=0;this._sysvalue="";this._syscolor="";return true;}return false;};_pStyleShadow._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";_a+=this.type;_a+=" ";this.offset=this._offset_x+","+this._offset_y;_a+=this.offset;_a+=" ";_a+=this.factor;_a+=" ";_a+=this.color;return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleShadow._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);if(_d.length==4){if(_d[0]=="outer"){this.type=_d[0];}var _e=_d[1].split(',');_a=(parseInt(_e[0])|0);this._offset_x=_a;if(_e.length>1){_a=(parseInt(_e[1])|0);this._offset_y=_a;}else{this._offset_y=this._offset_x;}_a=(parseInt(_d[2])|0);this.factor=_a;this.color=_d[3];}}};_pStyleShadow._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){if(this.color){var _b=nexacro._getWebColorFromXreColor(this.color);this._syscolor=_b;this._sysvalue=this._offset_x+"px "+this._offset_y+"px "+this.factor+"px "+_b;}this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleShadow._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleShadow.set_type=function(_a){if(_a!=this.type){this._is_empty=false;this._bindtype=0;if(_a=="outer"){this.type=_a;}return this._updateValue();}return false;};_pStyleShadow.set_offset=function(_a){if(_a!=this.offset){if(this._is_empty){this.type="outer";this.factor=0;this.color="gray";}this._is_empty=false;this._bindtype=0;var _b=_a.split(',');var _c=(parseInt(_b[0])|0);this._offset_x=_c;if(_b.length>1){_c=(parseInt(_b[1])|0);this._offset_y=_c;}else{this._offset_y=this._offset_x;}return this._updateValue();}return false;};_pStyleShadow.set_factor=function(_a){if(_a!=this.factor){if(this._is_empty){this.type="outer";this._offset_x=this._offset_y=0;this.color="gray";}this._is_empty=false;this._bindtype=0;var _b=(parseInt(_a)|0);this.factor=_b;return this._updateValue();}return false;};_pStyleShadow.set_color=function(_a){if(_a!=this.color){if(this._is_empty){this.type="outer";this._offset_x=this._offset_y=0;this.factor=0;}this._is_empty=false;this._bindtype=0;this.color=_a;return this._updateValue();}return false;};_pStyleShadow._createRtlValue=function(){if(!this._rtlvalue){if(this._offset_x!=0){var _a;_a=this.type+" "+this._offset_x*( -1)+","+this._offset_y+" "+this.factor+" "+this.color;this._rtlvalue=_a;}}};_pStyleShadow._getStyleObject=function(_a){this._createRtlValue();if(_a&&this._rtlvalue){return nexacro._getCachedShadowObj(this._rtlvalue);}else{return this;}};nexacro._createShadowAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedShadowObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_type = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_shadow());\n"+" newobj.set_type(v);\n"+" newobj = nexacro._registerCachedShadowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_offset = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_shadow());\n"+" newobj.set_offset(v);\n"+" newobj = nexacro._registerCachedShadowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_factor = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_shadow());\n"+" newobj.set_factor(v);\n"+" newobj = nexacro._registerCachedShadowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_shadow());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedShadowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_blur=function(_a){this.factor=0;this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";if(_a){this._is_empty=true;this._bindtype=0;_a=(parseInt(_a)|0);this.factor=_a;}};var _pStyleBlur=nexacro._createPrototype(nexacro.Object,nexacro.Style_blur);nexacro.Style_blur.prototype=_pStyleBlur;_pStyleBlur._type_name="Blur";_pStyleBlur.valueOf=function(){return this._value;};_pStyleBlur.toString=function(){return this._value;};_pStyleBlur.clone=function(){var _a=new nexacro.Style_blur();_a.factor=this.factor;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleBlur._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.factor=0;this._value="";return true;}return false;};_pStyleBlur._setValueStr=function(){var _a="";if(this.factor>0){_a=""+this.factor;}else{_a="";}return _a;};_pStyleBlur._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _a=(parseInt(v)|0);this.factor=_a;}};_pStyleBlur._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleBlur._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleBlur.set_factor=function(_a){if(_a!=this.factor){this._is_empty=false;this._bindtype=0;var _b=(parseInt(_a)|0);this.factor=_b;return this._updateValue();}return false;};nexacro._createBlurAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedBlurObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_factor = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_blur());\n"+" newobj.set_factor(v);\n"+" newobj = nexacro._registerCachedBlurObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_glow=function(_a,_b){this.color="";this.factor=0;this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";if(_b!=null){this._is_empty=false;this._bindtype=0;this.color=_a;this.factor=_b;}else if(_a&&(typeof (_a)=="string")){var _c=_a.trim();if(_c){this._parseInfo(_c);var _d=this._getValueStr();this._is_empty=(_d=="");this._value=_d;}}};var _pStyleGlow=nexacro._createPrototype(nexacro.Object,nexacro.Style_glow);nexacro.Style_glow.prototype=_pStyleGlow;_pStyleGlow._type_name="Glow";_pStyleGlow.valueOf=function(){return this._value;};_pStyleGlow.toString=function(){return this._value;};_pStyleGlow.clone=function(){var _a=new nexacro.Style_glow();_a.color=this.factor;_a.factor=this.factor;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleGlow._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.color="";this.factor=0;this._value="";return true;}return false;};_pStyleGlow._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";if(this.factor>0){_a+=this.factor+" "+this.color;}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleGlow._parseInfo=function(_a){var _b=_a.substring(0,4).toUpperCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);if(_d.length==1){_a=(parseInt(_d[0])|0);this.factor=_a;this.color="yellow";}else{_a=(parseInt(_d[0])|0);this.factor=_a;this.color=_d[1];}}};_pStyleGlow._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleGlow._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleGlow.set_factor=function(_a){if(_a!=this.factor){if(this._is_empty){this.color="yellow";}this._is_empty=false;this._bindtype=0;var _b=(parseInt(_a)|0);this.factor=_b;return this._updateValue();}return false;};_pStyleGlow.set_color=function(_a){if(_a!=this.color._value){if(this._is_empty){this.factor=0;}this._is_empty=false;this._bindtype=0;this.color=_a;return this._updateValue();}return false;};nexacro._createGlowAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedGlowObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_factor = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_glow());\n"+" newobj.set_factor(v);\n"+" newobj = nexacro._registerCachedGlowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_glow());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedGlowObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_accessibility=function(_a,_b,_c,_d,_e,_f){this.role="";this.enable=true;this.label="";this.description="";this.action="";this.desclevel="all";this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";if(_d!=null){this._is_empty=false;this._bindtype=0;this.role=_a;this.enable=nexacro._toBoolean(_b);this.label=_d;this.description=_e;this.action=_f;this.desclevel=_c;}else if(_a&&(typeof (_a)=="string")){var _g=_a.trim();if(_g){this._parseInfo(_g);var _h=this._getValueStr();this._is_empty=(_h=="");this._value=_h;}}};var _pStyleAccessibility=nexacro._createPrototype(nexacro.Object,nexacro.Style_accessibility);nexacro.Style_accessibility.prototype=_pStyleAccessibility;_pStyleAccessibility._type_name="Accessibility";_pStyleAccessibility.clone=function(){var _a=new nexacro.Style_accessibility();_a.role=this.role;_a.label=this.label;_a.desclevel=this.desclevel;_a.enable=this.enable;_a.description=this.description;_a.action=this.action;_a._role=this._role;_a._label=this._label;_a._description=this._description;_a._action=this._action;_a._value=this._value;_a._convertedValue=this._convertedValue;return _a;};_pStyleAccessibility.valueOf=function(){return this._value;};_pStyleAccessibility.toString=function(){return this._value;};_pStyleAccessibility._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.role="";this.enable=true;this.label="";this.description="";this.action="";this.desclevel="";this._value="";return true;}return false;};_pStyleAccessibility._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";if(this.role){_a+=this.role+" ";}if(this.enable){_a+="enable ";}else{_a+="disable ";}_a+=this.desclevel+" '"+this.label+"' '"+this.description+"' '"+this.action+"'";return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleAccessibility._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/ +/);if(_d.length>=3){var _e=0;var _f=_d[_e];var _g=true;var _h=0;if(_f=="enable"||_f=="disable"){this.role="";_g=false;}else{this.role=_f;_e++ ;_h=1;}if(_d[_e++ ]=="disable"){this.enable=false;}else{this.enable=true;}switch(_d[_e]){case "none":case "self":case "child":this.desclevel=_d[_e];break;default:this.desclevel="all";break;}if(_d.length>2+_h){_e++ ;for(var _i=_e;_d[_i+1]&&(!(_d[_i+1][0]=="'")||!(_d[_i][_d[_i].length-1]=="'"));){_d[_i]=_d[_i].concat(" "+_d[_i+1]);_d.splice(_i+1,1);}if(_d[_i]==_d[_i+1]&&_d[_i]=="'"){_d.splice(_i+1,1);this.label=" ";}else{var _j=_d[_e].length-2;this.label=_d[_e].substr(1,_j);}}else{this.label="";}if(_d.length>3+_h){_e++ ;for(var _i=_e;_d[_i+1]&&(!(_d[_i+1][0]=="'")||!(_d[_i][_d[_i].length-1]=="'"));){_d[_i]=_d[_i].concat(" "+_d[_i+1]);_d.splice(_i+1,1);}if(_d[_i]==_d[_i+1]&&_d[_i]=="'"){_d.splice(_i+1,1);this.description=" ";}else{var _j=_d[_e].length-2;this.description=_d[_e].substr(1,_j);}}else if(_d.length==4&&!_g){this.description=_d[_e];}else{this.description="";}if(_d.length>4+_h){_e++ ;for(var _i=_e;_i<_d.length-1;){_d[_i]=_d[_i].concat(" "+_d[_i+1]);_d.splice(_i+1,1);}var _j=_d[_e].length-2;if(_j<0){_j=0;}this.action=_d[_e].substr(1,_j);}else if(_d.length==5&&!_g){this.action=_d[_e];}else{this.action="";}}}};_pStyleAccessibility._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;return true;}return false;};_pStyleAccessibility._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleAccessibility.set_role=function(_a){if(this.role!=_a){this._is_empty=false;this._bindtype=0;this.role=_a;return this._updateValue();}};_pStyleAccessibility.set_enable=function(_a){_a=(_a?true:false);if(_a!=this.enable){if(this._is_empty){this.desclevel="all";}this._is_empty=false;this._bindtype=0;this.enable=_a;return this._updateValue();}return false;};_pStyleAccessibility.set_desclevel=function(_a){if(_a!=this.desclevel){this._is_empty=false;this._bindtype=0;switch(_a){case "none":case "self":case "child":this.desclevel=_a;break;default:this.desclevel="all";break;}return this._updateValue();}return false;};_pStyleAccessibility.set_label=function(_a){if(_a!=this.label){this._is_empty=false;this._bindtype=0;this.label=_a;return this._updateValue();}return false;};_pStyleAccessibility.set_description=function(_a){if(_a!=this.description){this._is_empty=false;this._bindtype=0;this.description=_a;return this._updateValue();}return false;};_pStyleAccessibility.set_action=function(_a){if(_a!=this.action){this._is_empty=false;this._bindtype=0;this.action=_a;return this._updateValue();}return false;};_pStyleAccessibility.apply=function(){return false;};nexacro._createAccessibilityAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (v) {\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj._setValue(v) && this._target && this._target._control_element)\n"+" this._target.$CALL$();\n"+" }\n"+" else if (styleobj) {\n"+" this[attr] = null;\n"+" if (this._target)\n"+" this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_role = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_role(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n"+"$PTYPE$.set_$ATTR$_enable = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_enable(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n"+"$PTYPE$.set_$ATTR$_desclevel = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_desclevel(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n"+"$PTYPE$.set_$ATTR$_label = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_label(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n"+"$PTYPE$.set_$ATTR$_description = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_description(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n"+"$PTYPE$.set_$ATTR$_action = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" if (!styleobj) this.$ATTR$ = styleobj = new nexacro.Style_accessibility();\n"+" if (styleobj.set_action(v) && this._target && this._target._control_element);\n"+" this._target.$CALL$();\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_fillbrush=function(_a,_b,_c){this.style="";this.color="";this.antialiasing="";this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";if(_b!=null){this._is_empty=true;this._bindtype=0;this.color=_b;this.style=_a;this.antialiasing=_c;}else if(_a&&(typeof (_a)=="string")){var _d=_a.trim();if(_d){this._parseInfo(_d);var _e=this._getValueStr();this._is_empty=(_e=="");if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}this._value=_e;}}};var _pStyleFillbrush=nexacro.Style_fillbrush.prototype=nexacro._createPrototype(nexacro.Object,nexacro.Style_fillbrush);_pStyleFillbrush._type_name="Fillbrush";_pStyleFillbrush.valueOf=function(){return this._value;};_pStyleFillbrush.toString=function(){return this._value;};_pStyleFillbrush.clone=function(){var _a=new nexacro.Style_fillbrush();_a.style=this.style;_a.color=this.color;_a.antialiasing=this.antialiasing;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleFillbrush._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.color="";this.style="";this.antialiasing="";this._value="";return true;}return false;};_pStyleFillbrush._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";if(this.style){_a+=this.style+" ";}if(this.color){_a+=this.color;}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleFillbrush._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.trim().split(",");if(_d.length==0){return;}if(_d.length==1){var _e=_a.trim().split(/\s+/);switch(_e[0]){case "none":case "solid":case "hatch":case "gradation":this.style=_e[0];}_e[1]&&(this.color=_e[1]);_e[2]&&(this.antialiasing=_e[2]);}}};_pStyleFillbrush._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._value=_a;this._is_empty=(_a=="");if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}return true;}return false;};_pStyleFillbrush._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleFillbrush._isValid=function(){return (!this._is_empty&&this.style&&this.style!="none"&&this.color&&this.color!="transparent");};_pStyleFillbrush.set_style=function(_a){var _b="";switch(_a){case "none":case "solid":case "hatch":case "gradation":_b=_a;break;}if(_b!=this.style){this._is_empty=false;this._bindtype=0;this.style=_b;return this._updateValue();}return false;};_pStyleFillbrush.set_color=function(_a){if(_a=="transparent"){_a="";}if(_a!=this.color){this._is_empty=false;this._bindtype=0;this.color=_a;return this._updateValue();}return false;};_pStyleFillbrush.set_antialiasing=function(_a){if(_a!=this.antialiasing._value){this._is_empty=false;this._bindtype=0;this.antialiasing=_a;return this._updateValue();}return false;};nexacro._createFillbrushAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedFillbrushObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_fillbrush());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedFillbrushObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_fillbrush());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedFillbrushObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_antialiasing = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_fillbrush());\n"+" newobj.set_antialiasing(v);\n"+" newobj = nexacro._registerCachedFillbrushObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_strokepen=function(_a,_b,_c,_d){this.width="";this.style="";this.color="";this.antialiasing="";this._is_empty=true;this._bindtype=0;this._bindexpr="";this._value="";if(_b!=null){this.width=_a;this.style=_b;if(_c=="transparent"){this.color="";}else{this.color=_c;}this.antialiasing=_d;}else if(_a&&(typeof (_a)=="string")){var _e=_a.trim();if(_e){this._parseInfo(_e);if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}var _f=this._getValueStr();this._is_empty=(_f=="");this._value=_f;}}};var _pStyleStrokepen=nexacro.Style_strokepen.prototype=nexacro._createPrototype(nexacro.Object,nexacro.Style_strokepen);_pStyleStrokepen._type_name="Strokepen";_pStyleStrokepen.valueOf=function(){return this._value;};_pStyleStrokepen.toString=function(){return this._value;};_pStyleStrokepen.clone=function(){var _a=new nexacro.Style_strokepen();_a.width=this.width;_a.style=this.style;_a.color=this.color;_a.antialiasing=this.antialiasing;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleStrokepen._empty=function(){if(!this._is_empty){this._is_empty=true;this._bindtype=0;this.width="";this.style="";this.color="";this.antialiasing="";this._value="";return true;}return false;};_pStyleStrokepen._getValueStr=function(){switch(this._bindtype){case 0:{var _a="";if(this.width){_a+=this.width+" ";}if(this.style){_a+=this.style+" ";}if(this.color){_a+=this.color;}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";};_pStyleStrokepen._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);var _e=(parseInt(_d[0])|0);this.width=_e;this.style=_d[1];this.color=_d[2];this.antialiasing=_d[3];}};_pStyleStrokepen._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._value=_a;if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}return true;}return false;};_pStyleStrokepen._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleStrokepen._isValid=function(){return (!this._is_empty&&this.style&&this.style!="none"&&this.color&&this.color!="transparent");};_pStyleStrokepen.set_width=function(_a){var _b=(parseInt(_a)|0);if(_b!=this.width){this._is_empty=false;this.width=_b;return this._updateValue();}return false;};_pStyleStrokepen.set_style=function(_a){var _b="";switch(_a){case "none":case "solid":case "dashdot":case "dotted":case "dashdotdot":case "dashed":_b=_a;break;}if(_b!=this.style){this._is_empty=false;this._bindtype=0;this.style=_b;return this._updateValue();}return false;};_pStyleStrokepen.set_color=function(_a){if(_a=="transparent"){_a="";}if(_a!=this.color){this._is_empty=false;this._bindtype=0;this.color=_a;return this._updateValue();}return false;};_pStyleStrokepen.set_antialiasing=function(_a){if(_a!=this.antialiasing._value){this._is_empty=false;this._bindtype=0;this.antialiasing=_a;return this._updateValue();}return false;};nexacro._createStrokepenAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedStrokepenObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_width = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_strokepen());\n"+" newobj.set_width(v);\n"+" newobj = nexacro._registerCachedStrokepenObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_strokepen());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedStrokepenObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_strokepen());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedStrokepenObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_antialiasing = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_strokepen());\n"+" newobj.set_antialiasing(v);\n"+" newobj = nexacro._registerCachedStrokepenObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro.Style_hatch=function(_a,_b){this.color="";this.style="";this._is_empty=true;this._value="";this._bindtype=0;this._bindexpr="";if(_b!=null){this._is_empty=false;this._bindtype=0;if(_b=="transparent"){this.color="";}else{this.color=_b;}this.style=_a;}else if(_a&&(typeof (_a)=="string")){var _c=_a.trim();if(_c){this._parseInfo(_c);if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}var _d=this._getValueStr();this._is_empty=(_d=="");this._value=_d;}}};var _pStyleHatch=nexacro.Style_hatch.prototype=nexacro._createPrototype(nexacro.Object,nexacro.Style_hatch);_pStyleHatch._type_name="Hatch";_pStyleHatch.valueOf=function(){return this._value;};_pStyleHatch.toString=function(){return this._value;};_pStyleHatch.clone=function(){var _a=new nexacro.Style_hatch();_a.color=this.color;_a.style=this.style;_a._is_empty=this._is_empty;_a._value=this._value;return _a;};_pStyleHatch._empty=function(){if(!this._is_empty){this.color="";this.style="";this._value="";this._is_empty=true;this._bindtype=0;return true;}return false;};_pStyleHatch._getValueStr=function(){switch(this._bindtype){case 0:{if(this.style){_a+=this.style+" ";if(this.color){_a+=this.color;}}return _a;}case 1:return "bind:"+this._bindexpr;case 2:return "expr:"+this._bindexpr;}return "";var _a="";};_pStyleHatch._parseInfo=function(_a){var _b=_a.substring(0,4).toLowerCase();if(_b=="expr"||_b=="bind"){if(_b=="bind"){this._bindtype=1;}else{this._bindtype=2;}var _c=_a.substring(4).trim();if(_c.charAt(0)=='('){this._bindexpr=_c.substr(1,_c.length-2);}else{this._bindexpr=_c.substring(1);}}else{var _d=_a.split(/\s+/);switch(_d[0]){case "none":case "horizontal":case "vertical":case "leftrightdiagonal":case "rightleftdiagonal":case "cross":case "xcross":case "lightdense":case "heavydense":this.style=_d[0];break;default:this.style="";break;}this.color=_d[1];}};_pStyleHatch._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._value=_a;if(this.color.length>0){this._syscolor=nexacro._getWebColorFromXreColor(this.color);}else{this._syscolor="";}return true;}return false;};_pStyleHatch._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyleHatch.set_color=function(_a){if(_a=="transparent"){_a="";}if(_a!=this.color){this._is_empty=false;this._bindtype=0;this.color=_a;return this._updateValue();}return false;};_pStyleHatch.set_style=function(_a){var _b="";switch(_a){case "horizontal":case "vertical":case "leftrightdiagonal":case "rightleftdiagonal":case "cross":case "xcross":case "lightdense":case "heavydense":_b=_a;break;default:_b="horizontal";break;}if(_b!=this.style){this._is_empty=false;this._bindtype=0;this.style=_b;return this._updateValue();}return false;};nexacro._createHatchAttributeEvalStr=function(_a,_b){var _c="on_update_style_"+_b;var _d="$PTYPE$.set_$ATTR$ = function (v) {\n"+" var oldobj = this.$ATTR$;\n"+" if (v) {\n"+" var styleobj = nexacro._getCachedHatchObj(v);\n"+" if (oldobj != styleobj) {\n"+" this.$ATTR$ = styleobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+" }\n"+" else if (oldobj) {\n"+" this.$ATTR$ = null;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_style = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_hatch());\n"+" newobj.set_style(v);\n"+" newobj = nexacro._registerCachedHatchObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n"+"$PTYPE$.set_$ATTR$_color = function (v) {\n"+" var styleobj = this.$ATTR$;\n"+" var newobj = styleobj ? styleobj.clone() : (new nexacro.Style_hatch());\n"+" newobj.set_color(v);\n"+" newobj = nexacro._registerCachedHatchObj(newobj);\n"+" if (newobj != styleobj) {\n"+" this.$ATTR$ = newobj;\n"+" if (this._target && this._target._control_element) this._target.$CALL$();\n"+" }\n"+"};\n";return _d.replace(/\$PTYPE\$/g,_a).replace(/\$ATTR\$/g,_b).replace(/\$CALL\$/g,_c);};nexacro._style_caches={};nexacro._getCachedStyleObj=function(_a,_b){var _c=nexacro._style_caches[_a];if(!_c){nexacro._style_caches[_a]=_c={};}var _d=_c[_b];if(!_d){switch(_a){case "background":_d=new nexacro.Style_background(_b);break;case "border":_d=new nexacro.Style_border(_b);break;case "bordertype":_d=new nexacro.Style_bordertype(_b);break;case "gradation":_d=new nexacro.Style_gradation(_b);break;case "font":_d=new nexacro.Style_font(_b);break;case "color":_d=new nexacro.Style_color(_b);break;case "align":_d=new nexacro.Style_align(_b);break;case "margin":_d=new nexacro.Style_margin(_b);break;case "padding":_d=new nexacro.Style_padding(_b);break;case "line":_d=new nexacro.Style_line(_b);break;case "fillbrush":_d=new nexacro.Style_fillbrush(_b);break;case "strokepen":_d=new nexacro.Style_strokepen(_b);break;case "hatch":_d=new nexacro.Style_hatch(_b);break;case "pointcolor":_d=new nexacro.Style_pointColor(_b);break;case "shadow":_d=new nexacro.Style_shadow(_b);break;case "blur":_d=new nexacro.Style_blur(_b);break;case "glow":_d=new nexacro.Style_glow(_b);break;case "accessibility":_d=new nexacro.Style_accessibility(_b);return _d;break;default:_d=new nexacro.Style_value(_b);}if(_d._bindtype!=0){return _d;}if(_d._value!=_b){var _e=_c[_d._value];if(_e){_c[_b]=_e;return _e;}_c[_d._value]=_d;_c[_b]=_d;return _d;}else{_c[_b]=_d;return _d;}}return _d;};nexacro._getCachedBackgroundObj=function(_a){var _b=nexacro._style_caches.background;if(!_b){nexacro._style_caches.background=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_background(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedBackgroundObj=function(_a){var _b=nexacro._style_caches.background;if(!_b){nexacro._style_caches.background=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedBorderObj=function(_a){var _b=nexacro._style_caches.border;if(!_b){nexacro._style_caches.border=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_border(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedBorderObj=function(_a){var _b=nexacro._style_caches.border;if(!_b){nexacro._style_caches.border=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedBordertypeObj=function(_a){var _b=nexacro._style_caches.bordertype;if(!_b){nexacro._style_caches.bordertype=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_bordertype(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._sysvalue];if(_d){_b[_a]=_d;return _d;}_b[_c._sysvalue]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedBordertypeObj=function(_a){var _b=nexacro._style_caches.bordertype;if(!_b){nexacro._style_caches.bordertype=_b={};_b[_a._sysvalue]=_a;return _a;}var _c=_b[_a._sysvalue];if(!_c){_b[_a._sysvalue]=_a;return _a;}return _c;};nexacro._getCachedGradationObj=function(_a){var _b=nexacro._style_caches.gradation;if(!_b){nexacro._style_caches.gradation=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_gradation(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedGradationObj=function(_a){var _b=nexacro._style_caches.gradation;if(!_b){nexacro._style_caches.gradation=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedFontObj=function(_a){var _b=nexacro._style_caches.font;if(!_b){nexacro._style_caches.font=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_font(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedFontObj=function(_a){var _b=nexacro._style_caches.font;if(!_b){nexacro._style_caches.font=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedColorObj=function(_a){var _b=nexacro._style_caches.color;if(!_b){nexacro._style_caches.color=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_color(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedColorObj=function(_a){var _b=nexacro._style_caches.color;if(!_b){nexacro._style_caches.color=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedAlignObj=function(_a){var _b=nexacro._style_caches.align;if(!_b){nexacro._style_caches.align=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_align(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedAlignObj=function(_a){var _b=nexacro._style_caches.align;if(!_b){nexacro._style_caches.align=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedMarginObj=function(_a){var _b=nexacro._style_caches.margin;if(!_b){nexacro._style_caches.margin=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_margin(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedMarginObj=function(_a){var _b=nexacro._style_caches.margin;if(!_b){nexacro._style_caches.margin=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedPaddingObj=function(_a){var _b=nexacro._style_caches.padding;if(!_b){nexacro._style_caches.padding=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_padding(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedPaddingObj=function(_a){var _b=nexacro._style_caches.padding;if(!_b){nexacro._style_caches.padding=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedLineObj=function(_a){var _b=nexacro._style_caches.line;if(!_b){nexacro._style_caches.line=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_line(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedLineObj=function(_a){var _b=nexacro._style_caches.line;if(!_b){nexacro._style_caches.line=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedGlowObj=function(_a){var _b=nexacro._style_caches.glow;if(!_b){nexacro._style_caches.glow=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_glow(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedGlowObj=function(_a){var _b=nexacro._style_caches.glow;if(!_b){nexacro._style_caches.glow=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedBlurObj=function(_a){var _b=nexacro._style_caches.blur;if(!_b){nexacro._style_caches.blur=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_blur(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedBlurObj=function(_a){var _b=nexacro._style_caches.blur;if(!_b){nexacro._style_caches.blur=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedShadowObj=function(_a){var _b=nexacro._style_caches.shadow;if(!_b){nexacro._style_caches.shadow=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_shadow(_a);if(_c._bindtype!=0){return _c;}if(_c._sysvalue!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedShadowObj=function(_a){var _b=nexacro._style_caches.shadow;if(!_b){nexacro._style_caches.shadow=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedFillbrushObj=function(_a){var _b=nexacro._style_caches.fillbrush;if(!_b){nexacro._style_caches.fillbrush=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_fillbrush(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedFillbrushObj=function(_a){var _b=nexacro._style_caches.fillbrush;if(!_b){nexacro._style_caches.fillbrush=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedStrokepenObj=function(_a){var _b=nexacro._style_caches.stroke;if(!_b){nexacro._style_caches.stroke=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_strokepen(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedStrokepenObj=function(_a){var _b=nexacro._style_caches.stroke;if(!_b){nexacro._style_caches.stroke=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedHatchObj=function(_a){var _b=nexacro._style_caches.hatch;if(!_b){nexacro._style_caches.hatch=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_hatch(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedHatchObj=function(_a){var _b=nexacro._style_caches.hatch;if(!_b){nexacro._style_caches.hatch=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedAccessibilityObj=function(_a){var _b=nexacro._style_caches.accessibility;if(!_b){nexacro._style_caches.accessibility=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_accessibility(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedAccessibilityObj=function(_a){var _b=nexacro._style_caches.accessibility;if(!_b){nexacro._style_caches.accessibility=_b={};_b[_a._value]=_a;return _a;}var _c=_b[_a._value];if(!_c){_b[_a._value]=_a;return _a;}return _c;};nexacro._getCachedValueObj=function(_a){var _b=nexacro._style_caches.value;if(!_b){nexacro._style_caches.value=_b={};}var _c=_b[_a];if(!_c){_c=new nexacro.Style_value(_a);if(_c._bindtype!=0){return _c;}if(_c._value!=_a){var _d=_b[_c._value];if(_d){_b[_a]=_d;return _d;}_b[_c._value]=_c;_b[_a]=_c;return _c;}else{_b[_a]=_c;return _c;}}return _c;};nexacro._registerCachedValueObj=function(_a,_b){var _c=nexacro._style_caches.value;if(!_c){nexacro._style_caches.value=_c={};_c[_a]=_b;if(_a!=_b._value){_c[_b._value]=_b;}return _b;}var _d=_c[_a];if(!_d){if(_a==_b._value){_c[_b._value]=_b;return _b;}_d=_c[_b._value];if(!_d){_c[_a]=_b;_c[_b._value]=_b;return _b;}_c[_a]=_d;return _d;}return _d;};nexacro.Style=function(_a){this._target=_a||null;};var _pStyle=nexacro._createPrototype(nexacro.Object,nexacro.Style);nexacro.Style.prototype=_pStyle;_pStyle.accessibility=null;_pStyle.bordertype=null;_pStyle.border=null;_pStyle.background=null;_pStyle.gradation=null;_pStyle.margin=null;_pStyle.padding=null;_pStyle.cursor=null;_pStyle.opacity=null;_pStyle.shadow=null;_pStyle.align=null;_pStyle.font=null;_pStyle.color=null;_pStyle._value="";_pStyle.rtlimagemirroring=null;_pStyle._rtlvalue="";eval(nexacro._createAccessibilityAttributeEvalStr("_pStyle","accessibility"));eval(nexacro._createBordertypeAttributeEvalStr("_pStyle","bordertype"));eval(nexacro._createBorderAttributeEvalStr("_pStyle","border"));eval(nexacro._createBackgroundAttributeEvalStr("_pStyle","background"));eval(nexacro._createGradationAttributeEvalStr("_pStyle","gradation"));eval(nexacro._createMarginAttributeEvalStr("_pStyle","margin"));eval(nexacro._createPaddingAttributeEvalStr("_pStyle","padding"));eval(nexacro._createValueAttributeEvalStr("_pStyle","cursor"));eval(nexacro._createValueAttributeEvalStr("_pStyle","opacity"));eval(nexacro._createShadowAttributeEvalStr("_pStyle","shadow"));eval(nexacro._createAlignAttributeEvalStr("_pStyle","align"));eval(nexacro._createFontAttributeEvalStr("_pStyle","font"));eval(nexacro._createColorAttributeEvalStr("_pStyle","color"));eval(nexacro._createValueAttributeEvalStr("_pStyle","rtlimagemirroring"));_pStyle._use_NC_border=true;_pStyle._use_NC_padding=true;_pStyle.__custom_emptyObject=function(){};_pStyle._empty=function(){if(!this._is_empty){this._is_empty=true;this.accessibility=null;this.bordertype=null;this.border=null;this.background=null;this.gradation=null;this.margin=null;this.padding=null;this.cursor=null;this.opacity=null;this.shadow=null;this.align=null;this.font=null;this.color=null;this.__custom_emptyObject();return true;}return false;};_pStyle.destroy=function(){this._empty();this._target=null;};_pStyle.__get_custom_style_value=function(){return "";};_pStyle._getValueStr=function(){var _a="";if(!this._is_empty){if(this.bordertype&&!this.bordertype._is_empty){_a+="bordertype:"+this.bordertype._value+"; ";}if(this.border&&!this.border._is_empty){_a+="border:"+this.border._value+"; ";}if(this.background&&!this.background._is_empty){_a+="background:"+this.background._value+"; ";}if(this.gradation&&!this.gradation._is_empty){_a+="gradation:"+this.gradation._value+"; ";}if(this.margin&&!this.margin._is_empty){_a+="margin:"+this.margin._value+"; ";}if(this.padding&&!this.padding._is_empty){_a+="padding:"+this.padding._value+"; ";}if(this.cursor&&!this.cursor._is_empty){_a+="cursor:"+this.cursor._value+"; ";}if(this.opacity&&!this.opacity._is_empty){_a+="opacity:"+this.opacity._value+"; ";}if(this.shadow&&!this.shadow._is_empty){_a+="shadow:"+this.shadow._value+"; ";}if(this.align&&!this.align._is_empty){_a+="align:"+this.align._value+"; ";}if(this.font&&!this.font._is_empty){_a+="font:"+this.font._value+"; ";}if(this.color&&!this.color._is_empty){_a+="color:"+this.color._value+"; ";}if(this.accessibility&&!this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}if(this.rtlimagemirroring&&!this.rtlimagemirroring._is_empty){_a+="rtlimagemirroring:"+this.rtlimagemirroring._value+"; ";}_a+=this.__get_custom_style_value();_a=_a.trim();}return _a;};_pStyle._parseInfo=function(_a){var _b=_a.split(";");var _c,_d;for(var _e=0;_e<_b.length;_e++ ){var _f=_b[_e];var _g=_f.indexOf(":");propname=_f.substring(0,_g).trim();propval=_f.substring(_g+1).trim();if(propname&&propval){var _h=this["set_"+propname];if(_h){_h.call(this,propval);}}}};_pStyle._updateValue=function(){var _a=this._getValueStr();if(_a!=this._value){this._is_empty=(_a=="");this._value=_a;}return this._value;};_pStyle._setValue=function(_a){if(_a&&typeof (_a)=="string"){var _b=_a.trim();if(_b!=this._value){if(_b){this._parseInfo(_b);return this._updateValue();}else{return this._empty();}}return false;}return this._empty();};_pStyle.getStyleValue=function(_a,_b){var _c;if(_b=="normal"){_c=this._target.style[_a];}else{_c=this._target._styles[_b];}return _c?_c.toString():undefined;};_pStyle.setStyleValue=function(stylePropID,pseudo,value){var retval=false;if(!stylePropID||!pseudo||!value){return false;}if(pseudo=="normal"){var fn=this["set_"+stylePropID];if(fn){eval("this.set_"+stylePropID+"(value)");}return true;}else{var styleType=this._find_styleType(stylePropID);switch(styleType){case 0:retval=this._setAlignPseudoStyle(stylePropID,pseudo,value);break;case 1:retval=this._setBackgroundPseudoStyle(stylePropID,pseudo,value);break;case 2:retval=this._setBorderPseudoStyle(stylePropID,pseudo,value);break;case 3:retval=this._setBordertypePseudoStyle(stylePropID,pseudo,value);break;case 4:retval=this._setColorPseudoStyle(stylePropID,pseudo,value);break;case 5:retval=this._setCursorPseudoStyle(stylePropID,pseudo,value);break;case 6:retval=this._setFontPseudoStyle(stylePropID,pseudo,value);break;case 7:retval=this._setGlowPseudoStyle(stylePropID,pseudo,value);break;case 8:retval=this._setGradationPseudoStyle(stylePropID,pseudo,value);break;case 9:retval=this._setMarginPseudoStyle(stylePropID,pseudo,value);break;case 10:retval=this._setOpacityPseudoStyle(stylePropID,pseudo,value);break;case 11:retval=this._setPaddingPseudoStyle(stylePropID,pseudo,value);break;case 12:retval=this._setShadowPseudoStyle(stylePropID,pseudo,value);break;case 13:retval=this._setAccessibilityPseudoStyle(stylePropID,pseudo,value);break;default:return retval;}}return retval;};_pStyle._find_styleType=function(_a){var _b= -1;if(_a.indexOf("align")>=0){_b=0;}else if(_a.indexOf("background")>=0){_b=1;}else if(_a.indexOf("bordertype")>=0){_b=3;}else if(_a.indexOf("border")>=0){_b=2;}else if(_a.indexOf("color")>=0){_b=4;}else if(_a.indexOf("cursor")>=0){_b=5;}else if(_a.indexOf("font")>=0){_b=6;}else if(_a.indexOf("glow")>=0){_b=7;}else if(_a.indexOf("gradation")>=0){_b=8;}else if(_a.indexOf("margin")>=0){_b=9;}else if(_a.indexOf("opacity")>=0){_b=10;}else if(_a.indexOf("padding")>=0){_b=11;}else if(_a.indexOf("shadow")>=0){_b=12;}else if(_a.indexOf("accessibility")>=0){_b=13;}return _b;};_pStyle._setAlignPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedAlignObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedAlignObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setBackgroundPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedBackgroundObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedBackgroundObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setBorderPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedBorderObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedBorderObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setBordertypePseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedBordertypeObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedBordertypeObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setColorPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedColorObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedColorObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setCursorPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedStyleObj("cursor",_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedStyleObj("cursor",_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setFontPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedFontObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedFontObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setGlowPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedGlowObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedGlowObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setGradationPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedGradationObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedGradationObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setMarginPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedMarginObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedMarginObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setOpacityPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedStyleObj("opacity",_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedStyleObj("opacity",_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setPaddingPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedPaddingObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedPaddingObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setShadowPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedShadowObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedShadowObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle._setAccessibilityPseudoStyle=function(_a,_b,_c){var _d=null;var _e=this._target;if(!_e){return false;}if(_e._styles[_b]){_d=_e._styles[_b][_a]=nexacro._getCachedAccessibilityObj(_c);}else{var _f=_e.on_create_custom_style();_d=_f[_a]=nexacro._getCachedAccessibilityObj(_c);_e._styles[_b]=_f;}if(!_d){return false;}return true;};_pStyle.set_glow=function(_a){};_pStyle.set_blur=function(_a){};delete _pStyle;nexacro.CurrentStyle=function(){};var _pCurrentStyle=nexacro._createPrototype(nexacro.Object,nexacro.CurrentStyle);nexacro.CurrentStyle.prototype=_pCurrentStyle;_pCurrentStyle.accessibility=null;_pCurrentStyle.bordertype=null;_pCurrentStyle.border=null;_pCurrentStyle.background=null;_pCurrentStyle.gradation=null;_pCurrentStyle.margin=null;_pCurrentStyle.padding=null;_pCurrentStyle.cursor=null;_pCurrentStyle.opacity=null;_pCurrentStyle.shadow=null;_pCurrentStyle.align=null;_pCurrentStyle.font=null;_pCurrentStyle.color=null;_pCurrentStyle.rtlimagemirroring=null;_pCurrentStyle._value="";_pCurrentStyle._rtlvalue="";_pCurrentStyle.__get_custom_style_value=function(){return "";};_pCurrentStyle.getStyleValue=function(_a){return this[_a]?this[_a]._value:undefined;};_pCurrentStyle.__custom_emptyObject=function(){};_pCurrentStyle._empty=function(){this._is_empty=true;this.accessibility=null;this.bordertype=null;this.border=null;this.background=null;this.gradation=null;this.margin=null;this.padding=null;this.cursor=null;this.opacity=null;this.shadow=null;this.align=null;this.font=null;this.color=null;this.__custom_emptyObject();return true;};nexacro._cloneStyleObject=function(_a){var _b={},_c;if(typeof (_a)=="object"){for(_c in _a){if(_c!="_target"){var _d=_a[_c];if(_d==null){_b[_c]=null;}else{if(typeof (_d)=="object"){if(_d._is_array){_b[_c]=nexacro._cloneStyleArray(_a[_c]);}else if(_d.__is_selector){_b[_c]=nexacro._cloneStyleObject(_d);}else{_b[_c]=_d;}}else{_b[_c]=_d;}}}}}return _b;};nexacro._cloneStyleArray=function(_a){var _b=[];for(var _c=0,_d=_a.length;_c<=_d;_c++ ){var _e=_a[_c];if(typeof (_e)=="object"){if(_e._is_array){_b.push(nexacro._cloneStyleArray(oldObject[prop]));}else if(_e._is_selector){_b.push(nexacro._cloneStyleObject(_e));}else{_b.push(_e);}}else{_b.push(_e);}}return _b;};nexacro._bInitCssObjects=true;}