(()=>{var e={298:()=>{DevExpress.ui.themes.isGeneric=function(e){return function(e,t){return t||(t=function(){var e=document.createElement("div");e.className="dx-blazor-reporting";var t,n=document.createElement("div");n.className="dx-theme-marker",document.body.append(e),e.append(n);try{return(t=window.getComputedStyle(n).fontFamily)?"dx."!==(t=t.replace(/["']/g,"")).substr(0,3)?null:t.substr(3):null}finally{n.remove(),e.remove()}}()),new RegExp(e).test(t)}("generic",e)}},433:()=>{DevExpress.Analytics.Internal._defaultStaticContext({...DevExpress.Analytics.Internal._defaultStaticContext(),Reporting:DevExpress.Reporting,Analytics:DevExpress.Analytics,QueryBuilder:DevExpress.QueryBuilder,ko:window.ko,$:window.$})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{"use strict";function e(e){for(var t=window,n=(e=e.replaceAll('"',"")).split("."),r=0;r<n.length-1;r++)if(void 0===(t=t[n[r]]))return;return t[n[n.length-1]]}function t(e,t){if(e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return n.length>0?e[t].apply(e,n):e[t]()}}n(298),n(433),DevExpress.Analytics.Internal.useKoIntegration(),window.DxReporting=window.DxReporting||{Dispose:function(e){var t,n;t=e,(n=document.getElementById(t))&&window.ko.cleanNode(n),window.DxReporting.DocumentViewer&&window.DxReporting.DocumentViewer.DisposeCallback&&window.DxReporting.DocumentViewer.DisposeCallback(),window.DxReporting.ReportDesigner&&window.DxReporting.ReportDesigner.DisposeCallback&&window.DxReporting.ReportDesigner.DisposeCallback()},GetDataChunk(e,t,n){const r=window.DxReporting.DotnetState;if(r[e])return r[e].substring(t,n);throw new Error("Failed to retrieve data chunk for the specified operation id")},DotnetState:{}},window.DEBUG={ko:window.ko};class r{Init(t,n,r){const o=t.model;this.ViewerOptions="object"==typeof o?o:JSON.parse(o),this.ViewerOptions.reportUrl=window.ko.observable(this.ViewerOptions.reportUrl),this.ViewerOptions.viewerModel=window.ko.observable(),function(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n]){var r=e(t[n]);"function"==typeof r?t[n]=r:(console.error("Client-side event "+n.toString()+" was skipped: function "+t[n]+" not found."),t[n]=void 0)}t._eventSenderCreated=e=>{Object.defineProperty(e,"dx",{get:()=>DevExpress.Analytics.Internal._defaultStaticContext(),configurable:!0})}}(this.ViewerOptions.callbacks||{});var i=[];i.push(this.ViewerOptions.viewerModel.subscribe((function(e){var t=e.reportPreview;i.push({dispose:t.events.on("propertyChanged",(e=>{var n,o;"documentId"===e.propertyName&&(n=t.documentId,r.invokeMethodAsync("SetCurrentDocumentId",n)),"reportId"===e.propertyName&&(o=t.reportId,r.invokeMethodAsync("SetCurrentReportId",o))}))})})));var s=function(e,t,n){void 0===t&&(t=[]);var r=document.getElementById(e);window.ko.cleanNode(r);var o=function(){clearTimeout(i),t.forEach((e=>{e.dispose()}))},i=setTimeout((()=>{n(r),window.ko.utils.domNodeDisposal.addDisposeCallback(r,o)}),1);return{disposeCallback:o}}(n,i,(e=>{!function(e,t){e.disablePagesPrefetch&&DevExpress.Reporting.Viewer.Settings.PreloadedPagesOffset(0),e.enableLocalRequests&&function(e){DevExpress.Analytics.Utils.requestManager.initialize({sendRequest:t=>function(e,t){const n=window.DxReporting.DotnetState;let r=e.data,o=e.url;if("GET"===e.type){const e=o.split("?"),t=new URLSearchParams(e[1]);r=Object.fromEntries(t.entries()),o=e[0]}const i=window.$.Deferred(),s=DevExpress.Reporting.Internal.generateGuid();n[s]=JSON.stringify(r);const a=t.invokeMethodAsync("ProcessClientSideRequestAsync",s,o);return a.then((async e=>{if("object"==typeof e){const t=new Response(e.bytes),n=encodeURIComponent(e.fileName);t.headers.append("Content-Disposition",`attachment; filename="${n}"`),t.headers.append("Content-Type",e.contentType),t.headers.append("Content-Length",e.bytes.length),i.resolve({result:t,success:!0})}else{const t=JSON.parse(e);i.resolve(t,"",{...i.promise(),responseJSON:t})}})),a.catch((e=>{i.reject({error:e,statusText:e.message,status:0},e.message,e)})),a.finally((()=>delete n[s])),i.promise()}(t,e),useFetch:!0})}(t)}(t,r),this._createBinding(e,this.ViewerOptions).render()}));this.DisposeCallback=s.disposeCallback}OpenReport(e){t(this.ViewerOptions.viewerModel(),"OpenReport",e)}ResetParameters(){t(this.ViewerOptions.viewerModel(),"ResetParameters")}Close(){t(this.ViewerOptions.viewerModel(),"Close")}_createBinding(e,t){return null}}window.DxReporting.ParametersPanel=window.DxReporting.ParametersPanel||new class extends r{_createBinding(e,t){return new DevExpress.Reporting.Viewer.DxReportParametersPanel(e,t)}},window.DxReporting.DocumentViewer=window.DxReporting.DocumentViewer||new class extends r{_createBinding(e,t){return new DevExpress.Reporting.Viewer.DxReportViewer(e,t)}StartBuild(){t(this.ViewerOptions.viewerModel(),"StartBuild")}}})()})();