/* Stimulsoft.Reports.JS Version: 2024.2.2 Build date: 2024.03.11 License: https://www.stimulsoft.com/en/licensing/reports */ !function(t){var e;"undefined"!=typeof process&&process.__nwjs||"object"!=typeof exports||"undefined"==typeof module?"function"==typeof define&&define.amd?define(["./stimulsoft.reports"],e=>Object.assign(e,t(e.Stimulsoft))):window.Stimulsoft?window.Stimulsoft.Report&&window.Stimulsoft.Report.StiReport?Object.assign(window,t(window.Stimulsoft)):window.Stimulsoft.viewerFactory=t:window.Stimulsoft={viewerFactory:t}:module.exports=(e=require("./stimulsoft.reports"),Object.assign(e,t(e.Stimulsoft)))}(function(B){var J=B.StiOptions;function i(e,t){for(var o in t)o in e?i(e[o],t[o]):e[o]=t[o];return e}B&&(B.__engineVersion&&"2024.2.2"!==B.__engineVersion?console.warn("Scripts versions mismatch: engine ver. = %s; viewer ver. = 2024.2.2",B.__engineVersion):"2024.2.2"!==B.__reportsVersion&&console.warn("Scripts versions mismatch: reports ver. = %s; viewer ver. = 2024.2.2",B.__reportsVersion));var B=i(B||{},{Viewer:{Helpers:{Dashboards:{}}}}),f={};function k(e,t){var o=this,i,a;if(this.defaultParameters=B.System.decompressLiteral("\bIQBa_€\bmz€€ހ"),this.options=e.options,this.options.isTouchDevice="Auto"==this.options.appearance.interfaceType?this.IsTouchDevice()&&this.IsMobileDevice():"Touch"==this.options.appearance.interfaceType||"Mobile"==this.options.appearance.interfaceType,this.options.isMobileDevice=!1!==this.options.appearance.allowMobileMode&&("Auto"==this.options.appearance.interfaceType&&0==this.options.reportDesignerMode?this.IsTouchDevice()&&this.IsMobileDevice():"Mobile"==this.options.appearance.interfaceType),this.options.menuAnimDuration=150,this.options.formAnimDuration=200,this.options.scrollDuration=350,this.options.menuHideDelay=250,this.options.server.timeoutAutoUpdateCache=18e4,this.options.toolbar.backgroundColor=this.getHTMLColor(this.options.toolbar.backgroundColor),this.options.toolbar.borderColor=this.getHTMLColor(this.options.toolbar.borderColor),this.options.toolbar.fontColor=this.getHTMLColor(this.options.toolbar.fontColor),this.options.appearance.pageBorderColor=this.getHTMLColor(this.options.appearance.pageBorderColor),this.options.exports.defaultSettings=e.defaultExportSettings,this.options.parametersValues={},this.options.parameterRowHeight=this.options.isTouchDevice?26:23,this.options.osWin11=this.checkWin11(),this.options.customThemeAccent=this.options.cloudMode?k.GetCookie("StimulsoftCustomThemeAccent"):this.options.customThemeAccentColor||this.options.appearance.customThemeAccentColor,this.proxy=document["proxy"+this.options.viewerId],this.proxy&&(this.proxy.jsObject=this),this.collections=B.System.decompressLiteral("\bIQBa_€\bmz€€ހ"),t&&(this.collections=t),e.loc&&this.collections.loc&&(this.collections.loc=e.loc),this.collections.dayOfWeek=[this.collections.loc.AbbreviatedDayMonday,this.collections.loc.AbbreviatedDayTuesday,this.collections.loc.AbbreviatedDayWednesday,this.collections.loc.AbbreviatedDayThursday,this.collections.loc.AbbreviatedDayFriday,this.collections.loc.AbbreviatedDaySaturday,this.collections.loc.AbbreviatedDaySunday],"Sunday"==("Auto"==this.options.appearance.datePickerFirstDayOfWeek?this.GetFirstDayOfWeek():this.options.appearance.datePickerFirstDayOfWeek)&&(this.collections.dayOfWeek.splice(6,1),this.collections.dayOfWeek.splice(0,0,this.collections.loc.AbbreviatedDaySunday)),this.controls={},this.controls.forms={},this.controls.head=document.getElementsByTagName("head")[0],this.controls.viewer=document.getElementById(this.options.viewerId),this.controls.mainPanel=document.getElementById(this.options.viewerId+"_JsViewerMainPanel"),this.controls.findHelper={findLabels:[]},this.reportParams={type:"Auto",pageNumber:0,pagesCount:0,zoom:this.options.toolbar.zoom,viewMode:this.options.toolbar.viewMode,reportFileName:null,pagesArray:[],collapsingStates:null,bookmarksContent:null,editableParameters:null,drillDownGuid:null,dashboardDrillDownGuid:null,drillDownParameters:[]},this.service={},this.service.resizeTimer=null,this.service.refreshReportTimer=null,this.service.isRequestInProcess=!1,this.service.elementRefreshTimers={},this.options.actions.getReport||(this.options.actions.getReport=this.options.actions.viewerEvent),this.options.actions.printReport||(this.options.actions.printReport=this.options.actions.viewerEvent),this.options.actions.openReport||(this.options.actions.openReport=this.options.actions.viewerEvent),this.options.actions.exportReport||(this.options.actions.exportReport=this.options.actions.viewerEvent),this.options.actions.interaction||(this.options.actions.interaction=this.options.actions.viewerEvent),window.File&&window.FileReader&&window.FileList&&window.Blob||(this.options.toolbar.showOpenButton=!1),"Auto"==this.options.theme&&this.ApplyAutoTheme(),this.ApplyViewerBackColor(),(this.options.requestResourcesUrl||this.options.appearance.customStylesUrl)&&(a=this.options.appearance.customStylesUrl||this.GetResourceUrl("styles"),this.options.customThemeAccent&&(a+="&stiweb_customaccent="+this.options.customThemeAccent.replace("#","")),this.LoadStyle(a)),this.options.stimulsoftFontContent&&this.addCustomFontStyles([{contentForCss:this.options.stimulsoftFontContent,originalFontFamily:"Stimulsoft"}]),this.options.customOpenTypeFonts&&!o.options.reportDesignerMode&&this.addCustomFontStyles(this.options.customOpenTypeFonts),this.options.imagesScalingFactor=this.getImagesScalingFactor(),this.collections.images)this.InitializeViewerControls();else{var s={method:"GET",imagesScalingFactor:this.options.imagesScalingFactor,useCompression:this.options.server.useCompression,iconSet:this.options.appearance.iconSet},n=("StiCloudShareViewer"!=this.options.viewerId&&"StiCloudReportsShareViewer"!=this.options.viewerId||(s.sharingLocalization=k.GetCookie("sti_CloudLocalization")||this.getDefaultLocalization()),o.GetResourceUrl("images")),l;for(l in s)"method"!=l&&(n+="&stiweb_"+l.toLowerCase()+"="+s[l]);this.postAjax(n,s,function(e){e&&(o.options.server.useCompression&&(e=G.unpack(e)),(e=JSON.parse(e)).images&&(o.collections.images=e.images),e.localizationItems)&&(o.collections.loc=e.localizationItems),o.InitializeViewerControls(function(){o.options.reportDesignerMode||("complete"==document.readyState?o.postAction():o.addEvent(window,"load",function(){o.postAction()}))})})}}f.a=B.Viewer,f.b=f.a.Helpers,f.c=f.b.Dashboards,k.setImageSource=function(e,t,o,i,a,s){if(o.controlsWithImages||(o.controlsWithImages={}),s||(e.id||(e.id=k.prototype.newGuid()),o.controlsWithImages[e.id]={imageControl:e,imageName:i}),"IMG"==e.tagName)e.src=o.images[i];else if("image"==e.tagName)e.href.baseVal=o.images[i];else{if("DIV"!=e.tagName)throw"";e.style.backgroundImage="url("+o.images[i]+")"}},k.checkImageSource=function(e,t,o){return null!=t.images[o]},k.getImageSource=function(e,t,o){return t.images[o]},k.prototype.LoadStyle=function(e,t){if(t){for(var o=this.controls.head.childNodes,i=0;i>6|192))+String.fromCharCode(63&i|128):(t=(t+=String.fromCharCode(i>>12|224))+String.fromCharCode(i>>6&63|128))+String.fromCharCode(63&i|128)}e=t}if(void 0!==window.btoa)return window.btoa(e);var a="",s,n,l,r,A,p,c,g=0;while(g>2,A=(3&s)<<4|(n=e.charCodeAt(g++))>>4,p=(15&n)<<2|(l=e.charCodeAt(g++))>>6,c=63&l,isNaN(n)?p=c=64:isNaN(l)&&(c=64),a=a+this._keyStr.charAt(r)+this._keyStr.charAt(A)+this._keyStr.charAt(p)+this._keyStr.charAt(c);return a},decode:function(e){if(null==e)return"";var t="";if(void 0!==window.atob)t=window.atob(e);else{var o,i,a,s,n,l,r,A=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(A>2,a=(3&l)<<6|(r=this._keyStr.indexOf(e.charAt(A++))),t+=String.fromCharCode(o=s<<2|n>>4),64!=l&&(t+=String.fromCharCode(i)),64!=r&&(t+=String.fromCharCode(a))}if("undefined"!=typeof escape)return decodeURIComponent(escape(t));var p="",A=0,c=0,g=0,h=0,d=0;while(A>>8):(this.putByte(255&e),this.putByte(e>>>8))},o.prototype.insertString=function(){this._insH=(this._insH<>7)])},o.prototype.smaller=function(e,t,o){return e[t].fcd.maxDist?this._strStart-d.maxDist:d.nil,l=this._strStart+d.maxMatch,r=this._window[o+s-1],A=this._window[o+s];this._prevLength>=this._goodMatch&&(t>>=2);do{if(i=e,this._window[i+s]!=A||this._window[i+s-1]!=r||this._window[i]!=this._window[o]||this._window[++i]!=this._window[o+1])continue;o+=2,i++;do{}while(this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&this._window[++o]==this._window[++i]&&o=d.maxMatch)break}else if(a>=this._niceMatch)break;r=this._window[o+s-1],A=this._window[o+s]}}while((e=this._prev[e&d.wMask])>n&&0!=--t);return s},o.prototype.fillWindow=function(){var e,t,o=d.windowSize-this._lookahead-this._strStart;if(-1==o)o--;else if(this._strStart>=d.wSize+d.maxDist){for(e=0;e=d.wSize?t-d.wSize:d.nil);for(e=0;e=d.wSize?t-d.wSize:d.nil;o+=d.wSize}this._eoFile||((e=this.readBuffer(this._window,this._strStart+this._lookahead,o))<=0?this._eoFile=!0:this._lookahead+=e)},o.prototype.deflateFast=function(){while(0!=this._lookahead&&null==this._qHead){var e=void 0;if(this.insertString(),this._hashHead!=d.nil&&this._strStart-this._hashHead<=d.maxDist&&(this._matchLength=this.longestMatch(this._hashHead),this._matchLength>this._lookahead)&&(this._matchLength=this._lookahead),this._matchLength>=d.minMatch)if(e=this.ctTally(this._strStart-this._matchStart,this._matchLength-d.minMatch),this._lookahead-=this._matchLength,this._matchLength<=this._maxLazyMatch){this._matchLength--;do{this._strStart++,this.insertString()}while(0!=--this._matchLength);this._strStart++}else this._strStart+=this._matchLength,this._matchLength=0,this._insH=255&this._window[this._strStart],this._insH=(this._insH<this._lookahead&&(this._matchLength=this._lookahead),this._matchLength==d.minMatch)&&this._strStart-this._matchStart>d.tooFar&&this._matchLength--,this._prevLength>=d.minMatch&&this._matchLength<=this._prevLength){var e=this.ctTally(this._strStart-1-this._prevMatch,this._prevLength-d.minMatch);this._lookahead-=this._prevLength-1,this._prevLength-=2;do{this._strStart++,this.insertString()}while(0!=--this._prevLength);this._matchAvailable=0,this._matchLength=d.minMatch-1,this._strStart++,e&&(this.flushBlock(0),this._blockStart=this._strStart)}else 0!=this._matchAvailable?this.ctTally(0,255&this._window[this._strStart-1])&&(this.flushBlock(0),this._blockStart=this._strStart):this._matchAvailable=1,this._strStart++,this._lookahead--;while(this._lookaheadthis._qHead.length&&(a=this._qHead.length),s=0;sthis._outCount-this._outOffset&&(a=this._outCount-this._outOffset),s=0;s>=7;t>1;1<=a;a--)this.pqDownHeap(t,a);do{a=this._heap[d.smallest],this._heap[d.smallest]=this._heap[this._heapLen--],this.pqDownHeap(t,d.smallest),s=this._heap[d.smallest],this._heap[--this._heapMax]=a,this._heap[--this._heapMax]=s,t[l].fc=t[a].fc+t[s].fc,this._depth[a]>this._depth[s]+1?this._depth[l]=this._depth[a]:this._depth[l]=this._depth[s]+1,t[a].dl=t[s].dl=l,this._heap[d.smallest]=l++,this.pqDownHeap(t,d.smallest)}while(2<=this._heapLen);this._heap[--this._heapMax]=this._heap[d.smallest],this.genBitLength(e),this.genCodes(t,n)},o.prototype.scanTree=function(e,t){var o=-1,i,a=e[0].dl,s=0,n=4,l=7;0==a&&(n=3,l=138),e[t+1].dl=65535;for(var r=0;r<=t;r++){if(i=a,a=e[r+1].dl,++s>3,a=this._staticLen+3+7>>3;if(t+4<=(i=a<=i?a:i)&&0<=this._blockStart){this.sendBits((d.storedBlock<<1)+e,3),this.biWindup(),this.putShort(t),this.putShort(~t);for(var s=0;s>=3,this._lastDist>=1}while(od.bufferSize-t?(this._biBuffer|=e<>d.bufferSize-this._biValid,this._biValid+=t-d.bufferSize):(this._biBuffer|=e<>=1,o<<=1}while(0<--t);return o>>1},o.prototype.biWindup=function(){8>=e,this._bitLength-=e},o.prototype.inflateCodes=function(e,t,o){var i,a,s=0;if(0==o)return 0;for(;;){this.needBits(this._bl),i=(a=this._tl.list[this.getBits(this._bl)]).e;while(16>>1:e>>>1;this._crcTable[t]=e}}return this._crcTable},enumerable:!0,configurable:!0}),h.crc32=function(e){for(var t=0^-1,o=0;o>>8^this.crcTable[255&(t^e[o])];return(-1^t)>>>0},h.putByte=function(e,t){t.push(255&e)},h.putShort=function(e,t){t.push(255&e),t.push(e>>>8)},h.putLong=function(e,t){h.putShort(65535&e,t),h.putShort(e>>>16,t)},h.putString=function(e,t){for(var o=0;oS+c[1+v]){if(S+=c[1+v],v++,D=(D=y-S)>s?s:D,(R=1<<(l=B-S))>k+1){R-=k+1,E=B;while(++l>S-c[v],d[v-1][l].e=h.e,d[v-1][l].b=h.b,d[v-1][l].n=h.n,d[v-1][l].t=h.t)}for(h.b=B-S,t<=C?h.e=99:w[C]>S;l>=1)n^=l;n^=l;while((n&(1<>>4&15)+t.charAt(15&i);return o}function ge(e){var t="",o=-1,i,a;while(++o>>6&31,128|63&i):i<=65535?t+=String.fromCharCode(224|i>>>12&15,128|i>>>6&63,128|63&i):i<=2097151&&(t+=String.fromCharCode(240|i>>>18&7,128|i>>>12&63,128|i>>>6&63,128|63&i));return t}function he(e){for(var t=Array(e.length>>2),o=0;o>5]|=(255&e.charCodeAt(o/8))<>5]>>>o%32&255);return t}function ue(e,t){e[t>>5]|=128<>>9<<4)+14]=t;for(var o=1732584193,i=-271733879,a=-1732584194,s=271733878,n=0;n>16)+(t>>16)+(o>>16)<<16|65535&o}function fe(e,t){return e<>>32-t}function we(e,t,o,i,a,s){if(o&&A.prototype.checkXSSEvents(o)||i&&A.prototype.checkXSSEvents(i))return;this.id=e,this.pid=t,this.name=o,this.url=i&&i.replace(/'/g,"\\'"),this.title=a,this.page,a&&(this.page=parseInt(a.substr(5))-1),this.componentGuid=s,this.target=null,this.icon=null,this.iconOpen=null,this._io=!1,this._is=!1,this._ls=!1,this._hc=!1,this._ai=0,this._p}function A(e,t,o,i){for(var a in this.config={target:null,folderLinks:!0,useSelection:!0,useCookies:!1,useLines:!0,useIcons:!0,useStatusText:!1,closeSameLevel:!1,inOrder:!1},this.icon={nlPlus:"img/nolines_plus.gif",nlMinus:"img/nolines_minus.gif"},i)this.icon[a]=i[a];this.obj=e,this.mobileViewerId=t,this.currentPageNumber=o,this.aNodes=[],this.aIndent=[],this.root=new we(-1),this.selectedNode=null,this.selectedFound=!1,this.completed=!1}k.prototype.postAction=function(e,t,o,i){var a=this,s,n;switch(e){case"Refresh":if(a.options.refreshInProgress||a.options.resizeInProgress||a.service.isRequestInProcess)return;a.options.tablesColumnsOrder={},a.options.refreshInProgress=!0;break;case"Print":switch(this.options.toolbar.printDestination){case"Pdf":this.postPrint("PrintPdf");break;case"Direct":this.postPrint("PrintWithoutPreview");break;case"WithPreview":this.postPrint("PrintWithPreview");break;default:this.controls.menus.printMenu.changeVisibleState(!this.controls.menus.printMenu.visible);break}return;case"Open":if(!this.checkCloudAuthorization("open"))return;var l=this.InitializeOpenDialog("openReportDialog",function(e,t,o){var i=a.options.reportDesignerMode&&a.options.jsDesigner?a.options.jsDesigner.options.compilationAccess:"Allow";l.jsObject.postOpen(e,o,i)},".mdc,.mdz,.mdx,.mrt,.mrz,.mrx");return void l.action();case"OpenDashboard":if(!this.checkCloudAuthorization("open"))return;return void this.InitializeOpenDialog("openDashboardDialog",function(e,t,o){a.postOpen(e,o)},".mdc,.mdz,.mdx,.mrt,.mrz,.mrx").action();case"Save":return void this.controls.menus.saveMenu.changeVisibleState(!this.controls.menus.saveMenu.visible);case"SendEmail":return void this.controls.menus.sendEmailMenu.changeVisibleState(!this.controls.menus.sendEmailMenu.visible);case"Zoom":return void this.controls.menus.zoomMenu.changeVisibleState(!this.controls.menus.zoomMenu.visible);case"ViewMode":return void this.controls.menus.viewModeMenu.changeVisibleState(!this.controls.menus.viewModeMenu.visible);case"FirstPage":case"PrevPage":case"NextPage":case"LastPage":if("FirstPage"==e&&(this.reportParams.pageNumber=0),"PrevPage"==e&&0"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(e.maxReportPages)+".",void i().show(a,o,"Notifications.Elements.png");if(e.maxDataRows)return a=this.collections.loc["QuotaMaximumDataRowsCountExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(e.maxDataRows)+".",void i().show(a,o,"Notifications.Lines.png");if(e.maxResources)return a=this.collections.loc["QuotaMaximumResourcesCountExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.numberWithSpaces(e.maxResources)+".",void i().show(a,o,"Notifications.Files.png");if(e.maxResourceSize)return a=this.collections.loc["QuotaMaximumResourceSizeExceeded"]+"
"+this.collections.loc["Maximum"]+" "+this.GetHumanFileSize(e.maxResourceSize)+".",void i().show(a,o,"Notifications.Files.png");if(e.notAllowDatabase)return a="The '"+e.notAllowDatabase+"' data source is not available in your subscription.",void i().show(a,o,"Notifications.Blocked.png");if(e.notAllowDataTransformation)return a="Data transformation is not available in your subscription.",void i().show(a,o,"Notifications.Blocked.png")},k.prototype.showParametersPanel=function(e,t){var o="string"==typeof(e=t.showError(e)?null:e)?JSON.parse(e):e;if(t.options.isParametersReceived=!0,t.controls.processImage.hide(),t.checkParametersPanelAlreadyBuildedForDrillDown(o))return;t.options.paramsVariables=o,t.InitializeParametersPanel(),("Dashboard"==t.reportParams.type||t.options.reportDesignerMode&&t.options.startPageNumber&&t.controls.dashboardsPanel)&&(t.postAction("GetPages"),t.options.startPageNumber=null)},k.prototype.checkParametersPanelAlreadyBuildedForDrillDown=function(e){if(this.controls.drillDownPanel&&this.controls.drillDownPanel.visible&&0
"+t.collections.loc.UnsafeCompilation2,s.show(n,"Warning"),void(s.action=function(){t.currentOpeningData&&(t.controls.processImage.show(),t.currentOpeningData.openInSafeMode=!0,t.postAjax(t.getActionRequestUrl(t.options.requestUrl,t.options.actions.openReport),t.currentOpeningData,t.showReportPage),t.currentOpeningData=null)})}"GetReport"!=o.action&&"OpenReport"!=o.action||"FromReport"!=t.options.appearance.parametersPanelPosition||!o.parametersOrientation||(t.options.currentParametersPanelPosition="Horizontal"==o.parametersOrientation?"Top":"Left"),t.options.jsMode&&"InitVars"==o.action&&("Dashboard"==t.reportParams.type||0{i.proxy.error(e[0]),t(...e)})),0==e?o("ServerError:Timeout response from the server.",i):200==e?o(a.response||a.responseText,i):a.responseText&&"ServerError:"==a.responseText.substr(0,12)?o(a.responseText,i):i.options.server.showServerErrorPage&&a.responseText?i.controls.reportPanel.innerHTML=a.responseText:o("ServerError:"+e+" - "+a.statusText,i)}},this.service.isRequestInProcess=!0,this.createPostParameters(t,null!=i.proxy));a.id=this.options.viewerId,a.send(s)},k.prototype.postForm=function(e,t,o,i){var a=this,s=(o=o||document).createElement("FORM"),n=(s.setAttribute("method","POST"),s.setAttribute("action",e),i?t:a.createPostParameters(t,!0)),l;for(l in this.options.requestToken&&(n["__RequestVerificationToken"]=this.options.requestToken),n){var r=o.createElement("INPUT");r.setAttribute("type","hidden"),r.setAttribute("name",l),r.setAttribute("value",n[l]),s.appendChild(r)}a.options.jsDesigner&&(a.options.jsDesigner.options.ignoreBeforeUnload=!0),o.body.appendChild(s),s.submit(),o.body.removeChild(s),setTimeout(function(){a.options.jsDesigner&&(a.options.jsDesigner.options.ignoreBeforeUnload=!1)},500)},k.prototype.showError=function(e){var t="Error",o=null,o,i,a,s;if(null!=e&&"string"==typeof e&&"CloudServerError:"==e.substr(0,17))return i=(o=e.length<=18?"An unknown error occurred (the server returned an empty value).":e.substr(17)).split(";"),(a=this.controls.forms.notificationForm||this.InitializeNotificationForm()).show(i[0],0"),t):alert(o),!0}return!1},k.prototype.getActionRequestUrl=function(e,t){if(!t)return e.replace("{action}","");if(t.indexOf("?")<0)return e.replace("{action}",t);var o=t.substring(t.indexOf("?")+1);return t=t.substring(0,t.indexOf("?")),e.replace("{action}",t)+(0Math.abs(t-i)?t-i:n,sMath.abs(t-i)?t-i:n,sMath.abs(100-e.currentOpacity)&&(a=100-e.currentOpacity),e.currentOpacity=e.currentOpacity+a,iMath.abs(t-a)?t-a:l,this);na.offsetHeight?a.offsetHeight:a.offsetWidth,widthStyle:a.style.width,heightStyle:a.style.height}:e.sizes={inPixels:a.clientWidth>a.clientHeight?a.clientHeight:a.clientWidth,widthStyle:a.clientWidth+"px",heightStyle:a.clientHeight+"px"}}"Google Chrome"!=this.getNavigatorName()&&(e.style.outline="1px solid gray"),e.style.textAlign="center",e.className+=" stiEditableField stiEditableFieldSelected";var s=this.GetSvgCheckBox(o[3],o[5],this.StrToInt(o[6]),o[7],e.sizes.inPixels),n=this.GetSvgCheckBox(o[4],o[5],this.StrToInt(o[6]),o[7],e.sizes.inPixels);t.falseImage="
"+s+"
",t.trueImage="
"+n+"
",t.checked=null!=o[2]&&("true"==o[2].toLowerCase()||"1"==o[2].toLowerCase()||"on"==o[2].toLowerCase()||"yes"==o[2].toLowerCase()),e.params=t,e.jsObject=this,e.hasChanged||(e.checked=t.checked,e.innerHTML=t.checked?t.trueImage:t.falseImage),e.onclick=function(){this.checked=!this.checked,this.innerHTML=this.checked?t.trueImage:t.falseImage,this.hasChanged=!0,this.jsObject.AddEditableParameters(this)},this.options.editableFields.push(e)},k.prototype.ShowTextEditableField=function(a,e){var s=a.jsObject=this;a.className+=" stiEditableField stiEditableFieldSelected",a.params=e,"Google Chrome"!=this.getNavigatorName()&&(a.style.outline="1px solid gray"),a.onclick=function(){if(this.editMode)return;s.options.currentEditableTextArea&&s.options.currentEditableTextArea.onblur(),this.editMode=!0;var i=document.createElement("textarea"),e=(i.style.width=this.offsetWidth-5+"px",i.style.height=this.offsetHeight-5+"px",i.style.maxWidth=this.offsetWidth-5+"px",i.style.maxHeight=this.offsetHeight-5+"px",i.className=this.className.replace(" stiEditableField stiEditableFieldSelected","")+" stiEditableTextArea",i.style.border="0px",this),t=function(e){return e.firstChild&&e.firstChild.nodeName&&"div"==e.firstChild.nodeName.toLowerCase()};while(t(e))e=e.firstChild;i.value=e.innerHTML.replace(/\n/g,"").replace(/
/g,"\n"),this.appendChild(i),i.focus(),(s.options.currentEditableTextArea=i).onblur=function(){a.editMode&&(a.editMode=!1,e.innerHTML=this.value.replace(/\n/g,"
"),this&&this.parentNode&&this.parentNode.removeChild(this),s.options.currentEditableTextArea=null,s.AddEditableParameters(a,this.value))},i.getPrevTextField=function(e){if(0',n=''},k.prototype.FindPosX=function(e,t,o){var i=o?0:this.GetScrollXOffset(e,t);if(e.offsetParent)while(e.className!=t){if(i+=e.offsetLeft,!e.offsetParent)break;e=e.offsetParent}else e.x&&(i+=e.x);return i},k.prototype.FindPosY=function(e,t,o){var i=o?0:this.GetScrollYOffset(e,t);if(e.offsetParent)while(e.className!=t){if(i+=e.offsetTop,!e.offsetParent)break;e=e.offsetParent}else e.y&&(i+=e.y);return i},k.prototype.GetScrollXOffset=function(e,t){var o=0;if(e.parentElement)while(e.className!=t){if("scrollLeft"in e&&(o-=e.scrollLeft),!e.parentElement)break;e=e.parentElement}return o},k.prototype.GetScrollYOffset=function(e,t){var o=0;if(e.parentElement)while(e.className!=t){if("scrollTop"in e&&(o-=e.scrollTop),!e.parentElement)break;e=e.parentElement}return o},k.prototype.FindMousePosOnMainPanel=function(e){var t=this.FindPosX(this.controls.mainPanel,null,!1),o=this.FindPosY(this.controls.mainPanel,null,!1),i=0,a=0,a=null!=e.touches?(i=e.touches[0].pageX,e.touches[0].pageY):(i=e.clientX||e.x,e.clientY||e.y),s={};return s.xPixels=parseInt(i-t),s.yPixels=parseInt(a-o),s},k.prototype.checkTrExp=function(){var t=this;if(!t.options.cloudMode&&!t.options.serverMode&&!t.options.standaloneJsMode&&0==t.options.reportDesignerMode&&0==t.options.alternateValid){var o=new Date,e;try{t.options.jsMode&&void 0!==B?(e=B.StiVersion.created.innerDate)["getFullYear"]&&2017n&&(g=Math.max(g,l.offsetTop-n+l.offsetHeight))}var r,h=(new Date).getTime()+this.options.scrollDuration,d=this.FindPosY(p,this.options.appearance.scrollbarsMode?"stiJsViewerReportPanel":null,!0)-2*c.offsetHeight;this.ShowAnimationForScroll(this.controls.reportPanel,d,h,function(){var e=A.getPageFromAnchorElement(p),t=A.FindPosY(c,"stiJsViewerReportPanel",!0),o=e?A.FindPosY(e,"stiJsViewerReportPanel",!0):t,i=(A.removeBookmarksLabel(),document.createElement("div")),a=((A.controls.bookmarksLabel=i).className="stiJsViewerBookmarksLabel",20*(A.reportParams.zoom/100)),s=e?e.offsetWidth-a-6:c.offsetWidth,n=g-2,l=(i.style.width=s+"px",i.style.height=n+"px",e.margins?A.StrToInt(e.margins[3]):0),r=e.margins?A.StrToInt(e.margins[0]):0;i.style.marginLeft=a/2-l+"px",i.style.marginTop=t-o-r-A.reportParams.zoom/100-1+"px",e.insertBefore(i,e.childNodes[0])})}},k.prototype.isWholeWord=function(e,t){var o;return t=t.replace("\\","").trim(),new RegExp("\\b"+t+"\\b").test(e)},k.prototype.goToFindedElement=function(e){var t,o,i,a;e&&e.ownerElement&&(t=this.FindPosY(e.ownerElement,this.options.appearance.scrollbarsMode?"stiJsViewerReportPanel":null,!0)-e.ownerElement.offsetHeight-50,i=(new Date).getTime()+this.options.scrollDuration,(a=this).ShowAnimationForScroll(this.controls.reportPanel,t,i,function(){a.controls.reportPanel.onscroll()}))},k.prototype.hideFindLabels=function(){for(var e=0;eo.length-1&&("SinglePage"==this.reportParams.viewMode?(p=!0,A(t,function(e){null!=e.pageNumber&&r(e.pageNumber,t)})):a=0)):(s&&!e&&a--,a<0&&("SinglePage"==this.reportParams.viewMode?(p=!0,A(t,function(e){null!=e.pageNumber&&r(e.pageNumber,t)})):a=o.length-1)),!p&&a")).substr(e.indexOf("<"+t+">")+t.length+2)},k.prototype.DateToLocaleString=function(e,t){var o=e.toLocaleTimeString(),i=0<=o.toLowerCase().indexOf("am")||0<=o.toLowerCase().indexOf("pm"),a=i?"MM/dd/yyyy":"dd.MM.yyyy",s=e.getFullYear(),n=s.toString().substring(2),l=e.getMonth()+1,r=l<10?"0"+l:l,A=e.getDate(),p=A<10?"0"+A:A,a,c=(a=(a=(a=(a=(a=(a=a.replace(/yyyy/i,s)).replace(/yy/i,n)).replace(/MM/i,r)).replace(/M/i,l)).replace(/dd/i,p)).replace(/d/i,A),e.getHours()),g="";i&&(g=c<12?" AM":" PM",0==(c=12>16)+t,s=(255>8&255)+t),n=(255a.length){S(o+1,l);break}}else g[o]===a.charAt(i)&&i++,oIssuer: "+o.issuer+"
Valid from: "+o.from+" to "+o.to,null,o.thumbprint))}return e},k.prototype.GetImageResolutionModeItems=function(){var e=[];return e.push(this.Item("Auto",this.collections.loc["ImageResolutionModeAuto"],null,"Auto")),e.push(this.Item("Exactly",this.collections.loc["ImageResolutionModeExactly"],null,"Exactly")),e.push(this.Item("NoMoreThan",this.collections.loc["ImageResolutionModeNoMoreThan"],null,"NoMoreThan")),e},k.prototype.GetFontSizeItems=function(){for(var e=["5","6","7","8","9","10","11","12","14","16","18","20","22","24","26","28","36","48","72"],t=[],o=0;oa-i&&(this.style.top=a-i-this.innerContent.offsetHeight-10+"px"),n<0?this.style.left="10px":n+this.innerContent.offsetWidth>s-o&&(this.style.left=s-o-this.innerContent.offsetWidth-10+"px"),A=(new Date).getTime(),p.options.toolbar.menuAnimation&&(A+=p.options.menuAnimDuration),p.ShowAnimationVerticalMenu(this,0,A)):(this.onHide(),clearTimeout(this.innerContent.animationTimer),this.showTime=!1,this.showDate=!0,this.visible=!1,this.parentDateControl&&this.parentDateControl.setSelected&&this.parentDateControl.setSelected(!1),this.parentButton.setSelected(!1),this.style.display="none",this.action=null,p.options.currentDatePicker==this&&(p.options.currentDatePicker=null))},o},k.prototype.DatePickerDayButton=function(){var e=this.SmallButton(null,"0",null,null,null,"stiJsViewerDatePickerDayButton"),t=this.options.isTouchDevice?"25px":"23px";return e.style.width=t,e.style.height=t,e.caption.style.textAlign="center",e.innerTable.style.width="100%",e.caption.style.padding="0px",e.numberOfDay=1,e.action=function(){this.datePicker.key.setDate(parseInt(this.numberOfDay)),this.setSelected(!0),this.datePicker.applyValues(),this.datePicker.doubleDatePicker||this.datePicker.changeVisibleState(!1)},e.setSelected=function(e){e&&(this.datePicker.selectedButton&&this.datePicker.selectedButton.setSelected(!1),this.datePicker.selectedButton=this),this.isSelected=e,this.className=this.styleName+" "+this.styleName+(e?"Selected":this.isEnabled?this.isOver?"Over":"Default":"Disabled")},e},k.prototype.GetDayOfWeek=function(e,t){var o=new Date(e,t,1).getDay();return o=0==o?7:o},k.prototype.GetCountDaysOfMonth=function(e,t){var o,i=1==t?e%4!=0||e%100==0&&e%400!=0?28:29:[31,28,31,30,31,30,31,31,30,31,30,31][t];return i},k.prototype.GetMonthesForDatePickerItems=function(){for(var e=[],t=0;te&&o.innerContent.appendChild(a.innerContent)},o.onshow=function(){i.onshow(),a.onshow(),o.checkWidth()},o.onhide=function(){s.appendChild(a.innerContent)},o.setValuesToDatePickers=function(e,t){i.key=e,a.key=t,i.fill(),a.fill(),i.applyValues(!0),a.applyValues(!0),o.action()},o.action=function(){},o},k.prototype.GetValuesByDateRangeName=function(e){var a=new Date,s=this,n=function(e,t){e.setHours(0),e.setMinutes(0),e.setSeconds(0),t.setHours(23),t.setMinutes(59),t.setSeconds(59)},t=function(e){var t,o="Sunday"==("Auto"==s.options.appearance.datePickerFirstDayOfWeek?s.GetFirstDayOfWeek():s.options.appearance.datePickerFirstDayOfWeek)?a.getDay():a.getDay()-1,i=(o<0&&(o=6),[new Date(a.valueOf()-864e5*o)]);return i.push(new Date(i[0].valueOf()+6*864e5)),n(i[0],i[1]),i},o=[new Date,new Date];switch(e){case"CurrentMonth":o[0].setDate(1),o[1].setDate(s.GetCountDaysOfMonth(a.getFullYear(),a.getMonth()));break;case"CurrentQuarter":var i=3*parseInt(a.getMonth()/3);o[0]=new Date(a.getFullYear(),i,1),o[1]=new Date(a.getFullYear(),i+2,s.GetCountDaysOfMonth(a.getFullYear(),i+2));break;case"CurrentWeek":o=t(a);break;case"CurrentYear":o[0]=new Date(a.getFullYear(),0,1),o[1]=new Date(a.getFullYear(),11,31);break;case"NextMonth":var l=a.getMonth()+1,r=a.getFullYear();11o&&0o-a&&(this.style.top=Math.max(o-a-this.innerContent.offsetHeight,0)+"px"),l<0?this.style.left="10px":l+this.innerContent.offsetWidth>i-s&&(this.style.left=Math.max(i-s-this.innerContent.offsetWidth,0)+"px"),this.innerContent.style.top=("Down"==n?-this.innerContent.offsetHeight:this.innerContent.offsetHeight)+"px",p=(new Date).getTime(),g.options.toolbar.menuAnimation&&(p+=g.options.menuAnimDuration),g.ShowAnimationVerticalMenu(this,0,p)):(clearTimeout(this.innerContent.animationTimer),this.visible=!1,this.parentButton.dropDownList.setSelected(!1),this.parentButton.setSelected(!1),this.style.display="none",g.options.currentDropDownListMenu==this&&(g.options.currentDropDownListMenu=null))},e.onmousedown=function(){this.isTouchStartFlag||this.ontouchstart(!0)},e.ontouchstart=function(e){var t=this;this.isTouchStartFlag=!e,clearTimeout(this.isTouchStartTimer),(g.options.dropDownListMenuPressed=this).isTouchStartTimer=setTimeout(function(){t.isTouchStartFlag=!1},1e3)},e.action=function(e){this.changeVisibleState(!1),this.dropDownList.key=e.key,this.dropDownList.textBox.value=e.caption.innerHTML,this.dropDownList.image&&k.setImageSource(this.dropDownList.image,g.options,g.collections,e.imageName),this.dropDownList.action()},e.onshow=function(){if(null==this.dropDownList.key)return;for(var e in this.items){if(this.dropDownList.key==this.items[e].key)return void this.items[e].setSelected(!0);this.items[e]["setSelected"]&&this.items[e].setSelected(!1)}},this.options.isMobileDevice&&(e.ontouchmove=null,e.ontouchend=null),e},k.prototype.FontList=function(e,t){return this.DropDownList(e,t,null,this.GetFontNamesItems(),!0)},k.prototype.FormButton=function(e,t,o,i,a){var s=this.SmallButton(e,t||"",o,null,null,a||"stiJsViewerFormButton");return s.innerTable.style.width="100%",s.style.minWidth=(i||80)+"px",s.caption&&(s.caption.style.textAlign="center",s.caption.style.width="100%"),s},k.prototype.GroupPanel=function(e,t,o,i){var a=document.createElement("div"),s=(a.style.fontFamily=this.options.toolbar.fontFamily,a.style.color=this.options.toolbarFontColor,a.jsObject=this),n=(o&&(a.style.minWidth=o+"px"),a.style.overflow="hidden",a.isOpened=t,this.FormButton(null,e,t?"Arrows.BigArrowDown.png":"Arrows.BigArrowRight.png",null,"stiJsViewerSmallButtonWithBorder")),l=(n.imageCell.style.width="1px",n.style.borderBottomLeftRadius=t?"0":"",n.style.borderBottomRightRadius=t?"0":"",a.appendChild(n),n.caption&&(n.caption.style.textAlign="left",n.caption.style.padding="0 15px 0 5px"),a.container=document.createElement("div"));return i&&(l.style.padding=i),l.style.display=t?"":"none",l.className="stiJsViewerGroupPanelContainer",a.appendChild(l),a.changeOpeningState=function(e){a.isOpened=e,k.setImageSource(n.image,s.options,s.collections,e?"Arrows.BigArrowDown.png":"Arrows.BigArrowRight.png"),l.style.display=e?"":"none",n.style.borderBottomLeftRadius=a.isOpened?"0":"",n.style.borderBottomRightRadius=a.isOpened?"0":""},n.action=function(){a.isOpened=!a.isOpened,k.setImageSource(n.image,s.options,s.collections,a.isOpened?"Arrows.BigArrowDown.png":"Arrows.BigArrowRight.png"),a.style.height=(a.isOpened?n.offsetHeight:n.offsetHeight+l.offsetHeight)+"px",a.isOpened&&(l.style.display=""),n.style.borderBottomLeftRadius=a.isOpened?"0":"",n.style.borderBottomRightRadius=a.isOpened?"0":"",s.animate(a,{duration:150,animations:[{style:"height",start:a.isOpened?n.offsetHeight:n.offsetHeight+l.offsetHeight,end:a.isOpened?n.offsetHeight+l.offsetHeight:n.offsetHeight,postfix:"px",finish:function(){l.style.display=a.isOpened?"":"none",a.style.height=""}}]})},a},k.prototype.CreateHTMLTable=function(e,t){var o=document.createElement("table"),i=o.jsObject=this;return this.clearStyles(o),o.cellPadding=0,o.cellSpacing=0,o.tbody=document.createElement("tbody"),o.appendChild(o.tbody),o.tr=[],o.tr[0]=document.createElement("tr"),this.clearStyles(o.tr[0]),o.tbody.appendChild(o.tr[0]),o.addCell=function(e){var t=document.createElement("td");return i.clearStyles(t),this.tr[0].appendChild(t),e&&t.appendChild(e),t},o.insertCell=function(e,t){var o=this.tr[0].insertCell(e);return i.clearStyles(o),t&&o.appendChild(t),o},o.addCellInNextRow=function(e){var t=this.tr.length,o=(this.tr[t]=document.createElement("tr"),i.clearStyles(this.tr[t]),this.tbody.appendChild(this.tr[t]),document.createElement("td"));return i.clearStyles(o),this.tr[t].appendChild(o),e&&o.appendChild(e),o},o.addCellInLastRow=function(e){var t=this.tr.length,o=document.createElement("td");return i.clearStyles(o),this.tr[t-1].appendChild(o),e&&o.appendChild(e),o},o.addTextCellInLastRow=function(e){var t=this.tr.length,o=document.createElement("td");return i.clearStyles(o),this.tr[t-1].appendChild(o),o.innerText=e,o},o.addTextCellInNextRow=function(e){var t=this.tr.length,o=(this.tr[t]=document.createElement("tr"),i.clearStyles(this.tr[t]),this.appendChild(this.tr[t]),document.createElement("td"));return i.clearStyles(o),this.tr[t].appendChild(o),o.innerText=e,o},o.addCellInRow=function(e,t){var o=document.createElement("td");return i.clearStyles(o),this.tr[e].appendChild(o),t&&o.appendChild(t),o},o.addTextCell=function(e){var t=document.createElement("td");return i.clearStyles(t),this.tr[0].appendChild(t),t.innerText=e,t},o.addRow=function(){var e=this.tr.length;return this.tr[e]=document.createElement("tr"),i.clearStyles(this.tr[e]),this.tbody.appendChild(this.tr[e]),this.tr[e]},o.insertRow=function(e){var t=document.createElement("tr");return this.tr.splice(e,0,t),i.clearStyles(t),this.tbody.insertBefore(t,this.tbody.childNodes[e]),t},o.clearRow=function(e){void 0===e&&(e=0);while(this.tr[e].childNodes[0])this.tr[e].removeChild(this.tr[e].childNodes[0])},o.removeRow=function(e){this.tbody.removeChild(this.tbody.childNodes[e=void 0===e?0:e]),this.tr.splice(e,1)},o.rowsCount=function(){return this.tr.length},o.cellsCount=function(e){return this.tr[e=void 0===e?0:e].childNodes.length},o},k.prototype.TextBlock=function(e){var t=document.createElement("div");return t.style.fontFamily=this.options.toolbar.fontFamily,t.style.fontSize="12px",t.style.paddingTop="2px",t.innerText=e,t},k.prototype.ImageControl=function(e,t,o,i,a){var s=this,n=document.createElement("div"),l=(n.src=null,n.jsObject=this,n.isEnabled=!0,n.className="stiJsViewerSimpleContainerWithBorder",e&&(this.controls.imageControls||(this.controls.imageControls={}),this.controls.imageControls[e]=n),o=o||100,n.style.width=(t=t||250)+"px",n.style.height=o+"px",this.CreateHTMLTable()),r=(l.style.width="100%",n.appendChild(l),document.createElement("img")),A=(r.style.display="none",r.style.maxWidth=t+"px",r.style.maxHeight=o+"px",(n.imageContainer=r).onerror=function(){r.style.display="none"},r.isValidSrc=function(e){return e&&0!=e.indexOf("{")},l.addCell()),p=(A.style.width=t+"px",A.style.height=o+"px",A.style.textAlign="center",A.appendChild(r),".bmp,.gif,.jpeg,.jpg,.png,.tiff,.ico,.emf,.wmf,.svg"),c,g,h,d;return a?n.setImage=function(e){r.style.display=e?"":"none",e&&r.isValidSrc(e)?r.src=e:r.removeAttribute("src"),n.src=e}:((c=document.createElement("div")).className="stiJsViewerTextContainer stiJsViewerDragAndDropHintText",c.style.margin="0",c.innerHTML=this.collections.loc["TextDropImageHere"],n.hintText=c,A.appendChild(c),i||((g=this.SmallButton(null,null,"Open.png",this.collections.loc["Open"],null,"stiJsViewerFormButton")).style.position="absolute",g.style.right="4px",g.style.top="4px",n.openButton=g,(h=this.SmallButton(null,null,"Remove.png",this.collections.loc["ButtonRemove"],null,"stiJsViewerFormButton")).style.position="absolute",h.style.right="4px",h.style.top=this.options.isTouchDevice?"37px":"33px",(r.removeButton=n.removeButton=h).setEnabled(!1),(d=n.buttonsCell=l.addCell()).style.width="1px",d.style.position="relative",d.appendChild(g),d.appendChild(h),h.action=function(){n.setImage(null),n.action()},g.action=function(){var e;s.InitializeOpenDialog("imageControlImageDialog",function(e,t,o){n.setImage(o),n.action()},p).action()}),n.action=function(){},n.setImage=function(e,t){r.style.display=e?"":"none",c.style.display=e?"none":"",t&&(r.onload=function(){t()}),e&&r.isValidSrc(e)?r.src=e:r.removeAttribute("src"),n.src=e,r.removeButton&&h.setEnabled(e)},this.AddDragAndDropToContainer(A,function(e,t){if(!n.isEnabled)return;var o=e[0].name.toLowerCase(),i=o.substring(o.lastIndexOf("."));0<=p.indexOf(i)&&(n.setImage(t),n.action(e,t))})),n.resize=function(e,t){n.style.width=e+"px",n.style.height=t+"px",r.style.maxWidth=e+"px",r.style.maxHeight=t+"px",A.style.width=e+"px",A.style.height=t+"px"},n.setEnabled=function(e){this.isEnabled=e,n.openButton&&n.openButton.setEnabled(e),n.removeButton&&n.removeButton.setEnabled(e&&n.src),r.style.opacity=e?"1":"0.4"},n},k.prototype.AddDragAndDropToContainer=function(e,i){var t=this,o=(e.draggable=!0,function(e){e.stopPropagation(),e.preventDefault()}),a=function(o){var e=new FileReader;e.onload=function(e){try{i(o,e.target.result)}catch(e){var t;(this.controls.forms.errorMessageForm||this.InitializeErrorMessageForm()).show(e.message)}},e.onerror=function(e){var t;(this.controls.forms.errorMessageForm||this.InitializeErrorMessageForm()).show(e.target.error.code)},o&&0",s="",n=(i.innerHTML="asc"==t?s:a,16*o),l=16*o,r=(i.style.position="absolute",i.style.width=n+"px",i.style.height=l+"px",i.style.left="0",e.appendChild(i),e.arrowImg=i,e.style.position),A=e.className,p=h.options.displayModeFromReport||h.options.appearance.reportDisplayMode,c=("Table"==p&&(e.style.position="relative"),A||(e.className="stiSortingParentElement"),h.FindPosX(i,e.className)),g=h.FindPosY(i,e.className);i.style.marginLeft=e.offsetWidth-c-n-3*o+"px",i.style.marginTop=e.offsetHeight/2-l/2-g+"px","Mozilla"!=h.getNavigatorName()&&!r||"Table"!=p||(e.style.position=r),e.className=A},l.paintCollapsingIcon=function(e,t){if(e.collapsImg)return;var o=document.createElement("img"),i=(k.setImageSource(o,h.options,h.collections,t?"CollapsingPlus.png":"CollapsingMinus.png"),o.style.position="absolute",h.reportParams.zoom/100*10),a=h.reportParams.zoom/100*10,s=(o.style.width=i+"px",o.style.height=a+"px",e.appendChild(o),e.collapsImg=o,l.getComponentOffset(e)),n=l.getComponentOffset(o);o.style.marginLeft=s.left-n.left+i/3+"px",o.style.marginTop=s.top-n.top+i/3+"px"},l.postInteractionSorting=function(e,t){var o={action:"Sorting",sortingParameters:{ComponentName:e.getAttribute("interaction")+";"+t.toString(),DataBand:e.getAttribute("databandsort")}};h.controls.parametersPanel&&(o.variables=h.controls.parametersPanel.getParametersValues()),h.reportParams.collapsingStates&&(o.collapsingParameters={ComponentName:h.reportParams.collapsingComponentName,CollapsingStates:h.reportParams.collapsingStates}),h.postInteraction(o)},l.postInteractionDrillDown=function(e){var t={action:"DrillDown",drillDownParameters:{ComponentIndex:e.getAttribute("compindex"),ElementIndex:e.getAttribute("elementindex"),PageIndex:e.getAttribute("pageindex"),PageGuid:e.getAttribute("pageguid"),DrillDownMode:e.getAttribute("drilldownmode"),ReportFile:e.getAttribute("reportfile")}};h.postInteraction(t)},l.postInteractionCollapsing=function(e){var t=e.getAttribute("interaction"),o=e.getAttribute("compindex"),i="true"!=e.getAttribute("collapsed"),a=(h.reportParams.collapsingStates||(h.reportParams.collapsingStates={}),h.reportParams.collapsingStates[t]||(h.reportParams.collapsingStates[t]={}),h.reportParams.collapsingStates[t][o]=i,{action:"Collapsing",collapsingParameters:{ComponentName:h.reportParams.collapsingComponentName=t,CollapsingStates:h.reportParams.collapsingStates}});h.controls.parametersPanel&&(a.variables=h.controls.parametersPanel.getParametersValues()),h.postInteraction(a)},l.postInteractionEvent=function(i){for(var e=i.getAttribute("interactionevents").split(", "),t=0;te||Math.abs(t[1]-o[1])>e)&&(n.options.fingerIsMoved=!0)},this.addEvent(window,"keypress",function(e){e&&n.options.currentMenu&&null!=n.options.currentMenu.currentFindedIndex&&13==e.keyCode&&null!=n.options.currentMenu.findedItems[n.options.currentMenu.currentFindedIndex].action&&(n.options.currentMenu.findedItems[n.options.currentMenu.currentFindedIndex].action(),e.stopPropagation(),e.cancelBubble=!0)}),this.addEvent(window,"keyup",function(e){var t,o;e&&(n.options.currentMenu&&null!=n.options.currentMenu.currentFindedIndex&&(t=n.options.currentMenu,40!=e.keyCode&&38!=e.keyCode||(o=0==t.currentFindedIndex&&0l.offsetWidth},l.getMinWidth=function(){var e=s.offsetWidth,t=A.offsetWidth,o;return i.offsetWidth-(e-t)+50},l.minWidth=l.getMinWidth(),l.changeToolBarState=function(){var e=r.reportParams,t=l.controls,o=r.collections,i="MultiplePages"==e.viewMode||"WholeReport"==e.viewMode||"Continuous"==e.viewMode&&!r.options.appearance.scrollbarsMode&&!r.options.appearance.fullScreenMode,a;if("Report"==e.type&&0e.pagesCount-1&&(e.pageNumber=e.pagesCount-1),t["FirstPage"]&&t["FirstPage"].setEnabled(0o.jsObject.reportParams.pagesCount?o.jsObject.reportParams.pagesCount:e},e.addCell()),a=(i.style.padding="0 2px 0 2px",i.innerHTML=this.collections.loc["PageOf"],e.addCell());return(e.countLabel=a).style.padding="0 2px 0 0",a.innerHTML="?",e},k.prototype.InitializeToolTip=function(){var e=document.createElement("div"),h=(e.id=this.controls.viewer.id+"ToolTip",e.jsObject=this);this.controls.toolTip=e,this.controls.mainPanel.appendChild(e),e.className="stiJsViewerToolTip",e.style.display="none",e.showTimer=null,e.hideTimer=null,e.visible=!1,e.innerTable=this.CreateHTMLTable(),e.appendChild(e.innerTable),e.textCell=e.innerTable.addCell(),e.textCell.className="stiJsViewerToolTipTextCell",this.options.appearance.showTooltipsHelp?(e.helpButton=this.SmallButton(null,this.collections.loc["TellMeMore"],"HelpIcon.png",null,null,"stiJsViewerHyperlinkButton"),e.innerTable.addCellInNextRow(e.helpButton),e.helpButton.style.margin="4px 8px 4px 8px"):e.textCell.style.border=0,e.show=function(e,t,o,i,a){if(this.visible&&e==this.textCell.innerHTML||h.options.isTouchDevice)return;this.hide(),h.options.appearance.showTooltipsHelp&&(this.helpButton.helpUrl=t,this.helpButton.action=function(){h.showHelpWindow(this.helpUrl)}),this.ownerButton&&this.ownerButton.styleColors&&(this.style.background=this.ownerButton.styleColors.backColor,this.style.color=this.textCell.style.color=this.ownerButton.styleColors.isDarkStyle?"#ffffff":"#444444",this.helpButton)&&(this.helpButton.style.color=this.style.color),this.textCell.innerHTML=e;var s,n=(new Date).getTime()+300,l=(this.style.opacity=1/100,this.style.display="",h.FindPosX(h.controls.mainPanel)),r=h.FindPosY(h.controls.mainPanel),A=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,p=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=null!=a?o-this.offsetWidth+a:o,g=((c=c+this.offsetWidth>A-l?A-l-this.offsetWidth-15:c)<0&&(c=5),"isNavigatePanelTooltip"==i?h.FindPosY(h.controls.navigatePanel,"stiJsViewerMainPanel")-this.offsetHeight-2:i);(g=g<0?5:g)+this.offsetHeight>p-r&&(g=p-r-this.offsetHeight-15),this.style.left=c+"px",this.style.top=g+"px",this.visible=!0,h.ShowAnimationForm(this,n)},e.showWithDelay=function(e,t,o,i,a){clearTimeout(this.showTimer),clearTimeout(this.hideTimer);var s=this;this.showTimer=setTimeout(function(){s.show(e,t,o,i,a)},800)},e.hide=function(){this.visible=!1,clearTimeout(this.showTimer),this.style.display="none",this.style.background=this.style.color=this.textCell.style.color="",this.helpButton&&(this.helpButton.style.color="")},e.hideWithDelay=function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer);var e=this;this.hideTimer=setTimeout(function(){e.hide()},500)},e.onmouseover=function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer)},e.onmouseout=function(){this.hideWithDelay()}},k.prototype.BaseForm=function(e,t,o,i){var a=document.createElement("div"),p=(a.name=e,a.id=this.generateKey(),a.className="stiJsViewerForm",a.jsObject=this),s=(a.level=o,a.caption=null,a.visible=!1,a.style.display="none",a.helpUrl=i,a.style.zIndex=10*(o=null==o?1:o)+1,e&&(this.controls.forms||(this.controls.forms={}),null!=this.controls.forms[e]&&(this.controls.forms[e].changeVisibleState(!1),this.controls.mainPanel.removeChild(this.controls.forms[e])),this.controls.forms[e]=a),this.controls.mainPanel.appendChild(a),a.header=document.createElement("div"),(a.header.thisForm=a).appendChild(a.header),a.header.className="stiJsViewerFormHeader",this.CreateHTMLTable()),n,l=(s.style.width="100%",a.header.appendChild(s),a.caption=s.addCell(),null!=t&&(t&&(a.caption.innerHTML=t),a.caption.style.textAlign="left",a.caption.style.padding="5px 10px 8px 15px"),i&&this.options.appearance.showDialogsHelp&&((n=this.SmallButton(null,null,"Help.png")).image.style.margin="0 2px 0 2px",n.style.display="inline-block",n.action=function(){p.showHelpWindow(a.helpUrl)},s.addCell(n).setAttribute("style","width: 20px; text-align: right; padding: 2px 0px 1px 0px; vertical-align: top;")),a.buttonClose=this.SmallButton(null,null,"CloseForm.png"),a.buttonClose.image.style.margin="0 2px 0 2px",a.buttonClose.style.display="inline-block",a.buttonClose.action=function(){a["cancelAction"]&&a.cancelAction(),a.changeVisibleState(!1)},s.addCell(a.buttonClose)),r=(l.style.verticalAlign="top",l.style.width="30px",l.style.textAlign="right",l.style.padding="2px 2px 1px 1px",a.container=document.createElement("div"),a.appendChild(a.container),a.container.className="stiJsViewerFormContainer",a.buttonsPanel=document.createElement("div"),a.appendChild(a.buttonsPanel),a.buttonsPanel.className="stiJsViewerFormButtonsPanel",this.CreateHTMLTable());return a.buttonsPanel.appendChild(r),a.buttonOk=this.FormButton(null,this.collections.loc["ButtonOk"],null,null,"stiJsViewerFormButtonTheme"),a.buttonOk.action=function(){a.action()},r.addCell(a.buttonOk).style.padding="12px",a.buttonCancel=this.FormButton(null,this.collections.loc["ButtonCancel"]),a.buttonCancel.action=function(){a["cancelAction"]&&a.cancelAction(),a.changeVisibleState(!1)},r.addCell(a.buttonCancel).style.padding="12px 12px 12px 0",p.options.osWin11&&p.options.standaloneJsMode&&(a.style.borderRadius="10px",a.header.style.borderRadius="10px 10px 0 0",a.buttonsPanel.style.borderRadius="0 0 10px 10px",a.buttonClose.style.marginRight="5px"),a.changeVisibleState=function(e){var t,o;e?(this.style.display="",this.onshow(),p.setObjectToCenter(this,150),p.controls.disabledPanels[this.level].changeVisibleState(!0),(p.options.currentForm=this).visible=!0,o=(new Date).getTime()+p.options.formAnimDuration,this.flag=!1,p.ShowAnimationForm(this,o)):(clearTimeout(this.animationTimer),this.visible=!1,this.style.display="none",this.onhide(),p.controls.disabledPanels[this.level].changeVisibleState(!1),p.options.currentForm=null)},a.action=function(){},a.onshow=function(){},a.onhide=function(){},a.onmousedown=function(){if(this.isTouchStartFlag)return;this.ontouchstart(!0)},a.ontouchstart=function(e){var t=this;this.isTouchStartFlag=!e,clearTimeout(this.isTouchStartTimer),(p.options.formPressed=this).isTouchStartTimer=setTimeout(function(){t.isTouchStartFlag=!1},1e3)},a.header.onmousedown=function(e){if(!e||this.isTouchStartFlag)return;var t=e.clientX,o=e.clientY,i=p.FindPosX(this.thisForm,"stiJsViewerMainPanel"),a=p.FindPosY(this.thisForm,"stiJsViewerMainPanel");p.options.formInDrag=[t,o,i,a,this.thisForm]},a.header.ontouchstart=function(e){var t=this,o=(this.isTouchStartFlag=!0,clearTimeout(this.isTouchStartTimer),e.touches[0].pageX),i=e.touches[0].pageY,a=p.FindPosX(this.thisForm,"stiJsViewerMainPanel"),s=p.FindPosY(this.thisForm,"stiJsViewerMainPanel");p.options.formInDrag=[o,i,a,s,this.thisForm],this.isTouchStartTimer=setTimeout(function(){t.isTouchStartFlag=!1},1e3)},a.header.ontouchmove=function(e){var t,o,i,a,s,n,l,r,A;e.preventDefault(),p.options.formInDrag&&(o=(t=p.options.formInDrag)[2],i=t[3],a=e.touches[0].pageX,s=e.touches[0].pageY,n=t[0]-a,A=i-(t[1]-s),t[4].style.left=o-n+"px",t[4].style.top=A+"px")},a.header.ontouchend=function(){event.preventDefault(),p.options.formInDrag=!1},a.move=function(e){var t=p.options.formInDrag[2]+(e.clientX-p.options.formInDrag[0]),o=p.options.formInDrag[3]+(e.clientY-p.options.formInDrag[1]);this.style.left=0=this.signatures.length&&(n.controls.buttons.Signature.style.display="none"),n.postInteraction({action:"Signatures",signatures:this.signatures}),this.changeVisibleState(!1)},l},k.prototype.SignatureFormTypePanel=function(s){var n=this,e=this.CreateHTMLTable(),t=(e.style.width="100%",this.TextBox(null,220)),o=(s.addControlRow(e,this.collections.loc["FullName"],"fullName",t,"12px 12px 6px 12px",30).style.textAlign="right",this.TextBox(null,220)),l=(s.addControlRow(e,this.collections.loc["Initials"],"initials",o,"6px 12px 6px 12px",30).style.textAlign="right",this.SmallButton(null,this.collections.loc["Style"],null,null,"Down","stiJsViewerFormButton")),i=(l.style.display="inline-block",s.addControlRow(e," ","changeStyle",l,"24px 12px 3px 12px",50).style.textAlign="right",l.setTypeStyle=function(e){this.typeStyle=e},this.VerticalMenu("editSignatureChangeStyle",l,"Down",[])),r=(l.action=function(){i.changeVisibleState(!i.visible)},function(){return t.value||o.value?t.value+" "+o.value:"FullName FN"}),a=(i.onshow=function(){this.clear();var e=[],t=s.signatureStyles,o;if(t)for(var i=0;ic.offsetWidth?a:"auto",c.style.width=0c.offsetWidth?"auto":s),g.style.textAlign=i.imageProps.horAlignment.toLowerCase(),g.style.verticalAlign="Top"==i.imageProps.vertAlignment?"top":"Bottom"==i.imageProps.vertAlignment?"bottom":"middle"}},i},k.prototype.InitializeExportForm=function(){for(var p=this,c=this.BaseForm("exportForm",this.collections.loc["ExportFormTitle"],1),e=(c.style.fontFamily=this.options.toolbar.fontFamily,""!=this.options.toolbar.fontColor&&(c.style.color=this.options.toolbar.fontColor),c.style.fontSize="12px",c.controls={},c.labels={},c.container.style.padding="12px 0 0 0",c.addControlToParentControl=function(e,t,o,i){null==o.innerTable&&(o.innerTable=p.CreateHTMLTable(),o.innerTable.style.width="100%",o.appendChild(o.innerTable)),t.parentRow=o.innerTable.addRow();var a=o.innerTable.addCellInLastRow(),s=null!=e?o.innerTable.addCellInLastRow():a,n;null!=e?(a.style.padding="0 8px 0 8px",p.options.isMobileDevice||(a.style.minWidth="150px"),e&&(a.innerHTML=e),c.labels[i]=a,null!=(n=t.getAttribute("title"))&&a.setAttribute("title",n)):s.setAttribute("colspan","2"),s.appendChild(t)},"8px"),t=160,o=390,i=(this.options.isMobileDevice&&(t=140,o=200,c.style.border="0px",c.style.borderRadius="0px",c.style.boxShadow="none",c.style.inset="0px",c.style.overflow="auto",c.header.ontouchstart=null,c.header.ontouchmove=null,c.header.onmousedown=null,c.buttonOk.caption.innerText=this.collections.loc.Save),[["SavingReportGroup",null,this.GroupPanel(this.collections.loc["SavingReport"],!0,o,"6px 0 6px 0"),null,"0 12px 12px 12px"],["SaveReportMdc",null,this.RadioButton(c.name+"SaveReportMdc",c.name+"SavingReportGroup",this.collections.loc["SaveReportMdc"],null),"SavingReportGroup.container","6px "+e+" 6px "+e],["SaveReportMdz",null,this.RadioButton(c.name+"SaveReportMdz",c.name+"SavingReportGroup",this.collections.loc["SaveReportMdz"],null),"SavingReportGroup.container","6px "+e+" 6px "+e],["SaveReportMdx",null,this.RadioButton(c.name+"SaveReportMdx",c.name+"SavingReportGroup",this.collections.loc["SaveReportMdx"],null),"SavingReportGroup.container","6px "+e+" 6px "+e],["SaveReportPassword",this.collections.loc["PasswordSaveReport"],this.TextBox(null,140,this.collections.loc["PasswordSaveReportTooltip"]),"SavingReportGroup.container","4px "+e+" 0px "+e],["PageRangeGroup",null,this.GroupPanel(this.collections.loc["PagesRange"],!0,o,"6px 0 6px 0"),null,"0 12px 12px 12px"],["PageRangeAll",null,this.RadioButton(c.name+"PagesRangeAll",c.name+"PageRangeGroup",this.collections.loc["PagesRangeAll"],this.collections.loc["PagesRangeAllTooltip"]),"PageRangeGroup.container","6px "+e+" 6px "+e],["PageRangeCurrentPage",null,this.RadioButton(c.name+"PagesRangeCurrentPage",c.name+"PageRangeGroup",this.collections.loc["PagesRangeCurrentPage"],this.collections.loc["PagesRangeCurrentPageTooltip"]),"PageRangeGroup.container","6px "+e+" 6px "+e],["PageRangePages",null,this.RadioButton(c.name+"PagesRangePages", c.name+"PageRangeGroup",this.collections.loc["PagesRangePages"],this.collections.loc["PagesRangePagesTooltip"]),"PageRangeGroup.container","6px "+e+" 6px "+e],["PageRangePagesText",null,this.TextBox(null,130,this.collections.loc["PagesRangePagesTooltip"]),"PageRangePages.lastCell","0 0 0 30px"],["SettingsGroup",null,this.GroupPanel(this.collections.loc["SettingsGroup"],!0,o,"6px 0 6px 0"),null,"0 12px 12px 12px"],["ImageType",this.collections.loc["Type"],this.DropDownListForExportForm(null,t,this.collections.loc["TypeTooltip"],this.GetImageTypesItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["DataType",this.collections.loc["Type"],this.DropDownListForExportForm(null,t,this.collections.loc["TypeTooltip"],this.GetDataTypesItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ExcelType",this.collections.loc["Type"],this.DropDownListForExportForm(null,t,this.collections.loc["TypeTooltip"],this.GetExcelTypesItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["HtmlType",this.collections.loc["Type"],this.DropDownListForExportForm(null,t,this.collections.loc["TypeTooltip"],this.GetHtmlTypesItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["Zoom",this.collections.loc["ZoomHtml"],this.DropDownListForExportForm(null,t,this.collections.loc["ZoomHtmlTooltip"],this.GetZoomItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageFormatForHtml",this.collections.loc["ImageFormatForHtml"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageFormatForHtmlTooltip"],this.GetImageFormatForHtmlItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ExportMode",this.collections.loc["ExportMode"],this.DropDownListForExportForm(null,t,this.collections.loc["ExportModeTooltip"],this.GetExportModeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["EncodingDifFile",this.collections.loc["EncodingDifFile"],this.DropDownListForExportForm(null,t,this.collections.loc["EncodingDifFileTooltip"],this.GetEncodingDifFileItems(),!0),"SettingsGroup.container","6px "+e+" 6px "+e],["UseEmbeddedImages",null,this.CheckBox(null,this.collections.loc["EmbeddedImageData"],this.collections.loc["EmbeddedImageDataTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["AddPageBreaks",null,this.CheckBox(null,this.collections.loc["AddPageBreaks"],this.collections.loc["AddPageBreaksTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ImageResolutionMode",this.collections.loc["ImageResolutionMode"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageResolutionModeTooltip"],this.GetImageResolutionModeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageResolution",this.collections.loc["ImageResolution"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageResolutionTooltip"],this.GetImageResolutionItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageFormatForMSOffice",this.collections.loc["ImageFormatForMSOffice"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageFormatForMSOfficeTooltip"],this.GetImageFormatForMSOfficeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageCompressionMethod",this.collections.loc["ImageCompressionMethod"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageCompressionMethodTooltip"],this.GetImageCompressionMethodItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["AllowEditable",this.collections.loc["AllowEditable"],this.DropDownListForExportForm(null,t,this.collections.loc["AllowEditableTooltip"],this.GetAllowEditableItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageQuality",this.collections.loc["ImageQuality"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageQualityTooltip"],this.GetImageQualityItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["DataExportMode",this.collections.loc["BandsFilter"],this.DropDownListForExportForm(null,t,this.collections.loc["BandsFilterTooltip"],this.GetDataExportModeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["DocumentSecurityMSOfficeButton"," ",this.SmallButton(null,this.collections.loc["DocumentSecurityButton"],null,null,"Down","stiJsViewerFormButton"),"SettingsGroup.container","4px "+e+" 4px "+e],["DocumentSecurityMSOfficeMenu",null,this.BaseMenu(c.name+"DocumentSecurityMSOfficeMenu",null,"Down","stiJsViewerDropdownPanel"),null,null],["EncryptionPassword",this.collections.loc["EncryptWithPassword"],this.TextBox(null,t,this.collections.loc["UserPasswordTooltip"]),"DocumentSecurityMSOfficeMenu.innerContent","4px "+e+" 4px "+e],["RestrictEditing",this.collections.loc["RestrictEditing"],this.DropDownListForExportForm(null,t,this.collections.loc["RestrictEditingTooltip"],this.GetRestrictEditingItems(),!0),"DocumentSecurityMSOfficeMenu.innerContent","4px "+e+" 4px "+e],["ProtectionPassword",this.collections.loc["PasswordSaveReport"],this.TextBox(null,t,this.collections.loc["RestrictEditingTooltip"]),"DocumentSecurityMSOfficeMenu.innerContent","4px "+e+" 4px "+e],["ContinuousPages",null,this.CheckBox(null,this.collections.loc["ContinuousPages"],this.collections.loc["ContinuousPagesTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["StandardPdfFonts",null,this.CheckBox(null,this.collections.loc["StandardPDFFonts"],this.collections.loc["StandardPDFFontsTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["EmbeddedFonts",null,this.CheckBox(null,this.collections.loc["EmbeddedFonts"],this.collections.loc["EmbeddedFontsTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["UseUnicode",null,this.CheckBox(null,this.collections.loc["UseUnicode"],this.collections.loc["UseUnicodeTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["Compressed",null,this.CheckBox(null,this.collections.loc["Compressed"],this.collections.loc["CompressedTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportRtfTextAsImage",null,this.CheckBox(null,this.collections.loc["ExportRtfTextAsImage"],this.collections.loc["ExportRtfTextAsImageTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["PdfACompliance"," ",this.CheckBox(null,this.collections.loc["PdfACompliance"],this.collections.loc["PdfAComplianceTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["PdfComplianceMode",null,this.DropDownListForExportForm(null,t,null,this.GetPdfComplianceModeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["KillSpaceLines",null,this.CheckBox(null,this.collections.loc["KillSpaceLines"],this.collections.loc["KillSpaceLinesTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["PutFeedPageCode",null,this.CheckBox(null,this.collections.loc["PutFeedPageCode"],this.collections.loc["PutFeedPageCodeTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["DrawBorder",null,this.CheckBox(null,this.collections.loc["DrawBorder"],this.collections.loc["DrawBorderTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["CutLongLines",null,this.CheckBox(null,this.collections.loc["CutLongLines"],this.collections.loc["CutLongLinesTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["BorderType",this.collections.loc["BorderType"],this.DropDownListForExportForm(null,t,this.collections.loc["BorderTypeTooltip"],this.GetBorderTypeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ZoomX",this.collections.loc["ZoomXY"]?this.collections.loc["ZoomXY"].replace(":","")+" X ":"",this.DropDownListForExportForm(null,t,this.collections.loc["ZoomXYTooltip"],this.GetZoomItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ZoomY",this.collections.loc["ZoomXY"]?this.collections.loc["ZoomXY"].replace(":","")+" Y ":"",this.DropDownListForExportForm(null,t,this.collections.loc["ZoomXYTooltip"],this.GetZoomItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["EncodingTextOrCsvFile",this.collections.loc["EncodingData"],this.DropDownListForExportForm(null,t,this.collections.loc["EncodingDataTooltip"],this.GetEncodingDataItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["ImageFormat",this.collections.loc["ImageFormat"],this.DropDownListForExportForm(null,t,this.collections.loc["ImageFormatTooltip"],this.GetImageFormatItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["DitheringType",this.collections.loc["MonochromeDitheringType"],this.DropDownListForExportForm(null,t,this.collections.loc["MonochromeDitheringTypeTooltip"],this.GetMonochromeDitheringTypeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["TiffCompressionScheme",this.collections.loc["TiffCompressionScheme"],this.DropDownListForExportForm(null,t,this.collections.loc["TiffCompressionSchemeTooltip"],this.GetTiffCompressionSchemeItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["CompressToArchive",null,this.CheckBox(null,this.collections.loc["CompressToArchive"],this.collections.loc["CompressToArchiveTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["CutEdges",null,this.CheckBox(null,this.collections.loc["CutEdges"],this.collections.loc["CutEdgesTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["MultipleFiles",null,this.CheckBox(null,this.collections.loc["MultipleFiles"],this.collections.loc["MultipleFilesTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportDataOnly",null,this.CheckBox(null,this.collections.loc["ExportDataOnly"],this.collections.loc["ExportDataOnlyTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["UseDefaultSystemEncoding",null,this.CheckBox(null,this.collections.loc["UseDefaultSystemEncoding"],this.collections.loc["UseDefaultSystemEncodingTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportModeRtf",this.collections.loc["ExportModeRtf"],this.DropDownListForExportForm(null,t,this.collections.loc["ExportModeRtfTooltip"],this.GetExportModeRtfItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["UsePageHeadersAndFooters",null,this.CheckBox(null,this.collections.loc["UsePageHeadersFooters"],this.collections.loc["UsePageHeadersFootersTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["RemoveEmptySpaceAtBottom",null,this.CheckBox(null,this.collections.loc["RemoveEmptySpace"],this.collections.loc["RemoveEmptySpaceTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["Separator",this.collections.loc["Separator"],this.TextBox(null,t,this.collections.loc["SeparatorTooltip"]),"SettingsGroup.container","4px "+e+" 4px "+e],["SkipColumnHeaders",null,this.CheckBox(null,this.collections.loc["SkipColumnHeaders"],this.collections.loc["SkipColumnHeadersTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportObjectFormatting",null,this.CheckBox(null,this.collections.loc["ExportObjectFormatting"],this.collections.loc["ExportObjectFormattingTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["UseOnePageHeaderAndFooter",null,this.CheckBox(null,this.collections.loc["UseOnePageHeaderFooter"],this.collections.loc["UseOnePageHeaderFooterTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportEachPageToSheet",null,this.CheckBox(null,this.collections.loc["ExportEachPageToSheet"],this.collections.loc["ExportEachPageToSheetTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["ExportPageBreaks",null,this.CheckBox(null,this.collections.loc["ExportPageBreaks"],this.collections.loc["ExportPageBreaksTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["EncodingDbfFile",this.collections.loc["EncodingDbfFile"],this.DropDownListForExportForm(null,t,this.collections.loc["EncodingDbfFileTooltip"],this.GetEncodingDbfFileItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["UseDigitalSignature"," ",this.CheckBox(null,this.collections.loc["DigitalSignatureButton"],this.collections.loc["UseDigitalSignatureTooltip"]),"SettingsGroup.container","6px "+e+" 6px "+e],["CertificateThumbprint",null,this.DropDownListForExportForm(null,t,null,this.GetPdfSecurityCertificatesItems(),!0),"SettingsGroup.container","4px "+e+" 4px "+e],["DocumentSecurityButton"," ",this.SmallButton(null,this.collections.loc["DocumentSecurityButton"],null,null,"Down","stiJsViewerFormButton"),"SettingsGroup.container","4px "+e+" 4px "+e],["OpenAfterExport",null,this.CheckBox(null,this.collections.loc["OpenAfterExport"],this.collections.loc["OpenAfterExportTooltip"]),null,"6px 0 6px 12px"],["DocumentSecurityMenu",null,this.BaseMenu(c.name+"DocumentSecurityMenu",null,"Down","stiJsViewerDropdownPanel"),null,null],["PasswordInputUser",this.collections.loc["UserPassword"],this.TextBox(null,t,this.collections.loc["UserPasswordTooltip"]),"DocumentSecurityMenu.innerContent","8px "+e+" 4px "+e],["PasswordInputOwner",this.collections.loc["OwnerPassword"],this.TextBox(null,t,this.collections.loc["OwnerPasswordTooltip"]),"DocumentSecurityMenu.innerContent","4px "+e+" 4px "+e],["PrintDocument",null,this.CheckBox(null,this.collections.loc["AllowPrintDocument"],this.collections.loc["AllowPrintDocumentTooltip"]),"DocumentSecurityMenu.innerContent","6px "+e+" 6px "+e],["ModifyContents",null,this.CheckBox(null,this.collections.loc["AllowModifyContents"],this.collections.loc["AllowModifyContentsTooltip"]),"DocumentSecurityMenu.innerContent","6px "+e+" 6px "+e],["CopyTextAndGraphics",null,this.CheckBox(null,this.collections.loc["AllowCopyTextAndGraphics"],this.collections.loc["AllowCopyTextAndGraphicsTooltip"]),"DocumentSecurityMenu.innerContent","6px "+e+" 6px "+e],["AddOrModifyTextAnnotations",null,this.CheckBox(null,this.collections.loc["AllowAddOrModifyTextAnnotations"],this.collections.loc["AllowAddOrModifyTextAnnotationsTooltip"]),"DocumentSecurityMenu.innerContent","6px "+e+" 6px "+e],["KeyLength",this.collections.loc["EncryptionKeyLength"],this.DropDownListForExportForm(null,t,this.collections.loc["EncryptionKeyLengthTooltip"],this.GetEncryptionKeyLengthItems(),!0),"DocumentSecurityMenu.innerContent","4px "+e+" 8px "+e]]),a=0;a
"+this.collections.loc.CompilationAccess2,e.description.style.maxWidth="450px";while(e.buttonsPanel.childNodes[0])e.buttonsPanel.removeChild(e.buttonsPanel.childNodes[0]);var o=this.CreateHTMLTable(),i=(o.style.width="100%",e.buttonsPanel.appendChild(o),e.doNotAskMe=this.CheckBox(null,this.collections.loc.DoNotAskMe)),a=(i.style.margin="12px",o.addCell(i).style.width="1px",o.addCell(),this.FormButton(null,this.collections.loc.OpenInSafeMode)),s=(a.style.margin="12px 12px 12px 0px",o.addCell(a).style.width="1px",a.action=function(){e.changeVisibleState(!1),e.action(!0)},this.FormButton(null,this.collections.loc.Open)),n=(s.style.margin="12px 12px 12px 0px",o.addCell(s).style.width="1px",s.action=function(){e.changeVisibleState(!1),e.action(!1)},this.FormButton(null,this.collections.loc.ButtonCancel,null,null,"stiJsViewerFormButtonTheme"));return n.style.margin="12px 12px 12px 0px",o.addCell(n).style.width="1px",e.buttonCancel.action=function(){e.changeVisibleState(!1)},e.action=function(e){},e},k.prototype.InitializeMoreColorsForm=function(){var i=this,a=this.BaseForm("moreColors",this.collections.loc["ColorsCategory"],4),e=(a.container.style.paddingTop="6px",a.controls={},320),t=180,o=(a.onmousedown=function(){if(i.options.isTouchDevice)return;this.ontouchstart()},a.ontouchstart=function(){i.options.colorDialogPressed=this},[]),s=(o.push({name:"custom",caption:this.collections.loc["Custom"]}),o.push({name:"webColors",caption:this.collections.loc["Web"]}),this.TabbedPane("moreColorsTabbedPane",o)),n=(a.container.appendChild(s),s.tabsPanels.custom.appendChild(this.ColorFormCustomTable(a)),s.tabsPanels.custom.style.width=e+"px",s.tabsPanels.custom.style.height=t+"px",this.ColorFormWebColorPanel(a));return n.style.height=t+10+"px",s.tabsPanels.webColors.appendChild(n),s.tabsPanels.webColors.style.width=e+"px",s.tabsPanels.webColors.style.height=t+"px",a.onshow=function(){s.showTabPanel("custom"),this.webColorsButtons[0].action();var e,t=(i.controls.menus.colorDialog||i.InitializeColorDialog()).parentButton.colorControl.key,o=(t="transparent"==(t=null==t?"255,255,255,255":t)?"0,255,255,255":t).split(",");4==o.length?(a.controls.alfaCanal.value=o[0],o.splice(0,1)):a.controls.alfaCanal.value="255",a.controls.colorFormRedColor.value=o[0],a.controls.colorFormGreenColor.value=o[1],a.controls.colorFormBlueColor.value=o[2],this.updateColorBar(),this.updateHex()},a.updateColorBar=function(){a.controls.colorFormColorBar.style.opacity=i.StrToInt(a.controls.alfaCanal.value)/255,a.controls.colorFormColorBar.style.background="rgb("+a.controls.colorFormRedColor.value+","+a.controls.colorFormGreenColor.value+","+a.controls.colorFormBlueColor.value+")"},a.action=function(){this.changeVisibleState(!1);var e="transparent",t;"custom"==s.selectedTab.panelName?"0"!=a.controls.alfaCanal.value&&(e=a.controls.colorFormRedColor.value+","+a.controls.colorFormGreenColor.value+","+a.controls.colorFormBlueColor.value,"255"!=a.controls.alfaCanal.value)&&(e=a.controls.alfaCanal.value+","+e):e=this.selectedWebColorsButton.key,(i.controls.menus.colorDialog||i.InitializeColorDialog()).parentButton.choosedColor(e)},a},k.prototype.ColorFormCustomTable=function(e){var t=this,o=this.CreateHTMLTable(),i=(o.style.width="100%",o.style.height="100%",this.CreateHTMLTable()),a=(o.addCell(i).style.width="1px",i.className="stiJsViewerColorFormControlsTable stiJsViewerClearAllStyles",i.style.height="100%",i.addRow(),i.addTextCellInLastRow("Alpha").className="stiJsViewerCaptionControls",e.controls.alfaCanal=this.TextBox("colorFormAlfaCanal",80)),s=(i.addCellInLastRow(a),a.action=function(){this.value=t.StrToCorrectByte(this.value),e.updateColorBar()},i.addRow(),i.addTextCellInLastRow(this.collections.loc["RedColor"]).className="stiJsViewerCaptionControls",e.controls.colorFormRedColor=this.ColorTextBox("colorFormRedColor",80)),n=(i.addCellInLastRow(s),i.addRow(),i.addTextCellInLastRow(this.collections.loc["GreenColor"]).className="stiJsViewerCaptionControls",e.controls.colorFormGreenColor=this.ColorTextBox("colorFormGreenColor",80)),l=(i.addCellInLastRow(n),i.addRow(),i.addTextCellInLastRow(this.collections.loc["BlueColor"]).className="stiJsViewerCaptionControls",e.controls.colorFormBlueColor=this.ColorTextBox("colorFormBlueColor",80)),r=(i.addCellInLastRow(l),i.addRow(),i.addTextCellInLastRow("Hex").className="stiJsViewerCaptionControls",e.controls.colorFormHexColor=this.TextBox("colorFormHexColor",80)),A=(i.addCellInLastRow(r),e.updateHex=function(){r.value="#"+(("255"!=a.value?t.DecToHex(parseInt(a.value)):"")+t.DecToHex(parseInt(s.value))+t.DecToHex(parseInt(n.value))+t.DecToHex(parseInt(l.value))).toUpperCase()},e.updateRGB=function(){0!=r.value.indexOf("#")&&(r.value="#"+r.value);var e=t.HexToRgb(r.value);s.value=e?e.r:0,n.value=e?e.g:0,l.value=e?e.b:0,a.value=e&&e.a?e.a:255},s.onchange=n.onchange=l.onchange=a.onchange=function(){e.updateHex()},r.onchange=function(){e.updateRGB(),e.updateColorBar()},document.createElement("div")),p=(A.className="stiJsViewerColorFormColorBar",A.style.marginLeft="14px",k.setImageSource(A,this.options,this.collections,"ColorControl.NoFill.png"),o.addCell(A).style.textAlign="center",e.controls.colorFormColorBar=document.createElement("div"));return p.className="stiJsViewerColorFormColorBar",p.style.border="0px",A.appendChild(p),o},k.prototype.ColorFormWebColorPanel=function(t){var e=document.createElement("div");e.className="stiJsViewerColorFormWebColorPanel",t.webColorsButtons=[],t.selectedWebColorsButton=null;for(var o=0;oe.offsetWidth?"400px":"auto",e.style.width=0e.offsetWidth?"auto":"400px"),e.parentElement);t.style.textAlign=n.imageContainer.src?o.horAlignLeft.isSelected?"left":o.horAlignRight.isSelected?"right":"center":"center",t.style.verticalAlign=n.imageContainer.src?o.vertAlignTop.isSelected?"top":o.vertAlignBottom.isSelected?"bottom":"middle":"middle"},o.show=function(e){this.changeVisibleState(!0),this.horAlignLeft.setSelected("Left"==e.horAlignment),this.horAlignCenter.setSelected("Center"==e.horAlignment),this.horAlignRight.setSelected("Right"==e.horAlignment),this.vertAlignTop.setSelected("Top"==e.vertAlignment),this.vertAlignMiddle.setSelected("Center"==e.vertAlignment),this.vertAlignBottom.setSelected("Bottom"==e.vertAlignment),this.aspectRatio.setChecked(e.aspectRatio),this.stretch.setChecked(e.stretch),this.imageSrcContainer.setImage(e.image,function(){o.imageSrcContainer.update()})},o},k.prototype.InitializeSignatureTextForm=function(){for(var e=this,t=this.BaseForm("signatureText",this.collections.loc["Text"],3),o=(t.container.style.padding="1px",this.CreateHTMLTable()),i=(o.style.margin="12px",t.container.appendChild(o),[["fontName",this.FontList("signTextFontName",100),"0"],["fontSize",this.DropDownList("signTextFontSize",40,null,this.GetFontSizeItems(),!1),"4px"],["fontBold",this.SmallButton(null,null,"Font.Bold.png",this.collections.loc["FontStyleBold"]),"12px"],["fontItalic",this.SmallButton(null,null,"Font.Italic.png",this.collections.loc["FontStyleItalic"]),"4px"],["fontUnderline",this.SmallButton(null,null,"Font.Underline.png",this.collections.loc["FontStyleUnderline"]),"4px"],["textColor",this.ColorControlWithImage("signTextColor","ColorControl.TextColor.png",null,!0),"12px"],["horAlignLeft",this.SmallButton(null,null,"Font.AlignLeft.png",this.collections.loc["AlignLeft"]),"12px"],["horAlignCenter",this.SmallButton(null,null,"Font.AlignCenter.png",this.collections.loc["AlignCenter"]),"4px"],["horAlignRight",this.SmallButton(null,null,"Font.AlignRight.png",this.collections.loc["AlignRight"]),"4px"]]),a=0;ah&&0h-c&&0h-c&&(this.style.top=h-c-this.innerContent.offsetHeight-10+"px"),u<0?this.style.left="10px":u+this.innerContent.offsetWidth>d-g&&(this.style.left=d-g-this.innerContent.offsetWidth-10+"px"),this.innerContent.style.top=(p?("Down"==A?-1:1)*this.innerContent.offsetHeight:0)+"px",this.innerContent.style.left=(p?0:("Right"==A?-1:1)*this.innerContent.offsetWidth)+"px",f=(new Date).getTime(),C.options.toolbar.menuAnimation&&(f+=a?0:C.options.menuAnimDuration),p?C.ShowAnimationVerticalMenu(this,"Down"==A?0:-1,f):C.ShowAnimationHorizontalMenu(this,"Right"==A?0:-1,f))):(this.onHide(),clearTimeout(this.innerContent.animationTimer),this.visible=!1,this.parentButton&&this.parentButton.setSelected(!1),C.options.isMobileDevice?(this.style.transitionDuration="200ms",this.style.marginLeft="-"+this.style.width,setTimeout(function(){w.style.transitionDuration="",w.style.display="none"},s?0:200)):this.style.display="none",this.currentSubMenu&&this.currentSubMenu.changeVisibleState(!1),C.options[null==this.type?p?"currentMenu":"currentHorMenu":"current"+this.type]==this&&(C.options[null==this.type?p?"currentMenu":"currentHorMenu":"current"+this.type]=null))},w.action=function(e){return e},w.onmousedown=function(){this.isTouchStartFlag||this.ontouchstart(!0)},w.ontouchstart=function(e){C.options.isMobileDevice&&"boolean"!=typeof e&&(this.touchStartX=parseInt(e.changedTouches[0].clientX),this.lastTouches=[{x:0,y:0,time:0},{x:0,y:0,time:0}]);var t=this;this.isTouchStartFlag=!e,clearTimeout(this.isTouchStartTimer),(C.options.menuPressed=this).isTouchStartTimer=setTimeout(function(){t.isTouchStartFlag=!1},1e3),setTimeout(function(){C.options.menuPressed=!1},250)},w.ontouchmove=function(e){C.options.isMobileDevice&&this.lastTouches&&(this.lastTouches.shift(),this.lastTouches.push({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY,time:(new Date).getTime()}))},w.ontouchend=function(e){var t,o;C.options.isMobileDevice&&(t=this.lastTouches[1].x-this.lastTouches[0].x,o=(new Date).getTime()-this.lastTouches[1].time,t<=-5)&&o<=14&&this.changeVisibleState(!1)},w.correctPositions=function(){this.changeVisibleState(!0,this.parentButton,null,null,!0)},w.onshow=function(){},w.onHide=function(){},w.applyStyleColors=function(e){(this.styleColors=e)&&(s.style.borderColor=e.separatorColor,s.style.background=e.backColor,s.style.color=e.foreColor)},w},k.prototype.HorizontalMenu=function(e,t,o,i,a,s){var n=this.BaseMenu(e,t,o,s);return n.itemStyleName=a,n.clear=function(){while(this.innerContent.childNodes[0])this.innerContent.removeChild(this.innerContent.childNodes[0])},n.addItems=function(e){if(this.clear(),e&&e.length)for(var t=0,o;t'),e.url?(o+=''),o+=e.name,!e.url&&(this.config.folderLinks&&e.url||!e._hc)||(o+=""),o+="",e._hc&&(o=(o+='
')+this.addNode(e)+"
"),this.aIndent.pop(),o},A.prototype.indent=function(e,t){var o="";if(this.root.id!=e.pid){for(var i=0;i';e._ls?this.aIndent.push(0):this.aIndent.push(1),e._hc?(o+=''):o+="'}return o},A.prototype.setCS=function(e){for(var t,o=0;oa&&0=a.findedItems.length?a.currentFindedIndex=0:e<0&&(a.currentFindedIndex=a.findedItems.length-1),t||(a.findedItems[a.currentFindedIndex].setSelected(!0),o=this.jsObject.FindPosY(a.findedItems[a.currentFindedIndex],"stiJsViewerDropdownMenu",!0),n.scrollTop=o-n.offsetHeight)},o.onChange=function(){a.findItems(this.value)},t},k.prototype.TouchEndMenuItem=function(e,t){var o=document.getElementById(e);if(!o||o.parameter.jsObject.options.fingerIsMoved)return;if(t)return o.className="stiJsViewerParametersMenuItemPressed","undefined"!=typeof event&&"preventDefault"in event&&event.preventDefault(),void setTimeout(function(){o.parameter.jsObject.TouchEndMenuItem(o.id,!1)},200);o.className=o.isOver?"stiJsViewerParametersMenuItemOver":"stiJsViewerParametersMenuItem",null!=o.action&&o.action()},k.prototype.parameterMenuSeparator=function(){var e=document.createElement("Div");return e.className="stiJsViewerParametersMenuSeparator",e},k.prototype.parameterMenuForValue=function(s){var n=this,l=200,r=s.params.items,A=this.ParameterMenu(s),p,c;return A.paramsItems=[],A.currentLoadedIndex=0,r&&(p=this.addFindControlToParameterMenu(A,s,r.length<10),A.onshow=function(){A.findItems(""),setTimeout(function(){p.findTextbox.focus()},200)},c={},A.addItems=function(e,t){for(var o=e;oA.innerTable.offsetHeight-2*A.scrollContainer.offsetHeight&&A.currentLoadedIndexp.innerTable.offsetHeight-2*p.scrollContainer.offsetHeight&&p.currentLoadedIndexp.maxHeights[s[1]])&&(p.maxHeights[s[1]]=e)}):(A=a.offsetHeight-t[0]-t[2],(null==p.maxHeights[s[1]]||A>p.maxHeights[s[1]])&&(p.maxHeights[s[1]]=A))),c.InitializeInteractions(a),a.touchesLength=0,a.lastTouches=[{x:0,y:0,time:0},{x:0,y:0,time:0}],a.translateX=function(e){var t=this;this.style.transitionDuration="300ms",this.style.transform=0==e?"":"translateX("+e+"px)",setTimeout(function(){t.style.transitionDuration=""},300)},a.eventTouchStart=function(e){this.touchAllowPageAction=0==this.touchesLength&&Math.abs(p.offsetWidth-p.scrollWidth)<=10,this.touchesLength++,this.touchAllowPageAction&&(this.touchStartX=parseInt(e.changedTouches[0].clientX),this.touchStartScrollY=p.scrollTop)},a.eventTouchMove=function(e){this.touchAllowPageAction&&(this.lastTouches.shift(),this.lastTouches.push({x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY,time:(new Date).getTime()}),p.offsetWidth==p.scrollWidth)&&this.touchStartScrollY==p.scrollTop&&(this.touchPosX=parseInt(this.lastTouches[1].x-this.touchStartX),0==scrollX)&&(this.style.transform="translateX("+this.touchPosX+"px)")},a.eventTouchEnd=function(e){var t,o;0=c.reportParams.pagesCount-1||0<=t&&c.reportParams.pageNumber<=0?this.translateX(0):t<-5&&o<=14&&this.lastTouches[1].xthis.touchStartX||0this.pageWidth/3?(c.postAction("PrevPage"),this.translateX(this.pageWidth)):this.translateX(0))},c.options.isMobileDevice&&(c.addEvent(a,"touchstart",a.eventTouchStart),c.addEvent(a,"touchmove",a.eventTouchMove),c.addEvent(a,"touchend",a.eventTouchEnd)),a},p.eventTouchStart=function(e){p.touchesLength++,p.touchStartX=parseInt(e.changedTouches[0].clientX),c.options.appearance.allowTouchZoom&&1==p.touchesLength&&(p.touchZoomFirstDistance=0,p.touchZoomSecondDistance=0,p.touchZoomValue=0)},p.eventTouchMove=function(e){var t;c.options.appearance.allowTouchZoom&&1p.scrollTop)break;o"+this.jsObject.GetHumanFileSize(o.size,1),a=this.jsObject.ResourceButton(o.name,i,this.jsObject.GetResourceImage(o.type),o.type);a.caption.innerHTML=i,e.addCell(a)}}this.changeVisibleState(null!=this.jsObject.reportParams.resources)},e.clearResources=function(){while(s.childNodes[0])s.removeChild(s.childNodes[0])}},k.prototype.ResourceButton=function(e,t,o,i){var a=this.SmallButton(e,t,o,this.collections.loc["ButtonView"]+" "+e,null,"stiJsViewerSmallButtonWithBorder"),s=(a.style.height="auto",a.resourceType=i,a.style.margin="3px 0 3px 3px",this.SmallButton(null,null,"Arrows.SmallArrowDown.png",null,null,null,null,{width:8,height:8})),n=(s.style.height=s.style.width=this.options.isTouchDevice?"23px":"18px",s.style.margin="0 7px 0 3px",s.innerTable.style.width="100%",s.imageCell.style.textAlign="center",this.options.jsMode||(a.innerTable.addCell(s).style.width="1px"),a.innerTable.style.width="100%",a.style.minWidth="80px",a.caption&&(a.caption.style.textAlign="left",a.caption.style.paddinLeft="3px",a.caption.style.maxWidth="150px",a.caption.style.lineHeight="14px",a.caption.style.whiteSpace="nowrap",a.caption.style.overflow="hidden",a.caption.style.textOverflow="ellipsis"),a.imageCell&&(a.imageCell.style.width="1px",a.imageCell.style.padding="4px 8px 4px 4px",a.image.style.width=a.image.style.height="32px"),[]),l=(n.push(this.Item("View",this.collections.loc["ButtonView"],"Zoom.png","View")),n.push(this.Item("SaveFile",this.collections.loc["Save"],"Save.png","SaveFile")),this.VerticalMenu(e+"_ResourceMenu",s,"Down",n));return l.action=function(e){l.changeVisibleState(!1),this.jsObject.postReportResource(a.name,e.key)},a.action=function(){var e,t;s.clicked||(t=0<=["Image","Pdf","Txt"].indexOf(a.resourceType)?"View":"SaveFile",this.jsObject.postReportResource(a.name,this.jsObject.options.jsMode?"SaveFile":t)),s.clicked=!1},a.onmouseup=function(e){2!=e.button||this.jsObject.options.jsMode||l.changeVisibleState(!0)},a.oncontextmenu=function(e){return!1},s.action=function(){l.changeVisibleState(!l.visible),l.items.View.setEnabled("Report"!=a.resourceType),s.clicked=!0},a},k.prototype.GetResourceImage=function(e){return k.checkImageSource(this.options,this.collections,"BigResource"+e+".png")?"BigResource"+e+".png":"BigResource.png"},k.prototype.CreateSvgElement=function(e){return"createElementNS"in document?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)},k.prototype.ColumnIsNumericType=function(e){return"sbyte"==e||"byte"==e||"short"==e||"ushort"==e||"int"==e||"uint"==e||"long"==e||"ulong"==e||"float"==e||"decimal"==e||"double"==e},k.prototype.ColumnIsDateType=function(e){return"datetime"==e||"timespan"==e},k.prototype.DataFilterObject=function(e,t,o,i,a,s,n){return{typeItem:"FilterRule",key:e,path:t,condition:void 0!==o?o:"EqualTo",value:void 0!==i?i:null,value2:void 0!==a?a:null,isEnabled:void 0===s||s,isExpression:void 0!==n&&n}},k.prototype.DataSortObject=function(e,t){return{typeItem:"SortRule",key:e,direction:t}},k.prototype.RemoveElementFromArray=function(e,t){for(var o=0;ok){u.textContent="";for(var R=[],T="",I=0,P=0;Pk||P==d.length-1)&&(0a){p.caption.innerText="",s=!0;break}s&&p.caption.appendChild(l.ComboBoxCaptionButton(l.collections.loc.DashboardNSelected.replace("{0}",o.length),{value:"StiUnCheckAll"},t,A.settings,r))}}p.setEnabled(0p.offsetHeight&&(p.innerTable.style.marginTop=-(p.innerTable.offsetHeight-p.offsetHeight)/2+"px")},k.prototype.ComboBoxCaptionButton=function(e,t,o,i,a){var s=this,n=this.SmallButton(null,e,null,null,"Down");return n.item=t,n.style.display="inline-block",k.setImageSource(n.arrow,this.options,this.collections,i.isDarkStyle?"CloseWhite.png":"CloseForm.png"),n.arrow.style.width=n.arrow.style.height="16px",n.style.backgroundColor=i.selectedBackColor,n.style.color=i.selectedForeColor,n.style.border="0",n.style.borderRadius="0",n.style.boxSizing="border-box",n.style.marginRight="4px",n.style.height="100%",n.style.fontSize=(a&&a.font.size?a.font.size:"10")+"pt",n.arrow.parentNode.style.padding="0 2px 0 0",n.arrow.style.margin="0 0 1px 0",n.arrow.style.opacity="0.6",n.caption&&(n.caption.style.padding="0 2px 0 4px"),n.onmouseoverAction=function(){if(this.jsObject.options.isTouchClick)return;this.isOver=!0,this.style.backgroundColor=i.hotSelectedBackColor,this.style.color=i.hotSelectedForeColor},n.onmouseoutAction=function(){this.isOver=!1,this.style.backgroundColor=i.selectedBackColor,this.style.color=i.selectedForeColor},this.options.isTouchDevice?(n.ontouchstart=function(){},n.ontouchend=function(){},n.arrow.ontouchstart=function(){s.options.fingerIsMoved=!1},n.arrow.ontouchend=function(e){if(s.options.fingerIsMoved)return;return n.parentNode.removeChild(n),o(n),e.stopPropagation(),!1}):(n.arrow.onmouseover=function(){this.style.opacity="1"},n.arrow.onmouseout=function(){this.style.opacity="0.6"},n.arrow.onclick=function(e){n.parentNode.removeChild(n),o(n),e.stopPropagation()}),n},k.prototype.CreateDatePickerElementContent=function(i){var l=this,r=i.elementAttributes,A=r.contentAttributes,p=this.SmallButton(null," ",null,null,"Down",null,A.settings);l.ApplyAttributesToObject(p.innerTable,r),p.innerTable.style.minHeight="auto",p.style.height=p.innerTable.style.height="100%",p.style.border="0",p.style.overflow="hidden",p.caption.style.width="100%",p.caption.style.padding="0 4px 0 4px",p.arrow.style.width=p.arrow.style.height="16px",k.setImageSource(p.arrow,this.options,this.collections,"Dashboards.IconCloseItem"+(A.settings.isDarkStyle?"White.png":".png")),i.contentPanel.appendChild(p),i.contentPanel.style.overflow="hidden",p.update=function(){var e=A.filters,t=new Date,o=null,i;try{0==e.length?A.variableRangeValues?(t=new Date(A.variableRangeValues.selectionStart),o=new Date(A.variableRangeValues.selectionEnd)):A.variableValue?t=new Date(A.variableValue):"AutoRange"==A.selectionMode&&A.autoRangeValues?(t=new Date(A.autoRangeValues.selectionStart),o=new Date(A.autoRangeValues.selectionEnd)):"Range"==A.selectionMode&&(i=l.GetValuesByDateRangeName(l.ConvertDateRangeSelectionToDateRangeKind(A.initialRangeSelection)))&&(t=i[0],o=i[1]):(e[0].value&&(t=new Date(e[0].value)),e[0].value2&&(o=new Date(e[0].value2)))}catch(e){}var a=t.toLocaleDateString(),s=(o&&(a+=" - "+o.toLocaleDateString()),p.firstDate=t,p.secondDate=o||new Date,function(e){var t=l.getDateTimeObject(e);return t.month+"/"+t.day+"/"+t.year}),n={value1:s(t)};o&&(n.value2=s(o)),l.postAjax(l.getActionRequestUrl(l.options.requestUrl,l.options.actions.viewerEvent),{action:"GetDatePickerFormattedValues",dateValues:n,datePickerElementName:r.name},function(e){var t;e&&(t=JSON.parse(l.options.server.useCompression?G.unpack(e):e))&&t.value1&&(a=t.value1,t.value2)&&(a+=" - "+t.value2),p.caption.innerText=a})},p.update(),p.action=function(){var o,e,o;p.isModified=!1,"Single"==A.selectionMode?((o=l.controls.datePicker).visible?o.changeVisibleState(!1):(o.key=this.firstDate,o.parentButton=this,o.changeVisibleState(!0)),o.action=function(){p.isModified=!0},o.onHide=function(){p.isModified&&(A.filters=[{condition:A.condition,value:l.formatDate(this.key,"MM/dd/yyyy"),path:A.columnPath}],p.update(),l.ApplyFiltersToDashboardElement(i,A.filters,!0)),o.onHide=null}):((o=l.InitializeDoubleDatePicker({firstParentButton:p,secondParentButton:p})).firstDatePicker.key=this.firstDate,o.secondDatePicker.key=this.secondDate,o.changeVisibleState(!o.visible,p),o.action=function(){p.isModified=!0},o.onHide=function(){var e,t;p.isModified&&(e=l.formatDate(this.firstDatePicker.key,"MM/dd/yyyy"),t=l.formatDate(this.secondDatePicker.key,"MM/dd/yyyy"),A.filters=[{condition:"Between",value:e,value2:t,path:A.columnPath}],p.update(),l.ApplyFiltersToDashboardElement(i,A.filters,!0)),o.onHide=null})},i.getSelectedValues=function(){var e=p.firstDate.toLocaleDateString();return"Range"!=A.selectionMode&&"AutoRange"!=A.selectionMode||!p.secondDate||(e+=" - "+p.secondDate.toLocaleDateString()),{selectedValue:e,selectedKey:e,selectedLabel:e,selectedIndex:-1}}},k.prototype.ConvertDateRangeSelectionToDateRangeKind=function(e){switch(e){case"DayTomorrow":return"Tomorrow";case"DayToday":return"Today";case"DayYesterday":return"Yesterday";case"WeekNext":return"NextWeek";case"WeekCurrent":return"CurrentWeek";case"WeekPrevious":return"PreviousWeek";case"MonthNext":return"NextMonth";case"MonthCurrent":return"CurrentMonth";case"MonthPrevious":return"PreviousMonth";case"QuarterNext":return"NextQuarter";case"QuarterCurrent":return"CurrentQuarter";case"QuarterPrevious":return"PreviousQuarter";case"QuarterFirst":return"FirstQuarter";case"QuarterSecond":return"SecondQuarter";case"QuarterThird":return"ThirdQuarter";case"QuarterFourth":return"FourthQuarter";case"YearNext":return"NextYear";case"YearCurrent":return"CurrentYear";case"YearPrevious":return"PreviousYear";case"Last7Days":return"Last7Days";case"Last14Days":return"Last14Days";case"Last30Days":return"Last30Days";case"DateToWeek":return"WeekToDate";case"DateToMonth":return"MonthToDate";case"DateToQuarter":return"QuarterToDate";case"DateToYear":return"YearToDate"}return"Today"},k.prototype.CreateListBoxElementContent=function(e){var t=this,o=document.createElement("div");o.style.position="absolute",o.style.left=o.style.top=o.style.right=o.style.bottom="0px",o.style.overflow="auto",o.className="stiJsViewerScrollContainer",t.CreateListBoxItemsContent(e,o,e.contentPanel)},k.prototype.CreateListBoxItemsContent=function(a,r,e,s){var n=this,t=a.elementAttributes,A=t.contentAttributes,l,i=[],o;a.itemsPanel=r;while(e.childNodes[0])e.removeChild(e.childNodes[0]);if(a.setStatesForAllItems=function(e){"Multi"==A.selectionMode&&l&&l.setChecked(e);for(var t=0;t=t.checkedItems.length)for(var o=0;ol){h.caption.innerText="",r=!0;break}r&&h.caption.appendChild(p.ComboBoxCaptionButton(p.collections.loc.DashboardNSelected.replace("{0}",i.length),{value:"StiUnCheckAll"},o,g.settings,c))}}h.setEnabled(p.getCountObjects(d.mainItem.childs))},h.update()},k.prototype.CreateTreeViewElementContent=function(e){this.CreateTreeViewItemsContent(e,e.contentPanel)},k.prototype.CreateTreeViewItemsContent=function(i,e,o){var a=this,t=i.elementAttributes,A=t.contentAttributes,s;while(e.childNodes[0])e.removeChild(e.childNodes[0]);var p=a.TreeViewElementTree(t);(i.itemsPanel=p).onChecked=function(e){var t;"allValue"==e.id?i.setStatesForAllItems(e.isChecked):s&&(t=i.getAllItemsCheckedState(),s.setChecked(0==t.unCheckedItems.length)),p.updateCheckBoxesStates(),o&&o(),i.menu&&i.menu.visible?i.menu.isModified=!0:(clearTimeout(i.actionTimer),i.actionTimer=setTimeout(function(){a.ApplyFiltersToDashboardElement(i,i.getFilters())},500))},p.onActionItem=function(e){var t;e&&e.itemObject&&(t="allValue"!=e.id?[{condition:"EqualTo",value:e.itemObject.key,path:e.itemObject.columnPath}]:[],a.ApplyFiltersToDashboardElement(i,t)),o&&o()},i.setStatesForAllItems=function(e){if("One"==A.selectionMode)e||p.mainItem.setSelected();else for(var t in p.items)p.items[t].setChecked&&p.items[t].setChecked(e)},i.applyFiltersToItems=function(){var e="Multi"==A.selectionMode,t;for(t in p.items){var o=p.items[t],i=o.itemObject;if("mainItem"==o.id||"allValue"==o.id||!i)continue;if("Multi"==A.selectionMode)(e="NotEqualTo"==A.filters[0].condition||"IsFalse"==A.filters[0].condition)&&A.filters.some(function(e){return"NotEqualTo"==e.condition&&e.value==i.key&&e.path==i.columnPath||"IsFalse"==e.condition})?o.setChecked(!1):!e&&A.filters.some(function(e){return"EqualTo"==e.condition&&e.value==i.key&&e.path==i.columnPath})?o.setChecked(!0):o.setChecked(e),s&&!o.isChecked&&s.setChecked(!1);else if(A.filters.some(function(e){return"EqualTo"==e.condition&&e.value==i.key&&e.path==i.columnPath}))return o.setSelected(),o.openTree(),void p.autoscroll()}},i.getFilters=function(){var e=[],t=i.getAllItemsCheckedState();if(0==t.checkedItems.length)e.push({condition:"IsFalse",path:A.columnPath});else if(t.unCheckedItems.length>=t.checkedItems.length)for(var o=0;os.offsetWidth&&0!=r.offsetWidth?(s.offsetWidth-6)/r.offsetWidth:1,p=r.offsetHeight>s.offsetHeight&&0!=r.offsetHeight?(s.offsetHeight-6)/r.offsetHeight:1,c=Math.min(Math.abs(A),Math.abs(p)),s.style.height=s.offsetHeight+"px",s.style.fontSize=parseFloat(i.font.size.toString())*c+"pt",(g=e.elementAttributes.cornerRadius)&&(0t&&0!=a.offsetWidth?t/a.offsetWidth:1),n=a.offsetHeight>o&&0!=a.offsetHeight?o/a.offsetHeight:1,l=Math.min(Math.abs(s),Math.abs(n));return this.controls.mainPanel.removeChild(a),parseFloat(i.font.size.toString())*l},k.prototype.InsertHTMLContentToDashboardElement=function(e,t,o,i){var a=this,s=e.elementAttributes.type,n=e.elementAttributes,l=0,r=0,A=0,p=0,c=parseInt(e.style.width.replace("px","")),g=parseInt(e.style.height.replace("px","")),h,l,A,p,r,c,g;if("StiOnlineMapElement"==s&&n.padding&&(h=n.padding.split(","),l=parseInt(h[0]),A=parseInt(h[1]),p=parseInt(h[2]),c=c-(r=parseInt(h[3]))-A,g=g-p-l),t||o){var d=e.frame||document.createElement("iframe"),u=(d.setAttribute("scrolling",o?"yes":"no"),d.setAttribute("style","position: absolute; overflow: "+(o?"auto":"hidden")+"; border: none; left:"+r+"px;top:"+l+"px;right:"+A+"px;bottom:"+p+"px;width:"+c+"px;height:"+g+"px;"),e.appendChild(d),e.frame=d,o&&(o=o.replace("watch?v=","embed/"),d.src=o),n.cornerRadius),m,b,f=("StiOnlineMapElement"==s&&u&&(d.style.borderRadius=parseInt(u.topLeft)+"px "+parseInt(u.topRight)+"px "+parseInt(u.bottomRight)+"px "+parseInt(u.bottomLeft)+"px",m=n.contentAttributes.title)&&m.text&&m.visible&&0<=(t=t.replace("width:{};","width:"+c+"px;")).indexOf("font-size:measure")&&(b=a.MeasureTitleFontSize(e,c,30),t=t.replace("font-size:measure","font-size:"+b.toString().replace(",",".")+"pt")),d.contentWindow?d.contentWindow.document:null);if(f&&t){i&&(d.onload=function(){i(this.contentWindow)}),f.open(),f.write(t),f.close();var w=f.getElementsByClassName("StiPageContainer");if(w&&0Math.abs(b)?(d=t,u=h*m):(u=o,d=g*b)),(w=f=0)<=(C=i.imageAlignment).indexOf("Center")?f=t/2-d/2:0<=C.indexOf("Right")&&(f=t-d),0<=C.indexOf("Middle")?w=o/2-u/2:0<=C.indexOf("Bottom")&&(w=o-u),a.setAttribute("x",l&&!r?0:f),a.setAttribute("y",l&&!r?0:w),a.setAttribute("width",d),a.setAttribute("height",u),l&&!r?a.setAttribute("preserveAspectRatio","none"):a.removeAttribute("preserveAspectRatio")))},k.prototype.PaintWeaveWaterMark=function(e,t,o,i){if(i.weaveEnabled&&(i.weaveMajorImage||i.weaveMinorImage)){for(var a=parseInt(i.weaveDistance),s=parseInt(i.weaveAngle),n=t/2,l=o/2,r=n,A=l,p=0;p<30;p++){var c=(s+90)*(Math.PI/180),g=r+a*p*Math.cos(c),h=A+a*p*Math.sin(c);if(!this.DrawWeaveLine(e,t,o,i,a,s,g,h,p))break}for(var r=n,A=l,p=1;p<30;p++){var d=(s-90)*(Math.PI/180),g=r+a*p*Math.cos(d),h=A+a*p*Math.sin(d);if(!this.DrawWeaveLine(e,t,o,i,a,s,g,h,-p))break}}},k.prototype.DrawWeaveLine=function(e,t,o,i,a,s,n,l,r){for(var A=!1,p=!1,c=s*(Math.PI/180),g=i.weaveMajorImage,h=i.weaveMinorImage,d=0;d<30;d++){var u=n+a*d*Math.cos(c),m=l+a*d*Math.sin(c),b;if(null==(b=0==(d+r&1)?g:h))continue;if(this.ContainsWeaveImage(t,o,b,s,u,m))this.DrawWeaveImage(e,b,s,u,m),p=A=!0;else if(p)break}for(var d=1;d<30;d++){var u=n-a*d*Math.cos(c),m=l-a*d*Math.sin(c),b;if(null==(b=0==(-d+r&1)?g:h))continue;if(this.ContainsWeaveImage(t,o,b,s,u,m))this.DrawWeaveImage(e,b,s,u,m),p=A=!0;else if(p)break}return A},k.prototype.ContainsWeaveImage=function(e,t,o,i,a,s){if(null==o)return!1;var n=o.width/2,l=o.height/2,r=i*(Math.PI/180),A={x:-n*Math.cos(r)+-l*Math.sin(r)+a,y:-n*Math.sin(r)- -l*Math.cos(r)+s},p={x:n*Math.cos(r)+-l*Math.sin(r)+a,y:n*Math.sin(r)- -l*Math.cos(r)+s},c={x:-n*Math.cos(r)+l*Math.sin(r)+a,y:-n*Math.sin(r)-l*Math.cos(r)+s},g={x:n*Math.cos(r)+l*Math.sin(r)+a,y:n*Math.sin(r)-l*Math.cos(r)+s};return this.ContainsPointAtPanelRect(e,t,A)||this.ContainsPointAtPanelRect(e,t,p)||this.ContainsPointAtPanelRect(e,t,c)||this.ContainsPointAtPanelRect(e,t,g)},k.prototype.ContainsPointAtPanelRect=function(e,t,o){return 0<=o.x&&o.x<=e&&0<=o.y&&o.y<=t},k.prototype.DrawWeaveImage=function(e,t,o,i,a){var s=this.CreateSvgElement("g"),n=(s.setAttribute("transform","translate("+i+","+a+") rotate("+o+")"),this.CreateSvgElement("svg")),l=(n.setAttribute("x",-t.width/2),n.setAttribute("y",-t.height/2),n.setAttribute("width",t.width),n.setAttribute("height",t.height),s.appendChild(n),this.CreateSvgElement("rect")),r=(l.setAttribute("x","0"),l.setAttribute("y","0"),l.setAttribute("width",t.width),l.setAttribute("height",t.height),l.setAttribute("fill","#ffffff"),l.setAttribute("fill-opacity","0"),n.appendChild(l),this.CreateSvgElement("g")),A=(n.appendChild(r),this.CreateSvgElement("text"));A.textContent=t.text,A.setAttribute("x","45%"),A.setAttribute("dy","1em"),A.setAttribute("text-anchor","middle"),A.setAttribute("font-family","Stimulsoft"),A.setAttribute("font-size",3.5*t.size),A.style.fill=t.color,r.appendChild(A),e.wPanel.appendChild(s)},k.prototype.CreateSvgElement=function(e){return"createElementNS"in document?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)},k.prototype.DataGrid=function(e,ge,he,de,ue,me){var be=document.createElement("div"),fe=be.jsObject=this,we=30,Ce=35;return be.style.userSelect="none",be.style.position="relative",be.guid=Math.floor(1e7*Math.random()),fe.options.isTouchDevice?(be.style.overflowX="auto",be.style.overflowY="hidden",be.className="stiJsViewerContainerHideScroll",be.onscroll=function(){be.repaintHorScrolls()}):be.style.overflow="hidden",e&&(be.style.width=e+"px"),ge&&(be.style.height=ge+"px"),be.clear=function(){while(this.childNodes[0])this.removeChild(this.childNodes[0]);clearTimeout(be.navTimer)},be.showProgress=function(){be.hideProgress();var e=document.createElement("div");e.style.position="absolute",e.style.zIndex="1",e.style.top=e.style.left=e.style.right=e.style.bottom="0px",e.style.background=de.backColor||"transparent",fe.AddProgressToControl(e),be.appendChild(e),be.progressPanel=e,de.actionColors&&de.actionColors.isDarkStyle?e.progress.setToLightStyle():e.progress.setToDefaultStyle(),e.progress.show()},be.hideProgress=function(){be.progressPanel&&be.removeChild(be.progressPanel),be.progressPanel=null},be.createCssStyle=function(){var e=document.createElement("style");return e.type="text/css",this.appendChild(e),e},be.addRulesToStyle=function(e,t,o){var i=e.styleSheet||e.sheet||document.styleSheets[0];i&&i.insertRule&&i.insertRule(t+"{"+o+"}",0)},be.hideRow=function(e){for(var t=0;the.rowsPerPage,T=R?Math.ceil(N/he.rowsPerPage):0,I=fe.CreateHTMLTable(),P=I.tr[0],x=(be.appendChild(I),document.createElement("div")),U=(x.style.position="relative",fe.options.isTouchDevice?(x.style.overflowX="hidden",x.style.overflowY="auto",x.className="stiJsViewerContainerHideScroll"):x.style.overflow="hidden",be.appendChild(x),fe.CreateHTMLTable()),F=U.tr[0],Q=(x.appendChild(U),fe.CreateHTMLTable()),L=Q.tr[0],o=(k&&2").replace(/\n/g,"
").replace(/\r/g,"
")).indexOf("
")?A.innerHTML=ne:A.innerText=ne,g&&(g.style.width="1px",g.style.verticalAlign="middle",g.style.fontSize="0")}tx.scrollTop){for(var o=Math.max(t-5,0),i=Math.min(o+100,U.tr.length),a=o;at&&(s=(a=(e<0?x.scrollTop+t:x.scrollTop-t)*a/(s=s<=0?1:s))*be.vOffset),H.style.transform="translateY("+a+"px)",x.scrollTop=s,be.vScrollOffset=a,be.checkDisplaingRows(),be.repaintVertScrolls()},0)}"onwheel"in document?fe.addEvent(e,"wheel",t,be):"onmousewheel"in document?fe.addEvent(e,"mousewheel",t,be):fe.addEvent(e,"MozMousePixelScroll",t,be)},be.saveGridStates=function(){fe.tableElementGridStates||(fe.tableElementGridStates={});var e={selectedCells:this.selectedCells,cellVScrollTransform:H.style.transform,cellsContainerScrollTop:x.scrollTop,vScrollOffset:be.vScrollOffset};if("Fit"!=he.sizeMode&&this.headerButtons&&0t?U.tr[t]:0o?i.childNodes[o]:0s.sizeMaxWidth&&(a=s.sizeMaxWidth,n=!0),s.sizeMinWidth)&&aa&&(a=e.columnsWidth[i]);for(var l,r,A=((l=P.childNodes[i].firstChild).style.width=a+"px",k&&((r=L.childNodes[i].firstChild).style.width=a+"px"),l.sortImage.offsetWidth+l.sortNumber.offsetWidth+l.filterCell.offsetWidth+8),p,c=("Fit"!=he.sizeMode&&l.caption.offsetWidth+A>l.offsetWidth&&0!=l.caption.offsetWidth&&(n?((p=document.createElement("div")).innerHTML=l.caption.innerHTML,p.style.display="block",p.style.textOverflow="ellipsis",p.style.overflow="hidden",p.style.width=Math.max(l.offsetWidth-A,10)+"px",l.caption.innerHTML="",l.caption.appendChild(p)):(a=l.caption.offsetWidth+A,l.style.width=a+"px",k&&(r.style.width=a+"px"))),0),g=0;g'+t+""),a.setAttribute("_text1",t),document._stiTooltip||fe.CreateCustomTooltip(document,fe.controls.mainPanel),fe.AddCustomTooltip(a,document)),"OpenHyperlink"==s.interaction.onClick&&s.interaction.hyperlink?(a.style.cursor="pointer",a.onclick=function(){var e=be.replaceRowValues(a,fe.ReplaceAllKeysInText(s.interaction.hyperlink,{value:n}));"_self"==fe.options.appearance.openLinksWindow?window.location.href=e:fe.openNewWindow(e,fe.options.appearance.openLinksWindow,void 0,!1)}):"ApplyFilter"==s.interaction.onClick?(a.style.cursor="pointer",a.onclick=function(){var e=[fe.DataFilterObject(s.key,s.path,"EqualTo",n)];fe.ApplyFiltersToDashboardElement(ue,e,!0)}):"ShowDashboard"==s.interaction.onClick&&s.interaction.drillDownPageKey&&(a.style.cursor="pointer",a.onclick=function(e){var t={drillDownPageKey:s.interaction.drillDownPageKey,value:n,rowCels:a.rowCels,tableKey:a.tableKey,parameters:[]},o=s.interaction.drillDownParameters;if(o)for(var i=0;ie.screenX&&(t*=-1),Math.max(0,Math.min(o,t+k.hScrollOffset)));k.cellHScroll.style.transform="translateX("+i+"px)",k.cellsDiv.scrollLeft=i*k.hOffset,k.hScrollOffset=i},this.cellsVScrollDiv.onmousedown=function(e){var t=(k.height-k.headerHeight)/k.vOffset,o=k.height-k.headerHeight-t,i=(k.cellVScroll.getBoundingClientRect().y>e.screenY&&(t*=-1),Math.max(0,Math.min(o,t+k.vScrollOffset)));k.cellVScroll.style.transform="translateY("+i+"px)",k.cellsDiv.scrollTop=i*k.vOffset,k.vScrollOffset=i};for(var h=[],A=0;Ak.cornerTable.rows[d].cells.length&&k.cornerTable.addCellInRow(d);for(var b=[],p=0;p=k.cellsDiv.scrollLeft&&!g.cell.opened&&(a=Math.min(a,d),u=g.cell.pcolumn||(g.cell.totalCellGuid?this.cellGuid[g.cell.totalCellGuid]:g.cell).column,t.push(u),o[u]=g),p++}}}k.headerRowsY=0;var m=0,b=0;while(mk.dataCols[k.dataCols.length-1]||k.dataCols[0]>t[t.length-1]||i[0]>k.dataRows[k.dataRows.length-1]||k.dataRows[0]>i[i.length-1]||e)for(var B in k.table.tbody.innerHTML="",i){var y=i[B],E,v;for(v in(E=document.createElement("tr")).className="stiJsViewerClearAllStyles",k.table.tbody.appendChild(E),t){var S=t[v];k.td2(k.data.cells[S][y],-1,-1,k.table)}}else if(i[0]i[i.length-1])k.table.tbody.removeChild(k.table.tbody.lastChild),B--}else if(i[i.length-1]>k.dataRows[k.dataRows.length-1]||i[0]>k.dataRows[0]){var B=0,E,v;while(k.dataRows[B]k.dataRows[k.dataRows.length-1])B--;B++;while(Bt[t.length-1]){for(var r=0;rk.dataCols[k.dataCols.length-1]||t[0]>k.dataCols[0]){var v=0;while(k.dataCols[v]k.dataCols[k.dataCols.length-1])v--;v++;while(v=k.data.headerHeight&&e.column>=k.data.headerWidth&&"td"==n&&(r.onmousedown=function(e){k.selectCell(this.cell)}),r},k.td3=function(a,e,t,o){var i=e.addCellInRow(e.tr.length-1),s,n;for(s in a.style)i.style[s]=a.style[s];for(n in i.className=o+" pivotCell"+k.guid+a.s,i.style.padding="3px",i.innerHTML=a.text,i.colSpan=a.colSpan,i.rowSpan=a.rowSpan,t)"Right"==t[n]&&a.column==k.data.cells.length-1||(i.style["border"+t[n]]="1px solid "+k.settings.lineColor);return 0e.offsetHeight)&&(e.scrollTop=t-e.offsetHeight+100)},o},k.prototype.AddInteractionsToIndicatorElement=function(n,e){var l=this,r=n.elementAttributes,A=r.contentAttributes;if(!A)return;n.removeStandartTooltip=function(e){for(var t=0;t=A.interaction.drillDownLevelCount-1&&(i.style.cursor="default"),A.interaction&&"None"==A.interaction.onHover&&i.setAttribute("notShowTooltip","true"),(a=A.interaction)&&("ShowHyperlink"==a.onHover&&a.hyperlink||"ShowToolTip"==a.onHover&&a.toolTip)?(s="ShowHyperlink"==A.interaction.onHover?i.getHyperlinkText():i.getTooltipText(),"ShowHyperlink"==A.interaction.onHover&&(s=''+s+""),i.setAttribute("_text1",s),document._stiTooltip||l.CreateCustomTooltip(document,l.controls.mainPanel),l.AddCustomTooltip(n,document,!1,r)):l.AddBrushOver(n,document),"OpenHyperlink"==a.onClick&&a.hyperlink?(i.style.cursor="pointer",i.onclick=function(){"_self"==l.options.appearance.openLinksWindow?window.location.href=i.getHyperlinkText():l.openNewWindow(i.getHyperlinkText(),l.options.appearance.openLinksWindow,void 0,!1)}):"ShowDashboard"==a.onClick&&a.drillDownPageKey&&(i.style.cursor="pointer",i.onclick=function(){l.hideDocToolTip();var e={drillDownPageKey:a.drillDownPageKey,value:"",parameters:[]},t=a.drillDownParameters;if(t)for(var o={target:this.getAttribute("elementtarget"),value:this.getAttribute("elementvalue"),series:this.getAttribute("elementseries")},i=0;i=S.interaction.drillDownLevelCount-1&&(i.style.cursor="default"),S.interaction&&"None"==S.interaction.onHover&&i.setAttribute("notShowTooltip","true"),S.interaction&&B.frame&&("ShowHyperlink"==S.interaction.onHover&&S.interaction.hyperlink||"ShowToolTip"==S.interaction.onHover&&S.interaction.toolTip)&&(a="ShowHyperlink"==S.interaction.onHover?i.getHyperlinkText():i.getTooltipText(),"ShowHyperlink"==S.interaction.onHover&&(a=''+a+""),i.setAttribute("_text1",""),i.setAttribute("_text2",""),a&&(i.removeAttribute("notShowTooltip"),i.setAttribute("_text1",a),i.setAttribute("isCustomTooltip","true"),B.removeStandartTooltip(i),i.parentElement)&&B.removeStandartTooltip(i.parentElement),"Chart"==S.interaction.ident)&&D&&(i.getAttribute("_color")&&(s=null!=(s=i.style.fill)&&0<=s.toLowerCase().indexOf("rgb")&&3<=(n=s.replace("rgb(","").replace(")","").split(",")).length?E.FullColorHex(parseInt(n[0]),parseInt(n[1]),parseInt(n[2])):s)&&i.setAttribute("_color",s),D._stiTooltip||E.CreateCustomTooltip(D),E.AddCustomTooltip(i,D,!0,v)),i.onclick=function(){if(S.interaction&&"OpenHyperlink"==S.interaction.onClick&&S.interaction.hyperlink&&!B.isDrillSelectionActivated)"_self"==E.options.appearance.openLinksWindow?window.location.href=this.getHyperlinkText():E.openNewWindow(this.getHyperlinkText(),E.options.appearance.openLinksWindow,void 0,!1);else if(S.interaction&&"ShowDashboard"==S.interaction.onClick&&S.interaction.drillDownPageKey&&!B.isDrillSelectionActivated){var e=("StiRegionMapElement"==v.type?this.getAttribute("elementident"):this.getAttribute("elementargument"))||"",t=("sti_IsNullValue"==e&&(e=null),E.hideDocToolTip(),{drillDownPageKey:S.interaction.drillDownPageKey,value:e,parameters:[]}),o=S.interaction.drillDownParameters;if(o)for(var i=0;i'+t+""),e.setAttribute("_text1",t),document._stiTooltip||a.CreateCustomTooltip(document,a.controls.mainPanel),a.AddCustomTooltip(e,document,!1,s)),"OpenHyperlink"==l.onClick&&l.hyperlink?(e.style.cursor="pointer",e.onclick=function(){"_self"==a.options.appearance.openLinksWindow?window.location.href=l.hyperlink:a.openNewWindow(l.hyperlink,a.options.appearance.openLinksWindow,void 0,!1)}):"ShowDashboard"==l.onClick&&l.drillDownPageKey&&(e.style.cursor="pointer",e.onclick=function(){a.hideDocToolTip();var e={drillDownPageKey:l.drillDownPageKey,value:"",parameters:[]},t=l.drillDownParameters;if(t){var o={};"StiTextElement"==s.type&&null!=n.plainText&&(o.value=n.plainText);for(var i=0;i/g,"");var t=["8","10","12","14","18","24","36"],o='style="font-size:',i='size="';while(0<=e.indexOf("size=")){var a=e.indexOf("size="),s=(e=e.replace(i,o),a+=o.length,e.substring(0,a)),n=e.substring(a),l=n.substring(0,n.indexOf('"')),r=n.substring(n.indexOf('"'));e=parseInt(l)<=7&&06*C.offsetWidth||C.offsetWidth>6*C.offsetHeight)&&(C.style.width="250px"),h+C.offsetWidth>g-p&&(h=g-p-C.offsetWidth-30),(d=d+C.offsetHeight>c-A?c-A-C.offsetHeight-30:d)<0&&(d=5),C.style.left=(h=h<0?5:h)+"px",C.style.top=d+"px")},u.onmouseout=function(e){var t=e&&e.target?e.target:u,o=t.getAttribute("_color");o&&(t.style.fill=o),C.hiddenTimer=setTimeout(function(){C.isOver||(C.cx=-.2)},500)},C.onmouseover=function(){this.isOver=!0,clearTimeout(C.hiddenTimer)},C.onmouseout=function(){this.isOver=!1,u.onmouseout()},C.onclick=function(){this.onmouseout()},C.applyTooltipBrushStyle=function(e,t){if(e){var o=e.split(";");switch(o[0]){case"0":this.style[t]="transparent";break;case"1":case"2":case"4":case"5":this.style[t]=o[1];break;case"3":this.style[t]="color"!=t?"linear-gradient("+parseInt(o[3]||"0")+"deg, "+o[1]+", "+o[2]+")":o[1];break}}},C.applyTooltipStyles=function(e){var t=e.border,o,i=t.size+"px "+["solid","dashed","dashed","dotted","dotted","double","none"][t.style]+" "+t.color,a=(this.style.border="0",t.left&&(this.style.borderLeft=i),t.top&&(this.style.borderTop=i),t.right&&(this.style.borderRight=i),t.bottom&&(this.style.borderBottom=i),this.applyTooltipBrushStyle(e.brush,"background"),this.applyTooltipBrushStyle(e.textBrush,"color"),e.cornerRadius);this.style.borderRadius=a.topLeft+"px "+a.topRight+"px "+a.bottomRight+"px "+a.bottomLeft+"px"}},k.prototype.InitializeDashboardExportForm=function(){var a=this,t=this.BaseForm("dashboardExportForm",this.collections.loc["ExportFormTitle"],1,this.helpLinks["DashboardExport"]),s=(t.container.style.padding="0px",t.controls={},t.defaultExportSettings={},[["PaperSize",this.collections.loc["PaperSize"],this.DropDownList("exportPaperSize",180,null,this.GetPaperSizesItems(),!0),"6px 12px 6px 12px"],["Orientation",this.collections.loc["Orientation"],this.DropDownList("exportOrientation",180,null,this.GetOrientationItems(),!0),"6px 12px 6px 12px"],["DataType",this.collections.loc["DataType"],this.DropDownList("exportDataType",180,null,this.GetDataTypesItems(),!0),"6px 12px 6px 12px"],["ImageType",this.collections.loc["ImageFormat"],this.DropDownList("exportImageType",180,null,this.GetImageTypesItems(),!0),"6px 12px 6px 12px"],["ImageQuality",this.collections.loc["ImageQuality"],this.DropDownList("exportImageQuality",180,null,this.GetDashboardImageQualityItems()),"6px 12px 6px 12px"],["Scale",this.collections.loc["Scale"],this.DropDownList("exportScale",180,null,this.GetDashboardImageQualityItems()),"6px 12px 6px 12px"],["ExportDataOnly",null,this.CheckBox("exportDataOnly",this.collections.loc["ExportDataOnly"]),"6px 12px 6px 12px"],["EnableAnimation",null,this.CheckBox("exportEnableAnimation",this.collections.loc["EnableAnimation"]),"6px 12px 6px 12px"],["OpenAfterExport",null,this.CheckBox("exportOpenAfterExport",this.collections.loc["OpenAfterExport"]),"6px 12px 6px 12px"]]),e=this.CreateHTMLTable();e.style.margin="6px 0px 6px 0px",t.container.appendChild(e);for(var o=0;oHEBW ¢^Ph,\feC!HX4KC0f9\fgaLn,MECTX3\v30f2\ffaL`,%C`X2K#10d5\fFBaHf,\fECDX2\vI0bvHC\t \f: DY<aD`,Kaט6ʥC!0f,\vi0Da1XlVsQgnB@D*[-HHSM,i2]lW\tjt:mdFk3׍w+9HC7[˷\bXμ@3Wde7%i0bÇQʗDl2YãhӘ-rABn2[4=dd2׍ @FaÀÓ‡@YXà#3\f ¼b‡I*W€@v1@f‡ShF{]ֵ‚^P*Q^o6LMJp0׌#=dL2YNC\bÀb2ÀÓŒ@\be%Nh„3‡\f@sQRp-@΂0ª3`‹'Snf+Hb€l3Hf1L øTL`($TM »=ӥ6,7!$?HlS#Jf' ˆ8jƒh ùրi ùd‡3@ 3@@c`CP@@P$@@\fƝísLr93H \b(1… P1ƒr0šM2[NTKQJmJ@Ú\f\f6Çd1\b@°A@@ xXƇրÈ8r‡]0.y€¼:GP¡p‡O`ð}\vȾ#À$ǀ!s®hŸH‚@R@„@(mEF’`”X„\t@\tˌ‚׀܅@\fr6r8€׀ Z0\fÀʀ\tc7[N4( 2N ©6ÛmvsQdo6hf{;\bM¼Rƒ@P\f·YV)EL2@ð%‚@\tvIH5@$x@˶\tYB30ML Œg€–@Mp‚t‡L``€M``\f‡M`Š|nfF}€\b\tI@FDƒe0ŒL‚Ep¼PÁ0—‡L`8\b…\f`[\bnbX„Iy8.ӣ%׫cAax\t650N6\t Q#׍w+A\f\t@²f‚^ œZ‡A@0½t\bF}a8ʖ{9J@½X‰Rhf{IZ_€ðPmC%@$p½$€`0P€+€`\t}Bi7!?pÀ@=e0Y“,ÈCˆŠ?@ `‹T2`N2PN0]M;hel@!~p¦\tf8že@ C„l¡˜9X‡R p\b(r‚D@0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\f\tbt”0ʎF+4V„À4\fGAÅX$¦Ap„օê` a`\f\fF€n\b(MÁk`@B€\f`…ր@\b`A~A x‚L€,<\tIEcCJ<\f´8å\bCd0\b@§ƒr0Ô,ƒqpHp¾vƀ@`0`hx``,Ba{ DցtGAT0„.up\b$À 0b003dt4Xlg$‚ʅ{JHw \bED@7Xˆ±`8?0q\b 0˜€C:\b\fҎxƒs0p†@\b0±`f ü0„Dh`…`xCù<@ø%p;\t:àShƷB X\b  B3e#\f.FyVʋC`9€$f0Y‹WB˜h4#ƒi€3B>S|Zoe@ \vl+ñǁ0l× #\b\f[APˆz†@pYMF7A!Ja0'€ ($\fҁX.p(=*C`8-*€> A\vmf\vy@\b1v\vO ހ\foAA2p‰6tp0,L…U€e\f\v@x8^!wXʀAKh9!L-vsR֝ʂ .dWa6p\f<\tü@H~҇ˠӀ@Cƒq@p(f҇M\bJ\bJ@P–@ƒ —DŒA`\b… BL1P?nD0¿zCx@¤\bjAxP(.†dg0lր'@aqpN@ÂHŽc‚¨.K@ú8\fҜx€20>*†@P¾΀\t@% ¾‚CÐ(6‚- 0|0\fD` *xˆ@Á{0]€*pPC1€~\b\b\fB!0=<\t3ÕP²Põu#Uht7[Q`$pʃ`‰Xl€ <\bf'L BPž9U!Np\t`À0(€x@Âi6סs״\t¡F(˳P<$Cd@ˆÀ@BPŸ~B80\fʮv@$Zր<w€H4@‡v€̇u€pʃN 0~@ˆÊ@¬T@*`RAY@Xs`È΃Cq\fʃ֩f{QRf4Xw10¸ ,WM6IüAO$(!!XJ0-f.P <KF9`€^€^`8Þç@¤<$'!DLj †~}g@e<ðΙ.6IRpHK *((3…`XXðV0F8Àypž\fU`3h su@\tP”g„f(¤K\t¡0’@Ϡx@ôn€E­8` 3¢c֕Ƒ€}(ƀc`>tE588zÃ8(`Pxa3˶\vPtDÆ ²FŒ@¯`à{п\t@\tÐ1.!N€ ~C`^ (\th\f¯P\b û֎’`@P/@ \bl¨$¨ž)@@\b0Š=‚q \t^‡uà\b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b#ƒo`ƀöƒi(4\bzÀ%@½i`Œe€\fOBvÐʠi@ ?Lz$A0\tC`6(1b; x,=h¼Cu@ $*@6 =\t@ >b\v@ ˆH-ÐH…F`1hÂb7maH`s\f@π p\v.\f Dh0ë ¸BhS!\b?$ÁO¨^T€z8$c 'MN,\fqHV…x@‘`A½dX@ ҈1‹`%@$t0„L3O`gH6ÀOP,\tA0A_ H<ցDP§V} P2x+@é\bdÁhp^zbØt‚[@ðT\f€@L\f1q2ƍ2`zt\f9@09ƈ4\t@!h‰J¦\b=ҧ24\t8€]0 9֫McP20:ÿF`HD\fJAu֊W€~h+`@@.haàw(4(€ 0\fE\taP[PW÷+:2\fapP@Fc=B{I¯`7dDlP=„¥ (\fÎl (›!r[\t.,\f%@p\v!!p$|8!AA<„@t(\tah\f\b£\b=Ci`ŒCBʐ‡I+\b`<†n*05|„>A}p’€ ?ָ-F BPž:@BHž>`RpŠB¶p0\v8†>6p€A}@’ʐ} „“}€’@|`¦€׀žƂraJzʃ zp\tG€z`P [0,#X! l.\tfƀy9t3C@`ҁA:Ld\fE ax–IÐ<~\b\b‰€:€D`Z,‡ ‚8…‚d@¾fƇBP@‡[@XƑ]jc(<^À%8ˆ›Lqh\b!\v@p€€ Š<ʂ$@؀€2mº2Re ¨]€$0‚@D8zŒ ú$ƍɀ*\fƁA@MH0CzpX @`\bbQ›9PX-@(r…l~(4a`T4Žak(082RC@2 ,@e(3*}„H8ʀ #hpT’ALlž<@)#B`¼:QP|pd +HNÁ•N ¿ƒ p#86a0~|\b°@P4\f@y`3X'@ hd5)@@P›e5<1 eD\bt€ (d„‚8Ÿ`¡AJ\b4`ƒ{@ÀX¡!gh\vH'(~\fG!NJ\b`ãք#ÁvH\v€lP|O504~)€x\b‚x›6`8DtM !\t(`Ò wD?t pge}p\b™qCk04rAY P,P Py’DÖ p„„x˴B H´†K€\fR–8(^@†rCK(a 5F‚hpנ{ơsz,\f{A@ΐ€a€\t}\fʱ€,(™GC'P¼t@$p !0* {\t\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8‚]A8|86BB ?Rd¶T@]p(?0(>\fA%€JÓ@$HFÁ\f`Ƙ^Ã`@6X΀%0F \v@1֞24€gxƃR¬HNC¼M?<2@i (G΀$p—h1( Y8\t>b·A$G!\v]H\b*@Etp>ƒfpŒ7Ap@ A;\bʏú! ã\t'r8@\t\b@\f֜҆a~d @+\f=ƒ,(>Y5ÆlXξf*@PLF0€ΐf1 y$ E-`1[b!v@\t L79lHaS#PWƒ}`(f0¾Ã· 1@€0 0 €ü,€ gd\b\f,uJMtdÁQMHHK`/x\f5@P f‚€,b@VYʰÀ„@@hŸƇ@§™rB0“K @+ǠÙl\b2Tdˆ'΅b\f1@ùD`ä\b/@Áx\bï_@w!x5LnF ;(¦°60`PR€`vtƏ%H\bf@@.x\f 4~R+PŒEB,8f1$!F a@;a(-\b›bPE\b;„\t]#P \t(¼\b4A€%\btgΰCG0ơo3[g0…Up½.Ck`\b0’P¼y‚f`\b#4‡_@0\b6`4 –4ƒ%ASp%}8(!`†Yp ³¡t(…\vA eÜ\bh¦q­LA}P\b\f°bXƀI‹h|6*èzaHV„?ð~, ƈk€h\fƒ Θ€ 0| ‰`üªàPD@‚ûp©׫`\fV‚? y\fƂð!\fŒ\fÁ{¬ \fl`Pt,T8Rp`~`2B0äœA` ‡x҇ҼDZ$L7YmquÁxL@`Ϙƒʁ}¸2Á@ux‰>ÃkpÀ\b+‚}\bǢ€`;\f€K@ux “@uX„\f_B@uXžQ A`5 + ˜Tk‘vÓpœ,\fu *$I\t(#V\thÑQdX}4h4g1 .W##8\f DpzHúQ0y0| PΆ= 44~À'`|A€b\tA¡t€?F 8(7¡Ƃk †p‹ÀP3l$-2Ҡa€\tL@Q0²Ϡ—ҏ]À {8?`z\bl. º8S) 4x l@7€6.V.€$t\bH@©ˆ=D3;pd6P@~$„S PŒ< N4\t|@c˜'δ׀@1DHÃ(™_€Pp–v¼`ÕE phAtp\ff¡@È\bÀp ?|†¿tÍ`0t‡}@€?E00·|rHZ' $ֈE— Lb@!¼O)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ã|va}ҀҀ2AH\v9P?қg`ÄÀO$5€xž\fà69L¡Dˆ>ZŒCg ”)€MP )€Nqx?\vÑq8>$ÀJ0ΨÎ `{H$.oi’Azξ_/P€€"),this&&this.__asyncValues||function(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=a[Symbol.asyncIterator],t;return e?e.call(a):(a="function"==typeof __values?__values(a):a[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=a[i]&&function(o){return new Promise(function(e,t){s(e,t,(o=a[i](o)).done,o.value)})}}function s(t,e,o,i){Promise.resolve(i).then(function(e){t({value:e,done:o})},e)}}),Be,ye,Ee,ve,Se,De,ke,Re,b,Te,Ie,Pe,xe,Ue;B.tsfa=function(e,t,o,i){var a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i,n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;0<=l;l--)(n=e[l])&&(s=(a<3?n(s):3{let o=new ot(We.UTF8),t=new it,i=(t.x=this.getSvgImageValue(s,"x"),t.y=this.getSvgImageValue(s,"y"),t.width=this.getSvgImageValue(s,"width"),t.height=this.getSvgImageValue(s,"height"),t.component=e.as($e),{ref:0}),a={ref:0};if(l&&(t.x=l.x,t.y=l.y,t.width=l.width,t.height=l.height),e.is(je)){let e=B.Report.Dashboards.StiDashboardHelperCreator.createProgressVisualSvgHelper();null!=e&&await e.writeProgress(o,t,r,i)}else if(e.is(Xe)){let e=B.Report.Dashboards.StiDashboardHelperCreator.createIndicatorVisualSvgHelper();null!=e&&await e.writeIndicator(o,t,r,i)}else if(e.is(Ge)){r&&(r.needToHorScroll=!0);let e=B.Report.Dashboards.StiDashboardHelperCreator.createCardsVisualSvgHelper();null!=e&&await e.writeCards(o,t,r,i,a)}else if(e.is(Ye)){let e=B.Report.Dashboards.StiDashboardHelperCreator.createGaugeVisualSvgHelper();null!=e&&await e.writeGauge(o,t,n,r,i)}if(o.flush(),r&&(r.needToVertScroll||r.needToHorScroll)){let e=o.textWriter.getStringBuilder().toString();A.callTry(``)}else if(0<=s.indexOf("`)}else if(e.is(Ye)&&0<=s.indexOf("`)}else A.callTry(s)},0),A}static saveElementToStringAsync(l,r=1,A=1,p=!1,t=D.ImageSvg,c=null,g){let h=new Oe,e=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[t]),d=(S.setPropertyValue(e,"renderBorders",!1),S.setPropertyValue(e,"renderSinglePage",!0),S.setPropertyValue(e,"renderEmptyContent",!p||l.is(Le)),t==D.ImageSvg&&S.setPropertyValue(e,"designMode",p),new tt),o=(d.isDocument=!0,d.reportUnit=et.HundredthsOfInch,null!=l.report&&(d.culture=l.report.getParsedCulture(),d.dictionary.resources.addRange(l.report.dictionary.resources),d.dictionary.variables.addRange(l.report.dictionary.variables),d.key=l.report.key),l),i=l.margin,a=d.renderedPages.getByIndex(0),u=(a.margins=_e.create(0),a.width=Math.max(Math.round(o.width*r)-i.left-i.right,0),a.height=Math.max(Math.round(o.height*A)-i.top-i.bottom,0),v.getBackColor(l,null,!0)),m=255!=u.a,s=(a.brush=new qe(m?w.transparent:u),null),n=null,b=(!p&&l.is(y)&&null!=c&&null==(n=l.previousAnimations)&&(n=new R),{ref:new Ne});return S.invokeStaticMethod("Stimulsoft.Dashboard.Export","StiDashboardExportTools","renderElementAsync",[a,l,r,A,e,s,b,n]).then(e=>{var i,a,s;e.left=0,e.top=0;for(let t of d.renderedPages.list)t.getComponentsList().forEach(e=>e.page=t),t.moveComponentsToPage(),m&&this.applyTransparencyToComponents(t,u),p||l.is(y);let n=this.setCulture(d);if(t==D.Html){let e=new Ze,t=(e.chartType=p||"Vector"==(null==c?void 0:c.chartRenderType)?ze.Vector:ze.AnimatedVector,e.exportMode=E.Div,null==(i=d.getComponentByName(l.name+`_Title`))?void 0:i.as(Je));if(null!=t){t.left=0,t.top=0;let e=null==(a=l.as(Fe))?void 0:a.cornerRadius;null!=e&&(0Trial<","><"):"")}else{let e=new Ke,t=d.exportDocument(D.ImageSvg,null,e),o=function(e){let t=e.indexOf("{this.restoreCulture(n),d.key=nt.generateKey(),d.dispose(),h.callTry(o(e))}):(this.restoreCulture(n),d.key=nt.generateKey(),d.dispose(),h.callTry(p?o(t):"")):(this.restoreCulture(n),d.key=nt.generateKey(),d.dispose(),h.callTry(o(t)))}},this),h}static saveElementToBase64Async(e,t=1,o=1,i=!1,a=D.ImageSvg,s=null){let n=new Oe;return this.saveElementToStringAsync(e,t,o,i,a,s).try(e=>n.callTry(C.toBase64String(e))),n}static applyTransparencyToComponents(e,i){255!=i.a&&(e.brush=new at,e.components.toList().forEach(e=>{let t=e.as(Me),o=e.as(Qe);null!=t&&st.toColor(t.brush).equals(i)?t.brush=new qe(w.fromArgb3(0,st.toColor(t.brush))):null!=o&&st.toColor(o.brush).equals(i)&&(o.brush=new qe(w.fromArgb3(0,st.toColor(o.brush))))}))}static setCulture(e){return S.invokeStaticMethod("Stimulsoft.Dashboard","Helpers.StiCultureHelper","set",[e])}static restoreCulture(e){S.invokeStaticMethod("Stimulsoft.Dashboard.Helpers","StiCultureHelper","restore",[e])}},B.Report.Dashboard.IStiShapeElement),rt=B.Report.Dashboard.IStiWebContentElement,At=B.Report.Dashboard.StiNumberCondition,pt=B.Report.Dashboard.StiNumberSelectionMode,ct=B.Report.Dashboard.IStiPanelElement,gt=B.Report.Helpers.StiAppExpressionParser,ht=B.Base.StiAppExpressionHelper,dt=B.Report.Dashboard.StiListBoxSelectionType,ut=B.Report.Dashboard.StiInteractionViewsState,mt=B.Report.Dashboard.IStiChartDashboardInteraction,bt=B.Report.Styles.StiChartStyle,ft=B.Base.Drawing.StiGlassBrush,wt=B.Base.Drawing.StiGlareBrush,Ct=B.Base.Drawing.StiGradientBrush,Bt=B.Base.Drawing.StiHatchBrush,yt=B.Base.Drawing.StiDefaultBrush,Et=B.Base.Drawing.StiStyleBrush,vt=B.Report.Components.IStiTextBrush,St=B.Base.Drawing.StiButtonShapeType,Dt=B.Report.Components.IStiWordWrap,kt=B.Report.Components.IStiVertAlignment,Rt=B.Report.Components.IStiTextHorAlignment,Tt=B.Base.Drawing.StiVertAlignment,It=B.Base.Drawing.StiTextHorAlignment,Pt=B.Report.Dashboard.StiIconAlignment,xt=B.Report.Dashboard.StiButtonType,Ut=B.Report.Dashboard.IStiButtonElement,Ft=B.Report.StiFontIconsHelper,Qt=B.Report.Helpers.StiFontIcons,Mt=B.System.Drawing.ContentAlignment,Jt=B.Base.Drawing.StiImageConverter,Gt=B.Report.Components.StiImageHelper,Ht=B.Report.Dashboard.IStiDashboardWatermark,Vt=B.Report.Components.IStiSimpleShadow,Ot=B.Report.Dashboard.IStiAllowUserColumnSelectionDashboardInteraction,Nt=B.Report.Dashboard.IStiUserViewStates,Lt=B.Data.Helpers.StiExpressionHelper,T=B.System.StiString,Xt=B.System.Collections.Hashtable,jt=B.Report.Dashboard.StiReportParser,Yt=B.Report.Dashboard.IStiAllowUserDrillDownDashboardInteraction,Kt=B.Report.Dashboard.IStiAllowUserFilteringDashboardInteraction,Wt=B.Report.Dashboard.IStiAllowUserSortingDashboardInteraction,zt=B.Report.Dashboard.IStiInteractionLayout,Zt=B.Report.Components.TextFormats.StiDateFormatService,qt=B.System.DateTime,_t=B.Report.Dashboard.IStiImageElement,$t=B.Data.Engine.IStiDrillDownElement,eo=B.Report.Dashboard.StiElementStyleIdent,to=B.Report.Dashboard.IStiTableDashboardInteraction,oo=B.Report.Dashboard.StiInteractionOnHover,io=B.Report.Dashboard.StiInteractionOnClick,ao=B.Report.Dashboard.StiInteractionOpenHyperlinkDestination,so=B.Report.Dashboard.StiInteractionIdent,no=B.Report.Dashboard.IStiElementInteraction,lo=B.Report.Dashboard.IStiDashboard,ro=B.Base.Drawing.StiColor,Ao=B.Report.Dashboard.StiInitialDateRangeSelection,po=B.Report.Dashboard.StiInitialDateRangeSelectionSource,p=B.Base.Drawing.StiHorAlignment,co=f.c.StiDashboardsSvgHelper,go=B.Report.Components.IStiForeColor,ho=B.Report.Dashboard.IStiControlElement,uo=B.Report.Dashboard.IStiTitleElement,I=B.System.Enum,mo=B.Report.Dashboard.IStiListBoxElement,bo=B.Report.Dashboard.IStiComboBoxElement,fo=B.Report.Dashboard.IStiDatePickerElement,wo=B.Report.Dashboard.IStiOnlineMapElement,Co=B.Report.Dashboard.IStiTreeViewElement,Bo=B.Report.Dashboard.IStiTreeViewBoxElement,yo=B.Report.Dashboard.IStiTableElement,Eo=B.Report.Dashboard.IStiRegionMapElement,vo=B.Report.Dashboard.IStiPivotTableElement,So=B.Report.Dashboard.IStiPanel,Do=B.System.Drawing.Font,ko=B.Report.Components.IStiFont,Ro=B.Report.Components.IStiSimpleBorder,To=B.Report.Dashboard.StiItemSelectionMode,Io=B.Report.Dashboard.StiDateSelectionMode,Po=B.Report.Dashboard.StiDateCondition,xo=B.Report.Dashboard.StiItemOrientation,Uo=B.Report.Components.IStiHorAlignment,Fo=B.Report.Dashboard.IStiNumberBoxElement,Qo=B.Report.Dashboard.StiTextSizeMode;{class x{static async getElementContentAttributesAsync(s,o,n,l){return new Promise(async i=>{var t;let a={};if(s.is(mo)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiListBoxElementViewHelper.getColumnPath(e),a["isStringColumnType"]=f.c.StiDataFiltersHelper.isStringColumnType(e),a["showAllValue"]=e.showAllValue,a["selectionMode"]=I.getName(To,e.selectionMode),a["orientation"]=I.getName(xo,e.orientation),a["selectionType"]=I.getName(dt,e.selectionType),a["settings"]=f.c.StiListBoxElementViewHelper.getSettings(e),a["title"]=await this.getTitle(e),a["items"]=await f.c.StiListBoxElementViewHelper.getElementItems(e),a["interaction"]=await this.getDashboardInteractionAsync(s),i(a)}else if(s.is(bo)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiComboBoxElementViewHelper.getColumnPath(e),a["isStringColumnType"]=f.c.StiDataFiltersHelper.isStringColumnType(e),a["showAllValue"]=e.showAllValue,a["selectionMode"]=I.getName(To,e.selectionMode),a["settings"]=f.c.StiComboBoxElementViewHelper.getSettings(e),a["items"]=await f.c.StiComboBoxElementViewHelper.getElementItems(e),a["interaction"]=await this.getDashboardInteractionAsync(s),i(a)}else if(s.is(fo)){let e=s,t=(a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiDatePickerElementViewHelper.getColumnPath(e),a["selectionMode"]=I.getName(Io,e.selectionMode),a["initialRangeSelection"]=I.getName(Ao,e.initialRangeSelection),a["initialRangeSelectionSource"]=I.getName(po,e.initialRangeSelectionSource),a["condition"]=I.getName(Po,e.condition),a["settings"]=f.c.StiDatePickerElementViewHelper.getSettings(e),f.c.StiDatePickerElementViewHelper.isVariablePresent(e)),o=f.c.StiDatePickerElementViewHelper.isRangeVariablePresent(e);a["isVariablePresent"]=t,a["isRangeVariablePresent"]=o,e.initialRangeSelectionSource==po.Variable?o?a["variableRangeValues"]=await f.c.StiDatePickerElementViewHelper.getVariableRangeValues(e):t&&(a["variableValue"]=await f.c.StiDatePickerElementViewHelper.getVariableValue(e)):e.selectionMode==Io.AutoRange&&(a["autoRangeValues"]=await f.c.StiDatePickerElementViewHelper.getAutoRangeValues(e)),i(a)}else if(s.is(Fo)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiNumberBoxElementViewHelper.getColumnPath(e),a["selectionMode"]=I.getName(pt,e.selectionMode),a["condition"]=I.getName(At,e.condition),a["minMaxRange"]=await f.c.StiNumberBoxElementViewHelper.getJSMinMaxRange(e),a["initialValue"]=await f.c.StiNumberBoxElementViewHelper.getJSInitialValue(e),a["decimalDigits"]=e.decimalDigits.toString(),a["settings"]=f.c.StiNumberBoxElementViewHelper.getSettings(e),a["horAlignment"]=I.getName(p,e.as(Uo).horAlignment),i(a)}else if(s.is(Co)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiTreeViewElementViewHelper.getColumnPath(e),a["isStringColumnType"]=f.c.StiDataFiltersHelper.isStringColumnType(e),a["meterKey"]=f.c.StiTreeViewElementViewHelper.getMeterKey(e),a["showAllValue"]=e.showAllValue,a["selectionMode"]=I.getName(To,e.selectionMode),a["settings"]=f.c.StiTreeViewElementViewHelper.getSettings(e),a["title"]=await this.getTitle(e),a["items"]=await f.c.StiTreeViewElementViewHelper.getElementItems(e),i(a)}else if(s.is(Bo)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["columnPath"]=f.c.StiTreeViewBoxElementViewHelper.getColumnPath(e),a["isStringColumnType"]=f.c.StiDataFiltersHelper.isStringColumnType(e),a["meterKey"]=f.c.StiTreeViewBoxElementViewHelper.getMeterKey(e),a["showAllValue"]=e.showAllValue,a["selectionMode"]=I.getName(To,e.selectionMode),a["settings"]=f.c.StiTreeViewBoxElementViewHelper.getSettings(e),a["title"]=await this.getTitle(e),a["items"]=await f.c.StiTreeViewBoxElementViewHelper.getElementItems(e),i(a)}else if(s.is(yo)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["sorts"]=f.c.StiDataSortsHelper.getElementSorts(e),a["settings"]=f.c.StiTableElementViewHelper.getTableSettings(e),a["title"]=await this.getTitle(e),a["interaction"]=await this.getDashboardInteractionAsync(s),a["filtersString"]=f.c.StiDataFiltersHelper.getDataTableFilterQueryStringRepresentation(e),a["data"]=await f.c.StiTableElementViewHelper.getTableData(e),a["hiddenData"]=await f.c.StiTableElementViewHelper.getTableHiddenData(e),i(a)}else if(s.is(y)){let e=s;a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["interaction"]=await this.getDashboardInteractionAsync(s),a["filtersString"]=f.c.StiDataFiltersHelper.getDataTableFilterQueryStringRepresentation(e),a["title"]=await this.getTitle(e),a["sortItems"]=f.c.StiDataSortsHelper.getSortMenuItems(e),a["userViewStates"]=f.c.StiChartElementViewHelper.getUserViewStates(e),a["selectedViewStateKey"]=null==(t=e.as(Nt))?void 0:t.selectedViewStateKey,a["dataMode"]=I.getName(He,e.dataMode),f.c.StiChartElementViewHelper.isBubble(e)?(a["isBubble"]=!0,a["bubleYColumnPath"]=f.c.StiChartElementViewHelper.getBubleYColumnPath(e),a["bubleXColumnPath"]=f.c.StiChartElementViewHelper.getBubleXColumnPath(e)):(a["argumentColumnPath"]=f.c.StiChartElementViewHelper.getArgumentColumnPath(e),a["seriesColumnPath"]=f.c.StiChartElementViewHelper.getSeriesColumnPath(e)),co.saveElementToStringAsync(s,o,n,!1,D.Html,l).try(e=>{a["htmlContent"]=e,i(a)})}else if(s.is(Eo)){let e=s;a["columnPath"]=f.c.StiRegionMapElementViewHelper.getColumnPath(s),a["filters"]=f.c.StiDataFiltersHelper.getElementFilters(e),a["interaction"]=await this.getDashboardInteractionAsync(s),a["filtersString"]=f.c.StiDataFiltersHelper.getDataTableFilterQueryStringRepresentation(e),a["title"]=await this.getTitle(e),a["isDark"]=v.isDarkStyle3(e),a["showZoomPanel"]=J.Viewer.Map.showZoomPanel,co.saveElementToStringAsync(e,o,n,!1,D.Html,l).try(e=>{a["htmlContent"]=e,i(a)})}else if(s.is(vo)){let e=s;a["settings"]=f.c.StiPivotTableElementViewHelper.getPivotTableSettings(e),a["title"]=await this.getTitle(e),a["data"]=await f.c.StiPivotTableElementViewHelper.getPivotTableData(e),i(a)}else if(s.is(wo)){let e=await this.getBingMapScript(s,!0);a["htmlContent"]=C.toBase64String(We.UTF8.getBytes(e)),a["title"]=await this.getTitle(s),i(a)}else if(s.is(So))a["dashboardWatermark"]=this.getDashboardWatermark(s),i(a);else if(s.is(_t)){let e=s;(a=await f.c.StiImageElementViewHelper.getImageSvgContent(e,o,n,l))["interaction"]=await this.getDashboardInteractionAsync(s),a["aspectRatio"]=e.aspectRatio,a["horAlignment"]=I.getName(p,e.as(Uo).horAlignment),a["vertAlignment"]=I.getName(Tt,e.as(kt).vertAlignment),i(a)}else if(s.is(Xe)){let t={needToVertScroll:!0,needToHorScroll:!1};co.saveElementToStringAsync(s,o,n,!1,D.ImageSvg,l,t).try(async e=>{a["svgContent"]=e,a["interaction"]=await this.getDashboardInteractionAsync(s),a["sortItems"]=f.c.StiDataSortsHelper.getSortMenuItems(s),t.needToVertScroll&&(a["title"]=await this.getTitle(s),a["svgContentIsVertScrollable"]=!0),i(a)})}else if(s.is(Ye)){let t={needToVertScroll:!0,needToHorScroll:!1};co.saveElementToStringAsync(s,o,n,!1,D.ImageSvg,l,t).try(async e=>{a["svgContent"]=e,a["sortItems"]=f.c.StiDataSortsHelper.getSortMenuItems(s),t.needToVertScroll&&(a["title"]=await this.getTitle(s),a["svgContentIsVertScrollable"]=!0),i(a)})}else if(s.is(Ut)){let e=s.as(Ut);a["buttonText"]=T.isNullOrEmpty(e.text)?"":C.toBase64String(We.UTF8.getBytes(e.text)),a["buttonType"]=I.getName(xt,e.type),a["iconAlignment"]=I.getName(Pt,e.iconAlignment),a["horAlignment"]=I.getName(It,e.as(Rt).horAlignment),a["vertAlignment"]=I.getName(Tt,e.as(kt).vertAlignment),a["wordWrap"]=e.as(Dt).wordWrap,a["buttonShapeType"]=I.getName(St,e.shapeType),a["brush"]=this.getBrushStr(e.as(Qe).brush),a["textBrush"]=this.getBrushStr(e.as(vt).textBrush),a["iconBrush"]=this.getBrushStr(e.as(Ut).iconBrush),a["font"]=this.getFontJson(e.font),a["buttonIconSet"]=this.getButtonIconSetProperty(e.getIconSet()),a["buttonVisualStates"]=this.getButtonVisualStatesProperty(e.getVisualStates()),a["styleColors"]=this.getButtonStyleColors(e),a["checked"]=e.checked,i(a)}else if(s.is(rt)){let e=s.as(rt);a["url"]=T.isNullOrEmpty(e.url)?"":C.toBase64String(We.UTF8.getBytes(e.url)),a["embedCode"]=T.isNullOrEmpty(e.embedCode)?"":C.toBase64String(We.UTF8.getBytes(e.embedCode)),i(a)}else{let t={needToVertScroll:!0,needToHorScroll:s.is(Ge)};co.saveElementToStringAsync(s,o,n,!1,D.ImageSvg,l,t).try(async e=>{(s.is(Le)||s.is(Ge)||s.is(lt))&&(a["interaction"]=await this.getDashboardInteractionAsync(s)),s.is(Le)&&(a["plainText"]=s.as(Le).getSimpleText(),a["isTimeExpression"]=Lt.isTimeExpression(s.text)),a["svgContent"]=e,(s.is(je)||s.is(Xe)||s.is(Ge))&&(s.is(Ge)||(a["sortItems"]=f.c.StiDataSortsHelper.getSortMenuItems(s)),t.needToVertScroll||t.needToHorScroll)&&(a["title"]=await this.getTitle(s),t.needToVertScroll&&(a["svgContentIsVertScrollable"]=!0),t.needToHorScroll)&&(a["svgContentIsHorScrollable"]=!0),i(a)})}})}static getForeColor(e){return f.a.StiReportHelper.getHtmlColor(v.getForeColor(e))}static getBackColor(e){return f.a.StiReportHelper.getHtmlColor(v.getBackColor(e,null,!0))}static getBorder(e){return e.is(Ro)?this.getBorderJson(e.border2):null}static getBorderJson(e){if(null==e)return null;let t={};return t["left"]=e.isLeftBorderSidePresent,t["top"]=e.isTopBorderSidePresent,t["right"]=e.isRightBorderSidePresent,t["bottom"]=e.isBottomBorderSidePresent,t["size"]=e.size,t["color"]=f.a.StiReportHelper.getHtmlColor(e.color),t["style"]=e.style,t}static getFont(e){return e.is(ko)?this.getFontJson(e.font):this.getFontJson(new Do("Arial",10))}static getFontJson(e){if(null==e)return null;let t={};return t["name"]=e.name,t["size"]=e.size.toString(),t["bold"]=e.bold,t["italic"]=e.italic,t["underline"]=e.underline,t["strikeout"]=e.strikeout,t}static async getTitle(i){let a=i.as(uo);if(null!=a&&null!=a.title){let e=a.title,t={},o=e.backColor.equals(w.transparent)?v.getBackColor(i,null,!0):e.backColor;return t["backColor"]=o.equals(v.getBackColor(i,null,!0))?"transparent":f.a.StiReportHelper.getHtmlColor(o),t["foreColor"]=f.a.StiReportHelper.getHtmlColor(e.foreColor.equals(w.transparent)?v.getTitleForeColor(i):e.foreColor),t["text"]=null!=e.text?C.toBase64String(We.UTF8.getBytes(await jt.parseAsync(e.text,i))):"",t["font"]=this.getFontJson(e.font),t["horAlignment"]=I.getName(p,e.horAlignment),t["visible"]=e.visible,t["sizeMode"]=I.getName(Qo,e.sizeMode),t}return null}static getBrushStr(t){let e="none";if(t.is(Et))return"isStyleBrush";if(t.is(yt))return"isDefaultBrush";if(t.is(at))return"0";if(t.is(qe)){let e=t.as(qe);return T.format("1;{0}",f.a.StiReportHelper.getHtmlColor(e.color))}if(t.is(Bt)){let e=t.as(Bt);return T.format("2;{0};{1};{2}",f.a.StiReportHelper.getHtmlColor(e.foreColor),f.a.StiReportHelper.getHtmlColor(e.backColor),e.style.toString())}if(t.is(Ct)){let e=t.as(Ct);return T.format("3;{0};{1};{2}",f.a.StiReportHelper.getHtmlColor(e.startColor),f.a.StiReportHelper.getHtmlColor(e.endColor),e.angle.toString())}if(t.is(wt)){let e=t.as(wt);return T.format("4;{0};{1};{2};{3};{4}",f.a.StiReportHelper.getHtmlColor(e.startColor),f.a.StiReportHelper.getHtmlColor(e.endColor),e.angle.toString(),e.focus.toString(),e.scale.toString())}if(t.is(ft)){let e=t.as(ft);return T.format("5;{0};{1};{2}",f.a.StiReportHelper.getHtmlColor(e.color),e.blend.toString(),e.drawHatch?"1":"0")}return e}static getStyleName(e){let t=e.as($e);return ht.isExpressionSpecified(t,"style")?gt.parseStringExpression(t,"style",!0):t.componentStyle}static applyComponentStyleToElement(o){if(o.is(Le)||o.is(_t)||o.is(ct)){let t=this.getStyleName(o);if(!T.isNullOrEmpty(t)&&null!=o.as($e).report){let e=o.as($e).report.styles.getByName(t);null!=e&&e.setStyleToComponent(o.as($e))}}}static getButtonIconSetProperty(e){if(null!=e)return{icon:null!=e.icon?Ft.getContent(e.icon):"",checkedIcon:null!=e.checkedIcon?Ft.getContent(e.checkedIcon):"",uncheckedIcon:null!=e.uncheckedIcon?Ft.getContent(e.uncheckedIcon):""};return null}static getButtonVisualStatesProperty(e){if(null!=e){let o={},i={hover:e.getHoverState(),pressed:e.getPressedState(),check:e.getCheckedState()};for(let t in i){let e=i[t];o[t]={border:this.getBorderJson(e.border),brush:this.getBrushStr(e.brush),font:this.getFontJson(e.font),iconBrush:this.getBrushStr(e.iconBrush),textBrush:this.getBrushStr(e.textBrush),iconSet:this.getButtonIconSetProperty(e.getIconSet())}}return o}return null}static getButtonStyleColors(e){let t=new Xt,o=v.getControlStyle(e);return null!=o&&(t["backColor"]=f.a.StiReportHelper.getHtmlColor(o.backColor),t["hoverBackColor"]=f.a.StiReportHelper.getHtmlColor(o.hotBackColor),t["selectedBackColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedBackColor),t["iconColor"]=f.a.StiReportHelper.getHtmlColor(o.glyphColor),t["hoverIconColor"]=f.a.StiReportHelper.getHtmlColor(o.hotGlyphColor),t["selectedIconColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedGlyphColor),t["textColor"]=f.a.StiReportHelper.getHtmlColor(o.foreColor),t["hoverTextColor"]=f.a.StiReportHelper.getHtmlColor(o.hotForeColor),t["selectedTextColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedForeColor)),t}static getControlElementSettings(e){let t={},o=(t["backColor"]=this.getBackColor(e),t["foreColor"]=this.getForeColor(e),t["isDarkStyle"]=v.isDarkStyle3(e),v.getBackColor(e,null,!0)),i=(255!=o.a&&(t["backColor"]="transparent"),!(e.is(go)&&null!=e.foreColor&&!e.foreColor.equals(w.transparent))),a=e.as(ho);if(null!=a){let e=v.getControlStyle(a);null!=e&&(t["glyphColor"]=f.a.StiReportHelper.getHtmlColor(e.glyphColor),t["hotBackColor"]=f.a.StiReportHelper.getHtmlColor(e.hotBackColor),t["hotForeColor"]=i?f.a.StiReportHelper.getHtmlColor(e.hotForeColor):t["foreColor"],t["hotGlyphColor"]=f.a.StiReportHelper.getHtmlColor(e.hotGlyphColor),t["hotSelectedBackColor"]=f.a.StiReportHelper.getHtmlColor(e.hotSelectedBackColor),t["hotSelectedForeColor"]=i?f.a.StiReportHelper.getHtmlColor(e.hotSelectedForeColor):t["foreColor"],t["hotSelectedGlyphColor"]=f.a.StiReportHelper.getHtmlColor(e.hotSelectedGlyphColor),t["selectedBackColor"]=f.a.StiReportHelper.getHtmlColor(e.selectedBackColor),t["selectedForeColor"]=i?f.a.StiReportHelper.getHtmlColor(e.selectedForeColor):t["foreColor"],t["selectedGlyphColor"]=f.a.StiReportHelper.getHtmlColor(e.selectedGlyphColor),t["separatorColor"]=f.a.StiReportHelper.getHtmlColor(e.separatorColor))}return t}static getLayout(e){var t;let o={},i=e.as(no),a=null!=i?null==(t=i.dashboardInteraction)?void 0:t[B.System.StiObject.stimulsoft]().as(zt):null;return null!=a&&(o["fullScreenButton"]=a.showFullScreenButton,o["saveButton"]=a.showSaveButton,o["viewDataButton"]=a.showViewDataButton),o}static fixColor(e){return e.a<255?w.fromArgb(255,e.r,e.g,e.b):e}static getActionColors(e){let t={},o=v.getControlStyle(e),i=v.isDarkStyle3(e);return t["foreColor"]=f.a.StiReportHelper.getHtmlColor(v.getForeColor(e,o.foreColor)),e.is(lo)?t["backColor"]=f.a.StiReportHelper.getHtmlColor(this.fixColor(v.getDashboardBackColor(e,!0))):t["backColor"]=f.a.StiReportHelper.getHtmlColor(this.fixColor(v.getBackColor(e,o.backColor))),t["glyphColor"]=f.a.StiReportHelper.getHtmlColor(o.glyphColor),t["selectedForeColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedForeColor),t["selectedBackColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedBackColor),t["selectedGlyphColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedGlyphColor),t["hotForeColor"]=f.a.StiReportHelper.getHtmlColor(o.hotForeColor),t["hotBackColor"]=f.a.StiReportHelper.getHtmlColor(o.hotBackColor),t["hotGlyphColor"]=f.a.StiReportHelper.getHtmlColor(o.hotGlyphColor),t["hotSelectedForeColor"]=f.a.StiReportHelper.getHtmlColor(o.hotSelectedForeColor),t["hotSelectedBackColor"]=f.a.StiReportHelper.getHtmlColor(o.hotSelectedBackColor),t["hotSelectedGlyphColor"]=f.a.StiReportHelper.getHtmlColor(o.hotSelectedGlyphColor),e.is(lo)&&i&&(t["selectedBackColor"]=f.a.StiReportHelper.getHtmlColor(ro.get("414141")),t["hotBackColor"]=f.a.StiReportHelper.getHtmlColor(ro.get("1f1f1f")),t["hotSelectedBackColor"]=f.a.StiReportHelper.getHtmlColor(ro.get("494949"))),t["separatorColor"]=o.separatorColor,t["isDarkStyle"]=i,t["styleName"]=I.getName(eo,v.getStyle(e)),t}static async getBingMapScript(e,t){return S.invokeStaticMethod("Stimulsoft.Dashboard","Helpers.StiOnlineMapHelper","getBingMapScript",[e,t])}static async getDashboardInteractionAsync(o){let i={},a=o.is(no)?o.dashboardInteraction:null;if(null!=a){i["ident"]=I.getName(so,a.ident),i["onHover"]=I.getName(oo,a.onHover),i["onClick"]=I.getName(io,a.onClick),i["hyperlinkDestination"]=I.getName(ao,a.hyperlinkDestination),i["toolTip"]=a.toolTip,i["toolTipStyles"]=this.getToolTipStyles(o),i["hyperlink"]=await this.getHyperlinkTextAsync(a.hyperlink,o),i["drillDownPageKey"]=a.drillDownPageKey;let e=a.getDrillDownParameters(),t=(null!=e&&(i["drillDownParameters"]=[],e.forEach(e=>{let t={};t["name"]=e.name,t["expression"]=e.expression,i["drillDownParameters"].push(t)})),a.is(Ot)&&(i["allowUserColumnSelection"]=a.allowUserColumnSelection),a.is(Wt)&&(i["allowUserSorting"]=a.allowUserSorting),a.is(Kt)&&(i["allowUserFiltering"]=a.allowUserFiltering),a.is(Yt)&&(i["allowUserDrillDown"]=a.allowUserDrillDown),a.is(zt)&&(i["showFullScreenButton"]=a.showFullScreenButton,i["showSaveButton"]=a.showSaveButton,i["showViewDataButton"]=a.showViewDataButton),a.is(to)&&(i["drillDownFiltered"]=a.drillDownFiltered,i["fullRowSelect"]=a.fullRowSelect),a.is(mt)&&(i["viewsState"]=I.getName(ut,a.viewsState)),o.as($t));null!=t&&(i["drillDownCurrentLevel"]=t.drillDownCurrentLevel,i["drillDownLevelCount"]=t.drillDownLevelCount,i["drillDownFilters"]=f.c.StiDataFiltersHelper.getDrillDownFilters(t),i["drillDownFiltersList"]=f.c.StiDataFiltersHelper.getDrillDownFiltersList(t))}return i}static getToolTipStyles(o){var i,a;if(o.is(Xe)){let e=v.getIndicatorStyle(o);return{border:this.getBorderJson(e.toolTipBorder),brush:this.getBrushStr(e.toolTipBrush),textBrush:this.getBrushStr(e.toolTipTextBrush),cornerRadius:this.getCornerRadius(e.toolTipCornerRadius)}}if(o.is(y)){let e=o,t=v.getStyle(e);if(t==eo.Custom){let e=null==(i=o.report.styles.toList().firstOrDefault(e=>e.is(bt)&&e.name.toLowerCase()==o.customStyleName.toLowerCase()))?void 0:i.as(bt);if(null!=e)return{border:this.getBorderJson(e.toolTipBorder),brush:this.getBrushStr(e.toolTipBrush),textBrush:this.getBrushStr(e.toolTipTextBrush),cornerRadius:this.getCornerRadius(e.toolTipCornerRadius)}}else{let e=null==(a=v.getChartStyle(o))?void 0:a.core;if(null!=e)return{border:this.getBorderJson(e.toolTipBorder),brush:this.getBrushStr(e.toolTipBrush),textBrush:this.getBrushStr(e.toolTipTextBrush),cornerRadius:this.getCornerRadius(e.toolTipCornerRadius)}}}else if(o.is(Eo)){let e=v.getMapStyle(o);return{border:this.getBorderJson(e.toolTipBorder),brush:this.getBrushStr(e.toolTipBrush),textBrush:this.getBrushStr(e.toolTipTextBrush),cornerRadius:this.getCornerRadius(e.toolTipCornerRadius)}}return null}static getShadow(e){var t;let o=null==(t=e.as(Vt))?void 0:t.shadow;if(null!=o){let e={};return e["visible"]=o.visible,e["color"]=f.a.StiReportHelper.getHtmlColor(o.color),e["location"]=o.location.x+`;`+o.location.y,e["size"]=o.size.toString(),e}return null}static getCornerRadius(t){if(null!=t){let e=new Xt;return e["topLeft"]=t.topLeft,e["topRight"]=t.topRight,e["bottomRight"]=t.bottomRight,e["bottomLeft"]=t.bottomLeft,e}return null}static getDashboardWatermark(e){var t;let o=null==(t=e.as(Ht))?void 0:t.dashboardWatermark;if(null!=o){let e={};return o.textEnabled&&(e["textEnabled"]=o.textEnabled,e["text"]=C.toBase64String(We.UTF8.getBytes(o.text)),e["textFont"]=this.getFontJson(o.textFont),e["textColor"]=f.a.StiReportHelper.getHtmlColor(o.textColor),e["textAngle"]=o.textAngle),o.imageEnabled&&(e["imageEnabled"]=o.imageEnabled,e["image"]=null!=o.image?this.imageToBase64(Jt.imageToBytes(o.image)):"",e["imageSize"]=null!=o.image?o.image.width+`;`+o.image.height:"0;0",e["imageAlignment"]=I.getName(Mt,o.imageAlignment),e["imageTransparency"]=o.imageTransparency,e["imageMultipleFactor"]=o.imageMultipleFactor.toString(),e["imageAspectRatio"]=o.imageAspectRatio,e["imageStretch"]=o.imageStretch,e["imageTiling"]=o.imageTiling),o.weaveEnabled&&(e["weaveEnabled"]=o.weaveEnabled,e["weaveMajorIcon"]=null!=o.weaveMajorIcon?I.getName(Qt,o.weaveMajorIcon):null,e["weaveMajorColor"]=f.a.StiReportHelper.getHtmlColor(o.weaveMajorColor),e["weaveMajorSize"]=o.weaveMajorSize,e["weaveMinorIcon"]=null!=o.weaveMinorIcon?I.getName(Qt,o.weaveMinorIcon):null,e["weaveMinorColor"]=f.a.StiReportHelper.getHtmlColor(o.weaveMinorColor),e["weaveMinorSize"]=o.weaveMinorSize,e["weaveDistance"]=o.weaveDistance,e["weaveAngle"]=o.weaveAngle,!o.weaveEnabled||null==o.weaveMajorIcon&&null==o.weaveMinorIcon||this.getWeaveWatermarkImages(o,e)),e}return null}static getWeaveWatermarkImages(o,i){let a=5*o.weaveMajorSize,s=5*o.weaveMinorSize;if(null!=o.weaveMajorIcon){let e=Ft.convertFontIconToImage(o.weaveMajorIcon,o.weaveMajorColor,a,a),t={};t["width"]=e.width,t["height"]=e.height,t["text"]=Ft.getContent(o.weaveMajorIcon),t["size"]=o.weaveMajorSize,t["color"]=f.a.StiReportHelper.getHtmlColor(o.weaveMajorColor),i["weaveMajorImage"]=t}if(null!=o.weaveMinorIcon){let e=Ft.convertFontIconToImage(o.weaveMinorIcon,o.weaveMinorColor,s,s),t={};t["width"]=e.width,t["height"]=e.height,t["text"]=Ft.getContent(o.weaveMinorIcon),t["size"]=o.weaveMinorSize,t["color"]=f.a.StiReportHelper.getHtmlColor(o.weaveMinorColor),i["weaveMinorImage"]=t}}static async getHyperlinkTextAsync(t,o){try{if(!T.isNullOrEmpty(t)&&t[B.System.StiObject.stimulsoft]().contains("{")&&t[B.System.StiObject.stimulsoft]().contains("}")){let e=await jt.parseAsync(t,o);if(!T.isNullOrEmpty(e))return e}}catch(e){}return t}static format(e,t){return null!=t&&t instanceof qt&&!e.textFormat.is(Zt)?t.toShortDateString():e.textFormat.format(t)}static getConstants(e,o){var i;let a=new Xt;if(a.add("Value",e),null!=o)for(let t of o){let e=`Row.`+t.owningColumnName;a.add(e,null==(i=t.value)?void 0:i.toString())}return a}static async parseDashboardDrillDownParameters(e,a){var s;for(let i of e){let t=x.getConstants(i.value,i.rowCels),o=null==(s=a.pages.toList().select(e=>e.getComponents().toList().firstOrDefault(e=>e.guid==i.tableKey)))?void 0:s.firstOrDefault();if(null!=i.parameters&&null!=o)for(let e of i.parameters)e.value=await jt.parseAsync(e.value,o,!1,t)}}static imageToBase64(e){let t="data:image/png;base64,";return Gt.isWmf(e)&&(t="data:image/x-wmf;base64,"),Gt.isEmf(e)?t="data:image/x-emf;base64,":Gt.isBmp(e)?t="data:image/bmp;base64,":Gt.isJpeg(e)?t="data:image/jpeg;base64,":Gt.isGif(e)?t="data:image/gif;base64,":Gt.isSvg(e)&&(t="data:image/svg+xml;base64,"),t+C.toBase64String(e)}}f.c.StiDashboardElementViewHelper=x}f.c.StiRangeBand=class{get height(){return this.bottom-this.top}get originalHeight(){return this.originalBottom-this.originalTop}toString(){let e=this.isFixed?", Fixed":"";return`Top-${this.top}, Bottom-${this.bottom}, Height-`+this.height+e}intersect(e){return e.bottom>this.top&&e.tope.is(Ko));for(let t of e.cast()){let e=t.getNestedPages();null!=e&&i.addRange(e)}}else{let e=t.getComponents();for(let t of e.list)if(null!=t.interaction&&t.interaction.drillDownEnabled&&null!=t.interaction.drillDownPageGuid){let e=o.getComponentByGuid(t.interaction.drillDownPageGuid);null!=e&&i.add(e)}}}ni.prepareSubReportsAndDrillDownPages(o);let e=o.pages.toList().where(e=>e.isPage).toList();return e.where(e=>e.skip&&!i.contains(e)).toList().forEach(e=>i.add(e)),e.forEach(e=>e.skip=!1),i}static getDashboards(a,t){let s=this.getNestedPages(a),n=!1,l=[];for(let i of a.pages.list){let o=i.as(lo),e=i.isEnabled&&(!t||!n||null!=o);if(e){let e=s.contains(i),t=(null!=o||e||(n=!0),{});t["type"]=I.getName(f.a.StiReportType,null!=o?f.a.StiReportType.Dashboard:f.a.StiReportType.Report),t["name"]=i.name,t["alias"]=T.isNullOrWhiteSpace(i.alias)?i.name:i.alias,t["index"]=a.pages.indexOf(i),t["isNestedPage"]=e,l.push(t)}}let o=B.Base.khgyw.JTgMt.OErkQ(),i=B.Base.khgyw.JTgMt.eylZs(),r=B.Base.khgyw.JTgMt.gGmfJ(),A=B.Base.khgyw.JTgMt.aBRNE(),p=B.Base.khgyw.JTgMt.HsSeg();for(let e of l)("Report"==e["type"]&&(i||B.System.NodeJs.isStandaloneVersion&&A)||"Dashboard"==e["type"]&&(o||B.System.NodeJs.isStandaloneVersion&&r)||B.System.NodeJs.isStandaloneVersion&&p)&&(e["valid"]=!0);return l}static getElementsPositions(o,e){let i=o.cast().toDictionary(e=>e,e=>this.round2(e.getPaintRectangle(!1,!1))),t=new R;for(let e of o)t.add(this.round(i.get(e).top)),t.add(this.round(i.get(e).bottom));t.add(0),t.add(this.round(e.height)),t=t.distinct().orderBy(e=>e);let a=new R;for(let e=0;ee.is(jo)))a.where(e=>e.intersect(i.get(t))).forEach(e=>e.isFixed=!0);return a}static correctElementLocations(o,e){let i=o.as(lo);for(let t of e){if(t.page!=i)continue;let e=t;e.right>o.width&&(e.left=o.width-e.width),e.bottom>o.height&&(e.top=o.height-e.height),e.left<0&&(e.left=0,e.width>o.width)&&(e.width=o.width),e.top<0&&(e.top=0,e.height>o.height)&&(e.height=o.height)}}static getDashboardPageAsync(A,p,c){let g=new Oe;return setTimeout(async()=>{let e={},o=A.pages.getByIndex(p),t=o,i=await t.getElements(!0,null).whereAsync(async e=>await e.isEnabledAsync()&&await e.parent.isEnabledAsync()),a=!T.isNullOrEmpty(c.elementName)&&"DashboardDrillDown"!=c.action,s={ref:null},n={ref:0},l=(this.correctElementLocations(o,i),t.isMobileSurfacePresent&&t.switchSurfaceViewMode(c.dashboardWidth<=t.deviceWidth?li.Mobile:li.Desktop),a||this.calculatePositionForEachBand(c,i,o,s,n),e["width"]=c.dashboardWidth,e["height"]=c.dashboardHeight,e["margin"]=o.margins,e["background"]=ai.toHtml(v.getDashboardBackColor(t,!0)),e["actionColors"]=x.getActionColors(t),e["contentAlignment"]=I.getName(P,t.contentAlignment),e["dashboardWatermark"]=x.getDashboardWatermark(t),{}),r=[];for(let t of i)if(!a||t.name==c.elementName){if(t.clientRectangle.isEmpty)continue;let e=await this.getElementAttributesAsync(o,t,a,c,l,s.ref,n.ref);r.push(e)}e["elements"]=r,g.callTry(e)},0),g}static async getElementAttributesAsync(d,u,m,b,f,w=null,C=0){return new Promise(async e=>{var t;f[u.name]=null;let o=u,i=d.as(lo).contentAlignment,a={},s=(a["name"]=u.name,a["type"]=u[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName(),a["group"]=u.is(si)?u.group:null,a["key"]=u.key,u.margin),n=(m&&(u.margin=Xo.create()),u.margin),l=u.padding,r=b.dashboardWidth/(m?o:d).width,A=u.is(jo)?1:(b.dashboardHeight-C)/(m?o.height:d.height-C),p=(i!=P.Center&&i!=P.Left&&i!=P.Right||(r=1),i!=P.Center&&i!=P.Left&&i!=P.Right||(A=1),i==P.StretchX&&(A=r),0),c=(i==P.Right&&(p=b.dashboardWidth-d.width),i==P.Center&&(p=(b.dashboardWidth-d.width)/2),this.round(o.width*r)-n.left-n.right),g=this.round(o.height*A)-n.top-n.bottom;if(x.applyComponentStyleToElement(u),a["left"]=0,a["top"]=0,a["width"]=c,a["height"]=g,a["margin"]=`${n.top},${n.right},${n.bottom},`+n.left,a["padding"]=`${l.top},${l.right},${l.bottom},`+l.left,a["parentKey"]=u.is(Lo)?u.getParentKey():null,a["backColor"]=x.getBackColor(u),a["foreColor"]=x.getForeColor(u),a["border"]=x.getBorder(u),a["font"]=x.getFont(u),a["layout"]=x.getLayout(u),a["actionColors"]=x.getActionColors(u),a["shadow"]=x.getShadow(u),a["cornerRadius"]=x.getCornerRadius(null==(t=u.as(Fe))?void 0:t.cornerRadius),a["dashboardWatermark"]=x.getDashboardWatermark(u),u.is(uo)){let e=u.title[B.System.StiObject.stimulsoft]().as(Mo).padding;a["titlePadding"]=`${this.round(e.top)},${this.round(e.right)},${this.round(e.bottom)},`+this.round(e.left)}if(!m){let t=this.round2(o.getPaintRectangle(!1,!1)),e=(a["left"]=this.round(t.left*r)+p,a["top"]=w.firstOrDefault(e=>e.originalTop==t.top).top,w.firstOrDefault(e=>e.originalBottom==t.bottom).bottom-w.firstOrDefault(e=>e.originalTop==t.top).top-n.top-n.bottom);e!=a["height"]&&(f[u.name]=o.height,o.height=this.round(e/A)+n.top+n.bottom),a["height"]=e}u.margin=s;let h=await x.getElementContentAttributesAsync(u,r,A,b);a["contentAttributes"]=h,null!=f[u.name]&&(u.height=f[u.name]),e(a)})}static async getSingleElementContent(e,s){let n={},t=s.elementNameForRefreshing,l=null!=e&&null!=t?e.pages.getComponentByName(t).as(Ko):null;if(null!=l){let e=!T.isNullOrEmpty(s.elementName)&&"DashboardDrillDown"!=s.action,t=await l.page.getElements(!0,null).whereAsync(async e=>e.isEnabledAsync()),o={ref:null},i={ref:0},a=(e||this.calculatePositionForEachBand(s,t,l.page,o,i,l.as($e)),await this.getElementAttributesAsync(l.page,l,e,s,n,o.ref,i.ref));return a}return null}static calculatePositionForEachBand(e,t,o,i,a,s){let n=o.as(lo),l=(i.ref=this.getElementsPositions(t,n),a.ref=i.ref.where(e=>e.isFixed).sum(e=>e.height),n.contentAlignment),r=e.dashboardWidth/(null!=s?s:o).width,A=(e.dashboardHeight-a.ref)/(o.height-a.ref),p=0;l!=P.Center&&l!=P.Left&&l!=P.Right||(A=1),l==P.StretchX&&(A=r);for(let e of i.ref)e.top=p,e.bottom=e.top+this.round(e.isFixed?e.originalHeight:e.originalHeight*A),p+=e.bottom-e.top}static applySorting(e,t){let o=t["ComponentName"].split(";")[B.System.StiObject.stimulsoft]().toList(),i=e.getComponentByName(o[0]),a=o[1][B.System.StiObject.stimulsoft]().toBoolean(),s=(o=t["DataBand"].split(";")[B.System.StiObject.stimulsoft]().toList(),e.getComponentByName(o[0]).as($o));if(null!=s&&(s.sort=null!=o?o.where((e,t)=>0!=t&&!T.isNullOrEmpty(e))[B.System.StiObject.stimulsoft]().toArray():[]),null!=i&&null!=s){let t=i.interaction.getSortColumnsString();if(null==s.sort||0==s.sort.length)s.sort=ti.addColumnToSorting(s.sort,t,!0);else{let e=ti.getColumnIndexInSorting(s.sort,t);if(a)s.sort=-1==e?ti.addColumnToSorting(s.sort,t,!0):ti.changeColumnSortDirection(s.sort,t);else if(-1!=e){let e=ti.getColumnSortDirection(s.sort,t);e=e==ei.Ascending?ei.Descending:ei.Ascending,s.sort=ti.addColumnToSorting([],t,e==ei.Ascending),i.interaction.sortingDirection=e}else s.sort=ti.addColumnToSorting([],t,!0),i.interaction.sortingDirection=ei.Ascending}e.isRendered=!1}}static applyCollapsing(t,o){let e=o["ComponentName"].toString(),i=t.getComponentByName(e),a=i;if(null!=a&&null!=a.interaction){t.interactionCollapsingStates=o["CollapsingStates"];let e=a.interaction[B.System.StiObject.stimulsoft]().as(_o);if(null!=e&&e.collapsingEnabled){let e=i.as(zo);Wo.setCollapsed(e,!Wo.isCollapsed(e))}t.isRendered=!1}}static async applyDrillDown(i,e,t,o,a,s){let n=t["PageIndex"][B.System.StiObject.stimulsoft]().toNumber(),l=t["ComponentIndex"][B.System.StiObject.stimulsoft]().toNumber(),r=t["ElementIndex"]?t["ElementIndex"][B.System.StiObject.stimulsoft]().toNumber():0,A=t["PageGuid"],p=t["ReportFile"],c=null,g=i;if(!(e=null==e?i:e).isRendered)try{await e.renderAsync2()}catch(e){}if(T.isNullOrEmpty(A)){if(!T.isNullOrEmpty(p)){if(g=new tt,p.startsWith(Ho.resourceIdent)){let t=p.replace(Ho.resourceIdent,""),o=null!=e?e:i;if(null!=o){let e=o.dictionary.resources.getByName(t);null!=e&&g.load(e.content)}}else g.loadFile(p);g.reportGuid=e.reportGuid}}else{for(let e of i.pages.list)e.expressions.remove2("enabled"),e.guid==A?((c=e).enabled=!0,e.skip=!1):e.enabled=!1;let e=i.getComponents();for(let t of e.list)if(null!=t.interaction&&t.interaction.drillDownEnabled&&t.interaction.drillDownPageGuid==(null===c||void 0===c?void 0:c.guid)&&(t.interaction.drillDownPage=null),t.is(Zo)){let e=t;for(let t of e.series.list){let e=t.interaction;null!=t.interaction&&e.drillDownEnabled&&e.drillDownPageGuid==(null===c||void 0===c?void 0:c.guid)&&(e.drillDownPage=null)}}null!=c&&c.isDashboard&&(a.reportType="Dashboard",s.jsObject.reportParams.type="Dashboard")}i.reportAlias==g.reportAlias&&null!=c&&(g.reportAlias=null==c.alias||0==c.alias.length?c.name:c.alias),i.reportDescription==g.reportDescription&&(g.reportDescription=g.reportAlias);let h=e.renderedPages.getByIndex(n),d=h.components.getByIndex(l);if(null!=d&&null!=d.drillDownParameters)for(let e of d.drillDownParameters)g.setVariable(e["name"],e["value"]),o[e["name"]]=e["value"],null==e["name"]||"title"!=e["name"].toLowerCase()||null==e["value"]||T.isNullOrEmpty(e["value"].toString())||(g.reportAlias=e["value"].toString());let u=null!=d?d.as(Zo):null;if(null!=u){let e=new ii,t=new oi(e,!0,!1,!1,1),o=u.report.unit.convertRectangleToHInches(d.clientRectangle),i=u.core.render(t,new Ne(0,0,o.width,o.height),!0),a=i.getSeriesElementGeoms(),s=a.length>r?a[r][B.System.StiObject.stimulsoft]().as(qo):null;if(null!=s&&null!=a[r].interaction){let e=a[r],t=(g.setVariable("Series",e.series.core),g.setVariable("SeriesIndex",e.series.core.series.chart.series.indexOf(e.series.core.series)),g.setVariable("SeriesArgument",e.interaction.argument),g.setVariable("SeriesValue",e.interaction.value),g.setVariable("SeriesPointIndex",e.interaction.pointIndex),g.setVariable("SeriesTag",e.interaction.tag),g.setVariable("SeriesHyperlink",e.interaction.hyperlink),g.setVariable("SeriesTooltip",e.interaction.tooltip),g.setVariable("SeriesTitle",e.series.coreTitle),null!=e.interaction.series?e.interaction.series.coreTitle:null),o=null!=e.interaction.argument?e.interaction.argument.toString():null;T.isNullOrEmpty(o)&&(o=e.interaction.value.toString()),T.isNullOrEmpty(t)||T.isNullOrEmpty(o)?T.isNullOrEmpty(o)?g.reportAlias=o:g.reportAlias=t:g.reportAlias=T.format("{0} - {1}",t,o)}}try{g.isInteractionRendering=!0;try{await g.renderAsync2()}catch(e){}}finally{g.isInteractionRendering=!1}return g}static async applyDashboardDrillDown(e,t,o,i){if(null==t||0==Oo.keys(t).length)return e;let a=t["drillDownPageKey"],s=t["parameters"],n=f.a.StiReportCopier.cloneReport(e,!1);if(n.key=nt.generateKey(),n.pages.toList().forEach(e=>{e.enabled=e.guid==a}),f.a.StiReportCopier.copyElementsDrillDown(e,n),n.pages.toList().forEach(e=>{e.guid==a&&(n.reportAlias=T.isNullOrEmpty(e.alias)?e.name:e.alias)}),null!=s)for(let t of s)if(null!=t["key"]){let e=t["value"];try{"string"==typeof e&&e[B.System.StiObject.stimulsoft]().contains("{")&&e[B.System.StiObject.stimulsoft]().contains("}")&&(e=await jt.parseAsync(e,n.pages.toList().firstOrDefault(e=>e.guid==a),!1))}catch(e){B.System.StiError.showError(e,!1)}n.setVariable(t["key"].toString(),e),o[t["key"].toString()]=e}return n.containsDashboard&&"DashboardFiltering"!=i&&"DashboardSorting"!=i&&await f.c.StiDataFiltersHelper.applyDefaultFiltersForFilterElements(n),n}static addBookmarkNode(t,e,o){let i=new Zs,a=(i.parent=e,t.text[B.System.StiObject.stimulsoft]().replaceAll("\r","")[B.System.StiObject.stimulsoft]().replaceAll("\n","")),s=(i.title=a,i.url="#"+a,i.used=!0,i.componentGuid=t.componentGuid,o.push(i),o.length-1);if(0!=t.bookmarks.count)for(let e=0;ee.is(Vo)))?void 0:o.as(Vo);if(null!=a){let e=t.pointer;i=(T.isNullOrWhiteSpace(a.reportPointer)||(e.text=jt.parse(a.reportPointer,a),e.parentComponent=t),this.getBookmarkPointers(t,e))}return i}static getBookmarkPointers(e,t){let a=this.getBookmarksPageIndexes(e),s=[],n=[];this.addBookmarkNode(t,-1,n);for(let i=0;ia){let t=i.pages.getByIndex(a).name,e=i.renderedPages.toList().findIndex2(e=>e.name==t),o=i.renderedPages.toList().findLastIndex2(e=>e.name==t);if(0<=o&&0<=e)return o-e+1}return i.renderedPages.count}static brushToStr(t){let o="none";if(t)if(t.is(at))o="0";else if(t.is(qe)){let e=t;o=T.format("1;{0}",this.getHtmlColor(e.color))}else if(t.is(Bt)){let e=t;o=T.format("2;{0};{1};{2}",this.getHtmlColor(e.foreColor),this.getHtmlColor(e.backColor),e.style.toString())}else if(t.is(Ct)){let e=t;o=T.format("3;{0};{1};{2}",this.getHtmlColor(e.startColor),this.getHtmlColor(e.endColor),e.angle.toString())}else if(t.is(wt)){let e=t;o=T.format("4;{0};{1};{2};{3};{4}",this.getHtmlColor(e.startColor),this.getHtmlColor(e.endColor),e.angle.toString(),e.focus.toString(),e.scale.toString())}else if(t.is(ft)){let e=t;o=T.format("5;{0};{1};{2};{3}",this.getHtmlColor(e.color),e.blend.toString(),e.drawHatch?"1":"0",this.getHtmlColor(Go.light(e.color,64*e.blend)))}return o}static isMixedReport(a){if(null!=a){let t=this.getNestedPages(a),o=!1,i=!1;for(let e of a.pages.list)if((e.isDashboard?e.isEnabled:e.enabled)&&!t.contains(e)&&(e.is(lo)?i=!0:o=!0),i&&o)return!0}return!1}}f.a.StiReportHelper=F;class Zs{}f.a.StiBookmarkTreeNode=Zs}let ri=B.Data.Engine.StiDataSortVariation,Ai=B.Data.Engine.IStiAllowSortByVariation,pi=B.Report.Dashboard.Helpers.StiSortMenuHelper,ci=B.Data.Helpers.StiLabelHelper,gi=B.Data.Engine.IStiUserSorts,hi=B.Data.Engine.StiDataSortRule,di=B.Data.Engine.StiDataSortDirection,ui=(f.c.StiDataSortsHelper=class{static applySorting(e,t){if(null==t||0==t.Count)return;let o=e.pages.getComponentByName(t["elementName"]).as(Ko),i=t["sorts"];this.applySortsToElement(o,i)}static applySortsToElement(e,o){if(null==e||null==o)return;let i=e.as(gi);if(null!=i){i.userSorts=new R;for(let t of o){let e=I.parse(di,t["direction"]);i.userSorts.add(new hi(t["key"],e))}}e.is(y)&&(e.sortAnimation=!0)}static getElementSorts(e){let t=[],o=e.as(gi);if(null!=o)for(let e of o.userSorts)t.push(this.sortRuleItem(e));return t}static sortRuleItem(e){let t={};return t["typeItem"]="SortRule",t["key"]=e.key,t["direction"]=I.getName(di,e.direction),t}static getSortMenuItems(s){let n=[],e=s.as(no),t=null!=e?e.dashboardInteraction[B.System.StiObject.stimulsoft]().as(Wt):null,o=s.as(gi),l=null!=o?o.userSorts:null,r=I.getName(di,this.getSortDirection(l));if(null!=t&&t.allowUserSorting&&pi.isAllowUserSorting(s)){let e=this.getManualDataTable(s),i=this.fetchAllArguments(s,e);if(null!=i){let o=i.select(e=>ci.getLabel(e)).where(e=>!T.isNullOrWhiteSpace(e));if(o.any()){let t=i.firstOrDefault(),e={};e["text"]=o.join(", "),e["checked"]=null!=l&&l.any(e=>e.key==t.key),e["key"]=t.key,e["sortDirection"]=r,n.push(e)}}let t=this.fetchAllValues(s,e),o=(null!=t&&t.forEach(t=>{let o=ci.getLabel(t);if(!T.isNullOrWhiteSpace(o)){let e={};e["text"]=o,e["checked"]=null!=l&&l.any(e=>e.key==t.key),e["key"]=t.key,e["sortDirection"]=r,n.push(e)}}),this.getSeries(s,e));if(null!=o){let t=ci.getLabel(o);if(!T.isNullOrWhiteSpace(t)){let e={};e["text"]=t,e["checked"]=null!=l&&l.any(e=>e.key==o.key),e["key"]=o.key,e["sortDirection"]=r,n.push(e)}}let a=this.getSortBy(s,e);if(null!=a){let t=ci.getLabel(a);if(!T.isNullOrWhiteSpace(t)){let e={};e["text"]=t,e["checked"]=null!=l&&l.any(e=>e.key==a.key),e["key"]=a.key,e["sortDirection"]=r,n.push(e)}}if(s.is(Ai)&&null!=i&&null!=t){let e={};e["isSortByVariation"]=!0,e["checked"]=ri.isVariationSort(l),e["key"]=ri.ident,e["sortDirection"]=r,n.push(e)}}return n}static getSortDirection(e){if(null==e||0==e.length)return di.Ascending;return e.firstOrDefault().direction}static fetchAllArguments(t,e){var o,i;if(null==t)return null;if(t.is(y)){if(null!=e)return this.isArgumentPresentedInManualData(e)?null==(i=null==(o=null==e?void 0:e.meters)?void 0:o.where(e=>"Argument"==e.key))?void 0:i.toList():null;return t.fetchAllArguments()}if(t.is(Xe)&&null!=t.getSeries()&&null!=t.getTarget()){let e=new R;return e.add(t.getTarget()),e}if(t.is(je)&&null!=t.getSeries()&&null!=t.getTarget()){let e=new R;return e.add(t.getTarget()),e}if(t.is(Ye)&&null!=t.getSeries()&&null!=t.getTarget()){let e=new R;return e.add(t.getTarget()),e}return null}static fetchAllValues(t,e){var o,i;if(null==t)return null;if(t.is(y)){if(null!=e)return this.isValuePresentedInManualData(e)?null==(i=null==(o=null==e?void 0:e.meters)?void 0:o.where(e=>"Value"==e.key))?void 0:i.toList():null;return t.fetchAllValues()}if(t.is(Xe)&&null!=t.getSeries()&&null!=t.getValue()){let e=new R;return e.add(t.getValue()),e}if(t.is(je)&&null!=t.getSeries()&&null!=t.getValue()){let e=new R;return e.add(t.getValue()),e}if(t.is(Ye)&&null!=t.getSeries()&&null!=t.getValue()){let e=new R;return e.add(t.getValue()),e}return null}static getSeries(e,t){var o,i;if(null==e)return null;if(e.is(y)){if(null!=t)return this.isSeriesPresentedInManualData(t)?null==(i=null==(o=null==t?void 0:t.meters)?void 0:o.where(e=>"Series"==e.key))?void 0:i.firstOrDefault():null;return e.getSeries3()}return e.is(Xe)||e.is(je)||e.is(Ye)?e.getSeries():null}static getSortBy(e,t){var o,i;if(null==e)return null;return e.is(y)?null!=t?this.isSeriesPresentedInManualData(t)?null==(i=null==(o=null==t?void 0:t.meters)?void 0:o.where(e=>"SortBy"==e.key))?void 0:i.firstOrDefault():null:e.as(y).getSortBy3():null}static getManualDataTable(e){var t;if(e.is(y)&&(null==(t=e.as(Ve))?void 0:t.dataMode)==He.ManuallyEnteringData)return e.as(Ve).getManuallyEnteredDataTable();return null}static isValuePresentedInManualData(e){let t=e.meters.firstOrDefault(e=>"Value"==e.key);if(null==t)return!1;let o=e.meters.indexOf(t);return 1e[o]).distinct().count2()}static isArgumentPresentedInManualData(e){let t=e.meters.firstOrDefault(e=>"Argument"==e.key);if(null==t)return!1;let o=e.meters.indexOf(t);return 1e[o]).distinct().count2()}static isSeriesPresentedInManualData(e){let t=e.meters.firstOrDefault(e=>"Series"==e.key);if(null==t)return!1;let o=e.meters.indexOf(t);return 1e[o]).distinct().count2()}},B.Data.Functions.Funcs),mi=B.Data.Extensions.ListExt,bi=B.Data.Functions.StiSystemVariableObject,fi=B.Base.Meters.IStiMaxGaugeMeter,wi=B.Base.Meters.IStiMinGaugeMeter,Ci=B.Data.Extensions.StiDataTableExt,Bi=B.Base.StiActivator,yi=B.Report.Dashboard.StiElementDataCache,Ei=B.System.Data.DBNull,U=B.Report.Dictionary.StiVariableInitBy,vi=B.Data.Engine.StiDataFilterRuleHelper,Si=B.Report.Dashboard.Helpers.StiCrossLinkedFilterHelper,Di=B.Report.Dashboard.StiPivotToConvertedStateCache,ki=B.Report.Dashboard.StiPivotTableToCrossTabCache,Ri=B.Report.Dashboard.StiPivotToContainerCache,Ti=B.Data.Engine.IStiUserFilters,Ii=B.Data.Engine.StiDataFilterRule,Pi=B.Data.Engine.StiDataFilterCondition,xi=B.System.Type,Ui=B.Data.Engine.StiDataFilterComparer,Fi=B.Base.Meters.IStiTableColumn,Qi=B.Report.Dictionary.StiDataColumn,Mi=B.Data.Engine.StiDataExpressionHelper,Ji=B.Data.Engine.StiDataPicker,Gi=B.Report.StiVariableExpressionHelper,Hi=B.Report.Engine.StiVariableHelper,Vi=B.Report.Dashboard.StiCacheCleaner,Oi=B.System.StimulsoftDateTimeRange;{class Ca{static applyFiltering(e,t){var o;if(null==t||0==Oo.keys(t).length)return;let i=null==(o=e.pages.getComponentByName(t["elementName"]))?void 0:o.as(Ko),a=t["filters"];this.applyFilterParameters(e,t["filterParameters"]),this.applyFiltersToElement(i,a),Ri.clean(e.key),ki.clean(e.key),Di.clean(e.key)}static applyFiltersToElement(t,e){if(null==t||null==e)return;if(t.is(fo)&&f.c.StiDatePickerElementViewHelper.isVariablePresent(t))return void this.applyDatePickerFiltersToVariable(t,e);let o=t.as(Ti);if(null!=o){Si.isCrossLinkedFilter(t.as(Lo))||t.page.getComponents().toList().where(e=>e.is(Lo)).cast().where(e=>e.getParentKey()==t.key).where(e=>null!=e&&e.is(Ti)).toList().forEach(e=>{e.userFilters=new R}),o.userFilters=new R;for(let t of e){let e=I.parse(Pi,t["condition"]);o.userFilters.add(new Ii(t["key"],t["path"],e,t["value"],t["value2"],!0,!1,t["path2"]))}}}static getElementFilters(e){let t=[],o=e.as(Ti);if(null!=o)for(let e of o.userFilters)t.push(this.filterRuleItem(e));return t}static getFilterItems(e,t){let o=t.dashboardFilteringParameters["elementName"],i=C.toInt32(t.dashboardFilteringParameters["columnIndex"]),a=e.pages.getComponentByName(o).as(Ko);if(null!=a){let e=a.getMeters().where(e=>e.is(Fi));return this.getFilterItemsHelper(a.page,e,i,a.userSorts,a.userFilters,a)}return null}static async getDataTable(e){var t;let o=null==(t=e.as(Ve))?void 0:t.getManuallyEnteredDataTable();if(null!=o)return o;return yi.tryToGetOrCreate(e)}static async getViewData(e,a){var t,r;let A={},o=a.dashboardFilteringParameters["elementName"],p=e.pages.getComponentByName(o).as(Ko),s=null==(t=p.as($e))?void 0:t.clone().as(Ko),c=[],g=[],h=[];if(null!=p&&null!=s){let l=v.getStyleForDataViewTable(p),e=Bi.createObject2("Stimulsoft.Dashboard.Components.Table.StiTableElement"),i=(e.style=l.ident,A["settings"]=f.c.StiTableElementViewHelper.getTableSettings(e,l),s.report=p.report,s.is(gi)&&(s.userSorts=new R),await Ca.getDataTable(s));if(null!=i){let s=Ca.removeSystemMeters(p,i),t=a.dashboardFilteringParameters["sortDirection"],o=null!=a.dashboardFilteringParameters["columnIndex"]?C.toNumber(a.dashboardFilteringParameters["columnIndex"]):-1;if(0<=o&&null!=t&&onull==e?void 0:e.is(wi)),t=a.meters.firstOrDefault(e=>null==e?void 0:e.is(fi)),o=null!=e?a.meters.indexOf(e):-1,i=null!=t?a.meters.indexOf(t):-1;-1!=o&&s.columns.removeAt(o),-1!=i&&(i>o&&i--,s.columns.removeAt(i))}return s}static getDataTableFilterQueryStringRepresentation(e){let t=e.as(Ti);if(null==t||null==t.userFilters)return"";let o=t.userFilters.select(e=>e.clone()).cast().toList();return o.forEach(e=>{let t=null!=e.path?e.path.indexOf("."):-1;-1!=t&&(e.path=e.path.substring(t+1))}),vi.getDataTableFilterQuery2(o,null,null,null)}static getDrillDownFilters(e){let t=[];return null!=e&&null!=e.drillDownFilters&&e.drillDownFilters.forEach(e=>t.push(this.filterRuleItem(e))),t}static getDrillDownFiltersList(e){let o=[];return null!=e&&null!=e.drillDownFiltersList&&e.drillDownFiltersList.forEach(e=>{let t=[];o.push(t),e.forEach(e=>t.push(this.filterRuleItem(e)))}),o}static isStringColumnType(e){let t=null,o=(e.is(mo)?t=f.c.StiListBoxElementViewHelper.getColumnPath(e):e.is(bo)?t=f.c.StiComboBoxElementViewHelper.getColumnPath(e):e.is(Co)?t=f.c.StiTreeViewElementViewHelper.getColumnPath(e):e.is(Bo)&&(t=f.c.StiTreeViewBoxElementViewHelper.getColumnPath(e)),Qi.getDataColumnFromColumnName(e.report.dictionary,t));return(null==o?void 0:o.type)==String}static isBlankData(e){return null==e||e==Ei.value||"string"==typeof e&&T.isNullOrEmpty(e)}static async resetAllFilters(t,o){if(oe.is(Ko)&&e.is(Ti)).toList().forEach(e=>{e.as(Ti).userFilters=new R}),await this.applyDefaultFiltersForFilterElements2(e))}}static applyFilterParameters(t,o){if(null==o||0==o.length)return;for(let e of o)t.setVariable(e["key"],e["value"])}static filterRuleItem(e){let t={};return t["typeItem"]="FilterRule",t["key"]=e.key,t["path"]=e.path,t["condition"]=I.getName(Pi,e.condition),t["value"]=e.value,t["value2"]=e.value2,t["isEnabled"]=e.isEnabled,t["isExpression"]=e.isExpression,t}static sortFilterMenuItem(e,t){let o={};return o["type"]=this.typeToString(t),o["displayString"]=Ca.toDisplayString(e,t),o["filterString"]=Ca.toFilterString(e,t),o}static getFilterItemsHelper(e,t,o,i,a,s=null){let n={};if(null==t||o>=t.length||null==t[o])return null;let l=Mi.getDataColumnFromExpression(e,t[o].expression),r=null!=l?l[B.System.StiObject.stimulsoft]().as(Qi):null;if(null==r)return null;let A=Ji.getFromCache(r.dataSource);if(null==A)return null;let p=r.dataSource.name+`.`+r.name,c=A.columns.getIndexByName(p);if(-1==c)return null;n["columnPath"]=p;let g=A.columns.getByIndex(c).dataType,h=new Ui,d=this.distinct(A.rows.toList().select(e=>e.gett(c))).where(this.isValueCanBeFiltered).orderBy(e=>e,h),u=this.typeToString(g);return n["mainItems"]=d.where(e=>null!=e&&!T.isNullOrWhiteSpace(e.toString())).select(e=>({type:u,displayString:Ca.toDisplayString(e,g),filterString:Ca.toFilterString(e,g)})),n["haveBlanks"]=d.any(e=>null!=e&&T.isNullOrWhiteSpace(e.toString())),n["haveNulls"]=d.any(e=>null==e),n}static typeToString(e){if(null==e)return"null";if(e==Number)return"int";if(e==Boolean)return"bool";if(e==B.System.Byte)return"byte";if(e==B.System.ByteArray)return"byte[]";if(e==B.System.Char)return"char";if(e==B.System.DateTime)return"datetime";if(e==B.System.DateTimeOffset)return"datetimeoffset";if(e==B.System.Decimal)return"decimal";if(e==B.System.Double)return"double";if(e==B.System.Guid)return"guid";if(e==B.System.Short)return"short";if(e==B.System.Int)return"int";if(e==B.System.Int16)return"int";if(e==B.System.Int32)return"int";if(e==B.System.Int64)return"int";if(e==B.System.Long)return"long";if(e==B.System.SByte)return"sbyte";if(e==B.System.Float)return"float";if(e==String)return"string";if(e==B.System.TimeSpan)return"timespan";if(e==B.System.UShort)return"ushort";if(e==B.System.UInt)return"uint";if(e==B.System.UInt16)return"uint";if(e==B.System.UInt32)return"uint";if(e==B.System.UInt64)return"uint";if(e==B.System.ULong)return"ulong";if(e==B.System.Drawing.Image||e==Uint8Array)return"image";if(e==B.System.NullableBoolean)return"bool (Nullable)";if(e==B.System.NullableByte)return"byte (Nullable)";if(e==B.System.NullableChar)return"char (Nullable)";if(e==B.System.NullableDateTime)return"datetime (Nullable)";if(e==B.System.NullableDateTimeOffset)return"datetimeoffset (Nullable)";if(e==B.System.NullableDecimal)return"decimal (Nullable)";if(e==B.System.NullableDouble)return"double (Nullable)";if(e==B.System.NullableGuid)return"guid (Nullable)";if(e==B.System.NullableShort)return"short (Nullable)";if(e==B.System.NullableInt)return"int (Nullable)";if(e==B.System.NullableInt16)return"int (Nullable)";if(e==B.System.NullableInt32)return"int (Nullable)";if(e==B.System.NullableInt64)return"int (Nullable)";if(e==B.System.NullableLong)return"long (Nullable)";if(e==B.System.NullableSByte)return"sbyte (Nullable)";if(e==B.System.NullableFloat)return"float (Nullable)";if(e==B.System.NullableTimeSpan)return"timespan (Nullable)";if(e==B.System.NullableUShort)return"ushort (Nullable)";if(e==B.System.NullableUInt)return"uint (Nullable)";if(e==B.System.NullableUInt16)return"uint (Nullable)";if(e==B.System.NullableUInt32)return"uint (Nullable)";if(e==B.System.NullableUInt64)return"uint (Nullable)";if(e==B.System.NullableULong)return"ulong (Nullable)";if(e==Object)return"object";return e.toString()}static toFilterString(e,t=null){if(null==e)return null;if(null==t&&(t=xi.getType(e)),T.isNullOrWhiteSpace(e.toString()))return"";if(null!=t&&xi.isNumericType(t))return e.toString()[B.System.StiObject.stimulsoft]().replaceAll(",",".");if(e instanceof qt)return e.toString("MM/dd/yyyy");return e.toString()}static toDisplayString(e,t=null){var o;if(null==t&&(t=e.GetType()),null==e||T.isNullOrWhiteSpace(e.toString()))return"";if(e instanceof qt)return e.toShortDateString();let i=e.toString();return 100<(i=null!=e&&e[B.System.StiObject.stimulsoft]().is(B.Data.Types.SimpleValue)?null==(o=e.value)?void 0:o[B.System.StiObject.stimulsoft]().toString():i).length?i.substring(0,100)+"...":i}static distinct(e){if(null==e.firstOrDefault()||!(e.firstOrDefault()instanceof qt))return e.distinct();return e.select(s.tryToNullableDateTime).where(e=>null!=e).cast().groupBy(e=>e.date).select(e=>0e.getKey()==t.getParentKey())))break;o++}return o}static async applyDefaultFiltersForFilterElements(t){if(null!=t){let e=t.pages.toList().where(e=>e.enabled&&e.isDashboard).toList(),i=new R,a=0;for(let o of e){let t=(await o.getComponents().toList().cast().whereAsync(async e=>await e.isEnabledAsync()&&e.is(Lo))).cast().toList(),e=t.orderBy(e=>this.getLevel(e,t)).toList();0await e.isEnabledAsync()&&e.is(Lo))).cast().toList(),o=t.orderBy(e=>this.getLevel(e,t)).toList();for(let e of o)await e.applyDefaultFilters()}static applyDatePickerFiltersToVariable(o,e){var t;let i=Gi.getVariableSpecifiedAsExpression(o,null==(t=o.getValueMeter())?void 0:t.expression);if(null!=i)for(let t of e){let e=i.type==Oi?new Oi(s.tryToDateTime(t["value"]),s.tryToDateTime(t["value2"])):s.tryToDateTime(t["value"]);Hi.setVariableValue(o.report,i,e),i.initBy==U.Value&&(i.valueObject=e),Vi.clean(o.report)}}static async checkInvoikeResetAllFilters(e,t,o){null!=e&&null!=t&&(0<=t.script.indexOf("sti_reset_all_filters")||0<=t.script.indexOf("ResetAllFilters"))&&await this.resetAllFilters(e,o)}}f.c.StiDataFiltersHelper=Ca}f.c.StiDashboardElementDrillDownHelper=class{static applyDashboardElementDrillDown(e,t){if(null==t||0==Oo.keys(t).length)return;let o=e.pages.getComponentByName(t["elementName"]).as(Ko),i=t["filters"];this.applyDrillDownToElement(o,i)}static applyDrillDownToElement(e,i){if(null==e||null==i)return;let t=e.as($t);if(null!=t){let o=new R;for(let t of i){let e=I.parse(Pi,t["condition"]);o.add(new Ii(t["key"],t["path"],e,t["value"],t["value2"],!0,!1,t["path2"]))}t.drillDownFiltersList.add(t.drillDownFilters),t.drillDownFilters=o,t.drillDownCurrentLevel++}}static applyDashboardElementDrillUp(e,t){if(null==t||0==Oo.keys(t).length)return;let o=e.pages.getComponentByName(t["elementName"]).as(Ko);this.applyDrillUpToElement(o)}static applyDrillUpToElement(e){if(null==e)return;let t=e.as($t);null!=t&&(t.drillDownCurrentLevel--,t.drillDownCurrentLevel<0&&(t.drillDownCurrentLevel=0),0{let t={};t["name"]=e.name,t["key"]=e.key,t["seriesType"]=I.getName(Ni,e.seriesType),o.push(t)}),o}static async changeChartElementViewState(e,n){let l={},t=n.chartElementName,r=n.chartElementViewStateKey,A=null!=e&&null!=t?e.pages.getComponentByName(t).as(y):null;if(null!=A){let e=A.as(Nt),t=(e.switchSelectedViewState(r),await A.page.getElements(!0,null).whereAsync(async e=>e.isEnabledAsync())),o=!T.isNullOrEmpty(n.elementName)&&"DashboardDrillDown"!=n.action,i={ref:null},a={ref:0},s=(f.a.StiReportHelper.calculatePositionForEachBand(n,t,A.page,i,a),await f.a.StiReportHelper.getElementAttributesAsync(A.page,A,o,n,l,i.ref,a.ref));return s}return null}},B.Base.Dashboard.StiElementConsts),Xi=B.Report.Range,ji=B.Report.DateTimeRange,Yi=B.System.Globalization.CultureInfo,Ki=(f.c.StiDatePickerElementViewHelper=class{static async getAutoRangeValues(t){if(t.selectionMode==Io.AutoRange){let e=await yi.getOrCreate(t);if(null==e)return null;if(null==e||0==e.rows.length)return null;let o={},i=e.rows.select(e=>e[0]).where(e=>null!=e&&e instanceof qt);if(i.any()){let e=i.where(e=>e instanceof qt).cast().min(),t=i.where(e=>e instanceof qt).cast().max();return o["selectionStart"]=e.toString("MM/dd/yyyy"),o["selectionEnd"]=t.toString("MM/dd/yyyy"),o}}return null}static async getVariableRangeValues(e){var t;let o=Gi.getVariableSpecifiedAsExpression(e,null==(t=e.getValueMeter())?void 0:t.expression);if(null!=o){let t=e.report.dictionary.getVariableValueByName(o.name);if(null!=(t=o.initBy!=U.Expression||T.isNullOrEmpty(t)?t:await jt.parseAsync("{"+t+"}",e[B.System.StiObject.stimulsoft]().as($e)))&&t[B.System.StiObject.stimulsoft]().is(ji)){let e={};return e["selectionStart"]=s.tryToDateTime(t[B.System.StiObject.stimulsoft]().as(ji).fromObject).toString("MM/dd/yyyy"),e["selectionEnd"]=s.tryToDateTime(t[B.System.StiObject.stimulsoft]().as(ji).toObject).toString("MM/dd/yyyy"),e}}return null}static async getVariableValue(t){var e;let o=Gi.getVariableSpecifiedAsExpression(t,null==(e=t.getValueMeter())?void 0:e.expression);if(null!=o){let e=t.report.dictionary.getVariableValueByName(o.name);return o.initBy!=U.Expression||T.isNullOrEmpty(e)||(e=await jt.parseAsync("{"+e+"}",t.as($e))),s.tryToDateTime(e).toString("MM/dd/yyyy")}return qt.now.toString("MM/dd/yyyy")}static isVariablePresent(e){let t=e.getValueMeter();return null!=t&&Gi.isVariableSpecifiedAsExpression(e,null==t?void 0:t.expression)}static isRangeVariablePresent(e){var t;let o=e.getValueMeter();return null!=o&&this.isVariablePresent(e)&&Xi.isRangeType(null==(t=Gi.getVariableSpecifiedAsExpression(e,null==o?void 0:o.expression))?void 0:t.type)}static getFormattedValues(t,e){let o=e["datePickerElementName"],i=t.pages.getComponentByName(o),a=null!=i?i.as(fo):null,s={},n=e["dateValues"];if(null!=n&&null!=a){this.storedCulture=null;try{let e=t.getParsedCulture();T.isNullOrWhiteSpace(e)||(this.storedCulture=Yi.currentCulture,Yi.currentCulture=new Yi(e))}finally{if(null!=n["value1"]){let e=qt.fromString(n["value1"]);s["value1"]=f.c.StiDashboardElementViewHelper.format(a,e)}if(null!=n["value2"]){let e=qt.fromString(n["value2"]);s["value2"]=f.c.StiDashboardElementViewHelper.format(a,e)}null!=this.storedCulture&&(Yi.currentCulture=this.storedCulture)}}return s}static getColumnPath(e){let t=e.getValueMeter();return null!=t?t.expression:null}static getSettings(e){let t=f.c.StiDashboardElementViewHelper.getControlElementSettings(e);return t["itemHeight"]=Li.ComboBox.ItemHeight,t}},B.Report.Dashboard.StiTableColumnVisibilityHelper),Wi=B.Base.Meters.IStiDataBarsColumn,zi=B.Base.Drawing.StiTableColumnVisibility,Zi=B.Base.StiSummaryColumnType,qi=B.Report.Dashboard.IStiTableColumnSize,_i=B.Report.Dashboard.Helpers.StiDashboardExpressionHelper,$i=B.Report.StiNameValidator,ea=B.Base.Meters.IStiDimensionColumn,ta=B.Report.Dashboard.StiTableSizeMode,oa=(f.c.StiTableElementViewHelper=class{static async getTableData(n){let o=[],i=await yi.getOrCreate(n);if(null!=i){let a=[],e=i.meters.where(e=>e.is(Fi)),s=0;for(let i of e){let e=Mi.getDataColumnFromExpression(n.page,i.expression),t={},o=await this.getColumnVisibilityState(i.as(Fi),n.report);if(o){if(t["columnIndex"]=s,t["key"]=i.key,t["label"]=ci.getLabel(i),t["labelCorrect"]=$i.correctName(ci.getLabel(i)),t["path"]=null!=e?e.getColumnPath():"",t["type"]=i[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName(),t["dataType"]=f.c.StiDataFiltersHelper.typeToString(null!=e?e.type:String),t["align"]=this.getCellAlignment(i),t["sortLabel"]=this.getSortLabel(n,i.key),t["filterLabel"]=this.getFilterLabel(n,i.key,null!=e?e.getColumnPath():""),t["cellForeColor"]=f.a.StiReportHelper.getHtmlColor(this.getCellForeColor(n,i[B.System.StiObject.stimulsoft]().as(Fi))),t["cellForeColorInterlaced"]=f.a.StiReportHelper.getHtmlColor(this.getCellForeColor(n,i[B.System.StiObject.stimulsoft]().as(Fi),!0)),t["interaction"]=await f.c.StiDashboardElementViewHelper.getDashboardInteractionAsync(i),t["showTotalSummary"]=i[B.System.StiObject.stimulsoft]().as(Fi).showTotalSummary,t["summaryType"]=I.getName(Zi,i[B.System.StiObject.stimulsoft]().as(Fi).summaryType),t["summaryAlignment"]=I.getName(p,i[B.System.StiObject.stimulsoft]().as(Fi).summaryAlignment),t["headerAlignment"]=I.getName(p,i[B.System.StiObject.stimulsoft]().as(Fi).headerAlignment),i.is(ea)&&(t["showHyperlink"]=i.showHyperlink,t["hyperlinkPattern"]=i.hyperlinkPattern),i.is(qi)){let e=i.size;t["sizeWidth"]=e.width,t["sizeMaxWidth"]=e.maxWidth,t["sizeMinWidth"]=e.minWidth,t["sizeWordWrap"]=e.wordWrap}i.is(Wi)&&(t["sizeWidth"]=i.width),a.push(t)}s++}o.push(a);let t=await S.invokeStaticMethod("Stimulsoft.Dashboard.Export.Tools","StiTableElementExportTool","renderCellsForViewer",[n]);null!=t&&(o=o.concat(t))}return o}static async getTableHiddenData(o){var l;let t=[],r=await yi.getOrCreate(o);if(null!=r){let a=[],s=[],e=r.meters.where(e=>e.is(Fi)),n=0;for(let i of e){let e={},t=await this.getColumnVisibilityState(i.as(Fi),o.report);if(!t){e["columnIndex"]=n,e["key"]=i.key,e["label"]=ci.getLabel(i),e["labelCorrect"]=$i.correctName(ci.getLabel(i)),e["visibilityTrueAndHidden"]=i[B.System.StiObject.stimulsoft]().as(Fi).visibility==zi.TrueAndHidden,a.push(e);let o=0;for(let t of r.rows){if(n{if(null!=r[A.key+t.key]){let e=t.as(Fi);r[A.key+t.key][B.System.StiObject.stimulsoft]().toBoolean()?(e.visibility!=zi.Expression&&(e.visibilityExpression=null),e.visibility=zi.False):e.visibility=T.isNullOrEmpty(e.visibilityExpression)?zi.True:zi.Expression}}),await A.page.getElements(!0,null).whereAsync(async e=>e.isEnabledAsync())),o=!T.isNullOrEmpty(n.elementName)&&"DashboardDrillDown"!=n.action,i={ref:null},a={ref:0},s=(f.a.StiReportHelper.calculatePositionForEachBand(n,t,A.page,i,a,A.as($e)),await f.a.StiReportHelper.getElementAttributesAsync(A.page,A,o,n,l,i.ref,a.ref));return s}return null}},f.c.StiButtonElementHelper=class{static applyButtonEvent(e,t){var o,i;if(null==t||0==t.Count)return;let a=null==(o=e.pages.getComponentByName(t["elementName"]))?void 0:o.as(Ut);null!=a&&(Vi.clean4(e.key),Ri.clean(e.key),ki.clean(e.key),Di.clean(e.key),a.type!=xt.CheckBox&&a.type!=xt.RadioButton||(null!==a&&void 0!==a&&a.invokeCheckedChanged(a,{}),a.checked=a.type==xt.RadioButton||C.toBoolean(t["isChecked"]),a.type==xt.RadioButton&&a.page.getComponents().toList().where(e=>e.is(Ut)).cast().where(e=>e.group==a.group&&e!=a).toList().forEach(e=>{e.checked=!1})),null!=(i=a.as($e)))&&i.invokeClick(a,{})}},B.Report.Export.Htmls.ChartScripts.StiChartAnimation),ia=f.c.StiButtonElementHelper,aa=B.System.StiMath,sa=B.Report.Events.StiDoubleClickEventArgs,na=B.Report.Events.StiMouseEnterEventArgs,la=B.Report.Events.StiMouseLeaveEventArgs,ra=B.Report.Events.StiClickEventArgs,Aa=B.Report.StiOrientation,pa=f.c.StiTableElementViewHelper,ca=f.c.StiChartElementViewHelper,ga=B.Report.StiCalculationMode,ha=B.Report.Engine.StiParser.StiParser,da=B.Report.Export.Services.Helpers.StiContextSvgHelper,ua=B.Base.StiExportNotSupportedException,ma=B.System.StiError,ba=B.Report.Export.StiExportAssembly,fa=f.c.StiDatePickerElementViewHelper,wa=f.c.StiDataSortsHelper,Ca=f.c.StiDataFiltersHelper,F=f.a.StiReportHelper,Ba=B.System.IO.TextWriter,ya=B.Report.Export.StiHtmlExportService,Ea=B.Report.Export.StiHtmlTextWriter,Q=B.Report.StiPagesRange,M=B.Report.StiRangeType,va=B.Report.Export.StiHtmlExportQuality,Sa=B.Report.Export.StiHtmlExportBookmarksMode,Da=B.System.IO.MemoryStream,ka=f.c.StiDashboardElementDrillDownHelper,t=(k.setImageSource=(e,t,o,i,a)=>f.a.StiThemesHelper.setImageSource(f.a,e,t,i,a),k.checkImageSource=(e,t,o)=>null!=k.getImageSource(e,t,o),k.getImageSource=(e,t,o)=>{var i;return null==(i=f.a.StiThemesHelper.getImageSource(f.a,e,o))?void 0:i.data},f.a.StiJsViewer=k,f.a.StiBase64=L,f.a.StiViewer=class{get reportTemplate(){let e=this.currentReportGuid.split("|")[0];return this.reportCache[e]}get report(){if(null==this.currentReportGuid)return null;return this.reportCache[this.currentReportGuid]}set report(e){this.currentReportGuid=null,this.reportCache={},null!=e&&(this.reportCache[e.reportGuid]=e,this.currentReportGuid=e.reportGuid,J.Engine.loadDataOnce||(e.key=nt.generateKey())),this.jsObject&&this.jsObject.assignReport(e)}get visible(){return this._visible}set visible(e){this._visible=e,this.jsObject&&(this.jsObject.controls.viewer.style.display=e?"":"none")}renderHtml(e){e&&"string"==typeof e&&(e=document.getElementById(e)),this._element=e;let t=T.isNullOrEmpty(this.options.width)?"100%":this.options.width,o=T.isNullOrEmpty(this.options.height)?this.options.appearance.scrollbarsMode?"650px":"100%":this.options.height,i=T.format("#{0:X2}{1:X2}{2:X2}",this.options.appearance.backgroundColor.r,this.options.appearance.backgroundColor.g,this.options.appearance.backgroundColor.b),a="
",e&&void 0!==e["innerHTML"]?e["innerHTML"]=a:document.write(a),T.isNullOrEmpty(this.options.width)&&(this.options.width="100%"),T.isNullOrEmpty(this.options.height)&&(this.options.height=this.options.appearance.fullScreenMode?"650px":"100%"),this.options.appearance.reportDisplayMode==E.Table&&this.options.appearance.htmlRenderMode!=E.Table&&(this.options.appearance.reportDisplayMode=this.options.appearance.htmlRenderMode),this.options.toParameters()),n=(s["loc"]=f.a.StiCollectionsHelper.getLocalizationItems(),s["options"].heightType=this.options.height[B.System.StiObject.stimulsoft]().endsWith("%")?"Percentage":"Pixel",s["options"].jsMode=!0,s["options"].standaloneJsMode=B.System.NodeJs.isStandaloneVersion,s["options"].dashboardAssemblyLoaded=B.Report.Dashboard.StiDashboardAssembly.isAssemblyLoaded,s["options"].chartAssemblyLoaded=B.Report.Chart.StiChartAssembly.isAssemblyLoaded,s["options"].alternateValid=null!=B.Base[["St","iL","ic","en","se"].join("")].key,s["options"].licenseUserName=null!=B.Base[["St","iL","ic","en","se"].join("")][["li","ce","ns","eK","ey"].join("")]?B.Base[["St","iL","ic","en","se"].join("")][["li","ce","ns","eK","ey"].join("")].userName:"",s["options"].listSeparator=Yi.currentCulture.textInfo.listSeparator,s["options"].fontNames=f.a.StiFontsHelper.getFontNames(),{months:["January","February","March","April","May","June","July","August","September","October","November","December"],loc:f.a.StiCollectionsHelper.getLocalizationItems(),dateRanges:B.System.Enum.getNames(B.Report.StiDateRangeKind),pdfSecurityCertificates:[],paperSizes:B.System.Enum.getNames(B.System.Drawing.Printing.PaperKind),encodingData:B.System.Text.Encoding.getSupportedEncodings(),images:{}}),l=B.Base.khgyw.JTgMt.gGmfJ(),r=B.Base.khgyw.JTgMt.aBRNE(),A=(s["options"].licenseIsValid=l||r,this.jsObject=new k(s,n),(this.jsObject.viewer=this).jsObject.options.server.useCompression=!1,this.jsObject.options.exports.defaultSettings.DashboardImage&&(this.jsObject.options.exports.defaultSettings.DashboardImage.ImageType="Svg"),this.applyTheme(this.options.appearance.theme),B.System.StiError.errorMessageForm=B.System.StiError.errorMessageForm||this.jsObject.controls.forms.errorMessageForm||this.jsObject.InitializeErrorMessageForm(),this.jsObject.assignReport=n=>{if(this.drillDownReportCache={},n){this.showProcessIndicator();let o=n.onPrepareVariables,i=(n.onPrepareVariables=(e,t)=>{o&&o(e,t),this.invokePrepareVariables(e,t)},n.onBeginProcessData),t=(n.onBeginProcessData=(e,t)=>{i&&i(e,t),this.invokeBeginProcessData(e,t)},n.onEndProcessData),a=(n.onEndProcessData=e=>{t&&t(e),this.invokeEndProcessData(e)},F.getNestedPages(n)),s=n.pages.toList().firstOrDefault(e=>(e.isDashboard?e.isEnabled:e.enabled||ht.isExpressionSpecified(e,"enabled"))&&!a.contains(e));setTimeout(async()=>{var e,t;n.isRendered||null==s||s.isDashboard?null!==s&&void 0!==s&&s.isDashboard&&(await f.a.StiVariablesHelper.fillDialogInfoItems(n),null==n.variables&&ha.prepareReportVariables(n),await Hi.setDefaultValueForRequestFromUserVariablesAsync(n,!0,!0)):J.Engine.useSyncRenderMode?n.render():await n.renderAsync2(),this.jsObject.options.isParametersReceived=!1,this.jsObject.options.paramsVariables=null,this.jsObject.controls.drillDownPanel.reset(),this.jsObject.reportParams.bookmarksContent=null,this.jsObject.InitializeBookmarksPanel(),this.jsObject.reportParams.reportGuid=n.reportGuid,this.jsObject.reportParams.paramsGuid=null,this.jsObject.reportParams.drillDownGuid=null,this.jsObject.reportParams.dashboardDrillDownGuid=null,this.jsObject.reportParams.drillDownParameters=[],this.jsObject.reportParams.pageNumber=0,this.jsObject.reportParams.pagesCount=F.getPagesCount(this.report,this.jsObject.reportParams.originalPageNumber,this.options.appearance.combineReportPages),this.options.appearance.reportDisplayMode==E.FromReport&&(this.jsObject.reportParams.reportDisplayMode=F.getReportDisplayModeFromReport(this.report)),this.jsObject.reportParams.zoom!=f.a.StiZoomMode.PageWidth&&this.jsObject.reportParams.zoom!=f.a.StiZoomMode.PageHeight||(this.jsObject.reportParams.autoZoom=this.options.toolbar.zoom,this.jsObject.reportParams.zoom=100),(0<(null==(e=this.report)?void 0:e.pages.length)||0<(null==(t=this.report)?void 0:t.renderedPages.length))&&this.jsObject.postAction(null)},50)}},this.jsObject.getReportParameters=i=>{if(null!=this.report&&(this.currentReportGuid=(T.isNullOrEmpty(i.reportGuid)?this.report:i).reportGuid,T.isNullOrEmpty(i.drillDownGuid)?T.isNullOrEmpty(i.dashboardDrillDownGuid)||(this.currentReportGuid+="|"+i.dashboardDrillDownGuid):this.currentReportGuid+="|"+i.drillDownGuid,f.a.StiEditableFieldsHelper.applyEditableFieldsToReport(this.report,i.editableParameters),"DrillDown"==i.action&&(i.pageNumber=0),"Variables"!=i.action&&"Collapsing"!=i.action||"Report"!=i.reportType||(i.pageNumber=Math.min(i.pageNumber,this.report.renderedPages.count-1))),"Auto"==i.reportType){let t=F.getNestedPages(this.report),o=this.report.pages.toList().firstOrDefault(e=>(e.isDashboard?e.isEnabled:e.enabled)&&!t.contains(e));if(this.options.reportDesignerMode&&0e.isDashboard?e.isEnabled:e.enabled):o)||!o.isDashboard||"GetReport"!=i.action&&"OpenReport"!=i.action||o.invokeBeginRender(),i.reportType=null!=o&&o.isDashboard?"Dashboard":"Report",i.originalPageNumber=this.report.pages.indexOf(o),"Dashboard"==i.reportType&&(i.pageNumber=i.originalPageNumber)}let t={};if(t["action"]=i.action,t["refreshTime"]=null==this.report||this.report.isDocument?0:this.report.refreshTime,t["scrollTime"]=null==this.report?0:this.report.scrollTime,t["parameterWidth"]=null!=this.report?this.report.parameterWidth:0,t["parameterAlignment"]=I.getName(p,this.report.parameterAlignment),null==this.report||"GetReport"!=i.action&&"OpenReport"!=i.action||(t["customFonts"]=f.a.StiReportResourceHelper.getFontResourcesArray(this.report),this.report.containsDashboard&&(t["dashboards"]=F.getDashboards(this.report,this.options.appearance.combineReportPages))),("Report"==i.reportType||"GetReport"!=i.action&&"OpenReport"!=i.action)&&"InitVars"!=i.action&&(t["pagesArray"]=this.getPagesArray(this.report,{viewMode:i.viewMode,multiPageWidthCount:i.multiPageWidthCount,multiPageHeightCount:i.multiPageHeightCount,multiPageContainerWidth:i.multiPageContainerWidth,multiPageContainerHeight:i.multiPageContainerHeight,multiPageMargins:i.multiPageMargins,pageNumber:i.pageNumber,zoom:i.zoom,openLinksWindow:this.options.appearance.openLinksWindow,combineReportPages:this.options.appearance.combineReportPages},i)),"DashboardFiltering"==i.action||"DashboardSorting"==i.action||"DashboardElementDrillDown"==i.action||"DashboardElementDrillUp"==i.action){t["repaintOnlyDashboardContent"]=!0;let e=null;"DashboardFiltering"==i.action?e=i.dashboardFilteringParameters:"DashboardSorting"==i.action?e=i.dashboardSortingParameters:"DashboardElementDrillDown"!=i.action&&"DashboardElementDrillUp"!=i.action||(e=i.dashboardElementDrillDownParameters),null!=e&&(null!=e["elementName"]&&(t["currentElementName"]=e["elementName"]),null!=e["elementGroup"]&&(t["currentElementGroup"]=e["elementGroup"]),null!=e["filterGuid"])&&(t["filterGuid"]=e["filterGuid"])}return"GetPages"!=i.action&&(t["reportType"]=i.reportType,t["pagesCount"]=0,null!=this.report&&(t["reportGuid"]=this.report.reportGuid,t["isEditableReport"]=f.a.StiEditableFieldsHelper.checkEditableReport(this.report),t["isSignedReport"]=f.a.StiElectronicSignatureHelper.checkSignedReport(this.report),t["isCompilationMode"]=this.report.calculationMode==ga.Compilation,t["pagesCount"]=F.getPagesCount(this.report,i.originalPageNumber,this.options.appearance.combineReportPages),t["reportFileName"]=this.getReportFileName(),t["collapsingStates"]=this.report.interactionCollapsingStates,this.options.appearance.reportDisplayMode==E.FromReport&&(t["reportDisplayMode"]=I.getName(E,F.getReportDisplayModeFromReport(this.report))),null!=this.report.bookmark)&&0e.requestFromUser))),null!=i.userValues&&(t["userValues"]=i.userValues),t},this.jsObject.initAutoUpdateCache=(e,t)=>{},this.jsObject.postAjax=(e,t,h)=>{this.jsObject.service.isRequestInProcess++;let o=this.jsObject.createPostParameters(t,!0),i=B.System.Convert.fromBase64StringText(o["stiweb_parameters"]),d=JSON.parse(i);d["action"]=o["stiweb_action"],clearTimeout(this.jsObject.dashboardProcessTimeout),setTimeout(async()=>{var e,o,i,a,t,s;if("RefreshReport"==d["action"])this.report.invokeRefreshing(),"Dashboard"==d["reportType"]?(this.report.key=nt.generateKey(),Vi.clean()):await this.report.renderAsync2();else{if("ChangeTableElementSelectColumns"==d["action"]){let e=await pa.changeTableElementSelectColumns(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("ChangeChartElementViewState"==d["action"]){let e=await ca.changeChartElementViewState(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("DashboardGettingFilterItems"==d["action"]){let e=Ca.getFilterItems(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("DashboardViewData"==d["action"]){let e=await Ca.getViewData(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("GetDatePickerFormattedValues"==d["action"]){let e=fa.getFormattedValues(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("DashboardGetSingleElementContent"==d["action"]){let e=await F.getSingleElementContent(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("GetSignatureData"==d["action"]){let e=f.a.StiElectronicSignatureHelper.getSignatureData(this.report,d);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}if("GetPageNumberOfFoundResult"==d["action"]){let e=f.a.StiFindPanelHelper.getPageNumberOfFoundResult(this.report,d,this);return this.jsObject.service.isRequestInProcess--,h(JSON.stringify(e))}"Signatures"==d["action"]&&null!=d.signatures&&null!=(t=this.report)&&t.isDocument?(f.a.StiElectronicSignatureHelper.applySignatures(this.report,d.signatures),this.jsObject.service.isRequestInProcess--):null==this.report||!this.report.containsDashboard||"GetReport"!=d["action"]&&"OpenReport"!=d["action"]||await Ca.applyDefaultFiltersForFilterElements(this.report)}let n=this.jsObject.getReportParameters(d),l=n["pagesArray"];if(null!=l){let t=[];try{for(var r=!0,A=Ce(l),p;!(e=(p=await A.next()).done);r=!0){a=p.value,r=!1;let e=a;(e=e instanceof Oe?await e.promise():e)&&t.push(e)}}catch(e){o={error:e}}finally{try{r||e||!(i=A.return)||await i.call(A)}finally{if(o)throw o.error}}n["pagesArray"]=t}this.jsObject.service.isRequestInProcess--;let c=n["pagesArray"],g=d.htmlExportService;if(null!=g&&null!=c&&0this.jsObject.showReportPage(n,this.jsObject)):this.jsObject.showReportPage(n,this.jsObject)})},this.jsObject.postDesign=()=>{this.showProcessIndicator(),this.invokeDesignReport(),this.hideProcessIndicator()},this.jsObject.postAction);this.jsObject.postAction=(e,t,o,i)=>{if("Open"==e||"OpenDashboard"==e)return void this.invokeOpenReport(()=>A.call(this.jsObject,e,t,o,i));A.call(this.jsObject,e,t,o,i)},this.jsObject.postEmail=(e,t)=>{this.jsObject.postExport(e,t,f.a.StiExportAction.SendEmail)},this.jsObject.postOpen=(t,o)=>{let i=(e,t,o,i)=>{this.report&&Vi.clean(this.report),this.showProcessIndicator(),e=e.substring(e.indexOf("base64,")+"base64,".length);let a=B.System.Convert.fromBase64String(e),s=new tt;null!=t?i?s.loadEncryptedReport(a,t):s.loadEncryptedDocument(a,t):o?s.loadPacked(a):i?s.load(a):s.loadDocument(a),this.invokeOpenedReport(s,e=>this.report=e)};if(t&&(0<=t.toLowerCase().indexOf(".mdx")||0<=t.toLowerCase().indexOf(".mrx"))){let e=this.jsObject.InitializePasswordForm();e.show(function(e){i(o,e,!1,0<=t.toLowerCase().indexOf(".mrx"))},this.jsObject.collections.loc["PasswordEnter"]+":")}else t&&(0<=t.toLowerCase().indexOf(".mdz")||0<=t.toLowerCase().indexOf(".mrz"))?i(o,null,!0,0<=t.toLowerCase().indexOf(".mrz")):i(o,null,!1,t&&0<=t.toLowerCase().indexOf(".mrt"))},this.jsObject.postExport=(e,i,a=f.a.StiExportAction.ExportReport)=>{let s=D[e],n=null,t=(a==f.a.StiExportAction.SendEmail&&((n=new f.a.StiEmailSettings).email=i.Email,n.message=i.Message,n.subject=i.Subject),this.report.pages.toList().firstOrDefault(e=>!e.is(lo))||this.report.pages.getByIndex(0)),o=(this.report.currentPage="Dashboard"==this.jsObject.reportParams.type?this.jsObject.reportParams.pageNumber:this.report.pages.indexOf(t),this.jsObject.reportParams.editableParameters&&f.a.StiEditableFieldsHelper.applyEditableFieldsToReport(this.report,this.jsObject.reportParams.editableParameters),null),l=(o="Dashboard"==this.jsObject.reportParams.type?f.a.StiExportsHelper.getDashboardExportSettings(s,i):f.a.StiExportsHelper.getExportSettings(s,i),async t=>{if(s!=D.Document&&s!=D.Html&&s!=D.ImageSvg&&!ba.isAssemblyLoaded)return void ma.showError(new ua,!0);let o;if("Dashboard"==this.jsObject.reportParams.type){let e={pageNumber:this.jsObject.reportParams.pageNumber,elementName:a,dashboardWidth:this.report.pages.getByIndex(this.jsObject.reportParams.pageNumber).width,dashboardHeight:this.report.pages.getByIndex(this.jsObject.reportParams.pageNumber).height,gridPageNumbers:this.jsObject.tableElementGridPageNumbers,exportFormat:s};o=await f.a.StiExportsHelper.exportDashboardAsync(e,this.report,t.settings)}else o=await f.a.StiExportsHelper.exportReportAsync(s,i,this.report,t.settings);let e=async(e,t)=>{a==f.a.StiExportAction.SendEmail?await this.invokeEmailReport(n,s,t,e):Oo.saveAs(e,t,f.a.StiExportsHelper.getReportFileContentType(s,i))};this.invokeEndExportReport(s,t.fileName,t.openAfterExport,o,e)}),r=1==(null==i?void 0:i.OpenAfterExport),A=f.a.StiExportsHelper.getReportFileName(s,i,this.report);this.invokeBeginExportReport(o,s,A,r,a,l)},this.jsObject.postReportResource=(e,o)=>{if(null!=this.report){let t=this.report.dictionary.resources.getByName(e);if(null!=t&&null!=t.content){let e="SaveFile"==o?t.name+t.getFileExt():null;Oo.saveAs(t.content,e,t.getContentType())}}},this.jsObject.postPrint=e=>{this.invokePrintReport(e,i=>{switch(this.jsObject.reportParams.editableParameters&&f.a.StiEditableFieldsHelper.applyEditableFieldsToReport(i,this.jsObject.reportParams.editableParameters),e){case"PrintPdf":i.printToPdf(null,this.jsObject.controls.viewer);break;case"PrintWithPreview":{i.invokePrinting();let e=new Ze,t=new ya,o=(e.exportMode=this.options.appearance.reportDisplayMode==E.FromReport?F.getReportDisplayModeFromReport(i):this.options.appearance.reportDisplayMode,e.exportBookmarksMode=Sa.ReportOnly,e.useWatermarkMargins=!1,e.removeEmptySpaceAtBottom=!1,i.isPrinting=!0,new Da);t.exportToAsync(()=>{try{let e=o.toString();i.invokePrinted(e,e=>{let t=new Blob([e],{type:"text/html"});if(window.navigator&&window.navigator.msSaveOrOpenBlob){let e=this.getReportFileName();window.navigator.msSaveOrOpenBlob(t,e+".html")}else{let e=URL.createObjectURL(t);this.jsObject.openNewWindow(e)}})}finally{i.isPrinting=!1}},i,o,e);break}case"PrintWithoutPreview":{let e=this.options.appearance.reportDisplayMode==E.FromReport?F.getReportDisplayModeFromReport(i):this.options.appearance.reportDisplayMode;i.print(null,e);break}}})},this.jsObject.postInteraction=async s=>{let n=this.reportTemplate;if("InitVars"==s.action)return this.showProcessIndicator(),this.invokeInteraction("InitVars",s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,null,async t=>{if(0==t.preventDefault){await f.a.StiVariablesHelper.fillDialogInfoItems(n),t.variables&&f.a.StiVariablesHelper.applyReportBindingVariables(this.report,t.variables);let e;n.isDocument||(e=f.a.StiVariablesHelper.getVariables(this.report,t.variables,this.options.appearance.parametersPanelSortDataItems)),this.invokeInteraction("InitVars2",e,t.sortingParameters,t.collapsingParameters,t.drillDownParameters,null,e=>{this.jsObject.showParametersPanel(e.variables,this.jsObject)})}this.jsObject.postAjax(null,s)});if(null==n)return this.jsObject.postAjax(null,s);if(n.isDocument)return this.jsObject.postAjax(null,s);"DashboardDrillDown"==s.action&&s.drillDownParameters&&(s.drillDownParameters.isDashboardDrillDown=!0);let e=this.jsObject.reportParams.drillDownParameters||[];if(s.drillDownParameters=s.drillDownParameters?e.concat(s.drillDownParameters):e,null!=s.drillDownParameters&&0this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,null,e=>{s.variables=e.variables,s.sortingParameters=e.sortingParameters,s.collapsingParameters=e.collapsingParameters,s.drillDownParameters=e.drillDownParameters,0==e.preventDefault&&(f.a.StiVariablesHelper.applyReportParameters(n,e.variables),"Variables"==s.action)&&Vi.clean(n.key),t()}))),null!=s.drillDownParameters&&0this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,null,e));s.variables=e.variables,s.sortingParameters=e.sortingParameters,s.collapsingParameters=e.collapsingParameters,s.drillDownParameters=e.drillDownParameters}let e=n.reportGuid,o=("DashboardFiltering"!=s.action&&"DashboardSorting"!=s.action&&"DashboardResetAllFilters"!=s.action&&"DashboardButtonElementApplyEvents"!=s.action||!s.dashboardDrillDownGuid||(e+="|"+s.dashboardDrillDownGuid),this.reportCache[e]),i=((o=null==o?n:o).isRendered=!1,await x.parseDashboardDrillDownParameters(s.drillDownParameters,n),{});for(let e of s.drillDownParameters)0this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.dashboardElementDrillDownParameters,null,e=>{0==e.preventDefault&&ka.applyDashboardElementDrillDown(n,e.drillDownParameters),t()})),"DashboardElementDrillUp"==s.action&&null!=s.dashboardElementDrillDownParameters&&await new Promise(t=>this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.dashboardElementDrillDownParameters,null,e=>{0==e.preventDefault&&ka.applyDashboardElementDrillUp(n,e.drillDownParameters),t()})),"DashboardFiltering"==s.action&&await new Promise(t=>this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,s.dashboardFilteringParameters,e=>{0==e.preventDefault&&Ca.applyFiltering(n,e.filteringParameters),t()})),"DashboardResetAllFilters"==s.action&&await new Promise(t=>this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,null,async e=>{0==e.preventDefault&&await Ca.resetAllFilters(n,this.jsObject.reportParams.pageNumber),t()})),"DashboardSorting"==s.action&&await new Promise(t=>this.invokeInteraction(s.action,s.variables,s.dashboardSortingParameters,s.collapsingParameters,s.drillDownParameters,null,e=>{0==e.preventDefault&&wa.applySorting(n,e.sortingParameters),t()})),"DashboardButtonElementApplyEvents"==s.action&&await new Promise(t=>this.invokeInteraction(s.action,s.variables,s.sortingParameters,s.collapsingParameters,s.drillDownParameters,s.dashboardFilteringParameters,e=>{0==e.preventDefault&&ia.applyButtonEvent(n,e.filteringParameters),t()})),!n.isRendered&&!n.containsOnlyDashboard){n.isReportRenderingAfterSubmit=!0;try{await n.renderAsync2()}catch(e){this.jsObject.postAjax(null,s)}finally{n.isReportRenderingAfterSubmit=!1}}if(s.dashboardDrillDownGuid||s.drillDownGuid){let e=n.reportGuid;s.drillDownGuid?e+="|"+s.drillDownGuid:e+="|"+s.dashboardDrillDownGuid,this.reportCache[e]=n}this.jsObject.postAjax(null,s)},this._renderAfterCreate||this.jsObject.assignReport(this.report)}invokeComponentsEvents(e){let t=this.reportTemplate,o=e["PageIndex"],i=e["ComponentIndex"],a=e["Type"],s=e["DomComponent"],n=t.renderedPages.getByIndex(o[B.System.StiObject.stimulsoft]().toNumber()),l;if(null!=(l=T.isNullOrEmpty(i)?n:n.components.getByIndex(i[B.System.StiObject.stimulsoft]().toNumber())))switch(a){case"onclick":l.invokeClick(l,new ra(l,s));break;case"ondblclick":l.invokeDoubleClick(l,new sa(l,s));break;case"onmouseenter":l.invokeMouseEnter(l,new na(l,s));break;case"onmouseleave":l.invokeMouseLeave(l,new la(l,s));break}}invokePrepareVariables(e,t){"function"==typeof this.onPrepareVariables&&(e.sender="Viewer",this.onPrepareVariables(e,t))}invokeBeginProcessData(e,t){"function"==typeof this.onBeginProcessData&&(e.sender="Viewer",this.onBeginProcessData(e,t))}invokeEndProcessData(e){"function"==typeof this.onEndProcessData&&(e.sender="Viewer",this.onEndProcessData(e))}invokePrintReport(e,t){let o={sender:"Viewer",event:"PrintReport",preventDefault:!1,printAction:e,report:this.report,async:!1},i=()=>{i=()=>{},0==o.preventDefault&&t(o.report)};"function"==typeof this.onPrintReport&&this.onPrintReport(o,i),0==o.async&&i()}invokeBeginExportReport(e,t,o,i,a,s){let n={sender:"Viewer",event:"BeginExportReport",action:a,preventDefault:!1,async:!1,settings:e,format:t,formatName:D[t],fileName:o,openAfterExport:i,report:this.report},l=(this.showProcessIndicator(),this.report.invokeExporting(t),()=>{l=()=>{},0==n.preventDefault?s(n):this.hideProcessIndicator()});"function"==typeof this.onBeginExportReport&&this.onBeginExportReport(n,l),0==n.async&&l()}invokeEndExportReport(e,t,o,i,a){let s={sender:"Viewer",event:"EndExportReport",preventDefault:!1,format:e,formatName:D[e],fileName:t,openAfterExport:o,data:i,report:this.report,async:!1},n=(this.report.invokeExported(e),()=>{n=()=>{},setTimeout(async()=>{0==s.preventDefault&&await a(s.data,s.fileName),this.hideProcessIndicator()})});"function"==typeof this.onEndExportReport&&this.onEndExportReport(s,n),0==s.async&&n()}invokeInteraction(e,t,o,i,a,s,n){this.showProcessIndicator();let l={sender:"Viewer",event:"Interaction",async:!1,action:e,variables:t,sortingParameters:o,collapsingParameters:i,drillDownParameters:a,filteringParameters:s,report:this.report,preventDefault:!1},r=()=>{r=()=>{},n(l)};"function"==typeof this.onInteraction&&this.onInteraction(l,r),0==l.async&&r()}async invokeEmailReport(i,a,s,n){return new Promise(e=>{let t={sender:"Viewer",event:"EmailReport",async:!1,settings:i,format:a,fileName:s,formatName:D[a],data:n,report:this.report},o=()=>{o=()=>{},e()};"function"==typeof this.onEmailReport&&this.onEmailReport(t,o),0==t.async&&o()})}invokeDesignReport(){if("function"==typeof this.onDesignReport){let e={sender:"Viewer",event:"DesignReport",report:this.report};this.onDesignReport(e)}}invokeShowReport(e,t){let o={sender:"Viewer",event:"ShowReport",report:this.report,async:!1,preventDefault:!1,viewer:e},i=()=>{i=()=>{},0==o.preventDefault&&t(),this.hideProcessIndicator()};"function"==typeof this.onShowReport&&this.onShowReport(o,i),0==o.async&&i()}invokeOpenReport(e){let t={sender:"Viewer",event:"OpenReport",report:null,async:!1,preventDefault:!0},o=()=>{o=()=>{},0==t.preventDefault?e():t.report instanceof tt&&(this.report=t.report)};"function"==typeof this.onOpenReport?this.onOpenReport(t,o):t.preventDefault=!1,0==t.async&&o()}invokeOpenedReport(e,t){let o={sender:"Viewer",event:"OpenedReport",report:e,async:!1,preventDefault:!1},i=()=>{i=()=>{},0==o.preventDefault&&t(o.report),this.hideProcessIndicator()};"function"==typeof this.onOpenedReport?this.onOpenedReport(o,i):o.preventDefault=!1,0==o.async&&i()}getReportPageAsync(s,e,n,l,t){let r=new Oe,A=new Ze;switch(A.pageRange=new Q(M.CurrentPage,"",n),A.zoom=l,A.exportMode=this.options.appearance.reportDisplayMode==E.FromReport?F.getReportDisplayModeFromReport(s):this.options.appearance.reportDisplayMode,A.exportQuality=va.High,A.exportBookmarksMode=Sa.ReportOnly,A.removeEmptySpaceAtBottom=!1,A.openLinksTarget=t,A.useWatermarkMargins=!0,A.imageFormat=null,this.options.appearance.chartRenderType){case f.a.StiChartRenderType.AnimatedVector:A.chartType=ze.AnimatedVector;break;case f.a.StiChartRenderType.Vector:A.chartType=ze.Vector;break}let p=new Da;return oa.renderChartAnimations=!1,e.exportToAsync(()=>{let e=p.toString(),t={},o=(t["content"]=0e.enabled));0<=e&&(t=e)}if(A.pages.getByIndex(t).isDashboard)"RefreshReport"==c.action&&null!=(o=A.pages.getByIndex(t).as(lo))&&o.invokeRefreshing(),A.currentPage=t,h.push(F.getDashboardPageAsync(A,t,c));else{if(t=c.pageNumber,"SinglePage"==p.viewMode)A.currentPage=A.pages.indexOf(A.pages.toList().firstOrDefault(e=>e.name==A.renderedPages.getByIndex(te.name==A.renderedPages.getByIndex(tc.originalPageNumber){let t=A.pages.getByIndex(c.originalPageNumber).name,e=(A.currentPage=c.originalPageNumber,A.renderedPages.toList().findIndex2(e=>e.name==t)),o=A.renderedPages.toList().findLastIndex2(e=>e.name==t);0<=e&&0<=o&&(i+=e,a=o)}if("SinglePage"==p.viewMode)h.push(this.getReportPageAsync(A,g,i,p.zoom/100,p.openLinksWindow));else for(let e=i;e<=a;e++)h.push(this.getReportPageAsync(A,g,e,p.zoom/100,p.openLinksWindow))}else if("MultiPage"==p.viewMode){let o=p.multiPageWidthCount,e=p.multiPageHeightCount,a=(null==o&&(o=1),null==e&&(e=1),[]),i=Math.min(p.pageNumber+o*e,p.pageNumber+A.renderedPages.count);for(let t=0;t{if(null==t)return;t.onmousedown=null,t.onmouseup=null,t.onclick=null,t.ondblclick=null,t.onmousemove=null,t.onmouseover=null,t.onmousewheel=null,t.onmouseout=null,t.oncontextmenu=null,t.onmouseenter=null,t.onmouseleave=null,t.ontouchstart=null,t.ontouchmove=null,t.ontouchend=null,t.ontouchcancel=null,t.onkeydown=null,t.onkeypress=null,t.onkeyup=null,t.onfocus=null,t.onblur=null,t.onchange=null,t.onsubmit=null,t.onscroll=null,t.onresize=null,t.onhashchange=null,t.onload=null,t.onunload=null,t.onbeforeunload=null,t.ondrag=null,t.ondrop=null;for(let e=0;e{let o=new B.Report.Export[t];return e[t]=o.toParameters(),e},{});if(B.Report.Dashboard.StiDashboardAssembly.isAssemblyLoaded){let e=["Pdf","Excel","Data","Image","Html"];for(let o of e){let e=B.Report.StiExportFormat[o],t=S.invokeStaticMethod("Stimulsoft.Dashboard","Export.Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[e],[xi.getType(e)]);i["Dashboard"+o]=t.toParameters()}}return i}serializeObject(o,i){for(let t in o)if("object"==typeof o[t])if(o[t]instanceof w){let e=o[t];e.isNamedColor?i[t]=e.name:i[t]=T.format("#{0:X2}{1:X2}{2:X2}",e.r,e.g,e.b)}else i[t]={},this.serializeObject(o[t],i[t]);else{if(o instanceof qs&&("width"==t||"height"==t))continue;i[t]=o[t],o instanceof f.a.StiAppearanceOptions&&("pageAlignment"==t?i[t]=f.a.StiContentAlignment[o[t]]:"interfaceType"==t?i[t]=f.a.StiInterfaceType[o[t]]:"chartRenderType"==t?i[t]=f.a.StiChartRenderType[o[t]]:"htmlRenderMode"==t||"reportDisplayMode"==t?i[t]=E[o[t]]:"datePickerFirstDayOfWeek"==t?i[t]=f.a.StiFirstDayOfWeek[o[t]]:"parametersPanelPosition"==t?i[t]=f.a.StiParametersPanelPosition[o[t]]:"theme"==t?i[t]=I.getName(f.a.StiViewerTheme,o[t]):"iconSet"==t&&(i[t]=I.getName(f.a.StiWebUIIconSet,o[t]))),o instanceof f.a.StiToolbarOptions&&("alignment"==t?i[t]=f.a.StiContentAlignment[o[t]]:"printDestination"==t?i[t]=f.a.StiPrintDestination[o[t]]:"viewMode"==t||"showMenuMode"==t?i[t]=f.a.StiWebViewMode[o[t]]:"displayMode"==t&&(i[t]=f.a.StiToolbarDisplayMode[o[t]]))}}getCultureName(){return t._cultureName||(t.cultureName=f.a.StiJsViewer.GetCookie("cultureName"),B.Report["Check"]&&(B.Report["Check"].StiLocalizationExt.cultureName=t.cultureName)),t.cultureName}}f.a.StiViewerOptions=qs}{class _s{constructor(){this.interaction=new $s}}f.a.StiRequestParams=_s;class $s{constructor(){this.variables={},this.sorting={},this.collapsing={},this.drillDown=[],this.editable={},this.dashboardFiltering={},this.dashboardSorting={}}}f.a.StiInteractionParams=$s}f.a.StiThemesHelper=class{static getThemeName(e,t){let o=I.getName(e,t);if(o.startsWith("Simple"))return"Simple";if(o.startsWith("Office2007"))return"Office2007";if(o.startsWith("Office2010"))return"Office2010";if(o.startsWith("Office2013"))return"Office2013";if(o.startsWith("Office2022"))return"Office2022";return o}static getAccentTheme(e,t){return I.getName(e,t)}static replaceStyleConstants(e,t){if(t){t.sort((e,t)=>t[0].length-e[0].length);for(const[o,i]of t)e=e[B.System.StiObject.stimulsoft]().replaceAll(o,i)}return e}static applyTheme(e,t,o){var i;let a="stimulsoft_"+o+"Themes",s=(null!=(i=document.getElementById(a))&&i.remove(),B[o].Themes["__global"].accents),n=B[o].Themes[e],l=n.stylesText.map(e=>"number"==typeof e?s[e]:e).join("\n"),r=(l=this.replaceStyleConstants(l,n.accents[t]),document.createElement("style"));r.id=a,r.appendChild(document.createTextNode(l)),document.head.appendChild(r)}static checkThemeInCss(e){return null}static getImage(e,t){if(null==e)return null;let o=t.pop();if(1==t.length)return e[o+`.`+t.pop()];return this.getImage(e[o],t)}static getImageSource(e,t,o){var i,a;let s=+t.imagesScalingFactor,n="Office2013",l="",r=f.a.StiWebUIIconSet[null!=(i=t.iconSet)?i:t.appearance.iconSet],A=null!=(a=t.theme)?a:t.appearance.theme,p=A.startsWith("Office2013"),c=0<=A.indexOf("Black"),g=(r==f.a.StiWebUIIconSet.Auto?(n=p?"Office2013":"Office2022",p||(l=c?"Dark":"Light")):r==f.a.StiWebUIIconSet.Monoline?(n="Office2022",l=c?"Dark":"Light"):r==f.a.StiWebUIIconSet.Regular&&(n="Office2013"),""),h=(e==f.a&&n&&(g+="Themes."),n&&(g+=n+"."),l&&(g+=l+"."),g+=o,f.a.StiThemesHelper.getImageSourceInternal(e,g,s));return null==h&&(e==f.a?g=o:p||(g="Office2013."+o),h=f.a.StiThemesHelper.getImageSourceInternal(e,g,s)),h}static getImageSourceInternal(a,s,n){if(1<=(n=Math.floor(4*n)/4)&&"string"==typeof s&&0")),t.text=e,t.excelDataValue=null}}}}}}catch(e){B.System.StiError.showError(e)}}},B.Base.StiSignatureFontsHelper),Pa=B.Report.Import.ObjectHeader,xa=B.System.StiArray,Ua=B.Report.Import.OleUnit,Fa=B.System.Drawing.FontStyle,Qa=B.Base.SignatureFonts.StiSignatureStyle,Ma=B.Report.Components.StiSignatureMode,Ja=B.Report.Components.StiElectronicSignature;{class en{static applySignatures(o,e){var i,a;if(null==e||0==e.length)return;for(let t of e){let e=o.isDocument?null==(i=o.getRenderedComponents().toList().firstOrDefault(e=>e.name==t["name"]))?void 0:i.as(Ja):null==(a=o.getComponentByName(t["name"]))?void 0:a.as(Ja);null!=e&&(e.alreadySigned=C.toBoolean(t["alreadySigned"]),e.type.fullName=t["typeFullName"],e.type.initials=t["typeInitials"],e.type.style=I.parse(Qa,t["typeStyle"]),e.mode=I.parse(Ma,t["signatureMode"]),e.text.text=We.UTF8.getString(C.fromBase64String(t["drawText"])),e.text.font=en.jsonToFont(t["drawTextFont"]),e.text.color=en.stringToColor(t["drawTextColor"]),e.text.horAlignment=I.parse(It,t["drawTextHorAlignment"]),e.image.image=T.isNullOrEmpty(t["drawImage"])?null:en.base64ToByteArray(t["drawImage"]),e.image.horAlignment=I.parse(p,t["drawImageHorAlignment"]),e.image.vertAlignment=I.parse(Tt,t["drawImageVertAlignment"]),e.image.stretch=C.toBoolean(t["drawImageStretch"]),e.image.aspectRatio=C.toBoolean(t["drawImageAspectRatio"]),e.draw.image=T.isNullOrEmpty(t["drawCanvasContent"])?null:en.base64ToByteArray(t["drawCanvasContent"]))}o.isDocument||(o.isRendered=!1)}static clearSignature(e,t){var o,i;let a=e.isDocument?null==(o=e.getRenderedComponents().toList().firstOrDefault(e=>e.name==t["signatureName"]))?void 0:o.as(Ja):null==(i=e.getComponentByName(t["signatureName"]))?void 0:i.as(Ja);null!=a&&(a.type.fullName="",a.type.initials="",a.text.text="",a.image.image=null,a.draw.image=null,a.alreadySigned=!1),e.isDocument||(e.isRendered=!1)}static getSignatureData(e,t){let o=C.toBoolean(t["getStyles"]),i={};return i["signatures"]=this.getSignatureComponents(e),o&&(i["styles"]=this.getStylesForSignature()),i}static getSignatureComponents(e){let o=[];for(let t of e.getRenderedComponents().list)if(t.is(Ja)&&t.enabled&&!t.alreadySigned){let e=t.as(Ja);o.push({name:e.name,signatureMode:I.getName(Ma,e.mode),typeFullName:e.type.fullName,typeInitials:e.type.initials,typeStyle:I.getName(Qa,e.type.style),drawText:C.toBase64String(We.UTF8.getBytes(e.text.text)),drawTextFont:x.getFontJson(e.text.font),drawTextColor:this.colorToString(e.text.color),drawTextHorAlignment:I.getName(It,e.text.horAlignment),drawImage:null!=e.image.image?this.imageToBase64(e.image.image):"",drawImageHorAlignment:I.getName(p,e.image.horAlignment),drawImageVertAlignment:I.getName(Tt,e.image.vertAlignment),drawImageStretch:e.image.stretch,drawImageAspectRatio:e.image.aspectRatio,drawCanvasContent:null!=e.draw.image?this.imageToBase64(e.draw.image):"",allowCleanSignature:e.allowCleanSignature})}return o}static getStylesForSignature(){let e=[];return e.push({styleName:"Style1",fontName:Ia.getFontName(Qa.Style1)}),e.push({styleName:"Style2",fontName:Ia.getFontName(Qa.Style2)}),e.push({styleName:"Style3",fontName:Ia.getFontName(Qa.Style3)}),e}static checkSignedReport(t){if(0==(t.previewSettings&a.Signature))return!1;for(let e of t.getRenderedComponents().list)if(e.is(Ja)&&e.enabled&&!e.alreadySigned)return!0;return!1}static colorToString(e){return 0==e.a?"transparent":255==e.a?T.format("{0},{1},{2}",e.r.toString(),e.g.toString(),e.b.toString()):T.format("{0},{1},{2},{3}",e.a.toString(),e.r.toString(),e.g.toString(),e.b.toString())}static stringToColor(n){let l=w.transparent;if(!T.isNullOrEmpty(n)&&"transparent"!=n){let e=n.split(","),t=4<=e.length,o=t?C.toInt32(e[0]):255,i=C.toInt32(e[t?1:0]),a=C.toInt32(e[t?2:1]),s=C.toInt32(e[t?3:2]);l=0==o&&255==i&&255==a&&255==s?w.transparent:w.fromArgb(o,i,a,s)}return l}static jsonToFont(e){let t=e["name"],o=C.toDouble(e["size"]),i=0;return C.toBoolean(e["bold"])&&(i|=Fa.Bold),C.toBoolean(e["italic"])&&(i|=Fa.Italic),C.toBoolean(e["underline"])&&(i|=Fa.Underline),C.toBoolean(e["strikeout"])&&(i|=Fa.Strikeout),new Do(t,o,i)}static imageToBase64(o){if(Ua.isOleHeader(o)){let e=new Pa(o),t=xa.create(Number,o.length-e.headerLen);xa.copy2(o,e.headerLen,t,0,o.length-e.headerLen),o=t}let e="data:image;base64,";return B.Report.Components.StiImageHelper.isPng(o)?e="data:image/png;base64,":B.Report.Components.StiImageHelper.isBmp(o)?e="data:image/bmp;base64,":B.Report.Components.StiImageHelper.isJpeg(o)?e="data:image/jpeg;base64,":B.Report.Components.StiImageHelper.isGif(o)?e="data:image/gif;base64,":B.Report.Components.StiImageHelper.isSvg(o)&&(e="data:image/svg+xml;base64,"),e+C.toBase64String(o)}static base64ToByteArray(e){if(T.isNullOrEmpty(e))return null;return C.fromBase64String(0<=e.indexOf("base64,")?e.substring(e.indexOf("base64,")+7):e)}}f.a.StiElectronicSignatureHelper=en}let Ga=B.Report.Export.StiPdfComplianceMode,l=B.System.StiNumber,Ha=B.Report.Export.StiImageType,Va=B.Report.Export.StiTxtBorderType,Oa=B.Report.Export.StiDataType,Na=B.Report.Components.StiPageOrientation,La=B.System.Drawing.Printing.PaperKind,Xa=B.Report.Export.StiDataExportMode,ja=B.Report.Export.StiHtmlType,Ya=B.Report.ImageFormat,Ka=B.Report.Export.StiPdfAllowEditable,Wa=B.Report.Export.StiPdfImageCompressionMethod,za=B.Report.Export.StiPdfEncryptionKeyLength,Za=B.Report.Export.StiUserAccessPrivileges,qa=B.Report.Export.StiExcelType,_a=B.Report.Dashboard.Export.IStiPdfDashboardExportSettings,$a=B.Report.Dashboard.Export.IStiExcelDashboardExportSettings,es=B.Report.Dashboard.Export.IStiDataDashboardExportSettings,ts=B.Report.Export.StiExcelRestrictEditing,os=B.Report.Export.StiWordRestrictEditing,is=B.Report.Export.StiPdfExportSettings,as=B.Report.Export.StiXpsExportSettings,ss=B.Report.Export.StiPowerPointExportSettings,ns=B.Report.Export.StiTxtExportSettings,ls=B.Report.Export.StiWordExportSettings,rs=B.Report.Export.StiOdtExportSettings,As=B.Report.Export.StiExcelExportSettings,ps=B.Report.Export.StiOdsExportSettings,cs=B.Report.Export.StiImageExportSettings,gs=B.Report.Export.StiDataExportSettings,hs=B.Report.Export.StiRtfExportSettings,n=B.Base.StiObjectConverter,ds=B.Report.Export.StiImageFormat,us=B.Report.Export.StiMonochromeDitheringType,ms=B.Report.Export.StiTiffCompressionScheme,bs=B.Report.Export.StiDbfCodePages,fs=B.Report.Export.StiImageResolutionMode,ws=B.Report.Export.StiPdfAutoPrintMode,Cs=B.Report.Export.StiRtfExportMode,Bs=(f.a.StiExportsHelper=class{static getReportFileContentType(e,t){switch(e){case D.Document:switch(this.getExportDocumentExt(t)){case"mdc":return"text/xml";case"mdz":return"application/zip";case"mdx":return"application/octet-stream"}break;case D.Pdf:return"application/pdf";case D.Xps:return"application/vnd.ms-xpsdocument";case D.PowerPoint:return"application/vnd.ms-powerpoint";case D.Text:return"text/plain";case D.Rtf:return"application/rtf";case D.Word:return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";case D.Odt:return"application/vnd.oasis.opendocument.text";case D.Ods:return"application/vnd.oasis.opendocument.spreadsheet";case D.Html:case D.Html5:return"text/html";case D.Mht:return"message/rfc822";case D.Excel:case D.Excel2007:return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case D.Csv:return"text/csv";case D.Dbf:return"application/dbf";case D.Xml:return"application/xml";case D.Json:return"application/json";case D.Dif:return"video/x-dv";case D.Sylk:return"application/excel";case D.ImageBmp:return"image/bmp";case D.ImageGif:return"image/gif";case D.ImageJpeg:return"image/jpeg";case D.ImagePcx:return"image/x-pcx";case D.ImagePng:return"image/png";case D.ImageTiff:return"image/tiff";case D.ImageEmf:return"image/x-emf";case D.ImageSvg:case D.ImageSvgz:return"image/svg+xml"}if(e==D.Image&&null!=t&&"ImageType"in t)switch(t["ImageType"].toString()){case"Bmp":return"image/bmp";case"Gif":return"image/gif";case"Jpeg":return"image/jpeg";case"Pcx":return"image/x-pcx";case"Png":return"image/png";case"Tiff":return"image/tiff";case"Emf":return"image/x-emf";case"Svg":case"Svgz":return"image/svg+xml"}return"text/plain"}static getReportFileName(e,t,o){let i=null==o.reportAlias||0==o.reportAlias.trim().length?o.reportName:o.reportAlias;switch(i=i.split('"').join(""),i+=".",e){case D.Document:return i+this.getExportDocumentExt(t);case D.Excel:return i+"xlsx";case D.PowerPoint:return i+"pptx";case D.Text:return i+"txt";case D.Word:return i+"docx";case D.Html5:return i+"html";case D.Sylk:return i+"slk"}let a=I.getName(D,e).toLowerCase().split("image").join("");return"data"==(a=null!=t&&"ImageType"in t&&(T.isNullOrEmpty(a)&&(a=t["ImageType"].toString().toLowerCase()),t["CompressToArchive"])?"zip":a)&&null!=t&&"DataType"in t&&(a=t["DataType"].toString().toLowerCase()),i+a}static getExportDocumentExt(e){return null!=(null==e?void 0:e.Format)?e.Format.toString().toLowerCase():"mdc"}static getExportSettings(e,t){switch(e){case D.Pdf:return this.getPdfExportSettings(t);case D.Xps:return this.getXpsExportSettings(t);case D.PowerPoint:return this.getPowerPointExportSettings(t);case D.Text:return this.getTextExportSettings(t);case D.Rtf:return this.getRtfExportSettings(t);case D.Word:return this.getWordExportSettings(t);case D.Odt:return this.getOdtExportSettings(t);case D.Ods:return this.getOdsExportSettings(t);case D.Html:case D.Html5:case D.Mht:return this.getHtmlExportSettings(t);case D.Excel:return this.getExcelExportSettings(t);case D.Csv:case D.Dbf:case D.Xml:case D.Json:case D.Dif:case D.Sylk:return this.getDataExportSettings(t);case D.ImageBmp:case D.ImageGif:case D.ImageJpeg:case D.ImagePcx:case D.ImagePng:case D.ImageTiff:case D.ImageEmf:case D.ImageSvg:case D.ImageSvgz:return this.getImageExportSettings(t)}return null}static getPdfExportSettings(o){let i=new is;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"EmbeddedFonts":i.embeddedFonts=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"StandardPdfFonts":i.standardPdfFonts=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"Compressed":i.compressed=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ExportRtfTextAsImage":i.exportRtfTextAsImage=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"PasswordInputUser":i.passwordInputUser=e;break;case"PasswordInputOwner":i.passwordInputOwner=e;break;case"UserAccessPrivileges":i.userAccessPrivileges=e[B.System.StiObject.stimulsoft]().replaceAll(" ","").split(",").reduce((e,t)=>e+I.parse(Za,t),0);break;case"KeyLength":i.keyLength=I.parse(za,e);break;case"UseUnicode":i.useUnicode=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"UseDigitalSignature":i.useDigitalSignature=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"GetCertificateFromCryptoUI":i.getCertificateFromCryptoUI=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"CreatorString":i.creatorString=e;break;case"KeywordsString":i.keywordsString=e;break;case"ImageCompressionMethod":i.imageCompressionMethod=I.parse(Wa,e);break;case"ImageFormat":i.imageFormat=I.parse(ds,e);break;case"DitheringType":i.ditheringType=I.parse(us,e);break;case"PdfACompliance":i.pdfComplianceMode=e[B.System.StiObject.stimulsoft]().toBoolean()?null!=o["PdfComplianceMode"]?I.parse(Ga,o["PdfComplianceMode"]):Ga.A1:Ga.None;break;case"AutoPrintMode":i.autoPrintMode=I.parse(ws,e);break;case"AllowEditable":i.allowEditable=I.parse(Ka,e);break;case"ImageResolutionMode":i.imageResolutionMode=I.parse(fs,e);break}}return i}static getXpsExportSettings(o){let i=new as;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"ExportRtfTextAsImage":i.exportRtfTextAsImage=e[B.System.StiObject.stimulsoft]().toBoolean();break}}return i}static getPowerPointExportSettings(o){let i=new ss;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"EncryptionPassword":i.encryptionPassword=e;break}}return i}static getHtmlExportSettings(o){let i=new Ze;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"HtmlType":i.htmlType=I.parse(ja,e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"Encoding":i.encoding=this.getEncoding(e);break;case"Zoom":i.zoom=n.convertToNumber(e);break;case"ExportMode":i.exportMode=I.parse(E,e);break;case"ExportQuality":i.exportQuality=I.parse(va,e);break;case"AddPageBreaks":i.addPageBreaks=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"BookmarksTreeWidth":i.bookmarksTreeWidth=e[B.System.StiObject.stimulsoft]().toNumber();break;case"ExportBookmarksMode":i.exportBookmarksMode=I.parse(Sa,e);break;case"UseStylesTable":i.useStylesTable=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"RemoveEmptySpaceAtBottom":i.removeEmptySpaceAtBottom=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"PageHorAlignment":i.pageHorAlignment=I.parse(p,e);break;case"CompressToArchive":i.compressToArchive=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"UseEmbeddedImages":i.useEmbeddedImages=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ContinuousPages":i.continuousPages=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageFormat":switch(e){case"Bmp":i.imageFormat=Ya.Bmp;break;case"Emf":i.imageFormat=Ya.Emf;break;case"Gif":i.imageFormat=Ya.Gif;break;case"Jpeg":i.imageFormat=Ya.Jpeg;break;case"Png":i.imageFormat=Ya.Png;break;case"Tiff":i.imageFormat=Ya.Tiff;break}break}}return i}static getTextExportSettings(o){let i=new ns;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"Encoding":i.encoding=this.getEncoding(e);break;case"DrawBorder":i.drawBorder=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"BorderType":i.borderType=I.parse(Va,e);break;case"KillSpaceLines":i.killSpaceLines=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"KillSpaceGraphLines":i.killSpaceGraphLines=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"PutFeedPageCode":i.putFeedPageCode=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"CutLongLines":i.cutLongLines=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ZoomX":i.zoomX=n.convertToNumber(e);break;case"ZoomY":i.zoomY=n.convertToNumber(e);break;case"UseEscapeCodes":i.useEscapeCodes=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"EscapeCodesCollectionName":i.escapeCodesCollectionName=e;break}}return i}static getRtfExportSettings(o){let i=new hs;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"CodePage":i.codePage=e[B.System.StiObject.stimulsoft]().toNumber();break;case"ExportMode":i.exportMode=I.parse(Cs,e);break;case"UsePageHeadersAndFooters":i.usePageHeadersAndFooters=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"RemoveEmptySpaceAtBottom":i.removeEmptySpaceAtBottom=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"StoreImagesAsPng":i.storeImagesAsPng=e[B.System.StiObject.stimulsoft]().toBoolean();break}}return i}static getWordExportSettings(o){let i=new ls;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"UsePageHeadersAndFooters":i.usePageHeadersAndFooters=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"RemoveEmptySpaceAtBottom":i.removeEmptySpaceAtBottom=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"CompanyString":i.companyString=e;break;case"LastModifiedString":i.lastModifiedString=e;break;case"RestrictEditing":i.restrictEditing=I.parse(os,e);break;case"EncryptionPassword":i.encryptionPassword=e;break;case"ProtectionPassword":i.protectionPassword=e;break}}return i}static getOdtExportSettings(o){let i=new rs;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"UsePageHeadersAndFooters":i.usePageHeadersAndFooters=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"RemoveEmptySpaceAtBottom":i.removeEmptySpaceAtBottom=e[B.System.StiObject.stimulsoft]().toBoolean();break}}return i}static getExcelExportSettings(o){let i=new As;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ExcelType":i.excelType=I.parse(qa,e);break;case"UseOnePageHeaderAndFooter":i.useOnePageHeaderAndFooter=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"DataExportMode":i.dataExportMode=I.parse(Xa,e);break;case"ExportPageBreaks":i.exportPageBreaks=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ExportObjectFormatting":i.exportObjectFormatting=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ExportEachPageToSheet":i.exportEachPageToSheet=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"CompanyString":i.companyString=e;break;case"LastModifiedString":i.lastModifiedString=e;break;case"RestrictEditing":i.restrictEditing=I.parse(ts,e);break;case"EncryptionPassword":i.encryptionPassword=e;break;case"ProtectionPassword":i.protectionPassword=e;break}}return i}static getOdsExportSettings(o){let i=new ps;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ImageResolution":i.imageResolution=n.convertToNumber(e);break;case"ImageQuality":i.imageQuality=n.convertToNumber(e);break}}return i}static getDataExportSettings(o){let i=new gs;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"DataType":i.dataType=I.parse(Oa,e);break;case"DataExportMode":i.dataExportMode=I.parse(Xa,e);break;case"Encoding":i.encoding=this.getEncoding(e);break;case"ExportDataOnly":i.exportDataOnly=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"CodePage":i.codePage=I.parse(bs,e);break;case"Separator":i.separator=e;break;case"SkipColumnHeaders":i.skipColumnHeaders=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"UseDefaultSystemEncoding":i.useDefaultSystemEncoding=e[B.System.StiObject.stimulsoft]().toBoolean();break}}return i}static getImageExportSettings(o){let i=new cs;for(let t in o){let e=null!=o[t]?o[t].toString():null;switch(t){case"PageRange":case"PagesRange":i.pageRange="All"==e?new Q(M.All):new Q(M.Pages,e);break;case"ImageType":i.imageType=I.parse(Ha,e);break;case"ImageZoom":i.imageZoom=n.convertToNumber(e);break;case"ImageResolution":i.imageResolution=e[B.System.StiObject.stimulsoft]().toNumber();break;case"CutEdges":i.cutEdges=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"ImageFormat":i.imageFormat=I.parse(ds,e);break;case"MultipleFiles":i.multipleFiles=e[B.System.StiObject.stimulsoft]().toBoolean();break;case"DitheringType":i.ditheringType=I.parse(us,e);break;case"TiffCompressionScheme":i.tiffCompressionScheme=I.parse(ms,e);break;case"CompressToArchive":i.compressToArchive=e[B.System.StiObject.stimulsoft]().toBoolean();break}}return i}static getDashboardExportSettings(e,t){switch(e){case D.Pdf:return this.getPdfDashboardExportSettings(t);case D.Excel:return this.getExcelDashboardExportSettings(t);case D.Data:return this.getDataDashboardExportSettings(t);case D.Image:return this.getImageDashboardExportSettings(t);case D.Html:return this.getHtmlDashboardExportSettings(t)}return null}static getPdfDashboardExportSettings(t){let o=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[D.Pdf]);if(null!=o&&o[B.System.StiObject.stimulsoft]().is(_a)){let e=o[B.System.StiObject.stimulsoft]().as(_a);return e.paperSize=I.parse(La,t["PaperSize"]),e.orientation=I.parse(Na,t["Orientation"]),e.imageQuality=parseFloat(t["ImageQuality"]),e}return o}static getExcelDashboardExportSettings(t){let o=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[D.Excel]);if(null!=o&&o[B.System.StiObject.stimulsoft]().is($a)){let e=o[B.System.StiObject.stimulsoft]().as($a);return e.imageQuality=parseFloat(t["ImageQuality"]),e.exportDataOnly=t["ExportDataOnly"],e}return o}static getDataDashboardExportSettings(t){let o=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[D.Data]);if(null!=o&&o[B.System.StiObject.stimulsoft]().is(es)){let e=o[B.System.StiObject.stimulsoft]().as(es);return e.dataType=I.parse(Oa,t["DataType"]),e}return o}static getImageDashboardExportSettings(t){let i=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[D.Image]);for(let e of Oo.keys(t)){let o=null!=t[e]?t[e].toString():null;switch(e){case"ImageType":i.imageType=I.parse(Ha,o);break;case"Scale":{let e=100,t=l.tryParse(o);t.successfully&&(e=t.result),i.scale=e;break}}}return i}static getHtmlDashboardExportSettings(t){let i=S.invokeStaticMethod("Stimulsoft.Dashboard.Export","Helpers.StiExportSettingsHelper","getDashboardExportSettings2",[D.Html]);for(let e of Oo.keys(t)){let o=null!=t[e]?t[e].toString():null;switch(e){case"ImageQuality":{let e=100,t=l.tryParse(o);t.successfully&&(e=t.result),i.imageQuality=e;break}case"Scale":{let e=100,t=l.tryParse(o);t.successfully&&(e=t.result),i.scale=e;break}case"EnableAnimation":i.enableAnimation=C.toBoolean(o);break}}return i}static getEncoding(e){return B.System.Text.Encoding.getEncoding(null==e?void 0:e[B.System.StiObject.stimulsoft]().toNumber())}static async exportDashboardAsync(t,o,i){var a;let s=o.pages.getByIndex(t.pageNumber),n=(s=s.enabled?s:o.pages.toList().firstOrDefault(e=>e.enabled&&e.isDashboard)).getElements(!1,null).firstOrDefault(e=>e.name==t.elementName),l=t["gridPageNumbers"];if(null!=l)for(let t in l){let e=null==(a=s.getElements(!1,null).firstOrDefault(e=>e.key==t))?void 0:a.as(yo);null!=e&&(e.currentPageIndex=C.toInt32(l[t])-1)}if(null!=i&&i[B.System.StiObject.stimulsoft]().is($a)&&(i.width=t.dashboardWidth,i.height=t.dashboardHeight),t.exportFormat==D.Document){let e=f.a.StiReportCopier.cloneReport(o,!1),t=(T.isNullOrEmpty(o.reportGuid)||(e.reportGuid=o.reportGuid),await e.saveSnapshot());return t}{await f.c.StiDataFiltersHelper.checkInvoikeResetAllFilters(o,o.exportingEvent,t.pageNumber);let e=await S.invokeStaticMethod("Stimulsoft.Dashboard.Export","StiDashboardExportTools","exportToStream",[null!=n?n:s,i]);return e}}static async exportReportAsync(e,t,o,i){let a=null,s=new Da,n=!1;switch(e){case D.Document:switch(this.getExportDocumentExt(t)){case"mdc":return o.saveDocumentToJsonString();case"mdz":return o.savePackedDocumentToByteArray();case"mdx":{let e=null!=t["SaveReportPassword"]?t["SaveReportPassword"]:"";return o.saveEncryptedDocumentToByteArray(e)}}break;case D.Pdf:a=new B.Report.Export["StiPdfExportService"],n=!0;break;case D.Xps:a=new B.Report.Export["StiXpsExportService"],n=!0;break;case D.PowerPoint:a=new B.Report.Export["StiPowerPointExportService"],n=!0;break;case D.Html:a=new B.Report.Export["StiHtmlExportService"];break;case D.Html5:a=new B.Report.Export["StiHtml5ExportService"];break;case D.Text:a=new B.Report.Export["StiTxtExportService"];break;case D.Rtf:a=new B.Report.Export["StiRtfExportService"],n=!0;break;case D.Word:a=new B.Report.Export["StiWordExportService"],n=!0;break;case D.Odt:a=new B.Report.Export["StiOdtExportService"],n=!0;break;case D.Excel:a=new B.Report.Export["StiExcelExportService"],n=!0;break;case D.Ods:a=new B.Report.Export["StiOdsExportService"],n=!0;break;case D.Dbf:n=!0;case D.Csv:case D.Xml:case D.Json:case D.Dif:case D.Sylk:a=new B.Report.Export["StiDataExportService"];break;case D.ImageBmp:case D.ImageGif:case D.ImageJpeg:case D.ImagePcx:case D.ImagePng:case D.ImageTiff:case D.ImageEmf:case D.ImageSvg:case D.ImageSvgz:a=new B.Report.Export["StiImageExportService"],n=!0;break}return null!=a&&await a.exportTo2(o,s,i),n?s.toArray():s.toString()}},f.a.StiFindPanelHelper=class{static getPageNumberOfFoundResult(a,e,t){let s={},n=e["searchText"],o=e["searchDirection"],l=parseInt(e["pageNumber"]),i=a.renderedPages.count,r=t.options.appearance.reportDisplayMode==E.FromReport?f.a.StiReportHelper.getReportDisplayModeFromReport(a):t.options.appearance.reportDisplayMode,A=new ya;if(A.insertInteractionParameters=!0,A.renderAsDocument=r!=E.Table,A.styles=[],A.clearOnFinish=!1,A.renderStyles=!1,A.exportServiceId=t.viewerId,!T.isNullOrEmpty(n))while(1){if("Next"==o?l++:l--,!(0<=l&&l{if(o.is($t)){let e=i.getComponentByName(o.name),t=null!=e?e.as($t):null;if(null!=t){let e=o.as($t);e.drillDownCurrentLevel=t.drillDownCurrentLevel,e.drillDownFilters=t.drillDownFilters,e.drillDownFiltersList=t.drillDownFiltersList}}})}static copyFilterElementsUserFilters(e,i){e.getComponents().toList().forEach(t=>{var o;if(t.is(Lo)){let e=t.as(Ti);if(null!=e&&0<(null==(o=e.userFilters)?void 0:o.length)){let e=i.getComponentByName(t.name);e.is(Ti)&&(e.userFilters=t.userFilters)}}})}static copyEventsFunction(e,t){let i=e.getComponents().list,a=t.getComponents().list;for(let o=0;o!e))return[]}return 0null!=e&&(null==e?void 0:e[B.System.StiObject.stimulsoft]().toString())==(null==o?void 0:o[B.System.StiObject.stimulsoft]().toString()));for(let e of t.dialogInfo.bindingVariable.dialogInfo.valuesBindingList)if(null!=e&&null!=o&&e[B.System.StiObject.stimulsoft]().toList().any(e=>null!=e&&(null==e?void 0:e[B.System.StiObject.stimulsoft]().toString())==(null==o?void 0:o[B.System.StiObject.stimulsoft]().toString()))){let e=null!=i?i[t.name]:null;return!(null!=e&&0null!=e&&(null==e?void 0:e[B.System.StiObject.stimulsoft]().toString())==(null==o?void 0:o[B.System.StiObject.stimulsoft]().toString()))}}}else{let e=null==(a=JSON.parse(t.dialogInfo.bindingVariable.value))?void 0:a[B.System.StiObject.stimulsoft]().toList();if(null!=e&&null!=o&&e.any(e=>null!=e&&(null==e?void 0:e[B.System.StiObject.stimulsoft]().toString())==(null==o?void 0:o[B.System.StiObject.stimulsoft]().toString())))return!0}}catch(e){}return!1}static getDateTimeObject(e){let t=B.System.DateTime.now,o=(null!=e&&(e instanceof B.System.DateTime||e instanceof B.System.DateTimeOffset?t=e:"string"!=typeof e||T.isNullOrEmpty(e)||(t=B.System.DateTime.fromString(e))),{});return o["year"]=t.year,o["month"]=t.month,o["day"]=t.day,o["hours"]=t.hour,o["minutes"]=t.minute,o["seconds"]=t.second,null!=e&&""!=e||(o["isNull"]=!0),o}static getTimeSpanStringValue(t){if(t instanceof B.System.TimeSpan){let e=t;return B.System.TimeSpan.create(e.days,e.hours,e.minutes,e.seconds).toString()}return""}static getBasicType(e){let t={ref:Us.Value};return Fs.getTypeModeFromType(e.type,t),I.getName(Us,t.ref)}static getStiType(e){if(e.type==String||e.type==B.System.StimulsoftStringList||e.type==B.System.StimulsoftStringRange)return"String";if(e.type==B.System.Char||e.type==B.System.NullableChar||e.type==B.System.StimulsoftCharRange||e.type==B.System.StimulsoftCharList)return"Char";if(e.type==Boolean||e.type==B.System.NullableBoolean||e.type==B.System.StimulsoftBoolList)return"Bool";if(e.type==B.System.DateTime||e.type==B.System.NullableDateTime||e.type==B.System.StimulsoftDateTimeList||e.type==B.System.StimulsoftDateTimeRange)return"DateTime";if(e.type==B.System.DateTimeOffset)return"DateTimeOffset";if(e.type==B.System.TimeSpan||e.type==B.System.NullableTimeSpan||e.type==B.System.StimulsoftTimeSpanList||e.type==B.System.StimulsoftTimeSpanRange)return"TimeSpan";if(e.type==B.System.Guid||e.type==B.System.NullableGuid||e.type==B.System.StimulsoftGuidList||e.type==B.System.StimulsoftGuidRange)return"Guid";if(e.type==B.System.Drawing.Image)return"Image";if(e.type==B.System.Single||e.type==B.System.Single||e.type==B.System.StimulsoftFloatList||e.type==B.System.StimulsoftFloatRange)return"Float";if(e.type==B.System.Double||e.type==B.System.NullableDouble||e.type==B.System.StimulsoftDoubleList||e.type==B.System.StimulsoftDoubleRange)return"Double";if(e.type==B.System.Decimal||e.type==B.System.NullableDecimal||e.type==B.System.StimulsoftDecimalList||e.type==B.System.StimulsoftDecimalRange)return"Decimal";if(e.type==B.System.Int32||e.type==B.System.NullableInt32||e.type==B.System.StimulsoftIntList||e.type==B.System.StimulsoftIntRange)return"Int";if(e.type==B.System.UInt32||e.type==B.System.NullableUInt32)return"Uint";if(e.type==B.System.Int16||e.type==B.System.NullableInt16||e.type==B.System.StimulsoftShortList||e.type==B.System.StimulsoftShortRange)return"Short";if(e.type==B.System.UInt16||e.type==B.System.NullableUInt16)return"Ushort";if(e.type==B.System.Int64||e.type==B.System.NullableInt64||e.type==B.System.StimulsoftLongList||e.type==B.System.StimulsoftLongRange)return"Long";if(e.type==B.System.UInt64||e.type==B.System.NullableUInt64)return"Ulong";if(e.type==B.System.Byte||e.type==B.System.NullableByte||e.type==B.System.StimulsoftByteList||e.type==B.System.StimulsoftByteRange)return"Byte";if(e.type==B.System.SByte||e.type==B.System.NullableSByte)return"Sbyte";return""}static storeDataSourcesSqlCommand(o){if(o.reportPass!=Ds.First)for(let t of o.dictionary.dataSources.list){let e=t[B.System.StiObject.stimulsoft]().as(Ss);null!=e&&o.variables.set(`**StoredDataSourceSqlCommandForInterpretationMode**`+t.name,e.sqlCommand)}}static applyReportParameters(o,i){if(null!=i&&0{e.name in o&&(this.setVariableValue(t,e.name,o[e.name],e),this.setVariableLabel(t,e,o[e.name]),t.isRendered=!1)})}static applyReportBindingVariables(o,i){var a,s;for(let t in i)for(let e of o.dictionary.variables.list)e.name==t&&(e.value=null!=(a=i[t])&&a[B.System.StiObject.stimulsoft]().is(Array)?"":B.System.Convert.toString(i[t])),null!=e.dialogInfo.bindingVariable&&e.dialogInfo.bindingVariable.name==t&&(e.dialogInfo.bindingVariable.value=null!=(s=i[t])&&s[B.System.StiObject.stimulsoft]().is(Array)?"":B.System.Convert.toString(i[t]))}static getLabelValue(e,t){let o=e.dialogInfo.keys.indexOf(t);if(0<=o&&oe.toString())[B.System.StiObject.stimulsoft]().toArray())}else if(e.type==B.System.StimulsoftIntList){let t=[],o=[];for(let e of n)t.push(l.tryParse(e).result),o.push(e.toString());i.setVariable(a,t),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=o)}else if(e.type==B.System.StimulsoftCharList){let t=new R;for(let e of n)t.add(e.toString());i.setVariable(a,t),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=t.select(e=>e.toString())[B.System.StiObject.stimulsoft]().toArray())}else if(e.type==B.System.StimulsoftDateTimeList){let o=new R;for(let t of n){let e=qt.fromString(t,!1);o.add(e)}i.setVariable(a,o),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=o.select(e=>e.toString())[B.System.StiObject.stimulsoft]().toArray())}else if(e.type==B.System.StimulsoftTimeSpanList){let o=new R;for(let t of n){let e=Rs.fromString(t);o.add(e)}i.setVariable(a,o),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=o.select(e=>e.toString())[B.System.StiObject.stimulsoft]().toArray())}else if(e.type==B.System.StimulsoftBoolList){let t=new R;for(let e of n)t.add(e[B.System.StiObject.stimulsoft]().toBoolean());i.setVariable(a,t),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=t.select(e=>e.toString())[B.System.StiObject.stimulsoft]().toArray())}else if(e.type==B.System.StimulsoftGuidList){let t=new R;for(let e of n)t.add(new B.System.Guid(null===e||void 0===e?void 0:e[B.System.StiObject.stimulsoft]().toString()));i.setVariable(a,t),null!=e.dialogInfo.keys&&0!=e.dialogInfo.keys.length||(e.dialogInfo.keys=t.select(e=>e.toString())[B.System.StiObject.stimulsoft]().toArray())}}static getVariables(n,t,l){let r={},A={},p=0;for(let s of n.dictionary.variables.list)if(s.requestFromUser){this.isBindingVariable(s,n)&&(A[s.dialogInfo.bindingVariable.name]=!0);let e=$i.correctName(s.name),o={},i=(o["name"]=s.name,o["alias"]=this.getVariableAlias(s),o["category"]=s.category,o["isCategory"]=s.isCategory,o["readOnly"]=s.readOnly,o["description"]=s.description,o["basicType"]=this.getBasicType(s),o["type"]=this.getStiType(s),o["allowUserValues"]=s.dialogInfo.allowUserValues,o["rememberSelection"]=s.dialogInfo.rememberSelection,o["allowNullableString"]=s.allowNullableString,o["dateTimeType"]=I.getName(Qs,s.dialogInfo.dateTimeType),o["sortDirection"]=I.getName(Is,s.dialogInfo.sortDirection),o["sortField"]=I.getName(Ts,s.dialogInfo.sortField),o["formatMask"]=B.System.Convert.toBase64String(s.dialogInfo.mask),o["checkedStates"]=null!=s.dialogInfo.checkedStates?s.dialogInfo.checkedStates:null,o["isFirstInitialization"]=null==t,this.getItems(s,n,t));if(o["items"]=i,t&&void 0!==t[s.name])if(!xa.isArray(t[s.name])&&(T.isNullOrEmpty(t[s.name])||s.dialogInfo.allowUserValues)||null!=i&&0!=i.length){if(o["value"]=t[s.name],s.dialogInfo.bindingValue&&null!=s.dialogInfo.bindingVariable){let e={ref:Us.Value};if(Fs.getTypeModeFromType(s.dialogInfo.bindingVariable.type,e),xa.isArray(o["value"])&&null!=i&&e.ref!=Us.List){o["value"]=[];for(let e of i)o["value"].push(null!=e["key"]?e["key"]:e["value"])}}}else delete t[s.name];else s.selection==Ps.Nothing?o["value"]="":s.selection==Ps.First?o["value"]=null!=i&&0"StiNameComboBoxMeter"==e[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName());return null!=t?e.meters.indexOf(t):-1}static getKeyMeterIndex(e){if(null==e)return-1;let t=e.meters.firstOrDefault(e=>"StiKeyComboBoxMeter"==e[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName());return null!=t?e.meters.indexOf(t):-1}static getColumnPath(e){if(null!=e.getKeyMeter())return e.getKeyMeter().expression;if(null!=e.getNameMeter())return e.getNameMeter().expression;return null}},f.c.StiImageElementViewHelper=class{static async getImageSvgContent(l,r=1,A=1,p=null){return new Promise(async s=>{let n={};if(l.isImageHyperlinkDataColumnDefined()){let a=await yi.getOrCreate(l);if(null!=a){let e=a.rows.firstOrDefault(),t=null!=e?e[B.System.StiObject.stimulsoft]().toList().firstOrDefault():null,o=l.clone(),i=new B.System.Drawing.Image;xa.isArray(t)?i.bytes=t:"string"==typeof t&&!T.isNullOrEmpty(t)&&t[B.System.StiObject.stimulsoft]().isBase64String()&&(i.base64=t),o.image=i,f.c.StiDashboardsSvgHelper.saveElementToStringAsync(o,r,A,!1,D.ImageSvg,p).try(async e=>{n["svgContent"]=e,n["interaction"]=await f.c.StiDashboardElementViewHelper.getDashboardInteractionAsync(l),s(n)})}else s(n)}else f.c.StiDashboardsSvgHelper.saveElementToStringAsync(l,r,A,!1,D.ImageSvg,p).try(async e=>{n["svgContent"]=e,n["interaction"]=await f.c.StiDashboardElementViewHelper.getDashboardInteractionAsync(l),s(n)})})}},f.c.StiListBoxElementViewHelper=class{static async getElementItems(o){let e=await yi.getOrCreate(o);if(null==e)return null;if(null==e||0==e.rows.length)return null;let i=this.getNameMeterIndex(e),a=this.getKeyMeterIndex(e);if(-1==i&&1==a)return null;-1==a&&(a=i),-1==i&&(i=a);let s=new R;for(let t of e.rows){let e=t[i];!o.showBlanks&&f.c.StiDataFiltersHelper.isBlankData(e)||s.add(this.listBoxItem(f.c.StiDashboardElementViewHelper.format(o,t[i]),t[a]))}return s}static listBoxItem(e,t){let o={};return o["label"]=e,o["value"]=f.c.StiDataFiltersHelper.toFilterString(t),o}static getSettings(e){let t=f.c.StiDashboardElementViewHelper.getControlElementSettings(e);return t["itemHeight"]=Li.ListBox.ItemHeight,t}static getNameMeterIndex(e){if(null==e)return-1;let t=e.meters.firstOrDefault(e=>"StiNameListBoxMeter"==e[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName());return null!=t?e.meters.indexOf(t):-1}static getKeyMeterIndex(e){if(null==e)return-1;let t=e.meters.firstOrDefault(e=>"StiKeyListBoxMeter"==e[B.System.StiObject.stimulsoft]().getType()[B.System.StiObject.stimulsoft]().getTypeName());return null!=t?e.meters.indexOf(t):-1}static getColumnPath(e){if(null!=e.getKeyMeter())return e.getKeyMeter().expression;if(null!=e.getNameMeter())return e.getNameMeter().expression;return null}},B.Report.Dictionary.StiVariable),Ws=B.Report.Dashboard.StiNumberMinMaxMode;f.c.StiNumberBoxElementViewHelper=class{static async getJSMinMaxRange(e){let t=await this.getMinMaxRange(e);return{from:t.from,to:t.to}}static async getMinMaxRange(o){if(o.minMaxMode==Ws.Auto)return this.getAutoRange(o);{let e=0,t=(T.isNullOrWhiteSpace(o.min)||(e=s.tryToNumber(jt.parse2(o.min,o.report,!0))),65535);return T.isNullOrWhiteSpace(o.max)||(t=s.tryToNumber(jt.parse2(o.max,o.report,!0))),new Vs(e,t)}}static getSettings(e){return f.c.StiDashboardElementViewHelper.getControlElementSettings(e)}static async getAutoRange(e){let t=this.getColumnPath(e);if(!T.isNullOrEmpty(t)){let t=await yi.getOrCreate(e);if(null!=t){let e=t.rows.select(e=>e[0]).where(e=>null!=e&&B.System.Type.isNumericType(B.System.Type.getType(e))).select(e=>s.tryToNumber(e));if(null!=e&&e.any())return new Vs(e.min(),e.max())}}return new Vs(0,65535)}static async getJSInitialValue(t){let o={};if(this.isRange(t)){let e=await this.getRangeInitialValue(t);o["from"]=e.from,o["to"]=e.to}else o["from"]=await this.getSingleInitialValue(t);return o}static getInitialValue(e){return this.isRange(e)?this.getRangeInitialValue(e):this.getSingleInitialValue(e)}static async getRangeInitialValue(e){let t=s.tryToNumber(jt.parse2(e.initialValue,e.report)),o=s.tryToNumber(jt.parse2(e.initialToValue,e.report)),i=await this.getMinMaxRange(e);return t=Math.max(t,i.from),t=Math.min(t,i.to),o=Math.max(o,i.from),o=Math.min(o,i.to),new Vs(t,o)}static async getSingleInitialValue(t){var e;let o=null,i=null==(e=this.getVariableSpecifiedAsValue(t))?void 0:e.as(Ks);if(null!=i){let e=t.report.dictionary.getVariableValueByName(i.name);i.initBy!=U.Expression||T.isNullOrEmpty(e)||(e=ha.parseTextValue(`{${e}}`,t.as($e))),B.System.Type.isNumericType(i.type)&&(o=s.tryToNullableNumber(e))}else T.isNullOrEmpty(t.initialValue)||(o=s.tryToNullableNumber(jt.parse2(t.initialValue,t.report,!0)));let a=await this.getMinMaxRange(t);return o=null!=o?(o=Math.max(l.getValueOrDefault(o),a.from),Math.min(l.getValueOrDefault(o),a.to)):a.from,l.getValueOrDefault(o)}static applyNumberBoxFiltersToVariable(o,e){var t;let i=Gi.getVariableSpecifiedAsExpression(o,null==(t=o.getValueMeter())?void 0:t.expression);if(null!=i)for(let t of e){let e=s.tryToNumber(t["value"]);Xi.isNumericRangeType(i.type)&&(e=new Vs(s.tryToNumber(t["value"]),s.tryToNumber(t["value2"]))),Hi.setVariableValue(o.report,i,e),i.initBy==U.Value&&(i.valueObject=e),Vi.clean(o.report)}}static getColumnPath(e){var t;return null==(t=e.getValueMeter())?void 0:t.expression}static isRange(t){if(this.isVariablePresent(t)){let e=this.getVariableSpecifiedAsValue(t).as(Ks);return null!=e&&Xi.isNumericRangeType(e.type)}return t.selectionMode==pt.Range}static isVariablePresent(e){var t;return Gi.isVariableSpecifiedAsExpression(e,null==(t=e.getValueMeter())?void 0:t.expression)}static getVariableSpecifiedAsValue(e){var t;return Gi.getVariableSpecifiedAsExpression(e,null==(t=e.getValueMeter())?void 0:t.expression)}},f.c.StiPivotTableElementViewHelper=class{static async getPivotTableData(e){let t=await S.invokeStaticMethod("Stimulsoft.Dashboard","Helpers.StiPivotTableHelper","getViewerData",[e]);return t}static getPivotTableSettings(e){let t={},o=v.getPivotTableStyle(e);return t["alternatingCellBackColor"]=f.a.StiReportHelper.getHtmlColor(o.alternatingCellBackColor),t["alternatingCellForeColor"]=f.a.StiReportHelper.getHtmlColor(o.alternatingCellForeColor),t["cellBackColor"]=f.a.StiReportHelper.getHtmlColor(o.cellBackColor),t["cellForeColor"]=f.a.StiReportHelper.getHtmlColor(o.cellForeColor),t["columnHeaderBackColor"]=f.a.StiReportHelper.getHtmlColor(o.columnHeaderBackColor),t["columnHeaderForeColor"]=f.a.StiReportHelper.getHtmlColor(o.columnHeaderForeColor),t["hotColumnHeaderBackColor"]=f.a.StiReportHelper.getHtmlColor(o.hotColumnHeaderBackColor),t["hotRowHeaderBackColor"]=f.a.StiReportHelper.getHtmlColor(o.hotRowHeaderBackColor),t["lineColor"]=f.a.StiReportHelper.getHtmlColor(o.lineColor),t["rowHeaderBackColor"]=f.a.StiReportHelper.getHtmlColor(o.rowHeaderBackColor),t["rowHeaderForeColor"]=f.a.StiReportHelper.getHtmlColor(o.rowHeaderForeColor),t["selectedCellBackColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedCellBackColor),t["selectedCellForeColor"]=f.a.StiReportHelper.getHtmlColor(o.selectedCellForeColor),t["fontName"]=Li.Table.Font.Name,t["fontSize"]=Li.Table.Font.Size,t["fontIsBold"]=Li.Table.Font.IsBold,t["cellHeight"]=Li.Table.Height,t}static getCellAlignment(e){let t=e;if(null!=t)switch(t.horAlignment){case p.Left:return"left";case p.Center:return"center";case p.Right:return"right"}return"center"}},f.c.StiRegionMapElementViewHelper=class{static getColumnPath(e){let t=e.getKeyMeter();if(null==t)return null;let o=Mi.getDataColumnFromExpression(e.page,t.expression);if(null==o)return null;if(null==o.dataSource)return null;return o.dataSource.name+`.`+o.name}},f.c.StiTreeViewBoxElementViewHelper=class{static async getElementItems(n){let l=await yi.getOrCreate(n);if(null==l)return null;if(null==l||0==l.rows.length)return null;let t=this.treeViewBoxItem(n);for(let e of l.rows){let a=0,s=t;for(let i of e){let e=null==i,t="string"==typeof i?T.isNullOrEmpty(i):null==i,o=e||t;if(n.showBlanks||!o){let e=s["items"],t=null!=e?e.firstOrDefault(e=>e["key"]==f.c.StiDataFiltersHelper.toFilterString(i)):null;null==t&&(t=this.treeViewBoxItem(n,i,l.meters[a]),null==s["items"]&&(s["items"]=new R),s["items"].add(t)),s=t}a++}}return t["items"]}static treeViewBoxItem(e,t=null,o=null){let i={};return i["key"]=f.c.StiDataFiltersHelper.toFilterString(t),i["text"]=f.c.StiDashboardElementViewHelper.format(e,t),i["columnPath"]=null!=o?o.expression:null,i["meterKey"]=null!=o?o.key:null,i["items"]=null,i}static getSettings(e){let t=f.c.StiDashboardElementViewHelper.getControlElementSettings(e);return t["itemHeight"]=Li.TreeView.ItemHeight,t}static getColumnPath(e){var t;return null==(t=e.fetchAllMeters().lastOrDefault())?void 0:t.expression}static getMeterKey(e){var t;return null==(t=e.fetchAllMeters().lastOrDefault())?void 0:t.key}},f.c.StiTreeViewElementViewHelper=class{static async getElementItems(n){let l=await yi.getOrCreate(n);if(null==l)return null;if(null==l||0==l.rows.length)return null;let t=this.treeViewItem(n);for(let e of l.rows){let a=0,s=t;for(let i of e){let e=null==i,t="string"==typeof i?T.isNullOrEmpty(i):null==i,o=e||t;if(n.showBlanks||!o){let e=s["items"],t=null!=e?e.firstOrDefault(e=>e["key"]==f.c.StiDataFiltersHelper.toFilterString(i)):null;null==t&&(t=this.treeViewItem(n,i,l.meters[a]),null==s["items"]&&(s["items"]=new R),s["items"].add(t)),s=t}a++}}return t["items"]}static treeViewItem(e,t=null,o=null){let i={};return i["key"]=f.c.StiDataFiltersHelper.toFilterString(t),i["text"]=f.c.StiDashboardElementViewHelper.format(e,t),i["columnPath"]=null!=o?o.expression:null,i["meterKey"]=null!=o?o.key:null,i["items"]=null,i}static getSettings(e){let t=f.c.StiDashboardElementViewHelper.getControlElementSettings(e);return t["itemHeight"]=Li.TreeView.ItemHeight,t}static getColumnPath(e){var t;return null==(t=e.fetchAllMeters().lastOrDefault())?void 0:t.expression}static getMeterKey(e){var t;return null==(t=e.fetchAllMeters().lastOrDefault())?void 0:t.key}},f.a.StiAppearanceOptions=class{constructor(){this.storeExportSettings=!0,this.showReportIsNotSpecifiedMessage=!0,this.customStylesUrl="",this.saveMenuImageSize="Small",this.designWindow="_self",this.printToPdfMode="Hidden",this.imagesQuality="Normal",this.backgroundColor=w.white,this.pageBorderColor=w.gray,this.rightToLeft=!1,this.fullScreenMode=!1,this.scrollbarsMode=!1,this.openLinksWindow="_blank",this.openExportedReportWindow="_blank",this.showTooltips=!0,this.showTooltipsHelp=!0,this.showDialogsHelp=!0,this.pageAlignment=f.a.StiContentAlignment.Center,this.showPageShadow=!1,this.bookmarksPrint=!1,this.bookmarksTreeWidth=180,this.parametersPanelPosition=f.a.StiParametersPanelPosition.FromReport,this.parametersPanelMaxHeight=300,this.parametersPanelColumnsCount=2,this.minParametersCountForMultiColumns=5,this.parametersPanelDateFormat="",this.parametersPanelSortDataItems=!1,this.interfaceType=f.a.StiInterfaceType.Auto,this.chartRenderType=f.a.StiChartRenderType.AnimatedVector,this.reportDisplayMode=E.FromReport,this.datePickerFirstDayOfWeek=f.a.StiFirstDayOfWeek.Auto,this.datePickerIncludeCurrentDayForRanges=!1,this.allowTouchZoom=!0,this.allowMobileMode=!0,this.combineReportPages=!1,this.htmlRenderMode=E.Table,this.theme=f.a.StiViewerTheme.Office2022WhiteBlue,this.iconSet=f.a.StiWebUIIconSet.Auto}},f.a.StiEmailOptions=class{constructor(){this.showEmailDialog=!0,this.showExportDialog=!0,this.defaultEmailAddress="",this.defaultEmailSubject="",this.defaultEmailMessage=""}},f.a.StiExportsOptions=class{constructor(){this.showExportToMht=!1,this.showExportToExcelBiff=!1,this.showExportToExcelXml=!1,this.showExportToImageMetafile=!1,this.openAfterExport=!0,this.showOpenAfterExport=!0,this.storeExportSettings=!0,this.showExportDialog=!0,this.showExportToDocument=!0,this.showExportToPdf=!0,this.showExportToHtml=!0,this.showExportToHtml5=!0,this.showExportToWord=!0,this.showExportToExcel=!0,this.showExportToCsv=!0,this.showExportToJson=!1,this.showExportToDbf=!1,this.showExportToXml=!1,this.showExportToDif=!1,this.showExportToSylk=!1,this.showExportToText=!0,this.showExportToOpenDocumentWriter=!0,this.showExportToOpenDocumentCalc=!0,this.showExportToPowerPoint=!0,this.showExportToImageSvg=!0,this.showExportToImagePng=!1,this.showExportToImageJpeg=!1,this.showExportToImageSvgz=!1,this.showExportToImagePcx=!1,this.showExportToImageBmp=!1,this.showExportToImageGif=!1,this.showExportToImageTiff=!1,this.showExportToXps=!1,this.showExportDataOnly=!0,this.showExportToRtf=!1}};{class on{constructor(){this.visible=!0,this.displayMode=f.a.StiToolbarDisplayMode.Simple,this.backgroundColor=w.empty,this.borderColor=w.empty,this.fontColor=w.empty,this.fontFamily="Arial",this.alignment=f.a.StiContentAlignment.Default,this.showButtonCaptions=!0,this.showPrintButton=!0,this.showOpenButton=!0,this.showSaveButton=!0,this.showSendEmailButton=!1,this.showFindButton=!0,this.showSignatureButton=!0,this.showBookmarksButton=!0,this.showParametersButton=!0,this.showResourcesButton=!0,this.showEditorButton=!0,this.showFullScreenButton=!0,this.showRefreshButton=!0,this.showFirstPageButton=!0,this.showPreviousPageButton=!0,this.showCurrentPageControl=!0,this.showNextPageButton=!0,this.showLastPageButton=!0,this.showZoomButton=!0,this.showViewModeButton=!0,this.showDesignButton=!1,this.showAboutButton=!0,this.showPinToolbarButton=!0,this.printDestination=f.a.StiPrintDestination.Default,this.viewMode=f.a.StiWebViewMode.SinglePage,this.multiPageWidthCount=2,this.multiPageHeightCount=2,this._zoom=100,this.menuAnimation=!0,this.showMenuMode=f.a.StiShowMenuMode.Click,this.autoHide=!1}get zoom(){return this._zoom}set zoom(e){e==f.a.StiZoomMode.PageWidth||e==f.a.StiZoomMode.PageHeight||10<=e&&e<=500?this._zoom=e:this._zoom=500