cheetah-grid
Version:
Cheetah Grid is a high performance grid engine that works on canvas
2 lines • 322 kB
JavaScript
/*! Cheetah Grid v1.16.6 | license MIT */
!function(){"use strict";function e(t,o,i,l){return(e="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,o,i){var l,a=r(e,t);if(a){if((l=Object.getOwnPropertyDescriptor(a,t)).set)return l.set.call(i,o),!0;if(!l.writable)return!1}if(l=Object.getOwnPropertyDescriptor(i,t)){if(!l.writable)return!1;l.value=o,Object.defineProperty(i,t,l)}else n(i,t,o);return!0})(t,o,i,l)}function t(t,n,o,r,i){if(!e(t,n,o,r||t)&&i)throw new Error("failed to set property");return o}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function r(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=s(e);if(t){var r=s(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}(function(e){var r,l;r=e,l=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===p(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=80)}([function(t,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.emptyFn=n.style=n.event=n.str=n.obj=n.browser=n.cellInRange=n.cellEquals=n.array=n.then=n.getIgnoreCase=n.getOrApply=n.applyChainSafe=n.getChainSafe=n.isDescendantElement=n.isNode=n.isPromise=n.extend=n.defaults=n.omit=n.each=void 0;var r,i,l=void 0===e||void 0===e.window;n.isNode=l;var a={get find(){return r||(r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){var n=a.findIndex(e,t);return n>=0?e[n]:void 0})},get findIndex(){return i||(i=Array.prototype.findIndex?function(e,t){return Array.prototype.findIndex.call(e,t)}:function(e,t){for(var n=e.length,o=0;o<n;o++)if(t(e[o],o,e))return o;return-1})}};n.array=a;var u=function(){if(l)return{IE:!1,Edge:!1,Chrome:!1,Firefox:!1,Safari:!1};var t=e.navigator.userAgent.toLowerCase();return{IE:!!/(msie|trident)/.exec(t),Edge:t.indexOf("edge")>-1,Chrome:t.indexOf("chrome")>-1&&-1===t.indexOf("edge"),Firefox:t.indexOf("firefox")>-1,Safari:t.indexOf("safari")>-1&&-1===t.indexOf("edge")}}(),c=u.IE,s=u.Chrome,f=u.Firefox,h=u.Edge,d=u.Safari;function v(e,t){for(var n=e,o=0;o<(arguments.length<=2?0:arguments.length-2)&&null!=n;o++)n=t(n,o+2<2||arguments.length<=o+2?void 0:arguments[o+2]);return n}function g(e){return Boolean(e&&"function"==typeof e.then)}n.each=function(e,t){for(var n in e)t(e[n],n,e)},n.omit=function(e,t){var n={},o=function(o){if(t.indexOf(o)>=0)return"continue";Object.defineProperty(n,o,{get:function(){return e[o]},set:function(t){e[o]=t},configurable:!0,enumerable:!0})};for(var r in e)o(r);return n},n.defaults=function(e,t){var n=[],o={},r=function(r){n.push(r),Object.defineProperty(o,r,{get:function(){var n=e[r];return void 0===n?t[r]:n},set:function(t){e[r]=t},configurable:!0,enumerable:!0})};for(var i in e)r(i);var l=function(r){if(n.indexOf(r)>=0)return"continue";Object.defineProperty(o,r,{get:function(){var n=e[r];return void 0===n?t[r]:n},set:function(t){e[r]=t},configurable:!0,enumerable:!0})};for(var a in t)l(a);return o},n.extend=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){var n=function(n){Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0,enumerable:!0})};for(var o in t)n(o)})),e},n.isDescendantElement=function(e,t){for(;t.parentElement;){var n=t.parentElement;if(e===n)return!0;t=n}return!1},n.applyChainSafe=v,n.getChainSafe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return v.apply(void 0,[e,function(e,t){return e[t]}].concat(n))},n.getOrApply=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e.apply(void 0,n)}return e},n.isPromise=g,n.then=function(e,t){return g(e)?e.then((function(e){return t(e)})):t(e)},n.getIgnoreCase=function(e,t){if(e[t])return e[t];var n=t.toLowerCase();if(e[n])return e[n];var o=t.toLowerCase();if(e[o])return e[o];for(var r in e)if(r.toLowerCase()===n)return e[r]},n.cellEquals=function(e,t){return e.col===t.col&&e.row===t.row},n.cellInRange=function(e,t,n){return e.start.col<=t&&t<=e.end.col&&e.start.row<=n&&n<=e.end.row},n.browser={IE:c,Edge:h,Chrome:s,Firefox:f,Safari:d,heightLimit:s?16777216:f?17895588:10737433},n.obj={setReadonly:function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})},isObject:function(e){return e===Object(e)}},n.str={endsWith:function(e,t,n){var o=e.toString();("number"!=typeof n||!isFinite(n)||Math.floor(n)!==n||n>o.length)&&(n=o.length),n-=t.length;var r=o.lastIndexOf(t,n);return-1!==r&&r===n},genChars:function(e){var t=/([\uD800-\uDBFF][\uDC00-\uDFFF]|\r\n|[^\uD800-\uDFFF])([\u180B-\u180D]|[\uFE00-\uFE0F]|\uDB40[\uDD00-\uDDEF])?/g;return{next:function(){var n=t.exec(e);return null!==n?n[0]:null}}},genWords:function(e){var t=/[!-~]+|[^!-~\s]+|\s+/g;return{next:function(){var n=t.exec(e);return null!==n?n[0]:null}}}},n.event={getMouseButtons:function(e){return null!=e.buttons?e.buttons:null!=e.which?3===e.which||2===e.which?4:e.which:0===e.button||1===e.button?1:2===e.button?2:0},getKeyCode:function(e){return e.keyCode||e.which},isTouchEvent:function(e){return!!e.changedTouches},cancel:function(e){e.preventDefault(),e.stopPropagation()}},n.style={toBoxArray:function(e){return Array.isArray(e)?3===e.length?[e[0],e[1],e[2],e[1]]:2===e.length?[e[0],e[1],e[0],e[1]]:1===e.length?[e[0],e[0],e[0],e[0]]:e:[e,e,e,e]}},n.emptyFn=Function.prototype},function(t,n,o){(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.getCheckHeaderStateId=n.getInlineMenuEditorStateId=n.getInlineInputEditorStateId=n.getSmallDialogInputEditorStateId=n.getTreeColumnStateId=n.getBranchGraphColumnStateId=n.getColumnFadeinStateId=n.getButtonColumnStateId=n.getRadioColumnStateId=n.getCheckColumnStateId=n.getProtectedSymbol=n.get=void 0;var r=o(0).isNode?t.Symbol:e.Symbol?e.Symbol:function(){function e(){for(var e="abcdefghijklmnopqrstuvwxyz0123456789",t=e.length,n="",o=0;o<10;o++)n+=e[Math.floor(Math.random()*t)];return n}return function(t){return t?"#".concat(t,"_").concat(e()):"#_".concat(e())}}(),i={};function l(e){return e?i[e]?i[e]:i[e]=r(e):r()}n.get=l,n.getProtectedSymbol=function(){return l("protected")},n.getCheckColumnStateId=function(){return l("chkcol.stateID")},n.getRadioColumnStateId=function(){return l("rdcol.stateID")},n.getButtonColumnStateId=function(){return l("btncol.stateID")},n.getColumnFadeinStateId=function(){return l("col.fadein_stateID")},n.getBranchGraphColumnStateId=function(){return l("branch_graph_col.stateID")},n.getTreeColumnStateId=function(){return l("tree_col.stateID")},n.getSmallDialogInputEditorStateId=function(){return l("small_dialog_input_editor.stateID")},n.getInlineInputEditorStateId=function(){return l("inline_input_editor.stateID")},n.getInlineMenuEditorStateId=function(){return l("inline_menu_editor.stateID")},n.getCheckHeaderStateId=function(){return l("check_header.stateID")}}).call(this,o(83))},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,o,r,i=e[1]||"",l=e[3];if(!l)return i;if(t&&"function"==typeof btoa){var a=(n=l,o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(r," */")),u=l.sources.map((function(e){return"/*# sourceURL=".concat(l.sourceRoot||"").concat(e," */")}));return[i].concat(u).concat([a]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);o&&r[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandler=void 0;var o=n(0),r=1,i=function(){function e(){d(this,e),this._listeners={}}return g(e,[{key:"on",value:function(e,t,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),l=3;l<o;l++)i[l-3]=arguments[l];e.addEventListener&&e.addEventListener.apply(e,[t,n].concat(i));var a={target:e,type:t,listener:n,options:i},u=r++;return this._listeners[u]=a,u}},{key:"once",value:function(e,t,n){for(var o=this,r=arguments.length,i=new Array(r>3?r-3:0),l=3;l<r;l++)i[l-3]=arguments[l];var a=this.on.apply(this,[e,t,function(){o.off(a),n.apply(void 0,arguments)}].concat(i));return a}},{key:"tryWithOffEvents",value:function(e,t,n){var r=[];try{(0,o.each)(this._listeners,(function(n){var o;n.target===e&&n.type===t&&(n.target.removeEventListener&&(o=n.target).removeEventListener.apply(o,[n.type,n.listener].concat(f(n.options))),r.push(n))})),n()}finally{r.forEach((function(e){var t;e.target.addEventListener&&(t=e.target).addEventListener.apply(t,[e.type,e.listener].concat(f(e.options)))}))}}},{key:"off",value:function(e){if(null!=e){var t,n=this._listeners[e];n&&(delete this._listeners[e],n.target.removeEventListener&&(t=n.target).removeEventListener.apply(t,[n.type,n.listener].concat(f(n.options))))}}},{key:"fire",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];(0,o.each)(this._listeners,(function(n){var o;n.target===e&&n.type===t&&(o=n.listener).call.apply(o,[n.target].concat(r))}))}},{key:"hasListener",value:function(e,t){var n=!1;return(0,o.each)(this._listeners,(function(o){o.target===e&&o.type===t&&(n=!0)})),n}},{key:"clear",value:function(){(0,o.each)(this._listeners,(function(e){var t;e.target.removeEventListener&&(t=e.target).removeEventListener.apply(t,[e.type,e.listener].concat(f(e.options)))})),this._listeners={}}},{key:"dispose",value:function(){this.clear(),this._listeners=null}}]),e}();t.EventHandler=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DG_EVENT_TYPE=void 0,t.DG_EVENT_TYPE={CLICK_CELL:"click_cell",DBLCLICK_CELL:"dblclick_cell",DBLTAP_CELL:"dbltap_cell",MOUSEDOWN_CELL:"mousedown_cell",MOUSEUP_CELL:"mouseup_cell",SELECTED_CELL:"selected_cell",KEYDOWN:"keydown",MOUSEMOVE_CELL:"mousemove_cell",MOUSEENTER_CELL:"mouseenter_cell",MOUSELEAVE_CELL:"mouseleave_cell",MOUSEOVER_CELL:"mouseover_cell",MOUSEOUT_CELL:"mouseout_cell",TOUCHSTART_CELL:"touchstart_cell",CONTEXTMENU_CELL:"contextmenu_cell",INPUT_CELL:"input_cell",PASTE_CELL:"paste_cell",DELETE_CELL:"delete_cell",EDITABLEINPUT_CELL:"editableinput_cell",MODIFY_STATUS_EDITABLEINPUT_CELL:"modify_status_editableinput_cell",RESIZE_COLUMN:"resize_column",SCROLL:"scroll",FOCUS_GRID:"focus_grid",BLUR_GRID:"blur_grid"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Style=void 0;var o,r=function(e){i(n,e);var t=a(n);function n(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,n),(e=t.call(this,o))._color=o.color,e._font=o.font,e._textOverflow=o.textOverflow||"clip",e}return g(n,[{key:"color",get:function(){return this._color},set:function(e){this._color=e,this.doChangeStyle()}},{key:"font",get:function(){return this._font},set:function(e){this._font=e,this.doChangeStyle()}},{key:"textOverflow",get:function(){return this._textOverflow},set:function(e){this._textOverflow=e,this.doChangeStyle()}},{key:"clone",value:function(){return new n(this)}}],[{key:"DEFAULT",get:function(){return o||(o=new n)}}]),n}(n(21).StdBaseStyle);t.Style=r},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.loadIcons=void 0;var l=i(n(26)),a=n(0);t.loadIcons=function e(t,n,o,r){var i=void 0;if(t)if((0,a.isPromise)(t))t.then((function(t){e(t,n.toCurrentContext(),o,r)}));else{var u=l.toNormalizeArray(t);u.forEach((function(e){e.font&&e.content&&o.testFontLoad(e.font,e.content,n)})),i=u}r(i,n)}},function(t,n,o){var r,i=function(){return void 0===r&&(r=Boolean(e&&document&&document.all&&!e.atob)),r},l=function(){var t={};return function(n){if(void 0===t[n]){var o=document.querySelector(n);if(e.HTMLIFrameElement&&o instanceof e.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[n]=o}return t[n]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var i=e[r],l=t.base?i[0]+t.base:i[0],c=n[l]||0,s="".concat(l," ").concat(c);n[l]=c+1;var f=u(s),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(h)):a.push({identifier:s,updater:y(h,t),references:1}),o.push(s)}return o}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=o.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var i=l(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var f,h=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=h(t,r);else{var i=document.createTextNode(r),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(i,l[t]):e.appendChild(i)}}function v(e,t,n){var o=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var g=null,p=0;function y(e,t){var n,o,r;if(t.singleton){var i=p++;n=g||(g=s(t)),o=d.bind(null,n,i,!1),r=d.bind(null,n,i,!0)}else n=s(t),o=v.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}t.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=u(n[o]);a[r].references--}for(var i=c(e,t),l=0;l<n.length;l++){var s=u(n[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}n=i}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.calcStartPosition=t.calcBasePosition=t.getFontSize=void 0;var o={};function r(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=r.offset,l=void 0===i?0:i,a=r.padding,u=(a=void 0===a?{}:a).left,c=void 0===u?0:u,s=a.right,f=void 0===s?0:s,h=a.top,d=void 0===h?0:h,v=a.bottom,g=void 0===v?0:v,p=e.textAlign||"left",y=e.textBaseline||"middle";e.textAlign=p,e.textBaseline=y;var _=t.left+l+c;"right"===p||"end"===p?_=t.right-n-l-f:"center"===p&&(_=t.left+(t.width-n+c-f)/2);var m=t.top+l+d;return"bottom"===y||"alphabetic"===y||"ideographic"===y?m=t.bottom-o-l-g:"middle"===y&&(m=t.top+(t.height-o+d-g)/2),{x:_,y:m}}t.getFontSize=function(e,t){var n=t||e.font;if(o[n])return o[n];var r=e.font;e.canvas.style.letterSpacing="normal";try{e.font=n;var i=e.measureText("あ").width;return o[n]={width:i,height:i}}finally{e.canvas.style.letterSpacing="",e.font=r}},t.calcBasePosition=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.offset,i=void 0===o?0:o,l=n.padding,a=(l=void 0===l?{}:l).left,u=void 0===a?0:a,c=l.right,s=void 0===c?0:c,f=l.top,h=void 0===f?0:f,d=l.bottom,v=void 0===d?0:d;return r(e,t,0,0,{offset:i,padding:{left:u,right:s,top:h,bottom:v}})},t.calcStartPosition=r},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseColumn=void 0;var l=i(n(25)),a=n(0),u=n(19),c=n(18),s=n(1),f=n(94),h=a.obj.setReadonly,v=(0,s.getColumnFadeinStateId)();function p(e){var t=e[v];return t||h(e,v,t={cells:{}}),t}function y(e,t,n,o,r,i){return function(l){var a=p(e),u="".concat(n,":").concat(t);1===l?delete a.cells[u]:a.cells[u]={opacity:l},i(),r();var c=a.cells[u];if(c){var s=o.getContext();s.globalAlpha=1-c.opacity;try{i()}finally{s.globalAlpha=1}}}}var _=function(e,t,n,o,r,i){var l=p(e),a=[y(e,t,n,o,r,i)];l.activeFadeins=a,(0,c.animate)(500,(function(e){a.forEach((function(t){return t(e)})),1===e&&delete l.activeFadeins}))},m=function(e,t,n,o,r,i){var l=p(e);l.activeFadeins?l.activeFadeins.push(y(e,t,n,o,r,i)):r()},C=function(){function e(t){d(this,e),this.onDrawCell=this.onDrawCell.bind(this),this._fadeinWhenCallbackInPromise=null==t?void 0:t.fadeinWhenCallbackInPromise}return g(e,[{key:"fadeinWhenCallbackInPromise",get:function(){return this._fadeinWhenCallbackInPromise}},{key:"StyleClass",get:function(){return u.BaseStyle}},{key:"onDrawCell",value:function(e,t,n,o){var r,i=this,u=t.style,c=t.getRecord,s=t.drawCellBase,f=o.getGridCanvasHelper();s();var h,d=c();if((0,a.isPromise)(d))h=d;else if((0,a.isPromise)(e))h=e;else{var g=t.getMessage();(0,a.isPromise)(g)&&(h=g)}if(h){var p=Date.now();return Promise.all([d,e,h.then((function(){return e})).then((function(){return t.getMessage()}))]).then((function(e){var r=e[0],a=e[1],c=e[2];if(n.toCurrentContext().getDrawRect()){var h=Date.now()-p,d=function(){var e=n.toCurrentContext();if(e.getDrawRect()){var s=l.of(u,r,i.StyleClass);i.drawInternal(i.convertInternal(a),e,s,f,o,t),i.drawMessageInternal(c,e,s,f,o,t),i.drawIndicatorsInternal(e,s,f,o,t)}};if(function(e,t){return null!=e.fadeinWhenCallbackInPromise?e.fadeinWhenCallbackInPromise:!!t.configure("fadeinWhenCallbackInPromise")}(i,o)){var v=n.col,g=n.row;h<80?m(o,v,g,n,d,s):_(o,v,g,n,d,s)}else d()}}))}var y=l.of(u,d,this.StyleClass);this.drawInternal(this.convertInternal(e),n,y,f,o,t),this.drawMessageInternal(t.getMessage(),n,y,f,o,t),this.drawIndicatorsInternal(n,y,f,o,t);var C=n.col,w=n.row,b="".concat(C,":").concat(w),k=null===(r=o[v])||void 0===r?void 0:r.cells[b];if(k){var E=n.getContext();E.globalAlpha=1-k.opacity;try{s()}finally{E.globalAlpha=1}}}},{key:"convertInternal",value:function(e){return null!=e?e:""}},{key:"drawMessageInternal",value:function(e,t,n,o,r,i){i.messageHandler.drawCellMessage(e,t,n,o,r,i)}},{key:"drawIndicatorsInternal",value:function(e,t,n,o,r){for(var i,l=0,a=[[t.indicatorTopLeft,0],[t.indicatorTopRight,1],[t.indicatorBottomRight,2],[t.indicatorBottomLeft,3]];l<a.length;l++){var u=a[l],c=u[0],s=u[1];c&&(null===(i=(0,f.getDrawIndicator)(c))||void 0===i||i(e,c,s,n,o,r))}}},{key:"bindGridEvent",value:function(e,t){return[]}},{key:"getCopyCellValue",value:function(e,t,n){return e}}]),e}();t.BaseColumn=C},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Column=void 0;var u=l(n(6)),c=n(9),s=n(5),f=function(e){i(n,e);var t=a(n);function n(){return d(this,n),t.apply(this,arguments)}return g(n,[{key:"StyleClass",get:function(){return s.Style}},{key:"clone",value:function(){return new n(this)}},{key:"drawInternal",value:function(e,t,n,o,r,i){var l=i.drawCellBase,a=i.getIcon,c=n.textAlign,s=n.textBaseline,f=n.color,h=n.font,d=n.bgColor,v=n.padding,g=n.textOverflow,p=n.visibility;if(d&&l({bgColor:d}),"hidden"!==p){var y=null!=e?String(e):"";o.testFontLoad(h,y,t),u.loadIcons(a(),t,o,(function(e,t){o.text(y,t,{textAlign:c,textBaseline:s,color:f,font:h,padding:v,textOverflow:g,icons:e})}))}}}]),n}(c.BaseColumn);t.Column=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;var o=function(){function e(t,n,o,r){d(this,e),this._left=t,this._top=n,this._width=o,this._height=r}return g(e,[{key:"left",get:function(){return this._left},set:function(e){var t=this.right;this._left=e,this.right=t}},{key:"top",get:function(){return this._top},set:function(e){var t=this.bottom;this._top=e,this.bottom=t}},{key:"width",get:function(){return this._width},set:function(e){this._width=e,this._right=void 0}},{key:"height",get:function(){return this._height},set:function(e){this._height=e,this._bottom=void 0}},{key:"right",get:function(){return void 0!==this._right?this._right:this._right=this.left+this.width},set:function(e){this._right=e,this.width=e-this.left}},{key:"bottom",get:function(){return void 0!==this._bottom?this._bottom:this._bottom=this.top+this.height},set:function(e){this._bottom=e,this.height=e-this.top}},{key:"offsetLeft",value:function(e){this._left+=e,this._right=void 0}},{key:"offsetTop",value:function(e){this._top+=e,this._bottom=void 0}},{key:"copy",value:function(){return new e(this.left,this.top,this.width,this.height)}},{key:"intersection",value:function(t){var n=Math.max(this.left,t.left),o=Math.min(this.left+this.width,t.left+t.width);if(n<=o){var r=Math.max(this.top,t.top),i=Math.min(this.top+this.height,t.top+t.height);if(r<=i)return e.bounds(n,r,o,i)}return null}},{key:"contains",value:function(e){return this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height}},{key:"inPoint",value:function(e,t){return this.left<=e&&this.left+this.width>=e&&this.top<=t&&this.top+this.height>=t}}],[{key:"bounds",value:function(t,n,o,r){return new e(t,n,o-t,r-n)}},{key:"max",value:function(t,n){return e.bounds(Math.min(t.left,n.left),Math.min(t.top,n.top),Math.max(t.right,n.right),Math.max(t.bottom,n.bottom))}}]),e}();t.Rect=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toggleValue=t.isReadOnlyRecord=t.isDisabledRecord=void 0;var o=n(0);function r(e,t,n){if("function"==typeof e){var r=t.getRowRecord(n);return!!(0,o.isPromise)(r)||!!e(r)}return!!e}t.isDisabledRecord=function(e,t,n){return!!t.disabled||r(e,t,n)},t.isReadOnlyRecord=function(e,t,n){return!!t.readOnly||r(e,t,n)},t.toggleValue=function(e){if("number"==typeof e)return 0===e?1:0;if("string"==typeof e){if("false"===e)return"true";if("off"===e)return"on";if(/^0+$/.exec(e))return e.replace(/^(0*)0$/,"$11");if("true"===e)return"false";if("on"===e)return"off";if(/^0*1$/.exec(e))return e.replace(/^(0*)1$/,"$10")}return!e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0;var o=function(e){i(n,e);var t=a(n);function n(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,n),(e=t.call(this,o))._readOnly=o.readOnly||!1,e}return g(n,[{key:"editable",get:function(){return!0}},{key:"readOnly",get:function(){return this._readOnly},set:function(e){this._readOnly=e,this.onChangeReadOnlyInternal()}},{key:"onChangeReadOnlyInternal",value:function(){}}]),n}(n(24).BaseAction);t.Editor=o},function(e,t,n){function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.classList,r=n.text,i=n.html,l=document.createElement(e);return o&&(Array.isArray(o)?(t=l.classList).add.apply(t,f(o)):l.classList.add(o)),r?l.textContent=r:i&&(l.innerHTML=i),l}function r(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push.apply(t,f(r(e)))})),t}var n=function(e){if(function(e){return!(!e.nodeType||!e.nodeName)}(e))return e;var t=o("div",{html:e});return Array.prototype.slice.call(t.childNodes)}(e);return Array.isArray(n)?n:[n]}function i(e){return null!=e.tabIndex&&e.tabIndex>-1}Object.defineProperty(t,"__esModule",{value:!0}),t.findNextSiblingFocusable=t.findPrevSiblingFocusable=t.isFocusable=t.enableFocus=t.disableFocus=t.appendHtml=t.toNodeList=t.empty=t.createElement=void 0,t.createElement=o,t.empty=function(e){for(var t;t=e.firstChild;)e.removeChild(t)},t.toNodeList=r,t.appendHtml=function(e,t){r(t).forEach((function(t){e.appendChild(t)}))},t.disableFocus=function e(t){t.dataset.disableBeforeTabIndex="".concat(t.tabIndex),t.tabIndex=-1,Array.prototype.slice.call(t.children,0).forEach(e)},t.enableFocus=function e(t){"disableBeforeTabIndex"in t.dataset&&(t.tabIndex=Number(t.dataset.disableBeforeTabIndex)),Array.prototype.slice.call(t.children,0).forEach(e)},t.isFocusable=i,t.findPrevSiblingFocusable=function(e){for(var t=e.previousSibling;t&&!i(t);)t=t.previousSibling;return t},t.findNextSiblingFocusable=function(e){for(var t=e.nextSibling;t&&!i(t);)t=t.nextSibling;return t}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Inline=void 0;var o=n(0);function r(e,t){return e.measureText(t).width}function i(e,t,n,o,i){for(var a=[],u=n.next(),c=0;c<o&&null!==u;c++,u=n.next())a.push(u);var s=r(e,a.join(""));if(s>i)for(;a.length&&!((s-=r(e,a.pop()||""))<=i););else if(s<i)for(;null!==u;){var f=r(e,u);if(s+f>i)break;a.push(u),s+=f,u=n.next()}var h=a.join("").replace(/\s+$/,""),d=t.slice(h.length).replace(/^\s+/,"");return{before:h?new l(h):null,after:d?new l(d):null}}var l=function(){function e(t){d(this,e),this._content=null!=t?t:""}return g(e,[{key:"width",value:function(e){return r(e.ctx,this._content)}},{key:"font",value:function(){return null}},{key:"color",value:function(){return null}},{key:"canDraw",value:function(){return!0}},{key:"onReady",value:function(e){}},{key:"draw",value:function(e){var t=e.ctx,n=e.canvashelper,o=e.rect,r=e.offset,i=e.offsetLeft,l=e.offsetRight,a=e.offsetTop,u=e.offsetBottom;n.fillTextRect(t,this._content,o.left,o.top,o.width,o.height,{offset:r+1,padding:{left:i,right:l,top:a,bottom:u}})}},{key:"canBreak",value:function(){return!!this._content}},{key:"splitIndex",value:function(t){for(var n=this._content,r=o.str.genChars(n),i=[],l=r.next(),a=0;a<t&&null!==l;a++,l=r.next())i.push(l);var u=i.join(""),c=n.slice(u.length);return{before:u?new e(u):null,after:c?new e(c):null}}},{key:"breakWord",value:function(e,t){var n=this._content,r=this.width({ctx:e}),l=Math.floor(this._content.length*t/r);return i(e,n,o.str.genWords(n),l,t)}},{key:"breakAll",value:function(e,t){var n=this._content,r=this.width({ctx:e}),l=Math.floor(this._content.length*t/r);return i(e,n,o.str.genChars(n),l,t)}},{key:"toString",value:function(){return this._content}}]),e}();t.Inline=l},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseHeader=void 0;var l=i(n(35)),a=n(36),u=function(){function e(){d(this,e),this.onDrawCell=this.onDrawCell.bind(this)}return g(e,[{key:"StyleClass",get:function(){return a.BaseStyle}},{key:"onDrawCell",value:function(e,t,n,o){var r=t.style,i=t.drawCellBase,a=o.getGridCanvasHelper();i(),this.drawInternal(this.convertInternal(e),n,l.of(r,this.StyleClass),a,o,t)}},{key:"convertInternal",value:function(e){return"function"==typeof e&&(e=e()),null!=e?"".concat(e):""}},{key:"bindGridEvent",value:function(e,t){return[]}},{key:"getCopyCellValue",value:function(e,t,n){return"function"==typeof e&&(e=e()),null!=e?e:""}}]),e}();t.BaseHeader=u},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.style=t.type=t.action=void 0;var l=i(n(81));t.action=l;var a=i(n(25));t.style=a;var u=i(n(46));t.type=u},function(t,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.animate=void 0;var r=o(0);function i(e,t,n,o){var r;return e*=3,t*=3,n*=3,o*=3,function(i){var l,a,u,c,s,f;if(i<0||1<i)throw new Error("".concat(i));l=r||i;do{l+=.5*(f=i-(e*(u=(a=1-l)*a)*l+n*a*(c=l*l)+(s=c*l)))}while(1e-4<Math.abs(f));return r=l,t*u*l+o*a*c+s}}var l={linear:function(e){return e},easeIn:i(.42,0,1,1),easeOut:i(0,0,.58,1),easeInOut:i(.42,0,.58,1)},a=r.isNode?function(){}:e.requestAnimationFrame||function(e){return setTimeout(e,1)};function u(){return Date.now()}n.animate=function(e,t,n){var o=u(),r=null==n?l.easeInOut:"string"==typeof n?l[n]:n,i=!1,c=function(n,l){return function c(){var s=u()-o;i?l&&l():s>=e?(t(1),n&&n()):(t(r(s/e)),a(c))}},s=function(){i=!0};if("undefined"!=typeof Promise){var f=new Promise((function(e,n){var o=c(e,n);t(0),o()}));return f.cancel=s,f}var h=c((function(){}),(function(){}));return t(0),h(),{cancel:s}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStyle=void 0;var o,r=n(20),l={CHANGE_STYLE:"change_style"},u=function(e){i(n,e);var t=a(n);function n(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.bgColor,i=o.visibility,l=o.indicatorTopLeft,a=o.indicatorTopRight,u=o.indicatorBottomRight,f=o.indicatorBottomLeft;return d(this,n),(e=t.call(this))._bgColor=r,e._visibility=s(i,void 0),e._indicatorTopLeft=c(l),e._indicatorTopRight=c(a),e._indicatorBottomRight=c(u),e._indicatorBottomLeft=c(f),e}return g(n,[{key:"bgColor",get:function(){return this._bgColor},set:function(e){this._bgColor=e,this.doChangeStyle()}},{key:"visibility",get:function(){return this._visibility},set:function(e){var t=s(e,this._visibility);this._visibility!==t&&(this._visibility=t,this.doChangeStyle())}},{key:"indicatorTopLeft",get:function(){return this._indicatorTopLeft},set:function(e){this._indicatorTopLeft=c(e),this.doChangeStyle()}},{key:"indicatorTopRight",get:function(){return this._indicatorTopRight},set:function(e){this._indicatorTopRight=c(e),this.doChangeStyle()}},{key:"indicatorBottomRight",get:function(){return this._indicatorBottomRight},set:function(e){this._indicatorBottomRight=c(e),this.doChangeStyle()}},{key:"indicatorBottomLeft",get:function(){return this._indicatorBottomLeft},set:function(e){this._indicatorBottomLeft=c(e),this.doChangeStyle()}},{key:"doChangeStyle",value:function(){this.fireListeners(l.CHANGE_STYLE)}},{key:"clone",value:function(){return new n(this)}}],[{key:"EVENT_TYPE",get:function(){return l}},{key:"DEFAULT",get:function(){return o||(o=new n)}}]),n}(r.EventTarget);function c(e){return"string"==typeof e?{style:e}:e}function s(e,t){return e&&"visible"!==e&&"hidden"!==e?t:e}t.BaseStyle=u},function(e,t,n){var o;Object.defineProperty(t,"__esModule",{value:!0}),t.EventTarget=void 0;var r=n(0),i=(0,n(1).get)(),l=1,a=function(){function e(){d(this,e),this[o]={listeners:{},listenerData:{}}}return g(e,[{key:"listen",value:function(e,t){var n=this,o=this[i].listeners[e]||(this[i].listeners[e]=[]);o.push(t);var r=l++;return this[i].listenerData[r]={type:e,listener:t,remove:function(){delete n[i].listenerData[r];var l=o.indexOf(t);o.splice(l,1),n[i].listeners[e].length||delete n[i].listeners[e]}},r}},{key:"unlisten",value:function(e){this[i]&&this[i].listenerData[e].remove()}},{key:"addEventListener",value:function(e,t){this.listen(e,t)}},{key:"removeEventListener",value:function(e,t){var n=this;this[i]&&(0,r.each)(this[i].listenerData,(function(o,r){o.type===e&&o.listener===t&&n.unlisten(r)}))}},{key:"hasListeners",value:function(e){return!!this[i]&&!!this[i].listeners[e]}},{key:"fireListeners",value:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];if(!this[i])return[];var l=this[i].listeners[e];return l?l.map((function(e){return e.call.apply(e,[t].concat(o))})).filter((function(e){return null!=e})):[]}},{key:"dispose",value:function(){delete this[i]}}]),e}();t.EventTarget=a,o=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StdBaseStyle=void 0;var o,r=function(e){i(n,e);var t=a(n);function n(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return d(this,n),(e=t.call(this,o))._textAlign=o.textAlign||"left",e._textBaseline=o.textBaseline||"middle",e._padding=o.padding,e}return g(n,[{key:"textAlign",get:function(){return this._textAlign},set:function(e){this._textAlign=e,this.doChangeStyle()}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(e){this._textBaseline=e,this.doChangeStyle()}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding=e,this.doChangeStyle()}},{key:"clone",value:function(){return new n(this)}}],[{key:"DEFAULT",get:function(){return o||(o=new n)}}]),n}(n(19).BaseStyle);t.StdBaseStyle=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ofCell=t.of=t.MultilineTextHeader=t.CheckHeader=t.SortHeader=t.Header=t.BaseHeader=void 0;var o=n(16);Object.defineProperty(t,"BaseHeader",{enumerable:!0,get:function(){return o.BaseHeader}});var r=n(132);Object.defineProperty(t,"CheckHeader",{enumerable:!0,get:function(){return r.CheckHeader}});var i=n(133);Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return i.Header}});var l=n(134);Object.defineProperty(t,"MultilineTextHeader",{enumerable:!0,get:function(){return l.MultilineTextHeader}});var a=n(135);Object.defineProperty(t,"SortHeader",{enumerable:!0,get:function(){return a.SortHeader}});var u={DEFAULT:new i.Header,SORT:new a.SortHeader,CHECK:new r.CheckHeader,MULTILINETEXT:new l.MultilineTextHeader};function c(e){if(e){if("string"==typeof e){var t=e.toUpperCase();return u[t]||c(null)}return e}return u.DEFAULT}t.of=c,t.ofCell=function(e){return e.sort?u.SORT:c(e.headerType)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindCellKeyAction=t.bindCellClickAction=void 0;var o=n(0),r=n(4);t.bindCellClickAction=function(e,t,n){var i=n.action,l=n.mouseOver,a=n.mouseOut,u=n.area;function c(n,o){return e.getLayoutCellId(n,o)===t}var s=null,f=null;function h(t){f=t,l&&!l({col:t.col,row:t.row})||(e.getElement().style.cursor="pointer")}function d(t){a&&a({col:t.col,row:t.row}),f=null,e.getElement().style.cursor=""}var v=[e.listen(r.DG_EVENT_TYPE.CLICK_CELL,(function(t){if(c(t.col,t.row)){var n=e.selection.select;n.col===t.col&&n.row===t.row&&((0,o.isPromise)(e.getRowRecord(t.row))||u&&!u(t)||i({col:t.col,row:t.row}))}})),e.listen(r.DG_EVENT_TYPE.MOUSEOVER_CELL,(function(t){c(t.col,t.row)&&((0,o.isPromise)(e.getRowRecord(t.row))||(s=t,u&&!u(t)||h(t)))})),e.listen(r.DG_EVENT_TYPE.MOUSEOUT_CELL,(function(e){s&&s.col===e.col&&s.row===e.row&&(f||d(e))}))];return u&&v.push(e.listen(r.DG_EVENT_TYPE.MOUSEMOVE_CELL,(function(e){if(s&&s.col===e.col&&s.row===e.row){var t=u(e);if(f){if(t)return;d(e)}else{if(!t)return;h(e)}}}))),v},t.bindCellKeyAction=function(e,t,n){var i=n.action,l=n.acceptKeys,a=void 0===l?[]:l;return a=[].concat(f(a),[13,32]),[e.listen(r.DG_EVENT_TYPE.KEYDOWN,(function(n){var r;if(-1!==a.indexOf(n.keyCode)&&(!(null===(r=e.keyboardOptions)||void 0===r?void 0:r.moveCellOnEnter)||13!==n.keyCode)){var l,u,c=e.selection.select;l=c.col,u=c.row,e.getLayoutCellId(l,u)===t&&((0,o.isPromise)(e.getRowRecord(c.row))||(i({col:c.col,row:c.row}),o.event.cancel(n.event)))}}))]}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAction=void 0;var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,e),this._disabled=t.disabled||!1}return g(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,this.onChangeDisabledInternal()}},{key:"onChangeDisabledInternal",value:function(){}}]),e}();t.BaseAction=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.of=t.TreeStyle=t.MenuStyle=t.MultilineTextStyle=t.PercentCompleteBarStyle=t.IconStyle=t.ImageStyle=t.ButtonStyle=t.RadioStyle=t.CheckStyle=t.NumberStyle=t.Style=t.BaseStyle=t.EVENT_TYPE=void 0;var o=n(19);Object.defineProperty(t,"BaseStyle",{enumerable:!0,get:function(){return o.BaseStyle}});var r=n(47);Object.defineProperty(t,"ButtonStyle",{enumerable:!0,get:function(){return r.ButtonStyle}});var i=n(48);Object.defineProperty(t,"CheckStyle",{enumerable:!0,get:function(){return i.CheckStyle}});var l=n(49);Object.defineProperty(t,"IconStyle",{enumerable:!0,get:function(){return l.IconStyle}});var a=n(50);Object.defineProperty(t,"ImageStyle",{enumerable:!0,get:function(){return a.ImageStyle}});var u=n(51);Object.defineProperty(t,"MenuStyle",{enumerable:!0,get:function(){return u.MenuStyle}});var c=n(52);Object.defineProperty(t,"MultilineTextStyle",{enumerable:!0,get:function(){return c.MultilineTextStyle}});var s=n(53);Object.defineProperty(t,"NumberStyle",{enumerable:!0,get:function(){return s.NumberStyle}});var f=n(54);Object.defineProperty(t,"PercentCompleteBarStyle",{enumerable:!0,get:function(){return f.PercentCompleteBarStyle}});var h=n(55);Object.defineProperty(t,"RadioStyle",{enumerable:!0,get:function(){return h.RadioStyle}});var d=n(5);Object.defineProperty(t,"Style",{enumerable:!0,get:function(){return d.Style}});var v=n(56);Object.defineProperty(t,"TreeStyle",{enumerable:!0,get:function(){return v.TreeStyle}});var g=o.BaseStyle.EVENT_TYPE;t.EVENT_TYPE=g,t.of=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.Style;return t?t instanceof o.BaseStyle?t:"function"==typeof t?e(t(n),n,r):n&&t in n?e(n[t],n,r):new r(t):r.DEFAULT}},function(t,n,o){Object.defineProperty(n,"__esModule",{value:!0}),n.iconPropKeys=n.toNormalizeArray=n.getIconProps=void 0;var r=["content","font","color","className","tagName","isLiga","width","src","svg","name","path","offsetTop","offsetLeft"],i={},l={};function a(t,n){var o=l[t]||(l[t]={});if(o[n])return o[n];var r=i[t]||(i[t]=document.createElement(t));r.className=n,r.classList.add("cheetah-grid-icon"),document.body.appendChild(r);try{var a=(document.defaultView||e).getComputedStyle(r,"::before"),u=a.getPropertyValue("content");u.length>=3&&('"'===u[0]||"'"===u[0])&&u[0]===u[u.length-1]&&(u=u.slice(1,-1));var c=a.getPropertyValue("font");c||(c="".concat(a.getPropertyValue("font-style")," ").concat(a.getPropertyValue("font-variant")," ").concat(a.getPropertyValue("font-weight")," ").concat(a.getPropertyValue("font-size"),"/").concat(a.getPropertyValue("line-height")," ").concat(function(e){for(var t=[],n=e.split(/,\s*/),o=0;o<n.length;o++){var r=n[o].replace(/['"]/g,"");-1!==r.indexOf(" ")||/^\d/.test(r)?t.push("'".concat(r,"'")):t.push(r)}return t.join(",")}(a.getPropertyValue("font-family"))));var s=a.getPropertyValue("color"),f=r.clientWidth,h=(a.getPropertyValue("font-feature-settings")||"").indexOf("liga")>-1;return o[n]={content:u,font:c,color:s,width:f,isLiga:h}}finally{document.body.removeChild(r)}}function u(e){if(!e)return e;if(Array.isArray(e))return e;var t={},n=0;r.forEach((function(t){var o=e[t];o&&(n=Array.isArray(o)?Math.max(n,o.length):Math.max(n,1))})),r.forEach((function(o){var r=function(e,t){var n=[];if(Array.isArray(e)){n.push.apply(n,f(e));for(var o=e.length;o<t;o++)n.push(null)}else for(var r=0;r<t;r++)n.push(e);return n}(e[o],n);t[o]=r}));for(var o=[],i=function(e){var n={};r.forEach((function(o){var r=t[o][e];n[o]=r})),o.push(n)},l=0;l<n;l++)i(l);return o}function c(e){return r.indexOf(e)>=0}n.getIconProps=a,n.toNormalizeArray=function(e){var t=u(e);return t?t.map((function(e){return function(e){var t={};for(var n in e)"className"!==n&&c(n)&&(t[n]=e[n]);if(e.className){var o=a(e.tagName||"i",e.className);for(var r in o)c(r)&&null==e[r]&&(t[r]=o[r])}return t}(e)})):t},n.iconPropKeys=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toBoolean=void 0,t.toBoolean=function(e){if("string"==typeof e){if("false"===e)return!1;if("off"===e)return!1;if(/^0+$/.exec(e))return!1}return Boolean(e)}},function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.buildInlines=t.of=t.iconOf=void 0;var l=i(n(60)),a=i(n(29)),u=n(15),c=n(62),s=n(110),h=n(64),d=n(113),v=n(114),g=n(8);function p(e){if(e instanceof u.Inline)return e;if(!e)return null;if(function(e){return!(!e.font||!e.content)}(e))return new s.InlineIcon(e);if(function(e){return!!e.src}(e))return new h.InlineImage({src:e.src,width:e.width,height:e.width});if(e.svg)return new v.InlineSvg({svg:e.svg,width:e.width,height:e.width});if(function(e){return!!e.path}(e))return new d.InlinePath2D({path:e.path,width:e.width,height:e.width,color:e.color});var t=l.get();if(e.name&&t[e.name]){var n=t[e.name],o=e.width||Math.max(n.width,n.height);return new c.InlineDrawer({draw:function(e){var t=e.ctx,r=e.rect,i=e.offset,l=e.offsetLeft,u=e.offsetRight,c=e.offsetTop,s=e.offsetBottom;!function(e,t,n,o,r,i,l,u){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{},s=c.offset,f=void 0===s?2:s,h=c.padding,d={left:r,top:i,width:l,height:u,right:r+l,bottom:i+u};e.save();try{e.beginPath(),e.rect(d.left,d.top,d.width,d.height),e.clip();var v=(0,g.calcStartPosition)(e,d,n,o,{offset:f,padding:h});a.fill(t,e,v.x,v.y,n,o)}finally{e.restore()}}(t,n,o,o,r.left,r.top,r.width,r.height,{offset:i+1,padding:{left:l,right:u,top:c,bottom:s}})},width:o,height:o,color:e.color})}return new s.InlineIcon(e)}function y(e){return null==e?null:e instanceof u.Inline?e:new u.Inline(e)}function _(e,t){var n=[];if(e&&n.push.apply(n,f(e.map((function(e){return p(e)})).filter((function(e){return null!=e})))),Array.isArray(t))n.push.apply(n,f(t.map((function(e){return y(e)})).filter((function(e){return null!=e}))));else{var o=y(t);o&&n.push(o)}return n}t.iconOf=p,t.of=y,t.buildInlines=_,t.string=function(e){return _(void 0,e).join("")}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fill=t.getPath2D=void 0;var o=n(0);function r(){return"undefined"==typeof Path2D||o.browser.Edge?n(107).Path2DShim:Path2D}t.getPath2D=r,t.fill=function(e,t,n,o,i,l){t.save();try{var a=e.width,u=e.height,c=e.ud,s=e.x,f=void 0===s?0:s,h=e.y,d=void 0===h?0:h,v=(i=i||a)/a,g=(l=l||u)/(c?-u:u);n=n||0,o=c?(o||0)+-u*g:o||0,t.translate(n,o),t.scale(v,g),0===f&&0===d||t.translate(f,d);var p=r(),y=e.path2d=e.path2d||new p(e.d);t.fill(y)}finally{t.restore()}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toPx=void 0;var o=n(0);function r(e){return 9===e||10===e||12===e||13===e||32===e}function i(e){return e>=48&&e<=57}function l(e){return 46===e}function a(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||37===e}function u(e){return new Error("calc parse error: ".concat(e))}var c={"*":3,"/":3,"+":2,"-":2};function s(e){return function e(t,n){function r(e){var t=e.pop(),o=e.pop(),r=e.pop();if(!(r&&r.nodeType&&o&&2===o.type&&t&&t.nodeType))throw u(n);return{nodeType:11,left:r,op:o,right:t}}for(var i=[];t.length;){var l=t.shift();if(0===l.type&&"("===l.value)!function(){var r=0,l=o.array.findIndex(t,(function(e){if(0===e.type&&"("===e.value)r++;else if(0===e.type&&")"===e.value){if(!r)return!0;r--}return!1}));if(-1===l)throw u(n);i.push(e(t.splice(0,l),n)),t.shift()}();else if(2===l.type){if(i.length>=3){var a=i[i.length-2].value;c[l.value]<=c[a]&&i.push(r(i))}i.push(l)}else if(1===l.type){var s=l.value,f=l.unit;i.push({nodeType:10,value:s,unit:f})}else 3===l.type&&i.push({nodeType:12,value:l.value})}for(;i.length>1;)i.push(r(i));return i[0]}(function(e){for(var t=e.replace(/calc\(/g,"(").trim(),n=[],o=t.length,c=0;c<o;c++){var s=t[c],f=s.charCodeAt(0);if("("===s||")"===s)n.push({value:s,type:0});else if("*"===s||"/"===s)n.push({value:s,type:2});else if("+"===s||"-"===s)c=h(s,c+1)-1;else if(i(f)||l(f))c=d(s,c+1)-1;else if(!r(f))throw u(e)}function h(e,r){if(r<o){var a=t[r],u=a.charCodeAt(0);if(i(u)||l(u))return d(e+a,r+1)}return n.push({value:e,type:2}),r}function d(r,l){for(var c=l;c<o;c++){var s=t[c],f=s.charCodeAt(0);if(i(f))r+=s;else{if("."!==s){if(a(f))return v(r,s,c+1);break}if(r.indexOf(".")>=0)throw u(e);r+=s}}if("."===r)throw u(e);return n.push({value:parseFloat(r),type:3}),c}function v(e,r,i){for(var l=i;l<o;l++){var u=t[l];if(!a(u.charCodeAt(0)))break;r+=u}return n.push({value:parseFloat(e),unit:r,type:1}),l}return n}(e),e)}function f(e,t){return function e(