/** * Highcharts JS v11.2.0 (2023-10-30) * * Highcharts * * (c) 2010-2023 Highsoft AS * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/data-tools",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Data/Modifiers/DataModifier.js",[e["Core/Utilities.js"]],function(t){var e,o=t.addEvent,r=t.fireEvent,n=t.merge,i=function(){function t(){}return t.prototype.benchmark=function(t,e){var o=[],r=this,i=function(){r.modifyTable(t),r.emit({type:"afterBenchmarkIteration"})},s=n({iterations:1},e).iterations;r.on("afterBenchmarkIteration",function(){if(o.length===s){r.emit({type:"afterBenchmark",results:o});return}i()});var a={startTime:0,endTime:0};return r.on("modify",function(){a.startTime=window.performance.now()}),r.on("afterModify",function(){a.endTime=window.performance.now(),o.push(a.endTime-a.startTime)}),i(),o},t.prototype.emit=function(t){r(this,t.type,t)},t.prototype.modify=function(t,e){var o=this;return new Promise(function(r,n){t.modified===t&&(t.modified=t.clone(!1,e));try{r(o.modifyTable(t,e))}catch(r){o.emit({type:"error",detail:e,table:t}),n(r)}})},t.prototype.modifyCell=function(t,e,o,r,n){return this.modifyTable(t)},t.prototype.modifyColumns=function(t,e,o,r){return this.modifyTable(t)},t.prototype.modifyRows=function(t,e,o,r){return this.modifyTable(t)},t.prototype.on=function(t,e){return o(this,t,e)},t}();return(e=i||(i={})).types={},e.registerType=function(t,o){return!!t&&!e.types[t]&&!!(e.types[t]=o)},i}),o(e,"Data/DataTable.js",[e["Core/Utilities.js"]],function(t){var e=t.addEvent,o=t.fireEvent,r=t.uniqueKey;return function(){function t(t){void 0===t&&(t={}),this.aliases=t.aliases?JSON.parse(JSON.stringify(t.aliases)):{},this.autoId=!t.id,this.columns={},this.id=t.id||r(),this.modified=this,this.rowCount=0,this.versionTag=r();for(var e=t.columns||{},o=Object.keys(e),n=this.columns,i=0,s=0,a=o.length,u=void 0,l=void 0;s0&&t=this.rowCount&&(this.rowCount=e+1),s[e]=o,i&&i.modifyCell(this,t,e,o),this.emit({type:"afterSetCell",cellValue:o,columnName:t,detail:r,rowIndex:e}))},t.prototype.setColumn=function(t,e,o,r){var n;void 0===e&&(e=[]),void 0===o&&(o=0),this.setColumns(((n={})[t]=e,n),o,r)},t.prototype.setColumns=function(t,e,o){var r=this.columns,n=this.modifier,i=(this.rowCount,void 0===e),s=Object.keys(t);this.emit({type:"setColumns",columns:t,columnNames:s,detail:o,rowIndex:e});for(var a=0,u=s.length,l=void 0,c=void 0;athis.rowCount){this.rowCount=g;for(var l=0,y=s.length;le.getFullYear()-2e3?o+=1900:o+=2e3,Date.UTC(o,t[3]-1,+t[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})([\-\.\/])([0-9]{1,2})\2([0-9]{2})$/,parser:function(t){return t?Date.UTC(+t[4]+2e3,t[1]-1,+t[3]):NaN}}};var o=i(t.defaultOptions,e),r=o.decimalPoint;("."===r||","===r)&&(r="."===r?"\\.":",",this.decimalRegExp=RegExp("^(-?[0-9]+)"+r+"([0-9]+)$")),this.options=o}return t.prototype.asBoolean=function(t){return"boolean"==typeof t?t:"string"==typeof t?""!==t&&"0"!==t&&"false"!==t:!!this.asNumber(t)},t.prototype.asDate=function(t){var e;if("string"==typeof t)e=this.parseDate(t);else if("number"==typeof t)e=t;else{if(t instanceof Date)return t;e=this.parseDate(this.asString(t))}return new Date(e)},t.prototype.asGuessedType=function(t){return({number:this.asNumber,Date:this.asDate,string:this.asString})[this.guessType(t)].call(this,t)},t.prototype.asNumber=function(t){if("number"==typeof t)return t;if("boolean"==typeof t)return t?1:0;if("string"==typeof t){var e=this.decimalRegExp;if(t.indexOf(" ")>-1&&(t=t.replace(/\s+/g,"")),e){if(!e.test(t))return NaN;t=t.replace(e,"$1.$2")}return parseFloat(t)}return t instanceof Date?t.getDate():t?t.getRowCount():NaN},t.prototype.asString=function(t){return""+t},t.prototype.deduceDateFormat=function(t,e,o){var r,n,i,s=[],a=[],u="YYYY/mm/dd",l=[],c=0,f=!1;for((!e||e>t.length)&&(e=t.length);c31?n<100?l[i]="YY":l[i]="YYYY":n>12&&n<=31?(l[i]="dd",f=!0):l[i].length||(l[i]="mm"));if(f){for(i=0;i12&&"YY"!==l[i]&&"YYYY"!==l[i]&&(l[i]="YY"):a[i]>12&&"mm"===l[i]&&(l[i]="dd");3===l.length&&"dd"===l[1]&&"dd"===l[2]&&(l[2]="YY"),u=l.join("/")}return o&&(this.options.dateFormat=u),u},t.prototype.emit=function(t){r(this,t.type,t)},t.prototype.export=function(t,e){throw this.emit({type:"exportError",columns:[],headers:[]}),Error("Not implemented")},t.prototype.getTable=function(){throw Error("Not implemented")},t.prototype.guessType=function(t){var e="string";if("string"==typeof t){var o=this.trim("".concat(t)),r=this.decimalRegExp,i=this.trim(o,!0);r&&(i=r.test(i)?i.replace(r,"$1.$2"):"");var s=parseFloat(i);+i===s?t=s:e=n(this.parseDate(t))?"Date":"string"}return"number"==typeof t&&(e=t>31536e6?"Date":"number"),e},t.prototype.on=function(t,e){return o(this,t,e)},t.prototype.parse=function(t){throw this.emit({type:"parseError",columns:[],headers:[]}),Error("Not implemented")},t.prototype.parseDate=function(t,e){var o,r,i,s=this.options,a=e||s.dateFormat,u=NaN;if(s.parseDate)u=s.parseDate(t);else{if(a)(r=this.dateFormats[a])||(r=this.dateFormats["YYYY/mm/dd"]),(i=t.match(r.regex))&&(u=r.parser(i));else for(o in this.dateFormats)if(r=this.dateFormats[o],i=t.match(r.regex)){a=o,u=r.parser(i);break}!i&&("object"==typeof(i=Date.parse(t))&&null!==i&&i.getTime?u=i.getTime()-6e4*i.getTimezoneOffset():n(i)&&(u=i-6e4*new Date(i).getTimezoneOffset(),-1===t.indexOf("2001")&&2001===new Date(u).getFullYear()&&(u=NaN)))}return u},t.prototype.trim=function(t,e){return"string"==typeof t&&(t=t.replace(/^\s+|\s+$/g,""),e&&/^[0-9\s]+$/.test(t)&&(t=t.replace(/\s/g,""))),t},t.defaultOptions={dateFormat:"",alternativeFormat:"",startColumn:0,endColumn:Number.MAX_VALUE,startRow:0,endRow:Number.MAX_VALUE,firstRowAsNames:!0,switchRowsAndColumns:!1},t}();return(s||(s={})).getTableFromColumns=function(e,o){void 0===e&&(e=[]),void 0===o&&(o=[]);for(var r=new t,n=0,i=Math.max(o.length,e.length);n=0)return this;try{this.emittingRegister.push(g);for(var y=0,v=f.length;y=0&&this.emittingRegister.splice(b,1)}}return this},t.prototype.remitCursor=function(e,o){var r=this.stateMap[e]&&this.stateMap[e][o.state];if(r){var n=t.getIndex(o,r);n>=0&&r.splice(n,1)}return this},t.prototype.removeListener=function(t,e,o){var r=this.listenerMap[t]&&this.listenerMap[t][e];if(r){var n=r.indexOf(o);n&&r.splice(n,1)}return this},t.version="1.0.0",t}();return function(t){function e(t,e){if("range"===t.type)return t;var o,r,n,i,s={type:"range",firstRow:null!==(r=null!==(o=t.row)&&void 0!==o?o:e&&e.firstRow)&&void 0!==r?r:0,lastRow:null!==(i=null!==(n=t.row)&&void 0!==n?n:e&&e.lastRow)&&void 0!==i?i:Number.MAX_VALUE,state:t.state};return void 0!==t.column&&(s.columns=[t.column]),s}t.getIndex=function(t,e){if("position"===t.type){for(var o=void 0,r=0,n=e.length;r=o.firstRow&&t.lastRow<=o.lastRow&&(!r||!n||r.every(function(t){return n.indexOf(t)>=0}))},t.toPositions=function(t){if("position"===t.type)return[t];for(var e=t.columns||[],o=[],r=t.state,n=t.firstRow,i=t.lastRow;n]|<=|=>)/,i=/^(\$?[A-Z]+)(\$?\d+)\:(\$?[A-Z]+)(\$?\d+)/,s=/^R(\d*|\[\d+\])C(\d*|\[\d+\])\:R(\d*|\[\d+\])C(\d*|\[\d+\])/,a=/^(\$?[A-Z]+)(\$?\d+)(?![\:C])/,u=/^R(\d*|\[\d+\])C(\d*|\[\d+\])(?!\:)/;function l(t){for(var e=0,o=0,r=t.length,n=void 0,i=1;o0){var s=Error("Incomplete parantheses.");throw s.name="FormulaParseError",s}return""}function c(t){for(var e=-1,o=0,r=t.length,n=void 0,i=!1;o=65&&n<=90&&(e+=(n-64)*Math.pow(26,i)),--i;return e}return{parseFormula:p}}),o(e,"Data/Formula/FormulaTypes.js",[],function(){var t=["+","-","*","/","^","=","<","<=",">",">="];return{isFormula:function(t){return t instanceof Array},isFunction:function(t){return"object"==typeof t&&!(t instanceof Array)&&"function"===t.type},isOperator:function(e){return"string"==typeof e&&t.indexOf(e)>=0},isRange:function(t){return"object"==typeof t&&!(t instanceof Array)&&"range"===t.type},isReference:function(t){return"object"==typeof t&&!(t instanceof Array)&&"reference"===t.type},isValue:function(t){return"boolean"==typeof t||"number"==typeof t||"string"==typeof t}}}),o(e,"Data/Formula/FormulaProcessor.js",[e["Data/Formula/FormulaTypes.js"]],function(t){var e=t.isFormula,o=t.isFunction,r=t.isOperator,n=t.isRange,i=t.isReference,s=t.isValue,a=/ */,u=Number.MAX_VALUE/1.000000000001,l=Number.MAX_VALUE/1.000000000002,c=Number.MAX_VALUE,f={"^":3,"*":2,"/":2,"+":1,"-":1,"=":0,"<":0,"<=":0,">":0,">=":0},p={},h=/^[A-Z][A-Z\.]*$/;function m(t){switch(typeof t){case"boolean":return t?c:u;case"string":return l;case"number":return t;default:return NaN}}function d(t){return"string"==typeof t?t.toLowerCase().replace(a,"\x00"):t}function g(t){switch(typeof t){case"boolean":return t?1:0;case"string":return parseFloat(t.replace(",","."));case"number":return t;default:return NaN}}function y(t,e,o){var r;switch(t){case"=":return d(e)===d(o);case"<":if(typeof e==typeof o)return d(e)":if(typeof e==typeof o)return d(e)>d(o);return m(e)>m(o);case">=":if(typeof e==typeof o)return d(e)>=d(o);return m(e)>=m(o)}switch(e=g(e),o=g(o),t){case"+":r=e+o;break;case"-":r=e-o;break;case"*":r=e*o;break;case"/":r=e/o;break;case"^":r=Math.pow(e,o);break;default:return NaN}return r%1?Math.round(1e9*r)/1e9:r}function v(t,r){return s(t)?t:n(t)?r&&b(t,r)||[]:o(t)?j(t,r):w(e(t)?t:[t],r)}function b(t,e){for(var o=e.getColumnNames().slice(t.beginColumn,t.endColumn+1),r=[],n=0,i=o.length,a=void 0;ni&&(i=u);break;case"object":(u=o(u))>i&&(i=u)}return isFinite(i)?i:0}return t.registerProcessorFunction("MAX",o),o}),o(e,"Data/Formula/Functions/MEDIAN.js",[e["Data/Formula/FormulaProcessor.js"]],function(t){function e(e,o){for(var r=[],n=t.getArgumentsValues(e,o),i=0,s=n.length,a=void 0;i1?i:NaN}function r(t,o){var r=e(t,o),n=Object.keys(r);if(!n.length)return NaN;for(var i=parseFloat(n[0]),s=r[n[0]],a=1,u=n.length,l=void 0,c=void 0,f=void 0;a(c=parseFloat(l))&&(i=c,s=f);return s>1?i:NaN}return t.registerProcessorFunction("MODE",r),t.registerProcessorFunction("MODE.MULT",o),t.registerProcessorFunction("MODE.SNGL",r),{MULT:o,SNGL:r}}),o(e,"Data/Formula/Functions/NOT.js",[e["Data/Formula/FormulaProcessor.js"]],function(t){var e=t.getArgumentValue;function o(t,o){var r=e(t[0],o);switch("object"==typeof r&&(r=r[0]),typeof r){case"boolean":case"number":return!r}return NaN}return t.registerProcessorFunction("NOT",o),o}),o(e,"Data/Formula/Functions/OR.js",[e["Data/Formula/FormulaProcessor.js"]],function(t){var e=t.getArgumentValue;function o(t,r){for(var n=0,i=t.length,s=void 0;n2&&void 0===f[v][C];)f[v].pop(),C--;l.push(f[v].join(s))}}}return l.join(r)},o.prototype.parse=function(t,e){var o,r,n=this.dataTypes,s=i(this.options,t),a=s.beforeParse,u=s.lineDelimiter,l=s.firstRowAsNames,c=s.itemDelimiter,f=0,p=s.csv,h=s.startRow,m=s.endRow;if(this.columns=[],this.emit({type:"parse",columns:this.columns,detail:e,headers:this.headers}),p&&a&&(p=a(p)),p){if(o=p.replace(/\r\n|\r/g,"\n").split(u||"\n"),(!h||h<0)&&(h=0),(!m||m>=o.length)&&(m=o.length-1),c||(this.guessedItemDelimiter=this.guessDelimiter(o)),l){for(var d=o[0].split(c||this.guessedItemDelimiter||","),g=0;gh||h>a){++h,p="";return}if("string"==typeof p?!isNaN(parseFloat(p))&&isFinite(p)?(p=parseFloat(p),g("number")):isNaN(Date.parse(p))?g("string"):(p=p.replace(/\//g,"-"),g("date")):g("number"),r.length13)break;for(var p=t[s],h=0;hn[","]?e=";":(n[","],n[";"],e=","),o>r?this.guessedDecimalPoint=".":this.guessedDecimalPoint=",",e},o.prototype.getTable=function(){return t.getTableFromColumns(this.columns,this.headers)},o.defaultOptions=n(n({},t.defaultOptions),{lineDelimiter:"\n"}),o}(t)}),o(e,"Data/Connectors/CSVConnector.js",[e["Data/Converters/CSVConverter.js"],e["Data/Connectors/DataConnector.js"],e["Core/Utilities.js"]],function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=o.merge,s=function(e){function o(r){var n=this,s=i(o.defaultOptions,r);return(n=e.call(this,s)||this).converter=new t(s),n.options=s,s.enablePolling&&n.startPolling(1e3*Math.max(s.dataRefreshRate||0,1)),n}return n(o,e),o.prototype.load=function(t){var e=this,o=e.converter,r=e.table,n=e.options,i=n.csv,s=n.csvURL,a=n.dataModifier;return e.emit({type:"load",csv:i,detail:t,table:r}),r.deleteRows(),Promise.resolve(s?fetch(s).then(function(t){return t.text()}):i||"").then(function(t){return t&&(o.parse({csv:t}),r.setColumns(o.getTable().getColumns())),e.setModifierOptions(a).then(function(){return t})}).then(function(o){return e.emit({type:"afterLoad",csv:o,detail:t,table:r}),e}).catch(function(o){throw e.emit({type:"loadError",detail:t,error:o,table:r}),o})},o.defaultOptions={csv:"",csvURL:"",enablePolling:!1,dataRefreshRate:1,firstRowAsNames:!0},o}(e);return e.registerType("CSV",s),s}),o(e,"Data/Converters/JSONConverter.js",[e["Data/Converters/DataConverter.js"],e["Data/DataTable.js"],e["Core/Utilities.js"]],function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,o=1,r=arguments.length;o"+u[g].join("")+"")}var v="";return e.tableCaption&&(v=''+e.tableCaption+""),""+v+l+""+s.join("")+"
"},o.prototype.getCellHTMLFromValue=function(t,e,o,r,n){var i=r,s="text"+(e?" "+e:"");return"number"==typeof i?(i=i.toString(),","===n&&(i=i.replace(".",n)),s="number"):r||(i="",s="empty"),"<"+t+(o?" "+o:"")+' class="'+s+'">'+i+""},o.prototype.getTableHeaderHTML=function(t,e,o){void 0===t&&(t=[]),void 0===e&&(e=[]),void 0===o&&(o=this.options);var r=o.useMultiLevelHeaders,n=o.useRowspanHeaders;o.useLocalDecimalPoint&&1.1.toLocaleString()[1];var i,s,a="",u=0,l=e&&e.length,c=0;if(r&&t&&e&&!function(t,e){var o=t.length;if(e.length!==o)return!1;for(;--o;)if(t[o]!==e[o])return!1;return!0}(t,e)){for(a+="";u1?' valign="top" rowspan="'+s+'"':""),i));a+=""}if(e){for(a+="",u=0,l=e.length;u"}return a+""},o.prototype.parse=function(t,e){var o=[],r=[],n=i(this.options,t),s=n.endRow,a=n.startColumn,u=n.endColumn,l=n.firstRowAsNames,c=n.tableElement||this.tableElement;if(!(c instanceof HTMLElement)){this.emit({type:"parseError",columns:o,detail:e,headers:r,error:"Not a valid HTML Table"});return}this.tableElement=c,this.tableElementID=c.id,this.emit({type:"parse",columns:this.columns,detail:e,headers:this.headers});var f,p=c.getElementsByTagName("tr"),h=p.length,m=0,d=n.startRow;if(l&&h){for(var g=p[0].children,y=g.length,v=a;vu);v++)("TD"===(f=g[v]).tagName||"TH"===f.tagName)&&r.push(f.innerHTML);d++}for(;m=d&&m<=s)for(var b=p[m].children,C=b.length,w=0;w=a&&w<=u){o[j]||(o[j]=[]);var O=this.asGuessedType(f.innerHTML);O instanceof Date&&(O=O.getTime()),o[j][m-d]=O;for(var v=1;m-d>=v&&void 0===D[m-d-v];)D[m-d-v]=null,v++}w++}m++}this.columns=o,this.headers=r,this.emit({type:"afterParse",columns:o,detail:e,headers:r})},o.prototype.getTable=function(){return t.getTableFromColumns(this.columns,this.headers)},o.defaultOptions=n(n({},t.defaultOptions),{useRowspanHeaders:!0,useMultiLevelHeaders:!0}),o}(t)}),o(e,"Data/Connectors/HTMLTableConnector.js",[e["Data/Connectors/DataConnector.js"],e["Core/Globals.js"],e["Data/Converters/HTMLTableConverter.js"],e["Core/Utilities.js"]],function(t,e,o,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=e.win,a=r.merge,u=function(t){function e(r){var n=this,i=a(e.defaultOptions,r);return(n=t.call(this,i)||this).converter=new o(i),n.options=i,n}return i(e,t),e.prototype.load=function(t){var e,o=this,r=o.converter,n=o.table,i=o.options,u=i.dataModifier,l=i.table;if(o.emit({type:"load",detail:t,table:n,tableElement:o.tableElement}),n.deleteColumns(),"string"==typeof l?(o.tableID=l,e=s.document.getElementById(l)):(e=l,o.tableID=e.id),o.tableElement=e||void 0,!o.tableElement){var c="HTML table not provided, or element with ID not found";return o.emit({type:"loadError",detail:t,error:c,table:n}),Promise.reject(Error(c))}return r.parse(a({tableElement:o.tableElement},o.options),t),n.setColumns(r.getTable().getColumns()),o.setModifierOptions(u).then(function(){return o.emit({type:"afterLoad",detail:t,table:n,tableElement:o.tableElement}),o})},e.defaultOptions={table:""},e}(t);return t.registerType("HTMLTable",u),u}),o(e,"Data/Modifiers/ChainModifier.js",[e["Data/Modifiers/DataModifier.js"],e["Core/Utilities.js"]],function(t,e){var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=e.merge,i=function(e){function o(r){for(var i=[],s=1;s=0&&i.setColumn(u,this.processColumn(t,u));for(var l=this.options.columnFormulas||[],s=0,a=l.length,c=void 0,f=void 0;s0?n:0),a=0,u=s.length,l=[],c=void 0;a=0?r:0,n=n>=0?n:e.getRowCount()+n;for(var i=[],s=e.modified,a=0,u=n-r;a0&&!r&&(s.deleteRows(),s.setRows(u),a=s.getColumns(),u=[]),p=a[f.column]||[];for(var h=0,m=p.length,d=void 0,g=void 0;h=f.minValue&&d<=f.maxValue&&(g=r?t.getRow(h):s.getRow(h))&&u.push(g)}}s.deleteRows(),s.setRows(u)}return this.emit({type:"afterModify",detail:e,table:t}),t},e.defaultOptions={type:"Range",ranges:[]},e}(t);return t.registerType("Range",i),i}),o(e,"Data/Modifiers/SortModifier.js",[e["Data/Modifiers/DataModifier.js"],e["Data/DataTable.js"],e["Core/Utilities.js"]],function(t,e,o){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=o.merge,s=function(t){function o(e){var r=t.call(this)||this;return r.options=i(o.defaultOptions,e),r}return n(o,t),o.ascending=function(t,e){return(t||0)<(e||0)?-1:(t||0)>(e||0)?1:0},o.descending=function(t,e){return(e||0)<(t||0)?-1:(e||0)>(t||0)?1:0},o.prototype.getRowReferences=function(t){for(var e=t.getRows(),o=[],r=0,n=e.length;r-1&&(a&&o[u[0]].length?(t.modified.setColumns(o,r),t.modified.setColumn(a,this.modifyTable(new e({columns:t.getColumns([s,a])})).modified.getColumn(a))):this.modifyTable(t,n)),t},o.prototype.modifyRows=function(t,o,r,n){var i=this.options,s=i.orderByColumn,a=i.orderInColumn;return a&&o.length?(t.modified.setRows(o,r),t.modified.setColumn(a,this.modifyTable(new e({columns:t.getColumns([s,a])})).modified.getColumn(a))):this.modifyTable(t,n),t},o.prototype.modifyTable=function(t,e){this.emit({type:"modify",detail:e,table:t});var r,n=t.getColumnNames(),i=t.getRowCount(),s=this.getRowReferences(t),a=this.options,u=a.direction,l=a.orderByColumn,c=a.orderInColumn,f="asc"===u?o.ascending:o.descending,p=n.indexOf(l),h=t.modified;if(-1!==p&&s.sort(function(t,e){return f(t.row[p],e.row[p])}),c){for(var m=[],d=0;d