@devexpress/utils
Version:
DevExpress utils
2 lines • 142 kB
JavaScript
/*! For license information please see dx.utils.min.js.LICENSE.txt */
var DevExpress;(()=>{"use strict";var __webpack_modules__={125:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AttrUtils=void 0;var n=r(9246),i=function(){function t(){}return t.setElementAttribute=function(t,e,r){t.setAttribute&&(n.Browser.IE&&n.Browser.MajorVersion>=11&&"src"===e.toLowerCase()&&t.setAttribute(e,""),t.setAttribute(e,r))},t.setStyleAttribute=function(t,e,r){t.setProperty&&t.setProperty(e,r,"")},t.getElementAttribute=function(t,e){return t.getAttribute(e)},t.getStyleAttribute=function(t,e){if(t.getPropertyValue){if(n.Browser.Firefox)try{return t.getPropertyValue(e)}catch(r){return t[e]}return t.getPropertyValue(e)}return null},t.removeElementAttribute=function(t,e){t.removeAttribute&&t.removeAttribute(e)},t.removeStyleAttribute=function(t,e){t.removeProperty&&t.removeProperty(e)},t.changeElementStyleAttribute=function(e,r,n){t.saveStyleAttributeInElement(e,r),t.setStyleAttribute(e.style,r,n)},t.restoreElementStyleAttribute=function(e,r){var n="dxwu_saved"+r,i=e.style;if(t.isExistsAttributeInElement(e,n)){var o=t.getElementAttribute(e,n);return o===t.emptyObject||null===o?t.removeStyleAttribute(i,r):t.setStyleAttribute(i,r,o),t.removeElementAttribute(e,n),!0}return!1},t.saveStyleAttributeInElement=function(e,r){var n="dxwu_saved"+r,i=e.style;if(!t.isExistsAttributeInElement(e,n)){var o=t.getStyleAttribute(i,r);t.setElementAttribute(e,n,t.isAttributeExists(o)?o:t.emptyObject)}},t.isExistsAttributeInElement=function(e,r){var n=t.getElementAttribute(e,r);return t.isAttributeExists(n)},t.isAttributeExists=function(t){return null!==t&&""!==t},t.emptyObject="DxEmptyValue",t}();e.AttrUtils=i},335:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SparseIntervalsCollector=void 0;var n=r(7626),i=function(){function t(t){this.intervals=[],this.template=t}return t.prototype.add=function(t){this.curr&&this.curr.end===t?this.curr.length++:(this.curr=this.template.makeByStartLength(t,1),this.intervals.push(this.curr))},t.prototype.getIntervals=function(){return new n.SparseIntervals(this.intervals)},t}();e.SparseIntervalsCollector=i},431:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TouchUtils=void 0;var n=r(9246),i=r(4395),o=function(){function t(){}return t.onEventAttachingToDocument=function(e,r){return!n.Browser.MacOSMobilePlatform||!t.isTouchEventName(e)||(t.documentTouchHandlers[e]||(t.documentTouchHandlers[e]=[]),t.documentTouchHandlers[e].push(r),t.documentEventAttachingAllowed)},t.isTouchEventName=function(t){return n.Browser.WebKitTouchUI&&(t.indexOf("touch")>-1||t.indexOf("gesture")>-1)},t.isTouchEvent=function(t){return n.Browser.WebKitTouchUI&&i.isDefined(t.changedTouches)},t.getEventX=function(t){return n.Browser.IE?t.pageX:t.changedTouches[0].pageX},t.getEventY=function(t){return n.Browser.IE?t.pageY:t.changedTouches[0].pageY},t.touchMouseDownEventName=n.Browser.WebKitTouchUI?"touchstart":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",t.touchMouseUpEventName=n.Browser.WebKitTouchUI?"touchend":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",t.touchMouseMoveEventName=n.Browser.WebKitTouchUI?"touchmove":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",t.msTouchDraggableClassName="dxMSTouchDraggable",t.documentTouchHandlers={},t.documentEventAttachingAllowed=!0,t}();e.TouchUtils=o},441:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PdfPluginHelper=void 0;var n=r(9246),i=function(){function t(){}return t.isInstalled=function(){return!!t.getPdfPlugin()},t.getPdfPlugin=function(){return t.plugin||(t.plugin=n.Browser.IE?t.getActiveXObject("AcroPDF.PDF")||t.getActiveXObject("PDF.PdfCtrl"):t.getNavigatorPlugin("Adobe Acrobat")||t.getNavigatorPlugin("Chrome PDF Viewer")||t.getNavigatorPlugin("WebKit built-in PDF")||t.getNavigatorPlugin("Chromium PDF Viewer")),t.plugin},t.getActiveXObject=function(t){try{return new ActiveXObject(t)}catch(t){return null}},t.getNavigatorPlugin=function(t){var e=navigator.plugins;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=e[r];if(n.name===t)return n}return null},t.getVersion=function(){try{var e=t.getPdfPlugin();if(n.Browser.IE){var r=e.GetVersions().split(",")[0].split("=");return parseFloat(r[1])}return e.version?parseInt(e.version):e.name}catch(t){return null}},t}();e.PdfPluginHelper=i},443:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.SequenceComparator=e.SesElem=e.SesType=void 0,function(t){t[t.Delete=-1]="Delete",t[t.Common=0]="Common",t[t.Add=1]="Add"}(r=e.SesType||(e.SesType={}));var n=function(){function t(t,e){this.elem=t,this.type=e}return t.prototype.toString=function(){var t;switch(this.type){case r.Add:t="+";break;case r.Delete:t="-";break;case r.Common:t=" "}return t+this.elem.toString()},t}();e.SesElem=n;var i=function(){function t(t,e){if(this.editDistance=null,this.lcs="",this.ses=[],this.path=[],this.pathposi=[],this.a=t,this.b=e,this.m=this.a.length,this.n=this.b.length,this.reverse=this.m>this.n,this.reverse){var r=this.a;this.a=this.b,this.b=r;var n=this.m;this.m=this.n,this.n=n}this.offset=this.m+1,this.comparer=this.a.getComparer()}return t.prototype.calculate=function(){for(var t=this.m+this.n+3,e={},r=0;r<t;++r)e[r]=-1,this.path[r]=-1;var n=this.n-this.m,i=-1;do{for(var s=-++i;s<=n-1;++s)e[s+this.offset]=this.snake(s,e[s-1+this.offset]+1,e[s+1+this.offset]);for(s=n+i;s>=n+1;--s)e[s+this.offset]=this.snake(s,e[s-1+this.offset]+1,e[s+1+this.offset]);e[n+this.offset]=this.snake(n,e[n-1+this.offset]+1,e[n+1+this.offset])}while(e[n+this.offset]!==this.n);this.editDistance=n+2*i;for(var a=this.path[n+this.offset],u=[];-1!==a;){var c=this.pathposi[a];u.push(new o(c.x,c.y,null)),a=c.k}return this.recordSeq(u),this.ses},t.prototype.toString=function(){for(var t=[],e=0,r=this.ses;e<r.length;e++){var n=r[e];t.push(n.toString())}return t.join("\n")},t.prototype.snake=function(t,e,r){for(var n=e>r?this.path[t-1+this.offset]:this.path[t+1+this.offset],i=Math.max(e,r),s=i-t;s<this.m&&i<this.n&&this.comparer(this.a.getByIndex(s),this.b.getByIndex(i));)++s,++i;var a=this.pathposi.push(new o(s,i,n));return this.path[t+this.offset]=a-1,i},t.prototype.recordSeq=function(t){for(var e=0,i=0,o=this.reverse?r.Delete:r.Add,s=this.reverse?r.Add:r.Delete,a=t.length-1;a>=0;--a)for(var u=t[a];e<u.x||i<u.y;){var c=u.y-u.x,h=i-e;c>h?(this.ses.push(new n(this.b.getByIndex(i),o)),++i):c<h?(this.ses.push(new n(this.a.getByIndex(e),s)),++e):(this.ses.push(new n(this.a.getByIndex(e),r.Common)),this.lcs+=this.a.getByIndex(e),++e,++i)}},t}();e.SequenceComparator=i;var o=function(t,e,r){this.x=t,this.y=e,this.k=r}},567:(t,e)=>{var r,n,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.MimeTypeUtils=e.DxMimeType=e.ImageWebpMimeType=e.ImageWbmpMimeType=e.ImageIcoMimeType=e.ImageTiffMimeType=e.ImageSvgMimeType=e.ImagePjpegMimeType=e.ImageJpegMimeType=e.ImageGifMimeType=e.ImagePngMimeType=e.DocmMimeType=e.HtmlMimeType=e.PlainTextMimeType=e.RtfMimeType=e.OpenXmlMimeType=void 0,e.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.RtfMimeType="application/rtf",e.PlainTextMimeType="text/plain",e.HtmlMimeType="text/html",e.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12",e.ImagePngMimeType="image/png",e.ImageGifMimeType="image/gif",e.ImageJpegMimeType="image/jpeg",e.ImagePjpegMimeType="image/pjpeg",e.ImageSvgMimeType="image/svg+xml",e.ImageTiffMimeType="image/tiff",e.ImageIcoMimeType="image/vnd.microsoft.icon",e.ImageWbmpMimeType="image/vnd.wap.wbmp",e.ImageWebpMimeType="image/webp",function(t){t[t.Unknown=0]="Unknown",t[t.OpenXml=1]="OpenXml",t[t.Rtf=2]="Rtf",t[t.PlainText=3]="PlainText",t[t.Docm=4]="Docm",t[t.Png=5]="Png",t[t.Gif=6]="Gif",t[t.Jpeg=7]="Jpeg",t[t.Pjpeg=8]="Pjpeg",t[t.Svg=9]="Svg",t[t.Tiff=10]="Tiff",t[t.Ico=11]="Ico",t[t.Wbmp=12]="Wbmp",t[t.Webp=13]="Webp",t[t.Html=14]="Html"}(o=e.DxMimeType||(e.DxMimeType={}));var s=function(){function t(){}return t.stringTypeToExtension=function(e){var r=t.stringTypeToTypeMap[e];return void 0===r?"":t.typeToExtensionMap[r]},t.typeToExtension=function(e){var r=t.typeToExtensionMap[e];return null!=r?r:""},t.extensionToType=function(e){"."!==(e=e.toLowerCase())[0]&&(e+=".");var r=t.extensionToTypeMap[e];return null!=r?r:o.Unknown},t.typeToStringType=function(e){var r=t.typeToStringTypeMap[e];return null!=r?r:""},t.stringTypeToType=function(e){var r=t.stringTypeToTypeMap[e];return void 0===r?o.Unknown:r},t.stringTypeToTypeMap=((r={})[e.OpenXmlMimeType]=o.OpenXml,r[e.RtfMimeType]=o.Rtf,r[e.PlainTextMimeType]=o.PlainText,r[e.DocmMimeType]=o.Docm,r[e.HtmlMimeType]=o.Html,r[e.ImagePngMimeType]=o.Png,r[e.ImageGifMimeType]=o.Gif,r[e.ImageJpegMimeType]=o.Jpeg,r[e.ImagePjpegMimeType]=o.Pjpeg,r[e.ImageSvgMimeType]=o.Svg,r[e.ImageTiffMimeType]=o.Tiff,r[e.ImageIcoMimeType]=o.Ico,r[e.ImageWbmpMimeType]=o.Wbmp,r[e.ImageWebpMimeType]=o.Webp,r),t.typeToStringTypeMap=((n={})[o.Unknown]=void 0,n[o.OpenXml]=e.OpenXmlMimeType,n[o.Rtf]=e.RtfMimeType,n[o.PlainText]=e.PlainTextMimeType,n[o.Docm]=e.DocmMimeType,n[o.Html]=e.HtmlMimeType,n[o.Png]=e.ImagePngMimeType,n[o.Gif]=e.ImageGifMimeType,n[o.Jpeg]=e.ImageJpegMimeType,n[o.Pjpeg]=e.ImagePjpegMimeType,n[o.Svg]=e.ImageSvgMimeType,n[o.Tiff]=e.ImageTiffMimeType,n[o.Ico]=e.ImageIcoMimeType,n[o.Wbmp]=e.ImageWbmpMimeType,n[o.Webp]=e.ImageWebpMimeType,n),t.typeToExtensionMap=((i={})[o.Unknown]=void 0,i[o.OpenXml]=".docx",i[o.Rtf]=".rtf",i[o.PlainText]=".txt",i[o.Docm]=".docm",i[o.Html]=".html",i[o.Png]=".png",i[o.Gif]=".gif",i[o.Jpeg]=".jpeg",i[o.Pjpeg]=".pjpeg",i[o.Svg]=".svg",i[o.Tiff]=".tiff",i[o.Ico]=".ico",i[o.Wbmp]=".wbmp",i[o.Webp]=".webp",i),t.extensionToTypeMap={".docx":o.OpenXml,".rtf":o.Rtf,".txt":o.PlainText,".docm":o.Docm,".html":o.Html,".htm":o.Html,".png":o.Png,".gif":o.Gif,".jpeg":o.Jpeg,".pjpeg":o.Pjpeg,".svg":o.Svg,".tiff":o.Tiff,".ico":o.Ico,".wbmp":o.Wbmp,".webp":o.Webp},t}();e.MimeTypeUtils=s},575:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NumberFormatter=void 0;var r=function(){function t(t){this.positive=!0,this.digits=[],this.pointPos=0,this.spec="",this.prec=-1,this.upper=!0,this.custom=!1,this.options=t}return t.prototype.format=function(t,e){if(isNaN(e))return this.options.numNan;if(!isFinite(e))return e>0?this.options.numPosInf:this.options.numNegInf;if(this.fillFormatInfo(t),"X"===this.spec)return this.formatHex(e);switch(this.fillDigitInfo(e),this.spec){case"C":return this.formatCurrency();case"D":return this.formatDecimal();case"E":return this.formatExp();case"F":return this.formatFixed();case"G":return this.formatGeneral();case"N":return this.formatNumber();case"P":return this.formatPercent();default:return this.custom?this.formatCustom(t):"?"}},t.prototype.formatCurrency=function(){this.prec<0&&(this.prec=this.options.currPrec),this.round(this.prec);var t=[];if(this.positive)switch(this.options.currPosPattern){case 0:t.push(this.options.currency);break;case 2:t.push(this.options.currency," ")}else switch(this.options.currNegPattern){case 0:t.push("(",this.options.currency);break;case 1:t.push("-",this.options.currency);break;case 2:t.push(this.options.currency,"-");break;case 3:t.push(this.options.currency);break;case 4:case 15:t.push("(");break;case 5:case 8:t.push("-");break;case 9:t.push("-",this.options.currency," ");break;case 11:t.push(this.options.currency," ");break;case 12:t.push(this.options.currency," -");break;case 14:t.push("(",this.options.currency," ")}if(this.appendGroupedInteger(t,this.options.currGroups,this.options.currGroupSeparator),this.prec>0&&(t.push(this.options.currDecimalPoint),this.appendDigits(t,this.pointPos,this.pointPos+this.prec)),this.positive)switch(this.options.currPosPattern){case 1:t.push(this.options.currency);break;case 3:t.push(" ",this.options.currency)}else switch(this.options.currNegPattern){case 0:case 14:t.push(")");break;case 3:case 11:t.push("-");break;case 4:t.push(this.options.currency,")");break;case 5:t.push(this.options.currency);break;case 6:t.push("-",this.options.currency);break;case 7:t.push(this.options.currency,"-");break;case 8:t.push(" ",this.options.currency);break;case 10:t.push(" ",this.options.currency,"-");break;case 13:t.push("- ",this.options.currency);break;case 15:t.push(" ",this.options.currency,")")}return t.join("")},t.prototype.formatDecimal=function(){if(this.prec<this.pointPos&&(this.prec=this.pointPos),this.prec<1)return"0";var t=[];return this.positive||t.push("-"),this.appendDigits(t,this.pointPos-this.prec,this.pointPos),t.join("")},t.prototype.formatExp=function(){return this.prec<0&&(this.prec=6),this.round(1-this.pointPos+this.prec),this.formatExpCore(3)},t.prototype.formatExpCore=function(t){var e=[];this.positive||e.push("-"),this.appendDigits(e,0,1),this.prec>0&&(e.push(this.options.numDecimalPoint),this.appendDigits(e,1,1+this.prec)),e.push(this.upper?"E":"e");var r=this.pointPos-1;r>=0?e.push("+"):(e.push("-"),r=-r);for(var n=String(r),i=n.length;i<t;i++)e.push(0);return e.push(n),e.join("")},t.prototype.formatFixed=function(){this.prec<0&&(this.prec=this.options.numPrec),this.round(this.prec);var t=[];return this.positive||t.push("-"),this.pointPos<1?t.push(0):this.appendDigits(t,0,this.pointPos),this.prec>0&&(t.push(this.options.numDecimalPoint),this.appendDigits(t,this.pointPos,this.pointPos+this.prec)),t.join("")},t.prototype.formatGeneral=function(){var t,e=this.pointPos<this.digits.length;return this.prec<0?(t=e,this.prec=e?15:10):(t=!0,this.prec<1&&(this.prec=e?15:10),this.round(this.prec-this.pointPos)),t&&(this.pointPos>this.prec||this.pointPos<=-4)?(this.prec=this.digits.length-1,this.formatExpCore(2)):(this.prec=Math.min(this.prec,Math.max(1,this.digits.length))-this.pointPos,this.formatFixed())},t.prototype.formatNumber=function(){this.prec<0&&(this.prec=this.options.numPrec),this.round(this.prec);var t=[];if(!this.positive)switch(this.options.numNegPattern){case 0:t.push("(");break;case 1:t.push("-");break;case 2:t.push("- ")}if(this.appendGroupedInteger(t,this.options.numGroups,this.options.numGroupSeparator),this.prec>0&&(t.push(this.options.numDecimalPoint),this.appendDigits(t,this.pointPos,this.pointPos+this.prec)),!this.positive)switch(this.options.numNegPattern){case 0:t.push(")");break;case 3:t.push("-");break;case 4:t.push(" -")}return t.join("")},t.prototype.formatPercent=function(){this.prec<0&&(this.prec=this.options.numPrec),this.digits.length>0&&(this.pointPos+=2),this.round(this.prec);var t=[];switch(this.positive||t.push("-"),2===this.options.percentPattern&&t.push("%"),this.appendGroupedInteger(t,this.options.numGroups,this.options.numGroupSeparator),this.prec>0&&(t.push(this.options.numDecimalPoint),this.appendDigits(t,this.pointPos,this.pointPos+this.prec)),this.options.percentPattern){case 0:t.push(" %");break;case 1:t.push("%")}return t.join("")},t.prototype.formatHex=function(t){var e=t.toString(16);if(e.indexOf("(")>-1)return e;if(e=this.upper?e.toUpperCase():e.toLowerCase(),this.prec<=e.length)return e;for(var r=[],n=e.length;n<this.prec;n++)r.push(0);return r.push(e),r.join("")},t.prototype.formatCustom=function(e){var r=t.getCustomFormatSections(e),n=this.selectCustomFormatSection(r);if(""===n)return this.positive?"":"-";var i=t.parseCustomFormatSection(n),o=this.createCustomFormatLists(i);r.length>2&&n!==r[2]&&(""===o.i.concat(o.f).join("").split("0").join("")&&(n=r[2],i=t.parseCustomFormatSection(n),o=this.createCustomFormatLists(i)));return this.formatCustomCore(n,i,o)},t.getCustomFormatSections=function(t){for(var e=[],r=!1,n="",i=0,o=0,s=0;s<t.length;s++){var a=t.charAt(s);if(r||""!==n||";"!==a)r?r=!1:a===n?n=""===n?a:"":"\\"===a?r=!0:"'"!==a&&'"'!==a||(n=a),++i;else if(e.push(t.substr(o,i)),i=0,o=s+1,e.length>2)break}return i>0&&e.push(t.substr(o,i)),e.length<1&&e.push(t),e},t.prototype.selectCustomFormatSection=function(t){return!this.positive&&t.length>1&&""!==t[1]?(this.positive=!0,t[1]):this.digits.length<1&&t.length>2&&""!==t[2]?t[2]:t[0]},t.createCustomFormatInfo=function(){return{pointPos:-1,grouping:!1,exp:!1,expShowPlus:!1,percent:!1,scaling:0,intDigits:0,fracDigits:0,expDigits:0,intSharps:0,fracSharps:0,expSharps:0}},t.parseCustomFormatSection=function(e){for(var r="",n="i",i=!0,o=t.createCustomFormatInfo(),s=0,a=0;a<e.length;a++){var u=e.charAt(a);if(u!==r){if(""===r)if("e"!==n||"0"===u||"#"===u)switch(u){case"\\":a++;continue;case"'":case'"':r=u;continue;case"#":case"0":if("#"===u)switch(n){case"i":i&&o.intSharps++;break;case"f":o.fracSharps++;break;case"e":o.expSharps++}else switch(i=!1,n){case"f":o.fracSharps=0;break;case"e":o.expSharps=0}switch(n){case"i":o.intDigits++,s>0&&(o.grouping=!0),s=0;break;case"f":o.fracDigits++;break;case"e":o.expDigits++}break;case"e":case"E":if(o.exp)break;if(o.exp=!0,n="e",a<e.length-1){var c=e.charAt(1+a);"+"===c||"-"===c?("+"===c&&(o.expShowPlus=!0),a++):"0"!==c&&"#"!==c&&(o.exp=!1,o.pointPos<0&&(n="i"))}break;case".":n="f",o.pointPos<0&&(o.pointPos=a);break;case"%":o.percent=!0;break;case",":"i"===n&&o.intDigits>0&&s++}else n=o.pointPos<0?"i":"f",a--}else r=""}return o.expDigits<1?o.exp=!1:o.intSharps=0,o.fracDigits<1&&(o.pointPos=-1),o.scaling=3*s,o},t.prototype.createCustomFormatLists=function(t){var e=[],r=[],n=[];this.digits.length>0&&(t.percent&&(this.pointPos+=2),this.pointPos-=t.scaling);var i=!0;if(t.exp&&(t.intDigits>0||t.fracDigits>0)){var o=0;this.digits.length>0&&(this.round(t.intDigits+t.fracDigits-this.pointPos),o-=this.pointPos-t.intDigits,this.pointPos=t.intDigits),i=o<=0,n=String(o<0?-o:o).split("")}else this.round(t.fracDigits);if(this.digits.length<1||this.pointPos<1?e=[0]:this.appendDigits(e,0,this.pointPos),this.appendDigits(r,this.pointPos,this.digits.length),t.exp){for(;e.length<t.intDigits;)e.unshift(0);for(;n.length<t.expDigits-t.expSharps;)n.unshift(0);i&&t.expShowPlus?n.unshift("+"):i||n.unshift("-")}else{for(;e.length<t.intDigits-t.intSharps;)e.unshift(0);if(t.intSharps>=t.intDigits){for(var s=!0,a=0;a<e.length;a++)if(0!==e[a]){s=!1;break}s&&(e=[])}}for(;r.length<t.fracDigits-t.fracSharps;)r.push(0);return{i:e,f:r,e:n}},t.prototype.formatCustomCore=function(t,e,r){var n=0,i=0,o=0,s=0,a=0;if(e.grouping&&this.options.numGroups.length>0){n=r.i.length;for(var u=0;u<this.options.numGroups.length;u++)i+this.options.numGroups[u]<=n&&(i+=this.options.numGroups[u],o=u);var c=n>i?n-i:0;if(0===(a=this.options.numGroups[o])){for(;o>=0&&0===this.options.numGroups[o];)o--;a=c>0?c:this.options.numGroups[o]}0===c?s=a:(o+=Math.floor(c/a),0===(s=c%a)?s=a:o++)}else e.grouping=!1;var h=[],p="i",l=0,f=0,d=0,m="";for(u=0;u<t.length;u++){var y=t.charAt(u);if(y!==m)if(""===m)switch(y){case"\\":++u<t.length&&h.push(t.charAt(u));continue;case"'":case'"':m=y;continue;case"#":case"0":if("i"===p){if(l++,"0"===y||e.intDigits-l<r.i.length+f)for(;e.intDigits-l+f<r.i.length;)h.push(r.i[f].toString()),f++,e.grouping&&--n>0&&0===--s&&(h.push(this.options.numGroupSeparator),--o<this.options.numGroups.length&&o>=0&&(a=this.options.numGroups[o]),s=a)}else"f"===p&&d<r.f.length&&(h.push(r.f[d].toString()),d++);break;case"e":case"E":if(null==r.e||!e.exp){h.push(y);break}for(var v=u+1;v<t.length&&(v===u+1&&("+"===t.charAt(v)||"-"===t.charAt(v))||"0"===t.charAt(v)||"#"===t.charAt(v));v++);u=v-1,p=e.pointPos<0?"i":"f",h.push(y),h=h.concat(r.e),r.e=null;break;case".":e.pointPos===u&&r.f.length>0&&h.push(this.options.numDecimalPoint),p="f";break;case",":break;default:h.push(y)}else h.push(y);else m=""}return this.positive||h.unshift("-"),h.join("")},t.prototype.fillDigitInfo=function(t){if(this.positive=!0,t<0&&(t=-t,this.positive=!1),this.digits=[],this.pointPos=0,0!==t&&isFinite(t)&&!isNaN(t)){var e=String(t).split("e"),r=e[0];e.length>1&&(this.pointPos=Number(e[1]));for(var n=!1,i=0,o=0;o<r.length;o++){var s=r.charAt(o);"."===s?n=!0:(n&&i++,("0"!==s||this.digits.length>0)&&this.digits.push(Number(s)))}this.pointPos+=this.digits.length-i}else this.pointPos=1},t.prototype.fillFormatInfo=function(t){var e;if(this.upper=!0,this.custom=!1,this.prec=-1,(e=null==t||t.length<1?"G":t.charAt(0))>="a"&&e<="z"&&(e=e.toUpperCase(),this.upper=!1),e>="A"&&e<="Z"){if(null!=t&&t.length>1){var r=Number(t.substr(1));isNaN(r)?this.custom=!0:this.prec=r}}else this.custom=!0;this.spec=this.custom?"0":e},t.prototype.round=function(t){var e=this.digits.length-this.pointPos-t;if(!(e<=0)){var r=this.pointPos+t;if(r<0)return this.digits=[],void(this.pointPos=0);var n=this.digits[r];if(n>4)for(var i=0;i<e;i++){var o=r-1-i;if(o<0&&(this.digits.unshift(0),this.pointPos++,r++,o++),(n=this.digits[o])<9){this.digits[o]=1+n;break}this.digits[o]=0,e++}for(i=r-1;i>=0&&!(this.digits[i]>0);i--)r--;this.digits.splice(r,this.digits.length-r)}},t.prototype.appendGroupedInteger=function(t,e,r){if(this.pointPos<1)t.push(0);else{for(var n=0,i=0,o=0;o<e.length&&n+e[o]<=this.pointPos;o++)n+=e[o],i=o;if(e.length>0&&n>0){var s=void 0,a=e[i],u=this.pointPos>n?this.pointPos-n:0;if(0===a){for(;i>=0&&0===e[i];)i--;a=u>0?u:e[i]}0===u?s=a:(i+=Math.floor(u/a),0===(s=u%a)?s=a:i++);for(o=0;;){if(this.pointPos-o<=s||0===s){this.appendDigits(t,o,this.pointPos);break}this.appendDigits(t,o,o+s),t.push(r),o+=s,--i<e.length&&i>=0&&(a=e[i]),s=a}}else this.appendDigits(t,0,this.pointPos)}},t.prototype.appendDigits=function(t,e,r){for(var n=e;n<r;n++)n<0||n>=this.digits.length?t.push(0):t.push(this.digits[n])},t}();e.NumberFormatter=r},670:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyBatchUpdatableObject=e.BatchUpdatableObject=void 0;var r=function(){function t(){this.suspendUpdateCount=0,this.occurredEvents=0}return t.prototype.beginUpdate=function(){0===this.suspendUpdateCount&&this.onUpdateLocked(),this.suspendUpdateCount<0?this.suspendUpdateCount--:this.suspendUpdateCount++},t.prototype.endUpdate=function(){if(this.suspendUpdateCount<0?this.suspendUpdateCount++:this.suspendUpdateCount>0&&this.suspendUpdateCount--,!this.isUpdateLocked()){var t=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(t)}},t.prototype.suspendUpdate=function(){if(this.suspendUpdateCount>0){this.suspendUpdateCount*=-1;var t=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(t)}},t.prototype.continueUpdate=function(){this.suspendUpdateCount<0&&(this.suspendUpdateCount*=-1)},t.prototype.isUpdateLocked=function(){return this.suspendUpdateCount>0},t.prototype.onUpdateLocked=function(){},t.prototype.registerOccurredEvent=function(t){this.occurredEvents|=t},t.prototype.resetOccurredEvents=function(){this.occurredEvents=0},t.prototype.isLocked=function(){return 0!==this.suspendUpdateCount},t}();e.BatchUpdatableObject=r;var n=function(){function t(){}return t.prototype.beginUpdate=function(){},t.prototype.endUpdate=function(){},t}();e.EmptyBatchUpdatableObject=n},705:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Point=void 0;var r=function(){function t(t,e){this.x=t,this.y=e}return t.zero=function(){return new t(0,0)},t.fromNumber=function(e){return new t(e,e)},t.prototype.isZero=function(){return 0===this.x&&0===this.y},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y},t.prototype.offset=function(t,e){return this.x+=t,this.y+=e,this},t.prototype.offsetByPoint=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.multiply=function(t,e){return this.x*=t,this.y*=e,this},t.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},t.prototype.applyConverter=function(t){return this.x=t(this.x),this.y=t(this.y),this},t.plus=function(e,r){return new t(e.x+r.x,e.y+r.y)},t.minus=function(e,r){return new t(e.x-r.x,e.y-r.y)},t.xComparer=function(t,e){return t.x-e.x},t.yComparer=function(t,e){return t.y-e.y},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}();e.Point=r},792:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LineEquation=void 0;var n=r(9652),i=r(705),o=function(){function t(t,e,r){this.aParam=t,this.bParam=e,this.cParam=r}return t.prototype.equals=function(t){return this.aParam===t.aParam&&this.bParam===t.bParam&&this.cParam===t.cParam},t.prototype.getIntersection=function(e){return t.getIntersection(this,e)},t.fromPoints=function(e,r){return new t(r.y-e.y,e.x-r.x,r.x*e.y-e.x*r.y)},t.getIntersection=function(t,e){var r=t.aParam,o=t.bParam,s=t.cParam,a=e.aParam,u=e.bParam,c=e.cParam,h=a*o-r*u;if(n.MathUtils.numberCloseTo(h,0))return null;if(0===r){var p=(u*s-c*o)/(o*a);return new i.Point(p,-s/o)}var l=(c*r-s*a)/h;return new i.Point((-o*l-s)/r,l)},t.equals=function(t,e){return t.aParam===e.bParam&&t.bParam===e.bParam&&t.cParam===e.cParam},t}();e.LineEquation=o},947:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1104:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JsonUtils=void 0;var r=function(){function t(){}return t.isValid=function(t){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(t.replace(/"(\\.|[^"\\])*"/g,""))},t}();e.JsonUtils=r},1134:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RectangleDeviation=e.HitTestDeviation=e.Rectangle=void 0;var n,i=r(7947),o=r(4677),s=r(2653),a=r(705),u=r(5906),c=function(){function t(t,e,r,n){this.x=t,this.y=e,this.width=r,this.height=n}return Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return t.center(this)},enumerable:!1,configurable:!0}),t.prototype.createRectangle=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.createSize=function(){return new u.Size(this.width,this.height)},t.prototype.createPosition=function(){return new a.Point(this.x,this.y)},t.prototype.createVerticalInterval=function(){return new s.FixedInterval(this.y,this.height)},t.prototype.createHorizontalInterval=function(){return new s.FixedInterval(this.x,this.width)},t.fromGeometry=function(e,r){return new t(e.x,e.y,r.width,r.height)},t.fromPoints=function(e,r){return new t(Math.min(e.x,r.x),Math.min(e.y,r.y),Math.abs(e.x-r.x),Math.abs(e.y-r.y))},t.fromPositions=function(e,r,n,i){return new t(Math.min(e,n),Math.min(r,i),Math.abs(n-e),Math.abs(i-r))},t.fromCenter=function(e,r){return new t(e.x-r,e.y-r,2*r,2*r)},t.prototype.isCollapsed=function(){return 0===this.width||0===this.height},t.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.setPosition=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.setSize=function(t){return this.width=t.width,this.height=t.height,this},t.prototype.setGeomerty=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.moveRectangle=function(t,e){return this.x+=t,this.y+=e,this},t.prototype.moveRectangleByPoint=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.resize=function(t,e){return this.width+=t,this.height+=e,this},t.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},t.prototype.multiply=function(t,e){return this.x*=t,this.y*=e,this.width*=t,this.height*=e,this},t.prototype.equals=function(e){return t.equals(this,e)},t.prototype.clone=function(){var e=new t(0,0,0,0);return e.copyFrom(this),e},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},t.prototype.containsPoint=function(e){return t.containsPoint(this,e)},t.prototype.containsRectangle=function(t){return this.x<=t.x&&this.right>=t.right&&this.y<=t.y&&this.bottom>=t.bottom},t.prototype.inflate=function(t,e){return void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.applyOffsetsInside=function(t){return this.x+=t.left,this.y+=t.top,this.width-=t.left+t.right,this.height-=t.top+t.bottom,this},t.prototype.applyNormalizedOffsetsInside=function(t){var e=Math.max(0,t.left),r=e+Math.max(0,t.right);0!==r&&(r<=this.width?(this.x+=e,this.width-=r):(this.x+=this.width*(e/r),this.width=0));var n=Math.max(0,t.top),i=n+Math.max(0,t.bottom);return 0!==i&&(i<=this.height?(this.y+=n,this.height-=i):(this.y+=this.height*(n/i),this.height=0)),this},t.prototype.applyOffsetsOutside=function(t){return this.x-=t.left,this.y-=t.top,this.width+=t.left+t.right,this.height+=t.top+t.bottom,this},t.prototype.applyConverter=function(t){return this.x=t(this.x),this.y=t(this.y),this.width=t(this.width),this.height=t(this.height),this},t.getHorizIntersection=function(t,e){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.x,t.width),new s.FixedInterval(e.x,e.width))},t.getVertIntersection=function(t,e){return o.IntervalAlgorithms.getIntersection(new s.FixedInterval(t.y,t.height),new s.FixedInterval(e.y,e.height))},t.getIntersection=function(e,r){var n=o.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.x,e.width),new s.FixedInterval(r.x,r.width));if(!n)return null;var i=o.IntervalAlgorithms.getIntersection(new s.FixedInterval(e.y,e.height),new s.FixedInterval(r.y,r.height));return i?new t(n.start,i.start,n.length,i.length):null},t.getHorNonCollapsedIntersection=function(e,r){var n=t.getHorizIntersection(e,r);return n&&!n.isCollapsed()?n:null},t.getVertNonCollapsedIntersection=function(e,r){var n=t.getVertIntersection(e,r);return n&&!n.isCollapsed()?n:null},t.getNonCollapsedIntersection=function(e,r){var n=t.getIntersection(e,r);return n&&!n.isCollapsed()?n:null},t.areIntersected=function(t,e){return!(t.x>e.x+e.width||e.x>t.x+t.width||t.y>e.y+e.height||e.y>t.y+t.height)},t.union=function(e,r){var n=Math.max(e.x+e.width,r.x+r.width),i=Math.max(e.y+e.height,r.y+r.height),o=Math.min(e.x,r.x),s=Math.min(e.y,r.y);return new t(o,s,n-o,i-s)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height},t.center=function(t){return new a.Point(t.x+t.width/2,t.y+t.height/2)},t.containsPoint=function(t,e){var r=t.x+t.width,n=t.y+t.height;return e.y>=t.y&&n>=e.y&&e.x>=t.x&&r>=e.x},t}();e.Rectangle=c,function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=4]="Left",t[t.Right=8]="Right"}(n=e.HitTestDeviation||(e.HitTestDeviation={}));var h=function(){function t(t,e){this.initRectangle=t,this.initPoint=e,this.deviation=new i.Flag(n.None)}return t.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(n.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(n.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(n.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(n.Bottom,!0),this},t.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new a.Point(0,0),this.deviation.get(n.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(n.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(n.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(n.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},t}();e.RectangleDeviation=h},1209:(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.Url=void 0;var browser_1=__webpack_require__(9246),common_1=__webpack_require__(4395),string_1=__webpack_require__(9031),javascriptPrefix="javascript:",Url=function(){function Url(){}return Url.containsClientScript=function(t){return-1!==t.toLowerCase().indexOf(javascriptPrefix)},Url.navigate=function(url,target){if(!string_1.StringUtils.isNullOrEmpty(url))if(Url.containsClientScript(url))eval(url.substr(javascriptPrefix.length));else try{common_1.isNonNullString(target)?Url.navigateTo(url,target):location.href=url}catch(t){}},Url.navigateTo=function(t,e){var r=e.toLowerCase();if("_top"===r)top.location.href=t;else if("_self"===r)location.href=t;else if("_search"===r)Url.openInNewWindow(t);else if("_media"===r)Url.openInNewWindow(t);else if("_parent"===r)window.parent.location.href=t;else if("_blank"===r)Url.openInNewWindow(t);else{var n=Url.getFrame(top.frames,e);null!==n?n.location.href=t:Url.openInNewWindow(t)}},Url.openInNewWindow=function(t){if(browser_1.Browser.Safari)Url.openInNewWindowViaIframe(t);else{var e=window.open();e&&(e.opener=null,e.location.assign(t))}},Url.openInNewWindowViaIframe=function(t){var e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);var r=e.contentDocument||e.contentWindow.document,n='"'+t+'"',i=r.createElement("script");i.type="text/javascript",i.text="window.parent = null; window.top = null;window.frameElement = null;var child = window.open("+n+");child.opener = null",r.body.appendChild(i),document.body.removeChild(e)},Url.getFrame=function(t,e){if(t[e])return t[e];for(var r=0;r<t.length;r++)try{var n=t[r];if(n.name===e)return n;if(null!==(n=Url.getFrame(n.frames,e)))return n}catch(t){}return null},Url}();exports.Url=Url},2042:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DateFormatter=void 0;var n=r(6936),i=r(9031),o=r(9930),s=function(){function t(t){this.date=new Date(2e3,0,1),this.mask="",this.specifiers={},this.spPositions=[],this.parserKeys=[],this.savedYear=-1,this.isYearParsed=!1,this.parsedMonth=-1,this.knownSpecifiers=["d","M","y","H","h","m","s","f","F","g","t"],this.replacers={d:this.replaceDay,M:this.replaceMonth,y:this.replaceYear,H:this.replaceHours23,h:this.replaceHours12,m:this.replaceMinutes,s:this.replaceSeconds,F:this.replaceMsTrimmed,f:this.replaceMs,g:this.replaceEra,t:this.replaceAmPm},this.parsers={d:this.parseDay,M:this.parseMonth,y:this.parseYear,H:this.parseHours,h:this.parseHours,m:this.parseMinutes,s:this.parseSeconds,F:this.parseMs,f:this.parseMs,g:this.parseEra,t:this.parseAmPm},this.options=t}return t.prototype.setFormatString=function(t){2===t.length&&"%"===t.charAt(0)&&(t=t.charAt(1));var e=!!t&&-1!==t.indexOf(this.options.ds);this.specifiers={},this.spPositions=[],this.mask="";for(var r=0,n=0,i=!1,o=!1,s="",a="",u=0;;u++){var c=t.charAt(u);if(""===c){s.length>0&&this.registerSpecifier(n,s,e);break}"\\"!==c||o?(o||"'"!==c&&'"'!==c?(i||("/"===c?c=this.options.ds:":"===c?c=this.options.ts:this.isKnownSpecifier(c)&&(0===a.length&&(a=c),c===a?s+=c:(s.length>0&&this.registerSpecifier(n,s,e),s=c,n=u-r))),this.mask+=c):(i=!i,r++),o=!1):(o=!0,r++),a=c}this.spPositions.reverse()},t.prototype.format=function(t){this.date=t;for(var e=this.mask,r=0,n=this.spPositions;r<n.length;r++){var i=n[r],o=this.specifiers[i],s=o.substr(0,1);this.replacers[s]&&(e=e.substr(0,i)+this.replacers[s].call(this,o.length)+e.substr(i+o.length))}return e},t.prototype.parse=function(t,e){var r=new Date;this.savedYear=r.getFullYear(),this.isYearParsed=!1,this.parsedMonth=-1,this.date=new Date(2e3,0,r.getDate()),this.strToParse=t,this.catchNumbers(t),this.hasAmPm=!1;for(var n=0,i=this.spPositions;n<i.length;n++){var o=i[n],s=this.specifiers[o],a=s.substr(0,1);if(this.parsers[a]&&(e&&this.parserKeys.push(a),!this.parsers[a].call(this,s.length)))return!1}return!(this.hasAmPm&&!this.fixHours())&&(this.isYearParsed||this.date.setFullYear(this.savedYear),this.parsedMonth<0&&(this.parsedMonth=r.getMonth()),this.applyMonth(),this.date)},t.prototype.hasYear=function(){return this.hasParserKey("y")},t.prototype.hasMonth=function(){return this.hasParserKey("M")},t.prototype.hasDay=function(){return this.hasParserKey("d")},t.prototype.hasHours=function(){return this.hasParserKey("h")||this.hasParserKey("H")},t.prototype.hasMinutes=function(){return this.hasParserKey("m")},t.prototype.hasSeconds=function(){return this.hasParserKey("s")},t.prototype.hasMilliseconds=function(){return this.hasParserKey("f")||this.hasParserKey("F")},t.prototype.hasParserKey=function(t){return-1!==this.parserKeys.indexOf(t)},t.expandPredefinedFormat=function(t,e){switch(t){case"d":return e.shortDate;case"D":return e.longDate;case"t":return e.shortTime;case"T":return e.longTime;case"g":return e.shortDate+" "+e.shortTime;case"f":return e.longDate+" "+e.shortTime;case"G":return e.shortDate+" "+e.longTime;case"F":case"U":return e.longDate+" "+e.longTime;case"M":case"m":return e.monthDay;case"Y":case"y":return e.yearMonth;case"O":case"o":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffff";case"R":case"r":return"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'";case"s":return"yyyy'-'MM'-'dd'T'HH':'mm':'ss";case"u":return"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"}return t},t.prototype.applyMonth=function(){for(var t,e=this.date.getDate();(t=new Date).setTime(this.date.getTime()),t.setMonth(this.parsedMonth),t.getMonth()!==this.parsedMonth;)--e,this.date.setDate(e);o.DateUtils.fixTimezoneGap(this.date,t),this.date=t},t.prototype.registerSpecifier=function(t,e,r){if(this.options.ds.length>1&&this.mask&&!r){var n=this.mask.split(this.options.ds);n&&(n.length>0&&""===n[n.length-1]&&n.pop(),t+=(n.length-1)*(this.options.ds.length-1))}this.spPositions.push(t),this.specifiers[t]=e},t.prototype.replaceDay=function(t){if(t<3){var e=this.date.getDate().toString();return 2===t?this.padLeft(e,2):e}return 3===t?this.options.abbrDayNames[this.date.getDay()]:this.options.dayNames[this.date.getDay()]},t.prototype.replaceMonth=function(t){var e=1+this.date.getMonth();switch(t){case 1:return e.toString();case 2:return this.padLeft(e.toString(),2);case 3:return this.options.abbrMonthNames[e-1];default:for(var r in this.specifiers)if(Object.prototype.hasOwnProperty.call(this.specifiers,r)){var n=this.specifiers[r];if("d"===n||"dd"===n)return this.options.genMonthNames[e-1]}return this.options.monthNames[e-1]}},t.prototype.replaceYear=function(t){var e=this.date.getFullYear();return t<=2&&(e%=100),this.padLeft(e.toString(),t)},t.prototype.replaceHours23=function(t){var e=this.date.getHours().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceHours12=function(t){var e=this.date.getHours()%12;0===e&&(e=12);var r=e.toString();return t>1?this.padLeft(r,2):r},t.prototype.replaceMinutes=function(t){var e=this.date.getMinutes().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceSeconds=function(t){var e=this.date.getSeconds().toString();return t>1?this.padLeft(e,2):e},t.prototype.replaceMsTrimmed=function(t){return this.formatMs(t,!0)},t.prototype.replaceMs=function(t){return this.formatMs(t,!1)},t.prototype.replaceEra=function(t){return"A.D."},t.prototype.replaceAmPm=function(t){var e=this.date.getHours()<12?this.options.am:this.options.pm;return t<2?e.charAt(0):e},t.prototype.catchNumbers=function(t){var e=this;this.parseNumbers=[];for(var r,i=/\d+/g;r=i.exec(t);)this.parseNumbers.push(this.parseDecInt(r[0]));var o=0,s=new Date;n.StringMapUtils.forEach(this.specifiers,function(t){if("string"==typeof t&&e.isNumericSpecifier(t)&&(o++,e.parseNumbers.length<o)){var r=0;"y"===t.charAt(0)&&(r=s.getFullYear()),e.parseNumbers.push(r)}});var a=this.parseNumbers.length-o;a>0&&this.parseNumbers.splice(o,a),this.currentParseNumber=this.parseNumbers.length-1},t.prototype.popParseNumber=function(){return this.parseNumbers[this.currentParseNumber--]},t.prototype.findAbbrMonth=function(){return this.findMonthCore(this.options.abbrMonthNames)},t.prototype.findFullMonth=function(){return this.findMonthCore(this.options.genMonthNames)},t.prototype.findMonthCore=function(t){for(var e=this.strToParse.toLowerCase(),r=0;r<t.length;r++){var n=t[r].toLowerCase();if(n.length>0&&e.indexOf(n)>-1)return this.strToParse=this.strToParse.replace(new RegExp(n,"gi"),i.StringUtils.repeat(" ",n.length)),1+r}return!1},t.prototype.parseDay=function(t){if(t<3){var e=this.popParseNumber();if(e<1||e>31)return!1;this.date.setDate(e)}return!0},t.prototype.parseMonth=function(t){var e;switch(t){case 1:case 2:e=this.popParseNumber();break;case 3:e=this.findAbbrMonth();break;default:e=this.findFullMonth()}return!(!1===e||e<1||e>12)&&(this.parsedMonth=e-1,!0)},t.prototype.parseYear=function(t){var e=this.popParseNumber();return!(e>9999)&&(e<100&&(e=o.DateUtils.expandTwoDigitYear(e,this.options)),this.date.setFullYear(e),this.isYearParsed=!0,!0)},t.prototype.parseHours=function(t){var e=this.popParseNumber();return!(e>23)&&(this.date.setHours(e),!0)},t.prototype.parseMinutes=function(t){var e=this.parseMinSecCore();return-1!==e&&(this.date.setMinutes(e),!0)},t.prototype.parseSeconds=function(t){var e=this.parseMinSecCore();return-1!==e&&(this.date.setSeconds(e),!0)},t.prototype.parseMs=function(t){t>3&&(t=3);for(var e=1,r=0;r<t;r++)e*=10;e-=1;for(var n=this.popParseNumber();n>e;)n/=10;return this.date.setMilliseconds(Math.round(n)),!0},t.prototype.parseEra=function(t){return!0},t.prototype.parseAmPm=function(t){return this.hasAmPm=this.options.am.length>0&&this.options.pm.length>0,!0},t.prototype.parseDecInt=function(t){return parseInt(t,10)},t.prototype.padLeft=function(t,e){for(;t.length<e;)t="0"+t;return t},t.prototype.formatMs=function(t,e){var r=Math.floor(this.date.getMilliseconds()*Math.pow(10,t-3)),n=this.padLeft(r.toString(),t);if(e){for(var i=n.length-1,o=!1;"0"===n.charAt(i);)o=!0,i--;o&&(n=n.substring(0,i+1))}return n},t.prototype.parseMinSecCore=function(){var t=this.popParseNumber();return t>59?-1:t},t.prototype.fixHours=function(){var t=this.getAmPmState(this.strToParse,!1);if(!t)return!0;var e=this.date.getHours();switch(t){case"P":if(e>12)return!1;e<12&&this.date.setHours(12+e);break;case"A":12===e&&this.date.setHours(0)}return!0},t.prototype.getAmPmState=function(t,e){var r=this.options.am.charAt(0).toLowerCase(),n=this.options.pm.charAt(0).toLowerCase(),i=new RegExp(r,"gi").exec(t),o=new RegExp(n,"gi").exec(t),s=i?i.length:0,a=o?o.length:0,u=s>0;return u!==a>0&&s<2&&a<2?u?"A":"P":e?null:(t=t.replace(new RegExp(this.getDayMonthNameReplacePattern(),"gi"),""),this.getAmPmState(t,!0))},t.prototype.getDayMonthNameReplacePattern=function(){return this.dayMonthNameReplacePattern?this.dayMonthNameReplacePattern:this.createDayMonthNameReplacePattern()},t.prototype.createDayMonthNameReplacePattern=function(){var t=[];return t.push("(?:"),t.push(this.createReplacePattern(this.options.monthNames)),t.push(this.createReplacePattern(this.options.genMonthNames)),t.push(this.createReplacePattern(this.options.abbrMonthNames)),t.push(this.createReplacePattern(this.options.abbrDayNames)),t.push(this.createReplacePattern(this.options.dayNames)),t.push(")"),t.join("")},t.prototype.createReplacePattern=function(t){return t&&t.length>0?"\\b"+t.join("\\b|\\b")+"\\b":""},t.prototype.isNumericSpecifier=function(t){var e=t.charAt(0);return!("g"===e||"t"===e||("M"===e||"d"===e)&&t.length>2)},t.prototype.isKnownSpecifier=function(t){return t=t.charAt(0),-1!==this.knownSpecifiers.indexOf(t)},t}();e.DateFormatter=s},2597:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Paddings=void 0;var n=r(5215),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.empty=function(){return new e(0,0,0,0)},e.prototype.clone=function(){return new e(this.left,this.right,this.top,this.bottom)},e}(r(4079).Offsets);e.Paddings=i},2653:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FixedInterval=void 0;var n=r(5215),i=function(t){function e(e,r){var n=t.call(this)||this;return n.start=e,n.length=r,n}return n.__extends(e,t),Object.defineProperty(e.prototype,"end",{get:function(){return this.start+this.length},set:function(t){this.length=t-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!1,configurable:!0}),e.prototype.copyFrom=function(t){this.start=t.start,this.length=t.length},e.prototype.equals=function(t){return t&&this.start===t.start&&this.length===t.length},e.prototype.clone=function(){return new e(this.start,this.length)},e.prototype.makeByStartEnd=function(t,r){return new e(t,r-t)},e.prototype.makeByStartLength=function(t,r){return new e(t,r)},e.prototype.makeByLengthEnd=function(t,r){return new e(r-t,t)},e.fromPositions=function(t,r){return new e(t,r-t)},e.makeByConstInterval=function(t){return new e(t.start,t.length)},e.prototype.expand=function(t){var e=Math.max(t.end,this.end);return this.start=Math.min(t.start,this.start),this.end=e,this},e}(r(4989).MutableInterval);e.FixedInterval=i},2887:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SparseObjectsIterator=void 0;var n=r(5215),i=function(t){function e(e,r){var n=t.call(this,e)||this;return n.objects=r,n}return n.__extends(e,t),e.prototype.initObject=function(){this.obj=this.objects[this.index]},e}(r(7724).SparseIntervalsIterator);e.SparseObjectsIterator=i},3133:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Base64Utils=void 0;var n=r(3944),i=r(567),o=function(){function t(){}return t.normalizeToDataUrl=function(e,r){return t.checkPrependDataUrl(e)||(e=t.prependByDataUrl(e,r)),e},t.prependByDataUrl=function(t,e){return"data:"+e+";base64,"+t},t.checkPrependDataUrl=function(e){return t.dataUrl.test(e)},t.deleteDataUrlPrefix=function(e){return e.replace(t.dataUrl,"")},t.getUint8Array=function(t){for(var e=(t=atob(t)).length,r=new Uint8Array(e);e--;)r[e]=t.charCodeAt(e);return r},t.fromArrayBuffer=function(t){for(var e=[],r=new Uint8Array(t),n=r.byteLength,i=0;i<n;i++)e.push(String.fromCharCode(r[i]));return window.btoa(e.join(""))},t.getFileFromBase64=function(e,r,i){void 0===r&&(r="");var o=t.getUint8Array(e);return n.FileUtils.createFile([o],r,i)},t.getMimeTypeAsString=function(e){var r=e.match(t.dataUrl);return r?r[1]:null},t.getKnownMimeType=function(e){var r=e.match(t.dataUrl);return r?i.MimeTypeUtils.stringTypeToType(r[1]):i.DxMimeType.Unknown},t.fromBlobAsArrayBuffer=function(e,r){var n=new FileReader;n.onloadend=function(){return r(t.fromArrayBuffer(n.result))},n.readAsArrayBuffer(e)},t.fromBlobAsDataUrl=function(t,e){var r=new FileReader;r.onloadend=function(){return e(r.result)},r.readAsDataURL(t)},t.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,t}();e.Base64Utils=o},3239:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EnumUtils=void 0;var r=function(){function t(){}return t.forEach=function(t,e){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=parseInt(r);isNaN(n)||e(n)}},t.isAnyOf=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];for(var n=0,i=e;n<i.length;n++){if(t===i[n])return!0}return!1},t}();e.EnumUtils=r},3565:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EvtUtils=void 0;var n=r(9246),i=r(4395),o=r(8504),s=r(431),a=function(){function t(){}return t.preventEvent=function(t){t.cancelable&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.getEventSource=function(e){return i.isDefined(e)?t.getEventSourceCore(e):null},t.getEventSourceByPosition=function(e){if(!i.isDefined(e))return null;if(!document.elementFromPoint)return t.getEventSourceCore(e);var r=t.getEventX(e)-(t.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0),n=t.getEventY(e)-(t.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0);return void 0===r||void 0===n?t.getEventSourceCore(e):document.elementFromPoint(r,n)},t.getEventSourceCore=function(t){return t.srcElement?t.srcElement:t.target},t.getMouseWheelEventName=function(){return n.Browser.Safari?"mousewheel":n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},t.isLeftButtonPressed=function(e){return!!s.TouchUtils.isTouchEvent(e)||!!(e=n.Browser.IE&&i.isDefined(event)?event:e)&&(n.Browser.IE&&n.Browser.Version<11?!!n.Browser.MSTouchUI||e.button%2==1:n.Browser.WebKitFamily?"pointermove"===e.type||"pointerenter"===e.type||"pointerleave"===e.type?1===e.buttons:1===e.which:n.Browser.NetscapeFamily||n.Browser.Edge||n.Browser.IE&&n.Browser.Version>=11?t.isMoveEventName(e.type)?1===e.buttons:1===e.which:!n.Browser.Opera||0===e.button)},t.isMoveEventName=function(e){return e===s.TouchUtils.touchMouseMoveEventName||e===t.getMoveEventName()},t.getMoveEventName=function(){return window.PointerEvent?"pointermove":n.Browser.TouchUI?"touchmove":"mousemove"},t.preventEventAndBubble=function(e){t.preventEvent(e),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},t.clientEventRequiresDocScrollCorrection=function(){var t=n.Browser.Safari&&n.Browser.Version<3,e=n.Browser.MacOSMobilePlatform&&n.Browser.Version<5.1;return n.Browser.AndroidDefaultBrowser||n.Browser.AndroidChromeBrowser||!(t||e)},t.getEventX=function(e){return s.TouchUtils.isTouchEvent(e)?s.TouchUtils.getEventX(e):e.clientX+(t.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollLeft():0)},t.getEventY=function(e){return s.TouchUtils.isTouchEvent(e)?s.TouchUtils.getEventY(e):e.clientY+(t.clientEventRequiresDocScrollCorrection()?o.DomUtils.getDocumentScrollTop():0)},t.cancelBubble=function(t){t.cancelBubble=!0},t.getWheelDelta=function(t){var e;return e=n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?-t.detail:n.Browser.Safari?t.wheelDelta:-t.deltaY,n.Browser.Opera&&n.Browser.Version<9&&(e=-e),e},t}();e.EvtUtils=a},3592:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SparseIntervalsMapCollector=void 0;var n=r(5657),i=function(){function t(t,e){this.intervals=[],this.valMap={},this.cmp=t,this.template=e}return t.prototype.add=function(t,e){this.curr&&this.curr.end===t&&0===this.cmp(this.currVal,e)?this.curr.length++:(this.curr=this.template.makeByStartLength(t,1),this.intervals.push(this.curr),this.currVal=e,this.valMap[t]=e)},t.prototype.getIterator=function(){return new n.SparseIntervalsMapIterator(this.intervals,this.valMap)},t}();e.SparseIntervalsMapCollector=i},3731:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3810:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Search