/*
 * Isomorphic SmartClient
 * Version v11.1p_2017-06-29 (2017-06-29)
 * Copyright(c) 1998 and beyond Isomorphic Software, Inc. All rights reserved.
 * "SmartClient" is a trademark of Isomorphic Software, Inc.
 *
 * licensing@smartclient.com
 *
 * http://smartclient.com/license
 */

var isc=window.isc?window.isc:{};if(window.isc&&!window.isc.module_Core){isc.module_Core=1;isc._moduleStart=isc._Core_start=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc._moduleEnd&&(!isc.Log||(isc.Log&&isc.Log.logIsDebugEnabled('loadTime')))){isc._pTM={message:'Core load/parse time: '+(isc._moduleStart-isc._moduleEnd)+'ms',category:'loadTime'};if(isc.Log&&isc.Log.logDebug)isc.Log.logDebug(isc._pTM.message,'loadTime');else if(isc._preLog)isc._preLog[isc._preLog.length]=isc._pTM;else isc._preLog=[isc._pTM]}isc.definingFramework=true;if(!window.isc||typeof isc.Packager!="object"){var isc=window.isc?window.isc:{};isc.$d=new Date().getTime();isc.version="v11.1p_2017-06-29/LGPL Deployment";isc.versionNumber="v11.1p_2017-06-29";isc.buildDate="2017-06-29";isc.expirationDate="";isc.scVersion="11.1p";isc.scVersionNumber="11.1";isc.sgwtVersion="6.1p";isc.sgwtVersionNumber="6.1";isc.scParityStableVersionNumber="11.1";isc.sgwtParityStableVersionNumber="6.1";isc.licenseType="LGPL";isc.licenseCompany="Isomorphic Software";isc.licenseSerialNumber="ISC_LGPL_NIGHTLY";isc.licensingPage="http://smartclient.com/product/";isc.$1142="debugModules";isc.$1143="nonDebugModules";isc.checkForDebugAndNonDebugModules=function(){if(isc.checkForDebugAndNonDebugModules.$75z)return;var _1=isc['_'+this.$1142],_2=_1!=null&&_1.length>0,_3=isc['_'+this.$1143],_4=_3!=null&&_3.length>0;if(_2&&_4){isc.logWarn("Both Debug and non-Debug modules were loaded; the Debug versions of '"+_1.join("', '")+"' and the non-Debug versions of '"+_3.join("', '")+"' were loaded. Mixing Debug and non-Debug modules is not supported and may lead to JavaScript errors and/or unpredictable behavior. To fix, ensure that only modules in the modules/ folder or the modules-debug/ folder are loaded and clear the browser cache. If using Smart GWT, also clear the GWT unit cache and recompile.");isc.checkForDebugAndNonDebugModules.$75z=true}};isc.$41r={SCServer:{present:"false",name:"SmartClient Server",serverOnly:true,isPro:true},Drawing:{present:"true",name:"Drawing Module"},PluginBridges:{present:"true",name:"PluginBridges Module"},RichTextEditor:{present:"true",name:"RichTextEditor Module"},Calendar:{present:"true",name:"Calendar Module"},Analytics:{present:"false",name:"Analytics Module"},Charts:{present:"false",name:"Charts Module"},Tools:{present:"${includeTools}",name:"Dashboards and Tools Module"},NetworkPerformance:{present:"false",name:"Network Performance Module"},FileLoader:{present:"false",name:"Network Performance Module"},RealtimeMessaging:{present:"false",name:"RealtimeMessaging Module"},serverCriteria:{present:"false",name:"Server Advanced Filtering",serverOnly:true,isFeature:true},customSQL:{present:"false",name:"SQL Templating",serverOnly:true,isFeature:true},chaining:{present:"false",name:"Transaction Chaining",serverOnly:true,isFeature:true},batchDSGenerator:{present:"false",name:"Batch DS-Generator",serverOnly:true,isFeature:true},batchUploader:{present:"false",name:"Batch Uploader",serverOnly:true,isFeature:true},transactions:{present:"false",name:"Automatic Transaction Management",serverOnly:true,isFeature:true}};isc.canonicalizeModules=function(_1){if(!_1)return null;if(isc.isA.String(_1)){if(_1.indexOf(",")!=-1){_1=_1.split(",");var _2=/^\s+/,_3=/\s+$/;for(var i=0;i<_1.length;i++){_1[i]=_1[i].replace(_2,"").replace(_3,"")}}else _1=[_1]}
return _1};isc.hasOptionalModules=function(_1){if(!_1)return true;_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++)if(!isc.hasOptionalModule(_1[i]))return false;return true};isc.getMissingModules=function(_1){var _2=[];_1=isc.canonicalizeModules(_1);for(var i=0;i<_1.length;i++){var _4=_1[i];if(!isc.hasOptionalModule(_4))_2.add(isc.$41r[_4])}
return _2};isc.hasOptionalModule=function(_1){var v=isc.$41r[_1];if(!v){if(isc.Log)isc.Log.logWarn("isc.hasOptionalModule - unknown module: "+_1);return false}
return v.present=="true"||v.present.charAt(0)=="$"};isc.getOptionalModule=function(_1){return isc.$41r[_1]};isc.$a4b5c1c2d3=function(_1){if(this.hasOptionalModule(_1))return;var _2=isc.$41r[_1];if(_2)_2.present=!!_1+""};isc.$a=window.isc_useSimpleNames;if(isc.$a==null)isc.$a=true;if(window.OpenAjax){isc.$b=isc.versionNumber.replace(/[a-zA-Z_]+/,".0");OpenAjax.registerLibrary("SmartClient","http://smartclient.com/SmartClient",isc.$b,{namespacedMode:!isc.$a,iscVersion:isc.version,buildDate:isc.buildDate,licenseType:isc.licenseType,licenseCompany:isc.licenseCompany,licenseSerialNumber:isc.licenseSerialNumber});OpenAjax.registerGlobals("SmartClient",["isc"])}
isc.$e=window.isc_useLongDOMIDs;isc.$f="isc.";isc.addGlobal=function(_1,_2){if(_1.indexOf(isc.$f)==0)_1=_1.substring(4);isc[_1]=_2;if(isc.$a)window[_1]=_2}
isc.onLine=true;isc.isOffline=function(){return!isc.onLine};isc.goOffline=function(){isc.onLine=false};isc.goOnline=function(){isc.onLine=true};if(window.addEventListener){window.addEventListener("online",isc.goOnline,false);window.addEventListener("offline",isc.goOffline,false)}}
if(typeof isc.Browser!="object"){isc.addGlobal("Browser",{isSupported:false,$102q:function(_1,_2){if(!_1){isc.logWarn("assertion failed"+(_2?" with message: '"+_2+"'":"")+". Stack trace:"+(isc.Class.getStackTrace()))}}});isc.Browser.isOpera=(navigator.appName=="Opera"||navigator.userAgent.indexOf("Opera")!=-1);isc.Browser.isNS=(navigator.appName=="Netscape"&&!isc.Browser.isOpera);isc.Browser.isIE=(navigator.appName=="Microsoft Internet Explorer"&&!isc.Browser.isOpera)||navigator.userAgent.indexOf("Trident/")!=-1;isc.Browser.isMSN=(isc.Browser.isIE&&navigator.userAgent.indexOf("MSN")!=-1);isc.Browser.isMoz=(navigator.userAgent.indexOf("Gecko")!=-1)&&(navigator.userAgent.indexOf("Safari")==-1)&&(navigator.userAgent.indexOf("AppleWebKit")==-1)&&!isc.Browser.isIE;isc.Browser.isCamino=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Camino/")!=-1);isc.Browser.isFirefox=(isc.Browser.isMoz&&navigator.userAgent.indexOf("Firefox/")!=-1);isc.Browser.isAIR=(navigator.userAgent.indexOf("AdobeAIR")!=-1);isc.Browser.isWebKit=navigator.userAgent.indexOf("WebKit")!=-1;isc.Browser.isSafari=isc.Browser.isAIR||navigator.userAgent.indexOf("Safari")!=-1||navigator.userAgent.indexOf("AppleWebKit")!=-1;isc.Browser.isEdge=isc.Browser.isSafari&&(navigator.userAgent.indexOf("Edge/")!=-1);isc.Browser.isChrome=isc.Browser.isSafari&&!isc.Browser.isEdge&&(navigator.userAgent.indexOf("Chrome/")!=-1);if(!isc.Browser.isIE&&!isc.Browser.isOpera&&!isc.Browser.isMoz&&!isc.Browser.isAIR&&!isc.Browser.isWebkit&&!isc.Browser.isSafari)
{if(navigator.appVersion.indexOf("MSIE")!=-1){isc.Browser.isIE=true}}
if(navigator.userAgent.indexOf("Trident/")>=0&&navigator.userAgent.lastIndexOf("rv:")>=0)
{isc.Browser.minorVersion=parseFloat(navigator.userAgent.substring(navigator.userAgent.lastIndexOf("rv:")+"rv:".length))}else{isc.Browser.minorVersion=parseFloat(isc.Browser.isIE?navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5):navigator.appVersion)}
if(isc.Browser.isIE){if(document.documentMode!=null){isc.Browser.minorVersion=Math.max(isc.Browser.minorVersion,document.documentMode)}}else(function(){var _1,_2;if(navigator.appVersion){_1="Version/";_2=navigator.appVersion.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(navigator.appVersion.substring(_2+_1.length));return}}
var _3=navigator.userAgent;_1="Chrome/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
_1="Camino/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
_1="Firefox/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}
if(_3.indexOf("Opera/")>=0){_1="Version/";_2=_3.indexOf(_1);if(_2>=0){isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}else{_1="Opera/";_2=_3.indexOf(_1);isc.Browser.minorVersion=parseFloat(_3.substring(_2+_1.length));return}}})();isc.Browser.version=parseInt(isc.Browser.minorVersion);isc.Browser.isIE6=isc.Browser.isIE&&isc.Browser.version<=6;isc.Browser.supportsHTML5Audio=(document.createElement("audio")!=null)?"play":null;if(isc.Browser.isCamino){isc.Browser.caminoVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Camino/")+7)}
if(isc.Browser.isFirefox){var userAgent=navigator.userAgent,firefoxVersion=userAgent.substring(userAgent.indexOf("Firefox/")+8),majorMinorVersion=firefoxVersion.replace(/([^.]+\.[^.]+)\..*/,"$1");isc.Browser.firefoxVersion=firefoxVersion;isc.Browser.firefoxMajorMinorNumber=parseFloat(majorMinorVersion)}
if(isc.Browser.isMoz){isc.Browser.$g=navigator.userAgent.indexOf("Gecko/")+6;isc.Browser.geckoVersion=parseInt(navigator.userAgent.substring(isc.Browser.$g,isc.Browser.$g+8));if(isc.Browser.isFirefox){if(isc.Browser.firefoxVersion.match(/^1\.0/))isc.Browser.geckoVersion=20050915;else if(isc.Browser.firefoxVersion.match(/^2\.0/))isc.Browser.geckoVersion=20071108}
if(isc.Browser.version>=17)isc.Browser.geckoVersion=20121121}
isc.Browser.isStrict=document.compatMode=="CSS1Compat";if(isc.Browser.isStrict&&isc.Browser.isMoz){isc.Browser.$51p=document.doctype.publicId;isc.Browser.$51q=document.doctype.systemId}
isc.Browser.isTransitional=/.*(Transitional|Frameset)/.test((document.all&&document.all[0]&&document.all[0].nodeValue)||(document.doctype&&document.doctype.publicId));isc.Browser.isIE7=isc.Browser.isIE&&isc.Browser.version==7;isc.Browser.isIE8=isc.Browser.isIE&&isc.Browser.version>=8&&document.documentMode==8;isc.Browser.isIE8Strict=isc.Browser.isIE&&(isc.Browser.isStrict&&document.documentMode==8)||document.documentMode>8;isc.Browser.isIE9=isc.Browser.isIE&&isc.Browser.version>=9&&document.documentMode>=9;isc.Browser.isIE10=isc.Browser.isIE&&isc.Browser.version>=10;isc.Browser.isIE11=isc.Browser.isIE&&isc.Browser.version>=11;isc.Browser.AIRVersion=(isc.Browser.isAIR?navigator.userAgent.substring(navigator.userAgent.indexOf("AdobeAir/")+9):null);if(isc.Browser.isSafari){if(isc.Browser.isAIR){isc.Browser.safariVersion=530}else{if(navigator.userAgent.indexOf("Safari/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Safari/")+7)}else if(navigator.userAgent.indexOf("AppleWebKit/")!=-1){isc.Browser.rawSafariVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("AppleWebKit/")+12)}else{isc.Browser.rawSafariVersion="530"}
isc.Browser.safariVersion=(function(){var _1=isc.Browser.rawSafariVersion,_2=_1.indexOf(".");if(_2==-1)return parseInt(_1);var _3=_1.substring(0,_2+1),_4;while(_2!=-1){_2+=1;_4=_1.indexOf(".",_2);_3+=_1.substring(_2,(_4==-1?_1.length:_4));_2=_4}
return parseFloat(_3)})()}}
isc.Browser.isWin=navigator.platform.toLowerCase().indexOf("win")>-1;isc.Browser.isWin2k=navigator.userAgent.match(/NT 5.01?/)!=null;isc.Browser.isMac=navigator.platform.toLowerCase().indexOf("mac")>-1;isc.Browser.isUnix=(!isc.Browser.isMac&&!isc.Browser.isWin);isc.Browser.isAndroid=navigator.userAgent.indexOf("Android")>-1;if(isc.Browser.isAndroid){var pos=navigator.userAgent.indexOf("Android");if(pos>=0){isc.Browser.androidMinorVersion=parseFloat(navigator.userAgent.substring(pos+"Android".length));if(window.isNaN(isc.Browser.androidMinorVersion))delete isc.Browser.androidMinorVersion}
isc.Browser.isAndroidWebView=navigator.userAgent.indexOf("Version/")>=0}
isc.Browser.isRIM=isc.Browser.isBlackBerry=navigator.userAgent.indexOf("BlackBerry")>-1||navigator.userAgent.indexOf("PlayBook")>-1;isc.Browser.isMobileIE=navigator.userAgent.indexOf("IEMobile")>-1;isc.Browser.isMobileFirefox=isc.Browser.isFirefox&&(navigator.userAgent.indexOf("Mobile")>-1||navigator.userAgent.indexOf("Tablet")>-1);isc.Browser.isMobileWebkit=(isc.Browser.isSafari&&(navigator.userAgent.indexOf(" Mobile/")>-1||navigator.userAgent.indexOf("(iPad")>-1)||isc.Browser.isAndroid||isc.Browser.isBlackBerry)&&!isc.Browser.isFirefox;isc.Browser.isMobile=(isc.Browser.isMobileFirefox||isc.Browser.isMobileIE||isc.Browser.isMobileWebkit);isc.Browser.isTouch=(isc.Browser.isMobileFirefox||isc.Browser.isMobileIE||isc.Browser.isMobileWebkit);isc.Browser.setIsTouch=function(_1){_1=isc.Browser.isTouch=!!_1;if(isc.Browser.isDesktop){isc.Browser.isHandset=false;isc.Browser.isTablet=false}else{isc.Browser.isHandset=_1&&!isc.Browser.isTablet;isc.Browser.isTablet=!isc.Browser.isHandset}
isc.Browser.hasNativeDrag=!_1&&"draggable"in document.documentElement&&!isc.Browser.isIE;isc.Browser.nativeMouseMoveOnCanvasScroll=!_1&&(isc.Browser.isSafari||isc.Browser.isChrome)};isc.Browser.isIPhone=(isc.Browser.isMobileWebkit&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPad")>-1));if(isc.Browser.isIPhone){var match=navigator.userAgent.match(/CPU\s+(?:iPhone\s+)?OS\s*([0-9_]+)/i);if(match!=null){isc.Browser.iOSMinorVersion=window.parseFloat(match[1].replace('_','.'));isc.Browser.iOSVersion=isc.Browser.iOSMinorVersion<<0}
isc.Browser.isUIWebView=navigator.userAgent.indexOf("Safari")<0;isc.Browser.isMobileSafari=!isc.Browser.isUIWebView&&navigator.userAgent.indexOf("CriOS/")<0}
isc.Browser.isIPad=(isc.Browser.isIPhone&&navigator.userAgent.indexOf("iPad")>-1);isc.Browser.isWindowsPhone=navigator.userAgent.indexOf("Windows Phone")>-1;if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7){var iOS7IPadStyleSheetID="isc_iOS7IPadStyleSheet";if(document.getElementById(iOS7IPadStyleSheetID)==null){var styleElement=document.createElement("style");styleElement.id=iOS7IPadStyleSheetID;document.head.appendChild(styleElement);var s=styleElement.sheet;s.insertRule("\n@media (orientation:landscape) {\nhtml {position: fixed;bottom: 0px;width: 100%;height: 672px;}body {position: fixed;top: 0px;margin: 0px;padding: 0px;width: 100%;height: 672px;}\n}\n",0)}
(function(){var _1=function(_7){if(_7==null)return false;var _2=_7.tagName;return(_2==="INPUT"||_2==="SELECT"||_2==="TEXTAREA")};var _3=null;window.addEventListener("scroll",function(){if(document.body==null)return;var _4=document.body.scrollTop;if(_4==0)return;var _5=document.activeElement;if(_1(_5)){var _6=function onBlur(_7){_5.removeEventListener("blur",_6,true);if(_3!=null)clearTimeout(_3);_3=setTimeout(function(){_3=null;_5=document.activeElement;if(_5!==_7.target&&_1(_5)){_5.addEventListener("blur",_6,true)}else{document.body.scrollTop=0}},1)};_5.addEventListener("blur",_6,true)}else{document.body.scrollTop=0}},false)})()}
if(window.isc_isTablet!=null){isc.Browser.isTablet=!!window.isc_isTablet}else{isc.Browser.isTablet=isc.Browser.isIPad||(isc.Browser.isRIM&&navigator.userAgent.indexOf("Tablet")>-1)||(isc.Browser.isAndroid&&navigator.userAgent.indexOf("Mobile")==-1)}
isc.Browser.$138e=isc.Browser.isTablet;isc.Browser.setIsTablet=function(_1){_1=isc.Browser.isTablet=!!_1;isc.Browser.isHandset=(isc.Browser.isTouch&&!isc.Browser.isTablet);isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset)};isc.Browser.isHandset=(isc.Browser.isTouch&&!isc.Browser.isTablet);isc.Browser.setIsHandset=function(_1){_1=isc.Browser.isHandset=!!_1;isc.Browser.isTablet=(isc.Browser.isTouch&&!isc.Browser.isHandset);isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset)};isc.Browser.isDesktop=(!isc.Browser.isTablet&&!isc.Browser.isHandset);isc.Browser.setIsDesktop=function(_1){_1=isc.Browser.isDesktop=!!_1;if(_1){isc.Browser.isHandset=false;isc.Browser.isTablet=false}else{isc.Browser.isTablet=isc.Browser.$138e;isc.Browser.isHandset=!isc.Browser.isTablet}};isc.Browser.isBorderBox=(isc.Browser.isIE&&!isc.Browser.isStrict);isc.Browser.lineFeed=(isc.Browser.isWin?"\r\n":"\n");isc.Browser.$h=false;isc.Browser.isDOM=(isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||(isc.Browser.isIE&&isc.Browser.version>=5));isc.Browser.isSupported=((isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.Browser.isWin)||isc.Browser.isMoz||isc.Browser.isOpera||isc.Browser.isSafari||isc.Browser.isAIR);isc.Browser.nativeMouseMoveOnCanvasScroll=!isc.Browser.isTouch&&(isc.Browser.isSafari||isc.Browser.isChrome);isc.Browser.seleniumPresent=(function(){var _1=location.href.match(/[?&](?:sc_selenium)=([^&#]*)/);return _1&&_1.length>1&&"true"==_1[1]})();isc.Browser.SHOWCASE="showcase";isc.Browser.RUNNER="runner";isc.Browser.autotest=(function(){var _1=location.href.match(/[?&](?:autotest)=([^&#]*)/);return _1&&_1.length>1?_1[1]:null})();isc.Browser.allowsXSXHR=((isc.Browser.isFirefox&&isc.Browser.firefoxMajorMinorNumber>=3.5)||(isc.Browser.isChrome)||(isc.Browser.isSafari&&isc.Browser.safariVersion>=531));var isc_useGradientsPreIE9=window.isc_useGradientsPreIE9;isc.Browser.useCSSFilters=!isc.Browser.isIE||isc.Browser.isIE9||isc_useGradientsPreIE9!=false;var isc_css3Mode=window.isc_css3Mode;if(isc_css3Mode=="on"){isc.Browser.useCSS3=true}else if(isc_css3Mode=="off"){isc.Browser.useCSS3=false}else if(isc_css3Mode=="supported"||isc_css3Mode=="partialSupport"||(typeof isc_css3Mode)==="undefined")
{isc.Browser.useCSS3=isc.Browser.isWebKit||isc.Browser.isFirefox||(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10))}else{isc.Browser.useCSS3=false}
var isc_spriting=window.isc_spriting;if(isc_spriting=="off"){isc.Browser.useSpriting=false}else{isc.Browser.useSpriting=(!isc.Browser.isIE||isc.Browser.version>=7)}
isc.Browser.useInsertAdjacentHTML=!!document.documentElement.insertAdjacentHTML;isc.Browser.useInsertAdjacentHTMLForSVG=(function(){if(!!document.createElementNS){var _1=document.createElementNS("http://www.w3.org/2000/svg","g");if((typeof _1.insertAdjacentHTML)==="function"){try{_1.insertAdjacentHTML("beforeend","<rect/><ellipse/>");return(_1.childNodes.length==2&&_1.childNodes[1].namespaceURI==="http://www.w3.org/2000/svg")}catch(e){}}}
return false})();isc.Browser.hasNativeGetRect=(!isc.Browser.isIE&&(!isc.Browser.isSafari||!isc.Browser.isMac||isc.Browser.version>=6)&&!!document.createRange&&!!(document.createRange().getBoundingClientRect));isc.Browser.useClipDiv=(isc.Browser.isMoz||isc.Browser.isSafari||isc.Browser.isOpera);isc.Browser.$113k=!((isc.Browser.isIE&&isc.Browser.version<10&&!isc.Browser.isIE9)||(isc.Browser.isWebKit&&!(parseFloat(isc.Browser.rawSafariVersion)>=532.3)));isc.Browser.hasTextOverflowEllipsis=(!isc.Browser.isMoz||isc.Browser.version>=7)&&(!isc.Browser.isOpera||isc.Browser.version>=9);isc.Browser.$114w=(!isc.Browser.isOpera||isc.Browser.version>=11?"text-overflow":"-o-text-overflow");isc.Browser.$117b=!isc.Browser.isSafari||isc.Browser.version>=4;isc.Browser.$120b=("pointerEvents"in document.documentElement.style&&!isc.Browser.isOpera&&(!isc.Browser.isIE||isc.Browser.version>=11));isc.Browser.hasNativeDrag=!isc.Browser.isTouch&&"draggable"in document.documentElement&&!isc.Browser.isIE;isc.Browser.$120h=!!(window.getSelection&&document.createRange&&window.Range);isc.Browser.$162h=isc.Browser.$120h&&!!document.createRange().createContextualFragment;isc.Browser.$162i=((isc.Browser.isMoz&&isc.Browser.version>=36)||(isc.Browser.isChrome&&isc.Browser.version>=42));isc.Browser.$124v="backgroundSize"in document.documentElement.style;isc.Browser.$139c=(("transition"in document.documentElement.style||"WebkitTransition"in document.documentElement.style||"OTransition"in document.documentElement.style)&&(!isc.Browser.isMoz||(!isc.Browser.isTouch&&isc.Browser.version>=34)));isc.Browser.$139y=("WebkitTransition"in document.documentElement.style?"webkitTransitionEnd":("OTransition"in document.documentElement.style?(isc.Browser.isOpera&&isc.Browser.version>=12?"otransitionend":"oTransitionEnd"):"transitionend"));isc.Browser.$1398=function(){return(this.isTouch&&(!(this.isIPhone||this.isIPad)||this.iOSVersion>=6))};isc.Browser.$1395=("WebkitOverflowScrolling"in document.documentElement.style&&isc.Browser.iOSVersion>=6);isc.Browser.$141c=(function(){var _1=document.createElement("canvas");if(_1.getContext!=null){var _2=_1.getContext("2d");return!!_2.isPointInStroke}
return false})();isc.Browser.$145h=("contains"in document.documentElement);if(!isc.Browser.$145h&&window.Node!=null){Node.prototype.contains=function(_1){for(;_1!=null;_1=_1.parentNode){if(this===_1)return true}
return false}}
isc.Browser.$152d=(isc.Browser.isIPhone&&!isc.Browser.isIPad&&isc.Browser.isMobileSafari&&7.1==isc.Browser.iOSMinorVersion);isc.Browser.$16ab=(!!document.createElementNS&&"parentElement"in document.createElementNS("http://www.w3.org/2000/svg","svg"));if(!isc.Browser.$16ab&&window.SVGElement!=null&&Object.defineProperty){Object.defineProperty(SVGElement.prototype,"parentElement",{enumerable:true,"get":function(){var _1=this.parentNode;while(_1!=null&&_1.nodeType!=1){_1=_1.parentNode}
return _1}})}
isc.Browser.$1689=(!!document.createElementNS&&"contains"in document.createElementNS("http://www.w3.org/2000/svg","svg"));if(!isc.Browser.$1689&&window.SVGElement!=null){SVGElement.prototype.contains=function(_1){for(;_1!=null;_1=_1.parentNode){if(this===_1)return true}
return false}}
isc.Browser.$1560=("placeholder"in document.createElement("input")&&"placeholder"in document.createElement("textarea"));isc.Browser.$158n=isc.Browser.isMobileWebkit&&"webkitMaskBoxImage"in document.documentElement.style;isc.Browser.$162m=(window.screen!=null&&"orientation"in screen&&"type"in screen.orientation);isc.Browser.$165v=(!isc.Browser.isSafari&&!isc.Browser.isChrome&&!!document.createElementNS&&"getIntersectionList"in document.createElementNS("http://www.w3.org/2000/svg","svg")&&"createSVGRect"in document.createElementNS("http://www.w3.org/2000/svg","svg"));isc.Browser.$1691=(window.JSON!=null&&typeof window.JSON.parse==="function"&&typeof window.JSON.stringify==="function"&&window.JSON.stringify("\u0013")==="\"\\u0013\"");isc.Browser.canUseAggressiveGridTimings=!isc.Browser.isAndroid;isc.Browser.useHighPerformanceGridTimings=window.isc_useHighPerformanceGridTimings==null?isc.Browser.canUseAggressiveGridTimings:window.isc_useHighPerformanceGridTimings&&isc.Browser.canUseAggressiveGridTimings}
isc.noOp=function isc_noOp(){};isc.emptyObject={};isc.$ac=[];isc.emptyString=isc.$ad="";isc.space=" ";isc.dot=".";isc.semi=";";isc.colon=":";isc.slash="/";isc.star="*";isc.apos="'";isc.percent="%";isc.auto="auto";isc.px="px";isc.nbsp="&nbsp;";isc.xnbsp="&amp;nbsp;";isc.$ae="false";isc.$af="FALSE";isc.$ag="_";isc.$75g="$";isc.$ah="_$observed_";isc.$ai="_$SuperProto_";isc.gwtRef="__ref";isc.gwtModule="__module";isc.logWarn=function isc_logWarn(_1,_2){isc.Log.logWarn(_1,_2)};isc.echo=function isc_echo(_1,_2){return isc.Log.echo(_1,_2)};isc.echoAll=function isc_echoAll(_1){return isc.Log.echoAll(_1)};isc.echoLeaf=function isc_echoLeaf(_1){return isc.Log.echoLeaf(_1)};isc.echoFull=function isc_echoFull(_1){return isc.Log.echoFull(_1)};isc.logEcho=function isc_logEcho(_1,_2){if(_2)_2+=": ";isc.Log.logWarn((_2||isc.$ad)+isc.echo(_1))}
isc.logEchoAll=function isc_logEchoAll(_1,_2){if(_2)_2+=": ";isc.Log.logWarn((_2||isc.$ad)+isc.echoAll(_1))}
isc.$aq=function isc__makeFunction(_1,_2){var _3=_2||_1;var _4;if(_2==null){_4=new Function(_3);_4.$123y=isc.$ad}else{_4=new Function(_1,_3)}
return _4};isc.doEval=function isc_doEval(_1){if(isc.Browser.isMoz)return isc.$as(_1);if(!isc.$at)isc.$at=[];isc.$at[isc.$at.length]=_1;return null}
isc.finalEval=function isc_finalEval(){if(isc.$at){if(isc.Browser.isMoz){for(var i=0;i<isc.$at.length;i++){isc.eval(isc.$at[i])}}
var _2=isc.$at.join("");if(isc.Browser.isSafari)_2=isc.$as(_2);if(isc.Browser.isIE){if(window.execScript!=null){window.execScript(_2,"javascript")}else{window.eval(_2)}}else{isc.eval(_2)}}
isc.$at=null}
isc.$au="//$0";isc.$av="//$1";isc.$aw=0;isc.$ax=true;isc.$as=function isc__transformCode(_1){isc.$ar=true;var _2=isc.timeStamp?isc.timeStamp():new Date().getTime();var _3=isc.$aj,_4=isc.$ay;if(isc.$ax)_3=isc.$an+_3;var _5=_1.split(isc.$az),_6=[];var _5=_1.split(isc.$au);_1=_5.join(_3);_5=_1.split(isc.$av);_1=_5.join(_4);if(isc.$ax){_5=_1.split("//$2");_1=_5.join(isc.$ap)}
var _7=isc.timeStamp?isc.timeStamp():new Date().getTime();isc.$aw+=(_7-_2);return _1}
isc.$ay="}catch($al){isc.eval(isc.$a0(";isc.$a0=function isc__handleError(_1){var _2="var _ = {";if(_1!=""){var _3=_1.split(",");for(var i=0;i<_3.length;i++){var _5=_3[i];_2+=_5+":"+_5;if(i<_3.length-1)_2+=","}}
_2+="};";_2+="if(isc.Log)isc.Log.$am($al,arguments,this,_);throw $al;";return _2}
isc.fillList=function isc_fillList(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27){if(_1==null)_1=[];else _1.length=0;var _28;if(_25===_28&&_26===_28&&_27===_28){_1[0]=_2;_1[1]=_3;_1[2]=_4;_1[3]=_5;_1[4]=_6;_1[5]=_7;_1[6]=_8;_1[7]=_9;_1[8]=_10;_1[9]=_11;_1[10]=_12;_1[11]=_13;_1[12]=_14;_1[13]=_15;_1[14]=_16;_1[15]=_17;_1[16]=_18;_1[17]=_19;_1[18]=_20;_1[19]=_21;_1[20]=_22;_1[21]=_23;_1[22]=_24}else{for(var i=1;i<arguments.length;i++){_1[i-1]=arguments[i]}}
return _1}
isc.$a1=[];isc.$186h=0;isc.addGlobal("addProperties",function isc_addProperties(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27){var _28,_29=isc.$186h?[]:isc.$a1;isc.$186h++;if(_25===_28&&_26===_28&&_27===_28){isc.fillList(_29,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27)}else{_29.length=0;for(var i=1;i<arguments.length;i++){_29[i-1]=arguments[i]}}
var _31=isc.addPropertyList(_1,_29);_29.length=0;isc.$186h--;return _31});isc.$a2={};isc.$a3={};isc.$a4=function isc__getInterfaceProps(_1){var _2=_1.Class,_3;if(isc.isA.ClassObject(_1)){_3=isc.$a3[_2]=isc.$a3[_2]||[]}else if(isc.isAn.InstancePrototype(_1)){_3=isc.$a2[_2]=isc.$a2[_2]||[]}
return _3}
isc.addPropertyList=function isc_addPropertyList(_1,_2,_3){if(_1==null){if(isc.Log)isc.Log.logWarn("Attempt to add properties to a null object. Creating a new object for the list of properties.");_1={}}
var _4,_5=(isc.isA!=null),_6=(isc.isAn&&isc.isAn.Instance(_1)?_1.getClass()._stringMethodRegistry:_1._stringMethodRegistry);if(_6==null)_6=isc.emptyObject;var _7=_1.$a5?isc.$a4(_1):null;var _8;for(var i=0,l=_2.length;i<l;i++){var _11=_2[i];if(_11==null)continue;for(var _12 in _11){var _13=_11[_12];var _14=_5&&isc.isA.Function(_13);if(_6[_12]!==_8||_14)
{if(_4==null)_4={};_4[_12]=_13}else{if(_7!=null)_7[_7.length]=_12;var _15=_1[_12];if(!_14&&_15!=null&&isc.isA.Function(_15)&&!isc.$1025)
{if(isc.Log!=null&&!isc.$179n){isc.Log.logWarn("method "+_12+" on "+_1+" overridden with non-function: '"+_13+"'")}}
_1[_12]=_13}}}
if(_4!=null)isc.addMethods(_1,_4);return _1}
isc.$a6="string";isc.$a7="function";isc.$a8="constructor";isc.$bl="object";isc.addGlobal("addMethods",function isc_addMethods(_1,_2){if(!_1||!_2)return _1;var _3=_1.$a5?isc.$a4(_1):null;if(!isc.$a9)isc.$a9={};for(var _4 in _2){if(_3!=null)_3[_3.length]=_4;var _5=_2[_4];if(isc.isA.instanceMethodsAdded&&_5!=null&&(typeof _5==isc.$a6||typeof _5==isc.$bl))
{var _6=(isc.isAn.Instance(_1)?(_1.getClass!=null?_1.getClass()._stringMethodRegistry:null):_1._stringMethodRegistry);var _7;if(_6&&!(_6[_4]===_7)&&_4!=isc.$a8)
{_5=isc.Func.expressionToFunction(_6[_4],_2[_4])}}
var _8=_1.$ba,_9=(_8!=null&&_8[_4]!=null?isc.$ah+_4:_4);if(_5!==_1[_9]){if(_5!=null){this.$bb(_5,_4,_1)}
_1[_9]=_5;if(_5!=null){if(isc.$a9[_4]){var _10=(_1.$ba!=null&&_1.$ba[isc.$a9[_4]]!=null?isc.$ah+isc.$a9[_4]:isc.$a9[_4]);_1[_10]=_5}}}}
return _1});isc._allFuncs=[]
isc._allFuncs._maxIndex=0;isc._funcClasses=new Array(5000);isc.$bb=function isc__nameMethod(_1,_2,_3){if(typeof _1!=isc.$a7)return;if(_3.Class==null)return _1.$bc=_2;if(isc.isA!=null&&isc.isA.instanceMethodsAdded&&(isc.isAn.InstancePrototype(_3)||isc.isA.ClassObject(_3)))
{var _4=isc._allFuncs;_4[_4._maxIndex]=_1;isc._funcClasses[_4._maxIndex]=_3.Class;_4._maxIndex++;return}
var _5=(_3==isc.isA?"isA":_3.Class);_1.$bd=_5;if(isc[_3.Class]==null)_1.$bc=_2;if(isc.isA!=null&&isc.isA.instanceMethodsAdded&&isc.isAn.Instance(_3)&&!isc.isAn.InstancePrototype(_3))
{_1.$bc=_2;_1.$be=true;if(_3[_2]!=null)_1.$bf=true}}
isc.addGlobal("getKeys",function isc_getKeys(_1){var _2=[];if(_1!=null){for(var _3 in _1){_2[_2.length]=_3}}
return _2});isc.addGlobal("firstKey",function isc_firstKey(_1){for(var _2 in _1)return _2});isc.addGlobal("getValues",function isc_getValues(_1){var _2=[];if(_1!=null){for(var _3 in _1){_2[_2.length]=_1[_3]}}
return _2});isc.addGlobal("sortObject",function isc_sortObject(_1,_2){if(!isc.isA.Object(_1))return _1;if(isc.isAn.Array(_1)){if(_2!=null)return _1.sort(_2);return _1.sort()}
var _3=isc.getKeys(_1);_3=(_2==null?_3.sort():_3.sort(_2));var _4={};for(var i=0;i<_3.length;i++){_4[_3[i]]=_1[_3[i]]}
return _4});isc.addGlobal("sortObjectByProperties",function isc_sortObjectByProperties(_1,_2){if(!isc.isA.Object(_1))return _1;if(isc.isAn.Array(_1)){if(_2!=null)return _1.sort(_2);return _1.sort()}
var _3=isc.getValues(_1);_3=(_2==null?_3.sort():_3.sort(_2));var _4={};for(var i=0;i<_3.length;i++){var _6=_3[i];for(var _7 in _1){if(_1[_7]===_6){_4[_7]=_1[_7];continue}}}
return _4});isc.addGlobal("addDefaults",function isc_addDefaults(_1,_2){if(_1==null)return;var _3;for(var _4 in _2){if(_1[_4]===_3)_1[_4]=_2[_4]}
return _1});isc.addGlobal("addDefaultsRecursively",function isc_addDefaultsRecursively(_1,_2,_3){if(_1==null)return _1;if(_2==null||isc.isAn.emptyObject(_2))return _1;var _4;if(isc.isAn.Array(_2)){if(!isc.isAn.Array(_1)){isc.logWarn("Error during addDefaultsRecursively: source is an array but destination is not.  Cannot continue");return}
for(var i=0;i<_2.length;i++){var _6=_2[i];if(isc.isA.Function(_6))continue;if(isc.isAn.Instance(_6)||isc.isA.Class(_6))continue;if(_6==null||isc.isA.String(_6)||isc.isA.Boolean(_6)||isc.isA.Number(_6))
{if(_1[i]===_4)_1[i]=_6}else if(isc.isA.Date(_6)){if(_1[i]===_4)_1[i]=new Date(_6.getTime())}else if(isc.isAn.Object(_6)){if(_1[i]===_4)_1[i]={};if(!isc.isAn.Object(_1[i])){isc.logWarn("Error during addDefaultsRecursively: entry number "+i+" in the source array is an object, but the existing entry "+i+" in the destination is not an object.  Skipping");continue}
_1[i]=isc.addDefaultsRecursively(_1[i],_6,_3)}}
return _1}
var _7={__ref:true,__module:true};if(!_3)_3=[];if(_3.contains(_2)){_1=_2;return _1}
_3.add(_2);for(var _8 in _2){if(isc.isA.Function(_2[_8]))continue;if(_7[_8]==true)continue;if(isc.isAn.Instance(_2[_8])||isc.isA.Class(_2[_8]))continue;var _9=_2[_8];if(isc.isA.Date(_9)){if(_1[_8]===_4){_1[_8]=_9.duplicate()}}else if(isc.isAn.Array(_9)){if(_1[_8]===_4)_1[_8]=[];if(!isc.isAn.Array(_1[_8])){isc.logWarn("Error during addDefaultsRecursively: source property '"+_8+"' is an array, but the target object has an existing property of the same name that is not an array.  Skipping");continue}
if(_3.contains(_9)){_1[_8]=_9;continue}
_3.add(_9);isc.addDefaultsRecursively(_1[_8],_9,_3)}else if(isc.isAn.Object(_9)){if(_3.contains(_9)){_1[_8]=_9;continue}
if(_1[_8]===_4)_1[_8]={};if(!isc.isAn.Object(_1[_8])){isc.logWarn("Error during addDefaultsRecursively: source property '"+_8+"' is a sub-object, but the target object has an existing property of the same name that is not an object.  Skipping");continue}
isc.addDefaultsRecursively(_1[_8],_9,_3)}else{if(_1[_8]===_4)_1[_8]=_2[_8]}}
return _1});isc.addGlobal("propertyDefined",function isc_propertyDefined(_1,_2){if(_1==null)return false;var _3;if(_1[_2]!==_3)return true;var _4=isc.getKeys(_1);return(_4.contains(_2))});isc.addGlobal("objectsAreEqual",function isc_objectsAreEqual(_1,_2){if(_1===_2)return true;else if(isc.isAn.Object(_1)&&isc.isAn.Object(_2)){if(isc.isA.Date(_1)){return isc.isA.Date(_2)&&(isc.DateUtil.compareDates(_1,_2)==0)}else if(isc.isAn.Array(_1)){if(isc.isAn.Array(_2)&&_1.length==_2.length){for(var i=0;i<_1.length;i++){if(!isc.objectsAreEqual(_1[i],_2[i]))return false}
return true}
return false}else{if(isc.isAn.Array(_2))return false;var _4=0;for(var _5 in _1){if(_5==isc.gwtRef||_5==isc.gwtModule)continue;if(!isc.objectsAreEqual(_1[_5],_2[_5]))return false;_4++}
var _6=0;for(var _7 in _2){if(_5==isc.gwtRef||_5==isc.gwtModule)continue;_6++;if(_6>_4)return false}
if(_6!=_4)return false;return true}}else{return false}});isc.addGlobal("combineObjects",function isc_combineObjects(_1,_2){if(_1==null||!isc.isAn.Object(_1))return _2;if(_2==null||!isc.isAn.Object(_2))return _1;for(var _3 in _2){var _4=_1[_3],_5=_2[_3];if(isc.isAn.Object(_4)&&!isc.isAn.Array(_4)&&!isc.isA.Date(_4)&&isc.isAn.Object(_5)&&!isc.isAn.Array(_5)&&!isc.isA.Date(_5))
{isc.combineObjects(_4,_5)}else{_1[_3]=_5}}});isc.applyMask=function isc_applyMask(_1,_2){var _3={};if(_1==null)return _3;if(_2==null){return isc.addProperties(_3,_1)}
var _4=false;if(!isc.isAn.Array(_1)){_4=true;_1=[_1]}
if(!isc.isAn.Array(_2))_2=isc.getKeys(_2);var _3=[],_5,_6,_7,_8;for(var i=0;i<_1.length;i++){_5=_1[i];_6=_3[i]={};for(var j=0;j<_2.length;j++){_7=_2[j];if(_5[_7]===_8)continue;_6[_7]=_5[_7]}}
return(_4?_3[0]:_3)}
isc.getProperties=function isc_getProperties(_1,_2,_3){if(_1==null)return null;_3=_3||{};if(_2==null)return _3;for(var i=0;i<_2.length;i++){var _5=_2[i];_3[_5]=_1[_5]}
return _3}
isc.$bg={};isc.$bh=Math.floor;isc.$bi="-";for(isc.$bj=0;isc.$bj<10;isc.$bj++)
isc.$bg[isc.$bj]=isc.$bj.toString();isc.$bk=function isc__fillNumber(_1,_2,_3,_4,_5){var _6=_3+_4-1,_7=_2,_8=false,_9;if(_2<0){_9=true;_2=-_2;_1[_3]=this.$bi;_3+=1;_4-=1}
while(_2>9){var _10=this.$bh(_2/10),_11=_2-(_10*10);_1[_6]=this.$bg[_11];_2=_10;if(_6==(_3+1)&&_2>9){isc.Log.logWarn("fillNumber: number too large: "+_7+isc.Log.getStackTrace());_8=true;break}
_6-=1}
if(_8){_6=_3+_4-1
_1[_6--]=(!_9?_7:-_7)}else{_1[_6--]=this.$bg[_2]}
for(var i=_6;i>=_3;i--){_1[i]=null}};if(!isc.Browser.isIE||isc.Browser.version>7){isc.$bk=function isc__fillNumber(_1,_2,_3,_4,_5){_1[_3]=_2;if(_5){var _6=_3+_4;for(var i=_3+1;i<_6;++i){_1[i]=null}}}}
isc.booleanValue=function isc_booleanValue(_1,_2){if(_1==null)return _2;if(isc.isA.String(_1))return _1!=isc.$ae&&_1!=isc.$af;return _1?true:false}
isc.iscToLocaleString=function isc_iscToLocaleString(_1){if(_1!=null){return _1.iscToLocaleString?_1.iscToLocaleString():(_1.toLocaleString?_1.toLocaleString():(_1.toString?_1.toString():isc.emptyString+_1))}
return isc.emptyString+_1}
isc.$101g=["ToolSkin","ToolSkinNative"];isc.setCurrentSkin=function isc_setCurrentSkin(_1){if(isc.currentSkin&&!isc.$101g.contains(_1)){isc.logWarn("Detected loading of more than one skin - '"+_1+"' was loaded when '"+isc.currentSkin+"' was already loaded.  See the QuickStart Guide for instructions on correctly changing the current skin")}
isc.currentSkin=_1}
isc.addGlobal("isA",{});isc.addGlobal("isAn",isc.isA);isc.addGlobal("is",isc.isA);isc.isA.Class="isA";isc.isA.isc=isc.isA;Function.$k=1;Array.$k=2;Date.$k=3;String.$k=4;Number.$k=5;Boolean.$k=6;RegExp.$k=7;Object.$k=8;Function.prototype.$k=1;isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.useTypeOf=isc.Browser.isMoz||isc.Browser.isSafari;isc.A.$bl="object";isc.A.$73x="String";isc.A.$a7="function";isc.A.$bm="text/xml";isc.A.$58k={SelectItem:true,Time:true};isc.B.push(isc.A.emptyString=function isc_isA_emptyString(_1){return isc.isA.String(_1)&&_1==isc.emptyString},isc.A.nonemptyString=function isc_isA_nonemptyString(_1){return isc.isA.String(_1)&&_1!=isc.emptyString},isc.A.Object=function isc_isA_Object(_1){if(_1==null)return false;if(isc.Browser.isIE&&typeof _1==this.$a7)return false;if(this.useTypeOf){var _2=typeof _1;return(_2=="object"||_2=="array"||_2=="date"||(isc.Browser.isMoz&&_2=="function"&&isc.isA.RegularExpression(_1)))}
if(_1.constructor&&_1.constructor.$k!=null){var _3=_1.constructor.$k;if(_3==1){}else{return(_3==8||_3==7||_3==3||_3==2)}}
if(_1.Class!=null&&_1.Class==this.$73x)return false;if(typeof _1==this.$bl){if(isc.Browser.isIE&&isc.isA.Function(_1))return false;else return true}else return false},isc.A.emptyObject=function isc_isA_emptyObject(_1){if(!isc.isAn.Object(_1))return false;for(var i in _1){return false}
return true},isc.A.emptyArray=function isc_isA_emptyArray(_1){return isc.isAn.Array(_1)&&_1.length==0},isc.A.String=function isc_isA_String(_1){if(_1==null)return false;if(this.useTypeOf){return typeof _1=="string"||(_1.Class!=null&&_1.Class==this.$73x)}
if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==4}
if(_1.Class!=null&&_1.Class==this.$73x)return true;return typeof _1=="string"},isc.A.Array=function isc_isA_Array(_1){if(_1==null)return false;if(this.useTypeOf&&typeof _1=="array")return true;if(typeof _1==this.$a7)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==2}
if(isc.Browser.isSafari){var _2=""+_1.splice;return(_2=="function splice() {\n    [native code]\n}"||_2=="(Internal function)")}
return""+_1.constructor==""+Array},isc.A.Function=function isc_isA_Function(_1){if(_1==null)return false;if(isc.Browser.isIE&&typeof _1==this.$a7)return true;if(isc.Browser.isIE10)return false;if(isc.Browser.isIE&&((_1==window)||(_1.document!=null&&(_1.toString!=null)&&_1.toString().contains("Window"))))
{return false}
var _2=_1.constructor;if(_2&&_2.$k!=null){if(_2.$k!=1)return false;if(_2===Function)return true}
return isc.Browser.isIE?(isc.emptyString+_1.constructor==Function.toString()):(typeof _1==this.$a7)},isc.A.Number=function isc_isA_Number(_1){if(_1==null)return false;if(this.useTypeOf&&typeof _1=="number"){return!isNaN(_1)&&_1!=Number.POSITIVE_INFINITY&&_1!=Number.NEGATIVE_INFINITY}
if(_1.constructor&&_1.constructor.$k!=null){if(_1.constructor.$k!=5)return false}else{if(typeof _1!="number")return false}
return!isNaN(_1)&&_1!=Number.POSITIVE_INFINITY&&_1!=Number.NEGATIVE_INFINITY},isc.A.SpecialNumber=function isc_isA_SpecialNumber(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){if(_1.constructor.$k!=5)return false}else{if(typeof _1!="number")return false}
return(isNaN(_1)||_1==Number.POSITIVE_INFINITY||_1==Number.NEGATIVE_INFINITY)},isc.A.Boolean=function isc_isA_Boolean(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==6}
return typeof _1=="boolean"},isc.A.Date=function isc_isA_Date(_1,_2){if(_1==null)return false;if(_2&&!(_1.getDate&&isc.isA.Number(_1.getDate())))return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==3}
if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return false;if((""+_1.constructor)==(""+Date)){_1.constructor.$k=3;return true}
return false},isc.A.RegularExpression=function isc_isA_RegularExpression(_1){if(_1==null)return false;if(_1.constructor&&_1.constructor.$k!=null){return _1.constructor.$k==7}
if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return false;if((""+_1.constructor)==(""+RegExp)){_1.constructor.$k=7;return true}
return false},isc.A.XMLNode=function isc_isA_XMLNode(_1){if(_1==null)return false;if(isc.Browser.isIE){return _1.specified!=null&&_1.parsed!=null&&_1.nodeType!=null&&_1.hasChildNodes!=null}
var _2=_1.ownerDocument;if(_2==null)return false;return _2.contentType==this.$bm},isc.A.AlphaChar=function isc_isA_AlphaChar(_1){var _2=_1.charCodeAt(0);return((_2>=65&&_2<=90)||(_2>=97&&_2<=122))},isc.A.NumChar=function isc_isA_NumChar(_1){var _2=_1.charCodeAt(0)
return(_2>=48&&_2<=57)},isc.A.AlphaNumericChar=function isc_isA_AlphaNumericChar(_1){return(isc.isA.AlphaChar(_1)||isc.isA.NumChar(_1))},isc.A.WhitespaceChar=function isc_isA_WhitespaceChar(_1){var _2=_1.charCodeAt(0)
return(_2>=0&&_2<=32)},isc.A.color=function isc_isA_color(_1){if(!isc.isA.String(_1))return false;if(!this.$bn){this.$bn=new RegExp("^(#([\\dA-F]{2}){3}|rgb\\((\\s*[\\d]{1,3}\\s*,\\s*){2}\\s*[\\d]{1,3}\\s*\\)|[a-z]+)$","i")}
return this.$bn.test(_1)},isc.A.ResultSet=function isc_isA_ResultSet(_1){return false},isc.A.ResultTree=function isc_isA_ResultTree(_1){return false},isc.A.SelectItem=function isc_isA_SelectItem(_1){if(_1==null||_1.isA==null||_1.ns==null||_1.ns.isA==null||_1.isA===_1.ns.isA){return false}
return _1.isA("SelectItem")||_1.isA("NativeSelectItem")},isc.A.SelectOtherItem=function isc_isA_SelectOtherItem(_1){return isc.isA.SelectItem(_1)&&_1.isSelectOther==true},isc.A.Time=function isc_isA_Time(_1){return isc.isA.Date(_1)});isc.B._maxIndex=isc.C+24;if(Array.isArray){isc.A=isc.isA;isc.A.Array=Array.isArray}
isc.addGlobal("ClassFactory",{});isc.ClassFactory.Class="ClassFactory";isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.Instance=function isc_isA_Instance(_1){return(_1!=null&&_1.$76y!=null)},isc.A.ClassObject=function isc_isA_ClassObject(_1){return(_1!=null&&_1.$bp==true)},isc.A.Interface=function isc_isA_Interface(_1){return(_1!=null&&_1.$a5==true)},isc.A.InstancePrototype=function isc_isA_InstancePrototype(_1){return(isc.isAn.Instance(_1)&&_1.$76y==_1)});isc.B._maxIndex=isc.C+4;isc.isA.instanceMethodsAdded=true;isc.A=isc.ClassFactory;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$162b="Set";isc.A.$bq="Window";isc.A.$br="Selection";isc.A.$136h="DataView";isc.A.$747="Animation";isc.A.$136p={};isc.A.$1368="\nThis conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.";isc.A.$f="isc.";isc.A.$bs={};isc.A._reservedWords={toolbar:true,parent:true,window:true,top:true,opener:true,event:true};isc.A._$isc_OID_="isc_OID_";isc.A._$isc_="isc_";isc.A.$bv="_";isc.A.$bw=[];isc.A.$75m={};isc.A.reuseGlobalIDs=true;isc.A.globalIDClassPoolSize=1000;isc.A.$63v={};isc.A.$bx=0;isc.A._$isc_="isc_";isc.A.$by=[null,"_",null];isc.A.reuseDOMIDs=false;isc.A.DOMIDPoolSize=10000;isc.A.$63w=[];isc.A.$bz=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];isc.A.$b0=[];isc.A.$100p="initInterface";isc.A.$101h="destroyInterface";isc.A.$b1="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p";isc.B.push(isc.A.defineClass=function isc_ClassFactory_defineClass(_1,_2,_3,_4){return this.$b2(_1,_2,_3,null,_4)},isc.A.overwriteClass=function isc_ClassFactory_overwriteClass(_1,_2,_3,_4){return this.$b2(_1,_2,_3,null,_4,true)},isc.A.defineInterface=function isc_ClassFactory_defineInterface(_1,_2){return this.$b2(_1,_2,null,true)},isc.A.defineRootClass=function isc_ClassFactory_defineRootClass(_1){return this.$b3(_1,null)},isc.A.$b2=function isc_ClassFactory__defineNonRootClass(_1,_2,_3,_4,_5,_6){_2=(_2||isc.ClassFactory.defaultSuperClass);if(!_2){isc.Log.logWarn("isc.ClassFactory.defineClass("+_1+") called with null superClass and no ClassFactory.defaultRootClass is defined.");return null}
isc.overridingFrameworkClass=isc.isA.ClassObject(_2)&&_2.isFrameworkClass;return this.$b3(_1,_2,_3,_4,_5,_6)},isc.A.$137e=function isc_ClassFactory__installIgnoredGlobalOverrides(){var _1=isc.Browser,_2=this.$136p;if(_1.isChrome||_1.isIE||_1.isMoz||_1.isSafari){_2[this.$162b]=true;_2[this.$bq]=true;_2[this.$br]=true;_2[this.$136h]=true;_2[this.$747]=true}},isc.A.$b3=function isc_ClassFactory__defineClass(_1,_2,_3,_4,_5,_6){_2=this.getClass(_2);var _7=(isc.definingFramework==true||isc.overridingFrameworkClass==true);if(!_7&&_2&&_2.$1226&&!isc.isVisualBuilderSDK){var _8=!!(isc.ClassFactory.defaultSuperClass);var _9="The framework class "+_2.getClassName()+" is only available for subclassing if isc.licenseType is \"Enterprise\" or \"Eval\".  "+(_8?"Continuing with the default super class.":"Returning null as there is no ClassFactory.defaultSuperClass specified.");isc.logWarn(_9);if(!_2.$1228){_2.$1228=true;isc.warn(_9)}
if(_8){_2=this.getClass(isc.ClassFactory.defaultSuperClass)}else{return null}}
var _10,_11,_12=this.$136p[_1],_13=(isc.$a&&!_5);_10=isc[_1];if(_10!=null)_11=true
else if(_13&&!_12){_10=window[_1]}
if(_10!=null&&_1!="IButton"&&_6!=true&&!(isc.DataSource&&isc.isA.DataSource(_10)&&_10.componentSchema))
{var _14="New Class ID: '"+_1+"' collides with ID of existing "+(isc.isA&&isc.isA.Function(isc.isA.Class)&&isc.isA.Class(_10)?"Class object '":"object with value '")+_10+"'.  Existing object will be replaced.";if(!_11)_14+=this.$1368;if(window.isc.Log)isc.Log.logWarn(_14)}
var _15=(_2?new _2.$b4.$b5():{});var _16=this.$b6(_2);_15.$b5=this.$b7(_15,_1);_16.Class=_1;_16.$bp=true;if(_7)_16.isFrameworkClass=true;else _16.isFrameworkClass=false;if(!_16.isFrameworkClass){var _17=_2;while(_17&&!_17.isFrameworkClass){_17=_17.getSuperClass()}
if(_17)_16.$75y=_17.Class}
if(!_16.$75y)_16.$75y=_16.Class;_16.$a5=_15.$a5=!!_4;_16.$b8=_2;_16.$b4=_15;_15.Class=_1;_15.$b9=_16;_15.$76y=_15;_15.isFrameworkClass=_16.isFrameworkClass;_15.$75y=_16.$75y;isc[_1]=_16;if(_13){if(_12){var _18=this.tryBindingGlobalID(window,_1,_16);if(!_18&&window.isc.Log){isc.Log.logWarn("We expected to override global "+_1+" without any trouble, but were unable to replace it."+this.$1368)}}else window[_1]=_16}
this.classList[this.classList.length]=_1
if(!(isc.isA.$58k[_1]&&isc.isA[_1])){isc.isA[_1]=this.makeIsAFunc(_1)}
if(_3!=null){if(!isc.isAn.Array(_3))_3=[_3];for(var i=0;i<_3.length;i++){this.mixInInterface(_1,_3[i])}}
return _16},isc.A.makeIsAFunc=function isc_ClassFactory_makeIsAFunc(_1){return function(_2){if(_2==null||_2.isA==null||_2.ns==null||_2.ns.isA==null||_2.isA===_2.ns.isA){return false}
return _2.isA(_1)}},isc.A.$b6=function isc_ClassFactory__makeSubClass(_1){if(!_1)return{};var _2=_1.$b8,_3=_1.$ca;if(!
(_3&&(_2==null||_3!==_2.$ca)))
{_3=_1.$ca=this.$b7(_1,(_1.Class||"unknown")+"Class")}
return new _3()},isc.A.getClass=function isc_ClassFactory_getClass(_1,_2){if(isc.isA.String(_1)){var _3=isc[_1];if(_3){if(isc.isA.ClassObject(_3))return _3;if(isc.isA.SGWTFactoryObject&&isc.isA.SGWTFactoryObject(_3))return _3}}
if(isc.isA.ClassObject(_1))return _1;if(isc.isA.SGWTFactoryObject&&isc.isA.SGWTFactoryObject(_1))return _1;if(isc.isAn.Instance(_1))return _1.$b9;if(isc.Log&&_2){isc.Log.logWarn("ClassFactory.getClass() couldn't find class: "+_1+"; defined classes are: "+this.classList.sort())}
return null},isc.A.newInstance=function isc_ClassFactory_newInstance(_1,_2,_3,_4,_5,_6){var _7=this.getClass(_1);if(_7==null&&isc.isAn.Object(_1)){var _8;for(var i=0;i<arguments.length;i++){var _10=arguments[i];if(_10!=null&&_10._constructor!=null)
{_8=_10._constructor}}
_6=_5;_5=_4;_4=_3;_3=_2;_2=_1;_1=_8;if(isc.isA.String(_2.constructor)){if(_1==null)_1=_2.constructor;isc.Log.logWarn("ClassFactory.newInstance() passed an object with illegal 'constructor' property - removing this property from the final object. To avoid seeing this message in the future, specify the object's class using '_constructor'.","ClassFactory");_2.constructor=null}
_7=this.getClass(_8)}
if(_7==null){isc.Log.logWarn("newInstance("+_1+"): class not found","ClassFactory");if(isc.isA.String(_1)&&_1.contains(".")){isc.Log.logWarn("Did you make the SmartGWT class reflectable? See http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/Reflection.html","ClassFactory")}
return null}
return _7.newInstance(_2,_3,_4,_5,_6)},isc.A.$b7=function isc_ClassFactory__getConstructorFunction(_1,_2){var _3;if(isc.Browser.isSafari){_3=function(){}}else{_3=new Function()}
_3.prototype=_1;return _3},isc.A.tryBindingGlobalID=function isc_ClassFactory_tryBindingGlobalID(_1,_2,_3){try{_1[_2]=_3}catch(e){return false}
if(_1[_2]!=_3){return false}
return true},isc.A.addGlobalID=function isc_ClassFactory_addGlobalID(_1,_2,_3){_1.ID=_2||_1.ID;var _4=this.getWindow();if(isc.keepGlobals&&_1.ID!=null){if(!isc.keepGlobals.contains(_1.ID)&&!(isc.DataSource&&isc.isA.DataSource(_1)))
{var _5=_1.$177g=_1.ID;_1.ID=null;isc.globalsSnapshot[_5]=_4[_5];_4[_5]=_1;if(_1._autoAssignedID){var _6=_1.AUTOIDClass||_1.Class;isc.autoAssignedTempGlobals[_5]=_6}}}
if(_1.ID==null){_1.ID=this.getNextGlobalID(_1);_1._autoAssignedID=true}
if(isc.$171i&&isc.createLevel==1){_1.$171j=true}
var _7,_8;if(_4[_1.ID]!=null){var _9=isc.isA.BaseWidget(_4[_1.ID]);if(!(isc.isA.DataSource(_4[_1.ID])&&_4[_1.ID].componentSchema)){_3=_3||(isc.isA.DataSource(_4[_1.ID])&&isc.ClassFactory.$180g)
if(!_3){var _10="ID '{0}' collides with ID of existing widget '{1}'. The pre-existing widget will be destroyed.";var _11="ID '{0}' for object '{1}' collides with the ID of an existing object. This can occur when the specified ID for a new SmartClient Canvas is the same as a native attribute of 'window', or another variable already assigned in global scope. The global reference to this object will be replaced. Consider instead using a different ID to avoid this collision altogether, especially if the colliding ID is a native attribute of window.  Replacing such objects often has serious and unintended consequences. In this case, the current value of window['{0}'] is: \n\n {2} \n ";var _12=_9?_10:_11;isc.Log.logWarn(String.format(_12,_1.ID,_1,isc.echoAll(_4[_1.ID])))}}
if(_9){if(!isc.isA.ClassObject(_4[_1.ID]))_4[_1.ID].destroy()}
if(!_9){if(this._reservedWords[_1.ID])_7=true;else _8=true}}
if(!_7){if(_8){if(!this.tryBindingGlobalID(_4,_1.ID,_1))_7=true}else{_4[_1.ID]=_1}}
if(isc.globalsSnapshot){if(isc.isAn.Array(isc.globalsSnapshot)){isc.globalsSnapshot.add(_1.ID)}else{isc.globalsSnapshot[_1.ID]=_4[_1.ID]}}
if(_7){var _13=this.getNextGlobalID(_1);isc.logWarn("ClassFactory.addGlobalID: ID specified as:"+_1.ID+". This is a reserved word in Javascript or a native property of the browser window object and can not be used as an ID. Setting ID to "+_13+" instead.");_1.ID=_13;_1._autoAssignedID=true;_4[_1.ID]=_1}},isc.A.getNextGlobalID=function isc_ClassFactory_getNextGlobalID(_1){var _2;if(_1!=null&&(_1.AUTOIDClass!=null||_1.Class!=null)){_2=_1.AUTOIDClass||_1.Class}
return this.getNextGlobalIDForClass(_2)},isc.A.getNextGlobalIDForClass=function isc_ClassFactory_getNextGlobalIDForClass(_1){if(_1){var _2=this.$63v[_1];if(_2&&_2.length>0){var _3=_2[_2.length-1];_2.length=_2.length-1;return _3}
var _4;if(this.$75m[_1]==null)this.$75m[_1]=0;_4=this.$75m[_1]++;var _5=this.$bw;_5[0]=this._$isc_;_5[1]=_1;_5[2]=this.$bv;isc.$bk(_5,_4,3,5);var _6=_5.join(isc.emptyString);return _6}
return this._$isc_OID_+this.$cb++},isc.A.dereferenceGlobalID=function isc_ClassFactory_dereferenceGlobalID(_1){if(window[_1.ID]==_1){if(!isc.Browser.isIE||isc.Browser.isIE9){try{delete window[_1.ID]}catch(e){isc.logWarn("ClassFactory.dereferenceGlobalID(): Failed to delete the '"+_1.ID+"' global.")}
if(window[_1.ID]!=null)window[_1.ID]=null}else{window[_1.ID]=null}
if(isc.globalsSnapshot){if(isc.isAn.Array(isc.globalsSnapshot))isc.globalsSnapshot.remove(_1.ID);else delete isc.globalsSnapshot[_1.ID]}
if(_1._autoAssignedID&&(_1.AUTOIDClass!=null||_1.Class!=null)){this.releaseGlobalID(_1.AUTOIDClass||_1.Class,_1.ID)}}},isc.A.releaseGlobalID=function isc_ClassFactory_releaseGlobalID(_1,_2){if(!this.reuseGlobalIDs)return;var _3=this.$63v[_1];if(!_3)this.$63v[_1]=[_2];else if(_3.length<=this.globalIDClassPoolSize){if(!_3.contains(_2))_3[_3.length]=_2}},isc.A.releaseDOMID=function isc_ClassFactory_releaseDOMID(_1){if(!this.reuseDOMIDs||this.$63w.length>this.DOMIDPoolSize)return;this.$63w[this.$63w.length]=_1},isc.A.getDOMID=function isc_ClassFactory_getDOMID(_1,_2){if(!isc.$e||!_1||!_2){var _3=this.$63w.length;if(_3>0){var _1=this.$63w[_3-1];this.$63w.length=_3-1;return _1}
var _4=this.$bx++;return this.$cc(_4,this._$isc_)}
this.$by[0]=_1;this.$by[2]=_2;return this.$by.join(isc.emptyString)},isc.A.$cc=function isc_ClassFactory__convertToBase36(_1,_2){var _3=this.$bz,_4=this.$b0;_4.length=0;if(_2)_4[0]=_2;var _5=3;if(_1>46655){while(Math.pow(36,_5)<=_1)_5+=1}
while(_1>=36){var _6=_1%36;_4[_5-(_2?0:1)]=_3[_6];_5-=1;_1=Math.floor(_1/36)}
_4[_5-(_2?0:1)]=_3[_1];return _4.join(isc.emptyString)},isc.A.mixInInterface=function isc_ClassFactory_mixInInterface(_1,_2){var _3=this.getClass(_2),_4=this.getClass(_1);if(!_3||!_4)return null;if(!_3.$a5){isc.Log.logWarn("ClassFactory.mixInInterface asked to mixin a class which was not declared as an Interface: "+_2+" onto "+_1);return}
if(!_4.$cd)_4.$cd=[];else _4.$cd=_4.$cd.duplicate();while(_3){this.$ce(_3,_4,true);this.$ce(_3,_4);_4.$cd[_4.$cd.length]=_2;_3=_3.getSuperClass();if(_3&&!_3.$a5)break}},isc.A.$ce=function isc_ClassFactory__mixInProperties(_1,_2,_3){var _4,_5=_2;if(_3){_4=isc.$a3[_1.Class]}else{_4=isc.$a2[_1.Class];_1=_1.getPrototype();_2=_2.getPrototype()}
if(_4==null)return;for(var i=0;i<_4.length;i++){var _7=_4[i];if(_2[_7]!=null)continue;var _8=_1[_7];if(isc.isA.String(_8)&&_8==this.TARGET_IMPLEMENTS){var _9=(_3?"Class":"Instance")+" method "+_7+" of Interface "+_1.Class+" must be implemented by class "+_2.Class;_2[_7]=function(){this.logError(_9)}}else if(_7==this.$100p&&!_3){if(_5.$100q==null)_5.$100q=[];_5.$100q[_5.$100q.length]=_8}else if(_7==this.$101h&&!_3){if(_5.$101i==null)_5.$101i=[];_5.$101i[_5.$101i.length]=_8}else{_2[_7]=_8}}},isc.A.makePassthroughMethods=function isc_ClassFactory_makePassthroughMethods(_1,_2,_3,_4,_5){if(!_2)_2="parentElement";var _6;if(!_3){_6=this.$cf;if(_6==null){_6=this.$cf=["return this.",,".",,"("+this.$b1+")"]}}else{_6=this.$89q;if(_6==null){_6=this.$89q=["if(this.",,"==null){\n",,"return}\n",,"return this.",,".",,"("+this.$b1+")"]}}
var _7={};for(var i=0;i<_1.length;i++){var _9=_1[i];if(_3){_6[1]=_2;if(_4!=null){var _10={methodName:_9,propName:_2};var _11=_4.evalDynamicString(this,_10);_6[3]="isc.logWarn(\""+_11+"\");"}
if(_5!=null){_6[5]="this."+_2+"."+_5+"=this."+_5+";\n"}
_6[7]=_2;_6[9]=_9}else{_6[1]=_2;_6[3]=_9}
_7[_9]=isc.$aq(this.$b1,_6.join(isc.emptyString))}
return _7},isc.A.writePassthroughFunctions=function isc_ClassFactory_writePassthroughFunctions(_1,_2,_3){var _4=this.makePassthroughMethods(_3,_2);_1.addMethods(_4)},isc.A.$180h=function isc_ClassFactory__setVBLoadingDataSources(_1){isc.ClassFactory.$180g=_1});isc.B._maxIndex=isc.C+26;isc.A=isc.ClassFactory;isc.A.TARGET_IMPLEMENTS="TARGET_IMPLEMENTS";isc.A.$cb=0;isc.A.classList=[];isc.defineClass=function(_1,_2,_3,_4){return isc.ClassFactory.defineClass(_1,_2,_3,_4)}
isc.overwriteClass=function(_1,_2,_3,_4){return isc.ClassFactory.overwriteClass(_1,_2,_3,_4)}
isc.defineInterface=function(_1,_2){return isc.ClassFactory.defineInterface(_1,_2)}
isc.defer=function(_1){var _2=isc.ClassFactory.getClass(isc.ClassFactory.classList.last(),true),_3=_2.$cg;isc.Log.logDebug("deferred code being placed on class: "+_2);if(!_3)_2.$cg=[_1];else _3.add(_1)}
isc.ClassFactory.$137e();if(!isc.Browser.isSafari){isc.$ch=window;isc.$ci=window.document}
if(window.isc_enableCrossWindowCallbacks&&isc.Browser.isIE){isc.enableCrossWindowCallbacks=true;Object.$ch=window}
isc.ClassFactory.defineRootClass('Class');isc.ClassFactory.defaultSuperClass=isc.Class;isc.A=isc.Class;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.addClassMethods=function isc_Class_addClassMethods(){for(var i=0;i<arguments.length;i++)
isc.addMethods(this,arguments[i])});isc.B._maxIndex=isc.C+1;isc.A=isc.Class;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$cj={};isc.A.dontDup={StringBuffer:true,Action:true,MathFunction:true,JSONEncoder:true};isc.A.$105h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;isc.A.useHiddenFrameInJSONParseFunction=true;isc.A.evalFrameResetInterval=100;isc.A.evalFrameDefaults={useHtmlfile:false,doEval:function(_1,_2){this.evalCount++;return this.getHandle().doEval(_1,_2)}};isc.A.evalFrameHTML=["<html><body><script>var nativeObjTypes = ['Array', 'String', 'Date'];","for (var i = 0; i < nativeObjTypes.length; i++) {var proto = window[nativeObjTypes[i]].prototype,sourceProto = window.parent[nativeObjTypes[i]].prototype;for (var attr in sourceProto) {proto[attr] = sourceProto[attr];}}window.isc = window.parent.isc;function doEval(exp, args) {try{if (args) {with (args) { return eval(exp);}} else {return eval(exp);}} catch (e) {window.parent.isc.Log.logInfo('Attempt to evaluate in eval-frame threw error:' + e + '. Attempting eval in main window.','iframeEval');if (args) {with (args) { return window.parent.eval(exp);}} else {return window.parent.eval(exp);}}}</script></body></html>"];isc.A.$ck={};isc.A.fireOnPauseDelay=200;isc.A.$cl="$cm";isc.A.$cn={};isc.A.$co={};isc.A.useFastEvalWithVars=isc.Browser.isMoz&&isc.Browser.geckoVersion>=20061010;isc.A.$cp="ID";isc.A.getWindow=(isc.Browser.isSafari?function(){return window}:function(){return this.ns.$ch});isc.A.getDocument=(isc.Browser.isSafari?function(){return window.document}:function(){return this.ns.$ci});isc.A.$123z={};isc.B.push(isc.A.create=function isc_c_Class_create(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14=this.createRaw();if(_14!=null){_14=_14.completeCreation(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}
return _14},isc.A.createRaw=function isc_c_Class_createRaw(){if(this.$1226&&!isc.isVisualBuilderSDK){var _1="Attempt to create "+this.getClassName()+".  This class requires the Dashboards & Tools framework which is only included with Enterprise licenses.";isc.logWarn(_1);if(!this.$1228){try{isc.warn(_1);this.$1228=true}catch(e){}}
return null}
if(!this.initialized())this.init();var _2=new this.$b4.$b5();_2.ns=this.ns;return _2},isc.A.init=function isc_c_Class_init(){var _1=this.getSuperClass();if(_1!=null&&!_1.initialized())_1.init();var _2=this.$cg;if(_2!=null){this.$cg=null;var _3=isc.captureDefaults;if(_3)isc.captureDefaults=false;_2.map(function(_4){isc.eval(_4)});if(_3)isc.captureDefaults=true}
if(this.autoDupMethods){isc.Class.duplicateMethods(this,this.autoDupMethods)}
this.$cj[this.Class]=true},isc.A.modifyFrameworkStart=function isc_c_Class_modifyFrameworkStart(){isc.definingFramework=true},isc.A.modifyFrameworkDone=function isc_c_Class_modifyFrameworkDone(){isc.definingFramework=false},isc.A.duplicateMethods=function isc_c_Class_duplicateMethods(_1,_2){if(_1.Class&&this.dontDup[_1.Class])return;for(var i=0;i<_2.length;i++){var _4=_2[i];this.duplicateMethod(_4,_1)}},isc.A.duplicateMethod=function(methodName,target){if(!target)target=this;var method=target[methodName];if(method==null)return;if(method.$761){while(method.$761)method=method.$761}
var dup;if(method.toSource==null){dup=eval("dup = "+method.toString())}else{dup=eval(method.toSource())}
if(!method.$dx)isc.Func.getName(method,true);dup.$dx=method.$dx+"[d]";dup.$761=method;target[methodName]=dup;return dup},isc.A.$1361=function isc_c_Class__createUnsupportedMethodImpl(_1,_2){var _3={};var _4=function(){var _5=this.getClassName();if(_3[_5])return;var _6=_1.replace(/(\$?)\$(class|method)/g,function(_8,_9,_10,_11,_1){if(_9==="$")return"$"+_10;else if(_10==="class")return _5;else if(_10==="method")return _2});this.logWarn(_6);_3[_5]=true};_4.$1362=true;var _7=this.$b4[_2];if(isc.isA.Function(_7)){_4.$123y=isc.Func.getArgString(_7)}
return _4},isc.A.markUnsupportedMethods=function isc_c_Class_markUnsupportedMethods(_1,_2){if(_1==null)_1="$class does not support the $method() method.";for(var i=0;i<_2.length;++i){var _4=_2[i];this.$b4[_4]=this.$1361(_1,_4)}},isc.A.isMethodSupported=function isc_c_Class_isMethodSupported(_1){var _2=this.$b4[_1];return _2!=null&&!_2.$1362},isc.A.isMethodUnsupported=function isc_c_Class_isMethodUnsupported(_1){return!this.isMethodSupported(_1)},isc.A.initialized=function isc_c_Class_initialized(){return this.$cj[this.Class]},isc.A.getClassName=function isc_c_Class_getClassName(){return this.Class},isc.A.getScClassName=function isc_c_Class_getScClassName(){return this.isFrameworkClass?this.Class:this.$75y},isc.A.compareScClassName=function isc_c_Class_compareScClassName(_1,_2){if(!isc.isAn.Instance(_1))return false;return _1.getScClassName()==_2},isc.A.getSuperClass=function isc_c_Class_getSuperClass(){return this.$b8},isc.A.getPrototype=function isc_c_Class_getPrototype(){return this.$b4},isc.A.addMethods=function isc_c_Class_addMethods(){if(this.$a5){this.logWarn("Use addInterfaceMethods() to add methods to interface "+this)}
for(var i=0;i<arguments.length;i++)
isc.addMethods(this.$b4,arguments[i]);return this.$b4},isc.A.addInterfaceMethods=function isc_c_Class_addInterfaceMethods(){for(var i=0;i<arguments.length;i++)
isc.addMethods(this.$b4,arguments[i])},isc.A.addInterfaceProperties=function isc_c_Class_addInterfaceProperties(){isc.addPropertyList(this.$b4,arguments,true)},isc.A.registerStringMethods=function isc_c_Class_registerStringMethods(_1,_2){var _3=this._stringMethodRegistry;if(!this.isOverridden("_stringMethodRegistry")){var _4={},_5=_4.$cq=(_3.$cq?_3.$cq.duplicate():[]);for(var i=0;i<_5.length;i++){_4[_5[i]]=_3[_5[i]]}
this._stringMethodRegistry=_3=_4}
if(!isc.isA.String(_1)){var _7=_1;if(!isc.isAn.Object(_7)){this.logWarn("registerStringMethods() called with a bad argument: "+_1);return false}
for(var _1 in _7){_3[_1]=_7[_1]
_3.$cq.add(_1)}}else{if(_2==null)_2=null;_3[_1]=_2;_3.$cq.add(_1)}
return true},isc.A.registerDupProperties=function isc_c_Class_registerDupProperties(_1,_2){if(this.$769==null||this.$769.$bd!=this.getClassName()){if(this.$769!=null){var _3=this.$769;this.$769=this.$769.duplicate();if(_3.$77a!=null){this.$769.$77a=isc.shallowClone(_3.$77a)}}else{this.$769=[]}
this.$769.$bd=this.getClassName()}
if(!this.$769.contains(_1)){this.$769.add(_1)}
if(_2!=null){var _4=this.$769.$77a||{};_4[_1]=_2;this.$769.$77a=_4}},isc.A.isDupProperty=function isc_c_Class_isDupProperty(_1){return this.$769!=null&&this.$769.contains(_1)},isc.A.cloneDupPropertyValue=function isc_c_Class_cloneDupPropertyValue(_1,_2){if(isc.isA.Array(_2)){var _3=[];for(var i=0;i<_2.length;i++){_3[i]=this.cloneDupPropertyValue(_1,_2[i])}
return _3}
if(isc.Canvas&&isc.isA.Canvas(_2)){this.logWarn("Default value for property '"+_1+"' is set to a live Canvas (with ID '"+_2.getID()+"') at the Class or AutoChild-defaults level. SmartClient cannot clone a live widget, so each instance of this class may end up pointing to the same live component. To avoid unpredictable behavior and suppress this warning, use the AutoChild subsystem to set up re-usable default properties for sub-components.");return _2}
var _5=isc.shallowClone(_2);var _6=this.$769;if(_6.$77a!=null&&_6.$77a[_1]!=null&&_5!=null)
{for(var i=0;i<_6.$77a[_1].length;i++){var _7=_6.$77a[_1][i];if(_5[_7]!=null){_5[_7]=isc.shallowClone(_5[_7])}}}
return _5},isc.A.evaluate=function isc_c_Class_evaluate(_1,_2,_3,_4,_5,_6){if(_5){return this.parseStrictJSON(_1,_6)}
if(!isc.$611)isc.$611=0;isc.$611++;var _7;if(_4&&isc.Browser.isIE&&!_3&&isc.Page.isLoaded()){_7=this.evalInIFrame(_1,_2)}else{if(_2){with(_2){if(_3)_7=window.eval(_1)
else _7=eval(_1)}}else{if(_3)_7=window.eval(_1)
else _7=eval(_1)}}
if(isc.$611!=null)isc.$611--;if(isc.$611==0)delete isc.$611;return _7},isc.A.parseStrictJSON=function isc_c_Class_parseStrictJSON(_1,_2,_3,_4){var _5;if(_3||_4||!isc.Browser.$1691){_5=this.getJSONParseFunc()}else{_5=window.JSON.parse}
return _5(_1,_2,_4)},isc.A.getJSONParseFunc=function isc_c_Class_getJSONParseFunc(){if(this.$105i)return this.$105i;this.logInfo("No native JSON.parse() available in this browser. Creating strict JSON parsing function.","jsonEval");var _1=this,_2=this.$105h;this.$105y=function(_13,_14,_15,_16,_10){var _3;var k,v,_6=_13[_14];if(_6&&typeof _6==='object'&&_6!=window&&_6!=window.isc&&!isc.isA.Class(_6)&&!isc.isAn.Instance(_6))
{var _7=false;var _8=isc.JSONEncoder.$zl(_16,_6);if(_8!=null&&_10.contains(_8)){var _9=_10.substring(_8.length,_8.length+1);if(_9=="."||_9=="["||_9=="]"){_7=true}}
if(!_7){isc.JSONEncoder.$zm(_16,_6,_10);for(k in _6){if(Object.prototype.hasOwnProperty.call(_6,k)){var _10=isc.JSONEncoder.$zp(_10,k);v=_1.$105y(_6,k,_15,_16,_10);if(v!==_3){_6[k]=v}else{delete _6[k]}}}}}
return _15.call(_13,_14,_6)};this.$105i=function(_13,_14,_15){var j;var _12=false;if(_15==null)_15=isc.Class.$105j;if(!_15){_13=String(_13);_2.lastIndex=0;if(_2.test(_13)){_13=_13.replace(_2,function(_16){return'\\u'+('0000'+_16.charCodeAt(0).toString(16)).slice(-4)})}
if(!(/^[\],:{}\s]*$/.test(_13.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))))
{_12=true}}
if(_12){throw new SyntaxError('JSON.parse error')}
j=isc.eval('('+_13+')',!_15&&isc.Class.useHiddenFrameInJSONParseFunction);return typeof _14==='function'?_1.$105y({'':j},'',_14,{obj:[],path:[]},""):j}
return this.$105i},isc.A.evalInIFrame=function isc_c_Class_evalInIFrame(_1,_2){if(this.logIsDebugEnabled("iframeEval")){this.logDebug("Using iframe for evaluation:\n"+_1,"iframeEval")}
if(this.evalFrame==null||this.$104k!=document.domain){this.makeEvalFrame()}
if(this.evalFrame.evalCount>this.evalFrameResetInterval||this.evalFrame.frame==null){this.resetEvalFrame()}
if(this.evalFrame.frame==null)this.logInfo("Temporarily unable to evaluate in a HiddenFrame for domain "+document.domain+"; falling back to a simpler evaluate that may leak memory");return this.evalFrame.frame==null?this.evaluate(_1,_2):this.evalFrame.doEval(_1,_2)},isc.A.makeEvalFrame=function isc_c_Class_makeEvalFrame(){this.evalFrame=isc.HiddenFrame.create(this.evalFrameDefaults);this.$104k=document.domain;this.evalFrame.draw();if(document.domain==location.hostname&&this.evalFrame.getFrameDocument()==null)
{var _1=isc.addProperties({location:isc.Page.getURL("[HELPERS]empty.html")},this.evalFrameDefaults);this.evalFrame=isc.HiddenFrame.create(_1);this.evalFrame.draw()}},isc.A.resetEvalFrame=function isc_c_Class_resetEvalFrame(){if(this.logIsInfoEnabled("iframeEval")){this.logInfo("Using iframe for evaluation - resetting iframe.","iframeEval")}
this.evalFrame.evalCount=0;var _1=this.evalFrame.frame=this.evalFrame.getFrameDocument();if(_1!=null){_1.open();var _2=this.evalFrame.$104k?"document.domain = '"+this.evalFrame.$104k+"';":"";_1.write(this.evalFrameHTML[0]+_2+this.evalFrameHTML[1]);_1.close()}else{this.evalFrame.$104k=document.domain}},isc.A.addClassProperties=function isc_c_Class_addClassProperties(){isc.addPropertyList(this,arguments);return this},isc.A.markAsFrameworkClass=function isc_c_Class_markAsFrameworkClass(){this.isFrameworkClass=true;this.$b4.isFrameworkClass=true;this.$75y=this.Class;this.$b4.$75y=this.Class},isc.A.addProperties=function isc_c_Class_addProperties(){if(this.$a5){this.logWarn("Use addInterfaceProperties() to add methods to interface "+this)}
isc.addPropertyList(this.$b4,arguments,true);return this},isc.A.addPropertyList=function isc_c_Class_addPropertyList(_1){isc.addPropertyList(this.$b4,_1,true);return this},isc.A.changeDefaults=function isc_c_Class_changeDefaults(_1,_2){var _3=this.$cr(_1),_4=false;var _5=this.getSuperClass();if(_5){var _6=_5.$cr(_1);if(_6!=null&&_6==_3){_3=isc.addProperties({},_3);_4=true}}
if(_3==null){_3=_2||{};_4=true}else{isc.addProperties(_3,_2)}
if(_4){var _7={};_7[_1]=_3;this.addProperties(_7)}},isc.A.$cr=function isc_c_Class__getDefaults(_1){var _2=this.$ck[this.Class],_3=this.getInstanceProperty(_1,true)||(_2?_2[_1]:null);return _3},isc.A.replaceDefaults=function isc_c_Class_replaceDefaults(_1,_2){this.changeDefaults(_1,_2)},isc.A.setProperties=function isc_c_Class_setProperties(){var _1;if(arguments.length==1){_1=arguments[0]}else{_1={};for(var i=0;i<arguments.length;i++){isc.addProperties(_1,arguments[i])}}
this.$b4.setProperties(_1)},isc.A.isOverridden=function isc_c_Class_isOverridden(_1){return(!(this[_1]===this.$b8[_1]))},isc.A.isA=function isc_c_Class_isA(_1){if(_1==null)return false;if(!isc.isA.String(_1)){_1=_1.Class;if(!isc.isA.String(_1))return false}
if(isc.startsWith(_1,isc.ClassFactory.$f)){_1=_1.substring(4)}
var _2=this;while(_2){if(_2.Class==_1)return true;_2=_2.$b8}
if(this.$cd){for(var i=0;i<this.$cd.length;i++){var _4=isc.ClassFactory.getClass(this.$cd[i]);while(_4){if(_4.Class==_1)return true;_4=_4.$b8}}}
return false},isc.A.$cs=function isc_c_Class__getNextImplementingSuper(_1,_2,_3,_4){var _5;for(;;){if(_2==null){_5=null;break}
var _5=isc.Class.$ct(_3,_2);if(_5==null)break;if(_1!=_5){break}
if(_4){_2=_2.$b8}else{_2=_2.$b9.$b8.$b4}}
if(_5!=null)return _2;return null},isc.A.Super=function isc_c_Class_Super(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(this.autoDupMethods&&isc.isAn.Instance(this)){this.duplicateMethod("Super")}
if(_2!=null&&(_2.length==null||isc.isA.String(_2)))_2=[_2];if(_2==null)_2=isc.$ac;this.$cx=_3||_2;this.$85s=_2;this.$cy=isc.Class.$cz(_1,this);this.$c0=true;return this.invokeSuper(null,_1)},isc.A.$116f=function isc_c_Class__delayedSuper(_1,_2,_3,_4,_5){if(_2!=null&&(_2.length==null||isc.isA.String(_2)))_2=[_2];if(_2==null)_2=isc.$ac;_3=_3||_2;var _6=_2;var _7=isc.Class.$cz(_1,this);var _8=this;return isc.Timer.setTimeout(function(){if(isc.$cv)arguments.$cw=_8;if(_8.autoDupMethods&&isc.isAn.Instance(_8)){_8.duplicateMethod("Super")}
_8.$cx=_3;_8.$85s=_6;_8.$cy=_7;_8.$c0=true;_8.invokeSuper(null,_1)},_4,_5)},isc.A.$ct=function isc_c_Class__getOriginalMethod(_1,_2){var _3=_2[_1];while(_3!=null&&_3.$c1){_3=_2[_3.$c1]}
if(_3!=null&&_3.$761!=null)_3=_3.$761;return _3},isc.A.invokeSuper=function isc_c_Class_invokeSuper(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(this.autoDupMethods&&isc.isAn.Instance(this)){this.duplicateMethod("invokeSuper")}
var _14=this.$bp;var _15=this.$c0;this.$c0=null;var _16=this.$cx;this.$cx=null;var _17=this.$85s;this.$85s=null;var _18;if(_15){_18=this.$cy;this.$cy=null}else{if(_1!=null){_18=_14?_1:_1.$b4}}
var _19,_20;if(_18==null){_19=isc.Class.$ct(_2,this);_20=_14?this:this.getPrototype()}else{_19=isc.Class.$ct(_2,_18);if(_14){_20=_18.$b8}else{_20=_18.$b9.$b8.$b4}
if(_16&&_16.callee!=null&&_16.callee!=_19)
{_19=isc.Class.$ct(_2,this);_20=_14?this:this.getPrototype()}}
_20=isc.Class.$cs(_19,_20,_2,_14);if(_20==null){if(isc.Log)isc.Log.logWarn("Call to Super for method: "+_2+" failed on: "+this+": couldn't find a superclass implementation of : "+(_18?_18.Class:this.Class)+"."+_2+this.getStackTrace());return null}
var _21=_20[_2];isc.Class.$c2(_2,_20,this);var _22;if(_15){if(_17!=null||_16!=null){_22=_21.apply(this,_17==null?_16:_17)}else{_22=_21.apply(this)}}else{_22=_21.call(this,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12)}
isc.Class.$c3(_2,this);return _22},isc.A.$cz=function isc_c_Class__getLastProto(_1,_2){var _3=_2.$c4,_4=_3==null?null:_3[_1];if(isc.isAn.Array(_4))return _4.last();return _4},isc.A.$c3=function isc_c_Class__clearLastProto(_1,_2){var _3=_2.$c4,_4=_3[_1];if(_4==null){return}
if(!_4.$81d){_3[_1]=null}else{_4.length=Math.max(0,_4.length-1);if(_4.length==0)_3[_1]=null}},isc.A.$c2=function isc_c_Class__addProto(_1,_2,_3){var _4=_3.$c4=_3.$c4||{},_5=_4[_1];if(_5==null){_4[_1]=_2}else{if(isc.isAn.Array(_5))_5.add(_2);else{_4[_1]=[_5,_2];_4[_1].$81d=true}}},isc.A.map=function isc_c_Class_map(_1,_2,_3,_4,_5,_6,_7){if(_1==null)return _2;var _8=[];for(var i=0;i<_2.length;i++){_8.add(this[_1](_2[i],_3,_4,_5,_6,_7))}
return _8},isc.A.getInstanceProperty=function isc_c_Class_getInstanceProperty(_1,_2){if(!this.initialized()&&!_2)this.init();var _3=this.$b4[_1];return _3},isc.A.setInstanceProperty=function isc_c_Class_setInstanceProperty(_1,_2){this.$b4[_1]=_2},isc.A.getArgString=function isc_c_Class_getArgString(_1){var _2=this._stringMethodRegistry[_1];var _3;if(_2!==_3)return _2||isc.emptyString;var _4=this.getInstanceProperty(_1);if(_4==null)return"";return isc.Func.getArgString(_4)},isc.A.fireCallback=function isc_c_Class_fireCallback(_1,_2,_3,_4,_5){arguments.$cw=this;if(_1==null)return;var _6;if(_2==null)_2=_6;var _7=_1;if(isc.isA.String(_1)){if(_4!=null&&isc.isA.Function(_4[_1]))_7=_4[_1];else _7=this.$c5(_1,_2)}else if(isc.isAn.Object(_1)&&!isc.isA.Function(_1)){if(_1.caller!=null)_4=_1.caller;else if(_1.target!=null)_4=_1.target;if(_1.args)_3=_1.args;if(_1.argNames)_2=_1.argNames;if(_1.method)_7=_1.method;else if(_1.methodName&&_4!=null)_7=_4[_1.methodName];else if(_1.action)
_7=this.$c5(_1.action,_2)}
if(!isc.isA.Function(_7)){this.logWarn("fireCallback() unable to convert callback: "+this.echo(_1)+" to a function.  target: "+_4+", argNames: "+_2+", args: "+_3);return}
if(_4==null)_4=window;else if(_4.destroyed){if(this.logIsInfoEnabled("callbacks")){this.logInfo("aborting attempt to fire callback on destroyed target:"+_4+". Callback:"+isc.Log.echo(_1)+",\n stack:"+this.getStackTrace())}
return}
_7.$c6=true;if(_3==null)_3=[];if(isc.enableCrossWindowCallbacks&&isc.Browser.isIE){var _8=_4.constructor?_4.constructor.$ch:_4;if(_8&&_8!=window&&_8.isc){var _9=_8.Array.newInstance();for(var i=0;i<_3.length;i++)_9[i]=_3[i];_3=_9}}
var _11;if((!_5&&!isc.Log.rethrowErrors)||isc.Log.supportsOnError){_11=_7.apply(_4,_3)}else{try{_11=_7.apply(_4,_3)}catch(e){if(_5)isc.Log.$am(e);else isc.Log.$1675(e);throw e;}}
return _11},isc.A.delayCall=function isc_c_Class_delayCall(_1,_2,_3,_4){if(_4==null)_4=this;if(_3==null)_3=0;return isc.Timer.setTimeout({target:_4,methodName:_1,args:_2},_3)},isc.A.$c5=function isc_c_Class__makeCallbackFunction(_1,_2){if(_2==null){var _3;_2=_3}
var _4=isc.$aq(_2,_1);_4.$c7=true;return _4},isc.A.fireOnPause=function isc_c_Class_fireOnPause(_1,_2,_3,_4,_5,_6){if(!_1)return;if(!_3)_3=this.fireOnPauseDelay;if(_5==null)_5=this.getClassName();return isc.Class.$134i(_1,_6?function(){if(isc.Class.fireCallback(_6,null,null,_4)){isc.Class.fireCallback(_2,null,null,_4)}else isc.Class.fireOnPause(_1,_2,_3,_4,_5,_6)}:_2,_3,_4,_5)},isc.A.$134i=function isc_c_Class__fireOnPause(_1,_2,_3,_4,_5){if(!this.$cn[_1]){this.$cn[_1]={}}
this.$cn[_1][_5]={fireTime:_3,callback:_2,target:_4};var _6=isc.timeStamp(),_7=this.$c8?_6-this.$c8:null;this.$c8=_6;if(!this.$926&&_7&&this.$c9!=null&&_3>=(this.$c9-_7))
{return}
if(this.$da)isc.Timer.clearTimeout(this.$da);this.$da=this.delayCall(this.$cl,null,_3);this.$c9=_3},isc.A.$cm=function isc_c_Class__fireActionsOnPause(){this.$926=true;var _1;var _2=isc.timeStamp()-this.$c8,_1;for(var _3 in this.$cn){var _4=this.$cn[_3];var _5=isc.getKeys(_4);for(var i=0;i<_5.length;i++){var _7=_5[i];var _8=_4[_7];if(_8.fireTime<=_2){delete this.$cn[_3][_7];this.fireCallback(_8.callback,null,null,_8.target)}else{_8.fireTime-=_2;if(_1==null)_1=_8.fireTime;else _1=Math.min(_1,_8.fireTime)}}
if(isc.isAn.emptyObject(this.$cn[_3]))delete this.$cn[_3]}
if(_1!=null){this.$c9=_1;this.$c8=isc.timeStamp();this.delayCall(this.$cl,null,_1)}else{this.$c9=null;this.$c8=null}
this.$926=null},isc.A.evalWithVars=function isc_c_Class_evalWithVars(_1,_2,_3){if(!_3)_3=window;if(this.useFastEvalWithVars){return this.evaluate.call(_3,_1,_2)}
var _4="_1";while(_2&&isc.propertyDefined(_2,_4)){_4+="1"}
var _5=[_4];var _6=[_1];if(_2){for(var _7 in _2){_5.push(_7);_6.push(_2[_7])}}
var _8=isc.$aq(_5.join(","),"return eval("+_4+")");return _8.apply(_3,_6)},isc.A.evalWithCapture=function isc_c_Class_evalWithCapture(_1,_2,_3){var _4=isc.globalsSnapshot=[];this.evalWithVars(_1,_2,_3);isc.globalsSnapshot=null;return _4},isc.A.destroyGlobals=function isc_c_Class_destroyGlobals(_1){if(_1==null)return;if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _3=_1[i];var _4=window[_3];if(_4){if(isc.isA.Function(_4.destroy))_4.destroy();else window[_3]=null}}},isc.A.globalEvalWithCapture=function isc_c_Class_globalEvalWithCapture(_1,_2,_3,_4){if(_4==null)_4=true;this.$db=_3;this.$dc=_2;if(!_2){var _5;this.startGlobalsCapture(null,isc.keepGlobals===_5?null:isc.keepGlobals)}else{this.startGlobalsCapture()}
var _6;try{if(isc.Browser.isIE){if(window.execScript!=null){window.execScript(_1,"javascript")}else{window.eval(_1)}}else{isc.Class.evaluate(_1,null,true)}}catch(e){if(_4)isc.Log.$am(e,null,null,null,"Problem during global eval()");_6=e}
return this.endGlobalsCapture(_6)},isc.A.startGlobalsCapture=function isc_c_Class_startGlobalsCapture(_1,_2){var _3;if(isc.$141t){isc.logWarn("startGlobalsCapture() called again without endGlobalsCapture being called!");return}
isc.$141t=true;if(!this.$dc){if(_2===_3){isc.keepGlobals=[]}else{isc.keepGlobals=_2}}
var _4=this.$db?this.$db:_1;this.$df={};if(_4){for(var _5 in _4){var _6=window[_5];if(_6!==_3)this.$df[_5]=_6;window[_5]=_4[_5]}}
isc.autoAssignedTempGlobals={};isc.globalsSnapshot=isc.keepGlobals?{}:[]},isc.A.$147d=function isc_c_Class__globalsCaptureRestoreGlobal(_1,_2,_3){var _4=_3[_1];if(_4){delete _3[_1];isc.ClassFactory.releaseGlobalID(_4,_1)}
window[_1]=_2[_1]},isc.A.endGlobalsCapture=function isc_c_Class_endGlobalsCapture(_1,_2,_3){if(!isc.$141t){isc.logWarn("endGlobalsCapture() called before having a startGlobalsCapture() call!");return{globals:null,error:"endGlobalsCapture() called before having a startGlobalsCapture() call!"}}
if(_1!=null&&_2)isc.Log.$am(_1,null,null,null,"Problem during global eval()");var _4,_5=this.$db;if(_5){for(var _6 in _5){var _7=this.$df[_6];if(_7!==_4)window[_6]=this.$df[_6];else window[_6]=_4}}
var _8=this.$dc,_9=isc.globalsSnapshot,_10=isc.autoAssignedTempGlobals;isc.globalsSnapshot=this.$dc=this.$db=this.$df=window.$98f=isc.autoAssignedTempGlobals=null;isc.$141t=null;this.fireCallback(_8,"globals,error,idsToFree",[_9,_1,_10]);if(!_8){var _11=isc.keepGlobals;var _4;if(_3===_4||_3){if(_11){for(var _12 in _9){if(_11.contains(_12)){continue}
this.$147d(_12,_9,_10)}}else{isc.logWarn("Cannot restore globals in endGlobalsCapture because non-keepGlobals mode was also required by caller")}}
isc.keepGlobals=null}
return{globals:_9,error:_1}},isc.A.globalEvalAndRestore=function isc_c_Class_globalEvalAndRestore(_1,_2,_3,_4,_5,_6){if(_2==null)_2=[];isc.keepGlobals=_2;return this.globalEvalWithCapture(_1,function(_11,_12,_13){isc.keepGlobals=null;var _7={},_8=isc.Canvas.$112q(_11);for(var _9 in _11){if(_2.contains(_9))continue;_7[_9]=window[_9];if(_6){var _10=window[_9];if(_10&&isc.isA.Canvas(_10)){if(_8){if(!_8.$112o){_8.$112o={}}
_8.$112o[_9]=_10;_10.setProperty("$112p",_8)}else{if(_10.topElement||_10.masterElement){isc.logWarn("Cannot find top level of "+_10)}}}}
isc.Class.$147d(_9,_11,_13)}
isc.Class.fireCallback(_3,"globals,error,suppressedGlobals",[_11,_12,_7])},_4,_5)},isc.A.$dg=function isc_c_Class__notifyFunctionComplete(_1,_2,_3){_3.$dh-=1;if(_3.$dh)return;for(var i=0;i<_3.length;i++){var q=_3[i];if(q.$di){_3.removeItem(i);i--;continue}
if(q.$dj){delete q.$dj}}
if(_3.length==0){var _6=isc.$ah+_2;_1[_2]=_1[_6];delete _1[_6];delete _1.$ba[_2]}},isc.A.getArrayItem=function isc_c_Class_getArrayItem(_1,_2,_3){if(_2==null)return null;if(isc.isA.Number(_1))return _2[_1];if(isc.isAn.Object(_1))return _1;if(isc.isA.String(_1))return _2.find(_3||this.$cp,_1);return null},isc.A.getArrayItemIndex=function isc_c_Class_getArrayItemIndex(_1,_2,_3){if(isc.isA.Number(_1))return _1;var _4=isc.Class.getArrayItem(_1,_2,_3);return _2.indexOf(_4)});isc.evalBoundary;isc.B.push(isc.A.getDocumentBody=function isc_c_Class_getDocumentBody(_1){var _2=(!_1&&isc.Browser.isIE&&isc.Browser.isStrict);var _3=(_2?this.ns.$dl:this.ns.$dm);if(_3!=null)return _3;var _4=this.getDocument();if(_2){this.ns.$dl=_4.documentElement;return this.ns.$dl}
if(isc.Browser.isIE){_3=_4.body}else{if(_4.body!=null)_3=_4.body;else{var _5=_4.documentElement.namespaceURI;_3=_4.getElementsByTagNameNS(_5,"body")[0];if(_3==null){_3=_4.documentElement.childNodes[1];if(_3!=null&&_3.tagName!="body")_3=null}
if(!_3)return null}}
this.ns.$dm=_3;return _3},isc.A.getActiveElement=function isc_c_Class_getActiveElement(){try{return this.getDocument().activeElement}catch(e){this.logWarn("error accessing activeElement: "+e.message)}
return null},isc.A.$dk=function isc_c_Class__makeNotifyFunction(_1){var _2=function observation(){if(isc.$cv)arguments.$cw=this;var _3=this[arguments.callee.$c1].apply(this,arguments);var _4=this.$ba[_1];if(!_4)return _3;_4.$dh=_4.$dh?_4.$dh+1:1;var q,_6;for(var i=0,_8=_4.length;i<_8;++i){q=_4[i];if(q.$dj)continue;_6=q.action;_6.$f0=q.target;_6.$1230=this;_6.$1233=_3;try{_6.apply(q.target,arguments)}finally{_6.$f0=null;_6.$1230=null;_6.$1233=null}}
if(isc.Browser.isSafari){arguments.callee.$dv.Class.$dg(this,_1,_4)}else{isc.Class.$dg(this,_1,_4)}
return _3};_2.$dw=true;_2.$dx=_1+"Observation";_2.$c1=isc.$ah+_1;if(isc.Browser.isSafari)_2.$dv=isc;return _2},isc.A.$1231=function isc_c_Class__makeThunkFunction(_1,_2){if(_1==null)_1=isc.$ad;var _3="var observer = arguments.callee.caller.$f0, it = observer, observed = this, returnVal = arguments.callee.caller.$1233;\n";_3+=_2;var _4=isc.Class.$123z[_1];if(_4==null)_4=isc.Class.$123z[_1]={};var _5=_4[_2];if(_5==null){_5=_4[_2]=isc.$aq(_1,_3);_5.$123y=_1}
return function thunk(){_5.apply(arguments.callee.$1230,arguments)}},isc.A.$102q=function isc_c_Class__assert(_1,_2){if(!_1){isc.logWarn("assertion failed"+(_2?" with message: '"+_2+"'":"")+". Stack trace:"+(isc.Class.getStackTrace()));throw(_2||"assertion failed")}});isc.B._maxIndex=isc.C+74;isc.A=isc.Class;isc.A.newInstance=isc.Class.create;isc.Class.ns=isc;isc.A=isc.ClassFactory;isc.A.ns=isc;isc.A.getWindow=isc.Class.getWindow;isc.A.getDocument=isc.Class.getDocument;isc.A=isc.Class.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.getWindow=(isc.Browser.isSafari?function(){return window}:function(){return this.ns.$ch});isc.A.getDocument=(isc.Browser.isSafari?function(){return window.document}:function(){return this.ns.$ci});isc.A.$dn="_autoMaker";isc.A.$58e="creator";isc.A.$do="show";isc.A.$dp="Constructor";isc.A.$dq="Defaults";isc.A.$dr="Properties";isc.A.$90j="spacer:";isc.A.map=isc.Class.map;isc.A.Super=isc.Class.Super;isc.A.$116f=isc.Class.$116f;isc.A.invokeSuper=isc.Class.invokeSuper;isc.A.$102q=isc.Class.$102q;isc.B.push(isc.A.init=function isc_Class_init(){},isc.A.destroy=function isc_Class_destroy(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14=this.getClass();this.$188b();if(_14.$101i){for(var i=0;i<_14.$101i.length;i++){_14.$101i[i].call(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}}
var _16=this.__sgwtDestroy;if(_16){delete this.__sgwtDestroy;_16.apply(this)}},isc.A.completeCreation=function isc_Class_completeCreation(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14=isc.createLevel;isc.createLevel=isc.keepGlobals?(_14==null?1:_14+1):null;var _15=isc.captureDefaults;if(_15)isc.captureDefaults=false;if(this.addPropertiesOnCreate!=false){if(_15){var _16={type:this.Class,defaults:isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}
if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_16);if(_16.defaults.ID){isc.ClassFactory.addGlobalID(_16,_16.defaults.ID)}
if(_15)isc.captureDefaults=true;isc.createLevel=_14;return _16}
isc.addProperties(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}
var _17=this.getClass(),_18=_17.$769;if(_18!=null){for(var i=0;i<_18.length;i++){var _20=_18[i];if(this[_20]==_17.$b4[_20]){this[_20]=_17.cloneDupPropertyValue(_20,this[_20])}}}
if(_17.$100q){for(var i=0;i<_17.$100q.length;i++){_17.$100q[i].call(this,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}}
this.init(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);if(this.autoDupMethods){isc.Class.duplicateMethods(this,this.autoDupMethods)}
if(_15)isc.captureDefaults=true;isc.createLevel=_14;return this},isc.A.duplicateMethod=function isc_Class_duplicateMethod(_1){isc.Class.duplicateMethod(_1,this)},isc.A.getUniqueProperties=function isc_Class_getUniqueProperties(_1){if(_1==null)_1={};var _2=this.getPrototype();for(var _3 in this){if(_3.startsWith("_"))continue;if(_3=="ns")continue;if(_3=="ID"&&this.ID.startsWith("isc_OID_"))continue;var _4=this[_3];if(isc.isA.Function(_4))continue;if(_4!=_2[_3]){_1[_3]=this[_3]}}
return _1},isc.A.clone=function isc_Class_clone(){return this.getClass().create(this.getUniqueProperties())},isc.A.serialize=function isc_Class_serialize(_1){return isc.Comm.serialize(this,_1)},isc.A.xmlSerialize=function isc_Class_xmlSerialize(_1){return isc.Comm.xmlSerialize(this.getClassName(),this,_1)},isc.A.getSerializeableFields=function isc_Class_getSerializeableFields(_1,_2){var _3=isc.DS?isc.DS.getNearestSchema(this):null;var _4=this.getUniqueProperties();if(_3==null){this.logDebug("No schema available for class"+this.getClassName());return _4}else{this.logDebug("Constraining serializeable fields for class: "+this.getClassName()+" with schema : "+_3.ID)}
var _5=isc.applyMask(_4,_3.getFields());_1=_1||[];_2=_2||[];_1.map(function(_7){delete _5[_7]});for(var i=0;i<_2.length;i++){_5[_2[i]]=this[_2[i]]}
return _5},isc.A.getID=function isc_Class_getID(){return this.ID},isc.A.getClass=function isc_Class_getClass(){return this.$b9},isc.A.getSuperClass=function isc_Class_getSuperClass(){return this.$b9.$b8},isc.A.getClassName=function isc_Class_getClassName(){return this.getClass().getClassName()},isc.A.getScClassName=function isc_Class_getScClassName(){return this.getClass().getScClassName()},isc.A.getPrototype=function isc_Class_getPrototype(){return this.$76y},isc.A.getGlobalReference=function isc_Class_getGlobalReference(_1){if(typeof _1=="string")return this.evaluate(_1);return _1},isc.A.addMethods=function isc_Class_addMethods(){for(var i=0;i<arguments.length;i++){return isc.addMethods(this,arguments[i])}},isc.A.addProperties=function isc_Class_addProperties(){return isc.addPropertyList(this,arguments)},isc.A.addPropertyList=function isc_Class_addPropertyList(_1){return isc.addPropertyList(this,_1)},isc.A.$ds=function isc_Class__getSetter(_1){var _2="set"+_1.substring(0,1).toUpperCase()+_1.substring(1);return(isc.isA.Function(this[_2])?_2:null)},isc.A.$dt=function isc_Class__getGetter(_1){var _2="get"+_1.substring(0,1).toUpperCase()+_1.substring(1);return(isc.isA.Function(this[_2])?_2:null)},isc.A.setProperty=function isc_Class_setProperty(_1,_2){var _3={};_3[_1]=_2;this.setProperties(_3)},isc.A.setProperties=function isc_Class_setProperties(){var _1=isc.isA,_2,_3={};if(arguments.length<1)return;if(arguments.length==1){_2=arguments[0];if(_2==null)return}else{_2={};for(var i=0;i<arguments.length;i++){isc.addProperties(_2,arguments[i])}}
for(var _5 in _2){var _6=_2[_5],_7=this.$ds(_5);if(isc.isA.StringMethod(_6))_6=_6.getValue();if(_7){this[_7](_6);if(this.propertyChanged)this.propertyChanged(_5,_6)}else{_3[_5]=_6}}
this.addProperties(_3)
if(this.propertyChanged){for(var _5 in _3){this.propertyChanged(_5,_3[_5])}}
if(this.doneSettingProperties)this.doneSettingProperties(_2)},isc.A.getProperty=function isc_Class_getProperty(_1){var _2=this.$dt(_1);if(_2)return this[_2]();return this[_1]},isc.A.getPropertyValue=function isc_Class_getPropertyValue(_1){var _2=this.$dt(_1);if(_2)return this[_2]();return this[_1]},isc.A.$du=function isc_Class__firstNonNull(_1,_2,_3,_4,_5,_6){return _1!=null?_1:(_2!=null?_2:(_3!=null?_3:(_4!=null?_4:(_5!=null?_5:_6))))},isc.A.isA=function isc_Class_isA(_1){if(this.getClass().isA(_1)){return true}else{if(this.getSGWTFactory){var _2=this.getSGWTFactory();if(_2)return _2.isA(_1)}}
return false},isc.A.observe=function isc_Class_observe(_1,_2,_3){if(_1==null){this.logWarn("Invalid observation: Target is not an object.  target: "+_1+", methodName: "+_2+", action: '"+_3+"'");return false}
if(!isc.Func.convertToMethod(_1,_2)){this.logWarn("Invalid observation: property: '"+_2+"' is not a method on "+_1);return false}
var _4=isc.$a9[_2];if(_1[_4])this.observe(_1,_4,_3)
var _5=_1[_2],_6;if(isc.isAn.Instance(_1)&&_1.getClass().getInstanceProperty(_2)){_6=_1.getClass().getArgString(_2)}else{_6=isc.Func.getArgString(_5)}
var _7=_6.split(",");if(_3==null||isc.is.emptyString(_3)){if(!this[_2]||!this.convertToMethod(_2)){this.logWarn("Invalid Observation - no action specified, and observer: "+this+" has no method '"+_2+"', ignoring");return false}
_3="it."+_2+"("+_6+")"}
if(!isc.isA.Function(_3)){_3=isc.Class.$1231(_6,_3)}
_3.$123y=_6;if(!_1.$ba)_1.$ba={};if(!_1.$ba[_2]){var _8=_1.$ba[_2]=[];if(_7.length>0){_8.argStr=_6}}else{var _8=_1.$ba[_2];for(var i=0,_10=_8.length;i<_10;i++){var q=_8[i];if(q.target==this){if(q.$di&&!q.$dj)
{q.$di=false;q.$dj=true;q.action=_3;return true}
this.logWarn("Observer: "+this+" is already observing method '"+_2+"' on object '"+_1+"', ignoring");return false}}}
var _12=!!_8.$dh;var q={target:this,action:_3,$dj:_12};_8.add(q);var _13=isc.$ah+_2;if(_1[_13]==null){_1[_13]=_5}else if(!_1[_2].$dw){this.logWarn("Observation error: method "+_2+" is being observed on object "+_1+" but the function appears to have been directly overridden. This may lead to unexpected behavior - to avoid seeing this message in the future, ensure the addMethods() or addProperties() API is used to modify methods on live SmartClient instances, rather than simply reassigning the method name to a new function instance.");_1[_13]=_1[_2]}
if(!_12&&!_1[_2].$dw){_1[_2]=isc.Class.$dk(_2)}
if(!this.$188a)this.$188a=[];this.$188a.push({object:_1,methodName:_2,action:_3});return true},isc.A.$188b=function isc_Class__clearObservationsForDestroy(){if(this.$188a){var _1=this.$188a.duplicate();while(_1.length){var _2=_1.pop();this.ignore(_2.object,_2.methodName)}}
if(this.$ba){var _3=isc.getKeys(this.$ba);while(_3.length){var _4=_3.pop();var _5=this.$ba[_4].duplicate();while(_5.length){var _6=_5.pop();_6.target.ignore(this,_4)}}}},isc.A.ignore=function isc_Class_ignore(_1,_2){var _3;var _4=isc.$a9[_2];if(_4!==_3&&_1[_4])this.ignore(_1,_4);var _5=isc.$ah+_2;if(!_1[_5]||!_1.$ba)return false;var _6=_1.$ba[_2],_7=_6.$dh;var q;for(var i=0,_10=_6.length;i<_10;i++){q=_6[i];if(q.target==this){if(_7){q.$di=true}else{_6.removeAt(i)}
break}}
if(!_1[_2]||!_1[_2].$dw){this.logWarn("Observation error caught in ignore(): Method "+_2+" was being observed on object "+_1+" but the function appears to have been directly overridden. This may lead to unexpected behavior - to avoid seeing this message in the future, ensure the addMethods() or addProperties() API is used to modify methods on live SmartClient instances, rather than simply reassigning the method name to a new function instance.");_1[_5]=_1[_2]}
if(_6.length==0){_1[_2]=_1[_5];delete _1[_5];delete _1.$ba[_2]}
this.$188a&&this.$188a.removeWhere({object:_1,methodName:_2});return true},isc.A.getObserversOf=function isc_Class_getObserversOf(_1){if(!this.$ba||!this.$ba[_1])return null;var _2=this.$ba[_1];for(var _3=[],i=0;i<_2.length;i++){_3[i]=(_2[i]?_2[i].target:null)}
return _3},isc.A.isObserving=function isc_Class_isObserving(_1,_2){if(!_1.$ba)return false;var _3=_1.$ba[_2];if(!_3)return false;for(var i=0;i<_3.length;i++){if(_3[i].target==this)return true}
return false},isc.A.convertToMethod=function isc_Class_convertToMethod(_1){return isc.Func.convertToMethod(this,_1)},isc.A.evaluate=function isc_Class_evaluate(_1,_2){return isc.Class.evaluate.apply(this,[_1,_2])},isc.A.fireCallback=function isc_Class_fireCallback(_1,_2,_3,_4){return this.getClass().fireCallback(_1,_2,_3,this,_4)},isc.A.delayCall=function isc_Class_delayCall(_1,_2,_3){return this.getClass().delayCall(_1,_2,_3,this)},isc.A.fireOnPause=function isc_Class_fireOnPause(_1,_2,_3,_4){return this.getClass().fireOnPause(_1,_2,_3,this,this.getID(),_4)},isc.A.pendingActionOnPause=function isc_Class_pendingActionOnPause(_1){var _2=this.getClass().$cn[_1],_3=this.getID()||this.getClassName();return _2?!!_2[_3]:false},isc.A.cancelActionOnPause=function isc_Class_cancelActionOnPause(_1){var _2=this.getClass().$cn[_1],_3=this.getID()||this.getClassName();if(_2[_3])delete _2[_3]},isc.A.evalWithVars=function isc_Class_evalWithVars(_1,_2){return isc.Class.evalWithVars(_1,_2,this)},isc.A.getDocumentBody=function isc_Class_getDocumentBody(_1){return isc.Class.getDocumentBody(_1)},isc.A.getActiveElement=function isc_Class_getActiveElement(){return isc.Class.getActiveElement()},isc.A.addAutoChildren=function isc_Class_addAutoChildren(_1,_2,_3){if(_1==null)return;if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _5=_1[i];if(isc.isA.Canvas(_5)){_2=_2||this;this.$dy(_5,_2,_3);continue}
this.addAutoChild(_5,null,null,_2,_3)}},isc.A.addAutoChild=function isc_Class_addAutoChild(_1,_2,_3,_4,_5){var _6=this[_1];if(isc.isAn.Instance(_6))return _6;if(isc.isAn.Object(_1)&&_1.autoChildName){_2=_1;_3=_2._constructor||_3;_1=_2.autoChildName}
if(isc.isA.String(_6)&&window[_6]){this[_1]=window[_6];return this[_1]}
if(_1!=null&&!this.shouldCreateChild(_1))return;var _7,_8=_1+this.$dn;if(_1!=null&&this[_8])_7=this[_8](_2);else{_7=this.createAutoChild(_1,_2,_3,true)}
if(!_7)return;if(_7.$120w!==false)this[_1]=_7;this.$dz(_1,_7,_4,_5);return _7},isc.A.$dz=function isc_Class__addToParent(_1,_2,_3,_4){if(_3==null){_3=_2.autoParent||this.getAutoChildParent(_1)}
if(isc.isA.String(_3)){if(_3==isc.Canvas.NONE){if(this.isDrawn())_2.draw();return}
var _5=this[_3]||window[_3]||_3;if(!isc.isA.Canvas(_5)){this.logWarn("no valid parent could be found for String '"+_3+"'")}else _3=_5}
if(!isc.isA.Canvas(_2)||!isc.isA.Canvas(_3))return;this.$dy(_2,_3,_4)},isc.A.$dy=function isc_Class__addAutoChildToParent(_1,_2,_3){if(_1.addAsPeer||_1.snapEdge)_2.addPeer(_1);else if(isc.isA.Layout(_2)&&!_1.addAsChild&&!_1.snapTo)_2.addMember(_1,_3);else if(isc.TileLayout&&isc.isA.TileLayout(_2)&&!_1.addAsChild&&!_1.snapTo)_2.addTile(_1,_3);else _2.addChild(_1)},isc.A.shouldCreateChild=function isc_Class_shouldCreateChild(_1){var _2=this.$do+_1.charAt(0).toUpperCase()+_1.substring(1);if(this[_2]!=null&&this[_2]==false)return false;var _3=this.$d0(_1);if(_3==null)return true;return(this.shouldCreateChild(_3))},isc.A.getAutoChildClass=function isc_Class_getAutoChildClass(_1,_2,_3,_4,_5){_4=_4||this.$d1(_1);var _6=this[_4];_5=_5||this.$543(_1);var _7=this[_5];return this[_1+this.$dp]||(_2?_2._constructor:null)||(_7?_7._constructor:null)||(_6?_6._constructor:null)||_3||isc.Canvas},isc.A.applyBaseDefaults=function isc_Class_applyBaseDefaults(_1,_2,_3){_1.autoDraw=false;_1._generated=true;_1.creator=this;var _4=this.creatorName;if(_4)_1[_4]=this;var _5;if(_3==null||_3.ID===_5){_1.ID=this.getID()+isc.$ag+_2;if(window[_1.ID]){_1.ID=_1.ID+isc.$ag+isc.ClassFactory.getNextGlobalID()}}},isc.A.getDynamicDefaults=function isc_Class_getDynamicDefaults(){},isc.A.$d1=function isc_Class__getDefaultsName(_1){var _2=isc.Class.$d2;if(!_2)isc.Class.$d2=_2={};if(_2[_1])return _2[_1];var _3=_1+this.$dq;if(this[_3])_2[_1]=_3;return _3},isc.A.$543=function isc_Class__getPropertiesName(_1){var _2=isc.Class.$544;if(!_2)isc.Class.$544=_2={};if(_2[_1])return _2[_1];var _3=_1+this.$dr;if(this[_3])_2[_1]=_3;return _3},isc.A.createAutoChild=function isc_Class_createAutoChild(_1,_2,_3,_4){if(isc.startsWith(_1,this.$90j)){var _5=_1.substring(this.$90j.length);var _6="width";if(this.orientation==isc.Layout.VERTICAL)_6="height";var _7={autoDraw:false,$120w:false};_7[_6]=_5;return isc.LayoutSpacer.create(_7)}
var _8=this.getDynamicDefaults(_1);if(_8!=null&&_2!=null){_8=isc.addProperties({},_8,_2)}else{_8=_2||_8}
var _9=this.$d1(_1),_10=this[_9],_11=this.$543(_1),_12=this[_11],_13=this.getAutoChildClass(_1,_8,_3,_9,_11),_14=isc.ClassFactory.getClass(_13);if(_14==null){this.logWarn("Unable to create autoChild '"+_1+"' of type '"+_13+"' - no such class in runtime.");if(isc.isA.String(_13)&&_13.contains(".")){this.logWarn("Did you make the SmartGWT class reflectable? See http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/Reflection.html")}
return null}
_8=this.applyDuplicateAutoChildDefaults(_14,_9,_8);var _15=_14.createRaw();var _16=this.autoPassthroughs,_17,_18;if(_16){for(var _19 in _16){var _20=_16[_19];if(_1==_20&&this[_19]!==_18){_15[_19]=this[_19]}}}
this.applyBaseDefaults(_15,_1,_2);isc.addProperties(_15,this.autoChildDefaults,_10,_17,_8);if(_4)this[_1]=_15;if(_15.autoConfigure)_15.autoConfigure(this,_1);if(this.configureAutoChild)this.configureAutoChild(_15,_1);isc.addProperties(_15,this[_11]);if(_14.$100q){for(var i=0;i<_14.$100q.length;i++){_14.$100q[i].call(_15)}}
_15.init();_15=isc.SGWTFactory.extractFromConfigBlock(_15);if(_4)this[_1]=_15;if(!this.$542)this.$542={};var _22=_15.getID?_15.getID():null;if(_22!=null){if(!isc.isAn.Array(this.$542[_1])){if(this.$542[_1]!=null){isc.logWarn(this+".createAutoChild(): Creating auto child named:"+_1+" appears to be replacing autoChild with same name...")}
this.$542[_1]=[_22]}else{this.$542[_1].add(_22)}}
return _15},isc.A.applyDuplicateAutoChildDefaults=function isc_Class_applyDuplicateAutoChildDefaults(_1,_2,_3){var _4=_1.$769;if(_4&&_4.length>0){var _5=this[_2];if(_5!=null||this.autoChildDefaults!=null){for(var i=0;i<_4.length;i++){var _7=_4[i],_8;if(_5!=null&&_5[_7]!=null){if(_3==null)_3={};if(_3[_7]===_8){_3[_7]=_1.cloneDupPropertyValue(_7,_5[_7])}}else if(this.autoChildDefaults!=null&&this.autoChildDefaults[_7]!=null)
{if(_3==null)_3={};if(_3[_7]===_8){_3[_7]=_1.cloneDupPropertyValue(_7,this.autoChildDefaults[_7])}}}}}
return _3},isc.A.$d3=function isc_Class__completeCreationWithDefaults(_1,_2,_3){this.applyBaseDefaults(_2,_1,_3);var _4=this.$d1(_1),_5=this.$543(_1);var _6=_2.getClass();_3=this.applyDuplicateAutoChildDefaults(_6,_4,_3);_2.completeCreation(this.autoChildDefaults,this[_4],_3,this[_5])},isc.A.$d0=function isc_Class__getAutoChildParentName(_1){var _2=this.autoChildParentMap;if(_2)return _2[_1]},isc.A.getAutoChildParent=function isc_Class_getAutoChildParent(_1){var _2=this.$d0(_1);if(_2)return this[_2];return this},isc.A.setAutoChild=function isc_Class_setAutoChild(_1,_2){if(!this.shouldCreateChild(_1)){if(this[_1])this[_1].destroy();delete this[_1]}else{if(isc.isA.Canvas(_2)){var _3=_2;if(this[_1])this[_1].destroy();this[_1]=_3;this.$dz(_1,_3);return}
return this.addAutoChild(_1,_2)}},isc.A.hasStableID=function isc_Class_hasStableID(){return!this._autoAssignedID},isc.A.hasStableLocalID=function isc_Class_hasStableLocalID(){return this.$177g!=null||!this._autoAssignedID});isc.B._maxIndex=isc.C+60;isc.Class.toString=function(){return"[Class "+this.Class+"]"}
isc.Class.getPrototype().toString=function(){return"["+this.Class+" ID:"+this.ID+"]"}
isc.A=isc.Class;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.ns=isc;isc.A._stringMethodRegistry={};isc.B.push(isc.A.NO_OP=function isc_c_Class_NO_OP(){},isc.A.RET_TRUE=function isc_c_Class_RET_TRUE(){return true});isc.B._maxIndex=isc.C+2;isc.A=isc.ClassFactory;isc.A.observe=isc.Class.getPrototype().observe;isc.A.ignore=isc.Class.getPrototype().ignore;isc.eval=function(_1,_2){return isc.Class.evaluate(_1,null,false,_2)}
Function.prototype.Class="Function";isc.ClassFactory.defineClass("Func");isc.A=isc.Func;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$d5=new RegExp("function\\s+([\\w$]+)\\s*\\(");isc.B.push(isc.A.parseFunctionName=function isc_c_Func_parseFunctionName(_1){var _2=isc.Func.$d5.exec(_1.toString());if(_2)return _2[1];else return"anonymous"},isc.A.getName=function isc_c_Func_getName(_1,_2){if(_1==Function.prototype.apply)return"Function.apply";if(_1==Function.prototype.call)return"Function.call";if(!_1){var _3;if(!arguments.callee||arguments.callee.caller===_3)return"unknown";if(!arguments.callee.caller)return"none";_1=arguments.callee.caller}
if(_1.$dx==null){if(_1.$bd==null&&isc._allFuncs){var _4=isc._allFuncs.indexOf(_1);if(_4!=-1){for(var _5=isc._funcClasses[_4];_5==null;_4--){_5=isc._funcClasses[_4]}
_1.$bd=_5}else{var _6=this.parseFunctionName(_1);var _7;if(_6.startsWith("isc_c_")){_6=_6.substring(6);_7=true}else{_6=_6.substring(4)}
_5=_6.substring(0,_6.indexOf("_"));_13=_6.substring(_5.length+1);var _8=isc.ClassFactory.getClass(_5),_9=null;if(_8){_9=_7?_8[_13]:_8.getInstanceProperty(_13)}}}
var _10=_1.$bc,_7;if(_10==null&&_1.$bd!=null){var _11;var _12=isc.ClassFactory.getClass(_1.$bd);if(_12==null){_12=isc[_1.$bd]||window[_1.$bd]}else{_11=_12.getPrototype()}
if(_11!=null){for(var _13 in _11){if(_11[_13]===_1){_10=_13;break}}}
if(_10==null&&_12!=null){for(var _13 in _12){if(_12[_13]===_1){_10=_13;_7=true;break}}
if(_10==null&&!isc.isA.Class(_12)&&_12.prototype!=null){for(var _13 in _12.prototype){if(_12.prototype[_13]===_1){_10=_13;break}}}}}
if(_10!=null){_1.$dx=(_1.$be?(_1.$bf?"[o]":"[a]"):isc.$ad)+(_7?"[c]":isc.$ad)+(_1.$bd?_1.$bd+isc.dot:isc.$ad)+_10}else{if(_1.$c6)_1.$dx="callback";else{_1.$dx=isc.Func.parseFunctionName(_1)}}}
return _1.$dx},isc.A.getArgs=function isc_c_Func_getArgs(_1){var _2=isc.Func.getArgString(_1);if(_2=="")return[];return _2.split(",")},isc.A.getArgString=function isc_c_Func_getArgString(_1){if(_1.$123y!=null)return _1.$123y;var _2=_1.toString(),_3=_2.indexOf("(")+1,_4=_2.substring(_3,_2.indexOf(")",_3));_4=_4.replace(/\/\*.*?\*\/|\/\/.*$/gm,isc.space);_4=_4.replace(/\s+/g,isc.emptyString);_1.$123y=_4;return _4},isc.A.getBody=function isc_c_Func_getBody(_1){var _2=_1.toString();return _2.substring(_2.indexOf("{")+1,_2.lastIndexOf("}"))},isc.A.getShortBody=function isc_c_Func_getShortBody(_1){var _2=_1.toString();return _2.substring(_2.indexOf("{")+1,_2.lastIndexOf("}")).replace(/[\r\n\t]*/g,"")});isc.B._maxIndex=isc.C+6;if(!Function.prototype.apply){isc.A=Function.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.apply=function(targetObject,args){if(targetObject==null)targetObject=window;var tempFunctionName="__TEMPF_"+Function.prototype.$d6++;var returnValue;targetObject[tempFunctionName]=this;if(!args)args=[];if(args.length<=10){returnValue=targetObject[tempFunctionName](args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9])}else{var functionString='targetObject[tempFunctionName](';for(var i=0;i<args.length;i++){functionString+="args"+'['+i+']';if(i+1<args.length){functionString+=','}}
functionString+=');';isc.eval('returnValue ='+functionString)}
delete targetObject[tempFunctionName];return returnValue});isc.B._maxIndex=isc.C+1;Function.prototype.$d6=0}
isc.A=isc.Func;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$d7=[["//","\n"],["//","\\n"],[""]];isc.A.$d8=["\"","\'"];isc.A.$d9=["switch","while","if","return","for","var"];isc.A.$ea=["(",")","[","]","{","}",":","?","!","+","-","/","*","=",">","<","|","&",",","\\"];isc.A.$170h=["var ID=\"",,"\",canvas=isc.isA.FormItem(this)?this.containerWidget:this;","if(canvas&&canvas.getByLocalId){var obj=canvas.getByLocalId(ID);if(obj&&obj.ID)ID=obj.ID}","if (!window[ID]){","var message='Component ID \"",,"\", target of action \"",,"\" does not exist';isc.Log.logWarn(message);if(isc.designTime)isc.say(message);return}","window[ID].",,"(",,")"];isc.B.push(isc.A.expressionToFunction=function isc_c_Func_expressionToFunction(_1,_2,_3){var _4=this.$eb(_1,_2,_3);return _4},isc.A.$170i=function isc_c_Func__resolveAction(_1){if(isc.isA.StringMethod(_1))_1=_1.getValue();else if(_1.Action&&!_1.target)_1=_1.Action;return _1},isc.A.$170j=function isc_c_Func__actionToExpressionString(_1){var _2=this.$170h;_2[1]=_2[6]=_1.target;_2[11]=_1.name;if(_1.title)_2[8]=_1.title;else _2[8]="[No title specified]";var _3=_1.mapping||[];if(!isc.isAn.Array(_3))_2[12]=null;else _2[13]=_3.join();return _2.join(isc.$ad)},isc.A.$eb=function isc_c_Func__expressionToFunction(_1,_2,_3){if(_2==null){isc.Log.logInfo("makeFunctionExpression() called with empty expression");_2=""}
if(isc.isAn.Object(_2)){var _4=_1;if(isc.isA.String(_4))_4=_1.split(",");else if(isc.isAn.Array(_4)){_1=_4.join()}
if(!isc.isAn.Array(_4))_4=[];_2=isc.Func.$170i(_2);var _5;if(isc.isAn.Array(_2)){var _6=_2.length;var _7=[];for(var i=0;i<_6;++i){_2[i]=isc.Func.$170i(_2[i]);if(!_2[i])continue;_7.add(isc.Func.$170j(_2[i]))}
_5=_7.join(";\n")}else{_5=isc.Func.$170j(_2)}
var _9;try{_9=isc.$aq(_1,_5)}catch(e){this.logWarn("invalid code: "+_5+" generated from action: "+this.echo(_2));_9=function(){}}
_9.iscAction=_2;return _9}
var _10="swirfv";if(isc.isAn.Array(_1)){_1=_1.join()}
var _11=true;var i=0;var _12=this.$d7;var _13=this.$d8;var _14=this.$d9;var _15=this.$ea;var _16=false;var _17=isc.$ad,_18=isc.slash,_19="\n",_20="\\",_21="+",_22=isc.semi;var _23=_17;var _24=_17;while(i<_2.length){var _25=_2.charAt(i);if(_25==_18){for(var j=0;j<_12.length;j++){var _27=_12[j],_28=_27[0],_29=_27[1];if(_2.indexOf(_28,i)==i){var k=i+_28.length;while(k<_2.length){if(_2.substring(k,k+_29.length)==_29){k=k+_29.length;break}
k++}
i=k;_23=_17;_24=this.$ec(_2,i)}}}
if(_16){if(_24==_17){break}else{if(isc.isA.WhitespaceChar(_25)){i++;continue}else{_11=false;break}}}
for(var j=0;j<_13.length;j++){var _31=_13[j]
if(_25==_31){var k=i+1;while(k<_2.length){if(_2.charAt(k)==_20)k=k+2;if(_2.charAt(k)==_31){k++;break}
k++}
i=k;_23=_31.charAt(0);_24=this.$ec(_2,i)}}
if(_25==_19){var _32=false;for(var j=0;j<_15.length;j++){if(_23==_15[j]){_32=true;break}}
if(_32||_24==_21){_23=_17}else{_11=false;break}}
if(_25==_22){_16=true}
if(_10.indexOf(_25)!=-1){for(var j=0;j<_14.length;j++){var _33=_14[j],_34=_33.length;if((i+_34<=_2.length)&&(_2.substring(i,i+_34)==_33)&&(i+_34==_2.length||!isc.isA.AlphaNumericChar(_2.charAt(i+_34)))&&(i==0||!isc.isA.AlphaNumericChar(_2.charAt(i-1)))){_11=false;break}}}
if(!isc.isA.WhitespaceChar(_25))_23=_25;i++;_24=this.$ec(_2,i)}
if(_11){_2="return "+_2}
if(_3)_2="//"+_3+"\r\n"+_2;var _9=isc.$aq(_1,_2);return _9},isc.A.$ec=function isc_c_Func__getNextNonWhitespaceChar(_1,_2){var _3=isc.$ad;for(var j=(_2+1);j<_1.length;j++){if(!isc.isA.WhitespaceChar(_1.charAt(j))){_3=_1.charAt(j);break}}
if(j>=_1.length)_3=isc.$ad;return _3},isc.A.convertToMethod=function isc_c_Func_convertToMethod(_1,_2){if(!isc.isAn.Object(_1)||!isc.isA.nonemptyString(_2)){isc.Log.logWarn("convertToMethod() called with bad parameters.  Cannot convert  property '"+_2+"' on object "+_1+" to a function.  Returning false.");return false}
if(_1[_2]&&isc.isA.Function(_1[_2]))return true;var _3=(isc.isAn.Instance(_1)?_1.getClass()._stringMethodRegistry:_1._stringMethodRegistry);if(_3==null)return false;var _4;var _5=_3[_2];if(_5===_4)return false;isc.Func.replaceWithMethod(_1,_2,_5);return true},isc.A.replaceWithMethod=function isc_c_Func_replaceWithMethod(_1,_2,_3,_4){if(_1[_2]==null){_1[_2]=isc.is.emptyString(_3)?isc.Class.NO_OP:isc.$aq(_3,isc.$ad)}
var _5=_1[_2];if(isc.isA.Function(_5))return;var _6;if(isc.isA.String(_5)||isc.isA.Object(_5)){_6=isc.Func.expressionToFunction(_3,_5,_4)}else{isc.Log.logWarn("Property '"+_2+"' on object "+_1+" is of type "+typeof _5+".  This can not be converted to a method.","Function");return}
var _7={};_7[_2]=_6;isc.addMethods(_1,_7)});isc.B._maxIndex=isc.C+7;Array.prototype.Class="Array";Array.newInstance=function(){var _1=[];isc.addPropertyList(_1,arguments);return _1}
Array.create=Array.newInstance;Array.duplicate=function(_1){return isc.$ac.concat(_1)},Array.createFromItemArgs=function(){return Array.prototype.slice.call(arguments)},Array.LOADING="loading";Array.isLoading=function(_1){return _1!=null&&!isc.isAn.XMLNode(_1)&&(_1===Array.LOADING)}
Array.CASE_INSENSITIVE=function(_1,_2,_3){return(_1==_2||(isc.isA.String(_1)&&isc.isA.String(_2)&&_1.toLowerCase()==_2.toLowerCase()))};Array.DATE_VALUES=function(_1,_2,_3){return(_1==_2||(isc.isA.Date(_1)&&isc.isA.Date(_2)&&isc.DateUtil.compareLogicalDates(_1,_2)==0))};Array.DATETIME_VALUES=function(_1,_2,_3){return(_1==_2||(isc.isA.Date(_1)&&isc.isA.Date(_2)&&isc.DateUtil.compareDates(_1,_2)==0))};if(!Array.prototype.localeStringFormatter)
Array.prototype.localeStringFormatter="toString";Array.excludeFromSortProperty="_excludeFromSort";isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.newInstance=Array.newInstance;isc.A.create=Array.newInstance;isc.A.nativeIndexOf=Array.prototype.indexOf;isc.A.nativeLastIndexOf=Array.prototype.lastIndexOf;isc.A.$1187=true;isc.A.$1876=Array.prototype.map;isc.A.slice=(Array.prototype.slice?Array.prototype.slice:function(_1,_2){if(_2==null)_2=this.length;for(var _3=[],l=this.length;_1<_2&&_1<l;_1++)
_3[_3.length]=this[_1];return _3});isc.A.$185s=65535;isc.A.observe=isc.Class.getPrototype().observe;isc.A.ignore=isc.Class.getPrototype().ignore;isc.B.push(isc.A.iscToLocaleString=function isc_Arra_iscToLocaleString(){return this[this.localeStringFormatter]()},isc.A.getPrototype=function isc_Arra_getPrototype(){return Array.prototype},isc.A.get=function isc_Arra_get(_1){return this[_1]},isc.A.getLength=function isc_Arra_getLength(){return this.length},isc.A.isEmpty=function isc_Arra_isEmpty(){return this.getLength()==0},isc.A.first=function isc_Arra_first(){return this[0]},isc.A.last=function isc_Arra_last(){return this[this.length-1]},isc.A.indexOf=function isc_Arra_indexOf(_1,_2,_3,_4){var _5=Object(this),_6=_5.length>>>0;if(_2==null)_2=0;else if(_2<0)_2=Math.max(0,_6+_2);if(_3==null)_3=_6-1;var _7=(_4!=null);for(var i=_2;i<=_3;i++){if(_7?_4(_5[i],_1):_5[i]==_1){return i}}
return-1},isc.A.fastIndexOf=function isc_Arra_fastIndexOf(_1,_2,_3){if(_2==null)_2=0;if(_3==null)_3=this.length-1;for(var i=_2;i<=_3;i++){if(this[i]==_1){return i}}
return-1},isc.A.lastIndexOf=function isc_Arra_lastIndexOf(_1,_2,_3,_4){var _5=Object(this),_6=_5.length>>>0;if(_2==null)_2=_6-1;else if(_2<0){_2=_6+_2;if(_2<0)return-1}
if(_3==null)_3=0;var _7=(_4!=null);for(var i=_2;i>=_3;i--){if(_7?_4(_5[i],_1):_5[i]==_1){return i}}
return-1},isc.A.contains=function isc_Arra_contains(_1,_2,_3){return(this.indexOf(_1,_2,null,_3)!=-1)},isc.A.$137h=function isc_Arra__containsDuplicates(_1){for(var i=0,_3=this.length;i<_3-1;++i){var _4=this[i];if(this.contains(_4,i+1,_1))return true}
return false},isc.A.containsSubstring=function isc_Arra_containsSubstring(_1,_2,_3,_4,_5){if(_1==null)return true;if(_5==null)_5="substring";var _6=this.indexOf(_1,_2,_3,function(_10,_11){var _7=_11==null?null:(isc.isA.String(_11)?_11:_11.toString()),_8=_10==null?null:(isc.isA.String(_10)?_10:_10.toString());if(_4){if(_7!=null)_7=_7.toLowerCase();if(_8!=null)_8=_8.toLowerCase()}
var r=false;if(_8!=null&&_7!=null){if(_8==_7){r=true}else if(_5=="substring"&&_8&&_8.contains&&_8.contains(_7))
{r=true}else if(_5=="startsWith"&&_8&&_8.startsWith&&_8.startsWith(_7))
{r=true}}
return r});return _6>=0},isc.A.containsAll=function isc_Arra_containsAll(_1){if(_1==null)return true;var _2=_1.getLength();for(var i=0;i<_2;i++){if(!this.contains(_1.get(i)))return false}
return true},isc.A.containsAllSubstring=function isc_Arra_containsAllSubstring(_1,_2){if(_1==null)return true;var _3=_1.getLength();for(var i=0;i<_3;i++){if(!this.containsSubstring(_1.get(i),null,null,_2))return false}
return true},isc.A.intersect=function isc_Arra_intersect(){var _1=[];for(var i=0;i<this.length;i++){var _3=this.get(i),_4=true;if(_3==null)continue;for(var a=0;a<arguments.length;a++){if(!arguments[a].contains(_3)){_4=false;break}}
if(_4)_1.add(_3)}
return _1},isc.A.intersectDates=function isc_Arra_intersectDates(){var _1=[];for(var i=0;i<this.length;i++){var _3=this.get(i),_4=true;if(_3==null)continue;var _5=_3.logicalDate;for(var a=0;a<arguments.length;a++){var _7=arguments[a];var _8=false;if(!_7)continue;for(var b=0;b<_7.length;b++){var _10=_7[b];if(!_10)continue;if(_5){if(isc.DateUtil.compareLogicalDates(_3,_10)==0){_8=true;break}}else{if(isc.DateUtil.compareDates(_3,_10)==0){_8=true;break}}}
if(!_8){_4=false;break}}
if(_4)_1.add(_3)}
return _1},isc.A.intersectSubstring=function isc_Arra_intersectSubstring(_1,_2,_3){if(!isc.isAn.Array(_1))_1=[_1];if(!isc.isAn.Array(_1[0]))_1=[_1];var _4=[];if(_2==null)_2=this.$1187;;for(var i=0;i<this.length;i++){var _6=this.get(i),_7=true;if(!_6)continue;for(var a=0;a<_1.length;a++){var _9=_1[a];if(!_9)continue;if(!_9.containsSubstring(_6,null,null,_2,_3)){_7=false;break}}
if(_7)_4.add(_6)}
return _4},isc.A.equals=function isc_Arra_equals(_1){if(_1==null||!isc.isA.List(_1))return false;var _2=_1.getLength();if(_2!=this.getLength())return false;for(var i=0;i<_2;i++){if(_1.get(i)!=this.get(i))return false}
return true},isc.A.getItems=function isc_Arra_getItems(_1){var _2=_1.getLength(),_3=new Array(_2);for(var i=0;i<_2;++i){_3[i]=this.get(_1.get(i))}
return _3},isc.A.getRange=function isc_Arra_getRange(_1,_2){if(_2==null)_2=this.length-1;return this.slice(_1,_2)},isc.A.duplicate=function isc_Arra_duplicate(){return isc.$ac.concat(this)},isc.A.set=function isc_Arra_set(_1,_2){var _3=this[_1];this[_1]=_2;this.dataChanged();return _3},isc.A.addAt=function isc_Arra_addAt(_1,_2){if(_2==null)_2=0;this.splice(_2,0,_1);this.dataChanged();return _1},isc.A.removeAt=function isc_Arra_removeAt(_1){var _2=this.length;if(_1>=_2||_1<0)return null;var _3=this.splice(_1,1);this.dataChanged();return _3[0]},isc.A.add=function isc_Arra_add(_1,_2,_3){var _4;if(_2!==_4){return this.addAt(_1,_2)}
var _5;if(this.sortUnique){_5=this.indexOf(_1);if(_5==-1)_5=this.length}else{_5=this.length}
this[_5]=_1;if(!this.$175f){if(this.sortProps&&this.sortProps.length>0&&(_1==null||!_1[Array.excludeFromSortProperty]))
{this.sortByProperties(this.sortProps,this.sortDirections,this.sortNormalizers,_4,_4,false,_3)}
this.dataChanged()}
return _1},isc.A.addList=function isc_Arra_addList(_1,_2,_3){if(_1==null)return null;this.$ed();if(_2==null)_2=0;if(_3==null)_3=_1.getLength();var _4=this.$175f;this.$175f=true;var _5=false;for(var _6=_2;_6<_3;_6++){var _7=_1.get(_6)
this.add(_7);if(_7!=null&&!_7[Array.excludeFromSortProperty])_5=true}
if(!_4)delete this.$175f;if(this.sortProps&&this.sortProps.length>0&&_5){var _8;this.sortByProperties(this.sortProps,this.sortDirections,this.sortNormalizers,_8,_8,false)}
this.$ee();return _1},isc.A.setLength=function isc_Arra_setLength(_1){this.length=_1},isc.A.addListAt=function isc_Arra_addListAt(_1,_2){if(_1==null)return null;var _3=this.splice(_2,this.length-_2);if(isc.isAn.Array(_1)){_1.forEach(function(_6,_7){this[_2+_7]=_6},this)}else{for(var i=0;i<_1.getLength();i++)this[_2+i]=_1.get(i)}
var _5=_2+_1.getLength();_3.forEach(function(_6,_7){this[_5+_7]=_6},this);this.dataChanged();return _1},isc.A.remove=function isc_Arra_remove(_1){var _2=this.indexOf(_1);if(_2==-1)return false;this.removeAt(_2);return true},isc.A.removeList=function isc_Arra_removeList(_1){if(_1==null)return null;for(var _2=[],i=0,l=this.length;i<l;i++){if(!_1.contains(this[i]))_2.add(this[i])}
this.setArray(_2);return _1},isc.A.removeEvery=function isc_Arra_removeEvery(_1){this.removeList([_1]);return this},isc.A.$ed=function isc_Arra__startChangingData(){var _1;if(this.$ef===_1)this.$ef=0;this.$ef++},isc.A.$ee=function isc_Arra__doneChangingData(){if(--this.$ef==0)this.dataChanged()},isc.A.dataChanged=function isc_Arra_dataChanged(){if(this.onDataChanged)this.onDataChanged()},isc.A.$52z=function isc_Arra__isChangingData(){return(this.$ef!=null&&this.$ef>0)},isc.A.setArray=function isc_Arra_setArray(_1){this.setLength(0);if(isc.isAn.Array(_1)){_1.forEach(function(_3,_4){this[_4]=_3},this)}else{for(var i=0;i<_1.getLength();i++)this[i]=_1.get(i)}
this.dataChanged()},isc.A.addAsList=function isc_Arra_addAsList(_1){if(!isc.isAn.Array(_1))_1=[_1];return this.addList(_1)},isc.A.removeRange=function isc_Arra_removeRange(_1,_2){var _3;if(_1===_3)return this;if(!isc.isA.Number(_1))_1=0;if(!isc.isA.Number(_2))_2=this.length;return this.splice(_1,_2-_1)},isc.A.removeWhere=function isc_Arra_removeWhere(_1,_2){for(var i=0,_4=[];i<this.length;i++){if(!this[i]||this[i][_1]!=_2){_4.add(this[i])}}
this.setArray(_4)},isc.A.removeUnless=function isc_Arra_removeUnless(_1,_2){for(var i=0,_4=[];i<this.length;i++){if(this[i]&&this[i][_1]==_2){_4.add(this[i])}}
this.setArray(_4)},isc.A.removeEmpty=function isc_Arra_removeEmpty(_1,_2){for(var i=0,_4=[];i<this.length;i++){if(this[i]!=null){_4.add(this[i])}}
this.setArray(_4)},isc.A.getProperty=function isc_Arra_getProperty(_1){var _2=new Array(this.length);for(var i=this.length;i--;){var _4=this[i];_2[i]=(_4?_4[_1]:null)}
return _2},isc.A.getValueMap=function isc_Arra_getValueMap(_1,_2){var _3={},_4=this.getLength();if(isc.isA.ResultSet(this)&&!this.lengthIsKnown()&&this.initialData){_4=this.initialData.getLength()}
for(var i=0,l=_4;i<l;i++){var _7=this.get(i);if(!isc.isAn.Object(_7))continue;if(_7&&_7[_1]!=null){_3[_7[_1]]=_7[_2]}}
return _3},isc.A.map=function isc_Arra_map(_1,_2,_3,_4,_5,_6){var _7=Object(this),_8=isc.isA.Function(_1);if(!_8){if(isc.isA.String(_1)){if(isc.$1877==null){isc.$1877={}}
if(!isc.$1877[_1]){isc.logWarn("Array.map() passed a string rather than a function:"+_1+". This usage is deprecated in favor of Array.callMethod().");isc.$1877[_1]=true}}
return this.callMethod(_1,_2,_3,_4,_5,_6)}
var _9,_10=(_3===_9&&_4===_9&&_5===_9&&_6===_9);if(!_10){if(!isc.$1878){isc.logWarn("Array.map() passed "+arguments.length+"arguments. This usage is deprecated.");isc.$1878=true}
return this.mapArgs(_1,_2,_3,_4,_5,_6)}
if(this.$1876)return this.$1876(_1,_2);var _11=_7.length>>>0;var _12=new Array(_11);for(var i=0;i<_11;++i){var _14;_14=_7[i];_12[i]=_1.call(_2,_14,i,_7)}
return _12},isc.A.mapArgs=function isc_Arra_mapArgs(_1,_2,_3,_4,_5,_6){var _7=[],_8=this.getLength();for(var i=0;i<_8;i++){_7[i]=_1(this[i],_2,_3,_4,_5,_6)}
return _7},isc.A.callMethod=function isc_Arra_callMethod(_1,_2,_3,_4,_5,_6){var _7=[],_8=this.getLength();for(var i=0;i<_8;i++){var _10=this[i];_7[i]=(_10&&_10[_1]!=null)?_10[_1](_2,_3,_4,_5,_6):null}
return _7},isc.A.setProperty=function isc_Arra_setProperty(_1,_2){for(var i=0,l=this.length;i<l;i++)
if(this[i])this[i][_1]=_2},isc.A.clearProperty=function isc_Arra_clearProperty(_1){var _2=false,_3;for(var i=0,l=this.length;i<l;i++){_2=_2||this[i]!==_3;if(this[i])delete this[i][_1]}
return _2},isc.A.$120z=function isc_Arra__extractProperty(_1){var _2=false,_3=new Array(this.length),_4;for(var i=this.length;i--;){var _6=this[i];_2=_2||(_6!==_4);if(_6){_3[i]=_6[_1];delete _6[_1]}else{_3[i]=null}}
return(_2?_3:null)},isc.A.getProperties=function isc_Arra_getProperties(_1){return isc.applyMask(this,_1)},isc.A.getUniqueItems=function isc_Arra_getUniqueItems(){for(var _1=[],i=0,l=this.length;i<l;i++){if(!_1.contains(this[i]))_1[_1.length]=this[i]}
return _1},isc.A.findIndex=function isc_Arra_findIndex(_1,_2,_3){if(isc.isA.List(this)||!isc.isA.Function(_1)){return this.findNextIndex(0,_1,_2,null,_3)}
var _4=Object(this);return Array.prototype.findNextIndex.call(_4,0,_1,_2,null,_3)},isc.A.findNextIndex=function isc_Arra_findNextIndex(_1,_2,_3,_4,_5){var _6=Object(this),_7=_6.length>>>0;if(_1==null)_1=0;else if(_1>=_7)return-1;if(_4==null)_4=_7-1;if(_2==null)return-1;var _8=_4>=_1;if(isc.isA.String(_2)){if(_5){for(var i=_1;(_8?i<=_4:i>=_4);(_8?i++:i--)){if(this[i]&&_5(this[i][_2],_3,_2))return i}}else{for(var i=_1;(_8?i<=_4:i>=_4);(_8?i++:i--)){if(this[i]&&this[i][_2]==_3)return i}}
return-1}else if(isc.isA.Function(_2)){var _10=_2,_11=_3;for(var i=_1;(_8?i<=_4:i>=_4);(_8?i++:i--)){_3=_6[i];if(_10.call(_11,_3,i,_6))return i}
return-1}else{return this.findNextMatch(_2,_1,_4,_5)}},isc.A.findAllIndices=function isc_Arra_findAllIndices(_1,_2,_3){var _4=[];var _5=0;var _6;do{_6=this.findNextIndex(_5,_1,_2,null,_3);if(_6!=-1){_4.add(_6);_5=_6+1}}while(_6!=-1);return _4},isc.A.findNextMatch=function isc_Arra_findNextMatch(_1,_2,_3,_4){if(_1._constructor=="AdvancedCriteria"){if(isc.DataSource==null){isc.warn("DataBinding module not loaded, AdvancedCriteria not supported for find()/findAll()");return-1}
var _5=this.dataSource||isc.DataSource;var _6=_5.applyFilter(this.getRange(_2,_3+1),_1);if(_6.size()!=0)return this.findIndex(_6.get(0));else return-1}
var _7=isc.getKeys(_1),_8=_3>=_2;if(_4){var _9=isc.isA.Function(_4),_10=!_9&&isc.isAn.Object(_4),_11=!_9&&isc.isAn.Array(_4);if(_11){return-1}
var _12={};if(_10){for(var i=0;i<_7.length;i++){_12[_7[i]]=isc.isA.Function(_4[_7[i]]);if(!_12[_7[i]]){this.logWarn("Invalid comparator for "+_7[i]+isc.echo(_4[_7[i]]))}}}
for(var i=_2;(_8?i<=_3:i>=_3);(_8?i++:i--)){var _14=this.get(i);if(!_14)continue;var _15=true;for(var j=0;j<_7.length;j++){var _17=_7[j];if(_9){if(!_4(_14[_17],_1[_17],_17)){_15=false;break}}else if(_10){if(_12[_17]){if(!_4[_17](_14[_17],_1[_17],_17)){_15=false;break}}}}
if(_15)return i}}else{for(var i=_2;(_8?i<=_3:i>=_3);(_8?i++:i--)){var _14=this.get(i);if(!_14)continue;var _15=true;for(var j=0;j<_7.length;j++){var _17=_7[j];if(_14[_17]!=_1[_17]){_15=false;break}}
if(_15)return i}}
return-1},isc.A.find=function isc_Arra_find(_1,_2,_3){if(isc.isA.List(this)||!isc.isA.Function(_1)){var _4=this.findIndex(_1,_2,_3);return(_4!=-1)?this.get(_4):null}
var _5=Object(this),_4=Array.prototype.findIndex.call(_5,_1,_2,_3);if(_4==-1){var _6;return _6}
return("get"in _5?_5.get(_4):_5[_4])},isc.A.findByKeys=function isc_Arra_findByKeys(_1,_2,_3,_4,_5){if(_1==null){isc.Log.logWarn("findByKeys: passed null record");return-1}
var _6={},_7=_2.getPrimaryKeyFields(),_8=false,_9=_5?null:{};for(var _10 in _7){_8=true;var r=_1[_10];if(r==null){isc.Log.logWarn("findByKeys: passed record does not have a value for key field '"+_10+"'");return-1}
_6[_10]=r;if(_9&&isc.isAn.Object(r)){_9[_10]=isc.DynamicForm.compareValues}}
if(!_8){isc.Log.logWarn("findByKeys: dataSource '"+_2.ID+"' does not have primary keys declared, can't find record");return-1}
if(isc.getKeys(_9).length>0)_5=_9;return this.findNextIndex(_3,_6,null,_4,_5)},isc.A.containsProperty=function isc_Arra_containsProperty(_1,_2){var _3=this.findIndex(_1,_2);return(_3!=-1)},isc.A.findAll=function isc_Arra_findAll(_1,_2,_3){if(_1==null)return null;if(isc.isA.String(_1)){var _4=null,l=this.length;var _6=isc.isAn.Array(_2),_7=(_3!=null);for(var i=0;i<l;i++){var _9=this[i];if(_9&&(_6?_2.contains(_9[_1],null,_3):(_7?_3(_9[_1],_2):_9[_1]==_2)))
{if(_4==null)_4=[];_4.add(_9)}}
return _4}else if(isc.isA.Function(_1)){var _4=null,l=this.length,_10=_1,_11=_2;for(var i=0;i<l;i++){var _9=this[i];if(_10(_9,_11)){if(_4==null)_4=[];_4.add(_9)}}
return _4}else{return this.findAllMatches(_1,_3)}},isc.A.findAllMatches=function isc_Arra_findAllMatches(_1,_2){var l=this.getLength(),_4=isc.getKeys(_1),_5=null,_6=(_2!=null),_7=(_6&&!isc.isAn.Object(_2)&&_2);if(_1._constructor=="AdvancedCriteria"){if(isc.DataSource==null){isc.warn("DataBinding module not loaded, AdvancedCriteria not supported for find()/findAll()");return-1}
var _8=this.dataSource||isc.DataSource;return _8.applyFilter(this.getRange(0,this.getLength()+1),_1)}
for(var i=0;i<l;i++){var _10=this.get(i);if(!_10)continue;var _11=true;for(var j=0;j<_4.length;j++){var _13=_4[j],_14=(_6&&(_7||_2[_13])),_15=_10[_13],_16=_1[_13];if(_14?!_14(_15,_16):(_15!=_16))
{_11=false;break}}
if(_11){if(_5==null)_5=[];_5.add(_10)}}
return _5},isc.A.slide=function isc_Arra_slide(_1,_2){this.slideRange(_1,_1+1,_2)},isc.A.slideRange=function isc_Arra_slideRange(_1,_2,_3){if(_1==_3)return;var _4=this.splice(_1,_2-_1);this.addListAt(_4,_3)},isc.A.slideList=function isc_Arra_slideList(_1,_2){var _3=[],i;if(_2<0)_2=0;for(i=0;i<_2;i++)
if(!_1.contains(this[i]))
_3.add(this[i]);for(i=0;i<_1.length;i++)
_3.add(_1[i]);for(i=_2;i<this.length;i++)
if(!_1.contains(this[i]))
_3.add(this[i]);this.setArray(_3)},isc.A.makeIndex=function isc_Arra_makeIndex(_1,_2,_3){var _4={};var _5=(_2==-1);_2=(_2!=null&&_2!=0);for(var i=0;i<this.length;i++){var _7=this[i],_8=_7[_1];if(_8==null){if(!_3)continue;_8=i}
if(_5){_4[_8]=_7;continue}
var _9=_4[_8];if(_9==null){if(_2){_4[_8]=[_7]}else{_4[_8]=_7}}else{if(_2){_4[_8].add(_7)}else{if(isc.isAn.Array(_9)){_4[_8].add(_7)}else{_4[_8]=[_9,_7]}}}}
return _4},isc.A.arraysToObjects=function isc_Arra_arraysToObjects(_1){var _2=_1.length;var _3=new Array(this.length);for(var i=this.length;i--;){var _5=this[i],_6=_3[i]={};for(var p=_2;p--;){var _8=_1[p];_6[_8]=_5[p]}}
return _3},isc.A.objectsToArrays=function isc_Arra_objectsToArrays(_1){var _2=_1.length;var _3=new Array(this.length);for(var i=this.length;i--;){var _5=this[i],_6=_3[i]=[];for(var p=_2;p--;){var _8=_1[p];_6[p]=_5[_8]}}
return _3},isc.A.spliceArray=function isc_Arra_spliceArray(_1,_2,_3){var _4;if(_1===_4)return this.splice();if(_2===_4)return this.splice(_1);if(_3===_4)return this.splice(_1,_2);if(!isc.isAn.Array(_3)){isc.Log.logWarn("spliceArray() method passed a non-array third parameter. Ignoring...","Array");return this.splice(_1,_2)}
if(_3.length+2<=this.$185s){return this.splice.apply(this,[_1,_2].concat(_3))}
var _5=this.splice(_1,this.length-_1);_3.forEach(function(_8,_9){this[_1+_9]=_8},this);var _6=[];if(_2<0)_2=0;var _7=_1+_3.length-_2;_5.forEach(function(_8,_9){if(_9<_2)_6[_9]=_8;else this[_7+_9]=_8},this);return _6},isc.A.peek=function isc_Arra_peek(){var _1=this.pop();this.push(_1);return _1},isc.A.getCachedRow=function isc_Arra_getCachedRow(_1){return this[_1]},isc.A.shuffle=function isc_Arra_shuffle(){var n=this.length;while(n>0){var i=Math.floor(Math.random()*n);n--;var _3=this[n];this[n]=this[i];this[i]=_3}},isc.A.removeItem=function isc_Arra_removeItem(_1){return this.removeAt(_1)},isc.A.getItem=function isc_Arra_getItem(_1){return this.get(_1)},isc.A.setItem=function isc_Arra_setItem(_1){return this.set(_1)},isc.A.clearAll=function isc_Arra_clearAll(_1){return this.removeList(this)},isc.A.size=function isc_Arra_size(){return this.getLength()},isc.A.subList=function isc_Arra_subList(_1,_2){return this.getRange(_1,_2)},isc.A.addAll=function isc_Arra_addAll(_1){return this.addList(_1)},isc.A.removeAll=function isc_Arra_removeAll(_1){var _2=this.getLength();this.removeList(_1);return this.getLength()!=_2},isc.A.clear=function isc_Arra_clear(){this.setLength(0)},isc.A.toArray=function isc_Arra_toArray(){return this.duplicate()});isc.B._maxIndex=isc.C+81;if(!isc.Browser.isIE||isc.Browser.isIE8Strict){Array.prototype.duplicate=Array.prototype.slice}
if(isc.Browser.isIE){[].fastIndexOf();[].fastIndexOf()}
if(Array.prototype.nativeIndexOf!=null){Array.prototype.indexOf=function(_1,_2,_3,_4){var _5=Object(this),_6=_5.length>>>0;if(_2==null)_2=0;else if(_2<0)_2=Math.max(0,_6+_2);if(_3==null)_3=_6-1;var i;if(_4!=null){for(i=_2;i<=_3;++i){if(_4(_5[i],_1))return i}}else{if(isc.isAn.Instance(_1)){i=Array.prototype.nativeIndexOf.call(_5,_1,_2);if(i>_3)i=-1;return i}
for(i=_2;i<=_3;++i){if(_5[i]==_1)return i}}
return-1}}else{Array.prototype.nativeIndexOf=Array.prototype.indexOf}
if(isc.Browser.isFirefox||isc.Browser.isSafari){Array.prototype.fastIndexOf=Array.prototype.nativeIndexOf}
if(Array.prototype.filter==null){isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.filter=function isc_Arra_filter(_1,_2){var _3=[],_4=this.length;for(var i=0;i<_4;i++){if(i in this&&_1.call(_2,this[i])){_3.add(this[i])}}
return _3});isc.B._maxIndex=isc.C+1}
if(Array.prototype.forEach==null){isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.forEach=function isc_Arra_forEach(_1,_2){var _3=this.length;for(var i=0;i<_3;i++){if(i in this){_1.call(_2,this[i],i,this)}}});isc.B._maxIndex=isc.C+1}
if(Array.prototype.fill==null){isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.fill=function isc_Arra_fill(_1,_2,_3){for(var i=_2;i<_3;i++){this[i]=_1}});isc.B._maxIndex=isc.C+1}
isc.Array={$149f:function(_1,_2,_3,_4){if(_1.length<2){return}
var m=_3-_2+1;if(m>1){_4=(m+(_4%m))%m;var _6=isc.Math.$108y(_4,m),s=(m/_6);for(var p=_6;p--;){var _9=_2+_4,k=_2+p,_11=_1[k];for(var q=s-1;q--;){var l=k-_4;if(k<_9){l+=m}
_1[k]=_1[l];k=l}
_1[k]=_11}}},$149g:function(_1,_2,_3,_4){if(_2<_3){isc.Array.$149f(_1,_2,_3,-_4)}else{isc.Array.$149f(_1,_3+1,_2+_4-1,_4)}},$96c:function(_1,_2,_3,_4){if(!_3){_3=isc.Array.$96d}
var _5=0,_6=_1.length,_7=_6-1;var i=0,_9;while(_5<=_7){i=Math.floor((_5+_7)/2);_9=_3(_1[i],_2);if(_9<0){_5=i+1}else if(_9>0){_7=i-1}else{if(_4){var j=i;do{if(_1[j]===_2){return j}
++j}while(j<_6&&_3(_1[j],_2)==0)}
while(i>0&&_3(_1[i-1],_2)==0){if(_4&&_1[i-1]===_2){return i-1}
--i}
if(_4){return-i-1}else{return i}}}
var _11;if(_9!==_11&&_9<0){return-(i+1)-1}else{return-i-1}},$96d:function(_1,_2){if(_1<_2){return-1}else if(_1>_2){return 1}else{return 0}}};isc.ClassFactory.defineClass("BitSet");isc.A=isc.BitSet.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.addPropertiesOnCreate=false;isc.B.push(isc.A.init=function isc_BitSet_init(){this.$157o=[];return this.Super("init",arguments)},isc.A.$157p=function isc_BitSet__getRangesIndex(_1){var k=isc.Array.$96c(this.$157o,_1);return(k<0?-(2+k):k)},isc.A.get=function isc_BitSet_get(_1){return(this.$157p(_1)%2==0)},isc.A.nextIndex=function isc_BitSet_nextIndex(_1){var _2=this.$157o;return(_1+1<_2.length?_2[_1+1]:-1)},isc.A.all=function isc_BitSet_all(_1,_2,_3){var i=this.$157p(_2),j=this.$157p(_3-1);return(i==j&&(_1==(i%2==0)))},isc.A.none=function isc_BitSet_none(_1,_2,_3){var i=this.$157p(_2),j=this.$157p(_3-1);return(i==j&&(_1!=(i%2==0)))},isc.A.firstIndexOf=function isc_BitSet_firstIndexOf(_1,_2,_3){if(!(_2<_3)){return-1}
var _4=this.$157o,j=this.$157p(_2);if(_1==(j%2==0)){return _2}else if(j+1<_4.length&&_4[j+1]<_3){return _4[j+1]}else{return-1}},isc.A.lastIndexOf=function isc_BitSet_lastIndexOf(_1,_2,_3){if(!(_2<_3)){return-1}
var _4=this.$157o,j=this.$157p(_3-1);if(_1==(j%2==0)){return _3-1}else if(0<=j&&_2<=_4[j]-1){return _4[j]-1}else{return-1}},isc.A.set=function isc_BitSet_set(_1,_2){var k=this.$157p(_1),_4=(_2!=(k%2==0));if(_4){this.$157q(_1,k,_1+1,k,_2)}
return _4},isc.A.setRange=function isc_BitSet_setRange(_1,_2,_3){if(!(0<=_1&&_1<_2)){return}
this.$157q(_1,this.$157p(_1),_2,this.$157p(_2-1),_3)},isc.A.$157q=function isc_BitSet__setRange(_1,_2,_3,_4,_5){var _6=this.$157o;var _7=(_5!=(_2%2==0)),_8=(_5!=(_4%2==0)),_9=(_7&&0<=_2&&_1==_6[_2]),_10=(_8&&_4+1<_6.length&&_3==_6[_4+1]),_11=(!_9&&_7),_12=(!_10&&_8),_13=_2+(_9?0:1),_14=(_4-_2+(_9?1:0)+(_10?1:0));if(_11&&_12){_6.splice(_13,_14,_1,_3)}else if(_11){_6.splice(_13,_14,_1)}else if(_12){_6.splice(_13,_14,_3)}else{_6.splice(_13,_14)}});isc.B._maxIndex=isc.C+11;isc.defineClass("NumberUtil");isc.A=isc.NumberUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$eh=".";isc.A.decimalSymbol=".";isc.A.groupingSymbol=",";isc.A.negativeSymbol="-";isc.A.currencySymbol="$";isc.A.negativeFormat=1;isc.A.groupingFormat=1;isc.A._1zero="0";isc.A._2zero="00";isc.A._3zero="000";isc.A._4zero="0000";isc.A.useAccurateRounding=false;isc.B.push(isc.A.setStandardFormatter=function isc_c_NumberUtil_setStandardFormatter(_1){if(isc.isA.Function(isc.NumberUtil[_1]))
isc.NumberUtil.formatter=_1},isc.A.setStandardLocaleStringFormatter=function isc_c_NumberUtil_setStandardLocaleStringFormatter(_1){if(isc.isA.Function(isc.NumberUtil[_1]))
isc.NumberUtil.localeStringFormatter=_1},isc.A.$eg=function isc_c_NumberUtil__getZeroString(_1){if(_1<=0)return;var _2=isc.NumberUtil,_3;while(_1>4){if(_3==null)_3=_2._4zero;else _3+=_2._4zero;_1-=4}
var _4;switch(_1){case 4:_4=_2._4zero;break;case 3:_4=_2._3zero;break;case 2:_4=_2._2zero;break;case 1:_4=_2._1zero;break}
if(_3==null)return _4;return _3+_4},isc.A.$109c=function isc_c_NumberUtil__expandExponent(_1){return _1.replace(/^([+-])?(\d+).?(\d*)[eE]([-+]?\d+)$/,function(_9,_10,_11,_12,_13){var _2=+_13<0,_3=_11.length+(+_13),_4=(_2?_11:_12).length;_13=Math.abs(_13);var _5=_13>=_4?_13-_4+_2:0,_6=_5>0?isc.NumberUtil.$eg(_5):"";var _7=_11+_12;if(_2)_7=_6+_7;else _7+=_6;if(_2)_3+=_6.length;var _8=(_10||"")+_7.substr(0,_3);if(_3<_7.length){_8+="."+_7.substr(_3)}
return _8})},isc.A.stringify=function isc_c_NumberUtil_stringify(_1,_2,_3){if(!isc.isA.Number(_1))return"";return isc.NumberUtil.$117c(_2,_3,_1)},isc.A.$117c=function isc_c_NumberUtil__stringify(_1,_2,_3,_4){if(_3==null)_3=this;if(!_1)_1=2;var _5=(_4!=null?_3.toString(_4):_3.toString()),_6=_1-_5.length;if(_2){var _7=_5.indexOf(isc.dot);if(_7!=-1){_6+=(_5.length-_7)}}
var _8=isc.NumberUtil.$eg(_6);if(_8==null)return _5;return _8+_5},isc.A.isBetween=function isc_c_NumberUtil_isBetween(_1,_2,_3,_4){if(!isc.isA.Number(_1))return false;return isc.NumberUtil.$152g(_2,_3,_4,_1)},isc.A.$152g=function isc_c_NumberUtil__isBetween(_1,_2,_3,_4){if(_4==null)_4=this;var _5=Math.min(_1,_2),_6=Math.max(_1,_2);if(_3){return _5<=_4&&_4<=_6}else{return _5<_4&&_4<_6}},isc.A.clamp=function isc_c_NumberUtil_clamp(_1,_2,_3){return Math.min(Math.max(_1,_2),_3)},isc.A.toCurrencyString=function isc_c_NumberUtil_toCurrencyString(_1,_2,_3,_4,_5){if(!isc.isA.Number(_1))return"";return isc.NumberUtil.$117d(_2,_3,_4,_5,_1)},isc.A.$117d=function isc_c_NumberUtil__toCurrencyString(_1,_2,_3,_4,_5){if(_5==null)_5=this;var _6=_5<0,_7=_5<0?Math.ceil(_5):Math.floor(_5),_8=Math.abs(Math.round((_5-_7)*100)),_9=isc.StringBuffer.create();_7=Math.abs(_7);_1=_1||isc.NumberUtil.currencySymbol||"$";_2=_2||isc.NumberUtil.decimalSymbol||".";if(_3==null)_3=true;if(_6)_9.append(isc.NumberUtil.negativeSymbol||"-");if(_4!=true)_9.append(_1);_9.append(_7.stringify(1));if(_3){_9.append(_2);_9.append(_8.stringify(2))}else if(_8!=0){_9.append(_2);if(_8%10==0)_9.append(_8/10);else _9.append(_8.stringify(2))}
if(_4==true)_9.append(_1);return _9.release(false)},isc.A.toLocalizedString=function isc_c_NumberUtil_toLocalizedString(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(!isc.isA.Number(_1))return"";var _10=(_1<0),_11=null,_12=null;if(_10){_1=-_1}
var _13=(_8!=null||_9!=null),_14=0;if(_13){_8=Math.max(1,Math.min(21,_8||0));_9=Math.max(_8,Math.min(21,_9||0))}else{_6=Math.max(1,Math.min(21,_6||0));_14=Math.max(0,Math.min(20,_2||0));_7=Math.max(_14,Math.min(20,_7||0))}
var _15=isc.NumberUtil.$eg(1);if(_13){var p=_9,e=0,m;if(_1==0){e=0;m=isc.NumberUtil.$eg(p);if(e==p-1){_11=m}}else{e=Math.floor(Math.log(_1)/Math.LN10);var n=0;if(e<p){n=Math.round(_1*Math.pow(10,-(e-p+1)))}else{n=Math.round(_1/Math.pow(10,e-p+1))}
if(n==Math.pow(10,p)){++e;n/=10}
if(e>=p){_11=(isc.NumberUtil.$141d(n)+isc.NumberUtil.$eg(e-p+1))}else if(e==p-1){_11=isc.NumberUtil.$141d(n)}else{m=isc.NumberUtil.$141d(n)}}
if(_11==null){if(e>=0){_11=m.substr(0,e+1);_12=m.substr(e+1,p-(e+1))}else{_11=_15;_12=isc.NumberUtil.$eg(-(e+1))+m}
var _20=_9-_8,_21=_20;while(_21>0){if(_12.charAt(p-(e+1)-1-(_20-_21))==_15){--_21}else{break}}
if(p-(e+1)==_20-_21){_12=null}else{_12=_12.substr(0,p-(e+1)-(_20-_21))}}}else{var f=_7,n=Math.round(_1*Math.pow(10,f)),m=(n==0?_15:isc.NumberUtil.$141d(n)),l=0;if(f>0){var k=m.length;if(k<=f){m=isc.NumberUtil.$eg(f+1-k)+m;k=f+1}
_11=m.substr(0,k-f);_12=m.substr(k-f,f);l=k-f;var _20=_7-_14,_21=_20;while(_21>0){if(_12.charAt(f-1-(_20-_21))==_15){--_21}else{break}}
if(f==_20-_21){_12=null}else{_12=_12.substr(0,f-(_20-_21))}}else{_11=m;l=m.length}
if(l<_6){_11=isc.NumberUtil.$eg(_6-l)+_11}}
var _25=_11.length,r=_25%3,_27=(_25-r)/3,_28=(_10?1:0)+(r!=0?1:0),_29=(r!=0?1:0)+_27-1,_30=(_28+_29+_27+(_12!=null?2:0)),_31=new Array(_30);var k=0;if(_10){_31[k++]=(_5||isc.NumberUtil.negativeSymbol)}
_4=_4||isc.NumberUtil.groupingSymbol;var _32=false;if(r!=0){_31[k++]=_11.substr(0,r);_32=true}
for(var i=0,j=r;i<_27;++i,j+=3,_32=true){if(_32){_31[k++]=_4}
_31[k++]=_11.substr(j,3)}
if(_12!=null){_31[k++]=(_3||isc.NumberUtil.decimalSymbol);_31[k]=_12}
return _31.join("")},isc.A.$141d=function isc_c_NumberUtil__toFixed(_1){var _2=_1.toFixed(),k=_2.lastIndexOf("e");if(k==-1){return _2}else{var _4=parseInt(_2.substr(k+1),10),_5=1+_4,_6="",_7=0;do{var _8=parseInt(_2,10),_9=parseInt(_2.substr(k+1),10);if(_4>_9+1){_6=_6+isc.NumberUtil.$eg(_4-_9-1)+_8}else{_6=_6+_8}
_7+=_8*Math.pow(10,_9);_2=(_1-_7).toFixed();k=_2.lastIndexOf("e");_4=_9}while(k!=-1);var l=_5-_6.length-_2.length;if(l>0){return _6+isc.NumberUtil.$eg(l)+_2}else{return _6+_2}}},isc.A.toMiBString=function isc_c_NumberUtil_toMiBString(_1,_2){if(Math.abs(_1-_2)>167773){return Math.round(_1/104857.6)/10}
var _3=_1/1048576,_4;if(_1==_2){_4=isc.NumberUtil.toLocalizedString(_3,20);var _5=_4.search(/[^\d]/);if(_5>=0&&_4.length>=_5+20){for(var j=1;j<=20;++j){var c=_4.charCodeAt(_5+j);if(49<=c&&c<=57){return isc.NumberUtil.toLocalizedString(_3,j)}}}
return _4}else{var _8=_2/1048576,_9;for(var j=1;j<=20;++j){_4=isc.NumberUtil.toLocalizedString(_3,j);_9=isc.NumberUtil.toLocalizedString(_8,j);if(_4!==_9&&!/[^\d]0+$/.test(_4))return _4}
return _4}},isc.A.floatValueToLocalizedString=function isc_c_NumberUtil_floatValueToLocalizedString(_1,_2,_3,_4){if(!isc.isA.Number(_1))return"";if(!_3)_3=0;if(_2==null)_2=2;var _5=isc.NumberUtil.toLocalizedString(_1,_2);if(_4)_5=_5.replaceAll(isc.NumberUtil.groupingSymbol,"");var _6=_5.indexOf(isc.NumberUtil.decimalSymbol);var _7=0;if(_6<0){if(_3==0)return _5;_7=_3;_5+=isc.NumberUtil.decimalSymbol}else{_7=_3-(_5.length-_6-1)}
if(_7>0){_5+=new Array(_7+1).join('0')}else if(_7<0){for(var i=(_5.length-1);i>(_6+_3);i--){if(_5.charAt(i)!='0'&&_5.charAt(i)!=isc.NumberUtil.decimalSymbol)break}
if(_5.charAt(i)==isc.NumberUtil.decimalSymbol)i--;_5=_5.substr(0,i+1)}
return _5},isc.A.toUSString=function isc_c_NumberUtil_toUSString(_1,_2,_3,_4,_5,_6){return isc.NumberUtil.toLocalizedString(_1,_2,".",",","-",_3,_4,_5,_6)},isc.A.toUSCurrencyString=function isc_c_NumberUtil_toUSCurrencyString(_1,_2){if(!isc.isA.Number(_1))return"";var _3=isc.NumberUtil;return"$"+_3.toLocalizedString(_1,_2,".",",","-")},isc.A.$141e=function isc_c_NumberUtil__toUSPercentString(_1,_2,_3,_4,_5,_6){if(!isc.isA.Number(_1)){return""}else{return(isc.NumberUtil.toLocalizedString(100*_1,_3,".",",","-",_2,_4,_5,_6)+"%")}},isc.A.iscToLocaleString=function isc_c_NumberUtil_iscToLocaleString(_1){var f=isc.NumberUtil.localeStringFormatter;var _3=isc.isA.Function(f)?f:isc.NumberUtil[f];return _3?_3(_1):_1.toString()},isc.A.toFormattedString=function isc_c_NumberUtil_toFormattedString(_1,_2){var f=_2||isc.NumberUtil.formatter;var _4=isc.isA.Function(f)?f:isc.NumberUtil[f];return _4?_4(_1):_1.toString()},isc.A.parseInt=function isc_c_NumberUtil_parseInt(_1,_2){if(isc.isA.String(_1)){var _3=_2?",":this.groupingSymbol,_4=_2?"$":this.currencySymbol;_1=_1.replace(new RegExp("["+_3+"|"+_4+"]","g"),"")}
return parseInt(_1)},isc.A.parseFloat=function isc_c_NumberUtil_parseFloat(_1,_2){if(isc.isA.String(_1)){var _3=_2?".":this.decimalSymbol,_4=_2?",":this.groupingSymbol,_5=_2?"$":this.currencySymbol;_1=_1.replace(new RegExp("["+_4+"|"+_5+"]","g"),"");if(_3!="."){_1=_1.replace(new RegExp("["+_3+"]","g"),".")}}
return parseFloat(_1)},isc.A.parseLocaleFloat=function isc_c_NumberUtil_parseLocaleFloat(_1,_2,_3){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.decimalSymbol;if(!_3)_3=isc.NumberUtil.groupingSymbol;var _4="";var _5=-1;var _6=false;var _7=true;var _8=_1.contains(_3);for(var i=0;i<_1.length;i++){if(i==0){if(_1.charAt(i)=="-"){_7=false;continue}else if(_1.charAt(i)=="+"){continue}}
var _10=!_6&&_8;if(_10){if(_5!=-1){_10=(i-_5)==4}else{_10=(i==3)||(_1.charAt(i)==_3)}}
if(_1.charAt(i)==_3){if(!_10){return Number.NaN}
_5=i;continue}else if(_10&&_1.charAt(i)!=_2){return Number.NaN}else if(_1.charAt(i)==_2){if(_6)return Number.NaN;if(_8&&(i-_5)!=4)return Number.NaN;_6=true;_4+=".";continue}
if(_1.charAt(i)<"0"||_1.charAt(i)>"9")return Number.NaN;_4+=_1[i]}
if(!_6&&_8&&((i-_5)!=4)){return Number.NaN}
return _7?parseFloat(_4):-parseFloat(_4)},isc.A.parseLocaleInt=function isc_c_NumberUtil_parseLocaleInt(_1,_2){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.groupingSymbol;var _3="";var _4=-1;var _5=true;var _6=_1.contains(_2);for(var i=0;i<_1.length;i++){if(i==0){if(_1.charAt(i)=="-"){_5=false;continue}else if(_1.charAt(i)=="+"){continue}}
var _8=_6;if(_8){if(_4!=-1){_8=(i-_4)==4}else{_8=(i==3)||(_1.charAt(i)==_2)}}
if(_1.charAt(i)==_2){if(!_8){return Number.NaN}
_4=i;continue}else if(_8){return Number.NaN}
if(_1.charAt(i)<"0"||_1.charAt(i)>"9")return Number.NaN;_3+=_1[i]}
if(_6&&((i-_4)!=4)){return Number.NaN}
return _5?parseInt(_3):-parseInt(_3)},isc.A.parseLocaleCurrency=function isc_c_NumberUtil_parseLocaleCurrency(_1,_2,_3,_4){if(_1==null)return Number.NaN;if(!_2)_2=isc.NumberUtil.currencySymbol;if(_1.startsWith(_2)){_1=_1.substring(_2.length)}else if(_1.endsWith(_2)){_1=_1.substring(0,_1.length-_2.length)}
return this.parseLocaleFloat(_1)},isc.A.parseIfNumeric=function isc_c_NumberUtil_parseIfNumeric(_1){if(isc.isA.Number(_1)){return _1}else if(isc.isA.nonemptyString(_1)){if(isNaN(_1)){return _1}else{return parseInt(_1,10)}}else{return _1}},isc.A.format=function isc_c_NumberUtil_format(_1,_2){if(!isc.isA.Number(_1)){this.logWarn("Cannot format '"+_1+"' - not a Number");return _1}
if(!isc.isA.String(_2)){this.logWarn("Cannot use format '"+_2+"' - not a String");return _1}
if(_2==""){return _1.toString()}
var _3=_2+"",n=_1+0,_5=n<0,_6=Math.abs(_1),_7,_8=_6.toString().split('.'),_9=_8[0],_10=_8[1];if(_5){if(_3.indexOf(";")!=-1){_3=_7=_3.substring(_3.indexOf(";")+1)}else{_3=_3.indexOf(";")==-1?_3:_3.substring(0,_3.indexOf(";"))}}else{_3=_3.indexOf(";")==-1?_3:_3.substring(0,_3.indexOf(";"))}
var _11=_3.indexOf("'"),_12=[],_13=[];while(_11!=-1){var _14=_11,_15=_3.indexOf("'",_14+1);if(_15==-1){var _16="Invalid format string \""+_2+"\" - contains mismatched quotes"
this.logWarn(_16);return _16}
var _17=_3.substring(_14+1,_15);if(_17==="")_17="'";_12.push(_17);_13.push(_14);_3=_3.substring(0,_14)+_3.substring(_15+1);_11=_3.indexOf("'")}
var _18=_3.indexOf(",");if(_18>-1){_3=_3.replace(/,/g,'')}
var _19=_3.indexOf("0"),_20=_3.indexOf("#"),_21=_3.indexOf("."),_22=Math.min(_19==-1?999:_19,_20==-1?999:_20,_21==-1?999:_21),_23=_3.length-1,_24=false,_25=false,_26=0;for(var i=_3.length-1;i>_22;i--){var _28=_3.charAt(i);if(_28=='0'||_28=='#'||_28=='.')break;if(_28=='%')_24=true;if(_28=='\u2030')_25=true;_23--}
if(_22==999||_23<0||_22>_23){_8=Math.abs(n).toString().split('.');_9=_8[0];_10="";var _29=_3;if(_13){for(var i=_13.length-1;i>=0;i--){_29=_29.substring(0,_13[i])+_12[i]+_29.substring(_13[i])}}
if(_5&&!_7)_29="-"+_29;var _30="",_31=""}else{if(_19!=-1&&_20!=-1&&_21!=-1){if(_19<_20&&_20<_21){var _16="Invalid format string \""+_2+"\" - cannot specify '0' to the left of '#' in the integer part"
this.logWarn(_16);return _16}}
var _32=_3.indexOf("\u00a4");while(_32!=-1){_3=_3.substring(0,_32)+isc.NumberUtil.currencySymbol+_3.substring(_32+1);_32=_3.indexOf("\u00a4")}
var _29=_3.substring(0,_22);var _30=_3.substring(_23+1);for(var i=_13.length-1;i>=0;i--){if(_13[i]>_22&&_13[i]<_23){this.logWarn("Format string \""+_2+"\" contains quoted characters within the actual number area - these will be ignored")}else if(_13[i]<=_22){_29=_29.substring(0,_13[i])+_12[i]+_29.substring(_13[i])}else{_13[i]-=(_23+1);_30=_30.substring(0,_13[i])+_12[i]+_30.substring(_13[i])}}
if(_19!=-1&&(_21==-1||_19<_21)){_26=(_21==-1?_23+1:_21)-_19}
if(_24)n=n*100;else if(_25)n=n*1000;var _33="";if(_21!=-1)_33=_3.substring(_21+1,_23+1);n=this.$124q(n,_33.length,_10?_10.length:0);_8=Math.abs(n).toString().split('.');_9=_8[0];_10=_8[1]||"";if(_10.length<_33.length){var c=_10.length;while(_33[c]==="0"&&c++<_33.length)_10+="0"}
if(_9=="0"){_9="0000000000000000000000000000000000000000".substring(0,_26)}else if(_26>_9.length){_9="0000000000000000000000000000000000000000".substring(_9.length,_26)+_9}
if(_18>-1){_9=_9.replace(/(\d)(?=(\d{3})+(?!\d))/g,'$1'+isc.NumberUtil.groupingSymbol)}
if(_5&&!_7){_29=_29?"-"+_29:"-"}
var _31=_10&&_10.length>0?isc.NumberUtil.decimalSymbol:""}
return _29+_9+_31+_10+_30},isc.A.$124q=function isc_c_NumberUtil__roundDecimalForFormatting(_1,_2,_3){if(_3<=_2)return _1;var _4=_1<0;if(_4)_1=0-_1;var _5=_1;var m=Math.pow(10,_2);_1=_1*m;if(isc.NumberUtil.useAccurateRounding){var e=Math.pow(10,_3*-1);_1+=e}
_1=Math.round(_1)
_1=_1/m;return _4?0-_1:_1});isc.B._maxIndex=isc.C+28;isc.NumberUtil.toString=function(_1){if(_1==null)return"";if(isc.isA.Class(_1))return _1.valueOf().toString();return _1.toString()};if(!isc.NumberUtil.formatter)isc.NumberUtil.formatter="toString";if(!isc.NumberUtil.localeStringFormatter)
isc.NumberUtil.localeStringFormatter="toString";Number.prototype.Class="Number";isc.A=Number;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.setStandardFormatter=function isc_Number_setStandardFormatter(_1){isc.NumberUtil.setStandardFormatter(_1)},isc.A.setStandardLocaleStringFormatter=function isc_Number_setStandardLocaleStringFormatter(_1){isc.NumberUtil.setStandardLocaleStringFormatter(_1)});isc.B._maxIndex=isc.C+2;isc.A=Number.prototype;isc.A.stringify=isc.NumberUtil.$117c;isc.A.isBetween=isc.NumberUtil.$152g;isc.A.toCurrencyString=isc.NumberUtil.$117d;isc.A=Number.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.iscToLocaleString=function isc_Numbe_iscToLocaleString(){var _1=isc.NumberUtil.iscToLocaleString(this);return _1},isc.A.toFormattedString=function isc_Numbe_toFormattedString(_1){var _2=isc.NumberUtil.toFormattedString(this,_1)
return _2},isc.A.toLocalizedString=function isc_Numbe_toLocalizedString(_1,_2,_3,_4){var _5=isc.NumberUtil.toLocalizedString(this,_1,_2,_3,_4);return _5},isc.A.toUSString=function isc_Numbe_toUSString(_1){var _2=isc.NumberUtil.toUSString(this,_1);return _2},isc.A.toUSDollarString=function isc_Numbe_toUSDollarString(_1){return isc.NumberUtil.toUSCurrencyString(this,_1)},isc.A.toUSCurrencyString=function isc_Numbe_toUSCurrencyString(_1){var _2=isc.NumberUtil.toUSCurrencyString(this,_1);return _2});isc.B._maxIndex=isc.C+6;isc.defineClass("Format");isc.A=isc.Format;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.toUSString=function isc_c_Format_toUSString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSString(_1,_2)},isc.A.toUSCurrencyString=function isc_c_Format_toUSCurrencyString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSCurrencyString(_1,_2)},isc.A.toUSDollarString=function isc_c_Format_toUSDollarString(_1,_2){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.toUSCurrencyString(_1,_2)},isc.A.toCurrencyString=function isc_c_Format_toCurrencyString(_1,_2,_3,_4,_5){if(!isc.isA.Number(_1))return _1;return isc.NumberUtil.$117d(_2,_3,_4,_5,_1)});isc.B._maxIndex=isc.C+4;isc.defineClass("BigDecimal");isc.A=isc.BigDecimal.getPrototype();isc.A.r=/^(?:(?:NaN|([+|-]?)(?:(?:(\d+)\.*|(\d*)\.(\d+))(?:[E|e]([+|-]?)(\d+))?|(Infinity))))$/;isc.A.nanValue=true;isc.A.infinityValue=false;isc.A.sign=1;isc.A.num="";isc.A.exp=0;isc.A=isc.BigDecimal.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.isNaN=function isc_BigDecimal_isNaN(){return this.nanValue},isc.A.isInfinity=function isc_BigDecimal_isInfinity(){return!this.nanValue&&this.infinityValue},isc.A.getSign=function isc_BigDecimal_getSign(){return(this.nanValue)?1:this.sign},isc.A.getNum=function isc_BigDecimal_getNum(){return(this.nanValue)?"0":this.num},isc.A.getExp=function isc_BigDecimal_getExp(){return(this.nanValue)?0:this.exp},isc.A.normalize=function isc_BigDecimal_normalize(){if(this.nanValue){this.infinityValue=false;this.sign=1;this.num="";this.exp=0}else{if(this.infinityValue){this.num="";this.exp=0}else{this.num=this.num.replace(/^0*/,"");var _1=/0*$/.exec(this.num);if(_1){this.num=this.num.replace(/0*$/,"");this.exp+=_1[0].length}
if(this.num===""){this.num="0";this.exp=0}}}
return this},isc.A.toString=function isc_BigDecimal_toString(){return this.getStringValue()},isc.A.getStringValue=function isc_BigDecimal_getStringValue(_1){if(this.nanValue){return"NaN"}
if(this.infinityValue){return(this.sign===1?"":"-")+"Infinity"}
if(_1){if(this.num.length===1){return(this.sign===1?"":"-")+this.num+"e"+this.exp}
var _2=this.num.substr(0,1)+"."+this.num.substr(1);return(this.sign===1?"":"-")+_2+"e"+(this.exp+(this.num.length-1))}else{var _2=this.num;if(this.exp>=0){_2+="0".repeat(this.exp)}else{if(_2.length<Math.abs(this.exp)+1){_2="0".repeat(Math.abs(this.exp)-_2.length+1)+_2}
_2=_2.substr(0,_2.length+this.exp)+"."+_2.substr(_2.length+this.exp)}
return(this.sign===1?"":"-")+_2}},isc.A.getNumberValue=function isc_BigDecimal_getNumberValue(){if(this.nanValue){return NaN}else if(this.infinityValue){return Infinity*this.sign}else{return new Number(this.getStringValue())}},isc.A.compareTo=function isc_BigDecimal_compareTo(_1){if(!(isc.isA.BigDecimal(_1))){_1=isc.BigDecimal.create(_1)}
var _2=this.isNaN();var _3=this.isInfinity();var _4=this.getSign();var _5=this.getNum();var _6=this.getExp();var _7=_1.isNaN();var _8=_1.isInfinity();var _9=_1.getSign();var _10=_1.getNum();var _11=_1.getExp();if(_3){if(_8){if(_4>_9){return 1}else if(_4===_9){return 0}else{return-1}}else{if(_4>0){return 1}else{return-1}}}
if(_8){if(_9<0){return 1}else{return-1}}
if(_6>_11){_5+="0".repeat(_6-_11)}else{_10+="0".repeat(_11-_6)}
if(_5.length>_10.length){_10="0".repeat(_5.length-_10.length)+_10}else{_5="0".repeat(_10.length-_5.length)+_5}
if(_5>_10){if(_4>_9){return 1}else if(_4===_9){return 1}else{return-1}}else if(_5===_10){if(_4>_9){return 1}else if(_4===_9){return 0}else{return-1}}else{if(_4>_9){return 1}else if(_4===_9){return-1}else{return-1}}},isc.A.negate=function isc_BigDecimal_negate(){var _1=isc.BigDecimal.create(this);if(!_1.isNaN()){if(_1.sign===1){_1.sign=-1}else{_1.sign=1}}
return _1},isc.A.add=function isc_BigDecimal_add(_1){if(!(isc.isA.BigDecimal(_1))){_1=isc.BigDecimal.create(_1)}
var _2=this.isNaN();var _3=this.isInfinity();var _4=this.getSign();var _5=this.getNum();var _6=this.getExp();var _7=_1.isNaN();var _8=_1.isInfinity();var _9=_1.getSign();var _10=_1.getNum();var _11=_1.getExp();if(_2&&_7){return isc.BigDecimal.create()}
if(_3&&_8&&_4!=_9){return isc.BigDecimal.create()}
var _12=isc.BigDecimal.create("0");if(_3){_12.sign=this.sign;_12.infinityValue=true;return _12.normalize()}
if(_8){_12.sign=_1.sign;_12.infinityValue=true;return _12.normalize()}
if(_6>_11){_5+="0".repeat(_6-_11);_6=_11}else{_10+="0".repeat(_11-_6);_11=_6}
if(_5.length>_10.length){_10="0".repeat(_5.length-_10.length)+_10}else{_5="0".repeat(_10.length-_5.length)+_5}
_12.sign=_4;_12.exp=_6;if(_4===_9){var _13="";var _14=0;var i=_5.length;while(i>=0){var _16=_5.substring(Math.max(0,i-15),i);var _17=_10.substring(Math.max(0,i-15),i);var s=parseInt(_16)+parseInt(_17)+_14;var r="000000000000000"+(s%1000000000000000);_13=r.substring(r.length-15)+_13;_14=Math.floor(s/1000000000000000);i-=15}
if(_14>0){_13=""+_14+_13}
_12.num=_13}else{if(_5<_10){var _20=_5;_5=_10;_10=_20;_12.sign=_9}
var _13="";var _14=0;var i=_5.length;while(i>=0){var _16=_5.substring(Math.max(0,i-15),i);var _17=_10.substring(Math.max(0,i-15),i);var s=1000000000000000+parseInt(_16)-parseInt(_17)-_14;var r="000000000000000"+(s%1000000000000000);_13=r.substring(r.length-15)+_13;_14=(Math.floor(s/1000000000000000)>=1)?0:1;i-=15}
_12.num=_13}
return _12.normalize()},isc.A.subtract=function isc_BigDecimal_subtract(_1){_1=isc.BigDecimal.create(_1);_1=_1.negate();return this.add(_1)},isc.A.multiply=function isc_BigDecimal_multiply(_1){if(!(isc.isA.BigDecimal(_1))){_1=isc.BigDecimal.create(_1)}
if(this.isNaN()||_1.isNaN()){return isc.BigDecimal.create()}
if((this.compareTo(0)===0&&_1.isInfinity())||(this.isInfinity()&&_1.compareTo(0)===0)){return isc.BigDecimal.create()}
if(this.isInfinity()||_1.isInfinity()){var _2=isc.BigDecimal.create("Infinity");if(this.sign!==_1.sign){_2.sign=-1}
return _2}
if(this.compareTo(0)===0||_1.compareTo(0)===0){return isc.BigDecimal.create(0)}
var _3=this.num;var _4=_1.num;_3+="0".repeat(Math.max(this.exp-_1.exp,0));_4+="0".repeat(Math.max(_1.exp-this.exp,0));_3="0".repeat(Math.max(_4.length-_3.length,0))+_3;_4="0".repeat(Math.max(_3.length-_4.length,0))+_4;var a=[];while(_3.length>0){var _6=parseInt(_3.substring(Math.max(_3.length-7,0)));var _7=_4;var _8=[];var _9=[];while(_7.length>0){var _10=parseInt(_7.substring(Math.max(_7.length-7,0)));var r=_6*_10;_8.push(r%10000000);_8.push(0);_9.push(0);_9.push(Math.floor(r/10000000));_7=_7.substring(0,Math.max(_7.length-7,0))}
a.push(_8);a.push(_9);_3=_3.substring(0,Math.max(_3.length-7,0))}
var _12=true;if(a.length<10){_12=false}
var y=0;var x=0;var c=(_12)?isc.BigDecimal.create("0"):0;var _16=[];while(y<a.length){var s=(_12)?isc.BigDecimal.create("0"):0;var _18=x;var _19=y;while((a[_19]!==undefined)&&(a[_19][_18]!==undefined)){if(_12){s=s.add(a[_19++][_18--])}else{s+=a[_19++][_18--]}}
if(_12){s=s.add(c);var _20="00000000"+s.num+"0".repeat(s.exp);c=isc.BigDecimal.create(_20.substring(0,_20.length-7));s=isc.BigDecimal.create(_20.substring(_20.length-7))}else{s+=c;c=Math.floor(s/10000000);s=s%10000000}
_16.push(s);if(x<a[0].length-2){x=x+2}else{if(x<a[0].length-1){y++}else{y=y+2}
x=a[0].length-1}}
_16.push(c);var _21="";for(var i=_16.length-1;i>=0;i--){var _20;if(_12){_20="00000000"+_16[i].num+"0".repeat(_16[i].exp)}else{_20="00000000"+_16[i]}
_21+=_20.substring(_20.length-7)}
var _23="";if(this.sign!==_1.sign){_23="-"}
var _24=Math.min(this.exp,_1.exp)*2;return isc.BigDecimal.create(_23+_21+"e"+_24)},isc.A.round=function isc_BigDecimal_round(_1,_2){if(this.isNaN()||this.isInfinity()||this.num==="0"){return isc.BigDecimal.create(this)}
if(!_1){_1=0}
if((-1*_1)<=this.exp){return isc.BigDecimal.create(this)}
var _3;var _4;if((-1*_1)>=(this.exp+this.num.length)){_3="0";_4="0".repeat((-1*_1)-(this.exp+this.num.length))+this.num}else{_3=this.num.substring(0,this.exp+this.num.length+_1);_4=this.num.substring(this.exp+this.num.length+_1)}
if(!_2){_2="round"}
var _5=isc.BigDecimal.create(_3);var _6=isc.BigDecimal.create("0."+_4);if(_2==="round"){var c=_6.compareTo("0.5");if(this.sign>=0){if(c>=0){_5=_5.add(1)}}else{if(c>0){_5=_5.add(1)}
_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2==="ceil"||_2=="java_ceil"){if(this.sign>=0){_5=_5.add(1)}else{_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2==="floor"||_2=="java_floor"){if(this.sign<0){_5=_5.add(1).negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2=="java_up"){_5=_5.add(1);if(this.sign<0){_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2=="java_down"){if(this.sign<0){_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2=="java_halfUp"){var c=_6.compareTo("0.5");if(c>=0){_5=_5.add(1)}
if(this.sign<0){_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2=="java_halfDown"){var c=_6.compareTo("0.5");if(c>0){_5=_5.add(1)}
if(this.sign<0){_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}else if(_2=="java_halfEven"){var c=_6.compareTo("0.5");if(c>0){_5=_5.add(1)}else if(c===0){var _8=_3.substring(_3.length-1);if(_8==="1"||_8==="3"||_8==="5"||_8==="7"||_8==="9"){_5=_5.add(1)}}
if(this.sign<0){_5=_5.negate()}
_5.exp+=(-1*_1);return _5.normalize()}
return isc.BigDecimal.create(this)},isc.A.ceil=function isc_BigDecimal_ceil(_1){return this.round(_1,"ceil")},isc.A.floor=function isc_BigDecimal_floor(_1){return this.round(_1,"floor")},isc.A.$178i=function isc_BigDecimal__divideBySubtracting(_1,_2){var _3=[];_3[0]=0;_3[1]=isc.BigDecimal.create(_1);var _4=isc.BigDecimal.create(_2);while(_3[1].compareTo(_4)>=0){var _5=_3[1];_3[0]++;_3[1]=_5.subtract(_4)}
return _3},isc.A.$178j=function isc_BigDecimal__divide(_1,_2,_3){var _4=[];var _5=[];_5[0]="";_5[1]="";var _6=_1.substring(0,Math.min(_1.length,_2.length));if(_6.length>=_1.length){_1=""}else{_1=_1.substring(_6.length)}
while(true){var r=this.$178i(_6,_2);_5[0]+=r[0];_5[1]=r[1].getStringValue();if(_1.length<=0){break}
_6=_5[1]+_1.substring(0,1);_1=_1.substring(1)}
if(_3>0){_5[0]+=".";var _8=false;do{_4.push(_5[1]);var _6=_5[1]+"0";var r=this.$178i(_6,_2);_5[0]+=r[0];_5[1]=r[1].getStringValue();if(!isFinite(_3)){for(var i=0;i<_4.length;i++){if(_4[i]===_5[1]){_8=true}}}else{--_3}}while((isFinite(_3)&&_3>0)||(!isFinite(_3)&&!_8))}
return _5},isc.A.divide=function isc_BigDecimal_divide(_1,_2,_3){if(!(isc.isA.BigDecimal(_1))){_1=isc.BigDecimal.create(_1)}
if(this.isNaN()||_1.isNaN()){return isc.BigDecimal.create()}
if(this.isInfinity()&&_1.isInfinity()){return isc.BigDecimal.create()}
if(_1.isInfinity()){return isc.BigDecimal.create("0")}
if(this.isInfinity()){var _4=isc.BigDecimal.create("Infinity");if(this.sign!==_1.sign){_4.sign=-1}
return _4}
var _5=this.num;var _6=_1.num;_5+="0".repeat(Math.max(this.exp-_1.exp,0));_6+="0".repeat(Math.max(_1.exp-this.exp,0));if(!_2){_2=0}
var r=this.$178j(_5,_6,_2+1);if(r[1]!=="0"){if(r[0].indexOf(".")===-1){r[0]+="."}
r[0]+="1"}
if(this.sign!==_1.sign){r[0]="-"+r[0]}
var _4=isc.BigDecimal.create(r[0]);return _4.round(_2,_3)},isc.A.remainder=function isc_BigDecimal_remainder(_1){if(!(isc.isA.BigDecimal(_1))){_1=isc.BigDecimal.create(_1)}
if(this.isNaN()||_1.isNaN()){return isc.BigDecimal.create()}
if(this.isInfinity()){return isc.BigDecimal.create()}
if(_1.isInfinity()){return isc.BigDecimal.create(this)}
var _2=this.num;var _3=_1.num;_2+="0".repeat(Math.max(this.exp-_1.exp,0));_3+="0".repeat(Math.max(_1.exp-this.exp,0));var r=this.$178j(_2,_3,0);if(this.sign===-1){r[1]="-"+r[1]}
var _5=isc.BigDecimal.create(r[1]);_5.exp=Math.min(this.exp,_1.exp);return _5},isc.A.init=function isc_BigDecimal_init(){this.Super("init",arguments);if(arguments&&arguments[0]){var _1=arguments[0];if(isc.isA.Number(_1)){_1=_1.toExponential(20)}
if(isc.isA.BigDecimal(_1)){this.nanValue=_1.isNaN();this.infinityValue=_1.isInfinity();this.sign=_1.getSign();this.num=_1.getNum();this.exp=_1.getExp();this.normalize()}else if(isc.isA.String(_1)){var _2=this.r.exec(_1);if(_2){if(_2[0]!=="NaN"){this.nanValue=false;if(_2[1]!==undefined){this.sign=(_2[1]==="-"?-1:1)}
if(_2[7]!==undefined){this.infinityValue=true}else{if(_2[6]!==undefined){this.exp=new Number(_2[6]);if(_2[5]==='-'){this.exp*=-1}}
if(_2[2]!==undefined){this.num=_2[2];this.num=this.num.replace(/^0*/,"")}else{this.num=_2[3];this.num=this.num.replace(/^0*/,"");if(_2[4]!==undefined){_2[4]=_2[4].replace(/0*$/,"");this.exp-=_2[4].length;this.num+=_2[4];this.num=this.num.replace(/^0*/,"")}}
this.normalize()}}}}else if(_1===Infinity){this.nanValue=false;this.sign=1;this.infinityValue=true}else if(_1===-Infinity){this.nanValue=false;this.sign=-1;this.infinityValue=true}}});isc.B._maxIndex=isc.C+22;isc.Math={clamp:function(_1,_2,_3){if(_1<_2)return _2;if(_1>_3)return _3;return _1},random:function(_1,_2){if(_2==null){return Math.floor(Math.random()*(_1+1))}else{return Math.floor(Math.random()*(_2-_1+1))+_1}},$119q:function(_1,_2){var _3=_1.toString(16);if(_3.length<_2)_3=isc.NumberUtil.$eg(_2-_3.length)+_3;return _3},randomUUID:function(){var _1;if(window.Uint16Array&&window.crypto&&window.crypto.getRandomValues){_1=new window.Uint16Array(8);window.crypto.getRandomValues(_1)}else{_1=new Array(8);var _2=new Date().getTime();for(var i=0;i<_1.length;++i){_1[i]=(_2^(Math.random()*65536))&0xFFFF}}
_1[3]=(_1[3]&0x0FFF)|0x4000;_1[4]=(_1[4]&0xBFFF)|0x8000;return(this.$119q(_1[0],4)+this.$119q(_1[1],4)+"-"+this.$119q(_1[2],4)+"-"+this.$119q(_1[3],4)+"-"+this.$119q(_1[4],4)+"-"+this.$119q(_1[5],4)+this.$119q(_1[6],4)+this.$119q(_1[7],4)).toUpperCase()},randomString:function(_1,_2){var _3=new Array(_1);var _4;if(isc.isA.Number(_2)){_4=_2;_2="0123456789abcdefghijklmnopqrstuvwxyz".substring(0,_4)}else{_4=_2.length}
for(var i=0;i<_1;++i){_3[i]=_2[this.random(_4-1)]}
return _3.join("")},$101j:function(_1){return(_1<0?-1:(_1>0?1:0))},$101k:function(_1,_2){_1=Math.abs(_1);_2=Math.abs(_2);if(_1>_2){return _1*Math.sqrt(1+_2*_2/_1/_1)}else if(_2!=0){return _2*Math.sqrt(1+_1*_1/_2/_2)}else{return _1}},euclideanDistanceToLine:function(_1,_2,_3,_4,_5,_6){var _7=_3-_1,_8=_4-_2;var _9=_7*_7+_8*_8;if(_9<=0.00001){return this.euclideanDistance(_1,_2,_5,_6)}
var u=((_5-_1)*(_3-_1)+(_6-_2)*(_4-_2))/_9;if(u<0){return this.euclideanDistance(_1,_2,_5,_6)}else if(u>1){return this.euclideanDistance(_3,_4,_5,_6)}else{var x=_1+u*_7,y=_2+u*_8;return this.euclideanDistance(x,y,_5,_6)}},euclideanDistance:function(_1,_2,_3,_4){if(arguments.length==2){var _5=_1,_6=_2;_1=_5[0];_2=_5[1];_3=_6[0];_4=_6[1]}
return this.$101k((_1-_3),(_2-_4))},$125w:Math.PI/180,$167a:Math.PI/2,toRadians:function(_1){return _1*this.$125w},cosdeg:function(_1){return Math.cos(_1*this.$125w)},sindeg:function(_1){return Math.sin(_1*this.$125w)},$fr:function(_1,_2){var _3=0;for(var i=0;i<_1.length;++i){_3+=_1[i]*_2[i]}
return _3},$101l:function(_1){var m=_1.length,n=_1[0].length,_4=new Array(n);for(var i=n;i--;){_4[i]=new Array(n)}
for(var i=n;i--;){var _6=_4[i];for(var j=i;j<n;++j){var _8=0;for(var k=m;k--;){var _10=_1[k];_8+=_10[i]*_10[j]}
_6[j]=_4[j][i]=_8}}
return _4},$101m:function(_1,_2){if(_1.length!=_2.length){return null}
var m=_1[0].length,n=_2.length,_5=new Array(m);for(var i=m;i--;){var _7=0;for(var j=n;j--;){_7+=_1[j][i]*_2[j]}
_5[i]=_7}
return _5},$101n:function(_1){if(_1.length!=_1[0].length){return null}
var n=_1.length,L=isc.Math.$101o(n,n);for(var j=0;j<n;++j){var _5=L[j],_6=0;for(var k=0;k<j;++k){var _8=_5[k];_6+=_8*_8}
if(_1[j][j]-_6<0){return null}
var _9=_5[j]=Math.sqrt(_1[j][j]-_6);for(var i=j+1;i<n;++i){var _11=L[i],_6=0;for(var k=0;k<j;++k){_6+=_11[k]*_5[k]}
_11[j]=(_1[i][j]-_6)/_9}}
return L},$101p:function(_1){var m=_1.length,n=_1[0].length,_4=new Array(n);for(var i=n;i--;){_4[i]=new Array(m)}
for(var i=n;i--;){var _6=_4[i];for(var j=m;j--;){_6[j]=_1[j][i]}}
return _4},$101o:function(_1,_2){var A=new Array(_1);for(var i=_1;i--;){A[i]=new Array(_2)}
return A},$101q:function(_1,_2){var A=new Array(_1);for(var i=_1;i--;){var _5=A[i]=new Array(_2);for(var j=_2;j--;){_5[j]=0}}
return A},$101r:function(_1){var v=new Array(_1);for(var i=_1;i--;){v[i]=0}
return v},$101s:function(_1){var m=_1.length,n=_1[0].length,B=new Array(m);for(var i=m;i--;){var _6=_1[i],_7=B[i]=new Array(n);for(var j=n;j--;){_7[j]=_6[j]}}
return B},$101t:function(_1,_2){var _3=isc.Math.$101u(_1,_2,true,true);if(_3!=null){var s=_3.s,m=s.length;for(var i=m;i--;){s[i]=(s[i]==0?0:(1/s[i]))}
return isc.Math.$101v(_3.V,s,_3.U)}else{return null}},$101u:function(_1,_2,_3,_4,_5){if(_2==null){_2=50}
if(_3==null){_3=true}
if(_4==null){_4=true}
var _6=2.220446049250313e-16;var _7=Number.MIN_VALUE;var m=_1.length,n=_1[0].length;if(m<n){var _10=isc.Math.$101u(isc.Math.$101p(_1),_2,_4,_3);if(_10!=null){var _11=_10.U;_10.U=_10.V;_10.V=_11}
return _10}
var _12=isc.Math.$101k,_13=Math.min(m,n),q=(_5?_13:m),p=Math.min(n,m+1),_16=Math.min(m-1,n),_17=Math.max(0,Math.min(n-2,m)),_1=isc.Math.$101s(_1),s=new Array(p),U=isc.Math.$101q(m,q),V=isc.Math.$101q(n,n),e=isc.Math.$101r(n),_22=isc.Math.$101r(m);for(var k=0,_24=Math.max(_16,_17);k<_24;++k){if(k<_16){s[k]=0;for(var i=k;i<m;++i){s[k]=_12(s[k],_1[i][k])}
if(s[k]!=0){if(_1[k][k]<0){s[k]=-s[k]}
for(var i=k;i<m;++i){_1[i][k]/=s[k]}
_1[k][k]+=1}
s[k]=-s[k]}
for(var j=k+1;j<n;++j){if(k<_16&&s[k]!=0){var t=0;for(var i=k;i<m;++i){t+=_1[i][k]*_1[i][j]}
t=-t/_1[k][k];for(var i=k;i<m;++i){_1[i][j]+=t*_1[i][k]}}
e[j]=_1[k][j]}
if(_3&&k<_16){for(var i=k;i<m;++i){U[i][k]=_1[i][k]}}
if(k<_17){e[k]=0;for(var i=k+1;i<n;++i){e[k]=_12(e[k],e[i])}
if(e[k]!=0){if(e[k+1]<0){e[k]=-e[k]}
for(var i=k+1;i<n;++i){e[i]/=e[k]}
e[k+1]+=1}
e[k]=-e[k];if(k+1<m&&e[k]!=0){for(var i=k+1;i<m;++i){_22[i]=0}
for(var j=k+1;j<n;++j){for(var i=k+1;i<m;++i){_22[i]+=e[j]*_1[i][j]}}
for(var j=k+1;j<n;++j){var t=-e[j]/e[k+1];for(var i=k+1;i<m;++i){_1[i][j]+=t*_22[i]}}}
if(_4){for(var i=k+1;i<n;++i){V[i][k]=e[i]}}}}
if(_16<n){s[_16]=_1[_16][_16]}
if(m<p){s[p-1]=0}
if(_17+1<p){e[_17]=_1[_17][p-1]}
e[p-1]=0;if(_3){for(var j=_16;j<q;++j){for(var i=0;i<m;++i){U[i][j]=0}
U[j][j]=1}
for(var k=_16-1;k>=0;--k){if(s[k]!=0){for(var j=k+1;j<q;++j){var t=0;for(var i=k;i<m;++i){t+=U[i][k]*U[i][j]}
t=-t/U[k][k];for(var i=k;i<m;++i){U[i][j]+=t*U[i][k]}}
for(var i=k;i<m;++i){U[i][k]=-U[i][k]}
U[k][k]+=1;for(var i=0;i<k-1;++i){U[i][k]=0}}else{for(var i=0;i<m;++i){U[i][k]=0}
U[k][k]=1}}}
if(_4){for(var k=n-1;k>=0;--k){if(k<_17&&e[k]!=0){for(var j=k+1;j<_13;++j){var t=0;for(var i=k+1;i<n;++i){t+=V[i][k]*V[i][j]}
t=-t/V[k+1][k];for(var i=k+1;i<n;++i){V[i][j]+=t*V[i][k]}}}
for(var i=0;i<n;++i){V[i][k]=0}
V[k][k]=1}}
var _28=p-1,_29=0;while(p>0){if(_29>_2){return null}
var k,_30;for(k=p-2;k>=-1;--k){if(k==-1){break}
if(Math.abs(e[k])<=_7+_6*(Math.abs(s[k])+Math.abs(s[k+1]))){e[k]=0;break}}
if(k==p-2){_30=4}else{var _31;for(_31=p-1;_31>=k;--_31){if(_31==k){break}
var t=(_31!=p?Math.abs(e[_31]):0)+(_31!=k+1?Math.abs(e[_31-1]):0);if(Math.abs(s[_31])<=_7+_6*t){s[_31]=0;break}}
if(_31==k){_30=3}else if(_31==p-1){_30=1}else{_30=2;k=_31}}
++k;switch(_30){case 1:var f=e[p-2];e[p-2]=0;for(var j=p-2;j>=k;--j){var t=_12(s[j],f),_33=s[j]/t,_34=f/t;s[j]=t;if(j!=k){f=-_34*e[j-1];e[j-1]=_33*e[j-1]}
if(_4){for(var i=0;i<n;++i){t=_33*V[i][j]+_34*V[i][p-1];V[i][p-1]=-_34*V[i][j]+_33*V[i][p-1];V[i][j]=t}}}
break;case 2:var f=e[k-1];e[k-1]=0;for(var j=k;j<p;++j){var t=_12(s[j],f),_33=s[j]/t,_34=f/t;s[j]=t;f=-_34*e[j];e[j]=_33*e[j];if(_3){for(var i=0;i<m;++i){t=_33*U[i][j]+_34*U[i][k-1];U[i][k-1]=-_34*U[i][j]+_33*U[i][k-1];U[i][j]=t}}}
break;case 3:var _35=Math.max(Math.abs(s[p-1]),Math.abs(s[p-2]),Math.abs(e[p-2]),Math.abs(s[k]),Math.abs(e[k])),_36=s[p-1]/_35,_37=s[p-2]/_35,_38=e[p-2]/_35,_39=s[k]/_35,_40=e[k]/_35,b=((_37+_36)*(_37-_36)+_38*_38)/2,c=_36*_38*_36*_38,_43=0;if(!(b==0&&c==0)){_43=Math.sqrt(b*b+c);if(b<0){_43=-_43}
_43=c/(b+_43)}
var f=(_39+_36)*(_39-_36)+_43,g=_39*_40;for(var j=k;j<p-1;++j){var t=_12(f,g),_33=f/t,_34=g/t;if(j!=k){e[j-1]=t}
f=_33*s[j]+_34*e[j];e[j]=_33*e[j]-_34*s[j];g=_34*s[j+1];s[j+1]=_33*s[j+1];if(_4){for(var i=0;i<n;++i){t=_33*V[i][j]+_34*V[i][j+1];V[i][j+1]=-_34*V[i][j]+_33*V[i][j+1];V[i][j]=t}}
t=_12(f,g);_33=f/t;_34=g/t;s[j]=t;f=_33*e[j]+_34*s[j+1];s[j+1]=-_34*e[j]+_33*s[j+1];g=_34*e[j+1];e[j+1]=_33*e[j+1];if(_3&&j<m-1){for(var i=0;i<m;++i){t=_33*U[i][j]+_34*U[i][j+1];U[i][j+1]=-_34*U[i][j]+_33*U[i][j+1];U[i][j]=t}}}
e[p-2]=f;++_29;break;case 4:if(s[k]<=0){s[k]=-s[k];if(_4){for(var i=0;i<=_28;++i){V[i][k]=-V[i][k]}}}
for(;k<_28;++k){if(s[k]>=s[k+1]){break}
var t=s[k];s[k]=s[k+1];s[k+1]=t;if(_4&&k<n-1){for(var i=0;i<n;++i){t=V[i][k+1];V[i][k+1]=V[i][k];V[i][k]=t}}
if(_3&&k<m-1){for(var i=0;i<m;++i){t=U[i][k+1];U[i][k+1]=U[i][k];U[i][k]=t}}}
_29=0;--p;break}}
return{U:U,s:s,V:V}},$101v:function(_1,_2,_3){var m=_1.length,n=_3.length,l=Math.min(m,n),A=isc.Math.$101o(m,n);for(var i=m;i--;){var _9=_1[i],_10=A[i];for(var j=n;j--;){var _12=0,_13=_3[j];for(var k=l;k--;){_12+=_9[k]*_2[k]*_13[k]}
_10[j]=_12}}
return A},$1436:(function(){var i=0;while(1.0+Math.pow(2,-i)>1.0){++i}
return Math.pow(2,-i+1)})(),$1437:function(_1,_2){this.real=_1;this.imag=_2},$1438:{p:[],qp:[],k:[],qk:[],svk:[],sr:0,si:0,u:0,v:0,a:0,b:0,c:0,d:0,a1:0,a2:0,a3:0,a6:0,a7:0,e:0,f:0,g:0,h:0,szr:0,szi:0,lzr:0,lzi:0,n:0,nn:0},$1439:function(_1,_2){var _3=isc.Math.$1438,_4=[],_5=false;var _6=isc.Math.$1436,_7=_6,_8=_6;var _9=Math.SQRT1_2;var _10=-_9;var _11=Math.cos(94*Math.PI/180);var _12=Math.sin(94*Math.PI/180);var _13=0;while(_13<=_2&&_1[_13]==0){++_13}
_2-=Math.min(_2,_13);if(_2==0){_5=true;_2=0;return{degree:_2,zeros:_4,fail:_5}}
_3.n=_2;_3.nn=_2+1;while(_1[_13+_3.nn-1]==0){var j=_2-_3.n;_4[j]=new isc.Math.$1437(0,0);--_3.nn;--_3.n}
for(var i=_3.nn;i--;){_3.p[i]=_1[_13+i]}
var _16=new Array(101),_17=new Array(101);for(;;){if(_3.n<=2){if(_3.n==2){var _18=isc.Math.$144a(_3.p[0],_3.p[1],_3.p[2]);_4[_2-2]=new isc.Math.$1437(_18.sr,_18.si);_4[_2-1]=new isc.Math.$1437(_18.lr,_18.li)}else if(_3.n==1){_4[_2-1]=new isc.Math.$1437(-_3.p[1]/_3.p[0],0)}
return{degree:_2,zeros:_4,fail:_5}}
var _19=0;var _20=Number.MAX_VALUE;for(var i=_3.nn;i--;){var x=Math.abs(_3.p[i]);if(x>_19){_19=x}
if(x!=0&&x<_20){_20=x}}
var _22=(Number.MIN_VALUE/_6)/_20;if((_22>1&&Number.MAX_VALUE/_22>=_19)||_19>=10){if(_22==0){_22=Number.MIN_VALUE}
var _23=Math.pow(10,Math.floor(Math.log(_22)/Math.LN10+0.5));if(_23!=1){if(_23==0){_23=Math.pow(10,-308)}
for(var i=_3.nn;i--;){_3.p[i]*=_23}}}
for(var i=_3.nn;i--;){_16[i]=Math.abs(_3.p[i])}
_16[_3.nn-1]=-_16[_3.nn-1];var x=Math.exp((Math.log(-_16[_3.nn-1])-Math.log(_16[0]))/_3.n);if(_16[_3.n-1]!=0){var _24=-_16[_3.nn-1]/_16[_3.n-1];if(_24<x){x=_24}}
for(;;){var _24=x/10;var _25=_16[0];for(var i=1;i<_3.nn;++i){_25=_25*_24+_16[i]}
if(_25>0){x=_24}else{break}}
for(var _26=x;Math.abs(_26/x)>5e-3;){var _25=_16[0];var _27=_25;for(var i=1;i<_3.n;++i){_25=_25*x+_16[i];_27=_27*x+_25}
_25=_25*x+_16[_3.nn-1];_26=_25/_27;x-=_26}
var _28=x;var _29=_3.n-1;_3.k[0]=_3.p[0];for(var i=_3.n;(--i)>=1;){_3.k[i]=(_3.nn-i-1)*_3.p[i]/_3.n}
var _30=_3.p[_3.nn-1];var _31=_3.p[_3.n-1];var _32=(_3.k[_3.n-1]==0);for(var _33=5;_33--;){var _34=_3.k[_3.n-1];if(_32){for(var i=0;i<_29;++i){var j=_3.nn-i;_3.k[j]=_3.k[j-1]}
_3.k[0]=0;_32=(_3.k[_3.n-1]==0)}else{var t=-_30/_34;for(var i=0;i<_29;++i){var j=_3.nn-i;_3.k[j]=t*_3.k[j-1]+_3.p[j]}
_3.k[0]=_3.p[0];_32=(Math.abs(_3.k[_3.n-1])<=Math.abs(_31)*_6*10)}}
for(var i=_3.n;i--;){_17[i]=_3.k[i]}
for(var _36=1;_36<=20;++_36){var _37=_11*_9-_12*_10;_10=_12*_9+_11*_10;_9=_37;_3.sr=_28*_9;_3.si=_28*_10;_3.u=_3.sr*-2;_3.v=_28;var _38=isc.Math.$144b(_3,_36*20,_6,_7,_8);if(_38!=0){var j=_2-_3.n;_4[j]=new isc.Math.$1437(_3.szr,_3.szi);_3.nn-=_38;_3.n=_3.nn-1;for(var i=_3.nn;i--;){_3.p[i]=_3.qp[i]}
if(_38!=1){_4[j+1]=new isc.Math.$1437(_3.lzr,_3.lzi)}
break}
for(var i=_3.n;i--;){_3.k[i]=_17[i]}}}
_5=true;_2-=_3.n;return{degree:_2,zeros:_4,fail:_5}},$144b:function(_1,_2,_3,_4,_5){var _6=0.25;var _7=0.25;var _8=_1.sr;var _9=_1.v;var _10=0,_11=0;var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]}
_1.a=_12.a;_1.b=_12.b;var _14=isc.Math.$144d(_1,_3);var _15=0,_16=0,_17=0,_18=0;for(var j=1;j<=_2;++j,_9=_15,_8=_16,_10=_17,_11=_18){isc.Math.$144e(_1,_14,_3);_14=isc.Math.$144d(_1,_3);var _20=isc.Math.$144f(_1,_14);var _21=_20.uu;var _22=_20.vv;_15=_22;_16=0;if(_1.k[_1.n-1]!=0){_16=-_1.p[_1.nn-1]/_1.k[_1.n-1]}
_17=1;_18=1;if(j==1||_14==3){continue}
if(_15!=0){_17=Math.abs((_15-_9)/_15)}
if(_16!=0){_18=Math.abs((_16-_8)/_16)}
var _23=1;if(_17<_10){_23=_17*_10}
var _24=1;if(_18<_11){_24=_18*_11}
var _25=_23<_6;var _26=_24<_7;if(!(_26||_25)){continue}
var _27=_1.u;var _28=_1.v;for(var i=_1.n;i--;){_1.svk[i]=_1.k[i]}
var s=_16;var _30=false;var _31=false;for(var _32=!(_26&&(!_25||_24<_23));true;){if(_32){var _33=isc.Math.$144g(_1,_21,_22,_3,_4,_5);if(_33>0){return _33}
_30=true;_6/=4;if(_31||!_26){_1.u=_27;_1.v=_28;for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]}
if(_25&&!_30){_32=true;continue}else{break}}
for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]}}
var _34=isc.Math.$144h(_1,s,_3,_4,_5);s=_34.sss;var _33=_34.nz;var _35=_34.iflag;if(_33>0){return _33}
_31=true;_7/=4;if(_35!=0){_21=-(s+s);_22=s*s;_32=true;continue}
_1.u=_27;_1.v=_28;for(var i=_1.n;i--;){_1.k[i]=_1.svk[i]}
_32=_25&&!_30;if(!_32){break}}
var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]}
_1.a=_12.a;_1.b=_12.b;_14=isc.Math.$144d(_1,_3)}
return 0},$144g:function(_1,_2,_3,_4,_5,_6){_1.u=_2;_1.v=_3;var _7=false,_8=0,_9=0;var j=0;for(;;){var _11=isc.Math.$144a(1,_1.u,_1.v);_1.szr=_11.sr;_1.szi=_11.si;_1.lzr=_11.lr;_1.lzi=_11.li;if(Math.abs(Math.abs(_1.szr)-Math.abs(_1.lzr))
>Math.abs(_1.lzr)*1e-2)
{return 0}
var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]}
_1.a=_12.a;_1.b=_12.b;var _14=(Math.abs(_1.a-_1.szr*_1.b)+Math.abs(_1.szi*_1.b));var _15=Math.sqrt(Math.abs(_1.v));var _16=Math.abs(_1.qp[0])*2;var t=-_1.szr*_1.b;for(var i=1;i<_1.n;++i){_16=_16*_15+Math.abs(_1.qp[i])}
_16=_16*_15+Math.abs(_1.a+t);_16=((5*_6+4*_5)*_16-
(5*_6+2*_5)*(Math.abs(_1.a+t)+Math.abs(_1.b)*_15)+_5*2*Math.abs(t));if(_14<=_16*20){return 2}
++j;if(j>20){return 0}
if(!(j<2||_8>1e-2||_14<_9||_7)){_8=Math.sqrt(Math.max(_4,_8));_1.u-=_1.u*_8;_1.v+=_1.v*_8;var _12=isc.Math.$144c(_1.nn,_1.u,_1.v,_1.p);for(var i=_1.nn;i--;){_1.qp[i]=_12.q[i]}
_1.a=_12.a;_1.b=_12.b;for(var i=5;i--;){isc.Math.$144e(_1,isc.Math.$144d(_1,_4),_4)}
_7=true;j=0}
_9=_14;isc.Math.$144e(_1,isc.Math.$144d(_1,_4),_4);var _18=isc.Math.$144f(_1,isc.Math.$144d(_1,_4));var _19=_18.uu;var _20=_18.vv;if(_20==0){return 0}
_8=Math.abs((_20-_1.v)/_20);_1.u=_19;_1.v=_20}},$144h:function(_1,_2,_3,_4,_5){var _6=_1.n-1;var s=_2;var _8=0;var _9=0;for(var j=0,_11=0;true;){var _12=_1.p[0];_1.qp[0]=_12;for(var i=1;i<_1.nn;++i){_12=_12*s+_1.p[i];_1.qp[i]=_12}
var _14=Math.abs(_12);var _15=Math.abs(s);var _16=_5/(_4+_5)*Math.abs(_1.qp[0]);for(var i=1;i<_1.nn;++i){_16=_16*_15+Math.abs(_1.qp[i])}
if(_14<=((_4+_5)*_16-_5*_14)*20){_8=1;_1.szr=s;_1.szi=0;return{sss:_2,nz:_8,iflag:_9}}
++j;if(j>10){return{sss:_2,nz:_8,iflag:_9}}
if(!(j<2||Math.abs(t)>Math.abs(s-t)*1e-3||_14<=_11)){_9=1;_2=s;return{sss:_2,nz:_8,iflag:_9}}
_11=_14;var _17=_1.k[0];_1.qk[0]=_17;for(var i=1;i<_1.n;++i){_17=_17*s+_1.k[i];_1.qk[i]=_17}
if(Math.abs(_17)<=Math.abs(_1.k[_1.n-1])*10*_3){_1.k[0]=0;for(var i=_1.n;(--i)>=1;){_1.k[i]=_1.qk[i-1]}}else{var t=-_12/_17;_1.k[0]=_1.qp[0];for(var i=_1.n;(--i)>=1;){_1.k[i]=t*_1.qk[i-1]+_1.qp[i]}}
_17=_1.k[0];for(var i=1;i<_1.n;++i){_17=_17*s+_1.k[i]}
var t=0;if(Math.abs(_17)>Math.abs(_1.k[_1.n-1])*10*_3){t=-_12/_17}
s+=t}},$144d:function(_1,_2){var _3=isc.Math.$144c(_1.n,_1.u,_1.v,_1.k);for(var i=_1.n;i--;){_1.qk[i]=_3.q[i]}
_1.c=_3.a;_1.d=_3.b;var _5=!(Math.abs(_1.c)>Math.abs(_1.k[_1.n-1])*100*_2||Math.abs(_1.d)>Math.abs(_1.k[_1.n-2])*100*_2);if(_5){return 3}else if(Math.abs(_1.d)<Math.abs(_1.c)){_1.e=_1.a/_1.c;_1.f=_1.d/_1.c;_1.g=_1.u*_1.e;_1.h=_1.v*_1.b;_1.a3=_1.a*_1.e+(_1.h/_1.c+_1.g)*_1.b;_1.a1=_1.b-_1.a*(_1.d/_1.c);_1.a7=_1.a+_1.g*_1.d+_1.h*_1.f;return 1}else{_1.e=_1.a/_1.d;_1.f=_1.c/_1.d;_1.g=_1.u*_1.b;_1.h=_1.v*_1.b;_1.a3=(_1.a+_1.g)*_1.e+_1.h*(_1.b/_1.d);_1.a1=_1.b*_1.f-_1.a;_1.a7=(_1.f+_1.u)*_1.a+_1.h;return 2}},$144e:function(_1,_2,_3){if(_2==3){_1.k[0]=_1.k[1]=0;for(var i=_1.n;(--i)>=2;){_1.k[i]=_1.qk[i-2]}}else{var _5=(_2==1?_1.b:_1.a);if(Math.abs(_1.a1)>Math.abs(_5)*_3*10){_1.a7/=_1.a1;_1.a3/=_1.a1;_1.k[0]=_1.qp[0];_1.k[1]=_1.qp[1]-_1.a7*_1.qp[0];for(var i=_1.n;(--i)>=2;){_1.k[i]=(_1.a3*_1.qk[i-2]-_1.a7*_1.qp[i-1]+_1.qp[i])}}else{_1.k[0]=0;_1.k[1]=-_1.a7*_1.qp[0];for(var i=_1.n;(--i)>=2;){_1.k[i]=_1.a3*_1.qk[i-2]-_1.a7*_1.qp[i-1]}}}},$144f:function(_1,_2){if(_2!=3){var _3,_4;if(_2==2){_3=(_1.a+_1.g)*_1.f+_1.h;_4=(_1.f+_1.u)*_1.c+_1.v*_1.d}else{_3=_1.a+_1.u*_1.b+_1.h*_1.f;_4=_1.c+(_1.u+_1.v*_1.f)*_1.d}
var _5=-_1.k[_1.n-1]/_1.p[_1.nn-1];var _6=-(_1.k[_1.n-2]+_5*_1.p[_1.n-1])/_1.p[_1.nn-1];var _7=_1.v*_6*_1.a1;var _8=_5*_1.a7;var _9=_5*_5*_1.a3;var _10=_7-_8-_9;var _11=_4+_5*_3-_10;if(_11!=0){var _12=_1.u-(_1.u*(_9+_8)+_1.v*
(_5*_1.a1+_6*_1.a7))/_11;var _13=_1.v*(_10/_11+1);return{uu:_12,vv:_13}}}
return{uu:0,vv:0}},$144c:function(_1,_2,_3,_4){var q=new Array(_1),b=q[0]=_4[0],a=q[1]=_4[1]-_2*b;for(var i=2;i<_1;++i){var c=_4[i]-_2*a-_3*b;q[i]=c;b=a;a=c}
return{q:q,a:a,b:b}},$144a:function(_1,_2,_3){var _4=0,_5=0,_6=0,_7=0;if(_1==0){_4=0;if(_2!=0){_4=-_3/_2}
_6=0;_5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}}else if(_3==0){_4=0;_6=-_2/_1;_5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}}
var b=_2/2,d=0,e=0;if(Math.abs(b)<Math.abs(_3)){e=_1;if(_3<0){e=-_1}
e=b*(b/Math.abs(_3))-e;d=Math.sqrt(Math.abs(e))*Math.sqrt(Math.abs(_3))}else{e=1-_1/b*(_3/b);d=Math.sqrt(Math.abs(e))*Math.abs(b)}
if(e<0){_4=-b/_1;_6=_4;_5=Math.abs(d/_1);_7=-_5;return{sr:_4,si:_5,lr:_6,li:_7}}else{if(b>=0){d=-d}
_6=(-b+d)/_1;_4=0;if(_6!=0){_4=_3/_6/_1}
_5=0;_7=0;return{sr:_4,si:_5,lr:_6,li:_7}}},$108y:function(_1,_2){if(_1<0){_1=-_1}
if(_2<0){_2=-_2}
if(_1==0){return _2}else if(_2==0){return _1}else{var _3=_1,_4=_2,_5=0;while((_5=_3%_4)!=0){_3=_4;_4=_5}
return _4}},$1615:function(_1){return(isc.isAn.Object(_1)&&isc.isAn.Array(_1.translate)&&_1.translate.length==2&&isc.isA.Number(_1.translate[0])&&isc.isA.Number(_1.translate[1])&&isc.isAn.Array(_1.scale)&&_1.scale.length==2&&isc.isA.Number(_1.scale[0])&&isc.isA.Number(_1.scale[1])&&isc.isA.Number(_1.xShearFactor)&&isc.isA.Number(_1.yShearFactor)&&isc.isA.Number(_1.rotation)&&isc.isAn.Array(_1.rotationCenter)&&_1.rotationCenter.length==2&&isc.isA.Number(_1.rotationCenter[0])&&isc.isA.Number(_1.rotationCenter[1]))},$1616:function(_1,_2,_3,_4,_5,_6){this.translate=_1;this.scale=_2;this.xShearFactor=_3;this.yShearFactor=_4;this.rotation=_5;this.rotationCenter=_6}};isc.defineClass("AffineTransform").addClassProperties({getRotateTransform:function(_1,_2,_3){if(isc.isAn.Array(_2)){_3=_2[1];_2=_2[0]}
if(!(isc.isA.Number(_2)&&isc.isA.Number(_3))){_2=_3=0}
var c=isc.Math.cosdeg(_1),s=isc.Math.sindeg(_1);return isc.AffineTransform.create(c,-s,-c*_2+s*_3+_2,s,c,-s*_2-c*_3+_3)},getTranslateTransform:function(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
if(!(isc.isA.Number(_1)&&isc.isA.Number(_2))){_1=_2=0}
return isc.AffineTransform.create(1,0,_1,0,1,_2)},$147f:isc.AffineTransform.create(),$147g:function(){return isc.AffineTransform.$147f},$146s:{dx:0,dy:0,sx:0,sy:0,kx:0,ky:0,theta:0,cx:0,cy:0,h00:0,h01:0,h02:0,h10:0,h11:0,h12:0},$145r:function(_1,_2,_3){var _4=_1.m00,_5=_1.m01,_6=_1.m02,_7=_1.m10,_8=_1.m11,_9=_1.m12,_10=isc.AffineTransform.$166e(_4,_5,_7,_8),_11=isc.AffineTransform.$146s;if(_10.zeroMatrix){_11.sx=_11.sy=_11.kx=_11.ky=_11.theta=0;_11.dx=_11.h02=_6;_11.dy=_11.h12=_9;_11.h00=_11.h01=_11.h10=_11.h11;return _11}
var _12=_10.reflected,_13=_10.theta,c=_10.cos,s=_10.sin,_16=_10.s00,_17=_10.s01,_18=_10.s10,_19=_10.s11,_20=(_16*_19-_17*_18);var _21=0,_22=0,_23=0,_24=0,_25=0,_26=0;if(_12){var _27=Math.cos(2*_13),_28=Math.sin(2*_13);var _29=_28-s,_30=c-_27,_31=(-_2*_30+_3*_29),_32=(_2*_29+_3*_30);_25=_6-(_16*_31+_17*_32);_26=_9-(_17*_31+_19*_32);_22=_28*_17-_27*_19;_24=(_27*_17+_28*_19)/_22;_21=-_20/_22;_23=(_28*_16-_27*_17)/_21}else{var _29=(_3*s+_2*(1-c)),_30=(-_2*s+_3*(1-c));_25=_6-(_29*_16+_30*_17);_26=_9-(_29*_17+_30*_19);if(_16==0||_19==0||_17==0){_21=_16;_22=_19;_23=_24=0}else if(_20==0){_21=_16;_22=_19;_23=_24=0}else{_21=_20/_19;_22=_19;_23=_17/_21;_24=_17/_22}}
_11.dx=_25;_11.dy=_26;_11.sx=_21;_11.sy=_22;_11.kx=_23;_11.ky=_24;_11.theta=_13;_11.cx=_2;_11.cy=_3;var _33=this.getRotateTransform(-_13*180/Math.PI,_2,_3).rightMultiply(_1);_11.h00=_33.m00;_11.h10=_33.m10;_11.h01=_33.m01;_11.h11=_33.m11;_11.h02=_33.m02;_11.h12=_33.m12;return _11},$166f:{theta:0,cos:0,sin:0,u00:0,u01:0,u10:0,u11:0,h00:0,h01:0,h10:0,h11:0,s00:0,s01:0,s10:0,s11:0,reflected:false,zeroMatrix:false},$166e:function(_1,_2,_3,_4){var _5=isc.AffineTransform.$166f;if(_1==0&&_2==0&&_3==0&&_4==0){_5.theta=0;_5.u00=_5.u11=_5.cos=1;_5.u01=_5.u10=_5.sin=0;_5.h00=_5.h01=_5.h10=_5.h11=0;_5.s00=_5.s01=_5.s10=_5.s11=0;_5.reflected=false;_5.zeroMatrix=true;return _5}
var _6=1e-9,_7=_1*_4-_2*_3,_8=(Math.abs(_7)<_6);var _9=Math.abs(_7),_10=(_7<0?-1:1),_11=_1+_10*_4,_12=_2-_10*_3,_13=_3-_10*_2,_14=_4+_10*_1,_15=_11*_14-_12*_13,_16=Math.sqrt(Math.abs(_15));var _17=_5.reflected=(_15<0),_18=_5.theta=Math.atan2(_13,_11);_11=_5.u00=_11/_16;_12=_5.u01=_12/_16;_13=_5.u10=_13/_16;_14=_5.u11=_14/_16;var _19=_5.h00=(_1*_1+_3*_3+_9)/_16,_20=_5.h01=(_1*_2+_3*_4)/_16,_21=_5.h10=_20,_22=_5.h11=(_2*_2+_4*_4+_9)/_16;var c=_5.cos=Math.cos(_18),s=_5.sin=Math.sin(_18),_25=c*c,_26=s*s,_27=Math.cos(2*_18),_28=Math.sin(2*_18),_29=0,_30=0,_31=0,_32=0;if(_17){_29=_25*_19+_28*_20+_26*_22;_30=-_27*_20+c*s*(_19-_22);_31=_30;_32=_25*_22-_28*_20+_26*_19}else{_29=_25*_19-_28*_20+_26*_22;_30=_27*_20+c*s*(_19-_22);_31=_30;_32=_25*_22+_28*_20+_26*_19}
var _33=(_29*_32-_30*_31);_5.s00=_29;_5.s01=_30;_5.s10=_31;_5.s11=_32;return _5},recompose:function(_1,_2){if(_2==null){_2=isc.AffineTransform.create()}
if(_1==null){return}
var _3=0,_4=0,_5=1,_6=1,_7=0,_8=0,_9=0,_10=0,_11=0;if(isc.isAn.Array(_1.translate)){if(isc.isA.Number(_1.translate[0])){_3=_1.translate[0]}
if(isc.isA.Number(_1.translate[1])){_4=_1.translate[1]}}
if(isc.isAn.Array(_1.scale)){if(isc.isA.Number(_1.scale[0])){_5=_1.scale[0]}
if(isc.isA.Number(_1.scale[1])){_6=_1.scale[1]}}
if(isc.isA.Number(_1.xShearFactor)){_7=_1.xShearFactor}
if(isc.isA.Number(_1.yShearFactor)){_8=_1.yShearFactor}
if(isc.isA.Number(_1.rotation)){_9=_1.rotation*Math.PI/180}
if(isc.isAn.Array(_1.rotationCenter)){if(isc.isA.Number(_1.rotationCenter[0])){_10=_1.rotationCenter[0]}
if(isc.isA.Number(_1.rotationCenter[1])){_11=_1.rotationCenter[1]}}
var _12=Math.sin(_9),_13=Math.cos(_9),_14=_5*_12,_15=_5*_13,_16=_6*_12,_17=_6*_13,_18=_7*_8+1,_19=_8*_11-_10,_20=_8*_10+_11;_2.setTransform(_7*_14+_18*_15,-_18*_14+_7*_15,(_7*_19+_11)*_14+(_7*_20+_10)*_5*(1-_13)+_3,_16+_8*_17,_17-_8*_16,_19*_16+_20*_6*(1-_13)+_4);return _2}});isc.A=isc.AffineTransform.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.m00=1;isc.A.m01=0;isc.A.m02=0;isc.A.m10=0;isc.A.m11=1;isc.A.m12=0;isc.A.addPropertiesOnCreate=false;isc.B.push(isc.A.init=function isc_AffineTransform_init(_1,_2,_3,_4,_5,_6){if(isc.isA.Number(_1)&&isc.isA.Number(_2)&&isc.isA.Number(_3)&&isc.isA.Number(_4)&&isc.isA.Number(_5)&&isc.isA.Number(_6))
{this.m00=_1;this.m01=_2;this.m02=_3;this.m10=_4;this.m11=_5;this.m12=_6}else if(isc.Math.$1615(_1)){return isc.AffineTransform.recompose(_1)}else{var _7=arguments.length;for(var i=0;i<_7;++i){var _9=arguments[i];if(isc.isAn.Object(_9)){isc.addProperties(this,_9)}}}
return this.Super("init",arguments)},isc.A.duplicate=function isc_AffineTransform_duplicate(){return isc.AffineTransform.create(this.m00,this.m01,this.m02,this.m10,this.m11,this.m12)},isc.A.$152v=function isc_AffineTransform__copy(_1){_1.setTransform(this.m00,this.m01,this.m02,this.m10,this.m11,this.m12);return _1},isc.A.getDeterminant=function isc_AffineTransform_getDeterminant(){return this.m00*this.m11-this.m10*this.m01},isc.A.getInverse=function isc_AffineTransform_getInverse(_1){var _2=this.getDeterminant(),_3=isc.isA.Number(_2)&&_2!=0;if(!_3)return null;if(_1==null){_1=isc.AffineTransform.create()}
_1.setTransform(this.m11/_2,-this.m01/_2,(this.m01*this.m12-this.m11*this.m02)/_2,-this.m10/_2,this.m00/_2,(this.m10*this.m02-this.m00*this.m12)/_2);return _1},isc.A.leftMultiply=function isc_AffineTransform_leftMultiply(_1){var _2=this.m00,_3=this.m10;this.m00=_1.m00*_2+_1.m01*_3;this.m10=_1.m10*_2+_1.m11*_3;_2=this.m01;_3=this.m11;this.m01=_1.m00*_2+_1.m01*_3;this.m11=_1.m10*_2+_1.m11*_3;_2=this.m02;_3=this.m12;this.m02=_1.m00*_2+_1.m01*_3+_1.m02;this.m12=_1.m10*_2+_1.m11*_3+_1.m12;return this},isc.A.rightMultiply=function isc_AffineTransform_rightMultiply(_1){var _2=this.m00,_3=this.m01;this.m00=_2*_1.m00+_3*_1.m10;this.m01=_2*_1.m01+_3*_1.m11;this.m02=_2*_1.m02+_3*_1.m12+this.m02;_2=this.m10;_3=this.m11;this.m10=_2*_1.m00+_3*_1.m10;this.m11=_2*_1.m01+_3*_1.m11;this.m12=_2*_1.m02+_3*_1.m12+this.m12;return this},isc.A.preRotate=function isc_AffineTransform_preRotate(_1,_2,_3){if(isc.isAn.Array(_2)){_3=_2[1];_2=_2[0]}
if(!(isc.isA.Number(_2)&&isc.isA.Number(_3))){_2=_3=0}
return this.leftMultiply(isc.AffineTransform.getRotateTransform(_1,_2,_3))},isc.A.rotate=function isc_AffineTransform_rotate(_1,_2,_3){if(isc.isAn.Array(_2)){_3=_2[1];_2=_2[0]}
if(!(isc.isA.Number(_2)&&isc.isA.Number(_3))){_2=_3=0}
return this.rightMultiply(isc.AffineTransform.getRotateTransform(_1,_2,_3))},isc.A.preScale=function isc_AffineTransform_preScale(_1,_2){this.m00*=_1;this.m01*=_1;this.m02*=_1;this.m10*=_2;this.m11*=_2;this.m12*=_2;return this},isc.A.scale=function isc_AffineTransform_scale(_1,_2){this.m00*=_1;this.m01*=_2;this.m10*=_1;this.m11*=_2;return this},isc.A.preShear=function isc_AffineTransform_preShear(_1,_2){var _3=this.m00,_4=this.m01,_5=this.m02;this.m00+=_1*this.m10;this.m01+=_1*this.m11;this.m02+=_1*this.m12;this.m10+=_2*_3;this.m11+=_2*_4;this.m12+=_2*_5;return this},isc.A.shear=function isc_AffineTransform_shear(_1,_2){var _3=this.m00,_4=this.m10;this.m00+=_2*this.m01;this.m01+=_1*_3;this.m10+=_2*this.m11;this.m11+=_1*_4;return this},isc.A.preTranslate=function isc_AffineTransform_preTranslate(_1,_2){this.m02+=_1;this.m12+=_2;return this},isc.A.translate=function isc_AffineTransform_translate(_1,_2){this.m02+=this.m00*_1+this.m01*_2;this.m12+=this.m10*_1+this.m11*_2;return this},isc.A.isTranslate=function isc_AffineTransform_isTranslate(_1){_1=_1||1e-9;return Math.abs(this.m00-1)<_1&&Math.abs(this.m01)<_1&&Math.abs(this.m10)<_1&&Math.abs(this.m11-1)<_1},isc.A.preXShear=function isc_AffineTransform_preXShear(_1){this.m00+=_1*this.m10;this.m01+=_1*this.m11;this.m02+=_1*this.m12;return this},isc.A.xShear=function isc_AffineTransform_xShear(_1){this.m01+=_1*this.m00;this.m11+=_1*this.m10;return this},isc.A.preYShear=function isc_AffineTransform_preYShear(_1){this.m10+=_1*this.m00;this.m11+=_1*this.m01;this.m12+=_1*this.m02;return this},isc.A.yShear=function isc_AffineTransform_yShear(_1){this.m00+=_1*this.m01;this.m10+=_1*this.m11;return this},isc.A.transform=function isc_AffineTransform_transform(_1,_2,_3){if(isc.isAn.Array(_1)){_3=_2;_2=_1[1];_1=_1[0]}
if(!isc.isAn.Array(_3)){_3=new Array(2)}
_3[0]=this.m00*_1+this.m01*_2+this.m02;_3[1]=this.m10*_1+this.m11*_2+this.m12;return _3},isc.A.setTransform=function isc_AffineTransform_setTransform(_1,_2,_3,_4,_5,_6){this.m00=_1;this.m01=_2;this.m02=_3;this.m10=_4;this.m11=_5;this.m12=_6},isc.A.decompose=function isc_AffineTransform_decompose(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}
if(!(isc.isA.Number(_1)&&isc.isA.Number(_2))){_1=_2=0}
var _3=isc.AffineTransform.$145r(this,_1,_2);return new isc.Math.$1616([_3.dx,_3.dy],[_3.sx,_3.sy],_3.kx,_3.ky,_3.theta*180/Math.PI,[_1,_2])});isc.B._maxIndex=isc.C+23;isc.AffineTransform.getPrototype().toString=function(){return isc.StringBuffer.concat("[",this.m00.toFixed(5),", ",this.m01.toFixed(5),", ",this.m02.toFixed(5),"]\n","[",this.m10.toFixed(5),", ",this.m11.toFixed(5),", ",this.m12.toFixed(5),"]")};isc.defineClass("DateUtil");isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$1329=function isc_c_DateUtil__min(_1,_2){return(_1.getTime()<_2.getTime()?_1:_2)},isc.A.$133a=function isc_c_DateUtil__max(_1,_2){return(_1.getTime()<_2.getTime()?_2:_1)},isc.A.format=function isc_c_DateUtil_format(_1,_2,_3){if(!_1)return"";if(!isc.isA.String(_2)){isc.logWarn("Cannot use Date format '"+_2+"' - not a String");return _1.toString()}
var _4=_1.duplicate();if(_3||isc.Time.$854){_4=isc.DateUtil.$179o(_4)}
var p=function p(_8){return(_8.toString().length==1)?"0"+_8:_8};return _2?_2.replace(/dd?d?d?|EE?E?E?|MM?M?M?|yy?y?y?|YY?Y?Y?|LL?L?L?|ww?|CC?|cc?|DD?|hh?|HH?|mm?|ss?|SS?S?|a|u|'[^']*'/g,function(_8){switch(_8){case"hh":var _6=_4.getHours();if(_2.contains("a")&&_6==0)_6=12;return p(_6<13?_6:(_6-12));case"h":var _6=_4.getHours();if(_2.contains("a")&&_6==0)_6=12;return _6<13?_6:(_6-12);case"HH":var _6=_4.getHours();if(_2.contains("a")&&_6==0)_6=12;return p(_6);case"H":var _6=_4.getHours();if(_2.contains("a")&&_6==0)_6=12;return _6;case"mm":return p(_4.getMinutes());case"m":return _4.getMinutes();case"ss":return p(_4.getSeconds());case"s":return _4.getSeconds();case"SSS":var _7=_4.getMilliseconds();return _7>=100?_7:(_7>=10?"0"+_7:"00"+_7);case"SS":var _7=_4.getMilliseconds();return _7>=10?_7:"0"+_7;case"S":return _4.getMilliseconds();case"yyyy":return _4.getFullYear();case"yy":return _4.getFullYear().toString().substring(2,4);case"YYYY":return isc.DateUtil.getWeekNumber(_4)[0];case"YY":return isc.DateUtil.getWeekNumber(_4)[0].toString().substring(2,4);case"dddd":case"EEEE":return _4.getDayName();case"ddd":case"E":case"EE":case"EEE":return _4.getShortDayName();case"dd":return p(_4.getDate());case"d":return _4.getDate().toString();case"DD":return p(isc.DateUtil.getDayNumber(_4));case"D":return isc.DateUtil.getDayNumber(_4).toString();case"u":return(_4.getDay()||7)+"";case"MMMM":return _4.getMonthName();case"MMM":return _4.getShortMonthName();case"MM":return p((_4.getMonth()+1));case"M":return _4.getMonth()+1;case"w":return isc.DateUtil.getWeekNumber(_4)[1];case"ww":return p(isc.DateUtil.getWeekNumber(_4)[1]);case"a":return _4.getHours()<12?isc.Time.AMIndicator:isc.Time.PMIndicator;case"''":return"'";default:return _8[0]==="'"&&_8[_8.length-1]==="'"?_8.slice(1,-1):""}}):""},isc.A.getWeekNumber=function isc_c_DateUtil_getWeekNumber(_1){var d=new Date(_1);d.setHours(0,0,0);d.setDate(d.getDate()+4-(d.getDay()||7));var _3=new Date(d.getFullYear(),0,1);var _4=Math.ceil((((d-_3)/86400000)+1)/7);return[d.getFullYear(),_4]},isc.A.getDayNumber=function isc_c_DateUtil_getDayNumber(_1){var d=new Date(_1);d.setHours(0,0,0);var _3=new Date(d.getFullYear(),0,1);return Math.ceil(((d-_3)/86400000)+1)},isc.A.createLogicalDate=function isc_c_DateUtil_createLogicalDate(_1,_2,_3,_4){var d=new Date();d.setHours(12,0,0,0);_1=(_1!=null?_1:d.getFullYear());_2=(_2!=null?_2:d.getMonth());_3=(_3!=null?_3:d.getDate());d.setFullYear(_1,_2,_3);if(_4){var _6=(d.getFullYear()==_1&&d.getMonth()==_2&&d.getDate()==_3);if(!_6)return null}
d.logicalDate=true;return d},isc.A.getDisplayYear=function isc_c_DateUtil_getDisplayYear(_1){return this.getLogicalDateOnly(_1).getFullYear()},isc.A.getDisplayMonth=function isc_c_DateUtil_getDisplayMonth(_1){return this.getLogicalDateOnly(_1).getMonth()},isc.A.getDisplayDay=function isc_c_DateUtil_getDisplayDay(_1){return this.getLogicalDateOnly(_1).getDate()},isc.A.getDisplayHours=function isc_c_DateUtil_getDisplayHours(_1){return this.getLogicalTimeOnly(_1).getHours()},isc.A.getDisplayMinutes=function isc_c_DateUtil_getDisplayMinutes(_1){return this.getLogicalTimeOnly(_1).getMinutes()},isc.A.getDisplaySeconds=function isc_c_DateUtil_getDisplaySeconds(_1){return this.getLogicalTimeOnly(_1).getSeconds()},isc.A.getDisplayMilliseconds=function isc_c_DateUtil_getDisplayMilliseconds(_1){return this.getLogicalTimeOnly(_1).getMilliseconds()});isc.B._maxIndex=isc.C+13;isc.addGlobal("timeStamp",function(){return new Date().getTime()});isc.addGlobal("timestamp",isc.timeStamp);Date.prototype.Class="Date";Date.Class="Date";isc.Date=Date;isc.A=isc.DateUtil;isc.A.INVALID_DATE_STRING="Invalid date format";isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$64g={toUSShortDate:"MDY",toUSShortDateTime:"MDY",toUSShortDatetime:"MDY",toEuropeanShortDate:"DMY",toEuropeanShortDateTime:"DMY",toEuropeanShortDatetime:"DMY",toJapanShortDate:"YMD",toJapanShortDateTime:"YMD",toJapanShortDatetime:"YMD"};isc.A.$100d=(1000*60*60*24);isc.A.$100s=0;isc.A.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];isc.A.derivedShortMonthNameLength=3;isc.A.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];isc.B.push(isc.A.newInstance=function isc_c_DateUtil_newInstance(_1,_2,_3,_4,_5,_6,_7){return new Date(_1,_2,_3,_4,_5,_6,_7)},isc.A.create=function isc_c_DateUtil_create(_1,_2,_3,_4,_5,_6,_7){var _8;if(_1===_8)return new Date();if(_2===_8)return new Date(_1);if(_3===_8)_3=0;if(_4===_8)_4=0;if(_5===_8)_5=0;if(_6===_8)_6=0;if(_7===_8)_7=0;return new Date(_1,_2,_3,_4,_5,_6,_7)},isc.A.createLogicalTime=function isc_c_DateUtil_createLogicalTime(_1,_2,_3,_4){return isc.Time.createLogicalTime(_1,_2,_3,_4)},isc.A.createDatetime=function isc_c_DateUtil_createDatetime(_1,_2,_3,_4,_5,_6,_7,_8){var _9=_4!=null,_10=_5!=null,_11=_6!=null;if(isc.isA.String(_4))_4=parseInt(_4||12,10);if(isc.isA.String(_5))_5=parseInt(_5||0,10);if(isc.isA.String(_6))_6=parseInt(_6||0,10);var _12;if(!isc.Time.$854){_12=new Date(_1,_2,_3);if(_9){if(_7!=null)_12.setHours(_4,_5,_6,_7);else if(_11)_12.setHours(_4,_5,_6);else if(_10)_12.setHours(_4,_5);else _12.setHours(_4)}
if(!_8)return _12;var _13=(_12.getFullYear()==_1&&_12.getMonth()==_2&&_12.getDate()==_3&&(!_9||_12.getHours()==_4)&&(!_10||_12.getMinutes()==_5)&&(!_11||_12.getSeconds()==_6));return(_13?_12:null)}else{if(_4==null)_4=0;if(_5==null)_5=0;if(_6==null)_6=0;if(_7==null)_7=0;_12=new Date(Date.UTC(_1,_2,_3,_4,_5,_6,_7));if(_8){var _13=(_12.getUTCFullYear()==_1&&_12.getUTCMonth()==_2&&_12.getUTCDate()==_3&&(!_9||_12.getUTCHours()==_4)&&(!_10||_12.getUTCMinutes()==_5)&&(!_11||_12.getUTCSeconds()==_6));if(!_13)_12=null}
if(_12!=null){_12.$68d(-isc.Time.UTCHoursDisplayOffset,-isc.Time.UTCMinutesDisplayOffset);_12.$68d(-isc.Time.getUTCHoursDisplayOffset(_12,0),-isc.Time.getUTCMinutesDisplayOffset(_12,0))}
return _12}},isc.A.$179o=function isc_c_DateUtil__getDisplayOffsetDate(_1){if(_1==null)return null;var _2=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_2.$68d(0,_2.getTimezoneOffset());return _2},isc.A.getLogicalDateOnly=function isc_c_DateUtil_getLogicalDateOnly(_1){if(!isc.isA.Date(_1)){isc.logWarn("getLogicalDateOnly() passed invalid value:"+_1+". Returning null.");return null}
var _2,_3,_4;if(_1.logicalDate){_2=_1.getFullYear();_3=_1.getMonth();_4=_1.getDate()}else{var _5=this.$179o(_1);_3=_5.getMonth();_4=_5.getDate();_2=_5.getFullYear()}
return this.createLogicalDate(_2,_3,_4)},isc.A.getLogicalTimeOnly=function isc_c_DateUtil_getLogicalTimeOnly(_1){if(!isc.isA.Date(_1)){isc.logWarn("getLogicalTimeOnly() passed invalid value:"+_1+". Returning null.");return null}
var _2=0,_3=0;if(!_1.logicalTime){_2=isc.Time.getUTCHoursDisplayOffset(_1);_3=isc.Time.getUTCMinutesDisplayOffset(_1)+_1.getTimezoneOffset()}
return this.createLogicalTime(_1.getHours()+_2,_1.getMinutes()+_3,_1.getSeconds(),_1.getMilliseconds())},isc.A.combineLogicalDateAndTime=function isc_c_DateUtil_combineLogicalDateAndTime(_1,_2){var _3=isc.isA.Date(_1),_4=isc.isA.Date(_2);if(!_3||!_4){if(_3){return this.createDatetime(_1.getFullYear(),_1.getMonth(),_1.getDate(),0,0,0)}else if(_4){return _2.duplicate()}else{isc.logWarn("combineLogicalDateAndTime passed invalid parameters:"+_1+" and "+_2+". Returning null.");return null}}
var _5=_2.getHours(),_6=_2.getMinutes();return this.createDatetime(_1.getFullYear(),_1.getMonth(),_1.getDate(),_5,_6,_2.getSeconds(),_2.getMilliseconds())},isc.A.compareDates=function isc_c_DateUtil_compareDates(_1,_2,_3){if(_1==_2)return 0;if(_3){_1=this.getAbsoluteDate(_1);_2=this.getAbsoluteDate(_2)}
var _4=(isc.isA.Date(_1)?_1.getTime():0),_5=(isc.isA.Date(_2)?_2.getTime():0);return _4>_5?-1:(_5>_4?1:0)},isc.A.compareLogicalDates=function isc_c_DateUtil_compareLogicalDates(_1,_2,_3){if(_1==_2)return 0;if(!isc.isA.Date(_1)||!isc.isA.Date(_2)){if(_3){_1=this.getAbsoluteDate(_1,null,null,true);_2=this.getAbsoluteDate(_2,null,null,true)}
if(!isc.isA.Date(_1)||!isc.isA.Date(_2)){return false}}
var _4=_1.getFullYear(),_5=_1.getMonth(),_6=_1.getDate(),_7=_2.getFullYear(),_8=_2.getMonth(),_9=_2.getDate();var _10=_4*10000+_5*100+_6,_11=_7*10000+_8*100+_9;return _10>_11?-1:(_11>_10?1:0)},isc.A.getJulianDayNumber=function isc_c_DateUtil_getJulianDayNumber(_1,_2,_3){var y=_1,m=_2+1,d=_3;if(m<=2){--y;m+=12}
var a=parseInt(y/100),b=parseInt(a/4),c=2-a+b,e=parseInt(365.25*(y+4716)),f=parseInt(30.6001*(m+1))
return c+d+e+f-1524},isc.A.$1091=function isc_c_DateUtil__getWeekdayCounts(_1){_1=_1||this.getWeekendDays();var _2=_1.$1092;if(!_2){var _3={},_4=0;for(var i=0;i<_1.length;++i){if(!_3[_1[i]]){++_4;_3[_1[i]]=true}}
_2=[];for(var d=0;d<=6;++d){var _7=0;var _8=[0];for(var _9=1;_9<7;++_9){if(!_3[(d+_9-1)%7])++_7;_8.push(_7)}
_2[d]=_8}
_2.$1093=_4;_1.$1092=_2}
return _2},isc.A.$1094=function isc_c_DateUtil__getDayDiff(_1,_2,_3,_4,_5){var _6,_7;var _8=this.compareDates(_1,_2);var _9=(_8>0?1:-1);if(_8>=0){if(_4!==false){_6=this.getLogicalDateOnly(_1);_7=this.getLogicalDateOnly(_2)}else{_6=_1;_7=_2}}else{if(_4!==false){_6=this.getLogicalDateOnly(_2);_7=this.getLogicalDateOnly(_1)}else{_6=_2;_7=_1}}
var _10=this.getJulianDayNumber(_6.getFullYear(),_6.getMonth(),_6.getDate()),_11=this.getJulianDayNumber(_7.getFullYear(),_7.getMonth(),_7.getDate());if(_3){var _12=_11-_10;var _13=this.$1091(_5);return _9*(parseInt(_12/7)*(7-_13.$1093)+_13[_6.getDay()][_12%7])}else{return _9*(_11-_10)}},isc.A.setInputFormat=function isc_c_DateUtil_setInputFormat(_1){this.$ei=_1},isc.A.getInputFormat=function isc_c_DateUtil_getInputFormat(){if(this.$ei!=null)return this.$ei;return this.mapDisplayFormatToInputFormat("toShortDate")},isc.A.mapDisplayFormatToInputFormat=function isc_c_DateUtil_mapDisplayFormatToInputFormat(_1){if(_1==null||_1=="toShortDate"){_1=Date.prototype.$el}else if(_1=="toNormalDate"){_1=Date.prototype.formatter}
if(isc.isA.Function(_1)){isc.Log.logInfo("Unable to determine input format associated with display format function - returning default input format","Date");return this.$ei||"MDY"}
var _2=this.$64g[_1];if(_2!=null&&isc.isA.String(_2))return _2;if(_1=="toSerializeableDate")return this.parseSchemaDate;isc.Log.logInfo("Unable to determine input format associated with display format "+_1+" - returning default input format","Date");return this.$ei||"MDY"},isc.A.parseInput=function isc_c_DateUtil_parseInput(_1,_2,_3,_4,_5){var _6=(_5==false);if(isc.isA.Date(_1))return _1;if(!isc.isA.String(_1)||isc.isAn.emptyString(_1)){return null}
var _7=_1;_1=_1.trim();if(_1.startsWith("$$DATESTAMP$$:")){return new Date(parseInt(_1.substring(14)))}
if(_1.startsWith("$$DATE$$:")){_1=_1.substring(9).trimLeft()}
if(_2==null)_2=this.getInputFormat();if(isc.isA.Function(Date[_2]))_2=Date[_2];if(isc.isA.Function(_2)){return _2(_7,_3,_4)}
var _8=this.$ej(_1,_2);if(_8!=null){var _9=_8[0],_10=_9&&_9.contains("-");if(_9&&_10)_9=_9.replaceAll("-","");if(_9){if(_9.length<=2){_9=parseInt(_9,10);if(_3!=null){if(_9<_3)_9+=2000;else _9+=1900}
_8[0]=_9}else if(_9.length==3){_8[0]="0"+_9.toString()}else{_8[0]=_9}
if(_10)_8[0]="-"+_8[0]}
if(_6){return this.createLogicalDate(_8[0],_8[1],_8[2],_4)}else{return this.createDatetime(_8[0],_8[1],_8[2],_8[3],_8[4],_8[5],null,_4)}}else{return null}},isc.A.isDatetimeString=function isc_c_DateUtil_isDatetimeString(_1,_2){_2=_2||this.getInputFormat();if(!isc.isA.Function(_2)){var _3=this.$ej(_1,_2,false);if(_3==null)return false;return(_3[3]!=null&&!isc.isA.emptyString(_3[3]))&&(_3[4]!=null&&!isc.isA.emptyString(_3[4]))}
if(!_1.contains(" "))return false;var _4=_1.lastIndexOf(":");if(_4<1)return false;if(isNaN(_1.substring(_4-1,_4))||isNaN(_1.substring(_4+1,_4+2)))
{return false}
return true},isc.A.parseSchemaDate=function isc_c_DateUtil_parseSchemaDate(_1){if(isc.isA.Date(_1))return _1;if(!isc.isA.String(_1))_1=(_1.toString?_1.toString():_1+"");var _2=_1.match(/(\d{4})[\/-](\d{2})[\/-](\d{2})([T ](\d{2}):(\d{2})(:(\d{2}))?)?(\.(\d+))?([+-]\d\d?:\d{2}|Z)?/);if(_2==null)return null;_1=_1.trim();var _3=8;var _4=10;var _5=11;var _6;if(!_2[4]){if(_1.length>10&&_1.contains(" "))return null;if(_2[2]>12){var _7=_2[3];_2[3]=_2[2];_2[2]=_7}
_6=this.createLogicalDate(_2[1],_2[2]-1,_2[3])}else if(!_2[_4]){_6=new Date(Date.UTC(_2[1],_2[2]-1,_2[3],_2[5],_2[6],_2[_3]||0))}else{var _8=_2[_4];if(_8.length!=3){var _9=Math.pow(10,3-_8.length);_8=Math.round(parseInt(_8,10)*_9)}
_6=new Date(Date.UTC(_2[1],_2[2]-1,_2[3],_2[5],_2[6],_2[_3]||0,_8))}
if(_2[_5]&&_2[_5].toLowerCase()!="z"){var _10=_2[_5].split(":"),H=_10[0],_12=H&&H.startsWith("-"),M=_10[1];H=parseInt(H,10);M=parseInt(M,10);var _14=_6.getTime();if(isc.isA.Number(H))_14-=(3600000*H);if(isc.isA.Number(M))_14-=(60000*M*(_12?-1:1));_6.setTime(_14)}
return _6},isc.A.parseServerDate=function isc_c_DateUtil_parseServerDate(_1,_2,_3){return this.createLogicalDate(_1,_2,_3)},isc.A.parseServerTime=function isc_c_DateUtil_parseServerTime(_1,_2,_3){return this.createLogicalTime(_1,_2,_3)},isc.A.$ej=function isc_c_DateUtil__splitDateString(_1,_2,_3){var _4=isc.isA.Function(_2);if(_3==null)_3=true;var _5,_6,_7,_8,_9,_10;var _11=_2&&!_4?_2.indexOf("M"):0,_12=_2&&!_4?_2.indexOf("D"):1,_13=_2&&!_4?_2.indexOf("Y"):2;if(isc.Browser.isSafari&&isc.Browser.safariVersion<=312){var _14=this.$ek(_1,_11,_12,_13,_3);_7=_14[0];_5=_14[1];_6=_14[2];_8=_14[3];_9=_14[4];_10=_14[5]}else{var _15=new RegExp(/^\s*(-?\d{1,4})[^\d](-?\d{1,4})[^\d](-?\d{1,4})([^\d](\d{1,2})[^\d](\d\d)[^\d]?(\d\d)?)?\s*([ap]m?)?\s*$/),_16=_1.match(_15);if(_16==null)return null;_5=_16[_11+1]-1;_6=_16[_12+1];_7=_16[_13+1];_8=_16[5];if(_3&&_8==null)_8=0;_9=_16[6];if(_3&&_16[6]==null)_9=0;_10=_16[7];if(_3&&_16[7]==null)_10=0;if(_16[8]){_8=parseInt(_8);if(_16[8].toLowerCase().startsWith("a")){if(_8==12)_8=0}else{if(_8<12)_8+=12}}}
var _17=_3?isc.isA.Number(_7-_5-_6-_8-_9-_10):isc.isA.Number(_7-_5-_6);if(_17){return([_7,_5,_6,_8!=null?_8%24:null,_9,_10])}
else return null},isc.A.setNormalDisplayFormat=function isc_c_DateUtil_setNormalDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1))
{Date.prototype.formatter=_1}},isc.A.setNormalDateDisplayFormat=function isc_c_DateUtil_setNormalDateDisplayFormat(_1){this.setNormalDisplayFormat(_1)},isc.A.setNormalDatetimeDisplayFormat=function isc_c_DateUtil_setNormalDatetimeDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1))
{Date.prototype.datetimeFormatter=_1}},isc.A.setShortDisplayFormat=function isc_c_DateUtil_setShortDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1))
{Date.prototype.$el=_1}},isc.A.setDefaultDateSeparator=function isc_c_DateUtil_setDefaultDateSeparator(_1){Date.prototype.$em=[,,,,_1,,,,,_1,,,,null];Date.prototype.$665=_1},isc.A.getDefaultDateSeparator=function isc_c_DateUtil_getDefaultDateSeparator(){if(Date.prototype.$665)return Date.prototype.$665;else return"/"},isc.A.setShortDatetimeDisplayFormat=function isc_c_DateUtil_setShortDatetimeDisplayFormat(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1)||isc.isA.String(_1))
{Date.prototype.$68e=_1}},isc.A.setFiscalCalendar=function isc_c_DateUtil_setFiscalCalendar(_1){if(!_1.fiscalYears)_1.fiscalYears=[];Date.prototype.fiscalCalendar=_1;this.$100e(new Date())},isc.A.getFiscalCalendar=function isc_c_DateUtil_getFiscalCalendar(){if(!Date.prototype.fiscalCalendar.fiscalYears){Date.prototype.fiscalCalendar.fiscalYears=[]}
return Date.prototype.fiscalCalendar},isc.A.getFiscalStartDate=function isc_c_DateUtil_getFiscalStartDate(_1,_2){var _3=this.$100e(_1,_2);return new Date(_3.year,_3.month,_3.date)},isc.A.getFiscalEndDate=function isc_c_DateUtil_getFiscalEndDate(_1,_2){var _3=this.$100e(_1,_2),_4=this.getFiscalYear(_3.fiscalYear+1);if(_4.year<_3.fiscalYear)_4=this.getFiscalYear(_4.fiscalYear+1);var _5=new Date(_4.startDate.getTime()-1);return _5},isc.A.$100e=function isc_c_DateUtil__getFiscalYearObjectForDate(_1,_2){_2=_2||this.getFiscalCalendar();if(!_2.fiscalYears)_2.fiscalYears=[];var _3=_2.fiscalYears;var _4=_2.defaultDate,_5=_2.defaultMonth;if(_4==null)_4=1;if(_5==null)_5=0;var _6=true;for(var i=0;i<_3.length;i++){if(_3[i].startDate==null||_3[i].endDate==null){_6=false;_3[i].startDate=this.createDatetime(_3[i].year,_3[i].month,_3[i].date)}}
_3.setSort({property:"startDate",direction:"ascending"});if(!_6){for(var i=0;i<_3.length;i++){var _8;var _9=_3[i],_10=_3[i+1];if(_10&&(_10.year==_9.year||(_10.year==_9.year+1))){_9.endDate=new Date(_10.startDate.getTime()-1)}else{_9.endDate=this.createDatetime(_9.year+1,_5,_4);_9.endDate.setTime(_9.endDate.getTime()-1)}}}
if(!isc.isA.Date(_1)){var _11=_3.find("fiscalYear",_1);if(_11!=null){return _11}
var _12=_1;if(_2.defaultYearMode!="start"&&(_5!=0||_4!=1))
{_12-=1}
var _13={year:_12,fiscalYear:_1,month:_5,date:_4,startDate:this.getStartOf(new Date(_12,_5,_4),"d")};return _13}else{var _14=_1.getTime();_3.sortByProperty("startDate",Array.ASCENDING);for(var i=0;i<_3.length;i++){if(_14<_3[i].startDate.getTime())break;if(_14<=_3[i].endDate.getTime()){return _3[i]}}
var _15=_1.getFullYear(),_16=this.createDatetime(_15,_5,_4);if(_16.getTime()>_14){_15-=1;_16=this.createDatetime(_15,_5,_4)}
var _8=this.createDatetime(_15+1,_5,_4);_8.setTime(_8.getTime()-1);var _17=_8.getTime();for(var i=0;i<_3.length;i++){if(_17<_3[i].endDate.getTime()){continue}else{if(_17>_3[i].startDate.getTime()){_8=new Date(_3[i].startDate.getTime()-1)}else break}}
var _18=_15;if(_8.getFullYear()!=_16.getFullYear()&&_2.defaultYearMode!="start")
{if(_8.getFullYear()<_1.getFullYear()){_18=_1.getFullYear();var _19=new Date(_18,_5,_4);if(_1.getTime()>_19.getTime()){_18++}}else{_18=_8.getFullYear()}}
return{year:_15,fiscalYear:_18,date:_4,month:_5}}},isc.A.setShowChooserFiscalYearPickers=function isc_c_DateUtil_setShowChooserFiscalYearPickers(_1){isc.DateItem.addProperties({showChooserFiscalYearPicker:_1});isc.DateChooser.addProperties({showFiscalYearChooser:_1})},isc.A.setShowChooserWeekPickers=function isc_c_DateUtil_setShowChooserWeekPickers(_1){isc.DateItem.addProperties({showChooserWeekPicker:_1});isc.DateChooser.addProperties({showWeekChooser:_1})},isc.A.setFirstDayOfWeek=function isc_c_DateUtil_setFirstDayOfWeek(_1){if(isc.DateChooser){if(_1==null||_1<0||_1>6)
_1=0;isc.DateChooser.addProperties({firstDayOfWeek:_1})}},isc.A.getFirstDayOfWeek=function isc_c_DateUtil_getFirstDayOfWeek(){if(isc.DateChooser){return isc.DateChooser.getInstanceProperty("firstDayOfWeek")}
return 0},isc.A.getFiscalYear=function isc_c_DateUtil_getFiscalYear(_1,_2){return this.$100e(_1,_2)},isc.A.getFiscalWeek=function isc_c_DateUtil_getFiscalWeek(_1,_2,_3){_2=_2||this.getFiscalCalendar();var _4=this.getFiscalStartDate(_1,_2),_5=this.getLogicalDateOnly(_4),_6=_1.logicalDate?_1:this.getLogicalDateOnly(_1);return this.$100t(_6,_5,_3)},isc.A.$100t=function isc_c_DateUtil__getWeekOffset(_1,_2,_3){if(_3==null){_3=isc.DateChooser.getInstanceProperty("firstDayOfWeek")}
var _4=this.getStartOf(_1,"w",true,_3);var _5=(_4.getTime()-_2.getTime())/(24*60*60000);var _6=Math.floor(_5/7);return _6+1},isc.A.setLocaleStringFormatter=function isc_c_DateUtil_setLocaleStringFormatter(_1){if(isc.isA.Function(Date.prototype[_1])||isc.isA.Function(_1))
Date.prototype.localeStringFormatter=_1},isc.A.getShortMonthNames=function isc_c_DateUtil_getShortMonthNames(_1){var _2=this.shortMonthNames||Date.shortMonthNames;if(_2==null)_2=this.$41t;if(_2==null){var _3=this.$41t=[];for(var i=0;i<12;i++){var _5=this.createLogicalDate(2000,i,2);_3[i]=_5.deriveShortMonthName(this.derivedShortMonthNameLength)}
_2=this.$41t}
var _6=[];for(var i=0;i<12;i++){if(!_1){_6[i]=_2[i]}else{_6[i]=_2[i].substring(0,_1)}}
return _6},isc.A.getMonthNames=function isc_c_DateUtil_getMonthNames(){var _1=Date.monthNames||this.monthNames;if(_1==null)_1=this.$124r;if(_1==null){var _2=this.$124r=[];for(var i=0;i<12;i++){var _4=this.createLogicalDate(2000,i,2);_2[i]=this.deriveMonthName()}
_1=this.$124r}
return _1},isc.A.getShortDayNames=function isc_c_DateUtil_getShortDayNames(_1){_1=_1||3;var _2=this.shortDayNames||Date.shortDayNames;if(_2==null)_2=this.$41s;if(_2==null){this.$41s=[];var _3=new Date();_3.setDate(1);if(_3.getDay()>0)_3.setDate(_3.getDate()+(7-_3.getDay()));var _4=_3.getDate();for(var i=0;i<7;i++){_3.setDate(_4+i);this.$41s[i]=_3.deriveShortDayName()}
_2=this.$41s}
var _6=[];for(var i=0;i<7;i++){_6[i]=_2[i].substring(0,_1)}
return _6},isc.A.getDayNames=function isc_c_DateUtil_getDayNames(){var _1=Date.dayNames||this.dayNames;if(_1==null)_1=this.$124s;if(_1==null){this.$124s=[];var _2=new Date();_2.setDate(1);if(_2.getDay()>0)_2.setDate(_2.getDate()+(7-_2.getDay()));var _3=_2.getDate();for(var i=0;i<7;i++){_2.setDate(_3+i);this.$41s[i]=_2.deriveDayName()}
_1=this.$124s}
var _5=[];for(var i=0;i<7;i++){_5[i]=_1[i]}
return _5},isc.A.setWeekendDays=function isc_c_DateUtil_setWeekendDays(_1){this.weekendDays=_1},isc.A.getWeekendDays=function isc_c_DateUtil_getWeekendDays(){var _1=this.weekendDays||Date.weekendDays;if(_1==null)_1=this.$54i;if(_1==null){_1=this.$54i=[0,6]}
return _1},isc.A.getFormattedDateRangeString=function isc_c_DateUtil_getFormattedDateRangeString(_1,_2){if(_1!=null&&!isc.isA.Date(_1)){_1=null}
if(_2!=null&&!isc.isA.Date(_2)){_2=null}
var _3=_1?_1.getMonth():null,_4=_1?_1.getShortMonthName():null,_5=_1?_1.getFullYear():null,_6=_1?_1.getDate():null,_7=_2?_2.getMonth():null,_8=_2?_2.getShortMonthName():null,_9=_2?_2.getFullYear():null,_10=_2?_2.getDate():null,_11="";if(_1&&_2){if(_5==_9){if(_3==_7){if(_6==_10){_11=_4+" "+_1.getDate()+", "+_5}else{_11=_4+" "+_1.getDate()+" - "+_2.getDate()+", "+_5}}else{_11=_4+" "+_1.getDate()+" - "+_8+" "+_2.getDate()+", "+_5}}else{_11=_4+" "+_1.getDate()+", "+_5+" - "+_8+" "+_2.getDate()+", "+_9}}else if(_1){_11=_4+" "+_1.getDate()+", "+_5}else if(_2){_11=_8+" "+_2.getDate()+", "+_9}
return _11},isc.A.setToZeroTime=function isc_c_DateUtil_setToZeroTime(_1){if(_1==null||!isc.isA.Date(_1))return _1;var _2=_1.logicalDate;_1.logicalDate=false;var _3=_1.getTime();var _4=isc.Time.getUTCHoursDisplayOffset(_1),_5=isc.Time.getUTCMinutesDisplayOffset(_1);if(_2){var _6=new Date(_1);_6.setHours(0);_6.setMinutes(0);var _7=isc.Time.getUTCHoursDisplayOffset(_6);if(_4!=_7){_4=_7}}
var _8=_4>0?24-_4:0-_4,_9=60-_5;if(_9>=60){_9-=60}else if(_9!=0){_8-=1}
var _10;if(_2){_10=_1.getDate()}else{var _11=_1.$68g(_4,_5);_10=_11.getUTCDate()}
_1.setUTCHours(_8);_1.setUTCMinutes(_9);var _12=_1.$68g(_4,_5),_13=_12.getUTCDate(),_14=_8;if(_13!=_10){var _15=_1.getTime()<_3;_14+=_15?24:-24;_1.setUTCHours(_14)}
if(_1.getUTCHours()!=_8){_1.setTime(_3);_1.setUTCHours(_14+1);if(_1.getUTCHours()!=_8+1){_1.setTime(_3);_1.setUTCHours(_14+2)}}});isc.B._maxIndex=isc.C+50;isc.A=Date.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.firstWeekIncludesDay=4;isc.A.$em=[,,,,"/",,,,,"/",,,,null];isc.A.$en="MDY";isc.A.$eo="DMY";isc.A.$ep="YMD";isc.A.$en="MDY";isc.A.$w0="0";isc.A.$68f=[null,null];isc.B.push(isc.A.duplicate=function isc_Dat_duplicate(){var _1=new Date();_1.setTime(this.getTime());_1.logicalDate=this.logicalDate;_1.logicalTime=this.logicalTime;_1.$84l=this.$84l;_1.$84n=this.$84n
return _1},isc.A.clearTimeFields=function isc_Dat_clearTimeFields(){this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);return this},isc.A.deriveShortDayName=function isc_Dat_deriveShortDayName(_1){var _2=this.toString();if(_1==null||_1<=0||_1>3)_1=3;return _2.substring(0,_1)},isc.A.deriveDayName=function isc_Dat_deriveDayName(){var _1=this.toString();var _2=_1.indexOf(" ");return _1.substring(0,_2)},isc.A.getShortDayName=function isc_Dat_getShortDayName(){return isc.DateUtil.getShortDayNames()[this.getDay()]},isc.A.getDayName=function isc_Dat_getDayName(){return isc.DateUtil.getDayNames()[this.getDay()]},isc.A.deriveShortMonthName=function isc_Dat_deriveShortMonthName(_1){var _2=this.toUTCString();var _3=8;var _4=Date.derivedShortMonthNameLength;if(_1==null||_1<0||_1>_4)_1=_4;if(_2.substring(6,7)==' '){_3=7}
return _2.substring(_3,(_3+_1))},isc.A.deriveMonthName=function isc_Dat_deriveMonthName(){var _1=this.toUTCString();var _2=8;if(_1.substring(6,7)==' '){_2=7}
var _3=_1.indexOf(" ",_2);return _1.substring(_2,(_2+_3))},isc.A.getShortMonthName=function isc_Dat_getShortMonthName(_1){return isc.DateUtil.getShortMonthNames(_1)[this.getMonth()]},isc.A.getMonthName=function isc_Dat_getMonthName(){return isc.DateUtil.getMonthNames()[this.getMonth()]},isc.A.getShortYear=function isc_Dat_getShortYear(){var _1=this.getFullYear();return(_1%100).stringify(2)},isc.A.getYearStart=function isc_Dat_getYearStart(_1){if(_1==null){_1=isc.DateChooser.getInstanceProperty("firstDayOfWeek")}
var _2=isc.DateUtil.createLogicalDate(this.getFullYear(),0,1);var _3=0;if(_2.getDay()<this.firstWeekIncludesDay){_3=this.firstWeekIncludesDay-_2.getDay()}else if(_2.getDay()>this.firstWeekIncludesDay){_3=(7-_2.getDay())+this.firstWeekIncludesDay}
if(_3!=0)_2.setDate(_2.getDate()+_3);_2=isc.DateUtil.getStartOf(_2,"W",true,_1);return _2},isc.A.getWeek=function isc_Dat_getWeek(_1){var _2=this;if(!this.logicalDate){_2=isc.DateUtil.getLogicalDateOnly(this)}
if(_1==null){_1=isc.DateChooser.getInstanceProperty("firstDayOfWeek")}
var _3=_2.getYearStart(_1);if(!_3.logicalDate)_3=isc.DateUtil.getLogicalDateOnly(_3);if(_2.getTime()<_3.getTime()){return isc.DateUtil.getAbsoluteDate("-1w",_3).getWeek(_1)}
var _4=Math.floor((_2.getTime()-_3.getTime())/(60000*60*24*7))+1;return _4},isc.A.getFiscalCalendar=function isc_Dat_getFiscalCalendar(){return isc.DateUtil.getFiscalCalendar()},isc.A.getFiscalYear=function isc_Dat_getFiscalYear(_1){return isc.DateUtil.getFiscalYear(this,_1)},isc.A.getFiscalWeek=function isc_Dat_getFiscalWeek(_1,_2){return isc.DateUtil.getFiscalWeek(this,_1,_2)},isc.A.toDateStamp=function isc_Dat_toDateStamp(){return this.getUTCFullYear()+(this.getUTCMonth()+1).stringify()+this.getUTCDate().stringify()+"T"+this.getUTCHours().stringify()+this.getUTCMinutes().stringify()+this.getUTCSeconds().stringify()+"Z"},isc.A.toNormalDate=function isc_Dat_toNormalDate(_1,_2){if(!_1)_1=this.formatter;if(isc.isA.Function(_1)){return _1.apply(this,[_2])}else if(this[_1]){return this[_1](_2)}else if(isc.isA.String(_1)){return isc.DateUtil.format(this,_1,_2)}},isc.A.toNormalDateTime=function isc_Dat_toNormalDateTime(_1,_2){return this.toNormalDatetime(_1,_2)},isc.A.toNormalDatetime=function isc_Dat_toNormalDatetime(_1,_2){if(!_1)_1=this.datetimeFormatter;return this.toNormalDate(_1,_2)},isc.A.toShortDate=function isc_Dat_toShortDate(_1,_2){if(!_1)_1=this.$el;if(isc.isA.Function(_1))return _1.apply(this,[_2]);else if(isc.isA.Function(this[_1])){if(_1=="toSerializeableDate")return this[_1]();return this[_1](_2)}else if(isc.isA.String(_1)){return isc.DateUtil.format(this,_1,_2)}
isc.logWarn("Date.toShortDate() specified formatter not understood:"+_1);return this.toUSShortDate()},isc.A.toShortDateTime=function isc_Dat_toShortDateTime(_1,_2){return this.toShortDatetime(_1,_2)},isc.A.toShortDatetime=function isc_Dat_toShortDatetime(_1,_2){if(!_1)_1=this.$68e;return this.toShortDate(_1,_2)},isc.A.setDefaultDateSeparator=function isc_Dat_setDefaultDateSeparator(_1){this.$em=[,,,,_1,,,,,_1,,,,null];this.$665=_1},isc.A.getDefaultDateSeperator=function isc_Dat_getDefaultDateSeperator(_1){if(this.$665)return this.$665;else return"/"},isc.A.$68d=function isc_Dat__applyTimezoneOffset(_1,_2,_3){if(_3==null)_3=this.getTime();if(isc.isA.Number(_1))_3+=(3600000*_1);if(isc.isA.Number(_2))_3+=(60000*_2);this.setTime(_3)},isc.A.$68g=function isc_Dat__getTimezoneOffsetDate(_1,_2){var _3=Date.$68h;if(_3==null)_3=Date.$68h=new Date();_3.$68d(_1,_2,this.getTime());return _3},isc.A.$es=function isc_Dat__toShortDate(_1,_2){if(_2==null){_2=!this.logicalDate}
var _3=this.$em,_4,_5,_6;if(!_2||!isc.Time.$854){_4=this.getMonth()+1;_5=this.getDate();_6=this.getFullYear()}else{var _7=this.$68g(isc.Time.getUTCHoursDisplayOffset(this),isc.Time.getUTCMinutesDisplayOffset(this));_4=_7.getUTCMonth()+1;_5=_7.getUTCDate();_6=_7.getUTCFullYear()}
var _8,_9,_10;if(_1==this.$en){_8=0;_9=5;_10=10}else if(_1==this.$eo){_9=0;_8=5;_10=10}else if(_1==this.$ep){_10=0;_8=5;_9=10}else{_9=_1.indexOf("D")*5;_10=_1.indexOf("Y")*5;_8=_1.indexOf("M")*5}
_3[_9]=_5<10?this.$w0:null
isc.$bk(_3,_5,_9+1,3);_3[_8]=_4<10?this.$w0:null
isc.$bk(_3,_4,_8+1,3);_3[_10+1]=null;isc.$bk(_3,_6,_10,4);return _3.join(isc.emptyString)},isc.A.toUSShortDate=function isc_Dat_toUSShortDate(_1){return this.$es(this.$en,_1)},isc.A.$68i=function isc_Dat__toShortTime(_1){return isc.Time.toShortTime(this,"toShortPadded24HourTime")},isc.A.toUSShortDateTime=function isc_Dat_toUSShortDateTime(_1){return this.toUSShortDatetime(_1)},isc.A.toUSShortDatetime=function isc_Dat_toUSShortDatetime(_1){return this.toUSShortDate(_1)+" "+this.$68i(_1)},isc.A.toEuropeanShortDate=function isc_Dat_toEuropeanShortDate(_1){return this.$es(this.$eo,_1)},isc.A.toEuropeanShortDateTime=function isc_Dat_toEuropeanShortDateTime(_1){return this.toEuropeanShortDatetime()},isc.A.toEuropeanShortDatetime=function isc_Dat_toEuropeanShortDatetime(_1){return this.toEuropeanShortDate(_1)+" "+this.$68i(_1)},isc.A.toJapanShortDate=function isc_Dat_toJapanShortDate(_1){return this.$es(this.$ep,_1)},isc.A.toJapanShortDateTime=function isc_Dat_toJapanShortDateTime(_1){return this.toJapanShortDatetime(_1)},isc.A.toJapanShortDatetime=function isc_Dat_toJapanShortDatetime(_1){return this.toJapanShortDate(_1)+" "+this.$68i(_1)},isc.A.$eu=function isc_Dat__serialize(){if(isc.Comm.$ev){return isc.SB.concat('"'+this.toDBDate(),'"')}else{return isc.SB.concat("new Date(",this.getTime(),")")}},isc.A.$ew=function isc_Dat__xmlSerialize(_1,_2,_3,_4){return isc.Comm.$ex(_1,this.toSchemaDate(null,isc.Comm.$136q),_2||(this.logicalDate?"date":(this.logicalTime&&!isc.DataSource.serializeTimeAsDatetime?"time":"datetime")),_3,_4)},isc.A.toSchemaDate=function isc_Dat_toSchemaDate(_1,_2){if((_1=="date")||this.logicalDate){return isc.SB.concat(this.getFullYear().stringify(4),"-",(this.getMonth()+1).stringify(2),"-",this.getDate().stringify(2))};if((!isc.DataSource||!isc.DataSource.serializeTimeAsDatetime)&&(_1=="time"||this.logicalTime))
{var _3=isc.SB.concat(this.getHours().stringify(2),":",this.getMinutes().stringify(2),":",this.getSeconds().stringify(2));if(_2!==true){_3+="."+this.getUTCMilliseconds().stringify(3)};return _3}
var _3=isc.SB.concat(this.getUTCFullYear().stringify(4),"-",(this.getUTCMonth()+1).stringify(2),"-",this.getUTCDate().stringify(2),"T",this.getUTCHours().stringify(2),":",this.getUTCMinutes().stringify(2),":",this.getUTCSeconds().stringify(2));if(_2!==true){_3+="."+this.getUTCMilliseconds().stringify(3)};return _3},isc.A.toSerializeableDate=function isc_Dat_toSerializeableDate(_1){var _2=isc.SB.create();_2.append(this.getFullYear().stringify(4),"-",(this.getMonth()+1).stringify(2),"-",this.getDate().stringify(2));_2.append(isc.Comm.xmlSchemaMode?"T":" ",isc.Time.toShortTime(this,"toPadded24HourTime"));return _2.release(false)},isc.A.toDBDate=function isc_Dat_toDBDate(){return isc.StringBuffer.concat("$$DATE$$:",this.toSerializeableDate())},isc.A.toDBDateTime=function isc_Dat_toDBDateTime(){return this.toDBDate()},isc.A.setFormatter=function isc_Dat_setFormatter(_1){this.setNormalDisplayFormat(_1)},isc.A.setLocaleStringFormatter=function isc_Dat_setLocaleStringFormatter(_1){if(isc.isA.Function(this[_1])||isc.isA.Function(_1))
this.localeStringFormatter=_1},isc.A.isBeforeToday=function isc_Dat_isBeforeToday(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(this,"D");return _1&&_1.getTime()<_2.getTime()},isc.A.isToday=function isc_Dat_isToday(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(this,"D"),_3=isc.DateUtil.getEndOf(this,"D");return _1.getTime()>=_2.getTime()&&_1.getTime()<=_3.getTime()},isc.A.isTomorrow=function isc_Dat_isTomorrow(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(isc.DateUtil.getAbsoluteDate("+1D",this),"D"),_3=isc.DateUtil.getEndOf(_2,"D");return _1.getTime()>=_2.getTime()&&_1.getTime()<=_3.getTime()},isc.A.isThisWeek=function isc_Dat_isThisWeek(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(this,"W"),_3=isc.DateUtil.getEndOf(_2,"W");return _1.getTime()>=_2.getTime()&&_1.getTime()<=_3.getTime()},isc.A.isNextWeek=function isc_Dat_isNextWeek(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(isc.DateUtil.getAbsoluteDate("+1w",this),"W"),_3=isc.DateUtil.getEndOf(_2,"W");return _1.getTime()>=_2.getTime()&&_1.getTime()<=_3.getTime()},isc.A.isNextMonth=function isc_Dat_isNextMonth(_1){if(!_1)return false;var _2=isc.DateUtil.getStartOf(isc.DateUtil.getAbsoluteDate("+1m",this),"M"),_3=isc.DateUtil.getEndOf(_2,"M");return _1.getTime()>=_2.getTime()&&_1.getTime()<=_3.getTime()});isc.B._maxIndex=isc.C+52;Date.prototype.toBrowserString=Date.prototype.toString;Date.prototype.toBrowserLocaleString=Date.prototype.toLocaleString;Date.prototype.fiscalCalendar={defaultMonth:0,defaultDate:1,fiscalYears:[]};if(!Date.prototype.formatter){isc.DateUtil.setNormalDateDisplayFormat("toLocaleString")}
if(!Date.prototype.datetimeFormatter){isc.DateUtil.setNormalDatetimeDisplayFormat("toLocaleString")}
if(!Date.prototype.$el){isc.DateUtil.setShortDisplayFormat("toUSShortDate")}
if(!Date.prototype.$68e){isc.DateUtil.setShortDatetimeDisplayFormat("toUSShortDatetime")}
Date.prototype.iscToLocaleString=function(){var _1=this.localeStringFormatter;if(isc.isA.Function(_1))return _1.apply(this);else if(this[_1])return this[_1]()}
if(!Date.prototype.localeStringFormatter)
Date.prototype.localeStringFormatter="toLocaleString";isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$ek=function isc_c_DateUtil__splitDateViaSubstring(_1,_2,_3,_4){var _5=_4*3,_6=_1.substring(_5,_5+4);var _7=_6.length;var _8=0,_9=0;if(_2>_3)_8+=3;else _9+=3;if(_2>_4)_8+=_7+1;if(_3>_4)_9+=_7+1;var _10=_1.substring(_8,_8+2)-1;var _11=_1.substring(_9,_9+2);var _12=7+_7,_13=(_1.substring(_12,_12+2)||0),_14=(_1.substring(_12+3,_12+5)||0),_15=(_1.substring(_12+6,_12+8)||0);return[_6,_10,_11,_13,_14,_15]});isc.B._maxIndex=isc.C+1;isc.A=Date.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.toPrettyString=function isc_Dat_toPrettyString(){return this.toUSShortDatetime()});isc.B._maxIndex=isc.C+1;isc.A=Date;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.parseStandardDate=function isc_Date_parseStandardDate(_1){if(!isc.isA.String(_1))return null;var _2=_1.substring(0,4),_3=_1.substring(5,7)-1,_4=_1.substring(8,10),_5=_1.substring(11,13),_6=_1.substring(14,16),_7=_1.substring(17,19);if(_1.length<19){if(!isc.isA.Number(_2-_3-_4))return null}else{if(!isc.isA.Number(_2-_3-_4-_5-_6-_7))return null}
return new Date(_2,_3,_4,_5,_6,_7)},isc.A.parseSerializeableDate=function isc_Date_parseSerializeableDate(_1){return this.parseStandardDate(_1)},isc.A.parseDBDate=function isc_Date_parseDBDate(_1){if(isc.isA.String(_1)&&_1.startsWith("$$DATE$$:")){_1=_1.substring(9)
return this.parseStandardDate(_1)}
return null},isc.A.parseDateStamp=function isc_Date_parseDateStamp(_1){if(_1==null||isc.isA.Date(_1))return _1;var _2=new Date(Date.UTC(_1.substring(0,4),parseInt(_1.substring(4,6),10)-1,_1.substring(6,8),_1.substring(9,11),_1.substring(11,13),_1.substring(13,15)));if(isc.isA.Date(_2))return _2;else return null},isc.A.parseShortDate=function isc_Date_parseShortDate(_1,_2){return this.parseInput(_1,"MDY",_2)},isc.A.parseShortDateTime=function isc_Date_parseShortDateTime(_1,_2){return this.parseShortDate(_1,_2)},isc.A.parsePrettyString=function isc_Date_parsePrettyString(_1,_2){return this.parseShortDate(_1,_2)},isc.A.parseEuropeanShortDate=function isc_Date_parseEuropeanShortDate(_1,_2){return this.parseInput(_1,"DMY",_2)},isc.A.parseEuropeanShortDateTime=function isc_Date_parseEuropeanShortDateTime(_1,_2){return this.parseInput(_1,"DMY",_2)});isc.B._maxIndex=isc.C+9;isc.A=Date;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.create=function isc_Date_create(_1,_2,_3,_4,_5,_6,_7){return isc.DateUtil.create(_1,_2,_3,_4,_5,_6,_7)},isc.A.createLogicalDate=function isc_Date_createLogicalDate(_1,_2,_3,_4){return isc.DateUtil.createLogicalDate(_1,_2,_3,_4)},isc.A.createLogicalTime=function isc_Date_createLogicalTime(_1,_2,_3,_4){return isc.DateUtil.createLogicalTime(_1,_2,_3,_4)},isc.A.getLogicalDateOnly=function isc_Date_getLogicalDateOnly(_1){return isc.DateUtil.getLogicalDateOnly(_1)},isc.A.getLogicalTimeOnly=function isc_Date_getLogicalTimeOnly(_1){return isc.DateUtil.getLogicalTimeOnly(_1)},isc.A.combineLogicalDateAndTime=function isc_Date_combineLogicalDateAndTime(_1,_2){return isc.DateUtil.combineLogicalDateAndTime(_1,_2)},isc.A.compareDates=function isc_Date_compareDates(_1,_2,_3){return isc.DateUtil.compareDates(_1,_2,_3)},isc.A.compareLogicalDates=function isc_Date_compareLogicalDates(_1,_2,_3){return isc.DateUtil.compareLogicalDates(_1,_2,_3)},isc.A.setInputFormat=function isc_Date_setInputFormat(_1){return isc.DateUtil.setInputFormat(_1)},isc.A.getInputFormat=function isc_Date_getInputFormat(){return isc.DateUtil.getInputFormat()},isc.A.parseInput=function isc_Date_parseInput(_1,_2,_3,_4,_5){return isc.DateUtil.parseInput(_1,_2,_3,_4,_5)},isc.A.setNormalDisplayFormat=function isc_Date_setNormalDisplayFormat(_1){return isc.DateUtil.setNormalDisplayFormat(_1)},isc.A.setNormalDatetimeDisplayFormat=function isc_Date_setNormalDatetimeDisplayFormat(_1){return isc.DateUtil.setNormalDatetimeDisplayFormat(_1)},isc.A.setShortDisplayFormat=function isc_Date_setShortDisplayFormat(_1){return isc.DateUtil.setShortDisplayFormat(_1)},isc.A.setDefaultDateSeparator=function isc_Date_setDefaultDateSeparator(_1){return isc.DateUtil.setDefaultDateSeparator(_1)},isc.A.getDefaultDateSeparator=function isc_Date_getDefaultDateSeparator(){return isc.DateUtil.getDefaultDateSeparator()},isc.A.setShortDatetimeDisplayFormat=function isc_Date_setShortDatetimeDisplayFormat(_1){return isc.DateUtil.setShortDatetimeDisplayFormat(_1)},isc.A.setFiscalCalendar=function isc_Date_setFiscalCalendar(_1){return isc.DateUtil.setFiscalCalendar(_1)},isc.A.getFiscalCalendar=function isc_Date_getFiscalCalendar(){return isc.DateUtil.getFiscalCalendar()},isc.A.getFiscalStartDate=function isc_Date_getFiscalStartDate(_1,_2){return isc.DateUtil.getFiscalStartDate(_1,_2)},isc.A.setShowChooserFiscalYearPickers=function isc_Date_setShowChooserFiscalYearPickers(_1){return isc.DateUtil.setShowChooserFiscalYearPickers(_1)},isc.A.setShowChooserWeekPickers=function isc_Date_setShowChooserWeekPickers(_1){return isc.DateUtil.setShowChooserWeekPickers(_1)},isc.A.setFirstDayOfWeek=function isc_Date_setFirstDayOfWeek(_1){return isc.DateUtil.setFirstDayOfWeek(_1)},isc.A.getFirstDayOfWeek=function isc_Date_getFirstDayOfWeek(){return isc.DateUtil.getFirstDayOfWeek()},isc.A.getFiscalYear=function isc_Date_getFiscalYear(_1,_2){return isc.DateUtil.getFiscalYear(_1,_2)},isc.A.getFiscalWeek=function isc_Date_getFiscalWeek(_1,_2,_3){return isc.DateUtil.getFiscalWeek(_1,_2,_3)},isc.A.setLocaleStringFormatter=function isc_Date_setLocaleStringFormatter(_1){return isc.DateUtil.setLocaleStringFormatter(_1)},isc.A.getMonthNames=function isc_Date_getMonthNames(){return isc.DateUtil.getMonthNames()},isc.A.getShortMonthNames=function isc_Date_getShortMonthNames(_1){return isc.DateUtil.getShortMonthNames(_1)},isc.A.getDayNames=function isc_Date_getDayNames(){return isc.DateUtil.getDayNames()},isc.A.getShortDayNames=function isc_Date_getShortDayNames(_1){return isc.DateUtil.getShortDayNames(_1)},isc.A.setWeekendDays=function isc_Date_setWeekendDays(_1){return isc.DateUtil.setWeekendDays(_1)},isc.A.getWeekendDays=function isc_Date_getWeekendDays(){return isc.DateUtil.getWeekendDays()},isc.A.parseDate=function isc_Date_parseDate(_1,_2,_3,_4){return isc.DateUtil.parseInput(_1,_2,_3,_4)},isc.A.parseDateTime=function isc_Date_parseDateTime(_1,_2,_3,_4){return isc.DateUtil.parseDatetime(_1,_2,_3,_4)},isc.A.parseDatetime=function isc_Date_parseDatetime(_1,_2,_3,_4){return isc.DateUtil.parseInput(_1,_2,_3,_4)},isc.A.setFormatter=function isc_Date_setFormatter(_1){this.setNormalDisplayFormat(_1)});isc.B._maxIndex=isc.C+37;isc.A=isc.DateUtil;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1758=["MS","S","MN","N","H","D","W","M","Q","Y","YY","YYYY","DC","C"];isc.A.$86v={ms:true,MS:true,s:true,S:true,mn:true,MN:true,n:true,N:true,h:true,H:true,d:true,D:true};isc.A.$85j={ms:"millisecond",s:"second",mn:"minute",n:"minute",h:"hour",d:"day",w:"week",m:"month",q:"quarter",y:"year",yy:"year",yyyy:"year",dc:"decade",c:"century"};isc.B.push(isc.A.mapRelativeDateShortcut=function isc_c_DateUtil_mapRelativeDateShortcut(_1,_2){switch(_1){case"$now":return"+0MS";case"$today":if(_2=="end"){return"+0D"}else{return"-0D"}
case"$startOfToday":return"-0D";case"$endOfToday":return"+0D";case"$yesterday":if(_2=="end"){return"-1d[+0D]"}else{return"-1D"}
case"$startOfYesterday":return"-1D";case"$endOfYesterday":return"-1d[+0D]";case"$tomorrow":if(_2=="end"){return"+1D"}else{return"+1d[-0D]"}
case"$startOfTomorrow":return"+1d[-0D]";case"$endOfTomorrow":return"+1D";case"$startOfWeek":return"-0W";case"$endOfWeek":return"+0W";case"$startOfMonth":return"-0M";case"$endOfMonth":return"+0M";case"$startOfYear":return"-0Y";case"$endOfYear":return"+0Y";case"$weekFromNow":if(_2=="end"){return"+1w[+0D]"}else{return"+1w[-0D]"}
case"$weekAgo":if(_2=="end"){return"-1w[+0D]"}else{return"-1w[-0D]"}
case"$monthFromNow":if(_2=="end"){return"+1m[+0D]"}else{return"+1m[-0D]"}
case"$monthAgo":if(_2=="end"){return"-1m[+0D]"}else{return"-1m[-0D]"}}
return _1},isc.A.getAbsoluteDate=function isc_c_DateUtil_getAbsoluteDate(_1,_2,_3,_4){if(isc.isA.Date(_1))return _1.duplicate();var _5=isc.DateUtil;var _6=_1;if(_5.isRelativeDate(_6)){if(!_3)_3=_6.rangePosition;_6=_1.value}
if(!isc.isA.String(_6))return null;if(_6.startsWith("$")){var _7=_5.mapRelativeDateShortcut(_6,_3);if(_7==_6)return null;_6=_7}
var _8=_4?isc.DateUtil.createLogicalDate():new Date();if(_2!=null)_8.setTime(_2.getTime());var _9=_5.parseRelativeDateString(_6,true);if(!_9)return null;if(_9.qualifier){_9.qualifier=_9.qualifier.toUpperCase();var _10=_5.parseRelativeDateString(_9.qualifier);if(_10){if(isc.DateUtil.$1758.contains(_10.period)){_8=_5.dateAdd(_8,_10.period,_10.countValue,(_10.direction=="+"?1:-1),_4)}else{isc.logWarn("Invalid date-offset qualifier provided: "+_10.period+".  Valid options are: S, MN (or N), H, D, W, M, Q and Y (or YY, YYYY).")}}}
var _11=_5.dateAdd(_8,_9.period,_9.countValue,(_9.direction=="+"?1:-1),_4);if(_4)_11.isLogicalDate=true;return _11},isc.A.isRelativeDate=function isc_c_DateUtil_isRelativeDate(_1,_2){if(!isc.isA.Date(_1)&&isc.isAn.Object(_1)&&_1._constructor=="RelativeDate")return true;var _3=isc.DateUtil;if(_2&&isc.isA.String(_1)){return _3.isRelativeDateShortcut(_1)||_3.isRelativeDateString(_1,true)}
return false},isc.A.isRelativeDateShortcut=function isc_c_DateUtil_isRelativeDateShortcut(_1){return isc.isA.String(_1)&&_1.startsWith("$")&&isc.DateUtil.mapRelativeDateShortcut(_1)!=_1},isc.A.isRelativeDateString=function isc_c_DateUtil_isRelativeDateString(_1){return isc.DateUtil.parseRelativeDateString(_1,true)!=null},isc.A.mapsToDate=function isc_c_DateUtil_mapsToDate(_1){if(isc.isA.Date(_1)||isc.DateUtil.isRelativeDate(_1,true))return true},isc.A.parseRelativeDateString=function isc_c_DateUtil_parseRelativeDateString(_1,_2){if(!isc.isA.String(_1)||_1.length<3)return null;var _3={};var _4=_1.split("[");if(_4[1]){_3.qualifier=_4[1].replace("]","")}
var _5=_4[0];_3.direction=_5[0];_3.count="";_3.period="";for(var i=1;i<_5.length;i++){if(!isNaN(parseInt(_5[i])))_3.count+=_5[i];else _3.period+=_5[i]}
_3.count=parseInt(_3.count);if(_2){if(!["+","-"].contains(_3.direction))return null;if(isNaN(_3.count))return null;if(_3.period.length==0)return null;if(!isc.DateUtil.$1758.contains(_3.period.toUpperCase()))return null}
return{direction:(_3.direction=="+"||_3.direction=="-"?_3.direction:"+"),qualifier:_3.qualifier,countValue:isc.isA.Number(_3.count)?_3.count:0,period:_3.period?_3.period:"D"}},isc.A.dateAdd=function isc_c_DateUtil_dateAdd(_1,_2,_3,_4,_5){var _6=false;if(_2==null)_2="d";if(_3==null)_3=1;if(_4==null)_4=1;if(_5==null)_5=_1.logicalDate;if(_2.length>2)_2=isc.DateUtil.getTimeUnitKey(_2);switch(_2){case"MS":case"ms":_1.setMilliseconds(_1.getMilliseconds()+(_3*_4));break;case"S":_6=true;case"s":_1.setSeconds(_1.getSeconds()+(_3*_4));break;case"MN":case"N":_6=true;case"mn":case"n":_1.setMinutes(_1.getMinutes()+(_3*_4));break;case"H":_6=true;case"h":_1.setHours(_1.getHours()+(_3*_4));break;case"D":_6=true;case"d":if(_3*_4!=0)_1.setDate(_1.getDate()+(_3*_4));break;case"W":_6=true;case"w":_1.setDate(_1.getDate()+((_3*7)*_4));break;case"M":_6=true;case"m":var _7=isc.Date.createLogicalDate(_1.getFullYear(),_1.getMonth(),1);_7.setMonth(_7.getMonth()+(_3*_4));if(isNaN(_7&&_7.getMonth())){var _8=(8640000000000000-1)*_4;_7=new Date(_8)}
if(_1.getDate()>_7.getDate())_7.setDate(_1.getDate());_1=_7.duplicate();break;case"Q":_6=true;case"q":_1.setMonth(_1.getMonth()+((_3*3)*_4));break;case"Y":case"YY":case"YYYY":_6=true;case"y":case"yy":case"yyyy":_1.setFullYear(_1.getFullYear()+(_3*_4));break;case"DC":_6=true;case"dc":_1.setFullYear(_1.getFullYear()+((_3*10)*_4));break;case"C":_6=true;case"c":_1.setFullYear(_1.getFullYear()+((_3*100)*_4));break;default:}
if(_6){if(_4>0){_1=this.getEndOf(_1,_2,_5)}else{_1=this.getStartOf(_1,_2,_5)}}
return _1},isc.A.getStartOf=function isc_c_DateUtil_getStartOf(_1,_2,_3,_4){var _5,_6,_7,_8,_9,_10,_11;if(_3==null)_3=_1.logicalDate;if(_4==null){_4=isc.DateChooser?isc.DateChooser.getInstanceProperty("firstDayOfWeek"):0}
if(_3&&this.$86v[_2]==true){this.logInfo("DateUtil.getStartOf() passed period:"+_2+" for logical date. Ignoring");var _12=new Date(_1.getTime());_12.logicalDate=true;return _12}
if(!isc.Time.$854||_3){_6=_1.getMonth();_7=_1.getDate();_5=_1.getFullYear();_8=_1.getHours();_9=_1.getMinutes();_10=_1.getSeconds();_11=_1.getDay()}else{var _13=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_6=_13.getUTCMonth();_7=_13.getUTCDate();_5=_13.getUTCFullYear();_8=_13.getUTCHours();_9=_13.getUTCMinutes();_10=_13.getUTCSeconds();_11=_13.getUTCDay()}
switch(_2.toLowerCase()){case"s":return isc.DateUtil.createDatetime(_5,_6,_7,_8,_9,_10,0);case"mn":case"n":return isc.DateUtil.createDatetime(_5,_6,_7,_8,_9,0,0);case"h":return isc.DateUtil.createDatetime(_5,_6,_7,_8,0,0,0);case"d":if(_3){return isc.DateUtil.createLogicalDate(_5,_6,_7)}else{return isc.DateUtil.createDatetime(_5,_6,_7,0,0,0,0)}
case"w":var _12;if(_3){_12=isc.DateUtil.createLogicalDate(_5,_6,_7)}else{_12=isc.DateUtil.createDatetime(_5,_6,_7,0,0,0,0)}
var _14=_11-_4;if(_14<0)_14+=7;_12.setDate(_12.getDate()-_14);return _12;case"m":if(_3){return isc.DateUtil.createLogicalDate(_5,_6,1)}else{return isc.DateUtil.createDatetime(_5,_6,1,0,0,0,0)}
case"q":var _15=_6-(_6%3);if(_3){return isc.DateUtil.createLogicalDate(_5,_15,1)}else{return isc.DateUtil.createDatetime(_5,_15,1,0,0,0,0)}
case"y":case"yy":case"yyyy":if(_3){return isc.DateUtil.createLogicalDate(_5,0,1)}else{return isc.DateUtil.createDatetime(_5,0,1,0,0,0,0)}
case"dc":var _16=_5-(_5%10);if(_3){return isc.DateUtil.createLogicalDate(_16,0,1)}else{return isc.DateUtil.createDatetime(_16,0,1,0,0,0,0)}
case"c":var _17=_5-(_5%100);if(_3){return isc.DateUtil.createLogicalDate(_17,0,1)}else{return isc.DateUtil.createDatetime(_17,0,1,0,0,0,0)}}
return _1.duplicate()},isc.A.getEndOf=function isc_c_DateUtil_getEndOf(_1,_2,_3,_4){var _5,_6,_7,_8,_9,_10,_11;if(_3==null)_3=_1.logicalDate;if(_4==null){_4=isc.DateChooser?isc.DateChooser.getInstanceProperty("firstDayOfWeek"):0}
if(_3&&this.$86v[_2]==true){this.logInfo("DateUtil.getEndOf() passed period:"+_2+" for logical date. Ignoring");var _12=new Date(_1.getTime());_12.logicalDate=true;return _12}
if(!isc.Time.$854||_3){_6=_1.getMonth();_7=_1.getDate();_5=_1.getFullYear();_8=_1.getHours();_9=_1.getMinutes();_10=_1.getSeconds();_11=_1.getDay()}else{var _13=_1.$68g(isc.Time.getUTCHoursDisplayOffset(_1),isc.Time.getUTCMinutesDisplayOffset(_1));_6=_13.getUTCMonth();_7=_13.getUTCDate();_5=_13.getUTCFullYear();_8=_13.getUTCHours();_9=_13.getUTCMinutes();_10=_13.getUTCSeconds();_11=_13.getUTCDay()}
switch(_2.toLowerCase()){case"s":return isc.DateUtil.createDatetime(_5,_6,_7,_8,_9,_10,999);case"mn":case"n":return isc.DateUtil.createDatetime(_5,_6,_7,_8,_9,59,999);case"h":return isc.DateUtil.createDatetime(_5,_6,_7,_8,59,59,999);case"d":if(_3){return isc.DateUtil.createLogicalDate(_5,_6,_7)}else{return isc.DateUtil.createDatetime(_5,_6,_7,23,59,59,999)}
case"w":var _14=(6-(_11-_4));if(_14>=7)_14-=7;var _15=_7+_14;if(_3){return isc.DateUtil.createLogicalDate(_5,_6,_15)}else{return isc.DateUtil.createDatetime(_5,_6,_15,23,59,59,999)}
case"m":var _12;if(_3){_12=isc.DateUtil.createLogicalDate(_5,_6+1,1);_12.setDate(_12.getDate()-1)}else{_12=isc.DateUtil.createDatetime(_5,_6+1,1,0,0,0,0);_12.setTime(_12.getTime()-1)}
return _12;case"q":var _16=_6+3-(_6%3),_12;if(_3){_12=isc.DateUtil.createLogicalDate(_5,_16,1);_12.setDate(_12.getDate()-1)}else{_12=isc.DateUtil.createDatetime(_5,_16,1,0,0,0,0);_12.setTime(_12.getTime()-1)}
return _12;case"y":case"yy":case"yyyy":if(_3){return isc.DateUtil.createLogicalDate(_5,11,31)}else{return isc.DateUtil.createDatetime(_5,11,31,23,59,59,999)}
case"dc":var _17=_5+10-(_5%10);if(_3){return isc.DateUtil.createLogicalDate(_17,11,31)}else{return isc.DateUtil.createDatetime(_17,11,31,23,59,59,999)}
case"c":var _18=_5+100-(_5%100);if(_3){return isc.DateUtil.createLogicalDate(_18,11,31)}else{return isc.DateUtil.createDatetime(_18,11,31,23,59,59,999)}}
return _1.duplicate()},isc.A.getTimeUnitName=function isc_c_DateUtil_getTimeUnitName(_1){var _2=_1.toLowerCase();return this.$85j[_2]||_2},isc.A.getTimeUnitKey=function isc_c_DateUtil_getTimeUnitKey(_1){if(this.$85k==null){this.$85k=isc.makeReverseMap(this.$85j)}
var _2=_1.toLowerCase();return this.$85k[_2]||_2},isc.A.compareTimeUnits=function isc_c_DateUtil_compareTimeUnits(_1,_2){var _3=this.getTimeUnitMilliseconds(_1),_4=this.getTimeUnitMilliseconds(_2);if(_3<=_4)return-1;if(_3==_4)return 0;return 1},isc.A.getTimeUnitMilliseconds=function isc_c_DateUtil_getTimeUnitMilliseconds(_1){var _2=this.getTimeUnitName(_1),l={millisecond:1,second:1000};l.minute=l.second*60;l.hour=l.minute*60;l.day=l.hour*24;l.week=l.day*7;l.month=l.day*30;l.quarter=l.month*3;l.year=l.day*365;l.decade=l.year*10;l.century=l.decade*10;return l[_2]},isc.A.convertPeriodUnit=function isc_c_DateUtil_convertPeriodUnit(_1,_2,_3){if(_2==_3)return _1;var _4=this.getTimeUnitKey(_2),_5=this.getTimeUnitKey(_3),_6=(_4=="ms"?_1:_1*this.getTimeUnitMilliseconds(_4)),_7=_6/this.getTimeUnitMilliseconds(_5);return _7},isc.A.getTimeUnitTitle=function isc_c_DateUtil_getTimeUnitTitle(_1){return this.getTimeUnitName(_1)},isc.A.getPeriodLength=function isc_c_DateUtil_getPeriodLength(_1,_2,_3,_4){var _5=(_2.getTime()-_1.getTime());if(_3)_5=isc.DateUtil.convertPeriodUnit(_5,"ms",_3);return _5});isc.B._maxIndex=isc.C+17;String.prototype.Class="String";isc.$ey=function(){var _1=[Array,Number,Date].getProperty("prototype");for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3.toLocaleString==null){_3.toLocaleString=_3.toString}}
var _4=String.prototype;if(!_4.toLocaleUpperCase){_4.toLocaleUpperCase=_4.toUpperCase;_4.toLocaleLowerCase=_4.toLowerCase}
if(isc.Browser.isMoz){var _5="x",_6=_5.toLocaleString();if(_6!=_5){_4.toBrowserLocaleString=_4.toLocaleString;_4.toLocaleString=_4.toString}
_5=true;_6=_5.toLocaleString();if(_6!=_5+""){Boolean.prototype.toBrowserLocaleString=Boolean.prototype.toLocaleString;Boolean.prototype.toLocaleString=Boolean.prototype.toString}}}
isc.$ey();isc.A=String;isc.A.$ez=new RegExp("'","g");isc.A.$e0=new RegExp("\"","g");isc.A=String.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.replaceAll=function isc_Strin_replaceAll(_1,_2){return isc.replaceAll(this,_1,_2)},isc.A.contains=function isc_Strin_contains(_1){if(_1&&!isc.isA.String(_1))_1=_1.toString();return isc.contains(this,_1)},isc.A.convertTags=function isc_Strin_convertTags(_1,_2){return(_1?_1:"")+this.replace(/</g,"&lt;").replace(/>/g,"&gt;")+(_2?_2:"")},isc.A.asHTML=function isc_Strin_asHTML(_1){var s=this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(\r\n|\r|\n) /g,"<BR>&nbsp;").replace(/(\r\n|\r|\n)/g,"<BR>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");return(_1?s.replace(/ /g,"&nbsp;"):s.replace(/  /g," &nbsp;"))},isc.A.asAttValue=function isc_Strin_asAttValue(_1,_2){return String.asAttValue(this,_1,_2)},isc.A.unescapeHTML=function isc_Strin_unescapeHTML(){return this.replace(/&nbsp;/g," ").replace(/<BR>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")},isc.A.toInitialCaps=function isc_Strin_toInitialCaps(){var _1=this.toLowerCase().split(" ");for(var i=0;i<_1.length;i++){_1[i]=_1[i].substring(0,1).toLocaleUpperCase()+_1[i].substring(1)}
return _1.join(" ")},isc.A.evalDynamicString=function isc_Strin_evalDynamicString(_1,_2){if(this.indexOf("${")<0)return this.toString();var _3=this,_4,_5,_6,_7;var _8=isc.StringBuffer.create();while((_5=_3.indexOf("${"))!=-1){_6=_3.indexOf("}",_5+1);if(_6==-1)break;if(_3.charAt(_5-1)=='\\'){_8.append(_3.slice(0,_5-1),_3.slice(_5,_6+1));_3=_3.substring(_6+1,_3.length);continue}
var _7=_3.slice(_5+2,_6);var _9;if(_2!=null&&_7 in _2){_9=_2[_7]}else{try{_9=isc.Class.evalWithVars(_7,_2,_1)}catch(e){var _10=_1?_1:isc.Log;_10.logWarn("dynamicContents eval error - returning empty string for block -->${"+_7+"}<-- error was: "+isc.Log.echo(e));_9=isc.emptyString}}
_8.append(_3.slice(0,_5),_9);_3=_3.substring(_6+1,_3.length)}
_8.append(_3);return _8.release(false)},isc.A.asSource=function isc_Strin_asSource(_1){return String.asSource(this,_1)},isc.A.cssToCamelCaps=function isc_Strin_cssToCamelCaps(){return this.replace(/-([^a-z]*)([a-z])/g,function(_1,_2,_3,_4,_5){return _2+_3.toUpperCase()})});isc.B._maxIndex=isc.C+10;if(!String.prototype.repeat){String.prototype.repeat=function(_1){_1=_1<<0;var _2=String(this);if(_2===""||_1==0)return"";var _3="";for(;;){if((_1&1)==1){_3+=_2}
_1>>>=1;if(_1==0)break;_2+=_2}
return _3}}
if(!String.prototype.startsWith){String.prototype.startsWith=function(_1,_2){if(isc.isA.RegularExpression(_1)){var a;a.throwNewTypeError()}
_1=String(_1);var _4=String(this);_2=Math.min(Math.max(0,_2<<0),_4.length);if(_2>_4.length-_1.length)return false;if(_2>0)_4=_4.substring(_2);return isc.startsWith(_4,_1)}}
if(!String.prototype.endsWith){String.prototype.endsWith=function(_1,_2){var _3;if(isc.isA.RegularExpression(_1)){_3.throwNewTypeError()}
_1=String(_1);var _4=String(this);if(_2!==_3){_2=Math.min(Math.max(0,_2<<0),_4.length);if(_2<_1.length)return false;_4=_4.substring(0,_2)}
return isc.endsWith(_4,_1)}}
String.prototype.nativeTrim=String.prototype.trim;String.prototype.trim=function(_1){if(String.prototype.nativeTrim!=null&&String.prototype.nativeTrim!==String.prototype.trim&&!_1)
{return String.prototype.nativeTrim.call(this)}else{var _2=String(this),_3=_1||" \t\n\r",l=_2.length,_5=0,_6=l-1,i=0;while(_5<l&&_3.contains(_2.charAt(i++)))_5++;i=l-1;while(_6>=0&&_6>=_5&&_3.contains(_2.charAt(i--)))_6--;return _2.substring(_5,_6+1)}};String.$101w="[\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2183\u2184\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u3006\u3031-\u3035\u303b\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6e5\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]";String.$101x="[\u16ee-\u16f0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303a\ua6e6-\ua6ef]";String.$101y="[\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962\u0963\u0981\u09bc\u09c1-\u09c4\u09cd\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b62\u0b63\u0b82\u0bc0\u0bcd\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc6\u0ccc\u0ccd\u0ce2\u0ce3\u0d41-\u0d44\u0d4d\u0d62\u0d63\u0dca\u0dd2-\u0dd4\u0dd6\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1bab\u1be6\u1be8\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u3099\u309a\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaec\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26]";String.$101z="[\u0903\u093b\u093e-\u0940\u0949-\u094c\u094e\u094f\u0982\u0983\u09be-\u09c0\u09c7\u09c8\u09cb\u09cc\u09d7\u0a03\u0a3e-\u0a40\u0a83\u0abe-\u0ac0\u0ac9\u0acb\u0acc\u0b02\u0b03\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd7\u0c01-\u0c03\u0c41-\u0c44\u0c82\u0c83\u0cbe\u0cc0-\u0cc4\u0cc7\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0d02\u0d03\u0d3e-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d57\u0d82\u0d83\u0dcf-\u0dd1\u0dd8-\u0ddf\u0df2\u0df3\u0f3e\u0f3f\u0f7f\u102b\u102c\u1031\u1038\u103b\u103c\u1056\u1057\u1062-\u1064\u1067-\u106d\u1083\u1084\u1087-\u108c\u108f\u109a-\u109c\u17b6\u17be-\u17c5\u17c7\u17c8\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u19b0-\u19c0\u19c8\u19c9\u1a19-\u1a1b\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1b04\u1b35\u1b3b\u1b3d-\u1b41\u1b43\u1b44\u1b82\u1ba1\u1ba6\u1ba7\u1baa\u1bac\u1bad\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1c24-\u1c2b\u1c34\u1c35\u1ce1\u1cf2\u1cf3\u302e\u302f\ua823\ua824\ua827\ua880\ua881\ua8b4-\ua8c3\ua952\ua953\ua983\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9c0\uaa2f\uaa30\uaa33\uaa34\uaa4d\uaa7b\uaaeb\uaaee\uaaef\uaaf5\uabe3\uabe4\uabe6\uabe7\uabe9\uabea\uabec]";String.$1010="[\u0030-\u0039\u0660-\u0669\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9\uff10-\uff19]";String.$1011="[\u005f\u203f\u2040\u2054\ufe33\ufe34\ufe4d-\ufe4f\uff3f]";String.$1012="\\u[0-9A-Fa-f]{4}";String.$1013="(?:"+String.$101w+"|[$_]|"+String.$1012+")";String.$1014="(?:"+String.$101y+"|"+String.$101z+")";String.$1015=String.$1010;String.$1016=String.$1011;String.$1017="\u200c";String.$1018="\u200d";String.$1019="(?:"+String.$1013+"|"+String.$1014+"|"+String.$1015+"|"+String.$1016+"|"+String.$1017+"|"+String.$1018+")";String.$102a="^(?:"+String.$1013+String.$1019+"*)$";String.$102b=new RegExp(String.$102a);String.$102c="(?:break|case|catch|continue|debugger|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|this|throw|try|typeof|var|void|while|with)";String.$102d="(?:class|const|enum|export|extends|import|super)";String.$102e="(?:implements|interface|let|package|private|protected|public|static|yield)";String.$102f=new RegExp("^(?:"+String.$102c+"|"+String.$102d+"|"+String.$102e+"|null|true|false)$");String.$1561='(?:[^"\'>]|"[^"]*"|\'[^\']*\')*';isc.A=String;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$159u=new RegExp("[<&\"']","");isc.A.$1692=/[\u0000-\u001F\u0022\u005C]/g;isc.A.$1693={'\b':"\\b",'\t':"\\t",'\n':"\\n",'\f':"\\f",'\r':"\\r",'"':"\\\"",'\\':"\\\\"};isc.A.asJSONString=(isc.Browser.$1691?window.JSON.stringify:function(_1){var _2=String.$1692;_2.lastIndex=0;if(!_2.test(_1)){return'"'+_1+'"'}else{var _3=String.$1693;return'"'+_1.replace(_2,function(_5){var _4=_3[_5];if(_4!=null)return _4;_4=_5.charCodeAt(0).toString(16);if(_4.length==1){return"\\u000"+_4}else{return"\\u00"+_4}})+'"'}});isc.A.$152w=new RegExp("[^ _.,!#%a-zA-Z0-9-]+","");isc.A.$163u={"\b":"&#x5C;08&#x20;","\t":"&#x5C;09&#x20;","\n":"&#x5C;0A&#x20;","\f":"&#x5C;0C&#x20;","\r":"&#x5C;0D&#x20;","'":"&#x5C;27&#x20;","\"":"&#x5C;22&#x20;","\\":"&#x5C;5C&#x20;"," ":"&#x20;","&":"&#x5C;26&#x20;","/":"&#x5C;2F&#x20;","<":"&#x5C;3C&#x20;",">":"&#x5C;3E&#x20;","\u2028":"&#x5C;002028&#x20;","\u2029":"&#x5C;002029&#x20;"};isc.A.$163v=/[\b\t\n\f\r'"\\ &\/<>\u2028\u2029]/g;isc.A.$1562=new RegExp('<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b'+String.$1561+'>[\\s\\S]*?</script\\s*|style\\b'+String.$1561+'>[\\s\\S]*?</style\\s*|/?[a-z0-9]'+String.$1561+')>',"ig");isc.B.push(isc.A.format=function isc_String_format(){var _1=arguments[0];var _2=[];for(var i=1;i<arguments.length;i++){_2[i-1]=arguments[i]};return _1.replace(/{(\d+)}/g,function(_4,_5){return typeof _2[_5]!='undefined'?_2[_5]:_4})},isc.A.asSource=function isc_String_asSource(_1,_2){if(!isc.isA.String(_1))_1=""+_1;var _3=_2?String.$ez:String.$e0,_4=_2?"'":'"';return _4+_1.replace(/\\/g,"\\\\").replace(_3,'\\'+_4).replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+_4},isc.A.asAttValue=function isc_String_asAttValue(_1,_2,_3){var _4;if(_1==null){_4=isc.emptyString}else{_1=String(_1);if(!this.$159u.test(_1)){_4=_1}else{var _5,_6;if(_2){_5=this.$e0;_6=isc.$94s}else{_5=this.$ez;_6=isc.$139i}
_4=_1.replace(isc.$94o,isc.$94p).replace(isc.$94q,isc.$36h).replace(_5,_6)}}
if(_3){var _7=_2?"\"":"'";return _7+_4+_7}else{return _4}},isc.A.$152x=function isc_String__asCSSDeclarationValue(_1){if(_1==null){return""}else{return String(_1).replace(this.$152w,"")}},isc.A.$163w=function isc_String__fontFamilyEscapeReplace(_1){return String.$163u[_1]},isc.A.$163x=function isc_String__asFontFamilyValue(_1){var _2=isc.emptyString;if(_1==null){return _2}else{_1=String(_1);if(_1==_2){return _2}else{var r=String.$163v;return(r.test(_1)?_1.replace(r,String.$163w):_1)}}},isc.A.htmlStringToString=function isc_String_htmlStringToString(_1,_2){if(_1==null)return"";_1=String(_1).replace(/<BR\s*>/ig,"\n");var _3;do{_3=_1;_1=_1.replace(this.$1562,"")}while(_1.length!=_3.length);var _4=_1.search(/<(?!\s)[^>]*$/);if(_4>=0&&(_4==_1.length-1||_1.charCodeAt(_4+1)!=60))_1=_1.substring(0,_4);var _5;if(!_2&&_1.indexOf("&")>=0){var _6=document.createElement("span");_6.innerHTML=_1;_5=(_6.innerText||_6.textContent)}else{_5=_1}
return _5},isc.A.isValidID=function isc_String_isValidID(_1){if(!isc.isA.String(_1))return false;return(_1.search(String.$102b)!=-1&&_1.search(String.$102f)==-1)});isc.B._maxIndex=isc.C+8;isc.addMethods(isc,{replaceAll:function(_1,_2,_3){return _1.split(_2).join(_3)},contains:function(_1,_2){if(_1==null)return false;return _1.indexOf(_2)>-1},startsWith:function(_1,_2){if(_1==null)return false;return(_1.lastIndexOf(_2,0)==0)},endsWith:function(_1,_2){if(_1==null)return false;var _3=_1.length-_2.length;if(_3<0)return false;return(_1.indexOf(_2,_3)==_3)},makeXMLSafe:function(_1,_2,_3,_4,_5,_6,_7){if(_1==null)return isc.emptyString;else if(!isc.isA.String(_1))_1=_1.toString();if(_2!=false)_1=_1.replace(this.$94o,this.$94p);if(_3!=false)_1=_1.replace(this.$94q,this.$36h);if(_4!=false)_1=_1.replace(this.$94r,this.$36i);if(_5!=false)_1=_1.replace(String.$e0,this.$94s);if(_6!=false)_1=_1.replace(String.$ez,this.$94t);if(_7!=false)_1=_1.replace(this.$94u,this.$94v);_1=_1.replace(this.$1759,isc.emptyString);return _1},xmlAttributeEscapeLF:true,makeXMLSafeAttribute:function(_1,_2,_3,_4,_5,_6,_7,_8){_1=this.makeXMLSafe(_1,_2,_3,_4,_5,_6,_7);if(_8!=false&&isc.xmlAttributeEscapeLF)_1=_1.replace(this.$175k,this.$175l);return _1},$94p:"&amp;",$36h:"&lt;",$36i:"&gt;",$94s:"&quot;",$94t:"&apos;",$139i:"&#39;",$94v:"&#x000D;",$175l:"&#x000A;",$94o:/&/g,$94q:/</g,$94r:/>/g,$94u:/\r/g,$175k:/\n/g,$1759:/[\u0001-\u0008\u000B-\u000C\u000E-\u001F\u007F-\u0084\u0086-\u009F]/g,makeCDATA:function(_1){return"<![CDATA["+_1.replace(/\]\]>/,"]]<![CDATA[>")+"]]>"}});isc.ClassFactory.defineClass("StringBuffer");isc.SB=isc.StringBuffer;isc.A=isc.StringBuffer;isc.A.$e1=[];isc.A.$e2=50;isc.A=isc.StringBuffer.getPrototype();isc.A.maxStreamLength=(isc.Browser.isIE6?1000:100000);isc.A.addPropertiesOnCreate=false;isc.A=isc.StringBuffer.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_StringBuffer_init(){this.$e3=[]},isc.A.append=function isc_StringBuffer_append(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27){var _28=this.$e3,_29,_30;if(_1!=null&&_1.constructor.$k==2){var _31=_1.length;if(_31<=30){var _31=_28.length;for(var i=0;i<_1.length;i++){_28[_31++]=_1[i]}}else{_28[_28.length]=_1.join(isc.emptyString)}}else{if(_27===_30&&_26===_30&&_25===_30){if(_1!=null)_28[_28.length]=_1;if(_2!=null)_28[_28.length]=_2
if(_3!=null)_28[_28.length]=_3
if(_4!=null)_28[_28.length]=_4
if(_5!=null)_28[_28.length]=_5
if(_6!=null)_28[_28.length]=_6
if(_7!=null)_28[_28.length]=_7
if(_8!=null)_28[_28.length]=_8
if(_9!=null)_28[_28.length]=_9
if(_10!=null)_28[_28.length]=_10
if(_11!=null)_28[_28.length]=_11
if(_12!=null)_28[_28.length]=_12
if(_13!=null)_28[_28.length]=_13
if(_14!=null)_28[_28.length]=_14
if(_15!=null)_28[_28.length]=_15
if(_16!=null)_28[_28.length]=_16
if(_17!=null)_28[_28.length]=_17
if(_18!=null)_28[_28.length]=_18
if(_19!=null)_28[_28.length]=_19
if(_20!=null)_28[_28.length]=_20
if(_21!=null)_28[_28.length]=_21
if(_22!=null)_28[_28.length]=_22
if(_23!=null)_28[_28.length]=_23
if(_24!=null)_28[_28.length]=_24}else{_29=arguments;for(var i=0,l=_29.length;i<l;i++){_28[_28.length]=_29[i]}}}
if(_28.length>this.maxStreamLength){_28[0]=_28.join(isc.emptyString);_28.length=1}
return this},isc.A.appendNumber=function isc_StringBuffer_appendNumber(_1,_2){var _3=this.$e3;if(_2==null){_2=5;var _4=_1;if(_4<0){_4=0-_4;_2+=1}
if(_4>=100000){_4=_4/100000;while(_4>=1){_2+=1;_4=_4/10}}}
isc.$bk(_3,_1,_3.length,_2)},isc.A.clear=function isc_StringBuffer_clear(){this.$e3.length=0},isc.A.release=function isc_StringBuffer_release(_1){var _2=isc.SB,_3=_2.$e1,_4=_1?null:this.toString();if(_3.length<_2.$e2){this.clear();_3[_3.length]=this}
if(!_1)return _4},isc.A.getArray=function isc_StringBuffer_getArray(){return this.$e3});isc.B._maxIndex=isc.C+6;isc.StringBuffer.getPrototype().toString=function(){return this.$e3.join(isc.emptyString)}
isc.StringBuffer.$e4=Array.prototype.join;isc.A=isc.StringBuffer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$bw=[];isc.B.push(isc.A.create=function isc_c_StringBuffer_create(){var _1=this.$e1,_2=_1.length;if(_2>0){var _3=_1[_2-1];_1.length=_2-1;return _3}else{return isc.Class.create.apply(this)}},isc.A.concat=function isc_c_StringBuffer_concat(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52){var _53,_54;if(isc.Browser.isIE&&_50===_53&&_51===_53&&_52===_53){var _55=this.$bw;_55.length=0;if(_1!=null)_55[_55.length]=_1;if(_2!=null)_55[_55.length]=_2;if(_3!=null)_55[_55.length]=_3;if(_4!=null)_55[_55.length]=_4;if(_5!=null)_55[_55.length]=_5;if(_6!=null)_55[_55.length]=_6;if(_7!=null)_55[_55.length]=_7;if(_8!=null)_55[_55.length]=_8;if(_9!=null)_55[_55.length]=_9;if(_10!=null)_55[_55.length]=_10;if(_11!=null)_55[_55.length]=_11;if(_12!=null)_55[_55.length]=_12;if(_13!=null)_55[_55.length]=_13;if(_14!=null)_55[_55.length]=_14;if(_15!=null)_55[_55.length]=_15;if(_16!=null)_55[_55.length]=_16;if(_17!=null)_55[_55.length]=_17;if(_18!=null)_55[_55.length]=_18;if(_19!=null)_55[_55.length]=_19;if(_20!=null)_55[_55.length]=_20;if(_21!=null)_55[_55.length]=_21;if(_22!=null)_55[_55.length]=_22;if(_23!=null)_55[_55.length]=_23;if(_24!=null)_55[_55.length]=_24;if(_25!=null)_55[_55.length]=_25;if(_26!=null)_55[_55.length]=_26;if(_27!=null)_55[_55.length]=_27;if(_28!=null)_55[_55.length]=_28;if(_29!=null)_55[_55.length]=_29;if(_30!=null)_55[_55.length]=_30;if(_31!=null)_55[_55.length]=_31;if(_32!=null)_55[_55.length]=_32;if(_33!=null)_55[_55.length]=_33;if(_34!=null)_55[_55.length]=_34;if(_35!=null)_55[_55.length]=_35;if(_36!=null)_55[_55.length]=_36;if(_37!=null)_55[_55.length]=_37;if(_38!=null)_55[_55.length]=_38;if(_39!=null)_55[_55.length]=_39;if(_40!=null)_55[_55.length]=_40;if(_41!=null)_55[_55.length]=_41;if(_42!=null)_55[_55.length]=_42;if(_43!=null)_55[_55.length]=_43;if(_44!=null)_55[_55.length]=_44;if(_45!=null)_55[_55.length]=_45;if(_46!=null)_55[_55.length]=_46;if(_47!=null)_55[_55.length]=_47;if(_48!=null)_55[_55.length]=_48;if(_49!=null)_55[_55.length]=_49;if(_50!=null)_55[_55.length]=_50;if(_51!=null)_55[_55.length]=_51;if(_52!=null)_55[_55.length]=_52;_54=_55.join(isc.emptyString)}else{arguments.join=this.$e4;_54=arguments.join(isc.emptyString)}
return _54});isc.B._maxIndex=isc.C+2;isc.defineClass("StringMethod");isc.A=isc.StringMethod.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getValue=function isc_StringMethod_getValue(){return this.value},isc.A.getDisplayValue=function isc_StringMethod_getDisplayValue(){var _1=this.getValue();if(_1==null||isc.isA.String(_1))return _1;if(_1.title!=null)return"["+_1.title+"]"
return _1},isc.A.cdata=function isc_StringMethod_cdata(_1){var _2=_1.indexOf("]]>");if(_2==-1)return"<![CDATA["+_1+"]]>";return this.cdata(_1.slice(0,_2))+"]]&gt;"+this.cdata(_1.slice(_2+3))},isc.A.$ew=function isc_StringMethod__xmlSerialize(_1,_2,_3,_4,_5,_6){var _7=this.value;if(isc.isA.String(_7))return isc.Comm.$ex(_1,this.cdata(_7),_2||"stringMethod",_3,_4);else
return isc.StringMethod.$41u(_7,_1,_4,_5,_6)});isc.B._maxIndex=isc.C+4;isc.StringMethod.getPrototype().toString=function(){var _1=this.getValue();if(_1==null||isc.isA.String(_1))return _1;return _1.toString()},isc.A=isc.StringMethod;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$41v="Action";isc.B.push(isc.A.$41u=function isc_c_StringMethod__xmlSerializeAction(_1,_2,_3,_4,_5){var _6=isc.DataSource.get(this.$41v);if(!_6)return isc.Comm.$36t(_2,_1,_5,_4,_3);return[isc.Comm.$36u(_2),_6.xmlSerialize(_1,null,_3+"        ",this.$41v),"\n",_3,isc.Comm.$36v(_2)].join(isc.emptyString)});isc.B._maxIndex=isc.C+1;isc.defineClass("URIBuilder").addClassMethods({create:function(_1){if(isc.isA.String(_1))return this.Super("create",[{uri:_1}],arguments);else return this.Super("create",arguments)}});isc.A=isc.URIBuilder.getPrototype();isc.A.uri="";isc.A=isc.URIBuilder.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_URIBuilder_init(){this.Super("init",arguments);if(this.uri==null)this.uri="";else this.uri=String(this.uri);this.$109n=this.$109o()},isc.A.$109o=function isc_URIBuilder__getQsStartPos(){var _1=this.uri;var _2=_1.indexOf('#');if(_2==-1){return _1.indexOf('?')}else{var _3=_1.indexOf('?');if(_3>=_2){return-1}
return _3}},isc.A.appendPath=function isc_URIBuilder_appendPath(_1){if(_1==null||_1.length==0)return;var _2=encodeURI(_1).replace('?',encodeURIComponent('?')).replace('#',encodeURIComponent('#'));if(this.uri.length==0){this.uri=_2}else{var _3=this.$109n;if(_3==-1){_3=this.uri.indexOf('#')}
if(_3==-1){_3=this.uri.length}
var _4=this.uri.substring(0,_3);if(_3>0&&this.uri.charAt(_3-1)!='/'&&_1.charAt(0)!='/'){_4+='/'}
_4+=_2;_4+=this.uri.substring(_3);this.uri=_4;this.$109n=this.$109o()}},isc.A.$109p=function isc_URIBuilder__indexOfQueryParam(_1,_2){if(_2==null)_2=this.$109n;else _2=Math.max(this.$109n,_2);if(_2<0)return-1;var _3=this.uri.indexOf('#',this.$109n+1);var _4=_3==-1?this.uri.length:_3;for(;_2<_4&&(_2=this.uri.indexOf(_1,_2))!=-1;_2+=_1.length){if(this.uri.charAt(_2-1)=='&'||this.uri.charAt(_2-1)=='?'){var _5=_2+_1.length;if(_5<=_4&&(_5==_4||this.uri.charAt(_5)=='='||this.uri.charAt(_5)=='&'))
{return _2}}}
return-1},isc.A.containsQueryParam=function isc_URIBuilder_containsQueryParam(_1){return _1!=null&&this.$109p(encodeURIComponent(_1))!=-1},isc.A.getQueryValue=function isc_URIBuilder_getQueryValue(_1,_2){var _3=encodeURIComponent(_1);var _4=this.$109p(_3);if(_4<0)return null;var _5=this.uri.indexOf('#',this.$109n==-1?0:this.$109n+1);if(_5==-1)_5=this.uri.length;var _6=this.uri.indexOf('&',_4+_3.length);var _7=_4+(this.uri[_4+_3.length]==='='?_3.length+1:_3.length);var _8=_6>=0?Math.min(_6,_5):_5;var _9=this.uri.substring(_7,_8);if(_2||(_4=this.$109p(_3,_8))<0){return decodeURIComponent(_9)}else{var _10=[decodeURIComponent(_9)];do{_6=this.uri.indexOf('&',_4+_3.length);_7=_4+(this.uri[_4+_3.length]==='='?_3.length+1:_3.length);_8=_6>=0?Math.min(_6,_5):_5;_9=this.uri.substring(_7,_8);_10.add(decodeURIComponent(_9));_4=this.$109p(_3,_8)}while(_4>=0);return _10}},isc.A.$109q=function isc_URIBuilder__appendQueryParamHelper(_1,_2){if(_2==null)return;if(isc.isA.String(_2)){var _3=this.uri.indexOf('#',this.$109n==-1?0:this.$109n+1);if(_3==-1)_3=this.uri.length;var _4=this.uri.substring(0,_3);if(this.$109n==-1){this.$109n=_3;_4+='?'}else _4+='&';_4+=_1;_4+=encodeURIComponent(_2.toString());_4+=this.uri.substring(_3);this.uri=_4}else if(isc.isAn.Array(_2)){for(var i=0;i<_2.length;++i){this.$109q(_1,_2[i])}}else{this.$109q(_1,String(_2))}},isc.A.appendQueryParam=function isc_URIBuilder_appendQueryParam(_1,_2){if(_1==null)return;var _3=encodeURIComponent(_1);var _4=_3+'=';this.$109q(_4,_2)},isc.A.setQueryParam=function isc_URIBuilder_setQueryParam(_1,_2){var _3=encodeURIComponent(_1);var _4=_3+'=';if(this.$109n!=-1){var _5=this.uri.indexOf('#',this.$109n+1);var _6=_5==-1?this.uri.length:_5;var _7="";_7+=this.uri.substring(0,this.$109n);var _8=this.$109n,_9=this.$109n;while(_9<_6&&(_9=this.uri.indexOf(_4,_9))!=-1){var _10=this.uri.indexOf('&',_9+_4.length);if(this.uri.charAt(_9-1)=='&'||this.uri.charAt(_9-1)=='?'){_7+=this.uri.substring(_8,_9);if(_10!=-1&&_10<_6){_9=_10+1}else{_9=_6;_7=_7.substring(0,_7.length-1)}}else{_9=(_10!=-1&&_10<_6?_10+1:_6);_7+=this.uri.substring(_8,_9)}
_8=_9}
_7+=this.uri.substring(_8,this.uri.length);this.uri=_7;this.$109n=this.$109o()}
this.appendQueryParam(_1,_2)});isc.B._maxIndex=isc.C+9;isc.ClassFactory.defineClass("Cookie");isc.A=isc.Cookie;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_c_Cookie_init(){isc.Cookie.list={};if(document.cookie=="")return;var _1=(""+document.cookie).split("; ");for(var i=0,_3=_1.length,_4;_4=_1[i],i<_3;i++){var _5=_4.indexOf('='),_6=(_5==-1?_4:_4.substring(0,_5));isc.Cookie.list[_6]=(_5==-1?'':unescape(_4.substring(_5+1)))}},isc.A.get=function isc_c_Cookie_get(_1){isc.Cookie.init();return isc.Cookie.list[_1]},isc.A.set=function isc_c_Cookie_set(_1,_2,_3,_4,_5){isc.Cookie.init();document.cookie=_1+"="+escape(_2)+(_3?";path="+_3:"")+(_4?";domain="+_4:"")+(_5?";expires="+(isc.isA.String(_5)?_5:_5.toGMTString()):"")},isc.A.clear=function isc_c_Cookie_clear(_1,_2,_3){isc.Cookie.init();this.set(_1,"",_2,_3,"Thu, 01-Jan-70 00:00:01 GMT")},isc.A.getList=function isc_c_Cookie_getList(){isc.Cookie.init();return isc.getKeys(isc.Cookie.list)});isc.B._maxIndex=isc.C+5;isc.defineClass("StackTrace");isc.A=isc.StackTrace;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.fromNativeStack=function isc_c_StackTrace_fromNativeStack(_1){if(isc.Browser.isMoz){return isc.MozStackTrace.create({stack:_1})}else if(isc.Browser.isChrome){return isc.ChromeStackTrace.create({stack:_1})}else if(isc.Browser.isIE){return isc.IEStackTrace.create({stack:_1})}else{return isc.UnsupportedStackTrace.create({stack:_1})}},isc.A.getSourceLine=function isc_c_StackTrace_getSourceLine(_1,_2,_3){_2=_2||isc.Page.getAppDir();_3=_3||window.location.protocol+"//"+window.location.host;_1=_1.replace(/(\?|\&)?sc_selenium=true/,"");var _4=_1.indexOf("/system/modules/ISC_"),_5=_1.indexOf("/system/development/ISC_");if(_4!=-1){_1=_1.substring(_4+16)}else if(_5!=-1){_1=_1.substring(_5+20)+"[d]"}
if(_4!=-1||_5!=-1){if(!isc.Log.logIsDebugEnabled("traceLineNumbersCore"))return"";var _6=_1.indexOf("?isc_version");if(_6!=-1){_1=_1.substring(0,_6)+_1.substring(_1.indexOf(":"))}}
if(_1.startsWith(_2)){_1=_1.substring(_2.length)}else if(_1.startsWith(_3)){_1=_1.substring(_3.length)}
return" @ "+_1});isc.B._maxIndex=isc.C+2;isc.A=isc.StackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.stack=null;isc.A.preambleLines=0;isc.A.$83t="";isc.B.push(isc.A.init=function isc_StackTrace_init(){if(this.stack){this.$83u()}},isc.A.extractFunctionFromLine=function isc_StackTrace_extractFunctionFromLine(_1){this.logError("Should implement extractFunctionFromLine in subclass")},isc.A.extractArgumentsFromLine=function isc_StackTrace_extractArgumentsFromLine(_1){this.logError("Should implement extractArgumentsFromLine in subclass")},isc.A.extractSourceFromLine=function isc_StackTrace_extractSourceFromLine(_1){this.logError("Should implement extractSourceFromLine in subclass")},isc.A.$83u=function isc_StackTrace__parseStack(){try{var _1=this.stack.split("\n"),_2=isc.StringBuffer.create(),_3=isc.Page.getAppDir(),_4=window.location.protocol+"//"+window.location.host;for(var i=this.preambleLines;i<_1.length;i++){var _6=_1[i],_7=null,_8=null,_9=null;if(isc.isAn.emptyString(_6))continue;var _10=this.extractFunctionFromLine(_6);if(_10==""){_10="unnamed"}else if(_10.startsWith("isc_")){var _11;if(_10.startsWith("isc_c_")){_10=_10.substring(6);_11=true}else{_10=_10.substring(4)}
_8=_10.substring(0,_10.indexOf("_"));_9=_10.substring(_8.length+1);var _12=isc.ClassFactory.getClass(_8),_13=null;if(_12){_13=_11?_12[_9]:_12.getInstanceProperty(_9)}
if(_13!=null){_10=isc.Func.getName(_13,true);var _14;if(!_11){_14=_12.getArgString(_9)}else{_14=isc.Func.getArgString(_13)}
_7=_14.split(",")}else{_10=_10.replace(/_{1}/,".");_10=_10.replace(/_{2}/,"._")}}
_2.append("    ",_10,"(");var _14=this.extractArgumentsFromLine(_6);var _15=0;while(_14&&_14.length>0){if(_15>0)_2.append(", ");if(_7)_2.append(_7[_15]+"=>");var _16=_14.length;_14=this.$83v(_14,_2);if(_14.length==_16){isc.logWarn("failure to parse next arg at:\n"+_14);break}
_15++}
_2.append(")");var _17=_6.lastIndexOf("@");_2.append(isc.StackTrace.getSourceLine(this.extractSourceFromLine(_6),_3,_4));_2.append("\n")}
this.$83t=_2.release(false)}
catch(e){this.$83t=this.stack}},isc.A.$83v=function isc_StackTrace__parseArgument(_1,_2){var _3=_1.charAt(0);if(_3=="\""){var _4=_1.search(/[^\\]"/);if(_4==-1)_4=_1.length;var _5=_1.substring(0,_4+2);if(_5.length>40){_5=_5.substring(0,40)+"...\"[ "+_5.length+"]"}
_2.append(_5);return _1.substring(_4+3)}else if(_3=="["){var _6=_1.substring(1).indexOf("]"),_7=_1.substring(0,_6+2);if(_7=="[object Object]")_7="{Obj}";_2.append(_7);return _1.substring(_6+3)}else if(_1.startsWith("(void 0)")){_2.append("undef");return _1.substring(9)}else if(_1.startsWith("undefined")){_2.append("undef");return _1.substring(10)}else if(_1.startsWith("(function ")){var _8=_1.substring(1,_1.indexOf("{"));if(_8.endsWith(" "))_8=_8.substring(0,_8.length-1);_2.append(_8);var _9=_1.indexOf("}),");if(_9==-1)return"";return _1.substring(_9+3)}else{var _10=_1.indexOf(",");if(_10==-1)_10=_1.length;_2.append(_1.substring(0,_10));return _1.substring(_10+1)}});isc.B._maxIndex=isc.C+6;isc.StackTrace.getPrototype().toString=function(){return this.$83t};isc.defineClass("MozStackTrace",isc.StackTrace);isc.A=isc.MozStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.extractFunctionFromLine=function isc_MozStackTrace_extractFunctionFromLine(_1){var _2=isc.Browser.version>=14,_3=_1.indexOf(_2?"@":"(");return _1.substring(0,_3)},isc.A.extractArgumentsFromLine=function isc_MozStackTrace_extractArgumentsFromLine(_1){if(isc.Browser.version>=14)return"";var _2=_1.indexOf("(");var _3=_1.lastIndexOf("@");return _1.substring(_2+1,_3-1)},isc.A.extractSourceFromLine=function isc_MozStackTrace_extractSourceFromLine(_1){var _2=_1.lastIndexOf("@");if(_2>=0){return _1.substring(_2+1)}else{return""}});isc.B._maxIndex=isc.C+3;isc.defineClass("ChromeStackTrace",isc.StackTrace);isc.A=isc.ChromeStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.preambleLines=1;isc.A.$83x=/at (Object\.)?([^ ]+)/;isc.A.$83y=/\((.+)\)/;isc.B.push(isc.A.extractFunctionFromLine=function isc_ChromeStackTrace_extractFunctionFromLine(_1){var _2=_1.match(this.$83x);return _2?_2[2]:""},isc.A.extractArgumentsFromLine=function isc_ChromeStackTrace_extractArgumentsFromLine(_1){return""},isc.A.extractSourceFromLine=function isc_ChromeStackTrace_extractSourceFromLine(_1){var _2=_1.match(this.$83y);return _2?_2[1]:""});isc.B._maxIndex=isc.C+3;isc.A=isc.ChromeStackTrace;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$122x=function isc_c_ChromeStackTrace__getLastErrorCallSitesParsedStack(_1){if(!isc.$122w)return"";this.$1676();var _2=isc.StringBuffer.create(),_3=null;for(var i=0;i<isc.$122w.length;i++){var _5=isc.$122w[i],_6=_5.getThis();if(!_6){continue}
var _7=null,_8=_5.getTypeName(),_9=_5.getFunctionName(),_10=_5.getFunction();if(!_9){_9="<anonymous>"}else{if(_9&&_9.startsWith("isc_")){var _11=_9.startsWith("isc_c_")?6:4;_9=_9.substring(_11);var _12=_9.indexOf("_");_7=_9.substring(0,_12);_9=_9.substring(_12+1)}else{_9=_9.substring(_9.lastIndexOf(".")+1)}}
var _13=this.$122y(_9,_7,_10);var _14=(_7!=null?_7:_8)+"."+_9;var _15=_5.resolvedArguments;if(_15==null){_15="(<no args: exited>)"}
if(_7==null&&(_8=="Object"||_8=="Window")){_14=_9}
_2.append("\t",_13,_14,_15," ");if(isc.isAn.Instance(_6)||isc.isA.ClassObject(_6))
{_2.append("on ",_1.echoLeaf(_6)," ")}
var _16=_5.getFileName();if(_16){_16=_16.substring(_16.lastIndexOf("/")+1)
var _17=_16.lastIndexOf("?");if(_17>0){_16=_16.substring(0,_17)}
_2.append("@ ",_16)}else{_2.append("@ [no file]")}
_2.append(":",_5.getLineNumber(),":",_5.getColumnNumber(),"\n");if(_10!=null&&_10.arguments!=null&&_10.arguments.timerTrace){_2.append("Stack trace for setTimeout() call:\n"+_10.arguments.timerTrace);_3=false}else if(_14=="Timer.$150o"&&_3==null)
{_3=true}}
if(_3&&isc.Timer.currentAction&&isc.Timer.currentAction.timerTrace)
{_2.append("Stack trace for setTimeout() call:\n"+isc.Timer.currentAction.timerTrace)}
delete isc.$122w;return _2.release(false)},isc.A.$122y=function isc_c_ChromeStackTrace__getFunctionModifier(_1,_2,_3){if(_2==null)return"";var _4=isc.ClassFactory.getClass(_2);return(_3.$be?(_3.$bf?"[o]":"[a]"):isc.$ad)+((_4!=null&&_4[_1]===_3)?"[c]":isc.$ad)},isc.A.$1677=function isc_c_ChromeStackTrace__addCallSiteFunction(_1,_2){var _3=isc.$122w,_4=_3.functionSet;if(!_4){_4=_3.functionSet={}}
var _5=_4[_1];if(isc.isAn.Array(_5))_5.add(_2);else if(_5)_4[_1]=[_5,_2];else _4[_1]=_2},isc.A.$1678=function isc_c_ChromeStackTrace__containsCallSiteFunction(_1,_2){var _3=isc.$122w,_4=_3.functionSet;if(!_4)return false;var _5=_4[_1];return _5==_2||isc.isAn.Array(_5)&&_5.contains(_2)},isc.A.$1679=function isc_c_ChromeStackTrace__resolveCallSiteFirstArgsIndex(){var _1=isc.$122w,_2=_1.firstArgsIndex;if(_2!=null)return;var _3,_1=isc.$122w;var _4=Error.prepareStackTrace;delete Error.prepareStackTrace;Error.prepareStackTrace=function(_11,_12){_3=_12};var _5=new Error().stack;Error.prepareStackTrace=_4;var _6=Math.min(_3.length,_1.length),_7=_3.length-_6,_8=_1.length-_6;for(var i=0;i<_6;i++,_8++,_7++){if(_1[_8].getFunction()==_3[_7].getFunction())break}
_1.firstArgsIndex=_8;for(var i=0;i<_7;i++){var _10=_3[i];this.$1677(_10.getFunctionName(),_10.getFunction())}},isc.A.$1676=function isc_c_ChromeStackTrace__resolveCallSiteFunctionArguments(){this.$1679();var _1=isc.$122w;if(_1.argumentsResolved)return;var _2=_1.firstArgsIndex;for(var i=_2;i<_1.length;i++){var _4=_1[i],_5=_4.getFunction(),_6=_4.getFunctionName();if(_5==null||_5.arguments==null)continue;var _7="";if(this.$1678(_6,_5)){_7="(<no args: recursion>) "}else{var _8=isc.Func.getArgs(_5);if(_8.length>0){var _9=_5.arguments;for(var j=0;j<_8.length;j++){if(j!=0){_7+=", "}
_7+=_8[j]+"=>"+isc.echoLeaf(_9[j])}
_7="("+_7+")"}else{_7="()"}
this.$1677(_6,_5)}
_1[i].resolvedArguments=_7}
_1.argumentsResolved=true});isc.B._maxIndex=isc.C+6;isc.defineClass("IEStackTrace",isc.StackTrace);isc.A=isc.IEStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.preambleLines=1;isc.A.$83x=/at ((?:[A-Za-z_$0-9]+ )+)/;isc.A.$83y=/\((.+)\)/;isc.B.push(isc.A.extractFunctionFromLine=function isc_IEStackTrace_extractFunctionFromLine(_1){var _2=_1.match(this.$83x);return _2?_2[1]:""},isc.A.extractArgumentsFromLine=function isc_IEStackTrace_extractArgumentsFromLine(_1){return""},isc.A.extractSourceFromLine=function isc_IEStackTrace_extractSourceFromLine(_1){var _2=_1.match(this.$83y);return _2?_2[1]:""});isc.B._maxIndex=isc.C+3;isc.defineClass("UnsupportedStackTrace",isc.StackTrace);isc.A=isc.UnsupportedStackTrace.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$83u=function isc_UnsupportedStackTrace__parseStack(){});isc.B._maxIndex=isc.C+1;isc.UnsupportedStackTrace.getPrototype().toString=function(){return this.stack};if(isc.Browser.isChrome){isc.StackTrace.$123q=null;if(Error.prepareStackTrace!=null){isc.StackTrace.$123q=Error.prepareStackTrace}
Error.prepareStackTrace=function(_1,_2){isc.$122w=_2;if(_1.getStackTraceOnly){return isc.$ad}
var _3=null;if(isc.StackTrace.$123q!=null){_3=isc.StackTrace.$123q(_1,_2)}else{var _4=Error.prepareStackTrace;delete Error.prepareStackTrace;try{throw _1}catch(e){_3=e.stack}
Error.prepareStackTrace=_4}
return _3}
Error.stackTraceLimit=Infinity};isc.$94b={};isc.A=isc.$94b;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1050=40;isc.A.$fj={outerText:false,innerText:false,parentTextEdit:false,isTextEdit:false,parentTextEdit:false,contentEditable:false,canHaveHTML:true,isMultiLine:false,filters:false,canHaveChildren:false,behaviorUrns:false,sourceIndex:false,accelerator:false,textDecorationUnderline:false,textDecorationNone:false};isc.B.push(isc.A.getCallTrace=function isc__debug_getCallTrace(_1,_2,_3,_4,_5,_6){if(_1==null)_1=arguments.caller;if(_1==null)return"[getCallTrace(): Error: couldn't get arguments object]";var _7,_8=_1.callee;if(_8==null){_7="[args.callee == null]"}else if(!isc.Func){_7="[Func utility class not loaded]"}else{_7=isc.Func.getName(_8,true)}
_7+="(";_4=_4||(_8!=null?isc.Func.getArgs(_8):[]);_5=_5||_1;var _9=Math.max(_5.length,_4.length);for(var i=0;i<_9;i++){var _11=_4[i],_12=_5[i];if(i>0)_7+=", ";if(_11!=null){_7+=_11+"=>"}
_7+=this.echoLeaf(_12)}
_7+=")";_2=_2||_1.$cw;if(_2)_7+=" on "+this.echoLeaf(_2);var _13=false;if(_13||(!_3&&!_8.$c7))return _7;var _14=this.$e6(_8);if(!_8.$c7){var _15=_14.split(/[\r\n]+/);if(_15.length>1||_15[0].length>200)return _7}
_7+='\n        "'+_14+'"';return _7},isc.A.$e6=function isc__debug__getTrimmedMethodBody(_1){var _2=isc.Func.getBody(_1);return _2.trim()},isc.A.$179w=function isc__debug__getNativeStackTrace(_1,_2,_3,_4){if(_4==null)_4="";var _5=isc.StackTrace.fromNativeStack(_1.stack).toString();if(_5){_5=_5.trim().split(/\r?\n/).slice(_2+1,!_3?Number.MAX_VALUE:_2+1+_3);if(_5.length>0)_4+="\r\n"+_5.join("\n")+"\n"}
return _4},isc.A.$179x=function isc__debug__getStackDepth(_1){if(!isc.isA.String(_1))return 0;var _2=_1.trim().match(/\r?\n/g);return _2?_2.length+1:1},isc.A.getStackTrace=function isc__debug_getStackTrace(_1,_2,_3,_4,_5){if(_2==null)_2=0;if(isc.Log.useChromeAPIToPrepareStackTrace&&isc.Browser.isChrome){var e=new Error;var _7=Error.prepareStackTrace;Error.prepareStackTrace=function(_13,_14){_14.firstArgsIndex=0;return _14};Error.captureStackTrace(e,arguments.callee);isc.$122w=e.stack;var _8;if(!isc.Log.ignoreChromeNativeStackTrace){delete Error.prepareStackTrace;_8=this.$179w(new Error(),_2,_3)}
Error.prepareStackTrace=_7;var _9=isc.ChromeStackTrace.$122x(this);if(_2){for(var i=0;i<_2;i++){_9=_9.substring(_9.indexOf("\n")+1)}}
_9="\r\n"+_9;return this.$179x(_8)>this.$179x(_9)?_8:_9}
var _11="";try{_11+=this.$76x(_1,_2+1,_3)}catch(e){_11=this.$179w(e,_2+1,_3,_11)}
if(this.hasFireBug()&&!_4&&isc.Log.showFireBugTrace!=false){isc.Log.$50m=isc.Log.$50m||0;var _12="FBugTrace"+isc.Log.$50m++;_11+="\r\n"+this.fireBugTrace(_12)}
return _11},isc.A.$76x=function isc__debug__getStackTraceFromArgs(_1,_2,_3,_4){if(!arguments||!arguments.callee||!arguments.callee.caller){return" [Stack trace not supported in this browser]"}
if(_1==null)_1=arguments.caller||arguments.callee.caller.arguments;var _5=[];var _6=_4||(isc.Browser.isIE&&isc.Browser.version<=5);if(_2!=null){for(var i=0;i<_2;i++){if(_1==null)break;if(!_6){_1=_1.callee.caller.arguments}else{_1=_1.caller}}}
if(_1==null){return""}
var _8=_1.callee;var _9=[];var _10=true;if(_3==null)_3=Number.MAX_VALUE;var _11=0;var _12="";while(_8!=null&&_1!=null&&_11<_3){if(_1.timerTrace){_5.add("\nStack trace for setTimeout() call:   "+_1.timerTrace);break}else if(isc.Func.getName(_8,true)=="[c]Timer.$in"&&isc.Timer.currentAction&&isc.Timer.currentAction.timerTrace){_5.add("\nStack trace for setTimeout() call:   "+isc.Timer.currentAction.timerTrace);break}
if(!_6){if(_9.contains(_8)){_5.add("    ** recursed on "+isc.Func.getName(_8,true));break}
_9.add(_8)}
var _13=(_10||(_1.callee!=null&&_1.callee.caller==null));if(_4){}else{_5.add("    "+this.getCallTrace(_1,null,_13))}
if(_11==0||isc.showLocalsInTraces){var _14=_1.$e8;var _15=this.$e7(_14,_11!=0);if(_15)_5.add(_15)}
_8=_1.callee;if(!_6){_8=_8.caller;if(_8)_1=_8.arguments}else _1=_1.caller;_10=false;_11++;if(_4&&_1!=null&&_1.callee==null){_5.add("    [global scope]");break}}
if(_5.length==0)return"";return"\r\n"+_5.join("\n")+"\n"},isc.A.hasFireBug=function isc__debug_hasFireBug(){return(isc.Browser.isMoz&&window.console!=null&&(window.console.firebug!=null||(window.console.exception!=null&&(isc.Browser.version<=27||window.console.exception.toString().indexOf("[native code]")<0))))},isc.A.fireBugVersion=function isc__debug_fireBugVersion(){return this.hasFireBug()?window.console.firebug:null},isc.A.fireBugTrace=function isc__debug_fireBugTrace(_1){window.console.trace(_1);return" [Complete stack trace logged via Firebug: "+_1+"]"},isc.A.$e7=function isc__debug__getFrameLocals(_1,_2){var _3=isc.SB.create();var _4=true;for(var _5 in _1){var _6=_1[_5],_7;if(_6===_7)continue;if(isc.startsWith(_5,isc.$ag))continue;if(_2){if(!_4)_3.append(", ");else _3.append("\n        locals: ");_3.append(_5+"=>"+this.echoLeaf(_6));_4=false}else{_3.append("\n        "+_5+" = "+this.echoLeaf(_6))}}
return _3.release(false)},isc.A.$am=function isc__debug__reportJSError(_1,_2,_3,_4,_5){if(_1.$fa)return;_1.$fa=true;var _6=(_5?_5+": ":"")+_1.toString();if(_1.stack){_6+="\nStack from error.stack:\n";if(isc.Log.useChromeAPIToPrepareStackTrace&&isc.Browser.isChrome&&_1 instanceof Error)
{_6+=isc.ChromeStackTrace.$122x(this)}else{_6+=isc.StackTrace.fromNativeStack(_1.stack).toString()}}else{_6+="  [No error.stack available]"}
this.$115i(_6)},isc.A.$115i=function isc__debug__reportJSErrorStack(_1){this.logWarn(_1)},isc.A.$1675=function isc__debug__onRethrowError(_1){if(isc.Log.useChromeAPIToPrepareStackTrace&&_1 instanceof Error){_1.stack;isc.ChromeStackTrace.$1676(this)}},isc.A.transformMozStackTrace=function isc__debug_transformMozStackTrace(_1){return isc.StackTrace.fromNativeStack(_1).toString()},isc.A.echoLeaf=function isc__debug_echoLeaf(_1,_2){var _3="",_4;if(_1===_4)return"undef";try{if(_1!=null&&isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))
return _1.toString();if(isc.isA.Class(_1)){_3+=_1.toString()}else if(isc.isAn.Array(_1)){_3+="Array["+_1.length+"]"}else if(isc.isA.Date(_1)){_3+="Date("+_1.toShortDate()+")"}else if(isc.isA.Function(_1)){_3+=isc.Func.getName(_1,true)+"()"}else{switch(typeof _1){case"string":var _5=this.$1050;if(_1.length<=_5||_2){_3+='"'+_1+'"';break}
_3+='"'+_1.substring(0,_5)+'..."['+_1.length+']';_3=_3.replaceAll("\n","\\n").replaceAll("\r","\\r");break;case"object":if(_1==null){_3+="null";break}
if(_1.tagName!=null){_3+="["+_1.tagName+"Element]"+this.getIDText(_1);break}
var _6="[object]";try{_6=""+_1}catch(e){}
if(_6!=""&&_6!="[object Object]"&&_6!="[object]")
{_3+=_6;break}
_3+="Obj"+this.getIDText(_1);break;default:_3+=""+_1}}
return _3}catch(e){var _7="[Error in echoLeaf: "+e+"]";_3+=_7;this.logDebug(_7,"Log");return _3}},isc.A.getIDText=function isc__debug_getIDText(_1){var _2=_1.name||(isc.isAn.XMLNode(_1)?_1.getAttribute("name"):null);if(_2!=null&&!isc.isAn.emptyString(_2))return"{name:"+_2+"}";var _3=_1.ID!=null?_1.ID:_1.id!=null?_1.id:(isc.isAn.XMLNode(_1)?_1.getAttribute("id"):null);if(_3!=null&&!isc.isAn.emptyString(_3))return"{ID:"+_3+"}";if(_1.nodeName!=null&&!isc.isAn.emptyString(_1.nodeName)){return"{nodeName:"+_1.nodeName+"}"}
var _4=_1.title||(isc.isAn.XMLNode(_1)?_1.getAttribute("title"):null);if(_4!=null&&!isc.isAn.emptyString(_4))return"{title:"+_4+"}";var _5=_1.type||(isc.isAn.XMLNode(_1)?_1.getAttribute("type"):null);if(_5!=null&&!isc.isAn.emptyString(_5))return"{type:"+_5+"}";var _5=_1._constructor;if(_5!=null&&!isc.isAn.emptyString(_5))return"{_constructor:"+_5+"}";var _6=_1.label||(isc.isAn.XMLNode(_1)?_1.getAttribute("label"):null);if(_6!=null&&!isc.isAn.emptyString(_6))return"{label:"+_6+"}";var _5=_1.className;if(_5!=null&&!isc.isAn.emptyString(_5))return"{className:"+_5+"}";if(_1.length!=null)return"{length:"+_1.length+"}";return""},isc.A.echo=function isc__debug_echo(_1,_2,_3,_4){if(_1==null)return this.echoLeaf(_1);if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1.toString();if(_2==null)_2=true;if(_1.tagName)return this.echoDOM(_1);if(typeof _1!="object"||isc.isA.Date(_1))return this.echoLeaf(_1,true);if(isc.isAn.Array(_1)){var _5=(_3?"[\n":"[");for(var i=0;i<_1.length;i++){_5+=(_3?this.echo(_1[i],_2):this.echoLeaf(_1[i]));if(i+1<_1.length)_5+=(_3?",\n":", ")}
_5+="\n]";return _5}
var _5="{";if(_1.getUniqueProperties!=null){_5=_1.getClassName()+"{";_1=_1.getUniqueProperties();if(_4==null)_4=false}
if(_4==null)_4=true;var _7;try{_7=isc.getKeys(_1)}catch(e){return this.echoLeaf(_1)}
if(isc.Browser.isSafari){var _8=false,_9="[object CSSStyleDeclaration]";try{_8=(_1+""==_9)}catch(e){}
if(_8){_5=_9+"{\n[standard props only]\n";_7=isc.getKeys(isc.Canvas.$fi());_7.add("cssText")}}
for(var i=0;i<_7.length;i++){var _10=_7[i],_11;try{_11=_1[_10]}catch(e){_11="[error accessing property: "+e+"]"}
if(!_4&&isc.isA.Function(_11))continue;if(_10.startsWith("$"))continue;var _12;if(_10==isc.gwtRef){_12="{GWT Java Obj}"}else if(_10==isc.gwtModule){_12="{GWT Module Obj}"}else{_12=this.echoLeaf(_11)}
_5+=_10+": "+_12;if(i+1<_7.length)_5+=(_2?",\r":", ")}
_5+="}";return _5},isc.A.echoAll=function isc__debug_echoAll(_1,_2){return this.echo(_1,_2,true)},isc.A.echoFull=function isc__debug_echoFull(_1){return isc.JSON.encode(_1,{prettyPrint:true,showDebugOutput:true})},isc.A.echoShort=function isc__debug_echoShort(_1){return this.echo(_1,false,false)},isc.A.echoArray=function isc__debug_echoArray(_1){if(!isc.isAn.Array(_1))return this.echo(_1);if(_1.length==0)return"[empty array]";var _2=["["];for(var i=0;i<_1.length;i++){_2.addList([i,":",_1[i],"\n"])}
_2.add("]");return _2.join("")},isc.A.echoDOM=function isc__debug_echoDOM(_1){return this.echoDelta(_1,window.Node,_1.tagName+this.getIDText(_1))},isc.A.echoEvent=function isc__debug_echoEvent(_1){return this.echoDelta(_1,(isc.Browser.isMoz?window.KeyEvent:window.Event))},isc.A.echoDelta=function isc__debug_echoDelta(_1,_2,_3){if(_1==null)return null;if(isc.Browser.isIE&&isc.isAn.XMLNode(_1)){var _4="<"+_1.tagName+" [XMLNode] ";var _5=_1.attributes;for(var i=0;i<_5.length;i++){var _7=_5[i];if(i>0)_4+=" ";_4+=_7.name+"="+this.echoLeaf(_7.value)}
_4+=(i>0?" [":"")+_1.childNodes.length+" child nodes]>";return _4}
var _4=(_3||isc.emptyString)+"{",_8=isc.getKeys(_1);for(var i=0;i<_8.length;i++){var _9=_8[i];if(this.$fj[_9]!=null)continue;if(_2!=null&&_2[_9]!=null)continue;if(_9.length>3&&_9.toUpperCase()==_9)continue;try{var _10=_1[_9];if(_10==null||_10=="")continue;if(isc.isA.Function(_10))continue;_4+=_9+": "+this.echoLeaf(_1[_9])}catch(e){_4+=_9+": "+this.echoLeaf(e)}
if(i+1<_8.length)_4+=", "}
_4+="}";return _4},isc.A.echoElementSize=function isc__debug_echoElementSize(_1){var _2;return this.echo({scrollLeft:_1.scrollLeft,scrollTop:_1.scrollTop,scrollWidth:_1.scrollWidth,scrollHeight:_1.scrollHeight,clientWidth:_2,clientHeight:_2,offsetWidth:_1.offsetWidth,offsetHeight:_1.offsetHeight,styleLeft:_1.style.left,styleTop:_1.style.top,styleWidth:_1.style.width,styleHeight:_1.style.height,styleClip:_1.style.clip})});isc.B._maxIndex=isc.C+25;isc.Class.addProperties(isc.$94b)
isc.Class.addClassProperties(isc.$94b)
isc.$fk={logMessage:function(_1,_2,_3,_4){var _5=isc.Log;if(!_5)return;if(_1==null)_1=_5.defaultPriority;if(_1<=_5.stackTracePriority&&this.getStackTrace!=null){_2+="\nStack trace:\n"+this.getStackTrace(arguments,2)}
if(!_3)_3=this.Class;var _6=this.ID;if(isc.FormItem&&isc.isA.FormItem(this)&&this.name!=null){_6+="["+this.name+"]"}
_5.log(_1,_2,_3,_6,this,_4)},logDebug:function(_1,_2){return this.logMessage(isc.Log.DEBUG,_1,_2)},logInfo:function(_1,_2){return this.logMessage(isc.Log.INFO,_1,_2)},logWarn:function(_1,_2){return this.logMessage(isc.Log.WARN,_1,_2)},logError:function(_1,_2){return this.logMessage(isc.Log.ERROR,_1,_2)},logFatal:function(_1,_2){return this.logMessage(isc.Log.FATAL,_1,_2)},logIsEnabledFor:function(_1,_2){return(isc.Log.isEnabledFor&&isc.Log.isEnabledFor((_2?_2:this.Class),_1,this))},logIsDebugEnabled:function(_1){return this.logIsEnabledFor(isc.Log.DEBUG,_1)},logIsInfoEnabled:function(_1){return this.logIsEnabledFor(isc.Log.INFO,_1)},logIsWarnEnabled:function(_1){return this.logIsEnabledFor(isc.Log.WARN,_1)},logIsErrorEnabled:function(_1){return this.logIsEnabledFor(isc.Log.ERROR,_1)},setLogPriority:function(_1,_2){isc.Log.setPriority(_1,_2,this)},setDefaultLogPriority:function(_1){isc.Log.setDefaultPriority(_1,this)},getDefaultLogPriority:function(){return isc.Log.getDefaultPriority(this)},clearLogPriority:function(_1){isc.Log.clearPriority(_1,this)}};isc.Class.addMethods(isc.$fk)
isc.Class.addClassMethods(isc.$fk)
isc.ClassFactory.defineClass("Log");isc.A=isc.Log;isc.A.FATAL=1;isc.A.ERROR=2;isc.A.WARN=3;isc.A.INFO=4;isc.A.DEBUG=5;isc.A.PRIORITY_NAMES=["NONE","FATAL","ERROR","WARN","INFO","DEBUG"];isc.A=isc.Log;isc.A.defaultPriority=isc.Log.WARN;isc.A.stackTracePriority=isc.Log.ERROR;isc.A.$fl={"sgwtInternal":(isc.Log.FATAL)};isc.A.$fm={};isc.A.messageCount=1000;isc.A.$fo=0;isc.A.$fp=[];isc.A.$fq=":";isc.A.$fr=".";isc.A._allCategories="_allCategories";isc.A.$fs="$fs";isc.A.regexObjectForMessagePattern=null;isc.A.prefixForMessagePattern=null;isc.A=isc.Log;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._1zero="0";isc.A._2zero="00";isc.A.showInlineLogs=false;isc.A.$ft="$T_";isc.A.$73n={};isc.A.$fu=["Timed ",,": ",,"ms"];isc.A.flashHiliteCount=7;isc.A.flashHilitePeriod=500;isc.B.push(isc.A.applyLogPriorities=function isc_c_Log_applyLogPriorities(_1){if(!this.$fl){this.$fl={}}
if(_1){isc.addProperties(this.$fl,_1)}},isc.A.getLogPriorities=function isc_c_Log_getLogPriorities(_1,_2){var _3;if(_1!=null){var _4=this.$fv(_1);_3=this.$fm[_4];if(_2){return isc.addProperties({},_3)}}
var _5=isc.addProperties({},this.$fl);if(_3)_5=isc.addProperties(_5,_3);return _5},isc.A.$fv=function isc_c_Log__getObjectID(_1){var _2;if(_1==null)_2=isc.emptyString;else if(isc.isA.String(_1))return _1;else _2=(_1.getID?_1.getID():_1.getClassName());return _2},isc.A.getPriority=function isc_c_Log_getPriority(_1,_2){if(_2!=null){var _3=this.$fv(_2),_4=this.$fm[_3];if(_4){if(_4._allCategories!=null)return _4._allCategories;if(_4[_1]!=null)return _4[_1];if(_4.$fs!=null)return _4.$fs}}
var _5=this.$fl;return _5[_1]||_5.$fs},isc.A.setPriority=function isc_c_Log_setPriority(_1,_2,_3){if(_3!=null){var _4=this.$fv(_3);if(this.$fm[_4]==null)
this.$fm[_4]={};if(!_1)_1=this._allCategories;this.$fm[_4][_1]=_2}else{this.$fl[_1]=_2}},isc.A.setDefaultPriority=function isc_c_Log_setDefaultPriority(_1,_2){if(!_2||_2==isc.Log)isc.Log.defaultPriority=_1;else isc.Log.setPriority("$fs",_1,_2)},isc.A.getDefaultPriority=function isc_c_Log_getDefaultPriority(_1){var _2;if(_1&&_1!=isc.Log)_2=this.getPriority("$fs",_1);return _2||isc.Log.defaultPriority},isc.A.clearPriority=function isc_c_Log_clearPriority(_1,_2){if(_2){var _3=this.$fv(_2);if(!_1)
delete this.$fm[_3];else if(this.$fm[_3])
delete this.$fm[_3][_1]}else{delete this.$fl[_1]}},isc.A.isEnabledFor=function isc_c_Log_isEnabledFor(_1,_2,_3){if(!_1)_1=isc.$ad;while(_1!=isc.$ad){var _4=this.getPriority(_1,_3);if(_4!=null){return _2<=_4}
var _5=_1.lastIndexOf(this.$fr);if(_5>0){_1=_1.substring(0,_5)}else{break}}
return _2<=isc.Log.defaultPriority},isc.A.log=function isc_c_Log_log(_1,_2,_3,_4,_5,_6){if(this.isEnabledFor(_3,_1,_5))
this.addLogMessage(_1,_2,_3,_4,_6);else if(this.reportSuppressedLogs){this.logWarn("suppressed log, category: "+_3+": "+_2)}},isc.A.getLogTimestamp=function isc_c_Log_getLogTimestamp(_1){var _2=this.$fw;if(_2==null){_2=this.$fw=[];_2[2]=this.$fq;_2[5]=this.$fq;_2[8]=this.$fr}
if(_1==null)_1=new Date();var _3=_1.getHours(),_4=_1.getMinutes(),_5=_1.getSeconds(),_6=_1.getMilliseconds();_2[1]=_3;if(_3<10)_2[0]=this._1zero;else _2[0]=null;_2[4]=_4;if(_4<10)_2[3]=this._1zero;else _2[3]=null;_2[7]=_5;if(_5<10)_2[6]=this._1zero;else _2[6]=null;_2[10]=_6;if(_6<10)_2[9]=this._2zero;else if(_6<100)_2[9]=this._1zero;else _2[9]=null;return _2.join(isc.$ad)},isc.A.getPriorityName=function isc_c_Log_getPriorityName(_1){if(_1==null)return isc.$ad;return this.PRIORITY_NAMES[_1]},isc.A.$fc=function isc_c_Log__makeLogMessage(_1,_2,_3,_4,_5){var _6=this.$fx;if(_6==null){_6=this.$fx=[]}
if(!_3)_3=this.category;_6[0]=this.getLogTimestamp(_5);_6[1]=this.$fq;if(this.ns.EH&&this.ns.EH.$lc!=null){_6[2]=this.ns.EH.$lc;_6[3]=this.$fq}
if(_1!=null){_6[4]=this.getPriorityName(_1);_6[5]=this.$fq}
_6[6]=_3;_6[7]=this.$fq;if(_4){_6[8]=_4
_6[9]=this.$fq}
_6[10]=_2;var _7=_6.join(isc.$ad);_6.length=0;return _7},isc.A.addLogMessage=function isc_c_Log_addLogMessage(_1,_2,_3,_4,_5){var _6=this.$fc(_1,_2,_3,_4,_5);if(this.regexObjectForMessagePattern&&this.regexObjectForMessagePattern.test(_2)){var _7=isc.Log.getStackTrace(arguments,4);var _8=new RegExp("Log.addLogMessage","im");if(!_8.test(_7)){var _9="traceLogMessage(): pattern '"+this.regexObjectForMessagePattern+"' matched, stack trace:\n"+_7;if(this.prefixForMessagePattern)_9=this.prefixForMessagePattern+"\n"+_9;switch(_1){case this.FATAL:this.logFatal(_9);break;case this.ERROR:this.logError(_9);break;case this.WARN:this.logWarn(_9);break;case this.INFO:this.logInfo(_9);break;case this.DEBUG:this.logDebug(_9)}}}
this.addToMasterLog(_6);if(this.warningLogged!=null&&_1!=null&&_1<=this.WARN){this.warningLogged(_6)}
if(_1!=null&&_1<=this.ERROR){if(!isc.Browser.seleniumPresent)alert(_2)}},isc.A.addToMasterLog=function(message){if(window.console!=null&&isc.Log.showLogsInConsole!=false){window.console.warn("*"+message)}
this.$fp[this.$fo]=message;this.$fo++;if(this.$fo>this.messageCount){this.$fo=0}
if(this.showInlineLogs){this.updateInlineLogResults()}},isc.A.updateInlineLogResults=function isc_c_Log_updateInlineLogResults(){if(isc.Canvas==null||this.$fp==null)return;if(!this.inlineLogCanvas){this.inlineLogCanvas=isc.Canvas.create({width:"50%",height:"100%",overflow:"auto",backgroundColor:"white",canDragReposition:true,autoDraw:true})}
this.inlineLogCanvas.setContents(this.$fp.join("<br>"));this.inlineLogCanvas.bringToFront()},isc.A.getMessages=function isc_c_Log_getMessages(){var _1=this.$fp,_2=this.$fo,_3=this.messageCount;return _1.slice(_3-_2,_3).concat(_1.slice(0,_2))},isc.A.show=function isc_c_Log_show(_1,_2,_3,_4,_5){if(!this.logViewer)this.logViewer=isc.LogViewer.create();this.logViewer.showLog(_1,_2,_3,_4,_5)},isc.A.clear=function isc_c_Log_clear(){this.$fp=[];this.$fo=0;if(this.logViewer)this.logViewer.clear()},isc.A.evaluate=function isc_c_Log_evaluate(_1,_2){var _3=isc.timeStamp();var _4,_5;if(isc.Log.supportsOnError){_5=isc.Class.evalWithVars(_1,_2,this)}else{try{_5=isc.Class.evalWithVars(_1,_2,this)}catch(e){_4=e}}
var _6=isc.timeStamp(),_7=isc.Log.getLogTimestamp()+":";var _8=_1.split(/[\r\n]+/);if(_8.length>1)_1=_8[0]+"...";if(_1.length>200)_1=_1.substring(0,200)+"...";if(_4){if(!isc.Log.supportsOnError){isc.Log.$am(_4);return}
_7+="Evaluator: '"+_1+"' returned a script error: \r\n'"+_4+"'"}else{_7="Evaluator: result of '"+_1+"' ("+(_6-_3)+"ms):\r\n"+this.echo(_5)}
if(this.logViewer)this.logViewer.addToLog(_7,true)},isc.A.updateStats=function isc_c_Log_updateStats(_1){if(isc.debugTarget)isc.debugTarget.updateStats(_1)},isc.A.$fy=function isc_c_Log__logPrelogs(){var _1=isc.$j;if(!_1)return;for(var i=0;i<_1.length;i++){var _3=_1[i];if(isc.isA.String(_3))this.logDebug(_3);else this.logMessage(_3.priority||isc.Log.INFO,_3.message,_3.category,_3.timestamp)}
isc.$j=null},isc.A.traceLogMessage=function isc_c_Log_traceLogMessage(_1,_2){if(_1){if(isc.isA.String(_1))this.regexObjectForMessagePattern=new RegExp(_1,"i");else this.regexObjectForMessagePattern=new RegExp(_1)}else{this.regexObjectForMessagePattern=null}
if(_2)this.prefixForMessagePattern=_2;else this.prefixForMessagePattern=null},isc.A.traceMethod=function isc_c_Log_traceMethod(_1,_2,_3){if(!_1||!_2)return;var _4=this.validObservation(_1,_2);if(!_4)return;if(!this.$fz)this.$fz={};if(!this.$fz[_1])this.$fz[_1]=[];if(!this.$f0)this.$f0=isc.Class.create();var _5=this.$f0;if(_5.isObserving(_4,_2)&&this.$fz[_1].contains(_2))
{_5.ignore(_4,_2);this.logWarn("MethodTimer: Stopped logging stack traces for "+_2+" method on "+_1);this.$fz[_1].remove(_2)}else{var _6=_4.ID?_4.ID:(_4.Class?_4.Class:_4),_7="isc.Log.logWarn('"+_6+"."+_2+"() - trace:' +";if(_3){_7+="'\\n' + isc.Log.getCallTrace(arguments))"}else{_7+="isc.Log.getStackTrace())"}
this.logWarn("expression is: "+_7);_5.observe(_4,_2,_7);this.logWarn("MethodTimer: Logging traces whenever "+_2+" method on "+_1+" is called");this.$fz[_1].add(_2)}},isc.A.traceCall=function isc_c_Log_traceCall(_1,_2){this.traceMethod(_1,_2,true)},isc.A.timeMethod=function isc_c_Log_timeMethod(_1,_2,_3,_4,_5){if(!_1||!_2)return;var _6=this.validObservation(_1,_2);if(!_6)return;if(!this.$f1)this.$f1={};if(!this.$f1[_1])this.$f1[_1]=[];if(this.$f1[_1].contains(_2))return;var _7=isc.Log.$ft+_2,_8=isc.$ah+_2,_9=(_6[_8]?_8:_2);_6[_7]=_6[_9];_6[_9]=isc.Log.makeTimerFunction(_2,_6,_3,_4,_5);this.logWarn("MethodTimer: Timing "+_2+" method on "+_1);this.$f1[_1].add(_2)},isc.A.stopTimingMethod=function isc_c_Log_stopTimingMethod(_1,_2){var _3=this.validObservation(_1,_2);if(!_3)return;if(this.$f1[_1].contains(_2)){var _4=isc.Log.$ft+_2,_5=isc.$ah+_2,_6=(_3[_5]?_5:_2)
if(!_3[_4]){this.logWarn("Not timing method '"+_2+"' on object '"+_1+"'.");this.$f1[_1].remove(_2);return}
_3[_6]=_3[_4];delete _3[_4];this.logWarn("MethodTimer: "+_2+" method on "+_1+" is no longer being timed");this.$f1[_1].remove(_2);return}},isc.A.makeTimerFunction=function isc_c_Log_makeTimerFunction(_1,_2,_3,_4,_5){var _6=_2[_1],_7=isc.Func.getName(_6,true);var _8=function(_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22){if(_5)isc.Log.$f2();var _9=isc.timeStamp();var _10=_6.call(this,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22);var _11=(isc.timeStamp()-_9);if(!_4)isc.Log.$f3(this,_7,_11);return _10}
_8.$dx=(_2.ID||_2.Class||"")+"_"+_1+"Timing";_8.$f4=true;_8.$c1=isc.Log.$ft+_1;return _8},isc.A.$f3=function isc_c_Log__logTimerResult(_1,_2,_3){if(this.deferTimerLogs)return this.$f5(_1,_2,_3);var _4=isc.Log.$fu;_4[1]=(_1.logWarn?_2:_2+" on "+this.echoLeaf(_1));_4[3]=_3.toFixed(3);var _5=_4.join(isc.emptyString);if(_1.logMessage)_1.logWarn(_5);else isc.Log.logWarn(_5)},isc.A.validObservation=function isc_c_Log_validObservation(_1,_2){if(isc.isAn.emptyString(_1)||isc.isAn.emptyString(_2))return false;var _3=_1;if(isc.isA.String(_1)){_3=isc.Class.evaluate(_1);if(!_3){this.logWarn("MethodTimer: "+_1+" is not an object.");return false}}
if(_2.indexOf("(")!=-1){_2=_2.slice(0,_2.indexOf("("))}
if(isc.isA.ClassObject(_3)){var _4=_3.getPrototype();if(isc.isA.Function(_4[_2]))return _4;if(!_3[_2]){this.logWarn("MethodTimer: "+_2+" could not be found as a static or instance property on "+_1);return false}}else if(!_3[_2]){this.logWarn("MethodTimer: "+_2+" is undefined or null on "+_1);return false}
if(!isc.Func.convertToMethod(_3,_2)){this.logWarn("MethodTimer: "+_2+" is not a method on "+_1);return false}
return _3},isc.A.hiliteCanvas=function isc_c_Log_hiliteCanvas(_1){var _2=_1;if(isc.isA.String(_1))_2=window[_1];if(!isc.isA.Canvas(_2)){this.logWarn("Unable to find specified canvas '"+_1+"'.");return}
this.showHiliteCanvas(_2.getPageRect())},isc.A.hiliteElement=function isc_c_Log_hiliteElement(_1){var _2=_1||this.elementToHilite;if(isc.isA.String(_1))_2=isc.Element.get(_1);if(_2==null){this.logWarn("Unable to find specified element '"+_1+"'.");return}
this.showHiliteCanvas(isc.Element.getElementRect(_2));this.elementToHilite=null},isc.A.showHiliteCanvas=function isc_c_Log_showHiliteCanvas(_1){var _2=this._hiliteCanvas;if(!_2){_2=this._hiliteCanvas=isc.Canvas.create({ID:"logHiliteCanvas",autoDraw:false,overflow:"hidden",hide:function(){this.Super("hide",arguments);this.resizeTo(1,1);this.setTop(-20)},border1:"2px dotted red",border2:"2px dotted white"})}
_2.setPageRect(_1);isc.Page.setEvent("click",_2.getID()+".hide()");_2.setBorder(_2.border1);_2.bringToFront();_2.show();this.$f6()},isc.A.hideHiliteCanvas=function isc_c_Log_hideHiliteCanvas(){if(this._hiliteCanvas)this._hiliteCanvas.hide()},isc.A.$f6=function isc_c_Log__flashHiliteCanvas(){var _1=[this._hiliteCanvas.border1,this._hiliteCanvas.border2];for(var i=0;i<this.flashHiliteCount;i++){isc.Timer.setTimeout({target:this._hiliteCanvas,methodName:"setBorder",args:[_1[i%2]]},(this.flashHilitePeriod*i))}});isc.B._maxIndex=isc.C+35;isc.ClassFactory.defineClass("LogViewer");isc.A=isc.LogViewer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getGlobalLogCookie=function isc_c_LogViewer_getGlobalLogCookie(){var _1=isc.Cookie.get("GLog");if(!_1)return null;try{var _2=isc.$aq("return "+_1);return _2()}catch(e){this.logWarn("bad log cookie: "+_1+this.getStackTrace())}},isc.A.getGlobalLogCookieValue=function isc_c_LogViewer_getGlobalLogCookieValue(_1){if(window.dontSaveState)return"";var _2=this.getGlobalLogCookie();if(_2!=null&&_2[_1]!=null)return _2[_1];return""},isc.A.setGlobalLogCookieValue=function isc_c_LogViewer_setGlobalLogCookieValue(_1,_2){var _3=this.getGlobalLogCookie();if(!_3)_3={};_3[_1]=_2;this.setGlobalLogCookie(_3)},isc.A.setGlobalLogCookie=function isc_c_LogViewer_setGlobalLogCookie(_1){var _2=isc.Comm.serialize(_1);isc.Cookie.set('GLog',_2,"/",null,this.getCookieExpires())},isc.A.getCookieExpires=function isc_c_LogViewer_getCookieExpires(){var _1=new Date();_1.setFullYear(_1.getFullYear()+20);return _1.toGMTString()},isc.A.getLogCookie=function isc_c_LogViewer_getLogCookie(){var _1=isc.Cookie.get("Log");if(!_1)return null;try{var _2=isc.$aq("return "+_1);return _2()}catch(e){this.logWarn("bad log cookie: "+_1+this.getStackTrace())}},isc.A.getLogCookieValue=function isc_c_LogViewer_getLogCookieValue(_1){if(window.dontSaveState)return"";var _2=this.getLogCookie();if(_2!=null&&_2[_1]!=null)return _2[_1];return""},isc.A.setLogCookieValue=function isc_c_LogViewer_setLogCookieValue(_1,_2){var _3=this.getLogCookie();if(!_3)_3={};_3[_1]=_2;this.setLogCookie(_3)},isc.A.setLogCookie=function isc_c_LogViewer_setLogCookie(_1){var _2=isc.Comm.serialize(_1);isc.Cookie.set('Log',_2,null,null,this.getCookieExpires())});isc.B._maxIndex=isc.C+9;isc.A=isc.LogViewer.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$139o=true;isc.A.showConsoleInline=isc.Browser.isTouch;isc.A.$891=0;isc.A.$f7=25;isc.B.push(isc.A.logWindowLoaded=function isc_LogViewer_logWindowLoaded(){return(this._logWindowLoaded&&this._logWindow!=null&&!this._logWindow.closed)},isc.A.showLog=function isc_LogViewer_showLog(_1,_2,_3,_4,_5){if(!isc.debugTarget||isc.RemoteDebug.isEnabled){var _6=this;isc.RemoteDebug.enableLocal(function(){_6.showLog(_1,_2,_3,_4,_5)});return}
if(_5==null)_5=this.showConsoleInline;if(_2)this._logWindow=_2;if(this.logWindowLoaded()){if(!this.$892){this._logWindow.focus()}
return}
if(!isc.Log.logViewer)isc.Log.logViewer=this;if(this._logWindow&&!this._logWindow.closed){return}
var _7={},_8=(_3?null:isc.LogViewer.getGlobalLogCookie());if(_8!=null){_7=_8}else{_7.left=100;_7.top=100;_7.width=640;_7.height=480}
if(_5){if(this.inlineWindow==null){this.inlineWindow=isc.Window.create({title:"Inline Developer Console",src:isc.Page.getIsomorphicClientDir()+"helpers/Log.html",animateMinimize:false,width:"50%",height:Math.round(isc.Page.getHeight()*0.8),headerControls:["headerIcon","headerLabel",isc.Button.create({width:16,height:14,title:"TL",layoutAlign:"center",click:function(){isc.Log.logViewer.inlineWindow.moveTo(0,0)}}),isc.Button.create({width:16,height:14,title:"BL",layoutAlign:"center",click:function(){isc.Log.logViewer.inlineWindow.moveTo(0,isc.Page.getHeight()-isc.Log.logViewer.inlineWindow.getHeight())}}),isc.Button.create({width:16,height:14,title:"TR",layoutAlign:"center",click:function(){isc.Log.logViewer.inlineWindow.moveTo(isc.Page.getWidth()-isc.Log.logViewer.inlineWindow.getWidth(),0)}}),isc.Button.create({width:16,height:14,title:"BR",layoutAlign:"center",click:function(){isc.Log.logViewer.inlineWindow.moveTo(isc.Page.getWidth()-isc.Log.logViewer.inlineWindow.getWidth(),isc.Page.getHeight()-isc.Log.logViewer.inlineWindow.getHeight())}}),"minimizeButton","maximizeButton","closeButton"],showMaximizeButton:true,showMinimizeButton:true,canDragReposition:true,canDragResize:true})}
if(!this.inlineWindow.isDrawn()){this.inlineWindow.draw()}
this.$892=true}else{var _9="RESIZABLE,WIDTH="+_7.width+",HEIGHT="+_7.height;if(_8){if(isc.Browser.isIE){_9+=",left="+_7.left+",top="+_7.top}else{_9+=",screenX="+_7.left+",screenY="+_7.top}
if(_8.evals)this.$f9=_8.evals.length-1}
_4=_4||"_simpleLog";this._logWindow=window.open(isc.Page.getIsomorphicClientDir()+"helpers/Log.html",_4+(isc.version.contains("version")?"Dev":""),_9)}
this.$ga(_3)},isc.A.$ga=function isc_LogViewer__initLogWindow(_1){if(this._logWindow==null&&this.inlineWindow!=null){var _2=this.inlineWindow.body.$sk();if(_2){this._logWindow=this.inlineWindow.body.$sk().contentWindow}
if(this._logWindow==null){return}}
if(this._logWindow==null)return;if(isc.Browser.isIE){try{this._logWindow.$gb=true}catch(e){this.delayCall("$ga",[_1],this.$f7);return}}
if(isc.Browser.isIE||this.$892){this._logWindow.launchWindow=window;if(this.$892){this._logWindow.showingInline=true}}
if(_1)this._logWindow.dontSaveState=true;var _3=function(){if(isc.Log.logViewer){var _4=isc.Log.logViewer._logWindow;if(_4&&!_4.closed)_4.focus()}}
isc.Page.setEvent("idle",_3,isc.Page.FIRE_ONCE);if(this._logWindow.initializePage)this._logWindow.initializePage()},isc.A.addToLog=function isc_LogViewer_addToLog(_1,_2){if(isc.debugMaster&&!this.$141f){this.$141f=true;isc.debugMaster.call("addToLog",[_1,_2]);delete this.$141f}},isc.A.evaluate=function isc_LogViewer_evaluate(_1,_2){return isc.Log.evaluate(_1,_2)},isc.A.clear=function isc_LogViewer_clear(){if(isc.debugMaster)isc.debugMaster.call("clearLog")});isc.B._maxIndex=isc.C+6;isc.$gg=isc.LogViewer.getGlobalLogCookie();if(isc.$gg!=null){isc.Log.applyLogPriorities(isc.$gg.priorityDefaults)
if(isc.$gg.defaultPriority!=null)
isc.Log.defaultPriority=isc.$gg.defaultPriority}else{isc.Log.setPriority("Log",isc.Log.INFO)}
isc.showConsole=function(_1,_2,_3,_4){isc.showLog(_1,_2,_3,_4)}
isc.addGlobal("showLog",function(_1,_2,_3,_4){isc.Log.show(_1,_2,_3,_4)})
isc.addGlobal("showConsoleInline",function(){isc.Log.show(null,null,null,null,true)});isc.Log.logInfo("initialized");isc.Log.$fy();isc.Log.supportsOnError=(isc.Browser.isIE&&(isc.Browser.version<=9||isc.Browser.version>=11)||isc.Browser.isMoz&&isc.Browser.version>=31);isc.Log.fallThroughToOnError=isc.Browser.isChrome&&isc.Browser.version>=34;if((isc.Log.supportsOnError||isc.Log.fallThroughToOnError)&&!(window.isc_installOnError==false))
{window.onerror=function(_1,_2,_3,_4,_5){if(_5!=null){isc.Log.$am(_5)}else{var _6=arguments.caller,_7;if(_6==null&&arguments.callee.caller!=null){_7=arguments.callee.caller;_6=_7.arguments}
if(_6&&_6.$e9){return}
var _8="Error:\r\t'"+_1+"'\r\tin "+_2+"\r\tat line "+_3;if(_7!=null&&_6==null&&isc.Browser.isIE&&isc.Browser.version>=9)
{_8+="\r\n    crashed in:  "+isc.Func.getName(_7,true)+"()\r\n    Use any version of Internet Explorer other than IE9 for best diagnostics, otherwise Firefox or Chrome"}else if(_6!=null){_8+=isc.Log.getStackTrace(_6)}
isc.Log.logWarn(_8)}
if(isc.Browser.isIE&&isc.useIEDebugger){if(confirm("Run debugger?\r\r"+_8)){debugger}}}}else if(isc.Browser.autotest==isc.Browser.RUNNER){window.onerror=function(_1,_2,_3){if(isc.TestRunner){isc.TestRunner.addUnassignedErrorDetails("Javascript Exception at "+_2+", line "+_3+": "+_1)}}}
isc.Log.useChromeAPIToPrepareStackTrace=true;isc.Log.rethrowErrors=isc.Browser.isChrome&&isc.Browser.version>=34;isc.$63a=function(){var _1=this.getDataSource();if(_1&&_1.ID){return"["+this.Class+" ID:"+this.ID+(this.componentId!=null?" (dataSource: "+_1.ID+", created by: "+this.componentId+")":"(dataSource: "+_1.ID+", created directly)")+"]"}else{return"["+this.Class+" ID:"+this.ID+(this.componentId!=null?" (created by: "+this.componentId+")":"(created directly)")+"]"}}
isc.$63b=function(_1,_2,_3,_4){var _5=isc.Log;if(!_5)return;if(_1==null)_1=_5.defaultPriority;if(_1<=_5.stackTracePriority&&this.getStackTrace!=null){_2+="\nStack trace:\n"+this.getStackTrace(arguments,2)}
if(!_3)_3=this.Class;var _6=this.getDataSource();if(_6&&_6.ID){_5.log(_1,_2,_3,this.ID+" (dataSource: "+_6.ID+", created by: "+this.componentId+")",this,_4)}else{_5.log(_1,_2,_3,this.ID+" (created by: "+this.componentId+")",this,_4)}}
isc.A=Array;isc.A.ASCENDING=true;isc.A.DESCENDING=false;isc.A=Array;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.shouldSortAscending=function isc_Array_shouldSortAscending(_1){if(_1==Array.ASCENDING)return true;if(_1==Array.DESCENDING)return false;if(isc.isA.String(_1)){if(_1.toLowerCase()=="ascending")return true;if(_1.toLowerCase()=="descending")return false}
return null});isc.B._maxIndex=isc.C+1;isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.sortByProperty=function isc_Arra_sortByProperty(_1,_2,_3,_4){return this.sortByProperties({property:_1,direction:_2,normalizer:_3,context:_4})},isc.A.setSort=function isc_Arra_setSort(_1){var _2=_1.length,_3=new Array(_2),_4=new Array(_2),_5=new Array(_2),_6=new Array(_2),_7=new Array(_2);for(var i=0;i<_2;++i){var _9=_1[i];_3[i]=_9.sortByProperty?_9.sortByProperty:_9.property;_4[i]=Array.shouldSortAscending(_9.direction);_5[i]=_9.normalizer;_6[i]=_9.context;_7[i]=_9.$114u}
return this.sortByProperties(_3,_4,_5,_6,_7)},isc.A.sortByProperties=function isc_Arra_sortByProperties(){if(this.length==0)return this;if(isc.Browser.isIE&&isc.Browser.version>=11){this.$177c=true;delete this.$177c}
if(this.$506==null){this.$506=[];this.$gh=[];this.$gi=[]}
var _1=this.$gh,_2=this.$gi,_3="sort";var _4=false,_5=false;if(isc.isAn.Array(arguments[0])){this.sortProps=arguments[0];this.sortDirections=arguments[1]||[];this.normalizers=arguments[2]||[];this.contexts=arguments[3]||[];this.$135c=arguments[4]||[];_4=arguments[5]||false;_5=arguments[6]||false}else{if(!this.sortProps){this.sortProps=[];this.normalizers=[];this.sortDirections=[];this.contexts=[];this.$135c=[]}else{this.sortProps.clear();this.sortDirections.clear();this.normalizers.clear();this.contexts.clear();this.$135c.clear()}
for(var i=0,_7=arguments.length,_8=0;i<_7;++i){var _9=arguments[i];if(!isc.isAn.Object(_9)){if(_8==0){_4=_9||false}else if(_8==1){_5=_9||false}
++_8}else{this.sortProps[i]=_9.property;this.sortDirections[i]=_9.direction;this.normalizers[i]=_9.normalizer;this.contexts[i]=_9.context;this.$135c[i]=_9.$114u;_4=_5=false;_8=0}}}
if(this.sortProps==null||this.sortProps.length==0){return(_4?null:this)}
var _10=this.sortProps,_11=this.normalizers,_12=this.contexts,_13;_1.length=_10.length;_2.length=_10.length;var _14=(_5&&isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():_13);var _15=Array.compareAscending,_16=Array.compareDescending;var _17=isc.timestamp();for(var i=0;i<_10.length;i++){var _18=this.$506[i]=this.sortDirections[i];if(!isc.isA.Function(this.$135c[i])){this.$135c[i]=(_18?_15:_16)}
var _19=_10[i],_20=_11[i],_21=_12[i],l=this.length;_1[i]=new Array(l);_2[i]=new Array(l);var _23=null;var _24=false;var _25=false;if(isc.isA.Function(_20)){for(var _26=0;_26<l;++_26){var _27=this[_26];if(_27==null){isc.$gq=true;continue}else if(_27===_14){return(_4?null:this)}
_27.$gm=_26;var _28=_20(_27,this.sortProps[i],_21);_1[i][_26]=_28;if(_23!=null&&!Array.$gn(_27[this.sortProps[i]],_23)){_2[i][_26]=_27[this.sortProps[i]]}
if(isc.isA.SpecialNumber(_28)&&isNaN(_28)){_1[i][_26]=0-Number.MAX_VALUE}}}else{if(isc.isA.String(_20)){_23=_20}else if(_20!=null){_24=true}
if(_21&&_21.getField){var _29=_21.getField(_19);if(_29){if(_29.dataPath){_19=isc.Canvas.$840(_29.dataPath,_21);_25=true}else{_19=_29.name;_25=false}
if(_29.type&&_23==null){_23=_29.type}}else{if(_19)_25=(_19.indexOf("/")>=0)}}
if(_23==null){_23=this.$gj(_10[i])}
var _30=isc.SimpleType.getType(_23);var _31=isc.SimpleType.getBaseType(_30);if(_31==null){_31=_23}
if(!_24){_20=Array.$gk(_31)}
if(_20==null)_20=Array.$gl;var _32=this.normalizers[i];for(var _26=0;_26<l;++_26){var _27=this[_26];if(_27==null){isc.$gq=true;continue}else if(_27===_14){return(_4?null:this)}
_27.$gm=_26;var _33=Array.$905(_27,_19,_25,_30,_3);var _28=null;if(!_24){_28=_20(_33)}else{var _34=_20[_33];if(_34==null)_34=_33;_28=Array.$g7(_34)}
_1[i][_26]=_28;if(_23!=null&&!Array.$gn(_33,_31)){_2[i][_26]=(_33==null)?_27[this.sortProps[i]]:_33}}}}
if(isc.Browser.compensateForUnstableSort==null){isc.Browser.compensateForUnstableSort=isc.Browser.isWebKit||isc.Browser.isOpera||(isc.Browser.isIE&&isc.Browser.version>=9)}
if(isc.Browser.compensateForUnstableSort){var _35=_1.length;_1[_35]=new Array(this.length);for(var i=0;i<this.length;i++){_1[_35][i]=i}
var _36=_2.length;if(_36!=0){_2[_36]=new Array(this.length);for(var i=0;i<this.length;i++){_2[_36][i]=i}}
this.$506[_35]=true;this.$135c[_35]=_15}
var _37=false;for(var i=0;i<this.$gi.length;i++){if(this.$gi[i].length>0){_37=true;break}}
this.$752=_37;var _38=this.$gh,_39=this.$506,_40=this.$gi,_41=this.$135c;var _42=function(_51,_52){var _43=(_51!=null?_51.$gm:null),_44=(_52!=null?_52.$gm:null),_13;for(var i=0;i<_38.length;i++){var _45=_38[i][_43],_46=_38[i][_44];if(_37&&_45!=null&&_46!=null){var _47=_40[i][_43],_48=_40[i][_44];if(_47!==_13&&_48!==_13){_45=_47;_46=_48}}
var _49=_41[i](_45,_46);if(_49!=0)return _49;else if(_37){if((_47!==_13)!=(_48!==_13)){return(_47!==_13)==!!_39[i]?-1:1}}}
return 0};var _17=isc.timeStamp();this.sort(_42);if(isc.$gq){isc.Log.logWarn("Attempt to sort array by property hit null entry where a record should be. Array:"+isc.Log.echo(this));isc.$gq=null}
var _50=null;if(_4){_50=this.$120z("$gm")}else{this.clearProperty("$gm")}
_1.clear();_2.clear();this.$506.clear();this.dataChanged();return(_4?_50:this)},isc.A.unsort=function isc_Arra_unsort(){if(this.sortProps)this.sortProps.clear();return true},isc.A.$gj=function isc_Arra__getSortDataType(_1,_2){var _3=(_2!=null?(isc.isAn.Array(_2)?_2:[_2]):this);for(var i=0;i<_3.length;i++){if(!isc.isAn.Object(_3[i]))continue;_2=_3[i][_1];if(_2==null)continue;var _5=Array.$gr(_2);if(_5!=null)return _5}
return null},isc.A.$gs=function isc_Arra__getNormalizer(_1,_2){var _3=this.$gj(_1,_2);var _4=Array.$gk(_3);return _4||Array.$gl},isc.A.normalize=function isc_Arra_normalize(_1,_2){var _3=(_2.indexOf("/")>=0);var _4=null;var _5;if(isc.isA.String(this.normalizer)){var _6=this.$gj(_2);_4=isc.SimpleType.getType(_6);var _7=isc.SimpleType.getBaseType(_4);_5=this.$gk(_7)}else{_5=this.normalizer}
var _8=Array.$905(_1,_2,_3,_4,"sort");return _5[_8]});isc.B._maxIndex=isc.C+7;isc.A=Array;isc.A.$gt="$gu";isc.A.$gv="$gw";isc.A=Array;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$a6="string";isc.A.$gx="text";isc.A.$gy="number";isc.A.$gz="integer";isc.A.$g0="float";isc.A.$g1="int";isc.A.$g2="boolean";isc.A._$Date_="Date";isc.A.$g3="Time";isc.A.$68l="datetime";isc.A.$89w="Datetime";isc.A.$g4="date";isc.A.$g5="time";isc.A.$bl="object";isc.A.$g6={"float":"number","int:":"number","integer":"number","text":"string","Date":"date","Time":"date","time":"date"};isc.B.push(isc.A.$gl=function isc_Array__normalizeObj(_1){return _1},isc.A.$905=function isc_Array__getAtomicValue(_1,_2,_3,_4,_5){var _6=null;if(_3){_6=isc.Canvas.$70o(_2,null,_1,null,true,"sort")}else{_6=_1[_2]}
if(_4&&_4.getAtomicValue){isc.Func.replaceWithMethod(_4,"getAtomicValue","value,reason");_6=_4.getAtomicValue(_6,_5)}
return _6},isc.A.$g7=function isc_Array__normalizeStr(_1){return(isc.isA.String(_1)?_1.toLowerCase():isc.emptyString)},isc.A.$g8=function isc_Array__normalizeNum(_1){return isc.isA.Number(_1)?_1:(0-Number.MAX_VALUE)},isc.A.$g9=function isc_Array__normalizeBool(_1){if(_1==true)return 1;if(_1==false)return 0;if(_1==null)return-1;return-2},isc.A.$ha=function isc_Array__normalizeDate(_1){var _2=(_1&&isc.isA.Date(_1)?_1.getTime():new Date(_1).getTime())
if(isNaN(_2)||_1==null)return-8640000000000000;return _2},isc.A.$hb=function isc_Array__normalizeTime(_1){if(!isc.isA.Date(_1)&&_1!=null)_1=isc.Time.parseInput(_1);if(isc.isA.Date(_1))return _1.getTime();return 0},isc.A.textToNumericNormalizer=function isc_Array_textToNumericNormalizer(_1){var _2=parseInt(_1,10);if(isc.isA.Number(_2))return _2;else return 0},isc.A.$gk=function isc_Array__getNormalizerFromType(_1){if(!_1||!isc.isA.String(_1))return null;switch(_1){case this.$a6:case this.$gx:return Array.$g7;case this.$g2:return Array.$g9;case this._$Date_:case this.$g4:case this.$89w:case this.$68l:return Array.$ha;case this.$g3:case this.$g5:return Array.$hb;case this.$gy:case this.$gz:case this.$g1:case this.$g0:return Array.$g8}
return Array.$gl},isc.A.$gr=function isc_Array__getType(_1){var _2=typeof _1;if(_2==this.$bl){if(isc.isA.Date(_1))_2=this.$g4}
return _2},isc.A.$gn=function isc_Array__matchesType(_1,_2){var _3=this.$gr(_1);if(_3==_2)return true;return(this.$g6[_2]==_3)},isc.A.compareAscending=function isc_Array_compareAscending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return _1.localeCompare(_2)}
if(_2!=null&&_2.localeCompare!=null){return-_2.localeCompare(_1)}
return(_2>_1?-1:_2<_1?1:0)},isc.A.compareDescending=function isc_Array_compareDescending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return-_1.localeCompare(_2)}
if(_2!=null&&_2.localeCompare!=null){return _2.localeCompare(_1)}
return(_2<_1?-1:_2>_1?1:0)},isc.A.safariCompareAscending=function isc_Array_safariCompareAscending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return(_1.localeCompare(_2)-2)}
if(_2!=null&&_2.localeCompare!=null){return-(_2.localeCompare(_1)-2)}
return(_2>_1?-1:_2<_1?1:0)},isc.A.safariCompareDescending=function isc_Array_safariCompareDescending(_1,_2){if(_1!=null&&_1.localeCompare!=null){return-(_1.localeCompare(_2)-2)}
if(_2!=null&&_2.localeCompare!=null){return(_2.localeCompare(_1)-2)}
return(_2<_1?-1:_2>_1?1:0)});isc.B._maxIndex=isc.C+15;(function(){if(isc.Browser.isSafari){var b="b";if(b.localeCompare("a")==3){Array.compareAscending=Array.safariCompareAscending;Array.compareDescending=Array.safariCompareDescending}}})();isc.A=Array.prototype;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.max=function isc_Arra_max(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=null;for(var i=_1;i<_2;i++){var _5=this[i];if(isc.isA.Number(_5)){if(_3==null)_3=_5;else _3=Math.max(_3,_5)}}
return _3},isc.A.min=function isc_Arra_min(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=null;for(var i=_1;i<_2;i++){var _5=this[i];if(isc.isA.Number(_5)){if(_3==null)_3=_5;else _3=Math.min(_3,_5)}}
return _3},isc.A.sum=function isc_Arra_sum(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=0;for(var i=_1;i<_2;i++)
if(isc.isA.Number(this[i]))_3+=this[i];return _3},isc.A.and=function isc_Arra_and(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;for(var i=_1;i<_2;i++)
if(!this[i])return false;return true},isc.A.or=function isc_Arra_or(_1,_2){if(_1==null)_1=0;if(_2==null)_2=this.length;var _3=0;for(var i=_1;i<_2;i++)
if(this[i])return true;return false});isc.B._maxIndex=isc.C+5;isc.ClassFactory.defineInterface("List");isc.List.addInterfaceMethods({init:function(){if(!this.data)this.data=[]},first:function(){return this.get(0)},last:function(){return this.get(this.getLength()-1)},indexOf:function(_1,_2,_3){if(_2==null)_2=0;if(_3==null)_3=this.getLength()-1;for(var i=_2;i<=_3;i++){if(this.get(i)==_1)return i}
return-1},lastIndexOf:function(_1,_2,_3){if(_2==null)_2=this.getLength()-1;if(_3==null)_3=0;for(var i=_2;i>=_3;i--)
if(this.get(i)==_1)return i;return-1},findNextIndex:function(_1,_2,_3,_4,_5){var _6=this.getLength();if(_1==null)_1=0;else if(_1>=_6)return-1;if(_4==null)_4=_6-1;if(_2==null)return-1;if(isc.isA.String(_2)){for(var i=_1;i<=_4;i++){var _8=this.get(i,_5);if(_8&&_8[_2]==_3)return i}
return-1}else if(isc.isA.Function(_2)){var _9=_2,_10=_3;for(var i=_1;i<=_4;i++){_3=this.get(i,_5);if(_9.call(_10,_3,i,this))return i}
return-1}else{return this.findNextMatch(_2,_1,_4)}},findAll:function(_1,_2){if(_1==null)return null;if(isc.isA.String(_1)){var _3=null,l=this.getLength();for(var i=0;i<l;i++){var _6=this.get(i);if(_6&&_6[_1]==_2){if(_3==null)_3=[];_3.add(_6)}}
return _3}else{return this.findAllMatches(_1)}},getRange:function(_1,_2){if(_2==null)_2=this.getLength()-1;var _3=[];for(var i=_1;i<_2;i++){_3[_3.length]=this.get(i)}
return _3},getCachedRow:function(_1){return this.get(_1)},duplicate:function(){return this.getClass().create().addList(this)},add:function(_1,_2){var _3;if(_2!==_3){return this.addAt(_1,_2)}
this.addAt(_1,this.getLength());return _1},setLength:function(_1){this.$ed();if(_1>this.getLength()){var _2;while(_1>this.getLength())this.add(_2)}else{while(_1<this.getLength())this.removeAt(this.getLength()-1)}
this.$ee()},addListAt:function(_1,_2){this.$ed();var _3=_1.getLength();for(var i=0;i<_3;i++){this.addAt(_1.get(i),_2+i)}
this.$ee();return _1},remove:function(_1){var _2=this.indexOf(_1);if(_2==-1)return false;this.$ed();var _3=this.getLength();for(var i=_2;i<_3;i++)this.set(i,this.get(i+1));this.setLength(_3-1);this.$ee();return true},removeList:function(_1){if(_1==null)return null;this.$ed();var _2=false;for(var i=0;i<this.getLength();i++){var _4=this.get(i);if(_1.contains(_4)){_2=true;this.removeAt(i);i--}}
this.$ee();return _1},sort:function(_1){var _2=this.getRange(0,this.getLength());_2.sort(_1);for(var i=0;i<_2.length;i++)this.set(i,_2[i]);return this},getProperty:function(_1){var _2=[];for(var i=0;i<this.getLength();i++){var _4=this.get(i);_2[i]=_4!=null?_4[_1]:null}
return _2},sortByProperty:function(_1,_2,_3,_4){var _5=this.getRange(0,this.getLength());_5.sortByProperty(_1,_2,_3,_4);for(var i=0;i<_5.length;i++)this.set(i,_5[i]);return this},dataChanged:function(){if(this.onDataChanged)this.onDataChanged()}});isc.$27b=function(){var _1=["containsSubstring","containsAllSubstring","intersectDates","intersectSubstring","isEmpty","contains","containsAll","intersect","equals","getItems","addList","getValueMap","removeEvery","$ed","$ee","$52z","getItem","setItem","removeItem","clearAll","find","findIndex","findAllIndices","findNextMatch","findAllMatches","findByKeys","size","subList","addAll","removeAll","clear"];var _2={};for(var i=0;i<_1.length;i++){var _4=_1[i];_2[_4]=Array.prototype[_4]}
isc.List.addInterfaceMethods(_2)}
isc.$27b();isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$27c="List";isc.B.push(isc.A.List=function isc_isA_List(_1){if(_1==null)return false;if(isc.isA.Array(_1))return true;return _1.isA&&_1.isA(this.$27c)});isc.B._maxIndex=isc.C+1;isc.getValueForKey=function(_1,_2,_3){if(_2&&_2[_1]!=null&&!isc.isAn.Array(_2))return _2[_1];return(arguments.length<3?_1:_3)}
isc.getKeyForValue=function(_1,_2,_3){if(_2){for(var _4 in _2){if(_2[_4]==_1)return _4}}
return(arguments.length<3?_1:_3)}
isc.makeReverseMap=function(_1){var _2={},_3;for(var _4 in _1){_3=_1[_4];_2[_3]=_4}
return _2}
isc.sortByKey=function(_1){var _2={},_3=isc.getKeys(_1).sort();for(var i=0;i<_3.length;i++){_2[_3[i]]=_1[_3[i]]}
return _2}
isc.sortByValue=function(_1){return isc.makeReverseMap(isc.sortByKey(isc.makeReverseMap(_1)))}
isc.defineClass("Set").addClassProperties({$160n:1,$160o:function(_1,_2){return(_1-_2.getTime())}});isc.A=isc.Set.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_Set_init(){this.Super("init",arguments);var _1=this.$160p=isc.Set.$160n++;this.$160q="$160r"+_1;this.$160s=[];this.$160t=[];this.$160u={};this.size=0},isc.A.has=function isc_Set_has(_1){if(isc.isA.Date(_1)){var i=isc.Array.$96c(this.$160s,_1,isc.Set.$160o);return i>=0}else if(isc.isAn.Object(_1)){return _1[this.$160q]}else{var _3=this.$160u[_1],_4;if(isc.isAn.Array(_3)){for(var i=0,_5=_3.length;i<_5;++i){_4=_3[i];if(_4===_1||(typeof _4==="number"&&isNaN(_4)&&typeof _1==="number"&&isNaN(_1)))
{return true}}}else{_4=_3;return(_1 in this.$160u&&(_4===_1||(typeof _4==="number"&&isNaN(_4)&&typeof _1==="number"&&isNaN(_1))))}}
return false},isc.A.add=function isc_Set_add(_1){if(isc.isA.Date(_1)){var i=isc.Array.$96c(this.$160s,_1,isc.Set.$160o);if(i>=0)return this;this.$160s.addAt(_1.getTime(),-i-1)}else if(isc.isAn.Object(_1)){if(_1[this.$160q])return this;_1[this.$160q]=true;this.$160t.add(_1)}else{var _3=this.$160u[_1],_4;if(isc.isAn.Array(_3)){for(var i=0,_5=_3.length;i<_5;++i){_4=_3[i];if(_4===_1||((typeof _4==="number"&&isNaN(_4))&&(typeof _1==="number"&&isNaN(_1))))
{return this}}
_3.add(_1)}else if(_1 in this.$160u){var _4=_3;if(_1 in this.$160u&&(_4===_1||((typeof _4==="number"&&isNaN(_4))&&(typeof _1==="number"&&isNaN(_1)))))
{return this}
this.$160u[_1]=[_4,_1]}else{this.$160u[_1]=_1}}
++this.size;return this},isc.A.remove=function isc_Set_remove(_1){if(isc.isA.Date(_1)){var i=isc.Array.$96c(this.$160s,_1,isc.Set.$160o);if(i>=0){this.$160s.removeAt(i);--this.size;return true}}else if(isc.isAn.Object(_1)){if(_1[this.$160q]){delete _1[this.$160q];this.$160t.remove(_1);--this.size;return true}}else if(_1 in this.$160u){var _3=this.$160u[_1],_4;if(isc.isAn.Array(_3)){for(var i=0,_5=_3.length;i<_5;++i){_4=_3[i];if(_4===_1||((typeof _4==="number"&&isNaN(_4))&&(typeof _1==="number"&&isNaN(_1))))
{_3.removeAt(i);--this.size;return true}}}else{_4=_3;if(_4===_1||((typeof _4==="number"&&isNaN(_4))&&(typeof _1==="number"&&isNaN(_1))))
{delete this.$160u[_1];--this.size;return true}}}
return false},isc.A.clear=function isc_Set_clear(){this.$160s.setLength(0);var _1=this.$160t,_2=this.$160q;for(var i=0,_4=_1.length;i<_4;++i){delete _1[i][_2]}
_1.setLength(0);this.$160u={};this.size=0});isc.B._maxIndex=isc.C+5;isc.ClassFactory.defineClass("Time");isc.A=isc.Time;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$he=[/^\s*(\d?\d)\s*[: ]\s*(\d?\d)\s*[: ]\s*(\d?\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d?\d)\s*[: ]\s*(\d?\d)(\s*)([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d\d)(\d\d)(\d\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d)(\d\d)(\d\d)?\s*([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/,/^\s*(\d\d?)(\s)?(\s*)([AaPp][Mm]?)?\s*([+-]\d{2}:\d{2}|Z)?\s*$/];isc.A.$111p=/(?:(\d?\d)\s*[: ]\s*(\d?\d)\s*[: ]\s*(\d?\d)?|(\d?\d)\s*[: ]\s*(\d?\d)(\s*)|(\d\d)(\d\d)(\d\d)|(\d)(\d\d)(\d\d)?|(\d\d?)(\s)?(\s*))\s*([AaPp][Mm])?/g;isc.A.formatterMap={toTime:{showSeconds:true,padded:false,show24:false},to24HourTime:{showSeconds:true,padded:false,show24:true},toPaddedTime:{showSeconds:true,padded:true,show24:false},toPadded24HourTime:{showSeconds:true,padded:true,show24:true},toShortTime:{showSeconds:false,padded:false,show24:false},toShort24HourTime:{showSeconds:false,padded:false,show24:true},toShortPaddedTime:{showSeconds:false,padded:true,show24:false},toShortPadded24HourTime:{showSeconds:false,padded:true,show24:true},toTimestamp:{showSeconds:true,padded:true,show24:true,showMillis:true}};isc.A.displayFormat="toTime";isc.A.shortDisplayFormat="toShortTime";isc.A.AMIndicator=" am";isc.A.PMIndicator=" pm";isc.B.push(isc.A.setDefaultDisplayTimezone=function isc_c_Time_setDefaultDisplayTimezone(_1,_2){this.$854=!_2;if(_1==null)return;var _3,_4;if(isc.isA.Number(_1)){_1=-_1;_3=Math.floor(_1/60);_4=_1-(_3*60)}else if(isc.isA.String(_1)){var _5=_1.split(":");_3=_5[0];var _6=_3&&_3.startsWith("-");if(_6)_3=_3.substring(1);_4=_5[1];_3=(_6?-1:1)*parseInt(_3,10);_4=(_6?-1:1)*parseInt(_4,10)}
if(isc.isA.Number(_3)&&isc.isA.Number(_4)){this.UTCHoursDisplayOffset=_3;this.UTCMinutesDisplayOffset=_4}},isc.A.getDefaultDisplayTimezone=function isc_c_Time_getDefaultDisplayTimezone(){var H=this.UTCHoursDisplayOffset,M=this.UTCMinutesDisplayOffset,_3=H<0;return(!_3?"+":"-")+((_3?-1:1)*H).stringify(2)+":"+((_3?-1:1)*M).stringify(2)});isc.B._maxIndex=isc.C+2;isc.A=isc.Time;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$hf=[null,":",null,":"];isc.A.$hg=[null,":"];isc.B.push(isc.A.toTime=function isc_c_Time_toTime(_1,_2,_3){return this.format(_1,_2,false,_3)},isc.A.toShortTime=function isc_c_Time_toShortTime(_1,_2,_3){return this.format(_1,_2,true,_3)},isc.A.format=function isc_c_Time_format(_1,_2,_3,_4){if(!isc.isA.Date(_1))return _1;var _5=_2;if(!_2||(!isc.isA.String(_2)&&!isc.isA.Function(_2))){_2=_3?this.shortDisplayFormat:this.displayFormat}
if(isc.isA.Function(_2))return _2(_1,_4);if(isc.isA.String(_2))_2=this.formatterMap[_2];if(!isc.isAn.Object(_2)){var _6=isc.DateUtil.format(_1,_5);if(_6)return _6;this.logWarn("Invalid time formatter:"+_5+" - using 'toTime'");_2=this.formatterMap.toTime}
var _7=_2.showSeconds,_8=_2.padded,_9=_2.show24,_10=_2.showMillis;var _11;if(_4!=null)_11=!_4;else _11=!_1.logicalTime&&!_1.logicalDate;var _12,_13;if(!_11){_12=_1.getHours();_13=_1.getMinutes()}else{var _12=_1.getUTCHours(),_13=_1.getUTCMinutes();var _14=this.$68d(_12,_13,this.getUTCHoursDisplayOffset(_1),this.getUTCMinutesDisplayOffset(_1));_12=_14[0];_13=_14[1]}
var _15=_7?_1.getUTCSeconds():null,_16=_9?null:(_12>=12);if(!_9){if(_12>12)_12=_12-12;if(_12==0)_12=12}
if(_8)_12=_12.stringify(2);var _17=_7?this.$hf:this.$hg;_17[0]=_12;_17[2]=_13.stringify();if(_7)_17[4]=_15.stringify();if(!_9)_17[5]=(_16?this.PMIndicator:this.AMIndicator);else _17[5]=null;var _18=_17.join(isc.emptyString);if(_10){var _19=_1.getMilliseconds().stringify(3);_18+="."+_19}
return _18},isc.A.parseInput=function isc_c_Time_parseInput(_1,_2,_3,_4,_5){var _6=null,_7=null,_8=null,_9=null,_10;var _11,_12;if(isc.isA.Date(_1)){_3=true;_6=_1.getUTCHours();_7=_1.getUTCMinutes();_8=_1.getUTCSeconds();_9=_1.getUTCMilliseconds()}else if(_1!=null){for(var i=0;i<isc.Time.$he.length;i++){var _14=isc.Time.$he[i].exec(_1);if(_14)break}
if(_14){var _15,_16,_17;if(_5!=null){_17=_16=_15=null}else{_17=_16=_15=0}
_6=_14[1]?Math.min(parseInt(_14[1],10),23):_15;_7=_14[2]?Math.min(parseInt(_14[2],10),59):_16;_8=_14[3]?Math.min(parseInt(_14[3],10),59):_17;_10=_14[4];if(_10){if(!this.$hh)this.$hh={p:true,P:true,pm:true,PM:true,Pm:true,pM:true};if(this.$hh[_10]==true){if(_6==null)_6=12;else if(_6<12)_6+=12}else if(_6==12)_6=0}
if(_4&&_14[5]!=null&&_14[5]!=""&&_14[5].toLowerCase()!="z"){var _18=_14[5].split(":"),H=_18[0],_20=H&&H.startsWith("-"),M=_18[1];_11=parseInt(H,10);_12=(_20?-1:1)*parseInt(M,10)}}else if(_2)return null}else if(_2)return null;var _22;if(_5!=null){_22=_5.duplicate()}else{_22=new Date(null);_22.setMilliseconds(0)}
if(_4||_3){if(_11==null){_11=_3?0:this.getUTCHoursDisplayOffset(_22)}
if(_12==null){_12=_3?0:this.getUTCMinutesDisplayOffset(_22)}
var _23=this.$68d(_6,_7,(0-_11),(0-_12));_6=_23[0];_7=_23[1];_22.setUTCHours(_6==null?_22.getUTCHours():_6,_7==null?_22.getUTCMinutes():_7,_8==null?_22.getUTCSeconds():_8,_9==null?_22.getUTCMilliseconds():_9)}else{_22.setHours(_6==null?_22.getHours():_6,_7==null?_22.getMinutes():_7,_8==null?_22.getSeconds():_8,_9==null?_22.getMilliseconds():_9)}
if(!_4)_22.logicalTime=true;return _22},isc.A.$111q=function isc_c_Time__prepForParseValueExpressions(_1){if(_1==null)return null;_1=String(_1);_1=_1.replace(this.$111p,function(_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18){_3=parseInt(_3||_6||_9||_12||_15)||0;_4=parseInt(_4||_7||_10||_13||_16)||0;_5=(_5||_8||_11||_14||_17);if(_5){_5=":"+(parseInt(_5)||0).stringify(2)}else _5="";_18=(_18||"").trim();var _1=_3+":"+_4.stringify(2)+_5;if(_18){_1+=_18}
return _1+" "});return _1},isc.A.$68d=function isc_c_Time__applyTimezoneOffset(_1,_2,_3,_4){if(_2==null||_1==null){this.logWarn("applyTimezoneOffset passed null hours/minutes");return[_1,_2]}
if(_3==null)_3=0;if(_4==null)_3=0;if(_3==0&&_4==0)return[_1,_2,0];_1+=_3;_2+=_4;while(_2>=60){_2-=60;_1+=1}
while(_2<0){_2+=60;_1-=1}
var _5=0;while(_1>=24){_1-=24;_5+=1}
while(_1<0){_1+=24;_5-=1}
return[_1,_2,_5]},isc.A.createDate=function isc_c_Time_createDate(_1,_2,_3,_4,_5){return this.createLogicalTime(_1,_2,_3,_4,_5)},isc.A.createLogicalTime=function isc_c_Time_createLogicalTime(_1,_2,_3,_4,_5){var _6=new Date(null);if(_1==null)_1=0;if(_2==null)_2=0;if(_3==null)_3=0;if(_4==null)_4=0;if(_5){_6.setUTCHours(_1,_2,_3,_4)}else{_6.setHours(_1,_2,_3,_4)}
_6.logicalTime=true;return _6},isc.A.setShortDisplayFormat=function isc_c_Time_setShortDisplayFormat(_1){this.shortDisplayFormat=_1},isc.A.setNormalDisplayFormat=function isc_c_Time_setNormalDisplayFormat(_1){this.displayFormat=_1},isc.A.compareTimes=function isc_c_Time_compareTimes(_1,_2){if(isc.isA.String(_1))_1=isc.Time.parseInput(_1);if(isc.isA.String(_2))_2=isc.Time.parseInput(_2);if(_1==null&&_2==null)return true;if(!isc.isA.Date(_1)||!isc.isA.Date(_2))return false;return((_1.getUTCHours()==_2.getUTCHours())&&(_1.getUTCMinutes()==_2.getUTCMinutes())&&(_1.getUTCSeconds()==_2.getUTCSeconds()))},isc.A.compareLogicalTimes=function isc_c_Time_compareLogicalTimes(_1,_2){if(!isc.isA.Date(_1)||!isc.isA.Date(_2))return false;_1=isc.DateUtil.getLogicalTimeOnly(_1);_2=isc.DateUtil.getLogicalTimeOnly(_2);var _3=_1.getHours(),_4=_1.getMinutes(),_5=_1.getSeconds(),_6=_1.getMilliseconds();var _7=_2.getHours(),_8=_2.getMinutes(),_9=_2.getSeconds(),_10=_2.getMilliseconds();var _11=_6+1000*(_5+60*(_4+60*_3));var _12=_10+1000*(_9+60*(_8+60*_7));return _11>_12?-1:(_12>_11?1:0)},isc.A.$76r=function isc_c_Time__performDstInit(){var _1=new Date(),_2=new Date(0),_3=new Date(0);_2.setUTCFullYear(_1.getUTCFullYear());_2.setUTCMonth(0);_2.setUTCDate(1);_3.setUTCFullYear(_1.getUTCFullYear());_3.setUTCMonth(6);_3.setUTCDate(1);var _4=_1.getTimezoneOffset();this.januaryDstOffset=_2.getTimezoneOffset();var _5=_3.getTimezoneOffset();this.dstDeltaMinutes=this.januaryDstOffset-_5;if(this.dstDeltaMinutes>0){this.southernHemisphere=false;this.adjustForDST=true;if(_4==_5)this.currentlyInDST=true}else if(this.dstDeltaMinutes<0){this.southernHemisphere=true;this.adjustForDST=true;if(_4==this.januaryDstOffset)this.currentlyInDST=true}else{this.adjustForDST=false}
this.dstDeltaMinutes=Math.abs(this.dstDeltaMinutes);this.dstDeltaHours=Math.floor(this.dstDeltaMinutes/60);this.dstDeltaMinutes-=(this.dstDeltaHours*60)},isc.A.getUTCHoursDisplayOffset=function isc_c_Time_getUTCHoursDisplayOffset(_1,_2){var _3=this.currentlyInDST?-(this.dstDeltaHours):0;if(this.adjustForDST){if(_1.getTimezoneOffset()==this.januaryDstOffset){if(this.southernHemisphere){_3+=this.dstDeltaHours}}else{if(!this.southernHemisphere){_3+=this.dstDeltaHours}}}
return(_2!=null?_2:this.UTCHoursDisplayOffset)+(this.adjustForDST?_3:0)},isc.A.getUTCMinutesDisplayOffset=function isc_c_Time_getUTCMinutesDisplayOffset(_1,_2){var _3=this.currentlyInDST?-(this.dstDeltaMinutes):0;if(this.adjustForDST){if(_1.getTimezoneOffset()==this.januaryDstOffset){if(this.southernHemisphere){_3+=this.dstDeltaMinutes}}else{if(!this.southernHemisphere){_3+=this.dstDeltaMinutes}}}
return(_2!=null?_2:this.UTCMinutesDisplayOffset)+(this.adjustForDST?_3:0)});isc.B._maxIndex=isc.C+15;isc.Time.$76r();isc.Time.setDefaultDisplayTimezone(new Date().getTimezoneOffset(),true);isc.ClassFactory.defineClass("Tree",null,"List");isc.A=isc.Tree.getPrototype();isc.A.getProperty=isc.List.getInstanceProperty("getProperty");isc.A=isc.Tree;isc.A.FOLDERS_AND_LEAVES=null;isc.A.FOLDERS_ONLY="folders";isc.A.LEAVES_ONLY="leaves";isc.A.UNLOADED="unloaded";isc.A.LOADING="loading";isc.A.FOLDERS_LOADED="foldersLoaded";isc.A.LOADED="loaded";isc.A.LOADED_PARTIAL_CHILDREN="loadedPartialChildren";isc.A.PARENT="parent";isc.A.CHILDREN="children";isc.A.STRICT="strict";isc.A.KEEP_PARENTS="keepParents";isc.A.ANY="any";isc.A.ARRAY="array";isc.A.OBJECT="object";isc.A.OBJECT_ARRAY="objectArray";isc.A.NODE="node";isc.A.BRANCH="branch";isc.A.LEVEL="level";isc.A.NODE="node";isc.A.HIGHEST="highest";isc.A.STOP="stop";isc.A.autoID=0;isc.A=isc.Tree.getPrototype();isc.A.modelType="children";isc.A.isFolderProperty="isFolder";isc.A.reportCollisions=true;isc.A.autoSetupParentLinks=true;isc.A.pathDelim="/";isc.A.treeProperty="$42c";isc.A.nameProperty="name";isc.A.titleProperty="title";isc.A.childrenProperty="children";isc.A.cacheOpenList=true;isc.A.discardParentlessNodes=false;isc.A.indexByLevel=false;isc.A.showOpenIcon=false;isc.A.showDropIcon=false;isc.A.sortDirection="ascending";isc.A.showRoot=false;isc.A.autoOpenRoot=true;isc.A.separateFolders=false;isc.A.sortFoldersBeforeLeaves=true;isc.A.defaultNodeTitle="Untitled";isc.A.defaultLoadState=isc.Tree.UNLOADED;isc.A=isc.Tree.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$864=["autoOpenRoot","childrenProperty","defaultIsFolder","defaultNodeTitle","discardParentlessNodes","idField","isFolderProperty","modelType","nameProperty","parentIdField","pathDelim","reportCollisions","rootValue","showRoot","titleProperty","isMultiDSTree","dataSource","operation"];isc.A.$865="openProperty";isc.A.$64z="treeLinking";isc.A.$27d=0;isc.A.$170l=1;isc.A.loadBatchSize=50;isc.B.push(isc.A.init=function isc_Tree_init(){this.setupProperties();this.setRoot(this.root||this.makeRoot());if(this.loadOnInit&&this.loadBatchSize>=0)this.loadSubtree(null,null,true)},isc.A.setupProperties=function isc_Tree_setupProperties(){if(this.ID==null||window[this.ID]!=this)isc.ClassFactory.addGlobalID(this);if(!this.parentProperty)this.parentProperty="_parent_"+this.ID;if(!this.isFolderProperty)this.isFolderProperty="_isFolder_"+this.ID;if(this.idField==null)this.idField="id";if(this.parentIdField==null)this.parentIdField="parentId";if(!this.openProperty)this.openProperty="_isOpen_"+this.ID;if(this.indexByLevel)this.$76h=[];this.$111w="_cachedLength_"+this.ID;this.$1200="_recursionCount_"+this.ID},isc.A.$1201=function isc_Tree__copyKnownProperties(_1){var _2;for(var i=0;i<this.$864.length;i++){var _4=this.$864[i],_5=this[_4];if(_5!==_2){_1[_4]=_5}}
var _5=this[this.$865];if(_5!==_2&&!_5.startsWith("_isOpen_")){_1[this.$865]=_5}},isc.A.duplicate=function isc_Tree_duplicate(_1,_2){var _3=isc.Tree.create();this.$1201(_3);_3.setRoot(this.getCleanNodeData(this.getRoot(),false,false,_2));if(_1){var _4=this.getOpenList(null,isc.Tree.FOLDERS_AND_LEAVES,null,null,null,null,true);_4=this.getCleanNodeData(_4,false,false,_2);_3.$1369(_4)}
return _3},isc.A.destroy=function isc_Tree_destroy(){this.destroyed=true;if(this.$27i!=null)this.$27i.call(window);isc.ClassFactory.dereferenceGlobalID(this);this.Super("destroy",arguments)},isc.A.makeRoot=function isc_Tree_makeRoot(){var _1={};var _2;if(this.idField!==_2)_1[this.idField]=this.rootValue;_1[this.treeProperty]=this.ID;return _1},isc.A.convertToFolder=function isc_Tree_convertToFolder(_1){var _2=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged()),_3=_2&&this.getLoadState(_1),_4=this.isFolder(_1),_5=!_4&&_1!=this.root,_6,_7;if(_5){_7=this.getParent(_1);_5=(_7!=null);if(_5){_6=this.$111x(_1,_7)}}
_1[this.isFolderProperty]=true;if(_2){var _8=this.getLoadState(_1),_9=(_3===isc.Tree.LOADED||_3===isc.Tree.LOADED_PARTIAL_CHILDREN),_10=(_8===isc.Tree.LOADED||_8===isc.Tree.LOADED_PARTIAL_CHILDREN);if(_9!=_10){var _7=this.getParent(_1);if(isc.isA.Boolean(_1[this.$1215])){this.$1203(_1,null,_7,false)}}}
var _11=_1[this.$111w];if(_11==null)_11=0;_1[this.$111w]=_11+this.$111y(_1,_4,true);if(_5){return this.$111x(_1,_7)-_6}else{return 0}},isc.A.makeNode=function isc_Tree_makeNode(_1,_2){var _3=this.find(_1);if(_3){if(_2){var _4=this.convertToFolder(_3);if(_4!=0&&_3!=this.root){this.$111z(this.getParent(_3),_4)}}
return _3}
var _5=_1.split(this.pathDelim);var _6=this.getRoot()[this.nameProperty];if(_6.endsWith(this.pathDelim)){_6=_6.substring(0,_6.length-this.pathDelim.length)}
if(_5[0]!=_6)_5.addAt(_6,0);var _7=_5[_5.length-1],_8=(_7!=isc.emptyString);if(!_8){_5.length=_5.length-1;_7=_5[_5.length-1]}
var _9=_5.slice(0,(_5.length-1)).join(this.pathDelim)+this.pathDelim;var _10=this.find(_9);if(_10==null){_10=this.find(_9.substring(0,_9.length-this.pathDelim.length))}
if(!_10){_10=this.makeNode(_9,_2)}else if(!this.isFolder(_10)){var _4=this.convertToFolder(_10);if(_4!=0&&_10!=this.root){this.$111z(this.getParent(_10),_4)}}
var _3={};_3[this.nameProperty]=_7;if(!_8){var _4=this.convertToFolder(_3);if(_4!=0&&_3!=this.root){this.$111z(this.getParent(_3),_4)}}
return this.$27e(_3,_10)},isc.A.isRoot=function isc_Tree_isRoot(_1){return this.root==_1},isc.A.setupParentLinks=function isc_Tree_setupParentLinks(_1){if(!_1)_1=this.root;return this.$1114(_1,true,false,false,false)},isc.A.$1114=function isc_Tree__traverse(_1,_2,_3,_4,_5){if(_2&&_1[this.idField]!=null){this.nodeIndex[_1[this.idField]]=_1}
var _6=_1[this.childrenProperty];if(_6){if(_2){this.setLoadState(_1,isc.Tree.LOADED)}
if(!(isc.isAn.Array(_6)||isc.isA.ResultSet(_6))){_6=_1[this.childrenProperty]=[_6]}}
if(_6){var _7=isc.isAn.Array(_6),_8=!_7&&isc.isA.ResultSet(_6);var _9=(_8?_6.$121l():_6.getLength());for(var i=0;i<_9;++i){var _11=(_7?_6[i]:_6.getCachedRow(i));if(!_11)continue;if(_2){if(_11[this.parentIdField]==null&&_1[this.idField]!=null)
_11[this.parentIdField]=_1[this.idField];_11[this.parentProperty]=_1;this.$76i(_11,_1)}
if(this.isFolder(_11)){this.$1114(_11,_2,_3,_4,true)}else if(_2&&_11[this.idField]!=null){this.nodeIndex[_11[this.idField]]=_11}
if(_3){_11[this.$111w]=this.$1112(_11)}}}
if(_4&&_6){_6=_1[this.childrenProperty]=this.$1202(_1,_6,true);if(isc.isA.ResultSet(_6)){if(!(_6.lengthIsKnown()&&_6.allMatchingRowsCached())){this.$1203(_1,false,null,false)}}}
if(_3&&!_5){_1[this.$111w]=this.$1112(_1)}},isc.A.connectByParentID=function isc_Tree_connectByParentID(_1,_2,_3,_4,_5){this.$1369(_1,_2,_3,_4,_5)},isc.A.connectByParentId=function isc_Tree_connectByParentId(_1,_2,_3,_4,_5){this.$1369(_1,_2,_3,_4,_5)},isc.A.linkNodes=function isc_Tree_linkNodes(_1,_2,_3,_4,_5,_6,_7){return this.$1369(_1,_2,_3,_4,_5,_6,_7)},isc.A.$1369=function isc_Tree__linkNodes(_1,_2,_3,_4,_5,_6,_7){if(this.modelType=="fields"){this.connectByFields(_1);return}
_1=_1||this.data;_2=(_2!=null)?_2:this.idField;_3=(_3!=null)?_3:this.parentIdField;_4=(_4!=null)?_4:this.rootValue;var _8=[];_8.addList(_1);var _9={};for(var i=0;i<_8.length;i++){var _11=_8[i][_2];if(_11!=null)_9[_11]=_8[i]}
for(var i=0;i<_8.length;i++){var _12=_8[i];if(this.nodeIndex[_12[_2]]==_12)continue;if(_12==null)continue;var _13=_12[_3],_14=_13!=null?_9[_13]:null,_15=[];while(_14!=null){if(_14)_15.add(_14);_13=_14[_3];_14=_13!=null&&_13!=_12[_3]?_9[_13]:null}
for(var _16=_15.length;_16--;){if(this.logIsDebugEnabled(this.$64z)){this.logDebug("linkNodes running - adding interlinked parents to the tree in  reverse hierarchical order -- currently adding node with id:"+_15[_16][_2],this.$64z)}
this.$640(_15[_16],_2,_3,_6,_4);delete _9[_15[_16][_2]]}
this.$640(_12,_2,_3,_6,_4);delete _9[_12[_2]]}
this.$736(true);if(!_7)this.dataChanged()},isc.A.connectByParentID=function isc_Tree_connectByParentID(_1,_2,_3,_4,_5){this.$1369(_1,_2,_3,_4,_5)},isc.A.connectByParentId=function isc_Tree_connectByParentId(_1,_2,_3,_4,_5){this.$1369(_1,_2,_3,_4,_5)},isc.A.$640=function isc_Tree__linkNode(_1,_2,_3,_4,_5){var _6=this.logIsDebugEnabled(this.$64z);var _7=_1[_2],_8=_1[_3],_9,_10=(_5==null),_11=(_8==null||_8==-1||_8===isc.emptyString),_12=this.nodeIndex[_8];if(_12){if(_6){this.logDebug("found parent "+_12[_2]+" for child "+_1[_2],this.$64z)}
this.$137a(_1,_12)}else if(!_10&&_8==_5){if(_6){this.logDebug("root node: "+_1[_2],this.$64z)}
this.$137a(_1,this.root)}else{if(!_11&&this.discardParentlessNodes){this.logWarn("Couldn't find parent: "+_8+" for node with id:"+_7,this.$64z)}else{var _13=_4||this.root;if(_6){this.logDebug("child:"+_1[_2]+(_11?" has no explicit parent ":(" unable to find specified parent:"+_8))+"- linking to default node "+_13[_2],this.$64z)}
this.$137a(_1,_13)}}},isc.A.connectByFields=function isc_Tree_connectByFields(_1){if(!_1)_1=this.data;for(var i=0;i<_1.length;i++){this.addNodeByFields(_1[i])}},isc.A.addNodeByFields=function isc_Tree_addNodeByFields(_1){var _2=this.root;for(var i=0;i<this.fieldOrder.length;i++){var _4=this.fieldOrder[i],_5=_1[_4];var _6=isc.isA.String(_5)?_5:_5+isc.emptyString,_7=this.findChildNum(_2,_6),_8;if(_7!=-1){_8=this.getChildren(_2).get(_7)}else{_8={};_8[this.nameProperty]=_6;this.$27e(_8,_2);var _9=this.convertToFolder(_8);if(_9!=0){this.$111z(_2,_9)}}
_2=_8}
this.$27e(_1,_2)},isc.A.getRoot=function isc_Tree_getRoot(){return this.root},isc.A.setRoot=function isc_Tree_setRoot(_1,_2){this.root=_1;var _3=(_1&&isc.endsWith(this.parentProperty,this.ID));if(_3)_1[this.parentProperty]=null;var _4=!(_3&&this.root[this.$111w]!=null);this.root[this.treeProperty]=this.ID;if(this.rootValue==null)this.rootValue=this.root[this.idField];var _5=this.root[this.nameProperty];if(_5==null||_5==isc.emptyString){var _6=!_4&&this.isFolder(this.root);this.root[this.nameProperty]=this.pathDelim;if(!_4){this.root[this.$111w]+=this.$111y(this.root,_6,this.isFolder(this.root))}}
if(_4){var _7=this.isFolder(this.root);this.root[this.$111w]=((_7&&this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY)||(!_7&&this.openDisplayNodeType!=isc.Tree.FOLDERS_ONLY)?1:0)}
var _8=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());if(_8){if(this.root[this.$1215]==null){this.root[this.$1215]=true;this.$1203(this.root,null,null,true)}}
if(!this.isFolder(this.root)){this.convertToFolder(this.root)}
this.nodeIndex={};if("parent"==this.modelType){if(this.data){this.$132d=true;this.$1369(null,null,null,null,null,null,true);delete this.$132d}}else if("fields"==this.modelType){if(this.data)this.connectByFields()}else if("children"==this.modelType){this.$1114(this.root,this.autoSetupParentLinks,true,false,false);if(this.data){var _9=this.data;this.data=null;this.$27k(_9,this.root)}}else{this.logWarn("Unsupported modelType: "+this.modelType)}
this.setupParentLinks();if(_2!==false&&(this.autoOpenRoot||_2)){this.openFolder(_1)}
this.$1114(this.root,true,false,_8,false);this.$736();this.dataChanged()},isc.A.getCleanNodeData=function isc_Tree_getCleanNodeData(_1,_2,_3,_4){return isc.Tree.getCleanNodeData(_1,_2,true,_4,this)},isc.A.getName=function isc_Tree_getName(_1){var _2=isc.$ad;if(!_1)return _2;var _3=_1[this.nameProperty];if(_3==null)_3=_1[this.idField];if(_3==null){if(!this.isDescendantOf(_1,this.root)&&_1!=this.root)return null;if(!this.$27h)this.$27h=isc.Tree.autoID+++"_";_3=this.$27h+this.$27d++;_1._autoAssignedName=true}
if(!isc.isA.String(_3))_3=_2+_3;_1[this.nameProperty]=_3;return _3},isc.A.getTitle=function isc_Tree_getTitle(_1){if(!_1)return null;if(_1[this.titleProperty]!=null)return _1[this.titleProperty];var _2=_1[this.nameProperty];if(_2==null)_2=this.defaultNodeTitle;return(isc.endsWith(_2,this.pathDelim)?_2.substring(0,_2.length-this.pathDelim.length):_2)},isc.A.getPath=function isc_Tree_getPath(_1){var _2=this.getParent(_1);if(_2==null)return this.getName(_1);var _3=this.getName(_2);return this.getPath(_2)+(_3==this.pathDelim?isc.emptyString:this.pathDelim)+this.getName(_1)},isc.A.getParentPath=function isc_Tree_getParentPath(_1){var _2=this.getName(_1),_3=this.getPath(_1);return _3.substring(0,_3.length-_2.length-this.pathDelim.length)},isc.A.getParent=function isc_Tree_getParent(_1){if(_1==null)return null;return _1[this.parentProperty]},isc.A.getParents=function isc_Tree_getParents(_1){var _2=[],_3=this.getParent(_1);while(_3){_2.add(_3);if(_3==this.root)break;_3=this.getParent(_3)}
return _2},isc.A.getLevel=function isc_Tree_getLevel(_1){return this.getParents(_1).length},isc.A.$59a=function isc_Tree__getFollowingSiblingLevels(_1){var _2=[],_3=this.getParents(_1),_4=_3.length;for(var i=0;i<_4;i++){var _6=this.getChildren(_3[i]),_7=(isc.isA.ResultSet(_6)?_6.$121l():_6.getLength());if(_6.indexOf(_1)!=_7-1){_2.add(_4-i)}
_1=_3[i]}
return _2},isc.A.isFolder=function isc_Tree_isFolder(_1){if(_1==null)return false;var _2=_1[this.isFolderProperty];if(_2!=null)return _2;if(_1[this.childrenProperty])return true;var _3=this.getName(_1);if(_3==null)return false;return isc.endsWith(_3,this.pathDelim)},isc.A.isLeaf=function isc_Tree_isLeaf(_1){return!this.isFolder(_1)},isc.A.isFirst=function isc_Tree_isFirst(_1){var _2=this.getParent(_1);if(!_2)return true;var _3=this.getChildren(_2,this.opendisplayNodeType,this.$27i,this.sortDirection,null,this.$45g);if(isc.isA.ResultSet(_3)){return(_3.$121l()>0&&_3.getCachedRow(0)==_1)}else{return(_3.first()==_1)}},isc.A.isLast=function isc_Tree_isLast(_1){var _2=this.getParent(_1);if(!_2)return true;var _3=this.getChildren(_2,this.opendisplayNodeType,this.$27i,this.sortDirection,null,this.$45g);if(isc.isA.ResultSet(_3)){var _4=_3.$121l();return(_4>0&&_3.getCachedRow(_4-1)==_1)}else{return(_3.last()==_1)}},isc.A.findById=function isc_Tree_findById(_1){return this.find(this.idField,_1)},isc.A.find=function isc_Tree_find(_1,_2){var _3;if(_2===_3&&isc.isA.String(_1))return this.$27j(_1);if(_2!==_3){if(_1==this.idField)return this.nodeIndex[_2];if(this.root[_1]==_2)return this.root;return this.getDescendants(_3,_3,_3,true).find(_1,_2)}else{var _4=this.getDescendants(_3,_3,_3,true);_4.add(this.root);return _4.find(_1)}},isc.A.findAll=function isc_Tree_findAll(_1,_2){var _3;return this.getDescendants(_3,_3,_3,true).findAll(_1,_2)},isc.A.$27j=function isc_Tree__findByPath(_1){if(_1==this.pathDelim)return this.root;var _2=this.getPath(this.root);if(_1==_2)return this.root;var _3=this.root,_4=0,_5=this.pathDelim.length;if(isc.startsWith(_1,_2)){_4=_2.length}else if(isc.startsWith(_1,this.pathDelim)){_4+=_5}
while(true){var _6=_1.indexOf(this.pathDelim,_4);if(_6==_4){_4+=_5;continue}
var _7=(_6!=-1),_8=_1.substring(_4,_7?_6:_1.length),_9=this.findChildNum(_3,_8);if(_9==-1)return null;_3=_3[this.childrenProperty].getCachedRow(_9);if(!_7)return _3;_4=_6+_5;if(_4==_1.length)return _3}},isc.A.findChildNum=function isc_Tree_findChildNum(_1,_2){var _3=this.getChildren(_1);if(_3==null){return-1}
if(_2==null)return-1;var _4=(isc.isA.ResultSet(_3)?_3.$121l():_3.getLength()),_5=isc.endsWith(_2,this.pathDelim),_6=this.pathDelim.length;for(var i=0;i<_4;i++){var _8=_3.getCachedRow(i);if(_8!=null){var _9=this.getName(_8),_10=_9.length-_2.length;if(_10==0&&_9==_2)return i;if(_10==_6){if(isc.startsWith(_9,_2)&&isc.endsWith(_9,this.pathDelim)&&!_5)
{return i}}else if(_5&&_10==-_6){if(isc.startsWith(_2,_9))return i}}}
return-1},isc.A.findNodeIndex=function isc_Tree_findNodeIndex(_1,_2){return this.getNodeList().findIndex(_1,_2)},isc.A.findNextNodeIndex=function isc_Tree_findNextNodeIndex(_1,_2,_3,_4){return this.getNodeList().findNextIndex(_1,_2,_3,_4)},isc.A.getChildren=function isc_Tree_getChildren(_1,_2,_3,_4,_5,_6,_7,_8,_9){if(!_9&&_3==null&&this.$27i==null&&this.separateFolders)
{if(this.$73p!=null)this.setSort(this.$73p);else this.sortByProperty();if(!this.$27i)this.$27n();_3=this.$27i}
if(_1==null)_1=this.root;if(this.isLeaf(_1))return null;if(_1[this.childrenProperty]==null){if(_7)return null;var _10=[];_1[this.childrenProperty]=_10;return _10}
var _11=isc.ResultTree&&isc.isA.ResultTree(this)&&this.isPaged(),_12=_1[this.childrenProperty],_13;if(_5){_13=[];var _14=(_11&&isc.isA.ResultSet(_12)?_12.$121l():_12.getLength());for(var i=0;i<_14;++i){var _16=_12.getCachedRow(i);if(_16!=null){if(this.fireCallback(_5,"node,parent,tree",[_16,_1,this]))
{_13[_13.length]=_16}}}
_12=_13}
if(_2==isc.Tree.FOLDERS_ONLY){_13=[];var _14=(_11&&isc.isA.ResultSet(_12)?_12.$121l():_12.getLength());for(var i=0;i<_14;++i){var _16=_12.getCachedRow(i);if(_16!=null){var _17=this.isFolder(_16);if(_17&&_8){var c=_16[this.childrenProperty];_17=!(c!=null&&c.isEmpty())}
if(_17){_13[_13.length]=_16}}}}else if(_2==isc.Tree.LEAVES_ONLY){_13=[];var _14=(_11&&isc.isA.ResultSet(_12)?_12.$121l():_12.getLength());for(var i=0;i<_14;++i){var _16=_12.getCachedRow(i);if(_16!=null){var _19=this.isLeaf(_16);if(!_19&&_8){var c=_16[this.childrenProperty];_19=(c!=null&&c.isEmpty())}
if(_19){_13[_13.length]=_16}}}}else{_13=_12}
if(this.isSubsetSortDirty(_13)&&(_3||(!_11||!isc.isA.ResultSet(_13))&&_9==false))
{var _20=this.$73p?this.$73p.getProperty("property"):[];var _21=_3===this.$27i;if(this.$73p&&_3&&(!_21||!_11)){var _22=null,_23=null;if(isc.Browser.isFirefox&&_21){_22=this.$135d;_23=this.$135e}
for(var _24=this.$73p.length;_24--;){var _25=this.$73p[_24];if(!_25.normalizer){_25.normalizer=_3;_25.$114u=(Array.shouldSortAscending(_25.direction)?_22:_23)}}}
var _26=!this.$684?null:(isc.isAn.Array(this.$684)?this.$684:[this.$684]);if(!_26||this.alwaysSortGroupHeaders||(!_26.contains(_20[0])&&_1!=this.getRoot())||(_26.contains(_20[0]))){if(this.$73p){if(_11&&isc.isA.ResultSet(_13)){_13=_13.getAllVisibleRows()||[]}
if(_1.groupMembers){var _27=(this.$73p.find("property",_1.groupName)!=null);var _28=_1==this.getRoot();_27=_27||_28;if(_27){_13.map(function(_34){if(_34.$52e){if(_1.groupValue&&!_34[_1.groupName]&&_28){_34[_1.groupName]=_1.groupValue}
if(!_34[_34.groupName]){_34[_34.groupName]=_34.groupValue}}})}}
var _29=_13.findAll(this.$112c,true)||[];if(_29.length>0)_13.removeList(_29);_13.setSort(this.$73p);this.markSubsetAsSorted(_13);if(_29.length>0){var _30=[];for(var i=0;i<_29.length;){if(_29[i]==null)break;var _31=[],_32=_29[i],_33=_32[this.$117k];if(_33==null){_30.add(_32);i++;continue}else{do{_31.add(_32);_32=_29[i+1];i++}while(_32&&_32[this.$117k]==_33);_13.addListAt(_31,_13.indexOf(_33)+1)}}
if(_30.length>0){_13.addListAt(_30,_13.length)}}}}}
return _13},isc.A.getChildrenResultSet=function isc_Tree_getChildrenResultSet(_1){var _2=this.getChildren(_1);return(isc.isA.ResultSet(_2)?_2:null)},isc.A.getFolders=function isc_Tree_getFolders(_1,_2,_3,_4,_5){var _6=this.getChildren(_1,isc.Tree.FOLDERS_ONLY,_2,_3,_4,_5);return _6},isc.A.getLeaves=function isc_Tree_getLeaves(_1,_2,_3,_4,_5){var _6=this.getChildren(_1,isc.Tree.LEAVES_ONLY,_2,_3,_4,_5);return _6},isc.A.getLevelNodes=function isc_Tree_getLevelNodes(_1,_2){if(this.indexByLevel&&(_2==null||_2==this.getRoot())){return this.$76h[_1]||[]}else{if(!_2)_2=this.getRoot();var _3=this.getChildren(_2);if(_1==0){if(isc.isA.ResultSet(_3)){return _3.getAllLoadedRows()}else{return _3}}
var _4=[];if(_3){var _5=(isc.isA.ResultSet(_3)?_3.$121l():_3.getLength());for(var i=0;i<_5;++i){var _7=_3.getCachedRow(i),_8=(_7!=null&&this.getLevelNodes(_1-1,_7));if(_8)_4.addList(_8)}}
return _4}},isc.A.getDepth=function isc_Tree_getDepth(){if(this.$76h)return this.$76h.length;return null},isc.A.hasChildren=function isc_Tree_hasChildren(_1,_2){var _3=this.getChildren(_1,_2);return(_3!=null&&!_3.isEmpty())},isc.A.hasFolders=function isc_Tree_hasFolders(_1){return this.hasChildren(_1,isc.Tree.FOLDERS_ONLY)},isc.A.hasLeaves=function isc_Tree_hasLeaves(_1){return this.hasChildren(_1,isc.Tree.LEAVES_ONLY)},isc.A.isDescendantOf=function isc_Tree_isDescendantOf(_1,_2){if(_1==_2)return false;var _3=_1;while(_3!=null){if(_3==_2)return true;_3=_3[this.parentProperty]}
return false},isc.A.getDescendants=function isc_Tree_getDescendants(_1,_2,_3,_4){if(!_1)_1=this.root;var _5=[];if(!_3)_3=isc.Class.RET_TRUE;if(this.isLeaf(_1))return _5;if(!_4&&this.getLoadState(_1)!=isc.Tree.LOADED){return _5}
var _6=this.getChildren(_1);if(!_6){return _5}
var _7=(isc.isA.ResultSet(_6)?_6.$121l():_6.getLength());for(var i=0;i<_7;++i){var _9=_6.getCachedRow(i);if(_9==null){}else if(this.isFolder(_9)){if(_2!=isc.Tree.LEAVES_ONLY&&_3(_9)){_5[_5.length]=_9}
_5=_5.concat(this.getDescendants(_9,_2,_3,_4))}else{if(_2!=isc.Tree.FOLDERS_ONLY&&_3(_9)){_5[_5.length]=_9}}}
return _5},isc.A.getDescendantFolders=function isc_Tree_getDescendantFolders(_1,_2){return this.getDescendants(_1,isc.Tree.FOLDERS_ONLY,_2)},isc.A.getDescendantLeaves=function isc_Tree_getDescendantLeaves(_1,_2){return this.getDescendants(_1,isc.Tree.LEAVES_ONLY,_2)},isc.A.dataChanged=function isc_Tree_dataChanged(){},isc.A.add=function isc_Tree_add(_1,_2,_3){return this.$27e(_1,_2,_3)},isc.A.$27e=function isc_Tree__add(_1,_2,_3){if(_2==null&&this.modelType==isc.Tree.PARENT){var _4=_1[this.parentIdField];if(_4!=null)_2=this.findById(_4)}
if(isc.isA.String(_2)){_2=this.find(_2)}else if(!this.getParent(_2)&&_2!==this.getRoot()){isc.logWarn('Tree.add(): specified parent node:'+this.echo(_2)+' is not in the tree, returning');return null}
if(!_2){var _5=this.getParentPath(_1);if(_5)_2=this.find(_5);if(!_2)return null}
var _6=_2[this.childrenProperty];if(_6)this.markSubsetSortDirty(_6);this.$137a(_1,_2,_3);this.$736(true);this.dataChanged();return _1},isc.A.$580=function isc_Tree__reportCollision(_1){if(this.reportCollisions){this.logWarn("Adding node to tree with id property set to:"+_1+". A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.")}},isc.A.$137a=function isc_Tree___add(_1,_2,_3){var _4=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());var _5={};_2[this.$1200]=1+(_2[this.$1200]||0);this.$1205(_1,_2,true,_5);var _6=_5.deltaParentLength,_7=_5.grandParent,_8=_5.origParentLength,_9=_5.children;if(_3==null||_3>_9.length){_9.add(_1)}else{_9.addAt(_1,_3)}
this.$1206(_1,_2,_3,_5);var _10=(_4?this.$1202(_1,_5.grandChildren,false):_5.grandChildren);if(_4){var _11=(_2[this.canReturnOpenSubfoldersProperty]!=null),_12=(_11?_2[this.canReturnOpenSubfoldersProperty]:this.canReturnOpenFolders);if(!_12&&this.isOpen(_1)&&_10!=null&&!_10.isEmpty())
{this.logWarn("Adding the open folder node '"+this.getPath(_1)+"' as a child of the parent node '"+this.getPath(_2)+"' is contradictory to the setting of the "+(_11?"'"+this.canReturnOpenSubfoldersProperty+"' property of the parent node.":"'canReturnOpenFolders' property of the tree."))}}
var _13=0;if(_4&&isc.isA.ResultSet(_10)){if(!(_10.lengthIsKnown()&&_10.allMatchingRowsCached())){this.$1203(_1,false,_2,false)}}else if(_10!=null){if(!isc.isAn.Array(_10)){this.$137a(_10,_1)}else if(_10.length>0){this.$137b(_10,_1)}
this.setLoadState(_1,isc.Tree.LOADED)}
if((--_2[this.$1200])==0){delete _2[this.$1200];if(_7){_6+=(this.$111x(_2,_7)-_8);this.$111z(_7,_6)}}},isc.A.$1207=function isc_Tree__removeCollision(_1){var _2=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());if(_2){var _3=this.getParent(_1),_4=(_3!=null?this.getChildren(_3):null);if(isc.isA.ResultSet(_4)){var j=_4.indexOf(_1);if(j!=-1){_4.fillCacheData([null],j)}
return}}
this.$786(_1)},isc.A.$1208=function isc_Tree__findCollision(_1){var _2=_1[this.idField];if(_2!=null&&this.modelType==isc.Tree.PARENT){var _3=this.findById(_2);if(_3){return _3}}
return null},isc.A.$1205=function isc_Tree__preAdd(_1,_2,_3,_4){this.getName(_1);var _5=_4.deltaParentLength=this.convertToFolder(_2);var _6=_4.grandParent=(_2!=this.root&&this.getParent(_2)),_7=_4.origParentLength=(_6&&this.$111x(_2,_6));var _8=this.$1208(_1);if(_8){var _9=_8[this.idField];this.$580(_9);if(_3){this.$1207(_8)}}
var _10=_2[this.childrenProperty];if(!_10)_10=_2[this.childrenProperty]=[];_4.children=_10;var _11=_4.childrenResultSet=isc.isA.ResultSet(_10);if(_10!=null&&!isc.isAn.Array(_10)&&!_11){_2[this.childrenProperty]=_10=[_10]}
var _12=this.idField
_1[this.parentIdField]=_2[_12];_1[this.parentProperty]=_2},isc.A.$1206=function isc_Tree__postAdd(_1,_2,_3,_4){var _5=this.idField;_1[this.treeProperty]=this.ID;if(_1[_5]!=null)this.nodeIndex[_1[_5]]=_1;if(!_4.childrenResultSet){this.setLoadState(_2,isc.Tree.LOADED)}
this.$76i(_1,_2,_3);var _6=this.isFolder(_1);_1[this.$111w]=(this.openDisplayNodeType!=(_6?isc.Tree.LEAVES_ONLY:isc.Tree.FOLDERS_ONLY)?1:0);var _7=_4.grandChildren=_1[this.childrenProperty],_8;if(_7!=null){_1[this.childrenProperty]=[];_8=this.$111x(_1,_2)}else{_8=this.$111x(_1,_2);var _9=this.isFolder(_1),_10=_1[this.isFolderProperty];if(_10!=null&&!isc.isA.Boolean(_10)){_10=isc.booleanValue(_10,true)}
if(_10==null&&this.defaultIsFolder)_10=true;if(_10&&!_9){_8+=this.convertToFolder(_1)}
_1[this.isFolderProperty]=_10}
_2[this.$111w]+=_8},isc.A.$76i=function isc_Tree__addToLevelCache(_1,_2,_3){if(!this.indexByLevel)return;var _4=this.getLevel(_2);if(!this.$76h[_4])this.$76h[_4]=[];var _5=this.$76h[_4];if(_5.length==0){if(!isc.isAn.Array(_1)){_5.push(_1)}else{_5.concat(_1)}}else{if(!isc.isAn.Array(_1)){if(_5.contains(_1))return}else{var _6=[];for(var j=0;j<_1.length;j++){if(!_5.contains(_1[j])){_6.push(_1[j])}}}
var _8=false,_9=0,i=0;for(i;i<_5.length;i++){if(this.getParent(_5[i])==_2){_8=true}else if(_8){break}else{continue}
if(_9===_3){break}
_9++}
if(!isc.isAn.Array(_1)){_5.splice(i,0,_1)}else{if(i==0){this.$76h[_4]=_6.concat(_5)}else if(i==_5.length){this.$76h[_4]=_5.concat(_6)}else{this.$76h[_4]=_5.slice(0,i).concat(_6,_5.slice(i))}}}},isc.A.addList=function isc_Tree_addList(_1,_2,_3){return this.$27k(_1,_2,_3)},isc.A.$27k=function isc_Tree__addList(_1,_2,_3){if(isc.isA.String(_2))_2=this.find(_2);if(!_2)return null;var _4=_2[this.childrenProperty];if(_4)this.markSubsetSortDirty(_4);this.$137b(_1,_2,_3);if(!this.$1266){this.$736(true);this.dataChanged()}
return _1},isc.A.$137b=function isc_Tree___addList(_1,_2,_3){var _4=(isc.isA.ResultSet(_1)?_1.$121l():_1.getLength());for(var i=0;i<_4;++i){var _6=_1.getCachedRow(i);if(_6!=null){this.$137a(_6,_2,_3!=null?(_3+i):null)}}},isc.A.move=function isc_Tree_move(_1,_2,_3){return this.$1083(_1,_2,_3)},isc.A.$1083=function isc_Tree__move(_1,_2,_3){this.moveList([_1],_2,_3)},isc.A.moveBefore=function isc_Tree_moveBefore(_1,_2){this.moveListBefore([_1],_2)},isc.A.moveListBefore=function isc_Tree_moveListBefore(_1,_2){var _3=this.getParent(_2);var _4=this.getChildren(_3),_5=_4.indexOf(_2),_6=0;for(var i=0;i<_5;i++){if(_1.contains(_4[i])){_6+=1}}
this.moveList(_1,_3,_5-_6)},isc.A.moveList=function isc_Tree_moveList(_1,_2,_3){for(var i=_1.length,_5=false;i--;){var _6=_1[i];if(_6==_2||this.isDescendantOf(_2,_6)){if(!_5){_5=true;_1=_1.duplicate()}
this.logWarn("Tree.moveList():  Specified node '"+this.getPath(_6)+"' is an ancestor of the new parent node '"+this.getPath(_2)+"' and therefore cannot be made a child of that parent.  The specified node will remain where it is.");_1.removeAt(i)}}
if(_1.length==0){return}
this.$1266=true;this.$137c(_1);var _7=this.getChildren(_2);if(_7){var _8=(isc.isA.ResultSet(_7)?_7.$121l():_7.getLength());if(_3>_8){_3=_8}}
this.$27k(_1,_2,_3);delete this.$1266;this.$736(true);this.dataChanged()},isc.A.remove=function isc_Tree_remove(_1,_2){return this.$786(_1,_2)},isc.A.$786=function isc_Tree__remove(_1,_2){var _3=this.getParent(_1);if(!_3)return false;var _4=this.getChildren(_3);if(_4){var _5=_4.indexOf(_1);if(_5!=-1){this.$137d(_1,_3,_4,_5);if(!_2){this.$736(true);this.dataChanged()}
return true}}
return false},isc.A.$137d=function isc_Tree___remove(_1,_2,_3,_4){var _5=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());_2[this.$1200]=1+(_2[this.$1200]||0);var _6={};this.$1209(_1,_2,_6);var _7=_6.deltaLength,_8=_6.grandParent,_9=_6.origParentLength;_3.remove(_1);this.$121a(_1,_2,_6);var _8=_6.grandParent;if((--_2[this.$1200])==0){delete _2[this.$1200];if(_8){var _10=(this.$111x(_2,_8)-_9);this.$111z(_8,_10)}}},isc.A.$1209=function isc_Tree__preRemove(_1,_2,_3){this.$1221(_1);_3.deltaLength=-this.$111x(_1,_2);var _4=_3.grandParent=(_2!=this.root&&this.getParent(_2));_3.origParentLength=_4&&this.$111x(_2,_4);this.$76j(_1);delete _1[this.parentProperty];delete _1[this.treeProperty]});isc.evalBoundary;isc.B.push(isc.A.$121a=function isc_Tree__postRemove(_1,_2,_3){var _4=_3.deltaLength;_2[this.$111w]+=_4},isc.A.$1221=function isc_Tree__removeFromNodeIndex(_1){delete this.nodeIndex[_1[this.idField]];var _2=this.getChildren(_1,null,null,null,null,null,true);if(!_2)return;var _3=(isc.isA.ResultSet(_2)?_2.$121l():_2.getLength());for(var i=0;i<_3;++i){var _5=_2.getCachedRow(i);if(_5!=null){this.$1221(_5)}}},isc.A.removeList=function isc_Tree_removeList(_1){return this.$137c(_1)},isc.A.$137c=function isc_Tree__removeList(_1){var _2=false;var i=(isc.isA.ResultSet(_1)?_1.$121l():_1.getLength());while(i--){var _4=_1.getCachedRow(i);if(_4!=null){if(this.$786(_4,true)){_2=true}}}
if(_2&&!this.$1266){this.$736(true);this.dataChanged()}
return _2},isc.A.$76j=function isc_Tree__removeFromLevelCache(_1,_2){if(!this.indexByLevel)return;_2=_2||this.getLevel(_1)-1;var _3=this.getChildren(_1);if(_3){var _4=(isc.isA.ResultSet(_3)?_3.$121l():_3.getLength());for(var i=0;i<_4;++i){var _6=_3.getCachedRow(i);if(_6!=null){this.$76j(_6,_2+1)}}}
if(this.$76h[_2]){var _7=this.$76h[_2];for(var i=0;i<_7.length;i++){if(_7[i]==_1){_7.splice(i,1);break}}}},isc.A.getLoadState=function isc_Tree_getLoadState(_1){if(!_1)return null;if(this.isLeaf(_1))return isc.Tree.LOADED;if(!_1.$27g)return this.defaultLoadState;return _1.$27g},isc.A.isLoaded=function isc_Tree_isLoaded(_1){var _2=this.getLoadState(_1);return(_2==isc.Tree.LOADED||_2==isc.Tree.LOADING||_2==isc.Tree.LOADED_PARTIAL_CHILDREN)},isc.A.isLoading=function isc_Tree_isLoading(_1){return this.getLoadState(_1)==isc.Tree.LOADING},isc.A.allChildrenLoaded=function isc_Tree_allChildrenLoaded(_1){var _2=this.getLoadState(_1);return(_2==isc.Tree.LOADED)},isc.A.setLoadState=function isc_Tree_setLoadState(_1,_2){var _3=this.getLoadState(_1);_1.$27g=_2;_2=this.getLoadState(_1);var _4=(_3===isc.Tree.LOADED||_3===isc.Tree.LOADED_PARTIAL_CHILDREN),_5=(_2===isc.Tree.LOADED||_2===isc.Tree.LOADED_PARTIAL_CHILDREN),_6=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());if(_6&&(_4!=_5)){var _7=this.getParent(_1);if(isc.isA.Boolean(_1[this.$1215])){this.$1203(_1,null,_7,false)}}},isc.A.loadRootChildren=function isc_Tree_loadRootChildren(_1){this.loadChildren(this.root,_1)},isc.A.loadChildren=function isc_Tree_loadChildren(_1,_2){if(!_1){_1=this.root}
var _3=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged());if(_3){this.$121b(_1,0,this.resultSize,_2)}else{this.$121b(_1,null,null,_2)}},isc.A.$121b=function isc_Tree__loadChildren(_1,_2,_3,_4){this.setLoadState(_1,isc.Tree.LOADED);if(_4){this.fireCallback(_4,"node",[_1],this)}},isc.A.unloadChildren=function isc_Tree_unloadChildren(_1,_2,_3){if(_1==null||this.isLeaf(_1)){return}
var _4,_5,_6;if(_2==isc.Tree.LEAVES_ONLY){_4=this.getLeaves(_1);_5=this.getFolders(_1);_6=isc.Tree.FOLDERS_LOADED}else{_4=_1[this.childrenProperty];_5=[];_6=isc.Tree.UNLOADED}
var _7,_8;if(_4){_7=(_1!=this.root&&this.getParent(_1));_8=_7&&this.$111x(_1,_7);for(var i=0;i<_4.getLength();i++){var _10=_4.get(i);if(!isc.isAn.Object(_10)||_10[this.idField]==null)continue;this.$1221(_10);_1[this.$111w]-=this.$111x(_10,_1)}}
_1[this.childrenProperty]=_5;this.setLoadState(_1,_3?isc.Tree.LOADED:_6);if(_4&&_7){var _11=(this.$111x(_1,_7)-_8);this.$111z(_7,_11)}
this.$736(true);this.dataChanged()},isc.A.reloadChildren=function isc_Tree_reloadChildren(_1,_2){this.unloadChildren(_1,_2);this.loadChildren(_1,_2)},isc.A.removeChildren=function isc_Tree_removeChildren(_1,_2){this.unloadChildren(_1,_2,true)},isc.A.setChildren=function isc_Tree_setChildren(_1,_2){this.removeChildren(_1);this.addList(_2||[],_1)},isc.A.$736=function isc_Tree__clearNodeCache(_1){if(_1)this.$737=null;this.$27m=null},isc.A.isOpen=function isc_Tree_isOpen(_1){return _1!=null&&!!_1[this.openProperty]},isc.A.getOpenFolders=function isc_Tree_getOpenFolders(_1){if(_1==null)_1=this.root;var _2=this.openProperty;var _3=this.getDescendantFolders(_1,function(_1){return _1[_2]});if(this.isOpen(_1))_3.add(_1);return _3},isc.A.getOpenFolderPaths=function isc_Tree_getOpenFolderPaths(_1){var _2=this.getOpenFolders(_1);for(var i=0;i<_2.length;i++){_2[i]=this.getPath(_2[i])}
return _2},isc.A.changeDataVisibility=function(node,newState,callback){if(this.isLeaf(node)){if(callback){this.fireCallback(callback,"node",[node],this)}
return false}
var state=node[this.openProperty],closedToOpen=!state&&newState,openToClosed=state&&!newState;if(closedToOpen||openToClosed){var parent=(node!=this.root&&this.getParent(node))||null,prevLength=parent&&this.$111x(node,parent),newLength=(this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY?1:0);node[this.openProperty]=newState;if(closedToOpen){var childrenInOpenList=this.getChildren(node,isc.Tree.FOLDERS_AND_LEAVES,null,this.sortDirection,this.openListCriteria,this.$45g,true,true,true),loadingMarker=(isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():null);if(childrenInOpenList==null)childrenInOpenList=[];var i=(isc.isA.ResultSet(childrenInOpenList)?childrenInOpenList.$121l():childrenInOpenList.getLength());var pagedResultTree=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged()),knownLengthNulls=pagedResultTree;if(pagedResultTree){var openSubfoldersAllowed=(node[this.canReturnOpenSubfoldersProperty]!=null?node[this.canReturnOpenSubfoldersProperty]:this.canReturnOpenFolders),defaultChildLength=(this.openDisplayNodeType==isc.Tree.FOLDERS_AND_LEAVES?1:0);knownLengthNulls=!(openSubfoldersAllowed||defaultChildLength==0)}
while(i--){var child=childrenInOpenList.getCachedRow(i);if(child!=null&&child!=loadingMarker){newLength+=this.$111x(child,node)}else if(knownLengthNulls){++newLength}}}
var prevCachedLength=node[this.$111w];node[this.$111w]=newLength;if(parent){var deltaLength=this.$111x(node,parent)-prevLength;this.$111z(parent,deltaLength)}
var affectsOpenListCache=(this.$27m!=null&&parent!=null&&this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY&&(closedToOpen?newLength>prevCachedLength:newLength<prevCachedLength)&&this.$1111(node,parent));for(var n=node,p=parent;p!=null&&affectsOpenListCache;){n=p;p=this.getParent(p);affectsOpenListCache=(p==null||this.$1111(n,p))}
if(parent==null){this.$736(false)}else if(affectsOpenListCache){var loadingMarker=(isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():null),foldersInOpenList=(this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY),displayNodeType=(this.openDisplayNodeType==isc.Tree.FOLDERS_ONLY?isc.Tree.FOLDERS_ONLY:isc.Tree.FOLDERS_AND_LEAVES),openListIndex=(foldersInOpenList&&this.showRoot?1:0);for(var n=node,p=parent;p!=null;){var children=this.getChildren(p,displayNodeType,this.$27i,this.sortDirection,this.openListCriteria,this.$45g,true);if(children==null)children=[];var length=(isc.ResultSet!=null&&isc.isA.ResultSet(children)?children.$121l():children.getLength());for(var i=0;i<length;++i){var child=children.getCachedRow(i);if(child==n){if(foldersInOpenList){++openListIndex}
i=length}else if(!(child==null||child==loadingMarker)){openListIndex+=this.$111x(child,p)}}
n=p;p=this.getParent(p)}
if(closedToOpen){var args=this.getOpenList(node,this.openDisplayNodeType,this.$27i,this.sortDirection,this.openListCriteria,this.$45g,false);if(foldersInOpenList){args[0]=0;args.unshift(openListIndex)}else{args.unshift(openListIndex,0)}
this.$27m.splice.apply(this.$27m,args)}else{this.$27m.splice(openListIndex,prevCachedLength-newLength)}}}else{node[this.openProperty]=newState}
if(newState&&!this.isLoaded(node)){this.loadChildren(node,callback)}else if(callback){this.fireCallback(callback,"node",[node],this)}},isc.A.toggleFolder=function isc_Tree_toggleFolder(_1){this.changeDataVisibility(_1,!this.isOpen(_1))},isc.A.openFolder=function isc_Tree_openFolder(_1,_2){if(_1==null)_1=this.root;if(!this.isOpen(_1)){this.changeDataVisibility(_1,true,_2)}else if(_2){this.fireCallback(_2,"node",[_1],this)}},isc.A.openFolders=function isc_Tree_openFolders(_1){for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3==null)continue;if(isc.isA.String(_3))_3=this.find(_3);if(_3!=null){this.openFolder(_3)}}},isc.A.closeFolder=function isc_Tree_closeFolder(_1){if(this.isOpen(_1)){this.changeDataVisibility(_1,false)}},isc.A.closeFolders=function isc_Tree_closeFolders(_1){for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3==null)continue;if(isc.isA.String(_3))_3=this.find(_3);if(_3!=null){this.closeFolder(_3)}}},isc.A.openAll=function isc_Tree_openAll(_1){if(!_1)_1=this.root;if(_1==this.root){this.$736(false)}
var _2=this.getDescendants(_1,isc.Tree.FOLDERS_ONLY);for(var i=0,_4=_2.length;i<_4;i++){if(!this.isOpen(_2[i])){this.changeDataVisibility(_2[i],true)}}
this.changeDataVisibility(_1,true)},isc.A.closeAll=function isc_Tree_closeAll(_1){if(!_1)_1=this.root;if(_1==this.root){this.$736(false)}
var _2=this.getDescendants(_1,isc.Tree.FOLDERS_ONLY);for(var i=0,_4=_2.length;i<_4;i++){if(this.isOpen(_2[i])){this.changeDataVisibility(_2[i],false)}}
if(!(_1==this.root&&this.showRoot==false))this.changeDataVisibility(_1,false)},isc.A.setOpenDisplayNodeType=function isc_Tree_setOpenDisplayNodeType(_1){var _2=this.openDisplayNodeType;this.openDisplayNodeType=_1;if(_2!=_1){this.$736(true)}},isc.A.setOpenListCriteria=function isc_Tree_setOpenListCriteria(_1){var _2=this.openListCriteria;this.openListCriteria=_1;if(_2!=_1){this.$736(true)}},isc.A.setSortProp=function isc_Tree_setSortProp(_1){var _2=this.sortProp;this.sortProp=_1;if(_2!=_1){this.$736(true)}},isc.A.setSortDirection=function isc_Tree_setSortDirection(_1){var _2=this.sortDirection;this.sortDirection=_1;if(_2!=_1){this.$736(true)}},isc.A.setShowRoot=function isc_Tree_setShowRoot(_1){var _2=this.showRoot;this.showRoot=_1;if(this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY){if(!_2&&_1){if(this.$737!=null){this.$737.unshift(this.root)}
if(this.$27m!=null){this.$27m.unshift(this.root)}}else if(_2&&!_1){if(this.$737!=null){this.$737.shift()}
if(this.$27m!=null){this.$27m.shift()}}}},isc.A.setSeparateFolders=function isc_Tree_setSeparateFolders(_1){var _2=this.separateFolders;this.separateFolders=_1;if(_2?!_1:_1){this.$736(true)}},isc.A.setSortFoldersBeforeLeaves=function isc_Tree_setSortFoldersBeforeLeaves(_1){var _2=this.sortFoldersBeforeLeaves;this.sortFoldersBeforeLeaves=_1;if(_2?!_1:_1){this.$736(true)}},isc.A.getOpenList=function isc_Tree_getOpenList(_1,_2,_3,_4,_5,_6,_7,_8){if(!_1)_1=this.root;if(_8)_3=null;else if(_3==null)_3=this.$27i;if(_4==null)_4=this.sortDirection;if(_6==null)_6=this.$45g;if(this.isLeaf(_1)){if(_1==this.root)return[];return null}
var _9=[];if(_2!=isc.Tree.LEAVES_ONLY&&(_1!=this.root||this.showRoot)){_9[_9.length]=_1}
if(!_7&&!this.isOpen(_1)||this.hideLoadingNodes&&this.isLoading(_1)){return _9}
var _10=this.getChildren(_1,isc.Tree.FOLDERS_AND_LEAVES,_3,_4,_5,_6,false,false,_8);var _11=(isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():null),_12=(isc.ResultSet!=null&&isc.isA.ResultSet(_10)?_10.$121l():_10.getLength());for(var i=0;i<_12;++i){var _14=_10.getCachedRow(i);if(_14==null||_14==_11){continue}
var _15=_14[this.childrenProperty];if(_15&&!_15.isEmpty()){_9=_9.concat(this.getOpenList(_14,_2,_3,_4,_5,_6,_7,_8))}else{if(_2!=isc.Tree.FOLDERS_ONLY){_9[_9.length]=_14}}}
return _9},isc.A.$110o=function isc_Tree__getOpenListAsync(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12){var _13=_1,_14=false,_15,_16,_17,i,_19;if(_12==null){if(!_1)_13=_1=this.root;if(_3==null)_3=this.$27i;if(_4==null)_4=this.sortDirection;if(_6==null)_6=this.$45g;_15=[];if(this.isLeaf(_1)){var _20=(_1==this.root?[]:null);_11.call(_8,_20);return}
_16=[];_17=[];_12={list:_15,node:_1,indexStack:_16,childrenStack:_17}}else{_15=_12.list;_1=_12.node;_16=_12.indexStack;_17=_12.childrenStack;i=_16.last();_19=_17.last()}
for(var _21=0;!_14&&_21<_10;++_21){if(_1!=null){if(this.isLeaf(_1)){_1=null;continue}
if(_2!=isc.Tree.LEAVES_ONLY&&(_1!=this.root||this.showRoot)){_15[_15.length]=_1}
if(!_7&&!this.isOpen(_1)){_1=null;continue}
i=0;_19=this.getChildren(_1,_2,_3,_4,_5,_6);_16.push(i);_17.push(_19)}
_1=null;var _22=false,_23=(isc.isA.ResultSet(_19)?_19.$121l():_19.getLength());for(;!_22&&i<_23&&_21<_10;++i){var _24=_19.getCachedRow(i);if(_24==null){continue}
var _25=_24[this.childrenProperty];if(_25&&!_25.isEmpty()){_22=true;_1=_12.node=_24;continue}else{if(_2!=isc.Tree.FOLDERS_ONLY){_15[_15.length]=_24}
++_21}}
_16[_16.length-1]=i;if(!_22&&i>=_23){if(_16.length>1){_16.pop();_17.pop();i=_16.last();_19=_17.last()}else{_14=true}}}
if(_14){_11.call(_8,_15)}else{_12.node=_1;_8[_9]=this.delayCall("$110o",[_13,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12],0)}},isc.A.$27l=function isc_Tree__getOpenList(){if(!this.$27m||!this.cacheOpenList){this.$27m=this.getOpenList(this.root,this.openDisplayNodeType,this.$27i,this.sortDirection,this.openListCriteria)}
return this.$27m},isc.A.getNodeList=function isc_Tree_getNodeList(_1,_2){if(_1&&(_2!=true||(this.$27m&&this.cacheOpenList))){return this.$27l()}else if(_2){return this.getOpenList(this.root,this.openDisplayNodeType,null,null,this.openListCriteria,null,(_1!=true),_2)}else if(!this.$737||!this.cacheAllList){this.$737=this.getAllNodes(this.root)}
return this.$737},isc.A.$110q=function isc_Tree__getNodeListAsync(_1,_2,_3,_4){if(!this.$737||!this.cacheAllList){var _5=this;this.$110r(this.root,_1,_2,_3,function(_6){_5.$737=_6;_4.call(_1,_6)})}else{return this.$737}},isc.A.getAllNodes=function isc_Tree_getAllNodes(_1){return this.getOpenList(_1,null,null,null,null,null,true)},isc.A.$110r=function isc_Tree__getAllNodesAsync(_1,_2,_3,_4,_5){this.$110o(_1,null,null,null,null,null,true,_2,_3,_4,_5)},isc.A.getLength=function isc_Tree_getLength(){var _1=(this.root[this.$111w]-(!this.showRoot&&this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY?1:0));return _1},isc.A.$110s=function isc_Tree__getLengthAsync(_1,_2,_3,_4){_4.call(_1,this.getLength())},isc.A.get=function isc_Tree_get(_1){return this.$27l()[_1]},isc.A.getCachedRow=function isc_Tree_getCachedRow(_1){return this.get(_1)},isc.A.getRange=function isc_Tree_getRange(_1,_2){if(!(0<=_1&&_1<_2))return[];return this.$27l().slice(_1,_2)},isc.A.indexOf=function isc_Tree_indexOf(_1,_2,_3){return this.$27l().indexOf(_1,_2,_3)},isc.A.lastIndexOf=function isc_Tree_lastIndexOf(_1,_2,_3){return this.$27l().lastIndexOf(_1,_2,_3)},isc.A.getAllItems=function isc_Tree_getAllItems(){return this.$27l()},isc.A.sortByProperty=function isc_Tree_sortByProperty(_1,_2,_3,_4){if(!_1&&this.separateFolders==false){if(this.sortProp)_1=this.sortProp;else _1=this.titleProperty}
if(!_2)_2=this.sortDirection;this.setSort([{property:_1,direction:(isc.isA.String(_2)?_2:(_2==true)?"ascending":"descending"),normalizer:_3,context:_4}])},isc.A.getSort=function isc_Tree_getSort(){return this.$73p},isc.A.isSubsetSortDirty=function isc_Tree_isSubsetSortDirty(_1){return this.$170l!=_1.$170l},isc.A.markSubsetSortDirty=function isc_Tree_markSubsetSortDirty(_1){delete _1.$170l},isc.A.markSubsetAsSorted=function isc_Tree_markSubsetAsSorted(_1){_1.$170l=this.$170l},isc.A.setSort=function isc_Tree_setSort(_1){this.$170l++;if(!_1||!_1.length){if(this.sortProp){var _2=this.sortDirection;_1=[{property:this.sortProp,direction:(isc.isA.String(_2)?_2:(_2==true)?"ascending":"descending")}]}}else{var _3=[];var _4=this.dataSource?isc.DS.getDataSource(this.dataSource):null;for(var i=0;i<_1.length;i++){var _6=_1[i];if(_6){if(_6.context&&!isc.isA.String(_6.context)){var _7,_8=_4?_4.getField(_6.property):null,_9=_6.context.getField(_6.property)||_8;var _10=_9&&_9.displayField;if(_10===_7)_10=_8&&_8.displayField;var _11=_9&&_9.sortByDisplayField;if(_11===_7)_11=_8&&_8.sortByDisplayField;if(_10&&(_11!=false)){var _12=(_9&&_9.optionDataSource)||(_8&&_8.optionDataSource);if(_12){_12=isc.DataSource.getDataSource(_9.optionDataSource)}
if(!_12||_12==isc.DataSource.getDataSource(this.dataSource)){this.logInfo("Field:"+_9.name+" has displayField:"+_10+" (with optionDataSource:"+_12+"). Sorting by displayField. Set field.sortByDisplayField to false to disable this.","sorting");_6.owningField=_6.property;if(!_6.sortByField){_6.property=_9.displayField}else{_6.sortByProperty=_9.displayField}}}}
_3.add(isc.addProperties({},_6))}}
_1=_3}
this.$73p=_1;this.$736(true);this.$27n();this.$45g=_1&&_1.length>0?_1[0].context:null;this.dataChanged()},isc.A.$27n=function isc_Tree__makeOpenNormalizer(){var _1=this,_2=this.separateFolders!=false,_3=this.$73p,_4=this.titleProperty;var _5,_6;if(this.sortFoldersBeforeLeaves){_5="0:";_6="1:"}else{_5="1:";_6="0:"}
_3.removeEmpty();if(_3.isEmpty()){this.$27i=isc.Class.NO_OP;return}
var _7=_3.getProperty("property");if((!_2||_7.length>1||!!_7[0])&&!_7.contains(_4))
{_7.add(_4)}
this.$27i=function(_19,_20){if(_1==null||_1.destroyed){_1=null;return}
var _8="";if(_2){_8+=(_1.isFolder(_19)?_5:_6)}
for(var i=0;i<_7.length;++i){var _10=_7[i];if(!_10)continue;var _11=_10==_4;var _12=_11?_1.getTitle(_19):_19[_10];if(_12==null)continue;if(isc.isA.Number(_12)){if(_12>0){_12="1"+_12.stringify(12,true)}else{_12=999999999999+_12;_12="0"+_12.stringify(12,true)}}else if(isc.isA.Date(_12)){_12=_12.getTime()}
if(_11){_8+=String(_12).toLowerCase()+":"}else{_8+=_12+":"}}
return _8};if(isc.Browser.isFirefox){this.$135d=function(_19,_20){if(_19==null||_20==null){return Array.compareAscending(_19,_20)}
var m=_19.length,n=_20.length;if(m==0||n==0){return Array.compareAscending(_19,_20)}
var i=0,j=_19.indexOf(":",i),k=0,l=_20.indexOf(":",k);if(j==-1)j=m;if(l==-1)l=n;for(;;){var _18=Array.compareAscending(_19.substring(i,j),_20.substring(k,l));if(_18!=0){return _18}else{i=j+1;k=l+1;if(i>=m){if(k>=n){return 0}else{return-1}}else if(k>=n){return 1}else{j=_19.indexOf(":",i);l=_20.indexOf(":",k);if(j==-1)j=m;if(l==-1)l=n}}}};this.$135e=function(_19,_20){if(_19==null||_20==null){return Array.compareDescending(_19,_20)}
var m=_19.length,n=_20.length;if(m==0||n==0){return Array.compareDescending(_19,_20)}
var i=0,j=_19.indexOf(":",i),k=0,l=_20.indexOf(":",k);if(j==-1)j=m;if(l==-1)l=n;for(;;){var _18=Array.compareDescending(_19.substring(i,j),_20.substring(k,l));if(_18!=0){return _18}else{i=j+1;k=l+1;if(i>=m){if(k>=n){return 0}else{return 1}}else if(k>=n){return-1}else{j=_19.indexOf(":",i);l=_20.indexOf(":",k);if(j==-1)j=m;if(l==-1)l=n}}}}}
return},isc.A.loadSubtree=function isc_Tree_loadSubtree(_1,_2,_3){if(!_1)_1=this.getRoot();if(_2==null)_2=this.loadBatchSize;this.$27o=_3?2:1;var _4=0,_5=1;while(_4<_2){var _6=this.$27p(_2,_1,_4,_5++);if(_6==0)break;_4+=_6}
this.$27o=null;if(_4>0)this.$736(true)},isc.A.loadingBatch=function isc_Tree_loadingBatch(_1){if(_1)return this.$27o==2;else return this.$27o},isc.A.$27p=function isc_Tree__loadToDepth(_1,_2,_3,_4){var _5=0;if(!this.isOpen(_2)){if(!this.isLoaded(_2))this.loadChildren(_2);if(this.isLoaded(_2)){if(this.openFolder(_2)===false)return _5}
var _6=_2[this.childrenProperty];if(_6){var _7=(isc.isA.ResultSet(_6)?_6.$121l():_6.getLength());_5+=_7;_3+=_7}}
var _8=_2[this.childrenProperty];if(_3>=_1||_4==0||_8==null)return _5;var _9=(isc.isA.ResultSet(_8)?_8.$121l():_8.getLength());for(var i=0;i<_9;++i){var _11=_8.getCachedRow(i);if(_11!=null){var _12=this.$27p(_1,_11,_3,_4-1);_5+=_12;_3+=_12;if(_3>=_1)return _5}}
return _5},isc.A.getFilteredTree=function isc_Tree_getFilteredTree(_1,_2,_3,_4){_2=_2||isc.Tree.STRICT;var _3=this.dataSource||_3;if(!_3){isc.logWarn("Cannot apply filter to Tree without dataSource");return null}
var _5=this.duplicate(true,true);if(isc.ResultTree&&isc.isA.ResultTree(_5)&&_5.isPaged()){_5.setCriteria(isc.DataSource.combineCriteria(_1,_5.criteria))}
_5.$866(_1,_2,_3,_5.getRoot(),_4);return _5},isc.A.$866=function isc_Tree__filterChildren(_1,_2,_3,_4,_5){var _6=(_2==isc.Tree.STRICT),_7=!_6;var _8=_4[this.childrenProperty];if(_8==null||_8.isEmpty())return false;var _9=false;if(isc.isA.String(_3))_3=isc.DS.get(_3);var _10=isc.isA.ResultSet(_8);_6=_6||_10;var i=(_10?_8.$121l():_8.getLength());while(i--){var _12=_8.getCachedRow(i);if(_12!=null){var _13=false,_14=_12[this.childrenProperty];if(_7){if(_14!=null&&!_14.isEmpty()){_13=this.$866(_1,_2,_3,_12,_5)}
_9=_9||_13}
if(!_13||_6){var _15=_3.applyFilter([_12],_1,_5);if(_15!=null&&_15.length>0){_9=true;if(_6&&_14!=null&&!_14.isEmpty()){this.$866(_1,_2,_3,_12,_5)}}else{this.$786(_12,_4,_8,i)}}}}
return _9},isc.A.$1111=function isc_Tree__includeNodeLengthInParent(_1,_2){return this.isOpen(_2)},isc.A.$121c=function isc_Tree__isNodeVisibleToParent(_1,_2){if(!this.$1111(_1,_2)){return false}else{var _3=_1[this.childrenProperty],_4=this.isFolder(_1)&&(_3&&_3.length);return(this.openDisplayNodeType!=(_4?isc.Tree.LEAVES_ONLY:isc.Tree.FOLDERS_ONLY))}},isc.A.$111x=function isc_Tree__getNodeLengthToParent(_1,_2){if(this.$1111(_1,_2)){var _3=_1[this.$111w],_4=_1[this.childrenProperty],_5=this.isFolder(_1),_6=(_4&&_4.length);if(_5!=_6){_3+=(-(this.openDisplayNodeType!=(_5?isc.Tree.LEAVES_ONLY:isc.Tree.FOLDERS_ONLY)?1:0)+(this.openDisplayNodeType!=(_6?isc.Tree.LEAVES_ONLY:isc.Tree.FOLDERS_ONLY)?1:0))}
return _3}else{return 0}},isc.A.$1112=function isc_Tree__getNodeLength(_1){var _2=this.isFolder(_1),_3=_2&&this.isOpen(_1),_4=(this.openDisplayNodeType!=(_2?isc.Tree.LEAVES_ONLY:isc.Tree.FOLDERS_ONLY)?1:0);if(_3){var _5=this.getChildren(_1,this.openDisplayNodeType,null,this.sortDirection,this.openListCriteria,this.$45g,null,null,true),_6=(isc.ResultSet!=null?isc.ResultSet.getLoadingMarker():null),i=(isc.ResultSet!=null&&isc.isA.ResultSet(_5)?_5.$121l():_5.getLength());var _8=(isc.ResultTree!=null&&isc.isA.ResultTree(this)&&this.isPaged()),_9=_8;if(_8){var _10=(_1[this.canReturnOpenSubfoldersProperty]!=null?_1[this.canReturnOpenSubfoldersProperty]:this.canReturnOpenFolders),_11=(this.openDisplayNodeType==isc.Tree.FOLDERS_AND_LEAVES?1:0);_9=!(_10||_11==0)}
while(i--){var _12=_5.getCachedRow(i);if(_12!=null&&_12!=_6){_4+=this.$111x(_12,_1)}else if(_9){++_4}}}
return _4},isc.A.$111y=function isc_Tree__getDeltaLength(_1,_2,_3){if(_2!=_3){var _4=!_2,_5=!_3,_6=(-((_4&&this.openDisplayNodeType!=isc.Tree.FOLDERS_ONLY)||(_2&&this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY)?1:0)+((_5&&this.openDisplayNodeType!=isc.Tree.FOLDERS_ONLY)||(_3&&this.openDisplayNodeType!=isc.Tree.LEAVES_ONLY)?1:0));return _6}else{return 0}},isc.A.$111z=function isc_Tree__updateParentLengths(_1,_2){if(_2!=0){for(;;){_1[this.$111w]+=_2;var _3=((_1[this.$1200]||0)>0);if(!(_1==this.root||_3)){var _4=this.getParent(_1);if(this.$1111(_1,_4)){_1=_4;continue}}
break}}});isc.B._maxIndex=isc.C+146;isc.A=isc.Tree;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.findChildrenProperty=function isc_c_Tree_findChildrenProperty(_1,_2){if(!isc.isAn.Object(_1))return;if(!_2)_2="any";var _3=(_2=="any"),_4=(_2=="object"),_5=(_2=="array"),_6=(_2=="objectArray");for(var _7 in _1){var _8=_1[_7];if(isc.isAn.Object(_8)){if(_3)return _7;if(isc.isAn.Array(_8)){if(isc.isAn.Object(_8[0]))return _7;if(!_4&&!_6)return _7}else{if(_4)return _7}}}},isc.A.discoverTree=function isc_c_Tree_discoverTree(_1,_2,_3){if(!_2)_2={};var _4=_2.childrenMode||"any";var _5=_2.scanMode||"branch";var _6=_2.tieMode||"node";var _7=_2.newChildrenProperty||isc.Tree.getInstanceProperty("childrenProperty"),_8=_2.typeProperty||"nodeType",_9=_2.nameProperty||"name";if(!isc.isAn.Array(_1))_1=[_1];var _10;if(_5=="level"||_5=="branch"){var _11={};for(var i=0;i<_1.length;i++){var _13=_1[i],_14=null;if(_13.$72r)continue;_14=this.findChildrenProperty(_13,_4);if(_14==null)continue;_11[_14]=(_11[_14]||0);_11[_14]++}
var _15=isc.getValues(_11),_16=isc.getKeys(_11);if(_16.length==0){return}else if(_16.length==1){_10=_16[0]}else if(_6=="node"){}else if(_6=="stop"){return}else{var _17=_15.max(),_18=_15.indexOf(_17);_10=_16[_18]}}
var _19=[];for(var i=0;i<_1.length;i++){var _13=_1[i];var _20=_10;if(_13.$72r)continue;if(!_20){_20=this.findChildrenProperty(_13,_4)}
if(_20==null)continue;var _21=_13[_20];if(_21!=null&&!isc.isAn.Array(_21))_21=[_21];else if(_21==null)_21=[];_13[_7]=_21;for(var j=0;j<_21.length;j++){var _23=_21[j];if(isc.isA.String(_23)){_21[j]=_23={name:_23,$72r:true}}
_23[_8]=_20}
if(_5=="level"){_19.addAll(_21)}else{this.discoverTree(_21,_2,_20)}}
if(_5=="level"&&_19.length>0)this.discoverTree(_19,_2)},isc.A.getCleanNodeData=function isc_c_Tree_getCleanNodeData(_1,_2,_3,_4,_5){if(_1==null)return null;var _6=[],_7=false;if(!isc.isAn.Array(_1)){_1=[_1];_7=true}
for(var i=0;i<_1.length;i++){var _9=_1[i],_10={};if(_5==null){var _11=_9.$42c;if(_11)_5=window[_11]}
for(var _12 in _9){if((_5!=null&&_12==_5.parentProperty)||(!_4&&_12=="$27g")||_12=="$42c"||_12=="__ref"||_12=="__module"||_12.startsWith("_isOpen_")||_12.startsWith("_isFolder_")||_12.startsWith("$399")||_12=="$40a"||_12=="_autoAssignedName"||_12.startsWith("_parent_")||_12.startsWith("_selection_")||_12.startsWith("_groupTree_")||(_2==false&&_5&&_12==_5.childrenProperty)||_12.startsWith("_cachedLength_")||_12.startsWith("_recursionCount_")||_12.startsWith("_visibleDescendantsCached_")||_12.startsWith("_initialLoadingState_")||_12.startsWith("_initialLoadingFetchCount_"))
{continue}
_10[_12]=_9[_12];if(_3&&_5&&_12==_5.childrenProperty&&isc.isAn.Array(_10[_12]))
{_10[_12]=isc.Tree.getCleanNodeData(_10[_12],_2,_3,_4,_5)}}
_6.add(_10)}
if(_7)return _6[0];return _6});isc.B._maxIndex=isc.C+3;isc.A=isc.Class.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.getSGWTInstance=function isc_Class_getSGWTInstance(){return this[isc.gwtRef]},isc.A.getSGWTModule=function isc_Class_getSGWTModule(){return this[isc.gwtModule]},isc.A.getSGWTFactory=function isc_Class_getSGWTFactory(){var _1=this.getSGWTModule();if(!_1)return null;var _2=this.getSGWTInstance();if(!_2)return null;return _1.getSGWTFactory(_2)},isc.A.getSGWTClassName=function isc_Class_getSGWTClassName(){var _1=this.getSGWTFactory();return _1?_1.getClassName():null},isc.A.setSGWTProperties=function isc_Class_setSGWTProperties(_1){var _2=this.getSGWTFactory();if(_2){_2.setSGWTProperties(this.getSGWTInstance(),_1)}else{this.setProperties(_1)}},isc.A.getSGWTAttributes=function isc_Class_getSGWTAttributes(){var _1=this.getSGWTFactory();if(_1){return _1.getSGWTAttributes()}else{var _2=[];for(var _3 in this){if(typeof this[_3]=="function")continue;if(_3.charAt(0)=="_")continue;if(_3==_3.toUpperCase())continue;_2[_2.length]=_3}
return _2}},isc.A.getSGWTProperty=function isc_Class_getSGWTProperty(_1){var _2=this.getSGWTModule();if(_2){return _2.getProperty(this.getSGWTInstance(),_1)}else{return this.getProperty(_1)}},isc.A.getSGWTPropertyAsString=function isc_Class_getSGWTPropertyAsString(_1){var _2=this.getSGWTModule();if(_2){return _2.getPropertyAsString(this.getSGWTInstance(),_1)}else{var _3=this.getProperty(_1);return _3?_3.toString():_3}});isc.B._maxIndex=isc.C+8;isc.defineClass("SGWTFactory");isc.A=isc.SGWTFactory;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.CONFIG_BLOCK="sgwtConfigBlock";isc.A.SC_INSTANCE="smartclientInstance";isc.A.BEAN_CLASS_PARTS="beanClassParts";isc.B.push(isc.A.getFactory=function isc_c_SGWTFactory_getFactory(_1){if(!_1)return null;var _2=isc[_1];if(_2&&isc.isA.SGWTFactoryObject(_2)){return _2}else{return null}},isc.A.extractFromConfigBlock=function isc_c_SGWTFactory_extractFromConfigBlock(_1){if(_1[isc.SGWTFactory.CONFIG_BLOCK]){return _1[isc.SGWTFactory.SC_INSTANCE]}else{return _1}});isc.B._maxIndex=isc.C+2;isc.A=isc.isA;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.SGWTFactoryObject=function isc_isA_SGWTFactoryObject(_1){return _1!=null&&_1.$1229==true});isc.B._maxIndex=isc.C+1;isc.A=isc.SGWTFactory.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$1229=true;isc.B.push(isc.A.getClassName=function isc_SGWTFactory_getClassName(){return this.beanClassName},isc.A.getSGWTClassName=function isc_SGWTFactory_getSGWTClassName(){return this.beanClassName},isc.A.getSuperClass=function isc_SGWTFactory_getSuperClass(){return this.$b8},isc.A.init=function isc_SGWTFactory_init(){this.Super("init",arguments);this.Class=this.beanClassName;this.isFrameworkClass=this.isSGWTFrameworkClass();if(!this.isFrameworkClass){var _1=this.getSGWTSuperClass();while(_1&&!_1.isFrameworkClass){_1=_1.getSGWTSuperClass()}
if(_1)this.$75y=_1.Class}
if(!this.$75y)this.$75y=this.Class;this.$b8=this.getSGWTSuperClass();isc.isA[this.beanClassName]=isc.ClassFactory.makeIsAFunc(this.beanClassName);if(this.isA("Canvas"))this._isA_Canvas=true},isc.A.registerClassName=function isc_SGWTFactory_registerClassName(){try{var _1=this;var _2=isc[this.beanClassName];if(_2){if(isc.isA.ClassObject(_2)){this.logWarn("beanClassName '"+this.beanClassName+"' collides with existing native SmartClient class with the same name. The bean will not be registered.");return}else if(isc.isA.SGWTFactoryObject(_2)){this.logWarn("beanClassName '"+this.beanClassName+"' has already been registered. The existing bean will be replaced.")}else{this.logWarn("beanClassName '"+this.beanClassName+"' collides with the ID of an existing object with value '"+this.echo(_2)+"'. The bean will not be registered.");return}}
var _3=this.beanClassName.split(".");if(_3.length>1){var _4=isc;var _5="isc";for(var i=0;i<_3.length-1;i++){var _7=_3[i]
var _2=_4[_7];_5=_5+"."+_7;if(_2){if(!_2[isc.SGWTFactory.BEAN_CLASS_PARTS]){this.logWarn("beanClassName '"+this.beanClassName+"' collides with existing object located at '"+_5+"' with value '"+this.echo(_2)+"'. The bean will not be registered.");return}}else{_4[_7]={};_4[_7][isc.SGWTFactory.BEAN_CLASS_PARTS]=true}
_4=_4[_7]}
var _8=_3[_3.length-1];_4[_8]=_1}
isc[this.beanClassName]=_1}
catch(e){this.logError(e.message)}},isc.A.create=function isc_SGWTFactory_create(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){if(isc.captureDefaults){var _14=isc.createLevel;isc.createLevel=isc.keepGlobals?(_14==null?1:_14+1):null;isc.captureDefaults=false;var _15={type:this.Class,defaults:isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13)}
delete _15.defaults._constructor;if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_15);if(_15.defaults.ID){isc.ClassFactory.addGlobalID(_15,_15.defaults.ID)}
isc.captureDefaults=true;isc.createLevel=_14;return _15}
var _16=isc.addProperties({},_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);delete _16._constructor;var _17=this.sgwtModule.newInstance(this.beanClassName,_16);return this.getOrCreateJsObj(_17)},isc.A.createRaw=function isc_SGWTFactory_createRaw(){var _1=this;var _2={getClass:function(){return isc[_1.beanClassName]},init:function(_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17){isc.addProperties(this,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17);delete(this.init);delete(this.completeCreation);delete(this.getClass);delete(this[isc.SGWTFactory.CONFIG_BLOCK]);if(this[isc.gwtRef]===null)delete this[isc.gwtRef];if(isc.captureDefaults){var _3=isc.createLevel;isc.createLevel=isc.keepGlobals?(_3==null?1:_3+1):null;isc.captureDefaults=false;var _4={type:_1.beanClassName,defaults:isc.addProperties({},this)}
if(!isc.capturedComponents)isc.capturedComponents=[];isc.capturedComponents.add(_4);if(_4.defaults.ID){isc.ClassFactory.addGlobalID(_4,_4.defaults.ID)}
this[isc.SGWTFactory.SC_INSTANCE]=_4;this[isc.SGWTFactory.CONFIG_BLOCK]=true;isc.captureDefaults=true;isc.createLevel=_3;return}
this[isc.SGWTFactory.SC_INSTANCE]=_1.create(this);this[isc.SGWTFactory.CONFIG_BLOCK]=true},completeCreation:function(_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17){this.init(_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17);return this[isc.SGWTFactory.SC_INSTANCE]}}
_2[isc.SGWTFactory.CONFIG_BLOCK]=true;return _2},isc.A.setSGWTProperties=function isc_SGWTFactory_setSGWTProperties(_1,_2){if(_2){if(isc.isA.String(_2)){if(!(isc.startsWith(_2,'(')&&isc.endsWith(_2,')'))){_2='('+_2+')'}
_2=isc.Class.evaluate(_2)}
for(var _3 in _2){this.sgwtModule.setProperty(_1,_3,_2[_3])}}},isc.A.getSGWTAttributes=function isc_SGWTFactory_getSGWTAttributes(){return this.sgwtModule.getAttributes(this.beanClassName)},isc.A.getSGWTProperty=function isc_SGWTFactory_getSGWTProperty(_1,_2){return this.sgwtModule.getProperty(_1,_2)},isc.A.getSGWTPropertyAsString=function isc_SGWTFactory_getSGWTPropertyAsString(_1,_2){return this.sgwtModule.getPropertyAsString(_1,_2)},isc.A.getOrCreateJsObj=function isc_SGWTFactory_getOrCreateJsObj(_1){return this.sgwtModule.getOrCreateJsObj(_1)},isc.A.setJsObj=function isc_SGWTFactory_setJsObj(_1,_2){this.sgwtModule.setJsObj(_1,_2)},isc.A.getSGWTSuperClass=function isc_SGWTFactory_getSGWTSuperClass(){return this.sgwtModule.getSGWTSuperClass(this)},isc.A.isSGWTFrameworkClass=function isc_SGWTFactory_isSGWTFrameworkClass(){return this.sgwtModule.isSGWTFrameworkClass(this)},isc.A.getDefaultScClassName=function isc_SGWTFactory_getDefaultScClassName(){return this.sgwtModule.getDefaultScClassName(this)},isc.A.getDefaultScClass=function isc_SGWTFactory_getDefaultScClass(){return isc.ClassFactory.getClass(this.getDefaultScClassName())},isc.A.isA=function isc_SGWTFactory_isA(_1){if(_1==null)return false;var _2=this.getDefaultScClass();if(_2&&_2.isA(_1))return true;if(!isc.isA.String(_1)){if(_1.getSGWTClassName)_1=_1.getSGWTClassName();if(!isc.isA.String(_1))return false}
if(isc.startsWith(_1,isc.ClassFactory.$f)){_1=_1.substring(4)}
var _3=this;while(_3){if(_3.beanClassName==_1)return true;_3=_3.getSGWTSuperClass()}
return false});isc.B._maxIndex=isc.C+18;isc.A=isc.SGWTFactory.getPrototype();isc.A.newInstance=isc.SGWTFactory.getInstanceProperty("create");isc.defineClass("TabIndexManager");isc.A=isc.TabIndexManager;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$179y={};isc.A.$179z={};isc.A.$1790={isNullMarker:true};isc.B.push(isc.A.$1791=function isc_c_TabIndexManager__buildTree(){this.$1792=isc.Tree.create({modelType:"parent",idField:"nodeID",parentIdField:"parentID",openProperty:"isOpen"})},isc.A.$1793=function isc_c_TabIndexManager__addToTree(_1,_2,_3){if(_1==null)return;var _4={nodeID:_1,isOpen:true};var _5;if(_2){_5=this.$21s(_2)}
if(_5==null)_5=this.$1792.getRoot();this.$1792.add(_4,_5,_3)},isc.A.$21s=function isc_c_TabIndexManager__getNode(_1){var _2=this.$1792.findById(_1);return _2},isc.A.$1794=function isc_c_TabIndexManager__removeFromTree(_1){var _2=this.$21s(_1);if(_2!=null)this.$1792.remove(_2)},isc.A.$1795=function isc_c_TabIndexManager__moveInTree(_1,_2,_3){if(!isc.isAn.Array(_1))_1=[_1];var _4;if(_2){_4=this.$21s(_2)}
if(_4==null)_4=this.$1792.getRoot();var _5=this.$1792.getChildren(_4)||[];var _6=[],_7=true;for(var i=0;i<_1.length;i++){var _9=_6[i]=this.$21s(_1[i]);if(_6[i]==null){this.logWarn("Attempt to move unrecognized target ID:"+_1[i]);return false}
if(_5[i+_3]!=_9)_7=false}
if(!_7){this.$1792.moveList(_6,_4,_3)}
return!_7},isc.A.addTarget=function isc_c_TabIndexManager_addTarget(_1,_2,_3,_4,_5,_6){if(this.$21s(_1)==null){this.$1793(_1,_3,_4)}else{this.logWarn("addTarget called with already registered ID '"+_1+"'. The existing entry will be moved to the specified position and have its callbacks updated.");if(this.logIsDebugEnabled()){this.logDebug("Stack trace:"+this.getStackTrace())}
this.$1795(_1,_3,_4)}
this.$21s(_1).canFocus=!!_2;this.logDebug("addTarget("+_1+") - update callback:"+this.echo(_5)+", shiftFocus callback:"+this.echo(_6));this.$179y[_1]={tabIndexUpdatedCallback:_5,shiftFocusCallback:_6};if(this.logIsDebugEnabled("TabIndexManagerFullTree")){this.logDebug("Tab chain after 'addTarget':\n"+this.getAllocatedTabChain(),"TabIndexManagerFullTree")}},isc.A.hasTarget=function isc_c_TabIndexManager_hasTarget(_1){return this.$21s(_1)!=null},isc.A.moveTarget=function isc_c_TabIndexManager_moveTarget(_1,_2,_3){this.moveTargets([_1],_2,_3)},isc.A.moveTargets=function isc_c_TabIndexManager_moveTargets(_1,_2,_3){var _4=this.$1795(_1,_2,_3);this.logDebug("moveTarget called - slotting "+_1+" under "+_2+" in position:"+_3+(_4?". Tab Order tree was affected.":". Tab Order tree was not affected."));if(!_4){return}
var _5=[];for(var i=0;i<_1.length;i++){var _7=_1[i];var _8=this.$21s(_7);var _9=this.$1792.getDescendants(_8);if(_8.canFocus&&_8.tabIndex!=null){_8.tabIndex=null;_5.add(_8)}
for(var _10=0;_10<_9.length;_10++){if(_9[_10].canFocus&&_9[_10].tabIndex!=null){_9[_10].tabIndex=null;_5.add(_9[_10])}}}
if(_5.length>0){this.logDebug("Moving node:"+_7+" will impact the tab index of:"+_5.length+" targets")}
for(var _10=0;_10<_5.length;_10++){var _7=_5[_10].nodeID;if(this.$179z[_7])continue;var _11=this.$179y[_7].tabIndexUpdatedCallback;if(_11!=null){this.fireCallback(_11,"ID",[_7])}}
if(this.logIsDebugEnabled("TabIndexManagerFullTree")){this.logDebug("Tab chain after 'moveTargets':\n"+this.getAllocatedTabChain(),"TabIndexManagerFullTree")}},isc.A.suppressCallbacks=function isc_c_TabIndexManager_suppressCallbacks(_1){for(var i=0;i<_1.length;i++){this.$179z[_1[i]]=true}},isc.A.resumeCallbacks=function isc_c_TabIndexManager_resumeCallbacks(_1){for(var i=0;i<_1.length;i++){delete this.$179z[_1[i]]}},isc.A.removeTarget=function isc_c_TabIndexManager_removeTarget(_1){this.$1794(_1);this.$179y[_1]=null},isc.A.getTree=function isc_c_TabIndexManager_getTree(){return this.$1792},isc.A.getParent=function isc_c_TabIndexManager_getParent(_1){var _2=this.$1792.getParent(this.$21s(_1));if(_2==this.$1792.getRoot())return null;return _2.nodeID},isc.A.setCanFocus=function isc_c_TabIndexManager_setCanFocus(_1,_2){var _3=this.$21s(_1);if(_3){if(_3.canFocus==_2)return;_3.canFocus=_2;var _4=_3.tabIndex;if(_2&&_4!=null){var _5=this.$1796(_3,true,true),_6=this.$1796(_3,false,true);if((_5&&_5.tabIndex<=_4)||(_6&&_6.tabIndex>=_4))
{this.logInfo("setCanFocus(true): tab index will change for target "+_1);_3.tabIndex=null}}}},isc.A.getTabIndex=function isc_c_TabIndexManager_getTabIndex(_1){var _2=this.$21s(_1);if(_2==null){this.logWarn("getTabIndex() - no registered target with ID:"+_1);return null}
if(_2.canFocus==false){this.logDebug("getTabIndex() on canFocus:false node "+_1+" will return -1");return-1}
if(_2.tabIndex!=null)return _2.tabIndex;this.calculateTabIndex(_2);return _2.tabIndex},isc.A.calculateTabIndex=function isc_c_TabIndexManager_calculateTabIndex(_1,_2){var _3=_1.nodeID;var _4=this.logIsDebugEnabled();var _5=this.logIsDebugEnabled("TabIndexManagerPerformance");if(_4)this.logDebug("Calculating tabIndex for node:"+_3);var _6;if(_5)_6=isc.timeStamp();if(_2){this.logInfo("Refreshing all tab indices."+(_5?"":"Enable debug logging on  'TabIndexManagerPerformance' category for timings."))}
var _7=isc.Canvas.TAB_INDEX_FLOOR,_8=isc.Canvas.TAB_INDEX_CEILING,_9=[],_10=[],_11=this.$1792.getParent(_1),_12=this.$1792.getChildren(_11),_13=_12.indexOf(_1);var _14=this.$1792.indexOf(_1),_15=_14;while(_15>0){_15--;var _16=this.$1792.get(_15);if(_16.canFocus){if(!_2&&_16.tabIndex!=null){_7=_16.tabIndex;break}else{_9.add(_16)}}}
_15=_14;var _17;while(_15<this.$1792.getLength()-1){_15++;_17=this.$1792.get(_15);if(_17.canFocus){if(!_2&&_17.tabIndex!=null){_8=_17.tabIndex;break}else{_10.add(_17)}}}
var _18=_9.length+1+_10.length;if(_8<=_7){this.logWarn("Error in TabIndex management - out of order tab-indices detected");_8=_7+((_18+1)*10)}
var _19=Math.floor((_8-_7)/(_18+1));this.logDebug("Calculating requested TabIndex for "+_1.nodeID+(_2?". Discarding all prior indices and recalculating "+(_18-1)+" values. ":". Will also lazily assign "+(_18-1)+" unassigned tabIndex values. ")+" Slotting between "+[_7,_8]+" [This has enough space for a gap of "+_19+" between each entry - if zero we will reshuffle other nodes to make space]");var _20=false;var _21=[];if(_19<1){if(_2){if(!this.$1797){this.logWarn("TabIndex Manager has hit specified Canvas.TAB_INDEX_CEILING of "+isc.Canvas.TAB_INDEX_CEILING+". Some widgets may be assigned very large tab indices which can lead to unexpected browser behavior.");this.$1797=true}}
_20=true;var _19=Math.ceil(isc.Canvas.TAB_INDEX_GAP/3),_22=_7+(_19*_18);if(!_2){var _23=_22>=isc.Canvas.TAB_INDEX_CEILING;if(!_23){var _24=_17,_25=_22+_19;while(_24&&(_22<=_25))
{if(_25>=isc.Canvas.TAB_INDEX_CEILING){_23=true;break}
_21.add(_24);_24=this.$1796(_24,true);if(_24&&_24.tabIndex!=null){_22=_24.tabIndex}
_25+=_19}}
if(_23&&!_2){this.logInfo("TabIndex assignment logic for node:"+_1.nodeID+" requires additional space. Recalculating all tab-indices");this.calculateTabIndex(_1,true);return}else{this.logDebug("Shuffling "+_21.length+" entries forward to accomodate new tab-targets, ensuring a gap of "+_19+" between adjacent tabIndex values")}}}else{_19=Math.min(_19,isc.Canvas.TAB_INDEX_GAP)}
if(this.$1798){this.logWarn("Automated tab index assignment is being run recursively as a result of custom code in a registered tabIndexUpdated callback.")}
var _26=_7+_19;var _27=[];for(var i=_9.length-1;i>=0;i--){if(_4){this.logDebug("Lazily assigning tabIndex "+_26+" to preceding entry: "+_9[i].nodeID)}
if(_9[i].tabIndex!=null){_27.add(_9[i])}
_9[i].tabIndex=_26;_26+=_19}
if(_4){this.logDebug("Assigning requested tabIndex "+_26+" to "+_1.nodeID)}
if(_1.tabIndex!=null){_27.add(_1)}
_1.tabIndex=_26;_26+=_19;for(var i=0;i<_10.length;i++){if(_4){this.logDebug("Lazily assigning tabIndex "+_26+" to subsequent entry: "+_10[i].nodeID)}
if(_10[i].tabIndex!=null){_27.add(_10[i])}
_10[i].tabIndex=_26;_26+=_19}
if(_20){for(var i=0;i<_21.length;i++){var _17=_21[i];var _29=_17.tabIndex!=null;if(_4){this.logDebug("Creating space by shifting tab index forward for node:"+_17.nodeID+" from "+_17.tabIndex+" to "+_26)}
_17.tabIndex=_26;if(_29)_27.add(_17);_26+=_19}}
this.$1798=true;var _30;if(_5)_30=isc.timeStamp();for(var i=0;i<_27.length;i++){var _31=this.$179y[_27[i].nodeID].tabIndexUpdatedCallback;if(_31!=null){this.fireCallback(_31,"ID",[_27[i].nodeID])}}
delete this.$1798;if(_5){var _32=isc.timeStamp();var _33=(_32-_6),_34=(_32-_30);if(_2){var _32=isc.timeStamp();var _33=(_32-_6),_34=(_32-_30);if(this.$1799==null){this.$1799=[_33,_34]}else{this.$1799[0]+=_33;this.$1799[1]+=_34}
this.logDebug("Time to recalculate all tab indices "+_33+"ms. Includes "+_34+"ms firing tabIndexUpdated notifications for "+_27.length+" entries. Cumulative time:"+this.$1799[0]+" [includes cumulative callbacks time:"+this.$1799[1]+"]","TabIndexManagerPerformance")}else{if(this.$180a==null){this.$180a=[_33,_34]}else{this.$180a[0]+=_33;this.$180a[1]+=_34}
if(this.logIsDebugEnabled()){this.logDebug("Time to calculate tab index for node:"+_3+", and related nodes: "+_33+"ms. Includes "+_34+"ms firing tabIndexUpdated notifications for "+_27.length+" entries. Cumulative time:"+this.$180a[0]+" [includes cumulative callbacks time:"+this.$180a[1]+"]","TabIndexManagerPerformance")}}}},isc.A.focusInTarget=function isc_c_TabIndexManager_focusInTarget(_1){if(this.logIsDebugEnabled("syntheticTabIndexTrace")){this.logDebug("TabIndexManager.focusInTarget(): Stack Trace:\n"+this.getStackTrace(),"syntheticTabIndexTrace")}
var _2=this.$21s(_1);if(!_2||!_2.canFocus||this.$179y[_2.nodeID].shiftFocusCallback==null)
{this.logDebug("TabIndexManager.focusInTarget(): Not attempting to focus on target with ID:"+_1,"syntheticTabIndex");return false}
this.logDebug("TabIndexManager.focusInTarget(): Attempting to focus on target with ID:"+_1+", enable 'syntheticTabIndexTrace' debug logging for stack trace.","syntheticTabIndex");return this.fireCallback(this.$179y[_2.nodeID].shiftFocusCallback,"ID",[_1])},isc.A.shiftFocus=function isc_c_TabIndexManager_shiftFocus(_1,_2,_3,_4){var _5=(_4!=null)
if(_4==null){if(_1==null)_4=this.$1790;else{_4=_1}}
if(!_5&&this.logIsDebugEnabled("syntheticTabIndexTrace")){this.logDebug("Attempt to synthetically shift focus "+(_3?"(within group) ":"")+"from "+_1+"\n"+this.getStackTrace(),"syntheticTabIndexTrace")}
var _6;if(_1==null){if(_2){_6=this.$1792.get(0)}else{_6=this.$1792.get(this.$1792.getLength()-1)}
if(!_6.canFocus&&(_6.nodeID!=_4)){_6=this.$1796(_6,_2,null,_4)}}else{var _7=_1;if(!isc.isAn.Object(_7)){_7=this.$21s(_1)}
_6=this.$1796(_7,_2,null,_4)}
if(_3!=null){var _8=_3;if(!isc.isAn.Object(_3)){_3=this.$21s(_3);if(_3==null){this.logWarn("shiftFocus() [within group]: Unexpected tree structure detected in TabIndexManager. Tabbing behavior cannot be guaranteed within this app."+(this.logIsInfoEnabled()?"\n"+this.getStackTrace():""));return}}
if(_6==null||(_6!=null&&(_6.nodeID!=_3.nodeID&&!this.$1792.isDescendantOf(_6,_3))))
{this.logInfo("shiftFocusWithinGroup(): Unable to find a subsequent focusable element within group - focus will not be moved.","syntheticTabIndex");return false}}
if((_6==null&&(_4==this.$1790))||(_6!=null&&(_4==_6.nodeID)))
{this.logInfo("shiftFocus(), passed ID:"+(_4==this.$1790?"null":_4)+" unable to find subsequent focusable target","syntheticTabIndex");return false}
var _9=_6&&this.$179y[_6.nodeID].shiftFocusCallback,_10=false;if(this.logIsDebugEnabled("syntheticTabIndex")){this.logDebug("TabIndexManager.shiftFocus(), "+(_6?("checking for node with ID:"+_6.nodeID):("found no subsequent focusable entry, looping back to check entries from the start of the chain"))+", enable 'syntheticTabIndexTrace' debug logging for stack trace.","syntheticTabIndex")}
if(_9!=null){_10=this.fireCallback(_9,"ID",[_6.nodeID])}
if(!_10){return this.shiftFocus(_6,_2,_3,_4)}else{this.logInfo("shiftFocus(): Put focus into target with ID:"+_6.nodeID,"syntheticTabIndex");return true}},isc.A.shiftFocusWithinGroup=function isc_c_TabIndexManager_shiftFocusWithinGroup(_1,_2,_3){if(_2==null){if(_3)_2=_1;else _2=this.getLastFocusTargetInGroup(_1)||_1;if(this.focusInTarget(_2))return true}
return this.shiftFocus(_2,_3,_1)},isc.A.shiftFocusAfterGroup=function isc_c_TabIndexManager_shiftFocusAfterGroup(_1,_2){var _3=_2?this.getLastFocusTargetInGroup(_1)||_1:_1;return this.shiftFocus(_3,_2)},isc.A.$1796=function isc_c_TabIndexManager__getNextCanFocusNode(_1,_2,_3,_4){var _5=this.$1792.indexOf(_1);var _6=_2?this.$1792.getLength()-1:0,_7=_2?1:-1;while(_5!=_6){_5+=_7;var _8=this.$1792.get(_5);if(_8.nodeID==_4){return _8}
if(_8&&_8.canFocus&&(!_3||(_8.tabIndex!=null)))
{return _8}}},isc.A.getNextFocusTarget=function isc_c_TabIndexManager_getNextFocusTarget(_1){var _2=this.$21s(_1),_3=this.$1796(_2,true);return _3?_3.nodeID:null},isc.A.getPreviousFocusTarget=function isc_c_TabIndexManager_getPreviousFocusTarget(_1){var _2=this.$21s(_1),_3=this.$1796(_2,false);return _3?_3.nodeID:null},isc.A.getLastFocusTargetInGroup=function isc_c_TabIndexManager_getLastFocusTargetInGroup(_1){var _2;if(_1){_2=this.$21s(_1)}
if(_2==null)_2=this.$1792.getRoot();var _3=this.$1792.getDescendants(_2);for(var i=_3.length-1;i>=0;i--){var _5=_3[i];if(_5.canFocus)return _5.nodeID}
if(_2.canFocus)return _2.nodeID},isc.A.showAllocatedTabChain=function isc_c_TabIndexManager_showAllocatedTabChain(){this.logWarn("Allocated tab chain:\n"+this.getAllocatedTabChain())},isc.A.getAllocatedTabChain=function isc_c_TabIndexManager_getAllocatedTabChain(){var _1=this.$1792.getDescendants();var _2=[];for(var i=0;i<_1.length;i++){var _4=_1[i];var _5=this.$1792.getLevel(_4),_6="";for(var _7=1;_7<_5;_7++){_6+="    "}
var _8=window[_4.nodeID],_9=_8&&isc.isA.Canvas(_8),_10=_8&&isc.isA.FormItem(_8);_2.add("*"+_6+_4.nodeID+" canFocus:"+_4.canFocus+" > "+(_9?((_8.isDrawn()?" [drawn":" [undrawn")+" Canvas]"):(_10?"["+(_8.name?"name:"+_8.name:"title:"+_8.title)+"]":""))+(_4.tabIndex==null?"unallocated":_4.tabIndex))}
return _2.join("\n")});isc.B._maxIndex=isc.C+27;isc.TabIndexManager.$1791();isc.ClassFactory.defineClass("Page");isc.A=isc.Page;isc.A.$hi=[];isc.A.$hj=false;isc.A.defaultUnsupportedBrowserURL="[SKIN]/unsupported_browser.html";isc.A.$hk={};isc.A.protocolURLs=window.isc_protocolURLs||["http://","https://","file://","mailto:","app-resource:","data:"];isc.A.textDirection=null;isc.A.LTR="ltr";isc.A.RTL="rtl";isc.A.$148v=true;isc.A=isc.Page;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$hm="[SKIN]";isc.A.$hn="[SKIN]/";isc.A.$ho="[";isc.A.$hp="./";isc.A.$hq="..";isc.A.$880="body";isc.A.$55w="html";isc.A.$942="direction";isc.A.leaveScrollbarGap=isc.Browser.isMoz&&isc.Browser.geckoVersion<20051107;isc.A.getWidth=(isc.Browser.isNS?function(_1,_2){if(!_1)_1=window;_2=_2||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080529);if(isc.Browser.isMoz&&_1==window&&!_2){if(this.width!=null){return this.width-(this.leaveScrollbarGap?(isc.Element?isc.Element.getNativeScrollbarSize():16):0)}
this.logInfo("NOTE: isc.Page.getWidth() unable to determine page width.  Returning 500","sizing");return 500}else{var _3=isc.Browser.geckoVersion!=null&&isc.Browser.geckoVersion<20051111;var _4=!isc.Browser.isAndroid&&!this.leaveScrollbarGap&&!_3&&_1.document.body!=null,_5;if(_4){var _6=isc.Browser.isStrict?_1.document.documentElement:_1.document.body;if(_6!=null)_5=_6.clientWidth}
if(_5==null||_5==0){_5=_1.innerWidth}
if(_1==window)this.width=_5;return _5}}:function(_1){if(!_1)_1=window;var _2=_1.document.body;if(isc.Browser.isStrict&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=9.5))
_2=_1.document.documentElement;if(_2){return _2.clientWidth}else{if(!isc.Page.isLoaded()){isc.Page.setEvent("load","isc.EH.$hr()",isc.Page.FIRE_ONCE)}
this.logWarn("NOTE: isc.Page.getWidth() called before <BODY> tag was written out -- value cannot be determined.  Returning 500");return 500}});isc.A.getHeight=(isc.Browser.isNS?function(_1,_2){if(!_1)_1=window;_2=_2||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080529);if(isc.Browser.isMoz&&_1==window&&!_2){if(this.height!=null)return this.height;return 500}else{var _3=((!isc.Browser.isAndroid&&isc.Browser.isMobileWebkit)||(isc.Browser.geckoVersion==null||isc.Browser.geckoVersion>=20051111))&&_1.document.body!=null,_4;if(_3){_4=(isc.Browser.isStrict?_1.document.documentElement:_1.document.body).clientHeight}
if(_4==null||_4==0){_4=_1.innerHeight}
if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7){if(this.getOrientation()==="landscape"){var _5=this.$130f();_4=((692-20)/_5)<<0;document.body.style.height=_4+"px";document.documentElement.style.height=_4+"px"}else{document.body.style.height="";document.documentElement.style.height=""}}
if(isc.Browser.isTouch&&(isc.Browser.isAndroid||isc.Browser.isRIM)){if(this.$893==null){this.$893=_4;this.$26u=isc.Page.getWidth(_1,_2);this.$94e=this.getOrientation()}else{var _6=this.getOrientation();if(_4>this.$893||Math.abs(_4-this.$893)<=100||_6!=this.$94e)
{this.$94e=_6;this.$893=_4;this.$26u=isc.Page.getWidth(_1,_2)}else{_4=this.$893}}}
if(_1==window)this.height=_4;return _4}}:function(_1){if(!_1)_1=window;var _2=_1.document.body;if(isc.Browser.isStrict&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=9.5))
_2=_1.document.documentElement;if(_2){return _2.clientHeight}else{this.logWarn("NOTE: isc.Page.getHeight() called before <BODY> tag was written out -- value cannot be determined.  Returning 500");return 500}});isc.A.getScrollLeft=(isc.Browser.isNS?function(_1){var _2=window.pageXOffset;if(isc.Page.isRTL()&&!_1){_2=isc.Canvas.$92y(_2,isc.Page.getScrollWidth(),isc.Page.getWidth(),false,true,false)}
return _2}:function(_1){if(document==null||document.body==null)return 0;var _2=(isc.Browser.isStrict?document.documentElement.scrollLeft:document.body.scrollLeft);if(isc.Page.isRTL()){var _3=isc.Browser.isIE9&&isc.Browser.isStrict;var _4=(_3||_1)?isc.Page.getScrollWidth():null,_5=(_3||_1)?isc.Page.getWidth():null;if(_3){_2=isc.Canvas.$92y(_2,_4,_5,false,!_3,_3)}
if(_1){_2=isc.Canvas.$92y(_2,_4,_5,true,true)}}
return _2});isc.A.getScrollTop=(isc.Browser.isNS?function(){return window.pageYOffset}:function(){if(document==null||document.body==null)return 0;return(isc.Browser.isStrict?document.documentElement.scrollTop:document.body.scrollTop)});isc.A.unsupportedBrowserAction="continue";isc.B.push(isc.A.finishedLoading=function isc_c_Page_finishedLoading(){isc.Page.$hj=true;isc.Log.logInfo("isc.Page is loaded");isc.EH.startIdleTimer();if(isc.Browser.isSafari)isc.Canvas.clearCSSCaches();if(!window.suppressAutoLogWindow){var _1=isc.LogViewer.getLogCookie();if(_1!=null&&_1.keepOpen){isc.Timer.setTimeout("isc.Log.show(true)",1000)}}
if(isc.Time&&isc.Time.UTCHoursOffset!=null){isc.logWarn("This application includes code to set the Time.UTCHoursOffset attribute. This property will be respected but has been deprecated in favor of the classMethod isc.Time.setDefaultDisplayTimezone().");isc.Time.setDefaultDisplayTimezone(isc.Time.UTCHoursOffset.stringify()+":00")}
if(isc.Page.pollPageSize){isc.EH.$hr()}else{isc.EH.delayCall("$hr",[true],200)}
if(isc.Browser.isIE){isc.Class.evaluate("1",null,false,true)}},isc.A.isLoaded=function isc_c_Page_isLoaded(){return this.$hj},isc.A.getBlankFrameURL=function isc_c_Page_getBlankFrameURL(){if(isc.Browser.isIE&&("https:"==window.location.protocol||document.domain!=location.hostname)){return this.getURL("[HELPERS]empty.html")}
return"about:blank"},isc.A.setTitle=function isc_c_Page_setTitle(_1){document.title=_1},isc.A.setDirectories=function isc_c_Page_setDirectories(_1){if(_1==null){_1={imgDir:window.imgDir,isomorphicDir:(window.isomorphicDir?window.isomorphicDir:window.IsomorphicDir),isomorphicClientDir:window.isomorphicClientDir,isomorphicDocsDir:window.isomorphicDocsDir,skinDir:window.skinDir,helperDir:window.helperDir,toolsDir:window.isomorphicToolsDir}}
this.$hs();this.setIsomorphicDir(_1.isomorphicDir);this.setIsomorphicClientDir(_1.isomorphicClientDir);this.setIsomorphicDocsDir(_1.isomorphicDocsDir);this.setAppImgDir(_1.imgDir);this.setSkinDir(_1.skinDir);this.setHelperDir(_1.helperDir);this.setIsomorphicToolsDir(_1.isomorphicToolsDir)},isc.A.$hs=function isc_c_Page__deriveAppDir(){var _1=window.location.href;if(_1.contains("?"))_1=_1.substring(0,_1.indexOf("?"));if(_1.contains("#"))_1=_1.substring(0,_1.indexOf("#"));if(_1.charAt(_1.length-1)!="/"){_1=_1.substring(0,_1.lastIndexOf("/")+1)}
this.$hk.APP=_1;if(this.logIsInfoEnabled()){this.logInfo("app dir is "+this.$hk.APP)}
this.setAppImgDir()},isc.A.getAppDir=function isc_c_Page_getAppDir(){return this.$hk.APP},isc.A.setAppImgDir=function isc_c_Page_setAppImgDir(_1){this.$hk.APPIMG=this.combineURLs(this.getAppDir(),_1!=null?_1:"[APP]images/")},isc.A.getAppImgDir=function isc_c_Page_getAppImgDir(_1){if(_1!=null){if(isc.startsWith(_1,this.$ho))_1=this.getURL(_1);if(isc.startsWith(_1,isc.slash)||this.getProtocol(_1)!=isc.emptyString){return _1}
return this.$hk.APPIMG+_1}
return this.$hk.APPIMG},isc.A.setAppFilesDir=function isc_c_Page_setAppFilesDir(_1){this.$hk.APPFILES=this.combineURLs(this.getAppDir(),_1)},isc.A.getAppFilesDir=function isc_c_Page_getAppFilesDir(_1){return this.$hk.APPFILES},isc.A.setIsomorphicDir=function isc_c_Page_setIsomorphicDir(_1){this.$hk.ISOMORPHIC=this.combineURLs(this.getAppDir(),_1!=null?_1:"../isomorphic/");this.setIsomorphicClientDir();this.setIsomorphicDocsDir();if(!window.isomorphicToolsDir)this.setIsomorphicToolsDir()},isc.A.getIsomorphicDir=function isc_c_Page_getIsomorphicDir(){return this.$hk.ISOMORPHIC},isc.A.setIsomorphicToolsDir=function isc_c_Page_setIsomorphicToolsDir(_1){this.$hk.TOOLS=this.combineURLs(this.getIsomorphicDir(),_1!=null?_1:"../tools/")},isc.A.getIsomorphicToolsDir=function isc_c_Page_getIsomorphicToolsDir(){return this.$hk.TOOLS},isc.A.setSkinDir=function isc_c_Page_setSkinDir(_1){this.$hk.SKIN=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/skins/standard/");this.$hk.SKINIMG=this.$hk.SKIN+"images/";if(isc.Canvas)isc.Canvas.$ht=isc.Canvas.$hu=null},isc.A.getSkinDir=function isc_c_Page_getSkinDir(){return this.$hk.SKIN},isc.A.getSkin=function isc_c_Page_getSkin(){var _1=this.getSkinDir();var _2=_1;if(_2.endsWith("/"))_2=_2.substring(0,_2.length-1);var _3=_2.lastIndexOf("/");if(_3!=-1)_2=_2.substring(_3+1);return _2},isc.A.getSkinImgDir=function isc_c_Page_getSkinImgDir(_1){if(_1==null)return this.$hk.SKINIMG;return this.combineURLs(this.$hk.SKIN,_1)},isc.A.setIsomorphicClientDir=function isc_c_Page_setIsomorphicClientDir(_1){this.$hk.ISOMORPHIC_CLIENT=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/system/");this.setSkinDir();this.setHelperDir()},isc.A.getIsomorphicClientDir=function isc_c_Page_getIsomorphicClientDir(){return this.$hk.ISOMORPHIC_CLIENT},isc.A.setIsomorphicDocsDir=function isc_c_Page_setIsomorphicDocsDir(_1){this.$hk.ISOMORPHIC_DOCS=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC]/system/reference/");this.setIsomorphicDocsSkinDir()},isc.A.getIsomorphicDocsDir=function isc_c_Page_getIsomorphicDocsDir(){return this.$hk.ISOMORPHIC_DOCS},isc.A.setIsomorphicDocsSkinDir=function isc_c_Page_setIsomorphicDocsSkinDir(_1){this.$hk.ISO_DOCS_SKIN=this.combineURLs(this.getIsomorphicDocsDir(),_1!=null?_1:"skin/")},isc.A.getIsomorphicDocsSkinDir=function isc_c_Page_getIsomorphicDocsSkinDir(){return this.$hk.ISO_DOCS_SKIN},isc.A.setHelperDir=function isc_c_Page_setHelperDir(_1){this.$hk.HELPERS=this.combineURLs(this.getAppDir(),_1!=null?_1:"[ISOMORPHIC_CLIENT]/helpers/")},isc.A.getHelperDir=function isc_c_Page_getHelperDir(){return isc.Page.$hk.HELPERS},isc.A.$1624=function isc_c_Page__isRelativeURL(_1){return this.getProtocol(_1)==isc.$ad&&!isc.startsWith(_1,isc.slash)},isc.A.getImgURL=function isc_c_Page_getImgURL(_1,_2,_3){var _4;if(isc.startsWith(_1,this.$hm)){_4=isc.Page.getSkinImgDir(_2);var _5=isc.startsWith(_1,this.$hn)?7:6;_1=_1.substring(_5)}else{_4=_3?null:isc.Page.getAppImgDir(_2)}
return isc.Page.combineURLs(_4,_1)},isc.A.getURL=function isc_c_Page_getURL(_1){if(isc.startsWith(_1,this.$ho)){var _2=_1.indexOf("]");if(_2>0){var _3=_1.substring(1,_2).toUpperCase(),_4=isc.Page.$hk[_3];if(_4!=null){_1=isc.Page.combineURLs(_4,_1.substring(_2+(_1.charAt(_2+1)!="/"?1:2)))}else{this.logDebug("getURL("+_1+"): couldn't find cached directory "+_3)}}else{this.logDebug("getURL("+_1+"): didn't find matching ']' in URL")}}
return _1},isc.A.combineURLs=function isc_c_Page_combineURLs(_1,_2){if(!isc.isA.String(_2))return _1;if(isc.startsWith(_2,this.$ho)){return this.getURL(_2)}
var _3=isc.$ad;if(_1==null||_1==_3||isc.Page.getProtocol(_2)!=_3){return _2}
var _4=isc.slash;var _5=isc.Page.getProtocol(_1);if(isc.startsWith(_2,_4)){if(isc.isAn.emptyString(_5)){_1=isc.emptyString}else if(_1.indexOf(_4,_5.length)!=-1){_1=_1.substring(0,_1.indexOf(_4,_5.length))}}else if(_2.indexOf(this.$hp)>-1){_1=_1.substring(_5.length,_1.length-1);var _6=_1.split(_4),_7=_2.split(_4);var _8=_6[0];_6.shift();while(_7[0]==isc.dot||_7[0]==this.$hq){if(_7[0]==isc.dot){_7.shift();continue}
_7.shift();if(_6.length==0)break;_6.pop()}
_1=_5+_8+_4;if(_6.length>0)_1+=_6.join(_4)+_4;_2=_7.join(_4)}
return _1+_2},isc.A.getProtocol=function isc_c_Page_getProtocol(_1){for(var i=0;i<isc.Page.protocolURLs.length;i++){if(isc.startsWith(_1,isc.Page.protocolURLs[i]))return isc.Page.protocolURLs[i]}
return isc.$ad},isc.A.getLastSegment=function isc_c_Page_getLastSegment(_1){if(_1==null)return isc.emptyString;var _2=_1.lastIndexOf(isc.slash);if(_2==-1)return _1;return _1.substring(_2+1)},isc.A.isXHTML=function isc_c_Page_isXHTML(){if(this.$hv!=null)return this.$hv;if(isc.Browser.isIE)return false;var _1=this.getWindow();return(this.$hv=(this.getDocument().constructor==this.getWindow().XMLDocument))},isc.A.isRTL=function isc_c_Page_isRTL(){return this.getTextDirection()==isc.Canvas.RTL},isc.A.getTextDirection=function isc_c_Page_getTextDirection(){if(this.textDirection==null){var _1;var _2=document.getElementsByTagName(this.$880)[0]||document.getElementsByTagName(this.$55w)[0]
if(document.defaultView&&document.defaultView.getComputedStyle){var _3=document.defaultView.getComputedStyle(_2,isc.emptyString);_1=_3?_3.getPropertyValue(this.$942):null}else if(_2.currentStyle){_1=_2.currentStyle[this.$942]}
var _4;if(_1==null){_4=true;var _5=document.documentElement,_6=document.body;_1=(_6?_6.dir:null)||_5.dir}
if(_1==null||_1==isc.emptyString){_1=this.LTR}else{_1=_1.toLowerCase()}
if(!_4&&document.body!=null)this.textDirection=_1;return _1}
return this.textDirection},isc.A.loadStyleSheet=function isc_c_Page_loadStyleSheet(_1,_2,_3){var _4=isc.Page.getURL(_1);if(this.$148v&&_1.contains("/skin_styles.css")){var _5=isc.URIBuilder.create(_4);_5.setQueryParam("isc_version",isc.versionNumber);_4=_5.uri}
var _6="<link rel='stylesheet' type='text/css' href=\""+_4+"\"\/>";if(_2==null)_2=window;if(isc.Page.isLoaded()&&_2==window){if(isc.FileLoader){var _7=isc.FileLoader.$hw;if(_7!=null){for(var i=0;i<_7.length;i++){var _9=_7[i];if(!_9.startsWith("http")){_9=_7[i]=isc.Page.combineURLs(this.getAppDir(),_9)}
if(_4.indexOf(_9)!=-1){this.logDebug("CSS file "+_9+" already loaded by FileLoader - not loading again");return}}}
isc.FileLoader.loadCSSFile(_4,_3)}else{this.logWarn("isc.Page.loadStylesheet('"+_1+"') called after page load.  Stylesheet not loaded.")}}else{if(this.isXHTML()){var _10=this.getDocument(),_11=_10.documentElement.firstChild,_12=_10.createElementNS(_10.documentElement.namespaceURI,"link");_12.rel="stylesheet";_12.type="text/css";_12.href=_4;_11.appendChild(_12);this.logWarn("added stylesheet DOM style")}else{_2.document.write(_6)}}},isc.A.resizeTo=function isc_c_Page_resizeTo(_1,_2){window.resizeTo(_1,_2)},isc.A.moveTo=function isc_c_Page_moveTo(_1,_2){window.moveTo(_1,_2)},isc.A.scrollTo=function isc_c_Page_scrollTo(_1,_2){window.scroll(_1,_2)},isc.A.getBodyOverflow=function isc_c_Page_getBodyOverflow(){if(this.$943==null){var _1;var _2=document.body;if(_2&&_2.style){_1=_2.style.overflow}
this.$943=(_1==null||_1=="")?"auto":_1.toLowerCase()}
return this.$943},isc.A.getOrientation=function isc_c_Page_getOrientation(){var _1=this.getWidth();if(isc.EH!=null&&_1==isc.EH.$118t)return isc.EH.currentOrientation;var _2;if(isc.Browser.$162m){_2=String(window.screen.orientation.type).contains("portrait")}else if(isc.Browser.isIPhone||isc.Browser.isIPad){_2=window.orientation==0||window.orientation==180}else if("matchMedia"in window){var _3=window.matchMedia("(orientation: portrait)");_2=_3&&_3.matches}
if(_2==null){_2=this.getHeight()>=_1}
return _2?"portrait":"landscape"},isc.A.$130g=function isc_c_Page__getViewportTag(_1){var _2=document.head||document.getElementsByTagName("head")[0];if(_2==null){if(_1)return null;_2=document.createElement("head");var _3=document.body||document.getElementsByTagName("body")[0];_3.parentNode.insertBefore(_2,_3)}
var _4=_2.getElementsByTagName("meta"),_5=null;for(var i=0;i<_4.length;){if(_4[i].name=="viewport"){if(_5!=null){_5.parentNode.removeChild(_5);_5=_4[i-1]}else{_5=_4[i];++i}}else++i}
if(_5==null&&!_1){_5=document.createElement("meta");_5.name="viewport";_2.appendChild(_5)}
return _5},isc.A.$151x=function isc_c_Page__applyDefaultViewport(){if(window.isc_useDefaultViewport==false)return;var _1={};if(isc.Browser.$152d&&window.isc_useMinimalUI!=false){_1["minimal-ui"]=null;isc.Canvas.defaultPageSpace=(isc.Page.getOrientation()==="landscape"?20:0);window.addEventListener("orientationchange",function(){window.scrollTo(0,0);isc.Canvas.setDefaultPageSpace(isc.Page.getOrientation()==="landscape"?20:0)},true)}
this.updateViewport(1.0,"device-width",null,false,_1)},isc.A.$130h=function isc_c_Page__parseViewportOptions(_1){var _2={};if(isc.isA.String(_1)&&!isc.isAn.emptyString(_1)){var _3=_1.replace(/[\t\n\r ]+/g,"").split(/,|;/);for(var i=0,_5=_3.length;i<_5;++i){var _6=_3[i];var _7=_6.indexOf('=');if(_7<=0){_2[_6]=null}else{_2[_6.substring(0,_7).toLowerCase()]=_6.substring(_7+1)}}}
return _2},isc.A.updateViewport=function isc_c_Page_updateViewport(_1,_2,_3,_4,_5){var _6=this.$130g();var _7=isc.addProperties(this.$130h(_6.content),_5);if(_2==null)_2=_7["width"];if(_3==null)_3=_7["height"];if(_4==null)_4=_7["user-scalable"]!="no";if(_1!=null){if(isc.isA.Number(_1))_1=_1.toFixed(2);_7["initial-scale"]=_1}
if(_2!=null)_7["width"]=_2;if(_3!=null)_7["height"]=_3;if(_4!=null){_7["user-scalable"]=(_4==false?"no":"yes");if(_4==false&&_1!=null){_7["minimum-scale"]=_7["maximum-scale"]=_1}}
var _8=[];for(var _9 in _7){var _10=_7[_9];if(_10==null){_8.push(_9)}else{_8.push(_9+"="+_10)}}
_8=_8.join(", ");if(isc.Browser.isMobileFirefox){_6.insertAdjacentHTML("afterend","<meta name='viewport' content='"+String.asAttValue(_8)+"'>");var _11=_6;_6=_6.nextSibling;_11.parentNode.removeChild(_11)}else{_6.content=_8}},isc.A.$130f=function isc_c_Page__getPageZoom(){if(isc.Browser.isTouch){var _1;var _2=window.screen.width,_3=window.screen.height;if(_2<=document.documentElement.clientWidth){if(this.getOrientation()==="portrait"){return Math.min(_2,_3)/window.innerWidth}else{return Math.max(_2,_3)/window.innerWidth}}else if((_1=this.$130g(true))!=null){var _4=this.$130h(_1.content);var _5=_4["user-scalable"]!="no";if(!_5){if(isc.Browser.isAndroidWebView&&isc.Browser.androidMinorVersion<4.4){return 1}else{var _6=parseFloat(_4["initial-scale"]);if(!window.isNaN(_6))return _6;_6=parseFloat(_4["minimum-scale"]);if(!window.isNaN(_6))return _6}}else{var _7;if("minimum-scale"in _4){_7=parseFloat(_4["minimum-scale"])}else{_7=parseFloat(_4["initial-scale"])}
if(!window.isNaN(_7))_7}}}
return 1},isc.A.getScrollWidth=function isc_c_Page_getScrollWidth(_1){var _1=_1||document;if(_1==null||_1.body==null)return 500;if(isc.Browser.isIE&&isc.Browser.version>=6){var _2=Math.max(Math.max(_1.body.scrollWidth,_1.documentElement.clientWidth))
if(isc.Browser.isStrict)_2=Math.max(_2,_1.documentElement.scrollWidth);return _2}
return _1.body.scrollWidth},isc.A.getScrollHeight=function isc_c_Page_getScrollHeight(_1){var _1=_1||document;if(_1==null||_1.body==null){return this.getHeight()}
var _2=_1.body.scrollHeight;if(isc.Browser.isStrict){var _3=_1.documentElement;if(_3){var _4=_3.scrollHeight;if(!isc.isA.Number(_3.scrollHeight)){_4=Math.max(_3.offsetHeight,_3.clientHeight)}
if(_4&&_4>_2){_2=_4}}}
return _2},isc.A.getScreenWidth=function isc_c_Page_getScreenWidth(){return screen.width},isc.A.getScreenHeight=function isc_c_Page_getScreenHeight(){return screen.height},isc.A.getWindowRect=function isc_c_Page_getWindowRect(_1){if(!_1)_1=window;return{left:(isc.Browser.isIE||isc.Browser.isOpera?_1.screenLeft:_1.screenX),top:(isc.Browser.isIE||isc.Browser.isOpera?_1.screenTop:_1.screenY),width:isc.Page.getWidth(_1),height:isc.Page.getHeight(_1)}},isc.A.setUnloadMessage=function isc_c_Page_setUnloadMessage(_1){if(_1==null)window.onbeforeunload=null;else window.onbeforeunload=function(){return _1}},isc.A.goBack=function isc_c_Page_goBack(){if(history.length==0&&window.opener){window.close()}else{history.back()}},isc.A.observe=function isc_c_Page_observe(_1,_2,_3){var _4=isc.Class.create();return _4.observe(_1,_2,_3)},isc.A.waitFor=function isc_c_Page_waitFor(_1,_2,_3,_4,_5){var _6=isc.Class.create({$545:_1,$546:_2,$547:_3,_fired:function(_8){if(this.$59i){isc.Timer.clear(this.$59i)}
this.ignore(this.$545,this.$546);this.fireCallback(this.$547,"observed",[_8]);this.destroy()},$59j:function(){this.ignore(this.$545,this.$546);this.fireCallback(this.$59k);this.destroy()}});isc.ClassFactory.addGlobalID(_6);var _7=_6.observe(_1,_2,function(){this._fired(_1)});if(!_7)_6.destroy();if(_4&&_5){_6.$59k=_5;_6.$59i=isc.Timer.setTimeout(function(){_6.$59j()},_4)}
return _7},isc.A.waitForMultiple=function isc_c_Page_waitForMultiple(_1,_2,_3,_4){var _5=true;var _6=isc.Class.create({$59l:_1,$59m:[],$547:_2,$59n:function(_9){this.$59m.remove(_9);if(this.$59m.isEmpty()){if(this.$59i){isc.Timer.clear(this.$59i)}
this.fireCallback(this.$547);this.destroy()}},$59j:function(){var _7=this.$59m;for(var i=0;i<_7.length;i++){_7[i].ignore(_7[i].$545,_7[i].$546);_7[i].destroy()}
this.fireCallback(this.$59k);this.destroy()}});for(var i=0;i<_1.length;i++){var _9=isc.Class.create({$545:_1[i].object,$546:_1[i].method,$59o:_6,_fired:function(_12){this.ignore(this.$545,this.$546);this.$59o.$59n(this);this.destroy()}});isc.ClassFactory.addGlobalID(_9);var _10=(function(_12){return function(){this._fired(_12)}})(_1[i].object);var _11=_9.observe(_1[i].object,_1[i].method,_10);if(_11){_6.$59m.add(_9)}else{_9.destroy();_5=false}}
if(_3&&_4){_6.$59k=_4;_6.$59i=isc.Timer.setTimeout(function(){_6.$59j()},_3)}
return _5},isc.A.checkBrowserAndRedirect=function isc_c_Page_checkBrowserAndRedirect(_1){if(!isc.Browser.isSupported){if(isc.Log){isc.Log.logWarn("Unsupported browser detected - userAgent:"+navigator.userAgent)}
if(this.unsupportedBrowserAction=="continue")return;var _2=this.unsupportedBrowserAction=="confirm"&&confirm(this.getUnsupportedBrowserPromptString())
if(_2)return;if(_1==null)_1=isc.Page.defaultUnsupportedBrowserURL;var _3=true;window.location.replace(isc.Page.getURL(_1))}},isc.A.getUnsupportedBrowserPromptString=function isc_c_Page_getUnsupportedBrowserPromptString(){var _1="This page uses the Isomorphic SmartClient web presentation layer (Version"+isc.version+" - "+isc.buildDate+"). The web browser you are using is not supported by this version of SmartClient and you may encounter errors on this page. Would you like to continue anyway?\n\n(Reported userAgent string for this browser:"+navigator.userAgent+")";return _1},isc.A.setAddVersionToSkinCSS=function isc_c_Page_setAddVersionToSkinCSS(_1){this.$148v=_1},isc.A.isAddVersionToSkinCSS=function isc_c_Page_isAddVersionToSkinCSS(){return this.$148v});isc.B._maxIndex=isc.C+61;if(isc.Page.isXHTML())isc.nbsp=isc.xnbsp;isc.Page.setDirectories();if(isc.Browser.isMoz){isc.Page.getWidth(null,true);isc.Page.getHeight(null,true)}
if(isc.Browser.isAndroid){isc.Page.pollPageSize=true}
isc.Page.getToolsDir=isc.Page.getIsomorphicToolsDir;isc.Page.setToolsDir=isc.Page.setIsomorphicToolsDir;if(typeof isc.Params!="object"){isc.addGlobal("Params",function(_1){if(!_1)_1=window;var _2=typeof _1=="string"?_1:_1.location.href;var _3=_2.indexOf("?"),_4=_2.indexOf("#");if(_4<0||_4<_3)_4=_2.length;if(_3!=-1){var _5=_2.substring(_3+1,_4).split("&");for(var i=0,_7,_8;i<_5.length;i++){_7=_5[i];if(!_7)continue;_8=_7.indexOf("=");this[_7.substring(0,_8)]=unescape(_7.substring(_8+1))}}})
isc.params=new isc.Params();isc.getParams=function(_1){return new isc.Params(_1)}}
isc.ClassFactory.defineClass("Comm");isc.A=isc.Comm;isc.A.sendMethod="POST";isc.A.$hz=0;isc.A.concurrentXHRsInIE=false;isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.xmlHttpConstructors=["MSXML2.XMLHTTP","Microsoft.XMLHTTP","MSXML.XMLHTTP","MSXML3.XMLHTTP"];isc.A.$50c=[];isc.B.push(isc.A.$h0=function isc_c_Comm__fireXMLCallback(_1,_2,_3){if(!_3)isc.EH.$h1("XRP");isc.Class.fireCallback(_2,"xmlHttpRequest",[_1],null,true);if(!_3)isc.EH.$h2()},isc.A.$h3=function isc_c_Comm__getStateChangeHandler(){return function(){var _1=arguments.callee.request;if(!_1)return;if(_1.readyState!=4)return;arguments.callee.request=null;isc.Timer.setTimeout({target:isc.Comm,methodName:"$h0",args:[_1,arguments.callee.callback,true]},0)}},isc.A.createXMLHttpRequest=function isc_c_Comm_createXMLHttpRequest(){if(isc.Browser.isIE&&!isc.Browser.isIE10){var _1;if(this.preferNativeXMLHttpRequest){_1=this.getNativeRequest();if(!_1)_1=this.getActiveXRequest()}else{_1=this.getActiveXRequest();if(!_1)_1=this.getNativeRequest()}
if(!_1)isc.rpc.logWarn("Couldn't create XMLHttpRequest");return _1}else{return new XMLHttpRequest()}},isc.A.getNativeRequest=function isc_c_Comm_getNativeRequest(){var _1;if(isc.Browser.version>=7){isc.rpc.logDebug("Using native XMLHttpRequest");_1=new XMLHttpRequest()}
return _1},isc.A.getActiveXRequest=function isc_c_Comm_getActiveXRequest(){var _1;if(!this.$h4){for(var i=0;i<this.xmlHttpConstructors.length;i++){try{var _3=this.xmlHttpConstructors[i];_1=new ActiveXObject(_3);if(_1){this.$h4=_3;break}}catch(e){}}}else{_1=new ActiveXObject(this.$h4)}
if(_1)isc.rpc.logDebug("Using ActiveX XMLHttpRequest via constructor: "+this.$h4);return _1},isc.A.sendScriptInclude=function isc_c_Comm_sendScriptInclude(_1){var _2=_1.URL,_3=_1.fields,_4=_1.data,_5=_1.callbackParam,_6=_1.callback,_7=_1.transaction;if(_7!=null){var _8="_scriptIncludeReply_"+_7.transactionNum;this[_8]=function(){var _9=arguments.length==1?arguments[0]:[];if(arguments.length>1){for(var i=0;i<arguments.length;i++)_9[i]=arguments[i]}
isc.Comm.performScriptIncludeReply(_7.transactionNum,_9)}
_6="isc.Comm."+_8}
_2=isc.rpc.addParamsToURL(_2,_3);if(_5&&_6){var _11={};_11[_5?_5:"callback"]=_6;_2=isc.rpc.addParamsToURL(_2,_11)}
if(_7!=null)_7.mergedActionURL=_2;isc.rpc.logInfo("scriptInclude call to: "+_2);if(_7!=null)this.$50c[_7.transactionNum]=_7.callback;var _12=this.getDocument(),_13=this.getDocumentBody(),_14=_12.createElement("script");_14.src=_2;_13.appendChild(_14)},isc.A.performScriptIncludeReply=function isc_c_Comm_performScriptIncludeReply(_1,_2){delete this["_scriptIncludeReply_"+_1];var _3=this.$50c[_1];delete this.$50c[_1];this.logDebug("scriptInclude reply for transactionNum: "+_1+", data: "+this.echoLeaf(_2),"xmlBinding");this.fireCallback(_3,"transactionNum,results,wd",[_1,_2])},isc.A.sendXmlHttpRequest=function isc_c_Comm_sendXmlHttpRequest(_1){var _2=_1.URL,_3=_1.fields,_4=_1.httpMethod,_5=_1.contentType,_6=_1.httpHeaders,_7=_1.data,_8=_1.transaction,_9=_1.blocking!=null?_1.blocking:false,_10=_1.xmlHttpRequestResponseType;var _11=false;for(var i=0;i<_8.operations.length;i++){if(_8.operations[i].isBlocking!==false){_11=true;break}}
this.$50c[_8.transactionNum]=_8.callback;var _13="isc.Comm.performXmlTransactionReply("+_8.transactionNum+", xmlHttpRequest)";if(!_4)_4="POST";var _14=this.createXMLHttpRequest();var _15;if(isc.Browser.isIE){_15=this.$h3();_15.request=_14;_15.callback=_13}else{_15=function(){if(_14.readyState!=4)return;isc.Comm.$h0(_14,_13)}}
_14.onreadystatechange=_1.onreadystatechange||_15;if(isc.rpc.logIsDebugEnabled()){this.lastXmlHttpRequest=_14}
if(_4=="POST"||_4=="PUT"){if(_7){_5=_5||"text/xml";_2=isc.rpc.addParamsToURL(_2,_3)}else{_5=_5||"application/x-www-form-urlencoded; charset=UTF-8";_7=isc.SB.create();var _16=true;for(var _17 in _3){if(!_16)_7.append("&");var _18=_3[_17];_7.append(isc.rpc.encodeParameter(_17,_18));_16=false}
_7=_7.release(false)}
if(isc.rpc.logIsDebugEnabled()){isc.rpc.logDebug("XMLHttpRequest POST to "+_2+" contentType: "+_5+" with body -->"+decodeURIComponent(_7)+"<--")}
_14.open(_4,_2,!_9);if(_1.withCredentials)_14.withCredentials=true;if(_10!=null)_14.responseType=_10;var _19=this.$h5(_14,_6);if(!_19){_5==_14.setRequestHeader("Content-Type",_5)}
if(_8){_8.xhrHeaders=_6;_8.xhrData=_7}
if(_7!=null&&!isc.isA.String(_7)){this.logWarn("Non-string data object passed to sendXML as request.data:"+this.echo(_7)+" attempting to convert to a string.");_7=_7.toString?_7.toString():""+_7}
_14.send(_7);isc.EventHandler.$1776=true;if(_11){isc.EventHandler.$1777=true}}else{var _20=isc.rpc.addParamsToURL(_2,_3);_14.open(_4,_20,!_9);if(_1.withCredentials)_14.withCredentials=true;if(_10!=null)_14.responseType=_10;if(_1.bypassCache){_14.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")}
this.$h5(_14,_6);if(isc.rpc.logIsDebugEnabled()){isc.rpc.logDebug("XMLHttpRequest GET from "+_2+" with fields: "+isc.Log.echoAll(_3)+" full URL string: "+_20)}
_14.send(null);isc.EventHandler.$1776=true;if(_11){isc.EventHandler.$1777=true}}
return _14},isc.A.performXmlTransactionReply=function isc_c_Comm_performXmlTransactionReply(_1,_2){var _3=this.$50c[_1]
delete this.$50c[_1];this.fireCallback(_3,"transactionNum,results,wd",[_1,_2])},isc.A.$h5=function isc_c_Comm__setHttpHeaders(_1,_2){if(_2==null)return;var _3=false;for(var _4 in _2){var _5=_2[_4];if(_5!=null){_1.setRequestHeader(_4,_5);if(_4.toLowerCase()=="content-type")_3=true}}
return _3},isc.A.setConcurrentXHRsInIE=function isc_c_Comm_setConcurrentXHRsInIE(_1){if(!isc.Browser.isIE||!window.Worker)return;if(_1==isc.Comm.concurrentXHRsInIE)return;if(!_1){isc.Comm.sendXmlHttpRequest=isc.Comm.$1828;delete isc.Comm.xhrWorker}else{isc.Comm.xhrWorker=new Worker(window.URL.createObjectURL(new Blob([isc.Func.getBody(function(){var _2=eval("self");_2.addEventListener("message",function(_27){_2.sendXmlHttpRequest(_27.data.request,_27.data.URL,_27.data.data)},false)
_2.getStateChangeHandler=function isc_c_Comm_WebWorker_getStateChangeHandler(){return function(){var _3=arguments.callee.request;if(_3.readyState!=4)return;arguments.callee.request=null;var _4=_3==null?{}:{status:_3.status,statusText:_3.statusText,response:_3.response,responseText:_3.responseText,responseType:_3.responseType,responseURL:_3.responseURL,responseXML:_3.responseXML,headersString:_3.getAllResponseHeaders(),readyState:4,timeout:_3.timeout,withCredentials:_3.withCredentials}
var _5={xhr:_4,callback:arguments.callee.callback};_2.postMessage(_5)}}
_2.sendXmlHttpRequest=function isc_c_Comm_WebWorker_sendXmlHttpRequest(_27,_20,_22){var _6=_27.httpMethod,_7=_27.contentType,_8=_27.httpHeaders,_9=_27.transactionNum,_10=_27.blocking!=null?_27.blocking:false,_11=_27.xmlHttpRequestResponseType;var _12="isc.Comm.performXmlTransactionReply("+_9+", xmlHttpRequest)";if(!_6)_6="POST";var _13=_2.createXMLHttpRequest();var _14;_14=_2.getStateChangeHandler();_14.request=_13;_14.callback=_12;_13.onreadystatechange=_14;if(_6=="POST"||_6=="PUT"){_13.open(_6,_20,!_10);if(_27.withCredentials)_13.withCredentials=true;if(_11!=null)_13.responseType=_11;var _15=_2.setHttpHeaders(_13,_8);if(!_15){_7==_13.setRequestHeader("Content-Type",_7)}
_13.send(_22)}else{_13.open(_6,_20,!_10);if(_27.withCredentials)_13.withCredentials=true;if(_11!=null)_13.responseType=_11;if(_27.bypassCache){_13.setRequestHeader("If-Modified-Since","Thu, 01 Jan 1970 00:00:00 GMT")}
_2.setHttpHeaders(_13,_8);_13.send(null)}}
_2.createXMLHttpRequest=function(){return new XMLHttpRequest()}
_2.setHttpHeaders=function(_27,_8){if(_8==null)return;var _16=false;for(var _17 in _8){var _18=_8[_17];if(_18!=null){_27.setRequestHeader(_17,_18);if(_17.toLowerCase()=="content-type")_16=true}}
return _16}})],{type:'text/javascript'})));isc.Comm.xhrWorker.addEventListener("message",function(_27){var _3=_27.data.xhr;_3.getAllResponseHeaders=function(){return this.headersString}
isc.Timer.setTimeout({target:isc.Comm,methodName:"$h0",args:[_3,_27.data.callback,true]},0)});isc.Comm.xhrWorker.addEventListener("error",function(_27){var _19="Error in concurrent XHR processing!  In "+_27.filename+", line "+_27.lineno+": "+_27.message;isc.logWarn(_19);isc.warn(isc.Comm.concurrentXHRErrorMessage?isc.Comm.concurrentXHRErrorMessage:_19)});isc.Comm.$1828=isc.Comm.sendXmlHttpRequest;isc.Comm.sendXmlHttpRequest=function isc_c_Comm_sendXmlHttpRequest(_27){var _20=_27.URL,_21=_27.fields,_6=_27.httpMethod,_7=_27.contentType,_8=_27.httpHeaders,_22=_27.data,_23=_27.transaction,_10=_27.blocking!=null?_27.blocking:false,_11=_27.xmlHttpRequestResponseType;if(!_27.useSimpleHttp)this.addTransactionToFields(_27);this.$50c[_23.transactionNum]=_23.callback;if(!_6)_6="POST";if(_6=="POST"||_6=="PUT"){if(_22){_7=_7||"text/xml";_20=isc.rpc.addParamsToURL(_20,_21)}else{_7=_7||"application/x-www-form-urlencoded; charset=UTF-8";_22=isc.SB.create();var _24=true;for(var _25 in _21){if(!_24)_22.append("&");var _1=_21[_25];_22.append(isc.rpc.encodeParameter(_25,_1));_24=false}
_22=_22.release(false)}
if(isc.rpc.logIsDebugEnabled()){isc.rpc.logDebug("XMLHttpRequest POST to "+_20+" contentType: "+_7+" with body -->"+decodeURIComponent(_22)+"<--")}
if(_23){_23.xhrHeaders=_8;_23.xhrData=_22}
if(_22!=null&&!isc.isA.String(_22)){this.logWarn("Non-string data object passed to sendXML as request.data:"+this.echo(_22)+" attempting to convert to a string.");_22=_22.toString?_22.toString():""+_22}
isc.Comm.xhrWorker.postMessage({request:{httpMethod:_6,contentType:_7,headers:_8,transactionNum:_23.transactionNum,blocking:_10,responseType:_11,withCredentials:_27.withCredentials,bypassCache:_27.bypassCache},URL:_20,data:_22})}else{var _26=isc.rpc.addParamsToURL(_20,_21);if(isc.rpc.logIsDebugEnabled()){isc.rpc.logDebug("XMLHttpRequest GET from "+_20+" with fields: "+isc.Log.echoAll(_21)+" full URL string: "+_26)}
isc.Comm.xhrWorker.postMessage({request:{httpMethod:_6,contentType:_7,headers:_8,transactionNum:_23.transactionNum,blocking:_10,responseType:_11,withCredentials:_27.withCredentials,bypassCache:_27.bypassCache},URL:_26,data:_22})}
return null}}});isc.B._maxIndex=isc.C+11;isc.ClassFactory.defineClass("HiddenFrame");isc.A=isc.HiddenFrame;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._stats={draws:0,destroys:0};isc.A.$h6=[];isc.B.push(isc.A.$h7=function isc_c_HiddenFrame__killLoadingIndicators(){if(isc.Browser.isMoz)this.delayCall("$h8")},isc.A.$h8=function isc_c_HiddenFrame__doKillLoadingIndicators(){var _1=isc.HiddenFrame.create();_1.draw();_1.destroy()});isc.B._maxIndex=isc.C+2;isc.A=isc.HiddenFrame.getPrototype();isc.A.text="&nbsp;";isc.A._generated=true;isc.A.$h9=[];isc.A.pollInterval=100;isc.A.useHtmlfile=false;isc.A=isc.HiddenFrame.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_HiddenFrame_init(){isc.ClassFactory.addGlobalID(this);isc.HiddenFrame.$h6.add(this)},isc.A.getID=function isc_HiddenFrame_getID(){return this.ID},isc.A.draw=function isc_HiddenFrame_draw(_1){if(this.isDrawn()){if(_1!=null)this.fireCallback(_1);return this}
if(!this.$ia()){if(!this.$ib){this.$83s=isc.Page.setEvent("load",this.getID()+".draw()",isc.Page.FIRE_ONCE);this.$ib=true}
if(_1!=null){this.$h9[this.$h9.length]=_1}}else{this.$ic();for(var i=0;i<this.$h9.length;i++){this.fireCallback(this.$h9[i])}
if(_1!=null)this.fireCallback(_1)}
return this},isc.A.$ic=function isc_HiddenFrame__draw(){if(this.$if)return this.$ie;this.frameHTML="<IFRAME ID="+this.getName()+" NAME="+this.getName()+" SRC=\""+(this.location?this.location:isc.Page.getBlankFrameURL())+"\" STYLE='position:absolute;visibility:hidden;top:-1000px'></IFRAME>";if(this.useHtmlfile){try{this.$1128=new ActiveXObject("htmlfile")}catch(e){this.useHtmlfile=false}}
if(!this.useHtmlfile){var _1=this.frameHTML;isc.Element.createAbsoluteElement(_1);if(!(isc.Browser.isIE&&isc.Browser.minorVersion<5.5)){this.$id=isc.Element.get(this.getName());if(!isc.Browser.isSafari)this.$ie=this.$id.contentWindow}
if(this.$ie==null){for(var i=0;i<window.frames.length;i++){var _3=window.frames[i];try{if(_3.name==this.getName()){this.$ie=_3;break}}catch(e){}}}}
this.$if=true;return this.$ie},isc.A.isDrawn=function isc_HiddenFrame_isDrawn(){return this.$if},isc.A.$ia=function isc_HiddenFrame__safeToDraw(){return isc.Page.isLoaded()||!isc.Browser.isMoz},isc.A.destroy=function isc_HiddenFrame_destroy(){if(isc.isA.Canvas(this.$ig)){this.$ig.destroy();delete this.$ig;isc.HiddenFrame._stats.destroys++}
if(window[this.ID])window[this.ID]=null;isc.HiddenFrame.$h6.remove(this);if(this.$ib){isc.Page.clearEvent("load",this.$83s)}
if(this.useHtmlfile){if(this.$1128){this.$1128.parentWindow.isc=null;this.$1128=null;delete this.$1128;CollectGarbage()}}else{var _1=this.getHandle();if(!_1)return;if(isc.Browser.isSafari)_1.location=isc.Page.getBlankFrameURL();var _2=this.evaluate("try{this.getHandle().name;true}catch(e){false}");if(!_2){this.logDebug("Can't dispose of "+this.ID+" - property access denied.");return}
if(isc.Browser.isIE){if(document.domain==location.hostname){_1.document.open();_1.document.write("");_1.document.close()}else{_1.document.location.href=isc.Page.getBlankFrameURL()}}
if(this.$id!=null){isc.Element.clear(this.$id);this.$id=null}
if(this.$ie!=null)this.$ie=null}
this.Super("destroy",arguments);this.logDebug("Destroyed "+this.ID)},isc.A.getHandle=function isc_HiddenFrame_getHandle(){return this.$ie},isc.A.getName=function isc_HiddenFrame_getName(){return this.getID()},isc.A.getFrameDocument=function isc_HiddenFrame_getFrameDocument(){if(this.useHtmlfile){return this.$1128}else{var _1=(isc.Browser.isSafari&&isc.Browser.safariVersion<523.129?this.$id:this.$ie);try{return _1.document}catch(e){return null}}},isc.A.getForm=function isc_HiddenFrame_getForm(_1){if(_1==null)_1=0;if(isc.Browser.isMoz){return this.getFrameDocument().getElementById(_1)}else{return this.getFrameDocument().forms[_1]}},isc.A.setInnerHTML=function isc_HiddenFrame_setInnerHTML(_1){if(_1)this.text=_1;var _2=this.getFrameDocument();if(isc.Browser.isMoz){var _3=_2.createRange();_3.setStartBefore(_2.body);var _4=_3.createContextualFragment(this.text);_2.body.appendChild(_4)}else{_2.open();_2.write(this.text);_2.close()}},isc.A.sendForm=function isc_HiddenFrame_sendForm(_1,_2,_3){if(_1!=null)this.formHTML=_1;if(_2!=null)this.formName=_2;if(_3!=null)this.fieldList=_3;if(!this.$ia()){this.logDebug("delaying comm until page load");isc.Page.setEvent("load",this.getID()+".sendForm()",isc.Page.FIRE_ONCE);return}
this.draw();this.sendData()},isc.A.sendData=function isc_HiddenFrame_sendData(_1){var _2=this.formHTML;if(_1){_2=_2.replace(/isc_rpc=1/g,"isc_rpc=1&isc_resubmit=1")}
if(this.getFrameDocument()==null)
{this.delayCall("sendData",[],10);this.logDebug(this.getID()+": sendData() - document not ready - deferring.");return}
var _3;if(this.useHtmlfile){var _4=this.$1128;_4.open();_4.write("<html><body>");_4.write(this.frameHTML);_4.write(_2);_4.write("</body></html>");_4.close();_4.parentWindow.isc=isc;_3=_4.getElementById(this.formName)}else{if(isc.isA.Canvas(this.$ig))this.$ig.destroy();this.$ig=isc.Canvas.create({autoDraw:true,ID:this.getID()+"$ig",visibility:"hidden",overflow:"ignore",top:-9999,width:1,height:1,contents:_2,_generated:true,$ih:true});isc.HiddenFrame._stats.draws++;_3=isc.Element.get(this.formName)}
if(!_3.acceptCharset){_3.acceptCharset="UTF-8"}
for(var _5 in this.fieldList){if(this.fieldList[_5]!=null)_3.elements[_5].value=this.fieldList[_5]}
if(_3){_3.submit();this.logInfo("Form submitted to server");if(this.callback){this.convertToMethod("callback");this.delayCall("checkLoaded",[],this.pollInterval)}}else{this.logWarn("couldn't get handle to comm form")}},isc.A.checkLoaded=function isc_HiddenFrame_checkLoaded(){var _1=this.getHandle();if(_1&&_1[this.resultVarName]){if(this.callback)this.callback(_1)}else{this.delayCall("checkLoaded",[],this.pollInterval)}});isc.B._maxIndex=isc.C+15;isc.HiddenFrame.registerStringMethods({callback:"frame"});if(!isc.FileLoader){isc.defineClass("FileLoader").addClassProperties({$139n:true,modulesDir:"system/development/",ensureLoaded:function(_1){isc.fileLoaderLoaded=function(){isc.fileLoaderLoaded=null;_1()};isc.Comm.sendScriptInclude({URL:isc.Page.getIsomorphicDir()+this.modulesDir+"/ISC_FileLoader.js"})}});isc.addGlobal("FL",isc.FileLoader)}
isc.ClassFactory.defineClass("Timer");isc.A=isc.Timer;isc.A.$ii=null;isc.A.listEvent={action:null,iterationInterval:null,iterationsRemaining:0,$ij:null,$ik:null};isc.A.MSEC=1;isc.A.SEC=1000;isc.A.MIN=60000;isc.A.HOUR=3600000;isc.A.DEFAULT_TIMEOUT_LENGTH=100;isc.A.$il=null;isc.A=isc.Timer;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$io=0;isc.A.$ip={};isc.A.$16af={};isc.A.$iq="TMR";isc.A.$612=5000;isc.B.push(isc.A.setTimeout=function isc_c_Timer_setTimeout(_1,_2,_3,_4){if(_1==null)return;if(_1.action!=null){_2=_1.delay;_3=_1.units;_1=_1.action}
if(_3==null)_3=isc.Timer.MSEC;if(_2==null)_2=isc.Timer.DEFAULT_TIMEOUT_LENGTH;_2=_2*_3;if(isc.Browser.isMobileSafari){if(isc.isA.String(_1)||_1.$143n!=null)_1={$143o:_1};_1.$143n=_2+isc.timeStamp()}
var _5="$ir"+this.$io++;this[_5]=_1;if(this.logIsDebugEnabled("traceTimers"))
{delete this.currentAction;_1.timerTrace=this.getStackTrace(null,1,null,true)}
var _6=setTimeout(function(){isc.Timer.$in(_5,_6)},_2);this.$ip[_6]=_5;return _6},isc.A.$in=function isc_c_Timer__fireTimeout(_1,_2,_3){if(isc.$611!=null){if(this.logIsInfoEnabled()){this.logInfo("timer ID:"+_1+" fired during eval. Delaying until this thread completes")}
if(!this.$613)this.$613=isc.timeStamp();if((isc.timeStamp()-this.$613)>this.$612){this.logWarn("timer ID:"+_1+" fired during eval thread lasting more than "+this.$612+"ms. Thread may have caused an error and failed to complete. Allowing delayed action to fire.");delete isc.$611}else{_3=setTimeout(function(){isc.Timer.$in(_1,_2,_3)},0);this.$16af[_1]=_3;return}}
delete this.$613;var _4=this[_1];if(_4==null){return}
if(_4.$143o)_4=_4.$143o;delete this[_1];delete this.$ip[_2];delete this.$16af[_3];isc.EH.$h1(this.$iq);arguments.timerTrace=_4.timerTrace;this.currentAction=_4;this.fireCallback(_4,null,null,null,true);isc.EH.$h2()},isc.A.clear=function isc_c_Timer_clear(_1){if(isc.isAn.Array(_1))
for(var i=0;i<_1.length;i++)this.clear(_1[i]);else{var _3=this.$ip[_1];delete this[_3]
delete this.$ip[_1];if(this.$16af.hasOwnProperty(_3)){_1=this.$16af[_3];delete this.$16af[_3]}
clearTimeout(_1)}
return null},isc.A.clearTimeout=function isc_c_Timer_clearTimeout(_1){return this.clear(_1)},isc.A.$143p=function isc_c_Timer__getTimeoutFireTime(_1){var _2=this[_1]||{};return _2.$143n},isc.A.firePendingTimeouts=function isc_c_Timer_firePendingTimeouts(){var _1=isc.addProperties({},this.$ip),_2=this.$16af,_3=isc.timeStamp();for(var _4 in _1){if(!_1.hasOwnProperty(_4))continue;var _5=_1[_4];if(_5==null)continue;var _6=this.$143p(_5);if(_6!=null&&_6<_3){if(_2.hasOwnProperty(_5)){var _7=_2[_5];clearTimeout(_7);this.$in(_5,_4,_7)}else{clearTimeout(_4);this.$in(_5,_4)}}}});isc.B._maxIndex=isc.C+6;isc.A=isc.Page;isc.A.$is={};isc.A.$it=0;isc.A.FIRE_ONCE="once";isc.A.$iu={};isc.A.$151b=new Array(32);isc.A.$151c=0;isc.A.$1511=0;isc.A.$1512=1;isc.A=isc.Page;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$cp="ID";isc.A.$51h="Backspace";isc.A.suppressBackspaceNavigation=true;isc.A.$151d=0;isc.B.push(isc.A.setEvent=function isc_c_Page_setEvent(_1,_2,_3,_4){if(isc.isA.String(_2)){if(_1==isc.EH.LOAD||_1==isc.EH.IDLE||_1==isc.EH.RESIZE||_1==isc.EH.ORIENTATION_CHANGE)
{_2=isc.$aq("target,eventInfo",_2)}else{_2=isc.Func.expressionToFunction("target,eventInfo",_2)}}
if(this.logIsDebugEnabled()){this.logDebug("setEvent("+_1+"): action => "+(isc.isA.Function(_2)?isc.Func.getShortBody(_2):_2))}
var _5=isc.Page.$it++,_6={action:_2,functionName:_4,fireStyle:_3,ID:_5};var _7=this.$is;if(!isc.isAn.Array(_7[_1]))_7[_1]=[];_7[_1].add(_6);if(_1==isc.EH.IDLE){isc.EventHandler.startIdleTimer()}
return _5},isc.A.clearEvent=function isc_c_Page_clearEvent(_1,_2){var _3=this.$is;if(_2==null){_3[_1]=[]}else{if(this.$iv==_1){var _4=_3[_1],_5=isc.isA.Array(_4)?_4.findIndex(this.$cp,_2):-1;if(_5!=-1)_4[_5]=null}else{if(isc.isA.Array(_3[_1])){_3[_1].removeWhere(this.$cp,_2)}}}},isc.A.$iw=function isc_c_Page__getPageEventName(_1){var _2=this.$ix=this.$ix||{};if(!_2[_1]){_2[_1]="page"+_1.charAt(0).toUpperCase()+_1.substring(1)}
return _2[_1]},isc.A.handleEvent=function isc_c_Page_handleEvent(_1,_2,_3){if(_2==isc.EH.UNLOAD)isc.Canvas.$iy();this.$151e();var _4=isc.Page.$is[_2];if(!isc.isAn.Array(_4)||_4.length==0)return true;var _5=this.$iw(_2);var _6=true;this.$iv=_2;for(var i=0,_8=_4.length;_6&&(i<_8);i++){var _9=_4[i];if(!_9)continue;if(_9.fireStyle==isc.Page.FIRE_ONCE)_4[i]=null;if(this.logIsDebugEnabled()){this.logDebug("handleEvent("+_2+"): firing action => "+isc.Func.getShortBody(_9.action))}
if(isc.isA.Function(_9.action)){_6=(_9.action(_1,_3)!=false)}else{var _10=_9.action;if(!_10||_10.destroyed){_4[i]=null;continue}
var _11=_9.functionName||_5;if(isc.isA.Function(_10[_11])){_6=(_10[_11](_1,_3)!=false)}}}
this.$iv=null;this.$is[_2].removeEmpty();return _6},isc.A.actionsArePendingForEvent=function isc_c_Page_actionsArePendingForEvent(_1){return(isc.isAn.Array(this.$is[_1])&&this.$is[_1].length!=0)},isc.A.registerKey=function isc_c_Page_registerKey(_1,_2,_3){if(_1==null||_2==null)return;var _4=_1;if(isc.isAn.Object(_1)){_4=_1.keyName}
if(_4.length==1)_4=_4.toUpperCase();var _5=false;for(var i in isc.EH.$iz){if(isc.EH.$iz[i]==_4){_5=true;break}}
if(!_5){this.logWarn("Page.registerKey() passed unrecognized key name '"+_1+"'. Not registering","events");return}
var _7=this.$iu;if(!_7[_4])_7[_4]=[];_7[_4].add({target:_3,action:_2,key:_1})},isc.A.unregisterKey=function isc_c_Page_unregisterKey(_1,_2){var _3=_1;if(!this.$iu[_3]){isc.Log.logInfo("Page.unregisterKey(): No events registered for key "+isc.Log.echo(_3)+".","events");return false}
this.$iu[_3].removeWhere("target",_2)},isc.A.handleKeyPress=function isc_c_Page_handleKeyPress(){var _1=isc.EH,_2=_1.getKey(),_3=this.$iu;if(_3[_2]){var _4=_3[_2],_5=_4.duplicate(),_6=_5.length,_7=true;for(var i=0;i<_6;i++){var _9=_5[i];if(!_4.contains(_9))continue;if(!_1.$160v(_9.key))continue;if(_9.action!=null&&!isc.isA.Function(_9.action)){isc.Func.replaceWithMethod(_9,"action","key,target")}
_7=((_9.action(_2,_9.target)!=false)&&_7)}}
if(_7!=false&&isc.Page.suppressBackspaceNavigation&&_2==this.$51h)
{var _10=isc.EH.lastEvent.keyTarget;if(!_10||!(isc.RichTextCanvas&&isc.isA.RichTextCanvas(_10))){_7=false}}
return _7},isc.A.$151f=function isc_c_Page__registerModifierKeys(_1,_2,_3,_4,_5){if(_1==null||(_3==null&&_4==null))return;var _6=this.$151b,_7=this.$1513(_1,_2);if(!_6[_7])_6[_7]=[];_6[_7].add({target:_5,downAction:_3,upAction:_4});++this.$151c},isc.A.$1513=function isc_c_Page__getModifierKeysRegistryIndex(_1,_2){var _3=isc.Page.$151g(_1);return((_2==isc.Page.$1512?0x1:0)|(_3<<1))},isc.A.$151g=function isc_c_Page__getModifierKeysFlags(_1){var _2=false,_3=false,_4=false,_5=false;if(isc.isAn.Array(_1)){_2=_1.contains("Ctrl");_3=_1.contains("Shift");_4=_1.contains("Alt");_5=_1.contains("Meta")}else if(isc.isAn.Object(_1)){_2=_1.ctrlKey;_3=_1.shiftKey;_4=_1.altKey;_5=_1.metaKey}else if(_1=="Ctrl"){_2=true}else if(_1=="Shift"){_3=true}else if(_1=="Alt"){_4=true}else if(_1=="Meta"){_5=true}
return((_2?0x1:0)|(_3?0x2:0)|(_4?0x4:0)|(_5?0x8:0))},isc.A.$151h=function isc_c_Page__unregisterModifierKeys(_1,_2,_3){var _4=this.$151b,_5=this.$1513(_1,_2),_6=_4[_5];if(_6){var _7=_6.length;_6.removeWhere("target",_3);this.$151c-=(_7-_6.length)}},isc.A.$151i=function isc_c_Page__modifierKeysDown(_1){var _2=this.$151d,_3=this.$151g(_1);return(_3==(_2&_3))},isc.A.$151e=function isc_c_Page__handleModifierKeysChanged(){if(this.$151c==0){return}
var _1=this.$151b,_2=this.$151d,_3=((isc.EH.ctrlKeyDown()?0x1:0)|(isc.EH.shiftKeyDown()?0x2:0)|(isc.EH.altKeyDown()?0x4:0)|(isc.EH.metaKeyDown()?0x8:0));if(_3!=_2){for(var i=0;i<32;++i){if(_1[i]!=null){var f=(i>>1),_6=false,_7=false;if(i<16){_6=((_2&f)!=0);_7=((_3&f)!=0)}else{_6=((_2&f)==f);_7=((_3&f)==f)}
var _8=!_6,_9=!_7,_10=(_8&&_7),_11=(_6&&_9),_12=(_10?"downAction":(_11?"upAction":null));if(_12!=null){var _13=_1[i];for(var j=0,_15=_13.length;j<_15;++j){var _16=_13[j],_17=_16[_12];if(_17!=null){_17(_16.target)}}}}}}
this.$151d=_3});isc.B._maxIndex=isc.C+14;isc.ClassFactory.defineClass("EventHandler");isc.EH=isc.Event=isc.EventHandler;isc.A=isc.EventHandler;isc.A.lastEvent={};isc.A.$i0=[];isc.A.$i1=[];isc.A.passThroughEvents=true;isc.A.maskNativeTargets=true;isc.A.DOUBLE_CLICK_DELAY=500;isc.A.IDLE_DELAY=10;isc.A.STOP_BUBBLING="***STOP***";isc.A.ALL_EDGES=["T","L","B","R","TL","TR","BL","BR"];isc.A.eventTypes={MOUSE_LEAVE:"mouseLeave",MOUSE_DOWN:"mouseDown",RIGHT_MOUSE_DOWN:"rightMouseDown",MOUSE_MOVE:"mouseMove",MOUSE_UP:"mouseUp",SHOW_CONTEXT_MENU:"showContextMenu",CLICK:"click",DOUBLE_CLICK:"doubleClick",MOUSE_OUT:"mouseOut",MOUSE_STILL_DOWN:"mouseStillDown",MOUSE_OVER:"mouseOver",POINTER_DOWN:"pointerDown",POINTER_MOVE:"pointerMove",POINTER_UP:"pointerUp",POINTER_CANCEL:"pointerCancel",TOUCH_START:"touchStart",TOUCH_MOVE:"touchMove",TOUCH_END:"touchEnd",TOUCH_CANCEL:"touchCancel",LONG_TOUCH:"longTouch",SET_DRAG_TRACKER:"setDragTracker",GET_DRAG_DATA:"getDragData",RELEASE_DRAG_DATA:"releaseDragData",DRAG_START:"dragStart",DRAG_STOP:"dragStop",DRAG_MOVE:"dragMove",DRAG_OUT:"dragOut",DRAG_REPOSITION_START:"dragRepositionStart",DRAG_REPOSITION_MOVE:"dragRepositionMove",DRAG_REPOSITION_STOP:"dragRepositionStop",DRAG_RESIZE_START:"dragResizeStart",DRAG_RESIZE_MOVE:"dragResizeMove",DRAG_RESIZE_STOP:"dragResizeStop",DROP_OVER:"dropOver",DROP_MOVE:"dropMove",DROP_OUT:"dropOut",DROP:"drop",TRANSITION_END:"transitionEnd",KEY_DOWN:"keyDown",KEY_UP:"keyUp",KEY_PRESS:"keyPress",MOUSE_WHEEL:"mouseWheel",SELECT_START:"selectStart",SELECTION_CHANGE:"selectionChange",FOCUS_IN:"focusIn",FOCUS_OUT:"focusOut",IDLE:"idle",LOAD:"load",UNLOAD:"unload",RESIZE:"resize",ORIENTATION_CHANGE:"orientationChange"};isc.A.$i2={mousemove:"mouseMove",mousedown:"mouseDown",mouseup:"mouseUp",click:"click",contextmenu:"contextMenu",mousewheel:"mouseWheel",selectionchange:"selectionChange",DOMMouseScroll:"mouseWheel",mouseMove:"mouseMove",mouseDown:"mouseDown",mouseUp:"mouseUp",mouseWheel:"mouseWheel",pointerdown:"pointerDown",pointermove:"pointerMove",pointerup:"pointerUp",pointercancel:"pointerCancel",touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",touchStart:"touchStart",touchMove:"touchMove",touchEnd:"touchEnd",touchCancel:"touchCancel",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragexit:"dragExit",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd",selectionstart:"selectionStart",selectionStart:"selectionStart",selectionchange:"selectionChange",selectionChange:"selectionChange"};isc.A.$94w={READY_FOR_TOUCH:"ready",TOUCH_STARTED:"started",TOUCH_ENDING:"ending",TOUCH_COMPLETE:"complete"};isc.A.$i3="event,eventInfo";isc.A.DRAG_RESIZE="dragResize";isc.A.DRAG_REPOSITION="dragReposition";isc.A.DRAG_SCROLL="dragScroll";isc.A.DRAG_SELECT="dragSelect";isc.A.DRAG="drag";isc.A.NONE="none";isc.A.TRACKER="tracker";isc.A.TARGET="target";isc.A.OUTLINE="outline";isc.A.INTERSECT_WITH_MOUSE="mouse";isc.A.INTERSECT_WITH_RECT="rect";isc.A.artificialDragTargetDefaults={_constructor:"Canvas",canDrag:true,useNativeDrag:true,canDrop:true,dragAppearance:"none",cloneDragData:function(){return isc.EH.getNativeDragData()}};isc.A.dragTargetShadowDepth=10;isc.A.dragOffsetX=0;isc.A.dragOffsetY=0;isc.A.$i4={A:true,AREA:true};isc.A.$i5={INPUT:true,TEXTAREA:true,SELECT:true,OPTION:true};isc.A.$i6="LABEL";isc.A.$i7={keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",contextmenu:"contextMenu"};isc.A.$i8={Backspace:8,Tab:9,Shift:16,Ctrl:17,Alt:18,Pause_Break:19,Caps_Lock:20,Page_Up:33,Page_Down:34,End:35,Home:36,Arrow_Left:37,Arrow_Up:38,Arrow_Right:39,Arrow_Down:40,Insert:45,Delete:46,Meta:91,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,Num_Lock:144,Scroll_Lock:145};isc.A.$944={A:true,C:true,D:true,R:true,V:true};isc.A.$90v={Backspace:true,Tab:true,Shift:true,Ctrl:true,Alt:true,Pause_Break:true,Caps_Lock:true,Escape:true,Page_Up:true,Page_Down:true,End:true,Home:true,Arrow_Left:true,Arrow_Up:true,Arrow_Right:true,Arrow_Down:true,Insert:true,Delete:true,Meta:true,Menu:true,f1:true,f2:true,f3:true,f4:true,f5:true,f6:true,f7:true,f8:true,f9:true,f10:true,f11:true,f12:true,Num_Lock:true,Scroll_Lock:true};isc.A.$173i={f3:true,f11:true};isc.A.$iz={'0':'$i9','8':'Backspace','9':'Tab','13':'Enter','16':'Shift','17':'Ctrl','18':'Alt','19':'Pause_Break','20':'Caps_Lock','27':'Escape','32':'Space','33':'Page_Up','34':'Page_Down','35':'End','36':'Home','37':'Arrow_Left','38':'Arrow_Up','39':'Arrow_Right','40':'Arrow_Down','44':'Print_Screen','45':'Insert','46':'Delete','48':'0',"49":"1","50":"2","51":"3","52":"4","53":"5","54":"6","55":"7","56":"8","57":"9",'58':';','59':';','60':',','61':'=','62':"/",'65':'A','66':'B','67':'C','68':'D','69':'E','70':'F','71':'G','72':'H','73':'I','74':'J','75':'K','76':'L','77':'M','78':'N','79':'O','80':'P','81':'Q','82':'R','83':'S','84':'T','85':'U','86':'V','87':'W','88':'X','89':'Y','90':'Z','91':'Meta','92':'Meta','93':'Menu','96':'0','97':'1','98':'2','99':'3','100':'4','101':'5','102':'6','103':'7','104':'8','105':'9','106':'*','107':'+','109':'-','110':'.','111':'/','112':'f1','113':'f2','114':'f3','115':'f4','116':'f5','117':'f6','118':'f7','119':'f8','120':'f9','121':'f10','122':'f11','123':'f12','144':'Num_Lock','145':'Scroll_Lock','160':'Shift','161':'Shift','162':'Ctrl','163':'Ctrl','164':'Alt','165':'Alt','186':';','187':'=','188':',','189':'-','190':'.','191':'/','192':'`','219':'[','220':'\\','221':']','222':"'",'224':"Meta"};isc.A.$ja={'8':'Backspace','9':'Tab','13':'Enter','27':'Escape','32':'Space','33':'1','34':"'",'35':'3','36':'4','37':'5','38':'7','39':"'",'40':'9','41':'0','42':'8','43':'=','44':',','45':'-','46':'.','47':'/','48':'0','49':'1','50':'2','51':'3','52':'4','53':'5','54':'6','55':'7','56':'8','57':'9','58':';','59':';','60':',','61':'=','62':'.','63':'/','64':'2','65':'A','66':'B','67':'C','68':'D','69':'E','70':'F','71':'G','72':'H','73':'I','74':'J','75':'K','76':'L','77':'M','78':'N','79':'O','80':'P','81':'Q','82':'R','83':'S','84':'T','85':'U','86':'V','87':'W','88':'X','89':'Y','90':'Z','91':'[','92':'\\','93':']','94':'6','95':'-','96':'`','97':'A','98':'B','99':'C','100':'D','101':'E','102':'F','103':'G','104':'H','105':'I','106':'J','107':'K','108':'L','109':'M','110':'N','111':'O','112':'P','113':'Q','114':'R','115':'S','116':'T','117':'U','118':'V','119':'W','120':'X','121':'Y','122':'Z','123':'[','124':'\\','125':']','126':'`'};isc.A.$jb={'3':"Enter",'25':"Tab",'63232':"Arrow_Up",'63233':"Arrow_Down",'63234':"Arrow_Left",'63235':"Arrow_Right",'64236':"f1",'64237':"f2",'64238':"f3",'64239':"f4",'64240':"f5",'64241':"f6",'64242':"f7",'64243':"f8",'64244':"f9",'64245':"f10",'64246':"f11",'63247':"f12",'63273':"Home",'63275':"End",'63276':"Page_Up",'63277':"Page_Down"};isc.A.$jc={};isc.A.dynamicBackMask=false;isc.A.alwaysBackMask=false;isc.A.dragTrackerDefaults={ID:"isc_dragTracker",$119r:true,width:10,height:10,offsetX:-10,offsetY:-10,autoDraw:false,visibility:"hidden",overflow:"visible",cursor:"arrow",hideUsingDisplayNone:true};isc.A.skipTeasOnXHR=isc.Browser.isIE?"blockingOnly":"none";isc.EventHandler.addClassProperties(isc.EventHandler.eventTypes)
isc.A=isc.EventHandler;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$je="f10";isc.A.$20w="Escape";isc.A.$85t=[];isc.A.$85z={};isc.A.$173j={B:true,I:true,T:true};isc.A.$jf="Tab";isc.A.$70a={keydown:true,keyup:true,keypress:true};isc.A.$jg="IMG";isc.A.$jh="progid:DXImageTransform.Microsoft.AlphaImageLoader";isc.A.enableMouseMoveBackCompat=false;isc.A.longTouchDelay=500;isc.A.$ji={};isc.A.showNoDropIndicator=false;isc.A.$jj="BODY";isc.A.$jk="HTML";isc.A.$jl="eventProxy";isc.A.$945="eventpart";isc.A.$jm="[object Text]";isc.A.$jn={autoDraw:false,$jo:true,$jp:false,overflow:"hidden",visibility:"hidden",$jq:false,getTarget:function(){return this.$jr},show:function(){var _1=this.masterElement;this.moveAbove(_1);return this.Super("show",arguments)}};isc.A.$js=isc.Browser.isIE?isc.undef:true;isc.A.$jt="handleNativeEvents";isc.A.$49r="APPLET";isc.A.$160l={touchstart:true,touchmove:true,touchend:true,touchcancel:true,touchStart:true,touchMove:true,touchEnd:true,touchCancel:true};isc.A.$160m={pointerdown:true,pointermove:true,pointerup:true,pointercancel:true,pointerDown:true,pointerMove:true,pointerUp:true,pointerCancel:true};isc.A.$175c={dragStart:true,dragEnd:true,dragEnter:true,dragOver:true,dragLeave:true,dragstart:true,dragend:true,dragenter:true,dragover:true,dragleave:true,drop:true};isc.A.$ju={mouseMove:true,mouseOver:true,mouseOut:true};isc.A.useFocusInEvents=(isc.Browser.isIE&&isc.Browser.version>=6);isc.A.synchronousFocusNotifications=true;isc.A.$41z="selectionChange";isc.A.$120k="application/x-isc-dragtype";isc.A.$120l=0;isc.A.$120p="dyn.a";isc.A.$120m={"a":0,"b":1,"c":2,"d":3,"e":4,"f":5,"g":6,"h":7,"k":8,"m":9,"n":10,"p":11,"q":12,"r":13,"s":14,"t":15,"u":16,"v":17,"w":18,"x":19,"y":20,"z":21,"0":22,"1":23,"2":24,"3":25,"4":26,"5":27,"6":28,"7":29,"8":30,"9":31};isc.A.$119s="drop";isc.A.$119t={dateFormat:"xmlSchema",prettyPrint:false,skipInternalProperties:true,strictQuoting:true};isc.A.$119u="dragstart";isc.A.$120c={"none":"none","copy":"copy","copyLink":"copyLink","copylink":"copyLink","copyMove":"copyMove","copymove":"copyMove","link":"link","linkMove":"linkMove","linkmove":"linkMove","move":"move","all":"all","uninitialized":"uninitialized"};isc.A.$1197=isc.Browser.isMoz&&isc.Browser.version<10;isc.A.$119v=600;isc.A.$119w={"none":"none","copy":"copy","copyLink":"copy","copylink":"copy","copyMove":"copy","copymove":"copy","all":"copy","link":"link","linkMove":"link","linkmove":"link","move":"move"};isc.A.$27r="none";isc.A.currentOrientation=isc.Page.getOrientation();isc.A.$118t=isc.Page.getWidth();isc.A.$jv="$jw";isc.A.$jx=0;isc.A.$jy={load:"LOD",mousedown:"MDN",mouseup:"MUP",mousemove:"MMV",mouseout:"MOU",touchstart:"TDN",touchmove:"TMVP",touchend:"TUP",contextmenu:"CXT",keypress:"KPR",keydown:"KDN",keyup:"KUP",resize:"RSZ"};isc.A.$jz="nativeEvents";isc.A.$j0="event";isc.A.$j1="if (!isc.Browser.isIE && event == null) return;"+((isc.Browser.isMoz&&isc.Browser.version>=6)||isc.Browser.isChrome?"if(event.defaultPrevented)return;":(isc.Browser.isMoz?"if(event.getPreventDefault&&event.getPreventDefault())return;":isc.Browser.isSafari?"if(event.returnValue==false)return;":""))+"var returnVal=arguments.callee.$ch.isc.EH.dispatch(arguments.callee.$j2,event);"+(!isc.Browser.isIE&&isc.Browser.isDOM?"if(returnVal==false)event.preventDefault();else if(returnVal==isc.EH.STOP_BUBBLING)event.stopPropogation();":"")+"return returnVal;";isc.A.$j3={};isc.A.$j4={onmousedown:"mousedown",onmouseup:"mouseup",onclick:"click",ondblclick:"dblclick",oncontextmenu:"contextmenu",onmousewheel:"mousewheel",onmouseover:"mouseover",onmouseout:"mouseout",onmousemove:"mousemove",ondragstart:"dragstart",ondrag:"drag",ondragend:"dragend",ondragenter:"dragenter",ondragover:"dragover",ondragleave:"dragleave",ondrop:"drop",onresize:"resize",onload:"load",onunload:"unload",onselecttext:"selecttext",onselectionchanged:"selectionchanged",onkeydown:"keydown",onkeyup:"keyup",onkeypress:"keypress",pointerdown:"pointerdown",pointermove:"pointermove",pointerup:"pointerup",pointercancel:"pointercancel"};isc.A.$649={};isc.A.$mt=isc.Browser.isMobileIE;isc.A.$168h=isc.Browser.isIE&&isc.Browser.version<=8;isc.A.getMouseEventProperties=(isc.Browser.isIE?function(_1){var _2=this.lastEvent;if(!_1)_1=this.getWindow().event;_2.DOMevent=_1;_2.eventType=this.$i2[_1.type];_2.y=parseInt(_1.clientY)+this.ns.Page.getScrollTop();_2.x=parseInt(_1.clientX);if(!isc.Page.isRTL()){_2.x+=this.ns.Page.getScrollLeft()}else{if(isc.Browser.isIE&&isc.Browser.version<=7&&isc.Browser.isStrict&&isc.Page.getBodyOverflow()!=isc.Canvas.HIDDEN)
{if(!this.$946){if(isc.Browser.version<=6){this.$946=document.documentElement.offsetWidth-document.documentElement.clientWidth}else if(isc.Browser.version<=7){this.$946=document.documentElement.offsetWidth-document.body.offsetWidth}else{this.$946=document.body.offsetWidth-document.body.clientWidth}}
_2.x-=this.$946}}
_2.nativeTarget=_1.srcElement;var _3=_1.wheelDelta;if(_3!=null){_2.wheelDelta=-_3/120;_2.wheelDeltaY=_2.wheelDelta;_2.wheelDeltaX=0}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null}
_2.screenX=_1.screenX;_2.screenY=_1.screenY;if(isc.Browser.isIE9){if(_2.eventType===isc.EH.POINTER_UP||_2.eventType===isc.EH.MOUSE_UP)
{if(_1.button==0)_2.buttonNum=1;else if(_1.button==1)_2.buttonNum=4;else if(_1.button==2)_2.buttonNum=2;else _2.buttonNum=0}else{_2.buttonNum=_1.buttons}}else{_2.buttonNum=_1.button}
_2.shiftKey=(_1.shiftKey==true);_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true);_2.target=this.getEventTargetCanvas(_1,_2.nativeTarget,_2);return _2}:function(_1){var _2=this.lastEvent;_2.DOMevent=_1;_2.eventType=this.$i2[_1.type];var _3=false;if(isc.Browser.isMobileWebkit){if(isc.startsWith(_2.eventType,"touch")){if(_2.eventType==isc.EH.TOUCH_END){_3=true}else if(_1.touches!=null&&_1.touches[0]!=null){var _4=_1.touches[0];_2.clientX=_4.clientX;_2.clientY=_4.clientY;_2.screenX=_4.screenX;_2.screenY=_4.screenY;_2.x=_4.pageX;_2.y=_4.pageY;if(isc.Browser.isIPad&&isc.Browser.isMobileSafari&&isc.Browser.iOSVersion==7&&isc.Page.getOrientation()==="landscape")
{var _5=this.getDocumentBody(),_6=_5.getBoundingClientRect();var _7=Math.max(0,(-_6.top)<<0);_2.screenY+=((-_5.scrollTop+_7)*isc.Page.$130f())<<0;_2.y+=-_5.scrollTop+_7}}}else if(isc.Browser.isAndroid&&_1.type==isc.EH.CLICK){_2.screenX=_1.screenX;_2.screenY=_1.screenY;_2.x=parseInt(_1.clientX)+isc.Page.getScrollLeft(true);_2.y=parseInt(_1.clientY)+isc.Page.getScrollTop()}}else{_2.screenX=_1.screenX;_2.screenY=_1.screenY;if(_2.eventType!=this.MOUSE_WHEEL){var _8=true;_2.x=parseInt(_1.clientX)+(_8?isc.Page.getScrollLeft(true):0);_2.y=parseInt(_1.clientY)+(_8?isc.Page.getScrollTop():0)}}
_2.nativeTarget=_1.target;_2.$j5=null;_2.target=this.getEventTargetCanvas(_1,_2.nativeTarget,_2);if(_2.eventType==this.MOUSE_WHEEL){var _9=_1.wheelDeltaY,_10=_1.wheelDeltaX,_11=_1.wheelDelta,_12=_11,_13=_1.detail,_14=_1.axis;if(_9!=null||_10!=null){_2.wheelDeltaX=_10==null?0:-_10/120;_2.wheelDeltaY=_9==null?0:-_9/120;_2.wheelDelta=_2.wheelDeltaY}else{if(_13==0||(_13==null&&_11!=null)){var _12=_1.wheelDelta;if(_12!=null){_2.wheelDelta=-_12/120;_2.wheelDeltaY=_2.wheelDelta;_2.wheelDeltaX=0}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null}}else{if(isc.Canvas.useNativeWheelDelta&&_1.detail==_1.SCROLL_PAGE_UP){_2.wheelDelta=-Math.floor(_2.target.height/isc.Canvas.scrollWheelDelta)}else if(isc.Canvas.useNativeWheelDelta&&_1.detail==_1.SCROLL_PAGE_DOWN){_2.wheelDelta=Math.floor(_2.target.height/isc.Canvas.scrollWheelDelta)}else{var _15=_14==null||_14==2;var _12=_1.detail/3;if(!isc.isA.Number(_12))_12=0;if(_15){_2.wheelDelta=_12;_2.wheelDeltaY=_12;_2.wheelDeltaX=0}else{_2.wheelDelta=0;_2.wheelDeltaY=0;_2.wheelDeltaX=_12}}}}}else{_2.wheelDelta=null;_2.wheelDeltaX=null;_2.wheelDeltaY=null}
if(_2.eventType==isc.EH.MOUSE_MOVE||_2.eventType==isc.EH.TOUCH_MOVE||_2.eventType==isc.EH.POINTER_MOVE)
{if(!this.$j6)_2.buttonNum=0}else if(isc.Browser.isTouch){if(_1.targetTouches&&_1.targetTouches.length>1){_2.buttonNum=2}else{_2.buttonNum=1}}else{if(_1.which==2){_2.buttonNum=4}else{_2.buttonNum=(_1.which==1||(isc.Browser.isSafari&&_1.which==65536)?1:2)}}
_2.shiftKey=(_1.shiftKey==true);_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true);return _2});isc.A.$688="f1";isc.A.$689="help";isc.A.HARD="hard";isc.A.SOFT="soft";isc.A.SOFT_CANCEL="softCancel";isc.A.$j7=0;isc.A.clickMaskRegistry=[];isc.A.$cp='ID';isc.B.push(isc.A.handleSyntheticEvent=function isc_c_EventHandler_handleSyntheticEvent(_1){var _2=_1.target;_1.$49s=true;if(_2){_1.clientX+=_2.getPageLeft();_1.clientY+=_2.getPageTop();if(isc.Browser.isIE){_1.clientX+=_2.getLeftMargin()+_2.getLeftBorderSize()+_2.getLeftPadding()+2;_1.clientY+=_2.getTopMargin()+_2.getRightBorderSize()+_2.getTopPadding()+2}
switch(_1.type){case"mouseup":this.handleMouseUp(_1);break;case"mousedown":this.handleMouseDown(_1);break;case"mousemove":this.handleMouseMove(_1);break}}},isc.A.handleEvent=function isc_c_EventHandler_handleEvent(_1,_2,_3,_4){this.$77e=_2;var _5=isc.EH;var _6;if(isc.Page.handleEvent(_1,_2,_3,_4)==false){_6=false}else if(_5.targetIsEnabled(_1)&&_5.bubbleEvent(_1,_2,_3,null,_4)==false)
{_6=false}else{_6=true}
delete this.$77e;return _6},isc.A.handleLoad=function isc_c_EventHandler_handleLoad(_1){if(isc.SA_Page)isc.SA_Page.$o();if(!isc.Browser.isMoz){if(isc.EH.$j8()&&document&&document.body){document.body.addEventListener("unload",isc.EH.handleUnload,false)}}
if(isc.Log.supportsOnError){return(isc.Page.handleEvent(null,isc.EH.LOAD)!=false)}else{try{return(isc.Page.handleEvent(null,isc.EH.LOAD)!=false)}catch(e){isc.Log.$am(e);throw e;}}},isc.A.handleUnload=function isc_c_EventHandler_handleUnload(_1){var _2=isc.EH;var _3=(isc.Page.handleEvent(null,_2.UNLOAD)!=false);if(_3==true){this.releaseEvents()}
return _3},isc.A.$j9=function isc_c_EventHandler__handleNativeKeyDown(_1,_2){if(!isc.Page.isLoaded())return false;var _3=isc.EH;var _4=_3.lastEvent;if(!_1)_1=_3.getWindow().event;_3.getKeyEventProperties(_1);if(isc.Browser.isIE&&_4.keyName==this.$688&&!_2){return}
var _5=true;var _6=_4.keyName,_7=_4.characterValue;var _8=_3.$85t.duplicate();for(var i=0;i<_8.length;i++){var _10=_8[i];if(_10==null||_10==_6)break;if(this.$90x(_10))continue;_4.characterValue=null;_4.keyName=_10;this.handleKeyPress();_3.$85z[_4.keyName]=true}
_4.keyName=_6;_4.characterValue=_7;var _11=this.$90x(_6);if(_3.$85t.indexOf(_4.keyName)!=-1){if(!_11){_5=_3.handleKeyPress();_3.$85z[_4.keyName]=true}}else{_5=_3.handleKeyDown(_1)}
if(_5!=false&&_4.keyName){_3.$85t[_3.$85t.length]=_4.keyName}
_3.$885=_4.ctrlKey;_3.$886=_4.altKey;if(_5!=false&&_11){_5=_3.handleKeyPress(_1);_3.$85z[_4.keyName]=true}
if(_5==false){this.cancelKeyEvent(_1)}
return _5},isc.A.$90x=function isc_c_EventHandler__fireKeypressOnKeyDown(_1){return false},isc.A.$947=function isc_c_EventHandler__mozFireKeypressOnKeyDown(_1){return _1==this.$je&&this.shiftKeyDown()},isc.A.$948=function isc_c_EventHandler__ieFireKeypressOnKeyDown(_1){var _2=isc.EH;if(_2.$i8[_1]!=null)return true;return _2.$949()},isc.A.$95a=function isc_c_EventHandler__safariFireKeypressOnKeyDown(_1){var _2=isc.EH;var _3=_2.lastEvent;if(!isc.Browser.isMac){if(_2.lastEvent.altKey&&_2.lastEvent.shiftKey&&_2.$173j[_1])
{return true}
if(_2.$949(_2.lastEvent,true))return true}
if(_2.$90v[_1]!=null)return true;return _2.$944[_1]!=null&&_2.$949()},isc.A.$173g=function isc_c_EventHandler__operaFireKeypressOnKeyDown(_1){var _2=isc.EH;var _3=_2.lastEvent;if(!isc.Browser.isMac){if(_2.$949())return true}
return!!_2.$173i[_1]},isc.A.$949=function isc_c_EventHandler__modifierKeyDownOnly(_1,_2){if(!_1)_1=this.lastEvent;if(isc.Browser.isMac)return _1.metaKey&&!_1.altKey&&(_2||!_1.shiftKey);else return(_1.ctrlKey&&!_1.metaKey&&!_1.altKey&&(_2||!_1.shiftKey))||(_1.altKey&&!_1.metaKey&&!_1.ctrlKey&&!_1.shiftKey)},isc.A.handleKeyDown=function isc_c_EventHandler_handleKeyDown(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5;var _6=_3.eventHandledNatively(_4.eventType,_4.nativeKeyTarget);if(_6)_5=_3.$js;if(_2!=null)isc.addProperties(_4,_2);if(!_6){var _7=[_4,_4.target,_4.keyName];var _8=_4.keyTarget;if(_8==null)_8=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_8)){_5=(_3.bubbleEvent(_8,_3.KEY_DOWN,_7)!=false)}}
return _5},isc.A.$kb=function isc_c_EventHandler__handleNativeKeyUp(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH,_3=_2.lastEvent;if(!_1)_1=_2.getWindow().event;_2.getKeyEventProperties(_1);_2.$885=_3.ctrlKey
_2.$886=_3.altKey
_2.$85z[_3.keyName]=null;if(_2.$85t.indexOf(_2.lastEvent.keyName)!=-1){if(_2.handleKeyPress(_1)==false){this.cancelKeyEvent(_1);return false}}
var _4=_2.handleKeyUp(_1)
return _4},isc.A.handleKeyUp=function isc_c_EventHandler_handleKeyUp(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5=[_4,_4.target,_4.keyName];if(_3.eventHandledNatively(_4.eventType,_4.nativeKeyTarget)){return _3.$js}
var _6=true;if(_2!=null){isc.addProperties(_4,_2)}
var _7=_4.keyTarget;if(_7==null)_7=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_7))
_6=(_3.bubbleEvent(_7,_3.KEY_UP,_5)!=false);if(!isc.Browser.isMac&&_4.keyName==_3.$je&&_3.shiftKeyDown()&&isc.Menu&&isc.Menu.$kc&&isc.Menu.$kc.length>0)
{_6=false}
isc.Page.$151e();_3.clearKeyEventProperties(_4.keyName);return _6},isc.A.$kd=function isc_c_EventHandler__handleNativeKeyPress(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH;var _3=_2.lastEvent,_4=_2.KEY_PRESS;if(!_1)_1=_2.getWindow().event;_2.getKeyEventProperties(_1);_3.eventType=_4;_3.ctrlKey=_2.$885;_3.altKey=_2.$886;var _5=_2.$173h(_3.keyName);if(_5!=null){_2.$85z[_5]=null;return}
var _6=_2.handleKeyPress(_1);if(_6==false){this.cancelKeyEvent(_1)}
return _6},isc.A.$173h=function isc_c_EventHandler__testSyntheticKeypressFired(_1){var _2=isc.EH;if(_2.$85z[_1]==true)return _1;if(_1=="J"&&_2.$85z["Enter"]==true)return"Enter";return null},isc.A.cancelKeyEvent=function isc_c_EventHandler_cancelKeyEvent(_1){if(isc.Browser.isIE||isc.Browser.isSafari){if(this.$70a[_1.type]==true){try{_1.keyCode=0}catch(e){}}}},isc.A.handleKeyPress=function isc_c_EventHandler_handleKeyPress(_1,_2){var _3=isc.EH,_4=_3.lastEvent,_5=_3.KEY_PRESS;if(_2!=null){isc.addProperties(_4,_2)}
var _6={keyName:_4.keyName,characterValue:_4.characterValue};_4.eventType=_5;_3.$85t.removeAt(0);if(isc.Page.handleEvent(_4.keyTarget,_5)==false)return false;var _7=(_3.eventHandledNatively(_5,_4.nativeKeyTarget));if(_7!==false){_3.logDebug("keyPress handled natively");return _3.$js}else{_3.logDebug("keyPress not handled natively")}
var _8=_4.keyTarget;if(_8==null)_8=this.getEventTargetCanvas(_1,_4.nativeKeyTarget);if(_3.targetIsEnabled(_8)){var _9=_3.bubbleEvent(_8,_4.eventType,_6)
if(_9==false)return false}
if(_9!=_3.STOP_BUBBLING&&isc.Page.handleKeyPress()==false)return false;if(_4.keyName==this.$jf){var _10,_11=this.clickMaskRegistry;if(this.clickMaskUp()){for(var i=_11.length-1;i>=0;i--){if(this.isHardMask(_11[i])){_10=_11[i];break}}}
var _13=_3.$ke;var _14=_10!=null||(_13&&_13.useExplicitFocusNavigation())
if(_14){if(_13!=null){this.logInfo("Telling focus canvas:"+_13+" to shift focus","syntheticTabIndex")
_13.$kf(!this.shiftKeyDown(),_10)}else{var _15=!this.shiftKeyDown();this.logInfo("Putting focus into "+(_15?"first":"last")+" widget in response to Tab keydown","syntheticTabIndex");isc.TabIndexManager.shiftFocus(null,_15)}
return false}}
if(_4.keyName==isc.EH.$je&&isc.EH.shiftKeyDown()){var _16=this.handleContextMenu(_1,true);if(isc.Browser.isIE&&_16){this.$ki=true}
return _16}
if(isc.Browser.isMoz&&isc.RPCManager&&isc.RPCManager.$410.length>0&&_4.keyName==isc.EH.$20w)
{return false}
return true},isc.A.handleMouseLeaveDocument=function isc_c_EventHandler_handleMouseLeaveDocument(_1){var _2=isc.EH;_2.$168i=!!_2.$j6},isc.A.handleMouseDown=function isc_c_EventHandler_handleMouseDown(_1,_2){if((isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;var _3=isc.EH;_3.$km=true;var _4=_3.doHandleMouseDown(_1,_2);_3.$km=false;return _4},isc.A.doHandleMouseDown=function isc_c_EventHandler_doHandleMouseDown(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this;_3.$j6=true;_3.$94x=null;var _4=_2||_3.getMouseEventProperties(_1);var _5=_3.$ke,_6=_5!=null&&(_5!=_4.target)&&!_5._useNativeTabIndex&&!_5._useFocusProxy&&!(isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_5)&&_5.getFocusSubItem()&&_5.getFocusSubItem().hasFocus);if(_6){if(isc.Browser.isIE){var _7=_3.$ke.getID();if(_3.$ko==null)
_3.$ko=["if (",_7," && ",_7,".hasFocus)",_7,".blur();"]
else
_3.$ko[1]=_3.$ko[3]=_3.$ko[5]=_7;isc.Timer.setTimeout(_3.$ko.join(isc.emptyString),0)}else{_3.$ke.blur()}}
_3.mouseDownEvent=isc.addProperties({},_4);var _8=_4.target;if(isc.Browser.isAndroid&&isc.Browser.isChrome&&isc.isA.Canvas(_8)&&_8.isDrawn()){var _9=_8.getTopLevelCanvas();_9.getClipHandle().dataset.iscMouseDownEventTimeStamp=String(_4.DOMevent.timeStamp)}
var _10=(_3.clickMaskClick(_8)==false);if(_10){_3.$kp=true;if(isc.Browser.isChrome){var _11=isc.Element.getNativeScrollbarSize();var _12=isc.Page.getHeight(),_13=isc.Page.getWidth(),_14=isc.Page.getScrollWidth()>isc.Page.getWidth(),_15=isc.Page.getScrollHeight()>isc.Page.getHeight();if(_14&&isc.EH.getY()>(_12-_11)+isc.Page.getScrollTop()){return true}
if(_15&&isc.EH.getX()>_13+isc.Page.getScrollLeft()){return true}}
return false}else{_3.$kp=false}
var _16=_3.rightButtonDown()?_3.RIGHT_MOUSE_DOWN:_3.MOUSE_DOWN;if(isc.Page.handleEvent(_8,_16)==false){return false}
if(_3.eventHandledNatively(_16,_4.nativeTarget))
return _3.$js;if(!_3.targetIsEnabled(_8))return false;var _17;if(_8&&!_8.hasFocus){if(((isc.Browser.isMoz&&_8.canSelectText)||isc.Browser.isSafari)&&_8._useFocusProxy)
{_3.focusInCanvas(_8)}else if(!_8._useNativeTabIndex){_8.focus("focus on mousedown")}else if(isc.Browser.isMoz||isc.Browser.isSafari){_8.focus("focus on mousedown")}else if(isc.Browser.isIE){var _18=_4.nativeTarget;if(isc.Browser.isStrict){_17=_8}else{if(_18&&_18.tagName==this.$jg){var _19=_18.style,_20=_19?_19.filter:null;if(_20.contains(this.$jh)){_17=_8}}}}}
if(_8)_3.prepareForDragging(_8);var _21=_3.bubbleEvent(_8,_16,null,_10);if(_17!=null)_17.focus();if(_21==false){delete _3.dragTarget;delete _3.dragTargetLink}
if(_3.rightButtonDown()){if(!this.useSyntheticRightButtonEvents())return true;if(_8&&(_3.getBubbledProperty(_8,"contextMenu")||_3.getBubbledProperty(_8,"showContextMenu",true)!=isc.Canvas.getInstanceProperty("showContextMenu")))
{_4.returnValue=false;return false}
return true}
if(_21!=false){if(_3.hasEventHandler(_8,_3.MOUSE_STILL_DOWN)){_3.$kq(true)}}
var _22=(_3.dragTarget!=null&&_3.dragOperation!=_3.DRAG_SELECT);var _23=_21==false?false:(isc.Browser.hasNativeDrag&&_8.$120u())||(!_22&&((_3.$94y==_3.$94w.TOUCH_STARTED)||!(isc.Browser.isMoz||isc.Browser.isSafari)||!!_8.$kr(_4)));return _23},isc.A.stillWithinMouseDownTarget=function isc_c_EventHandler_stillWithinMouseDownTarget(){var _1=this.mouseDownTarget();if(!_1)return false;var _2=this.lastEvent;var _3=(_1==_2.target);if(!_3)return false;if(_2.$j5!=null)return _2.$j5;return _3},isc.A.handleMouseMove=function isc_c_EventHandler_handleMouseMove(_1){if(!isc.Page.isLoaded())return false;var _2=isc.EH;if(!_2.nativeDragging&&(isc.Browser.isTouch||navigator.pointerEnabled))return;if(_2.$km||_2.$ku)return;var _3=_2.getMouseEventProperties(_1);if(_2.$168h&&_2.$168i!=null)
{if(_2.$168i){if(_3.buttonNum==0){_2.handleMouseUp(_1,true)}}
_2.$168i=null}
if((isc.Browser.isMoz||isc.Browser.isIE)&&!_2.immediateMouseMove&&!_2.nativeDragging){if(_2.delayedMouseMoveTimer==null){_2.delayedMouseMoveTimer=isc.Timer.setTimeout({target:_2,methodName:"$kv",args:[isc.timeStamp()]},0,true)}
return true}
var _4=_2.$kx(_1,_3);return _4},isc.A.$kv=function isc_c_EventHandler__delayedMouseMove(_1){this.delayedMouseMoveTimer=null;this.$kx(null,this.lastEvent)},isc.A.$kx=function isc_c_EventHandler__handleMouseMove(_1,_2){this.$ky=true;var _3=this.$kz(_1,_2);this.$ky=null;return _3},isc.A.$kz=function isc_c_EventHandler___handleMouseMove(_1,_2){var _3=this;var _4=_3.mouseIsDown();var _5=(_4&&_3.dragTarget&&(!isc.Browser.hasNativeDrag||!_3.dragTarget.$120u())&&!_3.dragging)
if(_5&&isc.Menu&&isc.Menu.$kc&&isc.Menu.$kc.length>0){if(!_3.dragTarget.$131p&&!isc.isA.Menu(_3.dragTarget)&&_3.mouseDownEvent.$173o!=null&&(_3.mouseDownEvent.$173o==isc.Menu.mouseDownEventID))
{_5=false}}
var _6;if(isc.Browser.isIE&&_2.originalType!==_3.POINTER_MOVE){var _7=_2.buttonNum;if(_4){if(!_5&&_7==0){if(_3.dragging){}else{_6=true}}}else if(_7==1&&_2.eventType==_3.MOUSE_MOVE){if(_3.$94x){}else{_2.eventType=_3.MOUSE_DOWN;_3.handleMouseDown(null,_2);_2.eventType=_3.MOUSE_MOVE}}}
var _8=_2.target,_9=_3.eventHandledNatively(_3.MOUSE_MOVE,_2.nativeTarget);if(_3.$k0){_3.handleMouseUp(_1,true)}else if(_6){_3.logInfo("sythesizing mouseUp "+(_3.$k1?"due to mouseUp outside window,":"[buttonNum cleared on mouseMove with no mouseUp event],")+" buttonNum: "+_2.buttonNum);_3.handleMouseUp(_1,true)}
delete _3.$k1;if(!_3.mouseIsDown()){_5=_4=false}
if(isc.Browser.isMoz&&(isc.Browser.geckoVersion<20100914)&&_4&&_2.target&&_2.target.$ks&&_2.target!=_3.mouseDownTarget())
{_2.nativeDraggingTarget=_2.nativeTarget;_2.nativeTarget=null;_8=_2.target=_3.mouseDownTarget()}
if(_5&&(Math.abs(_2.x-_3.mouseDownEvent.x)>_3.dragTarget.dragStartDistance||Math.abs(_2.y-_3.mouseDownEvent.y)>_3.dragTarget.dragStartDistance))
{_3.handleDragStart()}
if(_3.dragging){return _3.handleDragMove()}
if(_3.rightButtonDown()){if(!isc.Browser.isMac||!_3.ctrlKeyDown())return true}
if(_3.enableMouseMoveBackCompat&&_4){_8=_3.stillWithinMouseDownTarget()?_3.mouseDownTarget():null}else{_8=_2.target}
if(_8!=_3.lastMoveTarget){if(this.logIsDebugEnabled()){this.logDebug((_3.lastMoveTarget?"mousing out of "+_3.lastMoveTarget+"  ":"")+(_8?"mousing over "+_8:""))}
var _10=_3.lastMoveTarget,_11,_12=_3.lastHoverTarget;if(_10){delete _3.lastMoveTarget;_3.handleEvent(_10,_3.MOUSE_OUT,null,_3.lastMoveTargetItem)}
if(_8){var _13=_3.handleEvent(_8,_3.MOUSE_OVER);if(_13!=false)_11=_8.getHoverTarget(_2)}
if(_11!=_12){if(_12)_12.stopHover();if(_11)_11.startHover();_3.lastHoverTarget=_11}
_3.lastMoveTarget=_8;_3.lastMoveTargetItem=isc.DynamicForm&&isc.isA.DynamicForm(_8)?isc.DynamicForm.$172c():null}
if(isc.Page.handleEvent(_8,_3.MOUSE_MOVE)==false)return false;if(_9)return _3.$js;if(!_3.targetIsEnabled(_8))return false;_3.bubbleEvent(_8,_3.MOUSE_MOVE);if(_8)_8.$k2();return true},isc.A.getNativeMouseTarget=function isc_c_EventHandler_getNativeMouseTarget(_1){if(!this.nativeTargetWarningLogged){this.nativeTargetWarningLogged=true;this.logWarn("getNativeMouseTarget(). This method will return the DOM element the browser reports as the target or source of the current mouse event. Please note that SmartClient cannot guarantee that the same element will be reported in all browser/platform configurations for all event types. If you wish to make use of this value, we recommend testing your use case in all target browser configurations.")}
if(_1==null)_1=this.lastEvent;return _1.nativeTarget||_1.nativeDraggingTarget},isc.A.handleNativeMouseOut=function isc_c_EventHandler_handleNativeMouseOut(_1){if(isc.Browser==null)return;var _2=isc.EH;if(_2.$km||_2.$ku)return;var _3=(_1?_1:_2.getWindow().event),_4=(isc.Browser.isDOM?_3.target:_3.srcElement),_5=false;if(isc.Browser.isIE){_5=(_3.toElement==null)}else{_5=(_3.relatedTarget==null)}
if(_5)_2.$k1=true;var _6=_2.lastMoveTarget;if(_5&&_6){_2.$k3(_3);delete _2.lastMoveTarget;_2.handleEvent(_6,_2.MOUSE_OUT,null,_2.lastMoveTargetItem);if(_2.lastHoverTarget){_2.lastHoverTarget.stopHover();delete _2.lastHoverTarget}}},isc.A.$k3=function isc_c_EventHandler__updateMouseOutEventProperties(_1){var _2=isc.EH;var _3=_2.lastEvent;if(isc.Browser.isIE){_3.nativeTarget=_1.toElement}else{_3.nativeTarget=_1.relatedTarget}
if(_3.nativeTarget==null)_3.target=null
else _3.target=this.getEventTargetCanvas(_1,_3.nativeTarget)},isc.A.$kq=function isc_c_EventHandler__handleMouseStillDown(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this;_3.$k4=isc.Timer.clear(_3.$k4);if(!_3.mouseIsDown()||!_3.mouseDownTarget())return false;if(_3.bubbleEvent(_3.mouseDownTarget(),_3.MOUSE_STILL_DOWN)==false)return false;var _4=_3.mouseDownTarget(),_5=(_1&&_4.mouseStillDownInitialDelay)?_4.mouseStillDownInitialDelay:_4.mouseStillDownDelay;_3.$k4=this.delayCall("$kq",[],_5);return true},isc.A.handleMouseUp=function isc_c_EventHandler_handleMouseUp(_1,_2){var _3=isc.EH;if(!_3.nativeDragging&&(isc.Browser.isTouch||navigator.pointerEnabled)&&!_2)return;if(isc.Browser.isIE&&!_3.$j6){if(_3.$94x)return;var _4=_3.lastEvent;_4.eventType=_3.MOUSE_DOWN;_3.handleMouseDown(null,_3.lastEvent)}
_3.$94x=_2&&_3.$168i==null;if(!_2)_3.$ku=true;var _5=_3.$k5(_1,_2);_3.$ku=false;if(isc.Browser.isSafari)_5=true;return _5},isc.A.$k5=function isc_c_EventHandler__handleMouseUp(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this,_4=(!_2?_3.getMouseEventProperties(_1):_3.lastEvent),_5=false;_3.$j6=false;delete _3.$k6;_3.$k4=isc.Timer.clear(_3.$k4);var _6=_3.$k7;if(_6){_6.focus();_3.$k7=null}
var _7=_3.$kp;_3.$kp=null;var _8;if(_7==null){_7=(_3.clickMaskClick(_4.target)==false);_8=_7}
if(_7==true){if(_3.logIsDebugEnabled())_3.logDebug("mouseUp cancelled by clickMask");return false}
var _9=false;if(_3.dragging){_9=_3.handleDragStop()}
if(_3.rightButtonDown(_4)){if(this.useSyntheticRightButtonEvents()){_3.handleContextMenu()}
_3.$k6=false}else{if(!_9){if(isc.Page.handleEvent(_4.target,_3.MOUSE_UP)!=false){var _10=true,x=_4.x,y=_4.y,_13=_3.mouseDownTarget();_5=_3.eventHandledNatively(_3.MOUSE_UP,_4.nativeTarget);if(!_5&&_3.targetIsEnabled(_13)){if(_13.visibleAtPoint(x,y)){_10=_3.bubbleEvent(_13,_3.MOUSE_UP,null,_8)}else if(_3.$94y===_3.$94w.TOUCH_ENDING||_13.containsPoint(x,y)){_10=_3.bubbleEvent(_13,_3.MOUSE_OUT,null,_8)}}
if(_10!=false&&(_3.$94y!==_3.$94w.TOUCH_ENDING||(_3.mouseDownEvent!=null&&Math.abs(_3.mouseDownEvent.x-x)<=10&&Math.abs(_3.mouseDownEvent.y-y)<=10)))
{var _14;if(_3.$94y===_3.$94w.TOUCH_ENDING&&(_14=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement))!=null&&(!isc.Browser.isAndroid||_4.originalType!==_3.CLICK))
{if(!_3.$145u(_14)){var _15=_1.view.document;var _16=_15.createEvent("MouseEvents");_16.initMouseEvent("click",true,true,_1.view,1,_1.screenX,_1.screenY,_1.clientX,_1.clientY,false,false,false,false,0,null);_16.$145v=true;window.setTimeout(function(){_14.dispatchEvent(_16)},1)}}
_3.$k6=_3.handleClick(_4.target)}}}}
delete _3.redrawnWhileDown;_3.clearDragProperties();if(_3.$k0)_3.$k0=false;var _17=_4.target,_18=isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_17);if(_5&&(_18||_3.$k6==true))
return _3.$js;return(_18&&_3.$k6==true)});isc.evalBoundary;isc.B.push(isc.A.clearDragProperties=function isc_c_EventHandler_clearDragProperties(){var _1=this;_1.wasNativeDragging=false;_1.crossFrameDragging=_1.nativeDragging=_1.dragging=false;delete _1.$1198;if(_1.$119z!=null){isc.Timer.clear(_1.$119z);delete _1.$119z}
delete _1.dragTarget;delete _1.dragTargetStartRect;delete _1.dragTargetLink;delete _1.dragMoveTarget;delete _1.dragMoveAction;delete _1.dragOperation;delete _1.dragAppearance;delete _1.dropTarget;delete _1.lastDropTarget},isc.A.handleContextMenu=function isc_c_EventHandler_handleContextMenu(_1,_2){if(!isc.Page.isLoaded())return false;var _3=isc.EH;_3.$ku=true;var _4=_3.$k8(_1,_2);_3.$ku=false;return _4},isc.A.$k8=function isc_c_EventHandler__handleContextMenu(_1,_2){var _3=this.isMouseEvent(this.lastEvent.eventType);if(this.$ki){delete this.$ki;if(!_2){return true}}
if(_1)this.getMouseEventProperties(_1);var _4=this,_5=_4.lastEvent,_6=!_3?_5.keyTarget||_5.target:_5.target;_5.keyboardContextMenu=!_3;_5.eventType="contextMenu";if(!_3){_5.x=_6?_6.getPageLeft():0;_5.y=_6?_6.getPageTop():0}
if(isc.Browser.isSafari&&_4.clickMaskClick(_6)==false){return false}
if(isc.Page.handleEvent(_6,_4.SHOW_CONTEXT_MENU)==false){return false}
var _7=true;if(_4.targetIsEnabled(_6)){_7=_4.bubbleEvent(_6,_4.SHOW_CONTEXT_MENU)}
if(_7!=false){var _8=_4.lastMoveTarget;if(_8){delete _4.lastMoveTarget;_4.handleEvent(_8,_4.MOUSE_OUT,null,_4.lastMoveTargetItem)}}
return _7},isc.A.handleNativeClick=function isc_c_EventHandler_handleNativeClick(_1){var _2=isc.EH,_3=(_2.$k6!=false);delete _2.$k6;if(_1.$145v)return _3;if(isc.Browser.isAndroid){if(isc.Browser.isChrome){var _4=_2.mouseDownEvent;if(_4!=null){var _5=_2.lastEvent.target;_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);if(isc.isA.Canvas(_6.target)){var _7=_6.target.getTopLevelCanvas();var _8=_7.getClipHandle();var _9=_8.dataset.iscMouseDownEventTimeStamp;if(_9==null||parseFloat(_9)<_4.DOMevent.timeStamp){_1.preventDefault();return false}}
if(_5!=null&&(_5!==_6.target||_5.$146b!=null&&_5.$146b(_4,_6)))
{_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_6);_6.eventType=_2.MOUSE_DOWN;_2.doHandleMouseDown(_1,_6);_6.eventType=_2.MOUSE_UP;_2.$k5(_1,true)}}}else{_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);switch(this.$94y){case _2.$94w.READY_FOR_TOUCH:_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_6);_6.eventType=_2.MOUSE_DOWN;_2.doHandleMouseDown(_1,_6);case _2.$94w.TOUCH_STARTED:_6.originalType=_2.CLICK;_6.eventType=_2.MOUSE_UP;_2.$k5(_1,true);break;case _2.$94w.TOUCH_COMPLETE:if(isc.Browser.isAndroidWebView&&isc.Browser.androidMinorVersion<4.4){var _10=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement);if(!_2.$145u(_10)){_1.preventDefault();return false}}
break}
this.$94y=_2.$94w.READY_FOR_TOUCH}}
if(isc.Browser.isIE&&!isc.Browser.isIE10){_2.DOMevent=_1;var _6=_2.getMouseEventProperties(_1);if(_6.target&&_6.target.$120u())return false}},isc.A.handleClick=function isc_c_EventHandler_handleClick(_1,_2){if(!isc.Page.isLoaded())return false;var _3=this,_4=_3.lastEvent,_5;if(!_2)_2=(_3.isDoubleClick(_1)?_3.DOUBLE_CLICK:_3.CLICK);if(isc.Page.handleEvent(_1,_2)==false){_5=false}else if(_3.eventHandledNatively(_2,_4.nativeTarget)){_5=_3.$js}else if(!_3.targetIsEnabled(_1)){_5=false}else if(_3.$94y!==_3.$94w.TOUCH_ENDING&&!_3.stillWithinMouseDownTarget())
{_5=false}else{var _1=_3.mouseDownTarget();_5=_3.bubbleEvent(_1,_2)}
_3.$k9=isc.timeStamp();return _5},isc.A.isDoubleClick=function isc_c_EventHandler_isDoubleClick(_1){var _2=this,_1=_1||_2.lastEvent.nativeTarget;var _3=_2.useNativeEventTime!=null?_2.useNativeEventTime:(isc.Browser.isMoz&&isc.Browser.isWin),_4,_5;if(_2._isSecondClick!=null){_5=_2._isSecondClick}else{if(_3){var _6=_2.lastEvent.DOMevent
_4=_6?_6.timeStamp:null;if(_4==0||!isc.isA.Number(_4)){this.logDebug("Unable to derive native 'timeStamp' attribute from DOM event");_4=isc.timeStamp()}
_5=((_4-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY)}else{_4=isc.timeStamp();_5=((_2.$k9-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY)?((_4-_2.lastClickTime)<_2.DOUBLE_CLICK_DELAY):((_4-_2.$k9)<100)}}
_2.lastClickTime=_4;if(!_5){delete _2.lastClickTarget}
var _7=false;if(_1==_2.lastClickTarget){_7=!_1.noDoubleClicks;if(_7){var _8=_1;while(_8.parentElement){_8=_8.parentElement;if(_8.noDoubleClicks){_7=false;break}}}}
_2.lastClickTarget=(_7?null:_1);return _7},isc.A.targetIsEnabled=function isc_c_EventHandler_targetIsEnabled(_1){if(!_1)return false;if(_1.destroyed)return false;if(isc.isA.Function(_1.isDisabled))return!_1.isDisabled();return true},isc.A.$149j=function isc_c_EventHandler__handlePointerDown(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77p(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_DOWN;return _2.doHandleMouseDown(_1,_3)}},isc.A.$149k=function isc_c_EventHandler__handlePointerMove(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77q(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_MOVE;return _2.$kx(_1,_3)}},isc.A.$149l=function isc_c_EventHandler__handlePointerUp(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$77r(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_UP;return _2.$k5(_1,true)}},isc.A.$149m=function isc_c_EventHandler__handlePointerCancel(_1){var _2=isc.EH;if(_1.pointerType==="touch"){return _2.$86w(_1)}else{_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;_3.originalType=_3.eventType;_3.eventType=_2.MOUSE_UP;return _2.$k5(_1,true)}},isc.A.$129k=function isc_c_EventHandler__handlingTouchEventSequence(){var _1=isc.EH;return(_1.$94y!=null&&_1.$94y!=_1.$94w.READY_FOR_TOUCH&&_1.$94y!=_1.$94w.TOUCH_COMPLETE)},isc.A.$77p=function isc_c_EventHandler__handleTouchStart(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;delete _3.touchStartReturnValue;this.$94y=_2.$94w.TOUCH_STARTED;var _4=_2.handleEvent(_3.target,_2.TOUCH_START);if(_4!==false){_3.originalType=_2.TOUCH_START;_3.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_3);_3.eventType=_2.MOUSE_DOWN;_4=_2.doHandleMouseDown(_1,_3);if(_2.$78m!=null)isc.Timer.clear(_2.$78m);_2.$78m=this.delayCall("$78n",[],_2.longTouchDelay)}
return _3.touchStartReturnValue},isc.A.$78n=function isc_c_EventHandler__handleLongTouch(){var _1=isc.EH;_1.$78m=null;if(_1.dragging)return;if(!_1.mouseIsDown()||!_1.mouseDownTarget()||!_1.stillWithinMouseDownTarget())return;_1.bubbleEvent(_1.mouseDownTarget(),_1.LONG_TOUCH)},isc.A.$148k=function isc_c_EventHandler__isDescendantOfNativeTouchScrollableElement(_1){while(_1!=null){if(_1.$145k()&&(_1.hscrollOn||_1.vscrollOn)){return true}
_1=_1.parentElement}
return false},isc.A.$77q=function isc_c_EventHandler__handleTouchMove(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;var _4=_2.handleEvent(_3.target,_2.TOUCH_MOVE);if(_4!==false){_3.originalType=_2.TOUCH_MOVE;_3.eventType=_2.MOUSE_MOVE;_2.$kx(_1,_3);if(_2.dragging&&window.event!=null)window.event.preventDefault()}
if(_2.$78m!=null){isc.Timer.clear(_2.$78m);_2.$78m=null}
if(isc.Browser.isChrome){var _5=_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement);if(_2.dragTarget!=null){_1.preventDefault();return false}else if(_5!=null&&_5.tagName==="TEXTAREA"&&(_5.scrollWidth>_5.clientWidth||_5.scrollHeight>_5.clientHeight)){}else if(_3.target!=null){var _6=_3.target;if(isc.isA.DrawItem&&isc.isA.DrawItem(_6)){_6=_6.drawPane}
if(isc.isA.Canvas(_6)&&!_2.$148k(_6)){_1.preventDefault();return false}}}},isc.A.$145u=function isc_c_EventHandler__shouldIgnoreTargetElem(_1){var _2=this;if(_1==null)return true;var _3=_1.tagName;if(_3==="INPUT"){var _4=_1.type;if(_4==="submit"){if(_2.mouseDownEvent!=null&&_2.mouseDownEvent.DOMevent.target!=null&&!_1.contains(_2.mouseDownEvent.DOMevent.target))
{return true}}else if(_4!=="button"&&_4!=="checkbox"&&_4!=="file"&&_4!=="radio"){return true}}else if(_3==="LABEL"||_3==="SELECT"||_3==="TEXTAREA")
{return true}
return false},isc.A.$77r=function isc_c_EventHandler__handleTouchEnd(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;if(_2.$94y==_2.$94w.TOUCH_STARTED){_2.$94y=_2.$94w.TOUCH_ENDING}
var _4=_2.handleEvent(_3.target,_2.TOUCH_END);if(_4!==false){_3.originalType=_2.TOUCH_END;_3.eventType=_2.MOUSE_UP;_2.$k5(_1,true)}
if(_2.$94y==_2.$94w.TOUCH_ENDING){_2.$94y=_2.$94w.TOUCH_COMPLETE}
if(_2.$78m!=null){isc.Timer.clear(_2.$78m);_2.$78m=null}
var _5=(_1.target&&(_1.target.nodeType==1?_1.target:_1.target.parentElement));if(!_2.$145u(_5)){_1.preventDefault();return false}},isc.A.$86w=function isc_c_EventHandler__handleTouchCancel(_1){var _2=isc.EH;_2.DOMevent=_1;var _3=_2.getMouseEventProperties(_1);if(_2.eventHandledNatively(_1.type,_1.target))return _2.$js;if(_2.$94y==_2.$94w.TOUCH_STARTED){_2.$94y=_2.$94w.TOUCH_ENDING}
this.delayCall("$894",[_3,_1])},isc.A.$894=function isc_c_EventHandler__handleDelayedTouchCancel(_1,_2){var _3=isc.EH;var _4=_3.handleEvent(_1.target,_3.TOUCH_END);if(_4!==false){_1.originalType=_3.TOUCH_CANCEL
_1.eventType=_3.MOUSE_UP;_3.$k5(_2,true)}
if(_3.$94y==_3.$94w.TOUCH_ENDING){_3.$94y=_3.$94w.TOUCH_COMPLETE}
if(_3.$78m!=null){isc.Timer.clear(_3.$78m);_3.$78m=null}},isc.A.getFocusCanvas=function isc_c_EventHandler_getFocusCanvas(){return this.$ke},isc.A.$la=function isc_c_EventHandler__logFocus(_1,_2){if(!this.logIsDebugEnabled("nativeFocus"))return;this.logDebug((_2?"onfocus":"onblur")+" fired on: "+_1+this.$lb(),"nativeFocus")},isc.A.$lb=function isc_c_EventHandler__getActiveElementText(){if(!isc.Browser.isIE)return isc.$ad;var _1=this.getActiveElement();if(_1==null)return isc.$ad;return", activeElement: "+(_1.tagName)},isc.A.handleBlur=function isc_c_EventHandler_handleBlur(_1,_2){if(this.useFocusInEvents&&this.synchronousFocusNotifications){return}
return this.blurFocusCanvas(_1,_2)},isc.A.blurFocusCanvas=function isc_c_EventHandler_blurFocusCanvas(_1,_2){var _3=this.$lc;if(_2){this.$h1("BLR");this.$la(_1);isc.EH.$ld=null}
this.$le(_1,_2);if(_2)this.$lc=_3},isc.A.$le=function isc_c_EventHandler__blurFocusCanvas(_1,_2){if(this.$ke){var _3=this.$ke;if(_1!=null&&_3!=_1)return;this.$ke=null;_3.$lf(false)}},isc.A.handleFocus=function isc_c_EventHandler_handleFocus(_1,_2,_3){if(this.useFocusInEvents&&this.synchronousFocusNotifications){return}
return this.focusInCanvas(_1,_2,_3)},isc.A.focusInCanvas=function isc_c_EventHandler_focusInCanvas(_1,_2,_3){var _4=this.$lc;if(_2){this.$h1("FCS");this.$la(_1,true);isc.EH.$lg=null}
if(isc.Browser.isMoz){if(_2&&(this.lastEvent.eventType!=this.KEY_DOWN&&this.lastEvent.eventType!=this.KEY_PRESS&&this.lastEvent.eventType!=this.KEY_UP))
{if(_1&&_1.showFocusOutline)_1.setShowFocusOutline(false,true)}else{if(_1&&_1.showFocusOutline)_1.setShowFocusOutline(true,true)}}
this._focusInCanvas(_1,_2,_3);if(_2)this.$lc=_4},isc.A._focusInCanvas=function isc_c_EventHandler__focusInCanvas(_1,_2,_3){if(!_1||_1.hasFocus||!_1.$kk()||_1.isDisabled())return;if(this.$ke==_1)return;this.checkMaskedFocus(_1,_3);if(this.targetIsMasked(_1)&&!_1.$1196){var _4=this.clickMaskRegistry.last();this.setMaskedFocusCanvas(_1,_4)}
if(_2&&isc.Browser.isMoz){if(_1.parentElement)_1.parentElement.$lh(null,true)}
var _5=this.$ke;this.$ke=_1;if(_5)_5.$lf(false)
if(this.$ke!=_1)return;_1.$lf(true)},isc.A.setMaskedFocusCanvas=function isc_c_EventHandler_setMaskedFocusCanvas(_1,_2){if(!_2)return;_2.$li=_1},isc.A.getMaskedFocusCanvas=function isc_c_EventHandler_getMaskedFocusCanvas(_1){if(_1==null)_1=this.clickMaskRegistry.last();else _1=this.getClickMask(_1);if(_1)return _1.$li},isc.A.checkMaskedFocus=function isc_c_EventHandler_checkMaskedFocus(_1,_2){if(isc.Browser.isIE||isc.Browser.seleniumPresent){var _3=this.getActiveElement();var _4=_1&&!_1.destroyed?_1.getHandle():null;if(!_4)return;var _5;while(_3&&_3.tagName){if(_3==_4){_5=true;break}
if(_3.eventProxy){_5=(_3.eventProxy==_1.getID());break}
_3=_3.parentElement}
if(!_5)return}
if(isc.Browser.isMobileWebkit){if(isc.EH.isMouseEvent(isc.EH.lastEvent.eventType)&&(isc.EH.mouseDownTarget()==_1))
{return}}
var _6=this.clickMaskRegistry;for(var i=_6.length-1;i>=0;i--){var _8=_6[i];if(!this.targetIsMasked(_1,_8,null,_2))return;else{if(this.isHardMask(_8))return false;this.$lj(_8)}}},isc.A.prepareForDragging=function isc_c_EventHandler_prepareForDragging(_1){var _2=this;if(_2.dragging)_2.handleDragStop();delete _2.dragMoveAction;delete _2.dragTarget;_2.bubbleEvent(_1,"prepareForDragging");if(!_2.dragTarget){if(this.logIsDebugEnabled("dragDrop"))this.logDebug("No dragTarget, not dragging","dragDrop");return}
if(this.logIsInfoEnabled("dragDrop"))
this.logInfo("target is draggable with dragOperation: "+_2.dragOperation+", dragTarget is : "+_2.dragTarget+(_2.dragTarget!=_1?" (delegated from: "+_1+")":""),"dragDrop");_2.dragTargetStartRect=_2.dragTarget.getRect()},isc.A.handleDragStart=function isc_c_EventHandler_handleDragStart(_1){var _2=this,_3=_2.lastEvent;if(!_2.mouseIsDown()||!_2.dragTarget)return false;delete _2.dropTarget;delete _2.dragMoveTarget;_2.dragOffsetX=-10;_2.dragOffsetY=-10;_2.handleEvent(_2.lastMoveTarget,_2.MOUSE_OUT,null,_2.lastMoveTargetItem);if(_2.lastMoveTarget!=_2.mouseDownTarget()){_2.handleEvent(_2.mouseDownTarget(),_2.MOUSE_OUT)}
if(isc.Hover)isc.Hover.clear();_2.dragStartOffsetX=_2.mouseDownEvent.x-_2.dragTarget.getPageLeft();_2.dragStartOffsetY=_2.mouseDownEvent.y-_2.dragTarget.getPageTop();var _4=_2.dragOperation+"Start";if(_2.handleEvent(_2.dragTarget,_4)==false){this.logInfo("drag cancelled by false return from: "+_4+" on "+_2.dragTarget,"dragDrop");delete _2.dragTarget;delete _2.dragTargetLink;_2.handleEvent(_2.dragTarget,_2.MOUSE_OVER);return false}
delete _2.lastMoveTarget;var _5=_2.dragTarget.getDragAppearance(_2.dragOperation);if(_5!=_2.TRACKER)
{_2.dragOffsetX=_2.dragStartOffsetX;_2.dragOffsetY=_2.dragStartOffsetY}
if(_2.dragOperation==_2.DRAG_SCROLL||_1)
{_2.dragAppearance=_2.NONE}else{_2.dragAppearance=_2.dragTarget.getDragAppearance(_2.dragOperation)}
if(_2.dragAppearance==_2.TRACKER){_2.dragMoveTarget=_2.$lk();if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll;_2.dragTracker.setOverflow(isc.Canvas.VISIBLE);_2.bubbleEvent(_2.dragTarget,_2.SET_DRAG_TRACKER);_2.dragOffsetX=_2.dragTracker.offsetX;_2.dragOffsetY=_2.dragTracker.offsetY}else if(_2.dragAppearance==_2.OUTLINE){_2.dragMoveTarget=_2.getDragOutline(_2.dragTarget);if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll}else if(_2.dragAppearance==_2.TARGET){_2.dragMoveTarget=_2.dragTarget;if(!_2.dragMoveAction)_2.dragMoveAction=_2.$ll;if(_2.dragTarget.showDragShadow)this.$lm();if(_2.dragTarget.dragOpacity!=null)this.$ln()}else{}
if(_2.dragMoveTarget){if(_2.dragMoveTarget!=_2.dragTarget){_2.dragMoveTarget.dragIntersectStyle=_2.dragTarget.dragIntersectStyle}
_2.dragMoveTarget.show();_2.dragMoveTarget.bringToFront()}
var _6=_2.dragMoveTarget?_2.dragMoveTarget:_2.dragTarget;if((isc.Browser.isIE||isc.Browser.isMoz)&&_2.dragAppearance!=_2.OUTLINE&&!(_6.$lo||_6.neverBackMask))
{if(_2.alwaysBackMask){this.$lp(_6)}else{var _7=[];if(isc.BrowserPlugin){var _8=isc.BrowserPlugin.instances;for(var i=0;i<_8.length;i++){var _10=_8[i];if(_10.isVisible()&&(_6.parentElement==null||_6.parentElement.contains(_10,true)))
{_7.add({instance:_10,rect:_10.getPageRect()})}}}
if(isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&isc.NativeSelectItem){var _11=isc.NativeSelectItem.instances;for(var i=0;i<_11.length;i++){var _12=_11[i];if(_12.isVisible()&&(_6.parentElement==null||_6.parentElement.contains(_12.containerWidget,true)))
{_7.add({instance:_12,rect:_12.getPageRect()})}}}
if(_7.length>0&&_2.dynamicBackMask===false)
{this.$lp(_6)}else{_2.$lq=_7}}}
_2.showEventMasks((_2.dragOperation==_2.DRAG_RESIZE));_2.dragging=true;_2.nativeDragging=!!_1;_2.crossFrameDragging=false;if(_2.nativeDragging&&_2.delayedMouseMoveTimer!=null){isc.Timer.clear(_2.delayedMouseMoveTimer);_2.delayedMouseMoveTimer=null}
this.logInfo("Started dragOperation: "+_2.dragOperation+" with dragTarget: "+_2.dragTarget+" dragAppearance: "+_2.dragAppearance,"dragDrop");return true},isc.A.$lm=function isc_c_EventHandler__showTargetDragShadow(){var _1=isc.EH;var _2=_1.dragTarget;_1.$lr=(!_2.showShadow);_1.$ls=_2.shadowDepth;_2.shadowDepth=_1.dragTargetShadowDepth;_2.updateShadow();if(!_2.showShadow)_2.setShowShadow(true)},isc.A.$lt=function isc_c_EventHandler__hideTargetDragShadow(){var _1=isc.EH;var _2=_1.dragTarget;if(_1.$lr)_2.setShowShadow(false);_2.shadowDepth=_1.$ls;_2.updateShadow();delete _1.$lr;delete _1.$ls},isc.A.$ln=function isc_c_EventHandler__setTargetDragOpacity(){var _1=isc.EH;var _2=_1.dragTarget;_1.$lu=_2.opacity;_2.setOpacity(_2.dragOpacity)},isc.A.$lv=function isc_c_EventHandler__resetTargetDragOpacity(){var _1=isc.EH,_2=_1.dragTarget;_2.setOpacity(_1.$lw)},isc.A.$lp=function isc_c_EventHandler__showBackMask(_1){if(_1._backMask){if(!_1._backMask.isVisible())_1._backMask.show()}else{_1.makeBackMask({$lx:true})}},isc.A.$ly=function isc_c_EventHandler__hideBackMask(_1){if(_1._backMask&&_1._backMask.$lx&&_1._backMask.isVisible())
{_1._backMask.hide()}},isc.A.$lz=function isc_c_EventHandler__getDragMoveComponents(){var _1=this.dragMoveTarget;if(!_1)return;var _2=[_1];if(_1._backMask)_2.add(_1._backMask);if(_1.$l0)_2.add(_1.$l0);if(_1._shadow)_2.add(_1._shadow);return _2},isc.A.$l1=function isc_c_EventHandler__getDragMoveEventName(_1){var _2=this.$ji;if(!_2[_1]){_2[_1]=_1+"Move"}
return _2[_1]},isc.A.dragDropInProgress=function isc_c_EventHandler_dragDropInProgress(){return this.dragging&&this.dragTarget&&this.dragTarget.canDrop&&(this.dragOperation!=this.DRAG_RESIZE)},isc.A.handleDragMove=function isc_c_EventHandler_handleDragMove(){var _1=this,_2=_1.lastEvent;isc.$54j=true;_1.dropTarget=_1.getDropTarget(_2);isc.$54j=false;if(this.showNoDropIndicator&&_2.target)_2.target.$k2();if(_1.$lq&&_1.dynamicBackMask){var _3=false;var _4=_1.dragMoveTarget?_1.dragMoveTarget:_1.dragTarget;var _5=_4.getRect();for(var i=0;i<_1.$lq.length;i++){var _7=_1.$lq[i];if(isc.Canvas.rectsIntersect(_7.rect,_5))
{_1.$l2=_7.instance;_3=true;break}}
if(_1.$l2){if(_1.$l2.repaintIfRequired)_1.$l2.repaintIfRequired()}
if(_3){this.$lp(_4)}else{this.$ly(_4);delete _1.$l2}}else if(isc.BrowserPlugin){isc.BrowserPlugin.handleDragMoveNotify()}
if(_1.dragMoveAction)_1.dragMoveAction();if(_1.handleEvent(_1.dragTarget,this.$l1(_1.dragOperation))==false){delete _1.dropTarget;return false}
if(_1.dropTarget!=_1.lastDropTarget){this.logDebug("New drop target: "+_1.dropTarget,"dragDrop");if(_1.lastDropTarget){_1.handleEvent(_1.lastDropTarget,_1.DROP_OUT)}
if(_1.dropTarget){_1.handleEvent(_1.dropTarget,_1.DROP_OVER)}
_1.lastDropTarget=_1.dropTarget}
if(_1.dropTarget){_1.handleEvent(_1.dropTarget,_1.DROP_MOVE)}
isc.$54j=true;this.$l3();isc.$54j=false;if(this.dragOperation==_1.DRAG_SELECT)return true;return false},isc.A.$l3=function isc_c_EventHandler__handleDragScroll(){var _1=this,_2=_1.dragTarget;if(_1.dragOperation==_1.DRAG_SCROLL)return;var _3=[];var _4=(_1.dragOperation==_1.DRAG_SELECT)||_2.dragScrollType=="parentsOnly"?_2.getParentElements():isc.Canvas._canvasList;;if(_1.dragOperation==_1.DRAG_SELECT)_4.addAt(_2,0);if(_4==null||_4.length==0)return;for(var i=0;i<_4.length;i++){if(_4[i].isDrawn()&&_4[i].isVisible()&&_4[i].shouldDragScroll()){_3.add(_4[i])}}
var _6=_1.lastEvent,_7=_6.x,_8=_6.y,_9=[];for(var i=0;i<_3.length;i++){if(_3[i].visibleAtPoint(_7,_8,false,_1.$lz()))
_9.add(_3[i])}
if(_9.length>0){var _10;for(var i=0;i<_9.length;i++){if(_9[i].$l4(_2.dragScrollDirection)){if(_10==null||_10.contains(_9[i],true))
_10=_9[i]}}
if(_10!=null){_10.$l5(_2.dragScrollDirection,_1.dragOperation==_1.DRAG_SELECT)}}},isc.A.handleDragStop=function isc_c_EventHandler_handleDragStop(){var _1=this,_2=_1.lastEvent,_3=false;_1.wasNativeDragging=_1.nativeDragging;_1.crossFrameDragging=_1.nativeDragging=_1.dragging=false;this.logInfo("end of drag interaction","dragDrop");_1.dragOffsetX=_1.dragOffsetY=0;var _4=_1.dragTarget,_5=_1.dragMoveTarget,_6=_1.dragOperation;var _7=_5&&_5.getPageRect();if(_5&&(_5==_1.dragTracker||_5==_1.dragOutline))
{_5.hide()}else{if(_4.showDragShadow)_1.$lt();if(_4.dragOpacity!=null)_1.$lv()}
if(this.dragTracker&&this.dragTracker.$l6){this.dragTracker.destroy();delete this.dragTracker}
var _8=_1.dragMoveTarget?_1.dragMoveTarget:_1.dragTarget;this.$ly(_8);if(_1.$lq)delete _1.$lq;var _9=_1.dropTarget;if(_9){_1.handleEvent(_1.dropTarget,_1.DROP_OUT);_1.handleEvent(_9,_1.DROP);_3=true}
var _10=(_4==_5);if(_1.handleEvent(_4,_6+"Stop")!=false){_3=true;if(_6==_1.DRAG_RESIZE){if(!_10){if(_5!=null&&this.dragAppearance!=this.TRACKER){_4.setPageRect(_7[0],_7[1],_7[2],_7[3],true)}else{var _11=isc.EH.resizeEdge;if(_11!=null){var X=isc.EH.getX(),Y=isc.EH.getY(),_14=_11.contains("L")?X-_1.dragTargetStartRect[0]:0,_15=_11.contains("T")?Y-_1.dragTargetStartRect[1]:0;_4.setPageRect(_11.contains("L")?X:_1.dragTargetStartRect[0],_11.contains("T")?Y:_1.dragTargetStartRect[1],_11.contains("R")?X-_4.getPageLeft():_1.dragTargetStartRect[2]-_14,_11.contains("B")?isc.EH.getY()-_4.getPageTop():_1.dragTargetStartRect[3]-_15,true)}}}
var _16=_4.getVisibleWidth()-_1.dragTargetStartRect[2],_17=_4.getVisibleHeight()-_1.dragTargetStartRect[3];_4.dragResized(_16,_17)}else if(_6==_1.DRAG_REPOSITION){if(!_10){if(_5!=null){_4.setPageRect(_7[0],_7[1])}else{_4.setPageRect(isc.EH.getX(),isc.EH.getY())}
_4.bringToFront()}
_1.dragTarget.dragRepositioned()}}else{if(_6==_1.DRAG_RESIZE){if(_10){_4.setRect(_1.dragTargetStartRect)}}else if(_1.dragOperation==_1.DRAG_REPOSITION){if(_10){_4.moveTo(_1.dragTargetStartRect[0],_1.dragTargetStartRect[1])}}}
_1.clearDragProperties();_1.hideEventMasks();if(_1.$94y!=_1.$94w.TOUCH_ENDING){var _18=_1.lastEvent.target;if(_18)_1.handleEvent(_18,_1.MOUSE_OVER);_1.lastMoveTarget=_18;_1.lastMoveTargetItem=isc.DynamicForm&&isc.isA.DynamicForm(_18)?isc.DynamicForm.$172c():null}
if(this.showNoDropIndicator&&_2.target)_2.target.$k2();return _3},isc.A.getEventTargetCanvas=function isc_c_EventHandler_getEventTargetCanvas(_1,_2,_3){if(_1==null)_1={};var _4=this,_5=this.getWindow();if(!_2)_2=(isc.Browser.isIE?_1.srcElement:_1.target);if(!_4.$l7(_2)){return _4.lastTarget}
if(_1&&_1.$49s)return _1.target;if(!_2||_2.tagName==this.$jj||_2.tagName==this.$jk){return(_4.lastTarget=null)}
if(_2&&_2.tagName&&_2.tagName==this.$49r){var _6=isc.Applet?isc.Applet.idForName(_2.name):null;return _6?window[_6]:_4.lastTarget}
if(isc.Browser.isIE&&_2.parentElement==null){_2=_4.lastTarget}else{var _7=this.$jl,_8=this.$945,_9=null,_10=null,_11=null;if(isc.Browser.isIE&&!isc.Browser.isIE9){while(_2!=null){if(_3!=null&&_10==null&&_2[_8]!=null){_9=_2;_10=_2.eventpart;_11=_2.id}
if(_2.eventProxy)break;_2=_2.parentElement}
if(_11==isc.emptyString)_11=null}else{while(_2!=null){var _12=_2.hasAttribute!=null;if(_3!=null&&_10==null&&(_2.eventpart!=null||(_12&&_2.hasAttribute(_8))))
{_9=_2;_10=_2.getAttribute(_8);_11=_2.getAttribute("id")}
if(_2.eventProxy!=null||(_12&&_2.hasAttribute(_7)))
{break}
_2=_2.parentNode}}
if(_3&&_2!=null){_3.eventPart=_10;_3.eventPartElement=_9;_3.eventPartID=_11}
if(!_2)return(_4.lastTarget=null);_2=_5[_2.getAttribute(_7)];while(_2&&_2.eventProxy){if(isc.isA.String(_2.eventProxy)){_2.eventProxy=_5[_2.eventProxy]}
_2=_2.eventProxy}
if(this.logIsInfoEnabled()&&!_1||(_1.type!="mousemove"&&_1.type!="selectstart"))
{if(_2!=null){this.logInfo("Target Canvas for event '"+_1.type+"': "+_2)}else{this.logDebug("No target Canvas for event '"+_1.type+"'")}}
if(_2==_4.dragTracker){_2=_4.lastTarget}
_4.lastTarget=_2}
var _13=false;if(_3!=null&&isc.isA.DrawPane&&(isc.isA.DrawItem(_2)||(_13=isc.isA.DrawPane(_2))))
{var _14=_13?_2:_2.drawPane;_2=_14.getEventTarget(_3)}
return isc.isA.BaseWidget(_2)?_2:null},isc.A.$l7=function isc_c_EventHandler__canAccessNativeTargetProperties(_1){try{if(!(isc.Browser.isMoz&&_1==this.$jm))return true;_1.parentNode}catch(e){return false}
return true},isc.A.getDropTarget=function isc_c_EventHandler_getDropTarget(_1){var _2=this;if(!_2.dragTarget||!_2.dragTarget.canDrop||_2.dragOperation==_2.DRAG_RESIZE)return null;var _3=(_2.dragMoveTarget||_2.dragTarget),_4=_2.$i0,_5=[],i=0,_7=_4.length,_8=(_3.getDragAppearance(_2.dragOperation)!=isc.EH.TARGET);if(_3.dragIntersectStyle==_2.INTERSECT_WITH_MOUSE){if((_1.target!=this.mouseDownTarget()||(isc.Browser.isIE||(isc.Browser.isSafari&&!isc.Browser.isTouch)||(isc.Browser.isMoz&&isc.Browser.geckoVersion>20040616&&!this.mouseDownTarget().$ks))))
{var _9=_1.target;while(_9&&_9.dropTarget)_9=_9.dropTarget;if((_8||_9!=_3)&&(_4.contains(_9)))
{return _9}}
for(;i<_7;i++){var _10=_4[i];if(_10.canAcceptDrop&&!_10.isDisabled()&&(_10.visibleAtPoint(_1.x,_1.y,false,_2.$lz()))&&(_8||!_3.contains(_10,true)))
{_5.add(_10)}}}else{for(;i<_7;i++){var _10=_4[i];if(!_8&&_10==_3)continue;if(_10.intersects(_3)&&_10.canAcceptDrop&&!_10.isDisabled())
{_5.add(_10)}}}
if(_5.length<2)return _5[0];var _11=_5[0];for(var i=1;i<_5.length;i++){var _12=_5[i];if(_11.contains(_12,true)){_11=_12}else if(_3.dragIntersectStyle==_2.INTERSECT_WITH_RECT){var _13=null,_14=_11,_15=_12;while(_13==null){if(_14.parentElement==null){_13=true;_15=_12.topElement||_12}else if(_14.parentElement.contains(_12,true)){_13=_14.parentElement;while(_15.parentElement!=_13){_15=_15.parentElement}}else{_14=_14.parentElement}}
if(_15.getZIndex()>_14.getZIndex()){_11=_12}}}
return _11});isc.evalBoundary;isc.B.push(isc.A.registerDroppableItem=function isc_c_EventHandler_registerDroppableItem(_1){if(!_1.$ma){this.$i0.add(_1);_1.$ma=true}},isc.A.unregisterDroppableItem=function isc_c_EventHandler_unregisterDroppableItem(_1){this.$i0.remove(_1);delete _1.$ma},isc.A.registerMaskableItem=function isc_c_EventHandler_registerMaskableItem(_1,_2){if(!this.$i1.contains(_1)&&(_1.$jr==null||!this.$i1.contains(_1.$jr))){this.$i1.add(_1);switch(_1.dragMaskType){case"iframe":if(_2)this.makeEventFrame(_1,{eventProxy:_1});break;case"none":case"hide":case"hidePlugin":break;default:if(_2)this.makeEventMask(_1,{eventProxy:_1});break}}},isc.A.unregisterMaskableItem=function isc_c_EventHandler_unregisterMaskableItem(_1){this.$i1.remove(_1);if(_1._eventMask)_1._eventMask.destroy();delete _1._eventMask},isc.A.makeEventMask=function isc_c_EventHandler_makeEventMask(_1,_2,_3){if(isc.isA.Function(_1.makeEventMask))return _1.makeEventMask(_2,_3);var _4=this.$jn;if(!_4.contents)_4.contents=isc.Browser.isIE&&isc.Browser.version>6?isc.Canvas.blankImgHTML(3200,2400):isc.Canvas.spacerHTML(3200,2400);var _5=isc.Canvas.create({ID:_1.getID()+"_eventMask",cursor:_1.cursor,$jr:_1},_4,_2);_5.setRect(_3?_3:_1.getRect());_1._eventMask=_5;_1.addPeer(_5);return _5},isc.A.showEventMasks=function isc_c_EventHandler_showEventMasks(_1,_2){var _3=this,_4=_3.$i1;if(_1){if(!_3._eventMask)_3._eventMask=isc.ScreenSpan.create({ID:"isc_EH_eventMask",mouseDown:function(){this.hide()},pointersToThis:[{object:_3,property:"_eventMask"}]});_3._eventMask.show();_3._eventMask.bringToFront();if(isc.BrowserPlugin){_4.intersect(isc.BrowserPlugin.instances).callMethod("$mb")}}else{for(var i=0;i<_4.length;i++){var _6=_4[i];if(_2&&_2[_6.getID()]){_6.$mc()}else{_6.$mb()}}}},isc.A.hideEventMasks=function isc_c_EventHandler_hideEventMasks(){var _1=this,_2=_1.$i1;if(_1._eventMask&&_1._eventMask.isVisible()){_1._eventMask.hide();if(isc.BrowserPlugin){_2.intersect(isc.BrowserPlugin.instances).callMethod("$mc")}}else{for(var i=0;i<_2.length;i++){_2[i].$mc()}}},isc.A.eventHandledNatively=function isc_c_EventHandler_eventHandledNatively(_1,_2,_3){var _4=_1;if(!this.reverseEventTypes[_1]){if(this.$i2[_1])
_4=this.$i2[_1];else if(this.$i7[_1])
_4=this.$i7[_1]}
var _5=this.$md(_4,_2,_3);if(_5&&this.logIsDebugEnabled()&&_4!="mouseMove"){this.logDebug(_1+" event on "+(_3?" native target:"+_2:this.lastTarget)+" handled natively")}
return _5},isc.A.$md=function isc_c_EventHandler__eventHandledNatively(_1,_2,_3){_1=(_1||"");var _4=this,_5=_4.lastEvent;if(!_4.$l7(_2)){return true}
if(_2&&_2.tagName==this.$49r)return true;var _6=(_4.isMouseEvent(_1)),_7=_6?_5.target:_5.keyTarget;if(!_3&&_6&&_7==null)return true;if((this.logIsInfoEnabled()&&_1==_4.KEY_DOWN)||(this.logIsDebugEnabled()&&(_1==_4.KEY_UP||_1==_4.KEY_PRESS)))
{this.logInfo(_1+" event with Canvas target: "+this.lastEvent.keyTarget+", native target: "+this.echoLeaf(_2))}
if(_4.passThroughEvents&&_2){var _8=_2,_9=(_8.handleNativeEvents||(_8.getAttribute?_8.getAttribute(this.$jt):null)),_10=_8.tagName,_11;if(!_4.$me)_4.$me="false";if(_9==null){_11=(!_8.focusProxy&&((_8.form!=null&&_10!=_4.$i6)||_4.$i5[_10]!=null||(_8.isContentEditable&&!_8.getAttribute(this.$jl))));if(!_11&&(_1!=_4.MOUSE_WHEEL)&&(_1!=_4.MOUSE_MOVE)){while(_8&&_8.tagName!=_4.BODY_TAG&&_8.tagName!=this.$jk)
{if(_8.eventProxy!=null||(_8.hasAttribute!=null&&_8.hasAttribute(this.$jl)))break;if(_4.$i4[_8.tagName]!=null){var _12=(_8.handleNativeEvents||(_8.getAttribute?_8.getAttribute(this.$jt):null));if(_12!=null&&!isc.isA.emptyString(_12)){if(isc.isA.String(_12))
_12=(_12==isc.EH.$me?false:true)}
if(_12!=false){_11=true;break}}
_8=_8.parentNode}}}else{_11=_9;if(_11==_4.$me)_11=false}
if(_11){return true}else if(_9!=null){return false}}
if(!_3&&_6&&this.$mf(_7,_1,_5))
{return true}
return false},isc.A.isMouseEvent=function isc_c_EventHandler_isMouseEvent(_1,_2){_1=_1||this.lastEvent.eventType;if(this.$mg==null){this.$mg={mouseOver:true,mouseover:true,mouseDown:true,mousedown:true,rightMouseDown:true,mouseMove:true,mousemove:true,mouseOut:true,mouseout:true,mouseUp:true,mouseup:true,DOMMouseScroll:true,mousewheel:true,mouseWheel:true,click:true,doubleClick:true,doubleclick:true,showContextMenu:true,showcontextmenu:true,selectStart:true,selectstart:true}}
if(this.$mg[_1]==true)return true;if(!_2){if(this.isPointerEvent(_1))return true;if(this.isTouchEvent(_1))return true;if(this.isNativeDragEvent(_1))return true}
if(_1=="selectionChange"){return(this.lastEvent.keyName==null||this.lastEvent.keyName=="")}
if(_1=="contextMenu"||_1=="contextmenu"){return!this.lastEvent.keyboardContextMenu}
return false},isc.A.isTouchEvent=function isc_c_EventHandler_isTouchEvent(_1){return(_1 in this.$160l)},isc.A.isPointerEvent=function isc_c_EventHandler_isPointerEvent(_1){return(_1 in this.$160m)},isc.A.isNativeDragEvent=function isc_c_EventHandler_isNativeDragEvent(_1){return(_1 in this.$175c)},isc.A.isKeyEvent=function isc_c_EventHandler_isKeyEvent(_1){_1=_1||this.lastEvent.eventType;if(this.$mh==null){this.$mh={};var _2=this.$mh;_2[this.KEY_DOWN]=true;_2[this.KEY_PRESS]=true;_2[this.KEY_UP]=true;var _3=this.$i7;for(var _4 in _3)_2[_4]=true}
if(this.$mh[_1]==true)return true;if(_1=="contextMenu"||_1=="contextmenu"){return!!this.lastEvent.keyboardContextMenu}
return false},isc.A.$mf=function isc_c_EventHandler__eventOverCSSScrollbar(_1,_2,_3){if(isc.Browser.isTouch)return false;var _4=this;if(!_1||_1.showCustomScrollbars||!(_1.vscrollOn||_1.hscrollOn))return false;var _5=isc.Element.getNativeScrollbarSize();if(_1.isRTL()){if((_1.vscrollOn&&(_3.x<_1.getPageLeft()+_5))||(_1.hscrollOn&&(_3.y>_1.getPageTop()+_1.getHeight()-_5)))
{if(_2==_4.MOUSE_DOWN)_4.$k0=true;return true}}else{if((_1.vscrollOn&&(_3.x>_1.getPageRight()-_5))||(_1.hscrollOn&&(_3.y>_1.getPageBottom()-_5)))
{if(_2==_4.MOUSE_DOWN)_4.$k0=true;return true}}
return false},isc.A.bubbleEvent=function isc_c_EventHandler_bubbleEvent(_1,_2,_3,_4,_5){var _6=this,_7=_6.lastEvent;var _8=this.logIsDebugEnabled()&&!this.$ju[_2];var _9=this.isMouseEvent(_2);if(_9){if(_4==null){_4=this.targetIsMasked(_1,null,true,_5)}
if(_4){if(_8){this.logDebug(_2+" on "+_1+" blocked by clickmask")}
return false}}
var _10=this.$mi(_2);while(_1!=null){if(_1.destroyed)break;var _11=null;var _12=null;if(_1.mouseEventParent&&(_2.startsWith("mouse")||_2==this.RIGHT_MOUSE_DOWN)){_11=_1.mouseEventParent}else if(_1.keyEventParent&&_2.startsWith("key")){_11=_1.keyEventParent}else{_11=(_1.eventParent||_1.parentElement)}
if(_11&&_11.eventProxy)_11=_11.eventProxy;if(_1.editingOn&&_1.editProxy){var _13=_1.editProxy;if(_13[_10]!=null){_12=_10}else if(_13[_2]!=null&&_13[_2]!=isc.Class.NO_OP&&!isc.is.emptyString(_13[_2])){_12=_2;if(isc.isA.String(_13[_2])){_13.convertToMethod(_2)}
if(_8){this.logDebug("Bubbling event '"+_2+"', target '"+_1+"' has handler: "+this.echoLeaf(_13[_2]))}}
if(_12)_1=_13}
if(!_12){if(_1[_10]!=null){_12=_10}else if(_1[_2]!=null&&_1[_2]!=isc.Class.NO_OP&&!isc.is.emptyString(_1[_2])){_12=_2;if(isc.isA.String(_1[_2])){_1.convertToMethod(_2)}
if(_8){this.logDebug("Bubbling event '"+_2+"', target '"+_1+"' has handler: "+this.echoLeaf(_1[_2]))}}}
if(_12!=null&&_1[_12]!=null){var _14;if(_12=="handleDrop"||_12=="drop"){var _15=_1.willAcceptDrop();if(_15){_14=_1[_12](_7,_3)}else{var _16=_1.isA("EditProxy")?_1.creator:_1;if(_16){if(_1.isA("EditProxy")&&_16==_6.dragTarget){_15=null}else{var _17=_16.creator;if(_17&&_17.editingOn&&_17.editProxy){var _18=_17.editProxy.willAcceptDrop();if(_18||(_18==null)){_15=_18}}}}
if(_15){_14=_1[_12](_7,_3)}else if(_15==null){_14=true}else{_14=false}}}else{_14=_1[_12](_7,_3)}
if(_14==false){if(_8){this.logDebug("Bubbling for event '"+_2+"' cancelled via false return value by target: "+_1)}
return false}
if(_14==_6.STOP_BUBBLING){if(_8){this.logDebug("Bubbling for event '"+_2+"' cancelled via STOP_BUBBLING return value by target: "+_1)}
return _6.STOP_BUBBLING}}
if(_1.bubbleEvents==false||(_1.bubbleMouseEvents==false&&_6.isMouseEvent(_2)))
{if(_8){this.logDebug("Bubbling for event '"+_2+"' stopped by '"+_1+"' which does not allow bubbling")}
return true}else if(isc.isAn.Array(_1.bubbleMouseEvents)){if(_1.bubbleMouseEvents.contains(_2)){if(_8){this.logDebug("Bubbling for event '"+_2+"' stopped by '"+_1+"' which does not allow bubbling")}
return true}}
_1=_11}
if(_8)this.logDebug("Event '"+_2+"' bubbled to top");return true},isc.A.$mi=function isc_c_EventHandler__getInternalHandlerName(_1){if(!this.$jc[_1]){this.$jc[_1]="handle"+_1.charAt(0).toUpperCase()+_1.substring(1)}
return this.$jc[_1]},isc.A.hasEventHandler=function isc_c_EventHandler_hasEventHandler(_1,_2){if(!isc.isAn.Object(_1)||!isc.isA.String(_2)){isc.Log.logWarn("EventHandler.hasEventHandler() passed bad parameters ["+[_1,_2]+"]. returning null;","event");return null}
var _3=this.$mi(_2);if(this.getBubbledProperty(_1,_2,true,_3,true)!=null){return true}
return false},isc.A.getBubbledProperty=function isc_c_EventHandler_getBubbledProperty(_1,_2,_3,_4,_5){while(_1){var _6=_1[_2];if(_6&&(!_3||(_6!==this.NO_OP&&!isc.isAn.emptyString(_6))))
{return _6}
if(_4!=null){_6=_1[_4];if(_6&&(!_5||(_6!==this.NO_OP&&!isc.isAn.emptyString(_6))))
{return _6}}
_1=(_1.eventParent||_1.parentElement);if(_1&&_1.eventProxy)_1=_1.eventProxy}
return null},isc.A.handleSelectStart=function isc_c_EventHandler_handleSelectStart(){var _1=isc.EH;if(_1.$904)return true;var _2=_1.getWindow(),_3=_2.event?_2.event.srcElement:null,_4=_1.mouseDownEvent?_1.mouseDownEvent.nativeTarget:null;if(_3&&_4==_3&&_3.form&&!_1.dragging)
{return true}
if(isc.EH.$mj)return true;var _5=isc.EH.mouseIsDown()?_1.mouseDownTarget():null,_6=_1.getEventTargetCanvas(_2.event);var _7=(_1.dragging||_1.dragTarget)&&_1.dragOperation!=_1.DRAG_SELECT;var _8=!_7&&(_5!=null?_5.$kr():true)&&(_6!=null?_6.$kr():true);if(_8)return true;return _1.killEvent()},isc.A.handleFocusIn=function isc_c_EventHandler_handleFocusIn(_1){if(!_1)_1=window.event;if(isc.$184u)
var _2=this;else
var _2=isc.EH;var _3=_1.srcElement,_4=_2.getEventTargetCanvas(_1,_3);if(isc.Log.logIsDebugEnabled("traceFocus")){var _5="unknown";if(_3){_5=_3.tagName+(_3.id?"["+_3.id+"]":"")}
isc.Log.logDebug("'onfocusin' firing on "+_5+"\n"+isc.Log.getStackTrace(),"traceFocus")}
if(_4)_4.handleFocusIn(_3,_1);return true},isc.A.handleFocusOut=function isc_c_EventHandler_handleFocusOut(_1){if(!_1)_1=window.event;if(isc.$184u)
var _2=this;else
var _2=isc.EH;var _3=_2.getEventTargetCanvas(_1,_1.srcElement);if(isc.Log.logIsDebugEnabled("traceBlur")){var _4="unknown";var _5=_1.srcElement;if(_5){_4=_5.tagName+(_5.id?"["+_5.id+"]":"")}
isc.Log.logDebug("'onfocusout' firing on "+_4+"\n"+isc.Log.getStackTrace(),"traceFocus")}
if(_3)_3.handleFocusOut(_1.srcElement,_1);return true},isc.A.handleSelectionChange=function isc_c_EventHandler_handleSelectionChange(_1){if(!_1)_1=window.event;var _2=isc.EH;var _3=_2.lastEvent;var _4=isc.Element.$mk(document);if(_4){var _5=_2.getEventTargetCanvas(_1,_4);_3.nativeKeyTarget=_4
_3.keyTarget=_5;_3.eventType=this.$41z;if(_5){_5.keyTarget=_5;_2.bubbleEvent(_3.keyTarget,"selectionChange")}}
return true},isc.A.handleNativeHelp=function isc_c_EventHandler_handleNativeHelp(){if(this.$69a){if(this.$69a()==false)return false}
if(this.$69b){if(this.$69b()==false)return false}
return isc.EH.$j9(window.event,true)},isc.A.setDragTrackerImage=function isc_c_EventHandler_setDragTrackerImage(_1,_2,_3){var _4=this.lastEvent,_5,_6;if(!isc.Browser.hasNativeDrag||_4==null||(_5=_4.DOMevent)==null||(_6=_5.dataTransfer)==null||_6.setDragImage==null||_5.type!=this.$119u||!this.dragTarget)
{return}
if(isc.Browser.isSafari&&!isc.Browser.isChrome)return;var _7=document.createElement("img");_7.src=this.dragTarget.getImgURL(_1==null?isc.Canvas.$wz:_1);_2=_2<<0;_3=_3<<0;_6.setDragImage(_7,_2,_3)},isc.A.encodeDragType=function isc_c_EventHandler_encodeDragType(_1){if(!_1)return this.$120k+this.$120l.toString(36);var _2=isc.SB.create(),_3=0,_4;_2.append(this.$120k,this.$120l.toString(36));for(var i=0,_4=_1.length;i<_4;){var _6=_1.charCodeAt(i++),_7=_6,_8=i;if(0xD800<=_6&&_6<=0xDBFF){var _9=_1.charCodeAt(i++);_7=((_6-0xD800)*0x400)+(_9-0xDC00)+0x10000}
if((0x30<=_7&&_7<=0x39)||(0x61<=_7&&_7<=0x7A))
{continue}
_2.append(_1.substring(_3,_8-1),'_',_7.toString(16),'_');_3=i}
_2.append(_1.substring(_3,_4));return _2.release(false)},isc.A.decodeDragDataItemTypeString=function isc_c_EventHandler_decodeDragDataItemTypeString(_1){if(!_1)return null;_1=_1.toLowerCase();if(_1.startsWith(this.$120p)){var _2=this.$120m,_3=[];var _4=0,_5=0;for(var i=this.$120p.length;i<_1.length;++i){var _7=_2[_1[i]];_7<<=3;_5|=_7>>>_4;_4+=5;if(_4>=8){_3.add(_5&255);_4-=8;if(_4>0)_5=(_7<<(5-_4))&255;else _5=0}}
_1=String.fromCharCode.apply(String,_3);var _8=_1.indexOf(this.$120k);if(_8<0)return null;var _9=_1.indexOf(':',_8+this.$120k.length);if(_9<0)_9=_1.length;_1=_1.substring(_8,_9)}else if(!_1.startsWith(this.$120k)){return null}
var _10=_1.substring(this.$120k.length),_11;if(!_10||(_11=parseInt(_10[0],36))>this.$120l)
{return null}
var _12=isc.SB.create();if(0==_11){var _13=0;for(var _14=_10.indexOf('_');_14>=0;_14=_10.indexOf('_',_13+1)){_12.append(_10.substring(_13+1,_14));_13=_10.indexOf('_',_14+1);if(_13<0)return null;var _15=parseInt(_10.substring(_14+1),16);if(isNaN(_15))continue;if(_15>=0x10000){var d=_15-0x10000,_17=(d>>10)+0xD800,_18=(d&0x3FF)+0xDC00;_12.append(String.fromCharCode(_17,_18))}else{if(0xD800<=_15&&_15<=0xDFFF)return null;_12.append(String.fromCharCode(_15))}}
_12.append(_10.substring(_13+1))}
return _12.release(false)},isc.A.$120q=function isc_c_EventHandler__getEncodedDragType(_1){var _2;if(_1==null||(_2=_1.types)==null)return null;var _3=_2.length;for(var i=0;i<_3;++i){var _5=_2[i];if(_5&&_5.startsWith(this.$120k)){return _5}}
for(var i=0;i<_3;++i){var _5=_2[i];if(_5&&_5.startsWith(this.$120p)){var _6=this.decodeDragDataItemTypeString(_5);if(_6!=null)return _5}}
return null},isc.A.$120r=function isc_c_EventHandler__getDragType(_1){var _2=this.$120q(_1);if(_2==null)return null;return this.decodeDragDataItemTypeString(_2)},isc.A.getNativeDragData=function isc_c_EventHandler_getNativeDragData(){var _1=this.lastEvent,_2;if(!isc.Browser.hasNativeDrag||_1==null||(_2=_1.DOMevent)==null||_2.dataTransfer==null||_2.type!=this.$119s)
{return null}
var _3=_2.dataTransfer,_4;if(isc.Browser.isIE||isc.Browser.isEdge){_4=_3.getData("Text")}else{var _5=this.$120q(_3);if(_5==null)return null;_4=_3.getData(_5)}
var _6=null;try{if(_4!=null)_6=isc.JSON.decode(_4)}catch(e){this.logWarn("Failed to decode as JSON: "+e)}
return _6==null?null:_6.data},isc.A.setNativeDragData=function isc_c_EventHandler_setNativeDragData(_1,_2,_3){var _4=this.lastEvent,_5;if(!isc.Browser.hasNativeDrag||_4==null||(_5=_4.DOMevent)==null||_5.dataTransfer==null||_5.type!=this.$119u||!this.dragTarget)
{return}
if(_3==null)_3=this.dragTarget.dragType;if(isc.$119x==null)isc.$119x=isc.Math.randomUUID();var _6={iscVersion:isc.version,iscVersionNumber:isc.versionNumber,windowUUID:isc.$119x,dragType:_3,data:_1};var _7=isc.JSON.encode(_6,this.$119t);var _8=_4.DOMevent.dataTransfer;if(isc.Browser.isIE||isc.Browser.isEdge){_8.setData("Text",_7)}else{_8.setData(this.encodeDragType(_3),_7);if(_2==null||(_2=String(_2).trim()).length==0)_2="\u00A0";_8.setData("Text",_2)}},isc.A.handleNativeDragStart=function isc_c_EventHandler_handleNativeDragStart(_1){if(isc.Browser.hasNativeDrag&&_1.dataTransfer){var _2=isc.EH,_3=_1.dataTransfer,_4=_2.getMouseEventProperties(_1),_5=_4.target;if(_5!=null&&(_5=_5.$120v())!=null){_4.target=_5;if(!_5.useNativeDrag)return false;if(isc.Browser.isIE){if(_5.dragType==null){this.logWarn("No dragType string is set on "+_5.getID()+". Canceling native drag...");return false}
var _6=isc.Canvas.getCrossFrameDragByDragType&&isc.Canvas.getCrossFrameDragByDragType(_5.dragType);if(_6==null){this.logWarn("No cross-frame drag settings have been registered for dragType:'"+_5.dragType+"'. Canvas.registerCrossFrameDrags() must be called to register cross-frame drag settings for this dragType. Canceling native drag...");return false}
_3.effectAllowed=_2.$120c[_6.effectAllowed]}else{_3.effectAllowed="copy"}
if(!(isc.isA.DataBoundComponent&&isc.isA.DataBoundComponent(_5))){_2.setNativeDragData(null,null,_5.dragType)}else{_2.setNativeDragData(_5.cloneDragData(),null,_5.dragType)}
_2.dragTarget=_5;_2.dragOperation="drag";var _7=_2.handleDragStart(true);_2.handleDragMove();return _7}}
if(isc.EH.dragTarget)return false;var _5=isc.EH.mouseDownTarget();if(_5)return!!(_5.$188y());if(this.$ml)return this.$ml();if(this.$mm)return this.$mm()},isc.A.$119y=function isc_c_EventHandler__setCrossFrameDragCleanupTimer(){var _1=this;if(_1.$119z!=null)isc.Timer.clear(_1.$119z);_1.$119z=isc.Timer.setTimeout(_1.$1190,_1.$119v)},isc.A.$1190=function isc_c_EventHandler__crossFrameDragCleanupAction(){var _1=isc.EH;delete _1.$119z;if(_1.crossFrameDragging){_1.artificialDragTarget.dragType=null;_1.$1191(_1.lastEvent.DOMevent)}else if(_1.nativeDragging){if(_1.dragMoveTarget)_1.dragMoveTarget.hide()}},isc.A.$1192=function isc_c_EventHandler__handleNativeDragOver(_1){var _2=_1.dataTransfer,_3=_2.dropEffect,_4=isc.EH;var _5;if(isc.Browser.isIE){try{_5=_4.$120c[_2.effectAllowed]}catch(e){_5=_3}}else{_5=_2.effectAllowed}
if(!_4.nativeDragging){var _6=null;if(isc.Browser.isIE){var _7=isc.Canvas.getCrossFrameDragByEffectAllowed(_5);if(_7==null){return}
_6=_7.dragType}else{_6=this.$120r(_2);if(_6==null)return}
_2.dropEffect=_4.$27r;if(_4.artificialDragTarget)_4.artificialDragTarget.destroy();var _8=_4.artificialDragTargetConstructor||_4.artificialDragTargetDefaults._constructor;_4.dragTarget=_4.artificialDragTarget=isc[_8].create({autoDraw:false,_generated:true},_4.artificialDragTargetDefaults,_4.artificialDragTargetProperties,{left:_1.pageX,top:_1.pageY,dragType:_6});var _9=_4.getMouseEventProperties(_1);_9.target=_4.dragTarget;_4.dragOperation="drag";_4.$j6=true;_4.mouseDownEvent=isc.addProperties({},_9);_4.handleDragStart(true);_4.crossFrameDragging=true;if(_4.$1197)_4.$119y()}else{if(_4.$1197)_4.$119y();_2.dropEffect=_4.$27r;var _10=_4.lastEvent;if(_10!=null&&_10.screenX==_1.screenX&&_10.screenY==_1.screenY)
{if(_10.$1193===false){_2.dropEffect=_4.$119w[_5]}
return _10.$1193}}
_4.handleMouseMove(_1);var _11,_12=_4.dropTarget;if(_12&&_12.canAcceptDrop){var _13=_12.creator;if((_12.editingOn&&_12.editProxy&&_12.editProxy.willAcceptDrop())||(_13&&_13.editingOn&&_13.editProxy&&_13.editProxy.willAcceptDrop())||(_12.parentElement&&_12.parentElement.willAcceptDrop())||_12.willAcceptDrop())
{_11=false;_2.dropEffect=_4.$119w[_5]}}
_4.lastEvent.$1193=_11;return _11},isc.A.$1199=function isc_c_EventHandler__handleNativeDragEnter(_1){var _2=isc.EH;_2.$1198=(_1.srcElement||_1.target);if(isc.Browser.isIE){_2.handleMouseMove(_1);var _3=_2.dropTarget,_4;if(_3&&_3.canAcceptDrop){var _5=_3.creator;if((_3.editingOn&&_3.editProxy&&_3.editProxy.willAcceptDrop())||(_5&&_5.editingOn&&_5.editProxy&&_5.editProxy.willAcceptDrop())||_3.willAcceptDrop())
{if(_1.preventDefault)_1.preventDefault();_4=false}}
_2.lastEvent.$1193=_4;return _4}},isc.A.$120a=function isc_c_EventHandler__handleNativeDragLeave(_1){var _2=isc.EH;if(_2.$1198==(_1.srcElement||_1.target)){_2.$1198=null;if(!_2.$1197){if(_2.crossFrameDragging){_2.artificialDragTarget.dragType=null;_2.$1191(_1)}else if(_2.nativeDragging){if(_2.dragMoveTarget)_2.dragMoveTarget.hide();if(_2.dragTarget&&_2.dragTarget.useNativeDrag&&_2.dropTarget){_2.handleEvent(_2.dropTarget,_2.DROP_OUT);_2.dropTarget=null}}}}},isc.A.$1191=function isc_c_EventHandler__handleNativeDragEnd(_1){var _2=isc.EH;_2.handleMouseUp(_1)},isc.A.$1194=function isc_c_EventHandler__handleNativeDrop(_1){var _2=isc.EH,_3=_2.nativeDragging;_2.handleMouseUp(_1);if(_3)return false},isc.A.$139z=function isc_c_EventHandler__handleTransitionEnd(_1){var _2=isc.EH;var _3={DOMevent:_1,eventType:_2.TRANSITION_END,nativeTarget:_1.target,propertyName:_1.propertyName,prefixedPropertyName:_1.propertyName,elapsedTime:_1.elapsedTime};if(_1.propertyName!=null&&_1.propertyName.startsWith(isc.Element.vendorCSSPrefix)){_3.propertyName=_1.propertyName.substring(isc.Element.vendorCSSPrefix.length)}
var _4=_3.target=_2.getEventTargetCanvas(_1,_3.nativeTarget,_3);return _2.handleEvent(_4,_2.TRANSITION_END,_3)},isc.A.handleResize=function isc_c_EventHandler_handleResize(_1){if(isc.EH.resizeTimer==null){isc.EH.resizeTimer=isc.Timer.setTimeout("isc.EH.$hr()",0)}
return true},isc.A.handleOrientationChange=function isc_c_EventHandler_handleOrientationChange(_1){this.$78p()},isc.A.$mn=function isc_c_EventHandler__pageResizePollMethod(){isc.EH.$hr(true)},isc.A.$hr=function isc_c_EventHandler__pageResize(_1){isc.EH.resizeTimer=null;var _2=isc.Page.getOrientation();if(!_1){this.$mo=isc.Page.getWidth(window,true);this.$mp=isc.Page.getHeight(window,true);if(this.resizingPollTimer!=null)isc.Timer.clearTimeout(this.resizingPollTimer);this.resizingPollTimer=isc.Timer.setTimeout(this.$mn,100)}else{var _3=isc.Page.getWidth(window,true),_4=isc.Page.getHeight(window,true),_5=(_2==this.currentOrientation)&&(_3==this.$mo&&_4==this.$mp)
if(isc.Page.pollPageSize){isc.Page.setEvent(isc.EH.IDLE,this.$mn,isc.Page.FIRE_ONCE)}
if(_5)return;this.$mo=_3;this.$mp=_4}
this.$78p(_2)},isc.A.$78p=function isc_c_EventHandler__fireResizeEvent(_1){isc.Page.handleEvent(null,isc.EH.RESIZE);var _2=isc.Page.getWidth();if(_2==this.$118t)return;if(_1==null)_1=isc.Page.getOrientation();if(_1!=this.currentOrientation){this.$118t=_2;this.currentOrientation=_1;isc.Page.handleEvent(null,isc.EH.ORIENTATION_CHANGE)}},isc.A.handleMouseWheel=function isc_c_EventHandler_handleMouseWheel(_1){var _2=isc.EH;if(!_1)_1=_2.getWindow().event;var _3=(_1.srcElement||_1.target);if(_2.eventHandledNatively(_1.type,_3))return _2.$js;_2.getMouseEventProperties(_1);var _4=_2.lastEvent.target;var _5;if(_2.targetIsEnabled(_4)){_5=_2.bubbleEvent(_4,_2.eventTypes.MOUSE_WHEEL)}
if(_5==false){if(_1.preventDefault)_1.preventDefault();return false}
return true},isc.A.getWheelDelta=function isc_c_EventHandler_getWheelDelta(_1){return(_1||this.lastEvent).wheelDelta},isc.A.getWheelDeltaX=function isc_c_EventHandler_getWheelDeltaX(_1){return(_1||this.lastEvent).wheelDeltaX},isc.A.getWheelDeltaY=function isc_c_EventHandler_getWheelDeltaY(_1){return(_1||this.lastEvent).wheelDeltaY},isc.A.handleDOMMouseScroll=function isc_c_EventHandler_handleDOMMouseScroll(_1){return isc.EH.handleMouseWheel(_1)},isc.A.handleScroll=function isc_c_EventHandler_handleScroll(_1){},isc.A.prepareForLinkDrag=function isc_c_EventHandler_prepareForLinkDrag(_1,_2){this.dragTarget=(isc.isA.String(_1)?this.getWindow()[_1]:_1);this.dragTargetLink=_2;return false},isc.A.setDragTracker=function isc_c_EventHandler_setDragTracker(_1,_2,_3,_4,_5,_6){var _7=this.$lk(_6);_2=_2||10;_3=_3||10;_7.resizeTo(_2,_3);_7.setContents(_1);_7.redrawIfDirty("setDragTracker");if(_4)_7.offsetX=_4;if(_5)_7.offsetY=_5;_7.$l6=true},isc.A.$lk=function isc_c_EventHandler__makeDragTracker(_1){if(!this.dragTracker){var _2=this.dragTrackerDefaults;_2.contents=isc.Canvas.imgHTML("[SKIN]black.gif",10,10);this.dragTracker=isc.Canvas.create(_2,_1)}else if(_1!=null)this.dragTracker.setProperties(_1);return this.dragTracker},isc.A.getDragOutline=function isc_c_EventHandler_getDragOutline(_1,_2,_3){if(!this.dragOutline){this.dragOutline=isc.Canvas.create({autoDraw:false,overflow:isc.Canvas.HIDDEN,hideUsingDisplayNone:true})
if(isc.Browser.isIE)this.dragOutline.setContents(isc.Canvas.spacerHTML(3200,2400))}
var _4=this.dragOutline;if(isc.Element.getStyleDeclaration(_1.dragOutlineStyle)){_4.setStyleName(_1.dragOutlineStyle)}else{_4.setBorder((_2||1)+"px solid "+(_3||"black"))}
_4.setPageRect(_1.getPageLeft(),_1.getPageTop(),_1.getVisibleWidth(),_1.getVisibleHeight());_4.minWidth=_1.getDragMinWidth();_4.minHeight=_1.getDragMinHeight();_4.maxWidth=_1.getDragMaxWidth();_4.maxHeight=_1.getDragMaxHeight();_4.keepInParentRect=_1.keepInParentRect;return _4},isc.A.getDragRect=function isc_c_EventHandler_getDragRect(){var _1=this.dragMoveTarget||this.dragTarget;if(!_1)return null;return _1.getPageRect()},isc.A.$ll=function isc_c_EventHandler__moveDragMoveTarget(){var _1=this;var _2=_1.dragMoveTarget;if(!_2)return true;var _3=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20031007&&!_2.keepInParentRect);if(_3&&(_2.parentElement&&!_2.parentElement.containsPoint(_1.lastEvent.x,_1.lastEvent.y)))
{return true}
isc.$54j=true;_2.moveToEvent(_1.dragOffsetX,_1.dragOffsetY);isc.$54j=false;_2.show();return true},isc.A.$mq=function isc_c_EventHandler__resizeDragMoveTarget(){var _1=this;if(_1.dragMoveTarget)_1.dragMoveTarget.resizeToEvent(_1.resizeEdge);return true},isc.A.killEvent=function isc_c_EventHandler_killEvent(_1){if(!_1)_1=isc.EH.getWindow().event;_1.cancelBubble=true;return false},isc.A.stopBubbling=function isc_c_EventHandler_stopBubbling(){return isc.EH.STOP_BUBBLING},isc.A.startIdleTimer=function isc_c_EventHandler_startIdleTimer(){if(!isc.Page.isLoaded())return;if(!this.idleTimer){this.idleTimer=isc.Timer.setTimeout({target:isc.EH,methodName:this.$jv},this.IDLE_DELAY)}},isc.A.$jw=function isc_c_EventHandler__handleIdle(){this.idleTimer=null;var _1=isc.Page.handleEvent(null,this.IDLE);if(isc.Page.actionsArePendingForEvent(this.IDLE))this.startIdleTimer();return _1});isc.evalBoundary;isc.B.push(isc.A.$h1=function isc_c_EventHandler__setThread(_1){var _2=_1+this.$jx++;if(this.$lc!=null)this.$90m=this.$lc;this.$lc=_2;if(isc.Log.logIsInfoEnabled("RpcTabTiming")){this.$117e=isc.timeStamp()}
if(this.$jx>9)this.$jx=0},isc.A.$h2=function isc_c_EventHandler__clearThread(){if(this.$mr!=null){if(this.skipTeasOnXHR=="any"&&this.$1776)
{this.logDebug("EventHandler.skipTeasOnXHR is 'any' and this thread has sent an XHR - skipping TEAs");this.$mr=null}else if(this.skipTeasOnXHR=="blockingOnly"&&this.$1777)
{this.logDebug("EventHandler.skipTeasOnXHR is 'blockingOnly' and this thread has sent an XHR - skipping TEAs");this.$mr=null}else{this.runTeas()}}
if(this.$90m){this.$lc=this.$90m;this.$90m=null}else{this.$lc=null}
this.$1776=null;this.$1777=null},isc.A.$ms=function isc_c_EventHandler__setThreadExitAction(_1){isc.Timer.setTimeout(_1,0);var _2=this.$mr;if(_2==null)_2=this.$mr=[];_2.add(_1)},isc.A.runTeas=function isc_c_EventHandler_runTeas(){var _1=this.$lc;while(this.$mr!=null){var _2=this.$mr;this.$mr=null;if(this.logIsDebugEnabled()){this.logDebug("firing threadExitActions: "+this.echoAll(_2))}
for(var i=0;i<_2.length;i++){this.$lc=_1+"[E"+i+"]";var _4=_2[i];if(isc.isA.String(_4))isc.eval(_4);else _4()}}},isc.A.setGwtTimerThread=function isc_c_EventHandler_setGwtTimerThread(){this.$h1("GWT")},isc.A.clearGwtTimerThread=function isc_c_EventHandler_clearGwtTimerThread(){this.$h2()},isc.A.dispatch=function isc_c_EventHandler_dispatch(_1,_2){if(!_2)_2=this.getWindow().event;if(isc.$611!=null){delete isc.$611}
this.$h1(this.$jy[_2.type]||_2.type);var _3;if(isc.Log.supportsOnError){_3=_1.call(this,_2)}else{try{_3=_1.call(this,_2)}catch(e){isc.Log.$am(e);throw e;}}
this.$h2();if(_3!=false&&this.$j3[_2.type]){var _4=this.$j3[_2.type](_2);if(_4==false)_3=false}
return _3},isc.A.captureEvent=function isc_c_EventHandler_captureEvent(_1,_2,_3,_4){var _5=this.getWindow(),_6=this.$mt;var _7=isc.$aq(this.$j0,this.$j1);_7.$ch=_5;_7.$j2=_4;var _8;if(!_6){if(_1[_2]!=null){var _8=this.$j4[_2]||_2.substring(2);this.$j3[_8]=_1[_2]}
_1[_2]=_7}else{if(isc.Browser.isIE&&isc.Browser.version<11){_1.attachEvent(_2,_7)}else if(isc.Browser.isDOM){_8=this.$j4[_2]||_2.substring(2);_1.addEventListener(_8,_7,false)}else{this.logWarn("Unable to use event listeners in this browser");this.$mt=false;return this.captureEvent(_1,_2,_3,_4)}}
if(_1===_5.document){var _9=(!_6||isc.Browser.isIE)?_2:_8;this.$649[_9]=_7}},isc.A.captureEvents=function isc_c_EventHandler_captureEvents(_1){var _2=this;if(window.isc_useEventListeners!=null)_2.$mt=window.isc_useEventListeners;var _3=isc.makeReverseMap(_2.eventTypes);isc.addProperties(_2,{reverseEventTypes:_3});if(_1==null)_1=this.getWindow();var _4=_1.document;isc.Page.setEvent(_2.LOAD,isc.Page.finishedLoading);if(isc.Browser.isIE&&isc.Browser.version<11){_1.attachEvent("onload",_2.handleLoad)}else if(isc.Browser.isDOM&&!isc.Browser.isOpera){_1.addEventListener("load",_2.handleLoad,true)}else{this.captureEvent(_1,"onload",_2.LOAD,_2.handleLoad)}
if(!this.$j8()){this.captureEvent(_1,"onunload",_2.UNLOAD,_2.handleUnload)}
this.captureEvent(_1,"onresize",_2.RESIZE,_2.handleResize);if(this.$168h){this.captureEvent(_4.documentElement,"onmouseleave",_2.MOUSE_LEAVE,_2.handleMouseLeaveDocument)}
this.captureEvent(_4,"onmousedown",_2.MOUSE_DOWN,_2.handleMouseDown);this.captureEvent(_4,"onmousemove",_2.MOUSE_MOVE,_2.handleMouseMove);this.captureEvent(_4,"onmouseup",_2.MOUSE_UP,_2.handleMouseUp);this.captureEvent(_4,"onclick",_2.CLICK,_2.handleNativeClick);this.captureEvent(_4,"ondblclick",_2.DOUBLE_CLICK,_2.handleNativeClick);this.captureEvent(_4,"onscroll","scroll",_2.handleScroll);this.captureEvent(_4,"onmousewheel",_2.MOUSE_WHEEL,_2.handleMouseWheel);if(isc.Browser.isMoz){_1.addEventListener("DOMMouseScroll",_2.handleDOMMouseScroll,true)}
this.captureEvent(_4,"onmouseout",_2.MOUSE_OUT,_2.handleNativeMouseOut);this.captureEvent(_4,"oncontextmenu",_2.SHOW_CONTEXT_MENU,_2.handleContextMenu);this.captureEvent(_4,"onselectstart",_2.SELECT_START,_2.handleSelectStart);this.captureEvent(_1,"onselectstart",_2.SELECT_START,_2.handleSelectStart);if(this.useFocusInEvents){this.captureEvent(_4,"onfocusin",_2.FOCUS_IN,_2.handleFocusIn);this.captureEvent(_4,"onfocusout",_2.FOCUS_OUT,_2.handleFocusOut)}
if(isc.Browser.isIE){this.captureEvent(_4,"onselectionchange",_2.SELECTION_CHANGE,_2.handleSelectionChange)}
if(_1.isc_captureKeyEvents!=false){this.captureEvent(_4,"onkeydown",_2.KEY_DOWN,_2.$j9);this.captureEvent(_4,"onkeypress",_2.KEY_PRESS,_2.$kd);this.captureEvent(_4,"onkeyup",_2.KEY_UP,_2.$kb)}
if(isc.Browser.hasNativeDrag||isc.Browser.isIE){this.$mm=_1.ondragstart;this.$ml=_4.ondragstart;_1.ondragstart=_4.ondragstart=null;this.captureEvent(_4,"ondragstart",_2.DRAG_START,_2.handleNativeDragStart)}
if(isc.Browser.hasNativeDrag){this.captureEvent(_4,"ondragend",_2.DRAG_STOP,_2.$1191);this.captureEvent(_4,"ondragenter",_2.DROP_OVER,_2.$1199);this.captureEvent(_4,"ondragover",_2.DROP_MOVE,_2.$1192);this.captureEvent(_4,"ondragleave",_2.DROP_OUT,_2.$120a);this.captureEvent(_4,"ondrop",_2.DROP,_2.$1194)}
if(isc.Browser.$139c){_4.addEventListener(isc.Browser.$139y,_2.$139z,false)}
if(isc.Browser.isIE){this.$69b=_1.onhelp;this.$69a=_4.onhelp;_4.onhelp=_1.onhelp=_2.handleNativeHelp}
if(isc.Browser.isTouch){this.$94y=_2.$94w.READY_FOR_TOUCH;if(isc.Browser.isMobileIE){this.captureEvent(_4,"pointerdown",_2.TOUCH_START,_2.$77p);this.captureEvent(_4,"pointermove",_2.TOUCH_MOVE,_2.$77q);this.captureEvent(_4,"pointerup",_2.TOUCH_END,_2.$77r);this.captureEvent(_4,"pointercancel",_2.TOUCH_CANCEL,_2.$86w)}else{this.captureEvent(_4,"ontouchstart",_2.TOUCH_START,_2.$77p);this.captureEvent(_4,"ontouchmove",_2.TOUCH_MOVE,_2.$77q);this.captureEvent(_4,"ontouchend",_2.TOUCH_END,_2.$77r);this.captureEvent(_4,"ontouchcancel",_2.TOUCH_CANCEL,_2.$86w)}}else
if(navigator.pointerEnabled){this.captureEvent(_4,"onpointerdown",_2.POINTER_DOWN,_2.$149j);this.captureEvent(_4,"onpointermove",_2.POINTER_MOVE,_2.$149k);this.captureEvent(_4,"onpointerup",_2.POINTER_UP,_2.$149l);this.captureEvent(_4,"onpointercancel",_2.POINTER_CANCEL,_2.$149m)}
if(isc.Browser.isMobile){isc.Page.pollPageSize=true}
var _5=null;if(isc.Browser.isMoz)_5=isc.EH.$947;else if(isc.Browser.isIE||isc.Browser.isEdge)_5=isc.EH.$948;else if(isc.Browser.isSafari)_5=isc.EH.$95a;else if(isc.Browser.isOpera)_5=isc.EH.$173g;if(_5)isc.EH.addClassMethods({$90x:_5})},isc.A.$j8=function isc_c_EventHandler__useEventListenerForUnload(){return(isc.Browser.isSafari&&isc.Browser.safariVersion<=412)},isc.A.releaseEvents=function isc_c_EventHandler_releaseEvents(_1){var _2=this;if(_1==null)_1=this.getWindow();var _3=_1.document,_4=this.$649;for(var _5 in _4){if(!this.$mt){_3[_5]=null}else{if(isc.Browser.isIE&&isc.Browser.version<11){_3.detachEvent(_5,_4[_5])}else if(isc.Browser.isDOM){_3.removeEventListener(_5,_4[_5],false)}}}
if(isc.Browser.hasNativeDrag||isc.Browser.isIE){_3.ondragstart=_1.onhelp=null}
if(isc.Browser.isIE){_3.onhelp=_1.onhelp=null}
delete this.$649},isc.A.getLastEvent=function isc_c_EventHandler_getLastEvent(){return this.lastEvent},isc.A.getEventType=function isc_c_EventHandler_getEventType(_1){return(_1||this.lastEvent).eventType},isc.A.getTarget=function isc_c_EventHandler_getTarget(_1){var _2=(_1||this.lastEvent).target;if(isc.isA.DrawItem&&isc.isA.DrawItem(_2)){_2=_2.drawPane}else if(!isc.isA.Canvas(_2)){_2=null}
return _2},isc.A.getDragTarget=function isc_c_EventHandler_getDragTarget(){var _1=this.dragTarget;if(isc.isA.DrawItem&&isc.isA.DrawItem(_1)){_1=_1.drawPane}else if(!isc.isA.Canvas(_1)){_1=null}
return _1},isc.A.getX=function isc_c_EventHandler_getX(_1){return(_1||this.lastEvent).x},isc.A.getY=function isc_c_EventHandler_getY(_1){return(_1||this.lastEvent).y},isc.A.getScreenX=function isc_c_EventHandler_getScreenX(_1){return(_1||this.lastEvent).screenX},isc.A.getScreenY=function isc_c_EventHandler_getScreenY(_1){return(_1||this.lastEvent).screenY},isc.A.mouseIsDown=function isc_c_EventHandler_mouseIsDown(){return!!(this.$j6)},isc.A.mouseDownTarget=function isc_c_EventHandler_mouseDownTarget(){return(this.mouseDownEvent?this.mouseDownEvent.target:null)},isc.A.getButtonNum=function isc_c_EventHandler_getButtonNum(_1){return(_1||this.lastEvent).buttonNum},isc.A.leftButtonDown=function isc_c_EventHandler_leftButtonDown(_1){return((_1||this.lastEvent).buttonNum==1)},isc.A.rightButtonDown=function isc_c_EventHandler_rightButtonDown(_1){if(!_1)_1=this.lastEvent;return(_1.buttonNum==2)||(_1.button==2)||(isc.Browser.isMac&&_1.ctrlKey)||(isc.Browser.isOpera&&(_1.ctrlKey&&_1.shiftKey))||((isc.Browser.isSafari&&(isc.Browser.safariVersion<125))&&_1.altKey)},isc.A.middleButtonDown=function isc_c_EventHandler_middleButtonDown(_1){return(_1||this.lastEvent).buttonNum==4},isc.A.useSyntheticRightButtonEvents=function isc_c_EventHandler_useSyntheticRightButtonEvents(){return isc.Browser.isOpera||(isc.Browser.isSafari&&(isc.Browser.safariVersion<125))},isc.A.getKeyEventCharacterValue=function isc_c_EventHandler_getKeyEventCharacterValue(_1){return(_1||this.lastEvent).characterValue},isc.A.getKeyEventCharacter=function isc_c_EventHandler_getKeyEventCharacter(_1){return String.fromCharCode(this.getKeyEventCharacterValue(_1))},isc.A.getKey=function isc_c_EventHandler_getKey(_1){return(_1||this.lastEvent).keyName||null},isc.A.getKeyName=function isc_c_EventHandler_getKeyName(_1){return this.getKey(_1)},isc.A.shiftKeyDown=function isc_c_EventHandler_shiftKeyDown(_1){return!!((_1||this.lastEvent).shiftKey)},isc.A.ctrlKeyDown=function isc_c_EventHandler_ctrlKeyDown(_1){return!!((_1||this.lastEvent).ctrlKey)},isc.A.altKeyDown=function isc_c_EventHandler_altKeyDown(_1){return!!((_1||this.lastEvent).altKey)},isc.A.metaKeyDown=function isc_c_EventHandler_metaKeyDown(_1){return!!((_1||this.lastEvent).metaKey)},isc.A.modifierKeyDown=function isc_c_EventHandler_modifierKeyDown(_1){if(isc.Browser.isMac)return!!((_1||this.lastEvent).metaKey);else return!!((_1||this.lastEvent).ctrlKey)},isc.A.$160v=function isc_c_EventHandler__matchesKeyIdentifier(_1,_2){_2=_2||this.lastEvent;var _3=_1;if(isc.isAn.Object(_1)){_3=_1.keyName;if(_1.shiftKey!=null&&!!_1.shiftKey!=this.shiftKeyDown(_2))return false;if(_1.ctrlKey!=null&&!!_1.ctrlKey!=this.ctrlKeyDown(_2))return false;if(_1.altKey!=null&&!!_1.altKey!=this.altKeyDown(_2))return false;if(_1.metaKey!=null&&!!_1.metaKey!=this.metaKeyDown(_2))return false}
return _3==this.getKey(_2)},isc.A.getKeyEventProperties=function isc_c_EventHandler_getKeyEventProperties(_1){if(_1==null)_1=this.getWindow().event;var _2=this.lastEvent;_2.nativeKeyTarget=(_1.target||_1.srcElement);_2.keyTarget=this.$ke;if(isc.isA&&isc.DynamicForm&&isc.isA.DynamicForm(this.$ke)){var _3=isc.DynamicForm._getItemInfoFromElement(_2.nativeKeyTarget,_2.keyTarget);if(_3&&_3.item)_2.keyTarget=_3.item}
_2.eventType=this.getKeyEventType(_1.type);if(_2.eventType==this.KEY_PRESS){_2.characterValue=this.$mv(_1)}
var _4=this.determineEventKeyName(_1);if(_4!=null){_2.keyName=_4}else if(_2.eventType!=isc.EH.KEY_PRESS)delete _2.keyName;_2.nativeKeyCode=_1.keyCode;_2.shiftKey=(_1.shiftKey==true||(isc.Browser.isMoz&&_2.shiftKey));_2.ctrlKey=(_1.ctrlKey==true);_2.altKey=(_1.altKey==true);_2.metaKey=(_1.metaKey==true)},isc.A.getKeyEventType=function isc_c_EventHandler_getKeyEventType(_1){if(!_1)return;return this.$i7[_1]},isc.A.$mv=function isc_c_EventHandler__determineKeyEventCharacterValue(_1){if(isc.Browser.isIE)return(_1.keyCode||null);if(isc.Browser.isMoz){return(_1.which||null)}
return(_1.which||_1.keyCode||null)},isc.A.determineEventKeyName=function isc_c_EventHandler_determineEventKeyName(_1){if(_1==null)return;var _2=_1.keyCode,_3=_1.which,_4=isc.EH,_5=_4.getKeyEventType(_1.type),_6=this.getWindow().event;if(_1.type==this.$689)return this.$688;if(isc.Browser.isIE){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]}
if(_5==_4.KEY_PRESS){var _7=_4.$85t[_4.$85t.length-1];if(_7!=null){return _7}
isc.logWarn("Trying to derive keyName from the charsetValueToKeyNameMap: "+_2+" = '"+_4.$ja[_9]+"'");var _8=_4.$ja[_2];if(!_8&&_6&&_6.ctrlKey){_8=isc.EH.$mw(_2)}
return _8}}else if(isc.Browser.isMoz){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]}else if(_5==_4.KEY_PRESS){if(_3==0&&_2!=0)return _4.$iz[_2];var _7=_4.$85t[_4.$85t.length-1];if(_7!=null)return _7;if(_2==0){return _4.$ja[_3]}else{return _4.$iz[_3]}}}else if(isc.Browser.isSafari){if(_5==_4.KEY_DOWN||_5==_4.KEY_UP){return _4.$iz[_2]}
var _9=(_3!=null?_3:_2);if(_9!=null&&_9!=0){if(_6&&_6.ctrlKey){var _10=isc.EH.$ja[_9];if(_10==null){if((isc.Browser.isChrome&&isc.Browser.version<33)||(!isc.Browser.isChrome&&isc.Browser.version<6))
{if(_9==10)_10="Enter";else _10=isc.EH.$mw(_9)}else{_10=isc.EH.$mw(_9)}}
return _10}
var _10=isc.EH.$ja[_9];if(_10==null)_10=isc.EH.$jb[_9]
return _10}else if(_5==this.KEY_PRESS){return null}}else{var _9=_3;if(_9==null||(_9==0&&_2))_9=_2
if(_9!=null)return isc.EH.$ja[_9]}
isc.Log.logWarn("EventHandler.determineEventKeyName(): Unable to determine key for '"+_1.type+"' event. Returning null");return null},isc.A.$mw=function isc_c_EventHandler__getKeyNameFromCtrlCharValue(_1){if(_1==30)return"6";if(_1==31)return"-";return String.fromCharCode(_1+64)},isc.A.clearKeyEventProperties=function isc_c_EventHandler_clearKeyEventProperties(_1){var _2=this.lastEvent;delete _2.eventType;delete _2.nativeKeyTarget;delete _2.characterValue;delete _2.keyName;delete _2.shiftKey;delete _2.ctrlKey;delete _2.altKey;delete _2.metaKey;this.$85t.remove(_1)},isc.A.canvasDestroyed=function isc_c_EventHandler_canvasDestroyed(_1){if(this.clickMaskUp())isc.EH.maskTarget(_1);if(_1.$rq)isc.Page.clearEvent(_1.$nx,_1.$rq);if(this.mouseDownEvent&&this.mouseDownEvent.target==_1)
this.mouseDownEvent.target=null;if(this.lastClickTarget==_1)this.lastClickTarget=null;if(this.lastEvent.target==_1)this.lastEvent.target=null;if(this.lastEvent.keyTarget==_1)this.lastEvent.keyTarget=null;if(this.$ke==_1)this.$ke=null;if(this.$k7==_1)this.$k7=null},isc.A.showClickMask=function isc_c_EventHandler_showClickMask(_1,_2,_3,_4){this.$118u=true;var _5;if(_2==true){_5=true;_2=isc.EH.SOFT}else if(_2==false||_2==null){_5=false;_2=isc.EH.HARD}else{_5=(_2!=isc.EH.HARD)}
if(_3==null)_3=[];else if(!isc.isAn.Array(_3))_3=[_3]
var _6=this,_7=_6.clickMaskRegistry,_8=_6.getFocusCanvas();if(_8==null&&isc.Browser.isIE){_8=_6.$lg;if(isc.DynamicForm&&isc.isA.FormItem(_8)){_8=_8.containerWidget}
if(_8)this.focusInCanvas(_8)}
if(this.logIsInfoEnabled("clickMask")){this.logInfo("showing click mask, action: "+_1+(_5?", autoHide true ":", autoHide false ")+(_4?", ID: "+_4:"")+", focusCanvas: "+_8,"clickMask")}
var _9=_6.lastMoveTarget;if(_9){delete _6.lastMoveTarget;_6.handleEvent(_9,_6.MOUSE_OUT,null,_6.lastMoveTargetItem)}
var _10={autoHide:_5,mode:_2,ID:(_4!=null?_4:"cm_"+_6.$j7++),$mx:{}};this.$my(_3,_10);var _11=_7.last();_7.add(_10);delete this.$118u;_10.clickAction=_1;if(_8!=null&&!_3.contains(_8)&&!_8.$1196)
{_8.blur("showing clickMask");this.setMaskedFocusCanvas(_8,_10)}else if(_11!=null){this.setMaskedFocusCanvas(_11.$li,_10)}
var _12=this.isHardMask(_10);if(_12){var _13=isc.timeStamp();var _14;if(_7.length>1){var _15=false,_16=[];for(var i=_7.length-2;i>=0;i--){_16.add(_7[i]);if(this.isHardMask(_7[i])){_15=true;break}}
if(_15){for(var i=0;i<_16.length;i++){var _18=_16[i].$mx;if(_18){this.$mz(_18,_3,true,true)}}}else{_14=true;this.$mz(isc.Canvas._canvasList,_3,false,true)}}else{_14=true;this.$mz(isc.Canvas._canvasList,_3,false,true)}}
if(this.maskNativeTargets){if(_11==null){this.showScreenSpan(_10)}else if(_12){this.$m0(_10.$mx)}}
this.updateEventMasks();return _10.ID},isc.A.updateEventMasks=function isc_c_EventHandler_updateEventMasks(){var _1=this.clickMaskRegistry,_2=_1?_1[_1.length-1]:null;if(_2&&_2.autoHide){var _3={};isc.addProperties(_3,_2.$mx);this.showEventMasks(false,_3)}else{this.hideEventMasks()}},isc.A.$my=function isc_c_EventHandler__applyUnmaskedTargets(_1,_2){_1=this.$m1(_1,_2);for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4==null)continue;_2.$mx[_4.getID()]=_4}},isc.A.$m1=function isc_c_EventHandler__getFullSetOfTargetsToUnmask(_1,_2){if(!_1||_1.length==0||!_2)return _1;for(var i=0;i<_1.length;i++)
_1[i]=this.$m2(_1[i]);var _4=_2.$mx;if(!_2.autoHide&&_1.length>0){var _5=_1.length;for(var i=0;i<_5;i++){var _6=_1[i];if(_6.topElement&&!_4[_6.topElement.getID()]&&!_1.contains(_6.topElement))
{this.logWarn("Attempting to unmask target canvas:"+_6.getID()+" with respect to a hard click mask. This is not a top level Canvas - all ancestors of this Canvas will also be unmasked.","clickMask");_1.add(_6.topElement)}}}
this.$m3(_1);this.$m4(_1);return _1},isc.A.$m4=function isc_c_EventHandler__combineDescendantsIntoList(_1){var _2=_1.length;for(var i=0;i<_2;i++){if(_1[i]==null)continue;this.$m5(_1[i],_1)}},isc.A.$m5=function isc_c_EventHandler__addDescendantsToList(_1,_2,_3){if(_3&&!_2.contains(_1))_2.add(_1);if(_1.children){for(var i=0;i<_1.children.length;i++){this.$m5(_1.children[i],_2,true)}}
if(isc.DynamicForm&&isc.CanvasItem&&isc.isA.DynamicForm(_1)){var _5=_1.getItems()||[];for(var i=0;i<_5.length;i++){if(_5[i].containerWidget==_1)continue;if(isc.isA.CanvasItem(_5[i])&&isc.isA.Canvas(_5[i].canvas)){this.$m5(_5[i].canvas,_2,true)}}}},isc.A.$m3=function isc_c_EventHandler__combineTopPeersIntoList(_1){for(var i=0,_3=_1.length;i<_3;i++){var t=_1[i];if(t.parentElement&&_1.contains(t.parentElement))continue;this.$m6(_1[i],_1)}},isc.A.$m6=function isc_c_EventHandler__addPeersToList(_1,_2,_3){if(_3&&!_2.contains(_1))_2.add(_1);var _4=_1.peers;if(_4){for(var i=0;i<_4.length;i++){this.$m6(_4[i],_2,true)}}
this.$m5(_1,_2)},isc.A.getClickMask=function isc_c_EventHandler_getClickMask(_1){var _2=this.clickMaskRegistry;if(isc.isAn.Object(_1)){return _2.contains(_1)?_1:null}
return _2.find(this.$cp,_1)},isc.A.changeClickMaskID=function isc_c_EventHandler_changeClickMaskID(_1,_2){var _3=this.getClickMask(_1);if(_3)_3.ID=_2},isc.A.isHardMask=function isc_c_EventHandler_isHardMask(_1){if(!isc.isAn.Object(_1))_1=this.getClickMask(_1);return _1==null?false:(_1.mode==isc.EH.HARD)},isc.A.getTopHardMask=function isc_c_EventHandler_getTopHardMask(){var _1=this.clickMaskRegistry;for(var i=_1.length-1;i>=0;i--){if(this.isHardMask(_1[i]))return _1[i]}
return null},isc.A.$mz=function isc_c_EventHandler__hardMaskTargets(_1,_2,_3,_4){if(!_1)return;if(_3){for(var _5 in _1){var _6=_1[_5];this.$m7(_6,_2,_4)}}else{for(var i=0;i<_1.length;i++){var _6=this.$m2(_1[i]);this.$m7(_6,_2,_4)}}},isc.A.$m7=function isc_c_EventHandler__hardMaskTarget(_1,_2,_3){if(!isc.isA.Canvas(_1)||_1.destroyed){isc.Log.logWarn("showClickMask - attempting to remove invalid object :"+isc.Log.echo(_1)+" from tab order","clickMask");return}
if(_2&&_2[_1.getID()])return;if(_1.isDrawn()){if(_1.getParentCanvas()==null){if(!_3&&this.$m8&&this.$m8.isDrawn()&&_1.getZIndex()>=this.$m8.getZIndex())
{this.logDebug("lowering zIndex of: "+_1,"clickMask");_1.setZIndex(isc.EH.$m8.getZIndex()-1)}}}
if(_1.accessKey!=null&&_1.isDrawn()){_1.$m9(null)}},isc.A.hideClickMask=function isc_c_EventHandler_hideClickMask(_1){if(this.logIsInfoEnabled("clickMask"))
this.logInfo("hideClickMask called with ID: "+_1,"clickMask");var _2=this.clickMaskRegistry;if(_2.length==0)return;if(_1==null){this.hideClickMask(_2[0].ID)
if(_2.length>0){this.hideClickMask()}else{this.logInfo("all clickmasks hidden","clickMask")}
return}
var _3=this.getClickMask(_1);if(_3==null)return;var _4=_2.indexOf(_3),_5=(_4==(_2.length-1)),_6=this.isHardMask(_3),_7=(_4>0?_2[_4-1]:null),_8,_9;if(this.logIsInfoEnabled("clickMask")){var _10="hiding clickMask ID: "+_1;if(_6)_10+="[autoHide:false]";else _10+="[autoHide:true]";if(_2.length<2){_10+=", all masks hidden"}else{_10+=" with index: "+_4+" of "+(_2.length-1)}
this.logInfo(_10,"clickMask")}
if(_6){_9=this.$na(_4,false);var _11=this.$na(_4,true);_8=(_11==null)}
var _12=_3.$li,_13=_3.$mx;_2.remove(_3);if(_7!=null){if(_13!=null){if(_7.$mx==null)_7.$mx={};isc.addProperties(_7.$mx,_13)}
if(_12&&!_7.$mx[_12.getID()]){this.setMaskedFocusCanvas(_12,_7)}}
if(this.$m8){if(_5&&_7==null){if(isc.Browser.isIE){isc.Timer.setTimeout({target:this.$m8,methodName:"hide"},0)}else{this.$m8.hide()}}else if(_8){if(_9){var _13=isc.addProperties({},_9.$mx);var _14=_2.length-1,_15=_2[_14];while(_15!=_9){isc.addProperties(_13,_15.$mx);_14--;_15=_2[_14]}
this.$m0(_13)}else this.$m8.sendToBack()}
if(_6){var _16;if(_9!=null){_16=[];for(var i=_4-1;i>=0;i--){var _18=_2[i];_16.addList(isc.getKeys(_18.$mx));if(_18==_9)break}}else{_16=isc.Canvas._canvasList}
this.$nb(_16,true)}
if(_12!=null&&!_12.destroyed&&!this.targetIsMasked(_12)&&!_12.$167w)
{if(this.logIsInfoEnabled("clickMask")){this.logInfo("focusing in "+_12+" on clickMask hide with current focusCanvas: "+isc.EH.$ke,"clickMask")}
var _19=(isc.Browser.isIE&&this.lastEvent.eventType==this.MOUSE_DOWN)
if(_19){this.$k7=_12}else{try{_12.$170m()}catch(e){}}}}
this.updateEventMasks()},isc.A.$na=function isc_c_EventHandler__getNextHardMask(_1,_2){var _3=this.clickMaskRegistry;if(_2){for(var i=_1+1;i<_3.length;i++){if(this.isHardMask(_3[i]))return _3[i]}}else{for(var i=_1-1;i>=0;i--){if(this.isHardMask(_3[i]))return _3[i]}}
return null},isc.A.$m2=function isc_c_EventHandler__getCanvas(_1){if(isc.isA.String(_1))return window[_1];return _1},isc.A.$nb=function isc_c_EventHandler__hardUnmaskTargets(_1,_2){if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _4=this.$m2(_1[i]);if(!_4)continue;if(_4.accessKey!=null&&_4.isDrawn()){_4.$m9(_4.accessKey)}
if(!_4.isDrawn()&&isc.isA.DynamicForm&&isc.isA.DynamicForm(_4)&&_4.items&&_4.items.length>0)
{var _5=_4.items[0];if(_5.containerWidget!=_4)_4=_5.containerWidget}
if(!_2&&_4.getParentCanvas()==null&&_4.getZIndex()<=this.$m8.getZIndex()&&_4!=this.$m8)
{_4.setZIndex(this.$m8.getZIndex()+1);this.logDebug("raised above screenspan: "+_4,"clickMask")}}},isc.A.clickMaskUp=function isc_c_EventHandler_clickMaskUp(_1){var _2=this.clickMaskRegistry;if(_1==null)return(_2.length>0);else return(_2.find("ID",_1)!=null)},isc.A.getAllClickMaskIDs=function isc_c_EventHandler_getAllClickMaskIDs(){var _1=this.clickMaskRegistry;if(_1.length<1)return[];return _1.getProperty("ID")},isc.A.showScreenSpan=function isc_c_EventHandler_showScreenSpan(_1){if(!this.$m8){this.$m8=isc.ScreenSpan.create({ID:"isc_EH_screenSpan",pointersToThis:[{object:this,property:"$m8"}]},this.clickMaskProperties)}
var _2=this.$m8;_2.show();if(!this.isHardMask(_1)){_2.sendToBack()}else{this.$m0(_1.$mx)}},isc.A.$m0=function isc_c_EventHandler__adjustSpanZIndex(_1){this.$nc=true;var _2;for(var _3 in _1){var _4=this.$m2(_3);if(!_4||_4.destroyed||_4.getParentCanvas()!=null){continue}
if(_4.getMasterCanvas()&&_1[_4.getMasterCanvas().getID()])continue;_4.bringToFront();if(_2==null)_2=_4.getZIndex(true);if(_4.peers){for(var i=0;i<_4.peers.length;i++){if(!_4.peers[i].isDrawn())continue;_2=Math.min(_2,_4.peers[i].getZIndex(true))}}}
if(_2!=null)this.$m8.setZIndex(_2-1);else this.$m8.bringToFront();this.$nc=false},isc.A.maskTarget=function isc_c_EventHandler_maskTarget(_1,_2){return this.maskTargets(_1,_2)},isc.A.maskTargets=function isc_c_EventHandler_maskTargets(_1,_2,_3){var _4=this.clickMaskRegistry;if(_1==null||_4.length==0)return;if(!isc.isAn.Array(_1))_1=[_1];else if(_1.length==0)return;var _5=(_2==null?_4[0]:(isc.isA.String(_2)?this.getClickMask(_2):_2));if(_5==null){this.logInfo("maskTargets called with invalid maskID - returning.","event")
return}
var _6=_1.length
for(var i=0;i<_6;i++){var _8=_1[i];if(!_3&&_8.children!=null){this.$m5(_8,_1)}
var _9=_8.parentElement;while(_9!=null){if(!_1.contains(_9)){_1.add(_9);if(_3)this.$m6(_9,_1)}
_9=_9.parentElement}
if(_3||!_9){this.$m6(_8,_1)}
if(_9)this.$m6(_9,_1)}
var _10=_4.indexOf(_5);var _11;for(var i=_10;i<_4.length;i++){_14=_4[i];if(this.isHardMask(_14))_11=i}
var _12;if(_11!=null)_12=[];for(var n=0;n<_1.length;n++){var _8=_1[n];if(_8.hasFocus&&!_8.$1196)_8.blur();var _14,_11,_15=null;for(var i=_10;i<_4.length;i++){_14=_4[i];if(_14.$mx[_8.getID()]){_15=i;var _16=_14.$mx;if(_16[_8.getID()]===_8)delete _16[_8.getID()]}}
if(_11!=null&&_15!=null&&(_11<=_15)){_12.add(_8)}}
if(_11!=null)this.$mz(_12,null,false,false)},isc.A.addUnmaskedTarget=function isc_c_EventHandler_addUnmaskedTarget(_1,_2){return this.addUnmaskedTargets(_1,_2)},isc.A.addUnmaskedTargets=function isc_c_EventHandler_addUnmaskedTargets(_1,_2){if(isc.$nd&&this.$nc)return;var _3=this.clickMaskRegistry;if(_1==null||_3.length==0)return;if(!isc.isAn.Array(_1))_1=[_1];if(_1.length==0)return;var _4;if(_2==null){_4=_3.last()}else{if(isc.isA.String(_2))_4=this.getClickMask(_2);else _4=_2}
if(_4==null){this.logInfo("addUnmaskedTargets called with invalid maskID - returning.","clickMask")
return}
var _5=_4;while(_5&&!this.isHardMask(_5)){_5=_3[_3.indexOf(_5)-1]}
if(_5!=null){if(isc.$nd&&_1.length==1&&_1[0].topElement!=null){return}}
_1=this.$m1(_1,_4);if(this.logIsDebugEnabled("clickMask")){this.logDebug("Added unmasked targets:"+_1.getProperty("ID")+" [+ decendants] to clickMask with ID: "+_4.ID,"clickMask")}
var _6=false;for(var i=_3.indexOf(_4)+1;i<_3.length;i++){if(this.isHardMask(_3[i]))_6=true}
for(var n=0;n<_1.length;n++){var _9=_1[n];if(_4.$mx==null)_4.$mx={};_4.$mx[_9.getID()]=_9}
if(!_6){this.$nb(_1)}},isc.A.targetIsMasked=function isc_c_EventHandler_targetIsMasked(_1,_2,_3,_4){var _5=this.clickMaskRegistry;if(_5.length==0)return false;if(_1==null)return true;var _6;if(_2==null)_6=_5.last();else if(isc.isA.String(_2))_6=_5.find("ID",_2);else _6=_2;if(!isc.isAn.Object(_6)){this.logWarn("EventHandler.targetIsMasked() passed invalid maskID:"+_2,"clickMask");return false}
var _7=_5.indexOf(_6);var _8=false;for(var i=_7;i<_5.length;i++){if(i!=_7)_6=_5[i];if(_3){if(_6.mode==isc.EH.HARD||_6.mode==isc.EH.SOFT_CANCEL){_8=true}else{continue}}
if(_6.$mx){if(_6.$mx[_1.getID()])return false;if(isc.DrawItem&&isc.isA.DrawItem(_1)){var _10=_1.drawPane;if(_10&&_10.getID&&_6.$mx[_10.getID()])return false}
if(isc.isA.DynamicForm!=null&&isc.isA.DynamicForm(_1)){if(!_4&&isc.EH.lastEvent.target==_1){_4=isc.DynamicForm.$172c()}
if(_4&&_4.containerWidget!=_1&&_6.$mx[_4.containerWidget.getID()])return false}}}
return(_3&&!_8?false:true)},isc.A.clickMaskClick=function isc_c_EventHandler_clickMaskClick(_1){var _2=this.clickMaskRegistry.duplicate(),_3=_2.last();while(_3!=null&&(this.targetIsMasked(_1)||_1==this.$m8)){if(this.logIsInfoEnabled("clickMask")){this.logInfo("mouseDown on masked "+_1+(_3.clickAction!=null?" firing clickAction, ":"")+(_3.autoHide?"will hide mask"+(_3.mode==isc.EH.SOFT_CANCEL?" and block click":""):"will block click"))}
var _4=(_3.mode!=isc.EH.SOFT);this.$lj(_3)
if(_4)return false;_3=_2[_2.indexOf(_3)-1]}
return true},isc.A.$lj=function isc_c_EventHandler__clickMaskClick(_1){var _2=_1.autoHide,_3=_1.clickAction;if(_2==true)this.hideClickMask(_1.ID);if(_3!=null)this.fireCallback(_3)});isc.B._maxIndex=isc.C+215;isc.EventHandler.captureEvents();isc.defineClass("MessagingDMISocket").addProperties({receiveChannel:null,defaultRequestTimeout:300000,requestReaperInterval:5000,sequence:0,pendingRequests:null,outstandingRequests:null,init:function(){this.Super("init");this.pendingRequests=[];this.outstandingRequests=[];this.ns.ClassFactory.addGlobalID(this);this.directBindingQueue=[];if(this.directBinding)this.directBindingOnly=true},bind:function(_1){var _2=this;this.logDebug("bind");if(!this.receiveChannel){this.logError("Unable to bind null receiveChannel");return}
if(this.directBindingOnly){this.$159x=true;if(_1)this.fireCallback(_1);return}
if(!isc.Messaging){this.logError("Messaging not available - unable to bind() socket");return}
isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.subscribe(this.receiveChannel,function(_3){_2.receive(_3)},function(){_2.$159x=true;if(_1)_2.fireCallback(_1)});delete isc.Messaging.isRemoteDebug},close:function(_1){if(!this.directBindingOnly)isc.Messaging.unsubscribe(this.receiveChannel);delete this.$159x;this.$139q();if(_1)this.fireCallback(_1)},$139q:function(){isc.Timer.clear(this.$139r);delete this.$139r},$139s:function(_1){this.$139q();var _2=this;this.$139r=isc.Timer.setTimeout(function(){_2.$139t()},_1);this.$139u=isc.timeStamp()+_1},$139t:function(){var _1=isc.timeStamp();var _2=-1;for(var i=0;i<this.outstandingRequests.length;){var _4=this.outstandingRequests[i];if(_1>=_4.expiresAt){this.outstandingRequests.removeAt(i);if(this.logIsDebugEnabled()){this.logDebug("Reaped request: "+isc.echo(_4))}}else{i++;if(_2==-1)_2=_4.timeout;else if(_4.timeout<_2)_2=_4.timeout}}
if(_2!=-1)this.$139s(_2)},getNextSequence:function(){this.sequence+=1;return this.sequence},send:function(_1,_2,_3,_4,_5){var _6=isc.addProperties({payload:_2,sequence:this.getNextSequence(),originChannel:this.receiveChannel,expectsReply:_3!=null},_4);var _7=isc.addProperties({sendChannel:_1,packet:_6,callback:_3,sequence:_6.sequence},_5);var _8=this;if(!this.$159x){this.pendingRequests.add(_7);this.bind(function(){while(_8.pendingRequests.length)_8.$139v(_8.pendingRequests.shift())});return}
this.$139v(_7)},$139v:function(_1){if(this.logIsDebugEnabled()){this.logDebug("$139v: "+isc.echo(_1))}
if(_1.callback){this.outstandingRequests.add(_1);var _2=isc.timeStamp();_1.sendTime=_2;if(_1.timeout==null)_1.timeout=this.defaultRequestTimeout;_1.expiresAt=_2+_1.timeout;if(this.$139u==null){this.$139s(_1.timeout)}else{if(this.$139u>_1.expiresAt)this.$139s(_1.timeout)}}
if(this.directBindingOnly){var _3;try{this.directBinding.window.isc;_3=this.directBinding.getSocket(_1.sendChannel)}catch(e){return}
if(!_3){this.logWarn("Unable to obtain direct binding socket for channel: "+_1.sendChannel);return}
this.sendDirectBindingPacket(_1.packet,_3,this.directBinding.window)}else{isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.send(_1.sendChannel,_1.packet,null,{sequenced:true,doNotTrackRPC:this.doNotTrackRPC});delete isc.Messaging.isRemoteDebug}},sendDirectBindingPacket:function(_1,_2,_3){_2.directBindingQueue.add({serializedPacket:isc.Comm.serialize(_1),originSocket:this,originWindow:window});try{var _4=_2.ID;_3.setTimeout("if (window."+_4+") "+_4+".processDirectBindingQueue()",0)}catch(e){}},processDirectBindingQueue:function(){while(this.directBindingQueue.length){var _1=this.directBindingQueue.shift();try{var _2=isc.$aq("return "+_1.serializedPacket)();this.delayCall("receive",[_2,_1.originSocket,_1.originWindow])}catch(e){}}},sendReply:function(_1,_2,_3,_4){if(!_1.expectsReply)return;var _5={payload:_2,originChannel:this.receiveChannel,sequence:this.getNextSequence(),inResponseTo:{originChannel:_1.originChannel,sequence:_1.sequence}}
if(this.logIsDebugEnabled()){this.logDebug("sendReply to :"+_1.originChannel+": "+isc.echo(_5))}
if(_3){try{_4.isc}catch(e){return}
this.sendDirectBindingPacket(_5,_3,_4)}else{isc.Messaging.isRemoteDebug=this.isRemoteDebug;isc.Messaging.send(_1.originChannel,_5,null,{sequenced:true,doNotTrackRPC:this.doNotTrackRPC});delete isc.Messaging.isRemoteDebug}},packetReceived:function(_1,_2,_3){},receive:function(_1,_2,_3){var _4=_1;if(_4.inResponseTo){var _5;var _5=this.outstandingRequests.find("sequence",_4.inResponseTo.sequence);if(!_5){if(this.logIsWarnEnabled()){this.logWarn("Unable to find originating request for response packet: "+isc.echo(_4));this.logWarn("Outstanding requests: "+isc.echo(this.outstandingRequests))}
return}
if(this.logIsDebugEnabled()){this.logDebug("original request: "+isc.echo(_5));this.logDebug("callback args "+isc.echoFull([_4.payload]))}
if(_5.callback)this.fireCallback(_5.callback,"payload",[_4.payload])}else{this.packetReceived(_4,_2,_3)}}});isc.defineClass("MessagingDMIClient").addProperties({socketConstructor:"MessagingDMISocket",getGUID:function(_1){if(!this.GUID)this.GUID=isc.Math.randomUUID();this.fireCallback(_1,"GUID",[this.GUID])},call:function(_1,_2,_3){var _4=this;var _5={};if(isc.isAn.Object(_1)){_5=isc.addProperties({},_1);_1=_5.methodName;_2=_5.args;_3=_5.callback}
if(!_2)_2=[];if(!isc.isAn.Array(_2)){this.logError("Expected Array as second arg or props.args in MessagingDMIClient.call(), but got:"+isc.echo(_2));return}
var _6=null;if(_3){_6=function(_10){_4.fireCallback(_3,"retVal",[_10])}}
isc.addProperties(_5,{methodName:_1,args:_2});var _7=_5.packetProperties;var _8=_5.requestProperties;delete _5.packetProperties;delete _5.requestProperties;var _9=_5.sendChannel||this.sendChannel;delete _5.sendChannel;if(!_9){this.logError("Error in call() - unable to resolve sendChannel"+this.getStackTrace());return}
if(!this.socket)this.connect(_9);this.socket.send(_9,_5,_6,_7,_8)},connect:function(_1,_2){var _3=this;if(_1.getServerProperties){this.directBinding=_1;_1=_1.getServerProperties()}
if(isc.isA.String(_1)){this.serverProperties={GUID:_1,receiveChannel:_1};this.sendChannel=this.serverProperties.receiveChannel}else if(_1.receiveChannel){this.serverProperties=_1;this.sendChannel=this.serverProperties.receiveChannel}
if(this.socket)this.socket.close();if(!this.receiveChannel){this.getGUID(function(_4){_3.receiveChannel=_4;_3.connect(_1,_2)});return}
this.socket=isc.ClassFactory.getClass(this.socketConstructor,true).create({receiveChannel:this.receiveChannel,directBinding:this.directBinding},this.socketDefaults,this.socketProperties);if(_2)this.call("connect",null,_2)},disconnect:function(_1){var _2=this;if(!this.socket){if(_1)this.fireCallback(_1);return}
var _3=function(_1){_2.socket.close(function(){delete _2.socket;delete _2.directBinding;if(_1)_2.fireCallback(_1)})}
if(_1){this.call("disconnect",[],function(){_3(_1)})}else{_3()}},ping:function(_1,_2){var _3=_2?{timeout:_2}:null;this.call({methodName:"ping",callback:_1,requestProperties:_3})}});isc.defineClass("MessagingDMIServer").addProperties({socketConstructor:"MessagingDMISocket",init:function(){if(!this.visibleMethods)this.visibleMethods=[];this.window=window},getGUID:function(_1){if(!this.GUID)this.GUID=isc.Math.randomUUID();this.fireCallback(_1,"GUID",[this.GUID])},handlePacket:function(_1,_2,_3){if(this.logIsDebugEnabled()){this.logDebug("packetReceived: "+isc.echo(_1))}
var _4=this;var _5=isc.addProperties({},_1.payload);_5.callback=function(_6){if(this.logIsDebugEnabled)_4.logDebug("invocation of: "+_1.payload.methodName+" returned");_4.socket.sendReply(_1,_6,_2,_3)};this.call(_5)},getServerProperties:function(){return{GUID:this.GUID,receiveChannel:this.receiveChannel,discoverableOnChannel:this.discoverableOnChannel,generatedDate:new Date(),userAgent:navigator.userAgent,platform:navigator.platform,vendor:navigator.vendor,visibleMethods:this.visibleMethods}},getSocket:function(_1){if(this.sockets)return this.sockets.find("receiveChannel",_1);return null},start:function(_1){var _2=this;if(this.sockets){this.logWarn("start() called when socket is connected - restarting");this.stop()}
if(!this.receiveChannel){this.getGUID(function(_6){_2.receiveChannel=_6;_2.start(_1)});return}
this.sockets=[];this.socket=isc.ClassFactory.getClass(this.socketConstructor,true).create({receiveChannel:this.receiveChannel,packetReceived:function(_6,_7,_8){_2.handlePacket(_6,_7,_8)}},this.socketDefaults,this.socketProperties);this.sockets.add(this.socket);if(this.discoverableOnChannel){this.discoverySocket=isc.ClassFactory.getClass(this.socketConstructor,true).create({receiveChannel:this.discoverableOnChannel,packetReceived:function(_6,_7,_8){_2.handlePacket(_6,_7,_8)}},this.socketDefaults,this.socketProperties);this.sockets.add(this.discoverySocket)}
var _2=this;var _3=0;for(var i=0;i<this.sockets.length;i++){var _5=this.sockets[i];_5.bind(function(){if(++_3==_2.sockets.length){_2.isAvailable=true;if(_1)_2.fireCallback(_1)}})}},stop:function(_1){this.isAvailable=false;if(!this.sockets){this.fireCallback(_1);return}
var _2=this;var _3=this.sockets.length;for(var i=0;this.sockets&&i<this.sockets.length;i++){var _5=this.sockets[i];_5.close(function(){if(--_3==0){delete _2.sockets;if(_1)_2.fireCallback(_1)}})}},discover:function(_1){this.logDebug("discover invoked - callback: "+(_1?_1.toString():"null"));if(_1)this.fireCallback(_1,"serverProperties",[this.getServerProperties()])},ping:function(_1){this.logDebug("ping");if(_1)this.fireCallback(_1)},connect:function(_1){this.logDebug("connect");if(_1)this.fireCallback(_1)},disconnect:function(_1){this.logDebug("disconnect");if(_1)this.fireCallback(_1)},call:function(_1,_2,_3){var _4=this;var _5;var _6={};if(isc.isAn.Object(_1)){_6=_1;_5=_6.targetName;_1=_6.methodName;_2=_6.args;_3=_6.callback}
if(!_5){var _7=_1.lastIndexOf(".");if(_7!=-1){_5=_1.substring(0,_7);_1=_1.substring(_7+1)}}
if(_5&&!this.allowUnrestrictedCallTarget){this.logError("Attempt to call: "+_5+"."+_1+"() REJECTED - to enable, set allowUnrestrictedCallTarget on your "+this.getClassName());return}
var _8=_5?eval(_5):this;if(!(this.visibleMethods.contains("*")||this.allowUnrestrictedCallTarget)){if(!(this.visibleMethods.contains(_1)||isc.MessagingDMI.builtinMethods.contains(_1))){this.logError("Attempt to call non-visible method: "+_1+" DENIED. To allow this action, declare this method in your "+this.getClassName()+".visibleMethods list.");return}}
var _9=_8[_1];if(!_9){this.logError("Unable to find method named '"+_1+"' on class: "+this.getClassName());return}
if(!_2)_2=[];if(!isc.isAn.Array(_2)){this.logError("Expected Array as second arg or props.args in "+this.getClassName()+".call(), but got:"+isc.echoFull(_2));return}
if(_8==this){_9.apply(this,_2.concat([function(_10){if(_3)_4.fireCallback(_3,"retVal",[_10])}]))}else{var _10=_9.apply(_8,_2);if(_3)_4.fireCallback(_3,"retVal",[_10])}}});isc.defineClass("DebugTarget","MessagingDMIServer");isc.A=isc.DebugTarget.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.allowUnrestrictedCallTarget=true;isc.A.discoverableOnChannel="isc_DebugTarget";isc.A.socketDefaults={doNotTrackRPC:true,isRemoteDebug:true};isc.A.discoverySocketDefaults={doNotTrackRPC:true,isRemoteDebug:true};isc.A.$f8="count";isc.A.DEFAULT_CATEGORIES=[{name:"layout",description:"Logs from Layout and Stack about members and layout policy."},{name:"sizing",description:"Reporting drawn sizes"},{name:"scrolling",description:"Detecting the need for scrolling and custom scrollbars"},{name:"animation",description:"Animation logs"},{name:"RPCManager",description:"RPC and DataSource requests and responses"},{name:"RPCManagerResponse",description:"Enable logging of full length RPC responses (can be slow)"},{name:"xmlComm",description:"Inbound and outbound XML messages"},{name:"xmlSelect",description:"XPath expressions and their results"},{name:"xmlBinding",description:"DataSource and WebService XML request/response handling"},{name:"xmlToJS",description:"XML to JavaScript translation in databinding"},{name:"ResultSet",description:"Load on demand and cache update management for ListGrids"},{name:"ResultTree",description:"Load on demand for TreeGrids"},{name:"FileLoader",description:"Background download and caching of files"},{name:"fetchTrace",description:"Shows a stack trace for all fetches initiated through a ResultSet"},{name:"dragDrop",description:"Drag and drop related logs"},{name:"EventHandler",description:"Mouse and keyboard events, bubbling, cancellation"},{name:"visualState",description:"Visual state transitions for buttons, bars, and other stateful widgets"},{name:"RpcTabTiming",description:"Show detailed timing data for RPC/DSRequests in the RPC tab"},{name:"gridEdit",description:"Inline editing in grids"},{name:"Page",description:"Page-wide events"},{name:"loadTime",description:"ISC load / parse time"},{name:"redraws",description:"Logging of redraw()s and reasons for them"},{name:"redrawTrace",description:"Logs a stack trace for every redraw when both 'redraws' and 'redrawTrace' are set to debug priority"},{name:"clears",description:"Logs all clear()s"},{name:"destroys",description:"Logs all destroy()s"},{name:"draws",description:"All component draws"},{name:"resize",description:"Resizes of drawn components"},{name:"testReplay",description:"Details of why Selenium commands are failing during playback"},{name:"DynamicForm"},{name:"ListGrid"},{name:"TreeGrid"},{name:"CubeGrid"},{name:"deprecated",description:"Notify when deprecated attributes are used"}];isc.B.push(isc.A.getGUID=function isc_DebugTarget_getGUID(_1){if(!this.GUID){var _2=isc.LogViewer.getGlobalLogCookieValue("isc_pageGUID");var _3=isc.LogViewer.getGlobalLogCookieValue("isc_pageURL");if(!_2||_3!=location.href){var _4=this;this.Super("getGUID",[function(_2){_4.GUID=_2;isc.LogViewer.setGlobalLogCookieValue("isc_pageURL",location.href);isc.LogViewer.setGlobalLogCookieValue("isc_pageGUID",_4.GUID);_4.fireCallback(_1,"GUID",[_4.GUID])}],arguments);return}else{this.GUID=_2}}
this.fireCallback(_1,"GUID",[this.GUID])},isc.A.sendTargetAvailableNotify=function isc_DebugTarget_sendTargetAvailableNotify(){this.socket.send("isc_DebugMaster",{methodName:"targetAvailable",args:[this.getServerProperties()]})},isc.A.getServerProperties=function isc_DebugTarget_getServerProperties(){var _1="Desktop";if(isc.Browser.isTablet)_1="Tablet";else if(isc.Browser.isHandset)_1="Handset";return isc.addProperties(this.Super("getServerProperties",arguments),{userAgent:navigator.userAgent,documentTitle:document.title,URL:location.href,formFactor:_1,browserVersion:isc.Browser.version,browserMinorVersion:isc.Browser.minorVersion})},isc.A.pushRPCUpdate=function isc_DebugTarget_pushRPCUpdate(_1){if(!isc.debugMaster)return;var _2={cancelled:_1.cancelled,receiveTime:_1.receiveTime,URL:_1.URL,transactionNum:_1.transactionNum,serializedCommResults:_1.serializedCommResults,serializedCommResultsAreFormatted:_1.serializedCommResultsAreFormatted,transport:_1.transport};var _3=[];for(var i=0;i<_1.operations.length;i++){var _5=_1.operations[i];var _6=_1.responses[i];_3[i]=this.rpcToRecord(_1,_5,_6);if(_1.operations.length>1)_3[i]._queueIndex=i}
_2.rpcs=_3;isc.debugMaster.call("isc.RPCTracker.updateTransactionRecord",[_2]);_1.pushedToDebugMaster=true},isc.A.rpcToRecord=function isc_DebugTarget_rpcToRecord(_1,_2,_3){var _4=_2._dsRequest||_2.$374;var _5="RPCRequest";if(_4!=null)_5="DSRequest";else if(_2.data&&_2.data.is_ISC_RPC_DMI)_5="RPC DMI";else if(_2.wsOperation)_5="WSRequest";var _6;if(_2.operationType){_6=_2.operationType;if(_2.operationId){_6+="&lt;"+_2.operationId+"&gt;"}
if(_2.wsOperation)_6+="["+_2.wsOperation+"]"}else if(_2.wsOperation){_6=_2.wsOperation}else{if(_2.data&&_2.data.methodName)_6=_2.data.methodName;else _6="RPC"}
var _7;if(_2.dataSource){_7=_2.dataSource}else{if(_2.data&&_2.data.appID)_7=_2.data.appID+"/"+_2.data.className}
var _8=_2.componentId||"",_9=_2.componentContext;if(_9){_8+=" &lt;"+_9+"&gt;"}
var _10=_1.mergedActionURL?_1.mergedActionURL:_2.actionURL;if(_1.isProxied)_10=_1.proxiedURL;if(_1.allClientOnly)_10="[client only]";var _11={url:_10,transactionNum:_1.transactionNum,type:_5,ds:_7,operationType:_6,componentId:_8,transport:_2.transport,httpMethod:_2.httpMethod,timeSent:new Date(_1.sendTime),proxied:_2.isProxied,timeout:_1.timeout,xhrData:_1.xhrData,xhrHeaders:_1.xhrHeaders,callStack:_2.$138k,clientTiming:_2.clientTiming};if(_3&&_3.clientOnlyData){_11.clientOnlyData=isc.JSON.encode(_3.clientOnlyData,{prettyPrint:true,strictQuoting:false,serializeInstances:"short",skipInternalProperties:true})}
if(_11.transport=="xmlHttpRequest"||_11.transport=="hiddenFrame"){var _12=["actionURL","showPrompt","prompt","transport","useSimpleHttp","promptStyle","timeout","params","httpMethod","contentType","httpHeaders","ignoreTimeout","sendNoQueue","paramsOnly","bypassCache","isProxied"];if(_11.type=="RPCRequest"){_12.addList(["callback","willHandleError","evalResult","evalVars","serverOutputAsString","containsCredentials","clientContext","internalClientContext"])}
_12.add("data");var _13=isc.applyMask(_2,_12);_11.decoded=isc.JSON.encode(_13,{prettyPrint:true,serializeInstances:"short"})}
var _14=_2._dsRequest||_2.$374;if(_14){var _12=["dataSource","operationType","operationId","componentId","data","startRow","endRow","sortBy","textMatchStyle","resultSet","resultTree","parentNode","callback","willHandleError","showPrompt","prompt","oldValues","requestId","clientContext","internalClientContext"];var _15=(_14.operation&&_14.operation.source=="auto");var _16={};for(var i=0;i<_12.length;i++){var _18=_12[i];if(_18=="operationId"&&_15)continue;var _19=_14[_18];if(_19==null)continue;if(_18=="parentNode"){_16[_18]=this.getShallowData(_19)}else if(_18=="clientContext"||_18=="internalClientContext"){var _20=_16[_18]={};for(var _21 in _19){_20[_21]=this.getShallowData(_19[_21])}}else{_16[_18]=_19}}
var _22=["originalData","operation","unconvertedDSRequest"];var _23=isc.getKeys(_14);for(var i=0;i<_23.length;i++){var _18=_23[i];if(_12.contains(_18))continue;if(_22.contains(_18))continue;var _19=_14[_18];if(_19==null)continue;if(!isc.DS.isSimpleTypeValue(_19)&&!isc.isAn.Instance(_19))continue;_16[_18]=_19}
var _24=isc.JSON.encode(_16,{prettyPrint:true,strictQuoting:false,serializeInstances:"short",skipInternalProperties:true});_11.dsReqJSON=_24}
if(_3){var _12=["operationId","transactionNum","httpResponseCode","transport","status","clientOnly","httpHeaders","isStructured","isDSResponse","invalidateCache","startRow","endRow","totalRows","clientTiming","timing"];var _25=isc.applyMask(_3,_12);_11.rpcResponseRecord=isc.JSON.encode(_25,{prettyPrint:false,strictQuoting:false,serializeInstances:"short",skipInternalProperties:false})}
if(_3){isc.addProperties(_11,{status:_3.status,httpCode:_3.httpResponseCode,responseReceived:new Date(_1.receiveTime)})}else if(_1.cancelled){isc.addProperties(_11,{status:"CANCELLED"})}
return _11},isc.A.getShallowData=function isc_DebugTarget_getShallowData(_1){if(isc.DS.isSimpleTypeValue(_1))return _1;var _2={},_3=isc.isA.Instance(_1),_4=_3?_1.getClass().getPrototype():null;for(var _5 in _1){var _6=_1[_5];if(_6==null)continue;if(_3&&_4&&_4[_5]==_6)continue;if(isc.DS.isSimpleTypeValue(_6)){_2[_5]=_6}else{_2[_5]={output:isc.echoLeaf(_6),$eu:function(){return this.output}}}}
return _2},isc.A.updateStats=function isc_DebugTarget_updateStats(_1){if(!isc.debugMaster)return;if(isc.$gd)return;var _2=isc.Canvas;var _3,_4;if(_1==null){var _5=isc,_2=_5.Canvas,_6=_2._stats,_7=_5.EH.lastTarget,_8=_5.EH.getFocusCanvas();_4={draws:_6.draws,clears:_6.clears,redraws:_6.redraws,destroys:_6.destroys,count:_2._canvasList.length-_2._iscInternalCount,currentCanvas:_7!=null?_7.getID():"",currentFocusCanvas:_8!=null?_8.getID():""}}else if(_1==this.$f8){_3=_2._canvasList.length-_2._iscInternalCount}else if(_1){_3=_2._stats[_1]}
if(_4){isc.debugMaster.call("countsDisplay.setValues",[_4])}else{isc.debugMaster.call("countsDisplay.setValue",[_1,_3])}},isc.A.displayEventTarget=function isc_DebugTarget_displayEventTarget(){if(!isc.debugMaster)return;var _1=isc.EH.lastTarget&&isc.EH.lastTarget.getID?isc.EH.lastTarget.getID():"";if(_1==this.$ge)return;this.$ge=_1;isc.debugMaster.call("targetsDisplayEventHandler.setValue",["currentCanvas",_1]);var _2=isc.EH.lastEvent.nativeTarget;var _3=(_2?(_2.id||_2.ID||_2.tagName):'none')
isc.debugMaster.call("targetsDisplayEventHandler.setValue",["nativeTarget",_3])},isc.A.displayFocusTarget=function isc_DebugTarget_displayFocusTarget(){if(!isc.debugMaster)return;var _1=isc.EH.getFocusCanvas(),_2=_1?_1.getID():"";if(_2==this.$gf)return;this.$gf=_2;isc.debugMaster.call("targetsDisplayEventHandler.setValue",["currentFocusCanvas",_2])},isc.A.displayMouseDownTarget=function isc_DebugTarget_displayMouseDownTarget(){if(!isc.debugMaster)return;var _1=isc.EH.mouseDownEvent.target,_2=_1?_1.getID():"";isc.debugMaster.call("targetsDisplayEventHandler.setValue",["lastMouseDown",_2]);if(isc.AutoTest!=null&&isc.Log.showLocatorOnMouseDown){var _3=isc.AutoTest.getLocator();isc.debugMaster.call("targetsDisplayEventHandler.setValue",["autoTestLocator",_3||"none"])}},isc.A.showFocus=function isc_DebugTarget_showFocus(){isc.DebugFocus.showFocus()},isc.A.clearFocus=function isc_DebugTarget_clearFocus(){isc.DebugFocus.clearFocus()},isc.A.debugDisable=function isc_DebugTarget_debugDisable(_1){if(isc.debugMaster){isc.debugMaster.disconnect();this.ignore(isc.Log,"addToMasterLog");this.ignore(isc.EventHandler,"getEventTargetCanvas");this.ignore(isc.EventHandler,"_focusInCanvas");this.ignore(isc.EventHandler,"doHandleMouseDown");isc.debugMaster=null}
if(_1)_1()},isc.A.debugEnable=function isc_DebugTarget_debugEnable(_1,_2){var _3=this;this.debugDisable();var _4=isc.MessagingDMIClient.create({socketProperties:{doNotTrackRPC:true,isRemoteDebug:true}});if(_1==null){_1=isc.Log.logViewer._logWindow.debugMaster}
_4.connect(_1,function(){if(_2)_3.fireCallback(_2,"props",[_3.getProps()]);_4.call("clearLog");_4.call("addToLog",[isc.Log.getMessages()]);isc.debugMaster=_4;_3.updateStats();if(isc.RPCManager)isc.RPCManager.pushBufferedTransactionsToDebugMaster();if(isc.xml&&isc.xml.xmlResponses){_4.call("window.updateCommWatcher",[isc.xml.xmlResponses])}
_3.observe(isc.Log,"addToMasterLog","isc.Log.logViewer.addToLog(message)");_3.observe(isc.EventHandler,"getEventTargetCanvas","observer.displayEventTarget()");_3.observe(isc.EventHandler,"_focusInCanvas","observer.displayFocusTarget()");_3.observe(isc.EventHandler,"doHandleMouseDown","observer.displayMouseDownTarget()")})},isc.A.getProps=function isc_DebugTarget_getProps(){var _1=this.getGlobalLogCookie();if(!_1)_1={};var _2={isc_version:isc.version,isc_Browser_isIE:isc.Browser.isIE,isc_Browser_isMoz:isc.Browser.isMoz,isc_Browser_isSGWT:isc.Browser.isSGWT,isc_RPCManager:isc.RPCManager!=null,isc_AutoTest:isc.AutoTest!=null,isc_Log_showLocatorOnMouseDown:isc.Log.showLocatorOnMouseDown,isc_xml:isc.xml!=null,globalLogCookie:_1,_includeOriginalMozStack:window._includeOriginalMozStack,_remoteControlEnabled:isc.Log.logViewer._remoteControlEnabled};return _2},isc.A.evalJSWithDevConsoleVars=function isc_DebugTarget_evalJSWithDevConsoleVars(_1,_2,_3){var _4=isc.Canvas._canvasList[0];_4=window[_2.watchedId];isc.addProperties(_2,{watched:_4,time:function(_5,_6){isc.Log.timeMethod(_5,_6)},trace:function(_5,_6){isc.Log.traceMethod(_5,_6)},traceCall:function(_5,_6){isc.Log.traceMethod(_5,_6,true)},timeExpression:function(_1,_5,_6){isc.Log.timeExpression(_1,_5,_6)},log:function(_5,_6){return isc.Log.logWarn.call(isc.Log,_5,_6)},echo:function(_5){return isc.Log.echo(_5)},echoAll:function(_5){return isc.Log.echoAll(_5)},echoFull:function(_5){return isc.Log.echoFull(_5)}});if(_3){isc.Log.logViewer.delayCall("evaluate",[_1,_2],3000)}else{isc.Log.logViewer.evaluate(_1,_2)}},isc.A.browserEvalXML=function isc_DebugTarget_browserEvalXML(_1){if(isc.DS.get("Canvas")==null){isc.Log.logWarn("Browser eval XML: couldn't find schema for Canvas, please load it using the <isomorphic:loadSystemSchema/> jsp tag")}
isc.XMLTools.toComponents(_1)},isc.A.browserXMLToJS=function isc_DebugTarget_browserXMLToJS(_1){if(isc.DS.get("Canvas")==null){isc.Log.logWarn("Browser eval XML: couldn't find schema for Canvas, please load it using the <isomorphic:loadSystemSchema/> jsp tag")}
var _2=isc.XMLTools.toComponents(_1,{propertiesOnly:true});isc.Log.logInfo("Browser xmlToJS: \n\n"+isc.echoFull(_2))},isc.A.literalTextAsCanvasContents=function isc_DebugTarget_literalTextAsCanvasContents(_1){isc.Canvas.create({ID:"literalHTMLCanvas",autoDraw:true,contents:_1,backgroundColor:"gray"})
window.literalHTMLCanvas.bringToFront()},isc.A.getVersionCanvasContents=function isc_DebugTarget_getVersionCanvasContents(_1){var _2="SmartClient&nbsp;Version:&nbsp;<b>${isc.version}</b>&nbsp;";if(["Eval","PNC","IDev"].contains(isc.licenseType)){if(isc.licenseType=="Eval"){_2+="(expires&nbsp;${isc.expirationDate})"}else{_2+="(built&nbsp;${isc.buildDate})"}
_2+=" Licensed&nbsp;to:&nbsp;${isc.licenseCompany}&nbsp;(#${isc.licenseSerialNumber})"}else{_2+="(built&nbsp;${isc.buildDate})"}
_1(_2.evalDynamicString(this))},isc.A.toggleRuler=function isc_DebugTarget_toggleRuler(){if(window.isc_dev_ruler){window.isc_dev_ruler.destroy();return}
isc.Canvas.create({ID:"isc_dev_ruler",left:isc.Page.getScrollLeft()+5,top:isc.Page.getScrollTop()+5,overflow:"hidden",canDragResize:true,dragAppearance:"target",canDragReposition:true,backgroundImage:"[SKIN]/grid.gif",backgroundColor:"powderBlue",opacity:75,moved:function(){this.markForRedraw()},getInnerHTML:function(){var _1=this.getWidth()+"w x "+this.getHeight()+"h<br>at: "+this.getPageLeft()+","+this.getPageTop();return"<span title='"+_1+"'>"+_1+"</span>"},autoDraw:true});window.isc_dev_ruler.bringToFront()},isc.A.getCanvasList=function isc_DebugTarget_getCanvasList(_1,_2,_3,_4){var _5=isc.Canvas._canvasList,_6=[],_7={};var _8=[,"w x ",,"h"];var _9=[,", "];for(var i=0;i<_5.length;i++){var _11=_5[i];if(isc.Page._eT==_11)continue;else if(isc.Log._hiliteCanvas==_11)continue;else if(!_3&&!_11.isVisible())continue;else if(!_2&&!_11.isDrawn())continue;else if(_11._generated&&!_1)continue;var _12={id:_11.getID(),theClass:_11.Class,drawn:_11.isDrawn(),visible:_11.isVisible(),zIndex:_11.getZIndex(),pageLeft:_11.getPageLeft(),pageTop:_11.getPageTop(),overflow:_11.overflow,hasChildren:_7[_11.getID()]};_8[0]=_11.getWidth();_8[2]=_11.getHeight();_12.size=_8.join(isc.emptyString);_8[0]=_11.getVisibleWidth();_8[2]=_11.getVisibleHeight();_12.drawnSize=_8.join(isc.emptyString);try{_9[0]=_12.pageLeft;_9[2]=_12.pageTop;_12.position=_9.join(isc.emptyString);_12.positionSortField=_12.pageLeft*100000+_12.pageTop}catch(e){_12.position="Error: "+e}
var _13=_11;while(_13&&(_13.masterElement||_13.parentElement)){_13=(_13.masterElement||_13.parentElement);if(_1||!_13._generated)break}
if(_13!=_11){var _14=_7[_13.getID()];if(_14)_14.hasChildren=true;else _7[_13.getID()]=true;_12.treeParentId=_13.ID}
_7[_11.ID]=_12;_6.add(_12)}
_4(_6)},isc.A.measureGC=function isc_DebugTarget_measureGC(){isc.debugMaster.call("addToLog",["GC Time: "+isc.Log.getGCTime().toFixed(2)+"ms"])},isc.A.getDefaultLogCategories=function isc_DebugTarget_getDefaultLogCategories(){return this.DEFAULT_CATEGORIES.getProperty("name")},isc.A.getLogCategories=function isc_DebugTarget_getLogCategories(_1,_2){var _3=this.getDefaultLogCategories();var _4=isc.Log.getLogPriorities(_1);for(var _5 in _4){if(_3.contains(_5))continue;_3[_3.length]=_5}
if(_2)isc.Class.fireCallback(_2,"categories",[_3]);return _3},isc.A.getLogCategoryData=function isc_DebugTarget_getLogCategoryData(_1,_2){var _3=(_1?isc.Log.getLogPriorities(_1,true):null),_4=this.getLogCategories(_1),_5=isc.Log;var _6=[],_7;for(var i=0;i<_4.length;i++){var _9=_4[i];if(_1){if(_9==isc.Log._allCategories)continue;else if(_9==isc.Log.$fs){_7=window[_1].getDefaultLogPriority();continue}}
var _10=_5.getPriority(_9,_1);var _11=this.DEFAULT_CATEGORIES.findIndex("name",_9);var _12;if(_11!=-1)_12=this.DEFAULT_CATEGORIES[_11].description;_6.add({category:_9,description:_12,priority:_10||_5.defaultPriority,custom:_3&&_3[_9]!=null})}
_6.add({category:"[default]",priority:(_7||_5.defaultPriority),custom:(_7?true:false)});this.fireCallback(_2,"categoryData",[_6])},isc.A.generateLogMenuItems=function isc_DebugTarget_generateLogMenuItems(_1,_2,_3){var _4=this.getLogCategories(),_5=[],_6=[];var _7=Math.min(_4.length,_2);for(var i=0;i<_7;i++){var _9=_4[i];var _10=isc.Log.getPriority(_9,_1);if(_10==null)_10=isc.Log.getDefaultPriority();_6.add({title:_9,selectedLevel:_10,category:_9,addPrioritiesSubmenu:true,enableIf:"menu.allCategoriesOverride() == null"})}
_6.add({isSeparator:true});_6.add({title:"[default]",category:"$fs",addPrioritiesSubmenu:true,selectedLevel:isc.Log.getDefaultPriority(_1),enableIf:"menu.allCategoriesOverride() == null"})
_6.add({title:"More...",click:"menu.setCustomLogPriorities()"});_5=_6.duplicate();_6=_1!=null?_5:_6;for(var i=0;i<_6.length;i++){var _11=_6[i],_9=_11.category;if(_9){var _12=isc.Log.getPriority(_9,_1),_13=(_12>isc.Log.WARN?"color:blue;":null);if(_13!=_11.cssText){_11.cssText=_13}}}
this.fireCallback(_3,"menuItems",[_6])},isc.A.getGlobalLogCookie=function isc_DebugTarget_getGlobalLogCookie(_1){var _2=isc.LogViewer.getGlobalLogCookie();if(_2==null)_2={};_2.priorityDefaults=isc.Log.getLogPriorities();_2.defaultPriority=isc.Log.defaultPriority;if(_1)this.fireCallback(_1,"globalLogCookie",[_2]);return _2},isc.A.set=function isc_DebugTarget_set(_1,_2,_3){var _1=isc.Class.globalEvalWithCapture(_1+"="+_2);if(_3)this.fireCallback(_3,"lValue",[eval(_1)])},isc.A.get=function isc_DebugTarget_get(_1,_2){this.fireCallback(_2,"value",[eval(_1)])});isc.B._maxIndex=isc.C+30;isc.defineClass("DebugFocus").addClassProperties({hideTimeout:2000,opacityMax:75,opacityMin:50,oscillationFrequency:2000,showFocus:function(){if(this.$ke&&this.$ke.isVisible()){this.clearHideTimer();this.setHideTimer();return}
if(!this.$ke){this.$ke=isc.Canvas.create({width:"100%",height:"100%",overflow:"hidden",backgroundColor:"#4169E1",hideUsingDisplayNone:true})}
var _1=this.$ke;_1.setOpacity(this.opacityMin);_1.show();_1.bringToFront();this.setHideTimer();this.startFadeInAnimation()},clearFocus:function(){this.clearHideTimer();this.hideFocus()},startFadeOutAnimation:function(){this.$ke.cancelAnimation(this.fadeAnimationID);this.fadeAnimationID=this.$ke.animateFade(this.opacityMin,"isc.DebugFocus.startFadeInAnimation()",this.oscillationFrequency/2,"smoothStart")},startFadeInAnimation:function(){this.$ke.cancelAnimation(this.fadeAnimationID);this.fadeAnimationID=this.$ke.animateFade(this.opacityMax,"isc.DebugFocus.startFadeOutAnimation()",this.oscillationFrequency/2,"smoothStart")},hideFocus:function(){if(this.$ke!=null){this.$ke.cancelAnimation(this.fadeAnimationID);this.$ke.hide()}},clearHideTimer:function(){if(this.$144p!=null){isc.Timer.clearTimeout(this.$144p);delete this.$144p}},setHideTimer:function(){this.$144p=isc.Timer.setTimeout("isc.DebugFocus.hideFocus()",this.hideTimeout)}});isc.defineClass("RemoteDebug").addClassProperties({isEnabled:false,modulesDir:"system/development/",getUniqueChannelName:function(){return navigator.userAgent},conditionallyEnable:function(){this.logDebug("conditionally enabling debug");if(window.isc_remoteDebug&&isc.Browser.isMobile){this.enable()}else if(isc.params["isc_remoteDebug"]=="true"){this.enable()}},requiredModules:["RealtimeMessaging"],loadRequiredModules:function(_1){var _2=this;isc.FileLoader.ensureLoaded(function(){var _3=isc.FileLoader.modulesDir;isc.FileLoader.modulesDir=_2.modulesDir
isc.FileLoader.loadModules(_2.requiredModules,function(){isc.FileLoader.modulesDir=_3;_2.fireCallback(_1)});isc.FileLoader.modulesDir=_3})},enable:function(_1){if(this.isEnabled){_2.fireCallback(_1)}
if(!isc.hasOptionalModules("SCServer")){alert("Remote debugging requires a Pro or better license.");return}
if(!isc.Log.logViewer)isc.Log.logViewer=isc.LogViewer.create();var _2=this;this.loadRequiredModules(function(){isc.debugTarget=isc.DebugTarget.create({});isc.debugTarget.start(function(){isc.debugTarget.sendTargetAvailableNotify();_2.isEnabled=true;_2.logInfo("Remote debug enabled");_2.fireCallback(_1)})})},enableLocal:function(_1){if(isc.debugTarget){isc.debugTarget.debugDisable()}
var _2=this;this.isEnabled=false;isc.debugTarget=isc.DebugTarget.create({socketProperties:{directBindingOnly:true}});isc.debugTarget.start(function(){_2.fireCallback(_1)})}});if(isc.Page.isLoaded()){isc.RemoteDebug.conditionallyEnable()}else{isc.Page.setEvent("load","isc.RemoteDebug.conditionallyEnable()",isc.Page.FIRE_ONCE)}
isc.ClassFactory.defineClass("Element",null,null,true);isc.A=isc.Element;isc.A.vendorCSSPrefix=(isc.Browser.isMoz?"-moz-":isc.Browser.isChrome?"-webkit-":isc.Browser.isSafari?"-webkit-":isc.Browser.isOpera?"-o-":isc.Browser.isIE?"-ms-":"");isc.A.vendorStylePrefix=(isc.Browser.isMoz?"Moz":isc.Browser.isChrome?"Webkit":isc.Browser.isSafari?"Webkit":isc.Browser.isOpera?"O":isc.Browser.isIE?"ms":"");isc.A=isc.Element;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$wq=window.isc_insertAfterBodyStart;isc.A.$wr="isc_global_insertion_marker";isc.A.$n7="afterBegin";isc.A.$n9="afterEnd";isc.A.$n6="beforeBegin";isc.A.$n8="beforeEnd";isc.A.$1434=("boxSizing"in document.documentElement.style?"box-sizing":isc.Element.vendorCSSPrefix+"box-sizing");isc.A.$1435=("boxSizing"in document.documentElement.style?"boxSizing":isc.Element.vendorStylePrefix+"BoxSizing");isc.A.$84e=(isc.Browser.isIE&&!isc.Browser.isIE9)||isc.Browser.isOpera;isc.A.$w2="borderLeftWidth";isc.A.$w3="borderTopWidth";isc.A.$oi="marginLeft";isc.A.$ok="marginTop";isc.A.$27r="none";isc.A.$808="$808";isc.A.$809="$809";isc.A.$jj="BODY";isc.A.$jk="HTML";isc.A.$118s=!isc.Browser.isIE&&!isc.Browser.isOpera;isc.A.cacheOffsetCoords=true;isc.A.$95b=(isc.Browser.isMoz||(isc.Browser.isIE&&isc.Browser.minorVersion<5.5));isc.A.$95c=(isc.Browser.isIE9&&isc.Browser.isStrict);isc.A.$nk={};isc.A.$419={border:"borderStyle",borderWidth:"borderStyle",borderLeft:"borderLeftStyle",borderRight:"borderRightStyle",borderTop:"borderTopStyle",borderBottom:"borderBottomStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderBottomWidth:"borderBottomStyle",borderTopWidth:"borderTopStyle"};isc.A.$nl={};isc.A.$39=";";isc.A.$159t=(!("transform"in document.documentElement.style)?isc.Element.vendorCSSPrefix+"transform":"transform");isc.A.$1388=(!("transformOrigin"in document.documentElement.style)?isc.Element.vendorCSSPrefix+"transform-origin":"transform-origin");isc.A.$139a=(!("transform"in document.documentElement.style)?isc.Element.vendorStylePrefix+"Transform":"transform");isc.A.$139b=(!("transformOrigin"in document.documentElement.style)?isc.Element.vendorStylePrefix+"TransformOrigin":"transformOrigin");isc.B.push(isc.A.get=function isc_c_Element_get(_1,_2){_2=_2||this.getDocument();if(isc.Browser.isDOM)return _2.getElementById(_1)},isc.A.$mk=function isc_c_Element__getElementFromSelection(_1){if(!_1)_1=document;if(isc.Browser.$120h){var _2=_1.getSelection();if(!_2.rangeCount)return null;var _3=_2.getRangeAt(0).commonAncestorContainer;while(_3!=null&&_3.nodeType!=1){_3=_3.parentNode}
return _3}else if(isc.Browser.isIE){var _2=_1.selection;try{var _4=_2.type.toLowerCase()}catch(e){return null}
var _5=(_4=="text"||_4=="none");if(!_2)return null;if(_5){var _6;try{_6=_2.createRange()}catch(e){}
return _6?_6.parentElement():null}else{var _6=_2.createRange(),_7;for(var i=0;i<_6.length;i++){if(!_7){_7=_6(i).parentElement}else{while(!_7.contains(_6(i))){_7=_7.parentElement}}}
return _7}}},isc.A.hasClassName=function isc_c_Element_hasClassName(_1,_2){if(!_2)return false;var _3=_1.className,_4=_3.indexOf(_2);while(_4!=-1){if(_4==0||_3.charAt(_4-1)==' '){_4+=_2.length;if(_4==_3.length||_3.charAt(_4)==' '){return true}}else _4+=_2.length;if(_4>=_3.length)break;_4=_3.indexOf(_2,_4)}
return false},isc.A.forEachDescendantHavingClass=function isc_c_Element_forEachDescendantHavingClass(_1,_2,_3){if(_1==null||!_2)return;if(_1.querySelectorAll){var _4=_1.querySelectorAll("."+_2),_5=_4.length;for(var _6=_5;_6>0;--_6){_3(_4[_6-1])}}else{var _7=_1.childNodes,_5=_7.length;for(var _6=_5;_6>0;--_6){var _8=_7[_6-1];if(_8.nodeType!=1)continue;this.forEachDescendantHavingClass(_8,_2,_3);if(this.hasClassName(_8,_2))_3(_8)}}},isc.A.findAttribute=function isc_c_Element_findAttribute(_1,_2,_3){if(!_1)return null;if(_1[_2]==_3||(_1.getAttribute&&_1.getAttribute(_2)==_3)){return _1}
var _4=_1.childNodes;for(var i=0;i<_4.length;i++){var _6=this.findAttribute(_4[i],_2,_3);if(_6)return _6}
return null},isc.A.evaluateXPath=function isc_c_Element_evaluateXPath(_1,_2,_3,_4){var _5;if(_2==null){_5=_2=document}else if(_2.nodeType==9){_5=_2}else{_5=_2.ownerDocument}
var _6=function(_12){var _7=_3[_12];return _7==null?null:String(_7)};if(_4==null)_4=9;var _8=_5.evaluate(_1,_2,_3==null?null:_6,_4,null);switch(_4){case 0:break;case 1:return _8.numberValue;case 2:return _8.stringValue;case 3:return _8.booleanValue;case 4:case 5:return _8;case 6:case 7:var _9=_8.snapshotLength;var _10=new Array(_9);for(var i=0;i<_9;++i){_10[i]=_8.snapshotItem(i)}
return _10;case 8:case 9:return _8.singleNodeValue}
return _8},isc.A.getInsertionMarkerHTML=function isc_c_Element_getInsertionMarkerHTML(){return"<span id='"+this.$wr+"' style='display:none'></span>"},isc.A.getInsertionMarker=function isc_c_Element_getInsertionMarker(){return document.getElementById(this.$wr)},isc.A.createAbsoluteElement=function isc_c_Element_createAbsoluteElement(_1,_2){var _3=_2||this.getWindow(),_4=this.getDocumentBody(true);if(_4==null&&!isc.Element.noBodyTagMessageShown){isc.Element.noBodyTagMessageShown=true;var _5="Error: Attempt to write content into a page outside the BODY tag.  Isomorphic SmartClient requires this tag be present and all widgets be written out inside it.\rPlease ensure your file has a BODY tag and any code to draw SmartClient widgets is enclosed in this tag.";this.logError(_5);return}
if(this.$wq){return isc.Element.insertAdjacentHTML(_4,this.$n7,_1,true)}
if(isc.Browser.isIE){if(!this.$w7){if(_4.childNodes.length<2){isc.Element.insertAdjacentHTML(_4,this.$n7,this.getInsertionMarkerHTML())}else{var _6=_4.lastChild;while(_6&&_6.nodeType==3)_6=_6.previousSibling;if(_6!=null){isc.Element.insertAdjacentHTML(_6,this.$n6,this.getInsertionMarkerHTML())}else{isc.Element.insertAdjacentHTML(_4,this.$n7,this.getInsertionMarkerHTML())}}
this.$w7=this.getInsertionMarker()}
return isc.Element.insertAdjacentHTML(this.$w7,this.$n9,_1,true)}else{return isc.Element.insertAdjacentHTML(_4,this.$n8,_1,true)}},isc.A.insertAdjacentHTML=function isc_c_Element_insertAdjacentHTML(_1,_2,_3,_4){_2=_2.toLowerCase();if(isc.isA.String(_1))_1=isc.Element.get(_1);if(!_1)this.logWarn("insertAdjacentHTML: element is null for where: '"+_2+"' with html: "+_3);if(isc.Browser.useInsertAdjacentHTML){try{_1.insertAdjacentHTML(_2,_3);if(_4){switch(_2){case"beforebegin":return _1.previousSibling;case"afterbegin":return _1.firstChild;case"beforeend":return _1.lastChild;case"afterend":return _1.nextSibling}}
return}catch(e){}}
var _5,_6=_1.ownerDocument;if(isc.Browser.$162h){var _7=_6.createRange();_7.setStartBefore(_1);_5=_7.createContextualFragment(_3);if(_4)_5=_5.firstChild}else{var _8=_6.createElement("DIV");if(isc.Browser.isIE&&_1.tagName=="TR"){_8.innerHTML="<table><tbody><tr>"+_3+"</tr></tbody></table>";_8=_8.firstChild.firstChild.firstChild}else{_8.innerHTML=_3}
if(_4||_8.firstChild==_8.lastChild)_5=_8.firstChild;else{_5=_6.createDocumentFragment();var _9;while((_9=_8.firstChild)){_5.appendChild(_9)}}}
switch(_2){case"beforebegin":_1.parentNode.insertBefore(_5,_1);break;case"afterbegin":_1.insertBefore(_5,_1.firstChild);break;case"beforeend":_1.appendChild(_5);break;case"afterend":_1.parentNode.insertBefore(_5,_1.nextSibling);break}
if(_4)return _5},isc.A.clear=function isc_c_Element_clear(_1,_2){if(_1==null)return;if(!_2&&isc.Page.isLoaded()&&isc.Browser.isIE&&_1.ownerDocument.documentElement.contains(_1))
{_1.outerHTML=isc.emptyString;return}
if(_1.parentNode!=null){_1.parentNode.removeChild(_1)}else{isc.Log.logWarn("element parentNode null");_1.innerHTML=""}},isc.A.isBorderBox=function isc_c_Element_isBorderBox(_1){if(!_1)return false;if(!isc.Browser.isMoz)return isc.Browser.isBorderBox;return(_1.style[this.$1435]==="border-box")},isc.A.getScrollHeight=function isc_c_Element_getScrollHeight(_1){if(_1==null)return 0;var _2=((_1.scrollHeight!=null&&_1.scrollHeight!="undefined")?_1.scrollHeight:_1.offsetHeight);var _3=this.$yq(_1);return _3>_2?_3:_2},isc.A.$yq=function isc_c_Element__getPositionedChildrenBottom(_1){if(_1.childNodes==null)return 0;var _2=0,_3=document.ELEMENT_NODE||1,_4=this.logIsDebugEnabled("sizing");for(var i=0;i<_1.childNodes.length;i++){var _6=_1.childNodes.item(i);if(_6.nodeType!=_3)continue;var _7=isc.Element.getComputedStyleAttribute(_6,"position");var _8=0;if(_7==isc.Canvas.ABSOLUTE||_7==isc.Canvas.RELATIVE){_8+=isc.Element.getOffsetTop(_6)}else{continue}
var _9=_6.getAttribute("eventProxy"),_10;if(_9!=null&&!isc.isAn.emptyString(_9)&&!window[_9].$s0&&isc.isA.Function(window[_9].getVisibleHeight))
{_10=window[_9].getVisibleHeight()}else{_10=isc.Element.getVisibleHeight(_6)}
var _11=_8+_10;if(_7==isc.Canvas.ABSOLUTE&&(_1.style.overflow==isc.Canvas.SCROLL||_1.style.overflow==isc.Canvas.AUTO||_1.style.overflow==isc.Canvas.HIDDEN))
_11-=isc.Element.getBottomMargin(_6);if(_11>_2)_2=_11}
return _2},isc.A.getScrollWidth=function isc_c_Element_getScrollWidth(_1){if(_1==null)return 0;var _2=((_1.scrollWidth!=null&&_1.scrollWidth!="undefined")?_1.scrollWidth:_1.offsetWidth);var _3=this.$yr(_1);return _3>_2?_3:_2},isc.A.$yr=function isc_c_Element__getPositionedChildrenRight(_1){if(_1.childNodes==null)return 0;var _2=0,_3=document.ELEMENT_NODE||1,_4=this.logIsDebugEnabled("sizing");for(var i=0;i<_1.childNodes.length;i++){var _6=_1.childNodes.item(i);if(_6.nodeType!=_3)continue;var _7=isc.Element.getComputedStyle(_6,["position","display","left"]);var _8=0;if(_7.position==isc.Canvas.ABSOLUTE||_7.position==isc.Canvas.RELATIVE)
{_8=isc.Element.getOffsetLeft(_6)}else{continue}
var _9=_6.getAttribute("eventProxy"),_10;if(_9!=null&&!isc.isAn.emptyString(_9)&&!window[_9].$sv&&isc.isA.Function(window[_9].getVisibleWidth))
{_10=window[_9].getVisibleWidth()}else{_10=isc.Element.getVisibleWidth(_6)}
var _11=_8+_10;if(_1.style.overflow==isc.Canvas.SCROLL||_1.style.overflow==isc.Canvas.HIDDEN||_1.style.overflow==isc.Canvas.AUTO){_11-=isc.Element.getRightMargin(_6)}
if(_11>_2)_2=_11;if(_4){this.logInfo("getChildNodesRight: child node "+i+" of "+_1.childNodes.length+" ("+this.echoLeaf(_6)+") left:"+_8+", width: "+_10+", right:"+_11,"sizing")}}
return _2},isc.A.getClientWidth=function isc_c_Element_getClientWidth(_1){if(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10)){var _2=window.getComputedStyle(_1,null),_3=parseFloat(_2.width)+parseFloat(_2.paddingRight)+parseFloat(_2.paddingLeft);return Math.ceil(_3)}else{return _1.clientWidth}},isc.A.getElementRect=function isc_c_Element_getElementRect(_1){var _2=this.getDocumentBody(),_3=this.getLeftOffset(_1,_2),_4=this.getTopOffset(_1,_2);var _5=0,_6=0;if(_1.style&&_1.style.overflow=="visible"){_5=this.getScrollWidth(_1);_6=this.getScrollHeight(_1)}
_5=Math.max(_1.offsetWidth,_1.clientWidth,_5);_6=Math.max(_1.offsetHeight,_1.clientHeight,_6);return[_3,_4,_5,_6]},isc.A.getInnerWidth=function isc_c_Element_getInnerWidth(_1){var _2=_1.style.width;if(_2!=null&&!isc.isAn.emptyString(_2)){_2=parseInt(_2);if(isc.isA.Number(_2))return _2}
var _3=_1.clientWidth,_4=parseInt(this.getComputedStyleAttribute("paddingLeft")),_5=parseInt(this.getComputedStyleAttribute("paddingRight")),_6=_4+_5;if(isc.isA.Number(_6))_3-=_6;return _3},isc.A.getInnerHeight=function isc_c_Element_getInnerHeight(_1){var _2=_1.style.height;if(_2!=null&&!isc.isAn.emptyString(_2)){_2=parseInt(_2);if(isc.isA.Number(_2))return _2}
var _3=_1.clientHeight,_4=parseInt(this.getComputedStyleAttribute("paddingTop")),_5=parseInt(this.getComputedStyleAttribute("paddingBottom")),_6=_4+_5;if(isc.isA.Number(_6))_3-=_6;return _3},isc.A.getNativeInnerWidth=function isc_c_Element_getNativeInnerWidth(_1){if(isc.Browser.isMoz)return this.getInnerWidth(_1);var _2=_1.offsetWidth;if(!_2)_2=this.getInnerWidth(_1);return _2},isc.A.getNativeInnerHeight=function isc_c_Element_getNativeInnerHeight(_1){if(isc.Browser.isMoz)return this.getInnerHeight(_1);var _2=_1.offsetHeight;if(!_2)_2=this.getInnerHeight(_1);return _2},isc.A.getTopMargin=function isc_c_Element_getTopMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginTop);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$th(_1.className)}
return 0},isc.A.getBottomMargin=function isc_c_Element_getBottomMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginBottom);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$ti(_1.className)}
return 0},isc.A.getLeftMargin=function isc_c_Element_getLeftMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginLeft);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$tf(_1.className)}
return 0},isc.A.getRightMargin=function isc_c_Element_getRightMargin(_1){if(_1!=null){var _2;if(_1.style!=null)_2=parseInt(_1.style.marginRight);if(isc.isA.Number(_2))return _2;if(_1.className!=null)return isc.Element.$tg(_1.className)}
return 0},isc.A.getHMarginSize=function isc_c_Element_getHMarginSize(_1){return isc.Element.getLeftMargin(_1)+isc.Element.getRightMargin(_1)},isc.A.getVMarginSize=function isc_c_Element_getVMarginSize(_1){return isc.Element.getTopMargin(_1)+isc.Element.getBottomMargin(_1)},isc.A.getTopBorderSize=function isc_c_Element_getTopBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderTopStyle==this.$27r)return 0;var _2=(this.$84e?Math.ceil(parseFloat(_1.currentStyle.borderTopWidth)):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderTopWidth")));return isNaN(_2)?0:_2},isc.A.getBottomBorderSize=function isc_c_Element_getBottomBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderBottomStyle==this.$27r)return 0;var _2=(this.$84e?Math.ceil(parseFloat(_1.currentStyle.borderBottomWidth)):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderBottomWidth")));return isNaN(_2)?0:_2},isc.A.getLeftBorderSize=function isc_c_Element_getLeftBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderLeftStyle==this.$27r)return 0;var _2=(this.$84e?Math.ceil(parseFloat(_1.currentStyle.borderLeftWidth)):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderLeftWidth")));return isNaN(_2)?0:_2},isc.A.getRightBorderSize=function isc_c_Element_getRightBorderSize(_1){if(_1==null)return 0;if(isc.Browser.isOpera&&_1.currentStyle.borderRightStyle==this.$27r)return 0;var _2=(this.$84e?Math.ceil(parseFloat(_1.currentStyle.borderRightWidth)):parseInt(isc.Element.getComputedStyleAttribute(_1,"borderRightWidth")));return isNaN(_2)?0:_2},isc.A.getBorderSizes=function isc_c_Element_getBorderSizes(_1){var _2={top:isc.Element.getTopBorderSize(_1),bottom:isc.Element.getBottomBorderSize(_1),left:isc.Element.getLeftBorderSize(_1),right:isc.Element.getRightBorderSize(_1)};_2.Top=_2.top;_2.Bottom=_2.bottom;_2.Left=_2.left;_2.Right=_2.right;return _2},isc.A.getVBorderSize=function isc_c_Element_getVBorderSize(_1){return isc.Element.getTopBorderSize(_1)+isc.Element.getBottomBorderSize(_1)},isc.A.getHBorderSize=function isc_c_Element_getHBorderSize(_1){return isc.Element.getLeftBorderSize(_1)+isc.Element.getRightBorderSize(_1)},isc.A.getTopPaddingSize=function isc_c_Element_getTopPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingTop):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingTop")));return isNaN(_2)?0:_2},isc.A.getBottomPaddingSize=function isc_c_Element_getBottomPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingBottom):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingBottom")));return isNaN(_2)?0:_2},isc.A.getLeftPaddingSize=function isc_c_Element_getLeftPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingLeft):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingLeft")));return isNaN(_2)?0:_2},isc.A.getRightPaddingSize=function isc_c_Element_getRightPaddingSize(_1){if(_1==null)return 0;var _2=(this.$84e?parseInt(_1.currentStyle.paddingRight):parseInt(isc.Element.getComputedStyleAttribute(_1,"paddingRight")));return isNaN(_2)?0:_2},isc.A.getVPaddingSize=function isc_c_Element_getVPaddingSize(_1){return isc.Element.getTopPaddingSize(_1)+isc.Element.getBottomPaddingSize(_1)},isc.A.getHPaddingSize=function isc_c_Element_getHPaddingSize(_1){return isc.Element.getLeftPaddingSize(_1)+isc.Element.getRightPaddingSize(_1)},isc.A.getVisibleWidth=function isc_c_Element_getVisibleWidth(_1){if(_1==null)return 0;var _2=isc.Element.getComputedStyleAttribute(_1,"overflow"),_3;if(_2==isc.Canvas.VISIBLE||!isc.isA.Number(parseInt(_1.style.width))){_3=isc.Element.getScrollWidth(_1)+isc.Element.getHBorderSize(_1)}else{_3=parseInt(_1.style.width)}
return _3+isc.Element.getHMarginSize(_1)},isc.A.getVisibleHeight=function isc_c_Element_getVisibleHeight(_1){if(_1==null)return 0;var _2=isc.Element.getComputedStyleAttribute(_1,"overflow"),_3;if(_2==isc.Canvas.VISIBLE||!isc.isA.Number(parseInt(_1.style.height))){_3=isc.Element.getScrollHeight(_1)+isc.Element.getVBorderSize(_1)}else{_3=parseInt(_1.style.height)}
return _3+isc.Element.getVMarginSize(_1)},isc.A.getOffsetLeft=function isc_c_Element_getOffsetLeft(_1){if(_1==null){this.logWarn("getOffsetLeft: passed null element");return 0}
var _2=_1.offsetLeft;if(_1.$ys==_2){return _1.$yt}else{}
var _3=parseInt(isc.Element.getComputedStyleAttribute(_1,"marginLeft"));if(isc.isA.Number(_3)&&_3>0){_2-=_3}
var _4=this.getDocumentBody(),_5,_6="px",_7=_1.style.position;if(isc.Browser.isMoz){if(_1.offsetParent==null)return _2;if(_1.offsetParent!=_4){_5=this.ns.Element.getComputedStyle(_1.offsetParent,["borderLeftWidth","overflow"]);var _8=isc.Browser.geckoVersion,_9=_8<20100101&&((_5.overflow!="visible")&&(_8>=20051111||(_7==isc.Canvas.ABSOLUTE&&_5.overflow!="hidden"))),_10=(_8>20020826&&(_1.offsetParent.style[this.$1435]==="border-box"));if(isc.Browser.version<8&&_10!=_9){if(_10){_2-=(isc.isA.Number(parseInt(_5.borderLeftWidth))?parseInt(_5.borderLeftWidth):0)}
if(_9){_2+=(isc.isA.Number(parseInt(_5.borderLeftWidth))?parseInt(_5.borderLeftWidth):0)}}}}
if(isc.Browser.isIE8Strict&&!isc.Browser.isIE9){var _11=_1.offsetParent,_5=_11?_11.currentStyle:null,_12=_5?_5.borderLeftWidth:null;if(isc.isA.String(_12)&&_12.contains(_6)){_2-=parseInt(_12)}}else if(isc.Browser.isIE&&!isc.Browser.isIE9){var _11=_1.offsetParent,_5;if(_5!=_4)_5=_11.currentStyle;var _13=(_1.currentStyle.height!=isc.Canvas.AUTO||_1.currentStyle.width!=isc.Canvas.AUTO);var _14=true;while(_11!=_4){if(_5.position==isc.Canvas.ABSOLUTE)_14=false;if(_5.width==isc.Canvas.AUTO&&_5.height==isc.Canvas.AUTO&&_5.position==isc.Canvas.RELATIVE){if(_14&&isc.isA.String(_5.borderLeftWidth)&&_5.borderLeftWidth.contains(_6)){_2-=parseInt(_5.borderLeftWidth)}
if(_13){if(isc.isA.String(_5.marginLeft)&&_5.marginLeft.contains(_6))
{var _15=parseInt(_5.marginLeft);if(_15>0)_2-=_15}
if(_11.offsetParent!=_4){var _16=_11.offsetParent.currentStyle.padding;if(isc.isA.String(_16)&&_16.contains(_6)){_2-=parseInt(_16)}}else{_2-=(_4.leftMargin?parseInt(_4.leftMargin):0)}}}
_7=_11.style.position;_11=_11.offsetParent;if(_11!=document.body){_5=_11.currentStyle}}}
if(isc.Browser.isSafari&&isc.Browser.safariVersion<525.271){if(_1.offsetParent!=null&&_1.offsetParent!=_4){var _17=this.ns.Element.getComputedStyle(_1.offsetParent,["borderLeftWidth"]).borderLeftWidth;if(_17!=null)_17=parseInt(_17);if(isc.isA.Number(_17))_2-=_17}}else if(isc.Browser.isOpera&&isc.Browser.version>=12&&_1.offsetParent){if(_1.offsetParent.id.endsWith("_clipDiv")){var _18=this.getBoundingClientRect(_1.offsetParent),_19=this.getBoundingClientRect(_1);_2=_19.left-_18.left}}
_1.$ys=_1.offsetLeft;_1.$yt=_2;return _2},isc.A.getOffsetTop=function isc_c_Element_getOffsetTop(_1){if(_1==null){this.logWarn("getOffsetTop: passed null element");return 0}
var _2=_1.offsetTop;if(isc.Browser.isFirefox&&isc.Browser.isStrict&&_2<0){var _3=_1.offsetParent;if(_3!=null){if(this.getBoundingClientRect(_3).top==this.getBoundingClientRect(_1).top)
{_2=0}}}
if(_1.$yu==_2){return _1.$yv}else{}
var _4=parseInt(isc.Element.getComputedStyleAttribute(_1,"marginTop"));if(isc.isA.Number(_4)&&_4>0){_2-=_4}
var _5=this.getDocumentBody(),_6,_7="px",_8=_1.style.position;if(isc.Browser.isMoz){if(_1.offsetParent==null)return _2;if(_1.offsetParent!=_5){_6=this.ns.Element.getComputedStyle(_1.offsetParent,["overflow","borderTopWidth"]);var _9=isc.Browser.geckoVersion;var _10=_9<20100101&&((_6.overflow!="visible")&&(_9>=20051111||(_8==isc.Canvas.ABSOLUTE&&_6.overflow!="hidden"))),_11=(isc.Browser.geckoVersion>20020826&&_1.offsetParent.style[this.$1435]==="border-box");if(isc.Browser.version<8&&_11!=_10){if(_11){_2-=(isc.isA.Number(parseInt(_6.borderTopWidth))?parseInt(_6.borderTopWidth):0)}
if(_10){_2+=(isc.isA.Number(parseInt(_6.borderTopWidth))?parseInt(_6.borderTopWidth):0)}}}}
if(isc.Browser.isIE8Strict&&!isc.Browser.isIE9){var _12=_1.offsetParent,_6=_12?_12.currentStyle:null,_13=_6?_6.borderTopWidth:null;if(isc.isA.String(_13)&&_13.contains(_7)){_2-=parseInt(_13)}}else if(isc.Browser.isIE&&!isc.Browser.isIE9){if(_1.offsetParent&&_1.offsetParent!=_5){_6=_1.offsetParent.currentStyle;if(_6.position==isc.Canvas.RELATIVE&&_6.height==isc.Canvas.AUTO&&_6.width==isc.Canvas.AUTO&&isc.isA.String(_6.borderTopWidth)&&_6.borderTopWidth.contains(_7)){_2-=parseInt(_6.borderTopWidth)}}}
if(isc.Browser.isSafari&&isc.Browser.safariVersion<525.271){if(_1.offsetParent&&_1.offsetParent!=_5){var _14=this.ns.Element.getComputedStyle(_1.offsetParent,["borderTopWidth"]).borderTopWidth;if(_14!=null)_14=parseInt(_14);if(isc.isA.Number(_14))_2-=_14}}else if(isc.Browser.isOpera&&isc.Browser.version>=12&&_1.offsetParent){if(_1.offsetParent.id.endsWith("_clipDiv")){var _15=this.getBoundingClientRect(_1.offsetParent),_16=this.getBoundingClientRect(_1);_2=_16.top-_15.top}}
_1.$yu=_1.offsetTop;_1.$yv=_2;return _2},isc.A.getLeftOffset=function isc_c_Element_getLeftOffset(_1,_2,_3,_4){return this.getOffset(isc.Canvas.LEFT,_1,_2,_3,_4)},isc.A.getTopOffset=function isc_c_Element_getTopOffset(_1,_2,_3){return this.getOffset(isc.Canvas.TOP,_1,_2,null,_3)},isc.A.getBoundingClientRect=function isc_c_Element_getBoundingClientRect(_1){var _2=this.$118s;if(_1.tagName===this.$jj||(!_2&&_1.tagName===this.$jk))
{var _3=_1.ownerDocument,_4=_3.documentElement;if(_2){return _4.getBoundingClientRect()}else{var _5=isc.Browser.isIE&&!isc.Browser.isStrict;if(_5&&isc.Browser.version==6){var _6=_1.getBoundingClientRect(),_7=-_3.body.scrollLeft+(_4.clientLeft||0),_8=-_3.body.scrollTop+(_4.clientTop||0),_9=Math.max(_4.offsetWidth,_6.right),_10=Math.max(_4.offsetHeight,_6.bottom);return{left:_7,top:_8,right:_7+_9,bottom:_8+_10,width:_9,height:_10}}else{var _6=_1.getBoundingClientRect(),_9=Math.max(_4.clientWidth,_6.right),_10=Math.max(_4.clientHeight,_6.bottom),_7=_4.clientLeft||0,_8=_4.clientTop||0;if(_5){_7-=_3.body.scrollLeft;_8-=_3.body.scrollTop}else{var _11=_3.defaultView||window;_7-=_11.pageXOffset||_4.scrollLeft;_8-=_11.pageYOffset||_4.scrollTop}
return{left:_7,top:_8,right:_7+_9,bottom:_8+_10,width:_9,height:_10}}}}else{var _6=_1.getBoundingClientRect();if(_6.width==null){return{left:_6.left,top:_6.top,right:_6.right,bottom:_6.bottom,width:_6.right-_6.left,height:_6.bottom-_6.top}}else{return _6}}},isc.A.getOffsets=function isc_c_Element_getOffsets(_1,_2,_3,_4,_5){var _6=_4||isc.isA.Canvas(_1),_7=_4||_2==null||isc.isA.Canvas(_2);var _8=_6&&_7&&this.cacheOffsetCoords&&(_1.cacheOffsetCoords!=false),_9=_2?_2.ID:this.$27r;if(_5){_9="$180x"}
if(_8&&_1[this.$808]!=null&&_1[this.$809]!=null)
{var _10=_1[this.$808][_9],_11=_1[this.$809][_9];if(_10!=null&&_11!=null){return{left:_10,top:_11}}}
var _12=_6?_1.getClipHandle():_1;var _13;if(_2==null)_13=this.getDocumentBody();else if(_7){_13=_5?_2.getClipHandle():_2.getHandle()}
else _13=_2;if(_13==null||_12==null){return{left:0,top:0}}
var _14;if(isc.Browser.$117b){var _15=this.getBoundingClientRect(_12),_16=this.getBoundingClientRect(_13);_14={left:(_15["left"]-_16["left"])<<0,top:(_15["top"]-_16["top"])<<0}}else{var _17=_12.offsetParent;if(isc.Browser.isMoz&&_17==null)return 0;var _18=_13.offsetParent,_19=_12;_14={left:0,top:0};if(_3==null)_3=isc.Page.isRTL();var _20=0;while(_17!=_13&&_17!=_18){this.$117h(_14,_19,_17,_3);_19=_17;_17=_19.offsetParent;_20++}
this.$117h(_14,_19,_17,_3);if(_17==_18){_14.left-=this.getOffsetLeft(_13);_14.top-=this.getOffsetTop(_13)}}
if(_8){var _21=_1[this.$808]=_1[this.$808]||{};_21[_9]=_14.left;_21=_1[this.$809]=_1[this.$809]||{};_21[_9]=_14.top}
return _14},isc.A.$117h=function isc_c_Element__adjustOffsets(_1,_2,_3,_4){_1.left+=this.getOffsetLeft(_2);_1.top+=this.getOffsetTop(_2);if(!_4){_1.left-=_3.scrollLeft||0}else{var _5=_3.scrollLeft;if(isc.isA.Number(_5)){var _6=_3.style?_3.style.overflow:isc.emptyString;if(_6!=isc.Canvas.VISIBLE&&_6!=isc.emptyString){var _7=this.$95b,_8=this.$95c;if(_8){_5=-_5;_7=true}
if(!_7){_5=isc.Canvas.$92y(_5,_3.scrollWidth,_3.clientWidth,true,true)}
_1.left-=_5}}}
_1.top-=_3.scrollTop||0;var _9,_10,_11,_12,_13;if(this.$84e){_9=_3.currentStyle;if(!isc.Browser.isOpera||_9.borderLeftStyle!=this.$27r){_10=parseInt(_9.borderLeftWidth);if(_10>0)_1.left+=_10}
if(!isc.Browser.isOpera||_9.borderTopStyle!=this.$27r){_11=parseInt(_9.borderTopWidth);if(_11>0)_1.top+=_11}
_12=parseInt(_9.marginLeft);if(_12>0)_1.left+=_12;_13=parseInt(_9.marginTop);if(_13>0)_1.left+=_12}else if(isc.Browser.isMoz){_9=window.getComputedStyle(_3,null);_1.left+=Math.ceil(parseFloat(_9.borderLeftWidth));_1.top+=Math.ceil(parseFloat(_9.borderTopWidth));_12=parseInt(_9.marginLeft);if(_12>0)_1.left+=_12;_13=parseInt(_9.marginTop);if(_13>0)_1.top+=_13}else{_10=Math.ceil(parseFloat(this.getComputedStyleAttribute(_3,this.$w2)));if(_10>0)_1.left+=_10;_11=Math.ceil(parseFloat(this.getComputedStyleAttribute(_3,this.$w3)));if(_11>0)_1.top+=_11;_12=parseInt(this.getComputedStyleAttribute(_3,this.$oi));if(_12>0)_1.left+=_12;_13=parseInt(this.getComputedStyleAttribute(_3,this.$ok));if(_13>0)_1.top+=_13}},isc.A.getOffset=function isc_c_Element_getOffset(_1,_2,_3,_4,_5){var _6=this.getOffsets(_2,_3,_4,_5);return _6[_1]},isc.A.getStyleEdges=function isc_c_Element_getStyleEdges(_1){if(isc.Browser.isSafari&&!isc.Element.$x1){isc.Browser.isStrict=isc.Element.$x2();isc.Element.$x1=true}
if(_1==null)return null;var _2;if(this.$nk[_1]!==_2)return this.$nk[_1];var _3=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20040616),_4;if(_3){_4=this.getStyleDeclaration(_1)}else{var _5=isc.Browser.isIE?this.$x3:this.$x4;_4=this.$x5(_1,_5)}
this.$nk[_1]=_4;return _4},isc.A.$x2=function isc_c_Element__testForSafariStrictMode(){if(document.compatMode!=null){return document.compatMode=="CSS1Compat"}
var _1="<TABLE cellspacing=0 cellpadding=2 border=0><tr><td height=30>x</td></tr></TABLE>"
var _2=isc.Element.createAbsoluteElement(_1);var _3=_2.offsetHeight>30;isc.Element.clear(_2);return _3},isc.A.$x5=function isc_c_Element__deriveStyleProperties(_1,_2){var _3=(isc.Browser.isIE||isc.Browser.isOpera||isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20080205));if(!this.$x6){this.createAbsoluteElement("<TABLE CELLPADDING=81 STYLE='position:absolute;left:0px;top:-2000px;-webkit-user-select:none;'><TR><TD "+(isc.Browser.isIE8Strict?" ID=isc_cellStyleTester STYLE='border:0px;margin:0px'><DIV ID=isc_cellInnerStyleTester>"+isc.Canvas.blankImgHTML(30,30)+"</DIV></TD>":" ID='isc_cellStyleTester'>&nbsp;</TD><TD ID='isc_cellNoStyleTester'>&nbsp;</TD>")+"</TR></TABLE>");this.$x6=isc.Element.get("isc_cellStyleTester");if(isc.Browser.isIE8Strict){this.$62a=isc.Element.get("isc_cellInnerStyleTester")}
this.$x7="81px";if(isc.Browser.isSafari||isc.Browser.isChrome){var _4=isc.Element.get("isc_cellNoStyleTester");var _5=["paddingLeft"];var _6=this.getComputedStyle(_4,_5).paddingLeft;if(_6!=this.$x7){this.logDebug("Browser natively misreporting cell-padding (81px reported as:"+_6+"). This behavior is known to occur when the view is zoomed in certain browsers but is worked around by SmartClient and should have no visible effect on the application.","sizing");this.$x7=_6}}
this.$x8="-16384px";if(_3){this.createAbsoluteElement("<DIV ID=isc_styleTester STYLE='position:absolute;left:0px;top:-2000px;-webkit-user-select:none;'>&nbsp;</DIV>");this.$x9=isc.Element.get("isc_styleTester");this.$ya=["marginLeft","marginTop","marginRight","marginBottom"];if(isc.Browser.isIE8Strict){this.$ya.addList(["borderLeftWidth","borderTopWidth","borderRightWidth","borderBottomWidth"])}}}
this.$x6.className=_1;var _7=this.getComputedStyle(this.$x6,_2);var _8=this.$x7;if(_7.paddingLeft==_8)_7.paddingLeft=null;if(_7.paddingTop==_8)_7.paddingTop=null;if(_7.paddingRight==_8)_7.paddingRight=null;if(_7.paddingBottom==_8)_7.paddingBottom=null;if(isc.Browser.isIE8Strict){var _9=this.$62a,_10=_9.offsetLeft,_11=_9.offsetTop;if(_10==81)_7.paddingLeft=null;if(_11==81)_7.paddingTop=null;if(this.$x6.offsetWidth-_10-30==81){_7.paddingRight=null}
if(this.$x6.offsetHeight-_11-30==81){_7.paddingBottom=null}}
if(isc.Browser.isSafari){if(isc.Browser.safariVersion<419.3){_8=isc.Canvas.AUTO;if(_7.paddingLeft==_8)_7.paddingLeft=null;if(_7.paddingTop==_8)_7.paddingTop=null;if(_7.paddingRight==_8)_7.paddingRight=null;if(_7.paddingBottom==_8)_7.paddingBottom=null}
_8=this.$x8;if(_7.marginTop==_8)_7.marginTop=null;if(_7.marginBottom==_8)_7.marginBottom=null}
if(_3){this.$x9.className=_1;var _12=this.getComputedStyle(this.$x9,this.$ya);_7.marginLeft=_12.marginLeft;_7.marginRight=_12.marginRight;_7.marginTop=_12.marginTop;_7.marginBottom=_12.marginBottom;if(isc.Browser.isIE8Strict){_7.borderLeftWidth=_12.borderLeftWidth;_7.borderRightWidth=_12.borderRightWidth;_7.borderTopWidth=_12.borderTopWidth;_7.borderBottomWidth=_12.borderBottomWidth}}
return _7});isc.evalBoundary;isc.B.push(isc.A.getComputedStyle=function isc_c_Element_getComputedStyle(_1,_2){var _3,_4,_5;if(isc.isA.String(_1)){_3=isc.Element.get(_1)}else{_3=_1}
if(_3==null||!isc.isAn.Object(_3)){this.logWarn("getComputedStyle: Unable to get to DOM element specified by '"+_1+"'."+this.getStackTrace());return null}
if(this.$84e){_4=_3.currentStyle;if(_2==null)_2=this.$yb;var _6=isc.applyMask(_4,_2);return _6}
if(_2==null){_2=this.$yc}else if(isc.isAn.Array(_2)){var _7={},_8=this.$yc;for(var i=0;i<_2.length;i++){_7[_2[i]]=_8[_2[i]]}
_2=_7}
var _10=isc.Browser.isSafari&&isc.Browser.safariVersion<312,_11;if(_10){_4=_3.style;_11=this.getStyleDeclaration(_3.className);_5={};for(var _12 in _2){_5[_12]=_4.getPropertyValue(_2[_12]);if(_5[_12]==null&&_11!=null&&_11[_12]!=null&&!isc.isAn.emptyString(_11[_12]))
{_5[_12]=_11[_12]}}}else{if(document.defaultView&&document.defaultView.getComputedStyle){_4=document.defaultView.getComputedStyle(_3,null)}
if(_4==null){_4={};this.logWarn("getComputedStyle() not natively available - can't guarantee accurate styling information for element:"+this.echoLeaf(_3));if(this.logIsDebugEnabled()){this.logDebug(this.getStackTrace())}}
_5={};for(var _12 in _2){_5[_12]=_4[_12]}}
return _5},isc.A.getComputedStyleAttribute=function isc_c_Element_getComputedStyleAttribute(_1,_2){if(_1==null||_2==null)return null;if(this.$84e){if(_1.currentStyle==null)return null;if(isc.Browser.isOpera&&this.$419[_2]!=null&&_1.currentStyle[this.$419[_2]]==this.$27r)return 0;return _1.currentStyle[_2]}
if(isc.Browser.isSafari&&isc.Browser.version<5){var _3=null;if(_1.style)_3=_1.style[_2];if((_3==null||isc.isAn.emptyString(_3))&&_1.className)
{var _4=isc.Element.getStyleEdges(_1.className);if(_4)_3=_4[_2]}
if(isc.isAn.emptyString(_3))return null;return _3}
var _5=this.$yc;var _6=this.$yd=this.$yd||document.defaultView;var _7=(_5[_2]||_2),_8=_6.getComputedStyle(_1,null);return _8.getPropertyValue(_7)},isc.A.$132f=function isc_c_Element__matchesSelector(_1,_2){try{if(!!_1.matches)return _1.matches(_2);if(isc.Browser.isIE9)return _1.msMatchesSelector(_2);else if(isc.Browser.isChrome||isc.Browser.isWebKit)return _1.webkitMatchesSelector(_2);else if(isc.Browser.isMoz)return _1.mozMatchesSelector(_2);else if(isc.Browser.isOpera)return _1.oMatchesSelector(_2)}catch(e){return false}
if(isc.isAn.emptyString(_1.className))return false;var _3="."+_1.className,_4=_2.split(/(?:,\s*)+/);for(var k=0;k<_4.length;k++){if(_4==_3)return true}
return false},isc.A.getStyleDeclaration=function isc_c_Element_getStyleDeclaration(_1,_2,_3){if(!_1)return null;if(_3==null){_3=this.$132g;if(_3==null){_3=this.$132g=document.createElement("div");_3.id="isc_getStyleDeclaration_defaultReferenceElement";_3.style.display="none";document.body.appendChild(_3)}
_3.className=_1}
if(!isc.allowDuplicateStyles)_2=false;var _4,_5=_2?[]:null;for(var i=document.styleSheets.length-1;i>=0;i--){var _7=this.$ye(document.styleSheets[i]);if(_7==null)continue;for(var j=_7.length-1;j>=0;j--){var _9=_7[j].selectorText;if(_9==null)continue;if(isc.Browser.isSafari&&530.17>isc.Browser.safariVersion&&isc.Browser.safariVersion>=312){_9+=", "+_9.toLowerCase()}
if(this.$132f(_3,_9)){var _4=_7[j].style;if(_2)_5[_5.length]=_4;else return _4}}}
if(_2&&_5.length>0)return _5;return null},isc.A.$ye=function isc_c_Element__getCSSRules(_1){if(!this.$yf){this.$yf=function(_2){try{return _2.rules||_2.cssRules}catch(e){isc.Page.$yh=true}}}
return this.$yf(_1)},isc.A.getStyleText=function isc_c_Element_getStyleText(_1,_2){if(!isc.allowDuplicateStyles)_2=false;var _3=this.$nl,_4=_3[_1];if(_4!=null)return _4;var _5=this.getStyleDeclaration(_1,_2);if(_5==null){if(!isc.Browser.isSafari||isc.Page.isLoaded())
this.$nl[_1]=isc.emptyString;return isc.emptyString}
if(_2){for(var i=_5.length-1;i>-1;i--){var _7=_5[i];var _8=_7.cssText;if(_8==null)continue;if(!isc.endsWith(_8,this.$39))_8+=this.$39;if(_4==null)_4=_8;else _4+=_8}
if(_4==null)_4=isc.$ad}else{_4=(_5.cssText||isc.$ad)}
if(!isc.endsWith(_4,isc.semi))_4+=isc.semi;return(_3[_1]=_4)},isc.A.$50f=function isc_c_Element__clearCSSCaches(){isc.Element.$nk={};isc.Element.$nl={};isc.Element.$yj=isc.Element.$yk=isc.Element.$yl=null},isc.A.$th=function isc_c_Element__getTopMargin(_1){return this.$sd(_1).top},isc.A.$ti=function isc_c_Element__getBottomMargin(_1){return this.$sd(_1).bottom},isc.A.$tf=function isc_c_Element__getLeftMargin(_1){return this.$sd(_1).left},isc.A.$tg=function isc_c_Element__getRightMargin(_1){return this.$sd(_1).right},isc.A.$sd=function isc_c_Element__calculateMargins(_1){if(this.$yk==null)this.$yk={};else if(this.$yk[_1]!=null){return this.$yk[_1]}
var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null)return _2;var _4=_3.marginTop,_5=_3.marginBottom,_6=_3.marginLeft,_7=_3.marginRight,_8=isc.px;if(isc.isA.String(_4)&&isc.endsWith(_4,_8)){_2.top=parseInt(_4)}
if(isc.isA.String(_5)&&isc.endsWith(_5,_8)){_2.bottom=parseInt(_5)}
if(isc.isA.String(_6)&&isc.endsWith(_6,_8)){_2.left=parseInt(_6)}
if(isc.isA.String(_7)&&isc.endsWith(_7,_8)){_2.right=parseInt(_7)}
this.$yk[_1]=_2;return _2},isc.A.$tn=function isc_c_Element__getTopBorderSize(_1){return this.$tj(_1).top},isc.A.$to=function isc_c_Element__getBottomBorderSize(_1){return this.$tj(_1).bottom},isc.A.$tl=function isc_c_Element__getLeftBorderSize(_1){return this.$tj(_1).left},isc.A.$tm=function isc_c_Element__getRightBorderSize(_1){return this.$tj(_1).right},isc.A.$tj=function isc_c_Element__calculateBorderSize(_1){if(this.$yj==null)this.$yj={};else if(this.$yj[_1]!=null){return this.$yj[_1]}
var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null)return _2;var _4=_3.borderTopWidth,_5=_3.borderBottomWidth,_6=_3.borderLeftWidth,_7=_3.borderRightWidth,_8=isc.px;if(isc.isA.String(_4)&&isc.endsWith(_4,_8)){_2.top=Math.ceil(parseFloat(_4))}
if(isc.isA.String(_5)&&isc.endsWith(_5,_8)){_2.bottom=Math.ceil(parseFloat(_5))}
if(isc.isA.String(_6)&&isc.endsWith(_6,_8)){_2.left=Math.ceil(parseFloat(_6))}
if(isc.isA.String(_7)&&isc.endsWith(_7,_8)){_2.right=Math.ceil(parseFloat(_7))}
this.$yj[_1]=_2;return _2},isc.A.$ym=function isc_c_Element__getVBorderSize(_1){return this.$tn(_1)+this.$to(_1)},isc.A.$yn=function isc_c_Element__getHBorderSize(_1){return this.$tl(_1)+this.$tm(_1)},isc.A.$tt=function isc_c_Element__getTopPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullTop)return null;return _3.top},isc.A.$tu=function isc_c_Element__getBottomPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullBottom)return null;return _3.bottom},isc.A.$tr=function isc_c_Element__getLeftPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullLeft)return null;return _3.left},isc.A.$ts=function isc_c_Element__getRightPadding(_1,_2){var _3=this.$tq(_1);if(_2&&_3.nullRight)return null;return _3.right},isc.A.$tq=function isc_c_Element__calculatePadding(_1){if(this.$yl==null)this.$yl={};else if(this.$yl[_1]!=null){return this.$yl[_1]}
var _2={top:0,bottom:0,left:0,right:0},_3=isc.Element.getStyleEdges(_1);if(_3==null){_2.nullLeft=true;_2.nullRight=true;_2.nullTop=true;_2.nullBottom=true;return _2}
var _4=_3.paddingTop,_5=_3.paddingBottom,_6=_3.paddingLeft,_7=_3.paddingRight,_8=isc.px;_2.nullTop=(_4==null||_4==isc.emptyString);_2.nullBottom=(_5==null||_5==isc.emptyString)
_2.nullLeft=(_6==null||_6==isc.emptyString);_2.nullRight=(_7==null||_7==isc.emptyString);if(isc.isA.String(_4)&&isc.endsWith(_4,_8)){_2.top=parseInt(_4)}
if(isc.isA.String(_5)&&isc.endsWith(_5,_8)){_2.bottom=parseInt(_5)}
if(isc.isA.String(_6)&&isc.endsWith(_6,_8)){_2.left=parseInt(_6)}
if(isc.isA.String(_7)&&isc.endsWith(_7,_8)){_2.right=parseInt(_7)}
this.$yl[_1]=_2;return _2},isc.A.$s1=function isc_c_Element__getVPadding(_1){return this.$tt(_1)+this.$tu(_1)},isc.A.$sw=function isc_c_Element__getHPadding(_1){return this.$tr(_1)+this.$ts(_1)},isc.A.$yo=function isc_c_Element__getVBorderPad(_1){return this.$ym(_1)+this.$s1(_1)},isc.A.$yp=function isc_c_Element__getHBorderPad(_1){return this.$yn(_1)+this.$sw(_1)},isc.A.getNativeScrollbarSize=function isc_c_Element_getNativeScrollbarSize(){if(isc.Element.$yi==null){if(isc.Browser.isMobileWebkit){return(isc.Element.$yi=0)}
var _1="<div id=isc_ScrollbarTest style='position:absolute;top:-100px;border:0px;padding:0px;margin:0px;height:100px;width:100px;overflow:scroll;'>"+isc.nbsp+"</div>";this.createAbsoluteElement(_1);var _2=this.get('isc_ScrollbarTest');isc.Element.$yi=parseInt(_2.style.height)-_2.clientHeight;this.clear(_2)}
return isc.Element.$yi},isc.A.getRotationCSS=function isc_c_Element_getRotationCSS(_1,_2){_1=+_1;var _3=this.vendorCSSPrefix;var _4=this.$159t+": rotate("+_1.toFixed(3)+"deg);";if(_2!=null){_4+=this.$1388+": "+_2+";"}
return _4},isc.A.$136r=function isc_c_Element__updateTransformStyle(_1,_2,_3,_4){var _5=_1.getClipHandle();if(_5==null)return;_1.$808=_1.$809=null;_1.$81b();if(!_2){_3=_2=""}
var _6=_5.style;_6[this.$139a]=_2;if(_3!=null){_6[this.$139b]=_3}},isc.A.$137p=function isc_c_Element__getComputedTranslateX(_1){var _2=_1.getWindow().getComputedStyle(_1.getClipHandle(),null),_3=_2[isc.Element.$159t],_4;if(_3==="none"){_4=0}else{var _5=_3.split(/,\s*(?:)/);_4=parseFloat(_5[4])}
return _4});isc.B._maxIndex=isc.C+86;isc.Element.$50g=function(){var _1=this.$x4={borderLeftWidth:"border-left-width",borderRightWidth:"border-right-width",borderTopWidth:"border-top-width",borderBottomWidth:"border-bottom-width",marginLeft:"margin-left",marginRight:"margin-right",marginTop:"margin-top",marginBottom:"margin-bottom",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",paddingBottom:"padding-bottom"}
var _2=this.$yc=isc.addProperties({position:"position",overflow:"overflow",top:"top",left:"left",width:"width",height:"height",display:"display"},_1);if(isc.Browser.isIE||isc.Browser.isOpera){this.$yb=isc.getKeys(_2);this.$x3=isc.getKeys(_1)}}
isc.Element.$50g();isc.ClassFactory.defineClass("BaseWidget");isc.ClassFactory.defineClass("Canvas","BaseWidget");isc.defer("isc.Canvas.addProperties({ $1399: isc.Browser.$1398() });if (isc.Canvas.$b4.edgeMarginSize == null) isc.Canvas.addProperties({ edgeMarginSize: isc.Browser.isTouch ? 10 : 5 });isc.Page.$151x();");isc.isA.Canvas=function(_1){return(_1!=null&&_1._isA_Canvas)};isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._isA_Canvas=true;isc.A.AUTO="auto";isc.A.ANYTHING="**anything**";isc.A.ABSOLUTE="absolute";isc.A.RELATIVE="relative";isc.A.INHERIT="inherit";isc.A.VISIBLE="visible";isc.A.HIDDEN="hidden";isc.A.COMPLETE="complete";isc.A.DRAWN="complete";isc.A.DRAWING_HANDLE="drawingHandle";isc.A.HANDLE_DRAWN="handleDrawn";isc.A.UNDRAWN="undrawn";isc.A.SCROLL="scroll";isc.A.CLIP_H="clip-h";isc.A.CLIP_V="clip-v";isc.A.IGNORE="ignore";isc.A.NATIVE="native";isc.A.CLIP="clip";isc.A.NESTED_DIV="nestedDiv";isc.A.CENTER="center";isc.A.LEFT="left";isc.A.RIGHT="right";isc.A.TOP="top";isc.A.BOTTOM="bottom";isc.A.UP="up";isc.A.DOWN="down";isc.A.BOTH="both";isc.A.NONE="none";isc.A.VERTICAL="vertical";isc.A.HORIZONTAL="horizontal";isc.A.MARKED="marked";isc.A.MIDDLE="middle";isc.A.ALL="all";isc.A.DEFAULT="default";isc.A.ARROW="default";isc.A.WAIT="wait";isc.A.HAND=(isc.Browser.isMoz||(isc.Browser.isSafari&&isc.Browser.isStrict)||(isc.Browser.isIE&&isc.Browser.version>=9&&isc.Browser.isStrict)?"pointer":"hand");isc.A.MOVE="move";isc.A.HELP="help";isc.A.TEXT="text";isc.A.CROSSHAIR="crosshair";isc.A.NOT_ALLOWED="not-allowed";isc.A.COL_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"col-resize":"e-resize");isc.A.RTL_COL_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"col-resize":"w-resize");isc.A.ROW_RESIZE=(isc.Browser.isIE&&isc.Browser.version>=6?"row-resize":"n-resize");isc.A.TILE="tile";isc.A.STRETCH="stretch";isc.A.NORMAL="normal";isc.A.REPEAT="repeat";isc.A.NO_REPEAT="no-repeat";isc.A.REPEAT_X="repeat-x";isc.A.REPEAT_Y="repeat-y";isc.A.LTR="ltr";isc.A.RTL="rtl";isc.A.BEFORE="before";isc.A.AFTER="after";isc.A.NEAREST="nearest";isc.A._nextZIndex=200000;isc.A._SMALL_Z_INDEX=199950;isc.A._BIG_Z_INDEX=800000;isc.A.TAB_INDEX_GAP=64;isc.A.TAB_INDEX_FLOOR=1000;isc.A.TAB_INDEX_CEILING=32766;isc.A.textStyleAttributes=["fontFamily","fontSize","color","backgroundColor","fontWeight","fontStyle","textDecoration","textAlign"];isc.A.$816=[];isc.A.allowExternalFilters=true;isc.A.$nm=[];isc.A._redrawQueueDelay=(0);isc.A.$nn=200;isc.A._canvasList=[];isc.A._iscInternalCount=0;isc.A._stats={redraws:0,clears:0,destroys:0,draws:0};isc.A.$no={};isc.A.$np={};isc.A.$nq=[];isc.A.useMozBackMasks=false;isc.A.useNativeWheelDelta=true;isc.A.scrollWheelDelta=50;isc.A.loadingImageSrc="[SKINIMG]loadingSmall.gif";isc.A.loadingImageSize=16;isc.A.defaultPageSpace=0;isc.A.$178n={ID:"isc_measureContentCanvas",destroy:function(){this.Super("destroy",arguments);delete isc.Canvas.$178o},_generated:true,width:1,height:1,top:-1000,overflow:"visible",autoDraw:false};isc.B.push(isc.A.$814=function isc_c_Canvas__setDoublingStrings(){this.$42a=isc.Browser.isIE&&(!this.neverUseFilters||this.allowExternalFilters)?"margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;filter:none;":"margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;";isc.Canvas.addProperties({$4o:"' style='"+isc.Canvas.$42a});for(var i=0;i<this.$816.length;i++){var _2=this.$816[i];if(_2.target==null||_2.target.destroyed)continue;_2.target[_2.methodName](this.$42a)}},isc.A.setNeverUseFilters=function isc_c_Canvas_setNeverUseFilters(_1){this.neverUseFilters=_1;this.$814()},isc.A.setAllowExternalFilters=function isc_c_Canvas_setAllowExternalFilters(_1){this.allowExternalFilters=_1;this.$814()},isc.A.setDefaultPageSpace=function isc_c_Canvas_setDefaultPageSpace(_1){this.defaultPageSpace=_1;isc.EH.$hr()},isc.A.measureContent=function isc_c_Canvas_measureContent(_1,_2,_3,_4,_5){_2=_2||"normal";var _6=isc.Canvas.$178o;if(!_6){_6=isc.Canvas.$178o=isc.Canvas.create(isc.Canvas.$178n)}
if(_5){_6.setProperties(_5)}
_6.setStyleName(null);_6.setStyleName(_2);_6.setContents(_1);_6.draw();var _7=_3?(_4?_6.getVisibleHeight():_6.getScrollHeight()):(_4?_6.getVisibleWidth():_6.getScrollWidth());_6.clear();_6.resizeTo(1,1);return _7},isc.A.$186q=function isc_c_Canvas__isStretchSize(_1){return _1==isc.star||isc.isA.String(_1)&&_1.endsWith(isc.percent)});isc.B._maxIndex=isc.C+6;isc.Canvas.$814();isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._isA_Canvas=true;isc.A.autoDraw=true;isc.A.allowContentAndChildren=true;isc.A.htmlPosition="afterBegin";isc.A.position=null;isc.A.left=0;isc.A.top=0;isc.A.defaultWidth=100;isc.A.defaultHeight=100;isc.A.minWidth=null;isc.A.minHeight=null;isc.A.maxWidth=10000;isc.A.maxHeight=10000;isc.A.dragMinWidth=10;isc.A.dragMinHeight=10;isc.A.dragMaxWidth=10000;isc.A.dragMaxHeight=10000;isc.A.zIndex=isc.Canvas.AUTO;isc.A.shrinkElementOnHide=false;isc.A.autoShowParent=false;isc.A.visibility=isc.Canvas.INHERIT;isc.A.hideUsingDisplayNone=false;isc.A.$144x=0;isc.A.styleName="normal";isc.A.contents=isc.nbsp;isc.A.backgroundRepeat=isc.Canvas.REPEAT;isc.A.mozOutlineOffset="-1px";isc.A.appImgDir="";isc.A.skinImgDir="images/";isc.A.cursor=isc.Canvas.DEFAULT;isc.A.disabledCursor=isc.Canvas.DEFAULT;isc.A.noDropCursor=isc.Canvas.NOT_ALLOWED;isc.A.$65q=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20081201);isc.A.overflow=isc.Canvas.VISIBLE;isc.A.alwaysShowVScrollbar=false;isc.A.forceHandleOverflowHidden=false;isc.A.showCustomScrollbars=true;isc.A.useNativeTouchScrolling=true;isc.A.scrollbarSize=16;isc.A.scrollbarConstructor="Scrollbar";isc.A.scrollLeft=0;isc.A.$1314=0;isc.A.scrollTop=0;isc.A.scrollDelta=20;isc.A.$nr="unset";isc.A.enabled="unset";isc.A.redrawOnDisable=false;isc.A.$jp=true;isc.A.$jo=true;isc.A.$ns=true;isc.A.$nt=true;isc.A.$jq=true;isc.A._redrawWithParent=true;isc.A.showFocusOutline=true;isc.A._useNativeTabIndex=(isc.Browser.isIE&&isc.Browser.version>=5)||isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051111);isc.A._useFocusProxy=(isc.Browser.isMoz&&isc.Browser.geckoVersion<20051111)||isc.Browser.isOpera;isc.A.contextMenuProperties={autoDraw:false,width:200,showIcons:true};isc.A.menuConstructor="Menu";isc.A.clippedCorners=["TL","TR","BL","BR"];isc.A.cornerClipColor="FFFFFF";isc.A.cornerClipImage="[SKIN]corner.gif";isc.A.cornerClipSize=10;isc.A.$nv={_generated:true,overflow:"hidden",$jp:false,$jo:false,autoDraw:false,skinImgDir:"images/corners/",draw:function(){this.Super("draw",arguments)}};isc.A.dragOutlineStyle="dragOutline";isc.A.dragStartDistance=5;isc.A.canDragScroll=true;isc.A.dragScrollDelay=100;isc.A.dragScrollThreshold=null;isc.A.minDragScrollIncrement=1;isc.A.maxDragScrollIncrement="5%";isc.A.dragIntersectStyle=isc.EventHandler.INTERSECT_WITH_MOUSE;isc.A.dragRepositionCursor=isc.Canvas.MOVE;isc.A.proportionalResizing="none";isc.A.proportionalResizeModifiers=["Shift"];isc.A.dragScrollType="any";isc.A.dragMaskType="div";isc.A.dragPlaceholderMessage="Dragging...";isc.A.dragPlaceholderStyle="normal";isc.A.hoverDelay=300;isc.A.showHover=true;isc.A.hideHoverOnMouseDown=true;isc.A.edgeMarginSize=null;isc.A.minNonEdgeSize=0;isc.A.edgeCursorMap={"T":"n-resize","L":"w-resize","B":"s-resize","R":"e-resize","TL":"nw-resize","TR":"ne-resize","BL":"sw-resize","BR":"se-resize"};isc.A.dragAppearance=isc.EventHandler.OUTLINE;isc.A.dropTypes=isc.Canvas.ANYTHING;isc.A.mouseStillDownInitialDelay=400;isc.A.mouseStillDownDelay=100;isc.A.doubleClickDelay=250;isc.A.refreshVariable="refresh";isc.A.$ks=(isc.Browser.isMoz&&(!isc.Browser.isUnix||isc.Browser.geckoVersion>20031007));isc.A.$se=isc.Browser.isMoz&&isc.Browser.version>=18;isc.A.$187j=isc.Browser.isMoz&&isc.Browser.version<50;isc.A.useClipDiv=isc.Browser.useClipDiv;isc.A.manageChildOverflow=true;isc.A.$nw={};isc.A.percentBox="visible";isc.A.$520="viewport";isc.A.snapHGap=20;isc.A.snapVGap=20;isc.A.snapHDirection=isc.Canvas.AFTER;isc.A.snapVDirection=isc.Canvas.AFTER;isc.A.snapAxis=isc.Canvas.BOTH;isc.A.snapOnDrop=true;isc.B.push(isc.A.$120u=function isc_Canvas__getUseNativeDrag(){return(this.$120v()!=null)},isc.A.$120v=function isc_Canvas__getNativeDragTarget(){var _1=this;while(_1!=null){if(_1.useNativeDrag!=null){if(_1.useNativeDrag){if(!!_1.canDrag)return _1}else{return null}}else if(_1.canDrag){return null}
_1=_1.getParentCanvas()}
return null},isc.A.setCanDragResize=function isc_Canvas_setCanDragResize(_1){if(this.canDragResize!=_1){this.canDragResize=_1;this.$151k()}},isc.A.$151j=function isc_Canvas__getProportionalResizing(){var _1=this.proportionalResizing,_2=_1=="always",_3=!_2&&_1=="modifier",_4=!(_2||_3)&&_1=="modifierOff";if(!(_2||_3||_4)){return"none"}
var _5=this.resizeFrom,_6=(this.canDragResize&&!this.destroying&&!this.destroyed&&(_5==null||(isc.isAn.Array(_5)&&_5.length>0&&(_5.contains("TL")||_5.contains("TR")||_5.contains("BL")||_5.contains("BR")))));if(!_6){return"none"}else{var _7=(isc.Page.$151g(this.proportionalResizeModifiers)==0);if(_7){if(_3){return"always"}else if(_4){return"none"}}
return _1}},isc.A.setResizeFrom=function isc_Canvas_setResizeFrom(_1){if(this.resizeFrom!=_1){this.resizeFrom=_1;this.$151k()}},isc.A.getDragAppearance=function isc_Canvas_getDragAppearance(_1){if(_1==isc.EH.DRAG_RESIZE&&this.dragResizeAppearance!=null)
return this.dragResizeAppearance;if(_1==isc.EH.DRAG_REPOSITION&&this.dragRepositionAppearance!=null)
return this.dragRepositionAppearance;return this.dragAppearance});isc.B._maxIndex=isc.C+6;isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$nx="resize";isc.A.$ny="draw";isc.A.$nz="hidden";isc.A.$n0="redraw";isc.A.$n1="undefined";isc.A.$n2="draws";isc.A.$n3="drawing";isc.A.$n4="redraws";isc.A.$n5="autoDraw";isc.A.$167d="masterElement";isc.A.$n6="beforeBegin";isc.A.$n7="afterBegin";isc.A.$n8="beforeEnd";isc.A.$n9="afterEnd";isc.A.$oa=">";isc.A.$ob="'";isc.A.$77b='"';isc.A.$oc="initWidget";isc.A.iFrameHeightAdjustment=0;isc.A.$55w="html";isc.A.isPrinting=false;isc.A.$54t=isc.nbsp;isc.A.$od="initial draw";isc.A.$oe="parentDrawn";isc.A.sizeMayChangeOnRedraw=null;isc.A.notifyAncestorsOnReflow=true;isc.A.$of="eventProxy";isc.A.reuseDOMIDs=false;isc.A.$og="canvas";isc.A.$oh="canvas_clipDiv";isc.A.clipHandleIsFocusHandle=true;isc.A.$129l=";outline-style:none";isc.A.$131k="<div id='";isc.A.$131l="<a href='#' id='";isc.A.$oi="MARGIN-LEFT:";isc.A.$oj="MARGIN-RIGHT:";isc.A.$ok="MARGIN-TOP:";isc.A.$ol="MARGIN-BOTTOM:";isc.A.$om="MARGIN:";isc.A.$on="</div>";isc.A.$131m="</a>";isc.A.$oo="</div></div>";isc.A.$op=[];isc.A.isBorderBox=(isc.Browser.isMoz||isc.Browser.isBorderBox);isc.A.$415=true;isc.A.$oq="isc.EH.handleFocus(";isc.A.$or="if(event.target!=this)return;isc.EH.handleFocus(";isc.A.$os="if(window.isc)isc.EH.handleBlur(";isc.A.$ot=",true);";isc.A.$ou="autoChild:";isc.A.componentMaskDefaults={backgroundColor:"black",opacity:20};isc.A.$ov=["<DIV ID='",null,"'style='position:absolute;width:1px;height:1px;overflow:hidden;left:",null,"px;top:",null,"px;font-size:0px'>&nbsp;</DIV>"];isc.A.$ow="scrollSizeDiv";isc.A.$ox="enforceScrollSize";isc.A.$oy="-1px";isc.A.$1514=new Array(4);isc.A.useClientRectAPI=false;isc.A.useBoxObjectAPI=false;isc.A.useBoxObjectAPISelectively=true;isc.A.$65h="0px";isc.A.$oz="left";isc.A.$o0="top";isc.A.$o1="right";isc.A.$o2="bottom";isc.A.$o3="center";isc.A.$o4="childMoved";isc.A.$o5="height";isc.A.$o6="width";isc.A.$oz="left";isc.A.$o0="top";isc.A.$o7="$o8";isc.A.$o9="%";isc.A.$pa="*";isc.A.$187o="init";isc.A.$1872="component";isc.A.$pb={height:"_percent_height",width:"_percent_width",left:"_percent_left",top:"_percent_top"};isc.A.$90f={height:"minHeight",width:"minWidth"};isc.A.$90u={height:"maxHeight",width:"maxWidth"};isc.A.$pc="resized";isc.A.$pd="childResized";isc.A.$151u="none";isc.A.momentumScrolling=true;isc.A.momentumScrollTime=1500;isc.A.momentumScrollMinSpeed=200;isc.A.momentumScrollAcceleration="smoothStart";isc.A.shouldSetNoDropTracker=isc.Browser.isOpera;isc.A.noDropTracker="[SKIN]/shared/no_drop.png";isc.A.$146z=(isc.Browser.$139c?function(){if(this.transitionsRemoved!=null)this.transitionsRemoved();var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$146z()}}:isc.Class.NO_OP);isc.A.adjustOverflowWhileDirty=true;isc.A.$pe={hidden:true,visible:true,scroll:true,auto:true,"clip-v":true,"clip-h":true,ignore:true};isc.A.$pf="sizing";isc.A.$pg="overflow";isc.A.$148n=false;isc.A.$146n=null;isc.A.$1390=false;isc.A.$1315="nativeScroll";isc.A.$143e="data-isc-page-space";isc.A.$ph="px";isc.A.$27r="none";isc.A.$411="relative";isc.A.$pi="disabled";isc.A.$27r="none";isc.A.updateTabPositionOnDraw=true;isc.A.updateTabPositionOnReparent=true;isc.A.$181q={width:"hoverWidth",height:"hoverHeight",align:"hoverAlign",valign:"hoverVAlign",baseStyle:"hoverStyle",opacity:"hoverOpacity",moveWithMouse:"hoverMoveWithMouse",wrap:"hoverWrap",autoFitWidth:"hoverAutoFitWidth",autoFitMaxWidth:"hoverAutoFitMaxWidth"};isc.A.$pj="styleName";isc.A.$pk="eventpart";isc.A.snapGridPaneConstructor="Canvas";isc.A.snapGridPaneDefaults={width:"100%",height:"100%"};isc.A.snapGridCrossLength=3;isc.A.snapGridLineDefaults={lineWidth:1};isc.A.hSnapPositions=[];isc.A.vSnapPositions=[];isc.A.snapAlignCenterLineStyle="1px solid blue";isc.A.snapAlignEdgeLineStyle="1px solid #555555";isc.A.snapLineDefaults={isSnapAlignCandidate:false,visibility:"hidden",width:1,height:1};isc.A.$f8="count";isc.A.$pl=["edgeImage","edgeColor","customEdges","shownEdges","edgeSize","edgeTop","edgeBottom","edgeLeft","edgeRight","edgeOffset","edgeOffsetTop","edgeOffsetBottom","edgeOffsetLeft","edgeOffsetRight","canDragResize","canDragReposition"];isc.A.shadowDepth=4;isc.A.useCSSShadow=true;isc.A.shadowColor="#AAAAAA";isc.A.dragResizeFromShadow=true;isc.A.$pm="shadow";isc.A.$131z="snapHGap";isc.A.$1310="snapVGap";isc.A.$1311="childrenSnapToGrid";isc.A.$1312="childrenSnapResizeToGrid";isc.A.isGroup=false;isc.A.groupBorderCSS="2px solid black";isc.A.groupLabelPadding=10;isc.A.showGroupLabel=true;isc.A.groupLabelStyleName="groupLabel";isc.A.groupLabelDefaults={_constructor:"Label",overflow:"visible",height:1,width:1,$jo:false,wrap:false,vAlign:"center",align:"center",redraw:function(){var _1=this.Super("redraw",arguments);this.creator.$1332();return _1},handleParentMoved:function(){this.Super("handleParentMoved",arguments);this.creator.$1332()}};isc.A.showTriggerArea=false;isc.A.triggerAreaDefaults={redrawOnResize:false,_redrawWithParent:false,$jp:false,$jo:false,overflow:"hidden",canFocus:false,$1515:function(){var _1=this.masterElement,_2=_1.$1516();this.setRect(_2)},masterResized:function(){this.$1515()}};isc.A.triggerAreaTop=5;isc.A.triggerAreaRight=5;isc.A.triggerAreaBottom=5;isc.A.triggerAreaLeft=5;isc.B.push(isc.A.init=function isc_Canvas_init(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13){var _14;if(isc.$cv)arguments.$cw=this;if(!isc.Canvas.$80c){if(this.getDocumentBody(true)==null){isc.logWarn("Canvas created in a page outside the BODY tag. This is not supported. Isomorphic Software requires the tag to be present and all widgets be created and drawn inside it. Canvas details follow:\n"+isc.Log.echo(this))}
isc.Canvas.$80c=true}
this.ns.ClassFactory.addGlobalID(this);if(this.useTouchScrolling==false){if(isc.Browser.isTouch)this.showCustomScrollbars=true;this.useNativeTouchScrolling=false}else if(this.useNativeTouchScrolling&&this.$1399&&!this.alwaysShowScrollbars)
{this.showCustomScrollbars=false}
this._canvasList(true);if(this.position==null){this.position=this.htmlElement!=null?isc.Canvas.RELATIVE:isc.Canvas.ABSOLUTE}
if(this.className!=null&&this.logIsInfoEnabled(this.$pj)){this.logInfo("'className' property specified. This property has been deprecated in favor of 'styleName' as of SmartClient 5.5.",this.$pj)}
if(this.styleName!=null){if(this.className!=null){var _15=this.getPrototype(),_16=(this.styleName!=_15.styleName),_17=(this.className!=_15.className);if(_16)this.className=this.styleName;else if(_17)this.styleName=this.className;else this.styleName=this.className}else{this.className=this.styleName}}else if(this.className!=null){this.styleName=this.className}
if(this.size!=null)this.height=this.width=this.size;var _18=isc.NumberUtil;this.updateUserSize(this.width=_18.parseIfNumeric(this.width),this.$o6);this.updateUserSize(this.height=_18.parseIfNumeric(this.height),this.$o5);if(this.width==null)this.width=this.defaultWidth;if(this.height==null)this.height=this.defaultHeight;this.$o8=this.height;if(isc.isA.String(this.margin)){var _19=parseInt(this.margin);if(isc.isA.Number(_19))this.margin=_19;else{this.logWarn("Invalid setting for this.margin:"+this.margin+". This should be a numeric value - ignoring");this.margin=null}}
if(isc.isA.String(this.padding)){var _20=parseInt(this.padding);if(isc.isA.Number(_20))this.padding=_20;else{this.logWarn("Invalid setting for this.padding:"+this.padding+". This should be set to a numeric value - ignoring");this.padding=null}}
if(this.border!=null&&!isc.isA.String(this.border)){this.border=this.$63e(this.border)}
if(this.borderRadius!=null&&!isc.isA.String(this.borderRadius)){this.borderRadius=this.$95d(this.borderRadius)}
if(this.percentSource)this.setPercentSource(this.percentSource,true);this.$pp=true;this.resizeTo(this.width,this.$o8,_14,_14,this.$187o);this.moveTo(this.left,this.top);this.$pp=null;if(this.children&&!isc.isAn.Array(this.children))this.children=[this.children];if(this.peers&&!isc.isAn.Array(this.peers))this.peers=[this.peers];if(this.enabled!=this.$nr){this.logWarn("Widget initialized with explicitly specified 'enabled' property. This property has been deprecated - use 'disabled' instead.");this.disabled=!this.enabled}
if(this.redrawOnEnable!=null){this.logWarn("Widget initialized with deprecated 'redrawOnEnable' - use 'redrawOnDisable' instead.");this.redrawOnDisable=this.redrawOnEnable}
if(this.$145l()){this.$144x=1}
this.initializeTabPosition();this.$151k();this.initWidget(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13);this.$pq();if(this.showShadow&&!this.shouldUseCSSShadow())this.$pr();if(this.clipCorners)this.$ps();if(this.shouldUseBackMask()){this.makeBackMask()}
if(this.showTriggerArea)this.$1517();if(this.children)this.children.setProperty(this.$n5,false);if(this.peers)this.peers.setProperty(this.$n5,false);if(this.observes){var _21,_22,_23=this.observes,_24=_23.length;for(var i=0;i<_24;i++){var _21=_23[i];if(!_21)continue;if(isc.isA.String(_21.source))_22=this.getGlobalReference(_21.source);else _22=_21.source;if(_22){this.observe(_22,_21.message,_21.action)}}}
this.$pt();if(this.peers!=null)this.peers.setProperty(this.$167d,this);if(this.autoChildren)this.addAutoChildren(this.autoChildren);if(this.addOns)this.addAutoChildren(this.addOns);if(this._adjacentHandle&&!this.drawContext){this.drawContext={element:this._adjacentHandle}}
if(this.htmlElement){var _26=this.htmlElement;delete this.htmlElement;this.setHtmlElement(_26)}
if(this.eventProxy!=null){if(!isc.isA.Canvas(this.eventProxy)){this.logWarn("Canvas ID:'"+this.getID()+"' initialized with bad eventProxy. This property should be set to another Canvas instance. Clearing this property.")
delete this.eventProxy}else{if(this.eventProxy.$kt==null)this.eventProxy.$kt=[];this.eventProxy.$kt.add(this)}}
if(this.parentCanvas){this.parentElement=this.parentCanvas}
var _27=this.parentElement;if(_27){if(isc.isA.String(_27))_27=window[_27];if(_27.children==null||!_27.children.contains(this)){this.parentElement=null;_27.addChild(this)}}
if(this.autoFetchAsFilter!=null){var _28=this.autoFetchAsFilter?"substring":"exact";this.logWarn("This component has autoFetchAsFilter explicitly specified as:"+this.autoFetchAsFilter+". This attribute is deprecated in favor of this.autoFetchTextMatchStyle. Defaulting autoFetchTextMatchStyle to \""+_28+"\" based on this setting.");this.autoFetchTextMatchStyle=_28}
this.initializeValuesManager();if(this.showPanelHeader==true){if(this.setupPanelHeader)this.setupPanelHeader();if(this.refreshPanelControls)this.refreshPanelControls()}
if(this.autoDraw&&!this.parentElement&&!isc.noAutoDraw){if(isc.Browser.isSafari&&!isc.Browser.isChrome&&isc.deferAutoDraw&&!isc.Page.isLoaded()&&this.position!="relative")
{isc.Page.setEvent("load","if(window."+this.getID()+")"+this.getID()+".$77f()")}else{this.draw()}}
if(this.showSnapGrid){this.$1313()}
var _29=this.childrenSnapAlign;if(this.editingOn&&this.editProxy){_29=this.editProxy.childrenSnapAlign}
if(_29){this.$152h()}
if(this.rulesEngine)this.rulesEngine.addMember(this)},isc.A.$77f=function isc_Canvas__deferredAutoDraw(){if(this.destroyed||this.isDrawn())return;this.draw()},isc.A.initWidget=function isc_Canvas_initWidget(){},isc.A.setID=function isc_Canvas_setID(_1){var _2=this.pointersToThis=this.pointersToThis||[];_2.add({object:window,property:this.ID});this.ns.EH.changeClickMaskID(this.getID(),_1);this.ID=_1;window[_1]=this;this.clear();this.draw()},isc.A.clearIDs=function isc_Canvas_clearIDs(){this.clear();window[this.ID]=null;if(this.children){for(var i=0;i<this.children.length;i++){this.children[i].clearIDs()}}
if(this.peers){for(var i=0;i<this.peers.length;i++){this.peers[i].clearIDs()}}},isc.A.getByLocalId=function isc_Canvas_getByLocalId(_1){if(this.$112o){return this.$112o[_1]}else if(this.$112p&&this.$112p.$112o){return this.$112p.$112o[_1]}else{return null}},isc.A.getLocalId=function isc_Canvas_getLocalId(){return this.$177g||this.getID()},isc.A.getDrawnState=function isc_Canvas_getDrawnState(){if(this.$if==true)return isc.Canvas.COMPLETE;if(this.$pu==true)return isc.Canvas.HANDLE_DRAWN;if(this.$pv==true)return isc.Canvas.DRAWING_HANDLE;return isc.Canvas.UNDRAWN},isc.A.setDrawnState=function isc_Canvas_setDrawnState(_1){if(_1==isc.Canvas.COMPLETE)this.$if=true;else this.$if=false;if(_1==isc.Canvas.HANDLE_DRAWN)this.$pu=true;else this.$pu=false;if(_1==isc.Canvas.DRAWING_HANDLE)this.$pv=true;else this.$pv=false},isc.A.isDrawn=function isc_Canvas_isDrawn(){return!!this.$if},isc.A.handleDrawn=function isc_Canvas_handleDrawn(){return!!this.$pu},isc.A.getID=function isc_Canvas_getID(){if(this.ID==null)this.ns.ClassFactory.addGlobalID(this);return this.ID},isc.A.getAttribute=function isc_Canvas_getAttribute(_1){return this[_1]},isc.A.getInnerHTML=function isc_Canvas_getInnerHTML(_1){var _2;if(!this.containsIFrame())_2=this.getContents();else{var _3=this.getContentsURL();_3=isc.Page.getURL(_3);if(isc.rpc)_3=isc.rpc.addParamsToURL(_3,this.contentsURLParams);if(this.useDragMask==null)this.useDragMask=true;_2=this.getIFrameHTML(_3)}
return _2},isc.A.$163t=function isc_Canvas__getIFrameID(){return this.$qs("iframe")},isc.A.getIFrameHTML=function isc_Canvas_getIFrameHTML(_1){var _2="";if(this.iframeSandbox){_2+=" sandbox";if(this.iframeSandbox!="*ALL*"){_2+="='"+this.iframeSandbox+"'"}}
return("<iframe id='"+this.$163t()+"' scrolling='"+(this.overflow==isc.Canvas.HIDDEN?"no":"auto")+"' width='"+this.getInnerContentWidth()+"' height='"+this.getInnerContentHeight()+"' frameborder='0'"+_2+" src='"+String.asAttValue(_1)+"'></iframe>")},isc.A.$pw=function isc_Canvas__sizeIFrame(){var _1=this.getDrawnState();if(_1!=isc.Canvas.COMPLETE&&_1!=isc.Canvas.HANDLE_DRAWN)return;var _2=this.getHandle(),_3=_2?_2.firstChild:null;if(_3==null)return;_3.style.height=(this.getInnerContentHeight()-this.iFrameHeightAdjustment)+isc.px},isc.A.$px=function isc_Canvas__getInnerHTML(_1){if(isc.$cv)arguments.$cw=this;var _2=this;var _3=function completeInnerHTMLFun(_5){if(_2.$pz){var _4=_2.$pz.join(isc.emptyString);_5=(_5==null||_5==isc.nbsp?_4:_5+_4)}
if(_1!=null)_2.fireCallback(_1,"HTML",[_5]);return _5};var _5=this.getInnerHTML(_3);if(_5===false){return false}else{_1=null;return _3(_5)}},isc.A.setSnapOffsetLeft=function isc_Canvas_setSnapOffsetLeft(_1){var _2=this.snapOffsetLeft;this.snapOffsetLeft=_1;if(_2!=_1)this.$qw()},isc.A.setSnapOffsetTop=function isc_Canvas_setSnapOffsetTop(_1){var _2=this.snapOffsetTop;this.snapOffsetTop=_1;if(_2!=_1)this.$qw()},isc.A.readyToDraw=function isc_Canvas_readyToDraw(){var _1=this.getDrawnState();if(this.getDrawnState()!=isc.Canvas.UNDRAWN){var _1=this.getDrawnState();this.logWarn("draw() called on widget with current drawn state: "+_1+(_1==isc.Canvas.COMPLETE?", use redraw() instead.":", ignoring.")+this.getStackTrace(),"drawing");return false}
if(this.showIf!=null){this.convertToMethod("showIf");if(this.showIf(this)==false)return false}
var _2=this.getWidth(),_3=this.getHeight();if(_2<=0||_3<=0){if(this.$77g){this.$77h();return false}
if(!isc.NativeScrollbar||!isc.isA.NativeScrollbar(this)||_2<0||_3<0){this.logWarn("negative or zero area: height: "+this.getHeight()+", width: "+this.getWidth()+", refusing to draw"+this.getStackTrace(),"drawing")}
return false}
if(this.deferredDrawEvent!=null){this.logInfo("draw() called while object already pending a delayed draw - no action to take","drawing");return false}
if(this.parentElement!=null&&(!isc.isA.Canvas(this.parentElement)||this.parentElement.getDrawnState()==isc.Canvas.UNDRAWN))
{this.logWarn("Attempt to draw child of an undrawn parent - ignoring"+this.getStackTrace(),"drawing");return false}
if(isc.Browser.isSafari&&!isc.Page.isLoaded()){var _4=isc.Browser.safariVersion;if(parseInt(_4)<100){this.drawDeferred();return false}else{}}
return true},isc.A.$77h=function isc_Canvas__deferDrawForPageSize(){if(isc.Page.isLoaded())this.drawDeferred();else{isc.Page.setEvent("load",this.getID()+".$77i()")}},isc.A.$77i=function isc_Canvas__fireDeferredDrawForPageResize(){if(this.destroyed)return;if(isc.Page.getWidth()==0||isc.Page.getHeight()==0){this.delayCall("draw",null,100)}
else{this.draw()}},isc.A.$p2=function isc_Canvas__mustDocumentWrite(){return false},isc.A.$p4=function isc_Canvas__requestsDocumentWrite(){if(this.$p5)return true;var _1=this.parentElement;while(_1){if(_1.$p5)return true;_1=_1.parentElement}
if(this.children){for(var i=0;i<this.children.length;i++){if(this.children[i].$p2())return true}}
return false},isc.A.draw=function isc_Canvas_draw(_1){if(isc.$cv)arguments.$cw=this;if(!this.readyToDraw())return this;this.updateTabPositionForDraw();if(this.logIsInfoEnabled(this.$n2)){this.logInfo("draw(): drawing "+this.Class+(this.parentElement?" with parent: "+this.parentElement:"")+(!isc.Page.isLoaded()?" before page load":"")+(this.logIsDebugEnabled(this.$n2)?this.getStackTrace():""),this.$n2)}
this.$p6(this.$n2);if(!this.$163y){this.ruleScope=this.getRuleScope();if(isc.isA.DataBoundComponent(this)){var _2=this.getRuleScopeComponent();if(_2){if(!_2.$163z)_2.$163z=[];_2.$163z.add(this)}}
this.$163y=true}
var _3=this.doInitialFetch();if(this.peers!=null&&this.peers.getLength()>0){this.predrawPeers()}
var _4=this.isGroup;if(_4){this.isGroup=null;this.setIsGroup(true,true)}
var _5=(isc.Browser.isIE&&this.fixIEOpacity&&!this.masterElement),_6=isc.Element.cacheOffsetCoords,_7=this.parentElement!=null&&this.parentElement.$1390;if(this.position==isc.Canvas.RELATIVE){_6=false}
if(_5||_6){var _8=this.parentElement;while(_8!=null){if(_8.opacity!=null&&_8.opacity!=100){this.setOpacity(100,null,true);_5=false;if(!_6)break}
if(_8.position==isc.Canvas.RELATIVE){_6=false;if(!_5)break}
_8=_8.parentElement}}
if(_7){this.$808=this.$809=null;this.$1390=true;this.$1391=_6;this.cacheOffsetCoords=false}else{this.$1390=false;this.cacheOffsetCoords=_6;delete this.$1391}
if(this.htmlElement!=null&&this.matchElement){if(isc.isA.String(this.htmlElement))this.htmlElement=isc.Element.get(this.htmlElement);var _9=isc.Element.getNativeInnerWidth(this.htmlElement),_10=isc.Element.getNativeInnerHeight(this.htmlElement);this.setWidth(_9);this.setHeight(_10)}
var _11=this.parentElement;var _12=(!isc.Page.isLoaded()&&!this.drawContext&&(_11==null&&this.position==isc.Canvas.RELATIVE));_12=_12||this.$p2();var _13=this.separateContentInsertion;if(isc.Page.isLoaded()||!_12){this.$p8(!_13);if(_13)this.$p9();this.drawChildren();this.$qa()}else{var _8=this.parentElement;if((isc.Browser.isOpera||isc.Browser.isIE)&&this.getDocument().readyState=="complete")
{isc.Page.finishedLoading()}
this.$qb()}
if(_4&&this.groupLabel)this.groupLabel.moveAbove(this);if(_3)isc.RPCManager.sendQueue();if(this._useFocusProxy&&this.$kk())this.makeFocusProxy();if(this.accessKey!=null&&this.$qc()&&this.$kk()){this.$qd()}
if(this.$qe!=null)
this.enforceScrollSize(this.$qe[0],this.$qe[1]);if(this.$qf())isc.EH.$mz([this]);if(this.clipCorners)this.$qg();this.$806=this.isVisible();if(!_1&&this.$806)this.show();if(this.parentElement)this.parentElement.childDrawn(this);if(this.masterElement)this.masterElement.peerDrawn(this);if(this.parentElement==null&&isc.Page.isLoaded()&&!isc.Page.pollPageSize)
{if(this.getPageRight()>=isc.Page.getWidth()||this.getPageBottom()>=isc.Page.getHeight())
{isc.EH.fireOnPause("checkForBodyOverflowChange",{target:isc.Canvas,methodName:"checkForPageResize"},100)}}
if(this.parentElement==null&&this.position==this.$411){this.$412=this.getPageLeft();this.$413=this.getPageTop();isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"$414")}
if(this.useDragMask){isc.EH.registerMaskableItem(this,true)}
this.onDraw();if(this.editProxy&&this.editingOn){if(this.editProxy.hasEditMask())this.editProxy.showEditMask(this.parentElement);if(this.editContext.isComponentSelected(this))this.editContext.refreshSelectedAppearance(this)}
this.$1630();if(!isc.isA.DataBoundComponent(this)&&this.rulesEngine){this.rulesEngine.processContextChanged(this)}
if(!this.$qz&&this.overflow==isc.Canvas.VISIBLE){var _14=this.getVisibleWidth(),_15=this.getVisibleHeight(),w=this.getWidth(),h=this.getHeight();if(_14>w||_15>h){this.$5y(_14-w,_15-h,"Overflow on initial draw")}}
return this},isc.A.$1631=function isc_Canvas__globalizeWhenAdvancedCriteria(_1){var _2=(this.hasStableLocalID()?this.getLocalId()+".values.":(this.dataSource?this.getDataSource().ID+".":null));if(!_2)return;if(_1.fieldName&&!_1.fieldName.contains(".")&&!_1.fieldName.contains("/")){_1.fieldName=_2+_1.fieldName}
if(_1.valuePath&&!_1.valuePath.contains(".")&&!_1.valuePath.contains("/")){_1.valuePath=_2+_1.valuePath}
if(_1.criteria){var _3=_1.criteria;if(isc.isAn.Array(_3)){for(var i=0;i<_3.length;i++){this.$1631(_3[i])}}else{this.$1631(_3)}}},isc.A.onDraw=function isc_Canvas_onDraw(){},isc.A.doInitialFetch=function isc_Canvas_doInitialFetch(){},isc.A.$qb=function isc_Canvas__writeHTML(){this.setDrawnState(isc.Canvas.DRAWING_HANDLE);var _1=this.getDocument(),_2=this.separateContentInsertion;if(this.children!=null&&this.$p2()){this.$p5=true;var _3=this.getTagStart(),_4=this.getTagEnd();_1.write(_2?_3:_3+this.$px())
this.drawChildren();_1.write(_2?this.$px()+_4:_4);this.setDrawnState(isc.Canvas.HANDLE_DRAWN)}else{_1.write(isc.SB.concat(this.getTagStart(),(_2?null:this.$px()),this.getTagEnd()));this.setDrawnState(isc.Canvas.HANDLE_DRAWN);if(_2)this.$p9();this.drawChildren()}
this.$qa();if(isc.Browser.isMoz&&this.getScrollingMechanism()==isc.Canvas.NATIVE)
this.checkNativeScroll();return this},isc.A.drawDeferred=function isc_Canvas_drawDeferred(){var _1=(isc.Page.isLoaded()?"idle":"load");if(this.deferredDrawEvent!=null){this.logInfo("drawDeferred() called when object is already pending drawing - No action to take.");return}
var _2=this.getID();this.deferredDrawEvent=isc.Page.setEvent(_1,"delete "+_2+".deferredDrawEvent;"+_2+".draw();",isc.Page.FIRE_ONCE)},isc.A.getPrintHTML=function(printProperties,callback){var haveUserCallback=callback&&!(isc.isAn.Object(callback)&&callback.$175i);this.isPrinting=true;printProperties=isc.addProperties({},printProperties,this.printProperties);if(printProperties.topLevelCanvas==null){printProperties.topLevelCanvas=this;printProperties.isDrawn=this.isDrawn();printProperties.isVisible=this.isVisible()}
if(printProperties.omitControls==null)
printProperties.omitControls=isc.Canvas.printOmitControls;if(printProperties.includeControls==null)
printProperties.includeControls=isc.Canvas.printIncludeControls;var absPos=printProperties.absPos;this.currentPrintProperties=printProperties;var HTML=[this.getPrintTagStart(absPos),,,this.getPrintTagEnd(absPos)];var wentAsync=false;var self=this;var continuePrintHTMLFun=function continuePrintHTMLFun(printInnerHTML){HTML[1]=printInnerHTML;delete printProperties.inline;printProperties.absPos=self.printChildrenAbsolutelyPositioned;if(printProperties.omitComponents){var omitComponents=printProperties.omitComponents
for(var i=0;i<omitComponents.length;i++){if(isc.isA.String(omitComponents[i]))
omitComponents[i]=window[omitComponents[i]];if(!isc.isAn.Instance(omitComponents[i]))omitComponents[i]=[]}
omitComponents.removeEmpty()}
var children=self.getPrintChildren();var completePrintHTML=function completePrintHTML(childrenHTML){return self.completePrintHTMLCallback(childrenHTML,HTML,wentAsync,callback)};if(children!=null&&children.length>0){var childrenHTML=[],childCount=children.length,completedCount=0;var childHTMLComplete=function childHTMLComplete(childIndex,html){childrenHTML[childIndex]=html;++completedCount;if(completedCount==childCount){return completePrintHTML(childrenHTML)}};var thisHTML=null;for(var i=0;i<childCount;i++){var child=children[i];var func=(function(i){return function(html){return childHTMLComplete(i,html)}})(i);var childHTML=self.getChildPrintHTML(child,printProperties,func);if(childHTML!=null){thisHTML=childHTMLComplete(i,childHTML)}else{wentAsync=true}}
if(wentAsync||haveUserCallback){return null}else{return thisHTML}}else{return completePrintHTML()}};if(!this.children||this.children.length==0||this.allowContentAndChildren){var printInnerHTML=this.getPrintInnerHTML(continuePrintHTMLFun);if(printInnerHTML==null){wentAsync=true;return null}else{return continuePrintHTMLFun(printInnerHTML)}}else{return continuePrintHTMLFun()}},isc.A.getChildPrintHTML=function isc_Canvas_getChildPrintHTML(_1,_2,_3){return _1.getPrintHTML(_2,_3)},isc.A.completePrintHTMLCallback=function isc_Canvas_completePrintHTMLCallback(_1,_2,_3,_4){this.isPrinting=false;_2[2]=this.$134u(_1);_2=_2.join(isc.emptyString);if(this.currentPrintProperties)delete this.currentPrintProperties.absPos;delete this.currentPrintProperties;if(_3||_4!=null){this.delayCall("fireCallback",[_4,"HTML,callback",[_2,_4]]);return null}else{if(!isc.Canvas.$1274){isc.logWarn("Expecting a direct return value from getPrintHTML() is deprecated. The recommended usage is to pass a callback always. See the documentation for more information on the reason for always passing a callback.");isc.Canvas.$1274=true}
return _2}},isc.A.$134u=function isc_Canvas__joinChildrenPrintHTML(_1){if(isc.isAn.Array(_1))_1=_1.join(isc.emptyString);return _1},isc.A.getPrintInnerHTML=function isc_Canvas_getPrintInnerHTML(_1){var _2=this;var _3=function completePrintInnerHTMLFun(_5){var _4=_2.children!=null&&_2.children.length>0;if(_4&&_5==_2.$54t)_5=isc.emptyString;if(_1!=null)_2.fireCallback(_1,"HTML",[_5]);return _5};var _5=this.$px(_3);if(_5===false){return null}else{_1=null;if(_5==null)_5=isc.emptyString;return _3(_5)}},isc.A.getPrintChildren=function isc_Canvas_getPrintChildren(){var _1=this.children;if(!_1||_1.length==0)return;var _2=[];for(var i=0;i<_1.length;i++){if(this.shouldPrintChild(_1[i]))_2.add(_1[i])}
return(_2.length>0)?_2:null},isc.A.shouldPrintChild=function isc_Canvas_shouldPrintChild(_1){if(_1.shouldPrint!=null)return _1.shouldPrint;if(_1.masterElement)return false;var _2=this.currentPrintProperties,_3=_2.omitControls,_4=_2.omitComponents;if(!isc.isAn.Instance(_1)||(_4&&_4.contains(_1)))
{return false}
if(_3){var _5=_2.includeControls;if(_5&&_5.length>0){for(var i=0;i<_5.length;i++){var _7=_5[i];if(isc.isA[_7]&&isc.isA[_7](_1))return true}}
for(var i=0;i<_3.length;i++){var _7=_3[i];if(isc.isA[_7]&&isc.isA[_7](_1)){return false}}}
if((!_1.isDrawn()&&_2.isDrawn)||(!_1.isVisible()&&_2.isVisible))return false;return true},isc.A.$xo=function isc_Canvas__fixPNG(){if(this.isPrinting)return false;return true},isc.A.getPrintStyleName=function isc_Canvas_getPrintStyleName(){return this.printStyleName||this.styleName},isc.A.getPrintTagStart=function isc_Canvas_getPrintTagStart(_1){var _2=this.currentPrintProperties,_3=_2.topLevelCanvas==this,_4=!_3&&!_1&&_2.inline,_5=this.getPrintStyleName();var _6;if(this.isGroup){_6=this.getPrintHTMLTagStart()}
return[_6,(_4?"<span ":"<div "),(_5?"class='"+_5+"' ":null),this.getPrintTagStartAttributes(_1),">"].join(isc.emptyString)},isc.A.getPrintHTMLTagStart=function isc_Canvas_getPrintHTMLTagStart(){var _1="<fieldset>";if(this.groupTitle!=null){_1+="<legend>"+this.groupTitle+"</legend>"}
return _1},isc.A.getPrintHTMLTagEnd=function isc_Canvas_getPrintHTMLTagEnd(){return"</fieldset>"},isc.A.getPrintTagStartAttributes=function isc_Canvas_getPrintTagStartAttributes(_1){if(_1){return" style='position:absolute;left:"+this.getLeft()+"px;top:"+this.getTop()+"px;width:"+this.getWidth()+"px;height:"+this.getHeight()+"px;' "}else if(this.printChildrenAbsolutelyPositioned){return" style='position:relative;width:"+this.getScrollWidth()+"px;height:"+this.getScrollHeight()+"px;background-color:lightblue;' "}
return null},isc.A.getPrintTagEnd=function isc_Canvas_getPrintTagEnd(_1){var _2=this.currentPrintProperties,_3=_2.topLevelCanvas==this,_4=!_3&&!_1&&_2.inline;var _5;if(this.isGroup){_5=this.getPrintHTMLTagEnd()}
var _6=(this.wrap==false)?"</div>":_4?"</span>":"</div>";if(this.isGroup)_6+=_5;return _6},isc.A.shouldUseBackMask=function isc_Canvas_shouldUseBackMask(){if(!this.useBackMask)return false;if(isc.Browser.isIE&&isc.Browser.minorVersion<5.5)return false;if(!isc.Canvas.useMozBackMasks&&isc.Browser.isMoz)return false;return true},isc.A.makeBackMask=function isc_Canvas_makeBackMask(_1){if(isc.Browser.isMoz&&!isc.Page.isLoaded()){this.$49t=_1;isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"makeBackMask");return}
if(this.$49t){_1=this.$49t;delete this.$49t}
this._backMask=isc.BackMask.create(_1);this.addPeer(this._backMask);this._backMask.setZIndex(this.getZIndex(true)-2);this.$qi()},isc.A.makeFocusProxy=function isc_Canvas_makeFocusProxy(){if(!this._useFocusProxy||this.$qj||this.$qk||!this.isDrawn()||this.$ql!=null)return;this.$qk=true;this.$qm();this.$qk=null},isc.A.$qm=function isc_Canvas__makeFocusProxy(){if(!isc.Page.isLoaded()&&isc.Browser.isSafari){this.getTabIndex();this.$ql=isc.Page.setEvent("load",this,null,"delayedMakeFocusProxy");return}
var _1=this.getTabIndex();if(this.isDisabled())_1=-1;if(isc.Browser.isSafari&&_1==-1){return}
var _2=(isc.Browser.isSafari?1:this.getViewportWidth()),_3=(isc.Browser.isSafari?1:this.getViewportHeight());var _4=isc.Canvas.getFocusProxyString(this.getCanvasName(),true,this.getOffsetLeft()-1,this.getOffsetTop()-1,_2,_3,this.isVisible(),this.$kk(),_1,this.accessKey,false,this.$qn(),this.$qo());isc.Element.insertAdjacentHTML(this.getClipHandle(),"afterEnd",_4)
this.$qj=true});isc.evalBoundary;isc.B.push(isc.A.delayedMakeFocusProxy=function isc_Canvas_delayedMakeFocusProxy(){this.$ql=null;this.makeFocusProxy()},isc.A.$qp=function isc_Canvas__clearFocusProxy(){if(!this._useFocusProxy)return;if(this.$ql!=null){isc.Page.clearEvent("load",this.$ql);this.$ql=null}
if(!this.$qj)return;var _1=this.$qq();if(_1!=null){if(isc.Browser.isDOM){if(_1.parentNode){_1.parentNode.removeChild(_1)}else{this.logWarn("Unable clear focusProxy for this widget - element has no parentNode.")}}
this.$qr=null}
this.$qj=null},isc.A.$qc=function isc_Canvas__useAccessKeyProxy(){var _1=(isc.Browser.isChrome||(isc.Browser.isMoz&&this._useNativeTabIndex));return _1},isc.A.$qd=function isc_Canvas__makeAccessKeyProxy(){var _1=this.accessKey;if(!_1||!this.isDrawn()||!this.$kk())return;var _2=this.$qs("focusProxy");var _3=isc.StringBuffer.concat("<a id='",_2,"' href='javascript:void(0)'",(isc.Browser.isChrome?"' onClick":"' onfocus"),"='var _0=window.",this.getID(),";if(_0){_0.focus()}' ","accessKey='"+_1+"'></a>");isc.Element.insertAdjacentHTML(this.getClipHandle(),"beforeEnd",_3);this.$qt=isc.Element.get(_2)},isc.A.$qu=function isc_Canvas__clearAccessKeyProxy(){var _1=this.$qt;delete this.$qt;if(_1)isc.Element.clear(_1)},isc.A.drawChildren=function isc_Canvas_drawChildren(){if(this.children==null)return true;if(this.isDrawn()){this.logWarn("drawChildren() is only safe to call BEFORE a canvas has been drawn"+this.getStackTrace());return}
if(this.children&&this.logIsInfoEnabled(this.$n3)){this.logInfo("drawChildren(): "+this.children.length+" children",this.$n3)}
this.$pt();this.updateChildTabPositions();this.layoutChildren(this.$od);if(this.manageChildOverflow)this.$qv=true;for(var i=0;i<this.children.length;i++){var _2=this.children[i];if(!this.drawChildWithParent(_2))continue;if(!_2.isDrawn())_2.draw()}
if(this.componentMaskShowing){this.$168q()}},isc.A.drawChildWithParent=function isc_Canvas_drawChildWithParent(_1){if(_1.masterElement)return false;if(this.componentMask==_1&&!this.componentMaskShowing){return false}
return true},isc.A.$qx=function isc_Canvas__completeChildOverflow(_1,_2){if(!this.manageChildOverflow)return;this.$qv=null;if(!_2){this.$qy()}
var _3=0;for(var i=0;i<_1.length;i++){var _5=_1[i];if(_5!=null&&_5.$qz){_3++;if(_5.$qv&&_5.children){_5.$qx(_5.children,true)}
_5.$qz=null;_5.adjustOverflow(this.$oe)}}},isc.A.$182b=function isc_Canvas__completeChildrenOverflowOnHTMLInit(){if(this.manageChildOverflow&&this.children!=null&&(this.parentElement==null||!this.parentElement.$qv))
{this.$qx(this.children)}},isc.A.predrawPeers=function isc_Canvas_predrawPeers(){if(!this.peers)return;for(var i=0;i<this.peers.getLength();i++){var _2=this.peers[i];if(_2.$q0==true){if(!isc.isA.Canvas(_2)||_2.masterElement!=this){this.peers.remove(_2);this.addPeer(_2)}
if(!_2.isDrawn())_2.draw()}}},isc.A.drawPeers=function isc_Canvas_drawPeers(){if(!this.peers)return true;if(this.logIsInfoEnabled(this.$n3)){this.logInfo("drawPeers(): "+this.peers.length+" peers","drawing")}
var _1=this.peers;this.peers=[];for(var i=0,_3;i<_1.length;i++){_3=_1[i];if(!isc.isA.Canvas(_3)||_3.masterElement!=this){this.addPeer(_3)}else{this.peers.add(_3)}}
for(i=0;i<this.peers.length;i++){var _3=this.peers[i];if(_3.snapTo||_3.snapEdge)_3.$qw();if(!_3.isDrawn())_3.draw()}},isc.A.$p8=function isc_Canvas__insertHTML(_1,_2){this.setDrawnState(isc.Canvas.DRAWING_HANDLE);var _3=_1?this.$px():null,_4=this.getTagStart(true),_5=isc.isAn.Array(_4),_6;if(_5){var _7=_4.length;_4[_4.length]=_3;_4[_4.length]=this.getTagEnd();_6=_4.join(isc.$ad);_4.length=_7}else{_6=isc.SB.concat(_4,_3,this.getTagEnd())}
var _8;var _9=this.logIsInfoEnabled(this.$n3);var _10=_2||this.drawContext;if(_10){var _11=_10.element,_12=_10.position||"beforeBegin";this.logInfo("$p8(): drawing with "+_12+" relative to element: "+this.echoLeaf(_11),"drawing");if(_12=="replace"){_12="beforeBegin";if(isc.isA.String(_11))_11=isc.Element.get(_11);_8=this.$q1(_11,_12,_6,true);_11.parentNode.removeChild(_11);this.drawContext=null;if(this.htmlElement)this.htmlElement=null}else{_8=this.$q1(_11,_12,_6,true)}}else if(this.masterElement&&(this.masterElement.getClipHandle()!=null)){if(_9){this.logInfo("inserting HTML next to master element: "+this.masterElement,"drawing")}
var _13=this.masterElement.getClipHandle();_8=this.$q1(_13,this.$n9,_6,true)}else if(this.parentElement){if(_9){this.logInfo("inserting HTML into parent: "+this.parentElement,"drawing")}
_10={element:this.parentElement.getHandle(),position:this.$n8};if(isc.screenReader&&this.parentElement.children){var _14=this.parentElement.children,i=_14.indexOf(this);for(var _16=i;_16>0;--_16){var _17=_14[_16-1];if(_17.handleDrawn()||_17.isDrawn()){_10.element=_17.getClipHandle();_10.position=this.$n9;break}}
if(_16==0){++i;for(var _18=_14.length;i<_18;++i){var _17=_14[i];if(_17.handleDrawn()||_17.isDrawn()){_10.element=_17.getClipHandle();_10.position=this.$n6;break}}}}
_8=this.$q1(_10.element,_10.position,_6,true)}else{if(_9){this.logDebug("inserting HTML at top level","drawing")}
_8=this.$q2(_6)}
if(_8!=null){if(this.$113l){this._clipDiv=_8;this.$q3=_8.firstChild}else{this.$q3=_8}}
this.setDrawnState(isc.Canvas.HANDLE_DRAWN)},isc.A.$q2=function isc_Canvas__createAbsoluteElement(_1){return this.ns.Element.createAbsoluteElement(_1)},isc.A.$q1=function isc_Canvas__insertAdjacentHTML(_1,_2,_3,_4){return this.ns.Element.insertAdjacentHTML(_1,_2,_3,_4)},isc.A.$qa=function isc_Canvas__completeHTMLInit(){this.modifyContent();if((isc.Browser.isSafari||isc.Browser.isMoz)&&isc.Browser.isStrict&&this.containsIFrame())this.$pw();this.$182b();this.setUpEvents();if(this.$q4){this.$q5(this.left,this.top,this.width,this.$o8);var _1=this.$q6;if(isc.isAn.Array(_1))this.setClip(_1)}
this.setDrawnState(isc.Canvas.COMPLETE);this.$q7=false;this.$ve();if(this.$145l()){var _2=this.parentElement;while(_2!=null){_2.$144z();_2=_2.parentElement}}
if(this.parentElement==null)isc.Canvas.$q8(this);if(this.parentElement!=null&&this.parentElement.$qv){this.$qz=true}else{this.adjustOverflow(this.$ny)}
this.drawPeers()},isc.A.setHtmlElement=function isc_Canvas_setHtmlElement(_1){if(this.htmlElement==_1)return;this.htmlElement=_1;if(!this.htmlPosition)this.htmlPosition="afterBegin";var _2=_1?{position:this.htmlPosition,element:this.htmlElement}:null;this.setDrawContext(_2)},isc.A.setHtmlPosition=function isc_Canvas_setHtmlPosition(_1){if(_1==null)_1="afterBegin";if(this.htmlPosition==_1)return;this.htmlPosition=_1;if(this.htmlElement==null)return;var _2={position:this.htmlPosition,element:this.htmlElement};this.setDrawContext(_2)},isc.A.isDirty=function isc_Canvas_isDirty(){return this.$q7==true&&this.isDrawn()},isc.A.markForRedraw=function isc_Canvas_markForRedraw(_1){if(isc.$cv)arguments.$cw=this;if(this.isDrawn()&&!this.isDirty()){this.$q9(_1);isc.Canvas.scheduleRedraw(this);this.$q7=true}},isc.A.readyToRedraw=function isc_Canvas_readyToRedraw(_1,_2){if(isc.$cv)arguments.$cw=this;if(!this.isDrawn()){return false}
var _3=true;var _4=this.ns.EH;if(_4.lastTarget==this&&(_4.$ku||_4.$km||(isc.Browser.isMobileWebkit&&_4.dragOperation==_4.DRAG_SCROLL)))
{_3=false}
if(_4.$129k()){if(isc.Browser.isChrome){var _5=_4.mouseDownEvent;if(_5!=null&&_5.DOMevent.target!=null&&this.getClipHandle().contains(_5.DOMevent.target))
{_3=false}}else if(isc.Browser.isMobileWebkit){var _5=_4.mouseDownEvent,_6=_4.lastEvent;if(_5!=null&&_6.DOMevent.target!=null&&_6.DOMevent.target===_5.DOMevent.target&&this.getClipHandle().contains(_6.DOMevent.target))
{_3=false}}}
if(_3==false&&_2){this.$q9(_1,true);this.priorityRedraw=true;this.$q7=false;this.markForRedraw(false)}
return _3},isc.A.$q9=function isc_Canvas__logRedraw(_1,_2){if(_1==false||!this.logIsInfoEnabled(this.$n4))return;var _3=(!_1&&this.logIsDebugEnabled(this.$n4)||this.logIsDebugEnabled("redrawTrace"));var _4;if(_2==null)_4="Scheduling redraw ";else _4=(_2==true?"DEFERRED ":"")+"Immediate redraw ";this.logInfo(_4+(this.isDirty()&&_2!=null?"of dirty widget ":"")+(this.children&&this.children.length>0?"("+this.getChildCount()+" children) ":"")+"("+(_1?_1:"no reason provided")+")"+(_3?this.getStackTrace():""),this.$n4)},isc.A.redraw=function isc_Canvas_redraw(_1){if(isc.$cv)arguments.$cw=this;if(!this.readyToRedraw(_1,true))return this;this.$q9(_1,false);this.$p6(this.$n4);var _2=isc.timeStamp();this.$ra();this.$rb=isc.timeStamp()-_2;return this},isc.A.redrawIfDirty=function isc_Canvas_redrawIfDirty(_1){if(this.isDrawn()&&this.isDirty())return this.redraw(_1)},isc.A.getSizeMayChangeOnRedraw=function isc_Canvas_getSizeMayChangeOnRedraw(){if(this.sizeMayChangeOnRedraw!=null)return this.sizeMayChangeOnRedraw;return this.overflow=="visible"||this.overflow=="clip-h"||this.overflow=="clip-v"},isc.A.redrawForNewSize=function isc_Canvas_redrawForNewSize(_1){if(!this.getSizeMayChangeOnRedraw()){if(!this.isDirty()){this.markForRedraw("'redrawForNewSize' setting up delayed redraw ["+_1+"]")}
this.logDebug("redrawForNewSize() - skipping immediate for widget of fixed size","drawing");return}
var _2=!!this.$179q;if(_2){this.logInfo("redrawForNewSize() called recursively","drawing")}
this.$179q=true;this.redraw(_1);if(!_2)delete this.$179q},isc.A.$ra=function isc_Canvas__updateHTML(){var _1=this.logIsDebugEnabled(this.$n3),_2=this.logIsInfoEnabled(this.$n3),_3;if(_1)_3=isc.timeStamp();if(_2)this.logInfo("$ra(): redrawing","drawing");if(this.peers!=null&&this.peers.getLength()>0)this.redrawPredrawnPeers();var _4=this.children&&this.children.length>0,_5=this.allowContentAndChildren&&_4;if(_4&&!_5&&this.shouldRedrawOnResize()){_5=true}
if((!_4||_5)&&(this.getVisibleWidth()>this.getWidth()||this.getVisibleHeight()>this.getHeight()))
{if(this.notifyAncestorsOnReflow&&this.parentElement!=null){this.notifyAncestorsAboutToReflow()}
this.$q5(null,null,this.width,this.$o8)}
if(_4){if(_5)this.$p9();this.redrawChildren()}else{this.$rd()}
if(this.$qe&&!_4){delete this.$re;this.enforceScrollSize(this.$qe[0],this.$qe[1])}
this.modifyContent();this.setUpEvents();this.$q7=false;this.adjustOverflow(this.$n0,null,true);this.redrawPeers();if(_1){this.logDebug("Redraw() - Total time to redraw in DOM:"+(isc.timeStamp()-_3),"drawing")}
if(this.notifyAncestorsOnReflow&&this.parentElement!=null){this.notifyAncestorsReflowComplete()}
return this},isc.A.notifyAncestorsAboutToReflow=function isc_Canvas_notifyAncestorsAboutToReflow(){if(this.parentElement)this.parentElement.$86k(this)},isc.A.notifyAncestorsReflowComplete=function isc_Canvas_notifyAncestorsReflowComplete(){if(this.parentElement)this.parentElement.$86l(this)},isc.A.$86k=function isc_Canvas__childAboutToReflow(_1){if(this.overflow!=isc.Canvas.VISIBLE){this.$86m=this.getScrollTop();this.$86n=this.getScrollLeft();this.$417=true}else{if(this.parentElement)this.parentElement.$86k(_1)}},isc.A.$86l=function isc_Canvas__childReflowComplete(_1){if(this.overflow!=isc.Canvas.VISIBLE&&this.$417){delete this.$417;var _2=false,_3,_4;if(this.$86m!=null&&this.$86m!=this.getScrollTop()){_2=true;_4=this.$86m;delete this.$86m}
if(this.$86n!=null&&this.$86n!=this.getScrollLeft()){_2=true;_3=this.$86n;delete this.$86n}
if(_2){this.scrollTo(_3,_4,"Reset scroll position for child content reflow")}}else{if(this.parentElement)this.parentElement.$86l(_1)}},isc.A.$p9=function isc_Canvas__updateParentHTML(){var _1=this.isPrinting;this.isPrinting=false;var _2=this.$px();this.isPrinting=_1;var _3=this.getHandle();while(_3.hasChildNodes()){var _4=_3.firstChild.getAttribute?_3.firstChild.getAttribute(this.$of):null;if(_4&&isc.isA.Canvas(window[_4]))break;_3.removeChild(_3.firstChild)}
isc.Element.insertAdjacentHTML(_3,this.$n7,_2)},isc.A.$rd=function isc_Canvas__updateInnerHTML(){var _1=this.isPrinting;this.isPrinting=false;var _2=this.$px();this.isPrinting=_1;this.getHandle().innerHTML=_2},isc.A.modifyContent=function isc_Canvas_modifyContent(){},isc.A.redrawChildren=function isc_Canvas_redrawChildren(){if(!this.children)return true;this.logInfo("redrawChildren(): "+this.children.length+" children","drawing");for(var _1=this.children,i=0;i<_1.length;i++){var _3=_1[i];if(!isc.isA.Canvas(_3))continue;if(_3._redrawWithParent){if(this.$179q){_3.redrawForNewSize(false)}else{_3.redraw(false)}}}},isc.A.redrawPredrawnPeers=function isc_Canvas_redrawPredrawnPeers(){if(!this.peers||this.peers.getLength<1)return;for(var _1=this.peers,i=0;i<_1.length;i++){if(_1[i]&&_1[i].$jp&&_1[i].$q0){_1[i].redraw("redrawPeers")}}},isc.A.redrawPeers=function isc_Canvas_redrawPeers(){if(!this.peers)return true;this.logInfo("redrawPeers(): "+this.peers.length+" peers","drawing");for(var _1=this.peers,i=0;i<_1.length;i++){if(_1[i]&&_1[i].$jp&&!_1[i].$q0){_1[i].redraw("redrawPeers")}}},isc.A.updateFromServer=function isc_Canvas_updateFromServer(_1){_1=isc.clone(_1);isc.addProperties(_1,{useXmlHttpRequest:true,evalResult:true,suppressAutoDraw:true});if(!_1.evalVars)_1.evalVars={};if(!_1.evalVars.targetComponent)_1.evalVars.targetComponent=this;isc.rpc.sendRequest(_1)},isc.A.refreshFromServer=function isc_Canvas_refreshFromServer(_1,_2,_3,_4){this.$rf("refresh",_1,_2,_3,_4)},isc.A.replaceFromServer=function isc_Canvas_replaceFromServer(_1,_2,_3,_4){this.$rf("replace",_1,_2,_3,_4)},isc.A.$rf=function isc_Canvas__refreshOrReplaceFromURL(_1,_2,_3,_4,_5){if(this.$rg){this.logWarn("Attempt to "+_1+" while "+this.$rh+" is in progress - ignoring.");return}
this.$rg=true;this.$rh=_1;this.$ri=_5;this.logDebug("Submitting to "+_1+" URL: "+_2+", with data: "+this.echo(_3));isc.Comm.sendFieldsToServer({URL:_2,fields:_3,prompt:_4,callback:this.getID()+".$rj(frame)",resultVarName:this.refreshVariable})},isc.A.$rj=function isc_Canvas__refreshReply(_1){this.$rg=false;var _2=this.$rh;var _3=_1[this.refreshVariable];if(!isc.isAn.Object(_3)){this.logError("Expected object literal for "+_2+", but got: "+isc.Log.echo(_3));return}
_3=isc.clone(_3);var _4=this;if(_2=="refresh")this.setProperties(_3);else{if(!_3._constructor)_3._constructor=this.getClassName();_4=this.replaceWith(_3)}
isc.clearPrompt();if(this.$ri){if(!isc.isA.Function(this.$ri)){this.$ri=isc.Func.expressionToFunction("canvas",this.$ri)}
if(!isc.isA.Function(this.$ri)){this.logError("Can't convert "+_2+" callback '"+this.$ri+" to a function - not firing callback!");return}
this.$ri(_4)}},isc.A.clear=function isc_Canvas_clear(_1){this.$66p=true;if(!_1&&this.logIsInfoEnabled("clears")){var _2="clear()"+(this.children&&this.children.length>0?" ("+this.getChildCount()+" children) ":"")+(this.logIsDebugEnabled("clears")?this.getStackTrace():"");this.logInfo(_2,"clears")}
this.$rk();if(this._eventMask)this.ns.EH.unregisterMaskableItem(this);if(this._useFocusProxy)this.$qp();if(this.children){for(var _3=this.children,i=0;i<_3.length;i++){var _5=_3[i];if(!isc.isA.Canvas(_5))continue;_5.$74w=true;_5.clear(true);_5.$74w=null}}
if(this.isGroup){if(this.shouldShowGroupLabel())this.$55v()}
if(this.getHandle()){this.clearHandle();if(this.$145l()){var _6=this.parentElement;while(_6!=null){_6.$1440();_6=_6.parentElement}}}
if(this.parentElement)this.parentElement.childCleared(this);if(this.masterElement)this.masterElement.peerCleared(this);delete this.$re;delete this.$qt;if(this.deferredDrawEvent){isc.Page.clearEvent(this.deferredDrawEvent);delete this.deferredDrawEvent}
if(this.peers){for(var _3=this.peers,i=0;i<_3.length;i++){if(this.$74w)_3[i].$74w=true;_3[i].clear(true);_3[i].$74w=null}}
if(this.canAcceptDrop)this.ns.EH.unregisterDroppableItem(this);this.setDrawnState(isc.Canvas.UNDRAWN);delete this.$66p},isc.A.destroy=function isc_Canvas_destroy(_1,_2,_3,_4,_5){if(this.selectionComponent){this.ignore(this.selectionComponent,"selectionChanged");this.ignore(this.selectionComponent,"cellSelectionChanged")}
if(this.doNotDestroy){this.clear();return}
if(this.destroyed)return;this.destroying=true;this.prepareForDestroy(_1,_2,_3,_4,_5);this.destroyed=true;this.invokeSuper(isc.Canvas,"destroy",_1,_2,_3,_4,_5)},isc.A.prepareForDestroy=function isc_Canvas_prepareForDestroy(_1,_2,_3,_4,_5){this.$1632();if(this.$112p&&this.$112p.$112o){for(i in this.$112p.$112o){if(this.$112p.$112o[i]==this){delete this.$112p.$112o[i]}}}
if(this.$rm)isc.Timer.clearTimeout(this.$rn);this.hideClickMask();this.$75s(true,_1);if(isc.Hover.lastHoverCanvas==this)isc.Hover.hide();this.clear(true);if(this.masterElement){this.depeer()}else if(this.parentElement){this.deparent()}
if(this.children){for(var _6=this.children.duplicate(),i=0;i<_6.length;i++){var _8=_6[i];if(!isc.isA.Canvas(_8))continue;if(_8.destroyWithParent===false)_8.deparent();else _8.destroy(true)}}
if(this.peers){for(var _6=this.peers.duplicate(),i=0;i<_6.length;i++){if(_6[i].destroyWithMaster===false)_6[i].depeer();else _6[i].destroy(true)}}
delete this.peers;delete this.children;if(this.hscrollbar&&!this.hscrollbar.destroyed){this.hscrollbar.destroy(true);delete this.hscrollbar}
if(this.vscrollbar&&!this.vscrollbar.destroyed){this.vscrollbar.destroy(true);delete this.vscrollbar}
var _9=this.$542;if(_9!=null){for(var _10 in _9){var _11=_9[_10];for(var i=0,_12=_11.length;i<_12;++i){var _13=_11[i],_8=(_13?window[_13]:null)||this[_10];if(_8&&!_8.destroyed&&_8.destroy&&!_8.dontAutoDestroy){_8.destroy()}}
delete this[_10]}}
if(this.eventProxy!=null)this.clearEventProxy();if(this.$kt!=null){for(var _6=this.$kt.duplicate(),i=0;i<_6.length;i++){_6[i].clearEventProxy()}}
if(this.locatorParent&&this.locatorParent.locatorChildDestroyed){this.locatorParent.locatorChildDestroyed(this)}
delete this.locatorParent;this._canvasList();isc.Canvas.$ro(this);this.$180i();isc.EH.canvasDestroyed(this);isc.ClassFactory.dereferenceGlobalID(this);if(this.pointersToThis!=null){for(var i=0;i<this.pointersToThis.length;i++){var _14=this.pointersToThis[i];if(_14.object&&(_14.object[_14.property]==this)){var _15;_14.object[_14.property]=_15}}
delete this.pointersToThis}
this.$151k();if(this.$rr){for(var _16 in this){delete this[_16]}}
this.$63x();this.$1633()},isc.A.markForDestroy=function isc_Canvas_markForDestroy(){if(isc.$cv)arguments.$cw=this;if(this.destroyed||this.destroying||this.isPendingDestroy())return;this.$65i=true;this.$75s(false,false);isc.Canvas.scheduleDestroy(this)},isc.A.isPendingDestroy=function isc_Canvas_isPendingDestroy(){return!this.destroyed&&!this.destroying&&(this.$65i==true)},isc.A.$75s=function isc_Canvas__logDestroy(_1,_2){if(this.$ih)return;if(_1)this.$p6("destroys");if(!_2&&this.logIsInfoEnabled("destroys")){this.logInfo((_1?"destroy()":"markForDestroy()")+(this.children&&this.children.length>0?" ("+this.getChildCount()+" children) ":"")+(this.logIsDebugEnabled("destroys")?this.getStackTrace():""),"destroys")}},isc.A.clearHandle=function isc_Canvas_clearHandle(_1){var _2;if(!this.getHandle())return;this.$p6("clears");this.getHandle().eventProxy=null;this.getClipHandle().eventProxy=null;var _3=this.getClipHandle();this.$q3=null;this.$rs=null;this._clipDiv=null;isc.Element.clear(_3,_1||this._clearWithRemoveChild);if(isc.Browser.$1395&&this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null}
delete this.$62u;delete this.$vh;this.$808=this.$809=null;delete this.$113l;_3.onscroll=null;if(this.$772!=null){this.cancelAnimation(this.$772);this.$772=null}},isc.A.replaceWith=function isc_Canvas_replaceWith(_1){if(!isc.isAn.Object(_1))return;var _2;if(isc.Browser.isDOM){var _3=isc.ClassFactory.getNextGlobalID();isc.Element.insertAdjacentHTML(this.getClipHandle(),"afterEnd","<DIV ID="+_3+"></DIV>");var _2=this.getDocument().getElementById(_3);_1.drawContext={element:_2}}
var _4=this.parentElement,_5=this.masterElement,_6=(isc.isA.Layout(_4)&&_4.hasMember(this)),_7=(_6?_4.getMemberNumber(this):0);this.destroy();if(isc.isA.Canvas(_1)){_1.clear()}else{_1.autoDraw=false;_1=isc.ClassFactory.newInstance(_1);if(_1==null){this.logWarn("canvas.replaceWith(): Unable to create a widget instance from the argument passed in.  Returning.")
return}}
if(_6){_4.addMember(_1,_7)}else if(_4){_4.addChild(_1)}else if(_5){_5.addPeer(_1)}
if(!_1.isDrawn())_1.draw();if(isc.Browser.isDOM){if(_2.parentNode){_2.parentNode.removeChild(_2)}else{this.logWarn("unable to clear marker")}}
return _1},isc.A.setDrawContext=function isc_Canvas_setDrawContext(_1){var _2=this.isDrawn();this.deparent();if(_2)this.clear();this.drawContext=_1;if(_2)this.draw()},isc.A.$qs=function isc_Canvas__getDOMID(_1,_2,_3){if(_2){var _4=isc.ClassFactory.getDOMID(this.getID(),_1);if(this.reuseDOMIDs){if(!this.$63y)this.$63y=[];this.$63y[this.$63y.length]=_4}
return _4}
if(!this.$rt)this.$rt={};if(!this.$rt[_1])
this.$rt[_1]=isc.ClassFactory.getDOMID(this.getID(),_1);return this.$rt[_1]},isc.A.$557=function isc_Canvas__getDOMPartName(_1){if(!this.$rt)return null;for(var _2 in this.$rt){if(this.$rt[_2]==_1)return _2}},isc.A.$63x=function isc_Canvas__releaseDOMIDs(){if(!this.reuseDOMIDs)return;if(this.$63y){for(var i=0;i<this.$63y.length;i++){isc.ClassFactory.releaseDOMID(this.$63y[i])}}
if(this.$rt){for(var i in this.$rt){isc.ClassFactory.releaseDOMID(this.$rt[i])}}},isc.A.getCanvasName=function isc_Canvas_getCanvasName(){if(!this.$ru)this.$ru=this.$qs(this.$og,true);return this.$ru},isc.A.$rv=function isc_Canvas__getClipDivDOMID(){return this.$qs(this.$oh)},isc.A.getTransformCSS=function isc_Canvas_getTransformCSS(){if(this.rotation!=null)return";"+isc.Element.getRotationCSS(this.rotation,this.transformOrigin);return null},isc.A.$145m=function isc_Canvas__usingNativeDrag(){return isc.Browser.hasNativeDrag&&this.canDrag&&this.useNativeDrag},isc.A.$145k=function isc_Canvas__usingNativeTouchScrolling(){var _1=this.$rw();return this.useNativeTouchScrolling&&this.$1399&&(_1===isc.Canvas.SCROLL||_1===isc.Canvas.AUTO)},isc.A.getTagStart=function isc_Canvas_getTagStart(_1){var _2=isc.Canvas,_3=this.$rw();if(this.zIndex==_2.AUTO)this.zIndex=_2.getNextZIndex();var _4=(this.eventProxy?this.eventProxy.ID:this.ID);var _5=this.$1316();var _6=this.$rx(_5),_7=_6[0],_8=_6[1],_9=this.left,_10=this.top;if(this.showCustomScrollbars&&this.vscrollOn&&this.isRTL()){_9+=this.getScrollbarSize()}
var _11=this.$143f();_10+=_11;if(!_2.$ry){_2.$ry=" onfocus=";_2.$rz=" onblur=";_2.$r0=" tabindex="
_2.$r1=" accessKey="}
var _12=isc.Browser.isMoz;var _13=this.opacity;if(!isc.Browser.isIE||isc.Browser.isIE9){if(_13!=null)_13=_13/100}
if(isc.Browser.isMoz){if(this.smoothFade&&(_13==1||_13==null))_13=0.9999}
var _14=this.$145m(),_15=this.$145k();if(_5){var _16=this.getCurrentCursor(),_17,_18,_19=this._useNativeTabIndex;var _20=this.$95e()||"",_21=this.$95f()||"";if(this.clipHandleIsFocusHandle==false)_19=false;if(_19&&this.$kk()){_17=isc.SB.concat(_2.$ry,this.$qn(),_2.$rz,this.$qo(),!this.isDisabled()?_2.$r0+this.getTabIndex():null,(!this.$qc()&&this.accessKey!=null)?_2.$r1+this.accessKey:null);if(isc.Browser.isMoz){_18=isc.StringBuffer.concat((this.mozOutlineOffset!=null?";-moz-outline-offset:"+this.mozOutlineOffset:null),(this.mozOutlineColor!=null?";-moz-outline-color:"+this.mozOutlineColor:null),(!this.showFocusOutline?this.$129l:null))}else if(!this.showFocusOutline){_18=this.$129l}}
var _22=this.topPadding,_23=this.bottomPadding,_24=this.leftPadding,_25=this.rightPadding;if(this.$1000()){_22=this.getTopPadding();_23=this.getBottomPadding();_24=this.getLeftPadding();_25=this.getRightPadding()}
var _26=isc.StringBuffer.concat(this.$131k,this.$rv(),"' eventProxy=",_4,(this.ariaRole?" role='"+this.ariaRole+"'":""),(this.ariaState&&this.getAriaStateAttributes?this.getAriaStateAttributes():""),(this.className?" class='"+this.className+"'":""),_17," style='","POSITION:",this.position,";LEFT:",_9,"px;TOP:",_10,"px;WIDTH:",_7,"px;HEIGHT:",_8,"px;Z-INDEX:",this.zIndex,(this.visibility==_2.INHERIT?"":";VISIBILITY:"+this.visibility),(this.backgroundColor==null?"":";BACKGROUND-COLOR:"+this.backgroundColor),(this.backgroundImage==null?"":";BACKGROUND-IMAGE:url("+this.getImgURL(this.backgroundImage)+");BACKGROUND-REPEAT:"+this.backgroundRepeat+(this.backgroundPosition?";BACKGROUND-POSITION:"+this.backgroundPosition:"")),(this.textColor==null?"":";COLOR:"+this.textColor),_20,_21,(this.$1000()?";PADDING:0px":""),this.$r2(),(_13!=null?(this.$65q?";-moz-opacity:":";opacity:")+_13:""),(!this.isBorderBox?null:";"+isc.Element.$1434+":border-box"),_18,this.getTransformCSS(),(isc.Browser.isTouch?(!this.canSelectText?";-webkit-user-select:none":";-webkit-user-select:text"):null),(isc.Browser.isTouch?";-webkit-tap-highlight-color:rgba(0,0,0,0)":null),(_14&&isc.Browser.isSafari?";-khtml-user-drag:element":null),(isc.Browser.$120b?(this.cssPointerEvents!=null?";pointer-events:"+this.cssPointerEvents:(this.parentElement!=null&&this.parentElement.cssPointerEvents!=null?";pointer-events:auto":null)):null),this.styleText?";"+this.styleText:"",";OVERFLOW:",_3,this.$1781(true),(isc.Browser.$1395?(_15?";-webkit-overflow-scrolling:touch":";-webkit-overflow-scrolling:auto"):null),";' ONSCROLL='return "+_4+".$lh()'",(_14?" draggable='true'":null),(_11!=0?" data-isc-page-space='"+_11+"'":null),(this.overflowStyle!=null?" data-isc-overflow-style='"+this.overflowStyle+"'":null),">","<div id='",this.getCanvasName(),"' eventProxy='",_4,(this.textDirection!=null?"' dir='"+this.textDirection:""),"' style='POSITION:relative;",(!(this.padding>0||(this.topPadding>0&&this.bottomPadding>0))?(isc.Browser.isSafari?"-webkit-margin-collapse:separate separate;":(!(isc.Browser.isOpera&&isc.Browser.version<10)?"display:inline-block;"+isc.Element.$1434+":border-box;width:100%;vertical-align:top;":"")):""),"VISIBILITY:inherit;Z-INDEX:",this.zIndex,(_16==_2.AUTO?"":";CURSOR:"+_16),(this.padding!=null?";PADDING:"+this.padding+"px":""),(_22!=null?";padding-top:"+_22+"px":""),(_23!=null?";padding-bottom:"+_23+"px":""),(_24!=null?";padding-left:"+_24+"px":""),(_25!=null?";padding-right:"+_25+"px":""),";'>")}else{var _27=68;if(!_2.$r4){_2.$r5=" style='POSITION:absolute;LEFT:";_2.$r6=" style='POSITION:relative;LEFT:";_2.$bd=" class='";_2.$416="'";_2.$143g=" data-isc-page-space='";_2.$r7=";VISIBILITY:";_2.$r8=";CURSOR:";var _28=_2.$r4=[];_28[2]="' eventProxy=";_28[15]="px;TOP:";_28[22]="px;WIDTH:";_28[28]="px;HEIGHT:";_28[34]="px;Z-INDEX:";_28[44]=(this.styleText?";"+this.styleText:"")+";OVERFLOW:";_28[_27]="' ONSCROLL='return ";_28[_27+2]=".$lh()' "}
var _28=_2.$r4;_28[0]=(_14&&isc.Browser.isIE&&!isc.Browser.isIE10?this.$131l:this.$131k);_28[1]=this.getCanvasName();_28[3]=_4;if(this.className!=null){_28[4]=_2.$bd;_28[5]=this.className;_28[6]=_2.$416}else{_28[4]=_28[5]=_28[6]=null}
_28[7]=(this.textDirection!=null?" dir="+this.textDirection:null);_28[8]=(this.position==_2.RELATIVE?_2.$r6:_2.$r5);isc.$bk(_28,_9,9,6);isc.$bk(_28,_10,16,6);isc.$bk(_28,_7,23,5);isc.$bk(_28,_8,29,5);if(this.zIndex!=_2.AUTO)isc.$bk(_28,this.zIndex,35,9);else{_28[35]=this.zIndex;_28[36]=_28[37]=_28[38]=_28[39]=_28[40]=_28[41]=_28[42]=_28[43]=null}
_28[45]=_3;if(this.visibility!=_2.INHERIT){_28[46]=_2.$r7;_28[47]=this.visibility}else{_28[46]=_28[47]=null}
_28[48]=(this.backgroundColor==null?null:";BACKGROUND-COLOR:"+this.backgroundColor);_28[49]=(this.backgroundImage==null?null:";BACKGROUND-IMAGE:url("+this.getImgURL(this.backgroundImage)+");BACKGROUND-REPEAT:"+this.backgroundRepeat+(this.backgroundPosition?";BACKGROUND-POSITION:"+this.backgroundPosition:""));if(!this.isBorderBox){_28[50]=null}else{_28[50]=";"+isc.Element.$1434+":border-box"}
var _16=this.getCurrentCursor();if(_16==_2.AUTO){_28[51]=_28[52]=null}else{_28[51]=_2.$r8;_28[52]=_16}
_28[53]=this.$r2();_28[54]=(this.padding!=null?";PADDING:"+this.padding+isc.px:null);if(this.topPadding!=null)
_28[54]=(_28[54]||"")+";padding-top:"+this.topPadding+"px";if(this.bottomPadding!=null)
_28[54]=(_28[54]||"")+";padding-bottom:"+this.bottomPadding+"px";if(this.leftPadding!=null)
_28[54]=(_28[54]||"")+";padding-left:"+this.leftPadding+"px";if(this.rightPadding!=null)
_28[54]=(_28[54]||"")+";padding-right:"+this.rightPadding+"px";var _20=this.$95e()||"",_21=this.$95f()||"";_28[55]=_20+_21;if(isc.Browser.isIE&&!isc.Browser.isIE9){if(!isc.Browser.useCSSFilters&&isc.Img&&isc.isA.Img(this)){_28[56]=";filter:none;";_28[57]=null}else{if(!isc.Canvas.neverUseFilters||this.useOpacityFilter){_28[56]=(_13==null?null:";filter:progid:DXImageTransform.Microsoft.Alpha(opacity="+_13+")")}else{_28[56]=null}
if(!isc.Canvas.neverUseFilters){if(this.$r9){_28[57]=";filter:progid:DXImageTransform.Microsoft.iris(irisStyle=circle)"}else{_28[57]=null}}else{_28[57]=null}}}else{if(_13!=null){_28[56]=(this.$65q?";-moz-opacity:":";opacity:")+_13}else{_28[56]=null}}
_28[58]=this.getTransformCSS();if(isc.Browser.isWebKit){_28[59]=";-webkit-margin-collapse:collapse collapse"}else if(isc.Browser.$113k){_28[59]=";display:inline-block"}else{_28[59]=null}
if(isc.Browser.isTouch){_28[60]=!this.canSelectText?";-webkit-user-select:none":";-webkit-user-select:text";_28[61]=";-webkit-tap-highlight-color:rgba(0,0,0,0)"}else{_28[60]=null;_28[61]=null}
if(_14&&isc.Browser.isSafari){_28[62]=";-khtml-user-drag:element"}else{_28[62]=null}
if(!this.showFocusOutline){_28[63]=this.$129l}else{_28[63]=null}
if(_14&&isc.Browser.isIE&&!isc.Browser.isIE10){_28[64]=";display:block;text-decoration:none"}else{_28[64]=null}
if(isc.Browser.$1395){if(_15){_28[65]=";-webkit-overflow-scrolling:touch"}else{_28[65]=";-webkit-overflow-scrolling:auto"}}else{_28[65]=null}
if(isc.Browser.$120b){var _29,_30;if((_29=this.cssPointerEvents)!=null){_28[66]=";pointer-events:"+_29}else if((_30=this.parentElement)!=null&&(_29=_30.cssPointerEvents)!=null)
{_28[66]=";pointer-events:auto"}else{_28[66]=null}}else{_28[66]=null}
_28[67]=this.$1781(true);_28[_27+1]=_4;var _31=_27+5;if(this.$kk()&&this._useNativeTabIndex&&this.clipHandleIsFocusHandle){_28[_31]=_2.$ry;_28[_31+1]=this.$qn();_28[_31+2]=_2.$rz;_28[_31+3]=this.$qo();if(!this.isDisabled()){_28[_31+4]=_2.$r0;isc.$bk(_28,this.getTabIndex(),_31+5,5,true);if(this.accessKey!=null){_28[_31+10]=_2.$r1;_28[_31+11]=this.accessKey;_31+=12}else _31+=10;if(isc.Browser.isIE&&!this.showFocusOutline){if(!_2.$sa)_2.$sa=" hideFocus=true";_28[_31++]=_2.$sa}}else _31+=4}
if(_14){_28[_31++]=" draggable='true'"}
if((this.ariaRole||this.ariaState)&&isc.Canvas.ariaEnabled()&&!isc.Canvas.useLiteAria())
{if(this.ariaRole){_28[_31++]=" role='";_28[_31++]=this.ariaRole;_28[_31++]="' "}
if(this.ariaState&&this.getAriaStateAttributes){_28[_31++]=this.getAriaStateAttributes()}}
if(_11!=0){_28[_31++]=_2.$143g;_28[_31++]=_11;_28[_31++]=this.$ob}
if(this.overflowStyle!=null){_28[_31++]=" data-isc-overflow-style='";_28[_31++]=this.overflowStyle;_28[_31++]=this.$ob}
_28.length=_31;_28[_31]=this.$oa;if(_1)_26=_28;else _26=_28.join(isc.emptyString)}
this.$113l=_5;return _26});isc.evalBoundary;isc.B.push(isc.A.shouldUseCSSShadow=function isc_Canvas_shouldUseCSSShadow(){return this.useCSSShadow&&isc.Browser.useCSS3},isc.A.$1781=function isc_Canvas__getShadowCSSText(_1){if(!this.showShadow||!this.shouldUseCSSShadow())return null;var _2=this.shadowVOffset!=null?this.shadowVOffset:this.shadowOffset,_3=this.shadowHOffset!=null?this.shadowHOffset:this.shadowOffset,_4=this.shadowSoftness;if(_2==null)_2=Math.ceil(this.shadowDepth/2);if(_3==null)_3=Math.ceil(this.shadowDepth/2);if(_4==null)_4=this.shadowDepth;var _5=this.shadowColor;var _6=this.shadowSpread;var _7=this.showShadowInset?" inset":"";var _8=(_1?";box-shadow:":"");return[_8,_3,"px ",_2,"px ",_4,"px ",(_6?_6+"px ":""),_5,_7].join("")},isc.A.$r2=function isc_Canvas__getMarginHTML(){if(!this.$sb()&&this.$sc==null){if(this.margin==null)return null;return isc.SB.concat(isc.semi,this.$om,this.margin,isc.px)}
var _1=this.$sd(),_2=isc.SB.concat(isc.semi,this.$oi,_1.left,isc.px,isc.semi,this.$oj,_1.right,isc.px,isc.semi,this.$ok,_1.top,isc.px,isc.semi,this.$ol,_1.bottom,isc.px);return _2},isc.A.$95e=function isc_Canvas__getBorderHTML(){return this.border?";BORDER:"+this.border:null},isc.A.$95f=function isc_Canvas__getBorderRadiusHTML(){return this.borderRadius?";BORDER-RADIUS:"+this.borderRadius:null},isc.A.getTagEnd=function isc_Canvas_getTagEnd(){if(this.$113l)return this.$oo;return(this.$145m()&&isc.Browser.isIE&&!isc.Browser.isIE10?this.$131m:this.$on)},isc.A.$rw=function isc_Canvas__getHandleOverflow(){if(this.containsIFrame()){return this.$nz}
var _1=this.overflow;var _2=(this.overflow===isc.Canvas.SCROLL||this.overflow===isc.Canvas.AUTO),_3=_2&&this.showCustomScrollbars,_4=_2&&!this.showCustomScrollbars;if(this.overflow==isc.Canvas.HIDDEN||_3){if(this.alwaysShowScrollbars&&this.useNativeTouchScrolling&&this.$1399)
{}else if(this.$ks){_1=this.$se?this.$nz:"-moz-scrollbars-none"}else{_1=this.$nz}}else if(isc.Browser.isIE&&this.overflow==isc.Canvas.VISIBLE){if(this.forceHandleOverflowHidden)_1=this.$nz}else if(isc.Browser.isMoz){if(!_4&&!this.$ks){var _5=this.$187j||this.overflow==isc.Canvas.VISIBLE;if(_5){_1=this.$se?this.$nz:"-moz-scrollbars-none"}}}
if(this.$113l&&(this.overflow==isc.Canvas.CLIP_H||this.overflow==isc.Canvas.CLIP_V))
{_1=this.$nz}
return _1},isc.A.$rx=function isc_Canvas__getInitialHandleSize(_1){var _2=this.getInitialWidth(),_3=this.getInitialHeight();return this.$sf(_2,_3,_1)},isc.A.getInitialWidth=function isc_Canvas_getInitialWidth(){return this.getWidth()},isc.A.getInitialHeight=function isc_Canvas_getInitialHeight(){return this.getHeight()},isc.A.$sf=function isc_Canvas__adjustHandleSize(_1,_2,_3){var _4=this.$sd();if(_3==null)_3=this.$113l;if(_1!=null){if(this.showCustomScrollbars&&this.vscrollOn){_1-=this.getScrollbarSize()}
_1-=(_4.left+_4.right);if(this.isBorderBox){}else if(_3){if(!this.$1000(false,true)){_1-=this.getHBorderPad()}else{_1-=this.getHBorderSize()}}else{_1-=this.getHBorderPad()}}
if(_2!=null){if(this.showCustomScrollbars&&this.hscrollOn){_2-=this.getScrollbarSize()}
_2-=(_4.top+_4.bottom);if(this.isBorderBox){}else if(_3){if(!this.$1000(true,false)){_2-=this.getVBorderPad()}else{_2-=this.getVBorderSize()}}else{_2-=this.getVBorderPad()}}
if(_1!=null&&_1<1){this.logInfo("Specified width:"+this.getInitialWidth()+" adjusted for border, margin, and scrollbars would cause initial handle size to be less than or equal to zero, which is not supported. Clamping handle width to 1px.","sizing");_1=1}
if(_2!=null&&_2<1){this.logInfo("Specified height:"+this.getInitialHeight()+" adjusted for border, margin, and scrollbars would cause initial handle size to be less than or equal to zero, which is not supported. Clamping handle height to 1px.","sizing");_2=1}
var _5=this.$op;_5[0]=_1;_5[1]=_2;return _5},isc.A.$1000=function isc_Canvas__willSuppressOuterDivPadding(_1,_2){return(this.padding!=null||this.$415||(_1!=false?(this.topPadding!=null||this.bottomPadding!=null):false)||(_2!=false?(this.leftPadding!=null||this.rightPadding!=null):false))},isc.A.$qn=function isc_Canvas__getNativeFocusHandlerString(_1){var _2=this.getID();var _3=_1?null:this.$ob;if(isc.Browser.isMoz)
return isc.SB.concat(_3,this.$or,_2,this.$ot,_3);return isc.SB.concat(_3,this.$oq,this.getID(),this.$ot,_3)},isc.A.$qo=function isc_Canvas__getNativeBlurHandlerString(_1){var _2=_1?null:this.$ob;return isc.SB.concat(_2,this.$os,this.getID(),this.$ot,_2)},isc.A.$sg=function isc_Canvas__getNativeFocusHandlerMethod(){if(!this.$sh){this.$sh=isc.$aq("event",this.$qn(true))}
return this.$sh},isc.A.$si=function isc_Canvas__getNativeBlurHandlerMethod(){if(!this.$sj){this.$sj=isc.$aq("event",this.$qo(true))}
return this.$sj},isc.A.$16aj=function isc_Canvas__getAriaHandleID(){var _1=this.isDrawn();if((_1&&this.$113l)||(!_1&&this.$1316()))
{return this.$rv()}else{return this.getCanvasName()}},isc.A.getHandle=function isc_Canvas_getHandle(){if(isc.$cv)arguments.$cw=this;if(this.destroyed){this.logWarn("Attempt to access destroyed widget in the DOM - destroy() called at invalid time (eg: mid-draw) or invalid method called on destroy()d widget. Stack Trace:"+this.getStackTrace())}
if(!(this.$pu||this.$if))return null;if(this.$q3==null){var _1=this.getCanvasName();this.$q3=this.ns.Element.get(_1);if(this.$q3==null){this.logWarn("Unable to find handle for drawn Canvas, elementId: "+_1)}}
return this.$q3},isc.A.getClipHandle=function isc_Canvas_getClipHandle(){if(!this.$113l)return this.getHandle();if(!(this.$pu||this.$if))return null;if(this._clipDiv==null){var _1=this.$rv();this._clipDiv=this.ns.Element.get(_1);if(this._clipDiv==null){this.logWarn("Unable to find clipHandle for drawn Canvas, elementId: "+_1)}}
return this._clipDiv},isc.A.getOuterElement=function isc_Canvas_getOuterElement(){return this.getClipHandle()},isc.A.getContentElement=function isc_Canvas_getContentElement(){return this.getHandle()},isc.A.getScrollHandle=function isc_Canvas_getScrollHandle(){return this.getClipHandle()},isc.A.$sk=function isc_Canvas__getURLHandle(){if(!this.containsIFrame())return null;return this.getDocument().getElementById(this.$163t())},isc.A.$sl=function isc_Canvas__getFocusProxyHandle(){if(!this._useFocusProxy||!this.$qj)return null;if(!this.$qr){var _1=this.getCanvasName()+"__focusProxy";this.$qr=this.getDocument().getElementById(_1)}
return this.$qr},isc.A.$qq=function isc_Canvas__getFocusProxyParentHandle(){if(!this._useFocusProxy)return null;if(!this.$qr)this.$qr=this.$sl();return(this.$qr!=null?this.$qr.parentNode:null)},isc.A.getStyleHandle=function isc_Canvas_getStyleHandle(){if(!this.$rs){var _1=this.getClipHandle();this.$rs=(_1!=null?_1.style:null)}
return this.$rs},isc.A.setUpEvents=function isc_Canvas_setUpEvents(){if(this.canAcceptDrop)this.ns.EH.registerDroppableItem(this)},isc.A.$pt=function isc_Canvas__instantiateChildren(_1){if(!_1)_1=this.children;if(!_1)return;this.children=[];for(var i=0,_3;i<_1.length;i++){_3=_1[i];if(!_3)continue;if(!isc.isA.Canvas(_3)||_3.parentElement!=this){this.addChild(_3)}else{this.children.add(_3)}}},isc.A.$sm=function isc_Canvas__lazyAutoChildCreate(_1){_1=_1.substring(this.$ou.length);var _2=this.$d1(_1),_3=this.$543(_1);var _4=this[_2]||this[_3]?this:isc.isA.Canvas(this.creator)&&(this.creator[_2]||this.creator[_3])?this.creator:this;if(isc.isA.Canvas(_4[_1]))return _4[_1];return(_4[_1]=_4.createAutoChild(_1))},isc.A.createCanvas=function isc_Canvas_createCanvas(_1){if(isc.isA.Canvas(_1))return _1;if(_1==null)return;if(isc.isA.String(_1)){if(isc.startsWith(_1,this.$ou)){return this.$sm(_1)}
if(isc.startsWith(_1,this.$90j)){var _2=_1.substring(this.$90j.length);var _3="width";if(this.orientation==isc.Layout.VERTICAL)_3="height";var _4={autoDraw:false};_4[_3]=_2;return isc.LayoutSpacer.create(_4)}
return window[_1]}
var _5=_1.autoChildName;if(_5){return this[_5]=this.createAutoChild(_5,_1)}
var _6=_1._constructor;if(_6==null||isc.ClassFactory.getClass(_6)==null){this.logWarn("Unable to create canvas of type '"+_6+"' - no such class in runtime. Will default to Canvas.");if(isc.isA.String(_6)&&_6.contains(".")){this.logWarn("Did you make the SmartGWT class reflectable? See http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/Reflection.html")}
_6=isc.Canvas}
_1._constructor=null;_1.autoDraw=false;return isc.ClassFactory.newInstance(_6,_1)},isc.A.createCanvii=function isc_Canvas_createCanvii(_1){if(_1==null)return;for(var i=0;i<_1.length;i++){_1[i]=this.createCanvas(_1[i])}
return _1},isc.A.setEventProxy=function isc_Canvas_setEventProxy(_1){var _2=this.eventProxy;if(_2==_1)return;if(_2!=null){_2.$kt.remove(this);if(this.isDrawn()){if(this.getHandle()!=null)this.getHandle().eventProxy=null;if(this.getClipHandle()!=this.getHandle())this.getClipHandle().eventProxy=null}}
this.eventProxy=_1;if(_1!=null){if(!isc.isA.Canvas(_1)){this.logWarn("setEventProxy() passed invalid eventProxy - clearing this property");this.eventProxy=null}else{if(_1.$kt==null)_1.$kt=[];_1.$kt.add(this)}}
if(this.isDrawn())this.redraw("eventProxy updated")},isc.A.clearEventProxy=function isc_Canvas_clearEventProxy(){this.setEventProxy()},isc.A.addChild=function isc_Canvas_addChild(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(!_1)return null;if(_1==this){this.logWarn("Attempt to add a child to itself");return}
if(!isc.isAn.Instance(_1))_1=this.createCanvas(_1);if(!isc.isA.Canvas(_1)){this.logWarn("addChild(): trying to install a non-canvas as a child.  Returning.");return null}
if(_1.parentElement===this)return _1;var _4=_1.isDrawn();if(_1.parentElement)_1.deparent(_2);if(_1.isDrawn())_1.clear();isc.Canvas.$ro(_1);if(_1.drawContext)_1.drawContext=null;if(_1.htmlElement)_1.htmlElement=null;_1.parentElement=this;_1.topElement=(this.topElement||this);_1.$sn();if(_2)this[_2]=_1;var _5=this.children;if(_5==null)_5=this.children=[_1];else{_5.add(_1)}
var _6=_1.masterElement;if(_6&&_6.parentElement!=this){_6.peers.remove(_1);if(_6[_2]==_1)_6[_2]=null;_1.masterElement=null}
if(this.isDrawn())this.updateChildTabPosition(_1);if(_1.peers){for(var i=0;i<_1.peers.length;i++)this.addChild(_1.peers[i])}
if(_4&&!this.warnAboutClear&&!isc.Page.isLoaded()){this.logWarn("Adding already drawn widget:"+_1.getID()+" to new parent:"+this.getID()+". Child has been cleared so it can be drawn inside the new parent. This may be a result of autoDraw being enabled for the child.")}
if(this.isDrawn())_1.$qw();var _8=this.ns.EH;if(_8.clickMaskUp()){var _9=_8.getAllClickMaskIDs();for(var i=_9.length-1;i>=0;i--){var _10=_8.targetIsMasked(this,_9[i]);if(!_10){_8.addUnmaskedTarget(_1,_9[i]);break}else{var _11=_8.targetIsMasked(_1,_9[i]);if(!_11)_8.maskTarget(_1,_9[i])}}}
if(_3==false||_1.$so){_1.$so=null;return _1}
if(this.isDrawn()&&!_1.masterElement){if(this.logIsDebugEnabled(this.$n3)){this.logInfo("child added to already drawn parent: "+(isc.Page.isLoaded()?"page loaded, will draw immediately":"page not loaded, will defer child drawing"),"drawing")}
_1.draw();this.adjustOverflow("addChild")}
if(this.componentMaskShowing&&this.componentMask){var _12=this.componentMask.getZIndex();if(_1.getZIndex()>_12){_1.moveBelow(this.componentMask)}
_1.disableKeyboardEvents(true,true,true)}
return _1},isc.A.$sn=function isc_Canvas__updateChildrenTopElement(){if(this.dataPath)this.setDataPath(this.dataPath);var _1=this.children;if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _3=_1[i];_3.topElement=this.topElement;_3.$sn()}},isc.A.reparent=function isc_Canvas_reparent(_1){if(this.getID()==_1.getID())return false;if((this.parentElement==_1.parentElement)&&this.getClipHandle()&&_1.getClipHandle()&&(this.getClipHandle().parentNode==_1.getClipHandle().parentNode)){return false}
this._adjacentHandle=_1.getClipHandle();if(_1.parentElement){_1.parentElement.addChild(this)}else{if(this.parentElement)this.deparent();else this.clear();this.draw()}
return true},isc.A.removePeer=function isc_Canvas_removePeer(_1,_2){if(_1==null)return;var _3=this.peers;if(_3==null){this.logWarn("Attempt to remove peer: "+_1+" from Canvas that does not have peers");return}
var _4=_3.indexOf(_1);if(_4<0){this.logWarn("Attempt to remove peer: "+_1+" from Canvas that is not its master");return}
if(this.parentElement){this.parentElement.removeChild(_1)}
_3.removeAt(_4);if(this[_2]==_1)this[_2]=null;_1.masterElement=null;if(_1.depeered)_1.depeered(this,_2);if(this.peerRemoved)this.peerRemoved(_1,_2)},isc.A.depeer=function isc_Canvas_depeer(_1){if(!this.masterElement)return;this.masterElement.removePeer(this,_1)},isc.A.deparent=function isc_Canvas_deparent(_1){if(!this.parentElement)return;this.parentElement.removeChild(this,_1)},isc.A.removeChild=function isc_Canvas_removeChild(_1,_2){if(isc.$cv)arguments.$cw=this;if(_1==null)return;var _3=this.children,_4;if(!_3||(_4=_3.indexOf(_1))==-1){this.logWarn("Attempt to remove child: "+_1+" from Canvas that is not its parent");return}
_3.removeAt(_4);if(this[_2]==_1)this[_2]=null;if(_1.isDrawn())_1.clear();delete _1.parentElement;delete _1.topElement;isc.Canvas.$q8(_1);_1.updateTabPositionForDeparent();if(_1.peers)_1.peers.callMethod("deparent");if(_1.deparented)_1.deparented(this,_2);if(this.childRemoved)this.childRemoved(_1,_2);if(this.selectedComponents&&this.selectedComponents.remove(_1))this.fireSelectedEditNodesUpdated()},isc.A.addPeer=function isc_Canvas_addPeer(_1,_2,_3,_4){if(!_1)return null;if(!isc.isAn.Instance(_1))_1=this.createCanvas(_1);if(_4==true)_1.$q0=true;if(_1.masterElement===this)return null;if(_1.masterElement)_1.depeer(_2);_1.masterElement=this;if(_2)this[_2]=_1;var _5=this.peers;if(_5==null)_5=this.peers=[_1];else{_5.add(_1)}
if(this.parentElement){this.parentElement.addChild(_1,_2)}else if(_1.parentElement){_1.deparent()}
if(_1.$nt&&(_1.opacity!=this.opacity))
_1.setOpacity(this.opacity);if(_1.$jq&&(_1.visibility!=this.visibility)){_1.setVisibility(this.visibility)}
if(_1.snapTo||_1.snapEdge)_1.$qw();var _6=this.ns.EH;if(_6.clickMaskUp()){var _7=_6.getAllClickMaskIDs();for(var i=_7.length-1;i>=0;i--){var _9=_6.targetIsMasked(this,_7[i]);if(!_9){_6.addUnmaskedTarget(_1,_7[i]);break}else{var _10=_6.targetIsMasked(_1,_7[i]);if(!_10)_6.maskTarget(_1,_7[i])}}}
if(_3==false)return _1;if(this.isDrawn()&&!_1.isDrawn()){_1.draw();if(_1.$q0)this.redraw()}
return _1},isc.A.setSnapTo=function isc_Canvas_setSnapTo(_1){this.snapTo=_1;this.$qw()},isc.A.getSnapTo=function isc_Canvas_getSnapTo(){return this.snapTo},isc.A.setSnapEdge=function isc_Canvas_setSnapEdge(_1){this.snapEdge=_1;this.$qw()},isc.A.getSnapEdge=function isc_Canvas_getSnapEdge(){return this.snapEdge},isc.A.getFieldMethod=function isc_Canvas_getFieldMethod(_1,_2,_3,_4){if(_3=="children"){if(_4=="add")return"addChild";if(_4=="remove")return"removeChild"}
return this.Super("getFieldMethod",arguments)},isc.A.getTopLevelCanvas=function isc_Canvas_getTopLevelCanvas(){var _1=this;while(_1.parentElement!=null){_1=_1.parentElement}
return _1},isc.A.getParentCanvas=function isc_Canvas_getParentCanvas(){return this.parentElement},isc.A.getMasterCanvas=function isc_Canvas_getMasterCanvas(){return this.masterElement},isc.A.getParentElements=function isc_Canvas_getParentElements(){var _1=[],_2=this.parentElement;while(_2){_1.add(_2);_2=_2.parentElement}
return _1},isc.A.contains=function isc_Canvas_contains(_1,_2){if(!_2&&_1&&_1.getParentCanvas)_1=_1.getParentCanvas();while(_1){if(_1==this)return true;if(!_1||!_1.getParentCanvas)break;_1=_1.getParentCanvas()}
return false},isc.A.$sr=function isc_Canvas__isVisibilityAncestorOf(_1){var _2=_1;while(_2){if(_2==this)return true;var _3=(_2.visibility==isc.Canvas.INHERIT);if(!_3)return false;_2=_2.parentElement}
return false},isc.A.getChildCount=function isc_Canvas_getChildCount(){if(this.children==null)return;return this.children.callMethod("getChildCount").sum()+this.children.length},isc.A.showClickMask=function isc_Canvas_showClickMask(_1,_2,_3){var _4=this.getID();if(!this.ns.EH.clickMaskUp(_4)){return this.ns.EH.showClickMask(_1,_2,_3,_4)}},isc.A.hideClickMask=function isc_Canvas_hideClickMask(_1){if(_1==null)_1=this.getID();if(this.ns.EH.clickMaskUp(_1))this.ns.EH.hideClickMask(_1)},isc.A.clickMaskUp=function isc_Canvas_clickMaskUp(_1){if(_1==null)_1=this.getID();return this.ns.EH.clickMaskUp(_1)},isc.A.unmask=function isc_Canvas_unmask(_1){this.ns.EH.addUnmaskedTarget(this,_1)},isc.A.mask=function isc_Canvas_mask(_1){this.ns.EH.maskTarget(this,_1)},isc.A.isMasked=function isc_Canvas_isMasked(_1){return this.ns.EH.targetIsMasked(this,_1)},isc.A.$qf=function isc_Canvas__isHardMasked(){var _1=isc.EH.clickMaskRegistry;if(!_1||_1.length==0)return false;for(var i=_1.length-1;i>=0;i--){var _3=_1[i];if(!this.isMasked(_3))return false;if(isc.EH.isHardMask(_3))return true}
return false},isc.A.showComponentMask=function isc_Canvas_showComponentMask(_1,_2){if(this.$177d){this.logWarn("Ignoring recursive call to 'showComponentMask'.","componentMask");return}
this.$177d=true;if(_1!=null&&!isc.isAn.Array(_1)){_1=[_1]}
this.logInfo("showComponentMask running with unmaskedChildren:"+_1,"componentMask");if(this.componentMaskShowing){if(_2!=null&&this.componentMask){this.componentMask.setProperties(_2)}
var _3=false;if(_1!=null){if(this.$168r==null){_3=true}else{if(this.$168r.length!=_1.length){_3=true}else{for(var i=0;i<_1.length;i++){if(!this.$168r.contains(_1[i])){_3=true}}}}}else if(this.$168r==null){_3=true}
this.logDebug("showComponentMask running with mask already up."+(_3?" No change to unmasked children - ignoring":" Unmasked children changed - hiding and re-showing mask"),"componentMask");if(!_3){delete this.$177d;return}
this.hideComponentMask(true,true)}
this.$168r=_1;this.componentMaskShowing=true;if(!this.componentMask){this.componentMask=this.addAutoChild("componentMask",isc.addProperties({},_2,{addAsChild:true,disabled:true,autoDraw:false,overflow:"hidden",_generated:true,width:1,height:1}))}else{if(_2!=null)this.componentMask.setProperties(_2);this.componentMask.resizeTo(1,1)}
if(this.isDrawn()&&!this.componentMask.isDrawn()){this.componentMask.draw()}
this.componentMask.bringToFront();this.$168s();this.$168q();delete this.$177d},isc.A.$168q=function isc_Canvas__updateChildrenForComponentMask(){var _1=this.$168r;var _2=isc.EH.getFocusCanvas();var _3=this.children;var _4=this.componentMask.getZIndex();for(var i=0;i<_3.length;i++){if(_3[i]==this.componentMask)continue;if(_1&&_1.contains(this.children[i])){if(this.children[i].getZIndex()<_4){this.children[i].moveAbove(this.componentMask)}
if(_2&&this.children[i].contains(_2,true)){_2=null}}else{if(this.children[i].getZIndex()>_4){this.children[i].moveBelow(this.componentMask)}
if(_2&&this.children[i].contains(_2,true)){_2.blur();this.componentMask.$li=_2;_2=null}}}
this.disableKeyboardEvents(true,true,true,_1)},isc.A.$168s=function isc_Canvas__fixComponentMaskSize(){if(!this.componentMask||!this.componentMask.isDrawn())return;this.componentMask.resizeTo(this.getInnerWidth(true),this.getInnerHeight(true))},isc.A.hideComponentMask=function isc_Canvas_hideComponentMask(_1,_2){this.logInfo("hideComponentMask()","componentMask");if(!this.componentMaskShowing){this.logDebug("hideComponentMask() called with no mask up. Ignoring","componentMask");return}
if(this.$177e){this.logWarn("recursive call to hideComponentMask() - ignoring","componentMask");return}
if(!_2&&this.$177d){this.logWarn("hideComponentMask() called while showComponentMask() is running.This is unsupported - ignoring","componentMask");return}
this.$177e=true;this.componentMaskShowing=false;if(this.componentMask){this.componentMask.resizeTo(1,1);if(this.componentMask.isDrawn())this.componentMask.clear()}
this.disableKeyboardEvents(false,true,true,this.$168r);var _3=this.componentMask.$li;if(!_1&&_3&&!_3.destroyed&&_3.$kk()&&!isc.EH.targetIsMasked(_3))
{_3.focus()}
delete this.componentMask.$li;delete this.$168r;delete this.$177e},isc.A.setRect=function isc_Canvas_setRect(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;if(isc.isAn.Array(_1)){_2=_1[1];_3=_1[2];_4=_1[3];_1=_1[0]}else if(_1!=null&&_1.top!=null){_2=_1.top;_3=_1.width;_4=_1.height;_1=_1.left}
if(this.logIsDebugEnabled()){this.logDebug("setRect: "+this.echo({left:_1,top:_2,width:_3,height:_4}))}
var _6=this.resizeTo(_3,_4,_5,true);if(_6)this.$ss=true;this.moveTo(_1,_2,_5,true);this.$ss=null;return _6},isc.A.getRect=function isc_Canvas_getRect(){return[this.getLeft(),this.getTop(),this.getVisibleWidth(),this.getVisibleHeight()]},isc.A.getLeft=function isc_Canvas_getLeft(){var _1=this.getStyleHandle();if(_1==null)return this.left;var _2=(isc.Browser.isIE?_1.pixelLeft:parseInt(_1.left));if(this.vscrollOn&&this.showCustomScrollbars&&this.isRTL()){return _2-this.getScrollbarSize()}
return _2},isc.A.getOffsetLeft=function isc_Canvas_getOffsetLeft(){var _1=this.getClipHandle();if(this.$st())_1=null;if(_1==null){if(this.logIsInfoEnabled()){this.logInfo("getOffsetLeft() called before widget is drawn - unable to calculate offset coordinates.  Returning specified coordinates")}
return this.left}
var _2=isc.Element.getOffsetLeft(_1);if(this.vscrollOn&&this.showCustomScrollbars&&this.isRTL()){_2-=this.getScrollbarSize()}
return _2},isc.A.setLeft=function isc_Canvas_setLeft(_1){this.moveTo(_1,null)},isc.A.getTop=function isc_Canvas_getTop(_1){var _2=this.getStyleHandle();if(_2==null)return this.top;var _3=(isc.Browser.isIE?_2.pixelTop:parseInt(_2.top,10));if(isc.Browser.isChrome){var _4=this.$176w("top");if(_4!=null)_3=_4}
if(_1){var _5=this.getClipHandle(),_6=_5.getAttribute(this.$143e);if(_6){_6=parseInt(_6,10);_3-=_6}}
return _3},isc.A.getOffsetTop=function isc_Canvas_getOffsetTop(){var _1=this.getClipHandle();if(this.$st())_1=null;if(_1==null)return this.top;var _2=isc.Element.getOffsetTop(_1);return _2},isc.A.setTop=function isc_Canvas_setTop(_1){this.moveTo(null,_1)},isc.A.$143f=function isc_Canvas__getPageSpace(){return this.parentElement!=null?0:this.leavePageSpace!=null?this.leavePageSpace:isc.Canvas.defaultPageSpace},isc.A.setLeavePageSpace=function isc_Canvas_setLeavePageSpace(_1){this.leavePageSpace=_1;this.pageResize()},isc.A.getWidth=function isc_Canvas_getWidth(){return this.width},isc.A.setWidth=function isc_Canvas_setWidth(_1){this.resizeTo(_1)},isc.A.getHeight=function isc_Canvas_getHeight(){return this.$o8},isc.A.setHeight=function isc_Canvas_setHeight(_1){this.resizeTo(null,_1)},isc.A.getMinWidth=function isc_Canvas_getMinWidth(){return this.minWidth},isc.A.setMinWidth=function isc_Canvas_setMinWidth(_1){this.minWidth=_1;this.resizeBy(null,null,null,null,"setMinWidth",true)},isc.A.getMinHeight=function isc_Canvas_getMinHeight(){return this.minHeight},isc.A.setMinHeight=function isc_Canvas_setMinHeight(_1){this.minHeight=_1;this.resizeBy(null,null,null,null,"setMinHeight",true)},isc.A.getMaxWidth=function isc_Canvas_getMaxWidth(){return this.maxWidth},isc.A.getMaxHeight=function isc_Canvas_getMaxHeight(){return this.maxHeight},isc.A.getDragMinWidth=function isc_Canvas_getDragMinWidth(){return Math.max(this.dragMinWidth,this.minWidth)},isc.A.getDragMinHeight=function isc_Canvas_getDragMinHeight(){return Math.max(this.dragMinHeight,this.minHeight)},isc.A.getDragMaxWidth=function isc_Canvas_getDragMaxWidth(){return Math.min(this.dragMaxWidth,this.maxWidth)},isc.A.getDragMaxHeight=function isc_Canvas_getDragMaxHeight(){return Math.min(this.dragMaxHeight,this.maxHeight)},isc.A.getRight=function isc_Canvas_getRight(){return this.getLeft()+this.getVisibleWidth()});isc.evalBoundary;isc.B.push(isc.A.setRight=function isc_Canvas_setRight(_1){if(isc.isA.Number(_1)){this.resizeTo(_1-this.getLeft(),null)}else{this.logWarn("setRight() expects an integer value")}},isc.A.getBottom=function isc_Canvas_getBottom(){return this.getTop()+this.getVisibleHeight()},isc.A.setBottom=function isc_Canvas_setBottom(_1){if(isc.isA.Number(_1)){this.resizeTo(null,_1-this.getTop())}else{this.logWarn("setBottom() expects an integer value")}},isc.A.enforceScrollSize=function isc_Canvas_enforceScrollSize(_1,_2){if(this.logIsDebugEnabled(this.$ox)){this.logDebug("enforcing scroll size:"+[_1,_2],"enforceScrollSize")}
if(!this.$pu&&!this.$if)return;if(_1==null)_1=0;if(_2==null)_2=0;if(isNaN(_1)||isNaN(_2)||(!isc.Page.isRTL()&&_1<0)||_2<0){this.logWarn("Invalid width or height in Canvas.enforceScrollSize() on component: "+this.getID()+" with sizes: "+[_1,_2]+this.getStackTrace());return}
if(this.$113l&&isc.Browser.isMoz){var _3=this.getHandle();_3.style.width=_1+isc.px;_3.style.height=_2+isc.px}else if(this.$re==null){var _4=this.$ov;var _5=this.$qs(this.$ow);_4[1]=_5;_4[3]=_1-1;_4[5]=_2-1;var _6=_4.join(isc.emptyString);this.$re=isc.Element.insertAdjacentHTML(this.getHandle(),this.$n8,_6,true);if(this.$re==null){this.$re=document.getElementById(_5)}}else if(!this.$qe||this.$qe[0]!=_1||this.$qe[1]!=_2)
{this.$re.style.left=(_1-1)+isc.px;this.$re.style.top=(_2-1)+isc.px}
this.$qe=[_1,_2]},isc.A.stopEnforcingScrollSize=function isc_Canvas_stopEnforcingScrollSize(){if(this.logIsDebugEnabled(this.$ox)){this.logDebug("stop enforcing scroll size","enforceScrollSize")}
delete this.$qe;if(!this.isDrawn())return;if(this.$113l&&isc.Browser.isMoz){var _1=this.getHandle();_1.style.removeProperty("width");_1.style.removeProperty("height")}else if(this.$re){this.$re.style.left=this.$oy;this.$re.style.top=this.$oy}},isc.A.$1804=function isc_Canvas__adjustScrollSizeForFFBorderBoxIssue(_1){if(isc.Canvas.$1805==null){var _2="<div style='position:absolute;left:0px;top:-200px;width:100px;height:100px;overflow:hidden;border:5px solid black;box-sizing:border-box;display:inline-block;'>&nbsp;</div>";var _3=isc.Element.createAbsoluteElement(_2);var _4=_3.scrollWidth,_5=_3.scrollHeight;isc.Canvas.$1805=(parseInt(_4)>90);isc.Canvas.$1806=(parseInt(_5)>90);isc.Element.clear(_3)}
return _1?isc.Canvas.$1805:isc.Canvas.$1806},isc.A.getScrollWidth=function isc_Canvas_getScrollWidth(_1){if(isc.$cv)arguments.$cw=this;if(this.$qz){this.$qz=null;this.adjustOverflow("widthCheckWhileDeferred")}
if(this.containsIFrame()){return this.getInnerWidth()}
if(!_1&&this.$su!=null)return this.$su;var _2=0,_3=this.getClipHandle();if(_3==null){this.logDebug("No size info available from DOM, returning user-specified size");return this.getInnerWidth()}
if(this.allowNativeContentPositioning){this.$sv=true;if(isc.Browser.isSafari||(isc.Browser.isMoz&&((_3.scrollWidth||_3.offsetWidth)<=parseInt(_3.style.width))))
{_2=isc.Element.getScrollWidth(this.getHandle())}else{_2=isc.Element.getScrollWidth(_3)}
delete this.$sv}else{var _4=this.children,_5=_4&&_4.length>0,_6=0;if(!_5||this.allowContentAndChildren)
{if((isc.Browser.isSafari||(isc.Browser.isMoz&&isc.Browser.version>=21)||isc.Browser.isIE)&&this.$113l)
{_2=Math.ceil(this.getHandle().scrollWidth);if(this.$113l&&!this.$1000(false,true)){_2+=isc.Element.$sw(this.styleName)}}else if(isc.Browser.isMoz&&this.$113l){var _7=this.getHandle();var _8=_3.scrollWidth,_9=_7.scrollWidth;if(_8>_9){_2=_8}else{var _10=_7.style.display;_7.style.display="inline-block";_2=_7.scrollWidth;_7.style.display=_10}}else{_6=(_3.scrollWidth||_3.offsetWidth);if(_6!=null&&_6!=this.$n1){_2=_6=Math.ceil(_6);if(isc.Browser.isOpera||(isc.Browser.isMoz&&isc.Browser.version<16)){_2-=this.getHBorderSize()}
if(isc.Browser.isMoz&&!this.isRTL()){_2-=this.$sx()}
if(isc.Browser.isMoz&&this.getScrollingMechanism()==isc.Canvas.NESTED_DIV)
{var _11=this.getHandle().offsetLeft;if(_11<0)_11=-_11;_2-=_11}}
if(isc.Browser.isSafari||(isc.Browser.isMoz&&_2<=parseInt(_3.style.width)))
{var _7=this.getHandle(),_12=_7.scrollWidth||_7.offsetWidth;if(_12>_2)_2=_12}}
var _13=this.getHBorderSize();if(this.isBorderBox&&this.$1804(true)&&_13!=0)
{var _14=(this.overflow!=isc.Canvas.VISIBLE)?this.getInnerWidth():(parseInt(this.getStyleHandle().width)-_13)
if(_2==_14+1){_2-=1}}}
if(_5){var _15=this.$sy(this.children);_2=Math.max(_15,_2)}}
if(this.$qe!=null){var _16=this.$qe[0];_2=Math.max(_2,_16)}
this.$su=_2;return _2},isc.A.$sy=function isc_Canvas__getWidthSpan(_1,_2){var _3=0,_4=0,_5=this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H,_6;var _7=this.isRTL()&&(this.overflow!=isc.Canvas.VISIBLE);if(_7)_4=this.getViewportWidth();for(var i=0;i<_1.length;i++){var _9=_1[i];if(!_9.isDrawn()&&!_9.$59d)continue;if(_2&&_9.visibility==isc.Canvas.HIDDEN)continue;var _10=(_9.position!=isc.Canvas.RELATIVE),_11=_9.getVisibleWidth(),_12=(_10?_9.getLeft():_9.getOffsetLeft());if(!_5&&_10)_11-=_9.getRightMargin();if(!_7&&(_12+_11>_4)){_4=_12+_11;_6=_9}
if(_12<_3)_3=_7?_12:Math.max(0,_12)}
return _4-_3},isc.A.getScrollHeight=function isc_Canvas_getScrollHeight(_1){if(isc.$cv)arguments.$cw=this;if(this.$qz){this.$qz=null;this.adjustOverflow("heightCheckWhileDeferred")}
if(this.containsIFrame()){return this.getInnerHeight()}
if(!_1&&this.$sz!=null)return this.$sz;var _2=0,_3=this.getScrollHandle();if(_3==null){this.logDebug("No size info available from DOM, returning user-specified size","sizing");return this.getInnerHeight()}
if(this.allowNativeContentPositioning){this.$s0=true;if(isc.Browser.isSafari||(isc.Browser.isMoz&&((_3.scrollHeight||_3.offsetHeight)<=parseInt(_3.style.height))))
{_2=isc.Element.getScrollHeight(this.getHandle())}else{_2=isc.Element.getScrollHeight(_3)}
delete this.$s0}else{var _4=(this.children&&this.children.length>0);if(!_4||this.allowContentAndChildren){if(this.$113l){_2=Math.ceil(this.getHandle().scrollHeight);if(!this.$1000(true,false)){_2+=isc.Element.$s1(this.styleName)}}else{var _5=_3.scrollHeight||_3.offsetHeight;if(_5!=null&&_5!=this.$n1){_2=_5=Math.ceil(_5);if(isc.Browser.isMoz)_2-=this.$s2();if(isc.Browser.isOpera||(isc.Browser.isMoz&&isc.Browser.version<16)){_2-=this.getVBorderSize()}
if(this.$113l&&(isc.Browser.isSafari||(isc.Browser.isMoz&&_2<=parseInt(_3.style.height))))
{var _6=this.getHandle(),_7=_6.scrollHeight||_6.offsetHeight;if(_7>_2)_2=_7}}}
var _8=this.getVBorderSize();if(this.isBorderBox&&this.$1804(false)&&_8!=0)
{var _9=(this.overflow!=isc.Canvas.VISIBLE)?this.getInnerHeight():(parseInt(this.getStyleHandle().height)-_8)
if(_2==_9+1){_2-=1}}}
if(_4){var _10=this.$s3(this.children);if(_10>_2){_2=_10}}}
if(this.$qe!=null){var _11=this.$qe[1];_2=Math.max(_2,_11)}
this.$sz=_2;return _2},isc.A.$s2=function isc_Canvas__offscreenChildrenHeight(){if(!isc.isAn.Array(this.children))return 0;var _1=0;for(var i=0;i<this.children.length;i++){var _3=this.children[i],_4=(_3.position==isc.Canvas.ABSOLUTE?_3.getTop():_3.getOffsetTop());if(_4<_1)_1=_4}
return-_1},isc.A.$sx=function isc_Canvas__offscreenChildrenWidth(){if(!isc.isAn.Array(this.children))return 0;if(!this.$113l)return 0;var _1=0;for(var i=0;i<this.children.length;i++){var _3=this.children[i],_4=(_3.position==isc.Canvas.ABSOLUTE?_3.getLeft():_3.getOffsetLeft());if(_4<_1)_1=_4}
return-_1},isc.A.$s3=function isc_Canvas__getHeightSpan(_1,_2){var _3=0,_4=0,_5=this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H;for(var i=0;i<_1.length;i++){var _7=_1[i];if(!_7.isDrawn()&&!_7.$59d)continue;if(_2&&_7.visibility==isc.Canvas.HIDDEN)continue;var _8=_7.position!=isc.Canvas.RELATIVE,_9=_7.getVisibleHeight(),_10=(_8?_7.getTop():_7.getOffsetTop());if(!_5&&_8)_9-=_7.getBottomMargin();if(_9+_10>_4)_4=_9+_10;if(_10<_3)_3=Math.max(0,_10)}
return _4-_3},isc.A.getScrollLeft=function isc_Canvas_getScrollLeft(){if(!this.isDrawn())return this.scrollLeft;var _1=this.getScrollingMechanism(),_2=this.scrollLeft;if(_1==isc.Canvas.NATIVE){_2=this.getScrollHandle().scrollLeft;if(this.isRTL()){_2=this.$92y(_2)}}else if(_1==isc.Canvas.NESTED_DIV&&this.isRTL()){_2+=this.getScrollRight()-this.$1314}
return _2},isc.A.getScrollTop=function isc_Canvas_getScrollTop(){if(!this.isDrawn()||this.getScrollingMechanism()!=isc.Canvas.NATIVE){return this.scrollTop}
return this.getScrollHandle().scrollTop},isc.A.setPageLeft=function isc_Canvas_setPageLeft(_1){this.moveBy(_1-this.getPageLeft(),0)},isc.A.setPageTop=function isc_Canvas_setPageTop(_1){this.moveBy(0,_1-this.getPageTop())},isc.A.getParentPageRect=function isc_Canvas_getParentPageRect(){if(this.parentElement){var _1=this.parentElement,_2=_1.getPageRect();var _3=_1.getLeftMargin(),_4=_1.getTopMargin();_2[0]+=_3;_2[1]+=_4;_2[2]-=(_3+_1.getRightMargin());_2[3]-=(_4+_1.getBottomMargin());var _5=_1.$tj();_2[0]+=_5.left;_2[1]+=_5.top;_2[2]-=_5.right+_5.left;_2[3]-=_5.bottom+_5.top;var _6=_1.getScrollbarSize();if(_1.vscrollOn)_2[2]-=_6;if(_1.hscrollOn)_2[3]-=_6;return this.$113b(_2)}
else return[0,0,isc.Page.getScrollWidth(),isc.Page.getScrollHeight()]},isc.A.$113b=function isc_Canvas__adjustParentPageRect(_1){if(this.peers&&this.peers.length>0){var _2=this.getPeerRect(),_3=this.getPageRect();_1[0]+=(_3[0]-_2[0]);_1[1]+=(_3[1]-_2[1]);_1[2]-=(_2[2]-_3[2]);_1[3]-=(_2[3]-_3[3])}
return _1},isc.A.$1518=function isc_Canvas__shouldKeepInParentRect(){return(this.keepInParentRect&&this.ns.EH.dragging&&this==this.ns.EH.dragMoveTarget)},isc.A.$1519=function isc_Canvas__getKeepInParentRect(_1){var _2=this.ns.EH,_3=_2.getDragTarget(_2.getLastEvent()),_4=_3.parentElement,_5=isc.isAn.Array(this.keepInParentRect),_6;if(_5){_6=this.keepInParentRect;if(_4){_6=_6.duplicate();_6[0]+=_4.getPageLeft();_6[1]+=_4.getPageTop()}}else{if(_4){_6=_3.$113b(_3.getParentPageRect())}else{_6=this.getParentPageRect()}}
var _7=_6[0],_8=_6[1],_9=_6[2],_10=_6[3],_11=_7+_9,_12=_8+_10;if(_4){var _13=_4.getScrollLeft(),_14=_4.getScrollWidth()-
_4.getViewportWidth()-_13,_15=_4.getScrollTop(),_16=_4.getScrollHeight()-
_4.getViewportHeight()-_15}else{var _13=isc.Page.getScrollLeft(),_14=isc.Page.getScrollWidth()-
isc.Page.getWidth()-_13,_15=isc.Page.getScrollTop(),_16=isc.Page.getScrollHeight()-
isc.Page.getHeight()-_15}
if(_14<0)_14=0;if(_16<0)_16=0;var _17=this.$1514,_18=_7,_19=_11,_20=_8,_21=_12;if(_1){_18-=_13;_19+=_14;_20-=_15;_21+=_16}
_17[0]=_18;_17[1]=_20;_17[2]=_19-_18;_17[3]=_21-_20;return _17},isc.A.setPageRect=function isc_Canvas_setPageRect(_1,_2,_3,_4,_5){if(isc.isAn.Array(_1)){_2=_1[1];_3=_1[2];_4=_1[3];_1=_1[0]}
if(this.$1518()){var _6=(_3==null&&_4==null);if(_3==null)_3=this.getVisibleWidth();if(_4==null)_4=this.getVisibleHeight();var _7=_1+_3,_8=_2+_4,_9=this.$1519(_6),_10=_9[0],_11=_10+_9[2],_12=_9[1],_13=_12+_9[3];if(_6){if(_1<_10){_1=_10}else if(_7>_11){_1=_11-_3}
if(_2<_12){_2=_12}else if(_8>_13){_2=_13-_4}}else{if(_1<_10){_3=_3-(_10-_1);_1=_10}else if(_7>_11){_3=_3-(_7-_11)}
if(_2<_12){_4=_4-(_12-_2);_2=_12}else if(_8>_13){_4=_4-(_8-_13)}}}
this.moveBy(_1-this.getPageLeft(),_2-this.getPageTop());if(_5){var _14=this.getVisibleWidth(),_15=this.getVisibleHeight(),_16=_14-_3,_17=_15-_4;this.resizeTo(_3,_4);this.redrawIfDirty("setPageRect");var _18=(_14-this.getVisibleWidth()),_19=(_15-this.getVisibleHeight());if(_1>this.getPageLeft())_1-=(_16-_18);if(_2>this.getPageTop())_2-=(_17-_19)}else{this.resizeTo(_3,_4)}},isc.A.getCanvasOffsets=function isc_Canvas_getCanvasOffsets(_1,_2){if(_1!=null){if(!_1.contains(this,false)){this.logWarn("getCanvasOffsets passed ancestor:"+_1+". This is not an ancestor of this component - ignoring");_1=this.parentElement}}else{_1=this.parentElement}
if(!this.isDrawn()||this.$st())
{if(!this.isDrawn()&&this.position==isc.Canvas.RELATIVE){this.logWarn("getCanvasOffsets(): Called on undrawn relatively-positioned widget '"+this.getID()+"'.  The drawn coordinates can not be reliably calculated until the widget has been drawn - returning estimated position")}
var _3=this.left,_4=this.top,_5=this.parentElement;while(_1!=_5){_3+=_5.left;_4+=_5.top;_5=_5.parentElement}
return{left:_3,top:_4}}
var _6=this.getOffsets(_1,_2);return _6},isc.A.getPageOffsets=function isc_Canvas_getPageOffsets(){if(isc.$cv)arguments.$cw=this;var _1=this.getClipHandle();if(_1&&this.$st()){_1=null}
if(_1==null){if(!this.isDrawn()&&this.position==isc.Canvas.RELATIVE){this.logWarn("getPageOffsets(): Called on undrawn relatively-position widget '"+this.getID()+"'.  The page level coordinates can not be reliably calculated until the widget has been drawn - returning estimated position")}
var _2=this.parentElement;var _3,_4;if(_2){var _5=0;if(_2.hscrollOn){if(!this.isRTL())_5=_2.getScrollLeft();else{var _6=_2.getScrollWidth()-_2.getViewportWidth();_5=-1*(_6-_2.getScrollLeft())}}
var _7=_2.getPageOffsets();_3=this.getOffsetLeft()+_2.getLeftBorderSize()+_2.getLeftMargin()+_7.left-_5;_4=this.getOffsetTop()+_2.getTopBorderSize()+_2.getTopMargin()+_7.top-_2.getScrollTop()}else{_3=this.getOffsetLeft();_4=this.getOffsetTop()}
if(this.isRTL()&&this.vscrollOn&&this.showCustomScrollbars)_3-=this.getScrollbarSize();return{left:_3,top:_4}}
if(this.useClientRectAPI&&_1.getBoundingClientRect!=null){var _8=isc.Element.getBoundingClientRect(_1);var _3=_8.left;_3-=this.getLeftMargin();var _9=!isc.Browser.isIE9;if(_9){var _10=isc.Page.getScrollLeft(true);_3+=_10}
if(this.isRTL()){if(this.vscrollOn&&this.showCustomScrollbars){_3-=this.getScrollbarSize()}
if(isc.Browser.isIE&&(isc.Browser.version<9||!isc.Browser.isStrict)&&(isc.Page.getBodyOverflow()!=isc.Canvas.HIDDEN))
{if(isc.EH.$946==null){isc.EH.$946=(document.body.offsetWidth-
document.body.clientWidth)}
_3-=isc.EH.$946}}
var _4=_8.top;_4-=this.getTopMargin();_4+=isc.Page.getScrollTop();return{left:_3,top:_4}}
var _11=this.getOffsets(),_12=this.$sd();return{left:_11.left-_12.left,top:_11.top-_12.top}},isc.A.getCanvasLeft=function isc_Canvas_getCanvasLeft(_1){return this.getCanvasOffsets(_1).left},isc.A.getPageLeft=function isc_Canvas_getPageLeft(){return this.getPageOffsets().left},isc.A.getOffsets=function isc_Canvas_getOffsets(_1,_2){var _3=this.isRTL();var _4=this.ns.Element.getOffsets(this,_1,_3,true,_2);if(_3&&this.vscrollOn&&this.showCustomScrollbars){_4.left-=this.getScrollbarSize()}
return _4},isc.A.getCanvasTop=function isc_Canvas_getCanvasTop(_1){return this.getCanvasOffsets(_1).top},isc.A.getPageTop=function isc_Canvas_getPageTop(){return this.getPageOffsets().top},isc.A.getPageRight=function isc_Canvas_getPageRight(_1){_1=_1||this.getPageOffsets();return _1.left+this.getVisibleWidth()},isc.A.getPageBottom=function isc_Canvas_getPageBottom(_1){_1=_1||this.getPageOffsets();return _1.top+this.getVisibleHeight()},isc.A.getPageRect=function isc_Canvas_getPageRect(){var _1=this.getPageOffsets();return[_1.left,_1.top,this.getVisibleWidth(),this.getVisibleHeight()]},isc.A.usingCSSScrollbars=function isc_Canvas_usingCSSScrollbars(){return!this.showCustomScrollbars&&(this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)},isc.A.getScrollingMechanism=function isc_Canvas_getScrollingMechanism(){if(!this.$s6){if(!this.showCustomScrollbars&&(this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL))
{this.$s6=isc.Canvas.NATIVE}else{if(isc.Browser.isIE&&this.isRTL()&&(isc.Browser.version<=7||(isc.Browser.version==8&&!isc.Browser.isStrict)))
{this.$s6=isc.Canvas.NESTED_DIV}else{this.$s6=isc.Canvas.NATIVE}}}
return this.$s6},isc.A.$182c=function isc_Canvas__nestedDivScrolling(){if(this.$182d==null){this.$182d=this.getScrollingMechanism()==isc.Canvas.NESTED_DIV}
return this.$182d},isc.A.setMargin=function isc_Canvas_setMargin(_1){this.$s7=null;this.$s8=null;if(_1==null){delete this.margin}else{var _2=_1;if(isc.isA.String(_1))_1=parseInt(_1);if(!isc.isA.Number(_1)){this.logWarn("setMargin() passed invalid margin:"+_2+", ignoring.");return}
this.margin=_1}
var _3=this.getStyleHandle();if(!_3)return;this.$883();this.adjustOverflow("setMargin");this.innerSizeChanged("Margin thickness changed")},isc.A.$883=function isc_Canvas__applyFullMargins(){var _1=this.getClipHandle();if(!_1)return;if(!this.$sb()&&this.$sc==null){_1.style.marginTop="";_1.style.marginBottom="";_1.style.marginLeft="";_1.style.marginRight="";if(this.margin==null)_1.style.margin=0;else _1.style.margin=this.margin+isc.px;return}
var _2=this.$sd();_1.style.marginTop=_2.top+isc.px;_1.style.marginLeft=_2.left+isc.px;_1.style.marginBottom=_2.bottom+isc.px;_1.style.marginRight=_2.right+isc.px},isc.A.getMargin=function isc_Canvas_getMargin(){return this.margin},isc.A.getTopMargin=function isc_Canvas_getTopMargin(){return this.$sd().top},isc.A.getLeftMargin=function isc_Canvas_getLeftMargin(){return this.$sd().left},isc.A.getBottomMargin=function isc_Canvas_getBottomMargin(){return this.$sd().bottom},isc.A.getRightMargin=function isc_Canvas_getRightMargin(){return this.$sd().right},isc.A.$88x=function isc_Canvas__removeDestroyedPeers(_1,_2){var _3=[];for(var i=0;i<_1.length;i++){if(_1[i].destroyed){_3[_3.length]={peer:_1[i],side:_2};_1[i]=null}}
_1.removeEmpty();return _3},isc.A.$sd=function isc_Canvas__calculateMargins(){var _1=this.$sc,_2=(_1!=null),_3,_4,_5,_6;if(_2){_3=_1.top;_6=_1.bottom;_4=_1.left;_5=_1.right;var _7=[];if(_3!=null)_7.addList(this.$88x(_3,"top"));if(_6!=null)_7.addList(this.$88x(_6,"bottom"));if(_4!=null)_7.addList(this.$88x(_4,"left"));if(_5!=null)_5.addList(this.$88x(_5,"right"));if(_7.length>0){for(var i=0;i<_7.length;i++){this.$wj(_7[i].peer,_7[i].side)}}
if((_3==null||_3.length==0)&&(_6==null||_6.length==0)&&(_4==null||_4.length==0)&&(_5==null||_5.length==0))_2=false}
if(!this.$sb()&&!_2)return this.$s9();var _9=this.$s8;if(_9)return _9;var _10=this.$ta();_9={left:_10.left,right:_10.right,top:_10.top,bottom:_10.bottom};if(_2){if(_3){for(var i=0;i<_3.length;i++){var _11=_3[i];_9.top+=_11.getVisibleHeight();if(_11.$55s!=null){_9.top-=_11.$55s}}}
if(_6){for(var i=0;i<_6.length;i++){var _12=_6[i];_9.bottom+=_12.getVisibleHeight();if(_12.$55s!=null){_9.bottom-=_12.$55s}}}
if(_4){for(var i=0;i<_4.length;i++){var _13=_4[i];_9.left+=_13.getVisibleWidth();if(_13.$55s!=null){_9.left-=_13.$55s}}}
if(_5){for(var i=0;i<_5.length;i++){var _14=_5[i];_9.right+=_14.getVisibleWidth();if(_14.$55s!=null){_9.right-=_14.$55s}}}}
if(this.$sb()){var _15=this.$pq();_9.left+=_15.$tb,_9.right+=_15.$tc,_9.top+=_15.$td,_9.bottom+=_15.$te}
return(this.$s8=_9)},isc.A.$ta=function isc_Canvas__getSpecifiedMargins(){var _1=this.$if;this.$if=false;var _2=this.$s9();this.$if=_1;return _2},isc.A.$s9=function isc_Canvas__calculateNormalMargins(){if(this.$s7!=null)return this.$s7;var _1={},_2=isc.px;if(!this.isDrawn()){var _3=this.margin;if(isc.isA.String(_3)){if(isc.endsWith(_3,_2)||parseInt(_3)+isc.emptyString==_3)
_3=parseInt(_3)}
if(isc.isA.Number(_3)){_1.top=_3;_1.bottom=_3;_1.left=_3;_1.right=_3;this.$s7=_1;return _1}}else{var _4=this.getStyleHandle(),_5=_4.marginLeft,_6=_4.marginRight,_7=_4.marginTop,_8=_4.marginBottom;if(isc.isA.String(_5)&&isc.endsWith(_5,_2))
_5=parseInt(_5);if(isc.isA.String(_6)&&isc.endsWith(_6,_2))
_6=parseInt(_6)
if(isc.isA.String(_7)&&isc.endsWith(_7,_2))
_7=parseInt(_7);if(isc.isA.String(_8)&&isc.endsWith(_8,_2))
_8=parseInt(_8)
if(isc.isA.Number(_5))_1.left=_5;if(isc.isA.Number(_6))_1.right=_6;if(isc.isA.Number(_7))_1.top=_7;if(isc.isA.Number(_8))_1.bottom=_8}
if(this.className){if(!isc.isA.Number(_1.left))
_1.left=isc.Element.$tf(this.className);if(!isc.isA.Number(_1.right))
_1.right=isc.Element.$tg(this.className);if(!isc.isA.Number(_1.top))
_1.top=isc.Element.$th(this.className);if(!isc.isA.Number(_1.bottom))
_1.bottom=isc.Element.$ti(this.className)}else{if(!isc.isA.Number(_1.left))
_1.left=0;if(!isc.isA.Number(_1.right))
_1.right=0;if(!isc.isA.Number(_1.top))
_1.top=0;if(!isc.isA.Number(_1.bottom))
_1.bottom=0}
return(this.$s7=_1)},isc.A.getTopBorderSize=function isc_Canvas_getTopBorderSize(){return this.$tj().top},isc.A.getBottomBorderSize=function isc_Canvas_getBottomBorderSize(){return this.$tj().bottom},isc.A.getLeftBorderSize=function isc_Canvas_getLeftBorderSize(){return this.$tj().left},isc.A.getRightBorderSize=function isc_Canvas_getRightBorderSize(){return this.$tj().right},isc.A.getHBorderSize=function isc_Canvas_getHBorderSize(){return(this.getLeftBorderSize()+this.getRightBorderSize())},isc.A.getVBorderSize=function isc_Canvas_getVBorderSize(){return this.getTopBorderSize()+this.getBottomBorderSize()},isc.A.$tj=function isc_Canvas__calculateBorderSize(){if(this.$tk!=null)return this.$tk;var _1={},_2=isc.px;if(!this.isDrawn()){var _3=this.border;if(_3!=null&&isc.contains(_3,_2)){var _4=_3.match(/\s*\d+px/g);if(isc.isAn.Array(_4))_4=parseInt(_4[0]);else _4=parseInt(_4);if(isc.isA.Number(_4)){this.$tk={left:_4,right:_4,top:_4,bottom:_4}
return this.$tk}}}else{var _5=this.getStyleHandle(),_6=_5.borderLeftWidth,_7=_5.borderRightWidth,_8=_5.borderTopWidth,_9=_5.borderBottomWidth;if(isc.isA.String(_6)&&isc.endsWith(_6,_2))
_6=parseInt(_6);if(isc.isA.String(_7)&&isc.endsWith(_7,_2))
_7=parseInt(_7)
if(isc.isA.String(_8)&&isc.endsWith(_8,_2))
_8=parseInt(_8);if(isc.isA.String(_9)&&isc.endsWith(_9,_2))
_9=parseInt(_9)
if(isc.isA.Number(_6))_1.left=_6;if(isc.isA.Number(_7))_1.right=_7;if(isc.isA.Number(_8))_1.top=_8;if(isc.isA.Number(_9))_1.bottom=_9}
var _10=this.$95g();if(_10){if(!isc.isA.Number(_1.left))
_1.left=isc.Element.$tl(_10);if(!isc.isA.Number(_1.right))
_1.right=isc.Element.$tm(_10);if(!isc.isA.Number(_1.top))
_1.top=isc.Element.$tn(_10);if(!isc.isA.Number(_1.bottom))
_1.bottom=isc.Element.$to(_10)}else{if(!isc.isA.Number(_1.left))
_1.left=0;if(!isc.isA.Number(_1.right))
_1.right=0;if(!isc.isA.Number(_1.top))
_1.top=0;if(!isc.isA.Number(_1.bottom))
_1.bottom=0}
return(this.$tk=_1)},isc.A.$95g=function isc_Canvas__getBorderClassName(){return this.className},isc.A.setTopPadding=function isc_Canvas_setTopPadding(_1){this.$tp=null;this.topPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingTop=_1}},isc.A.setLeftPadding=function isc_Canvas_setLeftPadding(_1){this.$tp=null;this.leftPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingLeft=_1}},isc.A.setRightPadding=function isc_Canvas_setRightPadding(_1){this.$tp=null;this.rightPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingRight=_1}},isc.A.setBottomPadding=function isc_Canvas_setBottomPadding(_1){this.$tp=null;this.bottomPadding=_1;if(isc.isA.Number(_1))_1+="px";if(this.isDrawn()){var _2=this.$113l?this.getHandle().style:this.getStyleHandle();_2.paddingBottom=_1}},isc.A.setPadding=function isc_Canvas_setPadding(_1){this.$tp=null;if(_1!=null){var _2=_1;if(isc.isA.String(_1))_1=parseInt(_1);if(!isc.isA.Number(_1)){this.logWarn("setPadding passed unrecognized value:"+_2+" - ignoring");return}}
this.padding=_1;var _3=isc.Browser.isDOM?this.getHandle():null;if(!_3){return}
if(_1==null){_3.style.padding=null;if(this.$113l){if(!this.$1000())this.getClipHandle().style.padding=null;else{var _4=this.$tq();_3.style.paddingTop=_4.top+this.$ph;_3.style.paddingLeft=_4.left+this.$ph;_3.style.paddingBottom=_4.bottom+this.$ph;_3.style.paddingRight=_4.right+this.$ph}}}else{_3.style.padding=this.padding+isc.px;if(this.$113l){this.getClipHandle().style.padding=this.$65h}}},isc.A.getPadding=function isc_Canvas_getPadding(){return this.padding},isc.A.getTopPadding=function isc_Canvas_getTopPadding(){return this.$tq().top},isc.A.getBottomPadding=function isc_Canvas_getBottomPadding(){return this.$tq().bottom},isc.A.getLeftPadding=function isc_Canvas_getLeftPadding(){return this.$tq().left},isc.A.getRightPadding=function isc_Canvas_getRightPadding(){return this.$tq().right},isc.A.getVPadding=function isc_Canvas_getVPadding(){return this.getTopPadding()+this.getBottomPadding()},isc.A.getHPadding=function isc_Canvas_getHPadding(){return this.getLeftPadding()+this.getRightPadding()},isc.A.$tq=function isc_Canvas__calculatePadding(){if(this.$tp!=null)return this.$tp;var _1={},_2=isc.px;if(this.isDrawn()&&this.getHandle()!=null){var _3=this.getHandle().style;if(_3.paddingTop!=null&&!isc.isAn.emptyString(_3.paddingTop)&&isc.endsWith(_3.paddingTop,_2)){_1.top=parseInt(_3.paddingTop)}
if(_3.paddingBottom!=null&&!isc.isAn.emptyString(_3.paddingBottom)&&isc.endsWith(_3.paddingBottom,_2)){_1.bottom=parseInt(_3.paddingBottom)}
if(_3.paddingLeft!=null&&!isc.isAn.emptyString(_3.paddingLeft)&&isc.endsWith(_3.paddingLeft,_2)){_1.left=parseInt(_3.paddingLeft)}
if(_3.paddingRight!=null&&!isc.isAn.emptyString(_3.paddingRight)&&isc.endsWith(_3.paddingRight,_2)){_1.right=parseInt(_3.paddingRight)}}else{if(this.topPadding!=null)_1.top=this.topPadding;if(this.leftPadding!=null)_1.left=this.leftPadding;if(this.rightPadding!=null)_1.right=this.rightPadding;if(this.bottomPadding!=null)_1.bottom=this.bottomPadding;if(this.padding!=null){var _4=parseInt(this.padding);if(_1.left==null)_1.left=_4;if(_1.top==null)_1.top=_4;if(_1.bottom==null)_1.bottom=_4;if(_1.right==null)_1.right=_4}}
if(this.className){if(!isc.isA.Number(_1.left))_1.left=isc.Element.$tr(this.className);if(!isc.isA.Number(_1.right))_1.right=isc.Element.$ts(this.className);if(!isc.isA.Number(_1.top))_1.top=isc.Element.$tt(this.className);if(!isc.isA.Number(_1.bottom))_1.bottom=isc.Element.$tu(this.className)}else{if(!isc.isA.Number(_1.left))_1.left=0;if(!isc.isA.Number(_1.right))_1.right=0;if(!isc.isA.Number(_1.top))_1.top=0;if(!isc.isA.Number(_1.bottom))_1.bottom=0}
return(this.$tp=_1)},isc.A.containsPoint=function isc_Canvas_containsPoint(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(!this.isVisible()||!this.isDrawn())return false;if(_3==null)_3=false;var _4=this.getPageLeft()+this.getLeftMargin();if(_1<_4){return false}
var _5=this.getPageTop()+this.getTopMargin();if(_2<_5){return false}
var _6=_3?this.getViewportWidth():(this.getVisibleWidth()-this.getHMarginSize());if(_1>_4+_6){return false}
var _7=_3?this.getViewportHeight():(this.getVisibleHeight()-this.getVMarginSize());if(_2>_5+_7){return false}
var _8=0,_9=0;var _10=this.$tv=this.$tv||[];_10.length=1;_10[0]=this;var i=1,_12=this;while(_12.parentElement!=null){_12=_12.parentElement
_10[i]=_12;i++}
var _13,_14;for(var j=_10.length-1;j>=0;j--){var _16=_10[j];var _17=_16.getCanvasOffsets(null,true);_8+=_17.left;_9+=_17.top;if(_16==this&&!_3){_13=_16.getVisibleWidth()-_16.getHMarginSize();_14=_16.getVisibleHeight()-_16.getVMarginSize()}else{_13=_16.getViewportWidth();_14=_16.getViewportHeight()}
if(!((_1>=_8)&&(_1<=_8+_13)&&(_2>=_9)&&(_2<=_9+_14)))
{return false}}
return true});isc.evalBoundary;isc.B.push(isc.A.visibleAtPoint=function isc_Canvas_visibleAtPoint(_1,_2,_3,_4,_5){if(isc.$cv)arguments.$cw=this;if(!this.containsPoint(_1,_2,_3)){return false}
if(!isc.isAn.Array(_4))_4=[_4];var _6=this;while(_6!=null&&_6!=_5){var _7=(_6.parentElement!=null?_6.parentElement.children:isc.Canvas.$tw);for(var i=0;i<_7.length;i++){var _9=_7[i];if(_9==null||_9==_6||!_9.isDrawn()||!_9.isVisible()||_4.contains(_9)||_9.isMouseTransparent||(_9.getZIndex()<_6.getZIndex()))
{continue}
if(_9.$jr)continue;if(isc.isA.Scrollbar(_9)||isc.isA.ScrollThumb(_9))continue;if(isc.EdgedCanvas&&isc.isA.EdgedCanvas(_9)&&_9.masterElement&&_9.masterElement.$l0==_9)continue;if(isc.Layout&&isc.isA.Layout(_9.parentElement)&&_9.parentElement.hasMember(_9)&&_9.parentElement.hasMember(_6))
{continue}
if(isc.TabSet&&isc.isA.TabBar(_9)&&isc.isA.TabSet(_9.parentElement)&&_9.parentElement.paneContainer&&_9.parentElement.paneContainer.contains(this))
{continue}
if(_9.containsPoint(_1,_2,false)){return false}}
_6=_6.parentElement}
return true},isc.A.scrollIntoView=function isc_Canvas_scrollIntoView(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11){if(_3==null)_3=0;if(_4==null)_4=0;if(_10==null){_10=this}
if(this.isRTL()){_1=this.$95h(_1,false)}
var _12=true;var _13,_14;if(this.overflow!=isc.Canvas.VISIBLE&&this.overflow!=isc.Canvas.IGNORE){if(_1!=null){var _15=this.getScrollLeft(),_16=this.getViewportWidth(),_17=_15+_16,_18=false,_19=false;if(_1+_3>_17){_18=true}
if(_1<_15){_19=true}
if(_18!=_19||_9){if(_5==this.$oz){_13=_1}else if(_5==this.$o1){_13=(_1+_3)-_16}else{_13=(_1+parseInt(_3/2))
-parseInt(_16/2)}}}
if(_2!=null){var _20=this.getScrollTop(),_21=this.getViewportHeight(),_22=_20+_21,_23=false,_24=false;if(_2+_4>_22)_24=true;if(_2<_20)_23=true;if(_23!=_24||_9){if(_6==this.$o0){_14=_2}else if(_6==this.$o2){_14=(_2+_4)-_21}else{_14=(_2+parseInt(_4/2))
-parseInt(_21/2)}}}
if(_13!=null||_14!=null){if(_7){this.animateScroll(_13,_14,_8);_12=false}else{this.scrollTo(_13,_14,"scrollIntoView")}}}
if(this!=_11&&this.parentElement!=null){var _25=_1,_26=_2;if(_25!=null){_25-=(_13!=null?_13:this.getScrollLeft());_25+=this.getOffsetLeft()}
if(_26!=null){_26-=(_14!=null?_14:this.getScrollTop());_26+=this.getOffsetTop()}
this.parentElement.scrollIntoView(_25,_26,_3,_4,null,null,null,null,null,_10,_11)}
if(_8&&_12)this.fireCallback(_8)},isc.A.intersects=function isc_Canvas_intersects(_1){var _2=_1.getPageLeft(),_3=_1.getVisibleWidth(),_4=_1.getPageTop(),_5=_1.getVisibleHeight();return this.intersectsRect(_2,_4,_3,_5)},isc.A.intersectsRect=function isc_Canvas_intersectsRect(_1,_2,_3,_4){var _5,_6=[];if(isc.isAn.Array(_1))_5=_1;else _5=[_1,_2,_3,_4];return isc.Canvas.rectsIntersect(_5,[this.getPageLeft(),this.getPageTop(),this.getVisibleWidth(),this.getVisibleHeight()])},isc.A.encloses=function isc_Canvas_encloses(_1){var _2=_1.getPageLeft(),_3=_1.getVisibleWidth(),_4=_1.getPageTop(),_5=_1.getVisibleHeight();return this.enclosesRect(_2,_4,_3,_5)},isc.A.enclosesRect=function isc_Canvas_enclosesRect(_1,_2,_3,_4){var _5=[];if(isc.isAn.Array(_1))_5=_1;else _5=[_1,_2,_3,_4];return isc.Canvas.rectEnclosesRect([this.getPageLeft(),this.getPageTop(),this.getVisibleWidth(),this.getVisibleHeight()],_5)},isc.A.$146b=function isc_Canvas__differentEventCharacteristics(_1,_2){var _3=(_1.DOMevent.target&&_1.DOMevent.target.nodeType==1?_1.DOMevent.target:_1.DOMevent.target.parentElement);var _4=(_2.DOMevent.target&&_2.DOMevent.target.nodeType==1?_2.DOMevent.target:_2.DOMevent.target.parentElement);if(_3!=null&&_4!=null&&_3!==_4&&(_3.tagName!==_4.tagName||_3.id!==_4.id))
{return true}
return false},isc.A.containsEvent=function isc_Canvas_containsEvent(){return this.containsPoint(this.ns.EH.getX(),this.ns.EH.getY())},isc.A.getEventEdge=function isc_Canvas_getEventEdge(_1,_2){var _3=this.ns.EH;if(!_1)_1=(this.resizeFrom||_3.ALL_EDGES);if(!isc.isAn.Array(_1))_1=[_1];var _4=this.$ta(),_5=_4.left,_6=_4.right,_7=_4.top,_8=_4.bottom;var _9=this.getPageOffsets(),_10=_9.left+_5,_11=_9.top+_7,_12=(this.getPageRight(_9)-_6)+1,_13=(this.getPageBottom(_9)-_8)+1,_14="",_15="",x,y;if(_2){x=_2[0];y=_2[1]}else{x=_3.getX();y=_3.getY()}
if(y<_11||y>_13||x<_10||x>_12)return null;var _18=this.edgeMarginSize;if(this.minNonEdgeSize>0){if(_1.contains("B")||_1.contains("T")){if(_1.contains("B")&&_1.contains("T")){if((_13-_11)<(this.minNonEdgeSize+2*_18)){_18=(_13-_11)/3}}else{if((_13-_11)<(this.minNonEdgeSize+_18)){_18=(_13-_11)/2}}}
if(_1.contains("L")||_1.contains("R")){if(_1.contains("L")&&_1.contains("R")){if((_12-_10)<(this.minNonEdgeSize+2*_18)){_18=(_12-_10)/3}}else{if((_12-_10)<(this.minNonEdgeSize+_18)){_18=(_12-_10)/2}}}}
if(y>=(_13-_18)&&y<=_13)_15="B";else if(y>=_11&&y<=(_11+_18+1))_15="T";if(x>=(_12-_18)&&x<=_12)_14="R";else if(x>=_10&&x<=(_10+_18+1))_14="L";if(_14!=""||_15!=""){var _19=_15+_14;if(_1.contains(_19))return _19;else if(_14!=""&&_1.contains(_14))return _14;else if(_15!=""&&_1.contains(_15))return _15}
return null},isc.A.getOffsetX=function isc_Canvas_getOffsetX(_1){var _2=this.ns.EH.getX(_1)
-(this.getPageLeft()+this.getLeftBorderSize())+this.getScrollLeft()
-(this.vscrollOn&&this.isRTL()?this.getScrollbarSize():0);return _2},isc.A.getOffsetY=function isc_Canvas_getOffsetY(_1){return this.ns.EH.getY(_1)+this.getScrollTop()
-(this.getPageTop()+this.getTopBorderSize())},isc.A.setClip=function isc_Canvas_setClip(_1,_2,_3,_4){if(isc.isAn.Array(_1))
this.$q6=_1;else
this.$q6=[_1,_2,_3,_4];var _5=this.getClipHandle();if(_5!=null){var _6=this.$q6;_5.style.clip="rect("+_6.join("px ")+"px)"}},isc.A.getScrollbarSize=function isc_Canvas_getScrollbarSize(){if(this.showCustomScrollbars)return this.getCustomScrollbarSize();return isc.Element.getNativeScrollbarSize()},isc.A.getViewportWidth=function isc_Canvas_getViewportWidth(){return this.getVisibleWidth()-
(this.vscrollOn?this.getScrollbarSize():0)-
this.getHMarginBorder()},isc.A.getViewportHeight=function isc_Canvas_getViewportHeight(){return this.getVisibleHeight()-
(this.hscrollOn?this.getScrollbarSize():0)-
this.getVMarginBorder()},isc.A.getOuterViewportWidth=function isc_Canvas_getOuterViewportWidth(){return this.getVisibleWidth()-(this.vscrollOn?this.getScrollbarSize():0)-
this.getHMarginSize()},isc.A.getOuterViewportHeight=function isc_Canvas_getOuterViewportHeight(){return this.getVisibleHeight()-(this.hscrollOn?this.getScrollbarSize():0)-
this.getVMarginSize()},isc.A.getInnerHeight=function isc_Canvas_getInnerHeight(_1){return(_1?this.getVisibleHeight():this.getHeight())
-((this.hscrollOn||this.overflow==isc.Canvas.SCROLL)?this.getScrollbarSize():0)
-this.getVMarginBorder()},isc.A.getInnerWidth=function isc_Canvas_getInnerWidth(_1){var _2=_1?this.getVisibleWidth():this.getWidth();if(this.vscrollOn||this.overflow==isc.Canvas.SCROLL||this.alwaysShowVScrollbar)
_2-=this.getScrollbarSize();return _2-this.getHMarginBorder()},isc.A.getInnerContentHeight=function isc_Canvas_getInnerContentHeight(_1){return Math.max(1,(_1?this.getVisibleHeight():this.getHeight())
-(this.hscrollOn||this.overflow==isc.Canvas.SCROLL?this.getScrollbarSize():0)
-this.getVMarginBorderPad())},isc.A.getInnerContentWidth=function isc_Canvas_getInnerContentWidth(_1){var _2=_1?this.getVisibleWidth():this.getWidth();if(this.vscrollOn||this.overflow==isc.Canvas.SCROLL||this.alwaysShowVScrollbar)
_2-=this.getScrollbarSize();return Math.max(1,_2-this.getHMarginBorderPad())},isc.A.getVBorderPad=function isc_Canvas_getVBorderPad(){return this.getVBorderSize()+this.getVPadding()},isc.A.getHBorderPad=function isc_Canvas_getHBorderPad(){return this.getHBorderSize()+this.getHPadding()},isc.A.getHMarginSize=function isc_Canvas_getHMarginSize(){return this.getLeftMargin()+this.getRightMargin()},isc.A.getVMarginSize=function isc_Canvas_getVMarginSize(){return this.getTopMargin()+this.getBottomMargin()},isc.A.getVMarginBorder=function isc_Canvas_getVMarginBorder(){var _1=this.$sd(),_2=this.$tj();return _1.top+_1.bottom+_2.top+_2.bottom},isc.A.getHMarginBorder=function isc_Canvas_getHMarginBorder(){var _1=this.$sd(),_2=this.$tj();return _1.left+_1.right+_2.left+_2.right},isc.A.getVMarginBorderPad=function isc_Canvas_getVMarginBorderPad(){return this.getVMarginSize()+this.getVBorderPad()},isc.A.getHMarginBorderPad=function isc_Canvas_getHMarginBorderPad(){return this.getHMarginSize()+this.getHBorderPad()},isc.A.getClipWidth=function isc_Canvas_getClipWidth(){return this.getVisibleWidth()},isc.A.getClipHeight=function isc_Canvas_getClipHeight(){return this.getVisibleHeight()},isc.A.getVisibleWidth=function isc_Canvas_getVisibleWidth(_1){if((this.$if||this.$pu)&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_V)){return Math.max(this.width,this.minWidth,(this.getScrollWidth(_1)+this.getHMarginBorder()))}else{var _2=this.isAnimating(this.$do)?this.$showAnimationInfo:this.isAnimating(this.$zb)?this.$hideAnimationInfo:null;if(_2!=null&&!_2.$1l&&this.vscrollOn){var _3=0;if(this.vscrollbar.visibility==isc.Canvas.HIDDEN){_3=this.getScrollbarSize()}else{_3=this.getScrollbarSize()-this.getScrollbarSize()}
return Math.max(this.getWidth()-_3,1)}
return this.getWidth()}},isc.A.getVisibleHeight=function isc_Canvas_getVisibleHeight(_1){if((this.$if||this.$pu)&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H))
{return Math.max(this.getHeight(),this.getMinHeight(),(this.getScrollHeight(_1)+this.getVMarginBorder()))}else{if(this.isAnimating()){var _2=this.isAnimating(this.$do)?this.$showAnimationInfo:this.isAnimating(this.$zb)?this.$hideAnimationInfo:null;if(_2!=null&&_2.$1l&&this.hscrollOn){var _3=0;if(this.hscrollbar&&this.hscrollbar.visibility==isc.Canvas.HIDDEN){_3=this.getScrollbarSize()}else{_3=this.getScrollbarSize()-this.getScrollbarSize()}
return Math.max(this.getHeight()-_3,1)}}
return this.getHeight()}},isc.A.getPeerRect=function isc_Canvas_getPeerRect(){var _1=this.getPageRect();if(this.peers==null)return _1;for(var i=0;i<this.peers.length;i++){var _3=this.peers[i];if(!_3.isDrawn()||(this.isVisible()&&!_3.isVisible()))continue;if((!this.vscrollOn&&_3==this.vscrollbar)||(!this.hscrollOn&&_3==this.hscrollbar))continue;var _4=_3.getPageRect();if(_4[0]<_1[0])_1[0]=_4[0];if(_4[1]<_1[1])_1[1]=_4[1];var _5=_4[0]+_4[2];if(_5>_1[0]+_1[2])_1[2]=_5-_1[0];var _6=_4[1]+_4[3];if(_6>_1[1]+_1[3])_1[3]=_6-_1[1]}
return _1},isc.A.moveBy=function isc_Canvas_moveBy(_1,_2,_3,_4){var _5=_3&&_4;if(!_5&&this.rectAnimation)this.finishAnimation("rect");else if(!_3&&this.moveAnimation)this.finishAnimation("move");if(isc.$cv)arguments.$cw=this;if(isc.isA.Number(_1))
this.left+=_1;else
_1=0;if(isc.isA.Number(_2))
this.top+=_2;else
_2=0;var _6=(_1!=0||_2!=0);if(!_6&&!_4)return false;this.$tx=_1;this.$ty=_2;var _7=this.left,_8=this.top,_9=(_4&&this.$tz?this.width:null),_10=(_4&&this.$t0?this.$o8:null);if(this.isDrawn()){var _11=this.getClipHandle(),_12=_11.getAttribute(this.$143e);if(_12){_12=parseInt(_12,10)}else{_12=0}
var _13=this.$143f(),d=_13-_12;if(d!=0){this.$808=this.$809=null;this.$81b()}
_8+=d}
this.$q5(_7,_8,_9,_10);if(this.isDrawn()){var _13=this.$143f(),_11=this.getClipHandle();if(_13!=0)_11.setAttribute(this.$143e,String(_13));else _11.removeAttribute(this.$143e)}
if(_4)this.$t1();this.$t2();return _6},isc.A.$t2=function isc_Canvas__completeMoveBy(){var _1=(this.$tx||0),_2=(this.$ty||0),_3;this.$tx=_3;this.$ty=_3;if(!_1&&!_2)return;this.$t3(this,_1,_2);this.$t4(_1,_2);if(this.parentElement)this.parentElement.childMoved(this,_1,_2);if(this.masterElement)this.masterElement.peerMoved(this,_1,_2);if(this._useFocusProxy&&this.$qj){var _4=this.$qq();if(_4!=null){var _5=parseInt(_4.style.left)+_1,_6=parseInt(_4.style.top)+_2;_4.style.left=_5+"px";_4.style.top=_6+"px"}}
this.$808=this.$809=null;this.handleMoved(_1,_2)},isc.A.handleMoved=function isc_Canvas_handleMoved(_1,_2){if(!this.$832&&this.isDrawn()&&this.parentElement==null&&!isc.Page.pollPageSize)
{isc.EH.fireOnPause("checkForBodyOverflowChange",{target:isc.Canvas,methodName:"checkForPageResize"},100)}
this.moved(_1,_2)},isc.A.moved=function(deltaX,deltaY){},isc.A.parentMoved=function isc_Canvas_parentMoved(_1,_2,_3){},isc.A.handleParentMoved=function isc_Canvas_handleParentMoved(_1,_2,_3){this.$808=this.$809=null;this.parentMoved(_1,_2,_3);this.$t3(_1,_2,_3)},isc.A.$t3=function isc_Canvas__fireParentMoved(_1,_2,_3){var _4=this.children;if(_4!=null){for(var i=0;i<_4.length;i++){if(isc.isA.Canvas(_4[i])){_4[i].handleParentMoved(_1,_2,_3)}}}},isc.A.childMoved=function isc_Canvas_childMoved(_1,_2,_3){if(this.editingOn&&this.editContext){this.editContext.saveCoordinates(_1);if(this.editProxy&&this.editProxy.canSelectChildren&&!this.$128p){var _4=this.editContext.getSelectedComponents();if(_4.length>0&&_4.contains(_1)){this.$128p=true;for(var i=0;i<_4.length;i++){if(_4[i]!=_1){_4[i].moveBy(_2,_3)}}
this.$128p=false}}}
if(_1&&_1.masterElement!=null&&_1.containedPeer==true)return;if(this.allowContentAndChildren&&this.overflow==isc.Canvas.VISIBLE)
this.$t5=true;this.$t6(this.$o4)},isc.A.$t4=function isc_Canvas__fireMasterMoved(_1,_2){var _3=this.peers;if(_3==null)return;for(var i=0;i<_3.length;i++){if(_3[i])_3[i].masterMoved(_1,_2)}},isc.A.masterMoved=function isc_Canvas_masterMoved(_1,_2){if(this.$ns)this.moveBy(_1,_2)},isc.A.peerMoved=function isc_Canvas_peerMoved(_1,_2,_3){},isc.A.dragRepositioned=function isc_Canvas_dragRepositioned(){},isc.A.getDelta=function isc_Canvas_getDelta(_1,_2,_3,_4){if(_2==null)return null;var _5=_1,_6=this.$pb[_1];if(_1==this.$o5)_5=this.$o7;if(isc.isA.Number(_2)){var _7=Math.round(_2);if(_7!=_2){this.logWarn(_1+" specified as fractional coordinate:"+_2+". Rounded to:"+_7);_2=_7}}else if(isc.isA.String(_2)&&isc.endsWith(_2,this.$o9)){this[_6]=_2;if(this.masterElement==null&&this.parentElement==null&&this.$rq==null){this.$rq=isc.Page.setEvent(this.$nx,this,isc.Page.FIRE_ONCE)}
if(this.$pp){_3=this[_5]=0;if(this.percentBox=="custom")this[_5]=1}
if(this.percentBox=="custom")return 0;var _8,_9,_10,_11=(_1==this.$oz||_1==this.$o6);if(this.percentSource||(this.snapTo&&this.masterElement)){_8=this.percentSource||this.masterElement;_10=(this.percentBox==this.$520),_9=_11?(_10?_8.getViewportWidth():_8.getVisibleWidth()):(_10?_8.getViewportHeight():_8.getVisibleHeight())}else{_8=this.parentElement;if(isc.Layout&&isc.isA.Layout(_8)&&_8.hasMember(this)){_9=_8.vertical!=_11?_8.getTotalMemberSpace():_8.getBreadth()-_8.$2u()}else if(_8){_9=_11?_8.getInnerWidth():_8.getInnerHeight()}else{_9=_11?isc.Page.getWidth():isc.Page.getHeight()-this.$143f()}}
if(isc.Browser.isIE&&!isc.Page.isLoaded()&&((isc.Page.getWidth()==0)||(isc.Page.getHeight()==0)))
{isc.Page.setEvent("load","if(window["+this.ID+"])"+this.ID+".pageResize()",isc.Page.FIRE_ONCE);this.$77g=true}
if(isc.Browser.isChrome&&(!isc.Page.isLoaded()||isc.EH.$77e=="load")&&(isc.Page.getWidth()==0||isc.Page.getHeight()==0))
{if(isc.Page.isLoaded()){isc.Page.setEvent("idle","if(window."+this.ID+")"+this.ID+".pageResize()",isc.Page.FIRE_ONCE)}else{isc.Page.setEvent("load","if(window."+this.ID+")"+this.ID+".delayCall('pageResize',[],100)",isc.Page.FIRE_ONCE)}
this.$77g=true}
_2=Math.round((parseInt(_2,10)/100)*_9);var _12=this[this.$90f[_1]];if(_12!=null&&_2<_12){_2=_12}
var _13=this[this.$90u[_1]];if(_13!=null&&_2>_13){_2=_13}
var _14=_2-_3;if(_14==0&&_4&&(_1==this.$o6||_1==this.$o5)){this.updateUserSize(this[_6],_1,null,true)}
return _14}
var _15=_2;if(!isc.isA.Number(_2)){_2=parseInt(_2);if(isc.isA.Number(_2)&&isc.isA.String(_3)){this[_5]=_3=_2}}
if(_4)this[_6]=null;if(!isc.isA.Number(_2)||(_2<0&&(_1==this.$o6||_1==this.$o5)))
{var _16=false;if(_15!="*"){this.logWarn("ignoring bad or negative "+_1+": "+_15+(this.logIsDebugEnabled("sizing")?this.getStackTrace():" [enable 'sizing' log for stack trace]"))}else{_16=this.updateUserSize("*",_1,null,true,true)}
if(!_16&&(_3==this[_1]||_3==this[_5]))
{_3=this.restoreDefaultSize(_1==this.$o5)}
this.adjustOverflow();return null}
var _14=_2-_3;if(_14==0&&_4&&(_1==this.$o6||_1==this.$o5)){this.updateUserSize(_2,_1,null,true)}
return _14},isc.A.updateUserSize=function isc_Canvas_updateUserSize(_1,_2,_3,_4,_5){var _6=this.parentElement;if(_4){var _7,_8=this.canvasItem,_9=isc.Layout&&isc.isA.Layout(_6);if(this.$pp||(!_5&&((_9&&_6.$2z)||(_8&&_8.$181)||(!_9&&!_8)||this.$189f)))
{return _5?_9&&_6.hasMember(this):_7}}
if(_2==this.$o6){if(this.$pn!=_1){if(_3!=null){var _10=this.$pn;this.$pn=_1;_6.$3p(_10,this,_3,true)}else{this.$pn=_1}}}else{if(this.$po!=_1){if(_3!=null){var _11=this.$po;this.$po=_1;_6.$3p(_11,this,_3)}else{this.$po=_1}}}
if(_5)return _6?_6.childUserSizeChanged(this,_2):false},isc.A.childUserSizeChanged=function isc_Canvas_childUserSizeChanged(){return false},isc.A.restoreDefaultSize=function isc_Canvas_restoreDefaultSize(_1){var _2=_1?this.$o5:this.$o6,_3=this.getClass().getInstanceProperty(_2);if(!isc.isA.Number(_3)){if(_1)_3=this.defaultHeight;else _3=this.defaultWidth}
var _4=this[_2]=(isc.isA.Number(_3)?_3:0);if(_1)this.$o8=_4;return _4},isc.A.pageResize=function isc_Canvas_pageResize(){this.$832=true;this.$rq=null;this.$77g=null;this.$qw();delete this.$832},isc.A.moveTo=function isc_Canvas_moveTo(_1,_2,_3,_4){if(!_4&&_1==null&&_2==null)return false;if(isc.$cv)arguments.$cw=this;if(_1!=null&&_1.top!=null){_2=_1.top;_1=_1.left}
var _5=this.getDelta(this.$oz,_1,this.getLeft(),true),_6=this.getDelta(this.$o0,_2,this.getTop(true),true);return this.moveBy(_5,_6,_3,_4)},isc.A.moveToEvent=function isc_Canvas_moveToEvent(_1,_2){var _3=this.ns.EH.getLastEvent(),x=_3.x,y=_3.y;if(isc.isA.Number(_1))x-=_1;if(isc.isA.Number(_2))y-=_2;var _6=this.ns.EH;var _7=_6.getDragTarget(_3);var _8;if(_6.getDragTarget().canDrop){_8=_6.getDropTarget(_3);if(_8){if(!_7.snapOnDrop||!_8.shouldSnapOnDrop(_7)){_8=null}}else{_8=_6.getDragTarget(_3).parentElement}}else{_8=_6.getDragTarget(_3).parentElement}
var _9=_7.snapToGrid,_10=_7.snapToAlign,_11=(_8?_8.childrenSnapToGrid:null),_12=(_8?_8.childrenSnapAlign:null);if(_7.editingOn&&_7.editProxy)_9=_7.editProxy.snapToGrid||_9;if(_8&&_8.editingOn&&_8.editProxy){_11=_8.editProxy.willAcceptDrop()&&(_8.editProxy.childrenSnapToGrid||_11)}
if(_7.editingOn&&_7.editProxy)_10=_7.editProxy.snapToAlign||_10;if(_8&&_8.editingOn&&_8.editProxy){_8.editProxy.willAcceptDrop()&&(_12=_8.editProxy.childrenSnapAlign||_12)}
if(_8&&_8.editingOn&&isc.isA.Canvas(_8)&&_9!=true&&_11!=true&&_8.editProxy&&(!_8.editProxy.canAdd(_7.getClassName())||!_8.editProxy.willAcceptDrop())&&_8.parentElement)
{if(_8.parentElement.containsPoint(_3.x,_3.y)&&_8.parentElement.childrenSnapToGrid){_8=_8.parentElement;_11=_8.childrenSnapToGrid;if(_8&&_8.editingOn&&_8.editProxy)_11=_8.editProxy.childrenSnapToGrid||_11}}
var _13=_9||_10||_11||_12;if(isc.isA.Canvas(_8)&&_13){if(_8.noSnapDragOffset(this)){x=_3.x,y=_3.y}
if(_8.suppressHSnapOffset==true)x=_3.x;if(_8.suppressVSnapOffset==true)y=_3.y;if(_8.snapAxis==isc.Canvas.HORIZONTAL||_8.snapAxis==isc.Canvas.BOTH)
{var _14=(_8.getPageLeft()+_8.getLeftBorderSize()+_8.getLeftMargin()-_8.getScrollLeft());x-=_14;var _15=x,_16=_8.getHSnapPosition(x);if((_11||_9)&&!_3.shiftKey){_15=_16+_8.getHSnapOrigin(_7)}
if(_12||_10){var _17=_8.$152i(_7,x);if(_17){if(_17.snapCoordinate.isBetween(x,_16,true)){_17.show();_15=_17.snapCoordinate+_8.getHSnapOrigin(_7)}else{_17.hide()}}}
x=_15+_14}
if(_8.snapAxis==isc.Canvas.VERTICAL||_8.snapAxis==isc.Canvas.BOTH)
{var _14=(_8.getPageTop()+_8.getTopBorderSize()+_8.getTopMargin()-_8.getScrollTop());y-=_14;var _15=y,_16=_8.getVSnapPosition(y);if((_11||_9)&&!_3.shiftKey){_15=_16+_8.getVSnapOrigin(_7)}
if(_12||_10){var _17=_8.$152j(_7,y);if(_17){if(_17.snapCoordinate.isBetween(y,_16,true)){_17.show();_15=_17.snapCoordinate+_8.getVSnapOrigin(_7)}else{_17.hide()}}}
y=_15+_14}}
this.setPageRect(x,y)},isc.A.getVSnapOrigin=function isc_Canvas_getVSnapOrigin(_1){return this.VSnapOrigin?this.VSnapOrigin:0},isc.A.getHSnapOrigin=function isc_Canvas_getHSnapOrigin(_1){return this.HSnapOrigin?this.HSnapOrigin:0},isc.A.placeNextTo=function isc_Canvas_placeNextTo(_1,_2,_3,_4){var _5=_1.getPeerRect(),_6=this.getPeerRect(),_7=isc.Canvas.$t7(_6[2],_6[3],_5,_2,_3,_4);this.setPageRect(_7[0],_7[1])},isc.A.showNextTo=function isc_Canvas_showNextTo(_1,_2,_3,_4){if(_2==null)_2="right";if(_3==null)_3=false;this.placeNextTo(_1,_2,_3);if(_4){if(!this.parentElement||this.parentElement.isDrawn()){this.draw()}
if(!this.isVisible())this.show()}else{this.animateShow("fade")}},isc.A.placeNear=function isc_Canvas_placeNear(_1,_2){if(isc.isAn.Array(_1)){_2=_1[1];_1=_1[0]}else if(isc.isAn.Object(_1)){_2=_1.top;_1=_1.left}
if(this.showShadow&&this._shadow)this.updateShadow();var _3=this.getPeerRect(),_4=isc.Canvas.$t7(_3[2],_3[3],{left:_1,top:_2});this.setPageRect(_4[0],_4[1])},isc.A.resizeBy=function isc_Canvas_resizeBy(_1,_2,_3,_4,_5,_6){if(isc.$cv)arguments.$cw=this;var _7=_3&&_4;if(!_7&&this.rectAnimation)this.finishAnimation("rect");if(!_3){if(_7&&this.resizeAnimation)this.finishAnimation("resize");if(this.hideAnimation)this.finishAnimation("hide");if(this.showAnimation)this.finishAnimation("show")}
var _8=this.getWidth(),_9=this.getHeight();if(isc.isA.Number(_1)){this.width+=_1;if(!this.$pp)this.$t8=true}else{_1=0}
if(isc.isA.Number(_2)){this.height=this.$o8=_9+_2;if(!this.$pp)this.$t9=true}else{_2=0}
if(_1==0&&_2==0&&!_6)return false;this.$tz=_1;this.$t0=_2;this.$ua=_3;if(this.isDrawn()&&this.logIsInfoEnabled(this.$nx)){this.logInfo("resize of drawn component: new width/height: "+[this.width,this.$o8]+", old width/height: "+[_8,_9]+", delta width/height: "+[_1,_2]+(this.logIsDebugEnabled(this.$nx)?this.getStackTrace():""),this.$nx)}
if(!_4){var _10=this.$q6;if(isc.isAn.Array(_10)){_10[1]+=_1;_10[2]+=_2}
var _11=this.getDrawnState();if(_11==isc.Canvas.COMPLETE){this.$q5(this.left,this.top,this.width,this.$o8);if(isc.isAn.Array(_10))this.setClip(_10)}else if(_11!=isc.Canvas.UNDRAWN){this.$q4=true}
this.$t1(_5,_6)}
return true},isc.A.$t1=function isc_Canvas__completeResizeBy(_1,_2){var _3=(this.$tz||0),_4=(this.$t0||0),_5=this.$ua,_6;this.$tz=_6;this.$t0=_6;this.$ua=_6;if(!_3&&!_4&&!_2)return;var _7;if(this.isDrawn()){_7=this.shouldRedrawOnResize(_3,_4,_5);if(_7){this.markForRedraw(this.$nx)}}
if(!_5){var _8=this.$187z;this.$187z=true;this.layoutChildren(this.$pc,_3,_4);this.$187z=_8}
if((isc.Browser.isMoz||isc.Browser.isSafari)&&this.containsIFrame())this.$pw();this.$ub(_3,_4);if(!_7)this.adjustOverflow(this.$nx);if(!_5&&this._useFocusProxy&&this.$qj){var _9=this.$sl();if(_9!=null){_9.style.width=this.getWidth()+isc.px;_9.style.height=this.getHeight()+isc.px}}
this.resizePeersBy(_3,_4);this.$5y(_3,_4,_1)},isc.A.shouldRedrawOnResize=function isc_Canvas_shouldRedrawOnResize(_1,_2){var _3=this.redrawOnResize;if(_3==null){_3=!((this.children!=null&&this.children.length>0&&!this.allowContentAndChildren)||(this.getInnerHTML==isc.Canvas.$b4.getInnerHTML&&!isc.isA.Function(this.contents)))}
return _3},isc.A.dragResizing=function isc_Canvas_dragResizing(){var _1=isc.EH;return(_1.dragging&&_1.dragOperation==_1.DRAG_RESIZE&&_1.dragTarget==this)},isc.A.$5y=function(deltaX,deltaY,reason){if(isc.$cv)arguments.$cw=this;if(this.snapTo)this.$qw(true);if(this.parentElement)this.parentElement.childResized(this,deltaX,deltaY,reason);if(this.masterElement)this.masterElement.peerResized(this,deltaX,deltaY,reason);var peers=this.peers;if(peers){for(var i=0;i<peers.length;i++){if(isc.isA.Canvas(peers[i]))peers[i].masterResized(deltaX,deltaY,reason)}}
if(this.clipCorners&&this.$uc){var clips=this.$uc;if(clips.TR)clips.TR.moveBy(deltaX,null);if(clips.BL)clips.BL.moveBy(null,deltaY);if(clips.BR)clips.BR.moveBy(deltaX,deltaY)}
if(this.$ud!=null)delete this.$ud;if(this.$ue!=null)delete this.$ue;this.resized(deltaX,deltaY,reason);if(!this.$832&&this.isDrawn()&&this.parentElement==null&&!isc.Page.pollPageSize)
{isc.EH.fireOnPause("checkForBodyOverflowChange",{target:isc.Canvas,methodName:"checkForPageResize"},100)}},isc.A.$ub=function isc_Canvas__handleResized(){},isc.A.resized=function isc_Canvas_resized(_1,_2){},isc.A.innerSizeChanged=function isc_Canvas_innerSizeChanged(_1){this.$81b();this.layoutChildren(_1);var _2=this.peers;if(_2){for(var i=0;i<_2.length;i++){if(!_2[i].percentSource&&_2[i].snapTo&&_2[i].percentBox==this.$520)
{_2[i].$qw()}}}},isc.A.setPercentSource=function isc_Canvas_setPercentSource(_1,_2){if(isc.isA.String(_1))_1=window[_1];if(!_2&&this.percentSource==_1)return;if(this.percentSource&&this.isObserving(this.percentSource,"innerSizeChanged")){this.ignore(this.percentSource,"innerSizeChanged");this.ignore(this.percentSource,"resized")}
if(!isc.isA.Canvas(_1)){this.percentSource=null;return}
this.percentSource=_1;this.observe(_1,"innerSizeChanged","observer.percentSourceInnerSizeChanged()");this.observe(_1,"resized","observer.$qw()")},isc.A.percentSourceInnerSizeChanged=function isc_Canvas_percentSourceInnerSizeChanged(){if(this.percentBox==this.$520)this.$qw()},isc.A.childResettingHandleForAdjustOverflow=function isc_Canvas_childResettingHandleForAdjustOverflow(){if(this.overflow==isc.Canvas.VISIBLE){if(this.parentElement)this.parentElement.childResettingHandleForAdjustOverflow()}else{this.$1051=this.getScrollLeft();this.$1052=this.getScrollTop()}},isc.A.childResetHandleForAdjustOverflowComplete=function isc_Canvas_childResetHandleForAdjustOverflowComplete(){if(this.overflow!=isc.Canvas.VISIBLE){this.scrollTo(this.$1051,this.$1052);this.$1051=this.$1052=null}},isc.A.childResized=function isc_Canvas_childResized(_1,_2,_3,_4){if(_1==this.componentMask)return;if(this.editingOn&&this.editContext){this.editContext.saveCoordinates(_1)}
if(this.allowContentAndChildren&&this.overflow==isc.Canvas.VISIBLE)
this.$t5=true;this.$t6(this.$pd)},isc.A.peerResized=function isc_Canvas_peerResized(_1,_2,_3,_4){},isc.A.masterResized=function isc_Canvas_masterResized(_1,_2,_3){this.$qw()},isc.A.dragResized=function isc_Canvas_dragResized(){},isc.A.resizePeersBy=function isc_Canvas_resizePeersBy(_1,_2){var _3=this.peers;if(_3){for(var i=0;i<_3.length;i++){if(_3[i]&&_3[i].masterElement==this&&_3[i].$jo){_3[i].resizeBy(_1,_2)}}}},isc.A.layoutChildren=function isc_Canvas_layoutChildren(_1,_2,_3){if(this.children)this.$uf()},isc.A.$uf=function isc_Canvas__resolveChildPercentSizes(){var _1=this.children;if(_1!=null&&_1.length>0){for(var i=0;i<_1.length;i++){if(isc.isA.Canvas(_1[i]))_1[i].parentResized()}}});isc.evalBoundary;isc.B.push(isc.A.$1870=function isc_Canvas__resolveSnapToForChildren(){var _1=this.children;if(_1!=null&&_1.length>0){for(var i=0;i<_1.length;i++){var _3=_1[i];if(isc.isA.Canvas(_3)&&_3.snapTo)_3.$qw()}}},isc.A.$1652=function isc_Canvas__equalsCurrentSize(_1,_2){return(_1==null||this.getDelta(this.$o6,_1,this.getWidth())==0)&&(_2==null||this.getDelta(this.$o5,_2,this.getHeight())==0)},isc.A.resizeTo=function isc_Canvas_resizeTo(_1,_2,_3,_4,_5,_6){if(isc.$cv)arguments.$cw=this;if(_1==null&&_2==null)return false;var _7=this.getDelta(this.$o6,_1,this.getWidth(),!_6),_8=this.getDelta(this.$o5,_2,this.getHeight(),!_6);return this.resizeBy(_7,_8,_3,_4,_5)},isc.A.resizeToEvent=function isc_Canvas_resizeToEvent(_1){var _2=this.ns.EH,_3=_2.getLastEvent(),x=_3.x,y=_3.y,_6=this.getPageLeft(),_7=_6,_8=this.getPageTop(),_9=_8,_10=this.getPageRight(),_11=_10,_12=this.getPageBottom(),_13=_12,_14=this.getVisibleWidth(),_15=this.getVisibleHeight();var _16=_2.getDragTarget(_3);var _17=_16.parentElement||_16.$175w;if(_17){var _18=_16.snapResizeToGrid==true||(_16.snapResizeToGrid==null&&_16.snapToGrid==true);var _19=_16.resizeSnapAlign||(_16.resizeSnapAlign==null&&_18);var _20=_16.snapResizeToGrid==null&&(_17.childrenSnapResizeToGrid==true||(_17.childrenSnapResizeToGrid==null&&_17.childrenSnapToGrid==true));var _21=_17.childrenResizeSnapAlign||(_17.childrenResizeSnapAlign==null&&_20);if(_16.editingOn&&_16.editProxy){_18=_16.editProxy.snapToGrid||_18}
if(_17&&_17.editingOn&&_17.editProxy){_20=_17.editProxy.childrenSnapToGrid||_20}
if(_16.editingOn&&_16.editProxy){_19=_16.editProxy.snapToAlign||_19}
if(_17&&_17.editingOn&&_17.editProxy){_21=_17.editProxy.childrenSnapAlign||_21}
var _22=_18||_19||_20||_21;if(_22){if(_17.snapAxis==isc.Canvas.HORIZONTAL||_17.snapAxis==isc.Canvas.BOTH)
{var _23=(_17.getPageLeft()+_17.getLeftBorderSize()+_17.getLeftMargin()-_17.getScrollLeft());x-=_23;var _24=x,_25=_17.getHSnapPosition(x);if((_20||_18)&&!_3.shiftKey){_24=_25+_17.getHSnapOrigin(_16)}
if(_21||_19){var _26=_17.$152i(_16,x,_1);if(_26){if(_26.snapCoordinate.isBetween(x,_25,true)){_26.show();_24=_26.snapCoordinate+_17.getHSnapOrigin(_16)}else{_26.hide()}}}
x=_24+_23}
if(_17.snapAxis==isc.Canvas.VERTICAL||_17.snapAxis==isc.Canvas.BOTH)
{var _23=(_17.getPageTop()+_17.getTopBorderSize()+_17.getTopMargin()-_17.getScrollTop());y-=_23;var _24=y,_25=_17.getVSnapPosition(y);if((_20||_18)&&!_3.shiftKey){_24=_25+_17.getVSnapOrigin(_16)}
if(_21||_19){var _26=_17.$152j(_16,y);if(_26){if(_26.snapCoordinate.isBetween(y,_25,true)){_26.show();_24=_26.snapCoordinate+_17.getVSnapOrigin(_16)}else{_26.hide()}}}
y=_24+_23}}}
if(this.logIsDebugEnabled("dragResize")){this.logDebug("resizeToEvent: coords: "+isc.Log.echo({x:x,y:y,left:_7,top:_9,right:_11,bottom:_13}),"dragResize")}
_1=_1||_2.resizeEdge||"BR";var _27=_1.contains("T"),_28=!_27&&_1.contains("B");if(_27){var _29=Math.min(this.maxHeight,Math.max(_13-y,this.minHeight));_9=_13-_29}else if(_28){var _29=Math.min(this.maxHeight,Math.max(y-_9,this.minHeight));_13=_9+_29}
var _30=_1.contains("L"),_31=!_30&&_1.contains("R");if(_30){var _32=Math.min(this.maxWidth,Math.max(_11-x,this.minWidth));_7=_11-_32}else if(_31){var _32=Math.min(this.maxWidth,Math.max(x-_7,this.minWidth));_11=_7+_32}
var _33=_11-_7,_34=_13-_9;var _35=false,_36=0,_37=0,_38=0,_39=0,_40=0,_41=0;var _42=_2.dragTarget;if(_42.$151o&&(_30||_31)&&(_27||_28))
{var _43=_2.dragTargetStartRect,_36=_43[2],_37=_43[3];if(_36!=0&&_37!=0){_35=true;_38=_7;_39=_9;_40=_11;_41=_13;if(_42.$1518()){var _44=_42.$1519(false),_45=_44[0],_46=_45+_44[2],_47=_44[1],_48=_47+_44[3];if(_7<_45){_7=_45}else if(_11>_46){_11=_46}
_33=_11-_7;if(_9<_47){_9=_47}else if(_13>_48){_13=_48}
_34=_13-_9}
var _49=_42.getDragMinWidth(),_50=_42.getDragMinHeight(),_51=(_33/_36),_52=(_34/_37);if(_51<_52){var _53=Math.round(_34-_51*_37);if(_34-_53<_50){if(_53>0&&_33==Math.round(_50*_36/_37)){_53=_34-_50}else{return}}
if(_28){_13-=_53}else{_9+=_53}
_34=_13-_9}else if(_52<_51){var _54=Math.round(_33-_52*_36);if(_33-_54<_49){if(_54>0&&_34==Math.round(_49*_37/_36)){_54=_33-_49}else{return}}
if(_31){_11-=_54}else{_7+=_54}
_33=_11-_7}}}
var _55=this.$189f;this.$189f=true;var _56=(_27||_30||_35);this.setPageRect(_7,_9,_33,_34,_56);this.$189f=_55;if(_35&&_42.getDragAppearance(isc.EH.DRAG_RESIZE)!=isc.EH.OUTLINE)
{var _57=(this.$l0!=null&&!this.$l0.destroyed);if(_57){this.$l0.fitToMaster()}
var _58=this.getPageLeft(),_59=this.getPageTop(),_60=this.getVisibleWidth(),_61=this.getVisibleHeight();if(_7!=_58||_9!=_59||_33!=_60||_34!=_61)
{var _49=Math.max(this.dragMinWidth,this.minWidth,_60),_50=Math.max(this.dragMinHeight,this.minHeight,_61);_7=_38;_9=_39;_11=_40;_13=_41;_33=_40-_38;_34=_41-_39;if(_33<_49||_34<_50){this.setPageRect(_6,_8,_14,_15,_56);if(_57){this.$l0.fitToMaster()}
return}
var _51=(_33/_36),_52=(_34/_37);if(_51<_52){var _53=Math.round(_34-_51*_37);if(_34-_53<_50){if(_53>0&&_33==Math.round(_50*_36/_37)){_53=_34-_50}else{this.setPageRect(_6,_8,_10-_6,_12-_8,_56);if(_57){this.$l0.fitToMaster()}
return}}
if(_28){_13-=_53}else{_9+=_53}
_34=_13-_9}else if(_52<_51){var _54=Math.round(_33-_52*_36);if(_33-_54<_49){if(_54>0&&_34==Math.round(_49*_37/_36)){_54=_33-_49}else{this.setPageRect(_6,_8,_14,_15,_56);if(_57){this.$l0.fitToMaster()}
return}}
if(_31){_11-=_54}else{_7+=_54}
_33=_11-_7}
this.setPageRect(_7,_9,_33,_34,_56)}}
_2.dragResizeWidth=_33;_2.dragResizeHeight=_34;if(this==this.ns.EH.dragTracker)this.redrawIfDirty()},isc.A.$151k=function isc_Canvas__checkProportionalResizing(){var _1=this.$151u,_2=this.$151j();if(_1==_2){return}
if(_1=="none"){if(_2=="always"){this.$151p(this)}else{var _3=(_2=="modifierOff"),_4=this.$151p,_5=this.$151q;if(_3){_4=this.$151q;_5=this.$151p}
var _6=isc.Page.$151i(this.proportionalResizeModifiers);if(_6!=_3){this.$151p(this)}
isc.Page.$151f(this.proportionalResizeModifiers,isc.Page.$1511,_4,_5,this)}}else{this.$151q(this);if(_1!="always"){isc.Page.$151h(this.proportionalResizeModifiers,isc.Page.$1511,this)}}
this.$151u=_2},isc.A.$151p=function isc_Canvas__enableProportionalResizing(_1){if(!_1.$151o){_1.$151o=true;if(_1.dragResizing()){isc.EH.dragMoveTarget.resizeToEvent(isc.EH.resizeEdge)}}},isc.A.$151q=function isc_Canvas__disableProportionalResizing(_1){if(_1.$151o){_1.$151o=false;if(_1.dragResizing()){isc.EH.dragMoveTarget.resizeToEvent(isc.EH.resizeEdge)}}},isc.A.resizeTarget=function isc_Canvas_resizeTarget(_1,_2,_3,_4,_5,_6,_7){_5=_5||0;_4=_4||0;if(_6==null)_6=_2?isc.EH.getY():isc.EH.getX();_6+=_4;if(this.parentElement){var _8=this.getParentPageRect(),_9=_2?(_8[1]+_8[3]):(_8[0]+_8[2]);_9-=_2?this.getVisibleHeight():this.getVisibleWidth();if(_6>_9)_6=_9}
_7=_7!=null?_7:!_2&&this.isRTL();var _10=_2?_1.getDragMinHeight():_1.getDragMinWidth(),_11=_2?_1.getDragMaxHeight():_1.getDragMaxWidth();var _12;if(_7){_12=(_2?_1.getPageBottom():_1.getPageRight())
-(_2?this.getVisibleHeight():this.getVisibleWidth())}else{_12=_2?_1.getPageTop():_1.getPageLeft()}
var _13=!_7?_6-_12-_5:_12-_6-_5;if(_13<_10){_13=_10}else if(_13>_11){_13=_11}
this.$ug=_13;_6=_12+_5+(_7?-_13:_13);if(_3){_2?_1.setHeight(this.$ug):_1.setWidth(this.$ug)}else{_2?this.setPageTop(_6):this.setPageLeft(_6)}},isc.A.finishTargetResize=function isc_Canvas_finishTargetResize(_1,_2,_3){if(_3)return;_2?_1.setHeight(this.$ug):_1.setWidth(this.$ug)},isc.A.parentResized=function isc_Canvas_parentResized(_1){if(isc.$cv)arguments.$cw=this;if(!_1)this.$qw()},isc.A.$qw=function isc_Canvas__resolvePercentageSize(_1){if(this.snapTo!=null&&this.percentBox!="custom"){if((this._percent_width||this._percent_height)&&!_1){this.resizeTo(this._percent_width,this._percent_height)}
var _2,_3,_4;_2=(this.masterElement?this.masterElement:this.parentElement);if(!_2)return;isc.Canvas.snapToEdge(_2,this.snapTo,this,this.snapEdge)}
if(this.snapTo==null&&!_1){if(this._percent_left||this._percent_top||this._percent_width||this._percent_height)
{this.setRect(this._percent_left,this._percent_top,this._percent_width,this._percent_height)}}},isc.A.prepareForDragging=function isc_Canvas_prepareForDragging(){var _1=this.ns.EH;if(_1.dragTarget)return;var _2=false,_3=this.dragOperation;if(isc.Browser.isTouch&&this.touchDragOperation!=null&&_1.$94y===_1.$94w.TOUCH_STARTED)
{_3=this.touchDragOperation}
if(_3){_2=true;_1.dragOperation=_3}else if(this.canDragResize){_1.resizeEdge=this.getEventEdge();if(_1.resizeEdge){_2=true;_1.dragOperation=_1.DRAG_RESIZE;var _4=this.getDragAppearance(_1.DRAG_RESIZE);_1.dragMoveAction=(_4=="tracker")?_1.$ll:_1.$mq}}
if(!_2){if(this.canDragReposition){_2=true;_1.dragOperation=_1.DRAG_REPOSITION;_1.dragMoveAction=_1.$ll}else if(_1.$94y===_1.$94w.TOUCH_STARTED&&(this.hscrollOn||this.vscrollOn)&&!this.dragOperation&&this.useTouchScrolling!=false&&!this.$145k())
{_2=true;_1.dragOperation=_1.DRAG_SCROLL}else if(this.canDrag){_2=true;_1.dragOperation=_1.DRAG}else if(_1.$94y!==_1.$94w.TOUCH_STARTED&&this.canSelectText){_2=true;_1.dragOperation=_1.DRAG_SELECT;this.dragAppearance="none"}}
if(_2){var _5=this;if(_1.dragOperation!=_1.DRAG_SELECT&&this.dragTarget!=null){if(isc.isA.Canvas(this.dragTarget)){_5=this.dragTarget}else if(this.dragTarget=="top"&&this.topElement){_5=this.topElement}else if(this.dragTarget=="parent"&&this.parentElement){_5=this.parentElement}else if(this.dragTarget=="creator"&&this.creator){_5=this.creator}else if(isc.isA.String(this.dragTarget)&&isc.isA.Canvas(window[this.dragTarget]))
{_5=window[this.dragTarget]}else{this.logWarn('prepareForDragging():  target.dragTarget not understood : '+this.dragTarget)}}
_1.dragTarget=_5}},isc.A.dragScrollStart=function isc_Canvas_dragScrollStart(){var _1=this.dragScrollTarget||this;this.$77s=isc.EH.getX();this.$77t=isc.EH.getY();this.$77u=_1.scrollLeft||0;this.$77v=_1.scrollTop||0;this.$77w=this.$77x=isc.EH.getX();this.$77y=this.$77z=isc.EH.getY();this.$770=this.$771=isc.timestamp()},isc.A.dragScrollMove=function isc_Canvas_dragScrollMove(){var _1=this.dragScrollTarget||this;var _2=this.$77s-isc.EH.getX(),_3=this.$77t-isc.EH.getY();_1.scrollTo(this.$77u+_2,this.$77v+_3,"dragScrollMove");if(window.event)window.event.preventDefault();this.$77w=this.$77x;this.$77y=this.$77z;this.$770=this.$771;this.$77x=isc.EH.getX();this.$77z=isc.EH.getY();this.$771=isc.timestamp();return false},isc.A.dragScrollStop=function isc_Canvas_dragScrollStop(){if(!this.momentumScrolling)return;var _1=(this.$771-this.$770);if(_1==0)return;if(isc.timestamp()-this.$771>100)return;var _2=(this.$77x-this.$77w)/_1,_3=(this.$77z-this.$77y)/_1,_4=this,_5=this.dragScrollTarget||this;if(!(isc.isA.DrawPane&&isc.isA.DrawPane(_5))){if(!_5.hscrollOn)_2=0;if(!_5.vscrollOn)_3=0}
if(this.logIsDebugEnabled("dragScroll")){this.logDebug("dragScroll: x/y: "+[this.$77x,this.$77z]+", last: "+[this.$77w,this.$77y]+", elapsed: "+_1+", speed: "+[_2,_3],"dragScroll")}
var _6=this.momentumScrollMinSpeed/1000;if(Math.abs(_2)<_6&&Math.abs(_3)<_6)
{return}
var _7=this.$772=this.registerAnimation(function(_15){var _8=isc.timestamp(),_1=_8-_4.$771;_4.$771=_8;var _9=_2*(1-_15),_10=_3*(1-_15);var _11=Math.round(_9*_1),_12=Math.round(_10*_1);if(this.logIsDebugEnabled("dragScroll")){this.logDebug("animating: elapsed: "+_1+", frame speed: "+[_9,_10]+", distance: "+[_11,_12],"dragScroll")}
if(_11==0&&_12==0)_4.cancelAnimation(_7);var _13=_5.getScrollLeft(),_14=_5.getScrollTop();_5.scrollTo(_5.getScrollLeft()-_11,_5.getScrollTop()-_12,"dragScrollStop");if(_13==_5.getScrollLeft()&&_14==_5.getScrollTop())
{_4.cancelAnimation(_7);_4.$772=null}},this.momentumScrollTime,this.momentumScrollAcceleration)},isc.A.shouldShowNoDropIndicator=function isc_Canvas_shouldShowNoDropIndicator(){return!this.canAcceptDrop||!this.willAcceptDrop()},isc.A.setNoDropIndicator=function isc_Canvas_setNoDropIndicator(){this.$uh=true;this.$k2();if(this.shouldSetNoDropTracker&&isc.EH.dragTracker&&isc.EH.dragTracker.isVisible()){if(!this.$ui)this.$ui=isc.EH.dragTracker.getContents();isc.EH.setDragTracker(this.imgHTML(this.noDropTracker))}},isc.A.clearNoDropIndicator=function isc_Canvas_clearNoDropIndicator(){if(!this.$uh)return;delete this.$uh;this.$k2();if(this.shouldSetNoDropTracker&&isc.EH.dragTracker){isc.EH.setDragTracker(this.$ui);delete this.$ui}},isc.A.shouldDragScroll=function isc_Canvas_shouldDragScroll(){return this.canDragScroll&&(this.hscrollOn||this.vscrollOn)},isc.A.$uj=function isc_Canvas__getVDragScrollDirection(_1){var _2=this.getVDragScrollThreshold();if(_1<_2)return-1;if(_1>(this.getViewportHeight()-_2))return 1;return 0},isc.A.$uk=function isc_Canvas__getHDragScrollDirection(_1){var _2=this.getHDragScrollThreshold();if(_1<_2)return-1;if(_1>(this.getViewportWidth()-_2))return 1;return 0},isc.A.$l4=function isc_Canvas__overDragThreshold(_1){var _2=(this.getOffsetY()-this.getScrollTop()),_3=(this.getOffsetX()-this.getScrollLeft());if(_1!=null){if(_1==isc.Canvas.VERTICAL)
return this.$uj(_2)!=0;else
return this.$uk(_3)!=0}
return(this.$uj(_2)!=0||this.$uk(_3)!=0)},isc.A.getDragScrollThreshold=function isc_Canvas_getDragScrollThreshold(){if(this.dragScrollThreshold!=null){return this.dragScrollThreshold}else{return(isc.Browser.isTouch?"30%":"10%")}},isc.A.getHDragScrollThreshold=function isc_Canvas_getHDragScrollThreshold(){if(this.$ud!=null)return this.$ud;var _1=this.getDragScrollThreshold();if(isc.isA.Number(_1))this.$ud=_1;else{_1=parseInt(_1);if(!isNaN(_1)){this.$ud=parseInt(_1*this.getViewportWidth()/100);return this.$ud}else{isc.Log.logWarn("Unable to resolve specified drag scroll threshold '"+this.getDragScrollThreshold()+"' to a valid size. Should be specified as an absolute pixel value, or a percentage of widget viewport.");return 0}}},isc.A.getVDragScrollThreshold=function isc_Canvas_getVDragScrollThreshold(){if(this.$ue!=null)return this.$ue;var _1=this.getDragScrollThreshold();if(isc.isA.Number(_1))this.$ue=_1;else{_1=parseInt(_1);if(!isNaN(_1)){this.$ue=parseInt(_1*this.getViewportHeight()/100);return this.$ue}else{isc.Log.logWarn("Unable to resolve specified drag scroll threshold '"+this.getDragScrollThreshold()+"' to a valid size. Should be specified as an absolute pixel value, or a percentage of widget viewport.");return 0}}},isc.A.$l5=function isc_Canvas__setupDragScroll(_1,_2){if(this.$ul!=null)return;var _3=(this.getOffsetY()-this.getScrollTop()),_4=(this.getOffsetX()-this.getScrollLeft()),_5=this.$uk(_4),_6=this.$uj(_3);this.$ul=isc.Timer.setTimeout({target:this,methodName:"$um",args:[_5,_6,true,_1,_2]},this.dragScrollDelay)},isc.A.$um=function isc_Canvas__performDragScroll(_1,_2,_3,_4,_5){this.$ul=null;var _6=0,_7=0;var _8=this.containsEvent();if(this.ns.EH.dragging&&(_5||_8)){var _9=this.getOffsetX()-this.getScrollLeft(),_10=this.getOffsetY()-this.getScrollTop(),_11=this.getViewportWidth(),_12=this.getViewportHeight();if(!isc.isA.Number(this.maxDragScrollIncrement)){var _13=parseInt(this.maxDragScrollIncrement);if(!isc.isA.Number(_13))
this.logWarn("Unable to resolve this.maxDragScrollIncrement '"+this.maxDragScrollIncrement+"' to a valid value. This should be an absolute pixel value or a percentage to scroll by.");this.$un=parseInt(_13/100*this.getScrollWidth());this.$uo=parseInt(_13/100*this.getScrollHeight())}else{this.$un=this.$uo=this.maxDragScrollIncrement}
if(!isc.isA.Number(this.minDragScrollIncrement)){var _14=parseInt(this.minDragScrollIncrement);if(!isc.isA.Number(_14))
this.logWarn("Unable to resolve this.minDragScrollIncrement '"+this.minDragScrollIncrement+"' to a valid value. This should be an absolute pixel value or a percentage to scroll by.");this.$up=parseInt(_14/100*(this.getScrollWidth()-_11));this.$uq=parseInt(_14/100*(this.getScrollHeight()-_12))}else{this.$up=this.$uq=this.minDragScrollIncrement}
var _15=(_4==isc.Canvas.VERTICAL?0:this.$uk(_9)),_16=(_4==isc.Canvas.HORIZONTAL?0:this.$uj(_10));if(_3){if(_1!=0&&_1!=_15)
_1=0;if(_2!=0&&_2!=_16)
_2=0}else{_1=_15;_2=_16}
if(_5){var _17=isc.EH.dragTarget;if(this!=_17){if(_1!=0){var _18=_17.getCanvasLeft(this);if(_1<0){if(_18>=0){_1=0}}else{if(_18+_17.getVisibleWidth()
<=this.getViewportWidth())
{_1=0}}}
if(_2!=0){var _19=_17.getCanvasTop(this);if(_2<0){if(_19>=0){_2=0}}else{if(_19+_17.getVisibleHeight()
<=this.getViewportHeight())
{_2=0}}}}}
if(_8){_6=this.getScrollIncrement(_1,_9,_11,this.getHDragScrollThreshold(),this.$un,this.$up);_7=this.getScrollIncrement(_2,_10,_12,this.getVDragScrollThreshold(),this.$uo,this.$uq)}else{_6=_1*this.$un;_7=_2*this.$uo}
if((_6>0&&(this.getScrollLeft()>=this.getScrollRight()))||(_6<0&&(this.getScrollLeft()<=0)))_6=0;if((_7>0&&(this.getScrollTop()>=this.getScrollBottom()))||(_7<0&&(this.getScrollTop()<=0)))_7=0}
if(_6!=0||_7!=0){this.scrollBy(_6,_7);this.$ul=isc.Timer.setTimeout({target:this,methodName:"$um",args:[null,null,null,_4,_5]},50)}else{delete this.$un;delete this.$up;delete this.$uo;delete this.$uq}},isc.A.getScrollIncrement=function isc_Canvas_getScrollIncrement(_1,_2,_3,_4,_5,_6){if(_1==null||_1==0)return 0;if(_1>0){_2=_2-(_3-_4)}else if(_1<0){_2=_4-_2}
if(_2<0||_2>_4)return 0;var _7=_1*
((_2/_4)*(_5-_6)+_6);return parseInt(_7)},isc.A.hasInherentHeight=function isc_Canvas_hasInherentHeight(){if(this.inherentHeight!=null)return this.inherentHeight;return(this.children==null&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_H))},isc.A.hasInherentWidth=function isc_Canvas_hasInherentWidth(){if(this.inherentWidth!=null)return this.inherentWidth;return(this.children==null&&(this.overflow==isc.Canvas.VISIBLE||this.overflow==isc.Canvas.CLIP_V))},isc.A.canOverflowWidth=function isc_Canvas_canOverflowWidth(_1){if(_1==null)_1=this.overflow;return _1==isc.Canvas.VISIBLE||_1==isc.Canvas.CLIP_H},isc.A.canOverflowHeight=function isc_Canvas_canOverflowHeight(_1){if(_1==null)_1=this.overflow;return _1==isc.Canvas.VISIBLE||_1==isc.Canvas.CLIP_V},isc.A.$1316=function isc_Canvas__shouldWriteClipDiv(){return(this.$182c()||(this.useClipDiv&&(!isc.Browser.$113k||(this.overflow==isc.Canvas.VISIBLE&&(!isc.Browser.isOpera||isc.Browser.minorVersion>=11.1)))))},isc.A.getOverflow=function isc_Canvas_getOverflow(){return this.overflow},isc.A.setOverflow=function isc_Canvas_setOverflow(_1){if(this.$va!=null&&!this.$vb)
this.finishAnimation(this.$va);if(this.$vc!=null&&!this.$vd)
this.finishAnimation(this.$vc);if(this.overflow==_1)return;var _2=this.overflow,_3=this.$145l();this.overflow=_1;var _4=this.$145l();if(!_3&&_4){this.$144z();var _5=this.parentElement;while(_5!=null){_5.$144z();_5=_5.parentElement}}else if(_3&&!_4){this.$1440();var _5=this.parentElement;while(_5!=null){_5.$1440();_5=_5.parentElement}}
if(!this.isDrawn())return;var _6=false;if(_1!=isc.Canvas.SCROLL&&_1!=isc.Canvas.AUTO&&(this.hscrollOn||this.vscrollOn))
{if(this.hscrollOn||this.vscrollOn)_6=true;this.hscrollOn=this.vscrollOn=false;if(this.hscrollbar!=null)this.hscrollbar.hide();if(this.vscrollbar!=null)this.vscrollbar.hide()}
if(isc.Browser.isIE&&(_1==isc.Canvas.CLIP_H||_1==isc.Canvas.CLIP_V))
{this.markForRedraw();return}
var _7=isc.EH.getFocusCanvas(),_8;if(_7!=null){if(!_7.hasFocus||!this.contains(_7,true)){_7=null}}
var _9;var _10=this.$113l,_11=this.$1316();if(isc.Browser.$113k&&_10!=_11){_9=this.getHandle();var _12=this.getClipHandle(),_13=_12.parentNode,_14=_12.nextSibling,_15,_16;_8=true;if(isc.Browser.$162h){var _17=_9.ownerDocument.createRange();_17.selectNode(_9);_15=_17.createContextualFragment(this.getTagStart()+this.getTagEnd());this.$113l=_10;this.clearHandle(true);var _18=_15.firstChild;if(_11)_18=_18.firstChild;while((_16=_9.firstChild)!=null){_18.appendChild(_16)}
_13.insertBefore(_15,_14);this.$q3=_18}else{this.$113l=_10;this.clearHandle(true);_15=_9.ownerDocument.createDocumentFragment();while((_16=_9.firstChild)!=null){_15.appendChild(_16)}
var _19;if(_14==null){_19={element:_13,position:"beforeEnd"}}else{_19={element:_14}}
this.$p8(false,_19);this.getHandle().appendChild(_15);this.$if=true}
this.$113l=_11;this.$ve();this.$1728()}
_9=this.getStyleHandle();var _20=this.$rw();_9.overflow=_20;if(isc.Browser.$1395){_9.WebkitOverflowScrolling=this.$145k()?"touch":"auto"}
var _21=this.$rx();_9.width=_21[0]+this.$ph;_9.height=_21[1]+this.$ph;{if(_9.clip!=null&&_9.clip!=""&&_9.clip!="rect(auto auto auto auto)")
{_9.clip=(isc.Browser.isIE?"rect(auto)":"")}
this.$q6=null}
this.adjustOverflow("setOverflow");if(_2==isc.Canvas.VISIBLE&&_1!=isc.Canvas.VISIBLE){var _22=Math.max(this.getScrollWidth()-this.getInnerWidth(),0),_23=Math.max(this.getScrollHeight()-this.getInnerHeight(),0);if(_22>0||_23>0)this.$5y(-_22,-_23,"overflow changed")}else if(_2!=isc.Canvas.VISIBLE&&_1==isc.Canvas.VISIBLE){var _22=Math.max(this.getScrollWidth()-this.getInnerWidth(),0),_23=Math.max(this.getScrollHeight()-this.getInnerHeight(),0);if(_22>0||_23>0)this.$5y(_22,_23,"overflow changed")}else if(_6){this.innerSizeChanged("scrolling state changed")}
if((_1==isc.Canvas.HIDDEN||_1==isc.Canvas.VISIBLE)&&(_2==isc.Canvas.HIDDEN||_2==isc.Canvas.VISIBLE)){}else{this.$ur()}
if(_8&&_7!=null){_7.focus()}},isc.A.$1728=function isc_Canvas__descendentHTMLRefreshed(){var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$1729()}},isc.A.$1729=function isc_Canvas__domRefreshedByParent(){this.$146z();var _1=this.children;for(var i=0,_3=(_1==null?0:_1.length);i<_3;++i){_1[i].$1729()}},isc.A.$t6=function isc_Canvas__markForAdjustOverflow(_1){if(!this.isDrawn()||this.isDirty()||this.destroying||this.$66p)return;if(!this.$rm){if(this.logIsDebugEnabled())
this.logDebug("delaying adjustOverflow: "+(_1?_1:this.getStackTrace()));var _2=this;this.$rn=isc.Timer.setTimeout(function(){if(!_2.destroyed)_2.adjustOverflow(_1,true)},0)}
this.$rm=true},isc.A.adjustForContent=function isc_Canvas_adjustForContent(_1){var _2="adjustForContent() called";if(_1)this.adjustOverflow(_2);else this.$t6(_2)},isc.A.$qy=function isc_Canvas__browserDoneDrawing(){var _1=this.getHandle();if(isc.Browser.isOpera){var _1=this.getHandle();return!(_1.scrollHeight==0&&_1.scrollWidth==0)}
if(!isc.Browser.isIE){var _2=this.getClipHandle();if(_2==null)return false;var _3=_2.scrollHeight;if(_3==null||_3==0)_3=this.getClipHandle().offsetHeight;return _3!=0}
var _4;if(isc.Browser.isWin){return _1!=null&&_1.scrollHeight!=this.$n1&&_1.scrollHeight!=0}},isc.A.adjustOverflow=function isc_Canvas_adjustOverflow(_1,_2,_3){if(isc.$cv)arguments.$cw=this;if(_2&&!this.$rm){return}
this.$rm=false;if(!this.isDrawn()||this.overflow==isc.Canvas.IGNORE)return true;if(!this.adjustOverflowWhileDirty&&!_3&&this.isDirty()&&(this.overflow!=isc.Canvas.VISIBLE))
{return}
if(!isc.Page.isLoaded()&&(isc.Browser.isSafari||isc.Page.delayAdjustOverflowUntilLoad||(isc.Browser.isMoz&&isc.Browser.geckoVersion<20040616)))
{isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"$us");if(isc.Browser.isMoz)return}
if(this.$417)return;if(this.$qy())return this.$ut(_1);if(this.logIsDebugEnabled("overflow")){this.logDebug("browser not done drawing, deferring overflow.","overflow");if(this.$113l){this.logDebug("clipHandle sizes: "+this.echoElementSize(this.getClipHandle()),"overflow")}
this.logDebug("handle sizes: "+this.echoElementSize(this.getHandle()),"overflow")}
if(!this.$uu){this.$t6();this.$uu=true}else{this.logDebug("still waiting for size to become available","overflow");this.$uv()}
return false},isc.A.$us=function isc_Canvas__adjustOverflowForPageLoad(){if(!this.destroyed&&this.isDrawn())this.adjustOverflow("pageLoad")},isc.A.$uv=function isc_Canvas__queueForDelayedAdjustOverflow(){isc.Canvas.$uv(this.getID())},isc.A.$ut=function isc_Canvas__adjustOverflow(_1){if(this.$uw){return}
this.$uw=true;if(this.componentMask!=null&&this.componentMask.isDrawn()){this.componentMask.resizeTo(1,1)}
this.$ux(_1);if(this.componentMask!=null&&this.componentMask.isDrawn()){this.$168s()}
this.$uw=false},isc.A.$ux=function isc_Canvas___adjustOverflow(_1){if(!this.$pe[this.overflow]){this.logWarn("This widget has overflow specified as "+this.echo(this.overflow)+".  This overflow setting is not supported - defaulting to overflow:\"visible\".");this.overflow=isc.Canvas.VISIBLE}
if(this.$su!=null)delete this.$su;if(this.$sz!=null)delete this.$sz;var _2=this.$uy,_3=this.$uz;delete this.$uy;delete this.$uz;var _4=this.$u0;this.$u0=false;var _5=isc.Canvas;this.$uu=null;if(this.getHandle()==null)this.logWarn("adjustOverflow: handle null");if(this.getClipHandle()==null)this.logWarn("adjustOverflow: clipHandle null");if(this.alwaysShowVScrollbar){if(this.overflow!=isc.Canvas.AUTO||this.overflow!=isc.Canvas.SCROLL){this.logInfo("alwaysShowVScrollbar specified as true, but overflow set to \""+this.overflow+"\". Property will be ignored.")}else if(this.showCustomScrollbars==false){this.logWarn("alwaysShowVScrollbar property not supported when showing native scrollbars")}}
if(this.logIsInfoEnabled(this.$pf)){this.logInfo("Specified size: "+this.getWidth()+"x"+this.getHeight()+", drawn scroll size: "+this.getScrollWidth(true)+"x"+this.getScrollHeight(true)+", border: "+this.getVBorderSize()+"x"+this.getHBorderSize()+", margin: "+this.getVMarginSize()+"x"+this.getHMarginSize()+(_2==null?"":", old size: "+_2+"x"+_3)+", reason: "+_1,"sizing")}
if(this.logIsDebugEnabled(this.$pf)){if(this.$113l){this.logDebug("clipHandle sizes: "+this.echoElementSize(this.getClipHandle()),"sizing")}
this.logDebug("handle sizes: "+this.echoElementSize(this.getHandle()),"sizing")}
if(this.overflow==_5.IGNORE){}else if(this.overflow==_5.VISIBLE){var _6=false;if(this.$t5){if(this.getWidth()<this.getVisibleWidth()||this.getHeight()<this.getVisibleHeight())
{_6=true;if(this.parentElement!=null){this.parentElement.childResettingHandleForAdjustOverflow();this.$q5(null,null,this.width,this.$o8)}}
delete this.$t5}
var _7=this.getScrollWidth(true),_8=this.getScrollHeight(true);if(this.$ks){var _9=this.getScrollHandle();if(_9.scrollTop!=0||_9.scrollLeft!=0){_9.scrollTop=_9.scrollLeft=0}}
var _10=this.getInnerWidth(),_11=this.getInnerHeight();var _12=this.$u0=(_7>_10||_8>_11);if(!_4&&_2>this.getWidth()){_4=true}
if(_12&&!_4&&this.$1653){var _13=this.parentElement;if(_13&&_13.$188d(this)){this.logWarn("size-adaptable member of layout "+_13.getID()+" accepted an offer of "+this.$1653+" pixels but has just overflowed; check adaptWidthBy()/adaptHeightBy() implementation",this.$1655)}}
var _14=this.getMinWidth(),_15=this.getMinHeight();if(!_12){if(_14!=null&&_14>this.getWidth()){_12=true}
if(_15!=null&&_15>this.getHeight()){_12=true}
if(_12)this.$u0=true}
if(!_12&&!_4)
{this.$uy=_7;this.$uz=_8;return}
var _16=this.getHMarginBorder(),_17=this.getVMarginBorder();var _18=Math.max(_7+_16,this.getWidth(),_14),_19=Math.max(_8+_17,this.getHeight(),_15);if(isc.Menu&&isc.isA.Menu(this.parentElement)&&isc.isA.GridBody(this)&&(_18>this.getWidth()||_19>this.getHeight())){this.$t5=true}
this.$q5(this.left,this.top,_18,_19);if(this.isRTL())this.handleMoved();var _20=this.children&&this.children.length>0;if(!_20||this.allowContentAndChildren){var _21=this.getScrollHeight(true),_22=this.getScrollWidth(true);if(_21!=_8||_22!=_7){_7=_22;_8=_21;this.$q5(this.left,this.top,Math.max((_7+_16),this.getWidth(),this.getMinWidth()),Math.max((_8+_17),this.getHeight(),this.getMinHeight()));if(this.isRTL())this.handleMoved()}}
if(_6&&this.parentElement!=null){this.parentElement.childResetHandleForAdjustOverflowComplete()}
if(this.snapTo!=null&&_12&&(_1==this.$oe||_1==this.$ny))
{this.$qw(true)}
if(_1==this.$pc)this.$1871();this.$uy=_7;this.$uz=_8;if((_2!=null&&_2!=_7)||(_3!=null&&_3!=_8))
{if(!_12&&_1==this.$nx)return;this.$5y(_7-_2,_8-_3,this.$pg)}}else if(this.overflow==_5.HIDDEN){this.$q5(this.left,this.top,this.getWidth(),this.getHeight());if(this.isRTL()){var _23=this.getScrollingMechanism();if(_23==isc.Canvas.NATIVE){this.scrollLeft=this.getScrollLeft()}else if(_23==isc.Canvas.NESTED_DIV){this.scrollLeft=this.getScrollLeft()}}
this.$51s()}else if(this.overflow==_5.CLIP_H){var _8=this.getScrollHeight(),_17=this.getVMarginBorder(),_24=Math.max(_8+_17,this.getHeight(),this.getMinHeight());this.$uz=_24;this.setClip(0,this.getWidth(),_24,0);this.$q5(this.left,this.top,this.getWidth(),_24);if(_1==this.$pc)this.$1871()}else if(this.overflow==_5.CLIP_V){var _7=this.getScrollWidth(),_16=this.getHMarginBorder();if((isc.Browser.isIE||isc.Browser.isMoz||isc.Browser.isOpera)&&(_7>this.getInnerWidth())&&(this.$uy==_7)){this.$q5(this.left,this.top,Math.max(this.getWidth(),this.getMinWidth()),this.getHeight());_7=this.getScrollWidth(true)
if(_7>this.getInnerWidth()){this.$q5(this.left,this.top,_7+_16,this.getHeight())}}else{this.$q5(this.left,this.top,Math.max(_7+_16,this.getWidth(),this.getMinWidth()),this.getHeight())}
var _25=Math.max(_7+_16,this.getWidth(),this.getMinWidth());this.setClip(0,_25,this.getHeight(),0);this.$uy=_25;if(_1==this.$pc)this.$1871()}else{var _23=this.getScrollingMechanism();if((isc.Browser.isIE&&this.showCustomScrollbars&&_23==isc.Canvas.NATIVE)||_23==isc.Canvas.NESTED_DIV)
{var _26=this.scrollLeft,_27=this.scrollTop,_28=this.getScrollLeft(),_29=this.getScrollTop();if(_28!=_26||_29!=_27){this.scrollTo(_28,_29,this.$1315)}}
var _30=this.vscrollOn,_31=this.hscrollOn,_32=this.$kk();var _33=(this.alwaysShowVScrollbar&&this.showCustomScrollbars);if(this.overflow==isc.Canvas.SCROLL){this.hscrollOn=this.vscrollOn=true}else{var _8=this.getScrollHeight(),_34=this.getHeight(),_7=this.getScrollWidth(),_35=this.getWidth(),_36=this.getScrollbarSize(),_37;var _17=this.getVMarginBorder(),_16=this.getHMarginBorder();var _38=this.getClipHandle();if(!this.showCustomScrollbars&&_38.clientHeight!=null){this.vscrollOn=(_8>_38.clientHeight);this.hscrollOn=(_7>_38.clientWidth)}else{this.vscrollOn=_33||(_8>_34-_17);this.hscrollOn=(_7>_35-_16)}
if((this.vscrollOn&&!_30)||(this.hscrollOn&&!_31))
{if(isc.Browser.$1395&&this.$145k()&&_1==="resize")
{this.getStyleHandle().WebkitOverflowScrolling="auto";if(this.$146n!=null){isc.Timer.clear(this.$146n)}
this.$146n=this.delayCall("$146m")}
if(!this.hscrollOn||!this.vscrollOn){if(this.showCustomScrollbars){this.$q5(this.left,this.top,this.getWidth(),this.getHeight())}
_37=(this.vscrollOn?"V":"")+(this.hscrollOn?"H":"");this.innerSizeChanged("introducing scrolling: "+_37);var _22=this.getScrollWidth(true),_21=this.getScrollHeight(true);if(this.logIsDebugEnabled("scrolling")){this.logDebug("Rechecking scrollWidth/Height on introduction of scroll: old: "+[_7,_8]+", new: "+[_22,_21],"scrolling")}
_7=_22;_8=_21}}
if(this.showCustomScrollbars){if(this.vscrollOn&&!this.hscrollOn){this.hscrollOn=(_7>_35-_16-_36)}else if(this.hscrollOn){this.vscrollOn=_33||(_8>_34-_17-_36)}}}
if(this.logIsInfoEnabled("scrolling")){this.logInfo("Drawn size: "+this.getScrollWidth(true)+" by "+this.getScrollHeight(true)+", specified: "+this.getWidth()+" by "+this.getHeight()+", scrollbar state: "+(this.hscrollOn?"h":"")+(this.vscrollOn?"v":""),"scrolling")}
if(this.showCustomScrollbars&&(this.hscrollOn!=_31||this.vscrollOn!=_30))
{this.$q5(this.left,this.top,this.getWidth(),this.getHeight());if(this.$su!=null)delete this.$su;if(this.$sz!=null)delete this.$sz}
var _39=((_30?"V":"")+(_31?"H":"")),_40=((this.vscrollOn?"V":"")+(this.hscrollOn?"H":""));if(_39!=_40){var _41=_39+" -> "+_40;this.logInfo("Scrollbar state: "+_41,"scrolling");if(_37==null||_40!=_37)
{this.innerSizeChanged("scrolling state changed: "+_41)}}
if(this.isRTL()){if(this.hscrollOn&&!_31){var _42=this.getScrollLeft();this.scrollLeft=_42}
if(!!this.vscrollOn!=!!_30){this.$808=null}}
if(this.showCustomScrollbars){if(!this.hscrollOn&&_31)this.hscrollbar.hide();if(!this.vscrollOn&&_30)this.vscrollbar.hide();if(this.hscrollOn){this.$u1()}else{if(_31)this.scrollTo(0,null,"ending hscroll")}
if(this.vscrollOn){this.$u2()}else{if(_30)this.scrollTo(null,0,"ending vscroll")}
this.$51s()}
if((this._useNativeTabIndex||this._useFocusProxy)&&_32!=this.$kk())
{this.$ur()}}
this.$1314=this.getScrollRight();return true});isc.evalBoundary;isc.B.push(isc.A.$51s=function isc_Canvas__clampToContent(){if(this.scrollLeft==0&&this.scrollTop==0)return;var _1=Math.max(0,this.getScrollBottom()),_2=Math.max(0,this.getScrollRight()),_3=this.getScrollLeft(),_4=this.getScrollTop(),_5=false;if(_3>_2){_5=true;_3=_2}
if(_4>_1){_5=true;_4=_1}
if(_5){this.scrollTo(_3,_4,"clampToContent")}},isc.A.checkNativeScroll=function isc_Canvas_checkNativeScroll(){if(!this.isDrawn()||this.getScrollingMechanism()!=isc.Canvas.NATIVE)return;var _1=this.getScrollHandle(),_2=_1.scrollLeft,_3=_1.scrollTop;if(this.isRTL()){_2=this.$92y(_2)}
if(_2!=this.scrollLeft||_3!=this.scrollTop){this.scrollTo(this.scrollLeft,this.scrollTop,"removing native scroll")}},isc.A.$u1=function isc_Canvas__setHorizontalScrollbar(){var _1=this.hscrollbar;if(!_1){_1=this.hscrollbar=isc.ClassFactory.newInstance(this.scrollbarConstructor,{ID:this.getID()+"_hscroll",autoDraw:false,_generated:true,zIndex:this.getZIndex()+1,showThumbTriggerArea:isc.Browser.isTouch,vertical:false,scrollTarget:this,visibility:this.visibility,$jp:false,$jo:false,_redrawWithParent:false,$u3:false})}
if(!isc.Page.isLoaded()){var _2=this;isc.Page.setEvent("load",function(){if(!_2.destroyed)_2.$u1()});return}
if(!this.hscrollOn)return;_1.setRect(this.getOffsetLeft()+this.getLeftMargin()+(this.vscrollOn&&this.isRTL()?this.getCustomScrollbarSize():0),this.getOffsetTop()+this.getHeight()-
(this.getBottomMargin()+this.getCustomScrollbarSize()),this.getOuterViewportWidth(),this.getCustomScrollbarSize());if(!_1.masterElement){this.addPeer(_1)}else{if(this.visibility!=isc.Canvas.HIDDEN)_1.show()}},isc.A.getCustomScrollbarSize=function isc_Canvas_getCustomScrollbarSize(){var _1=this.scrollbarConstructor;if(isc.isA.String(_1))_1=isc[_1];if(isc.NativeScrollbar!=null&&_1==isc.NativeScrollbar)return isc.NativeScrollbar.getScrollbarSize();return this.scrollbarSize},isc.A.$u2=function isc_Canvas__setVerticalScrollbar(){var _1=this.vscrollbar
if(!_1){_1=this.vscrollbar=isc.ClassFactory.newInstance(this.scrollbarConstructor,{ID:this.getID()+"_vscroll",autoDraw:false,_generated:true,zIndex:this.getZIndex()+1,showThumbTriggerArea:isc.Browser.isTouch,vertical:true,scrollTarget:this,visibility:this.visibility,$jp:false,$jo:false,_redrawWithParent:false,$u3:false})}
if(!isc.Page.isLoaded()){var _2=this;isc.Page.setEvent("load",function(){if(!_2.destroyed)_2.$u2()});return}
if(!this.vscrollOn)return;_1.setShowCorner(this.hscrollOn&&this.vscrollOn);_1.setRect(this.getOffsetLeft()+(this.isRTL()?this.getLeftMargin():this.getWidth()-(this.getRightMargin()+this.getScrollbarSize())),this.getOffsetTop()+this.getTopMargin(),this.getScrollbarSize(),this.getHeight()-this.getVMarginSize());if(!_1.masterElement){this.addPeer(_1)}else{if(this.visibility!=isc.Canvas.HIDDEN)_1.show()}},isc.A.scrollByPage=function isc_Canvas_scrollByPage(_1,_2,_3){var _4=(_1?this.getViewportHeight():this.getViewportWidth())-
this.scrollDelta;this.$u4(_1,_2*_4,_3||"scrollByPage")},isc.A.scrollByDelta=function isc_Canvas_scrollByDelta(_1,_2,_3){this.$u4(_1,_2*this.scrollDelta,_3||"scrollByDelta")},isc.A.$u4=function isc_Canvas__scrollByAmount(_1,_2,_3){if(_1){this.scrollTo(null,this.getScrollTop()+_2,_3)}else{this.scrollTo(this.getScrollLeft()+_2,null,_3)}},isc.A.canScroll=function isc_Canvas_canScroll(_1){var _2=_1?this.getScrollHeight():this.getScrollWidth(),_3=_1?this.getViewportHeight():this.getViewportWidth();return(_2>_3)},isc.A.getScrollRatio=function isc_Canvas_getScrollRatio(_1){var _2=_1?this.getScrollHeight():this.getScrollWidth(),_3=_1?this.getViewportHeight():this.getViewportWidth(),_4=_1?this.getScrollTop():this.getScrollLeft(),_5=_2-_3;if(_5==0)return 0;return _4/_5},isc.A.scrollToRatio=function isc_Canvas_scrollToRatio(_1,_2,_3){var _4=Math.max(0,(_1?this.getScrollBottom():this.getScrollRight())),_5=Math.round(_4*_2),_3=_3||"scrollToRatio";if(_1){this.scrollTo(null,_5,_3)}else{this.scrollTo(_5,null,_3)}},isc.A.getViewportRatio=function isc_Canvas_getViewportRatio(_1){if(_1){return this.getViewportHeight()/this.getScrollHeight()}else{return this.getViewportWidth()/this.getScrollWidth()}},isc.A.getScrollBottom=function isc_Canvas_getScrollBottom(){if(this.overflow==isc.Canvas.VISIBLE)return 0;return this.getScrollHeight()-this.getViewportHeight()},isc.A.getScrollRight=function isc_Canvas_getScrollRight(){if(this.overflow==isc.Canvas.VISIBLE)return 0;return this.getScrollWidth()-this.getViewportWidth()},isc.A.scrollToTop=function isc_Canvas_scrollToTop(){this.scrollTo(null,0,"scrollToTop")},isc.A.scrollToBottom=function isc_Canvas_scrollToBottom(){this.scrollTo(null,this.getScrollBottom(),"scrollToBottom")},isc.A.scrollToLeft=function isc_Canvas_scrollToLeft(){this.scrollTo(0,null,"scrollToLeft")},isc.A.scrollToRight=function isc_Canvas_scrollToRight(){this.scrollTo(this.getScrollRight(),null,"scrollToRight")},isc.A.scrollBy=function isc_Canvas_scrollBy(_1,_2,_3){var _4,_5;if(_1!=null)_4=this.getScrollLeft()+_1;if(_2!=null)_5=this.getScrollTop()+_2;return this.scrollTo(_4,_5,_3||"scrollBy")},isc.A.scrollByPercent=function isc_Canvas_scrollByPercent(_1,_2){if(isc.isA.String(_1))_1=parseInt(_1);if(isc.isA.String(_2))_2=parseInt(_2);if(!isc.isA.Number(_1))_1=0;else
_1=parseInt(_1/100*Math.max(0,(this.getScrollWidth()-this.getViewportWidth())));if(!isc.isA.Number(_2))_2=0;else
_2=parseInt(_2/100*Math.max(0,(this.getScrollHeight()-this.getViewportHeight())));this.scrollBy(_1,_2)},isc.A.scrollTo=function(left,top,reason,animating){if(isc.$cv)arguments.$cw=this;if(!animating){if(this.scrollAnimation)this.finishAnimation("scroll");if(this.hideAnimation&&this.$hideAnimationInfo.slideOut)
this.$hideAnimationInfo.slideOut=false;if(this.showAnimation&&this.$showAnimationInfo.slideIn)
this.$showAnimationInfo.slideIn=false}
if(this.logIsDebugEnabled("scrolling")){this.logDebug("scrollTo("+left+", "+top+"), reason: "+reason,"scrolling")}
if(left==null){left=this.getScrollLeft()}
if(top==null){top=this.getScrollTop()}
var actuallyMoved=false;if((left!=null&&left!=this.scrollLeft)||(top!=null&&top!=this.scrollTop)){actuallyMoved=true;this.lastScrollLeft=this.scrollLeft;this.lastScrollTop=this.scrollTop;this.lastScrollDirection=(left!=null&&left!=this.scrollLeft&&top!=null&&top!=this.scrollTop?"both":top!=null&&top!=this.scrollTop?"vertical":"horizontal")}
var isNativeScroll=reason==this.$1315;if(isNativeScroll||!this.isDrawn()){this.scrollLeft=left;this.scrollTop=top;if(isNativeScroll){if(isc.EH.lastEvent.eventType==isc.EH.MOUSE_DOWN){var mouseDownTarget=isc.EH.getTarget();if(mouseDownTarget.hasFocus&&mouseDownTarget.disableNativeScrollOnMouseDownFocus&&this.contains(mouseDownTarget))
{this.scrollTo(this.lastScrollLeft,this.lastScrollTop,"Reset native scroll-on-focus");return}}}}else{var maxScrollLeft=this.getScrollRight();this.scrollLeft=Math.max(0,Math.min(maxScrollLeft,left));var maxScrollTop=this.getScrollBottom();this.scrollTop=Math.max(0,Math.min(maxScrollTop,top));this.$u5(this.scrollLeft,this.scrollTop)}
if(this.showCustomScrollbars){if(this.hscrollOn&&this.hscrollbar)this.hscrollbar.setThumb();if(this.vscrollOn&&this.vscrollbar)this.vscrollbar.setThumb()}
if(actuallyMoved)this.$u6(this.lastScrollLeft-this.scrollLeft,this.lastScrollTop-this.scrollTop)},isc.A.scrolled=function isc_Canvas_scrolled(_1,_2){},isc.A.$u6=function isc_Canvas__scrolled(_1,_2){if(!isc.EH.$ky&&!isc.Browser.nativeMouseMoveOnCanvasScroll){this.$1336()}
if(this.hasFocus&&isc.Browser.isIE9){this.$148o()}
this.$95i(this,_1,_2);if(this.scrolled)this.scrolled(_1,_2);if(this.$171b){this.$171b=false}},isc.A.$148o=function isc_Canvas__fixIEFocusScrollArtifacts(){if(this.$148n){this.fireOnPause("redrawToFixIEFocusScrollArtifacts",{target:this,methodName:"markForRedraw",args:["fixIEScrollArtifacts"]},100)}else{var _1=this.getStyleHandle();if(_1)_1.backgroundColor=_1.backgroundColor}},isc.A.$1336=function isc_Canvas__fireSyntheticMouseMove(){var _1=isc.EH.lastEvent,_2=isc.EH.isMouseEvent(_1.eventType),_3=_2?_1.target:isc.EH.lastMoveTarget;if(_3!=null){if(!this.contains(_3,true))_3=null;else if(!_2&&_3!=this){var _4=this.getOffsetX(),_5=this.getOffsetY();if(!_3.visibleAtPoint(isc.EH.getX(),isc.EH.getY(),false,null,this))
{_3=null}}
if(_3!=null){this.$1337=true;isc.EH.$kx(null,isc.EH.lastEvent);delete this.$1337}}},isc.A.parentScrolled=function isc_Canvas_parentScrolled(_1,_2,_3){},isc.A.handleParentScrolled=function isc_Canvas_handleParentScrolled(_1,_2,_3){if(isc.Element.cacheOffsetCoords)this.$808=this.$809=null;this.parentScrolled(_1,_2,_3);this.$95i(_1,_2,_3)},isc.A.$95i=function isc_Canvas__fireParentScrolled(_1,_2,_3){var _4=this.children;if(_4!=null){for(var i=0;i<_4.length;i++){if(isc.isA.Canvas(_4[i])){_4[i].handleParentScrolled(_1,_2,_3)}}}},isc.A.$81b=function isc_Canvas__childrenCoordsChanged(){if(!isc.Element.cacheOffsetCoords)return;var _1=this.children;if(_1!=null){for(var i=0,_3=_1.length;i<_3;++i){var _4=_1[i];_4.$808=_4.$809=null;_4.$81b()}}},isc.A.$146m=function isc_Canvas__reapplyWebkitOverflowScrollingTouch(){this.$146n=null;if(!this.isDrawn()||!this.$145k()||(!this.isVisible()&&(this.hideUsingDisplayNone||this.$144x>0))||(isc.Browser.iOSVersion>=7&&this.$1390))
{return}
var _1=this.getStyleHandle();_1.WebkitOverflowScrolling="touch"},isc.A.$1392=function isc_Canvas__disableOffsetCoordsCaching(){if(!isc.Element.cacheOffsetCoords||!this.isDrawn()||this.$1390)return;if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k())
{if(this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null}
var _1=this.getStyleHandle();_1.WebkitOverflowScrolling="auto"}
this.$808=this.$809=null;this.$1390=true;this.$1391=this.cacheOffsetCoords;this.cacheOffsetCoords=false;var _2=this.children;if(_2!=null){for(var i=0,_4=_2.length;i<_4;++i){_2[i].$1392()}}},isc.A.$1393=function isc_Canvas__enableOffsetCoordsCaching(){if(!isc.Element.cacheOffsetCoords||!this.isDrawn()||!this.$1390)return;if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k())
{if(this.$146n!=null){isc.Timer.clear(this.$146n)}
this.$146n=this.delayCall("$146m")}
this.$1390=false;this.cacheOffsetCoords=this.$1391;delete this.$1391;var _1=this.children;if(_1!=null){for(var i=0,_3=_1.length;i<_3;++i){_1[i].$1393()}}},isc.A.scrollToPercent=function isc_Canvas_scrollToPercent(_1,_2,_3){if(isc.isA.String(_1))_1=parseInt(_1);if(isc.isA.String(_2))_2=parseInt(_2);if(_1!=null){if(!isc.isA.Number(_1))_1=0;_1=parseInt(_1/100*Math.max(0,(this.getScrollWidth()-
this.getViewportWidth())))}
if(_2!=null){if(!isc.isA.Number(_2))_2=0;_2=parseInt(_2/100*Math.max(0,(this.getScrollHeight()-
this.getViewportHeight())))}
this.scrollTo(_1,_2,_3||"scrollToPercent")},isc.A.$92y=function isc_Canvas__adjustScrollLeftForRTL(_1,_2){var _3=isc.Browser.isMoz||(isc.Browser.isIE&&isc.Browser.minorVersion<5.5),_4=(isc.Browser.isIE8||isc.Browser.isIE9)&&isc.Browser.isStrict;if(!_3&&!_4)return _1;var _5=this.getScrollWidth(),_6=this.getViewportWidth();return isc.Canvas.$92y(_1,_5,_6,_2,_3,_4)},isc.A.$95h=function isc_Canvas__shiftScrollLeftOrigin(_1,_2){var _3=this.getScrollWidth(),_4=this.getViewportWidth();return isc.Canvas.$92y(_1,_3,_4,_2,true)},isc.A.$u5=function isc_Canvas__scrollHandle(_1,_2){var _3=this.getScrollingMechanism();if(_3==isc.Canvas.NATIVE){if(this.isRTL()){_1=this.$92y(_1,true)}
var _4=this.getScrollHandle();if(_4){this.$u7=true;_4.scrollLeft=_1;_4.scrollTop=_2;var _5=_4.scrollLeft,_6=_4.scrollTop;if(this.isRTL()){_5=this.$92y(_5)}
if(_5!=this.scrollLeft||_6!=this.scrollTop){this.scrollLeft=_5;this.scrollTop=_6}
delete this.$u7}}else if(_3==isc.Canvas.NESTED_DIV){var _4=this.getHandle();if(_4==null){this.logWarn(this.getCallTrace(arguments)+" in NS6 with null handle");return}
_4=_4.style;if(this.isRTL()){_1=this.$95h(-_1);_2=-_2}else{_1=-_1;_2=-_2}
_4.left=_1+this.$ph;_4.top=_2+this.$ph}},isc.A.$lh=function isc_Canvas__handleCSSScroll(_1,_2){if(isc.$cv)arguments.$cw=this;if(this.$u7)return;if(!this.isDrawn())return;var _3=this.getScrollingMechanism();if(_3!=isc.Canvas.NATIVE){this.logWarn("unsupported native scroll occurred on this widget - resetting");var _4=this.getScrollHandle();if(_3==isc.Canvas.NESTED_DIV){this.$u5(this.isRTL()?this.getScrollRight():0,0)}else{this.$u5(this.scrollLeft,this.scrollTop)}
return}
if(isc.Browser.isMoz&&!_1&&(_2||isc.Browser.geckoVersion<20030312)){if(!this.$u8)
this.$u8=this.delayCall("$lh",[true],10);return}
this.$u8=null;var _5=this.getScrollLeft(),_6=this.getScrollTop();if(_5==this.scrollLeft&&_6==this.scrollTop)return;isc.EH.$h1("SCR");this.scrollTo(_5,_6,this.$1315);isc.EH.$h2()},isc.A.handleMouseWheel=function isc_Canvas_handleMouseWheel(){return this.mouseWheel()},isc.A.mouseWheel=function isc_Canvas_mouseWheel(){if((this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)&&this.showCustomScrollbars&&(this.vscrollOn||this.hscrollOn))
{var _1=this.ns.EH.lastEvent.wheelDeltaY,_2=this.ns.EH.lastEvent.wheelDeltaX;var _3=this.scrollTop+Math.round(_1*isc.Canvas.scrollWheelDelta);var _4=this.scrollLeft+Math.round(_2*isc.Canvas.scrollWheelDelta);this.scrollTo(_4,_3,"mouseWheel");return false}
return true},isc.A.isDragScrolling=function isc_Canvas_isDragScrolling(){if(this.vscrollOn&&this.vscrollbar&&this.vscrollbar.isDragScrolling())return true;if(this.hscrollOn&&this.hscrollbar&&this.hscrollbar.isDragScrolling())return true;return false},isc.A.isRepeatTrackScrolling=function isc_Canvas_isRepeatTrackScrolling(){if(this.vscrollOn&&this.vscrollbar&&this.vscrollbar.isRepeatTrackScrolling())return true;if(this.hscrollOn&&this.hscrollbar&&this.hscrollbar.isRepeatTrackScrolling())return true;return false},isc.A.isMouseWheelScrolling=function isc_Canvas_isMouseWheelScrolling(){return isc.EH.lastEvent.eventType==isc.EH.MOUSE_WHEEL},isc.A.handleKeyPress=function isc_Canvas_handleKeyPress(_1,_2){var _3;if(this.convertToMethod("keyPress")){_3=this.keyPress(_1,_2)}
if(_3!=false&&this.shouldCancelKey!=null&&this.shouldCancelKey(_1,_2))
{_3=false}
if(_3==false)return false;if(this.widgetHandleKeyPress){_3=this.widgetHandleKeyPress(_1,_2);if(_3==false)return false}
var _4=_1.keyName;if(this._useFocusProxy&&((isc.Browser.isMoz&&this.canSelectText)||isc.Browser.isSafari)&&_4=="Tab")
{this.setFocus(true)}
if((this.overflow==isc.Canvas.AUTO||this.overflow==isc.Canvas.SCROLL)&&this.showCustomScrollbars)
{_3=this.handleKeyboardScroll(_4)}
return _3},isc.A.handleKeyboardScroll=function isc_Canvas_handleKeyboardScroll(_1,_2){if(isc.EH.ctrlKeyDown()||isc.EH.altKeyDown())return;var _3=0,_4=0;if(_1=="Page_Up")_4-=this.getViewportHeight();else if(_1=="Page_Down")_4+=this.getViewportHeight();else if(_1=="Arrow_Up")_4-=10;else if(_1=="Arrow_Down")_4+=10;else if(_1=="Arrow_Left")_3-=10;else if(_1=="Arrow_Right")_3+=10;_2=_2||"cancel native keyPress scrolling";if(_3!=0||_4!=0){this.scrollTo(this.scrollLeft+_3,this.scrollTop+_4,_2);return false}
if(_1=="Home"){this.scrollTo(null,0,_2);return false}else if(_1=="End"){this.scrollTo(null,(this.getScrollHeight()-this.getViewportHeight()),_2);return false}},isc.A.pageScrollUp=function isc_Canvas_pageScrollUp(){this.handleKeyboardScroll("Page_Up","canvas.pageScrollUp()")},isc.A.pageScrollDown=function isc_Canvas_pageScrollDown(){this.handleKeyboardScroll("Page_Down","canvas.pageScrollDown()")},isc.A.handleKeyDown=function isc_Canvas_handleKeyDown(_1,_2){var _3
if(this.convertToMethod("keyDown")){_3=this.keyDown(_1,_2)}
return _3},isc.A.$q5=function isc_Canvas__setHandleRect(_1,_2,_3,_4){var _5=this.getStyleHandle();if(_5==null)return;if(this.shrinkElementOnHide&&!this.isVisible()){return}
if(this.showCustomScrollbars&&this.vscrollOn&&_1!=null&&this.isRTL()){_1+=this.getScrollbarSize()}
if(_3!=null||_4!=null){var _6=this.$sf(_3,_4);_3=_6[0];_4=_6[1]}
this.$118i(_1,_2,_3,_4,_5)},isc.A.$118i=function isc_Canvas__assignRectToHandle(_1,_2,_3,_4,_5){if(this.containsIFrame()){var _6=this.$sk();if(!_6&&this.isDrawn()&&this.isDirty()){this.redraw();_6=this.$sk()}
_6.setAttribute("width",this.getInnerContentWidth());_6.setAttribute("height",this.getInnerContentHeight())}
if(_1!=null&&isc.isA.Number(_1)){this.$u9(_5,isc.Canvas.LEFT,_1)}
if(_2!=null&&isc.isA.Number(_2)){var _7=this.getClipHandle(),_8=_7.getAttribute(this.$143e);if(_8){_8=parseInt(_8,10);_2+=_8}
this.$u9(_5,isc.Canvas.TOP,_2)}
if(_3!=null&&isc.isA.Number(_3))this.$u9(_5,this.$o6,Math.max(_3,1));if(_4!=null&&isc.isA.Number(_4))this.$u9(_5,this.$o5,Math.max(_4,1))},isc.A.$u9=function isc_Canvas__assignSize(_1,_2,_3){if(isc.Browser.isIE||isc.Browser.isOpera){if((_2==this.$o6||_2==this.$o5))_3=Math.max(1,_3);if(!isc.Browser.isStrict){_1[_2]=_3}else{_1[_2]=_3+this.$ph}}else{if(_1==null){return}
var _4=_3+this.$ph;_1[_2]=_4;if(isc.Browser.isChrome&&_3>999999){this.$176x(_2,_3)}
if(_1.setAttribute!=null){_1.setAttribute(_2,_4)}}},isc.A.$176x=function isc_Canvas__setNumericSize(_1,_2){if(!this.$176y)this.$176y={};this.$176y[_1]=_2},isc.A.$176w=function isc_Canvas__getNumericSize(_1){if(!this.$176y)this.$176y={};return this.$176y[_1]},isc.A.$qi=function isc_Canvas__sizeBackMask(){var _1=this._backMask;if(!_1)return;if(this.showEdges){var _2=this.$l0,_3=this.maskEdgeCenterOnly,_4=_3?_2.$y4:_2.$tb,_5=_3?_2.$y5:_2.$tc,_6=_3?_2.$y6:_2.$td,_7=_3?_2.$y7:_2.$te,_8=this.getVisibleWidth()-(_4+_5),_9=this.getVisibleHeight()-(_6+_7);if(_8<=0||_9<=0)_1.hide();else{if(this.isVisible())_1.show();_1.setRect(this.getLeft()+_4,this.getTop()+_6,_8,_9)}}else{_1.setRect(this.getRect())}},isc.A.getTextDirection=function isc_Canvas_getTextDirection(){if(this.$81a)return this.$81a;var _1=this;while(_1){if(_1.textDirection!=null){return(this.$81a=_1.textDirection)}
_1=_1.parentElement;if(_1&&_1.eventProxy)_1=_1.eventProxy}
return(this.$81a=isc.Page.getTextDirection())},isc.A.isRTL=function isc_Canvas_isRTL(){return(this.getTextDirection()==isc.Canvas.RTL)},isc.A.getRTLSign=function isc_Canvas_getRTLSign(){return this.isRTL()?-1:1},isc.A.setVisibility=function isc_Canvas_setVisibility(_1){if(this.$va!=null&&!this.$vb)
this.finishAnimation(this.$va);if(this.$vc!=null&&!this.$vd)
this.finishAnimation(this.$vc);if(this.fadeAnimation)this.finishAnimation("fade");if(!isc.isA.String(_1)){_1=(_1!=false?isc.Canvas.INHERIT:isc.Canvas.HIDDEN)}
if(this.visibility==_1)return;var _2=this.isVisible();this.visibility=_1;var _3=this.isVisible();if(this.isDrawn()){if(!_2&&_3){if(this.isDirty()){this.redraw("show() while dirty")}else if(this.children&&this.children.length>0){var _4=isc.Canvas.$nm.duplicate();for(var i=0;i<_4.length;i++){var _6=_4[i];if(_6&&_6.isDirty()&&this.$sr(_6)){_6.redraw("show() on parent while dirty")}}}}
this.$vf(_1);if(isc.Canvas.ariaEnabled()&&(this.ariaState==null||this.ariaState.hidden!=true)){this.setAriaState("hidden",!_3)}
this.$ve()}
if(this.peers){for(var i=0;i<this.peers.length;i++){var _7=this.peers[i];if(_3&&((_7==this.hscrollbar&&!this.hscrollOn)||(_7==this.vscrollbar&&!this.vscrollOn)))continue;if(_3&&_7==this._shadow&&!this.showShadow)continue;if(_7.$jq)_7.setVisibility(_1)}}
if(this.children)this.children.callMethod("parentVisibilityChanged",_1,this);if(this.parentElement)this.parentElement.childVisibilityChanged(this,_1);if(this._useFocusProxy)this.$vg();this.$807()});isc.evalBoundary;isc.B.push(isc.A.$807=function isc_Canvas__visibilityChanged(){if(!this.isDrawn())return;var _1=this.isVisible();if(_1!=this.$806){if(!_1&&this.$772!=null){this.cancelAnimation(this.$772);this.$772=null}
this.$806=_1;if(this.visibilityChanged!=null){this.visibilityChanged(this.isVisible())}}},isc.A.parentVisibilityChanged=function isc_Canvas_parentVisibilityChanged(_1,_2){if(this.children)this.children.callMethod("parentVisibilityChanged",_1,_2);this.$ve();if(this._useFocusProxy)this.$vg();if(_2.$sr(this))this.$807()},isc.A.childVisibilityChanged=function isc_Canvas_childVisibilityChanged(_1,_2){this.$t6("childVisChange")},isc.A.$144z=function isc_Canvas__incrementHideUsingDisplayNoneCounter(){var _1=this.$144x++;if(_1==0){this.$ve()}},isc.A.$1440=function isc_Canvas__decrementHideUsingDisplayNoneCounter(){var _1=this.$144x--;if(_1==1){if(this.hideUsingDisplayNone){this.$ve()}else if(this.$62u){var _2=this.getStyleHandle();_2.display=(this.$vh!=null?this.$vh:isc.emptyString);delete this.$62u;delete this.$vh;_2.visibility=this.visibility}}},isc.A.childCleared=function isc_Canvas_childCleared(_1){if(!this.destroying)this.$t6("childClear")},isc.A.peerCleared=function isc_Canvas_peerCleared(_1){},isc.A.childDrawn=function isc_Canvas_childDrawn(_1){if(this.isDrawn())this.$t6("childDraw")},isc.A.peerDrawn=function isc_Canvas_peerDrawn(_1){},isc.A.$vg=function isc_Canvas__updateFocusProxyVisibility(){if(!this._useFocusProxy||!this.$qj)return;var _1=this.isVisible(),_2=this.$sl();if(_2){if(_1&&_2.style.visibility==isc.Canvas.HIDDEN)
_2.style.visibility=isc.Canvas.VISIBLE
if(!_1&&_2.style.visibility!=isc.Canvas.HIDDEN)
_2.style.visibility=isc.Canvas.HIDDEN}},isc.A.$145l=function isc_Canvas__needHideUsingDisplayNone(){if(isc.Browser.isTouch){return this.$145k()}else if(isc.Browser.isMac&&isc.Element.getNativeScrollbarSize()==0){if(isc.Browser.isChrome&&isc.HTMLFlow&&isc.isAn.HTMLFlow(this)&&this.contentsType==="page")
{return true}}
return false},isc.A.$vf=function isc_Canvas__setHandleVisibility(_1){var _2=this.getStyleHandle();if(_2!=null)_2.visibility=_1},isc.A.$ve=function isc_Canvas__updateHandleDisplay(){var _1=this.hideUsingDisplayNone||this.$144x>0;if(!_1||!this.isDrawn())return;var _2=this.getStyleHandle(),_3=this.isVisible();if(!_3&&!this.$62u){if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k())
{if(this.$146n!=null){isc.Timer.clear(this.$146n);this.$146n=null}
_2.WebkitOverflowScrolling="auto"}
this.$vh=_2.display;this.$62u=true;_2.display=this.$27r;this.$808=this.$809=null}else if(_3&&this.$62u){if(isc.Browser.iOSVersion>=7&&isc.Browser.$1395&&this.$145k())
{if(this.$146n!=null){isc.Timer.clear(this.$146n)}
this.$146n=this.delayCall("$146m")}
_2.display=(this.$vh!=null?this.$vh:isc.emptyString);delete this.$62u;delete this.$vh}},isc.A.$418=function isc_Canvas__drawOnShow(){return(this.getDrawnState()==isc.Canvas.UNDRAWN)&&!this.parentElement&&!this.masterElement},isc.A.show=function isc_Canvas_show(){if(isc.$cv)arguments.$cw=this;var _1=this.hasFocus;if(this.$418()){this.draw(true)}
this.setVisibility(isc.Canvas.INHERIT);if(this.shrinkElementOnHide){this.$q5(this.getLeft(),this.getTop(),this.getWidth(),this.getHeight());this.getStyleHandle().overflow=this.overflow}
if(_1&&this.hasFocus){this.logInfo("Show: Hidden / Undrawn widget marked as having focus - calling focus()","events");this.hasFocus=false;this.focus()}
if(this.parentElement!=null&&this.autoShowParent){this.parentElement.show()}},isc.A.showRecursively=function isc_Canvas_showRecursively(){var _1=this.parentElement;if(this.getPanelContainer()==null&&_1==null){this.show()}else{this.setVisibility(isc.Canvas.INHERIT);var _2=this.getPanelContainer();_1=_2||_1;_1.showRecursively();_1.revealChild(this)}},isc.A.getPanelContainer=function isc_Canvas_getPanelContainer(){return this.$86x?window[this.$86x]:null},isc.A.setPanelContainer=function isc_Canvas_setPanelContainer(_1){isc.Canvas.setCanvasPanelContainer(this,_1)},isc.A.revealChild=function isc_Canvas_revealChild(_1){if(isc.isA.String(_1))_1=window[_1];if(_1){if(this.children&&this.children.contains(_1)&&!_1.isVisible()){_1.show()}}},isc.A.$414=function isc_Canvas__relativePageResized(){if(!this.isDrawn()||this.parentElement||this.position!=this.$411)return;var _1=this.$412,_2=this.$413,_3=this.getPageLeft(),_4=this.getPageTop();this.$tx=(_3-_1);this.$ty=(_4-_2);this.$t2();this.$412=_3;this.$413=_4;isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"$414")},isc.A.hide=function isc_Canvas_hide(){this.$rk();if(this.shrinkElementOnHide){this.getStyleHandle().overflow=isc.Canvas.HIDDEN;this.$q5(this.left,this.top,0,0)}
this.setVisibility(isc.Canvas.HIDDEN)},isc.A.isVisible=function isc_Canvas_isVisible(){var _1=this;while(_1){if(_1.visibility==isc.Canvas.HIDDEN)return false;if(_1.visibility==isc.Canvas.VISIBLE)return true;_1=_1.parentElement}
return true},isc.A.$st=function isc_Canvas__isDisplayNone(){var _1=this;do{if(_1.visibility==isc.Canvas.HIDDEN&&(_1.hideUsingDisplayNone||_1.$144x>0))
{return true}
_1=_1.parentElement}while(_1!=null);return false},isc.A.setEnabled=function isc_Canvas_setEnabled(_1){this.logWarn("call to deprecated method 'setEnabled()' - use 'setDisabled()' instead.");var _2=((_1==null||isc.isA.Boolean(_1))?!_1:(_1==this.$pi));this.setDisabled(_2)},isc.A.setDisabled=function isc_Canvas_setDisabled(_1,_2){if(_1==null)_1=false;if(!isc.isA.Boolean(_1))_1=(_1==this.$pi);if(this.disabled==_1)return;if(this.peers)this.peers.callMethod("masterDisabled",_1);var _3=this.isDisabled()
this.disabled=_1;var _4=this.isDisabled();if(_3!=_4||_2){this.setHandleDisabled(_4);if(this.children)this.children.callMethod("parentDisabled",_4)}},isc.A.masterDisabled=function isc_Canvas_masterDisabled(_1){this.setDisabled(_1)},isc.A.parentDisabled=function isc_Canvas_parentDisabled(_1){if(this.disabled)return;if(!this.parentElement.redrawOnDisable)this.setHandleDisabled(_1);if(this.children)this.children.callMethod("parentDisabled",_1)},isc.A.setHandleDisabled=function isc_Canvas_setHandleDisabled(_1){if(!this.isDrawn())return;if(this.redrawOnDisable)this.markForRedraw("setDisabled");else this.$k2();if(this.$kk())this.disableKeyboardEvents(_1)},isc.A.disableKeyboardEvents=function isc_Canvas_disableKeyboardEvents(_1,_2,_3,_4){if(!_3||this.$kk()){if(_1){this.$vi(-1);if(this.accessKey!=null)this.$m9(null)}else{this.$vi(this.getTabIndex());if(this.accessKey!=null)this.$m9(this.accessKey)}
if(_1&&this.hasFocus)this.blur()}
this.$167w=_1;if(_2&&this.children){for(var i=0;i<this.children.length;i++){if(this.componentMask==this.children[i])continue;if(_4&&_4.contains(this.children[i])){continue}
if(_3&&this.children[i].isDisabled())continue;this.children[i].disableKeyboardEvents(_1,true,_3)}}},isc.A.enable=function isc_Canvas_enable(){if(this.disabled)this.setDisabled(false)},isc.A.disable=function isc_Canvas_disable(){if(!this.disabled)this.setDisabled(true)},isc.A.isDisabled=function isc_Canvas_isDisabled(){var _1=this;while(_1){if(_1.disabled)return true;_1=_1.parentElement;if(_1&&_1.eventProxy)_1=_1.eventProxy}
return false},isc.A.isEnabled=function isc_Canvas_isEnabled(){this.logWarn("Call to deprecated 'isEnabled()' method - should use isDisabled() instead");return!this.isDisabled()},isc.A.$kk=function isc_Canvas__canFocus(){if(this.canFocus!=null)return this.canFocus;if((this.overflow==isc.Canvas.SCROLL)||((this.overflow==isc.Canvas.AUTO)&&(this.vscrollOn||this.hscrollOn))){return true}
return false},isc.A.setCanFocus=function isc_Canvas_setCanFocus(_1){this.canFocus=_1;this.$ur()},isc.A.isFocused=function isc_Canvas_isFocused(){return this.hasFocus},isc.A.$ur=function isc_Canvas__updateCanFocus(){var _1=this.$kk();if(this.$180j){isc.TabIndexManager.setCanFocus(this.ID,this.$kk())}
this.$vj(_1);this.canFocusChanged();if(!_1&&this.hasFocus)this.blur()},isc.A.$vj=function isc_Canvas__updateHandleForFocus(_1){var _2;if(this._useFocusProxy){if(_1){_2=this.$sl();if(!_2)return this.makeFocusProxy()}else{this.$qp();return}
if(isc.Browser.isSafari&&this.getTabIndex()==-1){this.$qp();return}}
if(this.$qc()){if(_1&&this.accessKey){this.$qd()}else if(this.$qt){this.$qu()}}
if(this._useNativeTabIndex)_2=this.getFocusHandle();if(_1){this.$vk(this.getTabIndex());if(_2!=null){var _3=this.$sg(),_4=this.$si();_2.onfocus=_3;_2.onblur=_4;if(this.accessKey)this.$m9(this.accessKey)}}else{if(_2!=null){_2.removeAttribute("onfocus");_2.onfocus=null;_2.removeAttribute("onblur");_2.onblur=null;this.$vi(-1);if(_2.accessKey!=null)this.$m9(null)}}},isc.A.canFocusChanged=function isc_Canvas_canFocusChanged(){var _1=this.parentElement;while(_1){_1.childCanFocusChanged(this);_1=_1.parentElement}},isc.A.childCanFocusChanged=function isc_Canvas_childCanFocusChanged(_1){},isc.A.setShowFocusOutline=function isc_Canvas_setShowFocusOutline(_1,_2){if(!_2&&this.showFocusOutline==_1)return;if(!_2)this.showFocusOutline=_1;var _3=this.getClipHandle();if(_3!=null){if(isc.Browser.isIE){_3.hideFocus=!_1}else{_3.style.outlineStyle=(_1?isc.emptyString:this.$27r)}}},isc.A.$vl=function isc_Canvas__readyToSetFocus(_1){return(this.isDrawn()&&this.visibleInDOM()&&(!_1||!this.isDisabled()))},isc.A.visibleInDOM=function isc_Canvas_visibleInDOM(){if(!this.isVisible())return false;var _1=this.getTopLevelCanvas();if(_1.position==isc.Canvas.ABSOLUTE)return true;var _2=this.getDocumentBody();var _3=_1.getClipHandle().parentNode;while(_3&&_3!=_2){var _4=_3.style;if(_4&&_4.visibility==this.$nz)return false;if(_4&&_4.display==this.$27r)return false;_3=_3.parentNode}
return true},isc.A.getFocusHandle=function isc_Canvas_getFocusHandle(){if(this._useNativeTabIndex){return this.getClipHandle()}else if(this._useFocusProxy&&this.$qj){return this.$sl()}
return null},isc.A.setFocus=function isc_Canvas_setFocus(_1,_2){if(!this.$vl(_1))return;var _3=this.getFocusHandle(_1);if(_1&&this.$kk()){if(_3!=null&&this.getDocument().activeElement!==_3){if(isc.Browser.isIE&&!isc.EventHandler.synchronousFocusNotifications&&document.activeElement==_3)
{this.logInfo("setFocus() not calling element.focus() as element already has native focus","nativeFocus")}else{this.logInfo("about to call native focus()"+(this.logIsDebugEnabled("traceFocus")?this.getStackTrace():""),"nativeFocus");isc.EH.$lg=this;_3.focus();isc.EH.$vm=this}}else{this.ns.EH.focusInCanvas(this)}}else if(this.hasFocus){if(_3){this.logInfo("about to call native blur()"+(this.logIsDebugEnabled("traceBlur")?this.getStackTrace():""),"nativeFocus");isc.EH.$ld=this;_3.blur()}else{this.ns.EH.blurFocusCanvas(this)}}},isc.A.$vn=function isc_Canvas__restoreFocus(){var _1=isc.EH.$ke;if(_1!=null&&_1!=this){this.logDebug("not restoring focus; focus moved to: "+_1,"nativeFocus");return}
var _2=isc.EH.$lg;if(_2!=null&&_2!=this){this.logDebug("not restoring focus; focus about to move to:"+_2,"nativeFocus");return}
this.logDebug("restoring focus from zIndex change","nativeFocus");this.$vo(true)},isc.A.$170m=function isc_Canvas__restoreFocusForClickMaskHide(){this.focus()},isc.A.focus=function isc_Canvas_focus(_1){if(isc.$cv)arguments.$cw=this;this.setFocus(true,_1)},isc.A.blur=function isc_Canvas_blur(_1){if(isc.$cv)arguments.$cw=this;this.setFocus(false,_1)},isc.A.$vo=function isc_Canvas__setFocusWithoutHandler(_1,_2){this.$vp=true;this.setFocus(_1,_2)},isc.A.handleFocusIn=function isc_Canvas_handleFocusIn(_1,_2){if(isc.EH.synchronousFocusNotifications){isc.EH.focusInCanvas(this,true)}},isc.A.handleFocusOut=function isc_Canvas_handleFocusOut(_1,_2){if(isc.EH.synchronousFocusNotifications){isc.EH.blurFocusCanvas(this,true)}},isc.A.$lf=function isc_Canvas__focusChanged(_1){if(_1==null)_1=(this.ns.EH.$ke==this);this.logDebug("$lf(): hasFocus = "+_1,"nativeFocus");this.hasFocus=_1;if(this.$vp){delete this.$vp;return false}
this.$vq=true;if(this.focusChanged!=null){this.focusChanged(_1)}
if(this.parentElement){this.parentElement.$170y(this,_1)}
if(this.redrawOnFocus)this.markForRedraw("setFocus");this.$vq=false},isc.A.$170y=function isc_Canvas__childFocusChanged(_1,_2){if(this.parentElement){this.parentElement.$170y(_1,_2)}},isc.A.$rk=function isc_Canvas__updateFocusForHide(){var _1=this.ns.EH.getFocusCanvas();if(this.$sr(_1)){if(isc.isA.Canvas(_1.focusOnHide)&&_1.focusOnHide.isDrawn()&&_1.focusOnHide.isVisible()){_1.focusOnHide.focus()}
else{_1.blur();if(_1.hasFocus)isc.EH.blurFocusCanvas(_1)}}},isc.A.containsFocus=function isc_Canvas_containsFocus(){var _1=this.ns.EH.getFocusCanvas();return this.contains(_1,true)},isc.A.setAccessKey=function isc_Canvas_setAccessKey(_1){this.accessKey=_1;if(this.$kk()&&!this.isDisabled()){this.$m9(this.accessKey)}},isc.A.$m9=function isc_Canvas__setHandleAccessKey(_1){if(this.$qc()){if(_1==null)this.$qu();else{if(this.$qt)this.$qt.accessKey=_1;else this.$qd()}
return}
if(this._useNativeTabIndex){var _2=this.getHandle();if(_2!=null)_2.accessKey=_1}
if(this._useFocusProxy&&this.$qj){var _2=this.$sl();if(_2!=null){if(isc.Browser.isMoz){this.$qp();this.makeFocusProxy()}else{_2.accessKey=_1}}}},isc.A.getAccessKey=function isc_Canvas_getAccessKey(){return this.accessKey},isc.A.initializeTabPosition=function isc_Canvas_initializeTabPosition(){this.$180j=(this.tabIndex==null);isc.TabIndexManager.addTarget(this.ID,(this.$180j&&this.$kk()),null,null,{target:this,methodName:"autoTabIndexUpdated"},{target:this,methodName:"syntheticShiftFocus"})},isc.A.$180i=function isc_Canvas__removeFromTabIndexManager(){isc.TabIndexManager.removeTarget(this.ID)},isc.A.$rp=function isc_Canvas__removeFromAutoTabOrder(){this.$180j=false;isc.TabIndexManager.setCanFocus(this.ID,false)},isc.A.clearExplicitTabIndex=function isc_Canvas_clearExplicitTabIndex(){if(this.shouldManageTabPosition)return;this.$180k();this.autoTabIndexUpdated(this.ID)},isc.A.$180k=function isc_Canvas__addToAutoTabOrder(){this.$180j=true;delete this.tabIndex;if(this.$kk()){isc.TabIndexManager.setCanFocus(this.ID,true)}},isc.A.autoTabIndexUpdated=function isc_Canvas_autoTabIndexUpdated(_1){this.logDebug("autoTabIndexUpdated firing","TabIndexManager");if(this.$kk()){this.$vk(this.getTabIndex())}
this.tabIndexUpdated()},isc.A.tabIndexUpdated=function isc_Canvas_tabIndexUpdated(){},isc.A.shouldUpdateTabPositionOnDraw=function isc_Canvas_shouldUpdateTabPositionOnDraw(){return this.updateTabPositionOnDraw&&(this.parentElement==null)},isc.A.updateTabPositionForDraw=function isc_Canvas_updateTabPositionForDraw(){if(this.shouldUpdateTabPositionOnDraw()){this.logDebug("updateTabPositionForDraw running","TabIndexManager");isc.TabIndexManager.moveTarget(this.ID)}},isc.A.updateChildTabPositions=function isc_Canvas_updateChildTabPositions(){if(this.children==null)return;var _1=[];for(var i=0;i<this.children.length;i++){if(!this.children[i].updateTabPositionOnReparent)continue;_1.add(this.children[i])}
this.$180l(_1)},isc.A.$180l=function isc_Canvas__updateChildTabPositionsForDraw(_1){var _2=this.$185f(_1);isc.TabIndexManager.moveTargets(_2,this.ID)},isc.A.$185f=function isc_Canvas__sortChildrenIntoTabOrder(_1,_2,_3){var _4=false,_5=[],_6=[],_7=[];for(var i=0;i<_1.length;i++){var _9=_1[i];var _10=(_9==_2)?_3:this.getChildTabPosition(_9,true);if(_10==null){_7.add(_9.ID)}else{if(_5[_10]!=null){if(!_4){}}
_5[_10]=_9.ID}}
var _11=0;for(var i=0;i<_7.length;i++){while(_5[_11]!=null){_11++}
_5[_11]=_7[i];_11++}
_5.removeEmpty();return _5},isc.A.updateChildTabPosition=function isc_Canvas_updateChildTabPosition(_1){if(!_1||!_1.updateTabPositionOnReparent)return;var _2=this.getChildTabPosition(_1);this.logDebug("updateChildTabPosition for child:"+_1+", moving to index:"+_2,"TabIndexManager");isc.TabIndexManager.moveTarget(_1.ID,this.ID,_2)},isc.A.getChildTabPosition=function isc_Canvas_getChildTabPosition(_1,_2){if(!this.children||!_1)return;if(!_1.updateTabPositionOnReparent){return-1}
if(_1.relativeTabPosition!=null){return _1.relativeTabPosition}
if(_2)return null;var _3=this.children.findAll("updateTabPositionOnReparent",true),_4=this.$185f(_3,_1,_1.relativeTabPosition);return _4.indexOf(_1.ID)},isc.A.setUpdateTabPositionOnReparent=function isc_Canvas_setUpdateTabPositionOnReparent(_1){if(_1==this.updateTabPositionOnReparent)return;this.updateTabPositionOnReparent=_1;if(this.updateTabPositionOnReparent){if(this.parentElement){this.parentElement.updateChildTabPositions()}else{delete this.relativeTabPosition;isc.TabIndexManager.moveTarget(this.ID)}}},isc.A.updateTabPositionForDeparent=function isc_Canvas_updateTabPositionForDeparent(){if(this.updateTabPositionOnReparent){delete this.relativeTabPosition;isc.TabIndexManager.moveTarget(this.ID)}},isc.A.setRelativeTabPosition=function isc_Canvas_setRelativeTabPosition(_1){if(this.relativeTabPosition==_1)return;this.updateTabPositionOnDraw=false;if(this.parentElement&&this.updateTabPositionOnReparent){var _2;var _3=this.parentElement.children;_2=this.parentElement.getChildTabPosition(this);for(var i=0;i<_3.length;i++){if(!_3[i].updateTabPositionOnReparent||_3[i]==this){continue}
var _5=_3[i].relativeTabPosition;if(_5==null||(_5<_2&&_5<_1)||(_5>_2&&_5>_1))
{continue}
if(_5>_2){_5-=1}
if(_5>_1){_5+=1}
_3[i].relativeTabPosition=_5}
this.relativeTabPosition=_1;this.parentElement.updateChildTabPositions()}else{this.updateTabPositionOnDraw=false;isc.TabIndexManager.moveTarget(this.getID(),null,_1)}},isc.A.getTabIndex=function isc_Canvas_getTabIndex(){if(this.$180j){this.tabIndex=isc.TabIndexManager.getTabIndex(this.ID)}
return this.tabIndex},isc.A.setTabIndex=function isc_Canvas_setTabIndex(_1){var _2=isc.Canvas.TAB_INDEX_FLOOR;if(_1>=_2){var _3=_2-1;this.logWarn("setTabIndex(): Passed index of "+_1+". This method does not support setting a tab index greater than "+_3+".  Setting tab index for this widget to "+_3+this.getStackTrace());_1=_3}
this.$rp();this.$vk(_1)},isc.A.$vk=function isc_Canvas__setTabIndex(_1){this.tabIndex=_1;if(this.$kk()&&!this.isDisabled()){this.$vi(_1)}},isc.A.$vi=function isc_Canvas__setHandleTabIndex(_1){if(this._useNativeTabIndex&&this.isDrawn()){var _2=this.getFocusHandle();_2.tabIndex=_1;if(isc.Browser.isIE)isc.Canvas.$vs()}
if(this._useFocusProxy){if(!this.$qj)return this.makeFocusProxy();var _2=this.$sl();var _3=(this.hasFocus&&!this.$vq);if(_3&&_2){this.logDebug("$vi() about to call native blur() on the focus proxy handle","nativeFocus");_2.blur()}
if(isc.Browser.isSafari&&_1<0)return this.$qp();if(_2!=null){_2.tabIndex=_1;if(isc.Browser.isMoz){_2.style.MozUserFocus=(_1<0?"ignore":"normal")}
if(_3){this.logDebug("$vi() about to call native focus() on the focus proxy handle","nativeFocus");_2.focus()}}}},isc.A.syntheticShiftFocus=function isc_Canvas_syntheticShiftFocus(_1){if(!this.isDrawn()||!this.isVisible()||this.isDisabled()||!this.$kk()||this.getTabIndex()==-1)return false;var _2=this.$1096();if(_2!=null&&isc.EH.targetIsMasked(this,_2))return false;this.focus();return true},isc.A.$1096=function isc_Canvas__getTopHardMask(){return isc.EH.getTopHardMask()},isc.A.focusInNextTabElement=function isc_Canvas_focusInNextTabElement(){if(this.$kf){this.$kf(true)}},isc.A.focusAfterGroup=function isc_Canvas_focusAfterGroup(){isc.TabIndexManager.shiftFocusAfterGroup(this.getID())},isc.A.focusInPreviousTabElement=function isc_Canvas_focusInPreviousTabElement(){if(this.$kf){this.$kf(false)}},isc.A.focusAtEnd=function isc_Canvas_focusAtEnd(_1){return isc.TabIndexManager.shiftFocusWithinGroup(this.getID(),null,_1)},isc.A.useExplicitFocusNavigation=function isc_Canvas_useExplicitFocusNavigation(){if(this.alwaysManageFocusNavigation)return true;if(isc.CanvasItem&&isc.isA.CanvasItem(this.canvasItem)){var _1=this.canvasItem.form;return _1.useExplicitFocusNavigationForCanvasItem(this.canvasItem)}else{if(!this.parentElement)return false;return this.parentElement.useExplicitFocusNavigation()}},isc.A.$kf=function isc_Canvas__focusInNextTabElement(_1){isc.TabIndexManager.shiftFocus(this.getID(),_1)},isc.A.getZIndex=function isc_Canvas_getZIndex(_1){if(!this.isDrawn()||isc.Browser.isSafari){if(_1&&this.zIndex==isc.Canvas.AUTO){this.setZIndex(isc.Canvas.getNextZIndex())}
return this.zIndex}
return parseInt(this.getStyleHandle().zIndex)},isc.A.setZIndex=function isc_Canvas_setZIndex(_1){var _2=this.zIndex;if(_2==_1)return;var _3=false;if(isc.Browser.isIE&&this.hasFocus&&this._useNativeTabIndex)
{_3=true;this.logDebug("blurring due to zIndex change","nativeFocus");this.$vo(false)}
if(_1<_2)this.$v6(_1);this.zIndex=_1;if(this.isDrawn()){if(this.$113l)this.getHandle().style.zIndex=_1
this.getStyleHandle().zIndex=_1}
if(_1>_2)this.$v6(_1);if(this.hscrollbar)this.hscrollbar.moveAbove(this);if(this.vscrollbar)this.vscrollbar.moveAbove(this);if(this.clipCorners){var _4=this.$uc;if(_4.TL)_4.TL.moveAbove(this);if(_4.TR)_4.TR.moveAbove(this);if(_4.BL)_4.BL.moveAbove(this);if(_4.BR)_4.BR.moveAbove(this)}
if(_3){this.delayCall("$vn",[],0)}
this.zIndexChanged(_2,_1)},isc.A.$v6=function isc_Canvas__adjustSpecialPeers(_1){if(this.$sb())this.$l0.setZIndex(_1-1);if(this._backMask)this._backMask.setZIndex(_1-2);if(this._shadow)this._shadow.setZIndex(_1-3);if(this.modalMask)this.modalMask.setZIndex(_1-4)},isc.A.zIndexChanged=function isc_Canvas_zIndexChanged(_1,_2){if(!this.parentElement&&isc.Hover.lastHoverCanvas==this&&isc.Hover.hoverCanvas.isVisible()&&isc.Hover.hoverCanvas.getZIndex()<_2)
{isc.Hover.hoverCanvas.bringToFront()}
if(this.children)this.children.callMethod("parentZIndexChanged")},isc.A.parentZIndexChanged=function isc_Canvas_parentZIndexChanged(){if(isc.Hover.lastHoverCanvas==this&&isc.Hover.hoverCanvas.isVisible()){var _1=this.getTopLevelCanvas();if(isc.Hover.hoverCanvas.getZIndex()<_1.getZIndex())
{isc.Hover.hoverCanvas.bringToFront()}}
if(this.children)this.children.callMethod("parentZIndexChanged")},isc.A.bringToFront=function isc_Canvas_bringToFront(_1){if(isc.$cv)arguments.$cw=this;isc.Canvas._BIG_Z_INDEX+=18;this.setZIndex(isc.Canvas._BIG_Z_INDEX);if(this.groupLabel)this.groupLabel.moveAbove(this);var _2=this.getParentCanvas();if(_2&&_2.componentMaskShowing&&_2.componentMask!=this){if(_2.$168r==null){_2.$168r=[this]}else if(!_2.$168r.contains(this)){_2.$168r.add(this)}
this.disableKeyboardEvents(false,true,true)}
if(_1&&!this.$qf())return;isc.$nd=true;this.unmask();isc.$nd=false},isc.A.sendToBack=function isc_Canvas_sendToBack(){if(this.groupLabel)this.groupLabel.sendToBack();isc.Canvas._SMALL_Z_INDEX-=18;this.setZIndex(isc.Canvas._SMALL_Z_INDEX)},isc.A.moveAbove=function isc_Canvas_moveAbove(_1){var z=_1.getZIndex(true);if(_1.groupLabel)z=Math.max(z,_1.groupLabel.getZIndex(true));this.setZIndex(z+6)},isc.A.moveBelow=function isc_Canvas_moveBelow(_1){var z=_1.getZIndex(true);this.setZIndex(z-6)},isc.A.getContents=function isc_Canvas_getContents(){var _1=(isc.isA.Function(this.contents)?this.contents():this.contents);return this.dynamicContents?_1.evalDynamicString(this,this.dynamicContentsVars):_1},isc.A.setContents=function isc_Canvas_setContents(_1){if(_1!=null)this.contents=_1;this.markForRedraw("setContents")},isc.A.containsIFrame=function isc_Canvas_containsIFrame(){return this.contentsURL!=null&&this.contentsType=="page"},isc.A.getContentsURL=function isc_Canvas_getContentsURL(){return this.contentsURL},isc.A.setContentsURL=function isc_Canvas_setContentsURL(_1,_2){this.contentsURL=_1;_1=isc.Page.getURL(_1);var _3=isc.addProperties({},this.contentsURLParams,_2),_1=isc.rpc.addParamsToURL(_1,_3);if(!this.isDrawn())return;if(this.containsIFrame()){var _4=this.$sk();if(!_4||!_1)this.markForRedraw("setContentsURL");else _4.src=_1}},isc.A.setBackgroundColor=function isc_Canvas_setBackgroundColor(_1){this.backgroundColor=_1;var _2=this.getStyleHandle();if(_2!=null){_2.backgroundColor=(_1==null?"":_1)}},isc.A.setTextColor=function isc_Canvas_setTextColor(_1){this.textColor=_1;var _2=this.getStyleHandle();if(_2){return _2.color=_1}},isc.A.setBackgroundImage=function isc_Canvas_setBackgroundImage(_1){this.backgroundImage=_1;var _2=this.getStyleHandle();if(_2){if(_1==null){_2.backgroundImage=""}else{_2.backgroundImage='url('+this.getImgURL(this.backgroundImage)+')'}}},isc.A.setBorder=function isc_Canvas_setBorder(_1){this.$tk=null;if(_1!=null&&!isc.isA.String(_1)){_1=this.$63e(_1)}
if(_1==null)_1=isc.emptyString;if(isc.endsWith(_1,isc.semi))_1=_1.slice(0,_1.length-1);this.border=_1;var _2=this.getStyleHandle();if(!_2)return;if(_2.border!=_1){_2.border=_1}
this.adjustOverflow("setBorder");this.innerSizeChanged("Border thickness changed")},isc.A.$63e=function isc_Canvas__convertBorderToString(_1){var _2=_1;if(isc.isA.Number(_1)){_1+="px solid"}else{_1=null;this.logWarn("this.border defined as "+_2+". This property should have a string value - dropping this attribute.")}
return _1},isc.A.$95d=function isc_Canvas__convertBorderRadiusToString(_1){return(isc.isA.Number(_1)?_1+"px":null)},isc.A.getBorder=function isc_Canvas_getBorder(){return this.border},isc.A.setOpacity=function isc_Canvas_setOpacity(_1,_2,_3){if(!_2&&this.fadeAnimation)this.finishAnimation("fade");var _4=this.opacity;this.opacity=_1;if(this.opacity==100&&!_3&&!(this.smoothFade&&isc.Browser.isMoz))this.opacity=null;if(this.isDrawn()){if(isc.Browser.isMoz){var _5=(this.opacity!=null)?this.opacity/100:"";if(this.smoothFade&&(_5==1||this.opacity==null))_5=0.9999;if(this.$65q)this.getStyleHandle().MozOpacity=_5;else this.getStyleHandle().opacity=_5}else if(isc.Browser.isIE&&!isc.Browser.isIE9){if(!isc.Canvas.neverUseFilters||this.useOpacityFilter){this.getStyleHandle().filter=(this.opacity==null?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+this.opacity+")")}}else{var _5=(this.opacity!=null)?this.opacity/100:"";this.getStyleHandle().opacity=_5}}
this.$v7(_1,_2,_3||_1!=null);if(isc.Browser.isIE&&this.fixIEOpacity&&this.children){for(var i=0;i<this.children.length;i++){var _7=this.children[i];if(_7.opacity==null&&(_3||_1!=null)){_7.setOpacity(100,_2,true)}else if(_7.opacity==100){_7.setOpacity(null)}}}
this.opacityChanged(_1,_2)},isc.A.opacityChanged=function isc_Canvas_opacityChanged(_1,_2){},isc.A.$v7=function isc_Canvas__setPeersOpacity(_1,_2,_3){if(!this.peers)return;for(var i=0;i<this.peers.length;i++){if(this.peers[i].$nt){if(this.useOpacityFilter!=null){this.peers[i].useOpacityFilter=this.useOpacityFilter}
this.peers[i].setOpacity(_1,_2,_3)}else if(this.peers[i]==this.edgedCanvas&&this.edgeOpacity){if(this.useOpacityFilter!=null){this.peers[i].useOpacityFilter=this.useOpacityFilter}
var _5=Math.round(this.opacity*(this.edgeOpacity*.01));this.peers[i].setOpacity(_5,_2,_3)}}},isc.A.setPrompt=function isc_Canvas_setPrompt(_1){this.prompt=_1;this.updateHover()},isc.A.setCursor=function isc_Canvas_setCursor(_1){if(_1&&_1!=this.cursor){this.cursor=_1;this.$k2()}},isc.A.$v8=function isc_Canvas__applyCursor(_1){if(this.$v9==_1)return;if(this.isDrawn()){if((isc.Browser.isMoz||(isc.Browser.isStrict&&isc.Browser.isSafari))&&_1=="hand")_1=isc.Canvas.HAND;this.$v9=_1;this.getStyleHandle().cursor=_1;if(this.$113l)this.getHandle().style.cursor=_1;if(this.$kt){for(var i=0;i<this.$kt.length;i++){this.$kt[i].$v8(_1)}}
if(this.ns.EH.$wa&&(this==this.ns.EH.getTarget())){this.ns.EH.$wa.setCursor(_1)}
if(isc.Browser.isOpera&&isc.Browser.minorVersion<10.5&&this===isc.EH.lastEvent.target){this.markForRedraw()}}},isc.A.$k2=function isc_Canvas__updateCursor(){var _1=this.getCurrentCursor();this.$v8(_1)},isc.A.getCurrentCursor=function isc_Canvas_getCurrentCursor(){var _1=this.cursor;if(isc.EH.dragging&&this.$uh&&(isc.EH.dragMoveTarget!=this)){_1=this.noDropCursor}else if(isc.EH.showNoDropIndicator&&isc.EH.dragDropInProgress()&&(!isc.EH.dropTarget||isc.EH.dropTarget.shouldShowNoDropIndicator()))
{_1=this.noDropCursor}else if(this.isDisabled())_1=this.disabledCursor;else{var _2;if(this.canDragResize&&this.edgeCursorMap){var _3=this.getEventEdge();if(_3&&this.edgeCursorMap[_3]){_1=this.edgeCursorMap[_3];_2=true}}
if(!_2&&this.canDragReposition&&this.dragRepositionCursor){_1=this.dragRepositionCursor}}
return _1});isc.evalBoundary;isc.B.push(isc.A.getHoverTarget=function isc_Canvas_getHoverTarget(_1,_2){var _3=this;while(_3){var _4=_3.getCanHover();if(_4==null){if(_3.prompt!=null)return _3;_3=_3.parentElement}else if(_4){return _3}else{return null}}
return null},isc.A.startHover=function isc_Canvas_startHover(_1){isc.Hover.setAction(this,this.$wb,null,this.hoverDelay)},isc.A.stopHover=function isc_Canvas_stopHover(_1){isc.Hover.clear()},isc.A.$wb=function isc_Canvas__handleHover(){var _1=isc.EH,_2=_1.lastMoveTarget;var _3=_1.lastEvent;if(!_2||_2.getHoverTarget(_3)!=this)return;return this.handleHover()},isc.A.getCanHover=function isc_Canvas_getCanHover(){return this.canHover},isc.A.getHoverComponent=function isc_Canvas_getHoverComponent(){},isc.A.handleHover=function isc_Canvas_handleHover(){if(this.hover&&this.hover()==false)return;if(this.showHover){var _1=this.showHoverComponents&&this.getHoverComponent?this.getHoverComponent():null;if(_1!=null&&isc.isA.Canvas(_1)){var _2=this.$wc();isc.Hover.show(_1,_2,null,this)}else{var _3=this.getHoverHTML();if(_3!=null&&!isc.isAn.emptyString(_3)){var _2=this.$wc();isc.Hover.show(_3,_2,null,this)}}}},isc.A.updateHover=function isc_Canvas_updateHover(_1){if(isc.Hover.lastHoverCanvas!=this||!isc.Hover.hoverCanvas.isVisible())return;if(_1==null)_1=this.getHoverHTML();isc.Hover.show(_1,this.$wc(),null,this)},isc.A.$80l=function isc_Canvas__hoverHidden(){if(this.hoverCanvas&&this.hoverCanvas.hoverAutoDestroy!=false){this.hoverCanvas.markForDestroy();this.hoverCanvas=null;delete this.hoverCanvas}
this.hoverHidden()},isc.A.hoverHidden=function isc_Canvas_hoverHidden(){},isc.A.$wc=function isc_Canvas__getHoverProperties(){var _1=isc.EH.getTarget(),_2=_1?isc.isA.CanvasItem(_1)?_1:_1.canvasItem:null,_3;var _3={};for(var _4 in this.$181q){var _5=this.$181q[_4];_3[_4]=_2&&(_2[_5]!=null)?_2[_5]:this[_5]}
return _3},isc.A.getHoverHTML=function isc_Canvas_getHoverHTML(){return this.prompt},isc.A.setClassName=function isc_Canvas_setClassName(_1){if(this.logIsInfoEnabled(this.$pj)){this.logInfo("call to deprecated setClassName() property - use setStyleName() instead")}
return this.setStyleName(_1)},isc.A.setStyleName=function isc_Canvas_setStyleName(_1){this.$tk=null;this.$tp=null;this.$81b();this.styleName=_1;this.className=_1;var _2=this.getClipHandle();if(_2!=null)_2.className=(_1==null?isc.emptyString:_1);if(this.overflow!=isc.Canvas.HIDDEN){if(this.overflow==isc.Canvas.VISIBLE)this.$t5=true;this.adjustOverflow("setStyleName")}},isc.A.getStateName=function isc_Canvas_getStateName(){var _1=this.getClipHandle()?this.getClipHandle().className:null;return(_1!=null?_1:this.styleName)},isc.A.handleShowContextMenu=function isc_Canvas_handleShowContextMenu(_1){if(_1.target==this&&this.useEventParts){var _2=this.getEventPart(_1);if(_2.part){if(this.$wd(_2.part,"showContextMenu",_2.element,_2.ID,_1)==false)return false}}
if(this.showContextMenu)return this.showContextMenu(_1)},isc.A.showContextMenu=function isc_Canvas_showContextMenu(){var _1=this.contextMenu;if(_1){_1.target=this;if(!isc.isA.Canvas(_1)){_1.autoDraw=false;this.contextMenu=_1=this.getMenuConstructor().create(_1)}
_1.showContextMenu()}
return(_1==null)},isc.A.getMenuConstructor=function isc_Canvas_getMenuConstructor(){var _1=isc.ClassFactory.getClass(this.menuConstructor);if(!_1){isc.logWarn("Class not found for menuConstructor:"+this.menuConstructor+". Defaulting to isc.Menu class");_1=isc.ClassFactory.getClass("Menu")}
return _1},isc.A.hideContextMenu=function isc_Canvas_hideContextMenu(){if(this.contextMenu)this.contextMenu.hideContextMenu()},isc.A.$kr=function isc_Canvas__allowNativeTextSelection(_1){return this.canSelectText},isc.A.$188y=function isc_Canvas__allowNativeDrag(_1){return this.$kr(_1)},isc.A.handleMouseMove=function isc_Canvas_handleMouseMove(_1,_2){if(_1.target==this&&this.useEventParts){var _3=this.getEventPart(_1),_4=this.$nw;if(_4&&_4.part&&(_4.part!=_3.part||_4.ID!=_3.ID))
{this.$wd(_4.part,isc.EH.MOUSE_OUT,_4.element,_4.ID,_1)}
if(_3.part){var _5=!_4||(_4.ID!=_3.ID),_6=(_5?isc.EH.MOUSE_OVER:isc.EH.MOUSE_MOVE);this.$wd(_3.part,_6,_3.element,_3.ID,_1);if(_5){isc.Hover.setAction(this,this.$we,[_3.element,_3.ID],this.hoverDelay)}}
this.$nw=_3}
if(this.mouseMove)return this.mouseMove(_1,_2)},isc.A.$we=function isc_Canvas__handleRectHover(_1,_2){if(this.$nw)this.$wd(this.$nw.part,"hover",_1,_2)},isc.A.handleMouseOut=function isc_Canvas_handleMouseOut(_1,_2){if(_1.target==this&&this.useEventParts){var _3=this.$nw;if(_3&&_3.part){this.$wd(_3.part,isc.EH.MOUSE_OUT,_3.element,_3.ID,_1)}}
if(this.mouseOut)return this.mouseOut(_1,_2)},isc.A.handleMouseDown=function isc_Canvas_handleMouseDown(_1,_2){var _3=this.$772;if(_3!=null){this.cancelAnimation(_3);this.$772=null}
if(_1.target==this&&this.useEventParts)this.firePartEvent(_1,isc.EH.MOUSE_DOWN);if(this.mouseDown)return this.mouseDown(_1,_2)},isc.A.handleRightMouseDown=function isc_Canvas_handleRightMouseDown(_1,_2){if(_1.target==this&&this.useEventParts){this.firePartEvent(_1,isc.EH.RIGHT_MOUSE_DOWN)}
if(this.rightMouseDown)return this.rightMouseDown(_1,_2)},isc.A.handleMouseUp=function isc_Canvas_handleMouseUp(_1,_2){if(_1.target==this&&this.useEventParts)this.firePartEvent(_1,isc.EH.MOUSE_UP);if(this.mouseUp)return this.mouseUp(_1,_2)},isc.A.handleClick=function isc_Canvas_handleClick(_1,_2){if(_1.target==this&&this.useEventParts)this.firePartEvent(_1,isc.EH.CLICK);if(this.click)return this.click(_1,_2)},isc.A.handleDoubleClick=function isc_Canvas_handleDoubleClick(_1,_2){if(_1.target==this&&this.useEventParts)this.firePartEvent(_1,isc.EH.DOUBLE_CLICK);if(this.doubleClick)return this.doubleClick(_1,_2)},isc.A.handleTouchStart=function isc_Canvas_handleTouchStart(_1,_2){if((isc.Browser.isIPhone||isc.Browser.isIPad)&&_1.target===this&&this.isDrawn()&&this.$145k())
{this.$171b=true;var _3=this.getClipHandle();var _4=_3.scrollTop;if(_4<=0)_3.scrollTop=1;else if(_4+_3.clientHeight>=_3.scrollHeight){_3.scrollTop=_3.scrollHeight-_3.clientHeight-1}
this.$168k=_3.scrollHeight<=_3.clientHeight}},isc.A.handleTouchMove=function isc_Canvas_handleTouchMove(_1,_2){if((isc.Browser.isIPhone||isc.Browser.isIPad)&&_1.target===this&&this.isDrawn()&&this.$145k()&&this.$168k)
{return false}},isc.A.handleLongTouch=function isc_Canvas_handleLongTouch(_1,_2){return this.handleShowContextMenu(_1,_2)},isc.A.getEventPart=function isc_Canvas_getEventPart(_1){if(!_1)_1=isc.EH.lastEvent;var _2=_1.eventPart,_3=_1.eventPartID;if(_3==isc.emptyString){_3=null}else if(_3!=null){_3=_3.substring(this.getID().length+_2.length+2)}
var _4={part:_2,ID:_3,element:_1.nativeTarget};return _4},isc.A.getElementPart=function isc_Canvas_getElementPart(_1){var _2,_3;if(this.isDrawn()&&_1!=null){var _4=this.getHandle();if(isc.isA.Canvas(_1))_1=_1.getHandle();while(_1!=_4&&_1!=null){if(_1.getAttribute){_2=_1.getAttribute(this.$pk)}
if(_2==null||_2==isc.emptyString){_1=_1.parentNode}else{break}}
if(_2&&_2!=isc.emptyString){var _5=_1.id;if(_5&&_5!=isc.emptyString){_3=_5.substring(this.getID().length+_2.length+2)}}}
return{part:_2,ID:_3,element:_1}},isc.A.getPartElement=function isc_Canvas_getPartElement(_1){var _2=_1.part,_3=_1.partID,_4=this.getID()+"_"+_2;if(_3)_4+=_3;var _5=isc.Element.get(_4);if(_5)return _5;return isc.Element.findAttribute(this.getHandle(),this.$pk,_2)},isc.A.firePartEvent=function isc_Canvas_firePartEvent(_1,_2){if(!this.useEventParts||!_1)return;var _3=this.getEventPart(_1);if(!_3.part)return;if(!_2)_2=_1.eventType;return this.$wd(_3.part,_2,_3.element,_3.ID,_1)},isc.A.$wd=function isc_Canvas__firePartEvent(_1,_2,_3,_4,_5){var _6=this.getPartEventHandler(_1,_2);if(this[_6]){return this[_6](_3,_4,_5)}},isc.A.getPartEventHandler=function isc_Canvas_getPartEventHandler(_1,_2){if(!isc.Canvas.$np[_1])isc.Canvas.$np[_1]={};if(!isc.Canvas.$np[_1][_2]){var _3=_2.substring(0,1).toUpperCase()+_2.substring(1);isc.Canvas.$np[_1][_2]=_1+_3}
return isc.Canvas.$np[_1][_2]},isc.A.getDragType=function isc_Canvas_getDragType(){return this.dragType},isc.A.willAcceptDrop=function isc_Canvas_willAcceptDrop(){var _1=this.ns.EH;if((_1.nativeDragging&&(_1.lastEvent==null||_1.lastEvent.DOMevent==null||_1.lastEvent.DOMevent.dataTransfer==null))||_1.dragTarget==null)
{return false}
if(this.dropTypes==isc.Canvas.ANYTHING||this.dropTypes==null||isc.is.emptyString(this.dropTypes))
{return true}
var _2=_1.dragTarget==null?null:_1.dragTarget.getDragType();if(_2==null&&_1.nativeDragging){var _3=_1.lastEvent;_2=isc.EH.$120r(_3.DOMevent.dataTransfer)}
if(_2==null||isc.is.emptyString(_2))return false;if(isc.isA.String(_2)){return this.dropTypes.contains(_2)}else if(isc.isAn.Array(_2)){for(var i=0,_5=true,_6=_2.length;i<_6&&_5;i++){_5=_5&&(this.dropTypes.contains(_2))}
return _5}
return false},isc.A.$mb=function isc_Canvas__showDragMask(){if(this.useDragMask&&this.dragMaskType=="hide"){var _1=this.getStyleHandle();this.display_bak=_1.display;_1.display="none"}else if(this.useDragMask&&this.dragMaskType=="hidePlugin"&&this.usePlaceholderDragMask){var _2=this.getPluginHandle();if(_2){_2.style.visibility="hidden";if(!this.$49u)this.$49u=this.createDragPlaceholder();if(this.$49u){isc.addProperties(this.$49u,{$jr:this,getTarget:function(){return this.$jr}});this.$49u.setRect(this.getPageRect());this.$49u.show()}}}else if(this._eventMask){if(this._eventMask.visibility==isc.Canvas.HIDDEN)this._eventMask.show()}},isc.A.getPluginHandle=function isc_Canvas_getPluginHandle(){return document.getElementById(this.getPluginID())},isc.A.getPluginID=function isc_Canvas_getPluginID(){return},isc.A.createDragPlaceholder=function isc_Canvas_createDragPlaceholder(){return isc.Label.create({align:"center",contents:this.dragPlaceholderMessage,styleName:this.dragPlaceholderStyle})},isc.A.$mc=function isc_Canvas__hideDragMask(){if(this.useDragMask&&this.dragMaskType=="hide"){this.getStyleHandle().display=this.display_bak;delete this.display_bak}else if(this.useDragMask&&this.dragMaskType=="hidePlugin"&&this.usePlaceholderDragMask){var _1=this.getPluginHandle();if(_1){_1.style.visibility="inherit";if(this.$49u)this.$49u.hide()}}else if(this._eventMask){if(this._eventMask.visibility!=isc.Canvas.HIDDEN)this._eventMask.hide()}},isc.A.handleDrop=function isc_Canvas_handleDrop(_1,_2){if(this.onDrop!=null&&(this.onDrop()==false))return false;return this.drop(_1,_2)},isc.A.getHSnapPosition=function isc_Canvas_getHSnapPosition(_1,_2){if(!_2){_2=this.snapHDirection}
if(_2!=isc.Canvas.BEFORE&&_2!=isc.Canvas.AFTER&&_2!=isc.Canvas.NEAREST){return _1}
var _3=Math.floor(_1/this.snapHGap)*this.snapHGap;var _4=_3+this.snapHGap;var _5=_3+this.snapHGap/2;if(_2==isc.Canvas.BEFORE){return _3}else if(_2==isc.Canvas.AFTER){return _4}else{if(_1<=_5)return _3;else return _4}},isc.A.getVSnapPosition=function isc_Canvas_getVSnapPosition(_1,_2){if(!_2){_2=this.snapVDirection}
if(_2!=isc.Canvas.BEFORE&&_2!=isc.Canvas.AFTER&&_2!=isc.Canvas.NEAREST){return _1}
var _3=Math.floor(_1/this.snapVGap)*this.snapVGap;var _4=_3+this.snapVGap;var _5=_3+this.snapVGap/2;if(_2==isc.Canvas.BEFORE){return _3}else if(_2==isc.Canvas.AFTER){return _4}else{if(_1<=_5)return _3;else return _4}},isc.A.shouldSnapOnDrop=function isc_Canvas_shouldSnapOnDrop(_1){return true},isc.A.noSnapDragOffset=function isc_Canvas_noSnapDragOffset(_1){return false},isc.A.setShowSnapGrid=function isc_Canvas_setShowSnapGrid(_1){if(this.showSnapGrid==_1)return;this.showSnapGrid=_1;if(_1){this.$1313()}else{if(this.snapGridPane)this.snapGridPane.hide()}},isc.A.$1313=function isc_Canvas__showSnapGrid(){if(!this.childrenSnapToGrid&&!this.childrenSnapResizeToGrid)return;if(this.snapVGap<8||this.snapHGap<8){this.logWarn("Attempt to showSnapGrid ignored - snapVGap or snapHGap < 8");return}
if(!this.snapGridPane){var _1=isc.DrawPane.create({autoDraw:false,height:this.snapVGap,width:this.snapHGap,top:-1000,left:-1000});var _2=Math.floor(this.snapGridCrossLength/2)*2,_3=_2/2,x=_3,y=_3;var _6=isc.addProperties({},this.snapGridLineDefaults,{drawPane:_1,startPoint:[x-_3,y],endPoint:[x+_3,y]});isc.DrawLine.create(_6);var _7=isc.addProperties({},this.snapGridLineDefaults,{drawPane:_1,startPoint:[x,y-_3],endPoint:[x,y+_3]});isc.DrawLine.create(_7);_1.draw();_1.refreshNow();var _8=_1.getDataURL();_1.markForDestroy();this.snapGridPane=this.createAutoChild("snapGridPane",{isSnapAlignCandidate:false,backgroundImage:_8,backgroundRepeat:"repeat",backgroundPosition:(this.snapHGap-_3)+"px "+(this.snapVGap-_3)+"px"});this.addChild(this.snapGridPane);this.snapGridPane.sendToBack()}
this.snapGridPane.show()},isc.A.setChildrenSnapAlign=function isc_Canvas_setChildrenSnapAlign(_1){this.childrenSnapAlign=_1;if(this.childrenSnapAlign)this.$152h()},isc.A.setChildrenResizeSnapAlign=function isc_Canvas_setChildrenResizeSnapAlign(_1){this.childrenResizeSnapAlign=_1},isc.A.setChildrenSnapCenterAlign=function isc_Canvas_setChildrenSnapCenterAlign(_1){this.childrenSnapCenterAlign=_1},isc.A.setChildrenSnapEdgeAlign=function isc_Canvas_setChildrenSnapEdgeAlign(_1){this.childrenSnapEdgeAlign=_1},isc.A.setSnapToAlign=function isc_Canvas_setSnapToAlign(_1){this.snapToAlign=_1},isc.A.setResizeSnapAlign=function isc_Canvas_setResizeSnapAlign(_1){this.resizeSnapAlign=_1},isc.A.setSnapToCenterAlign=function isc_Canvas_setSnapToCenterAlign(_1){this.snapToCenterAlign=_1},isc.A.setSnapToEdgeAlign=function isc_Canvas_setSnapToEdgeAlign(_1){this.snapToEdgeAlign=_1},isc.A.setIsSnapAlignCandidate=function isc_Canvas_setIsSnapAlignCandidate(_1){this.isSnapAlignCandidate=_1},isc.A.setSnapAlignCandidates=function isc_Canvas_setSnapAlignCandidates(_1){this.snapAlignCandidates=_1},isc.A.addSnapAlignCandidate=function isc_Canvas_addSnapAlignCandidate(_1){var _2=_1.ID;if(this.hSnapPositions.find("canvasId",_2)){isc.logWarn("Ignoring duplicate snapAlignCandidate having ID '"+_2+"'.  Call removeSnapAlignCandidate first to overwrite this entry explicitly.");return}
if(_1.masterElement||_1.eventMask||_1.$1452||_1.isMouseTransparent){this.logDebug("Ignoring snapAlignCandidate "+_2+" because it indicates that it is for internal use only.");return}
if(_1.isSnapAlignCandidate===false){isc.logWarn("Ignoring snapAlignCandidate "+_2+" because it has its isSnapAlignCandidate property set to false.");return}
this.logDebug("Adding snapAlignCandidate with canvasId '"+_2+"'.","dragDrop");var _3=this;var _4=function(){if(this.canvas.getPageTop().isBetween(_3.getPageTop(),_3.getPageBottom())){this.line1.setHeight(this.canvas.getPageTop()-_3.getPageTop());this.line1.moveTo(this.getLocalLocator(),0)}else{this.line1.setHeight(_3.getHeight());this.line1.moveTo(this.getLocalLocator(),0)}
if(this.canvas.getPageBottom().isBetween(_3.getPageTop(),_3.getPageBottom())){this.line2.setHeight(_3.getPageBottom()-this.canvas.getPageBottom());this.line2.moveTo(this.getLocalLocator(),this.canvas.getPageBottom()-_3.getPageTop())}else{this.line2.setHeight(_3.getHeight());this.line2.moveTo(this.getLocalLocator(),0)}
this.line1.bringToFront();this.line2.bringToFront();this.line1.show();this.line2.show()};var _5=function(){if(this.canvas.getPageLeft().isBetween(_3.getPageLeft(),_3.getPageRight())){this.line1.setWidth(this.canvas.getPageLeft()-_3.getPageLeft());this.line1.moveTo(0,this.getLocalLocator())}else{this.line1.setWidth(_3.getWidth());this.line1.moveTo(0,this.getLocalLocator())}
if(this.canvas.getPageRight().isBetween(_3.getPageLeft(),_3.getPageRight())){this.line2.setWidth(_3.getPageRight()-this.canvas.getPageRight());this.line2.moveTo(this.canvas.getPageRight()-_3.getPageLeft(),this.getLocalLocator())}else{this.line2.setWidth(_3.getWidth());this.line2.moveTo(0,this.getLocalLocator())}
this.line1.bringToFront();this.line2.bringToFront();this.line1.show();this.line2.show()};var _6=function(){this.line1.hide();this.line2.hide()};var _7=isc.SnapAlignmentMarker.create({orientation:"horizontal",position:"left",line1:this.hSnapLineEdge1,line2:this.hSnapLineEdge2,show:_4,hide:_6,getLocalLocator:function(){var _8=this.canvas.getPageLeft();return _8-_3.getPageLeft()}});var _9=isc.SnapAlignmentMarker.create({orientation:"horizontal",position:"right",line1:this.hSnapLineEdge1,line2:this.hSnapLineEdge2,show:_4,hide:_6,getLocalLocator:function(){var _8=this.canvas.getPageRight();return _8-_3.getPageLeft()}});var _10=isc.SnapAlignmentMarker.create({orientation:"horizontal",position:"center",line1:this.hSnapLineCenter1,line2:this.hSnapLineCenter2,show:_4,hide:_6,getLocalLocator:function(){var l=_7.getLocalLocator();var r=_9.getLocalLocator();return(Math.floor(r-l)/2)+l}});var _13=isc.SnapAlignmentMarker.create({orientation:"vertical",position:"top",line1:this.vSnapLineEdge1,line2:this.vSnapLineEdge2,show:_5,hide:_6,getLocalLocator:function(){var _8=this.canvas.getPageTop();return _8-_3.getPageTop()}});var _14=isc.SnapAlignmentMarker.create({orientation:"vertical",position:"bottom",line1:this.vSnapLineEdge1,line2:this.vSnapLineEdge2,show:_5,hide:_6,getLocalLocator:function(){var _8=this.canvas.getPageBottom();return _8-_3.getPageTop()}});var _15=isc.SnapAlignmentMarker.create({orientation:"vertical",position:"center",line1:this.vSnapLineCenter1,line2:this.vSnapLineCenter2,show:_5,hide:_6,getLocalLocator:function(){var t=_13.getLocalLocator();var b=_14.getLocalLocator();return(Math.floor(b-t)/2)+t}});this.$152k(this.hSnapPositions,_1,_7);this.$152k(this.hSnapPositions,_1,_9);this.$152k(this.hSnapPositions,_1,_10);this.$152k(this.vSnapPositions,_1,_13);this.$152k(this.vSnapPositions,_1,_14);this.$152k(this.vSnapPositions,_1,_15)},isc.A.$152k=function isc_Canvas__addSnapAlignMarker(_1,_2,_3){var _4=this;var _5=function(){this.locator=this.getLocalLocator();if(this.orientation==="horizontal"){_4.hSnapPositions.sortByProperty("locator",true)}else{_4.vSnapPositions.sortByProperty("locator",true)}};var _6=function(_2){_4.removeSnapAlignCandidate(_2)};_3.reposition=_5;_3.destroyed=_6;_3.canvas=_2;_3.canvasId=_2.ID;_3.locator=_3.getLocalLocator();_3.observe(_2,"draw","observer.reposition()");_3.observe(_2,"moved","observer.reposition()");_3.observe(_2,"resized","observer.reposition()");_3.observe(_2,"destroy","observer.destroyed(this)");if(this.editingOn&&this.editProxy){_3.observe(this.editProxy,"drop","observer.hide()");_3.observe(this.editProxy,"dragResizeStop","observer.hide()");_3.observe(this.editProxy,"dragRepositionStop","observer.hide()")}else{_3.observe(_2,"dragResizeStop","observer.hide()");_3.observe(_2,"dragRepositionStop","observer.hide()")}
var _7=_1.length,_8=-1,_9;while(_7-_8>1){_9=(_7+_8)>>>1;if(_1[_9].getLocalLocator()>=_3.getLocalLocator()){_7=_9}else{_8=_9}}
_1.addAt(_3,_7);return _9},isc.A.removeSnapAlignCandidate=function isc_Canvas_removeSnapAlignCandidate(_1){var _2=this.hSnapPositions.findAll("canvasId",_1.ID);if(_2==null||_2.isEmpty()){return}
this.logDebug("Removing snapAlignCandidate with ID '"+_1.ID+"'");var _3=function(_7){_7.ignore(_1,"draw");_7.ignore(_1,"moved");_7.ignore(_1,"resized");_7.ignore(_1,"destroy");_7.ignore(_1,"dragResizeStop");_7.ignore(_1,"dragRepositionStop");if(this.editProxy){_7.ignore(this.editProxy,"drop");_7.ignore(this.editProxy,"dragResizeStop");_7.ignore(this.editProxy,"dragRepositionStop")}}
for(var i=0;i<_2.length;i++){var _5=_2[i];_3(_5);this.hSnapPositions.remove(_5)}
var _6=this.vSnapPositions.findAll("canvasId",_1.ID);if(_6==null||_6.isEmpty()){return}
for(var i=0;i<_6.length;i++){var _5=_6[i];_3(_5);this.vSnapPositions.remove(_5)}},isc.A.$152l=function isc_Canvas__getSnapMarkersBetweenPoints(_1,_2,_3,_4,_5){var _6=Math.min(_2,_3),_7=Math.max(_2,_3);var _8=[];var _9,_10,_11;_9=_1.length;_10=-1;while(_9-_10>1){_11=(_10+_9)>>>1;if(_1[_11].getLocalLocator()<_6){_10=_11}else{_9=_11}}
_8[0]=_10;_9=_1.length;_10=-1;while(_9-_10>1)
{_11=(_10+_9)>>>1;if(_1[_11].getLocalLocator()>_7)
_9=_11;else
_10=_11}
_8[1]=_9;var _12=_1.getRange(_8[0]+1,_8[1]);var _13={_constructor:"AdvancedCriteria",operator:"and",criteria:[{fieldName:"canvas.$806",value:true}]};var _14=[];if(_4){_14.addList([{fieldName:"position",value:"left"},{fieldName:"position",value:"right"},{fieldName:"position",value:"top"},{fieldName:"position",value:"bottom"}])}
if(_5){_14.add({fieldName:"position",value:"center"})}
_13.criteria.add({_constructor:"AdvancedCriteria",operator:"or",criteria:_14});var _15=_12.findAll(_13);return _15&&!_15.isEmpty()?_15:null},isc.A.$152m=function isc_Canvas__snapMarkerComparator(_1,_2){if(_1.distanceToSnap!=_2.distanceToSnap){return _1.distanceToSnap<_2.distanceToSnap?-1:1}
var _3=function(_6){if(_6==="centercenter"){return 3}else if(_6==="leftleft"||_6==="toptop"){return 2}else if(_6==="rightright"||_6==="bottombottom"){return 1}
return 0};var _4=_3(_1.dragPosition+_1.snapPosition);var _5=_3(_2.dragPosition+_2.snapPosition);if(_4>_5)return-1;if(_5>_4)return 1;return 0},isc.A.$152i=function isc_Canvas__getHSnapAlignMarker(_1,_2,_3){_1=_1.$jr||_1;var _4=this.childrenSnapEdgeAlign!=false&&_1.snapToEdgeAlign!=false&&!this.childrenSnapCenterAlign;var _5=this.childrenSnapCenterAlign!=false&&_1.snapToCenterAlign!=false&&!this.childrenSnapEdgeAlign;var _6=_3?0:_1.getVisibleWidth(),_7=_3?0:Math.floor(_6/2);var _8=_2,_9=this.getHSnapPosition(_8,isc.Canvas.BEFORE),_10=this.getHSnapPosition(_8,isc.Canvas.AFTER);var _11=_2+_6,_12=this.getHSnapPosition(_11,isc.Canvas.BEFORE),_13=this.getHSnapPosition(_11,isc.Canvas.AFTER);var _14=_2+_7,_15=this.getHSnapPosition(_14,isc.Canvas.BEFORE),_16=this.getHSnapPosition(_14,isc.Canvas.AFTER);var _17={data:[],add:function(_22,_2,_23,_24){if(_1.ID===_22.canvasId){return}
this.data.add({show:function(){_22.show()},hide:function(){_22.hide()},dragPosition:_23,dragCoordinate:_2,snapPosition:_22.position,snapCoordinate:_22.getLocalLocator()-_24,distanceToSnap:Math.abs(_22.getLocalLocator()-_2)})},addList:function(_22,_2,_23,_24){for(var i=0;i<_22.length;i++){this.add(_22[i],_2,_23,_24)}}};if(_4){var _19=this.$152l(this.hSnapPositions,_9,_10,_4,_5);var _20=this.$152l(this.hSnapPositions,_12,_13,_4,_5);if(_19){_17.addList(_19,_8,"left",0)}
if(_20){_17.addList(_20,_11,"right",_6)}}
if(_5){var _21=this.$152l(this.hSnapPositions,_15,_16,_4,_5);if(_21){_17.addList(_21,_14,"center",_7)}}
return _17.data.sort(this.$152m)[0]},isc.A.$152j=function isc_Canvas__getVSnapAlignMarker(_1,_2,_3){_1=_1.$jr||_1;var _4=this.childrenSnapEdgeAlign!=false&&_1.snapToEdgeAlign!=false&&!this.childrenSnapCenterAlign;var _5=this.childrenSnapCenterAlign!=false&&_1.snapToCenterAlign!=false&&!this.childrenSnapEdgeAlign;var _6=_3?0:_1.getVisibleHeight(),_7=_3?0:Math.floor(_6/2);var _8=_2,_9=this.getVSnapPosition(_8,isc.Canvas.BEFORE),_10=this.getVSnapPosition(_8,isc.Canvas.AFTER);var _11=_2+_6,_12=this.getVSnapPosition(_11,isc.Canvas.BEFORE),_13=this.getVSnapPosition(_11,isc.Canvas.AFTER);var _14=_2+_7,_15=this.getVSnapPosition(_14,isc.Canvas.BEFORE),_16=this.getVSnapPosition(_14,isc.Canvas.AFTER);var _17={data:[],add:function(_22,_2,_23,_24){if(_1.ID===_22.canvasId){return}
this.data.add({show:function(){_22.show()},hide:function(){_22.hide()},dragPosition:_23,dragCoordinate:_2,snapPosition:_22.position,snapCoordinate:_22.getLocalLocator()-_24,distanceToSnap:Math.abs(_22.getLocalLocator()-_2)})},addList:function(_22,_2,_23,_24){for(var i=0;i<_22.length;i++){this.add(_22[i],_2,_23,_24)}}};if(_4){var _19=this.$152l(this.vSnapPositions,_9,_10,_4,_5);var _20=this.$152l(this.vSnapPositions,_12,_13,_4,_5);if(_19){_17.addList(_19,_8,"top",0)}
if(_20){_17.addList(_20,_11,"bottom",_6)}}
if(_5){var _21=this.$152l(this.vSnapPositions,_15,_16,_4,_5);if(_21){_17.addList(_21,_14,"center",_7)}}
return _17.data.sort(this.$152m)[0]},isc.A.$152h=function isc_Canvas__initSnapAlign(){if(this.$166y)return;this.$166y=true;var _1=this.snapAlignEdgeLineStyle||null;var _2=this.snapAlignCenterLineStyle||null;this.hSnapLineEdge1=this.createAutoChild("snapLine",{styleText:_1?"border-left: "+_1:null,show:function(){this.creator.hSnapLineCenter1.hide();this.creator.hSnapLineCenter2.hide();this.Super("show",arguments)}});this.hSnapLineEdge2=this.createAutoChild("snapLine",{styleText:_1?"border-left: "+_1:null,show:function(){this.creator.hSnapLineCenter1.hide();this.creator.hSnapLineCenter2.hide();this.Super("show",arguments)}});this.hSnapLineCenter1=this.createAutoChild("snapLine",{styleText:_2?"border-left: "+_2:null,show:function(){this.creator.hSnapLineEdge1.hide();this.creator.hSnapLineEdge2.hide();this.Super("show",arguments)}});this.hSnapLineCenter2=this.createAutoChild("snapLine",{styleText:_2?"border-left: "+_2:null,show:function(){this.creator.hSnapLineEdge1.hide();this.creator.hSnapLineEdge2.hide();this.Super("show",arguments)}});this.vSnapLineEdge1=this.createAutoChild("snapLine",{styleText:_1?"border-top: "+_1:null,show:function(){this.creator.vSnapLineCenter1.hide();this.creator.vSnapLineCenter2.hide();this.Super("show",arguments)}});this.vSnapLineEdge2=this.createAutoChild("snapLine",{styleText:_1?"border-top: "+_1:null,show:function(){this.creator.vSnapLineCenter1.hide();this.creator.vSnapLineCenter2.hide();this.Super("show",arguments)}});this.vSnapLineCenter1=this.createAutoChild("snapLine",{styleText:_2?"border-top: "+_2:null,show:function(){this.creator.vSnapLineEdge1.hide();this.creator.vSnapLineEdge2.hide();this.Super("show",arguments)}});this.vSnapLineCenter2=this.createAutoChild("snapLine",{styleText:_2?"border-top: "+_2:null,show:function(){this.creator.vSnapLineEdge1.hide();this.creator.vSnapLineEdge2.hide();this.Super("show",arguments)}});this.addChild(this.hSnapLineEdge1);this.addChild(this.hSnapLineEdge2);this.addChild(this.hSnapLineCenter1);this.addChild(this.hSnapLineCenter2);this.addChild(this.vSnapLineEdge1);this.addChild(this.vSnapLineEdge2);this.addChild(this.vSnapLineCenter1);this.addChild(this.vSnapLineCenter2);if(!this.snapAlignCandidates){for(var i=0;i<this.children.length;i++){var _4=this.children[i];this.addSnapAlignCandidate(_4)}}else{for(var i=0;i<this.snapAlignCandidates.length;i++){this.addSnapAlignCandidate(this.snapAlignCandidates[i])}}
this.observe(this,"addChild","observed.addSnapAlignCandidate(returnVal)")},isc.A.setAppImgDir=function isc_Canvas_setAppImgDir(_1){if(_1)this.appImgDir=_1},isc.A.getAppImgDir=function isc_Canvas_getAppImgDir(){return isc.Page.getImgURL("",this.appImgDir)},isc.A.setSkinImgDir=function isc_Canvas_setSkinImgDir(_1){if(_1)this.skinImgDir=_1},isc.A.getSkinImgDir=function isc_Canvas_getSkinImgDir(){return isc.Page.getSkinImgDir(this.skinImgDir)},isc.A.getImgURL=function isc_Canvas_getImgURL(_1,_2){return isc.Canvas.getImgURL(_1,_2,this)},isc.A.imgHTML=function isc_Canvas_imgHTML(_1,_2,_3,_4,_5,_6,_7,_8){return isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,this,false,_8)},isc.A.$wf=function isc_Canvas__getImgHTMLTemplate(_1,_2,_3,_4,_5,_6,_7,_8){isc.Canvas.$1866=true;var _9=isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,this,true,_8);isc.Canvas.$1866=false;return _9},isc.A.getImage=function isc_Canvas_getImage(_1,_2){if(isc.isA.String(_1))_1=this.getCanvasName()+_1;var _3=this.getHandle();if(_3){var _4=_3.document||document;if(isc.Page.isXHTML()||_2){return _4.getElementById(_1)}else{return _4.images[_1]}}
return null},isc.A.setImage=function isc_Canvas_setImage(_1,_2,_3,_4){var _5=this.getImage(_1,_4);if(_5==null){this.logWarn("setImage: image '"+_1+"' couldn't be found");return}
isc.Canvas.$wg(_5,_2,_3,this)},isc.A.linkHTML=function isc_Canvas_linkHTML(_1,_2,_3,_4,_5,_6,_7){return isc.Canvas.linkHTML(_1,_2,_3,_4,_5,_6,_7)},isc.A.inWhichPosition=function isc_Canvas_inWhichPosition(_1,_2,_3){if(!_1||_2<0)return-1;if(_3==isc.Page.RTL){var _4=_1.sum();for(var c=0,_6=_1.length;c<_6;c++){if(_2>=_4-_1[c])return c;_4-=_1[c]}}else{for(var c=0,_6=_1.length;c<_6;c++){if(_2<=_1[c]){return c}
_2-=_1[c]}}
return-2},isc.A._canvasList=function isc_Canvas__canvasList(_1){var _2=isc.Canvas._canvasList;if(_1)_2.add(this);else _2.remove(this);if(this.$ih){isc.Canvas._iscInternalCount+=(_1?1:-1)}else{isc.Log.updateStats(this.$f8)}},isc.A.$p6=function isc_Canvas__addStat(_1){if(!this.$ih){isc.Canvas._stats[_1]++;isc.Log.updateStats(_1)}},isc.A.$wh=function isc_Canvas__attachedPeers(_1){var _2=this.$sc;if(!_2)return null;if(_1)return _2[_1]},isc.A.$wi=function isc_Canvas__registerAttachedPeer(_1,_2,_3,_4){if(_1==null||_2==null)return;if(!this.$sc)this.$sc={};if(!this.$sc[_2])this.$sc[_2]=[];this.$sc[_2].add(_1);if(_3!=null)_1.$55s=_3
if(_4){this.observe(_1,"resized","observer.$88y(observed)")}
delete this.$s7;delete this.$s8});isc.evalBoundary;isc.B.push(isc.A.$wj=function isc_Canvas__unRegisterAttachedPeer(_1,_2,_3){if(_1==null||_2==null)return;if(!this.$sc||!this.$sc[_2])return;this.$sc[_2].remove(_1);if(this.isObserving(_1,"resized")){this.ignore(_1,"resized")}
delete _1.$55s;delete this.$s7;delete this.$s8},isc.A.$88y=function isc_Canvas__attachedPeerResized(_1){this.refreshMargin()},isc.A.refreshMargin=function isc_Canvas_refreshMargin(){this.setMargin(this.margin)},isc.A.$ps=function isc_Canvas__makeCornerClips(){this.$uc={};for(var i=0;i<this.clippedCorners.length;i++){this.$wk(this.clippedCorners[i])}},isc.A.$wk=function isc_Canvas__makeCornerClip(_1){var _2=this.$uc,_3=this.left,_4=this.top,_5=this.cornerClipWidth||this.cornerClipSize,_6=this.cornerClipHeight||this.cornerClipSize;if(_1=="TR"||_1=="BR"){_3=_3+this.getWidth()-_5}
if(_1=="BL"||_1=="BR"){_4=_4+this.getHeight()-_6}
if(this.noCornerClipImages&&!(isc.Browser.isIE&&isc.Browser.minorVersion>=5.5)){this.noCornerClipImages=false}
var _7=_2[_1]=isc.ClassFactory.newInstance({_constructor:(this.noCornerClipImages?"Canvas":"Img"),left:_3,top:_4,width:_5,height:_6,eventProxy:this,src:(this.noCornerClipImages?null:this.$wl(_1)),contents:(this.noCornerClipImages?this.$wm(_5,_6,_1):null)},this.$nv);this.addPeer(_7);_7.moveAbove(this)},isc.A.$qg=function isc_Canvas__finishCornerClips(){if(!this.noCornerClipImages)return;for(var _1 in this.$uc){var _2=this.$uc[_1],_3=_2.getHandle().firstChild,_4=_3.style;_3.filters[0].apply();_4.visibility="hidden";_3.filters[0].percent=71}},isc.A.$wl=function isc_Canvas__getCornerImage(_1){return isc.Img.urlForState(this.cornerClipImage,null,null,this.cornerClipColor,_1)},isc.A.$wm=function isc_Canvas__getCornerHTML(_1,_2,_3){var _4=isc.SB.create();_4.append("<DIV STYLE='width:",2*_1,"px;height:",2*_2,"px;filter:progid:DXImageTransform.Microsoft.iris(irisStyle=circle,motion=out);");if(_3.contains("R"))_4.append("margin-left:",-_1,"px;");if(_3.contains("B"))_4.append("margin-top:",-_2,"px;");_4.append("'><DIV STYLE='overflow:hidden;width:",_1,"px;height:",_2,"px;background-color:",this.cornerClipColor,";");if(_3.contains("R"))_4.append("margin-left:",_1,"px;");if(_3.contains("B"))_4.append("margin-top:",_2,"px;");_4.append("'></DIV></DIV>");return _4.release(false)},isc.A.$sb=function isc_Canvas__edgesAsPeer(){return this.showEdges&&!this.edgesAsChild},isc.A.$pq=function isc_Canvas__createEdges(){if(!this.showEdges||isc.isA.EdgedCanvas(this)||this.$l0!=null){return this.$l0}
var _1=this.$l0=this.$wn();if(this.edgesAsChild){_1.resizeTo("100%","100%");_1.sendToBack();this.addChild(_1)}else{this.addPeer(_1)}
return _1},isc.A.setEdgeOpacity=function isc_Canvas_setEdgeOpacity(_1){var _2=this.edgeOpacity=_1;if(this.opacity>0&&this.opacity<100){_2=this.opacity*(this.edgeOpacity/100)}
this.$l0.setOpacity(_2)},isc.A.$wn=function isc_Canvas__createEdgedCanvas(){var _1=this.$pl,_2=isc.EdgedCanvas.createRaw();_2.autoDraw=false;_2._generated=true;_2.containedPeer=true;_2.dragTarget=this;_2.visibility=this.visibility;_2.opacity=this.opacity;_2.useOpacityFilter=this.useOpacityFilter;if(this.edgeOpacity!=null){_2.opacity=this.edgeOpacity;_2.$nt=false}
_2.smoothFade=this.smoothFade;if(this.edgeOverflow!=null)_2.overflow=this.edgeOverflow;_2.eventProxy=this;for(var i=0;i<_1.length;i++){var _4=_1[i];if(this[_4]!=null)_2[_4]=this[_4]}
if(this.edgeBackgroundColor)_2.backgroundColor=this.edgeBackgroundColor;if(this.edgeCenterBackgroundColor){_2.centerBackgroundColor=this.edgeCenterBackgroundColor}
if(this.edgeShowCenter!=null)_2.showCenter=this.edgeShowCenter;if(!this.edgesAsChild)_2.zIndex=this.getZIndex(true)-1;_2.completeCreation();return _2},isc.A.setShowShadow=function isc_Canvas_setShowShadow(_1){this.showShadow=_1;if(!this.shouldUseCSSShadow()){if(_1){if(!this._shadow)this.$pr();else if(this.isDrawn())this._shadow.show()}else{if(this._shadow)this._shadow.hide()}}else if(this.isDrawn()){var _2=this.getClipHandle().style;if(this.showShadow){_2.boxShadow=this.$1781(false)}else{_2.boxShadow=""}}},isc.A.$pr=function isc_Canvas__createShadow(){var _1=this._shadow=this.createAutoChild("shadow",{visibility:this.visibility,zIndex:this.getZIndex(true)-3},isc.DropShadow);this.updateShadow(true);this.addPeer(_1);_1.moveBelow(this)},isc.A.updateShadow=function isc_Canvas_updateShadow(_1){if(!_1)this.setShowShadow(this.showShadow);var _2=this._shadow;if(!_2)return;_2.offset=this.shadowOffset;_2.offsetX=this.shadowOffsetX;_2.offsetY=this.shadowOffsetY;_2.softness=this.shadowSoftness;if(this.shadowImage)_2.setEdgeImage(this.shadowImage);_2.setDepth(this.shadowDepth);if(this.dragResizeFromShadow&&this.canDragResize){_2.canDragResize=this.canDragResize;_2.resizeFrom=this.resizeFrom;_2.dragTarget=this}},isc.A.propertyChanged=function isc_Canvas_propertyChanged(_1,_2){if(isc.contains(_1,this.$pm)&&this.updateShadow)this.updateShadow();if((_1==this.$131z||_1==this.$1310)&&this.snapGridPane){var _3=this.showSnapGrid;this.setShowSnapGrid(false);this.snapGridPane=null;if(_3)this.setShowSnapGrid(true)}
if(_1==this.$1311||_1==this.$1312){if((this.childrenSnapToGrid||this.childrenSnapResizeToGrid)&&this.showSnapGrid)this.$1313();else if(this.snapGridPane)this.snapGridPane.hide()}},isc.A.setIsGroup=function isc_Canvas_setIsGroup(_1,_2){if(_1==this.isGroup)return;var _3=this.shouldShowGroupLabel()&&this.isDrawn();if(_3)this.clear();if(_1){this.$55t=this.border;this.setBorder(this.groupBorderCSS);if(this.shouldShowGroupLabel())this.$55u(_2)}else{this.setBorder(this.$55t||"");if(this.shouldShowGroupLabel())this.$55v()}
this.isGroup=_1;if(_3)this.draw()},isc.A.shouldShowGroupLabel=function isc_Canvas_shouldShowGroupLabel(){return this.showGroupLabel},isc.A.makeGroupLabel=function isc_Canvas_makeGroupLabel(){if(!this.groupLabel){var _1={autoDraw:false,backgroundColor:this.getGroupLabelBackgroundColor(),eventProxy:this,styleName:this.groupLabelStyleName}
if(this.groupTitle!=null)_1.contents=this.groupTitle;this.groupLabel=this.createAutoChild("groupLabel",_1)}else{if(this.groupTitle!=null)this.groupLabel.setContents(this.groupTitle);this.groupLabel.setBackgroundColor(this.getGroupLabelBackgroundColor())}},isc.A.getGroupLabelBackgroundColor=function isc_Canvas_getGroupLabelBackgroundColor(){if(this.groupLabelBackgroundColor)return this.groupLabelBackgroundColor;if(this.backgroundColor)return this.backgroundColor;return"white"},isc.A.setGroupLabelBackgroundColor=function isc_Canvas_setGroupLabelBackgroundColor(_1){this.groupLabelBackgroundColor=_1;if(this.groupLabel)this.groupLabel.setBackgroundColor(this.getGroupLabelBackgroundColor())},isc.A.$55u=function isc_Canvas__showGroupLabel(_1){this.makeGroupLabel();var _2=this.groupLabel;if(_2.masterElement!=this)this.addPeer(_2);var _3;if(_2.overflow==isc.Canvas.VISIBLE){_2.setTop(-10000);_2.draw();_3=_2.getVisibleHeight()}else{_3=_2.getVisibleHeight()}
var _4=Math.round(_3/2);this.$wi(_2,isc.Canvas.TOP,_4);var _5=_3-_4;if(this.padding)_5+=this.padding;this.setTopPadding(_5);this.$1332();if(this.isDrawn()){if(!_2.isDrawn())_2.draw()}
this.getTopMargin();if(!_1){_2.moveAbove(this);if(_2.isDrawn()&&!this.isDrawn())_2.clear()}},isc.A.$55v=function isc_Canvas__hideGroupLabel(){if(!this.groupLabel)return;var _1=this.groupLabel;this.$wj(_1,isc.Canvas.TOP);this.setTopPadding(null);_1.clear();_1.depeer()},isc.A.$1332=function isc_Canvas__moveGroupLabelIntoPlace(){var _1=this.groupLabel;var _2,_3=this.getTop();if(this.isRTL()){_2=this.getRight()-this.groupLabelPadding-_1.getVisibleWidth()}else{_2=this.getLeft()+this.groupLabelPadding}
_1.moveTo(_2,_3)},isc.A.setGroupTitle=function isc_Canvas_setGroupTitle(_1){this.groupTitle=_1;if(this.groupLabel){this.groupLabel.setContents(this.groupTitle)}else{this.$55u()}},isc.A.setTriggerAreaTop=function isc_Canvas_setTriggerAreaTop(_1){if(this.triggerAreaTop==_1)return;this.triggerAreaTop=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaRight=function isc_Canvas_setTriggerAreaRight(_1){if(this.triggerAreaRight==_1)return;this.triggerAreaRight=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaBottom=function isc_Canvas_setTriggerAreaBottom(_1){if(this.triggerAreaBottom==_1)return;this.triggerAreaBottom=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.setTriggerAreaLeft=function isc_Canvas_setTriggerAreaLeft(_1){if(this.triggerAreaLeft==_1)return;this.triggerAreaLeft=_1;if(this.triggerArea!=null)this.triggerArea.$1515()},isc.A.$1516=function isc_Canvas__getTriggerAreaRect(){var _1=this.triggerAreaTop,_2=this.triggerAreaRight,_3=this.triggerAreaBottom,_4=this.triggerAreaLeft;return{left:this.getLeft()-_4,top:this.getTop()-_1,width:this.getVisibleWidth()+_2+_4,height:this.getVisibleHeight()+_1+_3}},isc.A.$1517=function isc_Canvas__createTriggerArea(){var _1=this.$1516();var _2=this.triggerArea=this.createAutoChild("triggerArea",{eventProxy:this,left:_1.left,top:_1.top,width:_1.width,height:_1.height},isc.Browser.isAndroid&&isc.Browser.isChrome?isc.Img:isc.Canvas);this.addPeer(_2);return _2},isc.A.getRuleContext=function isc_Canvas_getRuleContext(_1){var _2=this.getRuleScopeComponent();if(!_2)return null;if(!_2.$1634)_2.$1634={};var _3=_2.$1634;if(_1){var _4={},_5=_2.$163z;for(var i=0;i<_5.length;i++){var _7=_5[i];if(_3[_7.ID]!=null){_4[_7.ID]=_3[_7.ID]}
if(_7.dataSource&&_3[_7.dataSource]!=null){_4[_7.dataSource]=_3[_7.dataSource]}}
_3=_4}
return _3},isc.A.getRuleScopeDataBoundComponents=function isc_Canvas_getRuleScopeDataBoundComponents(){var _1=this.getRuleScopeComponent();if(!_1)return[];return _1.$163z||[]},isc.A.ruleContextChanged=function isc_Canvas_ruleContextChanged(_1){},isc.A.provideRuleContext=function isc_Canvas_provideRuleContext(_1,_2,_3,_4){if(!this.ruleScope&&!this.isRuleScope)return;if(!_1){this.logWarn("provideRuleContext: no ruleContext path specific - ignored","ruleContext");return}
var _5=this.getRuleScopeComponent();if(!_5)return;var _6=(_3?_3.getID():null);this.logDebug("provideRuleContext ["+[this.getRuleScope(),_6,(_4?"PARTIAL":"COMPLETE")]+"]: "+_1+" = "+this.echo(_2),"ruleContext");if(!_5.$1634)_5.$1634={};if(!_5.$177u)_5.$177u={};var _7=_5.$1634,_8=_5.$177u,_9=_1.replace("/",".").split(".")[0];var _10=_8[_9];if(_3){if(_10!=_6){if(_10==null){_10=_8[_9]=_6}else{if(isc.Canvas.getRuleContextPreferredOwnerID(window[_10],_3)==_6){this.logDebug("provideRuleContext: "+_6+" taking ownership of "+_9+" from "+_10,"ruleContext");_10=_8[_9]=_6}else{this.logDebug("provideRuleContext: "+_6+" NOT taking ownership of "+_9+" from "+_10,"ruleContext")}}}}
if(_10==_6){if(_2!=null){isc.Canvas.$70n(_1,null,_2,_5.$1634)}else{isc.Canvas.$70m(_1,_5.$1634);if(_6&&_1==_9&&_8[_9]==_6){delete _8[_9]}}}else{this.logDebug("provideRuleContext: "+_1+" update ignored - not owner [dbc="+_6+",owner="+_8[_9]+"]","ruleContext")}
if(_5.rulesEngine&&!_5.rulesEngine.ruleContext){_5.rulesEngine.ruleContext=_5.getRuleContext()}
if(!_4&&_5.ruleContextChanged){this.fireRuleContextChanged(_5)}},isc.A.$1671=function isc_Canvas__getFromRuleContext(_1){return isc.Canvas.$70o(_1,null,this.getRuleContext())},isc.A.fireRuleContextChanged=function isc_Canvas_fireRuleContextChanged(_1){if(!this.ruleScope&&!this.isRuleScope)return;if(!_1)_1=this.getRuleScopeComponent();if(!_1)return;if(_1.rulesEngine)_1.rulesEngine.processContextChanged(_1);_1.ruleContextChanged(_1.$1634)},isc.A.getRulesEngine=function isc_Canvas_getRulesEngine(){if(this.rulesEngine)return this.rulesEngine;var _1=this.getRuleScopeComponent();if(!_1)return null;if(!_1.rulesEngine){_1.rulesEngine=isc.RulesEngine.create({baseComponent:_1,members:[_1]})}
return _1.rulesEngine},isc.A.getRuleScopeComponent=function isc_Canvas_getRuleScopeComponent(){if(!this.ruleScope&&!this.isRuleScope)return null;var _1=this.getRuleScope();if(!_1)return null;var _2=window[_1];return(!_2||_2.destroyed?null:_2)},isc.A.getRuleScope=function isc_Canvas_getRuleScope(){if(this.ruleScope){return(isc.isA.Canvas(this.ruleScope)?this.ruleScope.getID():this.ruleScope)}
if(this.isRuleScope)return this.getID();var _1=null,_2=this.getParentCanvas();if(_2){if(this.editNode&&this.editContext&&(!_2.editNode||_2.editNode==this.editContext.getRootEditNode()))
{return this.getID()}
_1=_2.getRuleScope()}else{_1=this.getID()}
return _1},isc.A.$177w=function isc_Canvas__getObjectLocatorForWhenRules(_1){var _2=isc.AutoTest.testRoot;isc.AutoTest.testRoot=null;var _3=isc.AutoTest.getObjectLocator(_1);if(_3)_3=_3.replace(/\[([^\]]+)\]/,"[$1,locatorMatching=restrictSuffix]");isc.AutoTest.testRoot=_2;return _3},isc.A.$1630=function isc_Canvas__createCanvasWhenRules(){if(this.$1635)return;var _1=this.getRuleScopeComponent();if(!_1)return null;var _2=[];if(this.visibleWhen||this.enableWhen){var _3=this.$177w(this);if(this.visibleWhen){_2.add(this.$1636(_3,"visibility",this.visibleWhen))}
if(this.enableWhen){_2.add(this.$1636(_3,"enable",this.enableWhen))}}
if(_2.length>0){var _4=_1.getRulesEngine();if(!_4){return}
_4.addMember(this);for(var i=0;i<_2.length;i++){_4.addRule(_2[i])}}
this.$1635=true},isc.A.$1632=function isc_Canvas__removeCanvasWhenRules(){var _1=this.getRuleScopeComponent();if(_1){if(_1.rulesEngine&&(this.visibleWhen||this.enableWhen)){var _2=this.$177w(this);if(this.visibleWhen)this.$1637(_2,"visibility");if(this.enableWhen)this.$1637(_2,"enable")}}
delete this.$1635},isc.A.$1638=function isc_Canvas__getRuleName(_1,_2,_3){if(_3&&!_1){var _4=(isc.isA.String(this.dataSource)?this.dataSource:this.dataSource.getID());return _4+"_"+_3+"_"+_2}
return(_3?this.ID+"_"+_3+"_"+_2:this.ID+"_"+_2)},isc.A.$1636=function isc_Canvas__createWhenRule(_1,_2,_3,_4){if(!isc.DS.isAdvancedCriteria(_3)){if(_3.operator&&_3.criteria){_3=isc.clone(_3);_3._constructor="AdvancedCriteria"}else if(_3.fieldName&&_3.operator){_3={_constructor:"AdvancedCriteria",operator:"and",criteria:isc.clone(_3)}}else{_3=isc.DS.convertCriteria(_3,"exact")}}else{_3=isc.clone(_3)}
this.$1631(_3);var _5=this.$1638(_1,_2,_4),_6=(_1!=null?{locator:_1}:{fieldName:this.dataSource+"."+_4});return isc.addProperties({name:this.$1638(_1,_2,_4),triggerEvent:"contextChanged",type:_2,applyWhen:_3},_6)},isc.A.$1637=function isc_Canvas__removeWhenRule(_1,_2,_3){var _4=this.$1638(_1,_2,_3),_5=this.getRulesEngine();if(_5)_5.removeRule(_4)},isc.A.$1633=function isc_Canvas__removeFromRuleScope(){if(!this.ruleScope)return;var _1=this.getRuleScopeComponent();if(!_1)return null;if(_1.$163z){_1.$163z.remove(this)}
if(_1.$177u){var _2=this.ID,_3=_1.$177u;for(var _4 in _3){if(_3[_4]==_2)delete _3[_4]}}});isc.B._maxIndex=isc.C+692;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoResizeIcons=false;isc.A.autoResizeAutoChildAttributes=false;isc.A.$186x={fonts:{},controls:{}};isc.A.$188u={};isc.A.$hm="[SKIN]";isc.A.$1625="{allowRelativeSrc}";isc.A.printOmitControls=["Button","StretchImgButton","ImgButton","MenuButton","Toolbar","ToolStrip","ButtonItem","ToolbarItem"];isc.A.printIncludeControls=["Label"];isc.A.$ws=0;isc.A.$94t="&apos;";isc.A.$123d={"TEXTTOP":"text-top","texttop":"text-top","absmiddle":"middle"};isc.A.$5w="blank";isc.A.$186y={};isc.A.$186z={};isc.A.$wt="ID='";isc.A.$ob="'";isc.A.$wu="absmiddle";isc.A.$wv=[,,," eventpart='valueicon' ",null];isc.A.$124g="margin-left:";isc.A.$124h="px;margin-right:";isc.A.$wx={png:true,PNG:true,Png:true};isc.A.$wy=["<a",," href='",,"' target='",,"'",,,,">",,"</a>"];isc.A.$wz=isc.Browser.isMobileSafari?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"[SKINIMG]/blank.gif";isc.A.$w0="0";isc.A.$123e=!isc.Browser.isIE||isc.Browser.version>=9;isc.A.$w1="clearRedrawQueue";isc.A.$65j=[];isc.A.$65k=0;isc.A.$65l="clearDestroyQueue";isc.A.$tw=[];isc.B.push(isc.A.stripScriptTags=function isc_c_Canvas_stripScriptTags(_1){return _1.replace(/<script([^>]*)?>(.|\n|\r)*?<\/script>/ig,isc.emptyString)},isc.A.stripLinkTags=function isc_c_Canvas_stripLinkTags(_1){return _1.replace(/<link([^>]*)?>/ig,isc.emptyString)},isc.A.getById=function isc_c_Canvas_getById(_1){var _2=window[_1]||null;return _2?(isc.isA.Canvas(_2)?_2:null):null},isc.A.getNextZIndex=function isc_c_Canvas_getNextZIndex(){return(isc.Canvas._nextZIndex+=18)},isc.A.getFocusProxyString=function isc_c_Canvas_getFocusProxyString(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16){if(this.$w8==null){this.$w9="' ONFOCUS=";this.$xa="' ";this.$xb=" ONBLUR=";this.$w8=["<div"," id='",null,"$xc' style='overflow:hidden;width:0px;height:0px;position:",,";left:",null,"px;top:",null,"px;'>",(isc.Browser.isSafari?"<textarea":(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051111?"<div":"<button onclick='event.cancelBubble=true;return false;'"))," id='",null,"__focusProxy'"," style='VISIBILITY:",null,"left:1px;top:1px;width:",(isc.Browser.isSafari?"1":null),"px;height:",(isc.Browser.isSafari?"1":null),"px;",null,this.$w9,null,this.$xb,null,null,null,null," tabindex='",null,null,"' focusProxy='true' handleNativeEvents='",null,"'>",(isc.Browser.isSafari?"</textarea>":(isc.Browser.isMoz&&isc.Browser.geckoVersion>=20051111?"</div>":"</button>")),"</div>"]}
var _17=this.$w8;_17[2]=_1;_17[4]=(_2?"absolute":"inline");_17[6]=_3;_17[8]=_4;_17[12]=_1;_17[15]=(_7?"visible;":"hidden;");_17[17]=_5;_17[19]=_6;if(isc.Browser.isMoz){if(!_8||_9==-1)_17[21]="-moz-user-focus:ignore;";else _17[21]="-moz-user-focus:normal;"}
if(_12&&_12!=isc.emptyString){_17[22]=this.$w9;_17[23]=_12}else{_17[22]=this.$xa;_17[23]=null}
if(_13&&_13!=isc.emptyString){_17[24]=this.$xb;_17[25]=_13}else{_17[24]=null;_17[25]=null}
_17[26]=(_14!=null?" onkeydown="+_14:null);_17[27]=(_15!=null?" onkeypress="+_15:null);_17[28]=(_16!=null?" onkeyup="+_16:null);_17[30]=(_8?_9:-1);_17[31]=(_8&&_10?"' accesskey='"+_10:null);_17[33]=(_11?true:false);return _17.join(isc.$ad)},isc.A.showAllocatedTabChain=function isc_c_Canvas_showAllocatedTabChain(){var _1=isc.EH.$kj,_2=isc.EH.$kl;var _3="First tab widget:"+_1+", and last:"+_2+"\nFull chain:";var _4=_1;do{_3+="\n\t"+_4.getID()+" - "+_4.getTabIndex()+" -->";_4=_4.$v4}while(_4!=null&&_4!=_2)
this.logWarn(_3)},isc.A.clearCSSCaches=function isc_c_Canvas_clearCSSCaches(){isc.Element.$50f();var _1=isc.Canvas._canvasList;for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3==null||_3.destroyed)continue;_3.$s8=_3.$s7=_3.$tk=_3.$tp=null}},isc.A.getStyleRules=function isc_c_Canvas_getStyleRules(_1){if(_1==null)return;var _2;try{_2=_1.rules;if(_2==null)_2=_1.cssRules}catch(e){this.logDebug("skipped stylesheet '"+_1+"' due to exception accessing rules")}
return _2},isc.A.modifyProperty=function isc_c_Canvas_modifyProperty(_1,_2,_3){if(_3==null)_3="height";if(isc.isA.String(_1))_1=isc.ClassFactory.getClass(_1);if(_1==null)return;var _4=_1.getInstanceProperty(_3);if(isc.isA.Number(_4)){_1.setInstanceProperty(_3,_4+_2)}},isc.A.modifyDefaultsProperty=function isc_c_Canvas_modifyDefaultsProperty(_1,_2,_3,_4){if(_3==null)_3="height";if(isc.isA.String(_1))_1=isc.ClassFactory.getClass(_1);if(_1==null)return;var _5=_1.getInstanceProperty(_2);if(_5==null){this.logWarn("no such defaults '"+_2+"' in class '"+_1+"'");return}
var _6=_5[_3];if(!isc.isA.Number(_6))return;var _7={};_7[_3]=_6+_4;_1.changeDefaults(_2,_7)},isc.A.resizeFonts=function isc_c_Canvas_resizeFonts(_1,_2){var _3=isc.Canvas.autoResizeIcons,_4=isc.Canvas.autoResizeAutoChildAttributes;if(_2==null){_2=document.styleSheets}else if(isc.isA.String(_2)||isc.isA.RegularExpression(_2)){var _5=isc.isA.String(_2)?new RegExp(_2):_2,_2=[];for(var i=0;i<document.styleSheets.length;i++){var _7=document.styleSheets[i],_8=_7.href+"";if(_8&&_8.match(_5))_2.add(_7)}}else if(!isc.isAn.Array(_2)){_2=[_2]}
for(var i=0;i<_2.length;i++){var _9=this.getStyleRules(_2[i]);if(_9==null)continue;var _10=[];for(var j=0;j<_9.length;j++){var _12=_9[j].style;if(_12==null)continue;var _13=_12.fontSize;if(_13!=null&&_13.indexOf("px")>0){_10.push(parseInt(_13))}}
for(var j=0;j<_9.length;j++){var _12=_9[j].style;if(_12==null)continue;var _13=_12.fontSize;if(_13!=null&&_13.indexOf("px")>0){_12.fontSize=(_10.shift()+_1)+"px"}}}
this.modifyProperty(isc.DrawLabel,"fontSize",_1);this.modifyDefaultsProperty(isc.DrawItem,"titleLabelDefaults","fontSize",_1);var _14=["titleProperties","valueAxisLabelProperties","dataAxisLabelProperties","gradationLabelProperties","dataLabelProperties","legendLabelProperties","hoverLabelProperties","pointSizeLegendLabelProperties","pointSizeLegendTitleLabelProperties","colorScaleLegendLabelProperties","colorScaleLegendTitleLabelProperties"];for(var i=0;i<_14.length;i++){this.modifyDefaultsProperty(isc.FacetChart,_14[i],"fontSize",_1)}
isc.Canvas.$177y=_1;if(_3){this.resizeIcons("fonts",_1)}
if(_4){this.resizeAutoChildAttributes("fonts",_1)}
this.clearCSSCaches()},isc.A.resizeControls=function isc_c_Canvas_resizeControls(_1){var _2=isc.Canvas.autoResizeIcons,_3=isc.Canvas.autoResizeAutoChildAttributes;var _4=[isc.Button,isc.StretchImgButton,isc.ToolStrip,isc.ToolStripButton,isc.ToolStripMenuButton,isc.MenuButton,isc.FormItem,isc.TextItem,isc.SelectItem,isc.DateItem,isc.ComboBoxItem,isc.SpinnerItem,isc.ButtonItem,isc.SectionItem];for(var i=0;i<_4.length;i++){this.modifyProperty(_4[i],_1)}
this.modifyProperty(isc.ListGrid,_1,"cellHeight");this.modifyProperty(isc.ListGrid,_1,"normalCellHeight");this.modifyProperty(isc.ListGrid,_1,"headerHeight");this.modifyProperty(isc.ListGrid,_1,"summaryRowHeight");this.modifyProperty(isc.ListGrid,_1,"filterEditorHeight");this.modifyProperty(isc.DetailViewer,_1,"rowHeight");this.modifyProperty(isc.Menu,_1,"cellHeight");this.modifyProperty(isc.Menu,_1,"normalCellHeight");this.modifyProperty(isc.SelectItem,_1,"pickListCellHeight");this.modifyProperty(isc.ComboBoxItem,_1,"pickListCellHeight");this.modifyProperty(isc.PickListMenu,_1,"normalCellHeight");this.modifyProperty(isc.Calendar,_1,"rowHeight");this.modifyProperty(isc.Calendar,_1,"eventHeaderHeight");this.modifyProperty(isc.TabSet,_1,"tabBarThickness");this.modifyProperty(isc.TabBar,_1,"breadth");this.modifyProperty(isc.SectionStack,_1,"headerHeight");this.modifyProperty(isc.Toolbar,_1,"height");this.modifyProperty(isc.ToolStripGroup,_1,"rowHeight");this.modifyDefaultsProperty(isc.Dialog,"toolbarDefaults","height",_1);this.modifyDefaultsProperty(isc.PickTreeItem,"buttonDefaults","height",_1);this.modifyDefaultsProperty(isc.Window,"headerDefaults","height",_1);isc.Canvas.$177z=_1;if(_2){this.resizeIcons("controls",_1)}
if(_3){this.resizeAutoChildAttributes("controls",_1)}},isc.A.changeFontFace=function isc_c_Canvas_changeFontFace(_1,_2){if(isc.isA.String(_1))_1=new RegExp(_1);for(var i=0;i<document.styleSheets.length;i++){var _4=this.getStyleRules(document.styleSheets[i]);if(_4==null)continue;for(var j=0;j<_4.length;j++){var _6=_4[j].style;if(_6==null)continue;var _7=_6.fontFamily;if(_7!=null&&_7.match(_1)){_6.fontFamily=_2}}}},isc.A.setAutoResizeIcons=function isc_c_Canvas_setAutoResizeIcons(_1){this.autoResizeIcons=_1},isc.A.setAutoResizeAutoChildAttributes=function isc_c_Canvas_setAutoResizeAutoChildAttributes(_1){this.autoResizeAutoChildAttributes=_1},isc.A.resizeIcons=function isc_c_Canvas_resizeIcons(_1,_2){var _3=this.$186x[_1];if(_3==null)return;for(var _4 in _3){var _5=_3[_4],_6=isc.ClassFactory.getClass(_4);if(isc.isA.Class(_6)){for(var _7 in _5){var _8=_5[_7];if(_8===true){_8=null}
var _9=_6.getPrototype()[_7];this.modifyProperty(_6,_2,_7);if(_8!=null&&isc.isA.Number(_9)){var _10=_6.getPrototype()[_8];if(isc.isA.Number(_10)){var _11=_2/_9,_12=Math.round(_11*_10);if(_12!=0){this.modifyProperty(_6,_12,_8)}}}}}}},isc.A.registerIconSizingAttributes=function isc_c_Canvas_registerIconSizingAttributes(_1,_2){if(_1==null||_2==null){return}
var _3=this.$186x;for(var _4 in _2){if(_3[_1][_4]==null){_3[_1][_4]={}}
var _5=_2[_4];for(var i=0;i<_5.length;i++){var _7=_5[i];if(isc.isAn.Array(_7)){_3[_1][_4][_7[0]]=_7[1]}else{_3[_1][_4][_7]=true}}}},isc.A.registerAutoChildSizingAttributes=function isc_c_Canvas_registerAutoChildSizingAttributes(_1,_2,_3){if(this.$188u[_1]==null){this.$188u[_1]={}}
if(this.$188u[_1][_2]==null){this.$188u[_1][_2]={}}
var _4=this.$188u[_1][_2];for(var _5 in _3){if(_4[_5]==null){_4[_5]={}}
var _6=_3[_5];for(var i=0;i<_6.length;i++){var _8=_6[i];if(isc.isAn.Array(_8)){_4[_5][_8[0]]=_8[1]}else{_4[_5][_8]=true}}}},isc.A.resizeAutoChildAttributes=function isc_c_Canvas_resizeAutoChildAttributes(_1,_2){var _3=this.$188u[_1];if(_3==null)return;for(var _4 in _3){var _5=_3[_4],_6=isc.ClassFactory.getClass(_4);if(_5!=null&&isc.isA.Class(_6)){for(var _7 in _5){var _8=_5[_7];var _9=_6.getPrototype()[_7]
if(_9==null)continue;for(var _10 in _8){var _11=_8[_10];if(_11===true){_11=null}
var _12=_9[_10];this.modifyDefaultsProperty(_6,_7,_10,_2);if(_11!=null&&isc.isA.Number(_12)){var _13=_9[_11];if(isc.isA.Number(_13)){var _14=_2/_12,_15=Math.round(_14*_13);if(_15!=0){this.modifyDefaultsProperty(_6,_7,_11,_15)}}}}}}}},isc.A.setAppImgDir=function isc_c_Canvas_setAppImgDir(_1){this.getPrototype().appImgDir=_1},isc.A.getAppImgDir=function isc_c_Canvas_getAppImgDir(){return isc.Page.getImgURL(isc.emptyString,this.getPrototype().appImgDir)},isc.A.setSkinImgDir=function isc_c_Canvas_setSkinImgDir(_1){this.getPrototype().skinImgDir=_1},isc.A.getSkinImgDir=function isc_c_Canvas_getSkinImgDir(){return isc.Page.getSkinImgDir(this.getPrototype().skinImgDir)},isc.A.getImgURL=function isc_c_Canvas_getImgURL(_1,_2,_3){if(_1==null||isc.isAn.emptyString(_1))return isc.$ad;_3=_3||this.getPrototype();if(_1.imgDir!=null&&_2==null)_2=_1.imgDir;if(_1.src!=null)_1=_1.src;var _4;if(_2==this.$1625){if(isc.Page.$1624(_1))_4=true;_2=null}
if(_2==null){_2=(isc.startsWith(_1,this.$hm)?_3.skinImgDir:_3.appImgDir)}
var _5=isc.Page.getImgURL(_1,_2,_4);return _5},isc.A.setShowCustomScrollbars=function isc_c_Canvas_setShowCustomScrollbars(_1){isc.Canvas.addProperties({showCustomScrollbars:_1})},isc.A.getPrintHTML=function isc_c_Canvas_getPrintHTML(_1,_2,_3,_4,_5,_6){if(!isc.isAn.Array(_1))_1=[_1];if(_5==null)_5=[];if(_6==null)_6=0;var _7,_8=_3==null?null:{target:this,methodName:"gotComponentPrintHTML",components:_1,printProperties:_2,callback:_3,HTML:_5,index:_6,separator:_4};for(;_6<_1.length;_6++){if(_8)_8.index+=1;var _9=_1[_6];var _10;if(isc.isA.String(_9))_10=_9;else _10=_9.getPrintHTML(_2,_8);if(_10!=null){_5.add(_10)}else{_7=true;break}}
if(_7){if(!_3){this.logWarn("getPrintHTML(): HTML generated asynchronously, but no callback passed in")}
return null}
if(_3){this.fireCallback(_3,"HTML,callback",[_5.join(_4||isc.emptyString),_3]);return null}else{return _5.join(_4||isc.emptyString)}},isc.A.gotComponentPrintHTML=function isc_c_Canvas_gotComponentPrintHTML(_1,_2){if(this.$1757)return;_2.HTML.add(_1);this.getPrintHTML(_2.components,_2.printProperties,_2.callback,_2.separator,_2.HTML,_2.index)},isc.A.getImgHTML=function isc_c_Canvas_getImgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){return this.imgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10)},isc.A.$wf=function isc_c_Canvas__getImgHTMLTemplate(_1,_2,_3,_4,_5,_6,_7,_8){isc.Canvas.$1866=true;var _9=isc.Canvas.imgHTML(_1,_2,_3,_4,_5,_6,_7,null,true,_8);isc.Canvas.$1866=false;return _9},isc.A.imgHTML=function isc_c_Canvas_imgHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11){var _12,_13;var _14=false,_15,_16,_17,_18,_19,_20,_21=null,_22=null;if(isc.isAn.Object(_1)){if(_1.width!=null)_2=_1.width;if(_1.height!=null)_3=_1.height;if(_1.name!=null)_4=_1.name;if(_1.extraStuff!=null)_5=_1.extraStuff;if(_1.imgDir!=null)_6=_1.imgDir;if(_1.align!=null)_12=_1.align;if(_1.activeAreaHTML!=null)_7=_1.activeAreaHTML;if(_1.generateSpan!=null)_10=_1.generateSpan;if(_1.extraCSSText!=null)_13=_1.extraCSSText;if(_1.cssClass)_11=_1.cssClass;if(_1.isSprite){_16=_1;_15=true}else{_16=this.$1861(_1.src);_15=_16!=null}
_1=_1.src}else{_16=this.$1861(_1);_15=_16!=null}
if(_15){_1=_16.src;if(_11==null&&_16.cssClass)_11=_16.cssClass;_19=_16.offsetLeft;_20=_16.offsetTop;_17=_16.originalWidth;_18=_16.originalHeight;if(_11!=null&&(_17==null||_18==null)){var _23=isc.Element.getStyleDeclaration(_11);if(_17==null){var _24=_23.width;if(isc.isA.String(_24)&&_24.endsWith("px")){_17=parseInt(_24)}}
if(_18==null){var _24=_23.height;if(isc.isA.String(_24)&&_24.endsWith("px")){_18=parseInt(_24)}}}
if(_18==null)_18=_3;if(_17==null)_17=_2;if(_17!=_2){_21=_2/_17;_22=1}
if(_18!=_3){_22=_3/_18
if(_21==null)_21=1}
if(_19!=null&&_20==null)_20=0;if(_20!=null&&_19==null)_19=0}
if(_1==isc.Canvas.$5w){_1=null}else if(!_15&&(_1==null||isc.isAn.emptyString(_1))){return(_9?[isc.$ad]:isc.$ad)}
var _25=this.$xd;if(!_25){this.$xe="<img src='";this.$1862="<object src='";this.$xf="' width='";this.$xg="' height='";this.$xh="' align='";this.$124i="' style='";this.$124o="' id='";this.$xi="' name='";this.$xj="' ";this.$xk=isc.Browser.isOpera?"top":"TEXTTOP";this.$xl=" border='0' suppress='TRUE' draggable='true'/>";this.$xd=_25=[this.$xe];this.$xm="' style='filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"";this.$xn="\",sizingMethod=\"scale\");";this.$1863="<span style='vertical-align:top;display:inline-block;transform-origin:left top;";this.$1864="<span style='vertical-align:top;display:inline-block;transform-origin:left top;background-image:url(\"";this.$1867=">"+this.$1863;this.$1868=">"+this.$1864;this.$166q="<span style='display:inline-block";this.$166r="<span role='presentation'"+(isc.Browser.isIE?" unselectable='on'":"")+" style='display:inline-block";this.$123f="<span style='display:inline-block;background-size:100% 100%;background-image:url(\"";this.$123g="<span style='display:inline-block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"";this.$123h="<span role='presentation'"+(isc.Browser.isIE?" unselectable='on'":"")+" style='display:inline-block;background-size:100% 100%;background-image:url(\"";this.$123i="<span role='presentation'"+(isc.Browser.isIE?" unselectable='on'":"")+" style='display:inline-block;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"";this.$123j=";width:";this.$124w="\");width:";this.$123k="\")";this.$124x="\",sizingMethod=\"scale\");width:";this.$124y="\",sizingMethod=\"scale\")";this.$123l="px;height:";this.$123m=";height:";this.$123n="px;vertical-align:";this.$187f="px;";this.$123o=";vertical-align:";this.$123p=" ></span>";this.$1869="<span spriteviewport='true' style='overflow:hidden;display:inline-block;width:";this.$187a="' class='"
this.$187b="'></span></span>"}
if(_12==null)_12=this.$xk;if(_15)_10=true;else if(_8!=null&&_8.isPrinting)_10=false;if(!this.$hu)this.$hu=this.getImgURL("[SKIN]/blank.gif");if(isc.Browser.isSafari&&(_2>32000||_3>32000)){this.logWarn("Attempting to draw an image of size "+_2+" x "+_3+".  Images larger than 32000 pixels in either direction are not reliably  rendered in this browser.")}
if(_9)_25=[this.$xe];var _26,_27;if(_1==null&&_10){_26=null;_27=false}else{if(_1==null)_1=this.$hu;_26=this.getImgURL(_1,_6,_8);if(isc.Page.isXHTML()){_26=isc.makeXMLSafeAttribute(_26)}else{_26=_26.replace(this.$ob,this.$94t)}
_27=this.$xo(_8)&&this.$xp(_1);if(_27){if(_2==null)_2=16;if(_3==null)_3=16}}
var _28=(isc.screenReader&&(_5==null||(!isc.contains(_5,"alt=")&&!isc.contains(_5,"aria-label"))));if(_10){if(this.$123d.hasOwnProperty(_12)){_12=this.$123d[_12]}
if(_15&&_21!=null){_25[0]=this.$1869;_25[1]=_2;if(_9)_25.$187c=1;_25[2]=this.$123l;_25[3]=_3;if(_9)_25.$187d=3;_25[4]=this.$123n;_25[5]=_12;if(_13!=null){_25[6]=isc.semi;_25[7]=_13}
if(_4!=null){_25[8]=this.$124o;if(_8)_25[9]=_8.getCanvasName()+_4;else _25[9]=_4}
if(_9)_25.$187e=9;var _29;if(_7){_29="ISC_IMGMAP_"+this.$ws++;_25[10]="' usemap='#"+_29}
_25[11]=this.$xj;if(_5!=null){_25[12]=_5}
if(_1==null){_25[13]=this.$1867;_25[15]=this.$123j}else{_25[13]=this.$1868;_25[14]=_26;_25[15]=this.$124w}
_25[16]=_17;_25[17]=this.$123l;_25[18]=_18;_25[19]=this.$187f;if(_19||_20){_25[20]=";background-position:"+_19+"px "+_20+"px"}else{_25[20]=""}
_25[21]=";transform:scale("+_21+", "+_22+");";if(_11!=null){_25[22]=this.$187a;_25[23]=_11}
_25[24]=this.$187b;if(_7){_25[25]="<map name='"+_29+"'>"+_7+"</map>"}
if(_9){return _25}else{var _30=_25.join("");_25.length=2;return _30}}else{var _31=_15?_17:_2,_32=_15?_18:_3;if(_1==null){_25[0]=_15?this.$1863:(_28?this.$166r:this.$166q);_25[1]=null;if(_31){_25[6]=this.$123j;_25[7]=_31}}else{if(_15){_25[0]=this.$1864}else if(_28){_25[0]=_27?this.$123i:this.$123h}else{_25[0]=_27?this.$123g:this.$123f}
_25[1]=_26;if(_31){_25[6]=_27?this.$124x:this.$124w;_25[7]=_31}else{_25[6]=_27?this.$124y:this.$123k}}
if(_32){_25[8]=_32?this.$123l:this.$123m;_25[9]=_32}
_25.$187c=7;_25.$187d=9;_25[10]=(isc.isA.Number(_3)&&_3?this.$123n:this.$123o);if(this.$123d.hasOwnProperty(_12)){_12=this.$123d[_12]}
_25[11]=_12;if(_15){if(_19||_20){_25[11]+=";background-position:"+_19+"px "+_20+"px"}}
if(_13!=null){_25[12]=isc.semi;_25[13]=_13}
if(_11!=null){_25[13]+="' class='"+_11}
_25[20]=this.$123p}}else{if(_28){_25[0]="<img role='presentation' src='"}else{_25[0]=this.$xe}
if(!_27){_25[1]=_26}else{_25[1]=this.$hu;_25[3]=this.$xm;_25[4]=_26;_25[5]=this.$xn}
if(_2){_25[6]=this.$xf;_25[7]=_2}
if(_9)_25.$187c=7;if(_3){_25[8]=this.$xg;_25[9]=_3}
if(_9)_25.$187d=9;_25[10]=this.$xh;_25[11]=_12;if(_13!=null){_25[12]=this.$124i;_25[13]=_13}
if(_11!=null){_25[13]+="' class='"+_11}
_25[20]=this.$xl}
if(_4){_25[14]=(isc.Page.isXHTML()||_10)?this.$124o:this.$xi;if(_8)_25[15]=_8.getCanvasName();_25[16]=_4}
if(_9)_25.$187e=16;var _29;if(_7){_29="ISC_IMGMAP_"+this.$ws++;_25[17]="' usemap='#"+_29}
_25[18]=this.$xj;if(_5){_25[19]=_5}
if(_7){_25[21]="<map name='"+_29+"'>"+_7+"</map>"}
if(_9)return _25;var _30=_25.join(isc.$ad);_25.length=3;return _30},isc.A.$1861=function isc_c_Canvas__getSpriteConfig(_1,_2){if(this.$186z[_1])return null;if(isc.isAn.Object(_1)){return _1.isSprite?_1:null}
if(_1==null||!isc.isA.String(_1)||isc.isA.emptyString(_1))return null;if(isc.Canvas.$186y[_1]){if(_2){return isc.Canvas.$186y[_1]}else{return isc.addProperties({},isc.Canvas.$186y[_1])}}
if(_1.startsWith("sprite:")){var _3=_1;var _4=isc.Canvas.$186y[_1]={isSprite:true};_1=_1.substring(7);var _5=_1.split(";");for(var i=0;i<_5.length;i++){var _7=_5[i],_8=(i==0);if(_7.startsWith("offset:")){_7=_7.substring(7);var _9=_7.split(",");_4.offsetLeft=parseInt(_9[0]);_4.offsetTop=parseInt(_9[1]);_8=false}else if(_7.startsWith("size:")){_7=_7.substring(5);var _10=_7.split(",");_4.originalWidth=parseInt(_10[0]);_4.originalHeight=parseInt(_10[1]);_8=false}else if(_7.startsWith("cssClass:")){_4.cssClass=_7.substring(9);_8=false}
if(i==0){if(_8){_4.src=_7}}}
if(_2){return isc.Canvas.$186y[_3]}else{return isc.addProperties({},isc.Canvas.$186y[_3])}}
this.$186z[_1]=true;return null},isc.A.$xq=function isc_c_Canvas__getValueIconHTML(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11){var _12=this.$wv;if(_8!=null){_12[0]=this.$wt;_12[1]=_8;_12[2]=this.$ob}else{_12[0]=_12[1]=_12[2]=null}
_12[4]=_10;var _13=this.$1861(_1),_14=(_13!=null);if(_14){_1=_13.src}
var _15=_14?_13:{};if(_1!=null){_15.src=_1==isc.Canvas.$5w?isc.Canvas.$5w:isc.Canvas.getImgURL(_1,_2,_9)}
_15.width=_4
_15.height=_5
if(_5!=null&&_5<16&&(isc.Browser.isMoz||isc.Browser.isSafari||(isc.Browser.isIE&&(isc.Browser.isIE9||isc.Browser.version>=10))))
{_15.align=null}else{_15.align=this.$wu}
_15.imgDir=_2;_15.extraStuff=_12.join(isc.emptyString);_15.extraCSSText=this.$124g+(_6||0)+this.$124h+(_7||0)+isc.px;if(_11!=null)_15.extraCSSText+=";"+_11;_15.generateSpan=((_9==null||!_9.isPrinting)&&this.$123e&&isc.Browser.$124v);if(_3!=null){_15.cssClass=_3}
return isc.Canvas.imgHTML(_15)},isc.A.$xo=function isc_c_Canvas__fixPNG(_1){if(this.usePNGFix==false)return false;var _2=isc.Browser.isIE&&isc.Browser.minorVersion>=5.5&&!isc.Browser.isIE9&&isc.Browser.isWin&&(!isc.Canvas.neverUseFilters&&this.neverUsePNGWorkaround!=true);if(_2&&_1&&_1.$xo&&!_1.$xo()){_2=false}
return _2},isc.A.$xp=function isc_c_Canvas__isPNG(_1){return(_1&&this.$wx[_1.substring(_1.lastIndexOf(isc.dot)+1)])},isc.A.$1865=function isc_c_Canvas__updateImage(_1,_2,_3,_4,_5){if(_1==null)return;var _6=this.$1861(_2),_7=(_6!=null);if(_7){_2=_6.src;_5=_6.cssClass;if(_1.getAttribute&&_1.getAttribute("spriteviewport")){_1=_1.firstChild}}
var _8=_1.style,_9=_1.tagName==="SPAN",_10=(_2==isc.Canvas.$5w),_11,_12;if(_2!=null){if(_10&&_9){_11=null;_12=false}else{if(_10)_2=this.$hu;_11=this.getImgURL(_2,_3,_4);_12=this.$xo(_4)&&this.$xp(_2)}
if(_12){_8.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+_11+"\",sizingMethod=\"scale\")";if(!_9)_1.src=this.$hu}else{if(_9){if(!_2||_10){_8.backgroundSize=isc.$ad;_8.backgroundImage=isc.$ad}else{_8.backgroundImage="url(\""+_11+"\")"}}else{_8.filter=isc.$ad;_1.src=_11}}}
if(_5!=null){_1.className=_5}},isc.A.$wg=function isc_c_Canvas__setImageURL(_1,_2,_3,_4,_5){return this.$1865(_1,_2,_3,_4,_5)},isc.A.linkHTML=function isc_c_Canvas_linkHTML(_1,_2,_3,_4,_5,_6,_7){if(_2==null){_2=(!_1?isc.nbsp:String(_1).asHTML())}
var _8=this.$wy;if(_4!=null)_8[1]=" ID='"+_4+"'";else _8[1]=null;_8[3]=String.asAttValue(_1);_8[5]=(_3?String.asAttValue(_3):"_blank");if(_5!=null)_8[7]=" tabIndex="+_5;else _8[7]=null;if(_6!=null)_8[8]=" accessKey='"+_6+"'";else _8[8]=null;if(_7)_8[9]=" "+_7;_8[11]=_2;return _8.join(isc.emptyString)},isc.A.blankImgHTML=function isc_c_Canvas_blankImgHTML(_1,_2){if(!isc.isA.Number(_2)){return isc.Canvas.imgHTML(this.$wz,_1,_2,null,null,null,null,null,false,this.$123e)}
var _3=this.$ht;if(!_3){_3=this.$ht=this.$wf(this.$wz,1,1,null,null,null,null,this.$123e)}
_3[_3.$187c]=_1||this.$w0;_3[_3.$187d]=_2||this.$w0;return _3.join(isc.$ad)},isc.A.spacerHTML=function isc_c_Canvas_spacerHTML(_1,_2,_3){if(_1==0&&_2==0)return isc.$ad;if(isc.Browser.isMoz||isc.Browser.isSafari||isc.Browser.isOpera||isc.Browser.isStrict||(isc.Browser.isIE&&(isc.Browser.version>=10||(_2<3&&(isc.Browser.minorVersion==5.5||isc.Browser.isMac)))))
{var _4;if(isc.Browser.isSafari){_4=32000}else if(isc.Browser.isFirefox&&isc.Browser.geckoVersion>=20090219){_4=17895580}else if(isc.Browser.isIE&&isc.Browser.isStrict){_4=16000}
if(_4!=null&&(_1>_4||_2>_4)){var _5=isc.SB.create(),_6=_4,_7=Math.floor(_2/_6),_8=Math.floor(_1/_6);_5.append("<TABLE role='presentation' CELLPADDING=0 CELLSPACING=0 BORDER=0 MARGIN=0>");for(var i=0;i<=_7;i++){_5.append("<TR>");for(var j=0;j<=_8;j++){_5.append("<TD>");var _11=((i==j)||(i>_8&&j==0)||(j>_7&&i==0));if(_11){var _12=(i<_7?_6:_2-(i*_6)),_13=(j<_8?_6:_1-(j*_6));_5.append(this.blankImgHTML(_13,_12))}
_5.append("</TD>")}
_5.append("</TR>")}
_5.append("</TABLE>");return _5.release(false)}
return this.blankImgHTML(_1,_2)}
var _14=1300000;if(_2>_14){var _15=[];var _16=0;while(_16<_2){var _17,_18;if(_16+1400>=_2){_17=true;_18=_2-_16}else{_18=1400;_17=false}
_15[_15.length]=this.spacerHTML(_1,_18);_15[_15.length]="<br>";_16+=_18}
return _15.join(isc.$ad)}
var _19=this.$xs;if(_19==null){_19=this.$xs=["<SPAN STYLE='WIDTH:",null,"px;HEIGHT:",null,null,";overflow:hidden'>",null,"</SPAN>"]}
_19[1]=_1;_19[3]=_2;_19[4]=isc.isA.Number(_2)?isc.px:null;_19[6]=_3?_3:isc.nbsp;return _19.join(isc.$ad)},isc.A.hiliteCharacter=function isc_c_Canvas_hiliteCharacter(_1,_2,_3,_4){if(!isc.isA.String(_1)||!isc.isA.String(_2)||_2.length!=1)
return _1;if(_2==" ")return _1;if(_3==null||_4==null){_3="<span style='text-decoration:underline;'>";_4="</span>"}
var _5=_1.indexOf(_2.toUpperCase());if(_5==-1)_5=_1.indexOf(_2.toLowerCase());if(_5!=-1){var _6=_1.slice(0,_5),_7=_1.slice(_5,_5+1),_8=_1.slice(_5+1);_7=_3+_7+_4;_1=_6.concat(_7,_8)}
return _1},isc.A.scheduleRedraw=function isc_c_Canvas_scheduleRedraw(_1){if(_1&&_1.priorityRedraw){this.$nm.addAt(_1,0)}else{this.$nm.add(_1)}
if(!this.$xu){this.$xu=isc.Timer.setTimeout({target:isc.Canvas,methodName:this.$w1},this._redrawQueueDelay)}},isc.A.clearRedrawQueue=function isc_c_Canvas_clearRedrawQueue(){var _1=(isc.EH.$lc!=null&&isc.EH.$lc.contains("TMR"));if(!_1)isc.EH.$h1("RDQ");var _2=isc.timeStamp();this.$xu=null;var _3=this.$nm;this.$nm=[];if(this.logIsDebugEnabled()){var _4="";for(var i=0;i<_3.length;i++){_4+=_3[i];if(i!=_3.length-1)_4+=", "}
this.logDebug("clearRedrawQueue: "+_4,"drawing")}
var _6,_7;for(var i=0;i<_3.length;i++){_6=_3[i];if(_6&&_6.priorityRedraw){_6.priorityRedraw=false;if(_7==null)_7=[];_7.add(_6);_3[i]=null}}
if(_7!=null){this.logInfo("Priority redraw: postponing non-priority items","drawing");this.$nm=_3;this.scheduleRedraw(_3[0]);_3=_7}
var _8=0,_6;for(var i=0;i<_3.length;i++){_6=_3[i];if(_6==null||_6.destroyed)continue;if(_6&&_6.isDirty()){_6.redraw(false);_8++}}
if(this.logIsDebugEnabled("redraws")){this.logDebug("clearRedrawQueue: "+_8+" redraws ("+_3.length+" items), "+(isc.timeStamp()-_2)+"ms","redraws")}
if(!_1)isc.EH.$h2()});isc.evalBoundary;isc.B.push(isc.A.$uv=function isc_c_Canvas__queueForDelayedAdjustOverflow(_1){if(!isc.Canvas.$xv)isc.Canvas.$xv=[];isc.Canvas.$xv.add(_1);if(!isc.Canvas.$xw){isc.Canvas.$xw=isc.Timer.setTimeout({target:isc.Canvas,methodName:"$xx"},isc.Canvas.$nn)}},isc.A.$xx=function isc_c_Canvas__clearDelayedAdjustOverflowQueue(){var _1=isc.Canvas.$xv;isc.Canvas.$xv=[];isc.Canvas.$xw=null;if(!_1||_1.length==0)return;for(var i=0;i<_1.length;i++){var _3=window[_1[i]];if(isc.isA.Canvas(_3))_3.adjustOverflow("delayed")}},isc.A.checkForPageResize=function isc_c_Canvas_checkForPageResize(){isc.EH.$hr(true)},isc.A.moveOffscreen=function isc_c_Canvas_moveOffscreen(_1){if(_1.isDrawn())return;var _2=(!(!isc.Browser.isWin&&isc.Browser.isMoz&&_1.showCustomScrollbars==false&&(_1.overflow==isc.Canvas.AUTO)));if(_2)_1.moveTo(null,-9999)},isc.A.scheduleDestroy=function isc_c_Canvas_scheduleDestroy(_1){if(!_1||_1.destroyed||_1.destroying||!_1.destroy)return;this.$65j.add(_1);if(!this.$65m){this.$65m=isc.Timer.setTimeout({target:isc.Canvas,methodName:this.$65l},this.$65k)}},isc.A.clearDestroyQueue=function isc_c_Canvas_clearDestroyQueue(){isc.EH.$h1("DSQ");var _1=isc.timeStamp();this.$65m=null;var _2=this.$65j;this.$65j=[];if(this.logIsDebugEnabled("destroys")){var _3="";for(var i=0;i<_2.length;i++){_3+=_2[i];if(i!=_2.length-1)_3+=", "}
this.logDebug("clearDestroyQueue: "+_3,"destroys")}
var _5=0,_6;for(var i=0;i<_2.length;i++){_6=_2[i];if(_6==null||_6.destroyed||_6.destroying)continue;_6.destroy(false);_5++}
if(this.logIsDebugEnabled("destroys")){this.logDebug("clearDestroyQueue: "+_5+" direct destroy() calls ("+_2.length+" items), "+(isc.timeStamp()-_1)+"ms","destroys")}
isc.EH.$h2()},isc.A.outsetRect=function isc_c_Canvas_outsetRect(_1,_2){if(!_2)return _1;if(isc.isAn.Array(_1)){_1[0]-=_2;_1[1]-=_2;_1[2]+=2*_2;_1[3]+=2*_2;return _1}
_1.left-=_2;_1.top-=_2;_1.width+=2*_2;_1.height+=2*_2;return _1},isc.A.rectsIntersect=function isc_c_Canvas_rectsIntersect(_1,_2){var _3=_1[0],_4=_1[1],_5=_1[2],_6=_1[3],_7=_2[0],_8=_2[1],_9=_2[2],_10=_2[3],_11=((_3>_7+_9-1)||(_3+_5-1<_7)),_12=((_4>_8+_10-1)||(_4+_6-1<_8));return!_11&&!_12},isc.A.rectEnclosesRect=function isc_c_Canvas_rectEnclosesRect(_1,_2){var _3=_1[0],_4=_1[1],_5=_1[2],_6=_1[3],_7=_2[0],_8=_2[1],_9=_2[2],_10=_2[3],_11=((_3<=_7)&&(_3+_5>=_7+_9)),_12=((_4<=_8)&&(_4+_6>=_8+_10));return _11&&_12},isc.A.$vs=function isc_c_Canvas__forceNativeTabOrderUpdate(){if(!this.$xy){this.ns.Element.createAbsoluteElement("<DIV ID='$xz' style='position:absolute;left:0px;top:-100px'>&nbsp;</DIV>");this.$xy=document.all["$xz"]}else{this.$xy.innerHTML="&nbsp;"}},isc.A.$q8=function isc_c_Canvas__addToTopLevelCanvasList(_1){if(!isc.isA.Canvas(_1)||_1.$x0!=null)return;this.$tw.add(_1);_1.$x0=this.$tw.length-1},isc.A.$ro=function isc_c_Canvas__removeFromTopLevelCanvasList(_1){if(!isc.isA.Canvas(_1)||_1.$x0==null)return;this.$tw[_1.$x0]=null;_1.$x0=null},isc.A.$151r=function isc_c_Canvas__isInFront(_1){while(_1.parentElement!=null)_1=_1.parentElement;var _2=_1.getZIndex(true),_3=this.$tw;for(var i=0,_5=_3.length;i<_5;++i){var _6=_3[i];if(_6!=null&&_6.isDrawn()&&_6.isVisible()&&_6.getZIndex(true)>_2)
{return false}}
return true},isc.A.$92y=function isc_c_Canvas__adjustScrollLeftForRTL(_1,_2,_3,_4,_5,_6){if(_5){var _7=_2-_3;if(_4)_1-=_7;else _1+=_7}else if(_6){var _8=_2-_3;if(_8>0&&_8>=_1){_1=_8-_1}}
return _1},isc.A.showClickMask=function isc_c_Canvas_showClickMask(_1,_2,_3){return this.ns.EH.showClickMask(_1,_2,_3)},isc.A.hideClickMask=function isc_c_Canvas_hideClickMask(_1){this.ns.EH.hideClickMask(_1)},isc.A.$t7=function isc_c_Canvas__placeRect(_1,_2,_3,_4,_5,_6){if(isc.isAn.Array(_3)){_3={left:_3[0],top:_3[1],width:_3[2],height:_3[3]}}else if(_3==null){_3={left:this.ns.EH.getX(),top:this.ns.EH.getY()}}
if(_3.width==null)_3.width=0;if(_3.height==null)_3.height=0;if(_4==null)_4="bottom";if(_5==null)_5=true;var _7=(_4=="bottom"||_4=="top");if(_7){if(_6=="inside-right")_6="right";if(_6!="right"&&_6!="outside-right"&&_6!="outside-left")_6="left"}else{if(_6=="inside-bottom")_6="bottom";if(_6!="bottom"&&_6!="outside-bottom"&&_6!="outside-top")_6="top"}
var _8=_3.left;if(_7){if(_6=="right")_8+=(_3.width-_1);else if(_6=="outside-right")_8+=_3.width;else if(_6=="outside-left")_8-=_1}else{if(_4=="left")_8-=_1;else _8+=_3.width}
var _9=_3.top;if(_7){if(_4=="top")_9-=_2;else _9+=_3.height}else{if(_6=="bottom")_9+=(_3.height-_2);else if(_6=="outside-bottom")_9+=_3.height;else if(_6=="outside-top")_9-=_2}
var _10=isc.Page.getWidth(),_11=isc.Page.getHeight(),_12=isc.Page.getScrollLeft(true),_13=isc.Page.getScrollTop();var _14=_12-_8,_15=_8+_1-(_10+_12),_16=_13-_9,_17=_9+_2-(_11+_13);;if(_14<=0&&_15<=0&&_16<=0&&_17<=0){return[_8,_9]}
if(_14>0){if(_4=="left"&&!_5){if(_3.left+_3.width<_12){_8=_12}else{_8=_3.left+_3.width}}else{_8=_12}}else if(_15>0){if(_4=="right"&&!_5){if((_3.left-_1)>=_12){if(_3.left>(_12+_10))
_8=(_12+_10)-_1;else _8=_3.left-_1}}else{if(_10<_1){_8=_12}else{_8=_12+_10-_1}}}
if(_16>0){if(_4=="top"&&!_5){if(_3.top+_3.height<_13){_9=_13}else{_9=_3.top+_3.height}}else{_9=_13}}else if(_17>0){if(_4=="bottom"&&!_5){if((_3.top-_2)>=_13){if(_3.top>(_13+_11))
_9=(_13+_11)-_2;else _9=_3.top-_2}}else{if(_11<_2){_9=_13}else{_9=_13+_11-_2}}}
return[_8,_9]},isc.A.$iy=function isc_c_Canvas__handleUnload(){if(isc.Browser.isIE)this.$xt();var _1=isc.Log.logViewer;if(_1&&_1.logWindowLoaded()){_1._logWindow.openerUnloading();_1._logWindow=null}},isc.A.$xt=function isc_c_Canvas__clearDOMHandles(){var _1=this._canvasList;for(var i=0;i<_1.length;i++){var _3=_1[i];if(_3){if(_3.$q3){_3.$q3.eventProxy=null;_3.$q3=null}}}
return true},isc.A.snapToEdge=function isc_c_Canvas_snapToEdge(_1,_2,_3,_4,_5){var _6=isc.Canvas.$174m(_1,_2,_3,_4,_5);_3.moveTo(_6[0],_6[1]);_3.$jo=false},isc.A.$52c=function isc_c_Canvas__getSnapPoint(_1,_2,_3,_4){var _5=_3[0],_6=_3[1];var _7;if(_1=="TL")_7=[0,0];else if(_1=="T")_7=[0,_5/2];else if(_1=="TR")_7=[0,_5];else if(_1=="R")_7=[_6/2,_5];else if(_1=="BR")_7=[_6,_5];else if(_1=="B")_7=[_6,_5/2];else if(_1=="BL")_7=[_6,0];else if(_1=="L")_7=[_6/2,0];else if(_1=="C")_7=[_6/2,_5/2];else _7=[0,0];_7[0]=Math.floor(_7[0]);_7[1]=Math.floor(_7[1]);if(_4)return[_2[0]-_7[0],_2[1]-_7[1]];else return[_2[0]+_7[0],_2[1]+_7[1]]},isc.A.$112q=function isc_c_Canvas__getTopLevelWidget(_1){if(!_1)return null;var _2=isc.isAn.Array(_1)?_1:isc.getKeys(_1);for(var _3=_2.length;_3>0;--_3){var _4=_2[_3-1];var _5=window[_4];if(_5&&isc.isA.Canvas(_5)&&!_5.destroyed&&_5.$171j&&_5.parentElement==null&&_5.masterElement==null)
{return _5}}
return null},isc.A.ariaEnabled=function isc_c_Canvas_ariaEnabled(){return false},isc.A.useLiteAria=function isc_c_Canvas_useLiteAria(){return false},isc.A.getSnapPosition=function isc_c_Canvas_getSnapPosition(_1,_2,_3,_4){if(!_4){if(_2=="TL")_4="BR";else if(_2=="T")_4="B";else if(_2=="TR")_4="BL";else if(_2=="R")_4="L";else if(_2=="BR")_4="TL";else if(_2=="B")_4="T";else if(_2=="BL")_4="TR";else if(_2=="L")_4="R"}
return isc.Canvas.$174m(_1,_2,_3,_4)},isc.A.$174m=function isc_c_Canvas__getSnapPosition(_1,_2,_3,_4,_5){var _6,_7,_8,_9;if(isc.isAn.Array(_1)){_7=false;_8=[_1[1],_1[0]];_6=[_1[2],_1[3]]}else if(_3.masterElement){_7=(_3.percentBox==_3.$520),_6=[_7?_1.getViewportWidth():_1.getVisibleWidth(),_7?_1.getViewportHeight():_1.getVisibleHeight()];_8=[_1.getTop()+(_7?(_1.getTopBorderSize()+_1.getTopMargin()):0),_1.getLeft()+(_7?(_1.getLeftBorderSize()+_1.getLeftMargin()):0)]}else if(isc.isA.Canvas(_5)){_7=(_3.percentBox==_3.$520),_6=[_7?_5.getViewportWidth():_5.getVisibleWidth(),_7?_5.getViewportHeight():_5.getVisibleHeight()];_8=[_5.getPageTop()+(_7?(_5.getTopBorderSize()+_5.getTopMargin()):0),_5.getPageLeft()+(_7?(_5.getLeftBorderSize()+_5.getLeftMargin()):0)]}else{_9=true;_7=true;_6=[_1.getViewportWidth(),_1.getViewportHeight()];_8=[0,0];if(_1.$187z){var _10=_1.overflow;if(_10==isc.Canvas.VISIBLE||_10==isc.Canvas.CLIP_V){_6[0]=_1.getWidth()-_1.getHMarginBorder()}
if(_10==isc.Canvas.VISIBLE||_10==isc.Canvas.CLIP_H){_6[1]=_1.getHeight()-_1.getVMarginBorder()}}}
var _11=isc.Canvas.$52c(_2,_8,_6,false);var _12=isc.Canvas.$52c((_4||_2),_11,[_3.getVisibleWidth(),_3.getVisibleHeight()],true);if(_3.snapOffsetLeft!=null)_12[1]+=_3.snapOffsetLeft;if(_3.snapOffsetTop!=null)_12[0]+=_3.snapOffsetTop;if(_9){var _10=_1.overflow;if(_10!=isc.Canvas.HIDDEN&&_10!=isc.Canvas.CLIP_H){if(_12[1]<0)_12[1]=0}
if(_10==isc.Canvas.VISIBLE||_10==isc.Canvas.CLIP_H){if(_12[0]<0)_12[0]=0}}
return[_12[1],_12[0]]},isc.A.setCanvasPanelContainer=function isc_c_Canvas_setCanvasPanelContainer(_1,_2){_1.$86x=!_2?null:(isc.isA.Canvas(_2)?_2.ID:_2)});isc.B._maxIndex=isc.C+69;isc.Canvas.registerStringMethods({resized:"deltaX,deltaY",showIf:"canvas",childRemoved:"child,name",peerRemoved:"peer,name",deparented:"oldParent,name",depeered:"oldMaster,name",parentMoved:"parent,deltaX,deltaY",moved:"deltaX,deltaY",focusChanged:"hasFocus",tabIndexUpdated:"",scrolled:"deltaX,deltaY",parentScrolled:"parent,deltaX,deltaY",hover:"",onDrop:"",visibilityChanged:"isVisible"});isc.Canvas.$yx=function(){var _1=isc.EH,_2={};for(var _3 in _1.eventTypes){this.registerStringMethods(_1.eventTypes[_3],_1.$i3);var _4=_1.eventTypes[_3];if(this.getInstanceProperty(_4)==null){_2[_4]=isc.Class.NO_OP}}
this.addMethods(_2)}
isc.Canvas.$yx();isc.defineClass("SnapAlignmentMarker");isc.defineClass("BackMask","Canvas");isc.A=isc.BackMask.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoDraw=false;isc.A.$lo=true;isc.A._generated=true;isc.A.useClipDiv=false;isc.A.hideUsingDisplayNone=isc.Browser.isMoz||(isc.Browser.isIPhone&&isc.Browser.iOSVersion>=7)||isc.Browser.isChrome||isc.Browser.isSafari;isc.A.overflow=isc.Canvas.HIDDEN;isc.A.contents="<iframe width='100%' height='100%' border='0' frameborder='0' src=\""+isc.Page.getBlankFrameURL()+"\" marginwidth='0' marginheight='0' scrolling='no' tabIndex='-1' tabStop='false'></iframe>";isc.A.$ns=false;isc.A.$jo=false;isc.A.$jp=false;isc.A._redrawWithParent=false;isc.A.isSnapAlignCandidate=false;isc.B.push(isc.A.masterMoved=function isc_BackMask_masterMoved(){this.masterElement.$qi()},isc.A.masterResized=function isc_BackMask_masterResized(){this.masterElement.$qi()},isc.A.draw=function isc_BackMask_draw(_1,_2,_3){if(this.suppressed)return this;if(!this.readyToDraw())return this;this.invokeSuper(isc.BackMask,this.$ny,_1,_2,_3);if(this.masterElement.overflow==isc.Canvas.VISIBLE)this.masterElement.$qi();return this},isc.A.show=function isc_BackMask_show(){if(!this.suppressed)this.invokeSuper(isc.BackMask,"show")});isc.B._maxIndex=isc.C+4;isc.defineClass("ScreenSpan","Canvas");isc.A=isc.ScreenSpan.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A._generated=true;isc.A.$94z=3200;isc.A.$940=2400;isc.A.src=isc.Canvas.$wz;isc.A.redrawOnResize=false;isc.A.overflow="hidden";isc.B.push(isc.A.getInnerHTML=function isc_ScreenSpan_getInnerHTML(){if(!this.$yy){this.$yy=isc.Browser.isIE&&isc.Browser.version>6?isc.Canvas.imgHTML(this.src,this.$94z,this.$940):isc.Canvas.spacerHTML(this.$94z,this.$940)}
return this.$yy},isc.A.hide=function isc_ScreenSpan_hide(_1,_2,_3,_4){isc.ScreenSpan.removeFromSpanRegistry(this);this.resizeTo(1,1);this.moveTo(null,-this.getHeight());return this.invokeSuper(isc.ScreenSpan,"hide",_1,_2,_3,_4)},isc.A.show=function isc_ScreenSpan_show(_1,_2,_3,_4){isc.ScreenSpan.addToSpanRegistry(this);this.fitToScreen();return this.invokeSuper(isc.ScreenSpan,"show",_1,_2,_3,_4)},isc.A.fitToScreen=function isc_ScreenSpan_fitToScreen(){var _1=Math.max(isc.Page.getWidth(null,true),isc.Page.getScrollWidth()),_2=Math.max(isc.Page.getHeight(null,true),isc.Page.getScrollHeight());this.resizeTo(_1,_2);if(_1>this.$94z||_2>this.$940){this.$94z=Math.max(_1,this.$94z);this.$940=Math.max(_2,this.$940);delete this.$yy;this.markForRedraw("Resizing spacer HTML to fit large page content.")}
this.moveTo(0,0)});isc.B._maxIndex=isc.C+4;isc.A=isc.ScreenSpan;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.spanRegistry={};isc.B.push(isc.A.addToSpanRegistry=function isc_c_ScreenSpan_addToSpanRegistry(_1){this.spanRegistry[_1.getID()]=true;if(this.pageResizedEvent==null){this.pageResizedEvent=isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"pageResized")}},isc.A.removeFromSpanRegistry=function isc_c_ScreenSpan_removeFromSpanRegistry(_1){delete this.spanRegistry[_1.getID()];var _2=true;for(var i in this.spanRegistry){if(this.spanRegistry[i]){_2=false;break}}
if(this.pageResizedEvent!=null&&_2){isc.Page.clearEvent("resize",this.pageResizedEvent);delete this.pageResizedEvent}},isc.A.pageResized=function isc_c_ScreenSpan_pageResized(){var _1=[];for(var _2 in this.spanRegistry){if(this.spanRegistry[_2]){var _3=window[_2];if(_3&&_3.isVisible()){_1.add(_3);_3.resizeTo(isc.Page.getWidth(null,true),isc.Page.getHeight(null,true))}}}
_1.callMethod("fitToScreen");this.pageResizedEvent=isc.Page.setEvent("resize",this,isc.Page.FIRE_ONCE,"pageResized")});isc.B._maxIndex=isc.C+3;isc.$yz={getForm:function(_1){if(_1&&typeof _1=="object")return _1;var _2;if(_1!=null&&isc.Browser.isDOM){_2=document.getElementById(_1)}
if(_2!=null)return _2;if(_1==null)_1=0;if(_2==null)return document.forms[_1];return _2},getFormElementValue:function(_1,_2){var _3=this.getFormElement(_1,_2);if(!_3)return;switch(_3.type){case"radio":return(_3.checked?_3.value:null)
case"checkbox":return _3.checked;case"select-one":if(!_3.options||_3.options.length==0)return null;var _4=_3.options[_3.selectedIndex];return _4.value;case"select-multiple":var _5=[];for(var i=0,_7=_3.options.length;i<_7;i++){var _4=_3.options[i];if(_4.selected)
_5.add(_4.value)}
return _5;case"button":case"reset":case"submit":return null;default:return _3.value}},getFormValues:function(_1){var _2=this.getForm(_1);if(!_2)return null;var _3={};if(!_2.elements){this.logWarn("Form '"+_1+"' contains no elements - returning empty map for data.");return{}}
for(var i=0;i<_2.elements.length;i++){var _5=_2.elements[i];if(_5.name!=null){var _6=this.getFormElementValue(_2,_2.elements[i]);if(_6!=null)_3[_5.name]=_6}}
return _3},getFormElement:function(_1,_2){if(typeof _2=="object")return _2;var _3=this.getForm(_1);if(_3)return _3.elements[_2];return null}};isc.Canvas.addClassMethods(isc.$yz)
isc.Canvas.addMethods(isc.$yz)
isc.setAutoDraw=function(_1){if(_1==null)_1=true;isc.Canvas.addProperties({autoDraw:_1})};isc.allowDuplicateStyles=true;isc.defineClass("PrintCanvas","Canvas");isc.A=isc.PrintCanvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.redrawOnResize=false;isc.A.overflow="hidden";isc.A.useExplicitHeight=isc.Browser.isSafari||(isc.Browser.isFirefox&&isc.Browser.isStrict&&isc.Browser.geckoVersion>=20100101);isc.A.printFrameURL="[HELPERS]printFrame.html";isc.B.push(isc.A.initWidget=function isc_PrintCanvas_initWidget(){this.Super("initWidget",arguments)},isc.A.resized=function isc_PrintCanvas_resized(){if(this.useExplicitHeight){var _1=this.getIFrameHandle();if(_1){_1.style.width=this.getInnerWidth();_1.style.height=this.getInnerHeight()}}},isc.A.getInnerHTML=function isc_PrintCanvas_getInnerHTML(){delete this.iframeLoaded;var _1="100%",_2="100%";if(this.useExplicitHeight){_1=this.getInnerWidth();_2=this.getInnerHeight()}
return"<iframe height='"+_2+"' width='"+_1+"' scrolling='auto' id='"+this.getIFrameID()+"' frameborder='0' src=\""+this.getPrintFrameURL(this.title)+"\"></iframe>"},isc.A.getIFrameID=function isc_PrintCanvas_getIFrameID(){return this.getID()+"$55y"},isc.A.getPrintFrameURL=function isc_PrintCanvas_getPrintFrameURL(_1){return isc.Page.getURL(this.printFrameURL+"?id="+this.getID()+"&title="+(_1||""))},isc.A.getIFrameHandle=function isc_PrintCanvas_getIFrameHandle(){return document.getElementById(this.getIFrameID())},isc.A.getIFrameWindow=function isc_PrintCanvas_getIFrameWindow(){return this.getIFrameHandle().contentWindow},isc.A.iframeLoad=function isc_PrintCanvas_iframeLoad(){this.iframeLoaded=true;if(this.isRTL()){this.logInfo("Print preview - applying 'rtl' direction to print frame.","printing");var _1=this.getIFrameWindow().document.body;if(_1==null){this.logWarn("Print preview - unable to get 'body' tag for print frame. Right-to-left text direction cannot be guaranteed in this print preview.","printing")}else{_1.style.direction="rtl"}}
if(isc.Browser.isIE){var _1=this.getIFrameWindow().document.body;if(_1)_1.style.overflow="auto"}
if(this.$175a!=null){var _2=this.$175a;this.setHTML(_2.HTML,_2.callback)}},isc.A.setHTML=function isc_PrintCanvas_setHTML(_1,_2){this.$175a={HTML:_1,callback:_2};if(!this.isDrawn()||!this.iframeLoaded){return}
if(this.externalStylesheet){var _3='<link rel="stylesheet" type="text/css" href="'+isc.Page.getURL(this.externalStylesheet)+'" />\n';_1=_3+_1}
var _4=this.getIFrameWindow();_4.assignHTML(_1);if(isc.Browser.isIE&&isc.Browser.hasVML&&_1.contains("class=rvml")){_4.document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)")}
this.fireCallback(_2,["printPreview","callback"],[this,_2])},isc.A.setTitle=function isc_PrintCanvas_setTitle(_1){this.title=_1;if(!this.isDrawn()&&!this.iframeLoaded)return;if(this.isDrawn())this.redraw()},isc.A.printHTML=function isc_PrintCanvas_printHTML(_1,_2,_3){var _4=this;this.setTitle(_2);this.setHTML(_1,function(){_4.print()})},isc.A.print=function isc_PrintCanvas_print(){if(!this.isDrawn()){this.logWarn("print(): Attempt to print an undrawn PrintCanvas. Ignoring.");return}
if(!this.iframeLoaded){this.delayCall("print",[],100);return}
this.getIFrameWindow().doPrint()},isc.A.printComplete=function isc_PrintCanvas_printComplete(){});isc.B._maxIndex=isc.C+13;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.printComponents=function isc_c_Canvas_printComponents(_1,_2,_3,_4){isc.Canvas.getPrintHTML(_1,_2,{target:this,methodName:"$57f",title:_3,debugOnly:_4})},isc.A.$57f=function isc_c_Canvas__printComponentHTML(_1,_2){var _3=_2.title,_4=_2.debugOnly;if(!this.$55z)this.$55z=isc.PrintCanvas.create({width:"100%",height:"100%",autoDraw:false,backgroundColor:"white"});this.$55z.moveTo(null,-isc.Page.getHeight());if(!this.$55z.isDrawn())this.$55z.draw();this.$55z.printHTML(_1,_3,_4)},isc.A.getPrintPreview=function isc_c_Canvas_getPrintPreview(_1,_2,_3,_4,_5){if(_3==null)_3={};_3.autoDraw=true;isc.Canvas.getPrintHTML(_1,_2,{target:this,methodName:"$57g",origCallback:_4,previewProperties:_3},_5)},isc.A.$57g=function isc_c_Canvas__createPrintPreview(_1,_2){var _3=isc.PrintCanvas.create(_2.previewProperties);_3.setHTML(_1,{target:this,methodName:"$57h",origCallback:_2.origCallback})},isc.A.$57h=function isc_c_Canvas__printPreviewGenerated(_1,_2){if(_2.origCallback){this.fireCallback(_2.origCallback,["printPreview"],[_1])}},isc.A.showPrintPreview=function isc_c_Canvas_showPrintPreview(_1,_2,_3,_4,_5){if(!isc.PrintWindow){isc.definePrintWindow()}
if(!isc.PrintWindow)return;if(_3==null)_3={};_3.autoDraw=false;if(_3.width==null)_3.width="100%";if(_3.height==null)_3.height="100%";if(_3.left==null)_3.left=0;if(_3.top==null)_3.top=0;if(!this.$57i){this.$57i=isc.PrintWindow.create(_3)}else{this.$57i.setProperties(_3)}
this.$57i.showPrintPreview(_1,_2,_4,_5)});isc.B._maxIndex=isc.C+6;isc.definePrintWindow=function(){if(!isc.Window){isc.logWarn("Attempting to create PrintWindow class with no defined Window class. Ensure the required 'Containers' module is laoded");return}
isc.defineClass("PrintWindow","Window");isc.PrintWindow.addProperties({isModal:true,headerControls:["headerIcon","headerLabel","printButton","closeButton"],printButtonDefaults:{_constructor:"IButton",height:20,click:"this.creator.printClicked()"},showMinimizeButton:false,showShadow:false,title:"Print Preview",printButtonTitle:"Print",setPrintButtonTitle:function(_4){this.printButtonTitle=_4;if(this.printButton!=null)this.printButton.setTitle(_4)},initWidget:function(){if(isc.Browser.isAndroid){var _1=this.headerControls;if(_1!=null){_1=this.headerControls=_1.duplicate();_1.remove("printButton")}}
this.Super("initWidget",arguments)},printButton_autoMaker:function(_4){_4=isc.addProperties({},_4,{title:this.printButtonTitle});return this.createAutoChild("printButton",_4)},showPrintPreview:function(_4,_5,_6,_7){if(!isc.isAn.Array(_4))_4=[_4];isc.Canvas.getPrintHTML(_4,_5,{target:this,methodName:"$57j",origCallback:_6},_7)},$57j:function(_4,_5){if(!this.previewPane){this.previewPane=this.createPreviewPane();this.previewPane.addProperties({title:this.title});this.addItem(this.previewPane)}else{this.previewPane.setTitle(this.title)}
this.previewPane.externalStylesheet=this.externalStylesheet;this.setVisibility("hidden");if(!this.isDrawn())this.draw();this.previewPane.setHTML(_4,{target:this,methodName:"$57h",origCallback:_5.origCallback})},$57h:function(_4,_5){if(!this.isVisible())this.show();this.bringToFront();if(_5.origCallback){this.fireCallback(_5.origCallback,["printPreview","printWindow"],[_4,this])}},printClicked:function(){var _2=this.getPrintCanvas();if(!_2)return;_2.print()},createPreviewPane:function(_4){var _3=isc.PrintCanvas.create({width:"100%",height:"100%"});return _3},getPrintCanvas:function(){return this.previewPane},closeClick:function(){this.Super("closeClick",arguments);this.clear()}})}
isc.ClassFactory.defineInterface("DataBoundComponent");isc.A=isc.Canvas;isc.A.COPY="copy";isc.A.MOVE="move";isc.A.CLONE="clone";isc.A.validateFieldNames=false;isc.A.$171k={"DynamicForm":{titleSuffix:"Form",criteriaBasePathSuffix:"values",metaFields:["focusField","hasChanges"]},"ListGrid":{titleSuffix:"Grid",criteriaBasePathSuffix:"selectedRecord",metaFields:["focusField","isGrouped","anySelected","multiSelected","numSelected"]},"TreeGrid":{titleSuffix:"Tree",criteriaBasePathSuffix:"selectedRecord",metaFields:["focusField","anySelected","multiSelected","numSelected"]},"TileGrid":{titleSuffix:"Tile Grid",criteriaBasePathSuffix:"selectedRecord"},"CubeGrid":{titleSuffix:"Cube",criteriaBasePathSuffix:"selectedRecord"},"ColumnTree":{titleSuffix:"Column Tree",criteriaBasePathSuffix:"selectedRecord"},"DetailViewer":{titleSuffix:"Details",criteriaBasePathSuffix:"values"}};isc.A.$177q={"focusField":"text","hasChanges":"boolean","isGrouped":"boolean","anySelected":"boolean","multiSelected":"boolean","numSelected":"integer"};isc.A.$177r="_meta_";isc.A.maxNumInvalidFieldNameWarnings=1;isc.A.$1026=0;isc.A=isc.Canvas;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$70l="/";isc.A.$605=".";isc.A.$187q={};isc.A.$187r={};isc.B.push(isc.A.canEditField=function isc_c_Canvas_canEditField(_1,_2){if(!_1)return true;if(_2&&_2.canEditField){this.logDebug("Component "+_2+" calling 'canEditField()' method for field:"+_1.name,"canEditField");return _2.canEditField()}
if(_1.canEdit!=null)return _1.canEdit;if(_2&&_2.canEdit!=null)return _2.canEdit;return true},isc.A.$1027=function isc_c_Canvas__validateFieldNames(_1,_2){var _3=isc.isAn.Instance(_2)&&_2.getClass().isA(isc.DynamicForm),i,_5,_6;for(i=0;i<_1.length;i++){_5=_1[i];var _7=((_3&&_5.shouldSaveValue===false&&_5.name==null)||String.isValidID(_5.name));if(!_7&&isc.Canvas.$1026++<isc.Canvas.maxNumInvalidFieldNameWarnings){_6="'"+_5.name+"' is not a valid JavaScript identifier. DataSource and DataBoundComponent field names are required to be valid JavaScript identifiers, the syntax for which is specified by ECMA-262 Section 7.6. Note: The String.isValidID(string) function can be used to test whether a string is a valid identifier.";if(_2!=null){var _8=isc.isAn.Instance(_2)?""+_2:isc.Log.echoLeaf(_2);_6+=" This field applied to "+_2+"."}
if(isc.Canvas.$1026==isc.Canvas.maxNumInvalidFieldNameWarnings){_6+=" This will be the last warning."}
isc.logWarn(_6)}}},isc.A.$177s=function isc_c_Canvas__makeRuleScopeMetaFieldName(_1){if(_1==null)return null;if(!_1.contains("."))return isc.Canvas.$177r+_1;var _2=_1.lastIndexOf(".")+1,_3=_1.substring(0,_2),_4=_1.substring(_2);return _3+(!_4.startsWith(isc.Canvas.$177r)?isc.Canvas.$177r:"")+_4},isc.A.getRuleContextPreferredOwnerID=function isc_c_Canvas_getRuleContextPreferredOwnerID(_1,_2){if(_1.isVisible&&!_1.isVisible()&&_2.isVisible&&_2.isVisible()){return _2.getID()}
var _3=function(_4){if(_4.isDisabled())return false;if(isc.isA.DynamicForm(_4)){return(_4.canEdit!=false)}else if(isc.isA.ListGrid(_4)){return _4.canEdit}
return false};if(!_3(_1)&&_3(_2)){return _2.getID()}
if(!isc.isA.DynamicForm(_1)&&isc.isA.DynamicForm(_2)){return _2.getID()}
return _1.getID()},isc.A.getRuleScopeSourceFromComponent=function isc_c_Canvas_getRuleScopeSourceFromComponent(_1){for(var _2 in isc.Canvas.$171k){if(_1.isA(_2)){return isc.Canvas.$171k[_2].criteriaBasePathSuffix}}
return null},isc.A.getFieldImageDimensions=function isc_c_Canvas_getFieldImageDimensions(_1,_2){var _3,_4;var _5,_6,_7;if(isc.isA.String(_1.imageWidth)){_5=_1.imageWidth}else{_3=_1.imageWidth}
if(isc.isA.String(_1.imageHeight)){_6=_1.imageHeight}else{_4=_1.imageHeight}
if(isc.isA.String(_1.imageSize)){_7=_1.imageSize}else{_3=_3||_1.imageSize;_4=_4||_1.imageSize}
if(_2!=null){_3=_3||_2[_5]||_2[_7];_4=_4||_2[_6]||_2[_7]}
return{width:_3,height:_4}},isc.A.$833=function isc_c_Canvas__performActionOnValue(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){if(!_4||_2==null||isc.isAn.emptyString(_2))return;var _11=_4;var _12=this.$70l;var _13=_2.contains(_12);if(!_13){_12=this.$605;_13=_2.contains(_12)}
if(_13){_2=_2.trim(_12);var _14=_2.split(_12),_15=[],_16;if(_14[0]&&_4[_14[0]]===_16&&(_1=="get"||_1=="hasValue")&&!_8)
{if(_5&&isc.ValuesManager&&isc.isA.ValuesManager(_5.valuesManager))
{return this.$833(_1,_2,_3,_5.valuesManager.getValues(),_5,_6,_7,true,_9||_4,_10)}}
if(isc.isAn.emptyString(_14.last()))_14.length-=1;for(var i=0;i<_14.length;i++){if(isc.isAn.emptyString(_14[i]))continue;if(_4==null){_15.length=0;break}
_15.add(_4);if(i==_14.length-1){if(_1=="get"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.getAtomicValue&&_4[_14[i]]!==_16)
{return _18.getAtomicValue(_4[_14[i]],_10)}}
return _4[_14[i]]}else if(_1=="clear"){delete _4[_14[i]]}else if(_1=="save"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.updateAtomicValue){var _19=_18.updateAtomicValue(_7,_4[_14[i]],_10);if(_19!=null)return _19}}
_4[_14[i]]=_7}else if(_1=="hasValue"){return _14[i]in _4}}else{var _20=_4[_14[i]];if(_20==_16){if(_1=="get"){return _16}else if(_1=="clear"){return}else if(_1=="save"){_20=_4[_14[i]]={}}else if(_1=="hasValue"){return false}}
_4=_20;if(isc.isAn.Array(_4)){var _21=null;var _22=(parseInt(_14[i+1])==_14[i+1]);if(_22){_21=parseInt(_14[i+1]);_14.removeAt(i+1)}else if(_5&&_5.selectionComponent){var _23=_12,_24=_5,_25;for(var j=0;j<=i;j++){_23+=_14[j]+_12}
_23=_23.trim(_12);_24=_5.selectionComponent;while(_24){var _27=_24.dataPath;if(_27)_27=_27.trim(_12);if(_23==_27){var _28=_24.getSelectedRecord();if(_28){for(var k=0;k<_4.length;k++){if(_28==_4[k]){_21=k;break}}
if(_21==null){isc.logWarn("At dataPath "+_2+", there was a selectionComponent with a valid selected record but we could not find that record in the VM's data.  Falling back to row derivation behavior")}}else{_25=true}
break}
_24=_24.selectionComponent}
if(_21==null){if(!_25&&_6){_21=isc.Canvas.deriveImplicitArrayEntry(_1,_2,_3,_4,_5,_14,i,_9);if(_21==-1){return}}else{return}}}else{if(_6){_21=isc.Canvas.deriveImplicitArrayEntry(_1,_2,_3,_4,_5,_14,i,_9);if(_21==-1){return}}else{return}}
_4=_4[_21]}}}
if(_1=="clear"){for(var i=_15.length-1;i>0;i--){if(isc.isAn.emptyObject(_15[i])){delete _15[i-1][_14[i-1]]}}}}else{if(_1=="get"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.getAtomicValue&&_4[_2]!==_16)
{return _18.getAtomicValue(_4[_2],_10)}}
return _4[_2]}else if(_1=="clear"){delete _4[_2]}else if(_1=="save"){if(_3!=null&&_3.type!=null){var _18=isc.SimpleType.getType(_3.type);if(_18&&_18.updateAtomicValue){var _19=_18.updateAtomicValue(_7,_4[_2],_10);if(_19!=null)return _19}}
_4[_2]=_7}else if(_1=="hasValue"){return _2 in _4}}},isc.A.deriveImplicitArrayEntry=function isc_c_Canvas_deriveImplicitArrayEntry(_1,_2,_3,_4,_5,_6,_7,_8){return 0},isc.A.$70m=function isc_c_Canvas__clearFieldValue(_1,_2,_3,_4){var _5=_1;if(isc.isAn.Object(_1)&&!isc.isA.Date(_1)){_5=this.$923(_1,_3)}else{_1=null}
this.$833("clear",_5,_1,_2,_3,_4,null,false)},isc.A.$70n=function isc_c_Canvas__saveFieldValue(_1,_2,_3,_4,_5,_6,_7){if(_1==null&&_2!=null)_1=this.$923(_2,_5);this.$833("save",_1,_2,_4,_5,_6,_3,false,null,_7);return _4},isc.A.$923=function isc_c_Canvas__getDataPathFromField(_1,_2){var _3;if(_1.dataPath){_3=_1.dataPath;if(_2){if(_1.$187s!=null){return _1.$187s}else{_1.$187s=_3=this.$840(_1.dataPath,_2)}}}else{_3=_1.name}
return _3},isc.A.$70o=function isc_c_Canvas__getFieldValue(_1,_2,_3,_4,_5,_6){if(_1==null&&_2!=null)_1=this.$923(_2,_4);return this.$833("get",_1,_2,_3,_4,_5,null,false,null,_6)},isc.A.$1683=function isc_c_Canvas__fieldHasValue(_1,_2,_3,_4,_5,_6){if(_1==null&&_2!=null)_1=this.$923(_2,_4);return this.$833("hasValue",_1,_2,_3,_4,_5,null,false,null,_6)},isc.A.$840=function isc_c_Canvas__trimDataPath(_1,_2){if(!_1)return _1;var _3=_2==null?null:_2.getFullDataPath();if(_3==null||isc.isA.emptyString(_3)){var _4=this.$187q;if(_4[_1]==null){_4[_1]=_1.trim(isc.Canvas.$70l)}else{}
return _4[_1]}else{if(this.$187r[_3]==null){this.$187r[_3]={}}
var _4=this.$187r[_3];if(_4[_1]==null){var _5=_1.trim(isc.Canvas.$70l);if(_5.contains(isc.Canvas.$70l)){var _6=_3.trim(isc.Canvas.$70l);var _7=_6.split(isc.Canvas.$70l);var _8=_5.split(isc.Canvas.$70l);for(var i=0;i<_7.length;i++){if(_7[i]!=_8[i]){break}}
if(i==0){_4[_1]=_1}else{var _10="";for(var j=i;j<_8.length;j++){_10+=_8[j];_10+="/"}
_4[_1]=_10.substring(0,_10.length-1)}}else{_4[_1]=_5}}
return _4[_1]}},isc.A.$702=function isc_c_Canvas__combineDataPaths(_1,_2){if(_1==null&&_2==null)return null;if(isc.isA.String(_2)&&_2.startsWith(this.$70l))return _2;if(_1==null)return""+_2;if(_2==null)return _1+"";if(isc.isA.String(_1)&&_1.endsWith(this.$70l)){return _1+_2}else{return _1+this.$70l+_2}},isc.A.$91f=function isc_c_Canvas__duplicateValues(_1,_2,_3,_4,_5){var _6=_1?_1.getDataSource():null;this.$91g(_1,_3,_2,_6,null,_4,null,_5)},isc.A.$91g=function isc_c_Canvas__cloneComponentValues(_1,_2,_3,_4,_5,_6,_7,_8){if(_3==null)return;var _9=(_6!=null);var _10=_1?_1.deepCloneOnEdit:null;if(_10==null)_10=_4?_4.deepCloneOnEdit:null;var _11=_10==null?(isc.DataSource?isc.DataSource.deepCloneOnEdit:_10):_10;if(isc.isAn.Array(_3)){for(var i=0;i<_3.length;i++){var _13=_3[i];if(isc.isA.Function(_13))continue;if(isc.isAn.Instance(_3[_16])||isc.isA.Class(_3[_16]))continue;if(_13==null||isc.isA.String(_13)||isc.isA.Boolean(_13)||isc.isA.Number(_13))
{_2[_2.length]=_13}else if(isc.isA.Date(_13)){_2[_2.length]=new Date(_13.getTime())}else if(isc.isAn.Object(_13)){var _14;if(isc.isAn.Array(_13)){_14=_2[_2.length]=[]}else{_14=_2[_2.length]={}}
this.$91g(_1,_14,_13,_4,(_9?_5:null),_6,null,_8)}}
return}
if(_3.$42c!=null){_3=isc.JSONEncoder.$42b(_3)}
var _15={__ref:true,__module:true};if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(!_7)_7=[];if(_7.contains(_3)){_2=_3;return}
_7.add(_3)}
for(var _16 in _3){if(isc.isA.Function(_3[_16]))continue;if(_15[_16]==true)continue;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_3[_16])){if(_8)_2[_16]=_3[_16];continue}
if(isc.isAn.Instance(_3[_16])||isc.isA.Class(_3[_16]))continue;var _17;if(_9){if(_5){_17=_5+_16}else{_17=_16}
var _18;if(_1&&_1.getItem)_18=_1.getItem(_17);if(_18&&_18.isSetToDefaultValue()){_6.add(_17)}}
var _19=_3[_16];if(isc.isA.Date(_19)){_2[_16]=_19.duplicate()}else if(isc.isAn.Object(_19)&&!isc.isAn.Array(_19)){var _20=_4?_4.getField(_16):null;if(!_20){_2[_16]=_3[_16]}else{var _21=isc.SimpleType.getType(_20.type);if(_21&&_21.duplicate){_2[_16]=_21.duplicate(_3[_16])}else if(_20.deepCloneOnEdit==true||(_20.deepCloneOnEdit==null&&_11))
{if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(_7.contains(_19)){_2[_16]=_3[_16];continue}
_7.add(_19)}
_2[_16]={};this.$91g(_1,_2[_16],_19,isc.DataSource?isc.DataSource.get(_20.type):null,_9?(_17+isc.Canvas.$70l):null,_6,_7,_8)}else{_2[_16]=_3[_16]}}}else if(isc.isAn.Array(_19)){var _20=_4?_4.getField(_16):null;if(!_20){_2[_16]=_3[_16]}else{var _21=isc.SimpleType.getType(_20.type);if(_21&&_21.duplicate){var _22=[];for(var i=0;i<_2[_16];i<_2[_16].length){_22[i]=_21.duplicate(_2[_16][i])}}else if(_20.deepCloneOnEdit==true||(_20.deepCloneOnEdit==null&&_11))
{if(isc.DataSource&&isc.DataSource.cloneValuesSafely){if(_7.contains(_19)){_2[_16]=_3[_16];continue}
_7.add(_19)}
_2[_16]=[];this.$91g(_1,_2[_16],_19,isc.DataSource?isc.DataSource.get(_20.type):null,_9?(_17+isc.Canvas.$70l):null,_6,_7,_8)}else{_2[_16]=_3[_16]}}}else{_2[_16]=_3[_16]}}},isc.A.evalViewState=function isc_c_Canvas_evalViewState(_1,_2,_3,_4){if(isc.isA.String(_1)){var _5=_1;try{_1=isc.eval(_1)}catch(e){if(!_3){var _6="Unable to parse "+_2+" object passed in: "+isc.Log.echo(_5)+" Ignoring."
if(!_4||_4.logWarn==null){if(_4)_6+=" [target:"+isc.Log.echo(_4)+"]";this.logWarn(_6)}else{_4.logWarn(_6)}}
return}}
return _1},isc.A.getNumberValueAsString=function isc_c_Canvas_getNumberValueAsString(_1,_2,_3,_4){if(!isc.isA.Number(_1)){if(_4){return null}
_1=isc.DataSource.$93o(_3)}
if(!isc.isA.Number(_2)||_2<=0){_2=null}
if(_2!=null){_2=this.$111l(_2,1,21,"precision");return isc.NumberUtil.$109c(_1.toPrecision(_2))}else{return isc.DataSource.$93p(_1,_3)}},isc.A.getFloatValueAsString=function isc_c_Canvas_getFloatValueAsString(_1,_2,_3,_4){if(!isc.isA.Number(_1)){if(_4){return null}
_1=isc.DataSource.$93o("float")}
if(!isc.isA.Number(_2)||_2<0){_2=null}
if(!isc.isA.Number(_3)||_3<0){_3=null}
if(_2!=null&&_3!=null){if(_2<_3){_3=_2}
_2=null}
if(_3!=null){_3=this.$111l(_3,0,20,"decimalPad");return _1.toFixed(_3)}else if(_2!=null){var _5=Math.pow(10,_2);var _6=Math.round(_1*_5)/_5;return isc.DataSource.$93p(_6,"float")}else{return isc.DataSource.$93p(_1,"float")}},isc.A.$111l=function isc_c_Canvas__filterFieldValueAndWarn(_1,_2,_3,_4){var _5;if(_1<_2)_5=_2;else if(_1>_3)_5=_3;else return _1;this.logWarn("Ignoring invalid value "+_1+" for "+_4);return _5},isc.A.getRuleScopeDataSources=function isc_c_Canvas_getRuleScopeDataSources(_1){if(!_1)return[];_1=(isc.isA.String(_1)?window[_1]:_1);if(!_1.getRuleScopeDataBoundComponents)return[];var _2=[],_3=_1.getRuleScopeDataBoundComponents();for(var i=0;i<_3.length;i++){if(_3[i]==_1){continue}
if(_3[i].dataSource){if(!_2.contains(_3[i].dataSource)){_2.add(_3[i].dataSource)}}
if(_3[i]!=_1){_2.add(_3[i].makeDataSourceFromFields(_3[i].ID))}}
return _2},isc.A.getAllRuleScopeDataSources=function isc_c_Canvas_getAllRuleScopeDataSources(_1){var _2=(isc.isA.String(_1)?window[_1]:_1),_3=(_2.getDataSource?_2.getDataSource():null);if(!_3&&isc.isA.DataBoundComponent(_2)){_3=_2.makeDataSourceFromFields()}
var _4=isc.Canvas.getRuleScopeDataSources(_2);if(_3){_4.addAt(_3,0)}
return _4},isc.A.getRuleScopeDataSourceOwners=function isc_c_Canvas_getRuleScopeDataSourceOwners(_1){if(!_1)return{};_1=(isc.isA.String(_1)?window[_1]:_1);if(!_1.getRuleScopeDataBoundComponents)return{};var _2=[],_3=_1.getRuleScopeDataBoundComponents(),_4={};for(var i=0;i<_3.length;i++){if(_3[i]!=_1&&_3[i].dataSource){var _6=_3[i],_7=_6.getID(),_8=_4[_6.dataSource.ID];if(_8){if(isc.Canvas.getRuleContextPreferredOwnerID(_8,_6)==_7){_4[_6.dataSource.ID]=_6}}else{_4[_6.dataSource.ID]=_6}}}
return _4});isc.B._maxIndex=isc.C+24;isc.A=isc.Canvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.showComplexFields=true;isc.A.exportIncludeSummaries=true;isc.A.ignoreEmptyCriteria=true;isc.A.dragRecategorize="checked";isc.A.duplicateDragMessage="Duplicates not allowed";isc.A.showOfflineMessage=true;isc.A.offlineMessage="This data not available while offline";isc.A.offlineMessageStyle="offlineMessage";isc.A.offlineSaveMessage="Data cannot be saved because you are not online";isc.A.addDropValues=true;isc.A.fieldIdProperty="name";isc.A.dataArity="multiple";isc.A.autoTrackSelection=true;isc.A.$308={date:true,DateItem:true};isc.A.$1007="canEdit";isc.A.applyLengthValidators=true;isc.A.canEditTitles=false;isc.A.$301="false;";isc.A.$18r="false";isc.A.$18q="true";isc.A.styleOpposite="cellHiliteOpposite";isc.A.canEditHilites=false;isc.A.hiliteIcons=["[SKINIMG]/Dialog/notify.png","[SKINIMG]/Dialog/warn.png","[SKINIMG]/actions/approve.png"];isc.A.hiliteIconPosition="before";isc.A.hiliteIconSize=12;isc.A.hiliteIconLeftPadding=2;isc.A.hiliteIconRightPadding=2;isc.A.hiliteProperty="_hilite";isc.A.hiliteMarker="$63i";isc.A.$578=0;isc.A.$144i="nonSummaryAffecting";isc.A.$144j="simpleSummaryAffecting";isc.A.$144k="summaryDependentSummaryAffecting";isc.A.fieldNamingStrategy="simple";isc.A.fieldNameGenerator={};isc.A.$579=[];isc.A.editHilitesText="Edit Highlights...";isc.A.editHilitesDialogTitle="Edit Highlights";isc.A.hiliteWindowConstructor="Window";isc.A.hiliteWindowDefaults={autoDraw:false,autoParent:"none",height:400,width:875,autoCenter:true,overflow:"visible",canDragResize:true,keepInParentRect:true,isModal:true,showModalMask:true,bodyProperties:{layoutMargin:8,membersMargin:8,overflow:"visible"},closeClick:function(){this.hide()}};isc.A.fieldEditorWindowTitle="${builderType} Editor [${fieldTitle}]";isc.A.fieldEditorWindowConstructor="Window";isc.A.fieldEditorWindowDefaults={height:400,width:"80%",maxWidth:750,keepInParentRect:true,showMinimizeButton:false,showMaximizeButton:false,autoDraw:false,isModal:true,showModalMask:true,overflow:"visible",autoCenter:true,canDragResize:true,bodyProperties:{overflow:"visible"},headerIconProperties:{padding:1,src:"[SKINIMG]ListGrid/formula_menuItem.png"},closeClick:function(){this.items.get(0).completeEditing(true);return this.Super('closeClick',arguments)}};isc.A.hiliteEditorConstructor="HiliteEditor";isc.A.hiliteEditorDefaults={autoDraw:false,autoParent:"none",callback:function(_1){var _2=this.creator;if(_1!=null)_2.$1024(_1);_2.hiliteWindow.hide()}};isc.A.dragDataAction=isc.Canvas.MOVE;isc.A.dragTrackerStyle="gridDragTracker";isc.A.canExport=true;isc.A.canPrint=true;isc.A.panelControls=["action:edit","action:editNew","action:sort","action:export","action:print"];isc.A.dbcProperties=["autoFetchData","autoFetchTextMatchStyle","autoFetchAsFilter","dataSource"];isc.A.badFormulaResultValue=".";isc.A.missingSummaryFieldValue="-";isc.A.missingFormulaFieldValue="-";isc.A.canAddFormulaFields=false;isc.A.addFormulaFieldText="Add formula column...";isc.A.editFormulaFieldText="Edit formula...";isc.A.removeFormulaFieldText="Remove formula";isc.A.$132l=0;isc.A.canAddSummaryFields=false;isc.A.addSummaryFieldText="Add summary column...";isc.A.editSummaryFieldText="Edit summary format...";isc.A.removeSummaryFieldText="Remove summary column..";isc.A.includeHilitesInSummaryFields=true;isc.A.exportDataChunkSize=50;isc.A.exportWidthScale=0.12;isc.A.$1766=false;isc.A.emptyExportMessage="You are attempting to export an empty dataset";isc.A.defaultExportAs="csv";isc.A.defaultExportFilename="export";isc.A.defaultExportDisplay="download";isc.A.unknownErrorMessage="Invalid value";isc.A.noErrorDetailsMessage="Error during validation; no error details were provided";isc.A.$685=["isInteger","isFloat","isBoolean","isString"];isc.A.$746="partial";isc.A.$75a={};isc.A.$75b=null;isc.A.$166g=0;isc.B.push(isc.A.$122r=function isc_Canvas__resolveEmptyDisplayValue(_1){var _2=_1.emptyCellValue;if(_2==null)_2=_1.emptyDisplayValue;if(_2==null)_2=this.emptyCellValue;return _2},isc.A.setFetchOperation=function isc_Canvas_setFetchOperation(_1){this.fetchOperation=_1;if(this.$114v)this.$114v()},isc.A.setUpdateOperation=function isc_Canvas_setUpdateOperation(_1){this.updateOperation=_1;if(this.$114v)this.$114v()},isc.A.setAddOperation=function isc_Canvas_setAddOperation(_1){this.addOperation=_1;if(this.$114v)this.$114v()},isc.A.setRemoveOperation=function isc_Canvas_setRemoveOperation(_1){this.removeOperation=_1;if(this.$114v)this.$114v()},isc.A.setProgressiveLoading=function isc_Canvas_setProgressiveLoading(_1){this.progressiveLoading=_1;if((isc.ResultSet&&isc.isA.ResultSet(this.data))||(isc.ResultTree&&isc.isA.ResultTree(this.data)))
{this.data.progressiveLoading=_1}},isc.A.setValuesManager=function isc_Canvas_setValuesManager(_1){if(_1)_1.addMember(this)},isc.A.initializeValuesManager=function isc_Canvas_initializeValuesManager(){var _1=this.valuesManager;this.valuesManager=null;if(_1!=null){if(isc.ValuesManager==null){this.logWarn("Widget initialized with specified 'valuesManager' property but ValuesManager class is not loaded. This functionality requires the Forms module.");return}
if(isc.isA.ValuesManager(_1)){_1.addMember(this)}else if(isc.isA.ValuesManager(window[_1])){window[_1].addMember(this)}else if(isc.isA.String(_1)){isc.ValuesManager.create({ID:_1,dataSource:this.dataSource,members:[this]})}else{this.logWarn("Widget initialized with invalid 'valuesManager' property:"+isc.Log.echo(_1)+", clearing this property out")}}},isc.A.setDataPath=function isc_Canvas_setDataPath(_1){this.dataPath=_1;if(this.getFields==null||this.getFields()==null)return;if(_1==null){delete this.$704;if(this.valuesManager&&this.$703){this.valuesManager.removeMember(this);delete this.$703}
return}
var _2;var _3=this;while(_3&&(!_3.valuesManager||_3.$703)&&!_3.dataSource)
{if(_3.dataPath){if(_2){_2=isc.Canvas.$702(_3.dataPath,_2)}else{_2=_3.dataPath}}
_3=_3.parentElement}
this.$704=_2;if(_3){if(_3!=this){this.$1850=_3}
if(_3!=this||!this.dataSource){if(_3.valuesManager==null){_3.createDefaultValuesManager()}
var _4=isc.isA.DynamicForm(this)?this.$834:this.getAllFields();_4=_4||this.getAllFields();if(_3.valuesManager.getDataSource()){var _5=_3.valuesManager.getDataSource(),_1=this.$704;if(_1){_5=_5.getDataSourceForDataPath(_1,true)}
if(_5==null){isc.logWarn("Component with ID '"+this.ID+"' expresses a dataPath '"+this.dataPath+"' that has no matching DataSource. Either the dataPath of this component is incorrect, or the DataSource structure is incomplete");return}
this.setDataSource(_5,_4)}
_3.valuesManager.addMember(this,true)}}},isc.A.getFullDataPath=function isc_Canvas_getFullDataPath(){var _1=this.$704||this.dataPath;if(!_1&&this.masterElement){return this.masterElement.$704||this.masterElement.dataPath}
return _1},isc.A.buildFieldDataPath=function isc_Canvas_buildFieldDataPath(_1,_2){var _3=_2.dataPath||_2.name;if(_1!=null){_3=isc.Canvas.$702(_1,_3)}
return!_3?null:_3.replace(/^\/*/,"")},isc.A.createDefaultValuesManager=function isc_Canvas_createDefaultValuesManager(_1){if(!_1)_1=[];_1.add(this);isc.ValuesManager.create({members:_1,ID:this.getID()+"$705",dataSource:this.dataSource})},isc.A.$840=function isc_Canvas__trimDataPath(_1){return isc.Canvas.$840(_1,this)},isc.A.getDataPathField=function isc_Canvas_getDataPathField(_1){if(!_1)return null;var _2;if(this.valuesManager&&this.valuesManager.getDataSource){_2=this.valuesManager.getDataSource()}else if(this.grid&&this.grid.valuesManager&&this.grid.valuesManager.getDataSource){_2=this.grid.valuesManager.getDataSource()}else if(this.$1850&&this.$1850.valuesManager&&this.$1850.valuesManager.getDataSource)
{_2=this.$1850.valuesManager.getDataSource()}else{_2=this.getDataSource()}
var _3=_1.split(isc.slash),_4;if(!_2)return;for(var i=0;i<_3.length;i++){var _6=_3[i],_7=_2.getField(_6);_2=_7?(_2.getSchema(_7.type)||_2):_2;if(_7==null){this.logWarn("Unable to find dataSource field matching specified dataPath: '"+_1+"'");return}}
return _7},isc.A.registerWithDataView=function isc_Canvas_registerWithDataView(_1){if(!this.inputDataPath)return;_1=this.parentElement;while(_1&&!isc.isA.DataView(_1))_1=_1.parentElement;if(!_1){this.logWarn("Component initialized with an inputDataPath property, but no DataView was found in the parent hierarchy. inputDataPath is only applicable to DataBoundComponents and FormItems being managed by a DataView");return}
_1.registerItem(this)},isc.A.bindToDataSource=function isc_Canvas_bindToDataSource(_1,_2){if(this.dataPath)this.setDataPath(this.dataPath);if(this.dataSource==null&&this.data!=null)this.dataSource=this.data.dataSource;var _3=this.fields||this.items;if(isc.isAn.Array(_3))this.originalFields=_3.duplicate();var _4=this.getDataSource();if(_4==null&&this.valuesManager&&this.valuesManager.getDataSource){_4=this.valuesManager.getDataSource()}
if(_4!=null&&isc.isA.String(_4)){this.logWarn("unable to look up DataSource: "+_4+", databinding will not be used");return _1}
var _5=(_1==null||_1.length==0),_6;if(_4){var _7=this.useFlatFields;if(_7==null)_7=_4.useFlatFields;_6=_7?_4.getFlattenedFields():_4.getFields()}
if(!_5&&isc.Canvas.validateFieldNames){isc.Canvas.$1027(_1,this)}
if(_4==null||_6==null){if(_1!=null&&isc.SimpleType){for(var i=0;i<_1.length;i++){if(_1[i]==null)continue;if(_1[i].type==null&&this.$308[_1[i].editorType]==true)
{_1[i].type="date"}
if(_1[i].type==null){var _9=null;if(_1[i]._constructor&&isc[_1[i]._constructor]){_9=_1[i]._constructor}
if(_1[i].editorType&&isc[_1[i].editorType]){_9=_1[i].editorType}
if(_9&&isc[_9]&&isc[_9].getInstanceProperty){if(_1[i].valueMap||_1[i].editorValueMap)_1[i].type="text";else{_1[i].type=isc[_9].getInstanceProperty("type")||isc[_9].getInstanceProperty("defaultType")}}}
isc.SimpleType.addTypeDefaults(_1[i]);if(_1[i].type){var _10=isc.SimpleType.getType(_1[i].type);_1[i]=this.addTypeFieldProperties(_1[i],_10);if(!_1[i].format&&_10&&_10.format){_1[i].format=_10.format}}
if(this.isEditComponent){var _11=!isc.Canvas.canEditField(_1[i],this),_12=null;if(_11)_12=_1[i].readOnlyEditorProperties;if(_12==null){_12=_1[i].editorProperties}
if(_12!=null){isc.addProperties(_1[i],_12)}}}}
this.addFieldValidators(_1);return _1}
if(this.doNotUseDefaultBinding)return[];if(_4!=null&&_5){if(this.suppressAllDSFields)return[];_1=[];for(var _13 in _6){var _14=_6[_13];if(!this.shouldUseField(_14,_4))continue;var _15=isc.addProperties({},_14);var _16=this.getDefaultCanEdit(_14);var _17;if(_16===_17){delete _15.canEdit}else{_15.canEdit=_16}
if(_15.hidden)delete _15.hidden;if(this.isEditComponent){var _11=!isc.Canvas.canEditField(_14,this),_12=null;if(_11)_12=_14.readOnlyEditorProperties;if(_12==null){_12=_14.editorProperties}
if(_12){isc.addProperties(_15,_12)}}
_1.add(_15)}
this.addFieldValidators(_1,_4);return _1}
if(_4!=null&&!_5){var _18={};for(var i=_1.length-1;i>=0;i--){var _14=_1[i];if(_14==null)continue;var _19=(_14.name!=null)?_4.getField(_14.name):null;if(_19&&_19.canView===false){this.logInfo("Dropping explicitly-named field "+_14.name+" because it is marked canView: false");_1.removeAt(i);continue}
if(_14.type==null&&this.$308[_14.editorType]==true){var _20=_14.name;var _19=(_20!=null)?_4.getField(_20):null;if(_19==null||_19.type==null){_14.type="date"}}
if(isc.SimpleType){var _21=_14.type;if(_21==null){var _19=(_14.name!=null)?_4.getField(_14.name):null;if(_19)_21=_19.type}
if(_21){if(_14.type==null){_14.type=_21}
var _10=isc.SimpleType.getType(_21);_1[i]=this.addTypeFieldProperties(_1[i],_10)}
isc.SimpleType.addTypeDefaults(_14)}
if(this.isEditComponent){var _11=!isc.Canvas.canEditField(_1[i],this),_12=null;if(_11){_12=_1[i].readOnlyEditorProperties}
if(_12==null){_12=_1[i].editorProperties}
if(_12){isc.addProperties(_1[i],_12)}}
if(_19){var _16=_14.canEdit;if(_16==null){_16=this.getDefaultCanEdit(_19)}else{this.logDebug("DataBoundComponent respecting explicit 'canEdit' on target field "+_19.name,"canEditField")}
_18[_14.name]=_16}else if(_14.includeFrom!=null){var _16=_14.canEdit;if((_16==null)&&(this.canEditIncludeFromFields()==false)){_16=false}
_18[_14.includeFrom]=_16}else{_18[_14.name]=_14.canEdit}
if(_14.type!=null){isc.SimpleType.addTypeDefaults(_14)}}
if(this.useAllDataSourceFields||_2){var _22=this;var _23=_4.combineFieldOrders(_6,_1,function(_14,_4,_25){return _22.shouldUseField(_14,_4,_25)});for(var i=0;i<_23.length;i++){var _14=_23[i],_24=_1.containsProperty("name",_14.name);if(!_24){if(_2&&_14.showIf==null){_14.showIf="return false"}}else{if(_14.includeFrom!=null&&_4.getField(_14.name)==null){this.$785(_14)}}
var _16;if(_24){_16=_14.includeFrom?_18[_14.includeFrom]:_18[_14.name]}else{_16=this.getDefaultCanEdit(_14)}
var _17;if(_16===_17){delete _14.canEdit}else{_14.canEdit=_16}
if(!_24&&this.isEditComponent){var _11=!isc.Canvas.canEditField(_14,this),_12=null;if(_11){_12=_14.readOnlyEditorProperties}
if(_12==null){_12=_14.editorProperties}
if(_12){isc.addProperties(_14,_12)}}}
this.addFieldValidators(_23,_4);return _23}else{for(var i=0;i<_1.length;i++){var _14=_1[i];if(!_14)continue;_14=this.combineFieldData(_14);_14.canEdit=_14.includeFrom?_18[_14.includeFrom]:_18[_14.name];if(_14.canEdit==null){delete _14.canEdit}}
this.addFieldValidators(_1,_4);return _1}}},isc.A.addTypeFieldProperties=function isc_Canvas_addTypeFieldProperties(_1,_2){if(_2&&_2.fieldProperties){var _3={};for(var _4 in _2.fieldProperties){if(_4=="editorProperties"){_3[_4]=isc.addProperties({},_2.fieldProperties[_4])}else{_3[_4]=_2.fieldProperties[_4]}}
return isc.addProperties(_3,_1)}
return _1},isc.A.getDefaultCanEdit=function isc_Canvas_getDefaultCanEdit(_1){var _2=this.canEditFieldAttribute;if(_2==null)_2="canEdit";var _3=_1[_2];if(_3==null){if(_1.canSave==false&&!this.$66m){_3=false}}
this.logDebug("DataBoundComponent using canEditFieldAttribute:"+_2+" setting 'canEdit' to "+_3+" on target field "+_1.name,"canEditField");return _3},isc.A.fieldIsEditable=function isc_Canvas_fieldIsEditable(_1){return false},isc.A.canEditIncludeFromFields=function isc_Canvas_canEditIncludeFromFields(){var _1=this.canEditFieldAttribute;if(_1==null||_1==this.$1007){return false}
return true},isc.A.combineFieldData=function isc_Canvas_combineFieldData(_1){var _2=this.getDataSource();var _3;if(this.isEditComponent){var _3=!isc.Canvas.canEditField(_1,this)}
if(this.getFullDataPath()||_1.dataPath){var _4=this.buildFieldDataPath(this.getFullDataPath(),_1);var _5=this.getDataPathField(_4),_6;if(this.isEditComponent){if(_3&&_5&&_5.readOnlyEditorProperties!=null){_6="readOnlyEditorProperties"}else{_6="editorProperties"}}
isc.DataSource.combineFieldData(_1,_5,false,_6);return _1}else if(_2!=null&&_2.getField(_1.name)){var _5=_2.getField(_1.name),_6;if(this.isEditComponent){if(_3&&_5&&_5.readOnlyEditorProperties!=null){_6="readOnlyEditorProperties"}else{_6="editorProperties"}}
return _2.combineFieldData(_1,null,false,_6)}else if(_1.includeFrom!=null){return this.$785(_1)}
return _1},isc.A.$785=function isc_Canvas__combineIncludeFromFieldData(_1){var _2=_1.includeFrom.split(".");if(_2==null||_2.length!=2){this.logWarn("This component includes a field with includeFrom set to:"+_1.includeFrom+". Format not understood.")}else{var _3=isc.DataSource.get(_2[0]),_4=_2[1];if(_3==null){this.logWarn("Field specifies includeFrom:"+_1.includeFrom+". Unable to find dataSource with ID:"+_2[0])}else{if(_1.name==null)_1.name=_4;return _3.combineFieldData(_1,_3.getField(_4))}}},isc.A.shouldUseField=function isc_Canvas_shouldUseField(_1,_2,_3){if(_1.canView===false)return false;if(_2&&!_3&&!this.showHiddenFields){if(_1.hidden)return false}
if(_1.canFilter==false&&this.showFilterFieldsOnly){return false}
if(_1.detail&&!this.showDetailFields)return false;if(!this.showComplexFields&&_2.fieldIsComplexType(_1.name))return false;return true},isc.A.addFieldValidators=function isc_Canvas_addFieldValidators(_1,_2){if(_1==null)return;for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4.validators!=null){if(!isc.isAn.Array(_4.validators))_4.validators=[_4.validators];_4.validators=_4.validators.duplicate()}
if(_4.required){var _5=this.getRequiredValidator(_4),_6=_5.errorMessage;if(!_4.validators){_4.validators=[_5]}else{if(!_4.validators.containsProperty("type",_5.type)&&!_4.validators.containsProperty("_constructor",_5.type))
{_4.validators.add(_5)}else if(_6!=null){var _2=this.getDataSource(),v=(_4.validators.find("type",_5.type)||_4.validators.find("_constructor",_5.type));if(v.errorMessage==null||(_2&&v.errorMessage==_2.requiredMessage)){v.errorMessage=_6}}}}else if(_4.required==false){var _8=_4.validators;if(_4.validators!=null){var _9=_4.validators.findIndex("type","required");if(_9!=-1){_4.validators.removeAt(_9)}}}
if(this.applyLengthValidators&&_4.length!=null){var _5=this.getMaxLengthValidator(_4,_2);if(!_4.validators){_4.validators=[_5]}else{var _10=false;for(var _11=0;_11<_4.validators.length;_11++){var _12=_4.validators[_11];if((_12.type==_5.type||_12._constructor==_5.type)&&_12.max!=null&&_12.max<=_5.max)
{_10=true;break}}
if(!_10){_4.validators.add(_5)}}}
if(_4.maxFileSize!=null){var _5=this.getMaxFileSizeValidator(_4,_2),_6=_5.errorMessage;if(!_4.validators){_4.validators=[_5]}else{if(!_4.validators.containsProperty("type",_5.type)&&!_4.validators.containsProperty("_constructor",_5.type))
{_4.validators.add(_5)}else if(_6!=null){var v=(_4.validators.find("type",_5.type)||_4.validators.find("_constructor",_5.type));if(v.errorMessage==null){v.errorMessage=_6}
v.maxFileSize=_5.maxFileSize}}}
if(_4.multiple&&_4.validateEachItem==null)_4.validateEachItem=true}},isc.A.getRequiredValidator=function isc_Canvas_getRequiredValidator(_1){var _2={type:"required"},_3=_1.requiredMessage||this.requiredMessage;if(_3!=null)_2.errorMessage=_3;return _2},isc.A.getMaxLengthValidator=function isc_Canvas_getMaxLengthValidator(_1){var _2={type:"lengthRange",max:_1.length}
return _2},isc.A.getMaxFileSizeValidator=function isc_Canvas_getMaxFileSizeValidator(_1,_2){var _3={type:"maxFileSize",maxFileSize:_1.maxFileSize},_4=(_2!=null?_2.maxFileSizeExceededMessage:null);if(_4!=null)_3.errorMessage=_4;return _3},isc.A.getAllFields=function isc_Canvas_getAllFields(){return this.completeFields||this.fields},isc.A.getField=function isc_Canvas_getField(_1){if(!this.fields)return null;return isc.Class.getArrayItem(_1,this.fields,this.fieldIdProperty)},isc.A.getUnderlyingField=function isc_Canvas_getUnderlyingField(_1){if(!this.fields&&!this.completeFields&&!this.dataSource){this.logWarn("fields and completeFields are null and there is no DataSource");return null}
var _2=null;if(this.fields){_2=this.getField(_1)}
if(!_2&&this.completeFields){_2=isc.Class.getArrayItem(_1,this.completeFields,this.fieldIdProperty)}
if(!_2&&this.dataSource){if(!isc.isA.DataSource(this.dataSource))this.dataSource=this.getDataSource(this.dataSource);_2=this.dataSource.getField(_1)}
return _2},isc.A.getFieldNum=function isc_Canvas_getFieldNum(_1){if(!this.fields)return-1;if(isc.isA.Object(_1)&&(_1[this.fieldIdProperty]!=null)){_1=_1[this.fieldIdProperty]}
return isc.Class.getArrayItemIndex(_1,this.fields,this.fieldIdProperty)},isc.A.isXMLRequired=function isc_Canvas_isXMLRequired(_1){if(!_1||!this.useXMLRequired||!_1.xmlRequired)return false;if(!_1.dataPath)return true;var _2=this.getDataSource();if(!_2)return true;var _3=_1.dataPath.split(isc.slash),_1;for(var i=0;i<_3.length;i++){var _5=_3[i];if(!_2)return true;_1=_2.getField(_5);if(!_1)return true;if(_1.xmlMinOccurs!=null&&_1.xmlMinOccurs<1){return false}
_2=_2.getSchema(_1.type)}
return true},isc.A.evalViewState=function isc_Canvas_evalViewState(_1,_2,_3){return isc.Canvas.evalViewState(_1,_2,_3,this)},isc.A.shouldIncludeTitleInFieldState=function isc_Canvas_shouldIncludeTitleInFieldState(){return this.canEditTitles},isc.A.getFieldState=function isc_Canvas_getFieldState(_1){var _2=this.shouldIncludeTitleInFieldState();var _3=[];var _4=this.getAllFields();if(_4){for(var i=0;i<_4.length;i++){var _6=_4[i];if(!_6||_6.excludeFromState)continue;var _7=_6[this.fieldIdProperty],_8=this.getStateForField(_7,_2);_3.add(_8)}}
if(_1)return _3;return isc.Comm.serialize(_3,false)},isc.A.getStateForField=function isc_Canvas_getStateForField(_1,_2){var _3=this.getAllFields().find(this.fieldIdProperty,_1),_4={name:_1};if(!_3)return null;if(_3.frozen==true)_4.frozen=true;if(!this.fieldShouldBeVisible(_3,this.getFieldNum(_1)))_4.visible=false;if(_3.userFormula){_4.userFormula=_3.userFormula;_4.type=_3.type}
if(_3.userSummary)_4.userSummary=_3.userSummary;if(_3.canFilter!=null&&(_3.userFormula||_3.userSummary)){_4.canFilter=_3.canFilter}
if(_2||_3.userSummary||_3.userFormula){_4.title=_3.title}
var _5;if(_3.autoFitWidth!==_5)_4.autoFitWidth=_3.autoFitWidth;if(_3.precision!==_5)_4.precision=_3.precision;if(_3.decimalPrecision!==_5)_4.decimalPrecision=_3.decimalPrecision;if(_3.decimalPad!==_5)_4.decimalPad=_3.decimalPad;if(this.getSpecifiedFieldWidth){var _6=this.getSpecifiedFieldWidth(_3);if(_6!=null)_4.width=_6}
return _4},isc.A.$31y=function isc_Canvas__setFieldState(_1,_2){if(_1==null)return this.getAllFields();var _3=this.getAllFields();var _4=_3.getProperty(this.fieldIdProperty),_5=[];for(var i=0;i<_1.length;i++){var _7=_1[i],_8=_3.find(this.fieldIdProperty,_7.name);if(_8==null){if(_7.userFormula||_7.userSummary){_8={};_8[this.fieldIdProperty]=_7.name}else continue}
_4.remove(_7.name);if(_7.visible==false){_8.showIf=this.$18r;_8.hidden=true}else{_8.showIf=null;_8.detail=false;_8.hidden=false}
if(_7.width!=null&&(!isNaN(_7.width)||_7.width=="*"))_8.width=_7.width;_8.frozen=_7.frozen;var _9;if(_7.title)_8.title=_7.title;if(_7.userFormula!=null)_8.userFormula=_7.userFormula;if(_7.userSummary!=null)_8.userSummary=_7.userSummary;if(_7.canFilter!=null)_8.canFilter=_7.canFilter;if(_7.type!=null)_8.type=_7.type;if(_7.autoFitWidth!==_9&&_7.autoFitWidth!=_8.autoFitWidth)_8.autoFitWidth=_7.autoFitWidth;if(_7.precision!==_9&&_7.precision!=_8.precision)_8.precision=_7.precision;if(_7.decimalPrecision!==_9&&_7.decimalPrecision!=_8.decimalPrecision)_8.decimalPrecision=_7.decimalPrecision;if(_7.decimalPad!==_9&&_7.decimalPad!=_8.decimalPad)_8.decimalPad=_7.decimalPad;_5.add(_8)}
var _10=this.defaultFieldState;if(_10!=null)_10=this.evalViewState(_10,"fieldState");for(var i=0;i<_4.length;i++){var _11=_4[i],_12=_3.findIndex(this.fieldIdProperty,_11),_8=_3[_12],_13=_3[_12-1];var _14=_10?_10.find("name",_11):null;if(_14!=null){var _15=_14.visible==false;if(_15){_8.showIf=this.$18r}else{_8.showIf=null;_8.detail=false}
if(_14.width!=null&&(!isNaN(_14.width)||_14.width=="*"))
{_8.width=_14.width}
_8.frozen=_14.frozen;if(_14.title)_8.title=_14.title;if(_14.userFormula!=null)_8.userFormula=_14.userFormula;if(_14.userSummary!=null)_8.userSummary=_14.userSummary;if(_14.autoFitWidth!=_8.autoFitWidth)_8.autoFitWidth=_14.autoFitWidth}
var _16=_13!=null?_5.indexOf(_13):-1;if(_16!=-1){_5.addAt(_8,_16+1)}else{_5.addAt(_8,0)}}
return _5},isc.A.fieldStateChanged=function isc_Canvas_fieldStateChanged(){},isc.A.$31z=function isc_Canvas__lastVisibleFieldIndex(_1){if(_1==null)_1=this.completeFields;var _2=this.getVisibleFields(_1);if(_2.length==0)return-1;return _1.lastIndexOf(_2.last())},isc.A.getVisibleFields=function isc_Canvas_getVisibleFields(_1){var _2=[];for(var i=0;i<_1.length;i++){var _4=_1[i];if(_4==null)continue;if(this.fieldShouldBeVisible(_4,i))_2.add(_4)}
return _2},isc.A.fieldShouldBeVisible=function isc_Canvas_fieldShouldBeVisible(_1,_2){if(_1.showIf!=null){if(_1.showIf==this.$18r||_1.showIf==this.$301)return false;if(_1.showIf==this.$18q)return true;isc.Func.replaceWithMethod(_1,"showIf","list,field,fieldNum");if(!_1.showIf(this,_1,_2))return false}else if((this.fields!=null||!this.showHiddenFields)&&_1.hidden){return false}
return true},isc.A.setFieldValueMap=function isc_Canvas_setFieldValueMap(_1,_2){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(!_1)return;_1.valueMap=_2},isc.A.find=function isc_Canvas_find(_1){return this.data.find(_1)},isc.A.findAll=function isc_Canvas_findAll(_1){return this.data.findAll(_1)},isc.A.findIndex=function isc_Canvas_findIndex(_1){return this.data.findIndex(_1)},isc.A.findNextIndex=function isc_Canvas_findNextIndex(_1,_2,_3){return this.data.findNextIndex(_1,_2,null,_3)},isc.A.setDataSource=function isc_Canvas_setDataSource(_1,_2){if(isc.$cv)arguments.$cw=this;this.dataSource=_1||this.dataSource;if(this.dataSource==null&&!this.skipNullDataSourceCheck){this.logWarn("Invalid call to setDataSource() passing null.  (Set the property 'skipNullDataSourceCheck' on the component to avoid this warning.)  If you're having trouble with loading DataSources, please see the following FAQ: http://forums.smartclient.com/showthread.php?t=8159#aDSLoad")}
if(this.setFields)this.setFields(_2);if(this.dataSource){if(this.isA("DynamicForm"))this.setData({});else this.setData([])}
this.markForRedraw("bind")},isc.A.bind=function isc_Canvas_bind(_1,_2){this.setDataSource(_1,_2)},isc.A.getDataSource=function isc_Canvas_getDataSource(){if(isc.isA.String(this.dataSource)){if(this.serviceNamespace||this.serviceName){this.dataSource=this.lookupSchema()}else{var _1=isc.DS.get(this.dataSource);if(_1!=null)return _1;_1=this.getWindow()[this.dataSource];if(_1&&isc.isA.DataSource(_1))return(this.dataSource=_1)}}
return this.dataSource},isc.A.makeDataSourceFromFields=function isc_Canvas_makeDataSourceFromFields(_1){if(_1==null)_1=this.ID;var _2="",_3,_4;for(var _5 in isc.Canvas.$171k){if(this.isA(_5)){_2=isc.Canvas.$171k[_5].titleSuffix;_3=isc.Canvas.$171k[_5].criteriaBasePathSuffix;_4=isc.Canvas.$171k[_5].metaFields}}
if(_3){_3=_1+"."+_3}
var _6=_1+" "+_2,_7=_1+"$171l";if(isc.DataSource.get(_7)){var _8=2,_9;do{_9=_7+_8++}while(isc.DataSource.get(_9));_7=_9}
var _10={ID:_7,clientOnly:true,criteriaBasePath:_3,title:_6,pluralTitle:_6};var _11=this.fields||this.items;if(_11){var _12=[];for(var i=0;i<_11.length;i++){var _14=_11[i];if(!_14)continue;var _15=_14[this.fieldIdProperty],_16=(isc.isA.FormItem(_14)?_14.getType():_14.type)||"text";if(_16=="select")_16="text";var _17={name:_15,type:_16};if(_14.valueMap)_17.valueMap=_14.valueMap;_12.push(_17)}
_10.fields=_12}
if(_4){var _12=[];for(var i=0;i<_4.length;i++){var _15=_4[i],_16=isc.Canvas.$177q[_15];if(_16){_12.push({name:isc.Canvas.$177s(_15),title:"[meta] "+_15,type:_16,criteriaPath:_1+"."+_15})}}
if(_12.length>0)_10.fields.addList(_12)}
return isc.DS.create(_10)},isc.A.getDefaultData=function isc_Canvas_getDefaultData(){return[]},isc.A.setData=function isc_Canvas_setData(_1){this.data=_1},isc.A.lookupSchema=function isc_Canvas_lookupSchema(){var _1;if(this.serviceName)_1=isc.WebService.getByName(this.serviceName,this.serviceNamespace);else _1=isc.WebService.get(this.serviceNamespace);if((this.serviceNamespace||this.serviceName)&&_1==null){this.logWarn("Could not find WebService definition: "+(this.serviceName?"serviceName: "+this.serviceName:"")+(this.serviceNamespace?"   serviceNamespace: "+this.serviceNamespace:""))}
if(!isc.isA.String(this.dataSource)){this.logWarn("this.dataSource was not a String in lookupSchema");return}
var _2;if(_1)_2=_1.getSchema(this.dataSource);return _2||this.dataSource},isc.A.fieldValuesAreEqual=function isc_Canvas_fieldValuesAreEqual(_1,_2,_3){if(_1!=null){if(!isc.isAn.Object(_1))_1=this.getUnderlyingField(_1)||_1;if(_1.multiple&&isc.isAn.Array(_2)&&isc.isAn.Array(_3)){if(_2.length!=_3.length)return false;var _4=true;for(var i=0;i<_2.length;i++){if(!this.fieldValuesAreEqual(_1,_2[i],_3[i])){_4=false;break}}
return _4}
if(_1.type!=null){var _6=isc.SimpleType.getType(_1.type);if(_6&&_6.compareValues){return _6.compareValues(_2,_3,_1)==0}
if(isc.SimpleType.inheritsFrom(_1.type,"datetime")){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){return(isc.DateUtil.compareDates(_2,_3)==0)}}else if(isc.SimpleType.inheritsFrom(_1.type,"date")){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){return(isc.DateUtil.compareLogicalDates(_2,_3)==0)}}else if(_1.type=="valueMap"){if(isc.isAn.Array(_2)&&isc.isAn.Array(_3)){return _2.equals(_3)}else if(isc.isAn.Object(_2)&&isc.isAn.Object(_3)){for(var i in _2){if(_3[i]!=_2[i])return false}
for(var j in _3){if(_2[j]!=_3[j])return false}
return true}}}}
if(!isc.isAn.Object(_1)){if(isc.isA.Date(_2)&&isc.isA.Date(_3)){if(_2.logicalDate||_3.logicalDate)
return isc.DateUtil.compareLogicalDates(_2,_3)==0;else if(_2.logicalTime||_3.logicalTime)
return isc.Time.compareLogicalTimes(_2,_3)==0;else return _2.getTime()==_3.getTime()}}
if(_2===_3)return true;return false});isc.evalBoundary;isc.B.push(isc.A.setFields=function isc_Canvas_setFields(_1){_1=this.bindToDataSource(_1);this.updateFieldDependencies();this.fields=_1},isc.A.updateFieldDependencies=function isc_Canvas_updateFieldDependencies(){this.invalidateUserCache();this.rebuildAllFieldsFormulaVarMaps()},isc.A.getSerializeableFields=function isc_Canvas_getSerializeableFields(_1,_2){_1=_1||[];_1.addList(["zIndex","data"]);if(this.ID&&this.ID.startsWith("isc_"))_1.add("ID");if(this.dataSource)_1.addList(["fields","items"]);if(this.getClassName()!="Canvas"&&this.getClassName()!="Layout"){_1.add("children")}
return this.Super("getSerializeableFields",[_1,_2],arguments)},isc.A.addField=function isc_Canvas_addField(_1,_2,_3){if(_1==null)return;if(_3==null)_3=(this.fields||this.items||isc.$ac);_3=_3.duplicate();var _4=isc.Class.getArrayItem(_1.name,this.getAllFields(),this.fieldIdProperty);if(_4)_3.remove(_4);if(_2==null||_2>_3.length)_2=_3.length;_3.addAt(_1,_2);this.setFields(_3)},isc.A.removeField=function isc_Canvas_removeField(_1,_2){if(_2==null)_2=(this.fields||this.items||isc.$ac);_2=_2.duplicate();var _3=_1.name?_1.name:_1;_2.remove(_2.find("name",_3));this.setFields(_2)},isc.A.setCanEdit=function isc_Canvas_setCanEdit(_1){this.canEdit=_1},isc.A.filterData=function isc_Canvas_filterData(_1,_2,_3){this.$wo("filter",_1,_2,_3)},isc.A.fetchData=function isc_Canvas_fetchData(_1,_2,_3){if(!_3)_3={};_3=isc.DataSource.dupRequest(_3);if(!_3.textMatchStyle)_3.textMatchStyle="exact";this.$wo("fetch",_1,_2,_3)},isc.A.$71s=function isc_Canvas__canExportField(_1){return(this.canExport!=false&&_1.canExport!=false&&!_1.hidden)},isc.A.exportData=function isc_Canvas_exportData(_1,_2){if(!_1)_1={};_1=isc.DataSource.dupRequest(_1);var _3=this.getSort();if(_3){_1.sortBy=isc.DS.getSortBy(_3)}else if(this.sortField){_1.sortBy=(Array.shouldSortAscending(this.sortDirection)?"":"-")+this.sortField}
if(!_1.textMatchStyle){var _4=this.data.context;if(_4&&_4.textMatchStyle){_1.textMatchStyle=_4.textMatchStyle}}
if(!this.exportAll&&!_1.exportFields){var _5=this.exportFields,_6="",_7=this.getDataSource();if(!_5){_5=[];for(var i=0;i<this.fields.length;i++){var _9=this.fields.get(i),_10=_7?_7.getField(_9.name):null;if(this.$71s(_9)){if(_9.includeFrom||(_10&&_10.includeFrom)){var _11=_9.includeFrom?_9.includeFrom:_10.includeFrom;_6+=_9.name+"!"+_11+",";_5.add(_9.name)}else{_5.add(_9.name)}
if(_9.displayField&&!_9.optionDataSource){_5.add(_9.displayField)}}}}
if(_6.length>1){if(_6.endsWith(",")){_6=_6.substring(0,_6.length-1)}
_1.additionalOutputs=_6}
if(_5&&_5.length>0)_1.exportFields=_5}
var _12=_1.exportFields||this.exportFields||this.fields,_13={},_7=this.getDataSource();for(var i=0;i<_12.length;i++){var _9=_12[i];var _14;if(isc.isA.String(_9)){_14=_9;_9=this.getField(_14);if(!_9&&_7!=null)_9=_7.getField(_14)}
if(_9){_13[_9.name]=this.htmlUnescapeExportFieldTitle(_9.exportTitle||_9.title)}else{_13[_14]=this.htmlUnescapeExportFieldTitle(_14)}}
_1.exportFieldTitles=_13;if(_1.exportRawValues==null){_1.exportRawValues=true}
if(this.headerHeight&&this.exportHeaderHeights){_1.exportHeaderHeight=this.headerHeight}
var _15={};if(this.headerSpans&&_1.exportShowHeaderSpanTitles!==false){_1.exportHeaderSpans=this.prepareHeaderSpansForExport(this.headerSpans,this.getAllFields(),_15)}
_1.exportOtherFields={};for(var i=0;i<_12.length;++i){var _14=_12[i];if(!_15.hasOwnProperty(_14)){_1.exportOtherFields[_14]=_13[_14]}}
if(this.exportFieldWidths&&isc.isAn.Array(this.fields)&&this.getFieldWidth){_1.exportFieldPixelWidths=this.getFieldPixelWidths();_1.exportWidthScale=this.exportWidthScale}
if(_1.exportWrapHeaderTitles==null){_1.exportWrapHeaderTitles=this.exportWrapHeaderTitles}
if(this.exportFieldAlignments&&isc.isAn.Array(this.fields)){_1.exportAlignments=this.getFieldAlignments()}
if(_1.exportPropertyIdentifier==null){_1.exportPropertyIdentifier="name"}
var _16=isc.DS.compressNestedCriteria(isc.DS.combineCriteria(this.getImplicitCriteria(),this.getCriteria()));this.getDataSource().exportData(_16,_1,_2,this)},isc.A.getFieldPixelWidths=function isc_Canvas_getFieldPixelWidths(){var _1=[];for(var i=0;i<this.fields.length;i++){if(this.fields[i].exportFieldWidth===false){_1[i]=-1}else{_1[i]=this.getFieldWidth(i)}}
return _1},isc.A.getFieldAlignments=function isc_Canvas_getFieldAlignments(){var _1=[];for(var i=0;i<this.fields.length;i++){_1[i]=[]
var _3=this.fields[i],_4=isc.SimpleType.getBaseType(_3.type);if(_3.align){_1[i][0]=_3.align}else if(_4=="integer"||_4=="float"||_4=="date"||_4=="time"){_1[i][0]="right"}else{_1[i][0]="left"}
if(_3.cellAlign){_1[i][1]=_3.cellAlign}else{_1[i][1]=_1[i][0]}}
return _1},isc.A.setCriteria=function isc_Canvas_setCriteria(_1){if(this.data&&this.data.setCriteria){this.data.setCriteria(_1)}else{this.initialCriteria=_1}},isc.A.getCriteria=function isc_Canvas_getCriteria(_1){var _2;if(!this.isDrawn()&&(!this.data||this.data.getLength()==0)){_2=isc.shallowClone(this.initialCriteria)}else if(this.data&&this.data.getCriteria){if(isc.isA.Tree(this.data)){_2=isc.shallowClone(this.data.getCriteria(this.getDataSource()))}else{_2=isc.shallowClone(this.data.getCriteria())}}else _2=null;return _2},isc.A.doInitialFetch=function isc_Canvas_doInitialFetch(){var _1=false;if(this.autoFetchData&&!this.$p7&&this.fetchData){if(!this.dataSource){if(!this.suppressAutoFetchDataWarning){this.logWarn("autoFetchData is set, but no dataSource is specified, can't fetch")}}else{_1=!isc.RPCManager.startQueue();this.fetchData(this.getInitialCriteria(),null,this.getInitialFetchContext());this.$p7=true}}
return _1},isc.A.getInitialCriteria=function isc_Canvas_getInitialCriteria(){if(!this.initialCriteria)return null;return isc.shallowClone(this.initialCriteria)},isc.A.getInitialFetchContext=function isc_Canvas_getInitialFetchContext(){var _1={};_1.textMatchStyle=this.autoFetchTextMatchStyle;return _1},isc.A.getImplicitCriteria=function isc_Canvas_getImplicitCriteria(){if(!this.implicitCriteria)return null;return isc.shallowClone(this.implicitCriteria)},isc.A.setImplicitCriteria=function isc_Canvas_setImplicitCriteria(_1,_2){_2=!!_2;var d=this.data,_4=isc.isA.ResultSet(d)||isc.isA.ResultTree(d);if(!_4&&this.isGrouped&&this.originalData&&isc.isA.Tree(d)){d=this.originalData;_4=true}
if(!_1){if(this.implicitCriteria){delete this.implicitCriteria;if(_4){delete d.dbcImplicitCriteria;if(d.context)delete d.context.dbcImplicitCriteria}
_2=true}}else{if(_4){var _5=d.compareCriteria&&d.compareCriteria(_1,this.implicitCriteria);if(_5<0)_2=true;if(_5!=0){this.implicitCriteria=isc.shallowClone(_1);d.dbcImplicitCriteria=isc.shallowClone(_1);if(d.context)d.context.dbcImplicitCriteria=d.dbcImplicitCriteria}}else{this.implicitCriteria=isc.shallowClone(_1)}}
if(_2)this.invalidateCache()},isc.A.fetchRelatedData=function isc_Canvas_fetchRelatedData(_1,_2,_3,_4){var _5=isc.isA.DataSource(_2)?_2:isc.isA.String(_2)?isc.DS.get(_2):isc.isA.Canvas(_2)?_2.dataSource:null;if(!_5){this.logWarn("schema not understood: "+this.echoLeaf(_2));return}
var _6=this.getDataSource().getTreeRelationship(_5);var _7={};_7[_6.parentIdField]=_1[_6.idField];this.fetchData(_7,_3,_4)},isc.A.clearCriteria=function isc_Canvas_clearCriteria(_1,_2){this.$wo("filter",null,_1,_2)},isc.A.$wo=function isc_Canvas__filter(_1,_2,_3,_4){if(isc.$cv)arguments.$cw=this;_4=isc.DataSource.dupRequest(_4);if(this.implicitCriteria){if(!_4)_4={};_4.dbcImplicitCriteria=isc.shallowClone(this.implicitCriteria)}
_4=this.buildRequest(_4,_1,_3);if(_2&&(!isc.isA.PickListMenu||!isc.isA.PickListMenu(this))){if(!isc.DS.isAdvancedCriteria(_2)){var _2=isc.addProperties({},_2);if(_2.operator&&_2.criteria){_2._constructor="AdvancedCriteria"}else if(_2.fieldName&&_2.operator){_2={_constructor:"AdvancedCriteria",operator:"and",criteria:isc.isAn.Array(_2)?_2:[_2]}}}
if(isc.DS.isAdvancedCriteria(_2)){_2=isc.DataSource.resolveDynamicCriteria(_2,this.getRuleContext())}}
if(this.onFetchData!=null){this.onFetchData(_2,_4)}
var _5=this.getAllFields();if(_5!=null){for(var i=0;i<_5.length;i++){if(_5[i].includeFrom!=null&&this.getDataSource().getField(_5[i].name)==null)
{if(_4.additionalOutputs==null)_4.additionalOutputs="";else _4.additionalOutputs+=",";_4.additionalOutputs+=[_5[i].name,_5[i].includeFrom].join("!")}}}
if(_2==null){_2={}}else if(isc.isA.Class(_2)){_2=isc.DynamicForm.getFilterCriteria(_2)}
this.filterWithCriteria(_2,_4.operation,_4)},isc.A.filterWithCriteria=function isc_Canvas_filterWithCriteria(_1,_2,_3){_3.prompt=(_3.prompt||isc.RPCManager.fetchDataPrompt);var _4=_1;if(this.ignoreEmptyCriteria){_4=isc.DataSource.filterCriteriaForFormValues(_1)}else{_4=isc.addProperties({},_4)}
_4=isc.DS.checkEmptyCriteria(_4);var _5=this.getData();if(this.useExistingDataModel(_1,_2,_3)){var _6=this.updateDataModel(_4,_2,_3);if(_6!=null)_5=_6}else{_5=this.createDataModel(_4,_2,_3)}
if(this.implicitCriteria)_5.dbcImplicitCriteria=this.implicitCriteria;this.setData(_5);var _7=this.data;if(!_3.$326&&this.requestVisibleRows!=null&&_7!=null){var _8=_7.fetchDelay;_7.fetchDelay=0;this.requestVisibleRows();_7.fetchDelay=_8}},isc.A.shouldFilterLocalData=function isc_Canvas_shouldFilterLocalData(){if(this.filterLocalData!=null){return this.filterLocalData}else{return this.dataPath!=null}},isc.A.useExistingDataModel=function isc_Canvas_useExistingDataModel(_1,_2,_3){var _4=this.getData();if(!this.dataObjectSupportsFilter(_4)){_4=this.originalData;if(_4==null)return false;if(!this.dataObjectSupportsFilter(_4)){return false}}
var _5=_4.getOperationId("fetch");var _6;if(isc.isA.String(_2))_6=_2;else if(_2)_6=_2.ID;if(_6==null){var _7=_4.getDataSource(),_8=_7?_7.ID:null,_9=_2?_2.type:null;if(_9==null)_9="fetch";if(_8!=null)_6=_8+"_"+_9}
return _5==null||_5==_6},isc.A.createDataModel=function isc_Canvas_createDataModel(_1,_2,_3){if(this.logIsInfoEnabled("ResultSet")){this.logInfo("Creating new isc.ResultSet for operation '"+_2.ID+"' with filterValues: "+this.echoFull(_1),"ResultSet")}
var _4=this.getDataSource();if(!isc.isA.DataSource(_4)){this.logWarn("No DataSource or invalid DataSource specified, can't create data model"+this.getStackTrace());return null}
var _5=isc.addProperties({},this.dataProperties);if(_5.context)_3=isc.addProperties({},_5.context,_3);if(this.dataFetchDelay)_5.fetchDelay=this.dataFetchDelay;isc.addProperties(_5,{operation:_2,filter:_1,context:_3,componentId:this.ID});if(this.progressiveLoading===true||this.progressiveLoading===false){isc.addProperties(_5,{progressiveLoading:this.progressiveLoading})}
if(this.getSort!=null){var _6=this.getSort();if(_6!=null&&_6.length>0){_5.$73p=_6;_5.$39x=isc.DS.getSortBy(_5.$73p)}}
if(this.shouldFilterLocalData()){var _7=this.$900!=null?this.$900:this.data;if(isc.isAn.Array(_7)){_5.allRows=_7;_5.fetchMode="local";_5.useClientFiltering=true;_5.useClientSorting=true;_5.disableCacheSync=true;_5.neverDropCache=true}else{isc.logWarn("createDataModel method: data should be an array.")}}
return _4.getResultSet(_5)},isc.A.updateDataModel=function isc_Canvas_updateDataModel(_1,_2,_3){if(this.logIsDebugEnabled()){this.logDebug("Setting filter to: "+this.echoFull(_1))}
var _4=this.getData();if(!this.dataObjectSupportsFilter(_4))_4=this.originalData;if(!this.dataObjectSupportsFilter(_4)){return _4}
_4.setContext(_3);if(!_4.willFetchData(_1))delete _3.afterFlowCallback;_4.setCriteria(_1);return _4},isc.A.dataObjectSupportsFilter=function isc_Canvas_dataObjectSupportsFilter(_1){return(isc.ResultSet&&isc.isA.ResultSet(_1))||(isc.ResultTree&&isc.isA.ResultTree(_1))},isc.A.requestVisibleRows=function isc_Canvas_requestVisibleRows(){return this.data.get(0)},isc.A.getDataAsList=function isc_Canvas_getDataAsList(){var _1=this.getData?this.getData():this.data;if(_1==null)return null;if(!isc.isA.List(_1))_1=[_1];return _1},isc.A.invalidateCache=function isc_Canvas_invalidateCache(){if(this.data&&this.data.invalidateCache!=null)return this.data.invalidateCache();else if(this.isGrouped&&isc.isA.ResultSet(this.originalData)){this.originalData.setSort(this.data.getSort(),true);this.originalData.invalidateCache();this.regroup()}},isc.A.refreshData=function isc_Canvas_refreshData(_1){if(!this.getDataSource()){this.logError("In order to refresh data a dataSource has to be specified for the component '"+this.ID+"'.");return}
var _2=this.getData();if(!this.dataObjectSupportsFilter(_2))_2=this.originalData;if(_2&&_2.fetchIsPending&&_2.fetchIsPending()){this.logWarn("A fetch for this component is currently pending, please try again later.");return}
var _3=this.getDataSource(),_4=this.getVisibleRows(),_5=this.getSelectedState();var _6=_4[0]-_2.resultSize,_7=_4[1]+_2.resultSize;if(_6<0){_6=0}
var _8={startRow:_6,endRow:_7,sortBy:this.getSort(),showPrompt:false,componentId:this.getID()};var _9=_2.context;if(_9&&_9.textMatchStyle)_8.textMatchStyle=_9.textMatchStyle;if(_9&&_9.operationId)_8.operationId=_9.operationId;if(this.implicitCriteria){_8.dbcImplicitCriteria=isc.shallowClone(this.implicitCriteria)}
var _10=isc.clone(_2.getCriteria());_10=isc.DS.compressNestedCriteria(isc.DS.combineCriteria(_10,isc.shallowClone(this.implicitCriteria)));var _11=isc.clone(_2.getSort());_3.fetchData(this.getCriteria(),function(_23,_24,_25){var d=this.data;if(!this.dataObjectSupportsFilter(d))d=this.originalData;var _13=isc.DS.compressNestedCriteria(isc.DS.combineCriteria(d.getCriteria(),d.getImplicitCriteria()));var _14=d.getSort();var _15=d.compareCriteria(_13,_10)===0||d.compareSort(_14,_11);if(d&&d.fetchIsPending&&d.fetchIsPending()&&_15){this.logDebug("refreshData aborted as a fetch had been issued while waiting for refreshData to complete.");return}
var _16=_23.data,_17=[];_17.length=_23.totalRows;var _18=_23.startRow||0;for(var i=0;i<_16.length;i++){_17.set(_18+i,_16.get(i))}
var _20;if(isc.ResultSet&&isc.isA.ResultSet(d)){var _21=isc.addProperties({dataSource:this.getDataSource(),initialLength:_23.totalRows,initialData:_17,sortSpecifiers:this.getSort(),criteria:this.getCriteria(),context:d&&isc.isA.ResultSet(d)?d.context:null},this.dataProperties);_20=_3.getResultSet(_21)}else if(isc.ResultTree&&isc.isA.ResultTree(d)){_17.length=_23.endRow-_23.startRow;var _21=isc.addProperties({dataSource:this.getDataSource(),data:_17,defaultIsFolder:d?d.defaultIsFolder:null,criteria:this.getCriteria(),context:d&&isc.isA.ResultTree(d)?d.context:null},this.dataProperties);_20=_3.getResultTree(_21)}
var _22=this.preserveEditsOnSetData;this.preserveEditsOnSetData=true;this.setData(_20);this.preserveEditsOnSetData=_22;this.setSelectedState(_5);if(_1){_1(_23,_24,_25)}}.bind(this),_8)},isc.A.willFetchData=function isc_Canvas_willFetchData(_1,_2){var _3=this.data;if(_3&&_3.willFetchData==null&&this.originalData!=null)_3=this.originalData;if(_3&&_3.willFetchData!=null){return _3.willFetchData(_1,_2)}
return!this.shouldFilterLocalData()},isc.A.findByKey=function isc_Canvas_findByKey(_1){if(isc.isA.ResultSet(this.data))return this.data.findByKey(_1);else if(isc.isA.Tree(this.data))return this.data.findById(_1);else return null},isc.A.shouldSaveLocally=function isc_Canvas_shouldSaveLocally(){if(this.saveLocally!=undefined)return this.saveLocally;return(!this.dataSource||this.getFullDataPath()!=null||this.shouldFilterLocalData())},isc.A.addData=function isc_Canvas_addData(_1,_2,_3){return this.$wp("add",_1,_2,_3)},isc.A.updateData=function isc_Canvas_updateData(_1,_2,_3){return this.$wp("update",_1,_2,_3)},isc.A.removeData=function isc_Canvas_removeData(_1,_2,_3){return this.$wp("remove",_1,_2,_3)},isc.A.$wp=function isc_Canvas__performDSOperation(_1,_2,_3,_4){if(isc.$cv)arguments.$cw=this;if(this.shouldSaveLocally()||this.getDataSource()==null){return this.$186t(_1,_2)}
_4=isc.DataSource.dupRequest(_4);if(this.implicitCriteria)_4.dbcImplicitCriteria=this.implicitCriteria;_4=this.buildRequest(_4,_1);return this.getDataSource().performDSOperation(_1,_2,_3,_4)},isc.A.$186t=function isc_Canvas__updateLocalData(_1,_2){if(_1=="update"){var _3=this.getDataSource();if(!_3){isc.logWarn("Update by primary key cannot be performed without a DataSource.Modify the record directly instead");return}
if(this.originalData){var _4=this.originalData.get(_3.findByKeys(_2,this.originalData));isc.addProperties(_4,_2)}
var _5=this.data.get(_3.findByKeys(_2,this.data));isc.addProperties(_5,_2);if(this.originalData){this.dataChanged("update",null,null,_5)}else this.data.dataChanged();return}else if(_1=="add"){if(this.originalData){this.originalData.add(_2);this.dataChanged("add",null,null,_2)}else{if(isc.isA.Tree(this.data)){var _6=this.data.getParent(_2)||this.data.getRoot();this.data.add(_2,_6)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){this.data.allRows.add(_2);this.data.filterLocalData()}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{this.data.add(_2)}}
return}else if(_1=="remove"){if(this.originalData){this.originalData.remove(_2);this.dataChanged("remove",null,null,_2)}else{if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){this.data.allRows.remove(_2);this.data.filterLocalData()}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.remove(_2)}}
return}},isc.A.removeSelectedData=function isc_Canvas_removeSelectedData(_1,_2){_2=isc.DataSource.dupRequest(_2);var _3=this.getSelection(),_4=_3.length;if(isc.isA.ListGrid(this)&&this.canEdit&&this.selectOnEdit&&_4==0&&this.getEditRow()!=null&&this.getRecord(this.getEditRow())==null)
{this.discardEdits(this.getEditRow());return}
if(this.dataSource==null||this.shouldSaveLocally()){if(this.data){if(isc.ResultSet&&isc.isA.ResultSet(this.data)&&this.shouldSaveLocally()){if(this.data.allRows!=null){this.data.allRows.removeList(_3);this.data.filterLocalData()}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.removeList(_3)}
if(_1)this.fireCallback(_1)}
return}
var _5=this.buildRequest(_2,"remove",_1),_6=this.getDataSource();if(_4>0){this.deleteRecords(_3,_5.operation,_5,_6)}},isc.A.deleteRecords=function isc_Canvas_deleteRecords(_1,_2,_3,_4){isc.addProperties(_3,{prompt:(_3.prompt||isc.RPCManager.removeDataPrompt)});var _5=_4.getPrimaryKeyFieldNames(),_6=_4.getFieldNames();var _7=isc.RPCManager.startQueue();if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){var _9=_1[i];if(_9.$52e)continue;var _10=isc.applyMask(_9,_5);_3.oldValues=isc.applyMask(_9,_6);_4.performDSOperation(_2.type,_10,null,_3)}
if(!_7)isc.RPCManager.sendQueue()},isc.A.createSelectionModel=function isc_Canvas_createSelectionModel(_1){if(this.selection)this.destroySelectionModel();if(this.canSelectCells&&this.cellDataModel){var _2=[];if(this.numRows!=null){for(var i=0;i<this.numRows;i++){_2[i]={}}}}else{var _2=this.data}
var _4,_5={ID:this.getID()+"_selection",data:_2,target:this,selectionProperty:this.selectionProperty,simpleDeselect:this.simpleDeselect,dragSelection:this.canDragSelect};if(this.canSelectCells&&this.fields!=null)_5.numCols=this.fields.length;if(!this.canSelectCells){isc.addProperties(_5,{reselectOnUpdate:this.reselectOnUpdate,performReselectOnUpdate:function(_7){if(this.target&&this.target.performReselectOnUpdate){this.target.performReselectOnUpdate(_7)}else{this.Super("performReselectOnUpdate",arguments)}}})}
if(this.recordEnabledProperty!=null)_5.enabledProperty=this.recordEnabledProperty;if(this.recordCanSelectProperty!=null)_5.canSelectProperty=this.recordCanSelectProperty;var _6=this.$1483();if(_6!=null)_5.cascadeSelection=_6;if(this.data.getNewSelection){_4=this.data.getNewSelection(_5)}
if(_4==null){if(this.canSelectCells){if(this.cellRecordMode)_5.cellRecordMode=this.cellRecordMode;_4=isc.CellSelection.create(_5)}else{_4=isc.Selection.create(_5)}}
this.selection=_4},isc.A.$1483=function isc_Canvas__shouldCascadeSelection(){return this.cascadeSelection},isc.A.destroySelectionModel=function isc_Canvas_destroySelectionModel(){if(!this.selection)return;if(this.selection.destroy)this.selection.destroy();delete this.selection},isc.A.removeSelectionMarkers=function isc_Canvas_removeSelectionMarkers(_1){var _2=true;if(!isc.isAn.Array(_1)){_1=[_1];_2=false}
_1.clearProperty(this.selectionProperty||this.selection?this.selection.selectionProperty:null);return _2?_1:_1[0]},isc.A.getSelection=function isc_Canvas_getSelection(_1,_2,_3){if(!this.selection)return[];if(this.canSelectCells){return this.selection.getSelection(null,_3)}else{return this.selection.getSelection(_1,_3)}},isc.A.getSelectedRecords=function isc_Canvas_getSelectedRecords(_1){return this.getSelection(_1)},isc.A.getSelectedRecord=function isc_Canvas_getSelectedRecord(){if(!this.selection)return null;return this.selection.getSelectedRecord()},isc.A.getSelectionObject=function isc_Canvas_getSelectionObject(){return this.selection},isc.A.isSelected=function isc_Canvas_isSelected(_1){if(!_1||!this.selection)return false;return this.selection.isSelected(_1)},isc.A.isPartiallySelected=function isc_Canvas_isPartiallySelected(_1){if(!_1||!this.selection)return false;return this.selection.isPartiallySelected(_1)},isc.A.selectRecord=function isc_Canvas_selectRecord(_1,_2,_3){this.selectRecords(_1,_2,_3)},isc.A.selectSingleRecord=function isc_Canvas_selectSingleRecord(_1){this.selection.deselectAll();this.selectRecord(_1)},isc.A.deselectRecord=function isc_Canvas_deselectRecord(_1,_2){this.selectRecord(_1,false,_2)},isc.A.selectRecords=function isc_Canvas_selectRecords(_1,_2,_3){if(_2==null)_2=true;if(!isc.isAn.Array(_1))_1=[_1];if(isc.isA.ResultSet(this.data)&&!this.data.lengthIsKnown()){this.logWarn("ignoring attempt to select records while data is loading");return}
for(var i=0;i<_1.length;i++){if(_1[i]==null)continue;if(isc.isA.Number(_1[i])){var _5=_1[i];_1[i]=this.getRecord(_5,_3)}}
var _6=this.getSelectionObject(_3);if(_6){_6.selectList(_1,_2,null,this);this.fireSelectionUpdated()}},isc.A.deselectRecords=function isc_Canvas_deselectRecords(_1,_2){this.selectRecords(_1,false,_2)},isc.A.selectAllRecords=function isc_Canvas_selectAllRecords(){this.selection.selectAll();this.fireSelectionUpdated()},isc.A.deselectAllRecords=function isc_Canvas_deselectAllRecords(){this.selection.deselectAll();this.fireSelectionUpdated()},isc.A.selectRange=function isc_Canvas_selectRange(_1,_2,_3){this.selection.selectRange(_1,_2,_3);this.fireSelectionUpdated()},isc.A.deselectRange=function isc_Canvas_deselectRange(_1,_2){this.selection.selectRange(_1,_2);this.fireSelectionUpdated()},isc.A.anySelected=function isc_Canvas_anySelected(){return this.selection&&this.selection.anySelected()},isc.A.getSelectionLength=function isc_Canvas_getSelectionLength(){return this.selection?this.selection.getLength():0},isc.A.getRecord=function isc_Canvas_getRecord(_1,_2){var _3=isc.isA.List(this.data)||isc.isA.ResultSet(this.data);return _3?this.data.get(_1):this.data},isc.A.fireSelectionUpdated=function isc_Canvas_fireSelectionUpdated(){var _1=(this.getRuleScopeComponent?this.getRuleScopeComponent():null);if(this.selectionUpdated||(_1!=null&&(_1.ruleScope||_1.isRuleScope))){var _2=this.getSelection(null,null,true),_3=(_2.length>0?_2[0]:null);if(this.selectionUpdated)this.selectionUpdated(_3,_2);if(_1!=null&&isc.isA.DataBoundComponent(this)){var _4=this,_5=_4.getDataSource(),_6=_4.getLocalId(),_7=_4.hasStableLocalID()||(_4.editNode!=null);if(_3){_3=this.getCleanRecordData(_3);delete _3.$29m}
if(_5)_1.provideRuleContext(_5.getID(),_3,this,_7);if(_7){_1.provideRuleContext(_6+".selectedRecord",_3,this,true);_1.provideRuleContext(_6+".anySelected",(_3!=null),this,true);_1.provideRuleContext(_6+".multiSelected",(_3?_2.length>1:false),this,true);_1.provideRuleContext(_6+".numSelected",(_3?_2.length:0),this,false)}}}},isc.A.getHiliteIconLeftPadding=function isc_Canvas_getHiliteIconLeftPadding(_1){return(_1.hiliteIconLeftPadding!=null?_1.hiliteIconLeftPadding:this.hiliteIconLeftPadding||0)},isc.A.getHiliteIconRightPadding=function isc_Canvas_getHiliteIconRightPadding(_1){return(_1.hiliteIconRightPadding!=null?_1.hiliteIconRightPadding:this.hiliteIconRightPadding||0)},isc.A.getHiliteIconWidth=function isc_Canvas_getHiliteIconWidth(_1){return(_1.hiliteIconWidth!=null?_1.hiliteIconWidth:(_1.hiliteIconSize!=null?_1.hiliteIconSize:(this.hiliteIconWidth!=null?this.hiliteIconWidth:this.hiliteIconSize)))},isc.A.getHiliteIconHeight=function isc_Canvas_getHiliteIconHeight(_1){return(_1.hiliteIconHeight!=null?_1.hiliteIconHeight:(_1.hiliteIconSize!=null?_1.hiliteIconSize:(this.hiliteIconHeight!=null?this.hiliteIconHeight:this.hiliteIconSize)))},isc.A.getHiliteIconPosition=function isc_Canvas_getHiliteIconPosition(_1){return _1.hiliteIconPosition!=null?_1.hiliteIconPosition:this.hiliteIconPosition},isc.A.getHiliteIconHTML=function isc_Canvas_getHiliteIconHTML(_1,_2){var _3=_2.imageURLPrefix,_4=this.getHiliteIconWidth(_2),_5=this.getHiliteIconHeight(_2),_6=this.getHiliteIconLeftPadding(_2),_7=this.getHiliteIconRightPadding(_2);var _8=isc.Canvas.$xq(_1,_3,null,_4,_5,_6,_7,null,this);return _8},isc.A.getHilites=function isc_Canvas_getHilites(){return this.hilites},isc.A.setHilites=function isc_Canvas_setHilites(_1){this.hilites=_1;this.$63j(this.hilites)},isc.A.getHiliteState=function isc_Canvas_getHiliteState(_1){var _2=this.getHilites();if(_2==null)return null;if(_1)return _2;return"("+isc.JSON.encode(_2,{dateFormat:"logicalDateConstructor",prettyPrint:false})+")"},isc.A.setHiliteState=function isc_Canvas_setHiliteState(_1){if(_1==null)this.setHilites(null);var _2=eval(_1);this.setHilites(_2)},isc.A.$63j=function isc_Canvas__setupHilites(_1,_2){if(_1!=null){this.$63k=this.$63k||0;var _3={},_4=[];for(var i=0;i<_1.length;i++){var _6=_1[i].id;if(_6!=null){if(_3[_6]){this.logWarn("This component has more than one hilite object with the same specified id:"+_6+". Hilite IDs must be unique within a component.","hiliting")}else{_3[_6]=true;var _7=parseInt(_6);if(_6==_7){this.$63k=Math.max(this.$63k,(_7+1))}}}else{_4.add(_1[i])}}
for(var i=0;i<_4.length;i++){_4[i].id=this.$63k++}
this.$58b=_1.makeIndex("id",-1)}
if(!_2)this.applyHilites()},isc.A.$144l=function isc_Canvas__storeFormulaFieldValues(_1,_2,_3,_4){var _5=[],_6=[];for(var i=0;i<_2.length;i++){var _8=this.getFormulaFunction(_2[i]);if(_8){_5.add(_2[i]);_6.add(_8)}}
if((_4&&isc.getKeys(_4).length>0)||_5.length>0)
{for(var j=0;j<_1.length;j++){var _10=_1[j];for(var i=0;i<_5.length;i++){var _11=_5[i],_12=_11[this.fieldIdProperty];if(this.shouldApplyUserFormulaAfterSummary(_11)&&this.shouldShowUserFormula(_11,_10))
{if(!_3||!_10.$52e){this.storeFormulaFieldValue(_11,_10,_6[i])}
if(j==0){delete _4[_12]}}}
for(var _13 in _4){delete _10[_13]}}}
for(var _13 in _4){delete this.$120o[_13]}},isc.A.$144m=function isc_Canvas__storeSummaryFieldValues(_1,_2,_3,_4){var _5=[],_6=[];for(var i=0;i<_2.length;i++){if(_2[i].userSummary!=null){_5.add(_2[i]);_6.add(this.getSummaryFunction(_2[i]))}}
if((_4&&isc.getKeys(_4).length>0)||_5.length>0)
{for(var j=0;j<_1.length;j++){var _9=_1[j];for(var i=0;i<_2.length;i++){var _10=_2[i],_11=_10[this.fieldIdProperty];if(_10.userSummary){if(!_3||!_9.$52e){this.storeSummaryFieldValue(_10,_9,_6[i])}
if(j==0){delete _4[_11]}}}
for(var _12 in _4){delete _9[_12]}}}
for(var _12 in _4){delete this.$120n[_12]}},isc.A.$144n=function isc_Canvas__partitionSummaryHiliteRules(_1,_2){var _3={nonSummaryAffecting:[],simpleSummaryAffecting:[],summaryDependentSummaryAffecting:[]};if(_1==null||this.fields==null)return _3;var _4=this,_5=this.$134o();for(var i=0;i<_1.length;i++){var _7=this.getHilite(_1[i]);if(!_7||_7.disabled)continue;var _8=_7.fieldName||(this.fields?this.fields.getProperty("name"):[]);if(!isc.isAn.Array(_8))_8=[_8];var _9=isc.DataSource?isc.DataSource.getCriteriaFields(_7.criteria,this.dataSource):null;if(_9)_9=_9.filter(function(_10){var _10=_4.getField(_10);return _10&&_10.userSummary!=null});var _11=this.$144i;for(var j=0;j<_8.length;j++){var _13=_5[_8[j]]||{};for(var _14 in _13){var _15=_13[_14];if(_15.userSummary==null||!this.shouldIncludeHiliteInSummaryField(_14,_8[j]))
{continue}
if(_11==this.$144i){_11=this.$144j}
if(!_9||_9.length>0){_11=this.$144k;_2[_14]=_15}}}
_3[_11].push(_7)}
return _3});isc.evalBoundary;isc.B.push(isc.A.applyHilites=function isc_Canvas_applyHilites(_1){var _2=this.hilites,_3=this.data;if(_2&&!this.$58b)this.$63j(_2,true);if(isc.isA.ResultSet(_3))_3=_3.getAllLoadedRows();if(isc.isA.Tree(_3))_3=_3.getAllItems();_3.setProperty(this.hiliteMarker,null);var _4=this.getAllFields();if(_4==null)_4=[];_4.setProperty("$58c",null);var _5=this.isGrouped&&!this.showGroupSummaryInHeader;var _6=isc.addProperties({},this.$120o);this.$144l(_3,_4,_5,_6);var _7=this,_8={},_9=function(_12){_7.applyHilite(_12,_3)},_10=this.$144n(_2,_8);_10.simpleSummaryAffecting.map(_9);var _11=isc.addProperties({},this.$120n);this.$144m(_3,_4,_5,_11);_10.nonSummaryAffecting.map(_9);if(_10.summaryDependentSummaryAffecting.length>0){_10.summaryDependentSummaryAffecting.map(_9);this.invalidateUserCache(null,isc.getValues(_8));this.$144m(_3,_4,_5,{})}
if(!_1)this.redrawHilites()},isc.A.storeFormulaFieldValue=function isc_Canvas_storeFormulaFieldValue(_1,_2,_3){var _4=_1[this.fieldIdProperty];if(this.$120o==null)this.$120o={};if(!this.$120o[_4])this.$120o[_4]=true;this.getFormulaFieldValue(_1,_2,_3)},isc.A.storeSummaryFieldValue=function isc_Canvas_storeSummaryFieldValue(_1,_2,_3){var _4=_1[this.fieldIdProperty];if(this.$120n==null)this.$120n={};if(!this.$120n[_4])this.$120n[_4]=true;this.getSummaryFieldValue(_1,_2,_3)},isc.A.getHilite=function isc_Canvas_getHilite(_1){if(isc.isAn.Object(_1))return _1;if(this.hilites==null)return null;if(!this.$58b&&this.hilites){this.$63j(this.hilites)}
var _2=this.$58b[_1];if(_2==null)_2=this.hilites[_1];return _2},isc.A.applyHilite=function isc_Canvas_applyHilite(_1,_2,_3){var _4=this.getRecordsMatchingHilite(_1,_2);if(_4==null||_4.length==0)return;_1=this.getHilite(_1);var _3=_3||_1.fieldName;if(_3==null)_3=this.fields?this.fields.getProperty("name"):[];var _5=isc.isAn.Array(_3)?_3:[_3];if(this.logIsDebugEnabled("hiliting")){this.logDebug("applying hilite: "+this.echo(_1)+", to fields: "+_5,"hiliting")}
for(var j=0;j<_5.length;j++){var _7=this.getField(_5[j]);for(var i=0;i<_4.length;i++){var _9=_4[i];this.hiliteRecord(_9,_7,_1)}}},isc.A.getRecordsMatchingHilite=function isc_Canvas_getRecordsMatchingHilite(_1,_2){_1=this.getHilite(_1);if(!_1.criteria)return;if(_1.disabled)return;var _3=[],_4=this.getDataSource();if(_4){var _5=_4.dropUnknownCriteria;var _6=_4.strictSQLFiltering;_4.dropUnknownCriteria=false;var _7;if(this.strictSQLFilteringForHilites!==_7)_4.strictSQLFiltering=this.strictSQLFilteringForHilites;_3=this.getDataSource().applyFilter(_2,_1.criteria);_4.dropUnknownCriteria=_5;if(this.strictSQLFilteringForHilites!==_7)_4.strictSQLFiltering=_6}else{_3=this.unboundApplyFilter(_2,_1.criteria)}
if(this.logIsDebugEnabled("hiliting")){this.logDebug("applying filter: "+this.echoFull(_1.criteria)+", produced matches: "+isc.echoLeaf(_3),"hiliting")}
return _3},isc.A.unboundApplyFilter=function isc_Canvas_unboundApplyFilter(_1,_2){var _3=[];if(_1){if(_2){for(var _4=0;_4<_1.length;_4++){if(!_2.operator||this.evaluateCriterion(_1[_4],_2)){_3.add(_1[_4])}}}else{_3=_1}}
return _3},isc.A.evaluateCriterion=function isc_Canvas_evaluateCriterion(_1,_2){var _3=isc.DataSource.$57z[_2.operator];if(_3==null){isc.logWarn("Attempted to use unknown operator "+_2.operator);return false}
var _4=this.getDataSource();var _5=this.getField(_2.fieldName);var _6=isc.DataSource.getPathValue(_1,_2.fieldName,_5);var _7=_5&&(isc.SimpleType.inheritsFrom(_5.type,"date")||isc.SimpleType.inheritsFrom(_5.type,"datetime"));var _8=function(_13){if(_7&&!isc.isA.Date(_13)&&isc.DateUtil.isRelativeDate(_13)){return isc.DateUtil.getAbsoluteDate(_13)}
return _13}
var _9={value:_8(_2.value),start:_8(_2.start),end:_8(_2.end)};if(_3.valueType==="fieldName"){var _10=this.getField(_9.value);var _11=isc.DataSource.getPathValue(_1,_9.value,_10);_9.otherValue=_8(_11)}else if(_3.valueType==="criteria"){_9.criterion=_2;_9.record=_1}
var _12=_3.condition(_2.fieldName,_6,_9,_4||this,_7);return(_3.negate?!_12:_12)},isc.A.compareValues=function isc_Canvas_compareValues(_1,_2,_3,_4){if(isc.isA.Date(_1)&&isc.isA.Date(_2)){if(_1.logicalDate||_2.logicalDate){return isc.DateUtil.compareLogicalDates(_1,_2)}else{return isc.DateUtil.compareDates(_1,_2)}}else{var _5=_4&&_1.toLowerCase?_1.toLowerCase():_1,_6=_4&&_2.toLowerCase?_2.toLowerCase():_2;if(_5==null&&_6!=null)return 1;if(_5!=null&&_6==null)return-1;return _5>_6?-1:(_5<_6?1:(_5==_6?0:2))}},isc.A.hiliteRecord=function isc_Canvas_hiliteRecord(_1,_2,_3){if(!_2)return;var _4=_1[this.hiliteMarker];if(_4==null)_4=_1[this.hiliteMarker]=this.$578++;var _5=_2.$58c=_2.$58c||{},_6=_5[_4];if(_6==null)_5[_4]=_3.id;else if(isc.isAn.Array(_6))_6.add(_3.id);else _5[_4]=[_6,_3.id]},isc.A.getHiliteCSSText=function isc_Canvas_getHiliteCSSText(_1){var _1=this.getHilite(_1);if(_1==null)return;var _2=_1.cssText||"";if(_2==""){if(_1.textColor)_2+="color:"+_1.textColor+";";if(_1.backgroundColor)_2+="background-color:"+_1.backgroundColor+";";if(_2=="")_2==null}
return _2||_1.style},isc.A.addHiliteCSSText=function isc_Canvas_addHiliteCSSText(_1,_2,_3){if(!_1)return _3;var _4=_1[this.hiliteMarker],_2=this.getField(_2);if(!_2||!_2.$58c)return _3;var _5=_2.$58c[_4];if(_5==null)return _3;if(!isc.isAn.Array(_5)){this.$579[0]=_5;_5=this.$579}
for(var i=0;i<_5.length;i++){var _7=this.getHiliteCSSText(_5[i]);if(_7!=null){_3=_3?_3+isc.semi+_7:_7}}
return _3},isc.A.addObjectHilites=function isc_Canvas_addObjectHilites(_1,_2,_3){if(!this.hilites||!_1)return _2;var _4;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_4=this.$579}
if(_4&&_4.length>0){for(var i=0;i<_4.length;i++){var _6,_7,_8;var _9=_4[i];if(isc.isA.String(_9))_6=_9;else _6=(_9!=null?_9[this.hiliteProperty]:null);_7=this.getHilite(_6);if(_7!=null&&!_7.disabled){_8=_7.cssText||_7.style;var _10=[];if(_7)
_10=isc.isAn.Array(_7.fieldName)?_7.fieldName:[_7.fieldName];var _11=(!_7.fieldName||!_3||_10.contains(_3.name));if(_8!=null&&_8!=isc.emptyString&&_11){if(_2==null)_2=_8;else _2+=isc.semi+_8}}}}
return _2},isc.A.getFieldHilites=function isc_Canvas_getFieldHilites(_1,_2){if(!_1||!_2)return null;if(_1[this.hiliteProperty]!=null){var _3=this.getHilite(_1[this.hiliteProperty]),_4;if(_3)
_4=isc.isAn.Array(_3.fieldName)?_3.fieldName:[_3.fieldName];if(_4&&_4.contains(_2.name))return[_3];else return null}
if(_1[this.hiliteMarker]!=null){var _5=_1[this.hiliteMarker];if(!_2.$58c)return null;else return _2.$58c[_5]}},isc.A.applyHiliteHTML=function isc_Canvas_applyHiliteHTML(_1,_2){if(!this.hilites)return _2;var _3,_4,_5;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_1=this.$579}
for(var i=0;i<_1.length;i++){_5=_1[i];_3=this.getHilite(_5);if(_3!=null){if(_3.htmlValue!=null)_2=_3.htmlValue;if(!_3.disabled){if(_3.replacementValue){_2=_3.replacementValue}
_4=_3.htmlBefore;if(_4!=null&&_4.length>0){_2=_4+_2}
_4=_3.htmlAfter;if(_4!=null&&_4.length>0){_2=_2+_4}
var _7=_3.htmlOpposite,_8=_3.styleOpposite||this.styleOpposite;if(_7){if(!isc.Browser.isIE){_2="<nobr><div class='"+_8+"' style='float:left'>&nbsp;"+_7+"&nbsp;</div>"+_2+"</nobr>"}else{_2="<nobr><table role='presentation' align=left><tr><td class='"+_8+"'>"+_7+"</td></tr></table>"+_2+"</nobr>"}}}}}
return _2},isc.A.applyHiliteIcon=function isc_Canvas_applyHiliteIcon(_1,_2,_3){if(!this.hilites||!_2)return _3;var _4,_5,_6;if(!isc.isAn.Array(_1)){this.$579[0]=_1;_1=this.$579}
for(var i=0;i<_1.length;i++){_6=_1[i];_4=this.getHilite(_6);if((_4!=null)&&_4.icon){_5=this.getHiliteIconHTML(_4.icon,_2);var _8=this.getHiliteIconPosition(_2);if(_8=="after"){_3=_3+_5}else if(_8=="replace"){_3=_5}else{_3=_5+_3}}}
return _3},isc.A.enableHilite=function isc_Canvas_enableHilite(_1,_2){if(_2==null)_2=true;var _3=this.getHilite(_1);if(_3==null)return;_3.disabled=!_2;this.redrawHilites()},isc.A.disableHilite=function isc_Canvas_disableHilite(_1){this.enableHilite(_1,false)},isc.A.enableHiliting=function isc_Canvas_enableHiliting(_1){if(_1==null)_1=true;if(this.hilites)this.hilites.setProperty("disabled",!_1);this.redrawHilites()},isc.A.disableHiliting=function isc_Canvas_disableHiliting(){this.enableHiliting(false)},isc.A.redrawHilites=function isc_Canvas_redrawHilites(){this.markForRedraw()},isc.A.getHiliteCriteriaFields=function isc_Canvas_getHiliteCriteriaFields(){var _1=this.getAllFields();if(!_1)return;var _2=_1?_1.findAll("canHilite",false):null;if(_2&&_2.length>0){_1.removeList(_2)}
for(var i=0;i<_1.length;i++){if(_1[i].dataPath){_1[i]=isc.addProperties({},_1[i],{dataPath:this.$840(_1[i].dataPath)})}}
return _1},isc.A.editHilites=function isc_Canvas_editHilites(){var _1=this.getDataSource(),_2=_1?isc.getValues(_1.getFields()).duplicate():[],_3=(this.getHiliteCriteriaFields()||[]).duplicate(),_4=[];for(var i=0;i<_3.length;i++){var _6=_3[i];if(_6.userSummary&&this.fieldIsVisible(_6.name)){var _7=_6.userSummary.summaryVars;for(var _8 in _7){var _9=_7[_8];if(!_4.contains(_9))_4.add(_9)}}}
_2.setProperty("showInSimpleEditor",false);_3.setProperty("showInSimpleEditor",true);for(var i=0;i<_3.length;i++){var _6=_3[i],_10=this.fieldIsVisible(_6.name),_11=_4.contains(_6.name),_12=_2.find("name",_6.name);if(!_12){_12=isc.addProperties({},_6);_2.add(_12)}
if(_6.canHilite!=null)_12.canHilite=_6.canHilite;_12.title=this.getFieldTitle?this.getFieldTitle(_6):_6.title||_6.name;_12.allowAsAdvancedTarget=(_10||_11);if(_12.canFilter==null)_12.canFilter=_6.canFilter;_12.showInSimpleEditor=_12.allowAsAdvancedTarget&&(_12.canFilter!=false||_12.canFilterOnClient)}
var _13=isc.DataSource.create({inheritsFrom:this.getDataSource(),isHiliteCriteriaDS:true,fields:_2});if(this.hiliteWindow){this.hiliteEditor.setDataSource(_13);this.hiliteEditor.rootDataSource=this.getDataSource();this.hiliteEditor.clearHilites();this.hiliteEditor.setHilites(this.getHilites());this.hiliteEditor.setHiliteIcons(this.hiliteIcons);this.hiliteWindow.show();return}
var _14=this,_15=this.addAutoChild("hiliteEditor",{dataSource:_13,rootDataSource:this.getDataSource(),hilites:this.getHilites(),hiliteIcons:this.hiliteIcons,hiliteCanReplaceValue:this.hiliteCanReplaceValue,hiliteReplaceValueFieldTitle:this.hiliteReplaceValueFieldTitle}),_16=this.addAutoChild("hiliteWindow",{title:this.editHilitesDialogTitle,items:[_15]});_16.centerInPage();_16.show();return _16},isc.A.$1024=function isc_Canvas__handleHilitesChanged(_1){this.setHilites(_1)},isc.A.transferRecords=function isc_Canvas_transferRecords(_1,_2,_3,_4,_5){if(!this.$67u("transferRecords",_1,_2,_3,_4,_5)){return}
if(!isc.isAn.Array(_1))_1=[_1];if(isc.isAn.Array(this.data)&&this.data.length==0&&this.dataSource&&!this.shouldSaveLocally())
{this.fetchData(null,null,{$326:true});this.data.setFullLength(0)}
if(_4==this){if(_3!=null&&!this.isGrouped)this.data.slideList(_1,_3)}else{_4.$1779(_1);var _6=this.getDataSource();var _7=_4.getDataSource();if(_6&&_6==_7&&_4.dragDataAction==isc.Canvas.MOVE&&!(_4.shouldSaveLocally()||this.shouldSaveLocally()))
{var _8=isc.rpc.startQueue();for(var i=0;i<_1.length;i++){var _10={};var _11=_6.getPrimaryKeyFieldNames();for(var j=0;j<_11.length;j++){_10[_11[j]]=_1[i][_11[j]]}
isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));this.updateDataViaDataSource(_10,_7,null,_4)}
if(!_8)isc.rpc.sendQueue()}else{var _13=true;if(_7!=null&&_6!=null){var _14=_6.getPrimaryKeyFieldNames(),_13=true;if(_14){for(var i=0;i<_14.length;i++){if(_7.getField(_14[i])==null){_13=false;break}}}}
if(_13){if(_6!=null)this.$67k[0].selectRecords=true;else this.$178a(_1)}
if(_6){this.$67o=isc.rpc.startQueue();for(var i=0;i<_1.length;i++){if(_1[i].$52e)continue;var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(_6!=_7){var _15=_6.getForeignKeysByRelation(_10,_7);var _16=false;isc.addProperties(_10,_15);if(_6.titleField&&_7&&_7.titleField&&_6.titleField!=_7.titleField){var _17;if(_10[_6.titleField]===_17){_10[_6.titleField]=_10[_7.titleField]}}}
this.$61d(_10,_7,_4,_15)}}else{if(this.isGrouped){for(var i=0;i<_1.length;i++){var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(!this.$61e(_10)){this.$52u(this.groupTree,_10,true);this.originalData.add(_10)}}}else{for(var i=0;i<_1.length;i++){var _10={};isc.addProperties(_10,_1[i]);isc.addProperties(_10,this.getDropValues(_10,_7,_2,_3,_4));if(_3!=null){if(this.$61d(_10,null,_4,null,_3)){_3++}}else{this.$61d(_10,null,_4)}}}}}}
if(this.canReorderRecords&&this.getSort){var _18=this.getSort();if(_18&&_18.length>0)this.unsort()}
if(!this.$67l){isc.Log.logDebug("Invoking transferDragData from inside transferRecords - no server queries needed?","dragDrop");_4.transferDragData(this.$67n,this);if(_6){if(!this.$67o)isc.rpc.sendQueue()}}
this.$67m=false},isc.A.$67u=function isc_Canvas__storeTransferState(_1,_2,_3,_4,_5,_6){if(!isc.isAn.Array(this.$67k))this.$67k=[];if(this.$67l&&this.$67l!=0){isc.logWarn("transferRecords was invoked but the prior transfer is not yet complete - \
                     the transfer will be queued up to run after the current transfer");this.$67k.add({implementation:_1,dropRecords:_2,targetRecord:_3,index:_4,sourceWidget:_5,callback:_6});return false}
this.$67k.addAt({implementation:_1,dropRecords:_2,targetRecord:_3,index:_4,sourceWidget:_5,callback:_6},0);this.$67m=true;this.$67n=[];this.$67l=0;return true},isc.A.$178a=function isc_Canvas__selectDropRecords(_1){if(this.selectionType==isc.Selection.MULTIPLE||this.selectionType==isc.Selection.SIMPLE)
{this.selection.deselectAll();this.selection.selectList(_1,true,null,this,true)}else if(this.selectionType==isc.Selection.SINGLE){this.selection.selectSingle(_1[0])}
this.fireSelectionUpdated()},isc.A.$1779=function isc_Canvas__deselectDropRecordsToMove(_1){if(this.dragDataAction==isc.Canvas.MOVE){var _2=this.selection;if(_2&&_2.deselectList){_2.deselectList(_1,this)}}},isc.A.updateDataViaDataSource=function isc_Canvas_updateDataViaDataSource(_1,_2,_3,_4){var _5=this;if(this.updateOperation){if(_3==null)_3={};isc.addProperties(_3,{operationId:this.updateOperation})}
if(!this.preventDuplicates){if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3);return}
var _6=this.getCleanRecordData(_1);if(this.data.find(_6,null,Array.DATETIME_VALUES)){isc.Log.logDebug("Found client-side duplicate, skipping update for '"+_1[isc.firstKey(_1)]+"'","dragDrop");this.$67n.add(this.getCleanRecordData(_1))}else{if(this.data.allMatchingRowsCached()){if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3)}else{isc.Log.logDebug("Incrementing dup query count: was "+_5.$67l,"dragDrop");this.$67l++;_2.fetchData(_6,function(_7,_8,_9){if(_8&&_8.length>0){isc.Log.logDebug("Found server-side duplicate, skipping update for '"+_1[isc.firstKey(_1)]+"'","dragDrop");_5.$67n.add(_5.getCleanRecordData(_8[0]))}else{if(!_4.$67v)_4.$67v=0;_4.$67v++;_2.updateData(_1,function(_7,_8,_9){_4.$67w(_7,_8,_9)},_3)}
isc.Log.logDebug("Decrementing dup query count: was "+_5.$67l,"dragDrop");if(--_5.$67l==0&&!_5.$67m){if(_4.dragDataAction==isc.Canvas.MOVE){isc.Log.logDebug("Invoking transferDragData from inside callback","dragDrop");_4.transferDragData(_5.$67n,_5);delete _5.$67n;if(!_5.$67o)isc.rpc.sendQueue()}}},{sendNoQueue:true})}}},isc.A.$61d=function isc_Canvas__addIfNotDuplicate(_1,_2,_3,_4,_5,_6){var _7=this.getDataSource(),_8,_9=this,_10={};if(this.addOperation){isc.addProperties(_10,{operationId:this.addOperation})}
if(_7)_8=_7.getPrimaryKeyFields();if(_7){var _11;if(_8&&isc.firstKey(_8)!=null){for(var _12 in _8){if(_8[_12].type=="sequence"){_11=true;break}}}
if(_11){var _13;for(var _12 in _8){_1[_12]=_13}
if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)});return true}}
if(!this.preventDuplicates){if(_7){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10)}else{if(isc.Tree&&isc.isA.Tree(this.data)){this.data.add(_1,_6,_5)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){if(_5!=null)this.data.allRows.addAt(_1,_5);else this.data.allRows.add(_1);this.data.filterLocalData()}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{if(_5!=null)this.data.addAt(_1,_5);else this.data.add(_1)}}
return true}
if(this.$61e(_1,_2,_4)){if(this.duplicateDragMessage!=null)isc.warn(this.duplicateDragMessage);isc.Log.logDebug("Found client-side duplicate, adding '"+_1[isc.firstKey(_1)]+"' to exception list","dragDrop");this.$67n.add(this.getCleanRecordData(_1));return false}else{if(!_7){if(isc.Tree&&isc.isA.Tree(this.data)){this.data.add(_1,_6,_5)}else if(isc.ResultSet&&isc.isA.ResultSet(this.data)){if(this.data.allRows!=null){if(_5!=null)this.data.allRows.addAt(_1,_5);else this.data.allRows.add(_1)}else{isc.logWarn("Unable to add data to resultSet - allRows is not set")}}else{if(_5!=null)this.data.addAt(_1,_5);else this.data.add(_1)}
return true}else{if(!isc.ResultSet||!isc.isA.ResultSet(this.data)){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10);return true}else{if(this.data.allRowsCached()||(_4&&isc.firstKey(_4)&&this.data.allMatchingRowsCached())){if(!_3.$67v)_3.$67v=0;_3.$67v++;this.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10);return true}
if(_7&&_2==_7){if(_8&&isc.firstKey(_8)!=null){var _14=isc.applyMask(_1,_8)}else{_14=this.getCleanRecordData(_1)}}else if(_4&&isc.firstKey(_4)){_14=isc.addProperties({},this.data.getCriteria());isc.addProperties(_14,_4)}else if(_7&&_8&&isc.firstKey(_8)!=null){_14=isc.applyMask(_1,_8)}else{_14=this.getCleanRecordData(_1)}
isc.Log.logDebug("Incrementing dup query count: was "+_9.$67l,"dragDrop");this.$67l++;_7.fetchData(_14,function(_15,_16,_17){if(_16&&_16.length>0){if(_9.duplicateDragMessage!=null)isc.warn(_9.duplicateDragMessage);isc.Log.logDebug("Found server-side duplicate, adding '"+_1[isc.firstKey(_1)]+"' to exception list","dragDrop");_9.$67n.add(_9.getCleanRecordData(_1))}else{if(!_3.$67v)_3.$67v=0;_3.$67v++;_7.addData(_1,function(_15,_16,_17){_3.$67w(_15,_16,_17)},_10)}
isc.Log.logDebug("Decrementing dup query count: was "+_9.$67l,"dragDrop");if(--_9.$67l==0&&!_9.$67m){if(_3.dragDataAction==isc.Canvas.MOVE){isc.Log.logDebug("Invoking transferDragData from inside callback","dragDrop");_3.transferDragData(_9.$67n,_9);delete _9.$67n;if(!_9.$67o)isc.rpc.sendQueue()}}},{sendNoQueue:true})}}}},isc.A.$61e=function isc_Canvas__isDuplicateOnClient(_1,_2,_3){var _4=this.getDataSource(),_5;if(!this.preventDuplicates)return false;if(_4)_5=_4.getPrimaryKeyFields();if(_4&&_4==_2){if(_5&&isc.firstKey(_5)!=null){for(var _6 in _5){if(_5[_6].type=="sequence"){return false}}}}
if(!_4){var _7=this.getCleanRecordData(_1)}else if(_4&&_2==_4){if(_5&&isc.firstKey(_5)!=null){_7=isc.applyMask(_1,_5)}else{_7=this.getCleanRecordData(_1)}}else if(_3&&isc.firstKey(_3)){_7={};var _8=this.data.getCriteria();if(!_4.isAdvancedCriteria(_8)){var _9=this.data.context;if(!_9||(_9.textMatchStyle==null||_9.textMatchStyle=="exact")){isc.addProperties(_7,_8)}}
isc.addProperties(_7,_3)}else if(_4&&_5&&isc.firstKey(_5)!=null){_7=isc.applyMask(_1,_5)}else{_7=this.getCleanRecordData(_1)}
var _10=this.originalData||this.data;if(_10.findIndex(_7,null,Array.DATETIME_VALUES)>=0)return true;else return false},isc.A.getCleanRecordData=function isc_Canvas_getCleanRecordData(_1){if(isc.Tree&&isc.isA.Tree(this.data)){return this.data.getCleanNodeData(_1,false)}
var _2={};for(var _3 in _1){if(_3.startsWith("_selection_"))continue;_2[_3]=_1[_3]}
return _2},isc.A.$67w=function isc_Canvas__updateComplete(_1,_2,_3){if(this.$67v){isc.Log.logDebug("Decrementing update count - was "+this.$67v,"dragDrop");this.$67v-=1}
if(!this.$67v){isc.Log.logDebug("All updates complete, calling dragComplete()","dragDrop");if(isc.isA.Function(this.dragComplete))this.dragComplete()}},isc.A.getDropValues=function isc_Canvas_getDropValues(_1,_2,_3,_4,_5,_6){if(!this.addDropValues)return;var _7={},_8;if(this.data&&this.data.getNodeDataSource){_8=this.data.getNodeDataSource(_3)}
if(!_8){_8=this.getDataSource()}
var _9=(this.isGrouped?this.getOriginalData():this.data);if(_9&&_9.getCriteria)_7=_9.getCriteria(_8);var _10;if(isc.isAn.emptyObject(_7)||(_8&&!_8.isAdvancedCriteria(_7))){var _11=_9.context;if(_11&&(_11.textMatchStyle==null||_11.textMatchStyle=="exact")){_10=isc.addProperties({},_7);if(this.dropValues){_10=isc.addProperties(_10,this.dropValues)}
return _10}}
return this.dropValues},isc.A.transferDragData=function isc_Canvas_transferDragData(_1,_2){var _3,_4=[],_5,_6,_7;if(_2&&_2.$67k!=null&&!_2.$67k.isEmpty()){_7=_2.$67k.shift();_3=_7.selectRecords;_5=_7.dropRecords;_6=_7.callback}else{_5=this.getDragData();_7={}}
if(_5==null)_5=[];for(var i=0;i<_5.length;i++){var _9=this.getCleanRecordData(_5[i]);if(!_1||!_1.find(_9,null,Array.DATETIME_VALUES)){_4.add(_5[i])}}
if(_3&&_4.length>0){_2.$178a(_4)}
if(this.dragDataAction==isc.Canvas.MOVE&&_2!=this&&!_7.noRemove){if(this.dataSource&&!this.shouldSaveLocally()){var _10=_2.getDataSource();if(_10!=this.getDataSource()){var _11=isc.rpc.startQueue();for(var i=0;i<_4.length;i++){this.getDataSource().removeData(_4[i])}
if(!_11)isc.rpc.sendQueue()}}else if(this.data){var _12=isc.ResultSet&&isc.isA.ResultSet(this.data)&&this.shouldSaveLocally();for(var i=0;i<_4.length;i++){if(_12){if(this.data.allRows!=null){this.data.allRows.remove(_4[i])}else{isc.logWarn("Unable to remove data from resultSet - allRows is not set")}}else{this.data.remove(_4[i])}
if(this.isGrouped){this.originalData.remove(_4[i])}}
if(_12)this.data.filterLocalData()}}
if(_2){if(isc.isA.Function(_2.dropComplete))_2.dropComplete(_4);if(_6){this.fireCallback(_6,"records",[_4])}
if(_2.$67k&&_2.$67k.length>0){var _13=_2.$67k.shift();isc.Timer.setTimeout(function(){if(_13.implementation=="transferNodes"){_2.transferNodes(_13.dropRecords,_13.targetRecord,_13.index,_13.sourceWidget,_13.callback)}else{_2.transferRecords(_13.dropRecords,_13.targetRecord,_13.index,_13.sourceWidget,_13.callback)}},0)}}
return _4},isc.A.getDragData=function isc_Canvas_getDragData(){var _1=(this.selection&&this.selection.getSelection)?this.selection.getSelection():null;return _1},isc.A.cloneDragData=function isc_Canvas_cloneDragData(){var _1=this.$758;if(_1==null){_1=this.getDragData()}
this.$758=null;var _2=this.dragDataAction==isc.Canvas.COPY||this.dragDataAction==isc.Canvas.CLONE;var _3=[]
if(_2&&_1){if(isc.isA.Tree(this.data)){_1=this.data.getCleanNodeData(_1)}else{if(!isc.isAn.Array(_1))_1=[_1];var _4=[];for(var i=0;i<_1.length;i++){_4[i]=this.getCleanRecordData(_1[i])}
_1=_4}}
return _1},isc.A.transferSelectedData=function isc_Canvas_transferSelectedData(_1,_2,_3){if(!this.isValidTransferSource(_1)){if(_3)this.fireCallback(_3);return}
if(_2!=null)_2=Math.min(_2,this.data.getLength());var _4=_1.cloneDragData();var _5;if(_2!=null)_5=this.data.get(_2);this.transferRecords(_4,_5,_2,_1,_3)},isc.A.isValidTransferSource=function isc_Canvas_isValidTransferSource(_1){if(!_1||!_1.transferDragData){this.logWarn("transferSelectedData(): "+(_1?"Invalid ":"No ")+"source widget passed in - "+(_1||"")+" taking no action.");return false}
if(_1==this){this.logWarn("transferSelectedData(): target parameter contains a pointer back to this grid - ignoring");return false}
return true},isc.A.setDragTracker=function isc_Canvas_setDragTracker(){var _1=isc.EH,_2=this.dragTrackerMode;if(_2=="none"||_1.dragOperation==_1.DRAG_SCROLL||this.canDragSelectText){_1.setDragTracker("");return false}else if(_2=="icon"){var _3=this.getSelection(),_4=this.getDragTrackerIcon(_3);_1.setDragTracker(this.imgHTML(_4),null,null,null,null,this.getDragTrackerProperties());return false}else{var _5=this.getSelectedRecord(),_6=_5&&this.data?this.data.indexOf(_5):-1;if(_5==null)return false;if(_2=="title"){var _7=this.getDragTrackerTitle(_5,_6);_1.setDragTracker(_7,null,null,null,null,this.getDragTrackerProperties());return false}else if(_2=="record"){var _8=this.body.getTableHTML([0,this.fields.length-1],_6,_6+1);_1.setDragTracker(_8,null,null,null,null,this.getDragTrackerProperties());return false}}},isc.A.getDragTrackerProperties=function isc_Canvas_getDragTrackerProperties(){var _1=isc.addProperties({},this.dragTrackerProperties);_1.styleName=this.dragTrackerStyle;if(this.dragTrackerMode=="record")_1.opacity=50;return _1},isc.A.makeDragLine=function isc_Canvas_makeDragLine(){if(this._dragLine)return false;var _1={ID:this.getID()+"_dragLine",width:2,height:2,overflow:isc.Canvas.HIDDEN,visibility:isc.Canvas.HIDDEN,isMouseTransparent:true,dropTarget:this,redrawOnResize:false,styleName:"dragLine"};if(this.ns.Element.getStyleEdges(_1.styleName)==null){_1.backgroundColor="black"}
isc.addProperties(_1,this.dragLineDefaults,this.dragLineProperties);this._dragLine=this.ns.Canvas.create(_1);return true},isc.A.hideDragLine=function isc_Canvas_hideDragLine(){if(this._dragLine){this._dragLine.hide();this._dragLine.moveTo(0,-9999)}},isc.A.configureFrom=function isc_Canvas_configureFrom(_1){var _2=this.dbcProperties;for(var i=0;i<_2.length;i++){this[_2[i]]=_1[_2[i]];if(_2[i]=="dataSource"){var _4=this.autoFetchData;this.autoFetchData=false;this.setDataSource(isc.DS.getDataSource(this.dataSource));this.autoFetchData=_4}}
this.setCriteria(_1.getCriteria());this.setData(_1.getData())},isc.A.addFormulaField=function isc_Canvas_addFormulaField(){this.editFormulaField()},isc.A.$1144=function isc_Canvas__editComputedField(_1,_2){if(isc.FormulaBuilder==null)return;var _3=this,_4=!_1?false:true,_5=_2.toLowerCase();if(isc.isA.String(_1)){_1=this.getField(_1)}
var _6=isc[_2+"Builder"].create({autoDraw:false,overflow:"visible",component:_3,dataSource:_3.getDataSource(),editMode:_4,field:_1,mathFunctions:_2=="Formula"?isc.MathFunction.getDefaultFunctionNames():null,headerSpans:this.headerSpans,showHeaderSpanTitles:this.showHeaderSpanTitlesInFormulaBuilder,spanTitleSeparator:this.formulaBuilderSpanTitleSeparator,fieldKeyProperties:{height:"*"},fireOnClose:function(){_3.userFieldCallback(this)}},this[_5+"BuilderProperties"]);this.fieldEditorWindow=this.createAutoChild("fieldEditorWindow",isc.addProperties({},{title:this.fieldEditorWindowTitle.evalDynamicString(this,{builderType:_2,fieldTitle:_6.field.title}),items:[_6]},this[_5+"EditorProperties"]));this.fieldEditorWindow.show()});isc.evalBoundary;isc.B.push(isc.A.editFormulaField=function isc_Canvas_editFormulaField(_1){return this.$1144(_1,"Formula")},isc.A.invalidateUserCache=function isc_Canvas_invalidateUserCache(_1,_2){if(!_1){if(!_2){this.$132l++;return}
_1=this.data||[];if(isc.ResultSet&&isc.isA.ResultSet(_1))_1=_1.getAllLoadedRows();if(isc.Tree&&isc.isA.Tree(_1))_1=_1.getAllItems()}
if(!_1)return;if(!isc.isAn.Array(_1))_1=[_1];if(_2!=null){if(!isc.isAn.Array(_2))_2=[_2];_2=this.getCacheableFields(_2)}
for(var i=0;i<_1.length;i++){if(!_1[i])continue;var _4=_1[i]["_cache_"+this.ID];if(!_4)continue;if(_2==null)delete _1[i]["_cache_"+this.ID]
else{for(var j=0;j<_2.length;j++){delete _4[_2[j].name]}}}},isc.A.$134n=function isc_Canvas__addDependentUserFields(_1){var _2={},_3=this.$134o();for(var i=0;i<_1.length;i++){var _5=_3[_1[i].name];if(_5)isc.addProperties(_2,_5);_2[_1[i].name]=_1[i]}
return isc.getValues(_2)},isc.A.$134p=function isc_Canvas__getUserFieldInputFields(_1){var _2;if(_1.userFormula!=null){_2=_1.userFormula.formulaVars}else if(_1.userSummary!=null){_2=_1.userSummary.summaryVars}
if(!_2)return{};else _2=isc.getValues(_2);var _3={};for(var i=0;i<_2.length;i++){var _5=this.getField(_2[i]);if(_5){_3[_5.name]=_5;isc.addProperties(_3,this.$134p(_5))}}
return _3},isc.A.$134o=function isc_Canvas__getFieldDependencyTable(){if(this.$134q==null){var _1=this.$134q={};var _2=this.fields;for(var i=0;i<_2.length;i++){var _4=isc.getKeys(this.$134p(_2[i]));for(var j=0;j<_4.length;j++){var _6=_4[j];if(_1[_6]==null){_1[_6]={}}
_1[_6][_2[i].name]=_2[i]}}}
return this.$134q},isc.A.$134r=function isc_Canvas__clearFieldDependencyTable(){delete this.$134q},isc.A.rebuildAllFieldsFormulaVarMaps=function isc_Canvas_rebuildAllFieldsFormulaVarMaps(){var _1=this.getAllFields(),_2={},_3={};if(_1==null)return;for(var i=0;i<_1.getLength();i++){var _5=_1.get(i);if(_5.userFormula){var _6=_5.userFormula,_7=_6.formulaVars,_8=isc.getKeys(_7);for(var j=0;j<_8.length;j++){var _10=_8[j],_11=_7[_10];if(!_3[_11]){_3[_11]=_10;_2[_10]=_11}}}}
this.$158m={varToFieldName:_2,fieldNameToVar:_3}},isc.A.shouldApplyUserFormulaAfterSummary=function isc_Canvas_shouldApplyUserFormulaAfterSummary(_1){return _1&&_1.userFormula!=null},isc.A.shouldShowUserFormula=function isc_Canvas_shouldShowUserFormula(_1,_2){return true},isc.A.getCacheableFields=function isc_Canvas_getCacheableFields(_1){var _1=_1!=null?_1:this.getFields();if(_1==null)return[];return _1.filter(function(_2){return _2.userFormula!=null||_2.userSummary!=null})},isc.A.getFormulaFieldValue=function isc_Canvas_getFormulaFieldValue(_1,_2,_3){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(_2&&_2["_cache_"+this.ID]&&_1&&_1.name&&_2["_cache_"+this.ID][_1.name]==this.$132l)
{return _2[_1.name]}
if(_3==null)_3=this.getFormulaFunction(_1);if(!_3)return null;var _4=_3(_2,this);if(_2&&!_2.$132m){if(!_2["_cache_"+this.ID])_2["_cache_"+this.ID]={};_2["_cache_"+this.ID][_1.name]=this.$132l;_2[_1.name]=_4}
return _4},isc.A.getFormulaFunction=function isc_Canvas_getFormulaFunction(_1){if(!_1||!_1.userFormula)return null;var _2=_1.$65w;if(_2!=null&&_2.$111j==_1.userFormula)return _2;_2=_1.$65w=isc.FormulaBuilder.generateFunction(_1.userFormula,this.getAllFields(),this);_2.$111j=_1.userFormula;return _2},isc.A.addSummaryField=function isc_Canvas_addSummaryField(){this.editSummaryField()},isc.A.editSummaryField=function isc_Canvas_editSummaryField(_1){return this.$1144(_1,"Summary")},isc.A.userFieldCallback=function isc_Canvas_userFieldCallback(_1){if(!_1)return;var _2=this.fieldEditorWindow;if(_1.cancelled){_2.destroy();return}
var _3=_1.getUpdatedFieldObject();var _4=_3.name;if(this.getField(_4)==null){var _5=_3.title;if(_5!=null&&!isc.isA.emptyString(_5)&&_5!=_1.defaultNewFieldTitle)
{var _6=_5;_6=_6.replace(/ |\.|-/g,"_");if(_6.match(/^[0-9]/))_6="_"+_6;if(String.isValidID(_6)){_3.name=_1.getNewUniqueFieldName(_6)}else{this.logInfo("User-created field: unable to create fieldName based on specified title "+_5+", using default name:"+_3.name,"summaryField")}}else{this.logDebug("User-created field: not attempting to create fieldName based on specified title "+_5+", using default name:"+_3.name,"summaryField")}
var _7,_8=_1.getUsedFields(true).first();if(_3.summaryFunction===_7&&_8&&_8.summaryFunction!=null){_3.summaryFunction=_8.summaryFunction}}
if(this.userAddedField&&this.userAddedField(_3)==false){_2.destroy();return}
if(this.formulaUpdated&&_1.builderTypeText=="Formula"){this.formulaUpdated(_3,_3.userFormula)}
if(this.summaryUpdated&&_1.builderTypeText=="Summary"){this.summaryUpdated(_3,_3.userSummary)}
if(this.hideField&&_1.shouldHideUsedFields()){var _9=_1.getUsedFields();for(var i=0;i<_9.length;i++){var _11=_9.get(i);if(_11.canHide!=false)this.hideField(_11.name)}}
var _12=this.getAllFields();var _13=isc.Class.getArrayItemIndex(_3.name,_12,this.fieldIdProperty);if(_13>=0)_12[_13]=_3;else _12.addAt(_3,this.getFields().length);this.setFields(_12);if(this.markForRedraw)this.markForRedraw();var _14=_1.restartBuilder,_15=_1.builderTypeText;_2.destroy();if(_14){if(_15=="Formula")this.addFormulaField();else this.addSummaryField()}
if(this.isGrouped&&this.getGroupByFields&&this.getGroupByFields().contains(_3.name)){this.regroup()}
if(this.resort)this.resort()},isc.A.getSummaryFunction=function isc_Canvas_getSummaryFunction(_1){if(!_1||!_1.userSummary)return null;var _2=_1.$652;if(_2!=null)return _2;_2=_1.$652=isc.SummaryBuilder.generateFunction(_1.userSummary,this.getAllFields(),this);return _2},isc.A.getSummaryFieldValue=function isc_Canvas_getSummaryFieldValue(_1,_2,_3){if(!isc.isAn.Object(_1))_1=this.getField(_1);if(_2&&_2["_cache_"+this.ID]&&_1&&_1.name&&_2["_cache_"+this.ID][_1.name]==this.$132l)
{return _2[_1.name]}
if(_3==null)_3=this.getSummaryFunction(_1);if(!_3)return null;var _4=_3(_2,_1[this.fieldIdProperty],this);if(_2){if(!_2["_cache_"+this.ID])_2["_cache_"+this.ID]={};_2["_cache_"+this.ID][_1.name]=this.$132l;_2[_1.name]=_4}
return _4},isc.A.shouldIncludeHiliteInSummaryField=function isc_Canvas_shouldIncludeHiliteInSummaryField(_1,_2){return this.includeHilitesInSummaryFields},isc.A.$159d=function isc_Canvas__setUserField(_1,_2,_3,_4){var _5;if(isc.isA.String(_1))_1=this.getField(_1);if(_3!==_5)_1[_2]=_3;this.invalidateUserCache(null,_1);if(_2=="userFormula")this.rebuildAllFieldsFormulaVarMaps();if(_4)_4(_1)},isc.A.$159e=function isc_Canvas__setUserFieldText(_1,_2,_3,_4){var _5;if(isc.isA.String(_1))_1=this.getField(_1);var _6=_1[_2];if(_6==null){this.logWarn("Cannot set text for "+_2+" of field '"+_1.name+"' since that user field is null");return}
if(_3!==_5)_6.text=_3;this.invalidateUserCache(null,_1);switch(_2){case"userFormula":delete _1.$65w;break;case"userSummary":delete _1.$652;break}
if(_4)_4(_1)},isc.A.getRecordIndex=function isc_Canvas_getRecordIndex(_1){return this.data.indexOf(_1)},isc.A.getTitleFieldValue=function isc_Canvas_getTitleFieldValue(_1){},isc.A.getTitleField=function isc_Canvas_getTitleField(){if(this.titleField!=null)return this.titleField;if(this.dataSource!=null){var _1=this.getDataSource().getTitleField(),_2=this.getField(_1);if(!_2||_2.excludeFromState){var _3=this.getFields(),_4=false;for(var i=0,_6=_3.length;!_4&&i<_6;++i){_2=_3[i];if(!_2.excludeFromState){if(_1==null)_1=_2[this.fieldIdProperty];if(this.fieldIsVisible(_2)&&this.shouldUseField(_2)){_1=_2[this.fieldIdProperty];_4=true}}}
if(_1==null){_1=_3[0][this.fieldIdProperty]}}
this.titleField=_1}else{var _3=this.getFields(),_7=["title","label","name","id"],_4=false;for(var i=0;!_4&&i<_7.length;++i){var _8=_7[i],_1=_3.find(this.fieldIdProperty,_8);if(_1&&this.fieldIsVisible(_1)&&this.shouldUseField(_1)&&!_1.excludeFromState)
{this.titleField=_8;_4=true}}
if(!_4){this.titleField=_3.first()[this.fieldIdProperty];for(var i=0;i<_3.length;++i){var _1=_3[i];if(!_1.excludeFromState){this.titleField=_1[this.fieldIdProperty];break}}}}
return this.titleField},isc.A.getRecordHiliteCSSText=function isc_Canvas_getRecordHiliteCSSText(_1,_2,_3,_4){if(_1==null)return _2;if(_1.isGroupSummary&&(!this.showHilitesInGroupSummary||_3.showHilitesInGroupSummary==false))return _2;_2=this.addObjectHilites(_1,_2,_3);if(_4==null){_4=this.getFields().contains(_3)&&((isc.isA.List(this.data)&&this.getRecordIndex(_1)!=-1)||this.data==_1)}
if(_4){_2=this.addHiliteCSSText(_1,_3,_2)}else{var _5=this.hilites;if(_5){for(var i=0;i<_5.length;i++){if(_3&&_3.name){var _7=_5[i].fieldName;if(_7&&(isc.isAn.Array(_7)?!_7.contains(_3.name):_7!=_3.name))
{continue}}
var _8=this.getRecordsMatchingHilite(_5[i],[_1]);if(_8&&_8.length!=0){if(_2==null){_2=this.getHiliteCSSText(_5[i])}else{_2+=this.getHiliteCSSText(_5[i])}}}}}
if(this.logIsDebugEnabled("hiliting")&&_2!=null){this.logDebug("getRecordHiliteCSSText for field:"+_3.name+" on record:"+this.echo(_1)+"\n- gives back value: "+_2,"hiliting")}
return _2},isc.A.convertCSSToProperties=function isc_Canvas_convertCSSToProperties(_1,_2){if(_1==null)return null;var _3=_1.split(";"),_4;_3.map(function(_9){var _5=_9.split(":");if(_5.length!=2)return null;var _6=/^\s*(\S*)\s*$/,_7=_5[0].cssToCamelCaps().replace(_6,"$1"),_8=_5[1].replace(_6,"$1");if(!_2||_2.contains(_7)){if(!_4)_4={};_4[_7]=_8}});return _4},isc.A.getExportFieldValue=function isc_Canvas_getExportFieldValue(_1,_2,_3,_4){var _5=!(_2&&_2.escapeHTML)
return this.htmlUnescapeExportFieldValue(this.getStandaloneFieldValue(_1,_2.name,!!_4),_5)},isc.A.addDetailedExportFieldValue=function isc_Canvas_addDetailedExportFieldValue(_1,_2,_3,_4,_5,_6,_7){var _8=_6.allowedProperties,_9=_6.propagateInputHilites,_10=_6.alwaysExportExpandedStyles,_11=_6.exportDatesAsFormattedString;var _12=_4.name,_13=this.getRecordHiliteCSSText(_3,null,_4),_14,_15={};var _16=this.getExportBGColor(_7,_5,_3);if(_7!=null&&_16){_13+="; backgroundColor: "+_16}
var _17=this.getDeclarativeFormat(_4);if(_17){_15.rawValue=_3[_4.name];_15.format=_17}else if(isc.isA.Date(_3[_4.name])&&!_11){_15=this.getDateFormattingProperties(_4,_3[_4.name],_1[_4.title])}
if(_4.valueMap){_15.hasValueMap=true}
if(isc.isA.Number(_3[_4.name])){_15.rawValue=_3[_4.name]}
if(_15&&isc.getKeys(_15).length==0){_15=null}
if(_4.exportRawValues||(this.exportRawValues&&_4.exportRawValues!=false))
_14=_3[_4[this.fieldIdProperty]];else
_14=this.getExportFieldValue(_3,_4,_5);if(!_4.userSummary||!_9){if(_13||_15){var _18=this.convertCSSToProperties(_13,_8);if(_15){if(!_18)_18={};isc.addProperties(_18,_15)}
if(_18){if(_10)
_1[_2]=[{value:_14,style:_18}];else
_1[_2]=_18}}
return}
if(!_4.userSummary.text)this.logError("Summary field does not have text format");var _19=[],_20={},_21={};var _22=(_13&&_13!="");for(var _23 in _4.userSummary.summaryVars){var _24=_4.userSummary.summaryVars[_23],_25=this.getField(_24);if(!_25)_19.add(_24);else{_20[_23]=_25;var _26=this.getRecordHiliteCSSText(_3,null,_25);if(_26){_21[_23]=_26;_22=true}}}
if(!_22)return;if(_19.length!=0&&_13){if(_10){_1[_2]={style:this.convertCSSToProperties(_13,_8),value:_14}}else{_1[_2]=this.convertCSSToProperties(_13,_8)}
return}
var _27=null,_28=null,_29=[];var _30=this;var _31=function(_42,_43){if(_42){_42=_30.htmlUnescapeExportFieldValue(_42);if(_27&&_28==_43){_27.value+=_42}else{if(_27)_29.push(_27);_27={value:_42};_28=_43;if(_43)_27.style=_30.convertCSSToProperties(_43,_8)}}};var _32=_4.userSummary.text.split("#"),_33=/^\{([A-Z]+)\}/;if(_32[0])_31(_32[0],_13);for(var i=1;i<_32.length;i++){var _35=_32[i],_36,_37,_38,_39,_40,_41;_38=_35.charAt(0);_37=_20[_38];if(_37)_41=_35.substr(1);else if(_36=_35.match(_33)){_41=_35.substr(_36[0].length);_38=_36[1];_37=_20[_38];if(!_37)_41=this.missingSummaryFieldValue+_41}else _41="#"+_35;if(_37){_39=this.getExportFieldValue(_3,_37,this.getFieldNum(_37.name));_40=null;if(_13)_40=(_40||"")+_13;if(_21[_38])_40=(_40||"")+_21[_38]}
_31(_39,_40);_31(_41,_13)}
if(_27)_29.push(_27);_1[_2]=_29},isc.A.getDeclarativeFormat=function isc_Canvas_getDeclarativeFormat(_1){return!_1?null:_1.exportFormat||_1.format},isc.A.getClientExportData=function isc_Canvas_getClientExportData(_1,_2){var _3=this.originalData||this.data,_4=[],_5=this.getClientExportFields(_1),_6,_7,_8,_9,_10=_1&&_1.exportFields;if(_1==null)_1={};if(_1.exportData!=null)_3=_1.exportData;_6=_1.includeHiddenFields;_7=_1.allowedProperties;_8=_1.includeCollapsedNodes;_9=_1.alwaysExportExpandedStyles;if(_10){if(_6!==false)_6=true}
if(isc.isA.ResultSet(_3))_3=_3.getAllLoadedRows();if(isc.isA.Tree(_3)){if(_8)_3=_3.getAllNodes();else _3=_3.getOpenList()}
var _11={settings:_1,callback:_2,chunkSize:this.exportDataChunkSize,data:_3,exportData:_4,fields:_5,includeHiddenFields:_6,allowedProperties:_7,includeCollapsedNodes:_8,alwaysExportExpandedStyles:_9,totalRows:_3.getLength(),startRow:0,endRow:Math.min(this.exportDataChunkSize,_3.getLength()),exportFieldsSpecified:_10};_1.exportRowBGColors={};_1.exportColumnBGColors={};_11.firstTimeStamp=_11.thisTimeStamp=isc.timeStamp();this.logInfo("starting export chunking process - "+_11.firstTimeStamp,"export");this.getClientExportDataChunk(_11);return},isc.A.getClientExportDataChunk=function isc_Canvas_getClientExportDataChunk(_1){var _2=_1.settings,_3=_1.data,_4=_1.exportData,_5=_1.fields,_6=_1.includeHiddenFields,_7=_1.includeCollapsedNodes,_8=_1.totalRows,_9=_1.startRow,_10=_1.endRow,_11=_2.exportValueFields,_12=_1.exportFieldsSpecified,_13=_2.exportRowBGColors,_14=_2.exportColumnBGColors;for(var _15=_9;_15<_10;_15++){var _16=_3[_15],_17=this.getRecordExportObject(_16,_5,_6,_7,_11,_12,_2,_15);;_4.push(_17);var _18=this.getExportRowBGColor(_15,_16);if(_18){_13[_15]=_18}}
for(var _19=0;_19<_5.length;_19++){var _20=_5[_19];if((!this.fields.contains(_20))&&!_6)continue;var _21=this.getFieldNum(_20.name);var _22=this.getExportColumnBGColor(_21);if(_22){_14[_21]=_22}}
if(_1.endRow<_1.totalRows){_1.lastTimeStamp=_1.thisTimeStamp;_1.thisTimeStamp=isc.timeStamp();if(this.logIsInfoEnabled("export")){this.logInfo("processed "+_1.endRow+" rows - starting next chunk - "+((_1.thisTimeStamp-_1.lastTimeStamp)/1000),"export")}
_1.startRow=_1.endRow;_1.endRow=Math.min(_1.startRow+_1.chunkSize,_1.totalRows);return this.delayCall("getClientExportDataChunk",[_1],0)}
if(this.showGridSummary&&this.summaryRow&&this.exportIncludeSummaries){var _23=this.summaryRow,_3=this.getGridSummaryData(true);for(var _15=0;_15<_3.getLength();_15++){var _16=_3[_15],_17=this.getRecordExportObject(_16,_5,_6,_7,_11,_12,_2,_15);;_4.push(_17)}}
if(_1.callback){var _3=_1.exportData;if(this.logIsInfoEnabled("export")){this.logInfo("finished processing "+_1.endRow+" rows - about to export - "+isc.timestamp(),"export")}
this.fireCallback(_1.callback,"data,context",[_3,_1.settings])}},isc.A.getClientExportFields=function isc_Canvas_getClientExportFields(_1){var _2=this.getAllFields();var _3=[],i,_5=_2.length,_6;if(isc.isAn.Object(_1)&&_1.exportFields){for(i=0;i<_5;++i){_6=_2[i];if(_1.exportFields.contains(_6.name))_3.add(_6)}
_2=_3}else{for(i=0;i<_5;++i){_6=_2[i];if(this.$71s(_6)){_3[_3.length]=_6}}
_2=_3}
return _2},isc.A.getRecordExportObject=function isc_Canvas_getRecordExportObject(_1,_2,_3,_4,_5,_6,_7,_8){var _9={};for(var _10=0;_10<_2.length;_10++){var _11=_2[_10];if((!this.fields.contains(_11))&&!_3)continue;var _12=this.getFieldNum(_11.name),_13=_11.name,_14=_13+"$style",_15;if(_11.exportRawValues||(this.exportRawValues&&_11.exportRawValues!=false))
_15=_1[_11[this.fieldIdProperty]];else
_15=this.getExportFieldValue(_1,_11,_12,_5);if(_15==null||_15=="&nbsp;")_15="";if(!_6){if(_5){if(_11.displayField){var _16=_11.name;if(_16==_13)_16+="_value";_9[_16]=_1[_11.name]}}}
_9[_13]=_15;this.addDetailedExportFieldValue(_9,_14,_1,_11,_12,_7,_8)}
return _9},isc.A.htmlUnescapeExportFieldTitle=function isc_Canvas_htmlUnescapeExportFieldTitle(_1){return this.htmlUnescapeExportFieldValue(_1)},isc.A.htmlUnescapeExportFieldValue=function isc_Canvas_htmlUnescapeExportFieldValue(_1,_2){if(isc.isA.String(_1)){var _3=String.htmlStringToString(_1,true);_3=_3.unescapeHTML();if(_2){_3=_3.replace(/<\/?[a-zA-Z]+>/g,isc.emptyString)}
return _3}
return _1},isc.A.addHiliteSpan=function isc_Canvas_addHiliteSpan(_1,_2,_3){var _4=this.getRecordHiliteCSSText(_1,null,_2);if(_4)return"<span style=\""+_4+"\">"+_3+"</span>";else return _3},isc.A.getRawValue=function isc_Canvas_getRawValue(_1,_2){if(!_1||!_2)return null;var _3=_2.dataPath==null?_2.displayField:isc.Canvas.$923(_2,this);return isc.Canvas.$70o(_3,_2,_1,this)},isc.A.getFormattedValue=function isc_Canvas_getFormattedValue(_1,_2,_3){return _3},isc.A.fieldIsVisible=function isc_Canvas_fieldIsVisible(_1){return true},isc.A.getSpecifiedField=function isc_Canvas_getSpecifiedField(_1){return this.getField(_1)},isc.A.getStandaloneFieldValue=function isc_Canvas_getStandaloneFieldValue(_1,_2,_3){var _4=this.getSpecifiedField(_2),_5;if(!_4)return;if(_4.userFormula)_5=this.getFormulaFieldValue(_4,_1);else if(_4.userSummary)_5=this.getSummaryFieldValue(_4,_1);else{if(this.$425&&this.$425(_4)){_5=_1[_4.displayField]}else{_5=this.getRawValue(_1,_2)}
if(!_3)_5=this.getFormattedValue(_1,_2,_5)}
var _6=this.addHiliteSpan(_1,_4,_5);return _6},isc.A.getDateFormattingProperties=function isc_Canvas_getDateFormattingProperties(_1,_2,_3){if(!isc.SimpleType.inheritsFrom(_1.type,"date"))return;if(!isc.isA.Date(_2))return;var _4=isc.SimpleType.inheritsFrom(_1.type,"datetime");var _5;if(_1.dateFormatter&&isc.isA.Function(Date.prototype[_1.dateFormatter])){_5=_1.dateFormatter}else if(_1.displayFormat&&isc.isA.Function(Date.prototype[_1.displayFormat])){_5=_1.displayFormat}
if(!_5){var _6=this.getDataSource(),_7=_6?_6.getField(_1.name):null,_8=_7?_7.dateFormatter||_7.displayFormat:null;if(_8&&isc.isA.Function(Date.prototype[_8])){_5=_8}}
if(!_5){var _9;if(this.datetimeFormatter!=null&&_4){_9=this.datetimeFormatter}else{_9=this.dateFormatter}
if(_9&&isc.isA.Function(Date.prototype[_9])){_5=_9}}
if(!_5){var _10=!_4?Date.prototype.$el:Date.prototype.$68e;if(_10&&isc.isA.Function(Date.prototype[_10])){_5=_10}}
var _11={rawValue:_2,dateFormatter:_5};return _11},isc.A.getExportBGColor=function isc_Canvas_getExportBGColor(_1,_2,_3){return null},isc.A.getExportRowBGColor=function isc_Canvas_getExportRowBGColor(_1,_2){return null},isc.A.getExportColumnBGColor=function isc_Canvas_getExportColumnBGColor(_1){return null},isc.A.exportClientData=function isc_Canvas_exportClientData(_1,_2){this.$1766=true;if(_2)_1.$90b=_2;this.getClientExportData(_1,this.getID()+".exportClientDataReply(data,context)");return},isc.A.isExportingClientData=function isc_Canvas_isExportingClientData(){return!!this.$1766},isc.A.exportClientDataReply=function isc_Canvas_exportClientDataReply(_1,_2){if(_1==null||_1.length==0){isc.warn(this.emptyExportMessage);return}
var _3=_2||{},_4=_3.exportAs?_3.exportAs:this.defaultExportAs,_5=_3.exportFilename?_3.exportFilename:this.defaultExportFilename,_6=_3.exportDisplay?_3.exportDisplay:this.defaultExportDisplay,_7=_3.downloadToNewWindow==null?(_6=="window"):_3.downloadToNewWindow;var _8={operationId:_3.operationId,showPrompt:false,transport:_3.exportToClient===false?"xmlHttpRequest":"hiddenFrame",exportResults:true,downloadResult:!(_3.exportToClient===false),download_filename:(_6=="window"?_5:null),params:_3.params,xmlHttpRequestResponseType:_3.xmlHttpRequestResponseType};if(_3.exportRawValues==null){_3.exportRawValues=false}
var _9={targetMainWindow:_3.targetMainWindow,downloadToNewWindow:_7,exportDisplay:_3.exportDisplay,exportAs:_3.exportAs,exportToClient:_3.exportToClient,exportToFilesystem:_3.exportToFilesystem,exportPath:_3.exportPath,exportFilename:_5,exportDelimiter:_3.exportDelimiter,exportHeader:_3.exportHeader,exportHeaderless:_3.exportHeaderless,exportFooter:_3.exportFooter,exportDefaultBGColor:_3.exportDefaultBGColor,exportAlternateRowBGColor:_3.exportAlternateRowBGColor,exportRowBGColors:_3.exportRowBGColors,exportColumnBGColors:_3.exportColumnBGColors,exportWrapHeaderTitles:_3.exportWrapHeaderTitles,exportTitleSeparatorChar:_3.exportTitleSeparatorChar,exportSpanTitleSeparator:_3.exportSpanTitleSeparator,exportShowHeaderSpanTitles:_3.exportShowHeaderSpanTitles,exportValueFields:_3.exportValueFields,lineBreakStyle:_3.lineBreakStyle,exportDatesAsFormattedString:_3.exportDatesAsFormattedString,exportHeaderBGColor:_3.exportHeaderBGColor,exportHeaderTextColor:_3.exportHeaderTextColor,exportRawValues:_3.exportRawValues,exportStreaming:_3.exportStreaming,exportCurrencySymbol:isc.NumberUtil.currencySymbol,params:_3.params};var _10=_1.$142v,_11=_1.$142w;if(_10==null){_10=this.getClientExportFields(_3);for(var i=0;i<_10.length;i++){if(isc.isAn.Object(_10[i]))_10[i]=_10[i].name}
var _13=[];for(var i=0;i<_10.length;++i){if(this.getField(_10[i])!=null){_13.add(_10[i])}
if(_9.exportValueFields&&this.getField(_10[i]).displayField){_13.add(_10[i]+"_value")}}
_10=_13}
_9.exportFields=_10;var _14=this.getAllFields();var _15=[];for(var i=0;i<_14.length;++i){var _16=_14[i];if(_16.userFormula!=null){_15[_15.length]=_16.userFormula;_15[_15.length-1].name=_16.name;_15[_15.length-1].title=_16.title}}
if(_15.length>0){var _17=[];for(var u=0;u<_14.length;++u){_17[u]={name:_14[u].name,title:_14[u].title}}
_9.formulaFields=_15;_9.formulaRemap=_17}
if(_11==null){var _11={};if(this.headerSpans&&_3.exportShowHeaderSpanTitles!==false){_9.exportHeaderSpans=this.prepareHeaderSpansForExport(this.headerSpans,_14,_11)}
if(_10){_9.exportOtherFields={};for(var i=0;i<_10.length;++i){var _19=_10[i];if(!_11.hasOwnProperty(_19)){var _16=this.getField(_19);_9.exportOtherFields[_19]=this.htmlUnescapeExportFieldTitle(_16==null?_19:_16.exportTitle||_16.title||_16.name)}}}}else{_9.exportOtherFields=_11}
_9.exportDefaultBGColor=this.exportDefaultBGColor;_9.exportAlternateRowBGColor=this.exportAlternateRowBGColor;if(isc.isA.Function(this.getExportRowBGColors)){_9.exportRowBGColors=this.getExportRowBGColors()}
if(isc.isA.Function(this.getExportColumnBGColors)){_9.exportColumnBGColors=this.getExportColumnBGColors()}
if(this.headerHeight&&this.exportHeaderHeights){_9.exportHeaderHeight=this.headerHeight}
if(this.exportFieldWidths&&isc.isAn.Array(this.fields)&&this.getFieldWidth){_9.exportFieldPixelWidths=this.getFieldPixelWidths();_9.exportWidthScale=this.exportWidthScale}
if(_9.exportWrapHeaderTitles==null){_9.exportWrapHeaderTitles=this.exportWrapHeaderTitles}
if(this.exportFieldAlignments&&isc.isAn.Array(this.fields)){_9.exportAlignments=this.getFieldAlignments()}
if(_3.exportPropertyIdentifier){_9.exportPropertyIdentifier=_3.exportPropertyIdentifier}
if(this.getDataSource()){isc.addProperties(_8,{exportContext:_9});this.getDataSource().exportClientData(_1,_8,_2.$90b)}else{isc.DMI.callBuiltin({methodName:"downloadClientExport",arguments:[_1,_4,_5,_6,_9],requestParams:_8,callback:_2.$90b})}
delete this.$1766;if(_2.$90b&&_8.downloadResult)this.fireCallback(_2.$90b)},isc.A.prepareHeaderSpansForExport=function isc_Canvas_prepareHeaderSpansForExport(_1,_2,_3){_3=_3||{};var _4=[];for(var i=0;i<_1.length;i++){var _6=_1[i].exportTitle||_1[i].title||isc.emptyString;_4[i]={title:this.htmlUnescapeExportFieldTitle(_6)};if(_1[i].height!=null){_4[i].height=_1[i].height}
if(_1[i].spans){_4[i].spans=this.prepareHeaderSpansForExport(_1[i].spans,_2,_3)}else{_4[i].fields=[];for(var j=0;j<_1[i].fields.length;j++){var _8=_1[i].fields[j],_9=_2.find("name",_8);if(!_9||this.getFieldNum(_8)==-1)continue;var _10=_9.exportTitle||_9.title||_9.name;if(_10){var _11=this.htmlUnescapeExportFieldTitle(_10);_4[i].fields.push({name:_8,title:_11});_3[_8]=_11}}}}
return _4},isc.A.getSort=function isc_Canvas_getSort(){return this.$73p?this.removeSortSpecifierMarkers(isc.shallowClone(this.$73p)):null},isc.A.removeSortSpecifierMarkers=function isc_Canvas_removeSortSpecifierMarkers(_1){if(_1==null)return null;_1.clearProperty("context");_1.clearProperty("sortIndex");return _1},isc.A.setSort=function isc_Canvas_setSort(_1){this.$73p=isc.shallowClone(_1);if(this.data&&this.$73p&&this.$73p.length>0){for(var i=0;i<this.$73p.length;i++){var _3=this.$73p[i];if(!_3.context)_3.context=this}
if(this.data.setSort)this.data.setSort(this.$73p);else if(this.data.sortByProperty){var _3=this.$73p[0];this.data.sortByProperty(_3.property,Array.shouldSortAscending(_3.direction),_3.normalizer,_3.context)}}},isc.A.askForSort=function isc_Canvas_askForSort(_1){if(isc.MultiSortDialog&&this.canMultiSort!=false){var _2=this.getSort();if(_1&&(!_2||_2.length==0)){_2=[{property:_1,direction:"ascending"}]}
isc.MultiSortDialog.askForSort(this,_2,{target:this,methodName:"multiSortReply"},isc.addProperties({},this.multiSortDialogDefaults,this.multiSortDialogProperties))}},isc.A.multiSortReply=function isc_Canvas_multiSortReply(_1){if(_1!=null){this.setSort(_1)}},isc.A.askForGrouping=function isc_Canvas_askForGrouping(){var _1=this.getGroupByFields();isc.MultiGroupDialog.askForGrouping(this,_1,this.getID()+".multiGroupReply(groupLevels)")},isc.A.multiGroupReply=function isc_Canvas_multiGroupReply(_1){if(_1)this.groupBy(_1)},isc.A.editCriteria=function isc_Canvas_editCriteria(){var _1=isc.FilterBuilder.create({dataSource:this.dataSource,criteria:this.data&&this.data.getCriteria?this.data.getCriteria():this.initialCriteria});var _2=this;var _3=isc.Window.create({autoDraw:true,autoSize:true,width:600,autoCenter:true,isModal:true,title:"Define Filter",bodyProperties:{layoutMargin:5,membersMargin:5},items:[isc.HTMLFlow.create({width:"100%",isGroup:true,groupTitle:"Instructions",padding:5,contents:"Define field by field filter criteria below"}),_1,isc.IButton.create({title:"Save",click:function(){var _4=_1.getCriteria();_2.editCriteriaReply(_4);this.parentElement.parentElement.closeClick()}})]})},isc.A.editCriteriaReply=function isc_Canvas_editCriteriaReply(_1){this.setCriteria(_1)},isc.A.addValidationError=function isc_Canvas_addValidationError(_1,_2,_3){var _4=false;if(isc.isAn.Array(_3)){for(var i=0;i<_3.length;i++){_4=this.addValidationError(_1,_2,_3[i])||_4}
return _4}
var _6=_2.contains(this.$70l);if(_6){var _7=_1,_8=_2.trim(this.$70l).split();for(var i=0;i<_8.length;i++){if(!_7[_8[i]]){if(i<_8.length-1){if(parseInt(_8[i+1])==_8[i+1]){_7[_8[i]]=[]}else{_7[_8[i]]={}}}else{_7[_8[i]]=_3;_4=true}}
_7=_7[_8[i]]}}else{if(!_1[_2]){_1[_2]=_3;_4=true}else{if(!isc.isAn.Array(_1[_2]))_1[_2]=[_1[_2]];if(!_1[_2].contains(_3)){_1[_2].add(_3);_4=true}}}
return _4},isc.A.isFieldDependentOnOtherField=function isc_Canvas_isFieldDependentOnOtherField(_1,_2){if(!_1.validators)return false;var _3=this.getDataSource();for(var i=0;i<_1.validators.length;i++){var _5=_1.validators[i];if(!_5)continue;if(!_5.$74r&&_5.applyWhen&&_3!=null){_5.$74r=_3.getCriteriaFields(_5.applyWhen)}
if(_5.dependentFields&&_5.dependentFields.contains(_2)){return true}
if(_5.$74r&&_5.$74r.length>0&&_5.$74r.contains(_2))
{return true}}
return false},isc.A.getFieldDependencies=function isc_Canvas_getFieldDependencies(_1){if(!_1.validators)return null;var _2=this.getDataSource(),_3=[];for(var i=0;i<_1.validators.length;i++){var _5=_1.validators[i];if(!_5)continue;if(!_5.$74r&&_5.applyWhen&&_2!=null){_5.$74r=_2.getCriteriaFields(_5.applyWhen)}
if(_5.dependentFields){if(!isc.isAn.Array(_5.dependentFields)){_5.dependentFields=[_5.dependentFields]}
for(var j=0;j<_5.dependentFields.length;j++){_3.add(_5.dependentFields[j])}}
var _7=isc.Validator.getValidatorDefinition(_5.type);if(_7&&_7.getDependentFields!=null){var _8=_7.getDependentFields(_5);if(isc.isAn.Array(_8))_8.map(function(_9){if(_9)_3.add(_9)})}
if(_5.$74r&&_5.$74r.length>0)
{_3.addList(_5.$74r)}}
return(_3.length==0?null:_3)},isc.A.validateFieldAndDependencies=function isc_Canvas_validateFieldAndDependencies(_1,_2,_3,_4,_5){var _6={},_7=false,_8={valid:true,errors:null,resultingValue:null};_4[_1.name]=_3;var _9=this.validateField(_1,_1.validators,_3,_4,_5);if(_9!=null){_8.valid=_9.valid;_8.stopOnError=_9.stopOnError;if(_9.errors!=null){this.addValidationError(_6,_1.name||_1.dataPath,_9.errors)}
if(_9.resultingValue!=null){_8.resultingValue=_9.resultingValue;_4[_1.name]=_9.resultingValue}
_7=true}
var _10=_1.name||_1.dataPath,_11=this.getFields()||[];for(var i=0;i<_11.length;i++){var _13=_11[i];if(_13.name!=_10&&_13.dataPath!=_10&&this.isFieldDependentOnOtherField(_13,_10))
{_9=this.validateField(_13,_13.validators,_4[_13.name],_4,_5);if(_9!=null){if(_9.errors!=null){this.addValidationError(_6,_13.name||_13.dataPath,_9.errors)}else{this.addValidationError(_6,_13.name||_13.dataPath,null)}
if(_9.resultingValue!=null){_4[_13.name]=_9.resultingValue}}}}
_8.errors=_6;return(_7?_8:null)});isc.evalBoundary;isc.B.push(isc.A.validateField=function isc_Canvas_validateField(_1,_2,_3,_4,_5){if(!_2)return null;_5=_5||{};var _6=[],_7=false,_8=null,_9={valid:true,errors:null,resultingValue:null},_10=false,_11=false;if(!isc.isAn.Array(_2)){_2=[_2]}
for(var i=0;i<_2.length;i++){var _13=_2[i];if(!_13)continue;var _14=isc.Validator.getValidatorType(_13);if(_5.typeValidationsOnly&&!this.$685.contains(_14))
{continue}
if(_5.dontValidateNullValue&&_3==null&&_14!="required"&&_14!='requiredIf')
{continue}
if(!_5.changing||(_13.validateOnChange!=false&&(_13.validateOnChange||_1.validateOnChange||this.validateOnChange)))
{if(isc.Validator.isServerValidator(_13)){_10=true;if(_13.stopOnError)_11=true;continue}
if(_13.applyWhen){var _15=this.getDataSource(),_16=_13.applyWhen;if(_15==null){isc.logWarn("Conditional validator criteria ignored because form has no dataSource")}else{var _17=_15.applyFilter([_4],_16);if(_17.length==0){isc.Validator.performAction(null,_1,_13,_4,this);continue}}}
_7=true;var _18=(isc.Validator.processValidator(_1,_13,_3,null,_4)==true);isc.Validator.performAction(_18,_1,_13,_4,this);if(!_18&&_1.conditionallyRequired&&_14=="required"&&_5.validatingDsFields)
{_10=true;continue}
if(!_18){var _19=isc.Validator.getErrorMessage(_13);if(_19==null){if(_5.unknownErrorMessage){_19=_5.unknownErrorMessage}else{_19=this.unknownErrorMessage}}
_6.add(_19);if(_13.stopOnError)_8=true}
if(_13.resultingValue!=null){_9.resultingValue=_13.resultingValue;_3=_13.resultingValue}
if(!_18&&_13.stopIfFalse)break}}
if(_10==true&&!_7)_7=true;if(_10&&_5.deferServerValidation&&!_5.validatingDsFields){_9.needsServerValidation=true}else if(_10&&(_5.skipServerValidation!=true)){_11=this.$75e(_11,_1.stopOnError,this.stopOnError);var _20=((_5.serverValidationMode)?_5.serverValidationMode:this.$746),_21=(_11||_1.synchronousValidation||this.synchronousValidation||false);var _22;if(this.getDataSource()){_22=this.getDataSource().$708(_4)}else{_22=isc.addProperties({},_4)}
var _23=this.getSaveOperationType&&this.getSaveOperationType()=="add";var _24=isc.Canvas.$923(_1,this);isc.DynamicForm.$70n(_24,_1,_3,_22,this,true,"validate");this.fireServerValidation(_1,_22,_20,_21,_5.rowNum,_23);_7=true}
_9.stopOnError=(_6.length>0&&this.$75e(_8,_1.stopOnError,this.stopOnError));_9.errors=(_6.length==0?null:_6);_9.valid=(_6.length==0);return(_7?_9:null)},isc.A.validateFieldsOnServer=function isc_Canvas_validateFieldsOnServer(_1,_2,_3,_4){if(!isc.isAn.Array(_1))_1=[_1];var _5=null,_6=false;for(var i=0;i<_1.length;i++){var _8=_1[i],_9=_8.validators;for(var j=0;j<_9.length;j++){var _11=_9[j];if(!_11)continue;if(!isc.Validator.isServerValidator(_11))continue;if(_11.stopOnError){_5=_8;_6=true}}}
_6=this.$75e(_6,_8.stopOnError,this.stopOnError);var _12=((_3&&_3.serverValidationMode)?_3.serverValidationMode:this.$746),_13=(_6||_8.synchronousValidation||this.synchronousValidation||false);var _14;if(this.getDataSource()){_14=this.getDataSource().$708(_2)}else{_14=isc.addProperties({},_2)}
var _15=this.getSaveOperationType&&this.getSaveOperationType()=="add";if(!_5)_5=_1[0];this.fireServerValidation(_5,_14,_12,_13,_3.rowNum,_15,_4)},isc.A.$75e=function isc_Canvas__resolveStopOnError(_1,_2,_3){if(_1!=null)return _1;return(_2==null&&_3)||_2||false},isc.A.fireServerValidation=function isc_Canvas_fireServerValidation(_1,_2,_3,_4,_5,_6,_7){var _8=this.getDataSource();if(_8==null)return;var _9={showPrompt:_4,prompt:isc.RPCManager.validateDataPrompt,validationMode:_3,internalClientContext:{component:this,fieldName:_1.name,rowNum:_5}};if(_6)_9.pendingAdd=true;var _10,_11=_9.internalClientContext;if(_10!==_7)_11.callerContext=_7;var _12=this.valuesManager;if(_12)_12.$178f(this,_7);if(_3==this.$746){for(var _13 in _2){if(_2[_13]===null)delete _2[_13]}}
if(!_4){var _14=this.$75c(_1);_11.pendingFields=_14}
_8.validateData(_2,this.$742,_9)},isc.A.$742=function isc_Canvas__handleServerValidationReply(_1,_2,_3){var _4=_1.internalClientContext,_5=_4.component;if(_1.status==isc.DSResponse.STATUS_FAILURE){isc.logWarn("Server-side validation failed: "+_1.data);isc.say(_1.data?_1.data:_5.noErrorDetailsMessage)}
var _6=_4.pendingFields,_7=_1.errors==null?null:isc.DynamicForm.getSimpleErrors(_1.errors);if(_1.errors){for(var _8 in _7){var _9=_7[_8],_10=_5.getField(_8);if(_9!=null&&_10!=null){if(!isc.isAn.Array(_9))_9=[_9];var _11=null;for(var i=0;i<_9.length;i++){_5.addFieldErrors(_8,_9[i].errorMessage,false,_4.rowNum);if(_9[i].stopOnError)_11=true}
if(_10.redraw)_10.redraw();_11=_5.$75e(_11,_10.stopOnError,_5.stopOnError);if(_8==_4.fieldName&&_11==true&&!_10.hasFocus){if(!_10.synchronousValidation&&!_5.synchronousValidation){isc.logWarn("Server validation for "+_8+" signaled stopOnError but validation is not set for synchronousValidation:true - stop ignored.")}else{_5.focusInItem(_10)}}}}}
if(_6){_5.$75d(_6)}
if(_5&&_5.handleAsyncValidationReply!=null){if(_7!=null){_7=isc.DynamicForm.formatValidationErrors(_7)}
_5.handleAsyncValidationReply(_7==null,_7,_4.callerContext)}},isc.A.handleAsyncValidationReply=function(success,errors,context){},isc.A.isPendingAsyncValidation=function isc_Canvas_isPendingAsyncValidation(){return!isc.isAn.emptyObject(this.$75a)},isc.A.$75c=function isc_Canvas__registerAsyncValidation(_1){var _2=this.getFields()||[],_3=[_1.name],_4=_1.name;this.$75a[_4]=(this.$75a[_4]==null?1:this.$75a[_4]++);for(var i=0;i<_2.length;i++){var _6=_2[i];if(_6.name!=_4&&this.isFieldDependentOnOtherField(_6,_4)){var _7=_6.name;_3.add(_7);this.$75a[_7]=(this.$75a[_7]==null?1:this.$75a[_7]++)}}
return _3},isc.A.$75d=function isc_Canvas__clearAsyncValidation(_1){var _2=false;for(var i=0;i<_1.length;i++){this.$75a[_1[i]]--;if(this.$75a[_1[i]]==0){delete this.$75a[_1[i]];_2=true}}
if(_2&&this.$75b!=null){var _4=true;for(var i=0;i<this.$75b;i++){if(this.$75a[this.$75b[i]]>0){_4=false;break}}
if(_4){this.$75b=null;isc.clearPrompt()}}},isc.A.blockOnFieldBusy=function isc_Canvas_blockOnFieldBusy(_1){if(this.$75b!=null)return true;var _2=false;for(var _3 in this.$75a){_2=true;break}
if(!_2)return false;var _4=this.getFieldDependencies(_1)||[];_4.add(_1.name);var _5=[];for(var i=0;i<_4.length;i++){var _7=_4[i];if(this.$75a[_7]>0){_5.add(_7)}}
if(_5.length>0){this.$75b=_5;this.delayCall("showValidationBlockingPrompt");return true}
return false},isc.A.showValidationBlockingPrompt=function isc_Canvas_showValidationBlockingPrompt(){if(this.$75b)isc.showPrompt(isc.RPCManager.validateDataPrompt)},isc.A.enableField=function isc_Canvas_enableField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2){_2.disabled=false;this.redraw()}},isc.A.disableField=function isc_Canvas_disableField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2){_2.disabled=true;this.redraw()}},isc.A.showField=function isc_Canvas_showField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2)_2.show()},isc.A.hideField=function isc_Canvas_hideField(_1){if(_1==null||isc.isAn.emptyString(_1))return;var _2=this.getField(_1);if(_2)_2.hide()},isc.A.setFieldCanEdit=function isc_Canvas_setFieldCanEdit(_1,_2){if(_1==null||isc.isAn.emptyString(_1))return;var _3=this.getField(_1);if(_3){_3.canEdit=_2;this.redraw()}},isc.A.isOffline=function isc_Canvas_isOffline(){if(this.data&&this.data.$78c)return true;return false},isc.A.setSelectionComponent=function isc_Canvas_setSelectionComponent(_1,_2){if(!_1){if(this.selectionComponent!=null){this.ignore(this.selectionComponent,"selectionChanged");this.ignore(this.selectionComponent,"cellSelectionChanged")}
delete this.selectionComponent;if(this.valuesManager){this.ignore(this.valuesManager,"$71e")}}else{var _3=_1;if(isc.isA.String(_1))_1=window[_1];if(!_1||!isc.isA.Canvas(_1)||_1.dataArity!="multiple"){this.logWarn("setSelectionComponent() - selection component specified as:"+_3+" this is not a valid component");return}
if(!_1.getSelection){this.logWarn("setSelectionComponent() - specified selection component:"+_1+" does not support selection - ignoring");return}
if(!_2&&this.selectionComponent){if(this.selectionComponent==_1)return
if(this.isObserving(this.selectionComponent,"selectionChanged")){this.ignore(this.selectionComponent,"selectionChanged")}
if(this.isObserving(this.selectionComponent,"cellSelectionChanged")){this.ignore(this.selectionComponent,"cellSelectionChanged")}}
this.selectionComponent=_1;if(!this.selectionComponent.useCellRecords){this.observe(this.selectionComponent,"selectionChanged","observer.selectionComponentSelectionChanged(observed, record,state)")}else{this.observe(this.selectionComponent,"cellSelectionChanged","observer.selectionComponentCellSelectionChanged(observed, cellList)")}
if(_1.getSelectedRecord&&_1.getSelectedRecord()){this.$71d=_1.getPrimaryKeys(_1.getSelectedRecord())}}},isc.A.selectionComponentSelectionChanged=function isc_Canvas_selectionComponentSelectionChanged(_1,_2,_3){if(!_3){if(this.dataArity=="single"){_2=null}else{return}}
if(this.dataArity=="single"){this.setData(_2)}else{var _4=this.dataPath.split("/");this.setData(_2[_4[_4.length-1]]);if(this.dataArity=="multiple"&&isc.isA.Function(this.deselectAllRecords)){this.deselectAllRecords()}}},isc.A.selectionComponentCellSelectionChanged=function isc_Canvas_selectionComponentCellSelectionChanged(_1,_2){for(var i=0;i<_2.length;i++){var _4=_2[i],_5=this.selectionComponent.getCellRecord(_4[0],_4[1]);if(_1.cellIsSelected(_5))break;_5=null}
if(_5){this.$71d=_1.getPrimaryKeys(_5);this.editRecord(_5)}},isc.A.createFieldPickerWindowMenuItem=function isc_Canvas_createFieldPickerWindowMenuItem(_1){return{title:_1,component:this,click:function(){this.component.editFields()},icon:this.fieldVisibilitySubmenuIcon}},isc.A.editFields=function isc_Canvas_editFields(){var _1=this.fieldPickerWindow;if(_1)_1.show();else{var _2=isc.shallowClone(this.fieldPickerWindowProperties)||{};_2.fieldPickerProperties=_2.fieldPickerProperties||{};_2.fieldPickerProperties=isc.addProperties(_2.fieldPickerProperties,{dataBoundComponent:this,canEditTitles:this.canEditTitles});if(this.fieldVisibilitySubmenuIcon){_2.headerIconProperties=_2.headerIconProperties||{};_2.headerIconProperties.src=this.fieldVisibilitySubmenuIcon}
this.fieldPickerWindow=this.createAutoChild("fieldPickerWindow",_2);this.fieldPickerWindow.show()}},isc.A.requestsArePending=function isc_Canvas_requestsArePending(){return this.$166g!=0});isc.B._maxIndex=isc.C+263;isc.ClassFactory.defineClass("MathFunction","Class");isc.A=isc.MathFunction;isc.A.$65z={};isc.A=isc.MathFunction;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.registerFunction=function isc_c_MathFunction_registerFunction(_1){if(!this.$65z[_1.name]){this.$65z[_1.name]=_1}
var _2=_1.$152v();_2.name=_1.name.toLowerCase();_2.defaultSortPosition=-1;if(!this.$65z[_2.name]){this.$65z[_2.name]=_2}
var _3=_1.$152v();_3.name=_1.name.toUpperCase();_3.defaultSortPosition=-1;if(!this.$65z[_3.name]){this.$65z[_3.name]=_3}
var _4=_1.$152v();_4.name=(_1.name.substr(0,1).toUpperCase()+_1.name.substr(1));_4.defaultSortPosition=-1;if(!this.$65z[_4.name]){this.$65z[_4.name]=_4}},isc.A.getRegisteredFunctionNames=function isc_c_MathFunction_getRegisteredFunctionNames(){return isc.getKeys(this.$65z)},isc.A.getDefaultFunctionNames=function isc_c_MathFunction_getDefaultFunctionNames(){var _1=this.getDefaultFunctions(),_2=_1.makeIndex("name",false);return isc.getKeys(_2)},isc.A.getRegisteredFunctions=function isc_c_MathFunction_getRegisteredFunctions(){return isc.getValues(this.$65z)},isc.A.getDefaultFunctions=function isc_c_MathFunction_getDefaultFunctions(){var _1=this.getRegisteredFunctions(),_2=_1.findAll("defaultSortPosition",-1)||[];for(var i=0;i<_2.length;i++){var _4=_2[i];_1.remove(_4)}
_1.sortByProperties(["defaultSortPosition"],["true"]);return _1},isc.A.getRegisteredFunctionIndex=function isc_c_MathFunction_getRegisteredFunctionIndex(){var x=this.getRegisteredFunctions();var _2=x.makeIndex("name",false);return _2},isc.A.getDefaultFunctionIndex=function isc_c_MathFunction_getDefaultFunctionIndex(){return this.getDefaultFunctions().makeIndex("name",false)},isc.A.isRegistered=function isc_c_MathFunction_isRegistered(_1){if(this.$65z[_1])return true;return false});isc.B._maxIndex=isc.C+8;isc.A=isc.MathFunction.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.defaultSortPosition=-1;isc.B.push(isc.A.$152v=function isc_MathFunction__copy(_1){var _2={};for(var _3 in this){if(this.hasOwnProperty(_3)){_2[_3]=this[_3]}}
return this.getClass().create(_2,_1)});isc.B._maxIndex=isc.C+1;isc.MathFunction.registerFunction(isc.MathFunction.create({name:"max",description:"Maximum of two values",usage:"max(value1, value2)",defaultSortPosition:1,jsFunction:function(_1,_2){return Math.max(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"min",description:"Minimum of two values",usage:"min(value1, value2)",defaultSortPosition:2,jsFunction:function(_1,_2){return Math.min(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"clamp",description:"Value clamped to range specified",usage:"clamp(value1, value2)",defaultSortPosition:3,jsFunction:function(_1,_2,_3){return isc.Math.clamp(_1,_2,_3)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"round",description:"Round a value up or down, optionally providing <i>decimalDigits</i> as the maximum number of decimal places to round to.  For fixed or precision rounding, use <i>toFixed()</i> and <i>toPrecision()</i> respectively.",usage:"round(value,decimalDigits)",defaultSortPosition:4,jsFunction:function(_1,_2){if(_2){var _3=Math.pow(10,_2),_4=Math.round(_1*_3)/_3;return _4}
return Math.round(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"ceil",description:"Round a value up",usage:"ceil(value)",defaultSortPosition:5,jsFunction:function(_1){return Math.ceil(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"floor",description:"Round a value down",usage:"floor(value)",defaultSortPosition:6,jsFunction:function(_1){return Math.floor(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"abs",description:"Absolute value",usage:"abs(value)",defaultSortPosition:7,jsFunction:function(_1){return Math.abs(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"pow",description:"Value1 to the power of Value2",usage:"pow(value1, value2)",defaultSortPosition:8,jsFunction:function(_1,_2){return Math.pow(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"sqrt",description:"Square root of a value",usage:"sqrt(value)",defaultSortPosition:9,jsFunction:function(_1){return Math.sqrt(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"dateAdd",description:"Excel&trade;-compatible dataAdd function: adds a specified time interval to a date value",usage:"dateAdd(Date value, TimeUnit interval, number amount)",defaultSortPosition:10,jsFunction:function(_1,_2,_3){if(_1==null||!isc.isA.Date(_1))return null;var _4=_1.duplicate();isc.DateUtil.dateAdd(_4,_2,_3,1,_1.logicalDate);return _4}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"toPrecision",description:"Format a number to a length of <i>precision</i> digits, rounding or adding a decimal point and zero-padding as necessary.  Note that the values 123, 12.3 and 1.23 have an equal precision of 3.  Returns a formatted string and should be used as the outermost function call in a formula. For rounding, use <i>round()</i>.",usage:"toPrecision(value,precision)",defaultSortPosition:11,jsFunction:function(_1,_2){var _3=_1;if(isc.isA.String(_3))_3=parseFloat(_3);if(isNaN(_3))return _1;return _3.toPrecision(_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"toFixed",description:"Round or zero-pad a number to <i>digits</i> decimal places.  Returns a formatted string and should be used as the outermost function call in a formula.  To round values or restrict precision, use <i>round()</i> and <i>toPrecision()</i> respectively.",usage:"toFixed(value,digits)",defaultSortPosition:12,jsFunction:function(_1,_2){var _3=_1;if(isc.isA.String(_3))_3=parseFloat(_3);if(isNaN(_3))return _1;return _3.toFixed(_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"sin",description:"Sine of a value",usage:"sin(value)",defaultSortPosition:13,jsFunction:function(_1){return Math.sin(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"cos",description:"Cosine of a value",usage:"cos(value)",defaultSortPosition:14,jsFunction:function(_1){return Math.cos(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"tan",description:"Tangent of a value",usage:"tan(value)",defaultSortPosition:15,jsFunction:function(_1){return Math.tan(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"ln",description:"Natural logarithm of a value",usage:"ln(value)",defaultSortPosition:16,jsFunction:function(_1){return Math.log(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"log",description:"logarithm of a value with the specified <i>base</i>",usage:"log(base, value)",defaultSortPosition:17,jsFunction:function(_1,_2){return Math.log(_2)/Math.log(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"asin",description:"Arcsine of a value",usage:"asin(value)",defaultSortPosition:18,jsFunction:function(_1){return Math.asin(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"acos",description:"Arccosine of a value",usage:"acos(value)",defaultSortPosition:19,jsFunction:function(_1){return Math.acos(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"atan",description:"Arctangent of a value (-PI/2 to PI/2 radians)",usage:"atan(value)",defaultSortPosition:20,jsFunction:function(_1){return Math.atan(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"atan2",description:"Angle theta of a point (-PI to PI radians)",usage:"atan2(value1,value2)",defaultSortPosition:21,jsFunction:function(_1,_2){return Math.atan2(_1,_2)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"exp",description:"The value of E<sup>value</sup>",usage:"exp(value)",defaultSortPosition:22,jsFunction:function(_1){return Math.exp(_1)}}));isc.MathFunction.registerFunction(isc.MathFunction.create({name:"random",description:"Random number between 0 and 1",usage:"random()",defaultSortPosition:23,jsFunction:function(){return Math.random()}}));isc.Canvas.registerStringMethods({userAddedField:"field",selectionUpdated:"record,recordList",onFetchData:"criteria,requestProperties"});isc.defineClass("EdgedCanvas","Canvas");isc.A=isc.EdgedCanvas.getPrototype();isc.A.redrawOnResize=false;isc.A._redrawWithParent=false;isc.A.$jp=false;isc.A.$jo=false;isc.A.useClipDiv=false;isc.A.isSnapAlignCandidate=false;isc.A.overflow=isc.Browser.isMoz?isc.Canvas.VISIBLE:isc.Canvas.HIDDEN;isc.A.$ks=false;isc.A.$tb=0;isc.A.$td=0;isc.A.$tc=0;isc.A.$te=0;isc.A.$y0=["TL","T","TR","L","center","R","BL","B","BR"];isc.A.$98g={L:true,TL:true,BL:true};isc.A.$98h={R:true,TR:true,BR:true};isc.A.$920=["TR","T","TL","R","center","L","BR","B","BL"];isc.A.skinImgDir="images/edges/";isc.A.edgeImage="[SKIN]/rounded/frame/FFFFFF/6.png";isc.A.shownEdges={TL:true,T:true,TR:true,L:true,R:true,BL:true,B:true,BR:true};isc.A.edgeSize=6;isc.A=isc.EdgedCanvas.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$61h="<TD class='";isc.A.$61i="' ></TD>";isc.A.$y2="<TABLE role='presentation' CELLPADDING='0' CELLSPACING='0' STYLE='height:100%;width:100%;table-layout:fixed'><COL WIDTH=";isc.A.$y3="><COL><COL WIDTH=";isc.A.$98i=["background-size:",,," ",,,";"];isc.A.$4n=" class=";isc.A.addEdgeStyleSuffix=false;isc.A.forceMozRowHeight=true;isc.B.push(isc.A.initWidget=function isc_EdgedCanvas_initWidget(){this.invokeSuper(isc.EdgedCanvas,this.$oc);var _1=this.customEdges;if(_1){var _2=this.shownEdges={};if(_1.contains("T")){_2.T=_2.TL=_2.TR=true}
if(_1.contains("B")){_2.B=_2.BL=_2.BR=true}
if(_1.contains("L")){_2.L=_2.TL=_2.BL=true}
if(_1.contains("R")){_2.R=_2.TR=_2.BR=true}}
this.updateEdgeSizes()},isc.A.updateEdgeSizes=function isc_EdgedCanvas_updateEdgeSizes(){var _1=this.edgeSize;this.$y4=this.$du(this.edgeLeft,_1);this.$y5=this.$du(this.edgeRight,_1);this.$y6=this.$du(this.edgeTop,_1);this.$y7=this.$du(this.edgeBottom,_1);var _2=this.shownEdges,_3=this.edgeOffset;if(_2.L)this.$tb=this.$du(this.edgeOffsetLeft,_3,this.$y4);if(_2.R)this.$tc=this.$du(this.edgeOffsetRight,_3,this.$y5);if(_2.T)this.$td=this.$du(this.edgeOffsetTop,_3,this.$y6);if(_2.B)this.$te=this.$du(this.edgeOffsetBottom,_3,this.$y7);this.markForRedraw()},isc.A.getInnerWidth=function isc_EdgedCanvas_getInnerWidth(_1,_2,_3){var _4=this.invokeSuper(isc.EdgedCanvas,"getInnerWidth",_1,_2,_3);return _4-this.$tb-this.$tc},isc.A.getInnerHeight=function isc_EdgedCanvas_getInnerHeight(_1,_2,_3){var _4=this.invokeSuper(isc.EdgedCanvas,"getInnerHeight",_1,_2,_3);return _4-this.$td-this.$te},isc.A.getInnerHTML=function isc_EdgedCanvas_getInnerHTML(){var _1=isc.SB.create(),_2=this.edgeImage,_3=_2.lastIndexOf(isc.dot),_4=_2.substring(0,_3),_5=_2.substring(_3),_6=this.getImgURL(_4),_7="<TD HEIGHT=",_8="<TD",_9,_10,_11;if((!isc.Browser.isChrome||isc.Browser.version<56)&&!isc.Browser.isIE10&&!isc.Browser.isEdge&&!((isc.Browser.isStrict&&isc.Browser.isIE&&isc.Browser.version>=8)||(isc.Browser.isMoz&&isc.Browser.isUnix)))
{var _12=isc.EdgedCanvas.$y8;if(!_12){_12=isc.EdgedCanvas.$y8={width:"100%",height:"100%"};if(isc.Browser.isSafari)_12.align="middle";if(isc.Browser.isStrict&&!isc.Browser.isTransitional){_12.extraCSSText="display:block"}
if(isc.Browser.isTouch){_12.extraCSSText=((_12.extraCSSText==null?"":_12.extraCSSText+";")+"-webkit-touch-callout:none");_12.extraStuff=" oncontextmenu='javascript:return false;'"}}
_12.src=_2;var _13=this.imgHTML(_12);if(isc.Browser.isSafari){_13="<DIV style='overflow:hidden;width:100%;height:100%'>"+_13+"</DIV>"}
var _14=_13.lastIndexOf(isc.dot);_9=this.$oa+_13.substring(0,_14);_10=_13.substring(_14);_11="</TD>"}else{_9=" STYLE='background:url("+_6;_10=_5+");"
_11="'></TD>"}
if(this.edgeColor)_9+=isc.$ag+this.edgeColor;var _15=this.shownEdges;var _16=this.isRTL(),_17=_16?this.$y5:this.$y4,_18=_16?this.$y4:this.$y5;_1.append(this.$y2,_17,this.$y3,_18,this.$oa,"<TR HEIGHT=",this.$y6,this.$oa);this.$y9(_7,this.$y6,isc.px,_9,_10,_11,0,2,_15,_1);var _19=this.getHeight()-this.$y6-this.$y7;if(isc.Browser.isStrict&&(isc.Browser.isIE||isc.Browser.isOpera)){_1.append("</TR><TR HEIGHT=",_19,">")}else{_1.append("</TR><TR>")}
if(isc.Browser.isMoz||isc.Browser.isWebKit){this.$y9(_7,_19,isc.px,_9,_10,_11,3,5,_15,_1)}else{this.$y9(_7,null,isc.px,_9,_10,_11,3,5,_15,_1)}
_1.append("</TR><TR HEIGHT=",this.$y7,">");this.$y9(_7,this.$y7,isc.px,_9,_10,_11,6,8,_15,_1);_1.append("</TR></TABLE>");return _1.release(false)},isc.A.$y9=function isc_EdgedCanvas__writeEdgeCells(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10){var _11=this.isRTL()?this.$920:this.$y0;var _12=isc.Browser.isIE9||isc.Browser.isEdge;for(var i=_7;i<=_8;i++){var _14=_11[i],_15=null;if(_12&&_2!=null){if(this.$98g[_14]){this.$98i[1]=this.$y4;this.$98i[2]=isc.px;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}else if(this.$98h[_14]){this.$98i[1]=this.$y5;this.$98i[2]=isc.px;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}else if(_14!=isc.Canvas.CENTER){this.$98i[1]=100;this.$98i[2]=this.$o9;this.$98i[4]=_2;this.$98i[5]=_3;_15=this.$98i.join(isc.emptyString)}}
var _16=this.getEdgeStyleName(_14),_17=_16?this.$4n:null;if(_9[_14]||(this.showCenter&&_14==isc.Canvas.CENTER)){if(_2!=null){_10.append(_1,_2,_3)}else{_10.append(_1,"''")}
if(isc.Browser.isOpera){if(_14=="TL"||_14=="L"||_14=="BL"){_10.append(" width=",this.$y4)}else if(_14=="TR"||_14=="R"||_14=="BR"){_10.append(" width=",this.$y5)}}
_10.append(_17,_16,_4,this.getEdgePrefix(_14),isc.$ag,_14,_5,_15,_6)}else{if(this.centerBackgroundColor&&_14==isc.Canvas.CENTER){_10.append("<TD ",_17,_16," style='background-color:",this.centerBackgroundColor,"'></TD>")}else{_10.append(this.$61h,_17,_16,this.$61i)}}}},isc.A.getEdgeStyleName=function isc_EdgedCanvas_getEdgeStyleName(_1){if(this.edgeStyleName==null)return;if(!this.addEdgeStyleSuffix)return this.edgeStyleName;if(!this.$61j||this.$61j.base!=this.edgeStyleName){var _2=this.edgeStyleName;this.$61j={base:_2,TL:_2+"$61o",T:_2+"$61p",TR:_2+"$61q",L:_2+"$61r",C:_2+"$61s",R:_2+"$61t",BL:_2+"$61u",B:_2+"$61v",BR:_2+"$61w"}}
return this.$61j[_1]},isc.A.getEdgePrefix=function isc_EdgedCanvas_getEdgePrefix(_1){},isc.A.$ub=function isc_EdgedCanvas__handleResized(){if(!this.isDrawn()||this.$za)return;if(isc.Browser.isOpera){this.masterElement.bringToFront();return}
if(isc.Browser.isIE&&isc.Browser.isStrict){var _1=this.getHandle().firstChild.rows[1];this.$u9(_1.style,this.$o5,this.getHeight()-this.$y6-this.$y7);return}
if(isc.Browser.isWebKit){var _1=this.getHandle().firstChild.rows[1];var _2=Math.max(0,this.getHeight()-this.$y6-this.$y7);for(var i=0;i<_1.cells.length;i++){this.$u9(_1.cells[i].style,this.$o5,_2)}
return}
if(!isc.Browser.isMoz)return;var _4=this.getHandle().firstChild.rows[1].cells[1],_5=this.getHeight()-this.$y6-this.$y7;if(_5<0)_5=0;this.$u9(_4.style,this.$o5,_5);if(this.forceMozRowHeight){var _6=_4.parentNode.cells;this.$u9(_6[0].style,this.$o5,_5);this.$u9(_6[2].style,this.$o5,_5)}},isc.A.layoutChildren=function isc_EdgedCanvas_layoutChildren(_1,_2,_3){var _4=this.children;if(!_4)return;isc.Canvas.$b4.layoutChildren.call(this,_1,_2,_3);if(_4.length==0)return;var _5=_4[0];_5.setRect(this.$tb,this.$td,this.getInnerWidth(),this.getInnerHeight())},isc.A.addChild=function isc_EdgedCanvas_addChild(_1,_2,_3){isc.Canvas.$b4.addChild.call(this,_1,_2,_3);this.layoutChildren("addChild")},isc.A.draw=function isc_EdgedCanvas_draw(_1,_2,_3,_4){if(!this.readyToDraw())return this;if(this.masterElement){var _5=this.masterElement,_6=false;while(_5){if(_5.position==this.$411){_6=true;break}
_5=_5.parentElement}
if(!_6||isc.Page.isLoaded())this.fitToMaster();else isc.Page.setEvent("load",this,isc.Page.FIRE_ONCE,"fitToMaster")}
this.invokeSuper(isc.EdgedCanvas,"draw",_1,_2,_3,_4);this.$ub();return this},isc.A.fitToMaster=function isc_EdgedCanvas_fitToMaster(){if(this.destroyed)return;var _1=this.masterElement;if(_1.$uu){isc.Timer.setTimeout({target:this,methodName:"fitToMaster"},200);return}else if(_1.$rm){_1.adjustOverflow()}
var _2=_1.$ta();this.setRect(_1.getOffsetLeft()+_2.left,_1.getOffsetTop()+_2.top,Math.max(1,(_1.getVisibleWidth()-_2.left-_2.right)),Math.max(1,(_1.getVisibleHeight()-_2.top-_2.bottom)))},isc.A.redraw=function isc_EdgedCanvas_redraw(){this.Super("redraw",arguments);this.$ub();return this},isc.A.masterResized=function isc_EdgedCanvas_masterResized(){var _1=this.masterElement;if(this.masterElement.isAnimating([this.$do,this.$zb]))return;var _2=isc.Browser.isSafari;if(_2){this.delayCall("$663",[_1])}else{this.$663(_1)}},isc.A.$663=function isc_EdgedCanvas__sizeToMaster(_1){if(this.destroyed||_1!=this.masterElement)return;var _2=_1.$ta();this.resizeTo(Math.max(1,_1.getVisibleWidth()-_2.left-_2.right),Math.max(1,_1.getVisibleHeight()-_2.top-_2.bottom))},isc.A.setEdgeImage=function isc_EdgedCanvas_setEdgeImage(_1){if(this.edgeImage==_1)return;this.edgeImage=_1;this.markForRedraw("setEdgeImage")});isc.B._maxIndex=isc.C+17;isc.defineClass("DropShadow","EdgedCanvas");isc.A=isc.DropShadow.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.$114r=true;isc.A.skinImgDir="images/shared/shadows/";isc.A.edgeImage="[SKIN]ds.png";isc.A.isMouseTransparent=true;isc.A.shownEdges={center:true,TL:true,T:true,TR:true,L:true,R:true,BL:true,B:true,BR:true};isc.A.depth=4;isc.A.showShadow=false;isc.B.push(isc.A.initWidget=function isc_DropShadow_initWidget(){this.setDepth(this.depth);this.Super(this.$oc)},isc.A.setDepth=function isc_DropShadow_setDepth(_1){if(_1!=null)this.depth=_1;var _2=(this.softness||this.depth),_3=this.$zc!=_2;this.$zc=_2;this.edgeSize=2*this.$zc;var _4=this.$du(this.offset,Math.round(this.depth/2));this.$zd=this.$du(this.offsetX,_4);this.$ze=this.$du(this.offsetY,_4);this.updateEdgeSizes();if(this.isDrawn()){this.masterMoved();if(_3||this.isDirty())this.redraw();this.masterResized()}},isc.A.getEdgePrefix=function isc_DropShadow_getEdgePrefix(_1){if(_1!=isc.Canvas.CENTER)return this.$zc},isc.A.masterMoved=function isc_DropShadow_masterMoved(){var _1=this.visibility==isc.Canvas.HIDDEN,_2=this.masterElement,_3=_2.getOffsetLeft(),_4=_2.getOffsetTop();if(!_1){_3+=this.$zd-this.$zc;_4+=this.$ze-this.$zc}
this.moveTo(_3,_4)},isc.A.masterResized=function isc_DropShadow_masterResized(){if(this.visibility==isc.Canvas.HIDDEN)return;var _1=this.masterElement;this.resizeTo(_1.getVisibleWidth()+2*this.$zc,_1.getVisibleHeight()+2*this.$zc)},isc.A.fitToMaster=function isc_DropShadow_fitToMaster(){this.masterMoved();this.masterResized()},isc.A.setVisibility=function isc_DropShadow_setVisibility(_1,_2,_3,_4,_5){var _6=(_1!=this.visibility);this.invokeSuper(isc.DropShadow,"setVisibility",_1,_2,_3,_4,_5);if(_6){if(_1==isc.Canvas.HIDDEN){this.resizeTo(1,1);var _7=this.masterElement;this.moveTo(_7.getOffsetLeft(),_7.getOffsetTop())}else{this.fitToMaster()}}},isc.A.getCurrentCursor=function isc_DropShadow_getCurrentCursor(_1,_2,_3,_4){var _5=this.masterElement;if(_5&&_5.dragResizeFromShadow)this.canDragResize=_5.canDragResize;return this.invokeSuper(isc.DropShadow,"getCurrentCursor",_1,_2,_3,_4)},isc.A.prepareForDragging=function isc_DropShadow_prepareForDragging(_1,_2,_3,_4){var _5=this.masterElement;if(_5&&_5.dragResizeFromShadow)this.canDragResize=_5.canDragResize;return this.invokeSuper(isc.DropShadow,"prepareForDragging",_1,_2,_3,_4)});isc.B._maxIndex=isc.C+9;isc.ClassFactory.defineClass("Hover");isc.A=isc.Hover;isc.A.delay=500;isc.A.leftOffset=15;isc.A.topOffset=15;isc.A.hoverCanvasDefaults={defaultWidth:100,defaultHeight:1,baseStyle:"canvasHover",align:isc.Canvas.LEFT,valign:isc.Canvas.TOP,wrap:true,autoDraw:false};isc.A=isc.Hover;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.show=function isc_c_Hover_show(_1,_2,_3,_4){if(this.canvasObserver==null){this.canvasObserver=isc.Class.create({hoverCanvasResized:function(){var _5=isc.Hover.hoverCanvas;_5.placeNear(_5.getLeft(),_5.getTop())}})}
if(this.hoverCanvas&&this.canvasObserver.isObserving(this.hoverCanvas,"resized")){this.canvasObserver.ignore(this.hoverCanvas,"resized")}
if(isc.isA.Canvas(_1)){this.showingHoverComponent=true;this.hoverCanvas=_1;this.hoverCanvas.hide=function(){this.Super("hide",arguments);isc.Hover.hoverCanvasHidden()};if(_4!=null){_4.hoverCanvas=_1}}
if(!this.hoverCanvas)this.$zf();var _6=this.hoverCanvas;if(_1==null||_1==""){_6.hide();return}
if(this.$171a){isc.Page.clearEvent("mouseDown",this.$171a)}
if(_4&&_4.hideHoverOnMouseDown){this.$171a=isc.Page.setEvent("mouseDown",this,"once","hideHoverOnMouseDown")}
this.lastHoverCanvas=_4;if(!this.showingHoverComponent)_6.setContents(_1);if(_2==null)_2={};var _7=this.hoverCanvasDefaults;if(_6.setAlign)_6.setAlign(_2.align||_7.align);if(_6.setVAlign)_6.setVAlign(_2.valign||_7.valign);if(_6.setBaseStyle)_6.setBaseStyle(_2.baseStyle||_7.baseStyle);if(_6.setOpacity)_6.setOpacity(_2.opacity||_7.opacity);if(_6.setWrap)_6.setWrap(_2.wrap!=null?_2.wrap:_7.wrap);if(_2.moveWithMouse!=null)this.$zg=_2.moveWithMouse
else this.$zg=this.moveWithMouse;var _8=isc.EH.getX(),_9=isc.EH.getY(),_10=_2.left,_11=_2.top,_12=_2.width||(this.showingHoverComponent?_6.width:_7.defaultWidth),_13=_2.height||(this.showingHoverComponent?_6.height:_7.defaultHeight);if(_2.autoFitWidth){if(_2.wrap==false){this.logWarn("Hover.show(): autoFitWidth:true specified in conjunction with wrap:false. These settings are usually not intended to be used in conjunction - hovers with autoFitWidth enabled will typically allow content to wrap if the unwrapped content would exceed autoFitMaxWidth.")}
var _14=_1;if(isc.Button&&isc.isA.Button(_6)){_14=_6.$160g(_1,false)}
var _15=isc.Canvas.measureContent(_14,_6.baseStyle,false,true);if(_2.autoFitMaxWidth!=null){var _16=_2.autoFitMaxWidth;if(isc.isA.String(_16)){if(_16.endsWith("%")){var _17=parseInt(_16);_16=Math.round(isc.Page.getWidth()*(_17/100))}else{_16=parseInt(_16);if(isNaN(_16)){_16=_15}}}
_15=Math.min(_15,_16)}
if(_15>_12){this.logDebug("Hover shown with autoFitMaxWidth enabled. Hover will expand from specified width:"+_12+" to content width:"+_15);_12=_15}}
if(_10!=null||_11!=null){_10=_10?_10:_8+this.leftOffset;_11=_11?_11:_9+this.topOffset}else{_6.setRect(null,-9999,_12,_13);if(!_6.isDrawn())_6.draw();if(!_6.isVisible())_6.show();else _6.redrawIfDirty("placing hover");var _18=_3?_3:[_8-this.leftOffset,_9-this.topOffset,2*this.leftOffset,2*this.topOffset];var _19=_6.getPeerRect();var _20=isc.Canvas.$t7(_19[2],_19[3],_18,"bottom",false,"outside-right");_10=_20[0];_11=_20[1]}
_6.setRect(_10,_11,_12,_13);_6.bringToFront();if(!_6.isDrawn()||!_6.isVisible())_6.show();if(this.$zg){this.$zh=isc.Page.setEvent("mouseMove",function(){isc.Hover.$zi()})}
this.canvasObserver.observe(this.hoverCanvas,"resized","observer.hoverCanvasResized()");return},isc.A.hideHoverOnMouseDown=function isc_c_Hover_hideHoverOnMouseDown(){delete this.$171a;this.hide()},isc.A.hoverCanvasHidden=function isc_c_Hover_hoverCanvasHidden(){var _1=this.lastHoverCanvas;delete this.lastHoverCanvas;if(_1!=null){_1.$80l()}
if(this.$171a){isc.Page.clearEvent("mouseDown",this.$171a);delete this.$171a}},isc.A.hide=function isc_c_Hover_hide(){var _1=isc.Hover.hoverCanvas;if(_1!=null){if(this.canvasObserver.isObserving(_1,"resized")){this.canvasObserver.ignore(_1,"resized")}
if(this.$zh){isc.Page.clearEvent("mouseMove",this.$zh);delete this.$zh}
_1.hide();if(this.showingHoverComponent){if(!_1)return;delete this.hoverCanvas;this.showingHoverComponent=false}else{var _2=this.hoverCanvasDefaults;_1.setRect(0,-1000)}}},isc.A.$zf=function isc_c_Hover__makeHoverCanvas(){var _1=isc.addProperties({hide:function(){this.Super("hide",arguments);isc.Hover.hoverCanvasHidden()}},this.hoverCanvasDefaults);this.hoverCanvas=isc.Label.create(_1)},isc.A.$zi=function isc_c_Hover__moveWithMouse(){var _1=this.hoverCanvas.getPeerRect();var _2=isc.Canvas.$t7(_1[2],_1[3],this.getMousePointerRect(),"bottom",false,"outside-right");this.hoverCanvas.moveTo(_2[0],_2[1])},isc.A.getMousePointerRect=function isc_c_Hover_getMousePointerRect(){return[isc.EH.getX()-this.leftOffset,isc.EH.getY()-this.topOffset,2*this.leftOffset,2*this.topOffset]},isc.A.setAction=function isc_c_Hover_setAction(_1,_2,_3,_4){if(_4==null)_4=this.delay;if(this.isActive||_4==0){_2.apply((_1?_1:this),_3?_3:[]);this.isActive=true}
else{if(this.timer!=null)this.timer=isc.Timer.clear(this.timer);this.actionTarget=(_1?_1:this);this.action=_2;this.actionArgs=_3?_3:[];this.timer=isc.Timer.setTimeout({target:isc.Hover,methodName:"$zj"},_4)}},isc.A.$zj=function isc_c_Hover__doAction(){if(this.action&&!this.actionTarget.destroyed){this.action.apply(this.actionTarget,this.actionArgs)}
this.actionTarget=this.action=this.actionArgs=null;this.isActive=true},isc.A.clear=function isc_c_Hover_clear(){this.hide();if(this.timer!=null)this.timer=isc.Timer.clear(this.timer);this.actionTarget=this.action=this.actionArgs=null;this.isActive=false});isc.B._maxIndex=isc.C+10;isc.ClassFactory.defineClass("Sound","BaseWidget");isc.A=isc.Sound.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.init=function isc_Sound_init(){this.Super("init",arguments);if(this.ID!==false&&(this.ID==null||window[this.ID]!=this)){isc.ClassFactory.addGlobalID(this)}
if(this.src!=null){if(this.autoLoad)this.load();if(this.autoPlay)this.play()}},isc.A.setSrc=function isc_Sound_setSrc(_1){if(_1!=null){if(isc.isAn.Array(_1)){this.src=[];for(var i=0;i<_1.length;i++)this.src[i]=_1[i]}else{this.src=_1}
if(this.autoPlay){this.load();this.play()}else{this.playOnLoad=null;if(this.autoLoad)this.load();else this.$182e=null}}},isc.A.$182f=function isc_Sound__canPlay(){},isc.A.$182g=function isc_Sound__canPlayThrough(){this.$182e=null;if(this.$182h!=null)this.$182h();if(this.playOnLoad){this.playOnLoad=null;if(this.audioElement!=null)this.play()}else if(this.autoPlay&&this.audioElement!=null){this.play()}},isc.A.load=function isc_Sound_load(_1){var _2=this,_3="";this.$182e=true;if(this.src==null){isc.logWarn("'sound.src' is null. Please, set it first.");return}
if(_1!=null)this.$182h=_1;if(isc.isAn.Array(this.src)){for(var i=0;i<this.src.length;i++){_3+="<source id='"+isc.ClassFactory.getDOMID("sourceElement"+i)+"', src='"+this.src[i]+"', preload='none' />"}}else{_3="<source id='"+isc.ClassFactory.getDOMID("sourceElement0")+"', src='"+this.src+"', preload='none' />"}
if(this.audioElement==null){this.audioElement=document.createElement("audio");this.audioElement=isc.addProperties(this.audioElement,{id:isc.ClassFactory.getDOMID("audioElement"),preload:'none',onended:function(){if(_2.$182i!=null)_2.$182i()},oncanplay:function(){_2.$182f()},oncanplaythrough:function(){_2.$182g()},ontimeupdate:function(){_2.timeChanged(_2.getCurrentTime())},style:"visibility:hidden;position:absolute;left:0px;top:0px;"})}
this.audioElement.innerHTML=_3;this.audioElement.load()},isc.A.play=function isc_Sound_play(_1){if(_1!=null)this.$182i=_1;if(this.audioElement!=null){var _2=this.audioElement.readyState;if(_2==1||_2==3||_2==4){this.audioElement.play()}else{this.playOnLoad=true;if(!this.$182e)this.load()}}else{isc.logWarn("There is no audio element defined to play. You need to set the 'src' property and then call load().")}},isc.A.pause=function isc_Sound_pause(){if(this.audioElement!=null)this.audioElement.pause()},isc.A.reset=function isc_Sound_reset(){if(this.audioElement!=null&&this.audioElement.paused){this.audioElement.currentTime=0}},isc.A.timeChanged=function isc_Sound_timeChanged(_1){},isc.A.getDuration=function isc_Sound_getDuration(){if(this.audioElement!=null&&this.src!=null)return this.audioElement.duration;else return null},isc.A.getCurrentTime=function isc_Sound_getCurrentTime(){if(this.audioElement!=null&&this.src!=null)return this.audioElement.currentTime;else return null},isc.A.setCurrentTime=function isc_Sound_setCurrentTime(_1){if(this.audioElement!=null&&this.src!=null)this.audioElement.currentTime=_1});isc.B._maxIndex=isc.C+12;isc.A=isc.Sound;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.isSupported=function isc_c_Sound_isSupported(){return(isc.Browser.supportsHTML5Audio!=null)?true:false},isc.A.supportsFileType=function isc_c_Sound_supportsFileType(_1){if(_1==null)return false;var _2=this.$182j,_3=false;if(_2==null){_2=document.createElement('audio');this.$182j=_2}
if(this.$182k==null||this.$182k!=_1){this.$182k=_1;var _4=_2.canPlayType(_1);if(_4!="")_3=true;this.$182l=_3}else{_3=this.$182l}
return _3},isc.A.play=function isc_c_Sound_play(_1,_2){if(_1==null){isc.logWarn("'src' is null. Please, set it first.");return}
var _3=isc.Sound.create({src:_1,autoLoad:true});_3.play(_2)});isc.B._maxIndex=isc.C+3;if(!isc.Comm)isc.ClassFactory.defineClass("Comm");isc.A=isc.Comm;isc.A.$zk=/^[\$_a-zA-Z][\$\w]*$/;isc.A.BACKREF_PREFIX="$$BACKREF$$:";isc.A.indent="    ";isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.serialize=function isc_c_Comm_serialize(_1,_2){var _3={strictQuoting:false,dateFormat:"logicalDateConstructor"};if(_2!=null)_3.prettyPrint=_2;return isc.JSON.encode(_1,_3)});isc.B._maxIndex=isc.C+1;isc.ClassFactory.defineClass("JSON",null,null,true);isc.A=isc.JSON;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.encode=function isc_c_JSON_encode(_1,_2){return isc.JSONEncoder.create(_2).encode(_1)},isc.A.decode=function isc_c_JSON_decode(_1){return eval("("+_1+")")});isc.B._maxIndex=isc.C+2;isc.ClassFactory.defineClass("JSONEncoder");isc.A=isc.JSONEncoder;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.B.push(isc.A.$zm=function isc_c_JSONEncoder__serialize_remember(_1,_2,_3){if(_1&&_1.obj&&_1.obj.add)_1.obj.add(_2);if(_1&&_1.path&&_1.path.add)_1.path.add(_3)},isc.A.$42b=function isc_c_JSONEncoder__serialize_cleanNode(_1){var _2=_1["$42c"];if(_2!=null){var _3=window[_2];if(_3&&_3.parentProperty&&_1[_3.parentProperty]){_1=_3.getCleanNodeData(_1)}}
return _1},isc.A.$zl=function isc_c_JSONEncoder__serialize_alreadyReferenced(_1,_2){var _3=_1.obj.fastIndexOf(_2);if(_3==-1)return null;return _1.path[_3]},isc.A.$zp=function isc_c_JSONEncoder__serialize_addToPath(_1,_2){if(isc.isA.Number(_2)){return _1+"["+_2+"]"}else if(!isc.Comm.$zk.test(_2)){return _1+'["'+_2+'"]'}else{return _1+"."+_2}});isc.B._maxIndex=isc.C+4;isc.A=isc.JSONEncoder.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.serializeInstances="long";isc.A.dateFormat="xmlSchema";isc.A.escapeNonPrintable=true;isc.A.strictQuoting=true;isc.A.circularReferenceMode="path";isc.A.circularReferenceMarker="$$BACKREF$$";isc.A.prettyPrint=true;isc.B.push(isc.A.encode=function isc_JSONEncoder_encode(_1){this.objRefs={obj:[],path:[]};var _2=this.$eu(_1,this.prettyPrint?this.leadingIndent||"":null,null);this.objRefs=null;return _2},isc.A.encodeDate=function isc_JSONEncoder_encodeDate(_1){if(!_1.toSchemaDate){var _2=new Date(_1.getTime());_2.logicalDate=this.logicalDate;_2.logicalTime=this.logicalTime;_1=_2}
if(this.dateFormat=="dateConstructor"){return _1.$eu()}else if(this.dateFormat=="logicalDateConstructor"){if(_1.logicalTime){return"isc.Time.createLogicalTime("+_1.getHours()+", "+_1.getMinutes()+", "+_1.getSeconds()+", "+_1.getMilliseconds()+")"}else if(_1.logicalDate){return"isc.DateUtil.createLogicalDate("+_1.getFullYear()+", "+_1.getMonth()+", "+_1.getDate()+")"}else{return _1.$eu()}}else{return'"'+_1.toSchemaDate(null,this.trimMilliseconds)+'"'}},isc.A.$eu=function isc_JSONEncoder__serialize(_1,_2,_3){if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1)){if(_1==null)_1=null;else{if(window.SmartGWT.warnOnSerializeError){window.SmartGWT.throwUnconvertibleObjectException(_1,window.SmartGWT.serializeErrorMessage)}
_1=String.asSource(_1+"")}
return _1}
if(!_3){if(_1&&isc.isA.Function(_1.getID))_3=_1.getID();else _3=""}
if(_1==null)return null;if(isc.isA.String(_1)){if(this.escapeNonPrintable){return String.asJSONString(_1)}else{return _1.asSource!=null?_1.asSource():String.asSource(_1)}}
if(isc.isA.Function(_1))return null;if(isc.isA.Number(_1)||isc.isA.SpecialNumber(_1))return _1;if(isc.isA.Boolean(_1))return _1;if(isc.isA.Date(_1))return this.encodeDate(_1);if(isc.isAn.Instance(_1)||isc.isA.Class(_1)){if(this.serializeInstances=="skip")return null;else if(this.serializeInstances=="short")return isc.echoLeaf(_1)}
var _4=isc.JSONEncoder.$zl(this.objRefs,_1);if(_4!=null&&_3.contains(_4)){var _5=_3.substring(_4.length,_4.length+1);if(_5=="."||_5=="["||_5=="]"){var _6=this.circularReferenceMode;if(_6=="marker"){return"'"+this.circularReferenceMarker+"'"}else if(_6=="path"){return"'"+this.circularReferenceMarker+":"+_4+"'"}else{return null}}}
if(_1==window){this.logWarn("Serializer encountered the window object at path: "+_3+" - returning null for this slot.");return null}
if(_4==null)isc.JSONEncoder.$zm(this.objRefs,_1,_3);if(isc.isA.Function(_1.$eu))return _1.$eu(_2,this.objRefs,_3,_2);if(isc.isAn.Array(_1))return this.$zn(_1,_3,this.objRefs,_2);var _7;if(_1.getSerializeableFields){_7=_1.getSerializeableFields([],[])}else{_7=_1}
return this.$zo(_7,_3,this.objRefs,_2)},isc.A.$zn=function isc_JSONEncoder__serializeArray(_1,_2,_3,_4){var _5=isc.SB.create();_5.append("[");for(var i=0,_7=_1.length;i<_7;i++){var _8=_1[i];if(_4!=null)_5.append("\n",_4,isc.Comm.indent);var _9=isc.JSONEncoder.$zp(_2,i);var _10=this.$eu(_8,(_4!=null?_4+isc.Comm.indent:null),_9);_5.append(_10+",");if(_4!=null)_5.append(" ")}
_5=_5.release(false);var _11=_5.lastIndexOf(",");if(_11>-1)_5=_5.substring(0,_11);if(_4!=null)_5+="\n"+_4;_5+="]";return _5},isc.A.$zo=function isc_JSONEncoder__serializeObject(_1,_2,_3,_4){var _5=isc.SB.create(),_6;_1=isc.JSONEncoder.$42b(_1);try{for(var _7 in _1)break}catch(e){if(this.showDebugOutput){if(isc.isAn.XMLNode(_1))return isc.echoLeaf(_1);var _8;if(e.message){_8=(e.message.asSource!=null?e.message.asSource():String.asSource(e.message));return"{ cantEchoObject: "+_8+"}"}else{return"{ cantEchoObject: 'unspecified error' }"}}else return null}
_5.append("{");for(var _7 in _1){if(_7==null)continue;if(this.skipInternalProperties&&(isc.startsWith(_7,isc.$ag)||isc.startsWith(_7,isc.$75g)))continue;var _9=_1[_7];if(isc.isA.Function(_9))continue;var _10=isc.Browser.isSGWT?window.SmartGWT.isNativeJavaObject(_9):false;if(_7!=isc.gwtRef&&!_10&&isc.isAn.Instance(_9)&&this.serializeInstances=="skip")continue;var _11=_7.toString();if(this.strictQuoting||!isc.Comm.$zk.test(_11)){if(_11.contains('"')){_11='"'+this.convertToEncodedQuotes(_11)+'"'}else{_11='"'+_11+'"'}}
var _12=isc.JSONEncoder.$zp(_2,_7);var _13;if(_7==isc.gwtRef){if(!this.showDebugOutput)continue;_13=String.asSource("{GWT Java Obj}")}else if(_7==isc.gwtModule){if(!this.showDebugOutput)continue;_13=String.asSource("{GWT Module}")}else if(_10){_13=(_9==null?null:String.asSource(_9+""))}else{_13=this.$eu(_9,(_4!=null?_4+isc.Comm.indent:null),_12)}
if(_4!=null)_5.append("\n",_4,isc.Comm.indent);_5.append(_11,":"+_13,",");if(_4!=null)_5.append(" ")}
_5=_5.release(false);var _14=_5.lastIndexOf(",");if(_14>-1)_5=_5.substring(0,_14);if(_4!=null)_5+="\n"+_4;_5+="}";return _5},isc.A.convertToEncodedQuotes=function isc_JSONEncoder_convertToEncodedQuotes(_1){return _1.replace(String.$e0,"&quot;").replace(String.$ez,"&apos;")},isc.A.convertFromEncodedQuotes=function isc_JSONEncoder_convertFromEncodedQuotes(_1){return _1.replace(new RegExp("&quot;","g"),'"').replace(new RegExp("&apos;","g"),"'")});isc.B._maxIndex=isc.C+7;isc.addGlobal("clone",function(_1,_2){return isc.Comm.$360(_1)});isc.addGlobal("shallowClone",function(_1){return isc.Comm.$675(_1)});isc.A=isc.Comm;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.clone=isc.clone;isc.A.shallowClone=isc.shallowClone;isc.B.push(isc.A.$360=function isc_c_Comm__clone(_1){var _2;if(_1===_2)return _2;if(_1==null)return null;if(isc.isA.String(_1)||isc.isA.Boolean(_1)||isc.isA.Number(_1)||isc.isA.Function(_1))return _1;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1;if(isc.isA.Date(_1))return _1.duplicate();if(isc.isAn.Array(_1))return isc.Comm.$361(_1);if(isc.isA.Function(_1.clone)){if(isc.isA.Class(_1))return isc.echoLeaf(_1);return _1.clone()}
return isc.Comm.$362(_1)},isc.A.$361=function isc_c_Comm__cloneArray(_1){var _2=[];for(var i=0,_4=_1.length;i<_4;i++){_2[i]=isc.Comm.$360(_1[i])}
return _2},isc.A.$362=function isc_c_Comm__cloneObject(_1){var _2={};for(var _3 in _1){var _4=_1[_3];if(_3==isc.gwtRef||_3==isc.gwtModule)continue;_2[_3]=isc.Comm.$360(_4)}
return _2},isc.A.$675=function isc_c_Comm__shallowClone(_1){var _2;if(_1===_2)return _2;if(_1==null)return null;if(isc.Browser.isSGWT&&window.SmartGWT.isNativeJavaObject(_1))return _1;if(isc.isA.String(_1)||isc.isA.Boolean(_1)||isc.isA.Number(_1)||isc.isA.Function(_1))return _1;if(isc.isA.Date(_1))return _1.duplicate();if(isc.isAn.Array(_1))return isc.Comm.$676(_1);return isc.addProperties({},_1)},isc.A.$676=function isc_c_Comm__shallowCloneArray(_1){var _2=[];for(var i=0,_4=_1.length;i<_4;i++){if(isc.isAn.Array(_1[i]))_2[i]=_1[i];else _2[i]=isc.Comm.$675(_1[i])}
return _2});isc.B._maxIndex=isc.C+5;isc.defineClass("AutoTest");isc.A=isc.AutoTest;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.reportValuesAsString=false;isc.A.decimalPad=null;isc.A.decimalPrecision=6;isc.A.valueSeparator=" ";isc.A.fallback_valueOnlyField="$75w";isc.A.fallback_startMarker="[";isc.A.fallback_endMarker="]";isc.A.fallback_separator="||";isc.A.fallback_equalMarker="=";isc.A.slashMarker="$fs$";isc.A.robustLocatorWarning="If you are seeing unexpected results in recorded tests, it is likely that the application has been modified since the test was recorded. We would recommend re-recording your test script with the latest version of your application. Note that you may be able to avoid seeing this message in future by using the AutoChild subsystem or providing explicit global IDs to components whose function within the page is unlikely to change.";isc.B.push(isc.A.locatorsEqual=function isc_c_AutoTest_locatorsEqual(_1,_2){if(_1&&_2){_1=_1.replace(/^[^\/]*(\/\/.*?)[\/]*$/,"$1");_2=_2.replace(/^[^\/]*(\/\/.*?)[\/]*$/,"$1")}
return _1==_2},isc.A.getLocator=function isc_c_AutoTest_getLocator(_1,_2,_3){var _4=isc.EH.lastEvent,_5;if(_4){if(_1==null){_1=_4.nativeTarget;_5=true}
if(_3==null){_3=[isc.EH.getX(),isc.EH.getY()]}}
var _6;if(isc.isA.Canvas(_1)){_6=_1;_1=_6.getHandle()}else{_6=isc.AutoTest.locateCanvasFromDOMElement(_1)}
var _7=_6?_6.getLocator(_1,_5,_3):"";if(_2&&_7&&_7!=""&&_6.checkLocatorForNativeElement(_7,_1))
{_7=""}
return _7},isc.A.getTableCellValue=function isc_c_AutoTest_getTableCellValue(_1,_2,_3){var _4=isc.AutoTest.locateCanvasFromDOMElement(_1);if((isc.GridRenderer&&isc.isA.GridRenderer(_4))||(isc.ListGrid&&isc.isA.ListGrid(_4)))
{var _5=_4.getCellRecord(_2,_3);return _4.getCellValue(_5,_2,_3)}
return null},isc.A.getObjectLocator=function isc_c_AutoTest_getObjectLocator(_1){var _2=this.$90w(_1);var _3=_2.getLocator();if(_2==_1){return _3}
var _4=_2.getObjectLocator(_1);if(_4!=null)_3+="/"+_4;return _3},isc.A.getFormItemIconLocator=function isc_c_AutoTest_getFormItemIconLocator(_1,_2){var _3=_1;var _4=_3.getLocator();var _5=_3.getObjectLocator(_2);if(_5!=null)_4+="/"+_5;return _4},isc.A.getMenuItemLocator=function isc_c_AutoTest_getMenuItemLocator(_1,_2){var _3=_1;var _4=_3.getLocator();var _5=_3.getObjectLocator(_2);if(_5!=null)_4+="/"+_5;return _4},isc.A.getLocatorObjectType=function isc_c_AutoTest_getLocatorObjectType(_1){var _2=_1.substring(_1.lastIndexOf("/")+1);if(_2&&_2.startsWith("objectType=")){return _2.substring(11)}
return"Canvas"},isc.A.locateCanvasFromDOMElement=function isc_c_AutoTest_locateCanvasFromDOMElement(_1,_2){var _3=isc.EH.getEventTargetCanvas(null,_1);if(!_2||!isc.isA.DynamicForm(_3))return _3;var _4=this.locateFormItemFromDOMElement(_1,_3);return _4!=null?_4.containerWidget:_3},isc.A.locateFormItemFromDOMElement=function isc_c_AutoTest_locateFormItemFromDOMElement(_1,_2){if(!_2)_2=this.locateCanvasFromDOMElement(_1);if(!isc.isA.DynamicForm(_2))return null;var _3=isc.DynamicForm._getItemInfoFromElement(_1,_2);return _3?_3.item:null},isc.A.getRelativeLocator=function isc_c_AutoTest_getRelativeLocator(_1,_2){var _3=this.locateCanvasFromDOMElement(_2),_4=this.getRelativeCanvasLocator(_1,_3)+"/"+_3.getInteriorLocator(_2);return _4},isc.A.isRelativeLocator=function isc_c_AutoTest_isRelativeLocator(_1){return(!_1.startsWith("//"))},isc.A.getRelativeCanvasLocator=function isc_c_AutoTest_getRelativeCanvasLocator(_1,_2){if(_1==_2)return"";var _3=_2,_4=[];while(_3!=_1){var _5=_3.getLocatorParent();if(_5==null){this.logWarn("Unexpected error: attempting to get relative locator from baseComponent:"+_1+" and target:"+_2+". Unable to determine relationship between these objects.");return""}
var _6=_5.getChildLocator(_3);if(_6!=null)_4.add(_6);_3=_5}
var _7="";for(var i=_4.length-1;i>=0;i--){_7+=_4[i];if(i!=0)_7+="/"}
return _7},isc.A.getRelativeObjectLocator=function isc_c_AutoTest_getRelativeObjectLocator(_1,_2){var _3=this.$90w(_2);var _4=this.getRelativeCanvasLocator(_1,_3);if(_3==_2){return _4}
var _5=_3.getObjectLocator(_2);if(_5!=null)_4+="/"+_5;return _4},isc.A.$90w=function isc_c_AutoTest__getCanvasForSCObject(_1){if(_1.$75r!=null)_1=_1.$75r;if(_1.isSectionHeader){return _1.parentElement}
if(isc.FormItem&&isc.isA.FormItem(_1))return _1.form;if(isc.isA.Canvas(_1))return _1;this.logWarn("getRelativeLocatorObject() passed target object:"+this.echo(_1)+" This is not a recognized supported SmartClient object - expected to be a Canvas, FormItem or SectionStackSection only");return null},isc.A.getElement=function isc_c_AutoTest_getElement(_1){return this.getAttribute(_1,isc.Canvas.$95j)},isc.A.getObject=function isc_c_AutoTest_getObject(_1){return this.getAttribute(_1,isc.Canvas.$95k)},isc.A.getObjectContext=function isc_c_AutoTest_getObjectContext(_1){var _2=isc.AutoTest.getObject(_1);if(_2==null)return null;return this.$163r(_2,_1)},isc.A.getRelativeObjectContext=function isc_c_AutoTest_getRelativeObjectContext(_1,_2){var _3=isc.AutoTest.resolveRelativeObjectLocator(_1,_2);if(_3==null)return null;return this.$163r(_3,_2)},isc.A.$163r=function isc_c_AutoTest__getObjectContext(_1,_2){var _3={locator:_2,object:_1}
if(isc.isA.FormItem(_1)){_3.objectType="FormItem";_3.container=_1.containerWidget}else if(_1.isSectionHeader){_3.objectType="Section";if(_1.getSectionHeader){_3.object=_1.getSectionHeader()}
_3.container=_1.parentElement}else if(isc.isA.Canvas(_1)){_3.objectType="Canvas"}else{var _4=isc.AutoTest.getLocatorObjectType(_2);if(_4=="FormItemIcon"){_3.objectType=_4;_3.container=isc.AutoTest.getLocatorFormItem(_2)}else if(_4=="MenuItem"){_3.objectType=_4;_3.container=isc.AutoTest.getLocatorCanvas(_2)}}
return _3},isc.A.getValue=function isc_c_AutoTest_getValue(_1){return this.getAttribute(_1,isc.Canvas.$95l)},isc.A.isSelected=function isc_c_AutoTest_isSelected(_1){return this.getAttribute(_1,isc.Canvas.$1666)},isc.A.getAttribute=function isc_c_AutoTest_getAttribute(_1,_2){if(!_1)return null;_1=_1.replace(/^(scLocator|ScID)=/i,"");if(_1.startsWith("'")||_1.startsWith('"'))_1=_1.substring(1);if(_1.endsWith("'")||_1.endsWith('"'))_1=_1.substring(0,_1.length-1);if(!_1.startsWith("//")){if(_1.startsWith("ID=")||_1.startsWith("id=")){_1=_1.substring(3)}
_1='//*any*[ID="'+_1+'"]'}
var _3=_1.trim("/").split("/"),_4;var _5=_3[0];if(!_5)return null;_3=_3.slice(1);var _6={attribute:_2},_7=this.getBaseComponentFromLocatorSubstring(_5,_6);if(!_7)return null;return _7.getAttributeFromSplitLocator(_3,_6)},isc.A.resolveRelativeLocator=function isc_c_AutoTest_resolveRelativeLocator(_1,_2){var _3=_2.split("/");return _1.getAttributeFromSplitLocator(_3,{attribute:isc.Canvas.$95j})},isc.A.resolveRelativeObjectLocator=function isc_c_AutoTest_resolveRelativeObjectLocator(_1,_2){var _3=isc.isAn.Array(_2)?_2:_2.split("/");return _1.getAttributeFromSplitLocator(_3,{attribute:isc.Canvas.$95k})},isc.A.getPageCoords=function isc_c_AutoTest_getPageCoords(_1){var _2=this.getElement(_1);if(_2==null)return;var _3=this.locateCanvasFromDOMElement(_2);return _3?_3.getAutoTestLocatorCoords(_1,_2):null},isc.A.getBaseComponentFromLocatorSubstring=function isc_c_AutoTest_getBaseComponentFromLocatorSubstring(_1,_2){var _3=_1.match("(.*)\\[");var _4=_3?_3[1]:null;switch(_4){case"autoID":var _5=isc.AutoTest.parseLocatorFallbackPath(_1),_6=_5.config,_7="name",_8="Class";var _9=isc.Canvas.getCanvasFromFallbackLocator(_1,_6,isc.Canvas.$tw,_7,_8);if(_9==null){this.setLogFailureText(true,"there's no top level Canvas identifiable by name or Class from fallback locator '"+_1+"' for locator")}
return _9;case"testRoot":var _3=_1.match("testRoot\\[(.*)?\\]"),_10=_3?_3[1]:null;this.installLocatorConfiguration(_10,_2);if(this.testRoot==null){this.logWarn("Unable to process scLocators starting with "+this.$119l+"... when no test root canvas has been configured");return null}
return this.testRoot;case"Menu":if(!isc.Menu){this.setLogFailureText(true,"the Menu module is required to resolve locator");return null}
var _11=_1.match(/Menu\[level=(.*)(,.*)?\]/i),_12=_11?_11[1]:null;if(_12!=null){this.installLocatorConfiguration(_11[2],_2);var _13=isc.Menu.getMenuAtLevel(_12);if(_13==null){this.setLogFailureText(true,"there is no Menu corresponding to level '"+_12+"' for locator")}
return _13}
default:var _14=_4,_3=_1.match('\\[ID=[\\"\'](.*)[\'\\"](,.*)?\\]'),_15=_3?_3[1]:null;if(_15==null){this.setLogFailureText(true,"there appears to be a problem with the syntax for locator");return null}
this.installLocatorConfiguration(_3[2],_2);var _16=window[_15];if(!_16){this.setLogFailureText(true,"there is no "+_14+"with ID '"+_15+"' for locator");return null}
if(_16&&_14!="*any*"&&(!isc.isA[_14]||!isc.isA[_14](_16)))
{this.logWarn("AutoTest.getElement(): Component:"+_16+" expected to be of class:"+_14)}
return _16}},isc.A.installLocatorConfiguration=function isc_c_AutoTest_installLocatorConfiguration(_1,_2){if(!_1)return;var _3=_1.split(",");for(var i=0;i<_3.length;i++){var _5=_3[i].trim().match("([^=]*)=([^=]*)");if(_5)_2[_5[1]]=_5[2]}},isc.A.getLocatorCanvas=function isc_c_AutoTest_getLocatorCanvas(_1){if(_1==null||isc.isAn.emptyString(_1))return null;var _2=_1.split("/"),_3;if(_2==null||_2.length<3)return null;var _4=_2[2];var _5=_2.length;for(var i=3;i<_5;i++){_2[i-3]=_2[i]}
_2.length=_5-3;if(!_4)return null;var _7=this.getBaseComponentFromLocatorSubstring(_4);if(_7){var i=0,_8=_7.getChildFromLocatorSubstring(_2[i],i,_2);while(_8!=null){i++;_7=_8;_8=_7.getChildFromLocatorSubstring(_2[i],i,_2)}
return _7}
return null},isc.A.getLocatorFormItem=function isc_c_AutoTest_getLocatorFormItem(_1){if(_1==null||isc.isAn.emptyString(_1))return null;var _2=_1.split("/"),_3;if(_2==null||_2.length<3)return null;var _4=_2[2];var _5=_2.length;for(var i=3;i<_5;i++){_2[i-3]=_2[i]}
_2.length=_5-3;if(!_4)return null;var _7=this.getBaseComponentFromLocatorSubstring(_4);if(_7){var _8=_7.getChildFromLocatorSubstring(_2[0],0,_2);while(_8!=null){_2.removeAt(0);_7=_8;_8=_7.getChildFromLocatorSubstring(_2[0],0,_2)}}
if(isc.isA.DynamicForm(_7)){return _7.getItemFromSplitLocator(_2)}
return null},isc.A.createLocatorFallbackPath=function isc_c_AutoTest_createLocatorFallbackPath(_1,_2){var _3=[];for(var _4 in _2){var _5=_2[_4];if(isc.isA.String(_5)){_5=_5.replaceAll("/",this.slashMarker);_5=escape(_5)}
if(_4==this.fallback_valueOnlyField){_3.add(_5)}else{_3.add(_4+this.fallback_equalMarker+_5)}}
return _1+this.fallback_startMarker+_3.join(this.fallback_separator)+this.fallback_endMarker},isc.A.$1232=function isc_c_AutoTest__compareLocatorFallbackConfigValues(_1,_2){if(isc.isA.Number(_1)||isc.isA.Boolean(_1))_1=_1.toString();if(isc.isA.Number(_2)||isc.isA.Boolean(_2))_2=_2.toString();return _1==_2},isc.A.parseLocatorFallbackPath=function isc_c_AutoTest_parseLocatorFallbackPath(_1){var _2=_1.split(this.fallback_startMarker);if(_2==null||_2.length<2)return;var _3=_2[0],_1=_2[1].substring(0,_2[1].length-this.fallback_endMarker.length);var _4=_1.split(this.fallback_separator),_5={};for(var i=0;i<_4.length;i++){var _7=_4[i],_8=_7.indexOf(this.fallback_equalMarker),_9;if(_8==-1){_9=this.fallback_valueOnlyField}else{_9=_7.substring(0,_8);_7=_7.substring(_8+1)}
_7=unescape(_7);_7=_7.replaceAll(this.slashMarker,"/");_5[_9]=_7}
if(_2[2]!=null){var _7=_2[2].substring(0,_2[2].length-this.fallback_endMarker.length),_8=_7.indexOf(this.fallback_equalMarker),_10=_7.substring(0,_8),_11=_7.substring(_8+1);if(_11.startsWith("\""))_11=_11.substring(1,_11.length-1);_5[_10]=_11}
return{name:_3,config:_5}},isc.A.getObjectLocatorFallbackPath=function isc_c_AutoTest_getObjectLocatorFallbackPath(_1,_2,_3,_4){if(_3==null)_3={};if(_4==null)_4={title:"title",Class:"ClassName"};if(isc.isAn.Array(_4)){for(var i=0;i<_4.length;i++){var _6=_2.getProperty?_2.getProperty(_4[i]):_2[_4[i]];if(_6!=null&&!isc.isAn.emptyString(_6))_3[_4[i]]=_6}}else{for(var _7 in _4){var _6=_2.getProperty?_2.getProperty(_4[_7]):_2[_4[_7]];if(_6!=null&&!isc.isAn.emptyString(_6))_3[_7]=_6}}
return isc.AutoTest.createLocatorFallbackPath(_1,_3)},isc.A.logRobustLocatorWarning=function isc_c_AutoTest_logRobustLocatorWarning(){if(this.$75z)return;this.logWarn(this.robustLocatorWarning,"AutoTest");this.$75z=true},isc.A.createDetailViewerForTestResults=function isc_c_AutoTest_createDetailViewerForTestResults(_1,_2){var _3=isc.Browser.seleniumPresent;return isc.DetailViewer.create({ID:"isc_AutoTest_DetailViewer",left:_1.getWidth()-300,canDragReposition:true,width:280,showEmptyField:false,blockSeparator:"<BR>",autoDraw:true,fields:[{name:"result",valueMap:{failure:"<font style='color:red;'>failure</font>",disabled:"<font style='color:blue;'>disabled</font>"}},{name:"description",escapeHTML:true,formatCellValue:function(_5,_6){_5=_5.replace(/\s+/g," ");_5=_5.replace(/\<P\>/gi,"   ");var _4=!_3||!_6._autoAssignedID;if(_6.ID&&_4)_5=_6.ID+": "+_5;if(_5.length>250)_5=_5.substring(0,250)+"...";return _5}},{name:"detail",escapeHTML:true}],data:_2})},isc.A.setLogFailureForReturnValue=function isc_c_AutoTest_setLogFailureForReturnValue(_1,_2,_3,_4){var _5,_6=_1.emptyLocatorArray(_2)?"directly with":"with the locator suffix '"+_2.join("/")+"' of";_1.setLogFailureText(true,"there is no "+_4+" associated "+_6);return _3},isc.A.getAttributeDefault=function isc_c_AutoTest_getAttributeDefault(_1,_2){switch(_2){case isc.Canvas.$95j:return _1?_1.$1304():null;case isc.Canvas.$95k:return _1?_1:null;case isc.Canvas.$95l:case isc.Canvas.$1666:return}});isc.B._maxIndex=isc.C+37;isc.ApplyAutoTestMethods=function(){isc.Canvas.addClassMethods({$95j:"element",$95k:"object",$95l:"value",$1666:"selected",getFallbackPropertyMatch:function(_238,_32,_33,_239,_35){var _1=_32.scRole,_2=_32.Class,_3=_32.scClass||_32.Class,_4=_32[_238];if(_4==null)return;var _5=_33.findAll(_238,_4)||[];_5=_5.filter(this.isValidFallbackLocatorCandidate);if(_5.length==0)return;var _6;switch(_35){case"Class":if(_2){var _7=_5.findAll("Class",_2);if(_7!=null){_6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_239+" - returning widget with matching "+_238+" and ClassName:"+_6,"AutoTest")}
return _6}}}
case"scClass":if(_3){var _7=_5.findAll(isc.Class.compareScClassName,_3);if(_7!=null){if(_7.length==1||_6==null)
_6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_239+" - returning widget with matching "+_238+" and scClassName:"+_6,"AutoTest")}
return _6}}}
case"role":if(_1){var _7=_5.findAll("ariaRole",_1);if(_7!=null){if(_7.length==1||_6==null)
_6=_7[0];if(_7.length==1&&_6){if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_239+" - returning widget with matching "+_238+"  and role:"+_6,"AutoTest")}
return _6}}}
default:if(_5.length==1){if(_35!="none"){isc.AutoTest.logRobustLocatorWarning();this.logWarn("Locator string:"+_239+". Returning closest match:"+_5[0]+". This has the same "+_238+" as the recorded component but does not match class or role.","AutoTest")}else{if(this.logIsDebugEnabled("AutoTest")){this.logDebug("Locator string:"+_239+" - returning widget with matching "+_238+":"+_6,"AutoTest")}}
return _5[0]}else{this.logWarn("Locator string:"+_239+", attempt to match by "+_238+" failed -- multiple candidate components have this same "+_238+". Attempting to match by index instead.","AutoTest")}}},getCanvasFromFallbackLocator:function Canvas_getCanvasFromFallbackLocator
(_238,_32,_33,_34,_35,_239){var _8=_239&&_239.locatorMatching;var _9=_32.name;var _2=_32.Class,_3=_32.scClass||_32.Class,_1=_32.scRole;var _10;switch(_34){case"name":_10=this.getFallbackPropertyMatch("name",_32,_33,_238,_35);if(_10)return _10;case"title":_10=this.getFallbackPropertyMatch("title",_32,_33,_238,_35);if(_10)return _10;default:var _11,_12,_13;switch(_35){case"Class":if(_2&&_32.classIndex){var _14=_33.findAll("Class",_2);if(_14&&_14.length>0){_11=_14[parseInt(_32.classIndex)];if(_14.length==parseInt(_32.classLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_238+" - returning widget with matching ClassName / index by ClassName:"+_11,"AutoTest")}
return _11}}}
case"scClass":if(_3&&_32.scClassIndex){var _15=_33.findAll(isc.Class.compareScClassName,_3);if(_15&&_15.length>0){_12=_15[parseInt(_32.scClassIndex)];if(_15.length==parseInt(_32.scClassLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_238+" - returning widget with matching SmartClient superclass / index by ClassName:"+_12,"AutoTest")}
return _12}}}
case"role":if(_1&&_32.roleIndex){var _16=_33.findAll("ariaRole",_1);if(_16&&_16.length>0){_13=_16[parseInt(_32.roleIndex)];if(_16.length==parseInt(_32.roleLength)){if(this.logIsInfoEnabled("AutoTest")){this.logInfo("Locator string:"+_238+" - returning widget with matching role / index by role:"+_13,"AutoTest")}
return _13}}}
default:if((_35!="none"&&(_2||_3||_1))||(_32.length!=null&&(parseInt(_32.length)!=_33.length)))
{if(_8=="restrictConfig")break;isc.AutoTest.logRobustLocatorWarning()}
var _10=_11||_12||_13;if(_10==null){var _17=_32[isc.AutoTest.fallback_valueOnlyField];if(_17==null)_17=_32.index;_17=parseInt(_17);_10=_33[_17]}
if(_10){this.logWarn("Locator string:"+_238+" matching by index gave "+_10+". Reliability cannot be guaranteed for matching by index if the underlying application undergoes any changes.","AutoTest");return _10}}}
this.logDebug("AutoTest.getElement(): locator substring:"+_238+" parsed to fallback locator name:"+_9+", unable to find relevant child - may refer to inner element.","AutoTest")},isValidFallbackLocatorCandidate:function
Canvas_isValidFallbackLocatorCandidate(_238){return _238&&!_238.destroyed&&_238.isVisible()&&_238.isDrawn()}});isc.Class.addClassMethods({getCanvasLocatorFallbackPath:function Class_getCanvasLocatorFallbackPath(_9,_58,_238,_239,_240){if(_239==null)_239={};if(_240==null)_240={};else if(isc.isAn.Array(_240)){var _18={};for(var i=0;i<_240.length;i++){_18[_240[i]]=_240[i]}
_240=_18}
if(_240.title==null)_240.title="title";if(_240.scRole==null)_240.scRole="ariaRole";if(_240.name==null)_240.name="name";var _20=_58.getClass(),_21=_58.getClassName();_239.Class=_21;var _3;if(!_20.isFrameworkClass){_3=_20.$75y}
if(_3!=null)_239.scClass=_3;if(_238!=null&&_238.indexOf(_58)>=0){_239.index=_238.indexOf(_58);_239.length=_238.length;var _22=_238.findAll("Class",_21);_239.classIndex=_22.indexOf(_58);_239.classLength=_22.length;if(_3!=null){var _23=_238.findAll(isc.Class.compareScClassName,_3);_239.scClassIndex=_23.indexOf(_58);_239.scClassLength=_23.length}
if(_58.ariaRole!=null){var _24=_238.findAll("ariaRole",_58.ariaRole);_239.roleIndex=_24.indexOf(_58);_239.roleLength=_24.length}}
return isc.AutoTest.getObjectLocatorFallbackPath(_9,_58,_239,_240)}});isc.Class.addMethods({getChildLocatorStrategy:function class_getChildLocatorStrategy(_238){if(isc.AutoTest.locStrategyNames==null){isc.AutoTest.locStrategyNames={}}
var _25=isc.AutoTest.locStrategyNames[_238];if(_25==null){var _26=_238;if(isc.isA.String(this.$558[_238])){_26=this.$558[_238]}
_25=isc.AutoTest.locStrategyNames[_238]="locate"+_26.substring(0,1).toUpperCase()+_26.substring(1)+"By"}
return this[_25]},getChildLocatorTypeStrategy:function class_getChildLocatorTypeStrategy(_238){if(isc.AutoTest.locStrategyTypes==null){isc.AutoTest.locStrategyTypes={}}
var _25=isc.AutoTest.locStrategyTypes[_238];if(_25==null){var _26=_238;if(isc.isA.String(this.$558[_238])){_26=this.$558[_238]}
_25=isc.AutoTest.locStrategyTypes[_238]="locate"+_26.substring(0,1).toUpperCase()+_26.substring(1)+"Type"}
return this[_25]},getAutoChildLocator:function class_getAutoChildLocator(_238){if(this.$542){var _27=_238.getID();for(var _28 in this.$542){var _29=this.$542[_28];if(_29.contains(_27)){if(_238==this[_28])return _28;else{var _30=[];for(var i=0;i<_29.length;i++){_30[i]=window[_29[i]]}
return this.getCanvasLocatorFallbackPath(_28,_238,_30)}}}}
return null},getCanvasFromFallbackLocator:function class_getCanvasFromFallbackLocator
(_238,_32,_33,_34,_35,_239){return isc.Canvas.getCanvasFromFallbackLocator(_238,_32,_33,_34,_35,_239)},getChildFromFallbackLocator:function class_getChildFromFallbackLocator(_238,_59,_239){var _31=_59.name,_32=_59.config;if(this==isc.AutoTest.testRoot&&this.getScClassName()=="Canvas"){if(_31=="member")_31="child"}
var _33=this.getFallbackLocatorCandidates(_31);if(_33&&_33.length>0){var _34=this.getChildLocatorStrategy(_31);if(_34==null)_34="name";var _35=this.getChildLocatorTypeStrategy(_31);if(_35==null)_35="Class";var _10=this.getCanvasFromFallbackLocator(_238,_32,_33,_34,_35,_239);if(_10!=null)return _10}
this.logDebug("AutoTest.getElement(): locator substring:"+_238+" parsed to fallback locator name:"+_31+", unable to find relevant child - may refer to inner element.","AutoTest")},getFallbackLocatorCandidates:function class_getFallbackLocatorCandidates(_9){var _33;if(this.$542!=null&&this.$542[_9]!=null){var _36=this.$542[_9];_33=[];for(var i=0;i<_36.length;i++){_33[i]=window[_36[i]]}}else if(isc.isA.String(this.$558[_9])){_33=this[this.$558[_9]]}else if(this[_9]&&isc.isAn.Array(this[_9])){_33=this[_9]}
return _33},getCanvasLocatorFallbackPath:function class_getCanvasLocatorFallbackpath
(_9,_58,_238,_239,_240){return isc.Canvas.getCanvasLocatorFallbackPath(_9,_58,_238,_239,_240)},setLogFailureText:function class_setLogFailureText(_91,_73,_74){var _37=isc.Class.getPrototype().setLogFailureText.caller||arguments.callee.caller,_38=_37.name||isc.Func.getName(_37,true),_39=_38.replace(/^.*[_]+([^_]+)/,"\137$1")+"Log";if(isc.AutoTest[_39])return;isc.AutoTest[_39]=this.$130m(_91,_73,_74)},$130k:function class__getDescription(_91){var _40=false,_41=this.hasStableID(),_42=this.getScClassName();if(_91==true){_91=false;_40=true}
if(_41)_42+=" with ID "+this.ID;else if(!isc.isA.String(_91))_91=this.getLocator();if(_91)_42+=" identified by "+_91;if(_40)_42+=isc.AutoTest.$130l(_91);return _42},$130m:function class__getLogFailureText(_91,_73,_74){var _42="the "+this.$130k(_91);if(_74&&!_74.match(/^[.,;:\\s]/))_74=" "+_74;if(_73)_42=_73+" "+_42;if(_74)_42+=_74;return _42},$549:["//",,'[ID="',,'"]'],emptyLocatorArray:function class_emptyLocatorArray(_141){return _141==null||_141.length==0||(_141.length==1&&_141[0]=="")},hasStableID:function class_hasStableID(){if(this._autoAssignedID)return false;var _43=this.creator;if(!_43&&this._generated){_43=this.locatorParent||this.parentElement}
if(_43!=null)return _43.hasStableID();return true},hasStableLocalID:function class_hasStableLocalID(){if(this.$177g)return true;return this.hasStableID()}});isc.Canvas.addMethods({getLocator:function canvas_getLocator(_62,_238,_139){var _44=this.getLocatorInternal();if(!_62)return _44;return[_44,this.getInteriorLocator(_62,_238,_139)].join("/")},getLocatorInternal:function canvas_getLocatorInternal(_238,_239){var _45,_46;var _47=_238?null:isc.AutoTest.testRoot;if(_47!=this){if(this._generated||this.locatorParent||this.creator||!this.hasStableID()){_45=this.getLocatorParent()}
if(_47!=null&&_45==null){if(!_239){_239=true;_46=this.getLocatorInternal(true)}
_45=this.getLocatorParent()}}
var _44;if(_45==null){_44=this.getLocatorRoot()}else{_44=_45.getLocatorInternal(false,_239);var _48=_45.getChildLocator(this);if(_48!=null)_44+="/"+_48}
return _46!=null&&!_44.startsWith(isc.AutoTest.$119l)?_46:_44},getObjectLocator:function canvas_getObjectLocator(_238){},getLocatorRoot:function canvas_getLocatorRoot(){if(!this.locatorRoot){if(this==isc.AutoTest.testRoot){this.locatorRoot=isc.AutoTest.$119l}else if(!this.hasStableID()&&this.parentElement==null){this.locatorRoot="//"+isc.Canvas.getCanvasLocatorFallbackPath("autoID",this,isc.Canvas.$tw)}else{this.$549[1]=this.getClassName();this.$549[3]=this.getID();this.locatorRoot=this.$549.join(isc.emptyString)}}
return this.locatorRoot},containsLocatorChild:function canvas_containsLocatorChild(_58){if(this.namedLocatorChildren!=null){for(var i=0;i<this.namedLocatorChildren.length;i++){var _9=this.namedLocatorChildren[i];if(isc.isAn.Object(_9))_9=_9.attribute;if(_58==this[_9]){return true}}}
return false},getLocatorParent:function canvas_getLocatorParent(){if(this.locatorParent&&this.locatorParent.containsLocatorChild&&this.locatorParent.containsLocatorChild(this))
{return this.locatorParent}
if(this.creator&&(isc.isA.Canvas(this.creator)||isc.isA.FormItem(this.creator))){var _49=this.creator.getAutoChildLocator(this);if(_49==null){this.logInfo("Locator code failed to find relationship between parent:"+this.creator.getID()+" and autoChild:"+this.getID(),"AutoTest")}else{return this.creator}}
return this.masterElement||this.parentElement},$55a:[,"[",,'][Class="',,'"]'],getChildLocator:function canvas_getChildLocator(_58){if(_58==this.hscrollbar){return"hscrollbar"}
if(_58==this.vscrollbar){return"vscrollbar"}
if(_58.creator==this){var _50=this.getAutoChildLocator(_58);if(_50)return _50}
return this.getStandardChildLocator(_58)},checkLocatorForNativeElement:function canvas_checkLocatorForNativeElement(_91,_62){if(_62==null||_91==null)return false;return(isc.EventHandler.eventHandledNatively("mousedown",_62,true)&&(isc.AutoTest.getElement(_91)!=_62))},getNamedLocatorChildString:function canvas_getNamedLocatorChildString(_58){if(_58.locatorParent==this&&this.namedLocatorChildren){for(var i=0;i<this.namedLocatorChildren.length;i++){var _9=this.namedLocatorChildren[i],_25=_9;if(isc.isA.Object(_9)){_25=_9.attribute,_9=_9.name}
if(_58==this[_25]){return _9}}}},getStandardChildLocator:function canvas_getStandardChildLocator(_58){var _51=this.getNamedLocatorChildString(_58);if(_51)return _51;if(_58.getMasterCanvas()==this){return this.getCanvasLocatorFallbackPath("peer",_58,this.peers)}else if(_58.getParentCanvas()==this){return this.getCanvasLocatorFallbackPath("child",_58,this.children)}else{this.logWarn("unexpected error - failed to find relationship between parent:"+this.getID()+" and child:"+_58.getID());return _58.getLocatorRoot()}},getInteriorLocator:function canvas_getInteriorLocator(_62,_238,_139){if(_62&&this.useEventParts){var _52=this.getElementPart(_62);if(_52!=null&&_52.part!=null){return(_52.partID&&_52.partID!=isc.emptyString)?_52.part+"_"+_52.partID:_52.part}}
if(_139&&this.canDragResize){var _53=this.getEventEdge(null,_139);if(_53)return _53}
return isc.emptyString},getAttributeFromSplitLocator:function canvas_getAttributeFromSplitLocator(_141,_238){var _54=_238.attribute,_55=this.getChildFromLocatorSubstring(_141[0],0,_141,_238);if(_238.value!=null)return _238.value;if(_55){_141.removeAt(0);var _56=_55.getAttributeFromSplitLocator(_141,_238);if(_56!=null||_56===null&&(isc.Canvas.$95l==_54||isc.Canvas.$1666==_54))
{return _56}
if(_238.locatorMatching!="permitSuffix"){_55.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify any valid attribute of","and permitSuffix mode is not active");return _56}}else{if(_141[0]&&!isc.isA.DynamicForm(this)&&_238.locatorMatching=="restrictSuffix")
{this.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify a valid child of","and restrictSuffix mode is active");return null}}
if(_54==isc.Canvas.$95k&&(!isc.DynamicForm||!isc.isA.DynamicForm(this))&&(!isc.DrawPane||!isc.isA.DrawPane(this))){return this}
return this.getInnerAttributeFromSplitLocator(_141,_238)},getChildFromLocatorSubstring:function canvas_getChildFromLocatorSubstring
(_238,_17,_141,_239){if(_238==null||_238=="")return null;if(isc.isA.Canvas(this[_238])){return this[_238]}
if(this.namedLocatorChildren!=null){var _57=this.namedLocatorChildren.find("name",_238);if(_57!=null){var _58=this[_57.attribute];if(isc.isA.Canvas(_58))return _58;this.logWarn("Locator substring:"+_238+" remaps to attribute:"+_57.attribute+" but no canvas exists under that attribute name.","AutoTest")}}
var _59=isc.AutoTest.parseLocatorFallbackPath(_238);if(_59!=null){var _55=this.getChildFromFallbackLocator(_238,_59,_239);if(_55==null){this.setLogFailureText(true,null,"has no child identifiable by the fallback locator '"+_238+"'")}
return _55}
return null},$558:{peer:"peers",child:"children"},$165x:function(_141){var _60=_141[0].split("_"),_61={part:_60[0],partID:_60[1]};var _62=this.getPartElement(_61);if(_62)return _62;if(this.$126x(_61.part))return this.$1304()},getInnerAttributeFromSplitLocator:function canvas_getInnerAttributeFromSplitLocator(_141,_238){if(_238.attribute==isc.Canvas.$95l||_238.attribute==isc.Canvas.$1666)
{if(isc.Label&&isc.isA.Label(this)||(isc.HTMLFlow&&isc.isA.HTMLFlow(this))&&(isc.EventWindow&&isc.isA.EventWindow(this.parentElement)))
{var _63=this.getContents();if(_63)return _63}
this.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify any meaningful part of");return}
if(!this.emptyLocatorArray(_141)){if(_141.length==1){var _64,_62=this.$165x(_141);if(_64!==_62)return _62}
if(_238.locatorMatching!="permitSuffix"){this.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify any AutoChild or Event Part of","and permitSuffix mode is not active");return null}}
return isc.AutoTest.getAttributeDefault(this,_238.attribute)},getAutoTestLocatorCoords:function canvas_getAutoTestLocatorCoords(_91,_62){if(_91==null||_62==null)return null;if(this.getHandle()==_62)_62=this.getClipHandle();var _65=isc.Element.getElementRect(_62);var _66=_65[0],_67=_65[2];var _68=_65[1],_69=_65[3];var _70=_91.split("/").last(),_71=this.$126x(_70);if(_71&&_70.contains("B"))_68+=_69;else if(!_71||!_70.contains("T"))_68+=Math.floor(_69/2);if(_71&&_70.contains("R"))_66+=_67;else if(!_71||!_70.contains("L"))_66+=Math.floor(_67/2);return[_66,_68]},$1304:function canvas__getHandleAndLogFailure(){for(var _58=this;_58.parentElement;_58=_58.parentElement){if(_58.isPendingDestroy()){this.setLogFailureText(true,"the canvas represented by","is or has a parent queued for destroy - its DOM element handle is considered invalid");return null}}
var _72=this.getHandle();if(_72!=null)return _72;var _73="null",_74;if(!this.isDrawn())_74="which is not drawn";else if(!this.handleDrawn())_73="not drawn";_73="the DOM element handle is "+_73+" for";this.setLogFailureText(true,_73,_74);return null},$1667:function(_119,_120,_152){var _75=this.getTotalRows(),_76=this.fields.length;if(_119<0||_119>=_75||_120<0||_120>=_76)return;var _77=this.selection;if(!_77)return;if(_77.cellIsSelected){return _77.cellIsSelected(_119,_120)}else if(_152){return _77.isSelected(_152)}},$126x:function canvas__isValidEdge(_238){var _78=this.edgeCursorMap;return _238&&_78!=null&&_78[_238]!=null},$124j:function canvas__isProcessingDone(_238){if(_238&&!this.isDrawn())return true;return isc.AutoTest.isCanvasDone(this)!=false}});if(isc.Scrollbar){isc.Scrollbar.addMethods({getPartElement:function scrollbar_getPartElement(_52){if(_52.part=="start"){return this.getImage(this.startImg.name)}else if(_52.part=="end"){return this.getImage(this.endImg.name)}
return this.Super("getPartElement",arguments)}})}
if(isc.Layout){isc.Layout.addProperties({getStandardChildLocator:function canvas_getStandardChildLocator(_58){var _51=this.getNamedLocatorChildString(_58);if(_51)return _51;if(this.members.contains(_58)){return this.getCanvasLocatorFallbackPath("member",_58,this.members)}
return this.Super("getStandardChildLocator",arguments)},$558:{member:"members",peer:"peers",child:"children"}})}
if(isc.Window){isc.Window.addProperties({containsLocatorChild:function window_containsLocatorChild(_58){if(this.items&&this.items.contains(_58))return true;return this.Super("containsLocatorChild",arguments)},getStandardChildLocator:function window_getStandardChildLocator(_58){if(this.items&&this.items.contains(_58)){var _79=this.$55a;_79[0]="item";_79[2]=this.items.indexOf(_58);_79[4]=_58.getClassName();return _79.join(isc.emptyString)}
return this.invokeSuper(isc.Window,"getStandardChildLocator",_58)},$558:{item:"items",member:"members",peer:"peers",child:"children"}})}
if(isc.Dialog){isc.Dialog.addProperties({$130k:function dialog__getDescription(_91){var _80=this.title||"",_81=this.message||"",_42=this.Super("$130k",arguments);if(_80!="")_42="'"+_80+"' "+_42;if(this.isModal)_42="modal "+_42;if(_81!="")_42+=" with message \""+_81+"\"";return _42}})}
if(isc.SectionStack){isc.ImgSectionHeader.changeDefaults("$558",{item:"items"});isc.SectionHeader.changeDefaults("$558",{item:"items"});isc.SectionStack.changeDefaults("$558",{section:"sections"});isc.SectionStack.addProperties({getObjectLocator:function sectionStack_getObjectLocator(_238){if(_238.getSectionHeader)_238=_238.getSectionHeader();if(_238.isSectionHeader){var _82=this.getStandardChildLocator(_238);_82+="/objectType=Section";return _82}
return this.Super("getObjectLocator",arguments)},getStandardChildLocator:function sectionStack_getStandardChildLocator(_58){var _83=this.sections||[],_84;for(var i=0;i<_83.length;i++){var _85=_83[i].items,_86,_87;if(_58==_83[i]){_86=_58}else if(_85&&_85.contains(_58)){_86=_83[i];_87=_58}
if(_86!=null){_84=this.getCanvasLocatorFallbackPath("section",_86,this.sections)}
if(_87!=null){_84+="/"+this.getCanvasLocatorFallbackPath("item",_87,_86.items)}
if(_84!=null)return _84}
return this.Super("getStandardChildLocator",arguments)}});isc.SectionHeader.addProperties({getAttributeFromSplitLocator:function sectionHeader_getAttributeFromSplitLocator
(_141,_238){if(!this.emptyLocatorArray(_141)&&_141[0]=="background"){_141.removeAt(0)}
return this.Super("getAttributeFromSplitLocator",arguments)}})}
if(isc.StretchImg){isc.StretchImg.addProperties({getInteriorLocator:function stretchImg_getInteriorLocator(_62,_238){var _88=_62,_72=this.getHandle(),_89=this.getCanvasName();while(_62&&_62!=_72&&_62.getAttribute){var _27=_62.getAttribute("name");if(_27&&_27.startsWith(_89)){return _27.substring(_89.length)}
_62=_62.parentNode}
return this.Super("getInteriorLocator",[_88,_238])},getInnerAttributeFromSplitLocator:function stretchImg_getInnerAttributeFromSplitLocator(_141,_238){if(_238.attribute==isc.Canvas.$95j){if(!this.emptyLocatorArray(_141)&&_141.length==1){var _90=this.getImage(_141[0]);if(_90)return _90}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)}})}
if(isc.Slider){isc.Slider.addMethods({getInteriorLocator:function slider_getInteriorLocator(_62,_238,_139){var _91=this.Super("getInteriorLocator",_62,_238);if(_91==isc.emptyString&&_139!=null){var _92=this.$1260(false,_139);if(_92)_91="targetValue["+_92+"]"}
return _91},getInnerAttributeFromSplitLocator:function slider_getInnerAttributeFromSplitLocator(_141,_238){switch(_238.attribute){case isc.Canvas.$95j:if(_141.length==1||_141.length==2&&_141[0].startsWith("track[")){if(_141[_141.length-1].startsWith("targetValue[")){return this.$1304()}}
break;case isc.Canvas.$95l:return this.getValue()}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function slider_getAutoTestLocatorCoords(_91,_62){if(_91==null||_62==null)return null;var _93=_91.split("/").last();if(_93.startsWith("targetValue[")){var _94=parseFloat(_93.replace(/.*\[([\d-+.eE]+)\]$/,"$1"));if(isc.isA.Number(_94)){var _95=this.$1261(_94);if(this.getHandle()==_62)_62=this.getClipHandle();var _65=isc.Element.getElementRect(_62);var _66=_65[0],_67=_65[2];var _68=_65[1],_69=_65[3];if(this.vertical){return[_66+Math.floor(_67/2),_68+Math.min(_95,_69)]}else{return[_66+Math.min(_95,_67),_68+Math.floor(_69/2)]}}}
return this.Super("getAutoTestLocatorCoords",arguments)},getChildFromLocatorSubstring:function(_238,_17,_141,_239){if(_238==null)return null;var _54=_239.attribute;if((_238.startsWith("thumb[")&&_54==isc.Canvas.$95l)||_238.startsWith("track["))
{if(_141.length>_17+1&&_141[_17+1].startsWith("targetValue["))
{return null}}
return this.Super("getChildFromLocatorSubstring",arguments)}});isc.Slider.changeDefaults("trackDefaults",{getInnerAttributeFromSplitLocator:function sliderTrack_getInnerAttributeFromSplitLocator(_141,_238){if(!isc.isA.StretchImg(this)&&_141.length>0&&(_141[0]=="stretch"||_141[0]=="start"||_141[0]=="end"))
{_141=[]}
return this.Super("getInnerAttributeFromSplitLocator",[_141,_238],arguments)}})}
if(isc.DynamicForm){isc.DynamicForm.addProperties({getInteriorLocator:function dynamicForm_getInteriorLocator(_62){var _96=isc.DynamicForm._getItemInfoFromElement(_62,this);if(!_96.item)return this.Super("getInteriorLocator",arguments);var _87=_96.item,_91=[this.getItemLocator(_87),'/'];if(_96.overElement)_91[_91.length]="element";else if(_96.overValueIcon)_91[_91.length]="valueicon";else if(_96.overTitle)_91[_91.length]="title";else if(_96.overTextBox)_91[_91.length]="textbox";else if(_96.overControlTable)_91[_91.length]="controltable";else if(_96.overInlineError)_91[_91.length]="inlineerror";else if(_96.overIcon)_91[_91.length]="[icon=\""+_96.overIcon+"\"]";return _91.join(isc.emptyString)},getItemLocator:function dynamicForm_getItemLocator(_87){if(_87.parentItem&&(_87.parentItem!=this)){return this.getItemLocator(_87.parentItem)+"/"+_87.parentItem.getItemLocator(_87)}
var _97={};if(_87.name!=null&&!_87._autoAssignedName)_97.name=_87.name;var _80=_87.getTitle();if(_80!=null)_97.title=_80;var _92=_87.getValue();if(_92!=null)_97.value=_92;_97.index=this.getItems().indexOf(_87);_97.Class=_87.getClassName();var _98=isc.AutoTest.createLocatorFallbackPath("item",_97);return _98},getObjectLocator:function dynamicForm_getObjectLocator(_238){if(isc.isA.FormItem(_238)){var _99=this.getItemLocator(_238);_99+="/objectType=FormItem";return _99}
return this.Super("getObjectLocator",arguments)},containsLocatorChild:function dynamicForm_containsLocatorChild(_58){if(isc.isA.DateChooser(_58)&&_58.callingForm==this)return true;return this.Super("containsLocatorChild",arguments)},getChildLocator:function dynamicForm_getChildLocator(_58){if(_58.canvasItem){var _87=_58.canvasItem;return this.getItemLocator(_87)+"/canvas"}
if(isc.isA.PickListMenu(_58)){var _87=_58.formItem;return this.getItemLocator(_87)+"/pickList"}
if(isc.isA.DateChooser(_58)){var _87=_58.callingFormItem;return this.getItemLocator(_87)+"/picker"}
return this.Super("getChildLocator",arguments)},getItemFromSplitLocator:function dynamicForm_getItemFromSplitLocator(_141){var _100=_141[0],_2;if(_100.contains("[Class=")){var _101=_100.match("item\\[(.+)'\\]\\[Class=\"(.+)\"\\]");_2=_101[1].substring(6,_101[1].length-2);_100=_101[0]}
var _102=isc.AutoTest.parseLocatorFallbackPath(_100);if(_102&&_102.name=="item"&&_102.config!=null){var _32=_102.config;_2=_32.Class;var _87;if(_32.name!=null){_87=this.getItem(_32.name)}else{for(var i=0;i<this.items.length;i++){var _103=this.items[i],_104=_103.locateItemBy;if(_104==null)_104="title";if(_104=="title"&&_32.title!=null&&_103.title==_32.title)
{_87=_103}else if(_104=="value"&&_32.value!=null&&_103.getValue()==_32.value)
{_87=_103}}
if(_87==null){var _17=_32.index;if(isc.isA.String(_17)){if(_17.startsWith("'")||_17.startsWith('"'))
{_17=_17.substring(1)}
_17=parseInt(_17)}
_87=this.items[_17]}}
if(!_87){this.logWarn("AutoTest.getElement(): Unable to find item from locator string:"+_100);return null}
if(!isc.isA[_2]||!isc.isA[_2](_87)){this.logWarn("AutoTest.getElement(): identifier:"+_100+" returned an item of class:"+_87.getClassName())}
return _87}
return null},getInnerAttributeFromSplitLocator:function
dynamicForm_getInnerAttributeFromSplitLocator(_141,_238){if(!this.emptyLocatorArray(_141)){var _87=this.getItemFromSplitLocator(_141);if(_87!=null){_141.removeAt(0);return _87.getAttributeFromSplitLocator(_141,_238)}
if(_141.length==1){var _64,_62=this.$165x(_141);if(_64!==_62)return _62}
if(_238.locatorMatching!="permitSuffix"){this.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify any FormItem in","and permitSuffix mode is not active");return null}}
return isc.AutoTest.getAttributeDefault(this,_238.attribute)},$124j:function dynamicForm__isProcessingDone(_238){if(_238&&!this.isDrawn())return true;return isc.AutoTest.isFormDone(this,_238)!=false}});isc.ContainerItem.addProperties({getItemLocator:isc.DynamicForm.getPrototype().getItemLocator,getItemFromSplitLocator:isc.DynamicForm.getPrototype().getItemFromSplitLocator,getInnerAttributeFromSplitLocator:function
containerItem_getInnerAttributeFromSplitLocator(_141,_238){if(!this.emptyLocatorArray(_141)){var _105=this.getItemFromSplitLocator(_141);if(_105!=null){_141.removeAt(0);return _105.getAttributeFromSplitLocator(_141,_238)}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)}});isc.FormItem.addProperties({getChildLocator:function formItem_getChildLocator(_238){if(_238.creator==this){var _50=this.getAutoChildLocator(_238);if(_50)return _50}},getLocator:function formItem_getLocator(){return this.getLocatorInternal()},getObjectLocator:function formItem_getObjectLocator(_238){var _106=this.getIconLocator(_238),_91=_106+"/objectType=FormItemIcon";return _91},getIconLocator:function formItem_getIconLocator(_110){var _107={};if(_110.name!=null)_107.name=_110.name;_107.index=this.icons.indexOf(_110);var _98=isc.AutoTest.createLocatorFallbackPath("icon",_107);return _98},getLocatorInternal:function formItem_getLocatorInternal(_238,_239){var _108=this.form;return _108.getLocatorInternal(_238,_239)+"/"+_108.getItemLocator(this)},getAttributeFromSplitLocator:function formItem_getAttributeFromSplitLocator(_141,_238){return this.getInnerAttributeFromSplitLocator(_141,_238)},getInnerAttributeFromSplitLocator:function formItem_getInnerAttributeFromSplitLocator(_141,_238){var _64,_54=_238.attribute;if(!this.emptyLocatorArray(_141)){var _61=_141[0];if(_61=="canvas"&&this.canvas){_141.removeAt(0);var _56=this.canvas.getAttributeFromSplitLocator(_141,_238);if(_56!==_64||_54==isc.Canvas.$95j)return _56}
if(_61=="picker"){if(this.picker){_141.removeAt(0);return this.picker.getAttributeFromSplitLocator(_141,_238)}}
if(_61=="pickList"){if(!this.pickList)this.makePickList(false);_141.removeAt(0);return this.pickList.getAttributeFromSplitLocator(_141,_238)}
if(_61.substring(0,4)=="icon"){var _109=isc.AutoTest.parseLocatorFallbackPath(_61);if(_109&&_109.name=="icon"&&_109.config!=null){var _32=_109.config;var _110;if(_32.name!=null){_110=this.getIcon(_32.name)}else{var _17=_32.index;if(isc.isA.String(_17)){if(_17.startsWith("'")||_17.startsWith('"'))
{_17=_17.substring(1)}
_17=parseInt(_17)}
_110=this.icons[_17]}
if(!_110){this.logWarn("AutoTest.getElement(): Unable to find form item from locator string:"+_61);return null}
return _110}}
if(_54==isc.Canvas.$95j){if(_61=="element")return this.getDataElement();if(_61=="title")return this.form.getTitleCell(this);if(_61=="textbox")return this.$15h();if(_61=="controltable")return this.$56a();if(_61=="inlineerror")return this.getInlineErrorHandle();if(_61=="valueicon"){var _111=this.getOuterElement();if(_111){if(_111.querySelectorAll){var _33=_111.querySelectorAll("[eventpart=valueicon]");if(_33.length==1)return _33[0]}}
this.logWarn("Locator specified click event on value icon but unable to find valueIcon element for this item - recorded test may be invalid.","AutoTest")}
var _112=_61.match("\\[icon='(.+)'\\]");if(_112==null)_112=_61.match('\\[icon="(.+)"\\]');var _113=_112?_112[1]:null;if(_113){var _114=this.$16v(_113);if(_114==null)this.setLogFailureText(true,"there is no Icon Image Element associated with "+_113+" and locator '"+_141.join("/")+"' for");return _114}}
if(this.$542){var _115=this.$903(_61,_238);if(_115){_141.removeAt(0);return _115.getAttributeFromSplitLocator(_141,_238)}}
if(_54==isc.Canvas.$95j){this.setLogFailureText(true,"the trailing locator suffix '"+_141.join("/")+"' does not identify any Event Part of");return}}
switch(_54){case isc.Canvas.$95k:return this;case isc.Canvas.$95l:return this.getValue();case isc.Canvas.$1666:return}
var _62=this.getFocusElement();if(_62==null)_62=this.$15h();if(_62==null){this.setLogFailureText(true,null,"has no focus or textbox elements")}
return _62},$903:function(_9,_238){var _116=this.$542;if(!_116)return;var _29=_116[_9];if(_29&&_29.length>0){if(this[_9]!=null)return this[_9]}else{var _59=isc.AutoTest.parseLocatorFallbackPath(_9);if(_59!=null){return this.getChildFromFallbackLocator(_9,_59,_238)}}},$558:{button:"buttons"},emptyLocatorArray:isc.Canvas.getPrototype().emptyLocatorArray});isc.HeaderItem.addProperties({locateItemBy:"value"});if(isc.PickListMenu){isc.PickListMenu.addProperties({getLocatorParent:function pickListMenu_getLocatorParent(){if(this.formItem)return this.formItem.form;return this.Super("getLocatorParent",arguments)}})}}
if(isc.GridRenderer){isc.GridRenderer.addProperties({$1306:function gridRenderer__getValidIndices(_238){var _56="; valid row indices are [0, "+this.getTotalRows()+"]";if(_238){_56+=" and valid column indices for the "+this.getScClassName()+" are [0, "+this.fields.length+"]"}
return _56},$1307:function gridRenderer__getTableElementAndLogFailure
(_141,_119,_120){var _62=this.getTableElement(_119,_120);if(_62!=null){_141=_141.slice(-1);if(_141.length==1){_62=isc.Element.findAttribute(_62,this.$pk,_141[0])||_62}
return _62}
var _64,_117,_9;if(_120!==_64){_117="("+_119+", "+_120+")";_9="position"}else{_117=_119;_9="row"}
var _118=this.$1306(_120!==_64);if(_119<0||_120<0){_117+=", derived from the locator suffix '"+_141.join("/")+"',";if(_120<0){_118="; a negative colNum may indicate a field could not be found"}else{_118="; a negative rowNum may indicate the targeted record is not present, perhaps not yet loaded"}}
this.setLogFailureText(true,_117+" does not represent a valid "+_9+" within",_118);if(this.grid)this.grid.$1308();return null},$1309:function gridRenderer__reportInvalidCellLocator
(_141,_119,_120){var _64,_74,_73="the locator suffix '"+_141.join("/")+"' could not be resolved to a numerical";if(_120!==_64){_73+=" row and column position within";_74="; only able to resolve to ("+_119+", "+_120+")"}else{_73+=" row position within";_74="; detected row as "+_119}
this.setLogFailureText(true,_73,_74);if(this.grid)this.grid.$1308()},getInteriorLocator:function gridRenderer_getInteriorLocator(_62,_238){var _111=this.getCellFromDomElement(_62);if(_111==null)return this.Super("getInteriorLocator",[_62,_238]);var _119=_111[0],_120=_111[1],_91=this.getCellLocator(_119,_120);if(_91!=null&&this.grid!=null){if(this==isc.EH.dropTarget){var _121=this.grid.getRecordDropPosition(_119);if(_121!=null)_91+="/"+_121}else{var _122=false;var _123=_62.parentNode;while(_123&&_62!=_111){if(_62.getAttribute&&(_62.getAttribute("eventpart")=="valueicon"))
{_122=true;break}
_62=_123;_123=_123.parentNode}
if(_122){_91+="/valueicon"}}}
return _91},getCellFromDomElement:function gridRenderer_getCellFromDomElement(_62){var _72=this.getHandle(),_124=this.getTableElement();if(!_124)return null;var _125=_124.rows,_126,_127,_111,_128="tr",_129="TR",_130="td",_131="TD";while(_62&&_62!=_124&&_62!=_72){_126=_62.tagName;if(_126==_130||_126==_131){_111=_62}
if(_126==_128||_126==_129){_127=_62}
_62=_62.parentNode}
if(!_127||!_111)return null;var _125=_124.rows,_119,_132;for(var i=0;i<_125.length;i++){if(_125[i]==_127){_119=i;break}}
var _133=_127.cells,_120,_134;for(var i=0;i<_133.length;i++){if(_133[i]==_111){_120=i;break}}
if(_125[0]!=_127)_120+=_125[0].cells.length-_133.length;_132=_119+(this.$252||0);_134=_120+(this.$254||0);return[_132,_134]},getCellLocator:function gridRenderer_getCellLocator(_119,_120){return"row["+_119+"]/col["+_120+"]"},getInnerAttributeFromSplitLocator:function
gridRenderer_getInnerAttributeFromSplitLocator(_141,_238){var _54=_238.attribute;if(_54==isc.Canvas.$95j||_54==isc.Canvas.$1666){if(this.emptyLocatorArray(_141)){return isc.AutoTest.getAttributeDefault(this,_54)}
if(_141.length>=2){var _111=this.getCellFromLocator(_141[0],_141[1]),_119=_111[0],_120=_111[1];if(isc.isA.Number(_119)&&isc.isA.Number(_120)){if(_54==isc.Canvas.$1666){return this.$1667(_119,_120)}
if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return null}
return this.$1307(_141,_119,_120)}else{this.$1309(_141,_119,_120)}}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getCellFromLocator:function gridRenderer_getCellFromLocator(_182,_164){var _135=_182.replace(/^row.*(?:\|\||\[)([0-9]+)\]$/,"$1"),_136=_164.replace(/^col.*(?:\|\||\[)([0-9]+)\]$/,"$1");return[parseInt(_135),parseInt(_136)]},$124j:function gridRenderer__isProcessingDone(_238,_239){var _137=this.grid&&!_238;if(_137)return this.grid.$124j(false,_239);else return this.Super("$124j",arguments)}})}
if(isc.ListGrid){isc.ListGrid.addProperties({remapOverRecordPositionAs:isc.ListGrid.AFTER,namedLocatorChildren:["header","frozenHeader","body","frozenBody",{attribute:"$286",name:"editRowForm"},"filterEditor"]});isc.GridBody.addProperties({getInteriorLocator:function gridBody_getInteriorLocator(_62,_238){if(_238){var _29=this.children;if(_29!=null&&_29.length>0){for(var i=0;i<_29.length;i++){var _55=_29[i];if(_55&&_55.eventProxy==this){var _72=_55.getHandle();if(_72!=null){var _138=_62;while(_138!=this.getHandle()&&_138!=null)
{if(_138==_72){var _119=this.getEventRow(),_120=this.getEventColumn();return this.getCellLocator(_119,_120)}
_138=_138.parentNode}}}}}}
return this.Super("getInteriorLocator",arguments)},getAutoTestLocatorCoords:function gridBody_getAutoTestLocatorCoords(_91,_62){var _139=this.Super("getAutoTestLocatorCoords",arguments);if(_139==null)return null;var _140=this.grid,_141=_91.split("/").slice(-3),_121=_141[2];if(_140.$126y(_121)){var _119=_140.getRowNumFromLocator(_141,0);if(isc.isA.Number(_119)){if(_121==isc.ListGrid.OVER&&_140.recordDropAppearance!=isc.ListGrid.OVER&&_140.recordDropAppearance!=isc.ListGrid.BOTH)
{var _142=_140.remapOverRecordPositionAs,_143=_140.$126y(_142);if(isc.TreeGrid&&isc.isA.TreeGrid(_140)){var _144=_140.getRecord(_119);if(_140.canDropOnLeaves||_140.data.isFolder(_144)){_143=false}}
if(_143)_121=_142}
var _145=this.getRowTop(_119),_146=this.getRowSize(_119);switch(_121){case isc.ListGrid.BEFORE:_139[1]-=_146/2;break;case isc.ListGrid.AFTER:_139[1]+=3*_146/8;break}}}
return _139},getCellLocator:function gridBody_getCellLocator(_119,_120){var _140=this.grid;if(_140==null)return this.Super("getCellLocator",arguments);return _140.getCellLocator(this,_119,_120)}});isc.ListGrid.addProperties({testReplayLoggedRows:50,$1308:function listGrid__testReplayDumpRows(){if(!isc.Log.logIsDebugEnabled("testReplay")||!isc.JSON)return;var _147=Math.min(this.testReplayLoggedRows,this.getTotalRows()),_56="The first "+_147+" rows of "+this.$130k()+" are: \n";for(var i=0;i<_147;i++){_56+="#"+(i+1)+": "+isc.JSON.encode(this.getRecord(i))+"\n"}
isc.AutoTest.logDebug(_56.trim(),"testReplay")},getCellLocator:function listGrid_getCellLocator(_162,_119,_120){var _148=this.getRowLocatorOptions(_162,_119,_120),_149=this.getColLocatorOptions(_162,_119,_120);return isc.AutoTest.createLocatorFallbackPath("row",_148)+"/"+isc.AutoTest.createLocatorFallbackPath("col",_149)},getRowLocatorOptions:function listGrid_getRowLocatorOptions(_162,_119,_120){var _150={},_151=this.getFieldNumFromLocal(_120,_162),_152=this.getEditedRecord(_119,_151),_153=this.getDataSource(true);if(_152!=null){if(_153!=null){var _154=_153.getPrimaryKeyFieldNames();for(var i=0;i<_154.length;i++){var _155=_154[i];if(_152[_155]!=null){_150[_155]=_152[_155]}}}
var _156=this.getTitleField();if(_156!=null&&_152[_156]!=null){_150[_156]=_152[_156]}else if(isc.isA.Tree(this.data)){var _80=_152[this.data.titleProperty];if(_80!=null)_150[this.data.titleProperty]=_80}
var _157=this.getFieldName(_151);if(_157!=null&&_152[_157]!=null){_150[_157]=_152[_157]}}
_150[isc.AutoTest.fallback_valueOnlyField]=_119;return _150},getColLocatorOptions:function listGrid_getColLocatorOptions(_162,_119,_120){var _150={},_151=this.getFieldNumFromLocal(_120,_162);var _158=this.getField(_151);if(this.isCheckboxField(_158)){_150.isCheckboxField=true}else{var _157=this.getFieldName(_151);if(_157!=null)_150.fieldName=_157}
_150[isc.AutoTest.fallback_valueOnlyField]=_120;return _150},getChildFromLocatorSubstring:function
listGrid_getChildFromLocatorSubstring(_238,_17,_141){if(_238=="frozenBody"||_238=="body"){switch(_141.length-_17){case 4:if(_141[_17+3]!="valueicon"&&!this.$126y(_141[_17+3]))break;case 3:if(!_141[_17+2].startsWith("col["))break;case 2:if(!_141[_17+1].startsWith("row["))break;return null}}
return this.Super("getChildFromLocatorSubstring",arguments)},getRowNumFromLocator:function listGrid_getRowNumFromLocator(_141,_17){var _159=isc.AutoTest.parseLocatorFallbackPath(_141[_17]);if(_159.name!="row"){this.logWarn("Error parsing locator: "+_141.join("/")+"; unable to resolve the row");return null}
return this.getRowNumFromLocatorConfig(_159.config)},getInnerAttributeFromSplitLocator:function listGrid_getInnerAttributeFromSplitLocator(_141,_238){var _54=_238.attribute,_160=isc.AutoTest.getAttributeDefault(null,_54),_161=isc.AutoTest.getAttributeDefault(this,_54);if(this.emptyLocatorArray(_141)){return isc.AutoTest.setLogFailureForReturnValue(this,_141,_161,_54)}
var _162=_141[0];if(_162=="body"||_162=="frozenBody"){var _163=_141[3],_121;var _122=false;if(_163=="valueicon")_122=true;else _121=_163;if(_141.length==2&&_54==isc.Canvas.$95j){var _119=this.getRowNumFromLocator(_141,1);if(_119==null)return _161;if(isc.isA.Number(_119)){if(this.body.$29p()){this.body.setLogFailureText(true,null,"is being animated");return _160}
return this.body.$1307(_141,_119)}}else if(_141.length==3||(_141.length==4&&(_122||this.$126y(_121))))
{var _164=_141[2],_165=isc.AutoTest.parseLocatorFallbackPath(_164);if(_165.name!="col"){if(_54==isc.Canvas.$95j)this.setLogFailureText(true,"could not parse column locator '"+_164+"' for");this.logWarn("Error parsing locator:"+_141.join("")+" returning ListGrid handle");return _161}
var _158=this.getFieldFromColLocatorConfig(_165.config),_166;if(_158==null){_166=parseInt(_165.config[isc.AutoTest.fallback_valueOnlyField]);if(_162=="frozenBody"&&this.frozenBody==null){this.setLogFailureText(true,"the column locator '"+_164+"' is specified on a frozen body but","has none");return _160}
_162=this[_162]}else{_166=this.getLocalFieldNum(this.getFieldNum(_158));if(this.fieldIsFrozen(_158))_162=this.frozenBody;else _162=this.body}
if(_162==null){this.setLogFailureText(true,"there was a problem locating the correct GridBody for field "+_158.name+" using column locator '"+_164+"' within",", this field seems to be"+(this.fieldIsFrozen(_158)?" ":" not ")+"frozen");return _160}
var _119=this.getRowNumFromLocator(_141,1);if(_119==null){if(_54==isc.Canvas.$95j)this.setLogFailureText(true,"locator suffix  '"+_141.join("/")+"' does not identify a valid row within");return _161}
var _167=_162==this.frozenBody?"frozen GridBody":"GridBody";if(isc.isA.Number(_119)&&isc.isA.Number(_166)){if(_162.$29p()){_162.setLogFailureText(true,null,"is being animated");return _160}
switch(_54){case isc.Canvas.$95j:var _111=_162.$1307(_141,_119,_166);if(_111&&_122){if(_111.querySelectorAll){var _33=_111.querySelectorAll("[eventpart=valueicon]");if(_33.length==1)return _33[0]}
this.logWarn("Locator specified click event on value icon but unable to find valueIcon element for this cell - recorded test may be invalid.","AutoTest")}
return _111;case isc.Canvas.$95l:case isc.Canvas.$1666:var _168=this.getFieldNumFromLocal(_166,_162),_158=this.getField(_168);if(_158!=null){var _152=this.getEditedRecord(_119,_168);if(_152==null){this.setLogFailureText(true,"no record could be found for field "+_158.name+" and row "+_119+" in");break}
if(_54==isc.Canvas.$1666){return this.$1667(_119,_168,_152)}
if(_158.$63f)return this.isSelected(_152);if(_158.$109b===true){return!!_152.checked}
return this.getRawCellValue(_152,_119,_168)}else{this.setLogFailureText(true,"no field could be found for column "+_166+" within the "+_167+" of")}}}else{_162.$1309(_141,_119,_166)}}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getFieldFromColLocatorConfig:function listGrid_getFieldFromColLocatorConfig(_238){if(_238.isCheckboxField!=null){for(var i=0;i<this.fields.length;i++){if(this.isCheckboxField(this.fields[i])){return this.fields[i]}
this.logWarn("AutoTest stored a locator for interaction with checkbox field - but this grid is not showing a checkbox field - recorded test may be invalid.","AutoTest");return-1}}else{var _169=this.locateColumnsBy;if(_169=="fieldName"||_169==null){var _157=_238.fieldName;if(_157!=null){return this.getField(_157)}}}},getRowNumFromLocatorConfig:function listGrid_getRowNumFromLocatorConfig(_183){var _170=this.locateRowsBy;if(_170==null)_170="primaryKey";var _171=this.data,_172;switch(_170){case"primaryKey":this.logDebug("Trying to locate row by pk","autotest");var _153=this.getDataSource();if(_153!=null){var _173=_153.getPrimaryKeyFieldNames(),_174=_173.length>0;for(var i=0;i<_173.length;i++){if(_183[_173[i]]==null){_174=false;break}}
if(_174){var _119=this.findRowNum(_183);if(_119!=-1){this.logDebug("Located row "+_119+" by pk","autotest");return _119}}}
this.logDebug("Failed to locate row by pk.  Config: "+isc.echoAll(_183),"autotest");if(isc.AutoTest.skipFallback)return-1;case"titleField":var _156=this.getTitleField();if(_156!=null&&_183[_156]!=null){var _175=_171.findAllIndices(_156,_183[_156]);if(_175.length==0)return-1;if(_175.length==1)return _175[0];var _176=[];for(var i=0;i<_175.length;i++){_176[_175[i]]=_171.get(_175[i])}
_172=_175[0];_171=_176}
case"targetCellValue":for(var _157 in _183){if(_157==isc.AutoTest.fallback_valueOnlyField)continue;if(_183[_157]!=null){var _175=_171.findAllIndices(_157,_183[_157],isc.AutoTest.$1232);if(_175.length==0)return-1;if(_175.length==1)return _175[0];var _176=[];for(var i=0;i<_175.length;i++){_176[_175[i]]=_171.get(_175[i])}
_172=_175[0];_171=_176}}
default:var _119=parseInt(_183[isc.AutoTest.fallback_valueOnlyField]);var _64;if(_172==null||_171[_119]!==_64)return _119;else return _172}},$126y:function listGrid__isValidDropPosition(_121){switch(_121){case isc.ListGrid.BEFORE:case isc.ListGrid.AFTER:case isc.ListGrid.OVER:return true}
return false},$124j:function listGrid__isProcessingDone(_238,_239){var _177=!_239||isc.RecordEditor&&isc.isA.RecordEditor(this);if(isc.AutoTest.isGridDone(this,_177)==false)return false;return this.Super("$124j",arguments)}})}
if(isc.Menu){isc.Menu.addClassMethods({getMenuAtLevel:function(_180){var _178=isc.Menu.$kc||[],_179=_178.find("$35q",null);if(_179==null)return null;for(var i=0;i<_180;i++){_179=_179.$35s;if(_179==null){this.logInfo("Unable to locate active menu at level "+_180+" - returning null");return null}}
return _179}});isc.Menu.addMethods({$123v:["//Menu[level=",,"]"],getLocatorRoot:function menu_getLocatorRoot(){if(this.hasStableID())return this.Super("getLocatorRoot",arguments);if(!this.locatorRoot){var _180=0;for(var _181=this;_181&&_181.$35q;_181=_181.$35q)_180++;this.$123v[1]=_180;this.locatorRoot=this.$123v.join(isc.emptyString)}
return this.locatorRoot},getObjectLocator:function menu_getObjectLocator(_238){if(isc.isAn.Object(_238)){var _119=this.getRecordIndex(_238);if(_119!=null){var _148=this.getRowLocatorOptions(this.body,_119),_182=isc.AutoTest.createLocatorFallbackPath("row",_148)+"/objectType=MenuItem";;return _182}}
return this.Super("getObjectLocator",arguments)},getAttributeFromSplitLocator:function menu_getAttributeFromSplitLocator(_141,_238){var _54=_238.attribute;if(isc.Canvas.$95k==_54&&_141[_141.length-1]=="objectType=MenuItem"){var _183=isc.AutoTest.parseLocatorFallbackPath(_141[0]);if(_183&&_183.name=="row"&&_183.config!=null){var _32=_183.config,_119=this.getRowNumFromLocatorConfig(_32);if(_119!=null){return this.getRecord(_119)}}}
return this.Super("getAttributeFromSplitLocator",arguments)}})}
if(isc.TreeGrid){isc.TreeGridBody.addProperties({getOpenAreaWidth:function treeGridBody_getOpenAreaWidth(_119,_120){var _140=this.grid,_171=_140.data,_144=_140.getRecord(_119);_120=_140.getFieldNumFromLocal(_120,this);if(_140.getTreeFieldNum()!=_120||_171==null||!_171.isFolder(_144)){return null}
return _140.getOpenAreaWidth(_144)},getInteriorLocator:function treeGridBody_getInteriorLocator(_62,_238,_139){var _88=_62;var _140=this.grid,_72=this.getHandle(),_184=this.getTableElement();if(!_62||!_72||!_184)return isc.emptyString;var _185=_140.getCanvasName()+_140.$34l,_119,_120;var _186=_140.getCanvasName()+_140.$349;while(_62!=this.tableElement&&_62!=_72&&_62.getAttribute){var _27=_62.getAttribute(isc.Canvas.$123e?"id":"name");if(_27){if(_27.startsWith(_186)){_119=parseInt(_27.substring(_186.length));_120=_140.getLocalFieldNum(_140.getTreeFieldNum());return this.getCellLocator(_119,_120)+"/extra"}}
_62=_62.parentNode}
var _111=this.getCellFromDomElement(_88);if(_111){var _187=this.getOpenAreaWidth(_111[0],_111[1]);if(_187!=null){var _65=this.getCellPageRect(_111[0],_111[1]),x=_139[0]-_65[0];if(x>=0&&x<_187){return this.getCellLocator(_111[0],_111[1])+"/open"}}}
return this.Super("getInteriorLocator",[_88,_238,_139])},getInnerAttributeFromSplitLocator:function
treeGridBody_getInnerAttributeFromSplitLocator(_141,_238){var _140=this.grid,_54=_238.attribute,_160=isc.AutoTest.getAttributeDefault(null,_54),_161=isc.AutoTest.getAttributeDefault(this,_54);if(this.emptyLocatorArray(_141)){return isc.AutoTest.setLogFailureForReturnValue(this,_141,_161,_54)}
if(_141.length==3&&_54!=isc.Canvas.$1666){if(_141[2]=="open"){if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return _160}
var _182=_141[0];var _119;if(_182.charAt(3)!="["){_119=parseInt(_182.substring(3))}else{var _159=isc.AutoTest.parseLocatorFallbackPath(_182);if(_159==null||_159.name!="row"){this.setLogFailureText(true,"the row locator '"+_182+"' for","could not be parsed")}
_119=_140.getRowNumFromLocatorConfig(_159.config)}
if(_54==isc.Canvas.$95l){var _171=_140.data,_152=_140.getRecord(_119);if(_152==null||!_171){this.setLogFailureText(true,"no record could be found for row "+_119+" of");return}
return _171.isOpen(_152)}else{var _120=_140.getLocalFieldNum(_140.getTreeFieldNum());if(isc.isA.Number(_119)&&isc.isA.Number(_120)){return this.$1307(_141,_119,_120)}else{this.$1309(_141,_119,_120);return null}}}else if(_141[2]=="extra"){if(this.$29p()){this.setLogFailureText(true,null,"is being animated");return _160}
var _182=_141[0];var _119;if(_182.charAt(3)!="["){_119=parseInt(_182.substring(3))}else{var _159=isc.AutoTest.parseLocatorFallbackPath(_182);if(_159==null||_159.name!="row"){this.setLogFailureText(true,"the row locator '"+_182+"' for","could not be parsed")}
_119=_140.getRowNumFromLocatorConfig(_159.config)}
if(_54==isc.Canvas.$95l){var _77=_140.selection,_152=_140.getRecord(_119);if(_152==null){this.setLogFailureText(true,"no record could be found for row "+_119+" of");return}
if(_77==null){this.setLogFailureText(true,"no selection object could be found for");return}
var _189=_77.isSelected(_152);if(!_189||!_140.showPartialSelection)return _189;return _77.isPartiallySelected(_152)?"partial":_189}else{var _190=_140.$349+_119,_90=_140.getImage(_190,isc.Canvas.$123e);if(_90)return _90;else{this.setLogFailureText(true,"no opener image could be found for row "+_127+" of");return null}}}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function treeGridBody_getAutoTestLocatorCoords(_91,_62){var _139=this.Super("getAutoTestLocatorCoords",arguments);if(_139==null)return _139;var _191=this.grid;if(_191==null||_91.endsWith("/extra"))return _139;var _192=_139[1]-this.getPageTop()+this.getScrollTop(),_193=_139[0]-this.getPageLeft()+this.getScrollLeft();var _119=this.getEventRow(_192),_120=this.getEventColumn(_193),_187=this.getOpenAreaWidth(_119,_120);if(_187!=null){var _65=isc.Element.getElementRect(_62),_66=_65[0],_67=_65[2];if(_91.endsWith("/open")){_139[0]=_66+Math.floor(_187/2)}else{_66+=_187;_67-=_187;_139[0]=_66+Math.floor(_67/2)}}
return _139}})}
if(isc.TileGrid){isc.TileGrid.addMethods({$124j:function tileGrid__isProcessingDone(_238){if(_238&&!this.isDrawn())return true;return isc.AutoTest.isTileGridDone(this)!=false},getCanvasFromFallbackLocator:function
tileGrid_getCanvasFromFallbackLocator(_238,_32,_33,_34,_35){if(_35=="Class"&&_32.Class=="SimpleTile"){var _171=this.data,_194=parseInt(_32.classIndex);if(this.recycleTiles)_194+=this.getDrawnStartIndex();var _195=this.getTileID(_171.get(_194));if(_195&&window[_195]){_32.classIndex=this.tiles.indexOf(window[_195])}}
return this.Super("getCanvasFromFallbackLocator",arguments)},getCanvasLocatorFallbackPath:function
tileGrid_getCanvasLocatorFallbackPath(_28,_238,_30){var _196=_238.tileNum;if(this.recycleTiles)_196-=this.getDrawnStartIndex();_238=_30[_196];return this.Super("getCanvasLocatorFallbackPath",arguments)}})}
if(isc.TileLayout){isc.TileLayout.addMethods({$124j:function tileLayout__isProcessingDone(_238){if(_238&&!this.isDrawn())return true;return isc.AutoTest.isTileLayoutDone(this)!=false}})}
if(isc.DrawPane){isc.DrawPane.addMethods({getLocator:function drawPane_getLocator(_62,_238,_139){var _91=this.Super("getLocator",arguments);if(_91.indexOf(isc.AutoTest.$119l)<0&&_139!=null){var _87=this.getDrawItem(_139[0],_139[1]);if(_87!=null&&_87.masterElement==null&&_87.hasStableID()){return _87.getLocatorRoot()}}
return _91},getInteriorLocator:function drawPane_getInteriorLocator(_62,_238,_139){if(_139){var _91=[],_87=this.getDrawItem(_139[0],_139[1]);if(_87!=null&&_87.masterElement==null){_91=[this.getItemLocator(_87),'/'];return _91.join(isc.emptyString)}}
return this.Super("getInteriorLocator",arguments)},getItemLocator:function drawPane_getItemLocator(_87){var _97={};if(_87.title!=null)_97.title=_87.title;var _2=_87.getClassName();_97.Class=_2;var _197=this.drawItems,_14=_197.findAll("Class",_2);if(_14){_97.classLength=_14.length;var _198=0;for(var i=0;i<this.drawItems.length;i++){if(_197[i].masterElement!=null||_197[i].getClassName()!=_2){continue}
if(_197[i]==_87)break;_198++}
_97.classIndex=_198}
if(_87.points!=null)_97.nPoints=_87.points.length;var _98=isc.AutoTest.createLocatorFallbackPath("item",_97);return _98},getItemFromSplitLocator:function drawPane_getItemFromSplitLocator(_141){var _100=_141[0];var _102=isc.AutoTest.parseLocatorFallbackPath(_100);if(_102&&_102.name=="item"&&_102.config!=null){var _32=_102.config;var _2=_32.Class;var _87,_197=this.drawItems;for(var i=0;i<_197.length;i++){var _103=_197[i],_104=_103.locateItemBy;if(_104==null)_104="title";if(_104=="title"&&_32.title!=null&&_103.title==_32.title)
{_87=_103}}
if(_87!=null&&_2!=_87.getClassName())_87=null;if(_87==null){var _14=_197.findAll("Class",_2);if(_14&&_14.length==_32.classLength){var _198=0;for(var i=0;i<this.drawItems.length;i++){if(_197[i].masterelement!=null||_197[i].getClassName()!=_2){continue}
if(_198==_32.classIndex){_87=_197[i];break}
_198++}}}
if(_87!=null){var _199=_87.points!=null?_87.points.length:null;if(_199!=_32.nPoints)_87=null}
if(!_87){this.logWarn("AutoTest.getElement(): Unable to find item from locator string:"+_100);return null}
if(!isc.isA[_2]||!isc.isA[_2](_87)){this.logWarn("AutoTest.getElement(): identifier:"+_100+" returned an item of class:"+_87.getClassName())}
return _87}
return null},getInnerAttributeFromSplitLocator:function
drawPane_getInnerAttributeFromSplitLocator(_141,_238){if(!this.emptyLocatorArray(_141)){var _87=this.getItemFromSplitLocator(_141);if(_87!=null){_141.removeAt(0);return _87.getAttributeFromSplitLocator(_141,_238)}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function drawPane_getAutoTestLocatorCoords(_91,_62){var _200=isc.AutoTest.getObject(_91);if(!isc.isA.DrawItem(_200)){return this.Super("getAutoTestLocatorCoords",arguments)}
var _201=_200.getCenter(),_202=_200.$1486("local","global");_202.transform(_201[0],_201[1],_201);var _203=this.getClipHandle(),_204=isc.Element.getElementRect(_203);_201[0]=this.$1503(_201[0]+_204[0]);_201[1]=this.$1503(_201[1]+_204[1]);return _201},$124j:function drawPane__isProcessingDone(_238){if(_238&&!this.isDrawn())return true;return isc.AutoTest.isDrawPaneDone(this)!=false}});isc.DrawItem.addMethods({getLocatorRoot:function drawItem_getLocatorRoot(){if(!this.locatorRoot){this.$549[1]=this.getClassName();this.$549[3]=this.getID();this.locatorRoot=this.$549.join(isc.emptyString)}
return this.locatorRoot},getLocator:function drawItem_getLocator(){return this.getLocatorInternal()},getLocatorInternal:function drawItem_getLocatorInternal(_238,_239){var _205=this.drawPane;return _205.getLocatorInternal(_238,_239)+"/"+_205.getItemLocator(this)},$184v:function drawItem__getFloatValueAsString(_92){var _87=this;if(isc.isAn.Array(_92)){var _139=_92.map(function(_238){return _87.$184v(_238)});return _139.join(isc.AutoTest.valueSeparator)}
if(isc.isA.Number(_92)&&Math.round(_92)!=_92){return isc.Canvas.getFloatValueAsString(_92,isc.AutoTest.decimalPrecision,isc.AutoTest.decimalPad)}
return _92!=null?_92.toString():null},getInnerAttributeFromSplitLocator:function drawItem_getInnerAttributeFromSplitLocator
(_141,_238){var _64,_54=_238.attribute;switch(_54){case isc.Canvas.$95k:return this;case isc.Canvas.$95l:if(this.emptyLocatorArray(_141)){return this.getLocatorValue()}
var _139,_61=_141[0];switch(_61){case"src":case"fillColor":case"lineColor":return this[_61];case"top":case"left":case"width":case"height":case"rotation":case"lineWidth":case"lineOpacity":case"fillOpacity":_139=this[_61];break;case"center":_139=this.getCenter();break;case"boundingBox":_139=this.getBoundingBox();break;case"resizeBoundingBox":_139=this.getResizeBoundingBox(true);break;default:this.logWarn("Unknown property "+_61+" requested for drawItem.  Returning the default value.");return this.getLocatorValue()}
return isc.AutoTest.reportValuesAsString?this.$184v(_139):_139;case isc.Canvas.$95j:var _205=this.drawPane;if(!_205)return;var _206=_205.drawingType;switch(_206){case"bitmap":return _205.getBitmap();case"svg":return this.$44z;case"vml":return this.$125f()}
break;default:return}},getLocatorValue:function drawItem_getLocatorValue(){return this.title},getAttributeFromSplitLocator:function drawItem_getAttributeFromSplitLocator(_141,_238){return this.getInnerAttributeFromSplitLocator(_141,_238)}});isc.DrawLabel.addMethods({getLocatorValue:function drawItem_getLocatorValue(){return this.contents}})}
if(isc.TabSet){isc.TabSet.addProperties({containsLocatorChild:function tabSet_containsLocatorChild(_58){if(this.Super("containsLocatorChild",arguments))return true;if(this.getTabNumber(_58)!=-1)return true;return false},getChildLocator:function(_58){if(_58===this.paneContainer){return null}
return this.Super("getChildLocator",arguments)},$150p:function(_209,_208){var _207={};if(_209.name!=null)_207.name=_209.name;if(_209.title!=null)_207.title=_209.title;if(_209.ID!=null&&!_209._autoAssignedID)_207.ID=_209.ID;_207.index=_208;return _207},getStandardChildLocator:function tabSet_getStandardChildLocator(_58){var _208=this.getTabNumber(_58);if(_208!=-1){var _209=this.getTabObject(_208);var _207=this.$150p(_209,_208);return isc.AutoTest.createLocatorFallbackPath("tab",_207)}
return this.Super("getStandardChildLocator",arguments)},getChildFromLocatorSubstring:function tabSet_getChildFromLocatorSubstring(_238){var _210,_211;if(_238!=null&&((_210=_238.startsWith("tab["))||(_211=_238.startsWith("tabPane["))))
{var _212=isc.AutoTest.parseLocatorFallbackPath(_238),_32=_212.config,_213;if(_32.ID!=null){_213=_32.ID}else if(_32.name!=null){_213=_32.name}else{var _214=this.locateTabsBy;if(_214==null)_214="title";if(_32.title&&_214=="title"){_213=this.tabs.findIndex("title",_32.title)}else{_213=parseInt(_32.index)}}
if(_210){return this.getTab(_213)}else{return this.getTabPane(_213)}}
return this.Super("getChildFromLocatorSubstring",arguments)}});var _215={getChildLocator:function(_58){var _216=this.creator,_217=_216&&_216.tabs;if(_217!=null){var _208=_217.findIndex("pane",_58);if(_208>=0){var _209=_217[_208];var _207=_216.$150p(_209,_208);return isc.AutoTest.createLocatorFallbackPath("tabPane",_207)}}
return this.Super("getChildLocator",arguments)},getFallbackLocatorCandidates:function(_9){if(_9==="member"){if(!isc.TabSet.$150q){this.logWarn("scLocators involving selection of a member of a TabSet's paneContainer are deprecated. Instead, use a \"tabPane[]\" locator. Note: A \"tabPane[]\" locator will be generated automatically if the test script is re-recorded.");isc.TabSet.$150q=true}
return this.creator&&this.creator.tabs&&this.creator.tabs.getProperty("pane")}
return this.Super("getFallbackLocatorCandidates",arguments)}};isc.TabSet.changeDefaults("paneContainerDefaults",_215);if(isc.PaneContainer)isc.PaneContainer.addProperties(_215)}
if(isc.StatefulCanvas){isc.StatefulCanvas.addProperties({getInteriorLocator:function statefulCanvas_getInteriorLocator(_62,_238,_139){if(isc.Slider&&isc.isA.Slider(this.creator)&&this.creator._track==this){return this.creator.getInteriorLocator(_62,_238,_139)}
return this.Super("getInteriorLocator",arguments)},getInnerAttributeFromSplitLocator:function statefulCanvas_getInnerAttributeFromSplitLocator(_141,_238){if(_141.length==1&&_141[0]=="imageLoaded"){var _9=isc.Img&&isc.isAn.Img(this)?this.name:"icon",_54=_238.attribute,_90=this.getImage(_9);if(_90){var _218=_90.naturalWidth>0&&_90.naturalHeight>0;switch(_54){case isc.Canvas.$95l:return _218;case isc.Canvas.$95j:return _218?_90:null}}}
if(!this.emptyLocatorArray(_141)&&this.label){return this.label.getInnerAttributeFromSplitLocator(_141,_238)}
var _54=_238.attribute;if((isc.Canvas.$95l==_54||isc.Canvas.$1666==_54)&&isc.isA.Function(this.isSelected))
{return this.isSelected()}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getAutoTestLocatorCoords:function statefulCanvas_getAutoTestLocatorCoords(_91,_62){if(isc.Slider&&isc.isA.Slider(this.creator)&&this.creator._track==this){return this.creator.getAutoTestLocatorCoords(_91,_62)}
return this.Super("getAutoTestLocatorCoords",arguments)}})}
if(isc.Menu){isc.Menu.addProperties({hasStableID:function menu_hasStableID(){var _219=this.$350;if(_219!=null&&this.ID.startsWith(_219.ID)){return _219.hasStableID()}
return this.Super("hasStableID",arguments)}})}
if(isc.DateChooser){isc.DateChooser.addMethods({getInteriorLocator:function dateChooser_getInteriorLocator(_62){var _72=this.getHandle();if(!_72||!_62)return"";var _220=_62.$73l;if(_220!=null&&_220!="")return _220;return _62.$73l=this.$73m(_62,_72)},$73m:function dateChooser__getInteriorLocator(_62,_72){var _221=_62;while(_221&&_221!=null){if(_221==_72){_221=null;break}
if(_221.tagName&&_221.tagName.toLowerCase()=="td"){break}
_221=_221.parentElement}
if(_221==null||_221.getAttribute==null)return"";var _222=_221.getAttribute(isc.EH.$945);if(!_222)return"";var _223=_72.childNodes,_224=[];for(var i=0;i<_223.length;i++){if(!_223[i].tagName||_223[i].tagName.toLowerCase()!="table"){continue}
_224[_224.length]=_223[i]}
var _225=_224.length==2?_224[0]:null,_226=_224.length==2?_224[1]:_224[0];if(_225!=null&&_221.offsetParent==_225){switch(_222){case"showPrevYear":return"prevYearButton";case"showPrevMonth":return"prevMonthButton";case"showMonthMenu":return"monthMenuButton";case"showYearMenu":return"yearMenuButton";case"showNextMonth":return"nextMonthButton";case"showNextYear":return"nextYearButton"}
return""}else if(_226!=null&&_221.offsetParent==_226){switch(_222){case"cancel":return"cancelButton";case"today":return"todayButton";default:var _227=_221.id;if(_227){var _228=_227.split("_");if(_228&&_228.length>=3){_228=_228.slice(_228.length-3)}
return _228.join("/")}}}
return""},getInnerAttributeFromSplitLocator:function
dateChooser_getInnerAttributeFromSplitLocator(_141,_238){if(_238.attribute!=isc.Canvas.$95j){this.setLogFailureText(true,"getValue() is not supported for");return}
var _72=this.$1304();if(_72==null||this.emptyLocatorArray(_141))return _72;var _229=(_141.length==3);if(!_229){var _84=_141[0];if(_84=="")return _72;var _230=(_84=="todayButton"),_231=!_230?(_84=="cancelButton"):false;var _223=_72.childNodes;if(_230||_231){if(_230&&!this.showTodayButton){this.logWarn("DateChooser attempting to locate element for 'todayButton' but showTodayButton is false. Returning handle.","AutoTest");return _72}
if(_231&&!this.showCancelButton){this.logWarn("DateChooser attempting to locate element for 'cancelButton' but showCancelButton is false. Returning handle.","AutoTest");return _72}
var _226;for(var i=_223.length-1;i>=0;i--){if(_223[i].tagName&&_223[i].tagName.toLowerCase()=="table")
{_226=_223[i];break}}
var _232=_226.rows[_226.rows.length-1],_133=_232.cells;for(var i=0;i<_133.length;i++){if(this.getInteriorLocator(_133[i])==_84){return _133[i]}}}else{if(!this.showHeader){this.logWarn("DateChooser attempting to locate element for "+_141+" but this.showHeader is false so this element will not be present. Returning handle.","AutoTest");return _72}
var _225;for(var i=0;i<_223.length;i++){if(_223[i].tagName&&_223[i].tagName.toLowerCase()=="table")
{_225=_223[i];break}}
if(_225){var _127=_225.rows[0],_133=_127.cells;for(var i=0;i<_133.length;i++){if(this.getInteriorLocator(_133[i])==_84){return _133[i]}}}}}else{var _233=_141[0],_234=_141[1],_235=_141[2];if((_233==this.year)&&(this.month==_234||this.month==_234+1||this.month==_234-1))
{var _236=isc.DateUtil.createLogicalDate(_233,_234,_235),_237=_236.getDay(),_111=this.dateGrid.getDateCell(_236);if(_111){return this.dateGrid.body.$1307(_141,_111.rowNum,_111.colNum)}}else{this.logInfo("DateChooser passed ID for the wrong year or month - passed:"+_141+", showing:"+[this.year,this.month],"AutoTest")}
this.logWarn("DateChooser - passed inner locator for date ("+_141.join("/")+") -- not currently showing this date.","AutoTest")}
this.logWarn("DateChooser, unable to find element for inner locator:"+_141+" returning handle");return _72}})}
isc.AutoTest.methodsApplied=true};isc.AutoTest.customizeCalendar=function(){isc.$755={getRowLocatorOptions:function calendarView_getRowLocatorOptions(_54,_28,_29){var _1=this.Super("getRowLocatorOptions",arguments);var _2=this.creator.chosenDate;_1.date=_2.toSchemaDate("date");_1.minutes=_28*30;return _1},getRowNumFromLocatorConfig:function calendarView_getRowNumFromLocatorConfig(_54){var _3=this.creator.locateCellsBy;if((_3=="date"||_3==null)&&_54.date!=null)
{var _2=isc.DateUtil.parseSchemaDate(_54.date);if(!this.showingDate(_2)){this.logWarn("Locator for cell in this calendar day-view grid has date stored as:"+_2.toUSShortDate()+", but we're currently showing "+this.creator.chosenDate.toUSShortDate()+". The stored date doesn't map to a visible cell so not returning a cell - if this is not the intended behavior in this test case you may need to set calendar.locateCellsBy to 'index'.","AutoTest");return-1}
return parseInt(_54.minutes)/30}
this.locateRowsBy="index";return this.Super("getRowNumFromLocatorConfig",arguments)},showingDate:function calendarView_showingDate(_2){return isc.DateUtil.compareLogicalDates(_2,this.creator.chosenDate)==0}};isc.DaySchedule.addProperties(isc.$755);isc.WeekSchedule.addProperties(isc.$755,{showingDate:function weekSchedule_showingDate(_2){for(var i=0;i<this.fields.length;i++){var _5=this.fields[i];if(_5.$66a==null)continue;if(isc.DateUtil.compareLogicalDates(isc.DateUtil.createLogicalDate(_5.$66a,_5.$659,_5.$658),_2)==0)
{this.logWarn("does contain date"+_2.toShortDate());return true}
this.logWarn("date passed in:"+_2.toShortDate()+"compared with:"+isc.DateUtil.createLogicalDate(_5.$66a,_5.$659,_5.$658).toShortDate())}
this.logWarn("doesn't contain date:"+_2);return false},getColLocatorOptions:function weekSchedule_getColLocatorOptions(_54,_28,_29){var _6=this.Super("getColLocatorOptions",arguments),_7=this.getFieldNumFromLocal(_29,_54),_5=this.getField(_7);if(_5&&_5.$658!=null){_6.date=[_5.$66a,(_5.$659+1),_5.$658].join("-")}
return _6},getFieldFromColLocatorConfig:function weekSchedule_getFieldFromColLocatorConfig(_54){if((this.locateCellsBy=="date"||this.locateCellsBy==null)&&(_54.date!=null))
{var _8=_54.date.split("-");return this.getFields().find("$658",_8[2])}
return this.Super("getFieldFromColLocatorConfig",arguments)}});isc.MonthSchedule.addProperties({getRowLocatorOptions:function monthSchedule_getRowLocatorOptions(_54,_28,_29){var _1=this.Super("getRowLocatorOptions",arguments);var _9=this.getRecord(_28);if(!_9)return _1;var _5=this.getField(_29);var _10=_5.$66b;_1.dayIndex=_10;var _2=_9["date"+_10];_1.date=_2.toSchemaDate("date");var _11=_9["event"+_10];if(_11==null){_1.isHeaderRow=true}else{_1.isHeaderRow=false}
return _1},getRowNumFromLocatorConfig:function monthSchedule_getRowNumFromLocatorConfig(_54){var _3=this.creator.locateCellsBy;if((_3=="date"||_3==null)&&_54.date!=null)
{var _2=isc.DateUtil.parseSchemaDate(_54.date),_12=(_54.isHeaderRow=="true"),_13="date"+_54.dayIndex,_14="event"+_54.dayIndex;for(var i=0;i<this.data.length;i++){var _15=(this.data[i][_14]==null);if(_15==_12){if(isc.DateUtil.compareLogicalDates(this.data[i][_13],_2)==0){return i}}}
return-1}
this.locateRowsBy="index";return this.Super("getRowNumFromLocatorConfig",arguments)},getColLocatorOptions:function monthSchedule_getColLocatorOptions(_54,_28,_29){var _1=this.Super("getColLocatorOptions",arguments);_1.dayIndex=this.getField(_29).$66b;return _1},getColNumFromLocatorConfig:function monthSchedule_getColNumFromLocatorConfig(_54){var _3=this.locateCellsBy;if(_3==null||_3=="date"){return this.fields.findIndex("$66b",parseInt(_54.dayIndex))}
this.locateColsBy="index";return this.Super("getColNumFromLocatorConfig",arguments)}});isc.MonthScheduleBody.addProperties({getInteriorLocator:function monthScheduleBody_getInteriorLocator(_54){if(_54.tagName.toLowerCase()=="a"){var _16=_54.href;if(_16!=null){var _17=_16.match("javascript:.*monthViewEventClick\\((\\d+),(\\d+),(\\d+)\\);");if(_17){var _18=parseInt(_17[1]),_19=parseInt(_17[2]),_20=parseInt(_17[3]);var _11=this.grid.getEvents(_18,_19),_21=_11[_20];if(_21==null){this.logWarn("Unable to determine event associated with apparent event link element -- returning cell");return this.Super("getInteriorLocator",arguments)}
var _22=this.grid.creator,_23=_22.getEventLocatorConfig(_21);var _24=isc.AutoTest.createLocatorFallbackPath("eventLink",_23);return _24}}}
return this.Super("getInteriorLocator",arguments)},getInnerAttributeFromSplitLocator:function
monthScheduleBody_getInnerAttributeFromSplitLocator(_54,_55){if(_55.attribute!=isc.Canvas.$95j){this.setLogFailureText(true,"getValue() is not supported for");return}
if(this.emptyLocatorArray(_54))return this.$1304();if(_54.length==1&&_54[0].startsWith("eventLink")){var _25=isc.AutoTest.parseLocatorFallbackPath(_54[0]);var _22=this.grid.creator;var _21=_22.getEventFromLocatorConfig(_25.config);var _26=this.grid.getEventCell(_21);if(_26!=null){var _27=this.grid.data,_28=_26[0],_29=_26[1],_10=this.grid.getField(_29).$66b;var _30=this.getTableElement(_28,_29),_31=_30.getElementsByTagName("A");if(_31!=null){for(var _32=0;_32<_31.length;_32++){var _16=_31[_32].href;if(_16!=null){var _17=_16.match("javascript:.*monthViewEventClick\\((\\d+),(\\d+),(\\d+)\\);");if(_17&&_27[_28]["event"+_10][parseInt(_17[3])]==_21)
{return _31[_32]}}}}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)}}});isc.Calendar.addProperties({getCanvasLocatorFallbackPath:function calendar_getCanvasLocatorFallbackPath(_47,_54,_55,_56,_57){if(_47=="eventWindow"||_47=="eventCanvas"){var _1=this.getEventLocatorConfig(_54.event);return isc.AutoTest.createLocatorFallbackPath(_47,_1)}
return this.Super("getCanvasLocatorFallbackPath",arguments)},getEventLocatorConfig:function calendar_getEventLocatorConfig(_21){this.logWarn("In getEventLocatorConfig().  event:"+this.echo(_21));var _23={};if(this.dataSource){var _33=this.getDataSource().getPrimaryKeyFieldNames();for(var i=0;i<_33.length;i++){_23[_33[i]]=_21[_33[i]]}}
var _34=this.nameField;_23[_34]=_21[_34];var _35=this.startDateField;var _36=_21[_35];_23[_35]=_36.toSchemaDate();var _37=this.endDateField;var _38=_21[_37];_23[_37]=_38.toSchemaDate();_23.index=this.data.indexOf(_21);return _23},getChildFromFallbackLocator:function calendar_getChildFromFallbackLocator(_54,_55){var _39=_55.name,_23=_55.config;if(_39=="eventWindow"||_39=="eventCanvas"){var _40=this.getSelectedView(),_41=_40&&_40.body&&_40.body.children;if(_41!=null){var _21=this.getEventFromLocatorConfig(_23),_42=_41.find("event",_21);if(_42)return _42}
this.logWarn("unable to find event window associated with event:"+this.echo(_21)+" based on locator string:"+_54+". It's possible that this event is not visible in the current view of this Calendar","AutoTest");return null}
return this.Super("getChildFromFallbackLocator",arguments)},getEventFromLocatorConfig:function calendar_getEventFromLocatorConfig(_23){var _43=this.locateEventsBy;if(_43==null)_43="primaryKey";switch(_43){case"primaryKey":this.logDebug("Trying to locate event by pk","autotest");var _44=this.getDataSource();if(_44){var _33=_44.getPrimaryKeyFieldNames(),_45=_33.length>0,_46={};for(var i=0;i<_33.length;i++){if(_23[_33[i]]==null){_45=false;break}else{_46[_33[i]]=_23[_33[i]]}}
if(_45){this.logDebug("All key fields present: "+isc.echoAll(_46),"autotest");var _9=_44.findByKeys(_23,this.data);if(_9!=null&&_9!=-1){this.logDebug("Successfully located event by pk.  Record: "+isc.echoAll(this.data.get(_9)),"autotest");return this.data.get(_9)}}else{this.logDebug("PK values missing. Config: "+isc.echoAll(_23),"autotest")}}
this.logDebug("Failed to locate event by pk.  Config: "+isc.echoAll(_23),"autotest");if(isc.AutoTest.skipFallback)return null;case"name":var _47=_23[this.nameField];if(_47!=null)return this.data.find(this.nameField,_47);case"date":var _36=_23[this.startDateField],_38=_23[this.endDateField];for(var i=0;i<this.data.length;i++){var _48=this.data.get(i);if(_48==null)continue;if(_48[this.startDateField].toSchemaDate()==_36&&_48[this.endDateField].toSchemaDate()==_38)
{return _48}
this.logWarn("attempt to match calendar event by startDate / endDate unable to locate any events. Backing off to index within data array")}
default:var _20=parseInt(_23.index);return this.data.get(_20)}}});if(isc.EventCanvas)isc.EventCanvas.addProperties({getInnerAttributeFromSplitLocator:function
eventCanvas_getInnerAttributeFromSplitLocator(_54,_55){var _49=_55.attribute,_50=_49==isc.Canvas.$95l,_51=_49==isc.Canvas.$95j;if((_50||_51)&&_54.length==1){switch(_54[0]){case"body":return _50?this.getBodyHTML():this.$1304();case"headerLabel":return _50?this.getHeaderHTML():this.$1304()}}
return this.Super("getInnerAttributeFromSplitLocator",arguments)},getInteriorLocator:function eventCanvas_getInteriorLocator(_54){var _52=this.getElementPart(_54);if(_52){var _53=_52.part;if(_53=="headerLabel"||_53=="body")return _53}
return this.Super("getInteriorLocator",arguments)}})};if(isc.Calendar)isc.AutoTest.customizeCalendar();isc.A=isc.AutoTest;isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.implicitNetworkWait=false;isc.A.$119l="//testRoot[]";isc.A.testRoot=null;isc.A.$130n=["isCanvasDone","isItemDone","isFormDone","isTileLayoutDone","isTileGridDone","isGridBodyDone","isGridDone","isSystemDone","isElementClickable","isElementReadyForKeyPreses","getTableElementAndLogFailure","getHandleAndLogFailure","reportInvalidCellLocator","getInnerAttributeFromSplitLocator","getAttributeFromSplitLocator","getBaseComponentFromLocatorSubstring"];isc.A.$130o="!$originalLocator{";isc.A.$130p="}$!";isc.B.push(isc.A.$1220=function isc_c_AutoTest__isTextBased(_1){var _2=_1.tagName;if(!_1.tagName)return false;_2=_2.toLowerCase();return _2=="textarea"||_2=="input"&&(_1.type=="text"||_1.type=="password"||_1.type=="file")},isc.A.setTestRoot=function isc_c_AutoTest_setTestRoot(_1){this.testRoot=_1;if(_1!=null){this.logInfo("setting testRoot to canvas "+_1.ID+", so scLocators starting "+this.$119l+"... will now be seen as rooted there")}else{this.logInfo("clearing the testRoot canvas, so scLocators starting "+this.$119l+"... may no longer be used")}},isc.A.getTestRootScrollCanvas=function isc_c_AutoTest_getTestRootScrollCanvas(){if(this.testRoot==null){this.logWarn("Unable to locate the scroll canvas containing the test root when no test root canvas has been configured");return null}
var _1=window.featureExplorer;if(_1!=null)return _1.exampleViewer.viewPane;for(var _2=this.testRoot;!isc.isA.PaneContainer(_2);_2=_2.parentElement);return _2},isc.A.isCanvasDone=function isc_c_AutoTest_isCanvasDone(_1){if(!isc.Page.isLoaded()){this.$152s="the page is not loaded";return false}
if(_1==null){this.$152s="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null){this.$130t="there's no Canvas identified by "+this.getLocator(_1);return null}
if(!_2.isDrawn()){_2.setLogFailureText(true,null,"isn't drawn");return false}
if(_2.isDirty()){_2.setLogFailureText(true,null,"is dirty");return false}
if(_2.$rm){_2.setLogFailureText(true,null,"has pending overflow operations");return false}
if(_2.isAnimating&&_2.isAnimating()||_2.$35v||_2.$166n>0)
{_2.setLogFailureText(true,null,"is currently animating");return false}
if(_2.$u8!=null){_2.setLogFailureText(true,null,"currently has pending scroll events");return false}
if(isc.SplitPaneSidePanel&&isc.isA.SplitPaneSidePanel(_2)&&!_2.onScreen){_2.setLogFailureText(true,null,"has not yet set onSCreen: true");return false}
return true},isc.A.isTileLayoutDone=function isc_c_AutoTest_isTileLayoutDone(_1){if(!isc.Page.isLoaded()){this.$141g="the page is not loaded";return false}
if(_1==null){this.$141g="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null||!isc.isA.TileLayout(_2)){this.$141g=this.getLocator(_1)+" does not correspond to a valid TileLayout!";return null}
if(!this.isCanvasDone(_2))return false;if(_2.isAnimatingTileLayout()){_2.setLogFailureText(true,null,"is currently animating");return false}
if(_2.$57s!=null){_2.setLogFailureText(true,null,"has a layout after scroll scheduled");return false}
return true},isc.A.isTileGridDone=function isc_c_AutoTest_isTileGridDone(_1){if(!isc.Page.isLoaded()){this.$130u="the page is not loaded";return false}
if(_1==null){this.$130u="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null||!isc.isA.TileGrid(_2)){this.$130u=this.getLocator(_1)+" does not correspond to a valid TileGrid!";return null}
if(!this.isTileLayoutDone(_2))return false;if(_2.pendingActionOnPause("tileGridAnimate")){_2.setLogFailureText(true,"there is a pending animation for");return false}
if(this.implicitNetworkWait&&_2.requestsArePending()){_2.setLogFailureText(true,"there are DSRequests pending for");return false}
return true},isc.A.isFormDone=function isc_c_AutoTest_isFormDone(_1,_2){if(!isc.Page.isLoaded()){this.$166h="the page is not loaded";return false}
if(_1==null){this.$166h="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _3=_1,_4;if(!isc.isA.Class(_1)){_3=this.locateCanvasFromDOMElement(_1);_4=this.locateFormItemFromDOMElement(_3)}
if(!isc.isA.DynamicForm(_3)){this.$166h=_1+" does not correspond to a valid DynamicForm!";return null}
if(_4!=null&&!isc.isA.FormItem(_4)){this.$166h="invalid FormItem passed"
return null}
if(_3.$10u){_3.setLogFailureText(true,"a delayedSetValues(Focus)() call is pending for");return false}
var _5=true;var _6=_4?[_4]:_3.items;for(var i=0;i<_6.length;i++){var _4=_6[i];if(_4.containerWidget==_3)_5=false;var _8=this.isItemDone(_4,_2);if(_8!=true)return _8}
if((!_5||_3.isDrawn())&&!this.isCanvasDone(_3))return false;return true},isc.A.isItemDone=function isc_c_AutoTest_isItemDone(_1,_2,_3){if(!isc.Page.isLoaded()){this.$166i="the page is not loaded";return false}
if(_1==null){this.$166i="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _4=_1;if(!isc.isA.FormItem(_1)){_4=this.locateFormItemFromDOMElement(_1)}
if(!isc.isA.FormItem(_4)){this.$166i=_1+" does not correspond to a valid FormItem!";return null}
var _5=_4.form,_6=!_3&&!_4.destroyed&&_4.containerWidget;if(_6&&_6!=_5&&!_6.$124j(_2))
{_4.setLogFailureText(true,"the container canvas of","reports "+this.getLogFailureText(true));return false}
if(_4.$127i(true)){_4.setLogFailureText(true,"display/value field values are being fetched for");return false}
if(isc.isA.TextItem(_4)&&_4.$85u){_4.setLogFailureText(true,"a delayed select operation is pending for");return false}
if(isc.PickList&&isc.isA.PickList(_4)){if(_4.pendingActionOnPause("fetch")){_4.setLogFailureText(true,"a delayed fetch is queued for");return false}
if(_4.$43j){_4.setLogFailureText(true,null,"has a fetch oustanding");return false}}
var _7=_4.items||[];for(var i=0;i<_7.length;i++){if(isc.isA.FormItem(_7[i])&&!this.isItemDone(_7[i],_2,true))
{_4.setLogFailureText(true,"a contained item of","reports "+this.getLogFailureText(true));return false}}
var _9=_4.canvas;if(isc.isA.Canvas(_9)&&!_9.$124j(_2)){_4.setLogFailureText(true,"a contained canvas of","reports "+this.getLogFailureText(true));return false}
return true},isc.A.$151y=function isc_c_AutoTest__isGridBodyDone(_1){if(_1==null)return true;var _2="body",_3=_1.grid;if(_3.body!=_1)_2="frozen "+_2;if(_1.isDirty()&&_1.isDrawn()){_3.setLogFailureText(true,"the "+_2+" of","is dirty");return false}
if(_1.pendingActionOnPause("scrollRedraw")){_3.setLogFailureText(true,null,"is scrolling");return false}
return true},isc.A.isGridDone=function isc_c_AutoTest_isGridDone(_1,_2){if(!isc.Page.isLoaded()){this.$130v="the page is not loaded";return false}
if(_1==null){this.$130v="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _3=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);while(_3!=null&&!isc.isA.ListGrid(_3))_3=_3.parentElement;if(_3==null){this.$130w="there's no ListGrid containing locator "+this.getLocator(_1);return null}
if(_3.summaryRow&&!isc.AutoTest.isGridDone(_3.summaryRow,_2)){return false}
if(this.implicitNetworkWait&&_3.requestsArePending()){_3.setLogFailureText(true,"there are DSRequests pending for");return false}
var _4=_3.filterEditor;if(_4&&_4.pendingActionOnPause("performFilter")){_3.setLogFailureText(true,"there is a pending filter operation for the FilterEditor of");return false}
if(!_2&&_3.hasChanges()){_3.setLogFailureText(true,null,"has unsaved edits");return false}
if(_3.$1097){_3.setLogFailureText(true,null,"is regrouping asynchronously");return false}
if(_3.data!=null&&isc.isA.ResultSet(_3.data)){if(!_3.data.lengthIsKnown()){_3.setLogFailureText(true,"the length of the ResultSet associated with","is not yet known");return false}
if(_3.data.fetchIsPending()){_3.setLogFailureText(true,"has a pending fetch");return false}}
if(_3.loadingData)return false;return this.$151y(_3.body)&&this.$151y(_3.frozenBody)},isc.A.isDrawPaneDone=function isc_c_AutoTest_isDrawPaneDone(_1){if(!isc.Page.isLoaded()){this.$130u="the page is not loaded";return false}
if(_1==null){this.$176z="the element is null";return null}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=isc.isA.Canvas(_1)?_1:this.locateCanvasFromDOMElement(_1);if(_2==null||!isc.isA.DrawPane(_2)){this.$176z=this.getLocator(_1)+" does not correspond to a valid DrawPane!";return null}
if(!this.isCanvasDone(_2))return false;if(_2.$439||_2.$155e){_2.setLogFailureText(true,null,"currently has DrawItem(s) waiting to be (re)drawn");return false}
return true},isc.A.isElementClickable=function isc_c_AutoTest_isElementClickable(_1){if(!isc.Page.isLoaded()){this.$130q="the page is not loaded";return false}
if(_1==null){this.$130q="the element is null";return null}
if(isc.isA.Canvas(_1)||isc.isA.FormItem(_1)){_1=_1.getHandle()}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=this.locateCanvasFromDOMElement(_1);if(_2==null){this.$130q="there's no Canvas identified by "+_1.getLocator();return null}
if(this.implicitNetworkWait&&isc.RPCManager.requestsArePending()){_2.setLogFailureText(true,"RPCManager.requestsArePending() for");return false}
if(_2==this.testRoot)return true;if(!_2.isVisible()){_2.setLogFailureText(true,null,"isn't visible");return false}
if(_2.isDisabled()){_2.setLogFailureText(true,null,"is disabled");return false}
if(isc.EH.targetIsMasked(_2,null,true)){var _3=isc.EH.clickMaskRegistry.last()||{},_4=window[_3.ID];if(isc.isAn.Instance(_4)){_4.setLogFailureText(false,null,"is blocking clicks at "+_2.$130k(true))}else{var _5=_3.ID?"click mask "+_3.ID:"an unknown click mask";_2.setLogFailureText(true,null,"is blocked by "+_5)}
return false}
return _2.$124j()},isc.A.isElementReadyForKeyPresses=function isc_c_AutoTest_isElementReadyForKeyPresses(_1){if(!isc.Page.isLoaded()){this.$130s="the page is not loaded";return false}
if(_1==null){this.$130s="the element is null";return null}
if(isc.isA.Canvas(_1)||isc.isA.FormItem(_1)){_1=_1.getHandle()}
if(isc.isA.String(_1))_1=this.getElement(_1);var _2=this.locateCanvasFromDOMElement(_1);if(_2==null){this.$130s="there's no Canvas identified by "+_1.getLocator();return null}
if(this.$1220(_1)&&_1!=document.activeElement){_2.setLogFailureText(true,"the text field in","is not the active DOM element");return false}
return this.isElementClickable(_1)},isc.A.isSystemDone=function isc_c_AutoTest_isSystemDone(_1,_2){if(!isc.Page.isLoaded()){this.$130x="the page is not loaded";return false}
var _3=isc.Canvas.$65j;if(_3.length>0){this.$130x="there are "+_3.length+" pending destroys";return false}
if(isc.EH.resizeTimer!=null){this.$130x="there is a pending EventHandler page-level resize queued";return false}
if(this.implicitNetworkWait&&isc.RPCManager&&isc.RPCManager.requestsArePending()){this.$130x="RPCManager.requestsArePending() is true";return false}
var _4=isc.Canvas.$101e;if(_1&&isc.isAn.Array(_4)&&_4.length>0){this.$130x="there are "+_4.length+" pending redraws";return false}
for(var i=0;i<isc.Canvas._canvasList.length;i++){var _6=isc.Canvas._canvasList[i];if(!_6.$124j(true,!_2)){this.$130x="Canvas "+_6.ID+" is not done processing";return false}}
delete this.$130x;return true},isc.A.$130l=function isc_c_AutoTest__createLocatorMarker(_1){if(!_1)_1="";return this.$130o+_1+this.$130p},isc.A.$130y=function isc_c_AutoTest__replaceLocatorMarker(_1,_2){return _1.replace(/!\$originalLocator\{.*\}\$!/,_2)},isc.A.$130z=function isc_c_AutoTest__populateLocatorMarker(_1,_2){var _3="",_4=this.$1300,_5=_1.match(/^.*!\$originalLocator\{(.*)\}\$!.*$/);if(_4&&_5&&!_2){var _6=_5[0].replace(/!\$originalLocator\{(.*)\}\$!/,"$1");if(_6==""||!this.locatorsEqual(_6,_4)){_3=" and corresponding to original locator "+_4}}
return this.$130y(_1,_3)},isc.A.applyFuncToLogSlots=function isc_c_AutoTest_applyFuncToLogSlots(_1){var _2=this.$130n;for(var i=0;i<_2.length;i++){var _4="_"+_2[i]+"Log",_5=_1(_4);if(_5!=null)return _5}
return null},isc.A.setLogFailureText=function isc_c_AutoTest_setLogFailureText(_1,_2,_3){var _4=isc.AutoTest.setLogFailureText.caller||arguments.callee.caller,_5=_4.name||isc.Func.getName(_4,true),_6=_5.replace(/^.*[_]+([^_]+)/,"\137$1")+"Log";if(this[_6])return;this[_6]=this.$130m(_1,_2,_3)},isc.A.$130m=function isc_c_AutoTest__getLogFailureText(_1,_2){var _3;if(_1==true)_3=this.$1300;else if(isc.isA.String(_1))_3=_1;return _3?_2+" "+_3:_2},isc.A.getLogFailureText=function isc_c_AutoTest_getLogFailureText(_1){var _2=this,_3=this.applyFuncToLogSlots(function(_5){var _4=_2[_5];if(_4!=null)_2[_5]=null;return _4});return _3?this.$130z(_3,_1):_3},isc.A.clearAllLogSlots=function isc_c_AutoTest_clearAllLogSlots(){var _1=this;return this.applyFuncToLogSlots(function(_2){_1[_2]=null})},isc.A.seleniumExecute=function isc_c_AutoTest_seleniumExecute(_1,_2,_3,_4){this.clearAllLogSlots();this.$1300=_3||_2;var _5,_6=this[_1](_2,_4);switch(_1){case"getElement":if(isc.isAn.Object(_6))return _6;break;case"getValue":if(_6!==_5)return _6;break;default:if(_6)return _6}
var _7=isc.Log.getPriority("testReplay");if(_7==null||_7<isc.Log.INFO){isc.Log.setPriority("testReplay",isc.Log.INFO)}
var _8=this.getLogFailureText();if(_8)this.logInfo(_1+"() returned "+_6+" because "+_8,"testReplay");if(_7==null)isc.Log.clearPriority("testReplay");else if(_7<isc.Log.INFO)isc.Log.setPriority("testReplay",_7);return _6});isc.B._maxIndex=isc.C+23;if(!isc.Page.isLoaded()){isc.Page.setEvent("load","isc.ApplyAutoTestMethods()")}else{isc.ApplyAutoTestMethods()}
isc.Page.logInfo("SmartClient Core ("+isc.version+" "+isc.buildDate+") initialized: "+(isc.timeStamp()-isc.$d)+"ms");isc.Page.logInfo("document.compatMode: "+document.compatMode);if(isc.Log.hasFireBug()){isc.Log.logWarn("NOTE: Firebug is enabled. Firebug greatly slows the performance of applications that make heavy use of JavaScript. Isomorphic highly recommends Firebug for troubleshooting, but Firebug and other development tools should be disabled when assessing the real-world performance of SmartClient applications.")}
isc._nonDebugModules=(isc._nonDebugModules!=null?isc._nonDebugModules:[]);isc._nonDebugModules.push('Core');isc.checkForDebugAndNonDebugModules();isc._moduleEnd=isc._Core_end=(isc.timestamp?isc.timestamp():new Date().getTime());if(isc.Log&&isc.Log.logIsInfoEnabled('loadTime'))isc.Log.logInfo('Core module init time: '+(isc._moduleEnd-isc._moduleStart)+'ms','loadTime');delete isc.definingFramework;if(isc.Page)isc.Page.handleEvent(null,"moduleLoaded",{moduleName:'Core',loadTime:(isc._moduleEnd-isc._moduleStart)});}else{if(window.isc&&isc.Log&&isc.Log.logWarn)isc.Log.logWarn("Duplicate load of module 'Core'.");}
