var DvtElement=function(a){this.Init(a)};dvt.Obj.createSubclass(DvtElement,dvt.Obj);DvtElement.prototype.Init=function(a){this.nodeName=a;this.previousSibling=this.nextSibling=this.parentNode=this.firstChild=null;this.attributes={};this.childNodes=[];this.childElementCount=0;this.nodeValue=null};DvtElement.prototype.addEventListener=function(a,b,c){document.addListenerCount++};DvtElement.prototype.removeEventListener=function(a,b,c){document.removeListenerCount++};
DvtElement.prototype.appendChild=function(a){document.appendChildCount++;if(a){a.parentNode&&a.parentNode.removeChild(a);var b=dvt.ArrayUtils.getIndex(this.childNodes,a);-1!=b&&(this.childNodes.splice(b,1),this.childElementCount--);a.parentNode=this;this.childNodes.push(a);this.childElementCount++;this._setFamilyTree()}};
DvtElement.prototype.cloneNode=function(a){var b=new DvtElement(this.nodeName),c;for(c in this.attributes)b.attributes[c]=this.attributes[c];if(a)for(c=0;c<this.childNodes.length;c++){var d=this.childNodes[c].cloneNode(a);b.appendChild(d)}return b};DvtElement.prototype.dispatchEvent=function(a){};DvtElement.prototype.getAttributeNS=function(a,b){document.getAttrCount++;var c=this.attributes[b];return null==c?c:""+c};DvtElement.prototype.getAttribute=function(a){return this.getAttributeNS(null,a)};
DvtElement.prototype.getBBox=function(){document.getBBoxCount++;var a=this._obj.getTypeName();a?(a=a.replace(/[0-9\$]+/g,""),a=a.charAt(0).toUpperCase()+a.slice(1)):a="unknown";document.bboxInfo[a]?document.bboxInfo[a]++:document.bboxInfo[a]=1;return DvtJavaDimensionUtils.getDimensions(this._obj)};DvtElement.prototype.hasAttributeNS=function(a,b){return null!=this.getAttributeNS(a,b)};
DvtElement.prototype.insertBefore=function(a,b){if(-1<dvt.ArrayUtils.getIndex(this.childNodes,b)){a.parentNode&&a.parentNode.removeChild(a);var c=dvt.ArrayUtils.getIndex(this.childNodes,a);-1!=c&&(this.childNodes.splice(c,1),this.childElementCount--);a.parentNode=this;this.childNodes.splice(dvt.ArrayUtils.getIndex(this.childNodes,b),0,a);this.childElementCount++;this._setFamilyTree()}else this.appendChild(a)};
DvtElement.prototype.removeChild=function(a){document.removeChildCount++;var b=dvt.ArrayUtils.getIndex(this.childNodes,a);-1!=b&&(a.parentNode=null,this.childNodes.splice(b,1),this.childElementCount--,this._setFamilyTree())};DvtElement.prototype.removeAttributeNS=function(a,b){document.setAttrCount++;delete this.attributes[b]};
DvtElement.prototype.replaceChild=function(a,b){if(-1<dvt.ArrayUtils.getIndex(this.childNodes,b)){a.parentNode&&a.parentNode.removeChild(a);var c=dvt.ArrayUtils.getIndex(this.childNodes,a);-1!=c&&(this.childNodes.splice(c,1),this.childElementCount--);a.parentNode=this;b.parentNode=null;this.childNodes.splice(dvt.ArrayUtils.getIndex(this.childNodes,b),1,a);this._setFamilyTree()}};
DvtElement.prototype.setAttributeNS=function(a,b,c){document.setAttrCount++;DvtDocument.setAttrMap[b]=DvtDocument.setAttrMap[b]?DvtDocument.setAttrMap[b]+1:1;this.attributes[b]=c};DvtElement.prototype.setAttribute=function(a,b){this.setAttributeNS(null,a,b)};
DvtElement.prototype.toString=function(){for(var a="\x3c"+this.nodeName,b=this._getSortedSvgAttributes(),c=0;c<b.length;c++){var d=b[c],e=this.attributes[d];null!=e&&"undefined"!=typeof e&&("number"==typeof e&&(e=dvt.ToolkitUtils.roundDecimal(e)),a+=" "+d+'\x3d"'+e+'"')}a+="\x3e";for(b=0;b<this.childNodes.length;b++)a+=this.childNodes[b].toString();return a+="\x3c/"+this.nodeName+"\x3e"};
DvtElement.prototype._setFamilyTree=function(){var a=this.childNodes.length;if(0<a){for(var b=0;b<a;b++){var c=this.childNodes[b];0==b&&(c.previousSibling=null);0<b&&(c.previousSibling=this.childNodes[b-1]);b<a-1&&(c.nextSibling=this.childNodes[b+1]);b==a-1&&(c.nextSibling=null)}this.firstChild=this.childNodes[0];this.lastChild=this.childNodes[a-1]}else this.lastChild=this.firstChild=null};
DvtElement.prototype._getSortedSvgAttributes=function(){var a=[];if(this.attributes[dvt.CSSStyle.FONT_SIZE]){var b=parseFloat(this.attributes[dvt.CSSStyle.FONT_SIZE]);this.attributes[dvt.CSSStyle.FONT_SIZE]=isNaN(b)?CSSStyleUtils.parseFontSize(this.attributes[dvt.CSSStyle.FONT_SIZE]):b}for(var c in this.attributes)if(c==dvt.CSSStyle.FONT_FAMILY&&(this.attributes[dvt.CSSStyle.FONT_FAMILY]=this.attributes[dvt.CSSStyle.FONT_FAMILY].replace(/"/g,"'")),dvt.Agent.isEnvironmentBatik())if("dominant-baseline"==
c){for(var d,b=this;null==d&&null!=b;)d=b.attributes[dvt.CSSStyle.FONT_SIZE],b=b.parentNode;if(d){switch(this.attributes[c]){case "text-before-edge":b=-1;break;case "middle":b=-.25;break;case "text-after-edge":b=-.15;break;default:b=1}this.attributes["baseline-shift"]||a.push("baseline-shift");this.attributes["baseline-shift"]=b*d}}else-1==c.indexOf("aria")&&"vector-effect"!=c&&a.push(c);else a.push(c);return a.sort()};
var DvtTextNode=function(a){this.nodeName="#text";this.nodeValue=a};dvt.Obj.createSubclass(DvtTextNode,dvt.Obj);DvtTextNode.prototype.toString=function(){return this.nodeValue};
var DvtDocument=function(){this.documentElement={};this.shapeContainerCount=this.removeListenerCount=this.addListenerCount=this.removeChildCount=this.appendChildCount=this.getBBoxCount=this.setAttrCount=this.getAttrCount=0;this.bboxInfo={}};dvt.Obj.createSubclass(DvtDocument,dvt.Obj);DvtDocument.setAttrMap={};DvtDocument.prototype.appendChild=function(a){};
DvtDocument.prototype.createElement=function(a){var b=new DvtElement(a);"svg"==a&&(dvt.ToolkitUtils.setAttrNullNS(b,"xmlns",dvt.ToolkitUtils.SVG_NS),dvt.ToolkitUtils.setAttrNullNS(b,"xmlns:xlink",dvt.ToolkitUtils.XLINK_NS));return b};DvtDocument.prototype.createElementNS=function(a,b){return this.createElement(b)};DvtDocument.prototype.createTextNode=function(a){return new DvtTextNode(a)};DvtDocument.prototype.elementFromPoint=function(a,b){return null};DvtDocument.prototype.getElementById=function(a){return null};
DvtDocument.prototype.querySelector=function(a){return null};
DvtDocument.prototype.getPerformanceCounts=function(){var a="",b=[];if(0<this.getBBoxCount){var a=a+("\x3cbr\x3egetBBox: "+this.getBBoxCount),c;for(c in this.bboxInfo)b.push(c);b.sort();for(var d=0;d<b.length;d++)a+="\x3cbr\x3e"+b[d]+": "+this.bboxInfo[b[d]]}a=a+"\x3cbr\x3e"+("\x3cbr\x3eget/setAttributeNS: "+this.getAttrCount+"/"+this.setAttrCount);a+="\x3cbr\x3eappend/removeChild: "+this.appendChildCount+"/"+this.removeChildCount;a+="\x3cbr\x3eadd/removeEventListener: "+this.addListenerCount+"/"+
this.removeListenerCount;0<this.shapeContainerCount&&(a+="\x3cbr\x3eshapeContainerCount: "+this.shapeContainerCount);DvtDocument.instanceCount=DvtDocument.instanceCount?DvtDocument.instanceCount+1:1;DvtDocument.getBBoxCount=DvtDocument.getBBoxCount?DvtDocument.getBBoxCount+this.getBBoxCount:this.getBBoxCount;DvtDocument.getAttrCount=DvtDocument.getAttrCount?DvtDocument.getAttrCount+this.getAttrCount:this.getAttrCount;DvtDocument.setAttrCount=DvtDocument.setAttrCount?DvtDocument.setAttrCount+this.setAttrCount:
this.setAttrCount;DvtDocument.appendChildCount=DvtDocument.appendChildCount?DvtDocument.appendChildCount+this.appendChildCount:this.appendChildCount;DvtDocument.removeChildCount=DvtDocument.removeChildCount?DvtDocument.removeChildCount+this.removeChildCount:this.removeChildCount;DvtDocument.addListenerCount=DvtDocument.addListenerCount?DvtDocument.addListenerCount+this.addListenerCount:this.addListenerCount;DvtDocument.removeListenerCount=DvtDocument.removeListenerCount?DvtDocument.removeListenerCount+
this.removeListenerCount:this.removeListenerCount;DvtDocument.shapeContainerCount=DvtDocument.shapeContainerCount?DvtDocument.shapeContainerCount+this.shapeContainerCount:this.shapeContainerCount;for(c in this.bboxInfo)DvtDocument.bboxInfo||(DvtDocument.bboxInfo={}),DvtDocument.bboxInfo[c]||(DvtDocument.bboxInfo[c]=0),DvtDocument.bboxInfo[c]+=this.bboxInfo[c];return a};
DvtDocument.prototype.getTotalPerformanceCounts=function(){var a="\x3cbr\x3eInstances Tested: "+DvtDocument.instanceCount,a=a+("\x3cbr\x3e\x3cbr\x3egetBBox Total: "+DvtDocument.getBBoxCount),b=[],c;for(c in DvtDocument.bboxInfo)b.push(c);b.sort();for(var d=0;d<b.length;d++)a+="\x3cbr\x3e"+b[d]+": "+DvtDocument.bboxInfo[b[d]];a+="\x3cbr\x3e\x3cbr\x3eget/setAttributeNS: "+DvtDocument.getAttrCount+"/"+DvtDocument.setAttrCount;b=[];for(c in DvtDocument.setAttrMap)b.push(c);b.sort();for(d=0;d<b.length;d++)a+=
"\x3cbr\x3e"+b[d]+": "+DvtDocument.setAttrMap[b[d]];a+="\x3cbr\x3e\x3cbr\x3eappend/removeChild: "+DvtDocument.appendChildCount+"/"+DvtDocument.removeChildCount;a+="\x3cbr\x3eadd/removeEventListener: "+DvtDocument.addListenerCount+"/"+DvtDocument.removeListenerCount;0<DvtDocument.shapeContainerCount&&(a+="\x3cbr\x3eshapeContainerCount: "+DvtDocument.shapeContainerCount);DvtDocument.instanceCount=null;DvtDocument.getBBoxCount=null;DvtDocument.bboxInfo=null;DvtDocument.getAttrCount=null;DvtDocument.setAttrCount=
null;DvtDocument.setAttrMap={};DvtDocument.appendChildCount=null;DvtDocument.removeChildCount=null;DvtDocument.addListenerCount=null;DvtDocument.removeListenerCount=null;DvtDocument.shapeContainerCount=null;return a};
var DvtJsonParser={parse:function(a){if(!a)return null;a=dvt.StringUtils.trim(a);var b=a.charAt(0);if("["==b||"{"==b){for(var c=0,d=0,e=0,f=1,g=[],h=1;h<a.length-1;h++){var k=a.charAt(h);"["==k||"{"==k?c++:"]"==k||"}"==k?c--:"'"==k&&0==e%2?d++:'"'==k&&0==d%2&&e++;0==c&&0==d%2&&0==e%2&&","==k&&(g.push(a.substring(f,h)),f=h+1)}f<a.length-1&&g.push(a.substring(f,a.length-1));var l;if("["==b)for(l=[],h=0;h<g.length;h++)l.push(DvtJsonParser.parse(g[h]));else if("{"==b)for(l={},h=0;h<g.length;h++)b=g[h],
c=b.indexOf(":"),a=b.substring(1,c-1),b=DvtJsonParser.parse(b.substring(c+1,b.length)),l[a]=b;return l}if('"'==b)return a.substring(1,a.length-1);if("true"==a)return!0;if("false"==a)return!1;if("null"==a)return null;if(dvt.Agent.isEnvironmentTest()&&"eval("==a.substring(0,5)){g=window;l=a.substring(5,a.length-3).split(".");for(h=0;h<l.length;h++)g=g[l[h]];return g()}return Number(a)}};
var DvtJavaDimensionUtils=function(){};dvt.Obj.createSubclass(DvtJavaDimensionUtils,dvt.Obj);DvtJavaDimensionUtils.getDimensions=function(a){a=DvtJavaDimensionUtils._getDimensions(a,!1);return{x:a.x,y:a.y,width:a.w,height:a.h}};DvtJavaDimensionUtils.getDimensionsWithStroke=function(a){a=DvtJavaDimensionUtils._getDimensions(a,!0);return{x:a.x,y:a.y,width:a.w,height:a.h}};
DvtJavaDimensionUtils._getDimensions=function(a,b){var c=!1,d=a.getNumChildren?a.getNumChildren():0,e;e=b?DvtJavaDimensionUtils._getDimensionsSelfWithStroke(a):DvtJavaDimensionUtils._getDimensionsSelf(a);e||(e=new dvt.Rectangle,0<d&&(e.x=Number.MAX_VALUE,e.y=Number.MAX_VALUE),c=!0);for(var f,g,h,k,l=!1,m=d-1;0<=m;m--){var n=a.getChildAt(m),p;if(p=b?n.getDimensionsWithStroke():n.getDimensions()){if(0!==p.w&&0!==p.h)p=DvtJavaDimensionUtils._applyMatrix(n,p);else if(m<d-1)continue;if(!l||p.x<f)f=p.x;
if(!l||p.y<g)g=p.y;if(!l||p.x+p.w>h)h=p.x+p.w;if(!l||p.y+p.h>k)k=p.y+p.h;l=!0}}l&&(c||(f=Math.min(f,e.x),g=Math.min(g,e.y),h=Math.max(h,e.x+e.w),k=Math.max(k,e.y+e.h)),e.x=f,e.y=g,e.w=h-f,e.h=k-g);return e};
DvtJavaDimensionUtils._applyMatrix=function(a,b){var c=a.getMatrix();if(c&&!c.isIdentity()){var d,e,f,g;d=c.transformPoint(new dvt.Point(b.x,b.y));e=c.transformPoint(new dvt.Point(b.x+b.w,b.y));f=c.transformPoint(new dvt.Point(b.x,b.y+b.h));g=c.transformPoint(new dvt.Point(b.x+b.w,b.y+b.h));var c=Math.min(Math.min(d.x,e.x),Math.min(f.x,g.x)),h=Math.max(Math.max(d.x,e.x),Math.max(f.x,g.x)),k=Math.min(Math.min(d.y,e.y),Math.min(f.y,g.y));d=Math.max(Math.max(d.y,e.y),Math.max(f.y,g.y));b.x=c;b.y=k;b.w=
h-c;b.h=d-k}return b};
DvtJavaDimensionUtils._getDimensionsSelf=function(a){var b,c;if(a instanceof dvt.Line){c=Math.min(a.getX1(),a.getX2());var d=Math.min(a.getY1(),a.getY2());b=Math.abs(a.getX1()-a.getX2());a=Math.abs(a.getY1()-a.getY2());b=new dvt.Rectangle(c,d,b,a)}else a instanceof dvt.Rect||a instanceof dvt.Image?b=new dvt.Rectangle(a.getX(),a.getY(),a.getWidth(),a.getHeight()):a instanceof dvt.Circle?(c=a.getRadius(),b=c+c,b=new dvt.Rectangle(a.getCx()-c,a.getCy()-c,b,b)):a instanceof dvt.Oval?(c=a.getRadius(),
b=a.getRx(),d=a.getRy(),b=null===b||isNaN(b)?c:b,d=null===d||isNaN(d)?c:d,b=new dvt.Rectangle(a.getCx()-b,a.getCy()-d,2*b,2*d)):a instanceof dvt.SimpleMarker||a instanceof dvt.ImageMarker?b=new dvt.Rectangle(a.getCx()-a.getWidth()/2,a.getCy()-a.getHeight()/2,a.getWidth(),a.getHeight()):a instanceof dvt.OutputText||a instanceof dvt.BackgroundOutputText?b=DvtJavaDimensionUtils._getTextDimensions(a,a.getTextString()):a instanceof dvt.Path?b=dvt.PathUtils.getDimensions(a.getCommands()):a instanceof dvt.Polyline||
a instanceof dvt.Polygon?b=dvt.PolygonUtils.getDimensions(a.getPoints()):a instanceof dvt.Arc?(b=a.getRx(),d=a.getRy(),b=new dvt.Rectangle(a.getCx()-b,a.getCy()-d,2*b,2*d)):"dvt.TextFormatted"==a.getTypeName()?(b=DvtJavaDimensionUtils._getCSSStyleMap(a),b=DvtJavaDimensionUtils._getTextFormattedDimensions(a,a.getElem(),b)):"dvt.Text"==a.getTypeName()&&(b=DvtJavaDimensionUtils._getTextDimensions(a,a.impl_getText()));return b};
DvtJavaDimensionUtils._getTextFormattedDimensions=function(a,b,c){for(var d=new dvt.Rectangle,e=0;e<b.childNodes.length;e++){var f=b.childNodes[e];if("#text"==f.nodeName&&f.nodeValue)d=d.getUnion(DvtJavaDimensionUtils._getJavaTextDim(a,f.nodeValue,c));else if("tspan"==f.nodeName){var g=f,h=new Hashtable(c),k=dvt.ToolkitUtils.getAttrNullNS(g,"font-family");k&&h.put(TextAttribute.FAMILY,k.replace(/"/g,"'"));k=dvt.ToolkitUtils.getAttrNullNS(g,"font-style");"italic"!=k&&"oblique"!=k||h.put(TextAttribute.POSTURE,
TextAttribute.POSTURE_OBLIQUE);k=dvt.ToolkitUtils.getAttrNullNS(g,"font-weight");"regular"==k?h.put(TextAttribute.WEIGHT,TextAttribute.WEIGHT_REGULAR):"bold"==k&&h.put(TextAttribute.WEIGHT,TextAttribute.WEIGHT_BOLD);f=DvtJavaDimensionUtils._getTextFormattedDimensions(a,f,h);if(h=dvt.ToolkitUtils.getAttrNullNS(g,"dy"))f.y+=parseFloat(h.substr(0,h.indexOf("em")))*f.h;if(g=dvt.ToolkitUtils.getAttrNullNS(g,"dx"))f.x+=parseFloat(g.substr(0,g.indexOf("em")))*f.h;d=d.getUnion(f)}}return d};
DvtJavaDimensionUtils._getTextDimensions=function(a,b){var c=DvtJavaDimensionUtils._getCSSStyleMap(a);return DvtJavaDimensionUtils._getJavaTextDim(a,b,c)};
DvtJavaDimensionUtils._getJavaTextDim=function(a,b,c){c=new Font(c);var d=(new BufferedImage(10,10,BufferedImage.TYPE_INT_ARGB)).createGraphics();c=d.getFontMetrics(c);b=c.getStringBounds(b,d);b=new dvt.Rectangle(a.getX(),a.getY(),b.getWidth(),b.getHeight());d=a.getHorizAlignment();a=a.getVertAlignment();d===dvt.OutputText.H_ALIGN_RIGHT?b.x-=b.w:d===dvt.OutputText.H_ALIGN_CENTER&&(b.x-=b.w/2);a===dvt.OutputText.V_ALIGN_AUTO||dvt.Agent.isPlatformIE()?b.y=b.y-b.h+c.getDescent():a===dvt.OutputText.V_ALIGN_BOTTOM?
b.y-=b.h:a===dvt.OutputText.V_ALIGN_MIDDLE&&(b.y-=b.h/2);return b};
DvtJavaDimensionUtils._getCSSStyleMap=function(a){var b=new Hashtable;a instanceof dvt.OutputText||a instanceof dvt.BackgroundOutputText?(b.put(TextAttribute.FAMILY,a.getCtx().getDefaultFontFamily()),b.put(TextAttribute.SIZE,CSSStyleUtils.parseFontSize(a.getCtx().getDefaultFontSize()))):b.put(TextAttribute.FAMILY,"tahoma, sans-serif");var c=a.getRotation();c&&b.put(TextAttribute.TRANSFORM,AffineTransform.getRotateInstance(c));if(a=a.getCSSStyle()){(c=a.getStyle("font-family"))&&b.put(TextAttribute.FAMILY,
c.replace(/"/g,"'"));if(c=a.getStyle("font-size")){var d=parseFloat(c);b.put(TextAttribute.SIZE,isNaN(d)?CSSStyleUtils.parseFontSize(c):d)}((c=a.getStyle("font-style"))&&"italic"==c||"oblique"==c)&&b.put(TextAttribute.POSTURE,TextAttribute.POSTURE_OBLIQUE);(c=a.getStyle("font-weight"))&&("regular"==c?b.put(TextAttribute.WEIGHT,TextAttribute.WEIGHT_REGULAR):"bold"==c&&b.put(TextAttribute.WEIGHT,TextAttribute.WEIGHT_BOLD));(c=a.getStyle("text-decoration"))&&"underline"==c&&b.put(TextAttribute.UNDERLINE,
TextAttribute.UNDERLINE_ON)}return b};DvtJavaDimensionUtils._getDimensionsSelfWithStroke=function(a){var b=DvtJavaDimensionUtils._getDimensionsSelf(a);if(b&&a&&a.getStroke&&(a=a.getStroke())&&(a=a.getWidth())){var c=.5*a;b.x-=c;b.y-=c;b.w+=a;b.h+=a}return b};
dvt.JavaConverter={};dvt.Obj.createSubclass(dvt.JavaConverter,dvt.Obj);dvt.JavaConverter.jetConverter=function(){return{format:dvt.JavaConverter._format}};dvt.JavaConverter.mafConverter=function(){return{getAsString:dvt.JavaConverter._format}};dvt.JavaConverter.jetTimeLabel1Converter=function(){return{format:dvt.JavaConverter._formatLevel1Date}};dvt.JavaConverter.jetTimeLabel2Converter=function(){return{format:dvt.JavaConverter._formatLevel2Date}};
dvt.JavaConverter._format=function(a){return"*"+a+"*"};dvt.JavaConverter._formatLevel1Date=function(a){return a?"*"+(a.getMonth()+1).toString()+"*":null};dvt.JavaConverter._formatLevel2Date=function(a){return a?"*"+a.toString().split(" ")[3]+"*":null};
var DvtJavaXmlNode=function(a){this.Init(a)};dvt.Obj.createSubclass(DvtJavaXmlNode,dvt.XmlNode);DvtJavaXmlNode.prototype.Init=function(a){this._node=a};DvtJavaXmlNode.prototype.CreateNode=function(a){return new DvtJavaXmlNode(a)};DvtJavaXmlNode.prototype.getAttr=function(a){if(!this._node.hasAttribute(a))return null;a=this._node.getAttribute(a);return(new String(a)).toString()};DvtJavaXmlNode.prototype.getFirstChild=function(){var a=this._node.getFirstChild();return a?this.CreateNode(a):null};
DvtJavaXmlNode.prototype.getChildNodes=function(){for(var a=[],b=this._node.getFirstChild();null!=b;)b.getNodeType()==Node.ELEMENT_NODE&&a.push(this.CreateNode(b)),b=b.getNextSibling();return a};DvtJavaXmlNode.prototype.getName=function(){return(new String(this._node.getNodeName())).toString()};DvtJavaXmlNode.prototype.getAttributes=function(){for(var a=[],b=this._node.getAttributes(),c=b.length,d=0;d<c;d++){var e=b.item(d);a.push({name:(new String(e.getNodeName())).toString(),value:(new String(e.getNodeValue())).toString()})}return a};
DvtJavaXmlNode.prototype.getAllChildNodes=function(){for(var a=[],b=this._node.getFirstChild();null!=b;)a.push(this.CreateNode(b)),b=b.getNextSibling();return a};DvtJavaXmlNode.prototype.getNodeValue=function(){return(new String(this._node.getNodeValue())).toString()};DvtJavaXmlNode.prototype.getTextContent=function(){return(new String(this._node.getTextContent())).toString()};
DvtJavaXmlNode.prototype.getElementsByTagName=function(a){var b=[];if(a=this._node.getElementsByTagName(a))for(var c=0;c<a.length;c++)a.item&&b.push(this.CreateNode(a.item(c)));return b};
var DvtJavaXmlParser=function(){var a=DocumentBuilderFactory.newInstance();a.setIgnoringElementContentWhitespace(!0);a.setIgnoringComments(!0);this._parser=a.newDocumentBuilder()};dvt.Obj.createSubclass(DvtJavaXmlParser,dvt.Obj);DvtJavaXmlParser.prototype.parse=function(a){a=java.lang.String.valueOf(a);a=this._parser.parse(new ByteArrayInputStream(a.getBytes())).getDocumentElement();return new DvtJavaXmlNode(a)};
var DvtDOMNode=function(a){this.Init(a);this.childNodes=this.getChildNodes();this.nodeName=this.getName();this.textContent=this.getTextContent()};dvt.Obj.createSubclass(DvtDOMNode,DvtJavaXmlNode);DvtDOMNode.prototype.CreateNode=function(a){return new DvtDOMNode(a)};DvtDOMNode.prototype.getAttribute=function(a){return this.getAttr(a)};DvtDOMNode.prototype.hasChildNodes=function(){return 0<this.getChildNodes().length};
var DvtDOMParser=function(){var a=DocumentBuilderFactory.newInstance();a.setIgnoringElementContentWhitespace(!0);a.setIgnoringComments(!0);this._parser=a.newDocumentBuilder()};dvt.Obj.createSubclass(DvtDOMParser,dvt.Obj);DvtDOMParser.prototype.parseFromString=function(a){a=java.lang.String.valueOf(a);a=this._parser.parse(new ByteArrayInputStream(a.getBytes())).getDocumentElement();return new DvtDOMNode(a)};
dvt.JavaImageLoader={};dvt.Obj.createSubclass(dvt.JavaImageLoader,dvt.Obj);dvt.JavaImageLoader._cache={};dvt.JavaImageLoader.addBubbleEventListener=function(a,b,c){return!1};dvt.JavaImageLoader.loadImage=function(a,b){var c=dvt.JavaImageLoader.getImageInfo(a);return c?(b&&b(c),c):null};
dvt.JavaImageLoader.getImageInfo=function(a){if(!dvt.JavaImageLoader._cache[a]){var b=dvt.JavaImageLoader._loadDataUri(a);if(b)return dvt.JavaImageLoader._cache[a]=b;var c;c=FacesContext.getCurrentInstance();if(null==c)c=DVTRendererUtils.getResourceImageURL(a,dvt.JavaImageLoader._resourceClass);else{var d="/"!=a.charAt(0)?"/"+a:a;c=c.getExternalContext().getRequestContextPath();0==d.search(c)&&(d=d.replace(c,""));c=DVTRendererUtils.getImageURL(d)}if(c){var d=c.toString(),e;(b=DVTRendererUtils.getImageInfo(c))?
(d=b.uri,c=b.width,e=b.height):(b=DVTSVGLoaderUtils.getSVGDimensions(c),c=b.getWidth(),e=b.getHeight());b={};b.uri=d;b.width=c;b.height=e}else b={},b.uri=a,b.width=1,b.height=1;dvt.JavaImageLoader._cache[a]=b}return dvt.JavaImageLoader._cache[a]};dvt.JavaImageLoader._loadDataUri=function(a){if(a&&0==a.indexOf("data:image/png;base64,")){var b={};b.uri=a;if(a=ImageRendererUtils.loadImageFromDataURI(a))b.width=a.getWidth(),b.height=a.getHeight();return b}return null};
dvt.JavaImageLoader.setResourceClass=function(a){dvt.JavaImageLoader._resourceClass=a};
