"undefined"==typeof DvtObj&&(DvtObj=function(){});DvtObj._GET_FUNCTION_NAME_REGEXP=/function\s+([\S^]+)\s*\(/;DvtObj.prototype={};DvtObj.prototype.constructor=DvtObj;DvtObj.createSubclass=function(a,b,d){if(!(void 0===a||null===a))if(DvtObj.owner&&(DvtObj.owner[d]=a),void 0===b&&(b=Object),a!=b){var e=DvtObj._tempSubclassConstructor;e.prototype=b.prototype;a.prototype=new e;a.prototype.constructor=a;a.superclass=b.prototype;d&&(a._typeName=d)}};DvtObj._tempSubclassConstructor=function(){};
DvtObj.getTypeName=function(a){var b=a._typeName;null==b&&(b=DvtObj._GET_FUNCTION_NAME_REGEXP.exec(a.toString())[1],a._typeName=b);return b};DvtObj.prototype.getTypeName=function(){return DvtObj.getTypeName(this.constructor)};DvtObj.prototype.clone=function(){return null};DvtObj.prototype.mergeProps=function(){};DvtObj._flashToolkit=!1;
DvtObj.createCallback=function(a,b){if(DvtObj._flashToolkit)return function(){b.apply(a,arguments)};var d;try{d=new Function("var f=arguments.callee; return f._func.apply(f._owner, arguments);"),d._owner=a,d._func=b}catch(e){}return d};var DvtArrayUtils={};DvtObj.createSubclass(DvtArrayUtils,DvtObj,"DvtArrayUtils");DvtArrayUtils.NONE=0;DvtArrayUtils.ADD=1;DvtArrayUtils.SUB=2;DvtArrayUtils.DIV=3;DvtArrayUtils.MULT=4;DvtArrayUtils.MOD=5;
DvtArrayUtils.argsToArray=function(a){if(a){var b=Array(a.length);if(0<a.length)for(var d=0;d<a.length;d++)b[d]=a[d];return b}return a};DvtArrayUtils.isArray=function(a){return"undefined"!=typeof a&&"[object Array]"===Object.prototype.toString.apply(a)};
DvtArrayUtils.toFloat=function(a,b,d){if(!DvtArrayUtils.isArray(a))return a;b||(d=DvtArrayUtils.NONE);d=null===d||isNaN(d)?DvtArrayUtils.NONE:d;d!==DvtArrayUtils.NONE&&("number"!==typeof b&&(b=parseFloat(b)),isNaN(b)&&(d=DvtArrayUtils.NONE));var e=a.length,g;if(d===DvtArrayUtils.NONE)for(g=0;g<e;g++)a[g]=parseFloat(a[g]);else for(g=0;g<e;g++){var h=parseFloat(a[g]);switch(d){case DvtArrayUtils.MULT:h*=b;break;case DvtArrayUtils.ADD:h+=b;break;case DvtArrayUtils.SUB:h-=b;break;case DvtArrayUtils.DIV:h/=
b;break;case DvtArrayUtils.MOD:h%=b}a[g]=h}return a};DvtArrayUtils.copy=function(a){var b;if(a){b=[];for(var d=a.length,e=0;e<d;e++)b.push(a[e])}return b};DvtArrayUtils.getIndex=function(a,b){for(var d=0;d<a.length;d++)if(a[d]===b)return d;return-1};DvtArrayUtils.getLastIndex=function(a,b){for(var d=a.length-1;0<=d;d--)if(a[d]===b)return d;return-1};DvtArrayUtils.getMinIndex=function(a){for(var b=-1,d=a.length,e=Number.MAX_VALUE,g,h=0;h<d;h++)if((g=a[h])&&"number"===typeof g&&g<e)e=g,b=h;return b};
DvtArrayUtils.getMaxIndex=function(a){for(var b=-1,d=a.length,e=Number.MIN_VALUE,g,h=0;h<d;h++)if((g=a[h])&&"number"===typeof g&&g>e)e=g,b=h;return b};DvtArrayUtils.equals=function(a,b){if(!a&&b||a&&!b)return!1;if(a||b){if(a.length!=b.length)return!1;for(var d=0;d<=a.length;d++)if(a[d]!==b[d])return!1}return!0};DvtArrayUtils.indexOf=function(a,b){if(!a)return-1;for(var d=0;d<a.length;d++)if(a[d]==b)return d;return-1};var DvtStringUtils={};DvtObj.createSubclass(DvtStringUtils,DvtObj,"DvtStringUtils");
DvtStringUtils.trim=function(a){return a.replace(/^\s+|\s+$/g,"")};DvtStringUtils.ltrim=function(a){return a.replace(/^\s+/,"")};DvtStringUtils.rtrim=function(a){return a.replace(/\s+$/,"")};DvtStringUtils.endsWith=function(a,b){return a.match(b+"$")==b};var DvtContext=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtContext,DvtObj,"DvtContext");
DvtContext.prototype.Init=function(a,b,d){this._implFactory=a;this._stage=new DvtStage(this,b,d+"_stage");this._tooltipManagers={};this._customTooltipManagers={};this._logicalEvent=this._nativeEvent=this._scheduler=null};DvtContext.prototype.getImplFactory=function(){return this._implFactory};DvtContext.prototype.getStage=function(){return this._stage};DvtContext.prototype.queueRender=function(){};
DvtContext.prototype.getTooltipManager=function(a){a||(a="_dvtTooltip");var b=this.getStage().getId(),a=a+b;this._tooltipManagers[a]||(this._tooltipManagers[a]=this._implFactory.newTooltipManager(a));return this._tooltipManagers[a]};DvtContext.prototype.getScheduler=function(){this._scheduler||(this._scheduler=new DvtScheduler(this));return this._scheduler};DvtContext.prototype.getDocumentUtils=function(){return this._implFactory.getDocumentUtils()};
DvtContext.prototype.getRelativePosition=function(a,b){var d=this.getDocumentUtils();if(d){var e=this.getStage();return d.getStageRelativePosition(e,a,b)}return null};DvtContext.prototype.getStageAbsolutePosition=function(){var a=this.getDocumentUtils();if(a){var b=this.getStage();return a.getStageAbsolutePosition(b)}return null};DvtContext.prototype.initializeTouchManager=function(){this._touchManager&&delete this._touchManager;this._touchManager=new DvtTouchManager("touchmanager",this)};
DvtContext.prototype.getTouchManager=function(){this._touchManager||this.initializeTouchManager();return this._touchManager};DvtContext.prototype.getCustomTooltipManager=function(a){a||(a="_dvtCustomTooltip");var b=this.getStage().getId(),a=a+b;this._customTooltipManagers[a]||(this._customTooltipManagers[a]=new DvtCustomTooltipManager(this,a));return this._customTooltipManagers[a]};
DvtContext.prototype.getJsExt=function(){this._externalInterface||(this._externalInterface=this._implFactory.newJsExt());return this._externalInterface};var DvtImplFactory=function(a){this.Init(a)};DvtObj.createSubclass(DvtImplFactory,DvtObj,"DvtImplFactory");DvtImplFactory.prototype.Init=function(a){this._context=a};DvtImplFactory.prototype.GetContext=function(){return this._context};DvtImplFactory.prototype.newContainer=function(){return null};DvtImplFactory.prototype.newArc=function(){return null};
DvtImplFactory.prototype.newCircle=function(){return null};DvtImplFactory.prototype.newImage=function(){return null};DvtImplFactory.prototype.newLine=function(){return null};DvtImplFactory.prototype.newOval=function(){return null};DvtImplFactory.prototype.newPath=function(){return null};DvtImplFactory.prototype.newPolygon=function(){return null};DvtImplFactory.prototype.newRect=function(){return null};DvtImplFactory.prototype.newText=function(){return null};DvtImplFactory.prototype.newParser=function(){return null};
DvtImplFactory.prototype.newTimer=function(){return null};DvtImplFactory.prototype.newContextMenuHandler=function(){return null};DvtImplFactory.prototype.newTextArea=function(){return null};DvtImplFactory.prototype.newTextFormatted=function(){return null};DvtImplFactory.prototype.newMarker=function(){return null};DvtImplFactory.prototype.newTooltipManager=function(){return null};DvtImplFactory.prototype.newRichTooltipManager=function(){return null};DvtImplFactory.prototype.getDocumentUtils=function(){return null};
var DvtIterator=function(a,b){this._Init(a,b)};DvtObj.createSubclass(DvtIterator,DvtObj,"DvtIterator");DvtIterator._NONE=0;DvtIterator._FIRST=1;DvtIterator._LAST=2;DvtIterator._NEXT=3;
DvtIterator.prototype.getNext=function(){var a=null;if(0<=this._stackPos){var b=this._arStack[this._stackPos],d=b._list;d&&(b._currentObj?a=++b._pos<d.length?d[b._pos]:null:(a=d[0],b._pos=0),b._currentObj=a);a||(this._pop(),0<=this._stackPos&&(this._bInRecurse=!0,a=this.getNext(),this._bInRecurse=!1));this._bInRecurse||0<=this._stackPos&&this._bDeep&&a&&0!==a.getNumChildren()&&this._push(a._getChildren())}this._lastObjReturnedFlags=a?DvtIterator._NEXT:DvtIterator._NONE;return this._lastObjReturned=
a};DvtIterator.prototype._Init=function(a,b){this._bDeep=b?b:!1;this._bInRecurse=!1;this._arStack=null;this._stackPos=-1;this._lastObjReturned=null;this._lastObjReturnedFlags=DvtIterator._NONE;a&&this._push(a)};DvtIterator.prototype._pop=function(){if(null!==this._arStack&&0<=this._stackPos){var a=this._arStack[this._stackPos];a._list=null;a._currentObj=null;this._arStack[this._stackPos]=null;0>--this._stackPos&&(this._arStack=null)}};
DvtIterator.prototype._push=function(a){null===this._arStack&&(this._arStack=[]);var b={};b._list=a;b._currentObj=null;b._pos=-1;this._stackPos++;this._stackPos<this._arStack.length?this._arStack[this._stackPos]=b:this._arStack.push(b)};var DvtJsExt=function(){};DvtObj.createSubclass(DvtJsExt,DvtObj,"DvtJsExt");DvtJsExt.LOG_OFF=1;DvtJsExt.LOG_SEVERE=2;DvtJsExt.LOG_WARNING=3;DvtJsExt.LOG_INFO=4;DvtJsExt.LOG_CONFIG=5;DvtJsExt.LOG_FINE=6;DvtJsExt.LOG_FINER=7;DvtJsExt.LOG_FINEST=8;DvtJsExt.LOG_ALL=9;
DvtJsExt.PERF_PROFILING=0;DvtJsExt.PERF_TIMING=1;DvtJsExt.PPR_ATTRIB_HSS="hideShowSeriesInfo";DvtJsExt.PPR_ATTRIB_HS_LAYERS="_hideShowLayersInfo";DvtJsExt.PPR_ATTRIB_SEL="selectionInfo";DvtJsExt.PPR_ATTRIB_PIE_EXPLODE="pieSliceExplodeInfo";DvtJsExt.JS_FPREQUESTREFRESH="adf_dvt_fpRefresh";DvtJsExt.JS_FPGETLOGLEVEL="adf_dvt_fpGetLogLevel";DvtJsExt.JS_FPINITNOTIFY="adf_dvt_fpInitNotify";DvtJsExt.JS_FPLOGGER="adf_dvt_fpLogger";DvtJsExt.JS_FPMSG="adf_dvt_fpMsg";DvtJsExt.JS_FP_PERF_LOGGER="adf_dvt_fpPerfLogger";
DvtJsExt.JS_FP_SET_PPR_PROPERTY="AdfPage.PAGE.findComponent('X-ID-X').getPeer().setDVTPPRAttribute";DvtJsExt.JS_FP_SEND_PPR="AdfPage.PAGE.findComponent('X-ID-X').getPeer().sendToServerPPR({source:'X-ID-X'})";DvtJsExt.JS_FP_SEND_PPR_NON_BLOCKING="AdfPage.PAGE.findComponent('X-ID-X').getPeer().sendToServerPPR3({source:'X-ID-X'})";DvtJsExt.JS_FPUPDATEPOPUPBOUNDS="adf_dvt_fpUpdatePopupHelper";DvtJsExt.JS_COMPONENT_LOADED="AdfDhtmlCommonFlashPeer.setComponentLoaded";
DvtJsExt.prototype.sendPPRProperty=function(){};DvtJsExt.prototype.sendPPR=function(){};DvtJsExt.prototype.sendPPRNonBlocking=function(){};DvtJsExt.prototype.callJs=function(){};DvtJsExt.prototype.callJsWithParam=function(){};DvtJsExt.prototype.getLogLevel=function(){return adf_dvt_fpGetLogLevel()};DvtJsExt.prototype.log=function(){};DvtJsExt.prototype.msg=function(){};DvtJsExt.prototype.perf=function(){};DvtJsExt.prototype.requestRefresh=function(){};var DvtLockable=function(){this._Init()};
DvtObj.createSubclass(DvtLockable,DvtObj,"DvtLockable");DvtLockable.prototype._Init=function(){this._bLocked=!1};DvtLockable.prototype.isLocked=function(){return this._bLocked};DvtLockable.prototype.__lock=function(){this._bLocked=!0};DvtLockable.prototype.__unlock=function(){this._bLocked=!1};var DvtScheduled=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtScheduled,DvtObj,"DvtScheduled");DvtScheduled._STATE_INITIALIZE=0;DvtScheduled._STATE_BEGIN=1;DvtScheduled._STATE_RUN=2;
DvtScheduled.CalcProgress=function(a,b,d){d-=b;if(0==d)return 0.5;a=(a-b)/d;1<a&&(a=1);return a};DvtScheduled.prototype.Init=function(a,b,d,e,g){this._scheduler=b;this.setDuration(d);this.setDelay(e);this.setEasing(g);this._bRunning=!1;this._startTime=null;this._progress=0;this._state=DvtScheduled._STATE_INITIALIZE;this._onStepObj=this._onStep=this._onEndObj=this._onEnd=this._onStartObj=this._onStart=this._onInitObj=this._onInit=null};DvtScheduled.prototype.getDuration=function(){return this._duration};
DvtScheduled.prototype.setDuration=function(a){this._duration=a?a:0.5};DvtScheduled.prototype.getDelay=function(){return this._delay};DvtScheduled.prototype.setDelay=function(a){this._delay=a?a:0};DvtScheduled.prototype.getEasing=function(){return this._easing};DvtScheduled.prototype.setEasing=function(a){this._easing=a?a:DvtEasing.cubicInOut};DvtScheduled.prototype.setOnInit=function(a,b){this._onInit=a;this._onInitObj=b?b:null};DvtScheduled.prototype.getOnInit=function(){return[this._onInit,this._onInitObj]};
DvtScheduled.prototype.setOnStart=function(a,b){this._onStart=a;this._onStartObj=b?b:null};DvtScheduled.prototype.getOnStart=function(){return[this._onStart,this._onStartObj]};DvtScheduled.prototype.setOnEnd=function(a,b){this._onEnd=a;this._onEndObj=b?b:null};DvtScheduled.prototype.getOnEnd=function(){return[this._onEnd,this._onEndObj]};DvtScheduled.prototype.setOnStep=function(a,b){this._onStep=a;b?this._onSepObj=b:this._onStepObj=null};
DvtScheduled.prototype.getOnStep=function(){return[this._onStep,this._onStepObj]};DvtScheduled.prototype.isRunning=function(){return this._bRunning};DvtScheduled.prototype.play=function(){this._bRunning||(this._bRunning=!0,this.ProcessPlay(),this._scheduler.addScheduled(this))};DvtScheduled.prototype.stop=function(a){this._scheduler.removeScheduled(this);a&&this.ProcessStep(1);this.ProcessEnd()};DvtScheduled.prototype.pause=function(){this._bRunning=!1};
DvtScheduled.prototype.reset=function(){this._state=DvtScheduled._STATE_INITIALIZE};DvtScheduled.prototype.processTime=function(a){if(this._bRunning){a-=this._startTime;if(0>a)return!1;var b=1E3*this.GetTotalDuration(),d=1;0!=b&&(d=a/b);1<d&&(d=1);this.ProcessStep(d);(a=1<=d)&&this.ProcessEnd();return a}};DvtScheduled.prototype.GetTotalDuration=function(){return this._delay+this._duration};
DvtScheduled.prototype.ProcessPlay=function(){this._state==DvtScheduled._STATE_INITIALIZE&&this.ProcessInitialize();if(this._state==DvtScheduled._STATE_BEGIN)this._startTime=(new Date).getTime(),this.ProcessStart();else{var a=1E3*this._progress*this.GetTotalDuration();this._startTime=(new Date).getTime()-a}this._state=DvtScheduled._STATE_RUN};DvtScheduled.prototype.ProcessInitialize=function(){this._onInit&&this._onInit.call(this._onInitObj);this.Initialize();this._state=DvtScheduled._STATE_BEGIN};
DvtScheduled.prototype.ProcessStart=function(){this._bRunning=!0;this._progress=0;this.Start();this._onStart&&this._onStart.call(this._onStartObj)};DvtScheduled.prototype.ProcessStep=function(a){var b=this._progress=a;0<this._delay&&(b=DvtScheduled.CalcProgress(a,this._delay/this.GetTotalDuration(),1));0<=b&&(this._easing&&(b=this._easing(b)),this.Step(b),this._onStep&&this._onStep.call(this._onStepObj,b))};
DvtScheduled.prototype.ProcessEnd=function(){this._bRunning&&(this._bRunning=!1,this._progress=1,this.End(),this._state=DvtScheduled._STATE_BEGIN,this._onEnd&&this._onEnd.call(this._onEndObj))};DvtScheduled.prototype.Initialize=function(){};DvtScheduled.prototype.Start=function(){};DvtScheduled.prototype.Step=function(){};DvtScheduled.prototype.End=function(){};var DvtScheduler=function(a){this.Init(a)};DvtObj.createSubclass(DvtScheduler,DvtObj,"DvtScheduler");
DvtScheduler.prototype.Init=function(a){this._timer=new DvtTimer(a,1E3/30,this.HandleTimer,this);this._scheduledItems=[];this._bRunning=!1};DvtScheduler.prototype.setInterval=function(a){0>a&&(a=0);this.pause();this._timer.setInterval(a);this.play()};DvtScheduler.prototype.getInterval=function(){return this._timer.getInterval()};
DvtScheduler.prototype.HandleTimer=function(){for(var a=(new Date).getTime(),b=0;b<this._scheduledItems.length;b++){var d=this._scheduledItems[b];d.processTime(a)&&this.removeScheduled(d)}1>this._scheduledItems.length&&this.pause()};DvtScheduler.prototype.addScheduled=function(a){0>DvtArrayUtils.getIndex(this._scheduledItems,a)&&this._scheduledItems.push(a);this.play()};
DvtScheduler.prototype.removeScheduled=function(a){a=DvtArrayUtils.getIndex(this._scheduledItems,a);0<=a&&this._scheduledItems.splice(a,1)};DvtScheduler.prototype.play=function(){if(!this._bRunning){for(var a=0;a<this._scheduledItems.length;a++){var b=this._scheduledItems[a];b.isRunning()||b.play()}this._bRunning=!0;this._timer.start()}};
DvtScheduler.prototype.pause=function(){if(this._bRunning){this._bRunning=!1;this._timer.stop();for(var a=0;a<this._scheduledItems.length;a++){var b=this._scheduledItems[a];b.isRunning()&&b.pause()}}};var DvtAnimator=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtAnimator,DvtScheduled,"DvtAnimator");DvtAnimator.TYPE_NUMBER="typeNumber";DvtAnimator.TYPE_MATRIX="typeMatrix";DvtAnimator.TYPE_NUMBER_ARRAY="typeNumberArray";DvtAnimator.TYPE_COLOR="typeColor";
DvtAnimator.TYPE_COLOR_ARRAY="typeColorArray";DvtAnimator.TYPE_GROW_POLYLINE="typeGrowPolyline";DvtAnimator.TYPE_RECTANGLE="typeRectangle";DvtAnimator.TYPE_POINT="typePoint";DvtAnimator.TYPE_PATH="typePath";DvtAnimator.TYPE_GROW_PATH="typeGrowPath";DvtAnimator.TYPE_FILL="typeFill";DvtAnimator.TYPE_POLYLINE="typePolyline";DvtAnimator._RECORD_SIZE=5;
DvtAnimator.prototype.Init=function(a,b,d,e){DvtAnimator.superclass.Init.call(this,a,a.getScheduler(),b,d,e);this._context=a;this._props=[];this._startValues=[]};DvtAnimator.prototype.addProp=function(a,b,d,e,g){var h=this.IndexOf(b,d);-1<h?this._props[h+4]=g:(this._props.push(a),this._props.push(b),this._props.push(d),this._props.push(e),this._props.push(g))};
DvtAnimator.prototype.removeProp=function(a,b){var d=this.IndexOf(a,b);if(-1<d){var e=this._props[d+4];this._props.splice(d,DvtAnimator._RECORD_SIZE);return e}return null};DvtAnimator.prototype.getDestVal=function(a,b){var d=this.IndexOf(a,b);return-1<d?this._props[d+4]:null};DvtAnimator.prototype.IndexOf=function(a,b){for(var d=0;d<this._props.length;d+=DvtAnimator._RECORD_SIZE){var e=this._props[d+2];if(this._props[d+1]===a&&e===b)return d}return-1};
DvtAnimator.prototype.Initialize=function(){for(var a=0;a<this._props.length;a+=DvtAnimator._RECORD_SIZE)this._startValues.push(this._props[a+2].call(this._props[a+1]))};DvtAnimator.prototype.Step=function(a){for(var b=0;b<this._props.length;b+=DvtAnimator._RECORD_SIZE){var d=this._props[b+1],e=this._props[b+3],g=DvtInterpolator.interpolate(this._context,this._props[b],this._startValues[b/DvtAnimator._RECORD_SIZE],this._props[b+4],a);e.call(d,g)}};var DvtPlayable=function(a){this.Init(a)};
DvtObj.createSubclass(DvtPlayable,DvtObj,"DvtPlayable");DvtPlayable.appendOnEnd=function(a,b,d){if(a&&b){var e=a.getOnEnd();!e||!e[0]?a.setOnEnd(b,d):a.setOnEnd(function(){e[0].call(e[1]);b.call(d)})}};DvtPlayable.prependOnEnd=function(a,b,d){if(a&&b){var e=a.getOnEnd();!e||!e[0]?a.setOnEnd(b,d):a.setOnEnd(function(){b.call(d);e[0].call(e[1])})}};
DvtPlayable.appendOnStart=function(a,b,d){if(a&&b&&a.getOnStart&&a.setOnStart){var e=a.getOnStart();!e||!e[0]?a.setOnStart(b,d):a.setOnStart(function(){e[0].call(e[1]);b.call(d)})}};DvtPlayable.prependOnStart=function(a,b,d){if(a&&b&&a.getOnStart&&a.setOnStart){var e=a.getOnStart();!e||!e[0]?a.setOnStart(b,d):a.setOnStart(function(){b.call(d);e[0].call(e[1])})}};
DvtPlayable.appendOnInit=function(a,b,d){if(a&&b&&a.getOnInit&&a.setOnInit){var e=a.getOnInit();!e||!e[0]?a.setOnInit(b,d):a.setOnInit(function(){e[0].call(e[1]);b.call(d)})}};DvtPlayable.prependOnInit=function(a,b,d){if(a&&b&&a.getOnInit&&a.setOnInit){var e=a.getOnInit();!e||!e[0]?a.setOnInit(b,d):a.setOnInit(function(){b.call(d);e[0].call(e[1])})}};DvtPlayable.prototype.Init=function(a){this.Context=a;this._onEndObj=this._onEnd=null};
DvtPlayable.prototype.setOnEnd=function(a,b){this._onEnd=a;this._onEndObj=b?b:null;this.OnEndUpdated()};DvtPlayable.prototype.getOnEnd=function(){return[this._onEnd,this._onEndObj]};DvtPlayable.prototype.OnEndUpdated=function(){};DvtPlayable.prototype.play=function(){};DvtPlayable.prototype.stop=function(){};DvtPlayable.prototype.pause=function(){};
var DvtParallelPlayable=function(a){var b;arguments&&1<arguments.length&&arguments[1]instanceof Array?b=arguments[1]:(b=DvtArrayUtils.argsToArray(arguments),b.splice(0,1));this.Init(a,b)};DvtObj.createSubclass(DvtParallelPlayable,DvtPlayable,"DvtParallelPlayable");DvtParallelPlayable.prototype.Init=function(a,b){DvtParallelPlayable.superclass.Init.call(this,a);this._runningCounter=0;this._arPlayables=b;this._bStarted=!1};DvtParallelPlayable.prototype.getPlayables=function(){return this._arPlayables};
DvtParallelPlayable.prototype.play=function(){if(this._arPlayables&&0<this._arPlayables.length){this._runningCounter=this._arPlayables.length;for(var a,b=0;b<this._arPlayables.length;b++)a=this._arPlayables[b],a instanceof DvtPlayable&&(this._bStarted||DvtPlayable.appendOnEnd(a,this.OnPlayableEnd,this),a.play());this._bStarted=!0}else(new DvtTimer(this.Context,0,this.DoEnd,this,1)).start()};
DvtParallelPlayable.prototype.stop=function(a){if(this._arPlayables)for(var b,d=0;d<this._arPlayables.length;d++)b=this._arPlayables[d],b instanceof DvtPlayable&&b.stop(a)};DvtParallelPlayable.prototype.pause=function(){if(this._arPlayables)for(var a,b=0;b<this._arPlayables.length;b++)a=this._arPlayables[b],a instanceof DvtPlayable&&a.pause()};DvtParallelPlayable.prototype.OnPlayableEnd=function(){this._runningCounter--;1>this._runningCounter&&this.DoEnd()};
DvtParallelPlayable.prototype.DoEnd=function(){this._onEnd&&this._onEnd.call(this._onEndObj)};var DvtSequentialPlayable=function(a){var b;arguments&&1<arguments.length&&arguments[1]instanceof Array?b=arguments[1]:(b=DvtArrayUtils.argsToArray(arguments),b.splice(0,1));this.Init(a,b)};DvtObj.createSubclass(DvtSequentialPlayable,DvtPlayable,"DvtSequentialPlayable");
DvtSequentialPlayable.prototype.Init=function(a,b){DvtSequentialPlayable.superclass.Init.call(this,a);this._arPlayables=b;this._currIndex=-1;this._bStarted=!1};DvtSequentialPlayable.prototype.getPlayables=function(){return this._arPlayables};
DvtSequentialPlayable.prototype.play=function(){if(this._arPlayables&&0<this._arPlayables.length)if(this._bStarted){var a=this._arPlayables[this._currIndex];a instanceof DvtPlayable&&a.play()}else{this._arPlayables[0]instanceof DvtPlayable&&(a=this._arPlayables[0]);var b;this._arPlayables[this._arPlayables.length-1]instanceof DvtPlayable&&(b=this._arPlayables[this._arPlayables.length-1]);for(var d,e=0;e<this._arPlayables.length-1;e++)d=this._arPlayables[e],d instanceof DvtPlayable&&DvtPlayable.appendOnEnd(d,
this.DoSequenceStep,this);b&&DvtPlayable.appendOnEnd(b,this.DoEnd,this);this._bStarted=!0;this._currIndex=0;a&&a.play()}else(new DvtTimer(this.Context,0,this.DoEnd,this,1)).start()};DvtSequentialPlayable.prototype.DoSequenceStep=function(){var a=this._arPlayables[++this._currIndex];a instanceof DvtPlayable?a.play():this.DoSequenceStep()};
DvtSequentialPlayable.prototype.stop=function(a){if(this._arPlayables)for(var b,d=this._currIndex;d<this._arPlayables.length;d++)(b=this._arPlayables[d])&&b instanceof DvtPlayable&&b.stop(a)};DvtSequentialPlayable.prototype.pause=function(){if(this._arPlayables){var a=this._arPlayables[this._currIndex];a instanceof DvtPlayable&&a.pause()}};DvtSequentialPlayable.prototype.DoEnd=function(){this._onEnd&&this._onEnd.call(this._onEndObj)};var DvtEasing=function(){this.Init()};
DvtObj.createSubclass(DvtEasing,DvtObj,"DvtEasing");DvtEasing.linear=function(a){return a};DvtEasing.quadraticIn=function(a){return DvtEasing.PolyIn(a,2)};DvtEasing.quadraticOut=function(a){return DvtEasing.PolyOut(a,2)};DvtEasing.quadraticInOut=function(a){return DvtEasing.PolyInOut(a,2)};DvtEasing.cubicIn=function(a){return DvtEasing.PolyIn(a,3)};DvtEasing.cubicOut=function(a){return DvtEasing.PolyOut(a,3)};DvtEasing.cubicInOut=function(a){return DvtEasing.PolyInOut(a,3)};
DvtEasing.backOut=function(a,b){b||(b=1.70158);a=1-a;return 1-a*a*((b+1)*a-b)};DvtEasing.backIn=function(a,b){b||(b=1.70158);return a*a*((b+1)*a-b)};DvtEasing.elasticIn=function(a,b,d){if(0>=a||1<=a)return a;d||(d=0.45);var e;!b||1>b?(b=1,e=d/4):e=d/(2*Math.PI)*Math.asin(1/b);return-(b*Math.pow(2,10*(a-=1))*Math.sin((a-e)*2*Math.PI/d))};DvtEasing.elasticOut=function(a,b,d){return 1-DvtEasing.elasticIn(1-a,b,d)};DvtEasing.PolyIn=function(a,b){return 0>a?0:1<a?1:Math.pow(a,b)};
DvtEasing.PolyOut=function(a,b){return 0>a?0:1<a?1:1-Math.pow(1-a,b)};DvtEasing.PolyInOut=function(a,b){return 0>a?0:1<a?1:0.5>a?0.5*Math.pow(2*a,b):0.5*(2-Math.pow(2*(1-a),b))};DvtEasing.prototype.Init=function(){};var DvtInterpolator=function(){this.Init()};DvtObj.createSubclass(DvtInterpolator,DvtObj,"DvtInterpolator");DvtInterpolator.addInterpolator=function(a,b){var d=DvtArrayUtils.getIndex(DvtInterpolator._map,a);-1<d?DvtInterpolator._map[d+1]=b:DvtInterpolator._map.push(a,b)};
DvtInterpolator.removeInterpolator=function(a){a=DvtArrayUtils.getIndex(DvtInterpolator._map,a);-1<a&&DvtInterpolator._map.splice(a,2)};DvtInterpolator.interpolate=function(a,b,d,e,g){b=DvtInterpolator._getInterpolator(b);return null!=b?b(a,d,e,g):e};DvtInterpolator._getInterpolator=function(a){a=DvtArrayUtils.getIndex(DvtInterpolator._map,a);return-1<a?DvtInterpolator._map[a+1]:null};DvtInterpolator.InterpolateNumber=function(a,b,d,e){return DvtMath.interpolateNumber(b,d,e)};
DvtInterpolator.InterpolateNumberArray=function(a,b,d,e){for(var g=b.length,h=d.length,k=[],m=0;m<Math.max(g,h);m++)k.push(DvtInterpolator.InterpolateNumber(a,m<g?b[m]:b[g-1],m<h?d[m]:d[h-1],e));return k};
DvtInterpolator.InterpolateMatrix=function(a,b,d,e){var g=DvtInterpolator.InterpolateNumber(a,b.getA(),d.getA(),e),h=DvtInterpolator.InterpolateNumber(a,b.getB(),d.getB(),e),k=DvtInterpolator.InterpolateNumber(a,b.getC(),d.getC(),e),m=DvtInterpolator.InterpolateNumber(a,b.getD(),d.getD(),e),n=DvtInterpolator.InterpolateNumber(a,b.getTx(),d.getTx(),e),b=DvtInterpolator.InterpolateNumber(a,b.getTy(),d.getTy(),e),a=new DvtMatrix(a);a._a=g;a._b=h;a._c=k;a._d=m;a._tx=n;a._ty=b;return a};
DvtInterpolator.InterpolateColor=function(a,b,d,e){return DvtColorUtils.interpolateColor(b,d,e)};DvtInterpolator.InterpolateColorArray=function(a,b,d,e){for(var g=b.length,h=d.length,k=[],m=0;m<Math.max(g,h);m++)k.push(DvtInterpolator.InterpolateColor(a,m<g?b[m]:b[g-1],m<h?d[m]:d[h-1],e));return k};
DvtInterpolator.InterpolateGrowPolyline=function(a,b,d,e){if(0===e)return[d[0],d[1]];if(1===e)return d;for(var b=d.length,a=[d[0],d[1]],g=DvtInterpolator.CalcPolylineLength(d),h=e*g,k=0,m,n=2;n<b-1;n+=2){var e=d[n-2],g=d[n-1],o=d[n],q=d[n+1];m=DvtInterpolator.CalcPolylineLength([e,g,o,q]);if(k+m>h){d=(h-k)/m;b=q-g;a.push(e+d*(o-e));a.push(g+d*b);break}else k+=m,a.push(o),a.push(q)}return a};
DvtInterpolator.InterpolateGrowPath=function(a,b,d,e){if(0===e)return[d[0],d[1]];if(1===e)return d;for(var b=d.length,a=[],g=DvtInterpolator.CalcPathLength(d),g=e*g,h=0,k,m,n,o,q,s,t,u,v,w=0;w<b;w++){var e=d[w],x;switch(e){case "M":m=d[++w];n=d[++w];u=m;v=n;x=[u,v,u,v];break;case "L":m=d[++w];n=d[++w];x=[u,v,m,n];break;case "Q":o=d[++w];q=d[++w];m=d[++w];n=d[++w];x=[u,v,m,n];break;case "C":o=d[++w],q=d[++w],s=d[++w],t=d[++w],m=d[++w],n=d[++w],x=[u,v,m,n]}k=DvtInterpolator.CalcPolylineLength(x);if(h+
k>g){d=(g-h)/k;a.push(e);switch(e){case "Q":a.push(u+d*(o-u),v+d*(q-v));break;case "C":a.push(u+d*(o-u),v+d*(q-v),u+d*(s-u),v+d*(t-v))}a.push(u+d*(m-u),v+d*(n-v));break}else{h+=k;a.push(e);switch(e){case "Q":a.push(o,q);break;case "C":a.push(o,q,s,t)}a.push(m);a.push(n)}u=m;v=n}return a};
DvtInterpolator.CalcPolylineLength=function(a){for(var b=0,d,e,g,h,k=0;k<a.length;k+=2)g=a[k],h=a[k+1],0<k&&(g===d?b+=Math.abs(h-e):h===e?b+=Math.abs(g-d):(d=Math.abs(g-d),e=Math.abs(h-e),b+=Math.sqrt(d*d+e*e))),d=g,e=h;return b};
DvtInterpolator.CalcPathLength=function(a){for(var b=0,d,e,g,h,k,m=0;m<a.length;){k=a[m];switch(k){case "M":g=a[m+1];h=a[m+2];d=g;e=h;m+=3;continue;case "L":g=a[m+1];h=a[m+2];m+=3;break;case "Q":g=a[m+3];h=a[m+4];m+=5;break;case "Q":g=a[m+5],h=a[m+6],m+=7}0<m&&(g===d?b+=Math.abs(h-e):h===e?b+=Math.abs(g-d):(d=Math.abs(g-d),e=Math.abs(h-e),b+=Math.sqrt(d*d+e*e)));d=g;e=h}return b};
DvtInterpolator.InterpolateRectangle=function(a,b,d,e){var g=DvtInterpolator.InterpolateNumber(a,b.x,d.x,e),h=DvtInterpolator.InterpolateNumber(a,b.y,d.y,e),k=DvtInterpolator.InterpolateNumber(a,b.w,d.w,e),a=DvtInterpolator.InterpolateNumber(a,b.h,d.h,e);return new DvtRectangle(g,h,k,a)};DvtInterpolator.InterpolatePoint=function(a,b,d,e){var g=DvtInterpolator.InterpolateNumber(a,b.x,d.x,e),a=DvtInterpolator.InterpolateNumber(a,b.y,d.y,e);return new DvtPoint(g,a)};
DvtInterpolator.InterpolatePath=function(a,b,d,e){var g=b.length,h=d.length;if(g!=h)return d;for(var k=[],m=0,n=0;m<g&&n<h;){var o=b[m],q=d[n],s=!isNaN(o),t=!isNaN(q);!s&&!t?o===q&&k.push(o):s&&t&&k.push(DvtInterpolator.InterpolateNumber(a,o,q,e));m++;n++}return k};
DvtInterpolator.InterpolateFill=function(a,b,d,e){if(b instanceof DvtSolidFill&&d instanceof DvtSolidFill){var g=DvtInterpolator.InterpolateColor(a,b.getColor(),d.getColor(),e),a=DvtInterpolator.InterpolateNumber(a,b.getAlpha(),d.getAlpha(),e),g=DvtColorUtils.makeRGB(DvtColorUtils.getRed(g),DvtColorUtils.getGreen(g),DvtColorUtils.getBlue(g));return new DvtSolidFill(g,a)}return d};
DvtInterpolator.InterpolatePolyline=function(a,b,d,e){for(var g=b.length,h=d.length,k=[],m=0;m<Math.max(g,h);m++){var n=2;1==m%2&&(n=1);k.push(DvtInterpolator.InterpolateNumber(a,m<g?b[m]:b[g-n],m<h?d[m]:d[h-n],e))}if(h<g){m=k.length;a=k[m-2];b=k[m-1];for(m-=4;0<=m;m-=2)if(d=k[m+1],k[m]==a&&d==b)k.splice(m,2);else break}return k};DvtInterpolator.prototype.Init=function(){};
DvtInterpolator._map=[DvtAnimator.TYPE_NUMBER,DvtInterpolator.InterpolateNumber,DvtAnimator.TYPE_MATRIX,DvtInterpolator.InterpolateMatrix,DvtAnimator.TYPE_NUMBER_ARRAY,DvtInterpolator.InterpolateNumberArray,DvtAnimator.TYPE_COLOR,DvtInterpolator.InterpolateColor,DvtAnimator.TYPE_COLOR_ARRAY,DvtInterpolator.InterpolateColorArray,DvtAnimator.TYPE_GROW_POLYLINE,DvtInterpolator.InterpolateGrowPolyline,DvtAnimator.TYPE_RECTANGLE,DvtInterpolator.InterpolateRectangle,DvtAnimator.TYPE_POINT,DvtInterpolator.InterpolatePoint,
DvtAnimator.TYPE_PATH,DvtInterpolator.InterpolatePath,DvtAnimator.TYPE_GROW_PATH,DvtInterpolator.InterpolateGrowPath,DvtAnimator.TYPE_FILL,DvtInterpolator.InterpolateFill,DvtAnimator.TYPE_POLYLINE,DvtInterpolator.InterpolatePolyline];var DvtTimer=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtTimer,DvtObj,"DvtTimer");
DvtTimer.prototype.Init=function(a,b,d,e,g){this._impl||(this._impl=a.getImplFactory().newTimer());this._interval=b;this._callback=d;e&&(this._callbackObj=e);this._repeatCount=g;this._bRunning=!1;this._numIterations=0};DvtTimer.prototype.start=function(){this._bRunning||(this._bRunning=!0,this.StartTimer())};DvtTimer.prototype.stop=function(){this._bRunning&&(this._bRunning=!1,this.StopTimer())};DvtTimer.prototype.reset=function(){this._bRunning&&this.stop();this._numIterations=0};
DvtTimer.prototype.isRunning=function(){return this._bRunning};DvtTimer.prototype.HandleTimer=function(){this._callback&&(this._callback.call(this._callbackObj),this._repeatCount&&(this._numIterations++,this._numIterations>=this._repeatCount&&this.stop()))};DvtTimer.prototype.setInterval=function(a){0>a&&(a=0);var b=this._bRunning;b&&this.stop();this._interval=a;b&&this.start()};DvtTimer.prototype.getInterval=function(){return this._interval};
DvtTimer.prototype.StartTimer=function(){this._impl&&this._impl.startTimer&&this._impl.startTimer(this.getInterval(),this.HandleTimer,this)};DvtTimer.prototype.StopTimer=function(){this._impl&&this._impl.stopTimer&&this._impl.stopTimer()};var DvtBaseAnimation=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtBaseAnimation,DvtPlayable,"DvtBaseAnimation");DvtBaseAnimation.EASING_LINEAR=1;DvtBaseAnimation.EASING_CUBIC_IN_OUT=2;DvtBaseAnimation.EASING_CUBIC_IN=3;
DvtBaseAnimation.EASING_CUBIC_OUT=4;DvtBaseAnimation.EASING_QUADRATIC_IN_OUT=5;DvtBaseAnimation.EASING_QUADRATIC_IN=6;DvtBaseAnimation.EASING_QUADRATIC_OUT=7;DvtBaseAnimation.EASING_BOUNCE_IN=8;DvtBaseAnimation.EASING_BOUNCE_OUT=9;DvtBaseAnimation.EASING_ELASTIC_IN=10;DvtBaseAnimation.EASING_ELASTIC_OUT=11;DvtBaseAnimation.DIR_C=1;DvtBaseAnimation.DIR_N=2;DvtBaseAnimation.DIR_NE=3;DvtBaseAnimation.DIR_E=4;DvtBaseAnimation.DIR_SE=5;DvtBaseAnimation.DIR_S=6;DvtBaseAnimation.DIR_SW=7;
DvtBaseAnimation.DIR_W=8;DvtBaseAnimation.DIR_NW=9;DvtBaseAnimation.AXIS_X=1;DvtBaseAnimation.AXIS_Y=2;DvtBaseAnimation.ROT_DIR_CLOCKWISE=1;DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE=2;
DvtBaseAnimation.GetEasingFunction=function(a){switch(a){case DvtBaseAnimation.EASING_LINEAR:return DvtEasing.linear;case DvtBaseAnimation.EASING_CUBIC_IN:return DvtEasing.cubicIn;case DvtBaseAnimation.EASING_CUBIC_OUT:return DvtEasing.cubicOut;case DvtBaseAnimation.EASING_QUADRATIC_IN_OUT:return DvtEasing.quadraticInOut;case DvtBaseAnimation.EASING_QUADRATIC_IN:return DvtEasing.quadraticIn;case DvtBaseAnimation.EASING_QUADRATIC_OUT:return DvtEasing.quadraticOut;case DvtBaseAnimation.EASING_BOUNCE_IN:return DvtEasing.backIn;
case DvtBaseAnimation.EASING_BOUNCE_OUT:return DvtEasing.backOut;case DvtBaseAnimation.EASING_ELASTIC_IN:return DvtEasing.elasticIn;case DvtBaseAnimation.EASING_ELASTIC_OUT:return DvtEasing.elasticOut;default:return DvtEasing.cubicInOut}};
DvtBaseAnimation.GetCompassPoint=function(a,b){switch(b){case DvtBaseAnimation.DIR_N:return new DvtPoint(a.x+0.5*a.w,a.y);case DvtBaseAnimation.DIR_NE:return new DvtPoint(a.x+a.w,a.y);case DvtBaseAnimation.DIR_E:return new DvtPoint(a.x+a.w,a.y+0.5*a.h);case DvtBaseAnimation.DIR_SE:return new DvtPoint(a.x+a.w,a.y+a.h);case DvtBaseAnimation.DIR_S:return new DvtPoint(a.x+0.5*a.w,a.y+a.h);case DvtBaseAnimation.DIR_SW:return new DvtPoint(a.x,a.y+a.h);case DvtBaseAnimation.DIR_W:return new DvtPoint(a.x,
a.y+0.5*a.h);case DvtBaseAnimation.DIR_NW:return new DvtPoint(a.x,a.y);default:return new DvtPoint(a.x+0.5*a.w,a.y+0.5*a.h)}};
DvtBaseAnimation.GetAlignCompassPoint=function(a,b,d){b=DvtBaseAnimation.GetCompassPoint(b,d);switch(d){case DvtBaseAnimation.DIR_N:return new DvtPoint(b.x-0.5*a.w,b.y);case DvtBaseAnimation.DIR_NE:return new DvtPoint(b.x-a.w,b.y);case DvtBaseAnimation.DIR_E:return new DvtPoint(b.x-a.w,b.y-0.5*a.h);case DvtBaseAnimation.DIR_SE:return new DvtPoint(b.x-a.w,b.y-a.h);case DvtBaseAnimation.DIR_S:return new DvtPoint(b.x-0.5*a.w,b.y-a.h);case DvtBaseAnimation.DIR_SW:return new DvtPoint(b.x,b.y-a.h);case DvtBaseAnimation.DIR_W:return new DvtPoint(b.x,
b.y-0.5*a.h);case DvtBaseAnimation.DIR_NW:return new DvtPoint(b.x,b.y);default:return new DvtPoint(b.x-0.5*a.w,b.y-0.5*a.h)}};DvtBaseAnimation.prototype.Init=function(a,b,d,e){DvtBaseAnimation.superclass.Init.call(this,a);this._context=a;this._arObjects=b instanceof Array?b:[b];this._duration=d?d:0.5;this._delay=e?e:0;this._easing=DvtBaseAnimation.EASING_CUBIC_IN_OUT;this._bSaveAndRestoreOriginalMatrices=this._bInitialized=!1;this._origMatrixArray=null;this._bHideObjectsOnEnd=!1;this.CreateAnimator(a)};
DvtBaseAnimation.prototype.GetContext=function(){return this._context};DvtBaseAnimation.prototype.play=function(){this._bInitialized||(this.InitializeEndStates(this._arObjects),this.InitializeStartStates(this._arObjects),this.InitializePlay(),this._bInitialized=!0);this._animator&&this._animator.play()};DvtBaseAnimation.prototype.stop=function(a){this._animator&&this._animator.stop(a)};DvtBaseAnimation.prototype.pause=function(){this._animator&&this._animator.pause()};
DvtBaseAnimation.prototype.getDuration=function(){return this._duration};DvtBaseAnimation.prototype.setDuration=function(a){this._duration=a?a:0;this._animator&&this._animator.setDuration(this._duration)};DvtBaseAnimation.prototype.getDelay=function(){return this._delay};DvtBaseAnimation.prototype.setDelay=function(a){this._delay=a?a:0;this._animator&&this._animator.setDelay(this._delay)};DvtBaseAnimation.prototype.getEasing=function(){return this._easing};
DvtBaseAnimation.prototype.setEasing=function(a){this._easing=a;this._animator&&this._animator.setEasing(DvtBaseAnimation.GetEasingFunction(this._easing))};DvtBaseAnimation.prototype.CreateAnimator=function(a){this._animator=new DvtAnimator(a,this._duration,this._delay,DvtBaseAnimation.GetEasingFunction(this._easing));this._animator.setOnEnd(this.OnAnimEnd,this)};
DvtBaseAnimation.prototype.OnAnimEnd=function(){this._bHideObjectsOnEnd&&this.HideObjects();this._bSaveAndRestoreOriginalMatrices&&this.RestoreOriginalMatrices();this._onEnd&&this._onEnd.call(this._onEndObj)};DvtBaseAnimation.prototype.InitializePlay=function(){};
DvtBaseAnimation.prototype.InitializeStartStates=function(a){if(a)for(var b,d=0;d<a.length;d++)if(b=a[d])this._bSaveAndRestoreOriginalMatrices&&(this._origMatrixArray||(this._origMatrixArray=[]),this._origMatrixArray.push(b.getMatrix().clone())),this.InitStartState(b)};DvtBaseAnimation.prototype.InitializeEndStates=function(a){if(a)for(var b,d=0;d<a.length;d++)(b=a[d])&&this.InitEndState(b)};DvtBaseAnimation.prototype.InitStartState=function(){};DvtBaseAnimation.prototype.InitEndState=function(){};
DvtBaseAnimation.prototype.ShowObjects=function(){this.SetObjectsVisible(!0)};DvtBaseAnimation.prototype.HideObjects=function(){this.SetObjectsVisible(!1)};DvtBaseAnimation.prototype.SetObjectsVisible=function(a){if(this._arObjects)for(var b,d=this._arObjects.length-1;0<=d;d--)(b=this._arObjects[d])&&b.setVisible(a)};DvtBaseAnimation.prototype.RestoreOriginalMatrices=function(){if(this._arObjects)for(var a,b=this._arObjects.length-1;0<=b;b--)(a=this._arObjects[b])&&this._origMatrixArray&&a.setMatrix(this._origMatrixArray.pop())};
var DvtCustomAnimation=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtCustomAnimation,DvtBaseAnimation,"DvtCustomAnimation");DvtCustomAnimation.prototype.getAnimator=function(){return this._animator};var DvtAnimConveyorIn=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimConveyorIn,DvtBaseAnimation,"DvtAnimConveyorIn");
DvtAnimConveyorIn.prototype.Init=function(a,b,d,e,g){DvtAnimConveyorIn.superclass.Init.call(this,a,b,e,g);this._direction=d;this._SCALE=0.2;this._SKEW_ANGLE=Math.PI/12;this._bSaveAndRestoreOriginalMatrices=!0};
DvtAnimConveyorIn.prototype.CreateAnimator=function(a){DvtAnimConveyorIn.superclass.CreateAnimator.call(this,a);this.setEasing(DvtBaseAnimation.EASING_CUBIC_IN);this._animator.setDuration(this.getDuration()/2);this._animator.setOnEnd(this.PlayEndAnim,this);this._endAnim=new DvtAnimator(a,this.getDuration()/2,0,DvtBaseAnimation.GetEasingFunction(DvtBaseAnimation.EASING_CUBIC_OUT));this._endAnim.setOnEnd(this.OnAnimEnd,this)};
DvtAnimConveyorIn.prototype.InitializePlay=function(){DvtAnimConveyorIn.superclass.InitializePlay.call(this);this.ShowObjects()};
DvtAnimConveyorIn.prototype.InitStartState=function(a){DvtAnimConveyorIn.superclass.InitStartState.call(this,a);a.setVisible(!1);var b=a.getDimensions(),d=this.GetConcatenatedRotationMatrix(a,b),e=new DvtMatrix(this.GetContext());this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_E?this._direction===DvtBaseAnimation.DIR_W?e.translate(b.w,0):e.translate(-b.w,0):this._direction===DvtBaseAnimation.DIR_N?e.translate(0,b.h):e.translate(0,-b.h);e.concat(d);a.setMatrix(e);a.setAlpha(0)};
DvtAnimConveyorIn.prototype.InitEndState=function(a){DvtAnimConveyorIn.superclass.InitEndState.call(this,a);var b=a.getDimensions(),b=this.GetConcatenatedRotationMatrix(a,b).clone();this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,b);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,1);b=a.getMatrix().clone();this._endAnim.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,b)};DvtAnimConveyorIn.prototype.PlayEndAnim=function(){this._endAnim.play()};
DvtAnimConveyorIn.prototype.GetConcatenatedRotationMatrix=function(a,b){var d=this._SCALE,e=1-d,g=b.w*e,e=b.h*e,h=this._SKEW_ANGLE;if(this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_S)h=-h;var k=Math.tan(h),m=a.getMatrix().clone(),n=new DvtMatrix(this.GetContext());this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_E?(n.skew(0,h),n.scale(d,1),this._direction===DvtBaseAnimation.DIR_W?n.translate(0,0):n.translate(g,-b.w*k)):(n.skew(h,0),
n.scale(1,d),this._direction===DvtBaseAnimation.DIR_N?n.translate(0,0):n.translate(-b.h*k,e));n.concat(m);return n};var DvtAnimConveyorOut=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimConveyorOut,DvtBaseAnimation,"DvtAnimConveyorOut");DvtAnimConveyorOut.prototype.Init=function(a,b,d,e,g){DvtAnimConveyorOut.superclass.Init.call(this,a,b,e,g);this._direction=d;this._bHideObjectsOnEnd=this._bSaveAndRestoreOriginalMatrices=!0};
DvtAnimConveyorOut.prototype.CreateAnimator=function(a){DvtAnimConveyorOut.superclass.CreateAnimator.call(this,a);this.setEasing(DvtBaseAnimation.EASING_CUBIC_IN);this._animator.setDuration(this.getDuration()/2);this._animator.setOnEnd(this.PlayEndAnim,this);this._endAnim=new DvtAnimator(a,this.getDuration()/2,0,DvtBaseAnimation.GetEasingFunction(DvtBaseAnimation.EASING_CUBIC_OUT));this._endAnim.setOnEnd(this.OnAnimEnd,this)};
DvtAnimConveyorOut.prototype.InitEndState=function(a){DvtAnimConveyorOut.superclass.InitEndState.call(this,a);var b=a.getDimensions(),d=0.8*b.w,e=0.8*b.h,g=Math.PI/12;if(this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_S)g=-g;var h=Math.tan(g),k=a.getMatrix().clone(),m=new DvtMatrix(this.GetContext());this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_E?(m.skew(0,g),m.scale(0.2,1),this._direction===DvtBaseAnimation.DIR_W?m.translate(0,
0):m.translate(d,-b.w*h)):(m.skew(g,0),m.scale(1,0.2),this._direction===DvtBaseAnimation.DIR_N?m.translate(0,0):m.translate(-b.h*h,e));m.concat(k);this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,m);d=new DvtMatrix(this.GetContext());this._direction===DvtBaseAnimation.DIR_W||this._direction===DvtBaseAnimation.DIR_E?this._direction===DvtBaseAnimation.DIR_W?d.translate(b.w,0):d.translate(-b.w,0):this._direction===DvtBaseAnimation.DIR_N?d.translate(0,b.h):d.translate(0,-b.h);
d.concat(m);this._endAnim.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,d);this._endAnim.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,0)};DvtAnimConveyorOut.prototype.PlayEndAnim=function(){this._endAnim.play()};var DvtAnimFlipIn=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtAnimFlipIn,DvtBaseAnimation,"DvtAnimFlipIn");
DvtAnimFlipIn.prototype.Init=function(a,b,d,e,g,h){DvtAnimFlipIn.superclass.Init.call(this,a,b,g,h);this._axis=d;this._rotationDir=e;this._bSaveAndRestoreOriginalMatrices=!0;this._cubeEffect=!1};
DvtAnimFlipIn.prototype.InitStartState=function(a){DvtAnimFlipIn.superclass.InitStartState.call(this,a);a.setVisible(!1);var b=a.getDimensions(),d=b.w/2,e=b.h/2,g=Math.PI/6;this._rotationDir===DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE&&(g=-g);var h=Math.tan(g),k=a.getMatrix().clone(),m=new DvtMatrix(this.GetContext());this._axis===DvtBaseAnimation.AXIS_Y?(m.skew(0,g),m.scale(0,1),this._cubeEffect?this._rotationDir===DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE?m.translate(b.w,0):m.translate(0,-b.w*h):
m.translate(d,-d*h)):(m.skew(g,0),m.scale(1,0),this._cubeEffect?this._rotationDir===DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE?m.translate(-b.h*h,0):m.translate(0,b.h):m.translate(-e*h,e));m.concat(k);a.setMatrix(m);this._cubeEffect&&a.setAlpha(0)};
DvtAnimFlipIn.prototype.InitEndState=function(a){DvtAnimFlipIn.superclass.InitEndState.call(this,a);var b=a.getMatrix().clone();this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,b);this._cubeEffect&&this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,1)};DvtAnimFlipIn.prototype.InitializePlay=function(){DvtAnimFlipIn.superclass.InitializePlay.call(this);this.ShowObjects()};var DvtAnimFlipOut=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};
DvtObj.createSubclass(DvtAnimFlipOut,DvtBaseAnimation,"DvtAnimFlipOut");DvtAnimFlipOut.prototype.Init=function(a,b,d,e,g,h){DvtAnimFlipOut.superclass.Init.call(this,a,b,g,h);this._axis=d;this._rotationDir=e;this._bHideObjectsOnEnd=this._bSaveAndRestoreOriginalMatrices=!0;this._cubeEffect=!1};
DvtAnimFlipOut.prototype.InitEndState=function(a){DvtAnimFlipOut.superclass.InitEndState.call(this,a);var b=a.getDimensions(),d=b.w/2,e=b.h/2,g=Math.PI/6;this._rotationDir===DvtBaseAnimation.ROT_DIR_CLOCKWISE&&(g=-g);var h=Math.tan(g),k=a.getMatrix().clone(),m=new DvtMatrix(this.GetContext());this._axis===DvtBaseAnimation.AXIS_Y?(m.skew(0,g),m.scale(0,1),this._cubeEffect?this._rotationDir===DvtBaseAnimation.ROT_DIR_CLOCKWISE?m.translate(b.w,0):m.translate(0,-b.w*h):m.translate(d,-d*h)):(m.skew(g,
0),m.scale(1,0),this._cubeEffect?this._rotationDir===DvtBaseAnimation.ROT_DIR_CLOCKWISE?m.translate(-b.h*h,0):m.translate(0,b.h):m.translate(-e*h,e));m.concat(k);this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,m);this._cubeEffect&&this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,0)};var DvtAnimCubeIn=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtAnimCubeIn,DvtAnimFlipIn,"DvtAnimCubeIn");
DvtAnimCubeIn.prototype.Init=function(a,b,d,e,g,h){DvtAnimCubeIn.superclass.Init.call(this,a,b,d,e,g,h);this._cubeEffect=!0};var DvtAnimCubeOut=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtAnimCubeOut,DvtAnimFlipOut,"DvtAnimCubeOut");DvtAnimCubeOut.prototype.Init=function(a,b,d,e,g,h){DvtAnimCubeOut.superclass.Init.call(this,a,b,d,e,g,h);this._cubeEffect=!0};var DvtAnimFadeIn=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtAnimFadeIn,DvtBaseAnimation,"DvtAnimFadeIn");
DvtAnimFadeIn.prototype.Init=function(a,b,d,e){DvtAnimFadeIn.superclass.Init.call(this,a,b,d,e)};DvtAnimFadeIn.prototype.InitStartState=function(a){a.setAlpha(0)};DvtAnimFadeIn.prototype.InitEndState=function(a){this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,1)};var DvtAnimFadeOut=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtAnimFadeOut,DvtBaseAnimation,"DvtAnimFadeOut");
DvtAnimFadeOut.prototype.Init=function(a,b,d,e){DvtAnimFadeOut.superclass.Init.call(this,a,b,d,e)};DvtAnimFadeOut.prototype.InitEndState=function(a){this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getAlpha,a.setAlpha,0)};var DvtAnimMatrixTransformBy=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimMatrixTransformBy,DvtBaseAnimation,"DvtAnimMatrixTransformBy");
DvtAnimMatrixTransformBy.prototype.Init=function(a,b,d,e,g){this._transformMatrix=d;DvtAnimMatrixTransformBy.superclass.Init.call(this,a,b,e,g)};DvtAnimMatrixTransformBy.prototype.InitEndState=function(a){var b=a.getMatrix();b&&(b=b.clone(),b.concat(this._transformMatrix),this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,b))};var DvtAnimMoveBy=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimMoveBy,DvtBaseAnimation,"DvtAnimMoveBy");
DvtAnimMoveBy.prototype.Init=function(a,b,d,e,g){this._arOffsets=d instanceof Array?d:d instanceof DvtPoint?[d]:[new DvtPoint(0,0)];this._currIndex=0;DvtAnimMoveBy.superclass.Init.call(this,a,b,e,g)};
DvtAnimMoveBy.prototype.InitEndState=function(a){var b;b=this._currIndex<this._arOffsets.length?this._arOffsets[this._currIndex]:this._arOffsets[this._arOffsets.length-1];this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateX,a.setTranslateX,a.getTranslateX()+b.x);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateY,a.setTranslateY,a.getTranslateY()+b.y);this._currIndex++};var DvtAnimMoveTo=function(a,b,d,e,g){this.Init(a,b,d,e,g)};
DvtObj.createSubclass(DvtAnimMoveTo,DvtBaseAnimation,"DvtAnimMoveTo");DvtAnimMoveTo.prototype.Init=function(a,b,d,e,g){this._arPoints=d instanceof Array?d:d instanceof DvtPoint?[d]:[new DvtPoint(0,0)];this._currIndex=0;DvtAnimMoveTo.superclass.Init.call(this,a,b,e,g)};
DvtAnimMoveTo.prototype.InitEndState=function(a){var b;b=this._currIndex<this._arPoints.length?this._arPoints[this._currIndex]:this._arPoints[this._arPoints.length-1];this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateX,a.setTranslateX,b.x);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateY,a.setTranslateY,b.y);this._currIndex++};var DvtAnimRotateBy=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimRotateBy,DvtBaseAnimation,"DvtAnimRotateBy");
DvtAnimRotateBy.prototype.Init=function(a,b,d,e,g){this._arAngles=d instanceof Array?d:"number"==typeof d?[d]:[0];this._currIndex=0;DvtAnimRotateBy.superclass.Init.call(this,a,b,e,g)};DvtAnimRotateBy.prototype.InitEndState=function(a){var b;b=this._currIndex<this._arAngles.length?this._arAngles[this._currIndex]:this._arAngles[this._arAngles.length-1];this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getRotation,a.setRotation,a.getRotation()+b);this._currIndex++};
var DvtAnimRotateTo=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimRotateTo,DvtBaseAnimation,"DvtAnimRotateTo");DvtAnimRotateTo.prototype.Init=function(a,b,d,e,g){this._arAngles=d instanceof Array?d:"number"==typeof d?[d]:[0];this._currIndex=0;DvtAnimRotateTo.superclass.Init.call(this,a,b,e,g)};
DvtAnimRotateTo.prototype.InitEndState=function(a){this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getRotation,a.setRotation,this._currIndex<this._arAngles.length?this._arAngles[this._currIndex]:this._arAngles[this._arAngles.length-1]);this._currIndex++};var DvtAnimScaleBy=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimScaleBy,DvtBaseAnimation,"DvtAnimScaleBy");
DvtAnimScaleBy.prototype.Init=function(a,b,d,e,g){this._arScales=d instanceof Array?d:d instanceof DvtPoint?[d]:[new DvtPoint(1,1)];this._currIndex=0;DvtAnimScaleBy.superclass.Init.call(this,a,b,e,g)};
DvtAnimScaleBy.prototype.InitEndState=function(a){var b;b=this._currIndex<this._arScales.length?this._arScales[this._currIndex]:this._arScales[this._arScales.length-1];this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleX,a.setScaleX,a.getScaleX()*b.x);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleY,a.setScaleY,a.getScaleY()*b.y);this._currIndex++};var DvtAnimScaleFadeIn=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtAnimScaleFadeIn,DvtAnimFadeIn,"DvtAnimScaleFadeIn");
DvtAnimScaleFadeIn.prototype.Init=function(a,b,d,e,g,h,k){this._boundsRect=d;this._direction=e?e:DvtBaseAnimation.DIR_NW;this._minScale=g?g:0.5;DvtAnimScaleFadeIn.superclass.Init.call(this,a,b,h,k);this._bSaveAndRestoreOriginalMatrices=!0};
DvtAnimScaleFadeIn.prototype.InitStartState=function(a){DvtAnimScaleFadeIn.superclass.InitStartState.call(this,a);var b=this._minScale*a.getScaleX(),d=this._minScale*a.getScaleY(),e=a.getDimensions(),e=new DvtRectangle(0,0,b*e.w,d*e.h),e=DvtBaseAnimation.GetAlignCompassPoint(e,this._boundsRect,this._direction);a.setTranslateX(e.x);a.setTranslateY(e.y);a.setScaleX(b);a.setScaleY(d)};
DvtAnimScaleFadeIn.prototype.InitEndState=function(a){DvtAnimScaleFadeIn.superclass.InitEndState.call(this,a);var b=a.getMatrix().clone();this._animator.addProp(DvtAnimator.TYPE_MATRIX,a,a.getMatrix,a.setMatrix,b)};var DvtAnimScaleFadeOut=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtAnimScaleFadeOut,DvtAnimFadeOut,"DvtAnimScaleFadeOut");
DvtAnimScaleFadeOut.prototype.Init=function(a,b,d,e,g,h,k){this._boundsRect=d;this._direction=e?e:DvtBaseAnimation.DIR_NE;this._minScale=g?g:0.5;DvtAnimScaleFadeOut.superclass.Init.call(this,a,b,h,k);this._bSaveAndRestoreOriginalMatrices=!0};
DvtAnimScaleFadeOut.prototype.InitEndState=function(a){DvtAnimScaleFadeOut.superclass.InitEndState.call(this,a);var b=this._minScale*a.getScaleX(),d=this._minScale*a.getScaleY(),e=a.getDimensions(),e=new DvtRectangle(0,0,b*e.w,d*e.h),e=DvtBaseAnimation.GetAlignCompassPoint(e,this._boundsRect,this._direction);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleX,a.setScaleX,b);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleY,a.setScaleY,d);this._animator.addProp(DvtAnimator.TYPE_NUMBER,
a,a.getTranslateX,a.setTranslateX,e.x);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateY,a.setTranslateY,e.y)};var DvtAnimScaleTo=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimScaleTo,DvtBaseAnimation,"DvtAnimScaleTo");DvtAnimScaleTo.prototype.Init=function(a,b,d,e,g){this._arScales=d instanceof Array?d:d instanceof DvtPoint?[d]:[new DvtPoint(1,1)];this._currIndex=0;DvtAnimScaleTo.superclass.Init.call(this,a,b,e,g)};
DvtAnimScaleTo.prototype.InitEndState=function(a){var b;b=this._currIndex<this._arScales.length?this._arScales[this._currIndex]:this._arScales[this._arScales.length-1];this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleX,a.setScaleX,b.x);this._animator.addProp(DvtAnimator.TYPE_NUMBER,a,a.getScaleY,a.setScaleY,b.y);this._currIndex++};var DvtAnimPopIn=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimPopIn,DvtAnimScaleTo,"DvtAnimPopIn");
DvtAnimPopIn.BackOut=function(a){return DvtEasing.backOut(a,2.5)};DvtAnimPopIn.prototype.Init=function(a,b,d,e,g){this._bCenter=d;DvtAnimPopIn.superclass.Init.call(this,a,b,new DvtPoint(1,1),e,g)};DvtAnimPopIn.prototype.setEasing=function(){};DvtAnimPopIn.prototype.CreateAnimator=function(a){DvtAnimPopIn.superclass.CreateAnimator.call(this,a);this._animator.setEasing(DvtAnimPopIn.BackOut)};DvtAnimPopIn.prototype.InitStartState=function(a){a.setScaleX(0.01);a.setScaleY(0.01);a.setVisible(!0)};
var DvtAnimPopOut=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtAnimPopOut,DvtAnimScaleTo,"DvtAnimPopOut");DvtAnimPopOut.BackIn=function(a){return DvtEasing.backIn(a,2.5)};DvtAnimPopOut.prototype.Init=function(a,b,d,e,g){this._bCenter=d;DvtAnimPopOut.superclass.Init.call(this,a,b,new DvtPoint(0.01,0.01),e,g);this._bHideObjectsOnEnd=this._bSaveAndRestoreOriginalMatrices=!0};DvtAnimPopOut.prototype.setEasing=function(){};
DvtAnimPopOut.prototype.CreateAnimator=function(a){DvtAnimPopOut.superclass.CreateAnimator.call(this,a);this._animator.setEasing(DvtAnimPopOut.BackIn)};var DvtCombinedAnimConveyor=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtCombinedAnimConveyor,DvtParallelPlayable,"DvtCombinedAnimConveyor");
DvtCombinedAnimConveyor.prototype.Init=function(a,b,d,e,g,h,k){h||(h=0.5);k||(k=0);b=new DvtAnimConveyorOut(a,b,e,h,k);d=new DvtAnimConveyorIn(a,d,g,h,h/3+k);DvtCombinedAnimConveyor.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimCube=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtCombinedAnimCube,DvtParallelPlayable,"DvtCombinedAnimCube");
DvtCombinedAnimCube.prototype.Init=function(a,b,d,e,g,h,k){h||(h=0.5);k||(k=0);b=new DvtAnimCubeOut(a,b,e,g,h,k);d=new DvtAnimCubeIn(a,d,e,g,h,k);DvtCombinedAnimCube.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimFade=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtCombinedAnimFade,DvtParallelPlayable,"DvtCombinedAnimFade");
DvtCombinedAnimFade.prototype.Init=function(a,b,d,e,g){e||(e=0.5);g||(g=0);b=new DvtAnimFadeOut(a,b,e,g);d=new DvtAnimFadeIn(a,d,e,0.5*b.getDuration()+g);DvtCombinedAnimFade.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimFlip=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtCombinedAnimFlip,DvtSequentialPlayable,"DvtCombinedAnimFlip");
DvtCombinedAnimFlip.prototype.Init=function(a,b,d,e,g,h,k){h||(h=0.5);k||(k=0);b=new DvtAnimFlipOut(a,b,e,g,h,k);b.setEasing(DvtBaseAnimation.EASING_CUBIC_IN);d=new DvtAnimFlipIn(a,d,e,g,h,k);d.setEasing(DvtBaseAnimation.EASING_CUBIC_OUT);d.HideObjects();DvtCombinedAnimFlip.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimMoveBy=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtCombinedAnimMoveBy,DvtParallelPlayable,"DvtCombinedAnimMoveBy");
DvtCombinedAnimMoveBy.prototype.Init=function(a,b,d,e,g,h,k){h||(h=0.5);k||(k=0);b=new DvtAnimMoveBy(a,b,e,h,k);d=new DvtAnimMoveBy(a,d,g,h,k);DvtCombinedAnimMoveBy.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimScaleFade=function(a,b,d,e,g,h,k,m,n){this.Init(a,b,d,e,g,h,k,m,n)};DvtObj.createSubclass(DvtCombinedAnimScaleFade,DvtParallelPlayable,"DvtCombinedAnimScaleFade");
DvtCombinedAnimScaleFade.prototype.Init=function(a,b,d,e,g,h,k,m,n){g||(g=DvtBaseAnimation.DIR_NE);h||(h=DvtBaseAnimation.DIR_NW);k||(k=0.5);m||(m=0.5);n||(n=0);b=new DvtAnimScaleFadeOut(a,b,e,g,k,m,n);d=new DvtAnimScaleFadeIn(a,d,e,h,k,m,0.3*b.getDuration()+n);DvtCombinedAnimScaleFade.superclass.Init.call(this,a,[b,d])};var DvtCombinedAnimPopIn=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtCombinedAnimPopIn,DvtParallelPlayable,"DvtCombinedAnimPopIn");
DvtCombinedAnimPopIn.prototype.Init=function(a,b,d,e,g,h){for(var k=[],b=b instanceof Array?b:[b],h=null===h||isNaN(h)?0:h,m=0;m<b.length;m++){var n=b[m],o=h+Math.random()*(g-e),n=new DvtAnimPopIn(a,n,d,e,o);k.push(n)}DvtCombinedAnimPopIn.superclass.Init.call(this,a,k)};var DvtCombinedAnimPopOut=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtCombinedAnimPopOut,DvtParallelPlayable,"DvtCombinedAnimPopOut");
DvtCombinedAnimPopOut.prototype.Init=function(a,b,d,e,g,h){for(var k=[],b=b instanceof Array?b:[b],h=null===h||isNaN(h)?0:h,m=0;m<b.length;m++){var n=b[m],o=h+Math.random()*(g-e),n=new DvtAnimPopOut(a,n,d,e,o);k.push(n)}DvtCombinedAnimPopOut.superclass.Init.call(this,a,k)};var DvtBaseDrawEffect=function(){this._Init()};DvtObj.createSubclass(DvtBaseDrawEffect,DvtLockable,"DvtBaseDrawEffect");DvtBaseDrawEffect.prototype._Init=function(){DvtBaseDrawEffect.superclass._Init.call(this)};
DvtBaseDrawEffect.prototype.getId=function(){return this._id};DvtBaseDrawEffect.prototype.setId=function(a){this._id=a};DvtBaseDrawEffect.prototype.mergeProps=function(a){a.setId(this._id)};var DvtColorUtils={};DvtObj.createSubclass(DvtColorUtils,DvtObj,"DvtColorUtils");DvtColorUtils._RED=0;DvtColorUtils._GREEN=1;DvtColorUtils._BLUE=2;DvtColorUtils._ALPHA=3;DvtColorUtils._RGBA="rgba(";DvtColorUtils._RGB="rgb(";DvtColorUtils._POUND="#";DvtColorUtils._FACTOR=0.15;
DvtColorUtils.getColorFromName=function(a){if(!DvtColorUtils._names){var b=[];b.aqua="#00FFFF";b.black="#000000";b.blue="#0000FF";b.white="#FFFFFF";b.fuchsia="#FF00FF";b.gray="#848284";b.lime="#00FF00";b.maroon="#840000";b.green="#008200";b.navy="#000084";b.olive="#848200";b.red="#FF0000";b.silver="#C6C3C6";b.teal="#008284";b.yellow="#FFFF00";b.purple="#800080";b.cyan="#D2B48C";b.goldenrod="#DAA520";b.lightblue="#ADD8E6";b.lightyellow="#FFFFE0";b.orange="#FFA500";b.paleGoldenRod="#EEE8AA";b.paleturquoise=
"#AFEEEE";b.peachpuff="#FFDAB9";b.pink="#FFC0CB";b.tan="#D2B48C";b.thistle="#D8BFD8";b.transparent="rgba(255,255,255,0)";DvtColorUtils._names=b}return DvtColorUtils._names[a]};
DvtColorUtils.isColor=function(a,b){if(!b)return a.charAt(0)===DvtColorUtils._POUND||0===a.indexOf(DvtColorUtils._RGBA)||0===a.indexOf(DvtColorUtils._RGB);var d=!1,a=DvtStringUtils.ltrim(a),a=a.toLowerCase();if(a.charAt(0)===DvtColorUtils._POUND)7===a.length&&(d=RegExp(/^#[0-9a-f]{6}$/i).test(a));else{var e=0===a.indexOf(DvtColorUtils._RGBA),g;e||(g=0===a.indexOf(DvtColorUtils._RGB));if(e||g)if(g=a.indexOf(")"),0<=g){g=a.substring(e?5:4,g).split(",");for(var h=g.length,k=!0,m=0;m<h;m++){var n=g[m];
if(0>n||255<n||3<m&&(0>n||1<n)){k=!1;break}}k&&(d=e?4===h:3===h)}}return d};DvtColorUtils.getAlpha=function(a){return DvtColorUtils._getChannel(a,DvtColorUtils._ALPHA)};DvtColorUtils.setAlpha=function(a,b){return DvtColorUtils._setChannel(a,DvtColorUtils._ALPHA,b)};DvtColorUtils.getRed=function(a){return DvtColorUtils._getChannel(a,DvtColorUtils._RED)};DvtColorUtils.setRed=function(a,b){return DvtColorUtils._setChannel(a,DvtColorUtils._RED,b)};
DvtColorUtils.getBlue=function(a){return DvtColorUtils._getChannel(a,DvtColorUtils._BLUE)};DvtColorUtils.setBlue=function(a,b){return DvtColorUtils._setChannel(a,DvtColorUtils._BLUE,b)};DvtColorUtils.getGreen=function(a){return DvtColorUtils._getChannel(a,DvtColorUtils._GREEN)};DvtColorUtils.setGreen=function(a,b){return DvtColorUtils._setChannel(a,DvtColorUtils._GREEN,b)};
DvtColorUtils._getChannel=function(a,b){var d=a,e=null;(e=DvtColorUtils.getColorFromName(d))&&(d=e);if(b===DvtColorUtils._ALPHA){if("#"===d.charAt(0))return 7<d.length?parseInt(d.substring(1,3),16)/255:1;if("none"===d)return 0}e=d.indexOf("(");if(0>e)e=[],7<d.length?(e[0]=parseInt(d.substr(3,2),16),e[1]=parseInt(d.substr(5,2),16),e[2]=parseInt(d.substr(7,2),16),e[3]=parseInt(d.substr(1,2),16)/255):(e[0]=parseInt(d.substr(1,2),16),e[1]=parseInt(d.substr(3,2),16),e[2]=parseInt(d.substr(5,2),16),e[3]=
1),e=e[b];else{var g=d.indexOf(")"),e=d.substring(e+1,g).split(",");3===e.length&&b===DvtColorUtils._ALPHA?e=1:(e=e[b],e=parseFloat(e))}return e};
DvtColorUtils.getDarker=function(a,b){var d=DvtColorUtils._getChannel(a,DvtColorUtils._RED),e=DvtColorUtils._getChannel(a,DvtColorUtils._GREEN),g=DvtColorUtils._getChannel(a,DvtColorUtils._BLUE),h=DvtColorUtils._getChannel(a,DvtColorUtils._ALPHA);b||(b=DvtColorUtils._FACTOR);d=Math.max(parseInt(d*b),0);e=Math.max(parseInt(e*b),0);g=Math.max(parseInt(g*b),0);return DvtColorUtils.makeRGBA(d,e,g,h)};
DvtColorUtils.getGrey=function(a){var b=DvtColorUtils._getChannel(a,DvtColorUtils._RED),d=DvtColorUtils._getChannel(a,DvtColorUtils._BLUE),e=DvtColorUtils._getChannel(a,DvtColorUtils._GREEN),b=Math.round(0.3*b+0.59*d+0.11*e);return this.setRGB(a,b,b,b)};
DvtColorUtils.invert=function(a){var b=255-DvtColorUtils._getChannel(a,DvtColorUtils._RED),d=255-DvtColorUtils._getChannel(a,DvtColorUtils._BLUE),e=255-DvtColorUtils._getChannel(a,DvtColorUtils._GREEN);return"#"===a.charAt(0)?DvtColorUtils.makePound(b,d,e):a.substr(0,4)===DvtColorUtils._RGB?DvtColorUtils.makeRGB(b,d,e):DvtColorUtils.makeRGBA(b,d,e,DvtColorUtils._getChannel(a,DvtColorUtils._ALPHA))};DvtColorUtils.isRGBA=function(a){return a.substr(0,5)===DvtColorUtils._RGBA};
DvtColorUtils.makeRGB=function(a,b,d){d=null===d||isNaN(d)?0:d;b=null===b||isNaN(b)?0:b;a=null===a||isNaN(a)?0:a;return DvtColorUtils._RGB+a+","+b+","+d+")"};DvtColorUtils.makeRGBA=function(a,b,d,e){d=null===d||isNaN(d)?0:d;b=null===b||isNaN(b)?0:b;a=null===a||isNaN(a)?0:a;e=null===e||isNaN(e)?1:e;return DvtColorUtils._RGBA+a+","+b+","+d+","+e+")"};
DvtColorUtils.makePound=function(a,b,d){a=Math.round(a);b=Math.round(b);d=Math.round(d);a=a.toString(16);b=b.toString(16);d=d.toString(16);return"#"+(1===a.length?"0":"")+a+(1===b.length?"0":"")+b+(1===d.length?"0":"")+d};
DvtColorUtils.getPound=function(a){var b;if("#"===a.charAt(0)){if(7>=a.length)return a;b=DvtColorUtils._POUND;b+=a.substring(3,5)+a.substring(5,7)+a.substring(7,9)}else{b=DvtColorUtils.getRed(a);var d=DvtColorUtils.getGreen(a),a=DvtColorUtils.getBlue(a);b=DvtColorUtils.makePound(b,d,a)}return b};
DvtColorUtils.getRGB=function(a){var b;(b=DvtColorUtils.getColorFromName(a))&&(a=b);if("#"===a.charAt(0)){b=DvtColorUtils._RGB;var d=a.length;if(7<d)b+=parseInt(a.substring(3,5),16)+","+parseInt(a.substring(5,7),16)+","+parseInt(a.substring(7,9),16);else if(7===d)b+=parseInt(a.substring(1,3),16)+","+parseInt(a.substring(3,5),16)+","+parseInt(a.substr(5),16);else if(4===d){var d=a.substring(1,2),d=d+d,e=a.substring(2,3),e=e+e,a=a.substring(3),a=a+a;b+=parseInt(d,16)+","+parseInt(e,16)+","+parseInt(a,
16)}else 5===d?b+=parseInt(a.substring(1,3),16)+","+parseInt(a.substring(3,5),16)+",0,1":3===d&&(b+=parseInt(a.substring(1,3),16)+",0,0,1");b+=")"}else a.substr(0,5)===DvtColorUtils._RGBA?(d=a.lastIndexOf(","),b=DvtColorUtils._RGB,b+=a.substring(5,d),b+=")"):b=a;return b};
DvtColorUtils.getRGBA=function(a){var b;(b=DvtColorUtils.getColorFromName(a))&&(a=b);if("#"===a.charAt(0)){b=DvtColorUtils._RGBA;var d=a.length;if(7<d)b+=parseInt(a.substring(3,5),16)+","+parseInt(a.substring(5,7),16)+","+parseInt(a.substring(7,9),16)+","+parseInt(a.substring(1,3),16)/255;else if(7===d)b+=parseInt(a.substring(1,3),16)+","+parseInt(a.substring(3,5),16)+","+parseInt(a.substr(5),16)+",1";else if(5===d)b+=parseInt(a.substring(1,3),16)+","+parseInt(a.substring(3,5),16)+",0,1";else if(4===
d){var d=a.substring(1,2),d=d+d,e=a.substring(2,3),e=e+e,a=a.substring(3),a=a+a;b+=parseInt(d,16)+","+parseInt(e,16)+","+parseInt(a,16)+",1"}else 3===d&&(b+=parseInt(a.substring(1,3),16)+",0,0,1");b+=")"}else a.substr(0,4)===DvtColorUtils._RGB?(b=DvtColorUtils._RGBA,b+=a.substring(4,a.length-1)+",1)"):b=a;return b};
DvtColorUtils._setChannel=function(a,b,d){if(void 0===b||void 0===d||b<DvtColorUtils._RED||b>DvtColorUtils._ALPHA)return a;var e=DvtColorUtils.getColorFromName(a);e&&(a=e);var g,e="#"===a.charAt(0),h;if(e)g=[],g.push(parseInt(a.substr(1,2),16)),g.push(parseInt(a.substr(3,2),16)),g.push(parseInt(a.substr(5,2),16)),b===DvtColorUtils._ALPHA&&(g.push(d),e=!1,h=!0);else{h=a.substr(0,5)===DvtColorUtils._RGBA;g=a.indexOf("(");var k=a.indexOf(")");g=a.substring(g+1,k).split(",");!h&&b===DvtColorUtils._ALPHA&&
(g.push(d),h=!0)}g[b]=d;return e?DvtColorUtils.makePound(g[0],g[1],g[2]):h?DvtColorUtils.makeRGBA(g[0],g[1],g[2],g[3]):DvtColorUtils.makeRGB(g[0],g[1],g[2])};
DvtColorUtils.setRGB=function(a,b,d,e){e=null===e||isNaN(e)?0:e;d=null===d||isNaN(d)?0:d;b=null===b||isNaN(b)?0:b;if("#"===a.charAt(0))return DvtColorUtils.makePound(b,d,e);var g=a.substr(0,5)===DvtColorUtils._RGBA,b=(g?DvtColorUtils._RGBA:DvtColorUtils._RGB)+b+","+d+","+e;g&&(g=a.lastIndexOf(5,","),d=a.indexOf(")"),b+=","+a.substring(g+1,d));return b+")"};
DvtColorUtils.getBrighter=function(a,b){var d=DvtColorUtils._getChannel(a,DvtColorUtils._RED),e=DvtColorUtils._getChannel(a,DvtColorUtils._GREEN),g=DvtColorUtils._getChannel(a,DvtColorUtils._BLUE),h=DvtColorUtils._getChannel(a,DvtColorUtils._ALPHA);b||(b=DvtColorUtils._FACTOR);var k=parseInt(1/(1-b));if(0===d&&0===e&&0===g)return d=parseInt(255*b),DvtColorUtils.makeRGBA(d,d,d,h);0<d&&d<k&&(d=k);0<e&&e<k&&(e=k);0<g&&g<k&&(g=k);d=Math.min(parseInt(d/b),255);e=Math.min(parseInt(e/b),255);g=Math.min(parseInt(g/
b),255);return DvtColorUtils.makeRGBA(d,e,g,h)};DvtColorUtils.hsv2rgb=function(a,b,d){var e,g,h,k,m,n;if(0==d)return{r:0,g:0,v:0};b/=100;d/=100;a=a%360/60;k=Math.floor(a);m=a-k;a=d*(1-b);n=d*(1-b*m);b=d*(1-b*(1-m));0==k?(e=d,g=b,h=a):1==k?(e=n,g=d,h=a):2==k?(e=a,g=d,h=b):3==k?(e=a,g=n,h=d):4==k?(e=b,g=a,h=d):5==k&&(e=d,g=a,h=n);e=Math.floor(255*e);g=Math.floor(255*g);h=Math.floor(255*h);return{r:e,g:g,b:h}};
DvtColorUtils.rgb2hsv=function(a,b,d){var e,g,a=a/255,b=b/255,d=d/255;e=Math.min(a,b,d);g=Math.max(a,b,d);if(e==g)return{h:void 0,s:0,v:100*g};a=Math.floor(60*((a==e?3:b==e?5:1)-(a==e?b-d:b==e?d-a:a-b)/(g-e)))%360;e=Math.floor(100*((g-e)/g));g=Math.floor(100*g);return{h:a,s:e,v:g}};
DvtColorUtils.getPastel=function(a,b){var d=DvtColorUtils._getChannel(a,DvtColorUtils._ALPHA),e=DvtColorUtils._getChannel(a,DvtColorUtils._RED),g=DvtColorUtils._getChannel(a,DvtColorUtils._GREEN),h=DvtColorUtils._getChannel(a,DvtColorUtils._BLUE),e=Math.min(e+parseInt((255-e)*b),255),g=Math.min(g+parseInt((255-g)*b),255),h=Math.min(h+parseInt((255-h)*b),255);return DvtColorUtils.makeRGBA(e,g,h,d)};
DvtColorUtils.interpolateColor=function(a,b,d){var e=DvtColorUtils.getRed(a),g=DvtColorUtils.getGreen(a),h=DvtColorUtils.getBlue(a),a=DvtColorUtils.getAlpha(a),k=DvtColorUtils.getRed(b),m=DvtColorUtils.getGreen(b),n=DvtColorUtils.getBlue(b),b=DvtColorUtils.getAlpha(b),e=Math.round(DvtMath.interpolateNumber(e,k,d)),g=Math.round(DvtMath.interpolateNumber(g,m,d)),h=Math.round(DvtMath.interpolateNumber(h,n,d)),d=Math.round(DvtMath.interpolateNumber(a,b,d));return DvtColorUtils.makeRGBA(e,g,h,d)};
DvtColorUtils.inferColor=function(a,b,d){if(a==b)return d;if(d==a)return b;var e,g=DvtColorUtils.getRed(a),h=DvtColorUtils.getRed(b);g==h?e=DvtColorUtils.getRed(d):(0==g&&(g=1),e=h/g*DvtColorUtils.getRed(d));var k,g=DvtColorUtils.getGreen(a),h=DvtColorUtils.getGreen(b);g==h?k=DvtColorUtils.getGreen(d):(0==g&&(g=1),k=h/g*DvtColorUtils.getGreen(d));g=DvtColorUtils.getBlue(a);h=DvtColorUtils.getBlue(b);g==h?a=DvtColorUtils.getBlue(d):(0==g&&(g=1),a=h/g*DvtColorUtils.getBlue(d));return DvtColorUtils.makePound(e,
k,a)};var DvtClipPath=function(a){this._id=a;this._regions=[]};DvtObj.createSubclass(DvtClipPath,DvtObj,"DvtClipPath");DvtClipPath.NONE=0;DvtClipPath.RECT=1;DvtClipPath.PATH=2;DvtClipPath.POLYGON=3;DvtClipPath.ELLIPSE=4;DvtClipPath.CIRCLE=5;DvtClipPath.prototype._addRegion=function(a){a&&this._regions.push(a)};DvtClipPath.prototype.getId=function(){return this._id};DvtClipPath.prototype.getRegions=function(){return this._regions};
DvtClipPath.prototype.addRect=function(a,b,d,e,g,h){var k={};k.type=DvtClipPath.RECT;k.x=a;k.y=b;k.w=d;k.h=e;k.rx=g;k.rx=h;this._addRegion(k)};DvtClipPath.prototype.addCircle=function(a,b,d){var e={};e.type=DvtClipPath.CIRCLE;e.cx=a;e.cy=b;e.r=d;this._addRegion(e)};DvtClipPath.prototype.addEllipse=function(a,b,d,e){var g={};g.type=DvtClipPath.ELLIPSE;g.cx=a;g.cy=b;g.rx=d;g.ry=e;this._addRegion(g)};DvtClipPath.prototype.addPolygon=function(a){var b={};b.type=DvtClipPath.POLYGON;b.points=a;this._addRegion(b)};
DvtClipPath.prototype.addPath=function(a){var b={};b.type=DvtClipPath.PATH;b.d=a;this._addRegion(b)};var DvtFill=function(){this._Init()};DvtObj.createSubclass(DvtFill,DvtLockable,"DvtFill");DvtFill.NONE=0;DvtFill.COLOR=1;DvtFill.GRADIENT=2;DvtFill.PATTERN=3;DvtFill.IMAGE=4;DvtFill.prototype._Init=function(){DvtFill.superclass._Init.call(this)};DvtFill.prototype.getId=function(){return this._id};DvtFill.prototype.setId=function(a){this._id=a};
var DvtFont=function(a,b,d,e,g,h,k){this._Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtFont,DvtObj,"DvtFont");DvtFont.prototype._Init=function(a,b,d,e,g,h,k){this.size=null===a||isNaN(a)?12:a;this.color=b?b:"#000000";this.alpha=null===d||isNaN(d)?1:d;this.name=e;this.bold=g||!1;this.italic=h||!1;this.underline=k||!1};DvtFont.prototype.getSize=function(){return this.size};DvtFont.prototype.getAlpha=function(){return this.alpha};DvtFont.prototype.getColor=function(){return this.color};
DvtFont.prototype.getName=function(){return this.name};DvtFont.prototype.isBold=function(){return this.bold};DvtFont.prototype.isItalic=function(){return this.italic};DvtFont.prototype.isUnderline=function(){return this.underline};
DvtFont.prototype.getCSSStyle=function(){var a=new DvtCSSStyle;a.setStyle(DvtCSSStyle.FONT_FAMILY,this.getName());a.setStyle(DvtCSSStyle.COLOR,this.getColor());a.setStyle(DvtCSSStyle.FONT_SIZE,this.getSize());this.isBold()&&a.setStyle(DvtCSSStyle.FONT_WEIGHT,"bold");this.isItalic()&&a.setStyle(DvtCSSStyle.FONT_STYLE,"italic");this.isUnderline()&&a.setStyle(DvtCSSStyle.TEXT_DECORATION,"underline");return a};var DvtSolidFill=function(a,b){this._Init(a,b)};
DvtObj.createSubclass(DvtSolidFill,DvtFill,"DvtSolidFill");DvtSolidFill.prototype.clone=function(){var a=new DvtSolidFill;this.mergeProps(a);return a};DvtSolidFill.prototype._Init=function(a,b){DvtSolidFill.superclass._Init.call(this);a||(a="none");if(void 0===b||null===b)b=DvtColorUtils.getAlpha(a),a=DvtColorUtils.getRGB(a);this._fc=a;this._fa=b};DvtSolidFill.prototype.getColor=function(){return this._fc};DvtSolidFill.prototype.setColor=function(a){this.isLocked()||(this._fc=a)};
DvtSolidFill.prototype.getAlpha=function(){return this._fa};DvtSolidFill.prototype.setAlpha=function(a){this.isLocked()||(this._fa=a)};DvtSolidFill.prototype.mergeProps=function(a){DvtSolidFill.superclass.mergeProps.call(this,a);a._fc=this._fc;a._fa=this._fa};var DvtStroke=function(a,b){this._Init(a,b)};DvtObj.createSubclass(DvtStroke,DvtLockable,"DvtStroke");DvtStroke.SOLID=0;DvtStroke.DASHED=1;DvtStroke.DOTTED=2;DvtStroke.DASHED_DOTTED=3;DvtStroke.DASH="6";DvtStroke.DOT="3";DvtStroke.DASH_DOT="6,4,3,4";
DvtStroke.SQUARE="square";DvtStroke.ROUND="round";DvtStroke.BEVEL="bevel";DvtStroke.MITER="miter";DvtStroke.BUTT="butt";DvtStroke.convertTypeString=function(a){return"solid"==a?DvtStroke.SOLID:"dashed"==a?DvtStroke.DASHED:"dotted"==a?DvtStroke.DOTTED:DvtStroke.SOLID};DvtStroke.prototype._Init=function(a){this._sw=null===a||isNaN(a)?1:a;DvtStroke.superclass._Init.call(this)};DvtStroke.prototype.getId=function(){return this._id};DvtStroke.prototype.setId=function(a){this._id=a};
DvtStroke.prototype.mergeProps=function(a){a._sw=this._sw;a._st=this._st;a._sd=this._sd;a._sj=this._sj;a._se=this._se;a._sm=this._sm;DvtStroke.superclass.mergeProps.call(this,a)};DvtStroke.prototype.setStyle=function(a,b,d,e,g){this.isLocked()||(a&&!b&&(a===DvtStroke.DASHED?b=DvtStroke.DASH:a===DvtStroke.DOTTED?b=DvtStroke.DOT:a===DvtStroke.DASHED_DOTTED&&(b=DvtStroke.DASH_DOT)),this._st=a,this._sd=b,d&&(this._sj=d),e&&(this._se=e),g&&(this._sm=g))};DvtStroke.prototype.getDash=function(){return this._sd};
DvtStroke.prototype.getLineJoin=function(){return this._sj};DvtStroke.prototype.setLineJoin=function(a){this.isLocked()||(this._sj=a)};DvtStroke.prototype.getLineEnd=function(){return this._se};DvtStroke.prototype.setLineEnd=function(a){this.isLocked()||(this._se=a)};DvtStroke.prototype.getMiterLimit=function(){return this._sm};DvtStroke.prototype.setMiterLimit=function(a){this.isLocked()||(this._sm=a)};DvtStroke.prototype.getType=function(){return this._st};
DvtStroke.prototype.setType=function(a,b){this.isLocked()||(a===DvtStroke.SOLID?b=null:b||(a===DvtStroke.DASHED?b=DvtStroke.DASH:a===DvtStroke.DOTTED?b=DvtStroke.DOT:a===DvtStroke.DASHED_DOTTED&&(b=DvtStroke.DASH_DOT)),this._st=a,this._sd=b)};DvtStroke.prototype.getWidth=function(){return this._sw};DvtStroke.prototype.setWidth=function(a){this.isLocked()||(this._sw=a)};var DvtGradientStroke=function(a,b,d,e,g,h){this._Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtGradientStroke,DvtStroke,"DvtGradientStroke");
DvtGradientStroke.prototype.getAlpha=function(){return 1};DvtGradientStroke.prototype.getAlphas=function(){return this._arAlphas};DvtGradientStroke.prototype.getBounds=function(){return this._arBounds};DvtGradientStroke.prototype.getColors=function(){return this._arColors};DvtGradientStroke.prototype.getStops=function(){return this._arStops};
DvtGradientStroke.prototype._Init=function(a,b,d,e,g,h){DvtGradientStroke.superclass._Init.call(this,g,h);this._arColors=a;this._arBounds=e;a=a.length-1;b||(b=DvtGradientStroke.createDefaultAlphas(a));this._arAlphas=b;d||(d=DvtGradientStroke.createDefaultStops(a));this._arStops=d};DvtGradientStroke.createDefaultAlphas=function(a){if(0>a)return null;for(var b=[],d=0;d<a;d++)b.push(1);return b};
DvtGradientStroke.createDefaultStops=function(a){var b=[],d=1/a,e=0;do b.push(e),e+=d;while(0<--a);b.push(1);return b};DvtGradientStroke.prototype.mergeProps=function(a){a._arColors=this._arColors;a._arStops=this._arStops;a._arAlphas=this._arAlphas;a._arBounds=this._arBounds;DvtGradientStroke.superclass.mergeProps.call(this)};var DvtLinearGradientStroke=function(a,b,d,e,g,h,k){this._Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtLinearGradientStroke,DvtGradientStroke,"DvtLinearGradientStroke");
DvtLinearGradientStroke.prototype.clone=function(){var a=new DvtLinearGradientStroke;this.mergeProps(a);return a};DvtLinearGradientStroke.prototype._Init=function(a,b,d,e,g,h,k){DvtLinearGradientStroke.superclass._Init.call(this,b,d,e,g,h,k);this._angle=null===a||isNaN(a)?0:a};DvtLinearGradientStroke.prototype.getAngle=function(){return this._angle};DvtLinearGradientStroke.prototype.mergeProps=function(a){DvtLinearGradientStroke.superclass.mergeProps.call(this,a);a._angle=this._angle};
DvtLinearGradientStroke.prototype.setAngle=function(a){!this.isLocked()&&0!==a&&(360<Math.abs(a)&&(a%=360),this._angle=a)};var DvtSolidStroke=function(a,b,d,e){this._Init(a,b,d,e)};DvtObj.createSubclass(DvtSolidStroke,DvtStroke,"DvtSolidStroke");DvtSolidStroke.prototype.clone=function(){var a=new DvtSolidStroke;this.mergeProps(a);return a};
DvtSolidStroke.prototype._Init=function(a,b,d,e){this._sc=a;null!==b&&void 0!==b&&(this._sa=b);this._st=DvtStroke.SOLID;DvtSolidStroke.superclass._Init.call(this,d,e)};DvtSolidStroke.prototype.getAlpha=function(){return null!==this._sa&&void 0!==this._sa?this._sa:1};DvtSolidStroke.prototype.setAlpha=function(a){this.bLocked||(this._sa=a)};DvtSolidStroke.prototype.getColor=function(){return this._sc};DvtSolidStroke.prototype.setColor=function(a){this.bLocked||(this._sc=a)};
DvtSolidStroke.prototype.mergeProps=function(a){DvtSolidStroke.superclass.mergeProps.call(this,a);a._sc=this._sc;a._sa=this._sa};var DvtBevel=function(a,b,d,e,g,h,k,m,n,o){this._Init(a,b,d,e,g,h,k,m,n,o)};DvtObj.createSubclass(DvtBevel,DvtBaseDrawEffect,"DvtBevel");DvtBevel.TYPE_INNER="inner";DvtBevel.TYPE_OUTER="outer";DvtBevel.TYPE_FULL="full";DvtBevel._uniqueId=1;
DvtBevel.prototype._Init=function(a,b,d,e,g,h,k,m,n){DvtBevel.superclass._Init.call(this);this.__type="bevel";this._distance=null===a||isNaN(a)?4:a;this._angle=null===b||isNaN(b)?45:b;this._hilightRgba=d?d:"rgba(255,255,255,1)";this._shadowRgba=e?e:"rgba(0,0,0,1)";this._blurX=null===g||isNaN(g)?4:g;this._blurY=null===h||isNaN(h)?4:h;this._strength=null===k||isNaN(k)?1:k;this._quality=null===m||isNaN(m)?1:m;this._type=n;this._bKnockout=!1;this._Id="bv"+DvtBevel._uniqueId++};
DvtBevel.prototype.clone=function(){var a=new DvtBevel;this.mergeProps(a);return a};DvtBevel.prototype.mergeProps=function(a){DvtBevel.superclass.mergeProps.call(this,a);a._distance=this._distance;a._angle=this._angle;a._hilightRgba=this._hilightRgba;a._shadowRgba=this._shadowRgba;a._blurX=this._blurX;a._blurY=this._blurY;a._strength=this._strength;a._quality=this._quality;a._type=this._type;a._bKnockout=this._bKnockout;a._Id=this._Id};var DvtGlow=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};
DvtObj.createSubclass(DvtGlow,DvtBaseDrawEffect,"DvtGlow");DvtGlow._uniqueId=1;DvtGlow.prototype.Init=function(a,b,d,e,g,h,k){DvtGlow.superclass._Init.call(this);this.__type="glow";this._rgba=a?a:"rgba(255,255,255,1)";this._blurX=null===b||isNaN(b)?4:b;this._blurY=null===d||isNaN(d)?4:d;this._strength=null===e||isNaN(e)?1:e;this._quality=null===g||isNaN(g)?1:g;this._bInner=h?!0:!1;this._bKnockout=k?!0:!1;this._Id="dg"+DvtGlow._uniqueId++};
DvtGlow.prototype.clone=function(){var a=new DvtGlow;this.mergeProps(a);return a};DvtGlow.prototype.mergeProps=function(a){DvtGlow.superclass.mergeProps.call(this,a);a._rgba=this._rgba;a._blurX=this._blurX;a._blurY=this._blurY;a._strength=this._strength;a._quality=this._quality;a._bInner=this._bInner;a._bKnockout=this._bKnockout;a._Id=this._Id};var DvtShadow=function(a,b,d,e,g,h,k,m,n,o){this._Init(a,b,d,e,g,h,k,m,n,o)};DvtObj.createSubclass(DvtShadow,DvtBaseDrawEffect,"DvtShadow");
DvtShadow._uniqueId=1;DvtShadow.prototype._Init=function(a,b,d,e,g,h,k,m){DvtShadow.superclass._Init.call(this);this.__type="shadow";this._rgba=a?a:"rgba(48,48,48,0.35)";this._distance=null===b||isNaN(b)?4:b;this._strength=null===h||isNaN(h)?1:h;this._blurX=null===d||isNaN(d)?4:d;this._blurY=null===e||isNaN(e)?4:e;this._angle=null===g||isNaN(g)?45:g;this._quality=null===k||isNaN(k)?1:k;this._bInner=m?!0:!1;this._bHide=this._bKnockout=!1;this._Id="ds"+DvtShadow._uniqueId++};
DvtShadow.prototype.clone=function(){var a=new DvtShadow;this.mergeProps(a);return a};DvtShadow.prototype.mergeProps=function(a){DvtShadow.superclass.mergeProps.call(this,a);a._rgba=this._rgba;a._distance=this._distance;a._strength=this._strength;a._blurX=this._blurX;a._blurY=this._blurY;a._angle=this._angle;a._quality=this._quality;a._bInner=this._bInner;a._bKnockout=this._bKnockout;a._bHide=this._bHide;a._Id=this._Id};var DvtGradientFill=function(a,b,d,e){this._Init(a,b,d,e)};
DvtObj.createSubclass(DvtGradientFill,DvtFill,"DvtGradientFill");DvtGradientFill.prototype.getAlphas=function(){return this._arAlphas};DvtGradientFill.prototype.getBounds=function(){return this._arBounds};DvtGradientFill.prototype.getColors=function(){return this._arColors};DvtGradientFill.prototype.getStops=function(){return this._arStops};
DvtGradientFill.prototype._Init=function(a,b,d,e){DvtGradientFill.superclass._Init.call(this);this._arColors=a;this._arBounds=e;e=0;a&&(e=a.length-1);if(!b){b=[];for(a=0;a<e;a++)b.push(1)}this._arAlphas=b;if(!d){d=[];b=0<e?1/e:0;a=0;do d.push(a),a+=b;while(0<--e);d.push(1)}this._arStops=d};DvtGradientFill.prototype.mergeProps=function(a){a._arColors=this._arColors;a._arStops=this._arStops;a._arAlphas=this._arAlphas;a._arBounds=this._arBounds;DvtGradientFill.superclass.mergeProps.call(this,a)};
var DvtLinearGradientFill=function(a,b,d,e,g){this._Init(a,b,d,e,g)};DvtObj.createSubclass(DvtLinearGradientFill,DvtGradientFill,"DvtLinearGradientFill");DvtLinearGradientFill.prototype.clone=function(){var a=new DvtLinearGradientFill;this.mergeProps(a);return a};DvtLinearGradientFill.prototype._Init=function(a,b,d,e,g){DvtLinearGradientFill.superclass._Init.call(this,b,d,e,g);this._angle=null===a||isNaN(a)?0:a};DvtLinearGradientFill.prototype.getAngle=function(){return this._angle};
DvtLinearGradientFill.prototype.mergeProps=function(a){DvtLinearGradientFill.superclass.mergeProps.call(this,a);a._angle=this._angle};DvtLinearGradientFill.prototype.setAngle=function(a){!this.isLocked()&&0!==a&&(360<Math.abs(a)&&(a%=360),this._angle=a)};var DvtImageFill=function(a,b,d){this._Init(a,b,d)};DvtObj.createSubclass(DvtImageFill,DvtFill,"DvtImageFill");DvtImageFill.prototype.getBound=function(){return this._bound};DvtImageFill.prototype.getSrc=function(){return this._src};
DvtImageFill.prototype.getRepeat=function(){return this._repeat};DvtImageFill.prototype._Init=function(a,b,d){DvtImageFill.superclass._Init.call(this);this._src=a;this._bound=b;this._repeat=d};DvtImageFill.prototype.mergeProps=function(a){a._src=this._src;a._bound=this._bound;a._repeat=this._repeat;DvtImageFill.superclass.mergeProps.call(this)};var DvtPatternFill=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtPatternFill,DvtFill,"DvtPatternFill");DvtPatternFill.SM_DIAG_UP_LT="sDUL";
DvtPatternFill.LG_DIAG_UP_LT="lDUL";DvtPatternFill.SM_DIAG_UP_RT="sDUR";DvtPatternFill.LG_DIAG_UP_RT="lDUR";DvtPatternFill.SM_CROSSHATCH="sC";DvtPatternFill.LG_CROSSHATCH="lC";DvtPatternFill.SM_CHECK="sCh";DvtPatternFill.LG_CHECK="lCh";DvtPatternFill.SM_TRIANGLE_CHECK="sTCh";DvtPatternFill.LG_TRIANGLE_CHECK="lTCh";DvtPatternFill.SM_DIAMOND_CHECK="sDCh";DvtPatternFill.LG_DIAMOND_CHECK="lDCh";
DvtPatternFill.prototype.Init=function(a,b,d){DvtPatternFill.superclass._Init.call(this);this._pattern=a?a:DvtPatternFill.SM_DIAG_UP_LT;this._fillColor=b?b:"#000000";this._backgroundColor=d?d:"#ffffff"};DvtPatternFill.prototype.getPattern=function(){return this._pattern};DvtPatternFill.prototype.getColor=function(){return this._fillColor};DvtPatternFill.prototype.getBackgroundColor=function(){return this._backgroundColor};
DvtPatternFill.prototype.mergeProps=function(a){a._pattern=this._pattern;a._fillColor=this._fillColor;a._backgroundColor=this._backgroundColor;DvtPatternFill.superclass.mergeProps.call(this)};DvtPatternFill.prototype.getMatrix=function(){return this._matrix?this._matrix:new DvtMatrix};DvtPatternFill.prototype.setMatrix=function(a){a.isLocked()||(null!=this._matrix&&this._matrix.__unlock(),(this._matrix=a)&&this._matrix.__lock())};
var DvtRadialGradientFill=function(a,b,d,e,g,h,k){this._Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtRadialGradientFill,DvtGradientFill,"DvtRadialGradientFill");DvtRadialGradientFill.prototype.clone=function(){var a=new DvtRadialGradientFill;this.mergeProps(a);return a};DvtRadialGradientFill.prototype.getRadius=function(){return this._r};DvtRadialGradientFill.prototype.getCx=function(){return this._cx};DvtRadialGradientFill.prototype.getCy=function(){return this._cy};
DvtRadialGradientFill.prototype._Init=function(a,b,d,e,g,h,k){DvtRadialGradientFill.superclass._Init.call(this,a,b,d,k);this._cx=e;this._cy=g;this._r=h};DvtRadialGradientFill.prototype.mergeProps=function(a){DvtRadialGradientFill.superclass.mergeProps.call(this,a);a._cx=this._cx;a._cy=this._cy;a._r=this._r};var DvtSelectionEffectUtils={};DvtObj.createSubclass(DvtSelectionEffectUtils,DvtObj,"DvtSelectionEffectUtils");DvtSelectionEffectUtils.SEL_TYPE_STROKE_FILTERS=0;
DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS=1;DvtSelectionEffectUtils.DEFAULT_SEL_TYPE=DvtSelectionEffectUtils.SEL_TYPE_STROKE_FILTERS;DvtSelectionEffectUtils.getSelectingBorderColor=function(a){var b=DvtColorUtils.getRed(a),d=DvtColorUtils.getGreen(a),a=DvtColorUtils.getBlue(a),d=DvtColorUtils.rgb2hsv(b,d,a),b=d.h,d=d.v,d=DvtSelectionEffectUtils.ModBrightness(d),b=DvtColorUtils.hsv2rgb(b,100,d);return DvtColorUtils.makeRGB(b.r,b.g,b.b)};
DvtSelectionEffectUtils.ModBrightness=function(a){return 95>a?100:a-25};DvtSelectionEffectUtils.createSelectionEffects=function(a){var a=this.getSelectingBorderColor(a),b=[];b.push(new DvtGlow(DvtColorUtils.setAlpha(a,1),4,4,10,3,!0,!1));b.push(new DvtGlow(DvtColorUtils.setAlpha("#000000",1),2,2,12,3,!0,!1));b.push(new DvtShadow(DvtColorUtils.setAlpha("#05283f",0.7),2,10,7,35,1));return b};
DvtSelectionEffectUtils.createMarkerSelectionEffects=function(a,b){var d=a instanceof DvtSvgContext,e=DvtColorUtils.getDarker(b,0.8),g=DvtColorUtils.getBrighter(b,0.5),h=2,k=2,m=h,n=k,o=7,q=7,s=3;d&&(k=h=3,m=2*h,n=2*k,q=o=16,s=6);h=new DvtGlow(DvtColorUtils.setAlpha("#ffffff",0.8),h,k,10,3,!1,!1);e=new DvtGlow(DvtColorUtils.setAlpha(e,0.8),m,n,12,3,!1,!1);g=new DvtGlow(DvtColorUtils.setAlpha(g,0.5),o,q,s,3,!1,!1);o=[];d?(o.push(g),o.push(e),o.push(h)):(o.push(h),o.push(e),o.push(g));return o};
DvtSelectionEffectUtils.applyDrawEffect=function(a,b){if(0==a.getNumDrawEffects())a.addDrawEffect(b);else{var d=a.getDrawEffectIndex(b);-1<d?(a.removeDrawEffectAt(d),a.addDrawEffectAt(b,d)):a.addDrawEffect(b)}};DvtSelectionEffectUtils.createSelectingStroke=function(a){a=DvtSelectionEffectUtils.getSelectingBorderColor(a);a=new DvtSolidStroke(a,1,1.5);a.setMiterLimit(1);return a};
DvtSelectionEffectUtils.createSelectionFill=function(a,b,d){var e=DvtSelectionEffectUtils.getSelectingBorderColor(a),g,h,k;b&&d?(g=["#ffff00",a,e],h=[1,1,1],k=[0,0.5,1]):b?(g=[a,e],h=[1,1],k=[0.5,1]):d&&(g=["#ffff00",a],h=[1,1],k=[0,0.5]);return new DvtLinearGradientFill(-65,g,h,k)};DvtSelectionEffectUtils.getSelectingCursor=function(){return"pointer"};DvtSelectionEffectUtils.createSelectedRadialGradientFill=function(a){return new DvtRadialGradientFill([a,"#ffffff"],[1,1],[0,1])};
DvtSelectionEffectUtils.applySelectingState=function(a,b){if(a._bSelecting){DvtSelectionEffectUtils._saveUpStrokeFill(a);var d=DvtSelectionEffectUtils.createSelectingStroke(b);a._savedHoverStroke=d}else a._savedHoverStroke=a._savedUpStroke;a._savedHoverFill=a._savedUpFill;switch(a._selectionType){case DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS:DvtSelectionEffectUtils.ApplySelectingNoFilters();break;default:DvtSelectionEffectUtils.ApplySelectingFilters()}DvtSelectionEffectUtils.ApplySelectingStrokeFill(a)};
DvtSelectionEffectUtils.applySelectionState=function(a,b){a._bSelected&&DvtSelectionEffectUtils._saveUpStrokeFill(a);a._bSelecting?(a._savedSelectionFill=a._savedHoverFill,a._savedSelectionStroke=a._savedHoverStroke):(a._savedSelectionFill=a._savedUpFill,a._savedSelectionStroke=a._savedUpStroke);switch(a._selectionType){case DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS:DvtSelectionEffectUtils.ApplySelectionNoFilters(a,b);break;default:DvtSelectionEffectUtils.ApplySelectionFilters(a,b)}DvtSelectionEffectUtils.ApplySelectionStrokeFill(a)};
DvtSelectionEffectUtils.ApplySelectionNoFilters=function(a,b){if(a._bSelected){var d=new DvtSolidStroke(b,1,1);a._savedSelectionStroke=d;d=new DvtSolidFill("#ffffff",1);a._savedSelectionFill=d}};
DvtSelectionEffectUtils.ApplySelectionFilters=function(a,b){a._selectionEffects||DvtSelectionEffectUtils.UpdateSelectionEffects(a,b);if(a._bSelected){if(a._selectionEffects)for(var d=0;d<a._selectionEffects.length;d++){var e=a._selectionEffects[d];(!(e instanceof DvtShadow)||a._bSelectedShadow)&&DvtSelectionEffectUtils.applyDrawEffect(a,e)}}else DvtSelectionEffectUtils.ClearSelectionEffects(a)};DvtSelectionEffectUtils.ClearSelectionEffects=function(a){if(a._selectionEffects)for(var b=0;b<a._selectionEffects.length;b++)a.removeDrawEffect(a._selectionEffects[b])};
DvtSelectionEffectUtils.DestroySelectionEffects=function(a){a._selectionEffects=null};DvtSelectionEffectUtils.UpdateSelectionEffects=function(a,b){a._selectionEffects=DvtSelectionEffectUtils.createSelectionEffects(b)};DvtSelectionEffectUtils._saveUpStrokeFill=function(a){!a._savedUpStroke&&!a._upStrokeSaved&&(a._savedUpStroke=a.getStroke(),a._upStrokeSaved=!0);!a._savedUpFill&&!a._upFillSaved&&(a._savedUpFill=a.getFill(),a._upFillSaved=!0)};DvtSelectionEffectUtils.ApplySelectingFilters=function(){};
DvtSelectionEffectUtils.ApplySelectingNoFilters=function(){};DvtSelectionEffectUtils.ApplySelectingStrokeFill=function(a){var b=new DvtSelectionEffectTransferObj,d=null,e=null,g=!1,h=!1;a._bSelecting?(d=a._savedHoverStroke,g=!0):(a._bSelected?(d=a._savedSelectionStroke,e=a._savedSelectionFill):(d=a._savedUpStroke,e=a._savedUpFill),h=g=!0);b._fill=e;b._stroke=d;b._applyStroke=g;b._applyFill=h;DvtSelectionEffectUtils.PerformStrokeFillUpdate(a,b,!0)};
DvtSelectionEffectUtils.ApplySelectionStrokeFill=function(a){var b=new DvtSelectionEffectTransferObj,d=null,e=null;a._bSelected?(d=a._savedSelectionStroke,e=a._savedSelectionFill):a._bSelecting?(d=a._savedHoverStroke,e=a._savedHoverFill):(d=a._savedUpStroke,e=a._savedUpFill);b._fill=e;b._stroke=d;b._applyStroke=!0;b._applyFill=!0;DvtSelectionEffectUtils.PerformStrokeFillUpdate(a,b,!0)};
DvtSelectionEffectUtils.PerformStrokeFillUpdate=function(a,b,d){b._selectable=a;d&&a.getContext().getDocumentUtils().isStrokeTimeoutRequired()?(a._applyStrokeTimer&&(a._applyStrokeTimer.stop(),a._applyStrokeTimer=null),a._applyStrokeTimer=new DvtTimer(a.getContext(),0,b.applyStrokeFill,b,1),b._timer=a._applyStrokeTimer,a._applyStrokeTimer.start()):b.applyStrokeFill()};var DvtSelectionEffectTransferObj=function(){};DvtObj.createSubclass(DvtSelectionEffectTransferObj,DvtObj,"DvtSelectionEffectTransferObj");
DvtSelectionEffectTransferObj.prototype.applyStrokeFill=function(){this._applyStroke&&this._selectable.setStroke(this._stroke);this._applyFill&&this._selectable.setFill(this._fill);this._timer&&(this._timer.stop(),this._timer=null);this._selectable&&this._selectable.getContext().getDocumentUtils().fixWebkitFiltersForDisplayable(this._selectable)};var DvtDimension=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtDimension,DvtObj,"DvtDimension");
DvtDimension.prototype.Init=function(a,b){this.w=null===a||isNaN(a)?0:a;this.h=null===b||isNaN(b)?0:b};var DvtMatrix=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtMatrix,DvtLockable,"DvtMatrix");DvtMatrix._DECOMP_TX=0;DvtMatrix._DECOMP_TY=1;DvtMatrix._DECOMP_R=2;DvtMatrix._DECOMP_SKEWX=3;DvtMatrix._DECOMP_SX=4;DvtMatrix._DECOMP_SY=5;
DvtMatrix.prototype.Init=function(a,b,d,e,g,h,k){this._a=null==b?1:b;this._b=null==d?0:d;this._c=null==e?0:e;this._d=null==g?1:g;this._tx=null==h?0:h;this._ty=null==k?0:k;this._v=this._u=0;this._w=1;this._context=a;DvtMatrix.superclass._Init.call(this)};DvtMatrix.prototype.Identity=function(){this._a=1;this._c=this._b=0;this._d=1;this._ty=this._tx=0};DvtMatrix.prototype.getA=function(){return this._a};DvtMatrix.prototype.getB=function(){return this._b};DvtMatrix.prototype.getC=function(){return this._c};
DvtMatrix.prototype.getD=function(){return this._d};DvtMatrix.prototype.getTx=function(){return this._tx};DvtMatrix.prototype.getTy=function(){return this._ty};DvtMatrix.prototype.clone=function(){var a=new DvtMatrix(this._context);a._a=this._a;a._b=this._b;a._c=this._c;a._d=this._d;a._tx=this._tx;a._ty=this._ty;return a};
DvtMatrix.prototype.concat=function(a){if(!this.isLocked()){var b=this._b*a._a+this._d*a._b+this._v*a._tx,d=this._tx*a._a+this._ty*a._b+this._w*a._tx,e=this._a*a._c+this._c*a._d+this._u*a._ty,g=this._b*a._c+this._d*a._d+this._v*a._ty,h=this._tx*a._c+this._ty*a._d+this._w*a._ty;this._a=this._a*a._a+this._c*a._b+this._u*a._tx;this._b=b;this._c=e;this._d=g;this._tx=d;this._ty=h}};DvtMatrix.prototype.translate=function(a,b){if(!this.isLocked()){var d=new DvtMatrix(this._context);d._tx=a;d._ty=b;this.concat(d)}};
DvtMatrix.prototype.scale=function(a,b){if(!this.isLocked()){var d=new DvtMatrix(this._context);d._a=a;d._d=b;this.concat(d)}};DvtMatrix.prototype.rotate=function(a){if(!this.isLocked()){var b=new DvtMatrix(this._context);b._a=Math.cos(a);b._d=b._a;b._c=Math.sin(a);b._b=-b._c;this.concat(b)}};DvtMatrix.prototype.skew=function(a,b){if(!this.isLocked()){var d=new DvtMatrix(this._context);d._b=Math.tan(a);d._c=Math.tan(b);this.concat(d)}};
DvtMatrix.prototype.Determinant=function(){return this._a*(this._d*this._w-this._ty*this._v)-this._b*(this._c*this._w-this._ty*this._u)+this._tx*(this._c*this._v-this._d*this._u)};
DvtMatrix.prototype.invert=function(){if(!this.isLocked()){var a=this.Determinant(),b=this._tx*this._v-this._b*this._w,d=this._b*this._ty-this._tx*this._d,e=this._ty*this._u-this._c*this._w,g=this._a*this._w-this._tx*this._u,h=this._tx*this._c-this._a*this._ty;this._a=(this._d*this._w-this._ty*this._v)/a;this._b=b/a;this._tx=d/a;this._c=e/a;this._d=g/a;this._ty=h/a}};
DvtMatrix.prototype._decompose=function(){var a=this._a,b=this._b,d=this._c,e=this._d,g=this._tx,h=this._ty;if(0===a*e-b*d)return null;var k=Math.sqrt(a*a+d*d),a=a/k,d=d/k,m=a*b+d*e,b=b-a*m,e=e-d*m,n=Math.sqrt(b*b+e*e),m=m/n;-1===a*(e/n)-b/n*d&&(m=-m,n=-n);a=Math.atan2(d,a);m=Math.atan(m);return[g,h,a,m,k,n]};DvtMatrix.prototype._recompose=function(a){if(!this.isLocked()){this.Identity();var b=a[0],d=a[1],e=a[2],g=a[3];this.scale(a[4],a[5]);this.skew(g,0);this.rotate(e);this.translate(b,d)}};
DvtMatrix.prototype.equals=function(a){return!this&&a?!1:this&&!a?!1:!this&&!a?!0:this._a==a._a&&this._b==a._b&&this._c==a._c&&this._d==a._d&&this._tx==a._tx&&this._ty==a._ty};DvtMatrix.prototype.transformPoint=function(a){return new DvtPoint(this._a*a.x+this._b*a.y+1*this._tx,this._c*a.x+this._d*a.y+1*this._ty)};DvtMatrix.prototype.isIdentity=function(){return 1==this._a&&0==this._b&&0==this._c&&1==this._d&&0==this._tx&&0==this._ty};var DvtPoint=function(a,b){this.Init(a,b)};
DvtObj.createSubclass(DvtPoint,DvtObj,"DvtPoint");DvtPoint.prototype.Init=function(a,b){this.x=null===a||isNaN(a)?0:a;this.y=null===b||isNaN(b)?0:b};var DvtRectangle=function(a,b,d,e){this.x=null===a||isNaN(a)?0:a;this.y=null===b||isNaN(b)?0:b;this.w=null===d||isNaN(d)?0:d;this.h=null===e||isNaN(e)?0:e};DvtObj.createSubclass(DvtRectangle,DvtObj,"DvtRectangle");DvtRectangle.create=function(a){return new DvtRectangle(a[0],a[1],a[2],a[3])};
DvtRectangle.prototype.containsPoint=function(a,b){return a>=this.x&&a<=this.x+this.w&&b>=this.y&&b<=this.y+this.h};DvtRectangle.prototype.getCenter=function(){return new DvtPoint(this.x+this.w/2,this.y+this.h/2)};
DvtRectangle.prototype.getUnion=function(a){var b=new DvtRectangle;if(a&&0!==a.w&&0!==a.h)if(0!==this.w&&0!==this.h){var d=this.x+this.w,e=this.y+this.h,g=a.x+a.w,h=a.y+a.h,k=Math.min(this.x,a.x),a=Math.min(this.y,a.y);b.w=d<g?g-k:d-k;b.h=e>h?e-a:h-a;b.x=k;b.y=a}else b.x=a.x,b.y=a.y,b.w=a.w,b.h=a.h;else b.x=this.x,b.y=this.y,b.w=this.w,b.h=this.h;return b};
DvtRectangle.prototype.grow=function(a,b){var d=this.x,e=this.y,g=this.x+this.w,h=this.y+this.h;a<d&&(d=a);a>g&&(g=a);b<e&&(e=b);b>h&&(h=b);this.x=d;this.y=e;this.w=g-d;this.h=h-e};DvtRectangle.prototype.intersects=function(a){if(a&&0!==a.w&&0!==a.h&&0!==this.w&&0!==this.h){var b=this.y+this.h,d=a.x+a.w,e=a.y+a.h;return!(a.x>this.x+this.w||d<this.x||a.y>b||e<this.y)}return!1};var DvtGeomUtils={};DvtObj.createSubclass(DvtGeomUtils,DvtObj,"DvtGeomUtils");
DvtGeomUtils.getCenterPoint=function(a){return new DvtPoint(a.x+a.w/2,a.y+a.h/2)};DvtGeomUtils.intersects=function(a,b){return a.x>b.x+b.w||a.x+a.w<b.x||a.y>b.y+b.h||a.y+a.h<b.y?!1:!0};DvtGeomUtils.getPaddedRectangle=function(a,b){return DvtGeomUtils.getSpecificPaddedRectangle(a,b,b,b,b)};DvtGeomUtils.getSpecificPaddedRectangle=function(a,b,d,e,g){return new DvtRectangle(a.x-e,a.y-b,a.w+e+g,a.h+b+d)};
DvtGeomUtils.GetOffsetValues=function(a,b,d){var e=0,g=a.y,h=a.y+a.h;g<d?e+=d-g:h>b.h-d&&(e+=b.h-d-h);g=a.x;a=a.x+a.w;h=0;g<d?h+=d-g:a>b.w-d&&(h+=b.w-d-a);return{offsetX:h,offsetY:e}};var DvtLineUtils={};DvtObj.createSubclass(DvtLineUtils,DvtObj,"DvtLineUtils");
DvtLineUtils.intersect2Lines=function(a,b,d,e,g){var h=a.x,a=a.y,k=e.x,e=e.y,m=b.x-h,n=d.x-k;if(0===m&&0===n)return null;b=(b.y-a)/m;d=(d.y-e)/n;if(b===d)return null;g||(g=new DvtPoint);if(0===m)return g.x=h,g.y=d*(h-k)+e,g;if(0===n)return g.x=k,g.y=b*(k-h)+a,g;d=(-d*k+e+b*h-a)/(b-d);g.x=d;g.y=b*(d-h)+a;return g};DvtLineUtils.lineLen=function(a,b,d,e){a=d-a;b=e-b;return Math.sqrt(a*a+b*b)};DvtLineUtils.midPt=function(a,b,d,e,g){g||(g=new DvtPoint);g.x=(a+d)/2;g.y=(b+e)/2;return g};
var DvtLayoutUtils=function(){};DvtObj.createSubclass(DvtLayoutUtils,DvtObj,"DvtLayoutUtils");DvtLayoutUtils.position=function(a,b,d,e,g,h){d&&(h=0<e*g?h:0,"top"==b?(d.setTranslateX(a.x+a.w/2-e/2),d.setTranslateY(a.y),a.y+=g+h,a.h-=g+h):"bottom"==b?(d.setTranslateX(a.x+a.w/2-e/2),d.setTranslateY(a.y+a.h-g),a.h-=g+h):"left"==b?(d.setTranslateX(a.x),d.setTranslateY(a.y+a.h/2-g/2),a.x+=e+h,a.w-=e+h):"right"==b&&(d.setTranslateX(a.x+a.w-e),d.setTranslateY(a.y+a.h/2-g/2),a.w-=e+h))};
DvtLayoutUtils.align=function(a,b,d,e){d&&("start"==b?b=DvtStyleUtils.isLocaleR2L()?"right":"left":"end"==b&&(b=DvtStyleUtils.isLocaleR2L()?"left":"right"),"left"==b?d.setX(a.x):"center"==b?d.setX(a.x+a.w/2-e/2):"right"==b&&d.setX(a.x+a.w-e))};DvtLayoutUtils.alignTextStart=function(a){var b=DvtStyleUtils.isLocaleR2L();DvtAgent.getAgent().isGecko()||!b?a.alignStart():a.alignEnd()};
DvtLayoutUtils.alignTextEnd=function(a){var b=DvtStyleUtils.isLocaleR2L();DvtAgent.getAgent().isGecko()||!b?a.alignEnd():a.alignStart()};var DvtMath={};DvtObj.createSubclass(DvtMath,DvtObj,"DvtMath");DvtMath.RADS_PER_DEGREE=Math.PI/180;DvtMath.DEGREES_PER_RAD=180/Math.PI;DvtMath.HALF_PI=Math.PI/2;DvtMath.QUARTER_PI=Math.PI/4;DvtMath.TOLERANCE=0.1;DvtMath.degreesToRads=function(a){return a*DvtMath.RADS_PER_DEGREE};DvtMath.radsToDegrees=function(a){return a*DvtMath.DEGREES_PER_RAD};
DvtMath.interpolateNumber=function(a,b,d){return a+d*(b-a)};var DvtPropMap=function(){this.Init()};DvtPropMap.REGEXP=RegExp("#\\{([^\\}]*)\\}","g");DvtObj.createSubclass(DvtPropMap,DvtObj,"DvtPropMap");DvtPropMap.prototype.Init=function(){this._props={}};DvtPropMap.prototype.getProperty=function(a){return this._props[a]};DvtPropMap.prototype.setProperty=function(a,b){this._props[a]=b};DvtPropMap.prototype.getStringProp=function(a,b){var d=this._props[a];return d?d:b};
DvtPropMap.prototype.getBooleanProp=function(a,b){var d=this._props[a];return d?"true"==d:b};DvtPropMap.prototype.getIntegerProp=function(a,b){var d=this._props[a],e;d&&(e=parseInt(d));return e?e:b};DvtPropMap.prototype.getFloatProp=function(a,b){var d=this._props[a],e;d&&(e=parseFloat(d));return e?e:b};DvtPropMap.prototype.getId=function(){return this.getProperty("id")};DvtPropMap.prototype.setId=function(a){this.setProperty("id",a)};
DvtPropMap.prototype.setProperties=function(a){for(var b=0;b<a.length;b++){var d=a[b];d.name&&void 0!==d.value&&this.setProperty(d.name,d.value)}};DvtPropMap.prototype.stamp=function(a){var b=new this.constructor,d={},e;for(e in this._props)d[e]=this._props[e].replace?this._props[e].replace(DvtPropMap.REGEXP,function(b,d){return a&&void 0!==a[d]?a[d]:b}):this._props[e];b._props=d;return b};
DvtPropMap.toELContext=function(a){for(var a=a.getAttributes(),b,d={},e=0;e<a.length;e++)b=a[e],d[b.name]=b.value;return d};var DvtImageLoader={};DvtObj.createSubclass(DvtImageLoader,DvtObj,"DvtImageLoader");DvtImageLoader.loadImage=function(a,b,d){return a.getImplFactory().getImageLoader().loadImage(b,d)};var DvtJSONUtils={};DvtObj.createSubclass(DvtJSONUtils,DvtObj,"DvtJSONUtils");
DvtJSONUtils.clone=function(a){var b=null;if(a instanceof Array)for(var b=[],d=0;d<a.length;d++)b[d]=DvtJSONUtils._isDeepClonable(a[d])?DvtJSONUtils.clone(a[d]):a[d];else if(a instanceof Object)for(d in b={},a){var e=a[d];b[d]=DvtJSONUtils._isDeepClonable(e)?DvtJSONUtils.clone(e):e}return b};DvtJSONUtils.merge=function(a,b){var d=DvtJSONUtils.clone(a),e=DvtJSONUtils.clone(b);DvtJSONUtils._copy(d,e);return e};
DvtJSONUtils._copy=function(a,b){for(var d in a){var e=a[d];e instanceof Array?b[d]=e:DvtJSONUtils._isDeepClonable(e)?b[d]?DvtJSONUtils._copy(e,b[d]):b[d]=e:b[d]=e}};DvtJSONUtils._isDeepClonable=function(a){return"undefined"==typeof a?!1:a instanceof Object&&!(a instanceof String)&&!(a instanceof Number)&&!(a instanceof Function)};var DvtDisplayableUtils=function(){};DvtObj.createSubclass(DvtDisplayableUtils,DvtObj,"DvtDisplayableUtils");
DvtDisplayableUtils.getDimensionsForced=function(a,b){var d=b.getParent(),e;d&&(e=d.getChildIndex(b));var g=a.getStage();g.addChild(b);var h=b.getDimensions();g.removeChild(b);d&&d.addChildAt(b,e);return h};DvtDisplayableUtils._getDimForced=function(a,b){if(b._dim||!a)return b._dim;var d=DvtDisplayableUtils.getDimensionsForced(a,b);DvtDisplayableUtils._setDimForced(b,d);return d};DvtDisplayableUtils._setDimForced=function(a,b){a._dim=b};var DvtPathUtils={};
DvtObj.createSubclass(DvtPathUtils,DvtObj,"DvtPathUtils");DvtPathUtils.moveTo=function(a,b){return"M"+a+","+b};DvtPathUtils.lineTo=function(a,b){return"L"+a+","+b};DvtPathUtils.quadTo=function(a,b,d,e){return"Q"+a+","+b+","+d+","+e};DvtPathUtils.cubicTo=function(a,b,d,e,g,h){return"C"+a+","+b+","+d+","+e+","+g+","+h};DvtPathUtils.arcTo=function(a,b,d,e,g){a="A"+a+","+a+",0,";a=b>Math.PI?a+"1,":a+"0,";return a+(d+","+e+","+g)};DvtPathUtils.closePath=function(){return"Z"};
DvtPathUtils.createPathArray=function(a){if(!a)return null;var a=a.replace(/([mlqhvzMLCZQHV])/gi,",$1,"),a=a.replace(/ +/gi,","),a=a.split(","),b=a.length,d;a[0]||(a.splice(0,1),b--);a[b-1]||(a.splice(b-1,1),b--);for(d=0;d<b;d++)a[d]||(a.splice(d,1),d--,b--);for(d=0;d<b;d++)isNaN(a[d])||(a[d]=parseFloat(a[d]));return a};
DvtPathUtils.getDimensions=function(a){if(!a||!a.length)return new DvtRectangle;var b=a.length,d,e,g,h=!0,k,m,n=Number.MAX_VALUE,o=Number.MIN_VALUE,q=Number.MAX_VALUE,s=Number.MIN_VALUE,t=[],u,v;for(u=0;u<b;u++){k=!1;var w=0;v=0;d=a[u];switch(d){case "m":k=!0;case "M":do d=a[u+1],m=a[u+2],h?h=!1:k&&(d+=e,m+=g),e=d,g=m,t[v++]=d,t[v++]=m,w++,u+=2;while(!isNaN(a[u+1]));break;case "c":k=!0;case "C":do d=a[u+5],m=a[u+6],k&&(d+=e,m+=g),e=d,g=m,t[v++]=d,t[v++]=m,w++,u+=6;while(!isNaN(a[u+1]));break;case "q":k=
!0;case "Q":do d=a[u+3],m=a[u+4],k&&(d+=e,m+=g),e=d,g=m,t[v++]=d,t[v++]=m,w++,u+=4;while(!isNaN(a[u+1]));break;case "l":k=!0;case "L":do d=a[u+1],m=a[u+2],k&&(d+=e,m+=g),e=d,g=m,t[v++]=d,t[v++]=m,w++,u+=2;while(!isNaN(a[u+1]));break;case "h":k=!0;case "H":do d=a[u+1],k&&(d+=e),e=d,t[v++]=d,t[v++]=g,w++,u+=1;while(!isNaN(a[u+1]));break;case "v":k=!0;case "V":do m=a[u+1],k&&(m+=g),g=m,t[v++]=e,t[v++]=m,w++,u+=1;while(!isNaN(a[u+1]))}for(k=v=0;k<w;k++)d=t[v++],m=t[v++],n=Math.min(n,d),o=Math.max(o,d),
q=Math.min(q,m),s=Math.max(s,m)}return new DvtRectangle(n,q,Math.abs(o-n),Math.abs(s-q))};DvtPathUtils.getPathString=function(a){for(var b="",d=a.length,e,g=0;g<d;g++)e=a[g],void 0!==e&&null!==e&&(b+=(0<g?" ":"")+a[g]);return b};
DvtPathUtils.transformPath=function(a,b,d,e,g){var h="";if(a){for(var a=a.match(/[a-z][^a-z]*/ig),k=0;k<a.length;k++){var m=a[k],n=m.charAt(0),o=n===n.toUpperCase(),h=h+(n+" "),m=m.substring(1),m=m.replace(/,/g," "),m=m.replace(/^\s+|\s+$/g,"");if(0<m.length)if(m=m.split(/\s+/g),"A"===n.toUpperCase())for(n=0;n<m.length;n+=7)h+=parseFloat(m[n])*e+" ",h+=parseFloat(m[n+1])*g+" ",h+=m[n+2]+" ",h+=m[n+3]+" ",h+=m[n+4]+" ",h+=parseFloat(m[n+5])*e+(o?b:0)+" ",h+=parseFloat(m[n+6])*g+(o?d:0)+" ";else{var q=
[],s=[];"H"===n.toUpperCase()?(q.push(e),s.push(o?b:0)):("V"===n.toUpperCase()?q.push(g):(q.push(e),q.push(g),s.push(o?b:0)),s.push(o?d:0));for(n=0;n<m.length;n++)var o=q[n%q.length],t=s[n%s.length],h=h+(parseFloat(m[n])*o+t+" ")}}return h}};function DvtMarkerDefElem(){this.Init()}DvtObj.createSubclass(DvtMarkerDefElem,DvtPropMap,"DvtMarkerDefElem");DvtMarkerDefElem.ATTR_ELEMENTS="elements";DvtMarkerDefElem.ATTR_SHAPE="shape";DvtMarkerDefElem.ATTR_BORDER_COLOR="bc";
DvtMarkerDefElem.ATTR_FILL_COLOR="fc";DvtMarkerDefElem.ATTR_FILL_PATTERN="fp";DvtMarkerDefElem.ATTR_FILL_GRADIENT="fg";DvtMarkerDefElem.ATTR_DATA="d";DvtMarkerDefElem.ATTR_POINTS="p";DvtMarkerDefElem.ATTR_LINE_WIDTH="lw";DvtMarkerDefElem.ATTR_FILL_GRAD_COLORS="c";DvtMarkerDefElem.ATTR_FILL_GRAD_STOPS="p";DvtMarkerDefElem.ATTR_FILL_GRAD_BOUNDS="b";DvtMarkerDefElem.ATTR_FILL_GRAD_DIR="dir";DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_RADIAL="gdR";DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_RIGHT="gdRi";
DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_DOWN="gdD";DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_45="gdD45";DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_135="gdD135";DvtMarkerDefElem.ATTR_FILL_GRAD_CX="cx";DvtMarkerDefElem.ATTR_FILL_GRAD_CY="cy";DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUS="r";DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUSX="rx";DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUSY="ry";DvtMarkerDefElem.ATTR_ANGLES="ang";DvtMarkerDefElem.ATTR_CLOSURE_TYPE="ct";DvtMarkerDefElem.ATTR_TRANSFORM="transform";
DvtMarkerDefElem.prototype.Init=function(){DvtMarkerDefElem.superclass.Init.call(this)};DvtMarkerDefElem.prototype.getShape=function(){return this.getProperty(DvtMarkerDefElem.ATTR_SHAPE)};DvtMarkerDefElem.prototype.setShape=function(a){this.setProperty(DvtMarkerDefElem.ATTR_SHAPE,a)};DvtMarkerDefElem.prototype.getData=function(){return this.getProperty(DvtMarkerDefElem.ATTR_DATA)};DvtMarkerDefElem.prototype.setData=function(a){return this.setProperty(DvtMarkerDefElem.ATTR_DATA,a)};
DvtMarkerDefElem.prototype.getPoints=function(){return this.getProperty(DvtMarkerDefElem.ATTR_POINTS)};DvtMarkerDefElem.prototype.setPoints=function(a){this.setProperty(DvtMarkerDefElem.ATTR_POINTS,a)};DvtMarkerDefElem.prototype.getClosureType=function(){return this.getProperty(DvtMarkerDefElem.ATTR_CLOSURE_TYPE)};DvtMarkerDefElem.prototype.setClosureType=function(a){this.setProperty(DvtMarkerDefElem.ATTR_CLOSURE_TYPE,a)};DvtMarkerDefElem.prototype.getAngles=function(){return this.getProperty(DvtMarkerDefElem.ATTR_ANGLES)};
DvtMarkerDefElem.prototype.setAngles=function(a){return this.setProperty(DvtMarkerDefElem.ATTR_ANGLES,a)};DvtMarkerDefElem.prototype.getBorderColor=function(){return this.getProperty(DvtMarkerDefElem.ATTR_BORDER_COLOR)};DvtMarkerDefElem.prototype.setBorderColor=function(a){this.setProperty(DvtMarkerDefElem.ATTR_BORDER_COLOR,a)};DvtMarkerDefElem.prototype.getLineWidth=function(){return this.getProperty(DvtMarkerDefElem.ATTR_LINE_WIDTH)};
DvtMarkerDefElem.prototype.setLineWidth=function(a){this.setProperty(DvtMarkerDefElem.ATTR_LINE_WIDTH,a)};DvtMarkerDefElem.prototype.getFillColor=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_COLOR)};DvtMarkerDefElem.prototype.setFillColor=function(a){this.setProperty(DvtMarkerDefElem.ATTR_FILL_COLOR,a)};DvtMarkerDefElem.prototype.getFillPattern=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_PATTERN)};
DvtMarkerDefElem.prototype.setFillPattern=function(a){this.setProperty(DvtMarkerDefElem.ATTR_FILL_PATTERN,a)};DvtMarkerDefElem.prototype.getFillGradient=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRADIENT)};DvtMarkerDefElem.prototype.setFillGradient=function(a){this.setProperty(DvtMarkerDefElem.ATTR_FILL_GRADIENT,a)};DvtMarkerDefElem.prototype.getGradColors=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_COLORS).split(",")};
DvtMarkerDefElem.prototype.getGradStops=function(){var a=this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_STOPS).split(",");DvtArrayUtils.toFloat(a);return a};DvtMarkerDefElem.prototype.getGradBounds=function(){var a=this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_BOUNDS).split(",");DvtArrayUtils.toFloat(a);return a};DvtMarkerDefElem.prototype.getGradDir=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_DIR)};DvtMarkerDefElem.prototype.getGradRadius=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUS)};
DvtMarkerDefElem.prototype.getGradRadiusX=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUSX)};DvtMarkerDefElem.prototype.getGradRadiusY=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_RADIUSY)};DvtMarkerDefElem.prototype.getGradCx=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_CX)};DvtMarkerDefElem.prototype.getGradCy=function(){return this.getProperty(DvtMarkerDefElem.ATTR_FILL_GRAD_CY)};DvtMarkerDefElem.prototype.getTransform=function(){return this.getProperty(DvtMarkerDefElem.ATTR_TRANSFORM)};
DvtMarkerDefElem.prototype.setTransform=function(a){return this.setProperty(DvtMarkerDefElem.ATTR_TRANSFORM,a)};var DvtMarkerDef=function(){this.Init()};DvtObj.createSubclass(DvtMarkerDef,DvtPropMap,"DvtMarkerDef");DvtMarkerDef.MARKER_DEF="markerDef";DvtMarkerDef.MARKER_DEF_CIRCLE="c";DvtMarkerDef.MARKER_DEF_ELLIPSE="o";DvtMarkerDef.MARKER_DEF_LINE="l";DvtMarkerDef.MARKER_DEF_PATH="p";DvtMarkerDef.MARKER_DEF_POLYGON="pg";DvtMarkerDef.MARKER_DEF_POLYLINE="pl";DvtMarkerDef.MARKER_DEF_RECT="r";
DvtMarkerDef.ATTR_ELEMENTS="elements";DvtMarkerDef.ATTR_BORDER_COLOR="bc";DvtMarkerDef.ATTR_LINE_WIDTH="lw";DvtMarkerDef.ATTR_FILL_COLOR="fc";DvtMarkerDef.ATTR_FILL_PATTERN="fp";DvtMarkerDef.ATTR_FILL_GRADIENT="fg";DvtMarkerDef.BI_DEFAULT_MARKER_SIZE=9;DvtMarkerDef.HUMAN_CMDS="M 38.07,36.467856 q 13.414,0 13.414,-13.406 l 0,-9.258 q 0,-13.4039999 -13.414,-13.4039999 -13.414,0 -13.414,13.4039999 l 0,9.258 q 0,13.406 13.414,13.406 l 0,0 z m 16.219,7.275 -32.435999,0 q -10.139552,0 -15.9400009,7.443875 Q 0.5,58.133383 0.5,69.156856 l 0,54.396004 12.746001,0 0,-51.609004 q 0,-2.824 0.793,-2.824 0.742,0 0.742,2.709 l 0,124.267994 q 0,2.82401 2.823999,2.82401 l 12.531,0 q 2.824,0 2.824,-2.824 l 0,-66.25 10.219,0 0,66.25 q 0,2.824 2.824,2.824 l 12.528,0 q 2.825,0 2.825,-2.824 l 0,-124.268004 q 0,-2.709 0.839,-2.709 0.792,0 0.792,2.824 l 0,51.609004 12.65,0 0,-54.396004 Q 75.6386,58.132927 70.227626,51.186731 64.428999,43.742856 54.289,43.742856 l 0,0 z";
DvtMarkerDef.prototype.Init=function(){DvtMarkerDef.superclass.Init.call(this)};DvtMarkerDef.prototype.getBorderColor=function(){return this.getProperty(DvtMarkerDef.ATTR_BORDER_COLOR)};DvtMarkerDef.prototype.setBorderColor=function(a){this.setProperty(DvtMarkerDef.ATTR_BORDER_COLOR,a)};DvtMarkerDef.prototype.getLineWidth=function(){return this.getProperty(DvtMarkerDef.ATTR_LINE_WIDTH)};DvtMarkerDef.prototype.setLineWidth=function(a){this.setProperty(DvtMarkerDef.ATTR_LINE_WIDTH,a)};
DvtMarkerDef.prototype.getFillColor=function(){return this.getProperty(DvtMarkerDef.ATTR_FILL_COLOR)};DvtMarkerDef.prototype.setFillColor=function(a){this.setProperty(DvtMarkerDef.ATTR_FILL_COLOR,a)};DvtMarkerDef.prototype.getFillPattern=function(){return this.getProperty(DvtMarkerDef.ATTR_FILL_PATTERN)};DvtMarkerDef.prototype.setFillPattern=function(a){this.setProperty(DvtMarkerDef.ATTR_FILL_PATTERN,a)};DvtMarkerDef.prototype.getFillGradient=function(){return this.getProperty(DvtMarkerDef.ATTR_FILL_GRADIENT)};
DvtMarkerDef.prototype.setFillGradient=function(a){this.setProperty(DvtMarkerDef.ATTR_FILL_GRADIENT,a)};DvtMarkerDef.prototype.getDimensions=function(){var a=this.getProperty("dx"),b=this.getProperty("dy"),d=this.getProperty("dw"),e=this.getProperty("dh");return d&&e?new DvtRectangle(a,b,d,e):null};DvtMarkerDef.prototype.getElements=function(){return this.getProperty(DvtMarkerDef.ATTR_ELEMENTS)};
DvtMarkerDef.prototype.addElement=function(a){var b=this.getElements();b||(b=[],this.setProperty(DvtMarkerDef.ATTR_ELEMENTS,b));b.push(a)};var DvtMarkerGradient=function(){};DvtObj.createSubclass(DvtMarkerGradient,DvtObj,"DvtMarkerGradient");
DvtMarkerGradient.createMarkerGradient=function(a,b,d){var e=[],g=[],d=[d,d,d,d],g=null,g=b.getType(),b=DvtDisplayableUtils._getDimForced(b.getContext(),b),e=b.getCenter(),b=Math.min(b.w,b.h);if(g!=DvtMarker.HUMAN)var g=[0,0.5,0.75,1],h=DvtColorUtils.getPastel(a,0.2),k=DvtColorUtils.getPastel(a,0.1),m=DvtColorUtils.getDarker(a,0.8),b=b/2,n=e.x,o=e.y,e=[DvtColorUtils.getPound(h),DvtColorUtils.getPound(k),a,DvtColorUtils.getPound(m)],a=new DvtRectangle(-b,-b,2*b,2*b),a=[a.x,a.y,a.w,a.h],g=new DvtRadialGradientFill(e,
d,g,n,o,b,a);else g=[0,0.3,0.7,1],h=DvtColorUtils.getPastel(a,0.2),k=DvtColorUtils.getDarker(a,0.9),m=DvtColorUtils.getDarker(a,0.8),e=[DvtColorUtils.getPound(h),DvtColorUtils.getPound(k),a,DvtColorUtils.getPound(m)],a=new DvtRectangle(-b/2,-b/2,b,b),a=[a.x,a.y,a.w,a.h],g=new DvtLinearGradientFill(135,e,d,g,a);return g};var DvtMarkerUtils={_cache:{}};DvtObj.createSubclass(DvtMarkerUtils,DvtObj,"DvtMarkerUtils");
DvtMarkerUtils.createMarkerDef=function(a,b){var d=new DvtMarkerDef;d.setProperties(b.getAttributes());for(var e=b.getChildNodes(),g,h=0;h<e.length;h++){var k=e[h];k&&(g=new DvtMarkerDefElem,"fillDef"==k.getName()&&k.getChildNodes()&&(k=k.getChildNodes()[0]),g.setProperties(k.getAttributes()),g.setShape(k.getName()),d.addElement(g))}d&&this._addMarkerDef(a,d);return d};
DvtMarkerUtils._addMarkerDef=function(a,b){var d=a.getStage().getId(),e=b.getId(),g=DvtMarkerUtils.getMarkerList(d);if(!g[e]&&(d=this.createMultiPaths(a,b,e)))d.setId("custom"+e),g[e]=d,(e=b.getDimensions())&&DvtDisplayableUtils._setDimForced(d,e)};DvtMarkerUtils.getMarkerList=function(a){this._cache[a]||(this._cache[a]={});return this._cache[a]};
DvtMarkerUtils.createMarkerShape=function(a,b,d,e){var g;b.getShape()==DvtMarkerDef.MARKER_DEF_PATH&&(g=this.createPathMarker(a,b,e));g&&DvtMarkerUtils.setCommonAttrs(b,d,g);return g};DvtMarkerUtils.createMultiPaths=function(a,b,d){var e=b.getElements();if(!e||0==e.length)return null;var g;if(1==e.length)g=DvtMarkerUtils.createMarkerShape(a,e[0],b,d);else{g=new DvtContainer(a,d);for(var h,k=0;k<e.length;k++)h=e[k],(h=DvtMarkerUtils.createMarkerShape(a,h,b,d+"_"+k))&&g.addChild(h)}return g};
DvtMarkerUtils.createCircleMarker=function(a,b,d,e){var g=b.getPoints(),h=g[0],k=g[1],m=g[2],n;e==DvtMarkerDef.MARKER_DEF_ELLIPSE&&(n=g[3]);if(e=b.getClosureType()){var b=b.getAngles(),o,q;b&&(o=b[0],q=b[1]);a=new DvtArc(a,h,k,m,n,o,q,e,d)}else a=new DvtCircle(a,h,k,m,d);return a};DvtMarkerUtils.createRectMarker=function(a,b,d){b=b.getPoints();return new DvtRect(a,b[0],b[1],b[2],b[3],d)};DvtMarkerUtils.createLineMarker=function(a,b,d){b=b.getPoints();return new DvtLine(a,b[0],b[1],b[2],b[3],d)};
DvtMarkerUtils.createPathMarker=function(a,b,d){b=b.getData();return new DvtPath(a,b,d)};DvtMarkerUtils.createPolygoneMarker=function(a,b,d){b=b.getPoints();return new DvtPolygon(a,b,d)};DvtMarkerUtils.createPolylineMarker=function(a,b,d){b=b.getPoints();return new DvtPolyline(a,b,d)};
DvtMarkerUtils.setCommonAttrs=function(a,b,d){var e=a.getFillColor(),g=a.getFillGradient(),h=a.getFillPattern();if(h)d.setFill(new DvtPatternFill(h,e));else if(g){for(var e=b.getElements(),k,b=e.length,h=0;h<b;h++){var m=e[h];if("g"==m.getShape()&&m.getId()==g){k=m;break}}var n;k?(e=k.getGradColors(),g=k.getGradStops(),b=k.getGradBounds(),h=k.getGradDir(),h==DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_RADIAL?(h=parseFloat(k.getGradCx()),m=parseFloat(k.getGradCy()),n=parseFloat(k.getGradRadius()),n||(n=parseFloat(k.getGradRadiusX()),
k=parseFloat(k.getGradRadiusY()),n=Math.max(n,k)),d.setFill(new DvtRadialGradientFill(e,null,g,h,m,n,b))):(k=0,h==DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_45?k=-135:h==DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_135?k=-45:h==DvtMarkerDefElem.ATTR_FILL_GRAD_DIR_DOWN&&(k=-90),d.setFill(new DvtLinearGradientFill(k,e,null,g,b)))):d.setFill(new DvtLinearGradientFill(0,["#000","#fff"]))}else e&&d.setFill(new DvtSolidFill(e,null));k=parseFloat(a.getLineWidth());a=a.getBorderColor();if(k||a)k||(k=1),a||(a="black"),a=
new DvtSolidStroke(a,1,k),d.setStroke(a)};DvtMarkerUtils.getCustomMarkerInfo=function(a,b){var d=a.getStage().getId();if(d=DvtMarkerUtils.getMarkerList(d))return d[b]};DvtMarkerUtils.getBuiltinMarkerInfo=function(a,b){var d=a.getStage().getId(),d=DvtMarkerUtils.getMarkerList(d);if(!d[b]&&b){var e=new DvtPath(a,DvtMarkerDef.HUMAN_CMDS,"dvtHuman");DvtDisplayableUtils._getDimForced(a,e);d[b]=e}return d[b]};DvtMarkerUtils.clearCached=function(a){this._cache[a.getStage().getId()]=void 0};
var DvtPolygonUtils={};DvtObj.createSubclass(DvtPolygonUtils,DvtObj,"DvtPolygonUtils");DvtPolygonUtils.getDimensions=function(a){if(!a||0===a.length)return new DvtRectangle;for(var b=Number.MAX_VALUE,d=Number.MIN_VALUE,e=Number.MAX_VALUE,g=Number.MIN_VALUE,h=a.length,k,m,n=0;n<h;n++)k=a[n++],m=a[n],b=Math.min(b,k),d=Math.max(d,k),e=Math.min(e,m),g=Math.max(g,m);return new DvtRectangle(b,e,Math.abs(d-b),Math.abs(g-e))};var DvtTextUtils={};DvtObj.createSubclass(DvtTextUtils,DvtObj,"DvtTextUtils");
DvtTextUtils.applyFont=function(a,b){a.setFill(new DvtSolidFill(b.color,b.alpha));a.alignBaseline();var d="";b.italic&&(d="font-style:italic; ");b.bold&&(d+="font-weight:bold; ");b.underline&&(d+="text-decoration:underline;");d+="font-size:"+b.size+";";b.name&&(d+="font-family:"+b.name+";");d&&(d=new DvtCSSStyle(d),a.setCSSStyle(d))};
DvtTextUtils.formatTextString=function(a){var b="";if(!a)return b;a=a.replace(/\n/g,"<br>");if(a=a.split("<br>")){for(var d=[],e=0;e<a.length;e++){var g=a[e];null!=g&&""!=g&&d.push(g)}for(e=0;e<d.length;e++)b+=d[e],e<d.length-1&&(b+=DvtTextArea.NEW_LINE)}return b};var DvtShapeUtils={};DvtObj.createSubclass(DvtShapeUtils,DvtObj,"DvtShapeUtils");DvtShapeUtils._PATH="path";DvtShapeUtils._TEXT="text";DvtShapeUtils._USE="use";DvtShapeUtils._G="g";DvtShapeUtils._RECT="rect";DvtShapeUtils._CLIP_PATH="clipPath";
DvtShapeUtils._IMAGE="image";DvtShapeUtils.convertSvg=function(a,b,d){DvtShapeUtils.convertBasemapSvg(a,b,d,null)};DvtShapeUtils.convertBasemapSvg=function(a,b,d,e){for(var g=a.getContext(),d=d.getChildNodes(),h={},k={},m=0;m<d.length;m++)if("defs"==d[m].getName())DvtShapeUtils._convertSvgDefs(g,h,k,b,d[m]);else{var n=DvtShapeUtils._convertSvgHelper(g,h,k,b,d[m],e);n&&a.addChild(n)}};
DvtShapeUtils.getShapeOutline=function(a){var b=null;if(a)for(var b=DvtShapeUtils._getShapeOutlineHelper(a),a=b.getIterator(),d=a.getNext();d;)(d=DvtShapeUtils._getShapeOutlineHelper(d))&&b.addChild(d),d=a.getNext();return b};DvtShapeUtils.convertSvgArc=function(){return null};
DvtShapeUtils.convertSvgCircle=function(a,b,d,e,g,h){var k=g.getAttribute("cx"),m=g.getAttribute("cy"),n=g.getAttribute("r"),o=g.getAttribute("id"),k=new DvtCircle(a,k,m,n,o);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);g=g.getChildNodes();for(m=0;m<g.length;m++)(n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h))&&k.addChild(n);return k};DvtShapeUtils.convertSvgEllipse=function(){return null};DvtShapeUtils.convertSvgLine=function(){return null};
DvtShapeUtils.convertSvgImage=function(a,b,d,e,g,h){var k=g.getAttribute("xlink:href"),m=g.getAttribute("id"),n=g.getAttribute("x"),o=g.getAttribute("y"),q=g.getAttribute("width"),s=g.getAttribute("height"),k=new DvtImage(a,k,n,o,q,s,m);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);g=g.getChildNodes();for(m=0;m<g.length;m++)(n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h))&&k.addChild(n);return k};DvtShapeUtils.convertSvgPolygon=function(){return null};DvtShapeUtils.convertSvgPolyline=function(){};
DvtShapeUtils.convertSvgPath=function(a,b,d,e,g,h){var k=g.getAttribute("d"),m=g.getAttribute("id"),k=new DvtPath(a,k,m);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);g=g.getChildNodes();for(m=0;m<g.length;m++){var n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h);n&&k.addChild(n)}return k};
DvtShapeUtils.convertSvgRect=function(a,b,d,e,g,h){var k=g.getAttribute("id"),k=new DvtRect(a,g.getAttribute("x"),g.getAttribute("y"),g.getAttribute("width"),g.getAttribute("height"),k);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);for(var g=g.getChildNodes(),m=0;m<g.length;m++){var n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h);n&&k.addChild(n)}return k};
DvtShapeUtils.convertSvgText=function(a,b,d,e,g,h){var k=g.getAttribute("id"),k=new DvtText(a,g.getTextContent(),g.getAttribute("x"),g.getAttribute("y"),k);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);for(var g=g.getChildNodes(),m=0;m<g.length;m++){var n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h);n&&k.addChild(n)}return k};
DvtShapeUtils.convertSvgUse=function(a,b,d,e,g,h){var k=e+g.getAttribute("xlink:href").substring(1),m=b[k]?b[k]:d[k];if(m){var k=g.getAttribute("id"),n=DvtShapeUtils._convertSvgHelper(a,b,d,e,m,h);if(m=g.getAttribute("clip-path"))(m=b[e+m.substring(5,m.length-1)])&&n.setClipPath(m);k=new DvtContainer(a,k);k.addChild(n);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);if(m=g.getAttribute("x"))n=k.getTranslateX(),k.setTranslateX(n+parseFloat(m));if(m=g.getAttribute("y"))n=k.getTranslateY(),k.setTranslateY(n+
parseFloat(m));g=g.getChildNodes();for(m=0;m<g.length;m++)(n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h))&&k.addChild(n);return k}return null};DvtShapeUtils.convertSvgG=function(a,b,d,e,g,h){var k=g.getAttribute("id"),k=new DvtContainer(a,k);DvtShapeUtils._setCommonAttributes(a,b,e,k,g);for(var g=g.getChildNodes(),m=0;m<g.length;m++){var n=DvtShapeUtils._convertSvgHelper(a,b,d,e,g[m],h);n&&k.addChild(n)}return k};
DvtShapeUtils.convertSvgClipPath=function(a,b,d,e,g){a=e+g.getAttribute("id");a=new DvtClipPath(a);g=g.getChildNodes();for(b=0;b<g.length;b++)d=g[b],e=d.getName(),"rect"==e?a.addRect(d.getAttribute("x"),d.getAttribute("y"),d.getAttribute("width"),d.getAttribute("height"),d.getAttribute("rx"),d.getAttribute("ry")):"path"==e?a.addPath(d.getAttribute("d")):"polygon"==e?a.addPolygon(d.getAttribute("points")):"circle"==e?a.addCircle(d.getAttribute("cx"),d.getAttribute("cy"),d.getAttribute("r")):"ellipse"==
e&&a.addEllipse(d.getAttribute("cx"),d.getAttribute("cy"),d.getAttribute("rx"),d.getAttribute("ry"));return a};DvtShapeUtils._setCommonAttributes=function(a,b,d,e,g){(b=g.getAttribute("style"))&&DvtShapeUtils._setStyleAttributes(e,b);(b=g.getAttribute("transform"))&&DvtShapeUtils._setTransformAttributes(a,e,b)};
DvtShapeUtils._setTransformAttributes=function(a,b,d){for(var e=new DvtMatrix(a),d=d.split(" "),g=0;g<d.length;g++)if(-1!=d[g].indexOf("matrix")){var h=d[g].substring(7,d[g].length-1).split(","),k=parseFloat(h[0]),m=parseFloat(h[2]),n=parseFloat(h[1]),o=parseFloat(h[3]),q=parseFloat(h[4]),h=parseFloat(h[5]),k=new DvtMatrix(a,k,m,n,o,q,h);e.concat(k)}else if(-1!=d[g].indexOf("translate")){var s=d[g].substring(10,d[g].length-1).split(",");1==s.length?(q=parseFloat(s[0]),e.translate(q,q)):e.translate(parseFloat(s[0]),
parseFloat(s[1]))}else-1!=d[g].indexOf("scale")?(k=d[g].substring(6,d[g].length-1).split(","),1==k.length?(k=parseFloat(s[0]),e.scale(k,k)):e.scale(parseFloat(k[0]),parseFloat(k[1]))):-1!=d[g].indexOf("rotate")?(k=180*parseFloat(d[g].substring(7,d[g].length-1))/Math.PI,e.rotate(k)):-1!=d[g].indexOf("skewX")?(k=180*parseFloat(d[g].substring(6,d[g].length-1))/Math.PI,e.skew(k,0)):-1!=d[g].indexOf("skewY")&&(k=180*parseFloat(d[g].substring(6,d[g].length-1))/Math.PI,e.skew(0,k));b.setMatrix(e)};
DvtShapeUtils._setStyleAttributes=function(a,b){var d=new DvtCSSStyle(b),e=d.fill,g=d.opacity?parseFloat(d.opacity):1;e&&a.setFill(new DvtSolidFill(e,g));e=d.stroke;d=d["stroke-width"];e&&a.setStroke(new DvtSolidStroke(e,g,d))};
DvtShapeUtils._convertSvgHelper=function(a,b,d,e,g,h){var k=g.getName(),m=g.getAttribute("id");d[m]=g;var n=null;k==DvtShapeUtils._PATH?n=DvtShapeUtils.convertSvgPath(a,b,d,e,g,h):k==DvtShapeUtils._CLIP_PATH?n=DvtShapeUtils.convertSvgClipPath(a,b,d,e,g,h):k==DvtShapeUtils._RECT?n=DvtShapeUtils.convertSvgRect(a,b,d,e,g,h):k==DvtShapeUtils._G?n=DvtShapeUtils.convertSvgG(a,b,d,e,g,h):k==DvtShapeUtils._TEXT?n=DvtShapeUtils.convertSvgText(a,b,d,e,g,h):k==DvtShapeUtils._USE?n=DvtShapeUtils.convertSvgUse(a,
b,d,e,g,h):k==DvtShapeUtils._IMAGE?n=DvtShapeUtils.convertSvgImage(a,b,d,e,g,h):"circle"==k?n=DvtShapeUtils.convertSvgCircle(a,b,d,e,g,h):console.log("SVG element of type "+k+" is not currently handled");h&&n&&-1!=m.indexOf("DVT_")&&(h[m]=n);return n};DvtShapeUtils._convertSvgDefs=function(a,b,d,e,g){for(var g=g.getChildNodes(),h=0;h<g.length;h++){var k=g[h].getName(),m=e+g[h].getAttribute("id");k==DvtShapeUtils._CLIP_PATH?(k=DvtShapeUtils.convertSvgClipPath(a,b,d,e,g[h]))&&(b[m]=k):b[m]=g[h]}};
DvtShapeUtils._getShapeOutlineHelper=function(a){if(a instanceof DvtArc)return null;if(a instanceof DvtCircle)return new DvtCircle(a.getContext(),a.getCx(),a.getCy(),a.getRadius(),a.getId());if(a instanceof DvtMarker||a instanceof DvtOval)return null;if(a instanceof DvtPath)return new DvtPath(a.getContext(),a.getCmds(),a.getId());if(a instanceof DvtPolygon)return null;if(a instanceof DvtRect)return new DvtRect(a.getContext(),a.getX(),a.getY(),a.getWidth(),a.getHeight());if(a instanceof DvtCircle)return null};
var DvtShapeAnimationUtils={};DvtObj.createSubclass(DvtShapeAnimationUtils,DvtObj,"DvtShapeAnimationUtils");DvtShapeAnimationUtils.convertSvg=function(a,b,d){DvtShapeUtils.convertBasemapSvg(a,b,d,null)};
DvtShapeAnimationUtils.transitionShapes=function(a,b,d){a instanceof DvtPolyline&&b instanceof DvtPolyline?DvtShapeAnimationUtils.TransitionPolylineToPolyline(a,b,d):a instanceof DvtRect&&b instanceof DvtRect?DvtShapeAnimationUtils.TransitionRectToRect(a,b,d):a instanceof DvtText&&b instanceof DvtText&&DvtShapeAnimationUtils.TransitionTextToText(a,b,d)};
DvtShapeAnimationUtils.TransitionPolylineToPolyline=function(a,b,d){var e=new DvtPoint(a.getTranslateX(),a.getTranslateY());a.getPoints();for(var g=new DvtPoint(b.getTranslateX(),b.getTranslateY()),h=b.getPoints(),e=a.getParent().localToStage(e),g=b.getParent().localToStage(g),k=a.getParent().stageToLocal(g),m=[],n=0;n<h.length;n+=2){var o=b.localToStage(new DvtPoint(h[n],h[n+1])),o=a.stageToLocal(o);m.push(o.x);m.push(o.y)}d&&(e.x!=g.x&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateX,a.setTranslateX,
k.x),e.y!=g.y&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateY,a.setTranslateY,k.y),d.addProp(DvtAnimator.TYPE_POLYLINE,a,a.getPoints,a.setPoints,m))};
DvtShapeAnimationUtils.TransitionRectToRect=function(a,b,d){var e=new DvtPoint(a.getTranslateX(),a.getTranslateY()),g=new DvtPoint(a.getX(),a.getY()),h=new DvtPoint(a.getX()+a.getWidth(),a.getY()+a.getHeight()),k=new DvtPoint(b.getTranslateX(),b.getTranslateY()),m=new DvtPoint(b.getX(),b.getY()),n=new DvtPoint(b.getX()+b.getWidth(),b.getY()+b.getHeight()),e=a.getParent().localToStage(e),g=a.localToStage(g),h=a.localToStage(h),k=b.getParent().localToStage(k),m=b.localToStage(m),b=b.localToStage(n),
n=a.getParent().stageToLocal(k),o=a.stageToLocal(m),q=a.stageToLocal(b);d&&(e.x!=k.x&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateX,a.setTranslateX,n.x),e.y!=k.y&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateY,a.setTranslateY,n.y),g.x!=m.x&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getX,a.setX,o.x),g.y!=m.y&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getY,a.setY,o.y),(h.x!=b.x||g.x!=m.x)&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getWidth,a.setWidth,q.x-o.x),(h.y!=b.y||g.y!=m.y)&&d.addProp(DvtAnimator.TYPE_NUMBER,
a,a.getHeight,a.setHeight,q.y-o.y))};
DvtShapeAnimationUtils.TransitionTextToText=function(a,b,d){var e=new DvtPoint(a.getTranslateX(),a.getTranslateY()),g=new DvtPoint(a.getX(),a.getY()),h=new DvtPoint(b.getTranslateX(),b.getTranslateY()),k=new DvtPoint(b.getX(),b.getY()),e=a.getParent().localToStage(e),g=a.localToStage(g),h=b.getParent().localToStage(h),b=b.localToStage(k),k=a.getParent().stageToLocal(h),m=a.stageToLocal(b);d&&(e.x!=h.x&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getTranslateX,a.setTranslateX,k.x),e.y!=h.y&&d.addProp(DvtAnimator.TYPE_NUMBER,
a,a.getTranslateY,a.setTranslateY,k.y),g.x!=b.x&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getX,a.setX,m.x),g.y!=b.y&&d.addProp(DvtAnimator.TYPE_NUMBER,a,a.getY,a.setY,m.y))};var DvtDisplayable=function(a){this.Init(a)};DvtObj.createSubclass(DvtDisplayable,DvtObj,"DvtDisplayable");DvtDisplayable.prototype.Init=function(a){this._parent=null;this._impl.setObj(this);this._context=a;this._ariaRole=this._drawEffects=this._matrix=this._listenerObj=null;this._ariaProperties={}};
DvtDisplayable.prototype.getImpl=function(){return this._impl};DvtDisplayable.prototype.getContext=function(){return this._context};DvtDisplayable.prototype.setClipPath=function(a){this._impl.setClipPath(a)};DvtDisplayable.prototype.setImpl=function(a){this._impl=a};DvtDisplayable.prototype.getPixelHinting=function(){return this._impl.getPixelHinting()};DvtDisplayable.prototype.setPixelHinting=function(a){this._impl.setPixelHinting(a)};DvtDisplayable.prototype.getId=function(){return this._impl.getId()};
DvtDisplayable.prototype.setId=function(a){this._impl.setId(a)};DvtDisplayable.prototype.getParent=function(){return this._parent};DvtDisplayable.prototype.setParent=function(a){this._parent=a};DvtDisplayable.prototype.ConvertCoordSpaceRect=function(a,b){var d=this.localToStage(new DvtPoint(a.x,a.y)),e=this.localToStage(new DvtPoint(a.x+a.w,a.y+a.h)),d=b.stageToLocal(d),e=b.stageToLocal(e);return new DvtRectangle(d.x,d.y,e.x-d.x,e.y-d.y)};
DvtDisplayable.prototype.getDimensions=function(a){var b=this.getImpl().getDimensions();return!a||a===this?b:this.ConvertCoordSpaceRect(b,a)};DvtDisplayable.prototype.getDimensionsWithStroke=function(a){var b=this.getImpl().getDimensionsWithStroke();return!a||a===this?b:this.ConvertCoordSpaceRect(b,a)};DvtDisplayable.prototype.getVisible=function(){return this._impl.getVisible()};DvtDisplayable.prototype.setVisible=function(a){this._impl.setVisible(a)};
DvtDisplayable.prototype.addEventListener=function(a,b,d,e){var g=this._getListeners(a,d,!0);g.push(b);g.push(e);this._impl.addListener(a,d)};DvtDisplayable.prototype.removeEventListener=function(a,b,d,e){var g=this._getListeners(a,d,!1);if(g)for(var h=0;h<g.length;h+=2)if(g[h]===b&&g[h+1]===e){g.splice(h,2);break}g&&0>=g.length&&this._impl.removeListener(a,d)};
DvtDisplayable.prototype._getListeners=function(a,b,d){if(!this._listenerObj)if(d)this._listenerObj={};else return null;a=a+"_"+(b?!0:!1);b=this._listenerObj[a];!b&&d&&(b=[],this._listenerObj[a]=b);return b};DvtDisplayable.prototype.FireListener=function(a,b){var d=this._getListeners(a.getType?a.getType():a.type,b,!1);if(d)for(var e=0;e<d.length;e+=2){var g=d[e+1];d[e]&&d[e].call(g,a)}};DvtDisplayable.prototype.getCSSStyle=function(){return this._impl.getCSSStyle()};
DvtDisplayable.prototype.setCSSStyle=function(a){this._impl.setCSSStyle(a)};DvtDisplayable.prototype.setCursor=function(a){this._impl.setCursor(a)};DvtDisplayable.prototype.getCursor=function(){return this._impl.getCursor()};DvtDisplayable.prototype.setMouseEnabled=function(a){this._impl.setMouseEnabled(a)};DvtDisplayable.prototype.isMouseEnabled=function(){return this._impl.isMouseEnabled()};DvtDisplayable.prototype.getAlpha=function(){return this._impl.getAlpha()};
DvtDisplayable.prototype.setAlpha=function(a){this._impl.setAlpha(a)};DvtDisplayable.prototype.getTranslateX=function(){return this._matrix?this._matrix._decompose()[DvtMatrix._DECOMP_TX]:0};DvtDisplayable.prototype.setTranslateX=function(a){var b=this.getMatrix().clone(),d=b._decompose();d[DvtMatrix._DECOMP_TX]=a;b._recompose(d);this.setMatrix(b)};DvtDisplayable.prototype.getTranslateY=function(){return this._matrix?this._matrix._decompose()[DvtMatrix._DECOMP_TY]:0};
DvtDisplayable.prototype.setTranslateY=function(a){var b=this.getMatrix().clone(),d=b._decompose();d[DvtMatrix._DECOMP_TY]=a;b._recompose(d);this.setMatrix(b)};DvtDisplayable.prototype.getScaleX=function(){return this._matrix?this._matrix._decompose()[DvtMatrix._DECOMP_SX]:1};DvtDisplayable.prototype.setScaleX=function(a){var b=this.getMatrix().clone(),d=b._decompose();d[DvtMatrix._DECOMP_SX]=a;b._recompose(d);this.setMatrix(b)};
DvtDisplayable.prototype.getScaleY=function(){return this._matrix?this._matrix._decompose()[DvtMatrix._DECOMP_SY]:1};DvtDisplayable.prototype.setScaleY=function(a){var b=this.getMatrix().clone(),d=b._decompose();d[DvtMatrix._DECOMP_SY]=a;b._recompose(d);this.setMatrix(b)};DvtDisplayable.prototype.getRotation=function(){return this._matrix?this._matrix._decompose()[DvtMatrix._DECOMP_R]:0};
DvtDisplayable.prototype.setRotation=function(a){var b=this.getMatrix().clone(),d=b._decompose();d[DvtMatrix._DECOMP_R]=a;b._recompose(d);this.setMatrix(b)};DvtDisplayable.prototype.getMatrix=function(){return this._matrix?this._matrix:new DvtMatrix(this.getContext())};DvtDisplayable.prototype.setMatrix=function(a){if(!a||!a.isLocked())null!=this._matrix&&this._matrix.__unlock(),(this._matrix=a)&&this._matrix.__lock(),this._ApplyTransform()};
DvtDisplayable.prototype._ApplyTransform=function(){var a=null;null!=this._matrix&&(a=this._matrix);this._impl.setMatrix(a)};DvtDisplayable.prototype.getNumDrawEffects=function(){return!this._drawEffects?0:this._drawEffects.length};DvtDisplayable.prototype.getDrawEffectAt=function(a){return!this._drawEffects||0>a||a>=this._drawEffects.length?null:this._drawEffects[a]};
DvtDisplayable.prototype.addDrawEffect=function(a){a.isLocked()||(this._drawEffects||(this._drawEffects=[]),a.__lock(),this._drawEffects.push(a),this.getImpl().applyDrawEffects(this._drawEffects))};DvtDisplayable.prototype.addDrawEffectAt=function(a,b){a.isLocked()||(this._drawEffects||(this._drawEffects=[]),a.__lock(),b>=this._drawEffects.length?this._drawEffects.push(a):this._drawEffects.splice(b,0,a),this.getImpl().applyDrawEffects(this._drawEffects))};
DvtDisplayable.prototype.removeDrawEffect=function(a){var b=this.getDrawEffectIndex(a);-1<b&&(a.__unlock(),this._drawEffects.splice(b,1),this.getImpl().applyDrawEffects(this._drawEffects))};DvtDisplayable.prototype.removeDrawEffectAt=function(a){if(this._drawEffects){var b=this._drawEffects.length;0<=a&&a<b&&(this._drawEffects[a].__unlock(),this._drawEffects.splice(a,1),this.getImpl().applyDrawEffects(this._drawEffects))}};
DvtDisplayable.prototype.removeAllDrawEffects=function(){if(this._drawEffects){for(var a=this._drawEffects.length,b=0;b<a;b++)this._drawEffects[b].__unlock();this._drawEffects=null;this.getImpl().applyDrawEffects(this._drawEffects)}};DvtDisplayable.prototype.getDrawEffectIndex=function(a){if(this._drawEffects)for(var b=this._drawEffects.length,d=0;d<b;d++)if(a===this._drawEffects[d])return d;return-1};DvtDisplayable.prototype.applyDrawEffects=function(){this.getImpl().applyDrawEffects(this._drawEffects)};
DvtDisplayable.prototype.setAriaRole=function(a){this._impl.setAriaRole&&this._impl.setAriaRole(a);this._ariaRole=a};DvtDisplayable.prototype.getAriaRole=function(){return this._ariaRole};DvtDisplayable.prototype.setAriaProperty=function(a,b){a&&(this._impl.setAriaProperty&&("label"==a&&b&&(b=b.replace(/\n/g,"; ")),this._impl.setAriaProperty(a,b)),this._ariaProperties[a]=b,"hidden"!=a&&this.setAriaProperty("hidden",null))};
DvtDisplayable.prototype.getAriaProperty=function(a){return a?this._ariaProperties[a]:null};DvtDisplayable.prototype.stageToLocal=function(a){return this._impl.stageToLocal(a)};DvtDisplayable.prototype.localToStage=function(a){return this._impl.localToStage(a)};DvtDisplayable.prototype.getPathToStage=function(){for(var a=this,b=[];a;)b.push(a),a=a.getParent();return b};DvtDisplayable.prototype.destroy=function(){this.removeAllDrawEffects()};
DvtDisplayable.prototype.createCopy=function(){var a=this._impl.createCopy();a||(a=new DvtContainer(this.getContext(),"clonedContainer"));return a};DvtDisplayable.prototype.dispatchDisplayableEvent=function(a,b){this._impl.dispatchDisplayableEvent(a,b)};var DvtContainer=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtContainer,DvtDisplayable,"DvtContainer");
DvtContainer.prototype.contains=function(a,b){var d=!1;void 0===b&&(b=!1);if(b)for(var e=this.getIterator(b),g;g=e.getNext();){if(g===a){d=!0;break}}else d=0<=this._findChild(a);return d};DvtContainer.prototype.Init=function(a,b){this.getImpl()||this.setImpl(a.getImplFactory().newContainer(b));DvtContainer.superclass.Init.call(this,a);this._arList=null};
DvtContainer.prototype.addChild=function(a){if(a){var b=a.getParent();b&&b.removeChild(a);this._arList||(this._arList=[]);a.setParent(this);this._impl.addChild(a.getImpl());this._arList.push(a)}};DvtContainer.prototype.addChildAt=function(a,b){if(!(b>this.getNumChildren())&&a){var d=a.getParent();d&&d.removeChild(a);a.setParent(this);this._impl.addChildAt(a.getImpl(),b);this._arList||(this._arList=[]);this._arList.splice(b,0,a)}};
DvtContainer.prototype._findChild=function(a){var b=-1;if(this._arList)for(var d=this._arList.length,e=0;e<d;e++)if(this._arList[e]===a){b=e;break}return b};DvtContainer.prototype.getChildAt=function(a){var b=null;this._arList&&this._arList.length>a&&0<=a&&(b=this._arList[a]);return b};DvtContainer.prototype.getChildAfter=function(a){var b=null,a=this._findChild(a);0<=a&&++a<this._arList.length&&(b=this._arList[a]);return b};
DvtContainer.prototype.getChildBefore=function(a){var b=null,a=this._findChild(a);0<a&&(b=this._arList[--a]);return b};DvtContainer.prototype._getChildren=function(){return this._arList};DvtContainer.prototype.getChildIndex=function(a){return this._findChild(a)};DvtContainer.prototype.getIterator=function(a){return new DvtIterator(this._arList,a)};DvtContainer.prototype.getNumChildren=function(){return this._arList?this._arList.length:0};
DvtContainer.prototype.removeChild=function(a){var b=this._findChild(a);-1!==b&&this._removeObj(a,b)};DvtContainer.prototype.removeChildAt=function(a){var b=this.getChildAt(a);b&&this._removeObj(b,a);return b};DvtContainer.prototype.removeChildren=function(){if(this._arList)for(var a=this._arList;0<this.getNumChildren();)this._removeObj(a[0],0)};
DvtContainer.prototype._removeObj=function(a,b){this._impl.removeChild(a.getImpl());a.setParent(null);this._arList.splice(b,1);0===this._arList.length&&(this._arList=null)};DvtContainer.prototype.swap=function(a,b){var d=this.getChildIndex(a),e=this.getChildIndex(b);this._arList[d]=b;this._arList[e]=a;this._impl.swap(a.getImpl(),b.getImpl())};DvtContainer.prototype.destroy=function(){DvtContainer.superclass.destroy.call(this);for(var a=this.getNumChildren(),b=0;b<a;b++)this.getChildAt(b).destroy()};
DvtContainer.prototype.setHyperlink=function(a){this._linkObj=a;this._impl.setHyperlink&&this._impl.setHyperlink(a)};DvtContainer.prototype.getHyperlink=function(){return this._linkObj};var DvtStage=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtStage,DvtContainer,"DvtStage");DvtStage.prototype.Init=function(a,b,d){this.getImpl()||this.setImpl(a.getImplFactory().newStage(b,d));DvtStage.superclass.Init.call(this,a)};var DvtShape=function(a){this.Init(a)};
DvtObj.createSubclass(DvtShape,DvtContainer,"DvtShape");DvtShape.prototype.getFill=function(){return this._impl.getFill()};DvtShape.prototype.setFill=function(a){this._impl.setFill(a);a&&a.__lock()};DvtShape.prototype.getStroke=function(){return this._impl.getStroke()};DvtShape.prototype.setStroke=function(a){this._impl.setStroke(a);a&&a.__lock()};DvtShape.prototype.setHollow=function(a){this._impl.setHollow(a)};DvtShape.prototype.isHollow=function(){return this._impl.isHollow()};
DvtShape.prototype.destroy=function(){DvtShape.superclass.destroy.call(this);this.setFill(null);this.setStroke(null);this.removeAllDrawEffects()};DvtShape.prototype.Init=function(a){DvtShape.superclass.Init.call(this,a);this.setAriaProperty("hidden","true")};var DvtArc=function(a,b,d,e,g,h,k,m,n){this.Init(a,b,d,e,g,h,k,m,n)};DvtObj.createSubclass(DvtArc,DvtShape,"DvtArc");DvtArc.OPEN="OPEN";DvtArc.CHORD="CHORD";DvtArc.PIE="PIE";DvtArc.prototype.getAngleStart=function(){return this._impl.getAngleStart()};
DvtArc.prototype.setAngleStart=function(a){this._impl.setAngleStart(a)};DvtArc.prototype.getAngleExtent=function(){return this._impl.getAngleExtent()};DvtArc.prototype.setAngleExtent=function(a){this._impl.setAngleExtent(a)};DvtArc.prototype.getClosure=function(){return this._impl.getClosure()};DvtArc.prototype.setClosure=function(a){this._impl.setClosure(a)};DvtArc.prototype.getRx=function(){return this._impl.getRx()};DvtArc.prototype.setRx=function(a){this._impl.setRx(a)};
DvtArc.prototype.getRy=function(){return this._impl.getRy()};DvtArc.prototype.setRy=function(a){this._impl.setRy(a)};DvtArc.prototype.Init=function(a,b,d,e,g,h,k,m,n){this.getImpl()||this.setImpl(a.getImplFactory().newArc(b,d,e,g,h,k,m,n));DvtArc.superclass.Init.call(this,a)};DvtArc.prototype.setArc=function(a,b){this._impl.setArc(a,b)};DvtArc.prototype.setRadius=function(a,b){this.setRx(a);this.setRy(b)};var DvtCircle=function(a,b,d,e,g){this.Init(a,b,d,e,g)};
DvtObj.createSubclass(DvtCircle,DvtShape,"DvtCircle");DvtCircle.prototype.getCx=function(){return this._impl.getCx()};DvtCircle.prototype.setCx=function(a){this._impl.setCx(a)};DvtCircle.prototype.getCy=function(){return this._impl.getCy()};DvtCircle.prototype.setCy=function(a){this._impl.setCy(a)};DvtCircle.prototype.getRadius=function(){return this._impl.getRadius()};DvtCircle.prototype.setRadius=function(a){this._impl.setRadius(a)};
DvtCircle.prototype.Init=function(a,b,d,e,g){this.getImpl()||this.setImpl(a.getImplFactory().newCircle(b,d,e,g));DvtCircle.superclass.Init.call(this,a)};DvtCircle.prototype.setCenter=function(a,b){this.setCx(a);this.setCy(b)};var DvtImage=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtImage,DvtShape,"DvtImage");DvtImage.prototype.getHeight=function(){return this._impl.getHeight()};DvtImage.prototype.setHeight=function(a){this._impl.setHeight(a)};
DvtImage.prototype.getPos=function(){return this._impl.getPos()};DvtImage.prototype.setPos=function(a,b){this.setX(a);this.setY(b)};DvtImage.prototype.getSrc=function(){return this._impl.getSrc()};DvtImage.prototype.setSrc=function(a){this._impl.setSrc(a)};DvtImage.prototype.getX=function(){return this._impl.getX()};DvtImage.prototype.setX=function(a){this._impl.setX(a)};DvtImage.prototype.getY=function(){return this._impl.getY()};DvtImage.prototype.setY=function(a){this._impl.setY(a)};
DvtImage.prototype.getWidth=function(){return this._impl.getWidth()};DvtImage.prototype.setWidth=function(a){this._impl.setWidth(a)};DvtImage.prototype.__setDimensions=function(a){this.setWidth(a.width);this.setHeight(a.height)};DvtImage.prototype.Init=function(a,b,d,e,g,h,k){this.getImpl()||this.setImpl(a.getImplFactory().newImage(b,d,e,g,h,k));DvtImage.superclass.Init.call(this,a)};DvtImage.prototype.loadImage=function(){return this._impl.loadImage()};
var DvtLine=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtLine,DvtShape,"DvtLine");DvtLine.prototype.getX1=function(){return this._impl.getX1()};DvtLine.prototype.setX1=function(a){this._impl.setX1(a)};DvtLine.prototype.getY1=function(){return this._impl.getY1()};DvtLine.prototype.setY1=function(a){this._impl.setY1(a)};DvtLine.prototype.getX2=function(){return this._impl.getX2()};DvtLine.prototype.setX2=function(a){this._impl.setX2(a)};DvtLine.prototype.getY2=function(){return this._impl.getY2()};
DvtLine.prototype.setY2=function(a){this._impl.setY2(a)};DvtLine.prototype.Init=function(a,b,d,e,g,h){this.getImpl()||this.setImpl(a.getImplFactory().newLine(b,d,e,g,h));DvtLine.superclass.Init.call(this,a)};var DvtMarker=function(a,b,d,e,g,h,k,m,n,o){this.Init(a,b,d,e,g,h,k,m,n,o)};DvtObj.createSubclass(DvtMarker,DvtShape,"DvtMarker");DvtMarker.NONE=-1;DvtMarker.CIRCLE=0;DvtMarker.SQUARE=1;DvtMarker.DIAMOND=2;DvtMarker.TRIANGLE_UP=3;DvtMarker.TRIANGLE_DOWN=4;DvtMarker.PLUS=5;DvtMarker.HUMAN=6;
DvtMarker.ROUNDED_RECTANGLE=7;DvtMarker.CUSTOM=8;DvtMarker.IMAGE=9;DvtMarker.IMAGE_SOURCE=0;DvtMarker.IMAGE_SOURCE_SELECTED=1;DvtMarker.IMAGE_SOURCE_HOVER=2;DvtMarker.IMAGE_SOURCE_HOVER_SELECTED=3;DvtMarker.DEFAULT_UNDERLAY_TYPE=DvtMarker.SQUARE;DvtMarker.DEFAULT_UNDERLAY_COLOR="#8f808080";DvtMarker.SELECTION_STROKE_COLOR="#000000";DvtMarker.SELECTION_STROKE_ALPHA=1;DvtMarker.prototype.getSize=function(){return this._size};DvtMarker.prototype.getType=function(){return this._impl.getType()};
DvtMarker.prototype.Init=function(a,b,d,e,g,h,k,m,n,o){this._xx=d;this._yy=e;this._ww=g;this._hh=h;this._sx=m?m:1;this._sy=n?n:1;this._maintainAspect=o;var q,s;if(b instanceof Array)this._setMarkerImageStates(b),b=DvtMarker.IMAGE;else if(!DvtMarker.isBuiltInShape(b))if(s=DvtMarkerUtils.getCustomMarkerInfo(a,b)){q=s instanceof DvtPath?"path":"g";if(!g||!h)b=DvtDisplayableUtils._getDimForced(a,s),g=g?g:b.w,h=h?h:b.h,this._ww=g,this._hh=h;b=DvtMarker.CUSTOM}else b=DvtMarker.SQUARE;this.getImpl()||this.setImpl(a.getImplFactory().newMarker(b,
k,q));DvtMarker.superclass.Init.call(this,a);b===DvtMarker.HUMAN&&(s=DvtMarkerUtils.getBuiltinMarkerInfo(a,"human"));a=this.getScaledWidth();g=this.getScaledHeight();this._size=Math.max(a,g);this.getImpl().setBounds(d,e,a,g,s);this._bSelecting=this._bSelected=this._bSelectable=!1;this._selectionEffects=null;this._underlayColor=this._dataColor="#000000";this._savedFill=this._savedStroke=null;this._bSavedFill=this._bSavedStroke=!1;this._selectionType=DvtSelectionEffectUtils.DEFAULT_SEL_TYPE;this._selStrokeAlpha=
this._selStrokeColor=this._selStrokeWidth=null};DvtMarker.prototype.getX=function(){return this._xx};DvtMarker.prototype.getY=function(){return this._yy};DvtMarker.prototype.getWidth=function(){return this._ww};DvtMarker.prototype.getHeight=function(){return this._hh};DvtMarker.prototype.getSx=function(){return this._sx};DvtMarker.prototype.getSy=function(){return this._sy};DvtMarker.prototype.getMaintainAspect=function(){return!0==this._maintainAspect};
DvtMarker.prototype.getScaledWidth=function(){return this._sx?this._ww*this._sx:this._ww};DvtMarker.prototype.getScaledHeight=function(){return this._sy?this._hh*this._sy:this._hh};
DvtMarker.convertShapeString=function(a){return"circle"==a||"c"==a?DvtMarker.CIRCLE:"square"==a||"s"==a?DvtMarker.SQUARE:"diamond"==a||"d"==a?DvtMarker.DIAMOND:"triangleUp"==a||"tu"==a?DvtMarker.TRIANGLE_UP:"triangleDown"==a||"td"==a?DvtMarker.TRIANGLE_DOWN:"plus"==a||"p"==a?DvtMarker.PLUS:"human"==a||"h"==a?DvtMarker.HUMAN:"roundedRectangle"==a||"rr"==a?DvtMarker.ROUNDED_RECTANGLE:DvtMarker.NONE};DvtMarker.prototype.setSelectionType=function(a){this._selectionType=a};
DvtMarker.prototype.getSelectionType=function(){return this._selectionType};DvtMarker.prototype.ApplySelectionState=function(){if(this.getType()===DvtMarker.IMAGE)this.getImpl().UpdateMarkerImage();else switch(this._selectionType){case DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS:this.ApplySelectingSelectedStroke(!0,!0,!0);break;default:this.ApplySelectionFilters()}};
DvtMarker.prototype.ApplySelectionFilters=function(){this._selectionEffects||this.UpdateSelectionEffects();if(this._bSelected){if(this._selectionEffects)for(var a=0;a<this._selectionEffects.length;a++){var b=this._selectionEffects[a];(!(b instanceof DvtShadow)||this._bSelectedShadow)&&DvtSelectionEffectUtils.applyDrawEffect(this,b)}}else this.ClearSelectionEffects()};DvtMarker.prototype.ClearSelectionEffects=function(){if(this._selectionEffects)for(var a=0;a<this._selectionEffects.length;a++)this.removeDrawEffect(this._selectionEffects[a])};
DvtMarker.prototype.DestroySelectionEffects=function(){this._selectionEffects=null};DvtMarker.prototype.UpdateSelectionEffects=function(){var a="#000000",a=this._impl.getUnderlay()?this._underlayColor:this._dataColor;this._selectionEffects=DvtSelectionEffectUtils.createMarkerSelectionEffects(this.getContext(),a)};
DvtMarker.prototype.ApplySelectingState=function(){if(this.getType()===DvtMarker.IMAGE)this.getImpl().UpdateMarkerImage();else switch(this._selectionType){case DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS:this.ApplySelectingSelectedStroke(!0,!0,!0);break;default:this.ApplySelectingStroke()}};DvtMarker.prototype.ApplySelectingStroke=function(a){this.ApplySelectingSelectedStroke(a,!0)};
DvtMarker.prototype.ApplySelectingSelectedStroke=function(a,b,d){var e;e=b&&this._bSelecting;var g=d&&this._bSelected,h=this._selectionType===DvtSelectionEffectUtils.SEL_TYPE_STROKE_NO_FILTERS;if(h){var k;g?this._bSavedFill||(k=new DvtSolidFill("#ffffff",1),this._savedFill=this.getFill(),this._bSavedFill=!0,this.setFill(k)):this._bSavedFill&&(k=this._savedFill,this._savedFill=null,this._bSavedFill=!1,this.setFill(k))}e||g?(this._bSavedStroke||(e=DvtSelectionEffectUtils.createSelectingStroke(this._dataColor),
e instanceof DvtSolidStroke&&(this._selStrokeColor=e.getColor(),this._selStrokeAlpha=e.getAlpha(),g&&(h?e.setColor(this._dataColor):(e.setColor(DvtMarker.SELECTION_STROKE_COLOR),e.setAlpha(DvtMarker.SELECTION_STROKE_ALPHA)))),this._selStrokeWidth=g=e.getWidth(),e.setWidth(g),this._savedStroke=this.getStroke(),this._bSavedStroke=!0,this.setStroke(e)),b&&d&&(this._bSelected&&this.getStroke()instanceof DvtSolidStroke?(e=this.getStroke().clone(),h?e.getColor()!==this._dataColor&&(e.setColor(this._dataColor),
this.setStroke(e)):e.getColor()!==DvtMarker.SELECTION_STROKE_COLOR&&(e.setColor(DvtMarker.SELECTION_STROKE_COLOR),e.setAlpha(DvtMarker.SELECTION_STROKE_ALPHA),this.setStroke(e))):this._bSelecting&&this.getStroke()instanceof DvtSolidStroke&&(e=this.getStroke().clone(),e.getColor()!==this._selStrokeColor&&(e.setColor(this._selStrokeColor),e.setAlpha(this._selStrokeAlpha),this.setStroke(e)))),this._impl.getUnderlay()&&(d=DvtSelectionEffectUtils.createSelectingStroke(this._underlayColor),h=d.getWidth(),
this.getType()===DvtMarker.HUMAN&&(h*=this.getImpl().getDefaultScale()),d.setWidth(h),this._impl.getUnderlay().setStroke(d)),a&&b&&(this._bSelecting?this._selectingAnimator||this.StartAnimatingStroke():(this.StopSelectingAnimator(),this.SetStrokeWidth(this._selStrokeWidth)))):(a&&this.StopSelectingAnimator(),e=this._savedStroke,this._savedStroke=null,this._bSavedStroke=!1,this.setStroke(e),this._impl.getUnderlay()&&this._impl.getUnderlay().setStroke(null))};
DvtMarker.prototype.StartAnimatingStroke=function(){if(this._bSelecting&&this.getStroke()){var a=new DvtCustomAnimation(this.getContext(),null,1);a.getAnimator().addProp(DvtAnimator.TYPE_NUMBER,this,this.GetStrokeWidth,this.SetStrokeWidth,3*this.getStroke().getWidth());var b=new DvtCustomAnimation(this.getContext(),null,1);b.getAnimator().addProp(DvtAnimator.TYPE_NUMBER,this,this.GetStrokeWidth,this.SetStrokeWidth,this.getStroke().getWidth());a=new DvtSequentialPlayable(this.getContext(),a,b);a.setOnEnd(this.StartAnimatingStroke,
this);this._selectingAnimator=a;a.play()}};DvtMarker.prototype.StopSelectingAnimator=function(){this._selectingAnimator&&(this._selectingAnimator.stop(),this._selectingAnimator=null)};DvtMarker.prototype.SetStrokeWidth=function(a){var b=this.getStroke();b&&(b=b.clone(),b.setWidth(a),this.setStroke(b))};DvtMarker.prototype.GetStrokeWidth=function(){var a=this.getStroke();return a?a.getWidth():0};DvtMarker.prototype.showHoverEffect=function(){this.SetSelectionMouseOver(!0)};
DvtMarker.prototype.hideHoverEffect=function(){this.SetSelectionMouseOver(!1)};DvtMarker.prototype.isHoverEffectShown=function(){return this._bSelecting};DvtMarker.prototype.SetSelectionMouseOver=function(a){this._bSelecting!=a&&(this._bSelecting=a,this.ApplySelectingState())};DvtMarker.prototype.isSelected=function(){return this._bSelected};DvtMarker.prototype.setSelected=function(a){this._bSelected!=a&&(this._bSelected=a,this.ApplySelectionState())};
DvtMarker.prototype.setSelectable=function(a){(this._bSelectable=a)?this.setCursor(DvtSelectionEffectUtils.getSelectingCursor()):this.setCursor(null)};DvtMarker.prototype.isSelectable=function(){return this._bSelectable};DvtMarker.prototype.setDataColor=function(a){this._dataColor=a};DvtMarker.prototype.getDataColor=function(){return this._dataColor};DvtMarker.prototype.setUnderlay=function(a,b,d){this._impl.setUnderlay(a,b,d);this._underlayColor=b};DvtMarker.prototype.getUnderlay=function(){return this._impl.getUnderlay()};
DvtMarker.prototype.setUnderlayVisible=function(a){var b=this._impl.getUnderlay();b&&b.setVisible(a)};DvtMarker.prototype.setHollow=function(a){var b=this.getScaleX(),d=this.getScaleY(),b=Math.min(b,d),d=this.GetStrokeWidth();this._impl.setHollow(a,(d?d:1)/b)};DvtMarker.prototype.setText=function(a){this._markerText=a};DvtMarker.prototype.setAlpha=function(a){DvtMarker.superclass.setAlpha.call(this,a);this._markerText&&this._markerText.setAlpha(a)};
DvtMarker.prototype.setVisible=function(a){DvtMarker.superclass.setVisible.call(this,a);this._markerText&&this._markerText.setVisible(a)};DvtMarker.prototype._setMarkerImageStates=function(a){var b=a[0];this._imageStates=[b];this._imageStates.push(a[1]?a[1]:b);this._imageStates.push(a[2]?a[2]:b);this._imageStates.push(a[3]?a[3]:this._imageStates[1])};DvtMarker.prototype.GetMarkerImage=function(a){return this._imageStates?this._imageStates[a]:null};
DvtMarker.isBuiltInShape=function(a){return a==DvtMarker.CIRCLE||a==DvtMarker.SQUARE||a==DvtMarker.DIAMOND||a==DvtMarker.TRIANGLE_UP||a==DvtMarker.TRIANGLE_DOWN||a==DvtMarker.PLUS||a==DvtMarker.HUMAN||a==DvtMarker.ROUNDED_RECTANGLE?!0:!1};var DvtOval=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtOval,DvtCircle,"DvtOval");DvtOval.prototype.getRx=function(){return this._impl.getRx()};DvtOval.prototype.setRx=function(a){this._impl.setRx(a)};DvtOval.prototype.getRy=function(){return this._impl.getRy()};
DvtOval.prototype.setRy=function(a){this._impl.setRy(a)};DvtOval.prototype.Init=function(a,b,d,e,g,h){this.getImpl()||this.setImpl(a.getImplFactory().newOval(b,d,e,g,h));DvtOval.superclass.Init.call(this,a)};DvtOval.prototype.setRadius=function(a,b){this.setRx(a);this.setRy(b)};var DvtPath=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtPath,DvtShape,"DvtPath");DvtPath.prototype.getCmds=function(){this._sCmds||(this._sCmds=this._impl.getCmds());return this._sCmds};
DvtPath.prototype.setCmds=function(a){this._impl.setCmds(a);this._sCmds=a;this._aCmds=null};DvtPath.prototype.getCommands=function(){if(this.getContext()instanceof DvtCanvasContext)return this._impl.getCommands();return this._aCmds?this._aCmds:this._aCmds=(this._sCmds=this.getCmds())?DvtPathUtils.createPathArray(this._sCmds):null};
DvtPath.prototype.setCommands=function(a){if(this.getContext()instanceof DvtCanvasContext)return this._aCmds=a,this._sCmds=null,this._impl.setCommands(a);var b=a?DvtPathUtils.getPathString(a):null;this.setCmds(b);this._aCmds=a;this._sCmds=b};DvtPath.prototype.Init=function(a,b,d){this.getImpl()||this.setImpl(a.getImplFactory().newPath(b,d));DvtPath.superclass.Init.call(this,a)};var DvtPolygon=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtPolygon,DvtShape,"DvtPolygon");
DvtPolygon.prototype.getPoints=function(){return this._impl.getPoints()};DvtPolygon.prototype.setPoints=function(a){this._impl.setPoints(a)};DvtPolygon.prototype.Init=function(a,b,d){this.getImpl()||this.setImpl(a.getImplFactory().newPolygon(b,d));DvtPolygon.superclass.Init.call(this,a)};var DvtPolyline=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtPolyline,DvtShape,"DvtPolyline");DvtPolyline.prototype.getPoints=function(){return this._impl.getPoints()};
DvtPolyline.prototype.setPoints=function(a){this._impl.setPoints(a)};DvtPolyline.prototype.Init=function(a,b,d){this.getImpl()||this.setImpl(a.getImplFactory().newPolyline(b,d));DvtPolyline.superclass.Init.call(this,a)};var DvtRect=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtRect,DvtShape,"DvtRect");DvtRect.prototype.getX=function(){return this._impl.getX()};DvtRect.prototype.setX=function(a){this._impl.setX(a)};DvtRect.prototype.getY=function(){return this._impl.getY()};
DvtRect.prototype.setY=function(a){this._impl.setY(a)};DvtRect.prototype.getWidth=function(){return this._impl.getWidth()};DvtRect.prototype.setWidth=function(a){this._impl.setWidth(a)};DvtRect.prototype.getHeight=function(){return this._impl.getHeight()};DvtRect.prototype.setHeight=function(a){this._impl.setHeight(a)};DvtRect.prototype.getRx=function(){return this._impl.getRx()};DvtRect.prototype.setRx=function(a){this._impl.setRx(a)};DvtRect.prototype.getRy=function(){return this._impl.getRy()};
DvtRect.prototype.setRy=function(a){this._impl.setRy(a)};DvtRect.prototype.Init=function(a,b,d,e,g,h){this.getImpl()||this.setImpl(a.getImplFactory().newRect(b,d,e,g,h));DvtRect.superclass.Init.call(this,a)};DvtRect.prototype.setPos=function(a,b){this.setX(a);this.setY(b)};DvtRect.prototype.setCornerRadius=function(a,b){this.setRx(a);this.setRy(b)};
DvtRect.prototype.setRect=function(a,b,d,e){a instanceof DvtRectangle?(this.setPos(a.x,a.y),this.setWidth(a.w),this.setHeight(a.h)):(this.setPos(a,b),this.setWidth(d),this.setHeight(e))};var DvtText=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtText,DvtShape,"DvtText");DvtText._TRUNCATION_INCR=1;DvtText._TRUNCATION_MIN_LENGTH=1;DvtText.ELLIPSIS="...";
DvtText.prototype.Init=function(a,b,d,e,g){this.getImpl()||this.setImpl(a.getImplFactory().newText(b,d,e,g));DvtText.superclass.Init.call(this,a);this._Ctx=a;this._maxw=-1;this._inProcess=this._bTruncated=this._bHtmlText=!1;this.alignTop();this._eWidth=void 0;this._defTrunc=!1;this._setCachedDims(void 0);this._bHollow=!1};DvtText.prototype.getTextString=function(){return""+this._impl.getTextString()};DvtText.prototype.setAngle=function(a){this._impl.setAngle(a)};DvtText.prototype.getEditMode=function(){return this._impl.getEditMode()};
DvtText.prototype.setEditMode=function(a){this._impl.setEditMode(a)};DvtText.prototype.setEditWidth=function(a){this._impl.setEditWidth(a)};DvtText.prototype.setEditTooltip=function(a){this._impl.setEditTooltip(a)};DvtText.prototype.getEditBorder=function(){return this._impl.getEditBorder()};DvtText.prototype.setEditBorder=function(a){this._impl.setEditBorder(a)};DvtText.prototype.selectEditText=function(){this._impl.selectEditText&&this._impl.selectEditText()};
DvtText.prototype.focusEditText=function(){this._impl.focusEditText&&this._impl.focusEditText()};DvtText.prototype.setRotatePoint=function(a,b){this._impl.setRotatePoint(a,b)};DvtText.prototype.setTextString=function(a){this._text=a;this._impl.setTextString(a);this._setCachedDims(void 0)};DvtText.prototype.getX=function(){return this._impl.getX()};DvtText.prototype.setX=function(a){this._impl.setX(a)};DvtText.prototype.getY=function(){return this._impl.getY()};DvtText.prototype.setY=function(a){this._impl.setY(a)};
DvtText.prototype.setFontSize=function(a){this._impl.setFontSize(a);this._setCachedDims(void 0)};DvtText.prototype.alignStart=function(){this._impl.alignStart()};DvtText.prototype.alignMiddle=function(){this._impl.alignMiddle()};DvtText.prototype.alignEnd=function(){this._impl.alignEnd()};DvtText.prototype.alignTop=function(){this._impl.alignTop()};DvtText.prototype.alignCenter=function(){this._impl.alignCenter()};DvtText.prototype.alignBottom=function(){this._impl.alignBottom()};
DvtText.prototype.alignBaseline=function(){this._impl.alignBaseline()};
DvtText.prototype.truncateToSpace=function(a,b,d){a.addChild(this);var e=this.getDimensions(),g=e.w;if(e.h>d)return a.removeChild(this),null;if(g>b){d=this.getTextString();for(d=d.substring(0,Math.floor(b/(g/d.length))-1);g>b&&d.length>=DvtText._TRUNCATION_MIN_LENGTH;)this.setTextString(d+"..."),g=this.getDimensions().w,d=d.substring(0,d.length-DvtText._TRUNCATION_INCR),this._bTruncated||(this._bTruncated=!0)}a.removeChild(this);return g>b?null:this};
DvtText.prototype.truncateToCallback=function(a,b,d){a.addChild(this);for(var e=this.getDimensions(),g=DvtText._getInitialTruncation(this.getTextString());!b(e,d)&&g.length>=DvtText._TRUNCATION_MIN_LENGTH;)this.setTextString(g+"..."),e=this.getDimensions(),g=g.substring(0,g.length-DvtText._TRUNCATION_INCR);a.removeChild(this);return b(e,d)?this:null};DvtText._getInitialTruncation=function(a){var b=Math.max(1,a.length-3);return a.substring(0,b)};
DvtText.prototype.setMaxWidth=function(a){this._maxw=a;0<a&&this._ProcessText()};DvtText.prototype.getText=function(){return this.getEditMode()&&this._impl.getText?this._impl.getText():this._text};DvtText.prototype._setTextWithSize=function(a,b){this._impl.setText(a,b)};DvtText.prototype.setTruncateAt=function(a){this._truncateAt=a;this.DoSetText(this.getText())};DvtText.prototype.getTruncateAt=function(){return this._truncateAt};
DvtText.prototype.DoSetText=function(a){a=this.DoTruncateAt(a,this.getTruncateAt());this._setCachedDims(void 0);this._setText(a);a&&this._ProcessText()};DvtText.prototype.DoTruncateAt=function(a,b){this._bTruncated=!1;b&&a&&a.length>b&&(a=a.substr(0,Math.max(b-3,0))+"...",this._bTruncated=!0);return a};DvtText.prototype.isTruncated=function(){return this._bTruncated};DvtText.prototype.isTruncationEnabled=function(){return 0<this._maxw&&!this._bHtmlText};
DvtText.prototype.setText=function(a){this._text=a;this.DoSetText(a)};DvtText.prototype._setText=function(a){this._impl.setText(a)};DvtText.prototype._getText=function(){return this._impl.getText()};DvtText.prototype.setCSSStyle=function(a){this._eWidth=void 0;this._setCachedDims(void 0);DvtText.superclass.setCSSStyle.call(this,a);null!==this._text&&"undefined"!==typeof this._text?this.setText(this.getText()):this._ProcessText()};
DvtText.prototype._ProcessText=function(){this.isTruncationEnabled()&&!this._inProcess&&(this._inProcess=!0,this._TruncateText(),this._inProcess=!1)};DvtText.prototype._TruncateText=function(){this._bTruncated=!1;if(this.isTruncationEnabled()){var a=this._truncateLine(this._maxw);a&&(this._bTruncated=!0,this._setText(a))}};
DvtText.prototype._truncateLine=function(a){var b=!1,d=this.getCachedDims();if(d.w>a){b=!0;if(this._defTrunc)return this._bTruncated=!0,null;for(var a=a-this._getEllipsisWidth(),e=this._getText(),g=e.length,h,k=0;k+1<g;)h=Math.floor((k+g)/2),this._setText(e.substring(0,h)),d=this.getDimensions(),this._setCachedDims(d),d.w>a?g=h:k=h;k!=h&&this._setText(e.substring(0,k))}return b?this._getText()+DvtText.ELLIPSIS:null};
DvtText.prototype.CreateTextField=function(a,b,d,e){b=new DvtText(this._Ctx,null,b,d,e);a&&b.setText(a);return b};DvtText.prototype._GetTempTextField=function(){if(void 0===this._ttf){var a=this.CreateTextField(void 0,0,0,this.getId()+"__tmp");a.setCSSStyle(this.getCSSStyle());this.getContext().getStage().addChild(a);this._ttf=a}return this._ttf};DvtText.prototype._RemoveTempTextField=function(){this._ttf&&(this.getContext().getStage().removeChild(this._ttf),this._ttf=void 0)};
DvtText.prototype._getEllipsisWidth=function(){if(void 0===this._eWidth){var a=this.getCSSStyle();if(a&&a.ellipsisWidth)this._eWidth=a.ellipsisWidth;else{var b=this._GetTempTextField();b._setText(DvtText.ELLIPSIS);this._eWidth=b.getDimensions().w;this._RemoveTempTextField();a&&(a.ellipsisWidth=this._eWidth)}}return this._eWidth};DvtText.prototype.getCachedDims=function(){var a=DvtDisplayableUtils._getDimForced(null,this);a||(a=this.GetDimsForCaching(),this._setCachedDims(a));return a};
DvtText.prototype.GetDimsForCaching=function(){return DvtText.superclass.getDimensions.call(this)};DvtText.prototype._setCachedDims=function(a){DvtDisplayableUtils._setDimForced(this,a)};DvtText.prototype.truncateText=function(a){this.setTruncationDeferred(a);a||this._ProcessText()};DvtText.prototype.setTruncationDeferred=function(a){this._defTrunc=a};DvtText.prototype.isTruncationDeferred=function(){return this._defTrunc};
DvtText.truncateTexts=function(a){var b=a.length;for(i=0;i<b;i++){var d=a[i].isTruncationDeferred();a[i].setTruncationDeferred(!1);try{a[i]._ProcessText()}finally{a[i].setTruncationDeferred(d)}}};DvtText.prototype.getDimensions=function(a){a=DvtText.superclass.getDimensions.call(this,a);this.isTruncated()&&this._defTrunc&&!this._dim&&(a.w=this._maxw);return a};var DvtTextArea=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtTextArea,DvtText,"DvtTextArea");DvtTextArea.NEW_LINE="\n";
DvtTextArea.TRIM_TRAILING_REGEXP=/\s+$/;DvtTextArea.prototype.Init=function(a,b,d,e){this.getImpl()||this.setImpl(a.getImplFactory().newTextArea(b,d,e));DvtTextArea.superclass.Init.call(this,a);this._bWordWrap=!0;this._maxHeight=this._maxLines=-1;this._numLines=1;this._bTruncated=!1};DvtTextArea.prototype.getNumLines=function(){return this.isWrappingEnabled()?this._numLines:1};DvtTextArea.prototype.getLeading=function(){return this._impl.getLeading()};DvtTextArea.prototype.setLeading=function(a){this._impl.setLeading(a)};
DvtTextArea.prototype.getMaxLines=function(){return this._maxLines};DvtTextArea.prototype.setMaxLines=function(a){this._maxLines=a};DvtTextArea.prototype.setMaxHeight=function(a){this._maxHeight=a};DvtTextArea.prototype.DoSetText=function(a){var a=this.DoTruncateAt(a,this.getTruncateAt()),b;if(a=a?a:"")this._setText(a),b=a.split(DvtTextArea.NEW_LINE);this._lines=b;this._ProcessText()};DvtTextArea.prototype.setWordWrap=function(a){this._bWordWrap=a};DvtTextArea.prototype.isWordWrap=function(){return this._bWordWrap};
DvtTextArea.prototype.isWrappingEnabled=function(){return this.isWordWrap()&&0<this._maxw&&!this._bHtmlText&&this._lines};DvtTextArea.prototype._ProcessText=function(){this._inProcess||(this._inProcess=!0,this.isWrappingEnabled()?this._wrapText():this.isTruncationEnabled()&&this._TruncateText(),this._inProcess=!1)};
DvtTextArea.prototype._wrapText=function(){for(var a=this._maxw,b=DvtArrayUtils.copy(this._lines),d=b.length,e=this._GetTempTextField(),g=[],h,k,m=0,n=0,o,q=!1,s=!1,t=[],u=0,v=0;v<d;v++){e._setText(b[v]);k=e.getDimensions();if(k.w>a&&(o=e._getText(),h=DvtTextArea._wrapLine(a,e)))b.splice(v+1,0,h),d++,o==h&&(q=!0);if((h=-1<this._maxHeight&&v<d-1&&u+2*k.h>this._maxHeight+DvtMath.TOLERANCE)||-1!=this._maxLines&&v==this._maxLines-1||q){if(h||this._maxLines<d||q)s=e._getText(),s=s.replace(DvtTextArea.TRIM_TRAILING_REGEXP,
""),e.setText(s+DvtText.ELLIPSIS),e.setMaxWidth(a),this._bTruncated=!0;s=!0}k=e.getDimensions();k.w>this._maxw&&(h=e._truncateLine(this._maxw),e.setText(h),k=e.getDimensions());g.push(e._getText());t.push(new DvtRectangle(k.x,k.y,k.w,k.h));m=Math.max(k.h,m);n=Math.max(k.w,n);u+=k.h;if(s)break}this._maxh=m;this._maxw=n;this._RemoveTempTextField();this._setTextWithSize(g,0===t.length?void 0:t);this._numLines=g.length};
DvtTextArea._wrapLine=function(a,b){var d=b._getText(),e,g,h=DvtTextArea._breakWords(d);if(1<h.length){var k;for(k=0;k<h.length-1&&!(e=k<h.length?d.substring(0,h[k+1].index):d.substring(0,h[k].length),b._setText(e),e=b.getDimensions().w,e>a);k++);0<k?(g=d.substring(0,h[k].index),g=g.replace(DvtTextArea.TRIM_TRAILING_REGEXP,""),b._setText(g),g=d.substring(h[k].index)):1<h.length&&(g=d.substring(h[k+1].index))}else g=d;return g};
DvtTextArea._breakWords=function(a){void 0===DvtTextArea._word_regexp&&(DvtTextArea._word_regexp=RegExp("\\S+","g"));for(var b=[],d;null!==(d=DvtTextArea._word_regexp.exec(a));)b.push({index:d.index,length:d[0].length});return b};DvtTextArea.prototype._getMaxTextHeight=function(){return this._maxh};DvtTextArea.prototype._getMaxTextWidth=function(){return this._maxw};DvtTextArea.prototype.isTruncated=function(){return this._bTruncated||DvtTextArea.superclass.isTruncated.call(this)};
var DvtTextFormatted=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtTextFormatted,DvtText,"DvtTextFormatted");DvtTextFormatted.prototype.Init=function(a,b,d,e){this.getImpl()||this.setImpl(a.getImplFactory().newTextFormatted(b,d,e));DvtTextFormatted.superclass.Init.call(this,a)};DvtTextFormatted.prototype.getText=function(){return this._impl.getText()};DvtTextFormatted.prototype.setText=function(a){this._impl.setText(a)};
DvtTextFormatted.prototype.GetDimsForCaching=function(){var a=this.getDimensions(),b=this.getX();a.x>b&&(a.w+=a.x-b,a.x=b);return a};var DvtSelectableArc=function(a,b,d,e,g,h,k,m,n){this.Init(a,b,d,e,g,h,k,m,n)};DvtObj.createSubclass(DvtSelectableArc,DvtArc,"DvtSelectableArc");
DvtSelectableArc.prototype.Init=function(a,b,d,e,g,h,k,m,n){DvtSelectableArc.superclass.Init.call(this,a,b,d,e,g,h,k,m,n);this._bSelecting=this._bSelected=!1;this._selectionEffects=null;this._bSelectedShadow=!0;this._dataColor="#000000";this._savedStroke=null;this._bSavedStroke=!1;this._applyStrokeTimer=this._relatedLogicalObjects=null;this._bZorder=!0;this._zOrderManager=null;this._selectionType=DvtSelectionEffectUtils.DEFAULT_SEL_TYPE};
DvtSelectableArc.prototype.ApplySelectionState=function(){DvtSelectionEffectUtils.applySelectionState(this,this._dataColor)};DvtSelectableArc.prototype.ApplySelectingState=function(){DvtSelectionEffectUtils.applySelectingState(this,this._dataColor)};DvtSelectableArc.prototype.showHoverEffect=function(){this.SetSelectionMouseOver(!0)};DvtSelectableArc.prototype.hideHoverEffect=function(){this.SetSelectionMouseOver(!1)};DvtSelectableArc.prototype.isHoverEffectShown=function(){return this._bSelecting};
DvtSelectableArc.prototype.SetSelectionMouseOver=function(a){this.SetSelectionMouseOverSelf(a);if(this._relatedLogicalObjects)for(var b=0;b<this._relatedLogicalObjects.length;b++)this._relatedLogicalObjects[b].SetSelectionMouseOverSelf&&this._relatedLogicalObjects[b].SetSelectionMouseOverSelf(a)};
DvtSelectableArc.prototype.SetSelectionMouseOverSelf=function(a){this._bSelecting!=a&&(this._bSelecting=a,this._bZorder&&(this._bSelecting&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):this._bSelected||this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectingState())};DvtSelectableArc.prototype.isSelected=function(){return this._bSelected};
DvtSelectableArc.prototype.setSelected=function(a){this.SetSelectedSelf(a);if(this._relatedLogicalObjects)for(var b=0;b<this._relatedLogicalObjects.length;b++)this._relatedLogicalObjects[b].SetSelectedSelf&&this._relatedLogicalObjects[b].SetSelectedSelf(a)};
DvtSelectableArc.prototype.SetSelectedSelf=function(a){this._bSelected!=a&&(this._bSelected=a,this._bZorder&&(this._bSelected&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):!this._bSelecting&&this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectionState())};DvtSelectableArc.prototype.addRelatedObject=function(a){this._relatedLogicalObjects||(this._relatedLogicalObjects=[]);this._relatedLogicalObjects.push(a)};
DvtSelectableArc.prototype.setSelectedShadow=function(a){this._bSelectedShadow=a};DvtSelectableArc.prototype.setDataColor=function(a){this._dataColor=a};DvtSelectableArc.prototype.setZorder=function(a){this._bZorder=a};DvtSelectableArc.prototype.setZOrderManager=function(a){this._zOrderManager=a};var DvtSelectableLineMarker=function(a,b,d,e,g,h,k,m,n,o){this.Init(a,b,d,e,g,h,k,m,n,o)};DvtObj.createSubclass(DvtSelectableLineMarker,DvtMarker,"DvtSelectableLineMarker");
DvtSelectableLineMarker.prototype.Init=function(a,b,d,e,g,h,k,m,n,o){DvtSelectableLineMarker.superclass.Init.call(this,a,b,d,e,g,h,k,m,n,o);this._savedFill=null;this._bSavedStroke=this._bSavedFill=!1;this._zOrderManager=null};
DvtSelectableLineMarker.prototype.ApplySelectingSelectionState=function(){var a,b;this._bSelected?(this._zOrderManager&&this._zOrderManager.bringToFrontOfSelection(this),a=DvtSelectionEffectUtils.createSelectingStroke("#000000"),b=a.getWidth(),a.setWidth(b),b=new DvtSolidFill("#000000",0.0010),this._bSelecting||this.SaveStrokeAndFill()):this._bSelecting?(this._zOrderManager&&this._zOrderManager.bringToFrontOfSelection(this),a=DvtSelectionEffectUtils.createSelectingStroke(this._dataColor),b=a.getWidth(),
a.setWidth(b),b=new DvtSolidFill("#000000",0.0010),this.SaveStrokeAndFill()):(this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this),a=this._savedStroke,b=this._savedFill,this._savedFill=this._savedStroke=null,this._bSavedFill=this._bSavedStroke=!1);this.setStroke(a);this.setFill(b)};
DvtSelectableLineMarker.prototype.SaveStrokeAndFill=function(){this._bSavedStroke||(this._savedStroke=this.getStroke(),this._bSavedStroke=!0);this._bSavedFill||(this._savedFill=this.getFill(),this._bSavedFill=!0)};DvtSelectableLineMarker.prototype.ApplySelectingState=function(){this.ApplySelectingSelectionState()};DvtSelectableLineMarker.prototype.ApplySelectionState=function(){this.ApplySelectingSelectionState()};
DvtSelectableLineMarker.prototype.setZOrderManager=function(a){this._zOrderManager=a};var DvtSelectablePath=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtSelectablePath,DvtPath,"DvtSelectablePath");
DvtSelectablePath.prototype.Init=function(a,b,d){DvtSelectablePath.superclass.Init.call(this,a,b,d);this._bSelecting=this._bSelected=!1;this._selectionEffects=null;this._bSelectedShadow=!0;this._dataColor="#000000";this._savedStroke=null;this._bSavedStroke=!1;this._applyStrokeTimer=this._relatedLogicalObjects=null;this._bZorder=!0;this._zOrderManager=null;this._selectionType=DvtSelectionEffectUtils.DEFAULT_SEL_TYPE};
DvtSelectablePath.prototype.ApplySelectionState=function(){DvtSelectionEffectUtils.applySelectionState(this,this._dataColor)};DvtSelectablePath.prototype.ApplySelectingState=function(){DvtSelectionEffectUtils.applySelectingState(this,this._dataColor)};DvtSelectablePath.prototype.showHoverEffect=function(){this.SetSelectionMouseOver(!0)};DvtSelectablePath.prototype.hideHoverEffect=function(){this.SetSelectionMouseOver(!1)};DvtSelectablePath.prototype.isHoverEffectShown=function(){return this._bSelecting};
DvtSelectablePath.prototype.SetSelectionMouseOver=function(a){this.SetSelectionMouseOverSelf(a);if(this._relatedLogicalObjects)for(var b=0;b<this._relatedLogicalObjects.length;b++)this._relatedLogicalObjects[b].SetSelectionMouseOverSelf&&this._relatedLogicalObjects[b].SetSelectionMouseOverSelf(a)};
DvtSelectablePath.prototype.SetSelectionMouseOverSelf=function(a){this._bSelecting!=a&&(this._bSelecting=a,this._bZorder&&(this._bSelecting&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):!this._bSelected&&this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectingState())};DvtSelectablePath.prototype.isSelected=function(){return this._bSelected};
DvtSelectablePath.prototype.setSelected=function(a){this.SetSelectedSelf(a);if(this._relatedLogicalObjects)for(var b=0;b<this._relatedLogicalObjects.length;b++)this._relatedLogicalObjects[b].SetSelectedSelf&&this._relatedLogicalObjects[b].SetSelectedSelf(a)};
DvtSelectablePath.prototype.SetSelectedSelf=function(a){this._bSelected!=a&&(this._bSelected=a,this._bZorder&&(this._bSelected&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):!this._bSelecting&&this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectionState())};DvtSelectablePath.prototype.addRelatedObject=function(a){this._relatedLogicalObjects||(this._relatedLogicalObjects=[]);this._relatedLogicalObjects.push(a)};
DvtSelectablePath.prototype.setSelectedShadow=function(a){this._bSelectedShadow=a};DvtSelectablePath.prototype.setDataColor=function(a){this._dataColor=a};DvtSelectablePath.prototype.setZorder=function(a){this._bZorder=a};DvtSelectablePath.prototype.setZOrderManager=function(a){this._zOrderManager=a};var DvtSelectablePolygon=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtSelectablePolygon,DvtPolygon,"DvtSelectablePolygon");
DvtSelectablePolygon.prototype.Init=function(a,b,d){DvtSelectablePolygon.superclass.Init.call(this,a,b,d);this._dataColor="#000000";this._bSelecting=this._bSelected=!1;this._selectionEffects=null;this._bSelectedShadow=!0;this._savedStroke=null;this._bSavedStroke=!1;this._applyStrokeTimer=this._relatedLogicalObjects=null;this._bZorder=!0;this._zOrderManager=null;this._selectionType=DvtSelectionEffectUtils.DEFAULT_SEL_TYPE};
DvtSelectablePolygon.prototype.ApplySelectionState=function(){DvtSelectionEffectUtils.applySelectionState(this,this._dataColor)};DvtSelectablePolygon.prototype.ApplySelectingState=function(){DvtSelectionEffectUtils.applySelectingState(this,this._dataColor)};DvtSelectablePolygon.prototype.showHoverEffect=function(){this.SetSelectionMouseOver(!0)};DvtSelectablePolygon.prototype.hideHoverEffect=function(){this.SetSelectionMouseOver(!1)};DvtSelectablePolygon.prototype.isHoverEffectShown=function(){return this._bSelecting};
DvtSelectablePolygon.prototype.SetSelectionMouseOver=function(a){this.SetSelectionMouseOverSelf(a);if(this._relatedLogicalObjects)for(var b=0;b<this._relatedLogicalObjects.length;b++)this._relatedLogicalObjects[b].SetSelectionMouseOverSelf&&this._relatedLogicalObjects[b].SetSelectionMouseOverSelf(a)};
DvtSelectablePolygon.prototype.SetSelectionMouseOverSelf=function(a){this._bSelecting!=a&&(this._bSelecting=a,this._bZorder&&(this._bSelecting&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):!this._bSelected&&this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectingState())};DvtSelectablePolygon.prototype.isSelected=function(){return this._bSelected};
DvtSelectablePolygon.prototype.setSelected=function(a){this.SetSelectedSelf(a);if(this._relatedDetObjects)for(var b=0;b<this._relatedDetObjects.length;b++)this._relatedDetObjects[b].SetSelectedSelf&&this._relatedDetObjects[b].SetSelectedSelf(a)};
DvtSelectablePolygon.prototype.SetSelectedSelf=function(a){this._bSelected!=a&&(this._bSelected=a,this._bZorder&&(this._bSelected&&this._zOrderManager?this._zOrderManager.bringToFrontOfSelection(this):!this._bSelecting&&this._zOrderManager&&this._zOrderManager.pushToBackOfSelection(this)),this.ApplySelectionState())};DvtSelectablePolygon.prototype.addRelatedObject=function(a){this._relatedLogicalObjects||(this._relatedLogicalObjects=[]);this._relatedLogicalObjects.push(a)};
DvtSelectablePolygon.prototype.setSelectedShadow=function(a){this._bSelectedShadow=a};DvtSelectablePolygon.prototype.setDataColor=function(a){this._dataColor=a};DvtSelectablePolygon.prototype.setZorder=function(a){this._bZorder=a};DvtSelectablePolygon.prototype.setZOrderManager=function(a){this._zOrderManager=a};var DvtStyleUtils=function(){};DvtObj.createSubclass(DvtStyleUtils,DvtObj,"DvtStyleUtils");DvtStyleUtils.DEFAULT_FONT_FAMILY="Tahoma,Verdana,Helvetica,sans-serif";
DvtStyleUtils.DEFAULT_FONT_SIZE="11";DvtStyleUtils.DEFAULT_FONT_COLOR="black";DvtStyleUtils.AFStretchWidth_STYLE_CLASS="AFStretchWidth";DvtStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS="AFAuxiliaryStretchWidth";DvtStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS="AFHVNodeTitleLabelStyle";DvtStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS="AFHVNodeSubtitleLabelStyle";DvtStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS="AFHVNodeLabelStyle";DvtStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS="AFHVPanelCardLabelStyle";
DvtStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS="AFHVNodeTitleLabelStyle75";DvtStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS="AFHVNodeSubtitleLabelStyle75";DvtStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS="AFHVNodeLabelStyle75";DvtStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS="AFHVPanelCardLabelStyle75";DvtStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS="AFHVNodeTitleLabelStyle50";DvtStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS="AFHVNodeSubtitleLabelStyle50";
DvtStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS="AFHVNodeLabelStyle50";DvtStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS="AFHVNodeLabelStyle25";
DvtStyleUtils.getTagSkinKeyMap=function(){void 0===DvtStyleUtils._tagSkinKeyMap&&(DvtStyleUtils._tagSkinKeyMap={cb:"af_commandButton,af_commandButton_icon-style,af_commandButton_text-by-icon-style,af_commandButton_active,af_commandButton_hover,af_commandButton.p_AFDisabled".split(","),cil:"af_commandImageLink,af_commandImageLink_image,af_commandImageLink_text,af_commandImageLink_active,af_commandImageLink_hover,af_commandImageLink.p_AFDisabled".split(","),cl:["af_commandLink","af_commandLink_active",
"af_commandLink_hover","af_commandLink.p_AFDisabled"],cmi:"af_commandMenuItem,af_commandMenuItem_menu-item,af_commandMenuItem_menu-item-icon-style,af_commandMenuItem_menu-item-text,af_commandMenuItem.p_AFHighlighted_menu-item-text,af_commandMenuItem.p_AFDisabled".split(","),gb:"af_goButton,af_goButton_icon-style,af_goButton_text-by-icon-style,af_goButton_active,af_goButton_hover,af_goButton.p_AFDisabled".split(","),gl:["af_goLink","af_goLink_active","af_goLink_hover","af_goLink.p_AFDisabled"],i:["af_image"],
m:"af_menu,af_menu_bar-item,af_menu_bar-item-icon-style,af_menu_bar-item-text,af_menu_bar-item-open-icon-style,af_menu_bar-item.p_AFDepressed,af_menu_bar-item.p_AFHighlighted,af_menu.p_AFDisabled".split(","),pfl:["af_panelFormLayout","AFPanelFormLayoutContentCell","af_panelFormLayout_label-cell"],pgl:["af_panelGroupLayout"],plm:["af_panelLabelAndMessage","af_panelLabelAndMessage_label","af_panelLabelAndMessage_content-cell"],se:["af_separator"],lk:"af_link,af_link_image,af_link_text,af_link_image-hover,af_link_image-depressed,af_link_active,af_link_hover,af_link.p_AFDisabled".split(","),
bt:"af_button,af_button_image,af_button_text,af_button_image-hover,af_button_image-depressed,af_button_link,af_button_leading-text,af_button_depressed,af_button_hover,af_button.p_AFDisabled".split(",")});return DvtStyleUtils._tagSkinKeyMap};
DvtStyleUtils.setTagSkinKeyMap=function(a,b){if(b&&0<b.length&&void 0===DvtStyleUtils._styleMap){for(var d={},e=0;e<b.length;e++){var g=b[e];g.name&&void 0!=g.value&&(d[g.name]=new DvtCSSStyle(g.value))}DvtStyleUtils._styleMap=d}if(a&&0<a.length&&void 0===DvtStyleUtils._tagSkinKeyMap){d={};for(e=0;e<a.length;e++){var h=a[e];if(h.name&&void 0!==h.value&&(g=h.value.split(","),d[h.name]=g,!DvtStyleUtils._styleMap))for(h=0;h<g.length;h++);}DvtStyleUtils._tagSkinKeyMap=d}};
DvtStyleUtils.getDefaultButtonDisabledStyle=function(){return new DvtCSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};DvtStyleUtils.getDefaultCommandButtonDisabledStyle=function(){new DvtCSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};
DvtStyleUtils.getDefaultGoButtonDisabledStyle=function(){return new DvtCSSStyle("color:#6E7587;border-style:solid;border-width:1px;border-color:#9297A6;border-top:1px solid #D5D5D5;border-right:1px solid #D5D5D5;border-bottom:1px solid #D5D5D5;border-left:1px solid #D5D5D5;background-image:-moz-linear-gradient(top, #F4F4F4 0%, #E5E5E5 100%)")};DvtStyleUtils.getDefaultLinkDisabledStyle=function(){return new DvtCSSStyle("color:#8E97AF")};DvtStyleUtils.getDefaultCommandLinkDisabledStyle=function(){new DvtCSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};
DvtStyleUtils.getDefaultCommandImageLinkDisabledStyle=function(){new DvtCSSStyle("color:#8E97AF")};DvtStyleUtils.getDefaultGoLinkDisabledStyle=function(){return new DvtCSSStyle("text-decoration:none;cursor:default;color:#8E97AF")};
DvtStyleUtils.getStyleMap=function(){if(!DvtStyleUtils._styleMap){var a={};a.af_panelGroupLayout=new DvtCSSStyle("");a.af_image=new DvtCSSStyle("border:0px");a.af_separator=new DvtCSSStyle("border-bottom:1px solid #D6DFE6;margin-top:3px;margin-bottom:3px;border-top:0px;border-left:0px;border-right:0px");a.af_panelFormLayout=new DvtCSSStyle("");a.AFPanelFormLayoutContentCell=new DvtCSSStyle("padding-left:8px;padding-right:0px;text-align:left;font-family:Tahoma, Verdana, Helvetica, sans-serif;vertical-align:top;padding-top:2px;padding-bottom:0px;padding:1px 0 0 2px");
a["af_panelFormLayout_label-cell"]=new DvtCSSStyle("padding:0px 6px 0px 0px;padding-left:8px;padding-right:0px;text-align:right;padding-top:3px;padding-bottom:1px;white-space:nowrap");a.af_panelLabelAndMessage=new DvtCSSStyle("");a.af_panelLabelAndMessage_label=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-size:11px;text-align:right;color:#4F4F4F;padding:0px 6px 0px 0px;font-weight:normal");a.af_commandButton=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);text-decoration:none;white-space:nowrap;margin:0px;padding-top:1px;padding-bottom:3px;padding:1px 1px 0px 2px;padding-left:6px;padding-right:6px");
a["af_commandButton_icon-style"]=new DvtCSSStyle("vertical-align:middle;border-width:0px;padding-left:0px;padding-right:0px");a["af_commandButton_text-by-icon-style"]=new DvtCSSStyle("padding-left:3px");a.af_commandButton_active=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_commandButton_hover=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_commandButton.p_AFDisabled"]=DvtStyleUtils.getDefaultCommandButtonDisabledStyle();a.af_commandLink=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none");
a.af_commandLink_hover=new DvtCSSStyle("text-decoration:underline");a.af_commandLink_active=new DvtCSSStyle("color:#72007C");a["af_commandLink.p_AFDisabled"]=DvtStyleUtils.getDefaultCommandLinkDisabledStyle();a.af_commandImageLink=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none;white-space:nowrap");a.af_commandImageLink_image=new DvtCSSStyle("border:none;vertical-align:middle;display:inline");a.af_commandImageLink_text=
new DvtCSSStyle("margin-left:3px");a.af_commandImageLink_hover=new DvtCSSStyle("text-decoration:underline");a.af_commandImageLink_active=new DvtCSSStyle("color:#72007C");a["af_commandImageLink.p_AFDisabled"]=DvtStyleUtils.getDefaultCommandImageLinkDisabledStyle();a.af_goButton=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);text-decoration:none;white-space:nowrap;margin:0px;padding-top:1px;padding-bottom:3px;padding:1px 1px 0px 2px;padding-left:6px;padding-right:6px");
a["af_goButton_icon-style"]=new DvtCSSStyle("vertical-align:middle;border-width:0px;padding-left:0px;padding-right:0px");a["af_goButton_text-by-icon-style"]=new DvtCSSStyle("padding-left:3px");a.af_goButton_active=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_goButton_hover=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_goButton.p_AFDisabled"]=DvtStyleUtils.getDefaultGoButtonDisabledStyle();a.af_goLink=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none");
a.af_goLink_hover=new DvtCSSStyle("text-decoration:underline");a.af_goLink_active=new DvtCSSStyle("color:#72007C");a["af_goLink.p_AFDisabled"]=DvtStyleUtils.getDefaultGoLinkDisabledStyle();a.af_link=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#003286;text-decoration:none;white-space:nowrap");a.af_link_image=new DvtCSSStyle("border:none;vertical-align:middle;display:inline");a.af_link_text=new DvtCSSStyle("margin-left:3px");a["af_link_image-hover"]=
new DvtCSSStyle("border:none;vertical-align:middle;display:none");a["af_link_image-depressed"]=new DvtCSSStyle("border:none;vertical-align:middle;display:none");a.af_link_active=new DvtCSSStyle("color:#72007C");a.af_link_hover=new DvtCSSStyle("text-decoration:underline");a["af_link.p_AFDisabled"]=DvtStyleUtils.getDefaultLinkDisabledStyle();a.af_button=new DvtCSSStyle("display:inline-block;padding:0px;cursor:default;white-space:nowrap;min-height:19px;border-top:1px solid #95B6D4;border-right:1px solid #95B6D4;border-bottom:1px solid #92B3D1;border-left:1px solid #95B6D4;border-radius:3px;background-image:-moz-linear-gradient(top, #CCE2F6 0%, #B1D2F2 100%);font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333");
a.af_button_image=new DvtCSSStyle("vertical-align:middle;border:0px transparent;display:inline");a.af_button_text=new DvtCSSStyle("white-space:nowrap;text-decoration:none;padding-left:3px;padding-right:0px;min-height:15px;display:inline-block;vertical-align:middle;line-height:1em;color:inherit");a["af_button_image-hover"]=new DvtCSSStyle("vertical-align:middle;border:0px transparent;display:none");a["af_button_image-depressed"]=new DvtCSSStyle("vertical-align:middle;border:0px transparent;display:none");
a.af_button_link=new DvtCSSStyle("text-decoration:none;cursor:default;display:block;white-space:nowrap;padding:2px 9px 1px 9px;color:inherit");a["af_button_leading-text"]=new DvtCSSStyle("white-space:nowrap;text-decoration:none;padding-left:0px;padding-right:3px");a.af_button_depressed=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #648BAF;border-right:1px solid #789FC4;border-bottom:1px solid #789FC4;border-left:1px solid #789FC4;background-image:-moz-linear-gradient(top, #6AA1D5 0%, #ACCAE6 100%)");
a.af_button_hover=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;border-top:1px solid #E2CB9B;border-right:1px solid #E2CB9B;border-bottom:1px solid #D4BB87;border-left:1px solid #E2CB9B;background-image:-moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%)");a["af_button.p_AFDisabled"]=DvtStyleUtils.getDefaultButtonDisabledStyle();a.af_menu=new DvtCSSStyle("");a["af_menu_bar-item"]=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;cursor:default;white-space:nowrap;height:17px;padding:3px 1px 1px 1px;border-radius:3px");
a["af_menu_bar-item-icon-style"]=new DvtCSSStyle("padding-left:3px;padding-right:0px");a["af_menu_bar-item-text"]=new DvtCSSStyle("min-height:16px;display:block;padding:0px 0px 0px 5px;white-space:nowrap;cursor:default;text-decoration:none;color:#000000;padding-left:5px;padding-right:0px");a["af_menu_bar-item-open-icon-style"]=new DvtCSSStyle("background-repeat:no-repeat;height:7px;background-image:url(/afr/skyros-v1/menu_l23_button_dropdown_ena.png);background-position:center bottom;width:9px;padding-left:3px;padding-right:3px");
a.af_commandMenuItem=new DvtCSSStyle("");a["af_commandMenuItem_menu-item"]=new DvtCSSStyle("font-family:Tahoma, Verdana, Helvetica, sans-serif;font-weight:normal;font-size:11px;color:#333333;height:21px;background-color:transparent");a["af_commandMenuItem_menu-item-icon-style"]=new DvtCSSStyle("background-image:none;padding:0px;cursor:default;text-decoration:none;background-color:transparent;text-align:center;width:21px;border-top:none;border-bottom:none");a["af_commandMenuItem_menu-item-text"]=new DvtCSSStyle("background-color:#FFFFFF;background-image:none;cursor:default;text-decoration:none;white-space:nowrap;color:#000000;padding:0px 10px 0px 0px;border-top:none;border-bottom:none");
a["af_commandMenuItem.p_AFHighlighted_menu-item-text"]=new DvtCSSStyle("border-top:none;border-bottom:none;background-color:#C1E6FF");DvtStyleUtils._styleMap=a}return DvtStyleUtils._styleMap};DvtStyleUtils._getTextAlignAttr=function(a){return DvtStyleUtils.isLocaleR2L()?a?"text-align:left":"text-align:right":a?"text-align:right":"text-align:left"};DvtStyleUtils.getBackgroundPositionAttr=function(){return DvtStyleUtils.isLocaleR2L()?"background-position:right bottom":"background-position:left bottom"};
DvtStyleUtils.getDefaultCSSStyle=function(a){var b=[];if(a){var d=DvtStyleUtils.getTagSkinKeyMap()[a],e=DvtStyleUtils.getStyleMap();if(d&&0<d.length&&e)for(var g=0;g<d.length;g++){var h=d[g];h&&e[h]?b.push(e[h]):b.push(new DvtCSSStyle)}if("pc"==a)return DvtStyleUtils._panelCardMap||(DvtStyleUtils._panelCardMap=[],a=new DvtCSSStyle,a.setStyle(DvtCSSStyle.FONT_FAMILY,DvtStyleUtils.DEFAULT_FONT_FAMILY),a.setStyle(DvtCSSStyle.FONT_WEIGHT,"bold"),a.setStyle(DvtCSSStyle.FONT_SIZE,"20"),a.setColor(DvtCSSStyle.COLOR,
"#5A6A7A"),a.setStyle(DvtCSSStyle.PADDING,"4"),a.setStyle(DvtCSSStyle.FILL_TYPE,"gradient"),a.setStyle(DvtCSSStyle.BORDER_TYPE,"gradient"),a.setColor(DvtCSSStyle.BACKGROUND_COLOR,"#E0EAEB"),a.setStyle(DvtCSSStyle.BORDER_WIDTH,"1"),a.setColor(DvtCSSStyle.BORDER_COLOR,"#98ABBC"),DvtStyleUtils._panelCardMap.push(a)),DvtStyleUtils._panelCardMap}return b};DvtStyleUtils.getStyleClass=function(a){var b=DvtStyleUtils.getStyleMap();return b&&a&&b[a]?b[a]:""};
DvtStyleUtils.getDefaultTextStyle=function(){var a;a=new DvtCSSStyle;a.setStyle(DvtCSSStyle.FONT_FAMILY,DvtStyleUtils.DEFAULT_FONT_FAMILY);a.setStyle(DvtCSSStyle.FONT_SIZE,DvtStyleUtils.DEFAULT_FONT_SIZE+"px");a.setStyle(DvtCSSStyle.COLOR,"black");return a};
DvtStyleUtils.getAFStretchWidthStyle=function(a){return DvtStyleUtils.AFStretchWidth_STYLE_CLASS==a||DvtStyleUtils.AFAuxiliaryStretchWidth_STYLE_CLASS==a?(DvtStyleUtils._afStretchWidth||(DvtStyleUtils._afStretchWidth=new DvtCSSStyle,DvtStyleUtils._afStretchWidth.setStyle(DvtCSSStyle.WIDTH,"100%")),DvtStyleUtils._afStretchWidth):null};
DvtStyleUtils.getPLAMLabelStyle=function(a){if(a){if(-1<a.indexOf(DvtStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeTitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeSubtitleLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeLabelStyle75_STYLE_CLASS);
if(-1<a.indexOf(DvtStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVPanelCardLabelStyle75_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeTitleLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeSubtitleLabelStyle50_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeLabelStyle50_STYLE_CLASS);
if(-1<a.indexOf(DvtStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeLabelStyle25_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeTitleLabelStyle_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeSubtitleLabelStyle_STYLE_CLASS);if(-1<a.indexOf(DvtStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVNodeLabelStyle_STYLE_CLASS);
if(-1<a.indexOf(DvtStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS))return DvtStyleUtils.getStyleClass(DvtStyleUtils.AFHVPanelCardLabelStyle_STYLE_CLASS)}return null};DvtStyleUtils.isLocaleR2L=function(){return DvtAgent.getAgent().isRightToLeft()};DvtStyleUtils.cloneStyles=function(a){var b=[];if(a&&0<a.length)for(var d=0;d<a.length;d++)b.push(a[d].clone());return b};DvtStyleUtils.setPanelCardDefault=function(a){DvtStyleUtils._panelCardMap=a};var DvtCSSGradient=function(a){this.Init(a)};
DvtObj.createSubclass(DvtCSSGradient,DvtObj,"DvtCSSGradient");DvtCSSGradient.LINEAR=0;DvtCSSGradient.RADIAL=1;DvtCSSGradient.prototype.Init=function(a){this._type=a};DvtCSSGradient.prototype.getGradientType=function(){return this._type};DvtCSSGradient.prototype.getAlphas=function(){return this._arAlphas};DvtCSSGradient.prototype.setAlphas=function(a){this._arAlphas=a};DvtCSSGradient.prototype.getColors=function(){return this._arColors};
DvtCSSGradient.prototype.setColors=function(a){this._arColors=a};DvtCSSGradient.prototype.getRatios=function(){return this._arRatios};DvtCSSGradient.prototype.setRatios=function(a){this._arRatios=a};var DvtLinearGradient=function(){this.Init()};DvtObj.createSubclass(DvtLinearGradient,DvtCSSGradient,"DvtLinearGradient");DvtLinearGradient.ANGLE=0;DvtLinearGradient.TOP_LEFT=1;DvtLinearGradient.TOP_RIGHT=2;DvtLinearGradient.BOTTOM_LEFT=3;DvtLinearGradient.BOTTOM_RIGHT=4;DvtLinearGradient.LEFT=180;
DvtLinearGradient.BOTTOM=90;DvtLinearGradient.RIGHT=0;DvtLinearGradient.TOP=270;DvtLinearGradient.prototype.Init=function(a){DvtLinearGradient.superclass.Init.call(this,a)};DvtLinearGradient.prototype.getDirection=function(){return this._direction};DvtLinearGradient.prototype.setDirection=function(a){this._direction=a};
DvtLinearGradient.prototype.getAngle=function(){switch(this._direction){case DvtLinearGradient.ANGLE:return this._angle;case DvtLinearGradient.TOP_LEFT:return Math.atan2(-hh,ww);case DvtLinearGradient.TOP_RIGHT:return Math.atan2(-hh,-ww);case DvtLinearGradient.BOTTOM_LEFT:return Math.atan2(hh,ww);case DvtLinearGradient.BOTTOM_RIGHT:return Math.atan2(hh,-ww)}return DvtLinearGradient.TOP};DvtLinearGradient.prototype.setAngle=function(a){this._angle=a;this._direction=DvtLinearGradient.ANGLE};
var DvtGradientParser=function(){};DvtObj.createSubclass(DvtGradientParser,DvtObj,"DvtGradientParser");DvtGradientParser.WEBKIT_GD_LINEAR="-webkit-linear-gradient";DvtGradientParser.FIREFOX_GD_LINEAR="-moz-linear-gradient";DvtGradientParser.IE_GD_LINEAR="progid:DXImageTransform.Microsoft.gradient";DvtGradientParser.IE_GD_LINEAR2="progid:DXImageTransform.Microsoft.Gradient";DvtGradientParser.IE7_GD_FILTER="filter";DvtGradientParser.IE8_GD_FILTER="-ms-filter";
DvtGradientParser.IE_GD_START_COLOR_STR="startColorstr";DvtGradientParser.IE_GD_END_COLOR_STR="endColorstr";DvtGradientParser.IE_GD_GRADIENT_TYPE="GradientType";DvtGradientParser.OLD_WEBKIT_GD_LINEAR="-webkit-gradient";DvtGradientParser.GD_LINEAR="linear-gradient";DvtGradientParser.GD_RADIAL="radial-gradient";DvtGradientParser.GD_TOP="top";DvtGradientParser.GD_BOTTOM="bottom";DvtGradientParser.GD_LEFT="left";DvtGradientParser.GD_RIGHT="right";DvtGradientParser.GD_CENTER="center";
DvtGradientParser.parseCSSGradient=function(a){if(null!=a){a=DvtStringUtils.trim(a);if(DvtGradientParser._startsWith(a,DvtGradientParser.WEBKIT_GD_LINEAR))return a=DvtGradientParser._removeParethesis(a,DvtGradientParser.WEBKIT_GD_LINEAR),DvtGradientParser._parseLinearGradient(a);if(DvtGradientParser._startsWith(a,DvtGradientParser.FIREFOX_GD_LINEAR))return a=DvtGradientParser._removeParethesis(a,DvtGradientParser.FIREFOX_GD_LINEAR),DvtGradientParser._parseLinearGradient(a);if(DvtGradientParser._startsWith(a,
DvtGradientParser.IE_GD_LINEAR))return a=DvtGradientParser._removeParethesis(a,DvtGradientParser.IE_GD_LINEAR),DvtGradientParser._parseIELinearGradient(a);if(DvtGradientParser._startsWith(a,DvtGradientParser.IE_GD_LINEAR2))return a=DvtGradientParser._removeParethesis(a,DvtGradientParser.IE_GD_LINEAR2),DvtGradientParser._parseIELinearGradient(a);if(DvtGradientParser._startsWith(a,DvtGradientParser.GD_LINEAR))return a=DvtGradientParser._removeParethesis(a,DvtGradientParser.GD_LINEAR),DvtGradientParser._parseLinearGradient(a)}return null};
DvtGradientParser._parseLinearGradient=function(a){var b=a.match(/(([0-9]+)(deg|rad|grad)|\s*(to\s+)?((left|right|center)\s+)?(top|bottom)?\s*,\s*)?/i);if(null==b||0==b.length)return null;var d=new DvtLinearGradient(DvtCSSGradient.LINEAR);if(b[7]==DvtGradientParser.GD_TOP)b[6]==DvtGradientParser.GD_LEFT?d.setDirection(DvtLinearGradient.TOP_LEFT):b[6]==DvtGradientParser.GD_RIGHT?d.setDirection(DvtLinearGradient.TOP_RIGHT):d.setAngle(DvtLinearGradient.TOP);else if(b[7]==DvtGradientParser.GD_BOTTOM)b[6]==
DvtGradientParser.GD_LEFT?d.setDirection(DvtLinearGradient.BOTTOM_LEFT):b[6]==DvtGradientParser.GD_RIGHT?d.setDirection(DvtLinearGradient.BOTTOM_RIGHT):d.setAngle(DvtLinearGradient.BOTTOM);else if(b[6]==DvtGradientParser.GD_LEFT)d.setAngle(DvtLinearGradient.LEFT);else if(b[6]==DvtGradientParser.GD_RIGHT)d.setAngle(DvtLinearGradient.RIGHT);else if(null!=b[2]||void 0!==b[2]){var e=parseFloat(b[2]);isNaN(e)||("grad"==b[3]?e=e/200*Math.PI:"radians"==b[3]&&(e=e/180*Math.PI),d.setAngle(e))}a=a.substring(b[0].length);
DvtGradientParser._parseCSSColorStops(a,d);return d};
DvtGradientParser._parseIELinearGradient=function(a){var a=a.split(","),b=a.length,d,e=[],g=new DvtLinearGradient(DvtCSSGradient.LINEAR);g.setAngle(DvtLinearGradient.TOP);for(var h=0;h<b;h++)d=DvtStringUtils.trim(a[h]).split("="),2==d.length&&(d[0]=DvtStringUtils.trim(d[0]),d[0]==DvtGradientParser.IE_GD_START_COLOR_STR?e[0]=DvtGradientParser.removeQuotes(d[1],DvtCSSStyle.SINGLE_QUOTE):d[0]==DvtGradientParser.IE_GD_END_COLOR_STR?e[1]=DvtGradientParser.removeQuotes(d[1],DvtCSSStyle.SINGLE_QUOTE):d[0]==
DvtGradientParser.IE_GD_GRADIENT_TYPE&&"1"==d[1]&&g.setAngle(DvtLinearGradient.LEFT));DvtGradientParser._parseColorStops(e,g);return g};DvtGradientParser._parseCSSColorStops=function(a,b){var d=a.match(/(#[0-9a-f]+|rgb\(\s*(\d+),\s*(\d+),\s*(\d+)\s*\)|rgba\(\s*(\d+),\s*(\d+),\s*(\d+),\s*(\d+)(\.\d+)?\s*\)|[a-z]+)(\s+\d+%)?/gi);null!=d&&0<d.length&&DvtGradientParser._parseColorStops(d,b)};
DvtGradientParser._parseColorStops=function(a,b){for(var d=a.length,e=[],g=[],h=[],k,m=!0,n,o=[],q=0;q<a.length;q++)n=DvtCSSStyle.parseBorderColor(a[q],o),k=o.pop(),g[q]=k,e[q]=DvtColorUtils.getAlpha(k),n=DvtStringUtils.trim(n),0<n.length&&(k=parseFloat(n),!isNaN(k)&&DvtStringUtils.endsWith(n,"%")&&(h[q]=k/100,m=!1));if(1<d&&m)for(m=0;m<d;m++)h[m]=m/(d-1);else m&&(h[0]=0);b.setColors(g);b.setAlphas(e);b.setRatios(h)};
DvtGradientParser._removeParethesis=function(a,b){if(")"!=a.charAt(a.length-1))return null;a=a.substring(b.length);return DvtGradientParser.removeQuotes(a,"(",")")};DvtGradientParser.removeQuotes=function(a,b,d){a=DvtStringUtils.trim(a);if(a.charAt(0)!=b)return a;null==d&&(d=b);b=a.lastIndexOf(d);return 0>b?a.substring(1):a.substring(1,b)};DvtGradientParser._startsWith=function(a,b){return 0==a.indexOf(b)};var DvtCSSStyle=function(a){this.Init(a)};DvtObj.createSubclass(DvtCSSStyle,DvtObj,"DvtCSSStyle");
DvtCSSStyle._attrs="background-color,background-image,background-repeat,background-position,border,border-top,border-bottom,border-left,border-right,border-color,border-top-color,border-bottom-color,border-left-color,border-right-color,border-width,border-top-width,border-bottom-width,border-left-width,border-right-width,border-style,border-top-style,border-bottom-style,border-left-style,border-right-style,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,box-sizing,padding,padding-top,padding-bottom,padding-left,padding-right,margin,margin-top,margin-bottom,margin-left,margin-right,color,font-family,font-size,font-style,font-weight,text-align,text-decoration,height,width,-tr-outer-color,-tr-inner-color,fill-type,border-type".split(",");
DvtCSSStyle.BACKGROUND_COLOR="background-color";DvtCSSStyle.BACKGROUND_IMAGE="background-image";DvtCSSStyle.BACKGROUND_REPEAT="background-repeat";DvtCSSStyle.BACKGROUND_POSITION="background-position";DvtCSSStyle.BORDER="border";DvtCSSStyle.BORDER_TOP="border-top";DvtCSSStyle.BORDER_BOTTOM="border-bottom";DvtCSSStyle.BORDER_LEFT="border-left";DvtCSSStyle.BORDER_RIGHT="border-right";DvtCSSStyle.BORDER_WIDTH="border-width";DvtCSSStyle.BORDER_TOP_WIDTH="border-top-width";
DvtCSSStyle.BORDER_BOTTOM_WIDTH="border-bottom-width";DvtCSSStyle.BORDER_LEFT_WIDTH="border-left-width";DvtCSSStyle.BORDER_RIGHT_WIDTH="border-right-width";DvtCSSStyle.BORDER_COLOR="border-color";DvtCSSStyle.BORDER_TOP_COLOR="border-top-color";DvtCSSStyle.BORDER_BOTTOM_COLOR="border-bottom-color";DvtCSSStyle.BORDER_LEFT_COLOR="border-left-color";DvtCSSStyle.BORDER_RIGHT_COLOR="border-right-color";DvtCSSStyle.BORDER_RADIUS="border-radius";DvtCSSStyle.BORDER_TOP_LEFT_RADIUS="border-top-left-radius";
DvtCSSStyle.BORDER_TOP_RIGHT_RADIUS="border-top-right-radius";DvtCSSStyle.BORDER_BOTTOM_RIGHT_RADIUS="border-bottom-right-radius";DvtCSSStyle.BORDER_BOTTOM_LEFT_RADIUS="border-bottom-left-radius";DvtCSSStyle.MARGIN="margin";DvtCSSStyle.MARGIN_TOP="margin-top";DvtCSSStyle.MARGIN_BOTTOM="margin-bottom";DvtCSSStyle.MARGIN_LEFT="margin-left";DvtCSSStyle.MARGIN_RIGHT="margin-right";DvtCSSStyle.PADDING="padding";DvtCSSStyle.PADDING_TOP="padding-top";DvtCSSStyle.PADDING_BOTTOM="padding-bottom";
DvtCSSStyle.PADDING_LEFT="padding-left";DvtCSSStyle.PADDING_RIGHT="padding-right";DvtCSSStyle.COLOR="color";DvtCSSStyle.FONT_FAMILY="font-family";DvtCSSStyle.FONT_SIZE="font-size";DvtCSSStyle.FONT_STYLE="font-style";DvtCSSStyle.FONT_WEIGHT="font-weight";DvtCSSStyle.TEXT_DECORATION="text-decoration";DvtCSSStyle.TEXT_ALIGN="text-align";DvtCSSStyle.BORDER_BOX="border-box";DvtCSSStyle.CONTENT_BOX="content-box";DvtCSSStyle.HEIGHT="height";DvtCSSStyle.WIDTH="width";DvtCSSStyle.NONE="none";
DvtCSSStyle.NO_REPEAT="no-repeat";DvtCSSStyle.REPEAT="repeat";DvtCSSStyle.REPEAT_X="repeat-x";DvtCSSStyle.REPEAT_Y="repeat-y";DvtCSSStyle.AUTO="auto";DvtCSSStyle.AUTO_MARGIN="8";DvtCSSStyle.BORDER_TYPE="border-type";DvtCSSStyle.FILL_TYPE="fill-type";DvtCSSStyle.SpFontSizeMap={"xx-small":"9","x-small":"10",small:"13",medium:"16",large:"18","x-large":"24","xx-large":"32"};DvtCSSStyle.SpWidthMap={thin:"2",medium:"4",thick:"6"};
DvtCSSStyle.SpColorMap={aqua:"#00FFFF",black:"#000000",blue:"#0000FF",white:"#FFFFFF",fuchsia:"#FF00FF",gray:"#848284",lime:"#00FF00",maroon:"#840000",green:"#008200",navy:"#000084",olive:"#848200",red:"#FF0000",silver:"#C6C3C6",teal:"#008284",yellow:"#FFFF00",purple:"#800080",cyan:"#D2B48C",goldenrod:"#DAA520",lightblue:"#ADD8E6",lightyellow:"#FFFFE0",orange:"#FFA500",paleGoldenRod:"#EEE8AA",paleturquoise:"#AFEEEE",peachpuff:"#FFDAB9",pink:"#FFC0CB",tan:"#D2B48C",thistle:"#D8BFD8",transparent:"#00FFFFFF"};
DvtCSSStyle._numericAttrsList=[DvtCSSStyle.WIDTH,DvtCSSStyle.HEIGHT,DvtCSSStyle.BORDER_WIDTH,DvtCSSStyle.BORDER_TOP_WIDTH,DvtCSSStyle.BORDER_BOTTOM_WIDTH,DvtCSSStyle.BORDER_LEFT_WIDTH,DvtCSSStyle.BORDER_RIGHT_WIDTH,DvtCSSStyle.MARGIN,DvtCSSStyle.MARGIN_TOP,DvtCSSStyle.MARGIN_BOTTOM,DvtCSSStyle.MARGIN_LEFT,DvtCSSStyle.MARGIN_RIGHT,DvtCSSStyle.PADDING,DvtCSSStyle.PADDING_TOP,DvtCSSStyle.PADDING_BOTTOM,DvtCSSStyle.PADDING_LEFT,DvtCSSStyle.PADDING_RIGHT];DvtCSSStyle.DOUBLE_QUOTE='"';
DvtCSSStyle.SINGLE_QUOTE="'";DvtCSSStyle.prototype.Init=function(a){this.parseInlineStyle(a)};DvtCSSStyle.prototype.parseInlineStyle=function(a){if(a&&0<a.length)for(var a=a.split(";"),b,d,e,g=0;g<a.length;g++)if((b=a[g])&&0<b.length)d=b.indexOf(":"),-1<d&&(e=DvtStringUtils.trim(b.substring(0,d)),b=DvtStringUtils.trim(b.substring(d+1)),e&&0<e.length&&b&&0<b.length&&this.setCSSStyle(e,b))};
DvtCSSStyle.prototype.setCSSStyle=function(a,b){switch(a){case "background-repeat":this.setBackgroundRepeat(a,b);break;case "color":case "background-color":case "border-top-color":case "border-bottom-color":case "border-left-color":case "border-right-color":this.setColorString(a,b);break;case "border-top":case "border-bottom":case "border-left":case "border-right":this.setBorderSide(a,b);break;case "border":this.setBorderShorthand(a,b);break;case "border-color":this.setBorderColorShorthand(a,b);break;
case "border-width":this.setBorderWidthShorthand(a,b);break;case "border-radius":this.setBorderRadius(a,b);break;case "padding":this.setPaddingShorthand(a,b);break;case "margin":this.setMarginShorthand(a,b);break;case "font-family":this._setFontFamily(a,b);break;case "font-size":this._setFontSize(a,b);break;case "background-image":var d=DvtGradientParser.parseCSSGradient(b);d&&(b=d);this.setStyle(a,b);break;case DvtGradientParser.IE7_GD_FILTER:case DvtGradientParser.IE8_GD_FILTER:d=DvtGradientParser.removeQuotes(b,
DvtCSSStyle.DOUBLE_QUOTE);if(d=DvtGradientParser.parseCSSGradient(d))a=DvtCSSStyle.BACKGROUND_IMAGE,b=d;this.setStyle(a,b);break;default:this.setStyle(a,b)}};DvtCSSStyle.prototype._setFontFamily=function(a,b){this[a]=b};DvtCSSStyle.prototype._setFontSize=function(a,b){var d=DvtStringUtils.trim(b),e=DvtCSSStyle.SpFontSizeMap[d];this[a]=e?""+e+"px":isNaN(parseFloat(d))?DvtCSSStyle.DEFAULT_FONT_SIZE+"px":d};
DvtCSSStyle.prototype.setBorderWidthShorthand=function(a,b){var d=b.split(" "),e=null;switch(d.length){case 1:this[a]=DvtCSSStyle._getBorderWidth(d[0]);delete this[DvtCSSStyle.BORDER_TOP_WIDTH];delete this[DvtCSSStyle.BORDER_BOTTOM_WIDTH];delete this[DvtCSSStyle.BORDER_RIGHT_WIDTH];delete this[DvtCSSStyle.BORDER_LEFT_WIDTH];break;case 2:e=DvtCSSStyle._getBorderWidth(d[0]);this.setStyle(DvtCSSStyle.BORDER_TOP_WIDTH,e);this.setStyle(DvtCSSStyle.BORDER_BOTTOM_WIDTH,e);e=DvtCSSStyle._getBorderWidth(d[1]);
this.setStyle(DvtCSSStyle.BORDER_LEFT_WIDTH,e);this.setStyle(DvtCSSStyle.BORDER_RIGHT_WIDTH,e);break;case 3:this.setStyle(DvtCSSStyle.BORDER_TOP_WIDTH,DvtCSSStyle._getBorderWidth(d[0]));e=DvtCSSStyle._getBorderWidth(d[1]);this.setStyle(DvtCSSStyle.BORDER_LEFT_WIDTH,e);this.setStyle(DvtCSSStyle.BORDER_RIGHT_WIDTH,e);this.setStyle(DvtCSSStyle.BORDER_BOTTOM_WIDTH,DvtCSSStyle._getBorderWidth(d[2]));break;case 4:this.setStyle(DvtCSSStyle.BORDER_TOP_WIDTH,DvtCSSStyle._getBorderWidth(d[0])),this.setStyle(DvtCSSStyle.BORDER_RIGHT_WIDTH,
DvtCSSStyle._getBorderWidth(d[1])),this.setStyle(DvtCSSStyle.BORDER_BOTTOM_WIDTH,DvtCSSStyle._getBorderWidth(d[2])),this.setStyle(DvtCSSStyle.BORDER_LEFT_WIDTH,DvtCSSStyle._getBorderWidth(d[3]))}};DvtCSSStyle._getBorderWidth=function(a){var a=DvtStringUtils.trim(a),b=DvtCSSStyle.SpWidthMap[a];b||(b=isNaN(parseFloat(a))?"0px":a);return b};
DvtCSSStyle.prototype.setBorderSide=function(a,b){for(var d=b.split(" "),e=null,g=!1,h,k=0;k<d.length;k++)if(e=d[k],h=a,0==e.indexOf("rgb")){for(var m=k+1;m<d.length&&!(e+=d[m],k++,-1!=d[m].indexOf(")"));m++);DvtStringUtils.endsWith(a,"-"+DvtCSSStyle.COLOR)||(h=a+"-"+DvtCSSStyle.COLOR);this.setStyle(h,e)}else DvtCSSStyle.isColorVal(e)?(DvtStringUtils.endsWith(a,"-"+DvtCSSStyle.COLOR)||(h=a+"-"+DvtCSSStyle.COLOR),this.setStyle(h,DvtCSSStyle.parseHexColor(e))):DvtCSSStyle.isBorderWidthVal(e)?(DvtStringUtils.endsWith(a,
"-"+DvtCSSStyle.WIDTH)||(h=a+"-"+DvtCSSStyle.WIDTH),this.setStyle(h,e)):"none"==b&&(g=!0);g&&this.setStyle(a+"-"+DvtCSSStyle.WIDTH,"0")};DvtCSSStyle.prototype.getMarginTop=function(){return this._getSideWidth(DvtCSSStyle.MARGIN_TOP,DvtCSSStyle.MARGIN)};DvtCSSStyle.prototype.getMarginRight=function(){return this._getSideWidth(DvtCSSStyle.MARGIN_RIGHT,DvtCSSStyle.MARGIN)};DvtCSSStyle.prototype.getMarginBottom=function(){return this._getSideWidth(DvtCSSStyle.MARGIN_BOTTOM,DvtCSSStyle.MARGIN)};
DvtCSSStyle.prototype.getMarginLeft=function(){return this._getSideWidth(DvtCSSStyle.MARGIN_LEFT,DvtCSSStyle.MARGIN)};DvtCSSStyle.prototype.getBorderTopWidth=function(){return this._getSideWidth(DvtCSSStyle.BORDER_TOP_WIDTH,DvtCSSStyle.BORDER_WIDTH)};DvtCSSStyle.prototype.getBorderRightWidth=function(){return this._getSideWidth(DvtCSSStyle.BORDER_RIGHT_WIDTH,DvtCSSStyle.BORDER_WIDTH)};DvtCSSStyle.prototype.getBorderBottomWidth=function(){return this._getSideWidth(DvtCSSStyle.BORDER_BOTTOM_WIDTH,DvtCSSStyle.BORDER_WIDTH)};
DvtCSSStyle.prototype.getBorderLeftWidth=function(){return this._getSideWidth(DvtCSSStyle.BORDER_LEFT_WIDTH,DvtCSSStyle.BORDER_WIDTH)};
DvtCSSStyle.prototype.getBorderWidth=function(){var a=this.getStyle(DvtCSSStyle.BORDER_WIDTH);if(a||(a=this.getStyle(DvtCSSStyle.BORDER_TOP_WIDTH)))return DvtCSSStyle.toNumber(a);if(a=this.getStyle(DvtCSSStyle.BORDER_RIGHT_WIDTH))return DvtCSSStyle.toNumber(a);if(a=this.getStyle(DvtCSSStyle.BORDER_BOTTOM_WIDTH))return DvtCSSStyle.toNumber(a);return(a=this.getStyle(DvtCSSStyle.BORDER_LEFT_WIDTH))?DvtCSSStyle.toNumber(a):0};
DvtCSSStyle.prototype.getPaddingTop=function(){return this._getSideWidth(DvtCSSStyle.PADDING_TOP,DvtCSSStyle.PADDING)};DvtCSSStyle.prototype.getPaddingRight=function(){return this._getSideWidth(DvtCSSStyle.PADDING_RIGHT,DvtCSSStyle.PADDING)};DvtCSSStyle.prototype.getPaddingBottom=function(){return this._getSideWidth(DvtCSSStyle.PADDING_BOTTOM,DvtCSSStyle.PADDING)};DvtCSSStyle.prototype.getPaddingLeft=function(){return this._getSideWidth(DvtCSSStyle.PADDING_LEFT,DvtCSSStyle.PADDING)};
DvtCSSStyle.prototype.getWidth=function(){return this.width};DvtCSSStyle.prototype.getHeight=function(){return this.height};DvtCSSStyle.toNumber=function(a){return a?(a=parseFloat(a),isNaN(a)?0:a):0};DvtCSSStyle.isInheritable=function(a){switch(a){case DvtCSSStyle.COLOR:case DvtCSSStyle.FONT_FAMILY:case DvtCSSStyle.FONT_SIZE:case DvtCSSStyle.FONT_STYLE:case DvtCSSStyle.FONT_WEIGHT:case DvtCSSStyle.TEXT_ALIGN:return!0;default:return!1}};
DvtCSSStyle.prototype.setBorderColorShorthand=function(a,b){var d=DvtCSSStyle.parseBorderColorString(a,b),e;switch(d.length){case 1:this.setColor(a,d[0]);delete this[DvtCSSStyle.BORDER_TOP_COLOR];delete this[DvtCSSStyle.BORDER_BOTTOM_COLOR];delete this[DvtCSSStyle.BORDER_RIGHT_COLOR];delete this[DvtCSSStyle.BORDER_LEFT_COLOR];break;case 2:e=d[0];this.setColor(DvtCSSStyle.BORDER_TOP_COLOR,e);this.setColor(DvtCSSStyle.BORDER_BOTTOM_COLOR,e);e=d[1];this.setColor(DvtCSSStyle.BORDER_LEFT_COLOR,e);this.setColor(DvtCSSStyle.BORDER_RIGHT_COLOR,
e);break;case 3:this.setColor(DvtCSSStyle.BORDER_TOP_COLOR,d[0]);e=d[1];this.setColor(DvtCSSStyle.BORDER_LEFT_COLOR,e);this.setColor(DvtCSSStyle.BORDER_RIGHT_COLOR,e);this.setColor(DvtCSSStyle.BORDER_BOTTOM_COLOR,d[2]);break;case 4:this.setColor(DvtCSSStyle.BORDER_TOP_COLOR,d[0]),this.setColor(DvtCSSStyle.BORDER_RIGHT_COLOR,d[1]),this.setColor(DvtCSSStyle.BORDER_BOTTOM_COLOR,d[2]),this.setColor(DvtCSSStyle.BORDER_LEFT_COLOR,d[3])}};
DvtCSSStyle.prototype.setPaddingShorthand=function(a,b){var d=b.split(" "),e=null;switch(d.length){case 1:this.setStyle(a,this._getPercent(d[0]));delete this[DvtCSSStyle.PADDING_TOP];delete this[DvtCSSStyle.PADDING_BOTTOM];delete this[DvtCSSStyle.PADDING_RIGHT];delete this[DvtCSSStyle.PADDING_LEFT];break;case 2:e=this._getPercent(d[0]);this.setStyle(DvtCSSStyle.PADDING_TOP,e);this.setStyle(DvtCSSStyle.PADDING_BOTTOM,e);e=this._getPercent(d[1]);this.setStyle(DvtCSSStyle.PADDING_LEFT,e);this.setStyle(DvtCSSStyle.PADDING_RIGHT,
e);break;case 3:this.setStyle(DvtCSSStyle.PADDING_TOP,this._getPercent(d[0]));e=this._getPercent(d[1]);this.setStyle(DvtCSSStyle.PADDING_LEFT,e);this.setStyle(DvtCSSStyle.PADDING_RIGHT,e);this.setStyle(DvtCSSStyle.PADDING_BOTTOM,this._getPercent(d[2]));break;case 4:this.setStyle(DvtCSSStyle.PADDING_TOP,this._getPercent(d[0])),this.setStyle(DvtCSSStyle.PADDING_RIGHT,this._getPercent(d[1])),this.setStyle(DvtCSSStyle.PADDING_BOTTOM,this._getPercent(d[2])),this.setStyle(DvtCSSStyle.PADDING_LEFT,this._getPercent(d[3]))}};
DvtCSSStyle.prototype.setMarginShorthand=function(a,b){var d=b.split(" "),e=null;switch(d.length){case 1:this.setStyle(a,this._getMargin(d[0]));delete this[DvtCSSStyle.MARGIN_TOP];delete this[DvtCSSStyle.MARGIN_BOTTOM];delete this[DvtCSSStyle.MARGIN_RIGHT];delete this[DvtCSSStyle.MARGIN_LEFT];break;case 2:e=this._getMargin(d[0]);this.setStyle(DvtCSSStyle.MARGIN_TOP,e);this.setStyle(DvtCSSStyle.MARGIN_BOTTOM,e);e=this._getMargin(d[1]);this.setStyle(DvtCSSStyle.MARGIN_LEFT,e);this.setStyle(DvtCSSStyle.MARGIN_RIGHT,
e);break;case 3:this.setStyle(DvtCSSStyle.MARGIN_TOP,this._getMargin(d[0]));e=this._getMargin(d[1]);this.setStyle(DvtCSSStyle.MARGIN_LEFT,e);this.setStyle(DvtCSSStyle.MARGIN_RIGHT,e);this.setStyle(DvtCSSStyle.MARGIN_BOTTOM,this._getMargin(d[2]));break;case 4:this.setStyle(DvtCSSStyle.MARGIN_TOP,this._getMargin(d[0])),this.setStyle(DvtCSSStyle.MARGIN_RIGHT,this._getMargin(d[1])),this.setStyle(DvtCSSStyle.MARGIN_BOTTOM,this._getMargin(d[2])),this.setStyle(DvtCSSStyle.MARGIN_LEFT,this._getMargin(d[3]))}};
DvtCSSStyle.prototype._getMargin=function(a){a=DvtStringUtils.trim(a);return DvtCSSStyle.AUTO==a?DvtCSSStyle.AUTO_MARGIN:this._getPercent(a)};DvtCSSStyle.prototype._getPercent=function(a){return DvtStringUtils.trim(a)};
DvtCSSStyle.prototype.setBorderShorthand=function(a,b){for(var d=b.split(" "),e=null,g=!1,h=0;h<d.length;h++)if(e=d[h],0==e.indexOf("rgb")){for(var k=h+1;k<d.length&&!(e+=d[k],h++,-1!=d[k].indexOf(")"));k++);this.setBorderColorShorthand(DvtCSSStyle.BORDER_COLOR,e)}else DvtCSSStyle.isColorVal(e)?this.setBorderColorShorthand(DvtCSSStyle.BORDER_COLOR,e):DvtCSSStyle.isBorderWidthVal(e)?this.setBorderWidthShorthand(DvtCSSStyle.BORDER_WIDTH,e):"none"==b&&(g=!0);g&&this.setBorderWidthShorthand(DvtCSSStyle.BORDER_WIDTH,
"0")};DvtCSSStyle._getBorderRadius=function(a){a=DvtStringUtils.trim(a);return isNaN(parseFloat(a))?"0px":a};
DvtCSSStyle.prototype.setBorderRadius=function(a,b){var d=b.split("/");if(null==d[0])this[a]="0px";else{var e=DvtStringUtils.trim(d[0]).split(" ");switch(e.length){default:this[a]=DvtCSSStyle._getBorderRadius(e[0]),delete this[DvtCSSStyle.BORDER_TOP_LEFT_RADIUS],delete this[DvtCSSStyle.BORDER_TOP_RIGHT_RADIUS],delete this[DvtCSSStyle.BORDER_BOTTOM_RIGHT_RADIUS],delete this[DvtCSSStyle.BORDER_BOTTOM_LEFT_RADIUS]}if(2==d.length&&null!=d[1])switch(d=DvtStringUtils.trim(d[1]).split(" "),d.length){case 1:this[a]=
this[a]?this[a]+(" "+DvtCSSStyle._getBorderRadius(d[0])):DvtCSSStyle._getBorderRadius(d[0])}}};DvtCSSStyle.prototype.setBackgroundRepeat=function(a,b){b.toLowerCase();var d=b.split(" ");2==d.length&&(d[0]==d[1]?b=d[0]:d[0]==DvtCSSStyle.REPEAT&&d[1]==DvtCSSStyle.NO_REPEAT&&(b=DvtCSSStyle.REPEAT_X),d[0]==DvtCSSStyle.NO_REPEAT&&d[1]==DvtCSSStyle.REPEAT&&(b=DvtCSSStyle.REPEAT_Y));this[a]=b};
DvtCSSStyle.prototype.setColorString=function(a,b){var d=DvtCSSStyle._toColorVal(b);d?this[a]=d:DvtCSSStyle.isColorVal(b)&&(this[a]=b)};DvtCSSStyle._toColorVal=function(a){a=DvtStringUtils.trim(a);return(a=DvtCSSStyle.SpColorMap[a.toLowerCase()])?a:null};DvtCSSStyle.prototype.getStyle=function(a){return this[a]};DvtCSSStyle.prototype.setStyle=function(a,b){this[a]=b};DvtCSSStyle.prototype.setColor=function(a,b){this[a]=b};DvtCSSStyle.isValueInEM=function(a){return 0<=a.toLowerCase().indexOf("em")};
DvtCSSStyle.prototype._resolveEMx=function(a,b){var d=this.getStyle(a);return d&&DvtCSSStyle.isValueInEM(d)?b?(this.setStyle(a,""+parseFloat(d)*parseFloat(b)+"px"),!0):!1:!0};DvtCSSStyle.prototype.getAbsoluteFontSize=function(){var a=this.getFontSize();return a&&!DvtCSSStyle.isValueInEM(a)?a:null};
DvtCSSStyle.prototype.resolveEM=function(a){var b=this.getFontSize();b&&(DvtCSSStyle.isValueInEM(b)?this._resolveEMx(DvtCSSStyle.FONT_SIZE,a):a=b);for(var b=DvtCSSStyle._numericAttrsList,d=0;d<b.length;d++)if(!this._resolveEMx(b[d],a))return!1;return!0};DvtCSSStyle.prototype.clone=function(){for(var a=new DvtCSSStyle,b=0;b<DvtCSSStyle._attrs.length;b++){var d=DvtCSSStyle._attrs[b];this[d]&&(a[d]=this[d])}return a};
DvtCSSStyle.prototype.merge=function(a){if(a)for(var b=0;b<DvtCSSStyle._attrs.length;b++){var d=DvtCSSStyle._attrs[b];a[d]&&(this[d]=a[d])}return this};DvtCSSStyle.prototype.mergeUnder=function(a){if(a)for(var b=0;b<DvtCSSStyle._attrs.length;b++){var d=DvtCSSStyle._attrs[b];!this[d]&&a[d]&&(this[d]=a[d])}return this};DvtCSSStyle.prototype.toInlineStyle=function(a){for(var b="",d=0;d<a.length;d++){var e=a[d];void 0!==this[e]&&(b+=e+":"+this[e]+"; ")}return b};DvtCSSStyle.prototype.toString=function(){return this.toInlineStyle(DvtCSSStyle._attrs)};
DvtCSSStyle.prototype.getBackgroundImage=function(){var a=this[DvtCSSStyle.BACKGROUND_IMAGE],b,d;if(a&&a instanceof DvtCSSGradient)return a;a&&(b=a.indexOf("url("),d=a.lastIndexOf(")"),0==b&&d==a.length-1&&(a=a.substring(4,d)));a&&(b=a.indexOf(DvtCSSStyle.SINGLE_QUOTE),d=a.lastIndexOf(DvtCSSStyle.SINGLE_QUOTE),0==b&&d==a.length-1?a=a.substring(1,d):(b=a.indexOf(DvtCSSStyle.DOUBLE_QUOTE),d=a.lastIndexOf(DvtCSSStyle.DOUBLE_QUOTE),0==b&&d==a.length-1&&(a=a.substring(1,d))));return a};
DvtCSSStyle.isColorVal=function(a){a=DvtStringUtils.trim(a);return 0==a.indexOf("rgb")||0==a.indexOf("#")?!0:DvtCSSStyle.SpColorMap[a.toLowerCase()]?!0:!1};DvtCSSStyle.isBorderWidthVal=function(a){a=DvtStringUtils.trim(a);return DvtCSSStyle.SpWidthMap[a]?!0:!isNaN(parseFloat(a))};DvtCSSStyle.parseBorderColorString=function(a,b){for(var b=DvtStringUtils.trim(b),d=[];null!=b&&0<b.length;)b=DvtCSSStyle.parseBorderColor(b,d);return d};
DvtCSSStyle.parseBorderColor=function(a,b){var a=DvtStringUtils.ltrim(a),d=a.length,e=-1;if(!a)return a;if(0==a.indexOf("rgb"))(d=a)&&(e=a.indexOf(")")+1);else{e=a.indexOf(" ");-1==e&&(e=d);var g=a.slice(0,e);(d=DvtCSSStyle._toColorVal(g))||(d=DvtCSSStyle.parseHexColor(g))}d&&(b.push(d),a=a.slice(e));return a};DvtCSSStyle.parseHexColor=function(a){var b;if(a&&0<a.length){var d=7<a.length;b=Number("0x"+a.substring(1));isNaN(b);b=d?"#"+a.substring(3):a}return b};
DvtCSSStyle.prototype._getSideWidth=function(a,b){var d=this.getStyle(a);d||(d=this.getStyle(b));return DvtCSSStyle.toNumber(d)};DvtCSSStyle.createDefaultTextStyle=function(){return DvtStyleUtils.getDefaultTextStyle()};DvtCSSStyle.prototype.getFontSize=function(){return this.getStyle(DvtCSSStyle.FONT_SIZE)};DvtCSSStyle.mergeStyles=function(a){var b=new DvtCSSStyle;if(a)for(var d=0;d<a.length;d++)b.merge(a[d]);return b};
DvtCSSStyle.prototype.isEmpty=function(){for(var a in this)if(this.hasOwnProperty(a))return!1;return!0};DvtCSSStyle.prototype.isTextAlignEnd=function(){var a=this.getStyle(DvtCSSStyle.TEXT_ALIGN);return"end"==a?!0:DvtStyleUtils.isLocaleR2L()?"left"==a:"right"==a};var DvtContextMenuItem=function(a,b,d,e){this._event=a;this._text=b;this._disabled=d;this._sepBefore=e};DvtObj.createSubclass(DvtContextMenuItem,DvtObj,"DvtContextMenuItem");DvtContextMenuItem.prototype.getEvent=function(){return this._event};
DvtContextMenuItem.prototype.getText=function(){return this._text};DvtContextMenuItem.prototype.isDisabled=function(){return this._disabled};DvtContextMenuItem.prototype.hasSeparatorBefore=function(){return this._sepBefore};var DvtShowPopupBehavior=function(a,b,d,e){this._popupId=a;this._triggerType=b;this._alignId=d;this._align=e};DvtObj.createSubclass(DvtShowPopupBehavior,DvtObj,"DvtShowPopupBehavior");DvtShowPopupBehavior.TRIGGER_TYPE_ACTION="action";DvtShowPopupBehavior.TRIGGER_TYPE_CLICK="click";
DvtShowPopupBehavior.TRIGGER_TYPE_CONTEXT_MENU="contextMenu";DvtShowPopupBehavior.TRIGGER_TYPE_MOUSE_HOVER="mouseHover";DvtShowPopupBehavior.ALIGN_AFTER_START="afterStart";DvtShowPopupBehavior.ALIGN_AFTER_END="afterEnd";DvtShowPopupBehavior.ALIGN_BEFORE_START="beforeStart";DvtShowPopupBehavior.ALIGN_BEFORE_END="beforeEnd";DvtShowPopupBehavior.ALIGN_END_AFTER="endAfter";DvtShowPopupBehavior.ALIGN_END_BEFORE="endBefore";DvtShowPopupBehavior.ALIGN_START_AFTER="startAfter";
DvtShowPopupBehavior.ALIGN_START_BEFORE="startBefore";DvtShowPopupBehavior.ALIGN_OVERLAP="overlap";DvtShowPopupBehavior.newInstance=function(a){var b=a.getAttribute("popupId"),d=a.getAttribute("triggerType"),e=a.getAttribute("alignId"),a=a.getAttribute("align");return new DvtShowPopupBehavior(b,d,e,a)};DvtShowPopupBehavior.prototype.getPopupId=function(){return this._popupId};DvtShowPopupBehavior.prototype.getTriggerType=function(){return this._triggerType};
DvtShowPopupBehavior.prototype.getAlignId=function(){return this._alignId};DvtShowPopupBehavior.prototype.getAlign=function(){return this._align};var DvtClientBehavior=function(a,b){this._type=a;this._triggerType=b;this._props={}};DvtObj.createSubclass(DvtClientBehavior,DvtObj,"DvtClientBehavior");DvtClientBehavior.TRIGGER_TYPE_ACTION="action";DvtClientBehavior.TRIGGER_TYPE_CLICK="click";DvtClientBehavior.TYPE_ROW_DISCLOSURE="DvtRowDisclosureBehavior";DvtClientBehavior.TYPE_DRILL="DvtDrillBehavior";
DvtClientBehavior.TYPE_ISOLATE="DvtIsolateBehavior";DvtClientBehavior.TYPE_RESTORE="DvtRestoreBehavior";DvtClientBehavior.prototype.getType=function(){return this._type};DvtClientBehavior.prototype.getTriggerType=function(){return this._triggerType};DvtClientBehavior.prototype.setProperty=function(a,b){this._props[a]=b};DvtClientBehavior.prototype.getProperty=function(a){return this._props[a]};DvtClientBehavior.prototype.getProperties=function(){return this._props};var DvtMagnifyLens=function(a){this.Init(a)};
DvtObj.createSubclass(DvtMagnifyLens,DvtContainer,"DvtMagnifyLens");DvtMagnifyLens.DEFAULT_BACKGROUND_COLOR="#ffffff";
DvtMagnifyLens.prototype.Init=function(a){this._context=a;this._lensBorderWidth=2;this._backgroundFill=new DvtSolidFill(DvtMagnifyLens.DEFAULT_BACKGROUND_COLOR,1);this._rimFillColor="black";this.getImpl()||this.setImpl(a.getImplFactory().newContainer("maglens"));DvtMagnifyLens.superclass.Init.call(this,a);this._zoomFactor=3;this._zoomSize=91;this._shiftValue=0.5;this.setMouseEnabled(!1);this.setTranslateX(this._lensBorderWidth);this.setTranslateY(this._lensBorderWidth);this._dirty=!0};
DvtMagnifyLens.prototype.isDirty=function(){return this._dirty};DvtMagnifyLens.prototype.setDirty=function(a){this._dirty=a};DvtMagnifyLens.prototype.setZoomFactor=function(a){this._zoomFactor=a};DvtMagnifyLens.prototype.setSize=function(a){this._zoomSize=a};DvtMagnifyLens.prototype.setBackgroundFill=function(a){this._backgroundFill=a};DvtMagnifyLens.prototype.setRimFillColor=function(a){this._rimFillColor=a};DvtMagnifyLens.prototype.getSize=function(){return this._zoomSize+2*this._lensBorderWidth};
DvtMagnifyLens.prototype.initialize=function(){if(!this._initialized){this._initialized=!0;var a=this._zoomSize,b=this._context,d=new DvtContainer(b,"clipContainer"),e=new DvtClipPath("thisclippath"),g={};g.type=DvtClipPath.ELLIPSE;g.cx=a/2;g.cy=a/2;g.rx=a/2;g.ry=a/2;e._addRegion(g);this.getImpl().addClipPath(e,b);this._magClipPath=e;this._magClipContainer=d;this._magClipContainer.setClipPath(this._magClipPath);b=new DvtCircle(b,a/2,a/2,a/2-this._lensBorderWidth/2);b.setMouseEnabled(!1);d.addChild(b);
d.setAlpha(1);this._view=d;this.addChild(d);a=new DvtCircle(this.getContext(),a/2,a/2,a/2+this._lensBorderWidth);a.setFill(new DvtSolidFill(this._rimFillColor,1));a.setMouseEnabled(!1);this.addChildAt(a,0)}};DvtMagnifyLens.prototype.UpdatePosition=function(a,b){var d=this._zoomSize,e=this._content;if(e){var g=this._zoomFactor;e.setTranslateX(-a*g+d/2);e.setTranslateY(-b*g+d*this._shiftValue)}};DvtMagnifyLens.prototype.getRootDisplayable=function(){return this};
DvtMagnifyLens.prototype.GetMagnifyContent=function(a){return a.createCopy()};DvtMagnifyLens.prototype.getDisplayWidth=function(){return this._zoomSize+2*this._lensBorderWidth};DvtMagnifyLens.prototype.getDisplayHeight=function(){return this._zoomSize+2*this._lensBorderWidth};DvtMagnifyLens.prototype.clearContent=function(){var a=this._content;a&&this._view.removeChild(a)};
DvtMagnifyLens.prototype.updateMagnifyContent=function(a){this.clearContent();var b=this.GetMagnifyContent(a);b.setScaleX(this._zoomFactor);b.setScaleY(this._zoomFactor);this._content=b;a=a.getDimensions();a=new DvtRect(this.getContext(),a.x,a.y,a.w,a.h);a.setFill(new DvtSolidFill("white",1));b.addChildAt(a,0);a.setMouseEnabled(!1);this._view.addChildAt(b,0);this._view.setMouseEnabled(!1);b.setMouseEnabled(!1)};var DvtScrollbar=function(a,b,d,e,g,h,k,m){this.Init(a,b,d,e,g,h,k,m)};
DvtObj.createSubclass(DvtScrollbar,DvtContainer,"DvtScrollbar");DvtScrollbar.ID_NONE=0;DvtScrollbar.ID_X1RS=1;DvtScrollbar.ID_Y1RS=2;DvtScrollbar.ID_Y2RS=3;DvtScrollbar.ID_O1RS=4;DvtScrollbar.DEFAULT_TEXT_COLOR="rgb(69,69,69)";DvtScrollbar.LABEL_MASK_FILL_COLOR="rgb(122,143,175)";DvtScrollbar.SMALL_SCROLL_AMOUNT=0.2;DvtScrollbar.LARGE_SCROLL_AMOUNT=1;DvtScrollbar.MIN_THUMB_SIZE=30;DvtScrollbar.SCROLL_TIMER_DELAY=50;DvtScrollbar.SCROLL_TIMER_INITIAL_DELAY=400;DvtScrollbar.THUMB_TYPE="thumb";
DvtScrollbar.GRIPPER_START_TYPE="gripperStart";DvtScrollbar.GRIPPER_END_TYPE="gripperEnd";DvtScrollbar._TEST_ID_THIS=0;DvtScrollbar._TEST_ID_SCROLL_THUMB=1;DvtScrollbar._TEST_ID_SCROLL_BUTTON_DOWN=2;DvtScrollbar._TEST_ID_SCROLL_BUTTON_UP=3;
DvtScrollbar.prototype.Init=function(a,b,d,e,g,h,k,m){DvtScrollbar.superclass.Init.call(this,a);this._container=new DvtRect(a,b,d,e,g,m);this._isHoriz=h;this._clickDiff={};this._clickStartPos={};this._clickEndPos={};this._lastMovePos=-1;this._background=new DvtScrollbarBackground(this);this._thumbStartPos=this._thumbStartMin=DvtScrollbarArrow.WIDTH;this._isHoriz?(this._thumbLength=this._thumbLengthMax=e-2*DvtScrollbarArrow.WIDTH,this._arrowDown=new DvtScrollbarArrow(this,DvtScrollbarArrow.ORIENT_LEFT),
this._arrowUp=new DvtScrollbarArrow(this,DvtScrollbarArrow.ORIENT_RIGHT)):(this._thumbLength=this._thumbLengthMax=g-2*DvtScrollbarArrow.WIDTH,this._arrowDown=new DvtScrollbarArrow(this,DvtScrollbarArrow.ORIENT_DOWN),this._arrowUp=new DvtScrollbarArrow(this,DvtScrollbarArrow.ORIENT_UP));this._thumb=new DvtScrollbarThumb(this,k);this._scrollTimer=new DvtTimer(a,DvtScrollbar.SCROLL_TIMER_DELAY,this.repeatScroll,this);this._initScrollTimer=new DvtTimer(a,DvtScrollbar.SCROLL_TIMER_INITIAL_DELAY,this.initRepeatScroll,
this);this._bScrolled=!1;this._isLiveScroll=!0;this._container.setStroke(new DvtSolidStroke("black",null,1));this._container.setPixelHinting(!0);this._container.addChild(this._background);this._container.addChild(this._arrowDown);this._container.addChild(this._arrowUp);this._container.addChild(this._thumb);this.addChild(this._container)};DvtScrollbar.prototype.isHorizontal=function(){return this._isHoriz};DvtScrollbar.prototype.getThumbStart=function(){return this._thumbStartPos};
DvtScrollbar.prototype.getThumbLength=function(){return this._thumbLength};DvtScrollbar.prototype.setThumbStartAndLength=function(a,b){var d=0,d=this._isHoriz?(this.getWidth()-2*DvtScrollbarArrow.WIDTH)/this.getWidth():(this.getHeight()-2*DvtScrollbarArrow.WIDTH)/this.getHeight();this._thumbStartPos=DvtScrollbarArrow.WIDTH+Math.round(a*d);this._thumbLength=Math.round(b*d);this._thumb.updateSize()};DvtScrollbar.prototype.getScrollAreaStart=function(){return this._thumbStartMin};
DvtScrollbar.prototype.getScrollAreaLength=function(){return this._thumbLengthMax};DvtScrollbar.prototype.initRepeatScroll=function(){this._initScrollTimer.stop();this._scrollTimer.stop();this._scrollTimer.start()};DvtScrollbar.prototype.repeatScroll=function(){this._arrow&&!this._arrow.isDisabled()&&this.arrowScroll()};
DvtScrollbar.prototype.arrowScroll=function(){var a=DvtScrollbar.SMALL_SCROLL_AMOUNT;this._lastMovePos=this._thumbStartPos;switch(this._arrow.getOrientation()){case DvtScrollbarArrow.ORIENT_RIGHT:case DvtScrollbarArrow.ORIENT_DOWN:this.doScroll(a);break;case DvtScrollbarArrow.ORIENT_LEFT:case DvtScrollbarArrow.ORIENT_UP:this.doScroll(-a)}this._bScrolled=!0;this._fireMoveEvent(!this._isLiveScroll)};
DvtScrollbar.prototype.doScroll=function(a){this.moveTo(this._thumbStartPos+Math.round(this._thumbLength*a))};DvtScrollbar.prototype.moveTo=function(a){a<this._thumbStartMin&&(a=this._thumbStartMin);a+this._thumbLength>this._thumbStartMin+this._thumbLengthMax&&(a=this._thumbStartMin+this._thumbLengthMax-this._thumbLength);this._thumbStartPos=a;this._thumb.updateSize()};
DvtScrollbar.prototype.moveStart=function(a){var b=this._thumbStartPos+this._thumbLength;a<this._thumbStartMin&&(a=this._thumbStartMin);a>b-DvtScrollbar.MIN_THUMB_SIZE&&(a=b-DvtScrollbar.MIN_THUMB_SIZE);this._thumbStartPos=a;this._thumbLength=b-a;this._thumb.updateSize()};
DvtScrollbar.prototype.moveEnd=function(a){a<this._thumbStartPos+DvtScrollbar.MIN_THUMB_SIZE&&(a=this._thumbStartPos+DvtScrollbar.MIN_THUMB_SIZE);a>this._thumbStartMin+this._thumbLengthMax&&(a=this._thumbStartMin+this._thumbLengthMax);this._thumbLength=a-this._thumbStartPos;this._thumb.updateSize()};
DvtScrollbar.prototype.processBackgroundClick=function(a){var b=0,a=this._isHoriz?a.x-this.getX():a.y-this.getY();a<this._thumbStartPos?b=-DvtScrollbar.LARGE_SCROLL_AMOUNT:a>this._thumbStartPos+this._thumbLength&&(b=DvtScrollbar.LARGE_SCROLL_AMOUNT);0!=b&&(this._lastMovePos=this._thumbStartPos,this.doScroll(b),this._isLiveScroll&&this._fireMoveEvent(!1),this._fireMoveEvent(!0))};DvtScrollbar.prototype.processArrowDown=function(a){this._arrow=a;this.arrowScroll();this._initScrollTimer.stop();this._initScrollTimer.start()};
DvtScrollbar.prototype.handleArrowDown=function(a){this.processArrowDown(a)};DvtScrollbar.prototype.processArrowUp=function(){this._clearTimers();this._bScrolled&&this._isLiveScroll&&this._fireMoveEvent(!0);this._bScrolled=!1};DvtScrollbar.prototype._clearTimers=function(){this._initScrollTimer.stop();this._scrollTimer.stop()};DvtScrollbar.prototype.handleArrowUp=function(){this.processArrowUp()};
DvtScrollbar.prototype.processThumbDragStart=function(a){this._clickDiff[DvtScrollbar.THUMB_TYPE]=this.isHorizontal()?a.x:a.y;this._lastMovePos=this._clickStartPos[DvtScrollbar.THUMB_TYPE]=this._thumbStartPos};DvtScrollbar.prototype.processThumbDragMove=function(a){this.moveTo(this.isHorizontal()?this._clickStartPos[DvtScrollbar.THUMB_TYPE]+(a.x-this._clickDiff[DvtScrollbar.THUMB_TYPE]):this._clickStartPos[DvtScrollbar.THUMB_TYPE]+(a.y-this._clickDiff[DvtScrollbar.THUMB_TYPE]));this._fireMoveEvent(!1)};
DvtScrollbar.prototype.processThumbDragEnd=function(a){var b=0,b=this.isHorizontal()?this._clickDiff[DvtScrollbar.THUMB_TYPE]-a.x:this._clickDiff[DvtScrollbar.THUMB_TYPE]-a.y;0!=b&&this._fireMoveEvent(!0)};DvtScrollbar.prototype.handleGripDragStart=function(a,b){var d=new DvtPoint(b.getNativeEvent().clientX,b.getNativeEvent().clientY);this.processGripDragStart(a,d)};
DvtScrollbar.prototype.processGripDragStart=function(a,b){var d=this.getGripperItemType(a);this._clickDiff[d]=this.isHorizontal()?b.x:b.y;this._clickStartPos[d]=this._thumbStartPos;this._clickEndPos[d]=this._thumbStartPos+this._thumbLength;this._fireResizeEvent(!1)};DvtScrollbar.prototype.getGripperItemType=function(a){var b=DvtScrollbar.GRIPPER_START_TYPE,a=a.getType();if(a==DvtScrollbarGripper.TYPE_RIGHT||a==DvtScrollbarGripper.TYPE_BOTTOM)b=DvtScrollbar.GRIPPER_END_TYPE;return b};
DvtScrollbar.prototype.handleGripDragMove=function(a,b){var d=new DvtPoint(b.getNativeEvent().clientX,b.getNativeEvent().clientY);this.processGripDragMove(a,d)};
DvtScrollbar.prototype.processGripDragMove=function(a,b){var d=this.getGripperItemType(a);switch(a.getType()){case DvtScrollbarGripper.TYPE_LEFT:d=this._clickStartPos[d]+(b.x-this._clickDiff[d]);this.moveStart(d);break;case DvtScrollbarGripper.TYPE_RIGHT:d=this._clickEndPos[d]+(b.x-this._clickDiff[d]);this.moveEnd(d);break;case DvtScrollbarGripper.TYPE_BOTTOM:d=this._clickEndPos[d]+(b.y-this._clickDiff[d]);this.moveEnd(d);break;case DvtScrollbarGripper.TYPE_TOP:d=this._clickStartPos[d]+(b.y-this._clickDiff[d]),
this.moveStart(d)}this._fireResizeEvent(!1)};DvtScrollbar.prototype.handleGripDragEnd=function(a,b){var d=new DvtPoint(b.getNativeEvent().clientX,b.getNativeEvent().clientY),e=0,g=this.getGripperItemType(a);switch(a.getType()){case DvtScrollbarGripper.TYPE_LEFT:e=this._clickDiff[g]-d.x;break;case DvtScrollbarGripper.TYPE_RIGHT:e=this._clickDiff[g]-d.x;break;case DvtScrollbarGripper.TYPE_BOTTOM:e=this._clickDiff[g]-d.y;break;case DvtScrollbarGripper.TYPE_TOP:e=this._clickDiff[g]-d.y}0!==e&&this.processGripDragEnd()};
DvtScrollbar.prototype.processGripDragEnd=function(){this._fireResizeEvent(!0)};
DvtScrollbar.prototype._fireMoveEvent=function(a){var b;if(a)b=DvtScrollbarEvent.SB_MOVE_COMPLETE;else if(this._isLiveScroll)b=DvtScrollbarEvent.SB_MOVE;else return;var d=this._thumbStartPos-this._thumbStartMin,e=d+this._thumbLength,g,h,k=null;g=this._thumbStartPos-this._lastMovePos;this._lastMovePos=this._thumbStartPos;h=g/this._thumbLengthMax;if(0!=g||a)k=new DvtScrollbarEvent(b,this,d,e,g,h);k&&this.FireListener(k,!1)};
DvtScrollbar.prototype._fireResizeEvent=function(a){var b=this._thumbStartPos-this._thumbStartMin;this.FireListener(new DvtScrollbarEvent(a?DvtScrollbarEvent.SB_RESIZE_COMPLETE:DvtScrollbarEvent.SB_RESIZE,this,b,b+this._thumbLength),!1)};DvtScrollbar.prototype.move=function(a,b,d){this.moveSliderPercent(a);b&&this._fireMoveEvent(d)};DvtScrollbar.prototype.moveSliderPercent=function(a){-100>a||100<a||this.moveSlider(a/100*this._thumbLengthMax)};
DvtScrollbar.prototype.moveSlider=function(a){this.isHorizontal();this.moveTo(this._thumbStartPos+a)};DvtScrollbar.prototype.processGlobalMouseUp=function(){this._clearTimers()};DvtScrollbar.prototype.getX=function(){return this._container.getX()};DvtScrollbar.prototype.getY=function(){return this._container.getY()};DvtScrollbar.prototype.getWidth=function(){return this._container.getWidth()};DvtScrollbar.prototype.getHeight=function(){return this._container.getHeight()};
DvtScrollbar.prototype.dispatchTestEvent=function(a,b,d){var e;a<=DvtScrollbar._TEST_ID_THIS?e=this:a==DvtScrollbar._TEST_ID_SCROLL_THUMB?e=this._thumb:a==DvtScrollbar._TEST_ID_SCROLL_BUTTON_DOWN?subcomponent=this._arrowDown:a==DvtScrollbar._TEST_ID_SCROLL_BUTTON_UP&&(e=this._arrowUp);e&&e instanceof DvtDisplayable&&e.dispatchDisplayableEvent(b,d)};DvtScrollbar.prototype.getScrollbarThumb=function(){return this._thumb};
DvtScrollbar.prototype.setLogicalThumbStartAndLength=function(a,b){this._thumbStartPos=DvtScrollbarArrow.WIDTH+a;this._thumbLength=b;this._thumb.updateSize()};DvtScrollbar.prototype.getLogicalThumbStart=function(){return this._thumbStartPos-DvtScrollbarArrow.WIDTH};var DvtScrollbarArrow=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtScrollbarArrow,DvtContainer,"DvtScrollbarArrow");DvtScrollbarArrow.WIDTH=15;DvtScrollbarArrow.ORIENT_RIGHT=0;DvtScrollbarArrow.ORIENT_UP=1;
DvtScrollbarArrow.ORIENT_LEFT=2;DvtScrollbarArrow.ORIENT_DOWN=3;DvtScrollbarArrow.ARROW_UP_BORDER="#000000";DvtScrollbarArrow.ARROW_UP_BORDER_ALPHA=0;DvtScrollbarArrow.ARROW_UP_FILL="#000000";DvtScrollbarArrow.BG_UP_FILL_COLORS=["#ffffff","#ffffff"];DvtScrollbarArrow.BG_UP_FILL_ALPHAS=[0,0];DvtScrollbarArrow.BG_UP_FILL_RATIOS=[0,255];DvtScrollbarArrow.ARROW_OVER_BORDER="#000000";DvtScrollbarArrow.ARROW_OVER_BORDER_ALPHA=0;DvtScrollbarArrow.ARROW_OVER_FILL="#000000";
DvtScrollbarArrow.BG_OVER_FILL_COLORS=["#0d8cf9","#4ab5fc"];DvtScrollbarArrow.BG_OVER_FILL_ALPHAS=[1,1];DvtScrollbarArrow.BG_OVER_FILL_RATIOS=[0,255];DvtScrollbarArrow.ARROW_DOWN_BORDER="#4e555e";DvtScrollbarArrow.ARROW_DOWN_BORDER_ALPHA=1;DvtScrollbarArrow.ARROW_DOWN_FILL="#ffffff";DvtScrollbarArrow.BG_DOWN_FILL_COLORS=["#4e555e","#a7b7d4"];DvtScrollbarArrow.BG_DOWN_FILL_ALPHAS=[1,1];DvtScrollbarArrow.BG_DOWN_FILL_RATIOS=[0,255];
DvtScrollbarArrow.prototype.Init=function(a,b){var d,e,g,h;this._sb=a;this._orientation=b;this._arrow=null;this._disabled=!1;a.isHorizontal()?(b==DvtScrollbarArrow.ORIENT_LEFT?(d=a.getX(),e=a.getY()):b==DvtScrollbarArrow.ORIENT_RIGHT&&(d=a.getX()+a.getWidth()-DvtScrollbarArrow.WIDTH,e=a.getY()),g=DvtScrollbarArrow.WIDTH,h=a.getHeight()):(b==DvtScrollbarArrow.ORIENT_DOWN?(d=a.getX(),e=a.getY()+a.getHeight()-DvtScrollbarArrow.WIDTH):b==DvtScrollbarArrow.ORIENT_UP&&(d=a.getX(),e=a.getY()),g=a.getWidth(),
h=DvtScrollbarArrow.WIDTH);var k=a.getContext();DvtScrollbarArrow.superclass.Init.call(this,k);this._container=new DvtRect(k,d,e,g,h,null);this._arrowUpBorderColor=DvtScrollbarArrow.ARROW_UP_BORDER;this._arBGUpFillColors=DvtScrollbarArrow.BG_UP_FILL_COLORS;this._arrowOverBorderColor=DvtScrollbarArrow.ARROW_OVER_BORDER;this._arBGOverFillColors=DvtScrollbarArrow.BG_OVER_FILL_COLORS;this._arrowDownBorderColor=DvtScrollbarArrow.ARROW_DOWN_BORDER;this._arBGDownFillColors=DvtScrollbarArrow.BG_DOWN_FILL_COLORS;
this._upFill=new DvtLinearGradientFill(0,this._arBGUpFillColors,DvtScrollbarArrow.BG_UP_FILL_ALPHAS);this._overFill=new DvtLinearGradientFill(0,this._arBGOverFillColors,DvtScrollbarArrow.BG_OVER_FILL_ALPHAS);this._downFill=new DvtLinearGradientFill(0,this._arBGDownFillColors,DvtScrollbarArrow.BG_DOWN_FILL_ALPHAS);this._arrowUpFill=new DvtSolidFill(DvtScrollbarArrow.ARROW_UP_FILL,null);this._arrowOverFill=new DvtSolidFill(DvtScrollbarArrow.ARROW_OVER_FILL,null);this._arrowDownFill=new DvtSolidFill(DvtScrollbarArrow.ARROW_DOWN_FILL,
null);this._arrowUpBorder=new DvtSolidStroke(DvtScrollbarArrow.ARROW_UP_BORDER,null,DvtScrollbarArrow.ARROW_UP_BORDER_ALPHA);this._arrowOverBorder=new DvtSolidStroke(DvtScrollbarArrow.ARROW_OVER_BORDER,null,DvtScrollbarArrow.ARROW_OVER_BORDER_ALPHA);this._arrowDownBorder=new DvtSolidStroke(DvtScrollbarArrow.ARROW_DOWN_BORDER,null,DvtScrollbarArrow.ARROW_DOWN_BORDER_ALPHA);this._arrow=this._createArrow();this._container.setPixelHinting(!0);DvtAgent.getAgent().isTouchDevice()?(this.addEventListener("touchstart",
this._touchHandler,!1,this),this.addEventListener("touchmove",this._touchHandler,!1,this),this.addEventListener("touchend",this._touchHandler,!1,this)):(this.addEventListener("mouseover",this._mouseOverHandler,!1,this),this.addEventListener("mouseout",this._mouseOutHandler,!1,this),this.addEventListener("mousedown",this._mouseDownHandler,!1,this),this.addEventListener("mouseup",this._mouseUpHandler,!1,this));this._container.addChild(this._arrow);this.addChild(this._container);this._drawOutState()};
DvtScrollbarArrow.prototype.getOrientation=function(){return this._orientation};
DvtScrollbarArrow.prototype._createArrow=function(){var a=this._container._impl.getX()+this._container._impl.getWidth()/2,b=this._container._impl.getY()+this._container._impl.getHeight()/2,d=[];this._orientation==DvtScrollbarArrow.ORIENT_RIGHT?(d.push(a-2,b-3),d.push(a+2,b),d.push(a-2,b+3),d.push(d[0],d[1])):this._orientation==DvtScrollbarArrow.ORIENT_UP?(d.push(a-3,b+2),d.push(a,b-2),d.push(a+3,b+2),d.push(d[0],d[1])):this._orientation==DvtScrollbarArrow.ORIENT_LEFT?(d.push(a+2,b-3),d.push(a-2,b),
d.push(a+2,b+3),d.push(d[0],d[1])):this._orientation==DvtScrollbarArrow.ORIENT_DOWN&&(d.push(a-3,b-2),d.push(a,b+2),d.push(a+3,b-2),d.push(d[0],d[1]));a=new DvtPolygon(this.getContext(),d,null);a.setFill(this._arrowUpFill);a.setStroke(this._arrowUpBorder);a.setMouseEnabled(!1);return a};DvtScrollbarArrow.prototype._mouseOverHandler=function(a){this._drawOverState();this._disabled=!1;a&&a.preventDefault()};
DvtScrollbarArrow.prototype._mouseOutHandler=function(a){this._drawOutState();this._disabled=!0;a&&a.preventDefault()};DvtScrollbarArrow.prototype._mouseDownHandler=function(a){this._drawDownState();this._sb.handleArrowDown(this,a);a&&a.preventDefault()};DvtScrollbarArrow.prototype._mouseUpHandler=function(a){this._drawOverState();this._sb.handleArrowUp(this,a);a&&a.preventDefault()};
DvtScrollbarArrow.prototype._touchHandler=function(a){var b=a.type;if("touchstart"==b){if(!this._dragStarted&&(b=a.targetTouches[0]))this._sb.processArrowDown(this),this._dragStarted=!0,this._touchId=b.identifier}else if("touchmove"==b)this._dragStarted&&DvtTouchManager.getTouchById(this._touchId,a.touches);else if("touchend"==b&&this._dragStarted&&(b=DvtTouchManager.getTouchById(this._touchId,a.changedTouches)))this._sb.processArrowUp(this),this._dragStarted=!1,this._touchId=null;a.blockTouchHold();
a.preventDefault()};DvtScrollbarArrow.prototype._drawOutState=function(){this._container.setFill(this._upFill);this._arrow.setStroke(this._arrowUpBorder);this._arrow.setFill(this._arrowUpFill)};DvtScrollbarArrow.prototype._drawOverState=function(){this._container.setFill(this._overFill);this._arrow.setStroke(this._arrowOverBorder);this._arrow.setFill(this._arrowOverFill)};
DvtScrollbarArrow.prototype._drawDownState=function(){this._container.setFill(this._downFill);this._arrow.setStroke(this._arrowDownBorder);this._arrow.setFill(this._arrowDownFill)};DvtScrollbarArrow.prototype.isDisabled=function(){return this._disabled};var DvtScrollbarBackground=function(a){this.Init(a)};DvtObj.createSubclass(DvtScrollbarBackground,DvtContainer,"DvtScrollbarBackground");DvtScrollbarBackground.BORDER_COLOR="rgb(206,211,226)";DvtScrollbarBackground.FILL_COLORS=["#fafafb","#e7e9ef"];
DvtScrollbarBackground.prototype.Init=function(a){var b,d,e,g;this._sb=a;b=a.getX();d=a.getY();e=a.getWidth();g=a.getHeight();var h=a.getContext();DvtScrollbarBackground.superclass.Init.call(this,h);this._container=new DvtRect(h,b,d,e,g,null);this.addChild(this._container);this._borderColor=DvtScrollbarBackground.BORDER_COLOR;this._arFillColors=DvtScrollbarBackground.FILL_COLORS;this._borderStroke=new DvtSolidStroke(this._borderColor,null,1);a=a.isHorizontal()?90:180;this._gradientFill=new DvtLinearGradientFill(a,
this._arFillColors);this._container.setStroke(this._borderStroke);this._container.setFill(this._gradientFill);this._container.setPixelHinting(!0);DvtAgent.getAgent().isTouchDevice()?(this.addEventListener("touchstart",this._touchHandler,!1,this),this.addEventListener("touchmove",this._touchHandler,!1,this),this.addEventListener("touchend",this._touchHandler,!1,this)):this.addEventListener("click",this._mouseClickHandler,!1,this)};
DvtScrollbarBackground.prototype._touchHandler=function(a){var b=a.type;if("touchstart"==b){if(!this._backgroundClickStarted&&(b=a.targetTouches[0]))this._backgroundClickStarted=!0,this._touchId=b.identifier}else if("touchmove"!=b&&"touchend"==b&&this._backgroundClickStarted&&(b=DvtTouchManager.getTouchById(this._touchId,a.changedTouches)))b=this.getContext().getRelativePosition(b.pageX,b.pageY),this._sb.processBackgroundClick(new DvtPoint(b.x,b.y)),this._backgroundClickStarted=!1,this._touchId=null;
a.blockTouchHold();a.preventDefault()};DvtScrollbarBackground.prototype._mouseClickHandler=function(a){this._sb.processBackgroundClick(new DvtPoint(a._event.clientX,a._event.clientY));a&&a.preventDefault()};var DvtScrollbarGripper=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtScrollbarGripper,DvtContainer,"DvtScrollbarGripper");DvtScrollbarGripper.TYPE_LEFT=0;DvtScrollbarGripper.TYPE_RIGHT=1;DvtScrollbarGripper.TYPE_TOP=2;DvtScrollbarGripper.TYPE_BOTTOM=3;
DvtScrollbarGripper.SIZE_GRIPPY=6;DvtScrollbarGripper.SIZE_NAIL=2;DvtScrollbarGripper.GRIPPY_UP_BORDER_COLOR="#097bf8";DvtScrollbarGripper.GRIPPY_UP_FILL_COLORS=["#0477f8","#68befe"];DvtScrollbarGripper.GRIPPY_UP_FILL_ALPHAS=[1,1];DvtScrollbarGripper.GRIPPY_UP_FILL_RATIOS=[0,255];DvtScrollbarGripper.NAIL_UP_BORDER_COLOR="#097bf8";DvtScrollbarGripper.NAIL_UP_FILL_COLORS=["#1280f8","#c1ddfc"];DvtScrollbarGripper.NAIL_UP_FILL_ALPHAS=[1,1];DvtScrollbarGripper.NAIL_UP_FILL_RATIOS=[0,255];
DvtScrollbarGripper.GRIPPY_OVER_BORDER_COLOR=DvtScrollbarGripper.GRIPPY_UP_BORDER_COLOR;DvtScrollbarGripper.GRIPPY_OVER_FILL_COLORS=DvtScrollbarGripper.GRIPPY_UP_FILL_COLORS;DvtScrollbarGripper.GRIPPY_OVER_FILL_ALPHAS=DvtScrollbarGripper.GRIPPY_UP_FILL_ALPHAS;DvtScrollbarGripper.GRIPPY_OVER_FILL_RATIOS=DvtScrollbarGripper.GRIPPY_UP_FILL_RATIOS;DvtScrollbarGripper.NAIL_OVER_BORDER_COLOR=DvtScrollbarGripper.NAIL_UP_BORDER_COLOR;DvtScrollbarGripper.NAIL_OVER_FILL_COLORS=DvtScrollbarGripper.NAIL_UP_FILL_COLORS;
DvtScrollbarGripper.NAIL_OVER_FILL_ALPHAS=DvtScrollbarGripper.NAIL_UP_FILL_ALPHAS;DvtScrollbarGripper.NAIL_OVER_FILL_RATIOS=DvtScrollbarGripper.NAIL_UP_FILL_RATIOS;DvtScrollbarGripper.GRIPPY_TOUCH_BORDER_COLOR="c2cadb";DvtScrollbarGripper.GRIPPY_TOUCH_FILL_COLORS=["#ffffff","#c2cadb"];DvtScrollbarGripper.GRIPPY_TOUCH_FILL_ALPHAS=DvtScrollbarGripper.GRIPPY_UP_FILL_ALPHAS;DvtScrollbarGripper.GRIPPY_TOUCH_FILL_RATIOS=DvtScrollbarGripper.GRIPPY_UP_FILL_RATIOS;
DvtScrollbarGripper.NAIL_TOUCH_BORDER_COLOR="c2cadb";DvtScrollbarGripper.NAIL_TOUCH_FILL_COLORS=["#ffffff","#c2cadb"];DvtScrollbarGripper.NAIL_TOUCH_FILL_ALPHAS=DvtScrollbarGripper.NAIL_UP_FILL_ALPHAS;DvtScrollbarGripper.NAIL_TOUCH_FILL_RATIOS=DvtScrollbarGripper.NAIL_UP_FILL_RATIOS;DvtScrollbarGripper.GRIPPY_DOWN_BORDER_COLOR="#097bf8";DvtScrollbarGripper.GRIPPY_DOWN_FILL_COLORS=["#3595fe","#034ea0"];DvtScrollbarGripper.GRIPPY_DOWN_FILL_ALPHAS=[1,1];
DvtScrollbarGripper.GRIPPY_DOWN_FILL_RATIOS=[0,255];DvtScrollbarGripper.NAIL_DOWN_BORDER_COLOR="#097bf8";DvtScrollbarGripper.NAIL_DOWN_FILL_COLORS=["#ffffff","#bfdefd"];DvtScrollbarGripper.NAIL_DOWN_FILL_ALPHAS=[1,1];DvtScrollbarGripper.NAIL_DOWN_FILL_RATIOS=[0,255];DvtScrollbarGripper.TOUCH_WIDTH=28;DvtScrollbarGripper.TOUCH_HEIGHT=25;
DvtScrollbarGripper.prototype.Init=function(a,b){var d,e,g,h;this._thumb=a;this._type=b;var k=0,m=0;a.isHorizontal()?(e=a.getY(),g=DvtScrollbarGripper.SIZE_GRIPPY+DvtScrollbarGripper.SIZE_NAIL,h=a.getHeight(),b==DvtScrollbarGripper.TYPE_LEFT?d=a.getX():b==DvtScrollbarGripper.TYPE_RIGHT&&(d=a.getX()+a.getWidth()-g),k=270,m=90):(d=a.getX(),g=a.getWidth(),h=DvtScrollbarGripper.SIZE_GRIPPY+DvtScrollbarGripper.SIZE_NAIL,b==DvtScrollbarGripper.TYPE_TOP?e=a.getY():b==DvtScrollbarGripper.TYPE_BOTTOM&&(e=
a.getY()+a.getHeight()-h),m=180);var n=a.getContext();DvtScrollbarGripper.superclass.Init.call(this,n);this._container=new DvtRect(n,d,e,g,h,null);this._grippyUpBorderColor=DvtScrollbarGripper.GRIPPY_UP_BORDER_COLOR;this._grippyUpFillColors=DvtScrollbarGripper.GRIPPY_UP_FILL_COLORS;this._nailUpBorderColor=DvtScrollbarGripper.NAIL_UP_BORDER_COLOR;this._nailUpFillColors=DvtScrollbarGripper.NAIL_UP_FILL_COLORS;this._grippyOverBorderColor=DvtScrollbarGripper.GRIPPY_OVER_BORDER_COLOR;this._grippyOverFillColors=
DvtScrollbarGripper.GRIPPY_OVER_FILL_COLORS;this._grippyTouchBorderColor=DvtScrollbarGripper.GRIPPY_TOUCH_BORDER_COLOR;this._grippyTouchFillColors=DvtScrollbarGripper.GRIPPY_TOUCH_FILL_COLORS;this._nailOverBorderColor=DvtScrollbarGripper.NAIL_OVER_BORDER_COLOR;this._nailOverFillColors=DvtScrollbarGripper.NAIL_OVER_FILL_COLORS;this._nailTouchBorderColor=DvtScrollbarGripper.NAIL_TOUCH_BORDER_COLOR;this._nailTouchFillColors=DvtScrollbarGripper.NAIL_TOUCH_FILL_COLORS;this._grippyDownBorderColor=DvtScrollbarGripper.GRIPPY_DOWN_BORDER_COLOR;
this._grippyDownFillColors=DvtScrollbarGripper.GRIPPY_DOWN_FILL_COLORS;this._nailDownBorderColor=DvtScrollbarGripper.NAIL_DOWN_BORDER_COLOR;this._nailDownFillColors=DvtScrollbarGripper.NAIL_DOWN_FILL_COLORS;this._upStroke=new DvtSolidStroke(this._grippyUpBorderColor,null,1);this._upFill=new DvtLinearGradientFill(k,this._grippyUpFillColors,DvtScrollbarGripper.GRIPPY_UP_FILL_ALPHAS);this._nailUpStroke=new DvtSolidStroke(this._nailUpBorderColor,null,1);this._nailUpFill=new DvtLinearGradientFill(m,this._nailUpFillColors,
DvtScrollbarGripper.NAIL_UP_FILL_ALPHAS);this._overStroke=new DvtSolidStroke(this._grippyOverBorderColor,null,1);this._overFill=new DvtLinearGradientFill(k,this._grippyOverFillColors,DvtScrollbarGripper.GRIPPY_OVER_FILL_ALPHAS);this._touchStroke=new DvtSolidStroke(this._grippyTouchBorderColor,null,1);this._touchFill=new DvtLinearGradientFill(k,this._grippyTouchFillColors,DvtScrollbarGripper.GRIPPY_TOUCH_FILL_ALPHAS);this._nailOverStroke=new DvtSolidStroke(this._nailOverBorderColor,null,1);this._nailOverFill=
new DvtLinearGradientFill(m,this._nailOverFillColors,DvtScrollbarGripper.NAIL_OVER_FILL_ALPHAS);this._touchStroke=new DvtSolidStroke(this._grippyTouchBorderColor,null,1);this._touchFill=new DvtLinearGradientFill(k,this._grippyTouchFillColors,DvtScrollbarGripper.GRIPPY_OVER_FILL_ALPHAS);this._nailTouchStroke=new DvtSolidStroke(this._nailTouchBorderColor,null,1);this._nailTouchFill=new DvtLinearGradientFill(m,this._nailTouchFillColors,DvtScrollbarGripper.NAIL_TOUCH_FILL_ALPHAS);this._downStroke=new DvtSolidStroke(this._grippyDownBorderColor,
null,1);this._downFill=new DvtLinearGradientFill(k,this._grippyDownFillColors,DvtScrollbarGripper.GRIPPY_DOWN_FILL_ALPHAS);this._nailDownStroke=new DvtSolidStroke(this._nailDownBorderColor,null,1);this._nailDownFill=new DvtLinearGradientFill(m,this._nailDownFillColors,DvtScrollbarGripper.NAIL_DOWN_FILL_ALPHAS);DvtAgent.getAgent().isTouchDevice()?(this.addEventListener("touchstart",this._touchHandler,!1,this),this.addEventListener("touchmove",this._touchHandler,!1,this),this.addEventListener("touchend",
this._touchHandler,!1,this)):(this.addEventListener("mouseover",this._mouseOverHandler,!1,this),this.addEventListener("mouseout",this._mouseOutHandler,!1,this),this.addEventListener("mousedown",this._mouseDownHandler,!1,this));this._grippy=this._createGrippy();d=new DvtRectangle(this._grippy.getX(),this._grippy.getY(),this._grippy.getWidth(),this._grippy.getHeight());DvtAgent.getAgent().isTouchDevice()&&(this._touchArea=new DvtRect(this.getContext(),d.x-(DvtScrollbarGripper.TOUCH_WIDTH-d.w)/2,d.y-
(DvtScrollbarGripper.TOUCH_HEIGHT-d.h)/2,DvtScrollbarGripper.TOUCH_WIDTH,DvtScrollbarGripper.TOUCH_HEIGHT,null),this._touchArea.setFill(new DvtSolidStroke("white",0.0010)),this._container.addChild(this._touchArea));this._container.addChild(this._grippy);this.addChild(this._container);DvtAgent.getAgent().isTouchDevice()?this._drawOverState():this._drawOutState();this._container.setPixelHinting(!0);this._grippy.setPixelHinting(!0);this._grippy.setMouseEnabled(!1);this._thumb.isHorizontal()?this._container.getImpl().getElem().setAttributeNS(null,
"cursor","e-resize"):this._container.getImpl().getElem().setAttributeNS(null,"cursor","n-resize")};DvtScrollbarGripper.prototype.immediateTouchAttempted=function(a,b){var d=this._thumb._sb,e=this.getContext().getTouchManager();this._thumb.processGripDragStart(this,this.getContext().getRelativePosition(b.pageX,b.pageY));e.saveProcessedTouchDefault(b.identifier,this,this._container,d,"gripper",this);this._thumb.drawFullHighlightState();a.blockTouchHold()};
DvtScrollbarGripper.prototype.immediateTouchMoved=function(a,b){this._thumb.processGripDragMove(this,this.getContext().getRelativePosition(b.pageX,b.pageY));a.preventDefault()};DvtScrollbarGripper.prototype.immediateTouchEnded=function(){this.getContext().getTouchManager().containsGrouping(this._thumb._sb)||this._thumb.drawFullPlainState();this._thumb.processGripDragEnd()};DvtScrollbarGripper.prototype._touchHandler=function(a){this.getContext().getTouchManager().processAssociatedTouchDefault(a,this)};
DvtScrollbarGripper.prototype.getType=function(){return this._type};
DvtScrollbarGripper.prototype._createGrippy=function(){var a,b,d,e;switch(this._type){case DvtScrollbarGripper.TYPE_LEFT:a=this.getX()+DvtScrollbarGripper.SIZE_NAIL;b=this.getY();d=DvtScrollbarGripper.SIZE_GRIPPY;e=this.getHeight();break;case DvtScrollbarGripper.TYPE_RIGHT:a=this.getX();b=this.getY();d=DvtScrollbarGripper.SIZE_GRIPPY;e=this.getHeight();break;case DvtScrollbarGripper.TYPE_TOP:a=this.getX();b=this.getY()+DvtScrollbarGripper.SIZE_NAIL;d=this.getWidth();e=DvtScrollbarGripper.SIZE_GRIPPY;
break;case DvtScrollbarGripper.TYPE_BOTTOM:a=this.getX(),b=this.getY(),d=this.getWidth(),e=DvtScrollbarGripper.SIZE_GRIPPY}return new DvtRect(this.getContext(),a,b,d,e,null)};
DvtScrollbarGripper.prototype.updatePosition=function(){this._type==DvtScrollbarGripper.TYPE_LEFT?(this.setX(this._thumb.getX()),this._grippy.setX(this.getX()+DvtScrollbarGripper.SIZE_NAIL),this._touchArea&&this._touchArea.setX(this._grippy.getX()-(DvtScrollbarGripper.TOUCH_WIDTH-this._grippy.getWidth())/2)):this._type==DvtScrollbarGripper.TYPE_RIGHT?(this.setX(this._thumb.getX()+this._thumb.getWidth()-DvtScrollbarGripper.SIZE_GRIPPY-DvtScrollbarGripper.SIZE_NAIL),this._grippy.setX(this.getX()),this._touchArea&&
this._touchArea.setX(this._grippy.getX()-(DvtScrollbarGripper.TOUCH_WIDTH-this._grippy.getWidth())/2)):this._type==DvtScrollbarGripper.TYPE_TOP?(this.setY(this._thumb.getY()),this._grippy.setY(this.getY()+DvtScrollbarGripper.SIZE_NAIL),this._touchArea&&this._touchArea.setY(this._grippy.getY()-(DvtScrollbarGripper.TOUCH_HEIGHT-this._grippy.getHeight())/2)):this._type==DvtScrollbarGripper.TYPE_BOTTOM&&(this.setY(this._thumb.getY()+this._thumb.getHeight()-DvtScrollbarGripper.SIZE_GRIPPY-DvtScrollbarGripper.SIZE_NAIL),
this._grippy.setY(this.getY()),this._touchArea&&this._touchArea.setY(this._grippy.getY()-(DvtScrollbarGripper.TOUCH_HEIGHT-this._grippy.getHeight())/2))};DvtScrollbarGripper.prototype.setAlpha=function(a){this._container.setAlpha(a);0.0010>=a?this._grippy.setVisible(!1):this._grippy.setVisible(!0)};DvtScrollbarGripper.prototype._mouseOverHandler=function(a){this._drawOverState();a&&a.preventDefault()};DvtScrollbarGripper.prototype._mouseOutHandler=function(a){this._drawOutState();a&&a.preventDefault()};
DvtScrollbarGripper.prototype._mouseDownHandler=function(a){this.removeEventListener("mouseover",this._mouseOverHandler,!1,this);this.removeEventListener("mouseout",this._mouseOutHandler,!1,this);this._thumb.handleGripDragStart(this,a);this._drawDownState();this.getContext().getStage().addEventListener("mousemove",this._mouseMoveHandler,!1,this);this.getContext().getStage().addEventListener("mouseup",this._mouseUpHandler,!1,this);a&&(a.preventDefault(),a.stopPropagation())};
DvtScrollbarGripper.prototype._mouseMoveHandler=function(a){this._thumb.handleGripDragMove(this,a);a&&a.preventDefault()};
DvtScrollbarGripper.prototype._mouseUpHandler=function(a){this.getContext().getStage().removeEventListener("mousemove",this._mouseMoveHandler,!1,this);this.getContext().getStage().removeEventListener("mouseup",this._mouseUpHandler,!1,this);this.addEventListener("mouseover",this._mouseOverHandler,!1,this);this.addEventListener("mouseout",this._mouseOutHandler,!1,this);this._drawUpState();this._thumb.handleGripDragEnd(this,a);a&&a.preventDefault()};
DvtScrollbarGripper.prototype.drawHighlightState=function(){this.setStroke(this._nailOverStroke);this.setFill(this._nailOverFill);this._grippy.setStroke(this._overStroke);this._grippy.setFill(this._overFill)};DvtScrollbarGripper.prototype.drawPlainState=function(){this.setStroke(this._nailTouchStroke);this.setFill(this._nailTouchFill);this._grippy.setStroke(this._touchStroke);this._grippy.setFill(this._touchFill)};
DvtScrollbarGripper.prototype._drawOverState=function(){this.setAlpha(1);DvtAgent.getAgent().isTouchDevice()?this.drawPlainState():this.drawHighlightState()};DvtScrollbarGripper.prototype._drawUpState=function(){this.setStroke(this._nailUpStroke);this.setFill(this._nailUpFill);this._grippy.setStroke(this._upStroke);this._grippy.setFill(this._upFill)};
DvtScrollbarGripper.prototype._drawDownState=function(){this.setStroke(this._nailDownStroke);this.setFill(this._nailDownFill);this._grippy.setStroke(this._downStroke);this._grippy.setFill(this._downFill)};DvtScrollbarGripper.prototype._drawOutState=function(){this.setAlpha(0.0010);this.setStroke(this._nailUpStroke);this.setFill(this._nailUpFill);this._grippy.setStroke(this._upStroke);this._grippy.setFill(this._upFill)};DvtScrollbarGripper.prototype.getContainer=function(){return this._container};
DvtScrollbarGripper.prototype.getX=function(){return this._container.getX()};DvtScrollbarGripper.prototype.getY=function(){return this._container.getY()};DvtScrollbarGripper.prototype.getWidth=function(){return this._container.getWidth()};DvtScrollbarGripper.prototype.getHeight=function(){return this._container.getHeight()};DvtScrollbarGripper.prototype.setX=function(a){this._container.setX(a)};DvtScrollbarGripper.prototype.setY=function(a){this._container.setY(a)};
DvtScrollbarGripper.prototype.setStroke=function(a){this._container.setStroke(a)};DvtScrollbarGripper.prototype.setFill=function(a){this._container.setFill(a)};var DvtScrollbarThumb=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtScrollbarThumb,DvtContainer,"DvtScrollbarThumb");DvtScrollbarThumb.UP_BORDER_COLOR="#c2cadb";DvtScrollbarThumb.UP_FILL_COLORS=["#ffffff","#e4eef8"];DvtScrollbarThumb.UP_FILL_ALPHAS=[1,1];DvtScrollbarThumb.UP_FILL_RATIOS=[70,255];
DvtScrollbarThumb.OVER_BORDER_COLOR="#097bf8";DvtScrollbarThumb.OVER_FILL_COLORS=["#ffffff","#bfdefd"];DvtScrollbarThumb.OVER_FILL_ALPHAS=[1,1];DvtScrollbarThumb.OVER_FILL_RATIOS=[70,255];DvtScrollbarThumb.DOWN_BORDER_COLOR="#c2cadb";DvtScrollbarThumb.DOWN_FILL_COLORS=["#ffffff","#e4eef8"];DvtScrollbarThumb.DOWN_FILL_ALPHAS=[1,1];DvtScrollbarThumb.DOWN_FILL_RATIOS=[70,255];DvtScrollbarThumb.GRIP_ZONE_COLOR="#b6bbca";
DvtScrollbarThumb.prototype.Init=function(a,b){var d,e,g,h;this._sb=a;this._drawGrippers=b;a.isHorizontal()?(d=a.getX()+a.getThumbStart(),e=a.getY(),g=a.getThumbLength(),h=a.getHeight()):(d=a.getX(),e=a.getY()+a.getHeight()-a.getThumbStart()-a.getThumbLength(),g=a.getWidth(),h=a.getThumbLength());var k=a.getContext();DvtScrollbarThumb.superclass.Init.call(this,k);this._container=new DvtRect(k,d,e,g,h,null);this._UpBorderColor=DvtScrollbarThumb.UP_BORDER_COLOR;this._arUpFillColors=DvtScrollbarThumb.UP_FILL_COLORS;
this._OverBorderColor=DvtScrollbarThumb.OVER_BORDER_COLOR;this._arOverFillColors=DvtScrollbarThumb.OVER_FILL_COLORS;this._DownBorderColor=DvtScrollbarThumb.DOWN_BORDER_COLOR;this._arDownFillColors=DvtScrollbarThumb.DOWN_FILL_COLORS;this._gripStroke=new DvtSolidStroke(DvtScrollbarThumb.GRIP_ZONE_COLOR,null,1);this._grip=this._createGrip();this._startGripper=this._createStartGripper();this._endGripper=this._createEndGripper();this._upStroke=new DvtSolidStroke(DvtScrollbarThumb.UP_BORDER_COLOR,null,
1);this._overStroke=new DvtSolidStroke(DvtScrollbarThumb.OVER_BORDER_COLOR,null,1);this._downStroke=new DvtSolidStroke(DvtScrollbarThumb.DOWN_BORDER_COLOR,null,1);d=this._sb.isHorizontal()?270:0;this._upFill=new DvtLinearGradientFill(d,this._arUpFillColors,DvtScrollbarThumb.UP_FILL_ALPHAS);this._overFill=new DvtLinearGradientFill(d,this._arOverFillColors,DvtScrollbarThumb.OVER_FILL_ALPHAS);this._downFill=new DvtLinearGradientFill(d,this._arDownFillColors,DvtScrollbarThumb.DOWN_FILL_ALPHAS);DvtAgent.getAgent().isTouchDevice()?
(this.addEventListener("touchstart",this._touchHandler,!1,this),this.addEventListener("touchmove",this._touchHandler,!1,this),this.addEventListener("touchend",this._touchHandler,!1,this)):(this.addEventListener("mouseover",this._mouseOverHandler,!1,this),this.addEventListener("mouseout",this._mouseOutHandler,!1,this),this.addEventListener("mousedown",this._mouseDownHandler,!1,this));this._container.setPixelHinting(!0);this._container.addChild(this._grip);this._drawGrippers&&(this._container.addChild(this._startGripper),
this._container.addChild(this._endGripper));this.addChild(this._container);DvtAgent.getAgent().isTouchDevice()?this._drawOverState():this._drawUpState()};
DvtScrollbarThumb.prototype.immediateTouchAttempted=function(a,b){this.getContext().getTouchManager().containsTouchId(b.identifier)||(this.processThumbDragStart(this.getContext().getRelativePosition(b.pageX,b.pageY)),this.getContext().getTouchManager().saveProcessedTouchDefault(b.identifier,this,this._container,this._sb,"thumb",this),this.drawFullHighlightState(),a.blockTouchHold())};
DvtScrollbarThumb.prototype.immediateTouchMoved=function(a,b){this.processThumbDragMove(this.getContext().getRelativePosition(b.pageX,b.pageY));a.preventDefault()};DvtScrollbarThumb.prototype.immediateTouchEnded=function(a,b){this.getContext().getTouchManager().containsGrouping(this._sb)||this.drawFullPlainState();this.processThumbDragEnd(this.getContext().getRelativePosition(b.pageX,b.pageY))};
DvtScrollbarThumb.prototype._touchHandler=function(a){this.getContext().getTouchManager().processAssociatedTouchDefault(a,this)};
DvtScrollbarThumb.prototype.updateSize=function(){var a=this._sb;a.isHorizontal()?(this.setX(a.getX()+a.getThumbStart()),this.setWidth(a.getThumbLength())):(this.setY(a.getY()+a.getThumbStart()),this.setHeight(a.getThumbLength()));this._startGripper.updatePosition();this._endGripper.updatePosition();null!=this._grip&&-1!=this._container._findChild(this._grip)?(this._container.removeChild(this._grip),this._grip=this._createGrip(),this._container.addChild(this._grip)):this._grip=this._createGrip()};
DvtScrollbarThumb.prototype.isHorizontal=function(){return this._sb.isHorizontal()};
DvtScrollbarThumb.prototype._createGrip=function(){var a=this.getX()+this.getWidth()/2,b=this.getY()+this.getHeight()/2,d="";this._sb.isHorizontal()?(d+=DvtPathUtils.moveTo(a-4.5,b-3),d+=DvtPathUtils.lineTo(a-4.5,b+3),d+=DvtPathUtils.moveTo(a-1.5,b-3),d+=DvtPathUtils.lineTo(a-1.5,b+3),d+=DvtPathUtils.moveTo(a+1.5,b-3),d+=DvtPathUtils.lineTo(a+1.5,b+3),d+=DvtPathUtils.moveTo(a+4.5,b-3),d+=DvtPathUtils.lineTo(a+4.5,b+3)):(d+=DvtPathUtils.moveTo(a-3,b-4.5),d+=DvtPathUtils.lineTo(a+3,b-4.5),d+=DvtPathUtils.moveTo(a-
3,b-1.5),d+=DvtPathUtils.lineTo(a+3,b-1.5),d+=DvtPathUtils.moveTo(a-3,b+1.5),d+=DvtPathUtils.lineTo(a+3,b+1.5),d+=DvtPathUtils.moveTo(a-3,b+4.5),d+=DvtPathUtils.lineTo(a+3,b+4.5));DvtPathUtils.closePath();a=new DvtPath(this.getContext(),d);a.setStroke(this._gripStroke);a.setMouseEnabled(!1);return a};DvtScrollbarThumb.prototype._createStartGripper=function(){return this.isHorizontal()?new DvtScrollbarGripper(this,DvtScrollbarGripper.TYPE_LEFT):new DvtScrollbarGripper(this,DvtScrollbarGripper.TYPE_TOP)};
DvtScrollbarThumb.prototype._createEndGripper=function(){return this.isHorizontal()?new DvtScrollbarGripper(this,DvtScrollbarGripper.TYPE_RIGHT):new DvtScrollbarGripper(this,DvtScrollbarGripper.TYPE_BOTTOM)};DvtScrollbarThumb.prototype._mouseOverHandler=function(a){this._drawOverState();a&&a.preventDefault()};DvtScrollbarThumb.prototype._mouseOutHandler=function(a){this._drawUpState();a&&a.preventDefault()};
DvtScrollbarThumb.prototype._mouseDownHandler=function(a){this.removeEventListener("mouseover",this._mouseOverHandler,!1,this);this.removeEventListener("mouseout",this._mouseOutHandler,!1,this);this.processThumbDragStart(new DvtPoint(a._event.clientX,a._event.clientY));this._drawDownState();this.getContext().getStage().addEventListener("mousemove",this._mouseMoveHandler,!1,this);this.getContext().getStage().addEventListener("mouseup",this._mouseUpHandler,!1,this);a&&a.preventDefault()};
DvtScrollbarThumb.prototype.processThumbDragStart=function(a){this._sb.processThumbDragStart(a)};
DvtScrollbarThumb.prototype._mouseUpHandler=function(a){this.getContext().getStage().removeEventListener("mousemove",this._mouseMoveHandler,!1,this);this.getContext().getStage().removeEventListener("mouseup",this._mouseUpHandler,!1,this);this.processThumbDragEnd(new DvtPoint(a._event.clientX,a._event.clientY));this._drawUpState();this.addEventListener("mouseover",this._mouseOverHandler,!1,this);this.addEventListener("mouseout",this._mouseOutHandler,!1,this);a&&a.preventDefault()};
DvtScrollbarThumb.prototype.processThumbDragEnd=function(a){this._sb.processThumbDragEnd(a)};DvtScrollbarThumb.prototype._mouseMoveHandler=function(a){this.processThumbDragMove(new DvtPoint(a._event.clientX,a._event.clientY));a&&a.preventDefault()};DvtScrollbarThumb.prototype.processThumbDragMove=function(a){this._sb.processThumbDragMove(a)};DvtScrollbarThumb.prototype.handleGripDragStart=function(a,b){this._sb.handleGripDragStart(a,b)};
DvtScrollbarThumb.prototype.processGripDragStart=function(a,b){this._sb.processGripDragStart(a,b)};DvtScrollbarThumb.prototype.handleGripDragMove=function(a,b){this._sb.handleGripDragMove(a,b)};DvtScrollbarThumb.prototype.processGripDragMove=function(a,b){this._sb.processGripDragMove(a,b)};DvtScrollbarThumb.prototype.handleGripDragEnd=function(a,b){this._sb.handleGripDragEnd(a,b)};DvtScrollbarThumb.prototype.processGripDragEnd=function(a,b){this._sb.processGripDragEnd(a,b)};
DvtScrollbarThumb.prototype._drawUpState=function(){this.setStroke(this._upStroke);this.setFill(this._upFill);this._drawGrippers&&(this._startGripper.setAlpha(0.0010),this._endGripper.setAlpha(0.0010))};DvtScrollbarThumb.prototype.drawFullHighlightState=function(){this.drawHighlightState();this._drawGrippers&&(this._startGripper.drawHighlightState(),this._endGripper.drawHighlightState())};
DvtScrollbarThumb.prototype.drawFullPlainState=function(){this._drawGrippers&&(this._startGripper.drawPlainState(),this._endGripper.drawPlainState());this.drawPlainState()};DvtScrollbarThumb.prototype.drawHighlightState=function(){this.setStroke(this._overStroke);this.setFill(this._overFill)};DvtScrollbarThumb.prototype.drawPlainState=function(){this.setStroke(this._upStroke);this.setFill(this._upFill)};
DvtScrollbarThumb.prototype._drawOverState=function(){DvtAgent.getAgent().isTouchDevice()?this.drawPlainState():this.drawHighlightState();this._drawGrippers&&(this._startGripper.setAlpha(1),this._endGripper.setAlpha(1))};DvtScrollbarThumb.prototype._drawDownState=function(){this.setStroke(this._downStroke);this.setFill(this._downFill);this._drawGrippers&&(this._startGripper.setAlpha(0.0010),this._endGripper.setAlpha(0.0010))};DvtScrollbarThumb.prototype.getX=function(){return this._container.getX()};
DvtScrollbarThumb.prototype.getY=function(){return this._container.getY()};DvtScrollbarThumb.prototype.getWidth=function(){return this._container.getWidth()};DvtScrollbarThumb.prototype.getHeight=function(){return this._container.getHeight()};DvtScrollbarThumb.prototype.setX=function(a){this._container.setX(a)};DvtScrollbarThumb.prototype.setY=function(a){this._container.setY(a)};DvtScrollbarThumb.prototype.setWidth=function(a){this._container.setWidth(a)};DvtScrollbarThumb.prototype.setHeight=function(a){this._container.setHeight(a)};
DvtScrollbarThumb.prototype.setStroke=function(a){this._container.setStroke(a)};DvtScrollbarThumb.prototype.setFill=function(a){this._container.setFill(a)};var DvtScrollableContainer=function(a,b,d,e,g,h,k){this.Init(a,b,d,e,g,h,k)};DvtObj.createSubclass(DvtScrollableContainer,DvtContainer,"DvtScrollableContainer");DvtScrollableContainer.DEFAULT_SCROLLBAR_WIDTH=14;
DvtScrollableContainer.prototype.Init=function(a,b,d,e,g,h,k){DvtScrollableContainer.superclass.Init.call(this,a,k);this._scrollbarContentGap=h;this._sbWidth=DvtScrollableContainer.DEFAULT_SCROLLBAR_WIDTH;this._minW=b;this._maxW=e;this._maxContentW=e-this._sbWidth-this._scrollbarContentGap;this._fullW=0;this._minH=d;this._maxH=g;this._maxContentH=g-this._sbWidth-this._scrollbarContentGap;this._fullH=0;this._hsb=null;this._hsbStart=this._hsbScale=0;this._vsb=null;this._translateX=this._translateY=
this._vsbStart=this._vsbScale=0;this._contentPane=new DvtContainer(a);DvtScrollableContainer.superclass.addChild.call(this,this._contentPane);this._fullContentClip=new DvtClipPath(k);this._fullContentClip.addRect(0,0,this._maxW,this._maxH);this._contentPane.setClipPath(this._fullContentClip);this._scrolledContentClip=new DvtClipPath(k+"_clipped");this._scrolledContentClip.addRect(0,0,this._maxContentW,this._maxContentH);this._isBiDi=DvtStyleUtils.isLocaleR2L()};
DvtScrollableContainer.prototype.getScrollbarWidth=function(){return this._sbWidth};DvtScrollableContainer.prototype.setScrollbarWidth=function(a){this._maxH=this._maxH+this._sbWidth-a;this._maxContentW=this._maxContentW+this._sbWidth-a;this._sbWidth=a};DvtScrollableContainer.prototype.addChild=function(a){this._contentPane.addChild(a);this.refresh()};DvtScrollableContainer.prototype.addChildAt=function(a,b){this._contentPane.addChildAt(a,b);this.refresh()};
DvtScrollableContainer.prototype.removeChild=function(a){this._contentPane.removeChild(a);this.refresh()};DvtScrollableContainer.prototype.removeChildAt=function(a){this._contentPane.removeChildAt(a);this.refresh()};DvtScrollableContainer.prototype.getNumChildren=function(){return this._contentPane.getNumChildren()};DvtScrollableContainer.prototype.contains=function(a,b){return this._contentPane.contains(a,b)};DvtScrollableContainer.prototype.getChildAfter=function(a){return this._contentPane.getChildAfter(a)};
DvtScrollableContainer.prototype.getChildBefore=function(a){return this._contentPane.getChildBefore(a)};DvtScrollableContainer.prototype.getChildIndex=function(a){return this._contentPane.getChildIndex(a)};DvtScrollableContainer.prototype.getIterator=function(a){return this._contentPane.getIterator(a)};DvtScrollableContainer.prototype.removeChildren=function(){this._contentPane.removeChildren()};DvtScrollableContainer.prototype.swap=function(a,b){this._contentPane.swap(a,b)};
DvtScrollableContainer.prototype.getDimensions=function(a){var b=new DvtRectangle(0,0,this._fullW,this._fullH);this.hasHorizontalScrollbar()&&this.hasVerticalScrollbar()?(b.h=this._maxH,b.w=this._maxW):this.hasHorizontalScrollbar()?(b.w=this._maxW,b.h=this._fullH+this._scrollbarContentGap+this._sbWidth):this.hasVerticalScrollbar()&&(b.w=this._fullW+this._scrollbarContentGap+this._sbWidth,b.h=this._maxH);return!a||a===this?b:this.ConvertCoordSpaceRect(b,a)};
DvtScrollableContainer.prototype.setVerticalThumbPosition=function(a){this._vsb&&(this._vsbStart=a,this._contentPane.setTranslateY(-a),this._vsb.moveSlider(a-this._vsb.getThumbStart()))};DvtScrollableContainer.prototype.getVerticalThumbPosition=function(){return this._vsb.getThumbStart()};DvtScrollableContainer.prototype.setHorizontalThumbPosition=function(a){this._hsb&&(this._hsbStart=a,this._contentPane.setTranslateX(-a),this._hsb.moveSlider(a-this._hsb.getThumbStart()))};
DvtScrollableContainer.prototype.getHorizontalThumbPosition=function(){return this._hsb.getThumbStart()};DvtScrollableContainer.prototype.hasHorizontalScrollbar=function(){return null!=this._hsb};
DvtScrollableContainer.prototype.refresh=function(){this._removeVSB();this._removeHSB();var a=this._contentPane.getDimensions(),b=!1,d=!1;a.w>this._maxContentW&&(d=!0);if(a.h>(d?this._maxContentH:this._maxH))b=!0;this._fullH=Math.max(a.h,this._minH);this._fullW=Math.max(a.w,this._minW);b&&d?this._contentPane.setClipPath(this._scrolledContentClip):this._contentPane.setClipPath(this._fullContentClip);b&&this._addVSB(d);d&&this._addHSB(b);a=this._scrollbarContentGap+this._sbWidth;this._isBiDi&&b?this._contentPane.setTranslateX(a):
this._contentPane.setTranslateX(0)};DvtScrollableContainer.prototype.hasVerticalScrollbar=function(){return null!=this._vsb};DvtScrollableContainer.prototype._removeHSB=function(){this._hsb&&(DvtScrollableContainer.superclass.removeChild.call(this,this._hsb),this._hsb=null)};DvtScrollableContainer.prototype._removeVSB=function(){this._vsb&&(DvtScrollableContainer.superclass.removeChild.call(this,this._vsb),this._vsb=null)};
DvtScrollableContainer.prototype._addVSB=function(a){if(!this._vsb){var b=a?this._maxH-this._sbWidth:this._maxH;this._vsbLength=b;var d=this._isBiDi?0:a?this._maxW-this._sbWidth:this._fullW+this._scrollbarContentGap;this._vsb=new DvtScrollbar(this.getContext(),d,0,this._sbWidth,b,!1);DvtScrollableContainer.superclass.addChild.call(this,this._vsb)}a=a?this._maxContentH:this._maxH;b=Math.max(a/this._fullH*this._vsb.getScrollAreaLength(),DvtScrollbar.MIN_THUMB_SIZE);this._vsbScale=(this._fullH-a)/(this._vsb.getScrollAreaLength()-
b);this._vsb.setLogicalThumbStartAndLength(this._vsbStart,b);this._vsb.addEventListener(DvtScrollbarEvent.SB_MOVE,this._onVerticalScroll,!1,this)};
DvtScrollableContainer.prototype._addHSB=function(a){if(!this._hsb){var b=a?this._maxW-this._sbWidth:this._maxW;this._hsbLength=b;var d=this._isBiDi&&a?this._sbWidth:0,e=a?this._maxH-this._sbWidth:this._fullH+this._scrollbarContentGap;this._hsb=new DvtScrollbar(this.getContext(),d,e,b,this._sbWidth,!0);DvtScrollableContainer.superclass.addChild.call(this,this._hsb)}a=a?this._maxContentW:this._maxW;b=Math.max(a/this._fullW*this._hsb.getScrollAreaLength(),DvtScrollbar.MIN_THUMB_SIZE);this._hsbScale=
(this._fullW-a)/(this._hsb.getScrollAreaLength()-b);this._hsb.setLogicalThumbStartAndLength(this._hsbStart,b);this._hsb.addEventListener(DvtScrollbarEvent.SB_MOVE,this._onHorizontalScroll,!1,this)};DvtScrollableContainer.prototype._onVerticalScroll=function(a){a=a.getMovedDelta();0!=a&&(this._translateY-=a*this._vsbScale,this._contentPane.setTranslateY(this._translateY),this._fireScrollEvent(this._hsb?this._hsbLength*this._hsbScale+this._translateX:0,this._vsbLength*this._vsbScale+this._translateY))};
DvtScrollableContainer.prototype._onHorizontalScroll=function(a){a=a.getMovedDelta();0!=a&&(this._translateX-=a*this._hsbScale,this._contentPane.setTranslateX(this._translateX),this._fireScrollEvent(this._hsbLength*this._hsbScale+this._translateX,this._vsb?this._vsbLength*this._vsbScale+this._translateY:0))};DvtScrollableContainer.prototype._fireScrollEvent=function(a,b){this.FireListener(new DvtScrollEvent(a,b))};var DvtDragRecognizer=function(){};DvtObj.createSubclass(DvtDragRecognizer,DvtObj,"DvtDragRecognizer");
DvtDragRecognizer.prototype.prepDrag=function(){};DvtDragRecognizer.prototype.abortPrep=function(){};DvtDragRecognizer.prototype.recognizeDrag=function(){return!0};var DvtDragSource=function(a){this.Init(a)};DvtObj.createSubclass(DvtDragSource,DvtObj,"DvtDragSource");DvtDragSource.DRAG_FEEDBACK_MARGIN=2;DvtDragSource.prototype.Init=function(a){this._context=a;this._dragCoords=this._dragObj=this._dragCandidate=null};DvtDragSource.prototype.getDragCandidate=function(){return this._dragCandidate};
DvtDragSource.prototype.setDragCandidate=function(a){this._dragCandidate=a&&a.isDragAvailable&&a.getDragTransferable?a:null};DvtDragSource.prototype.isDragAvailable=function(a){return null!=this._dragCandidate?this._dragCandidate.isDragAvailable(a):null};DvtDragSource.prototype.getDragTransferable=function(a,b){return this._dragCandidate?(this._dragObj=this._dragCandidate,this._dragCoords={x:a,y:b},this._dragCandidate.getDragTransferable(a,b)):null};
DvtDragSource.prototype.getDragOverFeedback=function(a,b){this._context.getTooltipManager().hideTooltip();var d=this.getDragObject();return d&&d.getDragFeedback?d.getDragFeedback(a,b):null};DvtDragSource.prototype.getDragContext=function(a,b){return this._dragObj&&this._dragObj.getDragContext?this._dragObj.getDragContext(a,b):null};DvtDragSource.prototype.getDragObject=function(){return this._dragObj};DvtDragSource.prototype.getDragCoords=function(){return this._dragCoords};
DvtDragSource.prototype.getDragOffset=function(a,b){var d=null,e=this.getDragOverFeedback(a,b);if(e){var g=DvtDnDUtils.getDragFeedbackBounds(e,this._context.getStage()),h=this.getDragObject();h&&h.afterDragOverFeedback&&h.afterDragOverFeedback(e);g&&(d={},d.x=a-g.x,d.y=b-g.y,d.x+=DvtDragSource.DRAG_FEEDBACK_MARGIN,d.y+=DvtDragSource.DRAG_FEEDBACK_MARGIN)}return d};DvtDragSource.prototype.getPointerOffset=function(){return{x:0,y:0}};
DvtDragSource.prototype.initiateDrag=function(){DvtAgent.getAgent().isTouchDevice()&&this._context&&this._context.getTouchManager().cancelTouchHold()};DvtDragSource.prototype.dragDropEnd=function(){this._dragCoords=this._dragObj=this._dragCandidate=null};var DvtDropTarget=function(){};DvtObj.createSubclass(DvtDropTarget,DvtObj,"DvtDropTarget");DvtDropTarget.prototype.acceptDrag=function(){return null};DvtDropTarget.prototype.dragEnter=function(){};DvtDropTarget.prototype.dragExit=function(){};
DvtDropTarget.prototype.getDropSite=function(){return null};var DvtButton=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtButton,DvtContainer,"DvtButton");DvtButton.STATE_ENABLED=0;DvtButton.STATE_OVER=1;DvtButton.STATE_DOWN=2;DvtButton.STATE_DISABLED=3;DvtButton.NO_EVENT_LISTENERS=!0;
DvtButton.prototype.Init=function(a,b,d,e,g,h){DvtButton.superclass.Init.call(this,a,h);this.setUpState(b);this.setOverState(d);this.setDownState(e);g&&this.setDisabledState(g);this.setEnabled(!0);this._drawUpState();this._tooltip=null;this._bToggled=this._bToggleEnabled=!1};DvtButton.prototype.isEnabled=function(){return this._enabled};
DvtButton.prototype.setEnabled=function(a){this._enabled!=a&&((this._enabled=a)?(this.addEventListener("mouseover",this._mouseOverHandler,!1,this),this.addEventListener("mouseout",this._mouseOutHandler,!1,this),this.addEventListener("mousedown",this._mouseDownHandler,!1,this),this.addEventListener("mouseup",this._mouseUpHandler,!1,this),this.addEventListener("click",this._clickHandler,!1,this)):(this.removeEventListener("mouseover",this._mouseOverHandler,!1,this),this.removeEventListener("mouseout",
this._mouseOutHandler,!1,this),this.removeEventListener("mousedown",this._mouseDownHandler,!1,this),this.removeEventListener("mouseup",this._mouseUpHandler,!1,this),this.removeEventListener("click",this._clickHandler,!1,this)))};DvtButton.prototype._mouseOverHandler=function(a){this._logEvent(a);this._bToggled||this._drawOverState()};DvtButton.prototype._mouseOutHandler=function(a){this._logEvent(a);this._bToggled||this._drawUpState()};
DvtButton.prototype._mouseDownHandler=function(a){this._logEvent(a);this._bToggled||this._drawDownState()};DvtButton.prototype._mouseUpHandler=function(a){this._logEvent(a);this._bToggled||this._drawOverState()};DvtButton.prototype._clickHandler=function(a){this._logEvent(a);this._bToggleEnabled&&((this._bToggled=!this._bToggled)?this._drawDownState():this._drawOverState())};
DvtButton.prototype._drawUpState=function(){this._enableButton(this.upState,!0);this._enableButton(this.downState,!1);this._enableButton(this.overState,!1);this._enableButton(this.disabledState,!1)};DvtButton.prototype._drawOverState=function(){this._enableButton(this.upState,!1);this._enableButton(this.downState,!1);this._enableButton(this.overState,!0);this._enableButton(this.disabledState,!1)};
DvtButton.prototype._drawDownState=function(){this._enableButton(this.upState,!1);this._enableButton(this.downState,!0);this._enableButton(this.overState,!1);this._enableButton(this.disabledState,!1)};DvtButton.prototype._drawDisabledState=function(){this._enableButton(this.upState,!1);this._enableButton(this.overState,!1);this._enableButton(this.downState,!1);this._enableButton(this.disabledState,!0)};DvtButton.prototype._enableButton=function(a,b){a&&a.setAlpha(b?1:0)};
DvtButton.prototype._enableMouseEvents=function(a,b){a.setMouseEnabled&&a.setMouseEnabled(b);for(var d=a.firstChild;null!=d;)this._enableMouseEvents(d,b),d=d.nextSibling};DvtButton.prototype.setUpState=function(a){if(!this.upState||this.upState!=a)this.upState&&this.removeChild(this.upState),a&&this.addChild(a),this.upState=a};DvtButton.prototype.setDownState=function(a){if(!this.downState||this.downState!=a)this.downState&&this.removeChild(this.downState),a&&this.addChild(a),this.downState=a};
DvtButton.prototype.setOverState=function(a){if(!this.overState||this.overState!=a)this.overState&&this.removeChild(this.overState),a&&this.addChild(a),this.overState=a};DvtButton.prototype.setDisabledState=function(a){if(!this.disabledState||this.disabledState==a)this.disabledState&&this.removeChild(this.disabledState),a&&this.addChild(a),this.disabledState=a};DvtButton.prototype._logEvent=function(){};DvtButton.prototype.setTooltip=function(a){this._tooltip=a};DvtButton.prototype.getTooltip=function(){return this._tooltip};
DvtButton.prototype.isClickEventPropagationStopped=function(){return!0};DvtButton.prototype.initState=function(){this.isEnabled()?this._drawUpState():this._drawDisabledState()};
DvtButton.prototype.setSize=function(a,b){var d=this.upState;d&&(d.setWidth&&a&&d.setWidth(a),d.setHeight&&b&&d.setHeight(b));if(d=this.downState)d.setWidth&&a&&d.setWidth(a),d.setHeight&&b&&d.setHeight(b);if(d=this.overState)d.setWidth&&a&&d.setWidth(a),d.setHeight&&b&&d.setHeight(b);if(d=this.disabledState)d.setWidth&&a&&d.setWidth(a),d.setHeight&&b&&d.setHeight(b)};
DvtButton.prototype.setX=function(a,b){var d=a-b,e=this.upState;e&&a&&this._setChildX(e,d);(e=this.downState)&&a&&this._setChildX(e,d);(e=this.overState)&&a&&this._setChildX(e,d);(e=this.disabledState)&&this._setChildX(e,d)};DvtButton.prototype._setChildX=function(a,b){for(var d=0;d<a.getNumChildren();d++){var e=a.getChildAt(d);e instanceof DvtDisplayable&&e.setTranslateX(b)}};DvtButton.prototype.setToggleEnabled=function(a){this._bToggleEnabled=a};DvtButton.prototype.isToggleEnabled=function(){return this._bToggleEnabled};
DvtButton.prototype.setToggled=function(a){this._bToggleEnabled&&((this._bToggled=a)?this._drawDownState():this._drawUpState())};DvtButton.prototype.isToggled=function(){return this._bToggled};var DvtLogicalObject=function(){};DvtObj.createSubclass(DvtLogicalObject,DvtObj,"DvtLogicalObject");DvtLogicalObject.prototype.getDisplayables=function(){};var DvtTooltipSource=function(){};DvtObj.createSubclass(DvtTooltipSource,DvtObj,"DvtTooltipSource");DvtTooltipSource.prototype.getTooltip=function(){};
DvtTooltipSource.prototype.getDatatip=function(){};DvtTooltipSource.prototype.getDatatipColor=function(){};var DvtSelectable=function(){};DvtObj.createSubclass(DvtSelectable,DvtObj,"DvtSelectable");DvtSelectable.prototype.isSelectable=function(){};DvtSelectable.prototype.isSelected=function(){};DvtSelectable.prototype.setSelected=function(){};DvtSelectable.prototype.showHoverEffect=function(){};DvtSelectable.prototype.hideHoverEffect=function(){};var DvtComponentKeyboardHandler=function(){};
DvtComponentKeyboardHandler.prototype.handleKeyboardEvent=function(){};DvtComponentKeyboardHandler.prototype.hideKeyboardFocusEffect=function(){};var DvtKeyboardNavigable=function(){};DvtObj.createSubclass(DvtKeyboardNavigable,DvtObj,"DvtKeyboardNavigable");DvtKeyboardNavigable.prototype.getNextNavigable=function(){};DvtKeyboardNavigable.prototype.getKeyboardBoundingBox=function(){};DvtKeyboardNavigable.prototype.showKeyboardFocusEffect=function(){};
DvtKeyboardNavigable.prototype.hideKeyboardFocusEffect=function(){};DvtKeyboardNavigable.prototype.isShowingKeyboardFocusEffect=function(){};DvtKeyboardNavigable.prototype.getContextMenuLocation=function(){};var DvtCategoricalObject=function(){};DvtObj.createSubclass(DvtCategoricalObject,DvtObj,"DvtCategoricalObject");DvtCategoricalObject.prototype.getCategories=function(){};var DvtContextMenuSource=function(){};DvtObj.createSubclass(DvtContextMenuSource,DvtObj,"DvtContextMenuSource");
DvtContextMenuSource.prototype.getContextMenuId=function(){};DvtContextMenuSource.prototype.getContextMenuLocation=function(){};var DvtPopupSource=function(){};DvtObj.createSubclass(DvtPopupSource,DvtObj,"DvtPopupSource");DvtPopupSource.prototype.getId=function(){};DvtPopupSource.prototype.getShowPopupBehaviors=function(){};var DvtZOrderManager=function(){};DvtObj.createSubclass(DvtZOrderManager,DvtObj,"DvtZOrderManager");DvtZOrderManager.prototype.bringToFrontOfSelection=function(){};
DvtZOrderManager.prototype.pushToBackOfSelection=function(){};DvtZOrderManager.prototype.setNumFrontObjs=function(){};var DvtAutomationContainer=function(){};DvtObj.createSubclass(DvtAutomationContainer,DvtObj,"DvtAutomationContainer");DvtAutomationContainer.prototype.dispatchTestEvent=function(){};var DvtSimpleObjPeer=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtSimpleObjPeer,DvtObj,"DvtSimpleObjPeer");
DvtSimpleObjPeer.prototype.Init=function(a,b,d){this._tooltip=a;this._datatip=b;this._datatipColor=d};DvtSimpleObjPeer.prototype.setTooltip=function(a){this._tooltip=a};DvtSimpleObjPeer.prototype.setDatatip=function(a){this._datatip=a};DvtSimpleObjPeer.prototype.setDatatipColor=function(a){this._datatipColor=a};DvtSimpleObjPeer.prototype.getTooltip=function(){return this._tooltip};DvtSimpleObjPeer.prototype.getDatatip=function(){return this._datatip};DvtSimpleObjPeer.prototype.getDatatipColor=function(){return this._datatipColor};
var DvtBundle=function(){};DvtObj.createSubclass(DvtBundle,DvtObj,"DvtBundle");DvtBundle.format=function(a,b){return a.replace(/\{(\d+)\}/g,function(a,e){return b[e]})};DvtBundle.prototype.getTranslatedString=function(a,b){var d=a;null!==b&&void 0!==b&&(d=b instanceof Array?DvtBundle.format(d,b):DvtBundle.format(d,[b]));return d};
DvtBundle.prototype.getRBString=function(a,b,d){"undefined"!==typeof DvtChartBundle_RB&&d in DvtChartBundle_RB?(a=DvtChartBundle_RB[d],null!==b&&void 0!==b&&(a=b instanceof Array?DvtBundle.format(a,b):DvtBundle.format(a,[b]))):a=this.getTranslatedString(a,b);return a};var DvtContextMenuHandler=function(a){this.Init(a)};DvtObj.createSubclass(DvtContextMenuHandler,DvtObj,"DvtContextMenuHandler");DvtContextMenuHandler.TYPE_BODY_CONTEXT_MENU="bodyContextMenu";DvtContextMenuHandler.TYPE_CONTEXT_MENU="contextMenu";
DvtContextMenuHandler.TYPE_MULTI_SELECT_CONTEXT_MENU="multiSelectContextMenu";DvtContextMenuHandler._ATTR_MENU_CONTAINER_TYPE="t";DvtContextMenuHandler._ATTR_MENU_CONTAINER_POPUP_ID="id";DvtContextMenuHandler._ATTR_MENU_ITEMS="i";DvtContextMenuHandler._ATTR_ITEM_TEXT="t";DvtContextMenuHandler._ATTR_ITEM_DISABLED="di";DvtContextMenuHandler._ATTR_ITEM_SEP_BEFORE="sb";DvtContextMenuHandler._ATTR_ITEM_CLIENT_ID="id";DvtContextMenuHandler._ATTR_ITEM_DESTINATION="d";
DvtContextMenuHandler._ATTR_ITEM_TARGET_FRAME="tf";DvtContextMenuHandler.prototype.Init=function(a){this._context=a;this._xmlNodes=[];this._impl=a.getImplFactory().newContextMenuHandler();this._impl.setObj(this)};DvtContextMenuHandler.prototype.add=function(a){this._xmlNodes.push(a)};DvtContextMenuHandler.prototype.show=function(a,b,d){return this._impl.getMenuEvent(this._xmlNodes,a,b,d)};DvtContextMenuHandler.prototype.prepareMenuItems=function(a,b,d){this._impl.prepareMenuItems(a,b,d)};
DvtContextMenuHandler.prototype.getMenuItems=function(a,b){b||(b=0);if(a===DvtContextMenuHandler.TYPE_BODY_CONTEXT_MENU||a===DvtContextMenuHandler.TYPE_MULTI_SELECT_CONTEXT_MENU)b=0;for(var d=0;d<this._xmlNodes.length;d++){var e=this._xmlNodes[d];if(a==e.getAttribute(DvtContextMenuHandler._ATTR_MENU_CONTAINER_TYPE)&&null!=b&&0<=b){var g=e.getChildNodes();if(g&&g.length>b&&(e=g[b].getAttribute(DvtContextMenuHandler._ATTR_MENU_ITEMS))){for(var d=g[g.length-1].getChildNodes(),e=e.split(","),g=[],h=0;h<
e.length;h++){var k=d[e[h]],m=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_TEXT),n=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_DISABLED),o=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_SEP_BEFORE),q=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_CLIENT_ID),s=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_DESTINATION),k=k.getAttribute(DvtContextMenuHandler._ATTR_ITEM_TARGET_FRAME),q=new DvtContextMenuSelectEvent(a,q,s,k);g.push(new DvtContextMenuItem(q,m,n,o))}return g}}}return null};
DvtContextMenuHandler.prototype.getContext=function(){return this._context};var DvtPopupBehaviorHandler=function(a,b,d){this._context=a;this._callback=b;this._callbackObj=d;this._hoverBehavior=this._hoverTarget=this._popupPosition=null;this._hoverPopupShown=!1;this._hoverTimer=new DvtTimer(a,500,this._onHoverDelay,this,1)};DvtObj.createSubclass(DvtPopupBehaviorHandler,DvtObj,"DvtPopupBehaviorHandler");
DvtPopupBehaviorHandler.prototype.processClick=function(a,b,d){var e=!1;if(a&&b&&0<b.length)for(var g=0;g<b.length;g++){var h=b[g];if(h&&(h.getTriggerType()==DvtShowPopupBehavior.TRIGGER_TYPE_ACTION||h.getTriggerType()==DvtShowPopupBehavior.TRIGGER_TYPE_CLICK))e=this._createShowPopupEvent(a,h,d),this._context.getJsExt().dispatchEvent(this._callback,this._callbackObj,null,e),e=!0}return e};
DvtPopupBehaviorHandler.prototype.processMouseOver=function(a,b,d){if(a===this._hoverTarget)return!0;if(a&&b&&0<b.length)for(var e=0;e<b.length;e++){var g=b[e];if(g&&g.getTriggerType()==DvtShowPopupBehavior.TRIGGER_TYPE_MOUSE_HOVER)return this._hoverTarget=a,this._hoverBehavior=g,this._popupPosition=d,this._hoverTimer.start(),!0}return!1};
DvtPopupBehaviorHandler.prototype.processMouseOut=function(a){this._hoverTarget&&this._hoverBehavior&&a===this._hoverTarget&&(this._hoverPopupShown?(a=new DvtHidePopupEvent(this._hoverBehavior.getPopupId()),this._context.getJsExt().dispatchEvent(this._callback,this._callbackObj,null,a)):this._hoverTimer.stop(),this._hoverBehavior=this._hoverTarget=null,this._hoverPopupShown=!1)};DvtPopupBehaviorHandler.prototype.processMouseMove=function(a){this._popupPosition=a};
DvtPopupBehaviorHandler.prototype._createShowPopupEvent=function(a,b,d){var e=b;!e.getAlign()&&!e.getAlignId()&&(e=new DvtShowPopupBehavior(e.getPopupId(),e.getTriggerType(),null,DvtShowPopupBehavior.ALIGN_END_AFTER));(b=a.getPopupBounds?a.getPopupBounds(b):null)?e=new DvtShowPopupBehavior(e.getPopupId(),e.getTriggerType(),null,e.getAlign()):(d=this._context.getDocumentUtils().getStageRelativePosition(this._context.getStage(),d.x,d.y),b=new DvtRectangle(d.x,d.y-5,1,5));e=new DvtShowPopupEvent(e,b,
null);DvtEventManager._addContextInfo(a,e);return e};DvtPopupBehaviorHandler.prototype._onHoverDelay=function(){if(this._hoverTarget&&this._hoverBehavior){this._hoverPopupShown=!0;var a=this._createShowPopupEvent(this._hoverTarget,this._hoverBehavior,this._popupPosition);this._context.getJsExt().dispatchEvent(this._callback,this._callbackObj,null,a)}};var DvtClientBehaviorHandler=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtClientBehaviorHandler,DvtObj,"DvtClientBehaviorHandler");
DvtClientBehaviorHandler.prototype.Init=function(a,b,d){this._context=a;this._callback=b;this._callbackObj=d};DvtClientBehaviorHandler.prototype.processClick=function(a,b){var d=!1;if(a&&b&&0<b.length)for(var e=0;e<b.length;e++){var g=b[e];if(g&&(g.getTriggerType()==DvtClientBehavior.TRIGGER_TYPE_ACTION||g.getTriggerType()==DvtClientBehavior.TRIGGER_TYPE_CLICK))d=this.CreateClientBehaviorEvent(a,g),this._context.getJsExt().dispatchEvent(this._callback,this._callbackObj,null,d),d=!0}return d};
DvtClientBehaviorHandler.prototype.CreateClientBehaviorEvent=function(a,b){var d=new DvtClientBehaviorEvent(b);DvtEventManager._addContextInfo(a,d);return d};var DvtSelectionHandler=function(a){this.Init(a)};DvtObj.createSubclass(DvtSelectionHandler,DvtObj,"DvtSelectionHandler");DvtSelectionHandler.TYPE_SINGLE="s";DvtSelectionHandler.TYPE_MULTIPLE="m";DvtSelectionHandler.prototype.Init=function(a){this._selection=[];this._type=a?a:DvtSelectionHandler.TYPE_SINGLE};
DvtSelectionHandler.prototype.getType=function(){return this._type};DvtSelectionHandler.prototype.getSelectedCount=function(){return this._selection.length};DvtSelectionHandler.prototype.getSelection=function(){return this._selection.slice(0)};DvtSelectionHandler.prototype.getSelectedIds=function(){for(var a=[],b=0;b<this._selection.length;b++)a.push(this._selection[b].getId());return a};
DvtSelectionHandler.prototype.processInitialSelections=function(a,b){this.clearSelection();if(a&&b)for(var d=0;d<a.length;d++)for(var e=0;e<b.length;e++){var g=b[e].getId();if(null!=g&&DvtSelectionHandler._isEquals(a[d],g)&&b[e].isSelectable&&b[e].isSelectable()){this._addToSelection(b[e],!0);break}}};
DvtSelectionHandler.prototype.processClick=function(a,b){if(a&&a.isUnrelatedToSelection&&a.isUnrelatedToSelection())return!1;var d=!1;b&&this._type==DvtSelectionHandler.TYPE_MULTIPLE?a&&a.isSelectable&&a.isSelectable()&&(d=a.isSelected()?this.removeFromSelection(a):this._addToSelection(a,!0)):d=a&&a.isSelectable&&a.isSelectable()?this._addToSelection(a,!1):this.clearSelection();return d};
DvtSelectionHandler.prototype.processMouseOver=function(a){a&&a.isSelectable&&a.isSelectable()&&a.showHoverEffect&&a.showHoverEffect()};DvtSelectionHandler.prototype.processMouseOut=function(a){a&&a.isSelectable&&a.isSelectable()&&a.hideHoverEffect&&a.hideHoverEffect()};DvtSelectionHandler.prototype._addToSelection=function(a,b){if(a.isSelected())return!1;b||this.clearSelection();a.setSelected(!0);this._selection.push(a);return!0};
DvtSelectionHandler.prototype.removeFromSelection=function(a){if(!a.isSelected())return!1;a.setSelected(!1);for(var b=0;b<this._selection.length;b++)if(this._selection[b]==a){this._selection.splice(b,1);break}return!0};DvtSelectionHandler.prototype.clearSelection=function(){if(0>=this._selection.length)return!1;for(;0<this._selection.length;)this._selection.pop().setSelected(!1);return!0};DvtSelectionHandler._isEquals=function(a,b){return a==b?!0:a instanceof String?!1:a&&a.equals?a.equals(b):!1};
var DvtKeyboardHandler=function(a){this.Init(a)};DvtObj.createSubclass(DvtKeyboardHandler,DvtObj,"DvtKeyboardHandler");DvtKeyboardHandler._OPTIMAL_ANGLE1=15/180*Math.PI;DvtKeyboardHandler._OPTIMAL_ANGLE2=40/180*Math.PI;DvtKeyboardHandler._SUBOPTIMAL_ANGLE_PENALTY1=2;DvtKeyboardHandler._SUBOPTIMAL_ANGLE_PENALTY2=6;DvtKeyboardHandler.prototype.Init=function(a){this._eventManager=a};
DvtKeyboardHandler.prototype.processKeyDown=function(a){var b=this._eventManager.getFocus();return b&&(this.isNavigationEvent(a)||this.isMultiSelectEvent(a))?(a.preventDefault(),a=b.getNextNavigable(a),this._eventManager.setFocus(a),a):null};
DvtKeyboardHandler.getNextNavigable=function(a,b,d){var e=null,g=0,h=0,b=b.keyCode;if(!a)return!d||1>d.length?null:d[0];for(var k=a.getKeyboardBoundingBox(),m=0;m<d.length;m++){var n=d[m];if(a!==n&&(h=n.getKeyboardBoundingBox(),DvtKeyboardHandler._isInBounds(k,h,b)&&(h=DvtKeyboardHandler._computeDelta(k,h,b),(b==DvtKeyboardEvent.UP_ARROW||b==DvtKeyboardEvent.LEFT_ARROW)&&0>h&&(!e||h>g)||(b==DvtKeyboardEvent.DOWN_ARROW||b==DvtKeyboardEvent.RIGHT_ARROW)&&0<h&&(!e||h<g))))e=n,g=h}return e?e:a};
DvtKeyboardHandler.prototype.getDefaultNavigable=function(a){if(!a||0>=a.length)return null;for(var b=a[0],d=b.getKeyboardBoundingBox(),e,g,h=1;h<a.length;h++)if(e=a[h],g=e.getKeyboardBoundingBox(),g.x==d.x&&g.y<d.y||g.x<d.x)b=e,d=b.getKeyboardBoundingBox();return b};DvtKeyboardHandler.prototype.isNavigationEvent=function(a){switch(a.keyCode){case DvtKeyboardEvent.UP_ARROW:case DvtKeyboardEvent.DOWN_ARROW:case DvtKeyboardEvent.LEFT_ARROW:case DvtKeyboardEvent.RIGHT_ARROW:return!0}return!1};
DvtKeyboardHandler.prototype.isSelectionEvent=function(){return!1};DvtKeyboardHandler.prototype.isMultiSelectEvent=function(){return!1};DvtKeyboardHandler.prototype.isContextMenuEvent=function(a){return a.keyCode==DvtKeyboardEvent.M&&a.altKey&&a.ctrlKey};
DvtKeyboardHandler._isInBounds=function(a,b,d){if(d==DvtKeyboardEvent.UP_ARROW||d==DvtKeyboardEvent.DOWN_ARROW){var d=a.x,a=d+a.w,e=b.x;return!(d>=e+b.w||a<=e)}if(d==DvtKeyboardEvent.LEFT_ARROW||d==DvtKeyboardEvent.RIGHT_ARROW)return d=a.y,a=d+a.h,e=b.y,!(d>=e+b.h||a<=e)};
DvtKeyboardHandler._computeDelta=function(a,b,d){var e=0,g=a.getCenter().x,a=a.getCenter().y,h=b.getCenter().x,b=b.getCenter().y;if(d==DvtKeyboardEvent.UP_ARROW||d==DvtKeyboardEvent.DOWN_ARROW)e=b-a;else if(d==DvtKeyboardEvent.LEFT_ARROW||d==DvtKeyboardEvent.RIGHT_ARROW)e=h-g;return e};
DvtKeyboardHandler.getNextAdjacentNavigable=function(a,b,d){b=b.keyCode;if(!d)return null;if(!a)return d[0];for(var e=a,g=Number.MAX_VALUE,h=!1,k=0;k<d.length;k++){var m=d[k];if(m!==a&&DvtKeyboardHandler._isValidDestination(m,a,b)){var n=DvtKeyboardHandler._calcInContact(m,a,b);if(!h||n){var o=DvtKeyboardHandler._calcDistanceAngleWeighted(m,a,b);if(!h&&n||o<g&&(h&&n||!h))g=o,e=m,h=n}}}return e};
DvtKeyboardHandler._calcInContact=function(a,b,d){a=a.getKeyboardBoundingBox();b=b.getKeyboardBoundingBox();switch(d){case DvtKeyboardEvent.UP_ARROW:return DvtKeyboardHandler._isVerticallyAligned(a,b)&&(b.y<=a.y+a.h||DvtKeyboardHandler._areEqualWithinTolerance(b.y,a.y+a.h));case DvtKeyboardEvent.DOWN_ARROW:return DvtKeyboardHandler._isVerticallyAligned(a,b)&&(a.y<=b.y+b.h||DvtKeyboardHandler._areEqualWithinTolerance(a.y,b.y+b.h));case DvtKeyboardEvent.RIGHT_ARROW:return DvtKeyboardHandler._isHorizontallyAligned(a,
b)&&(a.x<=b.x+b.w||DvtKeyboardHandler._areEqualWithinTolerance(a.x,b.x+b.w));case DvtKeyboardEvent.LEFT_ARROW:return DvtKeyboardHandler._isHorizontallyAligned(a,b)&&(b.x<=a.x+a.w||DvtKeyboardHandler._areEqualWithinTolerance(b.x,a.x+a.w))}return!1};DvtKeyboardHandler._isVerticallyAligned=function(a,b){return a.x>=b.x&&a.x<=b.x+b.w||b.x>=a.x&&b.x<=a.x+a.w};DvtKeyboardHandler._isHorizontallyAligned=function(a,b){return a.y>=b.y&&a.y<=b.y+b.h||b.y>=a.y&&b.y<=a.y+a.h};
DvtKeyboardHandler._calcDistanceAngleWeighted=function(a,b,d){var e=a.getKeyboardBoundingBox(),a=e.x+e.w/2,e=e.y+e.h/2,g=b.getKeyboardBoundingBox(),b=g.y+g.h/2,a=Math.abs(a-(g.x+g.w/2)),b=Math.abs(e-b),e=Math.atan2(b,a),a=Math.sqrt(a*a+b*b);if(e>DvtKeyboardHandler._OPTIMAL_ANGLE1&&(d==DvtKeyboardEvent.RIGHT_ARROW||d==DvtKeyboardEvent.LEFT_ARROW)||e<DvtMath.HALF_PI-DvtKeyboardHandler._OPTIMAL_ANGLE1&&(d==DvtKeyboardEvent.UP_ARROW||d==DvtKeyboardEvent.DOWN_ARROW))a=e>DvtKeyboardHandler._OPTIMAL_ANGLE2&&
(d==DvtKeyboardEvent.RIGHT_ARROW||d==DvtKeyboardEvent.LEFT_ARROW)||e<DvtMath.HALF_PI-DvtKeyboardHandler._OPTIMAL_ANGLE2&&(d==DvtKeyboardEvent.UP_ARROW||d==DvtKeyboardEvent.DOWN_ARROW)?a*DvtKeyboardHandler._SUBOPTIMAL_ANGLE_PENALTY2:a*DvtKeyboardHandler._SUBOPTIMAL_ANGLE_PENALTY1;return a};
DvtKeyboardHandler._isValidDestination=function(a,b,d){a=a.getKeyboardBoundingBox();b=b.getKeyboardBoundingBox();switch(d){case DvtKeyboardEvent.UP_ARROW:return a.y<b.y||DvtKeyboardHandler._areEqualWithinTolerance(a.y,b.y);case DvtKeyboardEvent.DOWN_ARROW:return a.y>b.y||DvtKeyboardHandler._areEqualWithinTolerance(a.y,b.y);case DvtKeyboardEvent.RIGHT_ARROW:return a.x>b.x||DvtKeyboardHandler._areEqualWithinTolerance(a.x,b.x);case DvtKeyboardEvent.LEFT_ARROW:return a.x<b.x||DvtKeyboardHandler._areEqualWithinTolerance(a.x,
b.x)}return!0};DvtKeyboardHandler._areEqualWithinTolerance=function(a,b){return 1.0E-7>=Math.abs(a-b)};var DvtMarqueeHandler=function(a,b,d,e){this.Init(a,b,d,e)};DvtMarqueeHandler.PANEL_BEHAVIOR_BOTH=0;DvtMarqueeHandler.PANEL_BEHAVIOR_HORIZ=1;DvtMarqueeHandler.PANEL_BEHAVIOR_VERT=1;DvtObj.createSubclass(DvtMarqueeHandler,DvtObj,"DvtMarqueeHandler");
DvtMarqueeHandler.prototype.Init=function(a,b,d,e){this._context=a;this._rootDisplayable=b;this._panelBehavior=DvtMarqueeHandler.PANEL_BEHAVIOR_BOTH;e&&(this._panelBehavior=e);this.m_iBandWidth=1;this.m_iBandColor="#c0c0c0";this.x=d.x;this.y=d.y;this.m_w=d.w;this.m_h=d.h;this._isMarqueeEnabled=!0;this.InitMarqueePanel()};DvtMarqueeHandler.prototype.isMarqueeEnabled=function(){return this._isMarqueeEnabled};DvtMarqueeHandler.prototype.enableMarquee=function(a){this._isMarqueeEnabled=a};
DvtMarqueeHandler.prototype.InitMarqueePanel=function(){var a=new DvtMarqueePanel(this._context);a.setVisible(!1);this._panel=a;this._rootDisplayable.addChild(a)};DvtMarqueeHandler.prototype.isInBounds=function(){return 0<=this.m_mouseX&&this.m_mouseX<=this.m_w&&0<=this.m_mouseY&&this.m_mouseY<=this.m_h?!0:!1};DvtMarqueeHandler.prototype.cancelMarqueeZoom=function(){this.removeCursor();this.m_bMouseDown=!1;var a=this._panel;a&&a.setVisible(!1)};
DvtMarqueeHandler.prototype.processDragStart=function(a,b){this.m_mouseX=a.x-this.x;this.m_mouseY=a.y-this.y;if(!this._isMarqueeEnabled||!this.isInBounds(b))return!1;this.m_bMouseDown=!0;this.m_iStartPosX=this.m_mouseX;this.m_iStartPosY=this.m_mouseY;this.m_prevPosX=this.m_mouseX;this.m_prevPosY=this.m_mouseY;return!0};DvtMarqueeHandler.prototype.processDragMove=function(a){this.m_mouseX=a.x-this.x;this.m_mouseY=a.y-this.y;return this._isMarqueeEnabled?this.handleMarqueeMove():!1};
DvtMarqueeHandler.prototype.handleMarqueeMove=function(){this.updateCursor();if(this.m_bMouseDown){var a=this._panel;this.calcMarqueeCoords();a.setPanelSize(this._panelWidth,this._panelHeight);a.Render();a.setTranslateX(this.x+this._panelX);a.setTranslateY(this.y+this._panelY);a.setBandAttributes(this.m_iBandWidth,this.m_iBandColor);a.setVisible(!0);return!0}return!1};
DvtMarqueeHandler.prototype.processDragEnd=function(a){this.m_mouseX=a.x-this.x;this.m_mouseY=a.y-this.y;this.m_bMouseDown&&(this.m_bMouseDown=!1,this._isMarqueeEnabled&&this.handleMarqueeEnd())};DvtMarqueeHandler.prototype.handleMarqueeEnd=function(){this.removeCursor();this.calcMarqueeCoords();this.HandleMarqueeDone()};DvtMarqueeHandler.prototype.HandleMarqueeDone=function(){};
DvtMarqueeHandler.prototype.calcMarqueeCoords=function(){var a=this.m_mouseX,b=this.m_mouseY;this.m_mouseX>this.m_w&&(a=this.m_w);0>this.m_mouseX&&(a=0);this.m_mouseY>this.m_h&&(b=this.m_h);0>this.m_mouseY&&(b=0);this._panelBehavior==DvtMarqueeHandler.PANEL_BEHAVIOR_BOTH?(this._panelX=Math.min(this.m_iStartPosX,a-1),this._panelY=Math.min(this.m_iStartPosY,b-1),this._panelWidth=Math.abs(a-this.m_iStartPosX),this._panelHeight=Math.abs(b-this.m_iStartPosY)):this._panelBehavior==DvtMarqueeHandler.PANEL_BEHAVIOR_HORIZ?
(this._panelX=Math.min(this.m_iStartPosX,a-1),this._panelY=0,this._panelWidth=Math.abs(a-this.m_iStartPosX),this._panelHeight=this.m_h):this._panelBehavior==DvtMarqueeHandler.PANEL_BEHAVIOR_VERT&&(this._panelX=0,this._panelY=Math.min(this.m_iStartPosY,b-1),this._panelWidth=this.m_w,this._panelHeight=Math.abs(b-this.m_iStartPosY))};DvtMarqueeHandler.prototype.updateCursor=function(){};DvtMarqueeHandler.prototype.removeCursor=function(){};DvtMarqueeHandler.prototype.isMarqueeHappening=function(){return this.m_bMouseDown};
var DvtMarqueeZoomHandler=function(a,b,d,e,g){this.InitZoom(a,b,d,e,g)};DvtMarqueeZoomHandler.ZOOM_OFF=0;DvtMarqueeZoomHandler.ZOOM_ON=1;DvtMarqueeZoomHandler.ZOOM_AUTO=2;DvtObj.createSubclass(DvtMarqueeZoomHandler,DvtMarqueeHandler,"DvtMarqueeZoomHandler");
DvtMarqueeZoomHandler.prototype.InitZoom=function(a,b,d,e,g){DvtMarqueeZoomHandler.superclass.Init.call(this,a,b,d,g);this.m_bZoomIn=!0;this.m_zoomMode=DvtMarqueeZoomHandler.ZOOM_ON;null!=e&&(this.m_zoomMode=e);this._isMarqueeEnabled=!1;this.m_zoomMode==DvtMarqueeZoomHandler.ZOOM_ON&&(this._isMarqueeEnabled=!0,this.updateCursor())};DvtMarqueeZoomHandler.prototype.processShiftZoom=function(a){a=!a;this.m_bZoomIn!=a&&(this.m_bZoomIn=a,this.updateCursor())};var DvtBlackBoxAnimationHandler=function(){};
DvtObj.createSubclass(DvtBlackBoxAnimationHandler,DvtObj,"DvtBlackBoxAnimationHandler");DvtBlackBoxAnimationHandler.ALPHA_FADE="alphaFade";DvtBlackBoxAnimationHandler.CONVEYOR_FROM_RIGHT="conveyorFromRight";DvtBlackBoxAnimationHandler.CONVEYOR_FROM_LEFT="conveyorFromLeft";DvtBlackBoxAnimationHandler.CUBE_TO_RIGHT="cubeToRight";DvtBlackBoxAnimationHandler.CUBE_TO_LEFT="cubeToLeft";DvtBlackBoxAnimationHandler.FLIP_RIGHT="flipRight";DvtBlackBoxAnimationHandler.FLIP_LEFT="flipLeft";
DvtBlackBoxAnimationHandler.TRANSITION_TO_RIGHT="transitionToRight";DvtBlackBoxAnimationHandler.TRANSITION_TO_LEFT="transitionToLeft";DvtBlackBoxAnimationHandler.SLIDE_TO_RIGHT="slideToRight";DvtBlackBoxAnimationHandler.SLIDE_TO_LEFT="slideToLeft";DvtBlackBoxAnimationHandler.ZOOM="zoom";
DvtBlackBoxAnimationHandler.isSupported=function(a){return a==DvtBlackBoxAnimationHandler.ALPHA_FADE||a==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_RIGHT||a==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_LEFT||a==DvtBlackBoxAnimationHandler.CUBE_TO_RIGHT||a==DvtBlackBoxAnimationHandler.CUBE_TO_LEFT||a==DvtBlackBoxAnimationHandler.FLIP_RIGHT||a==DvtBlackBoxAnimationHandler.FLIP_LEFT||a==DvtBlackBoxAnimationHandler.TRANSITION_TO_RIGHT||a==DvtBlackBoxAnimationHandler.TRANSITION_TO_LEFT||a==DvtBlackBoxAnimationHandler.SLIDE_TO_RIGHT||
a==DvtBlackBoxAnimationHandler.SLIDE_TO_LEFT||a==DvtBlackBoxAnimationHandler.ZOOM};
DvtBlackBoxAnimationHandler.getInAnimation=function(a,b,d,e,g){if(b==DvtBlackBoxAnimationHandler.ALPHA_FADE)return new DvtAnimFadeIn(a,d,g);if(b==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_RIGHT)return new DvtAnimConveyorIn(a,d,DvtBaseAnimation.DIR_E,g);if(b==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_LEFT)return new DvtAnimConveyorIn(a,d,DvtBaseAnimation.DIR_W,g);if(b==DvtBlackBoxAnimationHandler.CUBE_TO_RIGHT)return new DvtAnimCubeIn(a,d,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_CLOCKWISE,
g);if(b==DvtBlackBoxAnimationHandler.CUBE_TO_LEFT)return new DvtAnimCubeIn(a,d,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE,g);if(b==DvtBlackBoxAnimationHandler.FLIP_RIGHT)return new DvtAnimFlipIn(a,d,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_CLOCKWISE,g);if(b==DvtBlackBoxAnimationHandler.FLIP_LEFT)return new DvtAnimFlipIn(a,d,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE,g);if(b==DvtBlackBoxAnimationHandler.TRANSITION_TO_RIGHT)return new DvtAnimScaleFadeIn(a,
d,e,DvtBaseAnimation.DIR_NW,0.5,g);if(b==DvtBlackBoxAnimationHandler.TRANSITION_TO_LEFT)return new DvtAnimScaleFadeIn(a,d,e,DvtBaseAnimation.DIR_NE,0.5,g);if(b==DvtBlackBoxAnimationHandler.SLIDE_TO_RIGHT)return DvtBlackBoxAnimationHandler._offsetObjects(d,-e.w,0),new DvtAnimMoveBy(a,d,new DvtPoint(e.w,0),g);return b==DvtBlackBoxAnimationHandler.SLIDE_TO_LEFT?(DvtBlackBoxAnimationHandler._offsetObjects(d,e.w,0),new DvtAnimMoveBy(a,d,new DvtPoint(-e.w,0),g)):b==DvtBlackBoxAnimationHandler.ZOOM?new DvtAnimScaleFadeIn(a,
d,e,DvtBaseAnimation.DIR_C,0.5,g):null};
DvtBlackBoxAnimationHandler.getCombinedAnimation=function(a,b,d,e,g,h){if(b==DvtBlackBoxAnimationHandler.ALPHA_FADE)return new DvtCombinedAnimFade(a,d,e,h);if(b==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_RIGHT)return new DvtCombinedAnimConveyor(a,d,e,DvtBaseAnimation.DIR_W,DvtBaseAnimation.DIR_E,h);if(b==DvtBlackBoxAnimationHandler.CONVEYOR_FROM_LEFT)return new DvtCombinedAnimConveyor(a,d,e,DvtBaseAnimation.DIR_E,DvtBaseAnimation.DIR_W,h);if(b==DvtBlackBoxAnimationHandler.CUBE_TO_RIGHT)return new DvtCombinedAnimCube(a,d,
e,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_CLOCKWISE,h);if(b==DvtBlackBoxAnimationHandler.CUBE_TO_LEFT)return new DvtCombinedAnimCube(a,d,e,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE,h);if(b==DvtBlackBoxAnimationHandler.FLIP_RIGHT)return new DvtCombinedAnimFlip(a,d,e,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_CLOCKWISE,h);if(b==DvtBlackBoxAnimationHandler.FLIP_LEFT)return new DvtCombinedAnimFlip(a,d,e,DvtBaseAnimation.AXIS_Y,DvtBaseAnimation.ROT_DIR_COUNTERCLOCKWISE,
h);if(b==DvtBlackBoxAnimationHandler.TRANSITION_TO_RIGHT)return new DvtCombinedAnimScaleFade(a,d,e,g,DvtBaseAnimation.DIR_SE,DvtBaseAnimation.DIR_NW,0.5,h);if(b==DvtBlackBoxAnimationHandler.TRANSITION_TO_LEFT)return new DvtCombinedAnimScaleFade(a,d,e,g,DvtBaseAnimation.DIR_SW,DvtBaseAnimation.DIR_NE,0.5,h);if(b==DvtBlackBoxAnimationHandler.SLIDE_TO_RIGHT)return DvtBlackBoxAnimationHandler._offsetObjects(e,-g.w,0),new DvtCombinedAnimMoveBy(a,d,e,new DvtPoint(g.w,0),new DvtPoint(g.w,0),h);return b==
DvtBlackBoxAnimationHandler.SLIDE_TO_LEFT?(DvtBlackBoxAnimationHandler._offsetObjects(e,g.w,0),new DvtCombinedAnimMoveBy(a,d,e,new DvtPoint(-g.w,0),new DvtPoint(-g.w,0),h)):b==DvtBlackBoxAnimationHandler.ZOOM?new DvtCombinedAnimScaleFade(a,d,e,g,DvtBaseAnimation.DIR_C,DvtBaseAnimation.DIR_C,0.5,h):null};
DvtBlackBoxAnimationHandler._offsetObjects=function(a,b,d){if(a.length)for(var e=0;e<a.length;e++)DvtBlackBoxAnimationHandler._offsetObjects(a[e],b,d);else a&&(a.setTranslateX(a.getTranslateX()+b),a.setTranslateY(a.getTranslateY()+d))};var DvtDataAnimationHandler=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtDataAnimationHandler,DvtObj,"DvtDataAnimationHandler");
DvtDataAnimationHandler.prototype.Init=function(a,b){this._context=a;this._deleteContainer=b;this._playables=[];this._newChart=null};
DvtDataAnimationHandler.prototype.constructAnimation=function(a,b){b=b.slice(0);if(a)for(var d=0;d<a.length;d++){var e=a[d];if(e){for(var g=e.getId(),h=!1,k=0;k<b.length;k++){var m=b[k];if(m){var n=m.getId();if(g===n||g&&g.equals&&g.equals(n)){m.animateUpdate(this,e);b.splice(k,1);h=!0;break}}}h||(b[0]&&b[0].getChart&&(e._newChart=b[0].getChart()),e.animateDelete(this,this._deleteContainer))}}for(d=0;d<b.length;d++)b[d]&&b[d].animateInsert(this)};
DvtDataAnimationHandler.prototype.add=function(a,b){if(a){for(b||(b=0);this._playables.length<=b;)this._playables.push([]);this._playables[b].push(a)}};DvtDataAnimationHandler.prototype.getAnimation=function(){for(var a=[],b=0;b<this._playables.length;b++)if(0<this._playables[b].length){var d=new DvtParallelPlayable(this._context,this._playables[b]);a.push(d)}return new DvtSequentialPlayable(this._context,a)};DvtDataAnimationHandler.prototype.getNumPlayables=function(){return this._playables.length};
var DvtTooltipManager=function(){};DvtObj.createSubclass(DvtTooltipManager,DvtObj,"DvtTooltipManager");DvtTooltipManager.prototype.showDatatip=function(){};DvtTooltipManager.prototype.showTooltip=function(){};DvtTooltipManager.prototype.hideTooltip=function(){};var DvtCategoryRolloverHandler=function(){};DvtObj.createSubclass(DvtCategoryRolloverHandler,DvtObj,"DvtCategoryRolloverHandler");
DvtCategoryRolloverHandler.processEvent=function(a,b,d){if(a&&b)for(var e=!d?0.35:d,d=a.getCategory(),a=a.getType()===DvtCategoryRolloverEvent.TYPE_OVER?e:1,e=0;e<b.length;e++){var g=b[e];if(g&&g.getCategories&&0>DvtArrayUtils.indexOf(g.getCategories(),d)){var h=g.getDisplayables(h);DvtCategoryRolloverHandler._updateAlpha(h,a)}}};DvtCategoryRolloverHandler._updateAlpha=function(a,b,d){if(a)for(var e,g=0;g<a.length;g++)e=a[g],d?d.addProp(DvtAnimator.TYPE_NUMBER,e,e.getAlpha,e.setAlpha,b):e.setAlpha(b)};
var DvtHideShowCategoryHandler=function(){};DvtObj.createSubclass(DvtHideShowCategoryHandler,DvtObj,"DvtHideShowCategoryHandler");DvtHideShowCategoryHandler.processEvent=function(a,b){if(a&&b)for(var d=a.getCategory(),e=a.getType()===DvtHideShowCategoryEvent.TYPE_HIDE,g=0;g<b.length;g++){var h=b[g];if(h&&h.getCategories&&0<=DvtArrayUtils.indexOf(h.getCategories(),d)){var k=h.getDisplayables(k);DvtHideShowCategoryHandler._updateVisible(k,!e)}}};
DvtHideShowCategoryHandler._updateVisible=function(a,b){if(a)for(var d=0;d<a.length;d++)a[d].setVisible(b)};var DvtEventManager=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtEventManager,DvtObj,"DvtEventManager");DvtEventManager.CLEAR_SELECTION_ACTION_TYPE="clearSelectionActionType";
DvtEventManager.prototype.Init=function(a,b,d){this._context=a;this._callback=b;this._callbackObj=d;this.MarqueeHandler=this.ContextMenuHandler=this._selectionHandler=null;this.PopupHandler=new DvtPopupBehaviorHandler(a,b,d);this.ClientBehaviorHandler=this.CreateClientBehaviorHandler(a,b,d);this.KeyboardHandler=null;this.TooltipsEnabled=!0;a.getStage().getId();this.CustomTooltipManager=this._context.getCustomTooltipManager();this.CustomTooltipManager.addTooltipEventListener(DvtActionTooltipEvent.TOOLTIP_CLOSED_TYPE,
this.OnActionTooltipClosed,this);this.CustomTooltipManager.addTooltipEventListener(DvtActionTooltipEvent.TOOLTIP_STARTED_TYPE,this.OnActionTooltipStarted,this);this.TouchManager=null;this._isMagnifyShown=!1;this._focusedObj=null;this._bIgnoreNextClick=this._bMouseDrag=this._bMouseDown=this._bIgnoreClickAfterDrag=this._shouldDisplayKeyboardFocus=!1;this._ignoreNextClickOffTimer=null;this._eventInfo={};this._rolloverTypes=[];this._keyboardHandlers=[this];this._currentKeyboardHandlerIdx=-1};
DvtEventManager.prototype.getContext=function(){return this._context};DvtEventManager.prototype.associate=function(a,b){a&&(a._logicalObjects||(a._logicalObjects=[]),a._logicalObjects.push({logicalObject:b,eventManager:this}),a.getContext()instanceof DvtXmlContext&&a.getImpl().setLogicalObj&&a.getImpl().setLogicalObj(b))};
DvtEventManager.prototype.addListeners=function(a){a&&(DvtAgent.getAgent().isTouchDevice()?(this._context.initializeTouchManager(),this.hideTooltip(),this._hideMagnify(),this.TouchManager=this._context.getTouchManager(),a.addEventListener("touchstart",this.OnTouchStartBubble,!1,this),a.addEventListener("touchmove",this.OnTouchMoveBubble,!1,this),a.addEventListener("touchend",this.OnTouchEndBubble,!1,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOVER_START_TYPE,this.PreOnTouchHoverStart,
this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOVER_MOVE_TYPE,this.PreOnTouchHoverMove,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOVER_END_TYPE,this.PreOnTouchHoverEnd,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOVER_OUT_TYPE,this.PreOnTouchHoverOut,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOVER_OVER_TYPE,this.PreOnTouchHoverOver,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_CLICK_TYPE,
this.PreOnTouchClick,this),this.TouchManager.addTouchEventListener(DvtComponentTouchEvent.TOUCH_DOUBLE_CLICK_TYPE,this.PreOnTouchDblClick,this)):(a.addEventListener("click",this.PreOnClick,!1,this),a.addEventListener("dblclick",this.PreOnDblClick,!1,this),a.addEventListener("contextmenu",this.PreOnContextMenu,!1,this),a.addEventListener("mousemove",this.PreOnMouseMove,!1,this),a.addEventListener("mouseover",this.PreOnMouseOver,!1,this),a.addEventListener("mouseout",this.PreOnMouseOut,!1,this),a.addEventListener("mousedown",
this.PreOnMouseDown,!1,this),a.addEventListener("mouseup",this.PreOnMouseUp,!1,this),a.addEventListener("keydown",this.OnKeyDown,!1,this),a.addEventListener("keyup",this.OnKeyUp,!1,this)))};
DvtEventManager.prototype.removeListeners=function(a){a&&(this.hideTooltip(),DvtAgent.getAgent().isTouchDevice()?(this._context.initializeTouchManager(),this._hideMagnify(),a.removeEventListener("touchstart",this.OnTouchStartBubble,!1,this),a.removeEventListener("touchmove",this.OnTouchMoveBubble,!1,this),a.removeEventListener("touchend",this.OnTouchEndBubble,!1,this)):(a.removeEventListener("click",this.PreOnClick,!1,this),a.removeEventListener("dblclick",this.PreOnDblClick,!1,this),a.removeEventListener("contextmenu",
this.PreOnContextMenu,!1,this),a.removeEventListener("mousemove",this.PreOnMouseMove,!1,this),a.removeEventListener("mouseover",this.PreOnMouseOver,!1,this),a.removeEventListener("mouseout",this.PreOnMouseOut,!1,this),a.removeEventListener("mousedown",this.PreOnMouseDown,!1,this),a.removeEventListener("mouseup",this.PreOnMouseUp,!1,this),a.removeEventListener("keydown",this.OnKeyDown,!1,this),a.removeEventListener("keyup",this.OnKeyUp,!1,this)))};
DvtEventManager.prototype.destroy=function(){this.CustomTooltipManager&&(this.CustomTooltipManager.removeTooltipEventListener(DvtActionTooltipEvent.TOOLTIP_CLOSED_TYPE,this.OnActionTooltipClosed,this),this.CustomTooltipManager.removeTooltipEventListener(DvtActionTooltipEvent.TOOLTIP_STARTED_TYPE,this.OnActionTooltipStarted,this))};DvtEventManager.prototype.PreEventBubble=function(a){this.TouchManager.preEventBubble(a)};
DvtEventManager.prototype.setSelectionHandler=function(a){this._selectionHandler=a};DvtEventManager.prototype.getSelectionHandler=function(){return this._selectionHandler};DvtEventManager.prototype.setMarqueeHandler=function(a){this.MarqueeHandler=a};DvtEventManager.prototype.setDragSource=function(a){this.DragSource=a};DvtEventManager.prototype.setContextMenuHandler=function(a){this.ContextMenuHandler=a};
DvtEventManager.prototype.setKeyboardHandler=function(a){DvtAgent.getAgent().isTouchDevice()||(this.KeyboardHandler=a)};DvtEventManager.prototype.getKeyboardHandler=function(){return this.KeyboardHandler};
DvtEventManager.prototype.setFocusObj=function(a){if(a!=DvtKeyboardNavigable.CURRENT_NAVIGABLE){var b=this.getFocus();this.setFocus(a);b&&b.hideKeyboardFocusEffect();this.ShowKeyboardFocusByDefault()&&a.showKeyboardFocusEffect();-1<this._currentKeyboardHandlerIdx&&this._currentKeyboardHandlerIdx<this._keyboardHandlers.length&&(a=this._keyboardHandlers[this._currentKeyboardHandlerIdx],a!=this&&a.hideKeyboardFocusEffect());this._updateKeyboardHandlerIdx(this)}};
DvtEventManager.prototype.setFocus=function(a){this.KeyboardHandler&&(this._focusedObj=a)};DvtEventManager.prototype.getFocus=function(){return this.KeyboardHandler?this._focusedObj:null};
DvtEventManager.prototype.setFocused=function(a){var b=this.getFocus();b&&this.KeyboardHandler&&(a?this.getContext()instanceof DvtFlashContext?b.showKeyboardFocusEffect():this._shouldDisplayKeyboardFocus&&0<=this._currentKeyboardHandlerIdx&&this._currentKeyboardHandlerIdx<this._keyboardHandlers.length&&this._keyboardHandlers[this._currentKeyboardHandlerIdx]===this&&b.showKeyboardFocusEffect():b.hideKeyboardFocusEffect());a||(this._shouldDisplayKeyboardFocus=!1)};
DvtEventManager.prototype.ShowKeyboardFocusByDefault=function(){return!1};DvtEventManager.prototype.setTooltipsEnabled=function(a){this.TooltipsEnabled=a};DvtEventManager.prototype.getTooltipsEnabled=function(){return this.TooltipsEnabled};DvtEventManager.prototype.setCustomTooltipStyle=function(a,b){if(this.CustomTooltipManager){var d=this.CustomTooltipManager.getActionTooltip();d&&(a&&d.setTooltipFill(a),b&&(d.setFont(b),d.setMenuFontSize(b.size)))}};
DvtEventManager.prototype.GetLogicalObject=function(a,b){for(var d=a;d;){if(d._logicalObjects)for(var e=0;e<d._logicalObjects.length;e++){var g=d._logicalObjects[e];if(g.eventManager==this)return g.logicalObject}d=b?null:d.getParent()}return null};DvtEventManager.prototype._getShowPopupBehaviors=function(a){if(a&&a.getShowPopupBehaviors)return a.getShowPopupBehaviors()};DvtEventManager.prototype._getClientBehaviors=function(a){if(a&&a.getClientBehaviors)return a.getClientBehaviors()};
DvtEventManager.prototype.GetContextMenuType=function(a){a=(a=this.getSelectionHandler(a))?a.getSelection().length:0;return 0>=a?DvtContextMenuHandler.TYPE_BODY_CONTEXT_MENU:1==a?DvtContextMenuHandler.TYPE_CONTEXT_MENU:DvtContextMenuHandler.TYPE_MULTI_SELECT_CONTEXT_MENU};DvtEventManager.prototype._getContextMenuId=function(a){if(a&&a.getContextMenuId)return a.getContextMenuId()};DvtEventManager.prototype.GetTooltipColor=function(a){if(a&&a.getDatatipColor)return a.getDatatipColor()};
DvtEventManager.prototype.FireEvent=function(a,b){this._callback&&this._callback.call(this._callbackObj,a,b)};DvtEventManager.prototype.fireSelectionEvent=function(a){if(a=this.getSelectionHandler(a)){for(var a=a.getSelection(),b=[],d=0;d<a.length;d++)b.push(a[d].getId());this._callback.call(this._callbackObj,new DvtSelectionEvent(b))}};
DvtEventManager.prototype.PreOnClick=function(a){if(this._bIgnoreClickAfterDrag&&this.IsIgnoreNextClick())this.SetIgnoreNextClick(!1);else if(this.IsDoubleClickable(a.target)){if(this._clickTimer&&this._clickTimer.isRunning()){var b=this._savedClickEvent;if(a.pageX==b.pageX&&a.pageY==b.pageY)return;this._clickTimer.stop();this._onClickTimerEnd()}this._savedClickEvent=a;this._clickTimer||(this._clickTimer=new DvtTimer(this._context,250,this._onClickTimerEnd,this,1));this._clickTimer.reset();this._clickTimer.start()}else this._propagateEvent("click",
a,this.OnClick)};DvtEventManager.prototype._onClickTimerEnd=function(){var a=this._savedClickEvent;this._savedClickEvent=null;a&&this._propagateEvent("click",a,this.OnClick)};
DvtEventManager.prototype.OnClick=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a));this.OnClickInternal(a);var d=!1;if(this.KeyboardHandler&&b&&b.getNextNavigable){var e=b.getNextNavigable(a);e==DvtKeyboardNavigable.CURRENT_NAVIGABLE&&(d=!0)}d||this.ProcessSelectionEventHelper(b,a.ctrlKey);this._shouldDisplayKeyboardFocus=!1;if(b){this.KeyboardHandler&&b.getNextNavigable&&(e=b.getNextNavigable(a),this.setFocusObj(e));d=null;this._eventInfo[a]&&(d=this._eventInfo[a].popupDisplayed);
if(!d){if(e=this._getShowPopupBehaviors(b))d=new DvtPoint(a.pageX,a.pageY),d=this.PopupHandler.processClick(b,e,d);d&&(this._eventInfo[a].popupDisplayed=!0)}d||(a=this._getClientBehaviors(b))&&(d=this.ClientBehaviorHandler.processClick(b,a));!d&&b.isCommandComponent&&b.isCommandComponent()&&(a=new DvtActionEvent(DvtActionEvent.SUBTYPE_ACTION,b.getId()),DvtEventManager._addContextInfo(b,a),this._callback.call(this._callbackObj,a))}};
DvtEventManager.prototype.IsDoubleClickable=function(a){for(;a;){var b=this.GetLogicalObject(a,!0);if(b){if(b.isDoubleClickable&&b.isDoubleClickable())return!0;if(!this.IsPropagationEnabled("dblclick",null,a))break}a=a.getParent()}return!1};DvtEventManager.prototype.ProcessSelectionEventHelper=function(a,b){var d=this.getSelectionHandler(a);d&&d.processClick(a,b)&&this.fireSelectionEvent(a)};DvtEventManager.prototype.PreOnDblClick=function(a){this._propagateEvent("dblclick",a,this.OnDblClick)};
DvtEventManager.prototype.OnDblClick=function(a){if(this._clickTimer&&this._clickTimer.isRunning())this._clickTimer.stop(),this._savedClickEvent=null;else if(DvtAgent.getAgent().getPlatform()==DvtAgent.IE_PLATFORM){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a));b&&(!b.isDoubleClickable||!b.isDoubleClickable())&&this.OnClick(a)}};DvtEventManager.prototype.PreOnContextMenu=function(a){this._propagateEvent("contextmenu",a,this.OnContextMenu)};
DvtEventManager.prototype.OnContextMenu=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a));b&&b.getNextNavigable&&this.setFocus(b);this._onContextMenuHelper(a,b)};
DvtEventManager.prototype._onContextMenuHelper=function(a,b){this.OnContextMenuInternal(a);this._processActionPopup(this.GetCurrentTargetForEvent(a),new DvtPoint(a.pageX,a.pageY))&&a.preventDefault();this.ProcessSelectionEventHelper(b,a.ctrlKey);if(this.ContextMenuHandler){var d=this.GetContextMenuType(b),e=this._getContextMenuId(b);this.ContextMenuHandler.prepareMenuItems(a,d,e);if(d=this.ContextMenuHandler.show(a,d,e))this._context.getTooltipManager().hideTooltip(),this._callback.call(this._callbackObj,
d)}};
DvtEventManager.prototype.OnKeyDown=function(a){var b=a.keyCode,d=!1,e;e=0>this._currentKeyboardHandlerIdx||this._currentKeyboardHandlerIdx>this._keyboardHandlers.length?b==DvtKeyboardEvent.TAB&&a.shiftKey?this._keyboardHandlers.length-1:0:this._currentKeyboardHandlerIdx;b=b==DvtKeyboardEvent.TAB&&a.shiftKey?-1:1;for(e;0<=e&&e<this._keyboardHandlers.length&&!d;e+=b)if(d=this._keyboardHandlers[e],d=d===this?this.ProcessKeyboardEvent(a):d.handleKeyboardEvent(a))this._currentKeyboardHandlerIdx=e;return d};
DvtEventManager.prototype.handleKeyboardEvent=function(a){return this.OnKeyDown(a)};DvtEventManager.prototype.hideKeyboardFocusEffect=function(){var a=this.getFocus();a&&a.isShowingKeyboardFocusEffect()&&a.hideKeyboardFocusEffect()};
DvtEventManager.prototype.ProcessKeyboardEvent=function(a){if(!this.KeyboardHandler)return!1;this.hideTooltip();var b=this.getFocus(),d=null;if(a.keyCode==DvtKeyboardEvent.TAB&&b.isShowingKeyboardFocusEffect())return b.hideKeyboardFocusEffect(),!1;if(b&&this.KeyboardHandler.isContextMenuEvent(a))return b.getContextMenuLocation?d=b.getContextMenuLocation():(d=b.getKeyboardBoundingBox(),d=DvtStyleUtils.isLocaleR2L()?new DvtPoint(d.x,d.y):new DvtPoint(d.x+d.w,d.y)),a=this.GenerateMouseEventFromKeyboardEvent(a,
this._context.getStage(),d.x,d.y),a.ctrlKey=!1,this._onContextMenuHelper(a,b),!0;return(d=this.KeyboardHandler.processKeyDown(a))?(this._shouldDisplayKeyboardFocus=!0,b.hideKeyboardFocusEffect(),this.KeyboardHandler.isSelectionEvent(a)?this.ProcessSelectionEventHelper(d,a.shiftKey):this.KeyboardHandler.isMultiSelectEvent(a)&&this.ProcessSelectionEventHelper(d,a.ctrlKey),d.showKeyboardFocusEffect(),!0):!1};
DvtEventManager.prototype.GenerateMouseEventFromKeyboardEvent=function(a,b,d,e){var g=null;this._context instanceof DvtSvgContext&&(g=DvtSvgEventFactory.generateMouseEventFromKeyboardEvent(a,this._context,"click",b,d,e));return g};DvtEventManager.prototype.OnKeyUp=function(){};DvtEventManager.prototype.PreOnMouseMove=function(a){this._propagateEvent("mousemove",a,this.OnMouseMove)};
DvtEventManager.prototype.OnMouseMove=function(a){this._bIgnoreClickAfterDrag&&this._bMouseDown&&(this._bMouseDrag=!0);var b=this.GetCurrentTargetForEvent(a),d=this.GetLogicalObject(b);if(d){var e=a.pageX,g=a.pageY,h=this._context.getRelativePosition(e,g);this._eventInfo[a].tooltipDisplayed||(this.IsTooltipShowable(d,h)?this._processShowTooltip(b,d,e,g)&&(this._eventInfo[a].tooltipDisplayed=!0):this.hideTooltip());this.PopupHandler.processMouseMove(new DvtPoint(a.pageX,a.pageY));this.MarqueeHandler&&
this.MarqueeHandler.processDragMove(h)&&a.preventDefault();this.DragSource&&!a.dragSourceSet&&this.IsDragCandidate(d)&&(this.DragSource.setDragCandidate(d),a.dragSourceSet=!0)}};
DvtEventManager.prototype.PreOnMouseOver=function(a){this._propagateEvent("mouseover",a,this.OnMouseOver);var b=this._getRolloverHierarchy(a.target),d=this._getRolloverHierarchy(a.relatedTarget);if(0<b.length&&(b=b[b.length-1],b!=(0==d.length?null:d[d.length-1]))){this._eventInfo[a]={};try{this._eventInfo[a].currentTarget=b,this.OnRollOver(a)}finally{delete this._eventInfo[a]}}};
DvtEventManager.prototype._getRolloverHierarchy=function(a){for(var b=[];a;)this._isRolloverType(a)&&b.unshift(a),a=a.getParent();return b};DvtEventManager.prototype._isRolloverType=function(a){if(a=this.GetLogicalObject(a,!0))for(var b=0;b<this._rolloverTypes.length;b++)if(a instanceof this._rolloverTypes[b])return!0;return!1};DvtEventManager.prototype.addRolloverType=function(a){this._rolloverTypes.push(a)};
DvtEventManager.prototype.removeRolloverType=function(a){a=this._rolloverTypes.indexOf(a);-1!=a&&this._rolloverTypes.splice(a,1)};DvtEventManager.prototype.OnRollOver=function(){};
DvtEventManager.prototype.OnMouseOver=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a)),d=new DvtPoint(a.pageX,a.pageY);if(b){var e=this.getSelectionHandler(b);e&&e.processMouseOver(b);this._eventInfo[a].popupDisplayed||(e=this._getShowPopupBehaviors(b))&&this.PopupHandler.processMouseOver(b,e,d)&&(this._eventInfo[a].popupDisplayed=!0)}};
DvtEventManager.prototype.PreOnMouseOut=function(a){var b=this.GetLogicalObject(a.relatedTarget),d=a.target;this._eventInfo[a]={};try{var e=this._getRolloverHierarchy(a.target),g=this._getRolloverHierarchy(a.relatedTarget);if(0<e.length){var h=e[e.length-1];if(h!=(0==g.length?null:g[g.length-1]))this._eventInfo[a].currentTarget=h,this.OnRollOut(a)}if(this.GetLogicalObject(d))for(;d;){var k=this.GetLogicalObject(d,!0);if(k){if(b===k)break;this._eventInfo[a].currentTarget=d;this.OnMouseOut(a);if(!this.IsPropagationEnabled("mouseout",
a,d))break}d=d.getParent()}else this.OnMouseOut(a)}finally{delete this._eventInfo[a]}};DvtEventManager.prototype.OnRollOut=function(){};
DvtEventManager.prototype.OnMouseOut=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a));if(b){var d=this.GetLogicalObject(a.relatedTarget);b!=d&&((d=this.getSelectionHandler(b))&&d.processMouseOut(b),(d=this.getFocus())&&b===d&&this._shouldDisplayKeyboardFocus&&!d.isShowingKeyboardFocusEffect()&&d.showKeyboardFocusEffect(),this.hideTooltip(),this.PopupHandler.processMouseOut(b),this.DragSource&&!a.dragSourceSet&&(this.DragSource.setDragCandidate(null),a.dragSourceSet=!0))}};
DvtEventManager.prototype.PreOnMouseDown=function(a){this._propagateEvent("mousedown",a,this.OnMouseDown)};
DvtEventManager.prototype.OnMouseDown=function(a){this._bIgnoreClickAfterDrag&&(this._bMouseDown=!0);var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a)),d=this._context.getRelativePosition(a.pageX,a.pageY);this.isInActionPopup()&&this.CustomTooltipManager.closeActionTooltip();this.MarqueeHandler&&this.MarqueeHandler.processDragStart(d,b)&&a.preventDefault();this.DragSource&&!a.dragSourceSet&&this.IsDragCandidate(b)&&(this.DragSource.setDragCandidate(b),a.dragSourceSet=!0)};
DvtEventManager.prototype.PreOnMouseUp=function(a){this._propagateEvent("mouseup",a,this.OnMouseUp)};DvtEventManager.prototype.OnMouseUp=function(a){this._bIgnoreClickAfterDrag&&this._bMouseDown&&this._bMouseDrag&&this.SetIgnoreNextClick(!0);this._bMouseDrag=this._bMouseDown=!1;a=this._context.getRelativePosition(a.pageX,a.pageY);this.MarqueeHandler&&this.MarqueeHandler.processDragEnd(a)};
DvtEventManager.prototype._processMultiTouchTooltip=function(){var a=this.TouchManager.getTooltipInfo(),b=a.touchIds,a=a.tooltipTarget;0==b.length||!a?this.hideTooltip():(b=this.TouchManager.calcAveragePosition(b),a=this.GetLogicalObject(a),this._processObjectTooltip(b.x,b.y,a,null))};DvtEventManager.prototype.GetIgnoreNextClickOffTimer=function(){this._ignoreNextClickOffTimer||(this._ignoreNextClickOffTimer=new DvtTimer(this._context,500,this.HandleIgnoreNextClickOffTimer,this,1));return this._ignoreNextClickOffTimer};
DvtEventManager.prototype.HandleIgnoreNextClickOffTimer=function(){this.SetIgnoreNextClick(!1)};DvtEventManager.prototype.SetIgnoreNextClick=function(a){(this._bIgnoreNextClick=a)?(this.GetIgnoreNextClickOffTimer().reset(),this.GetIgnoreNextClickOffTimer().start()):this.GetIgnoreNextClickOffTimer().isRunning()&&this.GetIgnoreNextClickOffTimer().stop()};DvtEventManager.prototype.IsIgnoreNextClick=function(){return this._bIgnoreNextClick};
DvtEventManager.prototype.OnTouchStartBubble=function(a){this.PreEventBubble(a);a.isInitialTouch()&&(this._popupJustClosed=!1);this.DragSource&&this.DragSource.setDragCandidate(this.GetLogicalObject(a.target));this.isInActionPopup()&&(this.CustomTooltipManager.closeActionTooltip(),this.TouchManager.resetTouchHold());this.HandleImmediateTouchStartInternal(a);this.TouchManager.fireLogicalEvents(a);this.TouchManager.postEventBubble(a);this._processMultiTouchTooltip()};
DvtEventManager.prototype.OnTouchMoveBubble=function(a){this.PreEventBubble(a);this.TouchManager&&(this._prevActionClear=!1,this.HandleImmediateTouchMoveInternal(a),this.TouchManager.fireLogicalEvents(a),this.TouchManager.postEventBubble(a),this._processMultiTouchTooltip())};
DvtEventManager.prototype._handleTouchEndTimer=function(){for(var a=0;a<this._touchEndTimer.length;a++){var b=this._touchEndTimer[a];b.timer.stop();b=b.event;this.TouchManager&&(this.HandleImmediateTouchEndInternal(b),this.TouchManager.fireLogicalEvents(b),this.TouchManager.postEventBubble(b))}this._touchEndTimer=[]};
DvtEventManager.prototype.OnTouchEndBubble=function(a){this.PreEventBubble(a);var b=new DvtTimer(this._context,0,this._handleTouchEndTimer,this,1);this._touchEndTimer||(this._touchEndTimer=[]);this._touchEndTimer.push({event:a,timer:b});b.start()};DvtEventManager.prototype.HandleImmediateTouchStartInternal=function(){};DvtEventManager.prototype.HandleImmediateTouchMoveInternal=function(){};DvtEventManager.prototype.HandleImmediateTouchEndInternal=function(){};
DvtEventManager.prototype.PreOnTouchHoverStart=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_HOVER_START_TYPE,a,this.OnTouchHoverStart)};
DvtEventManager.prototype.OnTouchHoverStart=function(a){var b=this.GetCurrentTargetForEvent(a),d=this.GetLogicalObject(b),e=a.touch,g=e.pageX,e=e.pageY;this._context.getRelativePosition(g,e);this.UpdateTouchHoverFeedback(b);this.ProcessMagnifyStart(new DvtPoint(g,e),d);this.HandleTouchHoverStartInternal(a);this._processMultiTouchTooltip();this._prevActionClear=!1};DvtEventManager.prototype.PreOnTouchHoverMove=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_HOVER_MOVE_TYPE,a,this.OnTouchHoverMove)};
DvtEventManager.prototype.OnTouchHoverMove=function(a){var b=this.GetCurrentTargetForEvent(a),d=a.touch,e=d.pageX,g=d.pageY;this._context.getRelativePosition(e,g);var h=this.GetLogicalObject(b);this.UpdateTouchHoverFeedback(b);this.ProcessMagnify(new DvtPoint(e,g),h);this.HandleTouchHoverMoveInternal(a);this.PopupHandler.processMouseMove(new DvtPoint(d.pageX,d.pageY))};DvtEventManager.prototype.PreOnTouchHoverEnd=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_HOVER_END_TYPE,a,this.OnTouchHoverEnd)};
DvtEventManager.prototype.OnTouchHoverEnd=function(a){var b=this.GetCurrentTargetForEvent(a),d=this.GetLogicalObject(b),e=a.touch;this._hideMagnify();this.HandleTouchHoverEndInternal(a);(!d||!d.isSelected||!d.isSelected())&&this._processTouchSelection(d,a._isCancelEvent,!1);this.ProcessTouchContextMenu(a,d);this._processActionPopup(b,new DvtPoint(e.pageX,e.pageY))};DvtEventManager.prototype.PreOnTouchHoverOut=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_HOVER_OUT_TYPE,a,this.OnTouchHoverOut)};
DvtEventManager.prototype.OnTouchHoverOut=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a));this.HandleTouchHoverOutInternal(a);(a=this.getSelectionHandler(b))&&a.processMouseOut(b);this.PopupHandler.processMouseOut(b)};DvtEventManager.prototype.PreOnTouchHoverOver=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_HOVER_OVER_TYPE,a,this.OnTouchHoverOver)};
DvtEventManager.prototype.OnTouchHoverOver=function(a){var b=this.GetLogicalObject(this.GetCurrentTargetForEvent(a)),d=a.touch,d=new DvtPoint(d.pageX,d.pageY);this.HandleTouchHoverOverInternal(a);(a=this.getSelectionHandler(b))&&a.processMouseOver(b);(a=this._getShowPopupBehaviors(b))&&this.PopupHandler.processMouseOver(b,a,d)};DvtEventManager.prototype.PreOnTouchDblClick=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_DOUBLE_CLICK_TYPE,a,this.OnTouchDblClick)};
DvtEventManager.prototype.OnTouchDblClick=function(){};DvtEventManager.prototype.PreOnTouchClick=function(a){this._propagateEvent(DvtComponentTouchEvent.TOUCH_CLICK_TYPE,a,this.OnTouchClick)};
DvtEventManager.prototype.OnTouchClick=function(a){var b=this.GetCurrentTargetForEvent(a),d=a.touch,e=this.GetLogicalObject(b),g=new DvtPoint(d.pageX,d.pageY),h=!1;this._eventInfo[a]&&(h=this._eventInfo[a].popupDisplayed);if(!h){var k=this._getShowPopupBehaviors(e);k&&(h=this.PopupHandler.processClick(e,k,g));h&&(this._eventInfo[a].popupDisplayed=!0)}h||(g=this._getClientBehaviors(e))&&this.ClientBehaviorHandler.processClick(e,g);this.HandleTouchClickInternal(a)||(this._processTouchSelection(e,this._popupJustClosed,
!0),this.CustomTooltipManager.displayActionPopup()&&(this.UpdateActionTooltipLaunchedFeedback(b,new DvtPoint(d.pageX,d.pageY)),this.CustomTooltipManager.startActionPopupAtPosition(d.pageX,d.pageY,b)))};
DvtEventManager.prototype._processTouchSelection=function(a,b,d){var e=!1;if(e=this.getSelectionHandler(a))if(!a||!a.isSelectable||!a.isSelectable()){if(!b&&!this._prevActionClear){var g=b=!1;d&&(g=!0,this.isClearMenuAllowed()&&e.getType()==DvtSelectionHandler.TYPE_MULTIPLE&&1<e.getSelectedCount()&&(b=!0));g&&(b?this.addClearAllActionItem():(e=e.processClick(null,!1))&&this.fireSelectionEvent(a))}}else(e=e.processClick(a,!0))&&this.fireSelectionEvent(a);this._prevActionClear=!1};
DvtEventManager.prototype.OnActionTooltipClosed=function(a){a=a.targetObj;this.GetLogicalObject(a);this._popupJustClosed=!0;this._isInActionPopup=!1;this.CustomTooltipManager.getActionTooltip().containsMenuId(DvtEventManager.CLEAR_SELECTION_ACTION_TYPE)&&(this._prevActionClear=!0);this.CustomTooltipManager.clearActionTooltip();this.UpdateActionTooltipClosedFeedback(a)};DvtEventManager.prototype.OnActionTooltipStarted=function(){this._isInActionPopup=!0};
DvtEventManager.prototype._processObjectTooltip=function(a,b,d,e){this._processShowTooltip(e,d,a,b)};DvtEventManager.prototype._getTooltipInfo=function(a,b,d,e){var g=null,h=!1;b&&b.getDatatip&&(g=b.getDatatip(a,d,e))&&(h=!0);!g&&b&&b.getTooltip&&(g=b.getTooltip(a,d,e));return{text:g,isDatatip:h}};
DvtEventManager.prototype._processShowTooltip=function(a,b,d,e){if(this.TooltipsEnabled){var g=this._context.getRelativePosition(d,e),h=g.x,g=g.y,k=this._getTooltipInfo(a,b,h,g),a=k.isDatatip;if(k=k.text)return this.CustomTooltipManager.clearActionTooltip(),b=this.GetTooltipColor(b,h,g),this._isMagnifyShown?this.CustomTooltipManager.showMagnifyDatatip(d,e,k,b):(h=this._context.getTooltipManager(),a?h.showDatatip(d,e,k,b):h.showTooltip(d,e,k,null,!0,b)),this.TooltipLaunched(k,b),!0}this.hideTooltip();
return!1};DvtEventManager.prototype.hideTooltip=function(){var a=this._context.getTooltipManager();a&&a.hideTooltip();this._isMagnifyShown&&this.CustomTooltipManager.hideTooltip();this.TooltipHidden()};
DvtEventManager.prototype.ProcessTouchContextMenu=function(a,b){if(this.ContextMenuHandler){var d=this.GetContextMenuType(b),e=this._getContextMenuId(b),g=!1;if(b&&b.isSelected&&b.isSelected())g=!0;else{if(!b||!b.isSelectable||!b.isSelectable())d=DvtContextMenuHandler.TYPE_BODY_CONTEXT_MENU;d==DvtContextMenuHandler.TYPE_BODY_CONTEXT_MENU&&(g=!0)}if(g&&(d=this.ContextMenuHandler.getMenuItems(d,e))){for(e=0;e<d.length;e++){var h=d[e],g=this.CustomTooltipManager.getActionTooltip();g.setTooltipBorderColor(DvtCustomTooltip.DEFAULT_BORDER_COLOR);
h=new DvtContextMenuTooltipItem(this._context,"item"+e,this.ContextMenuItemListener,this,h);g.addMenuItem(h)}return 0<d.length}return!1}};DvtEventManager.prototype._processActionPopup=function(a,b){if(this.CustomTooltipManager.displayActionPopup())return this.SetupTouchTooltip(a),this.UpdateActionPopupShownFeedback(a),this.CustomTooltipManager.startActionPopupAtPosition(b.x,b.y,a),!0;this.UpdateActionPopupHiddenFeedback(a);return!1};DvtEventManager.prototype.TooltipLaunched=function(){};
DvtEventManager.prototype.TooltipHidden=function(){};DvtEventManager.prototype.SetupTouchTooltip=function(a){var b=this.GetLogicalObject(a),a=this.CustomTooltipManager.getActionTooltip();null==a.getTooltipBorderColor()&&(b=this.GetTooltipColor(b),a.setTooltipBorderColor(b))};DvtEventManager.prototype.OnContextMenuInternal=function(){};DvtEventManager.prototype.OnClickInternal=function(){};DvtEventManager.prototype.HandleTouchHoverStartInternal=function(){};
DvtEventManager.prototype.HandleTouchHoverMoveInternal=function(){};DvtEventManager.prototype.HandleTouchHoverEndInternal=function(){};DvtEventManager.prototype.HandleTouchHoverOverInternal=function(){};DvtEventManager.prototype.HandleTouchHoverOutInternal=function(){};DvtEventManager.prototype.HandleTouchClickInternal=function(){return!1};DvtEventManager.prototype.UpdateActionPopupShownFeedback=function(){};DvtEventManager.prototype.UpdateActionPopupHiddenFeedback=function(){};
DvtEventManager.prototype.UpdateTouchHoverFeedback=function(){};DvtEventManager.prototype.UpdateActionTooltipClosedFeedback=function(){};DvtEventManager.prototype.UpdateActionTooltipLaunchedFeedback=function(){};DvtEventManager.prototype.isInActionPopup=function(){return this._isInActionPopup};DvtEventManager.prototype.GetMagnifyContent=function(){return null};
DvtEventManager.prototype.ProcessMagnifyStart=function(a,b){this.IsMagnifyLensEnabled()&&(this.GetMagnifyLens().setDirty(!0),this.ProcessMagnify(a,b))};
DvtEventManager.prototype.ProcessMagnify=function(a,b){if(this.IsMagnifyLensEnabled()){var d=this.GetMagnifyLens(),e=this._context.getRelativePosition(a.x,a.y);if(this.GetMagnifyLensRegion(e,b)){if(d.isDirty()){var g=this.GetMagnifyContent(a);g&&d.updateMagnifyContent(g);d.setDirty(!1)}d.UpdatePosition(e.x,e.y);this.CustomTooltipManager.showMagnifyLens(a.x,a.y,d);this._isMagnifyShown=!0}else this._hideMagnify(),this._isMagnifyShown=!1}return!1};
DvtEventManager.prototype._hideMagnify=function(){this.CustomTooltipManager.hideMagnifyLens();this.CustomTooltipManager.hideTooltip();this._isMagnifyShown=!1};DvtEventManager.prototype.IsMagnifyLensEnabled=function(){return!1};DvtEventManager.prototype.GetMagnifyLensRegion=function(){return null};DvtEventManager.prototype.GetMagnifyLens=function(){return this.CustomTooltipManager.getMagnifyLens()};
DvtEventManager.prototype.IsTooltipShowable=function(a,b){if(!a)return!0;var d=this.GetTooltipsAllowedRegion(a),e=!0;d&&!d.containsPoint(b.x,b.y)&&(e=!1);return e&&this.IsTooltipShowableInternal&&this.IsTooltipShowableInternal(a,b)};DvtEventManager.prototype.IsTooltipShowableInternal=function(){return!0};DvtEventManager.prototype.GetTooltipsAllowedRegion=function(){return null};DvtEventManager.prototype.GetClearSelectionText=function(){return"Clear Selection"};
DvtEventManager.prototype.addClearAllActionItem=function(){this.addActionTooltipMenuItem(DvtEventManager.CLEAR_SELECTION_ACTION_TYPE,this.GetClearSelectionText(),this._actionTooltipClearListener,this);var a=this.CustomTooltipManager.getActionTooltip();a&&a.setTooltipBorderColor(DvtCustomTooltip.DEFAULT_BORDER_COLOR)};DvtEventManager.prototype.isClearMenuAllowed=function(){return!0};
DvtEventManager.prototype.addActionTooltipMenuItem=function(a,b,d,e){this.CustomTooltipManager.getActionTooltip().addMenuItem(new DvtCustomTooltipItem(this._context,a,b,d,e))};DvtEventManager.prototype.ContextMenuItemListener=function(a){this._callback.call(this._callbackObj,a.menuItem.getEvent())};DvtEventManager.prototype._actionTooltipClearListener=function(a){a=this.GetLogicalObject(a.targetObj);this.getSelectionHandler(a).processClick(null,!1)&&this.fireSelectionEvent(a)};
DvtEventManager.prototype._actionTooltipSelectListener=function(a){a=this.GetLogicalObject(a.targetObj);this.getSelectionHandler(a).processClick(a,!0)&&this.fireSelectionEvent(a)};DvtEventManager.prototype.setTouchRegionBounds=function(a){this.TouchManager.setTouchRegionBounds(a)};DvtEventManager.consumeEvent=function(a){a&&(a.preventDefault(),a.stopPropagation())};
DvtEventManager._addContextInfo=function(a,b){if(a.getContextCallback&&a.getContextCallbackObj){var d=a.getContextCallback(),e=a.getContextCallbackObj();d&&e&&d.call(e,b)}else b.addParam(DvtBaseComponentEvent.CLIENT_ROW_KEY,a.getId())};DvtEventManager.prototype.IsPropagationEnabled=function(){return!1};DvtEventManager.prototype.GetCurrentTargetForEvent=function(a){return this._eventInfo[a]?this._eventInfo[a].currentTarget:this.GetTargetFromEvent(a)};
DvtEventManager.prototype.GetTargetFromEvent=function(a){return a.targetObj?a.targetObj:a.target};DvtEventManager.prototype._propagateEvent=function(a,b,d){if(this.GetLogicalObject(this.GetTargetFromEvent(b))){var e=this.GetTargetFromEvent(b);this._eventInfo[b]={};try{for(;e&&(!this.GetLogicalObject(e,!0)||!(this._eventInfo[b].currentTarget=e,d.call(this,b),!this.IsPropagationEnabled(a,b,e)));)e=e.getParent()}finally{delete this._eventInfo[b]}}else d.call(this,b)};
DvtEventManager.prototype.ConsumesClick=function(a){return a.isSelectable&&a.isSelectable()||a.isClickEventPropagationStopped&&a.isClickEventPropagationStopped()||this._hasClickPopup(a)||this._hasClickClientBehavior(a)};DvtEventManager.prototype._hasClickPopup=function(a){if(a=this._getShowPopupBehaviors(a))for(var b=0;b<a.length;b++){var d=a[b];if(d&&(d.getTriggerType()==DvtShowPopupBehavior.TRIGGER_TYPE_ACTION||d.getTriggerType()==DvtShowPopupBehavior.TRIGGER_TYPE_CLICK))return!0}return!1};
DvtEventManager.prototype.addComponentKeyboardHandler=function(a){a&&this._keyboardHandlers.push(a)};DvtEventManager.prototype.addComponentKeyboardHandlerAt=function(a,b){!(b>this._keyboardHandlers.length)&&a&&(this._keyboardHandlers.splice(b,0,a),b<=this._currentKeyboardHandlerIdx&&this._currentKeyboardHandlerIdx++)};
DvtEventManager.prototype.removeComponentKeyboardHandler=function(a){a&&(a=this._findHandler(a),-1<a&&(this._currentKeyboardHandlerIdx==a&&0==a?this._currentKeyboardHandlerIdx=0:a<=this._currentKeyboardHandlerIdx&&this._currentKeyboardHandlerIdx--,this._keyboardHandlers.splice(a,1)))};DvtEventManager.prototype._findHandler=function(a){var b=-1,d=this._keyboardHandlers.length;for(i=0;i<d;i++)this._keyboardHandlers[i]===a&&(b=i);return b};
DvtEventManager.prototype._updateKeyboardHandlerIdx=function(a){a=this._findHandler(a);0<a&&(this._currentKeyboardHandlerIdx=a)};DvtEventManager.prototype._hasClickClientBehavior=function(a){if(a=this._getClientBehaviors(a))for(var b=0;b<a.length;b++){var d=a[b];if(d&&(d.getTriggerType()==DvtClientBehavior.TRIGGER_TYPE_ACTION||d.getTriggerType()==DvtClientBehavior.TRIGGER_TYPE_CLICK))return!0}return!1};
DvtEventManager.prototype.CreateClientBehaviorHandler=function(a,b,d){return new DvtClientBehaviorHandler(a,b,d)};DvtEventManager.prototype.IsDragCandidate=function(){return!0};var DvtCustomTooltipManager=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtCustomTooltipManager,DvtObj,"DvtCustomTooltipManager");DvtCustomTooltipManager.ACTION_POPUP_CLASS="OraDVTContextMenuPopup";
DvtCustomTooltipManager.prototype.Init=function(a,b){this._context=a;this._id=b;this._actionTooltip=new DvtCustomTooltip(this._context,this._id+"ActionPopup")};DvtCustomTooltipManager.prototype.GetRichTooltipManager=function(){if(!this._RichTooltipManager){var a=this._id+"Tooltip";this._RichTooltipManager=this._context.getImplFactory().newRichTooltipManager(a);this.initActionTooltip()}return this._RichTooltipManager};
DvtCustomTooltipManager.prototype.GetMagnifyLensManager=function(){this._ManifyLensManager||(this._ManifyLensManager=this._context.getImplFactory().newRichTooltipManager(this._id+"MagLens"));return this._ManifyLensManager};DvtCustomTooltipManager.prototype.getMagnifyLens=function(){this._magnifyLens||(this._magnifyLens=new DvtMagnifyLens(this._context));return this._magnifyLens};DvtCustomTooltipManager.prototype.clearActionTooltip=function(){this._actionTooltip&&this._actionTooltip.clearContent()};
DvtCustomTooltipManager.prototype.getActionTooltip=function(){return this._actionTooltip};DvtCustomTooltipManager.prototype.initActionTooltip=function(){if(!this._actionTooltipInitialized){var a=this.GetRichTooltipManager().GetStoredContext();a&&(new DvtCustomTooltipEventHandler(a,this,null,null)).addListeners(this._actionTooltip);this._actionTooltipInitialized=!0}};DvtCustomTooltipManager.prototype.hideTooltip=function(){this.clearActionTooltip();this.GetRichTooltipManager().hideTooltip()};
DvtCustomTooltipManager.prototype.closeActionTooltip=function(){this.FireListener(new DvtActionTooltipEvent(DvtActionTooltipEvent.TOOLTIP_CLOSED_TYPE,this._actionPopupObj));this._actionPopupObj=null;this.hideTooltip()};DvtCustomTooltipManager.prototype.showMagnifyLens=function(a,b,d){var e=d.getSize(),e=new DvtRectangle(0,0,e,e);this.GetMagnifyLensManager().showRichElementAtPosition(a-e.w/2,b-e.h,d,!1,!0)};DvtCustomTooltipManager.prototype.hideMagnifyLens=function(){this.GetMagnifyLensManager().hideTooltip()};
DvtCustomTooltipManager.prototype.showMagnifyDatatip=function(a,b,d,e){var a=this.GetMagnifyLensManager().getTooltipBox(),g=a.w/2,h=Math.PI/8,b=g*Math.cos(h),h=g*Math.sin(h),b=g-b,g=g-h,h=this.getActionTooltip();h.setIncludePointer(!0);h._pointerLocation=new DvtPoint(-12-b,30+g);this.showTextAtPosition(a.x+a.w-b,a.y-30,d,e,!1);if(this.GetRichTooltipManager()._isRightAdjusted){h.setIncludePointer(!0);var k=this.GetRichTooltipManager().getTooltipBox();h._pointerLocation=new DvtPoint(k.w,30+g);this.showTextAtPosition(a.x-
k.w+b,a.y-30,d,e,!1)}h.setIncludePointer(!1)};DvtCustomTooltipManager.prototype.showDatatip=function(a,b,d,e){var g=this.getActionTooltip(),d=DvtTextUtils.formatTextString(d);g.setTooltipText(d);null!=e&&g.setTooltipBorderColor(e);this.GetRichTooltipManager().showRichElement(a,b,g,!0)};
DvtCustomTooltipManager.prototype.showTextAtPosition=function(a,b,d,e,g){var h=this.getActionTooltip(),d=DvtTextUtils.formatTextString(d);h.setTooltipText(d);null!=e&&h.setTooltipBorderColor(e);this.GetRichTooltipManager().showRichElement(a,b,h,g)};DvtCustomTooltipManager.prototype.displayActionPopup=function(){var a=this.getActionTooltip();return!a||!a.hasMenuItems()?!1:!0};
DvtCustomTooltipManager.prototype.startActionPopupAtPosition=function(a,b,d){var e=this.getActionTooltip();e&&(this.GetRichTooltipManager().showRichElementAtPosition(a,b,e,!0,!1,DvtCustomTooltipManager.ACTION_POPUP_CLASS),this.FireListener(new DvtActionTooltipEvent(DvtActionTooltipEvent.TOOLTIP_STARTED_TYPE,d)),this._actionPopupObj=d)};DvtCustomTooltipManager.prototype.addTooltipEventListener=function(a,b,d){a=this._getListeners(a,!0);a.push(b);a.push(d)};
DvtCustomTooltipManager.prototype.removeTooltipEventListener=function(a,b,d){a=this._getListeners(a,!1);if(null!==a)for(var e=0;e<a.length;e+=2)if(a[e]===b&&a[e+1]===d){a.splice(e,2);break}};DvtCustomTooltipManager.prototype._getListeners=function(a,b){if(!this._listenerObj)if(b)this._listenerObj={};else return null;var d=this._listenerObj[a];!d&&b&&(d=[],this._listenerObj[a]=d);return d};
DvtCustomTooltipManager.prototype.FireListener=function(a){var b=this._getListeners(a.getType(),!1);if(b)for(var d=0;d<b.length;d+=2)b[d].call(b[d+1],a)};var DvtCustomTooltipEventHandler=function(a,b,d,e){this._customTooltipManager=b;this.Init(a,d,e)};DvtObj.createSubclass(DvtCustomTooltipEventHandler,DvtEventManager,"DvtCustomTooltipEventHandler");DvtCustomTooltipEventHandler.prototype.OnClickInternal=function(a){this._handleMenuClick(a.target)};
DvtCustomTooltipEventHandler.prototype.HandleImmediateTouchStartInternal=function(a){a.blockTouchHold()};DvtCustomTooltipEventHandler.prototype.HandleTouchClickInternal=function(a){this._handleMenuClick(a.targetObj)};DvtCustomTooltipEventHandler.prototype._handleMenuClick=function(a){var b=this._customTooltipManager._actionPopupObj;if(a=a._menu){var d=!0;a instanceof DvtContextMenuTooltipItem&&a._menuItem.isDisabled()&&(d=!1);d&&(this._customTooltipManager.closeActionTooltip(),a.FireActionTooltipItem(b))}};
var DvtCustomTooltip=function(a,b){this._Init(a,b)};DvtObj.createSubclass(DvtCustomTooltip,DvtContainer,"DvtCustomTooltip");DvtCustomTooltip.DEFAULT_BORDER_COLOR="gray";DvtCustomTooltip.DEFAULT_BACKGROUND_COLOR="#ffffff";DvtCustomTooltip.TOOLTIP_ONLY="tooltipOnly";DvtCustomTooltip.MENU_ONLY="menuOnly";DvtCustomTooltip.MENU_AND_TOOLTIP="menuAndTooltip";DvtCustomTooltip.EMPTY="empty";DvtCustomTooltip.MENU_PADDING_LEFT=21;DvtCustomTooltip.MENU_PADDING_RIGHT=10;
DvtCustomTooltip.prototype._Init=function(a){this._context=a;this.getImpl()||this.setImpl(a.getImplFactory().newContainer("customTT"));DvtCustomTooltip.superclass.Init.call(this,a);this._tooltipBorderColor=this._tooltipText=null;this._menuFontSize=11;this._tooltipFill=new DvtSolidFill(DvtCustomTooltip.DEFAULT_BACKGROUND_COLOR);this._font=new DvtFont;this._font.size=11;this._includePointer=!1;this._pointerLocation=new DvtPoint(0,0)};
DvtCustomTooltip.prototype.setIncludePointer=function(a){this._includePointer=a};DvtCustomTooltip.prototype.getRootDisplayable=function(){return this};DvtCustomTooltip.prototype.UpdateTooltipSize=function(a,b){this._displayWidth=a;this._displayHeight=b};DvtCustomTooltip.prototype.getDisplayWidth=function(){return this._displayWidth};DvtCustomTooltip.prototype.getDisplayHeight=function(){return this._displayHeight};
DvtCustomTooltip.prototype.clearContent=function(){this.clearMenuItems();this.setTooltipBorderColor(null);this.setTooltipText(null)};DvtCustomTooltip.prototype.setMenuFontSize=function(a){this._menuFontSize=a};DvtCustomTooltip.prototype.setTooltipBorderColor=function(a){this._tooltipBorderColor=a};DvtCustomTooltip.prototype.getTooltipBorderColor=function(){return this._tooltipBorderColor};DvtCustomTooltip.prototype.setTooltipFill=function(a){this._tooltipFill=a};
DvtCustomTooltip.prototype.setFont=function(a){this._font=a};DvtCustomTooltip.prototype.setTooltipText=function(a){this._tooltipText=a};DvtCustomTooltip.prototype.getTooltipText=function(){return this._tooltipText};DvtCustomTooltip.prototype.addMenuItem=function(a){this.getMenuItems().push(a)};DvtCustomTooltip.prototype.hasMenuItems=function(){var a=this.getMenuItems();return a&&0<a.length};DvtCustomTooltip.prototype.hasTooltip=function(){return null!=this._tooltipText&&0<this._tooltipText.length};
DvtCustomTooltip.prototype.clearMenuItems=function(){this._menuItems&&(this._menuItems=[])};DvtCustomTooltip.prototype.getMenuItems=function(){this._menuItems||(this._menuItems=[]);return this._menuItems};DvtCustomTooltip.prototype.containsMenuId=function(a){for(var b=this.getMenuItems(),d=0;d<b.length;d++)if(b[d].getId()==a)return!0;return!1};
DvtCustomTooltip.prototype.getTooltipType=function(){var a=this.hasMenuItems(),b=this.hasTooltip();return a&&b?DvtCustomTooltip.MENU_AND_TOOLTIP:a?DvtCustomTooltip.MENU_ONLY:b?DvtCustomTooltip.TOOLTIP_ONLY:DvtCustomTooltip.EMPTY};
DvtCustomTooltip.prototype.Render=function(){var a=this.getRootDisplayable();a.removeChildren();var b=this.getTooltipType();if(b!=DvtCustomTooltip.EMPTY){var d=4,e=2;this._includePointer&&(e=3,d=10);var g=this.hasMenuItems(),h=this.hasTooltip(),k=d+e/2,m=0,n=0;b==DvtCustomTooltip.TOOLTIP_ONLY?a.setAlpha(0.9):a.setAlpha(1);if(h){var o=new DvtTextArea(this._context,0,0);a.addChild(o);DvtTextUtils.applyFont(o,this._font);o.setMaxWidth(1E8);o.setMouseEnabled(!0);o.alignBaseline();o.alignStart();o.setTranslateY(this._font.getSize()+
d+e/2);this._cursorText=o;this._cursorText.removeChildren();this._cursorText.setText(this._tooltipText);var q=this._cursorText.getDimensions(),o=q.h,s=q.w,n=Math.max(s,n),m=m+o}o=[];q=[];b==DvtCustomTooltip.MENU_AND_TOOLTIP?m+=5:b==DvtCustomTooltip.MENU_ONLY&&(m+=2.5);if(g)for(var t=this.getMenuItems(),g=0;g<t.length;g++){var s=t[g],u=new DvtText(this._context,s.getText(),0,0,null);DvtTextUtils.applyFont(u,this._font);u.setFontSize(this._menuFontSize);s instanceof DvtContextMenuTooltipItem&&s._menuItem.isDisabled()&&
u.setAlpha(0.5);u._menu=s;a.addChild(u);var v=u.getDimensions();v.y=k+m;s=v.w;q.push(v);n=Math.max(s+DvtCustomTooltip.MENU_PADDING_LEFT+DvtCustomTooltip.MENU_PADDING_RIGHT,n);u.setY(v.y);m+=v.h;g<t.length-1&&(m+=5);a.removeChild(u);o.push(u);u.alignStart();u.alignTop()}if(b==DvtCustomTooltip.MENU_ONLY||b==DvtCustomTooltip.MENU_AND_TOOLTIP)m+=2.5;g=n+2*d;b=g+e;k=k+m+d+e/2;this._cursorText&&this._cursorText.setTranslateX(d+e/2);n=12;t=this._pointerLocation.x>b;d=-this._pointerLocation.x;m=this._pointerLocation.y;
this._includePointer?(k/2<n&&(n=k/3),s=Math.max(m+e,k+e),t?(this.UpdateTooltipSize(this._pointerLocation.x,s),a.setTranslateX(e/2)):(this.UpdateTooltipSize(b+d+e,s),a.setTranslateX(e/2+d))):(this.UpdateTooltipSize(b+e,k+e),a.setTranslateX(e/2));a.setTranslateY(e/2);s=new DvtRect(this._context,0,0,b,k);if(this._includePointer){s=k/2;if(t)var t=new DvtPoint(0,0),u=new DvtPoint(b,0),v=new DvtPoint(b,s),w=new DvtPoint(this._pointerLocation.x,m),n=new DvtPoint(b,s+n),d=new DvtPoint(b,k),k=new DvtPoint(0,
k),d=DvtPathUtils.moveTo(t.x+5,t.y)+DvtPathUtils.lineTo(u.x-5,u.y)+DvtPathUtils.arcTo(5,Math.PI/2,1,u.x,u.y+5)+DvtPathUtils.lineTo(v.x,v.y)+DvtPathUtils.lineTo(w.x,w.y)+DvtPathUtils.lineTo(n.x,n.y)+DvtPathUtils.lineTo(d.x,d.y-5)+DvtPathUtils.arcTo(5,Math.PI/2,1,d.x-5,d.y)+DvtPathUtils.lineTo(k.x+5,k.y)+DvtPathUtils.arcTo(5,Math.PI/2,1,k.x,k.y-5)+DvtPathUtils.lineTo(0,5)+DvtPathUtils.arcTo(5,Math.PI/2,1,5,0)+DvtPathUtils.closePath();else t=new DvtPoint(0,0),u=new DvtPoint(b,0),v=new DvtPoint(b,k),
w=new DvtPoint(0,k),n=new DvtPoint(0,s+n),d=new DvtPoint(-d,m),k=new DvtPoint(0,s),d=DvtPathUtils.moveTo(t.x+5,t.y)+DvtPathUtils.lineTo(u.x-5,u.y)+DvtPathUtils.arcTo(5,Math.PI/2,1,u.x,u.y+5)+DvtPathUtils.lineTo(v.x,v.y-5)+DvtPathUtils.arcTo(5,Math.PI/2,1,v.x-5,v.y)+DvtPathUtils.lineTo(w.x+5,w.y)+DvtPathUtils.arcTo(5,Math.PI/2,1,w.x,w.y-5)+DvtPathUtils.lineTo(n.x,n.y)+DvtPathUtils.lineTo(d.x,d.y)+DvtPathUtils.lineTo(k.x,k.y)+DvtPathUtils.lineTo(0,5)+DvtPathUtils.arcTo(5,Math.PI/2,1,5,0)+DvtPathUtils.closePath();
s=new DvtPath(this._context,d,null)}h?(d=this._tooltipBorderColor,d||(d=DvtCustomTooltip.DEFAULT_BACKGROUND_COLOR),s.setStroke(new DvtSolidStroke(d,1,e))):s.setStroke(new DvtSolidStroke("rgb(229,232,238)",1,1));this._tooltipFill||(this._tooltipFill=new DvtSolidFill(DvtCustomTooltip.DEFAULT_BACKGROUND_COLOR));s.setFill(this._tooltipFill);a.addChildAt(s,0);e=0.95*g;d=(b-e)/2;for(g=0;g<o.length;g++)k=o[g],a.addChild(k),k._menu&&(m=new DvtRectangle(0,q[g].y-2.5,b,q[g].h+5),m=new DvtRect(this._context,
m.x,m.y,m.w,m.h),m.setFill(new DvtSolidFill("white",0)),m._menu=k._menu,a.addChild(m),0==g&&h?(m=new DvtSolidFill("gray",1),this.renderDivider(a,d,q[g].y-5,e,m)):0<g&&(m=k._menu._menuItem,o[g-1]._menu instanceof DvtContextMenuTooltipItem&&m.hasSeparatorBefore()&&(m=new DvtSolidFill("gray",0.5),this.renderDivider(a,d,q[g].y-2.5,e,m)))),k.setTranslateX(DvtCustomTooltip.MENU_PADDING_LEFT)}};
DvtCustomTooltip.prototype.renderDivider=function(a,b,d,e,g){b=new DvtRect(this._context,b,d,e,1);b.setFill(g);a.addChild(b)};var DvtCustomTooltipItem=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtCustomTooltipItem,DvtObj,"DvtCustomTooltipItem");DvtCustomTooltipItem.prototype.Init=function(a,b,d,e,g){this._context=a;this._id=b;this._text=d;this._listener=e;this._listenerObj=g};DvtCustomTooltipItem.prototype.getId=function(){return this._id};
DvtCustomTooltipItem.prototype.getText=function(){return this._text};DvtCustomTooltipItem.prototype.FireActionTooltipItem=function(a){if(this._listenerObj&&this._listener){var b={};b.targetObj=a;b.menuItem=this._menuItem;this._menuItemTimer=new DvtTimer(this._context,1,this._handleMenuTimer,this);this._menuItemTimer.evt=b;this._menuItemTimer.start()}};DvtCustomTooltipItem.prototype._handleMenuTimer=function(){this._menuItemTimer&&this._menuItemTimer.stop();this._listener.call(this._listenerObj,this._menuItemTimer.evt)};
var DvtContextMenuTooltipItem=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtContextMenuTooltipItem,DvtCustomTooltipItem,"DvtContextMenuTooltipItem");DvtContextMenuTooltipItem.prototype.Init=function(a,b,d,e,g){DvtContextMenuTooltipItem.superclass.Init.call(this,a,b,g.getText(),d,e);this._menuItem=g};var DvtAgent=function(){};DvtObj.createSubclass(DvtAgent,DvtObj,"DvtAgent");DvtAgent.IE_PLATFORM="ie";DvtAgent.GECKO_PLATFORM="gecko";DvtAgent.WEBKIT_PLATFORM="webkit";
DvtAgent.OPERA_PLATFORM="opera";DvtAgent.UNKNOWN_PLATFORM="unknown";DvtAgent.WINDOWS_OS="Windows";DvtAgent.SOLARIS_OS="Solaris";DvtAgent.MAC_OS="Mac";DvtAgent.UNKNOWN_OS="Unknown";DvtAgent.getAgent=function(){DvtAgent._agent||(DvtAgent._agent=window?window.isFlashEnvironment?new FlashAgentImpl:window.AdfAgent&&AdfAgent.AGENT?new AdfAgentImpl:DvtAgentImpl.getAgent():new DvtAgent);return DvtAgent._agent};DvtAgent.prototype.isTouchDevice=function(){return!1};DvtAgent.prototype.isSafari=function(){return!1};
DvtAgent.prototype.isWebkit=function(){return!1};DvtAgent.prototype.isGecko=function(){return!1};DvtAgent.prototype.isChrome=function(){return!1};DvtAgent.prototype.getElementPosition=function(){return{x:0,y:0}};DvtAgent.prototype.elementFromPagePoint=function(){return null};DvtAgent.prototype.getPlatform=function(){return null};DvtAgent.prototype.getName=function(){return null};DvtAgent.prototype.getVersion=function(){return null};
DvtAgent.prototype.isRightToLeft=function(){return"undefined"!=typeof DVT_BIDI_TEST?!0:!1};var DvtBaseEvent=function(){};DvtObj.createSubclass(DvtBaseEvent,DvtObj,"DvtBaseEvent");DvtBaseEvent.prototype.Init=function(a,b){this.type=a;this.target=b};DvtBaseEvent.prototype.getNativeEvent=function(){return null};DvtBaseEvent.prototype.preventDefault=function(){};DvtBaseEvent.prototype.stopPropagation=function(){};DvtBaseEvent.prototype.isPropagationStopped=function(){return!1};
var DvtBaseComponentEvent=function(){};DvtObj.createSubclass(DvtBaseComponentEvent,DvtObj,"DvtBaseComponentEvent");DvtBaseComponentEvent.CLIENT_ROW_KEY="clientRowKey";DvtBaseComponentEvent.prototype.Init=function(a){this._type=a};DvtBaseComponentEvent.prototype.getType=function(){return this._type};DvtBaseComponentEvent.prototype.getParamKeys=function(){return this._paramKeys};DvtBaseComponentEvent.prototype._getParamValues=function(){return this._paramValues};
DvtBaseComponentEvent.prototype.addParam=function(a,b){this._paramKeys||(this._paramKeys=[],this._paramValues=[]);this._paramKeys.push(a);this._paramValues.push(b)};DvtBaseComponentEvent.prototype.getParamValue=function(a){if(!a||!this._paramKeys||!this._paramValues)return null;for(var b=-1,d=0;d<this._paramKeys.length;d++)if(this._paramKeys[d]==a){b=d;break}return-1!=b?this._paramValues[b]:null};var DvtKeyboardEvent=function(a,b,d,e,g,h,k,m,n,o,q,s){this.Init(a,b,d,e,g,h,k,m,n,o,q,s)};
DvtObj.createSubclass(DvtKeyboardEvent,DvtBaseEvent,"DvtKeyboardEvent");DvtKeyboardEvent.TAB=9;DvtKeyboardEvent.ENTER=13;DvtKeyboardEvent.SHIFT=16;DvtKeyboardEvent.CONTROL=17;DvtKeyboardEvent.ESCAPE=27;DvtKeyboardEvent.SPACE=32;DvtKeyboardEvent.PAGE_UP=33;DvtKeyboardEvent.PAGE_DOWN=34;DvtKeyboardEvent.UP_ARROW=38;DvtKeyboardEvent.DOWN_ARROW=40;DvtKeyboardEvent.DELETE=46;DvtKeyboardEvent.LEFT_ARROW=37;DvtKeyboardEvent.RIGHT_ARROW=39;DvtKeyboardEvent.OPEN_BRACKET=219;
DvtKeyboardEvent.CLOSE_BRACKET=221;DvtKeyboardEvent.BACK_SLASH=220;DvtKeyboardEvent.FORWARD_SLASH=191;DvtKeyboardEvent.ZERO=48;DvtKeyboardEvent.NUMPAD_ZERO=96;DvtKeyboardEvent.WEBKIT_MINUS=189;DvtKeyboardEvent.WEBKIT_EQUALS=187;DvtKeyboardEvent.GECKO_PLUS=107;DvtKeyboardEvent.GECKO_MINUS=109;DvtKeyboardEvent.GECKO_EQUALS=61;DvtKeyboardEvent.GECKO_UNDERSCORE=0;DvtKeyboardEvent.A=65;DvtKeyboardEvent.F=70;DvtKeyboardEvent.M=77;DvtKeyboardEvent.PERIOD=190;DvtKeyboardEvent.NUMPAD_PERIOD=110;
DvtKeyboardEvent.prototype.Init=function(a,b,d,e,g,h,k,m,n,o,q,s){DvtKeyboardEvent.superclass.Init.call(this,a,null);this.bubbles=b;this.cancelable=d;this.view=e;this.charCode=g;this.keyCode=h;this.keyLocation=k;this.ctrlKey=m;this.altKey=n;this.shiftKey=o;this.repeat=q;this.locale=s};DvtKeyboardEvent.isPlus=function(a){var b=a.keyCode;if(DvtAgent.getAgent().isGecko()){if(b==DvtKeyboardEvent.GECKO_PLUS&&a.shiftKey)return!0}else if(b==DvtKeyboardEvent.WEBKIT_EQUALS&&a.shiftKey)return!0;return!1};
DvtKeyboardEvent.isEquals=function(a){var b=a.keyCode;if(DvtAgent.getAgent().isGecko()){if(b==DvtKeyboardEvent.GECKO_EQUALS&&!a.shiftKey)return!0}else if(b==DvtKeyboardEvent.WEBKIT_EQUALS&&!a.shiftKey)return!0;return!1};DvtKeyboardEvent.isMinus=function(a){var b=a.keyCode;if(DvtAgent.getAgent().isGecko()){if(b==DvtKeyboardEvent.GECKO_MINUS&&!a.shiftKey)return!0}else if(b==DvtKeyboardEvent.WEBKIT_MINUS&&!a.shiftKey)return!0;return!1};
DvtKeyboardEvent.isUnderscore=function(a){var b=a.keyCode;if(DvtAgent.getAgent().isGecko()){if(b==DvtKeyboardEvent.GECKO_UNDERSCORE&&a.shiftKey)return!0}else if(b==DvtKeyboardEvent.WEBKIT_MINUS&&a.shiftKey)return!0;return!1};var DvtMouseEvent=function(a,b,d,e,g,h,k,m,n){this.Init(a,b,d,e,g,h,k,m,n)};DvtObj.createSubclass(DvtMouseEvent,DvtBaseEvent,"DvtMouseEvent");DvtMouseEvent.CLICK="click";DvtMouseEvent.RIGHT_CLICK_BUTTON=2;
DvtMouseEvent.prototype.Init=function(a,b,d,e,g,h,k,m,n,o,q,s,t,u,v){DvtMouseEvent.superclass.Init.call(this,a,null);this.bubbles=b;this.cancelable=d;this.view=e;this.detail=g;this.pageX=h;this.pageY=k;this.clientX=m;this.clientY=n;this.ctrlKey=o||t;this.altKey=q;this.shiftKey=s;this.metaKey=t;this.button=u;this.relatedTarget=v};var DvtTouchEvent=function(){};DvtObj.createSubclass(DvtTouchEvent,DvtBaseEvent,"DvtTouchEvent");DvtTouchEvent.prototype.Init=function(){};var DvtTouch=function(a){this.Init(a)};
DvtObj.createSubclass(DvtTouch,DvtObj,"DvtTouch");DvtTouch.prototype.Init=function(a){this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.pageX=a.pageX;this.pageY=a.pageY;this.target=a.target;this.identifier=null==a.identifier||isNaN(a.identifier)?1:a.identifier};var DvtTouchManager=function(a,b){this.Init(a,b)};DvtObj.createSubclass(DvtTouchManager,DvtObj,"DvtTouchManager");DvtTouchManager.TOUCH_MODE="mode";DvtTouchManager.TOUCH_MODE_DEFAULT="defaultMode";
DvtTouchManager.TOUCH_MODE_LONG_PRESS="longPressMode";DvtTouchManager.PREV_HOVER_OBJ="prevHoverObj";DvtTouchManager.HOVER_TOUCH_KEY="hoverTouch";
DvtTouchManager.prototype.Init=function(a,b){this._context=b;this._id=a;this._touchCount=0;this._touchHoldTimer=new DvtTimer(this._context,200,this._handleTouchHoldStartTimer,this);this._touchMap={};this._touchRegionBounds=null;this._savedTouchInfo=[];this._blockPan=!1;this._addTouchHoldMoveEventListener(this._onTouchHoldHover,this);this._doubleTapTimer=new DvtTimer(this._context,300,this._handleDoubleTapTimer,this,1)};
DvtTouchManager.prototype._addTouchHoldMoveEventListener=function(a,b){this.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOLD_START_TYPE,a,b);this.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOLD_MOVE_TYPE,a,b);this.addTouchEventListener(DvtComponentTouchEvent.TOUCH_HOLD_END_TYPE,a,b)};
DvtTouchManager.prototype._onTouchHoldHover=function(a){var b=a.getType(),d=a.touch,e=this._touchMap[d.identifier],a=a.targetObj;b==DvtComponentTouchEvent.TOUCH_HOLD_END_TYPE?(b=new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_END_TYPE,a,d),b._isCancelEvent=this._isCancelEvent,null!=a&&this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_OUT_TYPE,e[DvtTouchManager.PREV_HOVER_OBJ],d)),e[DvtTouchManager.PREV_HOVER_OBJ]=null,this.FireListener(b)):b==DvtComponentTouchEvent.TOUCH_HOLD_START_TYPE?
(e[DvtTouchManager.PREV_HOVER_OBJ]=null,null!=a&&this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_OVER_TYPE,a,d)),e[DvtTouchManager.PREV_HOVER_OBJ]=a,this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_START_TYPE,a,d))):b==DvtComponentTouchEvent.TOUCH_HOLD_MOVE_TYPE&&(this._fireHoverOverOutEvents(a,e[DvtTouchManager.PREV_HOVER_OBJ],d),e[DvtTouchManager.PREV_HOVER_OBJ]=a,this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_MOVE_TYPE,
a,d)))};DvtTouchManager.prototype._getObjFromTouch=function(a){var b=null;if(a){var d=this._context.getRelativePosition(a.pageX,a.pageY);if(!this._touchRegionBounds||this._touchRegionBounds.containsPoint(d.x,d.y))(d=this._context.getDocumentUtils())&&(b=d.elementFromTouch(a))}return b};
DvtTouchManager.prototype._fireHoverOverOutEvents=function(a,b,d){b!=a&&(null!=b&&this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_OUT_TYPE,b,d)),null!=a&&this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOVER_OVER_TYPE,a,d)))};DvtTouchManager.prototype.addTouchEventListener=function(a,b,d){a=this._getListeners(a,!0);a.push(b);a.push(d)};
DvtTouchManager.prototype.removeTouchEventListener=function(a,b,d){a=this._getListeners(a,!1);if(null!==a)for(var e=0;e<a.length;e+=2)if(a[e]===b&&a[e+1]===d){a.splice(e,2);break}};DvtTouchManager.prototype._getListeners=function(a,b){if(!this._listenerObj)if(b)this._listenerObj={};else return null;var d=this._listenerObj[a];!d&&b&&(d=[],this._listenerObj[a]=d);return d};
DvtTouchManager.prototype.FireListener=function(a){var b=this._getListeners(a.getType(),!1);if(b)for(var d=0;d<b.length;d+=2)b[d].call(b[d+1],a)};
DvtTouchManager.prototype.startTouchHold=function(){var a=this._startSingleFingerTouchId;if(null!=a&&!isNaN(a)){var b=this._touchMap[a];if(b){for(var d=b.startTarget,e=b.startTouch,g=this._findMatches("touchId",a),h=0;h<g.length;h++){var k=g[h],m=k.touchObj,k=k.touchId;m!=DvtTouchManager.HOVER_TOUCH_KEY&&this.performAssociatedTouchEnd(this.getTouchInfo(k).startTouch,m,null)}b[DvtTouchManager.TOUCH_MODE]=DvtTouchManager.TOUCH_MODE_LONG_PRESS;this.saveProcessedTouch(a,DvtTouchManager.HOVER_TOUCH_KEY,
null,DvtTouchManager.HOVER_TOUCH_KEY,DvtTouchManager.HOVER_TOUCH_KEY,this.HoverMoveInternal,this.HoverEndInternal,this);this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOLD_START_TYPE,d,e))}}};
DvtTouchManager.prototype.fireLogicalEvents=function(a){var b=a.type;if("touchstart"==b)if(a.isTouchHoldBlocked()||this.processAssociatedTouchAttempt(a,DvtTouchManager.HOVER_TOUCH_KEY,this.HoverStartInternal,this),this._doubleTapAttemptStarted)a.preventDefault();else{var d=this.getTouchInfo(a.changedTouches[0].identifier),e=d.currentObj;DvtAgent.getAgent().isChrome()&&(e instanceof DvtMarker||e instanceof DvtText)&&a.preventDefault()}else"touchmove"==b?this.processAssociatedTouchMove(a,DvtTouchManager.HOVER_TOUCH_KEY):
"touchend"==b&&this.processAssociatedTouchEnd(a,DvtTouchManager.HOVER_TOUCH_KEY);if("touchend"==b)for(var b=this._getStoredTouches(a.changedTouches),g=0;g<b.length;g++){var h=b[g],d=this.getTouchInfo(h.identifier),e=d.currentObj;d[DvtTouchManager.TOUCH_MODE]!=DvtTouchManager.TOUCH_MODE_LONG_PRESS&&d.fireClick&&(d=new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_CLICK_TYPE,e,h),d.touchEvent=a,this.FireListener(d),this._doubleTapAttemptStarted?(d=this._doubleTapAttemptObj,this.resetDoubleTap(),
e==d&&(e=new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_DOUBLE_CLICK_TYPE,e,h),e.touchEvent=a,this.FireListener(e))):(this.resetDoubleTap(),this._doubleTapTimer.start(),this._doubleTapAttemptStarted=!0,this._doubleTapAttemptObj=e))}};DvtTouchManager.prototype.getTouchInfo=function(a){return this._touchMap[a]};DvtTouchManager.prototype.HoverStartInternal=function(a,b){this._startSingleFingerTouchId=b.identifier;this._touchHoldTimer.stop();this._touchHoldTimer.start()};
DvtTouchManager.prototype.HoverMoveInternal=function(a,b){var d=this.getTouchInfo(b.identifier).currentObj;this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOLD_MOVE_TYPE,d,b));a.preventDefault()};DvtTouchManager.prototype.HoverEndInternal=function(a,b){var d=this.getTouchInfo(b.identifier).currentObj;this.FireListener(new DvtComponentTouchEvent(DvtComponentTouchEvent.TOUCH_HOLD_END_TYPE,d,b));a&&a.preventDefault()};
DvtTouchManager.prototype.resetTouchHold=function(){this._startSingleFingerTouchId=null;this._touchHoldTimer&&this._touchHoldTimer.stop()};DvtTouchManager.prototype.preEventBubble=function(a){var b=a.type;"touchstart"==b?this.processTouchStart(a):"touchmove"==b?this.processTouchMove(a):"touchend"==b&&this.processTouchEnd(a)};
DvtTouchManager.prototype.postEventBubble=function(a){var b=a.type;if("touchstart"!=b&&"touchmove"!=b&&"touchend"==b){a=this._getStoredTouches(a.changedTouches);for(b=0;b<a.length;b++){var d=a[b].identifier;delete this._touchMap[d];this._startSingleFingerTouchId==d&&(this._startSingleFingerTouchId=null);for(var d=this._findMatches("touchId",d),e=0;e<d.length;e++){var g=d[e];this.removeTooltipInfo(g.touchId,g.touchObj)}}}};
DvtTouchManager.prototype._findMatch=function(a,b){for(var d=-1,e=0;e<this._savedTouchInfo.length;e++)this._savedTouchInfo[e][a]==b&&(d=e);return d};DvtTouchManager.prototype.saveProcessedTouch=function(a,b,d,e,g,h,k,m){return null!=a&&!isNaN(a)?(this._savedTouchInfo.push(DvtTouchManager.createSavedTouchInfo(a,b,d,e,g,h,k,m)),!0):!1};
DvtTouchManager.prototype.saveProcessedTouchDefault=function(a,b,d,e,g,h){var k=null;h.immediateTouchMoved&&(k=h.immediateTouchMoved);var m=null;h.immediateTouchEnded&&(m=h.immediateTouchEnded);this.saveProcessedTouch(a,b,d,e,g,k,m,h)};DvtTouchManager.prototype.processAssociatedTouch=function(a,b,d,e){var g=a.type;"touchstart"==g?this.processAssociatedTouchAttempt(a,b,d,e):"touchmove"==g?this.processAssociatedTouchMove(a,b):"touchend"==g&&this.processAssociatedTouchEnd(a,b)};
DvtTouchManager.prototype.processAssociatedTouchDefault=function(a,b){this.processAssociatedTouch(a,b,b.immediateTouchAttempted,b)};DvtTouchManager.prototype.cancelTouchHold=function(){for(var a=DvtTouchManager.HOVER_TOUCH_KEY,b=this.getTouchIdsForObj(a),d=0;d<b.length;d++){var e=b[d],g=this.getTouchInfo(e).startTouch;g&&(this._isCancelEvent=!0,this.performAssociatedTouchEnd(g,a,null),this._isCancelEvent=!1,delete this._touchMap[e])}};
DvtTouchManager.prototype.performAssociatedTouchEnd=function(a,b,d){var e=a.identifier,g=this.getSavedTouchInfo(e,b);if(g){var h=g.listenerObj,k=g.endListener;this.removeTooltipInfo(e,b);k&&k.call(h,d,a,g)}};DvtTouchManager.prototype.processAssociatedTouchAttempt=function(a,b,d,e){for(var b=a.changedTouches,g=0;g<b.length;g++){var h=b[g];h&&d&&d.call(e,a,h)}};
DvtTouchManager.prototype.processAssociatedTouchMove=function(a,b){for(var d=this.getTouchIdsForObj(b),e=0;e<d.length;e++){var g=d[e];if(null!=g&&!isNaN(g)&&(g=DvtTouchManager.getTouchById(g,this._getStoredTouches(a.changedTouches)))){var h=this.getSavedTouchInfo(g.identifier,b);if(h){var k=h.listenerObj;(h=h.moveListener)&&h.call(k,a,g)}}}};
DvtTouchManager.prototype.processAssociatedTouchEnd=function(a,b){for(var d=this.getTouchIdsForObj(b),e=0;e<d.length;e++){var g=DvtTouchManager.getTouchById(d[e],this._getStoredTouches(a.changedTouches));g&&this.performAssociatedTouchEnd(g,b,a)}};DvtTouchManager.prototype._findMatch=function(a,b){for(var d=-1,e=0;e<this._savedTouchInfo.length;e++)this._savedTouchInfo[e][a]==b&&(d=e);return d};
DvtTouchManager.prototype._findMatches=function(a,b){for(var d=[],e=0;e<this._savedTouchInfo.length;e++){var g=this._savedTouchInfo[e];g[a]==b&&d.push(g)}return d};DvtTouchManager.prototype.getSavedTouchInfo=function(a,b){for(var d=this._findMatches("touchId",a),e=0;e<d.length;e++){var g=d[e];if(g.touchObj==b)return g}return null};DvtTouchManager.prototype.containsTouchId=function(a){return 0<this._findMatches("touchId",a).length};
DvtTouchManager.prototype.getTouchIdsForObj=function(a){for(var b=[],a=this._findMatches("touchObj",a),d=0;d<a.length;d++)b.push(a[d].touchId);return b};
DvtTouchManager.prototype.removeTooltipInfo=function(a,b){for(var d=this._findMatches("touchId",a),e=[],g=0;g<d.length;g++){var h=d[g];h.touchObj==b&&e.push(h)}for(g=0;g<e.length;g++){for(var d=e[g],k=-1,m=0;m<this._savedTouchInfo.length;m++)h=this._savedTouchInfo[m],h==d&&(k=m);-1!=k&&(this._savedTouchInfo.splice(k,1),0==this._savedTouchInfo.length&&this._context.getTooltipManager().hideTooltip())}};
DvtTouchManager.prototype.setTooltipEnabled=function(a,b){for(var d=this._savedTouchInfo,e=0;e<d.length;e++){var g=d[e];g.touchId==a&&(g.allowTooltips=b)}};
DvtTouchManager.prototype.getTooltipInfo=function(){for(var a={},b=[],d=null,e=null,g=!1,h=this._findMatches("allowTooltips",!0),k=0;k<h.length;k++){var d=h[k],m=d.touchId;e?d.grouping!=e&&(g=!0):e=d.grouping;var n=this._touchMap[m].currentObj;d.tooltipObjOverride&&(n=d.tooltipObjOverride);b.push(m);d=n}g&&(b=[]);a.touchIds=b;a.tooltipTarget=d;return a};
DvtTouchManager.prototype._onlyContainsValue=function(a,b){for(var d=0;d<this._savedTouchInfo.length;d++)if(this._savedTouchInfo[d][a]!=b)return!1;return!0};DvtTouchManager.prototype.containsGrouping=function(a){return 0<this._findMatches("grouping",a).length};DvtTouchManager.prototype.onlyContainsType=function(a){return this._onlyContainsValue("type",a)};DvtTouchManager.prototype.onlyContainsGroup=function(a){return this._onlyContainsValue("grouping",a)};
DvtTouchManager.prototype.processTouchStart=function(a){var b=a.changedTouches;this._touchCount=a.touches.length;for(var d=0;d<b.length;d++){var e=b[d],g=e.screenX,h=e.screenY,k=e.identifier,m=this._getObjFromTouch(e),e={x:g,y:h,pageX:e.pageX,pageY:e.pageY,dx:0,dy:0,fireClick:!0,startTarget:m,currentObj:m,touchMoved:!1,touchtype:null,startTouch:e};e[DvtTouchManager.TOUCH_MODE]=DvtTouchManager.TOUCH_MODE_DEFAULT;e.origx=g;e.origy=h;this._touchMap[k]=e}(this._isHovering()||!this._isTouchHoldAllowed())&&
a.blockTouchHold();return!0};DvtTouchManager.prototype._isTouchHoldAllowed=function(){var a=!1,b=0,d;for(d in this._touchMap)this.getTouchInfo(d).touchMoved&&(a=!0),b++;return 1<b&&!a?(this.resetTouchHold(),!1):!0};DvtTouchManager.prototype._isHovering=function(){for(var a in this._touchMap)if(this.getTouchInfo(a)[DvtTouchManager.TOUCH_MODE]==DvtTouchManager.TOUCH_MODE_LONG_PRESS)return!0;return!1};
DvtTouchManager.prototype._getStoredTouches=function(a){for(var b=[],d=0;d<a.length;d++){var e=a[d];this.getTouchInfo(e.identifier)&&b.push(e)}return b};
DvtTouchManager.prototype.processTouchMove=function(a){for(var b=this._getStoredTouches(a.changedTouches),a=this._getStoredTouches(a.touches),d=0;d<b.length;d++){var e=b[d],g=this._getObjFromTouch(e),h=e.identifier,k=this.getTouchInfo(h);k[DvtTouchManager.TOUCH_MODE]!=DvtTouchManager.TOUCH_MODE_LONG_PRESS&&this._startSingleFingerTouchId==h&&0<Math.abs(k.pageX-e.pageX)&&this.resetTouchHold();k.currentObj=g;k.touchMoved=!0;k.pageX=e.pageX;k.pageY=e.pageY;k.fireClick&&k[DvtTouchManager.TOUCH_MODE]!=
DvtTouchManager.TOUCH_MODE_LONG_PRESS&&k.currentObj!=k.startTarget&&(k.fireClick=!1)}for(d=0;d<a.length;d++)e=a[d],k=this.getTouchInfo(e.identifier),b=e.screenX,e=e.screenY,g=e-k.y,k.dx=b-k.x,k.dy=g,k.x=b,k.y=e;return!0};
DvtTouchManager.prototype.processTouchEnd=function(a){var b=a.changedTouches;this._touchCount=a.touches.length;for(a=0;a<b.length;a++){var d=b[a],e=this._getObjFromTouch(d);if((d=this.getTouchInfo(d.identifier))&&d.fireClick)if(d[DvtTouchManager.TOUCH_MODE]==DvtTouchManager.TOUCH_MODE_LONG_PRESS)this._startSingleFingerTouchId=null;else{var g=d.touchMoved;d.fireClick=e==d.startTarget&&!g}}return!0};
DvtTouchManager.getTouchById=function(a,b){if(null!=a&&!isNaN(a))for(var d=0;d<b.length;d++){var e=b[d];if(e.identifier==a)return e}return null};DvtTouchManager.createSavedTouchInfo=function(a,b,d,e,g,h,k,m){a={touchId:a,tooltipObjOverride:d,grouping:e,type:g,touchObj:b,allowTooltips:!0};a.moveListener=h;a.endListener=k;a.listenerObj=m;return a};DvtTouchManager.prototype.setTouchRegionBounds=function(a){this._touchRegionBounds=a};
DvtTouchManager.prototype._handleTouchHoldStartTimer=function(){this._touchHoldTimer.stop();this.startTouchHold()};DvtTouchManager.prototype._handleDoubleTapTimer=function(){this.resetDoubleTap()};DvtTouchManager.prototype.resetDoubleTap=function(){this._doubleTapAttemptStarted=!1;this._doubleTapAttemptObj=null;this._doubleTapTimer.stop()};
DvtTouchManager.prototype.getMultiTouchZoomDelta=function(a){if(2==a.length){var b=this._touchMap[a[0]],a=this._touchMap[a[1]];if(null==b||null==a)return null;var d=this._determineTouchDirection(b);if(null!=d){var e=this._determineTouchDirection(a);if(null!=e&&(touchType=this._isSameDirection(d,e)?"scroll":"pinch",b.touchtype=touchType,"pinch"==touchType)){var g=Math.abs(b.dy)/10;if(-1!=d.indexOf("r")&&b.x<a.x||-1!=e.indexOf("r")&&a.x<b.x)return-g;if(-1!=d.indexOf("r")&&b.x>a.x||-1!=e.indexOf("r")&&
a.x>b.x)return g}}}return null};
DvtTouchManager.prototype.getMultiTouchDelta=function(a){if(a){var b,d;if(2==a.length){b=this._touchMap[a[0]];var e=this._touchMap[a[1]];if(null==b||null==e)return;null==b.touchtype&&(d=this._determineTouchDirection(b),null!=d&&(e=this._determineTouchDirection(e),null!=e&&(d=this._isSameDirection(d,e)?"scroll":"pinch",b.touchtype=d)));d=b.touchtype;if(null==d)return;if("pinch"==d)return null}for(var g=e=d=0;g<a.length;g++)b=this._touchMap[a[g]],d+=b.dx,e+=b.dy;d/=a.length;e/=a.length;return{deltaX:1*
d,deltaY:1*e}}return null};DvtTouchManager.prototype._isSameDirection=function(a,b){return a==b?!0:2==a.length&&1==b.length?a.charAt(0)==b||a.charAt(1)==b:1==a.length&&2==b.length?a==b.charAt(0)||b==a.charAt(1):!1};
DvtTouchManager.prototype._determineTouchDirection=function(a){var b=a.origx,d=a.origy;if(null==b||null==d)return null;b=a.x-b;a=a.y-d;if(Math.sqrt(Math.pow(b,2)+Math.pow(a,2))<0.01*window.innerWidth)return null;d=null;0.25<=Math.abs(b/a)&&(d=0>b?"l":"r");var e=null;0.25<=Math.abs(a/b)&&(e=0>a?"u":"d");return null!=d&&null!=e?e+d:null==d?e:null==e?d:null};
DvtTouchManager.prototype.calcAveragePosition=function(a){for(var b=0,d=0,e=a.length,g=0;g<e;g++)var h=this.getTouchInfo(a[g]),b=b+h.pageX,d=d+h.pageY;return new DvtPoint(b/e,d/e)};var DvtListItemEvent=function(a,b,d,e){this.Init(DvtListItemEvent.TYPE);this._listItemId=a;this._attrGroupId=b;this._showHide=d;this._evt=e};DvtListItemEvent.TYPE="listItemShowHide";DvtListItemEvent.SHOW="show";DvtListItemEvent.HIDE="hide";DvtObj.createSubclass(DvtListItemEvent,DvtBaseComponentEvent,"DvtListItemEvent");
DvtListItemEvent.prototype.getNativeEvent=function(){return this._evt};DvtListItemEvent.prototype.getListItemId=function(){return this._listItemId};DvtListItemEvent.prototype.getShowHide=function(){return this._showHide};DvtListItemEvent.prototype.getAttributeGroupId=function(){return this._attrGroupId};var DvtLegendItemRollOverEvent=function(a,b,d,e,g){this.Init(DvtLegendItemRollOverEvent.TYPE);this._listItemId=a;this._attrGroupId=b;this._hideAttr=d;this._mouseState=e;this._evt=g};
DvtLegendItemRollOverEvent.TYPE="legendItemRollOver";DvtLegendItemRollOverEvent.MOUSEOVER="mouseover";DvtLegendItemRollOverEvent.MOUSEOUT="mouseout";DvtObj.createSubclass(DvtLegendItemRollOverEvent,DvtBaseComponentEvent,"DvtLegendItemRollOverEvent");DvtLegendItemRollOverEvent.prototype.getNativeEvent=function(){return this._evt};DvtLegendItemRollOverEvent.prototype.getHideAttributes=function(){return this._hideAttr};DvtLegendItemRollOverEvent.prototype.getListItemId=function(){return this._listItemId};
DvtLegendItemRollOverEvent.prototype.getMouseState=function(){return this._mouseState};DvtLegendItemRollOverEvent.prototype.getAttributeGroupId=function(){return this._attrGroupId};var ViewportChangeEvent=function(a,b,d){this.Init(ViewportChangeEvent.TYPE);this._oldDim=a;this._newDim=b;this._evt=d};ViewportChangeEvent.TYPE="viewportChange";DvtObj.createSubclass(ViewportChangeEvent,DvtBaseComponentEvent,"ViewportChangeEvent");ViewportChangeEvent.prototype.getNativeEvent=function(){return this._evt};
ViewportChangeEvent.prototype.getOldDimensions=function(){return this._oldDim};ViewportChangeEvent.prototype.getNewDimensions=function(){return this._newDim};var DvtActionTooltipEvent=function(a,b){this.Init(a);this.targetObj=b};DvtActionTooltipEvent.TOOLTIP_CLOSED_TYPE="actiontooltipclosed";DvtActionTooltipEvent.TOOLTIP_STARTED_TYPE="actiontooltipstarted";DvtObj.createSubclass(DvtActionTooltipEvent,DvtBaseComponentEvent,"DvtActionTooltipEvent");
DvtActionTooltipEvent.prototype.Init=function(a){DvtActionTooltipEvent.superclass.Init.call(this,a)};var DvtComponentTouchEvent=function(a,b,d){this.Init(a,b,d)};DvtComponentTouchEvent.TOUCH_HOLD_START_TYPE="touchholdstart";DvtComponentTouchEvent.TOUCH_HOLD_MOVE_TYPE="touchholdmove";DvtComponentTouchEvent.TOUCH_HOLD_END_TYPE="touchholdend";DvtComponentTouchEvent.TOUCH_HOVER_START_TYPE="touchhoverstart";DvtComponentTouchEvent.TOUCH_HOVER_MOVE_TYPE="touchhovermove";
DvtComponentTouchEvent.TOUCH_HOVER_END_TYPE="touchhoverend";DvtComponentTouchEvent.TOUCH_HOVER_OVER_TYPE="touchhoverover";DvtComponentTouchEvent.TOUCH_HOVER_OUT_TYPE="touchhoverout";DvtComponentTouchEvent.TOUCH_CLICK_TYPE="touchclick";DvtComponentTouchEvent.TOUCH_DOUBLE_CLICK_TYPE="touchdblclick";DvtObj.createSubclass(DvtComponentTouchEvent,DvtBaseComponentEvent,"DvtComponentTouchEvent");
DvtComponentTouchEvent.prototype.Init=function(a,b,d){DvtComponentTouchEvent.superclass.Init.call(this,a);this.targetObj=b;this.touch=d};DvtComponentTouchEvent.prototype.preventDefault=function(){};DvtComponentTouchEvent.prototype.stopPropagation=function(){};var DvtComboBoxEvent=function(a,b){this.Init(a,b)};DvtComboBoxEvent.TYPE="comboBoxchange";DvtObj.createSubclass(DvtComboBoxEvent,DvtBaseEvent,"DvtComboBoxEvent");
DvtComboBoxEvent.prototype.Init=function(a,b){this.type=DvtComboBoxEvent.TYPE;void 0===a&&(a=-1);this._index=a;this._evt=b};DvtComboBoxEvent.prototype.getIndex=function(){return this._index};var DvtControlPanelEvent=function(a){this.Init(DvtControlPanelEvent.TYPE);this._subtype=a};DvtObj.createSubclass(DvtControlPanelEvent,DvtBaseComponentEvent,"DvtControlPanelEvent");DvtControlPanelEvent.TYPE="dvtPZCPExpand";DvtControlPanelEvent.SUBTYPE_SHOW="show";DvtControlPanelEvent.SUBTYPE_HIDE="hide";
DvtControlPanelEvent.prototype.getSubType=function(){return this._subtype};var DvtScrollbarEvent=function(a,b,d,e,g,h){this.Init(a,b,d,e,g,h)};DvtObj.createSubclass(DvtScrollbarEvent,DvtBaseComponentEvent,"DvtScrollbarEvent");DvtScrollbarEvent.SB_MOVE="scrollbarMove";DvtScrollbarEvent.SB_MOVE_COMPLETE="scrollbarMoveComplete";DvtScrollbarEvent.SB_RESIZE="scrollbarResize";DvtScrollbarEvent.SB_RESIZE_COMPLETE="scrollbarResizeComplete";
DvtScrollbarEvent.prototype.Init=function(a,b,d,e,g,h){DvtScrollbarEvent.superclass.Init.call(this,a);this.type=a;this._sb=b;this._startCoord=d;this._endCoord=e;this._delta=g;this._scaledDelta=h};DvtScrollbarEvent.prototype.getScrollbarId=function(){return this._sb.getUIId()};DvtScrollbarEvent.prototype.getStartCoord=function(){return this._startCoord};DvtScrollbarEvent.prototype.getEndCoord=function(){return this._endCoord};DvtScrollbarEvent.prototype.getMovedDelta=function(){return this._delta};
DvtScrollbarEvent.prototype.getScaledDelta=function(){return this._scaledDelta};DvtScrollbarEvent.prototype.getScrollbar=function(){return this._sb};var DvtResizeEvent=function(a,b,d,e){this.Init(DvtResizeEvent.RESIZE_EVENT,a,b,d,e)};DvtObj.createSubclass(DvtResizeEvent,DvtBaseEvent,"DvtResizeEvent");DvtResizeEvent.RESIZE_EVENT="dvtResizeEvent";DvtResizeEvent.prototype.Init=function(a,b,d,e,g){DvtResizeEvent.superclass.Init.call(this,a);this._ww=b;this._hh=d;this._xx=e;this._yy=g};
DvtResizeEvent.prototype.getWidth=function(){return this._ww};DvtResizeEvent.prototype.getHeight=function(){return this._hh};DvtResizeEvent.prototype.getX=function(){return this._xx};DvtResizeEvent.prototype.getY=function(){return this._yy};var DvtScrollEvent=function(a,b){this.Init(DvtScrollEvent.SCROLL_EVENT,a,b)};DvtObj.createSubclass(DvtScrollEvent,DvtBaseEvent,"DvtScrollEvent");DvtScrollEvent.SCROLL_EVENT="dvtScrollEvent";
DvtScrollEvent.prototype.Init=function(a,b,d){DvtScrollEvent.superclass.Init.call(this,a);this._x=b;this._y=d};DvtScrollEvent.prototype.getX=function(){return this._x};DvtScrollEvent.prototype.getY=function(){return this._y};var DvtBaseScroller=function(a,b,d,e){this.Init(a,b,d,e)};DvtObj.createSubclass(DvtBaseScroller,DvtContainer,"DvtBaseScroller");DvtBaseScroller.TYPE_DISABLED=0;DvtBaseScroller.TYPE_ENABLED=1;DvtBaseScroller.TYPE_ACTIVE=2;DvtBaseScroller.SYMBOL_WIDTH=11;
DvtBaseScroller.SYMBOL_HEIGHT=5;DvtBaseScroller.BUTTON_CORNER_RADIUS=0;DvtBaseScroller.UP_BORDER_COLOR="#858585";DvtBaseScroller.UP_FILL_COLOR="#FFFFFF";DvtBaseScroller.OVER_BORDER_COLOR="#7BA0D9";DvtBaseScroller.OVER_FILL_COLORS=["#BFD8FB","#FFFFFF"];DvtBaseScroller.OVER_FILL_ALPHAS=[100,100];DvtBaseScroller.OVER_FILL_RATIOS=[0,255];DvtBaseScroller.DOWN_BORDER_COLOR="#69849E";DvtBaseScroller.DOWN_FILL_COLORS=["#ACB9CA","#7488A5"];DvtBaseScroller.DOWN_FILL_ALPHAS=[100,100];
DvtBaseScroller.DOWN_FILL_RATIOS=[0,255];DvtBaseScroller.SYMBOL_BORDER_COLOR_UP="#46566C";DvtBaseScroller.SYMBOL_BORDER_COLOR_OVER="#858585";DvtBaseScroller.SYMBOL_BORDER_COLOR_DOWN="#858585";DvtBaseScroller.SYMBOL_BORDER_COLOR_DISABLED="#999999";DvtBaseScroller.SYMBOL_FILL_COLOR_UP="#625D5D";DvtBaseScroller.SYMBOL_FILL_COLOR_OVER="#46566C";DvtBaseScroller.SYMBOL_FILL_COLOR_DOWN="#FFFFFF";DvtBaseScroller.SYMBOL_FILL_COLOR_UP_DISABLED="#999999";
DvtBaseScroller.prototype.Init=function(a,b,d,e){this._context=a;e=(new DvtContainer(a,"legendScroller_"+e)).getImpl();DvtBaseScroller.superclass.Init.call(this,a,e.getId());this._width=b;this._height=d;DvtAgent.getAgent().isTouchDevice()&&this.addChild(this._createTouchArea());this.drawUpState()};DvtBaseScroller.prototype.addMouseEventHandlers=function(){this.addEventListener("mouseout",this.mouseOutHandler,!1,this);this.addEventListener("mouseover",this.mouseOverHandler,!1,this)};
DvtBaseScroller.prototype.mouseOverHandler=function(){this._upStateType==DvtBaseScroller.TYPE_ENABLED&&this.drawOverState()};DvtBaseScroller.prototype.mouseOutHandler=function(){this._upStateType==DvtBaseScroller.TYPE_ENABLED&&this.drawUpState()};DvtBaseScroller.prototype.drawUpState=function(){return this._upStateType==DvtBaseScroller.TYPE_ENABLED?this.drawEnabledState():this._upStateType==DvtBaseScroller.TYPE_ACTIVE?this.drawActiveState():this.drawDisabledState()};
DvtBaseScroller.prototype.drawEnabledState=function(){this._upStateType!==DvtBaseScroller.TYPE_DISABLED&&(this._button||(this._button=this._drawButtonShape(),this.addChild(this._button)),this._upButton||(this._upButton=this._drawUpButtonShape(),this.addChild(this._upButton)),this._pointer||(this._pointer=this._drawSymbol(),this.addChild(this._pointer)));this._button.setAlpha(0.0010);this._upButton.setAlpha(1);this._button.setFill(new DvtSolidFill(DvtBaseScroller.UP_FILL_COLOR,0));this._upButton.setStroke(new DvtSolidStroke(DvtBaseScroller.UP_BORDER_COLOR,
1));var a=new DvtSolidStroke(DvtBaseScroller.SYMBOL_BORDER_COLOR_UP,1);this._pointer.setFill(new DvtSolidFill(DvtBaseScroller.SYMBOL_FILL_COLOR_UP,1));this._pointer.setStroke(a)};
DvtBaseScroller.prototype.drawActiveState=function(){if(this._upStateType!==DvtBaseScroller.TYPE_DISABLED){this._button||(this._button=this._drawButtonShape(),this.addChild(this._button));this._upButton||(this._upButton=this._drawUpButtonShape(),this.addChild(this._upButton));this._pointer||(this._pointer=this._drawSymbol(),this.addChild(this._pointer));this._upButton.setAlpha(0.0010);this._button.setAlpha(1);var a=new DvtSolidStroke(DvtBaseScroller.UP_BORDER_COLOR,1),b=new DvtSolidFill(DvtBaseScroller.UP_FILL_COLOR,
1);this._button.setStroke(a);this._button.setFill(b);a=new DvtSolidStroke(DvtBaseScroller.SYMBOL_BORDER_COLOR_UP,1);this._pointer.setFill(new DvtSolidFill(DvtBaseScroller.SYMBOL_FILL_COLOR_UP,1));this._pointer.setStroke(a)}};
DvtBaseScroller.prototype.drawDisabledState=function(){this._button||(this._button=this._drawButtonShape(),this.addChild(this._button));this._upButton||(this._upButton=this._drawUpButtonShape(),this.addChild(this._upButton));this._pointer||(this._pointer=this._drawSymbol(),this.addChild(this._pointer));this._button.setAlpha(0.0010);this._upButton.setAlpha(1);this._upButton.setStroke(new DvtSolidStroke(DvtBaseScroller.SYMBOL_FILL_COLOR_UP_DISABLED,1));var a=new DvtSolidStroke(DvtBaseScroller.SYMBOL_BORDER_COLOR_DISABLED,
1);this._pointer.setFill(new DvtSolidFill(DvtBaseScroller.SYMBOL_FILL_COLOR_UP_DISABLED,1));this._pointer.setStroke(a)};
DvtBaseScroller.prototype.drawOverState=function(){if(this._upStateType!==DvtBaseScroller.TYPE_DISABLED){this._button||(this._button=this._drawButtonShape(),this.addChild(this._button));this._upButton||(this._upButton=this._drawUpButtonShape(),this.addChild(this._upButton));this._pointer||(this._pointer=this._drawSymbol(),this.addChild(this._pointer));this._upButton.setAlpha(0.0010);this._button.setAlpha(1);var a=new DvtLinearGradientFill(90,DvtBaseScroller.OVER_FILL_COLORS),b=new DvtSolidStroke(DvtBaseScroller.OVER_BORDER_COLOR,
1);this._button.setFill(a);this._button.setStroke(b);a=new DvtSolidStroke(DvtBaseScroller.SYMBOL_BORDER_COLOR_OVER,1);this._pointer.setFill(new DvtSolidFill(DvtBaseScroller.SYMBOL_FILL_COLOR_OVER,1));this._pointer.setStroke(a)}};DvtBaseScroller.prototype.init=function(){};DvtBaseScroller.prototype._drawSymbol=function(){};DvtBaseScroller.prototype._drawUpButtonShape=function(){};
DvtBaseScroller.prototype._drawButtonShape=function(){var a=DvtPathUtils.moveTo(DvtBaseScroller.BUTTON_CORNER_RADIUS,0)+DvtPathUtils.lineTo(this._width-DvtBaseScroller.BUTTON_CORNER_RADIUS,0)+DvtPathUtils.quadTo(this._width,0,this._width,DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.lineTo(this._width,DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.lineTo(this._width,this._height-DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.quadTo(this._width,this._height,this._width-DvtBaseScroller.BUTTON_CORNER_RADIUS,
this._height)+DvtPathUtils.lineTo(this._width-DvtBaseScroller.BUTTON_CORNER_RADIUS,this._height)+DvtPathUtils.lineTo(DvtBaseScroller.BUTTON_CORNER_RADIUS,this._height)+DvtPathUtils.quadTo(0,this._height,0,this._height-DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.lineTo(0,this._height-DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.lineTo(0,DvtBaseScroller.BUTTON_CORNER_RADIUS)+DvtPathUtils.quadTo(0,0,DvtBaseScroller.BUTTON_CORNER_RADIUS,0)+DvtPathUtils.lineTo(DvtBaseScroller.BUTTON_CORNER_RADIUS,
0);DvtPathUtils.closePath();a=new DvtPath(this._context,a);a.setCursor(DvtSelectionEffectUtils.getSelectingCursor());a.setPixelHinting(!0);return a};DvtBaseScroller.prototype.setUpStateType=function(a){this._upStateType=a;a==DvtBaseScroller.TYPE_DISABLED?this.drawDisabledState():this.drawUpState()};var DvtUpScroller=function(a,b,d,e){DvtUpScroller.superclass.Init.call(this,a,b,d,e)};DvtObj.createSubclass(DvtUpScroller,DvtBaseScroller,"DvtUpScroller");
DvtUpScroller.prototype._drawSymbol=function(){var a=this._width/2-DvtBaseScroller.SYMBOL_WIDTH/2,b=this._height/2-DvtBaseScroller.SYMBOL_HEIGHT/2,a=DvtPathUtils.moveTo(a+DvtBaseScroller.SYMBOL_WIDTH/2,b)+DvtPathUtils.lineTo(a+DvtBaseScroller.SYMBOL_WIDTH,b+DvtBaseScroller.SYMBOL_HEIGHT)+DvtPathUtils.lineTo(a,b+DvtBaseScroller.SYMBOL_HEIGHT)+DvtPathUtils.lineTo(a+DvtBaseScroller.SYMBOL_WIDTH/2,b);DvtPathUtils.closePath();a=new DvtPath(this._context,a);b=new DvtSolidFill("rgb(193, 194, 211)",1);a.setFill(b);
this._pointer=a;a.setCursor(DvtSelectionEffectUtils.getSelectingCursor());return a};DvtUpScroller.prototype._drawUpButtonShape=function(){var a=DvtPathUtils.moveTo(0,this._height)+DvtPathUtils.lineTo(this._width,this._height)+DvtPathUtils.moveTo(0,0);DvtPathUtils.closePath();var a=new DvtPath(this._context,a),b=new DvtSolidFill("rgb(19, 180, 200)",1);a.setFill(b);b=new DvtSolidStroke("rgb(19, 180, 200)",1);a.setStroke(b);a.setPixelHinting(!0);return a};
DvtUpScroller.prototype._createTouchArea=function(){var a=new DvtRect(this._context,0,-15,this._width,this._height+15);a.setFill(new DvtSolidFill("#FFFFFF",0.0010));return a};var DvtDownScroller=function(a,b,d,e){DvtDownScroller.superclass.Init.call(this,a,b,d,e)};DvtObj.createSubclass(DvtDownScroller,DvtBaseScroller,"DvtDownScroller");
DvtDownScroller.prototype._drawSymbol=function(){var a=this._width/2-DvtBaseScroller.SYMBOL_WIDTH/2,b=this._height/2-DvtBaseScroller.SYMBOL_HEIGHT/2,a=DvtPathUtils.moveTo(a,b)+DvtPathUtils.lineTo(a+DvtBaseScroller.SYMBOL_WIDTH,b)+DvtPathUtils.lineTo(a+DvtBaseScroller.SYMBOL_WIDTH/2,b+DvtBaseScroller.SYMBOL_HEIGHT)+DvtPathUtils.lineTo(a,b);DvtPathUtils.closePath();a=new DvtPath(this._context,a);b=new DvtSolidFill("rgb(193, 194, 211)",1);a.setFill(b);this._pointer=a;a.setCursor(DvtSelectionEffectUtils.getSelectingCursor());
return a};DvtDownScroller.prototype._drawUpButtonShape=function(){var a=DvtPathUtils.moveTo(0,0)+DvtPathUtils.lineTo(this._width,0)+DvtPathUtils.moveTo(0,0);DvtPathUtils.closePath();var a=new DvtPath(this._context,a),b=new DvtSolidFill("rgb(19, 180, 200)",1);a.setFill(b);b=new DvtSolidStroke("rgb(19, 180, 200)",1);a.setStroke(b);a.setPixelHinting(!0);return a};
DvtDownScroller.prototype._createTouchArea=function(){var a=new DvtRect(this._context,0,0,this._width,this._height+15);a.setFill(new DvtSolidFill("#FFFFFF",0.0010));return a};var DvtScrollableLegend=function(a,b,d,e,g,h,k,m){this.Init(a,b,d,e,g,h,k,m)};DvtObj.createSubclass(DvtScrollableLegend,DvtRect,"DvtScrollableLegend");DvtScrollableLegend.VERTICAL_GAP=4;DvtScrollableLegend.SCROLLER_HEIGHT=10;DvtScrollableLegend.HORIZONTAL_SCROLLER_PADDING=2;DvtScrollableLegend.VERTICAL_SCROLLER_PADDING=2;
DvtScrollableLegend.SCROLL_ACCELERATION_PER_SECOND=7;DvtScrollableLegend.MAX_SCROLL_VELOCITY_PER_SECOND=30;DvtScrollableLegend._TEST_ID_THIS=0;DvtScrollableLegend._TEST_ID_SCROLL_BUTTON_TOP=1;DvtScrollableLegend._TEST_ID_SCROLL_BUTTON_BOTTOM=2;
DvtScrollableLegend.prototype.Init=function(a,b,d,e,g,h,k,m){this._context=a;var n=(new DvtRect(a,b,d,e,g,"scrollableLegend")).getImpl();DvtScrollableLegend.superclass.Init.call(this,a,b,d,e,g,n.getId());this._width=e;this._height=g;this._x=b;this._y=d;this._legendHeight=h;this._overlay=this._legendHandle=this._bottomScroller=this._topScroller=null;this._legendViewableHeight=this._legendItemSpace=this._legendHandleMinY=this._legendHandleMaxY=0;this._peers=[];this._topScroller=new DvtUpScroller(a,
this._width-2*DvtScrollableLegend.HORIZONTAL_SCROLLER_PADDING,DvtScrollableLegend.SCROLLER_HEIGHT,"top");this._topScroller.setTranslateX(b+DvtScrollableLegend.HORIZONTAL_SCROLLER_PADDING);this._topScroller.setTranslateY(d+DvtScrollableLegend.VERTICAL_GAP);this.addChild(this._topScroller);this._bottomScroller=new DvtDownScroller(a,this._width-2*DvtScrollableLegend.HORIZONTAL_SCROLLER_PADDING,DvtScrollableLegend.SCROLLER_HEIGHT,"bottom");this._bottomScroller.setTranslateX(b+DvtScrollableLegend.HORIZONTAL_SCROLLER_PADDING);
this._bottomScroller.setTranslateY(d+g-DvtScrollableLegend.SCROLLER_HEIGHT-DvtScrollableLegend.VERTICAL_GAP);this.addChild(this._bottomScroller);this._maskTopY=d+DvtScrollableLegend.SCROLLER_HEIGHT+DvtScrollableLegend.VERTICAL_SCROLLER_PADDING+DvtScrollableLegend.VERTICAL_GAP;this._maskBottomY=d+g-DvtScrollableLegend.SCROLLER_HEIGHT-DvtScrollableLegend.VERTICAL_SCROLLER_PADDING-DvtScrollableLegend.VERTICAL_GAP;this._legendViewableHeight=this._maskBottomY-this._maskTopY;this._bottomScrollTimer=new DvtTimer(a,
50,this.scrollDown,this);this._topScrollTimer=new DvtTimer(a,50,this.scrollUp,this);this._handle=k;DvtAgent.getAgent().isTouchDevice()?this._handle&&(this._handle.addEventListener("touchstart",this._touchHandler,!1,this),this._handle.addEventListener("touchmove",this._touchHandler,!1,this),this._handle.addEventListener("touchend",this._touchHandler,!1,this),this._topScroller.addEventListener("touchstart",this._touchTopHandler,!1,this),this._topScroller.addEventListener("touchmove",this._touchTopHandler,
!1,this),this._topScroller.addEventListener("touchend",this._touchTopHandler,!1,this),this._bottomScroller.addEventListener("touchstart",this._touchBottomHandler,!1,this),this._bottomScroller.addEventListener("touchmove",this._touchBottomHandler,!1,this),this._bottomScroller.addEventListener("touchend",this._touchBottomHandler,!1,this)):(this._topScroller.addMouseEventHandlers(),this._bottomScroller.addMouseEventHandlers(),this._topScroller.addEventListener("mousedown",this.onStartTopScroller,!1,
this),this._topScroller.addEventListener("mouseup",this.onStopTopScroller,!1,this),this._topScroller.addEventListener("click",this.onClickTopScroller,!1,this),this._bottomScroller.addEventListener("mousedown",this.onStartBottomScroller,!1,this),this._bottomScroller.addEventListener("mouseup",this.onStopBottomScroller,!1,this),this._bottomScroller.addEventListener("click",this.onClickBottomScroller,!1,this));this._handle&&(this._handle.moveY(this._maskTopY-this._y),this._topScroller.setUpStateType(DvtBaseScroller.TYPE_DISABLED),
this._bottomScroller.setUpStateType(DvtBaseScroller.TYPE_ENABLED),this._legendHandleMaxY=this._handle._y,this._legendHandleMinY=this._legendHandleMaxY-this._legendHeight+(this._maskBottomY-this._maskTopY),this._handle.setClipRect(new DvtRectangle(this._x,this._maskTopY,this._width,this._maskBottomY-this._maskTopY)));this._legendItemSpace=this._legendHeight/(0==m?1:m)};DvtScrollableLegend.prototype.__registerObject=function(a){this._peers.push(a)};
DvtScrollableLegend.prototype.processCategoryRollover=function(a){for(var a=a.getCategory(),b=0;b<this._peers.length;b++){var d=this._peers[b];if(d&&d.getCategories&&-1<DvtArrayUtils.indexOf(d.getCategories(),a)){this.scrollIntoView(b);break}}};
DvtScrollableLegend.prototype.scrollLegend=function(a){0!=a&&(this._handle.moveY(a),this.isTopScrollerDisabled()?this._topScroller.setUpStateType(DvtBaseScroller.TYPE_DISABLED):this._topScroller.setUpStateType(DvtBaseScroller.TYPE_ENABLED),this.isBottomScrollerDisabled()?this._bottomScroller.setUpStateType(DvtBaseScroller.TYPE_DISABLED):this._bottomScroller.setUpStateType(DvtBaseScroller.TYPE_ENABLED))};
DvtScrollableLegend.prototype.onStartTopScroller=function(a){this.processStartTopScroller();a&&a.preventDefault()};DvtScrollableLegend.prototype.processStartTopScroller=function(){DvtAgent.getAgent().isTouchDevice()||this._topScroller.drawActiveState();this._currTime=this._prevTime=(new Date).getTime();this._velocity=0;this._topScrollTimer.start()};DvtScrollableLegend.prototype.onStopTopScroller=function(a){this.processStopTopScroller();a&&a.preventDefault()};
DvtScrollableLegend.prototype.processStopTopScroller=function(){DvtAgent.getAgent().isTouchDevice()?this._topScroller.drawUpState():this._topScroller.drawOverState();this._topScrollTimer.stop()};DvtScrollableLegend.prototype.onClickTopScroller=function(a){this.processClickTopScroller();a&&a.preventDefault()};
DvtScrollableLegend.prototype.processClickTopScroller=function(){var a=this._legendHandleMaxY-this._handle._y;a>this._legendItemSpace?this.scrollLegend(this._legendItemSpace):this.scrollLegend(a);this.onStopTopScroller(null)};DvtScrollableLegend.prototype.onStartBottomScroller=function(a){this.processStartBottomScroller();a&&a.preventDefault()};
DvtScrollableLegend.prototype.processStartBottomScroller=function(){DvtAgent.getAgent().isTouchDevice()||this._bottomScroller.drawActiveState();this._currTime=this._prevTime=(new Date).getTime();this._velocity=0;this._bottomScrollTimer.start()};DvtScrollableLegend.prototype.onStopBottomScroller=function(a){this.processStopBottomScroller();a&&a.preventDefault()};
DvtScrollableLegend.prototype.processStopBottomScroller=function(){DvtAgent.getAgent().isTouchDevice()?this._bottomScroller.drawUpState():this._bottomScroller.drawOverState();this._bottomScrollTimer.stop()};DvtScrollableLegend.prototype.onClickBottomScroller=function(a){this.processClickBottomScroller();a&&a.preventDefault()};
DvtScrollableLegend.prototype.processClickBottomScroller=function(){var a=this._legendHandleMinY-this._handle._y;Math.abs(a)>this._legendItemSpace?this.scrollLegend(-this._legendItemSpace):this.scrollLegend(a);this.onStopBottomScroller(null)};
DvtScrollableLegend.prototype.processScrollerStart=function(a){if(a){var b=[];b.push(a);(a=a.getParent())&&b.push(a);for(a=0;a<b.length;a++){var d=b[a];if(d instanceof DvtDownScroller)return this.processStartBottomScroller(),!0;if(d instanceof DvtUpScroller)return this.processStartTopScroller(),!0}}return!1};
DvtScrollableLegend.prototype.processScrollerEnd=function(a){if(a){var b=[];b.push(a);(a=a.getParent())&&b.push(a);for(a=0;a<b.length;a++){var d=b[a];if(d instanceof DvtDownScroller)return this.processStopBottomScroller(),!0;if(d instanceof DvtUpScroller)return this.processStopTopScroller(),!0}}return!1};DvtScrollableLegend.prototype.isTopScrollerDisabled=function(){return this._handle._y>=this._legendHandleMaxY?!0:!1};
DvtScrollableLegend.prototype.isBottomScrollerDisabled=function(){return this._handle._y<=this._legendHandleMinY?!0:!1};
DvtScrollableLegend.prototype.scrollDown=function(){if(this._handle._y>this._legendHandleMinY)this._prevTime=this._currTime,this._currTime=(new Date).getTime(),this._velocity=Math.min(DvtScrollableLegend.MAX_SCROLL_VELOCITY_PER_SECOND,this._velocity+DvtScrollableLegend.SCROLL_ACCELERATION_PER_SECOND*((this._currTime-this._prevTime)/1E3)),this.scrollLegend(Math.max(this._legendHandleMinY-this._handle._y,-this._velocity));else this.onStopBottomScroller(null)};
DvtScrollableLegend.prototype.scrollUp=function(){if(this._handle._y<this._legendHandleMaxY)this._prevTime=this._currTime,this._currTime=(new Date).getTime(),this._velocity=Math.min(DvtScrollableLegend.MAX_SCROLL_VELOCITY_PER_SECOND,this._velocity+DvtScrollableLegend.SCROLL_ACCELERATION_PER_SECOND*((this._currTime-this._prevTime)/1E3)),this.scrollLegend(Math.min(this._legendHandleMaxY-this._handle._y,this._velocity));else this.onStopTopScroller(null)};
DvtScrollableLegend.prototype.scrollIntoView=function(a){if(!(0>a)){var b=0,a=this._legendHandleMaxY-a*this._legendItemSpace;a<=this._handle._y-this._legendViewableHeight+1?(b=a+this._legendViewableHeight-this._handle._y-this._legendItemSpace,this.scrollLegend(b)):a>this._handle._y&&(b=a-this._handle._y-this._legendItemSpace,this.scrollLegend(b),b=this._legendHandleMaxY-this._handle._y,b>this._legendItemSpace?this.scrollLegend(this._legendItemSpace):this.scrollLegend(b))}};
DvtScrollableLegend.prototype._touchHandler=function(a){this.getContext().getTouchManager().processAssociatedTouchDefault(a,this)};DvtScrollableLegend.prototype._touchTopHandler=function(a){this.getContext().getTouchManager().processAssociatedTouch(a,this._topScroller,this.OnTouchStartTopScroller,this)};DvtScrollableLegend.prototype._touchBottomHandler=function(a){this.getContext().getTouchManager().processAssociatedTouch(a,this._bottomScroller,this.OnTouchStartBottomScroller,this)};
DvtScrollableLegend.prototype.OnTouchStartTopScroller=function(a,b){this.processStartTopScroller();this.getContext().getTouchManager().saveProcessedTouch(b.identifier,this._topScroller,this._topScroller,"scrollablelegendtop","scrollablelegendtop",null,this.OnTouchEndTopScroller,this);a.blockTouchHold()};DvtScrollableLegend.prototype.OnTouchEndTopScroller=function(){this.processStopTopScroller()};
DvtScrollableLegend.prototype.OnTouchStartBottomScroller=function(a,b){this.processStartBottomScroller();this.getContext().getTouchManager().saveProcessedTouch(b.identifier,this._bottomScroller,this._bottomScroller,"scrollablelegendbottom","scrollablelegendbottom",null,this.OnTouchEndBottomScroller,this);a.blockTouchHold()};DvtScrollableLegend.prototype.OnTouchEndBottomScroller=function(){this.processStopBottomScroller()};
DvtScrollableLegend.prototype.immediateTouchAttempted=function(a,b){var d=this.getContext().getTouchManager(),e=b.pageX,g=b.pageY,e=this.getContext().getRelativePosition(e,g),g=new DvtRectangle(this._x,this._y,this._width,this._height),h=this.localToStage(new DvtPoint(g.x,g.y));g.x=h.x;g.y=h.y;g.containsPoint(e.x,e.y)&&(this._prevTouchY=e.y,d.saveProcessedTouchDefault(b.identifier,this,this,"scrollablelegend","scrollablelegend",this))};
DvtScrollableLegend.prototype.immediateTouchMoved=function(a,b){var d=b.pageX,e=b.pageY,d=this.getContext().getRelativePosition(d,e).y,e=d-this._prevTouchY;this._handle._y+e<this._legendHandleMinY&&(e=0);this._handle._y+e>this._legendHandleMaxY&&(e=0);this.scrollLegend(e);this._prevTouchY=d;a.preventDefault()};DvtScrollableLegend.prototype.immediateTouchEnded=function(){};
DvtScrollableLegend.prototype.dispatchTestEvent=function(a,b,d){var e;a<=DvtScrollableLegend._TEST_ID_THIS?e=this:a==DvtScrollableLegend._TEST_ID_SCROLL_BUTTON_TOP?e=this._topScroller:a==DvtScrollableLegend._TEST_ID_SCROLL_BUTTON_BOTTOM&&(e=this._bottomScroller);e&&e instanceof DvtDisplayable&&e.dispatchDisplayableEvent(b,d)};var DvtHandle=function(a,b,d,e,g){this.Init(a,b,d,e,g)};DvtObj.createSubclass(DvtHandle,DvtContainer,"DvtHandle");
DvtHandle.prototype.Init=function(a,b,d,e,g){DvtHandle.superclass.Init.call(this,a,b);this.Id=b;this._y=this._x=0;this._boundRect=d;this._clipRect=this._normalizeRect(e);this._clipId=g};DvtHandle.prototype.getId=function(){return this.Id};DvtHandle.prototype.getBoundingPoints=function(){return this._boundRect};DvtHandle.prototype.getClipRect=function(){return this._clipRect};DvtHandle.prototype.setClipRect=function(a){this._clipRect=this._normalizeRect(a)};DvtHandle.prototype.getX=function(){return this._x};
DvtHandle.prototype.getY=function(){return this._y};DvtHandle.prototype.moveX=function(a){this._x+=a;null!=this._boundRect&&(this._boundRect[0]+=a,this._boundRect[2]+=a);this.setTranslateX(this.getTranslateX()+a)};DvtHandle.prototype.moveY=function(a){this._y+=a;null!=this._boundRect&&(this._boundRect[1]+=a,this._boundRect[3]+=a);this.setTranslateY(this.getTranslateY()+a)};
DvtHandle.prototype.render=function(){if(this._clipRect){var a=new DvtClipPath(this._clipId);a.addRect(this._clipRect.x,this._clipRect.y,this._clipRect.w,this._clipRect.h);this.setClipPath(a)}};DvtHandle.prototype._normalizeRect=function(a){a&&0>a.w&&(a.w=-a.w,a.x-=a.w);a&&0>a.h&&(a.h=-a.h,a.y-=a.h);return a};var DvtDnDUtils=function(){};DvtObj.createSubclass(DvtDnDUtils,DvtObj,"DvtDnDUtils");
DvtDnDUtils.getDragFeedbackBounds=function(a,b){if(!a)return null;var d=null;if(a instanceof Array){if(0<a.length)for(var d=a[0].getDimensions(b?b:a[0].getParent()),e=1;e<a.length;e++){var g=a[e],g=g.getDimensions(b?b:g.getParent());g.x<d.x&&(d.w+=d.x-g.x,d.x=g.x);g.y<d.y&&(d.h+=d.y-g.y,d.y=g.y);g.x+g.w>d.x+d.w&&(d.w=g.x+g.w-d.x);g.y+g.h>d.y+d.h&&(d.h=g.y+g.h-d.y)}}else d=a.getDimensions(b?b:a.getParent());return d};var DvtXmlParser=function(a){this._impl||(this._impl=a.getImplFactory().newParser())};
DvtObj.createSubclass(DvtXmlParser,DvtObj,"DvtXmlParser");DvtXmlParser.prototype.parse=function(a){return this._impl&&this._impl.parse?this._impl.parse(a):null};var DvtXmlNode=function(){};DvtObj.createSubclass(DvtXmlNode,DvtObj,"DvtXmlNode");DvtXmlNode.prototype.getAttribute=function(){return null};DvtXmlNode.prototype.getChildNodes=function(){return[]};DvtXmlNode.prototype.getChild=function(a){var b=this.getChildNodes();return null!=b&&b.length>a?b[a]:null};DvtXmlNode.prototype.getFirstChild=function(){return this.getChild(0)};
DvtXmlNode.prototype.getName=function(){return null};DvtXmlNode.prototype.getAttributes=function(){return null};DvtXmlNode.prototype.getAllChildNodes=function(){return[]};DvtXmlNode.prototype.getNodeValue=function(){return null};DvtXmlNode.prototype.getTextContent=function(){return null};DvtXmlNode.prototype.getElementsByTagName=function(){return null};var DvtHtmlImplFactory=function(a){this.Init(a)};DvtObj.createSubclass(DvtHtmlImplFactory,DvtImplFactory,"DvtHtmlImplFactory");
DvtHtmlImplFactory.prototype.Init=function(a){DvtHtmlImplFactory.superclass.Init.call(this,a)};DvtHtmlImplFactory.prototype.newParser=function(){return new DvtDomXmlParser};DvtHtmlImplFactory.prototype.newTimer=function(){return new DvtHtmlTimer};DvtHtmlImplFactory.prototype.newContextMenuHandler=function(){return new DvtHtmlContextMenuHandler};DvtHtmlImplFactory.prototype.newTooltipManager=function(a){return new DvtHtmlTooltipManager(a)};DvtHtmlImplFactory.prototype.newRichTooltipManager=function(a){return new DvtHtmlRichTooltipManager(a)};
DvtHtmlImplFactory.prototype.newJsExt=function(){return new DvtSvgJsExt};var DvtHtmlTimer=function(){this.Init()};DvtObj.createSubclass(DvtHtmlTimer,DvtObj,"DvtHtmlTimer");DvtHtmlTimer.prototype.Init=function(){this._timerId=null};DvtHtmlTimer.prototype.startTimer=function(a,b,d){this._timerId=window.setInterval(function(){b.call(d)},a)};DvtHtmlTimer.prototype.stopTimer=function(){this._timerId&&(window.clearInterval(this._timerId),this._timerId=null)};var DvtHtmlContextMenuHandler=function(){this.Init()};
DvtObj.createSubclass(DvtHtmlContextMenuHandler,DvtObj,"DvtHtmlContextMenuHandler");DvtHtmlContextMenuHandler.prototype.Init=function(){};DvtHtmlContextMenuHandler.prototype.setObj=function(a){this._obj=a};DvtHtmlContextMenuHandler.prototype.prepareMenuItems=function(){};
DvtHtmlContextMenuHandler.prototype.getMenuEvent=function(a,b,d){for(var b=b.getNativeEvent(),e=0;e<a.length;e++){var g=a[e];if(d==g.getAttribute(DvtContextMenuHandler._ATTR_MENU_CONTAINER_TYPE))return a=g.getAttribute(DvtContextMenuHandler._ATTR_MENU_CONTAINER_POPUP_ID),new DvtContextMenuEvent(b,a)}return null};var DvtHtmlTooltipManager=function(a){this.Init(a)};DvtObj.createSubclass(DvtHtmlTooltipManager,DvtTooltipManager,"DvtHtmlTooltipManager");DvtHtmlTooltipManager._TOOLTIP_DIV_ID="_dvtTooltip";
DvtHtmlTooltipManager.SHOW_DELAY=500;DvtHtmlTooltipManager.HIDE_DELAY=5E3;DvtHtmlTooltipManager.TRANSITION_DURATION=250;DvtHtmlTooltipManager.BG_COLOR="#c1ccd7";DvtHtmlTooltipManager.BORDER_COLOR="#9ba2b0";DvtHtmlTooltipManager.FONT_COLOR="#383a47";DvtHtmlTooltipManager.UNSTYLED_POPUP_CLASS="OraDVTUnstyledPopup";DvtHtmlTooltipManager.DATATIP_POPUP_CLASS="OraDVTDatatipPopup";DvtHtmlTooltipManager.TOOLTIP_POPUP_CLASS="OraDVTTooltipPopup";DvtHtmlTooltipManager.BORDER_BUFFER=2;
DvtHtmlTooltipManager.TOOLTIP_ABOVE_OFFSET=10;DvtHtmlTooltipManager.prototype.Init=function(a){this._domElementId=a?a:DvtHtmlTooltipManager._TOOLTIP_DIV_ID;this._initializeTooltipElement();this._isTooltip=!0};DvtHtmlTooltipManager.prototype.showDatatip=function(a,b,d,e){this._isTooltip=!1;this.showTextAtPosition(a,b,d,e,!0,DvtHtmlTooltipManager.DATATIP_POPUP_CLASS)};
DvtHtmlTooltipManager.prototype.showTextAtPosition=function(a,b,d,e,g,h){var k=document.createElement("span");d&&(d=d.replace(/\n/g,"<br>"));k.style.visibility="inherit";k.style.width=null;k.style.height=null;k.innerHTML=d;this.getTooltipElem().style.borderColor=e;this.showElementAtPosition(a,b,k,g,!0,h)};DvtHtmlTooltipManager.PrepElement=function(a,b){b||(b=DvtHtmlTooltipManager.UNSTYLED_POPUP_CLASS);a.className=b};
DvtHtmlTooltipManager.prototype.PostElement=function(a,b,d,e,g){a.style["pointer-events"]=e?"none":"auto";a.style.width=null;a.style.height=null;g?(e=this.getOffsets(a),this.positionTip(a,b+e.x,d+e.y,b,d)):this.positionTip(a,b,d,b,d);a.style.visibility="visible"};DvtHtmlTooltipManager.prototype.showElementAtPosition=function(a,b,d,e,g,h){var k=this.getTooltipElem();DvtHtmlTooltipManager.PrepElement(k,h);k.innerHTML="";k.appendChild(d);this.PostElement(k,a,b,g,e)};
DvtHtmlTooltipManager.prototype.hideTooltip=function(){this.clearTooltip();this._timerIsRunning=this._tooltipDisplayed=!1;var a=document.getElementById(this._domElementId);a&&(a.style.visibility="hidden",a.style.width="0px",a.style.height="0px",a.style.left="0px",a.style.top="0px")};DvtHtmlTooltipManager.prototype.getTooltipElem=function(){this._initializeTooltipElement();return document.getElementById(this._domElementId)};
DvtHtmlTooltipManager.prototype._initializeTooltipElement=function(){var a=document.getElementById(this._domElementId);a||(a=document.createElement("div"),a.id=this._domElementId,a.style.visibility="hidden",document.body.appendChild(a),this.InitContent(a))};DvtHtmlTooltipManager.prototype.InitContent=function(){};
DvtHtmlTooltipManager.prototype.showTooltip=function(a,b,d,e,g,h){d&&0!=d.length&&(this._shape=e,this._x=a,this._y=b,this._text=d,this._trackMouse=g,this._timerIsRunning||(a=document.createElement("span"),a.className="OraDVTTooltipText",a.innerHTML=d,a.style.color=DvtHtmlTooltipManager.FONT_COLOR,h||(h=DvtHtmlTooltipManager.BORDER_COLOR),this.getTooltipElem().style.borderColor=h,DvtAgent.getAgent().isTouchDevice()||this._tooltipDisplayed&&this._trackMouse?this._displayTooltip(this._x,this._y,this._text,
this._borderColor):(this._timerIsRunning=!0,this._showTimerId=window.setTimeout(DvtObj.createCallback(this,this.handleShowTimer),DvtHtmlTooltipManager.SHOW_DELAY))))};DvtHtmlTooltipManager.prototype.clearTooltip=function(){this._showTimerId&&(window.clearTimeout(this._showTimerId),this._shape=this._trackMouse=this._text=this._y=this._x=this._showTimerId=void 0);this._hideTimerId&&(window.clearTimeout(this._hideTimerId),this._hideTimerId=void 0)};DvtHtmlTooltipManager.prototype.handleHideTimer=function(){this.hideTooltip()};
DvtHtmlTooltipManager.prototype.handleShowTimer=function(){this._timerIsRunning=!1;this._displayTooltip(this._x,this._y,this._text,this._borderColor);this._tooltipDisplayed=!0};DvtHtmlTooltipManager.prototype._displayTooltip=function(a,b,d,e){this._isTooltip=!0;this.showTextAtPosition(a,b,d,e,!0,DvtHtmlTooltipManager.TOOLTIP_POPUP_CLASS)};
DvtHtmlTooltipManager.prototype.getOffsets=function(a){a=DvtHtmlTooltipManager.getContentBox(a);if(DvtAgent.getAgent().isTouchDevice())return new DvtPoint(0-a.w/2,-30-a.h);var b=-12-a.h,d=12;this._isTooltip&&(b=22,d=0);DvtStyleUtils.isLocaleR2L()&&(d=-d-a.w);return new DvtPoint(d,b)};
DvtHtmlTooltipManager.prototype.positionTip=function(a,b,d,e,g){if(DvtAgent.getAgent().isTouchDevice())2>b-window.pageXOffset?(b=window.pageXOffset+2,this._isRightAdjusted=!1):b-window.pageXOffset+a.offsetWidth>window.innerWidth-2?(b=window.pageXOffset+window.innerWidth-a.offsetWidth-2,this._isRightAdjusted=!0):this._isRightAdjusted=!1,d=2>d-window.pageYOffset?window.pageYOffset+2:d-window.pageYOffset+a.offsetHeight>window.innerHeight-2?window.pageYOffset+window.innerHeight-a.offsetHeight-2:d,g=4,
a.className==DvtHtmlTooltipManager.UNSTYLED_POPUP_CLASS&&(g=0),b+a.offsetWidth>document.body.clientWidth&&(a.style.width=a.clientWidth-g+"px");else{var h=new DvtRectangle(window.pageXOffset,window.pageYOffset,document.body.clientWidth,document.body.clientHeight),b=b+a.offsetWidth>h.x+h.w?e-(b-e)-a.offsetWidth:b<h.x?e-(b-e)-a.offsetWidth:b,d=d<h.y?g+(g-(d+a.offsetHeight)):d+a.offsetHeight>h.y+h.h?g+(g-(d+a.offsetHeight)):d;b>document.body.clientWidth&&(a.style.width=a.clientWidth-4+"px")}a.style.left=
b+"px";a.style.top=d+"px"};DvtHtmlTooltipManager.prototype.getTooltipBox=function(){var a=this.getTooltipElem();return DvtHtmlTooltipManager.getContentBox(a)};DvtHtmlTooltipManager.getContentBox=function(a){return new DvtRectangle(parseInt(a.style.left),parseInt(a.style.top),a.offsetWidth,a.offsetHeight)};var DvtHtmlKeyboardListenerUtils=function(){};DvtObj.createSubclass(DvtHtmlKeyboardListenerUtils,DvtObj,"DvtHtmlKeyboardListenerUtils");
DvtHtmlKeyboardListenerUtils.getListener=function(a){return a?DvtHtmlKeyboardListenerUtils._captureListener:DvtHtmlKeyboardListenerUtils._bubbleListener};DvtHtmlKeyboardListenerUtils._bubbleListener=function(a){if(this._obj&&this._obj instanceof Array){var b,d,e,g=this._obj.length;for(b=0;b<g;b++)d=this._obj[b],e=DvtSvgEventFactory.newEvent(a,d.getObj().getContext()),d.getObj().FireListener(e,!1)}};
DvtHtmlKeyboardListenerUtils._captureListener=function(){if(this._obj&&this._obj instanceof Array){var a,b,d,e=this._obj.length;for(a=0;a<e;a++)b=this._obj[a],d=DvtSvgEventFactory.newEvent(event,b.getObj().getContext()),b.getObj().FireListener(d,!0)}};function DvtAgentImpl(a){this.Init(DvtAgent.UNKNOWN_PLATFORM,DvtAgentImpl.guessOS(),DvtAgentImpl.guessVersion(),a)}DvtObj.createSubclass(DvtAgentImpl,DvtAgent,"DvtAgentImpl");
DvtAgentImpl.getAgent=function(){var a=window;if(!DvtAgentImpl._agent){var b=navigator.userAgent.toLowerCase(),d,e,g=!1;try{g=checkAgentSupport}catch(h){}try{-1!=b.indexOf("opera")?(d=new DvtOperaAgent(a),g&&alert(DvtAgentImpl._UNSUPPORTED_BROWSER_ALERT)):-1!=b.indexOf("msie")?(e=DvtAgentImpl._parseFloatVersion(b,/msie (\d+[.]\d+)/),window.XMLHttpRequest||7<=e?d=9<=e?new DvtIE9Agent(a):8<=e?new DvtIE8Agent(a):new DvtIEAgent(a):(g&&alert(DvtAgentImpl._UNSUPPORTED_BROWSER_ALERT),d=new DvtIE6Agent(a))):
-1!=b.indexOf("applewebkit")||-1!=b.indexOf("safari")?(e=DvtAgentImpl._parseFloatVersion(b,/applewebkit\/(\d+([.]\d+)*)/),d=-1==b.indexOf("mobile")&&-1==b.indexOf("android")?new DvtSafariAgent(e,a):new DvtSafariMobileAgent(e,a),g&&525.18>e&&!(525.18>e&&-1!=b.indexOf("chrome/"))&&alert(DvtAgentImpl._UNSUPPORTED_BROWSER_ALERT)):-1!=b.indexOf("gecko/")?(e=DvtAgentImpl._parseFloatVersion(b,/rv:(\d+[.]\d+)/),d=1.9<=e?new DvtGecko19Agent(e,a):1.8<=e?new DvtGeckoAgent(e,a):new DvtGecko17Agent(e,a),g&&(DvtAgentImpl._isGeckoAgentSupported(b,
e)||alert(DvtAgentImpl._UNSUPPORTED_BROWSER_ALERT))):d||(g&&alert(DvtAgentImpl._UNSUPPORTED_BROWSER_ALERT),d=new DvtAgentImpl(a)),DvtAgentImpl._agent=d}catch(k){DvtAgentImpl._agent=new DvtAgentImpl(a)}}return DvtAgentImpl._agent};DvtAgentImpl.guessOS=function(){var a=navigator.userAgent.toLowerCase();if(-1!=a.indexOf("win"))return DvtAgent.WINDOWS_OS;if(-1!=a.indexOf("mac"))return DvtAgent.MAC_OS;if(-1!=a.indexOf("sunos"))return DvtAgent.SOLARIS_OS};DvtAgentImpl.guessVersion=function(){return parseFloat(navigator.appVersion)};
DvtAgentImpl._parseFloatVersion=function(a,b){var d=a.match(b);if(d&&(d=d[1]))return parseFloat(d)};DvtAgentImpl._isGeckoAgentSupported=function(a,b){if(1.8>b||-1==a.indexOf("firefox/"))return!1;if(1.8<b)return!0;var d=DvtAgentImpl._parseFloatVersion(a,/firefox\/(\d+[.]\d+)/);if(2>d||void 0==d)return!1;return 2.1<=d?!0:(d=a.match(/firefox\/(2([.]\d+){1,3})/))?"2.0.0.1"!=d[1]:!1};DvtAgentImpl.InitClass=function(){DvtAgentImpl._agent=null};
DvtAgentImpl.prototype.Init=function(a,b,d,e){a||(a=DvtAgent.UNKNOWN_PLATFORM);b||(b=DvtAgent.UNKNOWN_OS);this._platform=a;this._os=b;this._version=d;this._window=e;this._document=e.document};DvtAgentImpl.prototype.isWebkit=function(){return this._platform==DvtAgent.WEBKIT_PLATFORM};
DvtAgentImpl.prototype.isSafari=function(){var a=DvtAgentImpl._agent instanceof DvtSafariAgent||DvtAgentImpl._agent instanceof DvtSafariMobileAgent,b=-1!=navigator.userAgent.toLowerCase().indexOf("chrome/");return a&&!b};DvtAgentImpl.prototype.getElementPosition=function(a){for(var b=a.ownerDocument.body,d=a.offsetParent,e=a.offsetLeft,g=a.offsetTop;d;)a=d,e+=a.offsetLeft,g+=a.offsetTop,a!=b&&(e-=a.scrollLeft,g-=a.scrollTop),d=d.offsetParent;return{x:e,y:g}};
DvtAgentImpl.prototype.elementFromPagePoint=function(a,b){return document.elementFromPoint(a,b)};DvtAgentImpl.prototype.getPlatform=function(){return this._platform};DvtAgentImpl.prototype.getName=function(){return navigator.userAgent.toLowerCase()};DvtAgentImpl.prototype.getVersion=function(){return this._version};DvtAgentImpl.prototype.isChrome=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("chrome/")};DvtAgentImpl.prototype.isGecko=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("gecko/")};
DvtAgentImpl.prototype.isTouchDevice=function(){return window&&window.DvtSafariMobileAgent&&DvtAgent.getAgent()instanceof DvtSafariMobileAgent};DvtAgentImpl.prototype.isRightToLeft=function(){return"rtl"===document.documentElement.dir};function DvtSafariAgent(a,b){this.Init(a,b)}DvtObj.createSubclass(DvtSafariAgent,DvtAgentImpl,"DvtSafariAgent");DvtSafariAgent.prototype.Init=function(a,b){DvtSafariAgent.superclass.Init.call(this,DvtAgent.WEBKIT_PLATFORM,DvtAgentImpl.guessOS(),a,b)};
function DvtSafariMobileAgent(a,b){this.Init(a,b)}DvtObj.createSubclass(DvtSafariMobileAgent,DvtSafariAgent,"DvtSafariMobileAgent");DvtSafariMobileAgent.prototype.Init=function(a,b){DvtSafariMobileAgent.superclass.Init.call(this,a,b)};var DvtDomXmlParser=function(){this._parser=new DOMParser};DvtObj.createSubclass(DvtDomXmlParser,DvtObj,"DvtDomXmlParser");DvtDomXmlParser.prototype.parse=function(a){a=this._parser.parseFromString(a,"text/xml").documentElement;return new DvtDomXmlNode(a)};
var DvtDomXmlNode=function(a){this._node=a};DvtObj.createSubclass(DvtDomXmlNode,DvtXmlNode,"DvtDomXmlNode");DvtDomXmlNode.prototype.getAttribute=function(a){return this._node.getAttribute(a)};DvtDomXmlNode.prototype.getChildNodes=function(){for(var a=[],b=this._node.firstChild;null!=b;)1==b.nodeType&&a.push(new DvtDomXmlNode(b)),b=b.nextSibling;return a};DvtDomXmlNode.prototype.getName=function(){return this._node.nodeName};
DvtDomXmlNode.prototype.getAttributes=function(){for(var a=[],b=this._node.attributes.length,d=0;d<b;d++){var e=this._node.attributes[d];e.name&&"undefined"!=typeof e.value&&null!=e.value&&a.push({name:e.name,value:e.value})}return a};DvtDomXmlNode.prototype.getAllChildNodes=function(){for(var a=[],b=this._node.firstChild;null!=b;)a.push(new DvtDomXmlNode(b)),b=b.nextSibling;return a};DvtDomXmlNode.prototype.getNodeValue=function(){return this._node.nodeValue};
DvtDomXmlNode.prototype.getTextContent=function(){return this._node.textContent};DvtDomXmlNode._removeTextNodes=function(a){for(var b=a.firstChild;null!=b;){var d=b,b=b.nextSibling;a.removeChild(d)}};DvtDomXmlNode.prototype.getElementsByTagName=function(a){var b=[];if(a=this._node.getElementsByTagName(a))for(var d=0;d<a.length;d++)b.push(new DvtDomXmlNode(a[d]));return b};var DvtDocumentUtils=function(){};DvtObj.createSubclass(DvtDocumentUtils,DvtObj,"DvtDocumentUtils");
DvtDocumentUtils.elementFromTouch=function(){return null};var DvtObjDimUtils=function(){};DvtObj.createSubclass(DvtObjDimUtils,DvtObj,"DvtObjDimUtils");DvtObjDimUtils.getDimensions=function(a){return DvtObjDimUtils._getDimensions(a,!1)};DvtObjDimUtils.getDimensionsWithStroke=function(a){return DvtObjDimUtils._getDimensions(a,!0)};
DvtObjDimUtils._getDimensions=function(a,b){var d=!1,e=a.getObj(),g=e.getNumChildren(),h;h=b?DvtObjDimUtils.getDimensionsSelfWithStroke(a):DvtObjDimUtils.getDimensionsSelf(a);h||(h=new DvtRectangle,0<g&&(h.x=Number.MAX_VALUE,h.y=Number.MAX_VALUE),d=!0);for(var k,m,n,o,q=!1,s=g-1;0<=s;s--){var t=e.getChildAt(s),u;if(u=b?t.getDimensionsWithStroke():t.getDimensions()){if(0!==u.w&&0!==u.h)u=DvtObjDimUtils._applyMatrix(t,u);else if(s<g-1)continue;if(!q||u.x<k)k=u.x;if(!q||u.y<m)m=u.y;if(!q||u.x+u.w>n)n=
u.x+u.w;if(!q||u.y+u.h>o)o=u.y+u.h;q=!0}}q&&(d||(k=Math.min(k,h.x),m=Math.min(m,h.y),n=Math.max(n,h.x+h.w),o=Math.max(o,h.y+h.h)),h.x=k,h.y=m,h.w=n-k,h.h=o-m);return h};
DvtObjDimUtils._applyMatrix=function(a,b){var d=a.getMatrix();if(d&&!d.isIdentity()){var e,g,h,k;e=d.transformPoint(new DvtPoint(b.x,b.y));g=d.transformPoint(new DvtPoint(b.x+b.w,b.y));h=d.transformPoint(new DvtPoint(b.x,b.y+b.h));k=d.transformPoint(new DvtPoint(b.x+b.w,b.y+b.h));var d=Math.min(Math.min(e.x,g.x),Math.min(h.x,k.x)),m=Math.max(Math.max(e.x,g.x),Math.max(h.x,k.x)),n=Math.min(Math.min(e.y,g.y),Math.min(h.y,k.y));e=Math.max(Math.max(e.y,g.y),Math.max(h.y,k.y));b.x=d;b.y=n;b.w=m-d;b.h=
e-n}return b};
DvtObjDimUtils.getDimensionsSelf=function(a){var b,d;d=a.getObj();if(d instanceof DvtLine){d=Math.min(a.getX1(),a.getX2());var e=Math.min(a.getY1(),a.getY2());b=Math.abs(a.getX1()-a.getX2());a=Math.abs(a.getY1()-a.getY2());b=new DvtRectangle(d,e,b,a)}else if(d instanceof DvtRect||d instanceof DvtImage)b=new DvtRectangle(a.getX(),a.getY(),a.getWidth(),a.getHeight());else if(d instanceof DvtCircle)d=a.getRadius(),b=d+d,b=new DvtRectangle(a.getCx()-d,a.getCy()-d,b,b);else if(d instanceof DvtOval)d=a.getRadius(),
b=a.getRx(),e=a.getRy(),b=null===b||isNaN(b)?d:b,e=null===e||isNaN(e)?d:e,b=new DvtRectangle(a.getCx()-b,a.getCy()-e,2*b,2*e);else if(d instanceof DvtMarker)b=a.getBounds();else if(d instanceof DvtText){if(!d.getContext()instanceof DvtCanvasContext)return new DvtRectangle;b=a.getCSSStyle();var g,h,k;b&&(e=b["font-size"],g=b["font-style"],h=b["font-family"],k=b["font-weight"]);b=DvtCanvasTextUtils;if(!b)return new DvtRectangle;b=b.measureText(a.getTextString(),h,e,g,k);e=d.getX()||0;d=d.getY()||0;
g=a.getAnchor()?a.getAnchor():"start";a=a.getBaseline()?a.getBaseline():"top";"start"===g||"left"===g||("end"===g||"right"===g?e-=b.w:"center"===g&&(e-=b.w/2));"alphabetic"===a?d-=b.h:"top"!==a&&"middle"===a&&(d-=b.h/2);b.x=e;b.y=d}else d instanceof DvtPath?b=DvtPathUtils.getDimensions(d.getCommands()):d instanceof DvtPolyline||d instanceof DvtPolygon?b=DvtPolygonUtils.getDimensions(d.getPoints()):d instanceof DvtArc&&(b=a.getRx(),e=a.getRy(),b=new DvtRectangle(a.getCx()-b,a.getCy()-e,2*b,2*e));return b};
DvtObjDimUtils.getDimensionsSelfWithStroke=function(a){var b=DvtObjDimUtils.getDimensionsSelf(a);if(b&&(a=a.getObj())&&a.getStroke)if(a=a.getStroke())if(a=a.getWidth()){var d=0.5*a;b.x-=d;b.y-=d;b.w+=a;b.h+=a}return b};function AdfAgentImpl(){}DvtObj.createSubclass(AdfAgentImpl,DvtAgent,"AdfAgentImpl");AdfAgentImpl.prototype.isTouchDevice=function(){return window&&window.AdfSafariMobileAgent&&AdfAgent.getAgent()instanceof AdfSafariMobileAgent};
AdfAgentImpl.prototype.isSafari=function(){var a=window&&window.AdfSafariAgent&&AdfAgent.getAgent()instanceof AdfSafariAgent,b=this.isChrome();return a&&!b};AdfAgentImpl.prototype.isChrome=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("chrome/")};AdfAgentImpl.prototype.isWebkit=function(){return AdfAgent.AGENT.getPlatform()==AdfAgent.WEBKIT_PLATFORM};AdfAgentImpl.prototype.isGecko=function(){return AdfAgent.AGENT.getPlatform()==AdfAgent.GECKO_PLATFORM};
AdfAgentImpl.prototype.getElementPosition=function(a){return AdfAgent.AGENT.getElementPosition(a)};AdfAgentImpl.prototype.elementFromPagePoint=function(a,b){return document.elementFromPoint(a,b)};AdfAgentImpl.prototype.getPlatform=function(){return AdfAgent.AGENT.getPlatform()};AdfAgentImpl.prototype.isRightToLeft=function(){try{return AdfPage.PAGE.getLocaleContext().isRightToLeft()}catch(a){}return"rtl"===document.documentElement.dir};AdfAgentImpl.prototype.getVersion=function(){return AdfAgent.getAgent().getVersion()};
AdfAgentImpl.prototype.getName=function(){return navigator.userAgent.toLowerCase()};var DvtSelectionEvent=function(a){this.Init(DvtSelectionEvent.TYPE);this._selection=a};DvtObj.createSubclass(DvtSelectionEvent,DvtBaseComponentEvent,"DvtSelectionEvent");DvtSelectionEvent.TYPE="selection";DvtSelectionEvent.prototype.getSelection=function(){return this._selection};var DvtValueChangeEvent=function(a,b){this.Init(DvtValueChangeEvent.TYPE);this._oldValue=a;this._newValue=b};
DvtObj.createSubclass(DvtValueChangeEvent,DvtBaseComponentEvent,"DvtValueChangeEvent");DvtValueChangeEvent.TYPE="valueChange";DvtValueChangeEvent.prototype.getOldValue=function(){return this._oldValue};DvtValueChangeEvent.prototype.getNewValue=function(){return this._newValue};var DvtShowPopupEvent=function(a,b,d){this.Init(DvtShowPopupEvent.TYPE);this._showPopupBehavior=a;this._launcherBounds=b;this._launcherId=d};DvtObj.createSubclass(DvtShowPopupEvent,DvtBaseComponentEvent,"DvtShowPopupEvent");
DvtShowPopupEvent.TYPE="showPopup";DvtShowPopupEvent.prototype.getShowPopupBehavior=function(){return this._showPopupBehavior};DvtShowPopupEvent.prototype.getLauncherBounds=function(){return this._launcherBounds};DvtShowPopupEvent.prototype.getLauncherId=function(){return this._launcherId};DvtShowPopupEvent.prototype.setLauncherId=function(a){this._launcherId=a};var DvtHidePopupEvent=function(a){this.Init(DvtHidePopupEvent.TYPE);this._popupId=a};
DvtObj.createSubclass(DvtHidePopupEvent,DvtBaseComponentEvent,"DvtHidePopupEvent");DvtHidePopupEvent.TYPE="hidePopup";DvtHidePopupEvent.prototype.getPopupId=function(){return this._popupId};var DvtClientBehaviorEvent=function(a){this.Init(DvtClientBehaviorEvent.TYPE);this._clientBehavior=a};DvtObj.createSubclass(DvtClientBehaviorEvent,DvtBaseComponentEvent,"DvtClientBehaviorEvent");DvtClientBehaviorEvent.TYPE="clientBehavior";DvtClientBehaviorEvent.prototype.getClientBehavior=function(){return this._clientBehavior};
var DvtContextMenuEvent=function(a,b){this.Init(DvtContextMenuEvent.TYPE);this._nativeEvent=a;this._menuId=b};DvtObj.createSubclass(DvtContextMenuEvent,DvtBaseComponentEvent,"DvtContextMenuEvent");DvtContextMenuEvent.TYPE="contextMenu";DvtContextMenuEvent.prototype.getNativeEvent=function(){return this._nativeEvent};DvtContextMenuEvent.prototype.getMenuId=function(){return this._menuId};
var DvtContextMenuSelectEvent=function(a,b,d,e){this.Init(DvtContextMenuSelectEvent.TYPE);this._menuType=a;this._clientId=b;this._destination=d;this._targetFrame=e};DvtObj.createSubclass(DvtContextMenuSelectEvent,DvtBaseComponentEvent,"DvtContextMenuSelectEvent");DvtContextMenuSelectEvent.TYPE="contextMenuSelect";DvtContextMenuSelectEvent.prototype.getMenuType=function(){return this._menuType};DvtContextMenuSelectEvent.prototype.getClientId=function(){return this._clientId};
DvtContextMenuSelectEvent.prototype.getDestination=function(){return this._destination};DvtContextMenuSelectEvent.prototype.getTargetFrame=function(){return this._targetFrame};var DvtDrillReplaceEvent=function(a){this.Init(DvtDrillReplaceEvent.TYPE);this._id=a};DvtObj.createSubclass(DvtDrillReplaceEvent,DvtBaseComponentEvent,"DvtDrillReplaceEvent");DvtDrillReplaceEvent.TYPE="drillReplace";DvtDrillReplaceEvent.prototype.getId=function(){return this._id};
var DvtCategoryRolloverEvent=function(a,b){this.Init(a);this._category=b};DvtObj.createSubclass(DvtCategoryRolloverEvent,DvtBaseComponentEvent,"DvtCategoryRolloverEvent");DvtCategoryRolloverEvent.TYPE_OVER="categoryRollOver";DvtCategoryRolloverEvent.TYPE_OUT="categoryRollOut";DvtCategoryRolloverEvent.prototype.getCategory=function(){return this._category};var DvtHideShowCategoryEvent=function(a,b){this.Init(a);this._category=b};
DvtObj.createSubclass(DvtHideShowCategoryEvent,DvtBaseComponentEvent,"DvtHideShowCategoryEvent");DvtHideShowCategoryEvent.TYPE_HIDE="hideCategory";DvtHideShowCategoryEvent.TYPE_SHOW="showCategory";DvtHideShowCategoryEvent.prototype.getCategory=function(){return this._category};var DvtPanEvent=function(a,b,d,e,g,h){this.Init(DvtPanEvent.TYPE);this.type=this.getType();this._subtype=a;this._newX=b;this._newY=d;this._oldX=e;this._oldY=g;this._animator=h};
DvtObj.createSubclass(DvtPanEvent,DvtBaseComponentEvent,"DvtPanEvent");DvtPanEvent.TYPE="dvtPan";DvtPanEvent.SUBTYPE_DRAG_PAN_BEGIN="dragPanBegin";DvtPanEvent.SUBTYPE_DRAG_PAN_END="dragPanEnd";DvtPanEvent.SUBTYPE_PANNED="panned";DvtPanEvent.SUBTYPE_PANNING="panning";DvtPanEvent.prototype.getSubType=function(){return this._subtype};DvtPanEvent.prototype.getNewX=function(){return this._newX};DvtPanEvent.prototype.getNewY=function(){return this._newY};DvtPanEvent.prototype.getOldX=function(){return this._oldX};
DvtPanEvent.prototype.getOldY=function(){return this._oldY};DvtPanEvent.prototype.getAnimator=function(){return this._animator};var DvtZoomEvent=function(a,b,d,e,g,h){this.Init(DvtZoomEvent.TYPE);this.type=this.getType();this._subtype=a;this._newZoom=b;this._oldZoom=d;this._animator=e;this._zoomToFitBounds=g;this._centerPoint=h};DvtObj.createSubclass(DvtZoomEvent,DvtBaseComponentEvent,"DvtZoomEvent");DvtZoomEvent.TYPE="dvtZoom";DvtZoomEvent.SUBTYPE_DRAG_ZOOM_BEGIN="dragZoomBegin";
DvtZoomEvent.SUBTYPE_DRAG_ZOOM_END="dragZoomEnd";DvtZoomEvent.SUBTYPE_ZOOMED="zoomed";DvtZoomEvent.SUBTYPE_ZOOMING="zooming";DvtZoomEvent.SUBTYPE_ZOOM_TO_FIT="zoomToFit";DvtZoomEvent.SUBTYPE_ZOOM_TO_FIT_BEGIN=DvtZoomEvent.SUBTYPE_ZOOM_TO_FIT;DvtZoomEvent.SUBTYPE_ZOOM_TO_FIT_END="zoomToFitEnd";DvtZoomEvent.prototype.getSubType=function(){return this._subtype};DvtZoomEvent.prototype.getNewZoom=function(){return this._newZoom};DvtZoomEvent.prototype.getOldZoom=function(){return this._oldZoom};
DvtZoomEvent.prototype.getAnimator=function(){return this._animator};DvtZoomEvent.prototype.setZoomToFitBounds=function(a){this._zoomToFitBounds=a};DvtZoomEvent.prototype.getZoomToFitBounds=function(){return this._zoomToFitBounds};DvtZoomEvent.prototype.getCenterPoint=function(){return this._centerPoint};var DvtMaximizeSizeEvent=function(a){this.Init(DvtMaximizeSizeEvent.TYPE);this.type=this.getType();this._bZoomToFit=a};DvtObj.createSubclass(DvtMaximizeSizeEvent,DvtBaseComponentEvent,"DvtMaximizeSizeEvent");
DvtMaximizeSizeEvent.TYPE="dvtMaximizeSize";DvtMaximizeSizeEvent.prototype.isZoomToFit=function(){return this._bZoomToFit};var DvtRestoreSizeEvent=function(a){this.Init(DvtRestoreSizeEvent.TYPE);this.type=this.getType();this._bZoomToFit=a};DvtObj.createSubclass(DvtRestoreSizeEvent,DvtBaseComponentEvent,"DvtRestoreSizeEvent");DvtRestoreSizeEvent.TYPE="dvtRestoreSize";DvtRestoreSizeEvent.prototype.isZoomToFit=function(){return this._bZoomToFit};
var DvtActionEvent=function(a,b,d){this.Init(DvtActionEvent.TYPE);this.type=this.getType();this._subtype=a;this._commandId=b;this._clientId=d};DvtObj.createSubclass(DvtActionEvent,DvtBaseComponentEvent,"DvtActionEvent");DvtActionEvent.TYPE="dvtAct";DvtActionEvent.SUBTYPE_ACTION="action";DvtActionEvent.SUBTYPE_SET_ANCHOR="setAnchor";DvtActionEvent.prototype.getSubType=function(){return this._subtype};DvtActionEvent.prototype.getCommandId=function(){return this._commandId};
DvtActionEvent.prototype.getClientId=function(){return this._clientId};DvtActionEvent.prototype.setClientId=function(a){this._clientId=a};var DvtBreadcrumbsDrillEvent=function(a){this.Init(DvtBreadcrumbsDrillEvent.TYPE);this._id=a};DvtObj.createSubclass(DvtBreadcrumbsDrillEvent,DvtBaseComponentEvent,"DvtBreadcrumbsDrillEvent");DvtBreadcrumbsDrillEvent.TYPE="breadcrumbsDrill";DvtBreadcrumbsDrillEvent.prototype.getId=function(){return this._id};var DvtEventDispatcher={};
DvtObj.createSubclass(DvtEventDispatcher,DvtObj,"DvtEventDispatcher");DvtEventDispatcher.dispatchEvent=function(a,b,d,e){a&&(b?a.call(b,e,d):eval(a+"(event, component)"))};var DvtIsolateEvent=function(a){this.Init(DvtIsolateEvent.TYPE);this._isolatedRows=a};DvtObj.createSubclass(DvtIsolateEvent,DvtBaseComponentEvent,"DvtIsolateEvent");DvtIsolateEvent.TYPE="isolate";DvtIsolateEvent.prototype.getIsolatedRows=function(){return this._isolatedRows};
var DvtLogEvent=function(a,b,d){this.Init(DvtLogEvent.TYPE);this._logType=a;this._level=b;this._message=d};DvtObj.createSubclass(DvtLogEvent,DvtBaseComponentEvent,"DvtLogEvent");DvtLogEvent.TYPE="log";DvtLogEvent.PERFORMANCE="performance";DvtLogEvent.LOG="log";DvtLogEvent.prototype.getLogType=function(){return this._logType};DvtLogEvent.prototype.getLevel=function(){return this._level};DvtLogEvent.prototype.getMessage=function(){return this._messaage};var DvtSetPropertyEvent=function(){this.Init(DvtSetPropertyEvent.TYPE)};
DvtObj.createSubclass(DvtSetPropertyEvent,DvtBaseComponentEvent,"DvtSetPropertyEvent");DvtSetPropertyEvent.TYPE="dvtSetPropertyEvent";var DvtFlashContext=function(a,b,d){this.Init(a,b,d)};DvtObj.createSubclass(DvtFlashContext,DvtContext,"DvtFlashContext");DvtFlashContext.prototype.queueRender=function(){};var DvtFlashDocumentUtils=function(){};DvtObj.createSubclass(DvtFlashDocumentUtils,DvtDocumentUtils,"DvtFlashDocumentUtils");
DvtFlashDocumentUtils.elementFromPoint=function(a,b){if(DvtFlashDocumentUtils.stage){var d=DvtFlashDocumentUtils.stage.getObjectsUnderPoint(DvtFlashDocumentUtils.context.getImplFactory().newPoint(a,b));if(d&&0<d.length)for(d=d[d.length-1];d;){if(d.hasOwnProperty("_obj")&&d._obj&&d.getObj&&d.getObj())return d.getObj();d=d.parent}}return null};DvtFlashDocumentUtils.getStageRelativePosition=function(a,b,d){a=DvtFlashDocumentUtils.getStageAbsolutePosition(a);return new DvtPoint(b-a.x,d-a.y)};
DvtFlashDocumentUtils.getStageAbsolutePosition=function(){return new DvtPoint(0,0)};DvtFlashDocumentUtils.isFilterSupported=function(){return!1};DvtFlashDocumentUtils.isStrokeTimeoutRequired=function(){return!1};DvtFlashDocumentUtils.isEventAvailableOutsideClip=function(){return!1};DvtFlashDocumentUtils.isFilterStraightLineAdjustmentNeeded=function(){return!1};DvtFlashDocumentUtils.fixWebkitFilters=function(){};DvtFlashDocumentUtils.fixWebkitFiltersForDisplayable=function(){};
DvtFlashDocumentUtils._fixFilter=function(){};DvtFlashDocumentUtils.cancelDomEvent=function(){};var DvtSvgContext=function(a,b){this._implFactory=new DvtSvgImplFactory(this);this._defs=this._implFactory.newDefs();this._root=a;a.appendChild(this._defs);this.Init(this._implFactory,a,b);a.appendChild(this._stage.getImpl().getElem());this._clipPathMap={}};DvtObj.createSubclass(DvtSvgContext,DvtContext,"DvtSvgContext");DvtSvgContext.prototype.appendDefs=function(a){this._defs.appendChild(a)};
DvtSvgContext.prototype.getDefs=function(){return this._defs};DvtSvgContext.prototype.getImplFactory=function(){return this._implFactory};DvtSvgContext.prototype.removeDefs=function(a){this._defs.removeChild(a)};DvtSvgContext.prototype.getStage=function(){return this._stage};DvtSvgContext.prototype.storeClipPath=function(a,b){b?this._clipPathMap[a]=b:(this._clipPathMap[a]=null,delete this._clipPathMap[a])};
DvtSvgContext.prototype.hasClipPath=function(a,b){var d=this._clipPathMap[a];return d?d===b:!1};DvtSvgContext.prototype.fixBrowserTextRTL=function(){(DvtAgent.getAgent().isWebkit()||-1!=DvtAgent.getAgent().getName().indexOf("opera"))&&!DvtAgent.getAgent().isTouchDevice()?this._root.setAttributeNS(null,"text-anchor","end"):this._root.setAttributeNS(null,"text-anchor","start")};var DvtSvgUtils={};DvtObj.createSubclass(DvtSvgUtils,DvtObj,"DvtSvgUtils");DvtSvgUtils.SVG_NS="http://www.w3.org/2000/svg";
DvtSvgUtils.XLINK_NS="http://www.w3.org/1999/xlink";DvtSvgUtils.createSvgDocument=function(a){var b=document.createElementNS(DvtSvgUtils.SVG_NS,"svg");b.setAttributeNS(null,"id",a);b.setAttributeNS(null,"width","100%");b.setAttributeNS(null,"height","100%");return b};
DvtSvgUtils.getDragFeedback=function(a,b){a instanceof Array||(a=[a]);var d=DvtDnDUtils.getDragFeedbackBounds(a,b),e=DvtSvgUtils._getDragFeedbackSVG(a,d),g={};g.width=d.w+2*DvtDragSource.DRAG_FEEDBACK_MARGIN;g.height=d.h+2*DvtDragSource.DRAG_FEEDBACK_MARGIN;e&&(g.svg=e);return g};
DvtSvgUtils._getDragFeedbackSVG=function(a,b){var d=DvtSvgUtils.createSvgDocument("dnd"),e="translate("+(DvtDragSource.DRAG_FEEDBACK_MARGIN-b.x)+","+(DvtDragSource.DRAG_FEEDBACK_MARGIN-b.y)+")",g=DvtSvgShapeUtils.createElement("g");g.setAttributeNS(null,"transform",e);d.appendChild(g);for(e=0;e<a.length;e++){var h=a[e],k=h.getImpl().getElem().cloneNode(!0);k.getAttributeNS(null,"filter")&&k.setAttributeNS(null,"filter",null);var m=DvtSvgShapeUtils.createElement("g");g.appendChild(m);for(var h=h.getPathToStage(),
n=null,o=1;o<h.length;o++)n?(n=n.clone(),n.concat(h[o].getMatrix())):n=h[o].getMatrix();n&&(h="matrix("+n.getA()+","+n.getC()+","+n.getB()+","+n.getD()+","+n.getTx()+","+n.getTy()+")",m.setAttributeNS(null,"transform",h));m.appendChild(k)}return d};var DvtCanvasUtils={};DvtObj.createSubclass(DvtCanvasUtils,DvtObj,"DvtCanvasUtils");DvtCanvasUtils.createCanvasDocument=function(a,b,d){var e=document.createElement("Canvas");d&&(e.id=d);a&&(e.width=a);b&&(e.height=b);return e};
var DvtCanvasContext=function(a,b){this._implFactory=new DvtCanvasImplFactory(this);this._root=a;this._parent=a.parentNode;this._asyncLoadCount=0;this.Init(this._implFactory,a,b);this._clipPathMap={}};DvtObj.createSubclass(DvtCanvasContext,DvtContext,"DvtCanvasContext");DvtCanvasContext.prototype.getImplFactory=function(){return this._implFactory};DvtCanvasContext.prototype.getStage=function(){return this._stage};DvtCanvasContext.prototype.getDocumentUtils=function(){return DvtCanvasDocumentUtils};
DvtCanvasContext.prototype.getDocumentUtils=function(){return DvtCanvasDocumentUtils};DvtCanvasContext.prototype.getJsExt=function(){this._externalInterface||(this._externalInterface=new DvtCanvasJsExt);return this._externalInterface};DvtCanvasContext.prototype.queueRender=function(){this._renderTimer||(this._renderTimer=new DvtTimer(this,0,this._renderEvent,this,1),this._renderTimer.start())};DvtCanvasContext.prototype._renderEvent=function(){this._renderTimer=null;this._stage.getImpl().render()};
DvtCanvasContext.prototype.incAsyncLoadCount=function(){this._asyncLoadCount++};DvtCanvasContext.prototype.decAsyncLoadCount=function(){this._asyncLoadCount--;0>=this._asyncLoadCount&&(this._asyncLoadCount=0,this.queueRender())};DvtCanvasContext.prototype.fixBrowserTextRTL=function(){};
var DvtXmlContext=function(a){this._implFactory=new DvtXmlImplFactory(this);this.Init(this._implFactory,null,a);this._root=new DvtXmlContainer(a+"_svg","svg");this._root.Svg.width="100%";this._root.Svg.height="100%";this._root.Svg.xmlns="http://www.w3.org/2000/svg";this._root.Svg["xmlns:xlink"]="http://www.w3.org/1999/xlink";this._defs=this._implFactory.newDefs();this._root.addChild(this._defs);this._root.addChild(this._stage.getImpl())};DvtObj.createSubclass(DvtXmlContext,DvtContext,"DvtXmlContext");
DvtXmlContext.prototype.appendDefs=function(a){this._defs.addChild(a)};DvtXmlContext.prototype.removeDefs=function(a){this._defs.removeChild(a)};DvtXmlContext.prototype.getDefs=function(){return this._defs};DvtXmlContext.prototype.toSvg=function(){return this._root.toSvg()};DvtXmlContext.prototype.supportsAnimation=function(){return!1};